idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
359,486 | private String constructImportStatement(Map.Entry<String, BImport> importEntry) {<NEW_LINE>String orgName = importEntry.getValue().getResolvedSymbol().id().orgName();<NEW_LINE>// If the import belongs to a module inside the current package, replace the original org name name with<NEW_LINE>// temporary evaluation projec... | .add(moduleNameParts[i]); |
1,759,758 | public static void copyProcessorPropertiesIfNotNull(ProcessorProperties source, ProcessorProperties target) {<NEW_LINE>PropertyMapper propertyMapper = new PropertyMapper();<NEW_LINE>propertyMapper.from(source.getDomainName()).to(target::setDomainName);<NEW_LINE>propertyMapper.from(source.getNamespace()).to(target::setN... | target.getBatch()::setMaxWaitTime); |
97,732 | public void run() {<NEW_LINE>JThemePreferenceStore store = getStore();<NEW_LINE>IJTPresetManager presetManager = JThemesCore.getDefault().getPresetManager();<NEW_LINE>Properties properties = PropertiesUtil.merge(presetManager.getDefaultPreset().getProperties(), preset.getProperties());<NEW_LINE>for (Object keyObj : pro... | setTheme(JThemesCore.CUSTOM_THEME_ID, true); |
1,349,417 | public double f(DenseMatrix coef) {<NEW_LINE>if (coef.numRows() != p + q) {<NEW_LINE>throw new RuntimeException("Error!coef is not comparable with the model");<NEW_LINE>}<NEW_LINE>double[] arCoef = new double[p];<NEW_LINE>double[<MASK><NEW_LINE>for (int i = 0; i < this.p; i++) {<NEW_LINE>arCoef[i] = coef.get(i, 0);<NEW... | ] maCoef = new double[q]; |
916,923 | public Builder mergeFrom(com.didiglobal.booster.aapt2.Resources.Array other) {<NEW_LINE>if (other == com.didiglobal.booster.aapt2.Resources.Array.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (elementBuilder_ == null) {<NEW_LINE>if (!other.element_.isEmpty()) {<NEW_LINE>if (element_.isEmpty()) {<NEW_LINE>elem... | .alwaysUseFieldBuilders ? getElementFieldBuilder() : null; |
1,448,975 | private void buildMoreTryStatementCompletionContext(TypeReference exceptionRef) {<NEW_LINE>if (this.astLengthPtr > 0 && this.astPtr > 2 && this.astStack[this.astPtr - 1] instanceof Block && this.astStack[this.astPtr - 2] instanceof Argument) {<NEW_LINE>TryStatement tryStatement = new TryStatement();<NEW_LINE>int newAst... | astLengthStack[this.astLengthPtr - 1]; |
571,497 | public static List<CAddressSpace> loadAddressSpaces(final AbstractSQLProvider provider, final INaviProject project, final DebuggerTemplateManager debuggerManager, final List<INaviModule> list) throws CouldntLoadDataException {<NEW_LINE>checkArguments(provider, project);<NEW_LINE>Preconditions.checkNotNull(debuggerManag... | PostgreSQLHelpers.readString(resultSet, "description"); |
470,828 | static void doIndent(final int endIndex, final int startIndex, final Document document, final Project project, final Editor editor, final int blockIndent) {<NEW_LINE>final int[] caretOffset = { editor.getCaretModel().getOffset() };<NEW_LINE>boolean bulkMode = endIndex - startIndex > 50;<NEW_LINE>DocumentUtil.executeInB... | (project).getPsiFile(document); |
1,063,449 | public static List<Header> createRequestHeaders(Metadata headers, String defaultPath, String authority, String userAgent, boolean useGet, boolean usePlaintext) {<NEW_LINE>Preconditions.checkNotNull(headers, "headers");<NEW_LINE>Preconditions.checkNotNull(defaultPath, "defaultPath");<NEW_LINE>Preconditions.checkNotNull(... | .of(serializedHeaders[i]); |
601,862 | private void invocation(RESTRequest request, RESTResponse response) {<NEW_LINE>RESTHelper.ensureConsumesJson(request);<NEW_LINE>String objectName = RESTHelper.getRequiredParam(request, APIConstants.PARAM_OBJECT_NAME);<NEW_LINE>String operation = RESTHelper.getRequiredParam(request, APIConstants.PARAM_OPERATION);<NEW_LI... | e, converter, APIConstants.STATUS_BAD_REQUEST); |
227,932 | public Object invoke(final MethodInvocation invocation) throws Throwable {<NEW_LINE>final ResultHolder result = new ResultHolder();<NEW_LINE>// Cache void return value if intercepted method returns void<NEW_LINE>final boolean voidReturnType = Void.TYPE.equals(invocation.getMethod().getReturnType());<NEW_LINE>if (voidRe... | IllegalStateException("No result available for attempted repeat call to " + invocation + ". The invocation was never called, so maybe there is a problem with the completion policy?"); |
249,964 | public static DescribeVsUpPeakPublishStreamDataResponse unmarshall(DescribeVsUpPeakPublishStreamDataResponse describeVsUpPeakPublishStreamDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVsUpPeakPublishStreamDataResponse.setRequestId(_ctx.stringValue("DescribeVsUpPeakPublishStreamDataResponse.RequestId"));<NE... | ("DescribeVsUpPeakPublishStreamDataResponse.DescribeVsUpPeakPublishStreamDatas[" + i + "].QueryTime")); |
1,246,338 | final UpdateResponseHeadersPolicyResult executeUpdateResponseHeadersPolicy(UpdateResponseHeadersPolicyRequest updateResponseHeadersPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateResponseHeadersPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | invoke(request, responseHandler, executionContext); |
1,664,172 | public Mono<Response<FunctionSecretsInner>> listSyncFunctionTriggersWithResponseAsync(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... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
706,308 | public static void translateCxxPlatformFlags(CxxPlatform.Builder cxxPlatformBuilder, CxxPlatform cxxPlatform, ImmutableMap<String, Arg> flagMacros) {<NEW_LINE>Function<Arg, Arg> translateFunction = new CxxFlags.TranslateMacrosArgsFunction(ImmutableSortedMap.copyOf(flagMacros));<NEW_LINE>Function<ImmutableList<Arg>, Imm... | (cxxPlatform.getCxxflags())); |
780,989 | private boolean pushItems(GlowBlock block, HopperEntity hopper) {<NEW_LINE>if (hopper.getInventory() == null || hopper.getInventory().getContents().length == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>GlowBlock target = block.getRelative(((Hopper) block.getState().getData()).getFacing());<NEW_LINE>if (target.getTy... | getInventory().remove(item); |
271,901 | private void removeFromStereotypes(String annotationType, Map<String, Map<CharSequence, Object>> declaredAnnotations) {<NEW_LINE>if (annotationsByStereotype != null) {<NEW_LINE>final Iterator<Map.Entry<String, List<String>>> i = annotationsByStereotype.entrySet().iterator();<NEW_LINE>Set<String> toBeRemoved = Collectio... | this.declaredStereotypes.remove(stereotypeName); |
1,075,398 | protected void init(double[] x, double[] y) {<NEW_LINE>if (x.length != y.length) {<NEW_LINE>// Arrays must have the same length<NEW_LINE>// TODO log something<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (x.length < 2) {<NEW_LINE>// Spline edges must have at least two points<NEW_LINE>// TODO log something<NEW_LINE>return;<N... | .length) - 1] = 1.0; |
1,233,525 | private void checkProperties(Map<String, String> properties) throws AnalysisException {<NEW_LINE>this.columnSeparator = PropertyAnalyzer.analyzeColumnSeparator(properties, ExportStmt.DEFAULT_COLUMN_SEPARATOR);<NEW_LINE>this.columnSeparator = <MASK><NEW_LINE>this.rowDelimiter = PropertyAnalyzer.analyzeRowDelimiter(prope... | Delimiter.convertDelimiter(this.columnSeparator); |
297,096 | public void testSecurityContextPropagatesWSSubjectCreatedByApp() throws Exception {<NEW_LINE>Subject subject = new Subject();<NEW_LINE>subject.setReadOnly();<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>CompletableFuture<Subject> cf = (//<NEW_LINE>CompletableFuture<Subject>) //<NEW_LINE>WSSubject.doAs(subject, (Pri... | getSubject(AccessController.getContext()); |
715,808 | protected void assertSnapshotIsolationAllowed(final JsonNode config, final JdbcDatabase database) throws SQLException {<NEW_LINE>final List<JsonNode> queryResponse = database.unsafeQuery(connection -> {<NEW_LINE>final String sql = "SELECT name, snapshot_isolation_state FROM sys.databases WHERE name = ?";<NEW_LINE>final... | ps = connection.prepareStatement(sql); |
603,613 | private void parseTypeNode(CanInclude include, int i, JsonNode typeNode) throws QueryException {<NEW_LINE>String identifier = i == -1 ? "type" : "\\types\"[" + i + "]";<NEW_LINE>if (typeNode.isTextual()) {<NEW_LINE>EClass eClass = packageMetaData.getEClassIncludingDependencies(typeNode.asText());<NEW_LINE>if (eClass ==... | (excludeNode.asText())); |
15,839 | private void saveFilter() {<NEW_LINE>final OsmandApplication app = getMyApplication();<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(getContext());<NEW_LINE>builder.setTitle(R.string.access_hint_enter_name);<NEW_LINE>final EditText editText = new EditText(getContext());<NEW_LINE>editText.setHint(R.stri... | = new LinearLayout(getContext()); |
1,783,601 | public static WSStackVersion parseVersion(String version) {<NEW_LINE>int major = 0;<NEW_LINE>int minor = 0;<NEW_LINE>int micro = 0;<NEW_LINE>int update = 0;<NEW_LINE>int tokenPosition = 0;<NEW_LINE>// NOI18N<NEW_LINE>StringTokenizer versionTokens = new StringTokenizer(version, ".");<NEW_LINE>List<Integer> versionNumber... | minor = versionNumbers.get(1); |
442,430 | private void pushMessageInternel(PushMessage pushMessage, String deviceId, String pushContent) {<NEW_LINE>if (pushMessage.pushMessageType == PushMessageType.PUSH_MESSAGE_TYPE_NORMAL && StringUtil.isNullOrEmpty(pushContent)) {<NEW_LINE>LOG.info("push content empty, deviceId {}", deviceId);<NEW_LINE>return;<NEW_LINE>}<NE... | LOG.warn("Device token is empty for device {}", deviceId); |
1,080,502 | public void apply(final Project project) {<NEW_LINE>final TaskContainer tasks = project.getTasks();<NEW_LINE>// static classes are used for the actions to avoid implicitly dragging project/tasks into the model registry<NEW_LINE>String projectName = project.toString();<NEW_LINE>tasks.register(ProjectInternal.HELP_TASK, ... | class, new DependencyReportTaskAction(projectName)); |
903,870 | public Result implement(EnumerableRelImplementor implementor, Prefer pref) {<NEW_LINE>final BlockBuilder builder = new BlockBuilder();<NEW_LINE>final Result leftResult = implementor.visitChild(this, 0<MASK><NEW_LINE>Expression leftExpression = builder.append("left", leftResult.block);<NEW_LINE>final BlockBuilder corrBl... | , (EnumerableRel) left, pref); |
932,827 | public static void systemShare(Context context, File file) {<NEW_LINE>if (file == null || !file.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Intent intent = new Intent(Intent.ACTION_SEND);<NEW_LINE>intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);<NEW_LINE>intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);<NEW_L... | "The selected file can't be shared: " + file.toString()); |
1,359,200 | /* (non-Javadoc)<NEW_LINE>* @see javax.servlet.http.HttpServlet#service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>... | this.prepareResponse(response, conn); |
1,484,560 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "theString" };<NEW_LINE><MASK><NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.sendEventBean(new SupportBean("E1", 1));<NEW_LINE>env.assertPropsPerRowIRPairFlattened("s0", fields, new Object[][] { { "E1" } }, null);<N... | String epl = "@name('s0') create window NW#expr(sum(intPrimitive) < 10) as SupportBean;\n" + "insert into NW select * from SupportBean;\n" + "on SupportBean_A delete from NW where theString = id;\n"; |
1,019,247 | public static String parseKeyStroke(KeyStroke keyStroke) {<NEW_LINE>if (keyStroke == null) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>final String keyPressSuffix = "-P";<NEW_LINE>String keyString = keyStroke.toString();<NEW_LINE>int type = keyStroke.getKeyEventType();<NEW_LINE>if (type == KeyEvent.KEY_TYPED) {<NEW_LINE>... | insert(0, ALT + MODIFIER_SEPARATOR); |
1,636,442 | public static Pair<GutterIconRenderer, Object> findSelectedBreakpoint(@Nonnull final Project project, @Nonnull final Editor editor) {<NEW_LINE>int offset = editor.getCaretModel().getOffset();<NEW_LINE>Document editorDocument = editor.getDocument();<NEW_LINE>List<DebuggerSupport<MASK><NEW_LINE>for (DebuggerSupport debug... | > debuggerSupports = DebuggerSupport.getDebuggerSupports(); |
1,487,340 | protected void consumeLambdaExpression() {<NEW_LINE>// LambdaExpression ::= LambdaHeader LambdaBody<NEW_LINE>this.nestedType--;<NEW_LINE>// pop length for LambdaBody (always 1)<NEW_LINE>this.astLengthPtr--;<NEW_LINE>Statement body = (Statement) this.astStack[this.astPtr--];<NEW_LINE>if (body instanceof Block) {<NEW_LIN... | [length], 0, length); |
203,375 | public void runChecks() {<NEW_LINE>if (!ocf.hasEntry(path)) {<NEW_LINE>report.message(MessageId.RSC_001, EPUBLocation.create(this.ocf.getName()), path);<NEW_LINE>} else if (!ocf.canDecrypt(path)) {<NEW_LINE>report.message(MessageId.RSC_004, EPUBLocation.create(this.ocf.getName()), path);<NEW_LINE>} else {<NEW_LINE>Inpu... | .getName()), path); |
1,401,027 | public Answer execute(final UpgradeSnapshotCommand command, final CitrixResourceBase citrixResourceBase) {<NEW_LINE>final String secondaryStorageUrl = command.getSecondaryStorageUrl();<NEW_LINE>final String backedUpSnapshotUuid = command.getSnapshotUuid();<NEW_LINE>final Long volumeId = command.getVolumeId();<NEW_LINE>... | + ":" + uri.getPath(); |
233,541 | public static boolean evaluateLogic(Evaluatee source, String logic) {<NEW_LINE>// Conditional<NEW_LINE>StringTokenizer st = new StringTokenizer(logic.trim(), "&|", true);<NEW_LINE>int it = st.countTokens();<NEW_LINE>if (// only uneven arguments<NEW_LINE>((it / 2) - ((it + 1) / 2)) == 0) {<NEW_LINE>s_log.severe("Logic d... | .nextToken().trim(); |
745,744 | public void onOpen(Session session, EndpointConfig arg1) {<NEW_LINE>final Session sess = session;<NEW_LINE>session.addMessageHandler(String.class, new MessageHandler.Whole<String>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onMessage(String text) {<NEW_LINE>_wtr.addMessage(text);<NEW_LINE>if (_wtr.limitReache... | getBasicRemote().sendText(s); |
167,586 | protected STATUS postAbstractInit(final PwmApplication pwmApplication, final DomainID domainID) throws PwmException {<NEW_LINE>try {<NEW_LINE>userCacheService = new ReportRecordLocalDBStorageService();<NEW_LINE>userCacheService.init(this.getPwmApplication(), domainID);<NEW_LINE>} catch (final Exception e) {<NEW_LINE>LO... | .submit(new InitializationTask()); |
1,086,841 | public okhttp3.Call connectOptionsNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/nodes/{name}/proxy/{path}".replaceAll("\\{" + "nam... | HashMap<String, String>(); |
1,618,678 | private void analyzeField(SootField sf) {<NEW_LINE>// from all bodies get all use boxes and eliminate used fields<NEW_LINE>Iterator classesIt = Scene.v().getApplicationClasses().iterator();<NEW_LINE>while (classesIt.hasNext()) {<NEW_LINE>SootClass appClass = (SootClass) classesIt.next();<NEW_LINE>Iterator mIt = appClas... | .getUseBoxes().iterator(); |
143,731 | public static ZonedDateTime asDateTime(String dateFormat) {<NEW_LINE>// Find the first `-` date separator<NEW_LINE>int <MASK><NEW_LINE>if (separatorIdx == 0) {<NEW_LINE>// first char = `-` denotes a negative year<NEW_LINE>// Find the first `-` date separator past the negative year<NEW_LINE>separatorIdx = dateFormat.ind... | separatorIdx = dateFormat.indexOf('-'); |
156,150 | public DescribeConnectionsOnInterconnectResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeConnectionsOnInterconnectResult describeConnectionsOnInterconnectResult = new DescribeConnectionsOnInterconnectResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurren... | int originalDepth = context.getCurrentDepth(); |
659,727 | public boolean analyze(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log) throws Exception {<NEW_LINE>OatHeader header = null;<NEW_LINE>try {<NEW_LINE>BinaryReader reader = OatUtilities.getBinaryReader(program);<NEW_LINE>header = OatHeaderFactory.newOatHeader(reader);<NEW_LINE>OatHeaderFactory.pa... | getLanguage().isBigEndian()); |
233,369 | private void waitOnAllTransitionNames(@NonNull final View to, @NonNull final OnTransitionPreparedListener onTransitionPreparedListener) {<NEW_LINE>OnPreDrawListener onPreDrawListener = new OnPreDrawListener() {<NEW_LINE><NEW_LINE>boolean addedSubviewListeners;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean onPreD... | to, foundViews, this, onTransitionPreparedListener); |
1,204,828 | public void onError(Throwable t) {<NEW_LINE>if (this.done) {<NEW_LINE>logger.debug("Dropped error", t);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Subscription currentSubscription = this.s;<NEW_LINE>if (currentSubscription == Operators.cancelledSubscription() || !S.compareAndSet(this, currentSubscription, Operators.can... | streamId, FrameType.REQUEST_RESPONSE, t); |
1,485,256 | // @see SWTSkinObjectBasic#paintControl(org.eclipse.swt.graphics.GC)<NEW_LINE>@Override<NEW_LINE>public void paintControl(GC gc) {<NEW_LINE>super.paintControl(gc);<NEW_LINE>int fullWidth = maxSize.x == 0 || imageFGbounds == null ? canvas.getClientArea<MASK><NEW_LINE>if (percent > 0 && imageFG != null) {<NEW_LINE>int xD... | ().width : imageFGbounds.width; |
1,601,457 | public void build() {<NEW_LINE>// final String[] messTexts =<NEW_LINE>// { "ConfigView.section.mode.beginner.wiki.definitions",<NEW_LINE>// "ConfigView.section.mode.intermediate.wiki.host",<NEW_LINE>// "ConfigView.section.mode.advanced.wiki.main",<NEW_LINE>// };<NEW_LINE>final String[] links = { Wiki.MODE_BEGINNER, <MA... | Wiki.MODE_INTERMEDIATE, Wiki.MODE_ADVANCED }; |
867,007 | private RSVP createMessage() {<NEW_LINE>String eventId = Math.abs(ThreadLocalRandom.current().nextLong()) + "";<NEW_LINE><MASK><NEW_LINE>json.put("venue_name", "venue_name" + ThreadLocalRandom.current().nextInt());<NEW_LINE>json.put("event_name", "event_name" + ThreadLocalRandom.current().nextInt());<NEW_LINE>json.put(... | ObjectNode json = JsonUtils.newObjectNode(); |
672,438 | public void blur(Node node, int duration, double brightness, boolean removeNode, double blurRadius) {<NEW_LINE>if (removeEffectTimeLine != null)<NEW_LINE>removeEffectTimeLine.stop();<NEW_LINE>node.setMouseTransparent(true);<NEW_LINE>GaussianBlur blur = new GaussianBlur(0.0);<NEW_LINE>Timeline timeline = new Timeline();... | darken.brightnessProperty(), brightness); |
1,333,996 | public List<Feature> bind(StructType schema) {<NEW_LINE>List<Feature> features = new ArrayList<>();<NEW_LINE>for (Feature feature : x.bind(schema)) {<NEW_LINE>StructField xfield = feature.field();<NEW_LINE>DataType type = xfield.type;<NEW_LINE>if (!(type.isDouble() || type.isFloat() || type.isInt() || type.isLong() || ... | y = feature.apply(o); |
1,414,587 | private void handleVkOptions(int id) {<NEW_LINE>if (id == R.id.action_layout_edit_mode) {<NEW_LINE>keyboard.setLayoutEditMode(VirtualKeyboard.LAYOUT_KEYS);<NEW_LINE>Toast.makeText(this, R.string.layout_edit_mode, <MASK><NEW_LINE>} else if (id == R.id.action_layout_scale_mode) {<NEW_LINE>keyboard.setLayoutEditMode(Virtu... | Toast.LENGTH_SHORT).show(); |
1,471,734 | public void processNewResult(Object result) {<NEW_LINE>SetDBIDs positiveids = DBIDUtil.ensureSet(DatabaseUtil.getObjectsByLabelMatch(ResultUtil.findDatabase(result), positiveClassName));<NEW_LINE>if (positiveids.size() == 0) {<NEW_LINE>LOG.warning("Computing a P/R curve failed - no objects matched.");<NEW_LINE>return;<... | remove(o.getOrdering()); |
934,660 | public void beforeTemplateFinished(final TemplateState templateState, Template template) {<NEW_LINE>try {<NEW_LINE>final TextResult value = templateState.getVariableValue(PRIMARY_VARIABLE_NAME);<NEW_LINE>myInsertedName = value != null ? value.toString() : null;<NEW_LINE>TextRange range = templateState.getCurrentVariabl... | ), myRenameOffset.getEndOffset()); |
821,530 | // Method 1<NEW_LINE>private String longestCommonSubstringMethod1(String fileName1, String fileName2) {<NEW_LINE>String fileContent1 = getStringTextFromFile(fileName1);<NEW_LINE>String fileContent2 = getStringTextFromFile(fileName2);<NEW_LINE>char inexistentCharacter = getInexistentCharacter(fileContent1, fileContent2)... | int text1Length = fileContent1.length(); |
1,019,964 | protected void deleteAllEncryptionKeys() {<NEW_LINE>Context appContext = ApplicationProvider.getApplicationContext();<NEW_LINE>appContext.getSharedPreferences("com.amazonaws.android.auth.encryptionkey", Context.MODE_PRIVATE).edit().clear().apply();<NEW_LINE>appContext.getSharedPreferences("CognitoIdentityProviderCache.... | > keyAliases = keyStore.aliases(); |
1,649,452 | public void show(Node ownerNode, double anchorX, double anchorY) {<NEW_LINE>// if tooltip hide animation still running, then hide method is not called yet<NEW_LINE>// thus only reverse the animation to show the tooltip again<NEW_LINE>hiding = false;<NEW_LINE>final Bounds sceneBounds = ownerNode.localToScene(ownerNode.g... | show(ownerNode, anchorX, anchorY); |
955,908 | private Map<String, Object> toMap(Xpp3Dom node) {<NEW_LINE>Map<String, Object> map = new LinkedHashMap<>();<NEW_LINE>int n = node.getChildCount();<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>Xpp3Dom child = node.getChild(i);<NEW_LINE>String childName = child.getName();<NEW_LINE>String singularName = null;<NEW_LINE>... | getChild(j).getName(); |
1,728,568 | protected void showThisTabWindow(Screen screen) {<NEW_LINE>WebAppWorkArea workArea = getConfiguredWorkArea();<NEW_LINE>workArea.switchTo(AppWorkArea.State.WINDOW_CONTAINER);<NEW_LINE>TabWindowContainer windowContainer;<NEW_LINE>if (workArea.getMode() == Mode.TABBED) {<NEW_LINE>TabSheetBehaviour tabSheet = workArea.getT... | (WebWindow) screen.getWindow(); |
966,582 | public Webhook createTenantWebhook(CreateWebhookRequest body, String xSdsDateFormat, String xSdsServiceToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required par... | localVarAuthNames = new String[] {}; |
1,722,442 | private void updateZoneState(boolean forceUpdate) {<NEW_LINE>TadoHomeHandler home = getHomeHandler();<NEW_LINE>if (home != null) {<NEW_LINE>home.updateHomeState();<NEW_LINE>}<NEW_LINE>// No update during HVAC change debounce<NEW_LINE>if (!forceUpdate && scheduledHvacChange != null && !scheduledHvacChange.isDone()) {<NE... | CHANNEL_ZONE_HORIZONTAL_SWING, state.getHorizontalSwing()); |
1,547,211 | public void collectExpressions(Component component, JRExpressionCollector collector) {<NEW_LINE>TableComponent table = (TableComponent) component;<NEW_LINE>JRDatasetRun datasetRun = table.getDatasetRun();<NEW_LINE>collector.collect(datasetRun);<NEW_LINE>JRExpressionCollector datasetCollector = collector.getDatasetColle... | collectRow(table.getColumnFooter()); |
1,561,340 | private static DiskStats queryReadWriteStats(String index) {<NEW_LINE>// Create object to hold and return results<NEW_LINE>DiskStats stats = new DiskStats();<NEW_LINE>Pair<List<String>, Map<PhysicalDiskProperty, List<Long>>> instanceValuePair = PhysicalDisk.queryDiskCounters();<NEW_LINE>List<String> instances = instanc... | (instances.get(i)); |
1,430,194 | private void rehash(final int newCapacity) {<NEW_LINE>final int mask = newCapacity - 1;<NEW_LINE>resizeThreshold = (int) (newCapacity * loadFactor);<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>final K[] tempKeys = (K[]) new Object[newCapacity];<NEW_LINE>final long[] tempValues = new long[newCapacity];<NEW_LINE>Arr... | final long value = values[i]; |
1,614,419 | public void show(DigestModel model, long stime, long etime, int serverId) {<NEW_LINE>this.model = model;<NEW_LINE>this.date = DateUtil.yyyymmdd(stime);<NEW_LINE>this.stime = stime;<NEW_LINE>this.etime = etime;<NEW_LINE>this.serverId = serverId;<NEW_LINE>final Shell dialog = new Shell(Display.getDefault(), SWT.APPLICATI... | .setControl(getSpinnerControl(tabFolder)); |
1,258,908 | public static File replaceTokensInScript(final String script, final Map<String, Map<String, String>> dataContext, final Framework framework, final ScriptfileUtils.LineEndingStyle style, final File destination) throws IOException {<NEW_LINE>if (null == script) {<NEW_LINE>throw new NullPointerException("script cannot be ... | writeScriptTempfile(framework, replaceTokens, style); |
87,282 | public void complete(ResponseInfo responseInfo, ArrayList<UploadSingleRequestMetrics> requestMetricsList, JSONObject response) {<NEW_LINE>requestMetrics.addMetricsList(requestMetricsList);<NEW_LINE>boolean hijackedAndNeedRetry = false;<NEW_LINE>if (requestMetricsList != null && requestMetricsList.size() > 0) {<NEW_LINE... | updateIpListFormHost(server.getHost()); |
939,558 | public ElasticsearchSink genStreamSink(AbstractTargetTableInfo targetTableInfo) {<NEW_LINE>ElasticsearchTableInfo elasticsearchTableInfo = (ElasticsearchTableInfo) targetTableInfo;<NEW_LINE>esTableInfo = elasticsearchTableInfo;<NEW_LINE>clusterName = elasticsearchTableInfo.getClusterName();<NEW_LINE>String address = el... | ? parallelism : elasticsearchTableInfo.getParallelism(); |
1,415,808 | public ImmutableAttributes mapAttributesFor(ImmutableAttributes attributes, Iterable<? extends ComponentArtifactMetadata> artifacts) {<NEW_LINE>// Add attributes to be applied given the extension<NEW_LINE>if (artifactTypeDefinitions != null) {<NEW_LINE>String extension = null;<NEW_LINE>for (ComponentArtifactMetadata ar... | asImmutable(), ARTIFACT_TYPE_ATTRIBUTE, format); |
685,257 | protected void initAppManager() {<NEW_LINE>if (Setup.appSettings().getAppFirstLaunch()) {<NEW_LINE>Setup.appSettings().setAppFirstLaunch(false);<NEW_LINE>Setup.appSettings().setAppShowIntro(false);<NEW_LINE>Item appDrawerBtnItem = Item.newActionItem(8);<NEW_LINE>appDrawerBtnItem._x = 2;<NEW_LINE>_db.saveItem(appDrawerB... | getInstance(this).init(); |
420,213 | private static Expression optimizeCurrent(Expression expression) {<NEW_LINE>Function function = expression.getFunctionCall();<NEW_LINE><MASK><NEW_LINE>List<Expression> operands = function.getOperands();<NEW_LINE>if (operator.equals(FilterKind.AND.name())) {<NEW_LINE>// If any of the literal operands are FALSE, then rep... | String operator = function.getOperator(); |
438,888 | public static DescribeLiveStreamBitRateDataResponse unmarshall(DescribeLiveStreamBitRateDataResponse describeLiveStreamBitRateDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLiveStreamBitRateDataResponse.setRequestId(_ctx.stringValue("DescribeLiveStreamBitRateDataResponse.RequestId"));<NEW_LINE>List<FrameRat... | ("DescribeLiveStreamBitRateDataResponse.FrameRateAndBitRateInfos[" + i + "].VideoFrameRate")); |
440,092 | private Block createRawBlock(String defaultName, SectionDefinitionData def) {<NEW_LINE>Block block = new Block();<NEW_LINE>block.setLiquid(def.isLiquid());<NEW_LINE>block.setWater(def.isWater());<NEW_LINE>block.setGrass(def.isGrass());<NEW_LINE>block.setIce(def.isIce());<NEW_LINE>block.setHardness(def.getHardness());<N... | setMass(def.getMass()); |
1,762,997 | final CreateLayerResult executeCreateLayer(CreateLayerRequest createLayerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createLayerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<CreateLayerRequest> reques... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,506,797 | protected JFreeChart createLineChart() throws JRException {<NEW_LINE>JFreeChart jfreeChart = super.createLineChart();<NEW_LINE>CategoryPlot categoryPlot = (CategoryPlot) jfreeChart.getPlot();<NEW_LINE>LineAndShapeRenderer lineRenderer = <MASK><NEW_LINE>lineRenderer.setBaseStroke(new BasicStroke(2f, BasicStroke.CAP_ROUN... | (LineAndShapeRenderer) categoryPlot.getRenderer(); |
657,542 | private void openDb() {<NEW_LINE>try {<NEW_LINE>File countryFile = new File(mContext.getCacheDir() + "/dbip_country_lite.mmdb");<NEW_LINE>res_to_file(R.raw.dbip_country_lite, countryFile);<NEW_LINE>mCountryReader = new Reader(countryFile);<NEW_LINE>Log.d(TAG, "Country DB loaded: " + mCountryReader.getMetadata());<NEW_L... | "ASN DB loaded: " + mAsnReader.getMetadata()); |
1,664,895 | protected void insertMessageEvent(MessageEventDefinition messageEventDefinition, StartEvent startEvent, ProcessDefinitionEntity processDefinition, BpmnModel bpmnModel) {<NEW_LINE>CommandContext commandContext = Context.getCommandContext();<NEW_LINE>if (bpmnModel.containsMessageId(messageEventDefinition.getMessageRef())... | setConfiguration(processDefinition.getId()); |
1,128,964 | protected VirtualizerStore store(JRVirtualizationContext context, boolean create) {<NEW_LINE>VirtualizerStore store;<NEW_LINE>synchronized (contextStores) {<NEW_LINE>store = contextStores.get(context);<NEW_LINE>}<NEW_LINE>if (store != null || !create) {<NEW_LINE>if (log.isTraceEnabled()) {<NEW_LINE>log.trace("found " +... | store = storeFactory.createStore(context); |
489,617 | final AddInstanceGroupsResult executeAddInstanceGroups(AddInstanceGroupsRequest addInstanceGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addInstanceGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "AddInstanceGroups"); |
1,086,393 | private Optional<RequestConfig> addJerseyRequestConfig(ClientRequest clientRequest) {<NEW_LINE>final Integer timeout = clientRequest.resolveProperty(ClientProperties.READ_TIMEOUT, Integer.class);<NEW_LINE>final Integer connectTimeout = clientRequest.resolveProperty(ClientProperties.CONNECT_TIMEOUT, Integer.class);<NEW_... | requestConfig = RequestConfig.copy(defaultRequestConfig); |
888,474 | public void valueChanged(ListSelectionEvent e) {<NEW_LINE>final int lastIndex = e.getLastIndex();<NEW_LINE>final int firstIndex = e.getFirstIndex();<NEW_LINE>final DirDiffElementImpl last = myModel.getElementAt(lastIndex);<NEW_LINE>final DirDiffElementImpl first = myModel.getElementAt(firstIndex);<NEW_LINE>if (last == ... | lastIndex) ? 1 : -1); |
22,795 | public boolean action(Request request, Response response) {<NEW_LINE>if (request.getNettyRequest() instanceof FullHttpRequest) {<NEW_LINE>InputModifyChannelInfo input = getRequestBody(request.getNettyRequest(), InputModifyChannelInfo.class);<NEW_LINE>if (input != null) {<NEW_LINE>WFCMessage.ModifyChannelInfo modifyChan... | getValue()).build(); |
1,682,727 | Builder addDeps(List<? extends TransitiveInfoCollection> deps) {<NEW_LINE>ImmutableList.Builder<ObjcProvider> objcProviders = ImmutableList.builder();<NEW_LINE>ImmutableList.Builder<CcInfo> ccInfos = ImmutableList.builder();<NEW_LINE>ImmutableList.Builder<CcLinkingContext> ccLinkingContexts = ImmutableList.builder();<N... | ccLinkingContexts, ccLinkingContexts.build()); |
1,195,970 | final DescribeEndpointsResult executeDescribeEndpoints(DescribeEndpointsRequest describeEndpointsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEndpointsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DescribeEndpointsReq... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,214,640 | private Map<String, String> globalTagsExpressionToMap(Config globalTagExpression) {<NEW_LINE>String pairs = globalTagExpression.asString().get();<NEW_LINE>Map<String, String> result = new HashMap<>();<NEW_LINE>List<String> errorPairs = new ArrayList<>();<NEW_LINE>String[] assignments = pairs.split(",");<NEW_LINE>for (S... | errorPairs.add("Missing '=': " + assignment); |
1,599,194 | public void onReceiveRegisterResult(Context context, MiPushCommandMessage miPushCommandMessage) {<NEW_LINE>DemoLog.d(TAG, "onReceiveRegisterResult is called. " + miPushCommandMessage.toString());<NEW_LINE>String command = miPushCommandMessage.getCommand();<NEW_LINE>List<String> arguments = miPushCommandMessage.getComma... | d(TAG, "regId: " + mRegId); |
203,798 | // POST /api/admin/searchlist/doc<NEW_LINE>@Execute<NEW_LINE>public JsonResponse<ApiResult> post$doc(final EditBody body) {<NEW_LINE>validateApi(body, messages -> {<NEW_LINE>});<NEW_LINE>if (body.doc == null) {<NEW_LINE>throwValidationErrorApi(messages -> messages.addErrorsCrudFailedToCreateCrudTable(GLOBAL, "doc is re... | String index = fessConfig.getIndexDocumentUpdateIndex(); |
171,923 | public static IFilledList<TraceList> loadTraces(final AbstractSQLProvider provider, final String tableName, final String columnName, final int containerId, final List<? extends INaviModule> modules) throws CouldntLoadDataException {<NEW_LINE>Preconditions.checkNotNull(provider, "IE00590: Provider argument can not be nu... | PostgreSQLHelpers.readString(resultSet, "description"); |
175,581 | static String resolveValue(String value, Function<String, String> propertiesGetter) {<NEW_LINE>value = value.trim();<NEW_LINE>String value0 = value;<NEW_LINE>if (value.startsWith(PROPERTY_PREFIX))<NEW_LINE>value = value.substring(PROPERTY_PREFIX.length());<NEW_LINE>else if (!value.startsWith(VARIABLE_PREFIX))<NEW_LINE>... | newValue = propertiesGetter.apply(value); |
1,275,987 | ArrayList<Object> new25() /* reduce AAfilebody1FileBody */<NEW_LINE>{<NEW_LINE>@SuppressWarnings("hiding")<NEW_LINE>ArrayList<Object> nodeList = new ArrayList<Object>();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<MASK><NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nodeArrayList1 = pop();<... | <Object> nodeArrayList2 = pop(); |
1,792,396 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select symbol as currSymbol, " + " prior(3, symbol) as priorSymbol, " + " prior(2, price) as priorPrice " + "from SupportMarketDataBean";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>// assert select result type<NEW_LINE>env.... | env, "E", "B", 3d); |
1,706,059 | private void resolveOrFail(final ClassNode type, final String msg, final ASTNode node, final boolean preferImports) {<NEW_LINE>if (preferImports) {<NEW_LINE>resolveGenericsTypes(type.getGenericsTypes());<NEW_LINE>if (resolveAliasFromModule(type))<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (resolve(type))<NEW_LINE>return;<... | ) temp = temp.getComponentType(); |
1,708,761 | public EntityRecognizerMetadataEntityTypesListItem unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>EntityRecognizerMetadataEntityTypesListItem ... | ().unmarshall(context)); |
15,839 | private void saveFilter() {<NEW_LINE>final OsmandApplication app = getMyApplication();<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(getContext());<NEW_LINE>builder.setTitle(R.string.access_hint_enter_name);<NEW_LINE>final EditText editText = new EditText(getContext());<NEW_LINE>editText.setHint(R.stri... | setText(filter.getName()); |
290,889 | private boolean unlink(Entry<K, V> entry) {<NEW_LINE>assert lruLock.isHeldByCurrentThread();<NEW_LINE>if (entry.state == State.EXISTING) {<NEW_LINE>final Entry<K, V> before = entry.before;<NEW_LINE>final Entry<K, V> after = entry.after;<NEW_LINE>if (before == null) {<NEW_LINE>// removing the head<NEW_LINE>assert head =... | entry.key, entry.value); |
1,709,289 | public static void showAbout(Shell shell, Analytics analytics, Widgets widgets) {<NEW_LINE>analytics.postInteraction(View.About, ClientAction.Show);<NEW_LINE>new DialogBase(shell, widgets.theme) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getTitle() {<NEW_LINE>return Messages.ABOUT_TITLE;<NEW_LINE>}<NEW_LINE>... | OK_ID, IDialogConstants.OK_LABEL, true); |
185,383 | private DatagramPacket decode(DatagramPacket packet) {<NEW_LINE>try {<NEW_LINE>byte[] data = packet.getData();<NEW_LINE>int offset = packet.getOffset();<NEW_LINE><MASK><NEW_LINE>int addressLength = data[offset + CLUSTER_ADDRESS_LENGTH_OFFSET] & 0xff;<NEW_LINE>int port = (data[offset + CLUSTER_PORT_OFFSET] & 0xff) | ((d... | int length = packet.getLength(); |
1,333,996 | public List<Feature> bind(StructType schema) {<NEW_LINE>List<Feature> features = new ArrayList<>();<NEW_LINE>for (Feature feature : x.bind(schema)) {<NEW_LINE>StructField xfield = feature.field();<NEW_LINE>DataType type = xfield.type;<NEW_LINE>if (!(type.isDouble() || type.isFloat() || type.isInt() || type.isLong() || ... | ("Invalid expression: %s(%s)", name, type)); |
1,187,790 | protected JSDynamicObject doSetIterator(VirtualFrame frame, JSDynamicObject iterator) {<NEW_LINE>Object set = getIteratedObjectNode.getValue(iterator);<NEW_LINE>if (detachedProf.profile(set == Undefined.instance)) {<NEW_LINE>return createIterResultObjectNode.execute(frame, Undefined.instance, true);<NEW_LINE>}<NEW_LINE... | Object elementValue = mapCursor.getKey(); |
1,077,501 | private void attribute(ClassWriter classWriter, ParamDefinition parameter, String methodName) throws NoSuchMethodException {<NEW_LINE>MethodVisitor methodVisitor = classWriter.visitMethod(ACC_PRIVATE | ACC_STATIC, methodName, "(Lio/jooby/Context;Ljava/lang/String;)Ljava/lang/Object;", "<T:Ljava/lang/Object;>(Lio/jooby/... | methodVisitor.visitParameter("ctx", 0); |
191,599 | public String createConnectorId(ClientConnector connector) {<NEW_LINE>if (connector instanceof Component) {<NEW_LINE>Component component = (Component) connector;<NEW_LINE>String id = component.getId() == null ? super.createConnectorId(connector) : component.getId();<NEW_LINE>UserSession session = getAttribute(UserSessi... | toLongNumberString(idParts.toString()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.