idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
33,450
public boolean apply(Game game, Ability source) {<NEW_LINE>Spell spell = game.getStack().getSpell(this.getTargetPointer().getFirst(game, source));<NEW_LINE>if (spell != null) {<NEW_LINE>if (spell.getManaValue() > 9) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>MageObject mageObject = game.getObject(source);<NEW_LINE>if ...
("Chip counters at: " + sb), game);
1,108,834
static // [START translate_create_glossary_beta]<NEW_LINE>Glossary createGlossary(String projectId, String location, String name, String gcsUri) {<NEW_LINE>try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {<NEW_LINE>LocationName locationName = LocationName.newBuilder().setProj...
setGlossary(name).build();
1,635,611
public void suspend(final String hostName) {<NEW_LINE>UpdateHostResponse response;<NEW_LINE>try {<NEW_LINE>var params = new ConfigServerApi.Params<UpdateHostResponse>().setConnectionTimeout(CONNECTION_TIMEOUT).setRetryPolicy(createRetryPolicyForSuspend());<NEW_LINE>response = configServerApi.put(getSuspendPath(hostName...
": " + e.getMessage());
129,093
public static void visitNamespaceClassForCompletion(PsiElement psiElement, int cursorOffset, ClassForCompletionVisitor visitor) {<NEW_LINE>int cursorOffsetClean = cursorOffset - psiElement.getTextOffset();<NEW_LINE>if (cursorOffsetClean < 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String content = psiElement.getText();<...
int length = content.length();
1,571,895
final UpdateResourceResult executeUpdateResource(UpdateResourceRequest updateResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
912,841
public static File writeSource(File sourceDir, String fqClassName, String sourceCode) throws IOException {<NEW_LINE>String[] parts = fqClassName.split(S_BACKSLASH + S_DOT);<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>builder.append(sourceDir.getAbsolutePath()).append(File.separatorChar);<NEW_LINE>for...
filePathString.substring(lastSep + 1);
606,546
<T extends AbstractSaml2AuthenticationRequest> T resolve(HttpServletRequest request, BiConsumer<RelyingPartyRegistration, AuthnRequest> authnRequestConsumer) {<NEW_LINE>RequestMatcher.MatchResult result = this.requestMatcher.matcher(request);<NEW_LINE>if (!result.isMatch()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>S...
.get(Saml2ParameterNames.SIGNATURE));
984,904
private void followBlogUrl(String normUrl) {<NEW_LINE>ReaderActions.ActionListener followListener = succeeded -> {<NEW_LINE>if (isFinishing()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>hideProgress();<NEW_LINE>if (succeeded) {<NEW_LINE>// clear the edit text and hide the soft keyboard<NEW_LINE>mEditAdd.setText(null);<NEW_...
(R.string.reader_toast_err_follow_blog));
1,393,975
public Object convert(final Object source) throws FrameworkException {<NEW_LINE>if (source == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final File currentFile = (File) getCurrentObject();<NEW_LINE>if (source instanceof byte[]) {<NEW_LINE>try {<NEW_LINE>byte[] <MASK><NEW_LINE>MagicMatch match = Magic.getMagicMa...
data = (byte[]) source;
174,872
public void init(ViewFactoryContext viewFactoryContext, EPStatementInitServices services) {<NEW_LINE>for (ViewFactory grouped : intersecteds) {<NEW_LINE>grouped.init(viewFactoryContext, services);<NEW_LINE>}<NEW_LINE>if (batchViewIndex != -1) {<NEW_LINE>batchViewLocalState = new ThreadLocal<IntersectBatchViewLocalState...
[intersecteds.length][]);
67,014
protected Map<UUID, FilterEntity> copyFilters(User fromUser, User toUser) {<NEW_LINE>Map<UUID, FilterEntity> filtersMap = new HashMap<>();<NEW_LINE>try (Transaction tx = persistence.createTransaction()) {<NEW_LINE>MetaClass effectiveMetaClass = metadata.getExtendedEntities().getEffectiveMetaClass(FilterEntity.class);<N...
setComponentId(filter.getComponentId());
1,331,927
private void processBadEvent(String methodName, int methodEventId, ConnectionEvent eventIn) {<NEW_LINE>// Connection Event passed in doesn't match the method called.<NEW_LINE>// This should never happen unless there is an error in the ResourceAdapter.<NEW_LINE>String eventIdIn = Integer.toString(eventIn.getId());<NEW_L...
rte, "com.ibm.ejs.j2c.ConnectionEventListener.processBadEvent", "709", this);
45,365
public synchronized void unstage(Collection<String> deploymentIdsProvided) throws EPStageException {<NEW_LINE>checkDestroyed();<NEW_LINE>Set<String> deploymentIds = checkArgument(deploymentIdsProvided);<NEW_LINE>if (deploymentIds.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>checkDeploymentIdsExist(deploymentIds, s...
statementIds, servicesContext.getSchedulingService());
1,375,323
public void onSuccess(@Nullable List<Map<String, TsValue>> result) {<NEW_LINE>missingTelemetryFutures.forEach((key, value) -> {<NEW_LINE>try {<NEW_LINE>key.getLatest().get(EntityKeyType.TIME_SERIES).putAll(value.get());<NEW_LINE>} catch (InterruptedException | ExecutionException e) {<NEW_LINE>log.warn("[{}][{}] Failed ...
getEntityId(), allTsKeys, e);
161,708
private Pair<Long, Long> calcOperatorInterval(FilterOperator filterOperator) {<NEW_LINE>if (filterOperator.getSinglePath() != null && !IoTDBConstant.TIME.equals(filterOperator.getSinglePath().getMeasurement())) {<NEW_LINE>throw new SQLParserException(DELETE_ONLY_SUPPORT_TIME_EXP_ERROR_MSG);<NEW_LINE>}<NEW_LINE>long tim...
>(time, Long.MAX_VALUE);
1,345,533
public PartitionGetResult partitionGet(PartitionGetParam partParam) {<NEW_LINE>HistAggrParam.HistPartitionAggrParam param = (HistAggrParam.HistPartitionAggrParam) partParam;<NEW_LINE>LOG.info("For the gradient histogram of GBDT, we use PS to find the optimal split");<NEW_LINE>GBDTParam gbtparam = new GBDTParam();<NEW_L...
/ (2 * gbtparam.numSplit);
1,259,300
private void addObjectRecord(final String name) throws IOException {<NEW_LINE>assert name != null;<NEW_LINE>final ObjectRecordValue<?> value = getObjectRecordValue();<NEW_LINE>final long key;<NEW_LINE>switch(insert) {<NEW_LINE>case AS_FIRST_CHILD:<NEW_LINE>if (parents.peek() == Fixed.NULL_NODE_KEY.getStandardProperty()...
push(wtx.getParentKey());
496,552
private I_C_OrderLine createOrderLine(final PurchaseCandidate candidate) {<NEW_LINE>final int flatrateDataEntryId = candidate.getC_Flatrate_DataEntry_ID();<NEW_LINE>final int huPIItemProductId = candidate.getM_HU_PI_Item_Product_ID();<NEW_LINE>final Timestamp datePromised = candidate.getDatePromised();<NEW_LINE>final B...
).getAttributeSetInstanceById(attributeSetInstanceId) : null;
459,701
public void keyPressed(KeyEvent ev) {<NEW_LINE>if (ev.stateMask == SWT.CTRL) {<NEW_LINE>if (ev.keyCode == 97) {<NEW_LINE>if (ev.widget instanceof Text) {<NEW_LINE>((Text) ev.widget).selectAll();<NEW_LINE>} else if (ev.widget instanceof StyledText) {<NEW_LINE>((StyledText) ev.widget).selectAll();<NEW_LINE>}<NEW_LINE>} e...
errorSafe(ex.toString());
1,624,151
public static BoundingBox mapWayToBoundingBox(TDWay way) {<NEW_LINE>TDNode[] wayNodes = way.getWayNodes();<NEW_LINE>if (wayNodes.length < 3) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>double lat = LatLongUtils.microdegreesToDegrees(wayNodes[0].getLatitude());<NEW_LINE>double lon = LatLongUtils.microdegr...
0].getLongitude()));
626,534
public Mono<ShouldRetryResult> shouldRetry(Exception exception) {<NEW_LINE>Duration backoffTime = Duration.ofSeconds(0);<NEW_LINE>if (!WebExceptionUtility.isWebExceptionRetriable(exception)) {<NEW_LINE>// Have caller propagate original exception.<NEW_LINE>this.durationTimer.stop();<NEW_LINE>return Mono.just(ShouldRetry...
just(ShouldRetryResult.noRetry());
1,715,135
final RegExp parseRepeatExp() throws IllegalArgumentException {<NEW_LINE>RegExp e = parseComplExp();<NEW_LINE>while (peek("?*+{")) {<NEW_LINE>if (match('?')) {<NEW_LINE>e = makeOptional(e);<NEW_LINE>} else if (match('*')) {<NEW_LINE>e = makeRepeat(e);<NEW_LINE>} else if (match('+')) {<NEW_LINE>e = makeRepeat(e, 1);<NEW...
throw new IllegalArgumentException("expected '}' at position " + _pos);
1,119,598
public static void init() throws SlickException, FontFormatException, IOException {<NEW_LINE>float fontBase = 12f * GameImage.getUIscale();<NEW_LINE>Font javaFontMain = Font.createFont(Font.TRUETYPE_FONT, ResourceLoader.getResourceAsStream(Options.FONT_MAIN));<NEW_LINE>Font javaFontBold = Font.createFont(Font.TRUETYPE_...
deriveFont(fontBase * 3)));
1,542,794
public String select() {<NEW_LINE>assert imageUuid != null : "imageUuid cannot be null";<NEW_LINE>assert zoneUuid != null : "zoneUuid cannot be null";<NEW_LINE>TypedQuery<String> q;<NEW_LINE>if (checkStatus) {<NEW_LINE>String sql = "select bs.uuid from BackupStorageVO bs, BackupStorageZoneRefVO bsRef, ImageBackupStorag...
q.setParameter("zoneUuid", zoneUuid);
190,200
public static Expression substituteBoolExpression(ConfigVariableExpander cve, Expression expression) {<NEW_LINE>try {<NEW_LINE>if (expression instanceof BinaryBooleanExpression) {<NEW_LINE>BinaryBooleanExpression binaryBoolExp = (BinaryBooleanExpression) expression;<NEW_LINE>Expression substitutedLeftExp = substituteBo...
unaryBoolExp.getSourceWithMetadata(), substitutedExp);
239,487
static VisitsForWeek boundContributedDays(VisitsForWeek visits, int maxContributedDays) {<NEW_LINE>Map<String, Set<DayOfWeek>> boundedVisitorDays = new HashMap<>();<NEW_LINE>List<Visit> allVisits = new ArrayList<>();<NEW_LINE>VisitsForWeek boundedVisits = new VisitsForWeek();<NEW_LINE>// Add all visits to a list in ord...
visitsForDay = visits.getVisitsForDay(d);
1,458,292
private void init() {<NEW_LINE>this.parameterList = null;<NEW_LINE>if (this.ctx == null) {<NEW_LINE>this.ctx = new Context();<NEW_LINE>}<NEW_LINE>this.whereList = new HashSet<String>();<NEW_LINE>this.selectList = new HashSet<String>();<NEW_LINE>this.recycleList = new ArrayList<String>();<NEW_LINE>this.intoFileName = ""...
, Token[]>>();
160,105
public StageExecution unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StageExecution stageExecution = new StageExecution();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<...
String currentParentElement = context.getCurrentParentElement();
861,519
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> user) throws ApiException {<NEW_LINE>Object localVarPostBody = user;<NEW_LINE>// verify the required parameter 'user' is set<NEW_LINE>if (user == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'user' when calling cre...
localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
131,824
public ActionResult<Wo> call() throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>WorkCompleted workCompleted = emc.find(id, WorkCompleted.cla...
persist(snap, CheckPersistType.all);
1,119,566
public Apple read(JsonReader in) throws IOException {<NEW_LINE>JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject();<NEW_LINE>validateJsonObject(jsonObj);<NEW_LINE>// store additional fields in the deserialized instance<NEW_LINE>Apple <MASK><NEW_LINE>for (Map.Entry<String, JsonElement> entry : jsonObj.entrySe...
instance = thisAdapter.fromJsonTree(jsonObj);
389,638
protected static String poa(Object o, String indent, boolean dumpCollection, int depth) {<NEW_LINE>if (dumpCollection == false || o == null || depth > 5) {<NEW_LINE>return poa(o);<NEW_LINE>}<NEW_LINE>final Class<?> oClass = o.getClass();<NEW_LINE>final StringBuilder sb = new StringBuilder();<NEW_LINE>if (oClass.isArray...
.append(getInstanceClassAndAddress(o));
1,103,275
protected Optional<ActiveSession> performHandshake(Tracer tracer, X additionalData, URL url, Set<Dialect> downstreamDialects, Capabilities capabilities) {<NEW_LINE>try {<NEW_LINE>HttpClient client = HttpClient.Factory.createDefault().createClient(url);<NEW_LINE>Command command = new Command(null, DriverCommand.NEW_SESS...
) response.getValue()));
331,245
public SimilarsMap fusiformSimilarity(Iterator<Vertex> vertices, Directions direction, String label, int minNeighbors, double alpha, int minSimilars, int top, String groupProperty, int minGroups, long degree, long capacity, long limit, boolean withIntermediary) {<NEW_LINE>checkCapacity(capacity);<NEW_LINE>checkLimit(li...
minGroups, degree, capacity, withIntermediary);
1,218,496
public void deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String sharedPrivateLinkResourceName = Utils.getValueFromIdByName(id, "sharedPrivateLinkResources");<NEW_LINE>if (sharedPrivateLinkResourceName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The r...
sharedPrivateLinkResourceName, resourceGroupName, resourceName, context);
327,465
public DescribePatchPropertiesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribePatchPropertiesResult describePatchPropertiesResult = new DescribePatchPropertiesResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
int originalDepth = context.getCurrentDepth();
1,587,356
protected <T> Collection<T> doInsertBatch(String collectionName, Collection<? extends T> batchToSave, MongoWriter<T> writer) {<NEW_LINE>Assert.notNull(writer, "MongoWriter must not be null!");<NEW_LINE>List<Document> documentList = new ArrayList<>();<NEW_LINE>List<T> initializedBatchToSave = new ArrayList<<MASK><NEW_LI...
>(batchToSave.size());
1,599,350
public void onResponse(final Call<ResponseBody> call, final Response<ResponseBody> response) {<NEW_LINE>Cancellable cancellable = new Cancellable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void cancel() {<NEW_LINE>call.cancel();<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean isCanceled() {<NEW_LI...
ResponseBody errorBody = response.errorBody();
1,694,804
public void modifiedService(ServiceReference<ManagedService> reference, ManagedService service) {<NEW_LINE>String[] pids = getServicePid(reference);<NEW_LINE>List<String> newPids = Collections.emptyList();<NEW_LINE>if (pids != null) {<NEW_LINE>newPids = Arrays.asList(pids);<NEW_LINE>}<NEW_LINE>synchronized (caFactory.g...
new HashSet<String>(newPids);
385,015
static void writeServletDoMethod(ThreadInfo ti, String method, String servletPath, String sessionId) {<NEW_LINE>int fullInfoLen = 1 + 1 + (servletPath.length() * 2) + 4;<NEW_LINE>// It's important to use a local copy for evBufPos, so that evBufPos is at event boundary at any moment<NEW_LINE>int curPos = ti.evBufPos;<NE...
] name = servletPath.getBytes();
1,123,787
protected void initContentBuffer(XMLStringBuffer suiteBuffer) {<NEW_LINE>Properties testAttrs = new Properties();<NEW_LINE>testAttrs.setProperty("name", m_projectName);<NEW_LINE>testAttrs.setProperty("verbose", String.valueOf(m_logLevel));<NEW_LINE><MASK><NEW_LINE>if (null != m_groupNames) {<NEW_LINE>suiteBuffer.push("...
suiteBuffer.push("test", testAttrs);
228,690
private void submitClearVotingConfigExclusionsTask(ClearVotingConfigExclusionsRequest request, long startTimeMillis, ActionListener<ActionResponse.Empty> listener) {<NEW_LINE>clusterService.submitStateUpdateTask("clear-voting-config-exclusions", new ClusterStateUpdateTask(Priority.URGENT, TimeValue.timeValueMillis(Math...
metadata(newMetadata).build();
1,345,062
public GetDocumentPathResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetDocumentPathResult getDocumentPathResult = new GetDocumentPathResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
().unmarshall(context));
1,673,349
private boolean checkAndOpenConflictResolutionDialog(User user, ItemViewHolder itemViewHolder, OCUpload item, String status) {<NEW_LINE>String remotePath = item.getRemotePath();<NEW_LINE>OCFile ocFile = storageManager.getFileByPath(remotePath);<NEW_LINE>if (ocFile == null) {<NEW_LINE>// Remote file doesn't exist, try t...
file = storageManager.getFileByPath(remotePath);
412,577
private boolean placeBlock(BlockPos pos) {<NEW_LINE>Vec3d eyesPos = new Vec3d(MC.player.getX(), MC.player.getY() + MC.player.getEyeHeight(MC.player.getPose()), MC.player.getZ());<NEW_LINE>for (Direction side : Direction.values()) {<NEW_LINE>BlockPos <MASK><NEW_LINE>Direction side2 = side.getOpposite();<NEW_LINE>// chec...
neighbor = pos.offset(side);
1,197,169
public void actionPerformed(ActionEvent e) {<NEW_LINE>WsdlOperation operation = (WsdlOperation) mockResponse.getMockOperation().getOperation();<NEW_LINE>if (operation == null) {<NEW_LINE>UISupport.showErrorMessage("Missing operation for this mock response");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (UISupport.confirm("O...
().buildFault(faultPart));
185,637
private ClientMaster.OpsTaskInfo.Builder buildOpsTaskInfo(ConsumeGroupInfo groupInfo, ConsumerInfo nodeInfo, OpsSyncInfo opsTaskInfo) {<NEW_LINE>ClientMaster.OpsTaskInfo.Builder builder = ClientMaster.OpsTaskInfo.newBuilder();<NEW_LINE>long csmFromMaxCtrlId = groupInfo.getCsmFromMaxCtrlId();<NEW_LINE>if (csmFromMaxCtrl...
setDefFlowControlInfo(defSetting.getGloFlowCtrlRuleInfo());
229,902
private // Furthermore, it is guaranteed that for any pair (a, b) that a < b.<NEW_LINE>void reconstructMatching(int[] history) {<NEW_LINE>// A map between pairs of nodes that were matched together.<NEW_LINE>int[] map = new int[n];<NEW_LINE>int[] leftNodes <MASK><NEW_LINE>// Reconstruct the matching of pairs of nodes wo...
= new int[n / 2];
427,625
private void visualizeMTreeEntry(SVGPlot svgp, Element layer, Projection2D proj, AbstractMTree<?, N, E, ?> mtree, E entry, int depth) {<NEW_LINE>DBID roid = entry.getRoutingObjectID();<NEW_LINE>if (roid != null) {<NEW_LINE>NumberVector ro = rel.get(roid);<NEW_LINE>double rad = entry.getCoveringRadius();<NEW_LINE>final ...
svgp, proj, ro, rad);
789,138
private String sendWsReq(HttpServletRequest req, String productId, boolean secured) {<NEW_LINE>Product simpleClient = null;<NEW_LINE>// try {<NEW_LINE>JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();<NEW_LINE>factory.setServiceClass(Product.class);<NEW_LINE>factory.setAddress("http://localhost:8282/ProductS...
java.lang.String>();
843,182
public void showClientMyTasksDue(ActionRequest request, ActionResponse response) {<NEW_LINE>try {<NEW_LINE>ClientViewService clientViewService = Beans.get(ClientViewService.class);<NEW_LINE><MASK><NEW_LINE>if (clientUser.getPartner() == null) {<NEW_LINE>response.setError(I18n.get(ITranslation.CLIENT_PORTAL_NO_PARTNER))...
User clientUser = clientViewService.getClientUser();
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...
("DescribeDrdsDbInstanceResponse.DbInstance.ReadOnlyInstances[" + i + "].DmInstanceId"));
1,632,368
private boolean hasDictionary(Locale locale) {<NEW_LINE>Resources res = getResources();<NEW_LINE>Configuration conf = res.getConfiguration();<NEW_LINE>Locale saveLocale = conf.locale;<NEW_LINE>boolean haveDictionary = false;<NEW_LINE>conf.locale = locale;<NEW_LINE>res.updateConfiguration(conf, res.getDisplayMetrics());...
this, dictionaries, Suggest.DIC_MAIN);
1,611,981
protected void doSelectToHolder(Request request, List<Referer<T>> refersHolder) {<NEW_LINE>List<Referer<T>> referers = getReferers();<NEW_LINE>List<Referer<T>> localReferers = searchLocalReferer(referers, NetUtils.getLocalAddress().getHostAddress());<NEW_LINE>if (!localReferers.isEmpty()) {<NEW_LINE>Collections.sort(lo...
(startIndex + currentCursor) % refererSize);
1,142,235
public ChangeStreamResultSet changeStreamQuery(String partitionToken, Timestamp startTimestamp, Timestamp endTimestamp, long heartbeatMillis) {<NEW_LINE>// For the initial partition we query with a null partition token<NEW_LINE>final String partitionTokenOrNull = InitialPartition.isInitialPartition(partitionToken) ? nu...
+ " partition_token => @partitionToken," + " read_options => null," + " heartbeat_milliseconds => @heartbeatMillis" + ")";
1,482,621
public SpiSqlUpdate createDelete(SpiEbeanServer server, DeleteMode deleteMode) {<NEW_LINE>BindParams bindParams = new BindParams();<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>if (deleteMode.isHard()) {<NEW_LINE>sb.append("delete from ").append(tableName);<NEW_LINE>} else {<NEW_LINE>sb.append("update ").a...
append(targetDescriptor.softDeleteDbSet());
388,636
private void buildExecParams(TDSWriter tdsWriter) throws SQLServerException {<NEW_LINE>if (getStatementLogger().isLoggable(java.util.logging.Level.FINE))<NEW_LINE>getStatementLogger().fine(toString() + ": calling sp_execute: PreparedHandle:" + <MASK><NEW_LINE>expectPrepStmtHandle = false;<NEW_LINE>executedSqlDirectly =...
getPreparedStatementHandle() + ", SQL:" + preparedSQL);
1,025,567
public Map<String, Object> createScript(User user, @RemainedPath String path, @RequestBody ScriptCreationParams scriptCreationParams) {<NEW_LINE>String fileName = scriptCreationParams.getFileName();<NEW_LINE>String testUrl = scriptCreationParams.getTestUrl();<NEW_LINE><MASK><NEW_LINE>boolean createLibAndResource = scri...
String options = scriptCreationParams.getOptions();
1,224,592
public DescribeCertificateResult describeCertificate(DescribeCertificateRequest describeCertificateRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCertificateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionCont...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,545,006
private static Vector apply(CompLongDoubleVector v1, LongFloatVector v2, Binary op) {<NEW_LINE>LongDoubleVector[] parts = v1.getPartitions();<NEW_LINE>Storage[] resParts = StorageSwitch.applyComp(v1, v2, op);<NEW_LINE>if (!op.isKeepStorage()) {<NEW_LINE>for (int i = 0; i < parts.length; i++) {<NEW_LINE>if (parts[i].get...
(int) (i / subDim);
1,553,502
public DBClusterMember unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DBClusterMember dBClusterMember = new DBClusterMember();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += ...
XMLEvent xmlEvent = context.nextEvent();
1,323,807
public void marshall(SentimentDetectionJobProperties sentimentDetectionJobProperties, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (sentimentDetectionJobProperties == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller....
sentimentDetectionJobProperties.getSubmitTime(), SUBMITTIME_BINDING);
231,167
public PlanItemInstanceResponse createPlanItemInstanceResponse(PlanItemInstance planItemInstance) {<NEW_LINE>RestUrlBuilder urlBuilder = createUrlBuilder();<NEW_LINE>PlanItemInstanceResponse result = new PlanItemInstanceResponse();<NEW_LINE>result.setId(planItemInstance.getId());<NEW_LINE>result.setUrl(urlBuilder.build...
setStage(planItemInstance.isStage());
1,663,397
public void copy(File contractsDirectory, File outputDirectory) throws MojoExecutionException {<NEW_LINE>log.info("Copying Spring Cloud Contract Verifier contracts to [" + outputDirectory + "]" + ". Only files matching [" + this.config.<MASK><NEW_LINE>Resource resource = new Resource();<NEW_LINE>String includedRootFold...
getIncludedContracts() + "] pattern will end up in " + "the final JAR with stubs.");
962,079
public void generateToStringForType(EclipseNode typeNode, EclipseNode errorNode) {<NEW_LINE>if (hasAnnotation(ToString.class, typeNode)) {<NEW_LINE>// The annotation will make it happen, so we can skip it.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AnnotationValues<ToString> anno = AnnotationValues.of(ToString.class);<NEW_LI...
typeNode, onlyExplicitlyIncluded, null, null);
710,158
public ApplySecurityGroupsToClientVpnTargetNetworkResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ApplySecurityGroupsToClientVpnTargetNetworkResult applySecurityGroupsToClientVpnTargetNetworkResult = new ApplySecurityGroupsToClientVpnTargetNetworkResult();<NEW_LINE>int originalDepth = con...
().unmarshall(context));
1,059,482
public AuditLog toData() {<NEW_LINE>AuditLog auditLog = new AuditLog(new AuditLogId(this.getUuid()));<NEW_LINE>auditLog.setCreatedTime(createdTime);<NEW_LINE>if (tenantId != null) {<NEW_LINE>auditLog.setTenantId(TenantId.fromUUID(tenantId));<NEW_LINE>}<NEW_LINE>if (customerId != null) {<NEW_LINE>auditLog.setCustomerId(...
auditLog.setActionFailureDetails(this.actionFailureDetails);
937,357
public List<DataFetcherResult<MLFeatureTable>> batchLoad(final List<String> urns, final QueryContext context) throws Exception {<NEW_LINE>final List<Urn> mlFeatureTableUrns = urns.stream().map(UrnUtils::getUrn).collect(Collectors.toList());<NEW_LINE>try {<NEW_LINE>final Map<Urn, EntityResponse> mlFeatureTableMap = _ent...
throw new RuntimeException("Failed to batch load MLFeatureTables", e);
1,450,776
public static double regularizedIncompleteBetaFunction(double alpha, double beta, double x) {<NEW_LINE>// This function is often used to calculate p-value of model fitting.<NEW_LINE>// Due to floating error, the model may provide a x that could be slightly<NEW_LINE>// greater than 1 or less than 0. We allow tiny slack ...
alpha, 1.0 - x) / beta;
606,536
final ListFirewallRuleGroupsResult executeListFirewallRuleGroups(ListFirewallRuleGroupsRequest listFirewallRuleGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listFirewallRuleGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListFirewallRuleGroups");
225,085
public static void grayToArray(GrayF32 input, byte[] output, Bitmap.Config config) {<NEW_LINE>final int h = input.height;<NEW_LINE>final int w = input.width;<NEW_LINE>int indexDst = 0;<NEW_LINE>switch(config) {<NEW_LINE>case ARGB_8888:<NEW_LINE>for (int y = 0; y < h; y++) {<NEW_LINE>int indexSrc = input.startIndex + y ...
indexDst++] = (byte) rgb565;
1,444,687
public ImportLayoutStyle build() {<NEW_LINE>assert (blocks.stream().anyMatch(it -> it instanceof Block.AllOthers && ((Block.AllOthers) it).isStatic())) : "There must be at least one block that accepts all static imports, but no such block was found in the specified layout";<NEW_LINE>assert (blocks.stream().anyMatch(it ...
classCountToUseStarImport, nameCountToUseStarImport, blocks, packagesToFold);
178,919
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2,c3,c4,c5,c6,c7".split(",");<NEW_LINE>SupportEvalBuilder builder = new SupportEvalBuilder("SupportCollection");<NEW_LINE>builder.expression(fields[0], "strvals.min(v => extractNum(v))");<NEW_LINE>builder.expression(fields[1], "strvals.max(...
(fields[6], "strvals.min( (v, i, s) => extractNum(v) + i*10 + s*100)");
1,465,013
private void initUI() {<NEW_LINE>setUndecorated(true);<NEW_LINE>try {<NEW_LINE>if (GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().isWindowTranslucencySupported(WindowTranslucency.TRANSLUCENT)) {<NEW_LINE>if (!Config.getInstance().isNoTransparency()) {<NEW_LINE>setOpacity(0.85f);<NEW_LINE>}<N...
setFont(FontResource.getNormalFont());
1,222,878
public void send(Event event, String stream) {<NEW_LINE>String app = configuration.appName();<NEW_LINE>String jobCluster = jobDiscovery.getJobCluster(app, stream);<NEW_LINE>Optional<JobDiscoveryInfo> <MASK><NEW_LINE>if (jobDiscoveryInfo.isPresent()) {<NEW_LINE>List<MantisWorker> workers = jobDiscoveryInfo.get().getInge...
jobDiscoveryInfo = jobDiscovery.getCurrentJobWorkers(jobCluster);
1,382,086
final DBCluster executeCreateDBCluster(CreateDBClusterRequest createDBClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDBClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientE...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
580,068
public void accept(BakedModel model) {<NEW_LINE>final Supplier<Random> random = blockInfo.randomSupplier;<NEW_LINE>final Value defaultMaterial = blockInfo.defaultAo && model.useAmbientOcclusion() ? MATERIAL_SHADED : MATERIAL_FLAT;<NEW_LINE>final BlockState blockState = blockInfo.blockState;<NEW_LINE>for (int i = 0; i <...
q = quads.get(j);
1,203,213
public void insertRows(final int index, final int numberOfRows) {<NEW_LINE>if (index < 0 || index > getRowCount()) {<NEW_LINE>throw new IndexOutOfBoundsException("The given index (" + index + <MASK><NEW_LINE>}<NEW_LINE>if (numberOfRows < 1) {<NEW_LINE>throw new IllegalArgumentException("Number of rows must be 1 or grea...
") was outside of the current number of rows (0.." + getRowCount() + ")");
1,360,067
private boolean backupGroupCtrlConfig(StringBuilder strBuff) {<NEW_LINE>logger.info("[Backup Group Ctrl] begin ");<NEW_LINE>Map<String, GroupResCtrlEntity> groupCtrlMap = getGroupResCtrlInfos(strBuff);<NEW_LINE>if (groupCtrlMap == null) {<NEW_LINE>logger.error(" download group-control configurations are null!");<NEW_L...
(" failure!").toString());
876,571
private PsiMethod rebuildMethod(@NotNull Project project, @NotNull PsiMethod fromMethod) {<NEW_LINE>final PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(project);<NEW_LINE>final PsiMethod resultMethod;<NEW_LINE>final PsiType returnType = fromMethod.getReturnType();<NEW_LINE>if (null == returnType) {...
), fromParameter.getType());
588,425
private static String dumpAccessor(ElementAccessor accessor, int indent) {<NEW_LINE>StringBuffer sb = new StringBuffer();<NEW_LINE>String indentString = createIndentString(indent);<NEW_LINE>if (accessor instanceof SplitAccessor) {<NEW_LINE>SplitAccessor splitAccessor = (SplitAccessor) accessor;<NEW_LINE>// NOI18N<NEW_L...
children[i], indent));
1,831,925
public void serializeToResValuesXml(XmlSerializer serializer, ResResource res) throws IOException, AndrolibException {<NEW_LINE><MASK><NEW_LINE>serializer.attribute(null, "name", res.getResSpec().getName());<NEW_LINE>if (!mParent.isNull() && !mParent.referentIsNull()) {<NEW_LINE>serializer.attribute(null, "parent", mPa...
serializer.startTag(null, "style");
1,286,237
private void parse() throws IOException {<NEW_LINE>try {<NEW_LINE>final byte[] formatIdentifier = new byte[BPM_IDENTIFIER.length()];<NEW_LINE>for (int i = 0; i < formatIdentifier.length; i++) {<NEW_LINE>formatIdentifier[i] = parseByte();<NEW_LINE>}<NEW_LINE>final String identifier = new String(formatIdentifier);<NEW_LI...
"Unknown BPM version (" + getFileVersion() + ")");
539,334
final DeactivateKeySigningKeyResult executeDeactivateKeySigningKey(DeactivateKeySigningKeyRequest deactivateKeySigningKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deactivateKeySigningKeyRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LIN...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,271,455
@Produces(MediaType.TEXT_HTML)<NEW_LINE>public Response updateAuthToken(@PathParam("name") String name, @QueryParam("code") String code) {<NEW_LINE>try {<NEW_LINE>if (storage.getPlugin(name).getConfig() instanceof AbstractSecuredStoragePluginConfig) {<NEW_LINE>AbstractSecuredStoragePluginConfig securedStoragePluginConf...
getPlugin(name).getConfig();
1,274,275
public Long queryCount(IndexQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx) throws BackendException {<NEW_LINE>// Construct query<NEW_LINE>final String store = query.getStore();<NEW_LINE>final LuceneCustomAnalyzer delegatingAnalyzer = delegatingAnalyzerFor(store, information);<NEW_LINE>final...
getSearcher(query.getStore());
436,239
public Builder mergeFrom(io.kubernetes.client.proto.V1.ResourceQuotaList other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1.ResourceQuotaList.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasMetadata()) {<NEW_LINE>mergeMetadata(other.getMetadata());<NEW_LINE>}<NEW_LINE>if (itemsBuilder_ == nu...
bitField0_ = (bitField0_ & ~0x00000002);
1,781,982
/*<NEW_LINE>* verify the signature in in against the file fileName.<NEW_LINE>*/<NEW_LINE>private static void verifySignature(String fileName, InputStream in, InputStream keyIn) throws GeneralSecurityException, IOException, PGPException, SignatureException {<NEW_LINE>in = PGPUtil.getDecoderStream(in);<NEW_LINE>PGPObject...
BufferedInputStream(new FileInputStream(fileName));
1,852,994
private static ExplicitGroup explicitGroupFromString(String input, Character keywordSeparator) throws ParseException {<NEW_LINE>if (!input.startsWith(MetadataSerializationConfiguration.EXPLICIT_GROUP_ID)) {<NEW_LINE>throw new IllegalArgumentException("ExplicitGroup cannot be created from \"" + input + "\".");<NEW_LINE>...
MetadataSerializationConfiguration.GROUP_UNIT_SEPARATOR, MetadataSerializationConfiguration.GROUP_QUOTE_CHAR);
1,814,947
private static IntermediateOperation importOperation(String name, Onnx.GraphProto onnxGraph, IntermediateGraph intermediateGraph) {<NEW_LINE>if (intermediateGraph.alreadyImported(name)) {<NEW_LINE>return intermediateGraph.get(name);<NEW_LINE>}<NEW_LINE>IntermediateOperation operation;<NEW_LINE>if (isArgumentTensor(name...
tensorProto = getConstantTensor(name, onnxGraph);
688,844
public static void expandObjectArrayToStackValues(MethodVisitor mv, ImmutableList<ClassName> expectedTypesOnOperandStack) {<NEW_LINE>int numOfValuesExpandedOnOperandStack = expectedTypesOnOperandStack.size();<NEW_LINE>for (int i = 0; i < numOfValuesExpandedOnOperandStack; i++) {<NEW_LINE>ClassName operandTypeName = exp...
mv.visitInsn(Opcodes.DUP2_X1);
29,693
private void vendorSpecificMemoryMetrics(MetricRegistry registry) {<NEW_LINE>MemoryMXBean memoryMXBean = ManagementFactory.getMemoryMXBean();<NEW_LINE>Metadata meta = Metadata.builder().withName(MEMORY_COMMITTED_NON_HEAP).withType(MetricType.GAUGE).withUnit(MetricUnits.BYTES).withDisplayName("Committed Non Heap Memory"...
withDescription("Displays the amount of non heap memory in bytes that is committed for the Java virtual machine to use.").build();
1,345,699
private void handleError(Throwable throwable) {<NEW_LINE>if (throwable instanceof BlockHashNotConnectingException || throwable instanceof BlockHeightNotConnectingException) {<NEW_LINE>// We do not escalate that exception as it is handled with the snapshot manager to recover its state.<NEW_LINE>log.<MASK><NEW_LINE>} els...
warn(throwable.toString());
633,638
public GetAccountSettingsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetAccountSettingsResult getAccountSettingsResult = new GetAccountSettingsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
JsonToken token = context.getCurrentToken();
1,437,076
public static String loadFromReg() {<NEW_LINE>String hKey = "global";<NEW_LINE>String servername = UserPreferences.get(hKey, "ServerName");<NEW_LINE>if (servername == null)<NEW_LINE>servername = "";<NEW_LINE>for (int i = 0; i < parameterArray.length; i++) {<NEW_LINE>if (parameterArray[i] instanceof StringParameter) {<N...
i]).setParam(stringValue);
575,906
public void start(int listenPort) throws Exception {<NEW_LINE>if (this.started.get()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>bootstrap.childHandler(new ChannelInitializer<SocketChannel>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void initChannel(SocketChannel socketChannel) {<NEW_LINE>if (isOverTLS) {<NEW_LINE>tr...
"serverHandler", new NettyServerHandler(protocolType));
1,532,898
public ResourceServer findById(String id) {<NEW_LINE>if (id == null)<NEW_LINE>return null;<NEW_LINE>CachedResourceServer cached = cache.get(id, CachedResourceServer.class);<NEW_LINE>if (cached != null) {<NEW_LINE>logger.tracev("by id cache hit: {0}", cached.getId());<NEW_LINE>}<NEW_LINE>if (cached == null) {<NEW_LINE>L...
getResourceServerStoreDelegate().findById(id);
1,202,297
private boolean subdivide(AABB b) {<NEW_LINE>double w = aabb.width / 2d;<NEW_LINE>double h = aabb.height / 2d;<NEW_LINE>if (w < minWidth || h < minHeight)<NEW_LINE>return false;<NEW_LINE>AxisAlignedBoundingBox aabbNW = new <MASK><NEW_LINE>northWest = new MxCifQuadNode<AABB>(aabbNW);<NEW_LINE>XYPoint xyNE = new XYPoint(...
AxisAlignedBoundingBox(aabb, w, h);
815,017
private static int quickTest2DPolylinePoint(Polyline geomA, Point2D ptB, double tolerance, int testType) {<NEW_LINE>int mask = Relation.Touches | Relation.Contains | Relation.Within | Relation.Disjoint | Relation.Intersects;<NEW_LINE>if ((testType & mask) == 0)<NEW_LINE>return Relation.NoThisRelation;<NEW_LINE>int res ...
int pathIndex = iter.getPathIndex();
1,146,747
public static APIUpdateVolumeEvent __example__() {<NEW_LINE>APIUpdateVolumeEvent event = new APIUpdateVolumeEvent();<NEW_LINE>String volumeUuid = uuid();<NEW_LINE>VolumeInventory vol = new VolumeInventory();<NEW_LINE>vol.setName("test-volume");<NEW_LINE>vol.setCreateDate(new Timestamp(org.zstack.header.message.DocUtils...
("/zstack_ps/rootVolumes/acct-36c27e8ff05c4780bf6d2fa65700f22e/vol-%s/%s.qcow2", volumeUuid, volumeUuid));