idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
940,356 | public boolean isValid() {<NEW_LINE>if (!super.isValid())<NEW_LINE>return false;<NEW_LINE>Document document = PsiDocumentManager.getInstance(getProject()<MASK><NEW_LINE>if (document == null) {<NEW_LINE>myCachedResult = null;<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Boolean cachedResult = myCachedResult;<NEW_LINE>if (... | ).getDocument(getPsiFile()); |
203,741 | private void jitWalkResolveMethodFrame_walkD(WalkState walkState) throws CorruptDataException {<NEW_LINE>pendingSendScanCursor = pendingSendScanCursor.sub(1);<NEW_LINE>if (!floatRegistersRemaining.eq(0)) {<NEW_LINE>UDATA fpParmNumber = new UDATA(J9SW_JIT_FLOAT_ARGUMENT_REGISTER_COUNT).sub(floatRegistersRemaining);<NEW_... | floatRegistersRemaining = floatRegistersRemaining.sub(1); |
886,667 | public boolean updateProjectTree(final Module[] modules, final ModuleGroup group) {<NEW_LINE>// isn't visible<NEW_LINE>if (myRoot.getChildCount() == 0)<NEW_LINE>return false;<NEW_LINE>final MyNode[] nodes <MASK><NEW_LINE>int i = 0;<NEW_LINE>for (Module module : modules) {<NEW_LINE>MyNode node = findModuleNode(module);<... | = new MyNode[modules.length]; |
873,851 | public static <T extends Prediction> Prediction voteOnFeature(List<T> predictions, double[] weights) {<NEW_LINE>Preconditions.checkArgument(!predictions.isEmpty(), "No predictions");<NEW_LINE>Preconditions.checkArgument(predictions.size() == weights.length, "%s predictions but %s weights?", predictions.<MASK><NEW_LINE>... | size(), weights.length); |
1,105,299 | // Complete the hourglassSum function below.<NEW_LINE>static int hourglassSum(int[][] arr) {<NEW_LINE>int[] sum = new int[16];<NEW_LINE><MASK><NEW_LINE>int k = 0;<NEW_LINE>for (int i = 0; i < arr.length - 2; i++) {<NEW_LINE>for (int j = 0; j < arr[0].length - 2; j++) {<NEW_LINE>sum[k] += arr[i][j] + arr[i][j + 1] + arr... | Arrays.fill(sum, 0); |
1,684,307 | public static void assignGroupToAppInstance(DateraObject.DateraConnection conn, String group, String appInstance) throws DateraObject.DateraError, UnsupportedEncodingException {<NEW_LINE>DateraObject.InitiatorGroup initiatorGroup = getInitiatorGroup(conn, group);<NEW_LINE>if (initiatorGroup == null) {<NEW_LINE>throw ne... | .DateraOperation.ADD)))); |
1,437,294 | // processes Topo_graph and removes edges that border faces with good<NEW_LINE>// parentage<NEW_LINE>// If bAllowBrokenFaces is True the function will break face structure for<NEW_LINE>// dissolved faces. Only face parentage will be uasable.<NEW_LINE>void dissolveCommonEdges_() {<NEW_LINE>int visitedEdges = m_topo_grap... | setHalfEdgeUserIndex(half_edge, visitedEdges, 1); |
874,912 | private void populateTagNameComponents() {<NEW_LINE>// Get the tag names in use for the current case.<NEW_LINE>tagNames = new ArrayList<>();<NEW_LINE>Map<TagName, Boolean> <MASK><NEW_LINE>try {<NEW_LINE>// There may not be a case open when configuring report modules for Command Line execution<NEW_LINE>tagNames = Case.g... | updatedTagNameSelections = new LinkedHashMap<>(); |
464,939 | Job fillInJob(ResultSet rs, boolean withDate) throws SQLException {<NEW_LINE>Job job = new Job();<NEW_LINE>job.setId(rs.getLong("JOB_ID"));<NEW_LINE>job.setParentId(rs.getLong("PARENT_JOB_ID"));<NEW_LINE>job.setSeq(rs.getInt("JOB_NO"));<NEW_LINE>job.setServer(rs.getString("SERVER"));<NEW_LINE>job.setObjectSchema(rs.get... | rs.getString("PHASE"))); |
1,039,963 | final ListTopicsDetectionJobsResult executeListTopicsDetectionJobs(ListTopicsDetectionJobsRequest listTopicsDetectionJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTopicsDetectionJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
118,597 | public void write(DataOutput out) throws IOException {<NEW_LINE>super.write(out);<NEW_LINE>Text.writeString(out, backupTimestamp);<NEW_LINE>jobInfo.write(out);<NEW_LINE>out.writeBoolean(allowLoad);<NEW_LINE>Text.writeString(out, state.name());<NEW_LINE>if (backupMeta != null) {<NEW_LINE>out.writeBoolean(true);<NEW_LINE... | rowKeySet().size()); |
756,744 | public void marshall(ParallelDataProperties parallelDataProperties, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (parallelDataProperties == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>pr... | parallelDataProperties.getName(), NAME_BINDING); |
287,182 | protected void onInfoSystemResultsReported(InfoRequestData infoRequestData) {<NEW_LINE>InfoRequestData sentLoggedOp = InfoSystem.get().<MASK><NEW_LINE>if (sentLoggedOp != null && sentLoggedOp.getType() == InfoRequestData.INFOREQUESTDATA_TYPE_RELATIONSHIPS && (sentLoggedOp.getHttpType() == InfoRequestData.HTTPTYPE_DELET... | getSentLoggedOpById(infoRequestData.getRequestId()); |
1,246,191 | private void poll(MemPoolTracker tracker) {<NEW_LINE>MemoryUsage usage = tracker.poolBean.getUsage();<NEW_LINE>MemoryUsage peakUsage <MASK><NEW_LINE>MemoryUsage collectionUsage = tracker.poolBean.getCollectionUsage();<NEW_LINE>long ts = System.currentTimeMillis();<NEW_LINE>MemoryUsageBean busage = usage == null ? null ... | = tracker.poolBean.getPeakUsage(); |
1,588,662 | private MethodTree genJAXP_ParseURLMethod(TreeMaker make) {<NEW_LINE>// NOI18N<NEW_LINE>String parsletParam = model.hasParslets() ? ", parslet" : "";<NEW_LINE>StringBuffer sb = new StringBuffer("{");<NEW_LINE>sb.append("\n" + M_PARSE + "(new " + SAX_INPUT_SOURCE + "(url.toExternalForm()), handler" + parsletParam + ");"... | ), "handler", tree, null); |
341,905 | private void compressStream(PRStream stream) throws IOException {<NEW_LINE>PdfObject pdfSubType = stream.get(PdfName.SUBTYPE);<NEW_LINE>System.out.println(stream.type());<NEW_LINE>if (pdfSubType != null && pdfSubType.toString().equals(PdfName.IMAGE.toString())) {<NEW_LINE>PdfImageObject image = new PdfImageObject(strea... | int height = bmp.getHeight(); |
1,589,860 | /*<NEW_LINE>* superSimpleName / superQualification / simpleName / enclosingTypeName / typeParameters / pkgName / superClassOrInterface classOrInterface modifiers<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void decodeIndexKey(char[] key) {<NEW_LINE>int slash = CharOperation.indexOf(SEPARATOR, key, 0);<NEW_LINE>this.... | indexOf(SEPARATOR, key, start); |
723,371 | ArrayList<Object> new138() /* reduce AAdynamicinvokeexpr3InvokeExpr */<NEW_LINE>{<NEW_LINE>@SuppressWarnings("hiding")<NEW_LINE>ArrayList<Object> nodeList = new ArrayList<Object>();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nodeArrayList9 = pop();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>Arra... | <Object> nodeArrayList8 = pop(); |
1,233,570 | public void initScene() {<NEW_LINE>mDirectionalLight = new DirectionalLight();<NEW_LINE>mDirectionalLight.setLookAt(<MASK><NEW_LINE>mDirectionalLight.enableLookAt();<NEW_LINE>mDirectionalLight.setPosition(-4, 10, -4);<NEW_LINE>mDirectionalLight.setPower(2);<NEW_LINE>getCurrentScene().addLight(mDirectionalLight);<NEW_LI... | 1, -1, -1); |
1,309,671 | private static boolean isRhsValue(Cursor tree) {<NEW_LINE>if (!(tree.getValue() instanceof J.Identifier)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cursor parent = dropParentWhile(J.Parentheses.class::isInstance, tree.getParent());<NEW_LINE>assert parent != null;<NEW_LINE>if (parent.getValue() instanceof J.Assignmen... | Expression || grandParent instanceof J.Return); |
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... | PsiElement element = reference.getElement(); |
345,836 | private void insertSessionAttributes(JdbcSession session, List<String> attributeNames) {<NEW_LINE>Assert.notEmpty(attributeNames, "attributeNames must not be null or empty");<NEW_LINE>try (LobCreator lobCreator = this.lobHandler.getLobCreator()) {<NEW_LINE>if (attributeNames.size() > 1) {<NEW_LINE>try {<NEW_LINE>this.j... | session.getAttribute(attributeName))); |
1,704,663 | final DeleteNotificationResult executeDeleteNotification(DeleteNotificationRequest deleteNotificationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteNotificationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
922,559 | public ListBotsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListBotsResult listBotsResult = new ListBotsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +... | class).unmarshall(context)); |
254,649 | private void action_loadBOM() {<NEW_LINE>// m_frame.setBusy(true);<NEW_LINE>m_frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));<NEW_LINE>reload = false;<NEW_LINE>int M_Product_ID = getM_Product_ID();<NEW_LINE>if (M_Product_ID == 0)<NEW_LINE>return;<NEW_LINE>MProduct M_Product = MProduct.get(getCtx(), M_P... | add(new Integer(0)); |
1,736,793 | public String[] introspectSelf() {<NEW_LINE>List<String> output = new ArrayList<String>();<NEW_LINE>if (isInbound()) {<NEW_LINE>output.add(HOST_NAME + "=" + this.hostname);<NEW_LINE>output.add(PORT + "=" + this.port);<NEW_LINE>output.add(MAX_CONNS + "=" + this.maxOpenConnections);<NEW_LINE>output.add(ADDR_EXC_LIST + "=... | + debugStringArray(this.hostNameIncludeList)); |
650,260 | public UpdateEnrollmentStatusResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateEnrollmentStatusResult updateEnrollmentStatusResult = new UpdateEnrollmentStatusResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =... | int originalDepth = context.getCurrentDepth(); |
1,027,957 | public void parse(String mappingStr) {<NEW_LINE>StringTokenizer tokenizer = new StringTokenizer(mappingStr, ";");<NEW_LINE>while (tokenizer.hasMoreElements()) {<NEW_LINE>String mapping = tokenizer.nextToken();<NEW_LINE>String[] mappingGroups = mapping.split(",");<NEW_LINE>String mappedGroup = null;<NEW_LINE>int indexOf... | mapping.substring(indexOfArrow + 2); |
1,200,920 | /*<NEW_LINE>* @see com.sitewhere.microservice.api.device.IDeviceManagement#listAreas(com.<NEW_LINE>* sitewhere.spi.search.area.IAreaSearchCriteria)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public ISearchResults<RdbArea> listAreas(IAreaSearchCriteria criteria) throws SiteWhereException {<NEW_LINE>return getEntityManagerP... | path = root.get("areaTypeId"); |
193,530 | public PackageImportJobInputConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PackageImportJobInputConfig packageImportJobInputConfig = new PackageImportJobInputConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NE... | String currentParentElement = context.getCurrentParentElement(); |
750,870 | private MappingModelList createList(@NonNull ConfirmPaymentState state) {<NEW_LINE>MappingModelList list = new MappingModelList();<NEW_LINE>FormatterOptions options = FormatterOptions.defaults();<NEW_LINE>switch(state.getFeeStatus()) {<NEW_LINE>case STILL_LOADING:<NEW_LINE>case ERROR:<NEW_LINE>list.add(new ConfirmPayme... | , state.getBalance())); |
453,431 | public void customLoadLogic(ParsedNode parsedNode, ResourceAccessor resourceAccessor) throws ParsedNodeException {<NEW_LINE>ParsedNode paramsNode = parsedNode.getChild(null, "params");<NEW_LINE>if (paramsNode == null) {<NEW_LINE>paramsNode = parsedNode;<NEW_LINE>}<NEW_LINE>for (ParsedNode child : paramsNode.getChildren... | ), value.toString()); |
814,589 | private static List<Target> requireTargets(List<Target> targets, TenantAndApplicationId application, Optional<InstanceName> instanceName, Scope scope, boolean certificateName) {<NEW_LINE>if (!certificateName && targets.isEmpty())<NEW_LINE>throw new IllegalArgumentException("At least one target must be given for " + sco... | deployment().applicationId()); |
470,775 | void processExtends(HashMapWrappedVirtualObject minBounds, HashMapWrappedVirtualObject maxBounds, double[] transformationMatrix, DoubleBuffer vertices, int index, GenerateGeometryResult generateGeometryResult) throws BimserverDatabaseException {<NEW_LINE>double x = vertices.get(index);<NEW_LINE>double y = vertices.get(... | maxBounds.eGet("y"))); |
1,517,058 | protected com.liferay.portal.model.UserTrackerPath[] findByUserTrackerId_PrevAndNext(String userTrackerPathId, String userTrackerId, OrderByComparator obc) throws NoSuchUserTrackerPathException, SystemException {<NEW_LINE>com.liferay.portal.model.UserTrackerPath userTrackerPath = findByPrimaryKey(userTrackerPathId);<NE... | ScrollableResults sr = q.scroll(); |
1,840,424 | public void run() {<NEW_LINE>log.debug("+++++ Started server job {}", server);<NEW_LINE>try {<NEW_LINE>final ThreadPoolExecutor executor = queryExecutorRepository.getExecutor(server);<NEW_LINE>for (Query query : server.getQueries()) {<NEW_LINE>ProcessQueryThread pqt = new ProcessQueryThread(resultProcessor, server, que... | warn("+++++ Failed server job " + server, e); |
456,247 | public static ListAllImsUsersResponse unmarshall(ListAllImsUsersResponse listAllImsUsersResponse, UnmarshallerContext context) {<NEW_LINE>listAllImsUsersResponse.setRequestId(context.stringValue("ListAllImsUsersResponse.RequestId"));<NEW_LINE>listAllImsUsersResponse.setSuccess(context.booleanValue("ListAllImsUsersRespo... | (context.integerValue("ListAllImsUsersResponse.Users.PageNumber")); |
507,577 | private void updateRelativeSize(boolean isRelativeSize, String direction) {<NEW_LINE>if (isRelativeSize && hasCaption()) {<NEW_LINE>captionWrap.getStyle().setProperty(direction, getWidget().getElement().getStyle().getProperty(direction));<NEW_LINE>captionWrap.addClassName("v-has-" + direction);<NEW_LINE>} else if (hasC... | .getStyle().clearMarginLeft(); |
1,464,041 | public okhttp3.Call readNamespacedLeaseCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name... | .parameterToPair("pretty", pretty)); |
432,480 | public void addDownload(final HttpMetadata metadata, final String file) {<NEW_LINE>if (refreshCallback != null) {<NEW_LINE>if (refreshCallback.isValidLink(metadata)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// HttpMetadata md = HttpMetadata.load(refreshCallback.getId());<NEW_LINE>// if (md.getType() == metadata.getType()... | getInstance().getFolder(category); |
1,423,123 | protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) {<NEW_LINE>MapWriterConfiguration configuration = new MapWriterConfiguration();<NEW_LINE>configuration.addOutputFile(getStringArgument(taskConfig, PARAM_OUTFILE, Constants.DEFAULT_PARAM_OUTFILE));<NEW_LINE>// must be set before loading tag mappin... | (taskConfig, PARAM_PREFERRED_LANGUAGES, null)); |
810,926 | // parse an IborCapFloor<NEW_LINE>private static IborCapFloor parseIborCapFloor(CsvRow row) {<NEW_LINE>PayReceive payReceive = row.getValue(DIRECTION_FIELD, LoaderUtils::parsePayReceive);<NEW_LINE>Currency currency = row.<MASK><NEW_LINE>ValueSchedule strike = ValueSchedule.of(row.getValue(STRIKE_FIELD, LoaderUtils::par... | getValue(CURRENCY_FIELD, LoaderUtils::parseCurrency); |
1,171,211 | public List<Object> apply(Object wrapped) throws RuntimeException {<NEW_LINE>// apply processSdt to any sdt<NEW_LINE>// which might be a conditional|repeat<NEW_LINE>Object o = XmlUtils.unwrap(wrapped);<NEW_LINE>if (o instanceof SdtElement) {<NEW_LINE>SdtPr sdtPr = OpenDoPEHandler.getSdtPr(o);<NEW_LINE>if (sdtPr.getData... | (wordMLPackage, (SdtElement) o); |
257,200 | public void doSave(IProgressMonitor progressMonitor) {<NEW_LINE>// Save only resources that have actually changed.<NEW_LINE>//<NEW_LINE>final Map<Object, Object> saveOptions = new HashMap<Object, Object>();<NEW_LINE>saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER... | OpenDDSEditorPlugin.INSTANCE.log(exception); |
348,073 | public void onMethodCall(MethodCall call, Result result) {<NEW_LINE>switch(call.method) {<NEW_LINE>case "getUrl":<NEW_LINE>{<NEW_LINE>Kraken kraken = getKraken();<NEW_LINE>result.success(kraken == null ? "" : kraken.getUrl());<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>case "getDynamicLibraryPath":<NEW_LINE>{<NEW_LINE>Kraken ... | args = call.argument("args"); |
806,414 | protected void decodeHave(BTHave have) {<NEW_LINE>final <MASK><NEW_LINE>have.destroy();<NEW_LINE>if (is_metadata_download) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if ((pieceNumber >= nbPieces) || (pieceNumber < 0)) {<NEW_LINE>closeConnectionInternally("invalid pieceNumber: " + pieceNumber);<NEW_LINE>return;<NEW_LINE>}<N... | int pieceNumber = have.getPieceNumber(); |
680,197 | public ProcessStatus handleRestValidateCode(final PwmRequest pwmRequest) throws PwmUnrecoverableException, IOException, ServletException, ChaiUnavailableException {<NEW_LINE>final PwmDomain pwmDomain = pwmRequest.getPwmDomain();<NEW_LINE>final PwmSession pwmSession = pwmRequest.getPwmSession();<NEW_LINE>final OTPUserRe... | .get("code"), 1024); |
1,446,773 | // GEN-LAST:event_cancelButtonActionPerformed<NEW_LINE>@NbBundle.Messages({ "GetTagNameDialog.tagNameAlreadyExists.message=Tag name must be unique. A tag with this name already exists.", "GetTagNameDialog.tagNameAlreadyExists.title=Duplicate Tag Name", "GetTagNameDialog.tagDescriptionIllegalCharacters.message=Tag descr... | status, TagName.HTML_COLOR.NONE); |
1,486,921 | private static Set<String> scanBootstrapClasses() throws Exception {<NEW_LINE>int vmVersion = VMUtil.getVmVersion();<NEW_LINE>Set<String> classes = new LinkedHashSet<>(4096, 1F);<NEW_LINE>if (vmVersion < 9) {<NEW_LINE>Method method = ClassLoader.class.getDeclaredMethod("getBootstrapClassPath");<NEW_LINE>method.setAcces... | String name = entry.getName(); |
1,090,553 | private void begin(final boolean headers, final CSVFormat format) {<NEW_LINE>try {<NEW_LINE>this.parseLine = new ParseCSVLine(format);<NEW_LINE>this.format = format;<NEW_LINE>// read the column heads<NEW_LINE>if (headers) {<NEW_LINE>final String line = this.reader.readLine();<NEW_LINE>// Are we trying to parse an empty... | this.parseLine.parse(line); |
1,504,516 | protected void debug() {<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "" + this);<NEW_LINE>Tr.debug(tc, KEY_clientId + " = " + clientId);<NEW_LINE>Tr.debug(tc, KEY_clientSecret + <MASK><NEW_LINE>Tr.debug(tc, KEY_loginDialogEndpoint + " = " + authorizationEndpoint);<NEW_LINE>Tr.debug(tc, KEY_tokenEndpoint +... | " is null = " + (clientSecret == null)); |
446,111 | private static final void maybeAddSubkey(List<Subkey> subkeys, PGPPublicKey masterpk, PGPPublicKey subkey, StringBuilder errors) throws PGPException, SignatureException, IOException {<NEW_LINE>Iterator<PGPSignature> sigit = Util.getTypedIterator(subkey.getSignatures(), PGPSignature.class);<NEW_LINE>if (sigit == null) {... | new Subkey(subkey, validSig)); |
122,362 | final DeleteConnectionResult executeDeleteConnection(DeleteConnectionRequest deleteConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteConnectionRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteConnectionRequest> ... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,380,632 | public OutputStream createOutputStream(final long l) throws IOException {<NEW_LINE>try (Tx tx = StructrApp.getInstance().tx()) {<NEW_LINE>if (structrFile == null) {<NEW_LINE>final Folder parentFolder = (Folder) FileHelper.getFileByAbsolutePath(securityContext, StringUtils.substringBeforeLast(newPath, "/"));<NEW_LINE>tr... | File) structrFile).getOutputStream(); |
1,851,465 | private void processBlockRegistrations(NetData.NetMessage message) {<NEW_LINE>for (NetData.BlockFamilyRegisteredMessage blockFamily : message.getBlockFamilyRegisteredList()) {<NEW_LINE>if (blockFamily.getBlockIdCount() != blockFamily.getBlockUriCount()) {<NEW_LINE>logger.error("Received block registration with mismatch... | > registrationMap = Maps.newHashMap(); |
1,113,186 | public synchronized void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>if (input == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>Rectangle r = getVisibleRect();<NEW_LINE>render(r);<NEW_LINE>g2.drawImage(workImage, r.<MASK><NEW_LINE>if (showCrude && crud... | x, r.y, null); |
626,892 | private Object readResolve() throws Exception {<NEW_LINE>final boolean trace = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (trace && tc.isEntryEnabled())<NEW_LINE>Tr.entry(this, tc, "readResolve", filter, resourceRefInfo);<NEW_LINE>Object dataSource;<NEW_LINE>BundleContext bundleContext = WSJdbcWrapper.priv.getBu... | .getBundle(DataSourceService.class)); |
1,828,142 | ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW... | CacheManager.notify(Person.class); |
190,409 | protected // -------------------------------------------------------------------------<NEW_LINE>boolean findInClass(final String clazz, final MethodModel methodModel) {<NEW_LINE>if (clazz == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>FileObject ejbClassFO = model.runReadAction(new MetadataModelAc... | controller.toPhase(Phase.ELEMENTS_RESOLVED); |
446,712 | public static DescribePdnsRequestStatisticsResponse unmarshall(DescribePdnsRequestStatisticsResponse describePdnsRequestStatisticsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePdnsRequestStatisticsResponse.setRequestId(_ctx.stringValue("DescribePdnsRequestStatisticsResponse.RequestId"));<NEW_LINE>describePdnsR... | ("DescribePdnsRequestStatisticsResponse.Data[" + i + "].TotalCount")); |
394,138 | private String printAnr(String scene, int[] processStat, long[] memoryInfo, Thread.State state, StringBuilder stack, boolean isForeground, long stackSize, String stackKey, String dumpStack, long inputCost, long animationCost, long traversalCost, long stackCost) {<NEW_LINE>StringBuilder print = new StringBuilder();<NEW_... | ("|*\t\tinputCost:animationCost:traversalCost").append("\n"); |
172,364 | public static void sendMessage(String[] addressList, String title, String content) throws AddressException {<NEW_LINE>Address[] addresses <MASK><NEW_LINE>for (int i = 0; i < addressList.length; i++) {<NEW_LINE>addresses[i] = new InternetAddress(addressList[i]);<NEW_LINE>}<NEW_LINE>// Sender's email ID needs to be menti... | = new Address[addressList.length]; |
462,598 | public void marshall(XavcHdProfileSettings xavcHdProfileSettings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (xavcHdProfileSettings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(xavcHdProfileSettings... | xavcHdProfileSettings.getQualityTuningLevel(), QUALITYTUNINGLEVEL_BINDING); |
900,383 | boolean onMouseEvent(MouseEvent e) {<NEW_LINE>Point p = e.getPoint();<NEW_LINE>p = SwingUtilities.convertPoint((Component) e.getSource(), p, this);<NEW_LINE>int selRow = getSelectedRow();<NEW_LINE>int selCol = getSelectedColumn();<NEW_LINE>if (selRow < 0 || selCol < 0)<NEW_LINE>return false;<NEW_LINE>Rectangle rect = g... | ).getValueAt(selRow, selCol); |
799,588 | private void insertAttribute(TypeDB.Transaction transaction, DataProto.Item.Attribute attrMsg) {<NEW_LINE>AttributeType type = transaction.concepts().getAttributeType(attrMsg.getLabel());<NEW_LINE>if (type == null)<NEW_LINE>throw TypeDBException.of(TYPE_NOT_FOUND, attrMsg.getLabel());<NEW_LINE>DataProto.ValueObject val... | ), attrMsg.getId()); |
915,438 | public String convertIndexToColorName(int colorIndex) {<NEW_LINE>SparseArray<String> colors = new SparseArray<>();<NEW_LINE>colors.put(0, "green");<NEW_LINE><MASK><NEW_LINE>colors.put(2, "red");<NEW_LINE>colors.put(3, "blue");<NEW_LINE>colors.put(4, "indigo");<NEW_LINE>colors.put(5, "blue-grey");<NEW_LINE>colors.put(6,... | colors.put(1, "orange"); |
386,568 | public synchronized boolean startup(@NonNull final RunMode runMode) {<NEW_LINE>//<NEW_LINE>// Check if already started<NEW_LINE>// NOTE: we can't rely on log != null, because the start could be canceled after log was initialized<NEW_LINE>if (started) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// needed<NEW_LINE>startA... | "{}", System.getProperties()); |
140,458 | @Path("/{paymentId:" + UUID_PATTERN + "}/" + CUSTOM_FIELDS)<NEW_LINE>@Consumes(APPLICATION_JSON)<NEW_LINE>@Produces(APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Add custom fields to payment", response = CustomField.class, responseContainer = "List")<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 201, message... | , request), uriInfo, request); |
866,805 | public final void evaluateTrue(MatchedEventMap matchEvent, EvalStateNode fromNode, boolean isQuitted, EventBean optionalTriggeringEvent) {<NEW_LINE>AgentInstanceContext agentInstanceContext = evalFollowedByNode<MASK><NEW_LINE>Integer index = nodes.get(fromNode);<NEW_LINE>agentInstanceContext.getInstrumentationProvider(... | .getContext().getAgentInstanceContext(); |
1,698,909 | public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {<NEW_LINE>ServerAuthDialogBinding binding = ServerAuthDialogBinding.inflate(requireActivity().getLayoutInflater());<NEW_LINE>dialogView = binding.getRoot();<NEW_LINE>Settings generalSettings = settingsProvider.getUnprotectedSettings();<NEW_LINE>binding.... | getText().toString()); |
113,099 | private void initializeMetaIfNeeded() throws IOException {<NEW_LINE>if (!this.metaStore.exists(SnapshotManager.QUERY_SNAPSHOT_INFO_PATH)) {<NEW_LINE>SnapshotInfo snapshotInfo = new SnapshotInfo(-1L, -1L);<NEW_LINE>byte[] b = this.objectMapper.writeValueAsBytes(snapshotInfo);<NEW_LINE>this.metaStore.<MASK><NEW_LINE>}<NE... | write(SnapshotManager.QUERY_SNAPSHOT_INFO_PATH, b); |
775,210 | public OpenAPI parse(io.swagger.v3.oas.annotations.Operation apiOperation, Operation operation, OpenAPI openAPI, MethodAttributes methodAttributes) {<NEW_LINE>Components components = openAPI.getComponents();<NEW_LINE><MASK><NEW_LINE>if (StringUtils.isNotBlank(apiOperation.summary()))<NEW_LINE>operation.setSummary(prope... | Locale locale = methodAttributes.getLocale(); |
721,556 | public void run() {<NEW_LINE>try {<NEW_LINE>log.info("Running {}", getName());<NEW_LINE>DatabaseSecurityFormData dbData = new DatabaseSecurityFormData();<NEW_LINE>Universe universe = Universe.getOrBadRequest(taskParams().universeUUID);<NEW_LINE>if (taskParams().primaryCluster.userIntent.enableYCQL && taskParams().prima... | .dbName = taskParams().ysqlDbName; |
470,775 | void processExtends(HashMapWrappedVirtualObject minBounds, HashMapWrappedVirtualObject maxBounds, double[] transformationMatrix, DoubleBuffer vertices, int index, GenerateGeometryResult generateGeometryResult) throws BimserverDatabaseException {<NEW_LINE>double x = vertices.get(index);<NEW_LINE>double y = vertices.get(... | , generateGeometryResult.getMinZ())); |
276,465 | protected void executeBoundaryEvents(Collection<BoundaryEvent> boundaryEvents, ExecutionEntity execution) {<NEW_LINE>// The parent execution becomes a scope, and a child execution is created for each of the boundary events<NEW_LINE>for (BoundaryEvent boundaryEvent : boundaryEvents) {<NEW_LINE>if (CollectionUtil.isEmpty... | ActivityBehavior) boundaryEvent.getBehavior()); |
135,108 | final DeleteSuppressedDestinationResult executeDeleteSuppressedDestination(DeleteSuppressedDestinationRequest deleteSuppressedDestinationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSuppressedDestinationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
847,174 | // Read characters into a portion of an array.<NEW_LINE>@Override<NEW_LINE>public int read(char[] cbuf, int off, int rlen) throws IOException {<NEW_LINE>if (!_ready) {<NEW_LINE>throw new IOException(this.getClass().getName() + " is closed");<NEW_LINE>}<NEW_LINE>if (_state != 0)<NEW_LINE>return -1;<NEW_LINE>int dstPos =... | _outBufPos, cbuf, dstPos, xfer); |
1,337,708 | protected void extraClinitLookup(SkinnyMethodAdapter m) {<NEW_LINE>// extract cached ctors for lookup ordering<NEW_LINE>// note: consume top of stack, lookuparray<NEW_LINE>m.newobj(p(JCtorCache.class));<NEW_LINE>// jccache, lookuparray, jccache<NEW_LINE>m.dup_x1();<NEW_LINE>// jccache, jccache, lookuparray<NEW_LINE>m.s... | .class, boolean.class)); |
1,643,661 | private void doStartAndFire(ShellSession nss) {<NEW_LINE>synchronized (this) {<NEW_LINE>this.shellSession = nss;<NEW_LINE>starting = true;<NEW_LINE>}<NEW_LINE>Pair<ShellSession, Task> res = nss.start();<NEW_LINE>nss.getModel().addConsoleListener(new ConsoleListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void ... | nss, e.isStart()); |
364,346 | public static void run(String consumerKey, String consumerSecret, String token, String secret) throws InterruptedException {<NEW_LINE>// Create an appropriately sized blocking queue<NEW_LINE>BlockingQueue<String> queue = new LinkedBlockingQueue<String>(10000);<NEW_LINE>// Define our endpoint: By default, delimited=leng... | consumerKey, consumerSecret, token, secret); |
1,690,715 | protected void paintIcon(Graphics2D g2) {<NEW_LINE>final var discCol = myType == FILE_SAVE_AS ? Color.GRAY : Color.BLUE;<NEW_LINE>var bds = getScaled(2, 2, 12, 12);<NEW_LINE>g2.setColor(discCol);<NEW_LINE>g2.fillRect(bds.getX(), bds.getY(), bds.getWidth(), bds.getHeight());<NEW_LINE>g2.setColor(Color.YELLOW);<NEW_LINE>... | fillPolygon(xPoints, yPoints, 7); |
1,783,560 | final DescribeDBInstancesResult executeDescribeDBInstances(DescribeDBInstancesRequest describeDBInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDBInstancesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | (super.beforeMarshalling(describeDBInstancesRequest)); |
1,408,365 | private static // method declaration's throws clause to declare the new checked exceptions<NEW_LINE>void fixThrows(VisitorState state, SuggestedFix.Builder fix) {<NEW_LINE>MethodTree methodTree = state.findEnclosing(MethodTree.class);<NEW_LINE>if (methodTree == null || methodTree.getThrows().isEmpty()) {<NEW_LINE>retur... | > thrown = ImmutableMap.builder(); |
68,740 | public void keyPressed(java.awt.event.KeyEvent e) {<NEW_LINE>if (changingPage)<NEW_LINE>return;<NEW_LINE>int deltaPage = 0;<NEW_LINE>int keyCode = e.getKeyCode();<NEW_LINE>if (keyCode == java.awt.event.KeyEvent.VK_PAGE_DOWN) {<NEW_LINE>deltaPage = documentView.getPreviousPageIncrement();<NEW_LINE>} else if (keyCode == ... | - controller.getCurrentPageNumber() - 1; |
905,058 | public static double calculatePosteriorMode(final List<Double> samples, final JavaSparkContext ctx) {<NEW_LINE>Utils.nonNull(samples);<NEW_LINE>Utils.validateArg(samples.size() > 0, "Number of samples must be greater than zero.");<NEW_LINE>// calculate sample min, max, mean, and standard deviation<NEW_LINE>final double... | RELATIVE_TOLERANCE * (sampleMax - sampleMin)); |
1,840,070 | private Map<File, File> buildgetInjarsOutjarsMap() {<NEW_LINE>TransformOutputProvider outputProvider = invocation.getOutputProvider();<NEW_LINE>Preconditions.checkNotNull(outputProvider);<NEW_LINE>// if (!invocation.isIncremental()) {<NEW_LINE>// outputProvider.deleteAll();<NEW_LINE>// }<NEW_LINE>ImmutableMap.Builder<F... | .getFile().toPath(); |
994,127 | private // throw exception if unrecoverable errors happen.<NEW_LINE>boolean allocateTaskToBe(RoutineLoadTaskInfo routineLoadTaskInfo) {<NEW_LINE>if (routineLoadTaskInfo.getPreviousBeId() != -1L) {<NEW_LINE>if (routineLoadManager.takeBeTaskSlot(routineLoadTaskInfo.getPreviousBeId()) != -1L) {<NEW_LINE>if (LOG.isDebugEna... | , "task has been allocated to be").build()); |
1,280,992 | private void showColorListDialog() {<NEW_LINE>ArrayAdapter<String> profileAdapter = new ArrayAdapter<>(this, android.<MASK><NEW_LINE>ListPopupWindow listPopup = new ListPopupWindow(this);<NEW_LINE>listPopup.setAdapter(profileAdapter);<NEW_LINE>listPopup.setAnchorView(pulsingCircleColorButton);<NEW_LINE>listPopup.setOnI... | R.layout.simple_list_item_1, colorOptionList); |
331,928 | default <U> TypeSafeKey<A, B> discardR(Applicative<U, Iso<A, ?, B, B>> appB) {<NEW_LINE>Iso.Simple<A, B> discarded = Iso.Simple.super.discardR(appB);<NEW_LINE>return new TypeSafeKey<A, B>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public <CoP extends Profunctor<?, ?, ? extends Profunctor<?, ?, ?>>, CoF extends Functor<?... | return TypeSafeKey.this.hashCode(); |
117,244 | public String encryptSecret(String plainText) {<NEW_LINE>if (plainText.length() > MAX_PLAINTEXT_LENGTH) {<NEW_LINE>throw new IllegalArgumentException("Too long text");<NEW_LINE>}<NEW_LINE>byte[] nonce = generateNonce();<NEW_LINE>Cipher cipher = cipher(ENCRYPT_MODE, sharedSecret, nonce);<NEW_LINE>byte[] plainTextBytes =... | ] recordBytes = new byte[recordLength]; |
1,530,738 | private String checkConnect(HttpURLConnection urlConnection) throws IOException, CommandException {<NEW_LINE>int code = urlConnection.getResponseCode();<NEW_LINE>if (logger.isLoggable(Level.FINER)) {<NEW_LINE>logger.log(Level.FINER, "Response code: {0}", code);<NEW_LINE>}<NEW_LINE>if (code == -1) {<NEW_LINE>URL url = u... | throw new AuthenticationException(reportAuthenticationException()); |
316,906 | private void updateReferenceTimeByLaunchConfig(String region, List<Resource> batch, long since) {<NEW_LINE>LOGGER.info(String.format("Getting the last reference time by launch config for batch of size %d", batch.size()));<NEW_LINE>String batchUrl = getLaunchConfigBatchUrl(region, batch, since);<NEW_LINE>JsonNode batchR... | ami = idToResource.get(imageId); |
1,012,613 | public void read(JmeImporter im) throws IOException {<NEW_LINE>super.read(im);<NEW_LINE>InputCapsule ic = im.getCapsule(this);<NEW_LINE>size = <MASK><NEW_LINE>totalSize = ic.readInt("totalSize", 16);<NEW_LINE>quadrant = ic.readShort("quadrant", (short) 0);<NEW_LINE>stepScale = (Vector3f) ic.readSavable("stepScale", Vec... | ic.readInt("size", 16); |
1,474,900 | public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {<NEW_LINE>_buildInfo.setLocation(_documentLocatorFile, _documentLocator);<NEW_LINE>String schemaSource = _parser.getProperty(AbstractParser.JAXP_SCHEMA_SOURCE).toString();<NEW_LINE>int schemaVersion = Intege... | .length() - 4)); |
1,451,948 | final ListFHIRExportJobsResult executeListFHIRExportJobs(ListFHIRExportJobsRequest listFHIRExportJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listFHIRExportJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | false), new ListFHIRExportJobsResultJsonUnmarshaller()); |
835,638 | private void _forwardLayout(HttpServletRequest req) throws Exception {<NEW_LINE><MASK><NEW_LINE>Layout layout = (Layout) req.getAttribute(WebKeys.LAYOUT);<NEW_LINE>String layoutId = null;<NEW_LINE>if (layout == null || !InodeUtils.isSet(layoutId)) {<NEW_LINE>User user = PortalUtil.getUser(req);<NEW_LINE>List<Layout> us... | HttpSession ses = req.getSession(); |
1,183,210 | private void helpNavigated(Document doc) {<NEW_LINE>NodeList<Element> elements = doc.getElementsByTagName("a");<NEW_LINE>for (int i = 0; i < elements.getLength(); i++) {<NEW_LINE>ElementEx a = (ElementEx) elements.getItem(i);<NEW_LINE>String href = a.getAttribute("href", 2);<NEW_LINE>if (href == null)<NEW_LINE>continue... | .getURL(), effectiveTitle)); |
730,241 | static URIMapper createOneToOne() {<NEW_LINE>return new URIMapper() {<NEW_LINE><NEW_LINE>private Map<File, File> can2AbsFile = new HashMap<>();<NEW_LINE><NEW_LINE>@Override<NEW_LINE>File toSourceFile(URI remoteURI) {<NEW_LINE>File retval = Utilities.toFile(remoteURI);<NEW_LINE>File <MASK><NEW_LINE>retval = (absFile != ... | absFile = can2AbsFile.get(retval); |
293,863 | public void marshall(DiskSnapshot diskSnapshot, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (diskSnapshot == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(diskSnapshot.getName(), NAME_BINDING);<NEW_LINE>... | diskSnapshot.getSizeInGb(), SIZEINGB_BINDING); |
288,977 | public static DescribeDcdnRefreshTaskByIdResponse unmarshall(DescribeDcdnRefreshTaskByIdResponse describeDcdnRefreshTaskByIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnRefreshTaskByIdResponse.setRequestId(_ctx.stringValue("DescribeDcdnRefreshTaskByIdResponse.RequestId"));<NEW_LINE>describeDcdnRefreshTask... | ("DescribeDcdnRefreshTaskByIdResponse.Tasks[" + i + "].ObjectPath")); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.