idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,506,264
private State checkh(State state) throws DatatypeException, IOException {<NEW_LINE>if (state.context.length() == 0) {<NEW_LINE>state = appendToContext(state);<NEW_LINE>}<NEW_LINE>state.current = state.reader.read();<NEW_LINE>state = appendToContext(state);<NEW_LINE>state = skipSpaces(state);<NEW_LINE>boolean expectNumb...
state.current, state.context);
413,136
public int doMain(String[] args) throws InvocationTargetException, InterruptedException {<NEW_LINE>GCViewerArgsParser argsParser = gcViewerArgsParser;<NEW_LINE>try {<NEW_LINE>argsParser.parseArguments(args);<NEW_LINE>} catch (GCViewerArgsParserException e) {<NEW_LINE>usage();<NEW_LINE>LOGGER.log(Level.SEVERE, e.getMess...
gcResource, summaryFilePath, chartFilePath, type);
1,080,038
public IStatus run(IProgressMonitor monitor) {<NEW_LINE>SubMonitor sub = SubMonitor.convert(monitor, files.size());<NEW_LINE>if (sub.isCanceled()) {<NEW_LINE>return Status.CANCEL_STATUS;<NEW_LINE>}<NEW_LINE>if (!project.isAccessible() || getContainerURI() == null) {<NEW_LINE>return Status.CANCEL_STATUS;<NEW_LINE>}<NEW_...
("Index is null for container: {0}", getContainerURI()));
669,714
public boolean onInterceptTouchEvent(MotionEvent ev) {<NEW_LINE>if (!mEnabled)<NEW_LINE>return false;<NEW_LINE>final int action = ev.getAction() & MotionEventCompat.ACTION_MASK;<NEW_LINE>if (action == MotionEvent.ACTION_DOWN && DEBUG)<NEW_LINE>Log.v(TAG, "Received ACTION_DOWN");<NEW_LINE>if (action == MotionEvent.ACTIO...
xDiff = Math.abs(dx);
805,713
public void updateCachingAndArtifacts(ParsedDeployment parsedDeployment) {<NEW_LINE>EventRegistryEngineConfiguration eventRegistryEngineConfiguration = CommandContextUtil.getEventRegistryConfiguration();<NEW_LINE>DeploymentCache<EventDefinitionCacheEntry> eventDefinitionCache = eventRegistryEngineConfiguration.getDeplo...
channelDefinition.getId(), cacheEntry);
1,574,338
public void operationComplete(Future<Channel> future) throws Exception {<NEW_LINE>Throwable cause = null;<NEW_LINE>if (future.isSuccess()) {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>send(channel, endpointMatcher, msg);<NEW_LINE>} catch (Throwable t) {<NEW_LINE>cause = t;<NEW_LINE>} finally {<NEW_LINE>try {<NEW_LINE>chan...
Channel channel = future.getNow();
255,262
public ErrorDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ErrorDetails errorDetails = new ErrorDetails();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
class).unmarshall(context));
920,610
private static <T> OptionType<T> defaultEnumType(Class<T> clazz) {<NEW_LINE>return new OptionType<>(clazz.getSimpleName(), new Function<String, T>() {<NEW_LINE><NEW_LINE>final Map<String, Enum<?>> validValues = new HashMap<>();<NEW_LINE><NEW_LINE>{<NEW_LINE>Class<? extends Enum<?>> enumType = (Class<? extends Enum<?>>)...
value = validValues.get(t);
1,851,704
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>@SuppressLint("InflateParams")<NEW_LINE>View view = LayoutInflater.from(getContext()).inflate(R.layout.preference_dialog_now_playing_screen, null);<NEW_LINE>ViewPager viewPager = view.findViewById(R.id.now_playing_screen_view_pager);<NEW_LINE>viewPager....
(32, getResources()));
701,341
public MessageCommentReactionEntity postMessageCommentReactions(MessageCommentReactionsBody body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body...
String[] localVarContentTypes = { "application/json" };
255,204
public List<SyntheticResultRollup0> readLastFromRollup0(String agentRollupId, String syntheticMonitorId, int x) throws Exception {<NEW_LINE>BoundStatement boundStatement = readLastFromRollup0.bind();<NEW_LINE>int i = 0;<NEW_LINE>boundStatement.setString(i++, agentRollupId);<NEW_LINE>boundStatement.setString(i++, synthe...
results = session.read(boundStatement);
100,085
public static BufferedImage extractBuffered(InterleavedU8 img) {<NEW_LINE>if (img.isSubimage())<NEW_LINE>throw new IllegalArgumentException("Sub-images are not supported for this operation");<NEW_LINE>final int width = img.width;<NEW_LINE>final int height = img.height;<NEW_LINE>final int numBands = img.numBands;<NEW_LI...
int[] nBits = { 8 };
192,563
public void update(AnActionEvent e) {<NEW_LINE>e.getPresentation().setText(CommonActionsPanel.Buttons.EDIT.getText());<NEW_LINE>e.getPresentation().setIcon(CommonActionsPanel.<MASK><NEW_LINE>e.getPresentation().setEnabled(true);<NEW_LINE>Project project = e.getProject();<NEW_LINE>FavoritesViewTreeBuilder treeBuilder = ...
Buttons.EDIT.getIcon());
517,165
public ContainerGroupImpl withNewAzureFileShareVolume(String volumeName, String shareName) {<NEW_LINE>if (this.newFileShares == null || this.creatableStorageAccountKey == null) {<NEW_LINE>StorageAccount.DefinitionStages.WithGroup definitionWithGroup = manager().storageManager().storageAccounts().define(manager().resour...
definitionWithGroup.withNewResourceGroup(this.creatableGroup);
1,519,962
public ResultQuery<Record12<String, String, String, String, Integer, Integer, Long, Long, BigDecimal, BigDecimal, Boolean, Long>> sequences(List<String> schemas) {<NEW_LINE>Field<Long> minValue = is2_0_202() ? field(SEQUENCES.getQualifiedName().append("MINIMUM_VALUE"), SEQUENCES.MIN_VALUE.getDataType()) : SEQUENCES.MIN...
"YES"))) : SEQUENCES.IS_CYCLE;
75,131
private void unRegisterDataSourceDefinitions(String appName, Descriptor descriptor) {<NEW_LINE>if (descriptor instanceof JndiNameEnvironment) {<NEW_LINE>JndiNameEnvironment env = (JndiNameEnvironment) descriptor;<NEW_LINE>for (Descriptor dsd : env.getResourceDescriptors(DSD)) {<NEW_LINE>unregisterDSDReferredByApplicati...
(appName, (DataSourceDefinitionDescriptor) dsd);
1,291,926
protected String doIt() throws Exception {<NEW_LINE>// Instance current Payment Selection<NEW_LINE>MPaySelection paySelection = new MPaySelection(getCtx(), getRecord_ID(), get_TrxName());<NEW_LINE>sequence.set(paySelection.getLastLineNo());<NEW_LINE>// Loop for keys<NEW_LINE>getSelectionKeys().forEach(key -> {<NEW_LINE...
getC_ConversionType_ID(), sourceAmount, convertedAmount);
601,328
protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>JsonObject input = InputParser.parseJsonObjectOrThrowError(req);<NEW_LINE>String sessionHandle = InputParser.parseStringOrThrowError(input, "sessionHandle", false);<NEW_LINE>assert sessionHandle != nul...
sendJsonResponse(200, result, resp);
1,315,702
public DescribeGlobalTableSettingsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeGlobalTableSettingsResult describeGlobalTableSettingsResult = new DescribeGlobalTableSettingsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = c...
)).unmarshall(context));
1,667,811
final UpdatePricingRuleResult executeUpdatePricingRule(UpdatePricingRuleRequest updatePricingRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updatePricingRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.SERVICE_ID, "billingconductor");
1,050,328
public void loadIcons(IconPack pack) {<NEW_LINE>_pack = pack;<NEW_LINE>_query = null;<NEW_LINE>_icons = new ArrayList<>(_pack.getIcons());<NEW_LINE>_categories.clear();<NEW_LINE>Comparator<IconPack.Icon> iconCategoryComparator = (i1, i2) -> {<NEW_LINE>String c1 = getCategoryString(i1.getCategory());<NEW_LINE>String c2 ...
getCategoryString(icon.getCategory());
1,174,959
private boolean validateSend() {<NEW_LINE>String recipientAddress = Helper.getValue(inputSendAddress.getText());<NEW_LINE>String amountString = Helper.getValue(inputSendAmount.getText());<NEW_LINE>if (!recipientAddress.matches(LbryUri.REGEX_ADDRESS)) {<NEW_LINE>Snackbar.make(getView(), R.string.invalid_recipient_addres...
Color.WHITE).show();
450,418
public void validatePeriods(final I_C_Flatrate_Term term) {<NEW_LINE>if (term.getStartDate() != null && !term.isProcessed()) {<NEW_LINE>Services.get(IFlatrateBL.class).updateNoticeDateAndEndDate(term);<NEW_LINE>setMasterEndDate(term);<NEW_LINE>}<NEW_LINE>final Properties <MASK><NEW_LINE>final String trxName = Interface...
ctx = InterfaceWrapperHelper.getCtx(term);
533,460
public static ReaderGroupConfigRecord update(ReaderGroupConfig rgConfig, long generation, boolean isUpdating) {<NEW_LINE>Map<String, RGStreamCutRecord> startStreamCuts = rgConfig.getStartingStreamCuts().entrySet().stream().collect(Collectors.toMap(e -> e.getKey().getScopedName(), e -> new RGStreamCutRecord(ModelHelper....
.getValue()))));
714,158
private boolean transitionPowerState(OutOfBandManagement.PowerState.Event event, OutOfBandManagement outOfBandManagementHost) {<NEW_LINE>if (outOfBandManagementHost == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>OutOfBandManagement.PowerState currentPowerState = outOfBandManagementHost.getPowerState();<NEW_LINE>...
).getNextState(currentPowerState, event);
1,823,168
public void transfer(final Session<?> source, final Session<?> destination, final Path file, final Local local, final TransferOptions options, final TransferStatus overall, final TransferStatus segment, final ConnectionCallback connectionCallback, final ProgressListener listener, final StreamListener streamListener) th...
Local folder = local.getParent();
336,868
private String dumpZoneNAryDetails(StoreRoutingPlan storeRoutingPlan) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("\tDetailed Dump (Zone N-Aries):").append(Utils.NEWLINE);<NEW_LINE>for (Node node : storeRoutingPlan.getCluster().getNodes()) {<NEW_LINE>int zoneId = node.getZoneId();<NEW_LINE>int...
, List<Integer>>();
1,204,860
private void fillSpecific(int position, Recycler recycler, State state) {<NEW_LINE>if (state.getItemCount() <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>makeAndAddView(position, Direction.END, recycler);<NEW_LINE>final int extraSpaceBefore;<NEW_LINE>final int extraSpaceAfter;<NEW_LINE>final int extraSpace = getExtraLay...
getChildCount(), recycler, state);
1,620,811
public void write(byte[] b, int off, int len) throws IOException {<NEW_LINE>int remaining = len;<NEW_LINE>int relativeOffset = off;<NEW_LINE>// Write the remainder of the part size to the staging file<NEW_LINE>// and continue to write new staging files if the write is<NEW_LINE>// larger than the part size.<NEW_LINE>whi...
write(b, relativeOffset, remaining);
699,218
public Request<DescribePrincipalIdFormatRequest> marshall(DescribePrincipalIdFormatRequest describePrincipalIdFormatRequest) {<NEW_LINE>if (describePrincipalIdFormatRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribePrincipalIdFormat...
request.setHttpMethod(HttpMethodName.POST);
521,847
void update() {<NEW_LINE>SwingUtilities.invokeLater(() -> {<NEW_LINE>Book customerBook = library.getCustomerBook();<NEW_LINE>for (Map.Entry<Book, BookPanel> b : bookPanels.entrySet()) {<NEW_LINE>final Book book = b.getKey();<NEW_LINE>final BookPanel panel = b.getValue();<NEW_LINE>panel.setIsTarget(customerBook == book)...
(plugin.doesPlayerContainBook(book));
375,534
public List<FeedEntryStatus> findBySubscriptions(User user, List<FeedSubscription> subs, boolean unreadOnly, List<FeedEntryKeyword> keywords, Date newerThan, int offset, int limit, ReadingOrder order, boolean includeContent, boolean onlyIds, String tag) {<NEW_LINE>int capacity = offset + limit;<NEW_LINE>Comparator<Feed...
statuses = new ArrayList<>();
1,106,927
public void writeCandlestickChart(JRChart chart) throws IOException {<NEW_LINE>writer.startElement(<MASK><NEW_LINE>writeChart(chart);<NEW_LINE>writeHighLowDataset((JRHighLowDataset) chart.getDataset());<NEW_LINE>JRCandlestickPlot plot = (JRCandlestickPlot) chart.getPlot();<NEW_LINE>writer.startElement(JRXmlConstants.EL...
JRXmlConstants.ELEMENT_candlestickChart, getNamespace());
168,239
private void init(String query) throws ParseCancellationException {<NEW_LINE>if (Objects.equals(this.query, query)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SearchLexer lexer = new SearchLexer(new ANTLRInputStream(query));<NEW_LINE>// no infos on file system<NEW_LINE>lexer.removeErrorListeners();<NEW_LINE>lexer.addErrorL...
parser.addErrorListener(ThrowingErrorListener.INSTANCE);
380,823
public void writeToParcel(Parcel dest, int flags) {<NEW_LINE>dest.writeLong(this.id);<NEW_LINE>dest.writeString(this.url);<NEW_LINE>dest.writeString(this.body);<NEW_LINE>dest.writeString(this.title);<NEW_LINE>dest.writeInt(this.comments);<NEW_LINE>dest.writeInt(this.number);<NEW_LINE>dest.writeByte(this.locked ? (byte)...
dest.writeInt(this.commits);
233,484
@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@Operation(externalDocs = @ExternalDocumentation(description = "Apache Drill REST API documentation:", url = "https://drill.apache.org/docs/rest-api-introduction/"))<NEW_LINE>public Response enablePlugin(@PathParam("name") Str...
storage.setEnabled(name, enable);
1,355,651
private Optional<DocumentOperationMessageV3> pullMessageFromRequest(FeederSettings settings, InputStream requestInputStream, BlockingQueue<OperationStatus> repliesFromOldMessages) {<NEW_LINE>while (true) {<NEW_LINE>Optional<String> operationId;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>if (operationId.isEmpty())<NEW_LINE...
operationId = streamReaderV3.getNextOperationId(requestInputStream);
1,346,464
public Store.ValueHolder<V> putIfAbsent(final K key, final V value, Consumer<Boolean> put) throws NullPointerException, StoreAccessException {<NEW_LINE>checkKey(key);<NEW_LINE>checkValue(value);<NEW_LINE>putIfAbsentObserver.begin();<NEW_LINE>final AtomicReference<Store.ValueHolder<V>> returnValue = new AtomicReference<...
> eventSink = eventDispatcher.eventSink();
1,739,184
private FindResult doFindString(@Nonnull CharSequence text, @Nullable char[] textArray, int offset, @Nonnull FindModel findmodel, @Nullable VirtualFile file) {<NEW_LINE>FindModel model = normalizeIfMultilined(findmodel);<NEW_LINE><MASK><NEW_LINE>if (toFind.isEmpty()) {<NEW_LINE>return NOT_FOUND_RESULT;<NEW_LINE>}<NEW_L...
String toFind = model.getStringToFind();
1,541,141
public void drawShadow(final Graphics2D g2d, final Point from, final Point to) {<NEW_LINE>final int w = (int) to.getX();<NEW_LINE>final int h = (int) to.getY();<NEW_LINE>if (h == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Color bg = getShadowColor();<NEW_LINE>g2d.setColor(ColorUtil.toAlpha(bg, 50));<NEW_LINE>g2d.d...
3, w, h - 3);
1,093,102
public static Table downLoadFromHttp(String urlStr, String charset, String method, String content, ArrayList<String> headers) throws IOException {<NEW_LINE>URL url = new URL(urlStr);<NEW_LINE>HttpURLConnection conn = (HttpURLConnection) url.openConnection();<NEW_LINE>conn.setConnectTimeout(3 * 1000);<NEW_LINE>conn.setR...
(i).split(":");
518,483
public static Collection<ErrorDescription> run(HintContext hintContext) {<NEW_LINE>List<ErrorDescription> problems = new ArrayList<>();<NEW_LINE>final JsfHintsContext ctx = JsfHintsUtils.getOrCacheContext(hintContext);<NEW_LINE>if (ctx.getJsfVersion() == null || !ctx.getJsfVersion().isAtLeast(JSFVersion.JSF_2_2)) {<NEW...
getFixesForType(info, typeElement, annotationMirror);
891,610
public int compareTo(startGetSummaries_result other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());<N...
this.tope, other.tope);
635,542
public void waitUntilAvailable(long timeout, TimeUnit unit, final URL... urls) throws TimeoutException {<NEW_LINE>long start = System.nanoTime();<NEW_LINE>log.fine("Waiting for " + Arrays.toString(urls));<NEW_LINE>try {<NEW_LINE>Future<Void> callback = EXECUTOR.submit(() -> {<NEW_LINE>HttpURLConnection connection = nul...
log.fine("Polling " + url);
323,213
public Optional<Response> handle(HandlerInput input) {<NEW_LINE>Permissions permission = input.getRequestEnvelope().getContext().getSystem()<MASK><NEW_LINE>if (permission != null) {<NEW_LINE>String deviceId = input.getRequestEnvelope().getContext().getSystem().getDevice().getDeviceId();<NEW_LINE>DeviceAddressServiceCli...
.getUser().getPermissions();
1,741,391
public Outcome<VirtualMachine> migrateVmThroughJobQueue(final String vmUuid, final long srcHostId, final DeployDestination dest) {<NEW_LINE>Map<Volume, StoragePool> volumeStorageMap = dest.getStorageForDisks();<NEW_LINE>if (volumeStorageMap != null) {<NEW_LINE>for (Volume vol : volumeStorageMap.keySet()) {<NEW_LINE>che...
VirtualMachine.Type.Instance, commandName);
950,487
public void actionPerformed(ActionEvent ae) {<NEW_LINE>if ("pressed".equals(ae.getActionCommand())) {<NEW_LINE>// NOI18N<NEW_LINE>JComponent jc = (JComponent) ae.getSource();<NEW_LINE>Point p = new Point(jc.getWidth(), jc.getHeight());<NEW_LINE>SwingUtilities.convertPointToScreen(p, jc);<NEW_LINE>if (!ButtonPopupSwitch...
getModel().setArmed(false);
436,857
// -------------------------------------------------------------------------<NEW_LINE>private Function<ResolvedCdsTrade, CdsQuote> createQuoteValueFunction(CreditRatesProvider ratesProviderNew, CdsQuoteConvention targetConvention, ReferenceData refData) {<NEW_LINE>Function<ResolvedCdsTrade, CdsQuote> quoteValueFunction...
pointsUpfront(x, ratesProviderNew, refData);
1,339,407
protected void estimateCase2(double[] betas) {<NEW_LINE>x.reshape(3, 1, false);<NEW_LINE>if (numControl == 4) {<NEW_LINE>L.reshape(6, 3, false);<NEW_LINE>UtilLepetitEPnP.constraintMatrix6x3(L_full, L);<NEW_LINE>} else {<NEW_LINE>L.reshape(3, 3, false);<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (!solver.setA(L))<NEW_LINE>t...
UtilLepetitEPnP.constraintMatrix3x3(L_full, L);
794,971
private void runAssertion(RegressionEnvironment env, AtomicInteger milestone, boolean advanced, String filter) {<NEW_LINE>String epl = "create context MyContext start SupportBean_S0 as s0 end SupportBean_S2;\n" + HOOK + "@name('s0') context MyContext select * from SupportBean_S1(" + filter + ");\n";<NEW_LINE>SupportFil...
new SupportBean_S0(1, "-"));
1,382,937
private Predicate workCompletedPredicate_creator(CriteriaBuilder cb, Root<WorkCompleted> root) throws Exception {<NEW_LINE>List<String> _creatorUnits = ListTools.extractField(this.creatorUnitList, "name", String.class, true, true);<NEW_LINE>List<String> _creatorPersons = ListTools.extractField(this.creatorPersonList, "...
Predicate p = cb.disjunction();
1,530,838
private static String buildMessage(int M_Product_ID, int C_UOM_ID, int C_UOM_To_ID) {<NEW_LINE>StringBuffer sb = new StringBuffer("@" + AD_Message + "@ - ");<NEW_LINE>//<NEW_LINE>sb.append("@M_Product_ID@:");<NEW_LINE>MProduct product = MProduct.get(Env.getCtx(), M_Product_ID);<NEW_LINE>if (product != null) {<NEW_LINE>...
append(uomTo.getUOMSymbol());
1,517,679
private static boolean createAndStartContainer(String name, String image, String cmd, Map<String, String> env, List<String> linkHosts, Map<Integer, Integer> mapPorts, Map<String, String> volumes, List<String> opts) {<NEW_LINE>if (containerExists(name)) {<NEW_LINE>killAndRemoveContainer(name);<NEW_LINE>}<NEW_LINE>List<S...
"-p %d:%d", hPort, cPort)));
37,761
private static void writeForDdlInternalProperty(Element properties) throws Exception {<NEW_LINE>Element property = properties.addElement("property");<NEW_LINE>property.addAttribute("name", "javax.persistence.jdbc.driver");<NEW_LINE>property.addAttribute("value", SlicePropertiesBuilder.driver_h2);<NEW_LINE>property = pr...
property.addAttribute("value", "sa");
1,483,051
public void onUpOrCancelMotionEvent(ScrollState scrollState) {<NEW_LINE>mBaseTranslationY = 0;<NEW_LINE>Fragment fragment = getCurrentFragment();<NEW_LINE>if (fragment == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>View view = fragment.getView();<NEW_LINE>if (view == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int to...
int scrollY = listView.getCurrentScrollY();
1,296,019
public PlayerSaveResult savePlayerData(UUID uniqueId, String username) {<NEW_LINE>username = username.toLowerCase(Locale.ROOT);<NEW_LINE>MongoCollection<Document> c = this.database.getCollection(this.prefix + "uuid");<NEW_LINE>// find any existing mapping<NEW_LINE>String oldUsername = getPlayerName(uniqueId);<NEW_LINE>...
().upsert(true));
1,315,347
public static byte[] derivePasswordBasedKey(final byte[] salt, final char[] password, final AesKeyStrength aesKeyStrength) throws ZipException {<NEW_LINE>final PBKDF2Parameters parameters = new PBKDF2Parameters(AES_MAC_ALGORITHM, AES_HASH_CHARSET, salt, AES_HASH_ITERATIONS);<NEW_LINE>final PBKDF2Engine engine = new PBK...
format("Derived Key invalid for Key Length [%d] MAC Length [%d]", keyLength, macLength);
1,623,646
private void criar_usuario_servidor(String url, String username, InetAddress ip) throws Exception {<NEW_LINE>HttpClient httpclient = HttpClients.createDefault();<NEW_LINE>HttpPost httppost = new HttpPost(url + "/api/users");<NEW_LINE>DateFormat df = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");<NEW_LINE>Date today = Cal...
].replaceAll("\"", "");
524,942
public void write(CompoundTag compound, boolean clientPacket) {<NEW_LINE>super.write(compound, clientPacket);<NEW_LINE>compound.put(<MASK><NEW_LINE>compound.put("OutputItems", outputInventory.serializeNBT());<NEW_LINE>if (preferredSpoutput != null)<NEW_LINE>NBTHelper.writeEnum(compound, "PreferredSpoutput", preferredSp...
"InputItems", inputInventory.serializeNBT());
1,138,018
void handleFailedPromote(PromoteBean promoteBean, EnvironBean currEnvBean, String deployId) throws Exception {<NEW_LINE>PromoteFailPolicy autoPromotePolicy = promoteBean.getFail_policy();<NEW_LINE>if (autoPromotePolicy == PromoteFailPolicy.DISABLE) {<NEW_LINE>LOG.info("Disable auto deploy for env {}/{} since its curren...
disableAutoPromote(currEnvBean, AUTO_PROMOTER_NAME, true);
957,792
private // converts them to proto, then exports them to OC-Agent.<NEW_LINE>void export() {<NEW_LINE>if (exportRpcHandler == null || exportRpcHandler.isCompleted()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ArrayList<Metric<MASK><NEW_LINE>for (MetricProducer metricProducer : metricProducerManager.getAllMetricProducer()) {<...
> metricsList = Lists.newArrayList();
230,560
static TraceParams fromTraceConfigProto(TraceConfig traceConfigProto, TraceParams currentTraceParams) {<NEW_LINE>TraceParams.Builder builder = currentTraceParams.toBuilder();<NEW_LINE>if (traceConfigProto.hasConstantSampler()) {<NEW_LINE>ConstantSampler constantSampler = traceConfigProto.getConstantSampler();<NEW_LINE>...
setSampler(Samplers.neverSample());
666,834
public Optional<IExpression<?>> extractDefaultValueExpression(final String defaultValueStr, final String columnName, final DocumentFieldWidgetType widgetType, final Class<?> fieldValueClass, final boolean isMandatory, final boolean allowUsingAutoSequence) {<NEW_LINE>final boolean isDetailTab = isDetailTab();<NEW_LINE>/...
.of(getTableName()));
1,146,487
public void insertPush2(int opcode, JumpInsnNode position, InsnList list) {<NEW_LINE>list.insertBefore(position, <MASK><NEW_LINE>// list.insertBefore(position, new InsnNode(Opcodes.ISUB));<NEW_LINE>MethodInsnNode sub = new MethodInsnNode(Opcodes.INVOKESTATIC, Type.getInternalName(BooleanHelper.class), "intSub", Type.ge...
new InsnNode(Opcodes.DUP2));
1,219,868
private void parseEdgeTrafficRouterLocations(final JsonNode jo, final CacheRegister cacheRegister) throws JsonUtilsException {<NEW_LINE>final String locationKey = "location";<NEW_LINE>final JsonNode trafficRouterJo = JsonUtils.getJsonNode(jo, "contentRouters");<NEW_LINE>final Map<Geolocation, TrafficRouterLocation> loc...
cl.getGeolocation(), trafficRouterLocation);
215,825
public void writeRawBytes(final ByteString value, int offset, int length) throws IOException {<NEW_LINE>if (limit - position >= length) {<NEW_LINE>// We have room in the current buffer.<NEW_LINE>value.copyTo(buffer, offset, position, length);<NEW_LINE>position += length;<NEW_LINE>} else {<NEW_LINE>// Write extends past...
InputStream inputStreamFrom = value.newInput();
738,055
// --- DataSourceView implementation ---------------------------------------<NEW_LINE>protected DataViewComponent createComponent() {<NEW_LINE>PackagesView packagesView = new PackagesView(model, controller);<NEW_LINE>timelineView = new TimelineView(model);<NEW_LINE>detailsView = new DetailsView(model);<NEW_LINE>MasterV...
getView(), DataViewComponent.TOP_LEFT);
806,011
public BaseFont awtToPdf(Font awtFont) {<NEW_LINE>ourLogger.debug("Searching for BaseFont for awtFont={} charset={} cache={}", awtFont, charset, myFontCache);<NEW_LINE>if (myFontCache.containsKey(awtFont)) {<NEW_LINE>ourLogger.debug("Found in cache.");<NEW_LINE>return myFontCache.get(awtFont);<NEW_LINE>}<NEW_LINE>Strin...
f = myMap_Family_ItextFont.get(family);
558,089
public void marshall(PendingMaintenanceAction pendingMaintenanceAction, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (pendingMaintenanceAction == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(pendingMaint...
pendingMaintenanceAction.getDescription(), DESCRIPTION_BINDING);
279,762
public GetGroupCertificateAuthorityResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetGroupCertificateAuthorityResult getGroupCertificateAuthorityResult = new GetGroupCertificateAuthorityResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement...
class).unmarshall(context));
1,012,638
final SetInstanceProtectionResult executeSetInstanceProtection(SetInstanceProtectionRequest setInstanceProtectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setInstanceProtectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
endClientExecution(awsRequestMetrics, request, response);
1,137,330
private Stream<MapResult> parse(InputStream data, boolean simpleMode, String path, boolean failOnError) throws Exception {<NEW_LINE>List<MapResult> result = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();<NEW_LINE>documentBuilderFactory.se...
DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
477,960
private void createAddFolderItem(@NonNull LayoutInflater inflater) {<NEW_LINE>View view = inflater.inflate(R.layout.bottom_sheet_item_simple_pad_32dp, null);<NEW_LINE>TextView title = view.<MASK><NEW_LINE>title.setTypeface(FontCache.getRobotoMedium(app));<NEW_LINE>BaseBottomSheetItem item = new SimpleBottomSheetItem.Bu...
findViewById(R.id.title);
767,374
public void checkRepoAndAddWarningIfRequired() {<NEW_LINE>try {<NEW_LINE>if (configRepository.getLooseObjectCount() >= systemEnvironment.get(SystemEnvironment.GO_CONFIG_REPO_GC_LOOSE_OBJECT_WARNING_THRESHOLD)) {<NEW_LINE>String message = "Action required: Run 'git gc' on config.git repo";<NEW_LINE>String description = ...
e.getMessage(), e);
862,660
private static ArrayList<KeyValue> parseResult(final ChannelBuffer buf) {<NEW_LINE>final int length = buf.readInt();<NEW_LINE>HBaseRpc.checkArrayLength(buf, length);<NEW_LINE>// LOG.debug("total Result response length={}", length);<NEW_LINE>final int num_kv = numberOfKeyValuesAhead(buf, length);<NEW_LINE>final ArrayLis...
).length + 8 + 1);
230,948
public static TruffleString toDisplayStringImpl(Object value, boolean allowSideEffects, ToDisplayStringFormat format, int depth, Object parent) {<NEW_LINE>CompilerAsserts.neverPartOfCompilation();<NEW_LINE>if (value == parent) {<NEW_LINE>return Strings.PARENS_THIS;<NEW_LINE>} else if (value == Undefined.instance) {<NEW...
allowSideEffects, format, depth, parent);
660,666
private void postProcessCaches() {<NEW_LINE>IClassPath classPath = analysisCache.getClassPath();<NEW_LINE>Map<ClassDescriptor, Object> classAnalysis = analysisCache.getClassAnalysis(ClassData.class);<NEW_LINE>if (classAnalysis == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<Entry<ClassDescriptor, Object>> entrySet ...
DescriptorFactory descriptorFactory = DescriptorFactory.instance();
1,563,497
private void addResponse(RequestMethod requestMethod, String operationPath, ApiResponses apiResponses, ApiResponse apiResponse) {<NEW_LINE>switch(requestMethod) {<NEW_LINE>case GET:<NEW_LINE>addResponse200(apiResponses, apiResponse);<NEW_LINE>if (operationPath.contains("/{id}"))<NEW_LINE>addResponse404(apiResponses);<N...
.CREATED.getReasonPhrase()));
302,939
// start lifecycle<NEW_LINE>@Override<NEW_LINE>protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_password);<NEW_LINE>// For set status bar<NEW_LINE>ChinaPhoneHelper.setStatusBar(this, true);<NEW_LINE>// Get this page mode<NEW_LINE...
findViewById(R.id.But_password_key_3);
53,067
public Observable<ServiceResponse<ImageDescription>> describeImageInStreamWithServiceResponseAsync(byte[] image, DescribeImageInStreamOptionalParameter describeImageInStreamOptionalParameter) {<NEW_LINE>if (this.client.endpoint() == null) {<NEW_LINE>throw new IllegalArgumentException("Parameter this.client.endpoint() i...
? describeImageInStreamOptionalParameter.descriptionExclude() : null;
1,474,837
public static void createPid(String dir) throws Exception {<NEW_LINE>File file = new File(dir);<NEW_LINE>if (!file.exists()) {<NEW_LINE>file.mkdirs();<NEW_LINE>} else if (!file.isDirectory()) {<NEW_LINE>throw new RuntimeException("pid dir:" + dir + " isn't directory");<NEW_LINE>}<NEW_LINE>String[<MASK><NEW_LINE>if (exi...
] existPids = file.list();
64,200
static <T> DecodePropertyInfo<T>[] prepare(DecodePropertyInfo<T>[] initial, int argumentCount) {<NEW_LINE>final DecodePropertyInfo<T>[] decoders = initial.clone();<NEW_LINE>final HashSet<Integer> hashes = new HashSet<Integer>();<NEW_LINE>int mandatoryIndex = 0;<NEW_LINE>boolean needsSorting = false;<NEW_LINE>for (int i...
put(ri.name, index);
98,160
BlockEntryStreamMerger<KEY, VALUE> startMerge() {<NEW_LINE>List<BlockEntryCursor<KEY, VALUE>> remainingParts = new ArrayList<>(parts);<NEW_LINE>while (remainingParts.size() > MERGE_FACTOR) {<NEW_LINE>// Build one "level" of mergers, each merger in this level merging "merge factor" number of streams<NEW_LINE>List<BlockE...
null, cancellation, batchSize, QUEUE_SIZE);
877,872
public boolean shouldOverrideUrlLoading(WebView view, String url) {<NEW_LINE>final RNCWebView rncWebView = (RNCWebView) view;<NEW_LINE>final boolean isJsDebugging = ((ReactContext) view.getContext()).getJavaScriptContextHolder().get() == 0;<NEW_LINE>if (!isJsDebugging && rncWebView.mCatalystInstance != null) {<NEW_LINE...
createWebViewEvent(view, url)));
710,466
protected ProcessDefinition resolveProcessDefinition(String processDefinitionKey, Integer processDefinitionVersion, String tenantId, CommandContext commandContext) {<NEW_LINE>ProcessDefinitionEntityManager processDefinitionEntityManager = CommandContextUtil.getProcessDefinitionEntityManager(commandContext);<NEW_LINE>Pr...
processDefinition = deploymentManager.findDeployedLatestProcessDefinitionByKey(processDefinitionKey);
333,087
final DeleteAlarmResult executeDeleteAlarm(DeleteAlarmRequest deleteAlarmRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAlarmRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
invoke(request, responseHandler, executionContext);
1,661,160
public boolean forward(ByteBuffer packet) throws IOException {<NEW_LINE>NatAddress incoming;<NEW_LINE>NatAddress destination;<NEW_LINE>boolean first;<NEW_LINE>synchronized (this) {<NEW_LINE>incoming = this.incoming;<NEW_LINE>destination = this.destination;<NEW_LINE>first = this.first;<NEW_LINE>this.first = false;<NEW_L...
name, destination.name, natName);
1,299,253
public static void main(String[] args) {<NEW_LINE>// Create a report to log multi-threaded messages.<NEW_LINE>AsyncReport rep = new AsyncReport();<NEW_LINE>// Create a user-defined event handler to catch plugin events.<NEW_LINE>EventHandler handler = new EventHandler();<NEW_LINE>// Create a TS processor using the repor...
tsp.registerEventHandler(handler, EVENT_CODE);
1,184,835
public DataSource createDataSource(Configuration dbConfig) throws PropertyVetoException, SQLException {<NEW_LINE>ComboPooledDataSource ds = new ComboPooledDataSource();<NEW_LINE>ds.setDriverClass(dbConfig.getProperty("db.driver"));<NEW_LINE>ds.setJdbcUrl(dbConfig.getProperty("db.url"));<NEW_LINE>ds.setUser(dbConfig.get...
getProperty("db.pool.minSize", "1")));
1,219,303
private static boolean gfvSmallerOrEqual(GlassFishVersion gfv, List<Integer> versionNumbers) {<NEW_LINE>if (gfv.getMajor() < versionNumbers.get(0)) {<NEW_LINE>return true;<NEW_LINE>} else if (gfv.getMajor() == versionNumbers.get(0)) {<NEW_LINE>if (gfv.getMinor() < versionNumbers.get(1)) {<NEW_LINE>return true;<NEW_LINE...
) <= versionNumbers.get(3);
1,252,091
// LIDB4147-9 End<NEW_LINE>public void forward(String relativeUrlPath) throws ServletException, IOException {<NEW_LINE>// JSP.4.5 If the buffer was flushed, throw IllegalStateException<NEW_LINE>try {<NEW_LINE>out.clear();<NEW_LINE>} catch (IOException ex) {<NEW_LINE>throw new IllegalStateException("jsp.error.attempt_to...
request.getAttribute(Constants.INC_SERVLET_PATH);
1,178,460
void project(Model model) {<NEW_LINE>String name = model.getName();<NEW_LINE>if (name == null) {<NEW_LINE>name = model.getArtifactId();<NEW_LINE>}<NEW_LINE>p.printStartBlock("project", name, model.getUrl());<NEW_LINE>p.println();<NEW_LINE>p.println("model_version", model.getModelVersion());<NEW_LINE>p.println("inceptio...
properties(model.getProperties());
115,469
private LinkDomainToLdapResponse linkDomainToLdap(Long domainId, String type, String name, Account.Type accountType) {<NEW_LINE>Validate.notNull(type, "type cannot be null. It should either be GROUP or OU");<NEW_LINE>Validate.notNull(domainId, "domainId cannot be null.");<NEW_LINE>Validate.notEmpty(name, "GROUP or OU n...
, name, accountType, 0));
1,786,878
private static void tryMT(RegressionEnvironment env, int numSeconds, int numWriteThreads) throws InterruptedException {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplCreateVariable = "@public create table varagg (c0 int, c1 int, c2 int, c3 int, c4 int, c5 int)";<NEW_LINE><MASK><NEW_LINE>String...
env.compileDeploy(eplCreateVariable, path);
198,870
protected void attachVolume(final AttachVolumeToVmOnHypervisorMsg msg, final NoErrorCompletion completion) {<NEW_LINE>checkStateAndStatus();<NEW_LINE>KVMHostInventory host = (KVMHostInventory) getSelfInventory();<NEW_LINE>final VolumeInventory vol = msg.getInventory();<NEW_LINE>final VmInstanceInventory vm = msg.getVmI...
vol, cmd, err, data);
803,722
public static List<String> extractGivenNames(FhirContext theFhirContext, IBase theBase) {<NEW_LINE>switch(theFhirContext.getVersion().getVersion()) {<NEW_LINE>case R4:<NEW_LINE>HumanName humanNameR4 = (HumanName) theBase;<NEW_LINE>return humanNameR4.getGiven().stream().map(PrimitiveType::getValueAsString).filter(s -> !...
collect(Collectors.toList());
578,063
private Item buildWand(OperatorNode<ExpressionOperator> ast) {<NEW_LINE>List<OperatorNode<ExpressionOperator>> args = ast.getArgument(1);<NEW_LINE>Preconditions.checkArgument(args.size() == 2, "Expected 2 arguments, got %s.", args.size());<NEW_LINE>Integer targetNumHits = getAnnotation(ast, TARGET_HITS, Integer.class, ...
.get(1), out);
1,232,007
public JsonResponseManufacturingOrdersBulk execute() {<NEW_LINE>final APITransactionId transactionKey = APITransactionId.random();<NEW_LINE>try (final MDCCloseable ignore = MDC.putCloseable("TransactionIdAPI", transactionKey.toJson())) {<NEW_LINE>final List<I_PP_Order> orders = getOrders();<NEW_LINE>if (orders.isEmpty(...
jsonOrders = new ArrayList<>();
606,852
private boolean addFrameworkFiles() {<NEW_LINE>List<WebFrameworkProvider> providers = WebFrameworks.getFrameworks();<NEW_LINE>boolean result = false;<NEW_LINE>start: for (int i = 0; i < providers.size(); i++) {<NEW_LINE>WebFrameworkProvider provider = (WebFrameworkProvider) providers.get(i);<NEW_LINE>FileObject wmBase ...
files = provider.getConfigurationFiles(wm);
34,629
final CancelRetrievalResult executeCancelRetrieval(CancelRetrievalRequest cancelRetrievalRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelRetrievalRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
endClientExecution(awsRequestMetrics, request, response);