idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,257,278
public void visit(BLangXMLQName bLangXMLQName, AnalyzerData data) {<NEW_LINE>String prefix = bLangXMLQName.prefix.value;<NEW_LINE>data.resultType = types.checkType(bLangXMLQName, symTable.stringType, data.expType);<NEW_LINE>// TODO: check isLHS<NEW_LINE>if (data.env.node.getKind() == NodeKind.XML_ATTRIBUTE && prefix.is...
bLangXMLQName.nsSymbol = (BXMLNSSymbol) xmlnsSymbol;
1,368,983
final StartJobResult executeStartJob(StartJobRequest startJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R...
endClientExecution(awsRequestMetrics, request, response);
1,211,430
static TextFormatter prepareFormatter(Spec spec) throws PyException {<NEW_LINE>// Slight differences between format types<NEW_LINE>switch(spec.type) {<NEW_LINE>case Spec.NONE:<NEW_LINE>case 's':<NEW_LINE>// Check for disallowed parts of the specification<NEW_LINE>if (spec.grouping) {<NEW_LINE>throw Formatter.notAllowed...
Formatter.signNotAllowed("string", '\0');
228,981
public void addToStatistics(NumberVector nv) {<NEW_LINE>final int d = nv.getDimensionality();<NEW_LINE>assert (d == ssd.length);<NEW_LINE>if (n == 0) {<NEW_LINE>for (int i = 0; i < d; i++) {<NEW_LINE>for (int j = 0; j < d; j++) {<NEW_LINE>ssd[i][j] = 0.;<NEW_LINE>}<NEW_LINE>mean[i] = nv.doubleValue(i);<NEW_LINE>}<NEW_L...
] nmea = new double[d];
1,545,453
private Mono<Response<Void>> validateMoveWithResponseAsync(String resourceGroupName, CsmMoveResourceEnvelope moveResourceEnvelope, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be n...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
1,121,823
public static Object convertStringToPrimitive(String value, Class<?> cls, Annotation[] anns) {<NEW_LINE>Message m = JAXRSUtils.getCurrentMessage();<NEW_LINE>Object obj = createFromParameterHandler(value, cls, cls, anns, m);<NEW_LINE>if (obj != null) {<NEW_LINE>return obj;<NEW_LINE>}<NEW_LINE>if (String.class == cls) {<...
new Object[] { value });
536,705
private void logAccess(Context ctx, LoginMember member) {<NEW_LINE>StringBuilder sb = new StringBuilder(256);<NEW_LINE>SimpleDateFormat dateFormat = new SimpleDateFormat("[yyyy-MM-dd HH:mm:ss]");<NEW_LINE>HttpServletRequest request = ctx.getHttpServletRequest();<NEW_LINE>String actionUri = ctx<MASK><NEW_LINE>sb.append(...
.getRequestContext().getActionUri();
1,783,378
public List<HistoricTaskInstance> findHistoricTaskInstancesAndVariablesByQueryCriteria(HistoricTaskInstanceQueryImpl historicTaskInstanceQuery) {<NEW_LINE>// paging doesn't work for combining task instances and variables<NEW_LINE>// due to an outer join, so doing it in-memory<NEW_LINE>if (historicTaskInstanceQuery.getF...
), historicTaskInstanceQuery.getMaxResults());
1,561,135
public IRubyObject step(ThreadContext context, IRubyObject[] args, Block block) {<NEW_LINE>if (!block.isGiven()) {<NEW_LINE>IRubyObject[] newArgs = new IRubyObject[3];<NEW_LINE>numExtractStepArgs(context, args, newArgs);<NEW_LINE>IRubyObject to = newArgs[0], step = newArgs[1<MASK><NEW_LINE>if (!by.isNil()) {<NEW_LINE>s...
], by = newArgs[2];
1,073,834
public void run(String command, String[] args, Context context, PrintStream out) throws DDRInteractiveCommandException {<NEW_LINE>String[] newArgs = null;<NEW_LINE>if (args.length < 1) {<NEW_LINE>out.println("The time command requires another command to run as an argument.");<NEW_LINE>return;<NEW_LINE>} else if (args.l...
commandParser.toString(), secs);
245,885
private void dealWithGroupedContexts(String resourceId, List<Phase2Context> contexts) {<NEW_LINE>DataSourceProxy dataSourceProxy = dataSourceManager.get(resourceId);<NEW_LINE>if (dataSourceProxy == null) {<NEW_LINE>LOGGER.warn("failed to find resource for {} and requeue", resourceId);<NEW_LINE>addAllToCommitQueue(conte...
Lists.partition(contexts, UNDOLOG_DELETE_LIMIT_SIZE);
368,587
private static void loadICUData(Context context, File workingDir) {<NEW_LINE>OutputStream out = null;<NEW_LINE>ZipInputStream in = null;<NEW_LINE>File icuDir = new File(workingDir, "icu");<NEW_LINE>File icuDataFile = new File(icuDir, "icudt46l.dat");<NEW_LINE>try {<NEW_LINE>if (!icuDir.exists())<NEW_LINE>icuDir.mkdirs(...
e(TAG, "Error copying icu dat file", ex);
493,162
private static void insideTag(DocTreePath tag, JavadocContext jdctx, int caretOffset) {<NEW_LINE>TokenSequence<JavadocTokenId> jdts = jdctx.jdts;<NEW_LINE>assert jdts.token() != null;<NEW_LINE>int start = (int) jdctx.positions.getStartPosition(jdctx.javac.getCompilationUnit(), jdctx.<MASK><NEW_LINE>boolean isThrowsKind...
comment, tag.getLeaf());
1,132,422
final GetSizeConstraintSetResult executeGetSizeConstraintSet(GetSizeConstraintSetRequest getSizeConstraintSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSizeConstraintSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
false), new GetSizeConstraintSetResultJsonUnmarshaller());
1,530,846
public boolean execute() throws Exception {<NEW_LINE>PluginManager<MASK><NEW_LINE>if (_type == null) {<NEW_LINE>Set<Class<? extends QuickStartBase>> quickStarts = allQuickStarts();<NEW_LINE>throw new UnsupportedOperationException("No QuickStart type provided. " + "Valid types are: " + errroMessageFor(quickStarts));<NEW...
.get().init();
284,204
public void process(Operator operator, List<COSBase> operands) throws IOException {<NEW_LINE>if (operands.size() < 4) {<NEW_LINE>throw new MissingOperandException(operator, operands);<NEW_LINE>}<NEW_LINE>if (!checkArrayTypesClass(operands, COSNumber.class)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>COSNumber x2 = (<MASK><...
COSNumber) operands.get(0);
1,509,415
private void closedown() {<NEW_LINE>boolean restarting = CoreFactory.isCoreAvailable() ? CoreFactory.getSingleton().isRestarting() : false;<NEW_LINE>logMessage(null, " closing buddy connections");<NEW_LINE>for (int i = 0; i < buddies.size(); i++) {<NEW_LINE>((BuddyPluginBuddy) buddies.get(i)).sendCloseRequest(restart...
log(null, "Failed to remove existing publish", e);
1,682,946
public static X509TrustManager create() {<NEW_LINE>try {<NEW_LINE>KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType());<NEW_LINE>// Clear<NEW_LINE>keystore.load(null);<NEW_LINE>CertificateFactory cf = CertificateFactory.getInstance("X.509");<NEW_LINE>keystore.setCertificateEntry("BACKPORT_COMODO_ROOT_CA"...
.add(getSystemTrustManager(keystore));
1,497,607
public Tuple2<Boolean, Row> write(Map<String, String> in) {<NEW_LINE>StringBuilder sbd = new StringBuilder();<NEW_LINE>boolean isFirstPair = true;<NEW_LINE>if (valDelimiter != null) {<NEW_LINE>for (Map.Entry entry : in.entrySet()) {<NEW_LINE>if (isFirstPair) {<NEW_LINE>isFirstPair = false;<NEW_LINE>} else {<NEW_LINE>sb...
valDelimiter + entry.getValue());
899,547
public Map<String, List<String>> updateSecurity(Context<? extends Trait> context, Shape shape, SecuritySchemeConverter<? extends Trait> converter, Map<String, List<String>> requirement) {<NEW_LINE>// Only modify requirements that exactly match the updated scheme.<NEW_LINE>if (requirement.size() != 1 || !requirement.key...
of(context.getModel());
44,048
public void watch() {<NEW_LINE>boolean activated = false;<NEW_LINE>if (this.properties.isMonitoringConfigMaps()) {<NEW_LINE>try {<NEW_LINE>String name = "config-maps-watch-event";<NEW_LINE>this.watches.put(name, this.kubernetesClient.configMaps().watch(new Watcher<ConfigMap>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>pu...
ifPresent(c -> watch());
1,018,210
final DescribeReservationResult executeDescribeReservation(DescribeReservationRequest describeReservationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeReservationRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DescribeRe...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,210,099
private int _kernelrpc_mach_vm_map_trap(Emulator<?> emulator) {<NEW_LINE>Backend backend = emulator.getBackend();<NEW_LINE>int target = backend.reg_read(ArmConst.UC_ARM_REG_R0).intValue();<NEW_LINE>Pointer address = UnidbgPointer.register(emulator, ArmConst.UC_ARM_REG_R1);<NEW_LINE>int r2 = backend.reg_read(ArmConst.UC...
ArmConst.UC_ARM_REG_R6).intValue();
861,848
public synchronized void resetStorageGroupStatus(StorageGroupInfo storageGroupInfo) {<NEW_LINE>long delta = 0;<NEW_LINE>if (reportedStorageGroupMemCostMap.containsKey(storageGroupInfo)) {<NEW_LINE>delta = reportedStorageGroupMemCostMap.get(storageGroupInfo) - storageGroupInfo.getMemCost();<NEW_LINE>this.totalStorageGro...
getLogicalStorageGroupName(), delta, totalStorageGroupMemCost);
390,127
protected void encodeNativeCheckbox(FacesContext context, DataTable table, boolean checked, boolean disabled, boolean isHeaderCheckbox) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String ariaRowLabel = table.getAriaRowLabel();<NEW_LINE>if (isHeaderCheckbox) {<NEW_LINE>ari...
(context) + "_checkbox", null);
519,132
public boolean execute(Object result) throws ContractExeException {<NEW_LINE>TransactionResultCapsule ret = (TransactionResultCapsule) result;<NEW_LINE>if (Objects.isNull(ret)) {<NEW_LINE>throw new RuntimeException(ActuatorConstant.TX_RESULT_NULL);<NEW_LINE>}<NEW_LINE>final SetAccountIdContract setAccountIdContract;<NE...
getAccountId().toByteArray());
1,574,320
public static void writeParts(JasperPrint jasperPrint, Writer writer) throws IOException {<NEW_LINE>PrintParts parts = jasperPrint.getParts();<NEW_LINE>writer.write("{");<NEW_LINE>writer.write("\"id\": \"parts_" + (parts.hashCode() & 0x7FFFFFFF) + "\",");<NEW_LINE>writer.write("\"type\": \"reportparts\",");<NEW_LINE>wr...
> partsEntry = it.next();
952,110
public OnlineAbDefinition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>OnlineAbDefinition onlineAbDefinition = new OnlineAbDefinition();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
class).unmarshall(context));
1,280,560
public long handle(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer object = context.getPointerArg(1);<NEW_LINE>UnidbgPointer jmethodID = context.getPointerArg(2);<NEW_LINE>UnidbgPointer jvalue = context.getPointerArg(3);<NEW_LINE>if (log.isDebugEnabled()) {<NEW_L...
obj, context.getLRPointer());
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...
process = runtime.exec(cmds);
1,053,202
public void drawTo(Graphic graphic, Style heighLight) {<NEW_LINE>Vector wavePos;<NEW_LINE>int waveSize = OUT_SIZE / 3;<NEW_LINE>if (graphic.isFlagSet(Graphic.Flag.smallIO)) {<NEW_LINE>Vector center = new Vector(-LATEX_RAD.x, 0);<NEW_LINE>graphic.drawCircle(center.sub(LATEX_RAD), center.add(LATEX_RAD), Style.NORMAL);<NE...
Orientation.RIGHTCENTER, Style.INOUT);
859,605
private static void loadAllDialects() {<NEW_LINE>LOG.debug("Searching for and loading all JDBC source dialects on the classpath");<NEW_LINE>final AtomicInteger count = new AtomicInteger();<NEW_LINE>AccessController.doPrivileged(new PrivilegedAction<Void>() {<NEW_LINE><NEW_LINE>public Void run() {<NEW_LINE>ServiceLoader...
LOG.debug("Skipping dialect provider after error while loading", t);
1,478,835
public DocIdAndVersion lookupVersion(BytesRef id, boolean loadSeqNo, LeafReaderContext context) throws IOException {<NEW_LINE>assert context.reader().getCoreCacheHelper().getKey().equals(readerKey) : "context's reader is not the same as the reader class was initialized on.";<NEW_LINE>int <MASK><NEW_LINE>if (docID != Do...
docID = getDocID(id, context);
580,720
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>ByteBuf buf = (ByteBuf) msg;<NEW_LINE>if (BitUtil.check(buf.getByte(buf.readerIndex()), 7)) {<NEW_LINE>int content = buf.readUnsignedByte();<NEW_LINE>if (BitUtil.check(content, 0)) {<NEW_LINE>String id = ByteBu...
).replace("f", "");
1,042,949
final ModifyInstanceAttributeResult executeModifyInstanceAttribute(ModifyInstanceAttributeRequest modifyInstanceAttributeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyInstanceAttributeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
invoke(request, responseHandler, executionContext);
1,052,200
public void testCreateConsumerWithMsgSelectorNoLocalTopic_TcpIp_SecOff(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>JMSContext jmsContext = jmsTCFTCP.createContext();<NEW_LINE>JMSConsumer jmsConsumer = jmsContext.createConsumer(jmsTopic, "Team = 'SIB'", false);<NEW_LINE><MASK><N...
JMSProducer jmsProducer = jmsContext.createProducer();
1,067,681
private static void processModuleSymbols(PdbApplicator applicator, Map<Address, List<Stuff>> map, TaskMonitor monitor) throws CancelledException {<NEW_LINE>AbstractPdb pdb = applicator.getPdb();<NEW_LINE><MASK><NEW_LINE>if (debugInfo == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int totalCount = 0;<NEW_LINE>int num =...
PdbDebugInfo debugInfo = pdb.getDebugInfo();
1,572,680
void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>instruction.setCode(code);<NEW_LINE>instruction.setOp0Register(decoder.state_reg + Register.K0);<NEW_LINE>instruction.setOp1Register(<MASK><NEW_LINE>int sss = decoder.getSss();<NEW_LINE>if (decoder.state_mod == 3) {<NEW_LINE>instruction.setOp2Register(dec...
decoder.state_vvvv + Register.ZMM0);
1,231,023
public Integer runTests(PhpModule phpModule, TestRunInfo runInfo) throws TestRunException {<NEW_LINE>PhpExecutable phpUnit = getExecutable(phpModule);<NEW_LINE>if (phpUnit == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>File workingDirectory = getWorkingDirectory(phpModule);<NEW_LINE>if (workingDirectory != null) ...
> startFiles = runInfo.getStartFiles();
1,242,390
final AttachVolumeResult executeAttachVolume(AttachVolumeRequest attachVolumeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(attachVolumeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,222,701
private void drawAllElses(UGraphic ug) {<NEW_LINE>final StringBounder stringBounder = ug.getStringBounder();<NEW_LINE>final double totalHeight = getTotalHeight(stringBounder);<NEW_LINE>final List<Double> ys = new ArrayList<>();<NEW_LINE>for (Tile tile : tiles) {<NEW_LINE>if (tile instanceof ElseTile) {<NEW_LINE>final E...
getY() + MARGINY_MAGIC / 2);
1,061,680
protected void dataCalculations(Player player, float skillValue) {<NEW_LINE>FishingManager fishingManager = UserManager.<MASK><NEW_LINE>// TREASURE HUNTER<NEW_LINE>if (canTreasureHunt) {<NEW_LINE>lootTier = fishingManager.getLootTier();<NEW_LINE>// Item drop rates<NEW_LINE>commonTreasure = percent.format(FishingTreasur...
getPlayer(player).getFishingManager();
819,806
public void handleInit(ChaincodeMessage message) {<NEW_LINE>Runnable task = () -> {<NEW_LINE>ChaincodeMessage nextStatemessage = null;<NEW_LINE>boolean send = true;<NEW_LINE>try {<NEW_LINE>// Get the function and args from Payload<NEW_LINE>ChaincodeInput input;<NEW_LINE>try {<NEW_LINE>input = ChaincodeInput.parseFrom(m...
Thread(task).start();
1,790,688
private <T> T checkAndUpdateLowerBound(Supplier<T> timestampContainerSupplier, ToLongFunction<T> lowerBoundExtractor, ToLongFunction<T> upperBoundExtractor, OperationType operationType) {<NEW_LINE>// take snapshot before making the request<NEW_LINE><MASK><NEW_LINE>TimestampBounds timestampBounds = getTimestampBounds();...
Instant wallClockTimeBeforeRequest = Instant.now();
985,763
protected MultiGetResult<K, V> do_GET_ALL(Set<? extends K> keys) {<NEW_LINE>HashMap<K, CacheGetResult<V>> resultMap = new HashMap<>();<NEW_LINE>Set<K> restKeys = new HashSet<>(keys);<NEW_LINE>for (int i = 0; i < caches.length; i++) {<NEW_LINE>if (restKeys.size() == 0) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>Cache<K, Cach...
put(k, CacheGetResult.NOT_EXISTS_WITHOUT_MSG);
1,418,461
private void loadPrev5min() {<NEW_LINE>Iterator<Integer> serverIds = serverObjMap.keySet().iterator();<NEW_LINE>final List<Pack> result = new ArrayList<Pack>();<NEW_LINE>while (serverIds.hasNext()) {<NEW_LINE>int serverId = serverIds.next();<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LIN...
Pack p = in.readPack();
658,285
private void generateCheckin(List<BaseTerminalEvent> eventBatch) {<NEW_LINE>// Generate up to 100 unique terminal ids between 100 and 200<NEW_LINE>String[] termIds = new String[100];<NEW_LINE>for (int i = 0; i < termIds.length; i++) {<NEW_LINE>termIds[i] = Long.toString(i + 1000);<NEW_LINE>}<NEW_LINE>// Swap terminals ...
TerminalInfo(termIds[i]));
910,177
private void handleUnManagedOSDiskContainers() {<NEW_LINE>final VirtualMachineScaleSetStorageProfile storageProfile = innerModel().virtualMachineProfile().storageProfile();<NEW_LINE>if (isManagedDiskEnabled()) {<NEW_LINE>storageProfile.osDisk().withVhdContainers(null);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isOSDiskF...
.<StorageAccount>taskResult(storageAccountKey);
1,052,594
void processRedirect(@Nullable Uri redirectData) {<NEW_LINE>if (mCreatedSource == null || mCreateSourcePromise == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (redirectData == null) {<NEW_LINE>mCreateSourcePromise.reject(getErrorCode(mErrorCodes, "redirectCancelled"), getDescription(mErrorCodes, "redirectCancelled")...
sourceId = redirectData.getQueryParameter("source");
1,203,428
void handle(DownloadIsoToPrimaryStorageMsg msg, final ReturnValueCompletion<DownloadIsoToPrimaryStorageReply> completion) {<NEW_LINE>ImageSpec ispec = msg.getIsoSpec();<NEW_LINE>SimpleQuery<BackupStorageVO> q = dbf.createQuery(BackupStorageVO.class);<NEW_LINE>q.add(BackupStorageVO_.uuid, Op.EQ, ispec.<MASK><NEW_LINE>Ba...
getSelectedBackupStorage().getBackupStorageUuid());
7,929
final DescribeUserProfileResult executeDescribeUserProfile(DescribeUserProfileRequest describeUserProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeUserProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,597,882
public void initializeKeyStore(boolean reinitialize) throws Exception {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "initializeKeyStore");<NEW_LINE>try {<NEW_LINE>String initAtStartup = getProperty(Constants.SSLPROP_KEY_STORE_INITIALIZE_AT_STARTUP);<NEW_LINE>boolean c...
Tr.debug(tc, "Initializing keystore at startup.");
197,103
public SkyValue compute(SkyKey skyKey, Environment env) throws InterruptedException, ProcessPackageDirectorySkyFunctionException {<NEW_LINE>PrepareDepsOfTargetsUnderDirectoryKey argument = (PrepareDepsOfTargetsUnderDirectoryKey) skyKey.argument();<NEW_LINE>final FilteringPolicy filteringPolicy = argument.getFilteringPo...
, subdirectory, excludedSubdirectoriesBeneathSubdirectory, filteringPolicy));
1,817,565
private NodeModel moveToNewParent(final NodeModel selectedNode, final List<NodeModel> selectedNodes) {<NEW_LINE>final <MASK><NEW_LINE>for (final NodeModel node : selectedNodes) {<NEW_LINE>if (node.getParentNode() != oldParent) {<NEW_LINE>UITools.errorMessage(TextUtils.getText("cannot_add_parent_diff_parents"));<NEW_LIN...
NodeModel oldParent = selectedNode.getParentNode();
1,766,111
private void appendCommon(final ResourceModel resourceModel, final ResourceSchema resourceSchema) {<NEW_LINE>// Set the entityType only when it is a UNSTRUCTURED_DATA base resource to avoid<NEW_LINE>// modifying all existing resources, which by default are STRUCTURED_DATA base.<NEW_LINE>if (ResourceEntityType.UNSTRUCTU...
setName(resourceModel.getName());
1,372,439
private XYSeriesCollection makeSolutionSeries(VehicleRoutingProblem vrp, Collection<VehicleRoute> routes) {<NEW_LINE>Map<String, Coordinate> coords = makeMap(vrp.getAllLocations());<NEW_LINE>XYSeriesCollection coll = new XYSeriesCollection();<NEW_LINE>int counter = 1;<NEW_LINE>for (VehicleRoute route : routes) {<NEW_LI...
endCoord.getY() * scalingFactor);
1,310,120
/*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.commands.spi.ICommandExecutionEncoder#encodeSystemCommand(com.<NEW_LINE>* sitewhere.spi.device.command.ISystemCommand,<NEW_LINE>* com.sitewhere.spi.device.IDeviceNestingContext, java.util.List)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public byte[] encodeSystemCommand(ISystemC...
builder.setErrorType(RegistrationAckError.NEW_DEVICES_NOT_ALLOWED);
265,074
public UploadResult call() throws Exception {<NEW_LINE>CompleteMultipartUploadResult res;<NEW_LINE>try {<NEW_LINE>CompleteMultipartUploadRequest req = new CompleteMultipartUploadRequest(origReq.getBucketName(), origReq.getKey(), uploadId, collectPartETags()).withRequesterPays(origReq.isRequesterPays()).withGeneralProgr...
res = s3.completeMultipartUpload(req);
1,773,720
public void dialogChanged() {<NEW_LINE>IResource container = ResourcesPlugin.getWorkspace().getRoot().findMember(new Path(getContainerName()));<NEW_LINE>String fileName = getFileName();<NEW_LINE>IResource file = ResourcesPlugin.getWorkspace().getRoot().findMember(new Path(getContainerName<MASK><NEW_LINE>if (file != nul...
() + "/" + fileName));
1,612,515
// getC_CurrencyTo_ID<NEW_LINE>@Override<NEW_LINE>protected boolean beforeSave(boolean newRecord) {<NEW_LINE>// Set Amt<NEW_LINE>if (getC_Invoice_ID() == 0 && getC_Payment_ID() == 0) {<NEW_LINE>setAmt(Env.ZERO);<NEW_LINE>setOpenAmt(Env.ZERO);<NEW_LINE>}<NEW_LINE>// Converted Amt<NEW_LINE>if (Env.ZERO.compareTo(getOpenA...
.add(getInterestAmt()));
1,483,312
public void updateErrorView(View dialogView) {<NEW_LINE>// Allow or disallow touches with other visible windows<NEW_LINE>LinearLayout manageSpace = dialogView.findViewById(R.id.root);<NEW_LINE>manageSpace.setFilterTouchesWhenObscured(PreferenceUtils.shouldDisallowTouchesWithOtherVisibleWindows(dialogView.getContext()))...
).setVisibility(View.GONE);
517,899
public void updateOrderLine() {<NEW_LINE>final I_C_OrderLine orderLine = request.getOrderLine();<NEW_LINE>// Product was not set yet. There is no point to calculate the prices<NEW_LINE>if (orderLine.getM_Product_ID() <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>//<NEW_LINE>// Calculate Pricing Result<NEW_LINE>final IEd...
pricingResult = pricingBL.calculatePrice(pricingCtx);
1,628,323
public static WritableArray convertJsonToArray(JSONArray jsonArray) throws JSONException {<NEW_LINE>WritableArray array = new WritableNativeArray();<NEW_LINE>for (int i = 0; i < jsonArray.length(); i++) {<NEW_LINE>Object value = jsonArray.get(i);<NEW_LINE>if (value instanceof JSONObject) {<NEW_LINE>array.pushMap(jsonTo...
.pushDouble((Double) value);
1,632,884
public JsonNode postQuery(String dialect, String query, Map<String, String> headers) throws Exception {<NEW_LINE>ObjectNode requestJson = JsonUtils.newObjectNode();<NEW_LINE>requestJson.put(dialect, query);<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>String queryUrl = _brokerBaseApiUrl + "/query";<NEW_LI...
LOGGER.error("requestString: {}", requestString);
1,190,216
public void execute() {<NEW_LINE>Map<String, Object> capabilities = _mgr.listCapabilities(this);<NEW_LINE>CapabilitiesResponse response = new CapabilitiesResponse();<NEW_LINE>response.setSecurityGroupsEnabled((Boolean) capabilities.get("securityGroupsEnabled"));<NEW_LINE>response.setDynamicRolesEnabled(roleService.isEn...
) capabilities.get("kubernetesClusterExperimentalFeaturesEnabled"));
1,777,021
public List<ReportReloadEntity> loadReport(long time) {<NEW_LINE>List<ReportReloadEntity> results = new ArrayList<ReportReloadEntity>();<NEW_LINE>Map<String, List<BusinessReport>> mergedReports = new HashMap<String, List<BusinessReport>>();<NEW_LINE>for (int i = 0; i < getAnalyzerCount(); i++) {<NEW_LINE>Map<String, Bu...
BusinessReport> reports = buildMergedReports(mergedReports);
1,350,291
private void updateFiles() {<NEW_LINE>_widgetFilesList = (_dir == null) ? new File[0] : _dir.listFiles(file -> !file.isDirectory() && TextFormat.isTextFile(file));<NEW_LINE>if (_dir != null && _dir.equals(FilesystemViewerAdapter.VIRTUAL_STORAGE_RECENTS)) {<NEW_LINE>_widgetFilesList = FilesystemViewerCreator.strlistToAr...
: new File[0]));
1,208,246
private void performTrackMaintenance(Se3_F64 key_to_curr) {<NEW_LINE>// Drop tracks which do not have known locations in the new frame<NEW_LINE>for (int quadIdx = trackQuads.size - 1; quadIdx >= 0; quadIdx--) {<NEW_LINE>TrackQuad quad = trackQuads.get(quadIdx);<NEW_LINE>if (quad.leftCurrIndex == -1) {<NEW_LINE>trackQua...
resize(featsLeft1.locationPixels.size);
1,357,939
private static void createTF_RunState(Menu menu, Tag tag) {<NEW_LINE>final TagFeatureRunState tf_run_state = (TagFeatureRunState) tag;<NEW_LINE>int caps = tf_run_state.getRunStateCapabilities();<NEW_LINE>int[] op_set = { TagFeatureRunState.RSC_START, TagFeatureRunState.RSC_STOP, TagFeatureRunState.RSC_PAUSE, TagFeature...
.setEnabled(can_ops_set[3]);
131,962
public static void main(String[] args) throws IOException, NoSuchAlgorithmException {<NEW_LINE>Regions clientRegion = Regions.DEFAULT_REGION;<NEW_LINE>String bucketName = "*** Bucket name ***";<NEW_LINE>String keyName = "*** Key name ***";<NEW_LINE>String uploadFileName = "*** File path ***";<NEW_LINE>String targetKeyN...
copyObject(bucketName, keyName, targetKeyName);
742,106
public void updateAround(int x, int y, int z) {<NEW_LINE>BlockUpdateEvent ev;<NEW_LINE>this.server.getPluginManager().callEvent(ev = new BlockUpdateEvent(this.getBlock(x, y - 1, z)));<NEW_LINE>if (!ev.isCancelled()) {<NEW_LINE>ev.getBlock().onUpdate(BLOCK_UPDATE_NORMAL);<NEW_LINE>}<NEW_LINE>this.server.getPluginManager...
1, y, z)));
1,855,495
final DescribeForecastResult executeDescribeForecast(DescribeForecastRequest describeForecastRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeForecastRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DescribeForecastRequest> ...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,734,425
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<Permanent> permanents = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source, game);<NEW_LINE>...
(SubType.AURA, game));
1,486,442
public static void checkIteratorConflicts(Map<String, String> props, IteratorSetting setting, EnumSet<IteratorScope> scopes) throws AccumuloException {<NEW_LINE>checkArgument(setting != null, "setting is null");<NEW_LINE>checkArgument(scopes != null, "scopes is null");<NEW_LINE>for (IteratorScope scope : scopes) {<NEW_...
() + ": " + optionConflicts));
132,964
protected StringBuffer print(StringBuffer output) {<NEW_LINE>if (this.findDeclarations) {<NEW_LINE>output.append(// $NON-NLS-1$<NEW_LINE>this.findReferences ? // $NON-NLS-1$<NEW_LINE>"FieldCombinedPattern: " : "FieldDeclarationPattern: ");<NEW_LINE>} else {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>output.append("FieldReference...
output.append(this.typeSimpleName);
452,492
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "a_string,b_string,c_string,d_string".split(",");<NEW_LINE>String text = "@name('s0') select * from SupportRecogBean#keepall " + "match_recognize (" + " measures A.theString as a_string, B.theString as b_string, C.theString as c_string, D.theStrin...
(it.hasNext()));
1,739,345
static SortedSet<Filter> flatten(final Collection<Filter> filters) {<NEW_LINE>final SortedSet<Filter> result = new TreeSet<>();<NEW_LINE>filters.stream().flatMap(f -> f.optimize().visit(new Filter.Visitor<Stream<Filter>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Stream<Filter> visitAnd(final AndFilter and) {<NEW...
).map(Filter::optimize);
614,085
public JComponent buildComponent() {<NEW_LINE>JPanel result = new JPanel(new BorderLayout());<NEW_LINE>result.add(myChooserImpl, BorderLayout.CENTER);<NEW_LINE>JPanel southPanel = new JPanel(new BorderLayout());<NEW_LINE>southPanel.add(new JLabel("Recent colors"), BorderLayout.WEST);<NEW_LINE>Box colorLabels = Box.crea...
2, 2, 2, 2);
1,174,116
private static boolean visitChangesSince(Map<String, FileSystemLocationFingerprint> previousFingerprints, Map<String, FileSystemLocationFingerprint> currentFingerprints, String propertyTitle, ChangeVisitor visitor) {<NEW_LINE>ListMultimap<FileSystemLocationFingerprint, FilePathWithType> unaccountedForPreviousFiles = ge...
added = added(propertyTitle, entry);
1,680,828
public boolean blockLocation(Location location) {<NEW_LINE>final float inaccuracy = location.getAccuracy();<NEW_LINE>final double altitude = location.getAltitude();<NEW_LINE>final float bearing = location.getBearing();<NEW_LINE>final double latitude = location.getLatitude();<NEW_LINE>final double longitude = location.g...
LOG_TAG, "Insufficient accuracy: " + inaccuracy + " meters");
332,128
static WebServer startServer() {<NEW_LINE>// load logging configuration<NEW_LINE>LogConfig.configureRuntime();<NEW_LINE>// By default this will pick up application.yaml from the classpath<NEW_LINE>Config config = Config.create();<NEW_LINE>WebServer server = WebServer.builder(createRouting(config)).config(config.get("se...
ws.port() + "/");
1,672,540
public UpdateCallAnalyticsCategoryResult updateCallAnalyticsCategory(UpdateCallAnalyticsCategoryRequest updateCallAnalyticsCategoryRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateCallAnalyticsCategoryRequest);<NEW_LINE>AWSRequestM...
awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
1,143,703
private void execFindbugs() throws BuildException {<NEW_LINE>System.out.println("Executing findbugs " + this.getClass().getSimpleName() + " from ant task");<NEW_LINE>createFindbugsEngine();<NEW_LINE>configureFindbugsEngine();<NEW_LINE>beforeExecuteJavaProcess();<NEW_LINE>if (getDebug()) {<NEW_LINE>log(getFindbugsEngine...
log(be.toString());
465,653
public static void registerType(ModelBuilder modelBuilder) {<NEW_LINE>ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CaseFileItemDefinition.class, CMMN_ELEMENT_CASE_FILE_ITEM_DEFINITION).namespaceUri(CMMN11_NS).extendsType(CmmnElement.class).instanceProvider(new ModelTypeInstanceProvider<CaseFileItemDefi...
stringAttribute(CMMN_ATTRIBUTE_NAME).build();
748,800
public void removeEntry(AclEntry entry) {<NEW_LINE>switch(entry.getType()) {<NEW_LINE>case NAMED_USER:<NEW_LINE>case NAMED_GROUP:<NEW_LINE>case MASK:<NEW_LINE>super.removeEntry(entry);<NEW_LINE>return;<NEW_LINE>case OWNING_USER:<NEW_LINE>Mode modeOwner = new Mode(mMode);<NEW_LINE>modeOwner.setOwnerBits(Mode.Bits.NONE);...
"Unknown ACL entry type: " + entry.getType());
830,046
private void writePluginExecution(PluginExecution pluginExecution, String tagName, XmlSerializer serializer) throws java.io.IOException {<NEW_LINE>serializer.startTag(NAMESPACE, tagName);<NEW_LINE>flush(serializer);<NEW_LINE>StringBuffer b = b(serializer);<NEW_LINE>int start = b.length();<NEW_LINE>if ((pluginExecution....
start2, b.length());
1,742,781
public static double squaredDistance(SparseArray x, SparseArray y) {<NEW_LINE>Iterator<SparseArray.Entry<MASK><NEW_LINE>Iterator<SparseArray.Entry> it2 = y.iterator();<NEW_LINE>SparseArray.Entry e1 = it1.hasNext() ? it1.next() : null;<NEW_LINE>SparseArray.Entry e2 = it2.hasNext() ? it2.next() : null;<NEW_LINE>double su...
> it1 = x.iterator();
815,393
// FocusListener methods<NEW_LINE>@Override<NEW_LINE>public void focusGained(FocusEvent evt) {<NEW_LINE>if (LOG.isLoggable(Level.FINE)) {<NEW_LINE>// NOI18N<NEW_LINE>LOG.// NOI18N<NEW_LINE>fine("BaseCaret.focusGained(); doc=" + component.getDocument().getProperty(Document.TitleProperty) + '\n');<NEW_LINE>}<NEW_LINE>JTe...
LOG.finer("Text component is null, caret will not be visible" + '\n');
1,548,809
private void demoPlsqlProcedureINParams(Connection conn) throws SQLException {<NEW_LINE>// Create a PLSQL stored procedure with IN parameters.<NEW_LINE>final String PROC_NAME = "ProcINParams";<NEW_LINE>String sql = "CREATE OR REPLACE PROCEDURE " + PROC_NAME + "(num IN NUMBER, name IN VARCHAR2, insertedBy IN VARCHAR2) I...
callStmt.setString(2, "TEN");
889,226
public void execute() throws Exception {<NEW_LINE>File quickstartTmpDir = new File(_dataDir, String.valueOf(System.currentTimeMillis()));<NEW_LINE>File baseDir = new File(quickstartTmpDir, "githubEvents");<NEW_LINE>File dataDir = new File(quickstartTmpDir, "rawdata");<NEW_LINE>Preconditions.checkState(dataDir.mkdirs())...
resource = classLoader.getResource("examples/batch/githubEvents/githubEvents_schema.json");
726,168
protected State<Command> visualModeBindings() {<NEW_LINE>Command sneakInput = ChangeToSneakModeCommand.fromVisual();<NEW_LINE>Command sneakInputBackwards = ChangeToSneakModeCommand.backwardsAndFromVisual();<NEW_LINE>Command sneak_f = ChangeToSneakModeCommand.fromVisual(CharOffsetHint.F_CHARS, InputCharsLimitHint.ONE);<...
= new VisualMotionCommand(ContinueFindingMotion.REVERSE_NAVIGATING);
50,010
public static WorkspaceRuleEvent newExecuteEvent(Iterable<String> args, Integer timeout, Map<String, String> commonEnvironment, Map<String, String> customEnvironment, String outputDirectory, boolean quiet, String ruleLabel, Location location) {<NEW_LINE>WorkspaceLogProtos.ExecuteEvent.Builder e = WorkspaceLogProtos.Exe...
= WorkspaceLogProtos.WorkspaceEvent.newBuilder();
1,317,348
public void subtractTo(GradPair gp, int index) {<NEW_LINE>if (numClass == 2 || multiClassMultiTree) {<NEW_LINE>((BinaryGradPair) gp).subtractBy(gradients[index], hessians[index]);<NEW_LINE>} else if (!fullHessian) {<NEW_LINE>MultiGradPair multi = (MultiGradPair) gp;<NEW_LINE>double[<MASK><NEW_LINE>double[] hess = multi...
] grad = multi.getGrad();
1,636,137
public List<JoinCpuLoadBo> decodeValues(Buffer valueBuffer, ApplicationStatDecodingContext decodingContext) {<NEW_LINE>final String id = decodingContext.getApplicationId();<NEW_LINE>final long baseTimestamp = decodingContext.getBaseTimestamp();<NEW_LINE>final long timestampDelta = decodingContext.getTimestampDelta();<N...
), headerDecoder.getCode());
675,295
public RestService createRestService(String schemaRegistryUrl, Map<String, String> configs) {<NEW_LINE>RestService restService = new RestService(schemaRegistryUrl);<NEW_LINE>ConfigDef configDef = new ConfigDef();<NEW_LINE>SslConfigs.addClientSslSupport(configDef);<NEW_LINE>Map<String, ConfigDef.ConfigKey> configKeyMap ...
value = configs.get(key);
1,702,387
private void buildRestOfGuiPages(GuiAutotest guiTest) {<NEW_LINE>// directory page<NEW_LINE>guiTest.addKeyAction(KeyEvent.VK_TAB);<NEW_LINE>guiTest.addKeyAction(KeyEvent.VK_TAB);<NEW_LINE>guiTest.addKeyAction(KeyEvent.VK_TAB);<NEW_LINE>guiTest.addKeyAction(KeyEvent.VK_TAB);<NEW_LINE>guiTest.addKeyAction(KeyEvent.VK_SPA...
guiTest.addKeyAction(KeyEvent.VK_TAB);
109,676
protected void configureNestedVirtualization(Map<String, String> details, VirtualMachineTO to) {<NEW_LINE>String localNestedV = details.get(VmDetailConstants.NESTED_VIRTUALIZATION_FLAG);<NEW_LINE>Boolean globalNestedVirtualisationEnabled = getGlobalNestedVirtualisationEnabled();<NEW_LINE>Boolean globalNestedVPerVMEnabl...
, globalNestedVirtualisationEnabled, globalNestedVPerVMEnabled, shouldEnableNestedVirtualization));
1,338,905
/* base rule is the rule with remote security group */<NEW_LINE>private List<RuleTO> calculateSecurityGroupBaseRule(List<String> sgUuids, List<String> l3Uuids, int ipVersion) {<NEW_LINE>List<RuleTO> rules = new ArrayList<>();<NEW_LINE>for (String sgUuid : sgUuids) {<NEW_LINE>String sql = "select r from SecurityGroupRul...
q.setParameter("ipVersion", ipVersion);
1,041,508
private StackFrame computeDapStackFrame() {<NEW_LINE>try {<NEW_LINE>if (!isBalStackFrame(jStackFrame.getStackFrame())) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StackFrame dapStackFrame = new StackFrame();<NEW_LINE>dapStackFrame.setId(frameId);<NEW_LINE>dapStackFrame.setName(getStackFrameName(jStackFrame));<NEW_LINE>...
), context.getSourceProject());
498,298
protected void prepareComplete() {<NEW_LINE>StringBuilder buf = LOG.isDebuggingFine() ? new StringBuilder(1000) : null;<NEW_LINE>scalingreferencevalues = new double[dimensionality];<NEW_LINE>randomPerAttribute = new Random[dimensionality];<NEW_LINE>if (scalingreference == ScalingReference.STDDEV) {<NEW_LINE>if (buf != ...
Random(RANDOM.nextLong());