idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,379,232
private static PitchTarget[] computePitchTargets(Document acoustparams) {<NEW_LINE>ArrayList<PitchTarget> targets = new ArrayList<PitchTarget>();<NEW_LINE>String PHONE = "ph";<NEW_LINE>String A_PHONE_DURATION = "d";<NEW_LINE>String A_F0 = "f0";<NEW_LINE>String BOUNDARY = "boundary";<NEW_LINE>String A_BOUNDARY_DURATION ...
createNodeIterator(acoustparams, PHONE, BOUNDARY);
686,513
private boolean startDownloadRpc(FileReferenceDownload fileReferenceDownload, int retryCount, Connection connection) {<NEW_LINE>Request request = createRequest(fileReferenceDownload);<NEW_LINE>Duration rpcTimeout = rpcTimeout(retryCount);<NEW_LINE>connection.invokeSync(request, rpcTimeout.getSeconds());<NEW_LINE>Level ...
FileReference fileReference = fileReferenceDownload.fileReference();
405,141
private void drawTileCoordinates(TilePosition tilePosition, Canvas canvas) {<NEW_LINE>Tile tile = tilePosition.tile;<NEW_LINE>if (drawSimple) {<NEW_LINE>stringBuilder.setLength(0);<NEW_LINE>stringBuilder.append(tile.zoomLevel).append(" / ").append(tile.tileX).append(" / ").append(tile.tileY);<NEW_LINE>String text = str...
x, y, this.paintFront);
900,678
public TrainingData unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TrainingData trainingData = new TrainingData();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
JsonToken token = context.getCurrentToken();
260,451
public void onMessage(jakarta.jms.Message jmsMessage, Session session) throws JMSException {<NEW_LINE>Message<?> requestMessage;<NEW_LINE>try {<NEW_LINE>final Object result;<NEW_LINE>if (this.extractRequestPayload) {<NEW_LINE>result = this.messageConverter.fromMessage(jmsMessage);<NEW_LINE>this.logger.debug(() -> "conv...
jmsMessage + "] to integration Message payload [" + result + "]");
1,187,080
public static boolean walkOffsetsFromPointer(Pointer baseAddress, NonmovableArray<Byte> referenceMapEncoding, long referenceMapIndex, ObjectReferenceVisitor visitor, Object holderObject) {<NEW_LINE>assert ReferenceMapIndex.denotesValidReferenceMap(referenceMapIndex);<NEW_LINE>assert referenceMapEncoding.isNonNull();<NE...
objRef, 0, compressed, holderObject);
1,460,484
private void initModels(final NetworkModel model) {<NEW_LINE>liveModel = model.isLive();<NEW_LINE>networkMonitoringSupported = true;<NEW_LINE>// NOI18N<NEW_LINE>panelName = NbBundle.getMessage(NetworkViewComponent.class, "LBL_Network");<NEW_LINE>if (networkMonitoringSupported) {<NEW_LINE>// NOI18N<NEW_LINE>String READ_...
chartDescriptor.addLineItems(READ_RATE_LEG, WRITE_RATE_LEG);
1,607,400
public static QueryReadableResourcesListByUserIdResponse unmarshall(QueryReadableResourcesListByUserIdResponse queryReadableResourcesListByUserIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryReadableResourcesListByUserIdResponse.setRequestId(_ctx.stringValue("QueryReadableResourcesListByUserIdResponse.RequestId")...
("QueryReadableResourcesListByUserIdResponse.Result[" + i + "].ThirdPartAuthFlag"));
368,678
public <T> void registerInjectionTarget(javax.enterprise.inject.spi.InjectionTarget<T> injectionTarget, AnnotatedType<T> annotatedType) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, "registerInjectionTarget", new Object[] { injectionTarget, Util.identity(annotatedTy...
> declaringClass = annotatedType.getJavaClass();
1,373,381
public void applyChanges() {<NEW_LINE>boolean fire;<NEW_LINE>synchronized (this) {<NEW_LINE>// NOI18N<NEW_LINE>LOG.fine("applyChanges");<NEW_LINE>pf.applyChanges();<NEW_LINE>// Make sure that completions settings that are only accessible for<NEW_LINE>// 'all languages' are not overriden by particular languages (mime ty...
prefs.remove(SimpleValueNames.COMPLETION_INSTANT_SUBSTITUTION);
272,310
public void layoutContainer(Container parent) {<NEW_LINE>Insets insets = datePicker.getInsets();<NEW_LINE>int x = insets.left;<NEW_LINE>int y = insets.top;<NEW_LINE>int width = datePicker.getWidth() - insets.left - insets.right;<NEW_LINE>int height = datePicker.getHeight() <MASK><NEW_LINE>int popupButtonWidth = popupBu...
- insets.top - insets.bottom;
990,012
/* Build call for throttlingPoliciesAdvancedPolicyIdGet */<NEW_LINE>private com.squareup.okhttp.Call throttlingPoliciesAdvancedPolicyIdGetCall(String policyId, String ifNoneMatch, String ifModifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener prog...
localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
352,742
private void format() {<NEW_LINE>String inputText = input.getText().trim();<NEW_LINE>if (inputText.isEmpty()) {<NEW_LINE>output.setBackground(Color.LIGHT_GRAY);<NEW_LINE>output.setText("");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String outputText;<NEW_LINE>if (!radioDoc.isSelected()) {<NEW_LINE>outputText ...
output.setBackground(Color.ORANGE);
591,188
static KeyPair parseKeyPair(String pemData) {<NEW_LINE>Matcher m = PEM_DATA.matcher(pemData.trim());<NEW_LINE>if (!m.matches()) {<NEW_LINE>throw new IllegalArgumentException("String is not PEM encoded data");<NEW_LINE>}<NEW_LINE>String type = m.group(1);<NEW_LINE>final byte[] content = b64Decode(utf8Encode(<MASK><NEW_L...
m.group(2)));
477,878
/*<NEW_LINE>* BeanDefinitionRegistries are called early in application startup, before BeanFactoryPostProcessors. This means that<NEW_LINE>* PropertyResourceConfigurers will not have been loaded and any property substitution of this class' properties will<NEW_LINE>* fail. To avoid this, find any PropertyResourceConfigu...
::resolvePlaceholders).orElse(null);
14,550
protected Answer execute(UnregisterNicCommand cmd) {<NEW_LINE>if (_guestTrafficInfo == null) {<NEW_LINE>return new Answer(cmd, false, "No Guest Traffic Info found, unable to determine where to clean up");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (_guestTrafficInfo.getVirtualSwitchType() != VirtualSwitchType.StandardVirtua...
Answer(cmd, true, "Nothing to do");
1,752,110
public static void usage() {<NEW_LINE>System.out.println("Usage: run_synthea [options] [state [city]]");<NEW_LINE>System.out.println("Options: [-s seed] [-cs clinicianSeed] [-p populationSize]");<NEW_LINE>System.out.println(" [-r referenceDate as YYYYMMDD]");<NEW_LINE>System.out.println(" [-e endDate as...
System.out.println(" [-o overflowPopulation]");
908,686
public ValueEmitter castToInteger(IntegerSubtype subtype) {<NEW_LINE>switch(subtype) {<NEW_LINE>case BYTE:<NEW_LINE>if (type != ValueType.BYTE) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>break;<NEW_LINE>case SHORT:<NEW_LINE>if (type != ValueType.SHORT) {<NEW_LINE>throw new EmitException("Can't cast non-short value: " + type...
throw new EmitException("Can't cast non-byte value: " + type);
484,207
public void serialize(ByteBuf buf) {<NEW_LINE>super.serialize(buf);<NEW_LINE>long startCol = splitContext.getPartKey().getStartCol();<NEW_LINE>if (isUseIntKey()) {<NEW_LINE>if (splitContext.isEnableFilter()) {<NEW_LINE>int filterValue = <MASK><NEW_LINE>int position = buf.writerIndex();<NEW_LINE>buf.writeInt(0);<NEW_LIN...
(int) splitContext.getFilterThreshold();
1,452,897
public ShaderNodeDefinition findDefinition(Statement statement) throws IOException {<NEW_LINE>final String[] defLine = statement.getLine().split(":");<NEW_LINE>if (defLine.length != 3) {<NEW_LINE>throw new MatParseException("Can't find shader node definition for: ", statement);<NEW_LINE>}<NEW_LINE>final Map<String, Sha...
nodeDefinitions.put(key, definition);
1,075,772
public Result search(Query query, Execution execution) {<NEW_LINE>query.trace("CacheControlSearcher: Running version $Revision$", false, 6);<NEW_LINE>Result result = execution.search(query);<NEW_LINE>query = result.getQuery();<NEW_LINE>if (result.getHeaders(true) == null) {<NEW_LINE>query.trace("CacheControlSearcher: N...
"CacheControlSearcher: Set max-age header to " + maxage, false, 4);
376,842
void moveAddressRange(Address fromAddr, Address toAddr, long length, TaskMonitor monitor) throws AddressOverflowException, CancelledException {<NEW_LINE>lock.acquire();<NEW_LINE>try {<NEW_LINE>Address rangeEnd = fromAddr.addNoWrap(length - 1);<NEW_LINE>AddressSet addrSet = new AddressSet(fromAddr, rangeEnd);<NEW_LINE>A...
AddressRange range = rangeIter.next();
459,077
public int compare(Content c1, Content c2) {<NEW_LINE>if (!(c1 instanceof Xml.Tag) || !(c2 instanceof Xml.Tag)) {<NEW_LINE>return 1;<NEW_LINE>}<NEW_LINE>Xml.Tag <MASK><NEW_LINE>Xml.Tag t2 = (Xml.Tag) c2;<NEW_LINE>int i1 = existingIndices.getOrDefault(t1, -1);<NEW_LINE>int i2 = existingIndices.getOrDefault(t2, -1);<NEW_...
t1 = (Xml.Tag) c1;
1,363,860
/* Build call for throttlingPoliciesSubscriptionGet */<NEW_LINE>private com.squareup.okhttp.Call throttlingPoliciesSubscriptionGetCall(String accept, String ifNoneMatch, String ifModifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressReques...
localVarAuthNames = new String[] {};
903,932
private void build_Bindings(AugmentedStmt swAs, Object index, AugmentedStmt target) {<NEW_LINE>AugmentedStmt tSucc = (AugmentedStmt) target.bsuccs.get(0);<NEW_LINE>if (targetSet.add(tSucc)) {<NEW_LINE>targetList.addLast(tSucc);<NEW_LINE>}<NEW_LINE>index2target.put(index, target);<NEW_LINE>TreeSet indices = null;<NEW_LI...
= target.csuccs.iterator();
1,755,481
private List<CacheKeyTO> splitReturnValueOnly(CacheDeleteMagicKey cacheDeleteKey, Object retVal, String keyExpression, String hfieldExpression) throws Exception {<NEW_LINE>if (null == retVal) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>List<CacheKeyTO> list;<NEW_LINE>if (retVal.getClass().isArray()) ...
, hfieldExpression, value, true));
1,267,559
public PageInfo<InlongStreamInfo> listAll(InlongStreamPageRequest request) {<NEW_LINE>LOGGER.debug("begin to list full inlong stream page by {}", request);<NEW_LINE>Preconditions.checkNotNull(request, "request is empty");<NEW_LINE>String groupId = request.getInlongGroupId();<NEW_LINE>Preconditions.checkNotNull(groupId,...
copyListProperties(page, InlongStreamInfo::new);
1,356,637
private double determineInputFieldValue(final InputField field, final int index) {<NEW_LINE>double result = 0;<NEW_LINE>if (field instanceof InputFieldCSVText) {<NEW_LINE><MASK><NEW_LINE>final ReadCSV csv = this.csvMap.get(field);<NEW_LINE>String v = csv.get(fieldCSV.getOffset());<NEW_LINE>if (!fieldCSV.getMappings().c...
final InputFieldCSVText fieldCSV = (InputFieldCSVText) field;
1,627,757
private Mono<Response<Void>> deleteCertificateWithResponseAsync(String resourceGroupName, String certificateOrderName, String name, 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 ...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
329,428
final // Use JmxHeartbeat.scheduleImmediately(JmxApplication) from any other code!<NEW_LINE>boolean tryConnect() {<NEW_LINE>synchronized (connectionLock) {<NEW_LINE>if (isConnected())<NEW_LINE>return true;<NEW_LINE>try {<NEW_LINE>ProxyClient newClient = new ProxyClient(this);<NEW_LINE>newClient.connect();<NEW_LINE>if (...
jmxModel = JmxModelFactory.getJmxModelFor(this);
132,076
public PersistentTasksCustomMetadata.Assignment selectNode(Collection<DiscoveryNode> candidateNodes) {<NEW_LINE>if (MlMetadata.getMlMetadata(clusterState).isUpgradeMode()) {<NEW_LINE>return AWAITING_UPGRADE;<NEW_LINE>}<NEW_LINE>if (MlMetadata.getMlMetadata(clusterState).isResetMode()) {<NEW_LINE>return RESET_IN_PROGRES...
String jobNode = jobTask.getExecutorNode();
196,584
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see org.openhab.binding.digitalSTROM2.internal.client.job.SensorJob#execute(org.openhab.binding.digitalSTROM2.<NEW_LINE>* internal.client.DigitalSTROMAPI, java.lang.String)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void execute(DigitalSTROMAPI digitalSTROM, String...
this.device.setTemperatureSensorValue(sensorValue);
100,803
public boolean isRuntimeInvisible() {<NEW_LINE>final TypeBinding annotationBinding = this.resolvedType;<NEW_LINE>if (annotationBinding == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// could be forward reference<NEW_LINE>long metaTagBits = annotationBinding.getAnnotationTagBits();<NEW_LINE>// we need to filter o...
TagBits.AnnotationRetentionMASK) == TagBits.AnnotationClassRetention;
739,000
private void indeterminateChanged() {<NEW_LINE>boolean show = indeterminateButton.isSelected();<NEW_LINE>// show/hide indeterminate checkboxes<NEW_LINE>for (Component c : getComponents()) {<NEW_LINE>if ((c instanceof TestStateCheckBox && ((TestStateCheckBox) c).isStateIndeterminate()) || c instanceof FlatTriStateCheckB...
parseBoundSize("0", true, true);
51,453
public Result<Void> delete(final Iterable<com.google.cloud.datastore.Key> keys) {<NEW_LINE>for (com.google.cloud.datastore.Key key : keys) deferrer.undefer(ofy.getOptions(), Key.create(key));<NEW_LINE>final Future<Void> fut = datastore.delete(keys);<NEW_LINE>final Result<Void> adapted <MASK><NEW_LINE>final Result<Void>...
= new ResultAdapter<>(fut);
571,983
public CurrencyParameterSensitivities parameterSensitivity(PointSensitivities pointSensitivities) {<NEW_LINE>CurrencyParameterSensitivities sens = CurrencyParameterSensitivities.empty();<NEW_LINE>for (PointSensitivity point : pointSensitivities.getSensitivities()) {<NEW_LINE>if (point instanceof RepoCurveZeroRateSensit...
), pt.getCurveCurrency());
1,848,439
public void doVibrate(int id, int effect, int strength, int oneShot) {<NEW_LINE>Vibrator vibrator = null;<NEW_LINE>int repeat = 0;<NEW_LINE>long[] pattern = { 0, 16 };<NEW_LINE>int[] strengths = { 0, strength };<NEW_LINE>if (Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN) {<NEW_LINE>if (id == -1)<NE...
dev = InputDevice.getDevice(id);
134,962
public int appendRecord(final int recordVersion, final byte[] record, final int requestedPosition, final Set<Integer> bookedRecordPositions) {<NEW_LINE>int freePosition = getIntValue(FREE_POSITION_OFFSET);<NEW_LINE>final int indexesLength = getIntValue(PAGE_INDEXES_LENGTH_OFFSET);<NEW_LINE>final int lastEntryIndexPosit...
indexesLength, entrySize, freeListHeader, bookedRecordPositions);
173,698
public static DescribeDBInstancesByPerformanceResponse unmarshall(DescribeDBInstancesByPerformanceResponse describeDBInstancesByPerformanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBInstancesByPerformanceResponse.setRequestId(_ctx.stringValue("DescribeDBInstancesByPerformanceResponse.RequestId"));<NEW_LIN...
("DescribeDBInstancesByPerformanceResponse.Items[" + i + "].SessionUsage"));
1,151,540
public AccountQuota unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>AccountQuota accountQuota = new AccountQuota();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 3;<NEW_LINE>...
().unmarshall(context));
1,081,282
private Mono<PagedResponse<LogzMonitorResourceInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArg...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
20,446
public void copyTo(CharBuffer target) throws CudaException {<NEW_LINE>final int fromIndex = target.position();<NEW_LINE>final <MASK><NEW_LINE>lengthCheck(toIndex - fromIndex, 1);<NEW_LINE>if (target.isDirect()) {<NEW_LINE>// <br/><NEW_LINE>// <br/><NEW_LINE>copyToHostDirect(// <br/><NEW_LINE>deviceId, getAddress(), tar...
int toIndex = target.limit();
1,267,344
private void initData() {<NEW_LINE>a <MASK><NEW_LINE>b = new ImageFloat4(numElementsX, numElementsY);<NEW_LINE>c = new ImageFloat4(numElementsX, numElementsY);<NEW_LINE>Random r = new Random();<NEW_LINE>for (int j = 0; j < numElementsY; j++) {<NEW_LINE>for (int i = 0; i < numElementsX; i++) {<NEW_LINE>float[] ra = new ...
= new ImageFloat4(numElementsX, numElementsY);
437,283
public DecryptResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DecryptResult decryptResult = new DecryptResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
class).unmarshall(context));
1,686,065
private void createClearDialog(final QuestionWidget qw) {<NEW_LINE>alertDialog = new MaterialAlertDialogBuilder(this).create();<NEW_LINE>alertDialog.setTitle(getString(R.string.clear_answer_ask));<NEW_LINE>String question = qw<MASK><NEW_LINE>if (question == null) {<NEW_LINE>question = "";<NEW_LINE>}<NEW_LINE>if (questi...
.getFormEntryPrompt().getLongText();
234,574
public ExceptionMappersBuildItem scanForExceptionMappers(CombinedIndexBuildItem combinedIndexBuildItem, ApplicationResultBuildItem applicationResultBuildItem, BuildProducer<AdditionalBeanBuildItem> additionalBeanBuildItemBuildProducer, BuildProducer<ReflectiveClassBuildItem> reflectiveClassBuildItemBuildProducer, List<...
mapper = new ResourceExceptionMapper<>();
1,567,534
public static <T extends @Nullable Object> BloomFilter<T> readFrom(InputStream in, Funnel<? super T> funnel) throws IOException {<NEW_LINE>checkNotNull(in, "InputStream");<NEW_LINE>checkNotNull(funnel, "Funnel");<NEW_LINE>int strategyOrdinal = -1;<NEW_LINE>int numHashFunctions = -1;<NEW_LINE>int dataLength = -1;<NEW_LI...
dataArray, numHashFunctions, funnel, strategy);
984,440
public static void handle(String stmt, ManagerConnection c) {<NEW_LINE>ByteBuffer buffer = c.allocate();<NEW_LINE>// write header<NEW_LINE>buffer = header.write(buffer, c, true);<NEW_LINE>// write fields<NEW_LINE>for (FieldPacket field : fields) {<NEW_LINE>buffer = field.write(buffer, c, true);<NEW_LINE>}<NEW_LINE>// w...
showLogSum(c, buffer, packetId);
419,393
public void handleEvent(@NonNull final PPOrderChangedEvent event) {<NEW_LINE>final List<Candidate> candidatesToUpdate = candidateRepositoryRetrieval.retrieveCandidatesForPPOrderId(event.getPpOrderId());<NEW_LINE>Check.errorIf(candidatesToUpdate.isEmpty(), "No Candidates found for PP_Order_ID={}", event.getPpOrderId());...
headerCandidate = processPPOrderChange(headerCandidateToUpdate, event);
1,791,344
protected void initHistoryJobHandlers() {<NEW_LINE>if (isAsyncHistoryEnabled) {<NEW_LINE>historyJobHandlers = new HashMap<>();<NEW_LINE>List<HistoryJsonTransformer> allHistoryJsonTransformers = new ArrayList<>(initDefaultHistoryJsonTransformers());<NEW_LINE>if (customHistoryJsonTransformers != null) {<NEW_LINE>allHisto...
= new AsyncHistoryJobHandler(CmmnAsyncHistoryConstants.JOB_HANDLER_TYPE_DEFAULT_ASYNC_HISTORY);
123,449
public SOAPMessage invoke(SOAPMessage request) {<NEW_LINE>SOAPMessage response = null;<NEW_LINE>try {<NEW_LINE>System.out.println("Incoming Client Request as a SOAPMessage:");<NEW_LINE>request.writeTo(System.out);<NEW_LINE>String hdrText = request.getSOAPHeader().getTextContent();<NEW_LINE>System.out.println("Incoming ...
getSOAPPart().setContent(src);
446,332
public void init(Project project, XBreakpointManager breakpointManager, @Nonnull XBreakpointBase breakpoint, @Nullable XDebuggerEditorsProvider debuggerEditorsProvider) {<NEW_LINE>init(project, breakpointManager, breakpoint);<NEW_LINE>if (debuggerEditorsProvider != null) {<NEW_LINE>ActionListener listener = new ActionL...
JComponent logExpressionComponent = myLogExpressionComboBox.getComponent();
378,553
private List<Phone> parseIntoPhones() throws Exception {<NEW_LINE>// initialize List of Phones (note that initial size is not final!):<NEW_LINE>phones = new ArrayList<Phone>(units.size() / 2);<NEW_LINE>// iterate over the units:<NEW_LINE>int u = 0;<NEW_LINE>while (u < units.size()) {<NEW_LINE>// get unit...<NEW_LINE>Se...
(HalfPhoneTarget) unit.getTarget();
1,359,514
public static QueryClusterDetailResponse unmarshall(QueryClusterDetailResponse queryClusterDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryClusterDetailResponse.setRequestId(_ctx.stringValue("QueryClusterDetailResponse.RequestId"));<NEW_LINE>queryClusterDetailResponse.setMessage(_ctx.stringValue("QueryCluster...
("QueryClusterDetailResponse.Data.InstanceModels[" + i + "].CreationTimestamp"));
830,006
// TODO: Use one of the new text classes, like /help ?<NEW_LINE>private void warpList(final CommandSource sender, final String[] args, final IUser user) throws Exception {<NEW_LINE>final IWarps warps = ess.getWarps();<NEW_LINE>final List<String> warpNameList = getAvailableWarpsFor(user);<NEW_LINE>if (warpNameList.isEmp...
(tl("warpList", warpList));
1,037,383
public void configure(final Socket socket) throws IOException {<NEW_LINE>if (preferences.getInteger("connection.buffer.receive") > 0) {<NEW_LINE>socket.setReceiveBufferSize(preferences.getInteger("connection.buffer.receive"));<NEW_LINE>}<NEW_LINE>if (preferences.getInteger("connection.buffer.send") > 0) {<NEW_LINE>sock...
().getTimeout() * 1000;
5,133
public LibSvmSinkStreamOp sinkFrom(StreamOperator<?> in) {<NEW_LINE>final String vectorCol = getVectorCol();<NEW_LINE>final String labelCol = getLabelCol();<NEW_LINE>final int vectorColIdx = TableUtil.findColIndexWithAssertAndHint(in.getColNames(), vectorCol);<NEW_LINE>final int labelColIdx = TableUtil.findColIndexWith...
).get(LibSvmSinkParams.START_INDEX);
1,538,879
public QopConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>QopConfiguration qopConfiguration = new QopConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentT...
String currentParentElement = context.getCurrentParentElement();
185,358
public ModifyVpcPeeringConnectionOptionsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ModifyVpcPeeringConnectionOptionsResult modifyVpcPeeringConnectionOptionsResult = new ModifyVpcPeeringConnectionOptionsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int tar...
().unmarshall(context));
381,069
public com.amazonaws.services.cloud9.model.LimitExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.cloud9.model.LimitExceededException limitExceededException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurrentDepth(...
cloud9.model.LimitExceededException(null);
1,349,355
public ViewLayout build() {<NEW_LINE>final WindowId windowIdEffective = getWindowIdEffective();<NEW_LINE>final ViewProfileId profileIdEffective = !ViewProfileId.isNull(<MASK><NEW_LINE>final ImmutableList<DocumentFilterDescriptor> filtersEffective = ImmutableList.copyOf(filters != null ? filters : from.getFilters());<NE...
profileId) ? profileId : from.profileId;
587,100
private synchronized void doParse(Element element, ParserContext parserContext) {<NEW_LINE>String[] basePackages = StringUtils.tokenizeToStringArray(element.getAttribute("base-package"), ",; \t\n");<NEW_LINE>AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(parserContext, element);<NEW_LINE>if (!parserContext.getRe...
getReaderContext().registerWithGeneratedName(interceptorDef);
768,748
private void validate(APIAttachSecurityGroupToL3NetworkMsg msg) {<NEW_LINE>SimpleQuery<SecurityGroupL3NetworkRefVO> q = dbf.createQuery(SecurityGroupL3NetworkRefVO.class);<NEW_LINE>q.add(SecurityGroupL3NetworkRefVO_.l3NetworkUuid, Op.EQ, msg.getL3NetworkUuid());<NEW_LINE>q.add(SecurityGroupL3NetworkRefVO_.securityGroup...
, msg.getL3NetworkUuid()));
415,531
public void fill() throws JRException {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>File sourceFile = new File("build/reports/AlterDesignReport.jasper");<NEW_LINE>System.err.println(" : " + sourceFile.getAbsolutePath());<NEW_LINE>JasperReport jasperReport = (JasperReport) JRLoader.loadObject(sourceFile);...
Math.random())));
852,088
//<NEW_LINE>public void testJMSProviderMBean(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>MBeanServer mbeanServer = ManagementFactory.getPlatformMBeanServer();<NEW_LINE>String queryText = "WebSphere:j2eeType=JMSResource," + "name=JMS-2.0Provider," + "J2EEServer=JMSMBeanServer";<...
System.out.println("Results:");
1,791,917
private void showChart() {<NEW_LINE>List<XYChart> charts = new ArrayList<>();<NEW_LINE>CategoryChart chart = new CategoryChartBuilder().width(800).height(600).title("Consistency of hashing algorithm").xAxisTitle("Distribution of requests on test ring").yAxisTitle("Number of requests").build();<NEW_LINE>chart.getStyler(...
)).get()));
1,632,066
final ListIdentityPoolsResult executeListIdentityPools(ListIdentityPoolsRequest listIdentityPoolsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listIdentityPoolsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
162,425
protected void encodeStepStatus(FacesContext context, Wizard wizard) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String currentStep = wizard.getStep();<NEW_LINE>boolean currentFound = false;<NEW_LINE>writer.startElement("ul", null);<NEW_LINE>writer.writeAttribute("class",...
writer.writeText(title, null);
248,625
final ListBillingGroupCostReportsResult executeListBillingGroupCostReports(ListBillingGroupCostReportsRequest listBillingGroupCostReportsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listBillingGroupCostReportsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
invoke(request, responseHandler, executionContext);
1,030,050
private static void tryAssertion56(RegressionEnvironment env, String stmtText, String outputLimit, AtomicInteger milestone) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>String[] fields = new String[] { "sum(price)" };<NEW_LINE>ResultAssertTestResult expected = new Resul...
[] { { 85d } });
1,409,161
private boolean isClass(String result) {<NEW_LINE>if (result == null || result.isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// if it's the class we're compiling, then of course it's a class<NEW_LINE>if (result.equals(targetName)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>InputStream is = null;<NEW_LINE>try...
is = loader.getResourceAsStream(result);
1,733,698
public static void refreshReferTables(Item f) {<NEW_LINE>if (!(f instanceof ItemFunc || f instanceof ItemSum))<NEW_LINE>return;<NEW_LINE>HashSet<PlanNode> rtables = f.getReferTables();<NEW_LINE>rtables.clear();<NEW_LINE>for (int index = 0; index < f.getArgCount(); index++) {<NEW_LINE>Item arg = f.arguments().get(index)...
) || arg.isWithUnValAble());
1,441,642
private boolean reconnect() {<NEW_LINE>boolean connectedSuccess = false;<NEW_LINE>Random random = new Random();<NEW_LINE>for (int i = 1; i <= Config.RETRY_NUM; i++) {<NEW_LINE>if (transport != null) {<NEW_LINE>transport.close();<NEW_LINE>int currHostIndex = random.nextInt(endPointList.size());<NEW_LINE>int tryHostNum =...
endPoint = endPointList.get(j);
1,700,952
private void registerAggregation(AggregationSpec spec, ValuesSourceRegistry.Builder builder) {<NEW_LINE>namedXContents.add(new NamedXContentRegistry.Entry(BaseAggregationBuilder.class, spec.getName(), (p, c) -> {<NEW_LINE>String name = (String) c;<NEW_LINE>return spec.getParser(<MASK><NEW_LINE>}));<NEW_LINE>namedWritea...
).parse(p, name);
1,052,527
public static int findLongestSubstring(String str) {<NEW_LINE>// Maintains count of each alphabet<NEW_LINE>int[] charCount = new int[52];<NEW_LINE>// Variable len stores length of longest valid substring, while start and end<NEW_LINE>// are limits of the current window (substring) being considered<NEW_LINE>int len = 0,...
[ch - 'A' + 26]--;
33,651
public void visit(BLangTernaryExpr ternaryExpr) {<NEW_LINE>BLangSimpleVariableDef resultVarDef = createVarDef("$ternary_result$", ternaryExpr.getBType(), null, ternaryExpr.pos);<NEW_LINE>BLangBlockStmt thenBody = ASTBuilderUtil.createBlockStmt(ternaryExpr.pos);<NEW_LINE>BLangBlockStmt elseBody = ASTBuilderUtil.createBl...
pos, resultVarDef.var.symbol);
444,361
public E relaxedPoll() {<NEW_LINE>final long[] sBuffer = sequenceBuffer;<NEW_LINE>final long mask = this.mask;<NEW_LINE>long cIndex;<NEW_LINE>long seqOffset;<NEW_LINE>long seq;<NEW_LINE>long expectedSeq;<NEW_LINE>do {<NEW_LINE>cIndex = lvConsumerIndex();<NEW_LINE>seqOffset = calcCircularLongElementOffset(cIndex, mask);...
e = lpRefElement(buffer, offset);
758,431
public Object decodeFrame(ByteBuf frame) {<NEW_LINE>byte b0 = frame.readByte();<NEW_LINE><MASK><NEW_LINE>if (ProtocolConstants.MAGIC_CODE_BYTES[0] != b0 || ProtocolConstants.MAGIC_CODE_BYTES[1] != b1) {<NEW_LINE>throw new IllegalArgumentException("Unknown magic code: " + b0 + ", " + b1);<NEW_LINE>}<NEW_LINE>byte versio...
byte b1 = frame.readByte();
1,153,744
final UpdateChannelResult executeUpdateChannel(UpdateChannelRequest updateChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
invoke(request, responseHandler, executionContext);
326,233
public String update(Request request, Response response) {<NEW_LINE>final String <MASK><NEW_LINE>final SecurityAuthConfig existingAuthConfig = fetchEntityFromConfig(securityAuthConfigId);<NEW_LINE>final SecurityAuthConfig newAuthConfig = buildEntityFromRequestBody(request);<NEW_LINE>HttpLocalizedOperationResult result ...
securityAuthConfigId = request.params("id");
1,024,230
private static void save(String table, Person person, SQLiteDatabase database) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>values.put(<MASK><NEW_LINE>values.put("local_blog_id", person.getLocalTableBlogId());<NEW_LINE>values.put("display_name", person.getDisplayName());<NEW_LINE>values.put("avatar_u...
"person_id", person.getPersonID());
1,794,099
private static String parseSoapMethodName(InputStream stream, String charEncoding) {<NEW_LINE>try {<NEW_LINE>// newInstance() et pas newFactory() pour java 1.5 (issue 367)<NEW_LINE>final XMLInputFactory factory = XMLInputFactory.newInstance();<NEW_LINE>// disable DTDs entirely for that factory<NEW_LINE>factory.setPrope...
LOG.debug("Unable to parse SOAP request", e);
72,580
public boolean onSingleTap(PointF point, RotatedTileBox tileBox) {<NEW_LINE>MapActivity mapActivity = getMapActivity();<NEW_LINE>if (mapActivity == null || menu == null || mInChangeMarkerPositionMode || mInGpxDetailsMode || mapActivity.getGpsFilterFragment() != null || mapActivity.getDownloadTilesFragment() != null) {<...
.getMapLayers().getMapControlsLayer();
459,783
public void handle(String stmt, ManagerService service) {<NEW_LINE>MySqlUpdateStatement update;<NEW_LINE>try {<NEW_LINE>update = (MySqlUpdateStatement) DruidUtil.parseMultiSQL(stmt);<NEW_LINE>} catch (Exception e) {<NEW_LINE>LOGGER.warn("manager parser insert failed", e);<NEW_LINE>service.writeErrMessage("42000", "You ...
managerTable = getWritableTable(update, service);
178,033
private <T extends Trait> void addOperationSecurity(Context<T> context, OperationObject.Builder builder, OperationShape shape, OpenApiMapper plugin) {<NEW_LINE>ServiceShape service = context.getService();<NEW_LINE>ServiceIndex serviceIndex = ServiceIndex.of(context.getModel());<NEW_LINE>Map<ShapeId, Trait> serviceSchem...
security(Collections.emptyList());
105,648
private void mergeProperties(PersistenceUnitInfo puInfo, ApplicationMetadata appMetadata, String persistenceUnit) {<NEW_LINE>PersistenceUnitMetadata metadata = appMetadata.getPersistenceUnitMetadata(persistenceUnit);<NEW_LINE>metadata.<MASK><NEW_LINE>metadata.getClasses().addAll(puInfo.getManagedClassNames());<NEW_LINE...
setTransactionType(puInfo.getTransactionType());
51,184
public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {<NEW_LINE>// _setupAgentPath = Script.findScript(getPatchPath(),<NEW_LINE>// "setup_agent.sh");<NEW_LINE>_kvmPrivateNic = _configDao.getValue(<MASK><NEW_LINE>if (_kvmPrivateNic == null) {<NEW_LINE>_kvmPrivateNic = "cloudbr0...
Config.KvmPrivateNetwork.key());
810,501
public CompletableFuture<Void> iterateAllClients(@NotNull final IterationCallback<SessionInformation> callback, @NotNull final Executor callbackExecutor) {<NEW_LINE>Preconditions.checkNotNull(callback, "Callback cannot be null");<NEW_LINE>Preconditions.checkNotNull(callbackExecutor, "Callback executor cannot be null");...
<>(callbackExecutor, callback));
1,791,556
public static void validateColumnLimits(String schemaName, String logicalTableName, SqlAlterTable sqlAlterTable) {<NEW_LINE>final List<SqlAlterSpecification> alterItems = sqlAlterTable.getAlters();<NEW_LINE>final List<String> addedColumns = LogicalAlterTable.getAlteredColumns(sqlAlterTable, SqlAlterTable.ColumnOpt.ADD)...
.getColDef().getComment();
776,390
public static ImprovedOutputStream encoder(OutputStream output, PGPPublicKey encryptionKey, @Nullable OutputStream lengthOutput) {<NEW_LINE>// We use a Closer to handle the stream .close, to make sure it's done correctly.<NEW_LINE>Closer closer = Closer.create();<NEW_LINE>OutputStream encryptionLayer = closer.register(...
.register(openCompressor(encryptionLayer));
150,677
public void init() throws SQLException {<NEW_LINE>//<NEW_LINE>InformationStorage informationStorage = this.appContext.getInstance(InformationStorage.class);<NEW_LINE>JdbcTemplate jdbcTemplate = null;<NEW_LINE>if (informationStorage != null) {<NEW_LINE>jdbcTemplate = new JdbcTemplate(Objects.requireNonNull(informationSt...
JdbcUtils.getDbType(jdbcUrl, jdbcDriverName);
1,779,861
public static Slime toSlime(List<Notification> notifications) {<NEW_LINE>Slime slime = new Slime();<NEW_LINE>Cursor notificationsArray = slime.<MASK><NEW_LINE>for (Notification notification : notifications) {<NEW_LINE>Cursor notificationObject = notificationsArray.addObject();<NEW_LINE>notificationObject.setLong(atFiel...
setObject().setArray(notificationsFieldName);
1,801,809
private static // Make an instance record.<NEW_LINE>PropertyFunctionInstance magicProperty(Context context, Triple pfTriple, BasicPattern triples) {<NEW_LINE>List<Triple> listTriples = new ArrayList<>();<NEW_LINE>GNode sGNode = new GNode(triples, pfTriple.getSubject());<NEW_LINE>GNode oGNode = new GNode(triples, pfTrip...
getList().removeAll(listTriples);
1,589,127
public void reduce(final IntWritable key, final Iterator<Text> values, OutputCollector<IntWritable, Text> output, final Reporter reporter) throws IOException {<NEW_LINE>int i;<NEW_LINE>float vector_val = 0;<NEW_LINE>ArrayList<Integer> to_nodes_list = new ArrayList<Integer>();<NEW_LINE>ArrayList<Float> to_val_list = new...
(1), Double.class);
44,649
private static void calculate_incomplete_rooms_with_empty_neighbours(ObstacleExpansionRoom p_room, AutorouteEngine p_autoroute_engine) {<NEW_LINE>TileShape room_shape = p_room.get_shape();<NEW_LINE>if (!(room_shape instanceof IntBox)) {<NEW_LINE>FRLogger.warn("SortedOrthoganelRoomNeighbours.calculate_incomplete_rooms_w...
new_contained_box = room_box.intersection(new_room_box);
325,261
public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex buildPartial() {<NEW_LINE>net.osmand.binary.OsmandOdb.OsmAndRoutingIndex result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x0...
.rules_ = rulesBuilder_.build();
333,217
/*<NEW_LINE>* @return an object to work with<NEW_LINE>* @exception IOException an I/O error occured<NEW_LINE>* @exception ClassNotFoundException the class has not been found<NEW_LINE>*/<NEW_LINE>public Object instanceCreate() throws java.io.IOException, ClassNotFoundException {<NEW_LINE>try {<NEW_LINE>if (isSerialized(...
).getInputStream(), 1024);
137,924
public void addGhostslots(NNList<GhostSlot> ghostSlots) {<NEW_LINE>NNList<ItemStack> empties = new NNList<>();<NEW_LINE>NNList<ItemStack> fulls = new NNList<>();<NEW_LINE>getValidPair(ItemHelper.getValidItems()).apply(new Callback<Triple<ItemStack, ItemStack, Integer>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public v...
add(e.getLeft());
1,358,814
public void onError(Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TBase msg;<NEW_LINE>getSupervisorWorkers_result result = new getSupervisorWorkers_result();<NEW_LINE>if (e instanceof NotAliveException) {<NEW_LINE>result.e = (NotAliveException) e;<NEW_L...
LOGGER.error("Exception writing to internal frame buffer", ex);
63,230
public static void main(String[] args) {<NEW_LINE>Exercise29 exercise29 = new Exercise29();<NEW_LINE>Graph graphWithSimpleCycle = new Graph(4);<NEW_LINE><MASK><NEW_LINE>graphWithSimpleCycle.addEdge(1, 2);<NEW_LINE>graphWithSimpleCycle.addEdge(2, 3);<NEW_LINE>graphWithSimpleCycle.addEdge(3, 0);<NEW_LINE>CycleThatDoesNot...
graphWithSimpleCycle.addEdge(0, 1);