idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
589,773
public boolean isValid(Resource resource) {<NEW_LINE>Validate.notNull(resource);<NEW_LINE>if (!resource.getResourceType().name().equals("ELB")) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>String instanceCountStr = resource.getAdditionalField("instanceCount");<NEW_LINE>String refASGCountStr = resource.getAdditionalField...
refASGCount = NumberUtils.toInt(refASGCountStr);
599,710
public void beginBackup() {<NEW_LINE>KeyVaultBackupClient client = createClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.administration.keyVaultBackupClient.beginBackup#String-String<NEW_LINE>String blobStorageUrl = "https://myaccount.blob.core.windows.net/myContainer";<NEW_LINE>String sasToken = "sv=2020-02-1...
client.beginBackup(blobStorageUrl, sasToken);
823,747
private static AceRelationMention parseRelationMention(Node node, AceDocument doc) {<NEW_LINE>String id = getAttributeValue(node, "ID");<NEW_LINE>AceCharSeq extent = parseCharSeq(getChildByName(node, "extent"));<NEW_LINE>String lc = getAttributeValue(node, "LEXICALCONDITION");<NEW_LINE>// create the mention<NEW_LINE>Ac...
AceRelationMention(id, extent, lc);
1,500,847
protected void replace(RubyHash hash, RubyHash dest, @Cached @Exclusive PropagateSharingNode propagateSharing) {<NEW_LINE>if (hash == dest) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>propagateSharing.executePropagate(dest, hash);<NEW_LINE>assert verify(hash);<NEW_LINE>final Entry[] entries = ((BucketsHashStore) hash.store)...
), entry.getValue());
537,687
public void update() {<NEW_LINE>if (world.isRemote) {<NEW_LINE>// set laser render position on client side<NEW_LINE>if (clientLaserMoveInterval.markTimeIfDelay(world) || targetPos == null) {<NEW_LINE>updateLaser();<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// set target tile on server side<NEW_LINE>avgPower.tick(...
excess = target.receiveLaserPower(power);
402,519
private static Geometry importFromJsonMultiPoint(JsonReader parser, AttributeStreamOfDbl as, AttributeStreamOfDbl bs) throws Exception {<NEW_LINE>if (parser.currentToken() != JsonReader.Token.START_ARRAY)<NEW_LINE>throw new GeometryException("failed to parse multipoint: array of vertices is expected");<NEW_LINE>int poi...
+ 1, buf[1]);
327,839
public Response includeLevel(@PathParam("queryname") String queryName, @PathParam("axis") String axisName, @PathParam("dimension") String dimensionName, @PathParam("hierarchy") String uniqueHierarchyName, @PathParam("level") String uniqueLevelName, @FormParam("position") @DefaultValue("-1") int position) {<NEW_LINE>try...
queryName, dimensionName, uniqueHierarchyName, uniqueLevelName);
1,174,645
// auto-generated, see spoon.generating.CloneVisitorGenerator<NEW_LINE>public <T> void visitCtNewArray(final spoon.reflect.code.CtNewArray<T> newArray) {<NEW_LINE>spoon.reflect.code.CtNewArray<T> aCtNewArray = newArray.getFactory().Core().createNewArray();<NEW_LINE>this.builder.copy(newArray, aCtNewArray);<NEW_LINE>aCt...
(newArray.getType()));
129,802
private Mono<PagedResponse<RestorableDroppedDatabaseInner>> listByServerSinglePageAsync(String resourceGroupName, String serverName, 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...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
767,530
private void latex(File file) throws IOException {<NEW_LINE>String fileName = file.getAbsolutePath();<NEW_LINE>BufferedReader in = new <MASK><NEW_LINE>//<NEW_LINE>File outFile = new File(fileName + ".txt");<NEW_LINE>BufferedWriter out = new BufferedWriter(new FileWriter(outFile, false));<NEW_LINE>String line = null;<NE...
BufferedReader(new FileReader(file));
1,651,695
protected AbstractBeanDefinition parseConsumer(Element element, ParserContext parserContext) {<NEW_LINE>BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(JmsSendingMessageHandler.class);<NEW_LINE>String jmsTemplate = element.getAttribute(JmsParserUtils.JMS_TEMPLATE_ATTRIBUTE);<NEW_LINE>String ...
builder, element, JmsParserUtils.HEADER_MAPPER_ATTRIBUTE);
317,545
public HttpEntity serialize(Object obj, Map<String, Object> formParams, ContentType contentType) throws ApiException {<NEW_LINE>String mimeType = contentType.getMimeType();<NEW_LINE>if (isJsonMime(mimeType)) {<NEW_LINE>try {<NEW_LINE>return new StringEntity(objectMapper.writeValueAsString(obj), contentType);<NEW_LINE>}...
Object value = paramEntry.getValue();
1,206,503
private void docEntity(Node g, Node s, List<Quad> batch) {<NEW_LINE>// One document per entity<NEW_LINE>String x = TextQueryFuncs.subjectToString(s);<NEW_LINE>String gx = TextQueryFuncs.graphNodeToString(g);<NEW_LINE>Entity entity = new Entity(x, gx);<NEW_LINE>String graphField = defn.getGraphField();<NEW_LINE>if (defn...
Node o = quad.getObject();
259,156
protected List<Object> recursivelyPopulateEntities(EntityMetadata m, Client client) {<NEW_LINE>List<Object> entities = new ArrayList<Object>();<NEW_LINE>ApplicationMetadata appMetadata = kunderaMetadata.getApplicationMetadata();<NEW_LINE>String query = appMetadata.getQuery(getJPAQuery());<NEW_LINE><MASK><NEW_LINE>if (i...
boolean isNative = kunderaQuery.isNative();
980,312
public void visit(MethodInvocation node) {<NEW_LINE>if (CancelSupport.getDefault().isCancelled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (checkVariablesInitializedByReference(preferences)) {<NEW_LINE>List<Expression> invocationParametersExp = node.getMethod().getParameters();<NEW_LINE>if (invocationParametersExp.siz...
ModelUtils.resolveType(model, node);
500,956
public static I_C_Invoice_Candidate createIcAndSetCommonFields(@NonNull final I_C_Flatrate_Term term) {<NEW_LINE>// Services<NEW_LINE>final DimensionService dimensionService = SpringContextHolder.instance.getBean(DimensionService.class);<NEW_LINE>final IOrderDAO orderDAO = Services.get(IOrderDAO.class);<NEW_LINE>final ...
setM_Product_ID(term.getM_Product_ID());
108,385
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1".split(",");<NEW_LINE>env.advanceTime(0);<NEW_LINE>String epl = "@Name('s0') select irstream theString as c0, intPrimitive as c1 from SupportBean#firsttime(10 sec)";<NEW_LINE><MASK><NEW_LINE>env.milestone(1);<NEW_LINE>env.assertPropsPerRowIt...
env.compileDeployAddListenerMileZero(epl, "s0");
505,279
public void validate() throws Exception {<NEW_LINE>if (null == _pKeyTypeMap)<NEW_LINE>throw new Exception("_pKeyTypeMap cannot be null !!");<NEW_LINE>if (null == _pKeyNameMap)<NEW_LINE>throw new Exception("_pKeyNameMap cannot be null !!");<NEW_LINE><MASK><NEW_LINE>boolean isNullQueryHint = (null == _queryHintMap);<NEW_...
boolean isNullIndex = (null == _pKeyIndexMap);
1,268,605
private ImmutableList<IRolesTreeNode> retrieveChildren() {<NEW_LINE>final IRoleDAO roleDAO = <MASK><NEW_LINE>ImmutableList.Builder<IRolesTreeNode> childrenBuilder = ImmutableList.builder();<NEW_LINE>for (final RoleInclude roleIncludeLink : roleDAO.retrieveRoleIncludes(getRoleId())) {<NEW_LINE>final RoleId childRoleId =...
Services.get(IRoleDAO.class);
1,050,221
public DRenderer init(final int pix_boundsX, final int pix_boundsY, final int pix_boundsWidth, final int pix_boundsHeight, final int windingRule) {<NEW_LINE>this.windingRule = windingRule;<NEW_LINE>// bounds as half-open intervals: minX <= x < maxX and minY <= y < maxY<NEW_LINE>this.boundsMinX = pix_boundsX << SUBPIXEL...
= (boundsMaxY - boundsMinY) + 1;
172,685
public static // | begin_end_expression<NEW_LINE>boolean max_expression(PsiBuilder b, int l) {<NEW_LINE>if (!recursion_guard_(b, l, "max_expression"))<NEW_LINE>return false;<NEW_LINE>boolean r;<NEW_LINE>Marker m = enter_section_(b, l, _COLLAPSE_, ERL_MAX_EXPRESSION, "<expression>");<NEW_LINE>r = atomic(b, l + 1);<NEW_L...
try_expression(b, l + 1);
93,841
public boolean isTokenValidByOfflineCheck(String bearerToken, String securityMethodName) {<NEW_LINE>try {<NEW_LINE>DecodedJWT jwt = JWT.decode(bearerToken);<NEW_LINE>String issuer = jwt.getIssuer();<NEW_LINE><MASK><NEW_LINE>if (!tokenKeyId.equals(keyId)) {<NEW_LINE>Optional<String> optionalSecurityMethodName = jwksEndp...
String keyId = jwt.getKeyId();
1,382,975
public static void main(String[] args) throws ConnectorException, IOException {<NEW_LINE>Config clientConfig = new Config();<NEW_LINE>clientConfig.configurationHeader = CONFIG_HEADER;<NEW_LINE>clientConfig.customConfigurationDefaultsProvider = DEFAULTS;<NEW_LINE>clientConfig.configurationFile = CONFIG_FILE;<NEW_LINE>Cl...
testCO(clientConfig.uri, context);
1,014,556
public static INDArray asExampleArray(Window window, Word2Vec vec, boolean normalize) {<NEW_LINE>int length = vec.lookupTable().layerSize();<NEW_LINE>List<String> words = window.getWords();<NEW_LINE>int windowSize = vec.getWindow();<NEW_LINE>Preconditions.checkState(words.size() == vec.getWindow());<NEW_LINE>INDArray r...
create(1, length * windowSize);
224,173
private ExportResult<PhotosContainerResource> requestNonAlbumPhotos(TokensAndUrlAuthData authData, PaginationData paginationData, UUID jobId) throws IOException {<NEW_LINE>int page = paginationData == null ? 0 : ((IntPaginationToken) paginationData).getStart();<NEW_LINE>String url = format(ALL_PHOTOS_URL_TEMPLATE, page...
= new PhotosContainerResource(albums, photos);
1,740,651
public static ListVolumesResponse unmarshall(ListVolumesResponse listVolumesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listVolumesResponse.setRequestId(_ctx.stringValue("ListVolumesResponse.RequestId"));<NEW_LINE>listVolumesResponse.setTotalCount(_ctx.integerValue("ListVolumesResponse.TotalCount"));<NEW_LINE>listVo...
+ "].AdditionalVolumes[" + j + "].LocalDirectory"));
464,786
private void generateCircleTemplate_() {<NEW_LINE>if (!m_circle_template.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int N = m_circle_template_size;<NEW_LINE>assert (N >= 4);<NEW_LINE>int real_size = (N + 3) / 4;<NEW_LINE>double dA = (<MASK><NEW_LINE>m_dA = dA;<NEW_LINE>for (int i = 0; i < real_size * 4; i++) m_c...
Math.PI * 0.5) / real_size;
1,087,010
public void run(TableRowCore row) {<NEW_LINE>ShareResource sr = ((ShareResource) row.getDataSource(true));<NEW_LINE>Map<String, String> props = sr.getProperties();<NEW_LINE>props = props == null ? new HashMap<>() : new HashMap<>(props);<NEW_LINE>String tag_str = <MASK><NEW_LINE>Set<String> existing = new HashSet<>();<N...
props.get(ShareManager.PR_TAGS);
1,058,381
private static Iterable<Integer> find(int upperBound, int prefix) {<NEW_LINE>final var primes = new Sieve(upperBound).calc();<NEW_LINE>final var strPrefix = String.valueOf(prefix);<NEW_LINE>var head = generateTrie(primes.toList());<NEW_LINE>for (final var ch : strPrefix.toCharArray()) {<NEW_LINE>if (head.children.conta...
>(head, strPrefix)));
522,722
private static void toNettyHttp2Client(HttpHeaders inputHeaders, Http2Headers outputHeaders, boolean isTrailer) {<NEW_LINE>for (Entry<AsciiString, String> entry : inputHeaders) {<NEW_LINE>final <MASK><NEW_LINE>final String value = entry.getValue();<NEW_LINE>if (HTTP_TO_HTTP2_HEADER_DISALLOWED_LIST.contains(name)) {<NEW...
AsciiString name = entry.getKey();
1,426,661
public boolean isGeneratedPathSameAsOriginal() {<NEW_LINE>FilePreferences filePreferences = preferences.getFilePreferences();<NEW_LINE>Optional<Path> baseDir = databaseContext.getFirstExistingFileDir(filePreferences);<NEW_LINE>if (baseDir.isEmpty()) {<NEW_LINE>// could not find default path<NEW_LINE>return false;<NEW_L...
).map(Path::getParent);
713,020
public void testSkipOnlyExecutionNoAutoPurge(PrintWriter out) throws Exception {<NEW_LINE>DBIncrementTask task = new DBIncrementTask("testSkipOnlyExecutionNoAutoPurge");<NEW_LINE>task.getExecutionProperties().put(AutoPurge.PROPERTY_NAME, AutoPurge.NEVER.toString());<NEW_LINE>Trigger trigger = new FixedRepeatTrigger(1, ...
Exception("Task should not have done status " + done + " until it runs at least once.");
1,261,973
public void write(List<? extends Long> theTermCodeSystemVersionPidList) throws Exception {<NEW_LINE>// receives input in chunks of size one<NEW_LINE>long <MASK><NEW_LINE>ourLog.info("Deleting term code links");<NEW_LINE>int deletedLinks = myConceptParentChildLinkDao.deleteByCodeSystemVersion(codeSystemVersionId);<NEW_L...
codeSystemVersionId = theTermCodeSystemVersionPidList.get(0);
1,030,581
protected void onMeasure(int widthSpec, int heightSpec) {<NEW_LINE>logDebug("onMeasure-> widthSpec: " + widthSpec + ", heightSpec: " + heightSpec);<NEW_LINE>super.onMeasure(widthSpec, heightSpec);<NEW_LINE>if (!isWrapContent) {<NEW_LINE>logDebug("columnWidth :" + columnWidth);<NEW_LINE>if (columnWidth > 0) {<NEW_LINE>i...
.width = ViewGroup.LayoutParams.WRAP_CONTENT;
1,748,485
public Void visitMethod(MethodTree node, Void p) {<NEW_LINE>ExecutableElement elt = TreeUtils.elementFromDeclaration(node);<NEW_LINE>MustCallAnnotatedTypeFactory mcAtf = rlTypeFactory.getTypeFactoryOfSubchecker(MustCallChecker.class);<NEW_LINE>List<String> cmcfValues = getCreatesMustCallForValues(elt, mcAtf, rlTypeFact...
overriddenClassname = ElementUtils.getEnclosingClassName(overridden);
1,496,223
private TableFormatConfig createTableFormatConfig(final List<AutoCloseable> closeables, final long blockCacheMemory) {<NEW_LINE>// you can use the perf context to check if we're often blocked on the block cache mutex, in<NEW_LINE>// which case we want to increase the number of shards (shard count == 2^shardBits)<NEW_LI...
blockCacheMemory, 8, false, 0.15);
655,470
public CreateFuotaTaskResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateFuotaTaskResult createFuotaTaskResult = new CreateFuotaTaskResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
JsonToken token = context.getCurrentToken();
375,474
public boolean matches(DrillFileSystem fs, FileStatus status) throws IOException {<NEW_LINE>if (ranges.isEmpty() || status.isDirectory()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// walk all the way down in the symlinks until a hard entry is reached<NEW_LINE>FileStatus current = status;<NEW_LINE>while (current.isSy...
0L, status.getLen());
1,606,251
public void startAnim() {<NEW_LINE>ObjectAnimator xAnim = ObjectAnimator.ofFloat(targetView, "x", fromViewInfo.getX(), toViewInfo.getX());<NEW_LINE>ObjectAnimator yAnim = ObjectAnimator.ofFloat(targetView, "y", fromViewInfo.getY(), toViewInfo.getY());<NEW_LINE>ValueAnimator widthAnim = ValueAnimator.ofInt(fromViewInfo....
(int) valueAnimator.getAnimatedValue();
1,626,351
protected boolean beforeSave(boolean newRecord) {<NEW_LINE>// Create Trees<NEW_LINE>if (newRecord) {<NEW_LINE>MTree tree = new MTree(getCtx(), getName() + MTree.TREETYPE_CMContainer, MTree.TREETYPE_CMContainer, get_TrxName());<NEW_LINE>if (!tree.save())<NEW_LINE>return false;<NEW_LINE>setAD_TreeCMC_ID(tree.getAD_Tree_I...
MTree.TREETYPE_CMContainerStage, get_TrxName());
531,811
public static void convert(GrayU8 input, GrayI16 output) {<NEW_LINE>if (input.isSubimage() || output.isSubimage()) {<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, input.height, y -> {<NEW_LINE>for (int y = 0; y < input.height; y++) {<NEW_LINE>int indexSrc = input.getIndex(0, y);<NEW_LINE>int indexDst = output...
int i0 = 0, i1 = N;
224,307
protected List<Element> expandNetUri(Document doc, String s) {<NEW_LINE>ArrayList<Element> exp = new ArrayList<Element>();<NEW_LINE>Matcher reMatcher = reNetUri.matcher(s);<NEW_LINE>if (!reMatcher.find())<NEW_LINE>return null;<NEW_LINE>String <MASK><NEW_LINE>exp.addAll(expandDomain(doc, domain));<NEW_LINE>String path =...
domain = reMatcher.group(1);
1,214,783
public void sort_num(TableItem[] items, int idx, int cols) {<NEW_LINE>List<Double> _key = new ArrayList<Double>();<NEW_LINE>List<List<String>> _value = new ArrayList<List<String>>();<NEW_LINE>for (int i = 0; i < items.length; i++) {<NEW_LINE>String t = items[i].getText(idx);<NEW_LINE>t = numonly(t);<NEW_LINE>double key...
k = _key.get(j);
1,312,104
private void playItems(List<File> fileList, ActionEvent arg0) {<NEW_LINE>String pathToExternalMediaPlayer = GuiSettings.getInstance().getPathToExternalMediaPlayer();<NEW_LINE>if (pathToExternalMediaPlayer != null)<NEW_LINE>openMediaFilesInExternalProgram(fileList, pathToExternalMediaPlayer);<NEW_LINE>else // We don't k...
.getInstance().getPathToExternalMediaPlayer();
1,737,898
public static void main(String[] args) {<NEW_LINE>final String[] res = { "a", "ab", <MASK><NEW_LINE>final String[][] ss = { { "a", "b" }, { "ab", "aba" }, { "", "a", "b", "c", "abc" }, { "" }, { "", "a", "aaa" }, { "", "a", "aaa" } };<NEW_LINE>for (int k = 0; k < res.length; ++k) {<NEW_LINE>String re = res[k];<NEW_LINE...
"[a-c]*", "()", "(a*)", "(a*)(a*)" };
1,660,118
private void handleChildren() {<NEW_LINE>getGraph().removeAllChildren();<NEW_LINE>map = new HashMap();<NEW_LINE>Iterator it = getChildren().iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>TestNode tn = (TestNode) it.next();<NEW_LINE>SimpleNode sn = new SimpleNode();<NEW_LINE>getGraph().addChild(sn);<NEW_LINE>sn.se...
Object endTn = eIt.next();
1,764,021
public void marshall(AwsCloudTrailTrailDetails awsCloudTrailTrailDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsCloudTrailTrailDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(awsCloudT...
awsCloudTrailTrailDetails.getCloudWatchLogsRoleArn(), CLOUDWATCHLOGSROLEARN_BINDING);
354,553
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ContextNestedWithFilterUDF());<NEW_LINE>execs.add(new ContextNestedIterateTargetedCP());<NEW_LINE>execs.add(new ContextNestedInvalid());<NEW_LINE>execs.add(new ContextNe...
.add(new ContextNestedCategoryOverTemporalOverlapping());
1,457,878
public int addEdgePoint(int[] facePoints, int fromPoint, int toPoint, boolean isBoundary) {<NEW_LINE>if (isBoundary) {<NEW_LINE>controlInds[currPoint] = new int[] { fromPoint, toPoint };<NEW_LINE>controlFactors[currPoint] = new float[] { 0.5f, 0.5f };<NEW_LINE>inds[currPoint] = new int[0];<NEW_LINE>factors[<MASK><NEW_L...
currPoint] = new float[0];
138,219
public boolean forceRun() {<NEW_LINE>// This basically means the cluster-node has already been started. Potentially by another class-loader<NEW_LINE>if (null != System.getProperty(WebKeys.DOTCMS_STARTUP_TIME_ES)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Connection con = null;<NEW_LINE>try {<NEW_LINE>con = DbConnect...
e1.getMessage(), e1);
40,626
private void readTypeParameters(NdBinding type, SignatureWrapper wrapper) throws CoreException {<NEW_LINE>char[] genericSignature = wrapper.signature;<NEW_LINE>if (genericSignature.length == 0 || wrapper.charAtStart() != '<') {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<TypeParameter> typeParameters = new ArrayList<>();...
wrapper.charAtStart() != ':');
752,867
public void readResults(final Configuration configuration, final ResultsVisitor visitor, final Path directory) {<NEW_LINE>final JacksonContext context = configuration.requireContext(JacksonContext.class);<NEW_LINE>final Path historyFile = directory.resolve(Constants.HISTORY_DIR).resolve(jsonFileName);<NEW_LINE>if (File...
visitor.visitExtra(trendBlockName, history);
1,138,928
protected Throwable doInBackground(String... params) {<NEW_LINE>// Get wakelock<NEW_LINE>PowerManager pm = (PowerManager) <MASK><NEW_LINE>PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "XPrivacy.Register");<NEW_LINE>wl.acquire();<NEW_LINE>try {<NEW_LINE>String android_id = Secure.getString(mC...
mContext.getSystemService(Context.POWER_SERVICE);
587,732
private void updateInputStream() throws IOException {<NEW_LINE>if (mInputStream != null && (mInputStream.mFile.isIncompleteLog() || !mInputStream.isDone(mNextSequenceNumber))) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (mInputStream != null) {<NEW_LINE>mInputStream.close();<NEW_LINE>mInputStream = null;<NEW_LINE>}<NEW_L...
snapshot = UfsJournalSnapshot.getSnapshot(mJournal);
249,665
private JComponent buildResolutionCombo() {<NEW_LINE>resolutionCombo = new JComboBox(new String[] { "data", "250", "500", "1000" });<NEW_LINE>resolutionCombo.setEditable(true);<NEW_LINE>resolutionCombo.setToolTipText("Sets update interval of graph in milliseconds");<NEW_LINE>long resolution = statisticsGraph.getResolut...
: String.valueOf(resolution));
867,390
void registerAdapters(ReactiveAdapterRegistry registry) {<NEW_LINE>registry.registerReactiveType(ReactiveTypeDescriptor.multiValue(io.reactivex.rxjava3.core.Flowable.class, io.reactivex.rxjava3.core.Flowable::empty), source -> (io.reactivex.rxjava3.core.Flowable<?>) source, io.reactivex.rxjava3.core.Flowable::fromPubli...
rxjava3.core.Maybe::fromPublisher);
1,131,699
final UpdateDataSourceResult executeUpdateDataSource(UpdateDataSourceRequest updateDataSourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDataSourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
false), new UpdateDataSourceResultJsonUnmarshaller());
1,485,359
private void init() throws Docx4JException {<NEW_LINE>// styleDefinitionsPart.createVirtualStylesForDocDefaults();<NEW_LINE>try {<NEW_LINE>defaultParagraphStyleId = this.styleDefinitionsPart<MASK><NEW_LINE>} catch (NullPointerException npe) {<NEW_LINE>log.warn("No default paragraph style!!");<NEW_LINE>}<NEW_LINE>try {<...
.getDefaultParagraphStyle().getStyleId();
1,058,707
public void marshall(AssetSummary assetSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (assetSummary == 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(asse...
assetSummary.getId(), ID_BINDING);
1,849,771
final AddPermissionResult executeAddPermission(AddPermissionRequest addPermissionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addPermissionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
endClientExecution(awsRequestMetrics, request, response);
543,145
public JsonResult execute() {<NEW_LINE>String instructorEmailAddress = getNonNullRequestParamValue(Const.ParamsNames.INSTRUCTOR_EMAIL);<NEW_LINE>String courseId = getNonNullRequestParamValue(Const.ParamsNames.COURSE_ID);<NEW_LINE>InstructorAttributes updatedInstructor;<NEW_LINE>try {<NEW_LINE>updatedInstructor = logic....
, updatedInstructor.getKey()));
596,555
private Iterator<Edge> edgesOfVertex(Id source, EdgeStep edgeStep, boolean mustAllSK) {<NEW_LINE>Id[] edgeLabels = edgeStep.edgeLabels();<NEW_LINE>Query query = GraphTransaction.constructEdgesQuery(source, <MASK><NEW_LINE>ConditionQuery filter = null;<NEW_LINE>if (mustAllSK) {<NEW_LINE>this.fillFilterBySortKeys(query, ...
edgeStep.direction(), edgeLabels);
984,208
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String modelFlag, String workId) throws Exception {<NEW_LINE>logger.debug(effectivePerson, "modelFlag:{}, workId:{}.", modelFlag, workId);<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult...
flag(modelFlag, Model.class);
1,112,705
public void testUsage() {<NEW_LINE>Either<Throwable, Integer> throwableIntegerEither = Either<MASK><NEW_LINE>Either<Throwable, Integer> throwableIntegerEither1 = Either.<Integer>tryCatchAndFlatten(() -> new Either.Right(1));<NEW_LINE>Function1<Either<? extends String, ? extends Integer>, Either<String, Integer>> lift =...
.tryCatch(() -> 1);
1,717,471
private boolean processGenericEncodedMethod(ExecutableElement method, List<EncodedElement> collection, Tag... additionalTags) {<NEW_LINE>EncodedElement.Builder builder = new EncodedElement.Builder();<NEW_LINE>TypeExtractor typesReader = processTypeParameters(method, builder);<NEW_LINE>AtomicReference<StandardNaming> st...
EnumSet.noneOf(Tag.class);
1,171,270
public String insertWithIgnore(boolean useQualifier, TableDef tableDef, List<ColumnDef> primaryColumns, List<ColumnDef> insertColumns) {<NEW_LINE>// MERGE INTO DS_ENV TMP<NEW_LINE>// USING (SELECT 3 "ID",<NEW_LINE>// systimestamp GMT_CREATE,<NEW_LINE>// systimestamp GMT_MODIFIED,<NEW_LINE>// 'abc' OWN...
+ " " + mergeWhenNotMatched.toString();
81,230
public void actionPerformedImpl(ActionEvent e, RTextArea textArea) {<NEW_LINE>Caret caret = textArea.getCaret();<NEW_LINE>int dot = caret.getDot();<NEW_LINE>if (!select) {<NEW_LINE>switch(direction) {<NEW_LINE>case SwingConstants.EAST:<NEW_LINE>int mark = caret.getMark();<NEW_LINE>if (dot != mark) {<NEW_LINE>caret.setD...
r = textArea.modelToView(dot);
349,627
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select symbol, sum(price) from " + "SupportMarketDataBean#length(10) " + "output every 6 events " + "order by symbol";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>sendEvent(env, "IBM", 3);<NEW_LINE><MASK><NEW_LINE>sendEvent(...
sendEvent(env, "IBM", 4);
1,075,726
private void dumpDataTypes(OutputStream debugStream) throws IOException {<NEW_LINE>DataOrganization dataOrganization = program.getCompilerSpec().getDataOrganization();<NEW_LINE>int intSize = dataOrganization.getIntegerSize();<NEW_LINE>int longSize = dataOrganization.getLongSize();<NEW_LINE>StringBuilder buf = new Strin...
write("</typegrp>\n".getBytes());
310,353
public boolean preload(SourceLoader sourceLoader) {<NEW_LINE>SourceLibrary library = sourceLoader.getLibrary();<NEW_LINE>ModulePath modulePath = getModulePath();<NEW_LINE>ChildGroup group = null;<NEW_LINE>try (InputStream inputStream = getInputStream()) {<NEW_LINE>if (inputStream == null) {<NEW_LINE>return false;<NEW_L...
sourceLoader, modulePath, group, e);
405,492
final StartDetectorModelAnalysisResult executeStartDetectorModelAnalysis(StartDetectorModelAnalysisRequest startDetectorModelAnalysisRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startDetectorModelAnalysisRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
557,287
private FileObject generateMavenTester(File testdir, String baseURL) throws IOException {<NEW_LINE>String[<MASK><NEW_LINE>String[] replaceKeys2 = { "MSG_TEST_RESBEANS_wadlErr", "MSG_TEST_RESBEANS_No_AJAX", "MSG_TEST_RESBEANS_Resource", "MSG_TEST_RESBEANS_See", "MSG_TEST_RESBEANS_No_Container", "MSG_TEST_RESBEANS_Conten...
] replaceKeys1 = { "TTL_TEST_RESBEANS", "MSG_TEST_RESBEANS_INFO" };
1,116,147
// ///////////////////////////////////////////////////<NEW_LINE>// ///////////// API Implementation///////////////////<NEW_LINE>// ///////////////////////////////////////////////////<NEW_LINE>@Override<NEW_LINE>public void execute() {<NEW_LINE>Pair<List<? extends ApplicationLoadBalancerRule>, Integer> loadBalancers = _...
(loadBalancer.getId()));
818,093
public Request<ModifyDBClusterEndpointRequest> marshall(ModifyDBClusterEndpointRequest modifyDBClusterEndpointRequest) {<NEW_LINE>if (modifyDBClusterEndpointRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ModifyDBClusterEndpointRequest> r...
<ModifyDBClusterEndpointRequest>(modifyDBClusterEndpointRequest, "AmazonNeptune");
34,032
public static WorkflowTrace generateWorkflow(Config tlsConfig, BleichenbacherWorkflowType type, byte[] encryptedPMS) {<NEW_LINE>WorkflowTrace trace = new WorkflowConfigurationFactory(tlsConfig).createWorkflowTrace(WorkflowTraceType.HELLO, RunningModeType.CLIENT);<NEW_LINE>RSAClientKeyExchangeMessage cke = new RSAClient...
.addTlsAction(new GenericReceiveAction());
838,540
public Collection<Job> insertUnassignedJobs(Collection<VehicleRoute> vehicleRoutes, Collection<Job> unassignedJobs) {<NEW_LINE>List<Job> badJobs = new ArrayList<>(unassignedJobs.size());<NEW_LINE>List<Job> unassignedJobList = new ArrayList<>(unassignedJobs);<NEW_LINE>Collections.shuffle(unassignedJobList, random);<NEW_...
NO_NEW_VEHICLE_YET, NO_NEW_DEPARTURE_TIME_YET, NO_NEW_DRIVER_YET, bestInsertionCost);
1,206,252
public BDDDomain overlapDomain(BDDDomain d1, BDDDomain d2) {<NEW_LINE>BDDDomain d;<NEW_LINE>int n;<NEW_LINE>int fdvaralloc = domain.length;<NEW_LINE>if (fdvarnum + 1 > fdvaralloc) {<NEW_LINE>fdvaralloc += fdvaralloc;<NEW_LINE>BDDDomain[] domain2 = new BDDDomain[fdvaralloc];<NEW_LINE>System.arraycopy(domain, 0, domain2,...
) + d2.varNum()];
960,649
public void copyElements(int startIndex, int endIndex, Object[] dest, int destIndex) {<NEW_LINE>if (startIndex < 0 || endIndex < startIndex || endIndex > size()) {<NEW_LINE>throw new // NOI18N<NEW_LINE>IndexOutOfBoundsException(// NOI18N<NEW_LINE>"startIndex=" + startIndex + ", endIndex=" + endIndex + ", size()=" + siz...
startIndex, dest, destIndex, beforeGap);
802,174
public void testJMS2CompletionListener() throws JMSException, InterruptedException {<NEW_LINE>clearQueue(depthLimitedQueue_);<NEW_LINE>completionListener_.reset();<NEW_LINE>try (JMSContext context = queueConnectionFactory_.createContext()) {<NEW_LINE>JMSProducer producer = context.createProducer();<NEW_LINE>producer.se...
java.util.Date());
1,807,526
// These go up to eleven. After that, you just get the varargs form, and<NEW_LINE>// whatever warnings might come along with it. :(<NEW_LINE>// For Eclipse. For internal javac we have disabled this pointless type of warning.<NEW_LINE>@SafeVarargs<NEW_LINE>public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4, E ...
array, 12, others.length);
1,339,045
public void testMissingBeanMethodAndAfterDelivery() throws Exception {<NEW_LINE>String deliveryID = "test11";<NEW_LINE>prepareTRA();<NEW_LINE>// construct a FVTMessage<NEW_LINE>FVTMessage message = new FVTMessage();<NEW_LINE>message.addTestResult("CMTNonJMSRequired", 111);<NEW_LINE>// Add a FVTXAResourceImpl for this d...
[] { String.class });
420,805
public static void handleLogsFilter(LogsFilterCapsule logsFilterCapsule) {<NEW_LINE>Iterator<Entry<String, LogFilterAndResult>> it;<NEW_LINE>if (logsFilterCapsule.isSolidified()) {<NEW_LINE>it = getEventFilter2ResultSolidity()<MASK><NEW_LINE>} else {<NEW_LINE>it = getEventFilter2ResultFull().entrySet().iterator();<NEW_...
.entrySet().iterator();
1,580,946
void showPausedNotification() {<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {<NEW_LINE>createChannel();<NEW_LINE>}<NEW_LINE>NotificationCompat.Builder builder = <MASK><NEW_LINE>if (builder == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>builder.addAction(new NotificationCompat.Action(android.R.drawable...
MediaStyleHelper.from(this, mMediaSessionCompat);
678,774
public Substitution using(ComponentSelector notation) {<NEW_LINE>DefaultDependencySubstitution.validateTarget(notation);<NEW_LINE>boolean projectInvolved = false;<NEW_LINE>if (substituted instanceof ProjectComponentSelector || notation instanceof ProjectComponentSelector) {<NEW_LINE>// A project is involved, need to be...
UnversionedModuleComponentSelector) substituted).getModuleIdentifier();
1,481,429
public Builder loadFromStream(String resourceName, InputStream is, boolean acceptNullValues) throws IOException {<NEW_LINE>final XContentType xContentType;<NEW_LINE>if (resourceName.endsWith(".json")) {<NEW_LINE>xContentType = XContentType.JSON;<NEW_LINE>} else if (resourceName.endsWith(".yml") || resourceName.endsWith...
"Failed to load settings from [" + resourceName + "]", e);
1,467,006
private void calculateDiscount() {<NEW_LINE>discountSchema = false;<NEW_LINE>if (partnerId == 0 || productId == 0)<NEW_LINE>return;<NEW_LINE>int discountSchemaId = 0;<NEW_LINE>BigDecimal flatDiscount = null;<NEW_LINE>String sql = "SELECT COALESCE(p.M_DiscountSchema_ID,g.M_DiscountSchema_ID)," + " COALESCE(p.PO_Discount...
DB.close(rs, statement);
1,673,989
void interpolateAttributesForClosedPath_(int semantics, int path, int from_vertex, int to_vertex, double sub_length, int ordinate) {<NEW_LINE>if (from_vertex == to_vertex)<NEW_LINE>return;<NEW_LINE>double from_attribute = getAttributeAsDbl(semantics, from_vertex, ordinate);<NEW_LINE>double to_attribute = <MASK><NEW_LIN...
getAttributeAsDbl(semantics, to_vertex, ordinate);
1,814,360
protected void ExpandBuff(boolean wrapAround) {<NEW_LINE>char[] newbuffer = new char[bufsize + 2048];<NEW_LINE>int[] newbufline = new int[bufsize + 2048];<NEW_LINE>int[] newbufcolumn = new int[bufsize + 2048];<NEW_LINE>try {<NEW_LINE>if (wrapAround) {<NEW_LINE>System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize ...
newbufcolumn, 0, bufsize - tokenBegin);
964,514
public static Bitmap thumbnail(Document mDocument, int size, int page) {<NEW_LINE>int mWidthTwip = (int) mDocument.getDocumentWidth();<NEW_LINE>int mHeightTwip = (int) (mDocument.getDocumentHeight() / mDocument.getParts());<NEW_LINE>if (mDocument.getDocumentType() == Document.DOCTYPE_PRESENTATION) {<NEW_LINE>mDocument....
(int) (heightPixel * ratio);
1,403,207
private void checkReplica(TTabletInfo tTabletInfo, TabletMeta tabletMeta) throws MetaNotFoundException {<NEW_LINE>long tabletId = tTabletInfo.getTablet_id();<NEW_LINE>int schemaHash = tTabletInfo.getSchema_hash();<NEW_LINE>// during finishing stage, index's schema hash switched, when old schema hash finished<NEW_LINE>/...
MetaNotFoundException("tablet " + tabletId + " does not exist");
949,661
protected MouseEvent convert(@NotNull MouseEvent event) {<NEW_LINE>if (!event.isConsumed() && SwingUtilities.isLeftMouseButton(event)) {<NEW_LINE><MASK><NEW_LINE>final int y = event.getY();<NEW_LINE>final JTree tree = (JTree) event.getSource();<NEW_LINE>if (tree.isEnabled()) {<NEW_LINE>final TreePath path = getClosestP...
int x = event.getX();
434,902
private Void storeResourcesInsideTransaction(List<IBaseResource> theResources, RequestDetails theRequestDetails, TransactionDetails theTransactionDetails) {<NEW_LINE>Map<IIdType, IBaseResource> ids = new HashMap<>();<NEW_LINE>for (IBaseResource next : theResources) {<NEW_LINE>if (!next.getIdElement().hasIdPart()) {<NEW...
ids.put(id, next);
800,336
public boolean checkAccess(User user, String apiCommandName) throws PermissionDeniedException {<NEW_LINE>if (isDisabled()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Account userAccount = accountService.getAccount(user.getAccountId());<NEW_LINE>Project project = CallContext.current().getProject();<NEW_LINE>if (project...
isPermitted(project, projectUser, apiCommandName);
605,577
public void encode(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersion version) {<NEW_LINE>if (version.compareTo(ProtocolVersion.MINECRAFT_1_16) >= 0) {<NEW_LINE>if (version.compareTo(ProtocolVersion.MINECRAFT_1_16_2) >= 0) {<NEW_LINE>ProtocolUtils.writeCompoundTag(buf, currentDimensionData.serializeDimensi...
writeBoolean(dimensionInfo.isFlat());
1,332,283
private void recoverTierDeleted(ChronicleHashCorruption.Listener corruptionListener, ChronicleHashCorruptionImpl corruption) {<NEW_LINE>VanillaChronicleHash<?, ?, ?, ?> h = this.h();<NEW_LINE>CompactOffHeapLinearHashTable hl = h.hashLookup;<NEW_LINE>long hlAddr = this.tierBaseAddr();<NEW_LINE>long deleted = 0;<NEW_LINE...
hl.readEntry(hlAddr, hlPos);
544,071
public SecurityState computeSecurityState(Entity entity) {<NEW_LINE>Preconditions.checkNotNullArgument(entity, "entity is null");<NEW_LINE>SecurityState state;<NEW_LINE>String storeName = metadataTools.getStoreName(metadata.getClassNN<MASK><NEW_LINE>Transaction tx = persistence.createTransaction(storeName);<NEW_LINE>tr...
(entity.getClass()));
1,643,695
public TeaVMProfile createProfile() {<NEW_LINE>String name = NEW_PROFILE_NAME;<NEW_LINE>if (profileMap.containsKey(name)) {<NEW_LINE>int i = 1;<NEW_LINE>do {<NEW_LINE>name = NEW_PROFILE_NAME + " (" + i++ + ")";<NEW_LINE>} while (profileMap.containsKey(name));<NEW_LINE>}<NEW_LINE>ProfileImpl profile = new ProfileImpl();...
.getDefault().getStringVariableManager();
554,372
private Scorer req(Collection<ScorerSupplier> requiredNoScoring, Collection<ScorerSupplier> requiredScoring, long leadCost) throws IOException {<NEW_LINE>if (requiredNoScoring.size() + requiredScoring.size() == 1) {<NEW_LINE>Scorer req = (requiredNoScoring.isEmpty() ? requiredScoring : requiredNoScoring).iterator().nex...
ConjunctionScorer(weight, requiredScorers, scoringScorers);
1,734,634
// Computes the minimum spanning tree and minimum spanning tree cost.<NEW_LINE>private void solve() {<NEW_LINE>if (solved)<NEW_LINE>return;<NEW_LINE>solved = true;<NEW_LINE>int m = n - 1, edgeCount = 0;<NEW_LINE>visited = new boolean[n];<NEW_LINE>// The degree of the d-ary heap supporting the IPQ can greatly impact per...
int destNodeIndex = ipq.peekMinKeyIndex();
1,273,758
public void InvalidatedSessionsByTimeout(@Args Object[] myargs) {<NEW_LINE>if (tc.isEntryEnabled()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (myargs == null) {<NEW_LINE>if (tc.isEntryEnabled()) {<NEW_LINE>Tr.exit(tc, "InvalidatedSessionsByTimeout", "Args is null");<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ISessi...
Tr.entry(tc, "InvalidatedSessionsByTimeout");