idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
763,554 | public Observable<UploadResult> uploadFileFromStash(final Contribution contribution, final String uniqueFileName, final String fileKey) {<NEW_LINE>try {<NEW_LINE>return uploadInterface.uploadFileFromStash(csrfTokenClient.getTokenBlocking(), pageContentsCreator.createFrom(contribution), CommonsApplication.DEFAULT_EDIT_S... | Timber.e(throwable, "Exception occurred in uploading file from stash"); |
766,427 | public void sub(LocalHistogram bh) {<NEW_LINE>int u = Math.min(min, bh.min);<NEW_LINE>int v = Math.max(max, bh.max);<NEW_LINE>// int s=Math.min(max,bh.max);<NEW_LINE>// int t=Math.max(min,bh.min);<NEW_LINE>// IJ.log("u "+u+" v "+v);<NEW_LINE>int cnt = 0;<NEW_LINE>// int z=0;<NEW_LINE>int tmin = u;<NEW_LINE>int tmax = v... | ] -= bh.counts[i]; |
565,665 | public Builder parseAnnotationQuery(@Nullable String annotationQuery) {<NEW_LINE>if (annotationQuery == null || annotationQuery.isEmpty())<NEW_LINE>return this;<NEW_LINE>Map<String, String> map = new LinkedHashMap<String, String>();<NEW_LINE>for (String ann : annotationQuery.split(" and ", 100)) {<NEW_LINE>int idx = an... | + 1).trim()); |
1,661,792 | protected void removeByUserId(String userId) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>session = openSession();<NEW_LINE>StringBuffer query = new StringBuffer();<NEW_LINE>query.append("FROM PasswordTracker IN CLASS com.liferay.portal.ejb.PasswordTrackerHBM WHERE ");<NEW_LINE>quer... | createQuery(query.toString()); |
24,865 | public static boolean read_rules_file(String p_design_name, String p_parent_name, String rules_file_name, app.freerouting.interactive.BoardHandling p_board_handling, boolean p_is_web_start, String p_confirm_message) {<NEW_LINE>boolean result = true;<NEW_LINE>boolean dsn_file_generated_by_host = p_board_handling.get_rou... | io.File(p_parent_name, rules_file_name); |
1,446,266 | public void run() {<NEW_LINE>final JobExecutorContext jobExecutorContext = new JobExecutorContext();<NEW_LINE>final List<String<MASK><NEW_LINE>ProcessEngineConfigurationImpl engineConfiguration = processEngine.getProcessEngineConfiguration();<NEW_LINE>CommandExecutor commandExecutor = engineConfiguration.getCommandExec... | > currentProcessorJobQueue = jobExecutorContext.getCurrentProcessorJobQueue(); |
1,248,900 | private void generateConstructor(ClassWriter cw, String generatedClassName, FlashlightProbeProvider provider) {<NEW_LINE>Method m = Method.getMethod("void <init> ()");<NEW_LINE>GeneratorAdapter gen = new GeneratorAdapter(Opcodes.ACC_PUBLIC, m, null, null, cw);<NEW_LINE>gen.loadThis();<NEW_LINE>gen.invokeConstructor(Typ... | Type.getType(FlashlightProbe.class); |
789,070 | public ShardTbl insertShard(String clusterName, ShardTbl shard, Map<Long, SentinelGroupModel> sentinels) throws DalException {<NEW_LINE>final ClusterTbl cluster = clusterTblDao.findClusterByClusterName(clusterName, ClusterTblEntity.READSET_FULL);<NEW_LINE>shard.<MASK><NEW_LINE>shard.setShardName(shard.getShardName().tr... | setClusterId(cluster.getId()); |
144,753 | public List<AnalyticJob> fetchAnalyticJobs() throws IOException, AuthenticationException {<NEW_LINE>List<AnalyticJob> appList = new ArrayList<AnalyticJob>();<NEW_LINE>// There is a lag of job data from AM/NM to JobHistoryServer HDFS, we shouldn't use the current time, since there<NEW_LINE>// might be new jobs arriving ... | + 1) + ", and current time: " + _currentTime); |
239,653 | private void addSelects() {<NEW_LINE>Iterator<DefinedType> typeIter = schema.getTypes().iterator();<NEW_LINE>while (typeIter.hasNext()) {<NEW_LINE>DefinedType type = typeIter.next();<NEW_LINE>if (type instanceof SelectType) {<NEW_LINE>EClass selectType = getOrCreateEClass(type.getName());<NEW_LINE>selectType.setInterfa... | dt2 = (DefinedType) (domain); |
680,253 | void run() throws Exception {<NEW_LINE>String topic = validateTopicName(params);<NEW_LINE>Map<String, String> map = new HashMap<>();<NEW_LINE>if (metadata != null) {<NEW_LINE>for (String property : metadata) {<NEW_LINE>if (!property.contains("=")) {<NEW_LINE>throw new ParameterException(String.format("Invalid key value... | 0], keyValue[1]); |
99,380 | public void encode(FacesContext context, Column column) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String style = column.getStyle();<NEW_LINE>String styleClass = column.getStyleClass();<NEW_LINE>styleClass = (styleClass == null) ? PanelGrid.CELL_CLASS : PanelGrid.CELL_CL... | writeAttribute("role", "gridcell", null); |
1,683,261 | protected V filterSingleObject(V featureVector) {<NEW_LINE>double[] raw = featureVector.toArray();<NEW_LINE>// TODO: reduce memory consumption?<NEW_LINE>double[] tmp = raw.clone();<NEW_LINE>Arrays.sort(tmp);<NEW_LINE>double scale = .5 / (raw.length - 1);<NEW_LINE>for (int i = 0; i < raw.length; ++i) {<NEW_LINE><MASK><N... | final double v = raw[i]; |
1,390,487 | private static VarExprList transformVarExprList(VarExprList varExprList, ExprTransform exprTransform) {<NEW_LINE>VarExprList varExprList2 = new VarExprList();<NEW_LINE>boolean changed = false;<NEW_LINE>for (Var v : varExprList.getVars()) {<NEW_LINE>Expr e = varExprList.getExpr(v);<NEW_LINE>// Transform variable.<NEW_LI... | ev2 = exprTransform.transform(ev); |
888,382 | private void propagateToParent(final IHUAttributePropagationContext propagationContext, final IAttributeStorage attributeSet, final Object value) {<NEW_LINE>// Get aggregation strategy on this level<NEW_LINE>// TODO: not sure yet, but i think we shall use parent's aggregation strategy<NEW_LINE>final I_M_Attribute attri... | ).getPropagator(parentAttributeSet, attribute); |
518,099 | private boolean tryConnection() {<NEW_LINE>m_user = userTextField.getText();<NEW_LINE>m_pwd = new String(passwordField.getPassword());<NEW_LINE>// Establish connection<NEW_LINE>if (!DB.isConnected(false))<NEW_LINE>validateConnection();<NEW_LINE>if (!DB.isConnected(false)) {<NEW_LINE><MASK><NEW_LINE>hostField.setBackgro... | statusBar.setStatusLine(txt_NoDatabase, true); |
666,537 | public ListFlowsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListFlowsResult listFlowsResult = new ListFlowsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep... | JsonToken token = context.getCurrentToken(); |
1,218,595 | private static Pair<List<AdapterIndexAndPosition>, List<AdapterIndexAndViewType>> mixDataSet(@NonNull RecyclerView.Adapter<? extends RecyclerView.ViewHolder> first, @NonNull RecyclerView.Adapter<? extends RecyclerView.ViewHolder> second) {<NEW_LINE>List<AdapterIndexAndPosition> <MASK><NEW_LINE>List<AdapterIndexAndViewT... | indexAndPositions = new ArrayList<>(); |
998,159 | public static double[] distort(double[] xu, double[] k) {<NEW_LINE>double k1 = k[0];<NEW_LINE>double k2 = k[1];<NEW_LINE>double k3 = k.length > 4 ? k[4] : 0;<NEW_LINE>// XXX: need to use those new distortion coefficients<NEW_LINE>double k4 = k.length > 5 ? k[5] : 0;<NEW_LINE>double k5 = k.length > 6 ? k[6] : 0;<NEW_LIN... | + 2 * p2 * x * y; |
7,315 | static ChaiProvider openProxyChaiProvider(final ChaiProviderFactory chaiProviderFactory, final SessionLabel sessionLabel, final LdapProfile ldapProfile, final DomainConfig config, final StatisticsService statisticsManager) throws PwmUnrecoverableException {<NEW_LINE>LOGGER.trace(sessionLabel, () -> "opening new ldap pr... | forChaiError(e.getErrorCode()); |
1,645,441 | public ListRolesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ListRolesResult listRolesResult = new ListRolesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += ... | ().unmarshall(context)); |
820,035 | // Algorithm from http://www.blackpawn.com/texts/lightmaps/<NEW_LINE>public Node insert(Image image) {<NEW_LINE>if (!isLeaf()) {<NEW_LINE>Node newNode = child<MASK><NEW_LINE>if (newNode != null) {<NEW_LINE>return newNode;<NEW_LINE>}<NEW_LINE>return child[1].insert(image);<NEW_LINE>} else {<NEW_LINE>if (occupied) {<NEW_... | [0].insert(image); |
1,759,670 | protected Promise<? extends ZKData> run(Context context) throws Throwable {<NEW_LINE>SettablePromise<ZKData> promise = Promises.settable();<NEW_LINE>_zkClient.getData(path, _watcher, (int rc, String p, Object ctx, byte[] data, Stat stat) -> {<NEW_LINE>KeeperException.Code code = KeeperException.Code.get(rc);<NEW_LINE>s... | , data, stat, acls)); |
1,027,985 | public static ListIoTCloudConnectorGroupsResponse unmarshall(ListIoTCloudConnectorGroupsResponse listIoTCloudConnectorGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listIoTCloudConnectorGroupsResponse.setRequestId(_ctx.stringValue("ListIoTCloudConnectorGroupsResponse.RequestId"));<NEW_LINE>listIoTCloudConnectorGr... | = new ArrayList<IoTCloudConnectorsItem>(); |
60,158 | protected void visitUninterpretedTagStart(Element jspElement) throws JspCoreException {<NEW_LINE>// 245645.1 Start<NEW_LINE>String uri = jspElement.getNamespaceURI();<NEW_LINE>if (uri != null) {<NEW_LINE>if (uri.startsWith("urn:jsptld:")) {<NEW_LINE>uri = uri.substring(uri.indexOf("urn:jsptld:") + 11);<NEW_LINE>} else ... | .indexOf("urn:jsptagdir:") + 14); |
678,841 | private Map<String, String> computeArtifactToSelfIncludingNameMap() {<NEW_LINE>final Map<String, String> result = new HashMap<String, String>();<NEW_LINE>final GraphGenerator<String> graph = createArtifactsGraph();<NEW_LINE>for (String artifactName : graph.getNodes()) {<NEW_LINE>final Iterator<String> in = graph.getIn(... | get(in.next()); |
915,204 | /* (non-Javadoc)<NEW_LINE>* @see com.biglybt.ui.swt.maketorrent.IWizardPanel#show()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void show() {<NEW_LINE>display = wizard.getDisplay();<NEW_LINE>wizard.setTitle(MessageText.getString("wizard.maketorrent.progresstitle"));<NEW_LINE>wizard.setCurrentInfo("");<NEW_LINE>wizar... | new File(wizard.savePath)); |
864,428 | public void consume(ConnectionContext context, HandshakeMessage message, ByteBuffer buffer) throws IOException {<NEW_LINE>// The producing happens in client side only.<NEW_LINE>ClientHandshakeContext chc = (ClientHandshakeContext) context;<NEW_LINE>// In response to the client extended_master_secret extension<NEW_LINE>... | chc.handshakeExtensions.get(CH_EXTENDED_MASTER_SECRET); |
947,396 | public Summary<ServiceSummaryItem> toSummary(List<DateAndMapPack> dnmPackList, int serverId) {<NEW_LINE>Summary<ServiceSummaryItem> summary = new Summary<>();<NEW_LINE>for (DateAndMapPack dnmPack : dnmPackList) {<NEW_LINE>long date = DateTimeHelper.getDefault().yyyymmdd(dnmPack.getYyyymmdd());<NEW_LINE>ListValue idList... | getMapPack().getList("error"); |
984,859 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "create window MyWindow#keepall as SupportBean;" + "insert into MyWindow select * from SupportBean;" + "@name('s0') on SupportBean_S0 select theString, sum(intPrimitive) as c0, sum(intPrimitive, group_by:()) as c1" + " from MyWindow group by theString;"... | makeSendEvent(env, "E2", 20); |
224,414 | public PermissionHolder lookupUser(UUID uuid) {<NEW_LINE>Objects.requireNonNull(uuid, "uuid");<NEW_LINE>// loaded already?<NEW_LINE>User user = this.plugin.getUserManager().getIfLoaded(uuid);<NEW_LINE>if (user != null) {<NEW_LINE>return user;<NEW_LINE>}<NEW_LINE>// is it an npc?<NEW_LINE>if (UniqueIdType.determineType(... | getGroupManager().getIfLoaded(npcGroupName); |
800,563 | public static Object toGraphObject(final Object sourceObject, final Integer outputDepth) {<NEW_LINE>if (sourceObject instanceof GraphObject) {<NEW_LINE>return sourceObject;<NEW_LINE>} else if (sourceObject instanceof Iterable) {<NEW_LINE>final List<GraphObject> res = new ArrayList<>();<NEW_LINE>for (final Object o : (I... | .wrapDateInGraphObjectMap((Date) sourceObject); |
1,103,589 | Object reducePos(PChain self, @Cached GetClassNode getClass, @Cached ConditionProfile hasSourceProfile, @Cached ConditionProfile hasActiveProfile) {<NEW_LINE>Object type = getClass.execute(self);<NEW_LINE>PTuple empty = factory().createTuple(PythonUtils.EMPTY_OBJECT_ARRAY);<NEW_LINE>if (hasSourceProfile.profile(self.ge... | { self.getSource() }); |
460,548 | public void doAction() throws Exception {<NEW_LINE>logger.info("Alerting on sla failure.");<NEW_LINE>if (slaOption.hasAlert()) {<NEW_LINE>final Alerter alerter = this.alerters.get(SlaOption.ALERT_TYPE_EMAIL);<NEW_LINE>if (alerter != null) {<NEW_LINE>try {<NEW_LINE>final ExecutableFlow flow = this.executorLoader.fetchEx... | error("Failed to alert by " + SlaOption.ALERT_TYPE_EMAIL); |
1,122,028 | public TransitGatewayPropagation unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>TransitGatewayPropagation transitGatewayPropagation = new TransitGatewayPropagation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isSta... | ().unmarshall(context)); |
833,533 | private void write8BitChannel(int channel, int colorComponents, int colorMode, int compression, Raster raster, int[] byteCounts) throws IOException {<NEW_LINE>int width = raster.getWidth();<NEW_LINE>int height = raster.getHeight();<NEW_LINE>byte[] rowBytes = null;<NEW_LINE>for (int y = 0; y < height; y++) {<NEW_LINE>ro... | y, width, 1, rowBytes); |
736,497 | public CloseableReference<Bitmap> process(Bitmap sourceBitmap, PlatformBitmapFactory bitmapFactory) {<NEW_LINE>int width = sourceBitmap.getWidth();<NEW_LINE>int height = sourceBitmap.getHeight();<NEW_LINE>int[] pixels = new int[width * height];<NEW_LINE>sourceBitmap.getPixels(pixels, 0, width, 0, 0, width, height);<NEW... | Bitmap bitmap = reference.get(); |
1,788,566 | public Tuple2<Record, PartitionSpec> next() throws IOException, InterruptedException {<NEW_LINE>Record record;<NEW_LINE>int retriedTime = 0;<NEW_LINE>while (true) {<NEW_LINE>try {<NEW_LINE>record = this.recordReader.read();<NEW_LINE>++this.position;<NEW_LINE>break;<NEW_LINE>} catch (IOException ex) {<NEW_LINE>if ((long... | .recordReader = this.createRecordReader(); |
1,028,278 | public void run(TaskMonitor monitor) throws CancelledException {<NEW_LINE>FileSystemService fsService = FileSystemService.getInstance();<NEW_LINE>String locInfo = "\"" + projectLocator.toString() + "\" from \"" + projectArchiveFile.getAbsolutePath() + "\"";<NEW_LINE>if (projectFile.exists() || projectDir.exists()) {<NE... | this, "Restore Archive: " + locInfo + " failed."); |
1,814,090 | private void makePopupWindow() {<NEW_LINE>dismissPopupKeyboard();<NEW_LINE>if (mExtensionPopup == null) {<NEW_LINE>int[] windowLocation = new int[2];<NEW_LINE>mExtensionPopup = new PopupWindow(getContext());<NEW_LINE>mExtensionPopup.setBackgroundDrawable(null);<NEW_LINE>LayoutInflater li = (LayoutInflater) getContext()... | 0, -windowLocation[1]); |
929,184 | public Map<TemplateImpl, String> findMatchingTemplates(final PsiFile file, Editor editor, @Nullable Character shortcutChar, TemplateSettings templateSettings) {<NEW_LINE>final Document document = editor.getDocument();<NEW_LINE>CharSequence text = document.getCharsSequence();<NEW_LINE>final int caretOffset = editor.getC... | (file, argumentOffset), candidatesWithArgument); |
1,393,477 | public void marshall(CreateDestinationRequest createDestinationRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createDestinationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createDestin... | createDestinationRequest.getDescription(), DESCRIPTION_BINDING); |
1,841,426 | public void update() {<NEW_LINE>removeAll();<NEW_LINE>int height = getIconHeight();<NEW_LINE>JBLabel firstLabel = null;<NEW_LINE>for (Map.Entry<VcsRefType, Collection<VcsRef>> typeAndRefs : myGroupedVisibleReferences.entrySet()) {<NEW_LINE>VcsRefType type = typeAndRefs.getKey();<NEW_LINE>Collection<VcsRef> refs = typeA... | = reference.getName() + ending; |
1,457,697 | public Map<String, StorableDateTimeZone> read(InputStream input) throws IOException {<NEW_LINE>Map<String, StorableDateTimeZone> result = new HashMap<>();<NEW_LINE>BufferedReader reader = new BufferedReader(new InputStreamReader(input, StandardCharsets.UTF_8));<NEW_LINE>List<String> aliasLines = new ArrayList<>();<NEW_... | aliasLine.substring(0, index); |
1,294,141 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see<NEW_LINE>* com.aptana.formatter.ui.FormatterModifyTabPage#createOptions(com.aptana.formatter.ui.IFormatterControlManager,<NEW_LINE>* org.eclipse.swt.widgets.Composite)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void createOptions(IFormatterControlManager manager, Compo... | XMLFormatterConstants.NEW_LINES_EXCLUDED_ON_TEXT_NODES, Messages.XMLFormatterNewLinesPage_exclude_text_node_label); |
887,622 | final ListConnectionsResult executeListConnections(ListConnectionsRequest listConnectionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listConnectionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | (super.beforeMarshalling(listConnectionsRequest)); |
88,702 | public void loadSettings() {<NEW_LINE>// oraHomeSelector.setVisible(isOCI);<NEW_LINE>// Load values from new connection info<NEW_LINE>DBPPreferenceStore globalPreferences = DBWorkbench.getPlatform().getPreferenceStore();<NEW_LINE>DBPConnectionConfiguration connectionInfo = site.getActiveDataSource().getConnectionConfig... | getBoolean(OracleConstants.PROP_SEARCH_METADATA_IN_SYNONYMS))); |
1,692,154 | private void updateLabels() {<NEW_LINE>String src = getFirstNotNullTrimmed(sourceText.getText(), "");<NEW_LINE>boolean validSource = isFileAccesible(src);<NEW_LINE>IPath path = Path.fromOSString(src);<NEW_LINE>String filename = (src.isEmpty() || path.isEmpty()) ? "Invalid" : path.segment(path.segmentCount() - 1);<NEW_L... | TransformType.MPB.getSuffix()); |
9,360 | private void moveNewBundlesToFelixLoadFolder(final File uploadFolderFile, final String[] pathnames) {<NEW_LINE>final File deployDirectory = new <MASK><NEW_LINE>try {<NEW_LINE>if (deployDirectory.exists() && deployDirectory.canWrite()) {<NEW_LINE>for (final String pathname : pathnames) {<NEW_LINE>final File bundle = new... | File(this.getFelixDeployPath()); |
110,853 | public Node visitCreateTableAsSelect(SqlBaseParser.CreateTableAsSelectContext context) {<NEW_LINE>Optional<String> comment = Optional.empty();<NEW_LINE>if (context.COMMENT() != null) {<NEW_LINE>comment = Optional.of(((StringLiteral) visit(context.string())).getValue());<NEW_LINE>}<NEW_LINE>Optional<List<Identifier>> co... | (), Identifier.class)); |
920,000 | private void init() {<NEW_LINE>this.setTitle(GuiActivator.getResources().getI18NString("service.gui.CREATE_CHAT_ROOM"));<NEW_LINE>this.setSize(620, 450);<NEW_LINE>this.setPreferredSize(new Dimension(620, 450));<NEW_LINE>this.<MASK><NEW_LINE>this.addButton.setName("create");<NEW_LINE>this.cancelButton.setName("cancel");... | getRootPane().setDefaultButton(addButton); |
396,244 | public static void register(Class<? extends InjectionInfo> type) {<NEW_LINE>AnnotationType annotationType = type.<AnnotationType>getAnnotation(AnnotationType.class);<NEW_LINE>if (annotationType == null) {<NEW_LINE>throw new IllegalArgumentException("Injection info class " + type + " is not annotated with @AnnotationTyp... | <? extends Annotation>>(); |
1,853,656 | public ServerConfiguration load(String issuer) throws Exception {<NEW_LINE>RestTemplate restTemplate = new RestTemplate(httpFactory);<NEW_LINE>// data holder<NEW_LINE>ServerConfiguration conf = new ServerConfiguration();<NEW_LINE>// construct the well-known URI<NEW_LINE>String url = issuer + "/.well-known/openid-config... | (getAsStringList(o, "token_endpoint_auth_methods")); |
256,330 | final DescribeTunnelResult executeDescribeTunnel(DescribeTunnelRequest describeTunnelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeTunnelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,637,538 | public static void doPrint(Project proj) {<NEW_LINE>CircuitJList list = new CircuitJList(proj, true);<NEW_LINE>Frame frame = proj.getFrame();<NEW_LINE>if (list.getModel().getSize() == 0) {<NEW_LINE>OptionPane.showMessageDialog(proj.getFrame(), S.get("printEmptyCircuitsMessage"), S.get("printEmptyCircuitsTitle"), Option... | job.setPrintable(print, format); |
505,440 | protected void updateChangeSet(Liquibase liquibase) throws LiquibaseException, SQLException {<NEW_LINE>String changelog = liquibase.getChangeLogFile();<NEW_LINE>List<ChangeSet> changeSets = this.getLiquibaseUnrunChangeSets(liquibase);<NEW_LINE>if (!changeSets.isEmpty()) {<NEW_LINE>List<RanChangeSet> ranChangeSets = liq... | logger.debugv("Database is up to date for changelog {0}", changelog); |
1,074,580 | /*private -> for testing*/<NEW_LINE>@SuppressWarnings("ConstantConditions")<NEW_LINE>Set<String> findResourceNamesFromFileSystem(String classPathRootOnDisk, String scanRootLocation, File folder) {<NEW_LINE>LOG.debug("Scanning for resources in path: " + folder.getPath() + " (" + scanRootLocation + ")");<NEW_LINE>Set<Str... | resourceNames = new TreeSet<>(); |
568,080 | public RevisionSummary toRevisionSummary(DatabaseSession databaseSession) throws BimserverDatabaseException {<NEW_LINE>RevisionSummary revisionSummary = databaseSession.create(RevisionSummary.class);<NEW_LINE>RevisionSummaryContainer revisionSummaryContainerEntities = databaseSession.create(RevisionSummaryContainer.cla... | getTypes().add(createRevisionSummaryType); |
105,996 | public List<FileObject> createFromTemplate(CreateDescriptor desc) throws IOException {<NEW_LINE>Properties archetype = new Properties();<NEW_LINE>try (InputStream is = desc.getTemplate().getInputStream()) {<NEW_LINE>archetype.load(is);<NEW_LINE>}<NEW_LINE>mergeProperties(desc, archetype);<NEW_LINE>ProjectInfo pi = Temp... | IOException(Bundle.MSG_NoGroupId()); |
351,436 | ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>Wi wi = this.convertToWrapIn(... | , effectivePerson.getDistinguishedName())); |
1,572,804 | private List<CalendarState.Action> createActionsList(Map<CalendarDateRange, Set<Action>> actionMap) {<NEW_LINE>if (actionMap.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<CalendarState.Action> calendarActions = new ArrayList<CalendarState.Action>();<NEW_LINE>SimpleDateFormat formatter = new SimpleDateForm... | calendarAction = new CalendarState.Action(); |
555,700 | public PNode visit(SimpleSSTNode node) {<NEW_LINE>PNode result = null;<NEW_LINE>switch(node.type) {<NEW_LINE>case BREAK:<NEW_LINE>result = new BreakNode();<NEW_LINE>result.assignSourceSection(createSourceSection(node.startOffset, node.endOffset));<NEW_LINE>break;<NEW_LINE>case CONTINUE:<NEW_LINE>result = new ContinueNo... | .startOffset, node.endOffset)); |
328,155 | public Mono<Response<Void>> syncFunctionsWithResponseAsync(String resourceGroupName, String name) {<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_LINE>}<NEW_LINE>if (resourceGroupName... | error(new IllegalArgumentException("Parameter name is required and cannot be null.")); |
1,837,622 | private // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>enlargeLabel = new javax.swing.JLabel();<NEW_LINE>enlargeText = new javax.swing.JTextField();<NEW_LINE>decreasingLabel = ... | = java.awt.GridBagConstraints.HORIZONTAL; |
889,391 | final CreateOutboundConnectionResult executeCreateOutboundConnection(CreateOutboundConnectionRequest createOutboundConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createOutboundConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | false), new CreateOutboundConnectionResultJsonUnmarshaller()); |
750,332 | public void marshall(CreateLocationS3Request createLocationS3Request, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createLocationS3Request == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE... | createLocationS3Request.getSubdirectory(), SUBDIRECTORY_BINDING); |
1,111,120 | private void loadHeadReference(boolean force) {<NEW_LINE>GitService service = ServiceFactory.get(GitService.class, force);<NEW_LINE>PullRequestMarker head = mPullRequest.head();<NEW_LINE>Repository repo = head.repo();<NEW_LINE>Single<Optional<GitReference>> refSingle = repo == null ? Single.just(Optional.absent()) : se... | (makeLoaderSingle(ID_LOADER_HEAD_REF, force)); |
37,152 | public <T> void save(final T model) {<NEW_LINE>throwExceptionIfMissingAnnotation(model.getClass());<NEW_LINE>cacheMeasurementClass(model.getClass());<NEW_LINE>ConcurrentMap<String, Field> colNameAndFieldMap = getColNameAndFieldMap(model.getClass());<NEW_LINE>try {<NEW_LINE>Class<?> modelType = model.getClass();<NEW_LIN... | Point point = pointBuilder.build(); |
1,794,232 | void displayPage() {<NEW_LINE>removeAll();<NEW_LINE>addComponent(mainContainer);<NEW_LINE>setScrollY(0);<NEW_LINE>revalidate();<NEW_LINE>repaint();<NEW_LINE>// Places the focus on the first link in the page, as long as it is within the visible area of the first page<NEW_LINE>if (getComponentForm() != null) {<NEW_LINE>/... | getComponentForm().setFocused(mainContainer); |
1,304,246 | public void copy4x4(Matrix4x3d src, double[] dest, int off) {<NEW_LINE>dest[off + 0] = src.m00();<NEW_LINE>dest[off + 1] = src.m01();<NEW_LINE>dest[off + 2] = src.m02();<NEW_LINE>dest[off + 3] = 0.0;<NEW_LINE>dest[off + 4] = src.m10();<NEW_LINE>dest[off + 5] = src.m11();<NEW_LINE>dest[off + 6] = src.m12();<NEW_LINE><MA... | dest[off + 7] = 0.0; |
1,480,048 | private TypeUpdateResult invokeListener(TypeUpdateInfo updateInfo, InsnNode insn, InsnArg arg, ArgType candidateType) {<NEW_LINE>BaseInvokeNode invoke = (BaseInvokeNode) insn;<NEW_LINE>if (isAssign(invoke, arg)) {<NEW_LINE>// TODO: implement backward type propagation (from result to instance)<NEW_LINE>return SAME;<NEW_... | argTypes.get(argNum))); |
1,030,542 | private void updateBalancingState() {<NEW_LINE>final List<Subchannel> activeList = subchannels.values().stream().filter(r -> SubChannels.getStateInfo(r).getState() == READY).collect(Collectors.toList());<NEW_LINE>if (activeList.isEmpty()) {<NEW_LINE>// No READY subchannels<NEW_LINE>boolean isConnecting = false;<NEW_LIN... | stateInfo = SubChannels.getStateInfo(subchannel); |
163,746 | private static Unbinder parseOnPageChange(final Object target, final Method method, View source) {<NEW_LINE>OnPageChange onPageChange = method.getAnnotation(OnPageChange.class);<NEW_LINE>if (onPageChange == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>validateMember(method);<NEW_LINE>validateReturnType(method, voi... | set(views, ADD_ON_PAGE_CHANGE, listener); |
28,384 | public ValidatedResponse<Pair<Optional<SpecialPrice>, Optional<PromoCodeDiscount>>> checkCode(Event event, String promoCode) {<NEW_LINE>ZoneId eventZoneId = event.getZoneId();<NEW_LINE>ZonedDateTime now = ZonedDateTime.now(clockProvider.withZone(eventZoneId));<NEW_LINE>Optional<String> maybeSpecialCode = Optional.ofNul... | ValidationResult.success(), result); |
1,431,217 | private static void openWPCOMURL(Activity activity, String url, ThemeModel theme, SiteModel site) {<NEW_LINE>if (activity == null) {<NEW_LINE>AppLog.e(AppLog.T.UTILS, "ThemeWebActivity requires a non-null activity");<NEW_LINE>return;<NEW_LINE>} else if (TextUtils.isEmpty(url)) {<NEW_LINE>AppLog.e(AppLog.T.UTILS, "Theme... | LOCAL_BLOG_ID, site.getId()); |
40,997 | public void onClick(View v) {<NEW_LINE>if (extra.getVisibility() == View.GONE) {<NEW_LINE>if (preferences.getBoolean("extraBarClosed:" + name, false)) {<NEW_LINE>SharedPreferences.Editor editor = preferences.edit();<NEW_LINE>editor.putBoolean("extraBarClosed:" + name, false);<NEW_LINE>editor.apply();<NEW_LINE>}<NEW_LIN... | (R.drawable.ic_expand_more_black_24dp)); |
930,125 | final RunJobFlowResult executeRunJobFlow(RunJobFlowRequest runJobFlowRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(runJobFlowRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,419,116 | public <K> void updateIndex(@Nonnull StubIndexKey<K, ?> key, int fileId, @Nonnull final Map<K, StubIdList> oldInputData, @Nonnull final Map<K, StubIdList> newInputData) {<NEW_LINE>try {<NEW_LINE>final UpdatableIndex<K, Void, FileContent> index = getIndex(key);<NEW_LINE>if (index == null)<NEW_LINE>return;<NEW_LINE>index... | process(oldKey, null, fileId); |
940,470 | public void writeHeartBeatToDisk(final String serverId) throws IOException {<NEW_LINE>// First We need to check if the heartbeat job is enable.<NEW_LINE>if (Config.getBooleanProperty("ENABLE_SERVER_HEARTBEAT", true)) {<NEW_LINE>String realPath = APILocator.getFileAssetAPI().getRealAssetsRootPath() + File.separator <MAS... | + "server" + File.separator + serverId; |
183,879 | public static void main(String[] args) {<NEW_LINE>LogSetup.initVespaLogging("vespasummarybenchmark");<NEW_LINE>String docidFileName = args[0];<NEW_LINE>String connectionSpec = args[1];<NEW_LINE>String summaryClass = args[2];<NEW_LINE>int numRuns = Integer<MASK><NEW_LINE>int numTargets = Integer.parseInt(args[4]);<NEW_L... | .parseInt(args[3]); |
755,434 | private long createPhoto(PrintWriter respWriter) throws RemoteInvocationException {<NEW_LINE>// make create photo request and send with the rest client synchronously<NEW_LINE>// response of create request does not have body, therefore use EmptyRecord as template<NEW_LINE>// create an instance of photo pragmatically<NEW... | long newPhotoId = entity.getId(); |
127,553 | public static DescribeSnapshotsResponse unmarshall(DescribeSnapshotsResponse describeSnapshotsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSnapshotsResponse.setRequestId(_ctx.stringValue("DescribeSnapshotsResponse.RequestId"));<NEW_LINE>describeSnapshotsResponse.setNextToken(_ctx.stringValue("DescribeSnapshot... | (_ctx.integerValue("DescribeSnapshotsResponse.TotalCount")); |
1,466,938 | private static void emitHistogramBuckets(List<Double> bucketBoundaries, List<Long> bucketCounts, PrintWriter out, Formatter formatter) {<NEW_LINE>checkArgument(bucketBoundaries.size() == bucketCounts.<MASK><NEW_LINE>out.write("<td class=\"borderLL\">");<NEW_LINE>out.write("<table>");<NEW_LINE>formatter.format("<thead><... | size() - 1, "Bucket boundaries and counts don't match"); |
1,439,174 | private JMenu create_Settings_Threads() {<NEW_LINE>UIManager.put("Slider.focus", UIManager.get("Slider.background"));<NEW_LINE>int cores = Runtime.getRuntime().availableProcessors();<NEW_LINE>JMenu submenu = new JMenu("No. of Threads");<NEW_LINE>JSlider slider = new JSlider(JSlider.VERTICAL, 1, cores, settings.threads.... | ("" + cores / 2)); |
1,164,670 | private void abortIfFateTransactions(ServerContext context) {<NEW_LINE>try {<NEW_LINE>final ReadOnlyTStore<UpgradeCoordinator> fate = new ReadOnlyStore<>(new ZooStore<>(context.getZooKeeperRoot() + Constants.ZFATE<MASK><NEW_LINE>if (!fate.list().isEmpty()) {<NEW_LINE>throw new AccumuloException("Aborting upgrade becaus... | , context.getZooReaderWriter())); |
1,538,116 | void buildOperations(BuildContext buildCtx, GraphQLSchema.Builder schemaBuilder) {<NEW_LINE>//<NEW_LINE>// Schema can be missing if the type is called 'Query'. Pre flight checks have checked that!<NEW_LINE>//<NEW_LINE>TypeDefinitionRegistry typeRegistry = buildCtx.getTypeRegistry();<NEW_LINE>Map<String, OperationTypeD... | ()).orElse(null); |
1,360,176 | public void evaluateXPathExpression(String xPath, Object evaluator) throws ParseException, JaxenException {<NEW_LINE>try {<NEW_LINE>if (LOGGER.isLoggable(Level.FINEST)) {<NEW_LINE>LOGGER.finest("xPath=" + xPath);<NEW_LINE>LOGGER.finest("evaluator=" + evaluator);<NEW_LINE>}<NEW_LINE>XPath xpath = new BaseXPath(xPath, ne... | evaluationResults = xpath.selectNodes(rootNode); |
430,961 | private Optional<StyleInfo> determineStyle() {<NEW_LINE>if (declaringType().isPresent()) {<NEW_LINE>DeclaringType type = declaringType().get();<NEW_LINE>Optional<DeclaringType<MASK><NEW_LINE>if (enclosing.isPresent()) {<NEW_LINE>Optional<StyleInfo> enclosingStyle = enclosing.get().style();<NEW_LINE>if (enclosing.get() ... | > enclosing = type.enclosingOf(); |
44,168 | public ListenableFuture<?> execute(TruncateTable statement, TransactionManager transactionManager, Metadata metadata, AccessControl accessControl, Session session, List<Expression> parameters, WarningCollector warningCollector) {<NEW_LINE>QualifiedObjectName tableName = createQualifiedObjectName(session, <MASK><NEW_LIN... | statement, statement.getTableName()); |
1,427,952 | private void checkTimeouts() {<NEW_LINE>long waitTime = getMs(PropertyKey.MASTER_WORKER_CONNECT_WAIT_TIME);<NEW_LINE>long retryInterval = getMs(PropertyKey.USER_RPC_RETRY_MAX_SLEEP_MS);<NEW_LINE>if (waitTime < retryInterval) {<NEW_LINE>LOG.warn("{}={}ms is smaller than {}={}ms. Workers might not have enough time to reg... | PropertyKey.MASTER_WORKER_CONNECT_WAIT_TIME, PropertyKey.USER_RPC_RETRY_MAX_SLEEP_MS); |
1,059,944 | private void writeSegmentInfo(DataOutput output, SegmentInfo si) throws IOException {<NEW_LINE>Version version = si.getVersion();<NEW_LINE>if (version.major < 7) {<NEW_LINE>throw new IllegalArgumentException("invalid major version: should be >= 7 but got: " + version.major + " segment=" + si);<NEW_LINE>}<NEW_LINE>// Wr... | Version minVersion = si.getMinVersion(); |
1,387,001 | public static boolean isInServiceProcess(Context context, Class<? extends Service> serviceClass) {<NEW_LINE>PackageManager packageManager = context.getPackageManager();<NEW_LINE>PackageInfo packageInfo;<NEW_LINE>try {<NEW_LINE>packageInfo = packageManager.getPackageInfo(context.getPackageName(), GET_SERVICES);<NEW_LINE... | getServiceInfo(component, PackageManager.GET_DISABLED_COMPONENTS); |
1,216,974 | private void pruneOldestSnapshots() throws CoreException {<NEW_LINE>// Sort model by snapshot timestamp and remove oldest ones.<NEW_LINE>final int snapshotKeepCount = TLCActivator.getDefault().getPreferenceStore().getInt(TLCActivator.I_TLC_SNAPSHOT_KEEP_COUNT);<NEW_LINE>// Filter out running snapshots such as remotely ... | = snapshotModels.size() - snapshotKeepCount; |
1,216,417 | private boolean equalContent(IParseRootNode inputParseResult, String output) {<NEW_LINE>if (output == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>output = output.trim();<NEW_LINE>IParser parser = checkoutParser();<NEW_LINE>IParseState parseState = new ParseState(output);<NEW_LINE>IParseRootNode outputParseResult... | toString(), IDebugScopes.DEBUG); |
1,739,068 | public static Path downloadAndInstallEditor() {<NEW_LINE>// https://github.com/VSCodium/vscodium/releases/download/1.52.1/VSCodium-darwin-x64-1.52.1.zip<NEW_LINE>String version = getLatestVSCodiumVersion();<NEW_LINE>Util.infoMsg("Downloading VSCodium " + version + ". Be patient, this can take several minutes...(Ctrl+C ... | Files.move(editorTmpDir, editorDir); |
1,167,626 | public Collection<ObjectMeta> listMetaData(String pattern, boolean regex, int limit) throws VineyardException {<NEW_LINE>val root = mapper_.createObjectNode();<NEW_LINE>ListDataRequest.put(root, pattern, regex, limit);<NEW_LINE>this.doWrite(root);<NEW_LINE>val reply = new GetDataReply();<NEW_LINE>reply.get(this.doReadJ... | val contents = reply.getContents(); |
715,625 | public void handleBookiesThatJoined(Set<BookieId> joinedBookies) {<NEW_LINE>Map<String, Set<BookieId>> perRegionClusterChange = new HashMap<String, Set<BookieId>>();<NEW_LINE>// node joined<NEW_LINE>for (BookieId addr : joinedBookies) {<NEW_LINE>BookieNode node = createBookieNode(addr);<NEW_LINE>topology.add(node);<NEW... | LOG.debug("Cluster changed : bookie {} joined the cluster.", addr); |
1,278,744 | public static void announce(JReleaserContext context) throws AnnounceException {<NEW_LINE>context.getLogger().info(RB.$("announcers.header"));<NEW_LINE>if (!context.getModel().getAnnounce().isEnabled()) {<NEW_LINE>context.getLogger().info(RB.$("announcers.not.enabled"));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String,... | .$("ERROR_unsupported_announcer", announcerName)); |
563,383 | final DeleteTriggerResult executeDeleteTrigger(DeleteTriggerRequest deleteTriggerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTriggerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,190,658 | public ConsistencySummaryStatistics execute(PageCache pageCache, DirectStoreAccess stores, ThrowingSupplier<CountsStore, IOException> countsSupplier, ThrowingSupplier<RelationshipGroupDegreesStore, IOException> groupDegreesStoreSupplier, IndexAccessors.IndexAccessorLookup indexAccessorLookup, PageCacheTracer pageCacheT... | moreDescriptiveRecordToStrings(stores)), summary); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.