idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,097,049
static public Timestamp nextBusinessDay(Timestamp day) throws SQLException {<NEW_LINE>if (day == null)<NEW_LINE>day = new <MASK><NEW_LINE>//<NEW_LINE>GregorianCalendar cal = new GregorianCalendar();<NEW_LINE>cal.setTime(day);<NEW_LINE>cal.set(Calendar.HOUR_OF_DAY, 0);<NEW_LINE>cal.set(Calendar.MINUTE, 0);<NEW_LINE>cal....
Timestamp(System.currentTimeMillis());
187,245
private Mono<PagedResponse<EHNamespaceInner>> listSinglePageAsync() {<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 (this.client.getSubscriptionId() == null) {<NEW_...
)).readOnly()));
1,543,437
public static void main(String[] args) throws Exception {<NEW_LINE>val b = BookKeeperServiceRunner.builder();<NEW_LINE>b.startZk(false);<NEW_LINE>try {<NEW_LINE>int bkBasePort = Integer.parseInt(System.getProperty(PROPERTY_BASE_PORT));<NEW_LINE>int bkCount = Integer.parseInt(System.getProperty(PROPERTY_BOOKIE_COUNT));<...
Thread.sleep(Long.MAX_VALUE);
1,344,930
public void writeReference(Object object) {<NEW_LINE>SerialContext context = this.context;<NEW_LINE>Object current = context.object;<NEW_LINE>if (object == current) {<NEW_LINE>out.write("{\"$ref\":\"@\"}");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SerialContext parentContext = context.parent;<NEW_LINE>if (parentContext != ...
get(object).toString();
192,508
private Mono<Response<RemediationInner>> cancelAtResourceGroupWithResponseAsync(String resourceGroupName, String remediationName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be nu...
remediationName, apiVersion, accept, context);
990,924
final DeleteSignalingChannelResult executeDeleteSignalingChannel(DeleteSignalingChannelRequest deleteSignalingChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSignalingChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
753,728
public void exitRe_redistribute_connected(Re_redistribute_connectedContext ctx) {<NEW_LINE>// In process context<NEW_LINE>if (_currentEigrpProcess == null) {<NEW_LINE>warn(ctx, "No EIGRP process available");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>RoutingProtocol sourceProtocol = RoutingProtocol.CONNECTED;<NEW_LINE><MASK>...
EigrpRedistributionPolicy r = new EigrpRedistributionPolicy(sourceProtocol);
724,700
public List<PrefValue<?>> allPrefs() {<NEW_LINE>ArrayList<PrefValue<?>> prefs = new ArrayList<PrefValue<?>>();<NEW_LINE>prefs.add(contextId());<NEW_LINE>prefs.add(autoCreatedProfile());<NEW_LINE>prefs.add(theme());<NEW_LINE>prefs.add(defaultProjectLocation());<NEW_LINE>prefs.add(clearHidden());<NEW_LINE>prefs.add(expor...
prefs.add(connectVia());
1,016,650
public void arc(float x, float y, float radius, float start, float degrees, int segments) {<NEW_LINE>if (segments <= 0)<NEW_LINE>throw new IllegalArgumentException("segments must be > 0.");<NEW_LINE>float colorBits = color.toFloatBits();<NEW_LINE>float theta = (2 * MathUtils.PI * (degrees / 360.0f)) / segments;<NEW_LIN...
cx, y + cy, 0);
1,779,880
private int execute(List<?> requests, int maxRequestsPerBulk) throws SQLException {<NEW_LINE>int result = 0;<NEW_LINE>BulkRequestBuilder bulkReq = client.prepareBulk();<NEW_LINE>for (Object req : requests) {<NEW_LINE>if (req instanceof IndexRequest)<NEW_LINE>bulkReq.add((IndexRequest) req);<NEW_LINE>else if (req instan...
().getItems().length;
1,817,179
private void processJobCallOnStart(final Event event) {<NEW_LINE>final JobRunner jobRunner = (JobRunner) event.getRunner();<NEW_LINE>if (JobCallbackUtil.isThereJobCallbackProperty(jobRunner.getProps(), JobCallbackStatusEnum.STARTED)) {<NEW_LINE>// don't want to waste time resolving properties if there are<NEW_LINE>// c...
jobId, STARTED.name());
1,198,672
protected void processFinish(PoweredMultiblockTileEntity<?, R> multiblock) {<NEW_LINE>super.processFinish(multiblock);<NEW_LINE>NonNullList<ItemStack> inv = multiblock.getInventory();<NEW_LINE>List<IngredientWithSize> itemInputList = this.getRecipeItemInputs(multiblock);<NEW_LINE>if (inv != null && this.inputSlots != n...
int ingrSize = ingr.getCount();
87,742
protected void addUserAttributions(MarkupContainer container, Change entry, int avatarSize) {<NEW_LINE>UserModel commenter = app().users(<MASK><NEW_LINE>if (commenter == null) {<NEW_LINE>// unknown user<NEW_LINE>container.add(new AvatarImage("changeAvatar", entry.author, entry.author, null, avatarSize, false).setVisibl...
).getUserModel(entry.author);
915,515
public OutlierResult run(Relation<O> relation) {<NEW_LINE>QueryBuilder<O> qb = new QueryBuilder<>(relation, distance);<NEW_LINE>KNNSearcher<DBIDRef> knnQuery = qb.kNNByDBID(kplus);<NEW_LINE>DistanceQuery<O> distFunc = qb.distanceQuery();<NEW_LINE>// track the maximum value for normalization<NEW_LINE>DoubleMinMax ldofmi...
return new OutlierResult(scoreMeta, scoreResult);
449,643
public boolean complete() {<NEW_LINE>if (!emitFromTraverser(traverser)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>ConsumerRecords<K, V> records = null;<NEW_LINE>assignPartitions();<NEW_LINE>if (!currentAssignment.isEmpty()) {<NEW_LINE>records = consumer.poll(Duration.ZERO);<NEW_LINE>}<NEW_LINE>traverser = isEmpty(re...
)] = record.offset();
466,949
final AdminSetUserPasswordResult executeAdminSetUserPassword(AdminSetUserPasswordRequest adminSetUserPasswordRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminSetUserPasswordRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
325,298
public void refresh() {<NEW_LINE>int oldChunkSize = chunkSize;<NEW_LINE>chunkSize = 0;<NEW_LINE>chunkSize += headSize;<NEW_LINE>chunkSize += stringCount * 4;<NEW_LINE>chunkSize += styleCount * 4;<NEW_LINE>if (strings != null) {<NEW_LINE>stringStart = headSize + styleCount * 4 + stringCount * 4;<NEW_LINE>// regenerate s...
- 1).limit());
1,796,792
public static DescribeDcdnDomainHttpCodeDataResponse unmarshall(DescribeDcdnDomainHttpCodeDataResponse describeDcdnDomainHttpCodeDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnDomainHttpCodeDataResponse.setRequestId(_ctx.stringValue("DescribeDcdnDomainHttpCodeDataResponse.RequestId"));<NEW_LINE>describe...
(_ctx.stringValue("DescribeDcdnDomainHttpCodeDataResponse.EndTime"));
1,622,569
private boolean runOne() {<NEW_LINE>boolean invoked;<NEW_LINE>try {<NEW_LINE>RuntimeException t = null;<NEW_LINE>try {<NEW_LINE>ConstructorOrMethod m = m_method.getConstructorOrMethod();<NEW_LINE>if (m_hookable == null) {<NEW_LINE>invoked = true;<NEW_LINE>MethodInvocationHelper.invokeMethod(m.getMethod(), m_instance, m...
m.getMethod(), m_testResult);
1,788,825
public DiscoveryResult createResult(ServiceInfo service) {<NEW_LINE>final ThingUID uid = getThingUID(service);<NEW_LINE>if (uid == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Map<String, Object> properties = new HashMap<>(2);<NEW_LINE>String host = <MASK><NEW_LINE>properties.put(CONFIG_ADDRESS, host);<NEW_L...
service.getHostAddresses()[0];
774,206
public GetSubnetCidrReservationsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>GetSubnetCidrReservationsResult getSubnetCidrReservationsResult = new GetSubnetCidrReservationsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NE...
new ArrayList<SubnetCidrReservation>());
692,005
public CreateCustomLineItemResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateCustomLineItemResult createCustomLineItemResult = new CreateCustomLineItemResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
int originalDepth = context.getCurrentDepth();
1,094,350
final GetRecommendationPreferencesResult executeGetRecommendationPreferences(GetRecommendationPreferencesRequest getRecommendationPreferencesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRecommendationPreferencesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,438,482
private JComponent makePanel() {<NEW_LINE>JPanel p = new JPanel(new BorderLayout());<NEW_LINE><MASK><NEW_LINE>table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);<NEW_LINE>scroller.setMinimumSize(new Dimension(100, 70));<NEW_LINE>scroller.setPreferredSize(scroller.getMinimumSize());<NEW_LINE>p.add(sc...
JScrollPane scroller = new JScrollPane(table);
1,086,781
public Request<CancelJobRequest> marshall(CancelJobRequest cancelJobRequest) {<NEW_LINE>if (cancelJobRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(CancelJobRequest)");<NEW_LINE>}<NEW_LINE>Request<CancelJobRequest> request = new DefaultRequest<CancelJobRequest>(cancelJo...
.toString(content.length));
153,992
private void refresh() {<NEW_LINE>if (NetworkUtils.haveNetworkConnection(getContext())) {<NEW_LINE>if (SharedPreferencesUtil.getString(ConstantStrings.FACEBOOK_PAGE_ID, null) == null) {<NEW_LINE>facebookFeedFragmentViewModel.getFBPageID(getResources().getString(R.string.facebook_access_token)).observe(FacebookFeedFragm...
showRetrySnackbar(R.string.no_internet_connection);
569,028
public synchronized void checkIn(PoolFilterable img) {<NEW_LINE>SoftReference<PoolFilterable> chosenEntry = null;<NEW_LINE>Filterable chosenImage = null;<NEW_LINE>Iterator<SoftReference<PoolFilterable><MASK><NEW_LINE>while (entries.hasNext()) {<NEW_LINE>SoftReference<PoolFilterable> entry = entries.next();<NEW_LINE>Fil...
> entries = locked.iterator();
1,372,709
private MultiPatternMatcher<CoreMap> createPatternMatcher(Map<SequencePattern<CoreMap>, Entry> patternToEntry) {<NEW_LINE>// Convert to tokensregex pattern<NEW_LINE>List<TokenSequencePattern> patterns = new ArrayList<>(entries.size());<NEW_LINE>for (Entry entry : entries) {<NEW_LINE>TokenSequencePattern pattern;<NEW_LI...
>(entry.regex.length);
1,768,845
private void initialize(Composite parent) {<NEW_LINE>parent.setLayout(new GridLayout());<NEW_LINE>composite = new Composite(parent, SWT.BORDER);<NEW_LINE>GridData gridData = new GridData(GridData.FILL_BOTH);<NEW_LINE>composite.setLayoutData(gridData);<NEW_LINE>GridLayout layout = new GridLayout(4, false);<NEW_LINE>comp...
BufferedLabel(composite, SWT.NONE);
1,264,235
private void updateUsersPowerToolsFormat() {<NEW_LINE>if (doneFile.getBoolean("updateUsersPowerToolsFormat", false)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final File userdataFolder = new File(ess.getDataFolder(), "userdata");<NEW_LINE>if (!userdataFolder.exists() || !userdataFolder.isDirectory()) {<NEW_LINE>return;<NE...
temp = new ArrayList<>();
75,495
public void createCatalog(String catalogName, String connectorName, Map<String, String> properties) {<NEW_LINE>long start = System.nanoTime();<NEW_LINE>Set<CatalogName> <MASK><NEW_LINE>for (TestingTrinoServer server : servers) {<NEW_LINE>catalogNames.add(server.createCatalog(catalogName, connectorName, properties));<NE...
catalogNames = new HashSet<>();
1,079,181
private static CompletionItem createCompletion(ConfigurationAttributes configAttrs) {<NEW_LINE>// NOI18N<NEW_LINE>CompletionItem ci = new CompletionItem(<MASK><NEW_LINE>StringWriter sw = new StringWriter();<NEW_LINE>try (JsonWriter w = new JsonWriter(sw)) {<NEW_LINE>// NOI18N<NEW_LINE>w.setIndent("\t");<NEW_LINE>w.begi...
"Java 8+: " + configAttrs.getName());
1,420,433
protected SQLStatement parseAlterSystem() {<NEW_LINE>accept(Token.ALTER);<NEW_LINE>acceptIdentifier("SYSTEM");<NEW_LINE>if (lexer.token() == Token.SET) {<NEW_LINE>accept(Token.SET);<NEW_LINE>acceptIdentifier("CONFIG");<NEW_LINE>SQLAlterSystemSetConfigStatement stmt = new SQLAlterSystemSetConfigStatement();<NEW_LINE>for...
"TODO " + lexer.info());
1,614,868
public void finishedTweetingNotification() {<NEW_LINE>// sometimes it just would keep making the notification for some reason...<NEW_LINE>// so delay it to insure it clears everything correctly<NEW_LINE>try {<NEW_LINE>Thread.sleep(500);<NEW_LINE>} catch (Exception e) {<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>NotificationCom...
.vibrate(pattern, -1);
1,588,643
protected void initialize(UserPrefs prefs) {<NEW_LINE>docOutlineDisplay_.setValue(prefs_.docOutlineShow().getValue());<NEW_LINE>rmdViewerMode_.setValue(prefs_.rmdViewerType().getValue().toString());<NEW_LINE>latexPreviewWidget_.setValue(prefs_.latexPreviewOnCursorIdle().getValue());<NEW_LINE>if (knitWorkingDir_ != null...
? UserPrefs.QUARTO_ENABLED_ENABLED : UserPrefs.QUARTO_ENABLED_DISABLED;
125,430
public LiveData<Integer> gasTankLevel() {<NEW_LINE>final MediatorLiveData<Integer> result = new MediatorLiveData<>();<NEW_LINE>final LiveData<Integer> gasTankLevel = gameStateModel.gasTankLevel();<NEW_LINE>final LiveData<Boolean> monthlySubPurchased = isPurchased(SKU_INFINITE_GAS_MONTHLY);<NEW_LINE>final LiveData<Boole...
, gasTankLevel, monthlySubPurchased, yearlySubPurchased));
547,213
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
349,173
public HttpResponse fakeOuterStringSerializeForHttpResponse(String body, Map<String, Object> params) throws IOException {<NEW_LINE>UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/string");<NEW_LINE>// Copy the params argument if present, to allow passing in immutable maps<NEW_LINE>Map<...
uriBuilder.queryParam(key, value);
520,439
public TopNColumnAggregatesProcessor<?> makeColumnSelectorStrategy(ColumnCapabilities capabilities, ColumnValueSelector selector) {<NEW_LINE>if (capabilities.is(ValueType.STRING)) {<NEW_LINE>return new StringTopNColumnAggregatesProcessor(capabilities, dimensionType);<NEW_LINE>} else if (capabilities.isNumeric()) {<NEW_...
DimensionHandlerUtils.converterFromTypeToType(capabilities, dimensionType);
657,658
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {<NEW_LINE>mAccountUID = mAccountsDbAdapter.getUID(id);<NEW_LINE>// update the intent in case the account gets rotated<NEW_LINE>getIntent().putExtra(UxArgument.SELECTED_ACCOUNT_UID, mAccountUID);<NEW_LINE>mIsPlaceholderAccount = mAccoun...
0, 0, 0, 0);
822,274
static void register(final JTextPane pane) {<NEW_LINE>final StyledDocument doc = pane.getStyledDocument();<NEW_LINE>String text = "";<NEW_LINE>try {<NEW_LINE>text = doc.getText(0, doc.getLength());<NEW_LINE>} catch (BadLocationException ex) {<NEW_LINE>Support.LOG.log(Level.SEVERE, null, ex);<NEW_LINE>}<NEW_LINE>final i...
.URL_ATTRIBUTE, new UrlAction());
1,425,472
public Sequence execute(StaticContext sctx, QueryContext ctx, Sequence[] args) {<NEW_LINE>if (args.length != 2 && args.length != 3) {<NEW_LINE>throw new QueryException(new QNm("No valid arguments specified!"));<NEW_LINE>}<NEW_LINE>final JsonDBItem doc = (JsonDBItem) args[0];<NEW_LINE>final JsonNodeReadOnlyTrx rtx = doc...
paths = new HashSet<>();
1,379,738
public String loginUser(String username, String password) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'username' is set<NEW_LINE>if (username == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser");<...
("", "password", password));
112,695
private static void appendBundleToClasspath(BundleDescription bd, List<String> pdeClassPath, IPath defaultOutputLocation) {<NEW_LINE>IPluginModelBase model = PluginRegistry.findModel(bd);<NEW_LINE>if (model == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ArrayList<IClasspathEntry> <MASK><NEW_LINE>ClasspathUtilCore.addL...
classpathEntries = new ArrayList<>();
936,061
protected DataDTO createRuleDataDTO(DataDTO parentDTO, Group group, RuleBuilderFieldService fieldService) throws MVELTranslationException {<NEW_LINE>DataDTO data = new DataDTO();<NEW_LINE>if (group.getOperatorType() == null) {<NEW_LINE>group.setOperatorType(BLCOperator.AND);<NEW_LINE>}<NEW_LINE>if (parentDTO == null) {...
().get(0));
599,819
private static EvpnType2Route jsonCreator(@JsonProperty(PROP_ADMINISTRATIVE_COST) int admin, @Nullable @JsonProperty(PROP_AS_PATH) AsPath asPath, @Nullable @JsonProperty(PROP_CLUSTER_LIST) Set<Long> clusterList, @Nullable @JsonProperty(PROP_COMMUNITIES) CommunitySet communities, @Nullable @JsonProperty(PROP_IP) Ip ip, ...
vni != null, "Missing %s", PROP_VNI);
224,061
private void ensureInitialized() throws SignatureException {<NEW_LINE>token.ensureValid();<NEW_LINE>if (this.p11Key == null) {<NEW_LINE>throw new SignatureException("Missing key");<NEW_LINE>}<NEW_LINE>if (this.sigParams == null) {<NEW_LINE>if (this.mdAlg == null) {<NEW_LINE>// PSS Parameters are required for signature ...
mdAlg).intValue()));
770,366
protected List<Element> expandMeasure(Document doc, String s) {<NEW_LINE>ArrayList<Element> exp = new ArrayList<Element>();<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>String measure = null;<NEW_LINE>String amount = null;<NEW_LINE>Matcher reMatcher = reMeasure.matcher(s);<NEW_LINE>if (!reMatcher.find())<N...
(number.expandFloat(amount));
1,521,849
public ClassReader readClass(InputStream stream, String name) throws IOException {<NEW_LINE>VarDataInput input = new VarDataInput(stream);<NEW_LINE>CachedClassReader cls = new CachedClassReader();<NEW_LINE>cls.name = name;<NEW_LINE>cls.level = accessLevels[input.readUnsigned()];<NEW_LINE>cls.modifiers = unpackModifiers...
input.readUnsigned())));
1,475,827
public boolean matchStrings(String str, @Nullable Map<String, String> uriTemplateVariables) {<NEW_LINE>if (this.exactMatch) {<NEW_LINE>return this.caseSensitive ? this.rawPattern.equals(str) : this.rawPattern.equalsIgnoreCase(str);<NEW_LINE>} else if (this.pattern != null) {<NEW_LINE>Matcher matcher = this.pattern.matc...
pattern + " does not match the number of URI template variables it defines, " + "which can occur if capturing groups are used in a URI template regex. " + "Use non-capturing groups instead.");
500,151
protected Set<LabelMetric> createMetrics(SequenceModel<Label> model) {<NEW_LINE>Set<LabelMetric> metrics = new HashSet<>();<NEW_LINE>//<NEW_LINE>// Populate labelwise values<NEW_LINE>for (Label label : model.getOutputIDInfo().getDomain()) {<NEW_LINE>MetricTarget<Label> tgt = new MetricTarget<>(label);<NEW_LINE>metrics....
.FP.forTarget(micro));
137,228
public boolean visit(MySqlIndexHintImpl x) {<NEW_LINE>List<SQLName> indexList = x.getIndexList();<NEW_LINE>SqlNodeList list = new SqlNodeList(SqlParserPos.ZERO);<NEW_LINE>for (int i = 0; i < indexList.size(); i++) {<NEW_LINE>SQLName sqlName = indexList.get(i);<NEW_LINE>String simpleName = sqlName.getSimpleName();<NEW_L...
createCharString(indexValue, SqlParserPos.ZERO);
39,885
private boolean isServiceVulnerable(NetworkService networkService) {<NEW_LINE>String targetUri = NetworkServiceUtils.buildWebApplicationRootUrl(networkService);<NEW_LINE>try {<NEW_LINE>// This is a blocking call.<NEW_LINE>String payload = String.format(PAYLOAD_STRING_FORMAT, DETECTOR_HEADER_NAME, RANDOM_VALUE);<NEW_LIN...
headers().get(DETECTOR_HEADER_NAME);
112,414
private static Duration textDecodeTime(int collationId, ByteBuf buffer, int index, int length) {<NEW_LINE>// HH:mm:ss or HHH:mm:ss<NEW_LINE>Charset charset = MySQLCollation.getJavaCharsetByCollationId(collationId);<NEW_LINE>String timeString = buffer.<MASK><NEW_LINE>boolean isNegative = timeString.charAt(0) == '-';<NEW...
toString(index, length, charset);
301,133
private static void retrieveScreenshots(JPDAThreadImpl t, final ThreadReference tr, VirtualMachine vm, DebuggerEngine engine, JPDADebuggerImpl d, final List<RemoteScreenshot> screenshots) throws RetrievalException {<NEW_LINE>try {<NEW_LINE>final ClassType windowClass = getClass(vm, tr, "javafx.stage.Window");<NEW_LINE>...
iteratorClass.concreteMethodByName("hasNext", "()Z");
1,582,542
protected void initParameters() throws UnsupportedEncodingException {<NEW_LINE>super.initParameters();<NEW_LINE>_dryRun = ParameterUtils.getDryRun(_request);<NEW_LINE>_concurrentInterBrokerPartitionMovements = ParameterUtils.concurrentMovements(_request, true, false);<NEW_LINE>_maxInterBrokerPartitionMovements = Parame...
("%s and %s cannot both be set to true.", STOP_ONGOING_EXECUTION_PARAM, DRY_RUN_PARAM));
385,850
private JBPopup createLightWeightPopup(MyInputValidator validator, Consumer<PsiElement[]> consumer) {<NEW_LINE>NewItemSimplePopupPanel contentPanel = new NewItemSimplePopupPanel();<NEW_LINE>TextBox nameField = contentPanel.getTextField();<NEW_LINE>JBPopup popup = NewItemPopupUtil.createNewItemPopup(IdeBundle.message("t...
) TargetAWT.to(nameField));
1,541,395
public StagingData retrieveStagingData(@NonNull final ImmutableList<I_C_Flatrate_Term> commissionTermRecords) {<NEW_LINE>// 1. load the actual records<NEW_LINE>//<NEW_LINE>// C_Flatrate_Term<NEW_LINE>final ImmutableMap<Integer, I_C_Flatrate_Term> //<NEW_LINE>id2TermRecord = Maps.uniqueIndex(commissionTermRecords, I_C_F...
uniqueIndex(settingsLineRecords, I_C_CommissionSettingsLine::getC_CommissionSettingsLine_ID);
893,071
private Wo list(Business business, Wi wi) throws Exception {<NEW_LINE>Wo wo = new Wo();<NEW_LINE>Identity identity = business.identity().pick(wi.getIdentity());<NEW_LINE>if (null != identity) {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(UnitDuty.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteri...
unit().listUnitDistinguishedNameSorted(unitIds);
1,356,217
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@name('s1') @public @buseventtype create objectarray schema MyEventOne(p0 string, p1 double);\n " + "@public create objectarray schema MyEventTwo(p2 string) copyfrom MyEventOne;\n";<NEW_LINE><MASK><N...
env.compileDeploy(epl, path);
286,825
Action createRunScriptAction(final String name, final boolean selectedText) {<NEW_LINE>Action action = new Action(name, e -> {<NEW_LINE>String script;<NEW_LINE>if (selectedText)<NEW_LINE>script = getSelectedText();<NEW_LINE>else<NEW_LINE>script = getCurrentText();<NEW_LINE>if (script == null || script.trim().length() =...
-> runningTask.setValue(null));
848,030
public void validate(FacesContext context, UIComponent component, Object value) {<NEW_LINE>if (context == null) {<NEW_LINE>throw new NullPointerException("context");<NEW_LINE>}<NEW_LINE>if (component == null) {<NEW_LINE>throw new NullPointerException("component");<NEW_LINE>}<NEW_LINE>if (value == null) {<NEW_LINE>retur...
.getLabel(context, component) };
1,367,421
public void execute() throws ResourceUnavailableException {<NEW_LINE>CallContext callerContext = CallContext.current();<NEW_LINE>boolean success = false;<NEW_LINE>FirewallRule rule = _entityMgr.findById(FirewallRule.class, getEntityId());<NEW_LINE>try {<NEW_LINE>CallContext.current().setEventDetails("Rule Id: " + getEn...
FirewallRule.class, getEntityId());
42,252
public boolean execute(CommandSender sender, String commandLabel, String[] args) {<NEW_LINE>if (!this.testPermission(sender)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (args.length < 2) {<NEW_LINE>sender.sendMessage(new TranslationContainer("commands.generic.usage", this.usageMessage));<NEW_LINE>return true;<NEW_L...
"%commands.give.item.notFound", args[1]));
411,291
private static BuildRule createStaticLibraryBuildRule(BuildTarget buildTarget, ProjectFilesystem projectFilesystem, ActionGraphBuilder graphBuilder, CellPathResolver cellRoots, CxxBuckConfig cxxBuckConfig, CxxPlatform cxxPlatform, CxxLibraryDescriptionArg args, ImmutableSet<BuildRule> deps, PicType pic, CxxLibraryDescr...
args, deps, transitiveCxxPreprocessorInputFunction, delegate);
1,371,190
public IMessage onMessage(PacketEnderGasConduit message, MessageContext ctx) {<NEW_LINE>EnderGasConduit conduit = message.getConduit(ctx);<NEW_LINE>if (conduit != null) {<NEW_LINE>conduit.setInputColor(message.dir, message.colIn);<NEW_LINE>conduit.setOutputColor(<MASK><NEW_LINE>conduit.setOutputPriority(message.dir, me...
message.dir, message.colOut);
18,570
public void generate() {<NEW_LINE>try {<NEW_LINE>// save the XML document before DTD generation<NEW_LINE>SaveCookie save = (SaveCookie) <MASK><NEW_LINE>if (save != null)<NEW_LINE>save.save();<NEW_LINE>FileObject primFile = template.getPrimaryFile();<NEW_LINE>String name = primFile.getName();<NEW_LINE>FileObject folder ...
template.getCookie(SaveCookie.class);
138,874
public static <X> Tuple<X> create(X[] xs) {<NEW_LINE>switch(xs.length) {<NEW_LINE>case 0:<NEW_LINE>return create0();<NEW_LINE>case 1:<NEW_LINE>return create1(xs[0]);<NEW_LINE>case 2:<NEW_LINE>return create2(xs[0], xs[1]);<NEW_LINE>case 3:<NEW_LINE>return create3(xs[0], xs[1], xs[2]);<NEW_LINE>case 4:<NEW_LINE>return cr...
5], xs[6]);
812,190
public TreeNode buildTree(int[] preorder, int[] inorder) {<NEW_LINE>if (preorder.length == 0 || inorder.length == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TreeNode result = new TreeNode(preorder[0]);<NEW_LINE>if (preorder.length == 1) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>int top = 0;<NEW_LINE>for (top = ...
preorder.length - top - 1];
1,429,218
public Builder mergeFrom(org.nd4j.ir.TensorNamespace.TensorShapeProto other) {<NEW_LINE>if (other == org.nd4j.ir.TensorNamespace.TensorShapeProto.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (dimBuilder_ == null) {<NEW_LINE>if (!other.dim_.isEmpty()) {<NEW_LINE>if (dim_.isEmpty()) {<NEW_LINE>dim_ = other.dim...
this.mergeUnknownFields(other.unknownFields);
908,719
static int compare(AbstractTruffleString a, AbstractTruffleString b, @Cached ToIndexableNode toIndexableNodeA, @Cached ToIndexableNode toIndexableNodeB, @Cached TStringInternalNodes.GetCodeRangeNode getCodeRangeANode, @Cached TStringInternalNodes.GetCodeRangeNode getCodeRangeBNode, @Cached TStringOpsNodes.RawMemCmpNode...
looseCheckEncoding(Encoding.UTF_32, codeRangeB);
264,401
private DataSource decorate(DataSource dataSource, String name, Map<String, DataSourceDecorator> decorators) {<NEW_LINE>getDataSourceNameResolver().addDataSource(name, dataSource);<NEW_LINE>DataSource decoratedDataSource = dataSource;<NEW_LINE>for (Entry<String, DataSourceDecorator> decoratorEntry : decorators.entrySet...
DataSourceDecorator decorator = decoratorEntry.getValue();
1,529,729
private static ConsumerInfo buildConsumerInfo(Method method) {<NEW_LINE>Class<?>[] parameterTypes = method.getParameterTypes();<NEW_LINE>if (parameterTypes.length == 0 || parameterTypes.length > 2) {<NEW_LINE>throw new IllegalStateException("Consumer method must have at least one and at most two parameters: " + Message...
class.getName() + " or it's subclass as the first parameter");
38,773
public // LIDB3294-41<NEW_LINE>Object invokeProceed(EJSDeployedSupport s, Method businessMethod, Object bean, Object[] methodParameters, boolean parametersModified) throws Exception {<NEW_LINE>// d532639.2<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabl...
.methodId).append(":");
631,202
private static IndexFileList downloadIndexesListFromInternet(OsmandApplication ctx) {<NEW_LINE>try {<NEW_LINE>IndexFileList result = new IndexFileList();<NEW_LINE>log.debug("Start loading list of index files");<NEW_LINE>try {<NEW_LINE>String strUrl = ctx.getAppCustomization().getIndexesUrl();<NEW_LINE>long nd = ctx.get...
parser.getAttributeValue(null, "type");
866,771
public static String createTable(AmazonDynamoDB client, String tableName) {<NEW_LINE>java.util.List<AttributeDefinition> attributeDefinitions = new ArrayList<AttributeDefinition>();<NEW_LINE>attributeDefinitions.add(new AttributeDefinition().withAttributeName("Id").withAttributeType("N"));<NEW_LINE>java.util.List<KeySc...
result = client.createTable(createTableRequest);
479,326
public void render(FacesContext context, Pageable pageable) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE><MASK><NEW_LINE>int currentPage = pageable.getPage() + 1;<NEW_LINE>int pageCount = pageable.getPageCount();<NEW_LINE>if (pageCount == 0) {<NEW_LINE>pageCount = 1;<NEW_L...
String template = pageable.getCurrentPageReportTemplate();
594,632
private String locateNodeOnMac() throws IOException {<NEW_LINE>// on Mac when e.g. IntelliJ is launched from dock, node will often not be available via PATH, because PATH is configured<NEW_LINE>// in .bashrc or similar, thus we launch node via 'run-node', which should load required configuration<NEW_LINE>LOG.debug("Loo...
defaultNode = pathResolver.resolve(NODE_EXECUTABLE_DEFAULT_MACOS);
1,201,521
private boolean writeMTU(byte[] data, int packetSize) {<NEW_LINE>try {<NEW_LINE>if (server_host == null)<NEW_LINE>return false;<NEW_LINE><MASK><NEW_LINE>int total = data.length / packetSize;<NEW_LINE>int remainder = data.length % packetSize;<NEW_LINE>if (remainder > 0)<NEW_LINE>total++;<NEW_LINE>int num = 0;<NEW_LINE>f...
long pkid = KeyGen.next();
332,633
private int onScrollPageDown(boolean isFocusDriven) {<NEW_LINE>ListCell<T> lastVisibleCell = flow.getLastVisibleCellWithinViewport();<NEW_LINE>if (lastVisibleCell == null)<NEW_LINE>return -1;<NEW_LINE>final SelectionModel<T> sm = getSkinnable().getSelectionModel();<NEW_LINE>final FocusModel<T> fm = getSkinnable().getFo...
) || sm.isSelected(lastVisibleCellIndex);
1,671,231
public void migrate(Schema schema, DatabaseSession databaseSession) {<NEW_LINE>EClass oAuthServer = schema.createEClass("store", "OAuthServer");<NEW_LINE>schema.createEAttribute(oAuthServer, "registrationUrl", EcorePackage.eINSTANCE.getEString());<NEW_LINE>schema.addIndex(schema.createEAttribute(oAuthServer, "clientId"...
"authorization", authorization, Multiplicity.SINGLE);
1,285,587
private static List<String> doIncomingForSearch(File repository, HgURL repositoryUrl, String to, String branchName, boolean bShowMerges, boolean bGetFileInfo, boolean getParents, int limit, OutputLogger logger) throws HgException {<NEW_LINE>InterRepositoryCommand command = new InterRepositoryCommand();<NEW_LINE>command...
Level.INFO, null, ex);
814,645
public SSEDescription unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SSEDescription sSEDescription = new SSEDescription();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
"unixTimestamp").unmarshall(context));
1,243,869
private OStorageOperationResult<Boolean> doDeleteRecord(final OAtomicOperation atomicOperation, final ORecordId rid, final int version, final OCluster cluster) {<NEW_LINE>Orient.instance().getProfiler().startChrono();<NEW_LINE>try {<NEW_LINE>final OPhysicalPosition ppos = cluster.getPhysicalPosition(new OPhysicalPositi...
return new OStorageOperationResult<>(false);
261,639
private Optional<Event> updateEvent(String slug, EventCreationRequest request, Principal user, String imageRef) {<NEW_LINE>Organization organization = userManager.findUserOrganizations(user.getName()).get(0);<NEW_LINE>EventWithAdditionalInfo original = eventStatisticsManager.getEventWithAdditionalInfo(slug, user.getNam...
em, user.getName());
1,285,993
public D extract(Chart chart, ReadableMap propMap) {<NEW_LINE>if (!BridgeUtils.validate(propMap, ReadableType.Array, "dataSets")) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>D chartData = createData();<NEW_LINE>ReadableArray dataSets = propMap.getArray("dataSets");<NEW_LINE>for (int i = 0; i < dataSets.size(); i++) {<N...
label = dataSetReadableMap.getString("label");
378,934
public V putRealmModel(BaseRealm baseRealm, OsMap osMap, K key, @Nullable V value) {<NEW_LINE>long <MASK><NEW_LINE>if (value == null) {<NEW_LINE>osMap.put(key, null);<NEW_LINE>} else {<NEW_LINE>boolean isEmbedded = baseRealm.getSchema().getSchemaForClass(valueClass).isEmbedded();<NEW_LINE>if (isEmbedded) {<NEW_LINE>lon...
rowModelKey = osMap.getModelRowKey(key);
1,749,222
private HttpClientBuilder lookupHttpClientBuilder(final URL url) {<NEW_LINE>Map<String, HttpClientBuilder> builderMap = this.httpClientBuildersByUri.entrySet().stream().filter(entry -> {<NEW_LINE>String key = entry.getKey();<NEW_LINE>String spec = getUrlWithPlaceholders(url, key);<NEW_LINE>if (spec.equals(key)) {<NEW_L...
.format("No custom http config found for URL: %s", url));
829,148
public static ApiDefinitionExecResult addResult(BatchRunDefinitionRequest request, TestPlanApiCase key, String status) {<NEW_LINE>ApiDefinitionExecResult apiResult = new ApiDefinitionExecResult();<NEW_LINE>apiResult.setId(UUID.randomUUID().toString());<NEW_LINE>apiResult.setCreateTime(System.currentTimeMillis());<NEW_L...
setName(caseWithBLOBs.getName());
1,174,661
public void update(@Nonnull AnActionEvent e) {<NEW_LINE>if (!myContent.isValid())<NEW_LINE>return;<NEW_LINE>Boolean isPinnedAndExtracted = myContent.getUserData(PINNED_EXTRACTED_CONTENT);<NEW_LINE>if (isPinnedAndExtracted == Boolean.TRUE) {<NEW_LINE>e.getPresentation().setEnabledAndVisible(false);<NEW_LINE>return;<NEW_...
setIcon(AllIcons.General.Pin_tab);
1,503,602
private void generateWaitIns(BIRTerminator.Wait waitInst, int localVarOffset) {<NEW_LINE>this.<MASK><NEW_LINE>this.mv.visitTypeInsn(NEW, ARRAY_LIST);<NEW_LINE>this.mv.visitInsn(DUP);<NEW_LINE>this.mv.visitMethodInsn(INVOKESPECIAL, ARRAY_LIST, JVM_INIT_METHOD, "()V", false);<NEW_LINE>int i = 0;<NEW_LINE>while (i < waitI...
mv.visitVarInsn(ALOAD, localVarOffset);
1,476,779
public static void retrieveVideoThumbnailUrl(final String videoUrl, final VideoThumbnailUrlListener listener) {<NEW_LINE>// if this is a YouTube video we can determine the thumbnail url from the passed url,<NEW_LINE>// otherwise check if we've already cached the thumbnail url for this video<NEW_LINE>String thumbnailUrl...
T.UTILS, "no video thumbnail for " + videoUrl);
927,080
private static boolean compatibleConnection(final GenericsType resolved, final GenericsType connection) {<NEW_LINE>if (resolved.isPlaceholder() && resolved.getUpperBounds() != null && resolved.getUpperBounds().length == 1 && !resolved.getUpperBounds()[0].isGenericsPlaceHolder() && resolved.getUpperBounds()[0].getName()...
) ? connection : buildWildcardType(connection);
1,641,492
public void handleEvent(Event event) {<NEW_LINE>String msg = MessageText.getString("UpdateProperty.list.message", new String[] { tp.getName(true) });<NEW_LINE>SimpleTextEntryWindow entryWindow = new SimpleTextEntryWindow(<MASK><NEW_LINE>entryWindow.setPreenteredText(f_def_str, false);<NEW_LINE>entryWindow.selectPreente...
"UpdateProperty.title", "!" + msg + "!");
891,633
public List<MethodBinding> checkAndAddSyntheticRecordOverrideMethods(MethodBinding[] methodBindings, List<MethodBinding> implicitMethods) {<NEW_LINE>if (!hasMethodWithNumArgs(TypeConstants.TOSTRING, 0)) {<NEW_LINE>MethodBinding m = addSyntheticRecordOverrideMethod(TypeConstants.<MASK><NEW_LINE>implicitMethods.add(m);<N...
TOSTRING, implicitMethods.size());
549,117
protected void onCatch(String type) {<NEW_LINE>Type exctype = Type.getObjectType(type);<NEW_LINE>addExtraTypeInfo(om.getSelfParameter(), Type.getObjectType(className));<NEW_LINE>addExtraTypeInfo(om.getTargetInstanceParameter(), exctype);<NEW_LINE>ValidationResult vr = validateArguments(om, actionArgTypes, Type.getArgum...
Type.getObjectType(className)));
830,996
public static void evaluateEventForStatement(EventBean theEvent, Map<String, Object> optionalTriggeringPattern, List<AgentInstance> agentInstances, AgentInstanceContext agentInstanceContextCreate) {<NEW_LINE>ContextStatementEventEvaluator evaluator = agentInstanceContextCreate.getContextServiceFactory().getContextState...
[]) entry.getValue();
1,401,719
private static void c_7() throws Exception {<NEW_LINE>BatchOperator<?> docs = getSource().select(LABEL_COL_NAME + ", " + TXT_COL_NAME).link(new SegmentBatchOp().setSelectedCol(TXT_COL_NAME)).link(new StopWordsRemoverBatchOp().setSelectedCol(TXT_COL_NAME));<NEW_LINE>docs.lazyPrint(10);<NEW_LINE>if (!new File(DATA_DIR + ...
.setFilePath(DATA_DIR + LDA_PWZ_FILE));
915,999
public void actionPerformed(AnActionEvent e) {<NEW_LINE>Project project = e.getProject();<NEW_LINE>FavoritesViewTreeBuilder treeBuilder = e.getDataContext().getData(FavoritesTreeViewPanel.FAVORITES_TREE_BUILDER_KEY);<NEW_LINE>String listName = e.getDataContext().getData(FavoritesTreeViewPanel.FAVORITES_LIST_NAME_DATA_K...
> selection = treeBuilder.getSelectedElements();
919,355
public boolean process(double sampleRadius, Quadrilateral_F64 input) {<NEW_LINE>work.setTo(input);<NEW_LINE>samples.reset();<NEW_LINE>estimator.process(work, false);<NEW_LINE>estimator.getWorldToCamera().invert(referenceCameraToWorld);<NEW_LINE>samples.reset();<NEW_LINE>createSamples(sampleRadius, <MASK><NEW_LINE>creat...
work.a, input.a);