idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
798,683
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String integrationAccountName, String schemaName, 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 nul...
this.client.mergeContext(context);
1,360,120
private void citationNotExists(EntityManagerContainerBasic emc, Field field, String value, JpaObject jpa, CheckPersist checkPersist, CheckPersistType checkPersistType) throws Exception {<NEW_LINE>if (StringUtils.isNotEmpty(value) && (!ArrayUtils.contains(checkPersist.excludes(), value))) {<NEW_LINE>for (CitationNotExis...
<String>>) path));
1,516,010
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select * from pattern [a=SupportBeanNumeric -> every b=SupportBean(intPrimitive in (a.intOne, a.intTwo))]";<NEW_LINE>env.compileDeployAddListenerMile(epl, "s0", 0);<NEW_LINE>sendBeanNumeric(env, 10, 20);<NEW_LINE>sendBeanInt(env, 10);<NEW_L...
compileDeployAddListenerMile(epl, "s0", 1);
536,096
public Builder mergeFrom(voldemort.client.protocol.pb.VAdminProto.SlopPurgeJobRequest other) {<NEW_LINE>if (other == voldemort.client.protocol.pb.VAdminProto.SlopPurgeJobRequest.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (!other.filterNodeIds_.isEmpty()) {<NEW_LINE>if (result.filterNodeIds_.isEmpty()) {<NE...
filterStoreNames_.addAll(other.filterStoreNames_);
886,616
/*<NEW_LINE>* Reading configuration values from the env variables, if a value was not provided it falls back to defaults.<NEW_LINE>*/<NEW_LINE>@VisibleForTesting<NEW_LINE>public static void readConfigurationFromEnvVariables() {<NEW_LINE>int desiredContainers = env.getIntEnvVariable(ZALENIUM_DESIRED_CONTAINERS, DEFAULT_...
env.getStringEnvVariable("HOST_UID", "1000");
676,265
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>holderPanel = new javax.swing.JPanel();<NEW_LINE>panelSelector = new javax.swing.JComboBox();<NEW_LINE>pnlToolbar = new jav...
new java.awt.GridBagConstraints();
958,269
public void run(SourceContext<WindowedValue<byte[]>> sourceContext) throws Exception {<NEW_LINE>if (Iterables.isEmpty(impulseEmitted.get())) {<NEW_LINE>synchronized (sourceContext.getCheckpointLock()) {<NEW_LINE>// emit single impulse element<NEW_LINE>sourceContext.collect(WindowedValue.valueInGlobalWindow(new byte[0])...
sourceContext.emitWatermark(Watermark.MAX_WATERMARK);
681,589
private void dynInit(int C_BPartner_ID) {<NEW_LINE>log.info("C_BPartner_ID=" + C_BPartner_ID);<NEW_LINE>if (C_BPartner_ID > 0) {<NEW_LINE>int ShelfLifeMinPct = 0;<NEW_LINE>int ShelfLifeMinDays = 0;<NEW_LINE>String sql = "SELECT bp.ShelfLifeMinPct, bpp.ShelfLifeMinPct, bpp.ShelfLifeMinDays " + "FROM C_BPartner bp " + " ...
pstmt.setInt(1, m_M_Product_ID);
679,921
private RefreshableDataSource createRefreshableDataSource(DataSourceIdentity id) throws SQLException {<NEW_LINE>if (id instanceof ClusterDataSourceIdentity) {<NEW_LINE>Database database = ((ClusterDataSourceIdentity) id).getDatabase();<NEW_LINE>Cluster cluster = database.getCluster();<NEW_LINE>ClusterInfo clusterInfo =...
), localizationConfig.toString());
1,513,142
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
(super.beforeMarshalling(listTagsForResourceRequest));
977,023
private boolean addUnclosedTagProposals(LocationType fineLocation, List<ICompletionProposal> proposals, ILexemeProvider<HTMLTokenType> lexemeProvider, int offset) {<NEW_LINE>boolean addedProposal = false;<NEW_LINE>// First see if there are any unclosed tags, suggest them first<NEW_LINE>List<String> unclosedElements = H...
this._queryHelper.getElement(unclosedElement);
228,134
public void putInt(long t, int v) {<NEW_LINE>if (writeCurArrayIndex == capacity) {<NEW_LINE>if (capacity >= CAPACITY_THRESHOLD) {<NEW_LINE>timeRet.add(new long[capacity]);<NEW_LINE>intRet.add(new int[capacity]);<NEW_LINE>writeCurListIndex++;<NEW_LINE>writeCurArrayIndex = 0;<NEW_LINE>} else {<NEW_LINE>int newCapacity = ...
(writeCurListIndex)[writeCurArrayIndex] = t;
651,429
private boolean activateSubscription(final IBaseResource theSubscription) {<NEW_LINE>IFhirResourceDao subscriptionDao = myDaoRegistry.getSubscriptionDao();<NEW_LINE>SystemRequestDetails srd = SystemRequestDetails.forAllPartition();<NEW_LINE>IBaseResource subscription = null;<NEW_LINE>try {<NEW_LINE>// read can throw Re...
= subscription != null ? subscription : theSubscription;
915,464
// we have two signInUp APIs since in version 2.7, we used to also verify the email<NEW_LINE>// as seen below. But then, in newer versions, we stopped doing that cause of<NEW_LINE>// https://github.com/supertokens/supertokens-core/issues/295, so we changed the API spec.<NEW_LINE>@Deprecated<NEW_LINE>public static SignI...
main, thirdPartyId, thirdPartyUserId, email);
251,485
private void printHorizontal() {<NEW_LINE>String paramDiv = hasDivide ? " , int divisor" : "";<NEW_LINE>String totalDiv = hasDivide ? "((total + halfDivisor)/divisor)" : "total";<NEW_LINE>out.print("\tpublic static void horizontal( Kernel1D_" + kernelType + " kernel, " + inputType + " src, " + outputType + " dst" + par...
+ typeCast + totalDiv + ";\n" + "\t\t\t}\n";
803,621
final UpdateRecommenderResult executeUpdateRecommender(UpdateRecommenderRequest updateRecommenderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateRecommenderRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UpdateRecommenderReq...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,499,232
public Condition repeat(String xpathBase, int index, Map<String, Condition> conditionsMap, Map<String, org.opendope.xpaths.Xpaths.Xpath> xpathsMap) {<NEW_LINE>// this Xpathref is a clone already,<NEW_LINE>// but it points to the original xpathObj<NEW_LINE>// org.opendope.xpaths.Xpaths.Xpath xpathObj = XPathsPart.getXPa...
xpathBaseIdx = thisXPath.indexOf(xpathBase);
1,771,389
final UpdatePipelineNotificationsResult executeUpdatePipelineNotifications(UpdatePipelineNotificationsRequest updatePipelineNotificationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updatePipelineNotificationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
283,033
public void updateNode(long expressId, EClass ec, VirtualObject eObject) throws DeserializeException, BimserverDatabaseException {<NEW_LINE>for (WaitingVirtualObject waitingObject : waitingObjects.get(expressId)) {<NEW_LINE>if (waitingObject.getStructuralFeature().isMany()) {<NEW_LINE>ListWaitingVirtualObject listWaiti...
), waitingObject.getBufferPosition());
369,221
public static void generateVisuals(MultiLayerNetwork model, DataSetIterator trainIter, DataSetIterator testIter) throws Exception {<NEW_LINE>if (visualize) {<NEW_LINE>double xMin = 0;<NEW_LINE>double xMax = 1.0;<NEW_LINE>double yMin = -0.2;<NEW_LINE>double yMax = 0.8;<NEW_LINE>int nPointsPerAxis = 100;<NEW_LINE>// Gene...
TimeUnit.SECONDS.sleep(3);
1,754,091
private void check(APIRecoverImageMsg msg, Map<String, Quota.QuotaPair> pairs) {<NEW_LINE>String currentAccountUuid = msg.getSession().getAccountUuid();<NEW_LINE>String resourceTargetOwnerAccountUuid = new QuotaUtil().getResourceOwnerAccountUuid(msg.getImageUuid());<NEW_LINE>long imageNumQuota = pairs.get(ImageQuotaCon...
quotaCompareInfo = new QuotaUtil.QuotaCompareInfo();
88,928
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>EJDB2 db = new EJDB2Builder("example.db").truncate().open();<NEW_LINE>long id = db.put("parrots", "{\"name\":\"Bianca\", \"age\": 4}");<NEW_LINE>System.out.println("Bianca record: " + id);<NEW_LINE>id = <MASK><NEW_LINE>System.out.println("Darko record: " ...
db.put("parrots", "{\"name\":\"Darko\", \"age\": 8}");
1,147,997
public void marshall(VulnerablePackage vulnerablePackage, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (vulnerablePackage == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(vulnerablePackage.getArch(), ARCH...
vulnerablePackage.getPackageManager(), PACKAGEMANAGER_BINDING);
1,352,982
public void transform(TransformationContext transformationContext) {<NEW_LINE>FieldInfo field = transformationContext.getTarget().asField();<NEW_LINE>DotName fieldTypeName = field.type().name();<NEW_LINE>if (!SESSION_EXPOSED_TYPES.contains(fieldTypeName) && !SESSION_FACTORY_EXPOSED_TYPES.contains(fieldTypeName)) {<NEW_...
transformation.add(DotNames.DEFAULT);
1,723,227
private void loadDefaultFormat() {<NEW_LINE>// PS<NEW_LINE>addExportFormat(new ExportFormatPS(getCtx(), getReportEngine()));<NEW_LINE>// XML<NEW_LINE>addExportFormat(new ExportFormatXML(getCtx<MASK><NEW_LINE>// PDF<NEW_LINE>addExportFormat(new ExportFormatPDF(getCtx(), getReportEngine()));<NEW_LINE>// HTML<NEW_LINE>add...
(), getReportEngine()));
1,091,069
public void copyFrom(final CopyFrom obj) {<NEW_LINE>final FeedInformationImpl info = (FeedInformationImpl) obj;<NEW_LINE>setAuthor(info.getAuthor());<NEW_LINE>setBlock(info.getBlock());<NEW_LINE>getCategories().clear();<NEW_LINE>if (info.getCategories() != null) {<NEW_LINE>getCategories().addAll(info.getCategories());<...
getKeywords().clone());
1,674,707
public void writePartition() throws IOException, AlluxioException {<NEW_LINE>if (sDebugMode) {<NEW_LINE>mBuf.flip();<NEW_LINE>LOG.info<MASK><NEW_LINE>}<NEW_LINE>mBuf.flip();<NEW_LINE>for (int pId = mLeft; pId < mRight; pId++) {<NEW_LINE>final long startTimeMs = System.currentTimeMillis();<NEW_LINE>FileOutStream os = mF...
(FormatUtils.byteBufferToString(mBuf));
1,417,113
public ASTNode visitCreateDefaultShardingStrategy(final CreateDefaultShardingStrategyContext ctx) {<NEW_LINE>ShardingStrategyContext shardingStrategyContext = ctx.shardingStrategy();<NEW_LINE>String shardingAlgorithmName = null;<NEW_LINE>if (null != shardingStrategyContext.shardingAlgorithm().existingAlgorithm()) {<NEW...
shardingAlgorithmName()).toLowerCase();
139,686
public void run() {<NEW_LINE>table.removeAll();<NEW_LINE>stacktrace.setText("");<NEW_LINE>int time = CastUtil.cint(pack.get("Service Elapsed"));<NEW_LINE>boolean serviceThread = false;<NEW_LINE>String[] names = scouter.util.SortUtil.sort_string(pack.keys(), pack.size());<NEW_LINE>for (int i = 0, j = 0; i < names.length...
.getColor(SWT.COLOR_RED));
673,381
public void marshall(CreateUserPoolClientRequest createUserPoolClientRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createUserPoolClientRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(cre...
createUserPoolClientRequest.getLogoutURLs(), LOGOUTURLS_BINDING);
590,947
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>// Check if there is a playlist key in the provided arguments<NEW_LINE>if (getArguments() != null) {<NEW_LINE>if (getArguments().containsKey(TomahawkFragment.PLAYLIST)) {<NEW_LINE>String playlistId = getArguments(<MASK><NEW_LINE>mPlaylist = DatabaseHelp...
).getString(TomahawkFragment.PLAYLIST);
475,379
private void adjustIndexForCustomSchemaFilter(int count, PhyQueryOperation infoSchemaQuery, LogicalInfoSchemaContext infoSchemaContext) {<NEW_LINE>if (!infoSchemaContext.isCustomSchemaFilter() || count <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Adjust dynamic parameter index in the where clause<NEW_LINE>SqlBasicCa...
getNativeSqlNode()).getWhere();
911,497
public boolean remove(long taskId, String owner, boolean removeIfEnded) throws Exception {<NEW_LINE>StringBuilder delete = new StringBuilder(66).append("DELETE FROM Task t WHERE t.ID=:i");<NEW_LINE>if (!removeIfEnded)<NEW_LINE>delete.append(" AND t.STATES<").<MASK><NEW_LINE>if (owner != null)<NEW_LINE>delete.append(" A...
append(TaskState.ENDED.bit);
172,132
public void testCompleteOnTimeout() throws Exception {<NEW_LINE>// completeOnTimeout not allowed on Java SE 8, but is otherwise a no-op on an already-completed future<NEW_LINE>CompletableFuture<Integer> cf0 = defaultManagedExecutor.completedFuture(95);<NEW_LINE>CompletableFuture<Integer> cf1;<NEW_LINE>try {<NEW_LINE>cf...
assertTrue(cf2.isDone());
512,942
private void renderTracers(MatrixStack matrixStack, double partialTicks, int regionX, int regionZ) {<NEW_LINE>RenderSystem.setShader(GameRenderer::getPositionColorShader);<NEW_LINE>RenderSystem.setShaderColor(1, 1, 1, 1);<NEW_LINE>Matrix4f matrix = matrixStack.peek().getPositionMatrix();<NEW_LINE>BufferBuilder bufferBu...
).multiply(1 - partialTicks);
1,047,875
public IndexResponse indexPermissionsForOneDvObject(DvObject dvObject) {<NEW_LINE>if (dvObject == null) {<NEW_LINE>return new IndexResponse("problem indexing... null DvObject passed in");<NEW_LINE>}<NEW_LINE>long dvObjectId = dvObject.getId();<NEW_LINE>Collection<SolrInputDocument> docs = new ArrayList<>();<NEW_LINE>Li...
savedDvObject = dvObjectService.updatePermissionIndexTime(dvObject);
1,843,622
public void filePathsDirty(@Nullable final Collection<FilePath> filesDirty, @Nullable final Collection<FilePath> dirsRecursivelyDirty) {<NEW_LINE>try {<NEW_LINE>final MultiMap<AbstractVcs, FilePath> filesConverted = groupByVcs(filesDirty);<NEW_LINE>final MultiMap<AbstractVcs, FilePath> dirsConverted = groupByVcs(dirsRe...
markDirty(myDirtBuilder, dirsConverted, true);
1,035,077
public CanaryStatus unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CanaryStatus canaryStatus = new CanaryStatus();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE...
String currentParentElement = context.getCurrentParentElement();
400,694
public FunctionEntity load(InputStream input) throws IOException {<NEW_LINE>DumpInputStream data = new DumpInputStream(input);<NEW_LINE>FunctionEntity entity = new FunctionEntity(context);<NEW_LINE>entity.setStatic(data.readBoolean());<NEW_LINE>entity.setName(data.readName());<NEW_LINE>entity.setInternalName(data.readN...
String returnTypeClass = data.readName();
1,591,860
public Referable find(Predicate<Referable> pred) {<NEW_LINE>Set<ClassReferable> <MASK><NEW_LINE>Deque<ClassReferable> toVisit = new ArrayDeque<>();<NEW_LINE>toVisit.add(myReferable);<NEW_LINE>Extent extent = myExtent;<NEW_LINE>while (!toVisit.isEmpty()) {<NEW_LINE>ClassReferable classRef = toVisit.removeLast();<NEW_LIN...
visitedClasses = new HashSet<>();
347,786
final CreateConfigurationSetEventDestinationResult executeCreateConfigurationSetEventDestination(CreateConfigurationSetEventDestinationRequest createConfigurationSetEventDestinationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createConfigurationSetEventDestinationRequest);<NEW_LINE>AWS...
(super.beforeMarshalling(createConfigurationSetEventDestinationRequest));
470,659
private String[] computeTypeArgumentProposals(CompletionProposal proposal) {<NEW_LINE>try {<NEW_LINE>IType type = (IType) resolveJavaElement(compilationUnit.getJavaProject(), proposal);<NEW_LINE>if (type == null) {<NEW_LINE>return new String[0];<NEW_LINE>}<NEW_LINE>ITypeParameter[] parameters = type.getTypeParameters()...
= typeArguments[indices[paramIdx]];
34,898
public void eval(EvaluationContext ctx) {<NEW_LINE>super.evalChildren(ctx);<NEW_LINE><MASK><NEW_LINE>int batchSize = chunk.batchSize();<NEW_LINE>boolean isSelectionInUse = chunk.isSelectionInUse();<NEW_LINE>int[] sel = chunk.selection();<NEW_LINE>RandomAccessBlock outputVectorSlot = chunk.slotIn(outputIndex, outputData...
MutableChunk chunk = ctx.getPreAllocatedChunk();
466,147
public Cursor queryChildDocuments(String parentDocumentId, String[] projection, String sortOrder) throws FileNotFoundException {<NEW_LINE>Log.d(TAG, "queryChildDocuments(), id=" + parentDocumentId);<NEW_LINE>Context context = getNonNullContext();<NEW_LINE>Document parentFolder = toDocument(parentDocumentId);<NEW_LINE>F...
(), toNotifyUri(parentFolder));
1,493,652
private T provision(Errors errors, InternalContext context, ConstructionContext<T> constructionContext) throws ErrorsException {<NEW_LINE>try {<NEW_LINE>T t;<NEW_LINE>try {<NEW_LINE>Object[] parameters = SingleParameterInjector.getAll(errors, context, parameterInjectors);<NEW_LINE>t = constructionProxy.newInstance(para...
t, errors, context, false);
1,799,847
void fillStructs() {<NEW_LINE>for (var structCfg : docTypeConfig.structtype()) {<NEW_LINE>if (isPositionStruct(structCfg)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>int idx = structCfg.idx();<NEW_LINE>StructDataType type = (StructDataType) typesByIdx.get(idx);<NEW_LINE>for (var parent : structCfg.inherits()) {<NEW_LINE>...
structCfg.name(), type);
195,979
final DescribeUserHierarchyGroupResult executeDescribeUserHierarchyGroup(DescribeUserHierarchyGroupRequest describeUserHierarchyGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeUserHierarchyGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
endClientExecution(awsRequestMetrics, request, response);
413,347
public void batch() {<NEW_LINE>LogUtils.d("RenderManager", "do batch size " + mUIUpdateNodes.size());<NEW_LINE>// mContext.getGlobalConfigs().getLogAdapter().log(TAG,"do batch size " + mShouldUpdateNodes.size());<NEW_LINE>for (int i = 0; i < mUIUpdateNodes.size(); i++) {<NEW_LINE>RenderNode uiNode = mUIUpdateNodes.get(...
uiNode = mUIUpdateNodes.get(i);
1,361,104
public void populateGlobalValues(String root, Map<DefDescriptor<? extends Definition>, Definition> defs) throws QuickFixException {<NEW_LINE>UsageMap<PropertyReference> refs = getReferenceUsageMap(root, defs);<NEW_LINE>Map<Throwable, Collection<Location>> errors = new LinkedHashMap<>();<NEW_LINE>AuraContext context = c...
getGlobalProviders().get(root);
1,354,448
final GetPortfolioSummaryResult executeGetPortfolioSummary(GetPortfolioSummaryRequest getPortfolioSummaryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPortfolioSummaryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
245,478
private static Map<Long, ShallowTrace> parseTraces(final JsonNode rootNode) throws IOException {<NEW_LINE>Map<Long, ShallowTrace> traceMap = new HashMap<>();<NEW_LINE>for (JsonNode traceNode : getField(rootNode, JsonTraceCodec.TRACES)) {<NEW_LINE>final long traceId = getLongField(traceNode, JsonTraceCodec.TRACE_ID);<NE...
ShallowTraceBuilder shallowBuilder = new ShallowTraceBuilder(traceId);
1,774,553
public int countVowelPermutation(int n) {<NEW_LINE>long[] dp = new long[5];<NEW_LINE>long[<MASK><NEW_LINE>Arrays.fill(dp, 1);<NEW_LINE>for (int i = 0; i < n - 1; ++i) {<NEW_LINE>t[0] = (dp[1] + dp[2] + dp[4]) % MOD;<NEW_LINE>t[1] = (dp[0] + dp[2]) % MOD;<NEW_LINE>t[2] = (dp[1] + dp[3]) % MOD;<NEW_LINE>t[3] = dp[2];<NEW...
] t = new long[5];
1,562,189
public static OkHttpClient.Builder enableTls12OnPreLollipop(OkHttpClient.Builder client) {<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP_MR1 && "Samsung".equals(Build.MANUFACTURER)) {<NEW_LINE>try {<NEW_LINE>Timber.d("Creating unified TrustManager");<NEW_LINE>Certificate cert = getUserTrustRootCerti...
specs.add(ConnectionSpec.CLEARTEXT);
1,104,670
public void onBindHeaderViewHolder(HeaderViewHolder holder, int position) {<NEW_LINE>sortType = SharedPreferencesUtil.getInt(ConstantStrings.PREF_SORT_SPEAKER, SORTED_BY_NAME);<NEW_LINE>String speakerData;<NEW_LINE>if (sortType == SORTED_BY_NAME)<NEW_LINE>speakerData = Utils.nullToEmpty(getItem(position).getName());<NE...
(position).getOrganisation());
388,007
@DB<NEW_LINE>public Project activateProject(final long projectId) {<NEW_LINE>Account caller = CallContext.current().getCallingAccount();<NEW_LINE>// check that the project exists<NEW_LINE>final ProjectVO project = getProject(projectId);<NEW_LINE>if (project == null) {<NEW_LINE><MASK><NEW_LINE>ex.addProxyObject(String.v...
InvalidParameterValueException ex = new InvalidParameterValueException("Unable to find project with specified id");
1,529,634
protected void visitAnnotations(AnnotatedNode node, int target) {<NEW_LINE>if (node.getAnnotations().isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.currentClass.setAnnotated(true);<NEW_LINE>if (!isAnnotationCompatible()) {<NEW_LINE>addError("Annotations are not supported in the current runtime. " + JVM_ERROR_ME...
nonSourceAnnotations = new LinkedHashMap<>();
1,284,442
public static ErrorDescription forTree(HintContext context, Tree tree, String text, Fix... fixes) {<NEW_LINE>int start;<NEW_LINE>int end;<NEW_LINE>int javacEnd;<NEW_LINE>if (context.getHintMetadata().kind == Hint.Kind.INSPECTION) {<NEW_LINE>start = (int) context.getInfo().getTrees().getSourcePositions().getStartPositio...
.getInfo(), start));
1,337,222
private static synchronized void removeDefaultConfiguration() {<NEW_LINE>if (instance == null || customConfigurationInstalled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ConcurrentCompositeConfiguration defaultConfig = (ConcurrentCompositeConfiguration) instance;<NEW_LINE>// stop loading of the configuration<NEW_LINE>Dynam...
ConfigJMXManager.unRegisterConfigMBean(defaultConfig, configMBean);
1,012,604
public MfaProvider deserialize(JsonParser p, DeserializationContext ctxt) {<NEW_LINE>MfaProvider result = new MfaProvider();<NEW_LINE>JsonNode node = JsonUtils.readTree(p);<NEW_LINE>MfaProviderType type;<NEW_LINE>try {<NEW_LINE>type = MfaProviderType.forValue(getNodeAsString(node, FIELD_TYPE, "google-authenticator"));<...
configNode.toString()) : null;
1,602,229
// The tested deployment exceptions cause FFDC so we have to allow for this.<NEW_LINE>@AllowedFFDC()<NEW_LINE>public void launchHealth31Tck() throws Exception {<NEW_LINE>String protocol = "http";<NEW_LINE><MASK><NEW_LINE>String port = Integer.toString(server.getPort(PortType.WC_defaulthost));<NEW_LINE>Map<String, Strin...
String host = server.getHostname();
623,737
private static void fillDocAndMetaFields(SearchContext context, FieldsVisitor fieldsVisitor, Map<String, Set<String>> storedToRequestedFields, Map<String, DocumentField> docFields, Map<String, DocumentField> metaFields) {<NEW_LINE>for (Map.Entry<String, List<Object>> entry : fieldsVisitor.fields().entrySet()) {<NEW_LIN...
new DocumentField(storedField, storedValues));
1,090,607
/*<NEW_LINE>* Retrieve the server audit log<NEW_LINE>* @param userId userId under which the request is performed<NEW_LINE>* @param serverName The name of the server to interrogate<NEW_LINE>* @param methodName The name of the method being invoked<NEW_LINE>* @return the server type as a String<NEW_LINE>*<NEW_LINE>* Exce...
platformRootURL = resolvePlatformRootURL(platformName, methodName);
116,428
public int blend(int src, int dst) {<NEW_LINE>int sr = (src >> 24) & 0xFF;<NEW_LINE>int sg = (src >> 16) & 0xFF;<NEW_LINE>int sb = <MASK><NEW_LINE>int a = src & 0xFF;<NEW_LINE>int dr = (dst >> 16) & 0xFF;<NEW_LINE>int dg = (dst >> 8) & 0xFF;<NEW_LINE>int db = dst & 0xFF;<NEW_LINE>int mb = (a * sb + (0xFF - a) * db) / 0...
(src >> 8) & 0xFF;
783,719
final CreateQueryLoggingConfigResult executeCreateQueryLoggingConfig(CreateQueryLoggingConfigRequest createQueryLoggingConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createQueryLoggingConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
endClientExecution(awsRequestMetrics, request, response);
1,299,864
public static Planar<GrayF32> tensorToImage(Tensor_F32 input, Planar<GrayF32> output, int miniBatch) {<NEW_LINE>if (input.getDimension() != 4)<NEW_LINE>throw new IllegalArgumentException("Input should be 4-DOF. batch + spatial (channel,height,width)");<NEW_LINE>int bands = input.length(1);<NEW_LINE>int height = input.l...
width = input.length(3);
1,062,983
private Mono<PagedResponse<QueueProperties>> listQueues(int skip, Context context) {<NEW_LINE>return managementClient.listEntitiesWithResponseAsync(QUEUES_ENTITY_TYPE, skip, NUMBER_OF_ELEMENTS, context).onErrorMap(ServiceBusAdministrationAsyncClient::mapException).flatMap(response -> {<NEW_LINE>final Response<QueueDesc...
getTitleValue(e.getTitle());
209,606
public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.MAX_LENGTH);<NEW_LINE>error = validator.validate(values.get("title"), convLab...
ValidatorFactory.getInstance(Validator.MAX_LENGTH);
1,398,268
protected void handle(GetLocalFileSizeOnBackupStorageMsg msg) {<NEW_LINE>GetLocalFileSizeOnBackupStorageReply reply = new GetLocalFileSizeOnBackupStorageReply();<NEW_LINE>GetLocalFileSizeCmd cmd = new GetLocalFileSizeCmd();<NEW_LINE>cmd.path = msg.getUrl();<NEW_LINE>restf.asyncJsonPost(buildUrl(SftpBackupStorageConstan...
bus.reply(msg, reply);
832,676
public void onActivityCreated(Bundle savedInstanceState) {<NEW_LINE>super.onActivityCreated(savedInstanceState);<NEW_LINE>adView = getView().findViewById(R.id.listener_av_main);<NEW_LINE>adView.setAdListener(new AdListener() {<NEW_LINE><NEW_LINE>private void showToast(String message) {<NEW_LINE>View view = getView();<N...
.Builder().build();
104,869
private void openWindow(Vector<Integer> ids, String tableName, int windowId) {<NEW_LINE>if (ids == null || ids.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String whereString = " " + tableName + "_ID";<NEW_LINE>// create query string<NEW_LINE>if (ids.size() == 1) {<NEW_LINE>if (ids.get(0).intValue() == 0) {<NEW_...
get(0).intValue();
597,964
public void encodeMessage(byte[] data) {<NEW_LINE>super.encodeMessage(data);<NEW_LINE>subType = SubType.fromByte(super.subType);<NEW_LINE>sensorId = (data[4] & 0xFF) << 8 | (data[5] & 0xFF);<NEW_LINE>voltage = (data[6] & 0xFF);<NEW_LINE>// Current = Field / 100<NEW_LINE>instantAmps = ((data[7] & 0xFF) << 8 | (data[8] &...
(data[15] & 0x0F);
1,317,586
private Set<String> reLoadAllDbs() {<NEW_LINE>Map<String, String> allDbs = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);<NEW_LINE>Connection connection = null;<NEW_LINE>Statement statement = null;<NEW_LINE>String sql = PolarPrivUtil.getLoadAllDbsSql();<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>connection = metaDbDataSourc...
appName = resultSet.getString(2);
1,247,908
public SelectResult select(int[] readfds, int[] writefds, int[] errorfds, Timeval timeout, @Shared("invoke") @Cached InvokeNativeFunction invokeNode) throws PosixException {<NEW_LINE>int largestFD <MASK><NEW_LINE>largestFD = findMax(writefds, largestFD);<NEW_LINE>largestFD = findMax(errorfds, largestFD);<NEW_LINE>// Th...
= findMax(readfds, -1);
1,338,866
public static Map<PartitionKey, RowUpdateSplit> split(int rowId, int[] indices, double[] values, List<PartitionKey> parts, boolean sorted) {<NEW_LINE>if (!sorted) {<NEW_LINE>Sort.quickSort(indices, values, 0, indices.length - 1);<NEW_LINE>}<NEW_LINE>Map<PartitionKey, RowUpdateSplit> <MASK><NEW_LINE>int featureIndex = 0...
ret = new HashMap<>();
257,787
private ObjectNode createContractNode(ObjectNode accountNode, AccountInformationProvider accountInformation, RskAddress addr, Iterator<DataWord> contractKeys, boolean exportCode) {<NEW_LINE>ObjectNode contractNode = accountNode.objectNode();<NEW_LINE>if (exportCode) {<NEW_LINE>byte[] code = accountInformation.getCode(a...
ObjectNode dataNode = contractNode.objectNode();
726,020
static // some sources have Monday is holiday when Tuesday is, and Friday is holiday when Thursday is (not applying this)<NEW_LINE>ImmutableHolidayCalendar generateParis() {<NEW_LINE>List<LocalDate> holidays = new ArrayList<>(2000);<NEW_LINE>for (int year = 1950; year <= 2099; year++) {<NEW_LINE>// new year<NEW_LINE>ho...
(year, 11, 1));
331,273
private void initStartingTimeline() {<NEW_LINE>startingTimeline = new Timeline();<NEW_LINE>KeyFrame kf1 = new KeyFrame(Duration.millis(500), (ActionEvent event) -> {<NEW_LINE>message.setVisible(true);<NEW_LINE>state = STARTING_LEVEL;<NEW_LINE>bat.setVisible(false);<NEW_LINE>ball.setVisible(false);<NEW_LINE>}, new KeyVa...
.getWidth()) / 2.0);
628,502
public Object convert(Object value) {<NEW_LINE>if (value instanceof ORidBag) {<NEW_LINE>List result = new ArrayList();<NEW_LINE>((ORidBag) value).rawIterator().forEachRemaining(x -> result.add(x));<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>if (value instanceof OEdgeToVertexIterable) {<NEW_LINE>value = ((OEdgeToVertex...
OInternalResultSet) value).reset();
953,687
public void onScrollChanged(int scrollY, boolean firstScroll, boolean dragging) {<NEW_LINE>// Translate overlay and image<NEW_LINE>float flexibleRange = mFlexibleSpaceImageHeight - mActionBarSize;<NEW_LINE>int minOverlayTransitionY = mActionBarSize - mOverlayView.getHeight();<NEW_LINE>ViewHelper.setTranslationY(mOverla...
.LayoutParams) mFab.getLayoutParams();
1,835,757
private void addMethod(ClassOrInterfaceDeclaration containingClassOrInterface, CallableDeclaration<?> callable, Runnable onNoExistingMethod) {<NEW_LINE>List<CallableDeclaration<?>> existingCallables = containingClassOrInterface.getCallablesWithSignature(callable.getSignature());<NEW_LINE>if (existingCallables.isEmpty()...
existingCallable = existingCallables.get(0);
336,796
private static List<Chainable> handleClassPrefixedNonProp(StatementSpecMapContext mapContext, List<Chainable> chain) {<NEW_LINE>int indexOfLastProp = getClassIndexOfLastProp(chain);<NEW_LINE>if (indexOfLastProp == -1 || indexOfLastProp == chain.size() - 1) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int depth = indexOf...
classNameCandidate, depth + 2, chain);
1,790,748
/*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.grpc.service.DeviceManagementGrpc.DeviceManagementImplBase#<NEW_LINE>* createArea(com.sitewhere.grpc.service.GCreateAreaRequest,<NEW_LINE>* io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void createArea(GCreateAreaRequest request, StreamObserver<G...
Builder response = GCreateAreaResponse.newBuilder();
1,223,773
public void handleNotification(Notification notification) {<NEW_LINE>super.handleNotification(notification);<NEW_LINE>switch(notification.getName()) {<NEW_LINE>case MsgAPI.CREATE:<NEW_LINE>setViewComponent(new Overlap2DScreen());<NEW_LINE>// TODO this must be changed to Command<NEW_LINE>facade = Overlap2DFacade.getInst...
render(notification.getBody());
636,552
final DeleteInboundConnectionResult executeDeleteInboundConnection(DeleteInboundConnectionRequest deleteInboundConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteInboundConnectionRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LIN...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
799,073
private static Pair<List<Geocache>, Boolean> parseCaches(final ObjectNode response) {<NEW_LINE>try {<NEW_LINE>final JsonNode moreNode = response.path("more");<NEW_LINE>final boolean more = moreNode != null && moreNode.isBoolean() && moreNode.asBoolean();<NEW_LINE>// Check for empty result<NEW_LINE>final JsonNode <MASK>...
results = response.path("results");
1,608,291
public void apply(IntrinsicContext context, InvocationExpr invocation) {<NEW_LINE>if (invocation.getMethod().getClassName().equals(ResourceMap.class.getName())) {<NEW_LINE>applyForResourceMap(context, invocation);<NEW_LINE>return;<NEW_LINE>} else if (invocation.getMethod().getClassName().equals(ResourceArray.class.getN...
(name).print(")");
774,321
public void applyPermission(UiPermissionDescriptor permissionDescriptor) {<NEW_LINE>checkNotNullArgument(permissionDescriptor);<NEW_LINE>final String subComponentId = permissionDescriptor.getSubComponentId();<NEW_LINE>final ScreenComponentPermission permissionValue = permissionDescriptor.getPermissionValue();<NEW_LINE>...
SecuredActionsHolder) fieldComponent).getActionsPermissions();
418,836
public static CreateScenarioParameterResponse unmarshall(CreateScenarioParameterResponse createScenarioParameterResponse, UnmarshallerContext context) {<NEW_LINE>createScenarioParameterResponse.setRequestId(context.stringValue("CreateScenarioParameterResponse.RequestId"));<NEW_LINE>createScenarioParameterResponse.setSu...
("CreateScenarioParameterResponse.ScenarioParameters[" + i + "].ScenarioId"));
117,422
static PropertyValue[] interpretHillshadeLayerProperties(Object o) {<NEW_LINE>final Map<String, String> data = (Map<String, String>) toMap(o);<NEW_LINE>final List<PropertyValue> properties = new LinkedList();<NEW_LINE>final JsonParser parser = new JsonParser();<NEW_LINE>for (Map.Entry<String, String> entry : data.entry...
Expression.Converter.convert(jsonElement);
312,041
private Function createDestinationFunction(Program program, Address addr, Address flowFromAddr, TaskMonitor monitor) {<NEW_LINE>Listing listing = program.getListing();<NEW_LINE>BookmarkManager bookmarkMgr = program.getBookmarkManager();<NEW_LINE>if (!program.getMemory().contains(addr)) {<NEW_LINE>bookmarkMgr.setBookmar...
DisassembleCommand(addr, null, true);
851,770
void processPersistenceUnit(JPAPXml pxml, JPAApplInfo applInfo) {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "processPersistenceUnit" + pxml);<NEW_LINE>synchronized (pxmlsInfo) {<NEW_LINE>URL pxmlRootURL = pxml.getRootURL...
pxmlsInfo.put(pxmlInfoKey, pxmlInfo);
1,069,156
void removeUserFriend(String userId) {<NEW_LINE>Connection connection = null;<NEW_LINE>PreparedStatement statement = null;<NEW_LINE>try {<NEW_LINE>connection = DBUtil.getConnection();<NEW_LINE>String sql = "update t_friend set `_alias` = '', `_state` = 1, `_blacked` = 0, `_dt` = ?, `_extra` = 0 where `_uid` = ? or `_f...
.setString(index++, userId);
324,128
public static DataFrame read(InputFile file, int limit) throws IOException {<NEW_LINE>try (ParquetFileReader reader = ParquetFileReader.open(file)) {<NEW_LINE>ParquetMetadata footer = reader.getFooter();<NEW_LINE>MessageType schema = footer.getFileMetaData().getSchema();<NEW_LINE>StructType struct = toSmileSchema(schem...
reader.getRecordCount(), limit);
850,259
public void marshall(DatasetDescription datasetDescription, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (datasetDescription.getCreationTimestamp() != null) {<NEW_LINE>java.util.<MASK><NEW_LINE>jsonWriter.name("CreationTimestamp");<NEW_LINE>jsonWriter.value(creationTimesta...
Date creationTimestamp = datasetDescription.getCreationTimestamp();
1,033,435
public void applyDiagnosisKeyHourRetentionPolicy(long retentionDays) {<NEW_LINE>Set<String> countries = Set.of(originCountry, euPackageName);<NEW_LINE>countries.forEach(country -> {<NEW_LINE>List<S3Object> diagnosisKeysObjects = objectStoreAccess.getObjectsWithPrefix(getDiagnosisKeyPrefix(country));<NEW_LINE>final Loca...
).minusDays(retentionDays - 1L);
1,005,369
protected void calcSlots() {<NEW_LINE>int y = 0;<NEW_LINE>int x = 0;<NEW_LINE>ISlotSelector last = null;<NEW_LINE>for (int i = 0; i < getItemHandler().getSlots(); i++) {<NEW_LINE>final UpgradeCap handler = getItemHandler().getHandlerFromSlot(i);<NEW_LINE>int idx = <MASK><NEW_LINE>if (handler.isVisible(idx)) {<NEW_LINE>...
getItemHandler().getIndexForHandler(i);
395,109
private static String tokenStringOf(Token t) {<NEW_LINE>if (ttypes == null) {<NEW_LINE>java.util.HashMap map = new java.util.HashMap();<NEW_LINE>java.lang.reflect.Field[] fields = GroovyTokenTypes.class.getDeclaredFields();<NEW_LINE>for (int i = 0; i < fields.length; i++) {<NEW_LINE>if (fields[i].getType() != int.class...
[i].getName());
119,837
// -----------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public ValueRange range(ChronoField field) {<NEW_LINE>switch(field) {<NEW_LINE>case ALIGNED_DAY_OF_WEEK_IN_MONTH:<NEW_LINE>case ALIGNED_DAY_OF_WEEK_IN_YEAR:<NEW_LINE>case ALIGNED_WEEK_OF_MONTH:<NEW_LINE>case ALIGNED_W...
, jcal.getMaximum(fieldIndex));
31,117
private void updateOrderNodeRecord(final I_PP_Order_Node record, final PPOrderRoutingActivity from) {<NEW_LINE>final WFDurationUnit durationUnit = from.getDurationUnit();<NEW_LINE>record.setPP_Activity_Type(from.getType().getCode());<NEW_LINE>record.setIsActive(true);<NEW_LINE>record.setValue(from.getCode().getAsString...
(from.getDurationRequired()));
1,457,172
private Contract matchContract(Message message, Contract groovyDsl) {<NEW_LINE>List<String> unmatchedHeaders = headersMatch(message, groovyDsl);<NEW_LINE>if (!unmatchedHeaders.isEmpty()) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Contract [" + groovyDsl + "] hasn't matched the following headers " + unma...
getInput().getMessageBody());