idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,181,633
public Request<CreateVolumeRequest> marshall(CreateVolumeRequest createVolumeRequest) {<NEW_LINE>if (createVolumeRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<CreateVolumeRequest> request = new DefaultRequest<CreateVolumeRequest>(cre...
(createVolumeRequest.getAvailabilityZone()));
1,747,526
public void decryptCEK(ContentCryptoMaterialRW contentMaterialRW) {<NEW_LINE>assertParameterNotNull(contentMaterialRW, "ContentCryptoMaterialRW");<NEW_LINE>assertParameterNotNull(contentMaterialRW.getEncryptedCEK(), "ContentCryptoMaterialRW#getEncryptedCEK");<NEW_LINE>assertParameterNotNull(contentMaterialRW.getEncrypt...
= new SecretKeySpec(cekBytes, "");
430,300
private static void writeInstallLaterToCluster(File cluster, Map<UpdateElementImpl, File> updates) {<NEW_LINE>Document document = XMLUtil.createDocument(UpdateTracking.ELEMENT_MODULES, null, null, null);<NEW_LINE>Element root = document.getDocumentElement();<NEW_LINE>if (updates.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}...
getSpecificationVersion().toString());
700,740
public int onBackPressed() {<NEW_LINE>logDebug("onBackPressed");<NEW_LINE>cancelSearch();<NEW_LINE>int levelSearch = ((ManagerActivity) context).levelsSearch;<NEW_LINE>if (levelSearch >= 0) {<NEW_LINE>if (levelSearch > 0) {<NEW_LINE>MegaNode node = megaApi.getNodeByHandle(((ManagerActivity) context).getParentHandleSear...
context).setParentHandleSearch(-1);
1,133,753
FormatterFunc createFormat() throws Exception {<NEW_LINE>ClassLoader classLoader = jarState.getClassLoader();<NEW_LINE>// instantiate the formatter and get its format method<NEW_LINE>Class<?> optionsClass = classLoader.loadClass(OPTIONS_CLASS);<NEW_LINE>Class<?> optionsBuilderClass = classLoader.loadClass(OPTIONS_BUILD...
formatterClazz = classLoader.loadClass(FORMATTER_CLASS);
457,573
protected IMetaStoreClient newClient() {<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>return GET_CLIENT.invoke(hiveConf, (HiveMetaHookLoader) tbl -> null, HiveMetaStoreThriftClient.class.getName());<NEW_LINE>} catch (RuntimeException e) {<NEW_LINE>// any MetaException would be wrapped into RuntimeException during reflection,...
t, "Failed to start an embedded metastore because embedded " + "Derby supports only one client at a time. To fix this, use a metastore that supports " + "multiple clients.");
1,495,660
private void queryServerNow() {<NEW_LINE>Long offsetResult = null;<NEW_LINE>for (int i = 0; i < MAX_QUERY_RETRIES; i++) {<NEW_LINE>try {<NEW_LINE>NTPUDPClient client = new NTPUDPClient();<NEW_LINE>// Timeout if a response takes longer than 10 seconds<NEW_LINE>client.setDefaultTimeout(DEFAULT_NTP_TIMEOUT_MS);<NEW_LINE>c...
info = client.getTime(address);
984,698
public boolean handle(World world, BlockPos pos, EnumFacing direction, ItemStack stack, EntityPlayer player, IStripesActivator activator) {<NEW_LINE>if (world.isAirBlock(pos)) {<NEW_LINE>BlockPos place = new BlockPos(pos.getX(), direction.ordinal() < 2 ? pos.getY() : (pos.getY() - 1), pos.getZ());<NEW_LINE>if (((ItemBu...
pos.down(), true);
1,431,324
final GetRegistryCatalogDataResult executeGetRegistryCatalogData(GetRegistryCatalogDataRequest getRegistryCatalogDataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRegistryCatalogDataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
933,252
public static QueryTaskDetailListResponse unmarshall(QueryTaskDetailListResponse queryTaskDetailListResponse, UnmarshallerContext context) {<NEW_LINE>queryTaskDetailListResponse.setRequestId(context.stringValue("QueryTaskDetailListResponse.RequestId"));<NEW_LINE>queryTaskDetailListResponse.setTotalItemNum(context.integ...
("QueryTaskDetailListResponse.Data[" + i + "].InstanceId"));
1,010,090
public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>if (additionalProperties.containsKey(CodegenConstants.INVOKER_PACKAGE)) {<NEW_LINE>this.setInvokerPackage((String) additionalProperties.get(CodegenConstants.INVOKER_PACKAGE));<NEW_LINE>}<NEW_LINE>if (additionalProperties.containsKey("mainPackage")) {<NE...
replace(".", File.separator);
865,101
protected // clauses in KB while inferred will contain all the proposition symbols.<NEW_LINE>Map<PropositionSymbol, Set<Clause>> initializeIndex(Map<Clause, Integer> count, Map<PropositionSymbol, Boolean> inferred) {<NEW_LINE>Map<PropositionSymbol, Set<Clause>> pToClausesWithPInPremise = new HashMap<PropositionSymbol, ...
= new HashSet<Clause>();
1,606,534
final DeletePackageVersionsResult executeDeletePackageVersions(DeletePackageVersionsRequest deletePackageVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePackageVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.SERVICE_ID, "codeartifact");
122,062
public void marshall(DeploymentJob deploymentJob, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (deploymentJob == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(deploymentJob.getArn(), ARN_BINDING);<NEW_LIN...
deploymentJob.getFailureCode(), FAILURECODE_BINDING);
993,129
public void testNoMethNameXML() throws Exception {<NEW_LINE>svLogger.info("--> This test is looking for a specific error message - see test for details.");<NEW_LINE>// Names of interface, application, module, and bean used in the test for lookup.<NEW_LINE>String Interface <MASK><NEW_LINE>String Application = "AsyncXMLE...
= NoMethNameXMLLocal.class.getName();
1,222,445
public void render(ChemthrowerShotEntity entity, float entityYaw, float partialTicks, PoseStack matrixStackIn, MultiBufferSource bufferIn, int packedLightIn) {<NEW_LINE>FluidStack f = entity.getFluid();<NEW_LINE>if (f == null || f.isEmpty()) {<NEW_LINE>f = entity.getFluidSynced();<NEW_LINE>if (f == null || f.isEmpty())...
.getXRot(), true));
1,392,000
public static String generateHash(String value, byte[] hmacKey) throws NoSuchAlgorithmException, InvalidKeyException {<NEW_LINE>// Time-stamp at Encryption time<NEW_LINE>long tStamp = System.currentTimeMillis();<NEW_LINE>String uTValue = new String();<NEW_LINE>String cValue;<NEW_LINE>String finalEncValue;<NEW_LINE>// C...
= new SecretKeySpec(hmacKey, HMAC_SHA256_ALGORITHM);
1,176,045
public List<Record> loadFromMetaData(List<RecordMetaData> recordMetaDatas) throws IOException {<NEW_LINE>Set<Integer> toLoad = new HashSet<>();<NEW_LINE>for (RecordMetaData recordMetaData : recordMetaDatas) {<NEW_LINE>if (!(recordMetaData instanceof RecordMetaDataIndex)) {<NEW_LINE>throw new IllegalArgumentException("E...
idx + " from collection: contains " + original + " elements");
1,226,820
private MockResponse doCreateOrModify(String path, String initial, HasMetadata value, Action event) {<NEW_LINE>MockResponse mockResponse = new MockResponse();<NEW_LINE>// workaround for mockserver https://github.com/fabric8io/mockwebserver/pull/59<NEW_LINE>Map<String, String> pathValues = kubernetesAttributesExtractor....
attributes = attributeExtractor.fromPath(path);
1,576,837
public void actionPerformed(@Nonnull AnActionEvent e) {<NEW_LINE>ExternalServiceConfiguration configuration = myExternalServiceConfigurationProvider.get();<NEW_LINE>if (configuration.getEmail() != null) {<NEW_LINE>Alerts.yesNo().asWarning().text(LocalizeValue.localizeTODO("Do logout?")).showAsync().doWhenDone(value -> ...
ExternalServiceConfigurationImpl) configuration).reset();
1,558,431
public com.amazonaws.services.kinesisvideo.model.InvalidDeviceException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kinesisvideo.model.InvalidDeviceException invalidDeviceException = new com.amazonaws.services.kinesisvideo.model.InvalidDeviceException(null);...
String currentParentElement = context.getCurrentParentElement();
33,797
public Request<ListTagsForResourceRequest> marshall(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>if (listTagsForResourceRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListTagsForResourceRequest)");<NEW_LINE>}<NEW_LINE>Request<ListTagsForResourceRequ...
t.getMessage(), t);
1,314,333
final DeletePortalResult executeDeletePortal(DeletePortalRequest deletePortalRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePortalRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeletePortalRequest> request = null;<NEW_LINE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
651,107
public FileVisitResult visitFile(java.nio.file.Path path, java.nio.file.Path mod, BasicFileAttributes attrs) throws IOException {<NEW_LINE>String name = JRTUtil.sanitizedFileName(path);<NEW_LINE>if (Util.isClassFileName(name) && isValidPackageNameForClassOrisModule(name)) {<NEW_LINE>try {<NEW_LINE>String fullPath = pat...
docFullPath, classFileBytes, this.participant);
106,414
public static // Used on various card parts.<NEW_LINE>void drawRoundedBox(Graphics2D g, int x, int y, int w, int h, int bevel, Paint border, Paint fill) {<NEW_LINE>g.setColor(new Color(0, 0, 0, 150));<NEW_LINE>g.drawOval(x - 1, y - 1, bevel * 2, h);<NEW_LINE>g.setPaint(border);<NEW_LINE>g.fillOval(x, y, bevel * 2 - 1, ...
2 * bevel, h - 1);
1,109,557
public Dimension preferredLayoutSize(Container target) {<NEW_LINE>int maxWidth = getMaximumWidth(target);<NEW_LINE>synchronized (target.getTreeLock()) {<NEW_LINE>Dimension dim = new Dimension(0, 0);<NEW_LINE>int nmembers = target.getComponentCount();<NEW_LINE>for (int i = 0; i < nmembers; i++) {<NEW_LINE>Component m = ...
Insets insets = target.getInsets();
1,464,505
private synchronized void init() {<NEW_LINE>Set<Vector2l> <MASK><NEW_LINE>startTime = System.currentTimeMillis();<NEW_LINE>// Logger.global.logInfo("Starting: " + worldRegion);<NEW_LINE>long changesSince = 0;<NEW_LINE>if (!force)<NEW_LINE>changesSince = map.getRenderState().getRenderTime(worldRegion);<NEW_LINE>Region r...
tileSet = new HashSet<>();
1,116,461
private void doPrewriteSecondaryKeySingleBatchWithRetry(BackOffer backOffer, ByteString primaryKey, BatchKeys batchKeys, Map<ByteString, Kvrpcpb.Mutation> mutations) throws TiBatchWriteException {<NEW_LINE>LOG.info("start prewrite secondary key, row={}, size={}KB, regionId={}", batchKeys.getKeys().size(), batchKeys.get...
.getKeys().size();
1,175,591
public Optional<RequestContainer> findRequestByIdish(String idish) {<NEW_LINE>Stack<String> splits = new Stack<String>();<NEW_LINE>splits.addAll(Arrays.asList(idish.split("/")));<NEW_LINE>if (splits.isEmpty()) {<NEW_LINE>throw new IllegalArgumentException("No id given");<NEW_LINE>}<NEW_LINE>String reqName = splits.pop(...
> colName = Optional.empty();
207,420
public static void main(String[] args) {<NEW_LINE>var kingJoffrey = new KingJoffrey();<NEW_LINE>var kingsHand = new KingsHand();<NEW_LINE>kingsHand.registerObserver(kingJoffrey, Event.TRAITOR_DETECTED);<NEW_LINE>kingsHand.registerObserver(kingJoffrey, Event.STARK_SIGHTED);<NEW_LINE>kingsHand.registerObserver(kingJoffre...
registerObserver(kingsHand, Event.WHITE_WALKERS_SIGHTED);
1,640,274
public static QueryAvailableSellPointTemplateDemosResponse unmarshall(QueryAvailableSellPointTemplateDemosResponse queryAvailableSellPointTemplateDemosResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryAvailableSellPointTemplateDemosResponse.setRequestId(_ctx.stringValue("QueryAvailableSellPointTemplateDemosResponse.R...
(_ctx.stringValue("QueryAvailableSellPointTemplateDemosResponse.ErrorMessage"));
1,210,001
public void installHooks(boolean isSystemServer) {<NEW_LINE>XLog.d("ThanoxHookImpl, installHooks...isSystemServer? " + isSystemServer);<NEW_LINE>if (isSystemServer) {<NEW_LINE>waitForSystemReady(new AbstractSafeR() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void runSafety() {<NEW_LINE>ActivityThread at = ActivityTh...
(new String[0]));
115,760
private static HostAndPort parseHostHeader(String parsedHostHeader) {<NEW_LINE>if (parsedHostHeader.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String parsedHost;<NEW_LINE>int parsedPort = -1;<NEW_LINE>if (parsedHostHeader.charAt(0) == '[') {<NEW_LINE>// https://tools.ietf.org/html/rfc3986#section-3.2.2<NEW_...
parsedHostHeader.substring(0, x);
672,210
public final Condition eq(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> t19, Field<T2...
t17, t18, t19, t20);
524,533
public void handleMessage(Message message, LanguageServer languageServer, URI rootURI) {<NEW_LINE>if (message instanceof ResponseMessage) {<NEW_LINE>ResponseMessage responseMessage = (ResponseMessage) message;<NEW_LINE>if (responseMessage.getResult() instanceof InitializeResult) {<NEW_LINE>this.languageServer = languag...
(timestampWhenInitialized - timestampBeforeStart) + "ms");
1,790,232
public int[] maximumBeauty(int[][] items, int[] queries) {<NEW_LINE>int len = queries.length;<NEW_LINE>Arrays.sort(items, (a, b) -> Integer.compare(a[0], b[0]));<NEW_LINE>int[][] queryPairs = new int[len][2];<NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>queryPairs[i] = new int[] { queries[i], i };<NEW_LINE>}<NEW_L...
], b[0]));
543,112
public AlgorithmProvidedShardingRuleConfiguration swapToObject(final YamlShardingRuleConfiguration yamlConfig) {<NEW_LINE>AlgorithmProvidedShardingRuleConfiguration result = new AlgorithmProvidedShardingRuleConfiguration();<NEW_LINE>for (Entry<String, YamlTableRuleConfiguration> entry : yamlConfig.getTables().entrySet(...
YamlTableRuleConfiguration tableRuleConfig = entry.getValue();
1,346,729
public static INDArray symmetricGeneralizedEigenvalues(INDArray A, INDArray B, boolean calculateVectors) {<NEW_LINE>Preconditions.checkArgument(A.isMatrix() && A.isSquare(), "Argument A must be a square matrix: has shape %s", A.shape());<NEW_LINE>Preconditions.checkArgument(B.isMatrix() && B.isSquare(), "Argument B mus...
), A.rows());
741,505
private void emitFloatCompareWithinRange(CompilationResultBuilder crb, AMD64MacroAssembler masm, Register base1, Register base2, Register index, int offset, Label falseLabel, int range) {<NEW_LINE>assert kind1.isNumericFloat();<NEW_LINE>Label loop = new Label();<NEW_LINE>Register i = asRegister(offset2ValueTemp);<NEW_L...
offset, falseLabel, range == 1);
32,313
private synchronized void makeHierarchyMap() {<NEW_LINE>Map<String, ServerObject> tempRootMap = new TreeMap<String, ServerObject>();<NEW_LINE>Enumeration<Integer> sIds = ServerManager.getInstance().getAllServerList();<NEW_LINE>while (sIds.hasMoreElements()) {<NEW_LINE>int serverId = sIds.nextElement();<NEW_LINE>Server ...
getInstance().getServer(serverId);
1,131,674
public void createValidation(ValidationGroup group) {<NEW_LINE>GraphController graphController = Lookup.getDefault().lookup(GraphController.class);<NEW_LINE>GraphModel graphModel = graphController.getGraphModel();<NEW_LINE>TimeFormat timeFormat = graphModel.getTimeFormat();<NEW_LINE>if (timeFormat == TimeFormat.DOUBLE)...
(timeFormat != TimeFormat.DOUBLE));
1,751,371
public long addLedgerToIndex(long ledgerId, boolean isFenced, byte[] masterKey, LedgerCache.PageEntriesIterable pages) throws Exception {<NEW_LINE>LedgerData ledgerData = LedgerData.newBuilder().setExists(true).setFenced(isFenced).setMasterKey(ByteString.copyFrom(masterKey)).build();<NEW_LINE><MASK><NEW_LINE>MutableLon...
ledgerIndex.set(ledgerId, ledgerData);
836,451
public RecoveryTarget resetRecovery(final long recoveryId, final TimeValue activityTimeout) {<NEW_LINE>RecoveryTarget oldRecoveryTarget = null;<NEW_LINE>final RecoveryTarget newRecoveryTarget;<NEW_LINE>try {<NEW_LINE>synchronized (onGoingRecoveries) {<NEW_LINE>// swap recovery targets in a synchronized block to ensure ...
), oldRecoveryTarget.recoveryId());
1,813,079
/*<NEW_LINE>* Using concat operator to combine Observable : concat maintain<NEW_LINE>* the order of Observable.<NEW_LINE>* It will emit all the 7 values in order<NEW_LINE>* here - first "A1", "A2", "A3", "A4" and then "B1", "B2", "B3"<NEW_LINE>* first all from the first Observable and then<NEW_LINE>* all from the secon...
aObservable = Observable.fromArray(aStrings);
1,386,326
private void configureLogging(Level logLevel, File logFile) throws IOException {<NEW_LINE>configuredLogLevel = logLevel;<NEW_LINE>System.setProperty("java.util.logging.SimpleFormatter.format", "[%1$tF %1$tT] %4$s [%2$s] %5$s%6$s%n");<NEW_LINE>java.util.logging.Logger liquibaseLogger = java.util.logging.Logger.getLogger...
logFile.getAbsolutePath(), true);
1,284,499
public File runFilter(File file, Map<String, String[]> parameters) {<NEW_LINE>File resultFile = getResultsFile(file, parameters);<NEW_LINE>if (!overwrite(resultFile, parameters)) {<NEW_LINE>return resultFile;<NEW_LINE>}<NEW_LINE>int page = parameters.get(getPrefix() + "page") != null ? Integer.parseInt(parameters.get(g...
ImageWriteParam iwp = writer.getDefaultWriteParam();
880,086
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>// Get Session Info<NEW_LINE>WebSessionCtx wsc = WebSessionCtx.get(request);<NEW_LINE>WWindowStatus <MASK><NEW_LINE>if (// ws can be null for Login<NEW_LINE>wsc == null || ws == null)<NEW_LINE>;<...
ws = WWindowStatus.get(request);
624,811
public final <K> boolean recordChange(String field, K orig, K updated, boolean jsonValue, BiPredicate<K, K> typeMatch) throws JsonProcessingException {<NEW_LINE>if (orig == null && updated == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>FieldChange fieldChange = new FieldChange().withName(field).withOldValue(json...
getFieldsDeleted().add(fieldChange);
1,668,989
@UnitOfWork<NEW_LINE>@ApiOperation(value = "Save user settings", notes = "Save user settings")<NEW_LINE>@Timed<NEW_LINE>public Response saveUserSettings(@ApiParam(hidden = true) @SecurityCheck User user, @ApiParam(required = true) Settings settings) {<NEW_LINE>Preconditions.checkNotNull(settings);<NEW_LINE>UserSettings...
setFacebook(settings.isFacebook());
677,546
// analyze the origin stmt and return multi-statements<NEW_LINE>private List<StatementBase> analyze(String originStmt) throws AnalysisException {<NEW_LINE>LOG.debug("the originStmts are: {}", originStmt);<NEW_LINE>// Parse statement with parser generated by CUP&FLEX<NEW_LINE>SqlScanner input = new SqlScanner(new String...
errorMessage = parser.getErrorMsg(originStmt);
1,763,569
public static ListAclEntriesResponse unmarshall(ListAclEntriesResponse listAclEntriesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAclEntriesResponse.setRequestId(_ctx.stringValue("ListAclEntriesResponse.RequestId"));<NEW_LINE>listAclEntriesResponse.setMaxResults(_ctx.integerValue("ListAclEntriesResponse.MaxResult...
("ListAclEntriesResponse.AclEntries[" + i + "].Entry"));
1,666,726
final PutParameterResult executePutParameter(PutParameterRequest putParameterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putParameterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
311,564
public void show(boolean requestFocus) {<NEW_LINE>JComponent toFocus = myRootContent.getTargetComponent() == myActiveContentComponent ? myActiveFocusedContent : myInactiveContentComponent;<NEW_LINE>final ComponentPopupBuilder builder = JBPopupFactory.getInstance().createComponentPopupBuilder(myRootContent, toFocus);<NE...
setCancelButton(new MinimizeButton("Hide"));
1,211,955
public void draw(final BoundingBox boundingBox, final byte zoomLevel, final Canvas canvas, final Point topLeftPoint) {<NEW_LINE>if (coordinates == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// prepare accuracy circle<NEW_LINE>final float accuracy = coordinates.getAccuracy();<NEW_LINE>if (accuracyCircle == null) {<NEW...
this.location.latitude, mapSize);
1,292,294
public static void squashMultilines(Element rootElement) {<NEW_LINE>// Compute groups of consecutive sibling content with only newlines (and whitespace)<NEW_LINE>List<List<Text>> newLineGroups = new ArrayList<>();<NEW_LINE>List<Text> currentGroup = new ArrayList<>();<NEW_LINE>for (Content descendant : rootElement.getDe...
currentGroup = new ArrayList<>();
1,805,005
void persistUserMessage(final String userId, final long messageId, final long messageSeq, int type, String target, int line, boolean directing, final int messageContentType) {<NEW_LINE>mScheduler.execute(() -> {<NEW_LINE>Connection connection = null;<NEW_LINE>PreparedStatement statement = null;<NEW_LINE>try {<NEW_LINE>...
LOG.info("Update rows {}", count);
622,072
@SuppressFBWarnings("SERVLET_QUERY_STRING")<NEW_LINE>public void include(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {<NEW_LINE>if (lambdaContainerHandler == null) {<NEW_LINE>throw new IllegalStateException("Null container handler in dispatcher");<NEW_LINE>}<NEW_...
) servletRequest).getContextPath());
253,570
private void updateProgressBar(boolean resetHighlight) {<NEW_LINE>ColorUtil.RGBColor barColor = ColorUtil.RGBColor.fromCss("rgba(24, 163, 82, 1.0)");<NEW_LINE>ColorUtil.RGBColor highColor = <MASK><NEW_LINE>ColorUtil.RGBColor emptyColor = ColorUtil.RGBColor.fromCss("rgba(24, 163, 82, 0.3)");<NEW_LINE>int end = Math.roun...
ColorUtil.RGBColor.fromCss("rgba(208, 233, 201, 1.0)");
204,975
final PutScheduledActionResult executePutScheduledAction(PutScheduledActionRequest putScheduledActionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putScheduledActionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
endClientExecution(awsRequestMetrics, request, response);
496,042
private static GoType findTypeInVarSpec(@NotNull GoVarDefinition o, @Nullable ResolveState context) {<NEW_LINE>GoVarSpec parent = (GoVarSpec) PsiTreeUtil.getStubOrPsiParent(o);<NEW_LINE>if (parent == null)<NEW_LINE>return null;<NEW_LINE>GoType commonType = parent.getType();<NEW_LINE>if (commonType != null)<NEW_LINE>ret...
call = exprs.get(0);
51,208
private OutputStream findEJBByBeanName(org.omg.CORBA_2_3.portable.InputStream in, ResponseHandler reply) throws Throwable {<NEW_LINE>String arg0 = (String) in.read_value(String.class);<NEW_LINE>String arg1 = (String) <MASK><NEW_LINE>String arg2 = (String) in.read_value(String.class);<NEW_LINE>RemoteObjectInstance resul...
in.read_value(String.class);
1,068,827
public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>// test no where clause with unique on multiple props, exact specification of where-clause<NEW_LINE>IndexAssertionEventSend assertSendEvents = new IndexAssertionEventSend() {<NEW_LINE><NEW_LINE>public void run(...
[] { "EX", "E3" });
1,116,275
public boolean action(Request request, Response response) {<NEW_LINE>if (request.getNettyRequest() instanceof FullHttpRequest) {<NEW_LINE>JSONObject jsonObject = new JSONObject();<NEW_LINE>jsonObject.put("node", "1");<NEW_LINE>JSONObject cpuObject = new JSONObject();<NEW_LINE>jsonObject.put("cpu", cpuObject);<NEW_LINE>...
"usable", root.getUsableSpace());
1,208,505
private static TTFFile loadTTF(TTFReader app, String fileName, TrueTypeFontUnicode ttu) throws IOException {<NEW_LINE>try {<NEW_LINE>return app.loadTTF(<MASK><NEW_LINE>} catch (IOException e) {<NEW_LINE>TTFFile ttfFile = new TTFFile(true, true);<NEW_LINE>InputStream stream = BaseFont.getResourceStream(fileName, null);<...
fileName, null, true, true);
998,326
public String processchangePassword(HttpServletRequest request, HttpServletResponse response, Model model, @ModelAttribute("resetPasswordForm") ResetPasswordForm resetPasswordForm) {<NEW_LINE>SecurityContext c = SecurityContextHolder.getContext();<NEW_LINE>String username = ((AdminUserDetails) c.getAuthentication().get...
("PasswordChange_success")).done();
25,710
private Repository parseCollectionsRepositoryData(Element element) throws Exception {<NEW_LINE>String fullName = element.select("div > h1 > a").attr("href");<NEW_LINE>fullName = fullName.substring(1);<NEW_LINE>String owner = fullName.substring(0, fullName.lastIndexOf("/"));<NEW_LINE>String repoName = fullName.substring...
.lastIndexOf("/") + 1);
1,395,306
public static Stream<Edge> sessionInstrumentation(BDDPacket bddPacket, Map<String, Configuration> configs, Map<String, BDDSourceManager> srcMgrs, LastHopOutgoingInterfaceManager lastHopMgr, Map<String, BDDOutgoingOriginalFlowFilterManager> outgoingOriginalFlowFilterMgrs, Map<String, Map<String, Supplier<BDD>>> filterBd...
concat(newEdges, instrumentedEdges, sessionFibLookupEdges);
260,648
public static UserTrades adaptTradeHistory(CoingiOrdersList ordersList) {<NEW_LINE>List<UserTrade> trades = new ArrayList<>();<NEW_LINE>for (CoingiOrder o : ordersList.getList()) {<NEW_LINE>final OrderType orderType = o.getType() == 0 ? OrderType.BID : OrderType.ASK;<NEW_LINE>final CurrencyPair pair = new CurrencyPair(...
BigDecimal.ZERO).build();
550,835
public void storeAll(Map<Long, Data> map) {<NEW_LINE>if (!enabled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<Long, Object> objectMap = createHashMap(map.size());<NEW_LINE>if (binary) {<NEW_LINE>// WARNING: we can't pass original Data to the user<NEW_LINE>// TODO: @mm - is there really an advantage of using binary stor...
(entry.getValue()));
329,639
public ActionRequestValidationException validate() {<NEW_LINE>ActionRequestValidationException validationException = super.validate();<NEW_LINE>if (type == null) {<NEW_LINE>validationException = addValidationError("type is missing", validationException);<NEW_LINE>}<NEW_LINE>if (source == null) {<NEW_LINE>validationExce...
opType() + " operation", validationException);
1,318,355
public void migrateProcessMessageSubscriptionSentTime(final MutableProcessMessageSubscriptionState persistentState, final MutablePendingProcessMessageSubscriptionState transientState) {<NEW_LINE>processSubscriptionSentTimeColumnFamily.forEach((key, value) -> {<NEW_LINE>final var sentTime = key.first().getValue();<NEW_L...
.first().getValue();
970,937
private LookupTable combineModalityVOILUT(int outBits) {<NEW_LINE>float m = rescaleSlope;<NEW_LINE>float b = rescaleIntercept;<NEW_LINE>LookupTable modalityLUT = this.modalityLUT;<NEW_LINE>LookupTable lut = this.voiLUT;<NEW_LINE>if (lut == null) {<NEW_LINE>float c = windowCenter;<NEW_LINE>float w = windowWidth;<NEW_LIN...
round(w / m)));
457,328
private static List<String> browseAlertTable() {<NEW_LINE>List<String> alerts = new ArrayList();<NEW_LINE>try {<NEW_LINE>// Initialize client that will be used to send requests<NEW_LINE>BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();<NEW_LINE>QueryJobConfiguration queryConfig = QueryJobConfigurat...
setUseLegacySql(false).build();
782,516
private List<String> topologicalOrdering() {<NEW_LINE>// First step: build network in reverse order (i.e., define map of a -> list(b) instead of list(a) -> b)<NEW_LINE>Map<String, List<String>> verticesOutputTo = verticesOutputTo();<NEW_LINE>// Set of all nodes with no incoming edges<NEW_LINE>LinkedList<String> noIncom...
> set = entry.getValue();
1,628,286
public static double computeArea(Point a, Point b) {<NEW_LINE>if (a.getTimestamp() == b.getTimestamp()) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>if (a.getTimestamp() > b.getTimestamp()) {<NEW_LINE>return computeArea(b, a);<NEW_LINE>}<NEW_LINE>final double x1 = a.getTimestamp();<NEW_LINE>final double x2 = b.getTimestamp...
x1, x2, y1, y2);
1,570,567
public Response load(final Request request, final CacheStrategy cacheStrategy, final int maxFileSize, final BlacklistType blacklistType, ClientIdentification.Agent agent) throws IOException {<NEW_LINE>Semaphore check = this.loaderSteering.get(request.url());<NEW_LINE>if (check != null && cacheStrategy != CacheStrategy....
long t = System.currentTimeMillis();
1,839,341
protected Transaction createPrivateMarkerTransaction(final Address sender, final PrivateTransaction privateTransaction, final Optional<User> user) {<NEW_LINE>final Optional<Bytes> maybePrivacyGroupId = privateTransaction.getPrivacyGroupId();<NEW_LINE>if (maybePrivacyGroupId.isEmpty()) {<NEW_LINE>throw new JsonRpcErrorR...
, null, null, participantsFromParameter));
117,972
private ParseTree parseAsyncMethod(PartialClassElement partial) {<NEW_LINE>eatPredefinedString(ASYNC);<NEW_LINE>boolean generator = peek(TokenType.STAR);<NEW_LINE>if (generator) {<NEW_LINE>eat(TokenType.STAR);<NEW_LINE>}<NEW_LINE>if (peekPropertyName(0)) {<NEW_LINE>if (peekIdOrKeyword()) {<NEW_LINE>IdentifierToken name...
FunctionFlavor.ASYNCHRONOUS_GENERATOR : FunctionFlavor.ASYNCHRONOUS);
278,221
private void addExternalJson(List<File> files, Manager<S> manager, Map<String, S> externalResources) {<NEW_LINE>String plural = files.size() > 1 ? "s" : "";<NEW_LINE>Set<String> currentNames = new HashSet<>();<NEW_LINE>boolean addToManager = false;<NEW_LINE>if (manager != null) {<NEW_LINE>try {<NEW_LINE>currentNames.ad...
fails = new ArrayList<>();
1,554,958
final DeleteResourcePolicyResult executeDeleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteResourcePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,544,971
protected final <T> Future<T> withLock(Reconciliation reconciliation, long lockTimeoutMs, Callable<Future<T>> callable) {<NEW_LINE>Promise<T> handler = Promise.promise();<NEW_LINE>String namespace = reconciliation.namespace();<NEW_LINE>String name = reconciliation.name();<NEW_LINE>final String lockName = getLockName(na...
LOGGER.infoCr(reconciliation, "Reconciliation is in progress");
1,115,888
protected void handleSuccessfulPinEntry(@NonNull String pin) {<NEW_LINE>SignalStore.pinValues().setKeyboardType(getPinEntryKeyboardType());<NEW_LINE>SimpleTask.run(() -> {<NEW_LINE>SignalStore.onboarding().clearAll();<NEW_LINE>Stopwatch stopwatch = new Stopwatch("RegistrationLockRestore");<NEW_LINE>ApplicationDependenc...
), RegistrationLockFragmentDirections.actionSuccessfulRegistration());
1,231,371
public void marshall(CreateApplicationRequest createApplicationRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createApplicationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createApplic...
createApplicationRequest.getOpsItemSNSTopicArn(), OPSITEMSNSTOPICARN_BINDING);
426,383
public static CandidatesQuery fromCandidate(@NonNull final Candidate candidate, final boolean includeParentId) {<NEW_LINE>if (!candidate.getId().isNull()) {<NEW_LINE>return CandidatesQuery.fromId(candidate.getId());<NEW_LINE>}<NEW_LINE>final ProductionDetailsQuery productionDetailsQuery = ProductionDetailsQuery.ofProdu...
parentId(candidate.getParentId());
196,676
private static // can't find a good import tool framework, may ref mysqlimport<NEW_LINE>void insertImportByRange(int X, List<CSVRecord> rows, SqlExecutor router, String dbName, String tableName) {<NEW_LINE>int quotient = rows.size() / X;<NEW_LINE>int remainder = rows.size() % X;<NEW_LINE>// range is [left, right)<NEW_L...
.of(start, rangeEnd));
1,586,754
private void checkFileName() {<NEW_LINE>if (selectedFolder == null)<NEW_LINE>return;<NEW_LINE>selectedDataObject = null;<NEW_LINE>String fileName = fileNameTextField.getText();<NEW_LINE>if ("".equals(fileName)) {<NEW_LINE>// NOI18N<NEW_LINE>okButton.setEnabled(false);<NEW_LINE>if (newButton != null)<NEW_LINE>newButton<...
.setEnabled(!checkForDefaultBundle());
1,571,058
// ~ Methods ----------------------------------------------------------------<NEW_LINE>public RexNode visitOver(RexOver over) {<NEW_LINE><MASK><NEW_LINE>List<RexNode> clonedOperands = visitList(over.operands, update);<NEW_LINE>RexWindow window = visitWindow(over.getWindow());<NEW_LINE>if (update[0] || (window != over.g...
boolean[] update = { false };
1,837,826
private static <T extends Object & Comparable> ComparableList<T> flatList_(T[] t, boolean copy) {<NEW_LINE>switch(t.length) {<NEW_LINE>case 0:<NEW_LINE>// noinspection unchecked<NEW_LINE>return COMPARABLE_EMPTY_LIST;<NEW_LINE>case 1:<NEW_LINE>return new Flat1List<>(t[0]);<NEW_LINE>case 2:<NEW_LINE>return new Flat2List<...
(t.clone()));
1,369,575
public Flowable<Realm> from(Realm realm) {<NEW_LINE>if (realm.isFrozen()) {<NEW_LINE>return Flowable.just(realm);<NEW_LINE>}<NEW_LINE>final RealmConfiguration realmConfig = realm.getConfiguration();<NEW_LINE>Scheduler scheduler = getScheduler();<NEW_LINE>return Flowable.create(new FlowableOnSubscribe<Realm>() {<NEW_LIN...
observableRealm.freeze() : observableRealm);
201,491
protected void buildConfigurationDialog() {<NEW_LINE>configurationDialog = new JDialog(UISupport.getMainFrame());<NEW_LINE>configurationDialog.setTitle(assertion.getConfigurationDialogTitle());<NEW_LINE>configurationDialog.addWindowListener(new WindowAdapter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void windowO...
, assertion.getPathAreaBorderTitle()));
886,806
private static void generateMultiTreeImpl() {<NEW_LINE>OutputFile outputFile = null;<NEW_LINE>try {<NEW_LINE>for (Iterator<String> i = nodesToGenerate.iterator(); i.hasNext(); ) {<NEW_LINE>String node = (String) i.next();<NEW_LINE>File file = <MASK><NEW_LINE>String[] options = new String[] { "MULTI", "NODE_USES_PARSER"...
new File(jjtreeImplFile(node));
442,268
private boolean saveOrder() {<NEW_LINE>log.config("C_Order_ID=" + po.get_ID());<NEW_LINE>MOrder order = (MOrder) po;<NEW_LINE>int lineCount = 0;<NEW_LINE>// for all bom lines<NEW_LINE>for (int i = 0; i < selectionList.size(); i++) {<NEW_LINE>if (selectionList.get(i).isSelected) {<NEW_LINE>BigDecimal qty = selectionList...
ctx, M_Product_ID, C_UOM_ID, qty);
494,839
private List<CssSelector> handleSelectors(CssToken start, CssTokenIterator iter, CssErrorHandler err) throws CssException {<NEW_LINE>List<CssSelector> selectors = Lists.newArrayList();<NEW_LINE>boolean end = false;<NEW_LINE>while (true) {<NEW_LINE>// comma loop<NEW_LINE>CssSelector selector = new CssSelector(start.loca...
int idx = iter.index();
758,062
private DocumentFieldDescriptor.Builder createProcessParaDescriptor(final WebuiProcessClassInfo webuiProcesClassInfo, @NonNull final I_AD_Process_Para adProcessParam) {<NEW_LINE>final String parameterName = adProcessParam.getColumnName();<NEW_LINE>//<NEW_LINE>// Ask the provider if it has some custom lookup descriptor<...
(webuiProcesClassInfo.getDeviceDescriptorsProvider(parameterName));
1,420,725
//<NEW_LINE>Reference(//<NEW_LINE>authors = "D. W. Scott", //<NEW_LINE>title = "Multivariate density estimation: Theory, Practice, and Visualization", //<NEW_LINE>booktitle = "Multivariate Density Estimation: Theory, Practice, and Visualization", url = "https://doi.org/10.1002/9780470316849", bibkey = "doi:10.1002/9780...
(), -1 / 6.);
1,128,864
private void work(LinkedList<Edge> partialPath) {<NEW_LINE>if (pathList.size() == maxPaths) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>// Is this a complete path?<NEW_LINE>if (last.getTarget() == cfg.getExit()) {<NEW_LINE>pathList.add(new LinkedList<>(partialPath));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// L...
Edge last = partialPath.getLast();
234,378
public void mouseDragged(MouseEvent me) {<NEW_LINE>// Get new mouse coordinates<NEW_LINE>if (selector.isSelectorFrameActive()) {<NEW_LINE>selector.getSelectorFrame().resizeTo(getOffset(me).getX(), getOffset(me).getY());<NEW_LINE>disableElementMovement = true;<NEW_LINE>return;<NEW_LINE>} else if (disableElementMovement(...
- gridSize / 2) / gridSize);
965,172
public void handleMessage(String message, KaleidescapeHandler handler) {<NEW_LINE>Matcher matcher = p.matcher(message);<NEW_LINE>if (matcher.find()) {<NEW_LINE>handler.updateChannel(PLAY_MODE, new StringType(KaleidescapeStatusCodes.PLAY_MODE.get(matcher<MASK><NEW_LINE>handler.updateChannel(PLAY_SPEED, new StringType(ma...
.group(1))));
104,152
protected ScoreFunction doToFunction(SearchExecutionContext context) {<NEW_LINE>final int salt = (context.index().getName().hashCode() << 10) | context.getShardId();<NEW_LINE>if (seed == null) {<NEW_LINE>// DocID-based random score generation<NEW_LINE>return new RandomScoreFunction(hash(context.nowInMillis<MASK><NEW_LI...
()), salt, null);
373,214
private void writeUTF8(final OutputStream s, final int length) throws IOException {<NEW_LINE>final char[] a = array;<NEW_LINE>char c;<NEW_LINE>for (int i = 0; i < length; i++) {<NEW_LINE>c = a[i];<NEW_LINE>if (// ASCII<NEW_LINE>c <= 127)<NEW_LINE>// ASCII<NEW_LINE>s.write(c);<NEW_LINE>else if (c >= 0x800) {<NEW_LINE>s....
> 0) & 0x3F)));