idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
422,430
public void vp8_init_mode_costs(Compressor c) {<NEW_LINE>int[] temp;<NEW_LINE>ReadOnlyIntArrPointer T = EntropyMode.vp8_bmode_tree;<NEW_LINE>for (BPredictionMode bpO : BPredictionMode.bintramodes) {<NEW_LINE>for (BPredictionMode bpI : BPredictionMode.bintramodes) {<NEW_LINE>bpmMaptoArray(bmode_costs.get(bpO).get(bpI));...
common.fc.bmode_prob, T);
535,362
public void marshall(DescribeSavingsPlansOfferingRatesRequest describeSavingsPlansOfferingRatesRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (describeSavingsPlansOfferingRatesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<N...
describeSavingsPlansOfferingRatesRequest.getFilters(), FILTERS_BINDING);
89,383
private List<Wo> list(Business business, Wi wi) throws Exception {<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>if (StringUtils.isEmpty(wi.getKey())) {<NEW_LINE>return wos;<NEW_LINE>}<NEW_LINE>String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey()));<NEW_LINE>EntityManager em = business.enti...
unitDutyIdentities = new ArrayList<>();
1,512,213
protected void onPushOpen(Context context, Intent intent) {<NEW_LINE>// Send a Parse Analytics "push opened" event<NEW_LINE>ParseAnalytics.trackAppOpenedInBackground(intent);<NEW_LINE>String uriString = null;<NEW_LINE>try {<NEW_LINE>JSONObject pushData = new JSONObject(intent.getStringExtra(KEY_PUSH_DATA));<NEW_LINE>ur...
putExtras(intent.getExtras());
1,057,373
private void annotateInstruction35c(@Nonnull AnnotatedBytes out, @Nonnull Instruction35c instruction) {<NEW_LINE>List<String> args = Lists.newArrayList();<NEW_LINE>int registerCount = instruction.getRegisterCount();<NEW_LINE>if (registerCount == 1) {<NEW_LINE>args.add(formatRegister(instruction.getRegisterC()));<NEW_LI...
(instruction.getRegisterD()));
707,946
public WsdlMockService cloneToAnotherProject(WsdlMockService mockService, String targetProjectName, String name, String description) {<NEW_LINE>WorkspaceImpl workspace = mockService.getProject().getWorkspace();<NEW_LINE>WsdlProject targetProject = (WsdlProject) workspace.getProjectByName(targetProjectName);<NEW_LINE>if...
String msg = "Target project [" + targetProjectName + "] is missing required interfaces;\r\n\r\n";
707,629
final ListDatabasesResult executeListDatabases(ListDatabasesRequest listDatabasesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDatabasesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
(super.beforeMarshalling(listDatabasesRequest));
1,186,827
public void run() {<NEW_LINE>try {<NEW_LINE>final TimeDuration restTime = TimeDuration.MINUTE;<NEW_LINE>LOGGER.trace(getSessionLabel(), () -> "resting for " + restTime.asCompactString());<NEW_LINE>restTime.pause();<NEW_LINE>initTempData();<NEW_LINE>LOGGER.debug(getSessionLabel(), () -> "report service initialized: " + ...
(reportStatus.get()));
1,282,736
public void addPointsToGeometry(PointList points, boolean skipFirstPoint, boolean includeElevation) {<NEW_LINE>int index = skipFirstPoint ? 1 : 0;<NEW_LINE>if (geometry == null) {<NEW_LINE>int newSize = points.size() - index;<NEW_LINE>geometry = new Coordinate[newSize];<NEW_LINE>if (includeElevation && points.is3D()) {...
= points.size() - index;
1,852,107
private void checkConfig(@NotNull List<String> reasons, @NotNull HashSet<SubSkillType> badSkillSetup, boolean retroMode) {<NEW_LINE>for (SubSkillType subSkillType : SubSkillType.values()) {<NEW_LINE>// Keeping track of the rank requirements and making sure there are no logical errors<NEW_LINE>int curRank = 0;<NEW_LINE>...
getSubSkillUnlockLevel(subSkillType, index, retroMode);
52,643
public Builder from(WorkerRequest workerRequest) {<NEW_LINE>Objects.requireNonNull(workerRequest);<NEW_LINE>this.jobId = (JobId.fromId(workerRequest.getJobId()).orElse(null));<NEW_LINE>this.stageNum = (workerRequest.getWorkerStage());<NEW_LINE>this.numStages = (workerRequest.getTotalStages());<NEW_LINE>this.machineDefi...
: new ArrayList<>());
77,881
private static BatchOperator<?> combinedTreeModelFeatureImportance(BatchOperator<?> model, BatchOperator<?> featureImportance) {<NEW_LINE>DataSet<String> importanceJson = featureImportance.getDataSet().reduceGroup(new GroupReduceFunction<Row, String>() {<NEW_LINE><NEW_LINE>private static final long serialVersionUID = -...
private static final long serialVersionUID = -1576541700351312745L;
55,307
public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(<MASK><NEW_LINE>final IOperandTreeNode targetCRBit = instruction.getOperands().get(0).get...
environment, instruction, instructions, "crnand");
257,326
public static void main(String[] args) throws IOException {<NEW_LINE>BufferedReader br = new BufferedReader(new InputStreamReader(System.in));<NEW_LINE>String[] str = br.<MASK><NEW_LINE>int len1 = str[0].length();<NEW_LINE>int len2 = str[1].length();<NEW_LINE>int max = Math.max(len1, len2);<NEW_LINE>int min = Math.min(...
readLine().split(" ");
493,305
protected void removeDefaultClusters() {<NEW_LINE>listener.onMessage("\nWARN: Exported database does not support manual index separation." + " Manual index cluster will be dropped.");<NEW_LINE>// In v4 new cluster for manual indexes has been implemented. To keep database consistent we<NEW_LINE>// should shift back all ...
database.dropCluster(OMetadataDefault.CLUSTER_MANUAL_INDEX_NAME);
1,165,930
protected void reloadData() {<NEW_LINE>User currentUser = ChatSDK.currentUser();<NEW_LINE>String name = currentUser.getName();<NEW_LINE>String location = currentUser.getLocation();<NEW_LINE>String phoneNumber = currentUser.getPhoneNumber();<NEW_LINE>String email = currentUser.getEmail();<NEW_LINE>int width = Dimen.from...
setNextFocusDown(R.id.phoneEditView);
34,202
public static // TODO: for a while, I don't want to mess with this. (version 1.3b70 is most recent)<NEW_LINE>BufferedImage takeMapScreenShot(final PlayerView view) {<NEW_LINE>final ZoneRenderer renderer = clientFrame.getCurrentZoneRenderer();<NEW_LINE>if (renderer == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Di...
Graphics2D g = image.createGraphics();
1,059,202
public Map<String, ExecutionContext> partition(int gridSize) {<NEW_LINE>Map<String, ExecutionContext> <MASK><NEW_LINE>BulkImportJobJson job = myBulkDataImportSvc.fetchJob(myJobUUID);<NEW_LINE>for (int i = 0; i < job.getFileCount(); i++) {<NEW_LINE>String fileDescription = myBulkDataImportSvc.getFileDescription(myJobUUI...
retVal = new HashMap<>();
1,646,543
public static void vertical11(Kernel1D_F32 kernel, GrayF32 input, GrayF32 output, int skip) {<NEW_LINE>final float[] dataSrc = input.data;<NEW_LINE>final float[] dataDst = output.data;<NEW_LINE>final float k1 = kernel.data[0];<NEW_LINE>final float k2 = kernel.data[1];<NEW_LINE>final float k3 = kernel.data[2];<NEW_LINE>...
k4 = kernel.data[3];
1,583,946
public HttpClientProvider create(KeycloakSession session) {<NEW_LINE>lazyInit(session);<NEW_LINE>return new HttpClientProvider() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public CloseableHttpClient getHttpClient() {<NEW_LINE>return httpClient;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void close() {<NEW_LIN...
response = httpClient.execute(request);
872,049
public int add(byte[] value) {<NEW_LINE>int offsetBufferIndex = _numValues >>> OFFSET_BUFFER_SHIFT_OFFSET;<NEW_LINE>int offsetIndex = _numValues & OFFSET_BUFFER_MASK;<NEW_LINE>PinotDataBuffer offsetBuffer;<NEW_LINE>// If this is the first entry in the offset buffer, allocate a new buffer and store the end offset of the...
+ 1) << 2, _previousValueEndOffset);
70,193
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>byte[] len = new byte[3];<NEW_LINE>len[0] = (byte) 0x82;<NEW_LINE>len[1] = (byte) 0x01;<NEW_LINE>len[2] = (byte) 0xd3;<NEW_LINE>if (_logger.isLoggable(Level.FINE)) {<NEW_LINE>_logger.log(Level.FINE, "Length byte array : " + dumpHex(len));<NEW_LINE>_logger...
, "BAR:" + dumpHex(msg1));
1,382,503
private void updateChart() {<NEW_LINE>nodeDataMap.clear();<NEW_LINE>TaxonomyNode node = chartPage.getModel().getVirtualRootNode();<NEW_LINE>ICircularSeries<?> circularSeries = (ICircularSeries<?>) chart.getSeriesSet().createSeries(ChartType.DONUT == chartType ? SeriesType.DOUGHNUT : SeriesType.<MASK><NEW_LINE>circularS...
PIE, node.getName());
1,032,385
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> executions = new ArrayList<>();<NEW_LINE>executions.add(new ExprCoreCastDates());<NEW_LINE>executions.add(new ExprCoreCastSimple());<NEW_LINE>executions.add(new ExprCoreCastSimpleMoreTypes());<NEW_LINE>executions.add(ne...
add(new ExprCoreCastWArray(false));
1,273,617
public Collection<String> showGrantResult(PolarPrivilegeData accountPrivilegeData) {<NEW_LINE>if (mapping.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>List<String> ret = new ArrayList<>(2);<NEW_LINE>String withAdminRolesString = mapping.entrySet().stream().filter(entry -> entry.getValue().w...
(Collectors.joining(", "));
1,564,046
private void cleanupExpiredInflightRequests(RequestRegistrationCallback<TtlUpdateOperation> requestRegistrationCallback) {<NEW_LINE>Iterator<Map.Entry<Integer, TtlUpdateRequestInfo>> itr = ttlUpdateRequestInfos.entrySet().iterator();<NEW_LINE>while (itr.hasNext()) {<NEW_LINE>Map.Entry<Integer, TtlUpdateRequestInfo> ttl...
.getDataNodeId(), blobId));
969,980
protected Map<String, Number> readRegisters(long threadOffset) throws IOException {<NEW_LINE>if (!hasVersionBeenDetermined) {<NEW_LINE>calculateThreadStructureSizes(threadOffset);<NEW_LINE>}<NEW_LINE>_fileReader.seek(threadOffset + sizeofThreadEntry64);<NEW_LINE>Map<String, Number> registers = new TreeMap<String, Numbe...
.valueOf(readLong()));
357,326
protected JFreeChart createBubbleChart() throws JRException {<NEW_LINE>ChartFactory.setChartTheme(StandardChartTheme.createLegacyTheme());<NEW_LINE>JFreeChart jfreeChart = ChartFactory.createBubbleChart(evaluateTextExpression(getChart().getTitleExpression()), evaluateTextExpression(((JRBubblePlot) getPlot()).getXAxisLa...
(bubblePlot.getRangeAxisMaxValueExpression()));
1,233,679
public DynamicRealmObject createEmbeddedObject(String className, DynamicRealmObject parentObject, String parentProperty) {<NEW_LINE>checkIfValid();<NEW_LINE>Util.checkNull(parentObject, "parentObject");<NEW_LINE>Util.checkEmpty(parentProperty, "parentProperty");<NEW_LINE>if (!RealmObject.isManaged(parentObject) || !Rea...
, "'%s' has a primary key field '%s', embedded objects cannot have primary keys.", className, pkField));
1,341,884
private void hardDeleteDomainsAndHosts(ImmutableList<String> domainRepoIds, ImmutableList<String> hostNames) {<NEW_LINE>jpaTm().query("DELETE FROM Host WHERE fullyQualifiedHostName IN :hostNames").setParameter("hostNames", hostNames).executeUpdate();<NEW_LINE>jpaTm().query("DELETE FROM BillingEvent WHERE domainRepoId I...
"repoIds", domainRepoIds).executeUpdate();
1,693,784
void writeSqlVariantInternalBigDecimal(BigDecimal bigDecimalVal, int srcJdbcType) throws SQLServerException {<NEW_LINE>boolean isNegative = (bigDecimalVal.signum() < 0);<NEW_LINE>BigInteger bi = bigDecimalVal.unscaledValue();<NEW_LINE>if (isNegative) {<NEW_LINE>bi = bi.negate();<NEW_LINE>}<NEW_LINE>int bLength;<NEW_LIN...
int remaining = bLength - unscaledBytes.length;
648,431
private static void populateListPartsRequestParameters(ListPartsRequest listPartsRequest, Map<String, String> params) {<NEW_LINE>params.put(UPLOAD_ID, listPartsRequest.getUploadId());<NEW_LINE>Integer maxParts = listPartsRequest.getMaxParts();<NEW_LINE>if (maxParts != null) {<NEW_LINE>if (!checkParamRange(maxParts, 0, ...
.getFormattedString("MaxPartsOutOfRange", LIST_PART_MAX_RETURNS));
1,838,441
public void onBindViewHolder(@NonNull StockViewHolder holder, int position) {<NEW_LINE>StockMediaModel <MASK><NEW_LINE>String imageUrl = PhotonUtils.getPhotonImageUrl(media.getThumbnail(), mThumbWidth, mThumbHeight);<NEW_LINE>mImageManager.load(holder.mImageView, ImageType.PHOTO, imageUrl, ScaleType.CENTER_CROP);<NEW_L...
media = mItems.get(position);
569,589
public void showErrorNotification(@StringRes int message, Throwable exception) {<NEW_LINE>Intent intent = new Intent(context, MainActivity.class).setAction(Intent.ACTION_SEND).setType("text/plain").putExtra(Intent.EXTRA_SUBJECT, "Alarm error v" + BuildConfig.VERSION_NAME);<NEW_LINE>if (exception != null) {<NEW_LINE>Str...
).notify(1000, notification);
1,174,426
private DataSet<Factors> initFactors(DataSet<Ratings> graph, final int numFactors) {<NEW_LINE>return graph.map(new RichMapFunction<Ratings, Factors>() {<NEW_LINE><NEW_LINE><MASK><NEW_LINE><NEW_LINE>transient Random random;<NEW_LINE><NEW_LINE>transient Factors reusedFactors;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public ...
private static final long serialVersionUID = -6242580857177532093L;
30,270
private void acknowledgeAlreadyProcessedOperation(SegmentOperation operation) throws ServiceHaltException {<NEW_LINE>if (operation instanceof MergeSegmentOperation) {<NEW_LINE>// Only MergeSegmentOperations need special handling. Others, such as StreamSegmentSealOperation, are not<NEW_LINE>// needed since they're handl...
("Unable to acknowledge already processed operation '%s'.", operation), ex);
1,577,337
public GetAccountResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetAccountResult getAccountResult = new GetAccountResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
)).unmarshall(context));
1,586,553
public void serialize(DataOutputStream stream) throws IOException {<NEW_LINE>stream.writeByte((byte) <MASK><NEW_LINE>ReadWriteIOUtils.write(name, stream);<NEW_LINE>// write NEW_PLAN as flag to note that there is no schemaNames and new nested list for<NEW_LINE>// compressors<NEW_LINE>ReadWriteIOUtils.write(NEW_PLAN, str...
PhysicalPlanType.CREATE_TEMPLATE.ordinal());
1,128,471
public static void main(String[] args) {<NEW_LINE>List<List<Character>> keypad = // 0 and 1 digit doesn't have any characters associated<NEW_LINE>Arrays.// 0 and 1 digit doesn't have any characters associated<NEW_LINE>asList(Arrays.asList(), Arrays.asList(), Arrays.asList('a', 'b', 'c'), Arrays.asList('d', 'e', 'f'), A...
] input = { 2, 3 };
1,503,757
private int assignToNearestCluster(int[] assignment, double[][] means, double[][] cfmeans, ClusteringFeature[] cfs, int[] weights) {<NEW_LINE>Arrays.fill(weights, 0);<NEW_LINE>int changed = 0;<NEW_LINE>for (int i = 0; i < cfmeans.length; i++) {<NEW_LINE>double mindist = distance(cfmeans[<MASK><NEW_LINE>int minIndex = 0...
i], means[0]);
1,043,659
public ValueDerivatives annuityCashDerivative(ResolvedSwapLeg fixedLeg, double yield) {<NEW_LINE>int nbFixedPeriod = fixedLeg.getPaymentPeriods().size();<NEW_LINE>SwapPaymentPeriod paymentPeriod = fixedLeg.getPaymentPeriods().get(0);<NEW_LINE>ArgChecker.isTrue(paymentPeriod instanceof RatePaymentPeriod, "payment period...
annuityCash1(nbFixedPaymentYear, nbFixedPeriod, yield);
57,303
protected Authentication doInternalAuthenticate(LoginCredential loginCredential) {<NEW_LINE>_logger.debug("authentication " + loginCredential);<NEW_LINE>sessionValid(loginCredential.getSessionId());<NEW_LINE>// jwtTokenValid(j_jwtToken);<NEW_LINE><MASK><NEW_LINE>Institutions inst = (Institutions) WebContext.getAttribut...
authTypeValid(loginCredential.getAuthType());
1,809,709
private synchronized void commonInitialization(DistributedLogConfiguration conf, String ledgersPath, EventLoopGroup eventLoopGroup, StatsLogger statsLogger, HashedWheelTimer requestTimer) throws IOException, InterruptedException {<NEW_LINE>ClientConfiguration bkConfig = new ClientConfiguration();<NEW_LINE>bkConfig.setA...
setNumWorkerThreads(conf.getBKClientNumberWorkerThreads());
69,019
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>mAppContext = getApplicationContext();<NEW_LINE>mBackGroundText = findViewById(R.id.connectCameraText);<NEW_LINE>mGLSurfaceView = findViewById(R.id.glSurfaceView);<...
.permission.CAMERA }, PERMISSIONS_REQUEST_CAMERA);
1,249,311
default <T2, R1, R2, R3, R> Ior<LT, R> forEach4(Function<? super RT, ? extends Ior<LT, R1>> value1, BiFunction<? super RT, ? super R1, ? extends Ior<LT, R2>> value2, Function3<? super RT, ? super R1, ? super R2, ? extends Ior<LT, R3>> value3, Function4<? super RT, ? super R1, ? super R2, ? super R3, ? extends R> yieldi...
, ina, inb, in2));
1,022,486
public UserSessionModel loadUserSession(RealmModel realm, String userSessionId, boolean offline) {<NEW_LINE>String offlineStr = offlineToString(offline);<NEW_LINE>TypedQuery<PersistentUserSessionEntity> userSessionQuery = em.createNamedQuery("findUserSession", PersistentUserSessionEntity.class);<NEW_LINE>userSessionQue...
, Collections.singleton(userSessionId));
1,679,652
public PhotonQueryBuilder addOsmTagFilter(TagFilter filter) {<NEW_LINE>state = State.FILTERED;<NEW_LINE>if (filter.getKind() == TagFilterKind.EXCLUDE_VALUE) {<NEW_LINE>appendIncludeTermQuery(QueryBuilders.boolQuery().must(QueryBuilders.termQuery("osm_key", filter.getKey())).mustNot(QueryBuilders.termQuery("osm_value", ...
filter.getValue())));
1,260,605
public void marshall(IdentityProviderType identityProviderType, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (identityProviderType == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(identityProviderType.get...
identityProviderType.getLastModifiedDate(), LASTMODIFIEDDATE_BINDING);
1,496,389
public void start() throws Exception {<NEW_LINE>if (container.isRunning()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final <MASK><NEW_LINE>for (Container container : dockerClient.listContainersCmd().exec()) {<NEW_LINE>final String containerTestSystem = container.getLabels().get(TEST_SYSTEM_LABEL);<NEW_LINE>if (containerTe...
DockerClient dockerClient = container.getDockerClient();
1,147,240
private void createBlockOrReportSpam(UsersType usersType, long currentUserId, ArrayList<Long> userIds, FinishedCallback callback, ConnectionStatus connectionStatus) {<NEW_LINE>if (connectionStatus != null && !connectionStatus.isOnline()) {<NEW_LINE>if (callback != null) {<NEW_LINE>callback.finished(new TwitterFetchResu...
), mWorkerCallbacks.getCurrentAccountKey());
168,423
final DeleteTagOptionResult executeDeleteTagOption(DeleteTagOptionRequest deleteTagOptionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTagOptionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,411,530
private String generateDoubleFieldAccessor(int fieldNum) {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>String fieldName = substituteInvalidChars(objectSchema.getFieldName(fieldNum));<NEW_LINE>builder.append(" public double get").append(uppercase(fieldName)).append("(int ordinal) {\n");<NEW_LINE>bu...
(fieldName).append("\");\n");
1,637,076
public String addEntity(HttpServletRequest request, HttpServletResponse response, Model model, @PathVariable Map<String, String> pathVars, @ModelAttribute(value = "entityForm") EntityForm entityForm, BindingResult result) throws Exception {<NEW_LINE>String sectionKey = getSectionKey(pathVars);<NEW_LINE>String sectionCl...
getSectionCrumbs(request, null, null);
424,754
private void toggleStarringState() {<NEW_LINE>StarringService service = ServiceFactory.<MASK><NEW_LINE>Single<Response<Void>> responseSingle = mIsStarring ? service.unstarRepository(mRepository.owner().login(), mRepository.name()) : service.starRepository(mRepository.owner().login(), mRepository.name());<NEW_LINE>respo...
get(StarringService.class, false);
1,010,341
public void init(SamplerConfiguration config) {<NEW_LINE>String hasherOpt = config.getOptions().get("hasher");<NEW_LINE>String modulusOpt = config.getOptions().get("modulus");<NEW_LINE>requireNonNull(hasherOpt, "Hasher not specified");<NEW_LINE>requireNonNull(modulusOpt, "Modulus not specified");<NEW_LINE>switch(hasher...
modulus = Integer.parseInt(modulusOpt);
825,123
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("pos" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object obj = param.getLeafExpression().calculate(ctx);<NEW_LINE>return src...
getLeafExpression().calculate(ctx);
24,991
public static FileObject lookupSourceFileOnly(Lookup context) {<NEW_LINE>Collection<? extends FileObject> fileObjects = context.lookupAll(FileObject.class);<NEW_LINE>if (fileObjects.size() != 1) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>FileObject fileObject = fileObjects.iterator().next();<NEW_LINE>Project project =...
FileObject sourcesFolder = clientSideProject.getSourcesFolder();
1,748,989
public KendraConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>KendraConfiguration kendraConfiguration = new KendraConfiguration();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonTok...
int originalDepth = context.getCurrentDepth();
690,429
final PutSlotTypeResult executePutSlotType(PutSlotTypeRequest putSlotTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putSlotTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
false), new PutSlotTypeResultJsonUnmarshaller());
384,254
private String checkDefaultBinding(String action, SoapMessage message, RequestData data) throws WSSecurityException {<NEW_LINE>action = addToAction(action, "Signature", true);<NEW_LINE>action = addToAction(action, "Encrypt", true);<NEW_LINE>Object s = SecurityUtils.getSecurityPropertyValue(SecurityConstants.SIGNATURE_C...
message.put(signCryptoRefId, signCrypto);
547,983
public static ClientMessage encodeRequest(java.lang.String name, long startSequence, int minSize, int maxSize, @Nullable com.hazelcast.internal.serialization.Data predicate, @Nullable com.hazelcast.internal.serialization.Data projection) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE...
clientMessage, projection, DataCodec::encode);
803,305
public edu.stanford.nlp.pipeline.CoreNLPProtos.TsurgeonRequest.Operation buildPartial() {<NEW_LINE>edu.stanford.nlp.pipeline.CoreNLPProtos.TsurgeonRequest.Operation result = new edu.stanford.nlp.pipeline.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0...
CoreNLPProtos.TsurgeonRequest.Operation(this);
184,679
private static Map<Long, Long> lookupEventToCalendarMap(Context context, Set<Long> eventIds) {<NEW_LINE>Map<Long, Long> eventsToCalendars = new <MASK><NEW_LINE>ContentResolver resolver = context.getContentResolver();<NEW_LINE>String eventSelection = buildMultipleIdQuery(eventIds, Events._ID);<NEW_LINE>if (!Utils.isCale...
HashMap<Long, Long>();
6,914
public void addStorageEngine(StorageEngine<ByteArray, byte[], byte[]> engine) {<NEW_LINE>StorageEngine<ByteArray, byte[], byte[]> found = this.storageEngines.putIfAbsent(<MASK><NEW_LINE>if (found != null)<NEW_LINE>throw new VoldemortException("Storage Engine '" + engine.getName() + "' has already been initialized.");<N...
engine.getName(), engine);
135,417
public <K, V, S extends Enum<S>, T extends Enum<T>> org.ehcache.core.statistics.OperationStatistic<T> registerStoreStatistics(Store<K, V> store, String targetName, int tierHeight, String tag, Map<T, Set<S>> translation, String statisticName) {<NEW_LINE>Class<<MASK><NEW_LINE>// If the original stat doesn't exist, we do ...
S> outcomeType = getOutcomeType(translation);
1,453,079
public void initClient(final Properties props) {<NEW_LINE>if (MapUtils.isEmpty(props)) {<NEW_LINE>LOG.error("aliyun sls props is empty. failed init aliyun sls producer");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isStarted.get()) {<NEW_LINE>close();<NEW_LINE>}<NEW_LINE>String accessId = props.getProperty(GenericLoggingC...
), e.GetErrorMessage());
32,479
private void updateOrderLineFromCompensationLine(final I_C_OrderLine compensationLinePO, final GroupCompensationLine compensationLine, final GroupId groupId) {<NEW_LINE>compensationLinePO.setC_Order_CompensationGroup_ID(groupId.getOrderCompensationGroupId());<NEW_LINE>compensationLinePO.setIsGroupCompensationLine(true)...
setQtyEntered(qtyEntered.toBigDecimal());
1,240,583
protected Map<String, DiagramNode> fixFlowNodePositionsIfModelFromAdonis(Document bpmnModel, Map<String, DiagramNode> elementBoundsFromBpmnDi) {<NEW_LINE>if (isExportedFromAdonis50(bpmnModel)) {<NEW_LINE>Map<String, DiagramNode> mapOfFixedBounds = new HashMap<>();<NEW_LINE>XPathFactory xPathFactory = XPathFactory.newIn...
.setNamespaceContext(new Bpmn20NamespaceContext());
1,609,829
final OptionGroup executeCopyOptionGroup(CopyOptionGroupRequest copyOptionGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(copyOptionGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<CopyOptionGroupR...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,659,879
public static ListCorpsResponse unmarshall(ListCorpsResponse listCorpsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCorpsResponse.setRequestId(_ctx.stringValue("ListCorpsResponse.RequestId"));<NEW_LINE>listCorpsResponse.setMessage(_ctx.stringValue("ListCorpsResponse.Message"));<NEW_LINE>listCorpsResponse.setCode(_...
("ListCorpsResponse.Data.Records[" + i + "].Description"));
288,850
public static TDigest merge(double compression, Iterable<TDigest> subData) {<NEW_LINE>Preconditions.checkArgument(subData.iterator(<MASK><NEW_LINE>List<TDigest> elements = Lists.newArrayList(subData);<NEW_LINE>int n = Math.max(1, elements.size() / 4);<NEW_LINE>TDigest r = new TDigest(compression, elements.get(0).gen);<...
).hasNext(), "Can't merge 0 digests");
107,525
private void writePutArguments(JavaWriter jw, String sourceVariable, String bundleVariable, ArgumentAnnotatedField arg) throws IOException, ProcessingException {<NEW_LINE>boolean addNullCheck = !arg.isPrimitive() && !arg.isRequired();<NEW_LINE>jw.emitEmptyLine();<NEW_LINE>if (addNullCheck) {<NEW_LINE>jw.beginControlFlo...
ArgsBundler.class.getSimpleName());
588,209
public UpdateSignalingChannelResult updateSignalingChannel(UpdateSignalingChannelRequest updateSignalingChannelRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSignalingChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
327,935
protected final <C extends SolrUpdateCommand> void scheduleCommand(C command) {<NEW_LINE>if (!isRunning(getCommandGroup())) {<NEW_LINE>throw new IllegalStateException("Attempted to queue a SolrUpdateCommand but " + getClass().getName() + " is not initialized or has been shut down.");<NEW_LINE>}<NEW_LINE>if (command != ...
throw new RuntimeException("Unexpected error occurred attempting to add a command to the queue.", e);
1,271,704
private static void demoBurglaryAlarmModel(FiniteProbabilityModel model) {<NEW_LINE><MASK><NEW_LINE>System.out.println("Burglary Alarm Model");<NEW_LINE>System.out.println("--------------------");<NEW_LINE>AssignmentProposition aburglary = new AssignmentProposition(ExampleRV.BURGLARY_RV, Boolean.TRUE);<NEW_LINE>Assignm...
System.out.println("--------------------");
1,529,253
public void testEquals() {<NEW_LINE>List<List<Object>> allGroups = new ArrayList<>();<NEW_LINE>Box<List<Object>> currentGroup = Box.of(new ArrayList<>());<NEW_LINE>API api = new API() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void areDifferentThan() {<NEW_LINE>currentGroup.modify(current -> {<NEW_LINE>// create tw...
(reserialize(create()));
1,064,360
public com.amazonaws.services.connect.model.AccessDeniedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.connect.model.AccessDeniedException accessDeniedException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurrentDepth()...
connect.model.AccessDeniedException(null);
1,624,116
public void reorder() throws ExpressionException {<NEW_LINE>ArrayList<Variable> newVars = new ArrayList<>();<NEW_LINE>ArrayList<Variable> deletedVars = new ArrayList<>(table.getVars());<NEW_LINE>for (String name : names) {<NEW_LINE>Variable found = null;<NEW_LINE>for (Variable v : deletedVars) if (v.getIdentifier().equ...
= this.table.createDeepCopy();
1,073,336
public static String createPrincipal(String krb5User, String krb5UserPwd) throws Exception {<NEW_LINE>String principalName = krb5User + "@" + DOMAIN;<NEW_LINE>Entry entry = new DefaultEntry(session.getDirectoryService().getSchemaManager());<NEW_LINE>entry.add("userPassword", krb5UserPwd);<NEW_LINE>entry.add("krb5Princi...
"uid=" + krb5User + "," + BASE_DN);
1,567,911
public void marshall(CountClosedWorkflowExecutionsRequest countClosedWorkflowExecutionsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (countClosedWorkflowExecutionsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>prot...
countClosedWorkflowExecutionsRequest.getDomain(), DOMAIN_BINDING);
1,594,181
private JsonResponseComposite toJson(@NonNull final BPartnerComposite bpartnerComposite) {<NEW_LINE>final BPartner bpartner = bpartnerComposite.getBpartner();<NEW_LINE>try (final MDCCloseable ignored = MDC.putCloseable("method", "JsonRetrieverService.toJson(BPartnerComposite)");<NEW_LINE>final MDCCloseable ignored1 = T...
(toJson(contact, language));
170,802
public com.amazonaws.services.kendra.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kendra.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.kendra.model.ResourceNotFoundException(null);<NEW_L...
String currentParentElement = context.getCurrentParentElement();
2,302
private static void handlePerRole(Map<String, Permissions> map, PatternBuilder patternBuilder, String urlPatternSpec) {<NEW_LINE>Map<String, BitSet> roleMap = patternBuilder.getRoleMap();<NEW_LINE>List<String> roleList = null;<NEW_LINE>// Handle the roles for the omitted methods<NEW_LINE>if (!patternBuilder.otherConstr...
"!" + MethodValue.getActions(methods);
970,492
// account<NEW_LINE>public // idempiere 344 - nmicoud<NEW_LINE>// idempiere 344 - nmicoud<NEW_LINE>String // idempiere 344 - nmicoud<NEW_LINE>alias(// idempiere 344 - nmicoud<NEW_LINE>Properties ctx, // idempiere 344 - nmicoud<NEW_LINE>int WindowNo, // idempiere 344 - nmicoud<NEW_LINE>GridTab mTab, // idempiere 344 - n...
combi.getUser4_ID() : null);
11,923
private void javafy_ref(ValueBox vb) {<NEW_LINE>Ref r = (Ref) vb.getValue();<NEW_LINE>if (r instanceof StaticFieldRef) {<NEW_LINE>SootFieldRef fieldRef = ((StaticFieldRef) r).getFieldRef();<NEW_LINE>// addPackage(fieldRef.declaringClass().getJavaPackageName());<NEW_LINE>String className = fieldRef.declaringClass().toSt...
javafy(ifr.getBaseBox());
740,771
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {<NEW_LINE>if (LicenseStatus.sDisableCommonHooks) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!isEnabled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Class<?> _ProfileCardInfo = ((Method) param.method).getParameterTypes()[0];<NEW_LINE>Object info = i...
f.setLong(card, 0);
1,846,864
private void initEnvironmentVariables() {<NEW_LINE>int statusBarHeight = BarUtils.getStatusBarHeight(this);<NEW_LINE>int deviceWidth = ScreenUtils.getAppScreenWidth(this);<NEW_LINE>int deviceHeight = ScreenUtils.getAppScreenHeight(this);<NEW_LINE>int availableWidth = deviceWidth;<NEW_LINE>int availableHeight = deviceHe...
DPUtil.px2dp(this, statusBarHeight);
94,717
public void close() throws IOException {<NEW_LINE>if (closed)<NEW_LINE>return;<NEW_LINE>super.close();<NEW_LINE>ApplicationManager.getApplication().assertWriteAccessAllowed();<NEW_LINE>VFileContentChangeEvent event = new VFileContentChangeEvent(requestor, file, file.getModificationStamp(), modStamp, false);<NEW_LINE>Li...
getPublisher().after(events);
705,140
public void onStartElement(StateMachine stateMachine, XMLStreamReader xmlStreamReader) throws DatabusException, XMLStreamException {<NEW_LINE>_currentStateType = STATETYPE.STARTELEMENT;<NEW_LINE>for (int i = 0; i < xmlStreamReader.getAttributeCount(); i++) {<NEW_LINE>if (xmlStreamReader.getAttributeName(i).getLocalPart...
(xmlStreamReader.getAttributeValue(i));
202,682
private void initProject() {<NEW_LINE>AuxiliaryProperties aux = project.getLookup().lookup(AuxiliaryProperties.class);<NEW_LINE>GradleBaseProject gbp = GradleBaseProject.get(project);<NEW_LINE>projectLicense = <MASK><NEW_LINE>String license = aux.get(PROP_LICENSE, true);<NEW_LINE>if (license != null) {<NEW_LINE>String ...
resolveLicense(gbp.getLicense());
1,201,913
public static byte[] convert(String digits) {<NEW_LINE>int length = digits.length();<NEW_LINE>if (length % 2 != 0) {<NEW_LINE>throw new IllegalArgumentException(rb.getString(LogFacade.ODD_NUMBER_HEX_DIGITS_EXCEPTION));<NEW_LINE>}<NEW_LINE>int bLength = length / 2;<NEW_LINE>byte[] bytes = new byte[bLength];<NEW_LINE>for...
.getString(LogFacade.BAD_HEX_DIGIT_EXCEPTION));
669,916
protected void process(GrayU8 input, GrayU8 output, int x0, int y0, int x1, int y1, byte a, byte b) {<NEW_LINE>BoofConcurrency.loopBlocks(y0, y1, (block0, block1) -> {<NEW_LINE>// handle the inner portion first<NEW_LINE>ApplyHelper h = helpers.pop();<NEW_LINE>for (int y = block0; y < block1; y++) {<NEW_LINE>int indexIn...
.otsu.threshold ? a : b;
1,211,369
private static void emitCode(PTXCompilationRequest r, LIRGenerationResult lirGenRes, boolean isParallel) {<NEW_LINE>try (DebugCloseable a = EmitCode.start(getDebugContext())) {<NEW_LINE>FrameMap frameMap = lirGenRes.getFrameMap();<NEW_LINE>final PTXCompilationResultBuilder crb = r.backend.newCompilationResultBuilder(li...
BASIC_LEVEL, r.compilationResult, "After code generation");
1,819,583
private void selectApplicationProtocol() throws SSLException {<NEW_LINE>ApplicationProtocolConfig.SelectedListenerFailureBehavior behavior = apn.selectedListenerFailureBehavior();<NEW_LINE>List<String> protocols = apn.protocols();<NEW_LINE>String applicationProtocol;<NEW_LINE>switch(apn.protocol()) {<NEW_LINE>case NONE...
applicationProtocol = SSL.getAlpnSelected(ssl);
930,409
private void pushAddServerPopupAndStartEmitter() {<NEW_LINE>AddServerPopup addServerPopup = nuiManager.pushScreen(AddServerPopup.ASSET_URI, AddServerPopup.class);<NEW_LINE>addServerPopup.removeTip();<NEW_LINE>ServerInfo serverInfo;<NEW_LINE>TelemetryConfig telemetryConfig = config.getTelemetryConfig();<NEW_LINE>String ...
serverInfo.setOwner(TelemetryEmitter.DEFAULT_COLLECTOR_OWNER);
1,219,188
public void update(Integer extendId, List<SysExtendField> entitys) {<NEW_LINE>if (CommonUtils.notEmpty(extendId)) {<NEW_LINE>Set<String> codeList = new HashSet<>();<NEW_LINE>if (CommonUtils.notEmpty(entitys)) {<NEW_LINE>for (SysExtendField entity : entitys) {<NEW_LINE>if (0 != entity.getId().getExtendId()) {<NEW_LINE>i...
getId(), entity, ignoreProperties);
1,011,551
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {<NEW_LINE>com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields());<NEW_LINE>while (tru...
addDisableStoreResponses(subBuilder.buildPartial());
739,196
public void actionPerformed(ActionEvent e) {<NEW_LINE>String lastPresetName = NbPreferences.forModule(LayoutPanel.class).get("LayoutPanel.lastPresetName", "");<NEW_LINE>NotifyDescriptor.InputLine question = new NotifyDescriptor.InputLine(NbBundle.getMessage(LayoutPanel.class, "LayoutPanel.presetsButton.savePreset.input...
.getName(), input));
1,761,185
public synchronized void notify(List<URL> urls) {<NEW_LINE>if (isDestroyed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, List<URL>> categoryUrls = urls.stream().filter(Objects::nonNull).filter(this::isValidCategory).filter(this::isNotCompatibleFor26x).collect(Collectors.groupingBy(this::judgeCategory));<NEW_LIN...
).getExtensionLoader(AddressListener.class);
237,307
private int createComplementDataCommand(Date scheduleDate) {<NEW_LINE>Command command = new Command();<NEW_LINE>command.setScheduleTime(scheduleDate);<NEW_LINE>command.setCommandType(CommandType.COMPLEMENT_DATA);<NEW_LINE>command.setProcessDefinitionCode(processInstance.getProcessDefinitionCode());<NEW_LINE>Map<String,...
.setUpdateTime(new Date());