idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
24,586
public static void installApk(@NonNull final File f, @NonNull final PermissionsActivity permissionsActivity) {<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !permissionsActivity.getPackageManager().canRequestPackageInstalls()) {<NEW_LINE>permissionsActivity.requestInstallApkPermission(() -> installApk(...
Toast.LENGTH_SHORT).show();
1,638,216
public ProjectTask computeDefaultInformation(ProjectTask projectTask) throws AxelorException {<NEW_LINE>Product product = projectTask.getProduct();<NEW_LINE>if (product != null) {<NEW_LINE>projectTask.setInvoicingType(ProjectTaskRepository.INVOICING_TYPE_PACKAGE);<NEW_LINE>if (projectTask.getUnitPrice() == null || proj...
ONE : projectTask.getBudgetedTime());
627,728
Boolean le(Object leftValue, Object rightValue) {<NEW_LINE>if (leftValue instanceof Number && rightValue instanceof Number) {<NEW_LINE>Number l = (Number) leftValue;<NEW_LINE>Number r = (Number) rightValue;<NEW_LINE>int maxType = Arith.getMaxType(l, r);<NEW_LINE>switch(maxType) {<NEW_LINE>case Arith.INT:<NEW_LINE>retur...
(bi[1]) <= 0;
1,030,603
public static void updateClientProtocolMappers(ClientRepresentation rep, ClientModel resource) {<NEW_LINE>if (rep.getProtocolMappers() != null) {<NEW_LINE>Map<String, ProtocolMapperModel> existingProtocolMappers = resource.getProtocolMappersStream().collect(Collectors.toMap(mapper -> generateProtocolNameKey(mapper.getP...
.addProtocolMapper(toModel(protocolMapperRepresentation));
546,420
private static void initStaticVariables() {<NEW_LINE>mapper = new ObjectMapper().enable(SerializationFeature.INDENT_OUTPUT).enable(DeserializationFeature.FAIL_ON_READING_DUP_TREE_KEY);<NEW_LINE>mapper.configure(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);<NEW_LINE>mapper.configure(JsonParser.Feature.ALLOW_UNQU...
DefaultIndenter(DEFAULT_INDENT, DefaultIndenter.SYS_LF);
1,521,849
public ClassReader readClass(InputStream stream, String name) throws IOException {<NEW_LINE>VarDataInput input = new VarDataInput(stream);<NEW_LINE>CachedClassReader cls = new CachedClassReader();<NEW_LINE>cls.name = name;<NEW_LINE>cls.level = accessLevels[input.readUnsigned()];<NEW_LINE>cls.modifiers = unpackModifiers...
annotations = annotationIO.readAnnotations(input);
917,797
public void commandLine(String query_input) {<NEW_LINE>// while (true) {<NEW_LINE>// query user for question, quit if user types in "exit"<NEW_LINE>// MsgPrinter.printQuestionPrompt();<NEW_LINE>// String question = readLine().trim();<NEW_LINE>String question = query_input.trim();<NEW_LINE>if (question.equalsIgnoreCase(...
] results = new Result[0];
1,286,610
public static ListFlowProjectUserResponse unmarshall(ListFlowProjectUserResponse listFlowProjectUserResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFlowProjectUserResponse.setRequestId(_ctx.stringValue("ListFlowProjectUserResponse.RequestId"));<NEW_LINE>listFlowProjectUserResponse.setPageNumber(_ctx.integerValue("Li...
(_ctx.integerValue("ListFlowProjectUserResponse.Total"));
782,273
private void addIpV4WildcardMatch(final String endpoint, final String peer, final boolean deny) {<NEW_LINE>String[] parts = peer.split("\\.");<NEW_LINE>int mask = 0;<NEW_LINE>int prefix = 0;<NEW_LINE>for (int i = 0; i < 4; ++i) {<NEW_LINE>mask <<= 8;<NEW_LINE>prefix <<= 8;<NEW_LINE>String part = parts[i];<NEW_LINE>if (...
no = Integer.parseInt(part);
947,695
public static QueryPath create(String originalPath) {<NEW_LINE>if (isEmpty(originalPath)) {<NEW_LINE>throw badPathException(originalPath);<NEW_LINE>}<NEW_LINE>if (KEY.equals(originalPath)) {<NEW_LINE>return KEY_PATH;<NEW_LINE>} else if (VALUE.equals(originalPath)) {<NEW_LINE>return VALUE_PATH;<NEW_LINE>}<NEW_LINE>if (o...
return new QueryPath(originalPath, false);
1,087,761
protected CompletableFuture<Void> completeUsingThreads(Map<Integer, GdbThread> byId) {<NEW_LINE>if (byId.isEmpty()) {<NEW_LINE>setElements(List.of(), "Refreshed (with no thread)");<NEW_LINE>return AsyncUtils.NIL;<NEW_LINE>}<NEW_LINE>GdbThread thread = byId.values()<MASK><NEW_LINE>return thread.listRegisters().thenAccep...
.iterator().next();
32,663
public void processMessage(JsMessage jsMsg) throws SIResourceException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "processMessage", new Object[] { jsMsg });<NEW_LINE>int priority = jsMsg.getPriority().intValue();<NEW_LINE>Reliability reliability = jsMsg.getReliability();<NEW_LINE>SIBUuid12 streamID = ...
streamSet = getStreamSet(streamID, true);
1,770
public void testEnvXMLPrimServletContextAttributeListener() {<NEW_LINE>svLogger.info("Testing Transaction Context Attribute Listener Injection...");<NEW_LINE>// Set a context attribute<NEW_LINE>String key = WCEventTracker.KEY_LISTENER_ADD_AdvEnvXMLPrimContextAttributeListener;<NEW_LINE>getServletContext().<MASK><NEW_LI...
setAttribute(WCEventTracker.KEY_ATTRIBUTE_AdvEnvXMLPrimContextAttributeListener, "initial");
1,635,712
protected CoderResult decodeLoop(ByteBuffer source, CharBuffer target) {<NEW_LINE>while (true) {<NEW_LINE>if (!source.hasRemaining()) {<NEW_LINE>return CoderResult.UNDERFLOW;<NEW_LINE>}<NEW_LINE>if (!target.hasRemaining()) {<NEW_LINE>return CoderResult.OVERFLOW;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>byte b = source.get()...
int initialPosition = source.position();
1,239,124
public void createControls(Composite parent) {<NEW_LINE>Composite treeComposite = new Composite(parent, SWT.NONE);<NEW_LINE>GridDataFactory.fillDefaults().grab(true, true).applyTo(treeComposite);<NEW_LINE>GridLayoutFactory.fillDefaults().applyTo(treeComposite);<NEW_LINE>Tree tree = new <MASK><NEW_LINE>GridDataFactory.f...
Tree(treeComposite, getConfiguration());
393,980
public byte[] produce(ConnectionContext context, HandshakeMessage message) throws IOException {<NEW_LINE>// The producing happens in server side only.<NEW_LINE>ServerHandshakeContext shc = (ServerHandshakeContext) context;<NEW_LINE>// Is it a supported and enabled extension?<NEW_LINE>//<NEW_LINE>// Note that this is a ...
new SignatureSchemesSpec(shc.localSupportedSignAlgs));
1,393,817
private CMSEnvelopedData doGenerate(CMSTypedData content, OutputEncryptor contentEncryptor) throws CMSException {<NEW_LINE>ASN1EncodableVector recipientInfos = new ASN1EncodableVector();<NEW_LINE>AlgorithmIdentifier encAlgId;<NEW_LINE>ASN1OctetString encContent;<NEW_LINE>ByteArrayOutputStream bOut = new ByteArrayOutput...
mac, 0, mac.length);
360,266
private TaskModel taskToBeRescheduled(WorkflowModel workflow, TaskModel task) {<NEW_LINE>TaskModel taskToBeRetried = task.copy();<NEW_LINE>taskToBeRetried.<MASK><NEW_LINE>taskToBeRetried.setRetriedTaskId(task.getTaskId());<NEW_LINE>taskToBeRetried.setStatus(SCHEDULED);<NEW_LINE>taskToBeRetried.setRetryCount(task.getRet...
setTaskId(IDGenerator.generate());
1,135,002
public String deleteApprovedSite(@PathVariable("id") Long id, ModelMap m, Principal p) {<NEW_LINE>ApprovedSite approvedSite = approvedSiteService.getById(id);<NEW_LINE>if (approvedSite == null) {<NEW_LINE>logger.error("deleteApprovedSite failed; no approved site found for id: " + id);<NEW_LINE>m.put(HttpCodeView.CODE, ...
ERROR_MESSAGE, "Could not delete approved site. The requested approved site with id: " + id + " could not be found.");
1,023,882
void add(byte[] packedValue, int docID) throws IOException {<NEW_LINE>assert valueInOrder(config, valueCount + leafCount, 0, lastPackedValue, packedValue, 0, docID, lastDocID);<NEW_LINE>if (leafCount == 0 || equalsPredicate.test(leafValues, (leafCount - 1) * config.bytesPerDim, packedValue, 0) == false) {<NEW_LINE>leaf...
config.packedBytesLength, config.packedBytesLength);
373,654
private Object unaryExpr(TokenStream ts) throws IOException, JavaScriptException {<NEW_LINE>int tt;<NEW_LINE>ts.flags |= ts.TSF_REGEXP;<NEW_LINE>tt = ts.getToken();<NEW_LINE>ts.flags &= ~ts.TSF_REGEXP;<NEW_LINE>switch(tt) {<NEW_LINE>case TokenStream.UNARYOP:<NEW_LINE>sourceAdd((char) ts.UNARYOP);<NEW_LINE>sourceAdd((ch...
(), unaryExpr(ts));
663,709
public void marshall(ElasticsearchDomainStatus elasticsearchDomainStatus, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (elasticsearchDomainStatus == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(elasticse...
elasticsearchDomainStatus.getEBSOptions(), EBSOPTIONS_BINDING);
1,362,548
protected final Properties generateLTPAKeys(byte[] keyPasswordBytes, final String realm) throws Exception {<NEW_LINE>Properties expProps = null;<NEW_LINE>try {<NEW_LINE>KeyEncryptor encryptor = new KeyEncryptor(keyPasswordBytes);<NEW_LINE>LTPAKeyPair pair = LTPADigSignature.generateLTPAKeyPair();<NEW_LINE>byte[] public...
expProps.put(LTPA_VERSION_PROPERTY, "1.0");
665,241
public static DruidDataSource create(String name, String url, String username, String password, HighAvailableDataSource haDataSource) throws SQLException {<NEW_LINE>DruidDataSource dataSource = new DruidDataSource();<NEW_LINE>dataSource.setName(name + "-" + System.identityHashCode(dataSource));<NEW_LINE>dataSource.setU...
setSharePreparedStatements(haDataSource.isSharePreparedStatements());
1,194,499
public void jsConstructor(final String type, final ScriptableObject details) {<NEW_LINE>super.jsConstructor(ScriptRuntime<MASK><NEW_LINE>if (details != null && !Undefined.isUndefined(details)) {<NEW_LINE>final Object screenX = details.get("screenX", details);<NEW_LINE>if (NOT_FOUND != screenX) {<NEW_LINE>screenX_ = Scr...
.toString(type), details);
248,584
private IRubyObject arrayRange(final ThreadContext context, final RubyRange range) {<NEW_LINE>final Object array = getObject();<NEW_LINE>final int arrayLength = Array.getLength(array);<NEW_LINE>final IRubyObject <MASK><NEW_LINE>final IRubyObject rLast = range.last(context);<NEW_LINE>if (rFirst instanceof RubyFixnum && ...
rFirst = range.first(context);
221,890
public String[] authorize(URL home) {<NEW_LINE>FormLogin panel = new FormLogin();<NEW_LINE>String server = HudsonManager.simplifyServerLocation(home.toString(), true);<NEW_LINE>String username = loginPrefs().get(server, null);<NEW_LINE>if (username != null) {<NEW_LINE>panel.userField.setText(username);<NEW_LINE>char[] ...
panel.passField.setText("");
781,298
private boolean verify(ByteBuffer content) {<NEW_LINE>ByteBuffer bb = ByteBuffer.allocate(l2i(getContentSize() + (deadBytes != null ? deadBytes.limit() : 0)));<NEW_LINE>getContent(bb);<NEW_LINE>if (deadBytes != null) {<NEW_LINE>((Buffer) deadBytes).rewind();<NEW_LINE>while (deadBytes.remaining() > 0) {<NEW_LINE>bb.put(...
int p = content.position();
1,323,545
private boolean checkForAddOnUpdates(AddOnCollection aoc, OptionsParamCheckForUpdates options) {<NEW_LINE>List<AddOn> updates = getUpdatedAddOns();<NEW_LINE>if (updates.isEmpty()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// Log at info for daemon mode as its the only indication if not auto-installing<NEW_LINE>logger...
"There is/are {} newer addons", updates.size());
335,367
public StartSigningJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartSigningJobResult startSigningJobResult = new StartSigningJobResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token =...
String currentParentElement = context.getCurrentParentElement();
1,355,994
public static void main(String[] args) throws IOException {<NEW_LINE>long updateRate = -1;<NEW_LINE>long count = 0;<NEW_LINE>int capacity = 1000;<NEW_LINE>if (args.length > 0) {<NEW_LINE>try {<NEW_LINE>capacity = Integer.parseInt(args[0]);<NEW_LINE>} catch (NumberFormatException e) {<NEW_LINE>System.err.print("Bad capa...
.println(formatSummary(topk));
1,505,088
ServiceIdentity updateTemplateServiceIdentity(ServiceIdentity serviceIdentity, String domainName, List<TemplateParam> params) {<NEW_LINE>String templateServiceName = serviceIdentity.getName().replace(TEMPLATE_DOMAIN_NAME, domainName);<NEW_LINE>if (params != null) {<NEW_LINE>for (TemplateParam param : params) {<NEW_LINE...
setGroup(serviceIdentity.getGroup());
640,630
public int compareTo(Object obj) {<NEW_LINE>TimePeriod that = (TimePeriod) obj;<NEW_LINE>long t0 = getStart().getTime();<NEW_LINE>long t1 = getEnd().getTime();<NEW_LINE>long m0 = t0 <MASK><NEW_LINE>long t2 = that.getStart().getTime();<NEW_LINE>long t3 = that.getEnd().getTime();<NEW_LINE>long m1 = t2 + (t3 - t2) / 2L;<N...
+ (t1 - t0) / 2L;
1,001,779
private void updateHeader() {<NEW_LINE>final String sql = DB.convertSqlToNative("UPDATE C_Project p " + "SET (PlannedAmt,PlannedQty,PlannedMarginAmt," + " CommittedAmt,CommittedQty," + " InvoicedAmt, InvoicedQty) = " + "(SELECT COALESCE(SUM(pl.PlannedAmt),0),COALESCE(SUM(pl.PlannedQty),0),COALESCE(SUM(pl.PlannedMarginA...
executeUpdateEx(sql, get_TrxName());
397,303
public void dumpEventValueInJSON(DbusEvent e, OutputStream out) {<NEW_LINE>byte[] md5 = new byte[16];<NEW_LINE>e.schemaId(md5);<NEW_LINE><MASK><NEW_LINE>VersionedSchema sourceSchema = _schemaSet.getById(schemaId);<NEW_LINE>ByteBuffer valueBuffer = e.value();<NEW_LINE>byte[] valueBytes = new byte[valueBuffer.remaining()...
SchemaId schemaId = new SchemaId(md5);
126,328
public void addInitState(ITool tool, TLCState state, long stateFP) {<NEW_LINE>for (int soln = 0; soln < solutions.length; soln++) {<NEW_LINE>OrderOfSolution os = solutions[soln];<NEW_LINE>BEGraph bgraph = bgraphs[soln];<NEW_LINE>int slen = os.getCheckState().length;<NEW_LINE>int alen = os.getCheckAction().length;<NEW_L...
stateFP, tnode.getIndex());
1,100,545
private CCLicense retrieveLicenseObject(final String licenseId, CloseableHttpResponse response) throws IOException, JDOMException {<NEW_LINE>String responseString = EntityUtils.toString(response.getEntity());<NEW_LINE>XPathExpression<Object> licenseClassXpath = XPathFactory.instance().compile("//licenseclass", Filters....
element = licenseClassXpath.evaluateFirst(classDoc);
205,465
public static String renderResponseContent(String requestBody, String requestResourcePath, HttpServletRequest request, Response response) {<NEW_LINE>if (response.getContent().contains(TemplateEngine.DEFAULT_EXPRESSION_PREFIX)) {<NEW_LINE>log.debug("Response contains dynamic EL expression, rendering it...");<NEW_LINE>Te...
list(request.getHeaderNames());
455,718
static void configureCdmStandardsAdapter() {<NEW_LINE>// Default values for the optional parameters used by the CDM Standards adapter.<NEW_LINE>String timeout = "2000";<NEW_LINE>String maximumTimeout = "10000";<NEW_LINE>String numberOfRetries = "2";<NEW_LINE>// Ask the user if optional parameters should be configured, ...
Integer.parseInt(timeout)));
1,478,493
public Object calculate(Context ctx) {<NEW_LINE>IParam param = this.param;<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("cor" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object obj = param.<MASK><NEW_LINE>ret...
getLeafExpression().calculate(ctx);
254,313
public void listContextJsps(Context context, Summary summary, boolean compile) {<NEW_LINE>ServletConfig servletConfig = (ServletConfig) context.findChild("jsp");<NEW_LINE>if (servletConfig != null) {<NEW_LINE>synchronized (servletConfig) {<NEW_LINE>ServletContext sctx = context.getServletContext();<NEW_LINE>Options opt...
(new HashMap<>());
1,244,770
public NameEnvironmentAnswer findClass(String binaryFileName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly, Predicate<String> moduleNameFilter) {<NEW_LINE>if (!isPackage(qualifiedPackageName, moduleName)) {<NEW_LINE>// most common case<NEW_LINE>return null;<NEW_LI...
read(this.zipFile, s);
662,124
public void validate(final Processor<FullData, FullData> processor, final ProcessingReport report, final MessageBundle bundle, final FullData data) throws ProcessingException {<NEW_LINE>final SchemaTree tree = data.getSchema();<NEW_LINE>final JsonPointer schemaPointer = tree.getPointer();<NEW_LINE>final JsonNode schema...
ObjectNode fullReport = FACTORY.objectNode();
877,951
public void convertKits() {<NEW_LINE>final Kits kits = ess.getKits();<NEW_LINE>final EssentialsConfiguration config = kits.getRootConfig();<NEW_LINE>if (doneFile.getBoolean("kitsyml", false)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOGGER.info("Attempting to convert old kits in config.yml to new kits.yml");<NEW_LINE>fin...
legacyKits = ConfigurateUtil.getRawMap(section);
1,188,354
public void onPrepareBufferImage(Canvas canvas, RotatedTileBox tileBox, DrawSettings settings) {<NEW_LINE>List<SelectedGpxFile> selectedGPXFiles = new ArrayList<>(selectedGpxHelper.getSelectedGPXFiles());<NEW_LINE>cache.clear();<NEW_LINE>removeCachedUnselectedTracks(selectedGPXFiles);<NEW_LINE>if (!selectedGPXFiles.isE...
), tileBox.getCenterPixelY());
1,063,351
public void invokeAfterGroupsConfigurations(GroupConfigMethodArguments arguments) {<NEW_LINE>// Skip this if the current method doesn't belong to any group<NEW_LINE>// (only a method that belongs to a group can trigger the invocation<NEW_LINE>// of afterGroups methods)<NEW_LINE>if (arguments.getTestMethod().getGroups()...
getTestMethod()).build();
501,982
protected void writeIndexGen(final RepositoryData repositoryData, final long repositoryStateId) throws IOException {<NEW_LINE>// can not write to a read only repository<NEW_LINE>assert isReadOnly() == false;<NEW_LINE>final long currentGen = latestIndexBlobId();<NEW_LINE>if (repositoryStateId != SnapshotsInProgress.UNDE...
Long.toString(newGen - 2);
1,198,558
private static J2ObjcMappingFileProvider depJ2ObjcMappingFileProvider(RuleContext ruleContext) {<NEW_LINE>NestedSetBuilder<Artifact> depsHeaderMappingsBuilder = NestedSetBuilder.stableOrder();<NEW_LINE>NestedSetBuilder<Artifact> depsClassMappingsBuilder = NestedSetBuilder.stableOrder();<NEW_LINE>NestedSetBuilder<Artifa...
addTransitive(mapping.getArchiveSourceMappingFiles());
1,321,370
public static String stackTraceToString(final StackTraceElement[] arr) {<NEW_LINE>if (arr == null) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>ArrayList<StackTraceElement> stacks = new ArrayList<>(arr.length);<NEW_LINE>for (StackTraceElement traceElement : arr) {<NEW_LINE>String className = traceElement.getClassName();<N...
String className = stack.getClassName();
1,306,480
public Set<ByteArrayWrapper> keys() {<NEW_LINE>Stream<ByteArrayWrapper> baseKeys;<NEW_LINE>Stream<ByteArrayWrapper> committedKeys;<NEW_LINE>Stream<ByteArrayWrapper> uncommittedKeys;<NEW_LINE>Set<ByteArrayWrapper> uncommittedKeysToRemove;<NEW_LINE>this.lock.readLock().lock();<NEW_LINE>try {<NEW_LINE>baseKeys = base<MASK...
.keys().stream();
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()...
>> hostsAndLabels = getLabels(hosts);
1,812,352
private SortedMap<String, BgpAdvertisementsByVrf> parseEnvironmentBgpTables(NetworkSnapshot snapshot, SortedMap<String, String> inputData, ParseEnvironmentBgpTablesAnswerElement answerElement) {<NEW_LINE>_logger.info("\n*** PARSING ENVIRONMENT BGP TABLES ***\n");<NEW_LINE>_logger.resetTimer();<NEW_LINE>SortedMap<String...
bgpTables = new TreeMap<>();
1,649,843
public GrokProcessor create(Map<String, Processor.Factory> registry, String processorTag, Map<String, Object> config) throws Exception {<NEW_LINE>String matchField = ConfigurationUtils.readStringProperty(TYPE, processorTag, config, "field");<NEW_LINE>List<String> matchPatterns = ConfigurationUtils.readList(TYPE, proces...
". " + e.getMessage());
724,787
public static Map<String, Object> generateControllerConf(String zkAddress, String clusterName, String controllerHost, String controllerPort, String dataDir, ControllerConf.ControllerMode controllerMode, boolean tenantIsolation) throws SocketException, UnknownHostException {<NEW_LINE>if (StringUtils.isEmpty(zkAddress)) ...
) ? controllerPort : getAvailablePort());
1,784,605
public DescribeHsmClientCertificatesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeHsmClientCertificatesResult describeHsmClientCertificatesResult = new DescribeHsmClientCertificatesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = origi...
XMLEvent xmlEvent = context.nextEvent();
1,735,519
private List<Object[]> buildStepExecutionParameters(StepExecution stepExecution) {<NEW_LINE>Assert.isNull(stepExecution.getId(), "to-be-saved (not updated) StepExecution can't already have an id assigned");<NEW_LINE>Assert.isNull(stepExecution.getVersion(), "to-be-saved (not updated) StepExecution can't already have a ...
getExitStatus().getExitDescription());
693,134
public void update(AnActionEvent event) {<NEW_LINE><MASK><NEW_LINE>DataContext dataContext = event.getDataContext();<NEW_LINE>FileEditor editor = event.getData(PlatformDataKeys.FILE_EDITOR);<NEW_LINE>// do not allow global undo in dialogs<NEW_LINE>if (editor == null) {<NEW_LINE>final Boolean isModalContext = event.getD...
Presentation presentation = event.getPresentation();
847,667
public static ListPersonsResponse unmarshall(ListPersonsResponse listPersonsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listPersonsResponse.setRequestId(_ctx.stringValue("ListPersonsResponse.RequestId"));<NEW_LINE>listPersonsResponse.setMessage(_ctx.stringValue("ListPersonsResponse.Message"));<NEW_LINE>listPersonsRe...
("ListPersonsResponse.Data.Records[" + i + "].FirstAppearTime"));
1,462,888
protected void loadConfig() {<NEW_LINE>Map map = subs.getHistoryConfig();<NEW_LINE>Long l_enabled = (Long) map.get("enabled");<NEW_LINE>enabled = l_enabled == null ? true : l_enabled.longValue() == 1;<NEW_LINE>Long l_auto_dl = (Long) map.get("auto_dl");<NEW_LINE>auto_dl = l_auto_dl == null ? false : l_auto_dl.longValue...
: l_dl_with_ref.longValue() == 1;
461,716
public boolean excludeEntry(int AD_Column_ID, boolean isSOTrx) {<NEW_LINE>if (m_excludes == null) {<NEW_LINE>final String whereClause = X_M_AttributeSetExclude.COLUMNNAME_M_AttributeSet_ID + "=?";<NEW_LINE>List<X_M_AttributeSetExclude> list = new Query(getCtx(), X_M_AttributeSetExclude.Table_Name, whereClause, null).se...
get(getCtx(), AD_Column_ID);
748,563
public static void orderBandsBufferedFromRGB(DataBufferInt buffer, WritableRaster raster, int type) {<NEW_LINE>if (BufferedImage.TYPE_INT_RGB == type)<NEW_LINE>return;<NEW_LINE>int height = raster.getHeight();<NEW_LINE>int width = raster.getWidth();<NEW_LINE>int stride = ConvertRaster.stride(raster);<NEW_LINE>int offse...
] data = buffer.getData();
786,444
private Map<String, TopKeyReportData> toReportDataMap(Set<String> newSetData) {<NEW_LINE>Map<String, TopKeyReportData> reportDataHashMap = new HashMap<String, TopKeyReportData>(100);<NEW_LINE>if (null != newSetData) {<NEW_LINE>JSONObject jsonObject = null;<NEW_LINE>String prefix = null;<NEW_LINE>TopKeyReportData report...
(jsonObject.getString("dataType"));
680,754
public boolean validateObject(WorkerKey key, PooledObject<Worker> p) {<NEW_LINE>Worker worker = p.getObject();<NEW_LINE>Optional<Integer> exitValue = worker.getExitValue();<NEW_LINE>if (exitValue.isPresent()) {<NEW_LINE>if (reporter != null && worker.diedUnexpectedly()) {<NEW_LINE>String msg = String.format("%s %s (id ...
equals(worker.getWorkerFilesCombinedHash());
534,471
public void doAlarm(List<AlarmMessage> alarmMessage) {<NEW_LINE>alarmMessage.forEach(message -> {<NEW_LINE>if (LOGGER.isDebugEnabled()) {<NEW_LINE>LOGGER.debug("Alarm message: {}", message.getAlarmMessage());<NEW_LINE>}<NEW_LINE>AlarmRecord record = new AlarmRecord();<NEW_LINE>record.setScope(message.getScopeId());<NEW...
new ArrayList<>(tags));
1,685,098
int findAvailablePort(int minPort, int maxPort) {<NEW_LINE>if (minPort <= 0) {<NEW_LINE>throw new IllegalArgumentException("'minPort' must be greater than 0");<NEW_LINE>} else if (minPort > maxPort) {<NEW_LINE>throw new IllegalArgumentException("'maxPort' must be greater than 'minPort'");<NEW_LINE>} else if (maxPort > ...
while (!isPortAvailable(candidatePort));
1,017,983
protected Collection<String> parseScopesClaim(Jwt jwt) {<NEW_LINE>String scopeClaim;<NEW_LINE>if (this.authoritiesClaimName == null) {<NEW_LINE>scopeClaim = WELL_KNOWN_AUTHORITIES_CLAIM_NAMES.stream().filter(claim -> jwt.hasClaim(claim)).findFirst().orElse(null);<NEW_LINE>if (scopeClaim == null) {<NEW_LINE>return Colle...
.toCollection(HashSet::new));
190,480
protected void processNodePaths(Terminal terminal, OptionSet options, Environment env) throws IOException, UserException {<NEW_LINE>terminal.println(Terminal.Verbosity.VERBOSE, "Obtaining lock for node");<NEW_LINE>Integer nodeOrdinal = nodeOrdinalOption.value(options);<NEW_LINE>if (nodeOrdinal == null) {<NEW_LINE>nodeO...
dataPaths, nodeOrdinal, options, env);
961,400
public Contentlet copyContentlet(final Contentlet contentletToCopy, final Host host, final Folder folder, final User user, final String copySuffix, final boolean respectFrontendRoles) throws DotDataException, DotSecurityException, DotContentletStateException {<NEW_LINE>for (ContentletAPIPreHook pre : preHooks) {<NEW_LI...
user, copySuffix, respectFrontendRoles, copiedContentlet);
1,641,907
public String checkDependencies(final String containerInode) throws DotDataException, DotSecurityException, PortalException, SystemException {<NEW_LINE>final HttpServletRequest req = WebContextFactory.get().getHttpServletRequest();<NEW_LINE>final User user = userWebAPI.getLoggedInUser(req);<NEW_LINE>final boolean respe...
isSet(containerDependencyResults) ? containerDependencyResults : null;
1,831,620
public static void validateRelationship(Relationship relationship) throws GlossaryAuthorFVTCheckedException {<NEW_LINE>if (relationship == null) {<NEW_LINE>// error<NEW_LINE>throw new GlossaryAuthorFVTCheckedException("ERROR: Expected relationship to exist, ");<NEW_LINE>}<NEW_LINE>if (relationship.getName() == null) {...
relationship.getName() + "'s system attributes to exist, ");
1,229,125
public static void main(String[] args) throws Throwable {<NEW_LINE>System.out.println(EYECATCHER + JPAApplicationFieldInjectClient.<MASK><NEW_LINE>// Verify injection was successful<NEW_LINE>System.out.println(EYECATCHER + "emf=" + emf);<NEW_LINE>if (emf == null) {<NEW_LINE>// Injection has failed.<NEW_LINE>fail(" emf ...
class.getName() + ": hello");
1,068,772
public HealthIndicatorResult calculate() {<NEW_LINE>DiscoveryNode coordinatingNode = clusterService.localNode();<NEW_LINE><MASK><NEW_LINE>DiscoveryNodes nodes = clusterState.nodes();<NEW_LINE>DiscoveryNode masterNode = nodes.getMasterNode();<NEW_LINE>HealthStatus instanceHasMasterStatus = masterNode == null ? HealthSta...
ClusterState clusterState = clusterService.state();
1,092,917
public int decode(byte[] in, int inOff, int length, byte[] out, int outOff) {<NEW_LINE>int halfLength = length / 2;<NEW_LINE>byte left, right;<NEW_LINE>for (int i = 0; i < halfLength; i++) {<NEW_LINE>left = in[inOff + i * 2];<NEW_LINE>right = in[inOff + i * 2 + 1];<NEW_LINE>if (left < (byte) 'a') {<NEW_LINE>out[outOff]...
) (right - 'a' + 10);
1,672,787
private Computer makeBigIntegerComputer(EPTypeClass typeOne, EPTypeClass typeTwo) {<NEW_LINE>if ((typeOne.getType() == BigDecimal.class) && (typeTwo.getType() == BigDecimal.class)) {<NEW_LINE>return computers.get(new MathArithDesc(EPTypePremade.BIGDECIMAL.getEPType(), this));<NEW_LINE>}<NEW_LINE>if ((typeOne.getType() ...
return new AddBigIntConvComputer(convertorOne, convertorTwo);
1,437,388
public void consume(EventEnum event, LauncherAtom.ItemInfo atomInfo) {<NEW_LINE>if (event == LAUNCHER_APP_LAUNCH_TAP || event == LAUNCHER_TASK_LAUNCH_SWIPE_DOWN || event == LAUNCHER_TASK_LAUNCH_TAP || event == LAUNCHER_QUICKSWITCH_RIGHT || event == LAUNCHER_QUICKSWITCH_LEFT) {<NEW_LINE>sendEvent(atomInfo, ACTION_LAUNCH...
sendEvent(atomInfo, ACTION_PIN, CONTAINER_HOTSEAT_PREDICTION);
1,599,217
public void reloadGeometryData(@Nullable DBGeometry[] values, boolean force, boolean recenter) throws DBException {<NEW_LINE>if (!force && CommonUtils.equalObjects(lastValue, values)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int maxObjects = GISViewerActivator.getDefault().getPreferences().getInt(GeometryViewerConstants....
toURL().toString());
1,012,368
List<CommandLine> parse(String... args) {<NEW_LINE>Assert.notNull(args, "argument array");<NEW_LINE>Tracer tracer = tracer();<NEW_LINE>if (tracer.isInfo()) {<NEW_LINE>tracer.info("Picocli version: %s", versionString());<NEW_LINE>}<NEW_LINE>if (tracer.isInfo()) {<NEW_LINE>tracer.info("Parsing %d command line args %s", a...
.addAll(reverseList(expanded));
1,653,624
public MxNDArray createRowSparse(Buffer data, Shape dataShape, long[] indices, Shape shape) {<NEW_LINE>SparseFormat fmt = SparseFormat.ROW_SPARSE;<NEW_LINE>DataType dataType = DataType.fromBuffer(data);<NEW_LINE>MxNDArray indicesNd = create(new Shape(indices<MASK><NEW_LINE>indicesNd.set(indices);<NEW_LINE>Pointer handl...
.length), DataType.INT64);
706,188
// prepare application config change for later registering<NEW_LINE>// in the domain.xml<NEW_LINE>@Override<NEW_LINE>public Transaction prepareAppConfigChanges(final DeploymentContext context) throws TransactionFailure {<NEW_LINE>final Properties appProps = context.getAppProps();<NEW_LINE>final DeployCommandParameters ...
e.getMessage(), e);
913,354
private Schema buildSchema10Schema() {<NEW_LINE>Schema result = new Schema();<NEW_LINE>// create the root element<NEW_LINE>ISchemaElement root = result.createElement(Element.SCHEMA.name);<NEW_LINE>// tell schema this is the root<NEW_LINE>result.setRootElement(Element.SCHEMA.name);<NEW_LINE>// create element element and...
createElement(Element.ELEMENT.name);
1,854,129
public boolean load() {<NEW_LINE>try {<NEW_LINE>// node info is obtained from weidentity.properties.tpl<NEW_LINE>nodes = PropertyUtils.getProperty("nodes");<NEW_LINE>version = PropertyUtils.getProperty("bcos.version");<NEW_LINE>weIdAddress = PropertyUtils.getProperty("weId.contractaddress");<NEW_LINE>cptAddress = Prope...
web3sdkMaxPoolSize = PropertyUtils.getProperty("web3sdk.max-pool-size");
937,402
public void commit(Xid xid, boolean onePhase) throws XAException {<NEW_LINE>if (successLimit == null || successLimit.getAndDecrement() > 0) {<NEW_LINE>System.<MASK><NEW_LINE>xaRes.commit(xid, onePhase);<NEW_LINE>if (// XA connection kept open for recovery in the case of activation spec<NEW_LINE>xaCon != null)<NEW_LINE>...
out.println(this + ".commit");
80,718
public List<AnnotationVO> listByEntity(String entityType, String entityUuid, String userUuid, boolean isCallerAdmin, String annotationFilter, String callingUserUuid, String keyword) {<NEW_LINE>SearchCriteria<AnnotationVO<MASK><NEW_LINE>sc.addAnd("entityType", SearchCriteria.Op.EQ, entityType);<NEW_LINE>sc.addAnd("entit...
> sc = AnnotationSearchBuilder.create();
690,820
public final Condition greaterOrEqual(Field<T1> t1, Field<T2> t2, Field<T3> t3, Field<T4> t4, Field<T5> t5, Field<T6> t6, Field<T7> t7, Field<T8> t8, Field<T9> t9, Field<T10> t10, Field<T11> t11, Field<T12> t12, Field<T13> t13, Field<T14> t14, Field<T15> t15, Field<T16> t16, Field<T17> t17, Field<T18> t18, Field<T19> t...
t16, t17, t18, t19);
309,181
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String province, String city, String district) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>List<Wo> wos = new Arr...
.listStreet(business, districtDistrict));
821,933
public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler) {<NEW_LINE>final StringCalc stringCalc = compiler.compileString(call.getArg(0));<NEW_LINE>SetType type = (SetType) call.getType();<NEW_LINE>Type elementType = type.getElementType();<NEW_LINE>if (elementType instanceof MemberType) {<NEW_LINE>final Hiera...
string = stringCalc.evaluateString(evaluator);
1,789,347
private void drawDistribution(Graphics2D g2, List<Point2D_F64> candidates, int offX, int offY, double scale) {<NEW_LINE>findStatistics();<NEW_LINE>// draw all the features, adjusting their size based on the first score<NEW_LINE>g2.setColor(Color.RED);<NEW_LINE>g2.setStroke(new BasicStroke(3));<NEW_LINE>double normalize...
y - maxCircleRadius, w, w);
1,420,947
public static void main(String[] args) {<NEW_LINE>Exercise20_IdleTime idleTime = new Exercise20_IdleTime();<NEW_LINE>Job job1 = idleTime.new Job(5, 6);<NEW_LINE>Job job2 = idleTime.new Job(12, 14);<NEW_LINE>Job job3 = idleTime.new Job(1, 3);<NEW_LINE>Job job4 = idleTime.new Job(9, 12);<NEW_LINE>Job job5 = idleTime.new ...
.new Job(2, 4);
1,518,771
void createAndAddEvents(@NonNull final HUTraceEventBuilder builder, @NonNull final List<?> models) {<NEW_LINE>final IHandlingUnitsBL handlingUnitsBL = Services.get(IHandlingUnitsBL.class);<NEW_LINE>final IHUStatusBL huStatusBL = Services.get(IHUStatusBL.class);<NEW_LINE>for (final Object model : models) {<NEW_LINE>fina...
vhus = huAccessService.retrieveVhus(huId);
1,111,812
protected void prepare() {<NEW_LINE>ProcessInfoParameter[] para = getParametersAsArray();<NEW_LINE>for (ProcessInfoParameter element : para) {<NEW_LINE>String name = element.getParameterName();<NEW_LINE>if (element.getParameter() == null) {<NEW_LINE>} else if (name.equals("M_CostType_ID")) {<NEW_LINE>p_M_CostType_ID = ...
ofRepoIdOrAny(element.getParameterAsInt());
831,632
private static void dequantH263Intra(MPEG4DecodingContext ctx, short[] block, final int quant, final int dcscalar) {<NEW_LINE>final int quantM2 = quant << 1;<NEW_LINE>final int quantAdd = ((quant & 1) != 0 ? quant : quant - 1);<NEW_LINE>block[0] = (short) MathUtil.clip(block[0] * dcscalar, -2048, 2047);<NEW_LINE>for (i...
acLevel = quantM2 * -acLevel + quantAdd;
810,394
public void initValues(FileObject template, FileObject preselectedFolder) {<NEW_LINE>if (template == null) {<NEW_LINE>throw new IllegalArgumentException(// NOI18N<NEW_LINE>NbBundle.// NOI18N<NEW_LINE>getMessage(// NOI18N<NEW_LINE>ConfigureFXMLCSSPanelVisual.class, "MSG_ConfigureFXMLPanel_Template_Error"));<NEW_LINE>}<N...
getParent().getCurrentPackageName());
1,391,128
private AutodiscoverResponse createRedirectionResponse(HttpWebRequest httpWebResponse) throws XMLStreamException, IOException, EWSHttpException {<NEW_LINE>String location = httpWebResponse.getResponseHeaderField("Location");<NEW_LINE>if (!(location == null || location.isEmpty())) {<NEW_LINE>try {<NEW_LINE>URI redirecti...
TraceFlags.AutodiscoverConfiguration, "Redirection response returned by Autodiscover " + "service without redirection location.");
567,168
public View onCreateView(LayoutInflater inflater, final ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>logDebug("onCreateView");<NEW_LINE>display = ((Activity) context).getWindowManager().getDefaultDisplay();<NEW_LINE>outMetrics = new DisplayMetrics();<NEW_LINE>display.getMetrics(outMetrics);<NEW_LINE>densi...
findViewById(R.id.main_relative_layout_notifications);
464,664
public static void build(MeshPartBuilder builder, float x1, float y1, float z1, float x2, float y2, float z2, float capLength, float stemThickness, int divisions) {<NEW_LINE>Vector3 begin = obtainV3().set(x1, y1, z1), end = obtainV3().set(x2, y2, z2);<NEW_LINE>float length = begin.dst(end);<NEW_LINE>float coneHeight = ...
crs(up).nor();
691,860
private void updatePreview() {<NEW_LINE>int category = categoryList.getSelectedIndex();<NEW_LINE>try {<NEW_LINE>Object selectedItem = exampleCombo.getSelectedItem();<NEW_LINE>// NOI18N<NEW_LINE>String preview = "";<NEW_LINE>if (selectedItem != null) {<NEW_LINE>String selected = selectedItem.toString();<NEW_LINE>if (cat...
MaskFormatter(formatField.getText());
602,940
protected static ProtectedRegion checkRegionFromSelection(Actor actor, String id) throws CommandException {<NEW_LINE>Region selection = checkSelection(actor);<NEW_LINE>// Detect the type of region from WorldEdit<NEW_LINE>if (selection instanceof Polygonal2DRegion) {<NEW_LINE>Polygonal2DRegion polySel = (Polygonal2DRegi...
.getMinimumPoint().getBlockY();
1,195,931
final AttachManagedPolicyToPermissionSetResult executeAttachManagedPolicyToPermissionSet(AttachManagedPolicyToPermissionSetRequest attachManagedPolicyToPermissionSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(attachManagedPolicyToPermissionSetRequest);<NEW_LINE>AWSRequestMetrics awsRe...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
611,648
public void apply(UISkinBuilder builder) {<NEW_LINE>super.apply(builder);<NEW_LINE>// Check if we actually have the NUI Manager available, this would for instance not be the case if starting a headless game server<NEW_LINE>NUIManager nui = CoreRegistry.get(NUIManager.class);<NEW_LINE>if (nui == null) {<NEW_LINE>logger....
"Failed to resolve UIWidget class {}, skipping style information", entry.getKey());
187,737
/*<NEW_LINE>* @see com.ibm.wsspi.channelfw.ChannelFramework#initChain(String)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public synchronized void initChain(String chainName) throws ChannelException, ChainException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, "initChai...
new Object[] { chain });