idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
993,027
public void updatePublishAuditStatus(String bundleId, Status newStatus, PublishAuditHistory history, Boolean updateDates) throws DotPublisherException {<NEW_LINE>boolean local = false;<NEW_LINE>try {<NEW_LINE>local = HibernateUtil.startLocalTransactionIfNeeded();<NEW_LINE>DotConnect dc = new DotConnect();<NEW_LINE>if (...
.addParam(new Date());
1,615,793
private static Set<String> collectClasspaths(Project prj) throws DependencyResolutionRequiredException {<NEW_LINE>Set<String> toRet = new HashSet<String>();<NEW_LINE>NbMavenProject watcher = prj.getLookup().lookup(NbMavenProject.class);<NEW_LINE>MavenProject mproject = watcher.getMavenProject();<NEW_LINE>// TODO this o...
addAll(mproject.getTestClasspathElements());
1,462,489
public FileSystemCommand workerHeartbeat(long workerId, List<Long> persistedFiles, WorkerHeartbeatContext context) throws IOException {<NEW_LINE>List<String> persistedUfsFingerprints = context.getOptions().getPersistedFileFingerprintsList();<NEW_LINE>boolean hasPersistedFingerprints = persistedUfsFingerprints.size() ==...
)).setUfsFingerprint(ufsFingerprint));
1,303,806
public DeleteAssetResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteAssetResult deleteAssetResult = new DeleteAssetResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
JsonToken token = context.getCurrentToken();
171,685
private void readKeyFromStorage() {<NEW_LINE>SharedPreferences settings = ContextFactory.getContext().getSharedPreferences(m_strPrefName, Context.MODE_PRIVATE);<NEW_LINE>String strOldKey = settings.getString(m_strDBPartition, "");<NEW_LINE>if (strOldKey != null && strOldKey.length() > 0) {<NEW_LINE>// , Base64.DEFAULT)...
Logger.I(TAG, "Key is successfully read from Shared Preferences");
1,847,704
public void run() {<NEW_LINE>for (InspectionTreeNode node : myNodesToSuppress) {<NEW_LINE>final Pair<PsiElement, CommonProblemDescriptor> content = getContentToSuppress(node);<NEW_LINE>if (content.first == null)<NEW_LINE>break;<NEW_LINE>final PsiElement element = content.first;<NEW_LINE>RefEntity refEntity = null;<NEW_...
ProblemDescriptionNode) node).getElement();
959,766
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>Toolbar toolbar = view.findViewById(R.id.payments_recovery_start_fragment_toolbar);<NEW_LINE>TextView title = view.findViewById(R.id.payments_recovery_start_fragment_title);<NEW_LINE>LearnMoreTextView message = view.findViewBy...
PaymentsRecoveryStartFragmentArgs.fromBundle(requireArguments());
663,612
private boolean initInfo() {<NEW_LINE>final IMsgBL msgBL = Services.get(IMsgBL.class);<NEW_LINE>if (!initInfoTable()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// prepare table<NEW_LINE>final StringBuilder where = new StringBuilder("IsActive='Y'");<NEW_LINE>if (p_whereClause.length() > 0)<NEW_LINE>where.append(" AND...
3).toString()));
1,809,345
protected boolean handleCamelException(Exchange exchange, DelegateExecution execution, boolean isV5Execution) {<NEW_LINE>Exception camelException = exchange.getException();<NEW_LINE>boolean notHandledByCamel = exchange.isFailed() && camelException != null;<NEW_LINE>if (notHandledByCamel) {<NEW_LINE>if (camelException i...
Flowable5CompatibilityHandler compatibilityHandler = Flowable5Util.getFlowable5CompatibilityHandler();
845,505
private static void startWorkManagerService(Class<?> serviceClass, List<Class<?>> features, int port, CompletableFuture<Integer> portFuture) {<NEW_LINE>ResourceConfig rcWork = new ResourceConfig(serviceClass).register(ExceptionMapper.class);<NEW_LINE>for (Class<?> feature : features) {<NEW_LINE>_logger.infof("Registeri...
infof("Starting work manager %s at %s\n", serviceClass, workMgrUri);
1,285,979
private void unclose(final I_PP_Order ppOrder) {<NEW_LINE>ModelValidationEngine.get().fireDocValidate(ppOrder, ModelValidator.TIMING_BEFORE_UNCLOSE);<NEW_LINE>//<NEW_LINE>// Unclose PP_Order's Qty<NEW_LINE>ppOrderBL.uncloseQtyOrdered(ppOrder);<NEW_LINE>ppOrdersRepo.save(ppOrder);<NEW_LINE>//<NEW_LINE>// Unclose PP_Orde...
ppOrder.setDocStatus(IDocument.STATUS_Completed);
626,801
public boolean decomposeMetricCamera(DMatrixRMaj cameraMatrix, DMatrixRMaj K, Se3_F64 worldToView) {<NEW_LINE>CommonOps_DDRM.extract(cameraMatrix, 0, 3, 0, 3, A, 0, 0);<NEW_LINE>worldToView.T.setTo(cameraMatrix.get(0, 3), cameraMatrix.get(1, 3), cameraMatrix.get(2, 3));<NEW_LINE>CommonOps_DDRM.mult(Pv, A, A_p);<NEW_LIN...
mult(A, Pv, K);
407,420
public void add(int index, Dependency dependency) {<NEW_LINE>if (index > size() || index < 0) {<NEW_LINE>throw new IndexOutOfBoundsException("Index: " + index + ", Size: " + size());<NEW_LINE>}<NEW_LINE>int elementIndex = index;<NEW_LINE>if (index > 0) {<NEW_LINE>Element previousElement = ((JDomDependency) get(index - ...
super.add(index, jdomDependency);
351,406
private int processBlock192or256(byte[] in, int inOff, byte[] out, int outOff) {<NEW_LINE>int[] state = new int[4];<NEW_LINE>for (int i = 0; i < 4; i++) {<NEW_LINE>state[i] = bytes2int(in, inOff + (i * 4)) ^ kw[i];<NEW_LINE>}<NEW_LINE>camelliaF2(state, subkey, 0);<NEW_LINE>camelliaF2(state, subkey, 4);<NEW_LINE>camelli...
[1] ^= kw[7];
940,915
public static DescribeInstanceSpecificationsResponse unmarshall(DescribeInstanceSpecificationsResponse describeInstanceSpecificationsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeInstanceSpecificationsResponse.setRequestId(_ctx.stringValue("DescribeInstanceSpecificationsResponse.RequestId"));<NEW_LINE>describe...
("DescribeInstanceSpecificationsResponse.Data[" + i + "].Memory"));
1,217,679
public void insertConditionalFrequentItems(List<ItemsetWithCount> patterns, int countRequiredForSupport) {<NEW_LINE>Map<Integer, Double> itemCounts = new HashMap<>();<NEW_LINE>for (ItemsetWithCount i : patterns) {<NEW_LINE>for (Integer item : i.getItems()) {<NEW_LINE>itemCounts.compute(item, (k, v) -> v == null ? i.get...
), e.getValue());
1,238,223
protected QuantileResult quantile(double level, DoubleArray sample, boolean isExtrapolated) {<NEW_LINE>ArgChecker.isTrue(level > 0, "Quantile should be above 0.");<NEW_LINE>ArgChecker.isTrue(level < 1, "Quantile should be below 1.");<NEW_LINE>int sampleSize = sampleCorrection(sample.size());<NEW_LINE>double adjustedLev...
int) Math.ceil(adjustedLevel);
1,351,294
public static void grayToBuffered(GrayF32 src, DataBufferInt buffer, WritableRaster dst) {<NEW_LINE>final float[] srcData = src.data;<NEW_LINE>final int[] dstData = buffer.getData();<NEW_LINE>final <MASK><NEW_LINE>if (numBands == 3) {<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, src.height, y -> {<NEW_LINE>f...
int numBands = dst.getNumBands();
180,147
private void presentActionDone() {<NEW_LINE>switch(model.getOperation()) {<NEW_LINE>case UNINSTALL:<NEW_LINE>component.setHeadAndContent(<MASK><NEW_LINE>break;<NEW_LINE>case ENABLE:<NEW_LINE>component.setHeadAndContent(UninstallStep_Header_ActivateDone_Head(), UninstallStep_Header_ActivateDone_Content());<NEW_LINE>brea...
UninstallStep_Header_UninstallDone_Head(), UninstallStep_Header_UninstallDone_Content());
720,589
private MQTT createClient() throws Exception {<NEW_LINE>LOG.debug("Creating MQTT client to {}", getServerUri());<NEW_LINE>MQTT client = new MQTT();<NEW_LINE>client.setHost(getServerUri());<NEW_LINE>if (getUsername() != null) {<NEW_LINE>LOG.debug("MQTT client uses username {}", getUsername());<NEW_LINE>client.setUserNam...
.randomUUID().toString();
531,955
private synchronized long offer(final BiFunction<LogBufferPartition, Integer, Integer> claimer, final int fragmentCount, final int length) {<NEW_LINE>long newPosition = -1;<NEW_LINE>if (!isClosed) {<NEW_LINE>final <MASK><NEW_LINE>final int activePartitionId = logBuffer.getActivePartitionIdVolatile();<NEW_LINE>final Log...
long limit = publisherLimit.get();
1,025,494
protected void authenticate(SecurityFilter.FilterContext context, SecurityContext securityContext, AtnTracing atnTracing) {<NEW_LINE>try {<NEW_LINE>SecurityDefinition methodSecurity = context.getMethodSecurity();<NEW_LINE>if (methodSecurity.requiresAuthentication()) {<NEW_LINE>// authenticate request<NEW_LINE>SecurityC...
).ifPresent(atnTracing::logService);
1,249,416
private double moonCorrection(double jd, double t, double k) {<NEW_LINE>jd += .000325 * SN(299.77 + .107408 * k - .009173 * t * t) + .000165 * SN(251.88 + .016321 * k) + .000164 * SN(251.83 + 26.651886 * k) + .000126 * SN(349.42 + 36.412478 * k) + .00011 * SN(84.66 + 18.206239 * k);<NEW_LINE>jd += .000062 * SN(141.74 +...
SN(331.55 + 3.592518 * k);
899,735
public void actionPerformed(ActionEvent e) {<NEW_LINE>GhidraFileChooser fileChooser = new GhidraFileChooser(component);<NEW_LINE>fileChooser.setFileSelectionMode(GhidraFileChooser.DIRECTORIES_ONLY);<NEW_LINE>fileChooser.setTitle("Select Directory Containing XML Files");<NEW_LINE>String baseDir = Preferences.getProperty...
PATTERN_INFO_DIR, xmlDir.getAbsolutePath());
791,499
private void generateRSS1(final CreativeCommons module, final Element element) {<NEW_LINE>// throw new RuntimeException( "Generating RSS1 Feeds not currently Supported.");<NEW_LINE>LOG.debug(element.getName());<NEW_LINE>if (element.getName().equals("channel")) {<NEW_LINE>// Do all licenses list.<NEW_LINE>final License[...
= new Element("License", RSS1);
1,212,135
public boolean apply(@Nullable PredicateKey input) {<NEW_LINE>if (!enabled.getOrDefault()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>String serverZone = input.getServer().getZone();<NEW_LINE>if (serverZone == null) {<NEW_LINE>// there is no zone information from the server, we do not want to filter<NEW_LINE>// out th...
logger.debug("Zone snapshots: {}", zoneSnapshot);
1,072,254
public void run(RegressionEnvironment env) {<NEW_LINE>// Bean<NEW_LINE>Consumer<Boolean> bean = hasValue -> {<NEW_LINE>env.sendEventBean(new LocalEvent(hasValue ? new LocalInnerEvent() : null));<NEW_LINE>};<NEW_LINE>String beanepl = "@public @buseventtype create schema LocalEvent as " + LocalEvent.class.getName() + ";\...
() : null), "LocalEvent");
1,285,333
public static void process_sub(GrayS16 orig, GrayS16 derivX, GrayS16 derivY) {<NEW_LINE>final short[] data = orig.data;<NEW_LINE>final short[] imgX = derivX.data;<NEW_LINE>final short[] imgY = derivY.data;<NEW_LINE>final int width = orig.getWidth();<NEW_LINE>final int height = orig.getHeight() - 1;<NEW_LINE>final int s...
+ derivX.stride * y + 1;
1,491,222
public static void buildOATypes(EventTypeRepositoryImpl repo, Map<String, ConfigurationCommonEventTypeObjectArray> objectArrayTypeConfigurations, Map<String, Map<String, Object>> nestableObjectArrayNames, BeanEventTypeFactory beanEventTypeFactory, ClasspathImportService classpathImportService) {<NEW_LINE>List<String> c...
propertyTypes = resolveClassesForStringPropertyTypes(propertyTypes, classpathImportService);
1,511,898
public void marshall(UpdateLaunchProfileRequest updateLaunchProfileRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateLaunchProfileRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(update...
updateLaunchProfileRequest.getStudioComponentIds(), STUDIOCOMPONENTIDS_BINDING);
1,684,513
final UpdateEventSourceMappingResult executeUpdateEventSourceMapping(UpdateEventSourceMappingRequest updateEventSourceMappingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateEventSourceMappingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
832,323
protected void onBindRowViewHolder(RowPresenter.ViewHolder holder, Object item) {<NEW_LINE><MASK><NEW_LINE>ViewHolder vh = (ViewHolder) holder;<NEW_LINE>PlaybackControlsRow row = (PlaybackControlsRow) vh.getRow();<NEW_LINE>if (row.getItem() == null) {<NEW_LINE>vh.mDescriptionDock.setVisibility(View.GONE);<NEW_LINE>} el...
super.onBindRowViewHolder(holder, item);
372,730
public void buildDestinationRow(@NonNull View view, String timeText, final Spannable title, Spannable secondaryText, LatLon location, LinearLayout imagesContainer, OnClickListener onClickListener) {<NEW_LINE>OsmandApplication app = requireMyApplication();<NEW_LINE>FrameLayout baseItemView = new FrameLayout(view.getCont...
baseView.setGravity(Gravity.END);
1,255,436
public void sendCacheEviction(Set<JanusGraphSchemaVertex> updatedTypes, final boolean evictGraphFromCache, List<Callable<Boolean>> updatedTypeTriggers, Set<String> openInstances) {<NEW_LINE>Preconditions.checkArgument(CollectionUtils<MASK><NEW_LINE>long evictionId = evictionTriggerCounter.incrementAndGet();<NEW_LINE>ev...
.isNotEmpty(openInstances), "openInstances cannot be null or empty");
261,975
public RenderableNode parse(Token token, Parser parser) {<NEW_LINE>TokenStream stream = parser.getStream();<NEW_LINE><MASK><NEW_LINE>// skip the 'if' token<NEW_LINE>stream.next();<NEW_LINE>List<Pair<Expression<?>, BodyNode>> conditionsWithBodies = new ArrayList<>();<NEW_LINE>Expression<?> expression = parser.getExpress...
int lineNumber = token.getLineNumber();
696,433
public static void hexDump(byte[] buffer, int offset, int length, StringBuffer dest) {<NEW_LINE>int count;<NEW_LINE>for (int index = 0; length > 0; length -= count) {<NEW_LINE>// 4 digit offset<NEW_LINE>appendHexNumber(index, dest, 4);<NEW_LINE>dest.append(" ");<NEW_LINE>// 16 * 2-digit octets<NEW_LINE>count = (length...
? (char) b : '.');
80,851
private void expandArg(IntDependency dependency, short valBinDist, double count) {<NEW_LINE>IntTaggedWord headT = getCachedITW(dependency.head.tag);<NEW_LINE>IntTaggedWord argT = getCachedITW(dependency.arg.tag);<NEW_LINE>// dependency.head;<NEW_LINE>IntTaggedWord head = new IntTaggedWord(dependency.head.word, tagBin(d...
, leftHeaded, valBinDist), count);
584,920
public RegisteredClient mapRow(ResultSet rs, int rowNum) throws SQLException {<NEW_LINE>Timestamp clientIdIssuedAt = rs.getTimestamp("client_id_issued_at");<NEW_LINE>Timestamp clientSecretExpiresAt = rs.getTimestamp("client_secret_expires_at");<NEW_LINE>Set<String> clientAuthenticationMethods = StringUtils.commaDelimit...
(rs.getString("scopes"));
668,690
public void run(InputStream inputStream) {<NEW_LINE>try (Scanner scanner = new Scanner(inputStream)) {<NEW_LINE>while (true) {<NEW_LINE>System.err.print("> ");<NEW_LINE>if (!scanner.hasNextLine()) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>String line = scanner.nextLine();<NEW_LINE>if (line.isEmpty()) {<NEW_LINE>continue;<N...
getEventBus().post(event);
176,388
public Pair<List<MediaFile>, List<String>> handle(SpecificPlaylist inputSpecificPlaylist, Path location) {<NEW_LINE>List<MediaFile> mediaFiles = new ArrayList<>();<NEW_LINE>List<String> errors = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>inputSpecificPlaylist.toPlaylist().acceptDown(new BasePlaylistVisitor() {<NEW_LINE...
add(e.getMessage());
6,333
protected void putS8(long value, Chunk chunk, long offset) {<NEW_LINE>UNSAFE.putByte(chunk.data, offset + 0, (byte) (value >> 56));<NEW_LINE>UNSAFE.putByte(chunk.data, offset + 1, (byte) (value >> 48));<NEW_LINE>UNSAFE.putByte(chunk.data, offset + 2, (byte<MASK><NEW_LINE>UNSAFE.putByte(chunk.data, offset + 3, (byte) (v...
) (value >> 40));
117,405
private List<URL> createArtificialBinaries(FileObject[] fos) {<NEW_LINE>assert Thread.holdsLock(this);<NEW_LINE>final List<URL> res = new ArrayList<>(fos.length);<NEW_LINE>File artBinaries = null;<NEW_LINE>MessageDigest md5 = null;<NEW_LINE>try {<NEW_LINE>for (FileObject fo : fos) {<NEW_LINE>final URI srcURI = fo.toURI...
toFile(helper.getProjectDirectory());
1,822,700
public long[][] queryProcessorCpuLoadTicks() {<NEW_LINE>if (HAS_KSTAT2) {<NEW_LINE>// Use Kstat2 implementation<NEW_LINE>return queryProcessorCpuLoadTicks2(getLogicalProcessorCount());<NEW_LINE>}<NEW_LINE>long[][] ticks = new long[getLogicalProcessorCount()][TickType.values().length];<NEW_LINE>int cpu = -1;<NEW_LINE>tr...
KstatUtil.dataLookupLong(ksp, "cpu_ticks_idle");
512,733
private void handleFileUploadValidationAndData(VaadinSession session, InputStream inputStream, StreamVariable streamVariable, String filename, String mimeType, long contentLength, ClientConnector connector, String variableName) throws UploadException {<NEW_LINE>session.lock();<NEW_LINE>try {<NEW_LINE>if (connector == n...
).handleConnectorRelatedException(connector, e);
1,805,456
private static String expand(Map<String, String> params, String str, boolean url_decode) {<NEW_LINE>int pos = 0;<NEW_LINE>String result = "";<NEW_LINE>while (true) {<NEW_LINE>int new_pos = str.indexOf('$', pos);<NEW_LINE>if (new_pos == -1) {<NEW_LINE>result += str.substring(pos);<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>res...
result += UrlUtils.decode(value);
1,522,597
private void updateCertificateSelector() {<NEW_LINE>if (!mCheckAuto.isChecked()) {<NEW_LINE>mSelectCert.setEnabled(true);<NEW_LINE>mSelectCert.setVisibility(View.VISIBLE);<NEW_LINE>if (mCertEntry != null) {<NEW_LINE>((TextView) mSelectCert.findViewById(android.R.id.text1)).<MASK><NEW_LINE>((TextView) mSelectCert.findVi...
setText(mCertEntry.getSubjectPrimary());
803,826
public static String sendGetRequest(String urlText, String userNamePassword, StringBuilder responseBody) {<NEW_LINE>try {<NEW_LINE>log.info("GET : " + urlText);<NEW_LINE>HttpURLConnection conn = getHttpURLConnection(urlText);<NEW_LINE>conn.setDoInput(true);<NEW_LINE>conn.setDoOutput(false);<NEW_LINE>conn.setRequestMeth...
InputStream is = conn.getInputStream();
329,594
private // and that our WSJdbcConnection properties are in sync with the underlying PostgreSQL connection's properties<NEW_LINE>void verifyClean(Connection con) throws Exception {<NEW_LINE>// Verify WSJdbcConnection values are all at the proper initial state<NEW_LINE>assertTrue("Default auto-commit value on a connectio...
(con).getHoldability());
278,614
public void marshall(RedshiftDestinationUpdate redshiftDestinationUpdate, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (redshiftDestinationUpdate == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(redshiftD...
redshiftDestinationUpdate.getCopyCommand(), COPYCOMMAND_BINDING);
1,843,861
static boolean isFinishable(FileSystem fs, String buildContext, String dockerfile) {<NEW_LINE>if (buildContext == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String realDockerfile;<NEW_LINE>if (dockerfile == null) {<NEW_LINE>realDockerfile = buildContext + "/" + DockerAction.DOCKER_FILE;<NEW_LINE>} else {<NEW_LI...
getRoot().getFileObject(buildContext);
125,099
protected void firePseudoAttributes() {<NEW_LINE>if (m_tracer != null) {<NEW_LINE>try {<NEW_LINE>// flush out the "<elemName" if not already flushed<NEW_LINE>m_writer.flush();<NEW_LINE>// make a StringBuffer to write the name="value" pairs to.<NEW_LINE>StringBuffer sb = new StringBuffer();<NEW_LINE>int nAttrs = m_attri...
= new ToStream.WritertoStringBuffer(sb);
1,558,156
public static ListFileResponse unmarshall(ListFileResponse listFileResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFileResponse.setRequestId(_ctx.stringValue("ListFileResponse.RequestId"));<NEW_LINE>listFileResponse.setHttpStatusCode(_ctx.stringValue("ListFileResponse.HttpStatusCode"));<NEW_LINE>listFileResponse.set...
("ListFileResponse.DataList[" + i + "].Name"));
115,536
public void onExecute(final Command continuation) {<NEW_LINE>// RStudio Commands<NEW_LINE>appCommands_.loadBindings(new CommandWithArg<EditorKeyBindings>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void execute(final EditorKeyBindings customBindings) {<NEW_LINE>Map<String, AppCommand> commands = commands_.getComma...
AppCommand command = entry.getValue();
283,174
protected BaseRestHandler.RestChannelConsumer prepareRequest(RestRequest restRequest, NodeClient client) throws IOException {<NEW_LINE>String calendarId = restRequest.param(Calendar.ID.getPreferredName());<NEW_LINE>GetCalendarEventsAction.Request request;<NEW_LINE>if (restRequest.hasContentOrSourceParam()) {<NEW_LINE>t...
= new GetCalendarEventsAction.Request(calendarId);
1,833,487
public float interpolate(float t) {<NEW_LINE>// Handle the boundary cases.<NEW_LINE>final <MASK><NEW_LINE>if (Float.isNaN(t)) {<NEW_LINE>return t;<NEW_LINE>}<NEW_LINE>if (t <= mT.get(0)) {<NEW_LINE>return mX.get(0);<NEW_LINE>}<NEW_LINE>if (t >= mT.get(n - 1)) {<NEW_LINE>return mX.get(n - 1);<NEW_LINE>}<NEW_LINE>// Find...
int n = mT.size();
845,611
private void initialize() {<NEW_LINE>View view = View.inflate(getContext(), <MASK><NEW_LINE>// Container uses different View classes so it can't use the same id or we'll get class<NEW_LINE>// cast exception when restoring state.<NEW_LINE>mContainer = view.findViewById(R.id.buttons_container);<NEW_LINE>if (mContainer ==...
R.layout.markdown_buttons_bar, this);
1,664,716
public static void mul(int[] x, int[] y, int[] zz) {<NEW_LINE>Nat256.mul(x, y, zz);<NEW_LINE>Nat256.mul(x, 8, y, 8, zz, 16);<NEW_LINE>int c24 = Nat256.addToEachOther(zz, 8, zz, 16);<NEW_LINE>int c16 = c24 + Nat256.addTo(zz, 0, zz, 8, 0);<NEW_LINE>c24 += Nat256.addTo(zz, 24, zz, 16, c16);<NEW_LINE>int[] dx = Nat256.crea...
] tt = Nat256.createExt();
1,795,237
private void emitVariableDefs(OCLCompilationResultBuilder crb, OCLAssembler asm, LIR lir) {<NEW_LINE>Map<OCLKind, Set<Variable>> kindToVariable = new HashMap<>();<NEW_LINE>final int expectedVariables = lir.numVariables();<NEW_LINE>final AtomicInteger variableCount = new AtomicInteger();<NEW_LINE>for (AbstractBlockBase<...
asm.emit("%s ", type);
1,706,059
private void resolveOrFail(final ClassNode type, final String msg, final ASTNode node, final boolean preferImports) {<NEW_LINE>if (preferImports) {<NEW_LINE>resolveGenericsTypes(type.getGenericsTypes());<NEW_LINE>if (resolveAliasFromModule(type))<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (resolve(type))<NEW_LINE>return;<...
ModuleNode module = currentClass.getModule();
1,806,385
public static String exeCmdWithoutPipe(CommandLine cmdLine, ByteArrayInputStream input, Map<String, String> env) {<NEW_LINE>DefaultExecutor executor = new DefaultExecutor();<NEW_LINE>ExecuteWatchdog dog = new ExecuteWatchdog(3 * 1000);<NEW_LINE>executor.setWatchdog(dog);<NEW_LINE>executor.setExitValue(0);<NEW_LINE>try ...
executor.execute(cmdLine, env);
1,834,550
public void marshall(RestoreJobsListMember restoreJobsListMember, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (restoreJobsListMember == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(restoreJobsListMember...
restoreJobsListMember.getCreatedResourceArn(), CREATEDRESOURCEARN_BINDING);
1,031,155
public void moveItem(MountItem item, int oldIndex, int newIndex) {<NEW_LINE>if (item == null && mScrapMountItemsArray != null) {<NEW_LINE>item = mScrapMountItemsArray.get(oldIndex);<NEW_LINE>}<NEW_LINE>if (item == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Check if we're trying to move a mount item from a place wh...
Object content = item.getContent();
1,790,204
private int transitionsBetween(ResultPoint from, ResultPoint to) {<NEW_LINE>// See QR Code Detector, sizeOfBlackWhiteBlackRun()<NEW_LINE>int fromX = (int) from.getX();<NEW_LINE>int fromY = (int) from.getY();<NEW_LINE>int toX = <MASK><NEW_LINE>int toY = Math.min(image.getHeight() - 1, (int) to.getY());<NEW_LINE>boolean ...
(int) to.getX();
574,521
public void service(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {<NEW_LINE>byte[] imageData = null;<NEW_LINE>String imageMimeType = null;<NEW_LINE>String imageName = request.getParameter(IMAGE_NAME_REQUEST_PARAMETER);<NEW_LINE>if ("px".equals(imageName)) {<NEW_LINE>try...
getImageTypeValue(imageData).getMimeType();
1,510,014
public void sendAdventureSettings(ProxySession session) {<NEW_LINE>if (opPermissionLevel >= 2) {<NEW_LINE>playerPermission = PlayerPermission.OPERATOR;<NEW_LINE>} else {<NEW_LINE>playerPermission = PlayerPermission.MEMBER;<NEW_LINE>}<NEW_LINE>AdventureSettingsPacket adventureSettingsPacket = new AdventureSettingsPacket...
add(AdventureSettingsPacket.Flag.AUTO_JUMP);
1,801,138
private void doProxyHandshake(Socket s, String hostname, int port, String userauth, int connectTimeout) throws IOException {<NEW_LINE>StringBuilder request = new StringBuilder(128);<NEW_LINE>request.append("CONNECT ").append(hostname).append(':').append(port).append(" HTTP/1.1\r\nHost: ").append(hostname).append(':').a...
s + ". Proxy returns \"" + response + '\"');
562,880
public Answer createVolume(final CreateObjectCommand cmd) {<NEW_LINE>final DataTO data = cmd.getData();<NEW_LINE>final VolumeObjectTO volume = (VolumeObjectTO) data;<NEW_LINE>try {<NEW_LINE>final Connection conn = hypervisorResource.getConnection();<NEW_LINE>final PrimaryDataStoreTO primaryStore = (PrimaryDataStoreTO) ...
vdir = new VDI.Record();
1,438,325
public Document loadDocumentAsLimitedStream(final DigestURL location, final CacheStrategy cachePolicy, final BlacklistType blacklistType, final ClientIdentification.Agent agent, final int maxLinks, final long maxBytes) throws IOException {<NEW_LINE>// load resource<NEW_LINE>Request request = request(location, true, fal...
DigestURL url = request.url();
1,567,450
final DescribeFeatureGroupResult executeDescribeFeatureGroup(DescribeFeatureGroupRequest describeFeatureGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFeatureGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
643,085
final AssumeRoleResult executeAssumeRole(AssumeRoleRequest assumeRoleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(assumeRoleRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<AssumeRoleRequest> request = null;<NEW_LINE>Response<As...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
472,977
public static void interleavedToBuffered(InterleavedF32 src, DataBufferByte buffer, WritableRaster dst) {<NEW_LINE>if (src.getNumBands() != dst.getNumBands())<NEW_LINE>throw new IllegalArgumentException("Unequal number of bands src = " + src.getNumBands() + " dst = " + dst.getNumBands());<NEW_LINE>final byte[] dstData ...
int length = src.width * numBands;
424,767
public BuiltinIntentSlot unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BuiltinIntentSlot builtinIntentSlot = new BuiltinIntentSlot();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurr...
String currentParentElement = context.getCurrentParentElement();
132,398
public static void main(String... args) {<NEW_LINE>// Note that we created two copies of each class to increase variety and avoid potential<NEW_LINE>// optimizations that wouldn't applicable in the real life.<NEW_LINE>autovalue.Main.main(args);<NEW_LINE>ComponentA componentA = new AutoValue_ComponentA(1, false, "hello"...
true, compositeA.getBooleanField());
262,987
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, Integer page, Integer size, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW_LINE>ActionResult<List...
cq.from(EmpowerLog.class);
440,618
public void visit(MethodInvocation node) {<NEW_LINE>if (isCancelled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Identifier identifier = null;<NEW_LINE>if (node.getMethod().getFunctionName().getName() instanceof Variable) {<NEW_LINE>Variable variable = (Variable) node.getMethod().getFunctionName().getName();<NEW_LINE>if (...
item.identifier, item.coloring);
1,552,174
private void renderNotebookv2WithDialog(final DocUpdateSentinel sourceDoc) {<NEW_LINE>// default format<NEW_LINE>String format = sourceDoc.getProperty(NOTEBOOK_FORMAT);<NEW_LINE>if (StringUtil.isNullOrEmpty(format)) {<NEW_LINE>format = state_.compileRMarkdownNotebookPrefs().getValue().getFormat();<NEW_LINE>if (StringUt...
create(input.getFormat());
994,476
public ModelAssembler addImport(URL url) {<NEW_LINE>Objects.requireNonNull(url, "The provided url to ModelAssembler#addImport was null");<NEW_LINE>// Format the key used to de-dupe files. Note that a "jar:" prefix<NEW_LINE>// can't be removed since it's needed in order to load files from JARs<NEW_LINE>// and differenti...
URLConnection connection = url.openConnection();
1,354,887
private List<FhirVersionIndependentConcept> extractValueSetCodes(IBaseResource theValueSet) {<NEW_LINE>List<FhirVersionIndependentConcept> retVal = new ArrayList<>();<NEW_LINE>RuntimeResourceDefinition vsDef = myContext.getResourceDefinition("ValueSet");<NEW_LINE>BaseRuntimeChildDefinition expansionChild = vsDef.getChi...
()).orElse(null);
1,022,938
public void subscribe(final FlowableEmitter<E> emitter) {<NEW_LINE>// If the Realm has been closed, just create an empty Observable because we assume it is going to be disposed shortly.<NEW_LINE>if (realm.isClosed())<NEW_LINE>return;<NEW_LINE>// Gets instance to make sure that the Realm is open for as long as the<NEW_L...
get().releaseReference(object);
151,272
public void apply() throws ConfigurationException {<NEW_LINE>if (myEditor != null && myEditor.isModified()) {<NEW_LINE>myModified = true;<NEW_LINE>myEditor.apply();<NEW_LINE>}<NEW_LINE>for (FileTemplateTab list : myTabs) {<NEW_LINE>checkCanApply(list);<NEW_LINE>}<NEW_LINE>updateCache();<NEW_LINE>for (Map.Entry<FileTemp...
).get(CODE_TEMPLATES_CATEGORY)));
981,504
private void buildAtlas() {<NEW_LINE>calculateAtlasSizes();<NEW_LINE>int numMipMaps = getNumMipmaps();<NEW_LINE>ByteBuffer[] data = createAtlasMipmaps(numMipMaps, TRANSPARENT_COLOR, tiles, "tiles.png");<NEW_LINE>ByteBuffer[] dataNormal = createAtlasMipmaps(numMipMaps, UNIT_Z_COLOR, tilesNormal, "tilesNormal.png", tiles...
terrainMatData.setParam("textureAtlas", terrainTex);
399,693
public Request<DescribeRegionsRequest> marshall(DescribeRegionsRequest describeRegionsRequest) {<NEW_LINE>if (describeRegionsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeRegionsRequest> request = new DefaultRequest<DescribeR...
request.addParameter("Action", "DescribeRegions");
139,447
public Expression<?> visit(TemplateExpression<?> expr, Context context) {<NEW_LINE>Object[] args = new Object[expr.getArgs().size()];<NEW_LINE>for (int i = 0; i < args.length; i++) {<NEW_LINE>Context c = new Context();<NEW_LINE>if (expr.getArg(i) instanceof Expression) {<NEW_LINE>args[i] = ((Expression<?>) expr.getArg(...
] = expr.getArg(i);
1,484,410
private I_M_HU_PI_Item_Product extractHUPIItemProduct(final I_C_Order order, final I_C_OrderLine orderLine) {<NEW_LINE>final I_M_HU_PI_Item_Product materialItemProduct;<NEW_LINE>if (orderLine.getM_HU_PI_Item_Product_ID() > 0) {<NEW_LINE>materialItemProduct = orderLine.getM_HU_PI_Item_Product();<NEW_LINE>} else {<NEW_LI...
ofRepoId(order.getC_BPartner_ID());
1,067,080
public void run() {<NEW_LINE>if (msg == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ChannelBuffer frameBuffer;<NEW_LINE>if (frameDecoder != null) {<NEW_LINE>try {<NEW_LINE>frameBuffer = frameDecoder.decode((ChannelBuffer) msg);<NEW_LINE>if (frameBuffer == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>} catch (Exception...
logger.info("decode the frame size :{}", size);
1,222,819
public void testMPConfigSpecifiesDefaultContextPropagationForThreadContext() throws Exception {<NEW_LINE>// Defaults:<NEW_LINE>// mp.context.ThreadContext.cleared=<NEW_LINE>// mp.context.ThreadContext.propagated=State<NEW_LINE>// mp.context.ThreadContext.unchanged=Remaining<NEW_LINE>ThreadContext threadContext = Thread...
CurrentLocation.setLocation("Owatonna", "Minnesota");
748,192
static CdmTraitReference createCsvTrait(final CsvFormatSettings obj, final CdmCorpusContext ctx) {<NEW_LINE>final CdmTraitReference csvFormatTrait = ctx.getCorpus().makeRef(CdmObjectType.TraitRef, "is.partition.format.CSV", true);<NEW_LINE>csvFormatTrait.setSimpleNamedReference(false);<NEW_LINE>if (obj.isColumnHeaders(...
isColumnHeaders() ? "true" : "false");
751,142
public static List<GiphyMp4ProjectionPlayerHolder> injectVideoViews(@NonNull Context context, @NonNull Lifecycle lifecycle, @NonNull ViewGroup viewGroup, int nPlayers) {<NEW_LINE>List<GiphyMp4ProjectionPlayerHolder> holders <MASK><NEW_LINE>for (int i = 0; i < nPlayers; i++) {<NEW_LINE>FrameLayout container = (FrameLayo...
= new ArrayList<>(nPlayers);
1,818,441
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup...
Utils.getValueFromIdByName(id, "signalR");
531,561
public GetPolicyResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetPolicyResult getPolicyResult = new GetPolicyResult();<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>reader.beginObject();<NEW_LINE>while (reader.hasNext()) {<NEW_LINE>String name = reader.nextName();<NEW_LI...
().unmarshall(context));
1,460,900
private StringBuilder buildMergeInfoBasic(boolean useQualifier, TableDef tableDef, List<ColumnDef> allColumns, List<ColumnDef> primaryColumns) {<NEW_LINE>StringBuilder mergeBuilder = new StringBuilder();<NEW_LINE>String finalTableName = tableName(useQualifier, tableDef);<NEW_LINE>mergeBuilder.append("MERGE INTO " + fin...
"TMP." + pkColumn + " = SRC." + pkColumn);
1,497,232
final DescribeStandardsControlsResult executeDescribeStandardsControls(DescribeStandardsControlsRequest describeStandardsControlsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeStandardsControlsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
274,701
FSRL findFile(File dir, ExternalDebugInfo debugInfo, TaskMonitor monitor) throws IOException, CancelledException {<NEW_LINE>if (!debugInfo.hasFilename()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>File file = new File(dir, debugInfo.getFilename());<NEW_LINE>if (file.isFile()) {<NEW_LINE>int fileCRC = calcCRC(file);<NE...
getInstance().getLocalFSRL(file);
232,666
protected void addBlocker(Game game, List<Permanent> blockers, Map<Integer, Combat> engagements) {<NEW_LINE>if (blockers.isEmpty())<NEW_LINE>return;<NEW_LINE>int numGroups = game.getCombat().getGroups().size();<NEW_LINE>// try to block each attacker with each potential blocker<NEW_LINE>Permanent <MASK><NEW_LINE>if (log...
blocker = blockers.get(0);
232
public String saveData(List<ListElement> noModel, List<ListElement> yesModel) {<NEW_LINE>//<NEW_LINE>log.fine("");<NEW_LINE>StringBuffer info = new StringBuffer();<NEW_LINE>MTable table = MTable.get(Env.getCtx(), tableId);<NEW_LINE>// noList - Set SortColumn to null and optional YesNo Column to 'N'<NEW_LINE>for (ListEl...
po.set_ValueOfColumn(columnYesNoName, true);
274,956
protected void markTargetPermission(OperationPermissionTarget target, String property, EntityOp operation, PermissionVariant permissionVariant) {<NEW_LINE>if (target != null) {<NEW_LINE>target.setValue(property, permissionVariant);<NEW_LINE>String permissionValue = target.getPermissionValue() + Permission.TARGET_PATH_D...
permissionValue, PermissionType.ENTITY_OP, value);
800,103
final ListPublishingDestinationsResult executeListPublishingDestinations(ListPublishingDestinationsRequest listPublishingDestinationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPublishingDestinationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
600,391
public static Element svgWaitIcon(Document document, double x, double y, double w, double h) {<NEW_LINE>Element g = SVGUtil.svgElement(document, SVGConstants.SVG_G_TAG);<NEW_LINE>setAtt(g, SVGConstants.SVG_TRANSFORM_ATTRIBUTE, "translate(" + x + " " + y + ") scale(" + w + " " + h + ")");<NEW_LINE>Element thro = SVGUtil...
anim, SVGConstants.SVG_REPEAT_COUNT_ATTRIBUTE, "indefinite");
161,336
List<ZeebePartition> constructPartitions(final RaftPartitionGroup partitionGroup, final List<PartitionListener> partitionListeners, final TopologyManager topologyManager) {<NEW_LINE>final var partitions <MASK><NEW_LINE>final var communicationService = clusterServices.getCommunicationService();<NEW_LINE>final var eventS...
= new ArrayList<ZeebePartition>();
1,684,977
protected ImageWritable doTransform(ImageWritable image, Random random) {<NEW_LINE>if (image == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// ensure that transform is valid<NEW_LINE>if (image.getFrame().imageHeight < outputHeight || image.getFrame().imageWidth < outputWidth)<NEW_LINE>throw new UnsupportedOperati...
rng.nextInt(cropLeft + 1);