idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
646,490 | public static MPSStreamIndex parseIndex(ByteBuffer index) {<NEW_LINE>int streamId = index.get() & 0xff;<NEW_LINE>int fCnt = index.getInt();<NEW_LINE>int[] fsizes = new int[fCnt];<NEW_LINE>for (int i = 0; i < fCnt; i++) {<NEW_LINE>fsizes[i] = index.getInt();<NEW_LINE>}<NEW_LINE>int fptsCnt = index.getInt();<NEW_LINE>int... | int fdurCnt = index.getInt(); |
1,696,613 | private float drawText(HeadingText heading, @Nonnull String text, float offset, float scale, float size, FontRenderer fr) {<NEW_LINE>// some stuff leaks this, so we need to force disable it<NEW_LINE>GlStateManager.disableRescaleNormal();<NEW_LINE>GlStateManager.pushMatrix();<NEW_LINE>GlStateManager.translate(0, offset,... | ) / 2, 0, 0); |
395,566 | // for Java 7, the type of elements of JComboBox needs to be specified to avoid the warning and it's not supported in Java 6<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>private void buildGUI(Frame parent) {<NEW_LINE>JPanel selectionPanel = new JPanel();<NEW_LINE>fontList = new JList(fonts);<NEW_LINE>fontList.getSe... | (Box.createHorizontalStrut(30)); |
788,232 | private // /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>void addBindings() {<NEW_LINE>amountTextField.textProperty().bindBidirectional(model.amount);<NEW_LINE>volumeTextField.textProperty().bindBidirectional(model.volume);<NEW_LINE>totalToPayTextField.textProperty()... | model.dataModel.getMissingCoin()); |
650,934 | private boolean returnToPool(Entry e) {<NEW_LINE>final long thread = Thread<MASK><NEW_LINE>final CharSequence name = e.writer.getTableName();<NEW_LINE>try {<NEW_LINE>e.writer.rollback();<NEW_LINE>// We can apply structure changing ALTER TABLE before writer returns to the pool<NEW_LINE>e.writer.tick(true);<NEW_LINE>} ca... | .currentThread().getId(); |
1,554,110 | public boolean matches() throws Exception {<NEW_LINE>Pattern p = Pattern.compile("\\s*_?\\s*(<|>|<=|>=)\\s*([-+]?[\\d]*\\.?[\\d]+)");<NEW_LINE>Matcher m = p.matcher(expression);<NEW_LINE>if (m.matches()) {<NEW_LINE>String op = m.group(1);<NEW_LINE>String operandString = m.group(2);<NEW_LINE>double operand = Double.pars... | aop = m.group(2); |
1,071,837 | public void caseIdentityStmt(IdentityStmt stmt) {<NEW_LINE>TypeNode left = hierarchy.typeNode(((Local) stmt.getLeftOp()).getType());<NEW_LINE><MASK><NEW_LINE>if (r instanceof CaughtExceptionRef) {<NEW_LINE>for (Type t : TrapManager.getExceptionTypesOf(stmt, stmtBody)) {<NEW_LINE>if (!left.hasDescendantOrSelf(hierarchy.... | Value r = stmt.getRightOp(); |
1,013,875 | public void marshall(HlsManifest hlsManifest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (hlsManifest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(hlsManifest.getAdMarkers(), ADMARKERS_BINDING);<NEW... | hlsManifest.getPlaylistType(), PLAYLISTTYPE_BINDING); |
1,763,588 | public final void messageLocked(AIStreamKey key) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(<MASK><NEW_LINE>synchronized (this) {<NEW_LINE>countOfUnlockedMessages--;<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())<NEW_LINE>SibTr.debug(tc, "... | this, tc, "messageLocked", key); |
323,013 | private void simplifyColours() {<NEW_LINE>if (CSSMin.bDebug) {<NEW_LINE>System.out.println("Simplifying colours; contents is " + this.contents);<NEW_LINE>}<NEW_LINE>// Convert rgb() colours to Hex<NEW_LINE>if (this.contents.toLowerCase().indexOf("rgb(") == 0) {<NEW_LINE>String[] parts = this.contents.substring(4, this.... | (Integer.toHexString(r)); |
1,587,542 | // Make sure that there are matching setters and getters.<NEW_LINE>public static void validateJavaBean(List<FieldValueTypeInformation> getters, List<FieldValueTypeInformation> setters, Schema schema) {<NEW_LINE>Map<String, FieldValueTypeInformation> <MASK><NEW_LINE>int bound = schema.getFieldCount();<NEW_LINE>for (int ... | setterMap = new HashMap<>(); |
123,651 | public MegaOffline findById(int id) {<NEW_LINE>String selectQuery = "SELECT * FROM " + TABLE_OFFLINE + " WHERE " + KEY_ID + " = '" + id + "'";<NEW_LINE>MegaOffline mOffline = null;<NEW_LINE>try (Cursor cursor = db.rawQuery(selectQuery, null)) {<NEW_LINE>if (cursor != null && cursor.moveToFirst()) {<NEW_LINE>do {<NEW_LI... | (cursor.getString(1)); |
993,742 | private void doChangePlan(final DefaultSubscriptionBase subscription, final EntitlementSpecifier spec, final DateTime effectiveDate, final CallContext context) throws SubscriptionBaseApiException, CatalogApiException {<NEW_LINE>final InternalCallContext internalCallContext = createCallContextFromBundleId(subscription.g... | PlanPhaseSpecifier planPhaseSpecifier = spec.getPlanPhaseSpecifier(); |
1,108,560 | private static void sendOrderEvent(RegressionEnvironment env, EventRepresentationChoice eventRepresentationEnum, String orderId, String productId, double price, int quantity, boolean deletedFlag) {<NEW_LINE>if (eventRepresentationEnum.isObjectArrayEvent()) {<NEW_LINE>env.sendEventObjectArray(new Object[] { orderId, pro... | theEvent.put("deletedFlag", deletedFlag); |
191,498 | public void closeAllConsumersForReceiveExclusive() {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "closeAllConsumersForReceiveExclusive");<NEW_LINE>Iterator<DispatchableKey> itr = null;<NEW_LINE>Iterator<DispatchableKey> clonedItr = null;<NEW_LINE>// The consumerPoi... | DispatchableKey consumerKey = itr.next(); |
1,768,111 | public static void main(String[] args) throws IOException, InterruptedException {<NEW_LINE>// Add final keyword to pass checkStyle.<NEW_LINE>final String user = getStringOrDefaultFromArgs(args, 0, "world");<NEW_LINE>final String host = getStringOrDefaultFromArgs(args, 1, "localhost");<NEW_LINE>final int serverPort = ge... | 0)).build()); |
307,505 | protected void forceAllImplementers() {<NEW_LINE>if (didSetImplementers) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>didSetImplementers = true;<NEW_LINE>// Do NOT use the direct interface map to seed table generation;<NEW_LINE>// the direct interface map only locates classes which are immediate<NEW_LINE>// implementers.<NEW... | i_immediateImplements = i_interfaceNames.get(i_nextImplementsSource); |
779,162 | private boolean sendEmailReport(Customer c, Universe u, String emailDestinations, boolean sendMailAlways, boolean hasErrors, boolean reportOnlyErrors, JsonNode report) {<NEW_LINE>SmtpData smtpData = emailHelper.getSmtpData(c.uuid);<NEW_LINE>if (!StringUtils.isEmpty(emailDestinations) && (smtpData != null) && (sendMailA... | .asPlainText(report, reportOnlyErrors)); |
1,520,232 | public boolean uploadBlob(BlobId blobId, long inputLength, CloudBlobMetadata cloudBlobMetadata, InputStream blobInputStream) throws CloudStorageException {<NEW_LINE>Objects.requireNonNull(blobId, "BlobId cannot be null");<NEW_LINE>Objects.requireNonNull(blobInputStream, "Input stream cannot be null");<NEW_LINE>try {<NE... | blobId, inputLength, cloudBlobMetadata, blobInputStream); |
138,700 | static <// / @Generated("This method was generated using jOOQ-tools")<NEW_LINE>T1, T2, T3, T4, T5, T6, T7, T8> Seq<Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>> crossJoin(Iterable<? extends T1> i1, Iterable<? extends T2> i2, Iterable<? extends T3> i3, Iterable<? extends T4> i4, Iterable<? extends T5> i5, Iterable<? extends T... | i7), seq(i8)); |
864,802 | protected JComponent createNorthPanel() {<NEW_LINE>final JPanel result = new JPanel();<NEW_LINE>result.setLayout(new BoxLayout(result, BoxLayout.Y_AXIS));<NEW_LINE>final List<NamedScope> scopeList = new ArrayList<NamedScope>();<NEW_LINE>final Project project = myManager.getProject();<NEW_LINE>final NamedScopesHolder[] ... | add(pathLabel, BorderLayout.WEST); |
1,572,172 | public Future<PExecPlanFragmentResult> execPlanFragmentAsync(TNetworkAddress address, TExecPlanFragmentParams tRequest) throws TException, RpcException {<NEW_LINE>final PExecPlanFragmentRequest pRequest = new PExecPlanFragmentRequest();<NEW_LINE>pRequest.setRequest(tRequest);<NEW_LINE>try {<NEW_LINE>final PBackendServi... | hostname, e.getMessage()); |
821,345 | protected void renderLines(PGraphicsOpenGL g) {<NEW_LINE><MASK><NEW_LINE>shader.bind();<NEW_LINE>IndexCache cache = tessGeo.lineIndexCache;<NEW_LINE>for (int n = firstLineIndexCache; n <= lastLineIndexCache; n++) {<NEW_LINE>int ioffset = cache.indexOffset[n];<NEW_LINE>int icount = cache.indexCount[n];<NEW_LINE>int voff... | PShader shader = g.getLineShader(); |
1,432,930 | private void addResultToJoinOutput(final Map<String, List<String>> biggerStringResults, final Map<String, List<String>> smallerStringResults, final Map<String, List<Double>> biggerDoubleResults, final Map<String, List<Double>> smallerDoubleResults, final Row big, final Row small) {<NEW_LINE>// Add from big<NEW_LINE>for... | (small.getAs(colName)); |
1,087,104 | public static void deserializeVector(ByteBuf buf, IntDoubleVector vector) {<NEW_LINE>int elemNum = buf.readInt();<NEW_LINE>StorageMethod method = getStorageMethod(vector);<NEW_LINE>SerializeArrangement arrangement = SerializeArrangement.valuesOf(buf.readInt());<NEW_LINE>if (arrangement == SerializeArrangement.KEY_VALUE... | i, buf.readDouble()); |
123,442 | public static GetIPSegmentsListResponse unmarshall(GetIPSegmentsListResponse getIPSegmentsListResponse, UnmarshallerContext context) {<NEW_LINE>getIPSegmentsListResponse.setRequestId(context.stringValue("GetIPSegmentsListResponse.RequestId"));<NEW_LINE>getIPSegmentsListResponse.setErrorCode<MASK><NEW_LINE>getIPSegments... | (context.integerValue("GetIPSegmentsListResponse.ErrorCode")); |
1,683,126 | public final void onReceive(Context context, Intent intent) {<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {<NEW_LINE>String action = intent.getAction();<NEW_LINE>Bundle bundle = intent.getExtras();<NEW_LINE>Log.v(TAG, "Action received was: " + action);<NEW_LINE>// check to make sure we ... | EXTRA_TRACKKEY, mTrack.getCacheKey()); |
913,685 | public void marshall(ListProcessingJobsRequest listProcessingJobsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listProcessingJobsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(listProce... | listProcessingJobsRequest.getSortOrder(), SORTORDER_BINDING); |
1,076,482 | public void onDeath(EntityDeathEvent event) {<NEW_LINE><MASK><NEW_LINE>LivingEntity dead = event.getEntity();<NEW_LINE>if (dead instanceof Player) {<NEW_LINE>// Process Death<NEW_LINE>SessionCache.getCachedSession(dead.getUniqueId()).ifPresent(ActiveSession::addDeath);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Optional<Player... | long time = System.currentTimeMillis(); |
454,508 | public void downloadData(final Progress progress) throws DownloadException {<NEW_LINE>final CompositeProgress overallProgress = new CompositeProgress();<NEW_LINE>if (dataUris.size() > 0) {<NEW_LINE>final int percentageChunk = Progress.COMPLETE / dataUris.size();<NEW_LINE>final int percentageLeak = Progress.COMPLETE % d... | final Progress currentProgress = new Progress(); |
1,009,070 | private ImageView renderPoster(RenderedAdaptiveCard renderedCard, Context context, FragmentManager fragmentManager, ViewGroup viewGroup, Media media, ICardActionHandler cardActionHandler, HostConfig hostConfig, RenderArgs renderArgs) throws Exception {<NEW_LINE>ImageView posterView = null;<NEW_LINE>Image poster = new I... | SetAltText(media.GetAltText()); |
297,083 | public static DescribeRecordsResponse unmarshall(DescribeRecordsResponse describeRecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRecordsResponse.setRequestId(_ctx.stringValue("DescribeRecordsResponse.RequestId"));<NEW_LINE>describeRecordsResponse.setPageSize(_ctx.longValue("DescribeRecordsResponse.PageSiz... | ("DescribeRecordsResponse.Records[" + i + "].OssEndpoint")); |
824,618 | public boolean checkTrigger(GameEvent event, Game game) {<NEW_LINE>if (!event.getPlayerId().equals(this.getControllerId())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!game.isActivePlayer(this.getControllerId())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>CardsAmountDrawnThisTurnWatcher watcher = game.getState(... | .getEffects().clear(); |
1,535,302 | public static void createDB(String dbName, String dbUsername, String dbPassword, String dbHostname) throws SQLException {<NEW_LINE>String dbSql = "CREATE DATABASE if not exists " + dbName;<NEW_LINE>BootstrapConn bConn = new BootstrapConn();<NEW_LINE>Statement stmt = null;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>try {<N... | LOG.info("Creating new db using SQL :" + dbSql); |
1,209,218 | public EncryptionInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EncryptionInfo encryptionInfo = new EncryptionInfo();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.g... | int originalDepth = context.getCurrentDepth(); |
1,770,526 | final DescribePrincipalMappingResult executeDescribePrincipalMapping(DescribePrincipalMappingRequest describePrincipalMappingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePrincipalMappingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | addHandlerContext(HandlerContextKey.SERVICE_ID, "kendra"); |
1,244,005 | public void process(Node externs, Node root) {<NEW_LINE>googModule = null;<NEW_LINE>Node googJsScriptNode = findGoogJsScriptNode(root);<NEW_LINE>if (googJsScriptNode == null) {<NEW_LINE>// Potentially in externs if library level type checking.<NEW_LINE>googJsScriptNode = findGoogJsScriptNode(externs);<NEW_LINE>}<NEW_LI... | ().modulePath() == googJsPath; |
1,711,085 | public UpdateMeetingRoomConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateMeetingRoomConfiguration updateMeetingRoomConfiguration = new UpdateMeetingRoomConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu... | ().unmarshall(context)); |
1,672,569 | void initPath(MotionKeyPosition c, MotionPaths startTimePoint, MotionPaths endTimePoint) {<NEW_LINE>float position = c.mFramePosition / 100f;<NEW_LINE>MotionPaths point = this;<NEW_LINE>point.mTime = position;<NEW_LINE>mDrawPath = c.mDrawPath;<NEW_LINE>float scaleWidth = Float.isNaN(c.mPercentWidth) ? position : c.mPer... | startTimePoint.mWidth + scaleX * scaleWidth); |
1,118,757 | public void AALOAD(Object conc_array, int conc_index, String className, String methodName) {<NEW_LINE>// pop symbolic arguments<NEW_LINE>IntegerValue symb_index = env.topFrame<MASK><NEW_LINE>ReferenceExpression array_ref = env.topFrame().operandStack.popRef();<NEW_LINE>if (nullReferenceViolation(array_ref, conc_array))... | ().operandStack.popBv32(); |
1,109,104 | private void replaceBookmarkContents(List<Object> paragraphs, Map<DataFieldName, String> data) throws Exception {<NEW_LINE>RangeFinder rt = new RangeFinder("CTBookmark", "CTMarkupRange");<NEW_LINE>new TraversalUtil(paragraphs, rt);<NEW_LINE>for (CTBookmark bm : rt.getStarts()) {<NEW_LINE>// do we have data for this one... | println(rangeStart + ", " + rangeEnd); |
551,240 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>findViewById(R.id.include_practice).setOnClickListener(new View.OnClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onClick(View view) {<NEW_LINE>... | (context, IncludeActivity.class)); |
1,205,396 | public int compareTo(ClusterJoinResponseMessage other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetHeader(), other.isSetHeader());<N... | this.nodeStore, other.nodeStore); |
295,043 | public void floatingPointExample2(Context ctx) throws TestFailedException {<NEW_LINE>System.out.println("FloatingPointExample2");<NEW_LINE>Log.append("FloatingPointExample2");<NEW_LINE>FPSort double_sort = ctx.mkFPSort(11, 53);<NEW_LINE>FPRMSort rm_sort = ctx.mkFPRoundingModeSort();<NEW_LINE>FPRMExpr rm = (FPRMExpr) ct... | ctx.mkFP(42, double_sort); |
1,264,472 | public static List<RegressionExecution> executions() {<NEW_LINE>List<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new EPLSubselectHavingNoAggNoFilterNoWhere());<NEW_LINE>execs.add(new EPLSubselectHavingNoAggWWhere());<NEW_LINE>execs<MASK><NEW_LINE>execs.add(new EPLSubselectSameEventCompile());<NEW... | .add(new EPLSubselectHavingNoAggWFilterWWhere()); |
764,525 | private Dependency createDependency(Dependency parent, String source, final String name, String version, String repo) {<NEW_LINE>final Dependency dependency = new Dependency(parent.getActualFile(), true);<NEW_LINE>dependency.setEcosystem(DEPENDENCY_ECOSYSTEM);<NEW_LINE>dependency.setName(name);<NEW_LINE>dependency.setV... | (purl, Confidence.HIGHEST)); |
982,826 | public <C extends NamespacedKubernetesClient> void update(C client, LeaderElectionRecord leaderElectionRecord) throws LockException {<NEW_LINE>try {<NEW_LINE>final Lease toReplace = client.inNamespace(leaseNamespace).leases().withName(leaseName).get();<NEW_LINE>toReplace.getSpec().setHolderIdentity(leaderElectionRecord... | setAcquireTime(leaderElectionRecord.getAcquireTime()); |
1,502,980 | void newDNSServer(VpnService.Builder builder, String format, byte[] ipv6Template, InetAddress addr) throws UnknownHostException {<NEW_LINE>// Optimally we'd allow either one, but the forwarder checks if upstream size is empty, so<NEW_LINE>// we really need to acquire both an ipv6 and an ipv4 subnet.<NEW_LINE>if (addr i... | builder.addRoute(alias, 32); |
1,133,501 | private void layoutStackedChildrenAt(Point linePoint, ConnectionWidgetLayoutAlignment adjustedAlignment, ConnectionWidget connectionWidget, ArrayList<Widget> children) {<NEW_LINE>int areaWidth = 0, areaHeight = 0;<NEW_LINE>if (adjustedAlignment != ConnectionWidgetLayoutAlignment.NONE) {<NEW_LINE>for (Widget childWidget... | Point location = childWidget.getPreferredLocation(); |
797,498 | void writeSegmentSort(StreamOutput out, Sort sort) throws IOException {<NEW_LINE>if (sort == null) {<NEW_LINE>out.writeVInt(0);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>out.writeVInt(sort.getSort().length);<NEW_LINE>for (SortField field : sort.getSort()) {<NEW_LINE>out.writeString(field.getField());<NEW_LINE>if (field inst... | writeGenericValue(field.getMissingValue()); |
1,726,616 | private void scaleKubernetesClusterOffering() throws CloudRuntimeException {<NEW_LINE>validateKubernetesClusterScaleOfferingParameters();<NEW_LINE>if (!kubernetesCluster.getState().equals(KubernetesCluster.State.Scaling)) {<NEW_LINE>stateTransitTo(kubernetesCluster.getId(), KubernetesCluster.Event.ScaleUpRequested);<NE... | <String, String>()); |
843,686 | protected Control createDialogArea(Composite parent) {<NEW_LINE>// Help<NEW_LINE>PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, HELP_ID);<NEW_LINE>setTitle(Messages.NewNestedRelationsDialog_2);<NEW_LINE>String message = NLS.bind(Messages.NewNestedRelationsDialog_3, fParentObject.getName());<NEW_LINE>setMessa... | new GridData(GridData.FILL_BOTH)); |
1,231,023 | public Integer runTests(PhpModule phpModule, TestRunInfo runInfo) throws TestRunException {<NEW_LINE>PhpExecutable phpUnit = getExecutable(phpModule);<NEW_LINE>if (phpUnit == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>File workingDirectory = getWorkingDirectory(phpModule);<NEW_LINE>if (workingDirectory != null) ... | phpUnit.runAndWait(descriptor, "Running PhpUnit tests..."); |
299,724 | private void delServicesRef(String uuid, String type) {<NEW_LINE>DebugUtils.Assert((uuid != null) && (type != null), "the parameter can't be null");<NEW_LINE>VipNetworkServicesRefVO vipRef = dbf.findByUuid(uuid, VipNetworkServicesRefVO.class);<NEW_LINE>if (vipRef == null) {<NEW_LINE>logger.error(String.format("the serv... | , self.getUuid())); |
1,005,678 | final UpdatePrimaryEmailAddressResult executeUpdatePrimaryEmailAddress(UpdatePrimaryEmailAddressRequest updatePrimaryEmailAddressRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updatePrimaryEmailAddressRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
473,338 | public static MemberExistsResult methodExists(String methodName, JavacNode node, boolean caseSensitive, int params) {<NEW_LINE>node = upToTypeNode(node);<NEW_LINE>if (node != null && node.get() instanceof JCClassDecl) {<NEW_LINE>top: for (JCTree def : ((JCClassDecl) node.get()).defs) {<NEW_LINE>if (def instanceof JCMet... | <JCVariableDecl> ps = md.params; |
1,748,202 | public static Coordinate decode(int level, int index) {<NEW_LINE>checkLevel(level);<NEW_LINE>int lvl = levelClamp(level);<NEW_LINE>index = index <MASK><NEW_LINE>long i0 = deinterleave(index);<NEW_LINE>long i1 = deinterleave(index >> 1);<NEW_LINE>long t0 = (i0 | i1) ^ 0xFFFF;<NEW_LINE>long t1 = i0 & i1;<NEW_LINE>long pr... | << (32 - 2 * lvl); |
1,646,342 | private int[] hue2rgb(int degree) {<NEW_LINE>int[] rgb = { 0, 0, 0 };<NEW_LINE>double hue = degree / 60.0;<NEW_LINE>double a = Math.tan((degree / 360.0) * 2 * Math.PI) / Math.sqrt(3);<NEW_LINE>if (hue >= 0 && hue < 1) {<NEW_LINE>rgb[0] = 0xff;<NEW_LINE>rgb[1] = (int) (2 * a * 0xff / (1 + a));<NEW_LINE>} else if (hue >=... | a / (a - 1)); |
499,732 | public void success(StreamableVideo streamableVideo) {<NEW_LINE>if (streamableVideo.mp4 == null && streamableVideo.mp4Mobile == null) {<NEW_LINE>Toast.makeText(ViewVideoActivity.this, R.string.fetch_streamable_video_failed, Toast.LENGTH_SHORT).show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>setSmallTitle(streamableVideo.t... | dataSourceFactory).createMediaSource(mVideoUri)); |
1,578,876 | private void adjustFullScreenVideoView(boolean fullScreen) {<NEW_LINE>FrameLayout frameLayout = (FrameLayout) mActivity.findViewById(R.id.mlvb_fl_push);<NEW_LINE>TXCloudVideoView videoView = (TXCloudVideoView) mActivity.findViewById(R.id.mlvb_video_view_full_screen);<NEW_LINE>ConstraintLayout.LayoutParams layoutParams ... | .rightToLeft = R.id.mlvb_guideline_v; |
1,429,240 | private MDDOrder createDistributionOrder(MPPMRP mrp) {<NEW_LINE>MLocator locatorFrom = MLocator.get(mrp.getCtx(), getLocatorId());<NEW_LINE>MLocator locatorTo = MLocator.get(mrp.getCtx(), getLocatorToId());<NEW_LINE>int docTypeId = MPPMRP.getDocType(getCtx(), MDocType.DOCBASETYPE_DistributionOrder, locatorTo.getAD_Org_... | ), 0, get_TrxName()); |
300,407 | private void executeDumper(String dumperPath, String inputFilePath, String outputDir) throws IOException {<NEW_LINE>final Path outputFilePath = Paths.get(outputDir, EDGE_OUTPUT_FILE_NAME);<NEW_LINE>final Path errFilePath = Paths.get(outputDir, EDGE_ERROR_FILE_NAME);<NEW_LINE>// NON-NLS<NEW_LINE>LOG.log(Level.INFO, "Wri... | redirectOutput(outputFilePath.toFile()); |
1,590,679 | public String tax(final ICalloutField calloutField) {<NEW_LINE>final Properties ctx = calloutField.getCtx();<NEW_LINE>final I_C_OrderLine ol = calloutField.getModel(I_C_OrderLine.class);<NEW_LINE>final IOrderLineBL orderLineBL = Services.get(IOrderLineBL.class);<NEW_LINE>orderLineBL.updatePrices(OrderLinePriceUpdateReq... | log.debug("Warehouse={}", M_Warehouse_ID); |
554,783 | public synchronized TransferFile listFile(FileObject baseLocalDir, FileObject file) throws RemoteException {<NEW_LINE>ensureConnected();<NEW_LINE>String baseLocalAbsolutePath = FileUtil.toFile(baseLocalDir).getAbsolutePath();<NEW_LINE>TransferFile localTransferFile = TransferFile.fromFile(createRemoteClientImplementati... | "Remote file {0} found", localTransferFile.getRemotePath()); |
40,370 | protected Future<Void> onExecute(SQLRequest<MySqlShowProcessListStatement> request, MycatDataContext dataContext, Response response) {<NEW_LINE>Map<Thread, Process> processMap = new LinkedHashMap<>(Process.getProcessMap());<NEW_LINE>MySqlShowProcessListStatement ast = request.getAst();<NEW_LINE><MASK><NEW_LINE>int maxC... | boolean full = ast.isFull(); |
183,624 | public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "add");<NEW_LINE>final String targetRegister = in... | , sourceImmediateSignExtended, qw, temporaryResult)); |
70,448 | protected void serializeFields(Object bean, JsonGenerator jgen0, SerializerProvider provider) throws IOException {<NEW_LINE>super.serializeFields(bean, jgen0, provider);<NEW_LINE>InstanceInfo instanceInfo = (InstanceInfo) bean;<NEW_LINE>ToXmlGenerator xgen = (ToXmlGenerator) jgen0;<NEW_LINE>xgen.writeFieldName("port");... | isPortEnabled(PortType.SECURE))); |
1,850,735 | public void init() {<NEW_LINE>addPartListener();<NEW_LINE>// attaches property listener to all opened editors<NEW_LINE>IWorkbenchWindow[] windows = PlatformUI<MASK><NEW_LINE>IWorkbenchPage[] pages;<NEW_LINE>IEditorReference[] editors;<NEW_LINE>IEditorPart editorPart;<NEW_LINE>IEditorInput editorInput;<NEW_LINE>for (IWo... | .getWorkbench().getWorkbenchWindows(); |
1,063,235 | public String assembleRoutingKey() {<NEW_LINE>StringBuilder routingBuilder = new StringBuilder();<NEW_LINE>// group<NEW_LINE>if (group != null && !group.isEmpty()) {<NEW_LINE>routingBuilder.append(group).append('!');<NEW_LINE>}<NEW_LINE>// service<NEW_LINE>routingBuilder.append(service);<NEW_LINE>// method<NEW_LINE>if ... | ('.').append(method); |
606,400 | private JPanel createScrollPanes() {<NEW_LINE>final JPanel panel = new JPanel();<NEW_LINE>panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));<NEW_LINE>panel.setOpaque(false);<NEW_LINE>for (final Map.Entry<String, List<ProcessInformations>> entry : processInformationsByTitle.entrySet()) {<NEW_LINE>final String titl... | windows = HtmlProcessInformationsReport.isWindowsProcessList(processInformationsList); |
271,769 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "col1".split(",");<NEW_LINE>String epl = "@Name('context') create context SegmentedByString partition by baseAB from ISupportBaseAB;\n" + "@name('s0') context SegmentedByString select count(*) as col1 from ISupportA;\n";<NEW_LINE>env.compileDeploy(... | new Object[] { 2L }); |
194,391 | private void initContextMenu() {<NEW_LINE>MenuItem infoItem = createMenuItem(DefaultI18nContext.getInstance().i18n("Document properties"), MaterialDesignIcon.INFORMATION_OUTLINE);<NEW_LINE>infoItem.setAccelerator(new KeyCodeCombination(KeyCode.P, KeyCombination.ALT_DOWN));<NEW_LINE>infoItem.setOnAction(e -> Platform.ru... | )), getOwnerModule())); |
557,152 | private <T> Path<T> shorten(Path<T> path, List<Path<?>> paths) {<NEW_LINE>PathMetadata metadata = path.getMetadata();<NEW_LINE>if (metadata.isRoot() || paths.contains(path)) {<NEW_LINE>return path;<NEW_LINE>} else if (aliases.containsKey(path)) {<NEW_LINE>return (Path<T>) aliases.get(path);<NEW_LINE>} else if (metadata... | metadata.getParent(), paths); |
1,014,810 | static Object doNative(ZLibCompObject.NativeZlibCompObject self, PythonContext ctxt, PythonObjectFactory factory, @Cached NativeLibrary.InvokeNativeFunction createCompObject, @Cached NativeLibrary.InvokeNativeFunction decompressObjCopy, @Cached NativeLibrary.InvokeNativeFunction deallocateStream, @Cached ZlibNodes.Zlib... | NFIZlibSupport zlibSupport = ctxt.getNFIZlibSupport(); |
161,398 | /*<NEW_LINE>private boolean isLiteralNodeSelected() throws JavaModelException {<NEW_LINE>ASTNode expr = getSelectedFragment().getAssociatedExpression();<NEW_LINE>if (expr == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (expr instanceof ConstantExpression) {<NEW_LINE>ConstantExpression constExpr = (ConstantExpr... | getMessage(), createContext()); |
1,761,302 | public void commit() throws ResourceException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "commit", new Object[] { this, ivMC });<NEW_LINE>ResourceException re = null;<NEW_LINE>try {<NEW_LINE>synchronized (ivMC) {<NEW_LINE>re = ivStateManager.isValid(StateManager.LT_COMMIT);<NEW_LINE>if (re == null) {<NEW... | "SPILocalTransaction committed. ManagedConnection state is " + ivMC.getTransactionStateAsString()); |
1,124,578 | public DescribeMaintenanceWindowsForTargetResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeMaintenanceWindowsForTargetResult describeMaintenanceWindowsForTargetResult = new DescribeMaintenanceWindowsForTargetResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE... | JsonToken token = context.getCurrentToken(); |
1,166,479 | private void reportNullDeref(WarningPropertySet<WarningProperty> propertySet, Location location, String type, int priority, @CheckForNull BugAnnotation variable) {<NEW_LINE>BugInstance bugInstance = new BugInstance(this, type, priority).addClassAndMethod(classContext.getJavaClass(), method);<NEW_LINE>if (variable != nu... | , -1, -1)); |
1,431,217 | private static void openWPCOMURL(Activity activity, String url, ThemeModel theme, SiteModel site) {<NEW_LINE>if (activity == null) {<NEW_LINE>AppLog.e(AppLog.T.UTILS, "ThemeWebActivity requires a non-null activity");<NEW_LINE>return;<NEW_LINE>} else if (TextUtils.isEmpty(url)) {<NEW_LINE>AppLog.e(AppLog.T.UTILS, "Theme... | putExtra(WPWebViewActivity.USE_GLOBAL_WPCOM_USER, true); |
1,493,054 | public void webSocketAbs(String url, MultiMap headers, WebsocketVersion version, List<String> subProtocols, Handler<AsyncResult<WebSocket>> handler) {<NEW_LINE>URI uri;<NEW_LINE>try {<NEW_LINE>uri = new URI(url);<NEW_LINE>} catch (URISyntaxException e) {<NEW_LINE>throw new IllegalArgumentException(e);<NEW_LINE>}<NEW_LI... | append(uri.getRawQuery()); |
1,556,029 | public void run(Debugger context, CommandArguments args, Document result) {<NEW_LINE>DebugTick tick = context.getRegisteredTick();<NEW_LINE>Element response = createResponse(args, result);<NEW_LINE>response.setAttribute("encoding", "base64");<NEW_LINE>String varName = args.get("n");<NEW_LINE>if (varName.startsWith("$")... | args.get("m"))); |
1,438,618 | public JDBCStatement prepareTableTriggersLoadStatement(@NotNull JDBCSession session, @NotNull GenericStructContainer container, @Nullable GenericTableBase table) throws SQLException {<NEW_LINE>String schema = SQLServerUtils.getSystemSchemaFQN(container.getDataSource(), container.getCatalog().getName(), getSystemSchema(... | 2, table.getName()); |
74,589 | protected void parse(BinaryReader reader) throws IOException {<NEW_LINE>image_reservation_size_ = reader.readNextInt();<NEW_LINE>component_count_ = reader.readNextInt();<NEW_LINE>image_begin_ = reader.readNextInt();<NEW_LINE>image_size_ = reader.readNextInt();<NEW_LINE>image_checksum_ = reader.readNextInt();<NEW_LINE>o... | ArtImageSectionsFactory.getArtImageSections(reader, this); |
1,134,381 | @ConditionalOnBean(BindingServiceProperties.class)<NEW_LINE>public FlowRegistrar stubFlowRegistrar(AutowireCapableBeanFactory beanFactory, BatchStubRunner batchStubRunner) {<NEW_LINE>Map<StubConfiguration, Collection<Contract>> contracts = batchStubRunner.getContracts();<NEW_LINE>for (Entry<StubConfiguration, Collectio... | StubConfiguration key = entry.getKey(); |
54,010 | public int execute(Meterpreter meterpreter, TLVPacket request, TLVPacket response) throws Exception {<NEW_LINE>String <MASK><NEW_LINE>if (line == null) {<NEW_LINE>return ERROR_FAILURE;<NEW_LINE>}<NEW_LINE>String[] parts = line.split(" ");<NEW_LINE>if (parts.length < 2) {<NEW_LINE>return ERROR_FAILURE;<NEW_LINE>}<NEW_LI... | line = Utils.runCommand("id"); |
334,950 | public static Pair<INDArray, INDArray> extractNonMaskedTimeSteps(INDArray labels, INDArray predicted, INDArray outputMask) {<NEW_LINE>if (labels.rank() != 3 || predicted.rank() != 3) {<NEW_LINE>throw new IllegalArgumentException("Invalid data: expect rank 3 arrays. Got arrays with shapes labels=" + Arrays.toString(labe... | pullRows(labels2d, 1, rowsToPull); |
1,192,611 | private void synchronizeConfig(Payload.Outbound payload, Server server, SyncRequest syncRequest) throws URISyntaxException {<NEW_LINE>logger.finer("ServerSynchronizer: synchronize config");<NEW_LINE>// Find the domain.xml entry<NEW_LINE>ModTime domainXmlMT = null;<NEW_LINE>for (ModTime modTime : syncRequest.files) {<NE... | = new ModTime(DOMAIN_XML, 0); |
1,696,077 | public static RangeBitmap map(ByteBuffer buffer) {<NEW_LINE>ByteBuffer source = buffer.slice().order(LITTLE_ENDIAN);<NEW_LINE>int cookie = source.getChar();<NEW_LINE>if (cookie != COOKIE) {<NEW_LINE>throw new InvalidRoaringFormat("invalid cookie for range bitmap (expected " + COOKIE + " but got " + cookie + ")");<NEW_L... | = source.get() & 0xFF; |
1,464,796 | private void bitrv216(double[] a, int offa) {<NEW_LINE>double x1r, x1i, x2r, x2i, x3r, x3i, x4r, x4i, x5r, x5i, x7r, x7i, x8r, x8i, x10r, x10i, x11r, x11i, x12r, x12i, x13r, x13i, x14r, x14i;<NEW_LINE>x1r = a[offa + 2];<NEW_LINE>x1i = a[offa + 3];<NEW_LINE>x2r = a[offa + 4];<NEW_LINE>x2i = a[offa + 5];<NEW_LINE>x3r = a... | a[offa + 6] = x12r; |
1,785,932 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>UUID cardId = this.getTargetPointer().getFirst(game, source);<NEW_LINE>Card card = controller.getGraveyard(<MASK><NEW_LINE>if (card != null) {<NEW_LINE>Cou... | ).get(cardId, game); |
1,089,562 | public void saveConfig() {<NEW_LINE>switch(currentView) {<NEW_LINE>case ABOVE_VIEW:<NEW_LINE>verticalDividerLocation = ((JSplitPane) currentViewPanel).getDividerLocation();<NEW_LINE>break;<NEW_LINE>case SIDE_BY_SIDE_VIEW:<NEW_LINE>horizontalDividerLocation = ((JSplitPane) currentViewPanel).getDividerLocation();<NEW_LIN... | setProperty(configurationKey + SELECTEDLAYOUT_CONFIG_KEY, currentView); |
974,289 | private Uni<List<T>> handleUserBatchLoadBlocking(Object[] arguments, Context vc) throws Exception {<NEW_LINE>SmallRyeThreadContext threadContext = Arc.container().select(SmallRyeThreadContext.class).get();<NEW_LINE>final Promise<List<T>> result = Promise.promise();<NEW_LINE>// We need some make sure that we call given ... | .subscribeAsCompletionStage().get(); |
760,826 | public void sealAndInitialize(FhirContext theContext, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) {<NEW_LINE>super.sealAndInitialize(theContext, theClassToElementDefinitions);<NEW_LINE>myNameToSearchParam = Collections.unmodifiableMap(myNameToSearchParam);<NEW_LINE>ArrayLi... | compartmentNameToSearchParams = new HashMap<>(); |
1,609,798 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>if (effectivePerson.isNotManager() && (!business.organization().person().hasRol... | find(id, Mass.class); |
776,427 | public Statement apply(final Statement base, final Description description) {<NEW_LINE>return new Statement() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void evaluate() throws Throwable {<NEW_LINE>PactVerifications pactVerifications = description.getAnnotation(PactVerifications.class);<NEW_LINE>if (pactVerification... | ).getAnnotation(PactDirectory.class); |
720,085 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>final String job;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Task task = emc.fetch(id, Task.class, ListTools.toList(Task.job_FIELDNAME));<NEW_LINE>if (null == ta... | .setPauseStartTime(new Date()); |
84,715 | private Registrar checkAndUpdateAdminControlledFields(Registrar initialRegistrar, Map<String, ?> args) {<NEW_LINE>Registrar.Builder builder = initialRegistrar.asBuilder();<NEW_LINE>Set<String> updatedAllowedTlds = RegistrarFormFields.ALLOWED_TLDS_FIELD.extractUntyped(args).orElse(ImmutableSet.of());<NEW_LINE>// Tempora... | builder, initialRegistrar, Role.ADMIN); |
1,106,621 | public SingularGuavaList2<T> build() {<NEW_LINE>com.google.common.collect.ImmutableList<java.lang.Object> rawTypes = this.rawTypes == null ? com.google.common.collect.ImmutableList.<java.lang.Object>of() : this.rawTypes.build();<NEW_LINE>com.google.common.collect.ImmutableList<Integer> integers = this.integers == null ... | rawTypes, integers, generics, extendsGenerics); |
1,414,648 | private static DynamoDBEntry toEntry(JsonElement data) {<NEW_LINE>if (data == null || data.isJsonNull()) {<NEW_LINE>return DynamoDBNull.NULL;<NEW_LINE>}<NEW_LINE>if (data.isJsonObject()) {<NEW_LINE>final Document doc = new Document();<NEW_LINE>for (final Entry<String, JsonElement> entry : data.getAsJsonObject().entrySe... | Primitive(primitive.getAsNumber()); |
630,050 | public Flux<CommandResponse<ZRangeCommand, Flux<Tuple>>> zRange(Publisher<ZRangeCommand> commands) {<NEW_LINE>return execute(commands, command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Key must not be null!");<NEW_LINE>Assert.notNull(command.getRange(), "Range must not be null!");<NEW_LINE>byte[] keyBuf = toByteA... | keyBuf, start, end, "WITHSCORES"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.