idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
707,765 | public String priceList(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) {<NEW_LINE>Integer M_PriceList_ID = (Integer) mTab.getValue("M_PriceList_ID");<NEW_LINE>if (M_PriceList_ID == null || M_PriceList_ID.intValue() == 0)<NEW_LINE>return "";<NEW_LINE>if (steps)<NEW_LINE>log.warning("init");<... | pstmt.setTimestamp(2, date); |
1,287,760 | public ListPullRequestsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListPullRequestsResult listPullRequestsResult = new ListPullRequestsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | )).unmarshall(context)); |
1,173,284 | private Set instantiateWProgress(ProgressHandle handle) throws IOException {<NEW_LINE>this.project = Templates.getProject(wizard);<NEW_LINE>initEntityNames();<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>List<String> entities = (List<String>) wizard.getProperty(WizardProperties.ENTITY_CLASS);<NEW_LINE>final FileObj... | .length - 1] : null); |
969,418 | public Optional<Product> importProduct(@NonNull final SyncProduct syncProduct, @Nullable Product product) {<NEW_LINE>final String uuid = syncProduct.getUuid();<NEW_LINE>if (product != null && !Objects.equals(product.getUuid(), uuid)) {<NEW_LINE>product = null;<NEW_LINE>}<NEW_LINE>if (product == null) {<NEW_LINE>product... | setPackingInfo(syncProduct.getPackingInfo()); |
856,654 | // auto-generated, see spoon.generating.ReplacementVisitorGenerator<NEW_LINE>@java.lang.Override<NEW_LINE>public <T> void visitCtClass(final spoon.reflect.declaration.CtClass<T> ctClass) {<NEW_LINE>replaceInListIfExist(ctClass.getAnnotations(), new spoon.support.visitor.replace.ReplacementVisitor.CtElementAnnotationsRe... | .ReplacementVisitor.CtTypeInformationSuperInterfacesReplaceListener(ctClass)); |
1,326,496 | public Optional<RefundInvoiceCandidate> ofNullableRefundRecord(@Nullable final I_C_Invoice_Candidate refundRecord) {<NEW_LINE>final IUOMDAO uomDAO = Services.get(IUOMDAO.class);<NEW_LINE>final IProductDAO productDAO = Services.get(IProductDAO.class);<NEW_LINE>final IProductBL productBL = Services.get(IProductBL.class);... | money(money).build(); |
122,422 | public Object gather(Context ctx) {<NEW_LINE>if (count == 0)<NEW_LINE>return null;<NEW_LINE>if (isSame) {<NEW_LINE>Sequence seq = new Sequence();<NEW_LINE>if (getExp == null) {<NEW_LINE>Object obj = exp.calculate(ctx);<NEW_LINE>addToSequence(seq, obj, comparator);<NEW_LINE>} else {<NEW_LINE>Object obj = getExp.calculat... | getFieldIndex(exp.getIdentifierName()); |
1,185,537 | // Call on EDT<NEW_LINE>private void addMBeanAttributeInfo(MBeanAttributeInfo mbai) {<NEW_LINE>// NOI18N<NEW_LINE>String border = Resources.getText("LBL_MBeanAttributeInfo");<NEW_LINE>// NOI18N<NEW_LINE>String text = Resources.getText("LBL_Attribute");<NEW_LINE>DefaultTableModel tableModel = (DefaultTableModel) infoTab... | = new TableRowDivider("", lightYellow); |
1,443,530 | private SuperConstructorInvocation addEnclosingInstanceAccess(ASTRewrite rewrite, ImportRewriteContext importRewriteContext, List<SingleVariableDeclaration> parameters, String[] paramNames, ITypeBinding enclosingInstance) {<NEW_LINE>AST ast = rewrite.getAST();<NEW_LINE>SuperConstructorInvocation invocation = ast.newSup... | enclosing = ast.newSimpleName(firstName); |
1,583,727 | private static void load(EscapeMode e, String pointsData, int size) {<NEW_LINE>e<MASK><NEW_LINE>e.codeVals = new int[size];<NEW_LINE>e.codeKeys = new int[size];<NEW_LINE>e.nameVals = new String[size];<NEW_LINE>int i = 0;<NEW_LINE>CharacterReader reader = new CharacterReader(pointsData);<NEW_LINE>try {<NEW_LINE>while (!... | .nameKeys = new String[size]; |
78,871 | public static GLFWImage convertToGLFWFormat(BufferedImage image) {<NEW_LINE>BufferedImage convertedImage;<NEW_LINE>if (image.getType() != BufferedImage.TYPE_INT_ARGB_PRE) {<NEW_LINE>convertedImage = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_INT_ARGB_PRE);<NEW_LINE>final Graphics2D graphi... | image.getHeight() * 4); |
458,679 | public ISeq<Phenotype<G, C>> select(final Seq<Phenotype<G, C>> population, final int count, final Optimize opt) {<NEW_LINE>requireNonNull(population, "Population");<NEW_LINE>requireNonNull(opt, "Optimization");<NEW_LINE>if (count < 0) {<NEW_LINE>throw new IllegalArgumentException(format("Selection count must be greater... | pos = random.nextInt(size); |
35,219 | public static DescribeAuthorizedApisResponse unmarshall(DescribeAuthorizedApisResponse describeAuthorizedApisResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAuthorizedApisResponse.setRequestId(_ctx.stringValue("DescribeAuthorizedApisResponse.RequestId"));<NEW_LINE>describeAuthorizedApisResponse.setTotalCount(_ct... | ("DescribeAuthorizedApisResponse.AuthorizedApis[" + i + "].StageName")); |
976,892 | public static MergeFacesResponse unmarshall(MergeFacesResponse mergeFacesResponse, UnmarshallerContext context) {<NEW_LINE>mergeFacesResponse.setRequestId<MASK><NEW_LINE>mergeFacesResponse.setCode(context.stringValue("MergeFacesResponse.Code"));<NEW_LINE>mergeFacesResponse.setMessage(context.stringValue("MergeFacesResp... | (context.stringValue("MergeFacesResponse.RequestId")); |
347,121 | static Map<String, Object> createBaseCoSProperties(@NonNull final JavaActionProvider.Context ctx) {<NEW_LINE>final String command = ctx.getCommand();<NEW_LINE>final Project project = ctx.getProject();<NEW_LINE>final UpdateHelper updateHelper = ctx.getUpdateHelper();<NEW_LINE>final PropertyEvaluator evaluator = ctx.getP... | prepareWorkDir(updateHelper, evaluator, execProperties); |
1,705,767 | public static OkHttpClient enableExternalCertificates(OkHttpClient httpClient, String filename) throws GeneralSecurityException, IOException {<NEW_LINE>Collection<? extends Certificate> certificates = null;<NEW_LINE>try (FileInputStream fis = new FileInputStream(filename)) {<NEW_LINE>certificates = CertificateFactory.g... | ] keyManagers = keyManagerFactory.getKeyManagers(); |
789,395 | public void before(Object target, Object[] args) {<NEW_LINE>if (isDebug) {<NEW_LINE>logger.beforeInterceptor(target, args);<NEW_LINE>}<NEW_LINE>final Trace trace = traceContext.currentRawTraceObject();<NEW_LINE>if (trace == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!trace.canSampled()) {<NEW_LINE>if (target inst... | write(httpMethod, nextId, host); |
1,793,676 | public void removeAllForTable(int tableId) {<NEW_LINE>if (mvStore.isClosed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MVStore.TxCounter txCounter = mvStore.registerVersionUsage();<NEW_LINE>try {<NEW_LINE>if (isTemporaryLob(tableId)) {<NEW_LINE>final Iterator<Long> iter = tempLobMap.keyIterator(0L);<NEW_LINE>while (iter.... | long lobId = iter.next(); |
929,297 | public synchronized void printAllocationStatisticsForCurrentThread() {<NEW_LINE>ensureThreadExistense();<NEW_LINE>Map<String, MemoryWorkspace> map = backingMap.get();<NEW_LINE>log.info("Workspace statistics: ---------------------------------");<NEW_LINE>log.info(<MASK><NEW_LINE>log.info("Workspace name: Allocated / ext... | "Number of workspaces in current thread: {}", map.size()); |
1,309,989 | private JsonSchemaProperty computeSchemaForProperty(List<MongoPersistentProperty> path) {<NEW_LINE>String stringPath = path.stream().map(MongoPersistentProperty::getName).collect(Collectors.joining("."));<NEW_LINE>MongoPersistentProperty property = CollectionUtils.lastElement(path);<NEW_LINE>boolean required = isRequir... | ?> rawTargetType = computeTargetType(property); |
363,753 | public void handleApplicationCommandRequest(final SerialMessage serialMessage, final int offset, final int endpoint) {<NEW_LINE>logger.debug("NODE {}: handleApplicationCommandRequest: {}", this.getNode().getNodeId(), serialMessage.toString());<NEW_LINE>int blindValue = serialMessage.getMessagePayloadByte(offset + blind... | ).getNodeId(), blindValue); |
704,461 | public Code clearCustomInstallationId(long projectNumber, @NonNull String apiKey, @NonNull String firebaseInstanceId, @NonNull String firebaseInstanceIdToken) {<NEW_LINE>String resourceName = String.format(CLEAR_REQUEST_RESOURCE_NAME_FORMAT, projectNumber, firebaseInstanceId);<NEW_LINE>try {<NEW_LINE>URL url = new URL(... | (HttpsURLConnection) url.openConnection(); |
320,656 | public NotificationArea createNotificationArea(RESTRequest request, String basePath, NotificationSettings notificationSettings) {<NEW_LINE>// Cleanup old clients<NEW_LINE>cleanUp(request);<NEW_LINE>// Fetch a new ID<NEW_LINE>int clientID = getNewClientID();<NEW_LINE>// Make the new inbox and insert into map<NEW_LINE>Cl... | .inboxURL = newArea.clientURL + "/inbox"; |
698,247 | public com.amazonaws.services.kms.model.UnsupportedOperationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kms.model.UnsupportedOperationException unsupportedOperationException = new com.amazonaws.services.kms.model.UnsupportedOperationException(null)... | JsonToken token = context.getCurrentToken(); |
674,254 | /* Useful debugging function */<NEW_LINE>public void dumpUndwindInfo(PrintStream output) {<NEW_LINE>if (runtimeFunctionEntries == null) {<NEW_LINE>output.<MASK><NEW_LINE>}<NEW_LINE>output.println("Dumping unwind info for: " + getName());<NEW_LINE>try {<NEW_LINE>for (RuntimeFunction rf : runtimeFunctionEntries) {<NEW_LI... | println("No undwind info available for module " + getName()); |
490,652 | public void reconcile(YamlFileAST ast) {<NEW_LINE>if (typeCollector != null)<NEW_LINE>typeCollector.beginCollecting(ast);<NEW_LINE>delayedConstraints.clear();<NEW_LINE>slowDelayedConstraints.clear();<NEW_LINE>try {<NEW_LINE>List<Node> nodes = ast.getNodes();<NEW_LINE>IntegerRange expectedDocs = schema.expectedNumberOfD... | ) + "' should not have more than " + upperBound + " Yaml Documents"); |
1,818,563 | public Project createProject(final ProjectImportModel model, final List<String> importProblems) throws IOException {<NEW_LINE>// calculate nb project location<NEW_LINE>// NOI18N<NEW_LINE>File nbProjectDir = model.getNetBeansProjectLocation();<NEW_LINE>if (ProjectFactorySupport.areSourceRootsOwned(model, nbProjectDir, i... | setupSourceExcludes(helper, model, importProblems); |
76,008 | public void validateAllParameters(HttpRequest request, Object object, Method method, Object[] parameterValues, Class<?>... groups) {<NEW_LINE>if (method.getParameterTypes().length == 0) {<NEW_LINE>checkViolations(request);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Validator validator = getValidator(request);<NEW_LINE>Simple... | violationsContainer = getViolationsContainer(request, object); |
697,810 | public static byte[] encrypt(ECPoint toPub, byte[] plaintext, byte[] macData) {<NEW_LINE>ECKeyPairGenerator eGen = new ECKeyPairGenerator();<NEW_LINE>SecureRandom random = new SecureRandom();<NEW_LINE>KeyGenerationParameters gParam = new ECKeyGenerationParameters(CURVE, random);<NEW_LINE>eGen.init(gParam);<NEW_LINE>byt... | (pub.getEncoded(false)); |
1,366,244 | public void validate(final RelativeByteSizeValue value, final Map<Setting<?>, Object> settings) {<NEW_LINE>if (value.isAbsolute() && value.getAbsolute().getBytes() == -1) {<NEW_LINE>throw new <MASK><NEW_LINE>}<NEW_LINE>if (value.isNonZeroSize()) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>final List<DiscoveryNod... | SettingsException("setting [{}] must be non-negative", SHARED_CACHE_SETTINGS_PREFIX + "size"); |
1,238,729 | private static void throwBadAccess(long pointer, long size, Map.Entry<Long, Allocation> fentry, Map.Entry<Long, Allocation> centry) {<NEW_LINE>long now = System.nanoTime();<NEW_LINE>long faddr = fentry == null ? 0 : fentry.getKey();<NEW_LINE>long fsize = fentry == null ? 0 : fentry.getValue().sizeInBytes;<NEW_LINE>long... | collect(Collectors.toList()); |
1,178,716 | private void checkSchema(MutableIntObjectMap<MutableIntSet> mandatoryNodeProperties, MutableIntObjectMap<MutableIntSet> mandatoryRelationshipProperties, CursorContext cursorContext, StoreCursors storeCursors) {<NEW_LINE>long highId = schemaStore.getHighId();<NEW_LINE>try (RecordReader<SchemaRecord> schemaReader = new R... | indexObligations, constraintObligations, verifiedRulesWithRecords, storeCursors); |
1,743,424 | /*<NEW_LINE>* Performs a depth first search for all checkers this checker depends on.<NEW_LINE>* The depth first search ensures that the collection has the correct order the checkers need to be run in.<NEW_LINE>*<NEW_LINE>* Modifies the alreadyInitializedSubcheckerMap map by adding all recursively newly instantiated su... | throw new BugInCF("Could not create an instance of " + subcheckerClass); |
777,921 | private void parseSubmissions(List<Submission> submissions) {<NEW_LINE>if (submissions.isEmpty()) {<NEW_LINE>errorCollector.print("No submissions to parse!", null);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>int tooShort = 0;<NEW_LINE>for (Submission submission : submissi... | errorCollector.print(null, "OK"); |
1,213,032 | public static BlobItemProperties populateBlobItemProperties(BlobItemPropertiesInternal blobItemPropertiesInternal) {<NEW_LINE>BlobItemProperties blobItemProperties = new BlobItemProperties();<NEW_LINE>blobItemProperties.setCreationTime(blobItemPropertiesInternal.getCreationTime());<NEW_LINE>blobItemProperties.setLastMo... | setLeaseState(blobItemPropertiesInternal.getLeaseState()); |
1,178,211 | private void load() {<NEW_LINE>try {<NEW_LINE>Document settings = DomUtil.parseXmlFile(settingFile);<NEW_LINE>final DomVisitor visitor = new RecursiveDomVisitor() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void visit(Element elemet) {<NEW_LINE>if (READ_TIMEOUT_TAG.equals(elemet.getNodeName())) {<NEW_LINE>readTimeou... | getTextContent().trim()); |
1,680,131 | public void onBlock(Block block, List<TransactionReceipt> receipts) {<NEW_LINE>byte[] cow = Hex.decode("cd2a3d9f938e13cd947ec05abc7fe734df8dd826");<NEW_LINE>// Get snapshot some time ago - 10% blocks ago<NEW_LINE>long bestNumber = ethereum.getBlockchain().getBestBlock().getNumber();<NEW_LINE>long oldNumber = (long) (be... | nonce_ = snapshot.getNonce(cow); |
9,162 | private void mapRequestBodyRules(org.springframework.cloud.contract.spec.internal.Request contractRequest, MatchingRuleCategory bodyRules) {<NEW_LINE>contractRequest.bodyMatchers((bodyMatchers) -> {<NEW_LINE>bodyRules.getMatchingRules().forEach((key, matchingRuleGroup) -> {<NEW_LINE>if (matchingRuleGroup.getRuleLogic()... | key, bodyMatchers.byDate()); |
890,830 | final AssociatePrincipalWithPortfolioResult executeAssociatePrincipalWithPortfolio(AssociatePrincipalWithPortfolioRequest associatePrincipalWithPortfolioRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associatePrincipalWithPortfolioRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | false), new AssociatePrincipalWithPortfolioResultJsonUnmarshaller()); |
870,287 | private boolean decode(T gray, QrCode qr) {<NEW_LINE>if (!extractFormatInfo(qr)) {<NEW_LINE>qr.failureCause = QrCode.Failure.FORMAT;<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!extractVersionInfo(qr)) {<NEW_LINE>qr.failureCause = QrCode.Failure.VERSION;<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!alignmentLocat... | .getTransformGrid().computeTransform(); |
1,507,260 | public void marshall(NetworkProfile networkProfile, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (networkProfile == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(networkProfile.getNetworkProfileArn(), NET... | networkProfile.getSsid(), SSID_BINDING); |
945,851 | public AccountAttribute unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>AccountAttribute accountAttribute = new AccountAttribute();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth... | ().unmarshall(context)); |
1,265,322 | public void marshall(NetworkConnectionAction networkConnectionAction, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (networkConnectionAction == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE... | networkConnectionAction.getBlocked(), BLOCKED_BINDING); |
1,066,718 | /* (non-Javadoc)<NEW_LINE>* @see android.app.ListActivity#onListItemClick(android.widget.ListView, android.view.View, int, long)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void onListItemClick(ListView l, View v, int position, long id) {<NEW_LINE>ConnectionBean connection = new ConnectionBean(this);<NEW_LINE>if ... | builder = new Uri.Builder(); |
201,052 | public CreateReturnShippingLabelResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateReturnShippingLabelResult createReturnShippingLabelResult = new CreateReturnShippingLabelResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | int originalDepth = context.getCurrentDepth(); |
1,140,631 | Component parse(ContainerDslContext context, Tokens tokens) {<NEW_LINE>// component <name> [description] [technology] [tags]<NEW_LINE>if (tokens.hasMoreThan(TAGS_INDEX)) {<NEW_LINE>throw new RuntimeException("Too many tokens, expected: " + GRAMMAR);<NEW_LINE>}<NEW_LINE>if (!tokens.includes(NAME_INDEX)) {<NEW_LINE>throw... | (tags.split(",")); |
846,722 | public Injectee apply(CacheKey cacheKey) {<NEW_LINE>Injectee injectee = cacheKey.getInjectee();<NEW_LINE>if (injectee.getParent() != null) {<NEW_LINE>if (Field.class.isAssignableFrom(injectee.getParent().getClass())) {<NEW_LINE>Field f = (Field) injectee.getParent();<NEW_LINE>if (foreignRequestScopedComponents.get().co... | RequestScoped.class).build(); |
1,361,569 | private void giveItem(CommandSender sender, Player p, SlimefunItem sfItem, String[] args) {<NEW_LINE>if (sfItem instanceof MultiBlockMachine) {<NEW_LINE>Slimefun.getLocalization().sendMessage(sender, "guide.cheat.no-multiblocks");<NEW_LINE>} else {<NEW_LINE>int amount = parseAmount(args);<NEW_LINE>if (amount > 0) {<NEW... | PLACEHOLDER_AMOUNT, args[3])); |
374,596 | public String display() {<NEW_LINE>StringBuffer sb = new StringBuffer();<NEW_LINE>DecimalFormat f = new java.text.DecimalFormat("' '000");<NEW_LINE>sb.append(AdapterUtil<MASK><NEW_LINE>sb.append(AdapterUtil.EOLN).append("Number of entries: ").append(numEntries);<NEW_LINE>sb.append(AdapterUtil.EOLN).append("Maximum e... | .EOLN).append(this); |
1,488,618 | // init<NEW_LINE>void zkInit() throws Exception {<NEW_LINE>form.appendChild(mainPanel);<NEW_LINE>mainPanel.setStyle("width: 99%; height: 100%; border: none; padding: 0; margin: 0");<NEW_LINE>mainPanel.appendChild(mainLayout);<NEW_LINE>mainLayout.setWidth("100%");<NEW_LINE>mainLayout.setHeight("100%");<NEW_LINE>paramete... | .getCtx(), "M_Locator_ID")); |
442,083 | protected static boolean payloadContainsNoPlaceholderReferences(FhirContext theCtx, IBaseResource theNewPayload) {<NEW_LINE>List<ResourceReferenceInfo> refs = theCtx.newTerser().getAllResourceReferences(theNewPayload);<NEW_LINE>for (ResourceReferenceInfo next : refs) {<NEW_LINE>String ref = next.getResourceReference().... | .getIdElement().getValue(); |
1,124,937 | public Notification build() {<NEW_LINE>NotificationCompat.Builder notification = new NotificationCompat.Builder(context, NotificationUtils.CHANNEL_ID_PLAYING);<NEW_LINE>if (playable != null) {<NEW_LINE>notification.setContentTitle(playable.getFeedTitle());<NEW_LINE>notification.setContentText(playable.getEpisodeTitle()... | addActions(notification, mediaSessionToken, playerStatus); |
180,667 | public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.<MASK><NEW_LINE>View transactionOptionsView = view.findViewById(R.id.transactions_options);<NEW_LINE>((TextView) transactionOptionsView.findViewById(R.id.title_... | layout.dialog_account_delete, container, false); |
23,308 | public static void main(String[] args) {<NEW_LINE>System.out.println("---------------------------------- \n" + "Welcome to Basic Calculator \n" + "----------------------------------");<NEW_LINE>System.out.println("Following operations are supported : \n" + "1. Addition (+) \n" + "2. Subtraction (-) \n" + "3. Multiplica... | " = " + (num1 - num2)); |
1,010,944 | public void displaySearchResults(List<String> filteredClassNames, List<Translator.ELEMENT> displayedManifestSearchResultsTokens, String textFromTypingArea) {<NEW_LINE>displayDataState = DisplayDataState.CLASSES_LIST;<NEW_LINE>StyleConstants.setFontSize(style, 20);<NEW_LINE>StyleConstants.setForeground(style, theme.getI... | fillTokensToDoc(displayedManifestSearchResultsTokens, doc, true); |
285,437 | protected JComponent createCenterPanel() {<NEW_LINE>JPanel panel = new JPanel(new GridBagLayout());<NEW_LINE>GridBagConstraints gb = new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 5, 10), 0, 0);<NEW_LINE>JLabel patternLabel = new JLabel(IdeBundle.m... | (300, oldPreferredSize.height)); |
213,485 | public void marshall(LightsailDistribution lightsailDistribution, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (lightsailDistribution == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(lightsailDistribution... | lightsailDistribution.getCertificateName(), CERTIFICATENAME_BINDING); |
639,508 | public void insertPropertyExpansion(PropertyExpansion expansion, Point pt) {<NEW_LINE>int pos = pt == null ? -1 : textField.viewToModel(pt);<NEW_LINE>if (pos == -1) {<NEW_LINE>pos = textField.getCaretPosition();<NEW_LINE>}<NEW_LINE>if (pos == -1 || textField.getSelectionStart() == textField.getSelectionEnd()) {<NEW_LIN... | setCaretPosition(textField.getSelectionStart()); |
1,145,476 | public OAuth2AccessToken refreshAccessToken(String refreshTokenValue, TokenRequest tokenRequest) throws AuthenticationException {<NEW_LINE>if (!supportRefreshToken) {<NEW_LINE>throw new InvalidGrantException("Invalid refresh token: " + refreshTokenValue);<NEW_LINE>}<NEW_LINE>OAuth2RefreshToken refreshToken = tokenStore... | authentication = createRefreshedAuthentication(authentication, tokenRequest); |
604,457 | static Point calculateCenterOfBoundingBox(Point[] coordinates) {<NEW_LINE>double pointXMin = coordinates[0].x;<NEW_LINE>double pointXMax = coordinates[0].x;<NEW_LINE>double pointYMin = coordinates[0].y;<NEW_LINE>double pointYMax = coordinates[0].y;<NEW_LINE>for (Point immutablePoint : coordinates) {<NEW_LINE>if (immuta... | (pointYMax + pointYMin) / 2); |
1,395,766 | private void reportOnJavaInformations() {<NEW_LINE>// sessions<NEW_LINE>if (javaInformations.getSessionCount() >= 0) {<NEW_LINE>printLong(MetricType.GAUGE, "sessions_active_count", "active session count", javaInformations.getSessionCount());<NEW_LINE>printLong(MetricType.GAUGE, "sessions_age_avg_minutes", <MASK><NEW_LI... | "session avg age in minutes", javaInformations.getSessionMeanAgeInMinutes()); |
1,684,977 | protected ImageWritable doTransform(ImageWritable image, Random random) {<NEW_LINE>if (image == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// ensure that transform is valid<NEW_LINE>if (image.getFrame().imageHeight < outputHeight || image.getFrame().imageWidth < outputWidth)<NEW_LINE>throw new UnsupportedOperati... | , y, outputWidth, outputHeight)); |
1,765,011 | public AppendLogResult<MessageLog.MessageRecordMeta> append(RawMessageExtend record) {<NEW_LINE><MASK><NEW_LINE>MessageHeader header = record.getHeader();<NEW_LINE>String messageId = header.getMessageId();<NEW_LINE>String subject = header.getSubject();<NEW_LINE>AppendMessageRecordResult recordResult;<NEW_LINE>try {<NEW... | long start = System.currentTimeMillis(); |
618,404 | private Path locateEwfexportExecutable() throws L01Exception {<NEW_LINE>// Must be running under a Windows operating system.<NEW_LINE>if (!PlatformUtil.isWindowsOS()) {<NEW_LINE>throw new L01Exception("L01 files are only supported on windows currently");<NEW_LINE>}<NEW_LINE>// Build the expected path to either the 32-b... | throw new LocalFilesDSProcessor.L01Exception("EWF export executable can not be executed"); |
937,130 | public void updateTask() {<NEW_LINE>final EntityLivingBase attackTarget2 = attackTarget;<NEW_LINE>if (attackTarget2 == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>double distToTargetSq = entityHost.getDistanceSq(attackTarget.posX, attackTarget2.getEntityBoundingBox().minY, attackTarget.posZ);<NEW_LINE>boolean canSeeTa... | tryMoveToEntityLiving(attackTarget2, getMoveSpeed()); |
1,744,988 | private List<LogWithMetadata> matchingLogsCached(final long segmentStart, final long offset, final long endOffset, final LogsQuery query, final Path cacheFile, final Supplier<Boolean> isQueryAlive) throws Exception {<NEW_LINE>final List<LogWithMetadata> results = new ArrayList<>();<NEW_LINE>try (final RandomAccessFile ... | ] bloomBuff = new byte[256]; |
1,658,018 | final SubmitFeedbackResult executeSubmitFeedback(SubmitFeedbackRequest submitFeedbackRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(submitFeedbackRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
309,981 | public void detach() throws SIResourceException, SINotPossibleInCurrentConfigurationException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "detach");<NEW_LINE>// Make sure we are not ready<NEW_LINE>notReady();<NEW_LINE>// Remove us from any group we are a member o... | SibTr.exit(tc, "detach"); |
1,190,267 | public String add(HttpServletRequest request, HttpServletResponse response, Model model, OrderItemRequestDTO itemRequest) throws IOException, AddToCartException, PricingException, NumberFormatException, RemoveFromCartException, IllegalArgumentException {<NEW_LINE>Order cart = CartState.getCart();<NEW_LINE>// If the car... | getId(), itemRequest, false); |
1,726,172 | public void readOnPlacement(@Nullable LivingEntity placer, ItemStack stack) {<NEW_LINE>if (stack.hasTag()) {<NEW_LINE><MASK><NEW_LINE>if (tag.contains("owner", NBT.TAG_STRING))<NEW_LINE>this.owner = tag.getString("owner");<NEW_LINE>else if (placer != null)<NEW_LINE>this.owner = placer.getName().getString();<NEW_LINE>if... | CompoundTag tag = stack.getOrCreateTag(); |
351,990 | // collect root modules into TargetModule with timestamp<NEW_LINE>private TargetModuleID[] saveRootTargetModules(TargetModuleID[] modules) {<NEW_LINE>long timestamp = System.currentTimeMillis();<NEW_LINE>Set originals = new HashSet();<NEW_LINE>for (int i = 0; i < modules.length; i++) {<NEW_LINE>if (modules[i].getParent... | .add(modules[i]); |
237,886 | public <S extends Object> S convert(Object source, TypeInformation<? extends S> typeHint) {<NEW_LINE>Assert.notNull(source, "Source must not be null");<NEW_LINE>Assert.notNull(typeHint, "TypeInformation must not be null");<NEW_LINE>if (conversions.hasCustomReadTarget(source.getClass(), typeHint.getType())) {<NEW_LINE>r... | > rawType = typeHint.getType(); |
681,460 | public static byte[] resizeKey(byte[] in, int inOffset, int cbIn, int cbOut) {<NEW_LINE>if (cbOut == 0)<NEW_LINE>return new byte[0];<NEW_LINE>byte[] hash;<NEW_LINE>if (cbOut <= 32) {<NEW_LINE>hash = hashSha256(in, inOffset, cbIn);<NEW_LINE>} else {<NEW_LINE>hash = hashSha512(in, inOffset, cbIn);<NEW_LINE>}<NEW_LINE>if ... | hmac = Mac.getInstance("HmacSHA256"); |
1,741,520 | public static ListRentedJoinPermissionsResponse unmarshall(ListRentedJoinPermissionsResponse listRentedJoinPermissionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRentedJoinPermissionsResponse.setRequestId<MASK><NEW_LINE>listRentedJoinPermissionsResponse.setSuccess(_ctx.booleanValue("ListRentedJoinPermissionsResp... | (_ctx.stringValue("ListRentedJoinPermissionsResponse.RequestId")); |
554,466 | private void acceptCommand(final TypedRecord<JobRecord> command, final CommandControl<JobRecord> commandControl) {<NEW_LINE>final long jobKey = command.getKey();<NEW_LINE>final JobRecord job = jobState.getJob(jobKey);<NEW_LINE>job.setErrorCode(command.getValue().getErrorCodeBuffer());<NEW_LINE>job.setErrorMessage(comma... | (job.getErrorMessageBuffer())); |
1,178,418 | private static byte[] MFcrypt(byte[] P, byte[] S, int N, int r, int p, int dkLen) {<NEW_LINE>int MFLenBytes = r * 128;<NEW_LINE>byte[] bytes = SingleIterationPBKDF2(P, S, p * MFLenBytes);<NEW_LINE>int[] B = null;<NEW_LINE>try {<NEW_LINE>int BLen = bytes.length >>> 2;<NEW_LINE>B = new int[BLen];<NEW_LINE>Pack.littleEndi... | intToLittleEndian(B, bytes, 0); |
247,256 | private String computeServiceName() {<NEW_LINE>final Class<?> httpClientClass = Classes.childClassOf(AmazonWebServiceClient.class, this);<NEW_LINE>final String httpClientName = httpClientClass.getSimpleName();<NEW_LINE>final String service = ServiceNameFactory.getServiceName(httpClientName);<NEW_LINE>if (service != nul... | throw new IllegalStateException("Unrecognized prefix for the AWS http client class name " + httpClientName); |
505,315 | final UpdateQueueStatusResult executeUpdateQueueStatus(UpdateQueueStatusRequest updateQueueStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateQueueStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
16,398 | private static boolean populateFinalBaseAggregators(Map<String, Table> tableMap, List<VariableExpressionExecutor> incomingVariableExpressionExecutors, MetaStreamEvent incomingMetaStreamEvent, List<ExpressionExecutor> incomingExpressionExecutors, List<IncrementalAttributeAggregator> incrementalAttributeAggregators, Sidd... | finalBaseAttributes = new ArrayList<>(); |
541,785 | public static DateTime civilDate(ThreadContext context, final int y, final int m, final int d, final Chronology chronology) {<NEW_LINE>DateTime dt;<NEW_LINE>try {<NEW_LINE>if (d >= 0) {<NEW_LINE>// let d == 0 fail (raise 'invalid date')<NEW_LINE>dt = new DateTime(y, m, d, 0, 0, chronology);<NEW_LINE>} else {<NEW_LINE>d... | ms, last + d + 1); |
134,702 | public void runTask() {<NEW_LINE>if (!isValidBefore()) {<NEW_LINE>Msg.showError(this, null, "Retype Failed", errorMsg);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>newType = AbstractDecompilerAction.<MASK><NEW_LINE>if (newType == null || newType.isEquivalent(oldType)) {<NEW_LINE>// cancelled<NEW_LINE>return;<NEW_LINE>}<NEW_LI... | chooseDataType(tool, program, oldType); |
557,585 | private void loadDefaults(boolean listen) {<NEW_LINE>ClassLoader cl = AntBridge.getMainClassLoader();<NEW_LINE>InputStream taskDefaults = cl.getResourceAsStream("org/apache/tools/ant/taskdefs/defaults.properties");<NEW_LINE>if (taskDefaults != null) {<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>defaults.load(taskDefault... | err.log("IntrospectedInfo.defaults=" + defaults); |
956,620 | private void miniAdjust() {<NEW_LINE>// add<NEW_LINE>if (this.nodeHigh > this.MAX_NODE_HEIGHT) {<NEW_LINE>this.nodeHigh = this.MAX_NODE_HEIGHT;<NEW_LINE>}<NEW_LINE>if (this.nodeWidth > this.MAX_NODE_HEIGHT * this.nodeRatio) {<NEW_LINE>this.nodeWidth = (int) (this.MAX_NODE_HEIGHT * this.nodeRatio);<NEW_LINE>}<NEW_LINE>i... | this.MAX_SPACE_HEIGHT * this.spaceRatio); |
524,792 | private void createOrUpdateShards(final ClusterState state) {<NEW_LINE>RoutingNode localRoutingNode = state.getRoutingNodes().node(state.nodes().getLocalNodeId());<NEW_LINE>if (localRoutingNode == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DiscoveryNodes nodes = state.nodes();<NEW_LINE>RoutingTable routingTable = sta... | + shardId.getIndex() + " should have been created by createIndices"; |
1,448,585 | private void checkEnum(EnumDataSchema older, EnumDataSchema newer) {<NEW_LINE>checkName(older, newer);<NEW_LINE>_path.addLast(DataSchemaConstants.SYMBOLS_KEY);<NEW_LINE>// using list to preserve symbol order<NEW_LINE>List<String> newerOnlySymbols = new CheckerArrayList<>(newer.getSymbols());<NEW_LINE>newerOnlySymbols.<... | removeAll(older.getSymbols()); |
1,148,212 | protected void configureOptionalSettings(CommandLine cmd, SummaryGenerator generator) {<NEW_LINE>{<NEW_LINE>int repeatCount = Integer.parseInt(cmd.getOptionValue(OPTION_REPEAT, "-1"));<NEW_LINE>if (repeatCount > 0)<NEW_LINE>generator.getConfig().setRepeatCount(repeatCount);<NEW_LINE>}<NEW_LINE>{<NEW_LINE>long flowTimeo... | ignoreDefaultSummaries = cmd.hasOption(OPTION_IGNORE_DEFAULT_SUMMARIES); |
1,103,163 | private ClassPathModifier.Callback createClassPathModifierCallback() {<NEW_LINE>return new ClassPathModifier.Callback() {<NEW_LINE><NEW_LINE>public String getClassPathProperty(SourceGroup sg, String type) {<NEW_LINE>// NOI18N<NEW_LINE>assert sg != null : "SourceGroup cannot be null";<NEW_LINE>// NOI18N<NEW_LINE>assert ... | ) + ", " + type + "] is not supported"); |
288,592 | public void marshall(TapeArchive tapeArchive, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (tapeArchive == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(tapeArchive.getTapeARN(), TAPEARN_BINDING);<NEW_LIN... | tapeArchive.getTapeCreatedDate(), TAPECREATEDDATE_BINDING); |
658,540 | private static boolean checkIsXMLType(Type sourceType, Type targetType, List<TypePair> unresolvedTypes) {<NEW_LINE>int sourceTag = sourceType.getTag();<NEW_LINE>if (sourceTag == TypeTags.FINITE_TYPE_TAG) {<NEW_LINE>return isFiniteTypeMatch((BFiniteType) sourceType, targetType);<NEW_LINE>}<NEW_LINE>BXmlType target = ((B... | source.constraint, targetConstraint, unresolvedTypes); |
1,775,449 | public int onStartCommand(Intent intent, int flags, int startId) {<NEW_LINE>// Need to instantiate the task here since you can only run a task once.<NEW_LINE>int feedUpdaterInterval = SkyTubeApp.getSettings().getFeedUpdaterInterval();<NEW_LINE>if (feedUpdaterInterval > 0) {<NEW_LINE>compositeDisposable.add(YouTubeTasks... | Intent(this, MainActivity.class); |
816,355 | public void createNewDockContainerFor(DockableContent content, RelativePoint point) {<NEW_LINE>DockContainer container = getFactory(content.getDockContainerType()).createContainer(content);<NEW_LINE>register(container);<NEW_LINE>final DockWindow window = createWindowFor(null, container);<NEW_LINE>Dimension size = conte... | .myUiContainer.setPreferredSize(null)); |
145,668 | private void initComponents() {<NEW_LINE>EnvironmentVariablesTableModel evModel = new EnvironmentVariablesTableModel();<NEW_LINE>evModel.load();<NEW_LINE>jtEnvironmentVariables = new JKseTable(evModel);<NEW_LINE>jtEnvironmentVariables.setRowMargin(0);<NEW_LINE>jtEnvironmentVariables.getColumnModel().setColumnMargin(0);... | ) -> jbOK.requestFocus()); |
1,637,426 | final DescribeHumanTaskUiResult executeDescribeHumanTaskUi(DescribeHumanTaskUiRequest describeHumanTaskUiRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeHumanTaskUiRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | (super.beforeMarshalling(describeHumanTaskUiRequest)); |
1,629,483 | private void start(InetAddress host, int port) {<NEW_LINE>// TODO review listening use<NEW_LINE>listening = true;<NEW_LINE>EventLoopGroup bossGroup = new NioEventLoopGroup(1);<NEW_LINE>EventLoopGroup workerGroup = new NioEventLoopGroup();<NEW_LINE>EthereumChannelInitializer ethereumChannelInitializer = ethereumChannelI... | getClass().getName()); |
658,325 | public void logMigration(PO po, POInfo pinfo, String event) {<NEW_LINE>// Valid from Meta Data<NEW_LINE>// FR [ 390 ]<NEW_LINE>if (pinfo.isIgnoreMigration())<NEW_LINE>return;<NEW_LINE>// ignore statistic updates<NEW_LINE>if (pinfo.getTableName().equalsIgnoreCase("AD_Process") && !po.is_new() && po.is_ValueChanged("Stat... | m_migration.get_ID(), null); |
1,518,483 | private void sendSnapshotShardUpdate(final Snapshot snapshot, final ShardId shardId, final ShardSnapshotStatus status) {<NEW_LINE>remoteFailedRequestDeduplicator.executeOnce(new UpdateIndexShardSnapshotStatusRequest(snapshot, shardId, status), new ActionListener<>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void o... | , snapshot, status), e); |
734,585 | private void processIntersectingRange(@Nonnull UsageInfo2UsageAdapter usageInfo2UsageAdapter, @Nonnull final CharSequence chars, int hiStart, final int hiEnd, @Nonnull final TextAttributesKey[] tokenHighlights, final boolean selectUsageWithBold, @Nonnull final List<TextChunk> result) {<NEW_LINE><MASK><NEW_LINE>if (sele... | final TextAttributes originalAttrs = convertAttributes(tokenHighlights); |
1,042,765 | public IPSetForwardedIPConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>IPSetForwardedIPConfig iPSetForwardedIPConfig = new IPSetForwardedIPConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | class).unmarshall(context)); |
985,093 | public void retryCode(Connection conn) throws SQLException, Exception {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "DeleteServerLeaseRetry.retryCode", new Object[] { conn });<NEW_LINE>// If we were unable to get a connection, throw an exception, but not if we're stopping<NEW_LINE>if (_serverStopping) {<NEW... | Tr.exit(tc, "DeleteServerLeaseRetry.retryCode"); |
34,521 | final ListEventSourcesResult executeListEventSources(ListEventSourcesRequest listEventSourcesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEventSourcesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.