idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
800,588
public static void classDictInit(PyObject dict) {<NEW_LINE>dict.__setitem__("__name__", new PyString("itertools"));<NEW_LINE>dict.__setitem__("__doc__", __doc__);<NEW_LINE>dict.__setitem__("chain", chain.TYPE);<NEW_LINE>dict.__setitem__("combinations", combinations.TYPE);<NEW_LINE>dict.__setitem__("combinations_with_re...
__setitem__("permutations", permutations.TYPE);
707,373
// auto-generated, see spoon.generating.CloneVisitorGenerator<NEW_LINE>@java.lang.Override<NEW_LINE>public <T> void visitCtConstructorCall(final spoon.reflect.code.CtConstructorCall<T> ctConstructorCall) {<NEW_LINE>spoon.reflect.code.CtConstructorCall<T> aCtConstructorCall = ctConstructorCall.getFactory().Core().create...
cloneHelper.tailor(ctConstructorCall, aCtConstructorCall);
1,133,501
private void layoutStackedChildrenAt(Point linePoint, ConnectionWidgetLayoutAlignment adjustedAlignment, ConnectionWidget connectionWidget, ArrayList<Widget> children) {<NEW_LINE>int areaWidth = 0, areaHeight = 0;<NEW_LINE>if (adjustedAlignment != ConnectionWidgetLayoutAlignment.NONE) {<NEW_LINE>for (Widget childWidget...
int x = areaX - preferredBounds.x;
122,250
private void trackFeatures(Image input, RectangleRotate_F64 region) {<NEW_LINE>pairs.reset();<NEW_LINE>currentImage.process(input);<NEW_LINE>for (int i = 0; i < currentImage.getNumLayers(); i++) {<NEW_LINE>Image layer = currentImage.getLayer(i);<NEW_LINE>gradient.process(layer, currentDerivX[i], currentDerivY[i]);<NEW_...
Math.sin(region.theta);
149,872
protected boolean handleNativeDragStarted(DragSourceEvent event) {<NEW_LINE>disableTimer();<NEW_LINE>// win hack because button down is delayed<NEW_LINE>if (getParent() instanceof IPaletteStackEditPart && SWT.getPlatform().equals("win32")) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>Point nds = getPaletteViewer().getControl().t...
getButtonModel().setPressed(false);
399,221
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {<NEW_LINE>stream.defaultReadObject();<NEW_LINE>this.angleGridlineStroke = SerialUtils.readStroke(stream);<NEW_LINE>this.angleGridlinePaint = SerialUtils.readPaint(stream);<NEW_LINE>this.radiusGridlineStroke = SerialUtils.readS...
= this.axes.size();
1,608,102
public void actionPerformed(ActionEvent e) {<NEW_LINE>if (dialog.validate()) {<NEW_LINE>dialog.setVisible(false);<NEW_LINE>String targetProjectName = dialog.getValue(Form.PROJECT);<NEW_LINE>String name = dialog.getValue(Form.NAME);<NEW_LINE>WsdlProject project = testSuite.getProject();<NEW_LINE>// within same project?<...
testSuite, name, project, description);
1,151,433
public void applyChanges() {<NEW_LINE>if (!isValid())<NEW_LINE>return;<NEW_LINE>if (panel.keepForeverRadioButton.isSelected()) {<NEW_LINE>HistorySettings.<MASK><NEW_LINE>HistorySettings.getInstance().setTTL(Integer.parseInt(daysValue));<NEW_LINE>HistorySettings.getInstance().setCleanUpLabeled(!noLabelValue);<NEW_LINE>}...
getInstance().setKeepForever(true);
1,802,158
public static byte[] readDialogFileBytes(Component parent) {<NEW_LINE>// Choose file<NEW_LINE>File file = null;<NEW_LINE>JFileChooser fileChooser = new JFileChooser();<NEW_LINE>fileChooser.setCurrentDirectory(new java.io.File("."));<NEW_LINE>fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);<NEW_LINE>fileChoose...
new byte[(int) fileSize];
1,670,373
public static MetadataStore createMetadataStore(Configuration conf) throws MetadataException {<NEW_LINE>MetadataStore store;<NEW_LINE>Object storeProperty = conf.getProperty(METADATA_STORE_INSTANCE);<NEW_LINE>if (storeProperty != null) {<NEW_LINE>if (!(storeProperty instanceof MetadataStore)) {<NEW_LINE>throw new Runti...
MetadataException(Code.METADATA_SERVICE_ERROR, e);
120,229
public OChannelBinary writeBytes(final byte[] iContent, final int iLength) throws IOException {<NEW_LINE>if (debug)<NEW_LINE>OLogManager.instance().info(this, "%s - Writing bytes (4+%d=%d bytes): %s", socket.getRemoteSocketAddress(), iLength, iLength + 4, Arrays.toString(iContent));<NEW_LINE>if (iContent == null) {<NEW...
updateMetricTransmittedBytes(OBinaryProtocol.SIZE_INT + iLength);
1,585,593
final ListChildrenResult executeListChildren(ListChildrenRequest listChildrenRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listChildrenRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,227,752
public Vector ifilter(double threshold) {<NEW_LINE>if (storage.isDense()) {<NEW_LINE>int[] values = ((LongIntVectorStorage) storage).getValues();<NEW_LINE>for (int i = 0; i < values.length; i++) {<NEW_LINE>if (Math.abs(values[i]) <= threshold) {<NEW_LINE>values[i] = 0;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>} else if (storage....
LongIntVectorStorage) storage).entryIterator();
824,091
public void loadQueryPrerequisites() throws Exception {<NEW_LINE>if (QUERY_PREREQUISITES_CONFIG.exists()) {<NEW_LINE>Map<String, String> properties = new HashMap<>(loadProperties(QUERY_PREREQUISITES_CONFIG));<NEW_LINE>String factoryName = properties.remove(QUERY_PREREQUISITES_PROPERTY_NAME);<NEW_LINE>checkArgument(!isN...
queryPrerequisites = queryPrerequisitesFactory.create(properties);
1,731,303
private void addFileToRequestBundle(IBaseParameters theInputParameters, String theFileName, byte[] theBytes) {<NEW_LINE>byte[] bytes = theBytes;<NEW_LINE>String fileName = theFileName;<NEW_LINE>if (bytes.length > ourTransferSizeLimit) {<NEW_LINE>ourLog.info("File size is greater than {} - Going to use a local file refe...
attachment = AttachmentUtil.newInstance(myFhirCtx);
1,540,993
public static CompositeValuesSourceBuilder<?> fromXContent(XContentParser parser) throws IOException {<NEW_LINE>XContentParser.Token token = parser.currentToken();<NEW_LINE>ensureExpectedToken(XContentParser.Token.START_OBJECT, token, parser);<NEW_LINE>token = parser.nextToken();<NEW_LINE>ensureExpectedToken(XContentPa...
String name = parser.currentName();
1,142,752
public PlatformCatalog resolvePlatformCatalog(String quarkusVersion) throws RegistryResolutionException {<NEW_LINE>List<PlatformCatalog> catalogs = new ArrayList<>(registries.size());<NEW_LINE>for (RegistryExtensionResolver qer : registries) {<NEW_LINE>final PlatformCatalog catalog = qer.resolvePlatformCatalog(quarkusV...
Mutable result = PlatformCatalog.builder();
1,074,248
private void checkFile(final ModelRepository modelRepo, final File file, final Kind kind) {<NEW_LINE>if (modelRepo != null && file != null) {<NEW_LINE>try {<NEW_LINE>synchronized (FolderObserver.class) {<NEW_LINE>if ((kind == ENTRY_CREATE || kind == ENTRY_MODIFY)) {<NEW_LINE>if (parsers.contains(getExtension(file.getNa...
file.getName(), file);
138,182
public static boolean skipPostPlanner(final ExecutionPlan executionPlan, final ExecutionContext executionContext) {<NEW_LINE>SqlNode ast = executionPlan.getAst();<NEW_LINE>RelNode plan = executionPlan.getPlan();<NEW_LINE>if (!PlannerContext.getPlannerContext(plan).getParamManager().getBoolean(ConnectionParams.ENABLE_PO...
&& !dmlWithDerivedSubquery(plan, ast);
1,290,117
private boolean internalSendNotification(@Nullable final BluetoothGattCharacteristic serverCharacteristic, final boolean confirm) {<NEW_LINE>if (serverManager == null || serverManager.getServer() == null || serverCharacteristic == null)<NEW_LINE>return false;<NEW_LINE>final int requiredProperty = confirm <MASK><NEW_LIN...
? BluetoothGattCharacteristic.PROPERTY_INDICATE : BluetoothGattCharacteristic.PROPERTY_NOTIFY;
185,079
public static ListTasksResponse unmarshall(ListTasksResponse listTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTasksResponse.setRequestId(_ctx.stringValue("ListTasksResponse.RequestId"));<NEW_LINE>listTasksResponse.setResultCode(_ctx.integerValue("ListTasksResponse.ResultCode"));<NEW_LINE>listTasksResponse.se...
("ListTasksResponse.Data.Content[" + i + "].Progress"));
1,398,426
private void failAttempt(final RaftMemberContext member, final RaftRequest request, final Throwable error) {<NEW_LINE>// If any append error occurred, increment the failure count for the member. Log the first three<NEW_LINE>// failures,<NEW_LINE>// and thereafter log 1% of the failures. This keeps the log from filling ...
memberId(), quorumResponseTime, maxQuorumResponseTimeout);
569,982
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>executeFateOperation_result result = new executeFateOperation_result();<NEW_LINE>if (e instanceof org.apache.accumulo.core.clientImpl.thrift.ThriftSe...
_LOGGER.error("Exception writing to internal frame buffer", ex);
1,820,224
static void handleRespectBinding(WebServiceRef webServiceRef, WebServiceRefInfo wsrInfo, RespectBinding rbAnnotation) {<NEW_LINE>if (rbAnnotation == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (wsrInfo.isWebServiceFeaturePresent(wsrInfo.getServiceRefTypeClassName(), RespectBindingFeatureInfo.class)) {<NEW_LINE>if (...
Tr.debug(tc, "RespectBinding feature already present on WSR metadata, ignoring @RespectBinding annotation");
1,827,933
protected R publishReservedRecord(K key, V value, R reservedRecord, long reservationId) {<NEW_LINE>if (reservedRecord.getReservationId() != reservationId) {<NEW_LINE>return reservedRecord;<NEW_LINE>}<NEW_LINE>boolean update = reservedRecord.getValue() <MASK><NEW_LINE>if (update) {<NEW_LINE>nearCacheStats.incrementOwned...
!= null || reservedRecord.isCachedAsNull();
1,425,358
protected Iterator<E> flatMap(final Traverser.Admin<Element> traverser) {<NEW_LINE>if (useMultiQuery && traverser.get() instanceof Vertex) {<NEW_LINE>if (multiQueryResults == null || !multiQueryResults.containsKey(traverser.get())) {<NEW_LINE>prefetchNextBatch();<NEW_LINE>}<NEW_LINE>return convertIterator(multiQueryRes...
.add((E) e);
722,377
protected void exportRightPen(JRPen topPen, JRPen bottomPen, JRPen rightPen, JRPrintElement element) {<NEW_LINE>if (rightPen.getLineWidth() > 0f) {<NEW_LINE>float topOffset = topPen.getLineWidth() / 2;<NEW_LINE>float bottomOffset = bottomPen.getLineWidth() / 2;<NEW_LINE>int lcOffsetX = getOffsetX();<NEW_LINE>int lcOffs...
element.getHeight() - bottomOffset);
152,418
public static void execute(ManagerService service) {<NEW_LINE>ByteBuffer buffer = service.allocate();<NEW_LINE>// write header<NEW_LINE>buffer = HEADER.write(buffer, service, true);<NEW_LINE>// write fields<NEW_LINE>for (FieldPacket field : FIELDS) {<NEW_LINE>buffer = field.write(buffer, service, true);<NEW_LINE>}<NEW_...
getCharset().getResults());
908,077
public ClientProperties unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ClientProperties clientProperties = new ClientProperties();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = c...
int originalDepth = context.getCurrentDepth();
170,967
public void backupCertificateCodeSnippets() {<NEW_LINE>CertificateClient certificateClient = getCertificateClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.certificates.CertificateClient.backupCertificate#string<NEW_LINE>byte[] certificateBackup = certificateClient.backupCertificate("certificateName");<NEW_LINE...
printf("Backed up certificate with back up blob length %d%n", certificateBackup.length);
1,776,285
final ResetPasswordResult executeResetPassword(ResetPasswordRequest resetPasswordRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(resetPasswordRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
808,316
private void sendConfiguration() {<NEW_LINE>Map<String, Object> settings = new HashMap<>();<NEW_LINE>Map<String, Object> bootJavaObj = new HashMap<>();<NEW_LINE>Map<String, Object> liveInformation = new HashMap<>();<NEW_LINE>Map<String, Object> liveInformationAutomaticTracking = new HashMap<>();<NEW_LINE>Map<String, Ob...
.getString(Constants.PREF_XML_CONFIGS_HYPERLINKS));
426,458
public static void validateJsonObject(JsonObject jsonObj) throws IOException {<NEW_LINE>if (jsonObj == null) {<NEW_LINE>if (AdditionalPropertiesInteger.openapiRequiredFields.isEmpty()) {<NEW_LINE>return;<NEW_LINE>} else {<NEW_LINE>// has required fields<NEW_LINE>throw new IllegalArgumentException(String.format("The req...
> entries = jsonObj.entrySet();
1,479,508
public LabelsInputConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>LabelsInputConfiguration labelsInputConfiguration = new LabelsInputConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
JsonToken token = context.getCurrentToken();
518,829
protected static String parseDataBytes(byte[] data, String typeStr, int index) {<NEW_LINE>try {<NEW_LINE>byte[] startBytes = subBytes(data, index * DATAWORD_UNIT_SIZE, DATAWORD_UNIT_SIZE);<NEW_LINE>Type type = basicType(typeStr);<NEW_LINE>if (type == Type.INT_NUMBER) {<NEW_LINE>return new BigInteger(startBytes).toStrin...
startBytes, 12, startBytes.length);
256,475
private void prepareSessionInitiate(final org.webrtc.SessionDescription webRTCSessionDescription, final State targetState) {<NEW_LINE>final SessionDescription sessionDescription = SessionDescription.parse(webRTCSessionDescription.description);<NEW_LINE>final RtpContentMap rtpContentMap = RtpContentMap.of(sessionDescrip...
}, MoreExecutors.directExecutor());
1,802,892
final CreateSipRuleResult executeCreateSipRule(CreateSipRuleRequest createSipRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSipRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,527,097
public static List<Pair> parameterToPairs(String collectionFormat, String name, Collection<?> values) {<NEW_LINE>if (name == null || name.isEmpty() || values == null || values.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>// get the collection format (default: csv)<NEW_LINE>String format = c...
, joiner.toString()));
1,003,131
private static Bitmap resizeImage(Bitmap image, int newWidth, int newHeight, String mode, boolean onlyScaleDown) {<NEW_LINE>Bitmap newImage = null;<NEW_LINE>if (image == null) {<NEW_LINE>// Can't load the image from the given path.<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>int height = image.getHeight()...
int width = image.getWidth();
1,812,027
private void delegate(final EntityType model, Delegate delegate, SerializerConfig config, CodeWriter writer) throws IOException {<NEW_LINE>Parameter[] params = delegate.getParameters().toArray(new Parameter[0]);<NEW_LINE>writer.beginPublicMethod(delegate.getReturnType(), delegate.getName(), params);<NEW_LINE>// body st...
delegate.getName() + "(");
287,978
// </editor-fold>//GEN-END:initComponents<NEW_LINE>private void bnTestMultiUserActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_bnTestMultiUserActionPerformed<NEW_LINE>lbTestResultText.setForeground(Color.BLACK);<NEW_LINE>lbTestResultText.setText(NbBundle.getMessage(AutoIngestSettingsPanel....
(AutoIngestSettingsPanel.class, "AutoIngestSettingsPanel.PathInvalid"));
1,718,512
public static int clEnqueueWriteBufferRect(@NativeType("cl_command_queue") long command_queue, @NativeType("cl_mem") long buffer, @NativeType("cl_bool") boolean blocking_write, @NativeType("size_t const *") PointerBuffer buffer_origin, @NativeType("size_t const *") PointerBuffer host_origin, @NativeType("size_t const *...
, memAddressSafe(event), __functionAddress);
728,581
public HttpResponse updatePetForHttpResponse(Pet body, Map<String, Object> params) throws IOException {<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new IllegalArgumentException("Missing the required parameter 'body' when calling updatePet");<NEW_LINE>}<NEW_LINE>Ur...
, (Object[]) value);
1,616,117
private String toStringWithSuffix(final String suffix) {<NEW_LINE>StringBuilder toStringBuff = new StringBuilder();<NEW_LINE>toStringBuff.append(" parentHash=").append(toHexStringOrEmpty(parentHash)).append(suffix);<NEW_LINE>toStringBuff.append(" unclesHash=").append(toHexStringOrEmpty(unclesHash)).append(suffix);<NE...
(minimumGasPrice).append(suffix);
1,575,536
public static StringBuilder append(StringBuilder sb, Pod.Value v) {<NEW_LINE>switch(v.getValCase()) {<NEW_LINE>case VAL_NOT_SET:<NEW_LINE>return sb.append("[null]");<NEW_LINE>case STRING:<NEW_LINE>return sb.append(v.getString());<NEW_LINE>case BOOL:<NEW_LINE>return sb.append(v.getBool());<NEW_LINE>case FLOAT64:<NEW_LIN...
getUint16Array().getValList());
1,810,633
private void renderTileIfValidForMovement(Graphics2D graphics, Actor actor, int dx, int dy) {<NEW_LINE>WorldArea area = actor.getWorldArea();<NEW_LINE>if (area == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (area.canTravelInDirection(client, dx, dy)) {<NEW_LINE>LocalPoint lp = actor.getLocalLocation();<NEW_LINE>if ...
Perspective.getCanvasTilePoly(client, lp);
1,119,897
public void addJarsForSourceTarget(WorkspaceLanguageSettings workspaceLanguageSettings, ProjectViewSet projectViewSet, TargetIdeInfo target, Collection<BlazeJarLibrary> jars, Collection<BlazeJarLibrary> genJars) {<NEW_LINE>if (!workspaceLanguageSettings.isLanguageActive(LanguageClass.KOTLIN) || !target.getKind().hasLan...
JavaIdeInfo javaInfo = target.getJavaIdeInfo();
1,773,054
public static ListDigitalTemplatesResponse unmarshall(ListDigitalTemplatesResponse listDigitalTemplatesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDigitalTemplatesResponse.setRequestId<MASK><NEW_LINE>listDigitalTemplatesResponse.setErrorCode(_ctx.stringValue("ListDigitalTemplatesResponse.ErrorCode"));<NEW_LINE>l...
(_ctx.stringValue("ListDigitalTemplatesResponse.RequestId"));
600,920
public static void onLoadStyle(Context c, TextStyle textStyle) {<NEW_LINE>final Resources.Theme theme = c.getTheme();<NEW_LINE>// check first if provided attributes contain textAppearance. As an analogy to TextView<NEW_LINE>// behavior,<NEW_LINE>// we will parse textAppearance attributes first and then will override le...
styleable.Text_RenderCoreTextAppearanceAttr, 0, 0);
1,202,329
public void processBindingConfiguration(String context, Item item, String bindingConfig) throws BindingConfigParseException {<NEW_LINE>super.processBindingConfiguration(context, item, bindingConfig);<NEW_LINE>TellstickBindingConfig config = new TellstickBindingConfig();<NEW_LINE>config.<MASK><NEW_LINE>String[] configPa...
setItemName(item.getName());
1,628,353
// Initialize the Nodes of the Segment tree<NEW_LINE>private void build(int index, int from, int size) {<NEW_LINE>heap[index] = new Node();<NEW_LINE>heap[index].from = from;<NEW_LINE>heap[index].to = from + size - 1;<NEW_LINE>if (size == 1) {<NEW_LINE>heap[index<MASK><NEW_LINE>heap[index].min = array[from];<NEW_LINE>} ...
].sum = array[from];
392,207
static MethodSpec generateAcceptTriggerEventImpl(SpecModel specModel) {<NEW_LINE>final MethodSpec.Builder methodBuilder = MethodSpec.methodBuilder("acceptTriggerEventImpl").addModifiers(Modifier.PROTECTED).addAnnotation(Override.class).returns(TypeName.OBJECT).addParameter(ParameterSpec.builder(EVENT_TRIGGER, "eventTri...
name, eventTriggerParams.build());
1,029,519
public void error(String s) {<NEW_LINE>if (len <= 1) {<NEW_LINE>addNormalError(s);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Data pre = data[len - 2];<NEW_LINE>if (pre.errorType == ErrorType.LOG) {<NEW_LINE>addNormalError(s);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (s.equals(pre.getSB()) && pre.errorType == ErrorType.ERROR_...
adapter.notifyItemChanged(len - 2);
446,317
public Void call() throws Exception {<NEW_LINE>final <MASK><NEW_LINE>if (_pingSessionIfBackupWasSkipped) {<NEW_LINE>if (backupResult.getStatus() == BackupResultStatus.SKIPPED) {<NEW_LINE>pingSession(_session, _backupSessionService);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (_storeSecondaryBackup) {<NEW_LINE>try {<NEW_LINE>if ...
BackupResult backupResult = _result.get();
156,105
// to implement dijkstra algorithm by finding the shortest distance<NEW_LINE>void dijkstra(int[][] graph, int src) {<NEW_LINE>// This will have the shortest distance<NEW_LINE>int[] dist = new int[Ver];<NEW_LINE>// sptSet[i] will true if vertex i is included in shortest<NEW_LINE>Boolean[] sptSet = new Boolean[Ver];<NEW_...
u = minDistance(dist, sptSet);
297,693
// begin F196678.10<NEW_LINE>private int determineHeartbeatInterval(Map properties) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "determineHeartbeatInterval", properties);<NEW_LINE>// How often should we heartbeat?<NEW_LINE>int heartbeatInterval = JFapChanne...
properties.get(JFapChannelConstants.CHANNEL_CONFIG_HEARTBEAT_INTERVAL_PROPERTY);
1,433,714
private boolean isXSDValid(String filename) {<NEW_LINE>// 1. Lookup a factory for the W3C XML Schema language<NEW_LINE>SchemaFactory factory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");<NEW_LINE>// 2. Compile the schema.<NEW_LINE>// Here the schema is loaded from a java.io.File, but you could use<NE...
println(ex.getMessage());
1,272,512
public void onBindViewHolder(@NonNull ViewHolder viewHolder, int position) {<NEW_LINE>final Room searchResult = getItem(position);<NEW_LINE>viewHolder.binding.name.setText(searchResult.getName());<NEW_LINE>final String description = searchResult.getDescription();<NEW_LINE>final String language = searchResult.getLanguag...
.toUpperCase(Locale.ENGLISH));
1,358,081
public void processElement(ProcessContext c) throws Exception {<NEW_LINE>ReadableFile file = c.element();<NEW_LINE>InputStream stream = Channels.newInputStream(file.open());<NEW_LINE>try (InputStream tikaStream = TikaInputStream.get(stream)) {<NEW_LINE>Parser parser = tikaConfig == null ? new AutoDetectParser() : new A...
set(Parser.class, parser);
616,337
public void indexDocumentsWithResponse() {<NEW_LINE>// BEGIN: com.azure.search.documents.SearchClient.indexDocumentsWithResponse#IndexDocumentsBatch-IndexDocumentsOptions-Context<NEW_LINE>SearchDocument searchDocument1 = new SearchDocument();<NEW_LINE>searchDocument1.put("hotelId", "1");<NEW_LINE>searchDocument1.put("h...
), indexingResult.isSucceeded());
1,290,601
public void valueChanged(ListSelectionEvent e) {<NEW_LINE>clearSelection();<NEW_LINE>updateVersionsCombo(null);<NEW_LINE>updateExtensionsCombo();<NEW_LINE>final int ind = myRefs.getSelectedIndex();<NEW_LINE>final PsiElement element = getPsiElement();<NEW_LINE>if (ind > -1 && element != null) {<NEW_LINE>final PsiReferen...
int start = range.getStartOffset();
123,542
public void marshall(JoinDomainRequest joinDomainRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (joinDomainRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(joinDomainRequest.getGatewayARN()...
joinDomainRequest.getUserName(), USERNAME_BINDING);
1,188,766
/*<NEW_LINE>public static byte[] concatenateSegmentedMessages(final SparseArray<byte[]> segmentedMessages) {<NEW_LINE><MASK><NEW_LINE>final ByteBuffer completeBuffer = ByteBuffer.allocate(length);<NEW_LINE>completeBuffer.order(ByteOrder.BIG_ENDIAN);<NEW_LINE>for (int i = 0; i < segmentedMessages.size(); i++) {<NEW_LINE...
final int length = getSegmentedMessageLength(segmentedMessages);
73,053
// @since 2.9<NEW_LINE>protected SettableBeanProperty _resolveMergeAndNullSettings(DeserializationContext ctxt, SettableBeanProperty prop, PropertyMetadata propMetadata) throws JsonMappingException {<NEW_LINE>PropertyMetadata.MergeInfo merge = propMetadata.getMergeInfo();<NEW_LINE>// First mergeability<NEW_LINE>if (mer...
MergingSettableBeanProperty.construct(prop, accessor);
265,429
protected void onPrepareDialog(int id, final Dialog dialog) {<NEW_LINE>if (id == DIALOG_ENTER_COORDINATES) {<NEW_LINE>IMapViewPosition currentPosition = SamplesBaseActivity.this.mapView.getModel().mapViewPosition;<NEW_LINE>LatLong currentCenter = currentPosition.getCenter();<NEW_LINE>EditText editText = (EditText) dial...
findViewById(R.id.longitude);
937,358
private void bondAction(JSONArray args, CallbackContext callbackContext) {<NEW_LINE>if (!isBondReceiverRegistered) {<NEW_LINE>cordova.getActivity().registerReceiver(mBondReceiver, new IntentFilter(BluetoothDevice.ACTION_BOND_STATE_CHANGED));<NEW_LINE>isBondReceiverRegistered = true;<NEW_LINE>}<NEW_LINE>if (isNotInitial...
addProperty(returnObj, keyMessage, logBonding);
797,131
protected void validateFieldDeclarationsForEmail(org.flowable.bpmn.model.Process process, TaskWithFieldExtensions task, List<FieldExtension> fieldExtensions, List<ValidationError> errors) {<NEW_LINE>boolean recipientDefined = false;<NEW_LINE>boolean textOrHtmlDefined = false;<NEW_LINE>for (FieldExtension fieldExtension...
MAIL_TASK_NO_RECIPIENT, process, task, "No recipient is defined on the mail activity");
1,323,837
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String vmmServerName, Boolean force, 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 null...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
361,589
public Visualization makeVisualization(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj) {<NEW_LINE>CSSClass cls = new CSSClass(plot, "unmanaged");<NEW_LINE>StyleLibrary style = context.getStyleLibrary();<NEW_LINE>double fontsize = style.getTextSize...
layer, SVGConstants.SVG_TRANSFORM_ATTRIBUTE, "rotate(-90)");
1,017,658
public void writeTo(WebApplicationInfo webappInfo, JsonGenerator gen, String keycloakClientID) {<NEW_LINE><MASK><NEW_LINE>gen.writeStartObject();<NEW_LINE>writer.writeNotNullOrDef("dicomDeviceName", webappInfo.getDeviceName(), null);<NEW_LINE>writer.writeNotNullOrDef("dcmWebAppName", webappInfo.getApplicationName(), nu...
JsonWriter writer = new JsonWriter(gen);
614,828
final EnableAlarmActionsResult executeEnableAlarmActions(EnableAlarmActionsRequest enableAlarmActionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableAlarmActionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
623,371
public static DescribeVnNavigationConfigResponse unmarshall(DescribeVnNavigationConfigResponse describeVnNavigationConfigResponse, UnmarshallerContext context) {<NEW_LINE>describeVnNavigationConfigResponse.setRequestId(context.stringValue("DescribeVnNavigationConfigResponse.RequestId"));<NEW_LINE>GreetingConfig greetin...
("DescribeVnNavigationConfigResponse.RepeatingConfig.Utterances[" + i + "]"));
991,267
public void updateRecord(final I_C_OrderLine record, final Dimension from) {<NEW_LINE>record.setC_Project_ID(ProjectId.toRepoId(from.getProjectId()));<NEW_LINE>record.<MASK><NEW_LINE>record.setC_Activity_ID(ActivityId.toRepoId(from.getActivityId()));<NEW_LINE>record.setUserElementString1(from.getUserElementString1());<...
setC_Campaign_ID(from.getCampaignId());
1,840,453
private static void assertConsistencyRecursive(EventType eventType, Set<EventType> alreadySeenTypes) {<NEW_LINE>if (alreadySeenTypes.contains(eventType)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>alreadySeenTypes.add(eventType);<NEW_LINE>assertConsistencyProperties(eventType);<NEW_LINE>// test fragments<NEW_LINE>for (Even...
(descriptor.getPropertyName()));
665,183
public CompletionStage<Object> resolve(EvalContext context) {<NEW_LINE>JsonObject jsonObject = <MASK><NEW_LINE>switch(context.getName()) {<NEW_LINE>case "fieldNames":<NEW_LINE>case "fields":<NEW_LINE>return CompletableFuture.completedFuture(jsonObject.fieldNames());<NEW_LINE>case "size":<NEW_LINE>return CompletableFutu...
(JsonObject) context.getBase();
259,286
public Object visitMemberSelect(MemberSelectTree node, Object p) {<NEW_LINE>String exp = node<MASK><NEW_LINE>// ClassName.this<NEW_LINE>if (exp.equals("this") || exp.endsWith(".this")) {<NEW_LINE>// NOI18N<NEW_LINE>addInstanceForType(findType(node.getExpression()));<NEW_LINE>} else if (exp.equals("super")) {<NEW_LINE>/...
.getExpression().toString();
295,143
private Rect calculateCollapsedTextBounds(@NonNull Rect rect) {<NEW_LINE>if (editText == null) {<NEW_LINE>throw new IllegalStateException();<NEW_LINE>}<NEW_LINE>Rect bounds = tmpBoundsRect;<NEW_LINE>boolean isRtl = ViewUtils.isLayoutRtl(this);<NEW_LINE>bounds.bottom = rect.bottom;<NEW_LINE>switch(boxBackgroundMode) {<N...
= rect.top - calculateLabelMarginTop();
1,119,400
public String addCustomerAddress(HttpServletRequest request, Model model, CustomerAddressForm form, BindingResult result, RedirectAttributes redirectAttributes) throws ServiceException {<NEW_LINE>addressService.populateAddressISOCountrySub(form.getAddress());<NEW_LINE>customerAddressValidator.validate(form, result);<NE...
model.addAttribute("addresses", addresses);
1,087,358
public AutoScaleVmGroup updateAutoScaleVmGroup(UpdateAutoScaleVmGroupCmd cmd) {<NEW_LINE>Long vmGroupId = cmd.getId();<NEW_LINE>Integer minMembers = cmd.getMinMembers();<NEW_LINE>Integer maxMembers = cmd.getMaxMembers();<NEW_LINE>Integer interval = cmd.getInterval();<NEW_LINE>Boolean forDisplay = cmd.getDisplay();<NEW_...
maxMembers != null || interval != null);
1,255,726
protected boolean rollover() {<NEW_LINE>final boolean doRollover = rolloverInit();<NEW_LINE>mHitTestIndex = -1;<NEW_LINE>mHitItem = null;<NEW_LINE>boolean retVal = false;<NEW_LINE>if (doRollover) {<NEW_LINE>mAngle = PApplet.atan2(mY, mX) + PApplet.radians(mRad);<NEW_LINE>if (mAngle < 0) {<NEW_LINE>mAngle = PApplet.map(...
(getInitialRadius(), 2));
1,112,379
/* Display the game instructions */<NEW_LINE>private void instructions() {<NEW_LINE>String[] instLines = new String[] { "THIS IS THE BETTING LAYOUT", " (*=RED)", "", " 1* 2 3*", " 4 5* 6 ", " 7* 8 9*", "10 11 12*", "---------------", "13 14* 15 ", "16* 17 18*", "19* 20 21*", "...
.join("\n", instLines));
98,596
public void flush(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) throws IOException {<NEW_LINE>final int valueCount = hash.size();<NEW_LINE>if (finalOrds == null) {<NEW_LINE>updateBytesUsed();<NEW_LINE>finalSortedValues = hash.sort();<NEW_LINE>finalOrds = pending.build();<NEW_LINE>finalOr...
, docsWithField.iterator()));
414,425
protected void channelRead0(@NotNull final ChannelHandlerContext ctx, @NotNull final CONNECT connect) throws Exception {<NEW_LINE>adjustValuesAccordingToSettings(connect);<NEW_LINE>if (!checkClientId(ctx, connect)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!checkWillPublish(ctx, connect)) {<NEW_LINE>return;<NEW_LINE>}...
ChannelAttributes.CLIENT_CONNECTION).get();
1,451,654
private void updateNodeRepoWithCurrentAttributes(NodeAgentContext context, Optional<Instant> containerCreatedAt) {<NEW_LINE>final NodeAttributes currentNodeAttributes = new NodeAttributes();<NEW_LINE>final NodeAttributes newNodeAttributes = new NodeAttributes();<NEW_LINE>boolean changed = false;<NEW_LINE>if (context.no...
withVespaVersion(currentImage.tagAsVersion());
1,613,233
public void timeBagOfPrimitivesReflectionStreaming(int reps) throws Exception {<NEW_LINE>for (int i = 0; i < reps; ++i) {<NEW_LINE>StringReader reader = new StringReader(json);<NEW_LINE>JsonReader jr = new JsonReader(reader);<NEW_LINE>jr.beginObject();<NEW_LINE>BagOfPrimitives bag = new BagOfPrimitives();<NEW_LINE>whil...
String name = jr.nextName();
658,407
private void updateInsetMapLineLayerBounds(@NonNull Style fullyLoadedStyle) {<NEW_LINE>GeoJsonSource lineLayerSource = fullyLoadedStyle.getSourceAs(BOUNDS_LINE_LAYER_SOURCE_ID);<NEW_LINE>if (lineLayerSource != null) {<NEW_LINE>LatLngBounds bounds = mainMapboxMap.getProjection().getVisibleRegion().latLngBounds;<NEW_LINE...
pointList = new ArrayList<>();
1,641,897
public boolean refreshActivity() {<NEW_LINE>// activity sometimes get stuck and burns though data... I have not been able to find out why.<NEW_LINE>// So, lets kill the process if it takes longer than 45 seconds<NEW_LINE>Thread killer = new Thread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run()...
twitter = Utils.getSecondTwitter(context);
302,041
protected String formatConsentUrl(final UUID definitionId, final String clientId, final String redirectUrl, final JsonNode inputOAuthConfiguration) throws IOException {<NEW_LINE>// getting subdomain value from user's config<NEW_LINE>final String subdomain = getConfigValueUnsafe(inputOAuthConfiguration, "subdomain");<NE...
addParameter("state", getState());
927,961
public Collection<DeploymentTarget> execute(MBeanServerConnection connection) throws Exception {<NEW_LINE>List<DeploymentTarget> result = new ArrayList<>();<NEW_LINE>ObjectName service = new // NOI18N<NEW_LINE>ObjectName(// NOI18N<NEW_LINE>"com.bea:Name=DomainRuntimeService," + "Type=weblogic.management.mbeanservers.do...
connection.getAttribute(service, "DomainPending");
383,396
public static Container decompress(byte[] b, int[] keys) throws IOException {<NEW_LINE>InputStream stream = new InputStream(b);<NEW_LINE>int compression = stream.readUnsignedByte();<NEW_LINE>int compressedLength = stream.readInt();<NEW_LINE>if (compressedLength < 0 || compressedLength > 1000000) {<NEW_LINE>throw new Ru...
] encryptedData = new byte[compressedLength];
1,737,963
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>log.info("Get from " + request.getRemoteHost() + " - " + request.getRemoteAddr());<NEW_LINE>Properties ctx = JSPEnv.getCtx(request);<NEW_LINE>HttpSession session = request.getSession(false);<NEW_L...
session.getAttribute(WebInfo.NAME);
960,246
private List<PageElement> selectPageTemplates(Query query) {<NEW_LINE>// Determine the list of page template ids<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>List<String> pageIds = (List<String>) query.properties().get(pageIdListName);<NEW_LINE>if (pageIds == null) {<NEW_LINE>String pageIdString = query.properties(...
(pageIdString.split(" "));
733,748
// -----------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public void validate(ReadablePartial partial, int[] values) {<NEW_LINE>// check values in standard range, catching really stupid cases like -1<NEW_LINE>// this means that the second check will not hit trouble<NEW_LINE...
getMaximumValue(partial, values)));
115,484
private void updateChannelFavoritesList(List<Favorite> favorites) {<NEW_LINE>final Channel channel = getThing().getChannel(CHANNEL_FAVORITES_LIST);<NEW_LINE>if (channel == null) {<NEW_LINE>logger.debug("Channel {} doesn't exist. Delete & add thing to get channel.", CHANNEL_FAVORITES_LIST);<NEW_LINE>return;<NEW_LINE>}<N...
getConfiguration().get(CHANNEL_CONFIG_QUOTE_LIST);
1,652,503
public UpdateTopicRuleDestinationResult updateTopicRuleDestination(UpdateTopicRuleDestinationRequest updateTopicRuleDestinationRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateTopicRuleDestinationRequest);<NEW_LINE>AWSRequestMetric...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
10,789
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>// Create New Session<NEW_LINE>HttpSession sess = request.getSession(true);<NEW_LINE>sess.setMaxInactiveInterval(WebEnv.TIMEOUT);<NEW_LINE>StringBuffer output = new StringBuffer();<NEW_LINE>if (co...
print("<H1>Fatal Error:" + ErrorMessage + "</H1>");
109,851
final ModifyListenerResult executeModifyListener(ModifyListenerRequest modifyListenerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyListenerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
(super.beforeMarshalling(modifyListenerRequest));
228,346
private HttpRequest.Builder testBodyWithQueryParamsRequestBuilder(String query, User body) throws ApiException {<NEW_LINE>// verify the required parameter 'query' is set<NEW_LINE>if (query == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams");<NEW...
localVarQueryParams = new ArrayList<>();
745,529
public void paintEntity(Graphics g) {<NEW_LINE>super.paintEntity(g);<NEW_LINE>float zoom = HandlerElementMap.getHandlerForElement(this).getZoomFactor();<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>int w = getRectangle().width;<NEW_LINE><MASK><NEW_LINE>// draw substate sign<NEW_LINE>g2.drawRoundRect(w - (int) (65 ...
int h = getRectangle().height;
471,905
public Mono<Response<Flux<ByteBuffer>>> createOrUpdateByIdWithResponseAsync(String resourceId, String apiVersion, GenericResourceInner parameters) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be nu...
error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));