idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
601,446 | final ListMailboxPermissionsResult executeListMailboxPermissions(ListMailboxPermissionsRequest listMailboxPermissionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listMailboxPermissionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListMailboxPermissions"); |
678,105 | void addRect(float a, float b, float c, float d, float tl, float tr, float br, float bl, boolean stroke) {<NEW_LINE>if (nonZero(tr)) {<NEW_LINE>addVertex(c - tr, b, VERTEX, true);<NEW_LINE>addQuadraticVertex(c, b, 0, c, b + tr, 0, false);<NEW_LINE>} else {<NEW_LINE>addVertex(c, b, VERTEX, true);<NEW_LINE>}<NEW_LINE>if ... | bl, d, VERTEX, false); |
392,292 | /* (non-Javadoc)<NEW_LINE>* @see com.ibm.ws.sib.processor.impl.interfaces.ConsumerPoint#resumeConsumer()<NEW_LINE>*/<NEW_LINE>public void resumeConsumer(int suspendFlag) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "resumeConsumer", this);<NEW_LINE>ArrayList<AOReq... | AORequestedTick) satisfiedTicks.get(i); |
1,578,002 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>setTheme();<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>ContextHolder.setCurrentActivity(this);<NEW_LINE>setContentView(R.layout.activity_micro);<NEW_LINE>OverlayView overlayView = findViewById(R.id.vOverlay);<NEW_LINE>layout = findViewById(R.id.displ... | = new MicroLoader(this, appPath); |
995,835 | final AcceptHandshakeResult executeAcceptHandshake(AcceptHandshakeRequest acceptHandshakeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(acceptHandshakeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Organizations"); |
1,603,863 | static String makeQuery(String yearMonth, String projectId) {<NEW_LINE>// Get the timestamp endpoints capturing the entire month with microsecond precision<NEW_LINE>YearMonth reportingMonth = YearMonth.parse(yearMonth);<NEW_LINE>LocalDateTime firstMoment = reportingMonth.atDay(1).atTime(LocalTime.MIDNIGHT);<NEW_LINE>Lo... | ).atTime(LocalTime.MAX); |
1,018,655 | public static String compare(double sum, int k, int n, int w) {<NEW_LINE>Dirichlet uniformDirichlet, dirichlet;<NEW_LINE>StringBuffer output = new StringBuffer();<NEW_LINE>output.append(sum + "\t" + k + "\t" + n + "\t" + w + "\t");<NEW_LINE>uniformDirichlet = new Dirichlet(k, sum / k);<NEW_LINE>dirichlet = new Dirichle... | .absoluteDifference(estimatedDirichlet) + "\t"); |
851,092 | public static void main(final String[] args) throws Exception {<NEW_LINE>// The gRPC client connection should be shared by all Gateway connections to<NEW_LINE>// this endpoint.<NEW_LINE>ManagedChannel channel = newGrpcConnection();<NEW_LINE>Gateway.Builder builder = // Default timeouts for different gRPC calls<NEW_LINE... | App(gateway).run(); |
1,015,181 | final ListProjectAssetsResult executeListProjectAssets(ListProjectAssetsRequest listProjectAssetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listProjectAssetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
859,300 | // Enable a disabled key version to be used again.<NEW_LINE>public void enableKeyVersion(String projectId, String locationId, String keyRingId, String keyId, String keyVersionId) throws IOException {<NEW_LINE>// Initialize client that will be used to send requests. This client only<NEW_LINE>// needs to be created once,... | CryptoKeyVersionState.ENABLED).build(); |
450,303 | public boolean close() {<NEW_LINE>if (open.compareAndSet(true, false)) {<NEW_LINE>LOG.<MASK><NEW_LINE>assert lock != null;<NEW_LINE>// close webcam<NEW_LINE>WebcamCloseTask task = new WebcamCloseTask(driver, device);<NEW_LINE>try {<NEW_LINE>task.close();<NEW_LINE>} catch (InterruptedException e) {<NEW_LINE>open.set(tru... | debug("Closing webcam {}", getName()); |
1,380,641 | final UpdateTableStorageOptimizerResult executeUpdateTableStorageOptimizer(UpdateTableStorageOptimizerRequest updateTableStorageOptimizerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateTableStorageOptimizerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | addHandlerContext(HandlerContextKey.SERVICE_ID, "LakeFormation"); |
160,890 | public void computeIntermediate(float v_x, float v_y) {<NEW_LINE>// compute the weighted covariance 2x2 matrix<NEW_LINE>// Two below equation 5<NEW_LINE>// sum hat(p[i])'*w[i]*hat(p[i])<NEW_LINE>float inner00 = 0, inner01 = 0, inner11 = 0;<NEW_LINE>for (int i = 0; i < controls.size; i++) {<NEW_LINE>Control c = controls... | .p.x - aveP.x; |
237,939 | private ProjectProperty createProject() {<NEW_LINE>ProjectProperty projectProperty = new ProjectProperty();<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>addStringToMap(ProjectUtil.COMPANY_NAME, companyName, getCompanyNameFromMavenProject(), projectData);<NEW_LINE>addStringToMap(HasNameUtil.NAME, appName, mavenProject.g... | projectData = new HashMap<>(); |
506,587 | public void read(org.apache.thrift.protocol.TProtocol iprot, finishFileUpload_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.<MASK><NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apache.thrift.protocol.TType.... | apache.thrift.protocol.TField schemeField; |
1,495,782 | private ElementDefinition storeElement(final char[] text, final int offset, final int len) {<NEW_LINE>int index = binarySearch(this.templateMode.isCaseSensitive(), this.repositoryNames, text, offset, len);<NEW_LINE>if (index >= 0) {<NEW_LINE>// It was already added while we were waiting for the lock!<NEW_LINE>return th... | ] completeElementNames = elementDefinition.elementName.completeElementNames; |
1,660,814 | final UpdateGlobalSettingsResult executeUpdateGlobalSettings(UpdateGlobalSettingsRequest updateGlobalSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateGlobalSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | invoke(request, responseHandler, executionContext); |
601,454 | private void ungrabWindowFX(ClassType WindowClass, ObjectReference w, ThreadReference tr) throws Exception {<NEW_LINE>// javafx.stage.Window w<NEW_LINE>// w.focusGrabCounter<NEW_LINE>// while (focusGrabCounter-- > 0) {<NEW_LINE>// w.impl_getPeer().ungrabFocus(); OR: w.impl_peer.ungrabFocus();<NEW_LINE>// }<NEW_LINE>Fie... | focusGrabCounterValue = w.getValue(focusGrabCounterField); |
734,431 | @SuppressWarnings("unchecked")<NEW_LINE>public <T> T put(final Key<T> key, @Nullable final T value, final CopyOnWriteContextMap owner, final AtomicReferenceFieldUpdater<CopyOnWriteContextMap, CopyContextMap> mapUpdater) {<NEW_LINE>final int i = findIndex(key);<NEW_LINE>final Object returnValue;<NEW_LINE>final Object[] ... | context.length + 1] = value; |
545,670 | public Node addFavorite(Long nodeId, String xSdsDateFormat, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'nodeId' is set<NEW_LINE>if (nodeId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'nodeId' when cal... | localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); |
1,284,198 | private Map<String, Object> processUserAndRoleListWithPermissionOnInode(String assetInode, String permission, String query, int start, int limit, boolean hideSystemRoles) {<NEW_LINE>Map<String, Object> results;<NEW_LINE>try {<NEW_LINE>int permissionType = Integer.parseInt(permission);<NEW_LINE>String inode = assetInode... | getUserCount(inode, permissionType, filter); |
720,734 | private static void unmapUpdateClause(List<StreamSpecRaw> desc, UpdateDesc updateDesc, EPStatementObjectModel model, StatementSpecUnMapContext unmapContext) {<NEW_LINE>if (updateDesc == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String type = ((FilterStreamSpecRaw) desc.get(0)).getRawFilterSpec().getEventTypeName();<... | assignment.getExpression(), unmapContext); |
1,308,209 | public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.field("name", nodeName);<NEW_LINE>builder.field("cluster_name", clusterName.value());<NEW_LINE>builder.field("cluster_uuid", clusterUuid);<NEW_LINE>builder.startObject("version... | "distribution", build.getDistribution()); |
1,395,509 | public BibEntry toBibEntry(Character keywordDelimiter) {<NEW_LINE>BibEntry bibEntry = new BibEntry(StandardEntryType.Article);<NEW_LINE>bibEntry.setField(StandardField.EPRINTTYPE, "arXiv");<NEW_LINE>bibEntry.setField(StandardField.AUTHOR, String.join(" and ", authorNames));<NEW_LINE>bibEntry.addKeywords(categories, key... | (StandardField.ABSTRACT, abstractContent)); |
1,622,236 | public void parse(Dictionary<String, ?> properties) throws ConfigurationException {<NEW_LINE>valid = false;<NEW_LINE>String cfgLatitude = (String) properties.get(AstroConfig.CONFIG_KEY_LATITUDE);<NEW_LINE>String cfgLongitude = (String) <MASK><NEW_LINE>if (StringUtils.isBlank(cfgLatitude) || StringUtils.isBlank(cfgLongi... | properties.get(AstroConfig.CONFIG_KEY_LONGITUDE); |
1,317,822 | protected Object[] processVariables(Object[] variables) {<NEW_LINE>for (int j = 0; j < variables.length; j++) {<NEW_LINE>Object[] temp = null;<NEW_LINE>if (variables[j] != null) {<NEW_LINE>if (variables[j].getClass().isArray()) {<NEW_LINE>temp = (Object[]) variables[j];<NEW_LINE>} else if (variables[j] instanceof Colle... | StringUtils.join(shorten, ","); |
362,529 | final BackTestAnomalyDetectorResult executeBackTestAnomalyDetector(BackTestAnomalyDetectorRequest backTestAnomalyDetectorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(backTestAnomalyDetectorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | addHandlerContext(HandlerContextKey.SERVICE_ID, "LookoutMetrics"); |
168,660 | public TaskManager.JobInfo jobInfoToProto(JobInfo job) {<NEW_LINE>TaskManager.JobInfo.Builder builder = TaskManager.JobInfo.newBuilder();<NEW_LINE>builder.setId(job.getId());<NEW_LINE>if (job.getJobType() != null) {<NEW_LINE>builder.setJobType(job.getJobType());<NEW_LINE>}<NEW_LINE>if (job.getState() != null) {<NEW_LIN... | setState(job.getState()); |
466,212 | String configFiles(Request req, Response res) {<NEW_LINE>ConfigRepoPlugin repoPlugin = pluginFromRequest(req);<NEW_LINE>File folder = null;<NEW_LINE>try {<NEW_LINE>JsonReader jsonReader = GsonTransformer.getInstance().jsonReaderFrom(req.body());<NEW_LINE>ConfigHelperOptions options = new ConfigHelperOptions(goConfigSer... | , materialConfig.getType())); |
1,360,529 | public static ListSchedulesResponse unmarshall(ListSchedulesResponse listSchedulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSchedulesResponse.setRequestId(_ctx.stringValue("ListSchedulesResponse.RequestId"));<NEW_LINE>listSchedulesResponse.setNextToken(_ctx.stringValue("ListSchedulesResponse.NextToken"));<NEW_... | ("ListSchedulesResponse.Schedules[" + i + "].ScheduleId")); |
1,065,374 | protected int retrieveEndOfPotentialExtendedDimensions(int initializerEnd, int nameEnd, int end) {<NEW_LINE>this.scanner.resetTo(initializerEnd, end);<NEW_LINE>boolean hasTokens = false;<NEW_LINE>int balance = 0;<NEW_LINE>int pos = initializerEnd <MASK><NEW_LINE>try {<NEW_LINE>int token, lParenCount = 0;<NEW_LINE>boole... | > nameEnd ? initializerEnd - 1 : nameEnd; |
931,388 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "create context MyContext coalesce by consistent_hash_crc32(theString) from SupportBean granularity 16;\n" + "@name('s0') context MyContext select theString, sum(intPrimitive) as thesum from SupportBean group by theString;\n";<NEW_LINE>env.compileDeploy... | null, "B", 14, 26); |
931,997 | private BType createRecordType(BLangExpression expr, BConstantSymbol constantSymbol, Object value, Location pos, SymbolEnv env) {<NEW_LINE>if (expr.getKind() == NodeKind.SIMPLE_VARIABLE_REF) {<NEW_LINE>return expr.getBType();<NEW_LINE>}<NEW_LINE>HashMap<String, BLangConstantValue> constValueMap = (HashMap<String, BLang... | (env.enclPkg.packageID)); |
421,581 | public <P extends ParaObject> P populate(HttpServletRequest req, P pobj, String... paramName) {<NEW_LINE>if (pobj == null || paramName == null) {<NEW_LINE>return pobj;<NEW_LINE>}<NEW_LINE>Map<String, Object> data = new LinkedHashMap<String, Object>();<NEW_LINE>if (isApiRequest(req)) {<NEW_LINE>try {<NEW_LINE>data = (Ma... | values = req.getParameterValues(param); |
1,720,802 | public Future<ResultString> restartServer(final int debugPort, boolean debug, TaskStateListener[] listeners) {<NEW_LINE>if (-1 == debugPort) {<NEW_LINE>Command command = new CommandRestartDAS(false);<NEW_LINE>return ServerAdmin.<ResultString>exec(instance, command, null, listeners);<NEW_LINE>}<NEW_LINE>TaskState state ... | Level.INFO, "Could not retrieve property from server.", gfie); |
1,774,885 | public static String unescapeFileName(String fileName) {<NEW_LINE>int length = fileName.length();<NEW_LINE>int percentCharacterCount = 0;<NEW_LINE>for (int i = 0; i < length; i++) {<NEW_LINE>if (fileName.charAt(i) == '%') {<NEW_LINE>percentCharacterCount++;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (percentCharacterCount == 0)... | matcher = ESCAPED_CHARACTER_PATTERN.matcher(fileName); |
1,301,941 | final ActivateEventSourceResult executeActivateEventSource(ActivateEventSourceRequest activateEventSourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(activateEventSourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | (super.beforeMarshalling(activateEventSourceRequest)); |
1,640,291 | protected void onSizeChanged(int w, int h, int oldw, int oldh) {<NEW_LINE>super.onSizeChanged(w, h, oldw, oldh);<NEW_LINE>// Fill the rectangle instance based on orientation<NEW_LINE>int x1, y1;<NEW_LINE>if (mOrientation == ORIENTATION_HORIZONTAL) {<NEW_LINE>x1 = (mBarLength + mBarPointerHaloRadius);<NEW_LINE>y1 = mBar... | null, Shader.TileMode.CLAMP); |
810,120 | public void deleteHost(MacAddress mac, String port) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Removing host {} from port {}", mac, port);<NEW_LINE>}<NEW_LINE>if (mac == null && port == null)<NEW_LINE>return;<NEW_LINE>if (port != null) {<NEW_LINE>MacAddress host = portToMac.remove(port);<NEW_LINE>if (ho... | removeHost(entry.getValue()); |
469,091 | protected ClassNode inferMapExpressionType(final MapExpression map) {<NEW_LINE>ClassNode mapType = LINKEDHASHMAP_CLASSNODE.getPlainNodeReference();<NEW_LINE>List<MapEntryExpression> entryExpressions = map.getMapEntryExpressions();<NEW_LINE><MASK><NEW_LINE>if (nExpressions == 0)<NEW_LINE>return mapType;<NEW_LINE>Generic... | int nExpressions = entryExpressions.size(); |
1,813,905 | protected void initPlaylists(@NonNull Context context, @NonNull FragmentPlaylistVideosBinding binding, @NonNull YouTubePlaylist playlist) {<NEW_LINE>this.youTubePlaylist = playlist;<NEW_LINE>initVideos(<MASK><NEW_LINE>binding.playlistTitleTextView.setText(youTubePlaylist.getTitle());<NEW_LINE>// setup the toolbar/actio... | context, videoGridAdapter, binding.videosGridview); |
990,545 | public void write(JsonWriter out, ParentPet value) throws IOException {<NEW_LINE>JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();<NEW_LINE>obj.remove("additionalProperties");<NEW_LINE>// serialize additonal properties<NEW_LINE>if (value.getAdditionalProperties() != null) {<NEW_LINE>for (Map.Entry<Strin... | Number) entry.getValue()); |
761,569 | public RaftClusterContext configure(final Configuration configuration) {<NEW_LINE>checkNotNull(configuration, "configuration cannot be null");<NEW_LINE>// If the configuration index is less than the currently configured index, ignore it.<NEW_LINE>// Configurations can be persisted and applying old configurations can re... | var currentConfig = configurationRef.get(); |
1,847,154 | public static List<DBPDataSourceContainer> extractContainers(IFile resource) throws IOException, XMLException, DBException {<NEW_LINE>List<DBPDataSourceContainer> containers = new ArrayList<>();<NEW_LINE>DBPProject projectMeta = DBWorkbench.getPlatform().getWorkspace().getProject(resource.getProject());<NEW_LINE>if (pr... | getDataSourceRegistry().getDataSource(dsId); |
1,361,589 | private void checkPageSizeAndMayOpenANewPage() {<NEW_LINE>if (pageWriter.getPointNumber() == maxNumberOfPointsInPage) {<NEW_LINE><MASK><NEW_LINE>writePageToPageBuffer();<NEW_LINE>} else if (pageWriter.getPointNumber() >= valueCountInOnePageForNextCheck) {<NEW_LINE>// need to check memory size<NEW_LINE>// not checking t... | logger.debug("current line count reaches the upper bound, write page {}", measurementSchema); |
1,092,564 | public void customizeBundle() throws FHIRException {<NEW_LINE>// START SNIPPET: customizeBundle<NEW_LINE>// Create a TransactionBuilder<NEW_LINE>BundleBuilder builder = new BundleBuilder(myFhirContext);<NEW_LINE>// Set bundle type to be searchset<NEW_LINE>builder.setBundleField("type", "searchset").setBundleField("id",... | search = builder.addSearch(entry); |
1,166,294 | final RestoreAddressToClassicResult executeRestoreAddressToClassic(RestoreAddressToClassicRequest restoreAddressToClassicRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(restoreAddressToClassicRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
790,192 | private void applyConventions(Project project, TaskContainer tasks, ObjectFactory objects, ProjectLayout layout, GradleDocumentationExtension extension) {<NEW_LINE>TaskProvider<Sync> stageDocs = tasks.register("stageDocs", Sync.class, task -> {<NEW_LINE>// release notes goes in the root of the docs<NEW_LINE>task.from(e... | ().dir("src/docs")); |
481,215 | private void showMediumWeightDropShadow() {<NEW_LINE>if (mediumWeightShown)<NEW_LINE>return;<NEW_LINE>mediumWeightShown = true;<NEW_LINE>if (owner == null)<NEW_LINE>return;<NEW_LINE>Window window = SwingUtilities.windowForComponent(owner);<NEW_LINE>if (!(window instanceof RootPaneContainer))<NEW_LINE>return;<NEW_LINE>d... | RootPaneContainer) window).getLayeredPane(); |
270,913 | public Object doObject(Frame frame, @Cached("createBinaryProfile()") ConditionProfile isNumberProfile, @Cached("createBinaryProfile()") ConditionProfile isIntegerProfile, @Cached("createBinaryProfile()") ConditionProfile isBigIntProfile, @Cached("createBinaryProfile()") ConditionProfile isBoundaryProfile, @Cached("crea... | ) operand, isIntegerProfile, isBoundaryProfile)); |
484,652 | private boolean useMinimalMode() {<NEW_LINE>int width = playerControlView.getWidth() - playerControlView.getPaddingLeft<MASK><NEW_LINE>int height = playerControlView.getHeight() - playerControlView.getPaddingBottom() - playerControlView.getPaddingTop();<NEW_LINE>int centerControlWidth = getWidthWithMargins(centerContro... | () - playerControlView.getPaddingRight(); |
861,156 | protected void processNioSelections(int selectionCount, final Selector selector, @Nullable ServerSocketChannel server, Map<SocketChannel, TcpNioConnection> connectionMap) {<NEW_LINE>final long now = System.currentTimeMillis();<NEW_LINE>rescheduleDelayedReads(selector, now);<NEW_LINE>if (this.soTimeout > 0 || now >= thi... | + this.port + " SelectionCount: " + selectionCount; |
1,224,640 | final DeleteEnvironmentConfigurationResult executeDeleteEnvironmentConfiguration(DeleteEnvironmentConfigurationRequest deleteEnvironmentConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEnvironmentConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,325,474 | private OptionType type(ConfiguredOptionData annotation, ExecutableElement element) {<NEW_LINE>if (annotation.type == null || annotation.type.equals(CONFIGURED_OPTION_CLASS)) {<NEW_LINE>// guess from method<NEW_LINE>List<? extends VariableElement> parameters = element.getParameters();<NEW_LINE>if (parameters.size() != ... | getTypeArguments().get(1); |
1,164,937 | protected void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>TextView tv = findViewById(R.id.data_item);<NEW_LINE>tv.setText((String) item.pv.get(EcuDataPv.FID_DESCRIPT));<NEW_LINE>// Color selection<NEW_LINE>Integer color = ColorAdapter.getItemColor(item.pv);<NEW_LINE>int pos = colorAdapter.getPosition(color);<NEW_... | .setMax((int) maxValue); |
366,522 | private void handleDirection(ShowInfo showInfo, int currentDirection, int nextDirection) {<NEW_LINE>if (currentDirection == DIRECTION_CENTER_IN_SCREEN) {<NEW_LINE>showInfo.x = showInfo.visibleWindowFrame.left + (showInfo.getVisibleWidth(<MASK><NEW_LINE>showInfo.y = showInfo.visibleWindowFrame.top + (showInfo.getVisible... | ) - showInfo.width) / 2; |
613,943 | public boolean apply(Game game, Ability source) {<NEW_LINE>Cards mine = new CardsImpl();<NEW_LINE>Cards theirs = new CardsImpl();<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>for (UUID playerId : game.getOpponents(so... | player = game.getPlayer(playerId); |
638,973 | /* (non-Javadoc)<NEW_LINE>* @see com.kkalice.adempiere.migrate.DBEngineInterface#sqlAction_dropDuplicates(java.lang.String, java.lang.String, java.lang.String, java.util.ArrayList)<NEW_LINE>*/<NEW_LINE>public String sqlAction_dropDuplicates(String catalogName, String schemaName, String tableName, ArrayList<String> keyC... | columnName = keyColumnNames.get(i); |
912,597 | public void addMapMarkers(@NonNull List<LatLon> points, @NonNull List<PointDescription> historyNames, @Nullable List<String> mapObjNames) {<NEW_LINE>if (points.size() > 0) {<NEW_LINE>ctx.getSettings().SHOW_MAP_MARKERS.set(true);<NEW_LINE>int colorIndex = -1;<NEW_LINE>List<MapMarker> addedMarkers = new ArrayList<>();<NE... | (PointDescription.getSearchAddressStr(ctx)); |
282,573 | protected void jbInit() throws Exception {<NEW_LINE>// this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);<NEW_LINE>mainPanel.setLayout(new java.awt.BorderLayout());<NEW_LINE>setLayout(new java.awt.BorderLayout());<NEW_LINE>southPanel.setLayout(southLayout);<NEW_LINE>southPanel.add(confirmPanel, BorderLayout.CENTER... | add(statusBar, BorderLayout.SOUTH); |
1,448,471 | public static JSONObject printTransactionToJSON(Transaction transaction, boolean selfType) {<NEW_LINE>JSONObject jsonTransaction = JSONObject.parseObject(JsonFormat.printToString(transaction, selfType));<NEW_LINE>JSONArray contracts = new JSONArray();<NEW_LINE>transaction.getRawData().getContractList().stream().forEach... | "InvalidProtocolBufferException: {}", e.getMessage()); |
468,704 | protected void addTradeInfoBlock() {<NEW_LINE>TitledGroupBg tradeInfoTitledGroupBg = addTitledGroupBg(gridPane, gridRow, 3, Res.get("portfolio.pending.tradeInformation"));<NEW_LINE>GridPane.setColumnSpan(tradeInfoTitledGroupBg, 2);<NEW_LINE>final Tuple3<Label, TxIdTextField, VBox> labelTxIdTextFieldVBoxTuple3 = addTopL... | infoTextField.setContentForInfoPopOver(createInfoPopover()); |
790,657 | void sendTokenProperties(MTWebSocket mtws, String inResponseTo, JsonObject data) {<NEW_LINE>String tokenId = data.get("tokenId").getAsString();<NEW_LINE>Token token = findTokenFromId(tokenId);<NEW_LINE>if (token == null) {<NEW_LINE>System.out.println("DEBUG: sendTokenInfo(): Unable to find token " + tokenId);<NEW_LINE>... | jobj.add("properties", properties); |
1,304,988 | public void replaceFunctionVariable(Address originEntryPoint, Variable var, TaskMonitor monitor) {<NEW_LINE>if (var instanceof Parameter) {<NEW_LINE>throw new IllegalArgumentException("replaceFunctionVariable does not support parameters");<NEW_LINE>}<NEW_LINE>Address resultEntryPoint = originToResultTranslator.getAddre... | e.getMessage(), e); |
1,072,029 | /*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.microservice.api.device.IDeviceManagement#updateDeviceStatus(<NEW_LINE>* java.util.UUID, com.sitewhere.spi.device.request.IDeviceStatusCreateRequest)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public RdbDeviceStatus updateDeviceStatus(UUID id, IDeviceStatusCreateRequest request)... | IDeviceStatus> all = listDeviceStatuses(criteria); |
1,630,203 | private CtBehavior compileMethod(Parser p, MethodDecl md) throws CompileError {<NEW_LINE>int mod = MemberResolver.getModifiers(md.getModifiers());<NEW_LINE>CtClass[] plist = gen.makeParamList(md);<NEW_LINE>CtClass[] tlist = gen.makeThrowsList(md);<NEW_LINE>recordParams(plist<MASK><NEW_LINE>md = p.parseMethod2(stable, m... | , Modifier.isStatic(mod)); |
520,456 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>super.onCreateView(inflater, container, savedInstanceState);<NEW_LINE>View v = initView(inflater, container);<NEW_LINE>emptyImage.setImageResource(isScreenInPortrait(context) ? R.drawable.empty_transfer_portrait... | = new MegaCompletedTransfersAdapter(context, tL); |
1,572,045 | public void marshall(ListCompilationJobsRequest listCompilationJobsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listCompilationJobsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(listCo... | listCompilationJobsRequest.getLastModifiedTimeBefore(), LASTMODIFIEDTIMEBEFORE_BINDING); |
1,693,049 | public Stream<TestTemplateInvocationContext> provideTestTemplateInvocationContexts(ExtensionContext extensionContext) {<NEW_LINE>Method templateMethod = extensionContext.getRequiredTestMethod();<NEW_LINE>String displayName = extensionContext.getDisplayName();<NEW_LINE>//<NEW_LINE>ParameterizedTestMethodContext //<NEW_L... | get(METHOD_CONTEXT_KEY, ParameterizedTestMethodContext.class); |
611,177 | private static void tryMT(RegressionEnvironment env, int numSeconds) throws InterruptedException {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplCreateVariable = "@public create table MyTable (pkey string primary key)";<NEW_LINE>env.compileDeploy(eplCreateVariable, path);<NEW_LINE>String eplIn... | class.getSimpleName() + "-write"); |
1,177,673 | public static void rememberWindowSize(final Window window) {<NEW_LINE>window.addComponentListener(new ComponentAdapter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void componentResized(ComponentEvent e) {<NEW_LINE>final Dimension previousWindowSize = ((SwingPreferences) Application.getPreferences()).getWindowSize(... | ), window.getSize()); |
542,666 | public BlockResult retrieveExecutionBlock(String bnOrId) {<NEW_LINE>if (LATEST_ID.equals(bnOrId)) {<NEW_LINE>return newBlockResult(blockchain.getBestBlock());<NEW_LINE>}<NEW_LINE>if (PENDING_ID.equals(bnOrId)) {<NEW_LINE>Optional<Block> latestBlock = minerServer.getLatestBlock();<NEW_LINE>if (latestBlock.isPresent()) {... | ("Unsupported block specifier '%s'. Can only be either 'latest', " + "'pending' or a specific block number (either hex - prepending '0x' or decimal).", bnOrId)); |
1,622,219 | public String createFolder(final String repositoryId, final Properties properties, final String folderId, final List<String> policies, final Acl addAces, final Acl removeAces, final ExtensionsData extension) {<NEW_LINE>final App app = StructrApp.getInstance(securityContext);<NEW_LINE>String uuid = null;<NEW_LINE>try (f... | CmisObjectNotFoundException("Type with ID " + objectTypeId + " does not exist"); |
1,559,582 | public void process(Properties ctx, ReplicationProcessor replicationProcessor, String trxName) throws Exception {<NEW_LINE>log.info("replicationProcessor = " + replicationProcessor);<NEW_LINE>log.info("replicationProcessor.getMImportProcessor() = " + replicationProcessor.getMImportProcessor());<NEW_LINE>MIMPProcessor i... | processorParameters = impProcessor.getIMP_ProcessorParameters(trxName); |
1,140,425 | public void resourceClosed(ResourceHandle h) throws IllegalStateException {<NEW_LINE>if (_logger.isLoggable(Level.FINE)) {<NEW_LINE>_logger.log(Level.FINE, "Pool: resourceClosed: " + h);<NEW_LINE>}<NEW_LINE>ResourceState state = getResourceState(h);<NEW_LINE>if (state == null) {<NEW_LINE>throw new IllegalStateException... | Level.WARNING, null, noBusyException); |
546,882 | static ImmutablePair<String, Optional<String>> parseImagePageMpv(@NonNull String json, @NonNull List<Pair<String, String>> requestHeaders, @NonNull final Site site) throws IOException, LimitReachedException, EmptyResultException {<NEW_LINE>MpvImageInfo mpvInfo = JsonHelper.jsonToObject(json, MpvImageInfo.class);<NEW_LI... | String imageUrl = imageMetadata.getUrl(); |
235,911 | public Observable<ServiceResponse<Screen>> screenTextWithServiceResponseAsync(String textContentType, byte[] textContent, ScreenTextOptionalParameter screenTextOptionalParameter) {<NEW_LINE>if (this.client.baseUrl() == null) {<NEW_LINE>throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and ... | ? screenTextOptionalParameter.classify() : null; |
510,712 | public void before(Object target, Object[] args) {<NEW_LINE>if (isDebug) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// process(int seqid, TProtocol iprot, TProtocol oprot, I iface)<NEW_LINE>if (ArrayUtils.getLength(args) != 4) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String methodName = ThriftConstants.UNKNOWN_METHOD_NAME;<NE... | logger.beforeInterceptor(target, args); |
1,546,965 | public void parser(InputStream file) {<NEW_LINE>NodeList nodeList = this.parserer(file);<NEW_LINE>if (nodeList == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (int i = 0; i < nodeList.getLength(); i++) {<NEW_LINE>Element node = (Element) nodeList.item(i);<NEW_LINE>String tagName = node.getTagName();<NEW_LINE>if ("c... | ], split[0])); |
1,224,999 | public static final void create(final ITool tool) {<NEW_LINE>final CostModelCreator collector = new CostModelCreator(tool);<NEW_LINE>// TODO Start from the ModuleNode similar to how the Explorer works. It is<NEW_LINE>// unclear how to lookup the corresponding subtree in the global CM graph<NEW_LINE>// in getNextState a... | getToolObject(tool.getId()); |
795,203 | private RntbdRequestRecord writeWhenConnected(final RntbdRequestRecord requestRecord, final Future<? super Channel> connected) {<NEW_LINE>if (connected.isSuccess()) {<NEW_LINE>final Channel channel = (Channel) connected.getNow();<NEW_LINE>assert channel != null : "impossible";<NEW_LINE>this.releaseToPool(channel);<NEW_... | "\n [{}]\n {}\n write failed due to {} ", this, requestArgs, cause); |
473,567 | public void marshall(AddOutputRequest addOutputRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (addOutputRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(addOutputRequest.getCidrAllowList(),... | addOutputRequest.getSenderControlPort(), SENDERCONTROLPORT_BINDING); |
963,272 | public void clearResponses(final SessionLabel sessionLabel, final UserIdentity userIdentity, final ChaiUser theUser, final String userGUID) throws PwmOperationalException, ChaiUnavailableException {<NEW_LINE>int attempts = 0;<NEW_LINE>int successes = 0;<NEW_LINE>final List<DataStorageMethod> writeMethods = pwmDomain.ge... | getEntryDN() + " guid=" + userGUID); |
1,635,503 | public Iterable<? extends Element> doOperation(final Aggregate operation, final Schema schema) throws OperationException {<NEW_LINE>if (null == operation.getInput()) {<NEW_LINE>throw new OperationException("Aggregate operation has null iterable of elements");<NEW_LINE>}<NEW_LINE>// If no entities or edges have been pro... | edgeMap = new HashMap<>(); |
1,246,277 | private JCheckBox createPseudoCheckBox(final CSS.PseudoClass pseudoClass, String title) {<NEW_LINE>JCheckBox checkbox = new JCheckBox(title);<NEW_LINE>checkbox.addActionListener(new ActionListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_LINE>WebKitPageModel model = pag... | model.removePseudoClass(node, pseudoClass); |
732,819 | public Calendar toCalendar(UnitNRShape lv) {<NEW_LINE>if (lv.getLevel() == 0)<NEW_LINE>return newCal();<NEW_LINE>if (comparePrefix(lv, minLV) <= 0) {<NEW_LINE>// shouldn't typically happen; sometimes in a debugger<NEW_LINE>// full precision; truncation would cause underflow<NEW_LINE>return (Calendar) MINCAL.clone();<NE... | set(Calendar.ERA, 0); |
1,218,011 | public NodeValue exec(NodeValue v1, NodeValue v2, NodeValue v3, NodeValue v4) {<NEW_LINE>try {<NEW_LINE>if (!v1.isNumber()) {<NEW_LINE>throw new ExprEvalException("Not a Number: " + FmtUtils.stringForNode(v1.asNode()));<NEW_LINE>}<NEW_LINE>if (!v2.isNumber()) {<NEW_LINE>throw new ExprEvalException("Not a Number: " + Fm... | double y1 = v2.getDouble(); |
569,883 | public LastAdminGroupRoomList requestLastAdminRoomsGroups(Long groupId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'groupId' is set<NEW_LINE>if (groupId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'gr... | HashMap<String, String>(); |
1,050,276 | private void paste(CellLocation pos, Matrix data, boolean isRowInsert) {<NEW_LINE>int startRow = pos.getRow() - 1;<NEW_LINE>int startCol = pos.getCol() - 1;<NEW_LINE>if (isRowInsert) {<NEW_LINE>if (startRow < sheet.getLastRowNum()) {<NEW_LINE>sheet.shiftRows(startRow + 1, sheet.getLastRowNum(), data.getRowSize(), true,... | ) value).booleanValue()); |
719,345 | final UpdateThingGroupResult executeUpdateThingGroup(UpdateThingGroupRequest updateThingGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateThingGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
237,337 | private void createVerificationRunLine(@NonNull final InvoiceVerificationRunId runId, @NonNull final InvoiceVerificationRunResult runResult) {<NEW_LINE>final Tax invoiceTax = runResult.getInvoiceTax();<NEW_LINE>final Tax resultingTax = runResult.getResultingTax();<NEW_LINE>final boolean noTaxFound = resultingTax == nul... | getTaxId().equals(resultingTaxId); |
581,659 | public void emit(SPIRVCompilationResultBuilder crb, SPIRVAssembler asm) {<NEW_LINE>Logger.traceCodeGen(Logger.BACKEND.SPIRV, "emit SPIRVOpSConvert : -> " + toBits);<NEW_LINE>SPIRVKind spirvKind = (SPIRVKind) value.getPlatformKind();<NEW_LINE>SPIRVId type = asm.primitives.getTypePrimitive(spirvKind);<NEW_LINE>SPIRVId lo... | asm.registerLIRInstructionValue(this, loadConvert); |
1,761,215 | private void createText(Composite container) {<NEW_LINE>StyledText text = new StyledText(container, SWT.MULTI | SWT.WRAP | SWT.READ_ONLY | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);<NEW_LINE>List<StyleRange> ranges = new ArrayList<>();<NEW_LINE>StringBuilder buffer = new StringBuilder();<NEW_LINE>if (newVersion.require... | ).getSystemColor(SWT.COLOR_RED); |
1,841,319 | public static AddScriptResponse unmarshall(AddScriptResponse addScriptResponse, UnmarshallerContext _ctx) {<NEW_LINE>addScriptResponse.setRequestId(_ctx.stringValue("AddScriptResponse.RequestId"));<NEW_LINE>addScriptResponse.setErrorMessage(_ctx.stringValue("AddScriptResponse.ErrorMessage"));<NEW_LINE>addScriptResponse... | ("AddScriptResponse.Data[" + i + "].Text")); |
1,330,250 | public static QueryResourceInventoryResponse unmarshall(QueryResourceInventoryResponse queryResourceInventoryResponse, UnmarshallerContext context) {<NEW_LINE>queryResourceInventoryResponse.setRequestId(context.stringValue("QueryResourceInventoryResponse.RequestId"));<NEW_LINE>queryResourceInventoryResponse.setCode(con... | + "].ResourceInventories[" + j + "].Total")); |
1,775,310 | public SearchProductsAsAdminResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SearchProductsAsAdminResult searchProductsAsAdminResult = new SearchProductsAsAdminResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NE... | String currentParentElement = context.getCurrentParentElement(); |
843,251 | private void processParkAndRideNodes(Collection<OSMNode> nodes, boolean isCarParkAndRide) {<NEW_LINE>LOG.info("Processing {} P+R nodes.", isCarParkAndRide ? "car" : "bike");<NEW_LINE>int n = 0;<NEW_LINE>VehicleParkingService vehicleParkingService = graph.getService(VehicleParkingService.class, true);<NEW_LINE>for (OSMN... | , List.of(entrance)); |
246,065 | protected boolean typeCheckMethodsWithGenericsOrFail(final ClassNode receiver, final ClassNode[] arguments, final MethodNode candidateMethod, final Expression location) {<NEW_LINE>if (!typeCheckMethodsWithGenerics(receiver, arguments, candidateMethod)) {<NEW_LINE>ClassNode r = receiver, at[] = arguments;<NEW_LINE>Metho... | ExtensionMethodNode) candidateMethod).getExtensionMethodNode(); |
1,845,380 | public void read(org.apache.thrift.protocol.TProtocol iprot, KeyValues struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apach... | skip(iprot, schemeField.type); |
1,532,956 | // java.lang.IllegalStateException: Intentionally failing skipRun<NEW_LINE>@AllowedFFDC("java.lang.IllegalStateException")<NEW_LINE>@Test<NEW_LINE>public void testPersistSkipRunFailure(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>String taskName = "SkipRunFailure-" + VNEXT;<NEW_... | saveTaskEntry(executor, taskId, taskName); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.