idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
706,660 | public void run(final FlowTrigger trigger, Map data) {<NEW_LINE>final ParamOut out = (ParamOut) data.get(ParamOut.class);<NEW_LINE>CreateTemporaryVolumeFromSnapshotMsg msg = new CreateTemporaryVolumeFromSnapshotMsg();<NEW_LINE>msg.setPrimaryStorageUuid(paramIn.getPrimaryStorageUuid());<NEW_LINE>msg.setSnapshot(paramIn.... | setActualSize(r.getActualSize()); |
1,102,364 | private void updateControlsEnablement() {<NEW_LINE>boolean isBinary = getWizard().getSettings().getProcessor().isBinaryFormat();<NEW_LINE>boolean clipboard = !isBinary && clipboardCheck.getSelection();<NEW_LINE>boolean isMulti = getWizard().getSettings().getDataPipes<MASK><NEW_LINE>boolean singleFile = singleFileCheck.... | ().size() > 1; |
1,393,591 | public Hcl visitForObject(Hcl.ForObject forObject, PrintOutputCapture<P> p) {<NEW_LINE>visitSpace(forObject.getPrefix(), Space.Location.FOR_OBJECT, p);<NEW_LINE>visitMarkers(forObject.getMarkers(), p);<NEW_LINE>p.out.append("{");<NEW_LINE>visit(forObject.getIntro(), p);<NEW_LINE>visitLeftPadded(":", forObject.getPaddin... | p.out.append("}"); |
161,073 | public static DescribeBandwidthLimitationResponse unmarshall(DescribeBandwidthLimitationResponse describeBandwidthLimitationResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBandwidthLimitationResponse.setRequestId<MASK><NEW_LINE>List<Bandwidth> bandwidths = new ArrayList<Bandwidth>();<NEW_LINE>for (int i = 0; i <... | (_ctx.stringValue("DescribeBandwidthLimitationResponse.RequestId")); |
847,883 | private PreviewRouteLineInfo createPreviewRouteLineInfo() {<NEW_LINE>OsmandSettings settings = requireSettings();<NEW_LINE>int colorDay = settings.CUSTOM_ROUTE_COLOR_DAY.getModeValue(appMode);<NEW_LINE>int colorNight = settings.CUSTOM_ROUTE_COLOR_NIGHT.getModeValue(appMode);<NEW_LINE>ColoringType coloringType = setting... | settings.ROUTE_SHOW_TURN_ARROWS.getModeValue(appMode); |
1,664,177 | final DBCluster executeStopDBCluster(StopDBClusterRequest stopDBClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopDBClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,109,382 | protected void actionPerformed(FrontEndProjectTreeContext context) {<NEW_LINE>DomainFolder domainFolder = context.<MASK><NEW_LINE>ProjectData projectData = domainFolder.getProjectData();<NEW_LINE>RepositoryAdapter repository = projectData.getRepository();<NEW_LINE>if (repository != null && !repository.isConnected()) {<... | getSelectedFolders().get(0); |
351,529 | public LocalSessionFactoryBuilder scanPackages(String... packagesToScan) throws HibernateException {<NEW_LINE>Set<String> entityClassNames = new TreeSet<>();<NEW_LINE>Set<String> <MASK><NEW_LINE>Set<String> packageNames = new TreeSet<>();<NEW_LINE>try {<NEW_LINE>for (String pkg : packagesToScan) {<NEW_LINE>String patte... | converterClassNames = new TreeSet<>(); |
140,102 | public static HashMap<J9ObjectPointer, Object> readObjectMonitors(J9JavaVMPointer vm) throws CorruptDataException {<NEW_LINE>HashMap<J9ObjectPointer, Object> objectMonitorsMap = new HashMap<J9ObjectPointer, Object>();<NEW_LINE>MonitorIterator iterator = new MonitorIterator(vm);<NEW_LINE>while (iterator.hasNext()) {<NEW... | J9ObjectPointer object = mon.getObject(); |
1,168,212 | public void send(Event event, EntityRef target) {<NEW_LINE>try {<NEW_LINE>BlockComponent blockComp = target.getComponent(BlockComponent.class);<NEW_LINE>if (blockComp != null) {<NEW_LINE>if (relevantChunks.contains(Chunks.toChunkPos(blockComp.getPosition(), new Vector3i()))) {<NEW_LINE>queuedOutgoingEvents.add(NetData.... | event)).build()); |
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... | camelliaF2(state, subkey, 24); |
847,985 | final ListDistributionsByWebACLIdResult executeListDistributionsByWebACLId(ListDistributionsByWebACLIdRequest listDistributionsByWebACLIdRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDistributionsByWebACLIdRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
648,671 | public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>if (keyed) {<NEW_LINE>builder.startObject(key);<NEW_LINE>} else {<NEW_LINE>builder.startObject();<NEW_LINE>builder.field(CommonFields.KEY.getPreferredName(), key);<NEW_LINE>}<NEW_LINE>if (!Double.isInfinite(from)) {<... | DOC_COUNT.getPreferredName(), docCount); |
1,263,487 | private static Pair<NewExpressionCall, NewExpression> matchesMethodCall(@NotNull ArrayCreationExpression arrayCreationExpression, @NotNull NewExpressionCall[] classes) {<NEW_LINE>// get parameter, we less then 0 we are not inside method reference<NEW_LINE>int parameterIndex = PsiElementUtils.getParameterIndexValue(arra... | (aClass, (NewExpression) newExpression); |
824,115 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<Integer> results = controller.rollDice(outcome, source, game, 4, 2, 0);<NEW_LINE>int <MASK><NEW_LINE>int secondResul... | firstResult = results.get(0); |
875,560 | protected void apply(RelOptRuleCall call, Project project, TableScan scan) {<NEW_LINE>final RelOptTable table = scan.getTable();<NEW_LINE>assert table.unwrap(ProjectableFilterableTable.class) != null;<NEW_LINE>final List<Integer> selectedColumns = new ArrayList<>();<NEW_LINE>project.getProjects().forEach(proj -> {<NEW_... | , project.getProjects())); |
1,654,814 | private static PipelineResult run(BigQueryToParquetOptions options) {<NEW_LINE>// Create the pipeline.<NEW_LINE>Pipeline pipeline = Pipeline.create(options);<NEW_LINE>TableReadOptions.<MASK><NEW_LINE>pipeline./*<NEW_LINE>* Step 1: Read records via BigQueryIO using supplied schema as a PCollection of<NEW_LINE>* ... | Builder builder = TableReadOptions.newBuilder(); |
850,283 | protected void encodeMarkup(FacesContext context, Dialog dialog) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String clientId = dialog.getClientId(context);<NEW_LINE>String positionType = dialog.getPositionType();<NEW_LINE>String style = dialog.getStyle();<NEW_LINE>String ... | : Dialog.CONTAINER_CLASS + " " + styleClass; |
444,289 | public static Quaternion stripToYaw(Quaternion q) {<NEW_LINE>float yaw;<NEW_LINE>float w = q.getW();<NEW_LINE>float x = q.getX();<NEW_LINE>float y = q.getY();<NEW_LINE>float z = q.getZ();<NEW_LINE>float sqx = x * x;<NEW_LINE>float sqy = y * y;<NEW_LINE>float sqz = z * z;<NEW_LINE>float sqw = w * w;<NEW_LINE>// if norma... | q, yaw, 0f, 0f); |
1,048,782 | private static void customize(AbstractBreakpoint ab) {<NEW_LINE>JComponent <MASK><NEW_LINE>HelpCtx helpCtx = HelpCtx.findHelp(c);<NEW_LINE>if (helpCtx == null) {<NEW_LINE>// NOI18N<NEW_LINE>helpCtx = new HelpCtx("debug.add.breakpoint");<NEW_LINE>}<NEW_LINE>Controller cc;<NEW_LINE>if (c instanceof ControllerProvider) {<... | c = AbstractBreakpointCustomizer.getCustomizerComponent(ab); |
585,650 | public Dimension preferredLayoutSize(Container target) {<NEW_LINE>synchronized (target.getTreeLock()) {<NEW_LINE>Dimension dim <MASK><NEW_LINE>int nmembers = target.getComponentCount();<NEW_LINE>boolean firstVisibleComponent = true;<NEW_LINE>for (int i = 0; i < nmembers; i++) {<NEW_LINE>Component m = target.getComponen... | = new Dimension(0, 0); |
1,812,034 | public Object call(ExecutionContext context, Object self, Object... args) {<NEW_LINE>// 15.4.4.8<NEW_LINE>JSObject o = Types.toObject(context, self);<NEW_LINE>long len = Types.toUint32(context, o.get(context, "length"));<NEW_LINE>long middle = (long) Math.floor(len / 2);<NEW_LINE>long lower = 0;<NEW_LINE>while (lower !... | hasProperty(context, "" + upper); |
1,318,095 | public void doNotifyDelFlAndSave(Object[] ptr) {<NEW_LINE>dirtySerializedFlag = true;<NEW_LINE>mConfig.putLong("lastUpdateFl", lastUpdateTimeSec);<NEW_LINE>saveConfigure();<NEW_LINE>try {<NEW_LINE>if (isNotifyWhenDeleted() && ((int) ptr[0]) > 0) {<NEW_LINE>Context app = HostInfo.getApplication();<NEW_LINE>Intent inner ... | putExtra(ActProxyMgr.ACTIVITY_PROXY_INTENT, inner); |
1,803,147 | // Implement JSCoder.decode<NEW_LINE>public Object decode(byte[] frame, int offset, int indirect, JMFMessageData msg) throws JMFMessageCorruptionException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>JmfTr.entry(this, tc, "decode", new Object[] { frame, offset, indirect, msg });<... | JSFixedListImpl(frame, offset, element); |
226,167 | private static <T> T safeCast(Object obj, ObjectCodec<T> codec) throws SerializationException {<NEW_LINE>if (obj == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ImmutableSet<Class<? extends T>> expectedTypes = codec.additionalEncodedClasses().isEmpty() ? ImmutableSet.of(codec.getEncodedClass()) : ImmutableSet.<Cla... | getName() + " but expected type one of " + expectedTypes); |
1,263,711 | protected Element windowInternal(Predicate<String> condition) {<NEW_LINE>IUIAutomationCondition isWindow = UIA.createPropertyCondition(Property.<MASK><NEW_LINE>IUIAutomationElementArray windows = UIA.getRootElement().findAll(TreeScope.Descendants, isWindow);<NEW_LINE>int count = windows.getLength();<NEW_LINE>for (int i... | ControlType, ControlType.Window.value); |
1,198,611 | private Query handleItems(QueryShardContext context, MoreLikeThisQuery mltQuery, Item[] likeItems, Item[] unlikeItems, boolean include, List<String> moreLikeFields, boolean useDefaultField) throws IOException {<NEW_LINE>// set default index, type and fields if not specified<NEW_LINE>for (Item item : likeItems) {<NEW_LI... | .setLikeFields(getFieldsFor(likeItemsResponse)); |
308,506 | public final void refresh() {<NEW_LINE>final String[] results = new String[4];<NEW_LINE>BigDecimal version = null;<NEW_LINE>try {<NEW_LINE>version = model.runReadAction(new MetadataModelAction<EjbJarMetadata, BigDecimal>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public BigDecimal run(EjbJarMetadata metadata) throws Exc... | LOCAL_HOME] = model.getLocalHome(); |
1,072,849 | public static Object[] fromTensor(Tensor<?> tensor) {<NEW_LINE>Preconditions.checkArgument(tensor.shape().numDimensions() == 1, "Can only convert tensors with shape long[]");<NEW_LINE>final int size = (int) tensor.shape().size(0);<NEW_LINE>Object[] res = new Object[size];<NEW_LINE>if (TInt32.DTYPE.equals(tensor.dataTyp... | IntNdArray) tensor.data()); |
147,386 | private void applyStyle(HTMLElement element, CSSElement selector, HTMLComponent htmlC) {<NEW_LINE>if ((element.getUi() != null) && (element.getUi().size() > 0)) {<NEW_LINE>if (!HTMLComponent.PROCESS_HTML_MP1_ONLY) {<NEW_LINE>String reset = selector.getAttributeById(CSSElement.CSS_COUNTER_RESET);<NEW_LINE>if (reset != n... | cmp, selector, element, htmlC); |
24,054 | public PriorityQueue<T> deserialize(final String s, final byte[] bytes) {<NEW_LINE>if (bytes == null || bytes.length == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final PriorityQueue<T> priorityQueue = new PriorityQueue<>(comparator);<NEW_LINE>final DataInputStream dataInputStream = new <MASK><NEW_LINE>try {<NEW_LI... | DataInputStream(new ByteArrayInputStream(bytes)); |
944,544 | protected void readBinaryChildren(ClassFile classFile, HashMap newElements, IBinaryType typeInfo) {<NEW_LINE>ArrayList childrenHandles = new ArrayList();<NEW_LINE>BinaryType type = (BinaryType) classFile.getType();<NEW_LINE>ArrayList typeParameterHandles = new ArrayList();<NEW_LINE>if (typeInfo != null) {<NEW_LINE>// m... | .typeParameters = new ITypeParameter[typeParameterHandleSize]; |
1,283,532 | protected void storagePermissionGranted() {<NEW_LINE>mHasStoragePermission = true;<NEW_LINE>if (mAttachFileWithoutPermission != null && mAttachFileWithoutPermission.size() > 0) {<NEW_LINE>mProcessingAttachmentLayout.setVisibility(View.VISIBLE);<NEW_LINE>String[] uriStrings = new String[mAttachFileWithoutPermission.size... | get(i).toString(); |
281,356 | private List<MediaSessionCompat.QueueItem> buildQueue() {<NEW_LINE>List<MediaSessionCompat.QueueItem> queue = null;<NEW_LINE>if (mPlaybackManager.getPlaylist() != null) {<NEW_LINE><MASK><NEW_LINE>int currentIndex = mPlaybackManager.getCurrentIndex();<NEW_LINE>for (int i = Math.max(0, currentIndex - 1); i < Math.min(mPl... | queue = new ArrayList<>(); |
1,678,475 | public static boolean maybeUpdateTopicConfig(AdminClient adminClient, NewTopic topicToUpdateConfigs) {<NEW_LINE>String topicName = topicToUpdateConfigs.name();<NEW_LINE>// Retrieve topic config to check if it needs an update.<NEW_LINE>ConfigResource topicResource = new ConfigResource(ConfigResource.Type.TOPIC, topicNam... | warn("Config check for topic {} failed due to failure to describe its configs.", topicName, e); |
506,156 | public void suspend() throws JRException {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Fill " + subreportFiller.fillerId + ": notifying on suspend");<NEW_LINE>}<NEW_LINE>// signals to the master filler that is has finished the page<NEW_LINE>subreportFiller.notifyAll();<NEW_LINE>if (log.isDebugEnabled()) {<... | JRException(EXCEPTION_MESSAGE_KEY_THREAD_SUBREPORT_RUNNER_WAIT_ERROR, null, e); |
1,206,947 | public int codePointBefore(int index) {<NEW_LINE>int currentLength = lengthInternal();<NEW_LINE>if (index > 0 && index <= currentLength) {<NEW_LINE>// Check if the StringBuilder is compressed<NEW_LINE>if (String.COMPACT_STRINGS && count >= 0) {<NEW_LINE>return helpers.byteToCharUnsigned(helpers.getByteFromArrayByIndex(... | + (low - Character.MIN_LOW_SURROGATE); |
1,550,331 | public void execute(RenderHandler handler) throws IOException, Exception {<NEW_LINE>Long <MASK><NEW_LINE>boolean absoluteURL = handler.getBoolean("absoluteURL", true);<NEW_LINE>SysSite site = getSite(handler);<NEW_LINE>if (CommonUtils.notEmpty(id)) {<NEW_LINE>CmsContentProduct entity = service.getEntity(id);<NEW_LINE>i... | id = handler.getLong("id"); |
706,220 | protected void dataCalculations(Player player, float skillValue) {<NEW_LINE>// BLAST MINING<NEW_LINE>if (canBlast || canDemoExpert || canBiggerBombs) {<NEW_LINE>MiningManager miningManager = UserManager.getPlayer(player).getMiningManager();<NEW_LINE>blastMiningRank = miningManager.getBlastMiningTier();<NEW_LINE>bonusTN... | miningManager.getBlastDamageModifier() / 100.0D); |
1,612,216 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String path0, String path1, String path2, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> <MASK><NEW_LINE>Work work = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>... | result = new ActionResult<>(); |
1,116,296 | private Mono<Response<Flux<ByteBuffer>>> reimageAllWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and canno... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
104,953 | public void compare() {<NEW_LINE>Map<Long, ClusterMeta> currentClustersMap = current.getClusters().values().stream().collect(Collectors.toMap(ClusterMeta<MASK><NEW_LINE>Map<Long, ClusterMeta> futureClustersMap = future.getClusters().values().stream().collect(Collectors.toMap(ClusterMeta::getDbId, clusterMeta -> cluster... | ::getDbId, clusterMeta -> clusterMeta)); |
666,874 | final GetNetworkProfileResult executeGetNetworkProfile(GetNetworkProfileRequest getNetworkProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getNetworkProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
7,791 | public IRubyObject run(ThreadContext context, ChannelFD channelFD) throws InterruptedException {<NEW_LINE>Ruby runtime = context.runtime;<NEW_LINE><MASK><NEW_LINE>ByteBuffer wrap = ByteBuffer.wrap(strByteList.unsafeBytes(), strByteList.begin(), length);<NEW_LINE>int written = 0;<NEW_LINE>try {<NEW_LINE>if (fd.chFile !=... | int length = strByteList.realSize(); |
240,742 | private void fixupSegment(SegmentCommand segment, boolean is64bit) throws IOException {<NEW_LINE>long adjustment = <MASK><NEW_LINE>if (segment.getFileOffset() > 0) {<NEW_LINE>fixup(segment.getStartIndex() + (is64bit ? 0x28 : 0x20), adjustment, is64bit ? 8 : 4, segment);<NEW_LINE>}<NEW_LINE>long sectionStartIndex = segm... | packedSegmentAdjustments.getOrDefault(segment, 0); |
1,101,323 | public static boolean isOneToOneMapping(@Nonnull Project ideProject, @Nonnull DataNode<ProjectData> externalProject) {<NEW_LINE>String linkedExternalProjectPath = null;<NEW_LINE>for (ExternalSystemManager<?, ?, ?, ?, ?> manager : ExternalSystemApiUtil.getAllManagers()) {<NEW_LINE><MASK><NEW_LINE>AbstractExternalSystemS... | ProjectSystemId externalSystemId = manager.getSystemId(); |
1,039,484 | private void ins_chars(ByteBuffer buf) {<NEW_LINE>final String string = new String(buf.array(), buf.arrayOffset() + buf.position(), buf.remaining(), IO.UTF8);<NEW_LINE>SwingUtilities.invokeLater(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>Document doc = area.getDocument();<NEW_LINE>i... | ), area.getCaretPosition()); |
872,949 | public void marshall(OpsItemSummary opsItemSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (opsItemSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(opsItemSummary.getCreatedBy(), CREATEDBY_B... | opsItemSummary.getOpsItemType(), OPSITEMTYPE_BINDING); |
558,645 | static NettyServerHandler newHandler(ChannelPromise channelUnused, Http2FrameReader frameReader, Http2FrameWriter frameWriter, ServerTransportListener transportListener, List<? extends ServerStreamTracer.Factory> streamTracerFactories, TransportTracer transportTracer, int maxStreams, boolean autoFlowControl, int flowCo... | maxConnectionAgeGraceInNanos, keepAliveEnforcer, autoFlowControl, eagAttributes); |
1,656,103 | public byte[] validateRetrieveKeyWithService(UUID universeUUID, UUID configUUID, byte[] keyRef, EncryptionAtRestConfig config, ObjectNode authConfig) {<NEW_LINE>byte[] keyVal = null;<NEW_LINE>final String endpoint = String.format("/crypto/v1/keys/%s/export", new String(keyRef));<NEW_LINE>final String sessionToken = ret... | Util.buildURL(baseUrl, endpoint); |
567,894 | public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {<NEW_LINE>if (actionId == EditorInfo.IME_ACTION_DONE) {<NEW_LINE>String voltageValue = displayPV1.getText().toString();<NEW_LINE>voltageValue = voltageValue.replace("V", "");<NEW_LINE>float <MASK><NEW_LINE>if (voltage < -5.00f) {<NEW_LINE>voltage ... | voltage = Float.parseFloat(voltageValue); |
741,097 | @NanoTimeGranularity<NEW_LINE>static ShortDuration testNanoTimeGranularity() {<NEW_LINE>long total = 0L;<NEW_LINE>for (int i = 0; i < TRIALS; i++) {<NEW_LINE>long first = System.nanoTime();<NEW_LINE>long second = System.nanoTime();<NEW_LINE>long third = System.nanoTime();<NEW_LINE>long fourth = System.nanoTime();<NEW_L... | long eighth = System.nanoTime(); |
237,137 | static Ip inferRouterId(Configuration c) {<NEW_LINE>if (c.getAllInterfaces().containsKey(LOOPBACK_INTERFACE_NAME)) {<NEW_LINE>Optional<ConcreteInterfaceAddress> maxLoIp = c.getAllInterfaces().get(LOOPBACK_INTERFACE_NAME).getAllConcreteAddresses().stream().filter(addr -> !LOOPBACK_PREFIX.containsIp(addr.getIp())).max(Co... | -> Ip.parse("0.0.0.0")); |
844,524 | final ListServiceTemplateVersionsResult executeListServiceTemplateVersions(ListServiceTemplateVersionsRequest listServiceTemplateVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listServiceTemplateVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
25,065 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = View.inflate(getContext(), R.layout.fragment_base, null);<NEW_LINE>mJzvdStd = view.findViewById(R.id.jz_video);<NEW_LINE>mOrientation = view.findViewById(R.id.orientation);<NEW_LINE>mRotationAndVideo... | getContext().getSystemService(SENSOR_SERVICE); |
542,567 | public void addTuner(Tuner tuner) {<NEW_LINE>if (!mTuners.contains(tuner)) {<NEW_LINE>// Get the tuner configuration and apply it to the tuner - this<NEW_LINE>// call should always produce a tuner configuration<NEW_LINE>TunerConfiguration config = mTunerConfigurationModel.getTunerConfiguration(tuner.getTunerType(), tun... | tuner.getUniqueID() + "] - tuner will not be included"); |
616,655 | public List<ProjectFileHandler> handle(final ResultSet rs) throws SQLException {<NEW_LINE>if (!rs.next()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final List<ProjectFileHandler> handlers = new ArrayList<>();<NEW_LINE>do {<NEW_LINE>final int <MASK><NEW_LINE>final int version = rs.getInt(2);<NEW_LINE>final long upload... | projectId = rs.getInt(1); |
226,201 | public void configure(TestElement el) {<NEW_LINE>super.configure(el);<NEW_LINE>AbstractTestElement samplerBase = (AbstractTestElement) el;<NEW_LINE>urlConfigGui.configure(el);<NEW_LINE>retrieveEmbeddedResources.setSelected(samplerBase.getPropertyAsBoolean(HTTPSamplerBase.IMAGE_PARSER));<NEW_LINE>concurrentDwn.setSelect... | .getPropertyAsBoolean(HTTPSamplerBase.CONCURRENT_DWN)); |
263,891 | protected PreparedStatement createStatement(boolean withKeys) throws SQLException {<NEW_LINE>boolean addBatches = !configuration.getUseLiterals();<NEW_LINE>listeners.preRender(context);<NEW_LINE>SQLSerializer serializer = createSerializer();<NEW_LINE>PreparedStatement stmt = null;<NEW_LINE>if (batches.isEmpty()) {<NEW_... | batch = batches.get(i); |
1,510,918 | private // /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>void requestHashesFromSeedNode(int fromHeight, NodeAddress nodeAddress) {<NEW_LINE>RequestStateHashesHandler.Listener<Res> listener = new RequestStateHashesHandler.Listener<>() {<NEW_LINE><NEW_LINE>@Override<NE... | > stateHashes = getStateHashesResponse.getStateHashes(); |
826 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2".split(",");<NEW_LINE>String epl = "@name('s0') select " + "window(sb, filter:theString like 'A%') as c0," + "window(sb) as c1," + "window(filter:theString like 'B%', sb) as c2" + " from SupportBean#keepall as sb";<NEW_LINE>env.compileDep... | sendEvent(env, "X1", 1); |
1,376,259 | private Function createDestinationFunction(Program program, Address addr, Address flowFromAddr, RegisterValue regValue, TaskMonitor monitor) {<NEW_LINE><MASK><NEW_LINE>BookmarkManager bookmarkMgr = program.getBookmarkManager();<NEW_LINE>if (!program.getMemory().contains(addr)) {<NEW_LINE>bookmarkMgr.setBookmark(flowFro... | Listing listing = program.getListing(); |
553,049 | public void loginAsync(long accountId, String passwordTemp, long providerId, boolean retry) {<NEW_LINE>mAccountId = accountId;<NEW_LINE>mPassword = passwordTemp;<NEW_LINE>mProviderId = providerId;<NEW_LINE>mRetryLogin = retry;<NEW_LINE>ContentResolver contentResolver = mContext.getContentResolver();<NEW_LINE>if (mPassw... | mPassword.startsWith(GTalkOAuth2.NAME); |
208,537 | public void presentLocalNotificationWithChannel(final ReadableMap data, final ReadableMap legacyChannelData, final Promise promise) {<NEW_LINE>HashMap<String, java.io.Serializable> details = new HashMap<>();<NEW_LINE>HashMap<String, Object> hashMap = data.toHashMap();<NEW_LINE>if (data.hasKey("categoryId")) {<NEW_LINE>... | NOTIFICATION_EXPERIENCE_ID_KEY, mExperienceKey.getScopeKey()); |
1,587,455 | public void initialize(Canvas canvas) {<NEW_LINE>this.drawCanvas = canvas;<NEW_LINE>lightGrey = ColorCache.getColor(canvas.getDisplay(), 250, 250, 250);<NEW_LINE>lightGrey2 = ColorCache.getColor(canvas.getDisplay(), 233, 233, 233);<NEW_LINE>colorWhite = ColorCache.getColor(canvas.getDisplay(), 255, 255, 255);<NEW_LINE>... | (MessageText.getString("label.binary.scale.basis")); |
431,825 | public static NinePatchIcon createShadeIcon(final int shadeWidth, final int round, final float shadeOpacity) {<NEW_LINE>// Making round value into real rounding radius<NEW_LINE>final int r = round * 2;<NEW_LINE>// Calculating width for temporary image<NEW_LINE>final int inner = Math.max(shadeWidth, round);<NEW_LINE>fin... | shadeWidth - inner - 1, false); |
107,131 | public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("attach" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>String tableName = param.getLeafExpression().getIdentifierName();<NEW_L... | = new String[size - 1]; |
852,146 | private SeekableStreamDataSourceMetadata<String, String> createDataSourceMetadataWithClosedOrExpiredPartitions(SeekableStreamDataSourceMetadata<String, String> currentMetadata, Set<String> terminatedPartitionIds, String terminationMarker) {<NEW_LINE>final KinesisDataSourceMetadata dataSourceMetadata = (KinesisDataSourc... | newExclusiveStartPartitions = new HashSet<>(); |
553,436 | public static Set<javax.lang.model.element.Modifier> reflectionModifiersToModel(int modifiers) {<NEW_LINE>Set<javax.lang.model.element.Modifier> ret = new HashSet<javax.lang.model.element.Modifier>();<NEW_LINE>if (java.lang.reflect.Modifier.isAbstract(modifiers)) {<NEW_LINE>ret.add(javax.lang.model.element.Modifier.ABS... | model.element.Modifier.PRIVATE); |
1,399,491 | public void parse(DLNAMediaInfo media, InputFile file, Format ext, int type, RendererConfiguration renderer) {<NEW_LINE>if (file.getFile() != null) {<NEW_LINE>if (ext.getIdentifier() == Identifier.RA) {<NEW_LINE>// Special parsing for RealAudio 1.0 and 2.0 which isn't handled by MediaInfo or JAudioTagger<NEW_LINE>FileC... | toPath(), StandardOpenOption.READ); |
1,266,116 | public ListJobsByPipelineResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListJobsByPipelineResult listJobsByPipelineResult = new ListJobsByPipelineResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +... | int originalDepth = context.getCurrentDepth(); |
735,823 | protected DoubleArray[] combinedMatrixEqnSolver(double[][] doubMat1, double[] doubVec, double[][] doubMat2) {<NEW_LINE>int size = doubVec.length;<NEW_LINE>DoubleArray[] res = new DoubleArray[size + 1];<NEW_LINE>DoubleMatrix doubMat2Matrix = DoubleMatrix.copyOf(doubMat2);<NEW_LINE>double[] u = new double[size - 1];<NEW_... | [i][i + 1]; |
937,368 | public void transform() {<NEW_LINE>File destinationFile = getDestinationFile().get().getAsFile();<NEW_LINE>getFs().copy(copySpec -> {<NEW_LINE>copySpec.from(getHtmlFile());<NEW_LINE>copySpec.into(destinationFile.getParentFile());<NEW_LINE>copySpec.rename(s -> destinationFile.getName());<NEW_LINE>// TODO: Maybe this cou... | parameters = new HashMap<>(); |
1,258,899 | private void handle(AllocateIpMsg msg) {<NEW_LINE>IpAllocatorType strategyType = getIpAllocatorType(msg);<NEW_LINE>IpAllocatorStrategy ias = l3NwMgr.getIpAllocatorStrategy(strategyType);<NEW_LINE>AllocateIpReply reply = new AllocateIpReply();<NEW_LINE>UsedIpInventory ip = ias.allocateIp(msg);<NEW_LINE>if (ip == null) {... | bus.reply(msg, reply); |
1,841,425 | private Expression verifyAssignment(final long op, final Expression lhs, final Expression rhs) {<NEW_LINE>final TokenType opType = Token.descType(op);<NEW_LINE>switch(opType) {<NEW_LINE>case ASSIGN:<NEW_LINE>case ASSIGN_ADD:<NEW_LINE>case ASSIGN_BIT_AND:<NEW_LINE>case ASSIGN_BIT_OR:<NEW_LINE>case ASSIGN_BIT_XOR:<NEW_LI... | ), new JoinPredecessorExpression(rhs)); |
1,773,486 | public void log(TraceComponent tc) {<NEW_LINE>Tr.debug(tc, MessageFormat.format("Delayed Class [ {0} ]", getHashText()));<NEW_LINE>Tr.debug(tc, MessageFormat.format(" classInfo [ {0} ]", ((classInfo != null) ? classInfo.getHashText() : null)));<NEW_LINE>Tr.debug(tc, MessageFormat.format(" isArtificial [ {0} ]", Boole... | getHashText() : null))); |
1,100,006 | public synchronized // find all initilizable spi and init it.<NEW_LINE>void init() {<NEW_LINE>if (!inited) {<NEW_LINE>try {<NEW_LINE>LoggerUtil.info("AllSpiInitialization init.");<NEW_LINE>ExtensionLoader<Initializable> extensionLoader = ExtensionLoader.getExtensionLoader(Initializable.class);<NEW_LINE>List<Initializab... | LoggerUtil.error("Initializable spi init fail!", e); |
388,215 | public Tuple3<Boolean, Double, Map<String, String>>[] detect(MTable series, boolean detectLast) throws Exception {<NEW_LINE>MTable mt = OutlierUtil.getMTable(series, this.params);<NEW_LINE>TableSummary summary = mt.summary();<NEW_LINE>int num = mt.getNumRow();<NEW_LINE>Tuple3<Boolean, Double, Map<String, String>>[] res... | ] data = new double[num]; |
89,880 | public ListMitigationActionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListMitigationActionsResult listMitigationActionsResult = new ListMitigationActionsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NE... | String currentParentElement = context.getCurrentParentElement(); |
995,436 | public static ListNodeLabelsResponse unmarshall(ListNodeLabelsResponse listNodeLabelsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listNodeLabelsResponse.setRequestId(_ctx.stringValue("ListNodeLabelsResponse.RequestId"));<NEW_LINE>listNodeLabelsResponse.setCode(_ctx.integerValue("ListNodeLabelsResponse.Code"));<NEW_LI... | ("ListNodeLabelsResponse.Data[" + i + "].LabelValue")); |
351,822 | public ResponseEntity<Void> deletePetWithHttpInfo(Long petId, String apiKey) throws RestClientException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'petId' is set<NEW_LINE>if (petId == null) {<NEW_LINE>throw new <MASK><NEW_LINE>}<NEW_LINE>// create path and map variables<NEW_LIN... | HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'petId' when calling deletePet"); |
392,333 | protected void updateLayoutState() {<NEW_LINE>if (list.getLayoutOrientation() != JList.VERTICAL) {<NEW_LINE>super.updateLayoutState();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// pasted from BasicListUI to provide min-height<NEW_LINE><MASK><NEW_LINE>int fixedCellWidth = list.getFixedCellWidth();<NEW_LINE>cellWidth = fixedC... | int fixedCellHeight = list.getFixedCellHeight(); |
1,699,355 | ImmutableSet<AdTableId> retrieveDistinctIds(@NonNull final String tableName, @NonNull final String idColumnName) {<NEW_LINE>final String sql = "SELECT " + DB_FUNCTION_RETRIEVE_DISTINCT_IDS + "(?,?)";<NEW_LINE>final Object[] sqlParams = new Object[] { tableName, idColumnName };<NEW_LINE>final PreparedStatement pstmt = D... | .of(tableName, idColumnName)); |
601,751 | public String sayHello(String vote, int expectedDirection) {<NEW_LINE>if (expectedDirection < 0) {<NEW_LINE>return "Hello, this is HelloImplTwowayService";<NEW_LINE>} else {<NEW_LINE>boolean result = false;<NEW_LINE>try {<NEW_LINE>if (vote.endsWith("clear")) {<NEW_LINE>XAResourceImpl.clear();<NEW_LINE>}<NEW_LINE>final ... | return "Catch SystemException:" + e.toString(); |
1,003,823 | public void update(DataPoint dataPoint, double weight, int targetClass) {<NEW_LINE>double y_t = targetClass * 2 - 1;<NEW_LINE>Vec x_t = dataPoint.getNumericalValues();<NEW_LINE>double pre = getPreScore(x_t);<NEW_LINE>double score = getScore(y_t, pre);<NEW_LINE>switch(mode) {<NEW_LINE>case NC:<NEW_LINE>break;<NEW_LINE>d... | k.addToCache(x_t, accelCache); |
1,496,523 | private Stream<Observation> convertToObservations(final MetricData metricData) {<NEW_LINE>List<Observation> observations = new ArrayList<>();<NEW_LINE>MetricCategory category = categoryNameToMetricCategory(metricData.getInstrumentationLibraryInfo().getName());<NEW_LINE>Collection<?> points;<NEW_LINE>switch(metricData.g... | labels = new ArrayList<>(); |
1,180,259 | public void emitSwitch(SwitchNode x) {<NEW_LINE>Logger.traceBuildLIR(<MASK><NEW_LINE>assert x.defaultSuccessor() != null;<NEW_LINE>LabelRef defaultTarget = getLIRBlock(x.defaultSuccessor());<NEW_LINE>int keyCount = x.keyCount();<NEW_LINE>if (keyCount == 0) {<NEW_LINE>gen.emitJump(defaultTarget);<NEW_LINE>} else {<NEW_L... | Logger.BACKEND.OpenCL, "SWITCH NODE OCL:"); |
342,965 | public void onApiOfflineEvent(ApiOfflineEvent event) {<NEW_LINE>if (mCurrentActivity != null) {<NEW_LINE>final Activity activity = mCurrentActivity.get();<NEW_LINE>if (activity != null && !activity.isFinishing()) {<NEW_LINE>if (apiOfflineSnackBar == null || !apiOfflineSnackBar.isShown()) {<NEW_LINE>String message = eve... | SpannableString s = new SpannableString(message); |
520,543 | private static Text _findMax(Scanner scanner, Text start, boolean inclStart, Text end, boolean inclEnd) {<NEW_LINE>// System.out.printf("findMax(%s, %s, %s, %s)%n", Key.toPrintableString(start.getBytes(), 0,<NEW_LINE>// start.getLength(), 1000), inclStart,<NEW_LINE>// Key.toPrintableString(end.getBytes(), 0, end.getLen... | ), true, end, inclEnd); |
511,311 | public static void centerEdgeLabel(final ZyGraph graph, final NaviEdge edge, final boolean zoom) {<NEW_LINE>Preconditions.checkNotNull(graph, "IE02101: Graph argument can not be null");<NEW_LINE><MASK><NEW_LINE>final double oldZoom = graph.getView().getZoom();<NEW_LINE>if (!edge.isVisible()) {<NEW_LINE>final NaviNode s... | Preconditions.checkNotNull(edge, "IE02102: Edge argument can not be null"); |
2,612 | public void addDelivery(String endpointName, int deliveryMethod, Method method, int instanceID) {<NEW_LINE>svLogger.entering(CLASSNAME, "addDelivery", new Object[] { this, endpointName, new Integer(deliveryMethod), method, new Integer(instanceID) });<NEW_LINE>checkEndpointName(endpointName);<NEW_LINE>if (instanceID < 0... | ":" + endpointName + ":" + instanceID); |
1,630,487 | private void testDistinct() {<NEW_LINE>Flowable<Person> personFlowable = realm.asFlowable().map(realm -> realm.where(Person.class).sort("name").findAll<MASK><NEW_LINE>// distinct() and distinctUntilChanged() uses standard equals with older objects stored in a HashMap.<NEW_LINE>// Realm objects auto-update which means t... | ().get(0)); |
88,432 | public void loadCreditPanel() {<NEW_LINE>v_CreditPanel = GridFactory.newGridLayout();<NEW_LINE>v_CreditPanel.setWidth("100%");<NEW_LINE>v_CreditPanel.setHeight("175px");<NEW_LINE>Rows rows = v_CreditPanel.newRows();<NEW_LINE>Row row = rows.newRow();<NEW_LINE>row.setStyle("303px");<NEW_LINE>// C_Payment_v.TenderType<NEW... | ValueNamePair[] data = getCCMonths(); |
201,568 | public void handleCommand(InsteonPLMBindingConfig conf, Command cmd, InsteonDevice dev) {<NEW_LINE>try {<NEW_LINE>if (cmd == OnOffType.ON) {<NEW_LINE>int <MASK><NEW_LINE>Msg m = dev.makeStandardMessage((byte) 0x0f, (byte) 0x12, (byte) level, s_getGroup(conf));<NEW_LINE>dev.enqueueMessage(m, m_feature);<NEW_LINE>logger.... | level = getMaxLightLevel(conf, 0xff); |
395,885 | private SourceMethodElementInfo createMethodInfo(MethodInfo methodInfo, SourceMethod handle) {<NEW_LINE>IJavaElement[] elements = getChildren(methodInfo);<NEW_LINE>SourceMethodElementInfo info;<NEW_LINE>if (methodInfo.isConstructor) {<NEW_LINE>info = elements.length == 0 ? new SourceConstructorInfo() : new SourceConstr... | info.setSourceRangeStart(methodInfo.declarationStart); |
1,000,407 | public boolean matchesAsSource(final IZoomSource zoomSource) {<NEW_LINE>if (tableRecordIdTarget) {<NEW_LINE>// the source always matches if the target is ReferenceTarget<NEW_LINE>logger.debug("matchesAsSource - return true because tableRecordIdTarget=true; this={}", this);<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (... | warn("matchesAsSource - return false because zoomSource.isGenericZoomOrigin()==false; this={}; zoomSource={}", this, zoomSource); |
71,731 | public void start(final BundleContext context) throws Exception {<NEW_LINE>if (System.getProperty("netbeans.home") != null) {<NEW_LINE>throw new IllegalStateException("Should not be run from inside regular NetBeans module system");<NEW_LINE>}<NEW_LINE>String storage = context.getProperty(Constants.FRAMEWORK_STORAGE);<N... | System.setProperty("TopSecurityManager.disable", "true"); |
973,220 | public okhttp3.Call createBranchProtectionRuleCall(String repository, BranchProtectionRule branchProtectionRule, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = branchProtectionRule;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/repositories/{repository... | = new ArrayList<Pair>(); |
23,873 | void paint(ParagraphView pView, Graphics2D g, Shape pAlloc, Rectangle clipBounds) {<NEW_LINE>Rectangle2D.Double pRect = ViewUtils.shape2Bounds(pAlloc);<NEW_LINE>if (wrapInfo != null) {<NEW_LINE>int startWrapLineIndex;<NEW_LINE>int endWrapLineIndex;<NEW_LINE>double wrapY = clipBounds.y - pRect.y;<NEW_LINE>float wrapLine... | .height + (wrapLineHeight - 1); |
1,394,379 | public Response<Void> deleteByIdWithResponse(String id, Context context) {<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 val... | format("The resource ID '%s' is not valid. Missing path segment 'roleAssignments'.", id))); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.