idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
244,300 | final DescribeScriptResult executeDescribeScript(DescribeScriptRequest describeScriptRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeScriptRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeScript"); |
95,314 | public StoredWorkflowDefinitionWithProject map(int index, ResultSet r, StatementContext ctx) throws SQLException {<NEW_LINE>String projName = r.getString("proj_name");<NEW_LINE>Optional<Instant<MASK><NEW_LINE>if (r.wasNull()) {<NEW_LINE>projName = r.getString("proj_deleted_name");<NEW_LINE>projDeletedAt = Optional.of(g... | > projDeletedAt = Optional.absent(); |
788,232 | private // /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>void addBindings() {<NEW_LINE>amountTextField.textProperty().bindBidirectional(model.amount);<NEW_LINE>volumeTextField.textProperty().bindBidirectional(model.volume);<NEW_LINE>totalToPayTextField.textProperty()... | .and(model.showPayFundsScreenDisplayed)); |
140,041 | public com.amazonaws.services.memorydb.model.SubnetInUseException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.memorydb.model.SubnetInUseException subnetInUseException = new com.amazonaws.services.memorydb.model.SubnetInUseException(null);<NEW_LINE>int origin... | String currentParentElement = context.getCurrentParentElement(); |
1,530,871 | public void read(org.apache.thrift.protocol.TProtocol prot, cancel_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(3);<NEW_LINE>if (incoming.get(0)) {<NEW... | struct.tinfo.read(iprot); |
1,090,101 | public Product addOnCatalog(ProductSupplier productSupplier) throws AxelorException {<NEW_LINE>ProductRepository productRepo = <MASK><NEW_LINE>if (productSupplier.getProductCode() == null) {<NEW_LINE>throw new AxelorException(productSupplier, TraceBackRepository.CATEGORY_NO_VALUE, I18n.get(IExceptionMessage.PRODUCT_SUP... | Beans.get(ProductRepository.class); |
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(i); |
1,029,810 | protected boolean classNamePresentInJavaLang(CtTypeReference<?> ref) {<NEW_LINE>Boolean presentInJavaLang = namesPresentInJavaLang.get(ref.getSimpleName());<NEW_LINE>if (presentInJavaLang == null) {<NEW_LINE>// The following procedure of determining if the handle is present in Java Lang or<NEW_LINE>// not produces "fal... | "java.lang." + ref.getSimpleName()); |
467,880 | public boolean contains(final double aLatitude, final double aLongitude) {<NEW_LINE>boolean latMatch = false;<NEW_LINE>boolean lonMatch = false;<NEW_LINE>// FIXME there's still issues when there's multiple wrap arounds<NEW_LINE>if (mLatNorth < mLatSouth) {<NEW_LINE>// either more than one world/wrapping or the bounding... | (aLatitude > this.mLatSouth)); |
177,685 | public ChangeStatus checkStatus(Database database) {<NEW_LINE>ChangeStatus result = new ChangeStatus();<NEW_LINE>Column example = new Column(Table.class, getCatalogName(), getSchemaName(), getTableName(), getColumnName());<NEW_LINE>try {<NEW_LINE>Column column = SnapshotGeneratorFactory.getInstance().createSnapshot(exa... | column.isAutoIncrement(), "Column is not auto-increment"); |
975,317 | public void buildModel() {<NEW_LINE>model = new Model();<NEW_LINE>out.println("The CycloHexan problem consists in finding the 3D configuration of a cyclohexane molecule.\n" + "It is decribed with a system of three non linear equations : \n" + " y^2 * (1 + z^2) + z * (z - 24 * y) = -13 \n" + " x^2 * (1 + y^2) + y * (y -... | "x", NEGATIVE_INFINITY, POSITIVE_INFINITY, precision); |
999,189 | final StartTargetedSentimentDetectionJobResult executeStartTargetedSentimentDetectionJob(StartTargetedSentimentDetectionJobRequest startTargetedSentimentDetectionJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startTargetedSentimentDetectionJobRequest);<NEW_LINE>AWSRequestMetrics awsRe... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,279,537 | public Flux<CommandResponse<XClaimCommand, Flux<ByteBufferRecord>>> xClaim(Publisher<XClaimCommand> commands) {<NEW_LINE>return connection.execute(cmd -> Flux.from(commands).map(command -> {<NEW_LINE>String[] ids = command<MASK><NEW_LINE>io.lettuce.core.Consumer<ByteBuffer> from = io.lettuce.core.Consumer.from(ByteUtil... | .getOptions().getIdsAsStringArray(); |
1,023,912 | final ListProtectionGroupsResult executeListProtectionGroups(ListProtectionGroupsRequest listProtectionGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listProtectionGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
224,926 | public List<IamPolicySearchResult> searchAllIamPolicies(String scope, String query) throws IOException {<NEW_LINE>logger.atInfo().log("Searching all IAM policies.");<NEW_LINE>List<IamPolicySearchResult> iamPolicySearchResults = new ArrayList<IamPolicySearchResult>();<NEW_LINE>int pageSize = 0;<NEW_LINE>String pageToken... | response = client.searchAllIamPolicies(request); |
1,225,039 | private void restorePosition(Video item) {<NEW_LINE>State state = mStateService.getByVideoId(item.videoId);<NEW_LINE>// Ignore up to 10% watched because the video might be opened on phone and closed immediately.<NEW_LINE>boolean containsWebPosition = item.percentWatched >= RESTORE_POSITION_PERCENTS;<NEW_LINE>boolean st... | ).setPlay(getPlayEnabled()); |
87,428 | public static VespaChangeRequest fromSlime(Slime slime) {<NEW_LINE>var inspector = slime.get();<NEW_LINE>var id = inspector.field(ID_FIELD).asString();<NEW_LINE>var zoneId = ZoneId.from(inspector.field(ZONE_FIELD).asString());<NEW_LINE>var changeRequestSource = readChangeRequestSource(inspector.field(SOURCE_FIELD));<NE... | (inspector.field(ACTION_PLAN_FIELD)); |
478,722 | protected final void registerBean(final String prefix, final Class<T> algorithmClass, final BeanDefinitionRegistry registry) {<NEW_LINE>boolean existPrefix = PropertyUtil.containPropertyPrefix(environment, prefix);<NEW_LINE>if (existPrefix) {<NEW_LINE>Map<String, Object> paramMap = PropertyUtil.handle(environment, pref... | environment, propsPrefix, Map.class); |
462,344 | public void writeDateTime19(int year, int month, int dayOfMonth, int hour, int minute, int second) {<NEW_LINE>ensureCapacity(off + 21);<NEW_LINE>bytes[off++] = '"';<NEW_LINE>bytes[off++] = (byte) (year / 1000 + '0');<NEW_LINE>bytes[off++] = (byte) ((year / 100) % 10 + '0');<NEW_LINE>bytes[off++] = (byte) ((year / 10) %... | ) (month % 10 + '0'); |
1,568,374 | public void run() {<NEW_LINE>int offset = fContentAssistSubjectControlAdapter.getSelectedRange().x;<NEW_LINE>IContextInformation[] contexts = computeContextInformation(offset);<NEW_LINE>int count = (contexts == null ? 0 : contexts.length);<NEW_LINE>if (count == 1) {<NEW_LINE>ContextFrame frame = createContextFrame(cont... | ContextFrame stackFrame = it.next(); |
1,506,649 | public void onMatch(RelOptRuleCall call) {<NEW_LINE>final HashGroupJoin hashGroupJoin = call.rel(0);<NEW_LINE>RelTraitSet emptyTraitSet = hashGroupJoin.getCluster().getPlanner().emptyTraitSet();<NEW_LINE>RelNode left = convert(hashGroupJoin.getLeft(), emptyTraitSet.replace(MppConvention.INSTANCE));<NEW_LINE>RelNode rig... | left, keyDataType, joinInfo.leftKeys); |
360,340 | private void bindValue(PreparedStatement ps, int col, Value n) throws SQLException {<NEW_LINE>if (n == null)<NEW_LINE>return;<NEW_LINE>if (n instanceof URI) {<NEW_LINE>ps.setInt(col, 1);<NEW_LINE>ps.setString(col + 1, n.toString());<NEW_LINE>ps.setNull(col + 2, java.sql.Types.VARCHAR);<NEW_LINE>} else if (n instanceof ... | 2, lit.getLanguage()); |
1,392,744 | protected void loadTileLayer(TiledMap map, MapLayers parentLayers, Element element) {<NEW_LINE>if (element.getName().equals("layer")) {<NEW_LINE>int width = element.getIntAttribute("width", 0);<NEW_LINE>int height = element.getIntAttribute("height", 0);<NEW_LINE>int tileWidth = map.getProperties().get("tilewidth", Inte... | getTileIds(element, width, height); |
550,293 | public static Memory fseek(Environment env, TraceInfo trace, Memory stream, long offset, int whence) {<NEW_LINE>if (stream.instanceOf(Stream.CLASS_NAME)) {<NEW_LINE>try {<NEW_LINE>switch(whence) {<NEW_LINE>case SEEK_CUR:<NEW_LINE>offset += env.invokeMethod(trace, stream, "getPosition").toLong();<NEW_LINE>break;<NEW_LIN... | env.warning(trace, "fseek(): unable to seek in a non-stream"); |
325,281 | public Object userGetExecutionHistory(String symbol, Date timestamp) throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = null;<NEW_LINE>// verify the required parameter 'symbol' is set<NEW_LINE>if (symbol == null) {<NEW_LINE>VolleyError error = new VolleyError("M... | ("", "symbol", symbol)); |
272,515 | // CPU-Scheduling with Stride<NEW_LINE>private void replacePerBlock(StructuredGraph graph, ParallelRangeNode range) {<NEW_LINE>buildBlockSize(graph, range);<NEW_LINE>final GlobalThreadIdNode threadId = graph.addOrUnique(new GlobalThreadIdNode(ConstantNode.forInt(range.index(), graph)));<NEW_LINE>final MulNode newOffset... | .MIN, JavaKind.Int)); |
1,037,262 | /*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.microservice.api.device.IDeviceManagement#searchDeviceAlarms(<NEW_LINE>* com.sitewhere.spi.search.device.IDeviceAlarmSearchCriteria)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public ISearchResults<RdbDeviceAlarm> searchDeviceAlarms(IDeviceAlarmSearchCriteria criteria) throws Si... | path = root.get("triggeringEventId"); |
703,388 | private ExternallyReferencedCandidate forRecord(@NonNull final I_C_Invoice_Candidate icRecord) {<NEW_LINE>final ExternallyReferencedCandidateBuilder candidate = ExternallyReferencedCandidate.builder();<NEW_LINE>candidate.orgId(OrgId.ofRepoId(icRecord.getAD_Org_ID())).id(InvoiceCandidateId.ofRepoId(icRecord.getC_Invoice... | (icRecord.getC_UOM_ID())); |
1,250,094 | public PropertySource<?> locate(Environment environment) {<NEW_LINE>if (!(environment instanceof ConfigurableEnvironment)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ConfigurableEnvironment env = (ConfigurableEnvironment) environment;<NEW_LINE>String applicationName = this.properties.getName();<NEW_LINE>if (!StringUti... | applicationName = env.getProperty(SPRING_APP_NAME_PROP); |
633,147 | // MRI: rb_str_rindex<NEW_LINE>public static int rindex(ByteList source, int sourceChars, int subChars, int pos, CodeRangeable subStringCodeRangeable, Encoding enc) {<NEW_LINE>if (subStringCodeRangeable.scanForCodeRange() == CR_BROKEN)<NEW_LINE>return -1;<NEW_LINE>final ByteList subString = subStringCodeRangeable.getBy... | int srcBeg = source.getBegin(); |
1,406,521 | void read(WizardDescriptor settings) {<NEW_LINE>this.wizardDescriptor = settings;<NEW_LINE>// NOI18N<NEW_LINE>File projectLocation = (File) settings.getProperty("projdir");<NEW_LINE>((FolderList) this.sourcePanel).setProjectFolder(projectLocation);<NEW_LINE>((FolderList) this.testsPanel).setProjectFolder(projectLocatio... | ) testsPanel).setLastUsedDir(currentDirectory); |
1,703,627 | final ResendContactReachabilityEmailResult executeResendContactReachabilityEmail(ResendContactReachabilityEmailRequest resendContactReachabilityEmailRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(resendContactReachabilityEmailRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Route 53 Domains"); |
1,846,582 | public Request<ListHostedZonesRequest> marshall(ListHostedZonesRequest listHostedZonesRequest) {<NEW_LINE>if (listHostedZonesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ListHostedZonesRequest> request = new DefaultRequest<ListHostedZo... | (listHostedZonesRequest.getMaxItems())); |
472,294 | private void handleFacesBehaviorRenderer(FacesConfigImpl facesConfig, Set<Class<?>> classes) {<NEW_LINE>for (Class<?> clazz : classes) {<NEW_LINE>FacesBehaviorRenderer facesBehaviorRenderer = (FacesBehaviorRenderer) clazz.getAnnotation(FacesBehaviorRenderer.class);<NEW_LINE>if (facesBehaviorRenderer != null) {<NEW_LINE... | clazz.getName() + ")"); |
1,149,054 | public void marshall(CreateBotLocaleRequest createBotLocaleRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createBotLocaleRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createBotLocaleReq... | createBotLocaleRequest.getDescription(), DESCRIPTION_BINDING); |
174,510 | protected Control createDialogArea(Composite parent) {<NEW_LINE>getShell().setText("Choose content editor");<NEW_LINE>Composite group = (Composite) super.createDialogArea(parent);<NEW_LINE>GridData gd = new GridData(GridData.FILL_BOTH);<NEW_LINE>group.setLayoutData(gd);<NEW_LINE>Label infoLabel = new Label(group, SWT.N... | add(part.getTitle()); |
220,631 | private static void closeConnection(@NotNull final ClientConnection clientConnection, final boolean withReasonCode, final boolean withReasonString, @Nullable Mqtt5DisconnectReasonCode reasonCode, @Nullable String reasonString, @NotNull final Mqtt5UserProperties userProperties, final boolean forceClose) {<NEW_LINE>if (r... | clientConnection.proposeClientState(ClientState.DISCONNECTED_TAKEN_OVER); |
266,893 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>TargetCardInLibrary target = new TargetCardInLibrary();<NEW_LINE>player.searchLibrary(target, source, game);<NEW_LINE>Card card =... | player.shuffleLibrary(source, game); |
1,351,532 | public static void unzip(final GATKPath path, final File dest, final String... files) {<NEW_LINE>Utils.nonNull(path, "the path provided cannot be null");<NEW_LINE>Utils.nonNull(dest, "the destination directory provided cannot be null");<NEW_LINE>Utils.validateArg((dest.isDirectory() || dest.mkdirs()) && dest.canWrite()... | dest, entry.getName()); |
323,086 | public void visitNodeCount(int labelId, long count) {<NEW_LINE>if (isValidLabelId(labelId)) {<NEW_LINE>long pos = labelIdArrayPos(labelId);<NEW_LINE>long expected = unmarkCountVisited(nodeCounts.get(pos));<NEW_LINE>if (expected != count) {<NEW_LINE>reporter.forCounts(new CountsEntry(nodeKey(labelId), count)).inconsiste... | count)).inconsistentNodeCount(0); |
1,231,316 | public long writeSeeds(Path sampleSeedPath) throws Exception {<NEW_LINE>int fileNo = 0;<NEW_LINE>// total number of samples<NEW_LINE>long numTotal = this.numSamples;<NEW_LINE>// number of initial centroids<NEW_LINE>int centriodNum = genParams.length;<NEW_LINE>long numPerCluster = (long) Math.ceil(numTotal / (double) ce... | + sb.toString())); |
269,877 | public PublicDnsNamespacePropertiesChange unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PublicDnsNamespacePropertiesChange publicDnsNamespacePropertiesChange = new PublicDnsNamespacePropertiesChange();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement... | ().unmarshall(context)); |
715,141 | public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) {<NEW_LINE>User currentUser <MASK><NEW_LINE>String userParam = webRequest.getParameter("ownerId");<NEW_LINE>if (StringUtils.isNotBlank(userParam) && currentUser.g... | = getUserContext().getCurrentUser(); |
1,619,389 | private void processStatus() {<NEW_LINE>int count = 0;<NEW_LINE>// Requests with status with after timeout<NEW_LINE>String sql = "SELECT * FROM R_Request r WHERE EXISTS (" + "SELECT * FROM R_Status s " + "WHERE r.R_Status_ID=s.R_Status_ID" + " AND s.TimeoutDays > 0 AND s.Next_Status_ID > 0" + " AND r.DateLastAction+s.T... | ResultSet rs = pstmt.executeQuery(); |
634,291 | public void growIfNeeded() {<NEW_LINE>// Vertices<NEW_LINE>if ((vertexI + 1) * primitiveVerticesSize >= vertices.capacity()) {<NEW_LINE>int offset = getVerticesOffset();<NEW_LINE>int newSize <MASK><NEW_LINE>if (newSize % primitiveVerticesSize != 0)<NEW_LINE>newSize += newSize % primitiveVerticesSize;<NEW_LINE>ByteBuffe... | = vertices.capacity() * 2; |
167,374 | public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {<NEW_LINE>try {<NEW_LINE>CurrentPassport passport = passport(ctx);<NEW_LINE>if (msg instanceof HttpRequest) {<NEW_LINE>passport.add(PassportState.OUT_REQ_HEADERS_SENDING);<NEW_LINE>promise.addListener(new PassportStateLis... | .OUT_REQ_HEADERS_SENT, PassportState.OUT_REQ_HEADERS_ERROR_SENDING)); |
558,139 | public void startMoving(final double finalLat, final double finalLon, final Pair<Integer, Double> finalZoom, final boolean pendingRotation, final Float finalRotation, final boolean notifyListener) {<NEW_LINE>stopAnimatingSync();<NEW_LINE>final RotatedTileBox rb = tileView.getCurrentRotatedTileBox().copy();<NEW_LINE>dou... | setLatLonAnimate(finalLat, finalLon, notifyListener); |
1,164,393 | public Parent createContent() {<NEW_LINE>final NumberAxis xAxis = new NumberAxis(0, 128, 8);<NEW_LINE>final NumberAxis yAxis = new <MASK><NEW_LINE>final AreaChart<Number, Number> ac = new AreaChart<>(xAxis, yAxis);<NEW_LINE>final String audioAreaChartCss = getClass().getResource("AudioAreaChart.css").toExternalForm();<... | NumberAxis(0, 50, 10); |
436,305 | public void validate() throws ValidationException {<NEW_LINE>if (hasValidationError()) {<NEW_LINE>setValidationError(null);<NEW_LINE>}<NEW_LINE>if (!isVisibleRecursive() || !isEditableWithParent() || !isEnabledRecursive()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Messages messages = beanLocator.get(Messages.NAME);<NEW_LI... | requiredMessage = messages.getMainMessage("validationFail.defaultRequiredMessage"); |
1,661,135 | public static // private static int counter = 1;<NEW_LINE>List<Project> mock(int projectId, String methodName, String pattern, String account) {<NEW_LINE>Date now = new Date();<NEW_LINE>List<Project> resultList = new ArrayList<Project>();<NEW_LINE>if (!DateUtils.compWorkAndCurrByDate(mockTotalNumDate, now)) {<NEW_LINE>... | mockInfo.put("pattern", pattern); |
488,629 | // init when needed<NEW_LINE>void init() throws SocialLoginException {<NEW_LINE>if (sslSupport != null) {<NEW_LINE>Properties sslProps = null;<NEW_LINE>this.jsseHelper = sslSupport.getJSSEHelper();<NEW_LINE>if (this.jsseHelper != null) {<NEW_LINE>try {<NEW_LINE>if (sslRef != null) {<NEW_LINE>// SSLConfig<NEW_LINE>sslPr... | websphere.ssl.Constants.SSLPROP_KEY_STORE_NAME); |
979,653 | public synchronized /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.ws.objectManager.ObjectStore#close()<NEW_LINE>*/<NEW_LINE>void close() throws ObjectManagerException {<NEW_LINE>final String methodName = "close";<NEW_LINE>if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())<NEW_LINE>trace.entry... | cclass, "close", exception, "1:1082:1.57"); |
1,066,525 | protected void encodeHiddenSelect(FacesContext context, AutoComplete ac, String clientId, List<String> values) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String id = clientId + "_hinput";<NEW_LINE>writer.startElement("select", null);<NEW_LINE>writer.writeAttribute("id", ... | writeAttribute("multiple", "multiple", null); |
1,067,334 | protected void launchGroovy(final IType runType, final IJavaProject javaProject, final String mode) {<NEW_LINE>try {<NEW_LINE>boolean excludeTestCode = (runType != null && !hasTestAttribute(runType));<NEW_LINE>Map<String, String> launchProperties = createLaunchProperties(runType, javaProject);<NEW_LINE>String launchNam... | ) : javaProject.getElementName()); |
817,318 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>requireCertificateChBox = new javax.swing.JCheckBox();<NEW_LINE>// NOI18N<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(requireCertificateChBox, org.openide.util.NbBundle.get... | (TransportSecurity.class, "LBL_RequireClientCertificate")); |
638,443 | private JComponent createColorButtonsPanel(final FileColorConfiguration configuration) {<NEW_LINE>final JPanel result = new JPanel(new BorderLayout());<NEW_LINE>result.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));<NEW_LINE>final JPanel inner = new JPanel();<NEW_LINE>inner.setLayout(new BoxLayout(inner, BoxLay... | 5, 5, 5))); |
728,329 | private void init() {<NEW_LINE>exceptionUnmarshallers.add(new InvalidFirehoseDestinationExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new InvalidS3ConfigurationExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new InvalidDeliveryOptionsExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshaller... | (chainFactory.newRequestHandlerChain("/com/amazonaws/services/simpleemail/request.handlers")); |
1,198,371 | private void doExecute() {<NEW_LINE>assert enabled_ : "AppCommand executed when it was not enabled";<NEW_LINE>if (!enabled_)<NEW_LINE>return;<NEW_LINE>assert visible_ : "AppCommand executed when it was not visible";<NEW_LINE>if (!visible_)<NEW_LINE>return;<NEW_LINE>// if this window is a satellite but the command only ... | > 0 : "AppCommand executed but nobody was listening: " + getId(); |
135,121 | public void drawUI(@NonNull final ViewGroup parent, @NonNull final MapActivity mapActivity) {<NEW_LINE>FavouritesHelper helper = mapActivity.getMyApplication().getFavoritesHelper();<NEW_LINE>final View root = LayoutInflater.from(parent.getContext()).inflate(R.layout.quick_action_add_favorite, parent, false);<NEW_LINE>p... | ).put(KEY_CATEGORY_NAME, ""); |
719,590 | private void jsonError(final JsonParseException ex, final HttpServletRequest request, final HttpServletResponse response) throws IOException {<NEW_LINE>Map<String, Object> root = new HashMap<String, Object>();<NEW_LINE>Map<String, Object> error = new HashMap<String, Object>();<NEW_LINE>String filename = jsonFilename(re... | error.put("filename", filename); |
1,684,432 | private void moveClassInstanceMethodWithStub(String className, Node methodDefinition, Node destinationParent) {<NEW_LINE>checkArgument(methodDefinition.isMemberFunctionDef(), methodDefinition);<NEW_LINE>Node classMembers = checkNotNull(methodDefinition.getParent());<NEW_LINE>checkState(<MASK><NEW_LINE>Node classNode = ... | classMembers.isClassMembers(), classMembers); |
781,778 | protected void dispatchDraw(Canvas canvas) {<NEW_LINE>super.dispatchDraw(canvas);<NEW_LINE>if (mColors == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int pl = getPaddingLeft();<NEW_LINE>int pr = getPaddingRight();<NEW_LINE>int pt = getPaddingTop();<NEW_LINE>int pb = getPaddingBottom();<NEW_LINE>int horizontalSpacing =... | mBadgesPerRow, availableVertical / getBadgeRows()); |
687,217 | private PsiReference resolveFieldDefinition(GraphQLReferenceMixin element, GraphQLFieldDefinition fieldDefinition) {<NEW_LINE>final String name = fieldDefinition.getName();<NEW_LINE>if (name != null) {<NEW_LINE>final GraphQLTypeSystemDefinition typeSystemDefinition = PsiTreeUtil.getParentOfType(element, GraphQLTypeSyst... | findChildOfType(typeSystemDefinition, GraphQLImplementsInterfaces.class); |
246,186 | private AndroidManifest parse(File androidManifestFile, boolean libraryProject) throws AndroidManifestNotFoundException {<NEW_LINE>DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();<NEW_LINE>Document doc;<NEW_LINE>try {<NEW_LINE>DocumentBuilder docBuilder = docBuilderFactory.newDocumentBui... | Element documentElement = doc.getDocumentElement(); |
1,288,203 | public <R> CompletableFuture<R> handleAsync(BiFunction<? super T, Throwable, ? extends R> action, Executor executor) {<NEW_LINE>rejectManagedTask(action);<NEW_LINE>FutureRefExecutor futureExecutor = supportsAsync(executor);<NEW_LINE>if (!(action instanceof ContextualBiFunction)) {<NEW_LINE>ThreadContextDescriptor conte... | futureExecutor == null ? executor : futureExecutor); |
624,324 | public void genTokenStrings() {<NEW_LINE>// Generate a string for each token. This creates a static<NEW_LINE>// array of Strings indexed by token type.<NEW_LINE>println("");<NEW_LINE>println("public static final tokenNames_ = (");<NEW_LINE>tabs++;<NEW_LINE>// Walk the token vocabulary and generate a Vector of strings<N... | String) v.elementAt(i); |
1,192,044 | public void handleEvent(Event event) {<NEW_LINE>if (list.getSelectionCount() == 0 || list.isSelected(list.getItemCount() - 1)) {<NEW_LINE>// do not move anything if either nothing is selected or only the last item is selected<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int[] selectedItems = list.getSelectionIndices();<NEW_LIN... | list.setItem(index, oldItem); |
609,723 | public void registerService(String serviceName, String groupName, Instance instance) throws NacosException {<NEW_LINE>NAMING_LOGGER.info("[REGISTER-SERVICE] {} registering service {} with instance: {}", namespaceId, serviceName, instance);<NEW_LINE>String groupedServiceName = NamingUtils.getGroupedName(serviceName, gro... | nacosUrlInstance, params, HttpMethod.POST); |
890,729 | private ObjectInstance dumpSource(InteropLibrary iop, HeapDump seg, Object source) throws IOException, UnsupportedMessageException {<NEW_LINE>String srcName = readMember(iop, source, "name", iop::asString);<NEW_LINE>String mimeType = asStringOrNull(iop, source, "mimeType");<NEW_LINE>String uri = asStringOrNull(iop, sou... | asStringOrNull(iop, source, "characters"); |
252,390 | public static String nanoSecToString(final long nS) {<NEW_LINE>final long rem_nS = (long) (nS % 1000.0);<NEW_LINE>final long rem_uS = (long) (nS / 1000.0 % 1000.0);<NEW_LINE>final long rem_mS = (long) (nS / 1000000.0 % 1000.0);<NEW_LINE>final long sec = (long) (nS / 1000000000.0);<NEW_LINE>final String nSstr = zeroPad(... | .toString(rem_mS), 3); |
130,135 | protected void addObjectCreateActions(DBRProgressMonitor monitor, DBCExecutionContext executionContext, List<DBEPersistAction> actions, ObjectCreateCommand command, Map<String, Object> options) {<NEW_LINE>final ExasolConnection con = command.getObject();<NEW_LINE>StringBuilder script = new StringBuilder(String.format("... | DBUtils.getQuotedIdentifier(con))); |
575,973 | public void onTextAvailable(ProcessEvent event, Key outputType) {<NEW_LINE>String text = StringUtil.notNullize(event.getText());<NEW_LINE>if (outputType == ProcessOutputTypes.STDERR) {<NEW_LINE>LOG.warn(text.trim());<NEW_LINE>} else {<NEW_LINE>LOG.<MASK><NEW_LINE>}<NEW_LINE>RunningInfo result = null;<NEW_LINE>PendingIn... | info(text.trim()); |
1,319,506 | public View onCreateDemoView(LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, @Nullable Bundle bundle) {<NEW_LINE>View view = layoutInflater.inflate(R.layout.cat_menu_fragment, viewGroup, false);<NEW_LINE>Button button = view.<MASK><NEW_LINE>Button iconMenuButton = view.findViewById(R.id.menu_button_with_i... | findViewById(R.id.menu_button); |
36,965 | private void parseBindingConfig(SonosBindingConfig config, Item item, String bindingConfig) throws BindingConfigParseException {<NEW_LINE>String sonosID = null;<NEW_LINE>String commandAsString = null;<NEW_LINE>String sonosCommand = null;<NEW_LINE>if (bindingConfig != null) {<NEW_LINE>Matcher actionMatcher = ACTION_CONF... | statusMatcher + "] or three parts [config=" + actionMatcher + "]"); |
303,074 | public static RedisConnection doGetConnection(RedisConnectionFactory factory, boolean allowCreate, boolean bind, boolean transactionSupport) {<NEW_LINE>Assert.notNull(factory, "No RedisConnectionFactory specified");<NEW_LINE>RedisConnectionHolder conHolder = (RedisConnectionHolder) TransactionSynchronizationManager.get... | TransactionSynchronizationManager.bindResource(factory, holderToUse); |
1,532,697 | public void warn(String format, /*@Nullable*/<NEW_LINE>Object... args) {<NEW_LINE>int countSinceLastWarning = 0;<NEW_LINE>boolean logWarning = false;<NEW_LINE>synchronized (warningRateLimiter) {<NEW_LINE>if (warningRateLimiter.tryAcquire()) {<NEW_LINE>logWarning = true;<NEW_LINE>countSinceLastWarning = this.countSinceL... | format + " (this warning will be logged at most once a minute, {}" + " warnings were suppressed since it was last logged)", argsPlus); |
1,594,311 | public void execute(final Map<String, Object> attributes) throws FrameworkException {<NEW_LINE>final DatabaseService graphDb = Services.getInstance().getDatabaseService();<NEW_LINE>final String mode = (String) attributes.get("mode");<NEW_LINE>final String fileName = (String) attributes.get("file");<NEW_LINE>final Boole... | securityContext, fileName, doValidation, batchSize); |
1,478,474 | public static void convert(GrayS64 input, GrayI16 output) {<NEW_LINE>if (input.isSubimage() || output.isSubimage()) {<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, input.height, y -> {<NEW_LINE>for (int y = 0; y < input.height; y++) {<NEW_LINE>int indexSrc = input.getIndex(0, y);<NEW_LINE>int indexDst = <MASK... | output.getIndex(0, y); |
1,642,068 | private synchronized void initiateProcessing(ProcessedFiles previousWork) {<NEW_LINE>try {<NEW_LINE>Predicate<TabletFile> fileSelector = file -> Math.abs(Hashing.murmur3_32_fixed().hashString(file.getPathStr(), UTF_8).asInt()) % modulus == remainder;<NEW_LINE>if (previousWork != null) {<NEW_LINE>fileSelector = fileSele... | , factory), ProcessedFiles::new); |
803,815 | private String[] checkSignatures(String sigs) {<NEW_LINE>if (sigs == null || sigs.length() == 0)<NEW_LINE>return null;<NEW_LINE>if (JSch.getLogger().isEnabled(Logger.INFO)) {<NEW_LINE>JSch.getLogger().log(Logger.INFO, "CheckSignatures: " + sigs);<NEW_LINE>}<NEW_LINE>java.util.Vector result = new java.util.Vector();<NEW... | 0, result.size()); |
649,542 | protected WsByteBuffer[] marshallBinaryHeader(WsByteBuffer[] inBuffers, HeaderElement elem) {<NEW_LINE>if (elem.wasRemoved()) {<NEW_LINE>return inBuffers;<NEW_LINE>}<NEW_LINE>WsByteBuffer[] buffers = inBuffers;<NEW_LINE>final byte[] value = elem.asRawBytes();<NEW_LINE>if (null != value) {<NEW_LINE>HeaderKeys key = elem... | elem.getValueLength(), buffers); |
175,018 | public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T> Join<T> createJoin(final List<Stage<?>> stages, final Function10<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T> constructor, final TableIdentifier<T0> t0, final TableIdentifier<T1> t1, final TableIdentifier<T2> t2, final TableIdentifier<T3> t3, final TableIdentifier<T4> t4... | rsMapper(stages, 6, t6); |
1,330,638 | private ObjectNode buildSchema(ApiVersion crApiVersion, Property property, boolean description) {<NEW_LINE>PropertyType propertyType = property.getType();<NEW_LINE>Class<?> returnType = propertyType.getType();<NEW_LINE>final ObjectNode schema;<NEW_LINE>if (propertyType.getGenericType() instanceof ParameterizedType && (... | schema.put("type", "object"); |
943,003 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,216,306 | public Observable<VectorSchemaRoot> execute(RootContext rootContext) {<NEW_LINE>return input.execute(rootContext).reduce((root, root2) -> {<NEW_LINE>NLJoinPlan.merge(root, root2);<NEW_LINE>root2.close();<NEW_LINE>return root;<NEW_LINE>}).map(input -> {<NEW_LINE>int rowCount = input.getRowCount();<NEW_LINE>int columnCou... | lexQuickSort(rootAllocator, input, collect); |
627,360 | final GetCloudFrontOriginAccessIdentityConfigResult executeGetCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest getCloudFrontOriginAccessIdentityConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCloudFrontOriginAccessIdentityConfigRequest);<NEW_LIN... | addHandlerContext(HandlerContextKey.SERVICE_ID, "CloudFront"); |
1,261,421 | public void marshall(MonitoringJobDefinition monitoringJobDefinition, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (monitoringJobDefinition == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(monitoringJobDe... | monitoringJobDefinition.getMonitoringInputs(), MONITORINGINPUTS_BINDING); |
1,026,207 | private Throwable validateInjectionPoint(InjectionPoint injectionPoint, Type conversionType, Type injectionType, ClassLoader classLoader, boolean optional, Claim claim) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, "validateInjectionPoint", injectionPoint, conversio... | injectionTypesForQualifier = injectionTypes.get(claim); |
1,749,851 | private void handleIrChildren(GraphNode topNode, Set<GraphNode> set) throws DFANodeSplitBailoutException {<NEW_LINE>ArrayDeque<GraphNode> dfsList = new ArrayDeque<>();<NEW_LINE>ArrayList<Set<GraphNode>> sccList = new ArrayList<>();<NEW_LINE>for (GraphNode child : topNode.getDomChildren(this)) {<NEW_LINE>if (!isDone(chi... | set, topNode.getDomTreeDepth()); |
256,365 | private void mapRequestMatchersUrl(YamlContract.Request yamlContractRequest, Request request) {<NEW_LINE>Object url = Optional.ofNullable(request.getUrl()).map(Url::getClientValue).orElse(null);<NEW_LINE>YamlContract.KeyValueMatcher keyValueMatcher = new YamlContract.KeyValueMatcher();<NEW_LINE>if (url instanceof Regex... | RegexProperty) url).pattern(); |
1,398,326 | protected void populateComponents() {<NEW_LINE>JPanel workPanel = new JPanel(new BorderLayout());<NEW_LINE>{<NEW_LINE>Box hbox = Box.createHorizontalBox();<NEW_LINE>hbox.setBorder(BorderFactory.createTitledBorder("Schedule"));<NEW_LINE>hbox.add(new JLabel("Expression: "));<NEW_LINE>scheduleText = new JTextField();<NEW_... | setText(snap.toString()); |
813,896 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Set<Card> toBattlefield = new HashSet<>();<NEW_LINE>if (controller != null) {<NEW_LINE>for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {<NEW_LINE>Player <MA... | player = game.getPlayer(playerId); |
1,693,217 | final PutStorageConfigurationResult executePutStorageConfiguration(PutStorageConfigurationRequest putStorageConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putStorageConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | responseHandler, executionContext, null, endpointTraitHost); |
1,579,722 | private void createComponents() {<NEW_LINE>constraints.fill = GridBagConstraints.BOTH;<NEW_LINE>constraints.weightx = 1;<NEW_LINE>int x = 0;<NEW_LINE>int y = 0;<NEW_LINE>add(new JLabel("Symbol"), x, y);<NEW_LINE>add(new JLabel("Quantity"), ++x, y);<NEW_LINE>add(new JLabel("Side"), ++x, y);<NEW_LINE>add(new JLabel("Type... | messageLabel.setHorizontalAlignment(JLabel.CENTER); |
951,895 | public void deleteLocksPath(String path, String token) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'path' is set<NEW_LINE>if (path == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'path' when calling deleteLocksPath");<NEW_LINE>... | throw new ApiException(400, "Missing the required parameter 'token' when calling deleteLocksPath"); |
16,389 | private static boolean promptToAddTMARowOrColumn(final ImageData<?> imageData, final TMAAddType type) {<NEW_LINE>String NAME = type.commandName();<NEW_LINE>if (imageData == null) {<NEW_LINE>Dialogs.showNoImageError(NAME);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (imageData.getHierarchy().getTMAGrid() == null) {<NE... | .getROI().getCentroidY(); |
94,342 | float[] computeDowngradePointList(final int pSize) {<NEW_LINE>if (pSize == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (mDowngradePixelSize == pSize) {<NEW_LINE>return mDowngradePointList;<NEW_LINE>}<NEW_LINE>computeProjected();<NEW_LINE>final long projectedSize = mProjectedWidth > mProjectedHeight ? mProjectedWi... | PointAccepter pointAccepter = new SideOptimizationPointAccepter(listPointAccepter); |
274,387 | public void analyze(Analyzer analyzer) throws AnalysisException {<NEW_LINE>if (userIdent != null) {<NEW_LINE>userIdent.analyze(analyzer.getClusterName());<NEW_LINE>} else {<NEW_LINE>FeNameFormat.checkRoleName(role, false, /* can not be superuser */<NEW_LINE>"Can not revoke from role");<NEW_LINE>role = ClusterNamespace.... | analyzer.getClusterName(), role); |
1,044,203 | // cm, em, ex, in, mm, pc, pt, px<NEW_LINE>private static float parseLength(String s, String defaultString) {<NEW_LINE>if (s == null) {<NEW_LINE>s = defaultString;<NEW_LINE>}<NEW_LINE>if (s.endsWith("%")) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>// $NON-NLS-1$<NEW_LINE>throw new UnsupportedOperationException("TODO parseLengt... | )) * dpi.x * 0.0393700787f; |
384,665 | private static RunFontSelector createRunFontSelector(WordprocessingMLPackage wmlPackage) {<NEW_LINE>return new RunFontSelector(wmlPackage, new RunFontCharacterVisitor() {<NEW_LINE><NEW_LINE>DocumentFragment df;<NEW_LINE><NEW_LINE>StringBuilder sb = new StringBuilder(1024);<NEW_LINE><NEW_LINE>Element span;<NEW_LINE><NEW... | runFontSelector.setAttribute(span, fontname); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.