idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
806,922
protected void stopAndReleaseGrpcServer() {<NEW_LINE>final Server localServer = this.server;<NEW_LINE>if (localServer != null) {<NEW_LINE>final long millis = this.shutdownGracePeriod.toMillis();<NEW_LINE>log.debug("Initiating gRPC server shutdown");<NEW_LINE>this.eventPublisher.publishEvent(new GrpcServerShutdownEvent(...
localServer.awaitTermination(millis, MILLISECONDS);
870,243
public static DescribeClusterDashboardResponse unmarshall(DescribeClusterDashboardResponse describeClusterDashboardResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeClusterDashboardResponse.setRequestId(_ctx.stringValue("DescribeClusterDashboardResponse.RequestId"));<NEW_LINE>Dashboard dashboard = new Dashboard();...
+ "].Nodes[" + j + "].Load"));
127,024
public static void main(String... args) {<NEW_LINE>String SHAPES = "shapes.ttl";<NEW_LINE>String DATA = "data2.ttl";<NEW_LINE>Graph shapesGraph = RDFDataMgr.loadGraph(SHAPES);<NEW_LINE>Graph dataGraph = DatasetGraphFactory.createTxnMem().getDefaultGraph();<NEW_LINE>RDFDataMgr.read(dataGraph, DATA);<NEW_LINE>Shapes shap...
System.out.println("++ First transaction");
726,973
final ListContactsResult executeListContacts(ListContactsRequest listContactsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listContactsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListContactsRequest> request = null;<NEW_LINE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
61,646
private void generateCharacterEncodingRangeCheck(final StringBuilder sb, final String varName, final Token token) {<NEW_LINE>final String characterEncoding = token.encoding().characterEncoding();<NEW_LINE>if (null != characterEncoding) {<NEW_LINE>if (JavaUtil.isAsciiEncoding(characterEncoding)) {<NEW_LINE>imports.<MASK...
peek().add("fmt");
811,561
protected Response sendBackChannelLogoutRequestToClientUri(ClientModel resource, AuthenticatedClientSessionModel clientSessionModel, String managementUrl) {<NEW_LINE>UserModel user = clientSessionModel.getUserSession().getUser();<NEW_LINE>LogoutToken logoutToken = session.tokens().initLogoutToken(resource, user, client...
status(status).build();
851,777
private void computeDominators(Heap heap, ResultsSnippet dominatorsByRetainedSize) {<NEW_LINE>List<Instance> dominators = new ArrayList(JavaClassesProvider.getDominatorRoots(heap));<NEW_LINE>Collections.sort(dominators, new Comparator<Instance>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(Instance i1, I...
), i1.getRetainedSize());
637,423
public static void init() {<NEW_LINE>BlockManager blockManager = MinecraftServer.getBlockManager();<NEW_LINE>blockManager.registerBlockPlacementRule(new RedstonePlacementRule());<NEW_LINE>blockManager.registerBlockPlacementRule(new AxisPlacementRule(Block.BONE_BLOCK));<NEW_LINE>blockManager.registerBlockPlacementRule(n...
new AxisPlacementRule(Block.STRIPPED_SPRUCE_LOG));
1,784,003
public void addTable(PhyInfoSchemaContext context) {<NEW_LINE>// Table Meta<NEW_LINE>TablesInfoSchemaRecord tablesInfoSchemaRecord = fetchTableMetaFromInfoSchema(context.phyTableSchema, context.phyTableName, context.dataSource);<NEW_LINE>TablesRecord tablesRecord = RecordConverter.convertTable(tablesInfoSchemaRecord, c...
context.phyTableName, context.dataSource);
1,321,012
public Template saveTemplate(final Template template, final Host host, final User user, final boolean respectFrontendRoles) throws DotDataException, DotSecurityException {<NEW_LINE>if (Template.SYSTEM_TEMPLATE.equals(template.getIdentifier())) {<NEW_LINE>Logger.error(this, "System template can not be modified");<NEW_LI...
find(template.getIdentifier());
818,919
private HttpResponse applicationPackage(String tenantName, String applicationName, HttpRequest request) {<NEW_LINE>var tenantAndApplication = TenantAndApplicationId.from(tenantName, applicationName);<NEW_LINE>SortedSet<ApplicationVersion> versions = controller.applications().requireApplication(tenantAndApplication).ver...
tests = request.getBooleanProperty("tests");
502,814
private static void triggerGc(Integer pid) {<NEW_LINE>VirtualMachine vm = null;<NEW_LINE>try {<NEW_LINE>vm = VirtualMachine.attach<MASK><NEW_LINE>HotSpotVirtualMachine hvm = (HotSpotVirtualMachine) vm;<NEW_LINE>try (InputStream in = hvm.executeJCmd("GC.run")) {<NEW_LINE>byte[] b = new byte[256];<NEW_LINE>int n;<NEW_LIN...
(String.valueOf(pid));
18,132
public Response expression(ExpressionRequest expressionRequest, SecurityContext securityContext) throws NotFoundException {<NEW_LINE>try {<NEW_LINE>RequestValidationHandler.validateExpressionRequest(expressionRequest);<NEW_LINE>final String expression = Joiner.on(",").join(expressionRequest.getExpression());<NEW_LINE>f...
).doubleValue() * timePrecision);
1,780,484
public void onBindViewHolder(@NonNull GenericAdapter.ViewHolder holder, int position) {<NEW_LINE>Gallery ent = positionToGallery(holder.getBindingAdapterPosition());<NEW_LINE>if (ent == null)<NEW_LINE>return;<NEW_LINE>ImageDownloadUtility.loadImage(context, ent.getThumbnail(), holder.imgView);<NEW_LINE>holder.pages.set...
= holder.title.getLayout();
696,102
public void marshall(BatchResultErrorEntry _batchResultErrorEntry, Request<?> request, String _prefix) {<NEW_LINE>String prefix;<NEW_LINE>if (_batchResultErrorEntry.getId() != null) {<NEW_LINE>prefix = _prefix + "Id";<NEW_LINE>String id = _batchResultErrorEntry.getId();<NEW_LINE>request.addParameter(prefix, StringUtils...
, StringUtils.fromString(code));
1,534,641
public PNode visit(ImportFromSSTNode node) {<NEW_LINE>scopeEnvironment.setCurrentScope(node.scope);<NEW_LINE>String from = node.from;<NEW_LINE>int level = 0;<NEW_LINE>while (from.length() > level && from.charAt(level) == '.') {<NEW_LINE>level++;<NEW_LINE>}<NEW_LINE>if (level > 0) {<NEW_LINE>from = from.substring(level)...
asName = node.asNames[i];
46,979
final CompleteSnapshotResult executeCompleteSnapshot(CompleteSnapshotRequest completeSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(completeSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
(super.beforeMarshalling(completeSnapshotRequest));
633,357
public void run() {<NEW_LINE>String host = TiConvert.toString(getProperty("host"));<NEW_LINE>Object timeoutProperty = getProperty("timeout");<NEW_LINE>try {<NEW_LINE>if (timeoutProperty != null) {<NEW_LINE>int timeout = TiConvert.toInt(timeoutProperty, 0);<NEW_LINE>clientSocket = new Socket();<NEW_LINE>clientSocket.con...
CONNECTED, "connected", buildConnectedCallbackArgs());
766,781
public int compareTo(GcCycleStats other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetStarted(), other.isSetStarted());<NEW_LINE>if (...
), other.isSetDeleted());
6,381
protected List<ProgrammingLanguage> sortAndFilterInternal(Map<String, SortMeta> sortBy, Map<String, FilterMeta> filterBy) {<NEW_LINE>Stream<ProgrammingLanguage> langsStream = langs.stream();<NEW_LINE>if (filterBy != null && !filterBy.isEmpty()) {<NEW_LINE>for (FilterMeta meta : filterBy.values()) {<NEW_LINE>if (meta.ge...
collect(Collectors.toList());
797,895
public TFGraphRunnerService init(List<String> inputNames, List<String> outputNames, byte[] graphBytes, Map<String, INDArray> constants, Map<String, String> inputDataTypes) {<NEW_LINE>if (inputNames.size() != inputDataTypes.size()) {<NEW_LINE>throw new IllegalArgumentException("inputNames.size() != inputDataTypes.size()...
castConstants = new HashMap<>();
1,125,374
public void run(RegressionEnvironment env) {<NEW_LINE>String textOne = "@name('s0') select s0.getVolume(), s0.getPriceTimesVolume(3) from " + "SupportMarketDataBean as s0 ";<NEW_LINE>env.compileDeploy(textOne).addListener("s0");<NEW_LINE>env.assertStatement("s0", statement -> {<NEW_LINE><MASK><NEW_LINE>assertEquals(2, ...
EventType type = statement.getEventType();
1,789,034
private static BundleEntryComponent medicationClaim(RandomNumberGenerator rand, BundleEntryComponent personEntry, Bundle bundle, BundleEntryComponent encounterEntry, Claim claim, BundleEntryComponent medicationEntry) {<NEW_LINE>org.hl7.fhir.dstu3.model.Claim claimResource = new org.hl7.fhir.dstu3.model.Claim();<NEW_LIN...
setValue(claim.getTotalClaimCost());
747,227
protected void executeReport(Locale locale) throws MavenReportException {<NEW_LINE>try {<NEW_LINE>JApiCmpMojo mojo = getMojo();<NEW_LINE>if (this.skip || isPomModuleNeedingSkip()) {<NEW_LINE>getLog().info("japicmp module set to skip");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Optional<XmlOutput> xmlOutputOptional = mojo.ex...
htmlString.replaceAll("<META[^>]*>", "");
1,805,294
private String hexToString(String hexString) throws IOException {<NEW_LINE>if (hexString.length() < 2) {<NEW_LINE>throw new IOException("Error: Expected hex string of length >= 2 not='" + hexString);<NEW_LINE>}<NEW_LINE>if (hexString.charAt(0) != '<' || hexString.charAt(hexString.length() - 1) != '>') {<NEW_LINE>throw ...
IOException("String should be enclosed by angle brackets '" + hexString + "'");
1,051,910
public Collection<HudsonJob> createJobs(Collection<BuilderConnector.JobData> data) {<NEW_LINE>Collection<HudsonJob> jobList = new ArrayList<HudsonJob>();<NEW_LINE>for (BuilderConnector.JobData jd : data) {<NEW_LINE>HudsonJobImpl job = new HudsonJobImpl(this);<NEW_LINE>if (jd.isSecured()) {<NEW_LINE>job.putProperty(JOB_...
JOB_LAST_COMPLETED_BUILD, jd.getLastCompletedBuild());
1,832,120
public void on(final RebuildIndexAsyncEvent event) {<NEW_LINE>if (log.isInfoEnabled()) {<NEW_LINE>log.info("Rebuild index event: " + event.toString());<NEW_LINE>}<NEW_LINE>// Clear the index<NEW_LINE>AppContext.getInstance().getIndexingHandler().clearIndex();<NEW_LINE>// Index all documents<NEW_LINE>TransactionUtil.han...
documentDao.findAll(offset, 100);
1,697,134
public static GoogleJsonResponseException newMock(JsonFactory jsonFactory, int httpCode, String reasonPhrase) throws IOException {<NEW_LINE>MockLowLevelHttpResponse otherServiceUnavaiableLowLevelResponse = new MockLowLevelHttpResponse().setStatusCode(httpCode).setReasonPhrase(reasonPhrase).setContentType(Json.MEDIA_TYP...
HttpResponse otherServiceUnavailableResponse = otherRequest.execute();
1,176,838
private void createPublishTasksForEachMavenRepo(final TaskContainer tasks, final TaskProvider<Task> publishLifecycleTask, final MavenPublicationInternal publication, final NamedDomainObjectList<MavenArtifactRepository> repositories) {<NEW_LINE>final String publicationName = publication.getName();<NEW_LINE>repositories....
publishTask.setGroup(PublishingPlugin.PUBLISH_TASK_GROUP);
211,357
private void createAdditionalIntentMethods() {<NEW_LINE>if (hasFragmentInClasspath()) {<NEW_LINE>// intent() with android.app.Fragment param<NEW_LINE>JMethod method = holder.getGeneratedClass().method(STATIC | PUBLIC, holder.getIntentBuilderClass(), "intent");<NEW_LINE>JVar fragmentParam = method.param(getClasses().FRA...
holder.getIntentBuilderClass(), "intent");
958,881
private <T> void addAliasedPlugins(PluginType type, Map<String, Class<T>> pluginCache) {<NEW_LINE>final Map<String, Class<T>> aliasesToAdd = new HashMap<>();<NEW_LINE>for (Map.Entry<String, Class<T>> e : pluginCache.entrySet()) {<NEW_LINE>final String realPluginName = e.getKey();<NEW_LINE>final Optional<String> alias =...
aliasRegistry.aliasFromOriginal(type, realPluginName);
812,654
public static Block convertEtherBlockToKunderaBlock(EthBlock block, boolean includeTransactions) {<NEW_LINE>Block kunderaBlk = new Block();<NEW_LINE>org.web3j.protocol.core.methods.response.EthBlock.Block blk = block.getBlock();<NEW_LINE>kunderaBlk.setAuthor(blk.getAuthor());<NEW_LINE>kunderaBlk.setDifficulty(blk.getDi...
setHash(blk.getHash());
1,399,413
private void createLogger(final String flowId) {<NEW_LINE>// Create logger<NEW_LINE>// If this is a containerized execution then there is no need for a custom logger.<NEW_LINE>// The logs would be appended to server logs and persisted from FlowContainer.<NEW_LINE>if (isContainerizedDispatchMethodEnabled()) {<NEW_LINE>t...
= this.logFile.getAbsolutePath();
21,525
public JFrame initSwingGui(MenuBuilder menuBuilder) {<NEW_LINE>JFrame mainFrame = new JFrame();<NEW_LINE>mainFrame.addWindowFocusListener(new UmletWindowFocusListener());<NEW_LINE>mainFrame.addKeyListener(new GUIListener());<NEW_LINE>mainFrame<MASK><NEW_LINE>mainFrame.addWindowListener(new SwingWindowListener());<NEW_L...
.addKeyListener(new SearchKeyListener());
845,310
private Border createImageBorder(String[] value) {<NEW_LINE>if (value[0].equals("h")) {<NEW_LINE>return Border.createHorizonalImageBorder(getImage(value[1]), getImage(value[2]), getImage(value[3]));<NEW_LINE>}<NEW_LINE>if (value[0].equals("v")) {<NEW_LINE>return Border.createVerticalImageBorder(getImage(value[1]), getI...
Image[value.length - 1];
687,764
public boolean onTouchEvent(MotionEvent event) {<NEW_LINE>int a = event.getActionMasked();<NEW_LINE>FLog.v(getLogTag(), "onTouchEvent: %d, view %x, received", a, this.hashCode());<NEW_LINE>if (mTapGestureDetector.onTouchEvent(event)) {<NEW_LINE>FLog.v(getLogTag(), "onTouchEvent: %d, view %x, handled by tap gesture dete...
cancelEvent.setAction(MotionEvent.ACTION_CANCEL);
102,205
public synchronized int waitFor() throws InterruptedException {<NEW_LINE>if (exitValue == null) {<NEW_LINE><MASK><NEW_LINE>Ruby runtime = this.runtime;<NEW_LINE>ThreadContext context = runtime.getCurrentContext();<NEW_LINE>context.blockingThreadPoll();<NEW_LINE>retry: while (true) {<NEW_LINE>stat_loc[0] = 0;<NEW_LINE>/...
int[] stat_loc = { 0 };
1,078,113
public void tlsJMXConnector() throws Exception {<NEW_LINE>// tag::tlsJMXConnector[]<NEW_LINE>// System properties necessary for an RMI client to trust a self-signed certificate.<NEW_LINE>System.setProperty("javax.net.ssl.trustStore", "/path/to/trustStore");<NEW_LINE><MASK><NEW_LINE>JMXServiceURL jmxURL = new JMXService...
System.setProperty("javax.net.ssl.trustStorePassword", "secret");
1,275,359
public static DescribeSnapshotsResponse unmarshall(DescribeSnapshotsResponse describeSnapshotsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSnapshotsResponse.setRequestId(_ctx.stringValue("DescribeSnapshotsResponse.RequestId"));<NEW_LINE>describeSnapshotsResponse.setTotalCount(_ctx.integerValue("DescribeSnapsh...
("DescribeSnapshotsResponse.Snapshots[" + i + "].EncryptType"));
305,751
private void restoreState() {<NEW_LINE>String data = mPrefs.getData(MAIN_UI_DATA);<NEW_LINE>String[] split = Helpers.splitObjectLegacy(data);<NEW_LINE>mIsCardAnimatedPreviewsEnabled = Helpers.parseBoolean(split, 0, true);<NEW_LINE>mVideoGridScale = Helpers.parseFloat(split, 1, 1.0f);<NEW_LINE>mUIScale = Helpers.parseFl...
parseInt(split, 5, CHANNEL_SORTING_LAST_VIEWED);
958,918
public // writer.close()<NEW_LINE>XMLElement toXml() {<NEW_LINE>final <MASK><NEW_LINE>addonElement.setAttribute("name", name);<NEW_LINE>addonElement.setAttribute("version", version);<NEW_LINE>addonElement.setAttribute("latestVersion", latestVersion == null ? "" : latestVersion);<NEW_LINE>addonElement.setAttribute("free...
XMLElement addonElement = new XMLElement("addon");
754,812
public boolean applies(UUID sourceId, Ability source, UUID affectedControllerId, Game game) {<NEW_LINE>if (!source.isControlledBy(affectedControllerId) || !game.getOpponents(game.getOwnerId(sourceId)).contains(source.getControllerId())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Card card = game.getCard(sourceId);<NE...
getCount(CounterType.ICE) > 0;
1,583,027
public void run() {<NEW_LINE>final NativeAdsManager adsManager = new NativeAdsManager(mContext, placementId, adsToRequest);<NEW_LINE>adsManager.setListener(new NativeAdsManager.Listener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onAdsLoaded() {<NEW_LINE>Bundle adsManagersState = new Bundle();<NEW_LINE>for (S...
state.putString("placementId", placementId);
762,672
final SetIdentityFeedbackForwardingEnabledResult executeSetIdentityFeedbackForwardingEnabled(SetIdentityFeedbackForwardingEnabledRequest setIdentityFeedbackForwardingEnabledRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setIdentityFeedbackForwardingEnabledRequest);<NEW_LINE>AWSRequestMet...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "SetIdentityFeedbackForwardingEnabled");
276,636
public IPath[] enclosingProjectsAndJars() {<NEW_LINE>IPath[] result = this.enclosingPaths;<NEW_LINE>if (result != null) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>long start = BasicSearchEngine.VERBOSE ? System.currentTimeMillis() : -1;<NEW_LINE>try {<NEW_LINE>IJavaProject[] projects = JavaModelManager.getJavaModelM...
IPath path = entry.getPath();
1,193,556
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent permanent = getTargetPointer().getFirstTargetPermanentOrLKI(game, source);<NEW_LINE>if (permanent != null) {<NEW_LINE>CreateTokenCopyTargetEffect effect = new CreateTokenCopyTargetEffect(permanent.getControllerId());<NEW_LINE>effect.setTargetPointer(t...
= (Set<UUID>) object;
436,049
public static void partialReduceIntMin(int[] inputArray, int[] outputArray, int gidx) {<NEW_LINE>int <MASK><NEW_LINE>int localGroupSize = SPIRVOCLIntrinsics.get_local_size(0);<NEW_LINE>int groupID = SPIRVOCLIntrinsics.get_group_id(0);<NEW_LINE>int[] localArray = (int[]) NewArrayNode.newUninitializedArray(int.class, LOC...
localIdx = SPIRVOCLIntrinsics.get_local_id(0);
1,458,432
public static void applyArrayExpansion(CdmEntityAttributeDefinition entityAttr, int startOrdinal, int endOrdinal, String renameFormat, String countAttName) {<NEW_LINE>CdmCorpusContext ctx = entityAttr.getCtx();<NEW_LINE>CdmProjection projection = new CdmProjection(ctx);<NEW_LINE>projection.setSource(entityAttr.getEntit...
getOperations().add(addCountAttrOperation);
158,738
public Request<GetExpenseAnalysisRequest> marshall(GetExpenseAnalysisRequest getExpenseAnalysisRequest) {<NEW_LINE>if (getExpenseAnalysisRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(GetExpenseAnalysisRequest)");<NEW_LINE>}<NEW_LINE>Request<GetExpenseAnalysisRequest> r...
request.addHeader("Content-Type", "application/x-amz-json-1.1");
1,080,087
protected void taskOperation(FlushJobAction.Request request, JobTask task, ActionListener<FlushJobAction.Response> listener) {<NEW_LINE>FlushJobParams.Builder paramsBuilder = FlushJobParams.builder();<NEW_LINE>paramsBuilder.<MASK><NEW_LINE>paramsBuilder.waitForNormalization(request.isWaitForNormalization());<NEW_LINE>i...
calcInterim(request.getCalcInterim());
1,402,444
public static void nv21ToPlanarRgb_U8(byte[] dataNV, Planar<GrayU8> output) {<NEW_LINE>GrayU8 R = output.getBand(0);<NEW_LINE>GrayU8 G = output.getBand(1);<NEW_LINE>GrayU8 B = output.getBand(2);<NEW_LINE>final int yStride = output.width;<NEW_LINE>final int uvStride = output.width / 2;<NEW_LINE>final int startUV = yStri...
2) * (2 * uvStride);
1,060,635
public void updateContent() {<NEW_LINE>List<GpxDisplayItem> items = TrackDisplayHelper.flatten(displayHelper.getOriginalGroups(filterTypes));<NEW_LINE>updateLocationOnMap(items);<NEW_LINE>recyclerView = view.findViewById(R.id.recycler_view);<NEW_LINE>recyclerView.setLayoutManager(new LinearLayoutManager(activity));<NEW...
setAdapter(new SegmentsAdapter(items));
619,824
private void extractAndPutDataTo(ExtensionTabData.Builder extensionTab, ExtensionDescription description, ResultSet set) throws SQLException {<NEW_LINE>String groupValue = set.getString("group_value");<NEW_LINE>if (groupValue != null) {<NEW_LINE>extensionTab.putGroupData(ExtensionStringData.regularString(description, g...
set.getBoolean(ExtensionServerValueTable.BOOLEAN_VALUE);
534,571
public static synchronized CauldronFluidContent registerCauldron(Block block, Fluid fluid, long amountPerLevel, @Nullable IntProperty levelProperty) {<NEW_LINE>CauldronFluidContent existingBlockData = BLOCK_TO_CAULDRON.get(block);<NEW_LINE>if (existingBlockData != null) {<NEW_LINE>return existingBlockData;<NEW_LINE>}<N...
Math.min(minLevel, level);
1,274,768
private Matrix4d mulGeneric3x3(double r00, double r01, double r02, double r10, double r11, double r12, double r20, double r21, double r22, Matrix4d dest) {<NEW_LINE>double nm00 = Math.fma(m00, r00, Math.fma(m10, r01, m20 * r02));<NEW_LINE>double nm01 = Math.fma(m01, r00, Math.fma(m11, r01, m21 * r02));<NEW_LINE>double ...
, r11, m23 * r12));
1,168,702
public BufferedImageFilterResult filter(BufferedImage source, BufferedImage destination, boolean modifySource) {<NEW_LINE>BufferedImage flag = getLanguageFlag(languageCode);<NEW_LINE>if (flag == null) {<NEW_LINE>return new BufferedImageFilterResult(source, false, true);<NEW_LINE>}<NEW_LINE>boolean sameInstance = true;<...
Graphics2D g2d = source.createGraphics();
323,129
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, String[] args) {<NEW_LINE>if (args.length == 2) {<NEW_LINE>if (UserManager.getPlayer((Player) sender) == null) {<NEW_LINE>sender.sendMessage(LocaleLoader.getString("Profile.PendingLoad"));<NEW_LINE>return true;<NEW_...
PartyManager.removeFromParty(target, playerParty);
849,157
public static PyException OSError(Constant errno, PyObject filename) {<NEW_LINE><MASK><NEW_LINE>// see https://github.com/jruby/jruby/commit/947c661e46683ea82f8016dde9d3fa597cd10e56<NEW_LINE>// for rationale to do this mapping, but in a nutshell jnr-constants is automatically<NEW_LINE>// generated from header files, so...
int value = errno.intValue();
357,491
public void marshall(ProjectArtifacts projectArtifacts, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (projectArtifacts == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(projectArtifacts.getType(), TYPE_BIN...
projectArtifacts.getPath(), PATH_BINDING);
516,785
void build() {<NEW_LINE>if (taskBuilder == null) {<NEW_LINE>throw new IllegalStateException("You must specify the task which will contribute classes from this source directory");<NEW_LINE>}<NEW_LINE>SourceDirectorySet langSrcDir = project.getObjects().sourceDirectorySet(name, description == null ? "Sources for " + name...
getName() + "/" + name);
985,389
public boolean onResult(@NonNull String dialogTag, int which, @NonNull Bundle extras) {<NEW_LINE>if (which != BUTTON_POSITIVE) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (dialogTag.equalsIgnoreCase(PreferenceNames.MINIMUM_INTERVAL)) {<NEW_LINE>String minInterval = extras.getString(PreferenceNames.MINIMUM_INTERVAL);...
(Integer.valueOf(dist));
542,884
final ListStudioLifecycleConfigsResult executeListStudioLifecycleConfigs(ListStudioLifecycleConfigsRequest listStudioLifecycleConfigsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listStudioLifecycleConfigsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
(super.beforeMarshalling(listStudioLifecycleConfigsRequest));
1,414,765
protected static Fix fieldFix(Tree toReplace, VisitorState state) {<NEW_LINE>TreePath path = state.getPath();<NEW_LINE>while (path != null && path.getLeaf().getKind() != Kind.CLASS && path.getLeaf().getKind() != Kind.BLOCK) {<NEW_LINE>path = path.getParentPath();<NEW_LINE>}<NEW_LINE>if (path == null) {<NEW_LINE>return ...
declaration.getName() + ".");
1,364,202
public String run() throws RepoException, ValidationException {<NEW_LINE>String output = null;<NEW_LINE>try {<NEW_LINE>output = repo.runPush(this);<NEW_LINE>} catch (RepoException e) {<NEW_LINE>if (e.getMessage().contains("(non-fast-forward)") || e.getMessage().contains("(fetch first)")) {<NEW_LINE>throw new NonFastFor...
, url, refspecs), e);
966,796
private void onSelectProposalResultListItem(ProposalListItem item) {<NEW_LINE>selectedProposalListItem = item;<NEW_LINE>if (selectedProposalListItem != null) {<NEW_LINE>EvaluatedProposal evaluatedProposal = selectedProposalListItem.getEvaluatedProposal();<NEW_LINE>Optional<Ballot> optionalBallot = daoFacade.getAllValid...
evaluatedProposal, ballot, isVoteIncludedInResult, sortedVoteListItemList);
991,814
public final void bounds(int range) {<NEW_LINE>double x0 = cx0;<NEW_LINE>double y0 = cy0;<NEW_LINE>double x1 = cx0 + cx1 + cx2 + cx3;<NEW_LINE>double y1 <MASK><NEW_LINE>double minx = Math.min(x0, x1);<NEW_LINE>double miny = Math.min(y0, y1);<NEW_LINE>double maxx = Math.max(x0, x1);<NEW_LINE>double maxy = Math.max(y0, y...
= cy0 + cy1 + cy2 + cy3;
1,373,992
public void performOperation(POMModel model) {<NEW_LINE>Project p = model.getProject();<NEW_LINE>Build bld = p.getBuild();<NEW_LINE>if (bld == null) {<NEW_LINE>bld = model.getFactory().createBuild();<NEW_LINE>p.setBuild(bld);<NEW_LINE>}<NEW_LINE>Plugin plg = PluginBackwardPropertyUtils.findPluginFromBuild(bld);<NEW_LIN...
plg.setArtifactId(MavenNbModuleImpl.NBM_PLUGIN);
1,345,303
public void onSaveInstanceState(@NonNull Bundle outState) {<NEW_LINE>super.onSaveInstanceState(outState);<NEW_LINE>outState.putInt(KEY_SELECTED_YEAR, mCalendar.get(Calendar.YEAR));<NEW_LINE>outState.putInt(KEY_SELECTED_MONTH, mCalendar.get(Calendar.MONTH));<NEW_LINE>outState.putInt(KEY_SELECTED_DAY, mCalendar.get(Calen...
outState.putBoolean(KEY_VIBRATE, mVibrate);
279,017
public Map<String, Object> viewVariables(long projectCode, Integer processInstanceId) {<NEW_LINE>Map<String, Object> result = new HashMap<>();<NEW_LINE>ProcessInstance processInstance = processInstanceMapper.queryDetailById(processInstanceId);<NEW_LINE>if (processInstance == null) {<NEW_LINE>throw new RuntimeException(...
resultMap.put(LOCAL_PARAMS, localUserDefParams);
295,595
private String contrast() {<NEW_LINE>final ShenyuDictDO before = (ShenyuDictDO) getBefore();<NEW_LINE>Objects.requireNonNull(before);<NEW_LINE>final ShenyuDictDO <MASK><NEW_LINE>Objects.requireNonNull(after);<NEW_LINE>if (Objects.equals(before, after)) {<NEW_LINE>return "it no change";<NEW_LINE>}<NEW_LINE>final StringB...
after = (ShenyuDictDO) getAfter();
686,949
public void onEvent(Event event) throws Exception {<NEW_LINE>if (event == null)<NEW_LINE>return;<NEW_LINE>if (logout == event.getTarget()) {<NEW_LINE>cleanup();<NEW_LINE>Objects.requireNonNull(SessionManager.getApplication()).logout();<NEW_LINE>} else if (role == event.getTarget()) {<NEW_LINE>String roleInfo = MRole.ge...
user = MUser.get(ctx);
756,766
public static void main(String[] args) {<NEW_LINE>CommandLine cmd = parseArgs(args);<NEW_LINE>try {<NEW_LINE>boolean castEnable = Boolean.parseBoolean(cmd.getOptionValue("castEnable"));<NEW_LINE>File allTelemetrySource = new File(cmd.getOptionValue("telemetryFrom"));<NEW_LINE>File tsSaveDir = null;<NEW_LINE>File partit...
cmd.getOptionValue("relatedEntities")));
714,058
public synchronized void start() throws Exception {<NEW_LINE>Preconditions.checkState(mState != State.STARTED, "Cannot start while already started");<NEW_LINE>Preconditions.checkState(mState != State.DESTROYED, "Cannot start a destroyed cluster");<NEW_LINE><MASK><NEW_LINE>mState = State.STARTED;<NEW_LINE>// Start serve...
mWorkDir = AlluxioTestDirectory.createTemporaryDirectory(mClusterName);
1,704,523
public static GetLindormInstanceResponse unmarshall(GetLindormInstanceResponse getLindormInstanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>getLindormInstanceResponse.setRequestId(_ctx.stringValue("GetLindormInstanceResponse.RequestId"));<NEW_LINE>getLindormInstanceResponse.setVpcId(_ctx.stringValue("GetLindormInst...
(_ctx.stringValue("GetLindormInstanceResponse.DeletionProtection"));
1,255,825
private void removeBindings() {<NEW_LINE>priceCurrencyLabel.textProperty().unbind();<NEW_LINE>triggerPriceCurrencyLabel.textProperty().unbind();<NEW_LINE>triggerPriceDescriptionLabel.textProperty().unbind();<NEW_LINE>percentagePriceDescriptionLabel.textProperty().unbind();<NEW_LINE>volumeCurrencyLabel<MASK><NEW_LINE>pr...
.textProperty().unbind();
1,129,987
private static List<ThreadInfo> parseThreadsInfo(int pid) {<NEW_LINE>String rootPath = "/proc/" + pid + "/task/";<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>if (taskDir.isDirectory()) {<NEW_LINE>File[] subDirs = taskDir.listFiles();<NEW_LINE>if (null == subDirs) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LI...
File taskDir = new File(rootPath);
1,810,745
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2".split(",");<NEW_LINE>String epl = "@name('s0') select " + "value < all (select sum(intPrimitive) from SupportBean#keepall) as c0, " + "value < any (select sum(intPrimitive) from SupportBean#keepall) as c1, " + "value < some (select sum(i...
{ false, false, false });
1,320,395
public static void sharpenInner8(GrayF32 input, GrayF32 output, float minValue, float maxValue) {<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(1,input.height-1,y->{<NEW_LINE>for (int y = 1; y < input.height - 1; y++) {<NEW_LINE>int indexIn = input.startIndex + y * input.stride + 1;<NEW_LINE>int indexOut = outpu...
indexIn + input.stride - 1];
553,352
public void doExecute(Editor editor, Caret caret, DataContext dataContext) {<NEW_LINE>PerEditorSearchData data = editor.getUserData(SEARCH_DATA_IN_EDITOR_VIEW_KEY);<NEW_LINE>if (data == null || data.hint == null) {<NEW_LINE>myOriginalHandler.<MASK><NEW_LINE>} else {<NEW_LINE>LightweightHint hint = data.hint;<NEW_LINE>P...
execute(editor, caret, dataContext);
298,010
public void init(PortletConfig config) throws PortletException {<NEW_LINE>CurrentInstance.clearAll();<NEW_LINE>super.init(config);<NEW_LINE>Properties initParameters = new Properties();<NEW_LINE>// Read default parameters from the context<NEW_LINE>final <MASK><NEW_LINE>for (final Enumeration<String> e = context.getInit...
PortletContext context = config.getPortletContext();
1,272,009
public GetBatchImportJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetBatchImportJobsResult getBatchImportJobsResult = new GetBatchImportJobsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonT...
String currentParentElement = context.getCurrentParentElement();
1,618,000
void generatePluralMethod(CheckerFrameworkVersion cfv, boolean deprecate, TypeReference returnType, Statement returnStatement, SingularData data, EclipseNode builderType, boolean fluent, AccessLevel access) {<NEW_LINE>MethodDeclaration md = new MethodDeclaration(((CompilationUnitDeclaration) builderType.top().get()).co...
deprecate, data.getSource());
860,504
public Segment unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Segment segment = new Segment();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token...
class).unmarshall(context));
855,254
private static void populateTypeArgs(ParameterizedType type, Map<TypeVariable<?>, Type> map) {<NEW_LINE>if (type.getRawType() instanceof Class) {<NEW_LINE>TypeVariable<?>[] typeVariables = ((Class<?>) type.getRawType()).getTypeParameters();<NEW_LINE>Type[] typeArguments = type.getActualTypeArguments();<NEW_LINE>if (typ...
= (TypeVariable<?>) typeArgument;
360,864
private SendMailCommand createSendMailCommandFromProperties() throws AddressException {<NEW_LINE>SendMailCommand sendMailCmd = new SendMailCommand();<NEW_LINE>sendMailCmd.setSmtpServer(getPropertyAsString(SmtpSampler.SERVER));<NEW_LINE>sendMailCmd.setSmtpPort(getPropertyAsString(SmtpSampler.SERVER_PORT));<NEW_LINE>send...
(getPropertyAsBoolean(SecuritySettingsPanel.USE_STARTTLS));
1,801,725
public Double run(Relation<NumberVector> relation) {<NEW_LINE>final int dim = RelationUtil.dimensionality(relation);<NEW_LINE>final QueryBuilder<NumberVector> qb = new QueryBuilder<>(relation, distance);<NEW_LINE>KNNSearcher<NumberVector> knnQuery = qb.kNNByObject(k + 1);<NEW_LINE>KNNSearcher<DBIDRef> intQuery = qb.kNN...
, umean.getSampleStddev()));
1,773,219
protected void restoreSurface() {<NEW_LINE>if (changed) {<NEW_LINE>changed = false;<NEW_LINE>if (restoreFilename != null && restoreWidth == pixelWidth && restoreHeight == pixelHeight) {<NEW_LINE>// Set the counter to 1 so the restore bitmap is drawn in the next frame.<NEW_LINE>restoreCount = 1;<NEW_LINE>}<NEW_LINE>} el...
ObjectInputStream din = new ObjectInputStream(inStream);
813,749
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {<NEW_LINE>setPreferencesFromResource(R.xml.users_preferences, rootKey);<NEW_LINE>setHasOptionsMenu(true);<NEW_LINE>Preference addUser = findPreference(PREFERENCE_KEY_ADD_USER);<NEW_LINE>addUser.setOnPreferenceClickListener(new Preference.OnPref...
setMode(UserSettingsFragment.USER_SETTING_MODE.ADD);
1,040,345
public OneResponse call(String action, Object... args) {<NEW_LINE>boolean success = false;<NEW_LINE>String msg = null;<NEW_LINE>try {<NEW_LINE>Object[] params = new <MASK><NEW_LINE>params[0] = oneAuth;<NEW_LINE>for (int i = 0; i < args.length; i++) params[i + 1] = args[i];<NEW_LINE>Object[] result = (Object[]) client.e...
Object[args.length + 1];
1,314,905
public static boolean canConnect(Level world, BlockPos first, BlockPos second) {<NEW_LINE>if (!world.isAreaLoaded(first, 1))<NEW_LINE>return false;<NEW_LINE>if (!world.isAreaLoaded(second, 1))<NEW_LINE>return false;<NEW_LINE>if (!second.closerThan(first, maxLength()))<NEW_LINE>return false;<NEW_LINE>BlockPos <MASK><NEW...
diff = second.subtract(first);
110,489
private void preProcessClass(ClassNode cls) {<NEW_LINE>ClassInfo classInfo = cls.getClassInfo();<NEW_LINE>String pkgFullName = classInfo.getPackage();<NEW_LINE>PackageNode pkg = getPackageNode(pkgFullName, true);<NEW_LINE>processPackageFull(pkg, pkgFullName);<NEW_LINE>String alias = deobfPresets.getForCls(classInfo);<N...
&& reservedClsNames.contains(clsShortName));
391,361
public int updateHmilyTransactionStatus(final Long transId, final Integer status) throws HmilyRepositoryException {<NEW_LINE>byte[] key = <MASK><NEW_LINE>try {<NEW_LINE>byte[] data = jedisClient.hget(HMILY_TRANSACTION_GLOBAL.getBytes(), key);<NEW_LINE>if (data == null) {<NEW_LINE>return HmilyRepository.FAIL_ROWS;<NEW_L...
buildHmilyTransactionRealPath(transId).getBytes();
707,938
CompletableFuture<DeleteNamespaceResponse> deleteNamespace(String nsName, NamespaceMetadata nsMetadata) {<NEW_LINE>if (null == nsMetadata) {<NEW_LINE>return FutureUtils.value(DeleteNamespaceResponse.newBuilder().setCode(StatusCode.NAMESPACE_NOT_FOUND).build());<NEW_LINE>}<NEW_LINE>byte<MASK><NEW_LINE>byte[] nsIdKey = g...
[] nsNameKey = getNamespaceNameKey(nsName);
1,270,485
public void write(final java.nio.ByteBuffer buf) {<NEW_LINE>try {<NEW_LINE>int startPositionMark = buf.position();<NEW_LINE>buf.position(buf.position() + 1);<NEW_LINE>int unknownsCounter = 0;<NEW_LINE>if (unknownFields == null)<NEW_LINE>unknownsCounter = Integer.MAX_VALUE;<NEW_LINE>{<NEW_LINE>com.wowd.wobly.WoblyUtils....
this.persons.size());
739,382
protected void onNewIntent(Intent intent) {<NEW_LINE>super.onNewIntent(intent);<NEW_LINE>Log.d("PIA", "New intent called: " + intent.toString());<NEW_LINE>// Check for action first<NEW_LINE>if (ACTION_PACKAGE_INSTALLED.equals(intent.getAction())) {<NEW_LINE>sessionId = intent.getIntExtra(PackageInstaller.EXTRA_SESSION_...
packageName, PackageInstallerCompat.STATUS_FAILURE_INCOMPATIBLE_ROM, sessionId);
597,552
final GetUserResult executeGetUser(GetUserRequest getUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Reques...
invoke(request, responseHandler, executionContext);
1,483,088
protected void removeBindings() {<NEW_LINE>amountTextField.textProperty().unbindBidirectional(model.amount);<NEW_LINE>minAmountTextField.textProperty().unbindBidirectional(model.minAmount);<NEW_LINE>priceTextField.textProperty().unbindBidirectional(model.price);<NEW_LINE>volumeTextField.textProperty().unbindBidirection...
.managedProperty().unbind();
552,734
private static void tryAssertionFour(RegressionEnvironment env, String expression) {<NEW_LINE>env.compileDeploy(expression).addListener("s0");<NEW_LINE>String[] fields = "id,valh0,valh1,valh2".split(",");<NEW_LINE>env.assertPropsPerRowIteratorAnyOrder("s0", fields, null);<NEW_LINE>sendBeanInt(env, "E1", 2, 2, 2, 1);<NE...
"H03", "H13", "H03H23" } });
1,159,187
protected void consumeMethodHeaderNameWithTypeParameters(boolean isAnnotationMethod) {<NEW_LINE>// MethodHeaderName ::= Modifiersopt TypeParameters Type 'Identifier' '('<NEW_LINE>// AnnotationMethodHeaderName ::= Modifiersopt TypeParameters Type 'Identifier' '('<NEW_LINE>// RecoveryMethodHeaderName ::= Modifiersopt Typ...
AnnotationMethodDeclaration(this.compilationUnit.compilationResult);
1,221,166
private void computeSubClusterSplit(final int[][] subDesignation, int originalCluster, List<DataPoint> listOfDataPointsInCluster, DataSet fullDataSet, int[] fullDesignations, final int[][] originalPositions, final double[] splitEvaluation, PriorityQueue<Integer> clusterToSplit, boolean parallel) {<NEW_LINE>subDesignati...
int[listOfDataPointsInCluster.size()];