idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
453,964
public void updateOptionsList() {<NEW_LINE>myIsInSchemeChange = true;<NEW_LINE>myLineSpacingField.setText(Float.toString(getLineSpacing()));<NEW_LINE>FontPreferences fontPreferences = getFontPreferences();<NEW_LINE>List<String> fontFamilies = fontPreferences.getEffectiveFontFamilies();<NEW_LINE>myPrimaryCombo.setFontNa...
.get(1) : null);
481,496
public void fillTargetField(ActionRequest request, ActionResponse response) {<NEW_LINE>Context context = request.getContext();<NEW_LINE>MetaField metaField = (MetaField) context.get("metaField");<NEW_LINE>if (metaField != null) {<NEW_LINE>String targetField = "";<NEW_LINE>if (context.get("targetField") == null) {<NEW_L...
setAttr("metaField", "readonly", true);
1,740,447
protected static ApplicationContext applicationContext(Class<?> mainClass, String[] args) {<NEW_LINE>KestraApplicationContextBuilder builder = new KestraApplicationContextBuilder().mainClass(mainClass).environments(Environment.CLI).classLoader(KestraClassLoader.instance());<NEW_LINE>CommandLine cmd = new CommandLine(ma...
parsedCommands.size() - 1);
1,698,266
private static void parseCommentRecursion(JSONArray comments, ArrayList<Comment> newCommentData, ArrayList<String> moreChildrenFullnames, int depth) throws JSONException {<NEW_LINE>int actualCommentLength;<NEW_LINE>if (comments.length() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JSONObject more = comments.getJSONObje...
more.getJSONArray(JSONUtils.CHILDREN_KEY);
1,525,074
public void whenEventTypeRepartitionedSubscriptionStartsStreamNewPartitions() throws Exception {<NEW_LINE>final EventType eventType = NakadiTestUtils.createBusinessEventTypeWithPartitions(1);<NEW_LINE>final Subscription subscription = NakadiTestUtils.createSubscription(RandomSubscriptionBuilder.builder().withEventType(...
Matchers.is(false)));
686,211
private void createPointerPicture() {<NEW_LINE>final Paint arrowPaint = new Paint();<NEW_LINE><MASK><NEW_LINE>arrowPaint.setAntiAlias(true);<NEW_LINE>arrowPaint.setStyle(Style.FILL);<NEW_LINE>arrowPaint.setAlpha(220);<NEW_LINE>// Create a little white dot in the middle of the compass rose<NEW_LINE>final Paint centerPai...
arrowPaint.setColor(Color.BLACK);
293,548
private int showDialog(IJSLineBreakpoint breakpoint) {<NEW_LINE>int currentHitCount = 0;<NEW_LINE>try {<NEW_LINE>currentHitCount = breakpoint.getHitCount();<NEW_LINE>} catch (CoreException e) {<NEW_LINE>IdeLog.logError(<MASK><NEW_LINE>}<NEW_LINE>// $NON-NLS-1$;<NEW_LINE>String initialValue = (currentHitCount > 0) ? Int...
JSDebugUIPlugin.getDefault(), e);
444,304
public static DescribeAffectedMaliciousFileImagesResponse unmarshall(DescribeAffectedMaliciousFileImagesResponse describeAffectedMaliciousFileImagesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAffectedMaliciousFileImagesResponse.setRequestId(_ctx.stringValue("DescribeAffectedMaliciousFileImagesResponse.Reques...
(_ctx.integerValue("DescribeAffectedMaliciousFileImagesResponse.PageInfo.TotalCount"));
402,839
public static Object parseAsJSON(HttpServletRequest request, HttpServletResponse response, final String fieldValue, final Contentlet contentlet, final String fieldVar) {<NEW_LINE>if (!UtilMethods.isSet(fieldValue))<NEW_LINE>return null;<NEW_LINE>request = request == null ? HttpServletRequestThreadLocal.INSTANCE.getRequ...
response) : VelocityUtil.getBasicContext();
549,645
public static ApiVehicleRentalStation mapToApi(VehicleRentalPlace domain, Locale locale) {<NEW_LINE>if (domain == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ApiVehicleRentalStation api = new ApiVehicleRentalStation();<NEW_LINE>api.id = domain.getStationId();<NEW_LINE>api.name = domain.getName().toString(locale);...
.x = domain.getLongitude();
1,378,126
public void eliminateSharedStreams() {<NEW_LINE>if (!sharedStreams)<NEW_LINE>return;<NEW_LINE>sharedStreams = false;<NEW_LINE>if (pageRefs.size() == 1)<NEW_LINE>return;<NEW_LINE>List<PdfObject> newRefs = new ArrayList<>();<NEW_LINE>List<PdfObject> <MASK><NEW_LINE>IntHashtable visited = new IntHashtable();<NEW_LINE>for ...
newStreams = new ArrayList<>();
1,363,809
final ListHostedConfigurationVersionsResult executeListHostedConfigurationVersions(ListHostedConfigurationVersionsRequest listHostedConfigurationVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listHostedConfigurationVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
574,946
public void scrollAnimators(@NonNull List<Animator> animators, int position, boolean isForward) {<NEW_LINE>switch(DatabaseConfiguration.scrollAnimatorType) {<NEW_LINE>case Scale:<NEW_LINE>AnimatorHelper.scaleAnimator(animators, itemView, 0f);<NEW_LINE>break;<NEW_LINE>case SlideInTopBottom:<NEW_LINE>if (isForward) {<NEW...
alphaAnimator(animators, itemView, 0f);
476,354
public String top10FailureJobByAllZkCluster() throws SaturnJobConsoleException {<NEW_LINE>List<JobStatistics> <MASK><NEW_LINE>Collection<ZkCluster> zkClusterList = registryCenterService.getOnlineZkClusterList();<NEW_LINE>for (ZkCluster zkCluster : zkClusterList) {<NEW_LINE>SaturnStatistics saturnStatistics = top10Failu...
jobStatisticsList = new ArrayList<>();
1,409,108
public Object apply(ActionContext ctx, Object caller, Object[] sources) throws FrameworkException {<NEW_LINE>assertArrayHasMinLengthAndAllElementsNotNull(sources, 1);<NEW_LINE>String baseUrl = null;<NEW_LINE>String userParameter = null;<NEW_LINE>Boolean runWithXserver = false;<NEW_LINE>String xServerSettings = null;<NE...
.SuperUserPassword.getValue()));
1,412,192
protected Folder _editWebAsset(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form, User user, String webKey) throws Exception {<NEW_LINE>// wraps request to get session object<NEW_LINE>ActionRequestImpl reqImpl = (ActionRequestImpl) req;<NEW_LINE>HttpServletRequest httpReq = reqImpl.getHttpSer...
.getUserAPI().getSystemUser();
34,032
public static WorkflowTrace generateWorkflow(Config tlsConfig, BleichenbacherWorkflowType type, byte[] encryptedPMS) {<NEW_LINE>WorkflowTrace trace = new WorkflowConfigurationFactory(tlsConfig).createWorkflowTrace(WorkflowTraceType.HELLO, RunningModeType.CLIENT);<NEW_LINE><MASK><NEW_LINE>ModifiableByteArray epms = new ...
RSAClientKeyExchangeMessage cke = new RSAClientKeyExchangeMessage(tlsConfig);
230,404
public void execute() throws Exception {<NEW_LINE>File quickstartTmpDir = new File(_dataDir, String.valueOf(System.currentTimeMillis()));<NEW_LINE>File baseDir = new File(quickstartTmpDir, "meetupRsvp");<NEW_LINE>File dataDir = new File(baseDir, "data");<NEW_LINE>Preconditions.checkState(dataDir.mkdirs());<NEW_LINE>Fil...
FileUtils.copyURLToFile(resource, schemaFile);
1,140,464
public Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String publicIpPrefixName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if...
error(new IllegalArgumentException("Parameter publicIpPrefixName is required and cannot be null."));
262,916
private Quantity convertToTargetUOM(@NonNull final Quantity sourceQuantity, @NonNull final org.compiere.model.I_C_OrderLine orderLine, @Nullable final UomId targetUomId) {<NEW_LINE>if (targetUomId == null || targetUomId.equals(sourceQuantity.getUomId())) {<NEW_LINE>return sourceQuantity;<NEW_LINE>}<NEW_LINE>final boole...
final BigDecimal itemCapacityInStockUOM = extractQtyItemCapacity(orderLine);
1,669,822
public Trampoline<LazyEither5<ST, M, M2, M3, PT>> toTrampoline() {<NEW_LINE>Trampoline<LazyEither5<ST, M, M2, M3, PT><MASK><NEW_LINE>return new Trampoline<LazyEither5<ST, M, M2, M3, PT>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public LazyEither5<ST, M, M2, M3, PT> get() {<NEW_LINE>LazyEither5<ST, M, M2, M3, PT> eithe...
> trampoline = lazy.toTrampoline();
1,273,746
public void visit(String name, Object value) {<NEW_LINE>super.visit(name, value);<NEW_LINE>final ValueInstanceType <MASK><NEW_LINE>ValueInstanceType arrVit = aet.getValue();<NEW_LINE>if (arrVit == null) {<NEW_LINE>arrVit = new ValueInstanceType();<NEW_LINE>arrVit.setType(ValueType.ARRAY);<NEW_LINE>aet.setValue(arrVit);...
vit = AsmObjectValueAnalyzer.processValue(value);
212,103
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
false), new ListTagsForResourceResultJsonUnmarshaller());
943,435
private void loadTableType(MethodVisitor mv, BTableType bType) {<NEW_LINE>// Create an new table type<NEW_LINE>mv.visitTypeInsn(NEW, TABLE_TYPE_IMPL);<NEW_LINE>mv.visitInsn(DUP);<NEW_LINE>loadType(mv, bType.constraint);<NEW_LINE>if (!bType.fieldNameList.isEmpty()) {<NEW_LINE>// Create the field names array<NEW_LINE>Lis...
long) fieldNames.size());
192,732
private Object lookup00(Object x, String type, Entry<String, ?> attrContext, Object context) {<NEW_LINE>if (x instanceof String) {<NEW_LINE>String desc = (String) x;<NEW_LINE>final boolean isDependency = isDependency(desc);<NEW_LINE>if (!isDependency) {<NEW_LINE>if (!desc.contains(".") && !type.isEmpty())<NEW_LINE>desc...
x = mutableEntry(attrContext, x);
161,517
public static Plugin of(RegisteredPlugin registeredPlugin) {<NEW_LINE>Plugin plugin = new Plugin();<NEW_LINE>plugin.manifest = registeredPlugin.getManifest().getMainAttributes().entrySet().stream().map(e -> new AbstractMap.SimpleEntry<>(e.getKey().toString(), e.getValue().toString())).collect(Collectors.toMap(Map.Entry...
(Class[]::new));
1,203,576
final ListInputSecurityGroupsResult executeListInputSecurityGroups(ListInputSecurityGroupsRequest listInputSecurityGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listInputSecurityGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
invoke(request, responseHandler, executionContext);
1,248,918
private static void addAvailableThemes(@NonNull final Folder dir, final List<ThemeData> themes, final String prefix, final int level) {<NEW_LINE>for (FileInformation candidate : Objects.requireNonNull(ContentStorage.get().list(dir))) {<NEW_LINE>if (candidate.isDirectory && (AVAILABLE_THEMES_SCAN_MAXDEPTH < 0 || level <...
null), candidate, dir));
89,585
private static boolean postAggregatorDirectColumnIsOk(final RowSignature aggregateRowSignature, final DruidExpression expression, final RexNode rexNode) {<NEW_LINE>if (!expression.isDirectColumnAccess()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// We don't really have a way to cast complex type. So might as well no...
(rexNode.getType()));
507,539
private void advance() throws IOException {<NEW_LINE>assert !endOfInput;<NEW_LINE>assert !bbuf.hasRemaining() : "advance() should be called when output byte buffer is empty. bbuf: " + bbuf + ", as string: " + bbuf.asCharBuffer().toString();<NEW_LINE>assert cbuf.remaining() < 2;<NEW_LINE>// given that bbuf.capacity = 3 ...
result = encoder.flush(bbuf);
1,368,920
JWT createJwt(String tokenString, OAuth20Provider oauth20provider, OidcServerConfig oidcServerConfig) throws OidcServerException {<NEW_LINE>String aud = null;<NEW_LINE>String issuer = null;<NEW_LINE>JWTPayload <MASK><NEW_LINE>if (payload != null) {<NEW_LINE>aud = JsonTokenUtil.getAud(payload);<NEW_LINE>issuer = JsonTok...
payload = JsonTokenUtil.getPayload(tokenString);
1,503,047
protected void configure() {<NEW_LINE>final CacheConfig cacheConfig = new ConfigurationObjectFactory(skifeConfigSource).build(CacheConfig.class);<NEW_LINE>bind(CacheConfig.class).toInstance(cacheConfig);<NEW_LINE>final EhCacheConfig ehCacheConfig = new ConfigurationObjectFactory(skifeConfigSource).build(EhCacheConfig.c...
Redis107CacheManagerProvider.class).asEagerSingleton();
1,586,405
private JSONObject callInternal(String sessionId, String method, JSONObject params) {<NEW_LINE>long id = nextMessageId.getAndIncrement();<NEW_LINE>JSONObject message = new JSONObject();<NEW_LINE>message.put("id", id);<NEW_LINE>if (sessionId != null) {<NEW_LINE>message.put("sessionId", sessionId);<NEW_LINE>}<NEW_LINE>me...
ChromeException("Call timed out: " + message, e);
603,278
public void initTab(int index) {<NEW_LINE>GridTab <MASK><NEW_LINE>if (initTabs.contains(mTab))<NEW_LINE>return;<NEW_LINE>mTab.initTab(false);<NEW_LINE>// Set Link Column<NEW_LINE>if (mTab.getLinkColumnName().length() == 0) {<NEW_LINE>ArrayList<String> parents = mTab.getParentColumnNames();<NEW_LINE>// No Parent - no li...
mTab = m_tabs.get(index);
20,681
public void marshall(CreateSMBFileShareRequest createSMBFileShareRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createSMBFileShareRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createSMB...
createSMBFileShareRequest.getAuthentication(), AUTHENTICATION_BINDING);
1,305,748
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>runAsLabel = new javax.swing.JLabel();<NEW_LINE>runAsCB = <MASK><NEW_LINE>setOpaque(false);<NEW_LINE>runAsLabel.setLabelFor(runAsCB);<NEW_LINE>// NOI18N<NEW_LINE>java.util.Resource...
new javax.swing.JComboBox();
654,413
public int putIfAbsent(float key, int value) {<NEW_LINE>if (key == 0.0f) {<NEW_LINE>for (int i = 0, max = this.elementSize; i < max; i++) {<NEW_LINE>if (this.keyTable[i] == 0.0f) {<NEW_LINE>int value1 = Float.floatToIntBits(key);<NEW_LINE>int value2 = Float.floatToIntBits(this.keyTable[i]);<NEW_LINE>if (value1 == -2147...
keyTable[this.elementSize] = key;
1,023,104
protected void run() {<NEW_LINE>try {<NEW_LINE>runInterceptHook();<NEW_LINE>protocolModel.getP2PService().findPeersCapabilities(trade.getTradingPeerNodeAddress()).filter(capabilities -> capabilities.containsAll(Capability.TRADE_STATISTICS_3)).ifPresentOrElse(capabilities -> {<NEW_LINE>TradeStatistics3 <MASK><NEW_LINE>i...
tradeStatistics = TradeStatistics3.from(trade);
909,790
protected List<String> statsDisplay(Player player, float skillValue, boolean hasEndurance, boolean isLucky) {<NEW_LINE>List<String> messages = new ArrayList<>();<NEW_LINE>ExcavationManager excavationManager = UserManager.getPlayer(player).getExcavationManager();<NEW_LINE>if (canGigaDrill) {<NEW_LINE>messages.add(getSta...
getArchaelogyExperienceOrbChance() / 100.0D)));
1,547,874
private I_PP_Cost_Collector processReceiptCandidate(final I_PP_Order_Qty candidate) {<NEW_LINE>// NOTE: we assume the candidate was not processed yet<NEW_LINE>//<NEW_LINE>// Validate the HU<NEW_LINE>final I_M_HU hu = candidate.getM_HU();<NEW_LINE>Check.assumeNotNull(hu, "Parameter hu is not null");<NEW_LINE>if (!X_M_HU...
).setParameter("candidate", candidate);
1,392,393
public static ActivationFunction parseActivationFunction(String value) {<NEW_LINE>ActivationFunction af = null;<NEW_LINE>final String[] cols = value.split("\\|");<NEW_LINE>final String afName = "org.encog.engine.network.activation." + cols[0];<NEW_LINE>try {<NEW_LINE>final Class<?> clazz = Class.forName(afName);<NEW_LI...
cols[i + 1]));
52,179
public void start() {<NEW_LINE>UlimitCheck.printUlimits();<NEW_LINE>videobridgeExpireThread.start();<NEW_LINE>// <conference><NEW_LINE>ProviderManager.addIQProvider(ColibriConferenceIQ.ELEMENT, ColibriConferenceIQ.NAMESPACE, new ColibriConferenceIqProvider());<NEW_LINE>// <force-shutdown><NEW_LINE>ForcefulShutdownIqPro...
ELEMENT, IceCandidatePacketExtension.NAMESPACE, iceCandidatePacketExtensionProvider);
575,897
public final FileSizeLiteralContext fileSizeLiteral() throws RecognitionException {<NEW_LINE>FileSizeLiteralContext _localctx = new FileSizeLiteralContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 530, RULE_fileSizeLiteral);<NEW_LINE>try {<NEW_LINE>setState(5476);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch...
_errHandler.reportError(this, re);
1,465,006
public static HistoricVariableInstanceDto fromHistoricVariableInstance(HistoricVariableInstance historicVariableInstance) {<NEW_LINE>HistoricVariableInstanceDto dto = new HistoricVariableInstanceDto();<NEW_LINE>dto.id = historicVariableInstance.getId();<NEW_LINE>dto.name = historicVariableInstance.getName();<NEW_LINE>d...
.tenantId = historicVariableInstance.getTenantId();
814,098
public Object read80BitFloat(long bitOffset) {<NEW_LINE>if (!canRead(bitOffset, LLVMDebugTypeConstants.LLVM80BIT_SIZE_ACTUAL)) {<NEW_LINE>return unavailable(bitOffset, LLVMDebugTypeConstants.LLVM80BIT_SIZE_ACTUAL);<NEW_LINE>}<NEW_LINE>if (isByteAligned(bitOffset)) {<NEW_LINE>final Object value = loadValue(PrimitiveType...
bitOffset, LLVMDebugTypeConstants.LLVM80BIT_SIZE_ACTUAL, false);
1,824,591
protected Map<Class<? extends Throwable>, ResponseStatus> generateExceptionMapping(Set<Class<?>> classes) {<NEW_LINE>Map<Class<? extends Throwable>, ResponseStatus> result = new HashMap<Class<? extends Throwable>, ResponseStatus>();<NEW_LINE>log.debug(String.format("Looking for classes with @ControllerAdvice annotation...
] exceptionClasses = handler.value();
489,640
public static String createReadableCombinedString(String[] strings, boolean quote, String separator, String lastSeparator) {<NEW_LINE>if (strings == null || strings.length == 0) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>if (separator == null) {<NEW_LINE>separator = ", ";<NEW_LINE>} else {<NEW_LINE>separator += " ";<NEW...
i]).append("\"");
545,089
public void broadcastMessageToChannel(String channel, Component message) {<NEW_LINE>ChattyApi api = getApi();<NEW_LINE>if (api == null)<NEW_LINE>return;<NEW_LINE>Optional<Chat> optChat = api.getChat(channel);<NEW_LINE>if (!optChat.isPresent()) {<NEW_LINE>DiscordSRV.debug(Debug.DISCORD_TO_MINECRAFT, "Attempted to broadc...
recipients = chat.getRecipients(null);
1,674,012
public static void generateFileChanges(DataModel model) {<NEW_LINE>CreatedModifiedFiles fileChanges = new CreatedModifiedFiles(model.getProject());<NEW_LINE>NbModuleProvider moduleInfo = model.getModuleInfo();<NEW_LINE>final String category = model.getCategory();<NEW_LINE>final String name = model.getName();<NEW_LINE>f...
String packageName = model.getPackageName();
308,494
protected void saveFile(boolean sendToPrinter) {<NEW_LINE>if (controls.patterns.size == 0)<NEW_LINE>return;<NEW_LINE>CreateFiducialSquareBinary c = new CreateFiducialSquareBinary();<NEW_LINE>c.sendToPrinter = sendToPrinter;<NEW_LINE>c.unit = controls.documentUnits;<NEW_LINE>c.paperSize = controls.paperSize;<NEW_LINE>if...
blackBorderFractionalWidth = (float) controls.borderFraction;
373,066
public Mono<List<ActionCollection>> archiveActionCollectionByApplicationId(String applicationId, AclPermission permission) {<NEW_LINE>return repository.findByApplicationId(applicationId, permission, null).flatMap(actionCollection -> {<NEW_LINE>Set<String> actionIds = new HashSet<>();<NEW_LINE>actionIds.addAll(actionCol...
(repository.archive(actionCollection));
817,847
public AccessGroupDefinition composeGroupDefinitionFromDb(UUID groupId) {<NEW_LINE>return persistence.callInTransaction(em -> {<NEW_LINE>AccessGroupDefinitionBuilder groupDefinitionBuilder = AccessGroupDefinitionBuilder.create();<NEW_LINE>Group group = em.find(Group.class, groupId);<NEW_LINE>// noinspection ConstantCon...
attributeKeys = new HashSet<>();
1,683,571
public void marshall(GetComplianceSummaryRequest getComplianceSummaryRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (getComplianceSummaryRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(get...
e.getMessage(), e);
376,842
void moveAddressRange(Address fromAddr, Address toAddr, long length, TaskMonitor monitor) throws AddressOverflowException, CancelledException {<NEW_LINE>lock.acquire();<NEW_LINE>try {<NEW_LINE>Address rangeEnd = fromAddr.addNoWrap(length - 1);<NEW_LINE>AddressSet addrSet = new AddressSet(fromAddr, rangeEnd);<NEW_LINE>A...
= new AddressRangeImpl(startAddr, endAddr);
150,938
private String _buildPramatiXMLWebModule(String path) throws DocumentException, IOException {<NEW_LINE>String contextRoot = path.substring(2, path.length() - 4);<NEW_LINE>String filePath = path + "/docroot/WEB-INF/web.xml";<NEW_LINE>if (path.endsWith("-complete")) {<NEW_LINE>contextRoot = "/";<NEW_LINE>filePath = path....
length() - 9) + "/docroot/WEB-INF/web.xml";
1,321,140
private void addMappingForContentTypeIfNeeded(final ContentType contentType, final Set<String> mappedFields, final String... indexes) {<NEW_LINE>final Map<String, JSONObject> contentTypeMapping = new HashMap();<NEW_LINE>try {<NEW_LINE>contentType.fields().forEach(field -> {<NEW_LINE>try {<NEW_LINE>addMappingForFieldIfN...
contentType.name(), indexes);
119,599
private void _onActivityResultLocationPage(Bundle bundle) {<NEW_LINE>String callbackId = bundle.getString("callbackId");<NEW_LINE>CallbackContext callbackContext = new CallbackContext(callbackId, this.webView);<NEW_LINE>LocationManager locationManager = (LocationManager) this.activity.getSystemService(Context.LOCATION_...
Log.d(TAG, "---debug at getMyLocation(available providers)--");
1,752,751
// GEN-LAST:event_enableCheckBoxActionPerformed<NEW_LINE>private void browseButtonActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_browseButtonActionPerformed<NEW_LINE>JFileChooser chooser = new JFileChooser();<NEW_LINE>FileUtil.preventFileChooserSymlinkTraversal(chooser, null);<NEW_LINE>ch...
(JWSCustomizerPanel.class, "LBL_Select_Icon_Image"));
1,294,062
public int estimateUnassembledSize(Object val) {<NEW_LINE>if (val == null) {<NEW_LINE>return 0;<NEW_LINE>} else {<NEW_LINE>int listSize = ((List) val).size();<NEW_LINE>if (listSize > 0) {<NEW_LINE>int entrySize = 0;<NEW_LINE>if (((List) val).get(0) instanceof String) {<NEW_LINE>// Guess that Strings average 20 characte...
.OBJECT_OVERHEAD * 2 + 20 * 2;
867,713
public static GetLogoFontListResponse unmarshall(GetLogoFontListResponse getLogoFontListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getLogoFontListResponse.setRequestId(_ctx.stringValue("GetLogoFontListResponse.RequestId"));<NEW_LINE>getLogoFontListResponse.setSuccess(_ctx.booleanValue("GetLogoFontListResponse.Succe...
("GetLogoFontListResponse.Fonts[" + i + "].Image"));
1,505,690
public void onNewChunk(OnChunkLoaded chunkAvailable, EntityRef worldEntity) {<NEW_LINE>Vector3ic chunkPos = chunkAvailable.getChunkPos();<NEW_LINE>Chunk chunk = chunkProvider.getChunk(chunkPos);<NEW_LINE>ByteBuffer buffer = ByteBuffer.allocateDirect(2 * (Chunks.SIZE_X * Chunks.SIZE_Y * Chunks.SIZE_Z));<NEW_LINE>buffer....
order(ByteOrder.nativeOrder());
1,694,954
public void run(RegressionEnvironment env) {<NEW_LINE>String eplFragment = "@name('s0') select items.where(i => i.location.x = 0 and i.location.y = 0) as zeroloc from LocationReport";<NEW_LINE>env.compileDeploy(eplFragment).addListener("s0");<NEW_LINE>env.sendEventBean(LocationReportFactory.makeSmall());<NEW_LINE>env.a...
(eplFragment).addListener("s0");
1,034,741
private void copy(OAtomicOperation atomicOperation, final OStorageConfiguration storageConfiguration) {<NEW_LINE>setCharset(atomicOperation, storageConfiguration.getCharset());<NEW_LINE>setSchemaRecordId(atomicOperation, storageConfiguration.getSchemaRecordId());<NEW_LINE>setIndexMgrRecordId(atomicOperation, storageCon...
.configuration = storageConfiguration.getContextConfiguration();
1,291,547
static public double HYCON(int p_A_ASSET_ID, String p_POSTINGTYPE, int p_A_ASSET_ACCT_ID, int p_Flag, double p_Period) {<NEW_LINE>int v_adj = 0;<NEW_LINE>StringBuffer sqlB = new StringBuffer("SELECT A_ASSET.ASSETSERVICEDATE, A_DEPRECIATION_WORKFILE.A_PERIOD_POSTED," + " A_DEPRECIATION_WORKFILE.A_ASSET_LIFE_YEARS, A_DEP...
(rs.getDate("ASSETSERVICEDATE"));
1,165,063
private int writePermission(MetaModel object, MetaField userField, String[] row, int colIndex, String permName) {<NEW_LINE>Permission perm = permissionRepository.findByName(permName);<NEW_LINE>if (perm != null && perm.getObject().equals(object.getFullName())) {<NEW_LINE>row[colIndex++] = !perm.getCanRead() ? "" : "x";<...
), object).fetchOne();
911,708
private String SubstGraphs(String query, String gInsert, String gDelete) {<NEW_LINE>ArrayList<String> lst = new ArrayList<String>(16);<NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LINE>String delim = "{} \t\n\r\f";<NEW_LINE>int i = 0;<NEW_LINE>char ch;<NEW_LINE>int qlen = query.length();<NEW_LINE>while (i < ql...
= query.charAt(i++);
1,683,772
public static VipInventory valueOf(VipVO vo) {<NEW_LINE>VipInventory inv = new VipInventory();<NEW_LINE>inv.setName(vo.getName());<NEW_LINE>inv.setDescription(vo.getDescription());<NEW_LINE>inv.setCreateDate(vo.getCreateDate());<NEW_LINE>inv.setGateway(vo.getGateway());<NEW_LINE>inv.setIp(vo.getIp());<NEW_LINE>inv.setI...
setSystem(vo.isSystem());
208,218
public void visit(BLangErrorMatchPattern errorMatchPattern, AnalyzerData data) {<NEW_LINE>if (errorMatchPattern.errorTypeReference != null) {<NEW_LINE>errorMatchPattern.setBType(symResolver.resolveTypeNode(errorMatchPattern.errorTypeReference, data.env));<NEW_LINE>} else {<NEW_LINE>errorMatchPattern.setBType(symTable.e...
putAll(errorMatchPattern.errorCauseMatchPattern.declaredVars);
1,682,435
public boolean releaseLock(List<RowLock> rowLocks) {<NEW_LINE>if (CollectionUtils.isEmpty(rowLocks)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>String currentXid = rowLocks.get(0).getXid();<NEW_LINE>Long branchId = rowLocks.get(0).getBranchId();<NEW_LINE>List<LockDO> needReleaseLocks = convertToLockDO(rowLocks);<NEW_L...
Jedis jedis = JedisPooledFactory.getJedisInstance();
1,797,771
public IotEventsAction unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>IotEventsAction iotEventsAction = new IotEventsAction();<NEW_LINE>reader...
().unmarshall(context));
1,643,563
public static void main(String[] args) {<NEW_LINE>final String USAGE = "Usage:\n" + " CreateDatasetGroup <name, datasetGroupArn>\n\n" + "Where:\n" + " datasetGroupArn - The Amazon Resource Name (ARN) of the dataset group that receives the event data\n" + " name - The name for the event tracker.\n\n";<NEW_LINE>if...
region(region).build();
406,488
private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati...
TypeAlias.sa_family_t, NativeType.USHORT);
550,404
public Object createResource(ResourceInfo info) throws Exception {<NEW_LINE>final boolean trace = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (trace && tc.isEntryEnabled())<NEW_LINE>Tr.entry(this, tc, "createResource", info);<NEW_LINE>Object resource;<NEW_LINE>try {<NEW_LINE>ResourceFactory factory = tracker.wait...
getName(), "134", this);
1,225,529
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c1".split(",");<NEW_LINE>String epl = "create context MyContext as " + "initiated by SupportBean_S0 " + "terminated by SupportBean_S1;\n" + "@name('s0') context MyContext select sum(intPrimitive) as c1 from SupportBean;\n";<NEW_LINE>env.compileDep...
new SupportBean_S0(10, "S0_1"));
58,874
/*<NEW_LINE>* Cost of an add() operation is O(log k) if the candidate has to be inserted in<NEW_LINE>* the current top-k elements, O(1) otherwise.<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public synchronized void add(Integer key, long count) {<NEW_LINE>Preconditions.checkNotNull(key, "key can't be null");<NEW_LINE>Preco...
> smallestTopPair = topPairs.pollFirst();
1,287,197
protected Tuple3<Boolean, Double, Map<String, String>> detect(SlicedSelectedSample selection) throws Exception {<NEW_LINE>double[] data = new double[this.model.nx];<NEW_LINE>if (isVector) {<NEW_LINE>Vector vector = VectorUtil.getVector(selection.<MASK><NEW_LINE>if (vector instanceof SparseVector) {<NEW_LINE>SparseVecto...
get(featureIdxs[0]));
1,085,174
public void process(MarvinImage a_imageIn, MarvinImage a_imageOut, MarvinAttributes a_attributesOut, MarvinImageMask a_mask, boolean a_previewMode) {<NEW_LINE>width = a_imageIn.getWidth();<NEW_LINE>height = a_imageIn.getHeight();<NEW_LINE>mat1 = new double[width][height];<NEW_LINE>mat2 = <MASK><NEW_LINE>mat4 = new doub...
new double[width][height];
303,894
public void copyFolderToTemp(Folder folder, File tempFolder, User user, String name, boolean isAutoPub, long lang) throws IOException {<NEW_LINE>String p = "";<NEW_LINE>try {<NEW_LINE>p = identifierAPI.find(folder.getIdentifier()).getPath();<NEW_LINE>} catch (Exception e) {<NEW_LINE>Logger.error(DotWebdavHelper.class, ...
getName(), isAutoPub, lang);
591,925
public static void registerRecipeTypes(BiConsumer<RecipeSerializer<?>, ResourceLocation> r) {<NEW_LINE>ResourceLocation id = IElvenTradeRecipe.TYPE_ID;<NEW_LINE>Registry.register(Registry.RECIPE_TYPE, id, ELVEN_TRADE_TYPE);<NEW_LINE>r.accept(ELVEN_TRADE_SERIALIZER, id);<NEW_LINE>r.accept(LEXICON_ELVEN_TRADE_SERIALIZER,...
(RUNE_HEAD_SERIALIZER, prefix("runic_altar_head"));
1,259,975
public static void vertical11(Kernel1D_S32 kernel, GrayS32 src, GrayS32 dst, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>final int[] dataSrc = src.data;<NEW_LINE>final int[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k...
int imgWidth = dst.getWidth();
419,771
public void reloadAllModelsOfType(final String modelType) {<NEW_LINE>synchronized (resourceSet) {<NEW_LINE>// Make a copy to avoid ConcurrentModificationException<NEW_LINE>List<Resource> resourceListCopy = new ArrayList<Resource>(resourceSet.getResources());<NEW_LINE>for (Resource resource : resourceListCopy) {<NEW_LIN...
lastSegment(), EventType.MODIFIED);
425,793
public void visit(LambdaExpr n, Void arg) {<NEW_LINE>printOrphanCommentsBeforeThisChildNode(n);<NEW_LINE>printComment(n.getComment(), arg);<NEW_LINE>final NodeList<Parameter> parameters = n.getParameters();<NEW_LINE>final boolean printPar = n.isEnclosingParameters();<NEW_LINE>if (printPar) {<NEW_LINE>printer.print("(")...
).accept(this, arg);
249,053
private WorkflowTrace createHandshakeWorkflow(AliasedConnection connection) {<NEW_LINE>WorkflowTrace workflowTrace = this.createHelloWorkflow(connection);<NEW_LINE>List<ProtocolMessage> messages = new LinkedList<>();<NEW_LINE>if (config.getHighestProtocolVersion().isTLS13()) {<NEW_LINE>if (Objects.equals(config.getTls1...
, ConnectionEndType.CLIENT, messages));
752,652
final ListProcessingJobsResult executeListProcessingJobs(ListProcessingJobsRequest listProcessingJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listProcessingJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
956,243
final DisassociateLensesResult executeDisassociateLenses(DisassociateLensesRequest disassociateLensesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateLensesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,477,941
public synchronized void createTweet(Status status, long listId) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>String originalName = "";<NEW_LINE>long time = status.getCreatedAt().getTime();<NEW_LINE>long id = status.getId();<NEW_LINE>if (status.isRetweet()) {<NEW_LINE>originalName = status.getUser()....
getUser().getScreenName());
1,478,201
// normalize<NEW_LINE>protected void predict(float[] S, int N, int direction) {<NEW_LINE>int half = N >> 1;<NEW_LINE>if (direction == forward) {<NEW_LINE>S[half] = S[half] - (sqrt3 / 4.0f) * S[0] - (((sqrt3 - 2) / 4.0f) * S[half - 1]);<NEW_LINE>} else if (direction == inverse) {<NEW_LINE>S[half] = S[half] + (sqrt3 / 4....
* S[half - 1]);
654,227
DbInfo.Builder doParse(String jdbcUrl, DbInfo.Builder builder) {<NEW_LINE>String serverName = "";<NEW_LINE>Integer port = null;<NEW_LINE>int hostIndex = jdbcUrl.indexOf("jtds:sqlserver://");<NEW_LINE>if (hostIndex < 0) {<NEW_LINE>return builder;<NEW_LINE>}<NEW_LINE>String[] split = jdbcUrl.split(";", 2);<NEW_LINE>if (s...
(split[1], ";");
1,728,708
private void concretePassword(List<PersonItem> people) throws Exception {<NEW_LINE>Pattern pattern = Pattern.compile(com.x.base.core.project.config.Person.REGULAREXPRESSION_SCRIPT);<NEW_LINE>Matcher matcher = pattern.matcher(Config.person().getPassword());<NEW_LINE>if (matcher.matches()) {<NEW_LINE>CompiledScript cs = ...
put(ScriptingFactory.BINDING_NAME_SERVICE_PERSON, o);
370,284
private CaptureDescription cloneCurrentSettings() {<NEW_LINE>Objects.requireNonNull(this.currentSettings);<NEW_LINE>CaptureDescription clone = new CaptureDescription();<NEW_LINE>clone.withSizeLimitInBytes(this.currentSettings.sizeLimitInBytes());<NEW_LINE>clone.withSkipEmptyArchives(this.currentSettings.skipEmptyArchiv...
.withDestination(new Destination());
1,146,441
public BType visit(BStreamType originalType, BType expType) {<NEW_LINE>BStreamType matchingType = (BStreamType) getMatchingTypeForInferrableType(originalType, expType);<NEW_LINE>boolean hasMatchedStreamType = matchingType != null;<NEW_LINE>BStreamType expStreamType = hasMatchedStreamType ? matchingType : null;<NEW_LINE...
= hasMatchedStreamType ? expStreamType.constraint : null;
1,343,956
static JSType filterNoResolvedType(JSType type) {<NEW_LINE>if (type.isNoResolvedType()) {<NEW_LINE>// inf(UnresolvedType1, UnresolvedType2) needs to resolve<NEW_LINE>// to the base unresolved type, so that the relation is symmetric.<NEW_LINE>return type.getNativeType(JSTypeNative.NO_RESOLVED_TYPE);<NEW_LINE>} else if (...
.getNativeType(JSTypeNative.NO_RESOLVED_TYPE));
191,068
public void onCreate(Bundle icicle) {<NEW_LINE>super.onCreate(icicle);<NEW_LINE><MASK><NEW_LINE>imagePreview = (ImageView) findViewById(R.id.preview);<NEW_LINE>ListView filesList = (ListView) findViewById(R.id.filesList);<NEW_LINE>files = getImages();<NEW_LINE>List<String> names = new ArrayList<String>();<NEW_LINE>Iter...
setContentView(R.layout.directory_list);
1,592,145
public static void findClasspathOrder(final ClassLoader classLoader, final ClasspathOrder classpathOrder, final ScanSpec scanSpec, final LogNode log) {<NEW_LINE>Object smartClassPath;<NEW_LINE>final Object appLoader = ReflectionUtils.getFieldVal(false, classLoader, "appLoader");<NEW_LINE>if (appLoader != null) {<NEW_LI...
getFieldVal(false, appLoader, "smartClassPath");
559,411
final GetUICustomizationResult executeGetUICustomization(GetUICustomizationRequest getUICustomizationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getUICustomizationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,409,396
public FulfillmentGroup addItemToFulfillmentGroup(Order order, OrderItem item, FulfillmentGroup fulfillmentGroup, int quantity, boolean priceOrder) throws PricingException {<NEW_LINE>// 1) Find the item's existing fulfillment group, if any<NEW_LINE>for (FulfillmentGroup fg : order.getFulfillmentGroups()) {<NEW_LINE>Ite...
fgi = fulfillmentGroupItemDao.save(fgi);
1,020,534
public List<RedisNode> sortRedisNodeList(List<RedisNode> redisNodeList) {<NEW_LINE>Map<String, Set<RedisNode>> masterAndReplicaMap = new LinkedHashMap<>();<NEW_LINE>redisNodeList.forEach(redisNode -> {<NEW_LINE>String nodeId = redisNode.getNodeId();<NEW_LINE><MASK><NEW_LINE>String masterId = redisNode.getMasterId();<NE...
NodeRole nodeRole = redisNode.getNodeRole();
645,028
public void closing(CommandContext commandContext) {<NEW_LINE>// This logic needs to be done before the dbSqlSession is flushed<NEW_LINE>// which means it can't be done in the transaction pre-commit<NEW_LINE>Map<JobServiceConfiguration, AsyncHistorySessionData> sessionData = asyncHistorySession.getSessionData();<NEW_LI...
jobServiceConfiguration, jobData, objectNodes, type);
1,557,946
static boolean editModifiedCoordinates(@NonNull final Geocache cache, final Geopoint wpt) {<NEW_LINE>final String userToken = getUserToken(cache);<NEW_LINE>if (StringUtils.isEmpty(userToken)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final ObjectNode jo = new ObjectNode(JsonUtils.factory);<NEW_LINE>final ObjectNode ...
).put("ut", userToken);
1,084,243
protected String histItemFilterQueryProvider(FilterCriteria filter, int numberDecimalcount, String table, String simpleName, ZoneId timeZone) {<NEW_LINE>logger.debug("JDBC::getHistItemFilterQueryProvider filter = {}, numberDecimalcount = {}, table = {}, simpleName = {}", filter.toString(), numberDecimalcount, table, si...
Ordering.ASCENDING) ? " ORDER BY time ASC" : " ORDER BY time DESC";