idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,644,585 | protected BeanMetadataElement parseSource(Element element, ParserContext parserContext) {<NEW_LINE>BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(MBeanTreePollingMessageSource.class);<NEW_LINE>IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "server", "server");<NEW_L... | beanName = element.getAttribute("converter"); |
386,546 | private Value evaluateAsConstant(Context context) {<NEW_LINE>String constantName = "constant(" + vespaName() + ")";<NEW_LINE>Value result = context.get(constantName);<NEW_LINE>if (result == DoubleValue.NaN) {<NEW_LINE>if (constantValue != null) {<NEW_LINE>result = constantValue;<NEW_LINE>} else if (inputs.size() == 0) ... | -> i.evaluateAsConstant(context)); |
414,088 | public void emitCode(CompilationResultBuilder crb, AArch64MacroAssembler masm) {<NEW_LINE>ASIMDSize size = ASIMDSize.fromVectorKind(input.getPlatformKind());<NEW_LINE>ElementSize eSize = ElementSize.fromKind(input.getPlatformKind());<NEW_LINE>Register resultReg = asRegister(result);<NEW_LINE>Register inputReg = asRegis... | size, eSize, resultReg, inputReg); |
541,197 | public GetResult merge(List<PartitionGetResult> partResults) {<NEW_LINE>int size = partResults.size();<NEW_LINE>List<ServerRow> rowSplits = new ArrayList<ServerRow>(size);<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>rowSplits.add(((PartitionGetRowResult) partResults.get(i)).getRowSplit());<NEW_LINE>}<NEW_LINE>Sp... | int) row.getStartCol()); |
922,209 | public HtmlResponse update(final EditForm form) {<NEW_LINE>verifyCrudMode(form.crudMode, CrudMode.EDIT);<NEW_LINE>validate(form, messages -> {<NEW_LINE>}, this::asEditHtml);<NEW_LINE>validateFields(form, v -> throwValidationError(v, this::asEditHtml));<NEW_LINE>verifyToken(this::asEditHtml);<NEW_LINE>getDoc(form).ifPre... | remove(fessConfig.getIndexFieldSeqNo()); |
1,696,624 | private void initPermissionControls(MultiplePermissionTarget item, GridLayout editGrid) {<NEW_LINE>int i = 0;<NEW_LINE>MetaClass metaClass = item.getEntityMetaClass();<NEW_LINE>for (AttributeTarget target : item.getPermissions()) {<NEW_LINE>if (!userSession.isEntityAttrPermitted(metaClass, target.getId(), EntityAttrAcc... | getAttributeLabel(), 0, gridRow); |
237,635 | protected IntervalsSource analyzeText(CachingTokenFilter stream, int maxGaps, IntervalMode mode) throws IOException {<NEW_LINE>TermToBytesRefAttribute termAtt = <MASK><NEW_LINE>PositionIncrementAttribute posIncAtt = stream.addAttribute(PositionIncrementAttribute.class);<NEW_LINE>PositionLengthAttribute posLenAtt = stre... | stream.getAttribute(TermToBytesRefAttribute.class); |
904,501 | public static void stopSpan(@Advice.Return(readOnly = false, typing = Typing.DYNAMIC) Object returnValue, @Advice.Thrown Throwable throwable, @Advice.Local("otelCallDepth") CallDepth callDepth, @Advice.Local("otelHandlerData") HandlerData handlerData, @Advice.Local("otelContext") Context context, @Advice.Local("otelSco... | context, handlerData, null, null); |
1,655,194 | private static CatalogBaseTable createNewTableDesc(ObjectPath objectPath, TableSchema schema, Params params) {<NEW_LINE>String[<MASK><NEW_LINE>String partitionSpec = params.get(HiveCatalogParams.PARTITION);<NEW_LINE>if (!StringUtils.isNullOrWhitespaceOnly(partitionSpec)) {<NEW_LINE>partitionCols = partitionSpec.split("... | ] partitionCols = new String[0]; |
1,648,919 | static // package visible for unit testing<NEW_LINE>MBeanServer registerJolokiaMBeanServerHolderMBean(MBeanServer pServer) {<NEW_LINE>JolokiaMBeanServerHolder holder = new JolokiaMBeanServerHolder();<NEW_LINE>ObjectName holderName = createObjectName(JolokiaMBeanServerHolderMBean.OBJECT_NAME);<NEW_LINE>MBeanServer jolok... | IllegalStateException("Internal: JolokiaMBeanHolder cannot be registered to JMX: " + e, e); |
765,273 | public static DescribeRenewalPriceResponse unmarshall(DescribeRenewalPriceResponse describeRenewalPriceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRenewalPriceResponse.setRequestId<MASK><NEW_LINE>PriceInfo priceInfo = new PriceInfo();<NEW_LINE>Price price = new Price();<NEW_LINE>price.setOriginalPrice(_ctx.f... | (_ctx.stringValue("DescribeRenewalPriceResponse.RequestId")); |
308,886 | public Map<String, Object> perform() {<NEW_LINE>// Keeps a list of users<NEW_LINE>ArrayList<Map<String, String>> list = null;<NEW_LINE>// Keeps the objects in container needed by the Ajax proxy (client-side)<NEW_LINE>Map<String, Object> results = new HashMap<String, Object>(2);<NEW_LINE>// Keeps the grand total of item... | HashMap<String, String>(); |
338,739 | public boolean requery() {<NEW_LINE>if (isClosed()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>long timeStart = 0;<NEW_LINE>if (Config.LOGV) {<NEW_LINE>timeStart = System.currentTimeMillis();<NEW_LINE>}<NEW_LINE>mDatabase.lock();<NEW_LINE>try {<NEW_LINE>if (mWindow != null) {<NEW_LINE>mWindow.clear();<NEW_LINE>}<NEW_... | long timeEnd = System.currentTimeMillis(); |
1,845,161 | public ProfilingPoint create(Lookup.Provider project) {<NEW_LINE>if (project == null) {<NEW_LINE>// project not defined, will be detected from most active Editor or Main Project will be used<NEW_LINE>project = Utils.getCurrentProject();<NEW_LINE>}<NEW_LINE>CodeProfilingPoint.Location[] selectionLocations = Utils.getCur... | toFileObject(file).getName(); |
1,177,767 | public DescribeNetworkInterfacesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeNetworkInterfacesResult describeNetworkInterfacesResult = new DescribeNetworkInterfacesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NE... | XMLEvent xmlEvent = context.nextEvent(); |
79,636 | public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {<NEW_LINE>boolean result = false;<NEW_LINE>try {<NEW_LINE>float diffY = e2.getY() - e1.getY();<NEW_LINE>float diffX = e2.getX<MASK><NEW_LINE>if (Math.abs(diffX) > Math.abs(diffY)) {<NEW_LINE>if (Math.abs(diffX) > SWIPE_THRESHOLD &... | () - e1.getX(); |
519,499 | public void marshall(ScheduleActionSettings scheduleActionSettings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (scheduleActionSettings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(scheduleActionSett... | scheduleActionSettings.getMotionGraphicsImageActivateSettings(), MOTIONGRAPHICSIMAGEACTIVATESETTINGS_BINDING); |
212,885 | private void expand() {<NEW_LINE>int newCapacity = this.items.length;<NEW_LINE>if (this.items.length >= MAX_CAPACITY) {<NEW_LINE>// Can't allocate an array bigger than this.<NEW_LINE>throw new OutOfMemoryError("Unable to grow SimpleDequeue.");<NEW_LINE>}<NEW_LINE>if (newCapacity >= MAX_HALF) {<NEW_LINE>// We double cap... | head, newItems, 0, size); |
511,843 | public void run() {<NEW_LINE>while (!serverSocket.isClosed()) {<NEW_LINE>try {<NEW_LINE>// wait for next client<NEW_LINE><MASK><NEW_LINE>// reject connection if already one client connected<NEW_LINE>if (clientSocket != null && !clientSocket.isClosed()) {<NEW_LINE>logger.info("Refused connection of client " + candidateS... | Socket candidateSocket = serverSocket.accept(); |
1,504,539 | public void inherit(AristaBgpProcess bgpGlobal, AristaBgpVrf bgpVrf, Warnings w) {<NEW_LINE>Optional<String> pgName = Optional.ofNullable(_peerGroup);<NEW_LINE>Optional<AristaBgpPeerGroupNeighbor> pgn = pgName.map(bgpGlobal::getPeerGroup);<NEW_LINE>// Inherit the overall (non-address-family) specific settings.<NEW_LINE... | ).ifPresent(neighbor::inheritFrom); |
1,306,433 | static void createContent(Project project, ToolWindow toolWindow, EventLogConsole console, String title) {<NEW_LINE>// update default Event Log tab title<NEW_LINE>ContentManager contentManager = toolWindow.getContentManager();<NEW_LINE>Content generalContent = contentManager.getContent(0);<NEW_LINE>if (generalContent !... | setTargetComponent(editor.getContentComponent()); |
964,968 | public void loadData(FileObject file, FileLock dataLock) throws IOException {<NEW_LINE>try {<NEW_LINE>BufferedInputStream inputStream = new BufferedInputStream(file.getInputStream());<NEW_LINE>String encoding = encodingHelper.detectEncoding(inputStream);<NEW_LINE>if (!encodingHelper.getEncoding().equals(encoding)) {<NE... | append(buf, 0, i); |
382,436 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception {<NEW_LINE>String executorSeed = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Work work = emc.fetch(id, Work.class, ListTools.toList(Work.job_F... | copier.copy(wi, work); |
468,041 | public EVD eigen(boolean vl, boolean vr, boolean overwrite) {<NEW_LINE>if (m != n) {<NEW_LINE>throw new IllegalArgumentException(String.format("The matrix is not square: %d x %d", m, n));<NEW_LINE>}<NEW_LINE>BigMatrix eig = overwrite ? this : clone();<NEW_LINE>if (isSymmetric()) {<NEW_LINE>DoublePointer w = new DoubleP... | throw new ArithmeticException("LAPACK SYEV error code: " + info); |
462,219 | public final ActionInGroup addAction(@Nonnull AnAction action, @Nonnull Constraints constraint, @Nonnull ActionManager actionManager) {<NEW_LINE>if (action == this) {<NEW_LINE>throw new IllegalArgumentException(CANT_ADD_ITSELF + action);<NEW_LINE>}<NEW_LINE>// check that action isn't already registered<NEW_LINE>if (!(a... | .create(action, constraint)); |
1,419,364 | public void endTessellation() {<NEW_LINE>if (root.tessUpdate) {<NEW_LINE>if (root.tessKind == TRIANGLES && hasPolys) {<NEW_LINE>pgl.bindBuffer(PGL.ARRAY_BUFFER, bufPolyVertex.glId);<NEW_LINE>tessGeo.finalPolyVerticesBuffer(firstModifiedPolyVertex, lastModifiedPolyVertex);<NEW_LINE>pgl.bindBuffer(PGL.ARRAY_BUFFER, bufPo... | PGL.ARRAY_BUFFER, bufPointColor.glId); |
189,093 | public void validate(I_AD_ColumnCallout callout) {<NEW_LINE>if (Check.isEmpty(callout.getClassname(), true)) {<NEW_LINE>throw new AdempiereException("No classname specified");<NEW_LINE>}<NEW_LINE>final String fqMethodName = callout.getClassname();<NEW_LINE>final int idx = fqMethodName.lastIndexOf('.');<NEW_LINE>final S... | GridField.class, Object.class }; |
1,763,825 | public void merge(final TypeDefinition type) {<NEW_LINE>if (null == clazz) {<NEW_LINE>clazz = type.getClazz();<NEW_LINE>} else if (null != type.getClazz() && !clazz.equals(type.getClazz())) {<NEW_LINE>throw new SchemaException("Unable to merge schemas. Conflict with type class, options are: " + clazz.getName() + " and ... | setSerialiser(type.getSerialiser()); |
329,456 | private boolean addAutoMapConnections(Input input, Map<Set<String>, OutputRef> outputTagMap, Set<Connection> currentConnections) {<NEW_LINE>boolean result = false;<NEW_LINE>Set<String> inputTags = input.getTags();<NEW_LINE>OutputRef outputRef = null;<NEW_LINE>boolean conflict = false;<NEW_LINE>if (inputTags.size() > 0)... | .getOutputName(), null)); |
435,180 | public static Map<String, List<SSLCertificateVH>> fetchACMCertficateInfo(BasicSessionCredentials temporaryCredentials, String skipRegions, String account, String accountName) {<NEW_LINE>log.info("ACM cert method Entry");<NEW_LINE>Map<String, List<SSLCertificateVH>> sslVH = new LinkedHashMap<>();<NEW_LINE>List<Certifica... | e.getMessage() + "\"}"); |
1,534,133 | public void run() throws IOException {<NEW_LINE>FileObject service = FileUtil.createData(getProject().getProjectDirectory(), interfaceClassPath);<NEW_LINE>List<String> lines = new ArrayList<String>();<NEW_LINE>InputStream serviceIS = service.getInputStream();<NEW_LINE>try {<NEW_LINE>BufferedReader br = new BufferedRead... | (serviceIS, StandardCharsets.UTF_8)); |
589,866 | public Map<String, Object> props() {<NEW_LINE>Map<String, Object> props = super.props();<NEW_LINE>props.put(Constants.KEY_DISTRIBUTION_EXECUTABLE, executable);<NEW_LINE>props.putAll(java.getResolvedExtraProperties());<NEW_LINE>safePut(Constants.KEY_DISTRIBUTION_JAVA_GROUP_ID, java.getGroupId(), props, true);<NEW_LINE>s... | put(Constants.KEY_DISTRIBUTION_JAVA_VERSION_MINOR, ""); |
553,661 | final DescribeStateMachineForExecutionResult executeDescribeStateMachineForExecution(DescribeStateMachineForExecutionRequest describeStateMachineForExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeStateMachineForExecutionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri... | invoke(request, responseHandler, executionContext); |
979,155 | private void collectSpecializedImplementors(TypeElement type, Set<TypeElement> set, List<BindingQualifier> bindings) {<NEW_LINE>Set<TypeElement> result <MASK><NEW_LINE>Set<TypeElement> toProcess = new HashSet<TypeElement>();<NEW_LINE>toProcess.add(type);<NEW_LINE>while (toProcess.size() > 0) {<NEW_LINE>TypeElement elem... | = new HashSet<TypeElement>(); |
766,144 | private void saveSettings() {<NEW_LINE>restartRequired = false;<NEW_LINE>reconnectRequired = false;<NEW_LINE>saveStringSettings();<NEW_LINE>saveBooleanSettings();<NEW_LINE>saveIntegerSettings();<NEW_LINE>saveListSettings();<NEW_LINE>saveMapSettings();<NEW_LINE>owner.setUsercolorData(getPanel(UsercolorSettings.class).ge... | .class).getData()); |
694,010 | public static List<AnAction> buildSurroundActions(final Project project, final Editor editor, PsiFile file, @Nullable Surrounder surrounder) {<NEW_LINE>SelectionModel selectionModel = editor.getSelectionModel();<NEW_LINE>boolean hasSelection = selectionModel.hasSelection();<NEW_LINE>if (!hasSelection) {<NEW_LINE>select... | exclusiveSurroundDescriptors = new ArrayList<>(); |
732,149 | public final AnnotationsContext annotations() throws RecognitionException {<NEW_LINE>AnnotationsContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 26, RULE_annotations);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>((AnnotationsContext) _localctx).anns = new Array... | AnnotationsContext(_ctx, getState()); |
563,837 | public void validate() {<NEW_LINE>if (virtualNetworkGateway1() == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException("Missing required property virtualNetworkGateway1 in model" + " VirtualNetworkGatewayConnectionListEntityPropertiesFormat"));<NEW_LINE>} else {<NEW_LINE>virtualNetworkGateway1... | new IllegalArgumentException("Missing required property connectionType in model" + " VirtualNetworkGatewayConnectionListEntityPropertiesFormat")); |
339,132 | public void validateSystemTag(String resourceUuid, Class resourceType, String systemTag) {<NEW_LINE>Map<String, String> tokens = LoadBalancerSystemTags.BALANCER_WEIGHT.getTokensByTag(systemTag);<NEW_LINE>String nicUuid = tokens.get(LoadBalancerSystemTags.BALANCER_NIC_TOKEN);<NEW_LINE>if (!dbf.isExist(nicUuid, VmNicVO.c... | ("nic[uuid:%s] not found. Please correct your system tag[%s] of loadbalancer", nicUuid, systemTag)); |
725,996 | protected void createMapViews() {<NEW_LINE>mapView = getMapView();<NEW_LINE>mapView.getModel().frameBufferModel.setOverdrawFactor(1.0d);<NEW_LINE>mapView.getModel().init(this.preferencesFacade);<NEW_LINE>// Use external scale bar<NEW_LINE>mapView.getMapScaleBar().setVisible(false);<NEW_LINE>MapScaleBarImpl mapScaleBar ... | mapScaleBar.setSecondaryDistanceUnitAdapter(ImperialUnitAdapter.INSTANCE); |
230,138 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent sourcePermanent = game.getPermanent(source.getSourceId());<NEW_LINE>if (controller != null && sourcePermanent != null) {<NEW_LINE>int max = Integer.MIN_VALUE;<NEW_LINE>Player newCo... | EndOfGame, newController.getId()); |
1,488,469 | public static void processXor() {<NEW_LINE>System.out.println("Boolean XOR");<NEW_LINE>List<InputNeuron> inputs = new ArrayList<>();<NEW_LINE>inputs.add(new InputNeuron());<NEW_LINE>inputs.add(new InputNeuron());<NEW_LINE>List<RegularNeuron> hidden1 = new ArrayList<>();<NEW_LINE>hidden1.add(new RegularNeuron(-0.5));<NE... | inputs.get(1))); |
991,731 | public static String sendEMail(HttpServletRequest request, WebUser to, String msgType, Object[] parameter) {<NEW_LINE>MobileSessionCtx wsc = MobileSessionCtx.get(request);<NEW_LINE>MStore wStore = wsc.wstore;<NEW_LINE>MMailMsg mailMsg = wStore.getMailMsg(msgType);<NEW_LINE>//<NEW_LINE>StringBuffer subject = new StringB... | .append(parameter[1]); |
1,513,789 | private List<WindowedRow> findSession(final ReadOnlySessionStore<GenericKey, GenericRow> store, final GenericKey key, final Range<Instant> windowStart, final Range<Instant> windowEnd) {<NEW_LINE>try (KeyValueIterator<Windowed<GenericKey>, GenericRow> it = cacheBypassFetcher.fetch(store, key)) {<NEW_LINE>final Builder<W... | key, next.value, rowTime); |
297,413 | public void process(ComplexEventChunk complexEventChunk) {<NEW_LINE>complexEventChunk.reset();<NEW_LINE>ComplexEventChunk<ComplexEvent> outputEventChunk = new ComplexEventChunk<>();<NEW_LINE>RateLimiterState state = stateHolder.getState();<NEW_LINE>try {<NEW_LINE>synchronized (state) {<NEW_LINE>while (complexEventChunk... | remove(groupedComplexEvent.getGroupKey()); |
215,300 | public static MoveAlbumPhotosResponse unmarshall(MoveAlbumPhotosResponse moveAlbumPhotosResponse, UnmarshallerContext context) {<NEW_LINE>moveAlbumPhotosResponse.setRequestId(context.stringValue("MoveAlbumPhotosResponse.RequestId"));<NEW_LINE>moveAlbumPhotosResponse.setCode<MASK><NEW_LINE>moveAlbumPhotosResponse.setMes... | (context.stringValue("MoveAlbumPhotosResponse.Code")); |
884,338 | private void writeProperties(Bson bson, MongoPersistentEntity<?> entity, PersistentPropertyAccessor<?> accessor, DocumentAccessor dbObjectAccessor, @Nullable MongoPersistentProperty idProperty) {<NEW_LINE>// Write the properties<NEW_LINE>for (MongoPersistentProperty prop : entity) {<NEW_LINE>if (prop.equals(idProperty)... | writeSimpleInternal(value, bson, prop); |
1,527,227 | private void copyLevelParameters(Concrete.Definition def) {<NEW_LINE>if (def.enclosingClass != null && (def.getPLevelParameters() == null || def.getHLevelParameters() == null)) {<NEW_LINE>Concrete.GeneralDefinition enclosingDef = myConcreteProvider.getConcrete(def.enclosingClass);<NEW_LINE>if (enclosingDef instanceof C... | setPLevelParameters(classDef.getPLevelParameters()); |
886,725 | private void syntaxError(int id, int startPosition, int endPosition, int currentKind, char[] currentTokenSource, String errorTokenName, String expectedToken) {<NEW_LINE>if (currentKind == TerminalTokens.TokenNameAT && expectedToken != null && expectedToken.equals("@")) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>// In the diagn... | arguments, arguments, startPosition, endPosition); |
1,553,160 | public void encode(Object object, Type bodyType, RequestTemplate template) {<NEW_LINE>if (!(bodyType instanceof Class)) {<NEW_LINE>throw new UnsupportedOperationException("SOAP only supports encoding raw types. Found " + bodyType);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Document document = DocumentBuilderFactory.newInstanc... | e.toString(), e); |
1,841,871 | private void changeLatinKeyboardView(int newLayout, boolean forceReset) {<NEW_LINE>if (mLayoutId != newLayout || mInputView == null || forceReset) {<NEW_LINE>if (mInputView != null) {<NEW_LINE>mInputView.closing();<NEW_LINE>}<NEW_LINE>if (THEMES.length <= newLayout) {<NEW_LINE>newLayout = Integer.valueOf(DEFAULT_LAYOUT... | mLayoutId + "," + newLayout, e); |
183,878 | public void collapseGraph(CallGraphNode node) {<NEW_LINE>// need to undo (remove in and out nodes<NEW_LINE>// who are not in center list)<NEW_LINE>ArrayList inputsToRemove = new ArrayList();<NEW_LINE>ArrayList outputsToRemove = new ArrayList();<NEW_LINE>ArrayList nodesToRemove = new ArrayList();<NEW_LINE>if (node.getIn... | (Edge) inIt.next(); |
1,341,733 | public synchronized void remove(TServerInstance server) {<NEW_LINE>String zPath = null;<NEW_LINE>for (Entry<String, TServerInfo> entry : current.entrySet()) {<NEW_LINE>if (entry.getValue().instance.equals(server)) {<NEW_LINE>zPath = entry.getKey();<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (zPath == null)<NEW_L... | getZooCache().clear(fullpath); |
1,292,560 | private TrackerResponse tryForAllTrackers(Function<Tracker, TrackerResponse> func) {<NEW_LINE>List<TrackerResponse> responses = new ArrayList<>();<NEW_LINE>for (List<Tracker> trackerTier : trackerTiers) {<NEW_LINE>TrackerResponse response;<NEW_LINE>Tracker currentTracker;<NEW_LINE>for (int i = 0; i < trackerTier.size()... | response = func.apply(currentTracker); |
931,936 | private static void write(Argument arg) throws Exception {<NEW_LINE>try {<NEW_LINE>Document document = DocumentHelper.createDocument();<NEW_LINE>Element persistence = document.addElement("persistence", "http://java.sun.com/xml/ns/persistence");<NEW_LINE>persistence.addAttribute(QName.get("schemaLocation", "xsi", "http:... | .addAll(scanMappedSuperclass(o)); |
443,658 | public void onResponse(JSONObject jsonObject) {<NEW_LINE>if (callback == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (jsonObject == null) {<NEW_LINE>callback.onError();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, String> failedUsernames = new LinkedHashMap<>();<NEW_LINE>JSONObject errors = jsonObject.optJSONOb... | callback.onSent(succeededUsernames, failedUsernames); |
460,706 | public void performAPI(Node[] nodes) {<NEW_LINE>if (systemActionClass == null) {<NEW_LINE>throw new UnsupportedOperationException(getClass().toString() + " does not define SystemAction");<NEW_LINE>}<NEW_LINE>testNodes(nodes);<NEW_LINE>nodes[0].select();<NEW_LINE>for (int i = 1; i < nodes.length; i++) {<NEW_LINE>nodes[i... | nodes[i].addSelectionPath(); |
360,864 | private SendMailCommand createSendMailCommandFromProperties() throws AddressException {<NEW_LINE>SendMailCommand sendMailCmd = new SendMailCommand();<NEW_LINE>sendMailCmd.setSmtpServer(getPropertyAsString(SmtpSampler.SERVER));<NEW_LINE>sendMailCmd.setSmtpPort(getPropertyAsString(SmtpSampler.SERVER_PORT));<NEW_LINE>send... | ) getProperty(SmtpSampler.HEADER_FIELDS)); |
1,185,933 | private ListenableFuture<Data> computeSlices(DataRequest req) {<NEW_LINE>return transformAsync(qe.query(slicesSql(req)), res -> transform(qe.getAllArgs(res.stream().mapToLong(r -> r.getLong(8))), args -> {<NEW_LINE>int rows = res.getNumRows();<NEW_LINE>Data data = new Data(req, new long[rows], new long[rows], new long[... | ] = row.getInt(5); |
1,784,493 | private void switchToProxyConnected(ChannelHandlerContext ctx, ByteBuf msg) {<NEW_LINE>String message = readMessage(msg);<NEW_LINE>if (message.startsWith(PROXIED_SECURE)) {<NEW_LINE>String[] hostParts = StringUtils.substringAfter(message, PROXIED_SECURE).split(":");<NEW_LINE>int port = hostParts.length > 1 ? Integer.pa... | hostParts[0], port)); |
1,013,890 | private synchronized void ackInOrder(ConsumerRecord<K, V> record) {<NEW_LINE>TopicPartition part = new TopicPartition(record.topic(), record.partition());<NEW_LINE>List<Long> offs = <MASK><NEW_LINE>List<ConsumerRecord<K, V>> deferred = this.deferredOffsets.get(part);<NEW_LINE>if (offs.size() > 0) {<NEW_LINE>if (offs.ge... | this.offsetsInThisBatch.get(part); |
392,834 | public void handle(WebEvent<String> t) {<NEW_LINE>final Stage dialogStage = new Stage();<NEW_LINE>dialogStage.initModality(Modality.WINDOW_MODAL);<NEW_LINE>dialogStage.initOwner(stage);<NEW_LINE>// NOI18N<NEW_LINE>ResourceBundle r = NbBundle.getBundle(NbBrowsers.class);<NEW_LINE>// NOI18N<NEW_LINE>dialogStage.setTitle(... | box.setAlignment(Pos.CENTER); |
71,427 | final DescribeServicesResult executeDescribeServices(DescribeServicesRequest describeServicesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeServicesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
621,644 | public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Rbac.AggregationRule other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1beta1Rbac.AggregationRule.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (clusterRoleSelectorsBuilder_ == null) {<NEW_LINE>if (!other.clusterRoleSelectors_.isEmpty()) {<NE... | this.mergeUnknownFields(other.unknownFields); |
361,135 | public InteractionResultHolder<ItemStack> use(Level world, Player player, @Nonnull InteractionHand hand) {<NEW_LINE>ItemStack stack = player.getItemInHand(hand);<NEW_LINE>if (world.isClientSide) {<NEW_LINE>return new InteractionResultHolder<>(InteractionResult.SUCCESS, stack);<NEW_LINE>}<NEW_LINE>BlockPos coords = ((Se... | 1, player.getZ()); |
363,227 | public synchronized void testSummary(TestSummary summary) {<NEW_LINE>stateTracker.testSummary(summary);<NEW_LINE>if (testSummaryProvidesNewInformation(summary)) {<NEW_LINE>// For failed test, write the failure to the scroll-back buffer immediately<NEW_LINE>try {<NEW_LINE>clearProgressBar();<NEW_LINE>crlf();<NEW_LINE>se... | getLabel().toString()); |
285,965 | private void sendPut(final long putId) {<NEW_LINE>hardAssert(canSendWrites(), "sendPut called when we can't send writes (we're disconnected or writes are paused).");<NEW_LINE>final OutstandingPut put = outstandingPuts.get(putId);<NEW_LINE>final RequestResultCallback onComplete = put.getOnComplete();<NEW_LINE>final <MAS... | String action = put.getAction(); |
1,362,190 | public void killAndRecord(SingularityTaskId taskId, Optional<RequestCleanupType> requestCleanupType, Optional<TaskCleanupType> taskCleanupType, Optional<Long> originalTimestamp, Optional<Integer> retries, Optional<String> user) {<NEW_LINE>Preconditions.checkState(isRunning());<NEW_LINE>Optional<TaskCleanupType> maybeCl... | ()).build()); |
1,806,187 | private static Optional<KeyStore> tryReadKeystoreFile(AthenzService configserverIdentity, Duration updatePeriod) {<NEW_LINE>Optional<X509Certificate> certificate = SiaUtils.readCertificateFile(VESPA_SIA_DIRECTORY, configserverIdentity);<NEW_LINE>if (!certificate.isPresent())<NEW_LINE>return Optional.empty();<NEW_LINE>O... | toInstant().isBefore(minimumExpiration); |
1,345,964 | private void mountDeveloperImage(LockdowndClient lockdowndClient) throws Exception {<NEW_LINE>// Find the DeveloperDiskImage.dmg path that best matches the current device. Here's what<NEW_LINE>// the paths look like:<NEW_LINE>// Platforms/iPhoneOS.platform/DeviceSupport/5.0/DeveloperDiskImage.dmg<NEW_LINE>// Platforms/... | lockdowndClient.startService(MobileImageMounterClient.SERVICE_NAME); |
563,335 | private Mono<Response<PricingInner>> updateWithResponseAsync(String pricingName, PricingInner pricing) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.... | )).readOnly())); |
173,687 | public void prepare() throws ServiceNotProvidedException {<NEW_LINE>this.registerServiceImplementation(StorageBuilderFactory.class, new StorageBuilderFactory.Default());<NEW_LINE>client = new InfluxClient(config);<NEW_LINE>this.registerServiceImplementation(IBatchDAO.class, new BatchDAO(client));<NEW_LINE>this.register... | class, new EventQueryDAO(client)); |
57,901 | public String toOperationId(String operationId) {<NEW_LINE>// throw exception if method name is empty<NEW_LINE>if (StringUtils.isEmpty(operationId)) {<NEW_LINE>throw new RuntimeException("Empty method/operation name (operationId) not allowed");<NEW_LINE>}<NEW_LINE>String sanitizedOperationId = camelize<MASK><NEW_LINE>/... | (sanitizeName(operationId), true); |
412,144 | public static void selectAndExpandProject(final Project p) {<NEW_LINE>if (p == null)<NEW_LINE>return;<NEW_LINE>// invoke later to select the being opened project if the focus is outside ProjectTab<NEW_LINE>SwingUtilities.invokeLater(new Runnable() {<NEW_LINE><NEW_LINE>final ExplorerManager.Provider ptLogial = findDefau... | (p).getName()); |
1,126,049 | private void supplyLookupSources() {<NEW_LINE>checkState(!lock.isWriteLockedByCurrentThread());<NEW_LINE>List<SettableFuture<LookupSourceProvider>> lookupSourceFutures;<NEW_LINE>lock.writeLock().lock();<NEW_LINE>try {<NEW_LINE>checkState(partitionsSet == partitions.length, "Not all set yet");<NEW_LINE>checkState(this.l... | ImmutableList.copyOf(this.lookupSourceFutures); |
923,826 | public static void build(MeshPartBuilder builder, Camera camera, Color frustumColor, Color coneColor, Color upColor, Color targetColor, Color crossColor) {<NEW_LINE>Vector3[] planePoints = camera.frustum.planePoints;<NEW_LINE>// Frustum<NEW_LINE>build(builder, camera.frustum, frustumColor, crossColor);<NEW_LINE>// Cone... | planePoints[6]), targetColor); |
479,589 | public SSESpecification unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SSESpecification sSESpecification = new SSESpecification();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina... | class).unmarshall(context)); |
330,877 | public void updateElement(UIElement element, Map parameters) {<NEW_LINE>if ("true".equals(parameters.get("noCustomLabel"))) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>IWorkbenchWindow workbenchWindow = element.getServiceLocator().getService(IWorkbenchWindow.class);<NEW_LINE>DBPDataSourceContainer <MASK><NEW_LINE>String con... | dataSource = DataSourceToolbarUtils.getCurrentDataSource(workbenchWindow); |
1,242,257 | public // @SimpleFunction(description = "Find and start listening to a location provider.")<NEW_LINE>void RefreshProvider(final String caller) {<NEW_LINE>// Not yet ready to start...<NEW_LINE>if (!initialized)<NEW_LINE>return;<NEW_LINE>// In case another provider is active.<NEW_LINE>stopListening();<NEW_LINE>final Loca... | locationManager.getBestProvider(locationCriteria, true); |
1,297,410 | private void customAuthConnect(final MqttConnectOptions options) {<NEW_LINE>// Do nothing if Connecting, Connected or Reconnecting<NEW_LINE>if (!MqttManagerConnectionState.Disconnected.equals(connectionState)) {<NEW_LINE>userConnectionCallback();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String endpointWithHttpPort = getEnd... | customWebsocketHeaders.setProperty("User-Agent", userMetaData); |
407,993 | protected Button createSelectionButton(Composite parent, final ButtonTypes type) {<NEW_LINE>if (type == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Button button = new Button(parent, SWT.PUSH);<NEW_LINE>button.setText(type.getLabel());<NEW_LINE>button.setData(type);<NEW_LINE>Point minSize = button.computeSize(SWT... | DEFAULT, SWT.DEFAULT, true); |
1,762,153 | private static boolean checkUserSessionOnlyHasLoggedOutClients(RealmModel realm, UserSessionModel userSession, AuthenticationSessionModel logoutAuthSession) {<NEW_LINE>final Map<String, AuthenticatedClientSessionModel<MASK><NEW_LINE>Set<AuthenticatedClientSessionModel> notLoggedOutSessions = // Keycloak service-like ac... | > acs = userSession.getAuthenticatedClientSessions(); |
743,120 | private VpcOffering locateVpcOffering() {<NEW_LINE>VpcOffering vpcOffer = _vpcOffDao.findByUniqueName(juniperVPCOfferingName);<NEW_LINE>if (vpcOffer != null) {<NEW_LINE>if (((VpcOfferingVO) vpcOffer).getState() == VpcOffering.State.Enabled) {<NEW_LINE>return vpcOffer;<NEW_LINE>}<NEW_LINE>((VpcOfferingVO) vpcOffer).setS... | Provider.InternalLbVm.getName()); |
1,267,664 | public void generate(JDialog parent, File circuitFile, TruthTable table, ExpressionListenerStore expressions) throws Exception {<NEW_LINE>ModelAnalyserInfo mai = table.getModelAnalyzerInfo();<NEW_LINE>if (mai == null) {<NEW_LINE>JOptionPane.showMessageDialog(parent, new LineBreaker().toHTML().breakLines(Lang.get("msg_c... | ("msg_warning"), JOptionPane.WARNING_MESSAGE); |
1,621,109 | protected void sendEntriesToSwitch(DatapathId switchId) {<NEW_LINE>IOFSwitch sw = switchService.getSwitch(switchId);<NEW_LINE>if (sw == null)<NEW_LINE>return;<NEW_LINE>String stringId = sw.getId().toString();<NEW_LINE>if ((entriesFromStorage != null) && (entriesFromStorage.containsKey(stringId))) {<NEW_LINE>Map<String,... | debug("Pushing static entry {} for {}", stringId, entryName); |
1,212,527 | public void exportBlocks(final File outputFile, final Optional<Long> maybeStartBlock, final Optional<Long> maybeEndBlock) throws IOException {<NEW_LINE>// Get range to export<NEW_LINE>final long startBlock = maybeStartBlock.orElse(BlockHeader.GENESIS_BLOCK_NUMBER);<NEW_LINE>final long endBlock = maybeEndBlock.orElse(bl... | Block block = maybeBlock.get(); |
789,249 | protected void processEmbed(CrawlURI curi, final CharSequence value, CharSequence context, Hop hop) {<NEW_LINE>if (logger.isLoggable(Level.FINEST)) {<NEW_LINE>logger.finest("embed (" + hop.getHopChar() + "): " + value.toString() + " from " + curi);<NEW_LINE>}<NEW_LINE>if (context.equals(HTMLLinkContext.IMG_SRCSET.toStr... | , matcher.end(1)); |
978,482 | private String describeInjectionPoints(TypeLiteral<?> type) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>try {<NEW_LINE>InjectionPoint ip = InjectionPoint.forConstructorOf(type);<NEW_LINE>List<Dependency<?>> deps = ip.getDependencies();<NEW_LINE>if (!deps.isEmpty()) {<NEW_LINE>for (Dependency<?> dep : de... | ()).append("\n"); |
1,359,419 | final DeletePatchBaselineResult executeDeletePatchBaseline(DeletePatchBaselineRequest deletePatchBaselineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePatchBaselineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | false), new DeletePatchBaselineResultJsonUnmarshaller()); |
673,026 | public static void show(Context context) {<NEW_LINE>try {<NEW_LINE>@SuppressLint("PrivateApi")<NEW_LINE>Class<?> c = Class.forName("android.os.SystemProperties");<NEW_LINE>String miuiVersion = (String) c.getMethod("get", String.class).invoke(c, "ro.miui.ui.version.code");<NEW_LINE>if (miuiVersion != null && !miuiVersio... | Context.MODE_PRIVATE).close(); |
22,349 | private void submitForm() {<NEW_LINE>if (!validateForm()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);<NEW_LINE>imm.hideSoftInputFromWindow(et_user.getWindowToken(), 0);<NEW_LINE>if (!isOnline(this)) {<NEW_LINE>loginLoggingIn.setVisibility(... | confirmingAccountText.setVisibility(View.GONE); |
270,471 | private Method correspondingGetMethod(Method setMethod, Class loadedClass) {<NEW_LINE>Method[] allMethods = loadedClass.getMethods();<NEW_LINE>int length = "set".length();<NEW_LINE><MASK><NEW_LINE>Class[] parameterTypes = null;<NEW_LINE>String[] possibleGetMethodNames = new String[2];<NEW_LINE>possibleGetMethodNames[0]... | String methodName = setMethod.getName(); |
1,733,663 | public Aggregator build(String name, AggregatorFactories factories, ValuesSource valuesSource, DocValueFormat format, int maxDocCount, double precision, IncludeExclude includeExclude, SearchContext context, Aggregator parent, CardinalityUpperBound cardinality, Map<String, Object> metadata) throws IOException {<NEW_LINE... | metadata, maxDocCount, precision, cardinality); |
547,983 | public static ClientMessage encodeRequest(java.lang.String name, long startSequence, int minSize, int maxSize, @Nullable com.hazelcast.internal.serialization.Data predicate, @Nullable com.hazelcast.internal.serialization.Data projection) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE... | .content, PARTITION_ID_FIELD_OFFSET, -1); |
841,678 | public XContentBuilder toXContent(XContentBuilder builder, Params builderParams) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.startObject(NAME);<NEW_LINE>builder.field(<MASK><NEW_LINE>builder.field(TYPE_FIELD.getPreferredName(), type);<NEW_LINE>builder.field(ORDER_FIELD.getPreferredName(), orde... | SCRIPT_FIELD.getPreferredName(), script); |
758,062 | private DocumentFieldDescriptor.Builder createProcessParaDescriptor(final WebuiProcessClassInfo webuiProcesClassInfo, @NonNull final I_AD_Process_Para adProcessParam) {<NEW_LINE>final String parameterName = adProcessParam.getColumnName();<NEW_LINE>//<NEW_LINE>// Ask the provider if it has some custom lookup descriptor<... | DescriptorsFactoryHelper.getValueClass(widgetType, lookupDescriptor); |
45,612 | public void printTo(StringBuilder builder, int indent) {<NEW_LINE>indent(builder, indent);<NEW_LINE>switch(getOperationType()) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>case FREE_OPERATION:<NEW_LINE>builder.append("freed");<NEW_LINE>break;<NEW_LINE>// $NON-NLS-1$<NEW_LINE>case MALLOC_OPERATION:<NEW_LINE>builder.append("malloc... | builder.append(this.startAddress); |
42,341 | public Pair<Boolean, String> updateSource(SourceRequest sourceRequest) {<NEW_LINE>final String path = HTTP_PATH + "/source/update";<NEW_LINE>final String url = formatUrl(path);<NEW_LINE>final String storage = GsonUtil.toJson(sourceRequest);<NEW_LINE>final RequestBody storageBody = RequestBody.create(MediaType.parse("ap... | Response response = call.execute(); |
827,426 | public okhttp3.Call applicationsApplicationIdOauthKeysGetCall(String applicationId, String xWSO2Tenant, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/applications/{applicationId}/oauth-keys".replaceA... | localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); |
1,542,244 | public void remoteInit() throws IOException {<NEW_LINE>HitbtcMarketDataServiceRaw <MASK><NEW_LINE>List<HitbtcSymbol> hitbtcSymbols = dataService.getHitbtcSymbols();<NEW_LINE>Map<Currency, CurrencyMetaData> currencies = dataService.getHitbtcCurrencies().stream().collect(Collectors.toMap(hitbtcCurrency -> new Currency(hi... | dataService = ((HitbtcMarketDataServiceRaw) marketDataService); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.