idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
968,476
public static void convert(InterleavedF64 input, InterleavedI16 output) {<NEW_LINE>if (input.isSubimage() || output.isSubimage()) {<NEW_LINE>final int N = input.width * input.getNumBands();<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, input.height, y -> {<NEW_LINE>for (int y = 0; y < input.height; y++) {<NEW...
.height * input.getNumBands();
1,119,951
public BuilderSingularNoAuto build() {<NEW_LINE>java.util.List<String> things;<NEW_LINE>switch(this.things == null ? 0 : this.things.size()) {<NEW_LINE>case 0:<NEW_LINE>things = java.util.Collections.emptyList();<NEW_LINE>break;<NEW_LINE>case 1:<NEW_LINE>things = java.util.Collections.singletonList(this.things.get(0));...
.widgets.get(0));
97,308
public void configurationUsage() {<NEW_LINE>Map<String, String> properties = new HashMap<>();<NEW_LINE>properties.put("azure.sdk.<client-name>.http.proxy.port", "8080");<NEW_LINE>properties.put("azure.sdk.http.proxy.hostname", "<host");<NEW_LINE>properties.put("azure.sdk.http.proxy.username", "user");<NEW_LINE>properti...
(configuration.get(property));
252,429
public void analyze(Analyzer analyzer) throws UserException {<NEW_LINE>super.analyze(analyzer);<NEW_LINE>if (tableName == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>tableName.analyze(analyzer);<NEW_LINE>Table table = analyzer.getTableOrAnalysisException(tableName);<NEW_LINE>if (!(table instanceof View)) {<NEW_LINE>thr...
ErrorReport.reportAnalysisException(ErrorCode.ERR_NO_TABLES_USED);
260,060
private void updateBalancingState() {<NEW_LINE>List<Subchannel> <MASK><NEW_LINE>if (activeList.isEmpty()) {<NEW_LINE>// No READY subchannels, determine aggregate state and error status<NEW_LINE>boolean isConnecting = false;<NEW_LINE>Status aggStatus = EMPTY_OK;<NEW_LINE>for (Subchannel subchannel : getSubchannels()) {<...
activeList = filterNonFailingSubchannels(getSubchannels());
1,022,717
public static void proxyResponseHeaders(Map<String, String> respHeaders, SimpleHttpResp resp) {<NEW_LINE>for (Map.Entry<String, String> hdr : respHeaders.entrySet()) {<NEW_LINE>String name = hdr.getKey();<NEW_LINE>String value = hdr.getValue();<NEW_LINE>if (name.equalsIgnoreCase("Content-type")) {<NEW_LINE>resp.content...
.headers = U.map();
1,260,276
public void drawBackground(@Nonnull PoseStack matrix, int mouseX, int mouseY, float partialTicks) {<NEW_LINE>super.drawBackground(matrix, mouseX, mouseY, partialTicks);<NEW_LINE><MASK><NEW_LINE>if (textScale == 1F) {<NEW_LINE>renderTextField(matrix, mouseX, mouseY, partialTicks);<NEW_LINE>} else {<NEW_LINE>// hacky. we...
backgroundType.render(this, matrix);
1,171,445
private void initPanel() {<NEW_LINE>setBorder(new EmptyBorder(1, 2, 3, 5));<NEW_LINE>// configure toolbar<NEW_LINE>JToolBar toolbar = new JToolBar(JToolBar.HORIZONTAL);<NEW_LINE>toolbar.setFloatable(false);<NEW_LINE>toolbar.setRollover(true);<NEW_LINE>toolbar.setBorderPainted(false);<NEW_LINE>// create toggle buttons<N...
= new HashMap(filterCount * 2);
1,834,140
private Future<Map<String, Config>> topicConfigs(Collection<String> topicNames) {<NEW_LINE>LOGGER.debugCr(reconciliation, "Getting topic configs for {} topics", topicNames.size());<NEW_LINE>List<ConfigResource> configs = topicNames.stream().map((String topicName) -> new ConfigResource(ConfigResource.Type.TOPIC, topicNa...
> promise = Promise.promise();
1,094,209
private static void buildCollisionConvexHulls(TileSet tileSet, BufferedImage image, TextureSet.Builder textureSet) {<NEW_LINE>if (image != null) {<NEW_LINE>ConvexHulls convexHulls = TileSetUtil.calculateConvexHulls(image.getAlphaRaster(), 16, image.getWidth(), image.getHeight(), tileSet.getTileWidth(), tileSet.getTileH...
), tileSet.getTileSpacing());
422,431
protected List<ProductCategory> fetchImpactedChildrenProductCategories(ProductCategory productCategory) throws AxelorException {<NEW_LINE>// security in case of code error to avoid infinite loop<NEW_LINE>int i = 0;<NEW_LINE>List<ProductCategory> descendantsProductCategoryList = new ArrayList<>();<NEW_LINE>if (productCa...
.addAll(fetchChildrenWitNoMaxDiscount(childProductCategory));
1,173,043
public static void vertical(GrayU8 input, GrayI16 output, int radius, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>workspaces = BoofMiscOps.checkDeclare(workspaces, DogArray_I32::new);<NEW_LINE>// CONCURRENT_REMOVE_LINE<NEW_LINE>final DogArray_I32 work = workspaces.grow();<NEW_LINE>final int kernelWidth = r...
= indexIn + input.stride * kernelWidth;
731,556
// Analyze the next item in the queue. Leave it in the queue until analysis is complete.<NEW_LINE>// Any switch to dumb mode during a read action or a write action will cancel this analysis,<NEW_LINE>// which will restart with the same item.<NEW_LINE>boolean processNextItem(@NotNull Project project, @NotNull WorkItem i...
Application app = ApplicationManager.getApplication();
1,763,853
public boolean open(CharSequence tableName) {<NEW_LINE>if (hideTelemetryTables && (Chars.equals(tableName, TelemetryJob.tableName) || Chars.equals(tableName, TelemetryJob.configTableName))) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int pathLen = path.length();<NEW_LINE>try {<NEW_LINE>path.chop$().concat(tableName).<...
concat(META_FILE_NAME).$();
1,287,888
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jScrollPane1 = new javax.swing.JScrollPane();<NEW_LINE>cfgTree = new javax.swing.JTree();<NEW_LINE>// NOI18N<NEW_LINE>setNa...
= java.awt.GridBagConstraints.REMAINDER;
1,081,793
private void monitor(MeterRegistry registry, ForkJoinPool fj) {<NEW_LINE>FunctionCounter.builder(metricPrefix + "executor.steals", fj, ForkJoinPool::getStealCount).tags(tags).description("Estimate of the total number of tasks stolen from " + "one thread's work queue by another. The reported value " + "underestimates th...
("An estimate of the number of worker threads that are not blocked waiting to join tasks or for other managed synchronization threads").register(registry);
1,060,959
public Layer instantiate(NeuralNetConfiguration conf, Collection<TrainingListener> iterationListeners, int layerIndex, INDArray layerParamsView, boolean initializeParams) {<NEW_LINE>// The instantiate method is how we go from the configuration class (i.e., this class) to the implementation class<NEW_LINE>// (i.e., a Cu...
init(conf, layerParamsView, initializeParams);
1,671,359
private static void addNonNullObject(IsolatedSpeculationReasonEncoding encoding, Object o) {<NEW_LINE>Class<?> c = o.getClass();<NEW_LINE>if (c == String.class) {<NEW_LINE>encoding<MASK><NEW_LINE>} else if (c == Byte.class) {<NEW_LINE>encoding.addByte((Byte) o);<NEW_LINE>} else if (c == Short.class) {<NEW_LINE>encoding...
.addString((String) o);
287,059
public static Vector combineIndexRowSplits(int matrixId, int rowId, int resultSize, KeyPart[] keyParts, ValuePart[] valueParts) {<NEW_LINE>// Get matrix meta<NEW_LINE>MatrixMeta matrixMeta = PSAgentContext.get().getMatrixMetaManager().getMatrixMeta(matrixId);<NEW_LINE>RowType rowType = matrixMeta.getRowType();<NEW_LINE...
resultSize, keyParts, valueParts, matrixMeta);
1,635,652
public static void runDatabaseScript() throws ClassNotFoundException, SQLException {<NEW_LINE>if (!Thread.currentThread().getName().equals("main")) {<NEW_LINE>// During development this class is called twice (because of the Spring developer tools)<NEW_LINE>logger.debug("Skipping database script check for thread {}", Th...
NzbHydra.getDataFolder(), "database/nzbhydra.mv.db");
98,147
public void run(RegressionEnvironment env) {<NEW_LINE>SupportContextListener listener = new SupportContextListener(env);<NEW_LINE>env.runtime().getContextPartitionService().addContextStateListener(listener);<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@name('ctx') @public create con...
()).getLabel());
660,333
final GetAWSOrganizationsAccessStatusResult executeGetAWSOrganizationsAccessStatus(GetAWSOrganizationsAccessStatusRequest getAWSOrganizationsAccessStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAWSOrganizationsAccessStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
35,940
private static void checkAttributeValue(String argName, String value) throws InvalidArgumentException {<NEW_LINE>checkNullArgument(argName, value);<NEW_LINE>checkCharacterData(argName, value);<NEW_LINE>int index = value.indexOf('<');<NEW_LINE>if (index != -1) {<NEW_LINE>throw new InvalidArgumentException(argName, Util....
.getString("EXC_invalid_attribute_value", value));
1,775,141
private void createDetailLines() {<NEW_LINE>StringBuffer sql = new StringBuffer(s_insert);<NEW_LINE>// (AD_PInstance_ID, Fact_Acct_ID,<NEW_LINE>sql.append("SELECT ").append(getAD_PInstance_ID()).append(",Fact_Acct_ID,");<NEW_LINE>// AD_Client_ID, AD_Org_ID, Created,CreatedBy, Updated,UpdatedBy,<NEW_LINE>sql.append(getA...
executeUpdate(sql2, get_TrxName());
1,253,898
public void processAction(RequiredActionContext context) {<NEW_LINE>EventBuilder event = context.getEvent();<NEW_LINE>event.event(EventType.UPDATE_TOTP);<NEW_LINE>MultivaluedMap<String, String> formData = context.getHttpRequest().getDecodedFormParameters();<NEW_LINE>String challengeResponse = formData.getFirst("totp");...
.message(Messages.INVALID_TOTP));
948,755
public void undoScale(SceneStructureProjective structure, SceneObservations observations) {<NEW_LINE>if (!structure.homogenous) {<NEW_LINE>double scale = desiredDistancePoint / medianDistancePoint;<NEW_LINE>undoNormPoints3D(structure, scale);<NEW_LINE>DMatrixRMaj A = new DMatrixRMaj(3, 3);<NEW_LINE>DMatrixRMaj A_inv = ...
.y / scale + medianPoint.y;
1,123,418
public void handleEditingFinished(Set<E> editedObjects) {<NEW_LINE>if (editedObjects.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>OWLAxiom newAxiom = createAxiom(editedObjects.iterator().next());<NEW_LINE>// the editor should protect from this, but just in case<NEW_LINE>if (newAxiom == null) {<NEW_LINE>return;<NEW...
new AddAxiom(activeOntology, newAxiom));
35,737
public void validate(PlainAccessResource plainAccessResource) {<NEW_LINE>// Check the global white remote addr<NEW_LINE>for (RemoteAddressStrategy remoteAddressStrategy : globalWhiteRemoteAddressStrategy) {<NEW_LINE>if (remoteAddressStrategy.match(plainAccessResource)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>...
(String.format("No accessKey is configured"));
192,966
public MarkupDocBuilder tableWithColumnSpecs(List<MarkupTableColumn> columnSpecs, List<List<String>> cells) {<NEW_LINE>Validate.notEmpty(cells, "cells must not be null");<NEW_LINE>Boolean hasHeader = false;<NEW_LINE>List<String> options = new ArrayList<>();<NEW_LINE>List<String> cols = new ArrayList<>();<NEW_LINE>if (c...
("\"]").append(newLine);
1,661,383
public void init(Map<String, String> properties) throws PluginException {<NEW_LINE>try {<NEW_LINE>if (properties.containsKey(PROP_MAX_BATCH_SIZE)) {<NEW_LINE>maxBatchSize = Long.valueOf(properties.get(PROP_MAX_BATCH_SIZE));<NEW_LINE>}<NEW_LINE>if (properties.containsKey(PROP_MAX_BATCH_INTERVAL_SEC)) {<NEW_LINE>maxBatch...
table = properties.get(PROP_TABLE);
1,681,706
public int orderOfLargestPlusSign(int n, int[][] mines) {<NEW_LINE>int[][] grid = <MASK><NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>for (int j = 0; j < n; j++) {<NEW_LINE>grid[i][j] = n;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>for (int i = 0; i < mines.length; i++) {<NEW_LINE>grid[mines[i][0]][mines[i][1]] = 0;<NEW_LINE>}<...
new int[n][n];
254,592
public ApiResponse<List<Pet>> findPetsByStatusWithHttpInfo(List<String> status) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'status' is set<NEW_LINE>if (status == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'status' when calli...
] localVarAccepts = { "application/xml", "application/json" };
313,568
private static Collection<String> refreshUpdateCenters(ProgressHandle progress) {<NEW_LINE>final long startTime = System.currentTimeMillis();<NEW_LINE>Collection<String> problems = new HashSet<String>();<NEW_LINE>assert !SwingUtilities.isEventDispatchThread() : "Cannot run refreshProviders in EQ!";<NEW_LINE>Collection<...
log(Level.FINEST, "Waiting for all refreshTasks is done.");
1,852,926
private void onAnimateUpdated(@NonNull ValueAnimator animation) {<NEW_LINE>int color = (<MASK><NEW_LINE>int colorReverse = (int) animation.getAnimatedValue(ANIMATION_COLOR_REVERSE);<NEW_LINE>int radius = (int) animation.getAnimatedValue(ANIMATION_RADIUS);<NEW_LINE>int radiusReverse = (int) animation.getAnimatedValue(AN...
int) animation.getAnimatedValue(ANIMATION_COLOR);
349,528
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroup, String linkedSubscriptionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_L...
getApiVersion(), accept, context);
687,881
void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>if ((((decoder.state_zs_flags & StateFlags.B) | decoder.state_vvvv_invalidCheck) & decoder.invalidCheckMask) != 0)<NEW_LINE>decoder.setInvalidInstruction();<NEW_LINE>instruction.setCode(code);<NEW_LINE>instruction.setOp1Register(decoder.state_reg + decode...
instruction.setOp0Kind(OpKind.MEMORY);
1,162,468
public void run(CompilationController controller) throws IOException {<NEW_LINE>// cursor position needed<NEW_LINE>controller.toPhase(Phase.RESOLVED);<NEW_LINE>if (cancelled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TreePath treePath = controller.getTreeUtilities().pathFor(caretPosition);<NEW_LINE>if (treePath != null) {...
TreePath parent = treePath.getParentPath();
373,654
private Object unaryExpr(TokenStream ts) throws IOException, JavaScriptException {<NEW_LINE>int tt;<NEW_LINE>ts.flags |= ts.TSF_REGEXP;<NEW_LINE>tt = ts.getToken();<NEW_LINE>ts.flags &= ~ts.TSF_REGEXP;<NEW_LINE>switch(tt) {<NEW_LINE>case TokenStream.UNARYOP:<NEW_LINE>sourceAdd((char) ts.UNARYOP);<NEW_LINE>sourceAdd((ch...
((char) ts.DELPROP);
191,993
public void write(IDPSSODescriptorType idpSSODescriptor) throws ProcessingException {<NEW_LINE>if (idpSSODescriptor == null)<NEW_LINE>throw new ProcessingException(logger.nullArgumentError("IDPSSODescriptorType"));<NEW_LINE>StaxUtil.writeStartElement(writer, METADATA_PREFIX, JBossSAMLConstants.IDP_SSO_DESCRIPTOR.get(),...
> keyDescriptors = idpSSODescriptor.getKeyDescriptor();
969,936
private static InitializationDescriptor read(JSONObject object) throws Exception {<NEW_LINE>InitializationDescriptor rd = new InitializationDescriptor();<NEW_LINE>JSONArray array = object.getJSONArray("buildTimeInitialization");<NEW_LINE>for (int i = 0; i < array.length(); i++) {<NEW_LINE>JSONObject jsonObject = array....
(jsonObject.getString("package"));
1,366,732
private void initAndSearchCities(final SearchPhrase phrase, final SearchResultMatcher resultMatcher) throws IOException {<NEW_LINE>QuadRect bbox = phrase.getRadiusBBoxToSearch(DEFAULT_ADDRESS_BBOX_RADIUS * 20);<NEW_LINE>Iterator<BinaryMapIndexReader> offlineIndexes = phrase.getOfflineIndexes(bbox, SearchPhraseDataType....
phrase, resultMatcher, res, cityApi);
610,197
private Map<String, Object> initMagicVariables() {<NEW_LINE>Map<String, Object> map = new HashMap();<NEW_LINE>if (!caller.isNone()) {<NEW_LINE>// karate principle: parent variables are always "visible"<NEW_LINE>// so we inject the parent variables<NEW_LINE>// but they will be over-written by what is local to this scena...
"__num", scenario.getExampleIndex());
239,353
private synchronized boolean existSyncTask(DatasetTable datasetTable, DatasetTableTask datasetTableTask) {<NEW_LINE>datasetTable.setSyncStatus(JobStatus.Underway.name());<NEW_LINE>DatasetTableExample example = new DatasetTableExample();<NEW_LINE>example.createCriteria().andIdEqualTo(datasetTable.getId()).andSyncStatusN...
JobStatus.Underway.name());
217,851
private void loadFoundDictionaries() {<NEW_LINE>// installed /conf dir<NEW_LINE>Path configPath = controller.getConfigPath();<NEW_LINE>// user.home root<NEW_LINE>Path rootLocation = getConfigRootLocation();<NEW_LINE>final Path localLanguages = configPath.resolve("spellcheck");<NEW_LINE>final Path addedLanguages = rootL...
().endsWith(extension));
946,923
private ResolvableType resolveVariable(TypeVariable<?> variable) {<NEW_LINE>if (this.type instanceof TypeVariable) {<NEW_LINE>return resolveType().resolveVariable(variable);<NEW_LINE>}<NEW_LINE>if (this.type instanceof ParameterizedType) {<NEW_LINE>ParameterizedType parameterizedType = (ParameterizedType) this.type;<NE...
.variableResolver).resolveVariable(variable);
892,729
public void onBlock(final DirectBuffer termBuffer, final int termOffset, final int length, final int sessionId, final int termId) {<NEW_LINE>try {<NEW_LINE>final boolean isPaddingFrame = termBuffer.getShort(typeOffset(termOffset)) == PADDING_FRAME_TYPE;<NEW_LINE>final int dataLength = isPaddingFrame ? HEADER_LENGTH : l...
computeChecksum(checksum, checksumBuffer, dataLength);
723,351
public void loadContactImage(CircleImageView imageView, TextView textView, Contact contact) {<NEW_LINE>try {<NEW_LINE>textView.setVisibility(View.VISIBLE);<NEW_LINE>imageView.setVisibility(View.GONE);<NEW_LINE>String contactNumber = "";<NEW_LINE>char firstLetter = 0;<NEW_LINE>contactNumber = contact.getDisplayName().to...
contact.getImageURL(), 0);
593,875
private static void addAnnotation(StringBuilder buf, IAnnotationBinding annotation, boolean addLinks) throws URISyntaxException {<NEW_LINE>IJavaElement javaElement = annotation.getAnnotationType().getJavaElement();<NEW_LINE>buf.append('@');<NEW_LINE>if (javaElement == null || !addLinks) {<NEW_LINE>buf.append(annotation...
buf.append(JavaElementLabels.COMMA_STRING);
253,875
private synchronized void createProducerSession() throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE><MASK><NEW_LINE>if (iProducerSession == null) {<NEW_LINE>try {<NEW_LINE>iProducerSession = (ProducerSessionImpl) iProxyHandler.getMessageProcessor().getSystem...
SibTr.entry(tc, "createProducerSession");
1,399,167
private void addDataToTable(Packet packet, int networkType, RowSetLoader rowWriter) {<NEW_LINE>rowWriter.start();<NEW_LINE>typeWriter.setString(packet.getPacketType());<NEW_LINE>timestampWriter.setTimestamp(Instant.ofEpochMilli(packet.getTimestamp()));<NEW_LINE>timestampMicroWriter.setLong(packet.getTimestampMicro());<...
setInt(packet.getAckNumber());
1,080,976
private static Path createDemoCertificate() throws Throwable {<NEW_LINE>CertificateChainBuilder chainBuilder = new CertificateChainBuilder(DEMO_CERT_NAME);<NEW_LINE>KeyPairWrapper keyPair = chainBuilder.createCaCert();<NEW_LINE>// Some locations a user might be happy with<NEW_LINE>Path homeDir = Paths.get(System.getPro...
FileWriter writer = new FileWriter(privateKey);
668,729
Collection<BQModule> toDIModules(Collection<BQModuleMetadata> modulesMetadata) {<NEW_LINE>ModuleGraph moduleGraph = new ModuleGraph(modulesMetadata.size());<NEW_LINE>Map<Class<? extends BQModule>, BQModuleMetadata> moduleByClass = new HashMap<>();<NEW_LINE>modulesMetadata.forEach(metadata -> {<NEW_LINE>Class<? extends ...
-> traceMessage(metadata, null));
40,859
public boolean matchItems(Item[][] input, Item[][] output) {<NEW_LINE>if (!matchInputMap(cloneItemArray(input))) {<NEW_LINE>// Item[][] result = input;<NEW_LINE>for (int i = 0; i < input.length; i++) {<NEW_LINE>Item[] old = input[i];<NEW_LINE>Item[] newArray = new Item[old.length];<NEW_LINE>System.arraycopy(old, 0, new...
> needItems = this.getExtraResults();
485,229
protected void handle(CreateVtepMsg msg) {<NEW_LINE>List<VtepVO> vteps = Q.New(VtepVO.class).eq(VtepVO_.poolUuid, msg.getPoolUuid()).eq(VtepVO_.vtepIp, msg.getVtepIp()).list();<NEW_LINE>for (VtepVO vtep : vteps) {<NEW_LINE>if (!vtep.getHostUuid().equals(msg.getHostUuid())) {<NEW_LINE>logger.warn(String.format("same vte...
, msg.getClusterUuid()));
1,352,086
public EntityRecognizerEvaluationMetrics unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EntityRecognizerEvaluationMetrics entityRecognizerEvaluationMetrics = new EntityRecognizerEvaluationMetrics();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = c...
class).unmarshall(context));
1,232,994
private Mono<SocketAddress> lookupRedis(RedisURI sentinelUri) {<NEW_LINE>Duration timeout = sentinelUri.getTimeout();<NEW_LINE>return Mono.usingWhen(Mono.fromCompletionStage(() -> connectSentinelAsync(newStringStringCodec(), sentinelUri, timeout)), c -> {<NEW_LINE>String sentinelMasterId = sentinelUri.getSentinelMaster...
isa.getPort(), resolved);
651,032
private Deployment createBaseDeployment() {<NEW_LINE>var is = this.getClass().getResourceAsStream("/base-keycloak-deployment.yaml");<NEW_LINE>Deployment baseDeployment = Serialization.<MASK><NEW_LINE>baseDeployment.getMetadata().setName(getName());<NEW_LINE>baseDeployment.getMetadata().setNamespace(getNamespace());<NEW...
unmarshal(is, Deployment.class);
744,144
private void executeRegRipper(List<String> regRipperPath, Path regRipperHomeDir, String hiveFilePath, String hiveFileType, String outputFile, String errFile) {<NEW_LINE>try {<NEW_LINE>List<String> commandLine = new ArrayList<>();<NEW_LINE>for (String cmd : regRipperPath) {<NEW_LINE>commandLine.add(cmd);<NEW_LINE>}<NEW_...
new DataSourceIngestModuleProcessTerminator(context, true));
85,791
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>final String createTableSql = "CREATE TABLE IF NOT EXISTS visits ( visit_id INT NOT NULL " + "AUTO_INCREMENT, user_ip VARCHAR(46) NOT NULL, timestamp DATETIME NOT NULL, " + "PRIMARY KEY (visit_id) )";<NEW...
timeStamp = rs.getString("timestamp");
698,832
public static BXML<?> concatenate(BXML<?> firstSeq, BXML<?> secondSeq) {<NEW_LINE>BValueArray concatSeq = new BValueArray();<NEW_LINE>int j = 0;<NEW_LINE>// Load the content fully before concat the two<NEW_LINE>firstSeq.build();<NEW_LINE>secondSeq.build();<NEW_LINE>// Add all the items in the first sequence<NEW_LINE>if...
.add(j++, secondSeq);
584,813
protected void addMacroParams(javax.persistence.TypedQuery jpaQuery) {<NEW_LINE>if (macroHandlers != null) {<NEW_LINE>for (QueryMacroHandler handler : macroHandlers) {<NEW_LINE>Map<String, Object> namedParams = new HashMap<>();<NEW_LINE>for (Param param : params) {<NEW_LINE>if (param.name instanceof String)<NEW_LINE>na...
), entry.getValue());
651,391
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.websphere.cache.CacheAdminMBean#invalidateCacheIDs(java.lang.String, java.lang.String, boolean)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public String[] invalidateCacheIDs(String cacheInstance, String pattern, boolean waitOnInvalidation) throws javax.managem...
"invalidateCacheIDs: Exiting. Number of matches found = " + invalidateSet.size());
1,569,582
public State unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>State state = new State();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte...
().unmarshall(context));
1,614,458
public static BufferedImage resizeWithRatio(BufferedImage image, int destinationWidth, int destinationHeight) {<NEW_LINE>int type = image.getType() == 0 ? BufferedImage.TYPE_INT_ARGB : image.getType();<NEW_LINE>// *Special* if the width or height is 0 use image src dimensions<NEW_LINE>if (destinationWidth == 0) {<NEW_L...
RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
1,689,255
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>super.onCreateView(inflater, container, savedInstanceState);<NEW_LINE>if (megaApi.getRootNode() == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>View v = getListView(inflater, container);<NEW_LINE>if (adapte...
recyclerView, LINKS_ADAPTER, ITEM_VIEW_TYPE_LIST, sortByHeaderViewModel);
668,423
public static OutputStream openForWriting(Form form, ScopedFile file) throws IOException {<NEW_LINE>switch(file.getScope()) {<NEW_LINE>case Asset:<NEW_LINE>throw new IOException("Assets are read-only.");<NEW_LINE>case App:<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO) {<NEW_LINE>return new FileOutputS...
.DISPLAY_NAME, parts[1]);
1,509,037
public static void toJSON(OutputWriter outputWriter, EnvironmentConfig environmentConfig) {<NEW_LINE>outputWriter.add(<MASK><NEW_LINE>addOrigin(outputWriter, environmentConfig.getOrigin());<NEW_LINE>outputWriter.addChildList("pipelines", outputListWriter -> {<NEW_LINE>environmentConfig.getPipelines().forEach(pipeline -...
"name", environmentConfig.name());
1,616,598
private JsonResult toJson(final CompilationUnit cu) {<NEW_LINE>final JsonResult jsonResult = new JsonResult();<NEW_LINE>final NodeList<TypeDeclaration<?>> types = cu.getTypes();<NEW_LINE>if (types.isEmpty()) {<NEW_LINE>return jsonResult;<NEW_LINE>}<NEW_LINE>final TypeDeclaration<?> type = types.get(0);<NEW_LINE>jsonRes...
(0).getType());
1,466,988
protected void addMachineSlots(@Nonnull InventoryPlayer playerInv) {<NEW_LINE>addSlotToContainer(new InventorySlot(getInv(), inFull, 44, 21));<NEW_LINE>addSlotToContainer(new InventorySlot(getInv()<MASK><NEW_LINE>addSlotToContainer(new InventorySlot(getInv(), trashcan, 10000, 10000) {<NEW_LINE><NEW_LINE>@Override<NEW_L...
, inEmpty, 116, 21));
718,025
public void paint(Graphics g2, JComponent c) {<NEW_LINE>final Graphics2D g = (Graphics2D) g2;<NEW_LINE>final GraphicsConfig config = new GraphicsConfig(g);<NEW_LINE>final Color bg = c.getBackground();<NEW_LINE>g.setPaint(bg);<NEW_LINE>TableColumnModel model = ((JTableHeader) c).getColumnModel();<NEW_LINE>final int h = ...
> columns = model.getColumns();
767,263
public boolean register(final InferableJavaFileObject jfo) {<NEW_LINE>Parameters.notNull("jfo", jfo);<NEW_LINE>final String inferedName = jfo.inferBinaryName();<NEW_LINE>final String[] pkgName = FileObjects.getPackageAndName(inferedName);<NEW_LINE>List<Integer> ids = this.packages.get(pkgName[0]);<NEW_LINE>if (ids == n...
(pkgName[0], ids);
799,863
public void onClick(View v) {<NEW_LINE>if (v == mClose) {<NEW_LINE>DoKit.removeFloating(ViewCheckDrawDoKitView.class);<NEW_LINE>DoKit.removeFloating(ViewCheckInfoDoKitView.class);<NEW_LINE>DoKit.removeFloating(ViewCheckDoKitView.class);<NEW_LINE>}<NEW_LINE>if (v == mNext) {<NEW_LINE>ViewCheckDoKitView dokitView = DoKit...
getActivity(), ViewCheckDoKitView.class);
1,208,203
public JobSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>JobSummary jobSummary = new JobSummary();<NEW_LINE>reader.beginObject();<NEW_...
().unmarshall(context));
182,730
public Data fromCommand(ParticleType<Data> particleTypeIn, StringReader reader) throws CommandSyntaxException {<NEW_LINE>double dX = reader.readDouble();<NEW_LINE>reader.expect(' ');<NEW_LINE>double dY = reader.readDouble();<NEW_LINE>reader.expect(' ');<NEW_LINE>double dZ = reader.readDouble();<NEW_LINE>reader.expect('...
i] = reader.readFloat();
400,317
private void copyResources(File resourcesDirectory) throws IOException {<NEW_LINE>// Unzip res.zip into resources directory<NEW_LINE>InputStream inputStream = getClass().getResourceAsStream("res.zip");<NEW_LINE>ZipInputStream zipInputStream = new ZipInputStream(inputStream);<NEW_LINE>try {<NEW_LINE>ZipEntry zipEntry = ...
new FileOutputStream(file), BUFFER_SIZE);
463,315
public Serializable doTestWork(EntityManager em, UserTransaction tx, Object managedComponentObject) {<NEW_LINE>System.out.println("Begin Running TestWorkRequest.doTestWork(twr) on " + managedComponentObject + " ...");<NEW_LINE>try {<NEW_LINE>System.out.println("Finding SimpleVersionedEntity10(id=" + identity + ") ...")...
assertSame("Assert that find did return the same entity.", entityPCtx1, findEntity);
565,617
protected Tuple2<double[], String> predictSingleVar(Timestamp[] historyTimes, double[] historyVals, int predictNum) {<NEW_LINE>LOG.info("Entering predictSingleVar");<NEW_LINE>if (historyVals.length <= 2) {<NEW_LINE>LOG.info("historyVals.length <= 2");<NEW_LINE>return Tuple2.of(null, null);<NEW_LINE>}<NEW_LINE>Map<Strin...
.get(ProphetParams.STAN_INIT));
417,405
public WorkflowDefPb.WorkflowDef toProto(WorkflowDef from) {<NEW_LINE>WorkflowDefPb.WorkflowDef.Builder to = WorkflowDefPb.WorkflowDef.newBuilder();<NEW_LINE>if (from.getName() != null) {<NEW_LINE>to.setName(from.getName());<NEW_LINE>}<NEW_LINE>if (from.getDescription() != null) {<NEW_LINE>to.setDescription(from.getDes...
.addTasks(toProto(elem));
1,815,958
private OperatorNode<?> fetchPipe(OperatorNode<?> toScan) {<NEW_LINE>OperatorNode<?> ast = toScan;<NEW_LINE>while (ast.getOperator() == SequenceOperator.PIPE) {<NEW_LINE>OperatorNode<ExpressionOperator> groupingAst = ast.<List<OperatorNode<ExpressionOperator>>>getArgument(2).get(0);<NEW_LINE>GroupingOperation groupingO...
VespaGroupingStep groupingStep = new VespaGroupingStep(groupingOperation);
1,789,485
public void initialize(EsperIOKafkaOutputFlowControllerContext context) {<NEW_LINE>this.runtime = context.getRuntime();<NEW_LINE>// obtain producer<NEW_LINE>try {<NEW_LINE>producer = new KafkaProducer<>(context.getProperties());<NEW_LINE>} catch (Throwable t) {<NEW_LINE>log.error("Error obtaining Kafka producer for URI...
.getDeploymentService().getDeployments();
601,463
private void doReplaceWithNonPacked(Structure struct, DataType[] resolvedDts) throws IOException {<NEW_LINE>// assumes components is clear and that alignment characteristics have been set.<NEW_LINE>if (struct.isNotYetDefined()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>structLength = struct.isZeroLength() ? 0 : struct.get...
dataMgr, componentAdapter, this, rec);
220,572
private static List<DataSchema> parseDataSchema(String resolverPath, String inputPath) throws RuntimeException, IOException {<NEW_LINE>try (Stream<Path> paths = Files.walk(Paths.get(inputPath))) {<NEW_LINE>return paths.filter(path -> path.toString().endsWith(PDL) || path.toString().endsWith(PDSC)).map(path -> {<NEW_LIN...
parse(new FileInputStream(inputFile));
499,907
static boolean contentOverlap(LayoutInterval interval1, LayoutInterval interval2, int fromIndex, int toIndex, int dimension) {<NEW_LINE>if (!interval2.isGroup()) {<NEW_LINE>if (!interval1.isGroup()) {<NEW_LINE>return LayoutRegion.overlap(interval1.getCurrentSpace(), interval2.getCurrentSpace(), dimension, 0);<NEW_LINE>...
= new LinkedList<LayoutInterval>();
878,470
public void mouseClicked(MouseEvent e) {<NEW_LINE>if (e.getClickCount() != 2 || e.isPopupTrigger() || e.isConsumed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int index = <MASK><NEW_LINE>if (index < 0 || index >= getModel().getSize()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Object value = getModel().getElementAt(index);<N...
locationToIndex(e.getPoint());
787,370
public JsonCreateInvoiceCandidatesResponse createInvoiceCandidates(@NonNull final JsonCreateInvoiceCandidatesRequest request) {<NEW_LINE>final ImmutableMap<InvoiceCandidateLookupKey, JsonCreateInvoiceCandidatesRequestItem> lookupKey2Item = Maps.uniqueIndex(request.getItems(), this::createInvoiceCandidateLookupKey);<NEW...
(manualCandidateService.createInvoiceCandidate(candidateToSave));
406,181
public void drawInfo(@Nonnull Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY) {<NEW_LINE>FontRenderer fr = minecraft.fontRenderer;<NEW_LINE>String txt = Lang.GUI_COMBGEN_OUTPUT.get("");<NEW_LINE>int sw = fr.getStringWidth(txt);<NEW_LINE>fr.drawStringWithShadow(txt, 89 - sw / 2 - xOff, 0 ...
.getRGB(Color.WHITE));
1,216,464
private static void solveNQueensWithGeneticAlgorithmSearch() {<NEW_LINE>System.out.println("\n--- NQueensDemo GeneticAlgorithm ---");<NEW_LINE>FitnessFunction<Integer> fitnessFunction = NQueensGenAlgoUtil.getFitnessFunction();<NEW_LINE>Predicate<Individual<Integer>> goalTest = NQueensGenAlgoUtil.getGoalTest();<NEW_LINE...
+ goalTest.test(bestIndividual));
1,674,466
public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case R.id.action_follow:<NEW_LINE>mPresenter.followUser<MASK><NEW_LINE>invalidateOptionsMenu();<NEW_LINE>showSuccessToast(mPresenter.isFollowing() ? getString(R.string.followed) : getString(R.string.unfollowed));<NEW_LINE...
(!mPresenter.isFollowing());
1,213,225
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String automationAccountName, String variableName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be nu...
this.client.mergeContext(context);
1,126,552
final GetSceneResult executeGetScene(GetSceneRequest getSceneRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSceneRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R...
(super.beforeMarshalling(getSceneRequest));
1,820,105
private void saveCollectedMethod(MappingCollector mappingCollector) {<NEW_LINE>File methodMapFile = new File(configuration.methodMapFilePath);<NEW_LINE>if (!methodMapFile.getParentFile().exists()) {<NEW_LINE>methodMapFile.getParentFile().mkdirs();<NEW_LINE>}<NEW_LINE>List<TraceMethod> methodList = new ArrayList<>();<NE...
"write method map Exception:%s", e.getMessage());
1,408,957
final public void makeTypeMask() {<NEW_LINE>RefType.v("java.lang.Class");<NEW_LINE>typeMask = new LargeNumberedMap<Type, BitVector>(Scene.v().getTypeNumberer());<NEW_LINE>if (fh == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// **<NEW_LINE>initClass2allocs();<NEW_LINE>makeClassTypeMask(Scene.v().getSootClass("java.lan...
set(t.getNumber());
463,672
public static ListTrafficMirrorSessionsResponse unmarshall(ListTrafficMirrorSessionsResponse listTrafficMirrorSessionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTrafficMirrorSessionsResponse.setRequestId(_ctx.stringValue("ListTrafficMirrorSessionsResponse.RequestId"));<NEW_LINE>listTrafficMirrorSessionsResponse...
+ "].TrafficMirrorSourceIds[" + j + "]"));
575,069
public void marshall(Cluster cluster, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (cluster == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(cluster.getName(), NAME_BINDING);<NEW_LINE>protocolMarshaller.m...
cluster.getParameterGroupName(), PARAMETERGROUPNAME_BINDING);
1,173,485
public void dfs(int i, int j, String result, boolean[][] visited, Trie tree, List<String> results, char[][] board) {<NEW_LINE>// System.out.println(result);<NEW_LINE>if (!tree.isPrefix(result)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (tree.search(result) && !set.contains(result)) {<NEW_LINE>results.add(result);<NEW_L...
+ step[k][1];
70,655
public void runMerge(HoodieTable<T, List<HoodieRecord<T>>, List<HoodieKey>, List<WriteStatus>> table, HoodieMergeHandle<T, List<HoodieRecord<T>>, List<HoodieKey>, List<WriteStatus>> mergeHandle) throws IOException {<NEW_LINE>final GenericDatumWriter<GenericRecord> gWriter;<NEW_LINE>final GenericDatumReader<GenericRecor...
getOldFilePath()).getSchema();
375,659
private void restoreSession(int tabIndex) {<NEW_LINE><MASK><NEW_LINE>if (session_str == null && loadScripts == null && macOpenFiles == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<File> filesToLoad = new ArrayList<File>();<NEW_LINE>if (macOpenFiles != null) {<NEW_LINE>for (File f : macOpenFiles) {<NEW_LINE>filesTo...
String session_str = prefs.getIdeSession();
1,669,200
public void testActionlessFutureWithDefaultManagedExecutor() throws Exception {<NEW_LINE>BlockableIncrementFunction increment = new BlockableIncrementFunction("testActionlessFutureWithDefaultManagedExecutor", null, null, false);<NEW_LINE>CompletableFuture<Integer<MASK><NEW_LINE>CompletableFuture<Integer> cf2 = cf1.then...
> cf1 = defaultManagedExecutor.newIncompleteFuture();
1,340,203
public List<String> showAnalyzeJobs() throws MetaNotFoundException {<NEW_LINE>List<String> row = Lists.newArrayList("", "ALL", "ALL", "ALL", "", "", "", "", "", "");<NEW_LINE>row.set(0, String.valueOf(id));<NEW_LINE>if (DEFAULT_ALL_ID != dbId) {<NEW_LINE>Database db = Catalog.getCurrentCatalog().getDb(dbId);<NEW_LINE>i...
2, table.getName());
1,647,647
public void actionPerformed(ActionEvent e) {<NEW_LINE>Collection<? extends Report> selectedReportsCollection = Utilities.actionsGlobalContext().lookupAll(Report.class);<NEW_LINE>String message = selectedReportsCollection.size() > 1 ? NbBundle.getMessage(Reports.class, "DeleteReportAction.actionPerformed.showConfirmDial...
] jOptionPaneContent = { message, explanation };