idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
228,949
// ----- package methods -----<NEW_LINE>void deserialize(final Map<String, Object> source) {<NEW_LINE>final Map<String, Object> definitions = (Map<String, Object>) source.get(JsonSchema.KEY_DEFINITIONS);<NEW_LINE>if (definitions != null) {<NEW_LINE>typeDefinitions.deserialize(definitions);<NEW_LINE>} else {<NEW_LINE>th...
Object> deprecationBroadcastData = new TreeMap();
804,691
void initialize() {<NEW_LINE>assert catColumn != null : "fx:id=\"catColumn\" was not injected: check your FXML file 'SummaryTablePane.fxml'.";<NEW_LINE>assert countColumn != null : "fx:id=\"countColumn\" was not injected: check your FXML file 'SummaryTablePane.fxml'.";<NEW_LINE>assert tableView != null : "fx:id=\"table...
tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
1,292,536
public void marshall(CachediSCSIVolume cachediSCSIVolume, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (cachediSCSIVolume == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(cachediSCSIVolume.getVolumeARN(),...
cachediSCSIVolume.getVolumeSizeInBytes(), VOLUMESIZEINBYTES_BINDING);
634,482
public boolean configure(final FeatureContext context) {<NEW_LINE>final Configuration config = context.getConfiguration();<NEW_LINE>final String jsonFeature = CommonProperties.getValue(config.getProperties(), config.getRuntimeType(), InternalProperties.JSON_FEATURE, JSON_FEATURE, String.class);<NEW_LINE>// Other JSON p...
MessageBodyReader.class, MessageBodyWriter.class);
1,125,795
private void followReferences(ShadowBuilder currentNode, JsonObject jsonElement) {<NEW_LINE>CdoSnapshot cdoSnapshot = currentNode.getCdoSnapshot();<NEW_LINE>cdoSnapshot.getManagedType().forEachProperty(property -> {<NEW_LINE>if (cdoSnapshot.isNull(property)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (property.getType()...
containerWithRefs = cdoSnapshot.getPropertyValue(property);
242,944
private void storeEntries(List<CountingMemoryCacheInspector.DumpInfoEntry<CacheKey, CloseableImage>> entries, int i, PrintStream writer, File directory) throws IOException {<NEW_LINE>String filename;<NEW_LINE>for (CountingMemoryCacheInspector.DumpInfoEntry<CacheKey, CloseableImage> entry : entries) {<NEW_LINE>Closeable...
, closeableImage, entry.key));
1,276,065
protected void encodeMarkup(FacesContext context, SelectCheckboxMenu menu) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String clientId = menu.getClientId(context);<NEW_LINE>List<SelectItem> selectItems = getSelectItems(context, menu);<NEW_LINE>boolean valid = menu.isValid...
String title = menu.getTitle();
910,808
private void appendStreamToFile(File fileToWriteTo, InputStream sourceFileInputStream) throws IOException {<NEW_LINE>FileState <MASK><NEW_LINE>BufferedOutputStream bos = null;<NEW_LINE>try (InputStream inputStream = sourceFileInputStream) {<NEW_LINE>bos = state != null ? state.stream : createOutputStream(fileToWriteTo,...
state = getFileState(fileToWriteTo, false);
1,278,573
public IStatus runInBackground(IPath workingDirectory, Map<String, String> environment, String input, boolean redirect, List<String> arguments) {<NEW_LINE>File outFile = null, errFile = null;<NEW_LINE>try {<NEW_LINE>if (redirect) {<NEW_LINE>// $NON-NLS-1$ //$NON-NLS-2$<NEW_LINE>outFile = File.createTempFile("studio", "...
"2>", errFile.getAbsolutePath());
1,075,408
public static void validateIndexOrAliasName(String index, BiFunction<String, String, ? extends RuntimeException> exceptionCtor) {<NEW_LINE>if (!Strings.validFileName(index)) {<NEW_LINE>throw exceptionCtor.apply(index, "must not contain the following characters " + Strings.INVALID_FILENAME_CHARS);<NEW_LINE>}<NEW_LINE>if...
throw new OpenSearchException("Unable to determine length of index name", e);
311,483
public SerializeMap newSerializeSession() {<NEW_LINE>final Set<ClassLoader> candidates = new LinkedHashSet<>();<NEW_LINE>final Set<URL> classPath = new LinkedHashSet<>();<NEW_LINE>final Map<ClassLoader, Short> classLoaderIds = new HashMap<>();<NEW_LINE>final Map<Short, ClassLoaderDetails> classLoaderDetails = new HashM...
id = classLoaderIds.get(classLoader);
1,556,236
public Version parse(String text) {<NEW_LINE>Assert.notNull(text, "Text must not be null");<NEW_LINE>Matcher matcher = VERSION_REGEX.matcher(text.trim());<NEW_LINE>if (!matcher.matches()) {<NEW_LINE>throw new InvalidVersionException("Could not determine version based on '" + text + "': version format " + "is Major.Mino...
: Integer.parseInt(minor));
56,300
public ApiResponse<BackupClients> backupGetBackupClientsWithHttpInfo() throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/v4/backup/clients";<NEW_LINE>// query params<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<N...
localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
1,177,153
private void registerAttributeHandlers(final ReadManager reader) {<NEW_LINE>final IAttributeHandler vShiftHandler = new IAttributeHandler() {<NEW_LINE><NEW_LINE>public void setAttribute(final Object userObject, final String value) {<NEW_LINE>final NodeModel node = (NodeModel) userObject;<NEW_LINE>LocationModel.createLo...
NodeBuilder.XML_NODE, "VGAP", vgapHandler);
907,822
public static INDArray reshape4dTo2d(INDArray in, CNN2DFormat format, LayerWorkspaceMgr workspaceMgr, ArrayType type) {<NEW_LINE>if (in.rank() != 4)<NEW_LINE>throw new IllegalArgumentException("Invalid input: expect NDArray with rank 4, got rank " + in.rank() + " with shape " + Arrays.toString(in.shape()));<NEW_LINE>va...
], shape[3]));
1,542,888
private void continueProtocolFlowToClient(State state) {<NEW_LINE>TlsAction clientHelloAction = state.getWorkflowTrace().getTlsActions().get(0);<NEW_LINE>WorkflowTrace trace = new WorkflowConfigurationFactory(state.getConfig()).createWorkflowTrace(WorkflowTraceType.HANDSHAKE, RunningModeType.SERVER);<NEW_LINE>// Remove...
createWorkflowExecutor(WorkflowExecutorType.DEFAULT, state);
1,690,948
public static List<SqlPartitionValueItem> buildPartitionExprByString(String partExpr) {<NEW_LINE>List<SQLExpr> exprList = new ArrayList<>();<NEW_LINE>List<SqlPartitionValueItem> partExprSqlNodeList = new ArrayList<>();<NEW_LINE>MySqlExprParser parser = new MySqlExprParser(ByteString.from(partExpr));<NEW_LINE>Lexer lexe...
ContextParameters context = new ContextParameters(false);
1,406,551
Optional<ExecutableElement> findSetterMethodFor(Element field) {<NEW_LINE>String name = field.getSimpleName().toString();<NEW_LINE>if (field.asType().getKind() == TypeKind.BOOLEAN && name.length() > 2 && Character.isUpperCase(name.charAt(2))) {<NEW_LINE>name = name.replaceFirst("^(is)(.+)", "$2");<NEW_LINE>}<NEW_LINE>/...
> modifiers = method.getModifiers();
77,904
public void append(IRegion... region) {<NEW_LINE>for (IRegion r : region) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>Assert.isLegal(r.getLength() >= 0, "Negative region length");<NEW_LINE>if (r.getLength() == 0) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>boolean hasOverlaps;<NEW_LINE>do {<NEW_LINE>hasOverlaps = false;<NEW_LINE>I...
r = merge(left, r);
947,944
public int performStreamDecode(Transport transport, int max_bytes) throws IOException {<NEW_LINE>protocol_bytes_last_read = 0;<NEW_LINE>data_bytes_last_read = 0;<NEW_LINE>long total_read = 0;<NEW_LINE>while (total_read < max_bytes) {<NEW_LINE>long bytes_read;<NEW_LINE>int read_lim = (int) (max_bytes - total_read);<NEW_...
).getAddress() + ")");
1,795,586
private JComponent createButtonPanel() {<NEW_LINE>JPanel fileChooserPanel = new JPanel(new GridLayout(1, 0));<NEW_LINE>fileChooserPanel.setBorder(new TitledBorder("Actions"));<NEW_LINE>fileChooser = new JFileChooser();<NEW_LINE>final JButton chooseFileButton = new JButton("Open...");<NEW_LINE>chooseFileButton.addAction...
fileChooser.showOpenDialog(ConstantQAudioPlayer.this);
742,208
private static byte[] buildHeader(byte[] src) {<NEW_LINE>byte[] result = null;<NEW_LINE>final long length = src.length;<NEW_LINE>if (length < 251) {<NEW_LINE>result = new byte[1];<NEW_LINE>result[0] = (byte) length;<NEW_LINE>} else if (length < 0x10000L) {<NEW_LINE>result = new byte[3];<NEW_LINE>result[0] = (byte) 252;...
) (length >>> 16);
1,614,218
private void updateViewFaceShape() {<NEW_LINE>float faceShape = <MASK><NEW_LINE>mBoxIntensityChin.setVisibility(faceShape != 4 ? GONE : VISIBLE);<NEW_LINE>mBoxIntensityForehead.setVisibility(faceShape != 4 ? GONE : VISIBLE);<NEW_LINE>mBoxIntensityNose.setVisibility(faceShape != 4 ? GONE : VISIBLE);<NEW_LINE>mBoxIntensi...
getValue(R.id.beauty_box_face_shape);
1,499,254
public void refresh(boolean force) {<NEW_LINE>if (drawCanvas == null || drawCanvas.isDisposed())<NEW_LINE>return;<NEW_LINE>Rectangle bounds = drawCanvas.getClientArea();<NEW_LINE>if (bounds.height < 30 || bounds.width < 100 || bounds.width > 10000 || bounds.height > 10000)<NEW_LINE>return;<NEW_LINE>// inflate # of valu...
bounds.width, bounds.height);
712,823
private void handleLocally(HttpActionHandler actionHandler, HttpObjectCallback httpObjectCallback, HttpRequest request, ResponseWriter responseWriter, boolean synchronous, String clientId) {<NEW_LINE>if (MockServerLogger.isEnabled(TRACE)) {<NEW_LINE>mockServerLogger.logEvent(new LogEntry().setLogLevel(TRACE).setHttpReq...
(clientId).handle(request);
319,413
public static VersionInfoExResponse responseVersionEx(String branch, String version) {<NEW_LINE>if (lastModified < walletVersionsSource.lastModified()) {<NEW_LINE>lastModified = walletVersionsSource.lastModified();<NEW_LINE>readVersions();<NEW_LINE>}<NEW_LINE>WalletVersion clientVersion = WalletVersion.from(version);<N...
walletVersions = latestVersionsEx.get(branch);
1,717,347
public void voidIt(final DocumentTableFields docFields) {<NEW_LINE>final I_C_BankStatement bankStatement = extractBankStatement(docFields);<NEW_LINE>final DocStatus docStatus = DocStatus.ofNullableCodeOrUnknown(bankStatement.getDocStatus());<NEW_LINE>if (docStatus.isClosedReversedOrVoided()) {<NEW_LINE>throw new Adempi...
bankStatement.setStatementDifference(BigDecimal.ZERO);
849,464
public void runSafety() {<NEW_LINE>// PackageManagerInternal mPackageManagerInt;<NEW_LINE>// https://github.com/LineageOS/android_frameworks_base/blob/lineage-17.1/services/core/java/com/android/server/am/ActivityManagerService.java<NEW_LINE>Object mPackageManagerInt = XposedHelpersExt.callMethodWithPreferredNames(ams,...
[] { "getPackageManagerInternal", "getPackageManagerInternalLocked" });
1,008,086
protected IToken mapToken(Symbol symbol, Symbol symbolStart, boolean returnDefaultContentType) {<NEW_LINE>switch(((JSTokenTypeSymbol) symbol).token) {<NEW_LINE>case SDOC:<NEW_LINE>return returnToken(symbol, symbolStart, returnDefaultContentType, symbol.getEnd() - symbol.getStart() + 1, JS_DOC_TOKEN);<NEW_LINE>case STRI...
getStart() + 1, REGEXP_TOKEN);
371,934
public static IMantisStageMetadata convertMantisStageMetadataWriteableToMantisStageMetadata(MantisStageMetadata stageMeta, LifecycleEventPublisher eventPublisher, boolean skipAddingWorkerMetaData) {<NEW_LINE>if (logger.isTraceEnabled()) {<NEW_LINE>logger.trace("DataFormatAdapter:converting stage {}, skipadding workers ...
fromId(stageMeta.getJobId());
695,735
public void drawSeries(Canvas canvas, Paint paint, List<Float> points, XYSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, int startIndex) {<NEW_LINE>int seriesNr = mDataset.getSeriesCount();<NEW_LINE>int length = points.size();<NEW_LINE>paint.setColor(seriesRenderer.getColor());<NEW_LINE>paint.setStyle...
setColor(seriesRenderer.getColor());
533,331
private void printPostInstallStepsRedHat(File serviceFile) {<NEW_LINE>System.out.println(INTENSITY_BOLD + "RedHat/Fedora/CentOS Linux system detected (SystemV):" + INTENSITY_NORMAL);<NEW_LINE>System.out.println(" To install the service:");<NEW_LINE>System.out.println(" $ ln -s " + serviceFile.getPath() + " /etc/ini...
serviceFile.getName() + " --del");
1,168,392
private SecureStoreConfig handleVault(Node vaultRoot) {<NEW_LINE>String address = null;<NEW_LINE>String secretPath = null;<NEW_LINE>String token = null;<NEW_LINE>SSLConfig sslConfig = null;<NEW_LINE>int pollingInterval = VaultSecureStoreConfig.DEFAULT_POLLING_INTERVAL;<NEW_LINE>for (Node n : childElements(vaultRoot)) {...
(sslConfig).setPollingInterval(pollingInterval);
1,764,689
public long writeEvent(byte[] eventArray) throws IOException {<NEW_LINE>lastWrite = Instant.now();<NEW_LINE>ByteBuffer <MASK><NEW_LINE>RecordType nextType = null;<NEW_LINE>ByteBuffer slice = eventBuffer.slice();<NEW_LINE>long startPosition = channel.position();<NEW_LINE>while (slice.hasRemaining()) {<NEW_LINE>if (posIn...
eventBuffer = ByteBuffer.wrap(eventArray);
31,713
// deleteLanguageById.<NEW_LINE>private void dbUpsert(final Language language) throws DotDataException {<NEW_LINE>if (language.getId() == 0) {<NEW_LINE>language.setId(APILocator.getDeterministicIdentifierAPI().generateDeterministicIdBestEffort(language));<NEW_LINE>}<NEW_LINE>Language tester = <MASK><NEW_LINE>if (tester...
getLanguage(language.getId());
1,209,930
public static GetNotificationConfigResponse unmarshall(GetNotificationConfigResponse getNotificationConfigResponse, UnmarshallerContext context) {<NEW_LINE>getNotificationConfigResponse.setRequestId(context.stringValue("GetNotificationConfigResponse.RequestId"));<NEW_LINE>getNotificationConfigResponse.setSuccess(contex...
(context.stringValue("GetNotificationConfigResponse.Topic"));
1,171,599
private void removeConfigInfoByIdsAtomic(final String ids) {<NEW_LINE>if (StringUtils.isBlank(ids)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StringBuilder sql = new StringBuilder(SQL_DELETE_CONFIG_INFO_BY_IDS);<NEW_LINE>sql.append("id in (");<NEW_LINE>List<Long> paramList = new ArrayList<>();<NEW_LINE>String[] tagArr = i...
valueOf(tagArr[i]));
518,832
public static void writeScoresFile(final Map<Integer, PSPathogenTaxonScore> scores, final PSTree tree, final String filePath) {<NEW_LINE>final String header = "tax_id\ttaxonomy\ttype\tname\t" + PSPathogenTaxonScore.outputHeader;<NEW_LINE>try (final PrintStream printStream = new PrintStream(BucketUtils.createFile(filePa...
(filePath, new IOException());
1,175,364
public void process(CodeGenContext context) throws Exception {<NEW_LINE>JavaCodeGenContext ctx = (JavaCodeGenContext) context;<NEW_LINE>int projectId = ctx.getProjectId();<NEW_LINE>File dir = new File(String.format("%s/%s/java", ctx.getGeneratePath(), projectId));<NEW_LINE>VelocityContext vltCcontext = GenUtils.buildDe...
"host", ctx.getContextHost());
1,632,434
public MHRProcess reverseIt(boolean isAccrual) {<NEW_LINE>Timestamp currentDate = new Timestamp(System.currentTimeMillis());<NEW_LINE>Optional<Timestamp> loginDateOptional = Optional.of(Env.getContextAsDate(getCtx(), "#Date"));<NEW_LINE>Timestamp reversalDate = isAccrual ? loginDateOptional.orElseGet(() -> currentDate)...
getAD_Org_ID(), get_TrxName());
7,315
static ChaiProvider openProxyChaiProvider(final ChaiProviderFactory chaiProviderFactory, final SessionLabel sessionLabel, final LdapProfile ldapProfile, final DomainConfig config, final StatisticsService statisticsManager) throws PwmUnrecoverableException {<NEW_LINE>LOGGER.trace(sessionLabel, () -> "opening new ldap pr...
ldapProfile.readSettingAsString(PwmSetting.LDAP_PROXY_USER_DN);
395,005
private static void trySendContextCountSimple(RegressionEnvironment env, int numThreads, int numRepeats) {<NEW_LINE>SupportMTUpdateListener listener = new SupportMTUpdateListener();<NEW_LINE>env.statement("select").addListener(listener);<NEW_LINE>List<Object>[<MASK><NEW_LINE>for (int t = 0; t < numThreads; t++) {<NEW_L...
] eventsPerThread = new ArrayList[numThreads];
1,810,515
private static void basicInfo(List<String> textRecord, Person person, long endTime) {<NEW_LINE>String name = (String) person.attributes.get(Person.NAME);<NEW_LINE>textRecord.add(name);<NEW_LINE>// "underline" the characters in the name<NEW_LINE>textRecord.add(name<MASK><NEW_LINE>String race = (String) person.attributes...
.replaceAll("[A-Za-z0-9 ]", "="));
132,080
public void showHomeFollowingArticles(final RequestContext context) {<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final JSONObject user = (JSONObject) context.attr(User.USER);<NEW_LINE>final AbstractFreeMarkerRenderer renderer = new SkinRenderer(context, "home/following-articles.ftl");<NEW_LINE>fina...
dataModel.get(Common.IS_LOGGED_IN);
93,647
protected static void canonicaliseStarts(ComplexFieldLocator fl, List<FieldRef> fieldRefs) throws Docx4JException {<NEW_LINE>for (P p : fl.getStarts()) {<NEW_LINE>int index;<NEW_LINE>if (p.getParent() instanceof ContentAccessor) {<NEW_LINE>// 2.8.1<NEW_LINE>index = ((ContentAccessor) p.getParent()).getContent().indexOf...
).set(index, newP);
106,311
private void pushToSliceQueue(MonitorDataFrame mdf, boolean needConcurrent) {<NEW_LINE><MASK><NEW_LINE>if (now - mdf.getTimeFlag() > DROP_TIMEOUT) {<NEW_LINE>if (log.isDebugEnable()) {<NEW_LINE>log.debug(this, "MDF too late, drop it: " + mdf.toJSONString());<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// step 1: st...
long now = System.currentTimeMillis();
1,723,638
public void apply(IntrinsicContext context, InvocationExpr invocation) {<NEW_LINE>switch(invocation.getMethod().getName()) {<NEW_LINE>case "fillZero":<NEW_LINE>context.includes().addInclude("<string.h>");<NEW_LINE>context.writer().print("memset(");<NEW_LINE>context.emit(invocation.getArguments<MASK><NEW_LINE>context.wr...
().get(0));
1,789,424
final GetRecoveryGroupReadinessSummaryResult executeGetRecoveryGroupReadinessSummary(GetRecoveryGroupReadinessSummaryRequest getRecoveryGroupReadinessSummaryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRecoveryGroupReadinessSummaryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
endClientExecution(awsRequestMetrics, request, response);
1,325,611
private static void executeBatches(List<BatchInterface> batches) throws IOException {<NEW_LINE>ExecutorService executor = MoreExecutors.listeningDecorator(new ThreadPoolExecutor(MAX_CONCURRENT_BATCHES, MAX_CONCURRENT_BATCHES, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>()));<NEW_LINE>List<CompletionStage<Void>>...
futures = new ArrayList<>();
1,573,364
public static Map<String, String> readConfig(Path data) throws IOException {<NEW_LINE>File conf_dir = new File("conf");<NEW_LINE>Properties prop = new Properties();<NEW_LINE>prop.load(new FileInputStream(new File(conf_dir, "config.properties")));<NEW_LINE>Map<String, String> config = new HashMap<>();<NEW_LINE>for (Map....
load(new FileInputStream(customized_config));
1,638,469
public void openTorrent(String fileName, String save_path) {<NEW_LINE>String uc_filename = fileName.toUpperCase(Locale.US);<NEW_LINE>boolean is_remote = uc_filename.startsWith("HTTP://") || uc_filename.startsWith("HTTPS://") || uc_filename.startsWith("MAGNET:");<NEW_LINE>if (console != null) {<NEW_LINE>// System.out.pr...
console.downloadRemoteTorrent(fileName, save_path);
727,608
public ImageConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ImageConfiguration imageConfiguration = new ImageConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
JsonToken token = context.getCurrentToken();
582,964
public void onEnable() {<NEW_LINE>PlanVelocityComponent component = DaggerPlanVelocityComponent.builder().plan(this).abstractionLayer(abstractionLayer).build();<NEW_LINE>try {<NEW_LINE>system = component.system();<NEW_LINE>locale = system.getLocaleSystem().getLocale();<NEW_LINE>system.enable();<NEW_LINE>int pluginId = ...
().callEnableEvent(this));
1,802,359
public void execute() {<NEW_LINE>String selection = editor_.getSelectionValue();<NEW_LINE>// modify prefix based on prefs<NEW_LINE>String insertPrefix = prefix;<NEW_LINE>if (isSectionCommand && prefs_.insertNumberedLatexSections().getValue()) {<NEW_LINE>insertPrefix = <MASK><NEW_LINE>}<NEW_LINE>editor_.insertCode(inser...
insertPrefix.replace("*", "");
491,087
private StructuredGraph transplantGraph(DebugContext debug, HostedMethod hMethod, CompileReason reason) {<NEW_LINE>AnalysisMethod aMethod = hMethod.getWrapped();<NEW_LINE>StructuredGraph aGraph = aMethod.getAnalyzedGraph();<NEW_LINE>if (aGraph == null) {<NEW_LINE>throw VMError.shouldNotReachHere("Method not parsed duri...
).get(node, i);
1,471,065
private void createShipmentLineHUAssignments(final I_M_InOutLine shipmentLine) {<NEW_LINE>// Assign Handling Units to shipment line<NEW_LINE>boolean haveHUAssigments = false;<NEW_LINE>for (final HUTopLevel huToAssign : husToAssign) {<NEW_LINE>// transfer packing materials only if this TU was not already assigned to oth...
"\n @M_InOutLine_ID@: " + shipmentLine + "\n @M_HU_ID@: " + husToAssign);
252,662
static void logCert(String alias, X509Certificate x509Cert) {<NEW_LINE>X500Principal subj = x509Cert.getSubjectX500Principal();<NEW_LINE><MASK><NEW_LINE>Date now = new Date();<NEW_LINE>String label = alias != null ? (alias + ": ") : "";<NEW_LINE>if (now.compareTo(x509Cert.getNotAfter()) > 0) {<NEW_LINE>Msg.warn(Applica...
X500Principal issuer = x509Cert.getIssuerX500Principal();
1,571,740
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>icon = new javax.swing.JLabel();<NEW_LINE>problemDescription = new javax.swing.JTextPane();<NEW_LINE>showDetails = new java...
setAccessibleName(showDetails.getText());
1,413,991
private final TLCState processUnchangedImplTuple(final Action action, ActionItemList acts, Context c, TLCState s0, TLCState s1, INextStateFunctor nss, ExprOrOpArgNode[] args, int alen, CostModel cm, CostModel cmNested) {<NEW_LINE>// a tuple:<NEW_LINE>if (alen != 0) {<NEW_LINE>ActionItemList acts1 = acts;<NEW_LINE>for (...
s0, s1, nss, cm);
323,107
public static int cliInstaller(boolean uninstall, List<String> rawArgs) {<NEW_LINE>CmdReader<CmdArgs> reader = CmdReader.of(CmdArgs.class);<NEW_LINE>CmdArgs args;<NEW_LINE>try {<NEW_LINE>args = reader.make(rawArgs.toArray(new String[0]));<NEW_LINE>} catch (InvalidCommandLineException e) {<NEW_LINE>System.err.println(e....
+ rawPath, null, null));
1,169,019
private void fireChange(final TwoWayEvent<DM, UMD, DMD> e) {<NEW_LINE>final List<TwoWayListener<DM, UMD, DMD>> ls;<NEW_LINE>synchronized (listeners) {<NEW_LINE>if (listeners.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ls = new ArrayList<TwoWayListener<DM, UMD, DMD>>(listeners);<NEW_LINE>}<NEW_LINE>lock.read(new R...
, UMD, DMD>) e);
857,781
void readAllowedClockSkew(ModelNode addIdentityProvider, XMLExtendedStreamReader reader) throws XMLStreamException {<NEW_LINE>ModelNode allowedClockSkew = addIdentityProvider.get(Constants.Model.ALLOWED_CLOCK_SKEW);<NEW_LINE>for (int i = 0; i < reader.getAttributeCount(); i++) {<NEW_LINE>String name = reader.getAttribu...
parseAndSetParameter(value, allowedClockSkew, reader);
582,302
private static ActionGroup createTreePopupActions(final boolean isRightTree, final Tree tree) {<NEW_LINE>DefaultActionGroup group = new DefaultActionGroup();<NEW_LINE>final TreeExpander treeExpander = new TreeExpander() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void expandAll() {<NEW_LINE>TreeUtil.expandAll(tree);...
CommonActionsManager actionManager = CommonActionsManager.getInstance();
334,157
public Request<ListGroupsRequest> marshall(ListGroupsRequest listGroupsRequest) {<NEW_LINE>if (listGroupsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListGroupsRequest)");<NEW_LINE>}<NEW_LINE>Request<ListGroupsRequest> request = new DefaultRequest<ListGroupsRequest>(l...
request.addHeader("Content-Type", "application/x-amz-json-1.1");
1,452,948
public void run() {<NEW_LINE>// ============================================================<NEW_LINE>// Deploy to app 1 through zip deploy<NEW_LINE>System.out.println("Deploying coffeeshop.war to " + appName + " through web deploy...");<NEW_LINE>app.deploy().withPackageUri("https://raw.githubusercontent.com/Azure/azur...
withExistingDeploymentsDeleted(false).execute();
1,139,896
protected Widget createMainWidget() {<NEW_LINE>VerticalPanel panel = new VerticalPanel();<NEW_LINE>HorizontalPanel horizontalPanel = new HorizontalPanel();<NEW_LINE>horizontalPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);<NEW_LINE>// add image<NEW_LINE>MessageDialogImages images = MessageDialogImages.INSTA...
MultiLineLabel(constants_.noParametersDefinedForCurrentRMarkdown());
930,290
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject(Fields.SEGMENTS);<NEW_LINE>builder.field(Fields.COUNT, count);<NEW_LINE>builder.humanReadableField(Fields.MEMORY_IN_BYTES, Fields.MEMORY, getMemory());<NEW_LINE>builder.humanReadableField(Fields.T...
Fields.VERSION_MAP_MEMORY, getVersionMapMemory());
801,410
public io.kubernetes.client.proto.V1.PodExecOptions buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1.PodExecOptions result = new io.kubernetes.client.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>to_bitFie...
proto.V1.PodExecOptions(this);
1,081,496
protected void findObjectsByMask(@NotNull GenericExecutionContext executionContext, @NotNull JDBCSession session, @NotNull DBSObjectType objectType, @NotNull ObjectsSearchParams params, @NotNull List<DBSObjectReference> references) throws DBException, SQLException {<NEW_LINE>DBSObject parentObject = params.getParentObj...
params.getMaxResults(), references);
869,774
private void processLine(String line) {<NEW_LINE>switch(state) {<NEW_LINE>case BEFORE:<NEW_LINE>Matcher <MASK><NEW_LINE>if (matcher.matches()) {<NEW_LINE>section = matcher.group(1);<NEW_LINE>exampleNumber = 0;<NEW_LINE>}<NEW_LINE>if (line.startsWith(EXAMPLE_START_MARKER)) {<NEW_LINE>info = line.substring(EXAMPLE_START_...
matcher = SECTION_PATTERN.matcher(line);
1,543,695
public AccessToken fetchAccessToken() {<NEW_LINE>HttpHeaders tokenHeaders = new HttpHeaders();<NEW_LINE>tokenHeaders.setContentType(MediaType.APPLICATION_FORM_URLENCODED);<NEW_LINE>MultiValueMap<String, String> tokenRequestBody = new LinkedMultiValueMap<>();<NEW_LINE>tokenRequestBody.add("username", getAuthenticationUs...
tokenRequestBody.add("grant_type", "password");
801,620
protected void paintComponent(Graphics g) {<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);<NEW_LINE>int x = 0;<NEW_LINE>if (parentArrowVisible) {<NEW_LINE>g2.setColor(ARROW_COLOR);<NEW_LINE>g2.drawLine(x + 1, 0, x + 5, getHeight...
fadeX + fadeLength, 0, bgColor);
74,337
public static DescribePriceResponse unmarshall(DescribePriceResponse describePriceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePriceResponse.setRequestId(_ctx.stringValue("DescribePriceResponse.RequestId"));<NEW_LINE>describePriceResponse.setOrderParams(_ctx.stringValue("DescribePriceResponse.OrderParams"));<...
(_ctx.stringValue("DescribePriceResponse.Order.DiscountAmount"));
482,320
// Kick off the analytics logic.<NEW_LINE>private void startAnalytics() {<NEW_LINE>Activity activity = getActivity();<NEW_LINE>if (activity == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SharedPreferences prefs = activity.getSharedPreferences("WGMaplyPrefs", Context.MODE_PRIVATE);<NEW_LINE>// USER ID is a random strin...
editor.putLong("wgmaplyanalytictime2", now);
1,176,278
public void draw(Canvas canvas) {<NEW_LINE>super.draw(canvas);<NEW_LINE>Rect r = getBounds();<NEW_LINE>// draw border<NEW_LINE>if (borderThickness > 0) {<NEW_LINE>drawBorder(canvas);<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (bitmap == null) {<NEW_LINE>canvas.translate(r.left, r.top);<NEW_LINE>}<NEW_LINE>// draw text<NEW_...
int count = canvas.save();
977,373
public void applyProperties(Object arg) {<NEW_LINE>if (!(arg instanceof HashMap)) {<NEW_LINE>Log.w(TAG, "Cannot apply properties: invalid type for properties", Log.DEBUG_MODE);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HashMap props = (HashMap) arg;<NEW_LINE>if (modelListener == null) {<NEW_LINE>for (Object name : props.key...
value = props.get(key);
1,171,166
final ListTargetedSentimentDetectionJobsResult executeListTargetedSentimentDetectionJobs(ListTargetedSentimentDetectionJobsRequest listTargetedSentimentDetectionJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTargetedSentimentDetectionJobsRequest);<NEW_LINE>AWSRequestMetrics awsRe...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
657,005
public Response intercept(Chain chain) throws IOException {<NEW_LINE>Request request = chain.request();<NEW_LINE>if (RealmLog.getLevel() <= LogLevel.DEBUG) {<NEW_LINE>StringBuilder sb = new <MASK><NEW_LINE>sb.append(' ');<NEW_LINE>sb.append(request.url());<NEW_LINE>sb.append('\n');<NEW_LINE>sb.append(request.headers())...
StringBuilder(request.method());
954,712
private void assertDuplicate(RegressionEnvironment env, boolean withCache) {<NEW_LINE>CompilerPathCache cache = CompilerPathCache.getInstance();<NEW_LINE>List<EPCompiled> pathOne = new ArrayList<>();<NEW_LINE>compileAdd(env, cache, pathOne, new SupportModuleLoadDetector(), "@public create schema A()");<NEW_LINE>List<EP...
getPath().addAll(pathOne);
786,501
public boolean isSuperSetOf(BitKey bitKey) {<NEW_LINE>if (bitKey instanceof BitKey.Small) {<NEW_LINE>BitKey.Small other = (BitKey.Small) bitKey;<NEW_LINE>return ((this.bits | other.bits) == this.bits);<NEW_LINE>} else if (bitKey instanceof BitKey.Mid128) {<NEW_LINE>BitKey.Mid128 other = (BitKey.Mid128) bitKey;<NEW_LINE...
&& (other.bits1 == 0);
849,349
public static boolean deleteFile(@NonNull final File file, Context context) {<NEW_LINE>// First try the normal deletion.<NEW_LINE>if (file == null)<NEW_LINE>return true;<NEW_LINE>boolean fileDelete = false;<NEW_LINE>if (file.isDirectory()) {<NEW_LINE>fileDelete = rmdir(file, context);<NEW_LINE>}<NEW_LINE>if (file.delet...
file.getAbsolutePath(), context);
2,580
private void init() throws InitialComponentCatalogException {<NEW_LINE>componentName2Id = new HashMap<>();<NEW_LINE>componentName2Id.put("N/A", 0);<NEW_LINE>componentId2Name = new HashMap<>();<NEW_LINE>componentId2Name.put(0, "N/A");<NEW_LINE>componentId2ServerId = new HashMap<>();<NEW_LINE>Map<String, String> nameMapp...
Integer) settings.get("id");
1,191,157
final DescribeImageAttributeResult executeDescribeImageAttribute(DescribeImageAttributeRequest describeImageAttributeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeImageAttributeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
endClientExecution(awsRequestMetrics, request, response);
898,960
/*<NEW_LINE>private String _findSecondary(int origOffset, int q1) {<NEW_LINE>// tertiary area division is dynamic. First; its size is N/4 compared to<NEW_LINE>// primary hash size; and offsets are for 4 int slots. So to get to logical<NEW_LINE>// index would shift by 4. But! Tertiary area is further split into buckets,...
return _names[offset >> 2];
1,778,276
public ResponseOperateOrchestrator convertWorkflow(RequestConvertOrchestrations requestConversionWorkflow) throws DSSErrorException {<NEW_LINE>// TODO try to optimize it by select db in batch.<NEW_LINE>List<DSSOrchestration> flows = requestConversionWorkflow.getOrcAppIds().stream().map(flowService::getFlowWithJsonAndSu...
getDSSToRelConversionService(schedulerInstance).getDSSToRelConversionOperation();
1,209,118
public void startElement(XMLElement element, Attributes attributes) {<NEW_LINE>CacheMapping descriptor = getDescriptor();<NEW_LINE>if (element.getQName().equals(RuntimeTagNames.TIMEOUT)) {<NEW_LINE>for (int i = 0; i < attributes.getLength(); i++) {<NEW_LINE>if (RuntimeTagNames.NAME.equals(attributes.getQName(i))) {<NEW...
, attributes.getValue(i));
754,375
void doDelete(Tokenizer st) throws IOException {<NEW_LINE>Tokenizer.Token token;<NEW_LINE>String s;<NEW_LINE>Name name;<NEW_LINE>Record record;<NEW_LINE>int type;<NEW_LINE><MASK><NEW_LINE>token = st.get();<NEW_LINE>if (token.isString()) {<NEW_LINE>s = token.value;<NEW_LINE>if (DClass.value(s) >= 0) {<NEW_LINE>s = st.ge...
name = st.getName(zone);
1,666,606
public Result isProject(FileObject projectDirectory) {<NEW_LINE>assert projectDirectory != null;<NEW_LINE>String displayName = null;<NEW_LINE>String fileName = null;<NEW_LINE>for (String jsonFile : JSON_FILES) {<NEW_LINE>FileObject file = projectDirectory.getFileObject(jsonFile);<NEW_LINE>if (file == null) {<NEW_LINE>c...
, projectDirectory.getNameExt() });
1,676,970
public void prepareData(CodeGenContext context) throws Exception {<NEW_LINE>List<String> exceptions = new ArrayList<>();<NEW_LINE>CSharpCodeGenContext ctx = (CSharpCodeGenContext) context;<NEW_LINE>try {<NEW_LINE>LoggerManager.getInstance().info(String.format("Begin to prepare csharp table data for project %s", ctx.get...
getInstance().error(e);
658,927
public GetIpamResourceCidrsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>GetIpamResourceCidrsResult getIpamResourceCidrsResult = new GetIpamResourceCidrsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.i...
new ArrayList<IpamResourceCidr>());
1,591,546
public AttributeValue decode(InputStream inStream) throws IOException {<NEW_LINE>AttributeValue attrValue = new AttributeValue();<NEW_LINE>String type = StringUtf8Coder.of().decode(inStream);<NEW_LINE>AttributeValueType attrType = AttributeValueType.valueOf(type);<NEW_LINE>switch(attrType) {<NEW_LINE>case s:<NEW_LINE>a...
(MAP_ATTRIBUTE_CODER.decode(inStream));
824,360
/* (non-Javadoc)<NEW_LINE>* @see org.lamport.tla.toolbox.tool.tlc.output.IProcessOutputSink#appendText(java.lang.String)<NEW_LINE>*/<NEW_LINE>public synchronized void appendText(final String text) {<NEW_LINE>try {<NEW_LINE>ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {<NEW_LINE><NEW_LINE>public void run(...
model.getName(), e);
378,438
private void initialize(CompareConfiguration configuration) {<NEW_LINE>Control tree = getControl();<NEW_LINE>INavigatable nav = new INavigatable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean selectChange(int flag) {<NEW_LINE>if (flag == INavigatable.FIRST_CHANGE) {<NEW_LINE>setSelection(StructuredSelection.E...
add(new Separator("merge"));
1,151,696
public ChunkUploadResponse uploadFileAsMultipartPublic1(String accessKey, String uploadId, File file, String contentRange, String xSdsDateFormat) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'accessKey' is set<NEW_LINE>if (accessKey == null) {<NEW_LINE>throw n...
localVarFormParams.put("file", file);
1,375,677
public int literalIndex(long key) {<NEW_LINE>// Retrieve the index from the cache<NEW_LINE>// The long constant takes two indexes into the constant pool, but we only store<NEW_LINE>// the first index into the long table<NEW_LINE>int index;<NEW_LINE>// lazy initialization for base type caches<NEW_LINE>// If it is null, ...
) (key >>> 16);
772,948
public default DoubleFunction1D derivative(FiniteDifferenceType differenceType, double eps) {<NEW_LINE>ArgChecker.notNull(differenceType, "difference type");<NEW_LINE>switch(differenceType) {<NEW_LINE>case CENTRAL:<NEW_LINE>return new DoubleFunction1D() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public double applyAsDoubl...
throw new IllegalArgumentException("Unhandled FiniteDifferenceType " + differenceType);
1,299,115
public String GetCurrentProgramName() {<NEW_LINE>String functionName = "GetCurrentProgramName";<NEW_LINE>if (!checkBluetooth(functionName)) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>byte[] command = new byte[2];<NEW_LINE>// Direct command telegram, response required<NEW_LINE>command<MASK><NEW_LINE>// GETCURRRENTPROGRAM...
[0] = (byte) 0x00;
541,330
final private BitVector makeClassTypeMask(SootClass clazz) {<NEW_LINE>{<NEW_LINE>BitVector cachedMask = typeMask.get(clazz.getType());<NEW_LINE>if (cachedMask != null) {<NEW_LINE>return cachedMask;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>int nBits = pag.getAllocNodeNumberer().size();<NEW_LINE>final BitVector mask = new BitVecto...
get().getSubclassesOf(clazz);
1,454,253
public Flux<Long> generateCompanion(Flux<RetrySignal> t) {<NEW_LINE>validateArguments();<NEW_LINE>return t.concatMap(retryWhenState -> {<NEW_LINE>// capture the state immediately<NEW_LINE>RetrySignal copy = retryWhenState.copy();<NEW_LINE>Throwable currentFailure = copy.failure();<NEW_LINE>long iteration = isTransientE...
ThreadLocalRandom random = ThreadLocalRandom.current();
1,392,041
public void marshall(MethodSetting methodSetting, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (methodSetting == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(methodSetting.getMetricsEnabled(), METRICSENA...
methodSetting.getCacheTtlInSeconds(), CACHETTLINSECONDS_BINDING);