idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
51,805
public CodegenModel fromModel(String name, Schema model) {<NEW_LINE>CodegenModel cm = super.fromModel(name, model);<NEW_LINE>// TODO Check enum model handling<NEW_LINE>if (cm.interfaces == null) {<NEW_LINE>cm.interfaces = new ArrayList<String>();<NEW_LINE>}<NEW_LINE>Boolean hasDefaultValues = false;<NEW_LINE>// for (de...
, !propertyMappings.isEmpty());
233,579
private Map<String, String> _createSymbolMap() {<NEW_LINE>Map<String, String> result = new HashMap<String, String>();<NEW_LINE>for (ULocale locale = rb.getULocale(); locale != null; locale = locale.getFallback()) {<NEW_LINE>ICUResourceBundle bundle = (ICUResourceBundle) UResourceBundle.getBundleInstance(ICUData.ICU_CUR...
result.put(isoCode, isoCode);
66,713
public Boolean update(ClusterRequest request, String operator) {<NEW_LINE>LOGGER.debug("begin to update inlong cluster: {}", request);<NEW_LINE>Preconditions.checkNotNull(request, "inlong cluster info cannot be empty");<NEW_LINE>Integer id = request.getId();<NEW_LINE>Preconditions.checkNotNull(id, "inlong cluster id ca...
), request.getVersion());
607,342
private StatusDescriptionPair evaluateResourceStatus(String resourceName) {<NEW_LINE>IdealState idealState = getResourceIdealState(resourceName);<NEW_LINE>// If the resource has been removed or disabled, ignore it<NEW_LINE>if (idealState == null || !idealState.isEnabled()) {<NEW_LINE>return new StatusDescriptionPair(St...
("Resource: %s, partition: %s is in ERROR state", resourceName, partitionName));
1,590,598
final DetachInstancesResult executeDetachInstances(DetachInstancesRequest detachInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(detachInstancesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,050,222
public static ClientMessage encodeRequest(java.lang.String name, java.util.UUID txnId, long threadId, com.hazelcast.internal.serialization.Data predicate) {<NEW_LINE><MASK><NEW_LINE>clientMessage.setRetryable(false);<NEW_LINE>clientMessage.setOperationName("TransactionalMap.ValuesWithPredicate");<NEW_LINE>ClientMessage...
ClientMessage clientMessage = ClientMessage.createForEncode();
1,770,656
/*<NEW_LINE>* Checks in a client.<NEW_LINE>*/<NEW_LINE>@FFDCIgnore(value = { InterruptedException.class })<NEW_LINE>public void checkinClient(Client client) {<NEW_LINE>boolean done = false;<NEW_LINE>// If no more space. Return. Shouldn't be checking more than we have. Shouldn't happen besides unit test anyways.<NEW_LIN...
) + " of " + numClients + " clients available.");
812,751
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static com.sun.jdi.ThreadReference thread(com.sun.jdi.event.ClassPrepareEvent a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.m...
jpda.jdi.InternalExceptionWrapper(ex);
1,490,532
protected void verifyProcessInstanceStartUser(TaskRepresentation taskRepresentation, TaskInfo task) {<NEW_LINE>if (task.getProcessInstanceId() != null) {<NEW_LINE>HistoricProcessInstance historicProcessInstance = historyService.createHistoricProcessInstanceQuery().processInstanceId(task.getProcessInstanceId()).singleRe...
getExtensionElements().get("initiator-can-complete");
721,320
public CloseableIterator<Element> iterator() {<NEW_LINE>Stream<Element> elements = Streams.toStream(getElements.getInput()).flatMap(elementId -> GetElementsUtil.getRelevantElements(mapImpl, elementId, getElements.getView(), getElements.getDirectedType(), getElements.getIncludeIncomingOutGoing(), getElements.getSeedMatc...
>(elements.iterator());
1,072,849
public static Object[] fromTensor(Tensor<?> tensor) {<NEW_LINE>Preconditions.checkArgument(tensor.shape().numDimensions() == 1, "Can only convert tensors with shape long[]");<NEW_LINE>final int size = (int) tensor.shape().size(0);<NEW_LINE>Object[] res = new Object[size];<NEW_LINE>if (TInt32.DTYPE.equals(tensor.dataTyp...
[i] = data[i];
393,204
public static void showMarker(IMarker marker, String viewId, IWorkbenchPart source) {<NEW_LINE>IWorkbenchPage page = PlatformUI.getWorkbench()<MASK><NEW_LINE>IViewPart view = page.findView(viewId);<NEW_LINE>if (!page.isPartVisible(view)) {<NEW_LINE>try {<NEW_LINE>view = page.showView(viewId);<NEW_LINE>} catch (PartInit...
.getActiveWorkbenchWindow().getActivePage();
720,971
private void checkAggregation(Map<VariableReferenceExpression, Aggregation> aggregations) {<NEW_LINE>for (Map.Entry<VariableReferenceExpression, Aggregation> entry : aggregations.entrySet()) {<NEW_LINE>VariableReferenceExpression variable = entry.getKey();<NEW_LINE>Aggregation aggregation = entry.getValue();<NEW_LINE>F...
).collect(toImmutableList());
394,883
public static void run(Process process) {<NEW_LINE>try {<NEW_LINE>LOG.info("Starting {}.", process);<NEW_LINE>LOG.info("Alluxio version: {}-{}", RuntimeConstants.VERSION, ProjectConstants.REVISION);<NEW_LINE>LOG.info("Java version: {}", System.getProperty("java.version"));<NEW_LINE>process.start();<NEW_LINE>LOG.info("S...
.getRootCause(t), t);
1,562,431
protected void finishPage(final IProgressMonitor monitor) throws CoreException, InterruptedException {<NEW_LINE>PageOne pageOne = (PageOne) getPage(PageOne.PAGE_NAME);<NEW_LINE>PageTwo pageTwo = (PageTwo) getPage(PageTwo.PAGE_NAME);<NEW_LINE>GroovyTypeBuilder builder = new GroovyTypeBuilder();<NEW_LINE>builder.setPacka...
build(monitor, this::finishType);
58,309
private static BiFunction<Query, Version, Result> phraseQuery() {<NEW_LINE>return (query, version) -> {<NEW_LINE>Term[] terms = ((PhraseQuery) query).getTerms();<NEW_LINE>if (terms.length == 0) {<NEW_LINE>return new Result(true, <MASK><NEW_LINE>}<NEW_LINE>if (version.onOrAfter(Version.V_6_1_0)) {<NEW_LINE>Set<QueryExtr...
Collections.emptySet(), 0);
456,941
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_animation_diff_utils);<NEW_LINE>findViewById(R.id.add).setOnClickListener(new View.OnClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onClick(View v) {<NEW_LINE>...
List<Item>>(adapterDelegatesManager);
1,476,093
private void handle(RequestHeader requestHeader, ByteBuf in, ChannelHandlerContext ctx) {<NEW_LINE>ResponseData responseData = null;<NEW_LINE>ResponseHeader responseHeader;<NEW_LINE>ServerState state = runningContext.getState();<NEW_LINE>// LOG.info("Request header = " + requestHeader);<NEW_LINE>if (state == ServerStat...
sendResult(requestHeader, ctx, out);
83,802
public static Shape createDiagonalCross(float l, float t) {<NEW_LINE><MASK><NEW_LINE>p0.moveTo(-l - t, -l + t);<NEW_LINE>p0.lineTo(-l + t, -l - t);<NEW_LINE>p0.lineTo(0.0f, -t * SQRT2);<NEW_LINE>p0.lineTo(l - t, -l - t);<NEW_LINE>p0.lineTo(l + t, -l + t);<NEW_LINE>p0.lineTo(t * SQRT2, 0.0f);<NEW_LINE>p0.lineTo(l + t, l...
final GeneralPath p0 = new GeneralPath();
259,114
private void printOpenJPAConfiguration(final Object config, final PrintWriter out, final String indent) {<NEW_LINE>out.<MASK><NEW_LINE>if (config == null || indent == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (config != null) {<NEW_LINE>// ClassLoader<NEW_LINE>out.println(indent + " ._appCL = " + r...
println(indent + "OpenJPA Configuration = " + config);
151,974
protected void drawGuiContainerForegroundLayer(PoseStack transform, int mouseX, int mouseY, float partialTick) {<NEW_LINE>this.font.draw(transform, new TranslatableComponent(Lib.GUI_CONFIG + "redstone_color_sending").getString(), guiLeft, guiTop, DyeColor.WHITE.getTextColor());<NEW_LINE>this.font.draw(transform, new Tr...
(Lib.GUI_CONFIG + "redstone_color"));
641,875
public void onInputSizeChanged(final int width, final int height) {<NEW_LINE>super.onInputSizeChanged(width, height);<NEW_LINE>int size = filters.size();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>filters.get(i<MASK><NEW_LINE>}<NEW_LINE>if (frameBuffers != null && (frameWidth != width || frameHeight != height |...
).onInputSizeChanged(width, height);
1,512,991
void enableLionFS() {<NEW_LINE>try {<NEW_LINE>String version = System.getProperty("os.version");<NEW_LINE>int firstDot = version.indexOf('.');<NEW_LINE>int lastDot = version.lastIndexOf('.');<NEW_LINE>if (lastDot > firstDot && lastDot >= 0) {<NEW_LINE>version = version.substring(0, version.indexOf('.', firstDot + 1));<...
v = Double.parseDouble(version);
1,380,584
public boolean onPreferenceChange(Preference preference, Object newValue) {<NEW_LINE>if (MyDebug.LOG)<NEW_LINE>Log.d(TAG, "clicked raw: " + newValue);<NEW_LINE>if (newValue.equals("preference_raw_yes")) {<NEW_LINE>// we check done_raw_info every time, so that this works if the user selects RAW<NEW_LINE>// again without...
Editor editor = sharedPreferences.edit();
1,737,489
public DoubleArray findRoot(Function<DoubleArray, DoubleArray> function, Function<DoubleArray, DoubleMatrix> jacobianFunction, DoubleArray startPosition) {<NEW_LINE>DataBundle data = new DataBundle();<NEW_LINE>DoubleArray <MASK><NEW_LINE>data.setX(startPosition);<NEW_LINE>data.setY(y);<NEW_LINE>data.setG0(_algebra.getI...
y = checkInputsAndApplyFunction(function, startPosition);
255,307
public ActionResult<Wo> call() throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Work work = emc.find(workId, Work.class);<NEW_LINE>emc.beginTransaction(DocumentVersion.class);<NEW_LINE>DocumentVersion documentVersion = new DocumentVersion();<NEW...
setCategory(wi.getCategory());
1,326,938
public void run(MessageReply reply) {<NEW_LINE>if (reply.isSuccess()) {<NEW_LINE>NfsPrimaryStorageAgentResponse rsp = ((KVMHostAsyncHttpCallReply) reply).toResponse(NfsPrimaryStorageAgentResponse.class);<NEW_LINE>if (rsp.isSuccess()) {<NEW_LINE>nfsFactory.updateNfsHostStatus(psInv.getUuid(), huuid, PrimaryStorageHostSt...
add(reply.getError());
1,815,613
public Void visitNewClass(NewClassTree tree, Void p) {<NEW_LINE>defaultAction(tree);<NEW_LINE>if (tree.getEnclosingExpression() != null) {<NEW_LINE>tree.getEnclosingExpression(<MASK><NEW_LINE>}<NEW_LINE>tree.getIdentifier().accept(this, p);<NEW_LINE>for (Tree typeArgument : tree.getTypeArguments()) {<NEW_LINE>typeArgum...
).accept(this, p);
837,322
public static GetAppApiByPageResponse unmarshall(GetAppApiByPageResponse getAppApiByPageResponse, UnmarshallerContext _ctx) {<NEW_LINE>getAppApiByPageResponse.setRequestId(_ctx.stringValue("GetAppApiByPageResponse.RequestId"));<NEW_LINE>getAppApiByPageResponse.setCode(_ctx.integerValue("GetAppApiByPageResponse.Code"));...
(_ctx.integerValue("GetAppApiByPageResponse.Data.PageSize"));
674,388
public static GetUserInstanceResponse unmarshall(GetUserInstanceResponse getUserInstanceResponse, UnmarshallerContext context) {<NEW_LINE>getUserInstanceResponse.setRequestId(context.stringValue("GetUserInstanceResponse.RequestId"));<NEW_LINE>getUserInstanceResponse.setCode(context.integerValue("GetUserInstanceResponse...
("GetUserInstanceResponse.Data.Detail[" + i + "].QuotaName"));
1,603,106
public ByteBuffer asByteBuffer() {<NEW_LINE>int spsPpsSize = 0;<NEW_LINE>for (ByteBuffer bytes : avcC.getSequenceParameterSets()) {<NEW_LINE>spsPpsSize += len + bytes.limit();<NEW_LINE>}<NEW_LINE>for (ByteBuffer bytes : avcC.getSequenceParameterSetExts()) {<NEW_LINE>spsPpsSize += len + bytes.limit();<NEW_LINE>}<NEW_LIN...
limit(), data, len);
1,432,520
public ListBackendEnvironmentsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListBackendEnvironmentsResult listBackendEnvironmentsResult = new ListBackendEnvironmentsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
)).unmarshall(context));
637,423
public static void init() {<NEW_LINE>BlockManager blockManager = MinecraftServer.getBlockManager();<NEW_LINE>blockManager.registerBlockPlacementRule(new RedstonePlacementRule());<NEW_LINE>blockManager.registerBlockPlacementRule(new AxisPlacementRule(Block.BONE_BLOCK));<NEW_LINE>blockManager.registerBlockPlacementRule(n...
new WallPlacementRule(Block.MOSSY_COBBLESTONE_WALL));
281,764
private void appendRandomLong(StringBuilder buffer, CodegenOperation op, CodegenVariable var) {<NEW_LINE>if (!appendRandomEnum(buffer, op, var)) {<NEW_LINE>// NOTE: use BigDecimal to hold long values, to avoid numeric overflow.<NEW_LINE>BigDecimal min = new BigDecimal(var == null || var.minimum == null ? Long.MIN_VALUE...
var.exclusiveMinimum ? 1 : 0);
733,142
protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite parentComposite = (Composite) super.createDialogArea(parent);<NEW_LINE>Composite composite = new Composite(parentComposite, SWT.NULL);<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>layout.marginHeight = 10;<NEW_LINE>layout.marginWidth =...
fillDefaults().create());
1,016,750
private void handleCode(CloseCode closeCode) {<NEW_LINE>if (closeCode == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mostRecentCloseCode = closeCode;<NEW_LINE>if (closeCode == CloseCode.DISALLOWED_INTENTS) {<NEW_LINE>Set<GatewayIntent> intents = DiscordSRV.api.getIntents();<NEW_LINE>boolean presences = intents.contain...
getLogger().severe(" ");
823,061
final UpdateDestinationResult executeUpdateDestination(UpdateDestinationRequest updateDestinationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDestinationRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UpdateDestinationReq...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
853,922
public static ImmutableMap<String, String> applySuggestedFixesToCode(Iterable<SuggestedFix> fixes, Map<String, String> filenameToCodeMap) {<NEW_LINE>ReplacementMap map = new ReplacementMap();<NEW_LINE>for (SuggestedFix fix : fixes) {<NEW_LINE>map.putIfNoOverlap(fix);<NEW_LINE>}<NEW_LINE>ImmutableMap.Builder<String, Str...
, filenameToCodeMap.get(filename));
353,226
public TransactionValidationResult isValid(Transaction tx, Block executionBlock, @Nullable AccountState state) {<NEW_LINE>BigInteger blockGasLimit = BigIntegers.fromUnsignedByteArray(executionBlock.getGasLimit());<NEW_LINE>Coin minimumGasPrice = executionBlock.getMinimumGasPrice();<NEW_LINE>long bestBlockNumber = execu...
), validationResult.getErrorMessage());
1,851,687
private void prepareKeyBlob() throws IOException {<NEW_LINE>try {<NEW_LINE>Point ecPoint = Point.createPoint(msg.getComputations().getClientPublicKeyX().getValue(), msg.getComputations().getClientPublicKeyY().getValue(<MASK><NEW_LINE>SubjectPublicKeyInfo ephemeralKey = SubjectPublicKeyInfo.getInstance(GOSTUtils.generat...
), chooser.getSelectedGostCurve());
1,413,466
public List<SrvRecord> resolveSrv(String host) throws Exception {<NEW_LINE>if (logger.isLoggable(Level.FINER)) {<NEW_LINE>logger.log(Level.FINER, "About to query SRV records for {0}", new Object[] { host });<NEW_LINE>}<NEW_LINE>List<String> rawSrvRecords = recordFetcher.getAllRecords("SRV", "dns:///" + host);<NEW_LINE>...
whitespace.split(rawSrv, 5);
786,156
private void handle(APIRecoverDataVolumeMsg msg) {<NEW_LINE>thdf.chainSubmit(new ChainTask(msg) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getSyncSignature() {<NEW_LINE>return syncThreadId;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(SyncTaskChain chain) {<NEW_LINE>refreshVO();<NEW_LINE>...
.getClass().getName();
188,078
final ListInvitationsResult executeListInvitations(ListInvitationsRequest listInvitationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listInvitationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
false), new ListInvitationsResultJsonUnmarshaller());
779,005
public Map<JobId, List<Job>> jobsToRun() {<NEW_LINE>Map<InstanceName, Change> changes = new LinkedHashMap<>();<NEW_LINE>for (InstanceName instance : application.deploymentSpec().instanceNames()) changes.put(instance, application.require<MASK><NEW_LINE>Map<JobId, List<Job>> jobs = jobsToRun(changes);<NEW_LINE>// Add tes...
(instance).change());
599,884
// ===========================================================<NEW_LINE>// Methods from SuperClass/Interfaces<NEW_LINE>// ===========================================================<NEW_LINE>@Override<NEW_LINE>public void draw(Canvas c, Projection projection) {<NEW_LINE>final double zoomLevel = projection.getZoomLevel(...
? latitudeBarRect.height() : 0;
1,778,944
public final PairList<String, Shape> describeOutput() {<NEW_LINE>if (outputDescriptions == null) {<NEW_LINE>outputDescriptions = new PairList<>();<NEW_LINE>Map<String, TensorInfo> outputsMap = servingDefault.getOutputsMap();<NEW_LINE>List<String> keys = new ArrayList<>(outputsMap.keySet());<NEW_LINE>Collections.sort(ke...
getSize).toArray()));
1,579,899
private void layoutHorizontal(int left, int top, int right, int bottom) {<NEW_LINE><MASK><NEW_LINE>int paddingRight = this.getPaddingRight();<NEW_LINE>int paddingTop = this.getPaddingTop();<NEW_LINE>int paddingBottom = this.getPaddingBottom();<NEW_LINE>int childTop = paddingTop;<NEW_LINE>int childLeft = 0;<NEW_LINE>int...
int paddingLeft = this.getPaddingLeft();
1,192,483
private void registerFeignClient(BeanDefinitionRegistry registry, AnnotationMetadata annotationMetadata, Map<String, Object> attributes) {<NEW_LINE>String className = annotationMetadata.getClassName();<NEW_LINE>Class clazz = <MASK><NEW_LINE>ConfigurableBeanFactory beanFactory = registry instanceof ConfigurableBeanFacto...
ClassUtils.resolveClassName(className, null);
527,933
private Notifications readNotifications(Element parent, Element fallbackParent) {<NEW_LINE>Element notificationsElement = XML.getChild(parent, notificationsTag);<NEW_LINE>if (notificationsElement == null)<NEW_LINE>notificationsElement = XML.getChild(fallbackParent, notificationsTag);<NEW_LINE>if (notificationsElement =...
::fromValue).orElse(defaultWhen);
1,324,845
private void findLookupProperties() {<NEW_LINE>List<Property> candidates = new ArrayList();<NEW_LINE>for (// leave out properties that are either not used for comparisons,<NEW_LINE>Property prop : // leave out properties that are either not used for comparisons,<NEW_LINE>properties.values()) // or which have lookup tur...
(candidates, new HighComparator());
1,349,620
public void sendStream(final int iCode, final String iReason, final String iContentType, InputStream iContent, long iSize, final String iFileName, Map<String, String> additionalHeaders) throws IOException {<NEW_LINE>writeStatus(iCode, iReason);<NEW_LINE>writeHeaders(iContentType);<NEW_LINE>writeLine("Content-Transfer-E...
writeLine("Content-Disposition: attachment; filename=\"" + iFileName + "\"");
388,235
public boolean put(String aliasName, String dataStream, Boolean isWriteDataStream, String filter) {<NEW_LINE>previousIndicesLookup = null;<NEW_LINE>Map<String, DataStream> existingDataStream = Optional.ofNullable((DataStreamMetadata) this.customs.get(DataStreamMetadata.TYPE)).map(dsmd -> new HashMap<>(dsmd.dataStreams(...
aliasName + "] refers to a non existing data stream [" + dataStream + "]");
276,289
protected static Date safeToDate(Object obj) {<NEW_LINE>if (obj == null) {<NEW_LINE>return null;<NEW_LINE>} else if (obj instanceof Date) {<NEW_LINE>return (Date) obj;<NEW_LINE>} else if (obj instanceof ZonedDateTime) {<NEW_LINE>ZonedDateTime zonedDateTime = ((ZonedDateTime) obj);<NEW_LINE>return Timestamp.<MASK><NEW_L...
from(zonedDateTime.toInstant());
1,314,285
public boolean execute(Object object) throws ContractExeException {<NEW_LINE>TransactionResultCapsule ret = (TransactionResultCapsule) object;<NEW_LINE>if (Objects.isNull(ret)) {<NEW_LINE>throw new RuntimeException(ActuatorConstant.TX_RESULT_NULL);<NEW_LINE>}<NEW_LINE>long fee = calcFee();<NEW_LINE>AccountStore account...
accountStore.put(ownerAddress, ownerAccount);
1,304,792
final ModifyWorkspaceAccessPropertiesResult executeModifyWorkspaceAccessProperties(ModifyWorkspaceAccessPropertiesRequest modifyWorkspaceAccessPropertiesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyWorkspaceAccessPropertiesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
(super.beforeMarshalling(modifyWorkspaceAccessPropertiesRequest));
154,390
public static void _main(String[] args) throws Exception {<NEW_LINE>String sesameURL, repoID;<NEW_LINE>if (args != null && args.length == 2) {<NEW_LINE>sesameURL = args[0];<NEW_LINE>repoID = args[1];<NEW_LINE>} else {<NEW_LINE>sesameURL = DemoSesameServer.sesameURL;<NEW_LINE>repoID = DemoSesameServer.repoID;<NEW_LINE>}...
URIImpl(BD.NAMESPACE + "Mike");
1,128,786
private void addZipArtifact(PrintWriter writer, String connectorPath, ZipArtifact zip) {<NEW_LINE>checkUrlIsPresent(zip);<NEW_LINE>String artifactHash = Util.hashStub(zip.getUrl());<NEW_LINE><MASK><NEW_LINE>String archivePath = connectorPath + "/" + artifactHash + ".zip";<NEW_LINE>Cmd run = downloadArtifact(artifactDir...
String artifactDir = connectorPath + "/" + artifactHash;
1,155,952
public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE>// Handle action bar item clicks here. The action bar will<NEW_LINE>// automatically handle clicks on the Home/Up button, so long<NEW_LINE>// as you specify a parent activity in AndroidManifest.xml.<NEW_LINE><MASK><NEW_LINE>// turn into switch<NEW_LINE>if (...
int id = item.getItemId();
1,719,501
public void process(Element element, EComponentHolder holder) {<NEW_LINE>ExecutableElement executableElement = (ExecutableElement) element;<NEW_LINE>WakeLock annotation = executableElement.getAnnotation(WakeLock.class);<NEW_LINE>String tag = extractTag(executableElement);<NEW_LINE>Level level = annotation.level();<NEW_...
).assign(wakeLock, newWakeLock);
1,276,278
private void dynamicRefreshPool(String threadPoolId, ExecutorProperties properties) {<NEW_LINE>ExecutorProperties beforeProperties = GlobalCoreThreadPoolManage.getProperties(properties.getThreadPoolId());<NEW_LINE>ThreadPoolExecutor executor = GlobalThreadPoolManage.getExecutorService(threadPoolId).getExecutor();<NEW_L...
setMaximumPoolSize(properties.getMaximumPoolSize());
867,502
public static QueryRelationListResponse unmarshall(QueryRelationListResponse queryRelationListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryRelationListResponse.setRequestId(_ctx.stringValue("QueryRelationListResponse.RequestId"));<NEW_LINE>queryRelationListResponse.setCode(_ctx.stringValue("QueryRelationListResp...
("QueryRelationListResponse.Data.FinancialRelationInfoList[" + i + "].AccountNickName"));
1,504,396
private void updateFrontier(Flowfield path, long nsToRun) {<NEW_LINE>long start = Time.nanos();<NEW_LINE>while (path.frontier.size > 0 && (nsToRun < 0 || Time.timeSinceNanos(start) <= nsToRun)) {<NEW_LINE>Tile tile = world.tile(path.frontier.removeLast());<NEW_LINE>// something went horribly wrong, bail<NEW_LINE>if (ti...
][dy] = cost + otherCost;
210,623
public J visitIdentifier(J.Identifier ident, ExecutionContext ctx) {<NEW_LINE>// if the ident's type is equal to the type we're looking for, and the classname of the type we're looking for is equal to the ident's string representation<NEW_LINE>// Then transform it, otherwise leave it alone<NEW_LINE>J.Identifier i = vis...
(i.getPrefix()));
141,278
public boolean onShutdown(long timeout, TimeUnit unit) {<NEW_LINE>ILogger logger = <MASK><NEW_LINE>Map<RaftGroupId, InternalCompletableFuture<Object>> futures = shutdown();<NEW_LINE>long remainingTimeNanos = unit.toNanos(timeout);<NEW_LINE>boolean successful = true;<NEW_LINE>while (remainingTimeNanos > 0 && futures.siz...
nodeEngine.getLogger(getClass());
676,462
public void findAndAllowAccess(long secretId, long groupId, AuditLog auditLog, String user, Map<String, String> extraInfo) {<NEW_LINE>dslContext.transaction(configuration -> {<NEW_LINE>GroupDAO groupDAO = groupDAOFactory.using(configuration);<NEW_LINE>SecretSeriesDAO secretSeriesDAO = secretSeriesDAOFactory.using(confi...
.getName(), extraInfo));
866,661
final StopKeyPhrasesDetectionJobResult executeStopKeyPhrasesDetectionJob(StopKeyPhrasesDetectionJobRequest stopKeyPhrasesDetectionJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopKeyPhrasesDetectionJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,479,855
void deserialize(TaskMonitor monitor) throws IOException, CancelledException {<NEW_LINE>// Calculate the number of pages that the FreePageMap occupies on disk.<NEW_LINE>// 3 = log2(bitsperbyte)<NEW_LINE>int log2BitsPerPage = msf.getLog2PageSize() + 3;<NEW_LINE>long freePageMapNumPages = AbstractMsf.floorDivisionWithLog...
int pageSize = msf.getPageSize();
1,573,862
public ExpungeVmMsg call(Tuple t) {<NEW_LINE>String uuid = t.get(0, String.class);<NEW_LINE>Timestamp date = t.<MASK><NEW_LINE>long end = date.getTime() + TimeUnit.SECONDS.toMillis(VmGlobalConfig.VM_EXPUNGE_PERIOD.value(Long.class));<NEW_LINE>if (current.getTime() >= end) {<NEW_LINE>VmInstanceDeletionPolicy deletionPol...
get(1, Timestamp.class);
1,647,343
public void migrate(Schema schema, DatabaseSession databaseSession) {<NEW_LINE>EClass pluginBundleVersionClass = <MASK><NEW_LINE>EEnum pluginBundleType = schema.createEEnum("store", "PluginBundleType");<NEW_LINE>schema.createEEnumLiteral(pluginBundleType, "MAVEN");<NEW_LINE>schema.createEEnumLiteral(pluginBundleType, "...
schema.createEClass("store", "PluginBundleVersion");
269,843
Converter<JWT, Mono<JWTClaimsSet>> processor() {<NEW_LINE>Assert.state(JWSAlgorithm.Family.RSA.contains(this.jwsAlgorithm), () -> "The provided key is of type RSA; however the signature algorithm is of some other type: " + this.jwsAlgorithm + ". Please indicate one of RS256, RS384, or RS512.");<NEW_LINE>JWSKeySelector<...
this.jwsAlgorithm, this.key);
1,669,596
public static void main(String[] args) {<NEW_LINE>Exercise3.EdgeWeightedDigraphAdjacencyMatrix edgeWeightedDigraph = new Exercise3().new EdgeWeightedDigraphAdjacencyMatrix(8);<NEW_LINE>edgeWeightedDigraph.addEdge(new DirectedEdge(4, 5, 0.35));<NEW_LINE>edgeWeightedDigraph.addEdge(new DirectedEdge(5, 4, 0.35));<NEW_LINE...
(2, 7, 0.34));
1,202,783
private Instance apply(InstanceEvent event, boolean isNewEvent) {<NEW_LINE>Assert.notNull(event, "'event' must not be null");<NEW_LINE>Assert.isTrue(this.id.equals(event.getInstance()), "'event' must refer the same instance");<NEW_LINE>Assert.isTrue(event.getVersion() >= this.nextVersion(), () -> "Event " + event.getVe...
.getValues()), unsavedEvents);
177,946
private boolean checkPassStep(Game game, HumanPlayer controllingPlayer) {<NEW_LINE>try {<NEW_LINE>if (playerId.equals(game.getActivePlayerId())) {<NEW_LINE>return !controllingPlayer.getUserData().getUserSkipPrioritySteps().getYourTurn().isPhaseStepSet(game.<MASK><NEW_LINE>} else {<NEW_LINE>return !controllingPlayer.get...
getStep().getType());
1,852,126
public static void vertical(GrayU8 input, GrayI8 output, int offset, int length, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>workspaces = BoofMiscOps.checkDeclare(workspaces, DogArray_I32::new);<NEW_LINE>// CONCURRENT_REMOVE_LINE<NEW_LINE>final DogArray_I32 work = workspaces.grow();<NEW_LINE>final <MASK><N...
int backStep = length * input.stride;
9,610
public void html(WordprocessingMLPackage wmlPackage, javax.xml.transform.Result result, HTMLSettings htmlSettings) throws Exception {<NEW_LINE>ByteArrayOutputStream outStream = new ByteArrayOutputStream(DEFAULT_OUTPUT_SIZE);<NEW_LINE>if ((xslt != null) && (htmlSettings.getCustomXsltTemplates() == null)) {<NEW_LINE>html...
htmlSettings, outStream, Docx4J.FLAG_EXPORT_PREFER_XSL);
1,457,642
private Map<PhysicalPlan, PartitionGroup> splitAndRoutePlan(InsertRowsOfOneDevicePlan plan) throws MetadataException {<NEW_LINE>Map<PhysicalPlan, PartitionGroup> result = new HashMap<>();<NEW_LINE>Map<PartitionGroup, List<InsertRowPlan>> <MASK><NEW_LINE>Map<PartitionGroup, List<Integer>> groupPlanIndexMap = new HashMap...
groupPlanMap = new HashMap<>();
544,747
public boolean shouldInterceptTouchEvent(MotionEvent ev, boolean moving, float diffX, float diffY) {<NEW_LINE>if (!mScrolled && mSlop < Math.abs(diffX) && Math.abs(diffY) < Math.abs(diffX)) {<NEW_LINE>// Horizontal scroll is maybe handled by ViewPager<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Scrollable scrollable = g...
int) ViewHelper.getTranslationY(mInterceptionLayout);
1,171,024
private void pushByConstant(DismantleBytecode dbc, Constant c) {<NEW_LINE>if (c instanceof ConstantClass) {<NEW_LINE>push(new Item("Ljava/lang/Class;", ((ConstantClass) c).getConstantValue(dbc.getConstantPool())));<NEW_LINE>} else if (c instanceof ConstantInteger) {<NEW_LINE>push(new Item("I", Integer.valueOf(((Constan...
).getBytes())));
549,458
public void run() {<NEW_LINE>try {<NEW_LINE>pref.clear();<NEW_LINE>} catch (BackingStoreException bsE) {<NEW_LINE>// NOI18N<NEW_LINE>ERR.log(Level.INFO, Utils.getBundleString("Err_StoreSettings"), bsE);<NEW_LINE>}<NEW_LINE>pref.putInt(PaletteController.ATTR_ICON_SIZE, _getIconSize(model));<NEW_LINE>pref.putBoolean(Pale...
.ATTR_IS_VISIBLE, _isVisible(item));
1,775,063
protected void learnConnection(final FreeformConnection connection) {<NEW_LINE>// multiply the current and previous gradient, and take the<NEW_LINE>// sign. We want to see if the gradient has changed its sign.<NEW_LINE>final int change = EncogMath.sign(connection.getTempTraining(FreeformResilientPropagation.TEMP_GRADIE...
connection.getTempTraining(FreeformResilientPropagation.TEMP_UPDATE);
1,537,442
protected Object manageSerializedCollections(final Object self, final String fieldName, Object value) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {<NEW_LINE>if (value instanceof Collection<?>) {<NEW_LINE>if (value instanceof List) {<NEW_LINE>List<Object> docList = doc.field(fieldName...
= new ArrayList<Object>();
1,186,945
final GetContactAttributesResult executeGetContactAttributes(GetContactAttributesRequest getContactAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getContactAttributesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetCo...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,654,017
public void onDeath(@Nonnull DamageSource damageSource) {<NEW_LINE>super.onDeath(damageSource);<NEW_LINE>if (!world.isRemote && damageSource.getTrueSource() instanceof EntityPlayer) {<NEW_LINE>SlimeConf nextConf = SlimeConf.getConfForSize(getSlimeSize()).bigger();<NEW_LINE>if (nextConf != null && world.rand.nextFloat()...
posY, posZ, rotationYaw, 0);
1,487,181
public static void assignProfilesToUser(Connection con, Long userId, List<String> allProfilesNmList, List<String> assignedProfilesNmList) throws SQLException {<NEW_LINE>for (String profileNm : allProfilesNmList) {<NEW_LINE>if (StringUtils.isNotEmpty(profileNm)) {<NEW_LINE>Long profileId = null;<NEW_LINE>PreparedStateme...
stmt.setLong(2, userId);
1,490,176
public boolean visit(ClassInstanceCreation node) {<NEW_LINE>if (!hasChildrenChanges(node)) {<NEW_LINE>return doVisitUnchangedChildren(node);<NEW_LINE>}<NEW_LINE>int pos = rewriteOptionalQualifier(node, ClassInstanceCreation.EXPRESSION_PROPERTY, node.getStartPosition());<NEW_LINE>if (node.getAST().apiLevel() == JLS2_INT...
startpos, Util.EMPTY_STRING, ", ");
1,800,018
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
873,243
public GeoShapeWithDocValuesFieldMapper build(MapperBuilderContext context) {<NEW_LINE>if (multiFieldsBuilder.hasMultiFields()) {<NEW_LINE>DEPRECATION_LOGGER.warn(DeprecationCategory.MAPPINGS, "geo_shape_multifields", "Adding multifields to [geo_shape] mappers has no effect and will be forbidden in future");<NEW_LINE>}...
get().value());
594,829
protected void service(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {<NEW_LINE>String dispatch = (String) (req.getAttribute("dispatch"));<NEW_LINE>LOG.info("AsyncForwardServlet : Entering. dispatch = " + dispatch);<NEW_LINE><MASK><NEW_LINE>if (dispatch == null || dispatch.isEmpt...
PrintWriter pw = res.getWriter();
1,070,155
public Size apply(MethodVisitor methodVisitor, Context implementationContext, MethodDescription instrumentedMethod) {<NEW_LINE>if (instrumentedMethod.isStatic()) {<NEW_LINE>throw new IllegalStateException("toString method must not be static: " + instrumentedMethod);<NEW_LINE>} else if (!instrumentedMethod.getReturnType...
stackManipulations.add(ValueConsumer.STRING);
120,465
public GHPoint intermediatePoint(double f, double lat1, double lon1, double lat2, double lon2) {<NEW_LINE>double lat1radians = Math.toRadians(lat1);<NEW_LINE>double lon1radians = Math.toRadians(lon1);<NEW_LINE>double lat2radians = Math.toRadians(lat2);<NEW_LINE>double lon2radians = Math.toRadians(lon2);<NEW_LINE>// Thi...
.sqrt(1 - a));
1,297,037
// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public CurrencyParameterSensitivities parameterSensitivity(FxForwardSensitivity pointSensitivity) {<NEW_LINE>// use the specified base currency to determine the desired currency pair<NEW_LINE>// then derive sensitiv...
dfCcyCounterAtMaturityInv * pointSensitivity.getSensitivity());
1,324,065
protected void eventNotificationsCompleted(PvmExecutionImpl execution) {<NEW_LINE>PvmActivity activity = execution.getActivity();<NEW_LINE>if (execution.isScope() && (executesNonScopeActivity(execution) || isAsyncBeforeActivity(execution)) && !CompensationBehavior.executesNonScopeCompensationHandler(execution)) {<NEW_L...
.setActivity(getFlowScopeActivity(activity));
1,310,487
private void changeKeyAuthentication() {<NEW_LINE>boolean enabled = keyAuthButton.getSelection();<NEW_LINE>if (enabled) {<NEW_LINE>FileDialog dlg;<NEW_LINE>String ssh_home = SecureUtils.getSSH_HOME();<NEW_LINE>while (true) {<NEW_LINE>dlg = new FileDialog(getShell(), SWT.OPEN);<NEW_LINE>dlg.setText(Messages.CommonFTPCon...
CommonFTPConnectionPointPropertyDialog_ERR_PrivateKey, e.getLocalizedMessage());
748,346
public void onPrepareOptionsMenu(@NonNull Menu menu) {<NEW_LINE>super.onPrepareOptionsMenu(menu);<NEW_LINE>menu.findItem(R.id.menu_favorite).setVisible(false);<NEW_LINE>menu.findItem(R.id<MASK><NEW_LINE>menu.findItem(R.id.menu_preview).setVisible(false);<NEW_LINE>menu.findItem(R.id.menu_cancel).setVisible(false);<NEW_L...
.menu_edit).setVisible(false);
255,472
static AoFaceData weightedMean(AoFaceData in0, float w0, AoFaceData in1, float w1, AoFaceData out) {<NEW_LINE>out.a0 = in0.a0 * w0 + in1.a0 * w1;<NEW_LINE>out.a1 = in0.a1 * w0 + in1.a1 * w1;<NEW_LINE>out.a2 = in0.a2 * w0 + in1.a2 * w1;<NEW_LINE>out.a3 = in0.a3 <MASK><NEW_LINE>out.b0 = (int) (in0.b0 * w0 + in1.b0 * w1);...
* w0 + in1.a3 * w1;
594,440
void positionPathAttributes(FloatRect start, FloatRect end, float x, float y, String[] attribute, float[] value) {<NEW_LINE>float startCenterX = start.centerX();<NEW_LINE>float startCenterY = start.centerY();<NEW_LINE>float endCenterX = end.centerX();<NEW_LINE><MASK><NEW_LINE>float pathVectorX = endCenterX - startCente...
float endCenterY = end.centerY();
1,187,716
public static String serializeToJson(Histogram histogram) {<NEW_LINE>if (histogram == null) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>String type = StatisticUtils.encodeDataType(histogram.dataType);<NEW_LINE>JSONObject histogramJson = new JSONObject();<NEW_LINE>histogramJson.put("type", type);<NEW_LINE>histogramJson.pu...
put("sampleRate", histogram.sampleRate);
1,644,466
public Pair<Expression, Concrete.Expression> visitClass(Concrete.ClassDefinition def, Definition params) {<NEW_LINE>ClassDefinition coreDef;<NEW_LINE>if (params instanceof ClassDefinition)<NEW_LINE>coreDef = (ClassDefinition) params;<NEW_LINE>else<NEW_LINE>return null;<NEW_LINE>var desugared = def.getStage().ordinal() ...
Referable implementedField = concrete.getImplementedField();
1,424,754
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UntagResourceRequest> request = null;<NE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,817,281
public MultiNormalizerMinMaxScaler restore(@NonNull InputStream stream) throws IOException {<NEW_LINE>DataInputStream dis = new DataInputStream(stream);<NEW_LINE>boolean fitLabels = dis.readBoolean();<NEW_LINE>int numInputs = dis.readInt();<NEW_LINE>int numOutputs = dis.readInt();<NEW_LINE>double targetMin = dis.readDo...
labelStats = new ArrayList<>();