idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,829,451
// /////////////////////<NEW_LINE>// Utility functions //<NEW_LINE>// /////////////////////<NEW_LINE>@Override<NEW_LINE>public void applySettingsToController(Settings settings, IController controller) throws Exception {<NEW_LINE>if (settings == null) {<NEW_LINE>throw new Exception("Programmer error.");<NEW_LINE>}<NEW_L...
setSingleStepMode(settings.isSingleStepMode());
131,848
private void updateV3OnionNames() throws SecurityException {<NEW_LINE>var contentResolver = getApplicationContext().getContentResolver();<NEW_LINE>var onionServices = contentResolver.query(V3_ONION_SERVICES_CONTENT_URI, null, null, null, null);<NEW_LINE>if (onionServices != null) {<NEW_LINE>try {<NEW_LINE>while (onionS...
(hostname)).trim();
1,141,318
static Stream<RetrieveResult> retrieve(String graphToken, Kernel kernel, long numSilentQueryDrops) throws TransactionFailureException {<NEW_LINE>Map<String, Object> systemData = new HashMap<>();<NEW_LINE>systemData.put("jvmMemoryFree", Runtime.getRuntime().freeMemory());<NEW_LINE>systemData.put("jvmMemoryTotal", Runtim...
"jvmName", runtime.getVmName());
224,840
public InteractionResultHolder<ItemStack> use(Level worldIn, Player playerIn, InteractionHand handIn) {<NEW_LINE>ItemStack itemstack = playerIn.getItemInHand(handIn);<NEW_LINE>if (playerIn.fishing != null) {<NEW_LINE>if (!worldIn.isClientSide) {<NEW_LINE>int i = playerIn.fishing.retrieve(itemstack);<NEW_LINE>itemstack....
, worldIn, j, k));
654,037
protected HealthCheckResult doCheckInternal() {<NEW_LINE>HealthCheckResult result = new HealthCheckResult();<NEW_LINE>if (!envrionment.isDas()) {<NEW_LINE>// currrently this should only run on DAS<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>long timeoutMillis = options.getTimeout();<NEW_LINE>for (Future<Integer> task :...
Throwable cause = ex.getCause();
297,372
private int completeDeletions() throws IOException {<NEW_LINE>int numPending = deletions.size();<NEW_LINE>int numFailures = 0;<NEW_LINE>if (numPending < 1) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>List<PendingFileDeletionExec> pendingExecs = deletions.parallelStream().map(f -> new PendingFileDeletionExec(f.getAbsoluteP...
Boolean, List<PendingFileDeletionExec>> bySuccess;
15,400
public void synchronizeKeyToPassive(PassiveSynchronizationChannel<EhcacheEntityMessage> syncChannel, int concurrencyKey) {<NEW_LINE>LOGGER.info("Sync started for concurrency key {}.", concurrencyKey);<NEW_LINE>if (concurrencyKey == DEFAULT_KEY) {<NEW_LINE>stateService.getStateRepositoryManager().syncMessageFor(storeIde...
).forEach(syncChannel::synchronizeToPassive);
1,048,983
private LLVMValueRef emitCall(Invoke invoke, LoweredCallTargetNode callTarget, LLVMValueRef callee, long patchpointId, LLVMValueRef... args) {<NEW_LINE>boolean nativeABI = ((SubstrateCallingConventionType) callTarget.callType()).nativeABI();<NEW_LINE>if (!SubstrateBackend.hasJavaFrameAnchor(callTarget)) {<NEW_LINE>asse...
LLVMValueRef[args.length + 2];
394,058
// type cannot be known ahead<NEW_LINE>@SuppressWarnings("java:S3740")<NEW_LINE>private boolean pullSnapshot(int nodeIndex) throws InterruptedException, TException {<NEW_LINE>Node node = descriptor.getPreviousHolders().get(nodeIndex);<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("Pulling slot {} and ot...
logger.error("Apply snapshot failed, retry...", e);
1,205,410
public void execute() {<NEW_LINE>EntityPlayer player = Minecraft.getMinecraft().player;<NEW_LINE>if (DarkSteelController.isNightVisionUpgradeEquipped(player)) {<NEW_LINE>boolean isActive = !StateController.isActive(player, NightVisionUpgrade.INSTANCE);<NEW_LINE>if (isActive) {<NEW_LINE>SoundHelper.playSound(player.worl...
INSTANCE.getUnlocalizedName(), isActive);
194,780
// // Painting the nodes ////<NEW_LINE>@Override<NEW_LINE>protected void paintComponent(Graphics g) {<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);<NEW_LINE>g2.setRenderingHint(<MASK><NEW_LINE>// Draw background<NEW_LINE>g2.set...
RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
1,552,377
// TODO: Change this to accept ObjectNode instead of ArrayNode in request body<NEW_LINE>public Result syncInstances(long timestamp) {<NEW_LINE>Optional<HighAvailabilityConfig> config = HighAvailabilityConfig.getByClusterKey(this.getClusterKey());<NEW_LINE>if (!config.isPresent()) {<NEW_LINE>return ApiResponse.error(NOT...
ApiResponse.error(BAD_REQUEST, "Cannot import instances for a leader");
1,852,925
void refresh(HeapHistogram histogram) {<NEW_LINE>if (histogram == null || isPaused())<NEW_LINE>return;<NEW_LINE>forceRefresh = false;<NEW_LINE>boolean diff = lrDeltasButton.isSelected();<NEW_LINE>if (diff) {<NEW_LINE>if (baseClasses == null) {<NEW_LINE>baseClasses = new ArrayList(classes);<NEW_LINE>baseTotalBytes = tot...
[0].setDiffMode(diff);
1,300,417
private void registerHandlers(RaftServerProtocol protocol) {<NEW_LINE>protocol.registerOpenSessionHandler(request -> runOnContextIfReady(() -> role.onOpenSession(request), OpenSessionResponse::builder));<NEW_LINE>protocol.registerCloseSessionHandler(request -> runOnContextIfReady(() -> role.onCloseSession(request), Clo...
request), KeepAliveResponse::builder));
1,332,409
private void addPdfToZip(Event event, ZipOutputStream zipOS, TicketReservation reservation, BillingDocument document) {<NEW_LINE>Map<String, Object> reservationModel = document.getModel();<NEW_LINE>Optional<byte[]> pdf;<NEW_LINE>var language = LocaleUtil.forLanguageTag(reservation.getUserLanguage());<NEW_LINE>switch(do...
language, templateManager, reservationModel, extensionManager);
354,079
public com.amazonaws.services.chime.model.BadRequestException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.chime.model.BadRequestException badRequestException = new com.amazonaws.services.chime.model.BadRequestException(null);<NEW_LINE>int originalDepth = con...
String currentParentElement = context.getCurrentParentElement();
1,650,751
private View createVoiceItemView(IndexItem indexItem, LayoutInflater inflater) {<NEW_LINE>View container = inflater.inflate(R.layout.list_item_icon_and_download, null);<NEW_LINE>boolean isTTS = DownloadActivityType.isVoiceTTS(indexItem);<NEW_LINE>if (isTTS && !isDefaultTTS(indexItem)) {<NEW_LINE>container.findViewById(...
(R.drawable.ic_action_gsave_dark));
265,029
private List<FederationUploadKey> executeUploadAndCollectErrors(UploadPayload payload) {<NEW_LINE>logger.info("Executing {} batch request(s): {}", getGateway(), payload.getBatchTag());<NEW_LINE>var result = <MASK><NEW_LINE>List<FederationUploadKey> retryKeys = Collections.emptyList();<NEW_LINE>if (result.isPresent()) {...
this.federationUploadClient.postBatchUpload(payload);
1,562,558
public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6) {<NEW_LINE>checkEntryNotNull(k1, v1);<NEW_LINE>checkEntryNotNull(k2, v2);<NEW_LINE>checkEntryNotNull(k3, v3);<NEW_LINE>checkEntryNotNull(k4, v4);<NEW_LINE>checkEntryNotNull(k5, v5);<NEW_LINE>checkEntryNo...
, k6, v6 }, 6);
931,789
private Playlist parseTrackCharts(ScriptChartsResult chartsResult, String type) {<NEW_LINE>List<Query> queries = new ArrayList<>();<NEW_LINE>for (JsonObject rawTrack : chartsResult.results) {<NEW_LINE>JsonElement artist = rawTrack.get("artist");<NEW_LINE>JsonElement <MASK><NEW_LINE>JsonElement track = rawTrack.get("tra...
album = rawTrack.get("album");
266,245
public Object aroundInvoke(InvocationContext inv) throws Exception {<NEW_LINE>ResultsLocal results = ResultsLocalBean.getSFBean();<NEW_LINE>results.addAroundInvoke(CLASS_NAME, "aroundInvoke");<NEW_LINE>// Validate and update context data.<NEW_LINE>Map<String, Object<MASK><NEW_LINE>String data;<NEW_LINE>if (map.contains...
> map = inv.getContextData();
121,521
public void encode(ByteBufferPool.Lease lease) {<NEW_LINE>int size = (_huffmanName ? HuffmanEncoder.octetsNeeded(_name) : _name.length()) + (_huffmanValue ? HuffmanEncoder.octetsNeeded(_value) : _value.length()) + 2;<NEW_LINE>ByteBuffer buffer = lease.acquire(size, false);<NEW_LINE>if (_huffmanName) {<NEW_LINE>buffer.p...
put(_value.getBytes());
402,555
public static <T> Object callMethod(Class<T> klass, T instance, String methodName, Object i0, Class<?> t0, Object i1, Class<?> t1, Object i2, Class<?> t2, Object i3, Class<?> t3, Object i4, Class<?> t4, Object i5, Class<?> t5, Object i6, Class<?> t6, Object i7, Class<?> t7, Object i8, Class<?> t8, Object i9, Class<?> t...
, t11, t12, t13 });
1,784,560
public static Extractor create(String schemaName, String sourceTableName, long batchSize, long speedMin, long speedLimit, long parallelism, Map<String, Set<String>> sourcePhyTables, ExecutionContext ec) {<NEW_LINE>ExtractorInfo info = Extractor.buildExtractorInfo(ec, schemaName, sourceTableName, sourceTableName);<NEW_L...
info.getPrimaryKeysId(), sourcePhyTables);
226,373
public void valueChanged(XFormField sourceField, String newValue, String oldValue) {<NEW_LINE>List<String> testCases = new ArrayList<String>();<NEW_LINE>String tc = mainForm.getComponentValue(TESTCASE);<NEW_LINE>if (newValue.equals(ALL_VALUE)) {<NEW_LINE>for (TestSuite testSuite : testSuites) {<NEW_LINE>for (TestCase t...
testSuite.getTestCaseList())));
1,227,763
public void closeSourceWindow(String name) {<NEW_LINE>// hide the original source window<NEW_LINE>if (StringUtil.equals(name, SourceColumnManager.MAIN_SOURCE_NAME))<NEW_LINE>getSourceLogicalWindow().onWindowStateChange(new WindowStateChangeEvent(WindowState.HIDE));<NEW_LINE>else {<NEW_LINE>SourceColumn column = sourceC...
removeLeftWidget(window.getNormal());
1,363,074
protected void highlightUrl(TextView textView, ClickableSpan clickableSpan, Spannable text) {<NEW_LINE>if (isUrlHighlighted)<NEW_LINE>return;<NEW_LINE>isUrlHighlighted = true;<NEW_LINE>int spanStart = text.getSpanStart(clickableSpan);<NEW_LINE>int spanEnd = text.getSpanEnd(clickableSpan);<NEW_LINE>BackgroundColorSpan h...
R.id.clickable_span_highlight_background, highlightSpan);
864,968
public void closeElement(String element, HashMap<String, String> attributes, String content, WarningSet warnings) throws SAXException {<NEW_LINE>// DEBUG ONLY<NEW_LINE>// System.err.println("closing MotorMount element: "+ element);<NEW_LINE>if (element.equals("motor")) {<NEW_LINE>FlightConfigurationId fcid = new Flight...
(Warning.fromString("Illegal motor specification, ignoring."));
1,567,899
public final boolean fuzzyEquals(AEKey other, FuzzyMode fuzzyMode) {<NEW_LINE>if (other == null || other.getClass() != getClass()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// For any fuzzy mode, the primary key (item, fluid) must still match<NEW_LINE>if (getPrimaryKey() != other.getPrimaryKey()) {<NEW_LINE>return f...
.breakPoint == percentB > fuzzyMode.breakPoint;
605,333
protected String doIt() throws Exception {<NEW_LINE>org.compiere.cm.CacheHandler thisHandler = new org.compiere.cm.CacheHandler(org.compiere.cm.CacheHandler.convertJNPURLToCacheURL(getCtx().getProperty("java.naming.provider.url")), log, getCtx(), get_TrxName());<NEW_LINE>log.info("CM_WebProject_ID=" + p_CM_WebProject_I...
getAD_TreeCMS_ID(), get_TrxName());
68,712
public static GetProjectDetailResponse unmarshall(GetProjectDetailResponse getProjectDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>getProjectDetailResponse.setRequestId<MASK><NEW_LINE>getProjectDetailResponse.setHttpStatusCode(_ctx.integerValue("GetProjectDetailResponse.HttpStatusCode"));<NEW_LINE>getProjectDeta...
(_ctx.stringValue("GetProjectDetailResponse.RequestId"));
1,503,920
public void updateScrollBars() {<NEW_LINE>if (vertical != null && visibleLines != 0) {<NEW_LINE>vertical.setValues(firstLine, visibleLines, 0, getLineCount());<NEW_LINE>vertical.setUnitIncrement(2);<NEW_LINE>vertical.setBlockIncrement(visibleLines);<NEW_LINE>}<NEW_LINE>// if (horizontal != null && width != 0) {<NEW_LIN...
horizontal.setBlockIncrement(width / 2);
1,795,570
public Void visitReturn(ReturnTree node, Void p) {<NEW_LINE>// Only check return types if ownership is being transferred.<NEW_LINE>if (!checker.hasOption(MustCallChecker.NO_LIGHTWEIGHT_OWNERSHIP)) {<NEW_LINE>MethodTree enclosingMethod = TreePathUtil.enclosingMethod(this.getCurrentPath());<NEW_LINE>// enclosingMethod is...
getDeclAnnotation(methodElt, NotOwning.class);
1,625,441
public void showOpensearchXML(final RequestContext context) {<NEW_LINE><MASK><NEW_LINE>context.setRenderer(renderer);<NEW_LINE>try {<NEW_LINE>final InputStream resourceAsStream = SearchProcessor.class.getResourceAsStream("/opensearch.xml");<NEW_LINE>String content = IOUtils.toString(resourceAsStream, StandardCharsets.U...
final TextXmlRenderer renderer = new TextXmlRenderer();
337,576
public void encodeMessage(byte[] data) {<NEW_LINE>super.encodeMessage(data);<NEW_LINE>subType = <MASK><NEW_LINE>sensorId = (data[4] & 0xFF) << 8 | (data[5] & 0xFF);<NEW_LINE>temperature = (short) ((data[6] & 0x7F) << 8 | (data[7] & 0xFF)) * 0.1;<NEW_LINE>if ((data[6] & 0x80) != 0) {<NEW_LINE>temperature = -temperature;...
SubType.fromByte(super.subType);
1,388,194
public JtsGeometry build() {<NEW_LINE>final Geometry geometry;<NEW_LINE>if (wrapdateline) {<NEW_LINE>ArrayList<LineString> parts = new ArrayList<>();<NEW_LINE>for (LineStringBuilder line : lines) {<NEW_LINE>LineStringBuilder.decompose(FACTORY, line<MASK><NEW_LINE>}<NEW_LINE>if (parts.size() == 1) {<NEW_LINE>geometry = ...
.coordinates(false), parts);
452,863
public void translate(ProxySession session, ServerTitlePacket packet) {<NEW_LINE>SetTitlePacket bedrockPacket = new SetTitlePacket();<NEW_LINE>bedrockPacket.setFadeInTime(packet.getFadeIn());<NEW_LINE>bedrockPacket.setFadeOutTime(packet.getFadeOut());<NEW_LINE>bedrockPacket.setStayTime(packet.getStay());<NEW_LINE>switc...
setType(SetTitlePacket.Type.SET_TITLE);
1,537,441
public <T> T clone(T object) {<NEW_LINE>if (object instanceof JsonNode) {<NEW_LINE>return (T) ((JsonNode) object).deepCopy();<NEW_LINE>}<NEW_LINE>if (object instanceof Collection) {<NEW_LINE>Object firstElement = findFirstNonNullElement((Collection) object);<NEW_LINE>if (firstElement != null && !(firstElement instanceo...
.clone((Serializable) object);
1,846,540
public boolean onMenuItemClick(MenuItem item) {<NEW_LINE>LogUtil.v("Chosen is " + item.getOrder());<NEW_LINE>int i = 0;<NEW_LINE>for (Spannable s : base) {<NEW_LINE>if (s.equals(item.getTitle())) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>i++;<NEW_LINE>}<NEW_LINE>switch(i) {<NEW_LINE>case 0:<NEW_LINE>SortingUtil.setSorting(...
setSorting(subreddit, Sorting.BEST);
807,937
public void begin(InterpretationContext ec, String localName, Attributes attributes) {<NEW_LINE>// LogLog.debug("in NestComponentIA begin method");<NEW_LINE>// get the action data object pushed in isApplicable() method call<NEW_LINE>IADataForComplexProperty actionData = (IADataForComplexProperty) actionDataStack.peek()...
Loader.loadClass(className, context);
1,692,935
public List<Integer> findDisappearedNumbers(int[] nums) {<NEW_LINE>int max = Integer.MIN_VALUE;<NEW_LINE>for (int i : nums) {<NEW_LINE>max = Math.max(max, i);<NEW_LINE>}<NEW_LINE>max = Math.max(max, nums.length);<NEW_LINE>Map<Integer, Integer> map = new HashMap();<NEW_LINE>for (int i = 1; i <= max; i++) {<NEW_LINE>map....
.get(i) + 1);
1,695,326
// parse security JSR250 annotations at the class level<NEW_LINE>private boolean parseClassSecurity(Class<?> cls, SecurityContext sc) {<NEW_LINE>// try DenyAll<NEW_LINE>DenyAll denyAll = cls.getAnnotation(DenyAll.class);<NEW_LINE>if (denyAll != null) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnab...
new Object[] { theseroles });
737,796
public List<MetricsValues> readLabeledMetricsValues(final MetricsCondition condition, final String valueColumnName, final List<String> labels, final Duration duration) {<NEW_LINE>final List<PointOfTime> pointOfTimes = duration.assembleDurationPoints();<NEW_LINE>String tableName = IndexController.LogicIndicesRegister.ge...
>(pointOfTimes.size());
792,230
public List<Cluster> listClusters(String accountId, String clusterNamePrefix) {<NEW_LINE>if (clusterNamePrefix != null) {<NEW_LINE>Validate.notNull(accountId, "accountId must be specified if clusterNamePrefix is specified");<NEW_LINE>}<NEW_LINE>PaginatedList<EnvironmentDDBRecord> clusters;<NEW_LINE>if (accountId == nul...
()).withConsistentRead(false);
1,006,556
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>final List<AbstractRelationship> list = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndMaxLengthAndAllElementsNotNull(sources, 2, 3);<NEW_LINE>final Object source = source...
NodeInterface t = rel.getTargetNode();
1,775,995
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {<NEW_LINE>setPreferencesFromResource(R.xml.lux_meter_settings, rootKey);<NEW_LINE>updatePeriodPref = (EditTextPreference) getPreferenceScreen().findPreference(KEY_UPDATE_PERIOD);<NEW_LINE>higLimitPref = (EditTextPreference) getPreferenceScreen(...
getPreferenceScreen().findPreference(KEY_INCLUDE_LOCATION);
1,469,591
private ComponentReport parse(final JSONObject object) {<NEW_LINE>final ComponentReport componentReport = new ComponentReport();<NEW_LINE>componentReport.setCoordinates(object.optString("coordinates", null));<NEW_LINE>componentReport.setDescription(object.optString("description", null));<NEW_LINE>componentReport.setRef...
.optNumber("cvssScore", null));
429,728
public synchronized void remove(ActiveSubscription theActiveSubscription) {<NEW_LINE><MASK><NEW_LINE>ourLog.info("Removing subscription {} from channel {}", theActiveSubscription.getId(), channelName);<NEW_LINE>boolean removed = myActiveSubscriptionByChannelName.remove(channelName, theActiveSubscription.getId());<NEW_L...
String channelName = theActiveSubscription.getChannelName();
501,982
protected void writeIndexGen(final RepositoryData repositoryData, final long repositoryStateId) throws IOException {<NEW_LINE>// can not write to a read only repository<NEW_LINE>assert isReadOnly() == false;<NEW_LINE>final long currentGen = latestIndexBlobId();<NEW_LINE>if (repositoryStateId != SnapshotsInProgress.UNDE...
metadata.name(), newGen);
121,245
public Collection<Diagnosis> diagnose(Collection<Symptom> symptoms) {<NEW_LINE>publishingMetrics.executeDiagnoserIncr(SLOW_INSTANCE_DIAGNOSER);<NEW_LINE>Collection<Diagnosis> diagnoses = new ArrayList<>();<NEW_LINE>SymptomsTable symptomsTable = SymptomsTable.of(symptoms);<NEW_LINE>SymptomsTable bp = symptomsTable.<MASK...
type(SYMPTOM_COMP_BACK_PRESSURE.text());
1,419,506
private void buildInputs() {<NEW_LINE>if (compiledInputs.size() == 0)<NEW_LINE>return;<NEW_LINE>assert debug("\n{SETTING UP MEMBERS...}\n");<NEW_LINE>StringAppender constSig = new StringAppender("(");<NEW_LINE>int size = compiledInputs.size();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>assert debug("ACC_PRIVATE...
"ALOAD " + (i + 1));
966,934
private void show_dialogFilter() {<NEW_LINE>MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(context);<NEW_LINE>View dialogView = View.inflate(context, R.layout.dialog_menu, null);<NEW_LINE>builder.setView(dialogView);<NEW_LINE>AlertDialog dialog = builder.create();<NEW_LINE>dialog.show();<NEW_LINE>T...
webpage = Uri.parse("https://github.com/scoute-dich/browser/wiki/Filter-Dialog");
1,543,309
public void start() {<NEW_LINE>super.start();<NEW_LINE>if (!isSupported()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SQLiteLint.setReportDelegate(new IssueReportBehaviour.IReportDelegate() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void report(SQLiteLintIssue issue) {<NEW_LINE>if (issue == null) {<NEW_LINE>return;<NEW...
concernDb = concernDbList.get(i);
1,433,074
private static void verifyValues(JsonNode root) {<NEW_LINE>var cursor = new JsonAccessor(root);<NEW_LINE>cursor.get("rules").forEachArrayElement(rule -> rule.get("conditions").forEachArrayElement(condition -> {<NEW_LINE>var dimension = condition.get("dimension");<NEW_LINE>if (dimension.isEqualTo(DimensionHelper.toWire(...
IllegalArgumentException("Non-string tenant ID: " + conditionValue)));
753,394
static boolean processHints(TemplateAnalysis templateAnalysis, List<String> helperHints, Match match, IndexView index, Expression expression, Map<Integer, Match> generatedIdsToMatches, BuildProducer<IncorrectExpressionBuildItem> incorrectExpressions) {<NEW_LINE>if (helperHints == null || helperHints.isEmpty()) {<NEW_LI...
, templateAnalysis), generatedIdsToMatches, index);
346,852
public static void resolve(String[] sourceUnits, String[] encodings, String[] bindingKeys, FileASTRequestor requestor, int apiLevel, Map options, List classpaths, int flags, IProgressMonitor monitor) {<NEW_LINE>INameEnvironmentWithProgress environment = null;<NEW_LINE>CancelableProblemFactory problemFactory = null;<NEW...
Classpath[classpaths.size()];
1,608,919
public JsonObject toJson() {<NEW_LINE>JsonObject json = new JsonObject();<NEW_LINE>// COMMON<NEW_LINE>json.<MASK><NEW_LINE>json.addProperty("object", "connection");<NEW_LINE>json.addProperty("status", this.status.name());<NEW_LINE>// TODO: deprecated. Better use only "id"<NEW_LINE>json.addProperty("connectionId", this....
addProperty("id", this.participantPublicId);
47,023
public void onCreate() {<NEW_LINE>super.onCreate();<NEW_LINE>SharedPreferences sharedPreferences = MainApplication.getSharedPreferences();<NEW_LINE>// We are only one process so it's ok to do this<NEW_LINE>SharedPreferences bootPrefs = MainApplication.bootSharedPreferences = this.getSharedPreferences("mmm_boot", MODE_P...
bootPrefs.getBoolean("first_boot", false);
1,029,284
private boolean changePassword(DatabaseSession databaseSession, User actingUser, boolean skipCheck) throws BimserverLockConflictException, BimserverDatabaseException, UserException {<NEW_LINE>User user = getUserByUoid(uoid);<NEW_LINE>Authenticator authenticator = new Authenticator();<NEW_LINE>if (skipCheck || authentic...
.setDate(new Date());
1,538,689
protected void postProcessPlanItemDefinitions(Collection<PlanItemDefinition> traverseElementList, List<BaseElement> eventRegistryElements) {<NEW_LINE>for (PlanItemDefinition planItemDefinition : traverseElementList) {<NEW_LINE>if (planItemDefinition instanceof GenericEventListener) {<NEW_LINE>GenericEventListener gener...
.cmmn.model.SendEventServiceTask) planItemDefinition;
1,537,563
private static CsvConverters.ReadCsv readCsvTransform(GoogleCloudDataplexV1Entity entity, String inputFileSpec) {<NEW_LINE>CsvConverters.ReadCsv.Builder builder = CsvConverters.ReadCsv.newBuilder().setCsvFormat("Default").setHeaderTag(CSV_HEADERS).setLineTag(CSV_LINES);<NEW_LINE>GoogleCloudDataplexV1StorageFormatCsvOpt...
) : ",").build();
1,507,030
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset) {<NEW_LINE>final IDocument document = viewer.getDocument();<NEW_LINE>// get the selection range<NEW_LINE>final Point selectedRange = viewer.getSelectedRange();<NEW_LINE>final List<ICompletionProposal> propList <MASK><NEW_LINE>try {<...
= new ArrayList<ICompletionProposal>();
1,750,167
private Wo list(Business business, Wi wi) throws Exception {<NEW_LINE>List<Person> people = business.person().pick(wi.getPersonList());<NEW_LINE>List<String> personIds = ListTools.extractProperty(people, JpaObject.id_FIELDNAME, String.class, true, true);<NEW_LINE>EntityManager em = business.entityManagerContainer().get...
trim(unitIds, true, true);
230
public RexNode convertCase(SqlRexContext cx, SqlCase call) {<NEW_LINE>SqlNodeList whenList = call.getWhenOperands();<NEW_LINE>SqlNodeList thenList = call.getThenOperands();<NEW_LINE>assert whenList.size() == thenList.size();<NEW_LINE>final List<RexNode> exprList = new ArrayList<>();<NEW_LINE>for (int i = 0; i < whenLis...
thenList.get(i)));
1,476,477
private void init() {<NEW_LINE>setUndecorated(true);<NEW_LINE>try {<NEW_LINE>if (GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().isWindowTranslucencySupported(WindowTranslucency.TRANSLUCENT)) {<NEW_LINE>if (!Config.getInstance().isNoTransparency())<NEW_LINE>setOpacity(0.85f);<NEW_LINE>}<NEW_L...
setBackground(ColorResource.getDarkestBgColor());
17,188
public <ReqT, RespT> ServerCall.Listener<ReqT> interceptCall(final ServerCall<ReqT, RespT> serverCall, Metadata headers, ServerCallHandler<ReqT, RespT> serverCallHandler) {<NEW_LINE>final Attributes attributes = serverCall.getAttributes();<NEW_LINE>final TransportMetadata transportMetadata = attributes.get(MetadataServ...
Context currentContext = Context.current();
943,003
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,701,605
private void createGui() {<NEW_LINE>setLayout(new BorderLayout());<NEW_LINE>final JPanel panel = new JPanel(new BorderLayout());<NEW_LINE>final JLabel lbl = new JLabel("Address" + ":");<NEW_LINE>lbl.setBorder(new EmptyBorder(5, 5, 5, 5));<NEW_LINE>panel.<MASK><NEW_LINE>m_offsetField.setSize(400, 20);<NEW_LINE>final Act...
add(lbl, BorderLayout.WEST);
1,715,634
private void loadNode512() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfiguration_CertificateGroups_DefaultUserTokenGroup_TrustList_OpenWithMasks_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArgum...
String xml = sb.toString();
1,200,035
private void removeContainer(NodeAgentContext context, Container existingContainer, List<String> reasons, boolean alreadySuspended) {<NEW_LINE>context.log(logger, "Will remove container: " + String.join(", ", reasons));<NEW_LINE>if (existingContainer.state().isRunning()) {<NEW_LINE>if (!alreadySuspended) {<NEW_LINE>orc...
log(logger, "Container successfully removed, new containerState is " + containerState);
1,641,774
public static void generateDependencyList(JavaCodeWriter writer, ValidateResult validatorResult, JspCoreContext context, boolean isTrackDependencies) {<NEW_LINE>writer.println("private static String[] _jspx_dependants;");<NEW_LINE>if (validatorResult.getDependencyList().size() > 0 || isTrackDependencies) {<NEW_LINE>wri...
+ (count++) + "] = \"");
1,841,674
protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {<NEW_LINE>builder.addConstructorArgValue(this.expectReply);<NEW_LINE>parseInputChannel(element, parserContext, builder);<NEW_LINE>IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "error-channel...
IntegrationNamespaceUtils.createExpressionDefIfAttributeDefined("reply-timeout-status-code-expression", element);
46,033
public static DescribeExporterOutputListResponse unmarshall(DescribeExporterOutputListResponse describeExporterOutputListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeExporterOutputListResponse.setRequestId(_ctx.stringValue("DescribeExporterOutputListResponse.RequestId"));<NEW_LINE>describeExporterOutputListRe...
("DescribeExporterOutputListResponse.Datapoints[" + i + "].ConfigJson.project"));
1,423,918
public Object call() throws Exception {<NEW_LINE>try {<NEW_LINE>for (int loop = 0; loop < numRepeats; loop++) {<NEW_LINE>log.info(".call Thread " + Thread.currentThread().getId() + " sending event " + loop);<NEW_LINE>String id = Long.toString(threadNum * 100000000 + loop);<NEW_LINE>SupportBean bean = new SupportBean(id...
stmt[i].safeIterator();
1,138,887
private static String KNN_WKNN_Algorithm(RadioMap RM, ArrayList<String> Observed_RSS_Values, String parameter, boolean isWeighted) {<NEW_LINE>ArrayList<String> RSS_Values;<NEW_LINE>float curResult = 0;<NEW_LINE>ArrayList<LocDistance> LocDistance_Results_List = new ArrayList<LocDistance>();<NEW_LINE>String myLocation = ...
) ? 0 : -1));
1,725,319
public static Properties argsToPropertiesWithResolve(String[] args) {<NEW_LINE>LinkedHashMap<String, String> result = new LinkedHashMap<>();<NEW_LINE>Map<String, String> existingArgs = new LinkedHashMap<>();<NEW_LINE>for (int i = 0; i < args.length; i++) {<NEW_LINE>String key = args[i];<NEW_LINE>if (key.length() > 0 &&...
(propFileToLinkedHashMap(flagArg, existingArgs));
551,374
private void internalPaintComponent(Graphics g) {<NEW_LINE>AntialiasingManager.activateAntialiasing(g);<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>int width = getWidth();<NEW_LINE>int height = getHeight();<NEW_LINE>if (isColorBgEnabled) {<NEW_LINE>GradientPaint bgGradientColor = new GradientPaint(width / 2, 0, b...
width / 2, 80, bgEndColor);
27,312
protected static FixedBucketsHistogram fromByteBufferFullNoSerdeHeader(ByteBuffer buf) {<NEW_LINE>double lowerLimit = buf.getDouble();<NEW_LINE>double upperLimit = buf.getDouble();<NEW_LINE>int numBuckets = buf.getInt();<NEW_LINE>OutlierHandlingMode outlierHandlingMode = OutlierHandlingMode.values()[buf.get()];<NEW_LIN...
min, lowerOutlierCount, upperOutlierCount, missingValueCount);
1,208,606
private void purgeExtendingPeaks() {<NEW_LINE>for (SystemInfo system : sheet.getSystems()) {<NEW_LINE>if (system.getStaves().size() >= params.largeSystemStaffCount) {<NEW_LINE>// We cannot not ruin a whole column of large system here!<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>for (VerticalSide side : VerticalSide.values()...
() : system.getLastStaff();
1,439,564
protected boolean isMaxTerminationCountExceeded(InstanceGroup group) {<NEW_LINE>Validate.notNull(group);<NEW_LINE>String propName = "maxTerminationsPerDay";<NEW_LINE>double maxTerminationsPerDay = getNumFromCfgOrDefault(group, propName, 1.0);<NEW_LINE>if (maxTerminationsPerDay <= MIN_MAX_TERMINATION_COUNT_PER_DAY) {<NE...
Calendar after = monkeyCalendar.now();
1,815,952
static List<AttachToProcessItem> doCollectAttachProcessItems(@Nonnull final Project project, @Nonnull XAttachHost host, @Nonnull List<? extends ProcessInfo> processInfos, @Nonnull ProgressIndicator indicator, @Nonnull List<? extends XAttachDebuggerProvider> providers) {<NEW_LINE>UserDataHolderBase dataHolder = new User...
currentItems = new ArrayList<>();
1,519,036
public static QueryRmsResourceidMetricsResponse unmarshall(QueryRmsResourceidMetricsResponse queryRmsResourceidMetricsResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryRmsResourceidMetricsResponse.setRequestId(_ctx.stringValue("QueryRmsResourceidMetricsResponse.RequestId"));<NEW_LINE>queryRmsResourceidMetricsResponse...
= new ArrayList<DatasItem>();
805,261
public static // See https://developer.android.com/reference/android/app/Fragment<NEW_LINE>void addToolbarToDialog(final android.app.Fragment context, final Dialog dialog, String title) {<NEW_LINE>if (!context.isAdded() || dialog == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>View dialogContainerView = DialogExtension...
android.R.id.list);
1,499,005
public void mousePressed(MouseEvent e) {<NEW_LINE>if (!SwingUtilities.isLeftMouseButton(e))<NEW_LINE>return;<NEW_LINE>boolean delete = e.isControlDown();<NEW_LINE>float x = (float) (e.getX() / scale);<NEW_LINE>float y = (float) (<MASK><NEW_LINE>active = -1;<NEW_LINE>synchronized (pointsUndistorted) {<NEW_LINE>float bes...
e.getY() / scale);
1,391,403
public void read(org.apache.thrift.protocol.TProtocol prot, dropLocalUser_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache<MASK><NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(3);<NEW_LINE>if (incoming.get(0)) {<NEW_LINE>struct.tinfo = new ...
.thrift.protocol.TTupleProtocol) prot;
872,087
public void transform(TypeTransformer transformer) {<NEW_LINE>// advice classes below expose current context in doOn*/doAfter* callbacks<NEW_LINE>transformer.applyAdviceToMethod(isPublic().and(named("doOnRequest")).and(takesArguments(1)).and(takesArgument(0, BiConsumer.class)), this.getClass(<MASK><NEW_LINE>transformer...
).getName() + "$OnRequestAdvice");
57,106
protected void visitValues(LIRInstruction inst, JavaValue[] values, InstructionValueConsumer proc) {<NEW_LINE>for (int i = 0; i < values.length; i++) {<NEW_LINE>JavaValue value = values[i];<NEW_LINE>if (isIllegalJavaValue(value)) {<NEW_LINE>continue;<NEW_LINE>} else if (value instanceof AllocatableValue) {<NEW_LINE>pro...
Value slot = monitor.getSlot();
1,038,539
private void loadNode286() {<NEW_LINE>TwoStateVariableTypeNode node = new TwoStateVariableTypeNode(this.context, Identifiers.AcknowledgeableConditionType_AckedState, new QualifiedName(0, "AckedState"), new LocalizedText("en", "AckedState"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataVal...
this.nodeManager.addNode(node);
475,484
protected static Map<String, List<Event>> findCatchingEventsForProcess(String processDefinitionId, String errorRef) {<NEW_LINE>Map<String, List<Event>> eventMap = new HashMap<String, List<Event>>();<NEW_LINE>Process process = ProcessDefinitionUtil.getProcess(processDefinitionId);<NEW_LINE>BpmnModel bpmnModel = ProcessD...
findFlowElementsOfType(EventSubProcess.class, true);
1,395,791
private Update buildUpdate(Map<String, Long> countByProductCode, Map<String, AttributeValue> compositeKey) {<NEW_LINE>List<String> updateStatements = new ArrayList<>();<NEW_LINE>Map<String, String> expressionAttributeNames = new HashMap<>();<NEW_LINE>expressionAttributeNames.put(QUANTITY_EXPRESSION_NAME, QUANTITY_ATTRI...
aggregationAttributeName, QUANTITY_EXPRESSION_NAME, aggregationAttributeName, aggregationAttributeValue);
65,840
public Request<GetOrganizationsAccessReportRequest> marshall(GetOrganizationsAccessReportRequest getOrganizationsAccessReportRequest) {<NEW_LINE>if (getOrganizationsAccessReportRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<GetOrganizati...
request.setHttpMethod(HttpMethodName.POST);
686,051
private TryStatement.Resource parseResource() throws CompileException, IOException {<NEW_LINE>Location loc = this.location();<NEW_LINE>Modifier[] modifiers = this.parseModifiers();<NEW_LINE>Atom a = this.parseExpressionOrType();<NEW_LINE>if (modifiers.length > 0 || this.peek(TokenType.IDENTIFIER)) {<NEW_LINE>if (Parser...
Rvalue rv = a.toRvalueOrCompileException();
1,376,130
private static List<String> httpPattern(String httpMethod, String prefix, List<AnnotationNode> annotations) {<NEW_LINE>List<String> patterns = new ArrayList<>();<NEW_LINE>if (annotations != null) {<NEW_LINE>List<Map<String, Object>> values = findAnnotationByType(annotations, singletonList(PACKAGE + "." + httpMethod)).s...
collect(Collectors.toList());
660,514
public String generateUserKey(String username, String keyname) throws ServletException {<NEW_LINE>// set key type<NEW_LINE>int type = KeyPair.RSA;<NEW_LINE>if ("dsa".equals(SSHUtil.KEY_TYPE)) {<NEW_LINE>type = KeyPair.DSA;<NEW_LINE>} else if ("ecdsa".equals(SSHUtil.KEY_TYPE)) {<NEW_LINE>type = KeyPair.ECDSA;<NEW_LINE>}...
(os.toString()));
53,411
public void register(SecurityAuthority authority) throws OperationFailedException {<NEW_LINE>if (!isInitialized) {<NEW_LINE>throw new OperationFailedException("Provided must be initialized before being able to register.", OperationFailedException.GENERAL_ERROR);<NEW_LINE>}<NEW_LINE>if (isRegistered()) {<NEW_LINE>return...
logger.error("No address found for " + this);
563,755
private Mono<PagedResponse<AnomalyIncident>> listIncidentsForDetectionConfigSinglePageAsync(String detectionConfigurationId, OffsetDateTime startTime, OffsetDateTime endTime, ListIncidentsDetectedOptions options, Context context) {<NEW_LINE>Objects.requireNonNull(detectionConfigurationId, "'detectionConfigurationId' is...
().setDimensionFilter(innerDimensionsToFilter));
202,771
public void create_board(IntBox p_bounding_box, LayerStructure p_layer_structure, PolylineShape[] p_outline_shapes, String p_outline_clearance_class_name, BoardRules p_rules, Communication p_board_communication, TestLevel p_test_level) {<NEW_LINE>if (this.board != null) {<NEW_LINE>FRLogger.warn(" BoardHandling.create_b...
outline_cl_class_no, p_rules, p_board_communication, p_test_level);
1,518,721
private void completeOperationTypeNamesInSchemaDefinition() {<NEW_LINE>CompletionProvider<CompletionParameters> provider = new CompletionProvider<>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void addCompletions(@NotNull final CompletionParameters parameters, @NotNull ProcessingContext context, @NotNull Complet...
collect(Collectors.toSet());
931,466
public <K, V> Collection<RedisCommand<K, V, ?>> write(Collection<? extends RedisCommand<K, V, ?>> commands) {<NEW_LINE>LettuceAssert.notNull(commands, "Commands must not be null");<NEW_LINE>RedisException validation = <MASK><NEW_LINE>if (validation != null) {<NEW_LINE>commands.forEach(it -> it.completeExceptionally(val...
validateWrite(commands.size());
3,175
// Try to find two segements that are not degenerate<NEW_LINE>boolean calc_side(Point2D inputPoint, boolean bRight, MultiPath multipath, int vertexIndex, int pathIndex) {<NEW_LINE>SegmentIterator segIter = multipath.querySegmentIterator();<NEW_LINE>find_analysis_pair_from_index(inputPoint, segIter, vertexIndex, pathInd...
cross = tang1.crossProduct(tang2);