idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,262,509 | private int rename(int retries) {<NEW_LINE>try {<NEW_LINE>int index = 0;<NEW_LINE>other.concat(META_PREV_FILE_NAME).$();<NEW_LINE>path.concat(META_FILE_NAME).$();<NEW_LINE>int l = other.length();<NEW_LINE>do {<NEW_LINE>if (index > 0) {<NEW_LINE>other.trimTo(l);<NEW_LINE>other.put('.').put(index);<NEW_LINE>other.$();<NE... | $(']').$(); |
1,549,309 | private void initComponents() {<NEW_LINE>// NOI18N<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(RevertModificationsPanel.class, "RevertModificationsPanel.infoLabel.text"));<NEW_LINE>// NOI18N<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.ut... | (RevertModificationsPanel.class, "RevertModificationsPanel.doPurgeChxBox.text")); |
281,746 | private JobRunner createJobRunner(final ExecutableNode node) {<NEW_LINE>// Load job file.<NEW_LINE>final File path = new File(this.execDir, node.getJobSource());<NEW_LINE>final JobRunner jobRunner = new JobRunner(node, path.getParentFile(), this.executorLoader, this.jobtypeManager, this.azkabanProps, this.flowRunnerPro... | this.jobLogFileSize, this.jobLogNumFiles); |
1,283,387 | protected mxRectangle revalidateState(mxCellState parentState, mxCellState state, double dx, double dy) {<NEW_LINE>mxRectangle dirty = null;<NEW_LINE>if (state != null) {<NEW_LINE>mxGraph graph = graphComponent.getGraph();<NEW_LINE>mxIGraphModel model = graph.getModel();<NEW_LINE>Object cell = state.getCell();<NEW_LINE... | dirty.getY() + dy); |
1,472,799 | public static ListMappCenterAppsResponse unmarshall(ListMappCenterAppsResponse listMappCenterAppsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMappCenterAppsResponse.setRequestId(_ctx.stringValue("ListMappCenterAppsResponse.RequestId"));<NEW_LINE>listMappCenterAppsResponse.setResultMessage(_ctx.stringValue("ListMa... | ("ListMappCenterAppsResponse.ListMappCenterAppResult.MappCenterAppList[" + i + "].Status")); |
506,725 | public int updateHmilyParticipantStatus(final Long participantId, final Integer status) throws HmilyRepositoryException {<NEW_LINE>String <MASK><NEW_LINE>try {<NEW_LINE>if (checkPath(path, false)) {<NEW_LINE>return FAIL_ROWS;<NEW_LINE>}<NEW_LINE>Stat stat = new Stat();<NEW_LINE>byte[] data = zooKeeper.getData(path, fal... | path = node.getHmilyParticipantRealPath(participantId); |
1,664,632 | void removeCroutonImmediately(Crouton crouton) {<NEW_LINE>// if Crouton has already been displayed then it may not be in the queue (because it was popped).<NEW_LINE>// This ensures the displayed Crouton is removed from its parent immediately, whether another instance<NEW_LINE>// of it exists in the queue or not.<NEW_LI... | > croutonIterator = croutonQueue.iterator(); |
428,891 | private BlackboardAttribute checkAttribute(String key, String value) {<NEW_LINE>String moduleName <MASK><NEW_LINE>if (!value.isEmpty() && value.charAt(0) != ' ') {<NEW_LINE>if (METADATA_DATE_TYPES.contains(key)) {<NEW_LINE>SimpleDateFormat metadataDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", US);<NEW_LINE>L... | = KeywordSearchIngestModule.class.getName(); |
726,132 | public void map(InfoMap infoMap) {<NEW_LINE>// To avoid linking error on Windows 64: "unresolved external symbol __imp_ResetStats"<NEW_LINE>infoMap.put(new Info("FLYCAPTURE2_C_API", "FLYCAPTURE2_C_CALL_CONVEN", "MULTISYNCLIBRARY_C_API", "MULTISYNCLIBRARY_C_CALL_CONVEN").cppTypes().annotations().cppText("")).put(new Inf... | ("ResetStats").skip()); |
850,587 | private static byte[] writeTransactionId(String agentId, long agentStartTime, long transactionSequence) {<NEW_LINE>// agentId may be null<NEW_LINE>// version + prefixed size + string + long + long<NEW_LINE>final byte[] <MASK><NEW_LINE>final int agentIdLength = ArrayUtils.getLength(agentIdBytes, Buffer.NULL);<NEW_LINE>f... | agentIdBytes = BytesUtils.toBytes(agentId); |
792,657 | final SearchResourcesResult executeSearchResources(SearchResourcesRequest searchResourcesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchResourcesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
526,424 | public Object apply(Object left, Object right) {<NEW_LINE>if (left == null && right == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (right == null) {<NEW_LINE>if (OMultiValue.isMultiValue(left)) {<NEW_LINE>return left;<NEW_LINE>} else {<NEW_LINE>return Collections.singletonList(left);<NEW_LINE>}<NEW_LINE>}<NEW_... | result = new ArrayList<>(); |
279,528 | private boolean searchDataInContainer(DBRProgressMonitor monitor, DBNModel dbnModel, DBSDataContainer dataContainer) {<NEW_LINE>if (!params.searchForeignObjects && dataContainer instanceof DBPForeignObject && ((DBPForeignObject) dataContainer).isForeignObject()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String objec... | debug("Search in '" + objectName + "'"); |
812,832 | public String loadPaymentRuleInfo(int paySelectionId, String paymentRule) {<NEW_LINE>Integer paymentCount = new Query(Env.getCtx(), MPaySelectionCheck.Table_Name, MPaySelectionCheck.COLUMNNAME_C_PaySelection_ID + "=?", null).setClient_ID().setParameters(paySelectionId).count();<NEW_LINE>noPayments = String.valueOf(paym... | .COLUMNNAME_IsActive).append("=?"); |
295,953 | private GraphQLObjectType addAppliedDirectives(GraphQLObjectType originalType, GraphQLCodeRegistry.Builder codeRegistry, GraphQLObjectType appliedDirectiveType, GraphQLObjectType directiveArgumentType) {<NEW_LINE>GraphQLObjectType objectType = originalType.transform(bld -> bld.field(fld -> fld.name("appliedDirectives")... | GraphQLAppliedDirective directive = env.getSource(); |
371,727 | public Object apply(TypeSystem t, Record r) {<NEW_LINE>if (r.size() == 1) {<NEW_LINE>Value value = r.get(0);<NEW_LINE>if (value.hasType(t.LIST())) {<NEW_LINE>aggregated.compareAndSet(false, true);<NEW_LINE>return aggregateList(t, value);<NEW_LINE>} else if (value.hasType(t.PATH())) {<NEW_LINE>aggregated.compareAndSet(f... | , pathValues.get(false)); |
1,767,007 | public ProductKDE clone() {<NEW_LINE>ProductKDE clone = new ProductKDE();<NEW_LINE>if (this.k != null)<NEW_LINE>clone.k = k;<NEW_LINE>if (this.sortedDimVals != null) {<NEW_LINE>clone.sortedDimVals = new double[sortedDimVals.length][];<NEW_LINE>for (int i = 0; i < this.sortedDimVals.length; i++) clone.sortedDimVals[i] =... | int[sortedIndexVals.length][]; |
1,079,721 | public static TableColumnCore[] createActivitySmall(String tableID) {<NEW_LINE>final String[] defaultVisibleOrder = { ColumnActivityNew.COLUMN_ID, ColumnActivityType.COLUMN_ID, ColumnActivityText.COLUMN_ID, ColumnActivityActions.COLUMN_ID, ColumnActivityDate.COLUMN_ID };<NEW_LINE>TableColumnManager tcManager = TableCol... | setDefaultSortColumnName(tableID, ColumnActivityDate.COLUMN_ID); |
1,206,416 | private static void registerIslands() {<NEW_LINE>BotaniaAPIClient.instance().registerIslandTypeModel(IFloatingFlower.IslandType.GRASS, prefix("block/islands/island_grass"));<NEW_LINE>BotaniaAPIClient.instance().registerIslandTypeModel(IFloatingFlower.IslandType.PODZOL, prefix("block/islands/island_podzol"));<NEW_LINE>B... | .SNOW, prefix("block/islands/island_snow")); |
1,245,140 | public static void insertMagicString(JTextComponent target, int dot, String toInsert) throws BadLocationException {<NEW_LINE>Document doc = target.getDocument();<NEW_LINE>if (toInsert.indexOf('|') >= 0) {<NEW_LINE>int <MASK><NEW_LINE>int ofst2 = toInsert.indexOf('|', ofst + 1);<NEW_LINE>toInsert = toInsert.replace("|",... | ofst = toInsert.indexOf('|'); |
758,148 | public TypecheckingResult visitHole(Concrete.HoleExpression expr, Expression expectedType) {<NEW_LINE>boolean isOmega = expectedType instanceof Type && ((<MASK><NEW_LINE>if (expr.isErrorHole()) {<NEW_LINE>return expectedType != null && !isOmega ? new TypecheckingResult(new ErrorExpression(expr.getError()), expectedType... | Type) expectedType).isOmega(); |
577,270 | public StorageFile obtainStorageFileForName(String folder, String name) {<NEW_LINE>String uriString = folder != null <MASK><NEW_LINE>if (uriString.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Uri treeUri = Uri.parse(uriString);<NEW_LINE>ContentResolver contentResolver = applicationContext.getContentResolver()... | ? saveLocationTreeUriFolder : saveLocationTreeUri.get(); |
259,168 | public void merge(XDMModel model, List<Difference> deList) {<NEW_LINE>this.model = model;<NEW_LINE>HashMap<Node, Set<Change>> changesByNode = new HashMap<Node, Set<Change>>();<NEW_LINE>HashMap<Node, Set<Difference>> childrenDiffsByNode = new HashMap<Node, Set<Difference>>();<NEW_LINE>HashMap<Integer, Node> idToChangeds... | > diffs = e.getValue(); |
806,051 | public synchronized void loadTextureFile(File file) throws IOException, ParseResourceException {<NEW_LINE>textureList.clear();<NEW_LINE>textureMap.clear();<NEW_LINE>try (FileReader fileReader = new FileReader(file)) {<NEW_LINE>JsonStreamParser jsonFile = new JsonStreamParser(fileReader);<NEW_LINE>JsonArray textures = j... | int size = textures.size(); |
659,204 | public Object createObjectCache(String reference) {<NEW_LINE>final String methodName = "createCacheInstance()";<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, methodName + " cacheName=" + reference);<NEW_LINE>CacheConfig config = ServerCache.getCacheService().getCacheInstanceConfig(reference);<NEW_LINE>if (con... | "Entered synchronized (config) for " + config.getCacheName()); |
1,712,095 | protected Object createNode(JSContext context, JSBuiltin builtin, boolean construct, boolean newTarget, TemporalNow builtinEnum) {<NEW_LINE>switch(builtinEnum) {<NEW_LINE>case timeZone:<NEW_LINE>return TemporalNowTimeZoneNodeGen.create(context, builtin, args().fixedArgs(0).createArgumentNodes(context));<NEW_LINE>case i... | 1).createArgumentNodes(context)); |
1,247,196 | public int notifyStarted(@NonNull MediaFormat format) {<NEW_LINE>synchronized (mControllerLock) {<NEW_LINE>if (mMediaMuxerStarted) {<NEW_LINE>throw new IllegalStateException("Trying to start but muxer started already");<NEW_LINE>}<NEW_LINE>int <MASK><NEW_LINE>LOG.w("notifyStarted:", "Assigned track", track, "to format"... | track = mMediaMuxer.addTrack(format); |
1,607,843 | // the entry method of submitting a backup or restore job<NEW_LINE>public void process(AbstractBackupStmt stmt) throws DdlException {<NEW_LINE>// check if repo exist<NEW_LINE>String repoName = stmt.getRepoName();<NEW_LINE>Repository repository = repoMgr.getRepo(repoName);<NEW_LINE>if (repository == null) {<NEW_LINE>Err... | , db, (RestoreStmt) stmt); |
1,503,385 | public void syncInbox() {<NEW_LINE>TransactionUtil.handle(() -> {<NEW_LINE>Boolean enabled = ConfigUtil.getConfigBooleanValue(ConfigType.INBOX_ENABLED);<NEW_LINE>if (!enabled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>log.info("Synchronizing IMAP inbox...");<NEW_LINE>Folder inbox = null;<NEW_LINE>lastSyncError = null;<NEW... | , String> tagsNameToId = getAllTags(); |
1,402,302 | private IJExpression createSpecialInjection(EComponentHolder holder, String fieldTypeQualifiedName, JFieldRef serviceRef, int apiLevel, String apiLevelName, AbstractJClass serviceClass, String injectionMethodName, boolean invocationRequiresContext) {<NEW_LINE>if (getEnvironment().getAndroidManifest().getMinSdkVersion()... | arg(holder.getContextRef()); |
1,726,317 | public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {<NEW_LINE>switch(viewType) {<NEW_LINE>case ADDONS_LIST:<NEW_LINE>{<NEW_LINE>AddonsListBinding binding = DataBindingUtil.inflate(LayoutInflater.from(parent.getContext()), R.layout.addons_list, parent, false);<NEW_LINE>return new ... | getContext(), binding, mDelegate); |
767,528 | public void marshall(AwsEc2InstanceDetails awsEc2InstanceDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsEc2InstanceDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(awsEc2InstanceDetails... | awsEc2InstanceDetails.getImageId(), IMAGEID_BINDING); |
1,659,083 | public void update(AnActionEvent e) {<NEW_LINE>Presentation presentation = e.getPresentation();<NEW_LINE>if (!Registry.is("vcs.log.graph.history")) {<NEW_LINE>presentation.setEnabledAndVisible(false);<NEW_LINE>} else {<NEW_LINE>VirtualFile file = e.getData(CommonDataKeys.VIRTUAL_FILE);<NEW_LINE>Project project = e.getP... | getInstance(project).getDataManager(); |
975,020 | public SQLExpr buildPartitionBy(GsiMetaManager.GsiTableMetaBean indexTableMeta, boolean onTable) {<NEW_LINE>final String policy = onTable ? indexTableMeta.tbPartitionPolicy : indexTableMeta.dbPartitionPolicy;<NEW_LINE>final String key = onTable <MASK><NEW_LINE>if (null == indexTableMeta || TStringUtil.isBlank(policy)) ... | ? indexTableMeta.tbPartitionKey : indexTableMeta.dbPartitionKey; |
1,654,665 | public HashMap<String, Integer> convert(String[] strs) {<NEW_LINE>HashMap<String, Integer> res = new HashMap<>();<NEW_LINE>for (String st : strs) {<NEW_LINE>if (st.indexOf(":") < 0) {<NEW_LINE>res.put(st, res.getOrDefault(st, 0) + 1);<NEW_LINE>} else {<NEW_LINE>String[] cells = st.split(":");<NEW_LINE>int si = Integer.... | 1].substring(1)); |
1,723,208 | public FormatInfo process(String templatePath, ImageFormat format, String templateName, long processTimeout) throws InternalErrorException {<NEW_LINE>if (format != null) {<NEW_LINE>s_logger.debug("We currently don't handle conversion from " + format + " to VHD.");<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String vhdPat... | s_logger.debug("Unable to find the vhd file: " + vhdPath); |
393,603 | String doFateOperation(FateOperation op, List<ByteBuffer> args, Map<String, String> opts, String tableOrNamespaceName, boolean wait) throws AccumuloSecurityException, TableExistsException, TableNotFoundException, AccumuloException, NamespaceExistsException, NamespaceNotFoundException {<NEW_LINE>Long opid = null;<NEW_LI... | .getTableId()), tableOrNamespaceName); |
1,229,608 | public void open(Serializable checkpoint) throws Exception {<NEW_LINE>logger.info(<MASK><NEW_LINE>jobProps = jobCtx.getProperties();<NEW_LINE>if (jobProps.get("forceFailure") != null) {<NEW_LINE>failOn = Integer.parseInt(jobProps.getProperty("forceFailure"));<NEW_LINE>}<NEW_LINE>if ("true".equals(jobProps.get("userData... | "In ArrayCheckpointReader, thread = " + Thread.currentThread()); |
755 | public static Memory fGetXAttrAsMemory(int fd, String name) throws IOException {<NEW_LINE>ssize_t retval;<NEW_LINE>Memory valueMem;<NEW_LINE>int eno = 0;<NEW_LINE>do {<NEW_LINE>retval = XAttr.INSTANCE.fgetxattr(fd, name, (Memory) null, size_t.ZERO);<NEW_LINE>if (retval.longValue() < 0) {<NEW_LINE>eno = Native.getLastEr... | Memory(retval.longValue()); |
1,334,400 | protected static void appendTimerMetrics(Map<String, Object> metrics, NodeProbe probe, String keyspace, String metric) {<NEW_LINE>// "ReadLatency" => "read_latency_hugegraph"<NEW_LINE>String suffix = keyspace == null ? "*" : keyspace;<NEW_LINE>String name = humpToLine(metric + "_" + suffix);<NEW_LINE>// Aggregation of ... | "mean_rate", value.getMeanRate()); |
673,971 | public static GetAggregateResourceComplianceTimelineResponse unmarshall(GetAggregateResourceComplianceTimelineResponse getAggregateResourceComplianceTimelineResponse, UnmarshallerContext _ctx) {<NEW_LINE>getAggregateResourceComplianceTimelineResponse.setRequestId(_ctx.stringValue("GetAggregateResourceComplianceTimeline... | ("GetAggregateResourceComplianceTimelineResponse.ResourceComplianceTimeline.ComplianceList[" + i + "].ConfigurationDiff")); |
702,152 | public static ListScalingActivityV2Response unmarshall(ListScalingActivityV2Response listScalingActivityV2Response, UnmarshallerContext _ctx) {<NEW_LINE>listScalingActivityV2Response.setRequestId(_ctx.stringValue("ListScalingActivityV2Response.RequestId"));<NEW_LINE>listScalingActivityV2Response.setPageNumber(_ctx.inte... | ("ListScalingActivityV2Response.Items[" + i + "].Transition")); |
1,765,660 | public static void main(String[] args) {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>System.out.print("Enter size of square matrix - ");<NEW_LINE>int n = sc.nextInt();<NEW_LINE>int[][] ar = new int[n][n];<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>for (int j = 0; j < n; j++) {<NEW_LINE>a... | System.out.println("Enter elements -"); |
673,164 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player tappingPlayer = game.getPlayer(firstControllerId);<NEW_LINE>Permanent permanentToControl = game.getPermanent(this.getTargetPointer().getFirst(game, source));<NEW_LINE>if (tappingPlayer != null && permanentToControl != null) {<NEW_LINE>// Create opponent ... | 1, 1, true, filter); |
1,077,060 | CxxPreprocessAndCompileStep makeMainStep(BuildContext context, Path scratchDir) {<NEW_LINE><MASK><NEW_LINE>Path pchOutput = canPrecompile() ? resolver.getRelativePath(getSourcePathToOutput()) : Platform.detect().getNullDevicePath();<NEW_LINE>return new // TODO(10194465): This uses relative path so as to get relative pa... | SourcePathResolverAdapter resolver = context.getSourcePathResolver(); |
1,471,684 | private void initializeProducer() {<NEW_LINE>Properties producerProps = new Properties();<NEW_LINE>producerProps.put(ProducerConfig.ACKS_CONFIG, "-1");<NEW_LINE>producerProps.put(ProducerConfig.REQUEST_TIMEOUT_MS_CONFIG, "20000");<NEW_LINE>producerProps.put(ProducerConfig.RETRIES_CONFIG, "3");<NEW_LINE>producerProps.pu... | = new KafkaProducer<>(producerProps); |
996,514 | public void initFromTensorFlow(NodeDef nodeDef, SameDiff initWith, Map<String, AttrValue> attributesForNode, GraphDef graph) {<NEW_LINE>String thisName = nodeDef.getName();<NEW_LINE>// FIXME: ????<NEW_LINE>String inputName = thisName + "/k";<NEW_LINE>NodeDef kNode = null;<NEW_LINE>for (int i = 0; i < graph.getNodeCount... | getAttrOrThrow("sorted").getB(); |
533,334 | public String viewPhone(@RequestParam(required = false) Long customerPhoneId, HttpServletRequest request, @ModelAttribute("phoneNameForm") PhoneNameForm phoneNameForm, BindingResult errors) {<NEW_LINE>if (customerPhoneId == null) {<NEW_LINE>return viewPhoneSuccessView;<NEW_LINE>} else {<NEW_LINE>Long currCustomerId = c... | getCustomer(request).getId(); |
874,704 | private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualNetworkName, VirtualNetworkInner body, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
1,692,000 | private Task<Map<String, Object>> firebaseAppToMap(FirebaseApp firebaseApp) {<NEW_LINE>return Tasks.call(cachedThreadPool, () -> {<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>Map<String, String> optionsMap = new HashMap<>();<NEW_LINE>FirebaseOptions options = firebaseApp.getOptions();<NEW_LINE>optionsMap.put(KEY_API_K... | appMap = new HashMap<>(); |
717,517 | protected void saveMeasures(Map<String, CoverageMeasures> coverageMeasures) {<NEW_LINE>for (var entry : coverageMeasures.entrySet()) {<NEW_LINE>final String filePath = PathUtils.sanitize(entry.getKey());<NEW_LINE>if (filePath != null) {<NEW_LINE>var cxxFile = getInputFileIfInProject(filePath);<NEW_LINE>if (cxxFile != n... | var msg = "Cannot save coverage measures for file '" + filePath + "'"; |
915,154 | public cn.wildfirechat.proto.WFCMessage.CreateGroupRequest buildPartial() {<NEW_LINE>cn.wildfirechat.proto.WFCMessage.CreateGroupRequest result = new cn.wildfirechat.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>... | proto.WFCMessage.CreateGroupRequest(this); |
1,736,316 | protected XFormDialog buildDialog(Interface modelItem) {<NEW_LINE>XFormDialogBuilder builder = XFormFactory.createDialogBuilder("XmlBeans Classes");<NEW_LINE>XForm mainForm = builder.createForm("Basic");<NEW_LINE>addWSDLFields(mainForm, modelItem);<NEW_LINE>mainForm.addTextField(XSBTARGET, "Target directory for CLASS a... | ), "Specify arguments for XmlBeans 2.X scomp", UISupport.TOOL_ICON); |
1,088,740 | private Promise<?> maybeYield(@Nonnull final AsyncRunnable processRunnable, @Nonnull final TreeUpdatePass pass, final DefaultMutableTreeNode node) {<NEW_LINE>if (isRerunNeeded(pass)) {<NEW_LINE><MASK><NEW_LINE>return Promises.<Void>rejectedPromise();<NEW_LINE>}<NEW_LINE>if (canYield()) {<NEW_LINE>final AsyncPromise<?> ... | getUpdater().requeue(pass); |
392,834 | public void handle(WebEvent<String> t) {<NEW_LINE>final Stage dialogStage = new Stage();<NEW_LINE>dialogStage.initModality(Modality.WINDOW_MODAL);<NEW_LINE>dialogStage.initOwner(stage);<NEW_LINE>// NOI18N<NEW_LINE>ResourceBundle r = NbBundle.getBundle(NbBrowsers.class);<NEW_LINE>// NOI18N<NEW_LINE>dialogStage.setTitle(... | Text(t.getData()); |
358,168 | public static void rotateCCW(GrayF32 image) {<NEW_LINE>if (image.width != image.height)<NEW_LINE>throw new IllegalArgumentException("Image must be square");<NEW_LINE>int w = image.height / 2 + image.height % 2;<NEW_LINE>int h = image.height / 2;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, h, y0->{<NEW_LINE>... | + y0 * image.stride + x0; |
1,042,290 | public Map<Integer, Long> queryMinOffsetInAllGroup(final String topic, final String filterGroups) {<NEW_LINE>Map<Integer, Long> queueMinOffset = new HashMap<Integer, Long>();<NEW_LINE>Set<String> topicGroups = this.offsetTable.keySet();<NEW_LINE>if (!UtilAll.isBlank(filterGroups)) {<NEW_LINE>for (String group : filterG... | , entry.getValue())); |
1,754,706 | private void mapStopPlaceAndQuays(TariffZoneMapper tariffZoneMapper) {<NEW_LINE>StopAndStationMapper stopMapper = new StopAndStationMapper(idFactory, currentNetexIndex.getQuayById(), tariffZoneMapper, issueStore);<NEW_LINE>for (String stopPlaceId : currentNetexIndex.getStopPlaceById().localKeys()) {<NEW_LINE>Collection... | ).addAll(stopMapper.resultStations); |
345,341 | private void notifySessionStopping(Set<Map.Entry<TracerPackage, List<TracerProbe>>> items) {<NEW_LINE>Iterator<Map.Entry<TracerPackage, List<TracerProbe>>> itemsI = items.iterator();<NEW_LINE>while (itemsI.hasNext()) {<NEW_LINE>Map.Entry<TracerPackage, List<TracerProbe>> item = itemsI.next();<NEW_LINE>List<TracerProbe>... | ph.sessionStopping(probesArr, dataSource); |
1,325,130 | private CloseableHttpResponse execute(final HttpUriRequest request, final int previousStatusCode) throws CloudstackRESTException {<NEW_LINE>if (counter.hasReachedExecutionLimit()) {<NEW_LINE>throw new CloudstackRESTException("Reached max executions limit of " + executionLimit);<NEW_LINE>}<NEW_LINE>counter.incrementExec... | CloudstackRESTException("Unexpected status code: " + statusCode, statusCode); |
299,245 | final ListEnvironmentAccountConnectionsResult executeListEnvironmentAccountConnections(ListEnvironmentAccountConnectionsRequest listEnvironmentAccountConnectionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEnvironmentAccountConnectionsRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
619,965 | public static void convert(Object obj, ReadContext context, ConvertContext convertContext, BiFunction<Throwable, ReadContext, Boolean> exceptionFunction) {<NEW_LINE>ReadConverter<String, ?> readConverter = READ_CONVERTERS.get(context.<MASK><NEW_LINE>if (readConverter == null) {<NEW_LINE>throw new IllegalStateException(... | getField().getType()); |
1,115,699 | public int run(String launcherVersion, String launcherMd5, ServerUrlGenerator urlGenerator, Map<String, String> environmentVariables, Map context) {<NEW_LINE>String agentProcessParentClassName = JarUtil.getManifestKey(Downloader.AGENT_BINARY_JAR, GO_AGENT_BOOTSTRAP_CLASS);<NEW_LINE>String tempDirSuffix = new BigInteger... | 16) + "-" + Downloader.AGENT_BINARY_JAR; |
1,420,010 | public JobManifestLocation unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>JobManifestLocation jobManifestLocation = new JobManifestLocation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE... | ().unmarshall(context)); |
658,064 | public void retryCall() throws Exception {<NEW_LINE>int divisor = 1;<NEW_LINE>boolean retry = false;<NEW_LINE>int limit = Integer.MAX_VALUE;<NEW_LINE>do {<NEW_LINE>retry = false;<NEW_LINE>// Used to reduce batch size with each retry<NEW_LINE>limit = m_events.size() / divisor;<NEW_LINE>try {<NEW_LINE>Iterator<DataPoint>... | trace(sw.toString()); |
1,386,102 | public void modifyTestElement(TestElement element) {<NEW_LINE>boolean useRaw = showRawBodyPane && !postBodyContent.getText().isEmpty();<NEW_LINE>Arguments args;<NEW_LINE>if (useRaw) {<NEW_LINE>args = new Arguments();<NEW_LINE>String text = postBodyContent.getText();<NEW_LINE>HTTPArgument arg = new HTTPArgument("", text... | (HTTPSamplerBase.ARGUMENTS, args)); |
479,597 | public BLangNode transform(OptionalFieldAccessExpressionNode optionalFieldAccessExpressionNode) {<NEW_LINE>BLangFieldBasedAccess bLFieldBasedAccess;<NEW_LINE><MASK><NEW_LINE>if (fieldName.kind() == SyntaxKind.QUALIFIED_NAME_REFERENCE) {<NEW_LINE>QualifiedNameReferenceNode qualifiedFieldName = (QualifiedNameReferenceNod... | Node fieldName = optionalFieldAccessExpressionNode.fieldName(); |
519,340 | public static ElementDeclaration fromJson(JsonObject jsonObject) {<NEW_LINE>String name = jsonObject.get("name").getAsString();<NEW_LINE>String kind = jsonObject.get("kind").getAsString();<NEW_LINE>int fileIndex = jsonObject.get("fileIndex").getAsInt();<NEW_LINE>int offset = jsonObject.get("offset").getAsInt();<NEW_LIN... | get("mixinName").getAsString(); |
1,794,111 | private void checkAttributeUse(MAttributeSet attributeSet, MAttribute attribute) {<NEW_LINE>StringBuilder select = new StringBuilder("FROM M_AttributeUse WHERE ");<NEW_LINE>select.append(I_M_AttributeUse.COLUMNNAME_M_AttributeSet_ID).append("=? AND ");<NEW_LINE>select.append(I_M_AttributeUse.COLUMNNAME_M_Attribute_ID).... | ), 0, get_TrxName()); |
477,743 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>Spell spell = game.getStack().getSpell(source.getSourceId(), false);<NEW_LINE>if (controller != null && spell != null) {<NEW_LINE>ApproachOfTheSecondSunWatcher watcher = game.getState().getWatcher(ApproachOfTheSecondSunW... | getPlayer(source.getControllerId()); |
333,313 | String tag(String namespace, String local, int type, boolean localIsQname) {<NEW_LINE>String prefix = ns.get(namespace);<NEW_LINE>if (type != FAST && type != FASTATTR) {<NEW_LINE>if ((!localIsQname) && !XMLChar.isValidNCName(local))<NEW_LINE>return splitTag(namespace + local, type);<NEW_LINE>if (namespace.equals(RDFNS)... | throw new InvalidPropertyURIException("rdf:" + local); |
1,279,576 | private UserModel resolveUser(BackchannelAuthenticationEndpointRequest endpointRequest, String authRequestedUserHint) {<NEW_LINE>CIBALoginUserResolver resolver = <MASK><NEW_LINE>if (resolver == null) {<NEW_LINE>throw new RuntimeException("CIBA Login User Resolver not setup properly.");<NEW_LINE>}<NEW_LINE>String userHi... | session.getProvider(CIBALoginUserResolver.class); |
937,556 | public FormattedMsgWithAdIssueId extractMsgAndAdIssue(@NonNull final String msg, final Object... msgParameters) {<NEW_LINE>final IErrorManager errorManager = Services.get(IErrorManager.class);<NEW_LINE>final Throwable exception = LoggableWithThrowableUtil.extractThrowable(msgParameters);<NEW_LINE>Object[] msgParameters... | msgParametersEffective = LoggableWithThrowableUtil.removeLastElement(msgParameters); |
1,011,481 | public static LatLon decodeMapsMeLatLonToInt(String s) {<NEW_LINE>// 44TvlEGXf-<NEW_LINE>int lat = 0, lon = 0;<NEW_LINE>int shift = kMaxCoordBits - 3;<NEW_LINE>for (int i = 0; i < s.length(); ++i, shift -= 3) {<NEW_LINE>int a = net.osmand.osm.io.Base64.indexOf(s.charAt(i));<NEW_LINE>if (a < 0)<NEW_LINE>return null;<NEW... | ) - 1) * 180 - 90; |
136,362 | String constructSignatureBase(String nonce, String timestamp) {<NEW_LINE>// Get query parameters from request.<NEW_LINE>final URI uri = URI.create(url);<NEW_LINE>final TreeMap<String, String> params = UrlUtils.getQueryParams(uri, true);<NEW_LINE>if (postParams != null) {<NEW_LINE>params.putAll(postParams);<NEW_LINE>}<N... | put(OAuthConstants.PARAM_TIMESTAMP, timestamp); |
1,718,261 | final DeleteProtocolsListResult executeDeleteProtocolsList(DeleteProtocolsListRequest deleteProtocolsListRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteProtocolsListRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteProt... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
181,606 | public HttpResponse fakeOuterBooleanSerializeForHttpResponse(Boolean body, Map<String, Object> params) throws IOException {<NEW_LINE>UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/boolean");<NEW_LINE>// Copy the params argument if present, to allow passing in immutable maps<NEW_LINE>M... | genericUrl, content).execute(); |
1,446,344 | public static void parseInput(XmlPullParser parser, RegisterConvention convention) {<NEW_LINE>ArrayList<String> integerRegisters = new ArrayList<String>();<NEW_LINE>ArrayList<String> floatRegisters = new ArrayList<String>();<NEW_LINE>parser.start("input");<NEW_LINE>while (parser.peek().isStart()) {<NEW_LINE><MASK><NEW_... | XmlElement pentry = parser.peek(); |
1,423,003 | public com.amazonaws.services.kinesisfirehose.model.InvalidArgumentException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kinesisfirehose.model.InvalidArgumentException invalidArgumentException = new com.amazonaws.services.kinesisfirehose.model.InvalidArgumen... | String currentParentElement = context.getCurrentParentElement(); |
1,253,902 | private void applyShortcuts() {<NEW_LINE>if (!termOptions.getIgnoreKeymap()) {<NEW_LINE>Set<String> actions = new HashSet<String>();<NEW_LINE>for (FileObject def : shortcutsDir.getChildren()) {<NEW_LINE>try {<NEW_LINE>DataObject <MASK><NEW_LINE>InstanceCookie ic = dobj.getLookup().lookup(InstanceCookie.class);<NEW_LINE... | dobj = DataObject.find(def); |
76,200 | final BatchDescribeTypeConfigurationsResult executeBatchDescribeTypeConfigurations(BatchDescribeTypeConfigurationsRequest batchDescribeTypeConfigurationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDescribeTypeConfigurationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | endClientExecution(awsRequestMetrics, request, response); |
251,580 | private static MethodNode generateSetter(Class<? extends AbstractBeanEntityBuilder> type, Method smethod) {<NEW_LINE>MethodNode setter = new MethodNode();<NEW_LINE>setter.access = ACC_PUBLIC;<NEW_LINE>setter.desc = getMethodDescriptor(VOID_TYPE, getType(AbstractBeanEntityBuilder.class), getType(Object.class));<NEW_LINE... | .exceptions = Collections.emptyList(); |
744,040 | protected void onActivityResult(int requestCode, int resultCode, Intent dataIntent) {<NEW_LINE>super.onActivityResult(requestCode, resultCode, dataIntent);<NEW_LINE>if (requestCode == ACTIVITY_LICENSE) {<NEW_LINE>// License check<NEW_LINE>if (dataIntent != null) {<NEW_LINE>int code = dataIntent.getIntExtra("Code", -1);... | sReason = Integer.toString(reason); |
853,322 | private static ScalarValue[] parseTRBLValue(String val) {<NEW_LINE>ScalarValue[] out = new ScalarValue[4];<NEW_LINE>String[] parts = Util.split(val, " ");<NEW_LINE>int len = parts.length;<NEW_LINE>switch(len) {<NEW_LINE>case 1:<NEW_LINE>ScalarValue v = parseSingleTRBLValue(parts[0]);<NEW_LINE>for (int i = 0; i < 4; i++... | out[Component.TOP] = v1; |
1,723,552 | private LatLon parseOlcCode(String olcText) {<NEW_LINE>LatLon loc = null;<NEW_LINE>stopSearchAsyncTask();<NEW_LINE>updateProgressBar(false);<NEW_LINE>String olcTextCode;<NEW_LINE>String cityName = "";<NEW_LINE>String[] olcTextParts = olcText.split(" ");<NEW_LINE>if (olcTextParts.length > 1) {<NEW_LINE>olcTextCode = olc... | (newCode.getCode())); |
523,419 | private void reset() throws IOException {<NEW_LINE>this.perFieldTermVectorInput.reset();<NEW_LINE>this.perFieldTermVectorInput.skip(readOffset);<NEW_LINE>// read how many terms....<NEW_LINE>this.numTerms = perFieldTermVectorInput.readVLong();<NEW_LINE>// ...if positions etc. were stored....<NEW_LINE>this.hasPositions =... | ? readPotentiallyNegativeVLong(perFieldTermVectorInput) : -1; |
1,619,147 | private AllocableHUsList retrieveAvailableHUsToPick(@NonNull final AllocableHUsGroupingKey key) {<NEW_LINE>final ProductId productId = key.getProductId();<NEW_LINE>final ImmutableList<PickFromHU> husEligibleToPick = pickFromHUsSupplier.getEligiblePickFromHUs(// TODO match attributes<NEW_LINE>PickFromHUsGetRequest.build... | .getTopLevelHUId(), productId)); |
1,821,407 | public boolean retryRequest(HttpResponse response, int executionCount, HttpContext ctx) {<NEW_LINE>log.fine(() -> String.format("retryRequest(responseCode='%s', executionCount='%d', ctx='%s'", response.getStatusLine().getStatusCode(), executionCount, ctx));<NEW_LINE>HttpClientContext clientCtx = HttpClientContext.adapt... | response, delay, executionCount, clientCtx); |
1,186,127 | public static void delete(TOTorrent torrent) throws TOTorrentException {<NEW_LINE>try {<NEW_LINE>torrent.getMonitor().enter();<NEW_LINE>String str = torrent.getAdditionalStringProperty("torrent filename");<NEW_LINE>if (str == null) {<NEW_LINE>throw (new TOTorrentException("TorrentUtils::delete: no 'torrent filename' at... | file = FileUtil.newFile(str); |
1,372,220 | public void applyWayTags(ReaderWay way, EdgeIteratorState edge) {<NEW_LINE>PointList pl = <MASK><NEW_LINE>double fullDist2D = edge.getDistance();<NEW_LINE>if (Double.isInfinite(fullDist2D))<NEW_LINE>throw new IllegalStateException("Infinite distance should not happen due to #435. way ID=" + way.getId());<NEW_LINE>// sk... | edge.fetchWayGeometry(FetchMode.ALL); |
65,911 | final GetInstancesResult executeGetInstances(GetInstancesRequest getInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getInstancesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
653,032 | public boolean deletePrimaryDataStore(DataStore store) {<NEW_LINE>List<StoragePoolHostVO> hostPoolRecords = this.storagePoolHostDao.listByPoolId(store.getId());<NEW_LINE>StoragePoolVO poolVO = this.dataStoreDao.findById(store.getId());<NEW_LINE>TransactionLegacy txn = TransactionLegacy.currentTxn();<NEW_LINE>txn.start(... | ), host.getPoolId()); |
1,784,306 | public void marshall(S3Object s3Object, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (s3Object == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(s3Object.getBucketArn(), BUCKETARN_BINDING);<NEW_LINE>protoc... | s3Object.getKey(), KEY_BINDING); |
814,680 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>buttonGroup = new javax.swing.ButtonGroup();<NEW_LINE>scrollPane = <MASK><NEW_LINE>buttonPanel = new javax.swing.JPanel();<... | new javax.swing.JScrollPane(); |
1,203,106 | private void readHeaderFormat(int headerSize, byte[] buff) throws TTransportException {<NEW_LINE>ByteBuffer frame = ByteBuffer.wrap(buff);<NEW_LINE>// Advance past version, flags, seqid<NEW_LINE>frame.position(10);<NEW_LINE>headerSize = headerSize * 4;<NEW_LINE>int endHeader = headerSize + frame.position();<NEW_LINE>if... | readPersistentHeaders.put(key, value); |
1,596,058 | public static void printBatch(VectorAccessible batch, SelectionVector2 sv2) {<NEW_LINE>List<String> columns = Lists.newArrayList();<NEW_LINE>List<ValueVector<MASK><NEW_LINE>for (VectorWrapper<?> vw : batch) {<NEW_LINE>columns.add(vw.getValueVector().getField().getName());<NEW_LINE>vectors.add(vw.getValueVector());<NEW_... | > vectors = Lists.newArrayList(); |
575,332 | public void reset(TransferMode mode) {<NEW_LINE>// log results.<NEW_LINE>StringBuilder sb = new StringBuilder("ping-monitor:");<NEW_LINE>sb.append("good=").append(nGoodPings).append(":");<NEW_LINE>sb.append("bad=").append(nBadPings).append(":");<NEW_LINE>sb.append("neutral=").append(nNeutralPings);<NEW_LINE>SpeedManage... | log(sb.toString()); |
491,991 | public void importCertificate() {<NEW_LINE>CertificateAsyncClient certificateAsyncClient = getCertificateAsyncClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.certificates.CertificateAsyncClient.importCertificate#options<NEW_LINE>byte[<MASK><NEW_LINE>ImportCertificateOptions config = new ImportCertificateOption... | ] certificateToImport = new byte[100]; |
266,885 | public static AlbumInfo parseRedditGallery(final String url, final JsonObject object) {<NEW_LINE>final JsonObject mediaMetadataList = object.getObject("media_metadata");<NEW_LINE>final JsonObject galleryData = object.getObject("gallery_data");<NEW_LINE>if (mediaMetadataList == null || galleryData == null) {<NEW_LINE>re... | JsonObject item = itemValue.asObject(); |
1,253,423 | public void readIntraNxN(MBlock mBlock) {<NEW_LINE>int mbX = mapper.getMbX(mBlock.mbIdx);<NEW_LINE>int mbY = mapper.getMbY(mBlock.mbIdx);<NEW_LINE>boolean leftAvailable = mapper.leftAvailable(mBlock.mbIdx);<NEW_LINE>boolean topAvailable = mapper.topAvailable(mBlock.mbIdx);<NEW_LINE>mBlock.transform8x8Used = false;<NEW_... | , leftMBType, topMBType[mbX]); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.