idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
274,462
private void normalizeIntensities() {<NEW_LINE>normalizedXIntensities = new float[numberOfSnps];<NEW_LINE>normalizedYIntensities = new float[numberOfSnps];<NEW_LINE>for (int i = 0; i < rawXIntensities.length; i++) {<NEW_LINE><MASK><NEW_LINE>final int rawY = rawYIntensities[i];<NEW_LINE>final int normId;<NEW_LINE>int no...
final int rawX = rawXIntensities[i];
1,253,749
private boolean prepareDataCell(CrosstabCell data, int column, int availableHeight, int xOffset) throws JRException {<NEW_LINE>int rowY = rowYs.get(rowIdx);<NEW_LINE>JRFillCrosstabCell cell = crossCells[data.getRowTotalGroupIndex()][data.getColumnTotalGroupIndex()];<NEW_LINE>JRFillCellContents contents = cell == null ?...
setCountVars(rowIdx + startRowIndex, column);
1,730,080
public void afterLoadState() {<NEW_LINE>if (myProject.isDefault()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>myCacheRefreshTimer = UIUtil.createNamedTimer("TaskManager refresh", myConfig.updateInterval * 60 * 1000, new ActionListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(@Nonnull ActionEven...
getMulticaster().taskActivated(myActiveTask);
22,641
public static void scale(String userName, String password, String appId, Integer instances) throws SaturnJobConsoleException {<NEW_LINE>JSONObject params = new JSONObject();<NEW_LINE>params.put("instances", instances);<NEW_LINE>String urlStr = SaturnEnvProperties.VIP_SATURN_DCOS_REST_URI + API_VERSION_DES + appId + "?f...
StatusLine statusLine = httpResponse.getStatusLine();
468,970
private Identity checkIdentity(Business business, PullResult result, Person person, Unit unit, User user) throws Exception {<NEW_LINE>EntityManagerContainer emc = business.entityManagerContainer();<NEW_LINE>EntityManager em = emc.get(Identity.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>Crite...
identity = os.get(0);
777,418
// // Component size ////<NEW_LINE>@Override<NEW_LINE>public void paintComponent(Graphics g) {<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>// g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);<NEW_LINE>Rectangle r = getBounds();<NEW_LINE>int centerWidth = r.width - draggerLef...
g2.setColor(Theme.TEXT_DISABLED_COLOR);
523,881
public void serialize(ByteBuf buf) {<NEW_LINE>super.serialize(buf);<NEW_LINE>long startCol = splitContext.getPartKey().getStartCol();<NEW_LINE>if (isUseIntKey()) {<NEW_LINE>if (splitContext.isEnableFilter()) {<NEW_LINE>long filterValue = (long) splitContext.getFilterThreshold();<NEW_LINE>int position = buf.writerIndex(...
buf.setInt(position, needUpdateItemNum);
1,256,451
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabelName = new javax.swing.JLabel();<NEW_LINE>jTextFieldName = new javax.swing.JTextField();<NEW_LINE>jLabelJarFiles = ne...
(AntArtifactChooser.class, "LBL_AACH_ProjectName_JLabel"));
1,253,943
public AddRemoveCount synchronizeSearchParamsToDatabase(ResourceIndexedSearchParams theParams, ResourceTable theEntity, ResourceIndexedSearchParams existingParams) {<NEW_LINE>AddRemoveCount retVal = new AddRemoveCount();<NEW_LINE>synchronize(theEntity, retVal, theParams.myStringParams, existingParams.myStringParams);<N...
theParams.myQuantityNormalizedParams, existingParams.myQuantityNormalizedParams);
572,368
private ExceptionResponse summarizeException(ExceptionResponse response1) {<NEW_LINE>Map<String, ExceptionDatum> exceptionSummary = new HashMap<>();<NEW_LINE>for (ExceptionDatum edp : response1.getExceptionDatapointList()) {<NEW_LINE>// Get classname by splitting on first colon<NEW_LINE>int pos = edp.getStackTrace().in...
, edp3.getLogging()));
1,731,035
public static void reloadData(@NonNull OsmandApplication app, @NonNull FragmentActivity activity) {<NEW_LINE>final WeakReference<FragmentActivity> activityRef = new WeakReference<>(activity);<NEW_LINE>app.getResourceManager().reloadIndexesAsync(IProgress.EMPTY_PROGRESS, new ReloadIndexesListener() {<NEW_LINE><NEW_LINE>...
.loading_data), ProgressDialog.STYLE_HORIZONTAL);
1,578,366
public void afterDeleteOperations(final OIdentifiable id) {<NEW_LINE>if (id instanceof ODocument) {<NEW_LINE>ODocument doc = (ODocument) id;<NEW_LINE>OImmutableClass clazz = ODocumentInternal.getImmutableSchemaClass(this, doc);<NEW_LINE>if (clazz != null) {<NEW_LINE>OClassIndexManager.checkIndexesAfterDelete(doc, this)...
getFunctionLibrary().droppedFunction(doc);
44,232
final DBInstance executeModifyDBInstance(ModifyDBInstanceRequest modifyDBInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyDBInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Cl...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
827,755
public String deleteBatchLog(DeletePerformanceRequest request) {<NEW_LINE>ServiceUtils.getSelectAllIds(request, request.getCondition(), (query) -> getLoadTestIds(request.getProjectId()));<NEW_LINE>List<String> loadTestIds = request.getIds();<NEW_LINE>LoadTestExample example = new LoadTestExample();<NEW_LINE>example.<MA...
createCriteria().andIdIn(loadTestIds);
490,348
public static boolean verifyTopology(TopologyAPI.Topology topology) {<NEW_LINE>if (!topology.hasName() || topology.getName().isEmpty()) {<NEW_LINE>LOG.severe("Missing topology name");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (topology.getName().contains(".") || topology.getName().contains("/")) {<NEW_LINE>LOG.seve...
getStream().getId());
1,379,023
protected Composite createDialogArea(@NotNull Composite parent) {<NEW_LINE>Composite <MASK><NEW_LINE>SashForm sash = new SashForm(dialogArea, SWT.HORIZONTAL);<NEW_LINE>sash.setLayoutData(new GridData(GridData.FILL_BOTH));<NEW_LINE>createNodesTable(sash);<NEW_LINE>propertyEditor = new PropertyTreeViewer(sash, SWT.BORDER...
dialogArea = super.createDialogArea(parent);
1,418,359
final ListComponentBuildVersionsResult executeListComponentBuildVersions(ListComponentBuildVersionsRequest listComponentBuildVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listComponentBuildVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
853,006
public void execute(String shardingNode, Set<String> tables) {<NEW_LINE>StringBuilder sbSql = new StringBuilder();<NEW_LINE>for (String table : tables) {<NEW_LINE>sbSql.append(SQL_SHOW_CREATE_TABLE.replace("{0}", table));<NEW_LINE>}<NEW_LINE>ShardingNode dn = DbleServer.getInstance().getConfig().getShardingNodes().get(...
(shardingNode, tables, ds));
626,565
protected void classInstanceCreation(boolean hasClassBody) {<NEW_LINE>// ClassInstanceCreationExpression ::= 'new' ClassType '(' ArgumentListopt ')' ClassBodyopt<NEW_LINE>// ClassBodyopt produces a null item on the astStak if it produces NO class body<NEW_LINE>// An empty class body produces a 0 on the length stack.......
char[] oldIdent = assistIdentifier();
545,302
public static void main(String[] args) {<NEW_LINE>setup();<NEW_LINE>GeneralRocketSaver saver = new GeneralRocketSaver();<NEW_LINE>for (String inputFile : args) {<NEW_LINE>System.out.println("Converting " + inputFile + "...");<NEW_LINE>if (!inputFile.matches(".*\\.[rR][kK][tT]$")) {<NEW_LINE>System.err.println("ERROR: F...
setFileType(StorageOptions.FileType.OPENROCKET);
1,027,539
public static <//<NEW_LINE>//<NEW_LINE>T> //<NEW_LINE>T //<NEW_LINE>parseObject(//<NEW_LINE>InputStream is, //<NEW_LINE>Charset charset, //<NEW_LINE>Type type, //<NEW_LINE>ParserConfig config, //<NEW_LINE>ParseProcess processor, int featureValues, Feature... features) throws IOException {<NEW_LINE>if (charset == null) ...
bytes.length * 3 / 2];
1,030,318
public double tableCardinality(RelOptTable table) {<NEW_LINE>final JdbcTable jdbcTable = table.unwrap(JdbcTable.class);<NEW_LINE>return withBuilder(jdbcTable.jdbcSchema, (cluster, relOptSchema, jdbcSchema, relBuilder) -> {<NEW_LINE>// Generate:<NEW_LINE>// SELECT COUNT(*) FROM `EMP`<NEW_LINE>relBuilder.push(table.toRel...
), relBuilder.count());
142,482
public void _delete() {<NEW_LINE>String dbName = JPA.getDBName(this.getClass());<NEW_LINE>try {<NEW_LINE>avoidCascadeSaveLoops.set(<MASK><NEW_LINE>try {<NEW_LINE>saveAndCascade(true);<NEW_LINE>} finally {<NEW_LINE>avoidCascadeSaveLoops.get().clear();<NEW_LINE>}<NEW_LINE>em(dbName).remove(this);<NEW_LINE>try {<NEW_LINE>...
new HashSet<JPABase>());
809,762
// solve() method will act as solving the problem<NEW_LINE>int solve(int[] price, int[] size, int m, int n) {<NEW_LINE>// Create 2-D array to store the value of profit<NEW_LINE>int[][] dp = new int[m + 1][n + 1];<NEW_LINE>for (int i = 0; i < m + 1; i++) {<NEW_LINE>for (int j = 0; j < n + 1; j++) {<NEW_LINE>// if size =...
i - 1][j]);
1,542,479
final public synchronized void updateApps(RemoteBootAppData[] appData) {<NEW_LINE>logger.info("updating settings for remote processses to track - start");<NEW_LINE>// remove outdated remote apps<NEW_LINE>Set<RemoteBootAppData> newAppData = new HashSet<>(Arrays.asList(appData));<NEW_LINE>Iterator<Entry<RemoteBootAppData...
.entrySet().iterator();
1,180,282
final DeleteDomainAssociationResult executeDeleteDomainAssociation(DeleteDomainAssociationRequest deleteDomainAssociationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDomainAssociationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
(super.beforeMarshalling(deleteDomainAssociationRequest));
1,244,475
protected int indexOfKey(int key) {<NEW_LINE>final int length = table.length;<NEW_LINE>final int hash = <MASK><NEW_LINE>int i = hash % length;<NEW_LINE>// double hashing, see<NEW_LINE>int decrement = hash % (length - 2);<NEW_LINE>// http://www.eece.unm.edu/faculty/heileman/hash/node4.html<NEW_LINE>// int decrement = (h...
HashFunctions.hash(key) & 0x7FFFFFFF;
1,143,100
final DeletePlatformVersionResult executeDeletePlatformVersion(DeletePlatformVersionRequest deletePlatformVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePlatformVersionRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,681,291
public boolean isTemporaryPreviewAvailable(String fileSystemId, String mimeType) {<NEW_LINE>if (temporaryThumbnailsMap.get(fileSystemId) != null && !temporaryThumbnailsMap.get(fileSystemId).isEmpty()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if ("".equals(temporaryThumbnailsMap.get(fileSystemId))) {<NEW_LINE>// we'v...
temporaryThumbnailsMap.put(fileSystemId, previewAsBase64);
167,818
public final void keyword_when() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST keyword_when_AST = null;<NEW_LINE>AST tmp375_AST = null;<NEW_LINE>tmp375_AST = astFactory.create(LT(1));<NEW_LINE>astFactory.addASTChild(currentAST, t...
(1), getFilename());
691,937
public void updateDownloadShares(UpdateDownloadSharesBulkRequest body, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// create path and map variables<NEW_LINE>S...
throw new ApiException(400, "Missing the required parameter 'body' when calling updateDownloadShares");
553,859
public void closeAllConsumersForDelete(DestinationHandler destinationBeingDeleted) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "closeAllConsumersForDelete", destinationBeingDeleted);<NEW_LINE>Iterator<DispatchableKey> itr = null;<NEW_LINE>Iterator<DispatchableKey...
DispatchableKey consumerKey = clonedItr.next();
320,066
private static void bindFloat(Connection conn) throws SQLException {<NEW_LINE>String sql = "insert into ? using stable2 tags(?,?) values(?,?,?)";<NEW_LINE>TSDBPreparedStatement pstmt = conn.prepareStatement(sql).unwrap(TSDBPreparedStatement.class);<NEW_LINE>for (int i = 1; i <= numOfSubTable; i++) {<NEW_LINE>// set tab...
pstmt.setFloat(1, f1List);
1,275,857
public static void main(String[] args) {<NEW_LINE>PingClientConfig config = parseArgs(args);<NEW_LINE>boolean useHeader = "header".equals(config.getTransport());<NEW_LINE>final RpcClientFactory clientFactory = useHeader ? new LegacyRpcClientFactory(new ThriftClientConfig().setDisableSSL(true)) : new RSocketRpcClientFac...
response = client.ping(request);
119,683
private LensSupport<LensGraphMouse> createMagnifier() {<NEW_LINE>Lens lens = Lens.builder().lensShape(Lens.Shape.RECTANGLE).magnification(3.f).build();<NEW_LINE>lens.setMagnification(2.f);<NEW_LINE>LensMagnificationGraphMousePlugin magnificationPlugin = new LensMagnificationGraphMousePlugin(1.f, 60.f, .2f) {<NEW_LINE><...
magnificationPlugin(magnificationPlugin).build();
1,140,004
public void visitPhpFunctionCall(@NotNull FunctionReference reference) {<NEW_LINE>final String functionName = reference.getName();<NEW_LINE>if (functionName != null) {<NEW_LINE>if (relevantAliases.containsKey(functionName) && this.isFromRootNamespace(reference)) {<NEW_LINE>final PsiElement target = NamedElementUtil.get...
original = relevantAliases.get(functionName);
1,496,881
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>painelRolagem = <MASK><NEW_LINE>console = new javax.swing.JTextArea();<NEW_LINE>setFocusable(false);<NEW_LINE>setOpaque(fal...
new javax.swing.JScrollPane();
56,678
public void testRxFlowableInvoker_get3WithGenericType(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Executors.defaul...
executorService = Executors.newSingleThreadExecutor(jaxrs21ThreadFactory);
1,249,045
public DescribeAvailabilityZonesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeAvailabilityZonesResult describeAvailabilityZonesResult = new DescribeAvailabilityZonesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NE...
().unmarshall(context));
62,427
private boolean circuit(V v, int depth, TaskMonitor monitor) throws CancelledException {<NEW_LINE>monitor.checkCanceled();<NEW_LINE>// TODO<NEW_LINE>// Sigh. We are greatly limited in the size of paths we can processes due to the<NEW_LINE>// recursive nature of this algorithm. This should be changed to be non-recursi...
V u = e.getEnd();
976,475
public Response create(@Context SecurityContext sc, @ApiParam(value = "Tag object", required = true) @Valid TagBean tag) throws Exception {<NEW_LINE>String operator = sc<MASK><NEW_LINE>TagBean retEntity = new TagBean();<NEW_LINE>if (handlers.containsKey(tag.getTarget_type())) {<NEW_LINE>LOG.debug("Found handler for tar...
.getUserPrincipal().getName();
1,380,424
private void table1Select() {<NEW_LINE>String[] vorlage = new String[ListePsetVorlagen.PGR_MAX_ELEM];<NEW_LINE>for (int i = 0; i < ListePsetVorlagen.PGR_MAX_ELEM; i++) {<NEW_LINE>vorlage[i] = "";<NEW_LINE>}<NEW_LINE>int selectedTableRow = jTableVorlagen.getSelectedRow();<NEW_LINE>if (selectedTableRow >= 0) {<NEW_LINE>i...
(vorlage[ListePsetVorlagen.PGR_URL_NR]);
975,204
/*package*/<NEW_LINE>String generateAuthorizationHeader(String method, String url, HttpParameter[] params, String nonce, String timestamp, OAuthToken otoken) {<NEW_LINE>if (null == params) {<NEW_LINE>params = new HttpParameter[0];<NEW_LINE>}<NEW_LINE>List<HttpParameter> oauthHeaderParams = new ArrayList<HttpParameter>(...
new HttpParameter("oauth_nonce", nonce));
368,825
private void closeInvalidZkClient(Map<String, ZkCluster> newClusterMap) {<NEW_LINE>Iterator<Entry<String, ZkCluster>> iterator = zkClusterMap.entrySet().iterator();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>Entry<String, ZkCluster> next = iterator.next();<NEW_LINE>String zkClusterKey = next.getKey();<NEW_LINE>ZkCl...
newClusterMap.put(zkClusterKey, zkCluster);
1,844,282
private Addon fromAddonEntry(AddonEntryDTO addonEntry) {<NEW_LINE>String fullId = ADDON_ID_PREFIX + addonEntry.id;<NEW_LINE>boolean installed = addonHandlers.stream().anyMatch(handler -> handler.supports(addonEntry.type, addonEntry.contentType) && handler.isInstalled(fullId));<NEW_LINE>Map<String, Object> properties = ...
put("json_download_url", addonEntry.url);
1,320,814
public static GetPatentPlanDetailListResponse unmarshall(GetPatentPlanDetailListResponse getPatentPlanDetailListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getPatentPlanDetailListResponse.setRequestId(_ctx.stringValue("GetPatentPlanDetailListResponse.RequestId"));<NEW_LINE>getPatentPlanDetailListResponse.setPageNum(...
("GetPatentPlanDetailListResponse.Data[" + i + "].PlanDetailId"));
455,489
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String applicationId) throws Exception {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE><MASK><NEW_LINE>Application application = emc.f...
Business business = new Business(emc);
1,724,188
private QueryResults<BackendEntry> queryByName(ConditionQuery query) {<NEW_LINE>if (!this.needIndexForName()) {<NEW_LINE>return super.query(query);<NEW_LINE>}<NEW_LINE>IndexLabel il = IndexLabel.label(query.resultType());<NEW_LINE>String name = (String) query.condition(HugeKeys.NAME);<NEW_LINE>E.checkState(name != null...
ConditionQuery(HugeType.SECONDARY_INDEX, query);
1,029,352
public DestinationFileWriter create(final S3DestinationConfig config, final AmazonS3 s3Client, final ConfiguredAirbyteStream configuredStream, final Timestamp uploadTimestamp) throws Exception {<NEW_LINE>final S3Format format = config.getFormatConfig().getFormat();<NEW_LINE>if (format == S3Format.AVRO || format == S3Fo...
final JsonToAvroSchemaConverter schemaConverter = new JsonToAvroSchemaConverter();
146,059
public void update() {<NEW_LINE>while (unprocessedMethods.hasNext()) {<NEW_LINE>MethodOrMethodContext m = unprocessedMethods.next();<NEW_LINE>Filter filter = new Filter(new EdgePredicate() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean want(Edge e) {<NEW_LINE>if (e.kind() == Kind.CLINIT)<NEW_LINE>return false;<...
.getInvokeExpr().getMethod();
1,217,521
public void loadDynamicClasses() {<NEW_LINE>final ArrayList<SootClass> <MASK><NEW_LINE>final Options opts = Options.v();<NEW_LINE>final Map<String, List<String>> temp = new HashMap<>();<NEW_LINE>temp.put(null, opts.dynamic_class());<NEW_LINE>final ModulePathSourceLocator msloc = ModulePathSourceLocator.v();<NEW_LINE>fo...
dynamicClasses = new ArrayList<>();
1,220,938
public ASTNode visitAlterTable(final AlterTableContext ctx) {<NEW_LINE>PostgreSQLAlterTableStatement result = new PostgreSQLAlterTableStatement();<NEW_LINE>result.setTable((SimpleTableSegment) visit(ctx.tableNameClause().tableName()));<NEW_LINE>if (null != ctx.alterDefinitionClause()) {<NEW_LINE>for (AlterDefinitionSeg...
.add((ModifyColumnDefinitionSegment) each);
1,800,105
protected void render(ItemStack stack, SymmetryWandModel model, PartialItemModelRenderer renderer, ItemTransforms.TransformType transformType, PoseStack ms, MultiBufferSource buffer, int light, int overlay) {<NEW_LINE>float worldTime = AnimationTickHolder.getRenderTime() / 20;<NEW_LINE>int maxLight = LightTexture.FULL_...
model.getOriginalModel(), light);
928,429
protected String extractImportsFromType(TypeSymbol typeSymbol, Set<Identifier> imports) {<NEW_LINE>String text = typeSymbol.signature();<NEW_LINE>StringBuilder newText = new StringBuilder();<NEW_LINE>Matcher matcher = FULLY_QUALIFIED_MODULE_ID_PATTERN.matcher(text);<NEW_LINE>int nextStart = 0;<NEW_LINE>// Matching Full...
(text.substring(nextStart));
800,915
public boolean performFinish() {<NEW_LINE>final String sourceURI = cloneSource.getSource();<NEW_LINE>final String dest = cloneSource.getDestination();<NEW_LINE>try {<NEW_LINE>getContainer().run(true, true, new IRunnableWithProgress() {<NEW_LINE><NEW_LINE>public void run(IProgressMonitor monitor) throws InvocationTarget...
(CoreException) e.getCause();
415,032
public List<Integer> mostVisited(int n, int[] rounds) {<NEW_LINE>int[] ans = new int[n];<NEW_LINE>for (int i = 0; i < rounds.length; i++) {<NEW_LINE>rounds[i]--;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < rounds.length - 1; i++) {<NEW_LINE>int start = rounds[i];<NEW_LINE>int end = rounds[i + 1];<NEW_LINE>i...
ans[rounds[0]]++;
1,573,905
public static CompiledRule compile(Rule rule, HtmlSpanner spanner) {<NEW_LINE>Log.d("CSSCompiler", "Compiling rule " + rule);<NEW_LINE>List<List<TagNodeMatcher>> matchers = new ArrayList<List<TagNodeMatcher>>();<NEW_LINE>List<StyleUpdater> styleUpdaters = new ArrayList<StyleUpdater>();<NEW_LINE>for (Selector selector :...
), propertyValue.getValue());
532,314
protected int diffSynchronized(JCSynchronized oldT, JCSynchronized newT, int[] bounds) {<NEW_LINE>int localPointer = bounds[0];<NEW_LINE>// lock<NEW_LINE>int[] lockBounds = getBounds(oldT.lock);<NEW_LINE>copyTo(localPointer, lockBounds[0]);<NEW_LINE>localPointer = diffTree(oldT.lock, newT.lock, lockBounds);<NEW_LINE>//...
(localPointer, bounds[1]);
55,541
public void start() throws InterruptedException {<NEW_LINE>long startTimeMs = time.milliseconds();<NEW_LINE>try {<NEW_LINE>logger.info("Starting storage manager");<NEW_LINE>List<Thread> startupThreads = new ArrayList<>();<NEW_LINE>for (final DiskManager diskManager : diskToDiskManager.values()) {<NEW_LINE>Thread thread...
this, diskToDiskManager.size());
1,500,826
public void createBeforeUnloadDialog(WebView view, String message, final JsResult result, String responseMessage, String confirmButtonTitle, String cancelButtonTitle) {<NEW_LINE>String alertMessage = (responseMessage != null && !responseMessage.isEmpty()) ? responseMessage : message;<NEW_LINE>DialogInterface.OnClickLis...
.getActivity() : plugin.activity;
372,730
public void buildDestinationRow(@NonNull View view, String timeText, final Spannable title, Spannable secondaryText, LatLon location, LinearLayout imagesContainer, OnClickListener onClickListener) {<NEW_LINE>OsmandApplication app = requireMyApplication();<NEW_LINE>FrameLayout baseItemView = new FrameLayout(view.getCont...
24), dpToPx(24));
112,540
private List<String> path(Element owner, TypeElement annotation, ExecutableElement exec) {<NEW_LINE>List<String> prefix = path(owner);<NEW_LINE>if (prefix.isEmpty()) {<NEW_LINE>// Look at parent @path annotation<NEW_LINE>List<TypeElement> superTypes = superTypes(owner);<NEW_LINE>int i = superTypes.size() - 1;<NEW_LINE>...
Collections.singletonList("/") : prefix;
1,542,779
public CustomEmailLambdaVersionConfigType unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CustomEmailLambdaVersionConfigType customEmailLambdaVersionConfigType = new CustomEmailLambdaVersionConfigType();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement...
class).unmarshall(context));
382,008
private ContentValues mapStory(Map<String, Object> map, Story.FILTER filter, Integer rank) {<NEW_LINE>ContentValues storyValues = new ContentValues();<NEW_LINE>try {<NEW_LINE>String by = (String) map.get("by");<NEW_LINE>Long id = (Long) map.get("id");<NEW_LINE>String type = (String) map.get("type");<NEW_LINE>Long time ...
FILTER, filter.name());
767,206
public void jobExists(String jobId, boolean errorIfMissing, ActionListener<Boolean> listener) {<NEW_LINE>GetRequest getRequest = new GetRequest(MlConfigIndex.indexName(), Job.documentId(jobId));<NEW_LINE>getRequest.fetchSourceContext(FetchSourceContext.DO_NOT_FETCH_SOURCE);<NEW_LINE>executeAsyncWithOrigin(client, ML_OR...
listener.onResponse(Boolean.TRUE);
210,501
protected void update() {<NEW_LINE>if (!isUpdateNeeded()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(numGains) {<NEW_LINE>case 0:<NEW_LINE>assert (A == null);<NEW_LINE>break;<NEW_LINE>case 1:<NEW_LINE>A.put(0, colorParameters[0]);<NEW_LINE>A.put(4, colorParameters[0]);<NEW_LINE>A.put(8, colorParameters[0]);<NEW_LINE...
(4, colorParameters[1]);
810,888
public Kryo create() {<NEW_LINE>Kryo kryo = new Kryo();<NEW_LINE>kryo.setRegistrationRequired(false);<NEW_LINE>// register serializer<NEW_LINE>kryo.register(Arrays.asList("").getClass(), new ArraysAsListSerializer());<NEW_LINE>kryo.register(GregorianCalendar<MASK><NEW_LINE>kryo.register(InvocationHandler.class, new Jdk...
.class, new GregorianCalendarSerializer());
509,759
final DescribeVpcClassicLinkResult executeDescribeVpcClassicLink(DescribeVpcClassicLinkRequest describeVpcClassicLinkRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeVpcClassicLinkRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,715,945
public void write(JsonWriter out, T value) throws IOException {<NEW_LINE>Class<?> srcType = value.getClass();<NEW_LINE>String label = subtypeToLabel.get(srcType);<NEW_LINE>TypeAdapter<T> delegate = (TypeAdapter<T>) subtypeToDelegate.get(srcType);<NEW_LINE>if (delegate == null)<NEW_LINE>throw new JsonParseException("Can...
toJsonTree(value).getAsJsonObject();
1,457,339
public void start(Stage stage) {<NEW_LINE>stage.setTitle("TextBoxClipboard");<NEW_LINE>Scene scene = new Scene(new Group(), 600, 450);<NEW_LINE>scene.setFill(Color.GHOSTWHITE);<NEW_LINE>final Label copyFrom = new Label("Copy From: ");<NEW_LINE>final TextField copyFromText = new TextField("ABC 123");<NEW_LINE>final HBox...
out.println("TYPE: " + type);
770,575
void buildStatic(SmallRyeContextPropagationRecorder recorder) throws ClassNotFoundException, IOException {<NEW_LINE>List<ThreadContextProvider> discoveredProviders = new ArrayList<>();<NEW_LINE>List<ContextManagerExtension> discoveredExtensions = new ArrayList<>();<NEW_LINE>for (Class<?> provider : ServiceUtil.classesN...
getDeclaredConstructor().newInstance());
1,161,449
private static SweepPriority hydrate(SweepPriorityTable.SweepPriorityRowResult rr) {<NEW_LINE>return ImmutableSweepPriority.builder().tableRef(TableReference.createUnsafe(rr.getRowName().getFullTableName())).writeCount(rr.hasWriteCount() ? rr.getWriteCount() : 0L).lastSweepTimeMillis(rr.hasLastSweepTime() ? OptionalLon...
) : 0L).build();
1,675,524
private void selectFolderInternal(final SelectAction action, final PersistableFolder folder, final Uri startUri, final CopyChoice copyChoice) {<NEW_LINE>// call for document tree dialog<NEW_LINE>final Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE);<NEW_LINE>intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMI...
? Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION : 0));
595,548
private Mono<Response<Flux<ByteBuffer>>> disableAzureMonitorWithResponseAsync(String resourceGroupName, String clusterName) {<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_...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,410,384
private ProductType type(PersistableProductType type, ProductType destination) throws ServiceException {<NEW_LINE>if (destination == null) {<NEW_LINE>destination = new ProductType();<NEW_LINE>}<NEW_LINE>destination.setCode(type.getCode());<NEW_LINE>destination.setId(type.getId());<NEW_LINE>destination.setAllowAddToCart...
type.ProductTypeDescription>(descriptions));
1,437,215
private ByteArray[] generateDerivedByteValuesForGD(TreeMap<Object, DerivedValue> sortedMap) {<NEW_LINE>Iterator<Map.Entry<Object, DerivedValue>> sortedIterator = sortedMap.entrySet().iterator();<NEW_LINE>int cardinality = sortedMap.size();<NEW_LINE>ByteArray[] values = new ByteArray[cardinality];<NEW_LINE>Random random...
.entrySet().iterator();
1,519,221
public CompletableFuture<TableStore> openTableStore(long scId, RangeId rid, int ttlSeconds) {<NEW_LINE>TableStore store = tableStores.get(rid);<NEW_LINE>if (null != store) {<NEW_LINE>return FutureUtils.value(store);<NEW_LINE>}<NEW_LINE>CompletableFuture<TableStore> openFuture = tableStoresOpening.get(rid);<NEW_LINE>if ...
tableStoresOpening.putIfAbsent(rid, openFuture);
1,276,748
public INDArray permute(int... rearrange) {<NEW_LINE>Preconditions.checkArgument(rearrange.length == rank(), "Incorrect number of arguments for permute function:" + <MASK><NEW_LINE>Nd4j.getCompressor().autoDecompress(this);<NEW_LINE>boolean alreadyInOrder = true;<NEW_LINE>// IntBuffer shapeInfo = shapeInfo();<NEW_LINE>...
" got arguments %s for rank %s array. Number of arguments must equal array rank", rearrange, rank());
601,415
public static Map<String, ClassNode> createGenericsSpec(ClassNode current, Map<String, ClassNode> oldSpec) {<NEW_LINE>Map<String, ClassNode> ret = new HashMap<String, ClassNode>(oldSpec);<NEW_LINE>// ret contains the type specs, what we now need is the type spec for the<NEW_LINE>// current class. To get that we first a...
(ret, sgts[i]);
230,993
static final boolean testRSAKeys(byte[] b, byte[][] privKey, byte[][] pubKey) {<NEW_LINE>int l = pubKey[0].length;<NEW_LINE>if (pubKey[0][0] == 0)<NEW_LINE>l--;<NEW_LINE>long t1 = System.currentTimeMillis();<NEW_LINE>byte[] rsa_b = rsa(true, 0, pubKey, b, 1, l);<NEW_LINE>long t2 = System.currentTimeMillis();<NEW_LINE>r...
? "/3" : "/F4") + " ...................");
1,828,945
public void testCompletionStageRxInvoker_post4WithExecutorService(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Exec...
executorService = Executors.newSingleThreadExecutor(jaxrs21ThreadFactory);
819,962
private void checkHasLocalReader(SingleSeriesExpression expression, MetaGroupMember metaGroupMember) throws IOException {<NEW_LINE>Filter filter = expression.getFilter();<NEW_LINE>Filter timeFilter = getTimeFilter(filter);<NEW_LINE>PartialPath path = <MASK><NEW_LINE>TSDataType dataType;<NEW_LINE>try {<NEW_LINE>dataType...
(PartialPath) expression.getSeriesPath();
809,046
private static void hardLinkFile(DownloadManager manager, DiskManagerFileInfo file_info, File source, File target, Runnable done) {<NEW_LINE>// this behaviour should be put further down in the core but I'd rather not<NEW_LINE>// do so close to release :(<NEW_LINE>manager.setUserData("is_changing_links", true);<NEW_LINE...
.toString(), error });
843,519
public String handleRequest(SQSEvent event, Context context) {<NEW_LINE>String response = new String();<NEW_LINE>// call Lambda API<NEW_LINE>logger.info("Getting account settings");<NEW_LINE>CompletableFuture<GetAccountSettingsResponse> accountSettings = lambdaClient.getAccountSettings(GetAccountSettingsRequest.builder...
, gson.toJson(event));
1,505,733
protected void handleSuccess(final BreakpointSetReply reply) {<NEW_LINE>final BreakpointManager manager = getDebugger().getBreakpointManager();<NEW_LINE>final Set<BreakpointAddress> addressesToActivate = new HashSet<>();<NEW_LINE>final Set<BreakpointAddress> <MASK><NEW_LINE>for (final Pair<RelocatedAddress, Integer> re...
addressesToInvalidate = new HashSet<>();
1,215,920
public void visitMatrixReport(MatrixReport matrixReport) {<NEW_LINE>Map<String, Matrix> matrixs = matrixReport.getMatrixs();<NEW_LINE>Collection<Matrix> matrix = matrixs.values();<NEW_LINE>int size = matrix.size();<NEW_LINE>if (size > m_maxSize) {<NEW_LINE>List<Matrix> matrixList = new ArrayList<Matrix>(matrix);<NEW_LI...
setType(item.getType());
587,180
public com.amazonaws.services.waf.model.WAFReferencedItemException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.waf.model.WAFReferencedItemException wAFReferencedItemException = new com.amazonaws.services.waf.model.WAFReferencedItemException(null);<NEW_LINE>i...
JsonToken token = context.getCurrentToken();
45,645
public static void main(String[] args) throws Exception {<NEW_LINE>SerializePresets app = new SerializePresets();<NEW_LINE>app.initializeApplication();<NEW_LINE>if (args.length < 1) {<NEW_LINE>printUsage();<NEW_LINE>throw new IllegalArgumentException("Invalid Command Line Params");<NEW_LINE>}<NEW_LINE>Locale.setDefault...
("", false, "orc"));
538,857
private Pair<Long, String> matchesInternal(DateTimeParserContext ctx) {<NEW_LINE>int snapshot = ctx.cursor().value();<NEW_LINE>int sign = 1;<NEW_LINE>if (ctx.isSymbolAtCursor(DateTimeTokenizer.Symbol.PLUS) || ctx.isSymbolAtCursor(DateTimeTokenizer.Symbol.MINUS)) {<NEW_LINE>sign = ctx.isSymbolAtCursor(DateTimeTokenizer....
boolean unitMatches = matcher.matches();
842,820
public void shutDown(CloseConnectionReason closeConnectionReason, @Nullable Runnable shutDownCompleteHandler) {<NEW_LINE>log.info("Connection shutdown started");<NEW_LINE>log.debug("shutDown: peersNodeAddressOptional={}, closeConnectionReason={}", peersNodeAddressOptional, closeConnectionReason);<NEW_LINE>connectionSta...
-> doShutDown(closeConnectionReason, shutDownCompleteHandler));
807,485
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent blockedCreature = game.getPermanent(this.getTargetPointer().getFirst(game, source));<NEW_LINE>if (blockedCreature == null) {<NEW_LINE>// it can't be sacrificed, nothing happens<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Set<UUID> blockingCreatures = ne...
blockingCreature = game.getPermanent(blockerId);
1,006,445
public static BatchJoinMeetingResponse unmarshall(BatchJoinMeetingResponse batchJoinMeetingResponse, UnmarshallerContext _ctx) {<NEW_LINE>batchJoinMeetingResponse.setRequestId(_ctx.stringValue("BatchJoinMeetingResponse.RequestId"));<NEW_LINE>batchJoinMeetingResponse.setMessage(_ctx.stringValue("BatchJoinMeetingResponse...
(_ctx.stringValue("BatchJoinMeetingResponse.MeetingInfo.MeetingUUID"));
1,111,260
public CreateSvmActiveDirectoryConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateSvmActiveDirectoryConfiguration createSvmActiveDirectoryConfiguration = new CreateSvmActiveDirectoryConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE...
String currentParentElement = context.getCurrentParentElement();
1,149,357
public NonCodeUsageSearchInfo findUsages(@NotNull PsiElement element, @NotNull PsiElement[] allElementsToDelete, @NotNull List<UsageInfo> result) {<NEW_LINE>if (element instanceof ErlangFunction) {<NEW_LINE>Collection<PsiReference> all = ReferencesSearch.search(element).findAll();<NEW_LINE>for (PsiReference ref : all) ...
prev = PsiTreeUtil.prevVisibleLeaf(e);
1,156,349
public Object visit(ASTCompilationUnit node, Object data) {<NEW_LINE>Object superResult = <MASK><NEW_LINE>Info info = new Info();<NEW_LINE>List<ASTImportDeclaration> importDeclarations = node.findChildrenOfType(ASTImportDeclaration.class);<NEW_LINE>for (ASTImportDeclaration importDeclaration : importDeclarations) {<NEW...
super.visit(node, data);
429,011
public static void splitSameNamedVariablesOfDiffTypes(MethodNode node) {<NEW_LINE>if (node.localVariables == null)<NEW_LINE>return;<NEW_LINE>Map<Integer, LocalVariableNode> indexToVar = new HashMap<>();<NEW_LINE>Map<Integer, String> indexToName = new HashMap<>();<NEW_LINE>Map<String, Integer> nameToIndex = new HashMap<...
otherLvn = indexToVar.get(otherIndex);
531,928
private static DependencyResolver pickOne(Properties properties, DefinitelyNotAClassLoader classLoader) {<NEW_LINE>String propPath = properties.getProperty("robolectric-deps.properties");<NEW_LINE>if (propPath != null) {<NEW_LINE>return new PropertiesDependencyResolver(Paths.get(propPath));<NEW_LINE>}<NEW_LINE>String <...
dependencyDir = properties.getProperty("robolectric.dependency.dir");
1,596,183
private Mono<Response<RecipientUserCollectionInner>> listByNotificationWithResponseAsync(String resourceGroupName, String serviceName, NotificationName notificationName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.ge...
error(new IllegalArgumentException("Parameter notificationName is required and cannot be null."));
893,132
public AnnotationMirror convertAnnotationMirror(StringToJavaExpression stringToJavaExpr, AnnotationMirror anno) {<NEW_LINE>if (!isExpressionAnno(anno)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Map<ExecutableElement, List<JavaExpression>> <MASK><NEW_LINE>for (ExecutableElement element : getListOfExpressionElements(an...
newElements = new HashMap<>();
1,655,371
private static INaviCodeNode insertCodeNode(final INaviView target, final INaviCodeNode node) {<NEW_LINE>// TODO: cloning the node is a bad solution since this just fixes the symptoms: instructions are<NEW_LINE>// closed two times<NEW_LINE>final INaviCodeNode sourceNode = (INaviCodeNode) node.cloneNode();<NEW_LINE>fina...
sourceNode.getParentFunction(), instructionList);