idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
213,093
public // ========================================================================================================<NEW_LINE>UserDetails mapUserFromContext(DirContextOperations ctx, String username, Collection<? extends GrantedAuthority> authorities) {<NEW_LINE>String dn = ctx.getNameInNamespace();<NEW_LINE>LOG.debug("M...
essence = new LdapUserDetailsImpl.Essence();
982,999
public void start(Listener listener) {<NEW_LINE>Preconditions.checkState(this.resolverUpdater == null, "ControllerNameResolver has already been started");<NEW_LINE>Preconditions.checkState(!shutdown, "ControllerNameResolver is shutdown, restart is not supported");<NEW_LINE>this.resolverUpdater = listener;<NEW_LINE>bool...
servers = new ArrayList<>();
1,108,613
public void onRender(Env env, Scope scope, Writer writer) {<NEW_LINE>String <MASK><NEW_LINE>String style = getPara("style", scope);<NEW_LINE>Boolean hasThumbnail = getParaToBool("hasThumbnail", scope);<NEW_LINE>String orderBy = getPara("orderBy", scope, "id desc");<NEW_LINE>int count = getParaToInt("count", scope, 10);...
flag = getPara("flag", scope);
265,361
public DiscordantPairEvidence decode(final String line) {<NEW_LINE>final List<String> <MASK><NEW_LINE>if (tokens.size() != 7) {<NEW_LINE>throw new IllegalArgumentException("Invalid number of columns: " + tokens.size());<NEW_LINE>}<NEW_LINE>final String startContig = tokens.get(0);<NEW_LINE>// Adjust for 0-based indexin...
tokens = splitter.splitToList(line);
1,056,066
public Request<DescribeDocumentClassifierRequest> marshall(DescribeDocumentClassifierRequest describeDocumentClassifierRequest) {<NEW_LINE>if (describeDocumentClassifierRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeDocumentClassifierRequest)");<NEW_LINE>}<NEW_L...
t.getMessage(), t);
1,211,694
protected void renderAsyncOutput(HttpServletRequest request, HttpServletResponse response, App app, RenderContext renderContext, DOMNode rootElement, final long requestStartTime) throws IOException {<NEW_LINE>final AsyncContext async = request.startAsync();<NEW_LINE>final ServletOutputStream out = async.getResponse().g...
logger.warn("Unexpected exception", t);
606,368
private void readTokenPermissions(JsonReader reader) throws IOException {<NEW_LINE>reader.beginArray();<NEW_LINE>while (reader.hasNext()) {<NEW_LINE>reader.beginObject();<NEW_LINE>Long tokenId = null;<NEW_LINE>Set<Long> permissions = new HashSet<>();<NEW_LINE>while (reader.hasNext()) {<NEW_LINE>switch(reader.peek()) {<...
saved = permissionRepository.saveRawPermission(p);
1,419,524
public void queryDatabase(DatastoreMetricQuery query, QueryCallback queryCallback) throws DatastoreException {<NEW_LINE>GenOrmQueryResultSet<? extends <MASK><NEW_LINE>try {<NEW_LINE>while (idQuery.next()) {<NEW_LINE>MetricIdResults result = idQuery.getRecord();<NEW_LINE>String metricId = result.getMetricId();<NEW_LINE>...
MetricIdResults> idQuery = getMetricIdsForQuery(query);
1,422,907
protected Cache buildLocal(CachedAnnoConfig cachedAnnoConfig, String area) {<NEW_LINE>EmbeddedCacheBuilder cacheBuilder = (EmbeddedCacheBuilder) globalCacheConfig.getLocalCacheBuilders().get(area);<NEW_LINE>if (cacheBuilder == null) {<NEW_LINE>throw new CacheConfigException("no local cache builder: " + area);<NEW_LINE>...
(cachedAnnoConfig.getKeyConvertor()));
281,317
private boolean checkMatchIndex(int index) throws LeaderUnknownException, TException, InterruptedException {<NEW_LINE>Log log = logs.get(index);<NEW_LINE>synchronized (raftMember.getTerm()) {<NEW_LINE>// make sure this node is still a leader<NEW_LINE>if (raftMember.getCharacter() != NodeCharacter.LEADER) {<NEW_LINE>thr...
LeaderUnknownException(raftMember.getAllNodes());
261,895
private GridFieldVO createVO(MBrowseField field, boolean isTo, int windowNo) {<NEW_LINE>// Create Field<NEW_LINE>GridFieldVO voBase = GridFieldVO.createStdField(field.getCtx(), windowNo, 0, 0, 0, false, false, false);<NEW_LINE>String uniqueName = field.getAD_View_Column().getColumnName() + (isTo ? "_To" : "");<NEW_LINE...
.ValueMin = field.getValueMin();
982,986
public soot.Value eval(Body b) {<NEW_LINE>if (type().isString() && isConstant())<NEW_LINE>return soot.jimple.StringConstant.v(constant().stringValue());<NEW_LINE>if (isStringAdd()) {<NEW_LINE>Local v;<NEW_LINE>if (firstStringAddPart()) {<NEW_LINE>// new StringBuffer<NEW_LINE>v = b.newTemp(b.newNewExpr(lookupType("java....
), this), this));
100,323
public void reconstituteGD() throws MessageStoreException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "reconstituteGD");<NEW_LINE>// There should only be one TargetProtocolItemStream in the BaseDestinationHandler.<NEW_LINE>NonLockingCursor cursor = _baseDestinati...
exit(tc, "reconstituteGD", e);
559,107
private void createLambdaSamMethod(LambdaExpression x, JMethod interfaceMethod, SourceInfo info, JClassType innerLambdaClass, List<JField> locals, JField outerField, JMethod lambdaMethod, JMethod samMethod) {<NEW_LINE>// The parameters to this method will be the same as the Java interface that must be<NEW_LINE>// imple...
JMethodBody samMethodBody = new JMethodBody(info);
38,009
/*<NEW_LINE>* Computes the paths of projects and jars that the hierarchy on the given type could contain.<NEW_LINE>* This is a super set of the project and jar paths once the hierarchy is computed.<NEW_LINE>*/<NEW_LINE>private IPath[] computeProjectsAndJars(IType type) throws JavaModelException {<NEW_LINE>HashSet set =...
= (JavaProject) projects[i];
63,021
// Creates debug segment container instances, puts them in a map and returns it.<NEW_LINE>private Map<Integer, DebugStreamSegmentContainer> startDebugSegmentContainers(Context context, BookKeeperLogFactory dataLogFactory) throws Exception {<NEW_LINE>// Start a debug segment container corresponding to the given containe...
debugStreamSegmentContainerMap = new HashMap<>();
1,535,183
private void loadNode394() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupFolderType_DefaultHttpsGroup_TrustList_Size, new QualifiedName(0, "Size"), new LocalizedText("en", "Size"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Varia...
.expanded(), false));
1,514,591
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) {<NEW_LINE>Map<String, Object> streamPollerProperties = new HashMap<>();<NEW_LINE>String[] pollerPropertySuffixes = { "fixed-delay", "max-messages-per-poll", "cron", "initial-delay" };<NEW_LINE>PropertyMapper map = Pr...
(INTEGRATION_PROPERTY_PREFIX + pollerPropertySuffix, value));
400,079
boolean isExpressionEffectivelyFinal(JavaExpression expr) {<NEW_LINE>if (expr instanceof FieldAccess) {<NEW_LINE>FieldAccess fieldAccess = (FieldAccess) expr;<NEW_LINE>JavaExpression receiver = fieldAccess.getReceiver();<NEW_LINE>// Don't call fieldAccess<NEW_LINE>return fieldAccess.isFinal() && isExpressionEffectively...
) expr).getElement());
1,481,808
private UnitDuty pickObject(String flag) throws Exception {<NEW_LINE>UnitDuty o = this.entityManagerContainer().flag(flag, UnitDuty.class);<NEW_LINE>if (o != null) {<NEW_LINE>this.entityManagerContainer().get(UnitDuty.class).detach(o);<NEW_LINE>} else {<NEW_LINE>String name = flag;<NEW_LINE>Matcher matcher = Persistenc...
flag(unique, UnitDuty.class);
938,505
public String[] synthesize(AnalyzedToken token, String posTag) throws IOException {<NEW_LINE>if (posTag.startsWith(SPELLNUMBER_TAG)) {<NEW_LINE>String[] tag = posTag.split(":");<NEW_LINE>String strToSpell = token.getToken();<NEW_LINE>if (tag.length > 1 && tag[1].equals("feminine")) {<NEW_LINE>strToSpell = "feminine " +...
toArray(new String[0]);
1,447,586
final ListResiliencyPoliciesResult executeListResiliencyPolicies(ListResiliencyPoliciesRequest listResiliencyPoliciesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResiliencyPoliciesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
640,938
public List<KeyValue> genKeyValueByEsbDataStruct(List<EsbDataStruct> dataStructRequestList, String prefix) {<NEW_LINE>List<KeyValue> returnList = new ArrayList<>();<NEW_LINE>for (EsbDataStruct request : dataStructRequestList) {<NEW_LINE>String itemName = request.getName();<NEW_LINE>if (StringUtils.isNotEmpty(prefix)) {...
setValue(request.getValue());
578,125
final DescribeAppInstanceUserResult executeDescribeAppInstanceUser(DescribeAppInstanceUserRequest describeAppInstanceUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAppInstanceUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,532,825
protected void appendBytes(byte[] buf) {<NEW_LINE>if (null == buf)<NEW_LINE>return;<NEW_LINE>if (preallocated > 0) {<NEW_LINE>if (paofs + buf.length > pabuf.length)<NEW_LINE>throw new ArrayIndexOutOfBoundsException(MessageFormat.format(getString("arrayOutOfBounds"), new Object[] { paofs, pabuf.<MASK><NEW_LINE>System.ar...
length, buf.length }));
571,322
public static AnomalyDetectionConfigurationPatch toInnerForUpdate(ClientLogger logger, AnomalyDetectionConfiguration detectionConfiguration) {<NEW_LINE>AnomalyDetectionConfigurationPatch innerDetectionConfiguration = new AnomalyDetectionConfigurationPatch();<NEW_LINE>innerDetectionConfiguration.setName(detectionConfigu...
(Collectors.toList()));
1,795,189
public Pair<Long, Account> doInTransaction(TransactionStatus status) {<NEW_LINE>// create account<NEW_LINE>String accountUUID = accountUUIDFinal;<NEW_LINE>if (accountUUID == null) {<NEW_LINE>accountUUID = UUID.randomUUID().toString();<NEW_LINE>}<NEW_LINE>AccountVO account = createAccount(accountNameFinal, accountType, ...
user.getId(), account);
1,592,019
private RxDocumentServiceRequest addBatchHeaders(RxDocumentServiceRequest request, ServerBatchRequest serverBatchRequest, DocumentCollection collection) {<NEW_LINE>if (serverBatchRequest instanceof SinglePartitionKeyServerBatchRequest) {<NEW_LINE>PartitionKey partitionKey = ((SinglePartitionKeyServerBatchRequest) serve...
partitionKeyInternal = BridgeInternal.getPartitionKeyInternal(partitionKey);
1,198,450
private void blockComponents(@Nullable List<ItemCount> componentCounts, @NonNull String[] signatures) {<NEW_LINE>mProgressIndicator.hide();<NEW_LINE>if (componentCounts == null) {<NEW_LINE>UIUtils.displayShortToast(R.string.failed_to_fetch_package_info);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (componentCounts.isEmpty(...
count, component.count)));
721,516
public void test() throws Exception {<NEW_LINE>// set up the execution environment<NEW_LINE>final StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();<NEW_LINE>URL ratingResourcesPath = this.getClass().getResource("/webroot/sampledata/ratings.csv");<NEW_LINE>// monitor directory, check...
), FileProcessingMode.PROCESS_CONTINUOUSLY, 100);
269,380
public static Order adaptOrderInfo(CoinoneOrderInfoResponse coinoneOrderInfoResponse) {<NEW_LINE>ArrayList<Order> orders = new ArrayList<Order>();<NEW_LINE>OrderStatus status = OrderStatus.NEW;<NEW_LINE>if (coinoneOrderInfoResponse.getStatus().equals("live"))<NEW_LINE>status = OrderStatus.NEW;<NEW_LINE>else if (coinone...
subtract(orderInfo.getRemainQty());
655,821
public PhysicalDbInstance select(Boolean master, boolean isForUpdate, boolean write) throws IOException {<NEW_LINE>if (rwSplitMode == RW_SPLIT_OFF && (master != null && !master)) {<NEW_LINE>LOGGER.warn("force slave,but the dbGroup[{}] doesn't contains active slave dbInstance", groupName);<NEW_LINE>throw new IOException...
instances = getRWDbInstances(master == null);
333,296
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(targetPointer.getFirst(game, source));<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent();<NEW_LINE>int realCount = game.get...
getState().processAction(game);
1,103,467
public Vector3d project(double x, double y, double z, int[] viewport, Vector3d winCoordsDest) {<NEW_LINE>double invW = 1.0 / Math.fma(m03, x, Math.fma(m13, y, Math.fma(m23, z, m33)));<NEW_LINE>double nx = Math.fma(m00, x, Math.fma(m10, y, Math.fma(m20, z, m30))) * invW;<NEW_LINE>double ny = Math.fma(m01, x, Math.fma(m1...
3], viewport[1]);
711,692
protected void commonAssignmentCheck(Tree varTree, ExpressionTree valueExp, @CompilerMessageKey String errorKey, Object... extraArgs) {<NEW_LINE>// field write of the form x.f = y<NEW_LINE>if (TreeUtils.isFieldAccess(varTree)) {<NEW_LINE>// cast is safe: a field access can only be an IdentifierTree or MemberSelectTree<...
(lhs)).getAnnotations();
1,628,273
private void loadTagValues(final String tagGroup, final List<String> tagNameList) {<NEW_LINE>final List<TagData> dataList = new ArrayList<TagData>();<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objType", objType);<NEW_LINE>param.put(...
.totalCnt = in.readFloat();
625,562
public void applyChanges() {<NEW_LINE>EntityCreationPreferences.setUseDefaultBaseIRI(iriBaseSpecifiedIri.isSelected());<NEW_LINE>try {<NEW_LINE>IRI defaultBase = IRI.create(new URI(iriDefaultBaseField.getText()));<NEW_LINE>EntityCreationPreferences.setDefaultBaseIRI(defaultBase);<NEW_LINE>} catch (URISyntaxException e)...
EntityCreationPreferences.setAutoIDGeneratorClass(RandomProlong.class);
537,275
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {<NEW_LINE>Graphics2D g2d = (Graphics2D) g;<NEW_LINE>g2d.setRenderingHint(<MASK><NEW_LINE>Area rect = new Area(new RoundRectangle2D.Float(x, y, width - 3, height - 2, 4, 4));<NEW_LINE>g2d.setColor(COLOR_BORDER);<NEW_LINE>g2d.draw(rect...
RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
1,465,137
public Authentication authenticate(Authentication authentication) throws AuthenticationException {<NEW_LINE>OAuth2ClientCredentialsAuthenticationToken clientCredentialsAuthentication = (OAuth2ClientCredentialsAuthenticationToken) authentication;<NEW_LINE>OAuth2ClientAuthenticationToken clientPrincipal = getAuthenticate...
throw new OAuth2AuthenticationException(OAuth2ErrorCodes.INVALID_SCOPE);
518,988
public com.amazonaws.services.iotanalytics.model.ServiceUnavailableException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.iotanalytics.model.ServiceUnavailableException serviceUnavailableException = new com.amazonaws.services.iotanalytics.model.ServiceUnavail...
int originalDepth = context.getCurrentDepth();
49,737
public SOAPMessage invoke(SOAPMessage request) {<NEW_LINE>String expectedPasswordType = "<wsse:Password Type=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest\">";<NEW_LINE>SOAPMessage response = null;<NEW_LINE>try {<NEW_LINE>System.out.println("Incoming Client Request ...
MessageFactory factory = MessageFactory.newInstance();
1,481,808
private UnitDuty pickObject(String flag) throws Exception {<NEW_LINE>UnitDuty o = this.entityManagerContainer().flag(flag, UnitDuty.class);<NEW_LINE>if (o != null) {<NEW_LINE>this.entityManagerContainer().get(UnitDuty.class).detach(o);<NEW_LINE>} else {<NEW_LINE>String name = flag;<NEW_LINE>Matcher matcher = Persistenc...
.class).detach(o);
1,674,466
public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case R.id.action_follow:<NEW_LINE>mPresenter.followUser(!mPresenter.isFollowing());<NEW_LINE>invalidateOptionsMenu();<NEW_LINE>showSuccessToast(mPresenter.isFollowing() ? getString(R.string.followed) : getString(R.string....
getUser().getHtmlUrl());
521,082
public static void dumpFormattingModel(final Block block, int indent, final StringBuilder builder) {<NEW_LINE>if (indent == 0) {<NEW_LINE>builder.append("--- FORMATTING MODEL ---\n");<NEW_LINE>}<NEW_LINE>builder.append(StringUtil.repeatSymbol(' ', indent));<NEW_LINE>List<Block> subBlocks = block.getSubBlocks();<NEW_LIN...
spacing, indent + 2, builder);
256,563
protected EncodedValue makeConstantItem(SootField sf, Tag t) {<NEW_LINE>if (!(t instanceof ConstantValueTag)) {<NEW_LINE>throw new DexPrinterException("error: t not ConstantValueTag.");<NEW_LINE>}<NEW_LINE>if (t instanceof IntegerConstantValueTag) {<NEW_LINE>IntegerConstantValueTag i = (IntegerConstantValueTag) t;<NEW_...
short) i.getIntValue());
91,172
private List<SysInfoItem> sortSysInfoItems(List<SysInfoItem> sysInfoItems) {<NEW_LINE>List<SysInfoItem> data = sysInfoItems == null ? mInfoItemAdapter.getData() : sysInfoItems;<NEW_LINE>if (mSortGroup.getCheckedRadioButtonId() == R.id.sort_size) {<NEW_LINE>Collections.sort(data, new Comparator<SysInfoItem>() {<NEW_LINE...
name.compareToIgnoreCase(o2.name);
1,482,654
public void marshall(AwsEcsTaskDefinitionDetails awsEcsTaskDefinitionDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsEcsTaskDefinitionDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(aws...
awsEcsTaskDefinitionDetails.getCpu(), CPU_BINDING);
1,496,159
private StringBuilder printEdgeDetailsPerf(OperationPerfGroup perfGroup) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>// append rest."200":<NEW_LINE>sb.append(" ").append(perfGroup.getTransport()).append(".").append(perfGroup.getStatus()).append(":\n");<NEW_LINE>PerfInfo prepare, queue, serverFiltersR...
operationPerf.findStage(MeterInvocationConst.STAGE_PRODUCER_SEND_RESPONSE);
1,763,985
public static MWMResponse extractFromIntent(@SuppressWarnings("unused") final Context context, final Intent intent) {<NEW_LINE>final MWMResponse response = new MWMResponse();<NEW_LINE>// parse point<NEW_LINE>final double lat = intent.getDoubleExtra(Const.EXTRA_MWM_RESPONSE_POINT_LAT, INVALID_LL);<NEW_LINE>final double ...
lat, lon, name, id);
434,104
final T call(Log log) {<NEW_LINE>long nodeCount = dimensions.hugeNodeCount();<NEW_LINE>final ImportSizing sizing = ImportSizing.of(concurrency, nodeCount);<NEW_LINE>int numberOfThreads = sizing.numberOfThreads();<NEW_LINE>AbstractStorePageCacheScanner<Record> scanner = new AbstractStorePageCacheScanner<>(DEFAULT_PREFET...
creator(nodeCount, sizing, scanner);
679,804
final TestEventPatternResult executeTestEventPattern(TestEventPatternRequest testEventPatternRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(testEventPatternRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,074,580
/*private -> for testing*/<NEW_LINE>@SuppressWarnings("ConstantConditions")<NEW_LINE>Set<String> findResourceNamesFromFileSystem(String classPathRootOnDisk, String scanRootLocation, File folder) {<NEW_LINE>LOG.debug("Scanning for resources in path: " + folder.getPath() + " (" + scanRootLocation + ")");<NEW_LINE>Set<Str...
(classPathRootOnDisk, scanRootLocation, file));
745,867
final DescribeEventAggregatesResult executeDescribeEventAggregates(DescribeEventAggregatesRequest describeEventAggregatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEventAggregatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
965,262
public void onAttributeValueChanged(@NonNull final IAttributeValueContext attributeValueContext, @NonNull final IAttributeStorage storage, IAttributeValue attributeValue, Object valueOld) {<NEW_LINE>final AbstractHUAttributeStorage huAttributeStorage = AbstractHUAttributeStorage.castOrNull(storage);<NEW_LINE>final bool...
storage.getValueAsLocalDate(AttributeConstants.ATTR_BestBeforeDate);
834,240
private ModeImpl createModeFromConfig(ModeConfig mc) {<NEW_LINE>if (DEBUG) {<NEW_LINE>// NOI18N<NEW_LINE>debugLog("");<NEW_LINE>// NOI18N<NEW_LINE>debugLog("Creating mode name=\"" + mc.name + "\"");<NEW_LINE>}<NEW_LINE>ModeImpl mode;<NEW_LINE>if (mc.kind == Constants.MODE_KIND_SLIDING) {<NEW_LINE>mode = WindowManagerIm...
put(mc.name, mode);
852,627
public Request<UpdateSignalingChannelRequest> marshall(UpdateSignalingChannelRequest updateSignalingChannelRequest) {<NEW_LINE>if (updateSignalingChannelRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(UpdateSignalingChannelRequest)");<NEW_LINE>}<NEW_LINE>Request<UpdateSi...
String currentVersion = updateSignalingChannelRequest.getCurrentVersion();
1,107,092
public void logHyperparameters(String experimentRunId, List<KeyValue> newHyperparameters) {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE>var experimentRunEntityObj = session.get(ExperimentRunEntity.class, experimentRunId, LockMode.PESSIMISTIC_WRITE);<NEW_LINE>if (experi...
var transaction = session.beginTransaction();
1,516,401
private static AdvancementsPacket createPacket(Notification notification) {<NEW_LINE>// For An advancement to be shown, it must have all of its criteria achieved (progress 100%)<NEW_LINE>// Create a Criteria that we can set to 100% achieved.<NEW_LINE>final var displayData = new AdvancementsPacket.DisplayData(notificati...
.criterionIdentifier()))));
356,989
public void writeSchemaRule(SchemaRule rule, CursorContext cursorContext, MemoryTracker memoryTracker, StoreCursors storeCursors) throws KernelException {<NEW_LINE>IntObjectMap<Value> protoProperties = SchemaStore.convertSchemaRuleToMap(rule, tokenHolders);<NEW_LINE>PropertyStore propertyStore = schemaStore.propertySto...
schemaRecord.initialize(true, nextPropId);
473,081
private PaletteItemNode createPaletteItemNode(PaletteItemHandler handler) {<NEW_LINE>String name = xmlDataObject.getName();<NEW_LINE>InstanceContent ic = new InstanceContent();<NEW_LINE>String s = handler.getClassName();<NEW_LINE>if (s != null)<NEW_LINE>ic.add(s, ActiveEditorDropProvider.getInstance());<NEW_LINE>else {...
s, ActiveEditorDropDefaultProvider.getInstance());
1,455,122
public void afterPropertiesSet() {<NEW_LINE>if (this.mongoTemplate == null) {<NEW_LINE>if (this.mappingMongoConverter == null) {<NEW_LINE>this.mappingMongoConverter = new MappingMongoConverter(new DefaultDbRefResolver(this.mongoDbFactory), new MongoMappingContext());<NEW_LINE>this.<MASK><NEW_LINE>List<Object> customCon...
mappingMongoConverter.setApplicationContext(this.applicationContext);
972,092
public void onPartitionBecomeStandbyFromBootstrap(String partitionName) {<NEW_LINE>// if code arrives here, it means local replica has completed OFFLINE -> BOOTSTRAP transition. We don't have to<NEW_LINE>// check if local replica exists or not.<NEW_LINE>ReplicaId localReplica = storeManager.getReplica(partitionName);<N...
store.setCurrentState(ReplicaState.STANDBY);
1,794,286
private org.eclipse.jdt.internal.compiler.ast.MemberValuePair[] createAnnotationMemberValuePairs(Map<String, Expression> memberValuePairs) {<NEW_LINE>return memberValuePairs.entrySet().stream().map(memberValuePair -> {<NEW_LINE>char[] name = memberValuePair.getKey().toCharArray();<NEW_LINE>// TODO: What to do when the ...
().getEnd() - 1;
438,121
final ListGroupMembershipsResult executeListGroupMemberships(ListGroupMembershipsRequest listGroupMembershipsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listGroupMembershipsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListGroupMemberships");
866,059
public void indexArtifact(BlackboardArtifact artifact) throws TskCoreException {<NEW_LINE>if (artifact == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// We only support artifact indexing for Autopsy versions that use<NEW_LINE>// the negative range for artifact ids.<NEW_LINE>if (artifact.getArtifactID() > 0) {<NEW_LINE...
ingester.indexMetaDataOnly(artifact, sourceName);
1,322,397
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final IOperandTreeNode registerOperand2 = i...
String operand2 = environment.getNextVariableString();
670,435
private static boolean repair(String fileName, PrintWriter pw) {<NEW_LINE>long version = Long.MAX_VALUE;<NEW_LINE>boolean repaired = false;<NEW_LINE>try (OutputStream ignore = new OutputStream() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void write(int b) {<NEW_LINE>// ignore<NEW_LINE>}<NEW_LINE>}) {<NEW_LINE>while...
"Fail: " + e.getMessage());
1,712,783
public static void main(final String[] args) {<NEW_LINE>System.out.format("Subscribing to %s on stream ID %d and stream ID %d%n", CHANNEL, STREAM_ID_1, STREAM_ID_2);<NEW_LINE>final Aeron.Context ctx = new Aeron.Context().availableImageHandler(MultipleSubscribersWithFragmentAssembly::eventAvailableImage).unavailableImag...
subscription2.poll(assembler2, FRAGMENT_COUNT_LIMIT);
377,692
public IBaseBundle collection(final RequestDetails theRequestDetails, IBaseBundle theRequest) {<NEW_LINE>String transactionType = myVersionAdapter.getBundleType(theRequest);<NEW_LINE>if (!org.hl7.fhir.r4.model.Bundle.BundleType.COLLECTION.toCode().equals(transactionType)) {<NEW_LINE>throw new InvalidRequestException(Ms...
resources = new ArrayList<>();
106,340
private void heartbeat() throws YarnException, IOException {<NEW_LINE>try {<NEW_LINE>writeLock.lock();<NEW_LINE>ResourceBlacklistRequest blacklistRequest = ResourceBlacklistRequest.newInstance(new ArrayList<String>(), new ArrayList<String>());<NEW_LINE>for (ResourceRequest request : ask) {<NEW_LINE>LOG.info("ask reques...
ContainerId>(release), blacklistRequest);
699,109
// end static class ExactBlock<NEW_LINE>public static void main(String[] args) {<NEW_LINE>TransducerGraph fa = new TransducerGraph();<NEW_LINE>fa.addArc(fa.getStartNode(), "1", "a", "");<NEW_LINE>fa.addArc(fa.getStartNode(), "2", "b", "");<NEW_LINE>fa.addArc(fa.getStartNode(<MASK><NEW_LINE>fa.addArc("1", "4", "a", "");...
), "3", "c", "");
1,263,995
public static DescribeDrdsDbInstanceResponse unmarshall(DescribeDrdsDbInstanceResponse describeDrdsDbInstanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDrdsDbInstanceResponse.setRequestId(_ctx.stringValue("DescribeDrdsDbInstanceResponse.RequestId"));<NEW_LINE>describeDrdsDbInstanceResponse.setSuccess(_ctx.b...
(_ctx.stringValue("DescribeDrdsDbInstanceResponse.DbInstance.NetworkType"));
1,419,706
public IQueryBuilder<I_MD_Candidate> mkQueryBuilder(@NonNull final CandidatesQuery query) {<NEW_LINE>final IQueryBL queryBL = Services.get(IQueryBL.class);<NEW_LINE>final IQueryBuilder<I_MD_Candidate> builder = queryBL.createQueryBuilder(I_MD_Candidate.class).addOnlyActiveRecordsFilter();<NEW_LINE>if (CandidatesQuery.F...
getId().getRepoId());
1,418,485
public void put(int index, boolean value) {<NEW_LINE>int byteNum = index / 8;<NEW_LINE>int bitNum = index % 8;<NEW_LINE>if (byteNum >= bytes.length) {<NEW_LINE>if (value == false) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>adjustArray(Math.max(byteNum + 1, bytes.length * 2));<NEW_LINE>}<NEW_LINE>if (value) {<NEW_LINE>bytes...
[byteNum] |= ONBITS[bitNum];
1,723,994
public static <E extends CoreLabel> List<E> applySpecializedNER(List<E> l) {<NEW_LINE>int sz = l.size();<NEW_LINE>// copy l<NEW_LINE>List<CoreLabel> copyL = new ArrayList<>(sz);<NEW_LINE>for (int i = 0; i < sz; i++) {<NEW_LINE>if (DEBUG2) {<NEW_LINE>if (i == 1) {<NEW_LINE>String tag = l.get(i).<MASK><NEW_LINE>if (tag =...
get(CoreAnnotations.PartOfSpeechAnnotation.class);
1,475,052
public PartitionPlan mapPartitions() throws Exception {<NEW_LINE>int numRecords = ReaderData.outerLoop.length * ReaderData.innerLoop.length;<NEW_LINE>logger.fine("In mapper, # of records = " + numRecords);<NEW_LINE>int numPartitions = ReaderData.outerLoop.length;<NEW_LINE>logger.fine("In mapper, # of partitions = " + n...
ReaderData.innerLoop.length + " # of records.");
1,540,952
public KinesisFirehoseOutputUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>KinesisFirehoseOutputUpdate kinesisFirehoseOutputUpdate = new KinesisFirehoseOutputUpdate();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
int originalDepth = context.getCurrentDepth();
900,822
final DeleteSchemaResult executeDeleteSchema(DeleteSchemaRequest deleteSchemaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSchemaRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
false), new DeleteSchemaResultJsonUnmarshaller());
986,290
public void readParams(AbstractSerializedData stream, boolean exception) {<NEW_LINE>flags = stream.readInt32(exception);<NEW_LINE>min = (flags & 1) != 0;<NEW_LINE>can_see_list <MASK><NEW_LINE>int magic = stream.readInt32(exception);<NEW_LINE>if (magic != 0x1cb5c415) {<NEW_LINE>if (exception) {<NEW_LINE>throw new Runtim...
= (flags & 4) != 0;
749,736
protected CommandExecutionResult executeArg(AbstractClassOrObjectDiagram diagram, LineLocation location, RegexResult arg) throws NoSuchColorException {<NEW_LINE>final String idShort = arg.get("NAME", 1);<NEW_LINE>final Ident ident = diagram.buildLeafIdent(idShort);<NEW_LINE>final Code code = diagram.V1972() ? ident : d...
arg.get("STEREO", 0);
1,770,076
public static void updateFeedInfo(long feedId, String feedUrl, final UpdateBlogInfoListener infoListener) {<NEW_LINE>// must pass either a valid id or url<NEW_LINE>final boolean hasFeedId = (feedId != 0);<NEW_LINE>final boolean hasFeedUrl = !TextUtils.isEmpty(feedUrl);<NEW_LINE>if (!hasFeedId && !hasFeedUrl) {<NEW_LINE...
e(T.READER, volleyError);
517,234
public boolean onPreferenceChange(final Preference preference, Object newValue) {<NEW_LINE>int value = Integer.valueOf((String) newValue);<NEW_LINE>boolean enabled = value != 0;<NEW_LINE>if (enabled)<NEW_LINE>TrackRecorder.INSTANCE.setDuration(value);<NEW_LINE><MASK><NEW_LINE>((TwoStatePreference) pref).setChecked(enab...
TrackRecorder.INSTANCE.setEnabled(enabled);
1,386,354
private void submitToQueue(final ItemWrapper<W> itemWrapper) throws PwmOperationalException {<NEW_LINE>if (workerThread == null) {<NEW_LINE>final String errorMsg = this.getClass().getName() + " has been closed, unable to submit new item";<NEW_LINE>throw new PwmOperationalException(new ErrorInformation(PwmError.ERROR_IN...
waitTime = TimeDuration.fromCurrent(startTime);
1,353,989
public void remTemplate(Model m, JSONObject template) throws ConfirmModSchemaException {<NEW_LINE>if (m.getJSONArray("tmpls").length() <= 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// find cards using this template<NEW_LINE>JSONArray tmpls = m.getJSONArray("tmpls");<NEW_LINE>int ord = -1;<NEW_LINE>for (int i = 0; i < tm...
.getLong("id"), ord);
672,493
public Object calculate(Context ctx) {<NEW_LINE>JobSpace js = ctx.getJobSpace();<NEW_LINE>if (js != null && js.getAppHome() != null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException(mm.getMessage("license.fpNotSupport") + "system");<NEW_LINE>}<NEW_LINE>if (param == null) {<NEW_LINE>Mes...
errBuf, process.getErrorStream());
609,645
public TextValue reverse() {<NEW_LINE>byte[] values = bytes;<NEW_LINE>if (values.length == 0 || byteLength == 0) {<NEW_LINE>return StringValue.EMPTY;<NEW_LINE>}<NEW_LINE>int i <MASK><NEW_LINE>byte[] newValues = new byte[byteLength];<NEW_LINE>while (i < len) {<NEW_LINE>byte b = values[i];<NEW_LINE>// If high bit is zero...
= offset, len = offset + byteLength;
1,103,896
private void scanCompositeElementForChildren() {<NEW_LINE>Set<String> elementNames = new HashSet<>();<NEW_LINE>TreeMap<Integer, BaseRuntimeDeclaredChildDefinition> orderToElementDef = new TreeMap<>();<NEW_LINE>TreeMap<Integer, BaseRuntimeDeclaredChildDefinition> <MASK><NEW_LINE>scanCompositeElementForChildren(elementNa...
orderToExtensionDef = new TreeMap<>();
1,326,698
private void zoom(double x, double y, double factor, boolean slow) {<NEW_LINE>final double w = center.getBoundsInParent().getWidth();<NEW_LINE>final double h = center.getBoundsInParent().getHeight();<NEW_LINE>final double minx = center.getBoundsInParent().getMinX();<NEW_LINE>final double miny = center<MASK><NEW_LINE>do...
.getBoundsInParent().getMinY();
152,451
protected void paintRaisedBevel(Component c, Graphics g, int x, int y, int width, int height) {<NEW_LINE>Color oldColor = g.getColor();<NEW_LINE>int h = height;<NEW_LINE>int w = width;<NEW_LINE>g.translate(x, y);<NEW_LINE>Shape saveClip = g.getClip();<NEW_LINE>Rectangle bounds = saveClip.getBounds();<NEW_LINE>g.setClip...
0, w - 2, 0);
1,114,143
final void remove(Operators.MonoSubscriber<T, T> toRemove) {<NEW_LINE>for (; ; ) {<NEW_LINE>Operators.MonoSubscriber<T, T>[] a = subscribers;<NEW_LINE>if (a == TERMINATED || a == EMPTY) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int n = a.length;<NEW_LINE>int j = -1;<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>if (a[i]...
, ?>[n - 1];
971,764
public void fromFile(String file) {<NEW_LINE>String line = null;<NEW_LINE>BufferedReader reader = null;<NEW_LINE>try {<NEW_LINE>reader = new BufferedReader(new FileReader(file));<NEW_LINE>while ((line = reader.readLine()) != null) {<NEW_LINE>line = line.trim();<NEW_LINE>if (line.isEmpty() || line.startsWith("#"))<NEW_L...
.format("unable to parse '%s' as number.", line));
618,052
private static String extractAttributeNameFromMethod(@Nonnull Class<?> clazz, @Nonnull Method method) {<NEW_LINE>if (skipMethod(clazz, method)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>String fieldNameWithWrongCase;<NEW_LINE>if (methodName.startsWith(METHOD_PREFIX_GET) && methodName.length() > METHOD...
String methodName = method.getName();
1,238,285
final GetCoreDefinitionResult executeGetCoreDefinition(GetCoreDefinitionRequest getCoreDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCoreDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,281,232
public okhttp3.Call connectDeleteNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/p...
.parameterToPair("path", path2));
614,968
private Mono<Response<ConfigurationProfileInner>> createOrUpdateWithResponseAsync(String configurationProfileName, String resourceGroupName, ConfigurationProfileInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this....
error(new IllegalArgumentException("Parameter configurationProfileName is required and cannot be null."));
1,164,854
private void initComponents() {<NEW_LINE>this.getAccessibleContext().setAccessibleName(NbBundle.getMessage(LocationChooser.class, "AN_LocationChooserAccessiory"));<NEW_LINE>this.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(LocationChooser.class, "AD_LocationChooserAccessiory"));<NEW_LINE>GridBagL...
this.tf.setEditable(false);
468,015
private void invokeCustomDestroyMethod(Method destroyMethod) {<NEW_LINE>int paramCount = destroyMethod.getParameterCount();<NEW_LINE>final Object[] args = new Object[paramCount];<NEW_LINE>if (paramCount == 1) {<NEW_LINE>args[0] = Boolean.TRUE;<NEW_LINE>}<NEW_LINE>if (logger.isTraceEnabled()) {<NEW_LINE>logger.trace("In...
msg, ex.getTargetException());
512,275
private void updateHandlerRightPosition(float movedPosition) {<NEW_LINE>RelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams) mHandlerRight.getLayoutParams();<NEW_LINE>lp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT, 0);<NEW_LINE>lp.addRule(RelativeLayout.ALIGN_PARENT_LEFT);<NEW_LINE>if (movedPosition < (mHandler...
) + mHandlerLeft.getWidth());
301,868
public static GrayU8 createMask(CameraUniversalOmni model, LensDistortionWideFOV distortion, double fov) {<NEW_LINE>GrayU8 mask = new GrayU8(model.width, model.height);<NEW_LINE>Point2Transform3_F64 p2s = distortion.undistortPtoS_F64();<NEW_LINE>Point3D_F64 ref = new Point3D_F64(0, 0, 1);<NEW_LINE>Point3D_F64 X = new P...
unsafe_set(x, y, 1);
518,888
public List<List<Integer>> TwoPointer(int[] nums, int target) {<NEW_LINE>Arrays.sort(nums);<NEW_LINE>List<List<Integer>> arr = new ArrayList<List<Integer>>();<NEW_LINE>int start = 0;<NEW_LINE>int end = 0;<NEW_LINE>int i = 0;<NEW_LINE>while (i < nums.length - 1) {<NEW_LINE>start = i + 1;<NEW_LINE>end = nums.length - 1;<...
temp = new ArrayList<>();