idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
782,833 | private static Map<String, Object> createProperties(final DataSourceConfiguration dataSourceConfig) {<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>result.put("url", dataSourceConfig.getConnection().getUrl());<NEW_LINE>result.put("username", dataSourceConfig.getConnection().getUsername());<NEW_LINE>result.put("password"... | result = new LinkedHashMap<>(); |
480,220 | final DescribeDomainResult executeDescribeDomain(DescribeDomainRequest describeDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDomain"); |
1,656,582 | // findActions.<NEW_LINE>@CloseDBIfOpened<NEW_LINE>public List<WorkflowStep> findSteps(final String schemeId) throws DotSecurityException, DotDataException {<NEW_LINE>Logger.debug(this, () -> "Looking for the schemeId: " + schemeId);<NEW_LINE>if (!UtilMethods.isSet(schemeId)) {<NEW_LINE>throw new IllegalArgumentExcepti... | this.workflowAPI.findSteps(workflowScheme); |
1,680,343 | public DataRecord deserialize(final DataInput source, @NonNegative final long recordID, final SirixDeweyID deweyID, final PageReadOnlyTrx pageReadTrx) throws IOException {<NEW_LINE>final long key = getVarLong(source);<NEW_LINE>final int keySize = source.readInt();<NEW_LINE>final Set<Long> nodeKeys = new HashSet<>(keySi... | add(source.readLong()); |
1,395,134 | private void loadNode943() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_ClientDescription, new QualifiedName(0, "ClientDescription"), new LocalizedText("en", "ClientDescription"), LocalizedText.NULL_VALUE, UInteger.valu... | this.nodeManager.addNode(node); |
318,513 | public TrkSegment generateRouteSegment() {<NEW_LINE>RouteDataResources resources = new RouteDataResources(locations);<NEW_LINE>List<StringBundle> routeItems = new ArrayList<>();<NEW_LINE>if (!Algorithms.isEmpty(route)) {<NEW_LINE>for (RouteSegmentResult sr : route) {<NEW_LINE>sr.collectTypes(resources);<NEW_LINE>}<NEW_... | routeSegments = new ArrayList<>(); |
1,798,577 | private void addEditor(File filename) {<NEW_LINE>final EditorPane pane = new EditorPane(this);<NEW_LINE>if (filename != null) {<NEW_LINE>pane.loadSource(filename);<NEW_LINE>}<NEW_LINE>final Tab tab = new Tab();<NEW_LINE>tab.setContent(pane);<NEW_LINE>tab.<MASK><NEW_LINE>EventHandler<Event> closeHandler = new EventHandl... | setText(pane.getName()); |
1,555,604 | public AlertDialog show() {<NEW_LINE>dialog.show();<NEW_LINE>saveBtn = dialog.getButton(DialogInterface.BUTTON_POSITIVE);<NEW_LINE>saveBtn.setOnClickListener(this);<NEW_LINE><MASK><NEW_LINE>String lastPath = cfg.getString(qn_repeat_last_file);<NEW_LINE>byte[] data = (byte[]) cfg.getBytes(qn_repeat_icon_data);<NEW_LINE>... | ConfigManager cfg = ConfigManager.getDefaultConfig(); |
1,785,951 | public static DatasetGraph make(Assembler a, Resource root) {<NEW_LINE>if (!exactlyOneProperty(root, pLocation))<NEW_LINE>throw new AssemblerException(root, "No location given");<NEW_LINE>String dir = getStringValue(root, pLocation);<NEW_LINE>Location <MASK><NEW_LINE>DatasetGraph dsg = DatabaseMgr.connectDatasetGraph(l... | loc = Location.create(dir); |
1,246,999 | public Mono<String> selectorAndRules(@RequestBody final SelectorRulesData selectorRulesData) {<NEW_LINE>SelectorData selectorData = SelectorData.builder().pluginName(selectorRulesData.getPluginName()).handle(selectorRulesData.getSelectorHandler()).matchMode(selectorRulesData.getMatchMode()).conditionList(selectorRulesD... | > ruleDataList = selectorRulesData.getRuleDataList(); |
1,736,137 | public String giveFile(SymbolFileInfo symbolFileInfo, File file, String filename, TaskMonitor monitor) throws IOException {<NEW_LINE>initStorageLevelIfNeeded(monitor);<NEW_LINE>// make sure no relative path shenanigans<NEW_LINE><MASK><NEW_LINE>String relativeDestinationFilename = getUniqueFileDir(symbolFileInfo) + file... | filename = FilenameUtils.getName(filename); |
577,158 | public void updateState(HttpPanelSyntaxHighlightTextArea httpPanelTextArea) {<NEW_LINE>antiAliasingOption.setSelected(httpPanelTextArea.getAntiAliasingEnabled());<NEW_LINE>boolean selected = false;<NEW_LINE>boolean enabled = false;<NEW_LINE>Component c = httpPanelTextArea.getParent();<NEW_LINE>if (c instanceof JViewpor... | setSelected(httpPanelTextArea.getFadeCurrentLineHighlight()); |
1,153,881 | public DisplayNames display(String sorted, String type, String ip, TransactionReport report, String queryName) {<NEW_LINE>Map<String, TransactionType> types = report.findOrCreateMachine(ip).getTypes();<NEW_LINE>TransactionName all = new TransactionName("TOTAL");<NEW_LINE>all.setTotalPercent(1);<NEW_LINE>if (types != nu... | all, entry.getValue()); |
413,869 | public static long alignTimeToWin(long ts, int win) {<NEW_LINE>if (win != AsmWindow.D1_WINDOW) {<NEW_LINE>long curTimeSec = ts / 1000;<NEW_LINE>return (curTimeSec - curTimeSec % win) * 1000;<NEW_LINE>} else {<NEW_LINE>Calendar cal = Calendar.getInstance();<NEW_LINE>cal.setTimeInMillis(ts);<NEW_LINE>int year = cal.get(C... | cal.get(Calendar.HOUR); |
1,701,614 | public DataType toDataType() throws DuplicateNameException, IOException {<NEW_LINE>Structure structure = (Structure) super.toDataType();<NEW_LINE>try {<NEW_LINE>structure.setName(ArtHeader_Pie.class.getSimpleName());<NEW_LINE>} catch (InvalidNameException e) {<NEW_LINE>// ignore<NEW_LINE>}<NEW_LINE>structure.add(DWORD,... | add(DWORD, "compile_pic_", null); |
1,335,036 | public static CloneModelFromCommitResponse unmarshall(CloneModelFromCommitResponse cloneModelFromCommitResponse, UnmarshallerContext _ctx) {<NEW_LINE>cloneModelFromCommitResponse.setRequestId(_ctx.stringValue("CloneModelFromCommitResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setAppId(_ctx.string... | (_ctx.stringValue("CloneModelFromCommitResponse.Data.ModelType")); |
1,294,662 | protected void readFrame() throws TTransportException {<NEW_LINE>underlying.readAll(i32buf, 0, 4);<NEW_LINE>int size = TFramedTransport.decodeFrameSize(i32buf);<NEW_LINE>if (size < 0) {<NEW_LINE>close();<NEW_LINE>throw new TTransportException(TTransportException.CORRUPTED_DATA, "Read a negative frame size (" + size + "... | readBuffer.fill(underlying, size); |
1,762,437 | private synchronized void init() {<NEW_LINE>if (!initialized.compareAndSet(false, true)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOG.debug("GStreamer webcam device initialization");<NEW_LINE>pipe = new Pipeline(getName());<NEW_LINE>source = ElementFactory.make(GStreamerDriver.getSourceBySystem(), "source");<NEW_LINE>if ... | ElementFactory.make("jpegdec", "jpegdec"); |
561,384 | public void handleRequest(InputStream inputStream, OutputStream outputStream, Context context) throws IOException {<NEW_LINE>BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));<NEW_LINE>JSONObject responseJson = new JSONObject();<NEW_LINE>AmazonDynamoDB client = AmazonDynamoDBClientBuilder.d... | JSONObject) parser.parse(reader); |
1,740,122 | public synchronized void listen(BibDatabaseContextChangedEvent event) {<NEW_LINE>if (event instanceof FieldChangedEvent) {<NEW_LINE>// Only relay event if the field changes are more than one character or a new field is edited<NEW_LINE>FieldChangedEvent fieldChange = (FieldChangedEvent) event;<NEW_LINE>// If editing has... | of(fieldChange.getBibEntry()); |
733,374 | /* Build call for applicationsApplicationIdDelete */<NEW_LINE>private com.squareup.okhttp.Call applicationsApplicationIdDeleteCall(String applicationId, String ifMatch, String ifUnmodifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressReque... | localVarAuthNames = new String[] {}; |
1,812,488 | final CreateProjectResult executeCreateProject(CreateProjectRequest createProjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createProjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
601,046 | // bit stupid...<NEW_LINE>private static String toJavaReference(DataType dt) {<NEW_LINE>if (DataType.NONE.equals(dt))<NEW_LINE>return "com.yahoo.document.DataType.NONE";<NEW_LINE>if (DataType.INT.equals(dt))<NEW_LINE>return "com.yahoo.document.DataType.INT";<NEW_LINE>if (DataType.FLOAT.equals(dt))<NEW_LINE>return "com.... | dt.getName()) + ".type"; |
1,167,298 | public PCollection<KV<K, Iterable<V>>> expand(PCollection<KV<K, Iterable<WindowedValue<V>>>> input) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>KvCoder<K, Iterable<WindowedValue<V>>> inputKvCoder = (KvCoder<K, Iterable<WindowedValue<V>>>) input.getCoder();<NEW_LINE>Coder<K> keyCoder = inputKvCoder.getKeyCoder();... | KvCoder.of(keyCoder, outputValueCoder); |
138,789 | public void deleteById(String id) {<NEW_LINE>String vaultName = Utils.getValueFromIdByName(id, "vaults");<NEW_LINE>if (vaultName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'vaults'.", id)));<NEW_LINE>}<NEW_LINE... | Utils.getValueFromIdByName(id, "protectedItems"); |
1,410,635 | public DescribeCustomMetricResult describeCustomMetric(DescribeCustomMetricRequest describeCustomMetricRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCustomMetricRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executio... | JsonUnmarshallerContext> unmarshaller = new DescribeCustomMetricResultJsonUnmarshaller(); |
768,183 | protected void refreshLocation() {<NEW_LINE>if (nodeFigure == null || nodeFigure.getParent() == null) {<NEW_LINE>// node figure has not been created yet<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GraphNode node = this;<NEW_LINE>Point loc = node.getLocation();<NEW_LINE>ContainerDimension containerDimension = computeContainerS... | scrollPane.setSize(computeChildArea()); |
201,691 | public static void main(String[] args) throws Exception {<NEW_LINE>CommandLineParser parser = new DefaultParser();<NEW_LINE>CommandLine cmd = null;<NEW_LINE>cmd = parser.parse(ControllerConf.constructControllerOptions(), args);<NEW_LINE>if (cmd.getOptions().length == 0 || cmd.hasOption("help")) {<NEW_LINE>HelpFormatter... | controllerStarter = ControllerStarter.init(cmd); |
158,840 | protected static void extractNamedEntityMentions(CoreMap s, List<Mention> mentions, Set<IntPair> mentionSpanSet, Set<IntPair> namedEntitySpanSet) {<NEW_LINE>List<CoreLabel> sent = s.get(CoreAnnotations.TokensAnnotation.class);<NEW_LINE>SemanticGraph basicDependency = s.get(SemanticGraphCoreAnnotations.BasicDependencies... | get(SemanticGraphCoreAnnotations.BasicDependenciesAnnotation.class); |
275,625 | public static void vertical(Kernel1D_F64 kernel, GrayF64 input, GrayF64 output) {<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int width = input.getWidth();<NEW_LINE>final int height = input.getHeight();<NEW_LINE>for (int y = 0; y < height; y++) {<NEW_LINE>for (int x = 0; x < width; x++) {<NEW_LINE>do... | x, y, total / weight); |
147,704 | // ///////////////////////////////////////////<NEW_LINE>// *** GhidraDialog "callback" methods ***<NEW_LINE>// ///////////////////////////////////////////<NEW_LINE>@Override<NEW_LINE>protected void cancelCallback() {<NEW_LINE>if (wasChanged) {<NEW_LINE>int result = OptionDialog.showYesNoCancelDialog(<MASK><NEW_LINE>if ... | getComponent(), "Save Changes?", "Some comments were modified.\nSave Changes?"); |
1,172,036 | public WorkResult execute(final JavaCompileSpec spec) {<NEW_LINE>return buildOperationExecutor.call(new CallableBuildOperation<WorkResult>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public BuildOperationDescriptor.Builder description() {<NEW_LINE>return BuildOperationDescriptor.displayName("Compile Java for " + task.get... | ()).details(DETAILS); |
459,505 | protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>SubMonitor sub = SubMonitor.convert(monitor, 1000);<NEW_LINE>if (sub.isCanceled()) {<NEW_LINE>return Status.CANCEL_STATUS;<NEW_LINE>}<NEW_LINE>GitRepository currentRepo = commit.repository();<NEW_LINE>currentRepo.enterWriteProcess();<NEW_LINE>try {<NEW_LINE>// ... | "cherry-pick", commit.sha()); |
301,138 | public Organizations buildOrganization(HashMap<String, Attribute> attributeMap, String name, String nameInNamespace) {<NEW_LINE>try {<NEW_LINE>Organizations org = new Organizations();<NEW_LINE>org.setLdapDn(nameInNamespace);<NEW_LINE>String[] namePaths = name.replaceAll(",OU=", "/").replaceAll("OU=", "/").split("/");<N... | = "/" + rootOrganization.getName(); |
69,408 | public EdgeLabel readEdgeLabel(HugeGraph graph, BackendEntry backendEntry) {<NEW_LINE>if (backendEntry == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TableBackendEntry entry = this.convertEntry(backendEntry);<NEW_LINE>Number id = schemaColumn(entry, HugeKeys.ID);<NEW_LINE>String name = schemaColumn(entry, HugeKey... | (this.toIdArray(properties)); |
163,037 | public static Renderable documentJavaElement(SourceLinks sourceLinks, IJavaProject project, IJavaElement je) {<NEW_LINE>Builder<Renderable> renderableBuilder = ImmutableList.builder();<NEW_LINE>if (je instanceof IMember) {<NEW_LINE>IMember member = (IMember) je;<NEW_LINE>renderableBuilder.<MASK><NEW_LINE>renderableBuil... | add(Renderables.lineBreak()); |
1,644,050 | public static Dataset<Row> alignLinked(Dataset<Row> dupesActual, Arguments args) {<NEW_LINE>dupesActual = dupesActual.cache();<NEW_LINE>dupesActual = dupesActual.withColumnRenamed(ColName.ID_COL, ColName.CLUSTER_COLUMN);<NEW_LINE>List<Column> cols = new ArrayList<Column>();<NEW_LINE>cols.add(dupesActual.col(ColName.CLU... | .col(ColName.SOURCE_COL)); |
1,762,041 | public void start() throws Exception {<NEW_LINE>Command starwars = CommandBuilder.command("starwars").processHandler(process -> {<NEW_LINE>// Connect the client<NEW_LINE>NetClient client = process.vertx().createNetClient();<NEW_LINE>client.connect(23, "towel.blinkenlights.nl", ar -> {<NEW_LINE>if (ar.succeeded()) {<NEW... | .cause().printStackTrace(); |
175,583 | public Iterator<Edge> queryEdges(Query query) {<NEW_LINE>E.checkArgument(this.removedEdges.isEmpty() || query.noLimit(), "It's not allowed to query with limit when " + "there are uncommitted delete records.");<NEW_LINE>query.resetActualOffset();<NEW_LINE>Iterator<HugeEdge> <MASK><NEW_LINE>results = this.filterUnmatched... | results = this.queryEdgesFromBackend(query); |
440,591 | public ProcessStatus restResetSetting(final PwmRequest pwmRequest) throws IOException, PwmUnrecoverableException {<NEW_LINE>final ConfigManagerBean configManagerBean = getBean(pwmRequest);<NEW_LINE>final StoredConfigurationModifier modifier = StoredConfigurationModifier.newModifier(configManagerBean.getStoredConfigurat... | forRequest(pwmRequest).getDomainIDForLocaleBundle(); |
848,906 | protected void initData() {<NEW_LINE>RxRun.runOn(new RxRunnable<List<UserModel>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public List<UserModel> execute() {<NEW_LINE>List<UserEntity> temp = AppDatabase.getAppDatabase(mContext)<MASK><NEW_LINE>allItems = new ArrayList<>();<NEW_LINE>for (int i = 0; i < temp.size(); i++) ... | .downloadDao().getAllUser(); |
591,142 | public void storeAssignment(final BinaryExpression exp, final VariableScope scope, final ClassNode rhsType) {<NEW_LINE>assert exp.getOperation().isA(Types.ASSIGNMENT_OPERATOR);<NEW_LINE>if (exp instanceof DeclarationExpression) {<NEW_LINE>DeclarationExpression decl = (DeclarationExpression) exp;<NEW_LINE>if (decl.isMul... | Expression lhs = exp.getLeftExpression(); |
1,118,406 | public void onResume(RhodesActivity activity) {<NEW_LINE>Logger.I(TAG, "BarcodeFactoryRhoListener onResume");<NEW_LINE>int myUseDWScanning = 0;<NEW_LINE>IRhoConfig myIRhoConfig = null;<NEW_LINE>IRhoWebView myIRhoWebView = null;<NEW_LINE>try {<NEW_LINE>myIRhoWebView = RhodesActivity.safeGetInstance().getMainView().getWe... | Logger.D(TAG, "BarcodeFactoryRhoListener onResume-Use DW-useDW true-before"); |
1,343,136 | public org.w3c.dom.Node storeEmptyBorder(org.w3c.dom.Document doc) {<NEW_LINE>try {<NEW_LINE>org.w3c.dom.Element el = doc.createElement(XML_EMPTY_BORDER);<NEW_LINE>FormProperty prop = (FormProperty) // NOI18N<NEW_LINE>borderSupport.// NOI18N<NEW_LINE>getPropertyOfName("borderInsets");<NEW_LINE>Object value;<NEW_LINE>if... | .toString(insets.top)); |
559,122 | public boolean isInInterval(IssueScheduleInfo schedule, IssueScheduleInfo restrictionInterval) {<NEW_LINE>if (restrictionInterval == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Calendar scheduleStart = Calendar.getInstance();<NEW_LINE>scheduleStart.setTime(schedule.getDate());<NEW_LINE>Calendar scheduleEnd = Cale... | setTime(restrictionInterval.getDate()); |
377,918 | public static List<RegressionExecution> executions() {<NEW_LINE>List<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new EPLInsertIntoColNonBeanFromSubquerySingle("objectarray", false));<NEW_LINE>execs.add(new EPLInsertIntoColNonBeanFromSubquerySingle("objectarray", true));<NEW_LINE>execs.add(new EPL... | add(new EPLInsertIntoColNonBeanNewOperatorDocSample("objectarray")); |
773,967 | private Referable find(List<? extends Abstract.Pattern> args, Predicate<Referable> pred) {<NEW_LINE>Scope globalScope = null;<NEW_LINE>for (int i = args.size() - 1; i >= 0; i--) {<NEW_LINE>List<? extends Abstract.TypedReferable> asPatterns = args.get(i).getAsPatterns();<NEW_LINE>for (int j = asPatterns.size() - 1; j >=... | resolveName(ref.textRepresentation()); |
617,040 | protected void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>Dimension dim = getSize();<NEW_LINE>Color c1 = UIManager.getColor("Label.disabledShadow");<NEW_LINE>Color c2 = UIManager.getColor("Label.disabledForeground");<NEW_LINE>ComponentOrientation orientation = getComponentOrientation();<NEW... | height - 9, 3, 3); |
1,243,785 | public Description matchVariable(VariableTree tree, VisitorState state) {<NEW_LINE>Type type = ASTHelpers.getType(tree);<NEW_LINE>VarSymbol symbol = ASTHelpers.getSymbol(tree);<NEW_LINE>if (type == null || symbol == null) {<NEW_LINE>return NO_MATCH;<NEW_LINE>}<NEW_LINE>if (symbol.getKind() != ElementKind.PARAMETER) {<N... | .Builder description = buildDescription(tree); |
1,375,455 | private void createBackgroundControl(Composite parent) {<NEW_LINE>// Label<NEW_LINE>createLabel(parent, Messages.SketchModelBackgroundSection_0, ITabbedLayoutConstants.BIG_LABEL_WIDTH, SWT.CENTER);<NEW_LINE>// Combo<NEW_LINE>fComboBackground = new <MASK><NEW_LINE>fComboBackground.setItems(ISketchEditor.BACKGROUNDS);<NE... | Combo(parent, SWT.READ_ONLY); |
1,195,022 | public void visit(SingleFieldDeclaration node) {<NEW_LINE>Expression fieldType = node.getFieldType();<NEW_LINE>if (fieldType != null) {<NEW_LINE>formatTokens.add(new FormatToken(FormatToken.Kind.WHITESPACE_AFTER_TYPE, fieldType.getEndOffset()));<NEW_LINE>}<NEW_LINE>Variable name = node.getName();<NEW_LINE>scan(name);<N... | parent = path.get(1); |
1,469,974 | public ExprEval apply(LambdaExpr lambdaExpr, List<Expr> argsExpr, Expr.ObjectBinding bindings) {<NEW_LINE>List<List<Object>> arrayInputs = new ArrayList<>();<NEW_LINE>boolean hadNull = false;<NEW_LINE>boolean hadEmpty = false;<NEW_LINE>ExpressionType elementType = null;<NEW_LINE>for (Expr expr : argsExpr) {<NEW_LINE>Ex... | (Arrays.asList(array)); |
1,065,667 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View v = inflater.inflate(R.layout.fragment_verticalcontent, container, false);<NEW_LINE>RecyclerView rv = v.findViewById(R.id.vertical_content);<NEW_LINE>final PreCachingLayoutManager mLayoutManager <MASK><NEW_... | = new PreCachingLayoutManager(getActivity()); |
1,201,098 | public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup viewGroup, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.view_key_adv_user_ids_fragment, viewGroup, false);<NEW_LINE>mUserIds = view.findViewById(R.id.view_key_user_ids);<NEW_LINE>mUserIdsAddedList = view.findViewById(R.i... | AbsListView.LayoutParams.MATCH_PARENT, spacing); |
1,641,606 | private List<ResolvedDependencyInfo> resolveAllDependencies(Multimap<String, ResolvedDependencyInfo> dependenciesMap) {<NEW_LINE>List<ResolvedDependencyInfo> allResolvedDependencyInfos = new ArrayList<>();<NEW_LINE>// The post-arbitration dependencies. The structure is the parent class - subclass<NEW_LINE>Multimap<Modu... | parent.getModuleVersionIdentifier(), resolvedDependencyInfo); |
293,874 | public void deleteOrganization(OrganizationBean organization) throws StorageException {<NEW_LINE>try {<NEW_LINE>String orgId = organization.getId().replace('"', '_');<NEW_LINE>BoolQueryBuilder qb = QueryBuilders.boolQuery();<NEW_LINE>List<QueryBuilder> shouldFilter = qb.should();<NEW_LINE>shouldFilter.add(QueryBuilders... | INDEX_MANAGER_POSTFIX_PLAN, INDEX_MANAGER_POSTFIX_PLAN_POLICIES, INDEX_MANAGER_POSTFIX_PLAN_VERSION, INDEX_MANAGER_POSTFIX_ROLE_MEMBERSHIP }; |
1,719,094 | // rejectIt<NEW_LINE>@Override<NEW_LINE>public String completeIt() {<NEW_LINE>// Re-Check<NEW_LINE>if (!m_justPrepared) {<NEW_LINE>String status = prepareIt();<NEW_LINE>if (!IDocument.STATUS_InProgress.equals(status))<NEW_LINE>return status;<NEW_LINE>}<NEW_LINE>m_processMsg = ModelValidationEngine.get().fireDocValidate... | getM_Movement_ID(), get_TrxName()); |
1,801,467 | public void run(TaskMonitor monitor) {<NEW_LINE>Document document = htmlEditorPane.getDocument();<NEW_LINE>try {<NEW_LINE>String screenText = document.getText(0, document.getLength());<NEW_LINE>if (useRegex) {<NEW_LINE>Pattern pattern = Pattern.compile(text, Pattern.CASE_INSENSITIVE | Pattern.DOTALL);<NEW_LINE>Matcher ... | (1D, start, wordOffset)); |
569,731 | public void updateJsxPath(char first, Character second) {<NEW_LINE>assert isInsideJsx();<NEW_LINE>switch(first) {<NEW_LINE>case '<':<NEW_LINE>jsxPath.push(new JsxElement(JsxElement<MASK><NEW_LINE>break;<NEW_LINE>case '>':<NEW_LINE>JsxElement element = jsxPath.isEmpty() ? null : jsxPath.peek();<NEW_LINE>if (element != n... | .Type.TAG, null)); |
1,124,580 | private ESResultSet convertResponse(boolean useLateral) throws SQLException {<NEW_LINE>if (esResponse.getHits().getHits().length == 0 && esResponse.getScrollId() != null) {<NEW_LINE>esResponse = client.prepareSearchScroll(esResponse.getScrollId()).setScroll(new TimeValue(Utils.getIntProp(props, Utils.PROP_SCROLL_TIMEOU... | .execute().actionGet(); |
29,903 | private static ExprAclLine.Builder toIpAccessListLine(ExtendedAccessListLine line) {<NEW_LINE>IpSpace srcIpSpace = line.getSourceAddressSpecifier().toIpSpace();<NEW_LINE>IpSpace dstIpSpace = line.getDestinationAddressSpecifier().toIpSpace();<NEW_LINE>AclLineMatchExpr matchService = line<MASK><NEW_LINE>AclLineMatchExpr ... | .getServiceSpecifier().toAclLineMatchExpr(); |
1,261,149 | protected final void doProcess(final ITemplateContext context, final IProcessableElementTag tag, final AttributeName attributeName, final String attributeValue, final IElementTagStructureHandler structureHandler) {<NEW_LINE>final IStandardExpressionParser expressionParser = StandardExpressions.getExpressionParser(conte... | tag, attributeName, attributeValue, expression); |
488,836 | public static TimeValue parseTimeValue(String sValue, String settingName) {<NEW_LINE>settingName = Objects.requireNonNull(settingName);<NEW_LINE>final String normalized = sValue.toLowerCase(<MASK><NEW_LINE>if (normalized.endsWith("nanos")) {<NEW_LINE>return new TimeValue(parse(sValue, normalized, "nanos"), TimeUnit.NAN... | Locale.ROOT).trim(); |
1,293,091 | public void purgeEnteredUsers() {<NEW_LINE>for (AbstractMap.Entry<String, Meeting> entry : this.meetings.entrySet()) {<NEW_LINE>Long now = System.currentTimeMillis();<NEW_LINE>Meeting meeting = entry.getValue();<NEW_LINE>for (AbstractMap.Entry<String, Long> enteredUser : meeting.getEnteredUsers().entrySet()) {<NEW_LINE... | logData.put("userId", userId); |
35,684 | @Consumes("application/json")<NEW_LINE>public Response addProvJson(String body, @PathParam("id") String idSupplied, @QueryParam("entityName") String entityName) {<NEW_LINE>if (!systemConfig.isProvCollectionEnabled()) {<NEW_LINE>return error(FORBIDDEN, BundleUtil.getStringFromBundle("api.prov.error.provDisabled"));<NEW_... | , BundleUtil.getStringFromBundle("api.prov.error.badDataFileId")); |
1,295,025 | public static <M extends DataFrameClassifier> ClassificationValidation<M> of(Formula formula, DataFrame train, DataFrame test, BiFunction<Formula, DataFrame, M> trainer) {<NEW_LINE>int[] y = formula.y(train).toIntArray();<NEW_LINE>int[] testy = formula.y(test).toIntArray();<NEW_LINE>long start = System.nanoTime();<NEW_... | nanoTime() - start) / 1E6; |
361,932 | public String imei() {<NEW_LINE>char[] str = new char[15];<NEW_LINE>int len = str.length;<NEW_LINE>// Fill in the first two values of the string based with the specified prefix.<NEW_LINE>String arr = faker.options().option(REPORTING_BODY_IDENTIFIERS);<NEW_LINE>str[0] = arr.charAt(0);<NEW_LINE>str[1<MASK><NEW_LINE>// Fi... | ] = arr.charAt(1); |
641,611 | public void run() {<NEW_LINE>String msg_details = MessageText.getString("network.admin.maybe.vpn.msg", new String[] { intf.getName() + " - " + intf.getDisplayName() });<NEW_LINE>long res = ui_manager.showMessageBox("network.admin.maybe.vpn.title", "!" + msg_details + "!", UIManagerEvent.MT_YES | UIManagerEvent.MT_NO_DE... | COConfigurationManager.setParameter("User Mode", 2); |
1,385,641 | protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>response.setContentType("application/json");<NEW_LINE>HttpStatus code = (HttpStatus) model.get("code");<NEW_LINE>if (code == null) {<NEW_LINE>// default to 200<NEW_LINE>code = HttpStatu... | logger.error("IOException in ResourceSetEntityView.java: ", e); |
1,652,987 | public void marshall(CreateBrokerRequest createBrokerRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createBrokerRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createBrokerRequest.getAuth... | createBrokerRequest.getEngineVersion(), ENGINEVERSION_BINDING); |
33,606 | public Problem prepare(RefactoringElementsBag refactoringElements) {<NEW_LINE>if (cancelled) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ModificationResult modificationResult = new ModificationResult();<NEW_LINE>RefactoringContext context = refactoring.getRefactoringSource().lookup(RefactoringContext.class);<NEW_LINE>a... | context, sectionRange.getEnd()); |
1,245,674 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_launch);<NEW_LINE>final String hyperTrackPublicKey = SharedHelper.getInstance(this).getHyperTrackPubKey();<NEW_LINE>if (hyperTrackPublicKey.isEmpty()) {<NEW_LINE>mLoader = new Load... | Branch.getAutoInstance(getApplicationContext()); |
30,916 | public okhttp3.Call subscribeToAlertsCall(AlertsSubscriptionDTO alertsSubscriptionDTO, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = alertsSubscriptionDTO;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/alert-subscriptions";<NEW_LINE>List<Pair> localVa... | localVarHeaderParams.put("Content-Type", localVarContentType); |
1,527,348 | public void resortCachedResults() {<NEW_LINE>if (isFeedingFinished() && this.resortCacheAllowed.tryAcquire()) {<NEW_LINE>this.resultList.requeueDrainedElements();<NEW_LINE>WeakPriorityBlockingQueue.Element<URIMetadataNode> initialLastResult = this.resultList.getLastInQueue();<NEW_LINE>boolean drained = drainSolrStackTo... | = this.resultList.getLastInQueue(); |
1,137,949 | protected void doImport(Composite group) {<NEW_LINE>final FileDialog dialog = new FileDialog(group.getShell(), SWT.OPEN);<NEW_LINE>dialog.setText(FormatterMessages.AbstractFormatterSelectionBlock_importProfileLabel);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>dialog.setFilterExtensions(new String[] { "*.xml" });<NEW_LINE>final <... | String path = dialog.open(); |
411,047 | public void handleDecode(Result rawResult, Bitmap barcode) {<NEW_LINE>inactivityTimer.onActivity();<NEW_LINE>lastResult = rawResult;<NEW_LINE>ResultHandler resultHandler = ResultHandlerFactory.makeResultHandler(this, rawResult);<NEW_LINE>boolean fromLiveScan = barcode != null;<NEW_LINE>if (fromLiveScan) {<NEW_LINE>hist... | handleDecodeInternally(rawResult, resultHandler, barcode); |
275,091 | private static void sub(final int[] result, final int[] x, final int[] y) {<NEW_LINE>int index;<NEW_LINE>int borrow;<NEW_LINE>// Subtract y from x to generate the intermediate result.<NEW_LINE>borrow = 0;<NEW_LINE>for (index = 0; index < NUM_LIMBS_255BIT; ++index) {<NEW_LINE>borrow = x[index] - y[index] - ((<MASK><NEW_... | borrow >> 26) & 0x01); |
963,623 | private Problem checkProjectDeps(FileObject sourceFile, FileObject targetFile) {<NEW_LINE>Set<FileObject> sourceRoots = new HashSet<FileObject>();<NEW_LINE>ClassPath cp = ClassPath.getClassPath(sourceFile, ClassPath.SOURCE);<NEW_LINE>if (cp != null) {<NEW_LINE>FileObject root = cp.findOwnerRoot(sourceFile);<NEW_LINE>so... | sourceProject = FileOwnerQuery.getOwner(sourceRoot); |
749,755 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see org.openhab.binding.rwesmarthome.internal.communicator.client.RWEClient#execute(java.lang.String,<NEW_LINE>* java.lang.String)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public String execute(String hostname, String clientId, String request, String command) throws IOE... | "Response: " + response.toString()); |
516,143 | public boolean place(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) {<NEW_LINE>this.getLevel().setBlock(block, this, true, true);<NEW_LINE>CompoundTag nbt = new CompoundTag().putString("id", BlockEntity.ENCHANT_TABLE).putInt("x", (int) this.x).putInt("y", (int) thi... | , (int) this.z); |
392,071 | public HashMap searchWithLuceneQuery(String structureType, String luceneCondition, String sortBy, int maxResults, int page, int pageSize) throws DotSecurityException, DotStateException, DotDataException {<NEW_LINE>String structInode = "";<NEW_LINE>Structure structure = null;<NEW_LINE>try {<NEW_LINE>structInode = struct... | = (page - 1) * pageSize; |
1,263,860 | private URL copyAppletHTML(FileObject file, String ext) {<NEW_LINE>URL url = null;<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>String buildDirProp = evaluator.getProperty("build.dir");<NEW_LINE>FileObject buildDir = buildDirProp != null ? updateHelper.getAntProjectHelper().resolveFileObject(buildDirProp) : null;<NEW_LIN... | getDefault().notify(ioe); |
737,319 | public void invoke(Request request, Response response) throws IOException, ServletException {<NEW_LINE>if (isOff) {<NEW_LINE>String msg = rb.getString(LogFacade.VS_VALVE_OFF);<NEW_LINE>msg = MessageFormat.format(msg, new Object[] { vs.getName() });<NEW_LINE>if (logger.isLoggable(Level.FINE)) {<NEW_LINE>logger.log(Level... | sendError(HttpServletResponse.SC_FORBIDDEN, msg); |
1,212,038 | final ImportHypervisorConfigurationResult executeImportHypervisorConfiguration(ImportHypervisorConfigurationRequest importHypervisorConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importHypervisorConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | false), new ImportHypervisorConfigurationResultJsonUnmarshaller()); |
218,607 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (shopType_ != 0) {<NEW_LINE>output.writeUInt32(1, shopType_);<NEW_LINE>}<NEW_LINE>for (int i = 0; i < goodsList_.size(); i++) {<NEW_LINE>output.writeMessage(2, goodsList_.get(i));<NEW_LINE>}<NEW_LINE>for (int i = ... | , mcoinProductList_.get(i)); |
1,001,141 | public static void horizontal(Kernel1D_S32 kernel, GrayS16 input, GrayI16 output, int skip, int divisor) {<NEW_LINE>final short[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int[] dataKer = kernel.data;<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int kernelWidth... | UtilDownConvolve.computeOffset(skip, offset); |
262,209 | private boolean download() throws Exception {<NEW_LINE>LOG.trace("Beginning download {} after {}", artifactDownloadRequest, JavaUtils.duration(start));<NEW_LINE>if (continuation.isExpired()) {<NEW_LINE>LOG.trace("Continuation expired for {}, aborting...", artifactDownloadRequest.getTargetDirectory());<NEW_LINE>return f... | getS3Artifact().getFilename()); |
344,582 | public int add(long user, long item, double pref) {<NEW_LINE>assert users != null;<NEW_LINE>assert items != null;<NEW_LINE>assert values != null;<NEW_LINE>assert users.length == items.length;<NEW_LINE>assert values.length == users.length;<NEW_LINE>final int idx = freeList.isEmpty() ? nprefs : freeList.dequeueInt();<NEW... | final int ci = chunk(idx); |
626,778 | private static boolean addVolumes(VolumeManager fs, InitialConfiguration initConfig, ServerDirs serverDirs) {<NEW_LINE>var hadoopConf = initConfig.getHadoopConf();<NEW_LINE>var siteConfig = initConfig.getSiteConf();<NEW_LINE>Set<String> volumeURIs = VolumeConfiguration.getVolumeUris(siteConfig);<NEW_LINE>Set<String> in... | log.error("Problem getting accumulo data version", e); |
790,302 | protected void processRemaining(ByteBuffer bb) {<NEW_LINE>long k1 = 0;<NEW_LINE>long k2 = 0;<NEW_LINE>length += bb.remaining();<NEW_LINE>switch(bb.remaining()) {<NEW_LINE>case 15:<NEW_LINE>// fall through<NEW_LINE>k2 ^= (long) toInt(bb<MASK><NEW_LINE>case 14:<NEW_LINE>// fall through<NEW_LINE>k2 ^= (long) toInt(bb.get(... | .get(14)) << 48; |
545,566 | public boolean removeRealm(String id) {<NEW_LINE>RealmEntity realm = em.find(RealmEntity.class, id, LockModeType.PESSIMISTIC_WRITE);<NEW_LINE>if (realm == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>em.refresh(realm);<NEW_LINE>final RealmAdapter adapter = new RealmAdapter(session, em, realm);<NEW_LINE>session.us... | "realm", realm).executeUpdate(); |
1,094,082 | private Expression templateLiteral(boolean yield, boolean await) {<NEW_LINE><MASK><NEW_LINE>final boolean noSubstitutionTemplate = type == TEMPLATE;<NEW_LINE>final long startToken = token;<NEW_LINE>boolean previousPauseOnRightBrace = lexer.pauseOnRightBrace;<NEW_LINE>try {<NEW_LINE>lexer.pauseOnRightBrace = true;<NEW_L... | assert type == TEMPLATE || type == TEMPLATE_HEAD; |
77,811 | public void onPlayerTick(@Nonnull ItemStack helm, @Nonnull IDarkSteelItem item, @Nonnull EntityPlayer player) {<NEW_LINE>// no processing on client<NEW_LINE>if (player.world.isRemote) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!player.world.canBlockSeeSky(new BlockPos(MathHelper.floor(player.posX), MathHelper.floor(pla... | = (nextIndex + 1) % 4; |
408,625 | public static IsisRoute.Builder convertNonIsisRouteToIsisRoute(AbstractRoute route, IsisProcess process, boolean isLevel1, Configuration c) {<NEW_LINE>assert !(route instanceof IsisRoute);<NEW_LINE>RoutingProtocol protocol = isLevel1 ? RoutingProtocol.ISIS_EL1 : RoutingProtocol.ISIS_EL2;<NEW_LINE>return IsisRoute.build... | ()).setNonRouting(true); |
1,851,424 | /* (non-Javadoc)<NEW_LINE>* @see com.ibm.ws.sib.processor.impl.interfaces.UpstreamControl#sendRequestFlushMessage(com.ibm.ws.sib.trm.topology.Cellule, long, com.ibm.ws.sib.utils.SIBUuid12)<NEW_LINE>*/<NEW_LINE>public void sendRequestFlushMessage(SIBUuid8 meUuid, SIBUuid12 destUuid, SIBUuid8 busUuid, long queryID, SIBUu... | "com.ibm.ws.sib.processor.impl.PubSubOutputHandler", "1:1804:1.164.1.5" }, null)); |
256,483 | <K> void serializeIndexValue(@Nonnull DataOutput out, @Nonnull StubIndexKey<K, ?> stubIndexKey, @Nonnull Map<K, StubIdList> map) throws IOException {<NEW_LINE>UpdatableIndex<K, Void, FileContent> index = getIndex(stubIndexKey);<NEW_LINE>if (index == null)<NEW_LINE>return;<NEW_LINE>KeyDescriptor<K> keyDescriptor = index... | keyDescriptor.save(indexDos, key); |
64,535 | public static RayTraceResult fromNMS(World world, HitResult nmsHitResult) {<NEW_LINE>if (nmsHitResult == null || nmsHitResult.getType() == Type.MISS)<NEW_LINE>return null;<NEW_LINE>Vec3d nmsHitPos = nmsHitResult.getPos();<NEW_LINE>Vector hitPosition = new Vector(nmsHitPos.x, nmsHitPos.y, nmsHitPos.z);<NEW_LINE>BlockFac... | RayTraceResult(hitPosition, hitEntity, null); |
588,197 | public void mapPartition(Iterable<Tuple2<Integer, Row>> values, Collector<Row> out) {<NEW_LINE>final ArrayList<Tuple2<Integer, FloatTensor>> tensors = new ArrayList<>();<NEW_LINE>for (Tuple2<Integer, Row> val : values) {<NEW_LINE>tensors.add(Tuple2.of(val.f0, FloatTensor.of(TensorUtil.getTensor(val.f1.getField(colIndex... | (o -> o.f0)); |
1,341,124 | public void onShowCustomView(View view, CustomViewCallback callback) {<NEW_LINE>AppLog.i(AppLog.T.READER, "onShowCustomView");<NEW_LINE>if (mCustomView != null) {<NEW_LINE>AppLog.w(AppLog.T.READER, "customView already showing");<NEW_LINE>onHideCustomView();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// hide the post detail c... | .getCustomViewListener().onCustomViewShown(); |
410,636 | public static void main(String[] args) {<NEW_LINE>String fileName = UtilIO.pathExample("background/highway_bridge_jitter.mp4");<NEW_LINE>ImageType type = ImageType.pl(3, GrayU8.class);<NEW_LINE>// ImageType type = ImageType.single(GrayU8.class);<NEW_LINE>// ImageType type = ImageType.pl(3, GrayF32.class);<NEW_LINE>// I... | convertTo(frame, out, false); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.