idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,316,778
public static Map<String, List<TargetGroupVH>> fetchTargetGroups(BasicSessionCredentials temporaryCredentials, String skipRegions, String accountId, String accountName) {<NEW_LINE>com.<MASK><NEW_LINE>Map<String, List<TargetGroupVH>> targetGrpMap = new LinkedHashMap<>();<NEW_LINE>String expPrefix = InventoryConstants.ER...
amazonaws.services.elasticloadbalancingv2.AmazonElasticLoadBalancing elbClient;
269,188
final DeleteCorsConfigurationResult executeDeleteCorsConfiguration(DeleteCorsConfigurationRequest deleteCorsConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteCorsConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
invoke(request, responseHandler, executionContext);
146,562
private void refreshUpdateVersionViews() {<NEW_LINE>if (mPlugin.isInstalled()) {<NEW_LINE>mInstallButton.setVisibility(View.GONE);<NEW_LINE>if (isNotAutoManaged()) {<NEW_LINE>boolean isUpdateAvailable = PluginUtils.isUpdateAvailable(mPlugin);<NEW_LINE>boolean canUpdate = isUpdateAvailable && !mIsUpdatingPlugin;<NEW_LIN...
View.VISIBLE : View.GONE);
1,176,571
// ===================================================================================<NEW_LINE>// Basic Override<NEW_LINE>// ==============<NEW_LINE>@Override<NEW_LINE>protected String doBuildColumnString(String dm) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(dm).append(createdBy);<NEW_LINE>s...
(dm).append(updatedTime);
662,129
private static void validateScoresArePositive(Version indexCreatedVersion, Similarity similarity) throws IOException {<NEW_LINE>CollectionStatistics collectionStats = new CollectionStatistics("some_field", 1200, 1100, 3000, 2000);<NEW_LINE>TermStatistics termStats = new TermStatistics(new BytesRef("some_value"), 100, 1...
simWeight, reader.getContext());
349,086
public boolean isReadOnlyFromContext() {<NEW_LINE>int clientId = Env.getContextAsInt(m_vo.ctx, m_vo.WindowNo, m_vo.TabNo, "AD_Client_ID");<NEW_LINE>if (clientId <= 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int orgId = Env.getContextAsInt(m_vo.ctx, m_vo.WindowNo, m_vo.TabNo, "AD_Org_ID");<NEW_LINE>String keyColumn...
m_vo.TabNo, GridTab.CTX_KeyColumnName);
1,294,867
public void onEnterStage(MySQLResponseService service) {<NEW_LINE>if (service.getConnection().isClosed()) {<NEW_LINE>service.setXaStatus(TxState.TX_COMMIT_FAILED_STATE);<NEW_LINE>xaHandler.fakedResponse(service, "the conn has been closed before executing XA COMMIT");<NEW_LINE>} else {<NEW_LINE>try {<NEW_LINE>RouteResul...
logger.info("xa commit error", e);
380,639
public Map<String, Object> buildHiveReader() {<NEW_LINE>DataxHivePojo dataxHivePojo = new DataxHivePojo();<NEW_LINE>dataxHivePojo.setJdbcDatasource(readerDatasource);<NEW_LINE>List<Map<String, Object>> columns = Lists.newArrayList();<NEW_LINE>readerColumns.forEach(c -> {<NEW_LINE>Map<String, Object> column = Maps.newLi...
Constants.SPLIT_SCOLON)[0]);
1,727,633
// ----- private methods -----<NEW_LINE>private void init() {<NEW_LINE>factories.put(NotEmptyQuery.class, new NotEmptyQueryFactory(this));<NEW_LINE>factories.put(FulltextQuery.class, new KeywordQueryFactory(this));<NEW_LINE>factories.put(SpatialQuery.class, new SpatialQueryFactory(this));<NEW_LINE>factories.put(GraphQu...
class, new RelationshipQueryFactory(this));
102,639
protected static void constructM(List<Point2D_F64> obsPts, DMatrixRMaj alphas, DMatrixRMaj M) {<NEW_LINE>int N = obsPts.size();<NEW_LINE>M.reshape(3 * alphas.numCols, 2 * N, false);<NEW_LINE>for (int i = 0; i < N; i++) {<NEW_LINE>Point2D_F64 p2 = obsPts.get(i);<NEW_LINE>int row = i * 2;<NEW_LINE>for (int j = 0; j < alp...
col, row + 1, 0);
317,899
/* (non-Javadoc)<NEW_LINE>* @see com.ibm.ws.sib.processor.impl.store.items.SIMPItem#restore(java.io.ObjectInputStream, int)<NEW_LINE>*/<NEW_LINE>public void restore(ObjectInputStream dis, int dataVersion) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "restore", new...
, new Integer(dataVersion) });
1,082,155
public synchronized int codePointBefore(int index) {<NEW_LINE>int currentLength = lengthInternalUnsynchronized();<NEW_LINE>if (index > 0 && index <= currentLength) {<NEW_LINE>// Check if the StringBuffer is compressed<NEW_LINE>if (String.COMPACT_STRINGS && count >= 0) {<NEW_LINE>return helpers.byteToCharUnsigned(helper...
high = value[index - 2];
254,352
final GlobalCluster executeDeleteGlobalCluster(DeleteGlobalClusterRequest deleteGlobalClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteGlobalClusterRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteGlobalClusterReq...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,566,588
private HandlerInfo adaptToHandlerInfo(org.apache.cxf.jaxws30.handler.types.PortComponentHandlerType pt) {<NEW_LINE>HandlerInfo handler = new HandlerInfo();<NEW_LINE>handler.<MASK><NEW_LINE>handler.setHandlerClass(pt.getHandlerClass().getValue());<NEW_LINE>handler.setHandlerName(pt.getHandlerName().getValue());<NEW_LIN...
setId(pt.getId());
731,165
public void read(org.apache.thrift.protocol.TProtocol prot, ListBlobsResult struct) throws org.apache.thrift.TException {<NEW_LINE>TTupleProtocol iprot = (TTupleProtocol) prot;<NEW_LINE>{<NEW_LINE>org.apache.thrift.protocol.TList _list229 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, i...
struct.keys.add(_elem230);
276,103
public void run() {<NEW_LINE>try {<NEW_LINE>this.ttlScheduler.client.agentCheckPass(this.checkId);<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Sending consul heartbeat for: " + this.checkId);<NEW_LINE>}<NEW_LINE>} catch (OperationException e) {<NEW_LINE>if (this.ttlScheduler.heartbeatProperties.isReregiste...
warn(e.getMessage());
262,586
protected void onHandleIntent(Intent intent) {<NEW_LINE>Caches caches = new Caches(this);<NEW_LINE>if (intent != null) {<NEW_LINE>final String action = intent.getAction();<NEW_LINE>if (ACTION_SEND_PKG_INFO.equals(action)) {<NEW_LINE>String socketName = intent.getStringExtra(EXTRA_SOCKET_NAME);<NEW_LINE>if (socketName =...
socketName, onlyDebug, includeIcons, iconDensityScale);
1,384,845
public String toXml(int offset) {<NEW_LINE>StringBuilder buffer = new StringBuilder();<NEW_LINE>appendOffset(buffer, offset);<NEW_LINE>buffer.append("<relation ID=\"" + getId() + "\" TYPE =\"" + mType + "\" SUBTYPE=\"" + mSubtype + "\" MODALITY=\"" + mModality + "\" TENSE=\"" + mTense + "\">\n");<NEW_LINE>AceRelationMe...
).getArgs()[1];
782,087
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static float floatValue(com.sun.jdi.PrimitiveValue a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExc...
Mirror) a).virtualMachine();
1,804,889
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {<NEW_LINE>int pc = codeStream.position;<NEW_LINE>if (this.constant != Constant.NotAConstant) {<NEW_LINE>if (valueRequired) {<NEW_LINE>codeStream.generateConstant(this.constant, this.implicitConversion);<NEW_LINE>}<NEW_LINE>...
generateConstant(fieldConstant, this.implicitConversion);
1,130,093
public ResponseHeader execute() {<NEW_LINE>LogicSQL logicSQL = getLogicSQL();<NEW_LINE>ExecutionContext executionContext = getKernelProcessor().generateExecutionContext(logicSQL, getMetaData(), ProxyContext.getInstance().getContextManager().getMetaDataContexts().getProps());<NEW_LINE>// TODO move federation route logic...
> sqlStatementContext = logicSQL.getSqlStatementContext();
1,334,483
public void calculate(@NonNull final IPricingContext pricingCtx, @NonNull final IPricingResult result) {<NEW_LINE>final ILoggable loggable = Loggables.withLogger(logger, Level.DEBUG);<NEW_LINE>final Object referencedObject = pricingCtx.getReferencedObject();<NEW_LINE>final I_C_Flatrate_Conditions conditions = ContractP...
loggable.addLog("pricingCtx does not allow discounts; -> not considering C_Subscr_Discount; pricingCtx={}", pricingCtx);
1,584,251
private void doVerify() throws Exception {<NEW_LINE>List<BlockPayload> blocks = new ArrayList<BlockPayload>();<NEW_LINE>HeaderBlock header = store.readFirst(HeaderBlock.class);<NEW_LINE>blocks.add(header);<NEW_LINE>verifyTree(header.getRoot(), "", <MASK><NEW_LINE>Collections.sort(blocks, new Comparator<BlockPayload>() ...
blocks, Long.MAX_VALUE, true);
1,199,359
public void make(CodegenMethod method, CodegenClassScope classScope) {<NEW_LINE>CodegenSetterBuilder builder = new CodegenSetterBuilder(ModuleDependenciesRuntime.EPTYPE, ModuleDependenciesCompileTime.class, "md", classScope, method);<NEW_LINE>builder.expressionDefaultChecked("pathEventTypes", NameAndModule.makeArrayNul...
methodReturn(builder.getRefName());
77,298
private void distinguishSubmission(final Activity mContext, final Submission submission, final SubmissionViewHolder holder) {<NEW_LINE>new AsyncTask<Void, Void, Boolean>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onPostExecute(Boolean b) {<NEW_LINE>if (b) {<NEW_LINE>Snackbar s = Snackbar.make(holder.itemView...
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
1,161,028
protected final void fastPathOrderedEmitMax(U value, boolean delayError, Disposable dispose) {<NEW_LINE>final Subscriber<? super V> s = downstream;<NEW_LINE>final SimplePlainQueue<U> q = queue;<NEW_LINE>if (fastEnter()) {<NEW_LINE><MASK><NEW_LINE>if (r != 0L) {<NEW_LINE>if (q.isEmpty()) {<NEW_LINE>if (accept(s, value))...
long r = requested.get();
1,658,770
public static void main(String[] args) {<NEW_LINE>int numClusters = 20;<NEW_LINE>int numSamplesInClusters = 2000;<NEW_LINE>double[] variances = { 0.01 };<NEW_LINE>int vectorDim = 10;<NEW_LINE>ClusteredDataGenerator[] c = new ClusteredDataGenerator[vectorDim];<NEW_LINE>int i, j, n;<NEW_LINE>int totalVectors = 0;<NEW_LIN...
1), variances[i]);
1,102,358
public void createIndex(String collectionName, List<String> columnList, int order) {<NEW_LINE>DBCollection coll = mongoDb.getCollection(collectionName);<NEW_LINE>// List of all current<NEW_LINE>List<DBObject> indexes = coll.getIndexInfo();<NEW_LINE>// indexes on collection<NEW_LINE>// List of all current<NEW_LINE>Set<S...
BasicDBObject) index.get("key");
1,479,536
private CompletableFuture<Void> copyBytes(ChunkHandle writeHandle, ChunkHandle readHandle, long startOffset, long length) {<NEW_LINE>Preconditions.checkArgument(length <= chunkedSegmentStorage.getConfig().getMaxSizeForTruncateRelocationInbytes(), "size of data exceeds max size allowed for relocation. length={}, max={} ...
val writeAtOffset = new AtomicLong(0);
1,276,255
protected static void analyzeEqualsNode(ExprEqualsNode equalsNode, QueryGraphForge queryGraph, boolean isOuterJoin) {<NEW_LINE>if ((equalsNode.getChildNodes()[0] instanceof ExprIdentNode) && (equalsNode.getChildNodes()[1] instanceof ExprIdentNode)) {<NEW_LINE>ExprIdentNode identNodeLeft = (ExprIdentNode) equalsNode.get...
eligibility.getStreamNum(), exprNodeNoIdent);
1,112,162
void drawVideo(ComponentDrawContext context, int x, int y, State state) {<NEW_LINE>final var g = context.getGraphics();<NEW_LINE>final var attrs = getAttributeSet();<NEW_LINE>Object blinkOption = attrs.getValue(BLINK_OPTION);<NEW_LINE>final var cm = getColorModel(attrs.getValue(COLOR_OPTION));<NEW_LINE>final var s = at...
* w + 14, 100));
484,897
private void initComponents() {<NEW_LINE>setLayout(new MigLayout("fill", "[20%][80%]"));<NEW_LINE>add(new JLabel("Tool diameter"));<NEW_LINE>toolDiameter = new TextFieldWithUnit(Unit.MM, 3, controller.getSettings().getToolDiameter());<NEW_LINE>add(toolDiameter, "grow, wrap");<NEW_LINE>add(new JLabel("Feed speed"));<NEW...
add(new JLabel("Plunge speed"));
1,108,242
public Map<String, Object> importNode(String userName, AbstractAppConnNode node, Map<String, Object> resourceMap, Workspace workspace, String orcVersion) throws Exception {<NEW_LINE>NodeInfo nodeInfo = nodeInfoMapper.getWorkflowNodeByType(node.getNodeType());<NEW_LINE>AppConn appConn = AppConnManager.getAppConnManager(...
requestRef.setParameter("orcVersion", orcVersion);
307,384
void log(SessionLogEntry entry, String formattedMessage) {<NEW_LINE>int level = entry.getLevel();<NEW_LINE><MASK><NEW_LINE>String msgParm;<NEW_LINE>if ((formattedMessage == null || formattedMessage.equals("")) && loggedException != null) {<NEW_LINE>msgParm = loggedException.toString();<NEW_LINE>} else {<NEW_LINE>msgPar...
Throwable loggedException = entry.getException();
39,922
protected void updateMode() {<NEW_LINE>Mode mode = editor.getMode();<NEW_LINE>// necessary?<NEW_LINE>MutableAttributeSet standard = new SimpleAttributeSet();<NEW_LINE>StyleConstants.setAlignment(standard, StyleConstants.ALIGN_LEFT);<NEW_LINE>consoleDoc.setParagraphAttributes(0, 0, standard, true);<NEW_LINE>Font font = ...
stdStyle, font.getFamily());
560,809
public static void hullSet(Point a, Point b, ArrayList<Point> set, ArrayList<Point> hull) {<NEW_LINE>int insertPosition = hull.indexOf(b);<NEW_LINE>if (set.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (set.size() == 1) {<NEW_LINE>Point p = set.get(0);<NEW_LINE>set.remove(p);<NEW_LINE>hull.add(insertPosition, ...
hull.add(insertPosition, p);
679,595
public String test() {<NEW_LINE>// AppsServer<NEW_LINE>String server = p_data.getAppsServer();<NEW_LINE>boolean pass = server != null && server.length() > 0 && server.toLowerCase().indexOf("localhost") == -1 && !server.equals("127.0.0.1");<NEW_LINE>InetAddress appsServer = null;<NEW_LINE>String error = "Not correct: Ap...
File(p_data.getAppsServerDir());
631,009
private int submitSequential(final TaskMetaData meta) {<NEW_LINE>final int task;<NEW_LINE>debugInfo(meta);<NEW_LINE>if ((meta.getGlobalWork() == null) || (meta.getGlobalWork().length == 0)) {<NEW_LINE>// Sequential kernel execution<NEW_LINE>task = deviceContext.enqueueNDRangeKernel(kernel, 1, <MASK><NEW_LINE>} else {<N...
null, singleThreadGlobalWorkSize, singleThreadLocalWorkSize, null);
232,419
public // override SqlOperator<NEW_LINE>SqlNode rewriteCall(SqlValidator validator, SqlCall call) {<NEW_LINE>// check DISTINCT/ALL<NEW_LINE>validateQuantifier(validator, call);<NEW_LINE>List<SqlNode> operands = call.getOperandList();<NEW_LINE>if (operands.size() == 1) {<NEW_LINE>// No CASE needed<NEW_LINE>return operan...
elseExpr = Util.last(operands);
511,231
public void deploy(DmnDeploymentEntity deployment, Map<String, Object> deploymentSettings) {<NEW_LINE>LOGGER.debug("Processing deployment {}", deployment.getName());<NEW_LINE>// The ParsedDeployment represents the deployment, the decision and the DMN<NEW_LINE>// resource, parse, and model associated with each decision ...
deployment, deploymentSettings).build();
1,372,093
private SqlNode createOrderNode(OrderOperator operator) {<NEW_LINE>SqlNode sqlNode;<NEW_LINE>if (functionColumnMap.containsKey(operator.getColumn())) {<NEW_LINE>sqlNode = functionColumnMap.get(operator.getColumn());<NEW_LINE>} else {<NEW_LINE>if (operator.getColumn() == null) {<NEW_LINE>sqlNode = <MASK><NEW_LINE>} else...
SqlLiteral.createNull(SqlParserPos.ZERO);
1,220,520
public static FutureTask<Void> startInferenceProcessWatcher(Process process, MLContext mlContext) {<NEW_LINE>Thread inLogger = new Thread(new ShellExec.ProcessLogger(process.getInputStream(), new ShellExec.StdOutConsumer()));<NEW_LINE>Thread errLogger = new Thread(new ShellExec.ProcessLogger(process.getErrorStream(), <...
new ShellExec.StdOutConsumer()));
1,138,467
public void visitSymbol(ESymbol userSymbolNode, ScriptScope scriptScope) {<NEW_LINE>ExpressionNode irExpressionNode;<NEW_LINE>if (scriptScope.hasDecoration(userSymbolNode, StaticType.class)) {<NEW_LINE>Class<?> staticType = scriptScope.getDecoration(userSymbolNode, StaticType.class).getStaticType();<NEW_LINE>StaticNode...
ValueType.class).getValueType();
56,345
public static void initConsoleView(@Nonnull final SMTRunnerConsoleView consoleView, @Nonnull final String testFrameworkName, @javax.annotation.Nullable final TestLocationProvider locator, final boolean idBasedTreeConstruction, @Nullable final TestProxyFilterProvider filterProvider) {<NEW_LINE>consoleView.addAttachToPro...
= new TestProxyPrinterProvider(consoleView, filterProvider);
1,129,226
// snippet-start:[sagemaker.java2.transform_job.main]<NEW_LINE>public static void transformJob(SageMakerClient sageMakerClient, String s3Uri, String s3OutputPath, String modelName, String transformJobName) {<NEW_LINE>try {<NEW_LINE>TransformS3DataSource s3DataSource = TransformS3DataSource.builder().s3DataType("S3Prefi...
s3DataSource(s3DataSource).build();
1,692,240
private void informModuleNotification(final ViewNotificationContainer moduleViewNotificationContainer, final SQLProvider provider) throws CouldntLoadDataException {<NEW_LINE>if (moduleViewNotificationContainer.getDatabaseOperation().equals("INSERT")) {<NEW_LINE>final INaviModule module = moduleViewNotificationContainer...
.getNotificationModule().get();
1,776,878
public void serve404(HttpServletRequest servletRequest, HttpServletResponse servletResponse, NotFound e) {<NEW_LINE>Logger.warn("404 -> %s %s (%s)", servletRequest.getMethod(), servletRequest.getRequestURI(), e.getMessage());<NEW_LINE>servletResponse.setStatus(404);<NEW_LINE>servletResponse.setContentType("text/html");...
Scope.Session.current());
90,986
public List<CachedRow> fastFetchQuery() throws SQLException, DatabaseException {<NEW_LINE>CatalogAndSchema catalogAndSchema = new CatalogAndSchema(catalogName<MASK><NEW_LINE>if (database instanceof OracleDatabase) {<NEW_LINE>return queryOracle(catalogAndSchema, table);<NEW_LINE>} else if (database instanceof MSSQLDatab...
, schemaName).customize(database);
729,699
public static JdbcDatabaseContainer<?> create(DatabaseContainerType defaultType) throws IllegalArgumentException {<NEW_LINE>String <MASK><NEW_LINE>String dbProperty = System.getProperty("fat.bucket.db.type", defaultType.name());<NEW_LINE>Log.info(c, "create", "System property: fat.test.databases is " + dbRotation);<NEW...
dbRotation = System.getProperty("fat.test.databases");
1,408,868
private static InputStream fakeManifest(ModuleInfo m) throws IOException {<NEW_LINE>// NOI18N<NEW_LINE>String exp = (String) m.getAttribute("OpenIDE-Module-Public-Packages");<NEW_LINE>if ("-".equals(exp)) {<NEW_LINE>// NOI18N<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ByteArrayOutputStream os = new ByteArrayOutputStream...
).putValue("Manifest-Version", "1.0");
552,439
public static void main(String[] args) {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>System.out.print("Enter the Heap Capacity: ");<NEW_LINE>int hCap = sc.nextInt();<NEW_LINE>Min_Heap hp = new Min_Heap(hCap);<NEW_LINE>boolean flag = true;<NEW_LINE>int val = 0;<NEW_LINE>while (flag) {<NEW_LINE>System.out.prin...
System.out.print("Enter Key to be Deleted: ");
1,676,784
public void decode16x16(MBlock mBlock, Picture mb, Frame[][] refs, PartPred p0) {<NEW_LINE>int mbX = mapper.getMbX(mBlock.mbIdx);<NEW_LINE>int mbY = mapper.getMbY(mBlock.mbIdx);<NEW_LINE>boolean leftAvailable = <MASK><NEW_LINE>boolean topAvailable = mapper.topAvailable(mBlock.mbIdx);<NEW_LINE>boolean topLeftAvailable =...
mapper.leftAvailable(mBlock.mbIdx);
511,818
private static void tryAssertionSix(RegressionEnvironment env, String expression) {<NEW_LINE>env.compileDeploy(expression).addListener("s0");<NEW_LINE>String[] <MASK><NEW_LINE>sendBeanInt(env, "S00", 1, 1, 1);<NEW_LINE>env.assertPropsPerRowIteratorAnyOrder("s0", fields, new Object[][] { { "H01", "H11", "H01-H21" } });<...
fields = "valh0,valh1,valh2".split(",");
1,177,145
public void stateChanged(ChangeEvent e) {<NEW_LINE>if (project != null && ProviderUtil.isValidServerInstanceOrNone(project)) {<NEW_LINE>// stop listening once a server was set<NEW_LINE>serverStatusProvider.removeChangeListener(changeListener);<NEW_LINE>if (!Util.isContainerManaged(project)) {<NEW_LINE>// if selected se...
.setModel(new DefaultComboBoxModel());
1,265,353
final ExecuteChangeSetResult executeExecuteChangeSet(ExecuteChangeSetRequest executeChangeSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(executeChangeSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,082,826
private TextChunk[] extractChunks(@Nonnull UsageInfo2UsageAdapter usageInfo2UsageAdapter, @Nonnull PsiFile file) {<NEW_LINE>int absoluteStartOffset = usageInfo2UsageAdapter.getNavigationOffset();<NEW_LINE>if (absoluteStartOffset == -1)<NEW_LINE>return TextChunk.EMPTY_ARRAY;<NEW_LINE>Document visibleDocument = myDocumen...
myDocument).getDelegate() : myDocument;
1,267,970
public static void main(String[] args) {<NEW_LINE>File file = new File(args[0]);<NEW_LINE>try {<NEW_LINE>JarFile jar = new JarFile(file);<NEW_LINE>URLClassLoader loader = new URLClassLoader(new URL[] { file.toURI().toURL() });<NEW_LINE>Enumeration<JarEntry> entries = jar.entries();<NEW_LINE>while (entries.hasMoreElemen...
("loading class " + getClassName(entry));
531,363
public void synchronizeToLocalDirectory(final File localDirectory, final int maxFetchSize) {<NEW_LINE>if (maxFetchSize == 0) {<NEW_LINE>if (this.logger.isDebugEnabled()) {<NEW_LINE>this.logger.debug("Max Fetch Size is zero - fetch to " + <MASK><NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String remoteDirectory = th...
localDirectory.getAbsolutePath() + " ignored");
1,341,612
public List<CheckpointInfo> reachableCheckpoints() throws IOException {<NEW_LINE>var logFile = logFiles.getLogFile();<NEW_LINE>long highestVersion = logFile.getHighestLogVersion();<NEW_LINE>if (highestVersion < 0) {<NEW_LINE>return emptyList();<NEW_LINE>}<NEW_LINE>long lowestVersion = logFile.getLowestLogVersion();<NEW...
NO_MORE_CHANNELS, context.getMemoryTracker());
614,752
public void deleteFilesUploadSessionsId(String uploadSessionId) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'uploadSessionId' is set<NEW_LINE>if (uploadSessionId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'uploadSessionId'...
localVarAccept, localVarContentType, localVarAuthNames, null);
614,155
public void writeThermometerChart(JRChart chart) throws IOException {<NEW_LINE>writer.startElement(JRXmlConstants.ELEMENT_thermometerChart, getNamespace());<NEW_LINE>writeChart(chart);<NEW_LINE>writeValueDataset((JRValueDataset) chart.getDataset());<NEW_LINE>// write plot<NEW_LINE>JRThermometerPlot plot = (JRThermomete...
writeDataRange(plot.getMediumRange());
85,507
private List<AnnotationEntry> constructOverrideAnnotationEntryFromProperties(Map<String, Object> schemaProperties, AnnotationEntry.AnnotationType annotationType, ArrayDeque<String> pathToAnnotatedTarget, Object annotatedTarget, String startSchemaName) {<NEW_LINE>Object properties = schemaProperties.getOrDefault(getAnno...
OVERRIDE_PATH_ERROR_MSG_TEMPLATE_MAL_FORMATTED_KEY, entry.getKey());
534,440
public List<Object> query(EventQuery query) throws IOException {<NEW_LINE>List<Object> list = new ArrayList<>();<NEW_LINE>ModelVO model = modelDal.getModelById(query.getModelId());<NEW_LINE>String entityName = model.getEntityName();<NEW_LINE>String dateField = model.getReferenceDate();<NEW_LINE>Map<String, Object> quer...
filterMap.put("refDate", dateField);
1,523,687
public DeleteAppResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteAppResult deleteAppResult = new DeleteAppResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken...
String currentParentElement = context.getCurrentParentElement();
1,186,058
public Flux<?> receiveMessagesFromTopic(@PathVariable String name) {<NEW_LINE>DestinationsConfig.DestinationInfo d = destinationsConfig.getTopics().get(name);<NEW_LINE>if (d == null) {<NEW_LINE>return Flux.just(ResponseEntity.<MASK><NEW_LINE>}<NEW_LINE>Queue topicQueue = createTopicQueue(d);<NEW_LINE>String qname = top...
notFound().build());
1,456,157
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see org.apache.cxf.interceptor.Interceptor#handleMessage(org.apache.cxf.message.Message)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void handleMessage(Message message) {<NEW_LINE>handlersList = getHanderList(busType, flow);<NEW_LINE>if (handlersList == null || hand...
FLOW_TYPE, flow.toUpperCase());
1,672,173
private void saveStoredConfig() {<NEW_LINE>if (this.paired) {<NEW_LINE>File cfgFile = new File(generateConfigFilename());<NEW_LINE>File cfgDir = new File(getUserPersistenceDataFolder());<NEW_LINE>if (!cfgFile.exists()) {<NEW_LINE>try {<NEW_LINE>if (!cfgDir.exists()) {<NEW_LINE>cfgDir.mkdirs();<NEW_LINE>}<NEW_LINE>cfgFi...
". Data won't be saved so pairing will be lost. Error was " + e.getMessage());
1,071,461
public app.freerouting.geometry.planar.Shape transform_to_board(CoordinateTransform p_coordinate_transform) {<NEW_LINE>FloatPoint[] corner_arr = new FloatPoint[this.coordinate_arr.length / 2];<NEW_LINE>double[] curr_point = new double[2];<NEW_LINE>for (int i = 0; i < corner_arr.length; ++i) {<NEW_LINE>curr_point[0] = t...
= new IntPoint[corner_arr.length];
1,190,060
public void replaceTokens(int[] tokens, int start, int end) {<NEW_LINE>if (!this.record)<NEW_LINE>return;<NEW_LINE>tokens = filterTokens(tokens);<NEW_LINE>if (tokens.length == 0)<NEW_LINE>return;<NEW_LINE>this.data.replacedTokensPtr++;<NEW_LINE>if (this.data.replacedTokensStart == null) {<NEW_LINE>this.data.replacedTok...
this.data.replacedTokensPtr] = start;
959,111
private ObjectMetadata toObjectMetadata(ObjectMetadata metadata) {<NEW_LINE>// If we generated a symmetric key to encrypt the data, store it in the<NEW_LINE>// object metadata.<NEW_LINE>final byte[] encryptedCEK = getEncryptedCEK();<NEW_LINE>metadata.addUserMetadata(Headers.CRYPTO_KEY_V2, Base64.encodeAsString(encrypte...
, Base64.encodeAsString(iv));
1,025,650
public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroup == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Miss...
format("The resource ID '%s' is not valid. Missing path segment 'registrations'.", id)));
1,298,290
public void marshall(BGPPeer bGPPeer, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (bGPPeer == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(bGPPeer.getBgpPeerId(), BGPPEERID_BINDING);<NEW_LINE>protocolMa...
e.getMessage(), e);
1,186,718
public static DescribeBackupSourcesResponse unmarshall(DescribeBackupSourcesResponse describeBackupSourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupSourcesResponse.setRequestId<MASK><NEW_LINE>describeBackupSourcesResponse.setSuccess(_ctx.booleanValue("DescribeBackupSourcesResponse.Success"));<NEW_LIN...
(_ctx.stringValue("DescribeBackupSourcesResponse.RequestId"));
1,288,159
public void initialize(String rootDirName) throws RuntimeException, IOException {<NEW_LINE>String jFluidNativeLibFullName = Platform.getAgentNativeLibFullName(rootDirName, false, null, -1);<NEW_LINE>// NOI18N<NEW_LINE>String jFluidNativeLibDirName = jFluidNativeLibFullName.substring(0<MASK><NEW_LINE>// NOI18N // Need...
, jFluidNativeLibFullName.lastIndexOf('/'));
82,591
public void readFrom(MiniDump dump) throws IOException {<NEW_LINE>dump.coreSeek(getLocation());<NEW_LINE>short processorArchitecture = dump.coreReadShort();<NEW_LINE>short processorLevel = dump.coreReadShort();<NEW_LINE>short processorRevision = dump.coreReadShort();<NEW_LINE>// this probably shouldn't be formatted int...
dump.setProcessorArchitecture(processorArchitecture, procSubtype);
534,471
public void doAlarm(List<AlarmMessage> alarmMessage) {<NEW_LINE>alarmMessage.forEach(message -> {<NEW_LINE>if (LOGGER.isDebugEnabled()) {<NEW_LINE>LOGGER.debug("Alarm message: {}", message.getAlarmMessage());<NEW_LINE>}<NEW_LINE>AlarmRecord record = new AlarmRecord();<NEW_LINE>record.setScope(message.getScopeId());<NEW...
setStartTime(message.getStartTime());
1,337,331
private CompletableFuture<Boolean> updateCorpGroupDescription(Urn targetUrn, DescriptionUpdateInput input, QueryContext context) {<NEW_LINE>return CompletableFuture.supplyAsync(() -> {<NEW_LINE>if (!DescriptionUtils.isAuthorizedToUpdateDescription(context, targetUrn)) {<NEW_LINE>throw new AuthorizationException("Unauth...
), targetUrn, actor, _entityService);
1,622,575
final ListClassificationJobsResult executeListClassificationJobs(ListClassificationJobsRequest listClassificationJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listClassificationJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
(super.beforeMarshalling(listClassificationJobsRequest));
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...
t.getMessage(), t);
232,004
public void initComponents() {<NEW_LINE>jPanel = new JPanel();<NEW_LINE>jScrollPane1 = new JScrollPane(jPanel);<NEW_LINE>jScrollPane1.getViewport().setBackground(new Color(0, 0, 0, 0));<NEW_LINE>hand = new mage.client.cards.Cards(true, jScrollPane1);<NEW_LINE>hand.setCardDimension(GUISizeHelper.handCardDimension);<NEW_...
hand.setZone(Zone.HAND);
1,269,565
private void deleteNode(final Entity entity, final String c, final boolean closeChangeSet) {<NEW_LINE>final boolean isLocalEdit = openstreetmapUtil instanceof OpenstreetmapLocalUtil;<NEW_LINE>commitEntity(Action.DELETE, entity, openstreetmapUtil.getEntityInfo(entity.getId()), c, closeChangeSet, result -> {<NEW_LINE>if ...
getMapView().refreshMap(true);
318,302
public void configure(final LifecycleEnvironment lifecycle, final ServletEnvironment servlets, final JerseyEnvironment jersey, final HealthEnvironment health, final ObjectMapper mapper, final String name) {<NEW_LINE>if (!isEnabled()) {<NEW_LINE>LOGGER.info("Health check configuration is disabled.");<NEW_LINE>return;<NE...
HealthCheckRegistry envHealthChecks = health.healthChecks();
1,521,160
public static String build(Task task, List<File> inputs) {<NEW_LINE>List<SourceFile> externs;<NEW_LINE>try {<NEW_LINE>externs = CommandLineRunner.getDefaultExterns();<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw new BuildException(e);<NEW_LINE>}<NEW_LINE>List<SourceFile> jsInputs <MASK><NEW_LINE>for (File f : inpu...
= new ArrayList<SourceFile>();
1,544,962
public static void registerType(ModelBuilder modelBuilder) {<NEW_LINE>ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Stage.class, CMMN_ELEMENT_STAGE).namespaceUri(CMMN11_NS).extendsType(PlanFragment.class).instanceProvider(new ModelTypeInstanceProvider<Stage>() {<NEW_LINE><NEW_LINE>public Stage newInstan...
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
174,392
private void onDetectionTaskSuccess(List<DetectedObject> results) {<NEW_LINE>graphicOverlay.clear();<NEW_LINE>if (needUpdateGraphicOverlayImageSourceInfo) {<NEW_LINE>Size size = cameraXSource.getPreviewSize();<NEW_LINE>if (size != null) {<NEW_LINE>Log.d(TAG, "preview width: " + size.getWidth());<NEW_LINE>Log.d(TAG, "pr...
new ObjectGraphic(graphicOverlay, object));
805,856
public void cleanUpState(VirtualConnection vc) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, "cleanUpState");<NEW_LINE>}<NEW_LINE>// Remove the discriminator state from the state map.<NEW_LINE>SSLDiscriminatorState discState = (SSLDiscriminatorState) vc.getStateMap(...
Tr.event(tc, "Releasing decryptedNetworkBuffer");
992,404
public ProvisionedBandwidth unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ProvisionedBandwidth provisionedBandwidth = new ProvisionedBandwidth();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_...
().unmarshall(context));
1,315,688
public void consume(List<Datum> records) {<NEW_LINE>List<DatumWithNorm> toClassify = new ArrayList<>();<NEW_LINE>double[] scores = new double[records.size()];<NEW_LINE>for (int i = 0; i < records.size(); i++) {<NEW_LINE>Datum d = records.get(i);<NEW_LINE>DatumWithNorm dwn = new DatumWithNorm(d);<NEW_LINE>toClassify.add...
debug("{} Percentile Cutoff: {}", targetPercentile, cutoff);
525,621
public void marshall(Firewall firewall, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (firewall == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.marshall(firewall.getFire...
firewall.getFirewallName(), FIREWALLNAME_BINDING);
816,532
private void handle(APIAddLdapServerMsg msg) {<NEW_LINE>APIAddLdapServerEvent evt = new APIAddLdapServerEvent(msg.getId());<NEW_LINE>if (Q.New(LdapServerVO.class).eq(LdapServerVO_.scope, msg.getScope()).count() == 1) {<NEW_LINE>evt.setError(err(LdapErrors.MORE_THAN_ONE_LDAP_SERVER, "There has been a LDAP/AD server reco...
setBase(msg.getBase());
1,618,591
public void shutdown() {<NEW_LINE>if (this.started.compareAndSet(true, false) && null != this.deliverExecutorService) {<NEW_LINE>this.deliverExecutorService.shutdown();<NEW_LINE>try {<NEW_LINE>this.deliverExecutorService.awaitTermination(WAIT_FOR_SHUTDOWN, TimeUnit.MILLISECONDS);<NEW_LINE>} catch (InterruptedException ...
awaitTermination(WAIT_FOR_SHUTDOWN, TimeUnit.MILLISECONDS);
1,580,318
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>Log.i(TAG, "onCreate");<NEW_LINE>setContentView(io.selendroid.testapp.R.layout.verify_user);<NEW_LINE>Bundle extras = getIntent().getExtras();<NEW_LINE>if (extras != null) {<NEW_LINE>User user = (User) extras.getSeri...
testapp.R.id.label_preferedProgrammingLanguage_data);
56,823
// searches through morphotactics graph.<NEW_LINE>private List<SearchPath> search(List<SearchPath> currentPaths) {<NEW_LINE>if (currentPaths.size() > 30) {<NEW_LINE>currentPaths = pruneCyclicPaths(currentPaths);<NEW_LINE>}<NEW_LINE>List<SearchPath> result <MASK><NEW_LINE>// new Paths are generated with matching transit...
= new ArrayList<>(3);
393,731
public static AntProjectHelper createProject(final File dir, final String name, final JavaPlatform platform) throws IOException {<NEW_LINE>// NOI18N<NEW_LINE>Parameters.notNull("dir", dir);<NEW_LINE>// NOI18N<NEW_LINE>Parameters.notNull("name", name);<NEW_LINE>final FileObject dirFO = FileUtil.createFolder(dir);<NEW_LI...
final SpecificationVersion sourceLevel = getSourceLevel(platform);
118,937
private void update() {<NEW_LINE>try {<NEW_LINE>entityIRIField.setText("");<NEW_LINE>messageArea.setText("");<NEW_LINE>if (userSuppliedNameField.getText().trim().isEmpty()) {<NEW_LINE>setValid(false);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>OWLEntityCreationSet<?> creationSet = getOWLEntityCreationSet(EntityCreationMode.P...
OWLEntity owlEntity = creationSet.getOWLEntity();
596,194
/* recompute set of visible columns<NEW_LINE>*/<NEW_LINE>private void computeVisiblePorperties(int visCount) {<NEW_LINE>propertyColumns = new int[visCount];<NEW_LINE>TreeMap<Double, Integer> sort = new TreeMap<Double, Integer>();<NEW_LINE>for (int i = 0; i < allPropertyColumns.length; i++) {<NEW_LINE>int vi = allProper...
.values().iterator();
192,268
public static double crossGamma(double forward, double strike, double timeToExpiry, double lognormalVol) {<NEW_LINE>ArgChecker.isTrue(forward >= 0d, "negative/NaN forward; have {}", forward);<NEW_LINE>ArgChecker.isTrue(strike >= 0d, "negative/NaN strike; have {}", strike);<NEW_LINE>ArgChecker.isTrue(timeToExpiry >= 0d,...
nVal = NORMAL.getPDF(d2);
906,685
public static ProtoTxnOpImpl newTxnOp(TxnRequest request) {<NEW_LINE>ProtoTxnOpImpl op = RECYCLER.get();<NEW_LINE>op.setRequest(request);<NEW_LINE>RecyclableArrayList<CompareOp<byte[], byte[]>> compareOps = COMPARE_OPS_RECYCLER.newInstance();<NEW_LINE>for (Compare compare : request.getCompareList()) {<NEW_LINE>compareO...
> failureOps = OPS_RECYCLER.newInstance();
1,639,015
private synchronized void configWriter(String content, Path filePath) {<NEW_LINE>if (Files.exists(filePath) && !Files.isWritable(filePath)) {<NEW_LINE>log.error("Error file is not writable: " + filePath);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (Files.notExists(filePath.getParent())) {<NEW_LINE>try {<NEW_LINE>Files.cre...
e.getMessage(), e);
1,177,697
protected void updateBeforeRender() {<NEW_LINE>super.updateBeforeRender();<NEW_LINE>this.selectCPU.setMessage(getNextCpuButtonLabel());<NEW_LINE>CraftingPlanSummary plan = menu.getPlan();<NEW_LINE>boolean planIsStartable = plan != null && !plan.isSimulation();<NEW_LINE>this.start.active = !this.menu.hasNoCPU() && planI...
= GuiText.CalculatingWait.text();