idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
259,895 | public String interpret(Locale locale, String text) throws InterpretationException {<NEW_LINE>ResourceBundle language = ResourceBundle.getBundle(LANGUAGE_SUPPORT, locale);<NEW_LINE>Rule[] rules = getRules(locale);<NEW_LINE>if (language == null || rules.length == 0) {<NEW_LINE>throw new InterpretationException(locale.ge... | (Locale.ENGLISH) + " is not supported at the moment."); |
1,719,043 | public void apply(ITextViewer viewer, char trigger, int stateMask, int offset) {<NEW_LINE>super.apply(viewer, trigger, stateMask, offset);<NEW_LINE>// See if there are any positions that should be linked. Last is always exit, first is cursor position<NEW_LINE>if (_positions != null && _positions.length > 0) {<NEW_LINE>... | ? offset - this._replacementOffset : 0; |
722,321 | public OutboundSseEvent buildEvent(Builder eventBuilder, Set<String> itemNames) {<NEW_LINE>Map<String, StateDTO> payload = new HashMap<>(itemNames.size());<NEW_LINE>for (String itemName : itemNames) {<NEW_LINE>try {<NEW_LINE>Item item = itemRegistry.getItem(itemName);<NEW_LINE>StateDTO stateDto = new StateDTO();<NEW_LI... | data(payload).build(); |
1,171,195 | public void start() {<NEW_LINE>int localPort = getLocalPort();<NEW_LINE>listenerCallBack = new SoapMonitorListenerCallBack() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void fireAddMessageExchange(WsdlMonitorMessageExchange messageExchange) {<NEW_LINE>addMessageExchange(messageExchange);<NEW_LINE>}<NEW_LINE>};<NEW_L... | ).toString()))); |
679,730 | private static // TODO: These should come from somewhere else, probably<NEW_LINE>void // TODO: These should come from somewhere else, probably<NEW_LINE>variants(// TODO: These should come from somewhere else, probably<NEW_LINE>Provider<String> baseName, // TODO: These should come from somewhere else, probably<NEW_LINE>... | ), targetMachinesToArchitectures(targetMachines))); |
659,760 | public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "movzx");<NEW_LINE>if (instruction.getOperands().... | getLeafValue(destOperand.getRootNode()); |
1,809,821 | protected void exportGenericElement(JRGenericPrintElement element) throws IOException {<NEW_LINE>GenericElementXmlHandler handler = (GenericElementXmlHandler) GenericElementHandlerEnviroment.getInstance(jasperReportsContext).getElementHandler(element.getGenericType(), getExporterKey());<NEW_LINE>if (handler != null) {<... | ATTRIBUTE_name, genericType.getName()); |
1,030,705 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_maps);<NEW_LINE>screenOrientation = getResources().getConfiguration().orientation;<NEW_LINE>Display display = getWindowManager().getDefaultDisplay();<NEW_LINE>outMetrics = new Disp... | myLocationFab.setVisibility(View.GONE); |
214,253 | protected static String resolveTagsAsStringWithGlobalTags(MetricID mid) {<NEW_LINE>org.eclipse.microprofile.metrics.Tag[] globalTags = Util30.getCachedGlobalTags();<NEW_LINE>if (globalTags != null && globalTags.length != 0) {<NEW_LINE>org.eclipse.microprofile.metrics.Tag[] applicationTags = mid.getTagsAsArray();<NEW_LI... | = new MetricID("temporary", combinedTags); |
779,183 | public void testStatefulPassivationMixServlet_test21() throws Exception {<NEW_LINE>StatefulPassLocal localBean = null;<NEW_LINE>StatefulPassRemote bean = null;<NEW_LINE>// Create an instance of the bean by looking up the business interface<NEW_LINE>// and insure the bean contains the default state.<NEW_LINE>bean = (Sta... | lookupDefaultBindingEJBJavaApp(StatefulPassLocalInterface, Module, SerializableBean); |
60,842 | private Process runLocalSolr4ControlCommand(List<String> solrArguments) throws IOException {<NEW_LINE>// NON-NLS<NEW_LINE>final String MAX_SOLR_MEM_MB_PAR = "-Xmx" + UserPreferences.getMaxSolrVMSize() + "m";<NEW_LINE>// NON-NLS<NEW_LINE>File solr4Folder = InstalledFileLocator.getDefault().locate("solr4", Server.class.g... | commandLine = new ArrayList<>(); |
1,453,165 | private void initAssignment(DefinitionStmt ds) {<NEW_LINE>Value lhs = ds.getLeftOp();<NEW_LINE>if (lhs instanceof Local || lhs instanceof ArrayRef) {<NEW_LINE>int assignmentIdx = this.assignments.size();<NEW_LINE>this.assignments.add(ds);<NEW_LINE>Value rhs = ds.getRightOp();<NEW_LINE>if (rhs instanceof Local) {<NEW_LI... | NegExpr) rhs).getOp(); |
584,258 | public List<Relationship> differingContent(RelationshipsPart otherRP) throws Docx4JException {<NEW_LINE>List<Relationship> results = new ArrayList<Relationship>();<NEW_LINE>for (Relationship r : jaxbElement.getRelationship()) {<NEW_LINE>Relationship otherR = getRelationshipByTarget(otherRP, r.getTarget());<NEW_LINE>if ... | otherPart = otherRP.getPart(otherR); |
513,026 | public void invalidate(@NonNull final DocumentIdsSelection rowIds) {<NEW_LINE>final ArrayList<<MASK><NEW_LINE>final Map<LocalDate, CreateRowsRequestBuilder> builders = new HashMap<>();<NEW_LINE>for (final MaterialCockpitRow row : rowsToInvalidate) {<NEW_LINE>final CreateRowsRequestBuilder builder = builders.computeIfAb... | MaterialCockpitRow> rowsToInvalidate = extractRows(rowIds); |
1,295,845 | private File scanFor(final ProviderIdent ident, File[] files) throws PluginScannerException {<NEW_LINE>final List<FileCache.MemoFile> candidates = new ArrayList<>();<NEW_LINE>HashSet<FileCache.MemoFile> prescanned <MASK><NEW_LINE>HashSet<FileCache.MemoFile> newscanned = new HashSet<>();<NEW_LINE>for (final File file : ... | = new HashSet<>(scannedFiles); |
1,836,730 | static final byte[] doExpansion(Mac hmac, byte[] label, byte[] seed, int length) {<NEW_LINE>int offset = 0;<NEW_LINE>final int macLength = hmac.getMacLength();<NEW_LINE>final byte[] aAndSeed = new byte[macLength + label.length + seed.length];<NEW_LINE>final byte[<MASK><NEW_LINE>try {<NEW_LINE>// copy appended seed to b... | ] expansion = new byte[length]; |
1,532,696 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.browser_install);<NEW_LINE>setTitle(R.string.file_browser);<NEW_LINE>Button cancel = (Button) <MASK><NEW_LINE>cancel.setOnClickListener(new View.OnClickListener() {<NEW_LINE><NEW_LINE>publi... | findViewById(R.id.cancel); |
1,853,298 | void permitVerify() {<NEW_LINE>logDebug("permitVerify");<NEW_LINE>if (firstPin.length() == 1 && secondPin.length() == 1 && thirdPin.length() == 1 && fourthPin.length() == 1 && fifthPin.length() == 1 && sixthPin.length() == 1) {<NEW_LINE>hideKeyboard(this, 0);<NEW_LINE>if (sb.length() > 0) {<NEW_LINE>sb.delete(0, sb.len... | append(secondPin.getText()); |
1,379,400 | public void marshall(ProjectSummary projectSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (projectSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(projectSummary.getActiveExperimentCount(),... | projectSummary.getActiveLaunchCount(), ACTIVELAUNCHCOUNT_BINDING); |
485,928 | public final void register(@Nonnull Disposable parent, @Nonnull Disposable child) {<NEW_LINE>if (parent == child)<NEW_LINE><MASK><NEW_LINE>synchronized (treeLock) {<NEW_LINE>Object wasDisposed = getDisposalInfo(parent);<NEW_LINE>if (wasDisposed != null) {<NEW_LINE>throw new IncorrectOperationException("Sorry but parent... | throw new IllegalArgumentException("Cannot register to itself: " + parent); |
803,021 | private AdPlaybackState addLiveAdBreak(Ad ad, long currentPeriodPositionUs, AdPlaybackState adPlaybackState) {<NEW_LINE>AdPodInfo adPodInfo = ad.getAdPodInfo();<NEW_LINE>long adDurationUs = secToUs(ad.getDuration());<NEW_LINE>int adIndexInAdGroup = adPodInfo.getAdPosition() - 1;<NEW_LINE>// TODO(b/208398934) Support se... | sum(adGroup.durationsUs))); |
804,456 | public // retrievd from Application Default Credentials.<NEW_LINE>String makeAuthenticatedRequest(String url, String markdown) {<NEW_LINE>String html = "";<NEW_LINE>try {<NEW_LINE>// Retrieve Application Default Credentials<NEW_LINE>GoogleCredentials credentials = GoogleCredentials.getApplicationDefault();<NEW_LINE>IdT... | setTargetAudience(url).build(); |
1,759,579 | // prog args for regtest: 10 1 BTC_REGTEST<NEW_LINE>public static void main(String[] args) {<NEW_LINE>// Default values<NEW_LINE>int intervalSec = 120;<NEW_LINE>boolean useLocalhostForP2P = false;<NEW_LINE>BaseCurrencyNetwork network = BaseCurrencyNetwork.BTC_MAINNET;<NEW_LINE>int port = 80;<NEW_LINE>if (args.length > ... | .parseInt(args[3]); |
529,653 | public void run() {<NEW_LINE>LOG.info(String.format("start PulsarSetWorker:%s", this.workerName));<NEW_LINE>while (status != LifecycleState.STOP) {<NEW_LINE>Channel channel = context.getChannel();<NEW_LINE>Transaction tx = channel.getTransaction();<NEW_LINE>tx.begin();<NEW_LINE>try {<NEW_LINE>Event event = channel.take... | producerFederation.send(profileEvent, tx); |
1,226,518 | protected Set<MemberGroup> createInternalMemberGroups(Collection<? extends Member> members) {<NEW_LINE>Map<Integer, MemberGroup> memberGroups = new HashMap<Integer, MemberGroup>();<NEW_LINE>for (Member member : members) {<NEW_LINE>String host = ((MemberImpl) member).getAddress().getHost();<NEW_LINE>for (Entry<Integer, ... | >(memberGroups.values()); |
527,258 | public static void computeDataBitCoordinates(AztecCode marker, PackedArrayPoint2D_I16 coordinates) {<NEW_LINE>// clear old data<NEW_LINE>coordinates.reset();<NEW_LINE>// First layer goes around the orientation pattern + mode bits<NEW_LINE>int ringWidth = marker.getLocatorWidthSquares() + 6;<NEW_LINE>int ringRadius = ri... | - (hasGrid ? 1 : 0); |
1,068,111 | public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "creqv");<NEW_LINE>final IOperandTreeNode targetC... | getChildren().get(0); |
973,637 | protected void handleClickAction() {<NEW_LINE>Action action = getItemClickAction();<NEW_LINE>if (action == null) {<NEW_LINE>action = getEnterPressAction();<NEW_LINE>if (action == null) {<NEW_LINE>action = getAction("edit");<NEW_LINE>if (action == null) {<NEW_LINE>action = getAction("view");<NEW_LINE>}<NEW_LINE>}<NEW_LI... | ComponentsHelper.getWindowImplementation(DesktopTree.this); |
166,503 | private static SqlNode expandVariance(SqlNode arg, boolean biased, boolean sqrt) {<NEW_LINE>final SqlParserPos pos = SqlParserPos.ZERO;<NEW_LINE>// cast the argument to double<NEW_LINE>final SqlNode castHighArg = CastHighOp.createCall(pos, arg);<NEW_LINE>final SqlNode argSquared = SqlStdOperatorTable.MULTIPLY.createCal... | createCall(pos, sumArgSquared, avgSumSquared); |
1,129,100 | public Avatar uploadAvatarAsMultipart(File file, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'file' is set<NEW_LINE>if (file == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'file' when calling uploadAvatar... | localVarFormParams.put("file", file); |
1,804,294 | private void addDaughters(DecisionNode motherCARTNode, MaryNode currentTreeNode, FeatureArrayIndexer ffi) {<NEW_LINE>if (currentTreeNode == null) {<NEW_LINE>LeafNode l = new LeafNode.FeatureVectorLeafNode(new FeatureVector[0]);<NEW_LINE>motherCARTNode.addDaughter(l);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (currentTree... | ShortDecisionNode(nextFeatIndex, numDaughters, featDef); |
1,051,963 | public Request<ListStreamsRequest> marshall(ListStreamsRequest listStreamsRequest) {<NEW_LINE>if (listStreamsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListStreamsRequest)");<NEW_LINE>}<NEW_LINE>Request<ListStreamsRequest> request = new DefaultRequest<MASK><NEW_LINE... | <ListStreamsRequest>(listStreamsRequest, "AWSKinesisVideo"); |
17,718 | public ListHarvestJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListHarvestJobsResult listHarvestJobsResult = new ListHarvestJobsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | )).unmarshall(context)); |
835,006 | public Void deleteVolumeCallback(AsyncCallbackDispatcher<VolumeServiceImpl, CommandResult> callback, DeleteVolumeContext<VolumeApiResult> context) {<NEW_LINE>CommandResult result = callback.getResult();<NEW_LINE>VolumeObject vo = context.getVolume();<NEW_LINE>VolumeApiResult apiResult = new VolumeApiResult(vo);<NEW_LIN... | remove(snapStoreVo.getId()); |
17,718 | public ListHarvestJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListHarvestJobsResult listHarvestJobsResult = new ListHarvestJobsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token =... | String currentParentElement = context.getCurrentParentElement(); |
223,935 | public void addDebugScreenInfo(List<String> strings, BlockPos pos) {<NEW_LINE>DecimalFormat decimalformat = new DecimalFormat("0.000");<NEW_LINE>DensityFunction.SinglePointContext spc = new DensityFunction.SinglePointContext(pos.getX(), pos.getY(<MASK><NEW_LINE>double d0 = this.router.ridges().compute(spc);<NEW_LINE>st... | ), pos.getZ()); |
668,040 | private Object decodeOld(ByteBuf buf) {<NEW_LINE>int header = buf.getByte(buf.readerIndex());<NEW_LINE>boolean obd = header == 'L' || header == 'H';<NEW_LINE>int index;<NEW_LINE>if (obd) {<NEW_LINE>index = buf.indexOf(buf.readerIndex(), buf.writerIndex(), (byte) '*');<NEW_LINE>} else {<NEW_LINE>index = buf.indexOf(buf.... | (), (byte) 0x02); |
749,843 | public static void error(final int WindowNo, final Container c, final String AD_Message, final String msg) {<NEW_LINE>log.info("{} - {}", AD_Message, msg);<NEW_LINE>if (LogManager.isLevelFinest()) {<NEW_LINE>Trace.printStack();<NEW_LINE>}<NEW_LINE>final Properties ctx = Env.getCtx();<NEW_LINE><MASK><NEW_LINE>if (!Check... | final StringBuilder out = new StringBuilder(); |
493,696 | public Optional<URL> findFullText(BibEntry entry) throws IOException {<NEW_LINE>Objects.requireNonNull(entry);<NEW_LINE>// Try unique DOI first<NEW_LINE>Optional<DOI> doi = entry.getField(StandardField.DOI).flatMap(DOI::parse);<NEW_LINE>if (!doi.isPresent()) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>// Av... | ).getDOI()))); |
1,063,590 | private void parsePort(Scanner input) throws IllegalVhdlContentException {<NEW_LINE>// Example: "name : IN std_logic"<NEW_LINE>// Example: "name : OUT std_logic_vector(expr downto expr)"<NEW_LINE>// Example: "name1, name2, name3 : IN std_logic"<NEW_LINE>// Example: "name1, name2, name3 : OUT std_logic_vector(expr downt... | isBitVector = type.equalsIgnoreCase("std_logic_vector"); |
338,292 | protected void initMaxIO() {<NEW_LINE>if (type.isCreative) {<NEW_LINE>setEnergyStored(getMaxEnergyStored() / 2);<NEW_LINE>markDirty();<NEW_LINE>}<NEW_LINE>if (getCapacitorData() != DefaultCapacitorData.NONE || maxOut < 0 || maxIn < 0) {<NEW_LINE>final int max = getMaxIO();<NEW_LINE>if (maxOutIsMax == maxOut && maxOutIs... | maxIn == max ? max : -9999; |
1,171,166 | final ListTargetedSentimentDetectionJobsResult executeListTargetedSentimentDetectionJobs(ListTargetedSentimentDetectionJobsRequest listTargetedSentimentDetectionJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTargetedSentimentDetectionJobsRequest);<NEW_LINE>AWSRequestMetrics awsRe... | false), new ListTargetedSentimentDetectionJobsResultJsonUnmarshaller()); |
473,831 | private static void handleUpsert(ConfigurationDBAdapter configuration, Node parentNode) {<NEW_LINE>DOMElementIterator eventTypeNodeIterator = new DOMElementIterator(parentNode.getChildNodes());<NEW_LINE>UpsertQuery upsertQuery = new UpsertQuery();<NEW_LINE>String connection = getRequiredAttribute(parentNode, "connectio... | = new ArrayList<Column>(); |
98,193 | public void process(T gray) {<NEW_LINE>// Reset and initialize<NEW_LINE>allMarkers.reset();<NEW_LINE>detected.clear();<NEW_LINE>failed.clear();<NEW_LINE>// Detect finder patterns<NEW_LINE>inputToBinary.process(gray, binary);<NEW_LINE>detectorPyramids.process(gray, binary);<NEW_LINE>// Attempt to decode candidate marker... | .get(0).center); |
211,120 | public IncrementalPullConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>IncrementalPullConfig incrementalPullConfig = new IncrementalPullConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | JsonToken token = context.getCurrentToken(); |
1,052,049 | public static Object call(Class<?> oClass, String method, Object obj, Object[] arg) throws InvocationTargetException, NoSuchMethodException {<NEW_LINE>// Lets just try all methods for now<NEW_LINE>Method[] methods = oClass.getMethods();<NEW_LINE>for (int c = 0; methods != null && c < methods.length; c++) {<NEW_LINE>if ... | ].invoke(obj, arg); |
1,229,172 | public void marshall(Ec2InstanceAttributes ec2InstanceAttributes, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (ec2InstanceAttributes == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(ec2InstanceAttributes... | ec2InstanceAttributes.getEc2SubnetId(), EC2SUBNETID_BINDING); |
1,422,382 | 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>for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {<NEW_LINE>Player player = game.getPlay... | chosenCards = new HashSet<>(); |
1,735,548 | private Response sendVerifyEmail(RequiredActionContext context) throws UriBuilderException, IllegalArgumentException {<NEW_LINE>KeycloakSession session = context.getSession();<NEW_LINE>UserModel user = context.getUser();<NEW_LINE>AuthenticationSessionModel authSession = context.getAuthenticationSession();<NEW_LINE>Even... | attributes.put("code", code); |
90,600 | public static void waitUntilPodStabilityReplicasCount(String namespaceName, String podNamePrefix, int expectedPods) {<NEW_LINE>LOGGER.info("Wait until Pod {} will have stable {} replicas", podNamePrefix, expectedPods);<NEW_LINE>int[] stableCounter = { 0 };<NEW_LINE>TestUtils.waitFor(" Pod" + podNamePrefix + " will have... | info("Pod {} has {} replicas", podNamePrefix, expectedPods); |
1,478,805 | private Object pushNewFile(final String groupName, final String path, final String fileHash, final String hashRef, final File file, final Connection connection) {<NEW_LINE>final String groupNameLC = groupName.toLowerCase();<NEW_LINE>final <MASK><NEW_LINE>final UpsertDelegate upsertDelegate = UpsertDelegate.newInstance(... | String pathLC = path.toLowerCase(); |
1,157,139 | private void invokeStartTask(ReactContext reactContext, final HeadlessJsTaskConfig taskConfig) {<NEW_LINE>FilteredMetricsService filteredMetricsService = FilteredMetricsService.Companion.getInstance(reactContext);<NEW_LINE>try {<NEW_LINE>if (reactContext.getLifecycleState() == LifecycleState.RESUMED) {<NEW_LINE>JavaFil... | JavaFilteredMetricsService.addDebugMetric(filteredMetricsService, 3.11); |
1,418,722 | public static void register(Application application) {<NEW_LINE>Desktop desktop = Desktop.getDesktop();<NEW_LINE>if (desktop.isSupported(Desktop.Action.APP_ABOUT)) {<NEW_LINE>desktop.setAboutHandler(e -> {<NEW_LINE>DataManager dataManager = DataManager.getInstance();<NEW_LINE>Window window = WindowManager.getInstance()... | > files = e.getFiles(); |
1,188,254 | // Add a new track to the tracks<NEW_LINE>public void add(SinusoidalTrack track) {<NEW_LINE>if (// Expand the current track twice its length and then add<NEW_LINE>currentIndex + 1 >= totalTracks) {<NEW_LINE>if (totalTracks > 0) {<NEW_LINE><MASK><NEW_LINE>if (tmpTracks.totalTracks < 10)<NEW_LINE>initialize(2 * tmpTracks... | SinusoidalTracks tmpTracks = new SinusoidalTracks(this); |
1,539,457 | public void processBindingConfiguration(String context, Item item, String bindingConfig) throws BindingConfigParseException {<NEW_LINE>super.processBindingConfiguration(context, item, bindingConfig);<NEW_LINE>EpsonProjectorBindingConfig config = new EpsonProjectorBindingConfig();<NEW_LINE>String[] configParts = binding... | .itemType = item.getClass(); |
1,153,087 | public void handle(String currentId, String value, String qualifierBlock, String comment) {<NEW_LINE>Matcher <MASK><NEW_LINE>OWLDataFactory df = getDataFactory();<NEW_LINE>String annotationValue;<NEW_LINE>Set<OWLAnnotation> xrefAnnotations = Collections.emptySet();<NEW_LINE>if (matcher.matches()) {<NEW_LINE>annotationV... | matcher = PATTERN.matcher(value); |
1,661,863 | Stream<SimilaritySummaryResult> writeAndAggregateResults(Stream<SimilarityResult> stream, int length, int sourceIdsLength, int targetIdsLength, ProcedureConfiguration configuration, boolean write, String writeRelationshipType, String writeProperty, Computations computations) {<NEW_LINE>long writeBatchSize = getWriteBat... | SimilarityExporter(api, writeRelationshipType, writeProperty); |
340,901 | public static ListFunctionsResponse unmarshall(ListFunctionsResponse listFunctionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFunctionsResponse.setRequestId(_ctx.stringValue("ListFunctionsResponse.RequestId"));<NEW_LINE>listFunctionsResponse.setHttpStatusCode(_ctx.stringValue("ListFunctionsResponse.HttpStatusCod... | ("ListFunctionsResponse.Functions[" + i + "].FunctionSpec.Memory")); |
1,412,361 | private void restoreGameButon() {<NEW_LINE>mGameButton.setKeyName(this.originalKeyName);<NEW_LINE>mGameButton.setKeySize(this.originalKeySize[0], this.originalKeySize[1]);<NEW_LINE>mGameButton.setKeyPos(this.originalKeyPos[0], this.originalKeyPos[1]);<NEW_LINE>mGameButton.setKeyMaps(this.originalMaps);<NEW_LINE>mGameBu... | mGameButton.setTextSize(this.originalTextSize); |
2,159 | public ListUsageForLicenseConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListUsageForLicenseConfigurationResult listUsageForLicenseConfigurationResult = new ListUsageForLicenseConfigurationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String curr... | JsonToken token = context.getCurrentToken(); |
48,211 | void changed() {<NEW_LINE>if (!changed) {<NEW_LINE>changed = true;<NEW_LINE>try {<NEW_LINE>pcs.firePropertyChange(OptionsPanelController.PROP_CHANGED, false, true);<NEW_LINE>} catch (Exception ex) {<NEW_LINE>// NON-NLS<NEW_LINE>logger.log(Level.SEVERE, "Error processing property change", ex);<NEW_LINE>MessageNotifyUtil... | Level.SEVERE, "Error processing property change validation.", e); |
874,721 | public ResponseEntity<?> filterEntities(DomainTypeAdministrationConfiguration domainTypeAdministrationConfiguration, RootResourceInformation repoRequest, PersistentEntityResourceAssembler assembler, WebRequest request, Pageable pageable, @PathVariable String scopeName) throws Exception {<NEW_LINE>DynamicRepositoryInvok... | SpecificationScopeMetadata) scope).specification(); |
457,295 | static void renderHand(RenderHandEvent event) {<NEW_LINE>InteractionHand hand = event.getHand();<NEW_LINE>Player player = Minecraft.getInstance().player;<NEW_LINE>if (hand != InteractionHand.OFF_HAND || player == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ItemStack mainhand = player.getMainHandItem();<NEW_LINE>ItemSt... | volatileData.getBoolean(IModifiable.NO_INTERACTION); |
34,685 | private static void notifyUserInfoChanged(V2TIMUserFullInfo userFullInfo) {<NEW_LINE>HashMap<String, Object> param = new HashMap<>();<NEW_LINE>param.put(TUIConstants.TUILogin.SELF_ID, userFullInfo.getUserID());<NEW_LINE>param.put(TUIConstants.TUILogin.SELF_SIGNATURE, userFullInfo.getSelfSignature());<NEW_LINE>param.put... | SELF_NICK_NAME, userFullInfo.getNickName()); |
1,392,358 | private int visit(int node, int last, int source) throws ContradictionException {<NEW_LINE>if (node == -1) {<NEW_LINE>fails();<NEW_LINE>}<NEW_LINE>if (node == last) {<NEW_LINE>return 1;<NEW_LINE>}<NEW_LINE>int next = -1;<NEW_LINE>ISetIterator succs = G_R.getSuccessorsOf(node).iterator();<NEW_LINE>while (succs.hasNext()... | [node].remove(e); |
588,976 | public void writeBar3DPlot(JRBar3DPlot plot) throws IOException {<NEW_LINE>writer.startElement(JRXmlConstants.ELEMENT_bar3DPlot, getNamespace());<NEW_LINE>writer.addAttribute(JRXmlConstants.ATTRIBUTE_isShowLabels, plot.getShowLabels());<NEW_LINE>writer.addAttribute(JRXmlConstants.ATTRIBUTE_xOffset, plot.getXOffsetDoubl... | writeItemLabel(plot.getItemLabel()); |
305,944 | final SetVoiceMessageSpendLimitOverrideResult executeSetVoiceMessageSpendLimitOverride(SetVoiceMessageSpendLimitOverrideRequest setVoiceMessageSpendLimitOverrideRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setVoiceMessageSpendLimitOverrideRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,052,370 | final ListTableRowsResult executeListTableRows(ListTableRowsRequest listTableRowsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTableRowsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTableRows"); |
346,787 | private void customizeComponents() {<NEW_LINE>newKeywordsButton.setToolTipText((NbBundle.getMessage(this.getClass(), "KeywordSearchEditListPanel.customizeComponents.addWordToolTip")));<NEW_LINE>deleteWordButton.setToolTipText(NbBundle.getMessage(this.getClass(), "KeywordSearchEditListPanel.customizeComponents.removeSel... | ListSelectionModel lsm = keywordTable.getSelectionModel(); |
884,066 | public void doneBefore(@Nonnull Marker marker, @Nonnull Marker before) {<NEW_LINE>doValidityChecks(marker, before);<NEW_LINE>@SuppressWarnings("SuspiciousMethodCalls")<NEW_LINE>int beforeIndex = myProduction.lastIndexOf(before);<NEW_LINE><MASK><NEW_LINE>doneMarker.myLexemeIndex = ((StartMarker) before).myLexemeIndex;<N... | DoneMarker doneMarker = DONE_MARKERS.alloc(); |
1,217,280 | private void PropagateLabelPush(IFragment<Long, Long, Long, Double> fragment, ParallelContextBase<Long, Long, Long, Double> context, ParallelMessageManager mm) {<NEW_LINE>WCCContext ctx = (WCCContext) context;<NEW_LINE>VertexRange<Long> innerVertices = fragment.innerVertices();<NEW_LINE>VertexRange<Long> outerVertices ... | .comp_id.get(vertex)); |
1,080,276 | protected void readWithoutBlobCache(ByteBuffer b) throws Exception {<NEW_LINE>ensureContext(ctx -> ctx != CACHE_WARMING_CONTEXT);<NEW_LINE>final long position = getAbsolutePosition();<NEW_LINE>final int length = b.remaining();<NEW_LINE>final CacheFile cacheFile = cacheFileReference.get();<NEW_LINE>final ByteRange start... | int bytesRead = populateCacheFuture.get(); |
900,032 | protected int doMotionEstimation(NV_ENC_INPUT_PTR inputBuffer, NV_ENC_INPUT_PTR inputBufferForReference, NV_ENC_OUTPUT_PTR outputBuffer) {<NEW_LINE>NV_ENC_MEONLY_PARAMS meParams = new NV_ENC_MEONLY_PARAMS();<NEW_LINE>meParams.version(NV_ENC_MEONLY_PARAMS_VER);<NEW_LINE>meParams.inputBuffer(inputBuffer);<NEW_LINE>mePara... | inputWidth(this.getEncodeWidth()); |
28,209 | public File runFilter(File file, Map<String, String[]> parameters) {<NEW_LINE>File resultFile = getResultsFile(file, parameters);<NEW_LINE>if (!overwrite(resultFile, parameters)) {<NEW_LINE>return resultFile;<NEW_LINE>}<NEW_LINE>resultFile.delete();<NEW_LINE>try {<NEW_LINE>BufferedImage src = ImageIO.read(file);<NEW_LI... | Graphics2D graphics = dst.createGraphics(); |
1,165,121 | public static ListEnterpriseCodeResponse unmarshall(ListEnterpriseCodeResponse listEnterpriseCodeResponse, UnmarshallerContext _ctx) {<NEW_LINE>listEnterpriseCodeResponse.setRequestId(_ctx.stringValue("ListEnterpriseCodeResponse.RequestId"));<NEW_LINE>listEnterpriseCodeResponse.setTotalCount(_ctx.integerValue("ListEnte... | (_ctx.stringValue("ListEnterpriseCodeResponse.NextToken")); |
1,496,848 | private Void handleTruncation() {<NEW_LINE>Revision revision = getRevisionToReadFrom(false);<NEW_LINE>log.info("{} encountered truncation, attempting to read from revision {}", this, revision);<NEW_LINE>boolean foundInit = false;<NEW_LINE>val iter = client.readFrom(revision);<NEW_LINE>Revision currentRevision = null;<N... | .getValue().getInit(); |
1,474,531 | private void convertTypeInsn(TypeInsnNode insn) {<NEW_LINE>int op = insn.getOpcode();<NEW_LINE>StackFrame frame = getFrame(insn);<NEW_LINE>Operand[] out = frame.out();<NEW_LINE>Operand opr;<NEW_LINE>if (out == null) {<NEW_LINE>Optional<String> module = Optional.fromNullable(this.body.getMethod().getDeclaringClass().mod... | throw new AssertionError("Unknown type op: " + op); |
887,576 | public void writeMacros(ConstantPool pool, PrintWriter out) {<NEW_LINE>super.writeMacros(pool, out);<NEW_LINE>String type = fieldType();<NEW_LINE>String cast = ((Alias) primary).cast;<NEW_LINE>String castTo = cast.length() == 0 ? "" : "(" + cast + ")";<NEW_LINE>String macroName = cMacroName();<NEW_LINE>String fieldOffs... | type + "_STORE(vmThread, object, J9VM" + macroName + "_OFFSET(vmThread), (value)))"); |
1,244,773 | public static Optional<MachoSymTabCommand> read(MappedByteBuffer machoFileBuffer) {<NEW_LINE>machoFileBuffer.rewind();<NEW_LINE>try {<NEW_LINE>MachoHeader header = Machos.getHeader(machoFileBuffer);<NEW_LINE>int commandsCount = header.getCommandsCount();<NEW_LINE>for (int i = 0; i < commandsCount; i++) {<NEW_LINE>int c... | stroff = ObjectFileScrubbers.getLittleEndianInt(machoFileBuffer); |
775,769 | public static Bytes encode(final Bytes path) {<NEW_LINE>int size = path.size();<NEW_LINE>final boolean isLeaf = size > 0 && path.get(size - 1) == LEAF_TERMINATOR;<NEW_LINE>if (isLeaf) {<NEW_LINE>size = size - 1;<NEW_LINE>}<NEW_LINE>final MutableBytes encoded = MutableBytes.create(<MASK><NEW_LINE>int i = 0;<NEW_LINE>int... | (size + 2) / 2); |
1,779,763 | protected List<IntervalsSource> analyzeGraph(TokenStream source) throws IOException {<NEW_LINE>source.reset();<NEW_LINE>GraphTokenStreamFiniteStrings graph = new GraphTokenStreamFiniteStrings(source);<NEW_LINE>List<IntervalsSource> clauses = new ArrayList<>();<NEW_LINE>int[] articulationPoints = graph.articulationPoint... | assert it.hasNext() == false; |
466,940 | public HeaderAndHash loadFromFile(InputStream is) throws IOException, InvalidDBVersionException {<NEW_LINE>MessageDigest md;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>} catch (NoSuchAlgorithmException e) {<NEW_LINE>throw new IOException("No SHA-256 implementation");<NEW_LINE>}<NEW_LINE>ByteArrayOutputStream headerBOS = n... | md = MessageDigest.getInstance("SHA-256"); |
1,518,527 | void assembleMessageParameters() {<NEW_LINE>final ByteBuffer paramsBuffer;<NEW_LINE>// We check if the model identifier value is within the range of a 16-bit value here. If it is then it is a sigmodel<NEW_LINE>final byte[] elementAddress = MeshAddress.addressIntToBytes(mElementAddress);<NEW_LINE>final byte[] subscripti... | .put(elementAddress[1]); |
1,639,973 | protected Object readCollectionOrArray(ConversionContext context, Collection<?> source, TypeInformation<?> targetType) {<NEW_LINE>Assert.notNull(targetType, "Target type must not be null!");<NEW_LINE>//<NEW_LINE>Class<?> //<NEW_LINE>collectionType = //<NEW_LINE>targetType.isSubTypeOf(Collection.class) ? targetType.getT... | > rawComponentType = componentType.getType(); |
1,260,517 | public void txnHeartBeat(BackOffer bo, ByteString primaryLock, long startTs, long ttl) {<NEW_LINE>boolean forWrite = false;<NEW_LINE>while (true) {<NEW_LINE>Supplier<TxnHeartBeatRequest> factory = () -> TxnHeartBeatRequest.newBuilder().setContext(region.getContext()).setStartVersion(startTs).setPrimaryLock(primaryLock)... | getKvTxnHeartBeatMethod(), factory, handler); |
485,229 | protected void handle(CreateVtepMsg msg) {<NEW_LINE>List<VtepVO> vteps = Q.New(VtepVO.class).eq(VtepVO_.poolUuid, msg.getPoolUuid()).eq(VtepVO_.vtepIp, msg.<MASK><NEW_LINE>for (VtepVO vtep : vteps) {<NEW_LINE>if (!vtep.getHostUuid().equals(msg.getHostUuid())) {<NEW_LINE>logger.warn(String.format("same vtepip[%s] in hos... | getVtepIp()).list(); |
1,317,851 | private void insertItemEvents(@Nonnull ItemStack toInsert, EnumDyeColor colour, double speed, EnumFacing from) {<NEW_LINE>IPipeHolder holder = pipe.getHolder();<NEW_LINE>PipeEventItem.OnInsert onInsert = new PipeEventItem.OnInsert(holder, this, colour, toInsert, from);<NEW_LINE>holder.fireEvent(onInsert);<NEW_LINE>if (... | long now = world.getTotalWorldTime(); |
1,830,479 | private State buildState() {<NEW_LINE>Config tlsConfig = getTlsConfig();<NEW_LINE>EllipticCurve curve = CurveFactory.getCurve(config.getNamedGroup());<NEW_LINE>ModifiableByteArray serializedPublicKey = ModifiableVariableFactory.createByteArrayModifiableVariable();<NEW_LINE>Point basepoint = new Point(new FieldElementFp... | serializedPublicKey, pms, explicitPMS, individualConfig); |
120,521 | protected boolean doProcess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {<NEW_LINE>Map<AbstractBridgeParser, List<DefinitionData>> toGenerate = new HashMap<>();<NEW_LINE>Set<? extends Element> annotatedElements = roundEnv.getElementsAnnotatedWith(getTypeElement(HotSpotToNativeBridgeParser.GENERAT... | toGenerate.put(parser, parsedData); |
1,696,668 | private void applyPreview(Drawable drawable) {<NEW_LINE>if (mApplyBitmapDeferred) {<NEW_LINE>mDeferredDrawable = drawable;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (drawable != null) {<NEW_LINE>float scale = 1f;<NEW_LINE>if (getWidth() > 0 && getHeight() > 0) {<NEW_LINE>// Scale down the preview size if it's wider than ... | min(maxWidth / previewWidth, 1); |
1,700,570 | private void editNext(boolean forward) {<NEW_LINE>List<TableColumn<S, ?>> columns = new ArrayList<>();<NEW_LINE>for (TableColumn<S, ?> column : getTableView().getColumns()) {<NEW_LINE>columns.addAll(getLeaves(column));<NEW_LINE>}<NEW_LINE>// There is no other column that supports editing.<NEW_LINE>int index = getIndex(... | nextColumn = columns.get(nextIndex); |
532,758 | public static GetSubscriptionItemResponse unmarshall(GetSubscriptionItemResponse getSubscriptionItemResponse, UnmarshallerContext _ctx) {<NEW_LINE>getSubscriptionItemResponse.setRequestId(_ctx.stringValue("GetSubscriptionItemResponse.RequestId"));<NEW_LINE>getSubscriptionItemResponse.setSuccess(_ctx.booleanValue("GetSu... | ("GetSubscriptionItemResponse.SubscriptionItem.ContactIds[" + i + "]")); |
1,820,423 | final UpdateWorkspaceAliasResult executeUpdateWorkspaceAlias(UpdateWorkspaceAliasRequest updateWorkspaceAliasRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateWorkspaceAliasRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | (super.beforeMarshalling(updateWorkspaceAliasRequest)); |
559,444 | public void onBindViewHolder(ViewHolder holder, Feed feed) {<NEW_LINE>String title = feed.getTitle();<NEW_LINE>holder.tvTitle.setText(title);<NEW_LINE>holder.tvTitle.setVisibility(title != null ? View.VISIBLE : View.GONE);<NEW_LINE>holder.tvDesc.setText(feed.getPreview());<NEW_LINE>holder.tvDesc.setGravity(mShowExtra ?... | holder.tvTimestamp.setText(published); |
1,349,543 | public static void convertIntegerToExternalDecimal(int integerValue, byte[] externalDecimal, int offset, int precision, boolean checkOverflow, int decimalType) {<NEW_LINE>if ((offset < 0) || (offset + CommonData.getExternalByteCounts(precision, decimalType) > externalDecimal.length))<NEW_LINE>throw new ArrayIndexOutOfB... | externalDecimal, offset, precision, decimalType); |
1,208,055 | final ListInstanceProfilesForRoleResult executeListInstanceProfilesForRole(ListInstanceProfilesForRoleRequest listInstanceProfilesForRoleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listInstanceProfilesForRoleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,400,544 | public static ReaderComment fromJson(JSONObject json, long blogId) {<NEW_LINE>if (json == null) {<NEW_LINE>throw new IllegalArgumentException("null json comment");<NEW_LINE>}<NEW_LINE>ReaderComment comment = new ReaderComment();<NEW_LINE>comment.blogId = blogId;<NEW_LINE>comment.commentId = json.optLong("ID");<NEW_LINE... | JSONUtils.getString(jsonAuthor, "email"); |
373,596 | public void loadBuildStateToNBT(NBTTagCompound nbt, IBuildingItemsProvider builder) {<NEW_LINE>if (nbt.hasKey("usedLocationList")) {<NEW_LINE>usedLocations = BitSet.valueOf(nbt.getByteArray("usedLocationList"));<NEW_LINE>}<NEW_LINE>NBTTagList buildingList = nbt.getTagList("buildersInAction", Constants.NBT.TAG_COMPOUND)... | getBuilders().add(item); |
289,204 | private synchronized V _put(int key, V value, MODE m) {<NEW_LINE>IntKeyLinkedEntry[] tab = table;<NEW_LINE>int index = hash(key) % tab.length;<NEW_LINE>for (IntKeyLinkedEntry<V> e = tab[index]; e != null; e = e.next) {<NEW_LINE>if (CompareUtil.equals(e.key, key)) {<NEW_LINE>V old = e.value;<NEW_LINE>e.value = value;<NE... | header.link_prev, header, e); |
1,186,068 | final CreateAlertManagerDefinitionResult executeCreateAlertManagerDefinition(CreateAlertManagerDefinitionRequest createAlertManagerDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAlertManagerDefinitionRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.Cl... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.