idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
736,483 | public static VerifySentenceResponse unmarshall(VerifySentenceResponse verifySentenceResponse, UnmarshallerContext _ctx) {<NEW_LINE>verifySentenceResponse.setRequestId(_ctx.stringValue("VerifySentenceResponse.RequestId"));<NEW_LINE>verifySentenceResponse.setSuccess(_ctx.booleanValue("VerifySentenceResponse.Success"));<... | (_ctx.stringValue("VerifySentenceResponse.Message")); |
279,971 | private static void writeThreadPoolConfigJson(JsonGenerator json, HystrixThreadPoolKey threadPoolKey, HystrixThreadPoolConfiguration threadPoolConfig) throws IOException {<NEW_LINE>json.writeObjectFieldStart(threadPoolKey.name());<NEW_LINE>json.writeNumberField("coreSize", threadPoolConfig.getCoreSize());<NEW_LINE>json... | "actualMaximumSize", threadPoolConfig.getActualMaximumSize()); |
1,823,124 | public MetadataProviderResponse addMetadataFromFieldType(AddMetadataFromFieldTypeRequest addMetadataFromFieldTypeRequest, Map<String, FieldMetadata> metadata) {<NEW_LINE>if (addMetadataFromFieldTypeRequest.getPresentationAttribute() instanceof BasicFieldMetadata && SupportedFieldType.PASSWORD.equals(((BasicFieldMetadat... | ).addMetadataFromFieldType(addMetadataFromFieldTypeRequest, metadata); |
1,522,502 | public void insertModel(final int pos, final IModel model) {<NEW_LINE>if (model == null || model.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (this.configuration != model.getConfiguration()) {<NEW_LINE>throw new TemplateProcessingException("Cannot add model of class " + model.getClass().getName() + " to the c... | .length + INITIAL_EVENT_QUEUE_SIZE / 2)); |
1,764,361 | private OsmTrack findTrack(final String operationName, final MatchedWaypoint startWp, final MatchedWaypoint endWp, final OsmTrack costCuttingTrack, final OsmTrack refTrack, final boolean fastPartialRecalc) {<NEW_LINE>try {<NEW_LINE>final List<OsmNode> wpts2 = new ArrayList<OsmNode>();<NEW_LINE>if (startWp != null) {<NE... | routingContext.considerTurnRestrictions ? 2 : 1); |
827,973 | private boolean sendMetaInfoForFile(byte[] sizeAsBytes) {<NEW_LINE>final byte[] standardReplyBytes = new byte[] { // 'TUC0'<NEW_LINE>// 'TUC0'<NEW_LINE>0x54, // 'TUC0'<NEW_LINE>0x55, // 'TUC0'<NEW_LINE>0x43, // CMD_TYPE_RESPONSE = 1<NEW_LINE>0x30, // CMD_TYPE_RESPONSE = 1<NEW_LINE>0x01, // CMD_TYPE_RESPONSE = 1<NEW_LIN... | ] twelveZeroBytes = new byte[12]; |
298,113 | protected void handle(final DeleteSnapshotOnPrimaryStorageMsg msg) {<NEW_LINE>final DeleteSnapshotOnPrimaryStorageReply reply = new DeleteSnapshotOnPrimaryStorageReply();<NEW_LINE>final <MASK><NEW_LINE>final NfsPrimaryStorageBackend bkd = getBackend(nfsMgr.findHypervisorTypeByImageFormatAndPrimaryStorageUuid(sinv.getFo... | VolumeSnapshotInventory sinv = msg.getSnapshot(); |
1,800,310 | private static void fillCheckbox(Graphics g, int width, int height) {<NEW_LINE>int x1 = scaleCoordinate(2.0450495f, 16, width);<NEW_LINE>int y1 = <MASK><NEW_LINE>int x2 = scaleCoordinate(5.8675725f, 16, width);<NEW_LINE>int y2 = scaleCoordinate(13.921746f, 16, height);<NEW_LINE>int x3 = scaleCoordinate(5.8675725f, 16, ... | scaleCoordinate(9.4227722f, 16, height); |
174,135 | public void seek(long position, long timeUs) {<NEW_LINE>// If the timestamp adjuster has not yet established a timestamp offset, we need to reset its<NEW_LINE>// expected first sample timestamp to be the new seek position. Without this, the timestamp<NEW_LINE>// adjuster would incorrectly establish its timestamp offset... | long adjusterFirstSampleTimestampUs = timestampAdjuster.getFirstSampleTimestampUs(); |
1,719,747 | public StreamObserver<LogMessage> openLog(StreamObserver<Status> responseObserver) {<NEW_LINE>return new StreamObserver<LogMessage>() {<NEW_LINE><NEW_LINE>private int logId;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onNext(LogMessage logMessage) throws LogDaemonException {<NEW_LINE>logId = logMessage.getLogId()... | logFilePath = fileIdToPath.get(logId); |
407,526 | private OHashTable.BucketPath nextNonEmptyNode(OHashTable.BucketPath bucketPath, final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>nextBucketLoop: while (bucketPath != null) {<NEW_LINE>final long[] node = directory.getNode(bucketPath.nodeIndex, atomicOperation);<NEW_LINE>final int startIndex = bucke... | bucketPath.nodeLocalDepth, bucketPath.nodeGlobalDepth); |
613,010 | public I_EDI_Desadv addToDesadvCreateForOrderIfNotExist(@NonNull final I_C_Order orderRecord) {<NEW_LINE>Check.assumeNotEmpty(orderRecord.<MASK><NEW_LINE>final I_EDI_Desadv desadvRecord = retrieveOrCreateDesadv(orderRecord);<NEW_LINE>orderRecord.setEDI_Desadv_ID(desadvRecord.getEDI_Desadv_ID());<NEW_LINE>final List<I_C... | getPOReference(), "C_Order {} has a not-empty POReference", orderRecord); |
337,906 | public void write(JsonWriter out, Name value) throws IOException {<NEW_LINE>JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();<NEW_LINE>obj.remove("additionalProperties");<NEW_LINE>// serialize additonal properties<NEW_LINE>if (value.getAdditionalProperties() != null) {<NEW_LINE>for (Map.Entry<String, Ob... | elementAdapter.write(out, obj); |
352,198 | static void replaceCompleter(PropertyProcessor propertyProcessor) {<NEW_LINE>Context context = propertyProcessor.getContext();<NEW_LINE>ReflectUtil.LiveFieldRef thisCompleterField;<NEW_LINE>if (JreUtil.isJava8()) {<NEW_LINE>ClassReader classReader = ClassReader.instance(context);<NEW_LINE>thisCompleterField = ReflectUt... | ReflectUtil.field(classFinder, "thisCompleter"); |
910,086 | private void addWriteResult(final BulkWriteResult wr, final Resource rep, final String requestPath) {<NEW_LINE>Resource nrep = new Resource();<NEW_LINE>if (wr.wasAcknowledged()) {<NEW_LINE>if (wr.getUpserts() != null || wr.getInserts() != null) {<NEW_LINE>nrep.addProperty("inserted", new BsonInt32((wr.getUpserts() != n... | (wr.getModifiedCount())); |
1,797,279 | public static void print(RedisCache redisCache) {<NEW_LINE>StringBuilder redisInfo = new StringBuilder().append("Redis Cache Name: ").append(redisCache.name()).append("\n\tResource group: ").append(redisCache.resourceGroupName()).append("\n\tRegion: ").append(redisCache.region()).append("\n\tSKU Name: ").append(redisCa... | RedisCachePremium premium = redisCache.asPremium(); |
379,629 | final DescribeDBParameterGroupsResult executeDescribeDBParameterGroups(DescribeDBParameterGroupsRequest describeDBParameterGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDBParameterGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,656,621 | private static Class<?> _getEntityClass(final Type genericType) {<NEW_LINE>if (null == genericType) {<NEW_LINE>return Object.class;<NEW_LINE>}<NEW_LINE>if (genericType instanceof Class && genericType != JAXBElement.class) {<NEW_LINE>final Class<?> clazz = (Class<?>) genericType;<NEW_LINE>if (clazz.isArray()) {<NEW_LINE... | _getEntityClass(clazz.getComponentType()); |
437,458 | public List<JavascriptResource> build(JavascriptGeneratorMode mode, boolean isCompat, String inputContent, String outputFileName) throws IOException {<NEW_LINE><MASK><NEW_LINE>StringWriter compressedSourceWriter = new StringWriter();<NEW_LINE>if (mode == JavascriptGeneratorMode.PRODUCTION) {<NEW_LINE>try (StringWriter ... | JavascriptWriter jsWriter = mode.getJavascriptWriter(); |
1,362,521 | public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.group_join_bottom_sheet, container, false);<NEW_LINE>groupCancelButton = view.findViewById(R.id.group_join_cancel_button);<NEW_LINE>groupJoinBut... | setOnClickListener(v -> dismiss()); |
871,086 | public static long readLong(final DataInput in) throws IOException {<NEW_LINE>int b = in.readByte() & 0xFF;<NEW_LINE>int n = b & 0x7F;<NEW_LINE>long l;<NEW_LINE>if (b > 0x7F) {<NEW_LINE>b = in.readByte() & 0xFF;<NEW_LINE>n ^= (b & 0x7F) << 7;<NEW_LINE>if (b > 0x7F) {<NEW_LINE>b = in.readByte() & 0xFF;<NEW_LINE>n ^= (b ... | ) ^ -(l & 1); |
695,950 | private void prepare(UploadCheckPoint uploadCheckPoint, UploadFileRequest uploadFileRequest) {<NEW_LINE>uploadCheckPoint.magic = UploadCheckPoint.UPLOAD_MAGIC;<NEW_LINE>uploadCheckPoint.uploadFile = uploadFileRequest.getUploadFile();<NEW_LINE>uploadCheckPoint.key = uploadFileRequest.getKey();<NEW_LINE>uploadCheckPoint.... | = new ArrayList<PartETag>(); |
1,007,957 | public void updateLocalFeedCounts(FeedSet fs) {<NEW_LINE>// decompose the FeedSet into a list of single feeds that need to be recounted<NEW_LINE>List<String> feedIds = new ArrayList<String>();<NEW_LINE>List<String> socialFeedIds = new ArrayList<String>();<NEW_LINE>if (fs.isAllNormal()) {<NEW_LINE>feedIds.addAll(getAllF... | addAll(fs.getMultipleFeeds()); |
948,381 | public static ListAnsInstancesResponse unmarshall(ListAnsInstancesResponse listAnsInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAnsInstancesResponse.setRequestId(_ctx.stringValue("ListAnsInstancesResponse.RequestId"));<NEW_LINE>listAnsInstancesResponse.setHttpCode(_ctx.stringValue("ListAnsInstancesRespons... | ("ListAnsInstancesResponse.Data[" + i + "].DatumKey")); |
1,438,910 | protected void renderGraph(Graphics2D g2, double scale) {<NEW_LINE>List<List<SquareNode>> graphs = getClusters();<NEW_LINE>BasicStroke strokeWide = new BasicStroke(3);<NEW_LINE><MASK><NEW_LINE>Line2D.Double l = new Line2D.Double();<NEW_LINE>g2.setStroke(new BasicStroke(3));<NEW_LINE>for (int i = 0; i < graphs.size(); i... | BasicStroke strokeNarrow = new BasicStroke(2); |
832,832 | static void copyDirectory(final Path source, final Path target, final CopyOption... options) throws IOException {<NEW_LINE>final boolean foreign = source.getFileSystem().provider() != target.getFileSystem().provider();<NEW_LINE>FileVisitor<Path> visitor = new SimpleFileVisitor<Path>() {<NEW_LINE><NEW_LINE>public FileVi... | ), Integer.MAX_VALUE, visitor); |
1,625,428 | public void contextInitialized(final ServletContextEvent event) {<NEW_LINE>LOGGER.info("Initializing asynchronous event subsystem");<NEW_LINE>if (RequirementsVerifier.failedValidation()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>EVENT_SERVICE.subscribe(BomUploadEvent.class, BomUploadProcessingTask.class);<NEW_LINE>EVENT_S... | LdapSyncEvent.class, LdapSyncTask.class); |
1,111,999 | public void onGroupInfoChanged(String groupID, List<V2TIMGroupChangeInfo> changeInfos) {<NEW_LINE>HashMap<String, Object> param = new HashMap<>();<NEW_LINE>param.put(TUIConstants.TUIGroup.GROUP_ID, groupID);<NEW_LINE>for (V2TIMGroupChangeInfo changeInfo : changeInfos) {<NEW_LINE>if (changeInfo.getType() == V2TIMGroupCh... | GROUP_INTRODUCTION, changeInfo.getValue()); |
1,215,624 | private List<MLDataFormats.MessageRange> buildIndividualDeletedMessageRanges() {<NEW_LINE>lock.readLock().lock();<NEW_LINE>try {<NEW_LINE>if (individualDeletedMessages.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>MLDataFormats.NestedPositionInfo.Builder nestedPositionBuilder = MLDataFormats... | PositionImpl p = positionRange.lowerEndpoint(); |
803,239 | public void updateFromUIDL(final UIDL uidl, ApplicationConnection client) {<NEW_LINE>getWidget().client = client;<NEW_LINE>getWidget().id = uidl.getId();<NEW_LINE>if (uidl.hasVariable("text")) {<NEW_LINE>String newValue = uidl.getStringVariable("text");<NEW_LINE>if (!SharedUtil.equals(newValue, cachedValue)) {<NEW_LINE... | getWidget().setValue(newValue); |
511,236 | // add or update broker special topic info<NEW_LINE>private void repBrokerTopicInfo(int brokerId, Map<String, TopicInfo> topicInfoMap) {<NEW_LINE>if (topicInfoMap == null || topicInfoMap.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// add topic info<NEW_LINE>ConcurrentHashMap<Integer, TopicInfo> newTopicInfoView;<... | brokerIdIndexMap.putIfAbsent(brokerId, newTopicSet); |
254,456 | private Expression evaluateArgumentExpressions(AST ast, ITypeBinding requiredType, String key) {<NEW_LINE>CompilationUnit root = (CompilationUnit) fCallerNode.getRoot();<NEW_LINE>int offset = fCallerNode.getStartPosition();<NEW_LINE>Expression best = null;<NEW_LINE>ITypeBinding bestType = null;<NEW_LINE>ScopeAnalyzer a... | ASTNodeFactory.newDefaultExpression(ast, requiredType); |
880,548 | private static void handlePlugInSingleRow(ConfigurationCompiler configuration, Element element) {<NEW_LINE>String name = element.getAttributes().getNamedItem("name").getTextContent();<NEW_LINE>String functionClassName = element.getAttributes().getNamedItem("function-class").getTextContent();<NEW_LINE>String functionMet... | filterOptimizableStr = getOptionalAttribute(element, "filter-optimizable"); |
65,152 | private TypeSpec createType(int sdk, boolean debuggable) {<NEW_LINE>TypeSpec.Builder result = TypeSpec.classBuilder(bindingClassName.simpleName()).addModifiers(PUBLIC).addOriginatingElement(enclosingElement);<NEW_LINE>if (isFinal) {<NEW_LINE>result.addModifiers(FINAL);<NEW_LINE>}<NEW_LINE>if (parentBinding != null) {<N... | result.addMethod(createBindingConstructorForView()); |
1,263,729 | protected boolean isSourceMethod(InfoflowManager manager, Stmt sCallSite) {<NEW_LINE>// We only support method calls<NEW_LINE>if (!sCallSite.containsInvokeExpr())<NEW_LINE>return false;<NEW_LINE>// Check for a direct match<NEW_LINE>SootMethod callee = sCallSite<MASK><NEW_LINE>if (this.sources.contains(callee))<NEW_LINE... | .getInvokeExpr().getMethod(); |
1,121,970 | private void applyStyleRecord(ParsableByteArray parsableByteArray, SpannableStringBuilder cueText) throws SubtitleDecoderException {<NEW_LINE>assertTrue(parsableByteArray.bytesLeft() >= SIZE_STYLE_RECORD);<NEW_LINE>int start = parsableByteArray.readUnsignedShort();<NEW_LINE>int end = parsableByteArray.readUnsignedShort... | start + ") >= end (" + end + ")."); |
53,021 | public ApiKeyBean updateClientApiKey(String organizationId, String clientId, String version, ApiKeyBean bean) throws ClientNotFoundException, NotAuthorizedException, InvalidVersionException, InvalidClientStatusException {<NEW_LINE>securityContext.checkPermissions(PermissionType.clientEdit, organizationId);<NEW_LINE>try... | getClientVersionInternal(organizationId, clientId, version); |
295,140 | protected DocWriter createWriter(final MBasicTable table, final Document document, final OutputStream out) {<NEW_LINE>final RtfWriter2 writer = RtfWriter2.getInstance(document, out);<NEW_LINE>// title<NEW_LINE>final String title = buildTitle(table);<NEW_LINE>if (title != null) {<NEW_LINE>final HeaderFooter header = new... | new Phrase(" / ", font)); |
798,881 | public void initialize() {<NEW_LINE>if (savedPassword != null) {<NEW_LINE>savePasswordCheckbox.setSelected(true);<NEW_LINE>passwordField.setPassword(savedPassword);<NEW_LINE>}<NEW_LINE>unlockButtonDisabled.bind(unlockInProgress.or(passwordField.textProperty().isEmpty()));<NEW_LINE>var leftArmTranslation = new Translate... | millis(1000), faceVisible)); |
1,503,318 | public static StatementExecutorResponse execute(final ConfiguredStatement<ListProperties> statement, final SessionProperties sessionProperties, final KsqlExecutionContext executionContext, final ServiceContext serviceContext) {<NEW_LINE>final KsqlConfigResolver resolver = new KsqlConfigResolver();<NEW_LINE>final Map<St... | collect(Collectors.toList()); |
137,094 | public void onCreatePreferences(final Bundle savedInstanceState, final String rootKey) {<NEW_LINE>setPreferencesFromResource(R.xml.preferences_services_geocaching_com, rootKey);<NEW_LINE>// Open website Preference<NEW_LINE>final Preference openWebsite = findPreference(getString(R.string.pref_fakekey_gc_website));<NEW_L... | "http") ? urlOrHost : "http://" + urlOrHost; |
1,264,787 | protected Object extend(Object[] arguments) {<NEW_LINE>if (JSConfig.SubstrateVM) {<NEW_LINE>throw Errors.unsupported("JavaAdapter");<NEW_LINE>}<NEW_LINE>if (arguments.length == 0) {<NEW_LINE>errorBranch.enter();<NEW_LINE>throw Errors.createTypeError("Java.extend needs at least one argument.");<NEW_LINE>}<NEW_LINE>final... | getMessage(), ex, this); |
1,717,248 | public static void main(String[] args) throws IOException, ClassNotFoundException {<NEW_LINE>String dvmodelFile = null;<NEW_LINE>String lexparserFile = null;<NEW_LINE>String testTreebankPath = null;<NEW_LINE>FileFilter testTreebankFilter = null;<NEW_LINE>List<String> unusedArgs = new ArrayList<>();<NEW_LINE>for (int ar... | numSubArgs(args, argIndex) + 1; |
373,427 | private JComponent createActionsToolbar() {<NEW_LINE>DefaultActionGroup toolbarGroup = new DefaultActionGroup();<NEW_LINE>toolbarGroup.add(ActionManager.getInstance().getAction(VcsLogActionPlaces.TOOLBAR_ACTION_GROUP));<NEW_LINE>DefaultActionGroup mainGroup = new DefaultActionGroup();<NEW_LINE>mainGroup.add(ActionManag... | .add(new AnSeparator()); |
755,218 | public void resultChanged(org.openide.util.LookupEvent ev) {<NEW_LINE>Collection<? extends ActionMap> ams = result.allInstances();<NEW_LINE>if (err.isLoggable(Level.FINE)) {<NEW_LINE>// NOI18N<NEW_LINE>err.fine("changed maps : " + ams);<NEW_LINE>// NOI18N<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// do nothing if maps are ac... | err.fine("previous maps: " + actionMaps); |
436,960 | void bufferAdd(ByteBuffer buf) {<NEW_LINE>final <MASK><NEW_LINE>if (object instanceof ByteBuffer) {<NEW_LINE>final ByteBuffer other = (ByteBuffer) object;<NEW_LINE>BloomKFilter.mergeBloomFilterByteBuffers(buf, buf.position(), other, other.position());<NEW_LINE>} else {<NEW_LINE>if (object instanceof Long) {<NEW_LINE>Bl... | Object object = selector.getObject(); |
466,498 | public long count(Id source, List<EdgeStep> steps, boolean containsTraversed, long dedupSize) {<NEW_LINE>E.checkNotNull(source, "source vertex id");<NEW_LINE>this.checkVertexExist(source, "source vertex");<NEW_LINE>E.checkArgument(steps != null && !steps.isEmpty(), "The steps can't be empty");<NEW_LINE>checkDedupSize(d... | this.edgesOfVertexWithCount(source, firstStep); |
519,699 | public void route() {<NEW_LINE>if (start == null || end == null) {<NEW_LINE>if (start == null) {<NEW_LINE>if (starting.getText().length() > 0) {<NEW_LINE>starting.setError("Choose location from dropdown.");<NEW_LINE>} else {<NEW_LINE>Toast.makeText(this, "Please choose a starting point.", <MASK><NEW_LINE>}<NEW_LINE>}<N... | Toast.LENGTH_SHORT).show(); |
1,163,344 | public void exitIp_prefix_list_tail(Ip_prefix_list_tailContext ctx) {<NEW_LINE>LineAction action = toLineAction(ctx.action);<NEW_LINE>Prefix prefix = Prefix.parse(ctx.prefix.getText());<NEW_LINE>int prefixLength = prefix.getPrefixLength();<NEW_LINE>int minLen = prefixLength;<NEW_LINE>int maxLen = prefixLength;<NEW_LINE... | maxLen = toInteger(ctx.eqpl); |
1,749,518 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.fragment_auto_applink, container, false);<NEW_LINE>final EditText viewAppID = (EditText) view.findViewById(R.id.auto_applink_app_id);<NEW_LINE>final EditText viewProductID =... | findViewById(R.id.auto_applink_product_id); |
1,819,116 | public final ObjectelemContext objectelem() throws RecognitionException {<NEW_LINE>ObjectelemContext _localctx = new ObjectelemContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 26, RULE_objectelem);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(199);<NEW_LINE... | _errHandler.recover(this, re); |
304,508 | private void loadNode128() {<NEW_LINE>UaMethodNode node = new UaMethodNode(this.context, Identifiers.FileType_GetPosition, new QualifiedName(0, "GetPosition"), new LocalizedText("en", "GetPosition"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), true, true);<NEW_LINE>node.addReference(new Referenc... | .expanded(), true)); |
588,759 | public void addComponent(ChatConversationComponent component) {<NEW_LINE>synchronized (scrollToBottomRunnable) {<NEW_LINE>StyleSheet styleSheet = document.getStyleSheet();<NEW_LINE>Style style = styleSheet.addStyle(StyleConstants.ComponentElementName, styleSheet.getStyle("body"));<NEW_LINE>// The image must first be wr... | AbstractDocument.ElementNameAttribute, StyleConstants.ComponentElementName); |
1,240,902 | public List selectInstancesFiredTriggerRecords(Connection conn, String instanceName) throws SQLException {<NEW_LINE>PreparedStatement ps = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>List lst = new LinkedList();<NEW_LINE>ps = conn.prepareStatement(rtp(SELECT_INSTANCES_FIRED_TRIGGERS.toLowerCase()));<NEW... | , COL_IS_VOLATILE.toLowerCase())); |
1,064,518 | private PopOver createPopOver() {<NEW_LINE>Label titleLabel = new Label(popupTitle);<NEW_LINE>titleLabel.setMaxWidth(DEFAULT_WIDTH);<NEW_LINE>titleLabel.setWrapText(true);<NEW_LINE>titleLabel.setPadding(new Insets(10, 10, 0, 10));<NEW_LINE>titleLabel.getStyleClass().add("account-status-title");<NEW_LINE>Label infoLabel... | setOnMouseEntered(mouseEvent -> keepPopOverVisible = true); |
1,731,229 | public void run() {<NEW_LINE>ServerAddress coordinatorAddress = null;<NEW_LINE>try {<NEW_LINE>coordinatorAddress = startCoordinatorClientService();<NEW_LINE>} catch (UnknownHostException e1) {<NEW_LINE>throw new RuntimeException("Failed to start the coordinator service", e1);<NEW_LINE>}<NEW_LINE>final HostAndPort clien... | update.setState(TCompactionState.IN_PROGRESS); |
1,327,039 | void updateHistoryItem(@NonNull WikivoyageSearchHistoryItem item) {<NEW_LINE>String travelBook = item.getTravelBook(context);<NEW_LINE>if (travelBook == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SQLiteConnection conn = openConnection(false);<NEW_LINE>if (conn != null) {<NEW_LINE>try {<NEW_LINE>conn.execSQL("UPDATE "... | , item.lang, travelBook }); |
1,071,812 | SequenceStorage doRight(SequenceStorage left, SequenceStorage right, @Cached ConditionProfile shouldOverflow, @Cached PRaiseNode raiseNode, @Cached LenNode lenNode, @Cached BranchProfile outOfMemProfile) {<NEW_LINE>int destlen = 0;<NEW_LINE>try {<NEW_LINE>int <MASK><NEW_LINE>int len2 = lenNode.execute(right);<NEW_LINE>... | len1 = lenNode.execute(left); |
1,168,433 | private AWSCredentials fromStaticCredentials() {<NEW_LINE>if (StringUtils.isNullOrEmpty(profile.getAwsAccessIdKey())) {<NEW_LINE>throw new SdkClientException(String.format("Unable to load credentials into profile [%s]: AWS Access Key ID is not specified.", profile.getProfileName()));<NEW_LINE>}<NEW_LINE>if (StringUtils... | , profile.getAwsSecretAccessKey())); |
1,293,891 | private static ParseResults parseMimeType(String mimeType) {<NEW_LINE>String[] parts = mimeType.split(";");<NEW_LINE>ParseResults results = new ParseResults();<NEW_LINE>results.params = new HashMap<>();<NEW_LINE>for (int i = 1; i < parts.length; ++i) {<NEW_LINE>String p = parts[i];<NEW_LINE>String[] subParts = p.split(... | slashIndex = fullType.indexOf('/'); |
722,495 | public JWSPolicyData postSignedPolicyRequest(String domainName, SignedPolicyRequest request, String matchingTag, java.util.Map<String, java.util.List<String>> headers) {<NEW_LINE>WebTarget target = base.path("/domain/{domainName}/policy/signed").resolveTemplate("domainName", domainName);<NEW_LINE>Invocation.Builder inv... | int code = response.getStatus(); |
62,631 | public static void testTransformPointsWithErrorCodes() {<NEW_LINE>if (osr.GetPROJVersionMajor() < 8) {<NEW_LINE>System.out.println("Skip testTransformPointsWithErrorCodes() due to PROJ < 8");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SpatialReference s = new SpatialReference("");<NEW_LINE>s.SetFromUserInput("+proj=longlat +... | [2] == osr.PROJ_ERR_COORD_TRANSFM_OUTSIDE_PROJECTION_DOMAIN); |
787,900 | private void addEdgeColoringControls(final DefaultFormBuilder formBuilder) {<NEW_LINE>TranslatedObject[] automaticLayoutTypes = TranslatedObject.fromEnum(AutomaticEdgeColor.class.getSimpleName() + ".", AutomaticEdgeColor.Rule.class);<NEW_LINE>mAutomaticEdgeColorComboBox = JComboBoxFactory.create(automaticLayoutTypes);<... | (DefaultComboBoxModel) mAutomaticEdgeColorComboBox.getModel(); |
1,415,850 | public CostSheetLine createCostSheetLine(String name, String code, int bomLevel, BigDecimal consumptionQty, BigDecimal costPrice, CostSheetGroup costSheetGroup, Product product, int typeSelect, int typeSelectIcon, Unit unit, WorkCenter workCenter, CostSheetLine parentCostSheetLine) {<NEW_LINE>logger.debug("Add a new li... | parentCostSheetLine, costSheetLine.getCostPrice()); |
1,294,893 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "g,ge,l,le".split(",");<NEW_LINE>String stmtText = "@name('s0') select " + "intPrimitive > all (select intPrimitive from SupportBean(theString like \"S%\")#keepall) as g, " + "intPrimitive >= all (select intPrimitive from SupportBean(theString like... | (stmtText).addListener("s0"); |
1,347,988 | private RubyNumeric powerFixnum(ThreadContext context, RubyFixnum other) {<NEW_LINE>Ruby runtime = context.runtime;<NEW_LINE>long a = value;<NEW_LINE>long b = other.value;<NEW_LINE>if (b < 0) {<NEW_LINE>RubyRational rational = <MASK><NEW_LINE>return (RubyNumeric) numFuncall(context, rational, sites(context).op_exp_rati... | RubyRational.newRationalRaw(runtime, this); |
1,741,845 | public Request<MoveByoipCidrToIpamRequest> marshall(MoveByoipCidrToIpamRequest moveByoipCidrToIpamRequest) {<NEW_LINE>if (moveByoipCidrToIpamRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<MoveByoipCidrToIpamRequest> request = new Default... | request.addParameter("Action", "MoveByoipCidrToIpam"); |
559,428 | public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {<NEW_LINE>super.onCreateOptionsMenu(menu, inflater);<NEW_LINE>MenuItem menuItem;<NEW_LINE>if (!mIsMergeRequired) {<NEW_LINE>// menu to inflate the view where search and select all icon is there.<NEW_LINE>inflater.inflate(R.menu.activity_view_files_actio... | R.menu.activity_view_files_actions_if_selected, menu); |
808,443 | // copied from htsjdk.variant.variantcontext.CommonInfo.getAttributeAsList for simplicity<NEW_LINE>// maybe we should expose this as a static method in htsjdk?<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>public static List<Object> attributeToList(final Object attribute) {<NEW_LINE>if (attribute == null)<NEW_LINE>r... | ).split(","))); |
1,507,040 | public Chart apply(@Nonnull final EntityResponse entityResponse) {<NEW_LINE>final Chart result = new Chart();<NEW_LINE>result.setUrn(entityResponse.getUrn().toString());<NEW_LINE>result.setType(EntityType.CHART);<NEW_LINE>EnvelopedAspectMap aspectMap = entityResponse.getAspects();<NEW_LINE>MappingHelper<Chart> mappingH... | mapToResult(CHART_KEY_ASPECT_NAME, this::mapChartKey); |
22,799 | public List<HalFormsProperty> createProperties(HalFormsAffordanceModel model) {<NEW_LINE>Assert.notNull(model, "HalFormsModel must not be null!");<NEW_LINE>if (!ENTITY_ALTERING_METHODS.contains(model.getHttpMethod())) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>HalFormsOptionsFactory optionsFactory =... | String inputType = metadata.getInputType(); |
1,562,276 | protected Control createCustomArea(Composite parent) {<NEW_LINE>loadable = new LoadablePanel<Text>(parent, widgets, panel -> new Text(panel, SWT.MULTI | SWT.READ_ONLY | SWT.BORDER | SWT<MASK><NEW_LINE>loadable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));<NEW_LINE>loadable.startLoading();<NEW_LINE>Rpc.li... | .H_SCROLL | SWT.V_SCROLL)); |
178,707 | public static void statistics(List<Point3D_F64> cloud, Point3D_F64 mean, Point3D_F64 stdev) {<NEW_LINE>final int N = cloud.size();<NEW_LINE>for (int i = 0; i < N; i++) {<NEW_LINE>Point3D_F64 p = cloud.get(i);<NEW_LINE>mean.x += p.x / N;<NEW_LINE>mean<MASK><NEW_LINE>mean.z += p.z / N;<NEW_LINE>}<NEW_LINE>for (int i = 0;... | .y += p.y / N; |
1,033,094 | public static LinkedBuffer writeTagAndRawVarInt32(int tag, int tagSize, int value, final WriteSession session, LinkedBuffer lb) {<NEW_LINE>final int size = computeRawVarint32Size(value);<NEW_LINE>final int totalSize = tagSize + size;<NEW_LINE>if (lb.offset + totalSize > lb.buffer.length) {<NEW_LINE>lb = new LinkedBuffe... | (value & 0x7F) | 0x80); |
725,558 | private static String formatDocumentation(String input) {<NEW_LINE>StringBuilder builder = new StringBuilder(input.length());<NEW_LINE>String[] paragraphs = PARAGRAPH.split(input);<NEW_LINE>for (String paragraph : paragraphs) {<NEW_LINE>if (builder.length() != 0) {<NEW_LINE>builder.append("\n\n");<NEW_LINE>}<NEW_LINE>M... | lineLen == 8 ? " " : " "); |
812,067 | private void loadNextValue(LeafReaderContext context, int docID) {<NEW_LINE>NumericDocValues docValues;<NEW_LINE>if (docValuesCache.containsKey(context)) {<NEW_LINE>docValues = docValuesCache.get(context);<NEW_LINE>} else {<NEW_LINE>try {<NEW_LINE>docValues = context.reader().getNumericDocValues(field);<NEW_LINE><MASK>... | docValuesCache.put(context, docValues); |
1,201,136 | public boolean modifyApis(String app, String ip, int port, List<ApiDefinitionEntity> apis) {<NEW_LINE>if (apis == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>AssertUtil.notEmpty(app, "Bad app name");<NEW_LINE>AssertUtil.notEmpty(ip, "Bad machine IP");<NEW_LINE>AssertUtil.isTrue(port > 0, "Bad machi... | params, true).get(); |
876,644 | protected void init() {<NEW_LINE>super.init();<NEW_LINE>registerElementHandler(new XMLElement(RuntimeTagNames.SECURITY_ROLE_MAPPING), SecurityRoleMappingNode.class);<NEW_LINE>registerElementHandler(new XMLElement(RuntimeTagNames.RESOURCE_REFERENCE), ResourceRefNode.class);<NEW_LINE>registerElementHandler(new XMLElement... | .SERVICE_REF), ServiceRefNode.class); |
337,560 | public boolean apply(Game game, Ability source) {<NEW_LINE>Token token = new TombspawnZombieToken();<NEW_LINE>Player activePlayer = game.getPlayer(game.getActivePlayerId());<NEW_LINE>Permanent permanent = game.<MASK><NEW_LINE>if (game.getPlayer(source.getControllerId()) != null && activePlayer != null && permanent != n... | getPermanent(source.getSourceId()); |
784,218 | private void loadNode959() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ExclusiveLimitStateMachineType_HighHighToHigh_TransitionNumber, new QualifiedName(0, "TransitionNumber"), new LocalizedText("en", "TransitionNumber"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valu... | .expanded(), true)); |
1,451,328 | public void handle(Context ctx) throws IOException, ServletException {<NEW_LINE>boolean isTraceMode = Cat.getManager().isTraceMode();<NEW_LINE>HttpServletRequest req = ctx.getRequest();<NEW_LINE>HttpServletResponse res = ctx.getResponse();<NEW_LINE>MessageProducer producer = Cat.getProducer();<NEW_LINE>int mode = ctx.g... | setParentMessageId(ctx.getParentId()); |
466,779 | public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup... | Utils.getValueFromIdByName(id, "sqlPools"); |
442,960 | protected void initializePolymorphicQualifiers(@UnderInitialization DefaultQualifierKindHierarchy this) {<NEW_LINE>for (DefaultQualifierKind qualifierKind : qualifierKinds) {<NEW_LINE>Class<? extends Annotation<MASK><NEW_LINE>PolymorphicQualifier polyMetaAnno = clazz.getAnnotation(PolymorphicQualifier.class);<NEW_LINE>... | > clazz = qualifierKind.getAnnotationClass(); |
700,267 | protected void readMapDataBlocks(SearchRequest<BinaryMapDataObject> req, MapTree tree, MapIndex root) throws IOException {<NEW_LINE>List<BinaryMapDataObject> tempResults = null;<NEW_LINE>long baseId = 0;<NEW_LINE>while (true) {<NEW_LINE>if (req.isCancelled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int t = codedIS.readT... | oldLimit = codedIS.pushLimit(length); |
1,499,479 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_account_push_notifications);<NEW_LINE>final Intent intent = getIntent();<NEW_LINE>AccountJid account = getAccount(intent);<NEW_LINE>if (account == null) {<NEW_LINE>finish();<NEW_LI... | = new BarPainter(this, toolbar); |
1,819,709 | public static void vertical(Kernel1D_S32 kernel, InterleavedS16 src, InterleavedI16 dst, int divisor) {<NEW_LINE>final short[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int[] dataKer = kernel.data;<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int kernelWidth = kerne... | int imgWidth = dst.getWidth(); |
1,396,270 | public void read(org.apache.thrift.protocol.TProtocol iprot, sortkey_count_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == ... | struct.hash_key = new blob(); |
1,572,883 | final SetTypeDefaultVersionResult executeSetTypeDefaultVersion(SetTypeDefaultVersionRequest setTypeDefaultVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setTypeDefaultVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
283,938 | public void run(WorkingCopy copy) throws IOException {<NEW_LINE>copy.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED);<NEW_LINE>Element e = description.getElementHandle().resolve(copy);<NEW_LINE>TreePath path = e != null ? copy.getTrees().getPath(e) : copy.getTreeUtilities().pathFor(caretOffset);<NEW_LINE>path = copy.getTre... | (0) : "LOG", mods); |
680,810 | public void update(final JRootPane component, final Language language, final String key, final Object... data) {<NEW_LINE>super.update(component, language, key, data);<NEW_LINE>if (language.containsText(key)) {<NEW_LINE>final Window window = CoreSwingUtils.getWindowAncestor(component);<NEW_LINE>if (window instanceof Fr... | getUI()).getTitleComponent(); |
559,590 | private ResponseSpec testJsonFormDataRequestCreation(String param, String param2) throws WebClientResponseException {<NEW_LINE>Object postBody = null;<NEW_LINE>// verify the required parameter 'param' is set<NEW_LINE>if (param == null) {<NEW_LINE>throw new WebClientResponseException("Missing the required parameter 'par... | HashMap<String, Object>(); |
345,200 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String loadBalancerName, String backendAddressPoolName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,626,430 | protected void subscribeURLs(URL url, NotifyListener listener, Set<String> serviceNames) {<NEW_LINE>serviceNames = toTreeSet(serviceNames);<NEW_LINE>String serviceNamesKey = toStringKeys(serviceNames);<NEW_LINE>String protocolServiceKey = url.getProtocolServiceKey();<NEW_LINE>logger.info(String.format("Trying to subscr... | serviceInstancesChangedListener = serviceListeners.get(serviceNamesKey); |
834,111 | final DescribeClientVpnRoutesResult executeDescribeClientVpnRoutes(DescribeClientVpnRoutesRequest describeClientVpnRoutesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeClientVpnRoutesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
538,438 | final ListDeliveryStreamsResult executeListDeliveryStreams(ListDeliveryStreamsRequest listDeliveryStreamsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDeliveryStreamsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,816,637 | private void process(EClass eClass, EReference eReferencedFrom) {<NEW_LINE>if (definesNode.has(eClass.getName())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// if (eReferencedFrom != null) {<NEW_LINE>// System.out.println(eReferencedFrom.getEContainingClass().getName() + "." + eReferencedFrom.getName() + " -> " + eClass.ge... | defineNode.set("includes", includesNode); |
1,803,195 | public boolean applyFilter(String filter) {<NEW_LINE>// ignore if not fetched yet<NEW_LINE>if (prefetchedObjectList_ == null)<NEW_LINE>return false;<NEW_LINE>boolean anyMatched = false;<NEW_LINE>// don't be case sensitive<NEW_LINE>String lowerFilter = filter.toLowerCase();<NEW_LINE>for (int i = 0; i < prefetchedObjectL... | object = prefetchedObjectList_.get(i); |
1,169,245 | private void registerNavigateReceiver(@NonNull MapActivity mapActivity) {<NEW_LINE>final WeakReference<MapActivity> mapActivityRef = new WeakReference<>(mapActivity);<NEW_LINE>BroadcastReceiver navigateReceiver = new BroadcastReceiver() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onReceive(Context context, Inte... | dest, destDesc, profile, locationPermission); |
1,536,259 | private <K, V> Eh107Cache<K, V> wrapEhcacheCache(String alias, InternalCache<K, V> cache) {<NEW_LINE>CacheLoaderWriter<? super K, V> cacheLoaderWriter = cache.getCacheLoaderWriter();<NEW_LINE>boolean storeByValueOnHeap = false;<NEW_LINE>for (ServiceConfiguration<?, ?> serviceConfiguration : cache.getRuntimeConfiguratio... | resources, cache, statisticsService, this); |
1,282,729 | private void handleAjaxAction(final String loggedInUser, final String proxyUser, final HttpServletRequest request, final HttpServletResponse response, final Session session) throws ServletException, IOException {<NEW_LINE>Map<String, Object> ret = new HashMap<>();<NEW_LINE>FileSystem fs = null;<NEW_LINE>try {<NEW_LINE>... | this.writeJSON(response, ret); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.