idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,788,893 | private void writeXML(Document doc, PreviewPreset preset) {<NEW_LINE>Element presetE = doc.createElement("previewpreset");<NEW_LINE>presetE.setAttribute("name", preset.getName());<NEW_LINE>presetE.setAttribute("version", "0.8.1");<NEW_LINE>for (Entry<String, Object> entry : preset.getProperties().entrySet()) {<NEW_LINE... | propertyE.setAttribute("name", propertyName); |
332,152 | public Stream<NodeResult> neighborsAtHop(@Name("node") Node node, @Name(value = "types", defaultValue = "") String types, @Name(value = "distance", defaultValue = "1") Long distance) {<NEW_LINE>if (distance < 1)<NEW_LINE>return Stream.empty();<NEW_LINE>if (types == null || types.isEmpty())<NEW_LINE>return Stream.empty(... | >> typesAndDirections = parse(types); |
145,409 | protected double matchScale(List<Point3D_F64> nullPts, DogArray<Point3D_F64> controlWorldPts) {<NEW_LINE>Point3D_F64 meanNull = UtilPoint3D_F64.mean(nullPts, numControl, null);<NEW_LINE>Point3D_F64 meanWorld = UtilPoint3D_F64.mean(controlWorldPts.toList(), numControl, null);<NEW_LINE>// compute the ratio of distance be... | + dwy * dwy + dwz * dwz; |
179,568 | public void stop(boolean mpOnly, int shutdownMode, boolean closeConnection) throws Exception {<NEW_LINE>if (callback != null)<NEW_LINE>callback.stop(mpOnly, shutdownMode, closeConnection);<NEW_LINE>if (!mpOnly) {<NEW_LINE>if (UnitTestMEStarter.me.getWSRMEngineComponent() != null) {<NEW_LINE>UnitTestMEStarter.me.getWSRM... | ()).stop(shutdownMode); |
979,347 | public void listMetricSeriesDataWithContext() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.MetricsAdvisorClient.listMetricSeriesData#String-List-OffsetDateTime-OffsetDateTime-Context<NEW_LINE>final OffsetDateTime startTime = OffsetDateTime.parse("2020-09-09T00:00:00Z");<NEW_LINE>final OffsetDateTime <MASK><NEW_LINE... | endTime = OffsetDateTime.parse("2020-09-09T12:00:00Z"); |
1,317,848 | public List<ImageUrl> parseImages(String html, Chapter chapter) {<NEW_LINE>List<ImageUrl> list = new LinkedList<>();<NEW_LINE>Node body = new Node(html);<NEW_LINE>int i = 1;<NEW_LINE>for (Node node : body.list("div#_imageList > img")) {<NEW_LINE><MASK><NEW_LINE>Long id = Long.parseLong(comicChapter + "000" + i);<NEW_LI... | Long comicChapter = chapter.getId(); |
1,377,459 | public List<String> resolve(List<String> names) {<NEW_LINE>if (names == null) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>final String defaultRack = defaultRackSupplier.get();<NEW_LINE>checkNotNull(defaultRack, "Default rack cannot be null");<NEW_LINE>List<String> rNames = resolver.resolve(names);<NE... | >(names.size()); |
150,607 | public void visit(TypeDefBuilder builder) {<NEW_LINE>TypeDef type = builder.build();<NEW_LINE>final List<Property> props = type.getProperties();<NEW_LINE>for (Property p : props) {<NEW_LINE>if (parents.contains(p)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>List<Property> newParents = new ArrayList<>(parents);<NEW_LINE>b... | (ClassRef) p.getTypeRef(); |
521,906 | public ResponseEntity<?> importArtifact(@RequestParam(value = "url", required = true) String url, @RequestParam(value = "mainArtifact", defaultValue = "true") boolean mainArtifact) {<NEW_LINE>if (!url.isEmpty()) {<NEW_LINE>List<Service> services = null;<NEW_LINE>try {<NEW_LINE>// Download remote to local file before im... | handleHTTPDownloadToFile(url, null, true); |
55,552 | public void generate(NodeLIRBuilderTool gen) {<NEW_LINE>// New OpenCL nodes for atomic add<NEW_LINE>OCLStamp oclStamp = null;<NEW_LINE>switch(elementKind) {<NEW_LINE>case Int:<NEW_LINE>oclStamp = getStampInt();<NEW_LINE>break;<NEW_LINE>case Long:<NEW_LINE>// DUE TO UNSUPPORTED FEATURE IN INTEL OpenCL PLATFORM<NEW_LINE>... | = new OCLStamp(OCLKind.ATOMIC_ADD_INT); |
260,059 | public com.amazonaws.services.codecommit.model.ActorDoesNotExistException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.ActorDoesNotExistException actorDoesNotExistException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = cont... | codecommit.model.ActorDoesNotExistException(null); |
1,689,972 | public static // modified for performance and to allow parsing numbers with leading '+'<NEW_LINE>Integer tryParse(String string, int begin, int end) {<NEW_LINE>if (begin < 0 || end > string.length() || end - begin < 1)<NEW_LINE>return null;<NEW_LINE>int radix = 10;<NEW_LINE>char <MASK><NEW_LINE>boolean negative = first... | firstChar = string.charAt(begin); |
1,527,331 | public AddAssociationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AddAssociationResult addAssociationResult = new AddAssociationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | class).unmarshall(context)); |
1,703,116 | private void transfer(JMSSampler element) {<NEW_LINE>element.setQueueConnectionFactory(queueConnectionFactory.getText());<NEW_LINE>element.setSendQueue(sendQueue.getText());<NEW_LINE>element.setReceiveQueue(receiveQueue.getText());<NEW_LINE>element.setProperty(JMSSampler.JMS_COMMUNICATION_STYLE, jmsCommunicationStyle.g... | (JMSProperties) jmsPropertiesPanel.createTestElement(); |
885,103 | private void mountGlobalRestFailureHandler(Router mainRouter) {<NEW_LINE>GlobalRestFailureHandler globalRestFailureHandler = <MASK><NEW_LINE>Handler<RoutingContext> failureHandler = null == globalRestFailureHandler ? ctx -> {<NEW_LINE>if (ctx.response().closed() || ctx.response().ended()) {<NEW_LINE>// response has bee... | SPIServiceUtils.getPriorityHighestService(GlobalRestFailureHandler.class); |
88,353 | protected List<String> statsDisplay(Player player, float skillValue, boolean hasEndurance, boolean isLucky) {<NEW_LINE>List<String> messages = new ArrayList<>();<NEW_LINE>if (canEnvironmentallyAware) {<NEW_LINE>messages.add(LocaleLoader.getString("Ability.Generic.Template", LocaleLoader.getString("Taming.Ability.Bonus.... | "Taming.Ability.Bonus.7", Taming.sharpenedClawsBonusDamage))); |
433,821 | public GetDevEndpointResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetDevEndpointResult getDevEndpointResult = new GetDevEndpointResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | ().unmarshall(context)); |
1,341,843 | public boolean uniqueKeyCode(Element element, String targetAnnotationClass) {<NEW_LINE>int[] elementsKeyCodes = extractKeyCode(element);<NEW_LINE>if (elementsKeyCodes.length == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Set<Integer> uniqueKeyCodes = new <MASK><NEW_LINE>for (int keyCode : elementsKeyCodes) {<NEW_LI... | HashSet<>(elementsKeyCodes.length); |
1,395,822 | static Optional<io.swagger.models.parameters.Parameter> create(springfox.documentation.service.Parameter source) {<NEW_LINE>String safeSourceParamType = ofNullable(source.getParamType()).map(String::toLowerCase).orElse("");<NEW_LINE>SerializableParameterFactory factory = SerializableParameterFactories.FACTORY_MAP.getOr... | setName(source.getName()); |
228,336 | public static int runExternalAndWait(Ruby runtime, IRubyObject[] rawArgs, Map mergeEnv) {<NEW_LINE>OutputStream output = runtime.getOutputStream();<NEW_LINE>OutputStream error = runtime.getErrorStream();<NEW_LINE>InputStream input = runtime.getInputStream();<NEW_LINE>File pwd = new File(runtime.getCurrentDirectory());<... | LaunchConfig(runtime, rawArgs, true); |
803,383 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = game.getObject(source);<NEW_LINE>if (sourceObject != null && controller != null) {<NEW_LINE>FilterCard filter = new FilterCard("card with mana value " + sourceObjec... | getIdName(), revealed, game); |
825,842 | public static String encode(String message, String cipherSmall) {<NEW_LINE>StringBuilder encoded = new StringBuilder();<NEW_LINE>// This map is used to encode<NEW_LINE>Map<Character, Character> cipherMap = new HashMap<>();<NEW_LINE>char beginSmallLetter = 'a';<NEW_LINE>char beginCapitalLetter = 'A';<NEW_LINE>cipherSmal... | String cipherCapital = cipherSmall.toUpperCase(); |
152,651 | private void copyGapInsideGroup(LayoutInterval gap, int gapSize, LayoutInterval group, int alignment) {<NEW_LINE>assert gap.isEmptySpace() && (alignment == LEADING || alignment == TRAILING);<NEW_LINE>if (alignment == LEADING)<NEW_LINE>gapSize = -gapSize;<NEW_LINE>group.getCurrentSpace().positions[dimension][alignment] ... | [dimension][alignment] += gapSize; |
550,146 | public static Endpoint decodeInline(final RLPInput in, final int fieldCount) {<NEW_LINE>checkGuard(fieldCount == 2 || fieldCount == 3, PeerDiscoveryPacketDecodingException::new, "Invalid number of components in RLP representation of an endpoint: expected 2 or 3 elements but got %s", fieldCount);<NEW_LINE>String hostAdd... | of(in.readIntScalar()); |
1,023,484 | private TableMetaData findTableMetaData(@Nullable String schemaName, @Nullable String tableName, Map<String, TableMetaData> tableMeta) {<NEW_LINE>if (schemaName != null) {<NEW_LINE>TableMetaData tmd = tableMeta.<MASK><NEW_LINE>if (tmd == null) {<NEW_LINE>throw new DataAccessResourceFailureException("Unable to locate ta... | get(schemaName.toUpperCase()); |
389,127 | private RADComponent copyAndApplyBorder(RADComponent sourceComp, RADComponent targetComp) {<NEW_LINE>try {<NEW_LINE>Border borderInstance = <MASK><NEW_LINE>BorderDesignSupport designBorder = new BorderDesignSupport(borderInstance);<NEW_LINE>Node.Property[] sourceProps = sourceComp.getKnownBeanProperties();<NEW_LINE>Nod... | (Border) sourceComp.createBeanInstance(); |
1,064,652 | public static void main(String[] args) throws Exception {<NEW_LINE>WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.createPackage();<NEW_LINE>String path_in = System.getProperty("user.dir") + "/src/test/resources/parts/";<NEW_LINE>// Need to know how what type of part to map to<NEW_LINE>InputStream in = ... | wordMLPackage, externalCtm, "docProps/app.xml", in); |
1,737,911 | private void extractPoiAdditionals(Collection<PoiType> poiAdditionals, Map<String, List<PoiType>> additionalsMap, Set<String> excludedPoiAdditionalCategories, boolean extractAll) {<NEW_LINE>for (PoiType poiType : poiAdditionals) {<NEW_LINE>String category = poiType.getPoiAdditionalCategory();<NEW_LINE>if (category == n... | '_', ':').toLowerCase(); |
1,480,309 | public void refreshRow() throws SQLException {<NEW_LINE>loggerExternal.<MASK><NEW_LINE>if (loggerExternal.isLoggable(Level.FINER) && Util.isActivityTraceOn()) {<NEW_LINE>loggerExternal.finer(toString() + " ActivityId: " + ActivityCorrelator.getNext().toString());<NEW_LINE>}<NEW_LINE>if (logger.isLoggable(java.util.logg... | entering(getClassNameLogging(), "refreshRow"); |
761,283 | private Element createNode(Document document, Graph graph, Node n) throws Exception {<NEW_LINE>Element <MASK><NEW_LINE>nodeE.setAttribute("id", n.getId().toString());<NEW_LINE>// Label<NEW_LINE>if (n.getLabel() != null && !n.getLabel().isEmpty()) {<NEW_LINE>Element labelE = createNodeLabel(document, n);<NEW_LINE>nodeE.... | nodeE = document.createElement("node"); |
1,327,798 | public void receiveData(final Context pebbleContext, final int transactionId, final PebbleDictionary data) {<NEW_LINE>try {<NEW_LINE>int newState = data.getUnsignedIntegerAsLong(Constants.SPORTS_STATE_KEY).intValue();<NEW_LINE><MASK><NEW_LINE>if (newState == Constants.SPORTS_STATE_PAUSED || newState == Constants.SPORTS... | PebbleKit.sendAckToPebble(context, transactionId); |
649,280 | private JToggleButton createPlacesSelectedNodeToggleButton() {<NEW_LINE>final JToggleButton checkBoxOnlySpecificNodes = createToggleButtonWithIconAndLabel("PlaceSelectedNodeOnSlide.icon", "slide.placenode");<NEW_LINE>checkBoxOnlySpecificNodes.setAlignmentX(Component.CENTER_ALIGNMENT);<NEW_LINE>checkBoxOnlySpecificNodes... | (slide).setPlacedNodeId(null); |
910,888 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>((Infinity) getApplication()).getAppComponent().inject(this);<NEW_LINE>setImmersiveModeNotApplicable();<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_edit_comment);<NEW_LINE>ButterKnife.bind(this);<NEW_LINE>EventBus.g... | toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); |
441,215 | public com.amazonaws.services.iotwireless.model.TooManyTagsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.iotwireless.model.TooManyTagsException tooManyTagsException = new com.amazonaws.services.iotwireless.model.TooManyTagsException(null);<NEW_LINE><... | int originalDepth = context.getCurrentDepth(); |
636,986 | public IfcModel execute() throws UserException, BimserverDatabaseException, BimserverLockConflictException {<NEW_LINE>DateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy HH:mm");<NEW_LINE>User user = getUserByUoid(getAuthorization().getUoid());<NEW_LINE>Revision revision = getRevisionByRoid(roid);<NEW_LINE>Project... | ).create(Checkout.class); |
1,785,565 | public static IMessage create(PacketSequence packetSequence) {<NEW_LINE>if (packetSequence != null && packetSequence.isComplete()) {<NEW_LINE>PacketSequenceHeader primaryHeader = packetSequence.getPacketSequenceHeader();<NEW_LINE>CorrectedBinaryMessage packet = getPacket(<MASK><NEW_LINE>if (packet != null) {<NEW_LINE>s... | packetSequence, primaryHeader.isConfirmedData()); |
1,346,912 | // B.3 pg 62<NEW_LINE>public ECPoint twice() {<NEW_LINE>if (this.isInfinity()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>ECCurve curve = this.getCurve();<NEW_LINE>SecP224K1FieldElement Y1 = (SecP224K1FieldElement) this.y;<NEW_LINE>if (Y1.isZero()) {<NEW_LINE>return curve.getInfinity();<NEW_LINE>}<NEW_LINE>SecP224K1Fi... | addBothTo(M, M, M); |
1,229,483 | public void contextInitialized(ServletContextEvent sce) {<NEW_LINE>WebServiceContractImpl wscImpl = WebServiceContractImpl.getInstance();<NEW_LINE>ComponentEnvManager compEnvManager = wscImpl.getComponentEnvManager();<NEW_LINE>JndiNameEnvironment jndiNameEnv = compEnvManager.getCurrentJndiNameEnvironment();<NEW_LINE>We... | webBundle = ((WebBundleDescriptor) jndiNameEnv); |
1,388,971 | protected boolean trackFeature() {<NEW_LINE>pairs.reset();<NEW_LINE>// total number of tracks which contribute to FB error<NEW_LINE>int numTracksFB = 0;<NEW_LINE>// tracks which are not dropped<NEW_LINE>int numTracksRemaining = 0;<NEW_LINE>for (int i = 0; i < tracks.length; i++) {<NEW_LINE>Track t = tracks[i];<NEW_LINE... | p2.setTo(currX, currY); |
1,351,920 | public void marshall(FleetSummary fleetSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (fleetSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.marshall(flee... | fleetSummary.getFleetArn(), FLEETARN_BINDING); |
261,969 | private void demoIndexByTableWithElementsAsMapOfEntries(Connection conn) throws SQLException {<NEW_LINE>// Initialize the map. The indices of Associative Array can be sparse and negative.<NEW_LINE>final Map<Integer, String> map = new HashMap<>();<NEW_LINE>map.put(-10, "str1");<NEW_LINE>map.put(20, "str2");<NEW_LINE>map... | map.put(33, ""); |
1,384,795 | private static Lookup findLookupFor(NavigationHistory.Waypoint wpt) {<NEW_LINE>// try component first<NEW_LINE>JTextComponent component = wpt.getComponent();<NEW_LINE>if (component != null) {<NEW_LINE>for (java.awt.Component c = component; c != null; c = c.getParent()) {<NEW_LINE>if (c instanceof Lookup.Provider) {<NEW... | find(f).getLookup(); |
485,009 | private void tableSelect() {<NEW_LINE>BlacklistRule bl = null;<NEW_LINE>int selectedTableRow = jTableBlacklist.getSelectedRow();<NEW_LINE>if (selectedTableRow >= 0) {<NEW_LINE>int del = jTableBlacklist.convertRowIndexToModel(selectedTableRow);<NEW_LINE>String delNr = jTableBlacklist.getModel().getValueAt(del, Blacklist... | .arr[BlacklistRule.BLACKLIST_TITEL]); |
773,785 | public static boolean isOnXParameterAnnotation(HighlightInfo highlightInfo, PsiFile file) {<NEW_LINE>final String description = StringUtil.notNullize(highlightInfo.getDescription());<NEW_LINE>if (!(ANNOTATION_TYPE_EXPECTED.equals(description) || CANNOT_RESOLVE_SYMBOL_UNDERSCORES_MESSAGE.matcher(description).matches() |... | String parameterName = nameValuePair.getName(); |
1,833,828 | protected void removeObsoleteBackupFiles(String dbFolderName) {<NEW_LINE>File dbFolder = new File(dbFolderName);<NEW_LINE>if (dbFolder.exists() && dbFolder.isDirectory()) {<NEW_LINE>File[] backupFiles = dbFolder.listFiles(new FilenameFilter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean accept(File dir, Strin... | name.endsWith(DB_FILE_NAME + ".bak"); |
1,850,129 | public static ListRepositoryTagsResponse unmarshall(ListRepositoryTagsResponse listRepositoryTagsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRepositoryTagsResponse.setRequestId(_ctx.stringValue("ListRepositoryTagsResponse.RequestId"));<NEW_LINE>listRepositoryTagsResponse.setErrorCode(_ctx.stringValue("ListReposi... | ("ListRepositoryTagsResponse.Result[" + i + "].Id")); |
1,077,186 | public void componentMoved(ComponentEvent e) {<NEW_LINE>int newWidth = e.getComponent().getWidth();<NEW_LINE>int newHeight = e.getComponent().getHeight();<NEW_LINE>boolean sizeChanged = newWidth != width || newHeight != height;<NEW_LINE>width = newWidth;<NEW_LINE>height = newHeight;<NEW_LINE>int newX = e.getComponent()... | .getComponent().getY(); |
555,718 | public String processMeCommand(ChatMessage chatMessage) {<NEW_LINE>String contentType = chatMessage.getContentType();<NEW_LINE>String message = chatMessage.getMessage();<NEW_LINE>if (message.length() <= 4 || !message.startsWith("/me ")) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>String msgID = ChatHtmlUtils.MESSAGE_TEXT... | String chatString = "<DIV ID='" + msgID + "'><B><I>"; |
725,687 | private Task<Map<String, Object>> linkUserWithCredential(Map<String, Object> arguments) {<NEW_LINE>return Tasks.call(cachedThreadPool, () -> {<NEW_LINE>FirebaseUser firebaseUser = getCurrentUser(arguments);<NEW_LINE>AuthCredential credential = getCredential(arguments);<NEW_LINE>if (firebaseUser == null) {<NEW_LINE>thro... | String message = exception.getMessage(); |
559,698 | public Set<Map<String, List<String>>> searchForMultipleAttributeValues(String base, String filter, Object[] params, String[] attributeNames) {<NEW_LINE>// Escape the params acording to RFC2254<NEW_LINE>Object[] encodedParams = new String[params.length];<NEW_LINE>for (int i = 0; i < params.length; i++) {<NEW_LINE>encode... | record = new HashMap<>(); |
1,708,634 | protected EnvironmentSensorAsset createDemoEnvironmentAsset(String name, Asset<?> area, GeoJSONPoint location, Supplier<AgentLink<?>> agentLinker) {<NEW_LINE>EnvironmentSensorAsset environmentAsset = new EnvironmentSensorAsset(name);<NEW_LINE>environmentAsset.setParent(area);<NEW_LINE>environmentAsset.getAttributes().a... | , agentLinker.get())); |
159,180 | protected final Map<TKey, TValue> deserializeValue(UntaggedDeserializationContext context, TypeDef typeDef) throws IOException {<NEW_LINE>final int count = context.reader.readContainerBegin();<NEW_LINE>final Map<TKey, TValue> value = newDefaultValue();<NEW_LINE>final TypeDef keyType = typeDef.key;<NEW_LINE>final TypeDe... | keyType.deserializeValue(context, keyType); |
1,447,733 | private void saveProperty(EventObject e) {<NEW_LINE>if (e.getSource() == chkBackupDnsEnabled) {<NEW_LINE>boolean enabled = chkBackupDnsEnabled.isSelected();<NEW_LINE>configService.setProperty(PNAME_BACKUP_RESOLVER_ENABLED, enabled);<NEW_LINE>updateButtonsState();<NEW_LINE>} else if (e.getSource() == txtBackupResolver) ... | getValue().toString()); |
41,142 | private void createJournal(MJournalBatch journalBatch, int conversionTypeId, int calendarId, int budgetId) {<NEW_LINE>int noPeriods = 0;<NEW_LINE>if (getNoOfPeriods() == 0 || getNoOfPeriods() > 12)<NEW_LINE>noPeriods = 12;<NEW_LINE>else<NEW_LINE>noPeriods = getNoOfPeriods();<NEW_LINE>definePeriods(calendarId);<NEW_LINE... | journal.setCurrencyRate(BigDecimal.ONE); |
219,141 | private List<FetchedValue> extractBatchedValues(FetchedValue fetchedValueContainingList, int expectedSize) {<NEW_LINE>List<Object> list = (List<Object>) fetchedValueContainingList.getFetchedValue();<NEW_LINE>Assert.assertTrue(list.size() <MASK><NEW_LINE>List<FetchedValue> result = new ArrayList<>();<NEW_LINE>for (int i... | == expectedSize, () -> "Unexpected result size"); |
88,220 | public void serialize(DataOutputStream stream) throws IOException {<NEW_LINE>stream.writeByte((byte) PhysicalPlanType.APPEND_TEMPLATE.ordinal());<NEW_LINE>ReadWriteIOUtils.write(name, stream);<NEW_LINE>ReadWriteIOUtils.write(isAligned, stream);<NEW_LINE>// measurements<NEW_LINE>ReadWriteIOUtils.write(measurements.lengt... | write(encodings.length, stream); |
58,656 | public void clear() {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>domain.setText("");<NEW_LINE>if (notConfigOnly) {<NEW_LINE>followRedirects.setSelected(<MASK><NEW_LINE>autoRedirects.setSelected(getUrlConfigDefaults().isAutoRedirects());<NEW_LINE>method.setText(getUrlConfigDefaults().getDefaultMethod());<NEW_LINE>useKeepAlive.set... | getUrlConfigDefaults().isFollowRedirects()); |
1,789,696 | static Protos.BluetoothCharacteristic from(BluetoothDevice device, BluetoothGattCharacteristic characteristic, BluetoothGatt gatt) {<NEW_LINE>Protos.BluetoothCharacteristic.Builder p = Protos.BluetoothCharacteristic.newBuilder();<NEW_LINE>p.setRemoteId(device.getAddress());<NEW_LINE>p.setUuid(characteristic.getUuid().t... | (characteristic.getProperties())); |
1,378,519 | private boolean isSLAStale(ResourceFile slaFile) {<NEW_LINE>String slafilename = slaFile.getName();<NEW_LINE>int <MASK><NEW_LINE>String slabase = slafilename.substring(0, index);<NEW_LINE>String slaspecfilename = slabase + ".slaspec";<NEW_LINE>ResourceFile slaspecFile = new ResourceFile(slaFile.getParentFile(), slaspec... | index = slafilename.lastIndexOf('.'); |
1,418,452 | public Mono<Void> onMessageCreate(int shardIndex, MessageCreate dispatch) {<NEW_LINE>ImmutableMessageData message = ImmutableMessageData.copyOf(dispatch.message());<NEW_LINE>long channelId = message.channelId().asLong();<NEW_LINE>long messageId = message.id().asLong();<NEW_LINE>Long2 id = new Long2(channelId, messageId... | channelContent = computeChannelContent(id.a); |
376,916 | private void introspectSelfIntrospectable() {<NEW_LINE>try {<NEW_LINE>String[] strings = ((FFDCSelfIntrospectable) _member).introspectSelf();<NEW_LINE>if (strings != null) {<NEW_LINE>for (int i = 0; i < strings.length; i++) {<NEW_LINE>// If the string has an equals sign in it, split it there<NEW_LINE>if (strings[i] != ... | "strings[" + i + "]", null); |
430,545 | protected ExecutableDdlJob doCreate() {<NEW_LINE>final TableMeta primaryTableMeta = OptimizerContext.getContext(schemaName).getLatestSchemaManager().getTable(primaryTableName);<NEW_LINE>checkLocalPartitionColumnInUk(primaryTableMeta);<NEW_LINE>List<TableMeta> gsiList = GlobalIndexMeta.getIndex(primaryTableName, schemaN... | LocalPartitionDefinitionInfo.generateLocalPartitionStmtForCreate(definitionInfo, pivotDate); |
1,270,375 | private static NativeContinuation captureContinuation(Context cx, CallFrame frame, boolean requireContinuationsTopFrame) {<NEW_LINE>NativeContinuation c = new NativeContinuation();<NEW_LINE>ScriptRuntime.setObjectProtoAndParent(c<MASK><NEW_LINE>// Make sure that all frames are frozen<NEW_LINE>CallFrame x = frame;<NEW_L... | , ScriptRuntime.getTopCallScope(cx)); |
557,901 | private boolean processKeyEventOnWindows(KeyEvent e) {<NEW_LINE>if (e.getKeyCode() != KeyEvent.VK_ALT) {<NEW_LINE>selectMenuOnAltReleased = false;<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (e.getID() == KeyEvent.KEY_PRESSED) {<NEW_LINE>altPressedEventCount++;<NEW_LINE>if (altPressedEventCount == 1 && !e.isConsumed(... | Component c = e.getComponent(); |
66,722 | public void marshall(Tape tape, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (tape == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(tape.getTapeARN(), TAPEARN_BINDING);<NEW_LINE>protocolMarshaller.marshal... | tape.getTapeSizeInBytes(), TAPESIZEINBYTES_BINDING); |
1,124,486 | private static void assertNonBreakingMigration(final JobPersistence jobPersistence, final AirbyteVersion airbyteVersion) throws IOException {<NEW_LINE>// version in the database when the server main method is called. may be empty if this is the first<NEW_LINE>// time the server is started.<NEW_LINE>LOGGER.info("Checkin... | ).map(AirbyteVersion::new); |
1,245,055 | protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite area = (Composite) super.createDialogArea(parent);<NEW_LINE>Composite container = Widgets.createComposite(area, new GridLayout(2, false));<NEW_LINE>container.setLayoutData(new GridData(SWT.FILL, SWT<MASK><NEW_LINE>for (API.Parameter param : comma... | .FILL, true, true)); |
1,630,275 | public void testAsyncBulkheadTimeout() throws Exception {<NEW_LINE>syntheticTaskManager.runTest(() -> {<NEW_LINE>// runTaskWithTimeout has a timeout of 2s<NEW_LINE>// These tasks should run in parallel but should time out after 2s<NEW_LINE>SyntheticTask<Void> task1 = syntheticTaskManager.newTask();<NEW_LINE>task1.onInt... | future2 = bean1.runTaskWithTimeout(task2); |
1,016,838 | private void startReader(String path, boolean preview) {<NEW_LINE>List<Chapter> <MASK><NEW_LINE>int i = 0;<NEW_LINE>for (Task t : mTaskAdapter.getDateSet()) {<NEW_LINE>Long sourceComic = Long.parseLong(t.getSource() + "000" + t.getId());<NEW_LINE>Long id = Long.parseLong(sourceComic + "" + i);<NEW_LINE>if (preview && t... | list = new ArrayList<>(); |
1,782,372 | protected EnumMap<KeyIndex, String> initContentProviderKeys() {<NEW_LINE>EnumMap<KeyIndex, String> keys = new EnumMap<KeyIndex, String>(KeyIndex.class);<NEW_LINE>keys.put(<MASK><NEW_LINE>keys.put(KeyIndex.IS_PRIMARY, Calendars.IS_PRIMARY);<NEW_LINE>keys.put(KeyIndex.CALENDARS_NAME, Calendars.NAME);<NEW_LINE>keys.put(Ke... | KeyIndex.CALENDARS_ID, Calendars._ID); |
1,630,536 | private Map<Column, Collection<ShardingConditionValue>> createShardingConditionValueMap(final Collection<ExpressionSegment> predicates, final List<Object> parameters, final Map<String, String> columnTableNames) {<NEW_LINE>Map<Column, Collection<ShardingConditionValue>> result = new HashMap<>(predicates.size(), 1);<NEW_... | (columnSegment.getExpression())); |
561,734 | public static DescribeEpnInstancesResponse unmarshall(DescribeEpnInstancesResponse describeEpnInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeEpnInstancesResponse.setRequestId(_ctx.stringValue("DescribeEpnInstancesResponse.RequestId"));<NEW_LINE>describeEpnInstancesResponse.setPageNumber(_ctx.integerVal... | ("DescribeEpnInstancesResponse.EPNInstances[" + i + "].InternetMaxBandwidthOut")); |
1,117,477 | private ST_Agedge_s createEdge(ST_Agnode_s a0, ST_Agnode_s a1, int num) {<NEW_LINE>final ST_Agedge_s edge = agedge(g, a0, a1, null, true);<NEW_LINE>edge.NAME = a0.NAME + "-" + a1.NAME;<NEW_LINE>agsafeset(edge, new CString("arrowsize"), new CString(".75"), new CString(""));<NEW_LINE>agsafeset(edge, new CString("arrowtai... | ), new CString("")); |
1,573,609 | public static KeyValuePart[] split(MatrixMeta matrixMeta, int rowId, long[] keys, double[] values, boolean isSorted) {<NEW_LINE>if (!isSorted) {<NEW_LINE>Sort.quickSort(keys, values, 0, keys.length - 1);<NEW_LINE>}<NEW_LINE>PartitionKey[<MASK><NEW_LINE>KeyValuePart[] dataParts = new KeyValuePart[matrixParts.length];<NE... | ] matrixParts = matrixMeta.getPartitionKeys(); |
1,312,886 | public static void findProfileViolations(@NonNull final Profile profileToCheck, @NonNull final Iterable<URL> bootClassPath, @NonNull final Iterable<URL> compileClassPath, @NonNull final Iterable<URL> sourcePath, @NonNull final Set<Validation> check, @NonNull final ViolationCollectorFactory collectorFactory, @NonNull fi... | Parameters.notNull("collectorFactory", collectorFactory); |
673,236 | // Must init at first<NEW_LINE>public static void allClasses() throws HackAssertionException {<NEW_LINE>if (android.os.Build.VERSION.SDK_INT <= 8) {<NEW_LINE>LoadedApk = Hack.into("android.app.ActivityThread$PackageInfo");<NEW_LINE>} else {<NEW_LINE>LoadedApk = Hack.into("android.app.LoadedApk");<NEW_LINE>}<NEW_LINE>Ac... | content.res.AssetManager.class); |
737,231 | public void changed(Event event) {<NEW_LINE>log.debug("claspath event received {}", event);<NEW_LINE>server.doOnInitialized(() -> {<NEW_LINE>// log.info("initialized.thenRun block entered");<NEW_LINE>try {<NEW_LINE>synchronized (table) {<NEW_LINE>String uri = UriUtil.normalize(event.projectUri);<NEW_LINE>log.debug("uri... | deleted = table.remove(uri); |
976,883 | private static void parseMethods(String id, NodeList nodeList, RootBeanDefinition beanDefinition, ParserContext parserContext) throws ClassNotFoundException {<NEW_LINE>if (nodeList != null && nodeList.getLength() > 0) {<NEW_LINE>ManagedList methods = null;<NEW_LINE>for (int i = 0; i < nodeList.getLength(); i++) {<NEW_L... | parserContext, MethodConfig.class, false); |
771,625 | public Map<String, Object> toMap() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {<NEW_LINE>final Map<String, Object> map = new HashMap<>();<NEW_LINE>map.put("active", this.getActive());<NEW_LINE>map.put("actualCompanyId", this.getActualCompanyId());<NEW_LINE>map.put("birthday", this.g... | put("passwordReset", isPasswordReset()); |
114,169 | private static void addSerialized(StringBuilder result, String key, Object value) {<NEW_LINE>result.append(key.replace(SERIALIZATION_SEPARATOR, SEPARATOR_ESCAPE)).append(SERIALIZATION_SEPARATOR);<NEW_LINE>if (value instanceof Integer) {<NEW_LINE>result.append('i').append(value);<NEW_LINE>} else if (value instanceof Dou... | getClass().toString()); |
1,590,943 | public int offsetToVisualColumnInFoldRegion(@Nonnull FoldRegion region, int offset, boolean leanTowardsLargerOffsets) {<NEW_LINE>if (offset < 0 || offset == 0 && !leanTowardsLargerOffsets)<NEW_LINE>return 0;<NEW_LINE><MASK><NEW_LINE>if (offset > text.length()) {<NEW_LINE>offset = text.length();<NEW_LINE>leanTowardsLarg... | String text = region.getPlaceholderText(); |
610,792 | final TransactGetItemsResult executeTransactGetItems(TransactGetItemsRequest transactGetItemsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(transactGetItemsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | false), new TransactGetItemsResultJsonUnmarshaller()); |
647,467 | public void requestTeleport(double d0, double d1, double d2, float f, float f1, Set<PlayerPositionLookS2CPacket.Flag> set, boolean flag) {<NEW_LINE>// CraftBukkit - Return event status<NEW_LINE>Player player = this.getPlayer();<NEW_LINE>Location from = player.getLocation();<NEW_LINE>double x = d0;<NEW_LINE>double y = d... | f, f1, set, flag); |
1,148,490 | public static void populateCopyObjectHeaders(CopyObjectRequest copyObjectRequest, Map<String, String> headers) {<NEW_LINE>String copySourceHeader = "/" + copyObjectRequest.getSourceBucketName() + "/" + HttpUtil.urlEncode(copyObjectRequest.getSourceKey(), OSSConstants.DEFAULT_CHARSET_NAME);<NEW_LINE>headers.put(OSSHeade... | COPY_OBJECT_SOURCE_IF_MODIFIED_SINCE, copyObjectRequest.getModifiedSinceConstraint()); |
1,451,136 | public static BarPlot of(int[] data, double[] breaks, boolean prob, Color color) {<NEW_LINE><MASK><NEW_LINE>if (k <= 1) {<NEW_LINE>throw new IllegalArgumentException("Invalid number of bins: " + k);<NEW_LINE>}<NEW_LINE>double[][] hist = smile.math.Histogram.of(data, breaks);<NEW_LINE>double[][] freq = new double[k][2];... | int k = breaks.length - 1; |
487,588 | public static void main(String... args) {<NEW_LINE>OrderDTO orderDTO = new OrderDTO();<NEW_LINE>orderDTO.setStreet("1234 Pike Street");<NEW_LINE>orderDTO.setCity("Seattle");<NEW_LINE>// Option 1<NEW_LINE>ModelMapper modelMapper = new ModelMapper();<NEW_LINE>PropertyMap<OrderDTO, Order> orderMap = new PropertyMap<OrderD... | map(orderDTO, Order.class); |
1,540,673 | private void onSearchResponse(SearchResponse sr) {<NEW_LINE>try {<NEW_LINE>if (sr.getHits().getTotalHits().value > StoredFeatureSet.MAX_FEATURES) {<NEW_LINE>throw new IllegalArgumentException("The feature query [" + featureNamesQuery + "] returns too many features");<NEW_LINE>}<NEW_LINE>if (sr.getHits().getTotalHits().... | , hit.getSourceRef())); |
965,704 | public ListDashboardVersionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDashboardVersionsResult listDashboardVersionsResult = new ListDashboardVersionsResult();<NEW_LINE>listDashboardVersionsResult.setStatus(context.getHttpResponse().getStatusCode());<NEW_LINE>int originalDepth = ... | class).unmarshall(context)); |
367,354 | public List<MediaFileEntry> toMediaFileEntryList(List<MediaFile> files, String username, boolean calculateStarred, boolean calculateFolderAccess, Function<MediaFile, String> streamUrlGenerator, Function<MediaFile, String> remoteStreamUrlGenerator, Function<MediaFile, String> remoteCoverArtUrlGenerator) {<NEW_LINE>Local... | file)).orElse(null); |
713,500 | public void onBindViewHolder(@NonNull MyViewHolder holder, int position) {<NEW_LINE>final AbstractDataProvider.Data item = mProvider.getItem(position);<NEW_LINE>// set listeners<NEW_LINE>// (if the item is *pinned*, click event comes to the mContainer)<NEW_LINE>holder.mContainer.setOnClickListener(mSwipeableViewContain... | setText(item.getText()); |
944,315 | public void initialize() {<NEW_LINE>addTitledGroupBg(root, gridRow, 2, Res.get("dao.factsAndFigures.transactions.genesis"));<NEW_LINE>String genTxHeight = String.valueOf(daoFacade.getGenesisBlockHeight());<NEW_LINE>String genesisTxId = daoFacade.getGenesisTxId();<NEW_LINE>String url = preferences.getBsqBlockChainExplor... | get("tooltip.openBlockchainForTx", genesisTxId))); |
432,187 | // This is called when connecting to a Chromecast from this activity. It will tell BaseActivity<NEW_LINE>// to launch the video that was playing on the Chromecast.<NEW_LINE>@Override<NEW_LINE>protected void returnToMainAndResume() {<NEW_LINE>Bundle bundle = new Bundle();<NEW_LINE>bundle.putSerializable(YOUTUBE_VIDEO, f... | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_TASK_ON_HOME); |
536,209 | public void testCreateConsumerWithMsgSelectorWithDD(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean testFailed = false;<NEW_LINE>JMSContext jmsContext = jmsQCFBindings.createContext();<NEW_LINE>emptyQueue(jmsQCFBindings, jmsQueue);<NEW_LINE>JMSProducer jmsProducer = jmsCont... | jmsContext.createConsumer(jmsQueue, "Team = 'SIB'"); |
959,416 | private void addFieldChildren(QueryProfilesConfig.Queryprofile.Builder qpB, QueryProfile profile, String namePrefix) {<NEW_LINE>List<Map.Entry<String, Object>> content = new ArrayList<>(profile.declaredContent().entrySet());<NEW_LINE>Collections.sort(content, new MapEntryKeyComparator());<NEW_LINE>if (profile.getValue(... | value(value.toString()); |
930,541 | private void performAdditionToUserHistoryDictionary(final SettingsValues settingsValues, final String suggestion, @Nonnull final NgramContext ngramContext) {<NEW_LINE>// If correction is not enabled, we don't add words to the user history dictionary.<NEW_LINE>// That's to avoid unintended additions in some sensitive fi... | ) && !mWordComposer.isMostlyCaps(); |
1,558,294 | protected FetchedValue unboxPossibleDataFetcherResult(ExecutionContext executionContext, ExecutionStrategyParameters parameters, Object result) {<NEW_LINE>if (result instanceof DataFetcherResult) {<NEW_LINE>// noinspection unchecked<NEW_LINE>DataFetcherResult<?> dataFetcherResult = (DataFetcherResult) result;<NEW_LINE>... | Object localContext = dataFetcherResult.getLocalContext(); |
614,818 | public void onChatMessage(ChatMessage chatMessage) {<NEW_LINE>// Start sending old messages right after the welcome message, as that is most reliable source<NEW_LINE>// of information that chat history was reset<NEW_LINE>ChatMessageType chatMessageType = chatMessage.getType();<NEW_LINE>if (chatMessageType == ChatMessag... | setRuneLiteFormatMessage(queuedMessage.getRuneLiteFormatMessage()); |
234,442 | public String importPermissions(PermissionAssistant permissionAssistant) {<NEW_LINE>try {<NEW_LINE>ResourceBundle bundle = I18n.getBundle(new Locale(permissionAssistant.getLanguage()));<NEW_LINE>MetaFile metaFile = permissionAssistant.getMetaFile();<NEW_LINE>File csvFile = MetaFiles.getPath(metaFile).toFile();<NEW_LINE... | ), e.getMessage()); |
1,377,472 | private void handleRegisterRequest(REQID rid, SocketChannel channel, Metrics.MetricPublisherRegisterRequest request) {<NEW_LINE>Metrics.MetricPublisher publisher = request.getPublisher();<NEW_LINE>LOG.log(Level.SEVERE, "Got a new register publisher from hostname: {0}," + " component_name: {1}, port: {2}, instance_id: {... | , publisher.getInstanceIndex() }); |
724,041 | public static ListMetricsResponse unmarshall(ListMetricsResponse listMetricsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMetricsResponse.setRequestId(_ctx.stringValue("ListMetricsResponse.RequestId"));<NEW_LINE>listMetricsResponse.setMessage<MASK><NEW_LINE>listMetricsResponse.setCode(_ctx.stringValue("ListMetrics... | (_ctx.stringValue("ListMetricsResponse.Message")); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.