idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
897,662 | public void parseRequest(ChallengeRequest challenge, Response response, Series<Header> httpHeaders) {<NEW_LINE>String raw = challenge.getRawValue();<NEW_LINE>if (raw != null && raw.length() > 0) {<NEW_LINE>StringTokenizer st <MASK><NEW_LINE>String realm = st.nextToken();<NEW_LINE>if (!StringUtils.isNullOrEmpty(realm)) ... | = new StringTokenizer(raw, ","); |
446,298 | public <T extends JpaObject> List<T> listEqualAndEqualAndNotEqual(Class<T> cls, String equalAttribute, Object equalValue, String otherEqualAttribute, Object otherEqualValue, String notEqualAttribute, Object notEqualValue) throws Exception {<NEW_LINE>EntityManager em = this.get(cls);<NEW_LINE>CriteriaBuilder cb = em.get... | new TreeList<T>(os); |
1,834,376 | public static void main1(String[] args) throws Exception {<NEW_LINE>if (args.length < 2) {<NEW_LINE>System.out.println("Syntax: paste <to movie> <from movie> [second]");<NEW_LINE>System.exit(-1);<NEW_LINE>}<NEW_LINE>File toFile = new File(args[0]);<NEW_LINE>SeekableByteChannel to = null;<NEW_LINE>SeekableByteChannel fr... | "file://" + toFile.getCanonicalPath()); |
711,207 | public void dumpCurrentSheetServices() {<NEW_LINE>SheetStub stub = getSelectedStub();<NEW_LINE>logger.info("Selection services of {}", stub);<NEW_LINE>if (stub == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (stub.hasSheet()) {<NEW_LINE>final <MASK><NEW_LINE>if (sheet.getLocationService() != null) {<NEW_LINE>sheet.g... | Sheet sheet = stub.getSheet(); |
994,857 | final PutInsightRuleResult executePutInsightRule(PutInsightRuleRequest putInsightRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putInsightRuleRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<PutInsightRuleRequest> request = nu... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,670,537 | public void handleConfigurationUpdate(Map<String, Object> configurationParameters) {<NEW_LINE>if (!isModifyingCurrentConfig(configurationParameters)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>validateConfigurationParameters(configurationParameters);<NEW_LINE>// can be overridden by subclasses<NEW_LINE>Configuration config... | ), configurationParameter.getValue()); |
174,449 | private void initComponents() {<NEW_LINE>optionTable = new OptionTable();<NEW_LINE>JScrollPane jScrollPane1 = new JScrollPane();<NEW_LINE>JScrollPane jScrollPane2 = new JScrollPane();<NEW_LINE>JTextArea preferenceDescriptionTextArea = new JTextArea();<NEW_LINE>jScrollPane1.setViewportView(optionTable);<NEW_LINE>optionT... | MAX_VALUE).addComponent(jScrollPane2)); |
792,522 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (controller.getLibrary().hasCards()) {<NEW_LINE>Card card = controller.getLibrary().getFromTop(game);<NEW_LINE>if (card != null) {<NEW_LINE>Cards ca... | getPlayer(source.getControllerId()); |
1,369,420 | private static void injectResult(Download download, int[] result) {<NEW_LINE>DownloadScrapeResult scrape = download.getAggregatedScrapeResult();<NEW_LINE>if (scrape.getResponseType() == DownloadScrapeResult.RT_SUCCESS) {<NEW_LINE>int total = scrape.getNonSeedCount() + scrape.getSeedCount();<NEW_LINE>if (total >= result... | return (SystemTime.getCurrentTime()); |
659,655 | public ActionResult<Wo> call() throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>Task task = emc.find(id, Task.class);<NEW_LINE>if (null == t... | getActivity(), ActivityType.manual); |
490,403 | public byte[] serializeEvent(DataPointEvent dataPointEvent) {<NEW_LINE>// Todo: Create some adaptive value here, keep stats on if the buffer increases and slowely increase it<NEW_LINE>ByteArrayDataOutput dataOutput = ByteStreams.newDataOutput(64);<NEW_LINE>dataOutput.<MASK><NEW_LINE>dataOutput.writeInt(dataPointEvent.g... | writeUTF(dataPointEvent.getMetricName()); |
549,575 | protected void doUnlock() throws SQLException {<NEW_LINE>// Leave the locking row alone until we get to the final level of unlocking<NEW_LINE>if (lockDepth > 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Check that there are no other locks in place. This should not happen!<NEW_LINE>int competingLocksTaken = jdbcTemplate... | .quote("description") + " = 'flyway-lock'"); |
246,756 | private Mono<Response<ApiKeysInner>> listKeysWithResponseAsync(String resourceGroupName, String accountName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (resour... | )).readOnly())); |
1,375,323 | public void onSuccess(@Nullable List<Map<String, TsValue>> result) {<NEW_LINE>missingTelemetryFutures.forEach((key, value) -> {<NEW_LINE>try {<NEW_LINE>key.getLatest().get(EntityKeyType.TIME_SERIES).putAll(value.get());<NEW_LINE>} catch (InterruptedException | ExecutionException e) {<NEW_LINE>log.warn("[{}][{}] Failed ... | ), ctx.getMaxEntitiesPerDataSubscription()); |
1,436,551 | public static ItemStack staticParse(@NotNull String input) throws ArgumentSyntaxException {<NEW_LINE>final int nbtIndex = input.indexOf("{");<NEW_LINE>if (nbtIndex == 0)<NEW_LINE>throw new ArgumentSyntaxException("The item needs a material", input, NO_MATERIAL);<NEW_LINE>if (nbtIndex == -1) {<NEW_LINE>// Only material ... | (sNBT)).parse(); |
409,705 | private boolean sameBST(int[] tree1, int[] tree2, int min, int max, int index) {<NEW_LINE>if (index == tree1.length) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>int i = 0;<NEW_LINE>for (i = 0; i < tree2.length; i++) {<NEW_LINE>if (tree2[i] == tree1[index]) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>BigSmall bs1 =... | tree1, index, min, max); |
309,597 | public String completeIt() {<NEW_LINE>// Re-Check<NEW_LINE>if (!justPrepared) {<NEW_LINE>String status = prepareIt();<NEW_LINE>if (!DocAction.STATUS_InProgress.equals(status))<NEW_LINE>return status;<NEW_LINE>}<NEW_LINE>processMsg = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_COMPLETE... | fireDocValidate(this, ModelValidator.TIMING_AFTER_COMPLETE); |
721,028 | private void registerFileExtension() {<NEW_LINE>try {<NEW_LINE>Regor winreg = new Regor();<NEW_LINE>if (jCheckBoxRegistry.isSelected()) {<NEW_LINE>Key regkey = winreg.openKey(Regor.HKEY_CLASSES_ROOT, ".zkn3");<NEW_LINE>if (null == regkey) {<NEW_LINE>regkey = winreg.createKey(Regor.HKEY_CLASSES_ROOT, ".zkn3");<NEW_LINE>... | SEVERE, e.getLocalizedMessage()); |
787,370 | public JsonCreateInvoiceCandidatesResponse createInvoiceCandidates(@NonNull final JsonCreateInvoiceCandidatesRequest request) {<NEW_LINE>final ImmutableMap<InvoiceCandidateLookupKey, JsonCreateInvoiceCandidatesRequestItem> lookupKey2Item = Maps.uniqueIndex(request.getItems(), this::createInvoiceCandidateLookupKey);<NEW... | > candidatesToSave = ImmutableList.builder(); |
1,484,931 | // splitting up that method would not help improve readability<NEW_LINE>@SuppressWarnings({ "PMD.NPathComplexity", "PMD.ExcessiveMethodLength" })<NEW_LINE>private void config(final boolean plain, final String sep1, final String sep2, final String sep3) {<NEW_LINE>eLatFrame.setVisibility(plain ? View.VISIBLE : View.GONE... | View.VISIBLE : View.GONE); |
530,726 | public boolean doIntersectChunk(int chunk_x, int chunk_z) {<NEW_LINE>int chunk_center_x = chunk_x * 16 + 8;<NEW_LINE><MASK><NEW_LINE>int chunk_corner_x, chunk_corner_z;<NEW_LINE>if (chunk_center_x >= x_center)<NEW_LINE>chunk_corner_x = chunk_x * 16;<NEW_LINE>else<NEW_LINE>chunk_corner_x = chunk_x * 16 + 15;<NEW_LINE>if... | int chunk_center_z = chunk_z * 16 + 8; |
936,661 | public SortedMap<K, V> headMap(K endKey) {<NEW_LINE>Comparator<? super K> cmp = backingMap.comparator;<NEW_LINE>if (cmp == null) {<NEW_LINE>net.sourceforge.retroweaver.harmony.runtime.java.lang.Comparable<<MASK><NEW_LINE>if (hasStart && object.compareTo(startKey) < 0) {<NEW_LINE>throw new IllegalArgumentException();<NE... | K> object = toComparable(endKey); |
1,192,148 | private void removeFromClientPolicies(ClientRemovedEvent event, AuthorizationProvider authorizationProvider) {<NEW_LINE>StoreFactory storeFactory = authorizationProvider.getStoreFactory();<NEW_LINE>ResourceServerStore store = storeFactory.getResourceServerStore();<NEW_LINE>ResourceServer resourceServer = store.findByCl... | null, attributes, null, null); |
38,832 | FuncotationMap createFuncotationMapForSegment(final VariantContext segmentAsVariantContext, final ReferenceContext referenceContext, final FeatureContext featureContext) {<NEW_LINE>Utils.nonNull(segmentAsVariantContext);<NEW_LINE>Utils.nonNull(referenceContext);<NEW_LINE>Utils.nonNull(featureContext);<NEW_LINE>// =====... | collect(Collectors.toList()); |
870,854 | private void save() {<NEW_LINE>saveTunerConfigurationModel();<NEW_LINE>SystemProperties props = SystemProperties.getInstance();<NEW_LINE>Path settingsFolder = props.getApplicationFolder("settings");<NEW_LINE>String settingsDefault = props.get("settings.defaultFilename", "settings.xml");<NEW_LINE>String settingsCurrent ... | ObjectMapper objectMapper = new XmlMapper(xmlModule); |
391,913 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,436,971 | public static ListSecretsResponse unmarshall(ListSecretsResponse listSecretsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSecretsResponse.setRequestId(_ctx.stringValue("ListSecretsResponse.RequestId"));<NEW_LINE>listSecretsResponse.setPageNumber(_ctx.integerValue("ListSecretsResponse.PageNumber"));<NEW_LINE>listSe... | (_ctx.integerValue("ListSecretsResponse.PageSize")); |
548,996 | public Operation.OperationResult executeFixedCostOperation(final MessageFrame frame, final EVM evm) {<NEW_LINE>final Bytes value0 = frame.popStackItem();<NEW_LINE>final <MASK><NEW_LINE>if (value1.isZero()) {<NEW_LINE>frame.pushStackItem(UInt256.ZERO);<NEW_LINE>} else {<NEW_LINE>final BigInteger b1 = value0.size() < 32 ... | Bytes value1 = frame.popStackItem(); |
1,822,219 | protected void addFromClipboard(JTable table) {<NEW_LINE>GuiUtils.stopTableEditing(table);<NEW_LINE>int rowCount = table.getRowCount();<NEW_LINE>try {<NEW_LINE>String clipboardContent = GuiUtils.getPastedText();<NEW_LINE>if (clipboardContent != null) {<NEW_LINE>PowerTableModel model = null;<NEW_LINE>String[] clipboardL... | = model.getRowCount() - 1; |
1,437,869 | // updateRelationshipInStore<NEW_LINE>synchronized void updateRelationshipInStore(Relationship relationship) throws RepositoryErrorException {<NEW_LINE>String methodName = "updateRelationshipInStore";<NEW_LINE>String guid = relationship.getGUID();<NEW_LINE>GraphTraversalSource g = instanceGraph.traversal();<NEW_LINE>It... | debug("{} found existing edge {}", methodName, edge); |
1,531,192 | default Map<String, ? extends Object> asMap() {<NEW_LINE>final Builder<String, Object> result = ImmutableMap.<String, Object>builder();<NEW_LINE>if (getCheck_NetAmtToInvoice() != null) {<NEW_LINE>// during enqueuing this result might be overwritten by a specific value<NEW_LINE>result.put(InvoicingParams.PARA_Check_NetA... | InvoicingParams.PARA_DateInvoiced, getDateInvoiced()); |
991,621 | public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.field(INDEX_PATTERNS.<MASK><NEW_LINE>if (this.template != null) {<NEW_LINE>builder.field(TEMPLATE.getPreferredName(), this.template);<NEW_LINE>}<NEW_LINE>if (this.componentTemp... | getPreferredName(), this.indexPatterns); |
92,805 | public JSONObject toJSONObject(SceneGraphImage img) {<NEW_LINE>JSONObject obj = new JSONObject();<NEW_LINE>obj.put("attribute", this.attribute);<NEW_LINE>obj.put("object", this.object);<NEW_LINE>obj.<MASK><NEW_LINE>if (this.region != null) {<NEW_LINE>obj.put("region", img.regions.indexOf(this.region) + 1);<NEW_LINE>}<N... | put("predicate", this.predicate); |
1,473,587 | private void registerRoute(Route route) {<NEW_LINE>String path = parsePath(route.getPath());<NEW_LINE>Matcher matcher = null;<NEW_LINE>if (path != null) {<NEW_LINE>matcher = PATH_VARIABLE_PATTERN.matcher(path);<NEW_LINE>}<NEW_LINE>boolean find = false;<NEW_LINE>List<String> uriVariableNames = new ArrayList<>();<NEW_LIN... | regexValue = matcher.group(2); |
618,370 | private void mapReferences(@NonNull final EDICctopInvoicVType invoice, @NonNull final HEADERXrech headerXrech, @NonNull final String dateFormat, @NonNull final InvoicSettings settings) {<NEW_LINE>final HREFE1 buyerOrderRef = INVOIC_objectFactory.createHREFE1();<NEW_LINE>buyerOrderRef.setDOCUMENTID(headerXrech.getDOCUME... | ReferenceQual.ORBU.name()); |
832,946 | public Object extractFieldValueForDataEntry(@NonNull final IDocumentFieldView fieldView) {<NEW_LINE>final Object value = fieldView.getValue();<NEW_LINE>final DocumentFieldDescriptor descriptor = fieldView.getDescriptor();<NEW_LINE>final DataEntryFieldBindingDescriptor dataBinding = descriptor.getDataBindingNotNull(Data... | getClazz().cast(value); |
1,516,975 | public Request<DeleteChannelMessageRequest> marshall(DeleteChannelMessageRequest deleteChannelMessageRequest) {<NEW_LINE>if (deleteChannelMessageRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteChannelMessageRequest)");<NEW_LINE>}<NEW_LINE>Request<DeleteChannelMessa... | <DeleteChannelMessageRequest>(deleteChannelMessageRequest, "AmazonChimeSDKMessaging"); |
1,428,394 | public void checkEmptyListText(boolean isSearch) {<NEW_LINE>if (isSearch) {<NEW_LINE>getNoteListFragment().setEmptyListButton(isSearchQueryNotNull() ? getString(R.string.empty_notes_search_button, mSearchView.getQuery().toString()) : getString(R.string.empty_notes_search_button_default));<NEW_LINE>getNoteListFragment()... | (R.string.empty_notes_trash)); |
199,208 | private void doSplit(final KVStateOutputList kvStates) {<NEW_LINE>final byte[] parentKey = this.region.getStartKey();<NEW_LINE>for (final KVState kvState : kvStates) {<NEW_LINE>final KVOperation op = kvState.getOp();<NEW_LINE>final <MASK><NEW_LINE>final long newRegionId = op.getNewRegionId();<NEW_LINE>final byte[] spli... | long currentRegionId = op.getCurrentRegionId(); |
1,060,804 | private short[] verifySignatureIntern(short[] signature) {<NEW_LINE>short[][] coeff_quadratic = ((RainbowPublicKeyParameters) this.key).getCoeffQuadratic();<NEW_LINE>short[][] coeff_singular = ((RainbowPublicKeyParameters) this.key).getCoeffSingular();<NEW_LINE>short[] coeff_scalar = ((RainbowPublicKeyParameters) <MASK... | this.key).getCoeffScalar(); |
588,449 | private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {<NEW_LINE>in.defaultReadObject();<NEW_LINE>if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_7_2) {<NEW_LINE>horizontalAlignmentValue = net.sf.jasperreports.engine.type.HorizontalAlignEnum.getByValue(horizont... | (HyperlinkTargetEnum.getByValue(hyperlinkTarget)); |
1,723,715 | private void load(int AD_User_ID) {<NEW_LINE>log.info("ID=" + AD_User_ID + ", AD_Client_ID=" + m_AD_Client_ID);<NEW_LINE>String sql = "SELECT * " + "FROM AD_User " + "WHERE AD_Client_ID=?" + " AND AD_User_ID=?";<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>pstmt = DB.pr... | m_bpc.getC_BPartner_ID(), null); |
429,563 | public void importMarkdownZip(final RequestContext context) {<NEW_LINE>context.renderJSON(StatusCodes.ERR);<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final FileUpload file = request.getFileUpload("file");<NEW_LINE>if (null == file) {<NEW_LINE>context.renderMsg(langPropsService.get("allowZipOnlyLab... | File zipFile = new File(zipPath); |
451,890 | final UpdateFleetResult executeUpdateFleet(UpdateFleetRequest updateFleetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFleetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
127,959 | protected static synchronized void fetchDatabaseMetadata() throws Exception {<NEW_LINE>if (dbMetaAcquired) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final StringBuilder sb = new StringBuilder();<NEW_LINE>final URL dmURL = new URL("http://localhost:" + portNumber + "/DatabaseManagement/DMS?command=GETINFO");<NEW_LINE>final... | dbProps.getProperty("jdbc_url", "UNKNOWN"); |
1,271,238 | public void createFileMixin(String type) throws RepositoryException {<NEW_LINE>NodeTypeManager manager = session.getWorkspace().getNodeTypeManager();<NEW_LINE>NodeTypeTemplate ntt = manager.createNodeTypeTemplate();<NEW_LINE>ntt.setName(type);<NEW_LINE>String[] str = new String[] { "nt:file" };<NEW_LINE>ntt.setDeclared... | pdt5.setRequiredType(PropertyType.STRING); |
1,005,803 | private static void defineRealBody(SkinnyMethodAdapter mv, final String pathName, final String simpleName, final Class[] paramTypes, final Class returnType, final int baseIndex, final int cacheIndex, final Set<String> nameSet) {<NEW_LINE>final int rubyIndex = baseIndex + 1;<NEW_LINE>mv.line(5);<NEW_LINE>// prepare temp... | , sig(RubyClass.class)); |
673,842 | public static DescribeParametersResponse unmarshall(DescribeParametersResponse describeParametersResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeParametersResponse.setRequestId(_ctx.stringValue("DescribeParametersResponse.RequestId"));<NEW_LINE>describeParametersResponse.setEngine(_ctx.stringValue("DescribeParam... | ("DescribeParametersResponse.RunningParameters[" + i + "].ForceRestart")); |
1,569,024 | private void attachSetupResultActivityListener(final Promise promise) {<NEW_LINE>ActivityEventListener ael = new BaseActivityEventListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onActivityResult(Activity a, int requestCode, int resultCode, Intent data) {<NEW_LINE>final ActivityEventListener ael = this;<N... | .resolve(convertSetupIntentResultToWritableMap(result)); |
880,715 | public static void dropKrakatau() {<NEW_LINE>File temp = new File(getBCVDirectory() + fs + "krakatau_" + krakatauVersion + ".zip");<NEW_LINE>File krakatauDirectory = new File(krakatauWorkingDirectory);<NEW_LINE>krakatauWorkingDirectory += fs + "Krakatau-master";<NEW_LINE>if (!krakatauDirectory.exists() || temp.exists()... | getResourceAsStream("Krakatau-" + krakatauVersion + ".zip"); |
1,765,747 | public static boolean isAESHardwareAccelerated() {<NEW_LINE>List<String> features = getListFromCpuinfo("Features");<NEW_LINE>if (features != null && features.contains("aes")) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>List<String> flags = getListFromCpuinfo("flags");<NEW_LINE>if (flags != null && flags.contains("aes")... | .invoke(null)) == 1; |
722,444 | public static <V> InternalCompletableFuture<V> invokeOnStableClusterSerial(NodeEngine nodeEngine, Supplier<? extends Operation> operationSupplier, int maxRetries) {<NEW_LINE><MASK><NEW_LINE>if (!clusterService.isJoined()) {<NEW_LINE>return newCompletedFuture(null);<NEW_LINE>}<NEW_LINE>RestartingMemberIterator memberIte... | ClusterService clusterService = nodeEngine.getClusterService(); |
1,751,102 | protected void handleCommand(Player player, PlayerProfile profile, PrimarySkillType skill, int value) {<NEW_LINE>int skillLevel = profile.getSkillLevel(skill);<NEW_LINE>float xpRemoved = profile.getSkillXpLevelRaw(skill);<NEW_LINE>profile.modifySkill(skill, value);<NEW_LINE>if (player == null) {<NEW_LINE>profile.schedu... | skillLevel, XPGainReason.COMMAND, skillLevel); |
683,626 | // Pending https://github.com/SpongePowered/Mixin/issues/312<NEW_LINE>// @Group(name = "org.spongepowered.tracker:bonemeal", min = 1, max = 1)<NEW_LINE>@Redirect(method = "applyBonemeal(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/EntityPlayer;L... | .getInstance().getCurrentContext(); |
1,295,747 | protected PNone doStringKey(VirtualFrame frame, Object object, String key, Object value, @Shared("getClass") @Cached GetClassNode getClassNode, @Shared("getExisting") @Cached LookupAttributeInMRONode.Dynamic getExisting) {<NEW_LINE>Object type = getClassNode.execute(object);<NEW_LINE>Object descr = <MASK><NEW_LINE>if (... | getExisting.execute(type, key); |
1,287,947 | public StopContactStreamingResult stopContactStreaming(StopContactStreamingRequest stopContactStreamingRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopContactStreamingRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(F... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
227,734 | static Map<String, UserAgentParser> createUserAgentParsers(Path userAgentConfigDirectory, UserAgentCache cache) throws IOException {<NEW_LINE>Map<String, UserAgentParser> userAgentParsers = new HashMap<>();<NEW_LINE>UserAgentParser defaultParser = new UserAgentParser(DEFAULT_PARSER_NAME, IngestUserAgentPlugin.class.get... | <Path> iterable = regexFiles::iterator; |
572,708 | public Builder clear() {<NEW_LINE>super.clear();<NEW_LINE>type_ = com.google.gwt.dev.shell.remoteui.RemoteMessageProto.Message.Request.ViewerRequest.AddLog.LogType.MAIN;<NEW_LINE>bitField0_ = (bitField0_ & ~0x00000001);<NEW_LINE>if (moduleLogBuilder_ == null) {<NEW_LINE>moduleLog_ = com.google.gwt.dev.shell.remoteui.Re... | bitField0_ = (bitField0_ & ~0x00000002); |
829,703 | private static void translate(PubsubUnboundedSink overriddenTransform, StepTranslationContext stepContext, PCollection input) {<NEW_LINE>stepContext.addInput(PropertyNames.FORMAT, "pubsub");<NEW_LINE>if (overriddenTransform.getTopicProvider().isAccessible()) {<NEW_LINE>stepContext.addInput(PropertyNames.PUBSUB_TOPIC, o... | ()).propertyName()); |
673,453 | public void addRemovalTimeById(String processInstanceId, Date removalTime) {<NEW_LINE>CommandContext commandContext = Context.getCommandContext();<NEW_LINE>commandContext.getHistoricActivityInstanceManager().addRemovalTimeToActivityInstancesByProcessInstanceId(processInstanceId, removalTime);<NEW_LINE>commandContext.ge... | ).addRemovalTimeToDetailsByProcessInstanceId(processInstanceId, removalTime); |
238,207 | public void onChannelPart(final ChanPartMessage msg) {<NEW_LINE>if (!isThisChatRoom(msg.getChannelName())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final IRCUser user = msg.getSource();<NEW_LINE>if (localUser(user)) {<NEW_LINE>leaveChatRoom();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String userNick = msg.getSource().g... | this.chatroom.getChatRoomMember(userNick); |
187,397 | public boolean apply(Game game, Ability source) {<NEW_LINE>Token token = new KorWarriorToken();<NEW_LINE>token.putOntoBattlefield(1, game, <MASK><NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<Permanent> tokens = token.ge... | source, source.getControllerId()); |
939,330 | /* (non-Javadoc)<NEW_LINE>* @see javax.jms.StreamMessage#writeBytes(byte[], int, int)<NEW_LINE>*/<NEW_LINE>public void writeBytes(byte[] x, int offset, int len) throws JMSException {<NEW_LINE>checkBodyWriteable("writeBytes");<NEW_LINE>// JsJmsStreamMessage doesn't support part arrays, so we'll have to copy out<NEW_LINE... | offset, subA, 0, len); |
757,546 | private ClassTree generateWsServiceRef(WorkingCopy workingCopy, TreeMaker make, ClassTree javaClass) {<NEW_LINE>if (containsWsRefInjection) {<NEW_LINE>return javaClass;<NEW_LINE>}<NEW_LINE>// TypeElement wsRefElement = workingCopy.getElements().getTypeElement("javax.xml.ws.WebServiceRef"); //NOI18N<NEW_LINE>AnnotationT... | = new HashSet<Modifier>(); |
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... | .getCurrentController().getSelection(); |
1,793,969 | public final BetweenAndStep14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> betweenSymmetric(Field<T1> t1, Field<T2> t2, Field<T3> t3, Field<T4> t4, Field<T5> t5, Field<T6> t6, Field<T7> t7, Field<T8> t8, Field<T9> t9, Field<T10> t10, Field<T11> t11, Field<T12> t12, Field<T13> t13, Field<T14> t14) {<NEW_... | , t12, t13, t14)); |
287,109 | private static Bitmap createOverlappingBitmap(Context context, Bitmap cover, Song song, int width, int height) {<NEW_LINE>if (TEXT_SIZE == -1)<NEW_LINE>loadTextSizes(context);<NEW_LINE>Paint paint = new Paint();<NEW_LINE>paint.setAntiAlias(true);<NEW_LINE>String title = song.title <MASK><NEW_LINE>String album = song.al... | == null ? "" : song.title; |
1,724,599 | public // public void writeStream(TiStream inputStream, TiStream outputStream, int maxChunkSize, KrollFunction resultsCallback)<NEW_LINE>int writeStream(Object[] args) throws IOException {<NEW_LINE>if (args.length < 3 || args.length > 4) {<NEW_LINE>throw new IllegalArgumentException("Invalid number of arguments");<NEW_... | writeStreamSync(finputStream, foutputStream, fmaxChunkSize); |
1,679,367 | public static int nullSafeHashCode(Object obj) {<NEW_LINE>if (obj == null) {<NEW_LINE>return 0;<NEW_LINE>} else {<NEW_LINE>if (obj.getClass().isArray()) {<NEW_LINE>if (obj instanceof Object[]) {<NEW_LINE>return nullSafeHashCode((Object[]) ((Object[]) obj));<NEW_LINE>}<NEW_LINE>if (obj instanceof boolean[]) {<NEW_LINE>r... | (double[]) obj)); |
1,663,397 | public void copy(File contractsDirectory, File outputDirectory) throws MojoExecutionException {<NEW_LINE>log.info("Copying Spring Cloud Contract Verifier contracts to [" + outputDirectory + "]" + ". Only files matching [" + this.config.getIncludedContracts() + "] pattern will end up in " + "the final JAR with stubs.");... | .config.getIncludedRootFolderAntPattern() + "*.*"; |
1,575,849 | public void initInternalStructure(DatabaseSession databaseSession) throws BimserverLockConflictException, BimserverDatabaseException {<NEW_LINE>RecordIterator recordIterator = keyValueStore.getRecordIterator(CLASS_LOOKUP_TABLE, databaseSession);<NEW_LINE>try {<NEW_LINE>Record record = recordIterator.next();<NEW_LINE>wh... | EClass) getEClassifier(packageName, className); |
1,076,433 | public static void vertical(Kernel1D_F32 kernel, ImageBorder_F32 input, GrayF32 output, int divisor) {<NEW_LINE>final float[] dataDst = output.data;<NEW_LINE>final float[] dataKer = kernel.data;<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final <MASK><NEW... | int width = output.getWidth(); |
668,731 | final DBClusterParameterGroup executeCopyDBClusterParameterGroup(CopyDBClusterParameterGroupRequest copyDBClusterParameterGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(copyDBClusterParameterGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
27,721 | public void createControl(Composite parent) {<NEW_LINE>Composite main = new Composite(parent, SWT.NONE);<NEW_LINE>main.setLayout(GridLayoutFactory.swtDefaults().numColumns(3).create());<NEW_LINE>main.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());<NEW_LINE>GridDataFactory inputData = GridDataFa... | Label(main, SWT.NONE); |
1,774,789 | private long installDownloadedSnapshot() {<NEW_LINE>if (!transitionState(DownloadState.DOWNLOADED, DownloadState.INSTALLING)) {<NEW_LINE>return RaftLog.INVALID_LOG_INDEX;<NEW_LINE>}<NEW_LINE>File tempFile = null;<NEW_LINE>try (Timer.Context ctx = MetricsSystem.timer(MetricKey.MASTER_EMBEDDED_JOURNAL_SNAPSHOT_INSTALL_TI... | DownloadState.INSTALLING, DownloadState.IDLE); |
834,400 | protected Object handleInterrupt(RubyThread self, RubySymbol timing, RubyProc block, @Cached BranchProfile beforeProfile, @Cached BranchProfile afterProfile) {<NEW_LINE>// TODO (eregon, 12 July 2015): should we consider exceptionClass?<NEW_LINE>final InterruptMode newInterruptMode = symbolToInterruptMode(getLanguage(),... | boolean allowSideEffects = newInterruptMode == InterruptMode.IMMEDIATE; |
333,622 | private String createMethodName(String fullName, String prefix, String shortName) {<NEW_LINE>HashMap methodNumbers = (HashMap) persistentData.get("methodNumbers");<NEW_LINE>if (methodNumbers == null) {<NEW_LINE>methodNumbers = new HashMap();<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (prefix.indexOf('-') >= 0)<NEW_LINE>pre... | persistentData.put("methodNumbers", methodNumbers); |
821,443 | public void reloadConfig(RestartRequirement restartType) {<NEW_LINE>if (restartType == RestartRequirement.GAME) {<NEW_LINE>reloadConfig(RestartRequirement.WORLD);<NEW_LINE>} else if (restartType == RestartRequirement.WORLD) {<NEW_LINE>oldBlueprintServerDir = BuildCraftCore.mainConfigManager.get("blueprints.serverDataba... | get("general.markerRange").getInt(); |
523,283 | @NotNull<NEW_LINE>default R @NotNull [] fetchArray() {<NEW_LINE>// [#9288] TODO: Create a delayed Collector that can delay the array type lookup until it's available<NEW_LINE>Result<R> r = fetch();<NEW_LINE>if (r.isNotEmpty())<NEW_LINE>return r.toArray((R[]) Array.newInstance(r.get(0).getClass(), r.size()));<NEW_LINE>C... | , r.size())); |
118,407 | private void initialize() {<NEW_LINE>logger.debug("initializing...");<NEW_LINE>HashSet<String> ports = new HashSet<String>();<NEW_LINE>// Initialize ports<NEW_LINE>for (Map.Entry<String, String> e : m_config.entrySet()) {<NEW_LINE>String name = e.getKey();<NEW_LINE>String port = e.getValue();<NEW_LINE>if (ports.contain... | "initialization complete, found {} ports.", m_driver.getNumberOfPorts()); |
1,669,692 | /*<NEW_LINE>* This method adjusts the task tags and task priorities so that they have the same size<NEW_LINE>*/<NEW_LINE>public static void fixTaskTags(Map defaultOptionsMap) {<NEW_LINE>Object taskTagsValue = defaultOptionsMap.get(JavaCore.COMPILER_TASK_TAGS);<NEW_LINE>char[][] taskTags = null;<NEW_LINE>if (taskTagsVal... | concatWith(taskPriorities, ','))); |
1,452,647 | public boolean apply(Game game, Ability source) {<NEW_LINE>int count = 0;<NEW_LINE>MageObject mageObject = game.getObject(source);<NEW_LINE>if (mageObject != null) {<NEW_LINE>Spell spell = (Spell) game.getState().getValue("dwarvenShrine" + mageObject);<NEW_LINE>if (spell != null) {<NEW_LINE>Player controller = game.get... | String name = spell.getName(); |
137,831 | private List<NameValueCountPair> groupByApplication(Business business, Predicate predicate) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(ReadCompleted.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = <MASK><NEW_LINE>Root<ReadComple... | cb.createQuery(Tuple.class); |
766,703 | public static void main(String[] args) {<NEW_LINE>final String USAGE = "To run this example, supply a key id or ARN\n" + "Usage: ViewGrants <key-id>\n" + "Example: ViewGrants 1234abcd-12ab-34cd-56ef-1234567890ab\n";<NEW_LINE>if (args.length != 1) {<NEW_LINE>System.out.println(USAGE);<NEW_LINE>System.exit(1);<NEW_LINE>}... | result = kmsClient.listGrants(request); |
928,640 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl <MASK><NEW_LINE>env.compileDeploy(epl).addListener("select").addListener("create");<NEW_LINE>sendSupportBean(env, "E1", 1L, 10L);<NEW_LINE>String[] fields = new String[] { "theString", "longPrimitive", "longBoxed" };<NEW_LINE>env.assertPropsNew("create", ... | = "@name('create') create window MyWindowCA#keepall as select '' as theString, 0L as longPrimitive, 0L as longBoxed from MyMapWithKeyPrimitiveBoxed;\n" + "insert into MyWindowCA select theString, longPrimitive, longBoxed from SupportBean;\n" + "insert into MyWindowCA select symbol as theString, volume as longPrimitive,... |
143,943 | public // JMSTimeStamp<NEW_LINE>void testJMSTimestamp_TCP_SecOff(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean testFailed = false;<NEW_LINE>String msgText = "Hello this is a test case for TextMessage ";<NEW_LINE>JMSContext jmsContext = jmsQCFTCP.createContext();<NEW_LINE>... | jmsConsumer = jmsContext.createConsumer(queue); |
1,837,207 | private ArrayList<FlutterOutline> findSimilarPath(FlutterOutline root, ArrayList<FlutterOutline> lastPath) {<NEW_LINE>final ArrayList<FlutterOutline> path = new ArrayList<>();<NEW_LINE>FlutterOutline node = root;<NEW_LINE>path.add(node);<NEW_LINE>int i = 1;<NEW_LINE>while (i < lastPath.size() && node != null && !node.g... | (i - 1), oldChild); |
130,087 | public static void vertical(Kernel1D_F64 kernel, ImageBorder_F64 input, GrayF64 output) {<NEW_LINE>final double[] dataDst = output.data;<NEW_LINE>final double[] dataKer = kernel.data;<NEW_LINE>final <MASK><NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final int width = output.getWidth();<NEW_LINE>final i... | int offset = kernel.getOffset(); |
341,280 | public void logDatasets(String experimentRunId, List<Artifact> newDatasets, boolean overwrite) throws ModelDBException {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE>var experimentRunEntityObj = session.get(ExperimentRunEntity.class, experimentRunId, LockMode.PESSIMISTI... | .getInstance().getTimeInMillis(); |
1,114,399 | public static void inventoryAttributes(Map<String, Inventory> attributes) {<NEW_LINE>String m = CardiovascularDiseaseModule.class.getSimpleName();<NEW_LINE>// Read<NEW_LINE>Attributes.inventory(attributes, m, Person.GENDER, true, false, "M");<NEW_LINE>Attributes.inventory(attributes, m, Person.GENDER, true, false, "F")... | "coronary_heart_disease", true, false, "false"); |
147,931 | public Request<DescribeVpcEndpointConnectionsRequest> marshall(DescribeVpcEndpointConnectionsRequest describeVpcEndpointConnectionsRequest) {<NEW_LINE>if (describeVpcEndpointConnectionsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<Descr... | Filter>) describeVpcEndpointConnectionsRequest.getFilters(); |
1,806,127 | public synchronized void resetObjInfo() {<NEW_LINE>String detected = ObjTypeDetector.drivedType != null ? ObjTypeDetector.drivedType : ObjTypeDetector.objType != null ? ObjTypeDetector.objType : CounterConstants.JAVA;<NEW_LINE>this.objDetectedType = detected;<NEW_LINE>this.monitoring_group_type = getValue("monitoring_g... | .getProperty("jvmRoute", defaultName)); |
940,435 | public List<Header> formatCookies(final List<Cookie> cookies) {<NEW_LINE>if (cookies == null) {<NEW_LINE>throw new IllegalArgumentException("List of cookies may not be null");<NEW_LINE>}<NEW_LINE>if (cookies.isEmpty()) {<NEW_LINE>throw new IllegalArgumentException("List of cookies may not be empty");<NEW_LINE>}<NEW_LIN... | new ArrayList<Header>(1); |
1,525,357 | public EndpointConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EndpointConfiguration endpointConfiguration = new EndpointConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | class).unmarshall(context)); |
480,581 | public void marshall(Trigger trigger, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (trigger == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(trigger.getName(), NAME_BINDING);<NEW_LINE>protocolMarshaller.m... | trigger.getActions(), ACTIONS_BINDING); |
1,672,990 | final UpdateDocumentationPartResult executeUpdateDocumentationPart(UpdateDocumentationPartRequest updateDocumentationPartRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDocumentationPartRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | (super.beforeMarshalling(updateDocumentationPartRequest)); |
1,761,984 | private static WritableMap convertJsonToWritableMap(JSONObject jsonObject) {<NEW_LINE>if (jsonObject == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>WritableMap map = new WritableNativeMap();<NEW_LINE>try {<NEW_LINE>Iterator<String> iterator = jsonObject.keys();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>Strin... | (key, (Boolean) value); |
255,534 | final DescribeOrderableDBInstanceOptionsResult executeDescribeOrderableDBInstanceOptions(DescribeOrderableDBInstanceOptionsRequest describeOrderableDBInstanceOptionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOrderableDBInstanceOptionsRequest);<NEW_LINE>AWSRequestMetrics awsRe... | invoke(request, responseHandler, executionContext); |
213,364 | public long tryWrite() {<NEW_LINE>if (valueWriter == null) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>long result = -1;<NEW_LINE>final int valueLength = valueWriter.getLength();<NEW_LINE>final int metadataLength = metadataWriter.getLength();<NEW_LINE>// claim fragment in log write buffer<NEW_LINE>final long claimedPositi... | MutableDirectBuffer writeBuffer = claimedFragment.getBuffer(); |
400,537 | public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "mr.");<NEW_LINE>final IOperandTreeNode targetReg... | .BYTE, Helpers.CRO_SUMMARY_OVERFLOW)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.