idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,419,404
public void outputLineAction(OutputEvent ev) {<NEW_LINE>File pom;<NEW_LINE>if (loc == null) {<NEW_LINE>pom = new File(config.getExecutionDirectory(), "pom.xml");<NEW_LINE>} else {<NEW_LINE>pom = FileUtilities.convertStringToFile(loc);<NEW_LINE>}<NEW_LINE>FileObject <MASK><NEW_LINE>if (pomFO == null) {<NEW_LINE>LOG.log(...
pomFO = FileUtil.toFileObject(pom);
1,020,420
CompletableFuture<List<LogSegmentMetadata>> purgeLogSegmentsOlderThanTimestamp(final long minTimestampToKeep) {<NEW_LINE>if (minTimestampToKeep >= Utils.nowInMillis()) {<NEW_LINE>return FutureUtils.exception(new IllegalArgumentException("Invalid timestamp " + minTimestampToKeep + " to purge logs for " + getFullyQualifi...
l = logSegments.get(iterator);
1,026,457
public void loadSubclasses() throws Exception {<NEW_LINE>ClassLoader classLoader = Thread.currentThread().getContextClassLoader();<NEW_LINE>String packageName = PACKAGE.replace(".", "/");<NEW_LINE>URL <MASK><NEW_LINE>if (packageURL.getProtocol().equals("jar")) {<NEW_LINE>String jarFileName = URLDecoder.decode(packageUR...
packageURL = classLoader.getResource(packageName);
1,801,572
protected void addSupportingElement(Element el) {<NEW_LINE>el = (Element) DOMUtils.getDomElement(el);<NEW_LINE>if (lastSupportingTokenElement != null) {<NEW_LINE>insertAfter(el, lastSupportingTokenElement);<NEW_LINE>} else if (lastDerivedKeyElement != null) {<NEW_LINE>insertAfter(el, lastDerivedKeyElement);<NEW_LINE>} ...
Element) DOMUtils.getDomElement(el);
1,756,033
public GetMLTaskRunsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetMLTaskRunsResult getMLTaskRunsResult = new GetMLTaskRunsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context...
String currentParentElement = context.getCurrentParentElement();
168,376
private String storageOverhead(Map<Integer, Integer> finalNodeToOverhead) {<NEW_LINE>double maxOverhead = Double.MIN_VALUE;<NEW_LINE>PartitionBalance pb = new PartitionBalance(currentCluster, currentStoreDefs);<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("Per-node store-overhead:").append(Utils....
+ node.getHost() + ")";
757,934
private void loadNode112() {<NEW_LINE>UaObjectTypeNode node = new UaObjectTypeNode(this.context, Identifiers.OperationLimitsType, new QualifiedName(0, "OperationLimitsType"), new LocalizedText("en", "OperationLimitsType"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), false);<NEW_LINE>node.addRefe...
this.nodeManager.addNode(node);
880,086
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>// Get Session Info<NEW_LINE>WebSessionCtx wsc = WebSessionCtx.get(request);<NEW_LINE>WWindowStatus ws = WWindowStatus.get(request);<NEW_LINE>if (// ws can be null for Login<NEW_LINE>wsc == null ...
this, null, doc, false);
1,556,690
public void onFrameResolutionChanged(int videoWidth, int videoHeight, int rotation) {<NEW_LINE>if (rendererEvents != null) {<NEW_LINE>rendererEvents.onFrameResolutionChanged(videoWidth, videoHeight, rotation);<NEW_LINE>}<NEW_LINE>textureRotation = rotation;<NEW_LINE>int rotatedWidth, rotatedHeight;<NEW_LINE>if (rotateT...
textureRotation == -180 ? videoHeight : videoWidth;
198,939
public void marshall(DataSourceConfiguration dataSourceConfiguration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (dataSourceConfiguration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(dataSourceConfi...
dataSourceConfiguration.getSlackConfiguration(), SLACKCONFIGURATION_BINDING);
149,535
public USD unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>USD uSD = new USD();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCu...
class).unmarshall(context));
612,946
private String parseMember(ShapeId parent, Set<String> required, Set<String> defined, Set<String> remaining) {<NEW_LINE>// Parse optional member traits.<NEW_LINE>List<TraitEntry> memberTraits = parseDocsAndTraits();<NEW_LINE>SourceLocation memberLocation = currentLocation();<NEW_LINE>String memberName = ParserUtils.par...
addForwardReference(target, memberBuilder::target);
223,970
public Answer Destroy(DestroyCommand cmd) {<NEW_LINE>TransactionLegacy txn = TransactionLegacy.open(TransactionLegacy.SIMULATOR_DB);<NEW_LINE>try {<NEW_LINE>txn.start();<NEW_LINE>MockVolumeVO volume = _mockVolumeDao.findByStoragePathAndType(cmd.getVolume().getPath());<NEW_LINE>if (volume != null) {<NEW_LINE>_mockVolume...
remove(vm.getId());
838,476
public void performAction() {<NEW_LINE>File outputDir;<NEW_LINE>try {<NEW_LINE>Case currentCase = Case.getCurrentCaseThrows();<NEW_LINE>outputDir = new File(currentCase.getOutputDirectory());<NEW_LINE>if (outputDir.exists()) {<NEW_LINE>try {<NEW_LINE>Desktop.getDesktop().open(outputDir);<NEW_LINE>} catch (IOException e...
getDefault().notify(descriptor);
833,397
public boolean visit(ForStatement node) {<NEW_LINE>List<Expression> initializers = node.initializers();<NEW_LINE>if (!initializers.isEmpty())<NEW_LINE>this.wrapIndexes.add(this.tm.firstIndexIn(initializers.get(0), -1));<NEW_LINE>if (node.getExpression() != null)<NEW_LINE>this.wrapIndexes.add(this.tm.firstIndexIn(node.g...
node.getBody(), TokenNameRPAREN);
1,285,737
public static <T> T compatibleCast(Object value, Class<T> type) {<NEW_LINE>if (value == null || type == null || type.isAssignableFrom(value.getClass())) {<NEW_LINE>return (T) value;<NEW_LINE>}<NEW_LINE>if (value instanceof Number) {<NEW_LINE>Number number = (Number) value;<NEW_LINE>if (type == int.class || type == Inte...
(Long) number.longValue();
52,408
public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {<NEW_LINE>// If a new column was selected then change the key used to map from mCards to the column TextView<NEW_LINE>// Timber.i("NoteEditor:: onItemSelected() fired on mNoteTypeSpinner");<NEW_LINE>long oldModelId = getCol().getModels().cu...
optLong("did", Consts.DEFAULT_DECK_ID);
266,923
final ListTranscriptionJobsResult executeListTranscriptionJobs(ListTranscriptionJobsRequest listTranscriptionJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTranscriptionJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,413,692
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>personaIDLabel = new javax.swing.JLabel();<NEW_LINE>viewButton = new javax.swing.JButton();<NEW_LINE>setLayout(new java.awt...
new java.awt.GridBagConstraints();
1,323,385
public void serialize(Geometry geom, JsonGenerator gen, SerializerProvider serializers) throws IOException, JsonProcessingException {<NEW_LINE>gen.writeStartObject();<NEW_LINE>gen.writeFieldName("type");<NEW_LINE>gen.writeString(geom.getClass().getSimpleName());<NEW_LINE>if (geom instanceof Point) {<NEW_LINE>Point v = ...
gen, v.getCoordinates());
1,497,166
public int countByItemAndRelationshipType(Context context, Item item, RelationshipType relationshipType, boolean isLeft) throws SQLException {<NEW_LINE>CriteriaBuilder criteriaBuilder = getCriteriaBuilder(context);<NEW_LINE>CriteriaQuery criteriaQuery = getCriteriaQuery(criteriaBuilder, Relationship.class);<NEW_LINE>Ro...
Relationship_.rightItem), item));
1,287,334
public ListAccessPoliciesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListAccessPoliciesResult listAccessPoliciesResult = new ListAccessPoliciesResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
int originalDepth = context.getCurrentDepth();
1,200,548
public void combine(CRFClassifier<IN> crf, double weight) {<NEW_LINE>Timing timer = new Timing();<NEW_LINE>// Check the CRFClassifiers are compatible<NEW_LINE>if (!this.pad.equals(crf.pad)) {<NEW_LINE>throw new RuntimeException("Incompatible CRFClassifier: pad does not match");<NEW_LINE>}<NEW_LINE>if (this.windowSize !...
int oldNumWeights1 = this.getNumWeights();
752,721
public void testBasicConstraints() throws Exception {<NEW_LINE>FieldValidatedBean b = new FieldValidatedBean();<NEW_LINE>b.notNull = null;<NEW_LINE>assertViolations(ivValidator.validate(b), NotNull.class);<NEW_LINE>b = new FieldValidatedBean();<NEW_LINE>b.email = "bob@bogus.com";<NEW_LINE>assertViolations(ivValidator.v...
past = Year.of(2222);
867,268
static PayableDocument toPayableDocument(@NonNull final InvoiceRow row, @NonNull final List<PaymentDocument> paymentDocuments, @NonNull final MoneyService moneyService, @NonNull final InvoiceProcessingServiceCompanyService invoiceProcessingServiceCompanyService) {<NEW_LINE>// NOTE: assuming InvoiceRow amounts are alrea...
(discountAmt).subtract(invoiceProcessingFee);
1,555,040
final GetContentResult executeGetContent(GetContentRequest getContentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getContentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
invoke(request, responseHandler, executionContext);
113,122
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,639,225
Forwardable<EDGE_VIEW, Order.Asc> iterateBufferedViews(Encoding.Edge.Thing encoding, IID[] lookahead) {<NEW_LINE>ConcurrentNavigableMap<EDGE_VIEW, ThingEdgeImpl.Buffered> result;<NEW_LINE>InfixIID.Thing infixIID = infixIID(encoding, lookahead);<NEW_LINE>if (lookahead.length == encoding.lookAhead()) {<NEW_LINE>return (r...
newIIDs = new HashSet<>();
298,537
public static DescribeInstancesResponse unmarshall(DescribeInstancesResponse describeInstancesResponse, UnmarshallerContext context) {<NEW_LINE>describeInstancesResponse.setRequestId(context.stringValue("DescribeInstancesResponse.RequestId"));<NEW_LINE>describeInstancesResponse.setTotalCount(context.integerValue("Descr...
("DescribeInstancesResponse.Instances[" + i + "].VpcId"));
1,765,977
public Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter resourceGro...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,395,606
protected void doExecute(Task task, MultiSearchTemplateRequest request, ActionListener<MultiSearchTemplateResponse> listener) {<NEW_LINE>List<Integer> originalSlots = new ArrayList<>();<NEW_LINE>MultiSearchRequest multiSearchRequest = new MultiSearchRequest();<NEW_LINE>multiSearchRequest.indicesOptions(request.indicesO...
MultiSearchTemplateResponse.Item(null, e);
210,610
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>Context context = getContext();<NEW_LINE>prefs = PreferenceManager.getDefaultSharedPreferences(mActivity);<NEW_LINE>prefsNoBackup = mActivity.getSharedPreferences("noback...
findViewById(R.id.password);
20,365
public static FileArgument from(List<Value> lv, boolean isFolder, Reason reason) {<NEW_LINE>if (lv.size() < 2)<NEW_LINE>throw new InternalExpressionException("File functions require path and type as first two arguments");<NEW_LINE>String origtype = lv.get(1).getString().toLowerCase(Locale.ROOT);<NEW_LINE>boolean shared...
origtype.substring(7) : origtype;
1,836,516
public static QueryOrderIdByPayIdResponse unmarshall(QueryOrderIdByPayIdResponse queryOrderIdByPayIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryOrderIdByPayIdResponse.setRequestId(_ctx.stringValue("QueryOrderIdByPayIdResponse.RequestId"));<NEW_LINE>queryOrderIdByPayIdResponse.setCode(_ctx.stringValue("QueryOrde...
("QueryOrderIdByPayIdResponse.LmOrderIds[" + i + "].LmOrderId"));
1,834,211
public void buildOptions(UIDL uidl) {<NEW_LINE>select.clear();<NEW_LINE>firstValueIsTemporaryNullItem = false;<NEW_LINE>if (isNullSelectionAllowed() && !isNullSelectionItemAvailable()) {<NEW_LINE>// can't unselect last item in singleselect mode<NEW_LINE>select.addItem("", (String) null);<NEW_LINE>}<NEW_LINE>boolean sel...
final UIDL optionUidl = (UIDL) child;
714,745
protected R createRecord(Data key, Object value, long expiryTime, long now, boolean disableWriteThrough, int completionId, UUID origin) {<NEW_LINE>R record = createRecord(value, now, expiryTime);<NEW_LINE>try {<NEW_LINE>doPutRecord(key, record, origin, true);<NEW_LINE>} catch (Throwable error) {<NEW_LINE>onCreateRecord...
key, removed.getValue());
1,472,836
static synchronized void addHighlight(Document document, int startOffset, int endOffset, AttributeSet attributeSet) {<NEW_LINE>List<WeakReference<SemanticHighlightsLayer>> layers = cache.get(document);<NEW_LINE>List<WeakReference<SemanticHighlightsLayer>> newLayers = new ArrayList<WeakReference<SemanticHighlightsLayer>...
addHighlight(startOffset, endOffset, attributeSet);
38,084
public static void computeTowerHanoiWrapper(TimedExecutor executor, int numRings) throws Exception {<NEW_LINE>List<Deque<Integer>> pegs = new ArrayList<>();<NEW_LINE>for (int i = 0; i < NUM_PEGS; i++) {<NEW_LINE>pegs.add(new LinkedList<>());<NEW_LINE>}<NEW_LINE>for (int i = numRings; i >= 1; --i) {<NEW_LINE>pegs.get(0)...
fromPeg = operation.get(0);
1,664,849
public void begin() throws ResourceException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "begin", new Object<MASK><NEW_LINE>ResourceException re;<NEW_LINE>synchronized (ivMC) {<NEW_LINE>re = ivStateManager.isValid(StateManager.LT_BEGIN);<NEW_LINE>if (re == null) {<NEW_LINE>try {<NEW_LINE>prevAutoCommit = ...
[] { this, ivMC });
1,833,883
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent permanent = game.getPermanent(source.getSourceId());<NEW_LINE>if (controller != null && permanent != null) {<NEW_LINE>ChoiceImpl chooseAbility = new ChoiceImpl();<NEW_LINE>chooseAb...
Ability ability = FlyingAbility.getInstance();
250,203
public void changeStateForChildPlanItemInstance(PlanItemInstanceEntity planItemInstanceEntity) {<NEW_LINE>// terminate all child plan items not yet in an end state of the case itself (same way as with a stage for instance)<NEW_LINE>// if they would be completed, the history will contain completed plan item instances al...
planItemInstanceEntity, PlanItemTransition.COMPLETE, null);
208,680
/*<NEW_LINE>* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<NEW_LINE>*<NEW_LINE>* Interface.<NEW_LINE>*<NEW_LINE>* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<NEW_LINE>*/<NEW_LINE>public void execute(JobExecutionContext context) throws JobExecutionException {<...
wait = data.getBooleanValue(PROP_WAIT_FOR_PROCESS);
94,718
public List<I_C_Invoice_Clearing_Alloc> retrieveOpenClearingAllocs(final I_C_Flatrate_DataEntry dataEntry) {<NEW_LINE><MASK><NEW_LINE>final String trxName = getTrxName(dataEntry);<NEW_LINE>final I_C_Period period = dataEntry.getC_Period();<NEW_LINE>final Timestamp startDate = period.getStartDate();<NEW_LINE>final Times...
final Properties ctx = getCtx(dataEntry);
1,730,301
static ImmutableMap<String, BuildOptions> applyAndValidate(BuildOptions buildOptions, StarlarkDefinedConfigTransition starlarkTransition, StructImpl attrObject, EventHandler handler) throws InterruptedException {<NEW_LINE>try {<NEW_LINE>checkForDenylistedOptions(starlarkTransition);<NEW_LINE>// TODO(waltl): Consider bu...
evaluate(settings, attrObject, handler);
102,167
private static PathEntry createPathEntry(String mainPath, String altPathOrFolder) {<NEW_LINE>if (mainPath == null || mainPath.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (mainPath.toLowerCase().endsWith(".jar")) {<NEW_LINE>return createPathEntryJar(mainPath, altPathOrFolder);<NEW_LINE>}<NEW_LINE>if (mainP...
Commons.makeURL(mainPath, altPathOrFolder);
1,146,801
private PPOrderLineRow createRowForBOMLine(final I_PP_Order_BOMLine bomLine, final boolean readOnly, final List<I_PP_Order_Qty> ppOrderQtys) {<NEW_LINE>final PPOrderLineType lineType;<NEW_LINE>final String packingInfo;<NEW_LINE>final Quantity qtyPlan;<NEW_LINE>final Quantity qtyProcessedIssuedOrReceived;<NEW_LINE>final...
includedRows(includedRows).build();
639,756
public int compare(Contentlet w1, Contentlet w2) {<NEW_LINE>try {<NEW_LINE>Object value1 = PropertyUtils.getSimpleProperty(w1, orderField);<NEW_LINE>Object value2 = PropertyUtils.getSimpleProperty(w2, orderField);<NEW_LINE>int ret = 0;<NEW_LINE>if (value1 == null || value2 == null) {<NEW_LINE>return ret;<NEW_LINE>} els...
.compareTo((String) value2);
505,772
private void remember(IType type, ReferenceBinding typeBinding) {<NEW_LINE>if (((CompilationUnit) type.getCompilationUnit()).isOpen()) {<NEW_LINE>try {<NEW_LINE>IGenericType genericType = (IGenericType) ((JavaElement) type).getElementInfo();<NEW_LINE>remember(genericType, typeBinding);<NEW_LINE>} catch (JavaModelExcept...
= new char[length][];
872,690
private void attachToSession(@Nonnull XDebugSessionImpl session) {<NEW_LINE>for (XDebugView view : myViews.values()) {<NEW_LINE>attachViewToSession(session, view);<NEW_LINE>}<NEW_LINE>XDebugTabLayouter layouter = session.getDebugProcess().createTabLayouter();<NEW_LINE>Content consoleContent = layouter.registerConsoleCo...
.message("group.XDebugger.settings.text"), true);
156,193
public static ListDelegatedServicesForAccountResponse unmarshall(ListDelegatedServicesForAccountResponse listDelegatedServicesForAccountResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDelegatedServicesForAccountResponse.setRequestId(_ctx.stringValue("ListDelegatedServicesForAccountResponse.RequestId"));<NEW_LINE>Lis...
("ListDelegatedServicesForAccountResponse.DelegatedServices[" + i + "].ServicePrincipal"));
736,088
public void read(org.apache.thrift.protocol.TProtocol iprot, getMetrics_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == o...
skip(iprot, schemeField.type);
728,988
public RequestRetryOptions convert(@NonNull StorageRetry storageRetry) {<NEW_LINE>RetryOptionsProvider.RetryMode retryMode = storageRetry.getMode();<NEW_LINE>if (EXPONENTIAL == retryMode) {<NEW_LINE>RetryOptionsProvider.RetryOptions.<MASK><NEW_LINE>if (exponential != null && exponential.getMaxRetries() != null) {<NEW_L...
ExponentialRetryOptions exponential = storageRetry.getExponential();
545,473
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@public create window MyWindowFour#keepall as select * from SupportBean;\n" + "insert into MyWindowFour select * from SupportBean;";<NEW_LINE>env.compileDeploy(epl, path);<NEW_LINE>env.sendEventBean(...
new SupportBean("E3", 31));
1,665,680
protected boolean checkParameter(TypeMirror argType, TypeMirror varTypeArg) {<NEW_LINE>if (argType == null || varTypeArg == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Types types = getImplementation().getHelper().getCompilationController().getTypes();<NEW_LINE>if (argType.getKind() != TypeKind.TYPEVAR && varTyp...
getTypes(), argType, varTypeArg);
1,000,962
protected void parse() {<NEW_LINE>proxyIp = getString(PROXY_IP, "localhost");<NEW_LINE>determineProxyIpAnyLocalAddress();<NEW_LINE>proxyPort = getInt(PROXY_PORT, 8080);<NEW_LINE>reverseProxyIp = getString(REVERSE_PROXY_IP, "localhost");<NEW_LINE>if (reverseProxyIp.equalsIgnoreCase("localhost") || reverseProxyIp.equalsI...
behindNat = getBoolean(PROXY_BEHIND_NAT, false);
534,682
private void createAndSetSpecifiedPermission() {<NEW_LINE>Permission newPermission = this.createSpecifiedPermission();<NEW_LINE>if (newPermission != null) {<NEW_LINE>file.setPermission(FTPFile.USER_ACCESS, FTPFile.READ_PERMISSION, newPermission.getUser().implies(Permission.Action.read));<NEW_LINE>file.setPermission(FTP...
(Permission.Action.read));
174,511
private static void updateRecord(@NonNull final I_PP_Order_Cost record, @NonNull final PPOrderCost from) {<NEW_LINE>record.setIsActive(true);<NEW_LINE>record.setPP_Order_Cost_TrxType(from.getTrxType().getCode());<NEW_LINE>final CostSegmentAndElement costSegmentAndElement = from.getCostSegmentAndElement();<NEW_LINE>reco...
getAcctSchemaId().getRepoId());
959,793
public static void performMigration(final Context ctx, final Geocache cache, final Waypoint w, final Runnable actionAfterMigration) {<NEW_LINE>if (!needsMigration(w)) {<NEW_LINE>actionAfterMigration.run();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final CalculatedCoordinateMigrator mig <MASK><NEW_LINE>SimpleDialog.ofContext...
= new CalculatedCoordinateMigrator(cache, w);
975,738
public DeckCardLists importDeck(String fileName, StringBuilder errorMessages, boolean saveAutoFixedFile) {<NEW_LINE>File f = new File(fileName);<NEW_LINE>DeckCardLists deckList = new DeckCardLists();<NEW_LINE>if (!f.exists()) {<NEW_LINE>logger.<MASK><NEW_LINE>return deckList;<NEW_LINE>}<NEW_LINE>sbMessage.setLength(0);...
warn("Deckfile " + fileName + " not found.");
755,937
final DescribeDatasetResult executeDescribeDataset(DescribeDatasetRequest describeDatasetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDatasetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
(super.beforeMarshalling(describeDatasetRequest));
1,612,267
protected JavaType _narrow(Class<?> subclass) {<NEW_LINE>if (_class == subclass) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>// Should we check that there is a sub-class relationship?<NEW_LINE>// 15-Jan-2016, tatu: Almost yes, but there are some complications with<NEW_LINE>// placeholder values (`Void`, `NoClass`), so ...
] nextI = subclass.getInterfaces();
640,216
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see com.fasterxml.jackson.databind.ser.std.StdSerializer#serialize(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>@SuppressWarnings("null")<NEW_LINE>public void serialize(Paged...
= new CollectionJsonDocument<>(collectionJson);
668,053
public Mutable add(HttpFields fields) {<NEW_LINE>if (_fields == null)<NEW_LINE>_fields = new HttpField[fields.size() + 4];<NEW_LINE>else if (_size + fields.size() >= _fields.length)<NEW_LINE>_fields = Arrays.copyOf(_fields, _size + fields.size() + 4);<NEW_LINE>if (fields.size() == 0)<NEW_LINE>return this;<NEW_LINE>if (...
) _fields[_size++] = f;
164,005
private void scriptStep() throws IOException {<NEW_LINE>FileReference scriptReference = fileReference("script", step);<NEW_LINE>RemoteFile scriptFile = prepareRemoteFile(scriptReference, false);<NEW_LINE>List<String> files = step.getListOrEmpty("files", String.class);<NEW_LINE>List<RemoteFile> filesFiles = files.stream...
).collect(toList());
1,628,612
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()<NEW_LINE>*/<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>@Override<NEW_LINE>public void initializeDefaultPreferences() {<NEW_LINE>IEclipsePreferences prefs = DefaultScope.I...
ourPrefs.putBoolean(MIGRATED_AUTO_REFRESH, true);
1,545,498
protected // abstract in superclass.<NEW_LINE>void apply(Font font) {<NEW_LINE>Globals.getSettings().setBooleanSetting(Settings.Bool.GENERIC_TEXT_EDITOR, genericEditorCheck.isSelected());<NEW_LINE>Globals.getSettings().setBooleanSetting(Settings.Bool.<MASK><NEW_LINE>Globals.getSettings().setBooleanSetting(Settings.Bool...
EDITOR_CURRENT_LINE_HIGHLIGHTING, lineHighlightCheck.isSelected());
240,179
public List<String> listWithAppliedProcessing(String person) throws Exception {<NEW_LINE>EntityManager em = this.entityManagerContainer().get(Meeting.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(String.class);<NEW_LINE>Root<Meeting> root = <MASK><NEW_...
cq.from(Meeting.class);
1,258,048
public WriteFilesResult<DestinationT> expand(PCollection<UserT> input) {<NEW_LINE>Write.Builder<DestinationT, UserT> resolvedSpec = new AutoValue_FileIO_Write.Builder<>();<NEW_LINE>resolvedSpec.setDynamic(getDynamic());<NEW_LINE>checkArgument(getSinkFn() != null, ".via() is required");<NEW_LINE><MASK><NEW_LINE>checkArg...
resolvedSpec.setSinkFn(getSinkFn());
236,269
final DeleteOrganizationConformancePackResult executeDeleteOrganizationConformancePack(DeleteOrganizationConformancePackRequest deleteOrganizationConformancePackRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteOrganizationConformancePackRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
invoke(request, responseHandler, executionContext);
1,193,812
public Map<String, Object> upload(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, MultipartFile imgFile, HttpServletRequest request) {<NEW_LINE>Map<String, Object> map = new HashMap<>();<NEW_LINE>map.put(CommonConstants.ERROR, 0);<NEW_LINE>if (null != imgFile && !imgFile.isEmpty()) {<NEW_LINE><MASK><NE...
String originalName = imgFile.getOriginalFilename();
636,451
public double[][] chooseInitialMeans(Relation<? extends NumberVector> relation, int k, NumberVectorDistance<?> distance) {<NEW_LINE>if (relation.size() < k) {<NEW_LINE>throw new AbortException("Database has less than k objects.");<NEW_LINE>}<NEW_LINE>// Ugly cast; but better than code duplication.<NEW_LINE>@SuppressWar...
get(iter).toArray();
1,047,732
public void select(Tool tool) {<NEW_LINE>unselect();<NEW_LINE>if (tool == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Connect events<NEW_LINE>ArrayList<ToolEventHandler> handlers = new ArrayList<>();<NEW_LINE>for (ToolEventListener toolListener : tool.getListeners()) {<NEW_LINE>if (toolListener instanceof NodeClick...
).getSimpleName() + " cannot be recognized");
1,611,118
public static // OPEN_PAREN | CLOSE_PAREN | OPEN_BRACKET | CLOSE_BRACKET | normal_text<NEW_LINE>boolean no_math_content(PsiBuilder b, int l) {<NEW_LINE>if (!recursion_guard_(b, l, "no_math_content"))<NEW_LINE>return false;<NEW_LINE>boolean r;<NEW_LINE>Marker m = enter_section_(b, l, _NONE_, NO_MATH_CONTENT, "<no math c...
magic_comment(b, l + 1);
351,924
public InstanceInformationFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InstanceInformationFilter instanceInformationFilter = new InstanceInformationFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>J...
String currentParentElement = context.getCurrentParentElement();
1,564,947
RequestMetadata createRequest(MethodDescriptor methodDescriptor, Invocation invocation, Integer timeout) {<NEW_LINE>final String methodName = RpcUtils.getMethodName(invocation);<NEW_LINE>Objects.requireNonNull(methodDescriptor, "MethodDescriptor not found for" + methodName + " params:" + Arrays.toString(invocation.getC...
objectAttachments.get(CommonConstants.APPLICATION_KEY);
1,448,158
protected BeanDefinitionBuilder parseHandler(Element element, ParserContext parserContext) {<NEW_LINE>final BeanDefinitionBuilder selectorBuilder = BeanDefinitionBuilder.genericBeanDefinition();<NEW_LINE>selectorBuilder.getBeanDefinition(<MASK><NEW_LINE>this.configureXPathExpression(element, selectorBuilder, parserCont...
).setBeanClass(BooleanTestXPathMessageSelector.class);
1,740,720
protected void loadNextFromTo() {<NEW_LINE>long begin = profilingEnabled ? System.nanoTime() : 0;<NEW_LINE>try {<NEW_LINE>edgeToUpdate = null;<NEW_LINE>this.currentTo = null;<NEW_LINE>if (!toIterator.hasNext()) {<NEW_LINE>toIterator = toList.iterator();<NEW_LINE>if (!fromIter.hasNext()) {<NEW_LINE>finished = true;<NEW_...
System.nanoTime() - begin);
1,317,517
public static void unzip(InputStream is, Path targetDir) throws IOException {<NEW_LINE>targetDir = targetDir.toAbsolutePath();<NEW_LINE>try (ZipInputStream zipIn = new ZipInputStream(is)) {<NEW_LINE>for (ZipEntry ze; (ze = zipIn.getNextEntry()) != null; ) {<NEW_LINE>Path resolvedPath = targetDir.resolve(ze.getName()).n...
"Entry with an illegal path: " + ze.getName());
1,553,502
public DBClusterMember unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DBClusterMember dBClusterMember = new DBClusterMember();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += ...
().unmarshall(context));
1,291,458
protected static ParameterValueProvider parseParamValueProvider(Element parameterElement) {<NEW_LINE>// LIST<NEW_LINE>if ("list".equals(parameterElement.getTagName())) {<NEW_LINE>List<ParameterValueProvider> providerList = new ArrayList<>();<NEW_LINE>for (Element element : parameterElement.elements()) {<NEW_LINE>// par...
)), parseNestedParamValueProvider(entryElement));
1,094,669
final long[] begLen(long len, int err) {<NEW_LINE>long beg = isBeginless ? 0 : RubyNumeric.num2long(this.begin);<NEW_LINE>long end = isEndless ? -1 : <MASK><NEW_LINE>if (beg < 0) {<NEW_LINE>beg += len;<NEW_LINE>if (beg < 0) {<NEW_LINE>if (err != 0) {<NEW_LINE>throw getRuntime().newRangeError(beg + ".." + (isExclusive ?...
RubyNumeric.num2long(this.end);
29,058
private Bundle handleLegacyPermissions(Map<String, PermissionsResponse> result) {<NEW_LINE>PermissionsResponse accessFineLocation = result.get(Manifest.permission.ACCESS_FINE_LOCATION);<NEW_LINE>PermissionsResponse accessCoarseLocation = result.<MASK><NEW_LINE>PermissionsResponse backgroundLocation = result.get(Manifes...
get(Manifest.permission.ACCESS_COARSE_LOCATION);
468,515
public void onBindViewHolder(ViewHolder holder, int position) {<NEW_LINE>if (getItemViewType(position) == TYPE_FOOTER) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>super.onBindViewHolder(holder, position);<NEW_LINE>AppInfo info = mAppList.get(position);<NEW_LINE>if (mFrom == null) {<NEW_LINE>GlideUtils.loadInstalledPackageIc...
mItemEventListener.onItemClick(info, position);
1,233,232
public void msg(Msg msg, String fromPort) {<NEW_LINE>if (msg.isPureNack()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (msg.getByte("Cmd") == 0x69 || msg.getByte("Cmd") == 0x6a) {<NEW_LINE>// If the flag is "ACK/NACK", a record response<NEW_LINE>// will follow, so we do nothing here.<NEW_LINE>// If its "NA...
logger.debug("bad field handling link records {}", e);
128,174
final GetSigningCertificateResult executeGetSigningCertificate(GetSigningCertificateRequest getSigningCertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSigningCertificateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetSigningCertificate");
610,424
public void onActivityCreated(Bundle savedInstanceState) {<NEW_LINE>super.onActivityCreated(savedInstanceState);<NEW_LINE>backgroundService.getValue().attach(requireActivity());<NEW_LINE>// Add event listeners<NEW_LINE>EditText searchBar = getActivity().findViewById(R.id.search_bar);<NEW_LINE>searchBar.addTextChangedLi...
getIndex(), getActivity());
323,264
public void marshall(User user, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (user == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(user.getId(), ID_BINDING);<NEW_LINE>protocolMarshaller.marshall(user.get...
user.getTimeZoneId(), TIMEZONEID_BINDING);
1,220,014
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>this.getDialog().setCanceledOnTouchOutside(true);<NEW_LINE>View rootView = inflater.inflate(R.layout.dialog_fragment_contacts_call, container);<NEW_LINE>RL_contacts_call_name = (RelativeLayout) rootView.findView...
findViewById(R.id.TV_contacts_call_name);
4,597
public final void reportInputMethodSubtypes(@NonNull InputMethodManager inputMethodManager, @NonNull String imeId, @NonNull List<KeyboardAddOnAndBuilder> builders) {<NEW_LINE>List<InputMethodSubtype> subtypes = new ArrayList<>();<NEW_LINE>for (KeyboardAddOnAndBuilder builder : builders) {<NEW_LINE>Logger.d("reportInput...
), builder.getKeyboardLocale());
168,098
protected String encode(Date theValue) {<NEW_LINE>if (theValue == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>GregorianCalendar cal;<NEW_LINE>if (myTimeZoneZulu) {<NEW_LINE>cal = new GregorianCalendar(getTimeZone("GMT"));<NEW_LINE>} else if (myTimeZone != null) {<NEW_LINE>cal = new GregorianCalendar(myTimeZone);<...
) (minutesOffset / DateUtils.MILLIS_PER_MINUTE);
1,835,237
public static boolean addLinks(Spannable text, int mask, ColorStateList linkColor, ColorStateList bgColor, QMUIOnSpanClickListener l) {<NEW_LINE>if (mask == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>URLSpan[] old = text.getSpans(0, text.<MASK><NEW_LINE>for (int i = old.length - 1; i >= 0; i--) {<NEW_LINE>text.rem...
length(), URLSpan.class);
1,320,001
synchronized public int encodeIntoByteBuffer(final ByteBuffer buffer) {<NEW_LINE>final long maxValue = getMaxValue();<NEW_LINE>final int relevantLength = countsArrayIndex(maxValue) + 1;<NEW_LINE>if (buffer.capacity() < getNeededByteBufferCapacity(relevantLength)) {<NEW_LINE>throw new ArrayIndexOutOfBoundsException("buf...
buffer.putDouble(getIntegerToDoubleValueConversionRatio());
1,051,150
public List<OrderItem> readBatchOrderItems(int start, int count, List<OrderStatus> statuses) {<NEW_LINE>CriteriaBuilder builder = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<OrderItem> criteria = builder.createQuery(OrderItem.class);<NEW_LINE>Root<OrderImpl> order = criteria.from(OrderImpl.class);<NEW_LINE>Join<Ord...
= new ArrayList<String>();
1,778,455
private void add(String attributeName, ImmutableList.Builder<String> valuePath, TabularData tds) {<NEW_LINE>// @see TabularData#keySet JavaDoc:<NEW_LINE>// "Set<List<?>>" but is declared as a {@code Set<?>} for<NEW_LINE>// compatibility reasons. The returned set can be used to iterate<NEW_LINE>// over the keys."<NEW_LI...
get(key.toArray());
1,407,924
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('var') create constant variable string MYVAR = '.*abc.*';\n" + "@name('s0') select * from SupportBean(theString regexp MYVAR);\n" + "" + "@name('ctx') create context MyContext start SupportBean_S0 as s0;\n" + "@name('s1') context MyContext select...
s0 = filters.get("s0");
1,083,830
public Object evaluate(@Nullable String value, BeanExpressionContext beanExpressionContext) throws BeansException {<NEW_LINE>if (!StringUtils.hasLength(value)) {<NEW_LINE>return value;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Expression expr = this.expressionCache.get(value);<NEW_LINE>if (expr == null) {<NEW_LINE>expr = this...
throw new BeanExpressionException("Expression parsing failed", ex);
1,015,080
private void initComponents() {<NEW_LINE>Font labelEstimatedFont = new Font(Font.SANS_SERIF, Font.PLAIN, 12);<NEW_LINE>navigationButtons = new NavigationButtons(getBackend(), 1.0, (int) getBackend().getSettings().getJogFeedRate());<NEW_LINE>buttonUpdateSettingsX = new JButton(Localization.getString("platform.plugin.set...
textFieldSettingStepsZ.addKeyListener(createKeyListenerChangeSetting());
1,023,862
final BatchDeleteBuildsResult executeBatchDeleteBuilds(BatchDeleteBuildsRequest batchDeleteBuildsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDeleteBuildsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
955,071
private boolean detectPreviewDocument(Mat inputRgba) {<NEW_LINE>ArrayList<MatOfPoint> contours = findContours(inputRgba);<NEW_LINE>Quadrilateral quad = getQuadrilateral(contours, inputRgba.size());<NEW_LINE>mPreviewPoints = null;<NEW_LINE>mPreviewSize = inputRgba.size();<NEW_LINE>if (quad != null) {<NEW_LINE>Point[] re...
.size().height / 500;
547,008
private AdImageId retrieveLogoImageId(@NonNull final OrgId adOrgId) {<NEW_LINE>//<NEW_LINE>// Get Logo from Organization's BPartner<NEW_LINE>// task FRESH-356: get logo also from organization's bpartner if is set<NEW_LINE>final Properties ctx = Env.getCtx();<NEW_LINE>final I_AD_Org org = orgsRepo.getById(adOrgId);<NEW_...
getLogoId().orElse(null);