idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,105,011
public int removeImageTypeOwner(ImageType imageType) throws ImageMgmtException {<NEW_LINE>final Set<ImageOwnership> currentOwners = new HashSet<>(getImageTypeOwnership<MASK><NEW_LINE>final Set<ImageOwnership> ownersToRemove = new HashSet<>(imageType.getOwnerships());<NEW_LINE>ownersToRemove.retainAll(currentOwners);<NE...
(imageType.getName()));
733,887
private void initialize() {<NEW_LINE>if (!(doc instanceof StyledDocument)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GuardedSectionManager mgr = GuardedSectionManager.getInstance((StyledDocument) doc);<NEW_LINE>if (mgr == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>len = doc.getLength();<NEW_LINE>int[] arr = new int[10];...
.getBodyStartPosition().getOffset();
1,558,488
final GetFindingResult executeGetFinding(GetFindingRequest getFindingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFindingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,011,659
private void createIORingVerts() {<NEW_LINE>float scale = 0.9f;<NEW_LINE>BoundingBox refBB = CORE_BOUNDS;<NEW_LINE>refBB = refBB.scale(scale, scale, scale);<NEW_LINE>refBB = refBB.scale(scale, 1, 1);<NEW_LINE>double offset = (HWIDTH * scale * scale) + CONNECTOR_DEPTH;<NEW_LINE>EnumFacing dir;<NEW_LINE>Vector3d trans;<N...
, createVerticesForDir(refBB, xform));
632,720
private HttpResponse tenantInvoice(RestApi.RequestContext requestContext) {<NEW_LINE>var tenantName = TenantName.from(requestContext.pathParameters().getStringOrThrow("tenant"));<NEW_LINE>var tenant = tenants.require(tenantName, CloudTenant.class);<NEW_LINE>var invoiceId = requestContext.pathParameters().getStringOrThr...
orElseThrow(RestApiException.NotFound::new);
33,342
public void registerItemSubtypes(@Nonnull ISubtypeRegistration registry) {<NEW_LINE>IIngredientSubtypeInterpreter<ItemStack> interpreter = (stack, ctx) -> ItemBrewBase.getSubtype(stack);<NEW_LINE>registry.registerSubtypeInterpreter(ModItems.brewVial, interpreter);<NEW_LINE>registry.registerSubtypeInterpreter(ModItems.b...
ItemLaputaShard.getShardLevel(stack)));
1,211,919
private boolean compareThreadPoolAdapterCacheConfigs(List<ThreadPoolAdapterCacheConfig> newThreadPoolAdapterCacheConfigs, List<ThreadPoolAdapterCacheConfig> oldThreadPoolAdapterCacheConfigs) {<NEW_LINE>boolean registerFlag = false;<NEW_LINE>Map<String, List<ThreadPoolAdapterState>> newThreadPoolAdapterCacheConfigMap = ...
> newValue = entry.getValue();
242,217
final UpdateRoutingProfileConcurrencyResult executeUpdateRoutingProfileConcurrency(UpdateRoutingProfileConcurrencyRequest updateRoutingProfileConcurrencyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateRoutingProfileConcurrencyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
787,741
public void printAnswers(List<CoreLabel> doc, PrintWriter pw) {<NEW_LINE>String prevAnswer = "O";<NEW_LINE>String prevClass = "";<NEW_LINE>String afterLast = "";<NEW_LINE>for (CoreLabel word : doc) {<NEW_LINE>if (!prevAnswer.equals("O") && !prevAnswer.equals(word.get(CoreAnnotations.AnswerAnnotation.class))) {<NEW_LINE...
get(CoreAnnotations.AfterAnnotation.class);
748,196
public void run() {<NEW_LINE>String tunnelUrl = getClientParam().getClientTunnelUrl();<NEW_LINE>String tunnelSession = getClientParam().getClientTunnelSession();<NEW_LINE>try {<NEW_LINE>if (tunnelUrl != null && !tunnelUrl.isEmpty() && tunnelSession != null && !tunnelSession.isEmpty()) {<NEW_LINE>URI uri = new URI(tunne...
) + ", port: " + getClientHostPort());
1,698,486
public void optionsChanged(DebugOptions options) {<NEW_LINE>boolean debug = options.getBooleanOption(DEBUG, false);<NEW_LINE>BufferManager.VERBOSE = debug && options.getBooleanOption(BUFFER_MANAGER_DEBUG, false);<NEW_LINE>JavaBuilder.DEBUG = debug && options.getBooleanOption(BUILDER_DEBUG, false);<NEW_LINE>Compiler.DEB...
PERF = PerformanceStats.isEnabled(RECONCILE_PERF);
484,748
private static Map<String, String> digestCardMsg(String msg) {<NEW_LINE>Map<String, String> prop = new HashMap<>();<NEW_LINE>if (msg.startsWith("<")) {<NEW_LINE>// xml<NEW_LINE>prop.put("type", "xml");<NEW_LINE>prop.put("serviceID", findXmlValueOrEmpty(msg, "serviceID"));<NEW_LINE>prop.put("templateID", findXmlValueOrE...
msg.substring(0, 127);
1,254,107
private static void adjustTypeDescriptions(Map<Class<?>, ExpandedTypeDescription> types) {<NEW_LINE>ExpandedTypeDescription pathItemTD = types.get(PathItem.class);<NEW_LINE>for (PathItem.HttpMethod m : PathItem.HttpMethod.values()) {<NEW_LINE>pathItemTD.substituteProperty(m.name().toLowerCase(), Operation.class, getter...
Object.class, "getDefaultValue", "setDefaultValue");
1,724,133
public void decode(FacesContext context, DataTable table) {<NEW_LINE>String clientId = table.getClientId(context);<NEW_LINE>Map<String, String> params = context.getExternalContext().getRequestParameterMap();<NEW_LINE>String sortKey = <MASK><NEW_LINE>String sortDir = params.get(clientId + "_sortDir");<NEW_LINE>String[] ...
params.get(clientId + "_sortKey");
1,624,189
private void scheduleSyncMonitoring() {<NEW_LINE>executor.scheduleAtFixedRate(() -> {<NEW_LINE>log.debug("Running the Sync Monitoring.");<NEW_LINE>try {<NEW_LINE>for (Map.Entry<String, DruidServerHolder> e : servers.entrySet()) {<NEW_LINE>DruidServerHolder serverHolder = e.getValue();<NEW_LINE>if (!serverHolder.syncer....
ex, "Exception in sync monitoring.").emit();
1,100,716
public void emit(SPIRVCompilationResultBuilder crb, SPIRVAssembler asm) {<NEW_LINE>Logger.traceCodeGen(Logger.BACKEND.SPIRV, "emit SPIRVOpSConvert : " + fromBits + " -> " + toBits);<NEW_LINE>SPIRVKind spirvKind = <MASK><NEW_LINE>SPIRVId type = asm.primitives.getTypePrimitive(spirvKind);<NEW_LINE>SPIRVId loadConvert = l...
(SPIRVKind) value.getPlatformKind();
857,614
public ClientStream newStream(final MethodDescriptor<?, ?> method, Metadata headers, final CallOptions callOptions, ClientStreamTracer[] tracers) {<NEW_LINE>CallCredentials creds = callOptions.getCredentials();<NEW_LINE>if (creds == null) {<NEW_LINE>creds = channelCallCredentials;<NEW_LINE>} else if (channelCallCredent...
.ATTR_SECURITY_LEVEL), SecurityLevel.NONE);
1,812,158
private static long handleWeeklyRepeatAfterComplete(RRule rrule, Date original, boolean hasDueTime) {<NEW_LINE>List<WeekdayNum> byDay = rrule.getByDay();<NEW_LINE>long newDate = original.getTime();<NEW_LINE>newDate += DateUtilities.ONE_WEEK * (rrule.getInterval() - 1);<NEW_LINE>Calendar date = Calendar.getInstance();<N...
next = findNextWeekday(byDay, date);
54,693
private void updateInternal() {<NEW_LINE>currentViewList.clear();<NEW_LINE>viewMap.clear();<NEW_LINE>// Plan to show all of the views in order to keep the order<NEW_LINE>for (TokenFilter filter : filterList) {<NEW_LINE>try {<NEW_LINE>if (filter.view.isAdmin && !MapTool.getPlayer().isGM()) {<NEW_LINE>continue;<NEW_LINE>...
currentViewList.add(filter.view);
1,550,475
private Instant estimatedProcessingFinishedInstant(JobStats firstRelevantJobStats, JobStats jobStats) {<NEW_LINE>if (jobStats.getSucceeded() - firstRelevantJobStats.getSucceeded() < 1)<NEW_LINE>return null;<NEW_LINE>BigDecimal durationForAmountSucceededInSeconds = valueOf(Duration.between(firstRelevantJobStats.getTimeS...
()).getSeconds());
217,701
public void addLine(String line) {<NEW_LINE>if (styled_text.isDisposed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>line = HTMLUtils.expand(line);<NEW_LINE>Object[] url_details = HTMLUtils.getLinks(line);<NEW_LINE>String modified_line = (String) url_details[0];<NEW_LINE>styled_text.append(modified_line + "\...
= info.ofsEnd - info.ofsStart;
1,711,497
public ConfigurationStatus unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ConfigurationStatus configurationStatus = new ConfigurationStatus();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
().unmarshall(context));
1,816,673
public static boolean isMatch(URL consumerUrl, URL providerUrl) {<NEW_LINE>String consumerInterface = consumerUrl.getServiceInterface();<NEW_LINE>String providerInterface = providerUrl.getServiceInterface();<NEW_LINE>// FIXME accept providerUrl with '*' as interface name, after carefully thought about all possible scen...
.isEquals(consumerClassifier, providerClassifier));
1,816,112
private static Query binaryNameSourceNamePairQuery(final Pair<String, String> binaryNameSourceNamePair) {<NEW_LINE>assert binaryNameSourceNamePair != null;<NEW_LINE>final <MASK><NEW_LINE>final String sourceName = binaryNameSourceNamePair.second();<NEW_LINE>assert binaryName != null || sourceName != null;<NEW_LINE>Query...
String binaryName = binaryNameSourceNamePair.first();
1,337,097
static TranslateTextResponse translateText(String projectId, String location, String text, String sourceLanguageCode, String targetLanguageCode) {<NEW_LINE>try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {<NEW_LINE>LocationName locationName = LocationName.newBuilder().setProj...
setLocation(location).build();
705,255
public Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException {<NEW_LINE>Entity entity = persistencePackage.getEntity();<NEW_LINE>try {<NEW_LINE>PersistencePerspective persistencePerspective = persistencePackage.getPersistencePerspective();<N...
setUsername(adminInstance.getEmailAddress());
748,766
private void addCommitDetails(RepositoryCommit commit) {<NEW_LINE>adapter.addHeader(commitHeader);<NEW_LINE>commitMessage.setText(commit.getCommit().getMessage());<NEW_LINE>String commitAuthor = CommitUtils.getAuthor(commit);<NEW_LINE>String commitCommitter = CommitUtils.getCommitter(commit);<NEW_LINE>if (commitAuthor ...
ViewUtils.setGone(committerArea, false);
1,476,355
private List<com.intellij.formatting.Block> buildOperatorRuleChildren(@NotNull ASTNode operatorRule, @Nullable Wrap operatorWrap, @Nullable Alignment operatorAlignment, @Nullable Alignment rightCommentAlignment) {<NEW_LINE>final Alignment[] commentAlignment = { operatorAlignment };<NEW_LINE>Indent operatorIndent = Inde...
Indent[] commentIndent = { operatorIndent };
886,591
public Authentication authenticate(Authentication authentication) throws AuthenticationException {<NEW_LINE>OidcUserInfoAuthenticationToken userInfoAuthentication = (OidcUserInfoAuthenticationToken) authentication;<NEW_LINE>AbstractOAuth2TokenAuthenticationToken<?> accessTokenAuthentication = null;<NEW_LINE>if (Abstrac...
throw new OAuth2AuthenticationException(OAuth2ErrorCodes.INVALID_TOKEN);
1,597,910
protected void drawGuiContainerBackgroundLayer(float f, int mouseX, int mouseY) {<NEW_LINE>mc.renderEngine.bindTexture(TEXTURE);<NEW_LINE>drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);<NEW_LINE>super.drawGuiContainerBackgroundLayer(f, mouseX, mouseY);<NEW_LINE>if (heatExchange != null) {<NEW_LINE><MASK><NE...
mc.renderEngine.bindTexture(TEXTURE);
220,230
protected void initRulesWithWord() {<NEW_LINE>// Add synthetic symbols to the indices<NEW_LINE>int unkWord = wordIndex.addToIndex(UNKNOWN_WORD);<NEW_LINE>int <MASK><NEW_LINE>int boundaryTagId = tagIndex.addToIndex(BOUNDARY_TAG);<NEW_LINE>// Initialize rules table<NEW_LINE>final int numWords = wordIndex.size();<NEW_LINE...
boundaryWordId = wordIndex.addToIndex(BOUNDARY);
1,325,223
public WARCRecordInfo buildRecord(CrawlURI curi, URI concurrentTo) throws IOException {<NEW_LINE>final String timestamp = ArchiveUtils.getLog14Date(curi.getFetchBeginTime());<NEW_LINE>String controlConversation = curi.getData().get(A_FTP_CONTROL_CONVERSATION).toString();<NEW_LINE>WARCRecordInfo recordInfo = new WARCRec...
recordInfo.setRecordId(generateRecordID());
1,742,111
private void initTitleBar() {<NEW_LINE>mTitleBar = findViewById(R.id.title_bar);<NEW_LINE>mTitleBar.setListener(new HomeTitleBar.OnTitleBarClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onRightClick() {<NEW_LINE>finish();<NEW_LINE>}<NEW_LINE>});<NEW_LINE>mSettingList = findViewById(R.id.setting_lis...
DoKit.removeFloating(AlignRulerLineDokitView.class);
61,140
public Table importTable(VDB vdb, String[] fields, Expression[] filters, Context ctx) throws IOException {<NEW_LINE>if (filters == null) {<NEW_LINE>return importTable(vdb, fields);<NEW_LINE>} else if (filters.length == 1) {<NEW_LINE>return importTable(vdb, fields, filters[0], ctx);<NEW_LINE>}<NEW_LINE>int expCount = fi...
findex] = dir.getValue();
259,401
public Iterator<O> iterator() {<NEW_LINE>Iterator<O> mainResults = retrieveWithIndexOrderingMainResults(query, queryOptions, indexForOrdering, allSortOrders, rangeBoundsFromQuery, attributeCanHaveMoreThanOneValue, primarySortDescending);<NEW_LINE>// Combine the results from the index ordered search, with objects which ...
queryOptions, primarySortAttribute, allSortOrders, attributeCanHaveMoreThanOneValue);
1,680,828
public boolean blockLocation(Location location) {<NEW_LINE>final float inaccuracy = location.getAccuracy();<NEW_LINE>final double altitude = location.getAltitude();<NEW_LINE>final float bearing = location.getBearing();<NEW_LINE>final double latitude = location.getLatitude();<NEW_LINE>final double longitude = location.g...
LOG_TAG, "Bogus altitude: " + altitude + " meters");
1,700,390
public com.atlassian.jira.rpc.soap.beans.RemoteComment editComment(java.lang.String in0, com.atlassian.jira.rpc.soap.beans.RemoteComment in1) throws java.rmi.RemoteException, com.atlassian.jira.rpc.exception.RemoteException {<NEW_LINE>if (super.cachedEndpoint == null) {<NEW_LINE>throw new org.apache.axis.NoEndPointExce...
(java.rmi.RemoteException) _resp;
964,805
public PCollection<Row> expand(PInput input) {<NEW_LINE>TableProvider inputTableProvider = new ReadOnlyTableProvider(PCOLLECTION_NAME, toTableMap(input));<NEW_LINE>InMemoryMetaStore metaTableProvider = new InMemoryMetaStore();<NEW_LINE>metaTableProvider.registerProvider(inputTableProvider);<NEW_LINE>BeamSqlEnvBuilder <...
sqlEnvBuilder = BeamSqlEnv.builder(metaTableProvider);
1,369,609
public void dgeqrf(int M, int N, INDArray A, INDArray R, INDArray INFO) {<NEW_LINE>INDArray tau = Nd4j.create(DataType.DOUBLE, N);<NEW_LINE>int status = nativeOps.callInt("LAPACKE_dgeqrf", getColumnOrder(A), M, N, (DoublePointer) A.data().addressPointer(), getLda(A), (DoublePointer) tau.data().addressPointer());<NEW_LI...
R.put(ix, 0);
1,277,770
private Mono<Response<Flux<ByteBuffer>>> revokeAccessWithResponseAsync(String resourceGroupName, String snapshotName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_...
error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null."));
484,004
public ListImagesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListImagesResult listImagesResult = new ListImagesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
)).unmarshall(context));
82,592
private void openVideo() {<NEW_LINE>if (!getSurfaceOps().isPresent() || getSurfaceOps().get().getSurface() == null) {<NEW_LINE>// not ready for playback just yet, will try again later<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (mIsAssetRouse) {<NEW_LINE>if (mVideoFilePath == null)<NEW_LINE>return;<NEW_LINE>} else if (mVid...
CocosHelper.ruOnUIThreadSync(this::showFirstFrame);
1,496,882
protected void doAction() {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>KeyStoreState currentState = history.getCurrentState();<NEW_LINE>String alias = kseFrame.getSelectedEntryAlias();<NEW_LINE>Password password = getEntryPassword(alias, currentState);<NEW_LINE>if (password == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>...
KeyStoreHistory history = kseFrame.getActiveKeyStoreHistory();
703,181
private ManagedExecutorService createExecutor(String name, int poolSize, int queueCapacity, ExecutorType type, ThreadFactory threadFactory) {<NEW_LINE>ManagedExecutorService executor;<NEW_LINE>if (type == ExecutorType.CACHED) {<NEW_LINE>if (threadFactory != null) {<NEW_LINE>throw new IllegalArgumentException("Cached ex...
name, cachedExecutorService, poolSize, queueCapacity);
355,712
public void load() {<NEW_LINE>sun = new Planet("sun", null, 4f) {<NEW_LINE><NEW_LINE>{<NEW_LINE>bloom = true;<NEW_LINE>accessible = false;<NEW_LINE>meshLoader = () -> new SunMesh(this, 4, 5, 0.3, 1.7, 1.2, 1, 1.1f, Color.valueOf("ff7a38"), Color.valueOf("ff9638"), Color.valueOf("ffc64c"), Color.valueOf("ffc64c"), Color...
, Color.valueOf("f4ee8e"));
829,958
protected void drawGuiContainerBackgroundLayer(float f, int mx, int my) {<NEW_LINE>super.drawGuiContainerBackgroundLayer(f, mx, my);<NEW_LINE>drawBackgroundSlots(mx, my);<NEW_LINE>Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);<NEW_LINE>CoreIconProvider[] sprites = new CoreIconProvi...
getSprite(), 16, 16);
1,751,931
public void doFinally() {<NEW_LINE>if (t[0] == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>org.compiere.model.I_AD_User userInCharge = Services.get(IBPartnerOrgBL.class).retrieveUserInChargeOrNull(ctx, olCand.getAD_Org_ID(), trxName);<NEW_LINE>if (userInCharge == null) {<NEW_LINE>userInCharge = InterfaceWrapperHelper....
), olCand.getC_OLCand_ID());
544,055
// ~ Methods --------------------------------------------------------------------------------------------------------------<NEW_LINE>private String buildInfo() {<NEW_LINE>JmxModel jmx = JmxModelFactory.getJmxModelFor(module.getGlassFishRoot().getApplication());<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>...
connection.getAttribute(objName, "cachingAllowed");
463,293
private BucketSearchResult splitBucket(final List<Long> path, final int keyIndex, final K keyToInsert, final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>final long pageIndex = path.get(path.size() - 1);<NEW_LINE>final OCacheEntry bucketEntry = loadPageForWrite(atomicOperation, fileId, pageIndex, fal...
int bucketSize = bucketToSplit.size();
985,696
@SuppressWarnings("unchecked")<NEW_LINE>public void beforeMethod(final AdviceTargetObject target, final Method method, final Object[] args, final MethodInvocationResult result) {<NEW_LINE>Span root = (Span) ((Map<String, Object>) args[2]).get(JaegerConstants.ROOT_SPAN);<NEW_LINE>Tracer.SpanBuilder builder = GlobalTrace...
getDeclaredMethod("getDataSourceMetaData", DatabaseMetaData.class);
1,763,422
public void testInputStreamIsClosedByUserBeforeSending() throws Exception {<NEW_LINE>List<IAttachment> attachments = new ArrayList<>();<NEW_LINE>CheckableInputStream inputStream = Util.<MASK><NEW_LINE>attachments.add(AttachmentBuilder.newBuilder("file1").inputStream("some.xml", inputStream).contentType(MediaType.APPLIC...
wrapStream(Util.xmlFile());
1,754,969
private void displayEmailMsg(MesssageArtifactData artifactData) {<NEW_LINE>enableCommonFields();<NEW_LINE>directionText.setEnabled(false);<NEW_LINE>ccLabel.setEnabled(true);<NEW_LINE>this.fromText.setText(artifactData.getAttributeDisplayString(TSK_EMAIL_FROM));<NEW_LINE>this.fromText.setToolTipText(artifactData.getAttr...
(artifactData.getAttributeDisplayString(TSK_SUBJECT));
441,152
public JMenu createAxisTitleMenu(final Chart2D chart, final IAxis<?> axis, final int axisDimension, final boolean adaptUI2Chart) {<NEW_LINE>// Axis title -> Axis title text<NEW_LINE>JMenu axisTitle;<NEW_LINE>if (adaptUI2Chart) {<NEW_LINE>axisTitle = new PropertyChangeMenu(chart, "Title", BasicPropertyAdaptSupport.Remov...
BasicPropertyAdaptSupport.RemoveAsListenerFromComponentNever.getInstance());
1,216,112
private static byte[] buildPhpObjectPayload(String assertPayload) throws IOException {<NEW_LINE>// This crafted PHP object chains two PHP gadgets available in Joomla (disconnectHandlers in<NEW_LINE>// JDatabaseDriverMysqli and cache_name_function in SimplePie) to execute arbitrary PHP code.<NEW_LINE>String payloadStrin...
(payloadString.getBytes(UTF_8));
1,529,840
public boolean analysisWorkerCallback(Program program, Object workerContext, TaskMonitor monitor) throws Exception {<NEW_LINE>Address address = program.getAddressFactory().getAddressSpace(JavaLoader.CONSTANT_POOL).getMinAddress();<NEW_LINE>ByteProvider provider = new MemoryByteProvider(program.getMemory(), address);<NE...
program, classFile, constantPoolData, monitor);
625,427
void findRelatedPastFrames(Frame current) {<NEW_LINE>// Both values below are needed for early termination of search<NEW_LINE>int currentTrackCount = frames.getTail().featureCount();<NEW_LINE>int oldestFrameConsidered = searchRadius < 0 ? 0 : Math.max(0, frames.size - 1 - searchRadius);<NEW_LINE>// Check the most recen...
connectFrames(current, previous, pairs);
1,585,913
public LinkedList<Object> makeEventStream(int numberOfTicks, int ratioOutOfLimit, int numberOfStocks, double priceLimitPctLowerLimit, double priceLimitPctUpperLimit, double priceLowerLimit, double priceUpperLimit, boolean isLastTickOutOfLimit) {<NEW_LINE>LinkedList<Object> stream = new LinkedList<Object>();<NEW_LINE>Pr...
"example_user", numberOfStocks, priceLimitPctLowerLimit, priceLimitPctUpperLimit);
575,922
public static String fillTextBox(TextPaint paint, int fragmentWidth, String source, int start) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>final int length = source.length();<NEW_LINE>int indexLeft = start;<NEW_LINE>int indexRight = start + 1;<NEW_LINE>int lastWhiteSpaceL = 0;<NEW_LINE>int lastWhiteSpac...
c = source.charAt(indexLeft);
1,752,481
final ListResourcesInProtectionGroupResult executeListResourcesInProtectionGroup(ListResourcesInProtectionGroupRequest listResourcesInProtectionGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResourcesInProtectionGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,731,480
private void runAssertion(RegressionEnvironment env, boolean advanced, String filter) {<NEW_LINE>String epl = HOOK + "@name('s0') select * from pattern[every s0=SupportBean_S0 -> " + "SupportBean_S1(" + filter + ")]";<NEW_LINE>SupportFilterPlanHook.reset();<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>Su...
env, 10, "-", true);
1,664,320
public Integer commit() {<NEW_LINE>int count = this.batchSize();<NEW_LINE>if (count <= 0) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>// TODO: this will not be atomic, to be improved<NEW_LINE>for (Entry<String, List<Row>> action : this.batch.entrySet()) {<NEW_LINE>List<Row> rows = action.getValue();<NEW_LINE>Object[] resu...
BackendException("Failed to commit, " + "there may be inconsistent states for HBase", e);
1,826,245
private void computeLexicalScopes(AncestorChain<?> ac, LexicalScope parent, List<LexicalScope> scopes) {<NEW_LINE>// Compute the scope for the current node.<NEW_LINE>// Since we create a global scope in the original caller, avoid creating<NEW_LINE>// two scopes for the same object here.<NEW_LINE>LexicalScope scope = pa...
, child), scope, scopes);
1,448,510
public com.amazonaws.services.rdsdata.model.BadRequestException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.rdsdata.model.BadRequestException badRequestException = new com.amazonaws.services.rdsdata.model.BadRequestException(null);<NEW_LINE>int originalDepth...
JsonToken token = context.getCurrentToken();
1,533,888
public DescribeImageReplicationStatusResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeImageReplicationStatusResult describeImageReplicationStatusResult = new DescribeImageReplicationStatusResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int...
String currentParentElement = context.getCurrentParentElement();
862,962
PollerFlux<PhoneNumberOperation, PhoneNumberSearchResult> beginSearchAvailablePhoneNumbers(String countryCode, PhoneNumberType phoneNumberType, PhoneNumberAssignmentType assignmentType, PhoneNumberCapabilities capabilities, PhoneNumberSearchOptions searchOptions, Context context) {<NEW_LINE>try {<NEW_LINE>Objects.requi...
cancelOperation(), searchAvailableNumbersFetchFinalResultOperation());
533,869
private static EditorModel initialModel() {<NEW_LINE><MASK><NEW_LINE>EditorElement image = new EditorElement(new UrlRenderer("https://cdn.aarp.net/content/dam/aarp/home-and-family/your-home/2018/06/1140-house-inheriting.imgcache.rev68c065601779c5d76b913cf9ec3a977e.jpg"));<NEW_LINE>image.getFlags().setSelectable(false)....
EditorModel model = EditorModel.create();
1,409,856
public void complete(ReturnResultsState state, TridentCollector collector) {<NEW_LINE>// only one of the multireducers will receive the tuples<NEW_LINE>if (state.returnInfo != null) {<NEW_LINE>String result = JSONValue.toJSONString(state.results);<NEW_LINE>Map retMap = (Map) JSONValue.parse(state.returnInfo);<NEW_LINE>...
String) retMap.get("host");
464,578
protected Dialog onCreateDialog(int id) {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(this);<NEW_LINE>LayoutInflater <MASK><NEW_LINE>switch(id) {<NEW_LINE>case DIALOG_ENTER_COORDINATES:<NEW_LINE>builder.setIcon(android.R.drawable.ic_menu_mylocation);<NEW_LINE>builder.setTitle(R.string.dialog_location...
factory = LayoutInflater.from(this);
1,597,798
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.ws.messaging.security.beans.Permission#addUsersAndGroupsToAllActions(java.util.Set, java.util.Set)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void addUsersAndGroupsToAllActions(Set<String> users, Set<String> groups) {<NEW_LINE>Set<String> tempUsers <MAS...
= new HashSet<String>();
630,204
public static SQLQueryAdapter executeReindex(SQLite3GlobalState globalState) {<NEW_LINE>SQLite3Schema s = globalState.getSchema();<NEW_LINE>StringBuilder sb = new StringBuilder("REINDEX");<NEW_LINE>ExpectedErrors errors = new ExpectedErrors();<NEW_LINE>errors.add("The database file is locked");<NEW_LINE>Target t = Rand...
fromOptions(Target.values());
686,910
public Executor select(final String reqClass, final Object reqHeader) {<NEW_LINE>final AppendEntriesRequestHeader header = (AppendEntriesRequestHeader) reqHeader;<NEW_LINE>final String groupId = header.getGroupId();<NEW_LINE>final String peerId = header.getPeerId();<NEW_LINE>final String serverId = header.getServerId()...
).get(groupId, peer);
195,817
private CodecMeta toSampleEntry(GenericDescriptor d) {<NEW_LINE>if (track.isVideo()) {<NEW_LINE>GenericPictureEssenceDescriptor ped = (GenericPictureEssenceDescriptor) d;<NEW_LINE><MASK><NEW_LINE>VideoCodecMeta se = VideoCodecMeta.createVideoCodecMeta(MP4Util.getFourcc(track.getCodec().getCodec()), null, new Size(ped.g...
Rational ar = ped.getAspectRatio();
1,774,759
private Timestamp computeEndDate(final I_C_Flatrate_Transition transition, final I_C_Flatrate_Term term) {<NEW_LINE>final Timestamp firstDayOfTerm = term.getStartDate();<NEW_LINE>Timestamp lastDayOfTerm = null;<NEW_LINE>// metas: rc: start 03742<NEW_LINE>// Condition added to handle "EnsWithCalendarYear" flag for trans...
getTermDuration()), -1);
1,493,186
public int compareTo(getTopologyId_result other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.<MASK><NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = Boolean.valueOf(is_set_success()).compareTo(other.is_set_success());<NEW_LINE>if (last...
getClass().getName());
1,158,393
private Position decodeLink(String sentence, Channel channel, SocketAddress remoteAddress) {<NEW_LINE>Parser parser = new Parser(PATTERN_LINK, sentence);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, <MASK><NEW_LINE>if (deviceSession ...
remoteAddress, parser.next());
1,705,578
public static Map<String, Map<String, Field>> rowListToMap(List<Row> rowList, List<String> primaryKeyList) {<NEW_LINE>// {value of primaryKey, value of all columns}<NEW_LINE>Map<String, Map<String, Field>> rowMap = new HashMap<>();<NEW_LINE>for (Row row : rowList) {<NEW_LINE>// ensure the order of column<NEW_LINE>List<...
collect(Collectors.toList());
1,586,623
public void addConnectionEventListener(ConnectionEventListener listener) {<NEW_LINE>if (tc.isDebugEnabled())<NEW_LINE>Tr.debug(tc, "addConnectionEventListener", new Object[] { this, listener });<NEW_LINE>if (listener == null)<NEW_LINE>throw new NullPointerException("Cannot add null ConnectionEventListener.");<NEW_LINE>...
tc, "received more ConnectionEventListeners than expected, increased array size to " + ivEventListeners.length);
963,504
private File buildSegment() throws Exception {<NEW_LINE>Schema schema = new Schema();<NEW_LINE>for (int i = 0; i < NUM_COLUMNS; i++) {<NEW_LINE>String column = "column_" + i;<NEW_LINE>DimensionFieldSpec dimensionFieldSpec = new DimensionFieldSpec(column, FieldSpec.DataType.STRING, true);<NEW_LINE>schema.addField(dimens...
out.println("Read rows: " + _numRows);
114,721
protected void initSubscription() {<NEW_LINE>addSubscription(RxEvent.EVENT_COMIC_UPDATE, new Action1<RxEvent>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void call(RxEvent rxEvent) {<NEW_LINE>if (mComic.getId() != null && mComic.getId() == (long) rxEvent.getData()) {<NEW_LINE>Comic comic = mComicManager.load(mComi...
setPage(comic.getPage());
1,562,331
final AddIpRoutesResult executeAddIpRoutes(AddIpRoutesRequest addIpRoutesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addIpRoutesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "AddIpRoutes");
824,326
public void doExport(FacesContext context, DataTable table, ExportConfiguration exportConfiguration, int index) throws IOException {<NEW_LINE>try (OutputStreamWriter osw = new OutputStreamWriter(getOutputStream(), exportConfiguration.getEncodingType());<NEW_LINE>PrintWriter writer = new PrintWriter(osw)) {<NEW_LINE>if ...
exportSelectionOnly(context, table, writer);
1,444,601
public void finishResponse() throws Exception {<NEW_LINE>super.finishResponse();<NEW_LINE>if (_errorHandled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String exceptionName = RemoteExceptionHandler.getExceptionName(_decorated);<NEW_LINE>Throwable remoteException = _remoteExceptionHandler.getException(_decora...
LOG.info("targetScn:" + scnString);
306,454
final RollbackApplicationResult executeRollbackApplication(RollbackApplicationRequest rollbackApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rollbackApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "RollbackApplication");
1,091,840
private static Document[] parseSource(final DigestURL location, final String mimeType, final Parser parser, final String charset, final Set<String> ignore_class_name, final VocabularyScraper scraper, final int timezoneOffset, final InputStream sourceStream, final int maxLinks, final long maxBytes) throws Parser.Failure...
getFileExtension(location.getFileName());
1,575,848
public DoubleMatrix[] apply(DoubleArray x) {<NEW_LINE>ArgChecker.notNull(x, "x");<NEW_LINE>ArgChecker.isTrue(domain.apply(x), "point {} is not in the function domain", x.toString());<NEW_LINE>int n = x.size();<NEW_LINE>DoubleMatrix[] y = new DoubleMatrix[3];<NEW_LINE>DoubleMatrix[<MASK><NEW_LINE>double[] w;<NEW_LINE>fo...
] res = new DoubleMatrix[n];
1,662,729
public NicTO toNicTO(NicProfile profile) {<NEW_LINE>NicTO to = new NicTO();<NEW_LINE>to.setDeviceId(profile.getDeviceId());<NEW_LINE>to.setBroadcastType(profile.getBroadcastType());<NEW_LINE>to.setType(profile.getTrafficType());<NEW_LINE>to.setIp(profile.getIPv4Address());<NEW_LINE>to.setNetmask(profile.getIPv4Netmask(...
setGateway(profile.getIPv4Gateway());
844,597
public void runActionOnPoll() {<NEW_LINE>LOG.trace("Starting disaster detection");<NEW_LINE>clearExpiredDisabledActions();<NEW_LINE>List<SingularityDisasterType> previouslyActiveDisasters = disasterManager.getActiveDisasters();<NEW_LINE>List<SingularityDisasterDataPoint> dataPoints = disasterManager.getDisasterStats()....
LOG.warn("Detected new active disasters: {}", newActiveDisasters);
204,544
public void initialize(GlobalContext globalContext, JSObject proto) {<NEW_LINE>// String.foo()<NEW_LINE>defineNonEnumerableProperty(this, "fromCharCode", new FromCharCode(globalContext));<NEW_LINE>// String.prototype.foo()<NEW_LINE>proto.setPrototype(globalContext.getPrototypeFor("Object"));<NEW_LINE>defineNonEnumerabl...
"trim", new Trim(globalContext));
1,202,583
public void testFutureGetTimesOut() throws Exception {<NEW_LINE>long currentThreadId = 0;<NEW_LINE>ResultsStatelessRemote bean = lookupSLRBean();<NEW_LINE>assertNotNull("Async Stateless Bean created successfully", bean);<NEW_LINE>// initialize latches<NEW_LINE>ResultsStatelessRemoteFutureBean.svBeanLatch = new CountDow...
(ResultsStatelessRemoteFutureBean.beanThreadId == currentThreadId));
1,813,952
public String oldStyle() {<NEW_LINE>Map<String, Object> oldHint = new HashMap<>();<NEW_LINE>if (fullScan()) {<NEW_LINE>oldHint.put("type", "full");<NEW_LINE>} else {<NEW_LINE>List<String> groupList = this.groups;<NEW_LINE>if (null == groupList || groupList.size() <= 0) {<NEW_LINE>groupList = HintUtil.allGroup();<NEW_LI...
oldHint.put("dbindex", "true");
1,387,589
public final void accept(Context<?> ctx) {<NEW_LINE>Field<? extends Number> l = length;<NEW_LINE>if (l != null) {<NEW_LINE>if (SUPPORT_INSERT.contains(ctx.dialect()))<NEW_LINE>ctx.visit(function(N_INSERT, getDataType(), in<MASK><NEW_LINE>else if (NO_SUPPORT.contains(ctx.dialect()))<NEW_LINE>ctx.visit(DSL.substring(in, ...
, startIndex, l, placing));
1,837,240
public int nearestExit(char[][] maze, int[] entrance) {<NEW_LINE>int m = maze.length;<NEW_LINE>int n = maze[0].length;<NEW_LINE>Deque<int[]> q = new ArrayDeque<>();<NEW_LINE>q.offer(entrance);<NEW_LINE>maze[entrance[0]][entrance[1]] = '+';<NEW_LINE>int ans = 0;<NEW_LINE>int[] dirs = { -1, 0, 1, 0, -1 };<NEW_LINE>while ...
] p = q.poll();
249,692
String swiftDelete(SwiftTO swift, String container, String object) {<NEW_LINE>Script command = new Script("/bin/bash", s_logger);<NEW_LINE>command.add("-c");<NEW_LINE>command.add("/usr/bin/python /usr/local/cloud/systemvm/scripts/storage/secondary/swift -A " + swift.getUrl() + " -U " + swift.getAccount() + ":" + swift....
parser = new OutputInterpreter.AllLinesParser();
1,796,600
public void handle(PrimaryStorageInventory dstPsInv, NfsToNfsMigrateBitsMsg msg, ReturnValueCompletion<NfsToNfsMigrateBitsReply> completion) {<NEW_LINE>HostVO hostVO = dbf.findByUuid(msg.getHostUuid(), HostVO.class);<NEW_LINE>if (hostVO == null) {<NEW_LINE>throw new OperationFailureException(operr("The chosen host[uuid...
wrapper.getResponse(NfsToNfsMigrateBitsRsp.class);
1,055,433
private void storeResult(JavaCompileSpec spec, WorkResult result) {<NEW_LINE>ClassSetAnalysisData outputSnapshot = classpathSnapshotter.analyzeOutputFolder(spec.getDestinationDir());<NEW_LINE>ClassSetAnalysisData classpathSnapshot = classpathSnapshotter.getClasspathSnapshot(Iterables.concat(spec.getCompileClasspath()<M...
, spec.getModulePath()));
973,848
void populateField(final Object target, final Field field, final RandomizationContext context) throws IllegalAccessException {<NEW_LINE>Randomizer<?> randomizer = getRandomizer(field, context);<NEW_LINE>if (randomizer instanceof SkipRandomizer) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>context.pushStackItem(new Randomizat...
exceptionMessage, e.getCause());
796,595
public EvaluationResult evaluate(Position position, CalculationFunctions functions, String firstToken, List<String> remainingTokens) {<NEW_LINE>MetaBean metaBean = MetaBean.<MASK><NEW_LINE>// position<NEW_LINE>Optional<String> positionPropertyName = metaBean.metaPropertyMap().keySet().stream().filter(p -> p.equalsIgnor...
of(position.getClass());
1,013,815
public static void init() {<NEW_LINE>// Login setup<NEW_LINE>ServerLoginConnectionEvents.QUERY_START.register((handler, server, sender, synchronizer) -> {<NEW_LINE>// Send early registration packet<NEW_LINE><MASK><NEW_LINE>Collection<Identifier> channelsNames = ServerPlayNetworking.getGlobalReceivers();<NEW_LINE>buf.wr...
PacketByteBuf buf = PacketByteBufs.create();
1,728,876
public static String keyGen(String passphrase) throws IOException, JSchException {<NEW_LINE>FileUtils.forceMkdir(new File(KEY_PATH));<NEW_LINE>deleteGenSSHKeys();<NEW_LINE>if (StringUtils.isEmpty(AppConfig.getProperty(PRIVATE_KEY)) || StringUtils.isEmpty(AppConfig.getProperty(PUBLIC_KEY))) {<NEW_LINE>// set key type<NE...
"Finger print: " + keyPair.getFingerPrint());
856,380
// Mirrors wkt<NEW_LINE>private static void pointText_(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, int point, JsonWriter json_writer) {<NEW_LINE>double x = position.readAsDbl(2 * point);<NEW_LINE>double y ...
.getDefaultValue(Semantics.Z));