idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
367,465 | public DescribeDatasetResult describeDataset(DescribeDatasetRequest describeDatasetRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDatasetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMet... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,440,851 | private boolean checkAndLockRelationshipsIfNodeIsGoingToBeDense(NodeRecord node, RelationshipModifications.NodeRelationshipIds byNode, RecordAccess<RelationshipRecord, Void> relRecords, ResourceLocker locks, LockTracer lockTracer) {<NEW_LINE>// We have an exclusively locked sparse not that may turn dense<NEW_LINE>long ... | LongLists.mutable.withInitialCapacity(currentDegree); |
164,883 | private void findBits(Set<CheerEmoticon> emotes, String text, Map<Integer, Integer> ranges, Map<Integer, MutableAttributeSet> rangesStyle, User user) {<NEW_LINE>for (CheerEmoticon emote : emotes) {<NEW_LINE>if (!emote.matchesUser(user, null)) {<NEW_LINE>// CONTINUE<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>Matcher m = emo... | main.emoticons.isEmoteIgnored(emote); |
1,112,971 | public double rayCast(Ray2D ray) {<NEW_LINE>final Ray2D transformedRay = ray.transform(transform);<NEW_LINE>final double squaredHorizontal = horizontalLength * horizontalLength;<NEW_LINE>final double squaredVertical = verticalLength * verticalLength;<NEW_LINE>final double squaredDirectionX = transformedRay.getDirection... | .getDirection().getY(); |
324,931 | final DescribeParametersResult executeDescribeParameters(DescribeParametersRequest describeParametersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeParametersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
273,209 | public static Closeable main(Path appRoot) throws Exception {<NEW_LINE>try (ObjectInputStream in = new ObjectInputStream(Files.newInputStream(appRoot.resolve(LIB).resolve(DEPLOYMENT_LIB).resolve(JarResultBuildStep.APPMODEL_DAT)))) {<NEW_LINE>Properties buildSystemProperties = new Properties();<NEW_LINE>try (InputStream... | getName(), DevModeType.REMOTE_SERVER_SIDE); |
1,585,752 | final CreateContactListResult executeCreateContactList(CreateContactListRequest createContactListRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createContactListRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | false), new CreateContactListResultJsonUnmarshaller()); |
1,788,560 | public Request<EnableSnapshotCopyRequest> marshall(EnableSnapshotCopyRequest enableSnapshotCopyRequest) {<NEW_LINE>if (enableSnapshotCopyRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<EnableSnapshotCopyRequest> request = new DefaultReque... | (enableSnapshotCopyRequest.getRetentionPeriod())); |
1,254,478 | public static DescribeProjectNodesResponse unmarshall(DescribeProjectNodesResponse describeProjectNodesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeProjectNodesResponse.setRequestId(_ctx.stringValue("DescribeProjectNodesResponse.RequestId"));<NEW_LINE>describeProjectNodesResponse.setSuccess(_ctx.booleanValue(... | ("DescribeProjectNodesResponse.Result[" + i + "].AutoFinishNode")); |
1,525,692 | public synchronized void createTweet(Status status, int account) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>String originalName = "";<NEW_LINE>long id = status.getId();<NEW_LINE>long time = status.getCreatedAt().getTime();<NEW_LINE>String[] html = TweetLinkUtils.getLinksInStatus(status);<NEW_LINE>S... | put(MentionsSQLiteHelper.COLUMN_URL, otherUrl); |
734,171 | private void runPost(HashMap<String, Object> data) {<NEW_LINE>try {<NEW_LINE>checkState(clientId.isPresent() && email.isPresent(), "Must supply clientId and email");<NEW_LINE>data.put("baseClientId", clientId.get());<NEW_LINE>data.put("contactEmail", email.get());<NEW_LINE>String password = optionalPassword.orElse(pass... | setPassword(password).buildAndPersist(); |
610,228 | public static APICreateRootVolumeTemplateFromRootVolumeEvent __example__() {<NEW_LINE>APICreateRootVolumeTemplateFromRootVolumeEvent event = new APICreateRootVolumeTemplateFromRootVolumeEvent();<NEW_LINE>ImageInventory inv = new ImageInventory();<NEW_LINE>inv.setUuid(uuid());<NEW_LINE>ImageBackupStorageRefInventory ref... | inv.setFormat(ImageConstant.RAW_FORMAT_STRING); |
858,801 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>javax.swing.JPanel jPanel1 = new javax.swing.JPanel();<NEW_LINE>loadingLabel = new javax.swing.JLabel();<NEW_LINE>tabs = new javax.swing.JTabbedPane();<NEW_LINE>setLayout(new java.... | javax.swing.SwingConstants.CENTER); |
531,228 | private List<AttributesChangedEvent> createMaterialEvent(final HUAttributeChanges changes) {<NEW_LINE>if (changes.isEmpty()) {<NEW_LINE>return ImmutableList.of();<NEW_LINE>}<NEW_LINE>final HuId huId = changes.getHuId();<NEW_LINE>final I_M_HU hu = handlingUnitsBL.getById(huId);<NEW_LINE>//<NEW_LINE>// Consider only thos... | getWarehouseIdByLocatorRepoId(hu.getM_Locator_ID()); |
585,783 | private void writeBatch(ChannelHandlerContext ctx, Collection<RedisCommand<?, ?, ?>> batch, ChannelPromise promise) {<NEW_LINE>Collection<RedisCommand<?, ?, ?>> deduplicated = new LinkedHashSet<>(batch.size(), 1);<NEW_LINE>for (RedisCommand<?, ?, ?> command : batch) {<NEW_LINE>if (isWriteable(command) && !deduplicated.... | ctx.write(deduplicated, promise); |
742,293 | public void exitRs_route(Rs_routeContext ctx) {<NEW_LINE>if (ctx.prefix != null) {<NEW_LINE>Prefix prefix = Prefix.parse(ctx.prefix.getText());<NEW_LINE>Ip nextHopIp = Route.UNSET_ROUTE_NEXT_HOP_IP;<NEW_LINE>String nextHopInterface = null;<NEW_LINE>if (ctx.nhip != null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (ctx.nhi... | nextHopIp = toIp(ctx.nhip); |
1,663,966 | private static void tryAssertionCrontab(RegressionEnvironment env, int days) {<NEW_LINE>String[] fields = "symbol".split(",");<NEW_LINE>sendEvent(env, "S1", 0);<NEW_LINE>env.assertListenerNotInvoked("s0");<NEW_LINE>sendTimeEvent(env, days, 17, 14, 59, 0);<NEW_LINE>sendEvent(env, "S2", 0);<NEW_LINE>env.assertListenerNot... | 17, 15, 0, 0); |
118,734 | protected void installDefaults() {<NEW_LINE>super.installDefaults();<NEW_LINE>LookAndFeel.installBorder(tree, "Tree.border");<NEW_LINE>selectionBackground = UIManager.getColor("Tree.selectionBackground");<NEW_LINE>selectionForeground = UIManager.getColor("Tree.selectionForeground");<NEW_LINE>selectionInactiveBackground... | showCellFocusIndicator = UIManager.getBoolean("Tree.showCellFocusIndicator"); |
774,837 | private static void configureBulkdata(Dcm2Xml dcm2xml, CommandLine cl) throws Exception {<NEW_LINE>if (cl.hasOption("b")) {<NEW_LINE>dcm2xml.setIncludeBulkData(IncludeBulkData.YES);<NEW_LINE>}<NEW_LINE>if (cl.hasOption("B")) {<NEW_LINE>dcm2xml.setIncludeBulkData(IncludeBulkData.NO);<NEW_LINE>}<NEW_LINE>if (cl.hasOption... | (cl.hasOption("blk-nodefs")); |
1,561,014 | protected void deactivate(ComponentContext context) {<NEW_LINE>final boolean trace = TraceComponent.isAnyTracingEnabled();<NEW_LINE>// Block the progress of deactivate so that session manager is able to access the cache until it finishes stopping applications.<NEW_LINE>// The approach of blocking is copied from Databas... | CacheHashMap.tcInvoke(tcCachingProvider, "close"); |
1,750,067 | public void processConnect(final Host host, final StartupCommand cmd, final boolean forRebalance) {<NEW_LINE>if (cmd instanceof StartupRoutingCommand) {<NEW_LINE>if (((StartupRoutingCommand) cmd).getHypervisorType() == HypervisorType.KVM || ((StartupRoutingCommand) cmd).getHypervisorType() == HypervisorType.LXC) {<NEW_... | "Failed to send host params on host: " + host.getId()); |
1,695,779 | public void onKey(KeyEvent event) {<NEW_LINE>if (Input.isKeyPressed(GLFW.GLFW_KEY_F3))<NEW_LINE>return;<NEW_LINE>// TODO: This is very bad but you all can cope :cope:<NEW_LINE>GUIMove guiMove = Modules.get().get(GUIMove.class);<NEW_LINE>if (mc.currentScreen != null && !guiMove.isActive())<NEW_LINE>return;<NEW_LINE>if (... | options.leftKey.setPressed(false); |
1,525,793 | private Page findPage(final SecurityContext securityContext, final String path, final EditMode edit) throws FrameworkException {<NEW_LINE>final PropertyKey<String> pathKey = StructrApp.key(Page.class, "path");<NEW_LINE>final PropertyKey<String> nameKey = StructrApp.key(Page.class, "name");<NEW_LINE>final PropertyMap at... | sort(pathKey).getAsList(); |
455,924 | public void onMediaDone() {<NEW_LINE>trackVideoProcessingEvents(false, null);<NEW_LINE>long originalFileSize = FileUtils.length(mInputPath);<NEW_LINE>long optimizedFileSize = FileUtils.length(mOutputPath);<NEW_LINE>long savings = originalFileSize - optimizedFileSize;<NEW_LINE>double savingsKb = <MASK><NEW_LINE>String s... | Math.abs(savings) / 1024; |
932,347 | public void registerHandler(final String type, final BiFunction<Address, byte[], byte[]> handler, final Executor executor) {<NEW_LINE>handlers.register(type, (message, connection) -> executor.execute(() -> {<NEW_LINE>byte[] responsePayload = null;<NEW_LINE>ProtocolReply.Status status = ProtocolReply.Status.OK;<NEW_LINE... | message.sender(), e); |
584,971 | private void openNativeFileManager(URL url) {<NEW_LINE>String executable;<NEW_LINE>if (Utilities.isWindows()) {<NEW_LINE>// NOI18N<NEW_LINE>executable = "explorer.exe";<NEW_LINE>} else if (Utilities.isMac()) {<NEW_LINE>// NOI18N<NEW_LINE>executable = "open";<NEW_LINE>} else {<NEW_LINE>assert Utilities.isUnix() : "Unix ... | redirectErrorStream(true).call(); |
739,746 | public Fragment instantiate(FragmentActivity activity, Fragment parent) {<NEW_LINE>if (mInstance != null) {<NEW_LINE>return mInstance;<NEW_LINE>}<NEW_LINE>if (mArguments != null) {<NEW_LINE>mArguments.setClassLoader(activity.getClassLoader());<NEW_LINE>}<NEW_LINE>mInstance = Fragment.instantiate(activity, mClassName, m... | FragmentManagerImpl.TAG, "Instantiated fragment " + mInstance); |
991,465 | // auto-generated, see spoon.generating.ReplacementVisitorGenerator<NEW_LINE>@java.lang.Override<NEW_LINE>public <T> void visitCtBinaryOperator(final spoon.reflect.code.CtBinaryOperator<T> operator) {<NEW_LINE>replaceInListIfExist(operator.getAnnotations(), new spoon.support.visitor.replace.ReplacementVisitor.CtElement... | .ReplacementVisitor.CtBinaryOperatorRightHandOperandReplaceListener(operator)); |
1,124,543 | public <R> void extract(final ModelSchemaExtractionContext<R> extractionContext) {<NEW_LINE>ModelType<R> type = extractionContext.getType();<NEW_LINE>if (!isTarget(type)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CandidateMethods candidateMethods = ModelSchemaUtils.getCandidateMethods(type.getRawClass());<NEW_LINE>Iterabl... | aspectExtractor.extract(extractionContext, extractedProperties); |
1,614,530 | private void assertX509Token(X509Token token) {<NEW_LINE>String namespace = token.getName().getNamespaceURI();<NEW_LINE>if (token.isRequireEmbeddedTokenReference()) {<NEW_LINE>assertPolicy(new QName(namespace, SPConstants.REQUIRE_EMBEDDED_TOKEN_REFERENCE));<NEW_LINE>}<NEW_LINE>if (token.isRequireIssuerSerialReference()... | ().name())); |
37,050 | void writeHttpEndpoint(ServerConfiguration sourceConfig) throws XMLStreamException, IOException {<NEW_LINE>// size = 1<NEW_LINE>List<HttpEndpoint> endpoints = sourceConfig.getHttpEndpoints();<NEW_LINE>if (endpoints != null && endpoints.size() > 0) {<NEW_LINE>HttpEndpoint <MASK><NEW_LINE>indent(1);<NEW_LINE>xmlStreamWri... | ep = endpoints.get(0); |
1,199,038 | public PendingAnimation createAllTasksDismissAnimation(long duration) {<NEW_LINE>if (FeatureFlags.IS_STUDIO_BUILD && mPendingAnimation != null) {<NEW_LINE>throw new IllegalStateException("Another pending animation is still running");<NEW_LINE>}<NEW_LINE>PendingAnimation anim = new PendingAnimation(duration);<NEW_LINE>i... | (i), duration, anim); |
151,164 | private void adjustApplicationTrafficSecrets() {<NEW_LINE>HKDFAlgorithm hkdfAlgortihm = AlgorithmResolver.getHKDFAlgorithm(tlsContext.getChooser().getSelectedCipherSuite());<NEW_LINE>try {<NEW_LINE>Mac mac = Mac.getInstance(hkdfAlgortihm.<MASK><NEW_LINE>if (tlsContext.getChooser().getTalkingConnectionEnd() == Connectio... | getMacAlgorithm().getJavaName()); |
1,038,123 | public void marshall(AwsAutoScalingLaunchConfigurationDetails awsAutoScalingLaunchConfigurationDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsAutoScalingLaunchConfigurationDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<N... | awsAutoScalingLaunchConfigurationDetails.getUserData(), USERDATA_BINDING); |
1,758,482 | public boolean renderScreenshot() throws Throwable {<NEW_LINE>try {<NEW_LINE>Window window = mc.getWindow();<NEW_LINE>int widthBefore = window.getFramebufferWidth();<NEW_LINE>int heightBefore = window.getFramebufferHeight();<NEW_LINE>ForceChunkLoadingHook clrg = new ForceChunkLoadingHook(mc.worldRenderer);<NEW_LINE>if ... | CrashReport.create(e, "Creating Equirectangular Screenshot"); |
904,691 | public final void clear() {<NEW_LINE>// fill grid with background color<NEW_LINE>final int bgR = (int) (this.backgroundCol >> 16);<NEW_LINE>final int bgG = (int) ((this.backgroundCol >> 8) & 0xff);<NEW_LINE>final int bgB = (int) (this.backgroundCol & 0xff);<NEW_LINE>if (this.frame == null) {<NEW_LINE>final Graphics2D g... | = this.image.createGraphics(); |
869,250 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>logDebug("onCreate");<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>if (savedInstanceState != null) {<NEW_LINE>isContact = savedInstanceState.getBoolean("isContact", false);<NEW_LINE>inviteShown = <MASK><NEW_LINE>dialogshown = savedInstanceState.getBool... | savedInstanceState.getBoolean("inviteShown", false); |
1,096,832 | private void advanceRow() {<NEW_LINE>if (Thread.currentThread().isInterrupted()) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>throw new PalantirInterruptedException("Interrupted while iterating through results.");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>numRowsFetchedSinceLastChange++;<NEW_LINE>if (numRowsFetchedSinceLastChange >= re... | () * 2, maxFetchSize)); |
182,138 | private void parseBody(DataDictionary dd, boolean doValidation) throws InvalidMessage {<NEW_LINE>StringField field = extractField(dd, this);<NEW_LINE>while (field != null) {<NEW_LINE>if (isTrailerField(field.getField())) {<NEW_LINE>pushBack(field);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isHeaderField(field.getField()... | TAG_SPECIFIED_OUT_OF_REQUIRED_ORDER, field.getTag()); |
434,038 | // this process might run for some time and comes with its own trx management<NEW_LINE>@RunOutOfTrx<NEW_LINE>@Override<NEW_LINE>protected String doIt() throws Exception {<NEW_LINE>final IQueryBL queryBL = Services.get(IQueryBL.class);<NEW_LINE>final ITrxItemProcessorExecutorService trxItemProcessorExecutorService = Ser... | Services.get(ICoordinatorService.class); |
1,712,871 | public BackupPlan unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BackupPlan backupPlan = new BackupPlan();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (tok... | String currentParentElement = context.getCurrentParentElement(); |
1,412,460 | public boolean releaseBrokerRunInfo(int brokerId, String blockId, boolean isTimeout) {<NEW_LINE>StringBuilder sBuffer = new StringBuilder(512);<NEW_LINE>BrokerRunStatusInfo runStatusInfo = brokerRunSyncManageMap.get(brokerId);<NEW_LINE>if (runStatusInfo == null) {<NEW_LINE>logger.info(sBuffer.append("[Broker Release] b... | (", release success!").toString()); |
1,360,807 | public void printActiveWork(PrintWriter writer) {<NEW_LINE>final Instant now = Instant.now();<NEW_LINE>// The max number of keys in COMMITTING or COMMIT_QUEUED status to be shown.<NEW_LINE>final int maxCommitPending = 50;<NEW_LINE>int commitPendingCount = 0;<NEW_LINE>writer.println("<table border=\"1\" " + "style=\"bor... | State state = work.getState(); |
1,038,953 | private void readFromXMLAndSetFieldVal(Object obj, FieldSpec<XMLAnn> spec, Node node, String tag, String attribute) throws Exception {<NEW_LINE>Pair<String, String> keyParts = getNestedKeyParts(tag);<NEW_LINE>if (keyParts != null) {<NEW_LINE>String subKey = keyParts.first;<NEW_LINE>try {<NEW_LINE>Node childTag = getChi... | attribute, new IllegalArgumentException("No node.")); |
577,636 | private boolean initializeProperty(Map<String, ?> config, String property) {<NEW_LINE>boolean failed = false;<NEW_LINE>List<RequestConfigElement> <MASK><NEW_LINE>for (Map.Entry<String, ?> entry : config.entrySet()) {<NEW_LINE>try {<NEW_LINE>RequestConfigElement element = RequestConfigElement.parse(property, entry.getKe... | elements = new ArrayList<>(); |
1,463,989 | public static void operator2(InterleavedS32 imgA, Function2_S32 function, InterleavedS32 imgB, InterleavedS32 output) {<NEW_LINE>InputSanityCheck.checkSameShape(imgA, imgB);<NEW_LINE>output.reshape(<MASK><NEW_LINE>int columns = imgA.width * imgA.numBands;<NEW_LINE>int N = imgA.width * imgA.height;<NEW_LINE>if (BoofConc... | imgA.width, imgA.height); |
1,300,603 | public SuppressionOptions unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SuppressionOptions suppressionOptions = new SuppressionOptions();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =... | )).unmarshall(context)); |
322,623 | private static CompletionProvider<CompletionParameters> typeCompletionProvider() {<NEW_LINE>return new CompletionProvider<CompletionParameters>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void addCompletions(@Nullable CompletionParameters completionParameters, ProcessingContext processingContext, @Nullable Comp... | PsiElement element = completionParameters.getPosition(); |
618,524 | public Observable<ServiceResponseWithHeaders<Page<CloudJobSchedule>, JobScheduleListHeaders>> call(ServiceResponseWithHeaders<Page<CloudJobSchedule>, JobScheduleListHeaders> page) {<NEW_LINE>String nextPageLink = page.body().nextPageLink();<NEW_LINE>if (nextPageLink == null) {<NEW_LINE>return Observable.just(page);<NEW... | (listNextWithServiceResponseAsync(nextPageLink, jobScheduleListNextOptions)); |
1,480,725 | public Response introspect(String token) {<NEW_LINE>try {<NEW_LINE>AccessToken accessToken = verifyAccessToken(token);<NEW_LINE>ObjectNode tokenMetadata;<NEW_LINE>if (accessToken != null) {<NEW_LINE>tokenMetadata = JsonSerialization.createObjectNode(accessToken);<NEW_LINE>tokenMetadata.put("client_id", accessToken.getI... | "username", userModel.getUsername()); |
1,675,174 | public NeuralNetwork<MomentumBackpropagation> createNeuralNetwork(Integer inValueCount, Integer outValueCount, Integer hiddenLayerCount) {<NEW_LINE>NeuronProperties inputNeuronProperties = new NeuronProperties(InputNeuron.class, Linear.class);<NEW_LINE>NeuronProperties hiddenNeuronProperties = new NeuronProperties(Inpu... | LayerFactory.createLayer(outValueCount, outputNeuronProperties); |
694,965 | public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>tsModelPackage = modelPackage.replaceAll("\\.", "/");<NEW_LINE>String tsApiPackage = apiPackage.replaceAll("\\.", "/");<NEW_LINE>String modelRelativeToRoot = getRelativeToRoot(tsModelPackage);<NEW_LINE>String apiRelativeToRoot = getRelativeToRoot(tsApiP... | additionalProperties.put("apiRelativeToRoot", apiRelativeToRoot); |
782,771 | public void processCreateMaterializedView(CreateMaterializedViewStmt addMVClause, Database db, OlapTable olapTable) throws DdlException, AnalysisException {<NEW_LINE>olapTable.writeLockOrDdlException();<NEW_LINE>try {<NEW_LINE>olapTable.checkStableAndNormal(db.getClusterName());<NEW_LINE>if (olapTable.existTempPartitio... | mvColumns = checkAndPrepareMaterializedView(addMVClause, olapTable); |
271,843 | public void selectAll() {<NEW_LINE>if (getSelectionMode() == SelectionMode.SINGLE) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>quietClearSelection();<NEW_LINE>List<TablePosition<ObservableList<SpreadsheetCell>, ?>> indices = new ArrayList<>();<NEW_LINE>TableColumn<ObservableList<SpreadsheetCell>, ?> column;<NEW_LINE>TablePo... | selectedRows = new ArrayList<>(); |
660,420 | private static void onMainThreadPriorityModified(int priorityBefore, int priorityAfter) {<NEW_LINE>if (sMainThreadPriorityModifiedListener != null) {<NEW_LINE>sMainThreadPriorityModifiedListener.onMainThreadPriorityModified(priorityBefore, priorityAfter);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>TracePlugin ... | ).getPluginByClass(TracePlugin.class); |
1,614,055 | private void onBlocked() {<NEW_LINE>if (DEBUG) {<NEW_LINE>Log.d(TAG, "onBlocked() called");<NEW_LINE>}<NEW_LINE>if (!isProgressLoopRunning()) {<NEW_LINE>startProgressLoop();<NEW_LINE>}<NEW_LINE>// if we are e.g. switching players, hide controls<NEW_LINE>hideControls(DEFAULT_CONTROLS_DURATION, 0);<NEW_LINE><MASK><NEW_LI... | binding.playbackSeekBar.setEnabled(false); |
352,144 | // [END maps_current_place_on_options_item_selected]<NEW_LINE>// [START maps_current_place_on_map_ready]<NEW_LINE>@Override<NEW_LINE>public void onMapReady(GoogleMap map) {<NEW_LINE>this.map = map;<NEW_LINE>// [START_EXCLUDE]<NEW_LINE>// [START map_current_place_set_info_window_adapter]<NEW_LINE>// Use a custom info wi... | setText(marker.getTitle()); |
929,745 | public static void test() throws Exception {<NEW_LINE>int spout_Parallelism_hint = JStormUtils.parseInt(conf.get(TOPOLOGY_SPOUT_PARALLELISM_HINT), 1);<NEW_LINE>int count_Parallelism_hint = JStormUtils.parseInt(conf.get(TOPOLOGY_COUNT_PARALLELISM_HINT), 1);<NEW_LINE>TopologyBuilder builder = new TopologyBuilder();<NEW_L... | , new FastRandomSentenceSpout(), spout_Parallelism_hint); |
488,141 | public static boolean isModifiedEtag(HttpServletRequest request, HttpServletResponse response, String assetId, long _lastModified, long fileSize) {<NEW_LINE>int _daysCache = Config.getIntProperty("asset.cache.control.max.days", 30);<NEW_LINE>GregorianCalendar expiration = new GregorianCalendar();<NEW_LINE>expiration.ad... | java.util.Date(_lastModified); |
760,218 | static int multiplyAndSubtract(int[] a, int start, int[] b, int bLen, int c) {<NEW_LINE>long carry0 = 0;<NEW_LINE>long carry1 = 0;<NEW_LINE>for (int i = 0; i < bLen; i++) {<NEW_LINE>carry0 = TMultiplication.unsignedMultAddAdd(b[i], c, (int) carry0, 0);<NEW_LINE>carry1 = (a[start + i] & 0xffffffffL) - (carry0 & 0xffffff... | int) (carry1 >> 32); |
427,446 | private PrivateKey loadPrivateKey(String keyFile) throws IOException, GeneralSecurityException {<NEW_LINE>KeyFactory keyFactory = KeyFactory.getInstance("RSA");<NEW_LINE>try (InputStream is = Files.newInputStream(Paths.get(keyFile))) {<NEW_LINE>String content = IOUtils.toString(is, StandardCharsets.UTF_8);<NEW_LINE>con... | buf = OpenSslKey.convertPrivateKey(buf); |
834,765 | public void bindThread(@NonNull ThreadRecord thread, @NonNull GlideRequests glideRequests, @NonNull Locale locale, @NonNull Set<Long> typingThreads, @NonNull ConversationSet selectedConversations, @Nullable String highlightSubstring) {<NEW_LINE>observeRecipient(thread.getRecipient().live());<NEW_LINE>observeDisplayBody... | archivedView.setVisibility(View.GONE); |
1,060,003 | private void refreshProgramList() {<NEW_LINE>Bridge bridge = getBridge();<NEW_LINE>if (bridge != null && bridge.getStatus() == ThingStatus.ONLINE) {<NEW_LINE>XmlTVHandler handler = (XmlTVHandler) bridge.getHandler();<NEW_LINE>if (handler != null) {<NEW_LINE>handler.getXmlFile().ifPresentOrElse(tv -> {<NEW_LINE>String c... | , ThingStatusDetail.NONE, "@text/no-file-available")); |
420,608 | private String handleParameters(HttpServletRequest request) {<NEW_LINE>List<InternetRadio> radios = settingsService.getAllInternetRadios(true);<NEW_LINE>for (InternetRadio radio : radios) {<NEW_LINE>Integer id = radio.getId();<NEW_LINE>String streamUrl = getParameter(request, "streamUrl", id);<NEW_LINE>String homepageU... | (request.getParameter("homepageUrl")); |
638,864 | public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {<NEW_LINE>_configs = _configDao.getConfiguration("Network", params);<NEW_LINE>_allowSubdomainNetworkAccess = Boolean.valueOf(_configs.get(Config.SubDomainNetworkAccess.key()));<NEW_LINE>_executeInSequenceNtwkElmtCmd = Boole... | getVpcId(), Op.EQ); |
825,799 | public com.squareup.okhttp.Call putDeviceCall(String albertaApiKey, String _id, DeviceToCreate body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// create ... | String[] localVarAccepts = { "application/json" }; |
801,452 | public void onTransitionEnd(Object sourceState, Object targetState, Object event, Object context, StateMachine<?, ?, ?, ?> fsm) {<NEW_LINE>waitIfBusyStat();<NEW_LINE>String tKey = getTransitionKey(sourceState, targetState, event, context);<NEW_LINE>long delta = transitionWatches.get(fsm.getIdentifier()).stop().elapsed(... | tKey, new AtomicLong(0)); |
1,173,646 | private static void doInvokeClosureBufferRet(Pointer ret, WordPointer args, ClosureData user) {<NEW_LINE>NativeClosure closure = lookup(user);<NEW_LINE>Target_com_oracle_truffle_nfi_backend_libffi_NativeArgumentBuffer_Pointer retBuffer = new Target_com_oracle_truffle_nfi_backend_libffi_NativeArgumentBuffer_Pointer(ret.... | closure.call(args, retBuffer); |
1,779,289 | private void computeCirclePoints() {<NEW_LINE>// handle degenerate or trivial cases<NEW_LINE>if (input.isEmpty()) {<NEW_LINE>extremalPts = new Coordinate[0];<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (input.getNumPoints() == 1) {<NEW_LINE>Coordinate[] pts = input.getCoordinates();<NEW_LINE>extremalPts = new Coordinate[] ... | 0, hullPts.length - 1); |
1,417,508 | private void buildUI() {<NEW_LINE>editor = new GroovyEditor(new ScriptStepGroovyEditorModel());<NEW_LINE>logArea = new JLogList("Groovy Test Log");<NEW_LINE>logArea.addLogger(groovyStep.getName() + <MASK><NEW_LINE>logArea.getLogList().addMouseListener(new MouseAdapter() {<NEW_LINE><NEW_LINE>public void mouseClicked(Mou... | "#" + hashCode(), true); |
611,753 | protected void performRewrite(TransformationContext ctx) throws Exception {<NEW_LINE>WorkingCopy javac = ctx.getWorkingCopy();<NEW_LINE>DocTreePath path = dtph.resolve(javac);<NEW_LINE>if (path == null) {<NEW_LINE>LOG.log(Level.WARNING, "Cannot resolve DocTreePathHandle: {0}", dtph);<NEW_LINE>return;<NEW_LINE>}<NEW_LIN... | DocCommentTree docComment = path.getDocComment(); |
125,486 | public AirbyteConnectionStatus check(final JsonNode config) {<NEW_LINE>try {<NEW_LINE>final String testTopic = config.has("test_topic") ? config.get("test_topic").asText() : "";<NEW_LINE>if (!testTopic.isBlank()) {<NEW_LINE>final KafkaSourceConfig kafkaSourceConfig = KafkaSourceConfig.getKafkaSourceConfig(config);<NEW_... | (Pattern.compile(testTopic)); |
95,225 | public LinkFilesResult linkAssociatedFiles(List<BibEntry> entries, NamedCompound ce) {<NEW_LINE>LinkFilesResult result = new LinkFilesResult();<NEW_LINE>for (BibEntry entry : entries) {<NEW_LINE>List<LinkedFile> linkedFiles = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>linkedFiles = findAssociatedNotLinkedFiles(entry);<... | newVal = FileFieldWriter.getStringRepresentation(linkedFile); |
1,698,609 | protected String renderFormData(FormData formData) {<NEW_LINE>if (formData == null || (formData.getFormFields() == null || formData.getFormFields().isEmpty()) && (formData.getFormProperties() == null || formData.getFormProperties().isEmpty())) {<NEW_LINE>return null;<NEW_LINE>} else {<NEW_LINE>HtmlElementWriter formEle... | ).attribute(ROLE_ATTRIBUTE, FORM_ROLE); |
1,328,400 | public void handleInboundDisconnect(@NotNull final ChannelHandlerContext ctx, @NotNull final DISCONNECT disconnect) {<NEW_LINE>final Channel channel = ctx.channel();<NEW_LINE>final ClientConnection clientConnection = channel.attr(ChannelAttributes.CLIENT_CONNECTION).get();<NEW_LINE>final String clientId = clientConnect... | ClientContextImpl clientContext = clientConnection.getExtensionClientContext(); |
1,741,848 | final GetDomainNameResult executeGetDomainName(GetDomainNameRequest getDomainNameRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDomainNameRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
320,257 | public void deleteWorklogWithNewRemainingEstimate(java.lang.String in0, java.lang.String in1, java.lang.String in2) throws java.rmi.RemoteException, com.atlassian.jira.rpc.exception.RemotePermissionException, com.atlassian.jira.rpc.exception.RemoteValidationException, com.atlassian.jira.rpc.exception.RemoteException {<... | { in0, in1, in2 }); |
1,069,599 | public static void repackage(File srcFile, File dstFile, DeleteTargetChecker deleteTargetChecker, Set<String> shadePatterns, boolean scanZip, boolean nested, boolean debug, Charset altCharset) throws IOException {<NEW_LINE>Set<String> entryNames = new HashSet<String>();<NEW_LINE>ZipFile srcZipFile = null;<NEW_LINE>ZipO... | newEntry.setMethod(ZipEntry.STORED); |
1,660,217 | public void init() throws LoadBalanceException {<NEW_LINE>Backend be = infoService.getBackend(beId);<NEW_LINE>if (be == null) {<NEW_LINE>throw new LoadBalanceException("backend " + beId + " does not exist");<NEW_LINE>}<NEW_LINE>isAvailable = be.isAvailable();<NEW_LINE>ImmutableMap<String, DiskInfo> disks = be.getDisks(... | ) + diskInfo.getDataUsedCapacityB()); |
1,457,683 | public Object evaluate(EditorAdaptor vim, Queue<String> command) {<NEW_LINE>try {<NEW_LINE>StringBuilder args = new StringBuilder();<NEW_LINE>if (command.size() > 0) {<NEW_LINE>args.append(command.poll());<NEW_LINE>}<NEW_LINE>while (command.size() > 0) {<NEW_LINE>args.append(' ').append(command.poll());<NEW_LINE>}<NEW_... | SimpleLineRange.fromTextRange(vim, nativeSelection); |
164,216 | public ConsulResponse<List<ConsulService>> lookupHealthService(String serviceName, String tag, long lastConsulIndex, String token) {<NEW_LINE>ConsulResponse<List<ConsulService>> newResponse = null;<NEW_LINE>if (StringUtils.isBlank(serviceName)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ClientConnection connection = n... | >(services.size()); |
885,745 | public JDBCStatement prepareLookupStatement(@NotNull JDBCSession session, @NotNull SQLServerExtendedPropertyOwner owner, @Nullable SQLServerExtendedProperty object, @Nullable String objectName) throws SQLException {<NEW_LINE>StringBuilder sql = new StringBuilder();<NEW_LINE>sql.append("SELECT ep.*, ");<NEW_LINE>if (SQL... | 2, owner.getMinorObjectId()); |
367,167 | private static void createOAIDC(XMLStreamWriter xmlw, DatasetDTO datasetDto, String dcFlavor) throws XMLStreamException {<NEW_LINE>DatasetVersionDTO version = datasetDto.getDatasetVersion();<NEW_LINE>String persistentAgency = datasetDto.getProtocol();<NEW_LINE>String persistentAuthority = datasetDto.getAuthority();<NEW... | GlobalId(persistentAgency, persistentAuthority, persistentId); |
219,885 | void parse(String[] argArray) throws InvalidArgumentException {<NEW_LINE>for (int i = 0; i < argArray.length; i++) {<NEW_LINE>String arg = argArray[i];<NEW_LINE>if (arg.startsWith("--annotation=")) {<NEW_LINE>String argParam = arg.substring(arg.indexOf('=') + 1);<NEW_LINE>if (aclass != null) {<NEW_LINE>throw new Invali... | eTypes.add(ElementType.TYPE); |
152,562 | public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup... | localNotify, localAppType, Context.NONE); |
1,630,019 | public ListTopicRuleDestinationsResult listTopicRuleDestinations(ListTopicRuleDestinationsRequest listTopicRuleDestinationsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTopicRuleDestinationsRequest);<NEW_LINE>AWSRequestMetrics aws... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,082,137 | public static void _field(Map<?, ?> args, Closure body, PrintWriter out, ExecutableTemplate template, int fromLine) {<NEW_LINE>Map<String, Object> field = new HashMap<>();<NEW_LINE>String _arg = args.get("arg").toString();<NEW_LINE>field.put("name", _arg);<NEW_LINE>field.put("id", _arg.replace('.', '_'));<NEW_LINE>fiel... | body.setProperty("field", field); |
1,345,303 | public void onSaveInstanceState(@NonNull Bundle outState) {<NEW_LINE>super.onSaveInstanceState(outState);<NEW_LINE>outState.putInt(KEY_SELECTED_YEAR, mCalendar.get(Calendar.YEAR));<NEW_LINE>outState.putInt(KEY_SELECTED_MONTH, mCalendar.get(Calendar.MONTH));<NEW_LINE>outState.putInt(KEY_SELECTED_DAY, mCalendar.get(Calen... | outState.putSerializable(KEY_HIGHLIGHTED_DAYS_END, highlightedDaysEnd); |
1,059,098 | // save preferences by their java variable names<NEW_LINE>private void saveLuytenPreferences(Preferences prefs) throws Exception {<NEW_LINE>for (Field field : LuytenPreferences.class.getDeclaredFields()) {<NEW_LINE>if (Modifier.isStatic(field.getModifiers()))<NEW_LINE>continue;<NEW_LINE>field.setAccessible(true);<NEW_L... | Integer(0) : value)); |
807,665 | private void initialize(final File logDirectory, final String aaplName) {<NEW_LINE>if (logDirectory == null) {<NEW_LINE>captureEnabled = false;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AccessController.doPrivileged(new PrivilegedAction<Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void run() {<NEW_LINE>// Create a... | = new File(logDirectory, captureDirStr); |
867,178 | public Result restoreBackup(UUID customerUUID) {<NEW_LINE>Customer customer = Customer.getOrBadRequest(customerUUID);<NEW_LINE>RestoreBackupParams taskParams = parseJsonAndValidate(RestoreBackupParams.class);<NEW_LINE>if (taskParams.newOwner != null) {<NEW_LINE>if (!Pattern.matches(VALID_OWNER_REGEX, taskParams.newOwne... | storageLocations.add(storageInfo.storageLocation); |
1,190,353 | private void constructFailureStates() {<NEW_LINE>final Queue<PayloadState<T>> queue = new LinkedBlockingDeque<>();<NEW_LINE>final PayloadState<T> startState = getRootState();<NEW_LINE>// First, set the fail state of all depth 1 states to the root state<NEW_LINE>for (PayloadState<T> depthOneState : startState.getStates(... | > currentState = queue.remove(); |
692,712 | public static DescribeEniMonitorDataResponse unmarshall(DescribeEniMonitorDataResponse describeEniMonitorDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeEniMonitorDataResponse.setRequestId<MASK><NEW_LINE>describeEniMonitorDataResponse.setTotalCount(_ctx.integerValue("DescribeEniMonitorDataResponse.TotalCount... | (_ctx.stringValue("DescribeEniMonitorDataResponse.RequestId")); |
50,182 | protected PurityGraphBox summaryOfUnanalysedMethod(SootMethod method) {<NEW_LINE>PurityGraphBox b = new PurityGraphBox();<NEW_LINE>String c = method.getDeclaringClass().toString();<NEW_LINE>String m = method.getName();<NEW_LINE>// impure with side-effect, unless otherwise specified<NEW_LINE>b.g = <MASK><NEW_LINE>for (S... | PurityGraph.conservativeGraph(method, true); |
139,063 | // *************************** INTERFACE METHODS *****************************<NEW_LINE>@Override<NEW_LINE>public TopicPublisher createPublisher(Topic topic) throws JMSException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "createPublisher", topic);<NEW_LINE... | this, tc, "createPublisher", jmsTopicPublisher); |
1,265,252 | private void addCallbackBuffer(byte[] buffer) {<NEW_LINE>if (--fps_count == 0) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>if (fps_last != -42) {<NEW_LINE>float fps = fps_max_count * 1000.f / (now - fps_last);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>Log.<MASK><NEW_LINE>fps_max_count = (int) (5.f * fps);<NEW_LIN... | i(TAG, "fps: " + fps); |
1,214,405 | private Principal buildPrincipal(Jwt jwt) {<NEW_LINE>String subject = jwt.subject().orElseThrow((<MASK><NEW_LINE>String name = jwt.preferredUsername().orElse(subject);<NEW_LINE>Principal.Builder builder = Principal.builder();<NEW_LINE>builder.name(name).id(subject);<NEW_LINE>jwt.payloadClaims().forEach((key, jsonValue)... | ) -> new JwtException("JWT does not contain subject claim, cannot create principal.")); |
667,988 | final UpdateReceiptRuleResult executeUpdateReceiptRule(UpdateReceiptRuleRequest updateReceiptRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateReceiptRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
441,651 | public void writeTo(StreamOutput out) throws IOException {<NEW_LINE>super.writeTo(out);<NEW_LINE>indices.writeTo(out);<NEW_LINE>if (out.getVersion().before(LegacyESVersion.V_7_7_0)) {<NEW_LINE>out.writeBoolean(Metric.OS.containedIn(requestedMetrics));<NEW_LINE>out.writeBoolean(Metric<MASK><NEW_LINE>out.writeBoolean(Met... | .PROCESS.containedIn(requestedMetrics)); |
1,621,593 | private Binding findImport(char[][] compoundName, int length) {<NEW_LINE>recordQualifiedReference(compoundName);<NEW_LINE>ModuleBinding module = module();<NEW_LINE>Binding binding = this.environment.getTopLevelPackage(compoundName[0]);<NEW_LINE>int i = 1;<NEW_LINE>foundNothingOrType: if (binding != null) {<NEW_LINE>Pac... | compoundName, type, ProblemReasons.NotVisible); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.