patch stringlengths 18 160k | callgraph stringlengths 4 179k | summary stringlengths 4 947 | msg stringlengths 6 3.42k |
|---|---|---|---|
@@ -297,10 +297,14 @@ void GUIEngine::run()
driver->endScene();
+ IrrlichtDevice *device = RenderingEngine::get_raw_device();
+ u32 frametime_min = 1000 / (device->isWindowFocused()
+ ? g_settings->getFloat("fps_max")
+ : g_settings->getFloat("fps_max_unfocused"));
if (m_clouds_enabled)
- cloudPostPro... | [No CFG could be retrieved] | Main loop of the main loop. initializing scripting. | It would be great if `Game::limitFps` could become a global class to handle the framerate the same in all RenderingEngine loops. |
@@ -298,6 +298,8 @@ namespace levin
if (!channel.connection.is_nil())
channel.queue.push_back(std::move(message_));
+ else if (destination_ == 0 && zone_->connection_count == 0)
+ MWARNING("Unable to send transaction(s) over anonymity network - no available outbound connections");
... | [No CFG could be retrieved] | Creates a new namespace. flush_time - time when flush is done. | I assume this means channel 0 is assumed to be tor/i2p, and others not ? |
@@ -227,10 +227,13 @@ define([
* given <code>batchId</code>. This object is used to get and modify the
* feature's properties.
*
+ * Features in a tile are ordered by <code>batchId</code>, an index used to retrieve their metadata from the batch table.
+ * @see {@link https://github.com/Analy... | [No CFG could be retrieved] | The object that is returned by the Cesium3DTileset API. The object that contains the content of the cesium3d tiled. | I think this needs to be surrounding with `<p></p>`. |
@@ -917,6 +917,14 @@ def main(_):
(datetime.now(), i, validation_accuracy * 100,
len(validation_bottlenecks)))
+ # Store intermediate results
+ intermediate_frequency = FLAGS.intermediate_store_frequency
+
+ if intermediate_frequency > 0 and (i % intermediate_frequency ==... | [get_bottleneck_path->[get_image_path],get_random_distorted_bottlenecks->[get_image_path,run_bottleneck_on_image],get_random_cached_bottlenecks->[get_image_path,get_or_create_bottleneck],main->[create_inception_graph,get_random_distorted_bottlenecks,should_distort_images,get_random_cached_bottlenecks,cache_bottlenecks,... | This is the main function of the regression. Train and validation for a single missing node. Run a single training step and capture summaries for the missing images. Evaluate the nanoseconds in the training graph and write out the graph and labels. | `intermediat_file_name` should be `intermediate_file_name` (with an 'e'). |
@@ -149,6 +149,13 @@ func (ir *Runtime) pullGoalFromImageReference(ctx context.Context, srcRef types.
// Need to load in all the repo tags from the manifest
res := []pullRefPair{}
for _, dst := range manifest[0].RepoTags {
+ //check if image exists and gives a warning of untagging
+ localImage, err := ir.N... | [pullGoalFromPossiblyUnqualifiedName->[getSinglePullRefPairGoal,getPullRefPair],pullGoalFromImageReference->[getSinglePullRefPairGoal,getPullRefPair],pullImageFromHeuristicSource->[pullGoalFromImageReference],getSinglePullRefPairGoal->[getPullRefPair],pullImageFromReference->[pullGoalFromImageReference]] | pullGoalFromImageReference returns a pullGoal that will pull the image from the given src getSinglePullRefPairGoal - pull all pairs of a single image from a repository. | Suggest rewording - `"tag %s already exists, untagging but not deleting old image" |
@@ -58,4 +58,12 @@ public class FavoriteDbTester {
return !result.isEmpty();
}
+
+ public boolean hasNoFavorite(ComponentDto componentDto) {
+ List<PropertyDto> result = dbClient.propertiesDao().selectByQuery(PropertyQuery.builder()
+ .setKey(PROP_FAVORITE_KEY)
+ .setComponentId(componentDto.get... | [FavoriteDbTester->[add->[commit,saveProperty,setResourceId,getId],hasFavorite->[build,selectByQuery,isEmpty],getSession,getDbClient]] | Checks if user has favorite property. | you should provide a userId like `hasFavorite`. In fact if you really need a hasNoFavorite its implementation should only be: `return !hasFavorite(componentDto, userId);` |
@@ -44,6 +44,7 @@ public class KinesisConfig
private Duration checkpointInterval = new Duration(60000, TimeUnit.MILLISECONDS);
private String logicalProcessName = "process1";
private int iteratorNumber;
+ private int updateInterval = 600;
@NotNull
public String getTableDescriptionLocation(... | [KinesisConfig->[Duration]] | Gets the table description location. | It would be better to use Duration type as `checkpointInterval`. |
@@ -185,5 +185,16 @@ public class MuleWSDLLocator implements WSDLLocator, HttpRetriever
return resultStream;
}
+
+ private String getAbsoluteURI(String url)
+ {
+ if (url != null)
+ {
+ URL absoluteURI = IOUtils.getResourceAsUrl(url, getClass());
+ r... | [MuleWSDLLocator->[closeStreams->[close],getStreamFrom->[isHttpAddress]]] | Get the stream from the given URL. | uri or url? always prefer uri over url |
@@ -20,7 +20,7 @@ type RawTtyFormatter struct {
}
// Start (if required) and attach to a container
-func startAttachCtr(ctr *libpod.Container, stdout, stderr, stdin *os.File, detachKeys string, sigProxy bool, startContainer bool) error {
+func startAttachCtr(ctr *libpod.Container, stdout, stderr, stdin *os.File, de... | [Format->[Format],Fd,Warnf,Done,Error,SaveState,GetVolume,Notify,RestoreTerminal,Errorf,Bool,Debugf,ID,Wrapf,LookupPod,SetFormatter,StartAndAttach,Attach,Spec,GetWinsize,Printf,GetLatestPod,Volumes,Println,Background,WithCancel,SetRawTerminal,IsTerminal,Pods] | startAttachCtr imports the given container and attaches it to it. Check if the process has a non - nil error code and if so attach it to the. | I am not crazy about the term recursive. Really this is just saying startPod correct? |
@@ -1781,11 +1781,6 @@ class ItemFormatter(BaseFormatter):
for hash_function in hashlib.algorithms_guaranteed:
self.add_key(hash_function, partial(self.hash_item, hash_function))
self.used_call_keys = set(self.call_keys) & self.format_keys
- if self.json_lines:
- self.it... | [get_cache_dir->[write,get_home_dir],hostname_is_unique->[yes],Location->[to_key_filename->[get_keys_dir],parse->[replace_placeholders,get],_parse->[normpath_special]],get_security_dir->[get_home_dir],BaseFormatter->[format_item->[get_item_data]],json_print->[json_dump],open_item->[ChunkIteratorFileWrapper],decode_dict... | Initialize the object with the given parameters. Format keys for display in the UI. | needed to move this upwards, so the time formatting gets set up before it is used. |
@@ -30,5 +30,5 @@ import org.apache.beam.sdk.transforms.ExternalTransformBuilder;
public interface ExternalTransformRegistrar {
/** A mapping from URN to an {@link ExternalTransformBuilder} class. */
- Map<String, Class<? extends ExternalTransformBuilder>> knownBuilders();
+ Map<String, Class<? extends External... | [No CFG could be retrieved] | Returns a map of known transform builders. | FYI @sclukas77 you may run into some merge conflicts with this PR when you change this interface to `Map<String, ExternalTransformBuilder>` |
@@ -18,11 +18,12 @@ namespace System.Net.Http.Functional.Tests
/// <summary>
/// HTTP/3 tests by default use prenegotiated HTTP/3. To test Alt-Svc upgrades, that must be disabled.
/// </summary>
- protected override HttpClient CreateHttpClient()
+ private HttpClient CreateHttpCl... | [HttpClientHandler_AltSvc_Test->[Task->[SendDefaultResponseHeadersAsync,WriteFrameAsync,Port,SendResponseDataAsync,CreateServer,AltSvc_Upgrade_Success,WhenAllOrAnyFailed,CreateHttp3LoopbackServer,ReadRequestHeaderAsync,IdnHost,AcceptConnectionSendResponseAndCloseAsync,Address,CreateHttpClient,IsSuccessStatusCode,Array,... | This method is overridden to provide a different HTTP client for the legacy HTTP upgrade. | Why fall back to `UseVersion`? Don't we always want to supply `version` here? |
@@ -630,7 +630,9 @@ func (t *Cortex) setupModuleManager() error {
mm.RegisterModule(MemberlistKV, t.initMemberlistKV, modules.UserInvisibleModule)
mm.RegisterModule(Ring, t.initRing, modules.UserInvisibleModule)
mm.RegisterModule(Overrides, t.initOverrides, modules.UserInvisibleModule)
- mm.RegisterModule(Distrib... | [initFlusher->[tsdbIngesterConfig],initIngester->[tsdbIngesterConfig]] | setupModuleManager initializes the module manager Server - > ServerManager. | DistributorService should use `modules.UserInvisibleModule` option. |
@@ -106,6 +106,8 @@ class Cntk(Package):
args.append('--with-cudnn={0}'
.format(spec['cudnn'].prefix))
args.append('--with-nccl={0}'.format(spec['nccl'].prefix))
+ args.append('--with-gdk-include={0}'.format(spec['cuda'].prefix.include))
+ args.ap... | [Cntk->[install->[join_path,append,install_tree,format,configure,make],variant,depends_on,version,patch]] | Installs the C ++ library. Install examples if not found. | Flake8 is complaining because these lines are over 80 characters long. |
@@ -23,9 +23,15 @@ import com.datastax.driver.core.Session;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
+<%_ if (messageBroker === 'kafka') { _%>
+import org.springframework.kafka.test.context.EmbeddedK... | [No CFG could be retrieved] | Creates a cassandra unit based on a single node in the cluster. | Is it needed to have an EmbeddedKafka in all tests ? |
@@ -192,15 +192,6 @@ class Cp2k(MakefilePackage):
if 'superlu-dist@4.3' in spec:
ldflags.insert(0, '-Wl,--allow-multiple-definition')
- # libint-1.x.y has to be linked statically to work around
- # inconsistencies in its Fortran interface definition
- # (short-int vs int) wh... | [Cp2k->[install->[install_tree,join],makefile_architecture->[format],edit->[int,write,IOError,satisfies,append,insert,extend,str,copy,format,KeyError,join,open,mkdirp],archive_files->[join],build->[set_env,super],build_directory->[join,satisfies],check->[set_env,working_dir,make,join],build_targets->[format],makefile_v... | Edit a single object. Add missing flags to the list of flags to add to the compiler. finds missing libraries and checks for missing libraries Add a missing library to the list of libraries. Add a missing missing entry to the makefile. | we still have to specify how to link to libint |
@@ -75,10 +75,10 @@ namespace System.Net.Quic.Implementations.Mock
return new IPEndPoint(IPAddress.Loopback, dnsEndPoint.Port);
}
- throw new InvalidOperationException($"invalid DNS name {dnsEndPoint.Host}");
+ throw new InvalidOperationException(SR.... | [MockConnection->[AcceptStreamAsync->[_clientErrorCode,_serverErrorCode,CheckDisposed,_clientInitiatedStreamChannel,ConfigureAwait,_serverInitiatedStreamChannel],ValueTask->[_clientErrorCode,_serverErrorCode,ApplicationProtocols,CheckDisposed,Dispose,CompletedTask,Assert,TryGetListener,TryConnect],MockStream->[_clientI... | Get the IPEndPoint from the given EndPoint. | These Mock* types are going to go away before shipping. I think it's probably not worth adding these as resources only to then remove them. @geoffkizer? |
@@ -74,7 +74,7 @@ class Student < User
def memberships_for(aid)
@student = self
- @memberships = StudentMembership.all(:conditions => {:user_id => @student.id})
+ @memberships = StudentMembership.all(conditions: {user_id: @student.id})
@memberships.each do |m|
if m.grouping.assignment_i... | [Student->[create_group_for_working_alone_student->[destroy_all_pending_memberships],join->[pending_memberships_for],create_autogenerated_name_group->[destroy_all_pending_memberships],pending_memberships_for->[pending_groupings_for]]] | Returns an array of memberships for the given assignment ID. | Space inside { missing.<br>Space inside } missing. |
@@ -32,6 +32,11 @@ import java.util.Set;
*/
public class NoneShardSpec implements ShardSpec
{
+ private final static NoneShardSpec INSTANCE = new NoneShardSpec();
+
+ @JsonCreator
+ public static NoneShardSpec instance() { return INSTANCE; }
+
@Override
public <T> PartitionChunk<T> createChunk(T obj)
{
| [NoneShardSpec->[getLookup->[getShardSpec->[get],ShardSpecLookup]]] | Creates a chunk of the partition. | we could even make the constructor private to make sure instance is always used. |
@@ -702,10 +702,13 @@ class GradeEntryFormsControllerTest < AuthenticatedControllerTest
should 'attempt to set an empty grade to a string' do
@new_grade = 'abc'
- post_as @admin, :update_grade, {:grade_entry_item_id => @grade_entry_items[0].id,
- :student_... | [GradeEntryFormsControllerTest->[position,update_total_grade,new,find,post_as,fixture_file_upload,assert_raise,errors,name,should,description,find_by_name,assert_equal,body,assert,message,returns,find_by_user_id,find_by_short_identifier,assigns,t,released_to_student,assert_not_nil,date,find_by_grade_entry_student_id_an... | POST on update_grade when the Grade does not have an existing value and the Gra POST on update_grade when the Grade does not have an existing value and the Gra. | Trailing whitespace detected. |
@@ -16,8 +16,10 @@ module ProfileFields
def call
@profile_field = ProfileField.find(@id)
if @profile_field.destroy
- accessor = profile_field.attribute_name.to_s
- Profile.undef_method(accessor) if accessor.in?(Profile.attributes)
+ accessor = @profile_field.attribute_name.to_sym... | [Remove->[call->[call,to_s,find,in?,attributes,errors_as_sentence,destroy,undef_method],attr_reader]] | call This is called when a user has not found a in the profile. | Should we also undef the setter `"#{attribute_name}=".to_sym`? |
@@ -80,6 +80,7 @@ def parse_args():
help='Pair "name"="value" of model constructor parameter')
parser.add_argument('--inputs-dtype', type=str, required=False, choices=INPUT_DTYPE_TO_TORCH, default='float',
help='Data type for inputs')
+ parser.add_argument('--co... | [main->[convert_to_onnx,load_model,parse_args],shapes_arg->[is_sequence],parse_args->[parse_args],main] | Parse command line arguments for the model conversion. Import module and create model object. | Please, add hep message |
@@ -2,7 +2,7 @@ from conans.client.build.compiler_flags import (architecture_flag, build_type_de
build_type_flags, format_defines,
format_include_paths, format_libraries,
fo... | [CompilerArgsGenerator->[content->[visual_runtime,sysroot_flag,get_safe,hasattr,architecture_flag,format_libraries,join,_libcxx_flags,rpath_flags,format_frameworks,get_build_os_arch,extend,format_include_paths,format_defines,build_type_flags,append,format_library_paths,format_framework_paths,cppstd_flag,build_type_defi... | Construct a class that can be used to build a single object. Build flags for the given build type. | compiler_args is a legacy generator, not a new one, better leave it as-is |
@@ -10478,15 +10478,8 @@ CommonNumber:
BOOL JavascriptOperators::CheckPrototypesForAccessorOrNonWritableProperty(RecyclableObject* instance, JavascriptString* propertyNameString, Var* setterValue, DescriptorFlags* flags, PropertyValueInfo* info, ScriptContext* scriptContext)
{
- JsUtil::CharacterBuff... | [No CFG could be retrieved] | CheckPrototypesForAccessorOrNonWritableRootProperty - Checks if a property is assigned RecyclableObject constructor. | This variable isn't used and that's causing some compile errors on windows. |
@@ -260,6 +260,12 @@ class Validator(object):
if waffle.switch_is_active('enable-yara'):
tasks_in_parallel.append(run_yara.s(file_.pk))
+ if waffle.switch_is_active('enable-customs'):
+ tasks_in_parallel.append(run_customs.s(file_.pk))
+
+ if waffle.s... | [process_validation->[mangle_compatibility_messages,max,get,fix_addons_linter_output,setdefault,limit_validation_results,htmlify_validation],find_previous_version->[version_int,order_by,filter,Q,exclude],extract_theme_properties->[get_user,theme_props,dict,get,parse_xpi,process_color_value,find_latest_version],fix_addo... | Initialize the object with the necessary information. Add a validation task to the task list. | I ran into some issues locally, could it be because we are modifying the Celery validation task with waffle? (i.e. it is not always exactly the same and maybe Celery and/or Django don't see the same validation task in the end) |
@@ -130,4 +130,14 @@ if ($argv[1]) {
CollectData($argv[1]);
}
+$poller_end = microtime(true);
+$poller_run = ($poller_end - $poller_start);
+$poller_time = substr($poller_run, 0, 5);
+
+dbInsert(array('type' => 'pollbill', 'doing' => $doing, 'start' => $poller_start, 'duration' => $poller_time, 'devices' => 0... | [No CFG could be retrieved] | Collect data from the RRD process. | This isn't important but if you have the time before this is merged. It would be good to add the $poller_time as a function rather than duplicate the code from poller.php (function can then be used there). |
@@ -16,3 +16,16 @@ CompileAssert((uint)Js::OpCode::ByteCodeLast < 512);
#define MACRO_EXTEND_WMS(opcode, layout, attr) CompileAssert((uint)Js::OpCode::opcode > BYTE_MAX);
#include "OpCodes.h"
+
+
+#ifdef ASMJS_PLAT
+// Make sure all basic opcode with no one byte layout fits in a byte.
+#define MACRO(opcode, layout... | [CompileAssert] | Extend WMS with WMS. | >f [](start = 5, length = 1) nit: newline at end of file |
@@ -25,6 +25,7 @@ import {install as installDocContains} from './polyfills/document-contains';
import {install as installMathSign} from './polyfills/math-sign';
import {install as installObjectAssign} from './polyfills/object-assign';
import {install as installPromise} from './polyfills/promise';
+import {install as... | [No CFG could be retrieved] | Package members of the n - node module. | Let's rename the file to `array-includes` to match the other method polyfills. |
@@ -8,6 +8,10 @@ module IdvSession
end
end
+ def confirm_idv_session_started
+ redirect_to idv_session_url unless idv_session[:params].present?
+ end
+
def idv_session
user_session[:idv] ||= {}
end
| [idv_questions->[questions],idv_profile_from_applicant->[id],proofing_session_started?->[present?,success?],complete_idv_profile->[verified_at,vendor,activate,now],clear_idv_session->[delete],idv_profile->[find],root,proofing_vendors,unshift,extend,each] | Get the next available IDV session. | These 2 methods are only called in ReviewController. Move them there since they're not shared? |
@@ -457,7 +457,8 @@ def test_different_view_of_last_bp_during_unlock(
retry_timeout=app0.raiden.alarm.sleep_time,
)
- with gevent.Timeout(10):
+ timeout = 30 if blockchain_type == 'parity' else 10
+ with gevent.Timeout(timeout):
unlock_app0 = wait_for_state_change(
app0.ra... | [test_refund_messages->[mediated_transfer,assert_synced_channel_state,raiden_events_search_for_item,get_token_network_identifier_by_token_address,mediated_transfer_async,wait,state_from_app],test_refund_transfer->[mediated_transfer,assert_synced_channel_state,wait_for_state_change,sleep,get_all_messagequeues,raiden_eve... | This function is used to test the state of the last bp during unlock. This method is called from channel_manager. It checks that the channel has the required amount This function is called when a channel is being updated. | couldn't you re-use `timeout(blockchain_type)` as above? |
@@ -14,6 +14,7 @@ export default class DateInput extends Component {
text: PropTypes.string,
hoverDate: dateType,
date: dateType,
+ time: PropTypes.string,
inputFormat: PropTypes.string,
hidden: PropTypes.bool,
onInput: PropTypes.func,
| [No CFG could be retrieved] | Component that displays a datepicker input when the user presses Enter. Generate a hidden input that can be used to enter a date. | As far as I know, "date" prop is a JS/MomentJS Date, so it could hold both Date and Time inside. Maybe we don't have to split this single entity to "date" and "time"? |
@@ -120,6 +120,8 @@ public class TransformerInputs
schemaFactory = SchemaFactory.newInstance(schemaLanguage);
}
+ XMLSecureFactories.createDefault().configureSchemaFactory(schemaFactory);
+
System.out.println(schemaFactory.getClass());
return schemaFactory;
}
| [TransformerInputs->[createTransformerFactory->[newInstance],createSchemaFactory->[getMessage,newInstance,println,instanciateClass,getClass],FileInputStream,getName,StringReader,TransformerException,transformFailed,openStream,ByteArrayInputStream]] | Create a schema factory. | shouldn't there also be a createSchemaFactory method? |
@@ -1337,6 +1337,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
pluginInfo.put("dependencies", Collections.emptyMap());
}
response.add(pluginInfo);
+ allPlugins.put(plugin.getShortName(), pluginInfo);
}
for (U... | [PluginManager->[createDefault->[create],doPlugins->[getDisplayName],install->[install,getPlugin],dynamicLoad->[run,dynamicLoad],getPlugin->[getPlugin,getPlugins],PluginUpdateMonitor->[ifPluginOlderThenReport->[getPlugin]],addDependencies->[addDependencies],loadDetachedPlugins->[loadPluginsFromWar],getPluginVersion->[g... | List all available plugins. | Without the patch a new JSONObject is created for every entry below, even if the plugin has been added to the response before |
@@ -112,6 +112,7 @@ namespace Content.Server.GameObjects.Components.Doors
base.ExposeData(serializer);
serializer.DataField(ref _occludes, "occludes", true);
+ serializer.DataField(ref _autoOpen, "auto_open", true);
serializer.DataField(ref _isWeldedShut, "welded", fa... | [ServerDoorComponent->[Open->[Open,SetAppearance],TryClose->[CanClose],OnUpdate->[Open,Close,CanClose],OnRemove->[OnRemove],CanOpen->[CanOpen],ExposeData->[ExposeData],Activate->[ActivateImpl],Deny->[Open,SetAppearance,Deny],CanClose->[CanClose],TryOpen->[CanOpen],Close->[SetAppearance,CheckCrush]]] | Override to expose the data of the object in the given serializer. | Should be autoOpen |
@@ -3464,9 +3464,14 @@ ds_obj_dtx_handle_one(crt_rpc_t *rpc, struct daos_cpd_sub_head *dcsh,
if (rc != 0)
goto out;
} else {
- if (dcsr->dcsr_opc != DCSO_PUNCH_OBJ &&
- dcsr->dcsr_opc != DCSO_PUNCH_DKEY &&
- dcsr->dcsr_opc != DCSO_PUNCH_AKEY) {
+ daos_key_t *dkey;
+
+ if (dcsr->dcsr_opc ==... | [No CFG could be retrieved] | check if the object has an object that has a dcu_update object and if so END OF FUNCTIONS END of function read_dcsr_ioc_coc. | Should you set rc and add a skip or something here?? The dkey will be uninitialized garbage if this happens. In fact, I wouldn't be surprised if my Fedora compiler complains with somtimes-uninitialized warning. |
@@ -245,13 +245,14 @@ public final class LifecycleManager implements ModuleLifecycle {
@Override
public void cacheStarted(ComponentRegistry cr, String cacheName) {
- InternalCacheRegistry icr = cr.getGlobalComponentRegistry().getComponent(InternalCacheRegistry.class);
+ GlobalComponentRegistry gcr =... | [LifecycleManager->[buildQuerySerializers->[JsonQuerySerializer,getComponent,QuerySerializers,DefaultQuerySerializer,isConversionSupported,getTranscoder,addSerializer],processProtostreamSerializationContextInitializers->[init,errorInitializingSerCtx,load],getProtobufMetadataCacheConfig->[enabled,isClustered,Configurati... | This method is called when a cache is started. | `cacheStarted` has a similar problem with `cacheManagerStarted`: if 2 threads call `getCache(X)`, one of them will actually start the cache and invoke `cacheStarted` in all the modules. The other thread will resume as soon as the cache has been started, without waiting for the modules' `cacheStarted` code to run. |
@@ -14,7 +14,9 @@ from mypy.lex import (
UnicodeLit, FloatLit, Op, Indent, Keyword, Punct, LexError, ComplexLit,
EllipsisToken
)
-from mypy.sharedparse import special_function_elide_names, argument_elide_name
+from mypy.sharedparse import (
+ special_function_elide_names, argument_elide_name,
+)
from myp... | [parse->[parse],Parser->[skip_until_break->[current,skip],skip_until_next_line->[current,skip,skip_until_break],eol->[current],parse_type_comment->[parse_error_at],parse_try_stmt->[parse_block],parse_tuple_expr->[parse_expression],parse_decorated_function_or_class->[parse_class_def],parse_conditional_expr->[parse_expre... | Construct a parse tree based on a string containing a single unique identifier. A dictionary of all possible values of the n - node object. | This file has disappeared, see #2977. |
@@ -17,8 +17,14 @@ class Amdblis(BlisBase):
_name = 'amdblis'
homepage = "https://developer.amd.com/amd-aocl/blas-library/"
- url = "https://github.com/amd/blis/archive/2.1.tar.gz"
+ url = "https://github.com/amd/blis/archive/2.2.tar.gz"
git = "https://github.com/amd/blis.git"
version('2.2... | [Amdblis->[version]] | Author is responsible for downloading the AMD - LIS. | This shouldn't be needed, it's already present in `BlisBase`. Spack doesn't usually run unit tests unless they are explicitly requested through `spack install --test=root amdblis` |
@@ -42,9 +42,16 @@ namespace Content.Server.GameTicking
return string.Empty;
}
+ var mapName = Loc.GetString("game-ticker-no-map-selected");
+ var map = _gameMapManager.GetSelectedMap();
+ if(map != null)
+ {
+ mapName = map.MapN... | [GameTicker->[TogglePause->[PauseStart],TickerLobbyInfoEvent->[GetInfoText]]] | Get info text for the ticker. | Maybe make this `mapName = map?.MapName ?? Loc.GetString("game-ticker-no-map-selected");` |
@@ -61,7 +61,7 @@ class JsonReporter(Reporter):
safe_file_dump(
self.report_path,
json.dumps({
- 'workunits': self._results,
+ 'workunits': self.results,
'artifact_cache_stats': self.run_tracker.artifact_cache_stats.get_all(),
'pantsd_stats': self.run_tracker.pantsd_st... | [JsonReporter->[handle_output->[str,root],start_workunit->[list,root,str,defaultdict,_root_id_to_workunit_stack],_render_messages->[_message_details->[zip_longest,isinstance],list,map],close->[get_all,safe_file_dump,run_information,dumps],end_workunit->[root,outcome_string,str,unaccounted_time,_root_id_to_workunit_stac... | Implementation of Reporter callback. | Can you just delete your override of `close` now? The base class noops, and that would be just fine. You could drop `self._report_path` to and the setup code that entails. |
@@ -195,7 +195,6 @@ class Fiscalyear extends CommonObject
$sql .= ", date_start = '".$this->db->idate($this->date_start)."'";
$sql .= ", date_end = ".($this->date_end ? "'".$this->db->idate($this->date_end)."'" : "null");
$sql .= ", statut = '".$this->db->escape($this->statut?$this->statut:0)."'";
- $sql .= "... | [Fiscalyear->[fetch->[lasterror,fetch_object,jdate,query],getAccountancyMovementsByFiscalYear->[fetch_object,query],create->[query,rollback,last_insert_id,update,begin,lasterror,escape,commit,idate],getLibStatut->[LibStatut],update->[query,rollback,begin,lasterror,escape,commit,idate],LibStatut->[trans],getAccountancyE... | Updates an existing user in the database. | The field datec is a mandatory field into table. Removing it will create an error. May be your database is not up to date ? We can add a migrate instruction to match the definition of table for such case. |
@@ -140,17 +140,11 @@ class MetadataCache {
// could be useful at some point in future
//$guids = $this->filterMetadataHeavyEntities($guids);
- $db_prefix = _elgg_services()->db->getTablePrefix();
$options = array(
'guids' => $guids,
'limit' => 0,
'callback' => false,
'distinct' => false,
- ... | [MetadataCache->[invalidateByOptions->[clearAll,clear]]] | Populates the values of the object with the metadata for the given entities This method is used to populate the values array with the data from the database. | Do we care about ordering? I am not sure if it affects db resources. |
@@ -27,6 +27,7 @@ const jobName = 'validator-tests.js';
function pushBuildWorkflow() {
timedExecOrDie('amp validator');
+ timedExecOrDie('amp validator-cpp');
timedExecOrDie('amp validator-webui');
}
| [No CFG could be retrieved] | Script that runs the validator tests during CI. | Can we move this to the bottom too? |
@@ -0,0 +1,5 @@
+FactoryBot.define do
+ factory :test_student, class: TestStudent, parent: :user do
+ hidden { true }
+ end
+end
| [No CFG could be retrieved] | No Summary Found. | this is no longer necessary |
@@ -112,6 +112,8 @@ class Lbann(CMakePackage):
depends_on('py-onnx@1.3.0:', type='run', when='@:0.90,0.99:')
depends_on('py-pandas@0.24.1:', type='run', when='@:0.90,0.99:')
depends_on('py-texttable@1.4.0:', type='run', when='@:0.90,0.99:')
+ depends_on('py-pytest', type='run', when='@:0.90,0.99:')
+ ... | [Lbann->[common_config_args->[append,format,join],cmake_args->[dirname,format,extend,satisfies],depends_on,extends,conflicts,version,when,variant]] | The environment is a subset of the system s environment and is not a subset of the system Common config options for the C ++ interpreter. | Usually pytest is a `type='test'` dependency. How is it used at run-time in this package? |
@@ -1,4 +1,6 @@
var docs_json = {{ docs_json }};
var render_items = {{ render_items }};
-Bokeh.embed.embed_items(docs_json, render_items{%- if websocket_url -%}, "{{ websocket_url }}" {%- endif -%});
+Bokeh.$(function() {
+ Bokeh.embed.embed_items(docs_json, render_items{%- if websocket_url -%}, "{{ websocket_ur... | [No CFG could be retrieved] | Embeds the docs. json into the bokeh embed. | no newline or semicolon I can imagine breaking something (say we concat another thing after this). |
@@ -127,6 +127,7 @@ def test_long_terms_dont_break_suggestions(base_url, selenium):
@pytest.mark.nondestructive
+@pytest.mark.skip(reason='Search Behavior has changed')
def test_blank_search_loads_results_page(base_url, selenium):
page = Home(selenium, base_url).open()
results = page.search.search_for('... | [test_incompative_extensions_show_as_incompatible->[search_for,click,Home],test_search_loads_and_navigates_to_correct_page->[search_for,Home],test_blank_search_loads_results_page->[search_for,Home],test_long_terms_dont_break_suggestions->[sleep,search_for,Home],test_search_loads_correct_results->[search_for,Home],test_... | Test blank search loads results page. | Let's create an issue if that leads to skipping the test. |
@@ -3191,7 +3191,7 @@ Sedp::Writer::write_participant_message(const ParticipantMessageData& pmd,
(ser << pmd);
if (ok) {
- send_sample(payload, size, reader, sequence);
+ send_sample(payload, size + padding, reader, sequence, reader != GUID_UNKNOWN);
} else {
result = DDS::RETCODE_... | [No CFG could be retrieved] | Reads and writes a message from the DCPS. Reads the header of the last N - tuple. | If this uses `size+padding`, does line 3184 need to change as well? |
@@ -572,6 +572,11 @@ namespace Dynamo.DSEngine
/// </summary>
private void PopulateBuiltIns()
{
+ if (LibraryManagementCore == null)
+ return;
+ if (LibraryManagementCore.CodeBlockList.Count <= 0)
+ return;
+
var builtins = Libr... | [LibraryServices->[TryGetFunctionGroup->[CanbeResolvedTo],PopulatePreloadLibraries->[LoadLibraryMigrations],PopulateBuiltIns->[AddBuiltinFunctions],ImportProcedure->[AddImportedFunctions],ImportClass->[ImportProcedure],LibraryPathComparer->[GetHashCode->[GetHashCode]],PopulateOperators->[AddBuiltinFunctions,GetBinaryFu... | Populate built - in functions. | When there's no preloaded library (i.e. `PathManager.preloadedLibraries` list is empty by default), `LibraryManagementCore.CodeBlockList` will be empty, so `CodeBlockList[0]` will crash. |
@@ -84,10 +84,10 @@ public class QueryRegistryImpl implements QueryRegistry {
insertQueries = new ConcurrentHashMap<>();
original.allLiveQueries.forEach(query -> {
if (query instanceof PersistentQueryMetadata) {
- final PersistentQueryMetadata sandboxed = SandboxedPersistentQueryMetadata.of(
- ... | [QueryRegistryImpl->[close->[close,getAllLiveQueries],createSandbox->[QueryRegistryImpl],ListenerImpl->[onClose->[onClose,unregisterQuery],onError->[onError],onStateChange->[onStateChange]]]] | Construct a new QueryRegistryImpl. Create a TransientQueryMetadata for the given . | nit: leave closing `)` aligned to the `final` (ie where it was before) |
@@ -69,6 +69,16 @@ export const StyledNavItemElement = styled<SharedPropsT>('div', props => {
const paddingSuffixDir: string =
$theme.direction === 'rtl' ? 'paddingLeft' : 'paddingRight';
+ let cursor = $selectable ? 'pointer' : 'default';
+ let color = $active ? colors.primary : null;
+ let hoverColor = $... | [No CFG could be retrieved] | A styled nav item element. Creates a styled nav item with styled sub - nav items. | Personally I would keep it as `default`. `not-allowed` seems too aggressive and we don't use it for disabled elements? |
@@ -179,9 +179,7 @@ class NativeExternalLibraryFetch(Task):
# and replace it with Pants-controlled remotes.
remove_conan_center_remote_cmdline = self._remove_conan_center_remote_cmdline(conan_binary)
try:
- # Slice the command line because subprocess errors when the first element in the
- # lis... | [NativeExternalLibraryFetch->[_fetch_packages->[ensure_conan_remote_configuration,ConanRequirement,_copy_package_contents_from_conan_dir,parse_conan_stdout_for_pkg_sha,NativeExternalLibraryFetchError],_copy_package_contents_from_conan_dir->[_get_conan_data_dir_path_for_package],ensure_conan_remote_configuration->[_add_... | Ensure that the conan remote is configured and present in the remote registry. | This is fixed _only_ if pex path is not specified, correct? Based on the changes to `wrapped_pex` below, it seems this would still be needed if PEX_PATH were set. |
@@ -104,14 +104,11 @@ class GroupByKeyOnlyEvaluatorFactory implements TransformEvaluatorFactory {
try {
// We know the type restrictions on the input PCollection, and the restrictions on the
// Wire coder
- MessageWithComponents wireCoderProto =
- WireCoders.createRunnerWireCo... | [GroupByKeyOnlyEvaluatorFactory->[GroupByKeyOnlyEvaluator->[getKeyCoder->[getKeyCoder]]]] | Get the coder for the key. | Could you use `Components.Builder` rather than `Builder` to make it clear what this is? Same applies to other uses. |
@@ -154,6 +154,11 @@ class Resolver(object):
any(req.has_hash_options for req in root_reqs)
)
+ # Display where finder is looking for packages
+ locations = self.finder.get_formatted_locations()
+ if locations:
+ logger.debug(locations)
+
# Actually prepa... | [Resolver->[_resolve_one->[dist,Installed,_check_skip_installed,add_req,make_abstract_dist,prep_for_dist,_is_upgrade_allowed],_check_skip_installed->[_is_upgrade_allowed]]] | Resolve what operations need to be done . | @pfmoore This is currently logging as debug. Should I make it info, since the only time it would be shown is when the index is not PyPI? It gets buried in the debug mode logging. |
@@ -1142,6 +1142,14 @@ class WikiTablesDecoderStep(DecoderStep[WikiTablesDecoderState]):
# entity_action_mask: (group_size, num_entity_actions)
entity_action_logits, entity_action_mask, entity_type_embeddings = \
self._get_entity_action_logits(state, actions_to_link, atten... | [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... | Takes a single step of the decoder decoder. Missing key - value tensor for the last batch. Computes new states based on a sequence of missing values. | I'd put this behind a flag - allow the `mixture_feedforward_params` to be `None`, and if they are, you skip the mixture. That will let us try both versions side-by-side with just a configuration change, instead of a code change. |
@@ -117,8 +117,12 @@ public final class LifecycleManager extends AbstractModuleLifecycle {
*/
@Override
public void cacheStarting(ComponentRegistry cr, Configuration cfg, String cacheName) {
- InternalCacheRegistry icr = cr.getGlobalComponentRegistry().getComponent(InternalCacheRegistry.class);
+ ... | [LifecycleManager->[verifyChainContainsRemoteValueWrapperInterceptor->[getComponent,containsInterceptorType],cacheStarting->[enabled,isInternalCache,infof,getComponent,isEnabled,createRemoteValueWrapperInterceptor],unregisterProtobufMetadataManagerMBean->[unregisterMBean,CacheException,getGlobalConfiguration,getObjectN... | This method is called when a cache is starting. | Shouldn't you force the start of the ProtobufMetadata cache somewhere? |
@@ -117,6 +117,7 @@ public abstract class MatchResult {
public static Builder builder() {
return new AutoValue_MatchResult_Metadata.Builder()
+ .setIsReadSeekEfficient(false)
.setLastModifiedMillis(UNKNOWN_LAST_MODIFIED_MILLIS);
}
| [MatchResult->[Success->[metadata->[getMetadata]],Failure->[metadata->[getException]]]] | Creates a builder for the missing match result metadata. | I assume this is just keeping existing behavior. |
@@ -83,7 +83,10 @@ class OpenCensusSpan(object):
"""Set the span kind of this span."""
kind = (
OpenCensusSpanKind.CLIENT if value == SpanKind.CLIENT else
+ OpenCensusSpanKind.CLIENT if value == SpanKind.PRODUCER else # No producer in opencensus
OpenCensusSpanKind... | [OpenCensusSpan->[finish->[__exit__],get_current_span->[get_current_span],set_current_span->[set_current_span],start->[__enter__],set_http_attributes->[add_attribute],get_trace_parent->[to_header],__exit__->[__exit__],__enter__->[__enter__],add_attribute->[add_attribute]]] | Set the span kind of this span. | Nitpick: I would probably have considered using a `dict` instead of multiple `if`/`else`s. But this is probably faster given the relatively small number of items we have to map... |
@@ -197,6 +197,11 @@ public class AuthorizationCodeOAuthHandler extends OAuthHandler<AuthorizationCod
.customParameters(config.getCustomParameters())
.customParametersExtractorsExprs(getParameterExtractors(config));
+ if (!featureFlaggingService.isEnabled(NO_OAUTH_REDIRECT_URI)) {
+ Map<Stri... | [AuthorizationCodeOAuthHandler->[initialise->[initialise],register->[register]]] | Creates a dancer that will create a new authorization code grant type based on the given Returns a Dancer that can be used to perform authorization code OAuth. | I don't think the fix should be applied here but in the AuthorizationCodeDancer in the oauth-service. By applying it here, the issue still persists if somebody tries to consume the Dropbox API directly using the Http Connector. The AuthorizationCodeDancerBuilder should expose a method that allows us to configure this b... |
@@ -135,6 +135,16 @@ public class IssueQueryService implements ServerComponent {
}
}
+ private Date buildCreatedAfter(@Nullable Date createdAfter, @Nullable String createdSince) {
+ Preconditions.checkArgument(createdAfter == null || createdSince == null, "createdAfter and createdSince cannot be set simul... | [IssueQueryService->[addComponentParameters->[failIfBothParametersSet],componentUuids->[componentUuids]]] | Create IssueQuery from Map Creates a IssueQuery based on the request parameters. Find all components in the system that match the given request. Get if any. | I would use Preconditions.checkArgument(createdAfter == null || createdSince == null, "createdAfter and createdSince cannot be set simultaneously") at the beginning of the method |
@@ -259,12 +259,11 @@ static int int_x509_param_set1(char **pdest, size_t *pdestlen,
{
void *tmp;
if (src) {
- if (srclen == 0) {
- tmp = OPENSSL_strdup(src);
+ if (srclen == 0)
srclen = strlen(src);
- } else
- tmp = OPENSSL_memdup(src, srclen);
- ... | [X509_VERIFY_PARAM_add0_table->[X509_VERIFY_PARAM_free],X509_VERIFY_PARAM_set1->[X509_VERIFY_PARAM_inherit],X509_VERIFY_PARAM_set1_ip_asc->[X509_VERIFY_PARAM_set1_ip]] | - - - - - - - - - - - - - - - - - -. | strdup NUL terminates; this doesn't. does that matter? |
@@ -122,7 +122,8 @@ class CatMaskPadding(MaskFix):
w_shape = module.weight.data.size()
w_mask = torch.ones(w_shape).to(device)
b_mask = None
- if hasattr(module, 'bias'):
+ if hasattr(module, 'bias') and module.bias is not None:
+ ... | [ChannelMaskConflict->[fix_mask->[,ChannelDependency,list,debug,size,hasattr,update,len,str,sorted,mask,set,ones,join,info,range,prod],__init__->[super]],fix_mask_conflict->[trace,ChannelMaskConflict,set_training,fix_mask,CatMaskPadding,isinstance,exists,GroupMaskConflict,load],CatMaskPadding->[fix_mask->[hasattr,size,... | Fix the mask for the non - pruned layers. | why the config_list in issue 2709 can trigger this problem? |
@@ -2,9 +2,12 @@ require "rails_helper"
RSpec.describe AnalyticsService, type: :service do
let(:user) { create(:user) }
- let(:second_user) { create(:user) }
- let(:article) { create(:article, user: second_user) }
let(:organization) { create(:organization) }
+ let(:article) { create(:article, user: user, pu... | [create,to,let,describe,before,eq,it,require,raise_error,totals,stats_grouped_by_day] | requires the AnalyticsService RSpec returns totals stats for an org. | It's a bit misleading that the test is in the `analytics` directory, while the service itself is just in the `services`. |
@@ -17,7 +17,8 @@
import {devAssert} from './log';
import {map} from './utils/object.js';
-let container;
+let htmlContainer;
+let svgContainer;
/**
* Creates the html helper for the doc.
| [No CFG could be retrieved] | Creates a helper to generate the html for a node or document. Returns a named map of all root elements with a ref attribute. | /cc @alanorozco, does this makes sense? |
@@ -282,8 +282,8 @@ var _ = Describe("Podman run with volumes", func() {
})
It("podman run with tmpfs named volume mounts and unmounts", func() {
- SkipIfRootless("FIXME: rootless podman mount requires you to be in a user namespace")
- SkipIfRemote("podman-remote does not support --volumes this test could be s... | [IsRootless,Close,Mkdir,Fields,Podman,Exit,ShouldNot,WaitWithDefaultTimeout,Should,Stat,ReadFile,To,SeedImages,LookPath,Wait,Contents,Create,Join,OutputToStringArray,Cleanup,Current,Contains,RestoreArtifact,MkdirAll,Command,Printf,GrepString,Sprintf,Sync,OutputToString,BuildImage,Getenv,Setup,InspectContainer] | Expects that the container is mounted on the container s data volume. expects that the volume is mounted as a container. | Removed the FIXME. Maybe this should be a TODO instead? |
@@ -391,12 +391,16 @@ namespace System.Net.Sockets
public int ReceiveFrom(byte[] buffer, System.Net.Sockets.SocketFlags socketFlags, ref System.Net.EndPoint remoteEP) { throw null; }
public int ReceiveFrom(System.Span<byte> buffer, ref System.Net.EndPoint remoteEP) { throw null; }
public int ... | [SocketTaskExtensions->[ReceiveFromAsync->[Never],ReceiveMessageFromAsync->[Never],ReceiveAsync->[Never],AcceptAsync->[Never],SendToAsync->[Never],SendAsync->[Never],ConnectAsync->[Never]],Socket->[Never],Never] | This method is used to read a message from a remote end point. This method is used to send a message to the server. | Note: #43934 incorrectly uses the name `remoteEP` here and in `ReceiveMessageFromAsync`. Matching the existing name is better |
@@ -44,8 +44,11 @@ namespace System.Net.Http
public System.Func<System.Net.Http.HttpRequestMessage, System.Security.Cryptography.X509Certificates.X509Certificate2, System.Security.Cryptography.X509Certificates.X509Chain, System.Net.Security.SslPolicyErrors, bool>? ServerCertificateValidationCallback { get { th... | [No CFG could be retrieved] | Override this method to perform the actual sending of the request asynchronously. | Should not it be 10.0.19041 (ie. the real version number, not the marketing one)? |
@@ -351,6 +351,11 @@ class TorchAgent(Agent):
self.history = deque(maxlen=self.histsz)
# truncate == 0 might give funny behavior
self.truncate = opt['truncate'] if opt['truncate'] >= 0 else None
+ self.left_truncate = (self.truncate if not opt.get('left_truncate')
+ ... | [TorchAgent->[add_cmdline_args->[optim_opts,dictionary_class],get_dialog_history->[_add_person_tokens],vectorize->[_set_text_vec,_set_label_cands_vec,_set_label_vec],receive_metrics->[_is_lr_warming_up],load->[load],init_optim->[optim_opts],observe->[get_dialog_history,last_reply,vectorize],__init__->[dictionary_class]... | Initialize the agent. Initialize optimizer with model parameters and parameters. add betas for optims that use it . | Could do `self.left_truncate = self.get('left_truncate', self.truncate)`. Maybe we should add a guard about negative numbers. |
@@ -254,6 +254,7 @@ namespace System.Net.Sockets
{
public Socket(System.Net.Sockets.SafeSocketHandle handle) { }
public Socket(System.Net.Sockets.AddressFamily addressFamily, System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType) { }
+ [System.Runtime.Versi... | [No CFG could be retrieved] | SendPacketsElement - Send a packet to a file or file - like object. The LingerState object. | @dotnet/ncl @adamsitnik this was missed in the PR that marked windows specific APIs. |
@@ -147,7 +147,11 @@ public class OzoneManagerDoubleBuffer {
});
long startTime = Time.monotonicNowNanos();
- omMetadataManager.getStore().commitBatchOperation(batchOperation);
+ try (Scope s2 = TracingUtil.importAndCreateScope(
+ "DB-commitWriteBatch", l... | [OzoneManagerDoubleBuffer->[add->[add],terminate->[terminate],cleanupCache->[cleanupCache]]] | Flushes all transactions in the buffer. Checks if a thread is interrupted and if so terminates it. | One more question, here for DB commit Batch we are using last trace id, so DB Batch commit span will be linked with the last operation in the queue? |
@@ -108,6 +108,18 @@ func newAuthenticator(config configapi.MasterConfig, accessTokenGetter oauthclie
group.NewTokenGroupAdder(oauthTokenAuthenticator, []string{bootstrappolicy.AuthenticatedOAuthGroup}))
}
+ for _, wta := range config.AuthConfig.WebhookTokenAuthenticators {
+ ttl, err := time.ParseDuration(wta... | [NewForConfig,NewTokenGroupAdder,Users,NewFailOnError,OAuthClients,GetAPIClientCertCAPool,OAuthAccessTokens,PublicKeysFromFile,New,Lister,NewGetterFromClient,Errorf,Oauth,DefaultVerifyOptions,NewAuthenticator,NewUIDValidator,NewSecure,NewTimeoutValidator,NewTokenAuthenticator,V1,User,NewProtocolAuthenticator,Groups,Get... | Allocate a new token and return it. Allocate a list of CA certificates for use with the client. | integration test (which I know you are already working on) |
@@ -85,8 +85,9 @@ public class Http2ServerInitializer extends ChannelInitializer<SocketChannel> {
ChannelPipeline pipeline = ctx.pipeline();
ChannelHandlerContext thisCtx = pipeline.context(this);
pipeline.addAfter(thisCtx.name(), null, new HelloWorldHttp1Handler("Dire... | [Http2ServerInitializer->[initChannel->[configureClearText],UserEventLogger->[userEventTriggered->[println,fireUserEventTriggered]],configureClearText->[messageReceived->[context,protocolVersion,pipeline,fireChannelRead,println,HelloWorldHttp1Handler,addAfter,replace,HttpObjectAggregator,retain,name],addLast,pipeline,U... | Configure the clear text handler. | It seems like replace() has become useless. Maybe it should be removed in Netty 5 as well. |
@@ -395,6 +395,7 @@ export class AmpStoryEmbeddedComponent {
event.stopPropagation();
this.setState_(ComponentState.EXPANDED, this.previousTarget_);
+ this.animateExpanded_(devAssert(this.previousTarget_));
this.storeService_.dispatch(
Action.TOGGLE_EXPANDED_COMPONENT, this.previousTarget... | [No CFG could be retrieved] | Builds tooltip and attaches it to the given target. Updates tooltip icon. | Shouldn't this line be in the `toggleExpandedView_` (or `setState`?) method, so we have all the UI updates triggered from the same place? |
@@ -68,7 +68,9 @@ func (b *jsonEncoder) resetState() {
b.folder, err = gotype.NewIterator(visitor,
gotype.Folders(
codec.MakeTimestampEncoder(),
- codec.MakeBCTimestampEncoder()))
+ codec.MakeBCTimestampEncoder(),
+ codec.MakeNanoTimestampEncoder(),
+ codec.MakeBCNanoTimestampEncoder()))
if err != ni... | [AddHeader->[Add],AddRaw->[resetState],Reset->[Reset],Add->[AddRaw],Marshal->[AddRaw,Reset],resetState] | resetState resets the encoder s state to the initial state. | Same here, choose one. |
@@ -36,3 +36,11 @@ def get_site_settings_uncached(settings_id=None):
# type: (str) -> SiteSettings
"""Query database for settings object."""
return SiteSettings.objects.get_or_create(pk=settings_id)[0]
+
+
+def get_authorization_key_for_backend(backend_name):
+ # type: (str) -> AuthorizationKey
+ s... | [get_domain->[get_site_settings],get_site_settings_from_request->[getattr,get_site_settings_uncached,hasattr],get_site_settings_uncached->[get_or_create],get_site_settings->[getattr,get_site_settings_uncached]] | Query database for site settings object. | Does this execute extra queries? If so, which pages are affected? |
@@ -73,7 +73,8 @@ class EpollEventLoop extends SingleThreadEventLoop {
return epollWaitNow();
}
};
- @SuppressWarnings("unused") // AtomicIntegerFieldUpdater
+ // wakenUp is a packed field, where the bottom bit indicates if the loop is trying to exit
+ // The high bits indicate if th... | [EpollEventLoop->[epollWaitNow->[epollWait],newTaskQueue->[newTaskQueue],run->[epollWait,epollBusyWait],remove->[remove],closeAll->[epollWaitNow],processReady->[get],epollWait->[epollWait],epollBusyWait->[epollBusyWait]]] | Get the next free node ID. | Not sure the bits have any relevance, could be arbitrary unique integers? could as well just be 0, 1, 2? |
@@ -93,7 +93,9 @@ EOT
$cacheDir = $config->get('cache-dir');
$rollbackDir = $config->get('data-dir');
$home = $config->get('home');
+ $homeOwner = posix_getpwuid(fileowner($home));
$localFilename = realpath($_SERVER['argv'][0]) ?: $_SERVER['argv'][0];
+ $composeUser = p... | [SelfUpdateCommand->[configure->[setHelp],rollback->[setLocalPhar,getMessage,getLastBackupVersion,writeError,getIO],getLastBackupVersion->[sortByName,getOldInstallationFinder],cleanBackups->[getBasename,writeError,getOldInstallationFinder,remove,getIO],getOldInstallationFinder->[in],fetchKeys->[ask,write,isInteractive,... | Executes the command Downloads the new composer. phar if it is not already installed. Checks if the openssl extension is available and if not creates a new key in the home home Public function to store a file containing all the keys of a tag that are available on the This function checks the signature of a protected pr... | This check should only be done if posix_getpwuid / posix_geteuid are defined and callable, as the posix functions are typically disabled or not available in some environments and we don't want to fail the update in those cases. |
@@ -159,6 +159,7 @@ function checkForErrors(jdlObject, configuration) {
let applicationType = configuration.applicationType;
let databaseType = configuration.databaseType;
let skippedUserManagement = configuration.skipUserManagement;
+ let blueprints = configuration.blueprints;
... | [No CFG could be retrieved] | Reads the JHipster configuration object and returns an object with the parsed JDL content Checks if. yo - rc. json exists and if so returns it. | You've forgotten to add the "blueprints" param to the jsdoc starting from l.63. |
@@ -64,7 +64,7 @@ T = TypeVar('T')
DeferredNode = NamedTuple(
'DeferredNode',
[
- ('node', Node),
+ ('node', Union[Expression, Statement, FuncItem]),
('context_type_name', Optional[str]), # Name of the surrounding class (for error messages)
])
| [TypeChecker->[analyze_async_iterable_item_type->[check_awaitable_expr,accept],visit_try_without_finally->[check_assignment,accept],check_usable_type->[is_unusable_type],visit_op_expr->[visit_op_expr],visit_operator_assignment_stmt->[accept,check_indexed_assignment],visit_unicode_expr->[visit_unicode_expr],visit_yield_... | A function to check a node for type checked. Helper for type checking expressions. | Actually I think it can only be FuncItem. |
@@ -475,7 +475,7 @@ namespace Microsoft.WebAssembly.Diagnostics
private TypeDefinition type;
private List<MethodInfo> methods;
internal int Token { get; }
-
+ internal string Namespace { get; }
public TypeInfo(AssemblyInfo assembly, TypeDefinitionHandle typeHandle, TypeDefinit... | [AssemblyInfo->[PopulateEnC->[UpdateEnC],ProcessSourceLink->[ToString]],SourceFile->[HashAlgorithm->[Equals],GetSourceAsync->[CheckPdbHash,ComputePdbHash],ToScriptSource->[ToString],ComputePdbHash->[HashAlgorithm],ToString],SourceId->[TryParse->[TryParse],GetHashCode->[GetHashCode],Equals],DebugStore->[FindBreakpointLo... | Creates a new TypeInfo object from an assembly and a type definition and a list of methods TypeInfo - A list of MethodInfo objects that represent a single type. | nit: insert empty line |
@@ -39,14 +39,14 @@ module.exports = {
* @param {Array<String>} entityNames - all the entities' names.
* @return {Map<String, Array<Object>>} a map having for keys entity names and for values arrays of JSON relationships.
*/
-function convert(jdlRelationships = [], entityNames = []) {
+function convert(jdlRelatio... | [No CFG could be retrieved] | Converts passed JDL relationships to JSON content. injectedFieldInTo - The field that is injected in the relationship is the entity name. | Missing in the doc |
@@ -11,7 +11,7 @@ namespace Pulumi.Automation.Commands
internal interface IPulumiCmd
{
Task<CommandResult> RunAsync(
- IEnumerable<string> args,
+ IList<string> args,
string workingDir,
IDictionary<string, string?> additionalEnv,
Action<str... | [No CFG could be retrieved] | RunAsync - Async version of Run. | Hm, this was an automatically suggested change? I wonder why it did that. It seems to me IEnumerable has fewer assumptions than IList, and if RunAsync does not need random access, the change weakens it? Just curious why it decided to change this. |
@@ -4658,6 +4658,12 @@ p {
$connection = self::connection();
+ $calypso_env = self::get_calypso_env();
+
+ if ( ! empty( $calypso_env ) ) {
+ $args['calypso_env'] = $calypso_env;
+ }
+
$api_url = $iframe ? $connection->api_url( 'authorize_iframe' ) : $connection->api_url( 'authorize' );
return add_q... | [Jetpack->[reset_saved_auth_state->[reset_saved_auth_state],add_remote_request_handlers->[require_jetpack_authentication],admin_page_load->[disconnect],register->[register],translate_role_to_cap->[translate_role_to_cap],__construct->[init],get_locale->[guess_locale_from_lang],authenticate_jetpack->[authenticate_jetpack... | Builds the authorization URL. This function is used to provide a basic authentication request. Add query arg to query object. | Where this lived previously, we'd add the `calypso_env` arg for register URLs too. After the change, this will no longer be the case. Is this something we should be worried about? |
@@ -306,6 +306,8 @@ public class AceEditorIdleCommands
public final IdleCommand PREVIEW_LINK;
public final IdleCommand PREVIEW_LATEX;
+ private static int ID;
+
// Injected ----
private SourceWindowManager swm_;
}
\ No newline at end of file
| [AceEditorIdleCommands->[AnchoredPopupPanel->[toggleSize->[showLarge,isSmall,showSmall]]]] | ---- Hierarchy Command. | nit: explicitly initialize to 0? |
@@ -230,8 +230,8 @@ export class Platform {
/**
* @param {!Window} window
- * @return {*} TODO(#23582): Specify return type
+ * @return {undefined}
*/
export function installPlatformService(window) {
- return registerServiceBuilder(window, 'platform', Platform);
+ registerServiceBuilder(window, 'platform', Pl... | [No CFG could be retrieved] | Registers a platform service to the window. | Just remove `@return` entirely? |
@@ -649,10 +649,14 @@ class Assignment < ActiveRecord::Base
final_result.push(criterion.max)
end
final_result.push(submission.get_latest_result.get_total_extra_points)
- final_result.push(submission.get_latest_result.get_total_extra_percentage)
+ final_result.push(
+... | [Assignment->[get_detailed_csv_report_rubric->[total_mark],group_by->[group_assignment?],grade_distribution_as_percentage->[total_mark],get_simple_csv_report->[total_mark],get_detailed_csv_report_flexible->[total_mark],reset_collection_time->[reset_collection_time],median->[average],grouping_past_due_date?->[past_all_d... | This method returns a detailed report of the missing missing mark and percentage of records for a specific. | Trailing whitespace detected. |
@@ -345,8 +345,8 @@ public class Cli implements Closeable, AutoCloseable {
);
} catch (final IOException e) {
throw new KsqlException(
- " Could not read statements from file: " + schemaFilePath + ". " + "Details: "
- + e.getMessage(),
+ "Could not read statements from the ... | [Cli->[setProperty->[setProperty],displayWelcomeMessage->[displayWelcomeMessage],readLine->[readLine],handlePrintedTopic->[close],unsetProperty->[printKsqlResponse,unsetProperty],RemoteServerSpecificCommand->[execute->[validateClient]],close->[close],runInteractively->[validateClient]]] | This method gets the content of a single statement from the KSQL server and executes it if. | I am not sure adding the new lines to the string is a good idea. It assumes too much about how the message is displayed. Let's drop the new lines and then we can merge this. |
@@ -201,8 +201,7 @@ def convert(output_path,
def write_data(w, lines):
random.shuffle(lines)
for i, d in enumerate(lines):
- d = pickle.dumps(d, pickle.HIGHEST_PROTOCOL)
- w[i % num_shards].write(d)
+ w[i % num_shards].write(str(d))
w = open_writers()
... | [download->[md5file],convert->[close_writers,write_data,reader,open_writers]] | Convert data from reader to recordio format files. | Is it hurt the speed if we remove the Pickle module? |
@@ -1,7 +1,7 @@
# -*- encoding : utf-8 -*-
require 'digest/sha1'
-class AddHashToInfoRequest < ActiveRecord::Migration
+class AddHashToInfoRequest < !rails5? ? ActiveRecord::Migration : ActiveRecord::Migration[4.2] # 2.3
def self.up
add_column :info_requests, :idhash, :string
| [AddHashToInfoRequest->[up->[incoming_email_secret,to_s,save!,change_column,hexdigest,add_column,each,idhash],down->[remove_column]],require] | Create missing events for all InfoRequests and add them to the database. | Line is too long. [100/80] |
@@ -82,6 +82,17 @@ else:
except ImportError:
cythonize = lambda *args, **kwargs: []
+# Copy standard_coders.yaml from the common resource location.
+STANDARD_CODER_COMMON_PATH = ("../common/fn-api/src/test/resources/"
+ "org/apache/beam/fn/v1/standard_coders.yaml")
+STANDARD_CODER... | [get_version->[execfile,normpath],find_packages,get_distribution,system,get_version,format,warn,cythonize,setup,StrictVersion] | Provides a function to provide a specific version of a n - tuple. Package name version version protobuf protobuf_url download_url python_gflags python. | os.path.join(__file__, ...) in case this is run from elsewhere. |
@@ -26,7 +26,7 @@ class NPAtobaraiGatewayPlugin(BasePlugin):
PLUGIN_ID = "mirumee.payments.np-atobarai"
PLUGIN_NAME = GATEWAY_NAME
CONFIGURATION_PER_CHANNEL = True
- SUPPORTED_CURRENCIES = "JPY"
+ SUPPORTED_CURRENCIES = "JPY,PLN,USD"
DEFAULT_CONFIGURATION = [
{"name": MERCHANT_CODE,... | [NPAtobaraiGatewayPlugin->[refund_payment->[_get_gateway_config],capture_payment->[_get_gateway_config],void_payment->[_get_gateway_config],validate_plugin_configuration->[validate_authentication],process_payment->[process_payment,_get_gateway_config]]] | This function is used to create a specific NP - Atobarai gateway plugin. Configuration for the NP . | Is it expected? |
@@ -41,7 +41,7 @@ print(__doc__)
# some probability (e.g., p < 0.05). This probability is also called the
# significance level :math:`\alpha`.
# To think about what this means, let's follow the illustrative example from
-# [1]_ and construct a toy dataset consisting of a 40 x 40 square with a
+# :footcite:`RidgwayEt... | [plot_t_p->[log10,set_ticks,add_subplot,plt_show,set_label,set_ticklabels,axes,maximum,subplots_adjust,set_weight,ppf,colorbar,get_xaxis,suptitle,reshape,figure],partial,tight_layout,exp,permutation_t_test,grid,ppf,permutation_cluster_1samp_test,figure,imshow,show,dict,ttest_1samp,convolve,set,sf,zeros,range,abs,fdr_co... | Plots a 3D plot of the given n - th non - null hypothesis with a Spatially smooth with a 2D Gaussian kernel. | this will yield a "line too long" error from our style checker. Max line length is 79 characters. |
@@ -199,7 +199,7 @@ def resize_keypoints(keypoints, original_size, new_size):
def resize_boxes(boxes, original_size, new_size):
# type: (Tensor, List[int], List[int])
- ratios = [float(s) / float(s_orig) for s, s_orig in zip(new_size, original_size)]
+ ratios = [torch.scalar_tensor(s) / torch.scalar_tenso... | [GeneralizedRCNNTransform->[resize->[torch_choice],batch_images->[max_by_axis,_onnx_batch_images]]] | Resizes boxes to new_size. | you probably need to specify the dtype as `float32` otherwise we might have an issue with the integer division |
@@ -226,9 +226,6 @@ export class AmpSlideScroll extends BaseSlides {
*/
touchMoveHandler_() {
this.clearAutoplay();
- if (!this.hasNativeSnapPoints_) {
- return;
- }
this.hasTouchMoved_ = true;
if (this.touchEndTimeout_) {
Services.timerFor(this.win).cancel(this.touchEndTimeout_)... | [AmpSlideScroll->[hideRestOfTheSlides_->[setStyle,includes],triggerAnalyticsEvent_->[dev,abs],analyticsEvent_->[triggerAnalyticsEvent],constructor->[isIos,platformFor,isExperimentOn],onLayoutMeasure->[dev],touchEndHandler_->[timerFor],updateOnScroll_->[isFiniteNumber],layoutCallback->[dev,resolve],showSlideAndTriggerAc... | touchMoveHandler_ - touchMoveHandler. | Condition never met now. |
@@ -1512,11 +1512,10 @@ public class Functions {
(grp != null ? grp : "?") + " " +
ti.getThreadState());
if (ti.getLockName() != null) {
- sb.append(" on " + ti.getLockName());
+ sb.append(" on ").... | [Functions->[isCollapsed->[isCollapsed],subList->[subList],getSearchURL->[getUrl],doPrintStackTrace->[doPrintStackTrace],xmlEscape->[xmlEscape],getRelativeNameFrom->[getRelativeNameFrom],emptyList->[emptyList],getServerName->[getServerName],getCrumb->[getCrumb],getCurrentDescriptorByNameUrl->[getCurrentDescriptorByName... | Dump the thread info. appends the string representation of a object. | Not sure this is worth the reduced readability? (Also, can't `javac` do this by now?) |
@@ -48,8 +48,8 @@ class ParserNodeUtilTest(unittest.TestCase):
params = self._setup_parsernode()
ctrl = self._setup_parsernode()
- ancestor, dirty, filepath, metadata = util.parsernode_kwargs(params)
- self.assertEqual(ancestor, ctrl["ancestor"])
+ ancestors, dirty, filepath, me... | [ParserNodeUtilTest->[test_missing_required->[_setup_directivenode,_setup_commentnode,_setup_parsernode],test_commentnode->[_setup_commentnode],_setup_commentnode->[_setup_parsernode],test_parsernode->[_setup_parsernode],_setup_directivenode->[_setup_parsernode],test_commentnode_from_metadata->[_setup_commentnode],test... | Test that parsernode has the correct attributes. | This change makes me think that a) maybe we should use a set here instead of a tuple, and b) we might need to fix the equality checks in `assertions` |
@@ -547,10 +547,11 @@ public abstract class ExtensionDefinitionParser {
private boolean parseAsContent(boolean isContent, MetadataType type) {
if (isContent) {
- parseFromTextExpression(fieldName, fieldDsl.get(),
- () -> value -> valueResolverFactory.of(fieldN... | [ExtensionDefinitionParser->[parseFromTextExpression->[parseFromTextExpression],parseAttributeParameter->[parseAttributeParameter],parseProcessorChain->[addDefinition,addParameter],parseInlineParameterGroup->[parse,addParameter],parseObjectParameter->[parseObjectParameter,parseFromTextExpression],parseObject->[parse,pa... | Parse a field. Parses the object field. | misleading method name: this is no necessarily an object |
@@ -158,7 +158,7 @@ class ResultsController < ApplicationController
@grouping = current_user.accepted_grouping_for(@assignment.id)
if @grouping.nil?
- redirect_to :controller => 'assignments', :action => 'student_interface', :id => params[:id]
+ redirect_to controller: 'assignments', action: 'stud... | [ResultsController->[create->[redirect_to,id,find,get_result_used,new,has_result?,submission,result_version_used,save,marking_state],add_extra_mark->[new,find,unit,render,update_attributes,result,post?,save],view_marks->[submission_files,find,percentage,accepted_grouping_for,first,rubric_criteria,released_to_students,g... | This action shows the necessary information for a single node in the marks. It also shows the. | Line is too long. [89/80] |
@@ -849,7 +849,8 @@ public class DataflowPipelineTranslator {
stepContext.addEncodingInput(fn.getAccumulatorCoder());
- boolean isFnApi = DataflowRunner.useUnifiedWorker(context.getPipelineOptions());
+ List<String> experiments = context.getPipelineOptions().getExperiments();
+ ... | [DataflowPipelineTranslator->[StepTranslator->[addCollectionToSingletonOutput->[get,addOutput],addInput->[addInput,getProducer,getProperties,asOutputReference],getProperties->[getProperties],addEncodingInput->[getProperties],addOutput->[addInput,getProperties,registerOutputName,get,addOutput],addDisplayData->[getProper... | Helper method for Translation. | Assuming the ULR goes green, I think this piece can be omitted. This got pulled in but is not really related. |
@@ -387,7 +387,7 @@ static void add_file(struct vlc_source *c, struct darray *array,
dstr_copy(&new_path, path);
#ifdef _WIN32
- dstr_replace(&new_path, "/", "\\");
+ //dstr_replace(&new_path, "/", "\\");
#endif
path = new_path.array;
| [bool->[dstr_free,dstr_cmp,dstr_copy,dstr_ncopy,strchr],obs_properties_t->[obs_properties_create,dstr_cat,dstr_resize,pthread_mutex_lock,obs_properties_add_list,dstr_free,dstr_replace,dstr_copy,obs_properties_add_bool,da_end,obs_properties_add_editable_list,strrchr,dstr_cat_dstr,obs_property_list_add_string,pthread_mut... | Adds a file to the list of files. | slash conversion should not be done to urls. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.