idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
976,993
private Collection<PartitionMetadata> buildPartitions() {<NEW_LINE>List<MemberId> sorted = new ArrayList<>(config.getMembers().stream().map(MemberId::from).collect(Collectors.toSet()));<NEW_LINE>Collections.sort(sorted);<NEW_LINE>int partitionSize = this.partitionSize;<NEW_LINE>if (partitionSize == 0) {<NEW_LINE>partit...
Math.min(partitionSize, length);
1,458,551
protected void prepareHttpConnection(final HttpURLConnection conn) throws CommandException {<NEW_LINE>final String METHOD = "prepareHttpConnection";<NEW_LINE>// Set up standard connection characteristics<NEW_LINE>conn.setAllowUserInteraction(false);<NEW_LINE>conn.setDoInput(true);<NEW_LINE>conn.setUseCaches(false);<NEW...
String adminPassword = server.getAdminPassword();
231,616
private static void convertBgpProcess(Configuration c, FrrVendorConfiguration vc, FrrConfiguration frr, Warnings w) {<NEW_LINE>BgpProcess bgpProcess = frr.getBgpProcess();<NEW_LINE>if (bgpProcess == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// First pass: only core processes<NEW_LINE>c.getDefaultVrf().setBgpProcess(...
frr, vrfName, bgpVrf)));
1,746,347
public static void register(String userName, String userPassword, String session) {<NEW_LINE>Context context = ContextFactory.getContext();<NEW_LINE>SharedPreferences userPrefs = context.getSharedPreferences(getSharedPrefName(context), 0);<NEW_LINE>if (userName != null && userName.length() != 0 && userPassword != null ...
userPrefs.getString(ANS_USER_PREF_USER, "");
767,234
public static List<SubscriptionButton> collectSubscriptionButtons(@NonNull OsmandApplication app, @NonNull InAppPurchaseHelper purchaseHelper, @NonNull List<InAppSubscription> subscriptions, boolean nightMode) {<NEW_LINE>List<SubscriptionButton> priceButtons = new ArrayList<>();<NEW_LINE>InAppSubscription monthlySubscr...
ColorUtilities.getPrimaryTextColor(app, nightMode);
8,431
public void runTestProcedures() throws Exception {<NEW_LINE>final CacheManager mgr = new CacheManager(mMapView);<NEW_LINE>final ArrayList<GeoPoint> pts = new ArrayList<>();<NEW_LINE>pts.add(new GeoPoint(38.89775, -77.03690));<NEW_LINE>pts.add(new GeoPoint(38.87101, -77.05641));<NEW_LINE>taskRunning = true;<NEW_LINE>get...
throw new RuntimeException("Failure occurred during the test, there were " + errors);
74,212
protected boolean duplicateOnPerson(Business business, Person person, String name, PersonAttribute exclude) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(PersonAttribute.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Long> cq = cb.createQuery...
, exclude.getId()));
135,699
private Symbol createSymbol(String name, SymbolType type, Address resultAddr, Namespace resultParentNs, Program srcPgm, long srcSymID, SourceType source) throws DuplicateNameException, InvalidInputException {<NEW_LINE>// String comment = srcSymbol.getSymbolStringData();<NEW_LINE>Symbol symbol = null;<NEW_LINE>if (type ...
long resolveSymID = symbol.getID();
467,149
public I_M_ProductScalePrice retrieveOrCreateScalePrices(final int productPriceId, final BigDecimal qty, final boolean createNew, final String trxName) {<NEW_LINE>final PreparedStatement pstmt = DB.prepareStatement(SQL_SCALEPRICE_FOR_QTY, trxName);<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>pstmt.setInt(1, p...
"Returning existing instance for M_ProductPrice " + productPriceId + " and quantity " + qty);
1,633,285
protected void consumeSingleRequiresModuleName() {<NEW_LINE>ModuleReference impt;<NEW_LINE>int length;<NEW_LINE>char[][] tokens = new char[length = this.identifierLengthStack[this.identifierLengthPtr--]][];<NEW_LINE>this.identifierPtr -= length;<NEW_LINE>long[] positions = new long[length];<NEW_LINE>System.arraycopy(th...
1, positions, 0, length);
1,721,948
public static boolean labelVHDLInvalidNotify(String label, LogisimFile file) {<NEW_LINE>String err = null;<NEW_LINE>if (!label.matches("^[A-Za-z][A-Za-z0-9_]*") || label.endsWith("_") || label.matches(".*__.*")) {<NEW_LINE>err = S.get("vhdlInvalidNameError");<NEW_LINE>} else if (Vhdl.VHDL_KEYWORDS.contains(label.toLowe...
("validationParseError"), OptionPane.ERROR_MESSAGE);
104,048
public static ErrorMessage sendErrorMessage(ChannelHandlerContext ctx, Throwable cause) throws Exception {<NEW_LINE>String message = cause.getMessage();<NEW_LINE>long statusCode = StatusCodes.Bad_UnexpectedError;<NEW_LINE>if (cause instanceof UaException) {<NEW_LINE>UaException ex = (UaException) cause;<NEW_LINE>messag...
future -> ctx.close());
1,028,583
private void displayContent() {<NEW_LINE>mProgressIndicator.show();<NEW_LINE>final int tagColor = ContextCompat.getColor(this, R.color.pink);<NEW_LINE>final int attrValueColor = ContextCompat.getColor(this, R.color.ocean_blue);<NEW_LINE>new Thread(() -> {<NEW_LINE>if (formattedContent == null) {<NEW_LINE>try {<NEW_LINE...
end(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
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...
(record) + WITH_CORRELATION_ID + correlationId);
1,322,571
public static GetInstanceErrorRankResponse unmarshall(GetInstanceErrorRankResponse getInstanceErrorRankResponse, UnmarshallerContext _ctx) {<NEW_LINE>getInstanceErrorRankResponse.setRequestId(_ctx.stringValue("GetInstanceErrorRankResponse.RequestId"));<NEW_LINE>InstanceErrorRank instanceErrorRank = new InstanceErrorRan...
("GetInstanceErrorRankResponse.InstanceErrorRank.ErrorRank[" + i + "].ProjectId"));
179,548
public void createLoop(final Vec2[] vertices, int count) {<NEW_LINE>assert m_vertices == null && m_count == 0;<NEW_LINE>assert count >= 3;<NEW_LINE>m_count = count + 1;<NEW_LINE>m_vertices = new Vec2[m_count];<NEW_LINE>for (int i = 1; i < count; i++) {<NEW_LINE>Vec2 v1 = vertices[i - 1];<NEW_LINE>Vec2 v2 = vertices[i];...
new Vec2(m_vertices[0]);
1,550,525
protected void executeAccessibleAction(AccessibleAction action, Object... parameters) {<NEW_LINE>switch(action) {<NEW_LINE>case SHOW_ITEM:<NEW_LINE>{<NEW_LINE>Node item = (Node) parameters[0];<NEW_LINE>if (item instanceof TableCell) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>TableCell<T, ?> cell = (TableCell<T,...
TableCell<T, ?>) item;
300,714
public ExperimentRun cloneExperimentRun(CloneExperimentRun cloneExperimentRun, UserInfo userInfo) throws ModelDBException {<NEW_LINE>var srcExperimentRun = getExperimentRun(cloneExperimentRun.getSrcExperimentRunId());<NEW_LINE>// Validate if current user has access to the entity or not<NEW_LINE>mdbRoleService.validateE...
), ModelDBActionEnum.ModelDBServiceActions.UPDATE);
408,246
public void run() {<NEW_LINE>Object result = null;<NEW_LINE>try {<NEW_LINE>if (args == null || args.length == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ArrayList<Object> argsList = new ArrayList<>();<NEW_LINE>for (Object arg : args) {<NEW_LINE>argsList.add(arg);<NEW_LINE>}<NEW_LINE>if (params != null) {<NEW_LINE>ArrayM...
task.put(KEY_METHOD, method);
1,491,749
private Pattern readPattern(ExpressionProtos.Pattern proto, LinkList list) throws DeserializationException {<NEW_LINE>switch(proto.getKindCase()) {<NEW_LINE>case BINDING:<NEW_LINE>{<NEW_LINE>DependentLink param = readParameter(proto.getBinding().getVar());<NEW_LINE>list.append(param);<NEW_LINE>return new BindingPattern...
.emptyList()), patterns);
1,251,897
public static TaobaoFilmGetSeatsResponse unmarshall(TaobaoFilmGetSeatsResponse taobaoFilmGetSeatsResponse, UnmarshallerContext _ctx) {<NEW_LINE>taobaoFilmGetSeatsResponse.setRequestId(_ctx.stringValue("TaobaoFilmGetSeatsResponse.RequestId"));<NEW_LINE>taobaoFilmGetSeatsResponse.setErrorCode(_ctx.stringValue("TaobaoFilm...
(_ctx.stringValue("TaobaoFilmGetSeatsResponse.SubCode"));
254,672
public void moveBlock(long sessionId, long blockId, int tier) throws BlockDoesNotExistException, BlockAlreadyExistsException, InvalidWorkerStateException, WorkerOutOfSpaceException, IOException {<NEW_LINE>// TODO(calvin): Move this logic into BlockStore#moveBlockInternal if possible<NEW_LINE>// Because the move operati...
mLocalBlockStore.lockBlock(sessionId, blockId);
1,688,026
public DeleteApplicationReferenceDataSourceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteApplicationReferenceDataSourceResult deleteApplicationReferenceDataSourceResult = new DeleteApplicationReferenceDataSourceResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_...
class).unmarshall(context));
959,872
public boolean lookupAssociated(String viewB, DogArray<AssociatedIndex> pairs) {<NEW_LINE>// clear the set of pairs so that if it fails it will be empty<NEW_LINE>pairs.reset();<NEW_LINE>Frame src = frameMap.get(recentQueryID);<NEW_LINE>Frame dst = frameMap.get(viewB);<NEW_LINE>if (src == null || dst == null)<NEW_LINE>t...
boolean swapped = m.frameSrc != src;
911,376
public final BuildOptionContext buildOption() throws RecognitionException {<NEW_LINE>BuildOptionContext _localctx = new BuildOptionContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 14, RULE_buildOption);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(172);<NEW...
_la = _input.LA(1);
681,828
final RegisterElasticIpResult executeRegisterElasticIp(RegisterElasticIpRequest registerElasticIpRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerElasticIpRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,216,383
public List<Integer> findMinHeightTrees(int n, int[][] edges) {<NEW_LINE>if (n == 1) {<NEW_LINE>return Collections.singletonList(0);<NEW_LINE>}<NEW_LINE>List<Set<Integer>> adj = new ArrayList<>(n);<NEW_LINE>for (int i = 0; i < n; ++i) {<NEW_LINE>adj.add<MASK><NEW_LINE>}<NEW_LINE>for (int[] edge : edges) {<NEW_LINE>adj....
(new HashSet<>());
1,655,099
public void marshall(ListImagesRequest listImagesRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listImagesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(listImagesRequest.getCreationTime...
listImagesRequest.getLastModifiedTimeAfter(), LASTMODIFIEDTIMEAFTER_BINDING);
1,758,072
public void processResources(IncrementalTaskInputs incrementalTaskInputs) throws ParserConfigurationException, SAXException, XPathExpressionException, IOException, JAXBException {<NEW_LINE>final LayoutXmlProcessor.ResourceInput resourceInput = new LayoutXmlProcessor.ResourceInput(incrementalTaskInputs.isIncremental(), ...
added(inputFileDetails.getFile());
1,234,379
private MethodData.MethodBuilder handleNewMethodNode(MethodData.MethodBuilder currentMethod) {<NEW_LINE>checkState("method".equals(xmlStreamReader.getLocalName()), "Not a method node? %s", currentLocation);<NEW_LINE>checkState(null == currentMethod, "Already building a method - method nodes do not nest. %s", currentLoc...
returnType != null, "No returns attribute found in stream %s", currentLocation);
668,231
protected final void bindValues(SQLiteStatement stmt, TraceUser entity) {<NEW_LINE>stmt.clearBindings();<NEW_LINE>stmt.bindString(1, entity.getLogin());<NEW_LINE>String name = entity.getName();<NEW_LINE>if (name != null) {<NEW_LINE>stmt.bindString(2, name);<NEW_LINE>}<NEW_LINE>String avatarUrl = entity.getAvatarUrl();<...
Integer following = entity.getFollowing();
1,390,452
private void handleCannotConnectException(CannotConnectException ex) {<NEW_LINE>logger.warn("Cannot connect", ex);<NEW_LINE>Throwable t = ex.getCause();<NEW_LINE>String message = "";<NEW_LINE>while (t != null) {<NEW_LINE>if (t instanceof ConnectException) {<NEW_LINE>message = "Server is likely offline." + message;<NEW_...
getCause().getMessage());
13,592
private void onDrawHelper(final Canvas c, final MapView pMapView, final Projection pProjection) {<NEW_LINE>// fix for https://github.com/osmdroid/osmdroid/issues/904<NEW_LINE>if (mTilesOverlay != null)<NEW_LINE>mTilesOverlay.protectDisplayedTilesForCache(c, pProjection);<NEW_LINE>for (final Overlay overlay : mOverlayLi...
draw(c, pMapView, false);
1,412,991
public void marshall(ReportJob reportJob, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (reportJob == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(reportJob.getReportJobId(), REPORTJOBID_BINDING);<NEW_LIN...
reportJob.getReportDestination(), REPORTDESTINATION_BINDING);
1,416,806
private void incrNavigatorsFromSolrFacets(final Map<String, ReversibleScoreMap<String>> facets) {<NEW_LINE>if (facets != null && !facets.isEmpty()) {<NEW_LINE>fcts = facets.get(CollectionSchema.coordinate_p_0_coordinate.getSolrFieldName());<NEW_LINE>if (fcts != null) {<NEW_LINE>for (String coordinate : fcts) {<NEW_LINE...
= new ConcurrentScoreMap<String>();
1,452,712
public void run() {<NEW_LINE>try {<NEW_LINE>if (XActivityManagerService.canWriteUsageData()) {<NEW_LINE>SQLiteDatabase dbUsage = getDbUsage();<NEW_LINE>if (dbUsage == null)<NEW_LINE>return;<NEW_LINE>// Parameter<NEW_LINE>String extra = "";<NEW_LINE>if (restriction.extra != null)<NEW_LINE>if (getSettingBool(userId, Priv...
put("value", restriction.value);
4,534
private RefactoringStatus initialize(JavaRefactoringArguments arguments) {<NEW_LINE>final String selection = arguments.getAttribute(JavaRefactoringDescriptorUtil.ATTRIBUTE_SELECTION);<NEW_LINE>if (selection != null) {<NEW_LINE>int offset = -1;<NEW_LINE>int length = -1;<NEW_LINE>final StringTokenizer tokenizer = new Str...
valueOf(replace).booleanValue();
1,399,490
protected List<ProcessDefinitionEntity> findProcessDefinition(CommandContext commandContext) {<NEW_LINE>// If process definition is already provided (eg. when command is called through the DeployCmd)<NEW_LINE>// we don't need to do an extra database fetch and we can simply return it, wrapped in a list<NEW_LINE>if (proc...
> processDefinitions = query.list();
1,072,128
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
850,450
private static Map<String, GHEvent> createEventMap() {<NEW_LINE>HashMap<String, GHEvent> map = new HashMap<>();<NEW_LINE>map.put("CommitCommentEvent", GHEvent.COMMIT_COMMENT);<NEW_LINE>map.put("CreateEvent", GHEvent.CREATE);<NEW_LINE>map.put("DeleteEvent", GHEvent.DELETE);<NEW_LINE>map.put("ForkEvent", GHEvent.FORK);<N...
put("IssueCommentEvent", GHEvent.ISSUE_COMMENT);
1,481,220
public Dataset execute(CommandContext ctxt) throws CommandException {<NEW_LINE>if (getDataset().getLatestVersion().isReleased()) {<NEW_LINE>throw new IllegalCommandException(BundleUtil.getStringFromBundle("dataset.status.failure.isReleased"), this);<NEW_LINE>}<NEW_LINE>if (label == null || label.isEmpty()) {<NEW_LINE>g...
getLatestVersion().setExternalStatusLabel(label);
1,275,857
public static void main(String[] args) {<NEW_LINE>PingClientConfig config = parseArgs(args);<NEW_LINE>boolean useHeader = "header".equals(config.getTransport());<NEW_LINE>final RpcClientFactory clientFactory = useHeader ? new LegacyRpcClientFactory(new ThriftClientConfig().setDisableSSL(true)) : new RSocketRpcClientFac...
LOG.error("Exception: " + ex);
1,298,386
public List<ActionEntity> listLogins(DateTime startAt, DateTime endAt, String display, String cursor, Integer perPage, Object sortBy) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/history/login";<NEW_LINE>// query params<NEW_LIN...
localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
956,207
public Optional<BoardHistoryNode> draw(Graphics2D g, int posx, int posy, int width, int height, boolean calc) {<NEW_LINE>if (width <= 0 || height <= 0) {<NEW_LINE>// we don't have enough space<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>// Use dense tree for saving space if large-subboard<NEW_LINE>YSPACING = ...
.config.showBorder ? 2 : 0;
1,388,268
private static String findJavaEncoding(FileObject fo) {<NEW_LINE>ClassLoader systemClassLoader = (ClassLoader) Lookup.getDefault().lookup(ClassLoader.class);<NEW_LINE>Method org_netbeans_modules_java_Util_getFileEncoding = null;<NEW_LINE>try {<NEW_LINE>Class<?> c = // NOI18N<NEW_LINE>systemClassLoader.// NOI18N<NEW_LIN...
[] { FileObject.class });
1,071,384
public static void main(String[] args) {<NEW_LINE>Exercise48_DisjointPaths disjointPaths = new Exercise48_DisjointPaths();<NEW_LINE>Graph graph1 = new Graph(5);<NEW_LINE>graph1.addEdge(0, 1);<NEW_LINE>graph1.addEdge(0, 2);<NEW_LINE><MASK><NEW_LINE>graph1.addEdge(1, 4);<NEW_LINE>graph1.addEdge(2, 4);<NEW_LINE>graph1.add...
graph1.addEdge(0, 3);
1,007,894
public boolean activate(EventBean optionalTriggeringEvent, ContextControllerEndConditionMatchEventProvider endConditionMatchEventProvider, Map<String, Object> optionalTriggeringPattern) {<NEW_LINE>ScheduleHandleCallback scheduleCallback = new ScheduleHandleCallback() {<NEW_LINE><NEW_LINE>public void scheduledTrigger() ...
getStatementContext().getContextRuntimeDescriptor());
72,235
public static ControlFlowGraph build(CompilationUnitTree root, UnderlyingAST underlyingAST, BaseTypeChecker checker, AnnotatedTypeFactory factory, ProcessingEnvironment env) {<NEW_LINE>boolean assumeAssertionsEnabled = checker.hasOption("assumeAssertionsAreEnabled");<NEW_LINE>boolean assumeAssertionsDisabled = checker....
CFTreeBuilder builder = new CFTreeBuilder(env);
463,785
public static Fp12 finalExponentiation(Fp12 el) {<NEW_LINE>// first chunk<NEW_LINE>// el.b = -el.b<NEW_LINE>Fp12 w = new Fp12(el.a, el.b.negate());<NEW_LINE>Fp12 x = el.inverse();<NEW_LINE>Fp12 y = w.mul(x);<NEW_LINE>Fp12 z = y.frobeniusMap(2);<NEW_LINE>Fp12 pre = z.mul(y);<NEW_LINE>// last chunk<NEW_LINE>Fp12 a = pre....
Fp12 b = a.cyclotomicSquared();
1,727,610
private void updateVDisplay(boolean next) {<NEW_LINE>if (m_archives == null)<NEW_LINE>m_archives = new MArchive[0];<NEW_LINE>if (next)<NEW_LINE>m_index++;<NEW_LINE>else<NEW_LINE>m_index--;<NEW_LINE>if (m_index >= m_archives.length - 1)<NEW_LINE>m_index = m_archives.length - 1;<NEW_LINE>if (m_index < 0)<NEW_LINE>m_index...
.getChildren().clear();
1,378,655
/* (non-Javadoc)<NEW_LINE>* @see org.eclipse.jface.dialogs.MessageDialog#createButton(org.eclipse.swt.widgets.Composite, int, java.lang.String, boolean)<NEW_LINE>*/<NEW_LINE>protected Button createButton(Composite parent, int id, String label, boolean defaultButton) {<NEW_LINE>// increment the number of columns in the ...
.getLayout()).numColumns++;
1,574,847
private void fixStackTrace(Exception ex, Exception toHandle) {<NEW_LINE>try {<NEW_LINE>StackTraceElement[] stackTrace = ex.getStackTrace();<NEW_LINE>if (stackTrace != null && stackTrace.length > 0) {<NEW_LINE>StackTraceElement[] stackTrace2 = toHandle.getStackTrace();<NEW_LINE>if (stackTrace2 != null) {<NEW_LINE>int ma...
ListenerExecutionFailedException suppressed = new ListenerExecutionFailedException("Restored Stack Trace");
1,645,589
private void paintInstanceEvolution(InstancePainter painter) {<NEW_LINE>// draw boundary, label<NEW_LINE>painter.drawLabel();<NEW_LINE>final var xpos = painter.getLocation().getX();<NEW_LINE>final var ypos = painter.getLocation().getY();<NEW_LINE>final var wid = painter.getAttributeValue(StdAttr.WIDTH).getWidth();<NEW_...
lenObj = painter.getAttributeValue(ATTR_LENGTH);
75,630
private void processCertStore(CertStoreCallback certStoreCallback) {<NEW_LINE>_logger.log(Level.FINE, "JASPIC: In CertStoreCallback Processor");<NEW_LINE>KeyStore certStore = sslUtils.getMergedTrustStore();<NEW_LINE>if (certStore == null) {<NEW_LINE>// should never happen<NEW_LINE>certStoreCallback.setCertStore(null);<...
cert = certStore.getCertificate(alias);
757,372
public static InventoryAdapter findInventoryAdapter(final Object inventory) {<NEW_LINE>// If the inventory provides a IItemHandler take that one first<NEW_LINE>if (inventory instanceof ICapabilityProvider) {<NEW_LINE>IItemHandler itemHandler = ((ICapabilityProvider) inventory).getCapability(CapabilityItemHandler.ITEM_H...
).getName() + " report this to Sponge");
1,748,846
protected void registerCommands() {<NEW_LINE>PluginCommand command = this.bootstrap.getLoader().getCommand("luckperms");<NEW_LINE>if (command == null) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isAsyncTabCompleteSupported()) {<NEW_LINE>this.commandManager = new BukkitAsyncCommandExecutor(this, command);...
getLogger().severe("Unable to register /luckperms command with the server");
959,416
private void addFieldChildren(QueryProfilesConfig.Queryprofile.Builder qpB, QueryProfile profile, String namePrefix) {<NEW_LINE>List<Map.Entry<String, Object>> content = new ArrayList<>(profile.declaredContent().entrySet());<NEW_LINE>Collections.sort(content, new MapEntryKeyComparator());<NEW_LINE>if (profile.getValue(...
Object value = profile.getValue();
37,898
private void selectTable(String tableName) {<NEW_LINE>try {<NEW_LINE>numRows = viewReader.getRowCount(tableName);<NEW_LINE>numEntriesField.setText(numRows + " entries");<NEW_LINE>currPage = 1;<NEW_LINE>currPageLabel.setText(Integer.toString(currPage));<NEW_LINE>numPagesLabel.setText(Integer.toString((numRows / ROWS_PER...
currentTableHeader = new ArrayList<>();
552,245
final GetMessagingSessionEndpointResult executeGetMessagingSessionEndpoint(GetMessagingSessionEndpointRequest getMessagingSessionEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMessagingSessionEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,181,515
private void initViews() {<NEW_LINE>Spinner spinnerAnimationType = findViewById(R.id.spinnerAnimationType);<NEW_LINE>setSpinnerAdapter(<MASK><NEW_LINE>spinnerAnimationType.setOnItemSelectedListener(this);<NEW_LINE>spinnerAnimationType.setSelection(customization.getAnimationType().ordinal());<NEW_LINE>Spinner spinnerOri...
spinnerAnimationType, R.array.animation_type);
459,162
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>registerForEvents();<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>viewModel = new ViewModelProvider(this).get(HomeViewModel.class);<NEW_LINE>getLifecycle().addObserver(viewModel);<NEW_LINE>setSupportActionBar(toolbar);<NEW_LINE>getSupportActionBar()...
(Unit) -> initQuickConnectFab());
1,290,378
public OpenAPIExpectation[] deserializeArray(String jsonOpenAPIExpectations, boolean allowEmpty) {<NEW_LINE>List<OpenAPIExpectation> <MASK><NEW_LINE>if (isBlank(jsonOpenAPIExpectations)) {<NEW_LINE>throw new IllegalArgumentException("1 error:" + NEW_LINE + " - an expectation or expectation array is required but value w...
expectations = new ArrayList<>();
1,470,681
private void processAnnotations(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {<NEW_LINE>Set<? extends Element> elements = roundEnv.getElementsAnnotatedWith(AutoService.class);<NEW_LINE>log(annotations.toString());<NEW_LINE><MASK><NEW_LINE>for (Element e : elements) {<NEW_LINE>// TODO(gak): check f...
log(elements.toString());
24,899
public void doInTransactionWithoutResult(TransactionStatus status) {<NEW_LINE>List<KubernetesClusterDetailsVO> details = new ArrayList<>();<NEW_LINE><MASK><NEW_LINE>if (Network.GuestType.Shared.equals(network.getGuestType())) {<NEW_LINE>addKubernetesClusterDetailIfIsNotEmpty(details, kubernetesClusterId, ApiConstants.E...
long kubernetesClusterId = kubernetesCluster.getId();
1,508,799
public static void main(String[] args) throws Exception {<NEW_LINE>Config hzConfig = getConfig();<NEW_LINE>HazelcastInstance remoteHz = startRemoteHzCluster(hzConfig);<NEW_LINE>JetInstance localJet = startLocalJetCluster();<NEW_LINE>try {<NEW_LINE>ClientConfig clientConfig = new ClientConfig();<NEW_LINE>clientConfig.ge...
TimeUnit.SECONDS.sleep(3);
312,718
public static LoadConfigDirectory readLoadConfigDirectory(PE pe, byte[] b) throws IOException {<NEW_LINE>DataReader dr = new DataReader(b);<NEW_LINE>LoadConfigDirectory lcd = new LoadConfigDirectory();<NEW_LINE>lcd.set(b);<NEW_LINE>lcd.setSize(dr.readDoubleWord());<NEW_LINE>lcd.setTimeDateStamp(dr.readDoubleWord());<NE...
) : dr.readDoubleWord());
126,747
public void marshall(Certificate certificate, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (certificate == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(certificate.getCertificateIdentifier(), CERTIFICATE...
certificate.getCertificateWallet(), CERTIFICATEWALLET_BINDING);
1,676,108
public void close() {<NEW_LINE>// Make sure we are not restoring more then once<NEW_LINE>if (restored) {<NEW_LINE>slogger.warn("currentInstance: Skip restoring current instance because we already did that: {}", this);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>restored = true;<NEW_LINE>// Actually restore it<NEW_LINE>final O...
debug("currentInstance: Restored previous instance: {} (from={})", previousInstance, instance);
35,727
public void nodeChanged() throws Exception {<NEW_LINE>zkCacheManager.getExecutorService().execute(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>LogUtils.debug(log, jobName, "Leader host nodeChanged", jobName);<NEW_LINE>if (isShutdown) {<NEW_LINE>LogUtils.debug(log, j...
debug(log, jobName, "Leader is already existing, unnecessary to election");
806,926
private StructuredStatement processSwitchEmbeddedThrow(StructuredStatement ifStm, BlockIdentifier outer, Block swBodyBlock, Op04StructuredStatement switchStm, StructuredSwitch struSwi) {<NEW_LINE>// Soooo - if there's only ONE Assertion error that gets thrown, we can be pretty confident that<NEW_LINE>// that's the asse...
> replacements = MapFactory.newOrderedMap();
401,317
public ModelAndView authorize(ModelAndView modelAndView) {<NEW_LINE>modelAndView.setViewName("authorize/formbased_163email_sso_submint");<NEW_LINE>AppsFormBasedDetails details = (AppsFormBasedDetails) app;<NEW_LINE>modelAndView.addObject("username", account.getRelatedUsername().substring(account.getRelatedUsername(<MAS...
).indexOf("@")));
935,501
protected boolean processSysEvent(DispatcherState curState, DbusEvent event) {<NEW_LINE>boolean success = true;<NEW_LINE>boolean debugEnabled = getLog().isDebugEnabled();<NEW_LINE>Checkpoint ckptInEvent = null;<NEW_LINE>int eventSrcId = event.getSourceId();<NEW_LINE>if (event.isCheckpointMessage()) {<NEW_LINE>ByteBuffe...
getLog().info("Bootstrap is complete. Switching to relay consumption");
1,139,191
final ModifyLaunchTemplateResult executeModifyLaunchTemplate(ModifyLaunchTemplateRequest modifyLaunchTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyLaunchTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
(super.beforeMarshalling(modifyLaunchTemplateRequest));
527,107
public Table query(String cql, List<Object> values) throws Exception {<NEW_LINE>Table t = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>if (values != null && values.size() > 0) {<NEW_LINE>PreparedStatement ps = session.prepare(cql);<NEW_LINE>rs = session.execute(ps.bind(values.toArray(new Object[values.size()])));<NEW_L...
(i, getValue(o));
1,793,538
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>remove_index_result result = new remove_index_result();<NEW_LINE>if (e instanceof rpc_management_exception) {<NEW_LINE>result.ex = (rpc_management_ex...
.apache.thrift.TApplicationException) e;
1,344,562
/*<NEW_LINE>* @see org.eclipse.jdt.internal.compiler.ast.ASTNode#print(int, java.lang.StringBuffer)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public StringBuffer print(int indent, StringBuffer output) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>printIndent(indent, output).append("/**\n");<NEW_LINE>boolean nodePrinted = false;<NEW...
completionNode == this.paramTypeParameters[i];
1,418,121
public void initializePlugin(InitArguments initArguments) {<NEW_LINE>this<MASK><NEW_LINE>this.healthCheckRegistry = initArguments.getHealthCheckRegistry();<NEW_LINE>final Integer reloadInterval = getReloadConfigurationInterval();<NEW_LINE>if (reloadInterval > 0) {<NEW_LINE>initArguments.getConfiguration().scheduleReloa...
.metricRegistry = initArguments.getMetricRegistry();
775,110
private void configureTable() {<NEW_LINE>final TableColumnModel tcm = optionsTable.getColumnModel();<NEW_LINE>setUpColumns(tcm, 0, <MASK><NEW_LINE>tcm.addColumnModelListener(new TableColumnModelListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void columnAdded(TableColumnModelEvent e) {<NEW_LINE>setUpColumns(tc...
tcm.getColumnCount() - 1);
199,410
public void storeValues(StringToStringMap values, Settings settings) {<NEW_LINE>settings.setBoolean(UISettings.CLOSE_PROJECTS, values.getBoolean(CLOSE_PROJECTS));<NEW_LINE>settings.setBoolean(UISettings.ORDER_PROJECTS, values.getBoolean(ORDER_PROJECTS));<NEW_LINE>settings.setBoolean(UISettings.ORDER_SERVICES, values.ge...
, values.getBoolean(ENABLE_GROOVY_LOG));
610,444
private Predicate toFilterPredicate(EffectivePerson effectivePerson, Business business, Wi wi) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Message.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = cb.createQuery(Tuple.class);<NEW_L...
, wi.getPerson()));
722,816
public void compute(PrfSetComputeRequest request, StreamObserver<PrfSetComputeResponse> responseObserver) {<NEW_LINE>PrfSetComputeResponse response;<NEW_LINE>try {<NEW_LINE>KeysetHandle keysetHandle = CleartextKeysetHandle.read(BinaryKeysetReader.withBytes(request.getKeyset().toByteArray()));<NEW_LINE>PrfSet prfSet = k...
()).asException());
293,330
public void filter(ClientRequestContext requestContext) throws IOException {<NEW_LINE>int size = 0;<NEW_LINE>for (Map.Entry<String, Object> entry : RpcContext.getClientAttachment().getObjectAttachments().entrySet()) {<NEW_LINE>String key = entry.getKey();<NEW_LINE>String value = <MASK><NEW_LINE>if (illegalHttpHeaderKey...
(String) entry.getValue();
1,439,155
// read neighborhood number after each iteration.<NEW_LINE>public static ResultInfo readIterationOutput(String new_path) throws Exception {<NEW_LINE>ResultInfo ri = new ResultInfo();<NEW_LINE>ri.changed = ri.unchanged = 0;<NEW_LINE>String output_path = new_path + "/part-00000";<NEW_LINE>String file_line = "";<NEW_LINE>...
FileInputStream(output_path), "UTF8"));
221,643
static float transformAngle(float[] matrix, float angleRadians, float originX, float originY) {<NEW_LINE>checkState(matrix.length == 9);<NEW_LINE>// ruct and transform a vector oriented at the specified clockwise angle from vertical.<NEW_LINE>// Coordinate system: down is increasing Y, right is increasing X.<NEW_LINE>f...
, -y.get());
1,452,743
public OSSAsyncTask<DeleteBucketLoggingResult> deleteBucketLogging(DeleteBucketLoggingRequest request, OSSCompletedCallback<DeleteBucketLoggingRequest, DeleteBucketLoggingResult> completedCallback) {<NEW_LINE>RequestMessage requestMessage = new RequestMessage();<NEW_LINE>Map<String, String> query = new LinkedHashMap<St...
query.put("logging", "");
1,837,524
public DescribeInstanceCreditSpecificationsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeInstanceCreditSpecificationsResult describeInstanceCreditSpecificationsResult = new DescribeInstanceCreditSpecificationsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_...
XMLEvent xmlEvent = context.nextEvent();
1,267,549
private Timestamp extract_complex_time(long val, int precision) {<NEW_LINE>long scale = (long) Math.pow(10, precision);<NEW_LINE>double nano_part = Math.abs(val) % scale;<NEW_LINE>if (val < 0)<NEW_LINE>nano_part = -nano_part;<NEW_LINE>nano_part = (int) ((nano_part + scale) % scale) * (long) Math.pow(10, 9 - precision);...
(long) (val / scale);
588,490
private IsoTO convertIsoToCephIfNeeded(final IsoTO to) {<NEW_LINE>if (to == null || !to.getPath().startsWith(VolumeTO.CEPH)) {<NEW_LINE>return to;<NEW_LINE>}<NEW_LINE>CephPrimaryStorageVO pri = new Callable<CephPrimaryStorageVO>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>@Transactional(readOnly = true)<NEW_LINE>public C...
"imgUuid", to.getImageUuid());
1,423,990
public void childMoved(@Nonnull PsiTreeChangeEvent event) {<NEW_LINE>final PsiElement newParent = event.getNewParent();<NEW_LINE>final <MASK><NEW_LINE>if (newParent instanceof PsiDirectory) {<NEW_LINE>if (child instanceof PsiFileSystemItem && (!(child instanceof PsiFile) || !isInjected((PsiFile) child))) {<NEW_LINE>fin...
PsiElement child = event.getChild();
690,780
static // F743-13921<NEW_LINE>void validateAsyncOnInterfaces(Class<?>[] ifaces, TraceComponent tc) {<NEW_LINE>if (ifaces != null) {<NEW_LINE>for (Class<?> iface : ifaces) {<NEW_LINE>// d645943 - Modified the fix integrated for d618337 to include both<NEW_LINE>// the class-level and method-level checks. Since no-interf...
"ASYNC_ON_INTERFACE_CNTR0305W", iface.getName());
266,259
/* Sample generated code:<NEW_LINE>*<NEW_LINE>* @com.ibm.j9ddr.GeneratedFieldAccessor(offsetFieldName="_isDirOffset_", declaredType="uint32_t:1")<NEW_LINE>* public UDATA isDir() throws CorruptDataException {<NEW_LINE>* return getU32Bitfield(J9FileStat._isDir_s_, J9FileStat._isDir_b_);<NEW_LINE>* }<NEW_LINE>*/<NEW_L...
className, accessorName, accessorDesc, false);
94,124
public void run() {<NEW_LINE>// Do not continue if the view is no longer available.<NEW_LINE>if (myAbsoluteViewLayout == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Create the text field with the given settings.<NEW_LINE>CoronaEditText editText <MASK><NEW_LINE>LayoutParams params = new AbsoluteLayout.LayoutParams(w...
= new CoronaEditText(myContext, myCoronaRuntime);
139,311
public List<ZoomInfoFactory.ZoomInfo> retrieveZoomInfos(PO po) {<NEW_LINE>final List<ZoomInfoFactory.ZoomInfo> result = new <MASK><NEW_LINE>List<ZoomMetaInfo> infoList = cache.get(po.get_TableName());<NEW_LINE>if (infoList == null) {<NEW_LINE>infoList = loadZoom(po.get_TableName());<NEW_LINE>}<NEW_LINE>// get values<NE...
ArrayList<ZoomInfoFactory.ZoomInfo>();
477,625
public static void configureFromProperties(LogFactory factory, Properties properties, WorkerPool workerPool, String logDir) {<NEW_LINE>factory.workerPool = workerPool;<NEW_LINE>String <MASK><NEW_LINE>if (writers == null) {<NEW_LINE>factory.configured = true;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String s;<NEW_LINE>s = g...
writers = getProperty(properties, "writers");
623,420
private void init() {<NEW_LINE>addFocusListener(new FocusListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void focusLost(FocusEvent e) {<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void focusGained(FocusEvent e) {<NEW_LINE>// Delegate the focus to the JComponent that actually present the file<NEW_L...
, ActionEvent.META_MASK), CUSTOM_DISPOSE_EVENT);
405,833
public static WsdlInterface[] importWsdl(WsdlProject project, String url, boolean createRequests, QName bindingName, WsdlLoader wsdlLoader) throws SoapUIException {<NEW_LINE>WsdlInterface[] result;<NEW_LINE>PropertyExpansionContext context = new DefaultPropertyExpansionContext(project.getModelItem());<NEW_LINE>url = Pr...
Analytics.trackAction(SoapUIActions.IMPORT_WSDL);
1,309,773
/*<NEW_LINE>* testCMTIA()<NEW_LINE>*<NEW_LINE>* MIA01 - Illegal access for CMT<NEW_LINE>* MCM08 - MDB to access SLL and SLR<NEW_LINE>*/<NEW_LINE>public void testCMTIA() throws Exception {<NEW_LINE><MASK><NEW_LINE>FATMDBHelper.putQueueMessage("Request test results", qcfName, cmtRequestQueueName);<NEW_LINE>String results...
FATMDBHelper.emptyQueue(qcfName, testResultQueueName);
1,303,227
public ListImagePackagesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListImagePackagesResult listImagePackagesResult = new ListImagePackagesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
)).unmarshall(context));
230,506
public void transform() {<NEW_LINE>final XMLDOMNode input = input_;<NEW_LINE>final SgmlPage page = input.getDomNodeOrDie().getPage();<NEW_LINE>if (output_ == null || !(output_ instanceof XMLDOMNode)) {<NEW_LINE>final DomDocumentFragment fragment = page.createDocumentFragment();<NEW_LINE>final XMLDOMDocumentFragment nod...
serializedString.length() - 2);
1,387,113
private static Container transform(Map<String, Object> map) {<NEW_LINE>final Container container;<NEW_LINE>container = new Container();<NEW_LINE>container.setInode((String) map.get("inode"));<NEW_LINE>container.setOwner((String) map.get("owner"));<NEW_LINE>container.setIDate((Date) map.get("idate"));<NEW_LINE>container...
getOrDefault("show_on_menu", false)));