idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
265,061
public boolean handle(PluginMessage packet) {<NEW_LINE>if (bungeecordMessageResponder.process(packet)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// We need to specially handle REGISTER and UNREGISTER packets. Later on, we'll write them to<NEW_LINE>// the client.<NEW_LINE>if (PluginMessageUtil.isRegister(packet)) {<NE...
error("Exception while handling plugin message {}", packet, ex);
1,574,353
public final IRubyObject collectStats(final ThreadContext context) throws IOException {<NEW_LINE>final AbstractNamespacedMetricExt pipelineMetric = metric.namespace(context, RubyArray.newArray(context.runtime, Arrays.asList(MetricKeys.STATS_KEY, MetricKeys.PIPELINES_KEY, pipelineId.asString().<MASK><NEW_LINE>pipelineMe...
intern(), QUEUE_KEY)));
203,512
public Object value(final Context scope, final Writer writer) throws IOException {<NEW_LINE>boolean blockParam <MASK><NEW_LINE>if (helper != null && !blockParam) {<NEW_LINE>Options options = new Options(handlebars, name, type, scope, emptyVar, Template.EMPTY, params(scope), hash(scope), BPARAMS, writer);<NEW_LINE>optio...
= scope.isBlockParams() && noArg;
1,059,003
public void updateSelectionAfterTrashAction() {<NEW_LINE>if (DisplayUtils.isLargeScreenLandscape(getActivity())) {<NEW_LINE>// Try to find the nearest note to the first deleted item<NEW_LINE>List<Integer> deletedNotesPositions = getSelectedNotesPositions();<NEW_LINE>int <MASK><NEW_LINE>int positionToSelect = -1;<NEW_LI...
firstDeletedNote = deletedNotesPositions.get(0);
1,773,107
public static AbstractButton exportButton(final Component parent, String tooltip, final Exportable... exportables) {<NEW_LINE>PopupButton exportPopup = new PopupButton(Icons.getIcon(GeneralIcons.SAVE_AS)) {<NEW_LINE><NEW_LINE>protected void populatePopup(JPopupMenu popup) {<NEW_LINE>for (final Exportable exportable : e...
fileChooser.setDialogType(JFileChooser.SAVE_DIALOG);
1,600,702
public void onMessageReceived(MessageEvent messageEvent) {<NEW_LINE>Log.v(TAG, "received message");<NEW_LINE>if (messageEvent.getPath().equals(KeyProperties.PATH_NOTIFICATION)) {<NEW_LINE>final DataMap map = DataMap.fromByteArray(messageEvent.getData());<NEW_LINE>Intent notificationIntent = new Intent(this, WearActivit...
0, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);
710,667
public void actionPerformed(final ActionEvent e) {<NEW_LINE>final FilterController filterController = FilterController.getCurrentFilterController();<NEW_LINE>final Controller controller = Controller.getCurrentController();<NEW_LINE>IMapSelection selection = controller.getSelection();<NEW_LINE>final NodeModel start = se...
final NodeModel nodeOnPath = path[i];
881,322
static Map<String, ClusterMapUtils.DcZkInfo> parseAndUpdateDcInfoFromArg(String dcs, String zkLayoutPath) throws IOException {<NEW_LINE>Map<String, ClusterMapUtils.DcZkInfo> dataCenterToZkAddress = ClusterMapUtils.parseDcJsonAndPopulateDcInfo(Utils.readStringFromFile(zkLayoutPath));<NEW_LINE>// nothing to do for cloud ...
= new HashSet<>(parsedDcSet);
1,723,005
protected void notifyAgentAncestor(Asset<?> asset, PersistenceEvent<Asset<?>> persistenceEvent) {<NEW_LINE>String parentId = asset.getParentId();<NEW_LINE>if ((asset instanceof Agent) || parentId == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String ancestorAgentId = null;<NEW_LINE>if (agentMap.containsKey(parentId)) ...
parentAsset = assetStorageService.find(parentId);
970,070
public static void main(String[] arg) throws Exception {<NEW_LINE>// Change the value of bucket to the S3 bucket that contains your image file.<NEW_LINE>// Change the value of photo to your image file name.<NEW_LINE>String photo = "input.png";<NEW_LINE>String bucket = "bucket";<NEW_LINE>int height = 0;<NEW_LINE>int wid...
).withBucket(bucket)));
48,162
public static DescribePatternPerformanceResponse unmarshall(DescribePatternPerformanceResponse describePatternPerformanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePatternPerformanceResponse.setRequestId(_ctx.stringValue("DescribePatternPerformanceResponse.RequestId"));<NEW_LINE>describePatternPerformanceRe...
(_ctx.stringValue("DescribePatternPerformanceResponse.StartTime"));
175,339
protected void updateGoalState(ClusterModel clusterModel, OptimizationOptions optimizationOptions) {<NEW_LINE>List<String> <MASK><NEW_LINE>List<String> disksBelowBalanceLowerLimit = new ArrayList<>();<NEW_LINE>for (Broker broker : brokersToBalance(clusterModel)) {<NEW_LINE>double upperLimit = _balanceUpperThresholdByBr...
disksAboveBalanceUpperLimit = new ArrayList<>();
1,372,174
public void writeToParcel(Parcel dest, int flags) {<NEW_LINE>// A map object type must be written first, since it's used in readParcel method to distinguish<NEW_LINE>// what type of object should be read from the parcel.<NEW_LINE>dest.writeInt(mMapObjectType);<NEW_LINE>dest.writeParcelable(mFeatureId, 0);<NEW_LINE>dest...
dest.writeParcelable(mLocalAdInfo, 0);
504,218
final DeleteExplainabilityResult executeDeleteExplainability(DeleteExplainabilityRequest deleteExplainabilityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteExplainabilityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,654,035
public // ------------------------------------------------------------------------<NEW_LINE>void childAdded(NodeChangeEvent evt) {<NEW_LINE>NodeChangeListener[] listeners;<NEW_LINE>Preferences childNode;<NEW_LINE>synchronized (tree.treeLock()) {<NEW_LINE>String childName = evt.getChild().name();<NEW_LINE>if (removed ||...
[nodeListeners.size()]);
1,672,740
public FilterLogEventsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FilterLogEventsResult filterLogEventsResult = new FilterLogEventsResult();<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>reader.beginObject();<NEW_LINE>while (reader.hasNext()) {<NEW_LINE><MASK><NEW_LINE...
String name = reader.nextName();
538,595
final GetDeviceInstanceResult executeGetDeviceInstance(GetDeviceInstanceRequest getDeviceInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDeviceInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
123,236
public void init(Container container) throws Exception {<NEW_LINE>managerIdentityService = container.getService(ManagerIdentityService.class);<NEW_LINE>assetStorageService = container.getService(AssetStorageService.class);<NEW_LINE>// Configure SMTP<NEW_LINE>String host = container.getConfig().getOrDefault(OR_EMAIL_HOS...
Level.SEVERE, "Failed to connect to SMTP server so disabling email notifications", e);
1,517,401
/*<NEW_LINE>* @see com.ibm.wsspi.tcpchannel.TCPReadRequestContext#read(long,<NEW_LINE>* com.ibm.wsspi.tcpchannel.TCPReadCompletedCallback, boolean, int)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public VirtualConnection read(long numBytes, TCPReadCompletedCallback readCallback, boolean forceQueue, int timeout) {<NEW_LINE...
Tr.event(tc, "Previously aborted, unable to perform read");
1,126,552
final GetSceneResult executeGetScene(GetSceneRequest getSceneRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSceneRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,380,869
public DynamicTableSink createDynamicTableSink(Context context) {<NEW_LINE>final boolean isHiveTable = HiveCatalog.isHiveTable(context.getCatalogTable().getOptions());<NEW_LINE>Map<String, String> options = context.getCatalogTable().getOptions();<NEW_LINE>// temporary table doesn't have the IS_GENERIC flag but we still...
).get(FileSystemOptions.SINK_PARALLELISM);
928,125
public void run() {<NEW_LINE>JFileChooser chooser = new JFileChooser();<NEW_LINE>// NOI18N<NEW_LINE>File tmpDir = new File(System.getProperty("java.io.tmpdir"));<NEW_LINE>chooser.setDialogTitle(Bundle.AttachDialog_RemotePackDialogCaption());<NEW_LINE>chooser.setAcceptAllFileFilterUsed(false);<NEW_LINE>chooser.setFileSe...
exportRemotePack(path, settings, jdkF);
1,411,684
public void exitSepctxpm_application(Sepctxpm_applicationContext ctx) {<NEW_LINE>if (ctx.junos_application() != null) {<NEW_LINE>JunosApplication application = toJunosApplication(ctx.junos_application());<NEW_LINE>if (!application.hasDefinition()) {<NEW_LINE>_w.redFlag(String.format("unimplemented pre-defined junos app...
name = toString(ctx.name);
461,235
public ByteBuffer transcode(List<ByteBuffer> data, ByteBuffer _out) {<NEW_LINE>for (ByteBuffer nalUnit : data) {<NEW_LINE>NIOUtils.skip(nalUnit, 4);<NEW_LINE>NALUnit marker = NALUnit.read(nalUnit);<NEW_LINE>_out.putInt(1);<NEW_LINE>marker.write(_out);<NEW_LINE>if (marker.type == NALUnitType.NON_IDR_SLICE || marker.type...
put(_pps.picParameterSetId, _pps);
89,734
public final KillStatementContext killStatement() throws RecognitionException {<NEW_LINE>KillStatementContext _localctx = new KillStatementContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 460, RULE_killStatement);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setStat...
_errHandler.reportError(this, re);
627,510
public void ffdcDumpDefault(Throwable t, IncidentStream is, Object callerThis, Object[] objs, String sourceId) {<NEW_LINE><MASK><NEW_LINE>captureDefaultInformation(is, t);<NEW_LINE>if (callerThis != null) {<NEW_LINE>// 255802<NEW_LINE>is.writeLine("SibDiagnosticModule :: Dump of callerThis (DiagnosticModule)", toFFDCSt...
is.writeLine("SIB FFDC dump for:", t);
273,891
private synchronized void initFromContext() {<NEW_LINE>if (context == null)<NEW_LINE>return;<NEW_LINE>synchronized (FILE_LOCK) {<NEW_LINE>DataObject dataObject = context.lookup(DataObject.class);<NEW_LINE>List<VCSFileProxy> filesList = new LinkedList<VCSFileProxy>();<NEW_LINE>if (dataObject instanceof DataShadow) {<NEW...
(Arrays.asList(files));
1,500,863
public CacheHitResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CacheHitResult cacheHitResult = new CacheHitResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
class).unmarshall(context));
277,040
private JClass generateChangeListener(JDefinedClass cls, Map<String, JVar> fieldMap) throws JClassAlreadyExistsException {<NEW_LINE>final JClass changeListenerInterface = getCodeModel().ref(CheckedMap.ChangeListener.class);<NEW_LINE>final JDefinedClass changeListenerClass = cls._class(JMod.PRIVATE | JMod.STATIC, "Chang...
JMod.FINAL, cls, "__objectRef");
156,458
public Object[] resolve(Method method) {<NEW_LINE>// we need to resolve from inside the<NEW_LINE>if (method.getParameterCount() > 0) {<NEW_LINE>ClassLoader old = Thread.currentThread().getContextClassLoader();<NEW_LINE>try {<NEW_LINE>CreationContextHolder holder = getCreationalContext();<NEW_LINE>ClassLoader cl = appCl...
.getDeclaredConstructor().newInstance();
992,961
private Spinner createSpinnerControl(Composite parent, String label, int type) {<NEW_LINE>createLabel(parent, label, ITabbedLayoutConstants.STANDARD_LABEL_WIDTH, SWT.CENTER);<NEW_LINE>final Spinner spinner = new Spinner(parent, SWT.BORDER);<NEW_LINE>spinner.setMinimum(0);<NEW_LINE>spinner.setMaximum(255);<NEW_LINE>spin...
int newValue = spinner.getSelection();
1,736,104
final DBSnapshot executeModifyDBSnapshot(ModifyDBSnapshotRequest modifyDBSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyDBSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Cl...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,050,507
private JsonResponseUpsertItemBuilder syncJsonContact(@NonNull final JsonRequestContactUpsertItem jsonContact, @NonNull final SyncAdvise parentSyncAdvise, @NonNull final ShortTermContactIndex shortTermIndex) {<NEW_LINE>final IdentifierString contactIdentifier = IdentifierString.of(jsonContact.getContactIdentifier());<N...
? SyncOutcome.UPDATED : SyncOutcome.NOTHING_DONE;
100,534
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.verify_backup_activity);<NEW_LINE>_mbwManager = MbwManager.getInstan...
).setEnabled(hasPrivateKeyOnClipboard());
1,395,274
public Object visitar(NoRetorne noRetorne) throws ExcecaoVisitaASA {<NEW_LINE>TipoDado tipoRetornoFuncao = TipoDado.VAZIO;<NEW_LINE>if (noRetorne.getExpressao() != null) {<NEW_LINE>TipoDado tipoExpressaoRetorno = TipoDado.VAZIO;<NEW_LINE>try {<NEW_LINE>noRetorne.<MASK><NEW_LINE>tipoExpressaoRetorno = (TipoDado) noRetor...
setPai(funcaoAtual.getOrigemDoSimbolo());
112,793
private void runAssertionMapWithinMapExists(RegressionEnvironment env) {<NEW_LINE>String statementText = "@name('s0') select " + "exists(innermap.int?) as t0, " + "exists(innermap.innerTwo?.nested) as t1, " + "exists(innermap.innerTwo?.innerThree.nestedTwo) as t2, " + "exists(dynamicOne?) as t3, " + "exists(dynamicTwo?...
HashMap<String, Object>();
227,689
final CreatePartitionIndexResult executeCreatePartitionIndex(CreatePartitionIndexRequest createPartitionIndexRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPartitionIndexRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreatePartitionIndex");
239,915
public void paintIcon(Component c, Graphics g, int x, int y) {<NEW_LINE>x = (c.getWidth() - getIconWidth()) / 2;<NEW_LINE>y = (c.getHeight() - getIconHeight()) / 2;<NEW_LINE>g.setColor(UIManager.getColor("Button.Foreground"));<NEW_LINE>g.drawLine(x + 3, y, x + 3, y);<NEW_LINE>g.drawLine(x + 2, y + 1, x + 2 + 2, y + 1);...
2 + 2, y + 9);
1,738,989
public List<FileSystemAction> determineFileSystemActions(MemoryDatabase winnersDatabase, boolean cleanupOccurred, List<PartialFileHistory> localFileHistoriesWithLastVersion) throws Exception {<NEW_LINE>this.assembler = new Assembler(config, localDatabase, winnersDatabase);<NEW_LINE>List<FileSystemAction> fileSystemActi...
get(winningFileHistory.getFileHistoryId());
1,171,949
private Credentials unlock(final PasswordCallback callback, final Host bookmark, final UserKeyPair keypair, String passphrase, final String message) throws LoginCanceledException, CryptoException {<NEW_LINE>final Credentials credentials;<NEW_LINE>if (null == passphrase) {<NEW_LINE>credentials = callback.prompt(bookmark...
().disk()));
1,312,824
public InputDestination unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InputDestination inputDestination = new InputDestination();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
JsonToken token = context.getCurrentToken();
965,034
List<Inode> createFileInternal(RpcContext rpcContext, LockedInodePath inodePath, CreateFileContext context) throws InvalidPathException, FileAlreadyExistsException, BlockInfoException, IOException, FileDoesNotExistException {<NEW_LINE>if (mWhitelist.inList(inodePath.getUri().toString())) {<NEW_LINE>context.setCacheable...
getUri().getParent());
395,697
private void releaseMessage(Message<?> message) {<NEW_LINE>String identity = ObjectUtils.getIdentityHexString(message);<NEW_LINE>this.deliveries.putIfAbsent(identity, new AtomicInteger());<NEW_LINE>try {<NEW_LINE>this.releaseHandler.handleMessage(message);<NEW_LINE>this.deliveries.remove(identity);<NEW_LINE>} catch (Ex...
, () -> "Release flow threw an exception for message: " + message);
504,489
private void runTest(String testMethod, PrintWriter pw, HttpServletRequest req, HttpServletResponse resp) {<NEW_LINE>try {<NEW_LINE>Method testM = this.getClass().getDeclaredMethod(testMethod, new Class[] { Map.class, StringBuilder.class });<NEW_LINE>Map<String, String> m = new HashMap<String, String>();<NEW_LINE>Itera...
"serverIP", req.getLocalAddr());
885,095
public void onClick(View v) {<NEW_LINE>if (mTransactionIds == null) {<NEW_LINE>dismiss();<NEW_LINE>}<NEW_LINE>long dstAccountId = mDestinationAccountSpinner.getSelectedItemId();<NEW_LINE>String dstAccountUID = AccountsDbAdapter.getInstance().getUID(dstAccountId);<NEW_LINE>TransactionsDbAdapter trxnAdapter = Transaction...
(trxnId), srcAccountUID, dstAccountUID);
1,367,112
private void updateTopicList() {<NEW_LINE>logger.info("Update topicList");<NEW_LINE>topicList.clear();<NEW_LINE>partitionLeader.clear();<NEW_LINE>// update topicList<NEW_LINE>topicList = helixMirrorMakerManager.getTopicLists();<NEW_LINE>logger.debug("TopicList: {}", topicList);<NEW_LINE>Set<String> topicSet = new HashS...
.entrySet().iterator();
1,652,924
/*<NEW_LINE>* protected byte[] serialize(Object instance) throws IOException {<NEW_LINE><MASK><NEW_LINE>* ObjectOutputStream out = new ObjectOutputStream(bytes);<NEW_LINE>* out.writeObject(instance);<NEW_LINE>* return bytes.toByteArray();<NEW_LINE>* }<NEW_LINE>*<NEW_LINE>* protected Object deserialize(byte[] bytes) thr...
* ByteArrayOutputStream bytes = new ByteArrayOutputStream();
933,009
private void configureJarManifestConventions(Project project) {<NEW_LINE>ExtractResources extractLegalResources = project.getTasks().create("extractLegalResources", ExtractResources.class);<NEW_LINE>extractLegalResources.getDestinationDirectory().set(project.getLayout().getBuildDirectory().dir("legal"));<NEW_LINE>extra...
attributes = new TreeMap<>();
1,481,492
public boolean beforeSubmit(Submit submit, SubmitContext context) {<NEW_LINE>WsrmContainer container = (WsrmContainer) submit.getRequest();<NEW_LINE>if (container.getWsrmConfig().isWsrmEnabled()) {<NEW_LINE>WsdlInterface iface = request<MASK><NEW_LINE>WsrmUtils utils = new WsrmUtils(iface.getSoapVersion());<NEW_LINE>Ws...
.getOperation().getInterface();
184,863
public void addAndRemoveRows(UIDL partialRowAdditions) {<NEW_LINE>if (partialRowAdditions == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (partialRowAdditions.hasAttribute("hide")) {<NEW_LINE>scrollBody.unlinkAndReindexRows(partialRowAdditions.getIntAttribute("firstprowix"), partialRowAdditions.getIntAttribute("nump...
, partialRowAdditions.getIntAttribute("numprows"));
80,121
protected RelationPlan visitTable(Table node, Void context) {<NEW_LINE>Query namedQuery = analysis.getNamedQuery(node);<NEW_LINE>Scope scope = analysis.getScope(node);<NEW_LINE>if (namedQuery != null) {<NEW_LINE>RelationPlan subPlan = process(namedQuery, null);<NEW_LINE>// Add implicit coercions if view query produces ...
handle = analysis.getTableHandle(node);
1,321,733
public void marshall(SendDataPoint _sendDataPoint, Request<?> request, String _prefix) {<NEW_LINE>String prefix;<NEW_LINE>if (_sendDataPoint.getTimestamp() != null) {<NEW_LINE>prefix = _prefix + "Timestamp";<NEW_LINE>java.util.Date timestamp = _sendDataPoint.getTimestamp();<NEW_LINE>request.addParameter(prefix, StringU...
Long bounces = _sendDataPoint.getBounces();
473,050
private static String expandRedirectUri(HttpServletRequest request, ClientRegistration clientRegistration, String action) {<NEW_LINE>Map<String, String> uriVariables = new HashMap<>();<NEW_LINE>uriVariables.put(<MASK><NEW_LINE>// @formatter:off<NEW_LINE>UriComponents uriComponents = UriComponentsBuilder.fromHttpUrl(Url...
"registrationId", clientRegistration.getRegistrationId());
252,776
private // This will be called when window resized or font changed.<NEW_LINE>void repaintDisplayPanelBorder() {<NEW_LINE>Dimension size = this.getDisplayPanelTextDimensions();<NEW_LINE>int cols = (int) size.getWidth();<NEW_LINE>int rows = (int) size.getHeight();<NEW_LINE><MASK><NEW_LINE>String stringCaretPosition;<NEW_...
int caretPosition = display.getCaretPosition();
1,717,039
private void handleVisualElement(Circuit c, VisualElement ve, Args args, ArrayList<VisualElement> newComponents, ArrayList<Wire> newWires, Globals globals) throws ElementNotFoundException, NodeException {<NEW_LINE><MASK><NEW_LINE>String gen = elementAttributes.get(Keys.GENERIC).trim();<NEW_LINE>try {<NEW_LINE>if (!gen....
ElementAttributes elementAttributes = ve.getElementAttributes();
1,221,560
private static IPrestoSparkService createService(SparkProcessType sparkProcessType, PackageSupplier packageSupplier, Map<String, String> configProperties, Map<String, Map<String, String>> catalogProperties, String metadataStorageType, Optional<Map<String, String>> eventListenerProperties, Optional<Map<String, String>> ...
accessControlProperties, sessionPropertyConfigurationProperties, functionNamespaceProperties, tempStorageProperties);
1,139,796
final CreatePackageImportJobResult executeCreatePackageImportJob(CreatePackageImportJobRequest createPackageImportJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPackageImportJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,598,370
// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public FunctionRequirements requirements(T target, Set<Measure> measures, CalculationParameters parameters, ReferenceData refData) {<NEW_LINE>// extract data from product<NEW_LINE>BondFutureOption option = target.ge...
requirements(future.getSecurityId());
207,240
public void putIndexValue(int indexId, final Object key, final Object value) throws OInvalidIndexEngineIdException {<NEW_LINE>final int engineAPIVersion = extractEngineAPIVersion(indexId);<NEW_LINE>final int internalIndexId = extractInternalId(indexId);<NEW_LINE>if (engineAPIVersion != 0) {<NEW_LINE><MASK><NEW_LINE>}<N...
throw new IllegalStateException("Unsupported version of index engine API. Required 0 but found " + engineAPIVersion);
1,821,126
public static DescribeDBClusterNetInfoResponse unmarshall(DescribeDBClusterNetInfoResponse describeDBClusterNetInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBClusterNetInfoResponse.setRequestId(_ctx.stringValue("DescribeDBClusterNetInfoResponse.RequestId"));<NEW_LINE>describeDBClusterNetInfoResponse.setCl...
("DescribeDBClusterNetInfoResponse.Items[" + i + "].Port"));
1,060,965
public void handleCmd(TelemetryWebSocketSessionRef session, AlarmDataCmd cmd) {<NEW_LINE>TbAlarmDataSubCtx ctx = getSubCtx(session.getSessionId(), cmd.getCmdId());<NEW_LINE>if (ctx == null) {<NEW_LINE>log.debug("[{}][{}] Creating new alarm subscription using: {}", session.getSessionId(), cmd.getCmdId(), cmd);<NEW_LINE>...
).addAndGet(end - start);
300,228
// Clone new authentication session from the given authSession. New authenticationSession will have same parent (rootSession) and will use same client<NEW_LINE>public static AuthenticationSessionModel clone(KeycloakSession session, AuthenticationSessionModel authSession) {<NEW_LINE>AuthenticationSessionModel clone = au...
setProtocol(authSession.getProtocol());
1,620,598
void emptyArray(final StructInfo si, final String className) throws IOException {<NEW_LINE>asFormatConverter(si, "ArrayFormatConverter", className, true);<NEW_LINE>List<AttributeInfo> sortedAttributes = sortedAttributes(si, true);<NEW_LINE>writeArray(className, sortedAttributes);<NEW_LINE>code.append("\t\tpublic ").app...
(className).append(" instance) throws java.io.IOException {\n");
928,666
public void inflate(Context context, ViewGroup container, boolean nightMode) {<NEW_LINE>super.inflate(context, container, nightMode);<NEW_LINE>bottomBtnBgRadius = AndroidUtils.dpToPx(context, 4);<NEW_LINE>bottomBtnTextColor = ColorUtilities.getPrimaryTextColor(context, nightMode);<NEW_LINE>activeColor = ColorUtilities....
findViewById(R.id.right_btn_container);
1,354,682
public void accept(final List<BlockWithReceipts> blocksWithReceipts) {<NEW_LINE>final long startTime = System.nanoTime();<NEW_LINE>for (final BlockWithReceipts blockWithReceipts : blocksWithReceipts) {<NEW_LINE>if (!importBlock(blockWithReceipts)) {<NEW_LINE>throw new InvalidBlockException("Failed to import block", blo...
endTime - startTime, TimeUnit.NANOSECONDS);
565,385
public DescribeNotificationConfigurationsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeNotificationConfigurationsResult describeNotificationConfigurationsResult = new DescribeNotificationConfigurationsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int...
().unmarshall(context));
511,604
public final HUEditorView createView(@NonNull final CreateViewRequest request) {<NEW_LINE>final ViewId viewId = request.getViewId();<NEW_LINE>//<NEW_LINE>// Referencing documentPaths and tableName (i.e. from where are we coming, e.g. receipt schedule)<NEW_LINE>final Set<DocumentPath> referencingDocumentPaths = request....
final String referencingTableName = extractReferencingTablename(referencingDocumentPaths);
1,486,317
private void readElement(IConfigurationElement element, String elementName) {<NEW_LINE>if (!elementName.equals(element.getName())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (TAG_CONFIGURATION.equals(element.getName())) {<NEW_LINE>String id = element.getAttribute(ATT_ID);<NEW_LINE>if (id == null || id.length() == 0) {<N...
) element.createExecutableExtension(ATT_CLASS));
74,535
public void glDrawElements(int mode, int count, int type, Buffer indices) {<NEW_LINE>if (indices instanceof ShortBuffer && type == com.badlogic.gdx.graphics.GL20.GL_UNSIGNED_SHORT) {<NEW_LINE>ShortBuffer sb = (ShortBuffer) indices;<NEW_LINE>int position = sb.position();<NEW_LINE>int oldLimit = sb.limit();<NEW_LINE>sb.l...
int oldLimit = bb.limit();
43,699
private void scanWithPredicate(Predicate predicate, BiConsumer consumer) {<NEW_LINE>// needed for optimization where key and value are not an instance of Data type<NEW_LINE>final boolean areKeyValueObjectType = !queryCacheConfig.isSerializeKeys() && InMemoryFormat.OBJECT == queryCacheConfig.getInMemoryFormat();<NEW_LIN...
queryCacheKey, queryEntry.getByPrioritizingObjectValue());
1,814,283
public PutRecordsRequestEntry unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PutRecordsRequestEntry putRecordsRequestEntry = new PutRecordsRequestEntry();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
int originalDepth = context.getCurrentDepth();
1,280,764
private static CodegenExpression makeDeepSupertypes(Set<EventType> deepSuperTypes, CodegenMethodScope parent, ModuleEventTypeInitializeSymbol symbols, CodegenClassScope classScope) {<NEW_LINE>if (deepSuperTypes == null || deepSuperTypes.isEmpty()) {<NEW_LINE>return staticMethod(Collections.class, "emptySet");<NEW_LINE>...
.size()))));
1,325,734
public static DescribeForwardTableEntriesResponse unmarshall(DescribeForwardTableEntriesResponse describeForwardTableEntriesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeForwardTableEntriesResponse.setRequestId(_ctx.stringValue("DescribeForwardTableEntriesResponse.RequestId"));<NEW_LINE>describeForwardTableEnt...
("DescribeForwardTableEntriesResponse.ForwardTableEntries[" + i + "].ForwardTableId"));
771,140
private static Map<String, String> findServiceBeanDefinitions(ConfigurableListableBeanFactory beanFactory) {<NEW_LINE>final Map<String, String> serviceBeanNames = new HashMap<>();<NEW_LINE>for (String beanName : beanFactory.getBeanDefinitionNames()) {<NEW_LINE>AutoJsonRpcServiceImpl autoJsonRpcServiceImplAnnotation = b...
paths = new ArrayList<>();
1,818,443
private void addCrusherSoapstoneRecipes(Consumer<FinishedRecipe> consumer, String basePath) {<NEW_LINE>// Polished Soapstone -> Soapstone<NEW_LINE>crushing(consumer, BYGBlocks.POLISHED_SOAPSTONE, BYGBlocks.SOAPSTONE, basePath + "from_polished");<NEW_LINE>crushing(consumer, BYGBlocks.POLISHED_SOAPSTONE_SLAB, BYGBlocks.S...
BYGBlocks.SOAPSTONE_WALL, basePath + "polished_walls_to_walls");
541,162
public JsonNode toDatabaseConfig(final JsonNode config) {<NEW_LINE>final List<String> <MASK><NEW_LINE>additionalParameters.add("oracle.jdbc.useFetchSizeWithLongColumn=true");<NEW_LINE>final Protocol protocol = config.has("encryption") ? obtainConnectionProtocol(config.get("encryption"), additionalParameters) : Protocol...
additionalParameters = new ArrayList<>();
483,515
protected final void prepare(ExecuteContext ctx) throws SQLException {<NEW_LINE>if (ctx.statement() == null) {<NEW_LINE>// [#1846] [#2265] [#2299] Users may explicitly specify how ResultSets<NEW_LINE>// created by jOOQ behave. This will override any other default behaviour<NEW_LINE>if (resultSetConcurrency != 0 || resu...
(ctx.sql()));
523,798
public IDocument createCounterDocument(final IDocument document) {<NEW_LINE>final I_C_Order order = InterfaceWrapperHelper.create(document, I_C_Order.class);<NEW_LINE>final MOrder orderPO = LegacyAdapters.convertToPO(order);<NEW_LINE>final I_C_DocType counterDocType = retrieveCounterDocTypeOrNull(document);<NEW_LINE>fi...
setIsSOTrx(counterDocType.isSOTrx());
1,817,077
public boolean handleLicenses() {<NEW_LINE>if (acceptLicense) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>InstallKernelInteractive installKernel = InstallKernelFactory.getInteractiveInstance();<NEW_LINE>try {<NEW_LINE>installKernel.resolve(this.features, false);<NEW_LINE>featureLicenses = installKernel.getFeatureLicens...
println(e.getMessage());
956,472
private void handleDescribeModel(ChannelHandlerContext ctx, FullHttpRequest req, String modelName, String modelVersion, QueryStringDecoder decoder) throws ModelNotFoundException, ModelVersionNotFoundException {<NEW_LINE>boolean customizedMetadata = Boolean.parseBoolean(NettyUtils.getParameter(decoder, "customized", "fa...
input.updateHeaders("describe", "True");
1,554,740
protected Map<TopicPartition, Long> findOffsets(Consumer<Bytes, Bytes> consumer, Map<TopicPartition, Long> seekTo, Collection<TopicPartition> partitions) {<NEW_LINE>final Map<TopicPartition, Long> beginningOffsets = consumer.beginningOffsets(partitions);<NEW_LINE>final Map<TopicPartition, Long> endOffsets = consumer.en...
get(entry.getKey());
1,148,208
final UpdateRuleMetadataResult executeUpdateRuleMetadata(UpdateRuleMetadataRequest updateRuleMetadataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateRuleMetadataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
926,024
final CreateExperienceResult executeCreateExperience(CreateExperienceRequest createExperienceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createExperienceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
813,321
protected Container createStartContentPane() {<NEW_LINE>JPanel pane = new JPanel(new BorderLayout());<NEW_LINE>menuBar = new JMenuBar();<NEW_LINE>pane.add(menuBar, BorderLayout.NORTH);<NEW_LINE>Locale loc = Locale.getDefault();<NEW_LINE>JMenu menu = new JMenu(messages<MASK><NEW_LINE>menuBar.add(menu);<NEW_LINE>JMenuIte...
.getMainMessage("mainMenu.file", loc));
1,035,658
public void finishBatchRequest(com.zeroc.Ice.OutputStream os, com.zeroc.Ice.ObjectPrx proxy, String operation) {<NEW_LINE>//<NEW_LINE>// No need for synchronization, no other threads are supposed<NEW_LINE>// to modify the queue since we set _batchStreamInUse to true.<NEW_LINE>//<NEW_LINE>assert (_batchStreamInUse);<NEW...
enqueue(_request, _batchRequestNum, _batchMarker);
803,981
private void findText() {<NEW_LINE>final int lineNumber = NbDocument.findLineNumber(sdoc, info.getSnapshot<MASK><NEW_LINE>lineOffset = NbDocument.findLineOffset(sdoc, lineNumber);<NEW_LINE>if (rangePrepared) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (dobj == null) {<NEW_LINE>sdoc.render(new Runnable() {<NEW_LINE><NEW_L...
().getOriginalOffset(startOffset));
434,017
public PiecewisePolynomialResult interpolate(final double[] xValues, final double[] yValues) {<NEW_LINE>ArgChecker.notNull(xValues, "xValues");<NEW_LINE>ArgChecker.notNull(yValues, "yValues");<NEW_LINE>ArgChecker.isTrue(xValues.length == yValues.length | xValues.length + 2 == yValues.length, "(xValues length = yValues ...
xValues[i]), "xValues containing NaN");
62,294
public View initView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = getActivity().getLayoutInflater().inflate(R.layout.dash_parking_fragment, container, false);<NEW_LINE>Typeface typeface = FontCache.getRobotoMedium(getActivity());<NEW_LINE>Button remove = view.findViewB...
double lat = parkingPosition.getLatitude();
1,446,674
public MockConfigResponse genMockConfig(MockConfigRequest request) {<NEW_LINE>MockConfigResponse returnRsp;<NEW_LINE>MockConfigExample example = new MockConfigExample();<NEW_LINE>MockConfigExample.Criteria criteria = example.createCriteria();<NEW_LINE>if (request.getId() != null) {<NEW_LINE>criteria.andIdEqualTo(reques...
long createTimeStmp = System.currentTimeMillis();
1,672,222
public XmlElement serialize(Object object) {<NEW_LINE>XmlElement struct = new XmlElement(SerializerHandler.TYPE_STRUCT);<NEW_LINE>try {<NEW_LINE>XmlElement entry, name, value;<NEW_LINE>// We can safely cast here, this Serializer should only be called when<NEW_LINE>// the parameter is a map.<NEW_LINE>@SuppressWarnings("...
(member.getValue()));
1,599,740
@RequestMapping(value = "/otaPackage", method = RequestMethod.POST)<NEW_LINE>@ResponseBody<NEW_LINE>public OtaPackageInfo saveOtaPackageInfo(@ApiParam(value = "A JSON value representing the OTA Package.") @RequestBody SaveOtaPackageInfoRequest otaPackageInfo) throws ThingsboardException {<NEW_LINE>boolean created = ota...
otaPackageInfo.setTenantId(getTenantId());
716,507
public DescribeClustersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeClustersResult describeClustersResult = new DescribeClustersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
JsonToken token = context.getCurrentToken();
845,630
private void runAssertion_A_parenthesisBstar(RegressionEnvironment env, AtomicInteger milestone) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>String[] fields = "a,b0,b1,b2".split(",");<NEW_LINE>String text = "@name('s0') select * from SupportRecogBean#keepall " + "match_recognize (" + " measures A.theString as a, B[0].theStr...
sendEventBean(new SupportRecogBean("A1"));
405,411
private Map<String, Object> fallbackToCurrentInfo(String resouceId, Map<String, Object> processinfo) {<NEW_LINE>Map<String, Object> hostAsset = null;<NEW_LINE>try {<NEW_LINE>if (currentQualysInfo.get(resouceId) != null) {<NEW_LINE>String strQid = currentQualysInfo.get(resouceId).get("id");<NEW_LINE>Long qualysId = Doub...
LOGGER.error("Error Fetching Current Info ", e);
553,522
@Timed<NEW_LINE>@ExceptionMetered<NEW_LINE>public List<String> list(@QueryParam("namePattern") final String namePattern, @QueryParam("selector") final List<String> hostSelectors) {<NEW_LINE>List<String> hosts = namePattern == null ? model.listHosts() : model.listHosts(namePattern);<NEW_LINE>if (!hostSelectors.isEmpty()...
+ selectorStr).build());
337,539
final UpdateVocabularyFilterResult executeUpdateVocabularyFilter(UpdateVocabularyFilterRequest updateVocabularyFilterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateVocabularyFilterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,714,203
protected <E extends Entity> Screen createScreen(LookupBuilder<E> builder, Screens screens) {<NEW_LINE>Screen screen;<NEW_LINE>if (builder instanceof LookupClassBuilder) {<NEW_LINE>LookupClassBuilder lookupClassBuilder = (LookupClassBuilder) builder;<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Class<? extends Scre...
getEntityClass()).getId();
1,385,140
public void readComplete(int rc, LedgerHandle lh, Enumeration<LedgerEntry> entries, Object ctx) {<NEW_LINE>CompletableFuture<List<Entry.Reader>> promise = (CompletableFuture<List<Entry.Reader>>) ctx;<NEW_LINE>if (BKException.Code.OK == rc) {<NEW_LINE>List<Entry.Reader> entryList = Lists.newArrayList();<NEW_LINE>while (...
LedgerEntry entry = entries.nextElement();
673,832
private boolean isPartitionMatch(Expression filterExpression, PartitionInfo partitionInfo) {<NEW_LINE>Function function = filterExpression.getFunctionCall();<NEW_LINE>FilterKind filterKind = FilterKind.valueOf(function.getOperator());<NEW_LINE>List<Expression> operands = function.getOperands();<NEW_LINE>switch(filterKi...
().toString()));
398,549
// Write the Work Item Data to the Excel report<NEW_LINE>private int createContent(WritableSheet sheet, List<WorkItem> list) throws WriteException {<NEW_LINE>int size = list.size();<NEW_LINE>// Add customer data to the Excel report<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>WorkItem wi = list.get(i);<NEW_LINE>/...
String des = wi.getDescription();