idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,354,114
private Object parseNode(Element node) {<NEW_LINE>String tagName = node.getTagName();<NEW_LINE>if (// $NON-NLS-1$<NEW_LINE>tagName.equals("string")) {<NEW_LINE>return node.getTextContent();<NEW_LINE>} else if (// $NON-NLS-1$<NEW_LINE>tagName.equals("real")) {<NEW_LINE>return Float.parseFloat(node.getTextContent());<NEW...
nextElement = children.item(i);
269,559
public static void inventoryAttributes(Map<String, Attributes.Inventory> attributes) {<NEW_LINE>String m = C19ImmunizationModule.class.getSimpleName();<NEW_LINE>Attributes.inventory(attributes, m, C19_VACCINE_STATUS, true, true, "WAITING_FOR_SHOT");<NEW_LINE>Attributes.inventory(attributes, m, C19_VACCINE, true, true, ...
C19_SCHEDULED_FIRST_SHOT, true, true, "7/29/2021");
1,422,202
public void provideDynamicMetrics(MetricDescriptor descriptor, MetricsCollectionContext context) {<NEW_LINE>ClientStatistics clientStatistics = statsRef.get();<NEW_LINE>if (clientStatistics != null && clientStatistics.metricsBlob() != null) {<NEW_LINE>byte[<MASK><NEW_LINE>if (metricsBlob.length == 0) {<NEW_LINE>// zero...
] metricsBlob = clientStatistics.metricsBlob();
692,377
public Boolean pressButton(ButtonPress aDeviceButton) {<NEW_LINE>log.debug("Harmony api press a button requested for device: " + aDeviceButton.getDevice() + " and a for button: " + aDeviceButton.getButton() + " with pressTime of: " + aDeviceButton.getPressTime() + " for a hub: " + aDeviceButton.getHub() + " noop mode: ...
" for a hub: " + aDeviceButton.getHub());
1,426,109
private List<VolumeSnapshotBackupStorageDeletionMsg> makeVolumeSnapshotBackupStorageDeletionMsg(List<String> bsUuids) {<NEW_LINE>List<VolumeSnapshotBackupStorageDeletionMsg> msgs = new ArrayList<VolumeSnapshotBackupStorageDeletionMsg>();<NEW_LINE>List<String> allMyBsUuids = CollectionUtils.transformToList(currentRoot.g...
makeLocalServiceId(msg, VolumeSnapshotConstant.SERVICE_ID);
1,485,925
public void testJMSProducerSendMapMessage_Topic_TCP_SecOn(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>boolean exceptionFlag = false;<NEW_LINE>JMSContext jmsContext = TCFTCP.createContext();<NEW_LINE>JMSConsumer <MASK><NEW_LINE>JMSProducer jmsProducer = jmsContext.createProducer...
jmsConsumer = jmsContext.createConsumer(topic);
441,898
private static void fillMainAttributes(Definition definition, ResourceListing listing, String basePath) {<NEW_LINE>definition.setVersion(listing.getApiVersion());<NEW_LINE>Contract contract = new Contract();<NEW_LINE>if (listing.getInfo() != null) {<NEW_LINE>Contact contact = new Contact();<NEW_LINE>contact.setEmail(li...
getInfo().getLicense());
1,114,103
final DescribeConfigurationRevisionResult executeDescribeConfigurationRevision(DescribeConfigurationRevisionRequest describeConfigurationRevisionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeConfigurationRevisionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeConfigurationRevision");
1,480,979
public static DescribeTasksResponse unmarshall(DescribeTasksResponse describeTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeTasksResponse.setRequestId(_ctx.stringValue("DescribeTasksResponse.RequestId"));<NEW_LINE>describeTasksResponse.setTotalRecordCount(_ctx.integerValue("DescribeTasksResponse.TotalRecor...
("DescribeTasksResponse.Items[" + i + "].BeginTime"));
1,502,950
void computeVariables(MethodVerifier verifier) throws AssemblerException {<NEW_LINE>// Compute the variable indices to their assigned types<NEW_LINE>Multimap<Integer, Integer> indexToSort = MultimapBuilder.hashKeys().hashSetValues().build();<NEW_LINE>Multimap<Integer, String> indexToName = MultimapBuilder.hashKeys().ha...
.getVariableName().getName();
410,046
public Map<String, ?> attributesFor(CreateDescriptor desc) {<NEW_LINE><MASK><NEW_LINE>FileObject target = desc.getTarget();<NEW_LINE>Collection<? extends CreateFromTemplateAttributesProvider> c = providers.allInstances();<NEW_LINE>if (c.isEmpty()) {<NEW_LINE>return Collections.emptyMap();<NEW_LINE>}<NEW_LINE>DataObject...
FileObject template = desc.getTemplate();
1,117,411
//<NEW_LINE>ModelChange(timings = { ModelValidator.TYPE_BEFORE_NEW, ModelValidator.TYPE_BEFORE_CHANGE }, ifColumnsChanged = { I_M_ForecastLine.COLUMNNAME_AD_Org_ID, I_M_ForecastLine.COLUMNNAME_M_Warehouse_ID })<NEW_LINE>public void beforeSave(final I_M_ForecastLine forecastLine) {<NEW_LINE>final WarehouseId warehouseId...
ofRepoId(forecastLine.getM_Warehouse_ID());
458,672
public Pair<Boolean, String> restoreVMToDifferentLocation(String restorePointId, String hostIp, String dataStoreUuid) {<NEW_LINE>final String restoreLocation = RESTORE_VM_SUFFIX + UUID.randomUUID().toString();<NEW_LINE>final String datastoreId = dataStoreUuid.replace("-", "");<NEW_LINE>final List<String> cmds = Arrays....
result.first(), restoreLocation);
1,618,487
public static void main(String[] args) {<NEW_LINE>String contractName = "papercontract";<NEW_LINE>// get the name of the contract, in case it is overridden<NEW_LINE>Map<String, String> envvar = System.getenv();<NEW_LINE>if (envvar.containsKey(ENVKEY)) {<NEW_LINE>contractName = envvar.get(ENVKEY);<NEW_LINE>}<NEW_LINE>Ga...
(connectionProfile).discovery(false);
1,392,580
public void allBranchesCompleted() {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>c_logger.traceEntry(this, "allBranchesCompleted");<NEW_LINE>}<NEW_LINE>SipServletResponse response = _bestResponse.getBestResponse();<NEW_LINE>ProxyBranchImpl pb = _bestResponse.getProxyBranch();<NEW_LINE>if (pb == null) {<...
true, response.getStatus());
34,058
public final void matchEvent(EventBean theEvent, Collection<FilterHandle> matches, ExprEvaluatorContext ctx) {<NEW_LINE>if (InstrumentationHelper.ENABLED) {<NEW_LINE>InstrumentationHelper.get().qFilterBoolean(this);<NEW_LINE>}<NEW_LINE>constantsMapRWLock.readLock().lock();<NEW_LINE>try {<NEW_LINE>if (InstrumentationHel...
.get().aFilterBoolean();
1,115,135
private boolean nodeSaveFileESP(String ft) {<NEW_LINE>boolean success = false;<NEW_LINE>log("FileSaveESP: Try to save file to ESP...");<NEW_LINE>sendBuf = new ArrayList<String>();<NEW_LINE>if (TurboMode.isSelected()) {<NEW_LINE>return nodeSaveFileESPTurbo(ft);<NEW_LINE>}<NEW_LINE>sendBuf.add("file.remove(\"" + ft + "\"...
add("fh = open(\"" + ft + "\",\"w+\");");
415,580
private static List<String> readElementsAt(Repository repository, String commit, String path) throws IOException {<NEW_LINE>RevCommit revCommit = buildRevCommit(repository, commit);<NEW_LINE>// and using commit's tree find the path<NEW_LINE>RevTree tree = revCommit.getTree();<NEW_LINE>// System.out.println("Having tree...
add(treeWalk.getPathString());
24,849
private static LineStringBuilder filterRing(LineStringBuilder linearRing) {<NEW_LINE>int numPoints = linearRing.coordinates.size();<NEW_LINE>List<Coordinate> coordinates = new ArrayList<>();<NEW_LINE>coordinates.add(linearRing.coordinates.get(0));<NEW_LINE>for (int i = 1; i < numPoints - 1; i++) {<NEW_LINE>if (linearRi...
.coordinates.get(i));
1,620,527
public List<OCRResult> createDocumentsWithResults(BufferedImage[] bis, String[] filenames, String[] outputbases, List<RenderedFormat> formats, int pageIteratorLevel) throws TesseractException {<NEW_LINE>if (bis.length != filenames.length || bis.length != outputbases.length) {<NEW_LINE>throw new RuntimeException("The th...
, filenames[i], renderer);
730,467
protected static boolean compareVersions(VulnerableSoftware vs, String targetVersion) {<NEW_LINE>if (LogicalValue.NA.getAbbreviation().equals(vs.getVersion())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// if any of the four conditions will be evaluated - then true;<NEW_LINE>boolean result = (vs.versionEndExcluding !...
vs.versionStartIncluding.isEmpty());
1,376,817
public void actionPerformed(ActionEvent event) {<NEW_LINE>if (panelClass.equals("GlobalPanel")) {<NEW_LINE>new MacroButtonProperties(panelClass, MacroButtonPrefs.getNextIndex(), button.getProperties());<NEW_LINE>} else if (panelClass.equals("CampaignPanel")) {<NEW_LINE>new MacroButtonProperties(panelClass, MapTool.getC...
), button.getProperties());
900,215
public static boolean allTablesWithIdenticalPartitionColumns(String schemaName, String tgName, int actualPartitionCols) {<NEW_LINE>PartitionInfoManager partInfoMgr = OptimizerContext.getContext(schemaName).getPartitionInfoManager();<NEW_LINE>TableGroupInfoManager tgMgr = OptimizerContext.getContext(schemaName).getTable...
> tblInfos = tgConfig.getTables();
729,925
private List<Address> fixupChainedPointers() throws MemoryAccessException, CancelledException {<NEW_LINE>List<Address> fixedAddresses = new ArrayList<>();<NEW_LINE>// if has Chained Fixups load command, use it<NEW_LINE>List<DyldChainedFixupsCommand> loadCommands = machoHeader.getLoadCommands(DyldChainedFixupsCommand.cl...
DyldChainedFixupHeader chainHeader = linkCmd.getChainHeader();
720,263
private Mono<PagedResponse<UserRoleResponseInner>> listUserRolesNextSinglePageAsync(String nextLink) {<NEW_LINE>if (nextLink == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>re...
)).readOnly()));
1,666,075
PBigRange createBigRange(Object start, Object stop, Object step, PythonObjectFactory factory, @Cached RangeNodes.LenOfRangeNode lenOfRangeNode, @Cached CastToJavaBigIntegerNode startToBI, @Cached CastToJavaBigIntegerNode stopToBI, @Cached CastToJavaBigIntegerNode stepToBI, @Cached PRaiseNode raise) {<NEW_LINE>BigIntege...
, factory.createInt(len));
1,634,158
protected void removeIgnorableTypes(SerializationConfig config, BeanDescription beanDesc, List<BeanPropertyDefinition> properties) {<NEW_LINE>AnnotationIntrospector intr = config.getAnnotationIntrospector();<NEW_LINE>HashMap<Class<?>, Boolean> ignores = new HashMap<Class<?>, Boolean>();<NEW_LINE>Iterator<BeanPropertyDe...
getConfigOverride(type).getIsIgnoredType();
1,607,338
public static ListFlowRulesOfResourceResponse unmarshall(ListFlowRulesOfResourceResponse listFlowRulesOfResourceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFlowRulesOfResourceResponse.setRequestId(_ctx.stringValue("ListFlowRulesOfResourceResponse.RequestId"));<NEW_LINE>listFlowRulesOfResourceResponse.setCode(_ct...
("ListFlowRulesOfResourceResponse.Data.Datas[" + i + "].Enable"));
659,020
public void propertyChanged(String key, Object oldValue, Object newValue, KrollProxy proxy) {<NEW_LINE>TiImageView view = getView();<NEW_LINE>if (view == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (key.equals(TiC.PROPERTY_ENABLE_ZOOM_CONTROLS)) {<NEW_LINE>view.setEnableZoomControls(TiConvert.toBoolean(newValue));<...
setImageRippleColor(view.getDefaultRippleColor());
1,063,016
protected int diffExports(JCExports oldT, JCExports newT, int[] bounds) {<NEW_LINE>int localPointer = bounds[0];<NEW_LINE>// package name<NEW_LINE>int[] expNameBounds = getBounds(oldT.qualid);<NEW_LINE>copyTo(localPointer, expNameBounds[0]);<NEW_LINE>localPointer = diffTree(oldT.qualid, newT.qualid, expNameBounds);<NEW...
copyTo(localPointer, localPointer = posHint);
593,380
public boolean apply(Game game, Ability source) {<NEW_LINE>TargetPermanent target = (TargetPermanent) source.<MASK><NEW_LINE>Permanent permanent = game.getPermanent(target.getFirstTarget());<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (permanent != null && controller != null) {<NE...
getTargets().get(0);
13,188
// https://stackoverflow.com/questions/21270892/generate-affinetransform-from-3-points<NEW_LINE>public static AffineTransform deriveAffineTransform(double sourceX1, double sourceY1, double sourceX2, double sourceY2, double sourceX3, double sourceY3, double destX1, double destY1, double destX2, double destY2, double des...
1, 1, 1 } });
191,991
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int xValue = player.getGraveyard().count(StaticFilters.FILTER_CARD_CREATURE, game);<NEW_LINE>FilterCard filter = new FilterPerman...
retainZone(Zone.LIBRARY, game);
573,614
public CTConnection makeRawConnection() throws TTransportException {<NEW_LINE>final Config cfg = cfgRef.get();<NEW_LINE>String hostname = cfg.getRandomHost();<NEW_LINE>log.debug("Creating TSocket({}, {}, {}, {}, {})", hostname, cfg.port, cfg.username, cfg.password, cfg.timeoutMS);<NEW_LINE>TSocket socket;<NEW_LINE>if (...
login(new AuthenticationRequest(credentials));
1,517,634
public SendQuota unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SendQuota sendQuota = new SendQuota();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token =...
String currentParentElement = context.getCurrentParentElement();
452,647
private List<HistoryEntry> readHistory(File history) {<NEW_LINE>if (!history.exists()) {<NEW_LINE>return emptyHistory;<NEW_LINE>}<NEW_LINE>DataInputStream dis = null;<NEW_LINE>List<HistoryEntry> entries = new ArrayList<HistoryEntry>();<NEW_LINE>try {<NEW_LINE>dis = getInputStream(history);<NEW_LINE>while (true) {<NEW_L...
, from, to, action));
678,868
public static LMOtsSignature lm_ots_generate_signature(LMOtsPrivateKey privateKey, byte[] Q, byte[] C) {<NEW_LINE>LMOtsParameters parameter = privateKey.getParameter();<NEW_LINE>int n = parameter.getN();<NEW_LINE>int p = parameter.getP();<NEW_LINE>int w = parameter.getW();<NEW_LINE>byte[] sigComposer = new byte[p * n];...
i < p - 1, ITER_PREV);
1,098,552
public static void allowNetworkPolicySettingsForEntityOperator(ExtensionContext extensionContext, String clusterName, String namespace) {<NEW_LINE>LabelSelector labelSelector = new LabelSelectorBuilder().addToMatchLabels(Constants.KAFKA_CLIENTS_LABEL_KEY, Constants.KAFKA_CLIENTS_LABEL_VALUE).build();<NEW_LINE>String eo...
"Creating NetworkPolicy: {}", networkPolicy.toString());
1,377,035
public static TransactionManager create(MetricsManager metricsManager, KeyValueService keyValueService, TimelockService timelockService, LockWatchManagerInternal lockWatchManager, TimestampManagementService timestampManagementService, LockService lockService, TransactionService transactionService, Supplier<AtlasDbConst...
false, conflictTracer, metricsFilterEvaluationContext, sharedGetRangesPoolSize);
1,635,589
public static <T extends DnsRecord> List<T> dnsQuery(Class<T> cls, String domain, String dnsServerAddress) throws DnsException {<NEW_LINE>List<T> dnsRecordList = new ArrayList<T>();<NEW_LINE>try {<NEW_LINE>// Create initial context<NEW_LINE>DirContext ictx = new InitialDirContext(getEnv(dnsServerAddress));<NEW_LINE>// ...
T dnsRecord = cls.newInstance();
1,292,612
private void addTargetToPanel(JPanel destPanel) {<NEW_LINE>targetNodesModel = new DefaultComboBoxModel<>();<NEW_LINE>targetNodes = new JComboBox<>(targetNodesModel);<NEW_LINE>// Bug 56303 fixed the width of combo list<NEW_LINE>// get popup element<NEW_LINE>JPopupMenu popup = (JPopupMenu) targetNodes.getUI().getAccessib...
new JScrollBar(JScrollBar.HORIZONTAL));
1,340,432
public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException {<NEW_LINE>String <MASK><NEW_LINE>Integer serverPort = Integer.parseInt(System.getenv("SERVER_PORT"));<NEW_LINE>LOG.info(String.format("SERVER_HOST:%s", serverHost));<NEW_LINE>LOG.info(Strin...
serverHost = System.getenv("SERVER_HOST");
1,580,144
private QualityInvoiceLine createQualityInvoiceLineDetail_RegularOrder(final IQualityInspectionOrder productionOrder, final BigDecimal overallAvgProducedQtyPerTU, final String labelToUse) {<NEW_LINE>//<NEW_LINE>// Extract parameters from regular manufacturing order<NEW_LINE>final IQualityInspectionLinesCollection quali...
(currentRawHUInfo.getQtyTU()));
584,246
public static synchronized void init() {<NEW_LINE>if (!isInitialized()) {<NEW_LINE>if (contentEngines == null) {<NEW_LINE>// Create new map to store content engines if current map is null<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>ClassLoader classLoader = ContentEngines.class.getClassLoader();<NEW_LINE>Enumeration<URL> resou...
contentEngines = new HashMap<>();
1,737,877
public void run() {<NEW_LINE>try {<NEW_LINE>if (released)<NEW_LINE>return;<NEW_LINE>System.out.println("about to run " + sql);<NEW_LINE>DataSource ds = (DataSource) new InitialContext().lookup(jndiName);<NEW_LINE>Connection con = ds.getConnection();<NEW_LINE>try {<NEW_LINE>if (released)<NEW_LINE>return;<NEW_LINE><MASK>...
Statement stmt = con.createStatement();
221,046
public void actionPerformed(ActionEvent e) {<NEW_LINE>if (m_setting)<NEW_LINE>return;<NEW_LINE>String cmd = e.getActionCommand();<NEW_LINE>log.config(cmd);<NEW_LINE>this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));<NEW_LINE>//<NEW_LINE>if (e.getSource() == comboZoom)<NEW_LINE>cmd_zoom();<NEW_LINE>else if ...
setCursor(Cursor.getDefaultCursor());
1,702,813
public static void expandTemplate(@Nonnull String key, @Nonnull CustomTemplateCallback callback, @Nonnull Editor editor, @Nonnull PostfixTemplateProvider provider, @Nonnull PostfixTemplate postfixTemplate) {<NEW_LINE>ApplicationManager.getApplication().assertIsDispatchThread();<NEW_LINE>FeatureUsageTracker.getInstance(...
deleteTemplateKey(file, editor, key);
1,045,868
public static void saveInstanceWeight(HandlerContext handlerCtx) {<NEW_LINE>List<Map> rows = (List<Map>) handlerCtx.getInputValue("rows");<NEW_LINE>List<String> errorInstances = new ArrayList<>();<NEW_LINE>Map<String, Object> response;<NEW_LINE>String prefix = GuiUtil.getSessionValue("REST_URL") + "/servers/server/";<N...
[] { "" + errorInstances });
1,150,241
private static String[] readOriginalFileAndFileSystem(final FileObject f) throws IOException {<NEW_LINE>if (f.getSize() == 0) {<NEW_LINE>// NOI18N<NEW_LINE>Object fileName = f.getAttribute("originalFile");<NEW_LINE>if (fileName instanceof String) {<NEW_LINE>// NOI18N<NEW_LINE>return new String[] { (String) fileName, (S...
FileNotFoundException(f.getPath());
1,035,307
public static void onGuiInit(ScreenEvent.InitScreenEvent event) {<NEW_LINE>Screen gui = event.getScreen();<NEW_LINE>MenuRows menu = null;<NEW_LINE>int rowIdx = 0, offsetX = 0;<NEW_LINE>if (gui instanceof TitleScreen) {<NEW_LINE>menu = MenuRows.MAIN_MENU;<NEW_LINE>rowIdx = AllConfigs.CLIENT.mainMenuConfigButtonRow.get()...
).get(rowIdx - 1);
1,291,601
public void connectionClose(@NotNull AbstractService service, String closeReason0) {<NEW_LINE>TraceManager.TraceObject traceObject = TraceManager.serviceTrace(service, "get-connection-closed");<NEW_LINE>TraceManager.finishSpan(service, traceObject);<NEW_LINE>MySQLResponseService responseService = (MySQLResponseService)...
append("]").toString();
49,655
public void abort(Executor executor) throws SQLException {<NEW_LINE>if (!bIsOpen || (null == wrappedConnection))<NEW_LINE>return;<NEW_LINE>if (null == executor) {<NEW_LINE>MessageFormat form = new MessageFormat(SQLServerException.getErrString("R_invalidArgument"));<NEW_LINE>Object[] msgArgs = { "executor" };<NEW_LINE>S...
), null, 0, ex);
1,361,661
public V replace(K key, V value) {<NEW_LINE>checkNotNull(key);<NEW_LINE>checkNotNull(value);<NEW_LINE>final Node<K, V> node = data.get(key);<NEW_LINE>if (node == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final int weight = weigher.weightOf(key, value);<NEW_LINE>final WeightedValue<V> weightedValue = new Weighte...
new UpdateTask(node, weightedDifference));
1,188,293
public boolean onActionLongClick(@StringRes final int action) {<NEW_LINE>switch(action) {<NEW_LINE>case R.string.tmaid_common_checkbox_list:<NEW_LINE>{<NEW_LINE>runRegexReplaceAction(ZimWikiReplacePatternGenerator.removeCheckbox());<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>case R.string.tmaid_zimwiki_insert_link:<NEW_...
_hlEditor.setSelection(pos + 2);
457,706
public boolean createReferences(@Nonnull final PsiElement psiElement, @Nonnull final List<PsiReference> references, final boolean soft) {<NEW_LINE>final TextRange range = ElementManipulators.getValueTextRange(psiElement);<NEW_LINE>int offset = range.getStartOffset();<NEW_LINE>int endOffset = range.getEndOffset();<NEW_L...
elementText.substring(offset, endOffset);
321,523
public void renderOn(HtmlCanvas html) throws IOException {<NEW_LINE>if (!dump) {<NEW_LINE>html.head().meta(charset("utf8")).meta(name("viewport").content("width=device-width, initial-scale=1.0")).title().content("GumTree").macros().stylesheet(WebDiff.BOOTSTRAP_CSS_URL).macros().stylesheet("/dist/vanilla.css").macros()....
javascript("/dist/vanilla.js")._head();
1,360,413
public ScalarType<?> createEnumScalarType(Class<? extends Enum<?>> enumType, EnumType type) {<NEW_LINE>ScalarType<?> scalarType = getScalarType(enumType);<NEW_LINE>if (scalarType instanceof ScalarTypeWrapper) {<NEW_LINE>// no override or further mapping required<NEW_LINE>return scalarType;<NEW_LINE>}<NEW_LINE>ScalarTyp...
scalarEnum = createEnumScalarTypePerSpec(enumType, type);
1,256,170
public void init() throws DBException {<NEW_LINE>Properties props = getProperties();<NEW_LINE>String servers = props.getProperty("voltdb.servers", "localhost");<NEW_LINE>String user = props.getProperty("voltdb.user", "");<NEW_LINE>String password = props.getProperty("voltdb.password", "");<NEW_LINE>String strLimit = pr...
mwriteBuf = ByteBuffer.wrap(mworkingData);
1,652,446
Cookie ensureDomainAndPath(Cookie cookie, URI uri) {<NEW_LINE>final boolean validDomain = !Strings.isNullOrEmpty(cookie.domain());<NEW_LINE>final String cookiePath = cookie.path();<NEW_LINE>final boolean validPath = !Strings.isNullOrEmpty(cookiePath) && cookiePath.charAt(0) == '/';<NEW_LINE>if (validDomain && validPath...
String path = uri.getPath();
1,784,003
public void addTable(PhyInfoSchemaContext context) {<NEW_LINE>// Table Meta<NEW_LINE>TablesInfoSchemaRecord tablesInfoSchemaRecord = fetchTableMetaFromInfoSchema(context.phyTableSchema, context.phyTableName, context.dataSource);<NEW_LINE>TablesRecord tablesRecord = RecordConverter.convertTable(tablesInfoSchemaRecord, c...
context.tableSchema, context.tableName);
549,117
protected void onCatch(String type) {<NEW_LINE>Type exctype = Type.getObjectType(type);<NEW_LINE>addExtraTypeInfo(om.getSelfParameter(), Type.getObjectType(className));<NEW_LINE>addExtraTypeInfo(om.getTargetInstanceParameter(), exctype);<NEW_LINE>ValidationResult vr = validateArguments(om, actionArgTypes, Type<MASK><NE...
.getArgumentTypes(getDescriptor()));
245,054
public Path copy(final Path source, final Path target, final TransferStatus status, final ConnectionCallback callback, final StreamListener listener) throws BackgroundException {<NEW_LINE>if (null == status.getStorageClass()) {<NEW_LINE>// Keep same storage class<NEW_LINE>status.setStorageClass(new S3StorageClassFeatur...
attributes().getMetadata());
968,220
public void sweep(String workflowId) {<NEW_LINE>try {<NEW_LINE>WorkflowContext workflowContext = new WorkflowContext(properties.getAppId());<NEW_LINE>WorkflowContext.set(workflowContext);<NEW_LINE><MASK><NEW_LINE>if (workflowRepairService != null) {<NEW_LINE>// Verify and repair tasks in the workflow.<NEW_LINE>workflow...
LOGGER.debug("Running sweeper for workflow {}", workflowId);
675,668
public void handle(MonitorDataFrame data) {<NEW_LINE>AgentFeatureComponent ps = (AgentFeatureComponent) this.getConfigManager().getComponent("procscan", "ProcDetectAgent");<NEW_LINE>if (ps == null) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, Long> appNames = new HashMap<String, Long>();<NEW_LINE>...
log.warn(this, "AgentFeatureComponent[procscan] NO Exist.");
634,857
public void readAdditional(CompoundNBT compound) {<NEW_LINE>this.thrower = null;<NEW_LINE>if (compound.contains(THROWER_NBT, NBTtypesMBE.COMPOUND_NBT_ID)) {<NEW_LINE>this.throwerUUID = NBTUtil.readUniqueId(compound.getCompound(THROWER_NBT));<NEW_LINE>}<NEW_LINE>boolean isInFlight = compound.getBoolean(IN_FLIGHT_NBT);<N...
dataManager.set(IN_FLIGHT_DMP, isInFlight);
1,476,456
protected void refreshNavigationActions() {<NEW_LINE>ComponentContainer actionContainer = (ComponentContainer) vPopupComponent;<NEW_LINE>actionContainer.removeAllComponents();<NEW_LINE>actionOrder.clear();<NEW_LINE>if (listComponent != null) {<NEW_LINE>MetaClass metaClass = getMetaClass(listComponent);<NEW_LINE>Pattern...
messages.getMainMessage("actions.Related.Empty")));
930,466
private static void mandelbrotTornado(int size, short[] output) {<NEW_LINE>final int iterations = 10000;<NEW_LINE>float space = 2.0f / size;<NEW_LINE>for (@Parallel int i = 0; i < size; i++) {<NEW_LINE>int indexIDX = i;<NEW_LINE>for (int j = 0; j < size; j++) {<NEW_LINE>int indexJDX = j;<NEW_LINE>float Zr = 0.0f;<NEW_L...
= 2.0f * Zr * Zi + Ci;
231,650
public Set<String> findAllPalindromesUsingManachersAlgorithm(String input) {<NEW_LINE>Set<String> palindromes = new HashSet<>();<NEW_LINE><MASK><NEW_LINE>char[] inputCharArr = formattedInput.toCharArray();<NEW_LINE>int max;<NEW_LINE>int[][] radius = new int[2][input.length() + 1];<NEW_LINE>for (int j = 0; j <= 1; j++) ...
String formattedInput = "@" + input + "#";
970,200
protected void doShardingTask() throws ShardingException {<NEW_LINE>logger.info("[doShardingTask]{}", slotInfos);<NEW_LINE>for (Entry<Integer, SlotInfo> entry : slotInfos.entrySet()) {<NEW_LINE>Integer slot = entry.getKey();<NEW_LINE>SlotInfo slotInfo = entry.getValue();<NEW_LINE>if (slotInfo.getSlotState() != SLOT_STA...
, from, null, zkClient));
686,993
public DeviceMethod unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeviceMethod deviceMethod = new DeviceMethod();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE...
String currentParentElement = context.getCurrentParentElement();
1,192,545
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("eval" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>Object expStr;<NEW_LINE>Sequence arg = null;<NEW_LINE>if (param.isLeaf()) {<NEW_LINE>expStr = param....
int size = param.getSubSize();
924,087
private void assertEvent(EventBean event) {<NEW_LINE>JsonEventObjectBase und = (JsonEventObjectBase) event.getUnderlying();<NEW_LINE>assertEquals(2, und.getNativeSize());<NEW_LINE>assertByIndex(2, und::getNativeValue, new Object[] { 4d, "def" });<NEW_LINE>assertByIndex(2, und::getNativeKey, new Object[] { "a1", "c1" })...
toEntry("c1", "def") });
19,330
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>output.writeBool(1, attachRequired_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>output.writeBool(2, podInfoOnMount_);<NEW_...
, tokenRequests_.get(i));
305,503
protected boolean authenticateInternal(Request request, HttpServletResponse response, Object loginConfig) throws IOException {<NEW_LINE>CatalinaHttpFacade facade = new OIDCCatalinaHttpFacade(request, response);<NEW_LINE>KeycloakDeployment <MASK><NEW_LINE>if (deployment == null || !deployment.isConfigured()) {<NEW_LINE>...
deployment = deploymentContext.resolveDeployment(facade);
490,651
public void onBindViewHolder(@NonNull final ConfigureProfileViewHolder holder, int position) {<NEW_LINE>Object obj = items.get(position);<NEW_LINE>int activeColor = ColorUtilities.getActiveColor(app, nightMode);<NEW_LINE>holder.dividerUp.setVisibility(View.INVISIBLE);<NEW_LINE>if (obj instanceof ApplicationMode) {<NEW_...
final String title = (String) obj;
375,531
public void marshall(FileSystemDescription fileSystemDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (fileSystemDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(fileSystemDescription...
fileSystemDescription.getNumberOfMountTargets(), NUMBEROFMOUNTTARGETS_BINDING);
811,612
final AssociateQualificationWithWorkerResult executeAssociateQualificationWithWorker(AssociateQualificationWithWorkerRequest associateQualificationWithWorkerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateQualificationWithWorkerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,485,005
public void generateSasWithContext() {<NEW_LINE>// BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.generateSas#DataLakeServiceSasSignatureValues-Context<NEW_LINE>OffsetDateTime expiryTime = OffsetDateTime.now().plusDays(1);<NEW_LINE>FileSystemSasPermission permission = new FileSystemSasPermission().setR...
new Context("key", "value"));
782,193
/*<NEW_LINE>@Override<NEW_LINE>public void onMapEvent(Event event, MapPosition position) {<NEW_LINE>// place.viewport = GmsMapsTypeHelper.toLatLngBounds(mapView.map().viewport().getBBox(null, 0));<NEW_LINE>// resultIntent.putExtra(LocationConstants.EXTRA_FINAL_BOUNDS, place.viewport);<NEW_LINE>// p...
, place.latLng.longitude));
756,924
public void onReceive(Context context, Intent intent) {<NEW_LINE>ContextManager.setContext(context);<NEW_LINE>DependencyInjectionService.getInstance().inject(this);<NEW_LINE>long taskId = intent.getLongExtra(AstridApiConstants.EXTRAS_TASK_ID, -1);<NEW_LINE>if (taskId == -1)<NEW_LINE>return;<NEW_LINE>Task task = PluginS...
putExtra(AstridApiConstants.EXTRAS_NEW_DUE_DATE, newDueDate);
1,788,827
protected Object newInstance(Class type) {<NEW_LINE>try {<NEW_LINE>return ClassReflection.newInstance(type);<NEW_LINE>} catch (Exception ex) {<NEW_LINE>try {<NEW_LINE>// Try a private constructor.<NEW_LINE>Constructor <MASK><NEW_LINE>constructor.setAccessible(true);<NEW_LINE>return constructor.newInstance();<NEW_LINE>}...
constructor = ClassReflection.getDeclaredConstructor(type);
336,615
public void validateAppName() {<NEW_LINE>if (!host_.supportsTitle()) {<NEW_LINE>String app = appTitle_.getText();<NEW_LINE>RegExp validReg = RegExp.compile("^[A-Za-z0-9_-]{4,63}$");<NEW_LINE>validTitle_ = validReg.test(app);<NEW_LINE>setAppNameValid(validTitle_);<NEW_LINE>if (validTitle_)<NEW_LINE>name_ = app;<NEW_LINE...
setAppNameValid(arg.valid());
1,557,993
protected void encodeTabs(FacesContext context, AccordionPanel acco) throws IOException {<NEW_LINE>boolean dynamic = acco.isDynamic();<NEW_LINE>boolean repeating = acco.isRepeating();<NEW_LINE>boolean rtl = acco.getDir().equalsIgnoreCase("rtl");<NEW_LINE>String activeIndex = acco.getActiveIndex();<NEW_LINE>List<String>...
Tab tab = acco.getDynamicTab();
420,452
protected HttpsRequestMessage parseMessageContent() {<NEW_LINE>HttpsRequestMessage message = new HttpsRequestMessage();<NEW_LINE>String request = parseStringTill((byte) 0x0A).trim();<NEW_LINE>String[] split = request.replaceAll("\r", " ").split(" ");<NEW_LINE>if (split.length != 3) {<NEW_LINE>throw new ParserException(...
Charset.forName("ASCII")));
582,620
public static void main(final String[] args) throws IOException {<NEW_LINE>final String base = "/home/fwilhelm/Workspace/Development/Projects/" + "Jenetics/jenetics.doc/src/main/resources/diagram";<NEW_LINE>final Path data = Paths.get(base, "dtlz1.dat");<NEW_LINE>final Path output = Paths.get(base, "dtlz1.svg");<NEW_LI...
.data()[0]);
161,004
private static Url parseUrl(@Nonnull String url) {<NEW_LINE>String urlToParse;<NEW_LINE>if (url.startsWith("jar:file://")) {<NEW_LINE>urlToParse = url.substring("jar:".length());<NEW_LINE>} else {<NEW_LINE>urlToParse = url;<NEW_LINE>}<NEW_LINE>Matcher matcher = URI_PATTERN.matcher(urlToParse);<NEW_LINE>if (!matcher.mat...
, matcher.group(5));
494,234
public List<String> listProcessDisableEdition(String application) throws Exception {<NEW_LINE>EntityManager em = this.entityManagerContainer().get(Process.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = <MASK><NEW_LINE>Root<Process> root = cq.from(Process.class);<NEW_L...
cb.createQuery(String.class);
923,877
public void writeState(CommandWithArg<Boolean> onCompleted) {<NEW_LINE>updatePrefs(session_.getSessionInfo().getUserState());<NEW_LINE>server_.setUserState(session_.getSessionInfo().getUserStateLayer().getValues(), new ServerRequestCallback<Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onResponseReceived(...
getSessionInfo().getUserStateLayer());
574,634
public long handle(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer object = context.getPointerArg(1);<NEW_LINE>UnidbgPointer jmethodID = context.getPointerArg(2);<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("CallObjectMethod object=" + object + ", jme...
? null : dvmObject.getObjectType();
1,415,989
protected static void patchRsa256ForAuth(String deviceId, String publicKeyFilePath, String projectId, String cloudRegion, String registryName) throws GeneralSecurityException, IOException {<NEW_LINE>GoogleCredentials credential = GoogleCredentials.getApplicationDefault().createScoped(CloudIotScopes.all());<NEW_LINE>Jso...
setApplicationName(APP_NAME).build();
1,693,364
private void applyXsltFile(final String xsltFileName, final StringWriter writer, final Result result) {<NEW_LINE>final URL xsltUrl = ResourceController.getResourceController().getResource(xsltFileName);<NEW_LINE>if (xsltUrl == null) {<NEW_LINE>LogUtils.severe("Can't find " + xsltFileName + " as resource.");<NEW_LINE>th...
getBuffer().toString());
695,266
public DeleteImageResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteImageResult deleteImageResult = new DeleteImageResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
JsonToken token = context.getCurrentToken();
1,200,614
public void chmodDownloadTypePopupChanged(NSPopUpButton sender) {<NEW_LINE>Permission p = null;<NEW_LINE>if (sender.selectedItem().tag() == 0) {<NEW_LINE>p = new Permission(preferences.getInteger("queue.download.permissions.file.default"));<NEW_LINE>}<NEW_LINE>if (sender.selectedItem().tag() == 1) {<NEW_LINE>p = new Pe...
Action otherPerm = p.getOther();
1,293,567
protected String constructURL() {<NEW_LINE>final StringBuilder stringBuilder = new StringBuilder(AbstractRouting.DIRECTIONS_API_URL);<NEW_LINE>// origin<NEW_LINE>final LatLng origin = waypoints.get(0);<NEW_LINE>stringBuilder.append("origin=").append(origin.latitude).append(',').append(origin.longitude);<NEW_LINE>// des...
stringBuilder.append(p.latitude);
1,186,896
private Collection<StateExpr> tryToRemoveNode_ManyToOne(StateExpr candidate, Collection<StateExpr> inStates, Collection<StateExpr> outStates) {<NEW_LINE>checkArgument(inStates.size() > 1 && outStates.size() == 1);<NEW_LINE>StateExpr <MASK><NEW_LINE>if (next.equals(candidate)) {<NEW_LINE>// out-edge is a self-loop. hand...
next = Iterables.getOnlyElement(outStates);
134,285
private static void tryDatetime(RegressionEnvironment env, String dialect) {<NEW_LINE>long <MASK><NEW_LINE>String expression = "expression long " + dialect + ":callIt() [ " + msecDate + "]";<NEW_LINE>String epl = "@name('s0') " + expression + " select callIt().getHourOfDay() as val0, callIt().getDayOfWeek() as val1 fro...
msecDate = DateTime.parseDefaultMSec("2002-05-30T09:00:00.000");
1,396,845
public void testObservableRxInvoker_postIbmReceiveTimeout(Map<String, String> param, StringBuilder ret) {<NEW_LINE>long timeout = messageTimeout;<NEW_LINE>if (isZOS()) {<NEW_LINE>timeout = zTimeout;<NEW_LINE>}<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LI...
CountDownLatch countDownLatch = new CountDownLatch(1);
879,399
private SqlNode buildInsertNode(SqlNode oldNode) {<NEW_LINE>SqlInsert oldInsert = (SqlInsert) oldNode;<NEW_LINE>List<SqlNode> operandList = oldInsert.getOperandList();<NEW_LINE>SqlNode targetTable = buildTargetTable(oldInsert.getTargetTable());<NEW_LINE>SqlNode source = operandList.get(2);<NEW_LINE>if (source instanceo...
), oldInsert.getHints());
1,434,391
public static void insertModelDBDeploymentInfo() {<NEW_LINE>if (telemetryUniqueIdentifier != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOGGER.info("Telemetry unique identifier not initialized");<NEW_LINE>telemetryUniqueIdentifier = UUID.randomUUID().toString();<NEW_LINE>try (var connection = modelDBHibernateUtil.get...
setString(1, ModelDBConstants.ID);
1,448,337
// entry of processing swap table<NEW_LINE>private void processSwap(Database db, OlapTable origTable, List<AlterClause> alterClauses) throws UserException {<NEW_LINE>if (!(alterClauses.get(0) instanceof SwapTableClause)) {<NEW_LINE>throw new DdlException("swap operation only support table");<NEW_LINE>}<NEW_LINE>// must...
), olapNewTbl.getId());