idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,799,542 | private URI calculateNewRequestURI(URI newBaseURI, URI requestURI, boolean proxy) {<NEW_LINE>String baseURIPath = newBaseURI.getRawPath();<NEW_LINE>String reqURIPath = requestURI.getRawPath();<NEW_LINE>UriBuilder builder = new UriBuilderImpl().uri(newBaseURI);<NEW_LINE>String basePath = reqURIPath.startsWith(baseURIPat... | URI current = proxy ? newBaseURI : newRequestURI; |
214,546 | public String WSTXLPS011FVT() {<NEW_LINE>System.out.println("========== LPS Disabled WSTXLPS011FVT start ==========");<NEW_LINE>XAResourceImpl.clear();<NEW_LINE>final ExtendedTransactionManager TM = TransactionManagerFactory.getTransactionManager();<NEW_LINE>boolean result1 = false, result2 = false, result3 = false, re... | instance().getXAResourceImpl(xaResInfo2); |
1,455,866 | private BinInfo findBin(double x) {<NEW_LINE>BinInfo bin = new BinInfo();<NEW_LINE>bin.isInRange = false;<NEW_LINE>bin.isUnderflow = false;<NEW_LINE>bin.isOverflow = false;<NEW_LINE>// first check if x is outside the range of the normal histogram bins<NEW_LINE>if (x < m_min) {<NEW_LINE>bin.isUnderflow = true;<NEW_LINE>... | double binWidth = this.getBandWidth(); |
485,717 | public void marshall(UpdatePatchBaselineRequest updatePatchBaselineRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updatePatchBaselineRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(update... | updatePatchBaselineRequest.getApprovedPatchesComplianceLevel(), APPROVEDPATCHESCOMPLIANCELEVEL_BINDING); |
654,650 | private Dialog createDialog(final FileSearchPanel panel) {<NEW_LINE>openBtn = new JButton();<NEW_LINE>Mnemonics.setLocalizedText(openBtn, NbBundle.getMessage(FileSearchAction.class, "CTL_Open"));<NEW_LINE>openBtn.getAccessibleContext().setAccessibleDescription(openBtn.getText());<NEW_LINE>openBtn.setEnabled(false);<NEW... | (FileSearchAction.class, "AD_FileSearchDialog")); |
1,697,738 | public void loadPaySelectInfo(int paySelectionId) {<NEW_LINE>// load Banks from PaySelectLine<NEW_LINE>bankAccountId = -1;<NEW_LINE>// 1..2<NEW_LINE>String // 1..2<NEW_LINE>sql = // 3..5<NEW_LINE>"SELECT ps.C_BankAccount_ID, (b.Name || ' ' || ba.AccountNo) AS BankName," + " c.ISO_Code, CurrentBalance, dt.IsPayrollPayme... | DB.prepareStatement(sql, null); |
1,760,863 | public static final void applyInferencing(Model geosparqlSchema, Dataset dataset) {<NEW_LINE>LOGGER.info("Applying GeoSPARQL Schema - Started");<NEW_LINE>try {<NEW_LINE>// Default Model<NEW_LINE>dataset.begin(ReadWrite.WRITE);<NEW_LINE><MASK><NEW_LINE>applyInferencing(geosparqlSchema, defaultModel, "default");<NEW_LINE... | Model defaultModel = dataset.getDefaultModel(); |
297,913 | private static void fillVariantsByReference(@Nullable PsiReference reference, @NotNull PsiFile file, @NotNull CompletionResultSet result) {<NEW_LINE>if (reference == null)<NEW_LINE>return;<NEW_LINE>if (reference instanceof PsiMultiReference) {<NEW_LINE>PsiReference[] references = ((PsiMultiReference) reference).getRefe... | instanceof GoVarDefinition || e instanceof GoConstDefinition)); |
1,192,197 | public Pair<List<? extends VpnUser>, Integer> searchForVpnUsers(ListVpnUsersCmd cmd) {<NEW_LINE>String username = cmd.getUsername();<NEW_LINE>Long id = cmd.getId();<NEW_LINE>String keyword = cmd.getKeyword();<NEW_LINE>Account caller = CallContext<MASK><NEW_LINE>List<Long> permittedAccounts = new ArrayList<>();<NEW_LINE... | .current().getCallingAccount(); |
504,521 | private List<ESRTransaction> iterateTransactionDetails(@NonNull final ReportEntry2 ntry, @NonNull final EntryDetails1 ntryDtl) {<NEW_LINE>final List<ESRTransaction> transactions = new ArrayList<>();<NEW_LINE>int countQRR = 0;<NEW_LINE>for (final EntryTransaction2 txDtl : ntryDtl.getTxDtls()) {<NEW_LINE>final <MASK><NEW... | ESRTransactionBuilder trxBuilder = ESRTransaction.builder(); |
342,161 | private void validateType(TypeElement type) {<NEW_LINE><MASK><NEW_LINE>boolean kindOk = kind.equals(ElementKind.CLASS) || (appliesToInterfaces && kind.equals(ElementKind.INTERFACE));<NEW_LINE>if (!kindOk) {<NEW_LINE>String appliesTo = appliesToInterfaces ? "classes and interfaces" : "classes";<NEW_LINE>errorReporter.ab... | ElementKind kind = type.getKind(); |
1,483,988 | public static void main(String[] args) {<NEW_LINE>log.info("Starting DragonProxy...");<NEW_LINE>// Check the java version<NEW_LINE>if (Float.parseFloat(System.getProperty("java.class.version")) < 52.0) {<NEW_LINE>log.error("DragonProxy requires Java 8! Current version: " + System.getProperty("java.version"));<NEW_LINE>... | "bedrockPort", "Overrides the bedrock UDP bind port").withRequiredArg(); |
378,537 | public static void migrateDownloads(Properties ctx) {<NEW_LINE>String sql = "SELECT COUNT(*) FROM M_ProductDownload";<NEW_LINE>int no = DB.getSQLValue(null, sql);<NEW_LINE>if (no > 0)<NEW_LINE>return;<NEW_LINE>//<NEW_LINE>int count = 0;<NEW_LINE>sql = "SELECT AD_Client_ID, AD_Org_ID, M_Product_ID, Name, DownloadURL " +... | M_Product_ID = rs.getInt(3); |
838,420 | public void paste(final ID sender) {<NEW_LINE>if (pasteboard.isEmpty()) {<NEW_LINE>NSPasteboard pboard = NSPasteboard.generalPasteboard();<NEW_LINE>this.upload(pboard);<NEW_LINE>} else {<NEW_LINE>final Map<Path, Path> <MASK><NEW_LINE>final Path parent = workdir;<NEW_LINE>for (final Path next : pasteboard) {<NEW_LINE>Pa... | files = new HashMap<>(); |
1,803,930 | private static String memoryToString(final Memory srcMem, final boolean isDoublesSketch) {<NEW_LINE>// either 1 or 2<NEW_LINE>final int preLongs = extractPreLongs(srcMem);<NEW_LINE>final int serVer = extractSerVer(srcMem);<NEW_LINE>final int familyID = extractFamilyID(srcMem);<NEW_LINE>final String famName = idToFamily... | = (flags & BIG_ENDIAN_FLAG_MASK) > 0; |
1,570,854 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.ws.sib.admin.JsEngineComponent#start(int)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void start(int mode) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "start, mode ", mode);<NEW_LINE>// _eventNotif... | CLASS_NAME + ".start", "626", this); |
418,974 | final ModifyDBClusterParameterGroupResult executeModifyDBClusterParameterGroup(ModifyDBClusterParameterGroupRequest modifyDBClusterParameterGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyDBClusterParameterGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ModifyDBClusterParameterGroup"); |
1,083,050 | /* Build call for throttlingPoliciesCustomGet */<NEW_LINE>private com.squareup.okhttp.Call throttlingPoliciesCustomGetCall(String accept, String ifNoneMatch, String ifModifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) t... | HashMap<String, Object>(); |
1,705,199 | public static serverObjects respond(final RequestHeader requestHeader, final serverObjects post, final serverSwitch env) {<NEW_LINE><MASK><NEW_LINE>final Switchboard sb = (Switchboard) env;<NEW_LINE>// the url of remote page currently viewed<NEW_LINE>String proxyurlstr = post.get("url", "");<NEW_LINE>boolean hasRights ... | final serverObjects prop = new serverObjects(); |
1,642,383 | public DataBuffer relocateConstantSpace(DataBuffer dataBuffer) {<NEW_LINE>// we always assume that data is sync, and valid on host side<NEW_LINE>Integer deviceId = AtomicAllocator.getInstance().getDeviceId();<NEW_LINE>ensureMaps(deviceId);<NEW_LINE>if (dataBuffer instanceof CudaIntDataBuffer) {<NEW_LINE>int[] data = da... | getConstantBuffer(data, DataType.INT); |
1,579,036 | protected JComponent createNorthPanel() {<NEW_LINE>JPanel panel = new JPanel(new GridBagLayout());<NEW_LINE>GridBagConstraints gbConstraints = new GridBagConstraints();<NEW_LINE>gbConstraints.insets = JBUI.insets(4);<NEW_LINE>gbConstraints.anchor = GridBagConstraints.EAST;<NEW_LINE>gbConstraints.fill = GridBagConstrain... | 200, dimension.getHeight()); |
486,174 | private void handleActionMoveWhileDragging(RecyclerView rv, MotionEvent e) {<NEW_LINE>mLastTouchX = (int) (e.getX() + 0.5f);<NEW_LINE>mLastTouchY = (int) (e.getY() + 0.5f);<NEW_LINE>mNestedScrollViewScrollX = (mNestedScrollView != null) ? mNestedScrollView.getScrollX() : 0;<NEW_LINE>mNestedScrollViewScrollY = (mNestedS... | Math.max(mDragMaxTouchY, mLastTouchY); |
553,749 | private Task<List<SmartReplySuggestion>> generateReplies(List<Message> messages, boolean isEmulatingRemoteUser) {<NEW_LINE>Message lastMessage = Iterables.getLast(messages);<NEW_LINE>// If the last message in the chat thread is not sent by the "other" user, don't generate<NEW_LINE>// smart replies.<NEW_LINE>if (lastMes... | .text, message.timestamp)); |
870,024 | @ScalarFunction<NEW_LINE>@LiteralParameters({ "x", "y" })<NEW_LINE>@SqlType("varchar(x)")<NEW_LINE>public static Slice urlExtractParameter(@SqlType("varchar(x)") Slice url, @SqlType("varchar(y)") Slice parameterName) {<NEW_LINE>URI uri = parseUrl(url);<NEW_LINE>if ((uri == null) || (uri.getRawQuery() == null)) {<NEW_LI... | decodeUrl(arg.next()); |
806,272 | public static Map<CurrencyPair, Fee> adaptDynamicTradingFees(BitfinexTradingFeeResponse[] responses, List<CurrencyPair> currencyPairs) {<NEW_LINE>Map<CurrencyPair, Fee> result = new HashMap<>();<NEW_LINE>for (BitfinexTradingFeeResponse response : responses) {<NEW_LINE>BitfinexTradingFeeResponse.BitfinexTradingFeeRespon... | .ONE.scaleByPowerOfTen(2)); |
446,731 | private void generateRelationshipMapperFile(org.odpi.openmetadata.fvt.opentypes.model.OmrsBeanRelationship omrsBeanRelationship, String fileName) throws IOException {<NEW_LINE>FileWriter outputFileWriter = null;<NEW_LINE>BufferedReader reader = null;<NEW_LINE>try {<NEW_LINE>outputFileWriter = new FileWriter(fileName);<... | replacementMap = new HashMap<>(); |
1,340,482 | private void processECR() {<NEW_LINE>// Get Requests with Request Type-AutoChangeRequest and Group with info<NEW_LINE>resetCounter();<NEW_LINE>StringBuffer whereClause = new StringBuffer("M_ChangeRequest_ID IS NULL" + " AND EXISTS(" + "SELECT 1 FROM R_RequestType rt " + "WHERE rt.R_RequestType_ID = R_Request.R_RequestT... | setM_ChangeRequest_ID(changeRequest.getM_ChangeRequest_ID()); |
566,759 | protected List<IntelHexRecord> dumpMemory(Program program, Memory memory, AddressSetView addrSetView, TaskMonitor monitor) throws MemoryAccessException {<NEW_LINE>int size = (int) recordSizeOption.getValue();<NEW_LINE>boolean dropBytes = recordSizeOption.dropExtraBytes();<NEW_LINE>IntelHexRecordWriter writer = new Inte... | Address address = entryPointIterator.next(); |
1,636,310 | protected Future<Void> onExecute(SQLRequest<SQLCreateIndexStatement> request, MycatDataContext dataContext, Response response) {<NEW_LINE>LockService lockService = MetaClusterCurrent.wrapper(LockService.class);<NEW_LINE>return lockService.lock(DDL_LOCK, () -> {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>SQLExprTableSource... | SQLCreateIndexStatement sqlCreateIndexStatement = request.getAst(); |
734,798 | public void initPlugin() {<NEW_LINE>// init rate controller<NEW_LINE>MetricUploader.rateController.init(nimbusData.getConf());<NEW_LINE>String metricUploadClass = ConfigExtension.getMetricUploaderClass(nimbusData.getConf());<NEW_LINE>if (StringUtils.isBlank(metricUploadClass)) {<NEW_LINE>metricUploadClass = DefaultMetr... | classes = metricUploadClass.split(","); |
1,654,497 | public void onResume() {<NEW_LINE>// hook up to receive completion events<NEW_LINE>backgroundTasks.formSyncTask.setDiskSyncListener(this);<NEW_LINE>if (backgroundTasks.deleteFormsTask != null) {<NEW_LINE>backgroundTasks.deleteFormsTask.setDeleteListener(this);<NEW_LINE>}<NEW_LINE>super.onResume();<NEW_LINE>// async tas... | backgroundTasks.deleteFormsTask.getDeleteCount()); |
1,204,818 | // computes the cross rate<NEW_LINE>private static FxRate computeCross(FxRate fx1, FxRate fx2, CurrencyPair crossPairAC) {<NEW_LINE>// aim is to convert AAA/BBB and BBB/CCC to AAA/CCC<NEW_LINE>Currency currA = crossPairAC.getBase();<NEW_LINE>Currency currC = crossPairAC.getCounter();<NEW_LINE>// given the conventional ... | FxRate fxABorBA = crossBaseCurrencyInFx1 ? fx1 : fx2; |
879,045 | private static void fillRwadefOperation(Operation swaggerOperation, Resource resource, Contract contract, String methodName, List<String> produces, List<String> consumes, Map<String, Object> parameters) {<NEW_LINE>if (swaggerOperation == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>org.restlet.ext.platform.internal.mod... | getOperations().add(operation); |
1,286,454 | private void insertSelectedIncludedRecords(final PInstanceId pinstanceId, final Set<TableRecordReference> recordRefs) {<NEW_LINE>if (recordRefs.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>final ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>pstmt = DB.<MASK><NEW_LINE>int nex... | prepareStatement(SQL_InsertInto_AD_PInstance_SelectedIncludedRecords, ITrx.TRXNAME_ThreadInherited); |
412,941 | private void unsafeRegisterConfChange(final Configuration oldConf, final Configuration newConf, final Closure done) {<NEW_LINE>Requires.requireTrue(newConf.isValid(), "Invalid new conf: %s", newConf);<NEW_LINE>// The new conf entry(will be stored in log manager) should be valid<NEW_LINE>Requires.requireTrue(new Configu... | start(oldConf, newConf, done); |
1,806,109 | private void parseRequestData(IncomingWss incomingRequestWss) {<NEW_LINE>ByteArrayInputStream in = request == null ? new ByteArrayInputStream(new byte[0<MASK><NEW_LINE>try {<NEW_LINE>requestContentType = requestHeaders.get("Content-Type", "");<NEW_LINE>if (requestContentType != null && requestContentType.toUpperCase().... | ]) : new ByteArrayInputStream(request); |
552,888 | public boolean intersectsBox(BoundingBox box, TempVars vars) {<NEW_LINE>Vector3f axis1 = getScaledAxis(0, vars.vect1);<NEW_LINE>Vector3f axis2 = getScaledAxis(1, vars.vect2);<NEW_LINE>Vector3f axis3 = getScaledAxis(2, vars.vect3);<NEW_LINE>Vector3f tn = vars.vect4;<NEW_LINE>Plane p = vars.plane;<NEW_LINE>Vector3f c = b... | + box.getYExtent())); |
380,190 | public void save(Message message) {<NEW_LINE>// Save message to "messages"<NEW_LINE>Datastore datastore = getDatastoreInstance();<NEW_LINE>Key key = datastore.allocateId(keyFactory.newKey());<NEW_LINE>Entity.Builder messageEntityBuilder = Entity.newBuilder(key).set("messageId", message.getMessageId());<NEW_LINE>String ... | "targetLang", message.getTargetLang()); |
1,460,479 | public CompletableFuture<MessagingService> start() {<NEW_LINE>if (started.get()) {<NEW_LINE>log.warn("Already running at local address: {}", advertisedAddress);<NEW_LINE>return CompletableFuture.completedFuture(this);<NEW_LINE>}<NEW_LINE>final CompletableFuture<Void> serviceLoader;<NEW_LINE>if (config.isTlsEnabled()) {... | ).thenApply(v -> this); |
1,284,640 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player targetPlayer = game.getPlayer(getTargetPointer().getFirst(game, source));<NEW_LINE>String cardName = (String) game.getState().getValue(source.getSourceId().<MASK><NEW_LINE>if (targetPlayer == null || cardName == null || cardName.isEmpty()) {<NEW_LINE>ret... | toString() + ChooseACardNameEffect.INFO_KEY); |
355,447 | public void deleteTenantSettings(UUID tenantId) {<NEW_LINE>long startTimeMillis = System.currentTimeMillis();<NEW_LINE>String parameterStorePath = "/" + SAAS_BOOST_PREFIX + "/" + SAAS_BOOST_ENV + "/tenant/" + tenantId.toString();<NEW_LINE>List<String> parametersToDelete = SettingsService.TENANT_PARAMS.stream().map(s ->... | = System.currentTimeMillis() - startTimeMillis; |
331,980 | public static void main(String[] args) throws Exception {<NEW_LINE>WordprocessingMLPackage wordMLPackage = Docx4J.load(new java.io.File("manyFootnotes.docx"));<NEW_LINE>MainDocumentPart mdp = wordMLPackage.getMainDocumentPart();<NEW_LINE>// Setup FootnotesPart if necessary,<NEW_LINE>// along with DocumentSettings<NEW_L... | System.out.println("No FootnotesPart, so nothing to do. "); |
302,629 | private SAMRecord createSamRecord(final SAMFileHeader header, final String baseName, final FastqRecord frec, final boolean paired) {<NEW_LINE>final SAMRecord srec = new SAMRecord(header);<NEW_LINE>srec.setReadName(baseName);<NEW_LINE>srec.<MASK><NEW_LINE>srec.setReadUnmappedFlag(true);<NEW_LINE>srec.setAttribute(Reserv... | setReadString(frec.getReadString()); |
1,696,645 | final GetMediaForFragmentListResult executeGetMediaForFragmentList(GetMediaForFragmentListRequest getMediaForFragmentListRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMediaForFragmentListRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | .getPayload(), this)); |
1,322,937 | public <T> T run(Operation<T> f) {<NEW_LINE>TaskState retryState = state.nestedState(stateKey);<NEW_LINE>TaskState operationState = retryState.nestedState(OPERATION);<NEW_LINE>T result;<NEW_LINE>try {<NEW_LINE>result = f.perform(operationState);<NEW_LINE>} catch (TaskExecutionException e) {<NEW_LINE>throw e;<NEW_LINE>}... | formattedErrorMessage = errorMessageFunction.apply(e); |
1,075,995 | private static boolean allowInstantRename(CompilationInfo info, Element e, ElementUtilities eu) {<NEW_LINE>if (e.getKind() == ElementKind.FIELD) {<NEW_LINE>VariableElement variableElement = (VariableElement) e;<NEW_LINE>TypeElement typeElement = eu.enclosingTypeElement(e);<NEW_LINE>boolean isProperty = false;<NEW_LINE>... | hasGetter(typeElement, variableElement, codeStyle); |
285,840 | public static void showExceptionDialog(Window parent, Thread t, Throwable e) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("<html>---------- Bug report ----------\n");<NEW_LINE>sb.append('\n');<NEW_LINE>sb.append("<b>Please include a description about what actions you were " + "performing when t... | sb.append("Include your email address (optional; it helps if we can " + "contact you in case we need additional information):\n"); |
1,505,689 | public Map<UUID, ScheduledTaskFuture<?>> scheduleAtFixedRate(Collection<UUID> memberUUIDs, Runnable runnable, long delay, long period, TimeUnit unit) {<NEW_LINE>HashMap<UUID, ScheduledTaskFuture<?>> result = new HashMap<>(2);<NEW_LINE>if (hzCore.isEnabled()) {<NEW_LINE>Collection<Member> toSubmitTo = selectMembers(memb... | (entry.getValue())); |
1,560,981 | public static void signUp(Start start, io.supertokens.pluginInterface.thirdparty.UserInfo userInfo) throws StorageQueryException, StorageTransactionLogicException {<NEW_LINE>start.startTransaction(con -> {<NEW_LINE>Connection sqlCon = (Connection) con.getConnection();<NEW_LINE>try {<NEW_LINE>{<NEW_LINE>String QUERY = "... | setLong(3, userInfo.timeJoined); |
454,106 | protected Future<KafkaUserStatus> createOrUpdate(Reconciliation reconciliation, KafkaUser resource) {<NEW_LINE>KafkaUserModel user;<NEW_LINE>KafkaUserStatus userStatus = new KafkaUserStatus();<NEW_LINE>try {<NEW_LINE>user = KafkaUserModel.fromCrd(resource, config.getSecretPrefix(), config.isAclsAdminApiSupported());<NE... | , Future.failedFuture(e)); |
1,071,799 | static final CompactSketch heapify1to3(final Memory srcMem, final short seedHash) {<NEW_LINE>final int memCap = (int) srcMem.getCapacity();<NEW_LINE>// always 3 for serVer 1<NEW_LINE>final int preLongs = extractPreLongs(srcMem);<NEW_LINE>if (preLongs != 3) {<NEW_LINE>throw new SketchesArgumentException("PreLongs must b... | final int familyId = extractFamilyID(srcMem); |
332,119 | private void loadNode428() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupFolderType_AdditionalGroup_Placeholder_TrustList_Size, new QualifiedName(0, "Size"), new LocalizedText("en", "Size"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataV... | .expanded(), true)); |
1,145,162 | private void updateConfigForCredentialProvider() {<NEW_LINE>String cpPaths = siteConfig.get(Property.GENERAL_SECURITY_CREDENTIAL_PROVIDER_PATHS.getKey());<NEW_LINE>if (cpPaths != null && !Property.GENERAL_SECURITY_CREDENTIAL_PROVIDER_PATHS.getDefaultValue().equals(cpPaths)) {<NEW_LINE>// Already configured<NEW_LINE>ret... | .entrySet().iterator(); |
16,005 | // Uses TCCL<NEW_LINE>@Override<NEW_LINE>public Object load(String batchId) {<NEW_LINE>String methodName = "load";<NEW_LINE>if (logger.isLoggable(Level.FINER)) {<NEW_LINE>logger.entering(<MASK><NEW_LINE>}<NEW_LINE>ClassLoader tccl = Thread.currentThread().getContextClassLoader();<NEW_LINE>if (logger.isLoggable(Level.FI... | CLASSNAME, methodName, "Loading batch artifact id = " + batchId); |
1,289,806 | public static ListBodyDbsResponse unmarshall(ListBodyDbsResponse listBodyDbsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listBodyDbsResponse.setRequestId<MASK><NEW_LINE>listBodyDbsResponse.setCode(_ctx.stringValue("ListBodyDbsResponse.Code"));<NEW_LINE>listBodyDbsResponse.setMessage(_ctx.stringValue("ListBodyDbsRespo... | (_ctx.stringValue("ListBodyDbsResponse.RequestId")); |
762,585 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String automationAccountName, String packageName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArg... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
776,078 | protected void buildErrorPanel() {<NEW_LINE>errorPanel = new JPanel();<NEW_LINE>GroupLayout layout = new GroupLayout(errorPanel);<NEW_LINE>layout.setAutoCreateGaps(true);<NEW_LINE>layout.setAutoCreateContainerGaps(true);<NEW_LINE>errorPanel.setLayout(layout);<NEW_LINE>errorMessage = new JTextPane();<NEW_LINE>errorMessa... | UNRELATED).addComponent(tryAgainButton)); |
1,344,765 | final GetSizeConstraintSetResult executeGetSizeConstraintSet(GetSizeConstraintSetRequest getSizeConstraintSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSizeConstraintSetRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetSi... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
453,642 | protected String doIt() {<NEW_LINE>final I_C_BPartner bPartner = bpartnerDAO.getById(BPartnerId<MASK><NEW_LINE>final BPartnerStats stats = bpartnerStatsDAO.getCreateBPartnerStats(bPartner);<NEW_LINE>final String creditStatus;<NEW_LINE>if (SetCreditStatusEnum.CreditOK.equals(setCreditStatus)) {<NEW_LINE>creditStatus = X... | .ofRepoId(getRecord_ID())); |
942,638 | public FilesLimit unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FilesLimit filesLimit = new FilesLimit();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso... | class).unmarshall(context)); |
1,761,478 | public void finish() {<NEW_LINE>if (!spillInProgress.isDone()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>checkSpillSucceeded(spillInProgress);<NEW_LINE>if (state == State.NEEDS_INPUT) {<NEW_LINE>state = State.HAS_OUTPUT;<NEW_LINE>// Convert revocable memory to user memory as sortedPages holds on to memory so we no longer ... | spilledPages, sortedPagesIndex).yieldingIterator(); |
251,392 | private void deleteIpRanges(final CascadeAction action, List<IpRangeInventory> iprs, NoErrorCompletion completion) {<NEW_LINE>List<IpRangeDeletionMsg> msgs = new ArrayList<IpRangeDeletionMsg>();<NEW_LINE>for (IpRangeInventory iprinv : iprs) {<NEW_LINE>IpRangeDeletionMsg msg = new IpRangeDeletionMsg();<NEW_LINE>msg.setF... | .isActionCode(CascadeConstant.DELETION_FORCE_DELETE_CODE)); |
240,614 | public void registerHost(StandardHost host) throws Exception {<NEW_LINE>if (host.getJmxName() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String name = host.getName();<NEW_LINE>// BEGIN S1AS 5000999<NEW_LINE>String[<MASK><NEW_LINE>boolean nameMatch = false;<NEW_LINE>if (nlNames != null) {<NEW_LINE>for (String nlNam... | ] nlNames = host.getNetworkListenerNames(); |
962,539 | public PwDbHeader outputHeader(OutputStream os) throws PwDbOutputException {<NEW_LINE>// Build header<NEW_LINE>PwDbHeaderV3 header = new PwDbHeaderV3();<NEW_LINE>header.signature1 = PwDbHeader.PWM_DBSIG_1;<NEW_LINE>header.signature2 = PwDbHeaderV3.DBSIG_2;<NEW_LINE>header.flags = PwDbHeaderV3.FLAG_SHA2;<NEW_LINE>if (mP... | .getGroups().size(); |
483,866 | public // means that a message never expires.<NEW_LINE>void testSetTimeToLive_B_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContextQCFBindings = qcfBindings.createContext();<NEW_LINE>emptyQueue(qcfBindings, queue1);<NEW_LINE>JMSConsumer jmsConsumer = jmsCon... | msgIn2 = jmsConsumer.receive(30000); |
1,711,944 | protected void addConstraintMapping(WebContainer service, ConstraintMapping constraintMapping) {<NEW_LINE>Constraint constraint = constraintMapping.getConstraint();<NEW_LINE>String[] roles = constraint.getRoles();<NEW_LINE>// name property is unavailable on constraint object :/<NEW_LINE>String name = "Constraint-" + ne... | getAuthenticate(), rolesList, httpContext); |
638,496 | public void sendText(String s) {<NEW_LINE>for (int i = 0; i < s.length(); i++) {<NEW_LINE>KeyEvent event = null;<NEW_LINE>char c = s.charAt(i);<NEW_LINE>if (Character.isISOControl(c)) {<NEW_LINE>if (c == '\n') {<NEW_LINE>int keyCode = KeyEvent.KEYCODE_ENTER;<NEW_LINE>keyEvent(keyCode, new KeyEvent(KeyEvent.ACTION_DOWN,... | event.getKeyCode(), event); |
1,728,763 | private static void decode5(DataInput in, long[] tmp, long[] longs) throws IOException {<NEW_LINE>readLELongs(in, tmp, 0, 10);<NEW_LINE>shiftLongs(tmp, 10, longs, 0, 3, MASK8_5);<NEW_LINE>for (int iter = 0, tmpIdx = 0, longsIdx = 10; iter < 2; ++iter, tmpIdx += 5, longsIdx += 3) {<NEW_LINE>long l0 = (tmp[tmpIdx + 0] & ... | ] >>> 1) & MASK8_2; |
1,098,055 | public void putValue(Varnode out, Varnode result, boolean mustClear) {<NEW_LINE>if (out == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (out.isAddress() || isSymbolicSpace(out.getSpace())) {<NEW_LINE>if (!isRegister(out)) {<NEW_LINE>if (debug) {<NEW_LINE>Msg.info(this, " " + print(out) + " <- " + print(result) ... | tempVals.put(out, result); |
1,145,926 | private void passwordProtectPDF() {<NEW_LINE>final MaterialDialog dialog = new MaterialDialog.Builder(mActivity).title(R.string.set_password).customView(R.layout.custom_dialog, true).positiveText(android.R.string.ok).negativeText(android.R.string.cancel).neutralText(R.string.remove_dialog).build();<NEW_LINE>final View ... | dialog.getActionButton(DialogAction.POSITIVE); |
1,254,290 | public static Type resolveVariable(@Nonnull TypeVariable variable, @Nonnull Class classType, boolean resolveInInterfacesOnly) {<NEW_LINE><MASK><NEW_LINE>int index = ArrayUtilRt.find(aClass.getTypeParameters(), variable);<NEW_LINE>if (index >= 0) {<NEW_LINE>return variable;<NEW_LINE>}<NEW_LINE>final Class[] classes = aC... | final Class aClass = getRawType(classType); |
322,242 | public List<ExtractResult> extract(String input, LocalDateTime reference) {<NEW_LINE>List<Token> <MASK><NEW_LINE>tokens.addAll(matchSimpleCases(input));<NEW_LINE>List<ExtractResult> simpleCasesResults = Token.mergeAllTokens(tokens, input, getExtractorName());<NEW_LINE>List<ExtractResult> ordinalExtractions = config.get... | tokens = new ArrayList<>(); |
432,859 | public void drawU(UGraphic ug) {<NEW_LINE>final Dimension2D dimTotal = calculateDimension(ug.getStringBounder());<NEW_LINE>final double widthTotal = dimTotal.getWidth();<NEW_LINE>final double heightTotal = dimTotal.getHeight();<NEW_LINE>final UDrawable shape = boxStyle.getUDrawable(widthTotal, heightTotal, shadowing, r... | calculateDimension(ug.getStringBounder()); |
1,791,839 | public I_AD_Print_Clients createPrintClientsEntry(final Properties ctx, final String hostkey) {<NEW_LINE>final String trxName = ITrx.TRXNAME_None;<NEW_LINE>I_AD_Print_Clients printClientsEntry = Services.get(IPrintingDAO.class).retrievePrintClientsEntry(ctx, hostkey);<NEW_LINE>if (printClientsEntry == null) {<NEW_LINE>... | sysContext, I_AD_Print_Clients.class, trxName); |
960,511 | private CompoundKey parseCompoundKey(final ResourceModel resource, final ServerResourceContext context, final String pathSegment) {<NEW_LINE>CompoundKey compoundKey;<NEW_LINE>try {<NEW_LINE>compoundKey = ArgumentUtils.parseCompoundKey(pathSegment, resource.getKeys(), context.getRestliProtocolVersion(), _restLiConfig.sh... | S_400_BAD_REQUEST.getCode(), e); |
186,460 | public static DescribeDcdnDomainRegionDataResponse unmarshall(DescribeDcdnDomainRegionDataResponse describeDcdnDomainRegionDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnDomainRegionDataResponse.setRequestId(_ctx.stringValue("DescribeDcdnDomainRegionDataResponse.RequestId"));<NEW_LINE>describeDcdnDomain... | (_ctx.stringValue("DescribeDcdnDomainRegionDataResponse.EndTime")); |
1,837,634 | private void paintAnnotations(Graphics2D g, int startVisualLine, int endVisualLine) {<NEW_LINE>int x = getAnnotationsAreaOffset();<NEW_LINE>int w = getAnnotationsAreaWidthEx();<NEW_LINE>if (w == 0)<NEW_LINE>return;<NEW_LINE>AffineTransform old = setMirrorTransformIfNeeded(g, x, w);<NEW_LINE>try {<NEW_LINE>Color color =... | annotationSize = myTextAnnotationGutterSizes.get(i); |
839,902 | private double pseudoRandom(final long seed, int input) {<NEW_LINE>// Default constants from "man drand48"<NEW_LINE>final long mult = 0x5DEECE66DL;<NEW_LINE>final long add = 0xBL;<NEW_LINE>// 48 bit<NEW_LINE>final long mask <MASK><NEW_LINE>// Produce an initial seed each<NEW_LINE>final long i1 = (input ^ seed ^ mult) &... | = (1L << 48) - 1; |
1,683,762 | public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {<NEW_LINE>Task<?> methodCallTask;<NEW_LINE>switch(call.method) {<NEW_LINE>case "FirebaseModelDownloader#getModel":<NEW_LINE>methodCallTask = getModel(call.arguments());<NEW_LINE>break;<NEW_LINE>case "FirebaseModelDownloader#listDownloadedModels... | Exception exception = task.getException(); |
791,167 | protected BootJavaHoverProvider createHoverHandler(JavaProjectFinder javaProjectFinder, SourceLinks sourceLinks, SpringProcessLiveDataProvider liveDataProvider) {<NEW_LINE>AnnotationHierarchyAwareLookup<HoverProvider> providers = new AnnotationHierarchyAwareLookup<>();<NEW_LINE>ValueHoverProvider valueHoverProvider = n... | .PROFILE, new ActiveProfilesProvider()); |
1,133,753 | FormatterFunc createFormat() throws Exception {<NEW_LINE>ClassLoader classLoader = jarState.getClassLoader();<NEW_LINE>// instantiate the formatter and get its format method<NEW_LINE>Class<?> <MASK><NEW_LINE>Class<?> optionsBuilderClass = classLoader.loadClass(OPTIONS_BUILDER_CLASS);<NEW_LINE>Method optionsBuilderMetho... | optionsClass = classLoader.loadClass(OPTIONS_CLASS); |
290,080 | private static void generic(Exchange krakenExchange) throws IOException {<NEW_LINE><MASK><NEW_LINE>System.out.println("Open Orders: " + tradeService.getOpenOrders().toString());<NEW_LINE>// place a limit buy order<NEW_LINE>LimitOrder limitOrder = new LimitOrder((OrderType.ASK), new BigDecimal(".01"), CurrencyPair.BTC_L... | TradeService tradeService = krakenExchange.getTradeService(); |
592,679 | private void createKafkaConsumer(String bootstrapServers) {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>properties.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapServers);<NEW_LINE>properties.put(ConsumerConfig.GROUP_ID_CONFIG, context.getConfig().getSortTaskId());<NEW_LINE>properties.put(Consume... | RangeAssignor.class.getName()); |
342,094 | private static GoogleCredential fromStreamServiceAccount(GenericJson fileContents, HttpTransport transport, JsonFactory jsonFactory) throws IOException {<NEW_LINE>String clientId = (String) fileContents.get("client_id");<NEW_LINE>String clientEmail = (String) fileContents.get("client_email");<NEW_LINE>String privateKey... | String) fileContents.get("token_uri"); |
817,868 | private int validateBackupLog(DurableDataLogFactory dataLogFactory, int containerId, DebugDurableDataLogWrapper originalDataLog, boolean createNewBackupLog) throws Exception {<NEW_LINE>// Validate that the Original and Backup logs have the same number of operations.<NEW_LINE>int operationsReadFromOriginalLog = readDura... | dataLogFactory.getBackupLogId(), validationBackupDataLogReadOnly); |
723,447 | public static Pair<FetcherBase, StoreBase> discoverMonitor(MonitorConf monitorConf, SyncConf syncConf) {<NEW_LINE>try {<NEW_LINE>String pluginType = monitorConf.getType();<NEW_LINE>String storePluginClassName = PluginUtil.getPluginClassName(pluginType, OperatorType.store);<NEW_LINE>String fetcherPluginClassName = Plugi... | throw new NoRestartException("Load restore plugins failed!", e); |
204,871 | static String printVM(VirtualMachine vm) {<NEW_LINE>if (vm == null) {<NEW_LINE>return "null";<NEW_LINE>}<NEW_LINE>String sequenceNumber;<NEW_LINE>try {<NEW_LINE>java.lang.reflect.Field sequenceNumberField = vm.getClass().getDeclaredField("sequenceNumber");<NEW_LINE>sequenceNumberField.setAccessible(true);<NEW_LINE>Obje... | sn = sequenceNumberField.get(vm); |
959,641 | public static CockroachDBSelect generateSelect(CockroachDBGlobalState globalState, int nrColumns) {<NEW_LINE>CockroachDBTables tables = globalState.getSchema().getRandomTableNonEmptyTables();<NEW_LINE>CockroachDBExpressionGenerator gen = new CockroachDBExpressionGenerator(globalState).setColumns(tables.getColumns());<N... | boolean allowAggregates = Randomly.getBooleanWithSmallProbability(); |
1,098,936 | private Mono<Response<Void>> cancelWithResponseAsync(String resourceGroupName, String deploymentName, 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."));<NEW_LINE>}<NEW_LINE>... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
1,796,527 | public void initNew(HttpServletRequest request, HttpServletResponse response, @RequestParam("code") String code, @RequestParam("state") String state) throws IOException {<NEW_LINE>JsonObject stateJson = new JsonParser().parse(state).getAsJsonObject();<NEW_LINE>AliyunAccessTokenVO token = oauth2Util.getAccessToken(code)... | getAccessToken(), 0, topDomain); |
832,252 | final ListLoggingConfigurationsResult executeListLoggingConfigurations(ListLoggingConfigurationsRequest listLoggingConfigurationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listLoggingConfigurationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | false), new ListLoggingConfigurationsResultJsonUnmarshaller()); |
1,337,585 | public GraphPlotter physics(Ribbon all, Ribbon edges) {<NEW_LINE>GraphPlotter g = new GraphPlotter();<NEW_LINE>// compute force for every node<NEW_LINE>Point calc, current;<NEW_LINE>for (Map.Entry<String, Point> node : this.nodes.entrySet()) {<NEW_LINE>calc = (Point) node.getValue().clone();<NEW_LINE>current = (Point) ... | p.getValue(), all); |
607,915 | protected SnippetTemplate.Arguments makeArguments(InstanceOfUsageReplacer replacer, LoweringTool tool) {<NEW_LINE>InstanceOfDynamicNode node = (InstanceOfDynamicNode) replacer.instanceOf;<NEW_LINE>if (node.isExact()) {<NEW_LINE>SnippetTemplate.Arguments args = new SnippetTemplate.Arguments(typeEquality, node.graph().ge... | "object", node.getObject()); |
689,467 | private void updateFleuron(boolean requiresPremium) {<NEW_LINE>FragmentTransaction transaction = getSupportFragmentManager().beginTransaction().setCustomAnimations(android.R.animator.fade_in, android.R.animator.fade_out);<NEW_LINE>if (requiresPremium) {<NEW_LINE>transaction.hide(itemSetFragment);<NEW_LINE>binding.foote... | containerSubscribe.setVisibility(View.GONE); |
704,680 | private void initBuffer() {<NEW_LINE>logger.info("Initializing display (if last line in log then likely the game crashed from an issue with your " + "video card)");<NEW_LINE>if (!config.isVSync()) {<NEW_LINE>GLFW.glfwSwapInterval(0);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String root = "org/terasology/icons/";<NEW_LINE>Cla... | , LwjglGraphicsUtil.convertToGLFWFormat(icon128)); |
1,730,133 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// Search your library for three creature cards<NEW_LINE>if (controller.searchLibrary(target, source, game)) {<NEW_LINE>b... | revealCards(source, cards, game); |
672,338 | private synchronized void sendMessage(ApnsNotification m, boolean fromBuffer) throws NetworkIOException {<NEW_LINE>logger.debug("sendMessage {} fromBuffer: {}", m, fromBuffer);<NEW_LINE>if (delegate instanceof StartSendingApnsDelegate) {<NEW_LINE>((StartSendingApnsDelegate) delegate<MASK><NEW_LINE>}<NEW_LINE>int attemp... | ).startSending(m, fromBuffer); |
1,813,286 | final DescribeAutoScalingGroupsResult executeDescribeAutoScalingGroups(DescribeAutoScalingGroupsRequest describeAutoScalingGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAutoScalingGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Auto Scaling"); |
1,444,974 | ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String workId, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW_LINE>Work work = null;<NE... | ExceptionEntityNotExist(workId, Work.class); |
579,925 | public static PyString UnicodeTranslateError__str__(PyObject self, PyObject[] args, String[] kwargs) {<NEW_LINE>int start = self.__getattr__("start").asInt();<NEW_LINE>int end = self.__getattr__("end").asInt();<NEW_LINE>// Get reason as a string, which it might not be if it's been modified after we<NEW_LINE>// were con... | "can't translate character u'\\%s' in position %d: %.400s", badCharStr, start, reason); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.