idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
451,943
protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain) throws ServletException, IOException {<NEW_LINE>// Get custom metadata string from http header.<NEW_LINE>String customMetadataStr = httpServletRequest.getHeader(MetadataConstant.Heade...
LOG.error("Runtime system does not support utf-8 coding.", e);
801,138
final GetChannelMessageStatusResult executeGetChannelMessageStatus(GetChannelMessageStatusRequest getChannelMessageStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getChannelMessageStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,199,449
public boolean dynInit() throws Exception {<NEW_LINE>log.config("");<NEW_LINE>// Refresh button<NEW_LINE>CButton <MASK><NEW_LINE>refreshButton.setMargin(new Insets(1, 10, 0, 10));<NEW_LINE>refreshButton.setDefaultCapable(true);<NEW_LINE>refreshButton.addActionListener(this);<NEW_LINE>v_CreateFromPanel.getConfirmPanel()...
refreshButton = ConfirmPanel.createRefreshButton(false);
1,266,314
public CloseableReference<V> cache(final K key, final CloseableReference<V> valueRef, @Nullable final EntryStateObserver<K> observer) {<NEW_LINE>Preconditions.checkNotNull(key);<NEW_LINE>Preconditions.checkNotNull(valueRef);<NEW_LINE>maybeUpdateCacheParams();<NEW_LINE>Entry<K, V> oldExclusive;<NEW_LINE>CloseableReferen...
of(key, valueRef, observer);
395,487
final DescribeConfigurationResult executeDescribeConfiguration(DescribeConfigurationRequest describeConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
859,458
private void drawZoomLevel(Graphics2D g2d) {<NEW_LINE>String zoomLevel = null;<NEW_LINE>IMapViewManager mapViewManager = Controller.getCurrentController().getMapViewManager();<NEW_LINE>if (mapViewManager instanceof MapViewController) {<NEW_LINE>zoomLevel = ((MapViewController) mapViewManager).getItemForZoom(mapView.get...
complementaryColor(mapView.getBackground());
1,282,458
private void createBOMLine(int bomId, DefaultMutableTreeNode node) {<NEW_LINE>BOMLineWrapper sourceLine = (BOMLineWrapper) node.getUserObject();<NEW_LINE>MPPProductBOMLine targetLine = new MPPProductBOMLine(Env.getCtx(), 0, null);<NEW_LINE>targetLine.setPP_Product_BOM_ID(bomId);<NEW_LINE>targetLine.setHelp(sourceLine.g...
setM_AttributeSetInstance_ID(sourceLine.getM_AttributeSetInstance_ID());
164,189
public void showGeneratedStockMove(ActionRequest request, ActionResponse response) {<NEW_LINE>try {<NEW_LINE>Long stockCorrectionId = request.getContext().asType(StockCorrection.class).getId();<NEW_LINE>StockMove stockMove = Beans.get(StockMoveRepository.class).all().filter("self.originTypeSelect = ? AND self.originId ...
()).map());
981,540
public void run() {<NEW_LINE>Log.d(TAG, "RMD executing");<NEW_LINE>String param = getParameter(input);<NEW_LINE>File toRemove;<NEW_LINE>String errString = null;<NEW_LINE>mainblock: {<NEW_LINE>if (param.length() < 1) {<NEW_LINE>errString = "550 Invalid argument\r\n";<NEW_LINE>break mainblock;<NEW_LINE>}<NEW_LINE>toRemov...
"RMD failed: " + errString.trim());
251,060
public static void checkCompatibility(ActivityBase context) {<NEW_LINE>for (String packageName : cIncompatible) try {<NEW_LINE>ApplicationInfo appInfo = context.getPackageManager().getApplicationInfo(packageName, 0);<NEW_LINE>if (appInfo.enabled) {<NEW_LINE>String name = context.getPackageManager().getApplicationLabel(...
(R.attr.icon_launcher));
832,849
public Message createMessage(BlockFactory blockFactory, RLPList list) {<NEW_LINE>RLPList message = (RLPList) RLP.decode2(list.get(1).getRLPData()).get(0);<NEW_LINE>byte[] rlpId = list.get(0).getRLPData();<NEW_LINE>long id = rlpId == null ? 0 : BigIntegers.fromUnsignedByteArray(rlpId).longValue();<NEW_LINE>RLPList param...
param = paramsList.get(k);
1,703,574
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>output.writeInt32(1, currentNumberScheduled_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>output.writeInt32(2, numberMissch...
output.writeInt32(3, desiredNumberScheduled_);
88,357
public static CraftingStatus create(IncrementalUpdateHelper changes, CraftingCpuLogic logic) {<NEW_LINE>boolean full = changes.isFullUpdate();<NEW_LINE>ImmutableList.Builder<CraftingStatusEntry> newEntries = ImmutableList.builder();<NEW_LINE>for (var what : changes) {<NEW_LINE>long storedCount = logic.getStored(what);<...
startItems, newEntries.build());
11,767
public java.lang.String login(java.lang.String in0, java.lang.String in1) throws java.rmi.RemoteException, com.atlassian.jira.rpc.exception.RemoteAuthenticationException, com.atlassian.jira.rpc.exception.RemoteException {<NEW_LINE>if (super.cachedEndpoint == null) {<NEW_LINE>throw new org.apache.axis.NoEndPointExceptio...
java.lang.String.class);
606,619
public static void capturePictureResult(String r) {<NEW_LINE>dropEvents = false;<NEW_LINE>if (captureCallback != null) {<NEW_LINE>if (r != null) {<NEW_LINE>if (gallerySelectMultiple) {<NEW_LINE>String[] paths = Util.split(r, "\n");<NEW_LINE>int len = paths.length;<NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>if (!...
fireActionEvent(new ActionEvent(paths));
1,136,943
public void onClick(View v) {<NEW_LINE>final ListPopupWindow popup = new ListPopupWindow(v.getContext());<NEW_LINE>popup.setAnchorView(splitIntervalView);<NEW_LINE>popup.setContentWidth(AndroidUtils.dpToPx(app, 200f));<NEW_LINE>popup.setModal(true);<NEW_LINE>popup.setDropDownGravity(Gravity.RIGHT | Gravity.TOP);<NEW_LI...
getGpx(), true, false);
918,515
public UpdateThingGroupResult updateThingGroup(UpdateThingGroupRequest updateThingGroupRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateThingGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsReque...
JsonUnmarshallerContext> unmarshaller = new UpdateThingGroupResultJsonUnmarshaller();
1,024,625
private static void executeCommand(final CliCommand command, final String commandStr, final String[] args) {<NEW_LINE>final List<String> argList = new ArrayList<>(Arrays.asList(args));<NEW_LINE>argList.remove(0);<NEW_LINE>final CliEnvironment cliEnvironment;<NEW_LINE>try {<NEW_LINE>cliEnvironment = createEnv(command.ge...
"unable to establish operating environment: " + e.getMessage());
1,090,888
private static void shutdownConnectionGracefullyIfThresholdReached(Request request) {<NEW_LINE>ConnectorConfig connectorConfig = getConnector(request).connectorConfig();<NEW_LINE>int maxRequestsPerConnection = connectorConfig.maxRequestsPerConnection();<NEW_LINE>Connection connection = RequestUtils.getConnection(reques...
(createdAt + maxConnectionLifeInSeconds * 1000));
31,604
List<PartitionId> allocatePartitions(int numPartitions, String partitionClass, int replicaCountPerDatacenter, long replicaCapacityInBytes, boolean attemptNonRackAwareOnFailure) {<NEW_LINE>ArrayList<PartitionId> partitions = new ArrayList<PartitionId>(numPartitions);<NEW_LINE>int partitionsAllocated = 0;<NEW_LINE>while ...
disksToAllocate = new ArrayList<>();
1,829,424
public ExecutionResult run(final ConfigSource config) {<NEW_LINE>logger.info("Started Embulk v" + EmbulkVersion.VERSION);<NEW_LINE>final ExecSessionInternal exec = this.newExecSessionInternal(config.deepCopy<MASK><NEW_LINE>try {<NEW_LINE>return this.bulkLoader.run(exec, config);<NEW_LINE>} catch (final PartialExecution...
().getNestedOrGetEmpty("exec"));
1,180,444
public List<String> suggest(final SimpleCommand.Invocation invocation) {<NEW_LINE>final <MASK><NEW_LINE>final String[] currentArgs = invocation.arguments();<NEW_LINE>if (currentArgs.length == 0) {<NEW_LINE>return commands.entrySet().stream().filter(e -> e.getValue().hasPermission(source, new String[0])).map(Map.Entry::...
CommandSource source = invocation.source();
488,139
public void paintIcon(Component c, Graphics g2, int x, int y) {<NEW_LINE>if (!(c instanceof JMenuItem)) {<NEW_LINE>fallbackIcon.paintIcon(c, g2, x, y);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Graphics2D g = (Graphics2D) g2.create();<NEW_LINE>;<NEW_LINE>g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VAL...
RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);
1,351,858
private void init(GlobalMemory memory) {<NEW_LINE>DefaultPieDataset<String> <MASK><NEW_LINE>DefaultPieDataset<String> virtMemData = new DefaultPieDataset<>();<NEW_LINE>updateDatasets(memory, physMemData, virtMemData);<NEW_LINE>JFreeChart physMem = ChartFactory.createPieChart(PHYSICAL_MEMORY, physMemData, true, true, fa...
physMemData = new DefaultPieDataset<>();
406,040
private static Object decompose(Object value, Class clazz, Class<?> genericClass) {<NEW_LINE>Class<?> valueValidationClass = CassandraValidationClassMapper.getValidationClassInstance(genericClass, true);<NEW_LINE>TypeSerializer valueClassInstance = <MASK><NEW_LINE>Collection outputCollection = new ArrayList();<NEW_LINE...
CassandraValidationClassMapper.getValidationSerializerClassInstance(genericClass, true);
1,613,308
public Maybe<Symbol> parseSymbol(Parser parser, Scanner scanner) {<NEW_LINE>while (true) {<NEW_LINE>Scanner backup = new Scanner(scanner);<NEW_LINE>scanner.moveNextIgnoreFirst(this);<NEW_LINE>if (scanner.isEnd())<NEW_LINE>return Maybe.nothingBecause("scanner is at end of buffer");<NEW_LINE>Symbol currentToken = scanner...
int startOffset = currentToken.getStartOffset();
782,002
static ColumnValueSelector makeColumnValueSelectorWithLongDefault(final ColumnSelectorFactory metricFactory, @Nullable final String fieldName, @Nullable final Expr fieldExpression, final long nullValue) {<NEW_LINE>if ((fieldName == null) == (fieldExpression == null)) {<NEW_LINE>throw new IllegalArgumentException("Only ...
ExprEval exprEval = baseSelector.getObject();
783,295
private static String samsungSetBookmarkHandler(String requestBody, RendererConfiguration renderer) {<NEW_LINE>LOGGER.debug("Setting bookmark");<NEW_LINE>SamsungBookmark payload = getPayload(SamsungBookmark.class, requestBody);<NEW_LINE>if (payload.getPosSecond() == 0) {<NEW_LINE>// Sometimes when Samsung device is sta...
String path = file.getCanonicalPath();
991,533
public void buildFileMenu() {<NEW_LINE>rootMenu.add(fileMainMenu);<NEW_LINE>fileMainMenu.add(addResource);<NEW_LINE>fileMainMenu.add(new JSeparator());<NEW_LINE>fileMainMenu.add(newWorkSpace);<NEW_LINE>fileMainMenu.add(new JSeparator());<NEW_LINE>fileMainMenu.add(reloadResources);<NEW_LINE>fileMainMenu.add(new JSeparat...
.add(new JSeparator());
1,844,361
protected Dimension calcPreferredSize() {<NEW_LINE>Style style = getStyle();<NEW_LINE>int prefW = 0, prefH = 0;<NEW_LINE>if (style.getBorder() != null) {<NEW_LINE>prefW = Math.max(style.getBorder().getMinimumWidth(), prefW);<NEW_LINE>prefH = Math.max(style.getBorder().getMinimumHeight(), prefH);<NEW_LINE>}<NEW_LINE>if ...
).getDisplayWidth() / 2);
402,500
@Override<NEW_LINE>public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {<NEW_LINE>return new MaterialDialog.Builder(getA...
neutralText(getBuilder().mNewFolderButton);
595,956
private static final void merge(final HUPackingMaterialsCollector collectorTo, final HUPackingMaterialsCollector collectorFrom) {<NEW_LINE>//<NEW_LINE>// Add/Merge line candidates<NEW_LINE>for (final Map.Entry<Object, HUPackingMaterialDocumentLineCandidate> key2candidate : collectorFrom.key2candidates.entrySet()) {<NEW...
Object key = key2candidate.getKey();
1,784,162
String makeUniqueTokenForMachine(final SessionLabel sessionLabel, final TokenMachine machine) throws PwmUnrecoverableException, PwmOperationalException {<NEW_LINE>String tokenKey = null;<NEW_LINE>int attempts = 0;<NEW_LINE>final int maxUniqueCreateAttempts = Integer.parseInt(pwmDomain.getConfig().readAppProperty(AppPro...
(sessionLabel, () -> "generated new token random code, checking for uniqueness");
1,307,452
protected void populateChannel(final Channel channel, final Element eChannel) {<NEW_LINE>super.populateChannel(channel, eChannel);<NEW_LINE>final String channelUri = channel.getUri();<NEW_LINE>if (channelUri != null) {<NEW_LINE>eChannel.setAttribute(<MASK><NEW_LINE>}<NEW_LINE>final List<Item> items = channel.getItems()...
"about", channelUri, getRDFNamespace());
867,712
private void showAccount(AccountDescriptor selectedAccount, Constant.LaneType lane) {<NEW_LINE>App app = getApp();<NEW_LINE>AccountDescriptor currentAccount = app.getCurrentAccount();<NEW_LINE>TwitterUser cachedUser = TwitterManager.get().getFetchUserInstance().getCachedUser(currentAccount.getId());<NEW_LINE>if (cached...
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
659,951
public void testXA010(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>final TransactionManager tm = TransactionManagerFactory.getTransactionManager();<NEW_LINE>tm.begin();<NEW_LINE>final Transaction tx = tm.getTransaction();<NEW_LINE>tx.enlistResource(new XAResourceImpl().setPrepar...
.setRollbackAction(XAException.XA_HEURCOM));
350,778
// start the configuration VM if it hasn't been started yet<NEW_LINE>void maybeStartVM() {<NEW_LINE>if (isVMStarted) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>execute(spec -> {<NEW_LINE>spec.setCommand("box");<NEW_LINE>spec.setSubcommand("update");<NEW_LINE>});<NEW_LINE>// Destroying before every execution can be annoying...
setArgs("--provision", "--provider", "virtualbox");
379,071
public Subnet unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Subnet subnet = new Subnet();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (t...
int originalDepth = context.getCurrentDepth();
1,314,721
private void doFinish(String containerName, String fileName, IProgressMonitor monitor) throws CoreException {<NEW_LINE>// create a sample file<NEW_LINE>monitor.beginTask("Creating " + fileName, 2);<NEW_LINE>IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();<NEW_LINE>IResource resource = root.findMember(new...
openEditor(page, file, true);
312,837
public IRubyObject named_captures(ThreadContext context) {<NEW_LINE>check();<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>RubyHash hash = RubyHash.newHash(runtime);<NEW_LINE>if (pattern.numberOfNames() == 0)<NEW_LINE>return hash;<NEW_LINE>for (Iterator<NameEntry> i = pattern.namedBackrefIterator(); i.hasNext...
NameEntry e = i.next();
1,607,808
public ProcessorConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ProcessorConfiguration processorConfiguration = new ProcessorConfiguration();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
int originalDepth = context.getCurrentDepth();
1,170,285
private void logSummary() {<NEW_LINE>if (instancesUpdated.get() + instancesAdded.get() + instancesDropped.get() + resourcesUpdated.get() + resourcesAdded.get() + resourcesDropped.get() + partitionsDisabled.get() + partitionsEnabled.get() + partitionsReset.get() > 0) {<NEW_LINE>if (!dryRun) {<NEW_LINE>info("========Clus...
"Partitions disabled: {}", partitionsDisabled.get());
1,397,651
public CreateHostResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateHostResult createHostResult = new CreateHostResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
)).unmarshall(context));
1,831,527
public AwsS3BucketNotificationConfigurationS3KeyFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsS3BucketNotificationConfigurationS3KeyFilter awsS3BucketNotificationConfigurationS3KeyFilter = new AwsS3BucketNotificationConfigurationS3KeyFilter();<NEW_LINE><MASK><NEW_LINE>String currentP...
int originalDepth = context.getCurrentDepth();
568,919
private StringAndIndex scanImported(int start) throws FormatterException {<NEW_LINE>int i = start;<NEW_LINE>StringBuilder imported = new StringBuilder();<NEW_LINE>// At the start of each iteration of this loop, i points to an identifier.<NEW_LINE>// On exit from the loop, i points to a token after an identifier or afte...
.checkState(isIdentifierToken(i));
1,618,388
public void onMigrate(int toVersion) {<NEW_LINE>switch(toVersion) {<NEW_LINE>case 32:<NEW_LINE>setBoolean(R.string.chats_show_status_change_key, false);<NEW_LINE>break;<NEW_LINE>case 40:<NEW_LINE>String value;<NEW_LINE>try {<NEW_LINE>if (getBoolean(R.string.chats_show_status_change_key, false))<NEW_LINE>value = Applica...
getString(R.string.chats_show_status_change_default);
862,028
private void processFlags(long flagsIn) {<NEW_LINE>usesAlloca = ((flagsIn & 0x0001) == 0x0001);<NEW_LINE>flagsIn >>= 1;<NEW_LINE>usesSetJmp = ((flagsIn & 0x0001) == 0x0001);<NEW_LINE>flagsIn >>= 1;<NEW_LINE>usesLongJmp = ((flagsIn & 0x0001) == 0x0001);<NEW_LINE>flagsIn >>= 1;<NEW_LINE>usesInlineAsm = ((flagsIn & 0x0001...
(flagsIn & 0x0001) == 0x0001);
508,545
public static final void installNativeMessagingHostForFireFox(int os) {<NEW_LINE>if (os == XDMUtils.WINDOWS) {<NEW_LINE>if (!Advapi32Util.registryKeyExists(WinReg.HKEY_CURRENT_USER, "Software\\Mozilla\\NativeMessagingHosts\\xdmff.native_host")) {<NEW_LINE>if (!Advapi32Util.registryCreateKey(WinReg.HKEY_CURRENT_USER, "S...
manifestFile, nativeHostFile, BrowserType.Firefox);
1,755,320
public void parseURLLEAKRecord(String type, IndexFile fr, long currrecoff, DefaultHandler handler) throws IOException {<NEW_LINE>int reclen = indexFile.readIntAtOffset(currrecoff + 4) * BLOCK_SIZE;<NEW_LINE>byte[] rec = new byte[reclen];<NEW_LINE>fr.read(rec, 0, reclen);<NEW_LINE>handler.record((int) currrecoff, rec);<...
indexFile.readUIntAtOffset(currrecoff + 16);
1,694,822
public void onClientTick(ClientTick event) {<NEW_LINE>if (!config.collapseEntries()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final MenuEntry[] menuEntries = client.getMenuEntries();<NEW_LINE>final List<MenuEntryWithCount> newEntries = new ArrayList<>(menuEntries.length);<NEW_LINE>outer: for (int i = menuEntries.length -...
add(new MenuEntryWithCount(menuEntry));
1,335,121
public void parsingFinished(PropertiesParserState state, List<String> handledLines) {<NEW_LINE>if (handledLines.isEmpty()) {<NEW_LINE>drawActionState(state.getDrawer(), state.getGridElementSize());<NEW_LINE>} else if (handledLines.size() == 1) {<NEW_LINE>final PropertiesParserState state1 = state;<NEW_LINE>DrawHandler ...
p(0, 0)));
484,130
protected void modified(Map<?, ?> newProperties) {<NEW_LINE>final String originalProvider = (String) props.get("defaultPersistenceProvider");<NEW_LINE>final String originalDefaultJtaDataSourceJndiName = (String) props.get("defaultJtaDataSourceJndiName");<NEW_LINE>final String originalDefaultNonJtaDataSourceJndiName = (...
String) props.get("defaultNonJtaDataSourceJndiName");
1,348,245
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>this.cleanExistEntry(b...
titleToWord(business, title, entry);
1,316,640
public void randomize(final Random rnd, final List<ValueType> desiredType, final ProgramNode actual, final double minValue, final double maxValue) {<NEW_LINE>final ValueType pickedType = desiredType.get(rnd.nextInt(desiredType.size()));<NEW_LINE>final EncogProgramContext context = actual.getOwner().getContext();<NEW_LI...
= new ExpressionValue(enumType, enumIndex);
1,737,891
final DeleteTapePoolResult executeDeleteTapePool(DeleteTapePoolRequest deleteTapePoolRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTapePoolRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DeleteTapeP...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,259,364
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ContextStartEndContextPartitionSelection());<NEW_LINE>execs.add(new ContextStartEndFilterStartedFilterEndedCorrelatedOutputSnapshot());<NEW_LINE>execs.add(new ContextSta...
.add(new ContextStartEndPatternStartedPatternEnded());
1,224,115
private void selectSnapshot() {<NEW_LINE>if (mLoadingDialog == null) {<NEW_LINE>mLoadingDialog = new ProgressDialog(this);<NEW_LINE>mLoadingDialog.setMessage(getString(R.string.loading_from_cloud));<NEW_LINE>}<NEW_LINE>mLoadingDialog.show();<NEW_LINE>SnapshotCoordinator.getInstance().load(mSnapshotsClient, false).addOn...
= new ArrayList<SnapshotMetadata>();
63,538
final DeleteUsageLimitResult executeDeleteUsageLimit(DeleteUsageLimitRequest deleteUsageLimitRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUsageLimitRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
(super.beforeMarshalling(deleteUsageLimitRequest));
691,459
public boolean checkTrigger(GameEvent event, Game game) {<NEW_LINE>// check has flying<NEW_LINE>Permanent attacker = game.getPermanent(event.getSourceId());<NEW_LINE>if (attacker == null || attacker.getAbilities().contains(FlyingAbility.getInstance())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// check attacks you<N...
.getId(), game));
327,743
public void generateShippingPackages_0(@NonNull final JsonCreateShippingPackagesRequest request) {<NEW_LINE>// 1. request => shippedCandidateKeySet<NEW_LINE>final ImmutableSet<ShippedCandidateKey> shippedCandidateKeys = request.getPackageInfos().stream().map(this::extractShippedCandidateKey).collect(ImmutableSet.toImmu...
extractShippingPackagesGroupingKey(candidateKey2ShipmentId, internalName2Shipper, createPackageInfo);
805,380
public List<SBounds> listBoundingBoxes(Set<Long> roids) throws ServerException, UserException {<NEW_LINE>try (DatabaseSession session = getBimServer().getDatabase().createSession(OperationType.READ_ONLY)) {<NEW_LINE>List<SBounds> results = new ArrayList<>();<NEW_LINE>Set<Region> regions = new HashSet<>();<NEW_LINE>for ...
roid, OldQuery.getDefault());
50,909
public OpenBuilder newOpenLedgerOp() {<NEW_LINE>return new OpenBuilderBase() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public CompletableFuture<ReadHandle> execute() {<NEW_LINE>return getProgrammedFailure().thenCompose((res) -> {<NEW_LINE>int rc = validate();<NEW_LINE>if (rc != BKException.Code.OK) {<NEW_LINE>return Futu...
(new BKException.BKNoSuchLedgerExistsException());
817,975
private void readRowByte(int height, Rectangle srcRegion, int[] scanlineOffsets, int[] scanlineLengths, int compression, int xSub, int ySub, int c, byte[] rowDataByte, WritableRaster destChannel, Raster srcChannel, int y) throws IOException {<NEW_LINE>// If subsampled or outside source region, skip entire row<NEW_LINE>...
), new RLEDecoder()));
32,403
protected void updateTrackables() {<NEW_LINE>Collection<Plane> planes = surfar.frame.getUpdatedTrackables(Plane.class);<NEW_LINE>for (Plane plane : planes) {<NEW_LINE>if (plane.getSubsumedBy() != null)<NEW_LINE>continue;<NEW_LINE>float[] mat;<NEW_LINE>if (trackMatrices.containsKey(plane)) {<NEW_LINE>mat = trackMatrices...
pose.toMatrix(mat, 0);
497,049
private void serveSwaggerUiHtml(ServletRequestDetails theRequestDetails, HttpServletResponse theResponse) throws IOException {<NEW_LINE>CapabilityStatement cs = getCapabilityStatement(theRequestDetails);<NEW_LINE>String baseUrl = removeTrailingSlash(cs.getImplementation().getUrl());<NEW_LINE>theResponse.setStatus(200);...
count1 = resourceToCount.get(o1);
1,732,267
public BatchResult<Long, Greeting> batchGetBatchResult(Set<Long> ids) {<NEW_LINE>final Map<Long, Greeting> greetingMap = new HashMap<>();<NEW_LINE>greetingMap.put(0l, DB.get(0l));<NEW_LINE>if (ids.contains(1l)) {<NEW_LINE>// Return null BatchResult<NEW_LINE>return null;<NEW_LINE>} else if (ids.contains(2l)) {<NEW_LINE>...
>(null, null, null);
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...
sp.getBoolean(PREF_STATUSBAR, false);
1,062,170
public CodegenExpression evaluateCodegen(CodegenMethodScope parent, ExprSubselectEvalMatchSymbol symbols, CodegenClassScope classScope) {<NEW_LINE>if (subselect.getEvaluationType() == EPTypeNull.INSTANCE) {<NEW_LINE>return constantNull();<NEW_LINE>}<NEW_LINE>CodegenExpressionField eventToPublic = TableDeployTimeResolve...
("filtered", ref("event"));
389,674
public static void init() {<NEW_LINE>if (INIT.compareAndSet(false, true)) {<NEW_LINE>PROPERTY_BEAN_MAP.put(SERVER_PREFIX, ServerProperties.class);<NEW_LINE>PROPERTY_BEAN_MAP.put(SERVER_UNDO_PREFIX, ServerUndoProperties.class);<NEW_LINE>PROPERTY_BEAN_MAP.put(SERVER_RECOVERY_PREFIX, ServerRecoveryProperties.class);<NEW_L...
put(STORE_PREFIX, StoreProperties.class);
1,522,177
private ActionRunning.WoWork work(Business business, Date start, Date current) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Work.class);<NEW_LINE><MASK><NEW_LINE>CriteriaQuery<Date> cq = cb.createQuery(Date.class);<NEW_LINE>Root<Work> root = cq.from(Work.class);<NEW_LINE>Predicat...
CriteriaBuilder cb = em.getCriteriaBuilder();
280,128
public void optional_spec111_multicast_mustProduceTheSameElementsInTheSameSequenceToAllOfItsSubscribersWhenRequestingOneByOne() throws Throwable {<NEW_LINE>optionalActivePublisherTest(5, true, new // This test is skipped if the publisher is unbounded (never sends onComplete)<NEW_LINE>PublisherTestRun<T>() {<NEW_LINE><N...
.format("Publisher %s did not complete the stream as expected on 2nd subscriber", pub));
649,788
static /*package*/<NEW_LINE>Shape parseShapeStep(Set<Node> traversed, Map<Node, Shape> parsed, Graph shapesGraph, Node shapeNode) {<NEW_LINE>try {<NEW_LINE>// Called by Constraints<NEW_LINE>if (parsed.containsKey(shapeNode))<NEW_LINE>return parsed.get(shapeNode);<NEW_LINE>// Loop detection. Do before parsing.<NEW_LINE>...
traversed, parsed, shapesGraph, shapeNode);
307,873
public IStatus waitForIndex(final boolean enableIndexer, IProgressMonitor monitor) {<NEW_LINE>// => need to know whether the indexing is finished or not<NEW_LINE><MASK><NEW_LINE>if (!indexing) {<NEW_LINE>return Status.OK_STATUS;<NEW_LINE>}<NEW_LINE>monitor = monitor == null ? new NullProgressMonitor() : monitor;<NEW_LI...
boolean indexing = awaitingJobsCount() > 0;
974,524
void advanceCursor() {<NEW_LINE>while (cursor.compareTo(range.last()) < 0) {<NEW_LINE>synchronized (rt) {<NEW_LINE>Entry<Key, Bucket> e = rt.floorEntry(cursor);<NEW_LINE><MASK><NEW_LINE>if (!bucket.candidates.isEmpty())<NEW_LINE>break;<NEW_LINE>if (inFlight.stream().anyMatch(c -> {<NEW_LINE>Prefix bucketPrefix = bucket...
Bucket bucket = e.getValue();
893,794
private int insertEvent(EventModification em) {<NEW_LINE>Validate.<MASK><NEW_LINE>validatePaymentProxies(em.getAllowedPaymentProxies(), em.getOrganizationId());<NEW_LINE>String paymentProxies = collectPaymentProxies(em);<NEW_LINE>BigDecimal vat = em.isFreeOfCharge() ? BigDecimal.ZERO : em.getVatPercentage();<NEW_LINE>S...
notNull(em.getAvailableSeats());
831,535
private JTable createTable(final AddOnTableModel tableModel) {<NEW_LINE>final JTable table = new JTable(tableModel);<NEW_LINE>table.setTableHeader(null);<NEW_LINE>// FIXME: Java 6<NEW_LINE>// table.setAutoCreateRowSorter(true);<NEW_LINE>final int rowHeight = UITools.getDefaultLabelFont().getSize() * 5;<NEW_LINE>table.s...
table.setBackground(Color.white);
678,504
public final JBIterable<JBIterable<E>> split(final int size) {<NEW_LINE>if (size <= 0)<NEW_LINE>throw new IllegalArgumentException(size + " <= 0");<NEW_LINE>return intercept(new Function<Iterator<E>, Iterator<JBIterable<E>>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Iterator<JBIterable<E>> fun(Iterator<E> iterat...
(size)) : stop();
500,968
private void createStatusLine(Composite panel, String label, boolean enabled) {<NEW_LINE>GridData gridData;<NEW_LINE>// label<NEW_LINE>Label r3c1 = new Label(panel, SWT.NULL);<NEW_LINE>gridData = new GridData();<NEW_LINE>gridData.horizontalSpan = 1;<NEW_LINE>gridData.horizontalAlignment = GridData.END;<NEW_LINE>r3c1.se...
.getString("label.disabled", "disabled"));
1,595,260
public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.<MASK><NEW_LINE>}<NEW_LINE>String envir...
format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
1,322,679
private static Set<Long> intermediateSnapshotIdSet(List<MetadataUpdate> changes, long currentSnapshotId) {<NEW_LINE>Set<Long<MASK><NEW_LINE>Set<Long> intermediateSnapshotIds = Sets.newHashSet();<NEW_LINE>for (MetadataUpdate update : changes) {<NEW_LINE>if (update instanceof MetadataUpdate.AddSnapshot) {<NEW_LINE>// add...
> addedSnapshotIds = Sets.newHashSet();
1,611,546
public void run(RegressionEnvironment env) {<NEW_LINE>String schema = "create json schema Partner(id long, name string, since java.time.OffsetDateTime);\n" + "create json schema Client(" + "_id long,\n" + "`index` int,\n" + "guid java.util.UUID,\n" + "isActive boolean,\n" + "balance BigDecimal,\n" + "picture string,\n"...
+ "partners Partner[]\n" + ");\n" + "@public @buseventtype create json schema Clients(clients Client[]);\n" + "@name('s0') select * from Clients;\n";
1,545,908
public void storeToArrays(float[] pos, float[] tc, short[] idx, byte[] colors, int quadIdx) {<NEW_LINE>float x = x0 + alignX;<NEW_LINE>float y = y0 - alignY;<NEW_LINE>float xpw = x + width;<NEW_LINE>float ymh = y - height;<NEW_LINE>pos[0] = x;<NEW_LINE>pos[1] = y;<NEW_LINE>pos[2] = 0;<NEW_LINE>pos[3] = x;<NEW_LINE>pos[...
colorInt >> 24) & 0xff);
330,307
public void onAndroidPermissionsRequest(GeckoSession aSession, String[] permissions, Callback aCallback) {<NEW_LINE>Log.d(LOGTAG, "onAndroidPermissionsRequest: " + Arrays.toString(permissions));<NEW_LINE>ArrayList<String> missingPermissions = new ArrayList<>();<NEW_LINE>ArrayList<String> filteredPermissions = new Array...
Log.d(LOGTAG, "Android permissions granted");
108,727
public Request<GetIpamAddressHistoryRequest> marshall(GetIpamAddressHistoryRequest getIpamAddressHistoryRequest) {<NEW_LINE>if (getIpamAddressHistoryRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<GetIpamAddressHistoryRequest> request = n...
request.setHttpMethod(HttpMethodName.POST);
382,813
public void onNext(T t) {<NEW_LINE>SwitchMapSingleObserver<R> current = inner.get();<NEW_LINE>if (current != null) {<NEW_LINE>current.dispose();<NEW_LINE>}<NEW_LINE>SingleSource<? extends R> ss;<NEW_LINE>try {<NEW_LINE>ss = Objects.requireNonNull(mapper.apply(t), "The mapper returned a null SingleSource");<NEW_LINE>} c...
.getAndSet((SwitchMapSingleObserver) INNER_DISPOSED);
752,991
private void init(Context context, AttributeSet attrs) {<NEW_LINE>TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.SingleDateAndTimePicker);<NEW_LINE>final Resources resources = getResources();<NEW_LINE>setTodayText(new DateWithLabel(a.getString(R.styleable.SingleDateAndTimePicker_picker_todayText), new...
.styleable.SingleDateAndTimePicker_picker_cyclic, IS_CYCLIC_DEFAULT));
424,795
protected void stopDecoder() {<NEW_LINE>running = false;<NEW_LINE>seekTime = 0;<NEW_LINE>if (handlerThread != null) {<NEW_LINE>if (handlerThread.getLooper() != null) {<NEW_LINE>if (handlerThread.getLooper().getThread() != null) {<NEW_LINE>handlerThread.getLooper().getThread().interrupt();<NEW_LINE>}<NEW_LINE>handlerThr...
.getLooper().quit();
645,597
public void artifactsUpdated(Iterable<File> artifacts) {<NEW_LINE>Project realProject = project.get();<NEW_LINE>J2eeModuleProvider realProvider = provider.get();<NEW_LINE>if (realProject == null || realProvider == null || !MavenProjectSupport.isDeployOnSave(realProject)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MicroAppl...
submitChangedArtifacts(realProject, realProvider, realArtifacts);
31,260
public void iterate(final Processor<FilePath> iterator) {<NEW_LINE>if (myProject.isDisposed())<NEW_LINE>return;<NEW_LINE>for (VirtualFile root : myAffectedContentRoots) {<NEW_LINE>Set<FilePath> dirsByRoot = myDirtyDirectoriesRecursively.get(root);<NEW_LINE>if (dirsByRoot != null) {<NEW_LINE>for (FilePath dir : dirsByRo...
VirtualFile vFile = dir.getVirtualFile();
1,270,629
public static Cloud createCloudWithoutInitializing(BugCollection bc) {<NEW_LINE>CloudPlugin plugin = getCloudPlugin(bc);<NEW_LINE>if (plugin == null) {<NEW_LINE>LOGGER.log(Level.<MASK><NEW_LINE>return getPlainCloud(bc);<NEW_LINE>}<NEW_LINE>LOGGER.log(Level.FINE, "Using cloud plugin " + plugin.getId());<NEW_LINE>try {<N...
FINE, "default cloud " + DEFAULT_CLOUD + " not registered");
531,696
public com.amazonaws.services.voiceid.model.AccessDeniedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.voiceid.model.AccessDeniedException accessDeniedException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurrentDepth()...
voiceid.model.AccessDeniedException(null);
616,848
public SnapshotRecycleBinInfo unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>SnapshotRecycleBinInfo snapshotRecycleBinInfo = new SnapshotRecycleBinInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument...
().unmarshall(context));
759,451
public Home createHome(BridgeSettings bridgeSettings) {<NEW_LINE>homegenieMap = null;<NEW_LINE>validHomeGenie = bridgeSettings.getBridgeSettingsDescriptor().isValidHomeGenie();<NEW_LINE>log.info("HomeGenie Home created." + (validHomeGenie ? "" : " No HomeGenies configured."));<NEW_LINE>if (validHomeGenie) {<NEW_LINE>ho...
HashMap<String, HomeGenieInstance>();
1,664,626
public Address createAddress(URI uri, String displayName) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>Object[] params = { uri, displayName };<NEW_LINE>c_logger.traceEntry(this, "createAddress", params);<NEW_LINE>}<NEW_LINE>Address address = null;<NEW_LINE>try {<NEW_LINE>jain.protocol.ip.sip.address.UR...
] args = { uri, "not exist" };
665,168
final void executeRegisterActivityType(RegisterActivityTypeRequest registerActivityTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerActivityTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEven...
invoke(request, responseHandler, executionContext);
1,087,875
public void checkFlinkEnv(StorageType storageType, FlinkEnv flinkEnv) throws IOException {<NEW_LINE>String flinkLocalHome = flinkEnv.getFlinkHome();<NEW_LINE>if (flinkLocalHome == null) {<NEW_LINE>throw new ExceptionInInitializerError("[StreamX] FLINK_HOME is undefined,Make sure that Flink is installed.");<NEW_LINE>}<N...
fsOperator = FsOperator.of(storageType);
652,757
public Object pushObject(final String groupName, final String path, final ObjectWriterDelegate writerDelegate, final Serializable object, final Map<String, Serializable> extraMeta) throws DotDataException {<NEW_LINE>if (!this.existsGroup(groupName)) {<NEW_LINE>throw new IllegalArgumentException(String.format(THE_BUCKET...
toLowerCase()).toFile();
309,127
public void loadImage(Context context, final ViewHolder holder, final String url, BitmapLruCache mCache, final String title) {<NEW_LINE>// First check whether there's already a task running, if so cancel it<NEW_LINE>if (url == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BitmapDrawable wrapper = mCache.getFromMemoryCac...
holder.picture.setImageDrawable(null);
755,466
final ListMultiplexProgramsResult executeListMultiplexPrograms(ListMultiplexProgramsRequest listMultiplexProgramsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listMultiplexProgramsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
endClientExecution(awsRequestMetrics, request, response);
908,459
private static void declaredOneField(Field field, Map<Integer, List<Field>> orderFiledMap, Map<Integer, Field> indexFiledMap, Map<String, Field> ignoreMap, ExcelIgnoreUnannotated excelIgnoreUnannotated) {<NEW_LINE>ExcelIgnore excelIgnore = field.getAnnotation(ExcelIgnore.class);<NEW_LINE>if (excelIgnore != null) {<NEW_...
= excelProperty == null && excelIgnoreUnannotated != null;