idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
912,035 | final XAResource enlistRRSXAResource(int recoveryId, int branchCoupling) throws Exception {<NEW_LINE>RRSXAResourceFactory xaFactory = (RRSXAResourceFactory) pm.connectorSvc.rrsXAResFactorySvcRef.getService();<NEW_LINE>// Make sure that the bundle is active.<NEW_LINE>if (xaFactory == null) {<NEW_LINE>throw new IllegalSt... | getTwoPhaseXAResource(uowCoord.getXid()); |
1,683,425 | private int lotes(int row, IDColumn id, int Warehouse_ID, int M_Product_ID, BigDecimal qtyRequired, BigDecimal qtyToDelivery, IMiniTable issue) {<NEW_LINE>int linesNo = 0;<NEW_LINE>BigDecimal qtyRequiredActual = qtyRequired;<NEW_LINE>final String sql = "SELECT " + "s.M_Product_ID , s.QtyOnHand, s.M_AttributeSetInstance... | Env.ZERO, row, 8); |
397,618 | public SqlDelete initTableInfo(TableInfo srcInfo) {<NEW_LINE>final List<SqlNode> sourceTables = new ArrayList<>();<NEW_LINE>final List<SqlNode> aliases = new ArrayList<>();<NEW_LINE>final Map<SqlNode, List<SqlIdentifier>> subQueryTableMap = new HashMap<>();<NEW_LINE>final AtomicBoolean withAlias = new AtomicBoolean(fal... | SqlNodeList(aliases, SqlParserPos.ZERO); |
1,376,278 | public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasLengthAndAllElementsNotNull(sources, 2);<NEW_LINE>final Coordinate start = getCoordinate(sources[0]);<NEW_LINE>final Coordinate end = getCoordinate(sources[1]);<NEW... | ), ctx.isJavaScriptContext()); |
6,782 | protected String doIt() {<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>String sql = "INSERT into T_Reconciliation " + "(AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy, " + "IsActive, Fact_Acct_ID, " + "AD_PInstance_ID, MatchCode) " + "SELECT f.AD_Client_ID, f.AD_Org_... | pstmt.setTimestamp(4, p_DateAcct_To); |
1,302,156 | public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>Bundle args = getArguments();<NEW_LINE>if (args == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MapActivity mapActivity = getMapActivity();<NEW_LINE>if (mapActivity == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long id = args.getLong(SwitchableAction.K... | OsmandSettings settings = app.getSettings(); |
1,154,810 | public static DateValue parseDate(String s) {<NEW_LINE>Matcher matcher = suTimeDateFormat.matcher(s.toUpperCase());<NEW_LINE>if (matcher.matches()) {<NEW_LINE>String yS = matcher.group(1), mS = matcher.group(2), dS = matcher.group(3);<NEW_LINE>int y = -1, m = -1, d = -1;<NEW_LINE>if (!(yS == null || yS.isEmpty() || yS.... | ), date.getDayOfMonth()); |
702,749 | public JsonElement extract() {<NEW_LINE>var enchantsJson = new JsonArray();<NEW_LINE>for (var enchant : Registry.ENCHANTMENT) {<NEW_LINE>var enchantJson = new JsonObject();<NEW_LINE>enchantJson.addProperty("id", Registry.ENCHANTMENT.getRawId(enchant));<NEW_LINE>enchantJson.addProperty("name", Registry.ENCHANTMENT.getId... | enchantJson.add("sources", enchantmentSources); |
983,259 | public TableColumn specifyColumn(String type, String name, String cmd, boolean newObject, boolean newColumn) throws ClassNotFoundException, IllegalAccessException, InstantiationException {<NEW_LINE>TableColumn column;<NEW_LINE>Map gprops = (Map) getSpecification().getProperties();<NEW_LINE>Map props = (Map) getSpecific... | String) bindmap.get(type); |
1,365,198 | public static ListScenarioParametersResponse unmarshall(ListScenarioParametersResponse listScenarioParametersResponse, UnmarshallerContext context) {<NEW_LINE>listScenarioParametersResponse.setRequestId(context.stringValue("ListScenarioParametersResponse.RequestId"));<NEW_LINE>listScenarioParametersResponse.setSuccess(... | (context.integerValue("ListScenarioParametersResponse.HttpStatusCode")); |
1,460,953 | public static IPoweredTask readFromNBT(@Nonnull NBTTagCompound nbtRoot) {<NEW_LINE>IMachineRecipe recipe;<NEW_LINE>float usedEnergy = nbtRoot.getFloat(KEY_USED_ENERGY);<NEW_LINE>long seed = nbtRoot.getLong(KEY_SEED);<NEW_LINE>float outputMultiplier = nbtRoot.getFloat(KEY_CHANCE_OUTPUT);<NEW_LINE>float chanceMultiplier ... | stackTag = inputItems.getCompoundTagAt(i); |
1,134,002 | // private void loadFileList() {<NEW_LINE>private void createFileListAdapter() {<NEW_LINE>adapter = new ArrayAdapter<Item>(this, android.R.layout.select_dialog_item, android.R.id.text1, fileList) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public View getView(int position, View convertView, ViewGroup parent) {<NEW_LINE>// ... | android.R.id.text1); |
1,460,381 | public Long migrate(final HaWorkVO work) {<NEW_LINE>long vmId = work.getInstanceId();<NEW_LINE><MASK><NEW_LINE>VMInstanceVO vm = _instanceDao.findById(vmId);<NEW_LINE>if (vm == null) {<NEW_LINE>s_logger.info("Unable to find vm: " + vmId + ", skipping migrate.");<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>s_logger.info("... | long srcHostId = work.getHostId(); |
445,368 | private StepMeta udjc(List<DatasetTableField> datasetTableFields, DatasourceTypes datasourceType) {<NEW_LINE>StringBuilder handleBinaryTypeCode = new StringBuilder();<NEW_LINE>String excelCompletion = "";<NEW_LINE>for (DatasetTableField datasetTableField : datasetTableFields) {<NEW_LINE>if (datasetTableField.getDeExtra... | (Collectors.joining(",")); |
1,359,692 | public void handleAutopilot() {<NEW_LINE>if (!mc.player.isFallFlying())<NEW_LINE>return;<NEW_LINE>if (elytraFly.autoPilot.get() && mc.player.getY() > elytraFly.autoPilotMinimumHeight.get()) {<NEW_LINE>mc.options.forwardKey.setPressed(true);<NEW_LINE>lastForwardPressed = true;<NEW_LINE>}<NEW_LINE>if (elytraFly.useFirewo... | mc.world, Hand.OFF_HAND); |
385,763 | private void serverRemovedSegment(DruidServerMetadata server, DataSegment segment) {<NEW_LINE>SegmentId segmentId = segment.getId();<NEW_LINE>final ServerSelector selector;<NEW_LINE>synchronized (lock) {<NEW_LINE>log.debug("Removing segment[%s] from server[%s].", segmentId, server);<NEW_LINE>// we don't store broker se... | .serverSegmentRemoved(server, segment)); |
601,328 | protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>JsonObject input = InputParser.parseJsonObjectOrThrowError(req);<NEW_LINE>String sessionHandle = InputParser.parseStringOrThrowError(input, "sessionHandle", false);<NEW_LINE>assert sessionHandle != nul... | reply.addProperty("status", "UNAUTHORISED"); |
56,210 | private static <T extends IPart> ColoredItemDefinition<ColoredPartItem<T>> constructColoredDefinition(String nameSuffix, String idSuffix, Class<T> partClass, Function<ColoredPartItem<T>, T> factory) {<NEW_LINE>PartModels.registerModels(PartModelsHelper.createModels(partClass));<NEW_LINE>var definition = new ColoredItem... | = color.englishName + " " + nameSuffix; |
1,250,672 | public PrimaryDcCheckMessage changePrimaryDcCheck(String clusterId, String shardId, String newPrimaryDc, ForwardInfo forwardInfo) {<NEW_LINE>logger.info("[changePrimaryDcCheck]{}, {}, {}, {}", clusterId, shardId, newPrimaryDc, forwardInfo);<NEW_LINE>Pair<Long, Long> clusterShard = dcMetaCache.clusterShardId2DbId(cluste... | ("current dc :%s is not new primary: %s ", currentDc, newPrimaryDc)); |
1,403,932 | private void updateExportsPropertyAssignment(Node getpropNode, NodeTraversal t) {<NEW_LINE>if (!currentScript.isModule) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Node parent = getpropNode.getParent();<NEW_LINE>checkState(parent.isAssign() || parent.isExprResult(), parent);<NEW_LINE>// Update "exports.foo = Foo" to "module... | String exportedNamespace = currentScript.getExportedNamespace(); |
1,000,566 | public static StarlarkFunctionInfo fromNameAndFunction(String functionName, StarlarkFunction fn) throws DocstringParseException {<NEW_LINE>String functionDescription = "";<NEW_LINE>Map<String, String> paramNameToDocMap = Maps.newLinkedHashMap();<NEW_LINE>FunctionReturnInfo retInfo = FunctionReturnInfo.getDefaultInstanc... | paramsInfo = parameterInfos(fn, paramNameToDocMap); |
1,611,431 | private Graph rebuildGraph(Graph graph, int[] communityIds, int communityCount) {<NEW_LINE>// count and normalize community structure<NEW_LINE>final int nodeCount = communityIds.length;<NEW_LINE>// bag of nodeId->{nodeId, ..}<NEW_LINE>final IntObjectMap<IntScatterSet> relationships = new IntObjectScatterMap<>(nodeCount... | , targetCommunity), value / 2); |
1,055,379 | protected void runDriver(Object object) throws Exception {<NEW_LINE>int passed = 0, failed = 0;<NEW_LINE>Class<?> clazz = object.getClass();<NEW_LINE>out.println("Tests for " + clazz.getName());<NEW_LINE>// Find methods<NEW_LINE>for (Method method : clazz.getMethods()) {<NEW_LINE>List<Pair<String, TypeAnnotation.Positi... | fullFile = PersistUtil.wrap(compact); |
1,846,193 | protected void onBindMediaDetails(ViewHolder vh, Object item) {<NEW_LINE>int favoriteTextColor = vh.view.getContext().getResources().getColor(R.color.song_row_favorite_color);<NEW_LINE>Song song = (Song) item;<NEW_LINE>if (song.getNumber() == 1 && firstRowView == null) {<NEW_LINE>firstRowView = vh.getMediaItemNameView(... | "" + song.getNumber()); |
851,586 | public void prepare(BaseDanmakuParser parser, DanmakuContext config) {<NEW_LINE>CustomParser newParser = new <MASK><NEW_LINE>DanmakuContext configCopy;<NEW_LINE>try {<NEW_LINE>configCopy = (DanmakuContext) config.clone();<NEW_LINE>configCopy.resetContext();<NEW_LINE>configCopy.transparency = AlphaValue.MAX;<NEW_LINE>co... | CustomParser(parser, mBeginTimeMills, mEndTimeMills); |
952,710 | public static ConnectionCostsWriter<ConnectionCosts> build(Path path) throws IOException {<NEW_LINE>try (Reader reader = Files.newBufferedReader(path, StandardCharsets.US_ASCII);<NEW_LINE>LineNumberReader lineReader = new LineNumberReader(reader)) {<NEW_LINE><MASK><NEW_LINE>String[] dimensions = line.split("\\s+");<NEW... | String line = lineReader.readLine(); |
1,361,977 | public void open(long minSeqNum, int elementCount) throws IOException {<NEW_LINE>mapFile();<NEW_LINE>buffer.position(0);<NEW_LINE>this.version = buffer.get();<NEW_LINE>validateVersion(this.version);<NEW_LINE>this.head = 1;<NEW_LINE>this.minSeqNum = minSeqNum;<NEW_LINE>this.elementCount = elementCount;<NEW_LINE>if (this... | long seqNum = buffer.getLong(); |
1,363,056 | final ListDistributionsByCachePolicyIdResult executeListDistributionsByCachePolicyId(ListDistributionsByCachePolicyIdRequest listDistributionsByCachePolicyIdRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDistributionsByCachePolicyIdRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
492,566 | public static RecoveryAuthnCodesCredentialModel createFromValues(List<String> originalGeneratedCodes, long generatedAt, String userLabel) {<NEW_LINE>RecoveryAuthnCodesSecretData secretData;<NEW_LINE>RecoveryAuthnCodesCredentialData credentialData;<NEW_LINE>RecoveryAuthnCodesCredentialModel model;<NEW_LINE>try {<NEW_LIN... | ), recoveryCodes.size()); |
1,417,777 | public static Map<String, Object> resolvedArtifactProps(Artifact artifact, Map<String, Object> props) {<NEW_LINE>props.putAll(artifact.getExtraProperties());<NEW_LINE>props.putAll(artifact.getResolvedExtraProperties());<NEW_LINE>String artifactFile = artifact.getEffectivePath().getFileName().toString();<NEW_LINE>String... | props.put(KEY_ARTIFACT_FILE_EXTENSION, artifactExtension); |
1,047,810 | public static String[] randomItems(int numberOfStrings, char[] givenValues) {<NEW_LINE>String[] strings = new String[numberOfStrings];<NEW_LINE>String[] fourCharacterFixedStrings = Exercise20_RandomFixedLengthWords.randomFixedLengthWords(10, 4);<NEW_LINE>String[] tenCharacterFixedStrings = Exercise20_RandomFixedLengthW... | .append(fourCharacterFixedStrings[random4CharacterStringIndex]); |
1,545,355 | public void showAndWait(KeySet keySet, List<KeyEditor> editors) {<NEW_LINE>this.keyEditors = editors;<NEW_LINE>JFXDialogLayout content = new ManageKeysDialogFxml(this);<NEW_LINE>editor.enableAddition(this::addNewEntry);<NEW_LINE>editor.addColumn("Name", KeyEntry::getName, KeyEntry::setName);<NEW_LINE>editor.addReadOnly... | dialog = FxmlUtil.createDialog(content); |
981,702 | public void gen(CharRangeElement r) {<NEW_LINE>if (DEBUG_CODE_GENERATOR || DEBUG_CPP_CODE_GENERATOR)<NEW_LINE>System.out.println("genCharRangeElement(" + r.beginText + <MASK><NEW_LINE>if (!(grammar instanceof LexerGrammar))<NEW_LINE>antlrTool.error("cannot ref character range in grammar: " + r);<NEW_LINE>if (r.getLabel... | ".." + r.endText + ")"); |
324,149 | public void marshall(CreateReplicationTaskRequest createReplicationTaskRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createReplicationTaskRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(... | createReplicationTaskRequest.getMigrationType(), MIGRATIONTYPE_BINDING); |
79,383 | final DeleteConnectClientAddInResult executeDeleteConnectClientAddIn(DeleteConnectClientAddInRequest deleteConnectClientAddInRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteConnectClientAddInRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,424,461 | private void createBodyFiles(ApiTest test, List<String> bodyUploadIds, List<MultipartFile> bodyFiles) {<NEW_LINE>if (bodyUploadIds.size() <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String dir = BODY_FILE_DIR + "/" + test.getId();<NEW_LINE><MASK><NEW_LINE>if (!testDir.exists()) {<NEW_LINE>testDir.mkdirs();<NEW_LINE>}<... | File testDir = new File(dir); |
1,472,703 | public synchronized void createSentDirectMessage(DirectMessageEvent status, User recipient, AppSettings settings, int account) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>long time = status.getCreatedTimestamp().getTime();<NEW_LINE>String[] html = TweetLinkUtils.getLinksInStatus(status);<NEW_LINE>St... | DMSQLiteHelper.COLUMN_PRO_PIC, settings.myProfilePicUrl); |
639,466 | // https://stackoverflow.com/questions/3035692/how-to-convert-a-drawable-to-a-bitmap<NEW_LINE>public static Bitmap drawableToBitmap(@NonNull Drawable drawable) {<NEW_LINE>Bitmap bitmap;<NEW_LINE>if (drawable instanceof BitmapDrawable) {<NEW_LINE>BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable;<NEW_LINE>if (bi... | ), canvas.getHeight()); |
434,828 | private Mono<Response<NatGatewayInner>> updateTagsWithResponseAsync(String resourceGroupName, String natGatewayName, TagsObject parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and ca... | error(new IllegalArgumentException("Parameter natGatewayName is required and cannot be null.")); |
692,346 | AsyncTimer startAsyncTimer(TimerName asyncTimerName, long startTick) {<NEW_LINE>AsyncTimer asyncTimer = new AsyncTimer((TimerNameImpl) asyncTimerName, startTick);<NEW_LINE>synchronized (asyncTimerLock) {<NEW_LINE>if (asyncTimers == null) {<NEW_LINE>asyncTimers = Lists.newArrayList();<NEW_LINE>}<NEW_LINE>if (asyncTimers... | > activeAsyncTimers = Lists.newArrayList(); |
315,392 | private boolean score(SysSite site, long userId, String itemType, long itemId, boolean score) {<NEW_LINE>if (CommonUtils.notEmpty(itemType)) {<NEW_LINE>CmsUserScoreId id = new <MASK><NEW_LINE>CmsUserScore entity = service.getEntity(id);<NEW_LINE>if (score) {<NEW_LINE>if (null == entity) {<NEW_LINE>if ("content".equals(... | CmsUserScoreId(userId, itemType, itemId); |
134,987 | private List<Wo> list(Business business, Wi wi) throws Exception {<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>List<Identity> os = business.identity().pick(wi.getIdentityList());<NEW_LINE>List<String> <MASK><NEW_LINE>for (Identity identity : os) {<NEW_LINE>groupIds.addAll(business.group().listSupDirectWithIdent... | groupIds = new ArrayList<>(); |
1,038,654 | public List<Environment> listEnvironments(String status) throws SubmarineRuntimeException {<NEW_LINE>List<Environment> environmentList = new ArrayList<Environment>(cachedEnvironments.values());<NEW_LINE>// Is it available in cache?<NEW_LINE>if (readedDB) {<NEW_LINE>try (SqlSession sqlSession = MyBatisUtil.getSqlSession... | e.getMessage(), e); |
1,397,282 | private static List<Class> findClasses(File directory, String packageName) throws ClassNotFoundException, IOException, URISyntaxException {<NEW_LINE>List<Class> classes = new ArrayList<>();<NEW_LINE>if (!directory.exists()) {<NEW_LINE>// maybe we are running from a jar file, so try that<NEW_LINE>File thisJarFile = new ... | getLocation().toURI()); |
934,530 | protected void addEventRegistryProperties(FlowElement flowElement, ObjectNode propertiesNode) {<NEW_LINE>String eventType = getExtensionValue("eventType", flowElement);<NEW_LINE>if (StringUtils.isNotEmpty(eventType)) {<NEW_LINE>setPropertyValue(PROPERTY_EVENT_REGISTRY_EVENT_KEY, eventType, propertiesNode);<NEW_LINE>set... | ("channelType", flowElement), propertiesNode); |
1,107,789 | public void activate(BundleContext context) {<NEW_LINE>super.activate(context);<NEW_LINE>logger.info("Loading eclim plugins...");<NEW_LINE>String pluginsDir = System.getProperty("eclim.home") + File.separator + ".." + File.separator;<NEW_LINE>String[] pluginDirs = new File(pluginsDir).list(new FilenameFilter() {<NEW_LI... | bundle.start(Bundle.START_TRANSIENT); |
494,162 | final AcceptDomainTransferFromAnotherAwsAccountResult executeAcceptDomainTransferFromAnotherAwsAccount(AcceptDomainTransferFromAnotherAwsAccountRequest acceptDomainTransferFromAnotherAwsAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(acceptDomainTransferFromAnotherAwsAccountRequest... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
457,328 | private static List<String> browseAlertTable() {<NEW_LINE>List<String> alerts = new ArrayList();<NEW_LINE>try {<NEW_LINE>// Initialize client that will be used to send requests<NEW_LINE>BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();<NEW_LINE>QueryJobConfiguration queryConfig = QueryJobConfigurat... | getError().toString()); |
48,074 | private static // F743-506<NEW_LINE>Class<?> loadCustomerProvidedBeanClass(BeanMetaData bmd) throws ContainerException, EJBConfigurationException {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "loadCustomerProvidedBeanClass... | throw new EJBConfigurationException(message, ex); |
1,828,446 | private byte[] addressToBytes(String address) {<NEW_LINE>Matcher ipv4Matcher = IPv4_PATTERN.matcher(address);<NEW_LINE>if (ipv4Matcher.matches()) {<NEW_LINE>byte[] result = new byte[4];<NEW_LINE>for (int i = 0; i < result.length; ++i) {<NEW_LINE>result[i] = Integer.valueOf(ipv4Matcher.group(i + 1)).byteValue();<NEW_LIN... | / 2 + 1), 16); |
1,094,064 | public void afterConnectionEstablished(WebSocketSession session) {<NEW_LINE>if ("graphql-ws".equalsIgnoreCase(session.getAcceptedProtocol())) {<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("apollographql/subscriptions-transport-ws is not supported, nor maintained. " + "Please, use https://github.com/en... | ), new WebMvcSessionInfo(session)); |
1,794,950 | protected void rdataFromString(Tokenizer st, Name origin) throws IOException {<NEW_LINE>elements = new ArrayList<>(1);<NEW_LINE>while (true) {<NEW_LINE>Tokenizer.Token t = st.get();<NEW_LINE>if (!t.isString()) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>boolean negative = false;<NEW_LINE>int family;<NEW_LINE>int prefix;<NEW_... | prefix = Integer.parseInt(prefixString); |
374,550 | public void andNot(final ImmutableRoaringBitmap x2) {<NEW_LINE>int pos1 = 0, pos2 = 0, intersectionSize = 0;<NEW_LINE>final int length1 = highLowContainer.size(), length2 = x2.highLowContainer.size();<NEW_LINE>while (pos1 < length1 && pos2 < length2) {<NEW_LINE>final char s1 = highLowContainer.getKeyAtIndex(pos1);<NEW_... | copyRange(pos1, length1, intersectionSize); |
1,200,005 | public static void writeFastqStream(final OutputStream writer, final Iterator<FastqRead> fastqReadItr) throws IOException {<NEW_LINE>int index = 0;<NEW_LINE>while (fastqReadItr.hasNext()) {<NEW_LINE>final FastqRead read = fastqReadItr.next();<NEW_LINE>final String header = read.getHeader();<NEW_LINE>if (header.contains... | ++index).getBytes()); |
407,364 | private void cacheAutoDetectedFileType(@Nonnull VirtualFile file, @Nonnull FileType fileType) {<NEW_LINE><MASK><NEW_LINE>boolean wasAutodetectedAsBinary = fileType == UnknownFileType.INSTANCE;<NEW_LINE>int flags = BitUtil.set(0, AUTO_DETECTED_AS_TEXT_MASK, wasAutodetectedAsText);<NEW_LINE>flags = BitUtil.set(flags, AUT... | boolean wasAutodetectedAsText = fileType == PlainTextFileType.INSTANCE; |
1,236,149 | private List<I_M_HU> retrieveVHUsFromStorage(@NonNull final List<I_M_ShipmentSchedule> shipmentSchedules, final boolean considerAttributes, final boolean isExcludeAllReserved) {<NEW_LINE>//<NEW_LINE>// Create storage queries from shipment schedules<NEW_LINE>final IShipmentScheduleBL shipmentScheduleBL = <MASK><NEW_LINE... | Services.get(IShipmentScheduleBL.class); |
929,454 | public String createFor(PlayerContainer player) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>UUID playerUUID = player.getUnsafe(PlayerKeys.UUID);<NEW_LINE>PlaceholderReplacer placeholders = new PlaceholderReplacer();<NEW_LINE>placeholders.put("refresh", clockLongFormatter.apply(now));<NEW_LINE>placeholder... | "contributors", Contributors.generateContributorHtml()); |
674,548 | private static List<Map<GroupKey, SortedMap<Integer, DuplicateCheckRow>>> buildDuplicateCheckers(List<List<Object>> selectedRows, List<List<Integer>> ukMapping, List<List<ColumnMeta>> ukColumnMetas, List<DuplicateCheckRow> outCheckRows, AtomicInteger logicalRowIndex) {<NEW_LINE>selectedRows.forEach(row -> {<NEW_LINE>fi... | .rowIndex = logicalRowIndex.getAndIncrement(); |
1,240,322 | public com.amazonaws.services.config.model.NoSuchRetentionConfigurationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.config.model.NoSuchRetentionConfigurationException noSuchRetentionConfigurationException = new com.amazonaws.services.config.model.No... | String currentParentElement = context.getCurrentParentElement(); |
1,157,400 | static void sortIntegerArray(int[] arr) {<NEW_LINE>int i = 0;<NEW_LINE>int n = arr.length;<NEW_LINE>int minElement = Integer.MAX_VALUE;<NEW_LINE>int maxElement = Integer.MIN_VALUE;<NEW_LINE>// Maximum and Minimum element from input array<NEW_LINE>for (i = 0; i < n; i++) {<NEW_LINE>if (arr[i] > maxElement) {<NEW_LINE>ma... | ] sortedArray = new int[n]; |
1,426,768 | private void checkIdlePartition(TopicPartition topicPartition) {<NEW_LINE>Long idlePartitionEventInterval = this.containerProperties.getIdlePartitionEventInterval();<NEW_LINE>if (idlePartitionEventInterval != null) {<NEW_LINE><MASK><NEW_LINE>Long lstReceive = this.lastReceivePartition.computeIfAbsent(topicPartition, ne... | long now = System.currentTimeMillis(); |
1,760,043 | public static ConnectionProfile buildDefaultConnectionProfile(Settings settings) {<NEW_LINE>int connectionsPerNodeRecovery = TransportSettings.CONNECTIONS_PER_NODE_RECOVERY.get(settings);<NEW_LINE>int connectionsPerNodeBulk = TransportSettings.CONNECTIONS_PER_NODE_BULK.get(settings);<NEW_LINE>int connectionsPerNodeReg ... | TransportSettings.CONNECTIONS_PER_NODE_PING.get(settings); |
1,494,090 | private long indexCoverByInPredicate(IndexMeta indexMeta, TableMeta tableMeta, RexNode pred) {<NEW_LINE>if (!pred.isA(SqlKind.IN) || !(pred instanceof RexCall)) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>List<ColumnMeta> indexColumnMetaList = indexMeta.getKeyColumns();<NEW_LINE>RexCall filterCall = (RexCall) pred;<NEW_LI... | RexInputRef) leftRexNode).getIndex(); |
1,428,318 | protected void editorContextMenuAboutToShow(IMenuManager menu) {<NEW_LINE>// super.editorContextMenuAboutToShow(menu);<NEW_LINE>menu.add(new GroupMarker(GROUP_SQL_ADDITIONS));<NEW_LINE>menu.add(new GroupMarker(GROUP_SQL_EXTRAS));<NEW_LINE>menu.add(new Separator());<NEW_LINE>menu.add(new Separator(ITextEditorActionConst... | ITextEditorActionConstants.GROUP_COPY, ITextEditorActionConstants.COPY); |
1,081,304 | public void clusterChanged(ClusterChangedEvent event) {<NEW_LINE>if (event.localNodeMaster() && refreshAndRescheduleRunnable.get() == null) {<NEW_LINE>LOGGER.trace("elected as master, scheduling cluster info update tasks");<NEW_LINE>executeRefresh(event.state(), "became master");<NEW_LINE>final RefreshAndRescheduleRunn... | event.state(), "data node added"); |
1,432,969 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(getLayoutResource());<NEW_LINE>setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);<NEW_LINE>if (Build.VERSION.SDK_INT >= 21) {<NEW_LINE>getWindow().setNavigationBarColor(ContextCom... | , R.color.black)); |
1,705,796 | public void closePathWithBezier(Point2D controlPoint1, Point2D controlPoint2) {<NEW_LINE>_touch();<NEW_LINE>if (isEmptyImpl())<NEW_LINE>throw new GeometryException("Invalid call. This operation cannot be performed on an empty geometry.");<NEW_LINE>m_bPathStarted = false;<NEW_LINE>int pathIndex = m_paths.size() - 2;<NEW... | curveIndex + 4, controlPoint2.y); |
1,302,408 | public SearchDef addAlias(String alias, String aliased) {<NEW_LINE>noShadowing(alias);<NEW_LINE>if (!fields.containsKey(aliased) && !views.containsKey(aliased)) {<NEW_LINE>if (aliased.contains(".")) {<NEW_LINE>// TODO Here we should nest ourself down to something that really exists.<NEW_LINE>log.warning("Aliased item '... | aliased + "'to alias to '" + alias + "'."); |
1,613,650 | public InAppMessage unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InAppMessage inAppMessage = new InAppMessage();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurren... | int originalDepth = context.getCurrentDepth(); |
1,264,437 | private void appendHashTables() {<NEW_LINE>// MergingPageOutput may build hash tables for some of the small blocks. But if there're some blocks<NEW_LINE>// without hash tables, it means hash tables are not needed so far. In this case we don't send the hash tables.<NEW_LINE>if (noHashTables) {<NEW_LINE>return;<NEW_LINE>... | (endOffset - beginOffset) * HASH_MULTIPLIER); |
451,129 | public void gesvd(INDArray A, INDArray S, INDArray U, INDArray VT) {<NEW_LINE>if (A.rows() > Integer.MAX_VALUE || A.columns() > Integer.MAX_VALUE)<NEW_LINE>throw new ND4JArraySizeException();<NEW_LINE>int m = (int) A.rows();<NEW_LINE>int n = (int) A.columns();<NEW_LINE>byte jobu = (byte) (U == null ? 'N' : 'A');<NEW_LI... | S, U, VT, INFO); |
1,729,117 | public static Date parseRSSDate(String date_str) {<NEW_LINE>date_str = date_str.trim();<NEW_LINE>if (date_str.length() == 0) {<NEW_LINE>return (null);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// see rfc822 [EEE,] dd MMM yyyy HH:mm::ss z<NEW_LINE>// assume 4 digit year<NEW_LINE>SimpleDateFormat format;<NEW_LINE>if (!date_str.... | date_str.replace(',', ' '); |
351,690 | public void marshall(GetPackageVersionAssetRequest getPackageVersionAssetRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (getPackageVersionAssetRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marsha... | getPackageVersionAssetRequest.getPackageVersion(), PACKAGEVERSION_BINDING); |
1,109,686 | final DescribeEnvironmentResourcesResult executeDescribeEnvironmentResources(DescribeEnvironmentResourcesRequest describeEnvironmentResourcesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEnvironmentResourcesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | DescribeEnvironmentResourcesResult>(new DescribeEnvironmentResourcesResultStaxUnmarshaller()); |
1,381,711 | private Mono<Response<RoleAssignmentScheduleRequestInner>> createWithResponseAsync(String scope, String roleAssignmentScheduleRequestName, RoleAssignmentScheduleRequestInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Paramete... | apiVersion, parameters, accept, context); |
47,023 | public void onCreate() {<NEW_LINE>super.onCreate();<NEW_LINE>SharedPreferences sharedPreferences = MainApplication.getSharedPreferences();<NEW_LINE>// We are only one process so it's ok to do this<NEW_LINE>SharedPreferences bootPrefs = MainApplication.bootSharedPreferences = this.getSharedPreferences("mmm_boot", MODE_P... | emojiCompat = EmojiCompat.init(fontRequestEmojiCompatConfig); |
1,590,876 | // GuardedBy RetriableStream.lock<NEW_LINE>// state.hedgingAttemptCount is modified only here.<NEW_LINE>// The method is only called in RetriableStream.start() and HedgingRunnable.run()<NEW_LINE>State addActiveHedge(Substream substream) {<NEW_LINE>// hasPotentialHedging must be true<NEW_LINE>checkState(!hedgingFrozen, ... | cancelled, passThrough, hedgingFrozen, hedgingAttemptCount); |
528,711 | protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final I... | String rotResult1 = environment.getNextVariableString(); |
1,382,886 | private synchronized int createPatternRegex(String path) {<NEW_LINE>// escape path from any regex special chars<NEW_LINE>path = RE_OPERATORS_NO_STAR.matcher(path).replaceAll("\\\\$1");<NEW_LINE>// allow usage of * at the end as per documentation<NEW_LINE>if (path.charAt(path.length() - 1) == '*') {<NEW_LINE>path = path... | m = RE_TOKEN_SEARCH.matcher(path); |
943,222 | public void configure(ODocument iConfiguration, OCommandContext iContext) {<NEW_LINE>super.configure(iConfiguration, iContext);<NEW_LINE>driverClass = (String) resolve(iConfiguration.field("driver"));<NEW_LINE>url = (String) resolve(iConfiguration.field("url"));<NEW_LINE>userName = (String) resolve<MASK><NEW_LINE>userP... | (iConfiguration.field("userName")); |
1,509,788 | private static Long asLong(Object val, EsType columnType, String typeString) throws SQLException {<NEW_LINE>switch(columnType) {<NEW_LINE>case BOOLEAN:<NEW_LINE>return Long.valueOf(((Boolean) val).booleanValue() ? 1 : 0);<NEW_LINE>case BYTE:<NEW_LINE>case SHORT:<NEW_LINE>case INTEGER:<NEW_LINE>case LONG:<NEW_LINE>retur... | typeString, Long.class, e); |
773,065 | public void onActivityCreated(Bundle savedInstanceState) {<NEW_LINE>super.onActivityCreated(savedInstanceState);<NEW_LINE>loadButton = getView().findViewById(R.id.adsizes_btn_loadad);<NEW_LINE>cb120x20 = getView().findViewById(R.id.adsizes_cb_120x20);<NEW_LINE>cb320x50 = getView().findViewById(R.id.adsizes_cb_320x50);<... | adView.setVisibility(View.INVISIBLE); |
356,780 | private void addSelectedFiles(CommandContext context) {<NEW_LINE>final IStructuredSelection[] structuredSelection = new IStructuredSelection[1];<NEW_LINE>// First try to get the current selection from evaluation context, so we get selection from active view...<NEW_LINE>PlatformUI.getWorkbench().getDisplay().syncExec(ne... | currentState.getVariable(ISources.ACTIVE_CURRENT_SELECTION_NAME); |
869,805 | static CorpusStatistics collectCorpusStatisticsForLemmas(WebCorpus corpus, TurkishMorphology analyzer, int count) throws IOException {<NEW_LINE>CorpusStatistics statistics = new CorpusStatistics(1_000_000);<NEW_LINE>int docCount = 0;<NEW_LINE>for (WebDocument document : corpus.getDocuments()) {<NEW_LINE>Histogram<Strin... | )) : corpus.documentCount(); |
1,089,122 | private static ExpressionSequence composeSequence(final ExpressionParsingState state, final int nodeIndex) {<NEW_LINE>if (state == null || nodeIndex >= state.size()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (state.hasExpressionAt(nodeIndex)) {<NEW_LINE>// could happen if we are traversing pointers recursively, so... | StringUtils.split(input, ","); |
1,145,523 | private void addSpliteratorValueInstanceAddAll(SourceBuilder code) {<NEW_LINE>code.addLine("");<NEW_LINE>addJavadocForAddingMultipleValues(code);<NEW_LINE>code.addLine("public %s %s(%s<? extends %s> elements) {", datatype.getBuilder(), addAllMethod(property), Spliterator.class, element.type()).<MASK><NEW_LINE>Variable ... | addLine(" if ((elements.characteristics() & %s.SIZED) != 0) {", Spliterator.class); |
75,886 | private void registerClassedJob(final String jobName, final String jobBootstrapBeanName, final SingletonBeanRegistry singletonBeanRegistry, final CoordinatorRegistryCenter registryCenter, final TracingConfiguration<?> tracingConfig, final ElasticJobConfigurationProperties jobConfigurationProperties) {<NEW_LINE>JobConfi... | .isNullOrEmpty(jobBootstrapBeanName), "The property [jobBootstrapBeanName] is required for One-off job."); |
1,335,152 | public void run(@Nonnull ProgressIndicator indicator) {<NEW_LINE>indicator.setIndeterminate(false);<NEW_LINE>indicator.setFraction(0);<NEW_LINE>long time = System.currentTimeMillis();<NEW_LINE>CommitsCounter counter = new CommitsCounter(indicator, myCommits.values().stream().mapToInt(TIntHashSet::size).sum());<NEW_LINE... | get(root).decrementAndGet(); |
646,902 | public List<DirItemDTO> query(DirRequest request) {<NEW_LINE>String userId = String.valueOf(AuthUtils.getUser().getUserId());<NEW_LINE>List<PanelEntity> panelEntities = new ArrayList<>();<NEW_LINE>if (StringUtils.isNotBlank(request.getName())) {<NEW_LINE>panelEntities = mobileDirMapper.queryWithName(request.getName(), ... | request.getPid(), userId); |
44,916 | public CompletableFuture<ThreadsResponse> threads() {<NEW_LINE>if (context.getDebugSession() == null) {<NEW_LINE>CompletableFuture<ThreadsResponse> future = new CompletableFuture<>();<NEW_LINE>ErrorUtilities.completeExceptionally(future, "Debug Session doesn't exist.", ResponseErrorCode.InvalidParams);<NEW_LINE>return ... | .lsp4j.debug.Thread(); |
1,337,212 | public Iterator<V> iterator() {<NEW_LINE>Node<K, V> from;<NEW_LINE>int fromIndex;<NEW_LINE>if (subMap.hasStart) {<NEW_LINE>subMap.setFirstKey();<NEW_LINE>from = subMap.firstKeyNode;<NEW_LINE>fromIndex = subMap.firstKeyIndex;<NEW_LINE>} else {<NEW_LINE>from = minimum(subMap.backingMap.root);<NEW_LINE>fromIndex = from !=... | endKey)) ? 1 : 0); |
588,441 | // NOI18N<NEW_LINE>@TriggerPattern(value = "$v=$this")<NEW_LINE>public static ErrorDescription hintOnAssignment(HintContext ctx) {<NEW_LINE>Map<String, TreePath> variables = ctx.getVariables();<NEW_LINE>// NOI18N<NEW_LINE>TreePath thisPath = variables.get("$this");<NEW_LINE>if (thisPath.getLeaf().getKind() != Kind.IDEN... | ParenthesizedTree) t).getExpression(); |
1,421,993 | public static void markRegionBorders(GrayS32 labeled, GrayU8 output) {<NEW_LINE>InputSanityCheck.checkSameShape(labeled, output);<NEW_LINE>ImageMiscOps.fill(output, 0);<NEW_LINE>for (int y = 0; y < output.height - 1; y++) {<NEW_LINE>int indexLabeled = labeled.startIndex + y * labeled.stride;<NEW_LINE>int indexOutput = ... | data[indexLabeled + labeled.stride]; |
1,566,846 | public GeckoResult<Boolean> onVisited(@NonNull GeckoSession aSession, @NonNull String url, @Nullable String lastVisitedURL, int flags) {<NEW_LINE>if (mState.mSession == aSession) {<NEW_LINE>if (mHistoryDelegate != null) {<NEW_LINE>return mHistoryDelegate.onVisited(aSession, url, lastVisitedURL, flags);<NEW_LINE>} else ... | Log.d(LOGTAG, "Null GeckoResult from onVisited"); |
763,372 | private void put(ExecutionEnvironment execEnv, char[] password) {<NEW_LINE>String key = ExecutionEnvironmentFactory.toUniqueID(execEnv);<NEW_LINE>if (keepPasswordsInMemory) {<NEW_LINE>char[] old;<NEW_LINE>if (password != null) {<NEW_LINE>old = cache.put(key, Arrays.copyOf(password, password.length));<NEW_LINE>// NOI18N... | Level.FINEST, "PasswordManager.put({0}, non-null) stored password in keyring", execEnv); |
1,710,577 | public AviatorObject defineValue(final AviatorObject value, final Map<String, Object> env) {<NEW_LINE>if (this.containsDot) {<NEW_LINE>return setProperty(value, env);<NEW_LINE>}<NEW_LINE>Object v = getAssignedValue(value, env);<NEW_LINE>// TODO refactor<NEW_LINE>// special processing for define functions.<NEW_LINE>if (... | (((LambdaFunction) v)); |
1,171,835 | public List<I_ESR_ImportLine> retrieveLinesForInvoice(final I_ESR_ImportLine esrImportLine, final I_C_Invoice invoice) {<NEW_LINE>final ArrayList<I_ESR_ImportLine> linesFromDB = new ArrayList<>(fetchLinesForInvoice(esrImportLine<MASK><NEW_LINE>// check if a line with the given ID was loaded from the DB. If that's the c... | .getESR_Import(), invoice)); |
1,665,656 | public void onSaveInstanceState(Bundle outState) {<NEW_LINE>super.onSaveInstanceState(outState);<NEW_LINE>outState.putLong(BUNDLE_KEY_EVENT_ID, mEventId);<NEW_LINE>outState.putLong(BUNDLE_KEY_START_MILLIS, mStartMillis);<NEW_LINE>outState.putLong(BUNDLE_KEY_END_MILLIS, mEndMillis);<NEW_LINE>outState.putBoolean(BUNDLE_K... | add(reminder.getMethod()); |
202,576 | public int compareTo(TSummaryRequest other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTableId(), other.isSetTableId());<NEW_LINE>i... | this.bounds, other.bounds); |
1,551,390 | public void addDetailedEntries(@Nonnull ItemStack itemstack, @Nullable EntityPlayer entityplayer, @Nonnull List<String> list, boolean flag) {<NEW_LINE>int extractRate;<NEW_LINE>int maxIo;<NEW_LINE>if (itemstack.getItemDamage() == 0) {<NEW_LINE>extractRate = GasConduitConfig.tier1_extractRate.get();<NEW_LINE>maxIo = Gas... | = GasConduitConfig.tier2_extractRate.get(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.