idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
805,270
protected void registerJobsAndTriggers() throws SchedulerException {<NEW_LINE>TransactionStatus transactionStatus = null;<NEW_LINE>if (this.transactionManager != null) {<NEW_LINE>transactionStatus = this.transactionManager.getTransaction(TransactionDefinition.withDefaults());<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (this...
this.calendars.get(calendarName);
1,606,867
private static Optional<CitationStyle> createCitationStyleFromSource(final String source, final String filename) {<NEW_LINE>if ((filename != null) && !filename.isEmpty() && (source != null) && !source.isEmpty()) {<NEW_LINE>try {<NEW_LINE>InputSource inputSource = new InputSource();<NEW_LINE>inputSource.setCharacterStre...
nodes = doc.getElementsByTagName("info");
907,319
public void paintIcon(Component c, Graphics g, int x, int y) {<NEW_LINE>final Graphics2D g2 = <MASK><NEW_LINE>try {<NEW_LINE>GraphicsUtil.setupAAPainting(g2);<NEW_LINE>g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);<NEW_LINE>g2.setColor(normalColor);<NEW_LINE>final Fon...
(Graphics2D) g.create();
1,427,855
public void mousePressed(MouseEvent ev) {<NEW_LINE>if (ev.isPopupTrigger()) {<NEW_LINE>int x = ev.getX();<NEW_LINE><MASK><NEW_LINE>TreePath path = view.getClosestPathForLocation(x, y);<NEW_LINE>if (path != null) {<NEW_LINE>LookTreeNode n = (LookTreeNode) path.getLastPathComponent();<NEW_LINE>clicked = new WeakReference...
int y = ev.getY();
263,357
protected String doIt() throws Exception {<NEW_LINE>log.info("Selection=" + isSelection() + ", M_Warehouse_ID=" + getWarehouseId() + ", C_BPartner_ID=" + getBPartnerId() + ", Consolidate=" + isConsolidateDocument() + ", IsUnconfirmed=" + isUnconfirmedInOut() + ", Movement=" + getMovementDate());<NEW_LINE>List<MDDOrder>...
parameters.add(MDDOrder.DELIVERYRULE_Manual);
1,504,446
public KeyValuePair decryptUserId(String companyId, String userId, String password) throws PortalException, SystemException {<NEW_LINE>Company company = CompanyUtil.findByPrimaryKey(companyId);<NEW_LINE>try {<NEW_LINE>userId = Encryptor.decrypt(company.getKeyObj(), userId);<NEW_LINE>} catch (EncryptorException ee) {<NE...
return new KeyValuePair(userId, password);
750,489
private void updatePriceAlertFields() {<NEW_LINE>boolean setupConfirmationSent = mobileNotificationService.isSetupConfirmationSent();<NEW_LINE>boolean selected = priceToggleButton.isSelected();<NEW_LINE>boolean disable = !setupConfirmationSent || !selected;<NEW_LINE>priceAlertHighInputTextField.setDisable(selectedPrice...
PriceAlertFilter priceAlertFilter = user.getPriceAlertFilter();
816,721
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {<NEW_LINE>StringMTag newTag = (currentTag == null) ? new RootTag(null) : new StringMTag();<NEW_LINE>newTag.parent = currentTag;<NEW_LINE>newTag.name = qName;<NEW_LINE>if (currentTag != null) {<NEW_LINE>curre...
attribute.mAttribute = sp[1];
138,136
protected synchronized void dumpState() {<NEW_LINE>if (manager.trace()) {<NEW_LINE>String str = "State:";<NEW_LINE>String unack = "";<NEW_LINE>for (int i = 0; i < transmit_unack_packets.size(); i++) {<NEW_LINE>UDPPacket packet = (UDPPacket) transmit_unack_packets.get(i);<NEW_LINE>unack += (i == 0 ? "" : ",") + packet.g...
+ ",sent_prot=" + total_protocol_sent + "/" + total_protocol_resent;
1,385,641
protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>response.setContentType("application/json");<NEW_LINE>HttpStatus code = (HttpStatus) model.get("code");<NEW_LINE>if (code == null) {<NEW_LINE>// default to 200<NEW_LINE>code = HttpStatu...
"type", rs.getType());
733,061
protected void focusInlineEditor(JsonTree node, UITextEntry inlineEditorEntry) {<NEW_LINE><MASK><NEW_LINE>inlineEditorEntry.resetValue();<NEW_LINE>if (node.getValue().getType() == JsonTreeValue.Type.KEY_VALUE_PAIR) {<NEW_LINE>// If the node is a key/value pair, select the value of the node.<NEW_LINE>if (node.getValue()...
getManager().setFocus(inlineEditorEntry);
1,612,257
private static TsModel transformBeanPropertyTypes(TsModel tsModel, TsType.Transformer transformer) {<NEW_LINE>final List<TsBeanModel> newBeans = new ArrayList<>();<NEW_LINE>for (TsBeanModel bean : tsModel.getBeans()) {<NEW_LINE>final TsType.Context context = new TsType.Context();<NEW_LINE>final List<TsPropertyModel> ne...
, method.getComments()));
1,779,989
final void parseStatusParameters() {<NEW_LINE>mStatusCode = mParameters[0];<NEW_LINE>mStatusCodeName = getStatusCodeName(mStatusCode);<NEW_LINE>mElementAddress = MeshParserUtils.unsignedBytesToInt(mParameters[1], mParameters[2]);<NEW_LINE>mModelIdentifier = MeshParserUtils.unsignedBytesToInt(mParameters[3], mParameters...
+ Integer.toHexString(keyIndex));
1,479,149
public Object calculate(Context ctx) {<NEW_LINE>if (param == null || param.isLeaf()) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("swap" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>if (param.getSubSize() != 2) {<NEW_LINE>MessageManager mm = EngineMessage.get();<N...
+ mm.getMessage("function.invalidParam"));
752,270
public static JoinFilterSplit splitFilter(JoinFilterPreAnalysis joinFilterPreAnalysis, @Nullable Filter baseFilter) {<NEW_LINE>if (joinFilterPreAnalysis.getOriginalFilter() == null || !joinFilterPreAnalysis.isEnableFilterPushDown()) {<NEW_LINE>return new JoinFilterSplit(baseFilter, joinFilterPreAnalysis.getOriginalFilt...
rightFilters = new ArrayList<>();
1,687,417
public void visitMatchingTerms(IndexReader reader, String fieldName, MatchingTermVisitor mtv) throws IOException {<NEW_LINE>int prefixLength = prefix.length();<NEW_LINE>Terms terms = MultiTerms.getTerms(reader, fieldName);<NEW_LINE>if (terms != null) {<NEW_LINE>Matcher matcher = pattern.matcher("");<NEW_LINE>try {<NEW_...
String textString = text.utf8ToString();
1,450,045
public synchronized void ack(T checkpoint) {<NEW_LINE>if (!_inFlight.remove(checkpoint)) {<NEW_LINE>LOG.error("Internal state error; could not remove checkpoint {}", checkpoint);<NEW_LINE>}<NEW_LINE>_acked.add(checkpoint);<NEW_LINE>if (_highWaterMark == null || _highWaterMark.compareTo(checkpoint) < 0) {<NEW_LINE>_high...
"Internal error: checkpoints should progress in increasing order. Resolved checkpoint as {} which is " + "less than current checkpoint of {}", max, _currentCheckpoint);
1,381,355
private void incrementCounters(SslHandshakeCompletionEvent sslHandshakeCompletionEvent, SslHandshakeInfo handshakeInfo) {<NEW_LINE>if (spectatorRegistry == null) {<NEW_LINE>// May be null for testing.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (sslHandshakeCompletionEvent.isSuccess()) {<NEW_LINE>String prot...
? handshakeInfo.getCipherSuite() : "unknown";
1,073,714
// deleteAllSuccess.<NEW_LINE>@Path("/_download/{bundleId}")<NEW_LINE>@GET<NEW_LINE>@JSONP<NEW_LINE>@NoCache<NEW_LINE>@Produces(MediaType.APPLICATION_OCTET_STREAM)<NEW_LINE>public final Response downloadBundle(@Context final HttpServletRequest request, @Context final HttpServletResponse response, @PathParam("bundleId")...
), Response.Status.INTERNAL_SERVER_ERROR);
807,381
public void decode(FacesContext facesContext, UIComponent component) {<NEW_LINE>// check for NP<NEW_LINE>super.decode(facesContext, component);<NEW_LINE>if (component instanceof UICommand) {<NEW_LINE>String clientId = component.getClientId(facesContext);<NEW_LINE>FormInfo <MASK><NEW_LINE>boolean disabled = HtmlRenderer...
formInfo = findNestingForm(component, facesContext);
1,624,106
public void mouseClicked(MouseEvent e) {<NEW_LINE>JTableHeader h = (JTableHeader) e.getSource();<NEW_LINE>TableColumnModel columnModel = h.getColumnModel();<NEW_LINE>int viewColumn = columnModel.getColumnIndexAtX(e.getX());<NEW_LINE>int column = columnModel.getColumn(viewColumn).getModelIndex();<NEW_LINE>if (column != ...
status + 4) % 3 - 1;
1,537,630
public void start() {<NEW_LINE>if (verificationStarted) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (listener != null) {<NEW_LINE>listener.onWalletSyncProcessing();<NEW_LINE>}<NEW_LINE>verificationStarted = true;<NEW_LINE>Helper.setViewVisibility(loading, View.VISIBLE);<NEW_LINE>Helper.setViewVisibility(textLoading, View...
getContext(), Lbry.KEYSTORE);
83,666
public static Instruction createDeclareWord(int w0, int w1, int w2, int w3, int w4, int w5, int w6, int w7) {<NEW_LINE>Instruction instruction = new Instruction();<NEW_LINE>instruction.setCode(Code.DECLAREWORD);<NEW_LINE>instruction.setDeclareDataCount(8);<NEW_LINE>instruction.setDeclareWordValue(0, toShort(w0));<NEW_L...
(7, toShort(w7));
1,703,273
public // return true if merge causes this context to change<NEW_LINE>boolean merge(CallLocalityContext other) {<NEW_LINE>boolean isChanged = false;<NEW_LINE>if (other.nodes.size() > nodes.size()) {<NEW_LINE>isChanged = true;<NEW_LINE>for (int i = nodes.size(); i < other.nodes.size(); i++) {<NEW_LINE>nodes.add(other<MA...
.nodes.get(i));
1,651,963
public void visitEnd() {<NEW_LINE>try {<NEW_LINE>Analyzer analyzer = new Analyzer(new SourceInterpreter());<NEW_LINE>Frame[] frames = analyzer.analyze(_classToAnalyze, this);<NEW_LINE>int index = findMethodCall(this.instructions);<NEW_LINE>if (index == -1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Frame f = frames[index];...
SourceValue) f.getStack(j);
1,089,413
final DescribeMitigationActionResult executeDescribeMitigationAction(DescribeMitigationActionRequest describeMitigationActionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeMitigationActionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,078,938
private static void exchangeCommands(String[][] commandsToExchange, final JComponent target, final JComponent source) {<NEW_LINE>InputMap targetBindings = target.getInputMap();<NEW_LINE>KeyStroke[] targetBindingKeys = targetBindings.allKeys();<NEW_LINE>ActionMap targetActions = target.getActionMap();<NEW_LINE>InputMap ...
, e.getModifiers()));
1,236,936
public void testSkipTransactionContext(String contextSvcName, PrintWriter out) throws Exception {<NEW_LINE>ContextService contextSvc = (ContextService) new InitialContext().lookup(contextSvcName);<NEW_LINE>tran.begin();<NEW_LINE>try {<NEW_LINE>Map<String, String> execPropsSkipTransactionContext = new TreeMap<String, St...
ManagedTask.TRANSACTION, ManagedTask.SUSPEND);
1,854,767
public void testCreateAndCancel() {<NEW_LINE><MASK><NEW_LINE>Timer timer = null;<NEW_LINE>svLogger.logp(Level.INFO, CLASSNAME, "", "testCreateAndCancel()");<NEW_LINE>svLogger.logp(Level.INFO, CLASSNAME, "", "Verify the cancelled timer cannot be found in the timer service.");<NEW_LINE>try {<NEW_LINE>timer = TimerHelper....
TimerService ts = ivContext.getTimerService();
1,781,744
public okhttp3.Call apiCategoriesGetCall(final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api-categories";<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NEW_LINE>List<Pair> localVarCo...
localVarHeaderParams.put("Accept", localVarAccept);
864,577
private void debugAST(final AST ast, final boolean includeHidden, final int indent) {<NEW_LINE>for (int i = 0; i < indent; i++) System.err.print(" ");<NEW_LINE>if (includeHidden) {<NEW_LINE>System.err.print(debugHiddenBefore(ast));<NEW_LINE>}<NEW_LINE>if (ast.getType() > 0 && !ast.getText().equals(TokenUtil.nameOf(a...
kid, includeHidden, indent + 1);
454,018
public void updateBackground(int x0, int y0, int x1, int y1, T frame) {<NEW_LINE>interpolationInput.setImage(frame);<NEW_LINE>final float minusLearn = 1.0f - learnRate;<NEW_LINE>final int numBands = background.getNumBands() / 2;<NEW_LINE>transform.setModel(worldToCurrent);<NEW_LINE>for (int y = y0; y < y1; y++) {<NEW_L...
meanBG = background.data[indexBG_band];
386,665
private void loadNode601() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SubscriptionDiagnosticsType_SessionId, new QualifiedName(0, "SessionId"), new LocalizedText("en", "SessionId"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(V...
this.nodeManager.addNode(node);
1,355,418
public ExperimentTemplateTargetFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExperimentTemplateTargetFilter experimentTemplateTargetFilter = new ExperimentTemplateTargetFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu...
)).unmarshall(context));
978,863
public void applicationSetVolume(String volume) {<NEW_LINE>final ApplicationSetVolume applicationsetvolume = new ApplicationSetVolume(client, httpUri);<NEW_LINE>if (volume.equals("ON")) {<NEW_LINE>this.volume = new BigDecimal(100);<NEW_LINE>} else if (volume.equals("OFF")) {<NEW_LINE>this.volume = new BigDecimal(0);<NE...
this.volume.intValue());
286,533
private void initializeFields(final FieldInitializationMode mode, final DocumentValuesSupplier documentValuesSupplier) {<NEW_LINE>logger.trace("Initializing fields: mode={}", mode);<NEW_LINE>if (_initializingMode != null) {<NEW_LINE>throw new InvalidDocumentStateException(this, "already initializing");<NEW_LINE>}<NEW_L...
initializeField(documentField, mode, documentValuesSupplier);
1,172,669
private void repaintSelection(boolean focused) {<NEW_LINE>if (Children.MUTEX.isReadAccess() || Children.MUTEX.isWriteAccess()) {<NEW_LINE>int start = getSelectionModel().getMinSelectionIndex();<NEW_LINE>int end = getSelectionModel().getMaxSelectionIndex();<NEW_LINE>if (end != -1) {<NEW_LINE>if (end != start) {<NEW_LINE...
getCellRect(start, 0, false);
231,994
protected <R> R bridgeClientRequest(ExecutionContext executionContext, JobID jobId, Supplier<CompletableFuture<R>> function, boolean ignoreError) throws JobExecutionException {<NEW_LINE>if (clusterClient == null) {<NEW_LINE>if (this.clusterID == null) {<NEW_LINE>LOG.error("Cluster information don't exist.");<NEW_LINE>t...
("Job: %s could not retrieve or create a cluster.", jobId), e);
447,028
private List<NameValueCountPair> listApplicationPair(Business business, EffectivePerson effectivePerson, Predicate predicate) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Review.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = cb.c...
collect(Collectors.toList());
1,301,941
final ActivateEventSourceResult executeActivateEventSource(ActivateEventSourceRequest activateEventSourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(activateEventSourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ActivateEventSource");
29,686
public PhysicalDatasource doSelect(String hostName, ArrayList<PhysicalDatasource> okSources) {<NEW_LINE>Map<String, WeightedRoundRobin> <MASK><NEW_LINE>if (map == null) {<NEW_LINE>Map<String, WeightedRoundRobin> newMap = new ConcurrentHashMap<>();<NEW_LINE>map = weightedRoundRobinMap.putIfAbsent(hostName, newMap);<NEW_...
map = weightedRoundRobinMap.get(hostName);
549,764
private boolean isDeviceAvailableHost(final String deviceName) {<NEW_LINE>final String availableOnSysConfigPrefix = CFG_DEVICE_PREFIX + "." + deviceName + "." + DEVICE_PARAM_AvailableOn;<NEW_LINE>final Collection<String> availableForHosts = sysConfigBL.getValuesForPrefix(<MASK><NEW_LINE>if (availableForHosts.isEmpty())...
availableOnSysConfigPrefix, clientAndOrgId).values();
1,673,548
public static void drawNode(Box bb, BufferBuilder bufferBuilder) {<NEW_LINE>double midX = (bb.minX + bb.maxX) / 2;<NEW_LINE>double midY = (bb.minY + bb.maxY) / 2;<NEW_LINE>double midZ = (bb.minZ + bb.maxZ) / 2;<NEW_LINE>bufferBuilder.vertex(midX, midY, bb.maxZ).next();<NEW_LINE>bufferBuilder.vertex(bb.minX, midY, midZ)...
midY, midZ).next();
208,407
public synchronized void addPartition(ConnectorSession session, String databaseName, String tableName, String tablePath, boolean isNewTable, Partition partition, Path currentLocation, PartitionStatistics statistics) {<NEW_LINE>setShared();<NEW_LINE>checkArgument(getPrestoQueryId(partition).isPresent());<NEW_LINE>Map<Li...
statistics, statistics), context));
810,449
public void insert(AgentInfoBo agentInfo) {<NEW_LINE>Objects.requireNonNull(agentInfo, "agentInfo");<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("insert agent info. {}", agentInfo);<NEW_LINE>}<NEW_LINE>// Assert agentId<NEW_LINE>CollectorUtils.checkAgentId(agentInfo.getAgentId());<NEW_LINE>// Assert a...
checkApplicationName(agentInfo.getApplicationName());
552,169
protected void readLine(String line, DeckCardLists deckList, FixedInfo fixedInfo) {<NEW_LINE>if (line.isEmpty() || line.startsWith("//")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean sideboard = false;<NEW_LINE>if (line.startsWith("SB:")) {<NEW_LINE>line = line.substring(3).trim();<NEW_LINE>sideboard = true;<NEW_LINE...
CardInfo cardInfo = cardLookup.get();
681,462
private void writeVariable(JRVariable variable, String variableName) {<NEW_LINE>if (variable != null) {<NEW_LINE>String resetGroupName = getGroupName(variable.getResetGroup());<NEW_LINE>String incrementGroupName = getGroupName(variable.getIncrementGroup());<NEW_LINE><MASK><NEW_LINE>write(variableName + ".setName(\"{0}\...
write("JRDesignVariable " + variableName + " = new JRDesignVariable();\n");
696,684
final ModifyVpnTunnelOptionsResult executeModifyVpnTunnelOptions(ModifyVpnTunnelOptionsRequest modifyVpnTunnelOptionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyVpnTunnelOptionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
881,002
public boolean addOrNotify(long checkpoint, ActionListener<Void> listener) {<NEW_LINE>assert checkpoint >= SequenceNumbers.NO_OPS_PERFORMED;<NEW_LINE>if (checkpoint <= lastRefreshedCheckpoint) {<NEW_LINE>listener.onResponse(null);<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>long maxIssuedSequenceNumber = maxIssuedSeqNoSu...
addCheckpointListener(checkpoint, listener, listeners);
1,473,565
private MethodDeclaration createGetterMethod(AST ast, ASTRewrite rewriter, String lineDelimiter) throws CoreException {<NEW_LINE>FieldDeclaration field = ASTNodes.getParent(fFieldDeclaration, FieldDeclaration.class);<NEW_LINE>Type type = field.getType();<NEW_LINE>MethodDeclaration result = ast.newMethodDeclaration();<N...
, body.lastIndexOf(lineDelimiter));
654,961
private void putANonZipEntry(File appFile, File tempFile) throws IOException {<NEW_LINE>try (JarFile appJar = new JarFile(appFile)) {<NEW_LINE>byte[] buffer = new byte[4096];<NEW_LINE>int len;<NEW_LINE>String newEntry = "BOOT-INF/lib/test.txt";<NEW_LINE>HashSet<String> <MASK><NEW_LINE>try (JarOutputStream jos = new Jar...
zipEntries = new HashSet<>();
260,379
protected void extractDecls(ThreadContext context) {<NEW_LINE>Ruby runtime = context.runtime;<NEW_LINE>// initialize data structures<NEW_LINE>attributes = RubyHash.newHash(runtime);<NEW_LINE>elements = RubyHash.newHash(runtime);<NEW_LINE>entities = RubyHash.newHash(runtime);<NEW_LINE>notations = RubyHash.newHash(runtim...
contentModels = RubyHash.newHash(runtime);
1,634,724
public CreateSchemaResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateSchemaResult createSchemaResult = new CreateSchemaResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
class).unmarshall(context));
272,565
void checkSpecificAccessControl() throws UnauthorizedAccessException {<NEW_LINE>String courseId = getNonNullRequestParamValue(Const.ParamsNames.COURSE_ID);<NEW_LINE>String feedbackSessionName = getNonNullRequestParamValue(Const.ParamsNames.FEEDBACK_SESSION_NAME);<NEW_LINE>FeedbackSessionAttributes fs = getNonNullFeedba...
gateKeeper.verifyAccessible(instructor, fs);
1,457,655
public void doCallback(int code, Object obj) {<NEW_LINE>if (TextUtils.equals(CALL_ID_NO_CALLBACK, mCallId)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (obj instanceof JSValue) {<NEW_LINE>JSObject jsObject = new JSObject();<NEW_LINE><MASK><NEW_LINE>jsObject.set("moduleName", mModuleName);<NEW_LINE>jsObject.set("moduleFun...
jsObject.set("result", code);
798,404
// writes the accrual schedule<NEW_LINE>private void writeAccrualSchedule(CsvRowOutputWithHeaders csv, String prefix, ScheduledSwapLeg leg) {<NEW_LINE>PeriodicSchedule accrual = leg.getAccrualSchedule();<NEW_LINE>csv.writeCell(prefix + START_DATE_FIELD, accrual.getStartDate());<NEW_LINE>accrual.getStartDateBusinessDayA...
getBusinessDayAdjustment().getConvention());
364,795
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>nameField = new javax.swing.JTextField();<NEW_LINE>// NOI18N<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.u...
DEFAULT_SIZE, Short.MAX_VALUE)));
361,136
public CallTree unknown(final long startTimeMillis) {<NEW_LINE>final SpanBo rootSpan = new SpanBo();<NEW_LINE>rootSpan.setTransactionId(new TransactionId(UNKNOWN_AGENT_ID, AGENT_START_TIME, 0));<NEW_LINE>rootSpan.setAgentId(UNKNOWN_AGENT_ID);<NEW_LINE>rootSpan.setApplicationId("UNKNOWN");<NEW_LINE>rootSpan.setStartTime...
new SpanAlign(rootSpan, true));
1,726,616
private void scaleKubernetesClusterOffering() throws CloudRuntimeException {<NEW_LINE>validateKubernetesClusterScaleOfferingParameters();<NEW_LINE>if (!kubernetesCluster.getState().equals(KubernetesCluster.State.Scaling)) {<NEW_LINE>stateTransitTo(kubernetesCluster.getId(), KubernetesCluster.Event.ScaleUpRequested);<NE...
long size = kubernetesCluster.getTotalNodeCount();
710,054
public static String urlFromDirectoryName(String dir) {<NEW_LINE>String url = null;<NEW_LINE>if (url == null)<NEW_LINE>url = urlFromImgurDirectoryName(dir);<NEW_LINE>if (url == null)<NEW_LINE>url = urlFromImagefapDirectoryName(dir);<NEW_LINE>if (url == null)<NEW_LINE>url = urlFromDeviantartDirectoryName(dir);<NEW_LINE>...
dir, "bfcakes", "http://www.bcfakes.com/celebritylist/", "");
695,282
public Visualization makeVisualization(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj) {<NEW_LINE>XYPlot xyplot = task.getResult();<NEW_LINE>setupCSS(context, plot, xyplot);<NEW_LINE>final StyleLibrary style = context.getStyleLibrary();<NEW_LINE>f...
height, sizex, sizey, margin);
1,329,862
static StoredTabletFile bringOnline(DatafileManager datafileManager, CompactableImpl.CompactionInfo cInfo, CompactionStats stats, Map<StoredTabletFile, DataFileValue> compactFiles, SortedMap<StoredTabletFile, DataFileValue> allFiles, CompactionKind kind, TabletFile compactTmpName) throws IOException {<NEW_LINE>if (kind...
dfv, Optional.empty());
1,598,108
public KrollDict generateScrollPayload() {<NEW_LINE>final ListItemProxy firstVisibleProxy = getFirstVisibleItem();<NEW_LINE>final LinearLayoutManager layoutManager = getLayoutManager();<NEW_LINE><MASK><NEW_LINE>// Obtain first visible list item view.<NEW_LINE>if (firstVisibleProxy != null) {<NEW_LINE>payload.put(TiC.PR...
final KrollDict payload = new KrollDict();
622,814
public double[] variances() {<NEW_LINE>double[<MASK><NEW_LINE>for (int word = 0; word < numWords; word++) {<NEW_LINE>for (int col = 0; col < numColumns; col++) {<NEW_LINE>means[col] += weights[word * stride + col];<NEW_LINE>}<NEW_LINE>}<NEW_LINE>for (int col = 0; col < numColumns; col++) {<NEW_LINE>means[col] /= numWor...
] means = new double[numColumns];
102,068
public void translate(ProxySession session, ServerPlayerPositionRotationPacket packet) {<NEW_LINE>CachedPlayer entity = session.getCachedEntity();<NEW_LINE>if (!entity.isSpawned()) {<NEW_LINE>entity.sendMetadata(session);<NEW_LINE>MovePlayerPacket movePlayerPacket = new MovePlayerPacket();<NEW_LINE>movePlayerPacket.set...
" " + packet.getZ());
587,415
private <T> void submitOperation(CheckedSupplier<T, Exception> operation, BiConsumer<T, Exception> handler) {<NEW_LINE>autodetectWorkerExecutor.execute(new AbstractRunnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onFailure(Exception e) {<NEW_LINE>if (processKilled) {<NEW_LINE>handler.accept(null, Exceptio...
, job.getId()));
1,289,943
final PutRestApiResult executePutRestApi(PutRestApiRequest putRestApiRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putRestApiRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
(super.beforeMarshalling(putRestApiRequest));
1,599,088
public static ImageServer<BufferedImage> pyramidalizeTiled(ImageServer<BufferedImage> server, int tileWidth, int tileHeight, double... downsamples) {<NEW_LINE>var oldMetadata = server.getMetadata();<NEW_LINE>if (downsamples.length == 0) {<NEW_LINE>List<Double> downsampleList = new ArrayList<>();<NEW_LINE>double downsam...
= server.getWidth() / downsample;
1,319,781
public void transformJson(HistoryJobEntity job, ObjectNode historicalData, CommandContext commandContext) {<NEW_LINE>HistoricEntityLinkService historicEntityLinkService = cmmnEngineConfiguration.getEntityLinkServiceConfiguration().getHistoricEntityLinkService();<NEW_LINE>HistoricEntityLinkEntity historicEntityLinkEntit...
(historicalData, CmmnAsyncHistoryConstants.FIELD_ROOT_SCOPE_TYPE));
1,669,216
private void resumeAsyncResponse(AsyncResponse asyncResponse, Set<String> subscriptions, List<CompletableFuture<Object>> subscriptionFutures) {<NEW_LINE>FutureUtil.waitForAll(subscriptionFutures).whenComplete((r, ex) -> {<NEW_LINE>if (ex != null) {<NEW_LINE>log.warn("[{}] Failed to get list of subscriptions for {}: {}"...
resume(new RestException(ex));
991,791
public Function newInstance(int position, ObjList<Function> args, IntList argPositions, CairoConfiguration configuration, SqlExecutionContext sqlExecutionContext) throws SqlException {<NEW_LINE>final Function nameFunction = args.getQuick(0);<NEW_LINE>final CharSequence type = args.getQuick(1).getStr(null);<NEW_LINE>if ...
return new ToTimestampFunctionFactory.ToTimestampFunction(nameFunction);
780,240
public void navigateToPresentationEditorLocation(PresentationEditorLocation location) {<NEW_LINE>// get the current set of locations in the editor (filtering out the cursor)<NEW_LINE>JsArray<PresentationEditorLocationItem> editorItemsWithCursor = getPresentationEditorLocation().getItems();<NEW_LINE>JsArray<Presentation...
(), 0), true);
896,611
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (!getNameBytes().isEmpty()) {<NEW_LINE>org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, name_);<NEW_LINE>}<NEW_LINE>if (floatValue_ != 0F) {<NEW_LINE>output.writeFloat(2, floatValue_);<NEW_LIN...
output.writeEnum(10, argType_);
27,662
final CreateProjectResult executeCreateProject(CreateProjectRequest createProjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createProjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,457,791
public static KeyStore loadKeyStore(File certificateChainFile, File privateKeyFile, Optional<String> keyPassword) throws IOException, GeneralSecurityException {<NEW_LINE>PrivateKey key = loadPrivateKey(privateKeyFile, keyPassword);<NEW_LINE>List<X509Certificate> certificateChain = readCertificateChain(certificateChainF...
[i] = certificates[0];
1,144,182
public static double gamma(double x) {<NEW_LINE>if (x <= 0 || Double.isNaN(x)) {<NEW_LINE>throw new RuntimeException("para is out of range!");<NEW_LINE>} else if (x <= 140) {<NEW_LINE>if (x < 0.5) {<NEW_LINE>return Math.PI / (Math.sin(x * Math.PI) * gamma(1.0 - x));<NEW_LINE>} else {<NEW_LINE>double t = ckLanczos[0];<N...
double s = x + gLanczos - 0.5;
1,374,582
private static void writeMovieToFile(Movie scrapedMovie, File scrapeTarget) {<NEW_LINE>MoviescraperPreferences preferences = MoviescraperPreferences.getInstance();<NEW_LINE>File nfoFile = new File(Movie.getFileNameOfNfo(scrapeTarget, preferences.getNfoNamedMovieDotNfo()));<NEW_LINE>File posterFile = new File(Movie.getF...
, preferences.getNoMovieNameInImageFiles()));
213,356
private void clinkstep4567(DBIDRef id, ArrayDBIDs ids, DBIDArrayIter it, int n, WritableDBIDDataStore pi, WritableDoubleDataStore lambda, WritableDoubleDataStore m) {<NEW_LINE>// step 4: a = n<NEW_LINE>DBIDArrayIter a = ids.iter().seek(n - 1);<NEW_LINE>// step 5:<NEW_LINE>{<NEW_LINE>DBIDVar p_i = DBIDUtil.newVar();<NEW...
d.from(pi, b);
1,771,643
public boolean eIsSet(int featureID) {<NEW_LINE>switch(featureID) {<NEW_LINE>case ModelPackage.MBRICKLET_DISTANCE_IR__LOGGER:<NEW_LINE>return LOGGER_EDEFAULT == null ? logger != null : !LOGGER_EDEFAULT.equals(logger);<NEW_LINE>case ModelPackage.MBRICKLET_DISTANCE_IR__UID:<NEW_LINE>return UID_EDEFAULT == null ? uid != n...
: !CONNECTED_UID_EDEFAULT.equals(connectedUid);
1,220,091
public static Mono<APIConnection> createConnection(AuthenticationDTO authenticationType) {<NEW_LINE>if (authenticationType instanceof OAuth2) {<NEW_LINE>if (OAuth2.Type.CLIENT_CREDENTIALS.equals(((OAuth2) authenticationType).getGrantType())) {<NEW_LINE>return Mono.from(OAuth2ClientCredentials.create((OAuth2) authentica...
create((ApiKeyAuth) authenticationType));
625,924
public void listEnrichedSeriesWithContext() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.MetricsAdvisorClient.listMetricEnrichedSeriesData#String-List-OffsetDateTime-OffsetDateTime-Context<NEW_LINE>final String detectionConfigurationId = "e87d899d-a5a0-4259-b752-11aea34d5e34";<NEW_LINE>final DimensionKey seriesKey ...
getSeriesKey().asMap());
1,259,138
public com.amazonaws.services.cognitosync.model.AlreadyStreamedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.cognitosync.model.AlreadyStreamedException alreadyStreamedException = new com.amazonaws.services.cognitosync.model.AlreadyStreamedException(n...
String currentParentElement = context.getCurrentParentElement();
164,092
protected void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>if (image != null) {<NEW_LINE>g.setColor(foreground);<NEW_LINE>int width = image.getWidth();<NEW_LINE>int height = image.getHeight();<NEW_LINE>String sizes = "Dimensions: " + width + " x " + height;<NEW_LINE>g.drawString(sizes, (int)...
this.getHeight() / 2);
258,219
private static Response fillAggregationPlanDataSet(QueryDataSet dataSet, AggregationPlan aggregationPlan, final int actualRowSizeLimit) throws IOException {<NEW_LINE>Map<String, AggregateResult> groupPathsResultMap = aggregationPlan.getGroupPathsResultMap();<NEW_LINE>int[] targetDataSetIndexToSourceDataSetIndex = new <...
int[groupPathsResultMap.size()];
227,269
final GetResponseHeadersPolicyConfigResult executeGetResponseHeadersPolicyConfig(GetResponseHeadersPolicyConfigRequest getResponseHeadersPolicyConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getResponseHeadersPolicyConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
553,779
public void bindTrackItem(TrackViewHolder viewHolder, SearchResult searchResult, int position) {<NEW_LINE>GPXInfo gpxInfo = (GPXInfo) searchResult.relatedObject;<NEW_LINE>QuickSearchListItem listItem <MASK><NEW_LINE>QuickSearchListAdapter.bindGpxTrack(viewHolder.itemView, listItem, gpxInfo);<NEW_LINE>boolean selected =...
= new QuickSearchListItem(app, searchResult);
817,701
protected int parseInt(String buffer, int start, int end) throws NumberFormatException {<NEW_LINE>// REVISIT: more testing on this parsing needs to be done.<NEW_LINE>int radix = 10;<NEW_LINE>int result = 0;<NEW_LINE>int digit = 0;<NEW_LINE>int limit = -Integer.MAX_VALUE;<NEW_LINE>int multmin = limit / radix;<NEW_LINE>i...
buffer.toString() + "' has wrong format");
1,283,446
private int convertUnit(byte[] unitType, float v, int orientation) {<NEW_LINE>if (unitType != null) {<NEW_LINE>switch(unitType[orientation]) {<NEW_LINE>case UNIT_TYPE_REM:<NEW_LINE>return (int) Math.round(v * Font.getDefaultFont().getHeight());<NEW_LINE>case UNIT_TYPE_VH:<NEW_LINE>return (int) Math.round(v / 100f * CN....
.getInstance().getDisplayWidth();
841,972
public int compare(ProviderInfo<MessageBodyReader<?>> p1, ProviderInfo<MessageBodyReader<?>> p2) {<NEW_LINE>MessageBodyReader<?<MASK><NEW_LINE>MessageBodyReader<?> e2 = p2.getOldProvider();<NEW_LINE>// Liberty code change start<NEW_LINE>List<MediaType> types1 = getSortedProviderConsumeTypes(e1, cache);<NEW_LINE>List<Me...
> e1 = p1.getOldProvider();
1,407,158
public boolean apply(Game game, Ability source) {<NEW_LINE>MageObject <MASK><NEW_LINE>if (sourceObject == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>Choice typeChoice = new ChoiceCreatureType(sourceObject);<NEW_LINE>if (player != null && player....
sourceObject = game.getObject(source);
1,553,133
public LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI) {<NEW_LINE>if ("http://www.w3.org/TR/REC-xml".equals(type) && "datatypes.dtd".equals(systemId)) {<NEW_LINE>return new LSInputImpl(publicId, systemId, baseURI, ClassUtils.getResourceAsStream("org/apache/myf...
, ClassUtils.getResourceAsStream("org/apache/myfaces/resource/XMLSchema.dtd"));
1,078,564
public static ListResourcesByTagResponse unmarshall(ListResourcesByTagResponse listResourcesByTagResponse, UnmarshallerContext _ctx) {<NEW_LINE>listResourcesByTagResponse.setRequestId(_ctx.stringValue("ListResourcesByTagResponse.RequestId"));<NEW_LINE>listResourcesByTagResponse.setNextToken(_ctx.stringValue("ListResour...
+ "].Tags[" + j + "].Value"));
1,699,165
void assembleMessageParameters() {<NEW_LINE>mAid = SecureUtils.<MASK><NEW_LINE>final ByteBuffer paramsBuffer;<NEW_LINE>LOG.info("Level: " + mLevel);<NEW_LINE>if (mTransitionSteps == null || mTransitionResolution == null || mDelay == null) {<NEW_LINE>paramsBuffer = ByteBuffer.allocate(GENERIC_LEVEL_SET_PARAMS_LENGTH).or...
calculateK4(mAppKey.getKey());
375,585
private void performLogin() {<NEW_LINE>imm.hideSoftInputFromWindow(<MASK><NEW_LINE>if (!isOnline(context)) {<NEW_LINE>loginLoggingIn.setVisibility(View.GONE);<NEW_LINE>loginLogin.setVisibility(View.VISIBLE);<NEW_LINE>closeCancelDialog();<NEW_LINE>loginCreateAccount.setVisibility(View.VISIBLE);<NEW_LINE>queryingSignupLi...
et_user.getWindowToken(), 0);
181,336
public File persist(final IncrementalIndex index, final Interval dataInterval, File outDir, IndexSpec indexSpec, ProgressIndicator progress, @Nullable SegmentWriteOutMediumFactory segmentWriteOutMediumFactory) throws IOException {<NEW_LINE>if (index.isEmpty()) {<NEW_LINE>throw new IAE("Trying to persist an empty index!...
"interval[%s] does not encapsulate the full range of timestamps[%s, %s]", dataInterval, firstTimestamp, lastTimestamp);
1,513,894
protected Answer execute(MigrateVmToPoolCommand cmd) {<NEW_LINE>final String vmName = cmd.getVmName();<NEW_LINE>VmwareHypervisorHost hyperHost = getHyperHost(getServiceContext());<NEW_LINE>try {<NEW_LINE>VirtualMachineMO vmMo = getVirtualMachineMO(vmName, hyperHost);<NEW_LINE>if (vmMo == null) {<NEW_LINE>s_logger.info(...
(cmd, (Exception) e);
1,179,181
public SampleSubsetSummary estimateSubsetSum(final Predicate<T> predicate) {<NEW_LINE>if (itemsSeen_ == 0) {<NEW_LINE>return new SampleSubsetSummary(0.0, 0.0, 0.0, 0.0);<NEW_LINE>}<NEW_LINE>final long numSamples = getNumSamples();<NEW_LINE>final double samplingRate = numSamples / (double) itemsSeen_;<NEW_LINE>assert sa...
= (1.0 * trueCount) / numSamples;
1,053,992
private void addContent() {<NEW_LINE>int rows = payload.usesIntermediaryBank() ? 22 : 16;<NEW_LINE>addTitledGroupBg(gridPane, ++rowIndex, rows, Res.get("payment.swift.headline"));<NEW_LINE>// spacer<NEW_LINE>gridPane.add(new Label(""), 0, ++rowIndex);<NEW_LINE>addLabelsAndCopy(Res.get("portfolio.pending.step2_buyer.amo...
), payload.getBankBranch());
520,349
static TruffleString substring(AbstractTruffleString a, int fromIndex, int length, Encoding expectedEncoding, boolean lazy, @Cached ToIndexableNode toIndexableNode, @Cached TStringInternalNodes.GetCodeRangeNode getCodeRangeANode, @Cached TStringInternalNodes.GetCodePointLengthNode getCodePointLengthNode, @Cached TStrin...
a, a.data());
1,788,944
protected void appendExtraMetrics(Map<String, Object> metrics, NodeProbe probe) {<NEW_LINE>// Table counter Metrics<NEW_LINE>appendCounterMetrics(metrics, probe, this.keyspace(), this.tables(), "EstimatedPartitionCount");<NEW_LINE>appendCounterMetrics(metrics, probe, this.keyspace(), this.tables(), "DroppedMutations");...
metrics, probe, "CounterCache", "Size");