idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
5,036 | public boolean onTouchEvent(MotionEvent event) {<NEW_LINE>if (event.getPointerCount() != 1 || !view.mapGestureAllowed(OsmandMapLayer.MapGestureType.DOUBLE_TAP_ZOOM_CHANGE)) {<NEW_LINE>resetEvents();<NEW_LINE>mIsDoubleTapping = false;<NEW_LINE>mScrolling = false;<NEW_LINE>mIsInZoomMode = false;<NEW_LINE>return false;<NE... | PointF(x, y) : centerScreen; |
1,611,276 | public void uploadCertificate(String appKey, String devCertificateFile, String devCertificatePassword, String proCertificateFile, String proCertificatePassword) throws APIConnectionException, APIRequestException {<NEW_LINE>Preconditions.checkArgument(devCertificateFile != null || proCertificateFile != null, "dev certif... | url, textMap, fileMap, null); |
576,126 | private Iterable<Token> doInsertions(List<Insertion> insertions, Iterable<Token> tokens) {<NEW_LINE>ListIterator<Insertion> li = insertions.listIterator();<NEW_LINE>Insertion next_ins = li.hasNext() ? (Insertion) li.next() : null;<NEW_LINE>int len = 0;<NEW_LINE>LinkedList<Token> rc = new LinkedList<Token>();<NEW_LINE>f... | s.substring(pos))); |
637,836 | private void addTopics(AdminClient adminClient, List<NewTopic> topicsToAdd) {<NEW_LINE>CreateTopicsResult topicResults = adminClient.createTopics(topicsToAdd);<NEW_LINE>try {<NEW_LINE>topicResults.all().get(this.operationTimeout, TimeUnit.SECONDS);<NEW_LINE>} catch (InterruptedException e) {<NEW_LINE>Thread.currentThre... | LOGGER.error(e, "Interrupted while waiting for topic creation results"); |
1,259,402 | public NDList processInput(TranslatorContext ctx, QAInput input) {<NEW_LINE>String question = input.getQuestion();<NEW_LINE>String paragraph = input.getParagraph();<NEW_LINE>if (toLowerCase) {<NEW_LINE>question = question.toLowerCase(locale);<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>BertToken token;<NEW_LINE>if (padding) {<... | paragraph = paragraph.toLowerCase(locale); |
859,915 | public void configConstant(Constants constants) {<NEW_LINE>JbootAppListenerManager.me().onConstantConfigBefore(constants);<NEW_LINE>constants.setRenderFactory(JbootRenderFactory.me());<NEW_LINE>constants.setDevMode(Jboot.isDevMode());<NEW_LINE>constants.setLogFactory(new JbootLogFactory());<NEW_LINE>constants.setMaxPos... | constants.setActionMapping(PathVariableActionMapping::new); |
950,137 | public static XComponentContext createInitialComponentContext(Map<String, Object> context_entries) throws Exception {<NEW_LINE>ServiceManager xSMgr = new ServiceManager();<NEW_LINE>XImplementationLoader xImpLoader = UnoRuntime.queryInterface(XImplementationLoader.class, new JavaLoader());<NEW_LINE>XInitialization xInit... | queryInterface(XInitialization.class, xImpLoader); |
79,959 | private void describeInsertStatementByShardingSphereMetaData(final PostgreSQLPreparedStatement preparedStatement) {<NEW_LINE>if (!preparedStatement.describeRows().isPresent()) {<NEW_LINE>// TODO Consider the SQL `insert into table (col) values ($1) returning id`<NEW_LINE>preparedStatement.setRowDescription(PostgreSQLNo... | .set(parameterMarkerIndex++, parameterType); |
211,144 | public final void compute() {<NEW_LINE><MASK><NEW_LINE>final LongBinaryOperator reducer;<NEW_LINE>if ((transformer = this.transformer) != null && (reducer = this.reducer) != null) {<NEW_LINE>long r = this.basis;<NEW_LINE>for (int i = baseIndex, f, h; batch > 0 && (h = ((f = baseLimit) + i) >>> 1) > i; ) {<NEW_LINE>addT... | final ToLongFunction<? super V> transformer; |
1,084,029 | public ScimGroupExternalMember mapExternalGroup(final String groupId, final String externalGroup, final String origin, final String zoneId) throws ScimResourceNotFoundException, MemberAlreadyExistsException {<NEW_LINE>ScimGroup group = scimGroupProvisioning.retrieve(groupId, zoneId);<NEW_LINE>if (!StringUtils.hasText(e... | ps.setString(2, externalGroup); |
1,548,196 | public static CodegenExpression codegen(CodegenExpression input, ExprForge dateFormatForge, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenMethod method = codegenMethodScope.makeChild(EPTypePremade.LOCALDATETIME.getEPType(), StringToLocal... | getEPType(), dateFormatForge, codegenClassScope); |
189,855 | public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) {<NEW_LINE>if (msg instanceof HttpRequestMetaData) {<NEW_LINE>closeHandler.protocolPayloadBeginOutbound(ctx);<NEW_LINE>HttpRequestMetaData metaData = (HttpRequestMetaData) msg;<NEW_LINE>HttpHeaders h1Headers = metaData.headers();<NEW_LINE>... | method(method.name()); |
740,263 | public static boolean isSameDevice(final String uniqueDeviceId) {<NEW_LINE>// {prefix}{type}{32id}<NEW_LINE>if (TextUtils.isEmpty(uniqueDeviceId) && uniqueDeviceId.length() < 33)<NEW_LINE>return false;<NEW_LINE>if (uniqueDeviceId.equals(udid))<NEW_LINE>return true;<NEW_LINE>final String cachedId = UtilsBridge.getSpUtil... | ).getString(KEY_UDID, null); |
559,199 | public com.amazonaws.services.storagegateway.model.ServiceUnavailableErrorException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.storagegateway.model.ServiceUnavailableErrorException serviceUnavailableErrorException = new com.amazonaws.services.<MASK><NEW_LIN... | storagegateway.model.ServiceUnavailableErrorException(null); |
1,745,181 | public void testSFRemoteHomeHandleSerialization() throws Exception {<NEW_LINE>HomeHandle handle = fhome1.getHomeHandle();<NEW_LINE>assertNotNull("Get EJB home handle from home was null.", handle);<NEW_LINE>ByteArrayOutputStream bos = new ByteArrayOutputStream();<NEW_LINE>ObjectOutputStream os = new ObjectOutputStream(b... | (HomeHandle) is.readObject(); |
689,938 | private JPanel buttonTab(final RailButton rbc) {<NEW_LINE>JPanel primary = new JPanel(new MigLayout("fill"));<NEW_LINE>JPanel panel = new JPanel(new MigLayout());<NEW_LINE>{<NEW_LINE>// // Outer Diameter<NEW_LINE>panel.add(new JLabel(trans.get("RailBtnCfg.lbl.OuterDiam")));<NEW_LINE>DoubleModel ODModel = new DoubleMode... | UNITS_ANGLE, -180, +180); |
36,820 | public DescribeTableResult describeTable(DescribeTableRequest describeTableRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeTableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NE... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,395,295 | public synchronized void init(PreferencesFacade preferencesFacade) {<NEW_LINE>this.latitude = preferencesFacade.getDouble(LATITUDE, 0);<NEW_LINE>this.longitude = preferencesFacade.getDouble(LONGITUDE, 0);<NEW_LINE>double maxLatitude = preferencesFacade.<MASK><NEW_LINE>double minLatitude = preferencesFacade.getDouble(LA... | getDouble(LATITUDE_MAX, Double.NaN); |
1,783,126 | final DeactivateUserResult executeDeactivateUser(DeactivateUserRequest deactivateUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deactivateUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | invoke(request, responseHandler, executionContext); |
445,803 | private static String detectDefaultWebBrowser() {<NEW_LINE>// XXX hotfix for #233047<NEW_LINE>// assert !EventQueue.isDispatchThread();<NEW_LINE>// #233145<NEW_LINE>if (!XDG_SETTINGS_AVAILABLE) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>OutputProcessorFactory outputProcessorFactory = new OutputProcessorFactory();<NEW_... | output.toLowerCase(Locale.US); |
1,574,460 | public static IndexInfo indexInfoOf(Document sourceDocument) {<NEW_LINE>Document keyDbObject = (Document) sourceDocument.get("key");<NEW_LINE>int numberOfElements = keyDbObject.keySet().size();<NEW_LINE>List<IndexField> indexFields = new ArrayList<IndexField>(numberOfElements);<NEW_LINE>for (String key : keyDbObject.ke... | (IndexField.hashed(key)); |
1,292,154 | public void removeStone(int x, int y, Stone color) {<NEW_LINE>synchronized (this) {<NEW_LINE>if (!Board.isValid(x, y) || this.getStones()[Board.getIndex(x, y)] == Stone.EMPTY)<NEW_LINE>return;<NEW_LINE>BoardData data = this.getData();<NEW_LINE>Stone[] stones = data.stones;<NEW_LINE>Zobrist zobrist = data.zobrist;<NEW_L... | .getIndex(x, y)]; |
1,188,059 | private static long indexBuilder(DatasetGraph dsg, InputStream input, String indexName) {<NEW_LINE>long tickPoint = BulkLoaderX.DataTick;<NEW_LINE>int superTick = BulkLoaderX.DataSuperTick;<NEW_LINE>// Location of storage, not the DB.<NEW_LINE>DatasetGraphTDB dsgtdb = TDBInternal.getDatasetGraphTDB(dsg);<NEW_LINE>int k... | .getStateManager().getBufferChannel(); |
316,694 | public void visitTag(Tag parseTag, IParseDictionary parseDictionary) throws LogParseException {<NEW_LINE>String currentMethod = null;<NEW_LINE>String holder = null;<NEW_LINE>List<Tag> allChildren = parseTag.getChildren();<NEW_LINE>for (Tag child : allChildren) {<NEW_LINE>String tagName = child.getName();<NEW_LINE>Map<S... | currentMethod = attrs.get(ATTR_NAME); |
478,622 | public void marshall(User user, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (user == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(user.getId(), ID_BINDING);<NEW_LINE>protocolMarshaller.marshall(user.get... | e.getMessage(), e); |
883,838 | public static int mulAddTo(int[] x, int xOff, int[] y, int yOff, int[] zz, int zzOff) {<NEW_LINE>long y_0 = y[yOff + 0] & M;<NEW_LINE>long y_1 = y[yOff + 1] & M;<NEW_LINE>long y_2 = y[yOff + 2] & M;<NEW_LINE>long y_3 = y[yOff + 3] & M;<NEW_LINE>long zc = 0;<NEW_LINE>for (int i = 0; i < 4; ++i) {<NEW_LINE>long c = 0, x_... | + 2] = (int) c; |
1,457,278 | public SearchJob execute(Search search, SearchUser searchUser, ExecutionState executionState) {<NEW_LINE>final Search searchWithStreams = search.addStreamsToQueriesWithoutStreams(() -> searchUser.streams().loadAll());<NEW_LINE>final Search searchWithExecutionState = searchWithStreams.applyExecutionState(objectMapper, f... | searchJob.getId(), e); |
748,553 | public void translateToBedrock(ProxySession session, EntityDataMap dictionary, EntityMetadata metadata) {<NEW_LINE>if (metadata.getId() == 15) {<NEW_LINE>// Dragon phase<NEW_LINE>switch((int) metadata.getValue()) {<NEW_LINE>case // Landed, performing breath attack<NEW_LINE>5:<NEW_LINE>EntityEventPacket entityEventPacke... | translateToBedrock(session, dictionary, metadata); |
1,126,258 | protected void securityRealmGenerator(XmlGenerator gen, String name, RealmConfig c) {<NEW_LINE>gen.open("realm", "name", name);<NEW_LINE>if (c.isAuthenticationConfigured()) {<NEW_LINE>gen.open("authentication");<NEW_LINE>jaasAuthenticationGenerator(gen, c.getJaasAuthenticationConfig());<NEW_LINE>tlsAuthenticationGenera... | TokenIdentityConfig ti = c.getTokenIdentityConfig(); |
1,158,989 | NavigableSet<E> createSubSet(SortedSet<E> sortedSet, E firstExclusive, E lastExclusive) {<NEW_LINE>NavigableSet<E> set = (NavigableSet<E>) sortedSet;<NEW_LINE>if (from == Bound.NO_BOUND && to == Bound.INCLUSIVE) {<NEW_LINE>return <MASK><NEW_LINE>} else if (from == Bound.EXCLUSIVE && to == Bound.NO_BOUND) {<NEW_LINE>ret... | set.headSet(lastInclusive, true); |
109,059 | public static void serializeFlowMod(JsonGenerator jGen, OFFlowMod flowMod) throws IOException, JsonProcessingException {<NEW_LINE>// IMHO this just looks nicer and is easier to read if everything is quoted<NEW_LINE>jGen.configure(Feature.WRITE_NUMBERS_AS_STRINGS, true);<NEW_LINE>jGen.writeStartObject();<NEW_LINE>// ret... | (flowMod.getFlags())); |
499,870 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String containerAppName, String name, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_L... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,044,048 | public void marshall(CaseDetails caseDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (caseDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(caseDetails.getCaseId(), CASEID_BINDING);<NEW_LINE>... | e.getMessage(), e); |
496,996 | private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, NativeType.S... | TypeAlias.tcflag_t, NativeType.UINT); |
1,059,972 | private CompletableFuture<CoreMessageReceiver> createLink() {<NEW_LINE>this.linkOpen = new WorkItem<>(new CompletableFuture<>(), this.operationTimeout);<NEW_LINE>this.scheduleLinkOpenTimeout(<MASK><NEW_LINE>this.sendTokenAndSetRenewTimer(false).handleAsync((v, sasTokenEx) -> {<NEW_LINE>if (sasTokenEx != null) {<NEW_LIN... | this.linkOpen.getTimeoutTracker()); |
319,579 | private void buildMemberTypes(AccessRestriction accessRestriction) {<NEW_LINE>SourceTypeBinding sourceType = this.referenceContext.binding;<NEW_LINE>ReferenceBinding[] memberTypeBindings = Binding.NO_MEMBER_TYPES;<NEW_LINE>if (this.referenceContext.memberTypes != null) {<NEW_LINE>int length = this.referenceContext.memb... | problemReporter().typeCollidesWithEnclosingType(memberContext); |
366,797 | public CacheCompiledConditionWithRouteToCache generateCacheCompileCondition(Expression condition, MatchingMetaInfoHolder storeMatchingMetaInfoHolder, SiddhiQueryContext siddhiQueryContext, List<VariableExpressionExecutor> storeVariableExpressionExecutors) {<NEW_LINE>boolean routeToCache = checkConditionToRouteToCache(c... | tableMap = new ConcurrentHashMap<>(); |
642,397 | public void validateCustomerVisibleNaming(IntermediateModel trimmedModel) {<NEW_LINE>Metadata metadata = trimmedModel.getMetadata();<NEW_LINE>validateCustomerVisibleName(<MASK><NEW_LINE>validateCustomerVisibleName(metadata.getSyncBuilderInterface(), "metadata-derived builder interface name");<NEW_LINE>validateCustomerV... | metadata.getSyncInterface(), "metadata-derived interface name"); |
518,542 | public RemoveStatus remove(K key, V value) throws StoreAccessException {<NEW_LINE>checkKey(key);<NEW_LINE>checkValue(value);<NEW_LINE>conditionalRemoveObserver.begin();<NEW_LINE>AtomicReference<RemoveStatus> outcome = new AtomicReference<>(RemoveStatus.KEY_MISSING);<NEW_LINE>StoreEventSink<K, V> eventSink = storeEventD... | eventSink.removed(mappedKey, mappedValue); |
1,108,094 | // Test the getRunningTaskCount method<NEW_LINE>@Test<NEW_LINE>public void testGetRunningTaskCount() throws Exception {<NEW_LINE>PolicyExecutor executor = provider.create("testgetRunningTaskCount").maxConcurrency(2);<NEW_LINE>CountDownLatch beginLatch1 = new CountDownLatch(1);<NEW_LINE>CountDownLatch continueLatch1 = n... | 1, executor.getRunningTaskCount()); |
1,643,396 | public void exitAas_application(Aas_applicationContext ctx) {<NEW_LINE>if (ctx.junos_application() != null) {<NEW_LINE>JunosApplication application = toJunosApplication(ctx.junos_application());<NEW_LINE>if (!application.hasDefinition()) {<NEW_LINE>_w.redFlag(String.format("unimplemented pre-defined junos application: ... | application)).build()); |
510,714 | private void processRxChar(int chr) {<NEW_LINE>// process incoming data<NEW_LINE>log.finer(this.toString() + " RX: '" + String.format("%02X : %1c", (byte) chr, chr < 32 ? '.' : chr) + "'");<NEW_LINE>switch(chr) {<NEW_LINE>// ignore special characters<NEW_LINE>case 32:<NEW_LINE>break;<NEW_LINE>// trigger message handlin... | Level.WARNING, "handleTelegram", ex); |
1,036,427 | protected Long countCompletedWork(Business business, DateRange dateRange, String applicationId, String processId, String unit, String person) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(WorkCompleted.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>Criteri... | WorkCompleted_.creatorPerson), person)); |
1,041,942 | public void itemStateChanged(ItemEvent e) {<NEW_LINE>// If selected: disable buttons, set their bg values from default setting, set sample bg & fg<NEW_LINE>// If deselected: enable buttons, set their bg values from current setting, set sample bg & bg<NEW_LINE>Color newBackground = null;<NEW_LINE>Color newForeground = n... | [position].setEnabled(false); |
574,559 | static Variants allowedVariants(@Nullable GoReferenceExpression structFieldReference) {<NEW_LINE>GoValue value = parent(structFieldReference, GoValue.class);<NEW_LINE>GoElement element = parent(value, GoElement.class);<NEW_LINE>if (element != null && element.getKey() != null) {<NEW_LINE>return Variants.NONE;<NEW_LINE>}... | ? Variants.VALUE_ONLY : Variants.BOTH; |
1,816,232 | public void exectute() {<NEW_LINE>try {<NEW_LINE>// create a temporary file for the resource editory PDF<NEW_LINE>File f = File.createTempFile("CodenameOneDesigner", ".pdf");<NEW_LINE>FileOutputStream out = new FileOutputStream(f);<NEW_LINE>InputStream input = getClass().getResourceAsStream("/CodenameOne-Designer.pdf")... | "Help is only available with a Java 6 or newer VM\nit requires Acrobat reader", "Help", JOptionPane.ERROR_MESSAGE); |
1,167,445 | public void deleteOrphanedPacks() {<NEW_LINE><MASK><NEW_LINE>String query = "SELECT " + PACK_ID + " FROM " + TABLE_NAME + " WHERE " + INSTALLED + " = ? AND " + PACK_ID + " NOT IN (" + "SELECT DISTINCT " + AttachmentDatabase.STICKER_PACK_ID + " FROM " + AttachmentDatabase.TABLE_NAME + " " + "WHERE " + AttachmentDatabase... | SQLiteDatabase db = databaseHelper.getSignalWritableDatabase(); |
1,226,712 | public void beforeActionInvocation(Method actionMethod) {<NEW_LINE>// when using await, this code get called multiple times.<NEW_LINE>// When recovering from await() we're going to restore (overwrite) validation.current<NEW_LINE>// with the object-instance from the previous part of the execution.<NEW_LINE>// If this i... | , violation.getSeverity())); |
65,165 | public XContentBuilder innerXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>if (sliceId != null) {<NEW_LINE>builder.field(SLICE_ID_FIELD, sliceId);<NEW_LINE>}<NEW_LINE>builder.field(TOTAL_FIELD, total);<NEW_LINE>if (params.paramAsBoolean(INCLUDE_UPDATED, true)) {<NEW_LINE>builder.field(UP... | builder.field(CANCELED_FIELD, reasonCancelled); |
911,922 | public static DescribeChannelUsersResponse unmarshall(DescribeChannelUsersResponse describeChannelUsersResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeChannelUsersResponse.setRequestId(_ctx.stringValue("DescribeChannelUsersResponse.RequestId"));<NEW_LINE>describeChannelUsersResponse.setCommTotalNum(_ctx.integerV... | (_ctx.integerValue("DescribeChannelUsersResponse.ChannelProfile")); |
1,322,276 | public JsonStructure forward(MediaContent content) {<NEW_LINE>Media media = content.media;<NEW_LINE>JsonObjectBuilder mediaJson = json.createObjectBuilder();<NEW_LINE>mediaJson.add(FULL_FIELD_NAME_BITRATE, media.bitrate);<NEW_LINE>if (media.copyright == null) {<NEW_LINE>mediaJson.add(FULL_FIELD_NAME_COPYRIGHT, JsonValu... | JsonObjectBuilder contentJson = json.createObjectBuilder(); |
1,722,098 | private // Save history state (sometimes we don'ty need it)<NEW_LINE>boolean // Save history state (sometimes we don'ty need it)<NEW_LINE>runDataPump(// Save history state (sometimes we don'ty need it)<NEW_LINE>@NotNull final DBSDataContainer dataContainer, // Save history state (sometimes we don'ty need it)<NEW_LINE>@... | "Data read", "Can't read data - no active connection", SWT.ICON_WARNING); |
1,355,938 | private void init() {<NEW_LINE>setLayout(new BorderLayout(0, 5));<NEW_LINE>setBorder(makeBorder());<NEW_LINE>// $NON-NLS-1$<NEW_LINE>clearEachIteration = new JCheckBox(JMeterUtils.getResString("clear_cache_per_iter"), false);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>controlledByThreadGroup = new JCheckBox(JMeterUtils.getResStr... | northPanel.add(makeTitlePanel()); |
919,078 | void refreshUI(UserPreferences prefs) {<NEW_LINE>IPreferenceStore store = propertyPage.getPreferenceStore();<NEW_LINE>scariestRankCombo.setText(MarkerSeverity.get(store.getString(FindBugsConstants.RANK_SCARIEST_MARKER_SEVERITY)).name());<NEW_LINE>scaryRankCombo.setText(MarkerSeverity.get(store.getString(FindBugsConstan... | setText(filterSettings.getMinPriority()); |
257,855 | public boolean processCommandLineArgs(String[] cliArgs) throws IOException, DatabusException {<NEW_LINE>CommandLineParser cliParser = new GnuParser();<NEW_LINE>_cmd = null;<NEW_LINE>try {<NEW_LINE>_cmd = cliParser.parse(_cliOptions, cliArgs);<NEW_LINE>} catch (ParseException pe) {<NEW_LINE>System.err.println(NAME + ": ... | System.err.println("Plase specify the DB URI !!"); |
1,057,128 | protected Mono<Predicate> createReactiveJoinFilter(QueryMetadata metadata) {<NEW_LINE>MultiValueMap<Expression<?>, Mono<Predicate>> predicates = new LinkedMultiValueMap<>();<NEW_LINE>List<JoinExpression> joins = metadata.getJoins();<NEW_LINE>for (int i = joins.size() - 1; i >= 0; i--) {<NEW_LINE>JoinExpression join = j... | get(target.getRoot()); |
1,051,591 | private int drainOneByOne(Consumer<E> c, int limit) {<NEW_LINE>final long[] sBuffer = sequenceBuffer;<NEW_LINE>final long mask = this.mask;<NEW_LINE>final E[] buffer = this.buffer;<NEW_LINE>long cIndex;<NEW_LINE>long seqOffset;<NEW_LINE>long seq;<NEW_LINE>long expectedSeq;<NEW_LINE>for (int i = 0; i < limit; i++) {<NEW... | seqOffset, cIndex + mask + 1); |
300,320 | private void configureImport() {<NEW_LINE>// Add an event type that has a byte-type property value<NEW_LINE>compileDeploy("create schema MyByteEvent(byteValue byte)");<NEW_LINE>// keep the last few events from the variant stream<NEW_LINE>EPStatement stmt = compileDeploy("select RuntimeConfigMain.check2BitSet(byteValue)... | ().get("check2BitSet")); |
160,577 | public Object visit(ASTReference node, Object data) {<NEW_LINE><MASK><NEW_LINE>if (variableName.startsWith("$")) {<NEW_LINE>variableName = variableName.substring(1, variableName.length());<NEW_LINE>}<NEW_LINE>if (!foreachStack.isEmpty()) {<NEW_LINE>Foreach currentForeach = foreachStack.peek();<NEW_LINE>if (currentForea... | String variableName = node.literal(); |
1,308,137 | boolean expectCanAssignTo(Node n, JSType rightType, JSType leftType, String msg) {<NEW_LINE>if (leftType.isTemplateType()) {<NEW_LINE>TemplateType left = leftType.toMaybeTemplateType();<NEW_LINE>if (rightType.containsReferenceAncestor(left) || rightType.isUnknownType() || left.isUnknownType()) {<NEW_LINE>// The only ti... | n, msg, rightType, leftType); |
1,560,826 | private int glassModifiers(KeyCombination kcc) {<NEW_LINE>int ret = 0;<NEW_LINE>if (kcc.getShift() == KeyCombination.ModifierValue.DOWN) {<NEW_LINE>ret += KeyEvent.MODIFIER_SHIFT;<NEW_LINE>}<NEW_LINE>if (kcc.getControl() == KeyCombination.ModifierValue.DOWN) {<NEW_LINE>ret += KeyEvent.MODIFIER_CONTROL;<NEW_LINE>}<NEW_L... | int code = kcode.getCode(); |
972,906 | public int unwind(int pathIndex, int nextIndex) {<NEW_LINE>int pathDepth = nextIndex - 1;<NEW_LINE>double nextFractionOne = getScale(pathDepth);<NEW_LINE>double fractionOne = fractionOnes(pathIndex);<NEW_LINE>double fractionZero = fractionZeros(pathIndex);<NEW_LINE>if (fractionOne != 0) {<NEW_LINE>double stepUp = fract... | getScale(i) - tmp * countUp; |
9,481 | public PredefinedLoadMetricSpecification unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PredefinedLoadMetricSpecification predefinedLoadMetricSpecification = new PredefinedLoadMetricSpecification();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = c... | class).unmarshall(context)); |
637,234 | protected void onViewClick(View view, final LogLine data) {<NEW_LINE>super.onViewClick(view, data);<NEW_LINE>data.setExpanded(!data.isExpanded());<NEW_LINE>if (data.isExpanded() && data.getProcessId() != -1) {<NEW_LINE>mLogText.setSingleLine(false);<NEW_LINE>mTime.setVisibility(View.VISIBLE);<NEW_LINE>mPid.setVisibilit... | mTime.setVisibility(View.GONE); |
1,192,916 | private static byte[] encode(long l, int sign) {<NEW_LINE>assert l >= 0;<NEW_LINE>// the header is formed of:<NEW_LINE>// - 1 bit for the sign<NEW_LINE>// - 4 bits for the number of additional bytes<NEW_LINE>// - up to 3 bits of the value<NEW_LINE>// additional bytes are data bytes<NEW_LINE>int numBits = 64 - Long.numb... | (encoded[0]) <= 0x07; |
1,164,049 | public void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {<NEW_LINE>if (in.readableBytes() < 8) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ByteBuf copy = in.slice();<NEW_LINE>int index = copy.readUnsignedByte();<NEW_LINE>int file = copy.readUnsignedShort();<NEW_LINE>// decompress() start... | int compression = copy.readUnsignedByte(); |
297,464 | public HeatMap readHeatMap(final MetricsCondition condition, final String valueColumnName, final Duration duration) throws IOException {<NEW_LINE>final List<PointOfTime> pointOfTimes = duration.assembleDurationPoints();<NEW_LINE>final List<String> ids = new ArrayList<>(pointOfTimes.size());<NEW_LINE>pointOfTimes.forEac... | ).toString(), defaultValue); |
989,021 | public boolean start() {<NEW_LINE>Set<MeterRegistry> meterRegistrySet = Metrics.globalRegistry.getRegistries().stream().filter(reporter -> reporter instanceof PrometheusMeterRegistry).collect(Collectors.toSet());<NEW_LINE>PrometheusMeterRegistry prometheusMeterRegistry;<NEW_LINE>if (meterRegistrySet.size() == 0) {<NEW_... | = new PrometheusMeterRegistry(PrometheusConfig.DEFAULT); |
585,382 | private void writeImageBorder(DataOutputStream output, Border border) throws IOException {<NEW_LINE>// Write the number of images can be 2, 3, 8 or 9<NEW_LINE>Image[] images = Accessor.getImages(border);<NEW_LINE>int resourceCount = 0;<NEW_LINE>for (int iter = 0; iter < images.length; iter++) {<NEW_LINE>if (images[iter... | out.println("Odd resource count for image border: " + resourceCount); |
445,092 | private static void registerAlloyRecipe(Pair<Things, NNList<Things>> alloy) {<NEW_LINE>final Things result = NullHelper.notnull(alloy.getLeft(), "missing result item stack in alloy recipe");<NEW_LINE>final NNList<Things> input = alloy.getRight();<NEW_LINE>FluidStack fluidResult = getFluidForItems(result);<NEW_LINE>if (... | TinkerRegistry.registerAlloy(fluidResult, fluids); |
1,132,095 | private static Map<String, List<CardInfo>> generateBasicLands(List<String> setsToUse) {<NEW_LINE>Set<String> landSets = TournamentUtil.getLandSetCodeForDeckSets(setsToUse);<NEW_LINE>CardCriteria criteria = new CardCriteria();<NEW_LINE>if (!landSets.isEmpty()) {<NEW_LINE>criteria.setCodes(landSets.toArray(new String[lan... | getBasicLandName(c.toString()); |
338,156 | protected boolean addOneUnaryRule(UnaryRule rule, Map<String, TransducerGraph> graphs) {<NEW_LINE>String parentString = stateIndex.get(rule.parent);<NEW_LINE>String childString = stateIndex.get(rule.child);<NEW_LINE>if (isSyntheticState(parentString)) {<NEW_LINE>String topcat = getTopCategoryOfSyntheticState(parentStri... | graph = getGraphFromMap(graphs, parentString); |
1,390,855 | // @see com.biglybt.ui.swt.views.table.TableViewSWTMenuFillListener#fillMenu(java.lang.String, org.eclipse.swt.widgets.Menu)<NEW_LINE>@Override<NEW_LINE>public void fillMenu(String sColumnName, final Menu menu) {<NEW_LINE>Object[] dataSources = tv.getSelectedDataSources(true);<NEW_LINE>DownloadManager[] selecteddms = g... | MenuItem(menu, SWT.SEPARATOR); |
648,772 | public boolean closeCurrentProject() {<NEW_LINE>if (controller.getCurrentProject() != null) {<NEW_LINE>// Save ?<NEW_LINE>String messageBundle = NbBundle.getMessage(ProjectControllerUIImpl.class, "CloseProject_confirm_message");<NEW_LINE>String titleBundle = NbBundle.getMessage(ProjectControllerUIImpl.class, "CloseProj... | getMessage(ProjectControllerUIImpl.class, "CloseProject_confirm_doNotSave"); |
907,754 | /* }}} String getHost */<NEW_LINE>private void connect() /* {{{ */<NEW_LINE>{<NEW_LINE>JMXServiceURL service_url;<NEW_LINE>Map<String, Object> environment;<NEW_LINE>// already connected<NEW_LINE>if (this._jmx_connector != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>environment = null;<NEW_LINE>if (this._password != nu... | = new JMXServiceURL(this._service_url); |
536,297 | public boolean checkIfItemOutdated(IndexItem item, java.text.DateFormat format) {<NEW_LINE>boolean outdated = false;<NEW_LINE><MASK><NEW_LINE>String indexActivatedDate = indexActivatedFileNames.get(sfName);<NEW_LINE>String indexFilesDate = indexFileNames.get(sfName);<NEW_LINE>item.setDownloaded(false);<NEW_LINE>item.se... | String sfName = item.getTargetFileName(); |
1,690,533 | public void visitEnd() {<NEW_LINE>super.visitEnd();<NEW_LINE>if (visibleParamAnnotations != null) {<NEW_LINE>VisibilityParameterAnnotationTag tag = new VisibilityParameterAnnotationTag(visibleParamAnnotations.length, AnnotationConstants.RUNTIME_VISIBLE);<NEW_LINE>for (VisibilityAnnotationTag vat : visibleParamAnnotatio... | size(), AnnotationConstants.RUNTIME_INVISIBLE); |
207,616 | public X509ExtendedKeyManager createKeyManager() {<NEW_LINE>try {<NEW_LINE>final KeyStore keyStore = KeyStoreUtil.readKeyStore(path, type, storePassword);<NEW_LINE>checkKeyStore(keyStore);<NEW_LINE>return KeyStoreUtil.createKeyManager(keyStore, keyPassword, algorithm);<NEW_LINE>} catch (UnrecoverableKeyException e) {<N... | throw new SslConfigException(message, e); |
985,412 | public final // JPA2.g:548:1: result_variable : WORD ;<NEW_LINE>JPA2Parser.result_variable_return result_variable() throws RecognitionException {<NEW_LINE>JPA2Parser.result_variable_return retval = new JPA2Parser.result_variable_return();<NEW_LINE>retval.start = input.LT(1);<NEW_LINE>Object root_0 = null;<NEW_LINE>Toke... | Object) adaptor.rulePostProcessing(root_0); |
1,606,139 | public boolean apply(Game game, Ability source) {<NEW_LINE>// In the case that Fractured Loyalty is blinked<NEW_LINE>Permanent enchantment = (Permanent) game.getLastKnownInformation(source.getSourceId(), Zone.BATTLEFIELD);<NEW_LINE>if (enchantment == null) {<NEW_LINE>// It was not blinked, use the standard method<NEW_L... | .getFirst(game, source)); |
1,434,658 | public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {<NEW_LINE>NetworkMessage networkMessage = (NetworkMessage) msg;<NEW_LINE>if (networkMessage.getMessage() instanceof Command) {<NEW_LINE>Command command = (Command) networkMessage.getMessage();<NEW_LINE>Object encodedComma... | info(s.toString()); |
972,845 | private CachedValueProvider.Result<Location> computeLocation() {<NEW_LINE>Objects.requireNonNull(myElement);<NEW_LINE>Location defaultLocation = new Location(-1, -1, null, -1);<NEW_LINE>PsiFile containingFile = myElement.getContainingFile();<NEW_LINE>InjectedLanguageManager injectedLanguageManager = InjectedLanguageMan... | getInstance(myElement.getProject()); |
633,174 | public JournalEntry read() throws IOException {<NEW_LINE>int firstByte = inputStream.read();<NEW_LINE>if (firstByte == -1) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// All journal entries start with their size in bytes written as a varint.<NEW_LINE>int size = ProtoUtils.readRawVarint32(firstByte, inputStream);<NEW_LI... | ? mBuffer : new byte[size]; |
150,685 | void onMouseMoveDragging(Point dragStart, int diffX, int diffY, GridElement draggedGridElement, boolean isShiftKeyDown, boolean isCtrlKeyDown, boolean firstDrag, boolean isMiddleMouseButton) {<NEW_LINE>if (diffX != 0 || diffY != 0) {<NEW_LINE>cursorWasMovedDuringDrag = true;<NEW_LINE>}<NEW_LINE>if (firstDrag && dragged... | selector.updateLasso(diffX, diffY); |
1,785,055 | private void updateMember(final RaftMember member, final Instant time) {<NEW_LINE>if (member.equals(localMember)) {<NEW_LINE>localMember.update(member.getType(), time);<NEW_LINE>members.add(localMember);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// If the member state doesn't already exist, create it.<NEW_LINE>RaftMemberCon... | member.getType(), memberType); |
762,826 | public void expunge() {<NEW_LINE>Term[] primarykeys = mediaFileDao.getArtistExpungeCandidates().stream().map(m -> documentFactory.createPrimarykey(m)).toArray(i -> new Term[i]);<NEW_LINE>try {<NEW_LINE>writers.get(IndexType.ARTIST).deleteDocuments(primarykeys);<NEW_LINE>} catch (IOException e) {<NEW_LINE><MASK><NEW_LIN... | LOG.error("Failed to delete artist doc.", e); |
678,740 | public static TypeHandle of(PackageElement pkg, String name, IMixinAnnotationProcessor ap) {<NEW_LINE>String fqName = pkg.getQualifiedName() + "." + name;<NEW_LINE>if (TypeHandleASM.cache.containsKey(fqName)) {<NEW_LINE>return TypeHandleASM.cache.get(fqName);<NEW_LINE>}<NEW_LINE>InputStream is = null;<NEW_LINE>try {<NE... | ).accept(classNode, 0); |
1,735,205 | public RequestReplyFuture<K, V, R> sendAndReceive(ProducerRecord<K, V> record, @Nullable Duration replyTimeout) {<NEW_LINE>// NOSONAR (sync)<NEW_LINE>Assert.state(this.running, "Template has not been start()ed");<NEW_LINE>Duration timeout = replyTimeout;<NEW_LINE>if (timeout == null) {<NEW_LINE>timeout = this.defaultRe... | .setSendFuture(send(record)); |
1,843,022 | private static void renderConfigOptionsIfNecessary(FacesContext facesContext) throws IOException {<NEW_LINE>ResponseWriter writer = facesContext.getResponseWriter();<NEW_LINE>MyfacesConfig config = MyfacesConfig.getCurrentInstance(facesContext.getExternalContext());<NEW_LINE>ScriptContext script = new ScriptContext();<... | script.toString(), null); |
1,580,329 | static void multipleLetterRepetitionWords(Path in, Path out) throws IOException {<NEW_LINE>Histogram<String> noisyWords = Histogram.loadFromUtf8File(in, ' ');<NEW_LINE>Histogram<String> repetitionWords = new Histogram<>();<NEW_LINE>for (String w : noisyWords) {<NEW_LINE>if (w.length() == 1) {<NEW_LINE>continue;<NEW_LIN... | c = w.charAt(i); |
1,845,169 | public static NodeValue formatNumber(NodeValue nv, NodeValue picture, NodeValue nvLocale) {<NEW_LINE>if (!nv.isNumber())<NEW_LINE>NodeValue.raise(new ExprEvalException("Not a number: " + nv));<NEW_LINE>if (!picture.isString())<NEW_LINE>NodeValue.raise(<MASK><NEW_LINE>if (nvLocale != null && !nvLocale.isString())<NEW_LI... | new ExprEvalException("Not a string: " + picture)); |
1,701,681 | public static DescribePriceResponse unmarshall(DescribePriceResponse describePriceResponse, UnmarshallerContext context) {<NEW_LINE>describePriceResponse.setRequestId(context.stringValue("DescribePriceResponse.RequestId"));<NEW_LINE>Order order = new Order();<NEW_LINE>order.setOriginalAmount(context.floatValue("Describ... | (context.floatValue("DescribePriceResponse.Order.DiscountAmount")); |
245,282 | final CommitTransactionResult executeCommitTransaction(CommitTransactionRequest commitTransactionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(commitTransactionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
786,726 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>HotPictureInfoServiceAdv hotPictureInfoService = new HotPictureInfoServiceAdv();<NEW_LINE>Wo wo = null;<NEW_LINE>HotPictureInfo hotPictureInfo = null;<NEW_LINE>if (id... | hotPictureInfo = hotPictureInfoService.get(id); |
1,345,533 | public PartitionGetResult partitionGet(PartitionGetParam partParam) {<NEW_LINE>HistAggrParam.HistPartitionAggrParam param = (HistAggrParam.HistPartitionAggrParam) partParam;<NEW_LINE>LOG.info("For the gradient histogram of GBDT, we use PS to find the optimal split");<NEW_LINE>GBDTParam gbtparam = new GBDTParam();<NEW_L... | set(2 + sendStartCol, lossGain); |
1,433,585 | // TODO: We cannot use Searches#search() at the moment because that method cannot handle multiple streams. (because of Searches#extractStreamId())<NEW_LINE>// We also cannot use the new search code at the moment because it doesn't do pagination.<NEW_LINE>Result eventSearch(EventsSearchParameters parameters, String filt... | .query().trim(); |
334,735 | public String generateToolTip(XYDataset dataset, int series, int item) {<NEW_LINE>if (!(dataset instanceof OHLCDataset)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>OHLCDataset d = (OHLCDataset) dataset;<NEW_LINE>Number high = d.getHigh(series, item);<NEW_LINE>Number low... | Date(x.longValue()); |
101,698 | public static void main(String[] args) {<NEW_LINE>int arraySize = 20;<NEW_LINE>Comparable[] array = new Comparable[arraySize];<NEW_LINE>for (int i = 0; i < array.length; i++) {<NEW_LINE>double value = StdRandom.uniform();<NEW_LINE>array[i] = value;<NEW_LINE>}<NEW_LINE>int numberOfIncrements = getNumberOfIncrements(arra... | + 3), 30 * arraySize); |
593,689 | public static void removePlatform(final NbPlatform plaf) throws IOException {<NEW_LINE>try {<NEW_LINE>ProjectManager.mutex().writeAccess(new Mutex.ExceptionAction<Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void run() throws IOException {<NEW_LINE><MASK><NEW_LINE>props.remove(PLATFORM_PREFIX + plaf.getID() +... | EditableProperties props = PropertyUtils.getGlobalProperties(); |
185,396 | final DeleteUserPoolClientResult executeDeleteUserPoolClient(DeleteUserPoolClientRequest deleteUserPoolClientRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUserPoolClientRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Delet... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.