idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
870,295
public void testClientLtpaHander_ClientNoTokenWithSSLDefault(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("hostname");<NEW_LINE>String serverPort = param.get("secport");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Executors.de...
c.property("com.ibm.ws.jaxrs.client.ltpa.handler", "true");
1,246,525
TreePath findSubPath(String subPath, String indexes, String delimiter) {<NEW_LINE>String[] indexStr = tree().parseString(indexes, delimiter);<NEW_LINE>int[] indexInt = new int[indexStr.length];<NEW_LINE>for (int i = 0; i < indexStr.length; i++) {<NEW_LINE>indexInt[i] = Integer<MASK><NEW_LINE>}<NEW_LINE>TreePath foundTr...
.parseInt(indexStr[i]);
195,120
private double sample3d(int sectionX, int sectionY, int sectionZ, double localX, double localY, double localZ, double fadeLocalX, double fadeLocalY, double fadeLocalZ) {<NEW_LINE>int i = this.getGradient(sectionX) + sectionY;<NEW_LINE>int j = this.getGradient(i) + sectionZ;<NEW_LINE>int k = this.getGradient(i + 1) + se...
localX, localY - 1.0D, localZ);
1,677,650
public FluidPositionInfo interpolateB(long tick, float partialTicks) {<NEW_LINE>if (!positionB.moves) {<NEW_LINE>return positionB;<NEW_LINE>}<NEW_LINE>if (tick < positionB.startMoving) {<NEW_LINE>return positionB;<NEW_LINE>}<NEW_LINE>float position = 0;<NEW_LINE>if (tick >= positionB.endMoving) {<NEW_LINE>position = 0;...
endMoving - tick - partialTicks) / tickDiff;
743,386
public static List<MXFMetadata> readPartitionMeta(SeekableByteChannel ff, MXFPartition header) throws IOException {<NEW_LINE>KLV kl;<NEW_LINE>long basePos = ff.position();<NEW_LINE>List<MXFMetadata> local = new ArrayList<MXFMetadata>();<NEW_LINE>ByteBuffer metaBuffer = NIOUtils.fetchFromChannel(ff, (int) Math.max(0, he...
.getEssenceFilePos() - basePos));
378,232
private CompletableFuture<Pair<List<String>, String>> readAll(int limit, String continuationToken, String tableName, OperationContext context) {<NEW_LINE>List<String> taken = new ArrayList<>();<NEW_LINE>AtomicReference<String> token = new AtomicReference<>(continuationToken);<NEW_LINE><MASK><NEW_LINE>return Futures.exc...
AtomicBoolean canContinue = new AtomicBoolean(true);
1,594,420
protected String callHostPluginThroughMaster(final Connection conn, final String plugin, final String cmd, final String... params) {<NEW_LINE>final Map<String, String> args = new HashMap<String, String>();<NEW_LINE>try {<NEW_LINE>final Map<Pool, Pool.Record> poolRecs = Pool.getAllRecords(conn);<NEW_LINE>if (poolRecs.si...
().next().master;
1,133,129
public Serialized serialize(final QuarkusPersistenceUnitDefinition obj) {<NEW_LINE>final Serialized s = new Serialized();<NEW_LINE>// First, fields from LightPersistenceXmlDescriptor:<NEW_LINE>s.setPuName(obj.actualHibernateDescriptor.getName());<NEW_LINE>s.setPuProviderClassName(obj.actualHibernateDescriptor.getProvid...
setMultitenancyStrategy(obj.getMultitenancyStrategy());
1,778,298
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final IOperandTreeNode registerOperand2 = i...
= (registerOperand1.getValue());
1,828,442
private void refreshSnapshotToAMIs(String region) {<NEW_LINE>snapshotToAMIs.clear();<NEW_LINE>LOGGER.info(String.format("Getting mapping from snapshot to AMIs in region %s", region));<NEW_LINE>String url = eddaClient.getBaseUrl(region) + "/aws/images/" + ";_expand:(imageId,blockDeviceMappings:(ebs:(snapshotId)))";<NEW_...
blockMappings = elem.get("blockDeviceMappings");
72,601
public Object evaluateList(Object list1Obj, Object list2Obj) {<NEW_LINE>int len1 = list1Inspector.getListLength(list1Obj);<NEW_LINE>int len2 = list2Inspector.getListLength(list2Obj);<NEW_LINE>if (len1 != len2) {<NEW_LINE>LOG.warn("vector lengths do not match " + list1Obj + " :: " + list2Obj);<NEW_LINE>return null;<NEW_...
list1Inspector.getListElement(list1Obj, i);
1,786,979
void replayNormal(ReplaySubscription<T> rs) {<NEW_LINE>final Subscriber<? super T> a = rs.actual();<NEW_LINE>int missed = 1;<NEW_LINE>for (; ; ) {<NEW_LINE>long r = rs.requested();<NEW_LINE>long e = 0L;<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Node<T> node = (Node<T>) rs.node();<NEW_LINE>if (node == null) {<NEW...
missed = rs.leave(missed);
1,702,093
public void connect() throws IOException {<NEW_LINE>try {<NEW_LINE>VirtualConnectionFactory factory = getOutboundVCFactory();<NEW_LINE>VirtualConnection vc;<NEW_LINE>synchronized (SipOutboundConnLink.class) {<NEW_LINE>s_current = this;<NEW_LINE>vc = factory.createConnection();<NEW_LINE>// now s_current is back to null<...
outboundConnection.connectAsynch(connectRequestContext, this);
1,049,425
private void extractResults(Results results, Statement statement, String sql, boolean hasResults) throws SQLException {<NEW_LINE>// retrieve all results to ensure all errors are detected<NEW_LINE>int updateCount = -1;<NEW_LINE>while (hasResults || (updateCount = statement.getUpdateCount()) != -1) {<NEW_LINE>List<String...
(resultSet.getString(i));
156,072
public static void renderSelections(ISelection[] selections) {<NEW_LINE>float opacity = settings.selectionOpacity.value;<NEW_LINE>boolean ignoreDepth = settings.renderSelectionIgnoreDepth.value;<NEW_LINE><MASK><NEW_LINE>if (!settings.renderSelection.value) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>IRenderer.startLines(set...
float lineWidth = settings.selectionLineWidth.value;
300,880
public SdkFileEntry[] generateSourceFiles(ServiceModel serviceModel) throws Exception {<NEW_LINE>// for c++, the way serialization works, we want to remove all required fields so we can do a value has been set<NEW_LINE>// check on all fields.<NEW_LINE>serviceModel.getShapes().values().stream().filter(hasMembers -> hasM...
.add(generateErrorMarshallerHeaderFile(serviceModel));
655,759
protected String doIt() throws Exception {<NEW_LINE>log.info("C_PeriodControl_ID=" + p_C_PeriodControl_ID);<NEW_LINE>MPeriodControl pc = new MPeriodControl(getCtx(), p_C_PeriodControl_ID, get_TrxName());<NEW_LINE>if (pc.get_ID() == 0)<NEW_LINE>throw new AdempiereUserError("@NotFound@ @C_PeriodControl_ID@=" + p_C_Perio...
).reset("C_PeriodControl", 0);
1,704,041
private Task<ImageWatcher> defaultContainerRestartTask() {<NEW_LINE>return watcher -> {<NEW_LINE>// Stop old one<NEW_LINE><MASK><NEW_LINE>PortMapping mappedPorts = runService.createPortMapping(imageConfig.getRunConfiguration(), watcher.getWatchContext().getMojoParameters().getProject().getProperties());<NEW_LINE>String...
ImageConfiguration imageConfig = watcher.getImageConfiguration();
289,485
private List<RemoteRepository> resolveCurrentProjectRepos(List<RemoteRepository> repos) throws BootstrapMavenException {<NEW_LINE>final Artifact projectArtifact;<NEW_LINE>if (currentProject == null) {<NEW_LINE>final Model model = loadCurrentProjectModel();<NEW_LINE>if (model == null) {<NEW_LINE>return repos;<NEW_LINE>}...
"pom", currentProject.getVersion());
11,108
public void onSpeechButtonClicked(View v) {<NEW_LINE>// 'hello' is the ID of your text view<NEW_LINE>TextView txt = (TextView) this.findViewById(R.id.hello);<NEW_LINE>try {<NEW_LINE>Future<IntentRecognitionResult> task = reco.recognizeOnceAsync();<NEW_LINE>// Note: this will block the UI thread, so eventually, you want...
res = res.concat("CANCELED: Did you update the subscription info?");
992,383
public void drag(Collection<Direction> resizeDirection, int diffX, int diffY, Point mousePosBeforeDrag, boolean isShiftKeyDown, boolean firstDrag, StickableMap stickables, boolean undoable) {<NEW_LINE>Rectangle oldRect = getRectangle();<NEW_LINE>StickingPolygon stickingPolygonBeforeLocationChange = generateStickingBord...
= diffY < 0 && diffY < diffX;
44,261
public static void compress(MapBasedCharNgramLanguageModel model, File output) throws IOException {<NEW_LINE>Mphf[] mphfs = new MultiLevelMphf[model.getOrder() + 1];<NEW_LINE>DoubleLookup[] lookups = new DoubleLookup[model.getOrder() + 1];<NEW_LINE>try (DataOutputStream dos = new DataOutputStream(new BufferedOutputStre...
(key, -1) & FINGER_PRINT_MASK;
1,046,274
protected void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception {<NEW_LINE>if (args.length < 1 || args[0].length() < 2) {<NEW_LINE>throw new NotEnoughArgumentsException(tl("mobsAvailable", StringUtil.joinList(Mob.getMobList())));<NEW_LINE>}<NEW_LINE>final Locati...
spawnerBlockProvider.setMaxSpawnDelay(spawner, delay);
1,333,608
final GetDevicePoolCompatibilityResult executeGetDevicePoolCompatibility(GetDevicePoolCompatibilityRequest getDevicePoolCompatibilityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDevicePoolCompatibilityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
endClientExecution(awsRequestMetrics, request, response);
1,078,643
public static CodeExpression containerDelegateCodeExpression(RADVisualContainer metaContainer, CodeStructure codeStructure) {<NEW_LINE>CodeExpression containerCodeExpression = metaContainer.getCodeExpression();<NEW_LINE>CodeExpression containerDelegateCodeExpression;<NEW_LINE>java.lang.reflect.Method delegateGetter = m...
it = CodeStructure.getDefinedExpressionsIterator(containerCodeExpression);
1,781,189
private Mono<Void> mapRoute(DomainsOracle domains, String appName, CFRoute route, boolean randomRoute) {<NEW_LINE>// Let the client validate if any of these combinations are correct.<NEW_LINE>// However, only set these values only if they are present as not doing so causes NPE<NEW_LINE>Mono<MapRouteRequest.Builder> _bu...
().map(mapRouteReq));
1,344
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>// noinspection ConstantConditions<NEW_LINE>mRecyclerView = getView().findViewById(R.id.recycler_view);<NEW_LINE>mLayoutManager = new StaggeredGridLayoutManager(2, Stagge...
final GeneralItemAnimator animator = new DraggableItemAnimator();
621,834
protected void masterOperation(Task task, GetShardSnapshotRequest request, ClusterState state, ActionListener<GetShardSnapshotResponse> listener) throws Exception {<NEW_LINE>final Set<String> repositories = getRequestedRepositories(request, state);<NEW_LINE>final ShardId shardId = request.getShardId();<NEW_LINE>if (rep...
), (RepositoryException) err));
1,370,194
public void updateTrackedQueryKeys(long trackedQueryId, Set<ChildKey> added, Set<ChildKey> removed) {<NEW_LINE>verifyInsideTransaction();<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>String whereClause = TRACKED_KEYS_ID_COLUMN_NAME + " = ? AND " + TRACKED_KEYS_KEY_COLUMN_NAME + " = ?";<NEW_LINE>String tra...
values.put(TRACKED_KEYS_ID_COLUMN_NAME, trackedQueryId);
1,273,046
final UpdateStudioResult executeUpdateStudio(UpdateStudioRequest updateStudioRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateStudioRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<UpdateStudioRequest> ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,113,975
public RelWriter explainTermsForDisplay(RelWriter pw) {<NEW_LINE>pw.item(RelDrdsWriter.REL_NAME, "MysqlSort");<NEW_LINE>assert fieldExps.size() == collation.getFieldCollations().size();<NEW_LINE>if (pw.nest()) {<NEW_LINE>pw.item("collation", collation);<NEW_LINE>} else {<NEW_LINE>List<String> sortList = new ArrayList<S...
>(fieldExps.size());
1,813,217
public static Actions forNode(HeapViewerNode node, Collection<HeapViewerNodeAction.Provider> actionProviders, HeapContext context, HeapViewerActions actions, HeapViewerNodeAction... additionalActions) {<NEW_LINE>HeapViewerNode loop = HeapViewerNode.getValue(node, DataType.LOOP, context.getFragment().getHeap());<NEW_LIN...
Collections.addAll(actionsList, providerActions);
1,530,000
public static void DumpCharAndRangeMoves(CodeGenerator codeGenerator) {<NEW_LINE>boolean[] dumped = new boolean[Math.max(generatedStates, dummyStateIndex + 1)];<NEW_LINE>Enumeration e = compositeStateTable.keys();<NEW_LINE>int i;<NEW_LINE>DumpHeadForCase(codeGenerator, -1);<NEW_LINE>while (e.hasMoreElements()) DumpComp...
codeGenerator, -1, dumped));
955,197
public static Map<String, MetricValue> allMetrics() {<NEW_LINE>Map<String, MetricValue> metricsMap = new HashMap<>();<NEW_LINE>for (Map.Entry<String, com.codahale.metrics.Metric> entry : METRIC_REGISTRY.getMetrics().entrySet()) {<NEW_LINE>MetricValue.Builder valueBuilder = MetricValue.newBuilder();<NEW_LINE>com.codahal...
getClass().getName());
1,184,815
public static void registerCustom() {<NEW_LINE>registerCustomComponent("Table", com.codename1.<MASK><NEW_LINE>registerCustomComponent("MediaPlayer", com.codename1.components.MediaPlayer.class);<NEW_LINE>registerCustomComponent("ContainerList", com.codename1.ui.list.ContainerList.class);<NEW_LINE>registerCustomComponent...
ui.table.Table.class);
209,816
private void printUsage() {<NEW_LINE>System.out.println("J9 NLS Tool 1.2");<NEW_LINE>System.out.println("Usage: J9NLS [options]\n");<NEW_LINE>System.out.println("[options]");<NEW_LINE>System.out.println(" -help prints this message");<NEW_LINE>System.out.println(" -out xxx generates outp...
" -out " + propertiesFileName + "-html" + htmlFileName);
1,291,769
protected void initCoreTypes() {<NEW_LINE>if (JSweetDefTranslatorConfig.isJDKReplacementMode()) {<NEW_LINE>registerType("java.util.function.Function", TypeDeclaration.createExternalTypeDeclaration("Function"));<NEW_LINE>registerType("java.util.function.BiFunction", TypeDeclaration.createExternalTypeDeclaration("BiFunct...
, TypeDeclaration.createExternalTypeDeclaration("TriFunction"));
953,421
private boolean processGlobalRequestsOptimized(@Nonnull MultiMap<Set<IdIndexEntry>, RequestWithProcessor> singles, @Nonnull ProgressIndicator progress, @Nonnull final Map<RequestWithProcessor, Processor<PsiElement>> localProcessors) {<NEW_LINE>if (singles.isEmpty()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (singl...
(PsiBundle.message("psi.scanning.files.progress"));
1,598,748
public boolean instantiateTo(int value, ICause cause) throws ContradictionException {<NEW_LINE>// BEWARE: THIS CODE SHOULD NOT BE MOVED TO THE DOMAIN TO NOT DECREASE PERFORMANCES!<NEW_LINE>assert cause != null;<NEW_LINE>if ((mValue < kUNDEF && mValue != value) || (value < kFALSE || value > kTRUE)) {<NEW_LINE>model.getS...
this.notifyPropagators(e, cause);
323,732
public boolean writeToWindows(String filename, int floor) throws IOException {<NEW_LINE>File file = new File(DataConnector.DATA_PATH + filename + "_" + dampingParameter + "_" + floor + ".wtxt");<NEW_LINE>if (file.isDirectory()) {<NEW_LINE><MASK><NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (file.exists()) {<NEW_LINE>S...
System.err.println("[Error]: This is a directory");
475,907
private void updatePerSubscriptionNextNotificationDate(final UUID subscriptionId, final LocalDate nextBillingCycleDate, final List<InvoiceItem> newProposedItems, final BillingMode billingMode, final Map<UUID, SubscriptionFutureNotificationDates> perSubscriptionFutureNotificationDates) {<NEW_LINE>LocalDate nextNotificat...
subscriptionFutureNotificationDates = perSubscriptionFutureNotificationDates.get(subscriptionId);
799,261
private void markExpiredUsingHUContext(@NonNull final HuId huId, @NonNull final IHUContext huContext) {<NEW_LINE>try {<NEW_LINE>countChecked++;<NEW_LINE>final IAttributeStorage huAttributes = getHUAttributes(huId, huContext);<NEW_LINE>final String expiredOld = huAttributes.getValueAsString(HUAttributeConstants.ATTR_Exp...
huId, ex.getLocalizedMessage());
787,678
public TopicConfig createTopicOfTranCheckMaxTime(final int clientDefaultTopicQueueNums, final int perm) {<NEW_LINE>TopicConfig topicConfig = this.topicConfigTable.get(TopicValidator.RMQ_SYS_TRANS_CHECK_MAX_TIME_TOPIC);<NEW_LINE>if (topicConfig != null)<NEW_LINE>return topicConfig;<NEW_LINE>boolean createNew = false;<NE...
log.error("create TRANS_CHECK_MAX_TIME_TOPIC exception", e);
514,749
final DeleteTransitGatewayPrefixListReferenceResult executeDeleteTransitGatewayPrefixListReference(DeleteTransitGatewayPrefixListReferenceRequest deleteTransitGatewayPrefixListReferenceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTransitGatewayPrefixListReferenceRequest);<NEW_LIN...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,393,175
// Rewrite IconCrack items to new format :)<NEW_LINE>private static ParticleDataHandler iconcrackHandler() {<NEW_LINE>return new ParticleDataHandler() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Particle handler(Particle particle, Integer[] data) {<NEW_LINE>Item item;<NEW_LINE>if (data.length == 1)<NEW_LINE>item = n...
, (short) 0, null);
1,041,838
final ListAssignmentsForHITResult executeListAssignmentsForHIT(ListAssignmentsForHITRequest listAssignmentsForHITRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAssignmentsForHITRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,368,203
public void created(CLabelPadding feedback) {<NEW_LINE>feedback.setText(MessageText.getString("statusbar.feedback"));<NEW_LINE>Listener feedback_listener = new Listener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void handleEvent(Event e) {<NEW_LINE>String url = "feedback.start?" + Utils.getWidgetBGColorURLParam()...
UrlUtils.encode(Constants.JAVA_VERSION);
257,330
public void execute(DelegateExecution execution) {<NEW_LINE>try {<NEW_LINE>boolean isSkipExpressionEnabled = SkipExpressionUtil.isSkipExpressionEnabled(execution, skipExpression);<NEW_LINE>if (!isSkipExpressionEnabled || (isSkipExpressionEnabled && !SkipExpressionUtil.shouldSkipFlowElement(execution, skipExpression))) ...
(ActivityBehavior) delegate, execution));
488,280
final UpdateModelResult executeUpdateModel(UpdateModelRequest updateModelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateModelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
(super.beforeMarshalling(updateModelRequest));
779,020
private Hover sliceHover(CpuTrack.Data data, Fonts.TextMeasurer m, double x, int mods) {<NEW_LINE>mouseXpos = x;<NEW_LINE>long t = state.pxToTime(x);<NEW_LINE>for (int i = 0; i < data.starts.length; i++) {<NEW_LINE>if (data.starts[i] <= t && t <= data.ends[i]) {<NEW_LINE>hoveredThread = ThreadInfo.getDisplay(state, dat...
display.getSystemCursor(SWT.CURSOR_HAND);
528,831
private static Object v1(final Environment environment, final String prefix, final boolean handlePlaceholder) {<NEW_LINE>Class<?> resolverClass = Class.forName("org.springframework.boot.bind.RelaxedPropertyResolver");<NEW_LINE>Constructor<?> resolverConstructor = resolverClass.getDeclaredConstructor(PropertyResolver.cl...
getSubPropertiesMethod.invoke(resolverObject, prefixParam);
1,403,879
public void addTextRect(ObjectInfo[] objectstatus) {<NEW_LINE>point_lines_list.clear();<NEW_LINE>labels.clear();<NEW_LINE>if (objectstatus != null && objectstatus.length != 0) {<NEW_LINE>for (int i = 0; i < objectstatus.length; i++) {<NEW_LINE>float[] point_lines = new float[4 * 4];<NEW_LINE>point_lines[0] = objectstat...
.key_points[2][0];
363,973
public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case MENU_SEARCH:<NEW_LINE>mBottomBarControls.showSearch(true);<NEW_LINE>break;<NEW_LINE>case MENU_PLAYBACK:<NEW_LINE>openPlaybackActivity();<NEW_LINE>break;<NEW_LINE>case MENU_GO_HOME:<NEW_LINE>mPagerAdapter.setLimiter(F...
] itemIds = adapter.getSortEntries();
389,922
private void liftOverToTargetBuild(final Build37ExtendedIlluminaManifestRecord build37ExtendedIlluminaManifestRecord, final IlluminaManifestRecord illuminaManifestRecord) {<NEW_LINE>final String supportedBuildNumber = illuminaManifestRecord.getMajorGenomeBuild();<NEW_LINE>final File chainFileToTargetBuild = chainFilesM...
build37ExtendedIlluminaManifestRecord.b37Pos, build37ExtendedIlluminaManifestRecord.b37Pos);
1,651,826
public void change(Database database, DatabaseSession databaseSession) throws NotImplementedException, BimserverDatabaseException {<NEW_LINE>EClass eClass = eReference.getEContainingClass();<NEW_LINE>KeyValueStore keyValueStore = database.getKeyValueStore();<NEW_LINE>for (EClass subClass : schema.getSubClasses(eClass))...
Math.ceil(newIndex / 8.0);
1,846,768
@NoCache<NEW_LINE>@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>public Response addExecutionToFlow(@PathParam("flowAlias") String flowAlias, Map<String, String> data) {<NEW_LINE>auth.realm().requireManageRealm();<NEW_LINE>AuthenticationFlowModel parentFlow = realm.getFlowByAlias(flowAlias);<NEW_LINE>if (parentFlow == ...
build()).build();
870,973
private Map<String, String> extractAllAttributes(JsonNode productDetailsJson) {<NEW_LINE>Map<String, String> productAttrs = new HashMap<>();<NEW_LINE>productAttrs.put("sku", productDetailsJson.get("sku").textValue());<NEW_LINE>productAttrs.put("productFamily", productDetailsJson.get("productFamily") != null ? productDe...
(productAttrs.get(key));
1,005,545
public DataType toDataType() throws DuplicateNameException, IOException {<NEW_LINE>StructureDataType struct = new StructureDataType(NAME + "_" + cls_def_cnt + <MASK><NEW_LINE>struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);<NEW_LINE>struct.add(DWORD, "sel_ref_cnt", null);<NEW_LINE>struct.add(DWORD, "refs", ...
"_" + cat_def_cnt + "_", 0);
64,278
public Path call() throws Exception {<NEW_LINE>final Path chunkPath = (chunk == 0) ? downloadTo : Paths.get(downloadTo + "_" + chunk + "_" + retryNum);<NEW_LINE>chunkPath.toFile().deleteOnExit();<NEW_LINE>final long startTime = System.currentTimeMillis();<NEW_LINE>final long byteRangeStart = chunk * chunkSize;<NEW_LINE...
, JavaUtils.duration(startTime));
1,306,016
public FormFrame startForm(final int AD_Form_ID) {<NEW_LINE>// metas: tsa: begin: US831: Open one window per session per user (2010101810000044)<NEW_LINE>final Properties ctx = Env.getCtx();<NEW_LINE>final I_AD_Form form = InterfaceWrapperHelper.create(ctx, AD_Form_ID, I_AD_Form.class, ITrx.TRXNAME_None);<NEW_LINE>if (...
ffExisting = windowManager.findForm(AD_Form_ID);
1,102,525
public GoPluginBundleDescriptor unloadPlugin(GoPluginBundleDescriptor bundleDescriptor) {<NEW_LINE>final GoPluginDescriptor firstPluginDescriptor = bundleDescriptor.descriptors().get(0);<NEW_LINE>final GoPluginDescriptor pluginInBundle = getPluginByIdOrFileName(firstPluginDescriptor.id(), firstPluginDescriptor.fileName...
"Could not find existing plugin with ID: " + pluginDescriptor.id());
1,106,537
private void parseSubTitles(final Element e, final Metadata md) {<NEW_LINE>final List<Element> subTitleElements = e.getChildren("subTitle", getNS());<NEW_LINE>final SubTitle[] subtitles = new SubTitle[subTitleElements.size()];<NEW_LINE>for (int i = 0; i < subTitleElements.size(); i++) {<NEW_LINE>subtitles[i] = new SubT...
i).getAttributeValue("type"));
1,721,612
private void parseRsa(String[] cliArgs) {<NEW_LINE>this.algorithm = Algorithm.rsa;<NEW_LINE>// /path/to/pkcs12keystore keystorePassphrase "<NEW_LINE>// + "publicCertAlias secretToEncrypt<NEW_LINE>if (cliArgs.length < 4) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (cliArgs.length == 4) {<NEW_LINE>secret = "";<NEW_LINE>} el...
throw new ValidationException("RSA encryption must have at least three parameters: keystorePath, keystorePassword and alias of " + "certificate for public key");
23,704
private void updateState(List components) {<NEW_LINE>if ((components == null) || (components.size() < 1)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FormModel formModel = ((RADComponent) components.get(0)).getFormModel();<NEW_LINE>LayoutModel layoutModel = formModel.getLayoutModel();<NEW_LINE>FormDesigner formDesigner = Fo...
(RADComponent) iter.next();
1,532,789
public void track(T image) {<NEW_LINE>// configure the different regions based on size<NEW_LINE>region0.set(region);<NEW_LINE>region1.set(region);<NEW_LINE>region2.set(region);<NEW_LINE>region0.width *= 1 - scaleChange;<NEW_LINE>region0.height *= 1 - scaleChange;<NEW_LINE>region2.width *= 1 + scaleChange;<NEW_LINE>regi...
keyHistogram, calcHistogram.getHistogram());
486,373
public int loadLibrary(String soName, int loadFlags, StrictMode.ThreadPolicy threadPolicy) throws IOException {<NEW_LINE>if (SoLoader.sSoFileLoader == null) {<NEW_LINE>throw new IllegalStateException("SoLoader.init() not yet called");<NEW_LINE>}<NEW_LINE>if (!mLibsInApk.contains(soName) || TextUtils.isEmpty(mDirectApkL...
TAG, soName + " found on DirectAPKSoSource: " + loadFlags);
1,809,752
protected byte[] engineWrap(Key key) throws IllegalBlockSizeException, InvalidKeyException {<NEW_LINE>byte[] encoded = key.getEncoded();<NEW_LINE>if (encoded == null) {<NEW_LINE>throw new InvalidKeyException("Cannot wrap key, null encoding.");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>SecretWithEncapsulation secEnc = kemGen.g...
, 0, keyToWrap.length));
1,474,200
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>final SiteModel site = (SiteModel) getArguments(<MASK><NEW_LINE>AlertDialog.Builder builder = new MaterialAlertDialogBuilder(getActivity());<NEW_LINE>builder.setTitle(R.string.role);<NEW_LINE>builder.setNegativeButton(R.string.cancel, null);<NEW_LINE>bu...
).getSerializable(WordPress.SITE);
1,673,822
public static Type createType(Class<?> clazz, List<AnnotationElement> dynamicAnnotations, List<ValueDescriptor> dynamicFields) {<NEW_LINE>if (Thread.class == clazz) {<NEW_LINE>return Type.THREAD;<NEW_LINE>}<NEW_LINE>if (Class.class.isAssignableFrom(clazz)) {<NEW_LINE>return Type.CLASS;<NEW_LINE>}<NEW_LINE>if (String.cl...
defineType(clazz, superType, eventType);
1,854,472
public void marshall(StartDocumentClassificationJobRequest startDocumentClassificationJobRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (startDocumentClassificationJobRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>p...
startDocumentClassificationJobRequest.getJobName(), JOBNAME_BINDING);
929,694
public static List<RegressionExecution> executions() {<NEW_LINE>List<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new EPLOtherNullPrimitive());<NEW_LINE>execs.add(new EPLOtherChainedInstance());<NEW_LINE>execs.add(new EPLOtherChainedStatic());<NEW_LINE>execs.add(new EPLOtherEscape());<NEW_LINE>exe...
.add(new EPLOtherPrimitiveConversion());
1,696,431
private Registration register(Path key, Registration value) {<NEW_LINE>if (value == null) {<NEW_LINE>LOG.debug("Starting to watch path {}", key);<NEW_LINE>try {<NEW_LINE>WatchEvent.Modifier[] mods;<NEW_LINE>try {<NEW_LINE>mods = new WatchEvent.Modifier[] { com.sun.nio.file.SensitivityWatchEventModifier.HIGH };<NEW_LINE...
= value.count.incrementAndGet();
722,230
final ListEntitiesDetectionV2JobsResult executeListEntitiesDetectionV2Jobs(ListEntitiesDetectionV2JobsRequest listEntitiesDetectionV2JobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEntitiesDetectionV2JobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.SERVICE_ID, "ComprehendMedical");
316,844
public void layoutContainer(Container parent) {<NEW_LINE>int maxWidth = 0;<NEW_LINE>for (JLabel label : labelMap.values()) {<NEW_LINE>int labelPrefWidth = label.getPreferredSize().width;<NEW_LINE>if (labelPrefWidth > maxWidth) {<NEW_LINE>maxWidth = labelPrefWidth;<NEW_LINE>}<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>int curY...
Insets insets = parent.getInsets();
1,289,556
public RejectedLogEventsInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RejectedLogEventsInfo rejectedLogEventsInfo = new RejectedLogEventsInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
class).unmarshall(context));
1,556,052
private void payer(Payer payer) throws IOException {<NEW_LINE>// Id,NAME,ADDRESS,CITY,STATE_HEADQUARTERED,ZIP,PHONE,AMOUNT_COVERED,AMOUNT_UNCOVERED,REVENUE,<NEW_LINE>// COVERED_ENCOUNTERS,UNCOVERED_ENCOUNTERS,COVERED_MEDICATIONS,UNCOVERED_MEDICATIONS,<NEW_LINE>// COVERED_PROCEDURES,UNCOVERED_PROCEDURES,COVERED_IMMUNIZA...
()).append(",");
963,819
final AssociateRouteTableResult executeAssociateRouteTable(AssociateRouteTableRequest associateRouteTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateRouteTableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.SERVICE_ID, "EC2");
1,136,986
/* Entry point for resolve type validators */<NEW_LINE>private ParameterTypeValidator resolveTypeValidator(Parameter parameter) {<NEW_LINE>ParameterTypeValidator candidate = resolveAnyOfOneOfTypeValidator(parameter);<NEW_LINE>if (candidate != null)<NEW_LINE>return candidate;<NEW_LINE>else if (OpenApi3Utils.isParameterA...
objectTypeValidator, parameter.getSchema());
701,258
private void checkForLinkHeader(final HttpUrl url) {<NEW_LINE>Log.d(Config.LOGTAG, "checking for link header on " + url);<NEW_LINE>this.call = HttpConnectionManager.OK_HTTP_CLIENT.newCall(new Request.Builder().url(url).head().build());<NEW_LINE>this.call.enqueue(new Callback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>pu...
linkHeader = response.header("Link");
1,323,367
private IUserRolePermissions retrieveUserRolePermissions(@NonNull final UserRolePermissionsKey key) {<NEW_LINE>final RoleId adRoleId = key.getRoleId();<NEW_LINE>final <MASK><NEW_LINE>final ClientId adClientId = key.getClientId();<NEW_LINE>final LocalDate date = key.getDate();<NEW_LINE>try {<NEW_LINE>final IRolesTreeNod...
UserId adUserId = key.getUserId();
214,550
public void init(final ExtensionConfig config, WebSocketComponents components) {<NEW_LINE>configRequested = new ExtensionConfig(config);<NEW_LINE>Map<String, String> <MASK><NEW_LINE>for (String key : config.getParameterKeys()) {<NEW_LINE>key = key.trim();<NEW_LINE>switch(key) {<NEW_LINE>case "client_max_window_bits":<N...
paramsNegotiated = new HashMap<>();
1,109,734
private void showCert(byte[] data) throws CryptoException {<NEW_LINE>X509Certificate[] certs = null;<NEW_LINE>try {<NEW_LINE>certs = X509CertUtil.loadCertificates(data);<NEW_LINE>if (certs.length == 0) {<NEW_LINE>JOptionPane.showMessageDialog(frame, res.getString("ExamineClipboardAction.NoCertsFound.message"), res.getS...
("ExamineClipboardAction.OpenCertificate.Title"), JOptionPane.WARNING_MESSAGE);
125,124
protected void do_proc_termination(EObject exit_reason) throws Pausable {<NEW_LINE>// Precondition: pstate is DONE, exit-action mutator count is zero.<NEW_LINE>this.exit_reason = exit_reason;<NEW_LINE>H me = self_handle();<NEW_LINE>EAtom name = me.name;<NEW_LINE>for (EHandle handle : linksref.get()) {<NEW_LINE>try {<NE...
Level.FINE, "details: ", e);
1,790,215
final UpdateObjectAttributesResult executeUpdateObjectAttributes(UpdateObjectAttributesRequest updateObjectAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateObjectAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
invoke(request, responseHandler, executionContext);
1,650,562
private void addFileToConfigFileManager(final Set<ConfigFileGroup> selectedGroups, final File file) throws IOException {<NEW_LINE>final ConfigFileManager manager = getConfigFileManager(Templates.getProject(wizard));<NEW_LINE>try {<NEW_LINE>manager.mutex().writeAccess(new ExceptionAction<Void>() {<NEW_LINE><NEW_LINE>pub...
manager.putConfigFilesAndGroups(newFiles, newGroups);
1,548,766
void checkVersion(Project project, String tool, Pattern versionRegex, int... minVersion) {<NEW_LINE>ByteArrayOutputStream pipe = new ByteArrayOutputStream();<NEW_LINE>project.exec(spec -> {<NEW_LINE>spec.setCommandLine(tool, "--version");<NEW_LINE>spec.setStandardOutput(pipe);<NEW_LINE>});<NEW_LINE>String output = pipe...
StandardCharsets.UTF_8).trim();
1,047,084
public <T> Boolean notStartsWith(BoundReference<T> ref, Literal<T> lit) {<NEW_LINE>Integer id = ref.fieldId();<NEW_LINE>if (mayContainNull(id)) {<NEW_LINE>return ROWS_MIGHT_MATCH;<NEW_LINE>}<NEW_LINE>ByteBuffer prefixAsBytes = lit.toByteBuffer();<NEW_LINE>Comparator<ByteBuffer<MASK><NEW_LINE>// notStartsWith will match...
> comparator = Comparators.unsignedBytes();
1,442,701
public void valueChanged(ListSelectionEvent e) {<NEW_LINE>if (!e.getValueIsAdjusting()) {<NEW_LINE>Object selectedObject = panel.lstPatches.getSelectedValue();<NEW_LINE>Queue selectedQueue = selectedObject instanceof Queue ? <MASK><NEW_LINE>okButton.setEnabled(true);<NEW_LINE>if (selectedQueue != null && selectedQueue....
((Queue) selectedObject) : null;
413,068
private static Map<Long, ECPublicKey> parsePublicKeysJson() throws GeneralSecurityException, IOException, JSONException {<NEW_LINE>URL url = new URL(REWARD_VERIFIER_KEYS_URL);<NEW_LINE>HttpURLConnection connection = (HttpURLConnection) url.openConnection();<NEW_LINE>connection.setRequestMethod("GET");<NEW_LINE>Buffered...
(connection.getInputStream()));
484,908
public NestedVersionTwo decode(ProtoReader reader) throws IOException {<NEW_LINE>Builder builder = new Builder();<NEW_LINE><MASK><NEW_LINE>for (int tag; (tag = reader.nextTag()) != -1; ) {<NEW_LINE>switch(tag) {<NEW_LINE>case 1:<NEW_LINE>builder.i(ProtoAdapter.INT32.decode(reader));<NEW_LINE>break;<NEW_LINE>case 2:<NEW...
long token = reader.beginMessage();
308,616
public boolean isDemonym(Mention m, Dictionaries dict) {<NEW_LINE>String thisCasedString = this.spanToString();<NEW_LINE><MASK><NEW_LINE>// The US state matching part (only) is done cased<NEW_LINE>String thisNormed = dict.lookupCanonicalAmericanStateName(thisCasedString);<NEW_LINE>String antNormed = dict.lookupCanonica...
String antCasedString = m.spanToString();
1,368,029
protected void computeIndentations() {<NEW_LINE>if (fCanvas == null || fCanvas.isDisposed())<NEW_LINE>return;<NEW_LINE>GC gc = new GC(fCanvas);<NEW_LINE>try {<NEW_LINE>gc.setFont(fCanvas.getFont());<NEW_LINE>fIndentation = new int[fCachedNumberOfDigits + 1];<NEW_LINE>char[] nines = new char[fCachedNumberOfDigits];<NEW_...
Arrays.fill(nines, '9');
1,714,450
public synchronized void unbindAll(Object bindingDataObject) {<NEW_LINE>BindingData bindingData = (BindingData) bindingDataObject;<NEW_LINE>NamingContext context = bindingData.contexts[<MASK><NEW_LINE>if (context != null) {<NEW_LINE>for (String name : bindingData.bindingNames) {<NEW_LINE>unbind(context, name);<NEW_LINE...
bindingData.contexts.length - 1];
1,180,506
public void marshall(APNSVoipChannelResponse aPNSVoipChannelResponse, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (aPNSVoipChannelResponse == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(aPNSVoipChannel...
aPNSVoipChannelResponse.getPlatform(), PLATFORM_BINDING);
976,145
private void showRemoteTimeseries(PartitionGroup group, ShowTimeSeriesPlan plan, QueryContext context, ShowTimeSeriesHandler handler) {<NEW_LINE>ByteBuffer resultBinary = null;<NEW_LINE>for (Node node : group) {<NEW_LINE>try {<NEW_LINE>resultBinary = showRemoteTimeseries(context, node, group, plan);<NEW_LINE>if (result...
int size = resultBinary.getInt();
323,452
public static LimitOrder adaptOrder(BithumbOrder order) {<NEW_LINE>final CurrencyPair currencyPair = adaptCurrencyPair(order.getOrderCurrency(<MASK><NEW_LINE>final Order.OrderType orderType = adaptOrderType(order.getType());<NEW_LINE>Order.OrderStatus status = Order.OrderStatus.UNKNOWN;<NEW_LINE>if (order.getUnitsRemai...
), order.getPaymentCurrency());
1,544,630
private static void writeFragments(final List<? extends PsiFragment> psiFragments, Element duplicateElement, Project project, final boolean shouldWriteOffsets) {<NEW_LINE>final PathMacroManager macroManager = PathMacroManager.getInstance(project);<NEW_LINE>final PsiDocumentManager documentManager = PsiDocumentManager.g...
lineStartOffset = document.getLineStartOffset(line);
1,817,730
final CreateBatchImportJobResult executeCreateBatchImportJob(CreateBatchImportJobRequest createBatchImportJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createBatchImportJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
706,023
public static List<Trie> calculateReceiptsTrieRootFor(Block block, ReceiptStore receiptStore, Keccak256 txHash) throws BlockHashesHelperException {<NEW_LINE>Keccak256 bhash = block.getHash();<NEW_LINE>List<Transaction> transactions = block.getTransactionsList();<NEW_LINE>List<TransactionReceipt> receipts = new ArrayLis...
Keccak256 txh = transaction.getHash();
1,229,881
private double tenativeUpdate(final Vec[] columnMajor, final int j, final double w_j, final double[] y, final double[] r, final double lambda, final double s, final double[] delta) {<NEW_LINE>double numer = 0, denom = 0;<NEW_LINE>if (columnMajor != null) {<NEW_LINE>Vec col_j = columnMajor[j];<NEW_LINE>if (col_j.nnz() =...
exp(r[i]));