idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,466,332
private // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>questionText = new javax.swing.JLabel();<NEW_LINE>jScrollPane1 = new javax.swing.JScrollPane();<NEW_LINE>licenseTextPane = new javax.swing.JTextPane();<NEW_LINE>jScrollPane1.setV...
)).addContainerGap()));
796,351
private Mono<Response<Flux<ByteBuffer>>> downloadUpdatesWithResponseAsync(String deviceName, String resourceGroupName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,260,959
protected void runInternal() {<NEW_LINE>// Check once in a minute as earliest to avoid log bursts.<NEW_LINE>if (shouldCheckNow(mapContainer.getLastInvalidMergePolicyCheckTime())) {<NEW_LINE>try {<NEW_LINE>checkMapMergePolicy(mapContainer.getMapConfig(), mergePolicy.getClass().getName(), getNodeEngine().getSplitBrainMer...
= mapContainer.getTotalBackupCount() > 0;
1,175,549
protected void initChannel(Channel ch) throws Exception {<NEW_LINE>SocketAddress remoteAddress = (ch.remoteAddress() == null) ? ch.parent().localAddress() : ch.remoteAddress();<NEW_LINE>if (BungeeCord.getInstance().getConnectionThrottle() != null && BungeeCord.getInstance().getConnectionThrottle().throttle(remoteAddres...
().getProtocolVersion()));
717,169
public void marshall(ReplicationSet replicationSet, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (replicationSet == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(replicationSet.getArn(), ARN_BINDING);<NEW...
replicationSet.getRegionMap(), REGIONMAP_BINDING);
1,383,250
public static void main(String[] args) throws Exception {<NEW_LINE>//<NEW_LINE>// create the generator for creating an smime/compressed message<NEW_LINE>//<NEW_LINE>SMIMECompressedGenerator gen = new SMIMECompressedGenerator();<NEW_LINE>//<NEW_LINE>// create the base for our message<NEW_LINE>//<NEW_LINE>MimeBodyPart ms...
Session.getDefaultInstance(props, null);
1,611,187
public Object execute() {<NEW_LINE>BaseHttpClientInvocation invocation = null;<NEW_LINE>IBaseParameters parameters = ParametersUtil.newInstance(myContext);<NEW_LINE>switch(myOperation) {<NEW_LINE>case ADD:<NEW_LINE>ParametersUtil.addParameterToParameters(myContext, parameters, "meta", myMeta);<NEW_LINE>invocation = Ope...
invoke(null, handler, invocation);
595,695
public void init(Object obj) {<NEW_LINE>if (!Config.getBooleanProperty("ENABLE_SCRIPTING", false)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ViewContext context = (ViewContext) obj;<NEW_LINE>this.request = context.getRequest();<NEW_LINE>ctx = context.getVelocityContext();<NEW_LINE>try {<NEW_LINE>host = WebAPILocator.getHo...
backuser = userWebAPI.getLoggedInUser(request);
595,409
public void createAlignedTimeseries(CreateAlignedTimeSeriesPlan plan) throws IOException {<NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LINE>buf.append(String.format("%s,%s,%s,%s,%s,%s", MetadataOperationType.CREATE_TIMESERIES, plan.getPrefixPath().getFullPath(), plan.getMeasurements(), plan.getDataTypes().str...
().getBytes()));
804,758
final StartTriggerResult executeStartTrigger(StartTriggerRequest startTriggerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startTriggerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
false), new StartTriggerResultJsonUnmarshaller());
1,636,324
public ValidationContext validate(Object input, String inputHint, ValidationContext context, ValidatorConfig config) {<NEW_LINE>if (input == null) {<NEW_LINE>context.addError(new ValidationError(ID, inputHint, MESSAGE_ERROR_EMPTY, input));<NEW_LINE>return context;<NEW_LINE>}<NEW_LINE>if (input instanceof String) {<NEW_...
, ValidationError.MESSAGE_INVALID_VALUE, input));
399,798
public static javax.microedition.lcdui.Image createImageFromBitmap(byte[] imageData, byte[] alpha, int imageWidth, int imageHeight) {<NEW_LINE>if (imageData == null)<NEW_LINE>return null;<NEW_LINE>if (imageWidth < 8)<NEW_LINE>imageWidth = 8;<NEW_LINE>int c;<NEW_LINE>int[] pixres = new int[imageHeight * imageWidth];<NEW...
image.setBlackWhiteAlpha(alpha != null);
176,074
public void read(org.apache.thrift.protocol.TProtocol prot, BuckCacheMultiContainsRequest struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(3);<NEW_LINE>if (inco...
struct.ruleKeys.add(_elem40);
455,248
public void start(WorkflowModel workflow, TaskModel task, WorkflowExecutor executor) {<NEW_LINE>final Map<String, Object> taskInput = task.getInputData();<NEW_LINE>final String queryExpression = (String) taskInput.get(QUERY_EXPRESSION_PARAMETER);<NEW_LINE>if (queryExpression == null) {<NEW_LINE>task.setReasonForIncompl...
input = objectMapper.valueToTree(taskInput);
328,843
private void decodeWs(WsAtta atta, SelectionKey key) {<NEW_LINE>try {<NEW_LINE>do {<NEW_LINE>Frame frame = atta.decoder.decode(buffer);<NEW_LINE>if (frame instanceof TextFrame || frame instanceof BinaryFrame) {<NEW_LINE>handler.handle(atta.channel, frame);<NEW_LINE>atta.decoder.reset();<NEW_LINE>} else if (frame instan...
eventLogger.log(eventNames.serverWsDecodeError);
365,854
public Request<DescribeDestinationsRequest> marshall(DescribeDestinationsRequest describeDestinationsRequest) {<NEW_LINE>if (describeDestinationsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeDestinationsRequest)");<NEW_LINE>}<NEW_LINE>Request<DescribeDestinatio...
t.getMessage(), t);
1,769,991
public static void main(String[] args) throws Exception {<NEW_LINE>if (args == null || args.length != 2) {<NEW_LINE>System.out.println("Usage: ReflectionJsonStrip <input-reflect-config.json> <target-reflect-config.json>");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>ReflectionDescriptor rd1 = null;<NEW_LINE>try (FileI...
throw new IllegalStateException("Problem loading file 2", e);
1,193,832
private void loadNode200() {<NEW_LINE>SessionSecurityDiagnosticsTypeNode node = new SessionSecurityDiagnosticsTypeNode(this.context, Identifiers.SessionSecurityDiagnosticsArrayType_SessionSecurityDiagnostics, new QualifiedName(0, "SessionSecurityDiagnostics"), new LocalizedText("en", "SessionSecurityDiagnostics"), Loca...
.expanded(), true));
1,581,995
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)<NEW_LINE>@Produces(MediaType.TEXT_PLAIN)<NEW_LINE>@ApiOperation(value = "Assert login credentials", notes = "Upon a successful login, a JSON Web Token will be returned in the response body. This functionality requires authentication to be enabled.", response = String.cla...
KeyManager km = KeyManager.getInstance();
1,227,467
protected void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);<NEW_LINE>int order = 1;<NEW_LINE>double sigma = FactoryKernelGaussian.sigmaForRadius(radius, ...
drawImage(image, adjustment, null);
1,452,528
private void checkGatewayParamFlow(ResourceWrapper resourceWrapper, int count, Object... args) throws BlockException {<NEW_LINE>if (args == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<ParamFlowRule> rules = GatewayRuleManager.getConvertedParamRules(resourceWrapper.getName());<NEW_LINE>if (rules == null || rules.i...
getName(), triggeredParam, rule);
919,783
public int write(ByteBuffer buffer, boolean partial_write) throws IOException {<NEW_LINE>synchronized (this) {<NEW_LINE>if (failed != null) {<NEW_LINE>throw (failed);<NEW_LINE>}<NEW_LINE>if (closed) {<NEW_LINE>throw (new IOException("Transport closed"));<NEW_LINE>}<NEW_LINE>}<NEW_LINE>int buffer_rem = buffer.remaining(...
copy = ByteBuffer.allocate(buffer_rem);
447,744
public final I_AD_Printer_Config retrievePrinterConfig(@Nullable final String hostKey, @Nullable final UserId userToPrintId) {<NEW_LINE>try (MDC.MDCCloseable ignore = MDC.putCloseable("hostKey", hostKey);<NEW_LINE>MDC.MDCCloseable ignore2 = MDC.putCloseable("userToPrintId", Integer.toString(UserId.toRepoId(userToPrintI...
queryBuilder.orderBy(I_AD_Printer_Config.COLUMNNAME_AD_User_PrinterMatchingConfig_ID);
1,093,760
public void marshall(InferenceRecommendationsJob inferenceRecommendationsJob, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (inferenceRecommendationsJob == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(inf...
inferenceRecommendationsJob.getLastModifiedTime(), LASTMODIFIEDTIME_BINDING);
1,600,756
protected void drawPoints(Canvas canvas, Paint paint, List<Float> pointsList, XYSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, int startIndex) {<NEW_LINE>if (isRenderPoints(seriesRenderer)) {<NEW_LINE>ScatterChart pointsChart = getPointsChart();<NEW_LINE>if (pointsChart != null) {<NEW_LINE>int length...
getPosTan(i, coords, null);
808,909
final DescribeOfferingResult executeDescribeOffering(DescribeOfferingRequest describeOfferingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOfferingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
242,823
public static void dumpLog() {<NEW_LINE>lastLogDump = System.currentTimeMillis();<NEW_LINE>localCount += localSearches.size();<NEW_LINE>while (!localSearches.isEmpty()) {<NEW_LINE>addToDump(localSearches.removeFirst(), 0);<NEW_LINE>}<NEW_LINE>remoteCount += remoteSearches.size();<NEW_LINE>while (!remoteSearches.isEmpty...
(UTF8.getBytes(s));
1,147,721
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup...
Utils.getValueFromIdByName(id, "pipelineJobs");
714,562
public static DescribeResourcesModificationResponse unmarshall(DescribeResourcesModificationResponse describeResourcesModificationResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeResourcesModificationResponse.setRequestId(_ctx.stringValue("DescribeResourcesModificationResponse.RequestId"));<NEW_LINE>List<Availabl...
+ "].SupportedResources[" + k + "].StatusCategory"));
634,466
private void divide(int[] idx, double[] data, ArrayList<int[]> ret, int start, int end, int depth) {<NEW_LINE>if (depth == 0) {<NEW_LINE>int[] a = Arrays.copyOfRange(idx, start, end);<NEW_LINE>Arrays.sort(a);<NEW_LINE>ret.add(a);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int count = end - start;<NEW_LINE>if (count == ...
pos = (-pos - 1);
1,292,930
public Map<String, String> listUnAssocAsa1000v() throws ExecutionException {<NEW_LINE>String xml = VnmcXml.LIST_UNASSOC_ASA1000V.getXml();<NEW_LINE>String service = VnmcXml.LIST_UNASSOC_ASA1000V.getService();<NEW_LINE>xml = <MASK><NEW_LINE>String response = sendRequest(service, xml);<NEW_LINE>Map<String, String> result...
replaceXmlValue(xml, "cookie", _cookie);
462,710
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>binding = ActivityAboutBinding.inflate(getLayoutInflater());<NEW_LINE>final View view = binding.getRoot();<NEW_LINE>setContentView(view);<NEW_LINE>setSupportActionBar(binding.toolbarBinding.toolbar);<NEW_LINE>getSupp...
aboutUserGuide.setOnClickListener(this::launchUserGuide);
412,960
public void onAck(SocketIOClient client, Packet packet) {<NEW_LINE>AckSchedulerKey key = new AckSchedulerKey(Type.ACK_TIMEOUT, client.getSessionId(), packet.getAckId());<NEW_LINE>scheduler.cancel(key);<NEW_LINE>AckCallback callback = removeCallback(client.getSessionId(), packet.getAckId());<NEW_LINE>if (callback == nul...
> args = packet.getData();
948,561
// Final entry of adding backend<NEW_LINE>private void addBackend(String host, int heartbeatPort, boolean isFree, String destCluster, Map<String, String> tagMap) {<NEW_LINE>Backend newBackend = new Backend(Env.getCurrentEnv().getNextId(), host, heartbeatPort);<NEW_LINE>// update idToBackend<NEW_LINE>Map<Long, Backend> ...
copiedReportVersions = Maps.newHashMap(idToReportVersionRef);
1,574,925
public static void main(String[] args) {<NEW_LINE>Options op = new Options();<NEW_LINE>String treebankPath = null;<NEW_LINE>FileFilter trainFilter = null;<NEW_LINE>int i = 0;<NEW_LINE>while (i < args.length && args[i].startsWith("-")) {<NEW_LINE>if (args[i].equalsIgnoreCase("-train")) {<NEW_LINE>int numSubArgs = numSub...
.parseInt(args[i]);
120,048
private Transaction logCatTransaction(Context ctx) {<NEW_LINE>Transaction t = null;<NEW_LINE>String uri = ctx.getProperty(Context.ORIGIN_URL);<NEW_LINE>if (StringUtils.isBlank(uri)) {<NEW_LINE>uri = "/";<NEW_LINE>ctx.addProperty(Context.ORIGIN_URL, uri);<NEW_LINE>}<NEW_LINE>if (StringUtils.isNotBlank(ctx.getProperty(Co...
.getProperty(Context.CALLER_METHOD));
1,813,482
final CreateSnapshotResult executeCreateSnapshot(CreateSnapshotRequest createSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<CreateSnaps...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
625,717
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>final View view = inflater.inflate(R.layout.fragment_simple_list, container, false);<NEW_LINE>ListView listView = (ListView) view.findViewById(android.R.id.list);<NEW_LINE>final ArrayAdapter<Object> adapter <MAS...
= new ListAdapter(getListItemIcon());
825,857
final DescribeAssessmentTargetsResult executeDescribeAssessmentTargets(DescribeAssessmentTargetsRequest describeAssessmentTargetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAssessmentTargetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,551,572
public FacetAttributeUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FacetAttributeUpdate facetAttributeUpdate = new FacetAttributeUpdate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
().unmarshall(context));
1,395,272
final void onCharacteristicWriteRequest(@NonNull final BluetoothGattServer server, @NonNull final BluetoothDevice device, final int requestId, @NonNull final BluetoothGattCharacteristic characteristic, final boolean preparedWrite, final boolean responseNeeded, final int offset, @NonNull final byte[] value) {<NEW_LINE>l...
" received, value: " + ParserUtils.parse(value);
443,206
// Change this method if you want to edit the graphical<NEW_LINE>// representation of your custom element.<NEW_LINE>@Override<NEW_LINE>public void paintEntity(Graphics g) {<NEW_LINE>float zoom = HandlerElementMap.getHandlerForElement(this).getZoomFactor();<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>g2.setFont(Ha...
s = tmp.elementAt(i);
866,943
static Profile createProfile() {<NEW_LINE>Profile.Builder profile = Profile.newBuilder();<NEW_LINE>StringTable stringTable = new StringTable(profile);<NEW_LINE>profile.addSampleType(ValueType.newBuilder().setType(stringTable.get("calls")).setUnit(stringTable.get("count")).build());<NEW_LINE>FunctionTable functionTable ...
.get(name, line));
1,088,081
public void exitEvalEqualsExpression(EsperEPL2GrammarParser.EvalEqualsExpressionContext ctx) {<NEW_LINE>if (ctx.getChildCount() < 2) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ExprNode exprNode;<NEW_LINE>boolean isNot = ctx.ne != null || ctx.isnot != null || ctx.sqlne != null;<NEW_LINE>if (ctx.a == null) {<NEW_LINE>boolean...
currentSpec, isNot, isAll, null);
1,045,164
public ServiceResponse serviceImpl(Query post, HttpServletResponse response, Authorization rights, final JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>JSONObject jsonObject = new JSONObject();<NEW_LINE>String url = post.get("url", "");<NEW_LINE>if (url == null || url.isEmpty()) {<NEW_LINE>jsonObject...
TextCrawler.scrape(url, 3);
923,448
protected boolean deleteTicketImpl(RepositoryModel repository, TicketModel ticket, String deletedBy) {<NEW_LINE>boolean success = false;<NEW_LINE>if (ticket == null) {<NEW_LINE>throw new RuntimeException("must specify a ticket!");<NEW_LINE>}<NEW_LINE>Jedis jedis = pool.getResource();<NEW_LINE>if (jedis == null) {<NEW_L...
.journal, ticket.number));
1,853,207
public boolean onRestart(Scheduler.RestartTopologyRequest request) {<NEW_LINE>// Containers would be restarted automatically once we destroy it<NEW_LINE>int containerId = request.getContainerIndex();<NEW_LINE>List<Process> <MASK><NEW_LINE>if (containerId == -1) {<NEW_LINE>LOG.info("Command to restart the entire topolog...
processesToRestart = new LinkedList<>();
816,973
public com.amazonaws.services.simplesystemsmanagement.model.AutomationDefinitionNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simplesystemsmanagement.model.AutomationDefinitionNotFoundException automationDefinitionNotFoundException = new com....
String currentParentElement = context.getCurrentParentElement();
1,399,612
public static ErrorDescription resultSet(HintContext ctx) {<NEW_LINE>TypeElement resultSet = ctx.getInfo().<MASK><NEW_LINE>String methodName = ctx.getVariableNames().get("$method");<NEW_LINE>if (resultSet == null || !METHOD_NAME.contains(methodName)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TreePath columnIndex = ct...
getElements().getTypeElement("java.sql.ResultSet");
927,173
private int move(MStorage target) {<NEW_LINE>log.info(target.toString());<NEW_LINE>BigDecimal qty = target.getQtyOnHand().negate();<NEW_LINE>MMovement mh = null;<NEW_LINE>MStorage[] sources = getSources(target.getM_Product_ID(), target.getM_Locator_ID());<NEW_LINE>if (sources.length > 0) {<NEW_LINE>// Create Movement<N...
setAD_Org_ID(target.getAD_Org_ID());
1,385,352
final DescribeMountTargetSecurityGroupsResult executeDescribeMountTargetSecurityGroups(DescribeMountTargetSecurityGroupsRequest describeMountTargetSecurityGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeMountTargetSecurityGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
addHandlerContext(HandlerContextKey.SERVICE_ID, "EFS");
1,687,742
private LinkedHashSet<ShipmentScheduleId> invokeHandlerForModel(@NonNull final Properties ctx, @NonNull final ShipmentScheduleHandler handler, @NonNull final I_M_IolCandHandler handlerRecord, @NonNull final Object model) {<NEW_LINE>final LinkedHashSet<ShipmentScheduleId> result = new LinkedHashSet<>();<NEW_LINE>final L...
getClass().getName());
1,111,517
private Expression importExpression(boolean yield, boolean await) {<NEW_LINE>final long importToken = token;<NEW_LINE>final int importLine = line;<NEW_LINE>final int importStart = start;<NEW_LINE>assert type == IMPORT;<NEW_LINE>next();<NEW_LINE>if (type == PERIOD) {<NEW_LINE>next();<NEW_LINE>expectDontAdvance(IDENT);<N...
), IMPORT.getName());
1,064,869
// sub-day learning<NEW_LINE>@Override<NEW_LINE>protected boolean _fillLrn() {<NEW_LINE>if (mHaveCounts && mLrnCount == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!mLrnQueue.isEmpty()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>mLrnQueue.clear();<NEW_LINE>mLrnQueue.setFilled();<NEW_LINE>try (Cursor cur = mCol...
, cur.getLong(1));
730,683
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static void addThreadFilter(com.sun.jdi.request.ThreadDeathRequest a, com.sun.jdi.ThreadReference b) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LIN...
jpda.jdi.VMDisconnectedExceptionWrapper(ex);
1,305,650
public void filterByDurationRange(String range) {<NEW_LINE>StringBuilder sb = new StringBuilder(128);<NEW_LINE>Matcher matchRange = PATTERN_FLOAT_RANGE.matcher(range);<NEW_LINE>try {<NEW_LINE>if (matchRange.matches()) {<NEW_LINE>values.add((int) (3600 * Float.valueOf(matchRange.group(1))));<NEW_LINE>values.add((int) (3...
System.out.println(values);
329,303
public void log(LogData logData) {<NEW_LINE>// Use MetadataProcessor to include context metadata in the formatted log message.<NEW_LINE>MetadataProcessor metadata = MetadataProcessor.forScopeAndLogSite(Platform.getInjectedMetadata(), logData.getMetadata());<NEW_LINE>String message = SimpleMessageFormatter.getDefaultFor...
logger.debug(message, thrown);
706,838
protected void executeImpl(Connection metaDbConnection, ExecutionContext executionContext) {<NEW_LINE>GsiMetaChanger.updateIndexStatus(metaDbConnection, schemaName, logicalTableName, indexName, beforeIndexStatus, afterIndexStatus);<NEW_LINE>// in the case of 'drop gsi', cancel ddl is not supported once the JOB has begu...
updateSupportedCommands(true, false, metaDbConnection);
1,195,281
public List<IInvoiceCandAggregate> aggregate() {<NEW_LINE>// Final invoice candidates aggregates. It will contain:<NEW_LINE>// * original invoice candidate aggregates (i.e. regular invoice lines)<NEW_LINE>// * quality discount invoice candidate aggregates<NEW_LINE>final List<IInvoiceCandAggregate> <MASK><NEW_LINE>//<NE...
invoiceCandAggregates = new ArrayList<>();
1,787,514
// Should be private, but package-protected so EasyMock will work<NEW_LINE>void enforceKerberosLogin() {<NEW_LINE>final AccumuloConfiguration conf = getServerConfFactory().getSiteConfiguration();<NEW_LINE>// Unwrap _HOST into the FQDN to make the kerberos principal we'll compare against<NEW_LINE>final String kerberosPr...
.get(Property.GENERAL_KERBEROS_PRINCIPAL));
1,423,123
protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) {<NEW_LINE>MapWriterConfiguration configuration = new MapWriterConfiguration();<NEW_LINE>configuration.addOutputFile(getStringArgument(taskConfig, PARAM_OUTFILE, Constants.DEFAULT_PARAM_OUTFILE));<NEW_LINE>// must be set before loading tag mappin...
(taskConfig, PARAM_SKIP_INVALID_RELATIONS, false));
1,287,216
public void print(ActionRequest request, ActionResponse response) {<NEW_LINE>try {<NEW_LINE>EbicsRequestLog ebicsRequestLog = request.getContext(<MASK><NEW_LINE>ebicsRequestLog = Beans.get(EbicsRequestLogRepository.class).find(ebicsRequestLog.getId());<NEW_LINE>String name = "Ebics report log " + ebicsRequestLog.getReq...
).asType(EbicsRequestLog.class);
183,449
private void loadAllProperties() throws IOException {<NEW_LINE>// First load all the properties<NEW_LINE>for (final ImmutableFlowProps fprops : this.flow.getFlowProps()) {<NEW_LINE>final <MASK><NEW_LINE>final File propsPath = new File(this.execDir, source);<NEW_LINE>final Props props = new Props(null, propsPath);<NEW_L...
String source = fprops.getSource();
284,948
public void run() throws IOException {<NEW_LINE>SignalHandler prevWinchHandler = terminal.handle(Signal.WINCH, this::resize);<NEW_LINE>SignalHandler prevIntHandler = terminal.handle(Signal.INT, this::interrupt);<NEW_LINE>SignalHandler prevSuspHandler = terminal.handle(Signal.TSTP, this::suspend);<NEW_LINE>Attributes at...
trackMouse(Terminal.MouseTracking.Any);
532,283
public static void save(Properties properties, MetalTheme theme) {<NEW_LINE>log.config(CompiereColor.getDefaultBackground().toString());<NEW_LINE>//<NEW_LINE>properties.setProperty(P_Primary1, getColorAsString(theme.getPrimaryControlDarkShadow()));<NEW_LINE>properties.setProperty(P_Primary2, getColorAsString(theme.getP...
()).toString());
1,225,481
public static void checkAndSetTax(Money tax, name.abuchen.portfolio.model.Transaction t, DocumentType type) {<NEW_LINE>if (tax.getCurrencyCode().equals(t.getCurrencyCode())) {<NEW_LINE>t.addUnit(new Unit(Unit<MASK><NEW_LINE>} else if (type.getCurrentContext().containsKey("exchangeRate")) {<NEW_LINE>BigDecimal exchangeR...
.Type.TAX, tax));
1,634,036
static void validateAgainstAUDTDs(InputSource input, final Path updaterJar, final Task task) throws IOException, SAXException {<NEW_LINE>XMLUtil.parse(input, true, false, XMLUtil.rethrowHandler(), new EntityResolver() {<NEW_LINE><NEW_LINE>ClassLoader loader = new AntClassLoader(task.getProject(), updaterJar);<NEW_LINE>...
" not found in " + updaterJar, Project.MSG_WARN);
1,626,061
// Configure pass1<NEW_LINE>protected JobConf configPass1() throws Exception {<NEW_LINE>final JobConf conf = new JobConf(getConf(), MatvecNaive.class);<NEW_LINE>conf.set("number_nodes", "" + number_nodes);<NEW_LINE>conf.set("makesym", "" + makesym);<NEW_LINE>conf.set("transpose", "" + transpose);<NEW_LINE>conf.set("ign...
FileOutputFormat.setOutputPath(conf, tempmv_path);
1,818,904
public Optional<Design> read(InputStream resourceAsStream) {<NEW_LINE>Parser parser = ParserBuilder.createDefaultParser();<NEW_LINE>try {<NEW_LINE>parser.parse(resourceAsStream, DXFParser.DEFAULT_ENCODING);<NEW_LINE>} catch (ParseException e) {<NEW_LINE>throw new RuntimeException("Could not parse file", e);<NEW_LINE>}<...
entities = new ArrayList<>();
1,651,053
private static final Map<Field, Field> convertToMultiSet(final IonStruct struct, final Configuration configuration) {<NEW_LINE>final Map<Field, Field> structMultiSet = new HashMap<Field, Field>();<NEW_LINE>for (final IonValue val : struct) {<NEW_LINE>final Field item <MASK><NEW_LINE>Field curr = structMultiSet.put(item...
= new Field(val, configuration);
653,779
public void generateOptimizedStringConcatenation(BlockScope blockScope, CodeStream codeStream, int typeID) {<NEW_LINE>// keep implementation in sync with CombinedBinaryExpression<NEW_LINE>// #generateOptimizedStringConcatenation<NEW_LINE>if ((((this.bits & ASTNode.OperatorMASK) >> ASTNode.OperatorSHIFT) == OperatorIds....
pc, this.left.sourceStart);
526,247
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
132,098
private void calculatePosition(Rectangle2D textBounds) {<NEW_LINE>double textHeight = textBounds.getHeight();<NEW_LINE>double textWidth = textBounds.getWidth();<NEW_LINE>double widthAdjustment = textWidth + styler.getChartButtonMargin() * 3;<NEW_LINE>double heightAdjustment = textHeight + styler.getChartButtonMargin() ...
() + styler.getChartButtonMargin();
1,800,837
public static String xpathInjectImageRelId(WordprocessingMLPackage wmlPackage, JaxbXmlPart sourcePart, Map<String, CustomXmlDataStoragePart> customXmlDataStorageParts, String storeItemId, String xpath, String prefixMappings) {<NEW_LINE>// TODO: remove any images in package which are no longer used.<NEW_LINE>// Needs to...
log.error("Couldn't locate part by storeItemId " + storeItemId);
1,781,784
public static void execute(ManagerConnection c) {<NEW_LINE>ByteBufferHolder buffer = c.allocate();<NEW_LINE>IPacketOutputProxy proxy = PacketOutputProxyFactory.getInstance().createProxy(c, buffer);<NEW_LINE>proxy.packetBegin();<NEW_LINE>// write header<NEW_LINE>proxy = header.write(proxy);<NEW_LINE>// write fields<NEW_...
), c.getCharset());
99,116
private Mono<PagedResponse<ServicesDescriptionInner>> listSinglePageAsync() {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null...
)).readOnly()));
1,322,303
public void call(Subscriber<? super List<Chapter>> subscriber) {<NEW_LINE>try {<NEW_LINE>// Mongo mongo = new Mongo();<NEW_LINE>List<Chapter> list = new ArrayList<>();<NEW_LINE>// list.addAll(mongo.QueryComicBase(comic));<NEW_LINE>if (list.isEmpty()) {<NEW_LINE>comic.setUrl(parser.getUrl(comic.getCid()));<NEW_LINE>Requ...
parseChapter(html, comic, sourceComic);
869,064
final UpdateDomainNameResult executeUpdateDomainName(UpdateDomainNameRequest updateDomainNameRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDomainNameRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,249,713
public ListenableFuture<V> loadFuture(K key, CacheLoader<? super K, V> loader) {<NEW_LINE>try {<NEW_LINE>stopwatch.start();<NEW_LINE>V previousValue = oldValue.get();<NEW_LINE>if (previousValue == null) {<NEW_LINE>V newValue = loader.load(key);<NEW_LINE>return set(newValue) ? futureValue : Futures.immediateFuture(newVa...
loader.reload(key, previousValue);
962,951
public void buildTargetStrings(MTag keyFrame) {<NEW_LINE>String target = keyFrame.getAttributeValue("motionTarget");<NEW_LINE>mType = nameMap.get(keyFrame.getTagName());<NEW_LINE>if (mType == null) {<NEW_LINE>System.err.println(" no name for " + keyFrame.getTagName());<NEW_LINE>}<NEW_LINE>if (target != null && target.s...
mKeyProp = keyFrame.getAttributeValue("keyPositionType");
601,418
private void validateDefinitions(SqlMatchRecognize mr, MatchRecognizeScope scope) {<NEW_LINE>final Set<String> aliases = catalogReader.nameMatcher().isCaseSensitive() ? new LinkedHashSet<String>() : new TreeSet<>(String.CASE_INSENSITIVE_ORDER);<NEW_LINE>for (SqlNode item : mr.getPatternDefList().getList()) {<NEW_LINE>f...
type = deriveType(scope, expand);
773,909
protected void enableDnD() {<NEW_LINE>if (!ApplicationManager.getApplication().isHeadlessEnvironment()) {<NEW_LINE>myDropTarget = new ProjectViewDropTarget(myTree, myProject) {<NEW_LINE><NEW_LINE>@Nullable<NEW_LINE>@Override<NEW_LINE>protected PsiElement getPsiElement(@Nonnull TreePath path) {<NEW_LINE>return Container...
myDndManager.registerTarget(myDropTarget, myTree);
1,818,498
protected void mergeTemplate(Template template, RenderRequest req, RenderResponse res) throws Exception {<NEW_LINE>RenderRequestImpl reqimp = (RenderRequestImpl) req;<NEW_LINE>RenderResponseImpl resimp = (RenderResponseImpl) res;<NEW_LINE>Context context = VelocityUtil.getWebContext(reqimp.getHttpServletRequest(), resi...
template.merge(context, velocityWriter);
642,372
final ListResourceDataSyncResult executeListResourceDataSync(ListResourceDataSyncRequest listResourceDataSyncRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResourceDataSyncRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,717,424
public ReadableProductAttributeEntity merge(ProductAttribute source, ReadableProductAttributeEntity destination, MerchantStore store, Language language) {<NEW_LINE>ReadableProductAttributeEntity attr = new ReadableProductAttributeEntity();<NEW_LINE>if (destination != null) {<NEW_LINE>attr = destination;<NEW_LINE>}<NEW_...
getProductOption(), store, language);
543,472
private boolean generatePng(File pngsDir, UploadedPresentation pres, int page, File pageFile) throws InterruptedException {<NEW_LINE>String source = pageFile.getAbsolutePath();<NEW_LINE>String dest;<NEW_LINE>if (SupportedFileTypes.isImageFile(pres.getFileType())) {<NEW_LINE>// Need to create a PDF as intermediate step....
+ " " + source + " " + dest;
1,584,514
// Override fromModel to create the appropriate model namings<NEW_LINE>@Override<NEW_LINE>public CodegenModel fromModel(String name, Schema mod) {<NEW_LINE>CodegenModel model = super.fromModel(name, mod);<NEW_LINE>setGenerateToSchema(model);<NEW_LINE>// Clean up the class name to remove invalid characters<NEW_LINE>mode...
vendorExtensions.put("x-prefix", prefix);
100,569
private JButton createScrollButton(int orientation) {<NEW_LINE>darkMode = scrollbar instanceof DarkScrollBar;<NEW_LINE>if (darkMode) {<NEW_LINE>return createZeroButton();<NEW_LINE>}<NEW_LINE>CustomButton btn = new CustomButton();<NEW_LINE>btn.setBackground(darkMode ? trackColor2 : trackColor1);<NEW_LINE>btn.setContentA...
XDMUtils.getScaledInt(18)));
1,488,153
protected void addStaticTiles(FileHandle tmxFile, ImageResolver imageResolver, TiledMapTileSet tileSet, Element element, Array<Element> tileElements, String name, int firstgid, int tilewidth, int tileheight, int spacing, int margin, String source, int offsetX, int offsetY, String imageSource, int imageWidth, int imageH...
tile = tileSet.getTile(tileId);
1,569,442
private boolean publishSingleOrFinish(Flow.Subscriber<? super ByteBuffer> subscr) throws Exception {<NEW_LINE>ByteBuffer bb;<NEW_LINE>if (currentBuffer == null) {<NEW_LINE>bb = allocateNewBuffer();<NEW_LINE>} else {<NEW_LINE>bb = currentBuffer;<NEW_LINE>currentBuffer = null;<NEW_LINE>}<NEW_LINE>int count = 0;<NEW_LINE>...
Level.WARNING, "Cannot close readable byte channel! (Close attempt after fully read channel.)", e);
1,233,078
public void testJMSProducerSendMapMessage_Null_TCP_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContextQCFTCP = qcfTCP.createContext();<NEW_LINE>emptyQueue(qcfTCP, queue1);<NEW_LINE>JMSConsumer jmsConsumer = jmsContextQCFTCP.createConsumer(queue1);<NEW_LINE>...
).send(queue1, mapMessage);
1,290,398
protected ComplexMatchResult emitBinaryShift(AArch64ArithmeticOp op, ValueNode value, ShiftNode<?> shift) {<NEW_LINE>AArch64MacroAssembler.ShiftType shiftType = shiftTypeMap.get(shift.getClass());<NEW_LINE>assert shiftType != null;<NEW_LINE>assert isNumericInteger(value, shift.getX());<NEW_LINE>return builder -> {<NEW_...
, y, shiftType, shiftAmount));
1,619,526
final DeregisterTransitGatewayResult executeDeregisterTransitGateway(DeregisterTransitGatewayRequest deregisterTransitGatewayRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deregisterTransitGatewayRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
664,115
protected static int cleanPermissionReferences(List<String> inodes, int offset) {<NEW_LINE>final String BASE_DELETE_ASSETID = "delete from permission where inode_id in (";<NEW_LINE>DotConnect dc = new DotConnect();<NEW_LINE>StringBuffer deletePermissionAssetConSQL = new StringBuffer(BASE_DELETE_ASSETID);<NEW_LINE>int i...
"," + "'" + inode + "'");
1,474,638
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {<NEW_LINE>List<MegaNode> documents = adapter.getSelectedNodes();<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case R.id.cab_menu_download:<NEW_LINE>{<NEW_LINE>((ManagerActivity) context).saveNodesToDevice(documents, false, false, false, false);<NEW_LIN...
) context).askConfirmationMoveToRubbish(handleList);
1,261,255
public JSONObject serviceImpl(Query call, HttpServletResponse response, Authorization rights, final JSONObjectWithDefault permissions) {<NEW_LINE>int limited_count = (int) DAO.getConfig("download.limited.count", (long) Integer.MAX_VALUE);<NEW_LINE><MASK><NEW_LINE>JSONArray topmenu = new JSONArray().put(new JSONObject()...
JSONObject json = new JSONObject(true);
613,410
private static void firstGraphFromSlides() {<NEW_LINE>int n = 7;<NEW_LINE>List<List<Edge>> g = createEmptyGraph(n);<NEW_LINE>addUndirectedEdge(g, 0, 1, 9);<NEW_LINE>addUndirectedEdge(g, 0, 2, 0);<NEW_LINE>addUndirectedEdge(<MASK><NEW_LINE>addUndirectedEdge(g, 0, 5, 7);<NEW_LINE>addUndirectedEdge(g, 1, 3, -2);<NEW_LINE>...
g, 0, 3, 5);
1,123,296
public static String encryptIt(String value) {<NEW_LINE>try {<NEW_LINE>DESKeySpec keySpec = new DESKeySpec(sCryptoPass.getBytes("UTF8"));<NEW_LINE>SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("DES");<NEW_LINE>SecretKey key = keyFactory.generateSecret(keySpec);<NEW_LINE>byte[] clearText = value.getBytes("U...
init(Cipher.ENCRYPT_MODE, key);
870,646
public static final byte[] base64Decode(byte[] data) {<NEW_LINE>if (data == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (data.length == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (!((data.length % 4) == 0)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int tail;<NEW_LINE>for (tail = data.length; data[tail...
] >>> 4 & 0x3);
64,810
protected void initColumnAndType() {<NEW_LINE>columns.put(COLUMN_NAME, new ColumnMeta(COLUMN_NAME, "varchar(64)", false, true));<NEW_LINE>columnsType.put(COLUMN_NAME, Fields.FIELD_TYPE_VAR_STRING);<NEW_LINE>columns.put(COLUMN_HEARTBEAT_STMT, new ColumnMeta(COLUMN_HEARTBEAT_STMT, "varchar(64)", false));<NEW_LINE>columns...
, "int(11)", true, "1"));