idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
277,815
static List<MergeRange> doCompare(@Nonnull List<Line> lines1, @Nonnull List<Line> lines2, @Nonnull List<Line> lines3, @Nonnull ComparisonPolicy policy, @Nonnull ProgressIndicator indicator) {<NEW_LINE>indicator.checkCanceled();<NEW_LINE>List<Line> iwLines1 = convertMode(lines1, IGNORE_WHITESPACES);<NEW_LINE>List<Line> ...
iwLines2 = convertMode(lines2, IGNORE_WHITESPACES);
1,174,260
private ArrayList<PackratConflictActions> createConflictsFromActions(JsArray<PackratPackageAction> restoreActions, JsArray<PackratPackageAction> snapshotActions) {<NEW_LINE>// build a map of all the package actions<NEW_LINE>ArrayList<PackratConflictActions> conflicts = new ArrayList<>();<NEW_LINE>TreeMap<String, <MASK>...
PackratPackageAction> restoreMap = createMapFromActions(restoreActions);
1,207,883
private void emitRequiredSequence(TypeSpec.Builder intentBuilderTypeBuilder, List<ExtraInjection> requiredInjections) {<NEW_LINE>if (!target.hasRequiredFields) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final TypeName generic = getInitialStateGeneric(false);<NEW_LINE>TypeSpec.Builder requiredSequenceBuilder = TypeSpec.clas...
binding = requiredInjections.get(i);
638,573
static Set<IJobUpdateKey> saveUpdates(Storage storage, Iterable<IJobUpdateDetails> updates) {<NEW_LINE>ImmutableSet.Builder<IJobUpdateKey> keyBuilder = ImmutableSet.builder();<NEW_LINE>storage.write((Storage.MutateWork.NoResult.Quiet) store -> {<NEW_LINE>JobUpdateStore.Mutable updateStore = store.getJobUpdateStore();<N...
.getSummary().getKey();
1,460,564
public okhttp3.Call readNamespacedPodDisruptionBudgetCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/policy/v1/namespaces/{namespace}/poddisrupti...
localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
879,045
private static void fillRwadefOperation(Operation swaggerOperation, Resource resource, Contract contract, String methodName, List<String> produces, List<String> consumes, Map<String, Object> parameters) {<NEW_LINE>if (swaggerOperation == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>org.restlet.ext.platform.internal.mod...
.internal.model.Operation();
1,434,440
private QueryListener parse(Function<HeroicQueryParser, ParserRuleContext> op, String input) {<NEW_LINE>final HeroicQueryLexer lexer = new HeroicQueryLexer(new ANTLRInputStream(input));<NEW_LINE>final CommonTokenStream tokens = new CommonTokenStream(lexer);<NEW_LINE>final HeroicQueryParser parser = new HeroicQueryParse...
final QueryListener listener = new QueryListener();
1,200,196
public void run() {<NEW_LINE>boolean ok = false;<NEW_LINE>Exception root = null;<NEW_LINE>try {<NEW_LINE>HttpURLConnection c = null;<NEW_LINE>InputStream is = null;<NEW_LINE>try {<NEW_LINE>c = (HttpURLConnection) new <MASK><NEW_LINE>is = c.getInputStream();<NEW_LINE>cap = WMSParser.parse(is);<NEW_LINE>ok = true;<NEW_LI...
URL(youEditTextValue).openConnection();
478,996
public <KeyT> void onTimer(String timerId, String timerFamilyId, KeyT key, BoundedWindow window, Instant timestamp, Instant outputTimestamp, TimeDomain timeDomain) {<NEW_LINE>Object timerKey = keyForTimer.get();<NEW_LINE>Preconditions.checkNotNull(timerKey, "Key for timer needs to be set before calling onTimer");<NEW_L...
), transformAndTimerFamilyId.getValue());
319,180
private // SQLDOPTGRP; PROTOCOL TYPE N-GDA; ENVLID 0xD2; Length Override 0<NEW_LINE>void parseSQLDAGRP(ColumnMetaData columnMetaData, int columnNumber) {<NEW_LINE>long columnLength = 0;<NEW_LINE>// 2-byte precision<NEW_LINE>int precision = readFastShort();<NEW_LINE>// 2-byte scale<NEW_LINE>int scale = readFastShort();<...
columnMetaData.sqlScale_[columnNumber] = scale;
889,469
private MonocularPlaneVisualOdometry<I> createVisualOdometry(int whichAlg) {<NEW_LINE>Class derivType = GImageDerivativeOps.getDerivativeType(imageClass);<NEW_LINE>if (whichAlg == 0) {<NEW_LINE>var config = new ConfigPlanarTrackPnP();<NEW_LINE>config.tracker.typeTracker = ConfigPointTracker.TrackerType.KLT;<NEW_LINE>co...
.detectPoint.general.maxFeatures = 600;
1,467,874
private Optional<RunStatus> startTests(RunId id, boolean isSetup, DualLogger logger) {<NEW_LINE>Optional<Deployment> deployment = deployment(id.application(), id.type());<NEW_LINE>if (deployment.isEmpty()) {<NEW_LINE>logger.log(INFO, "Deployment expired before tests could start.");<NEW_LINE>return Optional.of(error);<N...
().reachableContentClustersByZone(deployments));
1,017,020
public void forceCleanOnlineStatus(String userId, String clientId) {<NEW_LINE>if (m_Server.isShutdowning()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!mMultiPlatformNotification || m_Server.getStore().sessionsStore().isMultiEndpointSupported()) {<NEW_LINE>WFCMessage.UserSettingEntry pcentry = <MASK><NEW_LINE>if (pcent...
getUserSetting(userId, kUserSettingPCOnline, "PC");
256,558
public boolean checkTrigger(GameEvent event, Game game) {<NEW_LINE>Player opponent = game.<MASK><NEW_LINE>if (opponent == null || !event.getSourceId().equals(getSourceId()) || !((DamagedEvent) event).isCombatDamage()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>FilterPermanent filter = new FilterCreatureOrPlaneswalker...
getPlayer(event.getPlayerId());
1,830,253
public static String abbrToRegion(String abbreviation, int offset, int isDst) {<NEW_LINE>switch(abbreviation) {<NEW_LINE>case "GMT":<NEW_LINE>case "UTC":<NEW_LINE>return "UTC";<NEW_LINE>default:<NEW_LINE>{<NEW_LINE>if (StringUtils.isBlank(abbreviation)) {<NEW_LINE>if (offset == -1 && isDst == -1) {<NEW_LINE>return null...
abbreviationByOffsetAndDst(offset, isDst == 1);
1,516,315
public static float quickRatio(final String first, final String second) {<NEW_LINE>if ((first.isEmpty() && second.isEmpty()) || (first.equals(second))) {<NEW_LINE>return 1;<NEW_LINE>}<NEW_LINE>float matches = 0;<NEW_LINE>// Use a sparse array to reduce the memory usage<NEW_LINE>// for unicode characters.<NEW_LINE>final...
8][c & 0xFF]--;
801,571
public void run(InAppPurchaseHelper helper) {<NEW_LINE>try {<NEW_LINE>Activity a = activity.get();<NEW_LINE>ProductInfo productInfo = getProductInfo(sku);<NEW_LINE>if (AndroidUtils.isActivityNotDestroyed(a) && productInfo != null) {<NEW_LINE>IapRequestHelper.createPurchaseIntent(getIapClient(), sku, IapClient.PriceType...
Activity a = activity.get();
743,192
public Struct createStruct(String typeName, Object[] attributes) throws SQLException {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(this, tc, "createStruct", typeName);<NEW_LINE>Struct struct;<NEW_LINE>try {<NEW_LINE>activate()...
, AdapterUtil.toString(struct));
1,151,087
public int compareTo(rpc_record_batch 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.valueOf(isSetBlocks()).compareTo(other.isSetBlocks());<N...
this.nrecords, other.nrecords);
1,582,993
protected String expandFloat(String number) {<NEW_LINE>// String <code>number</code> must contain exactly one ',' or '.'<NEW_LINE>// the integer part of the number<NEW_LINE>long whole = 0;<NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LINE>// index in <code>number</code><NEW_LINE>int i = 0;<NEW_LINE>while (i < ...
.toString().trim();
275,281
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "theString" };<NEW_LINE>String epl = "@name('s0') select irstream theString from SupportBean#unique(intPrimitive)#unique(intBoxed)#unique(doublePrimitive) retain-intersection";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_L...
"E3", 2, 20, 100d);
1,312,880
void read(WizardDescriptor d) {<NEW_LINE>synchronized (HANDLE_LOCK) {<NEW_LINE>if (handle != null) {<NEW_LINE>handle.finish();<NEW_LINE>handle = null;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>Boolean b = (Boolean) d.getProperty(NbmWizardIterator.OSGIDEPENDENCIES);<NEW_LINE>if (b != null) {<NEW_LINE>cbOsgiDeps.setSelected(b.boole...
String) d.getProperty("artifactId");
214,271
ASTNode clone0(AST target) {<NEW_LINE>TypeDeclaration result = new TypeDeclaration(target);<NEW_LINE>result.setSourceRange(getStartPosition(), getLength());<NEW_LINE>result.setJavadoc((Javadoc) ASTNode.copySubtree(target, getJavadoc()));<NEW_LINE>if (this.ast.apiLevel == AST.JLS2_INTERNAL) {<NEW_LINE>result.internalSet...
(target, superInterfaces()));
1,728,161
public Void apply(Transaction transaction) throws FirebaseFirestoreException {<NEW_LINE>Restaurant restaurant = transaction.get(restaurantRef).toObject(Restaurant.class);<NEW_LINE>// Compute new number of ratings<NEW_LINE>int newNumRatings = restaurant.numRatings + 1;<NEW_LINE>// Compute new average rating<NEW_LINE>dou...
= restaurant.avgRating * restaurant.numRatings;
407,361
protected void initMutatingEppToolCommand() {<NEW_LINE>setSoyTemplate(HostCreateSoyInfo.getInstance(), HostCreateSoyInfo.HOSTCREATE);<NEW_LINE>ImmutableList.Builder<String> ipv4Addresses = new ImmutableList.Builder<>();<NEW_LINE>ImmutableList.Builder<String> ipv6Addresses = new ImmutableList.Builder<>();<NEW_LINE>for (...
inetAddress = InetAddresses.forString(address);
269,401
private void generateConstraintsForWrite(Type lType, @Nullable Symbol decl, ExpressionTree rVal, @Nullable Tree lVal, ArrayDeque<Integer> argSelector) {<NEW_LINE>List<Type> typeArguments = lType.getTypeArguments();<NEW_LINE>for (int i = 0; i < typeArguments.size(); i++) {<NEW_LINE>argSelector.push(i);<NEW_LINE>generate...
isEmpty() ? decl : null);
144,602
public static void mergeSchema(Content existingContent, Schema<?> schemaN, String mediaTypeStr) {<NEW_LINE>if (existingContent.containsKey(mediaTypeStr)) {<NEW_LINE>MediaType mediaType = existingContent.get(mediaTypeStr);<NEW_LINE>if (!schemaN.equals(mediaType.getSchema())) {<NEW_LINE>// Merge the two schemas for the s...
existingContent.addMediaType(mediaTypeStr, mediaType);
937,756
private BaseOperator<IntermediateResultsBlock> buildFilterOperatorInternal(BaseFilterOperator mainPredicateFilterOperator, TransformOperator mainTransformOperator, int numTotalDocs) {<NEW_LINE>Map<FilterContext, Pair<List<AggregationFunction>, TransformOperator>> filterContextToAggFuncsMap = new HashMap<>();<NEW_LINE>L...
BaseFilterOperator> pair = buildFilterOperator(currentFilterExpression);
450,792
/*<NEW_LINE>* @see com.sitewhere.microservice.security.SystemUserRunnable#runAsSystemUser()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public List<? extends IDeviceEvent> runAsSystemUser() throws SiteWhereException {<NEW_LINE>GAnyDeviceEventCreateRequest grpc = event.getEvent();<NEW_LINE>IDeviceEventContext context = Even...
asApiDeviceEventContext(event.getContext());
1,166,051
public void multiSet(HippyArray keyValues, final Promise promise) {<NEW_LINE>if (keyValues == null || keyValues.size() <= 0) {<NEW_LINE>promise.reject("Invalid Value");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (mStorageAdapter == null) {<NEW_LINE>promise.reject("Database Null");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try ...
array = keyValues.getArray(idx);
1,283,446
private int convertUnit(byte[] unitType, float v, int orientation) {<NEW_LINE>if (unitType != null) {<NEW_LINE>switch(unitType[orientation]) {<NEW_LINE>case UNIT_TYPE_REM:<NEW_LINE>return (int) Math.round(v * Font.<MASK><NEW_LINE>case UNIT_TYPE_VH:<NEW_LINE>return (int) Math.round(v / 100f * CN.getDisplayHeight());<NEW...
getDefaultFont().getHeight());
935,228
public Local select(final Local identity) throws LoginCanceledException {<NEW_LINE>final SheetInvoker sheet = new SheetInvoker(new DisabledSheetCallback(), parent, select) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void beginSheet(final NSWindow window) {<NEW_LINE>select = NSOpenPanel.openPanel();<NEW_LINE>select.s...
int option = sheet.beginSheet();
1,103,211
public static DescribeAntChainNodesV2Response unmarshall(DescribeAntChainNodesV2Response describeAntChainNodesV2Response, UnmarshallerContext _ctx) {<NEW_LINE>describeAntChainNodesV2Response.setRequestId<MASK><NEW_LINE>describeAntChainNodesV2Response.setHttpStatusCode(_ctx.stringValue("DescribeAntChainNodesV2Response.H...
(_ctx.stringValue("DescribeAntChainNodesV2Response.RequestId"));
1,413,827
public static void main(String[] args) throws ClassNotFoundException, SQLException {<NEW_LINE>Class.forName("org.apache.iotdb.jdbc.IoTDBDriver");<NEW_LINE>try (Connection connection = DriverManager.getConnection("jdbc:iotdb://127.0.0.1:6667/", "root", "root");<NEW_LINE>PreparedStatement preparedStatement = connection.p...
preparedStatement.setFloat(3, 20.092794f);
692,480
public XavcHdIntraCbgProfileSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>XavcHdIntraCbgProfileSettings xavcHdIntraCbgProfileSettings = new XavcHdIntraCbgProfileSettings();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth...
String currentParentElement = context.getCurrentParentElement();
922,879
final DisassociateMemberFromGroupResult executeDisassociateMemberFromGroup(DisassociateMemberFromGroupRequest disassociateMemberFromGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateMemberFromGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DisassociateMemberFromGroup");
304,153
// Visible for testing<NEW_LINE>static Resource buildResource(Map<String, String> sysEnv, DockerHelper dockerHelper) {<NEW_LINE>if (!isOnEcs(sysEnv)) {<NEW_LINE>return Resource.empty();<NEW_LINE>}<NEW_LINE>AttributesBuilder attrBuilders = Attributes.builder();<NEW_LINE>attrBuilders.put(ResourceAttributes.CLOUD_PROVIDER...
.getLocalHost().getHostName();
1,597,492
protected void registerDefaultRecipes() {<NEW_LINE>registerRecipe(10, new ItemStack[] { new ItemStack(Material.BUCKET), new ItemStack(Material.COBBLESTONE, 16) }, new ItemStack[] { new ItemStack(Material.LAVA_BUCKET) });<NEW_LINE>registerRecipe(8, new ItemStack[] { new ItemStack(Material.BUCKET), new ItemStack(Material...
ItemStack(Material.LAVA_BUCKET) });
1,104,429
ActionResult<WrapOutMap> execute(String appId) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<WrapOutMap> result = new ActionResult<>();<NEW_LINE>WrapOutMap wrap = new WrapOutMap();<NEW_LINE>List<FormField> list = new ArrayList<>(...
find(appId, AppInfo.class);
984,517
void twoComponentGenotypeLikelihoodByRead(final GenotypeAlleleCounts genotypeAlleleCounts, final double[] likelihoodByRead, final double[] readLikelihoodComponentsByAlleleCount, final int readCount) {<NEW_LINE>final int allele0 = genotypeAlleleCounts.alleleIndexAt(0);<NEW_LINE>final int freq0 = genotypeAlleleCounts.all...
MathUtils.approximateLog10SumLog10(lnLk0, lnLk1);
860,938
public void findMaxSeparation(EdgeResults results, PolygonShape poly1, Transform xf1, PolygonShape poly2, Transform xf2) {<NEW_LINE>int count1 = poly1.getVertexCount();<NEW_LINE>int count2 = poly2.getVertexCount();<NEW_LINE>Vec2[] n1s = poly1.m_normals;<NEW_LINE>Vec2[] v1s = poly1.m_vertices;<NEW_LINE><MASK><NEW_LINE>T...
Vec2[] v2s = poly2.m_vertices;
1,493,198
private static Message.Value.Builder parseValueBuilderFromType(Object value, Message.VariantType variantType) {<NEW_LINE>Message.Value.Builder valueBuilder = Message.Value.newBuilder().setValueType(variantType);<NEW_LINE>switch(variantType) {<NEW_LINE>case VT_INT:<NEW_LINE>valueBuilder.setIntValue(Integer.class.cast(va...
(List<Long>) value);
266,923
final ListTranscriptionJobsResult executeListTranscriptionJobs(ListTranscriptionJobsRequest listTranscriptionJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTranscriptionJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Transcribe");
1,827,227
// Print CPPCODE method header.<NEW_LINE>private String generateCPPMethodheader(CppCodeProduction p) {<NEW_LINE>StringBuffer sig = new StringBuffer();<NEW_LINE>String ret, params;<NEW_LINE>Token t = null;<NEW_LINE>String method_name = p.getLhs();<NEW_LINE>boolean void_ret = false;<NEW_LINE>boolean ptr_ret = false;<NEW_...
(Token) it.next();
887,954
public static void authenticate() {<NEW_LINE>String principal = HadoopDruidIndexerConfig.HADOOP_KERBEROS_CONFIG.getPrincipal();<NEW_LINE>String keytab = HadoopDruidIndexerConfig.HADOOP_KERBEROS_CONFIG.getKeytab();<NEW_LINE>if (!Strings.isNullOrEmpty(principal) && !Strings.isNullOrEmpty(keytab)) {<NEW_LINE>Configuration...
e, "Failed to authenticate user principal [%s] with keytab [%s]", principal, keytab);
1,776,957
private void loadNode1168() {<NEW_LINE>FiniteTransitionVariableTypeNode node = new FiniteTransitionVariableTypeNode(this.context, Identifiers.ProgramStateMachineType_LastTransition, new QualifiedName(0, "LastTransition"), new LocalizedText("en", "LastTransition"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger...
.expanded(), true));
87,846
public void testCopy() throws Exception {<NEW_LINE>CountDownLatch continueLatch = new CountDownLatch(1);<NEW_LINE>BlockableSupplier<Long> blocker = new BlockableSupplier<Long>(100l, null, continueLatch);<NEW_LINE>CompletableFuture<Long> cf0 = defaultManagedExecutor.supplyAsync(blocker);<NEW_LINE>if (!AT_LEAST_JAVA_9)<N...
>) copy.apply(cf0);
728,221
final VerifyEmailIdentityResult executeVerifyEmailIdentity(VerifyEmailIdentityRequest verifyEmailIdentityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(verifyEmailIdentityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,613,057
public Graph<EntityDescriptor> resolveNativeEntity(EntityDescriptor entityDescriptor) {<NEW_LINE>final MutableGraph<EntityDescriptor> mutableGraph = GraphBuilder<MASK><NEW_LINE>mutableGraph.addNode(entityDescriptor);<NEW_LINE>final ModelId modelId = entityDescriptor.id();<NEW_LINE>try {<NEW_LINE>final PipelineDao pipel...
.directed().build();
1,444,542
public void combine(double[] coords, Object[] data, float[] weights, Object[] outData) {<NEW_LINE>// here we do some horrible things to blend the colors<NEW_LINE>float r = 0, g = 0<MASK><NEW_LINE>for (int i = 0; i < data.length; ++i) {<NEW_LINE>int c = ((TessVertex) data[i]).c;<NEW_LINE>a += weights[i] * ((c >> 24) & 0...
, b = 0, a = 0;
1,466,546
public void appendItemToService(int service, EcuDataItem newItem) {<NEW_LINE>// check if service existes already<NEW_LINE>HashMap<Integer, Vector<EcuDataItem>> currSvc = get(service);<NEW_LINE>// if not - create it<NEW_LINE>if (currSvc == null) {<NEW_LINE>currSvc = new HashMap<>();<NEW_LINE>// $NON-NLS-1$ //$NON-NLS-2$...
put(newItem.pid, currVec);
1,668,559
void populateWith(List<Sample> samples) {<NEW_LINE>// Remove all ShapePane instances<NEW_LINE>scrollablePanel.removeAll();<NEW_LINE>// Deselect any sample<NEW_LINE>browser.publishSample(null);<NEW_LINE>// Rebuild ShapePane instances as needed<NEW_LINE>Shape currentShape = null;<NEW_LINE>List<Sample> shapeSamples = new ...
int sampleCount = samples.size();
1,412,373
public void serializeWSSecurityHeaders(XMLStreamWriter xmlWriter) throws XMLStreamException {<NEW_LINE>EwsUtilities.ewsAssert(this.securityToken != null, "WSSecurityBasedCredentials.SerializeWSSecurityHeaders", "Security token cannot be null!");<NEW_LINE>// <wsu:Timestamp wsu:Id="_timestamp"><NEW_LINE>// <wsu:Created>2...
Calendar utcNow = Calendar.getInstance();
254,767
public void writeObject(ObjectOutput output, UserSessionEntity session) throws IOException {<NEW_LINE>output.writeByte(VERSION_1);<NEW_LINE>MarshallUtil.marshallString(session.getAuthMethod(), output);<NEW_LINE>MarshallUtil.marshallString(session.getBrokerSessionId(), output);<NEW_LINE>MarshallUtil.marshallString(sessi...
writeObject(session.getAuthenticatedClientSessions());
1,612,065
public InputSource resolveEntity(String publicId, String systemId) {<NEW_LINE>String resource = null;<NEW_LINE>// return a proper input source<NEW_LINE>if (systemId != null && systemId.endsWith("sun-resources_1_3.dtd")) {<NEW_LINE>// NOI18N<NEW_LINE>resource = "/org/netbeans/modules/j2ee/sun/dd/impl/resources/sun-resou...
RootInterface.class.getResource(resource);
1,525,969
public ResultSet executeQuery(PreparedStatement stmt) {<NEW_LINE>ResultSet rs = null;<NEW_LINE>// do nothing if a previous error exists<NEW_LINE>if (s_dbEngine.isDBError())<NEW_LINE>return null;<NEW_LINE>// do nothing if prepared statement is invalid<NEW_LINE>if (stmt == null)<NEW_LINE>return null;<NEW_LINE>// get a St...
log(Level.FINEST, sqlCommand);
1,720,449
public static void putRecord(DynamoDbClient ddb) {<NEW_LINE>try {<NEW_LINE>// Create a DynamoDbEnhancedClient.<NEW_LINE>DynamoDbEnhancedClient enhancedClient = DynamoDbEnhancedClient.builder().<MASK><NEW_LINE>// Create a DynamoDbTable object.<NEW_LINE>DynamoDbTable<Movies> table = enhancedClient.table("Movies", TableSc...
dynamoDbClient(ddb).build();
1,083,207
public void bind(Torrent torrent) {<NEW_LINE>LocalTorrent local = LocalTorrent.fromTorrent(torrent);<NEW_LINE>setStatus(torrent.getStatusCode());<NEW_LINE>nameText.setText(torrent.getName());<NEW_LINE>progressText.setText(local.getProgressSizeText(getResources(), false));<NEW_LINE>ratioText.setText(local.getProgressEta...
.getProgressConnectionText(getResources()));
1,641,531
private List<ImmutablePair<String, Object>> buildStatistics() {<NEW_LINE>Summary heap = getJVMMemory(MemoryType.HEAP);<NEW_LINE>Summary nonHeap = getJVMMemory(MemoryType.NON_HEAP);<NEW_LINE>List<ImmutablePair<String, Object>> memoryStatistics = new ArrayList<>();<NEW_LINE>memoryStatistics.add(ImmutablePair.of("mockServ...
().getInit()));
1,019,964
protected void deleteAllEncryptionKeys() {<NEW_LINE>Context appContext = ApplicationProvider.getApplicationContext();<NEW_LINE>appContext.getSharedPreferences("com.amazonaws.android.auth.encryptionkey", Context.MODE_PRIVATE).edit().clear().apply();<NEW_LINE>appContext.getSharedPreferences("CognitoIdentityProviderCache....
String keyAlias = keyAliases.nextElement();
282,834
public synchronized SnapshotRecordResult stopRecording() {<NEW_LINE>if (state.getStatus() != RecordingStatus.Recording) {<NEW_LINE>throw new NotRecordingException();<NEW_LINE>}<NEW_LINE>List<ServeEvent> serveEvents = admin.getServeEvents().getServeEvents();<NEW_LINE>UUID lastId = serveEvents.isEmpty() ? null : serveEve...
(state.getStartingServeEventId()));
560,526
protected String buildHandle(final List<URIRegisterDTO> uriList, final SelectorDO selectorDO) {<NEW_LINE>List<TarsUpstream> addList = buildTarsUpstreamList(uriList);<NEW_LINE>List<TarsUpstream> canAddList = new CopyOnWriteArrayList<>();<NEW_LINE>boolean isEventDeleted = uriList.size() == 1 && EventType.DELETED.equals(u...
(0).getEventType());
957,708
static String escape(String text) {<NEW_LINE>// unwrap double quotes<NEW_LINE>if (text.length() > 1 && text.charAt(0) == '"' && text.charAt(text.length() - 1) == '"') {<NEW_LINE>text = text.substring(1, text.length() - 1);<NEW_LINE>}<NEW_LINE>int i = 0;<NEW_LINE>int length = text.length();<NEW_LINE>StringBuilder result...
Logger.strict("Unsupported string resource escape code '%s'", escapeCode);
999,131
protected void dump(String head, StringBuilder log) {<NEW_LINE>String eol = StringUtil.lineSeparator();<NEW_LINE>log.append(eol);<NEW_LINE>log.append(head).append(forwardedMessage).append(eol);<NEW_LINE>log.append(head).append(processedForwardedMessage).append(eol);<NEW_LINE>log.append(head).append(badForwardMessage).a...
(dropForwardMessage).append(eol);
874,648
private static VoiceNotePlaybackState extractStateFromMetadata(@NonNull MediaControllerCompat mediaController, @NonNull MediaMetadataCompat mediaMetadataCompat, @Nullable VoiceNotePlaybackState previousState) {<NEW_LINE>Uri mediaUri = Objects.requireNonNull(mediaMetadataCompat.getDescription().getMediaUri());<NEW_LINE>...
Bundle extras = mediaController.getExtras();
1,019,878
public void parseChildElement(XMLStreamReader xtr, BaseElement parentElement, BpmnModel model) throws Exception {<NEW_LINE>FlowableListener listener = new FlowableListener();<NEW_LINE>BpmnXMLUtil.addXMLLocation(listener, xtr);<NEW_LINE>if (StringUtils.isNotEmpty(xtr.getAttributeValue(null, ATTRIBUTE_LISTENER_CLASS))) {...
.getAttributeValue(null, ATTRIBUTE_LISTENER_EVENT));
524,864
protected List<?> ls(Message<?> message, Session<F> session, String dir) throws IOException {<NEW_LINE>List<F> lsFiles = listFilesInRemoteDir(session, dir, "");<NEW_LINE>if (!this.options.contains(Option.LINKS)) {<NEW_LINE>purgeLinks(lsFiles);<NEW_LINE>}<NEW_LINE>if (!this.options.contains(Option.ALL)) {<NEW_LINE>purge...
results = new ArrayList<>();
1,260,439
protected void recordFilterCompletion(final ExecutionStatus status, final ZuulFilter<I, O> filter, long startTime, final ZuulMessage zuulMesg, final ZuulMessage startSnapshot) {<NEW_LINE>final SessionContext zuulCtx = zuulMesg.getContext();<NEW_LINE>final long execTimeNs = System.nanoTime() - startTime;<NEW_LINE>final ...
usageNotifier.notify(filter, status);
1,434,355
public void run() {<NEW_LINE>PolyglotEngineImpl[] engines;<NEW_LINE>synchronized (ENGINES) {<NEW_LINE>engines = ENGINES.keySet().toArray(new PolyglotEngineImpl[0]);<NEW_LINE>}<NEW_LINE>for (PolyglotEngineImpl engine : engines) {<NEW_LINE>if (DEBUG_MISSING_CLOSE) {<NEW_LINE>PrintStream out = System.out;<NEW_LINE>out.pri...
engine.ensureClosed(false, true);
1,285,982
public boolean markTargetsForOfferPriceData(PromotableCandidateItemOffer itemOffer, OrderItem relatedQualifier, boolean checkOnly, Offer promotion, OrderItem relatedQualifierRoot, OfferPriceData offerPriceData, List<PromotableOrderItemPriceDetail> priceDetails) {<NEW_LINE>int targetQtyNeeded = offerPriceData.getQuantit...
int minRequiredTargetQuantity = itemOffer.getMinimumRequiredTargetQuantity();
1,811,242
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>if (controller == null || sourceObject == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Map<UUID, Cards> cardsToDiscard ...
Discard, target, source, game);
1,674,666
private void bindAdditionalParams(Object additionalParams, OSQLFunctionAstar ctx) {<NEW_LINE>if (additionalParams == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, Object> mapParams = null;<NEW_LINE>if (additionalParams instanceof Map) {<NEW_LINE>mapParams = (Map) additionalParams;<NEW_LINE>} else if (additio...
.toUpperCase(Locale.ENGLISH));
1,217,305
public <T> Higher<Higher<ior, L>, T> handleErrorWith(Function<? super L, ? extends Higher<Higher<ior, L>, ? extends T>> fn, Higher<Higher<ior, L>, T> ds) {<NEW_LINE>Function<? super L, ? extends Ior<L, T>> fn2 = fn.andThen(s -> {<NEW_LINE>Higher<Higher<ior, L>, T> x = (Higher<Higher<ior, L>, T>) s;<NEW_LINE>Ior<L, T> <...
r = Ior.narrowK(x);
653,892
static public int showSysImageMessage() {<NEW_LINE>String htmlString = "<html> " + "<head> <style type=\"text/css\">" + "p { font: " + FONT_SIZE + "pt \"Lucida Grande\"; " + "margin: " + TEXT_MARGIN + "px; " + "width: " + TEXT_WIDTH + "px }" + "</style> </head>";<NEW_LINE>htmlString += "<body> <p> " + AndroidMode.getTe...
setBackground(label.getBackground());
1,006,950
private FrustumHolder createShadowFrustum(float renderMultiplier, FrustumHolder holder) {<NEW_LINE>// TODO: Cull entities / block entities with Advanced Frustum Culling even if voxelization is detected.<NEW_LINE>String distanceInfo;<NEW_LINE>String cullingInfo;<NEW_LINE>if ((packCullingState == OptionalBoolean.FALSE ||...
, boxCuller), distanceInfo, cullingInfo);
873,688
private boolean updateDebugOptions(final int debugPort) {<NEW_LINE>boolean updateResult = false;<NEW_LINE>try {<NEW_LINE>ResultMap<String, String> result = CommandGetProperty.getProperties(instance, "configs.config.server-config.java-config.debug-options");<NEW_LINE>if (result.getState() == TaskState.COMPLETED) {<NEW_L...
CommandSetProperty.setProperty(instance, setCmd);
519,057
public void testContextInfoExactMatchOverrideDefault() throws Exception {<NEW_LINE>CommonTasks.writeLogMsg(Level.INFO, "**** >>>>> server configuration thresholds for - <global - slow : 5s , hung : 10s> <timing - Slow : 120s , hung : 120s>");<NEW_LINE>server.setServerConfigurationFile("contextInfoPattern/server_timing_...
writeLogMsg(Level.INFO, "**** >>>>> server configuration thresholds for - <global - slow : 120s , hung : 120s> <timing - Slow : 5s , hung : 10s>");
552,301
private static void doExperiment(int numberOfExperiments, int initialArraySize, Map<Integer, Comparable[]> allInputArrays) {<NEW_LINE>StdOut.printf("%13s %23s %39s\n", "Array Size | ", "QuickSort Running Time |", "QuickSort W/ No Sentinels Running Time");<NEW_LINE>int arraySize = initialArraySize;<NEW_LINE>for (int i =...
double defaultQuickSortRunningTime = defaultQuickSortTimer.elapsedTime();
635,298
public static ListNodeGroupTransferPacketsResponse unmarshall(ListNodeGroupTransferPacketsResponse listNodeGroupTransferPacketsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listNodeGroupTransferPacketsResponse.setRequestId(_ctx.stringValue("ListNodeGroupTransferPacketsResponse.RequestId"));<NEW_LINE>listNodeGroupTrans...
("ListNodeGroupTransferPacketsResponse.Data.List[" + i + "].FPort"));
1,629,571
public static void dicomStoreSetIamPolicy(String dicomStoreName) throws IOException {<NEW_LINE>// String dicomStoreName =<NEW_LINE>// String.format(<NEW_LINE>// DICOM_NAME, "your-project-id", "your-region-id", "your-dataset-id", "your-dicom-id");<NEW_LINE>// Initialize the client, which will be used to interact with th...
Policy updatedPolicy = request.execute();
757,042
default URI absoluteUri() {<NEW_LINE>try {<NEW_LINE>// Use raw string representation and URL to avoid re-encoding chars like '%'<NEW_LINE>URI partialUri = new URL(isSecure() ? "https" : "http", localAddress(), localPort(), path().absolute().toRawString()).toURI();<NEW_LINE>StringBuilder sb = new <MASK><NEW_LINE>if (uri...
StringBuilder(partialUri.toString());
202,233
private void readBitmapIndexed1(final BitmapIndexed pBitmap, final boolean pAsMask) throws IOException {<NEW_LINE>int width = adjustToPadding((pBitmap.getWidth() + 7) >> 3);<NEW_LINE>byte[<MASK><NEW_LINE>for (int y = 0; y < pBitmap.getHeight(); y++) {<NEW_LINE>imageInput.readFully(row, 0, width);<NEW_LINE>int rowPos = ...
] row = new byte[width];
1,210,745
public ConfigInfoWrapper mapRow(ResultSet rs, int rowNum) throws SQLException {<NEW_LINE>ConfigInfoWrapper info = new ConfigInfoWrapper();<NEW_LINE>info.setDataId(rs.getString("data_id"));<NEW_LINE>info.setGroup(rs.getString("group_id"));<NEW_LINE>info.setTenant(rs.getString("tenant_id"));<NEW_LINE>info.setAppName(rs.g...
(rs.getString("content"));
1,212,769
public SimpleTreeNode find(SimpleTreeNode fromNode, int recordId) {<NEW_LINE>if (fromNode == null)<NEW_LINE>fromNode = getRoot();<NEW_LINE>MTreeNode data = (MTreeNode) fromNode.getData();<NEW_LINE>if (data.getNode_ID() == recordId)<NEW_LINE>return fromNode;<NEW_LINE>// If the MTree model and the tree model aren't in sy...
treeNode = find(child, recordId);
592,616
public static String databaseName(@Nonnull String url) {<NEW_LINE>int len = url.length();<NEW_LINE>int q = url.indexOf('?');<NEW_LINE>if (q == -1) {<NEW_LINE>q = len;<NEW_LINE>}<NEW_LINE>int c = url.indexOf(';');<NEW_LINE>if (c == -1) {<NEW_LINE>c = len;<NEW_LINE>}<NEW_LINE>int end = Math.min(q, c);<NEW_LINE>String cle...
1, i).trim();
893,930
final GetDevicePositionResult executeGetDevicePosition(GetDevicePositionRequest getDevicePositionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDevicePositionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix);
235,878
private void loadNode690() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.Server_ServerDiagnostics_ServerDiagnosticsSummary_PublishingIntervalCount, new QualifiedName(0, "PublishingIntervalCount"), new LocalizedText("en", "PublishingIntervalCount"), LocalizedText.NULL_...
.expanded(), false));
1,604,462
public static PostResult copyThreatDescriptor(DescriptorPostParameters overrideParams, boolean verbose, boolean showURLs, boolean dryRun) {<NEW_LINE>String validationErrorMessage = overrideParams.validateForCopyWithReport();<NEW_LINE>if (validationErrorMessage != null) {<NEW_LINE>return new PostResult(false, null, vali...
postParams.setDescription(sourceDescriptor.td_description);
431,083
private void cleanFiles(Store store, Store.MetadataSnapshot sourceMetadata, IntSupplier translogOps, long globalCheckpoint, ActionListener<Void> listener) {<NEW_LINE>// Send the CLEAN_FILES request, which takes all of the files that<NEW_LINE>// were transferred and renames them from their temporary file<NEW_LINE>// nam...
toArray(StoreFileMetadata[]::new);
1,100,548
public static QueryTaskDetailResponse unmarshall(QueryTaskDetailResponse queryTaskDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryTaskDetailResponse.setRequestId(_ctx.stringValue("QueryTaskDetailResponse.RequestId"));<NEW_LINE>queryTaskDetailResponse.setMessage(_ctx.stringValue("QueryTaskDetailResponse.Messag...
("QueryTaskDetailResponse.Data.List[" + i + "].ServicerName"));
677,560
protected boolean readIntoBuffer(int minLength) {<NEW_LINE>if (bufferSpaceLeft() < minLength) {<NEW_LINE>// current buffer cannot hold the data requested;<NEW_LINE>// need to make it larger<NEW_LINE>increaseBufferSize(minLength + currentlyInBuffer());<NEW_LINE>} else if (buf.length - writePos < minLength) {<NEW_LINE>//...
buf, writePos - readSum, readSum);
1,444,340
private boolean updateJournalTotal() {<NEW_LINE>// Update Journal Total<NEW_LINE>String sql = // croo Bug# 1789935<NEW_LINE>"UPDATE GL_Journal j" + " SET (TotalDr, TotalCr) = (SELECT COALESCE(SUM(AmtAcctDr),0), COALESCE(SUM(AmtAcctCr),0)" <MASK><NEW_LINE>int no = DB.executeUpdate(sql, get_TrxName());<NEW_LINE>if (no !=...
+ " FROM GL_JournalLine jl WHERE jl.IsActive='Y' AND j.GL_Journal_ID=jl.GL_Journal_ID) " + "WHERE GL_Journal_ID=" + getGL_Journal_ID();
30,726
public static IMovePolicy createMovePolicy(RefactoringStatus status, JavaRefactoringArguments arguments) {<NEW_LINE>final String policy = arguments.getAttribute(ATTRIBUTE_POLICY);<NEW_LINE>if (policy != null && !"".equals(policy)) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>if (MoveFilesFoldersAndCusPolicy.POLICY_MOVE_RESOURCES...
{ policy, ATTRIBUTE_POLICY })));
954,277
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>String keyAsString = format.format((double) getKey()).toString();<NEW_LINE>builder.startObject();<NEW_LINE>builder.field(CommonFields.MIN.getPreferredName(), min());<NEW_LINE>if (format != DocValueFormat.RAW) {<NEW_L...
DOC_COUNT.getPreferredName(), docCount);
877,415
public GetTargetResourceTypeResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetTargetResourceTypeResult getTargetResourceTypeResult = new GetTargetResourceTypeResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
int originalDepth = context.getCurrentDepth();
1,396,592
public Object visitClass(ClassTree node, Object p) {<NEW_LINE>boolean isEnum = false;<NEW_LINE>boolean isInterface = false;<NEW_LINE>boolean isAnnotation = false;<NEW_LINE>long n = positions.getStartPosition(ast, node);<NEW_LINE>long m = positions.getEndPosition(ast, node);<NEW_LINE>if (node.getKind() == Tree.Kind.ENUM...
super.visitClass(node, p);
1,803,671
public void acceptField(char[] declaringTypePackageName, char[] declaringTypeName, char[] name, boolean isDeclaration, char[] uniqueKey, int start, int end) {<NEW_LINE>if (isDeclaration) {<NEW_LINE>IType type = resolveTypeByLocation(declaringTypePackageName, declaringTypeName, NameLookup.ACCEPT_ALL, start, end);<NEW_LI...
.occurrenceCount = field.getOccurrenceCount();
1,158,340
private List<UnspentTransactionOutput> pruneRedundantOutputs(List<UnspentTransactionOutput> funding, long outputSum) {<NEW_LINE>List<UnspentTransactionOutput> largestToSmallest = Ordering.natural().reverse().onResultOf(new Function<UnspentTransactionOutput, Comparable>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public C...
subList(0, i + 1);
925,117
// GEN-LAST:event_btnFindOtherActionPerformed<NEW_LINE>private void doFastFlagSearch() {<NEW_LINE>Choice choice = new ChoiceImpl(false);<NEW_LINE>// collect data from country combobox String[name][code]<NEW_LINE>Map<String, String> choiceItems = new LinkedHashMap<>();<NEW_LINE>DefaultComboBoxModel flagModel = <MASK><NE...
(DefaultComboBoxModel) cbFlag.getModel();
671,933
public static ListProduceOrdersResponse unmarshall(ListProduceOrdersResponse listProduceOrdersResponse, UnmarshallerContext _ctx) {<NEW_LINE>listProduceOrdersResponse.setRequestId(_ctx.stringValue("ListProduceOrdersResponse.RequestId"));<NEW_LINE>listProduceOrdersResponse.setPageSize(_ctx.integerValue("ListProduceOrder...
("ListProduceOrdersResponse.Orders[" + i + "].BusinessUnitCode"));