idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
961,196 | private void copyHeaders(Map<String, Object> source, Map<String, Object> target, HeaderMatcher headerMatcher) {<NEW_LINE>if (!CollectionUtils.isEmpty(source)) {<NEW_LINE>for (Map.Entry<String, Object> entry : source.entrySet()) {<NEW_LINE>try {<NEW_LINE>String headerName = createTargetPropertyName(entry.getKey(), false... | .get(JsonHeaders.KEY_TYPE_ID)); |
1,156,016 | final GetCloudFrontOriginAccessIdentityResult executeGetCloudFrontOriginAccessIdentity(GetCloudFrontOriginAccessIdentityRequest getCloudFrontOriginAccessIdentityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCloudFrontOriginAccessIdentityRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | endClientExecution(awsRequestMetrics, request, response); |
336,515 | private I_C_Invoice_Candidate createCand(final Properties ctx, final I_C_Flatrate_Term term, final I_C_Flatrate_DataEntry dataEntry, final int productId, final BigDecimal priceActual, final String trxName) {<NEW_LINE>final I_C_Invoice_Candidate newCand = InterfaceWrapperHelper.create(ctx, I_C_Invoice_Candidate.class, t... | setC_Currency_ID(term.getC_Currency_ID()); |
535,151 | public AVBSFContext initVideoBitstreamFilter(AVCodecParameters codecParameters, AVRational timebase) {<NEW_LINE>AVBitStreamFilter bsfilter = av_bsf_get_by_name(bsfVideoName);<NEW_LINE>videoBsfFilterContext = new AVBSFContext(null);<NEW_LINE>int ret = av_bsf_alloc(bsfilter, videoBsfFilterContext);<NEW_LINE>if (ret < 0) ... | info("cannot allocate bsf context for {}", getOutputURL()); |
1,532,353 | private void resolveExternalLibs(List<Program> programs, DomainFolder domainFolder, boolean saveIfModified, MessageLog messageLog, TaskMonitor monitor) throws CancelledException, IOException {<NEW_LINE>Map<String, Program> progsByName = programs.stream().filter(Objects::nonNull).collect(Collectors.toMap((p) -> p.getDom... | id = program.startTransaction("resolving external references"); |
1,255,646 | private ListenableFuture<ExecutionResult> handleActionInfo(BuildRule rule, BuildStrategyContext strategyContext, RemoteExecutionActionInfo actionInfo, RemoteRuleContext guardContext) throws IOException {<NEW_LINE>Objects.requireNonNull(actionInfo);<NEW_LINE>// The actionInfo may be very large, so explicitly capture jus... | close, MoreExecutors.directExecutor()); |
114,677 | public void updated(String pid, @SuppressWarnings("rawtypes") Dictionary properties) throws ConfigurationException {<NEW_LINE>if (pid == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>deleted(pid);<NEW_LINE>String url = (String) properties.get("url");<NEW_LINE>String name = (String) properties.get("name");<NEW_LINE>Match... | props.put(pid, info); |
1,202,776 | public void resourceChanged(IResourceChangeEvent event) {<NEW_LINE>IResourceDelta delta = event.getDelta();<NEW_LINE>if (delta == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>IPath localPath = null;<NEW_LINE>IEditorInput input = getEditorInput();<NEW_LINE>if (input instanceof IPathEditorInput) {<NEW_LINE>localPath = ((... | IPathEditorInput) input).getPath(); |
1,533,916 | public ImportApiKeysResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ImportApiKeysResult importApiKeysResult = new ImportApiKeysResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonTok... | int originalDepth = context.getCurrentDepth(); |
1,612,145 | private void captureFullSpeedInitialize(String channel, int samples, double timeGap, List<String> args, Integer interval) {<NEW_LINE>if (interval == null)<NEW_LINE>interval = 1000;<NEW_LINE>timeGap = (int) (timeGap * 8) / 8;<NEW_LINE>if (timeGap < 0.5)<NEW_LINE>timeGap = (int) (0.5 * 8) / 8;<NEW_LINE>if (samples > this... | analogInputSources.get(channel).CHOSA; |
215,090 | public synchronized void notifyHandshakeComplete() throws IOException {<NEW_LINE>super.notifyHandshakeComplete();<NEW_LINE>this.handshakeComplete = true;<NEW_LINE><MASK><NEW_LINE>if (null == sslSession || sslSession.getTlsSession() != connectionTlsSession) {<NEW_LINE>ProvSSLSessionContext sslSessionContext = manager.ge... | TlsSession connectionTlsSession = context.getSession(); |
777,276 | private TableFilter readDerivedTableWithCorrelation() {<NEW_LINE>Query query = parseQueryExpression();<NEW_LINE>read(CLOSE_PAREN);<NEW_LINE>Table table;<NEW_LINE>String alias;<NEW_LINE>ArrayList<String> derivedColumnNames = null;<NEW_LINE>IndexHints indexHints = null;<NEW_LINE>if (readIfUseIndex()) {<NEW_LINE>alias = s... | alias = session.getNextSystemIdentifier(sqlCommand); |
263,382 | protected Number run(AbstractEmulator<?> emulator) {<NEW_LINE>Backend backend = emulator.getBackend();<NEW_LINE>if (action.needSigInfo() && infoBlock == null) {<NEW_LINE>infoBlock = emulator.getMemory().malloc(128, true);<NEW_LINE>infoBlock.getPointer().setInt(0, signum);<NEW_LINE>}<NEW_LINE>UnidbgPointer stack = alloc... | infoBlock.getPointer().peer); |
714,006 | // completeIt<NEW_LINE>private void createDropShip() {<NEW_LINE>// Create movement delivery<NEW_LINE>Date date = Date.from(LocalDate.now().atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());<NEW_LINE>Timestamp today = new Timestamp(date.getTime());<NEW_LINE>List<Integer> recordIds = new ArrayList<>();<NEW_LINE>... | orderLinesIds = new ArrayList<>(); |
1,397,438 | protected boolean put(K key, @Nullable V value) {<NEW_LINE>if (key == null)<NEW_LINE>return false;<NEW_LINE>int i = indexOfExistingKey(state(), key);<NEW_LINE>if (i == -1 && factory.maxDynamicEntries == 0) {<NEW_LINE>Platform.get().log("Ignoring request to add a dynamic key", null);<NEW_LINE>return false;<NEW_LINE>}<NE... | addNewEntry(prior, key, value); |
654,155 | private void createWrap(TypeElement source, String fqn, List<Tree> members) throws IllegalStateException {<NEW_LINE>Set<Modifier> mods = EnumSet.of(Modifier.PUBLIC, Modifier.STATIC, Modifier.FINAL);<NEW_LINE>final String name = decapitalize(source.getSimpleName());<NEW_LINE>// NOI18N<NEW_LINE>List<VariableTree> params ... | ).parseStatement(bodyText, positions); |
414,256 | private Mono<Response<Void>> deleteHybridConnectionWithResponseAsync(String resourceGroupName, String name, String namespaceName, String relayName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is require... | error(new IllegalArgumentException("Parameter relayName is required and cannot be null.")); |
1,041,508 | private StackFrame computeDapStackFrame() {<NEW_LINE>try {<NEW_LINE>if (!isBalStackFrame(jStackFrame.getStackFrame())) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StackFrame dapStackFrame = new StackFrame();<NEW_LINE>dapStackFrame.setId(frameId);<NEW_LINE>dapStackFrame.setName(getStackFrameName(jStackFrame));<NEW_LINE>... | .get().supportsReadOnlyEditors(); |
863,420 | private static boolean collectArrayProperty(Node arrayLiteral, Node propertyCandidate) {<NEW_LINE>Node assignment = propertyCandidate.getFirstChild();<NEW_LINE>final int sizeOfArrayAtStart = arrayLiteral.getChildCount();<NEW_LINE>int maxIndexAssigned = sizeOfArrayAtStart - 1;<NEW_LINE><MASK><NEW_LINE>Node rhs = lhs.get... | Node lhs = assignment.getFirstChild(); |
971,919 | public void exitAdvertise_map_bgp_tail(Advertise_map_bgp_tailContext ctx) {<NEW_LINE>// TODO: https://github.com/batfish/batfish/issues/1836<NEW_LINE>warn(ctx, "BGP advertise-map is not currently supported");<NEW_LINE>String advertiseMapName = ctx.am_name.getText();<NEW_LINE>_configuration.referenceStructure(ROUTE_MAP,... | getStart().getLine()); |
990,533 | private void addDemoView(LayoutInflater layoutInflater, ViewGroup demoContainer, Demo demo, boolean isAdditional) {<NEW_LINE>View demoView = layoutInflater.inflate(R.layout.cat_demo_landing_row, demoContainer, false);<NEW_LINE>View rootView = demoView.findViewById(R.id.cat_demo_landing_row_root);<NEW_LINE>TextView titl... | ViewCompat.setTransitionName(rootView, transitionName); |
1,577,204 | public void measure(BaseDanmaku danmaku, TextPaint paint, boolean fromWorkerThread) {<NEW_LINE>if (danmaku.text instanceof Spanned) {<NEW_LINE>CharSequence text = danmaku.text;<NEW_LINE>if (text != null) {<NEW_LINE>StaticLayout staticLayout = new StaticLayout(text, paint, (int) Math.ceil(StaticLayout.getDesiredWidth(da... | .paintWidth = staticLayout.getWidth(); |
1,549,516 | private Object decodeExtended(Channel channel, SocketAddress remoteAddress, String sentence) {<NEW_LINE>Parser parser = new Parser(PATTERN_EXTENDED, sentence);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next()... | 1, parser.next()); |
482,641 | public static void addBranchToCurrentBlock(Blk currentBlock, String jumpSiteAddress, String gotoAddress) {<NEW_LINE>int artificialJmpIndex = 1;<NEW_LINE>if (currentBlock.getDefs().size() > 0) {<NEW_LINE>artificialJmpIndex = currentBlock.getDefs().get(currentBlock.getDefs().size() - 1).getTerm<MASK><NEW_LINE>}<NEW_LINE>... | ().getPcodeIndex() + 1; |
12,878 | final CreateOrganizationResult executeCreateOrganization(CreateOrganizationRequest createOrganizationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createOrganizationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,816,596 | public void visit(NodeTraversal t, Node n, Node parent) {<NEW_LINE>if (!n.isName()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Scope scope = t.getScope();<NEW_LINE>if (!NodeUtil.isLValue(n) || scope.getClosestHoistScope().isModuleScope()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<Export> exports = exportsByLocalName.get(... | Export mutated = e.mutatedCopy(); |
64,082 | public void validateAndInsertVersionedInputs(Handle handle, String runId, VersioningEntry versioningEntry, Map<String, Map.Entry<BlobExpanded, String>> locationBlobWithHashMap) {<NEW_LINE>if (versioningEntry == null) {<NEW_LINE>throw new InvalidArgumentException("VersionedInput not found in request");<NEW_LINE>} else {... | .getCause().getCause(); |
1,154,632 | public String convertStatement(String oraStatement) {<NEW_LINE>String[] retValue = m_convert.convert(oraStatement);<NEW_LINE>// Valid null<NEW_LINE>if (retValue == null) {<NEW_LINE>log.log(Level.SEVERE, ("DB_MariaDB.convertStatement - Not Converted (" + oraStatement + ") - " + m_convert.getConversionError()));<NEW_LINE... | ] + "<= <" + oraStatement + ">"); |
1,550,434 | /* ITANKCONTAINER */<NEW_LINE>@Override<NEW_LINE>public int fill(EnumFacing from, FluidStack resource, boolean doFill) {<NEW_LINE>if (isNotReady())<NEW_LINE>return 0;<NEW_LINE>if (resource == null) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>FluidStack resourceCopy = resource.copy();<NEW_LINE>int totalUsed = 0;<NEW_LINE>T... | = tankToFill.tank.getFluid(); |
946,375 | public HistoryRecordEntry unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>HistoryRecordEntry historyRecordEntry = new HistoryRecordEntry();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>tar... | "iso8601").unmarshall(context)); |
1,016,290 | public void print(DebugContext debug, Graph graph, Map<Object, Object> properties, int id, String format, Object... args) throws IOException {<NEW_LINE>if (graph instanceof StructuredGraph) {<NEW_LINE>OptionValues options = graph.getOptions();<NEW_LINE>StructuredGraph structuredGraph = (StructuredGraph) graph;<NEW_LINE... | format, simplifyClassArgs(args))); |
1,254,002 | private void registerOrReplaceActionInner(@Nonnull SimpleXmlElement element, @Nonnull String id, @Nonnull AnAction action, @Nullable PluginId pluginId) {<NEW_LINE>synchronized (myLock) {<NEW_LINE>if (Boolean.parseBoolean(element.getAttributeValue(OVERRIDES_ATTR_NAME))) {<NEW_LINE>if (getActionOrStub(id) == null) {<NEW_... | replaceAction(id, action, pluginId); |
396,600 | public void publishAvatar(Account account, final Avatar avatar, final Bundle options, final boolean retry, final OnAvatarPublication callback) {<NEW_LINE>Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": publishing avatar. options=" + options);<NEW_LINE>IqPacket packet = this.mIqGenerator.publishAvatar(avatar, opt... | error = result.findChild("error"); |
811,313 | private static void assign(StarlarkThread.Frame fr, Expression lhs, Object value) throws EvalException, InterruptedException {<NEW_LINE>if (lhs instanceof Identifier) {<NEW_LINE>// x = ...<NEW_LINE>assignIdentifier(fr, (Identifier) lhs, value);<NEW_LINE>} else if (lhs instanceof IndexExpression) {<NEW_LINE>// x[i] = ..... | ) lhs).getKey()); |
1,245,910 | public static void onBlockHarvest(HarvestDropsEvent event) {<NEW_LINE>if ((!ZooConfig.direSlimeEnabled.get() && !ZooConfig.direSlimeEnabledHand.get()) || event.isCanceled() || event.getWorld() == null || event.getWorld().isRemote || event.getHarvester() == null || event.getHarvester().capabilities.isCreativeMode || !(e... | getDrops().remove(drop); |
1,515,301 | public void validate(HttpAction action) {<NEW_LINE>// HttpServletRequest request = action.getRequest();<NEW_LINE>if (HttpNames.METHOD_OPTIONS.equals(action.getRequestMethod()))<NEW_LINE>return;<NEW_LINE>if (!HttpNames.METHOD_POST.equalsIgnoreCase(action.getRequestMethod()))<NEW_LINE>ServletOps.errorMethodNotAllowed("SP... | ServletOps.errorBadRequest("Bad charset: " + charset); |
198,944 | public void checkField(Field field) {<NEW_LINE>GraphQLFieldDefinition fieldDef = getValidationContext().getFieldDef();<NEW_LINE>if (fieldDef == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, Argument> argumentMap = argumentMap(field.getArguments());<NEW_LINE>for (GraphQLArgument graphQLArgument : fieldDef.get... | .getArgumentDefaultValue().isNotSet(); |
974,894 | private void run(List<String> dumpFileNames, Language language) throws IOException {<NEW_LINE>MixingSentenceSource mixingSource = MixingSentenceSource.create(dumpFileNames, language);<NEW_LINE>while (mixingSource.hasNext()) {<NEW_LINE>if (stopped) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (sentenceCount... | Sentence sentence = mixingSource.next(); |
306,300 | public static ListTaskResponse unmarshall(ListTaskResponse listTaskResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTaskResponse.setRequestId(_ctx.stringValue("ListTaskResponse.RequestId"));<NEW_LINE>listTaskResponse.setTotalCount(_ctx.integerValue("ListTaskResponse.TotalCount"));<NEW_LINE>listTaskResponse.setPageNum... | ("ListTaskResponse.Tasks[" + i + "].TaskName")); |
823,340 | protected static <A, B> double[] computeBivariateRanks(NumberArrayAdapter<?, A> adapter1, A data1, NumberArrayAdapter<?, B> adapter2, B data2, int len) {<NEW_LINE>double[] ret = new double[len];<NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>for (int j = i + 1; j < len; j++) {<NEW_LINE>double xi = adapter1.getDouble... | adapter1.getDouble(data1, j); |
933,008 | private ProductLookupDescriptor createProductLookupDescriptor(@NonNull final Optional<SOTrx> soTrx) {<NEW_LINE>if (soTrx.orElse(SOTrx.PURCHASE).isSales()) {<NEW_LINE>return ProductLookupDescriptor.builderWithStockInfo().bpartnerParamName(I_C_Order.COLUMNNAME_C_BPartner_ID).pricingDateParamName(I_C_Order.COLUMNNAME_Date... | availableForSalesConfigRepo(availableForSalesConfigRepo).build(); |
1,490,568 | public boolean reassociateInvariants() {<NEW_LINE>int count = 0;<NEW_LINE>StructuredGraph graph = loopBegin().graph();<NEW_LINE>InvariantPredicate invariant = new InvariantPredicate();<NEW_LINE>NodeBitMap newLoopNodes = graph.createNodeBitMap();<NEW_LINE>for (BinaryArithmeticNode<?> binary : whole().nodes().filter(Bina... | result = graph.addOrUniqueWithInputs(result); |
652,908 | public GetReportGroupTrendResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetReportGroupTrendResult getReportGroupTrendResult = new GetReportGroupTrendResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()... | )).unmarshall(context)); |
1,823,238 | private void addPrefetchAttribute(Attribute attribute, SDField field, Schema schema) {<NEW_LINE>if (attribute.getPrefetchValue() == null) {<NEW_LINE>// Prefetch by default - unless any summary makes this dynamic<NEW_LINE>// Check if there is an implicit dynamic definition<NEW_LINE>SummaryField fieldSummaryField = field... | getSummaryField(attribute.getName()); |
861,754 | private Map<WorkflowScheme, Map<CountWorkflowStep, List<CountWorkflowAction>>> normalizeBulkActions(final Map<WorkflowScheme, Map<CountWorkflowStep, List<CountWorkflowAction>>> bulkActions) {<NEW_LINE>final Set<WorkflowScheme> workflowSchemes = bulkActions.keySet();<NEW_LINE>for (final WorkflowScheme scheme : workflowS... | > iterator = countWorkflowActions.iterator(); |
1,787,775 | public void marshall(TableInput tableInput, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (tableInput == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(tableInput.getName(), NAME_BINDING);<NEW_LINE>protocol... | tableInput.getTableType(), TABLETYPE_BINDING); |
303,158 | public static String initToken(String consumerKey, String consumerSecret) {<NEW_LINE>ConnectionRequest auth = new ConnectionRequest() {<NEW_LINE><NEW_LINE>protected void readResponse(InputStream input) throws IOException {<NEW_LINE>JSONParser p = new JSONParser();<NEW_LINE>Hashtable h = p.parse(new InputStreamReader(in... | + consumerSecret).getBytes()); |
541,870 | private void showJumpResults(InitialJumpConditions initial, JumpResult jump) {<NEW_LINE>if (jump.isSplat()) {<NEW_LINE>showSplatMessage(initial, jump);<NEW_LINE>showCleverSplatMessage();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>System.out.println("CHUTE OPEN");<NEW_LINE>int worseJumpCount = countWorseHistoricalJumps(jump);... | out.printf("BEFORE YOURS, ONLY %d OPENED THEIR CHUTES LOWER THAN\n", betterThanCount); |
232,290 | public com.squareup.okhttp.Call globalPoliciesGetCall(String xWSO2Tenant, String policyName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and... | proceed(chain.request()); |
332,535 | public GatewayGroup unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GatewayGroup gatewayGroup = new GatewayGroup();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurren... | int originalDepth = context.getCurrentDepth(); |
1,692,921 | public static Double resolveBucketValue(MultiBucketsAggregation agg, InternalMultiBucketAggregation.InternalBucket bucket, List<String> aggPathAsList, GapPolicy gapPolicy) {<NEW_LINE>try {<NEW_LINE>Object propertyValue = bucket.getProperty(agg.getName(), aggPathAsList);<NEW_LINE>if (propertyValue == null) {<NEW_LINE>th... | SingleValue) propertyValue).value(); |
1,621,078 | public void onViewAttachedToWindow(@NonNull AbstractViewHolder holder) {<NEW_LINE>super.onViewAttachedToWindow(holder);<NEW_LINE>CellRowViewHolder viewHolder = (CellRowViewHolder) holder;<NEW_LINE>ScrollHandler scrollHandler = mTableView.getScrollHandler();<NEW_LINE>// The below code helps to display a new attached rec... | findViewHolderForAdapterPosition(selectionHandler.getSelectedColumnPosition()); |
720,976 | public JWSHeader convert(JoseHeader headers) {<NEW_LINE>JWSHeader.Builder builder = new JWSHeader.Builder(JWSAlgorithm.parse(headers.getAlgorithm().getName()));<NEW_LINE>if (headers.getJwkSetUrl() != null) {<NEW_LINE>builder.jwkURL(convertAsURI(JoseHeaderNames.JKU, headers.getJwkSetUrl()));<NEW_LINE>}<NEW_LINE>Map<Stri... | x509CertThumbprint(new Base64URL(x509SHA1Thumbprint)); |
1,716,785 | private static void sortHandlers(MethodNode mth, List<TryCatchBlockAttr> tryBlocks) {<NEW_LINE>TypeCompare typeCompare = mth<MASK><NEW_LINE>Comparator<ArgType> comparator = typeCompare.getReversedComparator();<NEW_LINE>for (TryCatchBlockAttr tryBlock : tryBlocks) {<NEW_LINE>for (ExceptionHandler handler : tryBlock.getH... | .root().getTypeCompare(); |
1,188,511 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>jLabelTarget = new javax.swing.JLabel();<NEW_LINE>jComboBoxTarget = new javax.swing.JComboBox();<NEW_LINE>jButton1 = new javax.swing.JButton();<NEW_LINE>jLabelTarget.setLabelFor(jC... | (LibrariesCustomizerPanel.class, "LBL_CustomizeGeneral_Platform_JLabel")); |
282,532 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>int xValue = source.getManaCostsToPay().getX();<NEW_LINE>if (controller != null && xValue > 0) {<NEW_LINE>Token tokenCopy = new TemptWithVengeanceElementalToken();<NEW_LINE>tokenCopy.putOntoBattlefield(xValue, game, sour... | getPlayer(source.getControllerId()); |
1,250,033 | public static Map<String, String> projectEntriesList(SensitiveInfoExposureAssertion sensitiveInfoExposureAssertion) {<NEW_LINE>Project <MASK><NEW_LINE>AbstractWsdlModelItem<ModelItemConfig> modelItem = (AbstractWsdlModelItem<ModelItemConfig>) project.getModelItem();<NEW_LINE>XmlObjectConfigurationReader reader = new Xm... | project = ModelSupport.getModelItemProject(sensitiveInfoExposureAssertion); |
733,142 | protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite parentComposite = (Composite) super.createDialogArea(parent);<NEW_LINE>Composite composite = new Composite(parentComposite, SWT.NULL);<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>layout.marginHeight = 10;<NEW_LINE>layout.marginWidth =... | e -> stylers.dispose()); |
314,801 | public static List<String> listResourceDirectory(String directoryName) throws IOException, ResourceNotFoundException {<NEW_LINE>URL url = Thread.currentThread().<MASK><NEW_LINE>if (url == null) {<NEW_LINE>throw new ResourceNotFoundException(directoryName);<NEW_LINE>}<NEW_LINE>URI uri;<NEW_LINE>try {<NEW_LINE>uri = url.... | getContextClassLoader().getResource(directoryName); |
1,603,727 | public static DescribeDownloadRecordsResponse unmarshall(DescribeDownloadRecordsResponse describeDownloadRecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDownloadRecordsResponse.setRequestId(_ctx.stringValue("DescribeDownloadRecordsResponse.RequestId"));<NEW_LINE>List<Items> records = new ArrayList<Items>(... | ("DescribeDownloadRecordsResponse.Records[" + i + "].Status")); |
454,922 | public void onClick(View view) {<NEW_LINE>int id = view.getId();<NEW_LINE>if (id == R.id.subject) {<NEW_LINE>toggleSubjectViewMaxLines();<NEW_LINE>} else if (id == R.id.from) {<NEW_LINE>onAddSenderToContacts();<NEW_LINE>} else if (id == R.id.to || id == R.id.cc || id == R.id.bcc) {<NEW_LINE>expand((TextView) view, ((Te... | PopupMenu(getContext(), view); |
1,058,632 | public IdentityOperationResult deleteUser(final String userId) {<NEW_LINE>checkAuthorization(Permissions.DELETE, Resources.USER, userId);<NEW_LINE>UserEntity user = findUserById(userId);<NEW_LINE>if (user != null) {<NEW_LINE>deleteMembershipsByUserId(userId);<NEW_LINE>deleteTenantMembershipsOfUser(userId);<NEW_LINE>del... | IdentityOperationResult(null, IdentityOperationResult.OPERATION_NONE); |
45,121 | public void run() {<NEW_LINE>// batch<NEW_LINE>WriteBatch writeBatch = LEVEL_DB.createWriteBatch();<NEW_LINE>DBIterator iterator = LEVEL_DB.iterator();<NEW_LINE>long currentTimeMillis = System.currentTimeMillis();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>Map.Entry<byte[], byte[]> next = iterator.next();<NEW_LINE>... | ::getTime).orElse(0L); |
562,880 | public Answer createVolume(final CreateObjectCommand cmd) {<NEW_LINE>final DataTO data = cmd.getData();<NEW_LINE>final VolumeObjectTO volume = (VolumeObjectTO) data;<NEW_LINE>try {<NEW_LINE>final Connection conn = hypervisorResource.getConnection();<NEW_LINE>final PrimaryDataStoreTO primaryStore = (PrimaryDataStoreTO) ... | .type = Types.VdiType.USER; |
1,043,283 | public static <T extends IBaseResource> T apply(FhirContext theCtx, T theResourceToUpdate, @Language("JSON") String thePatchBody) {<NEW_LINE>// Parse the patch<NEW_LINE>ObjectMapper mapper = new ObjectMapper();<NEW_LINE>mapper.configure(JsonParser.Feature.INCLUDE_SOURCE_IN_LOCATION, false);<NEW_LINE>JsonFactory factory... | jsonPatchNode = mapper.readTree(parser); |
1,367,325 | public S3AccessControlPolicy unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>S3AccessControlPolicy s3AccessControlPolicy = new S3AccessControlPolicy();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<... | XMLEvent xmlEvent = context.nextEvent(); |
1,312,272 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>response.setContentType("text/html");<NEW_LINE>response.encodeRedirectURL("/");<NEW_LINE><MASK><NEW_LINE>File warPath = new File(conf.getString(SubmarineConfVars.ConfVars.WORKBENCH_WEB_WAR));<N... | response.setStatus(HttpServletResponse.SC_OK); |
1,582,607 | public void handleLine(String line, PropertiesParserState state) {<NEW_LINE>Stack<<MASK><NEW_LINE>DrawHandler drawer = state.getDrawer();<NEW_LINE>if (line.equals(START)) {<NEW_LINE>ClassSettings settings = new ClassSettings(state.getAlignment().getHorizontal(), state.getAlignment().getVertical(), getDividerPos(drawer,... | ClassSettings> innerClassStartPoints = getOrInit(state); |
1,256,605 | private void addObservationCodeCriteria(BoolQueryBuilder theBoolQueryBuilder, SearchParameterMap theSearchParameterMap, FhirContext theFhirContext) {<NEW_LINE>String codeParamName = LastNParameterHelper.getCodeParamName(theFhirContext);<NEW_LINE>if (theSearchParameterMap.containsKey(codeParamName)) {<NEW_LINE>ArrayList... | textOnlyList = new ArrayList<>(); |
412,699 | public void load() {<NEW_LINE>Timber.d("load()");<NEW_LINE>try (Cursor cursor = mCol.getDb().query("SELECT guid, mid, mod, usn, tags, flds, flags, data FROM notes WHERE id = ?", mId)) {<NEW_LINE>if (!cursor.moveToFirst()) {<NEW_LINE>throw new WrongId(mId, "note");<NEW_LINE>}<NEW_LINE>mGuId = cursor.getString(0);<NEW_LI... | cursor.getString(4))); |
1,550,039 | public synchronized void startSubmittedJobs() {<NEW_LINE>if (!myDaoConfig.isEnableTaskBulkExportJobExecution()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Optional<BulkExportJobEntity> jobToProcessOpt = myTxTemplate.execute(t -> {<NEW_LINE>Pageable page = <MASK><NEW_LINE>Slice<BulkExportJobEntity> submittedJobs = myBulkExp... | PageRequest.of(0, 1); |
156,834 | public void configure(DatagramChannel channel, DatagramSocketOptions options) {<NEW_LINE>channel.config().setAllocator(PartialPooledByteBufAllocator.INSTANCE);<NEW_LINE>if (options.getSendBufferSize() != -1) {<NEW_LINE>channel.config().setSendBufferSize(options.getSendBufferSize());<NEW_LINE>}<NEW_LINE>if (options.getR... | SO_REUSEADDR, options.isReuseAddress()); |
23,645 | public static DrawingCache buildDanmakuDrawingCache(BaseDanmaku danmaku, IDisplayer disp, DrawingCache cache, int bitsPerPixel) {<NEW_LINE>if (cache == null)<NEW_LINE>cache = new DrawingCache();<NEW_LINE>cache.build((int) Math.ceil(danmaku.paintWidth), (int) Math.ceil(danmaku.paintHeight), disp.getDensityDpi(), false, ... | canvas, 0, 0, true); |
1,814,942 | // scan all the tiles and find the smallest and largest coordinate (x & y) in that tile.<NEW_LINE>private void fillTileMinMaxCoord() {<NEW_LINE>final SamReader in = SamReaderFactory.makeDefault().referenceSequence(REFERENCE_SEQUENCE).open(INPUT);<NEW_LINE>final ProgressLogger progress = new ProgressLogger(log, (int) 1e... | .minY -= diffY / coord.count; |
1,780,655 | public void run(RegressionEnvironment env) {<NEW_LINE>// test for JIRA ESPER-332<NEW_LINE>sendTimer(0, env);<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String stmtTextCreate = namedWindow ? "@public create window MyInfraPTS#keepall as select * from SupportBean" : "@public create table MyInfraPTS as (... | , path).addListener("select"); |
850,341 | public ProviderDescription unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ProviderDescription providerDescription = new ProviderDescription();... | String name = reader.nextName(); |
1,514,114 | public static DescribeDeviceInfoResponse unmarshall(DescribeDeviceInfoResponse describeDeviceInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDeviceInfoResponse.setRequestId(_ctx.stringValue("DescribeDeviceInfoResponse.RequestId"));<NEW_LINE>describeDeviceInfoResponse.setPageSize(_ctx.integerValue("DescribeDe... | ("DescribeDeviceInfoResponse.DeviceInfoList[" + i + "].UserDeviceId")); |
1,647,379 | protected void performAction(final IAdaptable[] files, final ISiteConnection site) throws CoreException {<NEW_LINE>final IConnectionPoint source = site.getSource();<NEW_LINE>final IConnectionPoint dest = site.getDestination();<NEW_LINE>UIUtils.getDisplay().asyncExec(new Runnable() {<NEW_LINE><NEW_LINE>public void run()... | SWT.ICON_ERROR | SWT.OK); |
410,555 | // javadoc:Mat::put(idx,data)<NEW_LINE>public int put(int[] idx, byte[] data) {<NEW_LINE>int t = type();<NEW_LINE>if (data == null || data.length % CvType.channels(t) != 0)<NEW_LINE>throw new UnsupportedOperationException("Provided data element number (" + (data == null ? 0 : data.length) + ") should be multiple of the... | idx, data.length, data); |
677,414 | public synchronized void syncMappingInfo() {<NEW_LINE>List<MetricMappingInfo> infos = null;<NEW_LINE>try {<NEW_LINE>BoolQueryBuilder boolQueryBuilder = new BoolQueryBuilder();<NEW_LINE>boolQueryBuilder.filter(new TermQueryBuilder("metric_pk", true));<NEW_LINE>infos = MappingUtil.scanMappingInfo(highLevelClient, metricM... | t -> Sets.newConcurrentHashSet()); |
407,833 | public void updateClob(String columnLabel, Reader x) throws SQLException {<NEW_LINE>try {<NEW_LINE>rsetImpl.updateClob(columnLabel, x);<NEW_LINE>} catch (SQLException sqlX) {<NEW_LINE>FFDCFilter.processException(sqlX, getClass().getName() + ".updateClob", "3857", this);<NEW_LINE>throw <MASK><NEW_LINE>} catch (NullPoint... | WSJdbcUtil.mapException(this, sqlX); |
442,814 | private List<LayerDeclaration> createDeclarations(AmidstSettings settings, List<Integer> enabledLayers) {<NEW_LINE>LayerDeclaration[] declarations = new LayerDeclaration[LayerIds.NUMBER_OF_LAYERS];<NEW_LINE>// @formatter:off<NEW_LINE>declare(settings, declarations, enabledLayers, LayerIds.ALPHA, null, false, Setting.cr... | , Setting.createImmutable(true)); |
1,646,338 | public static ASTNode findNode(CompilationUnit cu, int offset, IJavaElement element) {<NEW_LINE>ASTNode node = findNode(cu, offset);<NEW_LINE>if (node == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (element.getElementType() == IJavaElement.TYPE_PARAMETER) {<NEW_LINE>element = element.getParent();<NEW_LINE>}<NE... | resolveNode(node, Initializer.class); |
893,184 | private static Optional<File> extractPlugin(File pluginArchive, PluginInfo info) throws IOException {<NEW_LINE>logger.info("Extracting {} plugin from zip file ", info.getLabel());<NEW_LINE>File tempDir = new File(pluginArchive.getParentFile(), <MASK><NEW_LINE>tempDir.deleteOnExit();<NEW_LINE>tempDir.mkdir();<NEW_LINE>Z... | pluginArchive.getName() + "-extracted"); |
1,577,289 | final TestAlarmResult executeTestAlarm(TestAlarmRequest testAlarmRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(testAlarmRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
429,226 | public void run() {<NEW_LINE>DenseMatrix BB = (DenseMatrix) b;<NEW_LINE>DenseMatrix CC = (DenseMatrix) C;<NEW_LINE>for (int i0 = blockStep * threadID; i0 < iLimit; i0 += blockStep * LogicalCores) for (int k0 = 0; k0 < kLimit; k0 += blockStep) for (int j0 = 0; j0 < jLimit; j0 += blockStep) {<NEW_LINE>for (int k = k0; k ... | c_row_i = CC.matrix[i]; |
764,895 | public void deserialize(ByteBuffer buffer) throws IllegalPathException {<NEW_LINE>// adapt to old version based on version mark<NEW_LINE>int length = buffer.getInt();<NEW_LINE>boolean isOldVersion = true;<NEW_LINE>if (length == PLAN_SINCE_0_14) {<NEW_LINE>length = buffer.getInt();<NEW_LINE>isOldVersion = false;<NEW_LIN... | PartialPath(new String(bytes)); |
1,124,011 | public static void vertical9(Kernel1D_S32 kernel, GrayU8 input, GrayI16 output, int skip) {<NEW_LINE>final byte[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int... | [indexSrc] & 0xFF) * k3; |
783,849 | public static void main(String[] args) {<NEW_LINE>Exercise30_DynamicMedianFinding.DynamicMedianFindingHeap<Integer> dynamicMedianFindingHeap = new Exercise30_DynamicMedianFinding().new DynamicMedianFindingHeap<>();<NEW_LINE>dynamicMedianFindingHeap.insert(1);<NEW_LINE>dynamicMedianFindingHeap.insert(2);<NEW_LINE>dynami... | dynamicMedianFindingHeap.deleteMedian() + " Expected: 4"); |
1,431,634 | public void addMethod(RubyContext context, Node currentNode, InternalMethod method) {<NEW_LINE>assert // TODO (pitr-ch 24-Jul-2016): find out why undefined methods sometimes do not match above assertion<NEW_LINE>ModuleOperations.canBindMethodTo(method, rubyModule) || ModuleOperations.assignableTo(context.getCoreLibrary... | currentNode, rubyModule, "method_added", methodSymbol); |
493,241 | public void marshall(DescribedServer describedServer, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (describedServer == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(describedServer.getArn(), ARN_BINDING);... | describedServer.getProtocols(), PROTOCOLS_BINDING); |
644,283 | public static DescribeSlowSQLLogsResponse unmarshall(DescribeSlowSQLLogsResponse describeSlowSQLLogsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSlowSQLLogsResponse.setRequestId(_ctx.stringValue("DescribeSlowSQLLogsResponse.RequestId"));<NEW_LINE>describeSlowSQLLogsResponse.setPageRecordCount(_ctx.integerValu... | (_ctx.integerValue("DescribeSlowSQLLogsResponse.PageNumber")); |
1,397,925 | private void sendListing(ChannelHandlerContext ctx, File dir, String dirPath) {<NEW_LINE>StringBuilder buf = new StringBuilder().append("<!DOCTYPE html>\r\n").append("<html><head><meta charset='utf-8' /><title>").append("Listing of: ").append(dirPath).append("</title></head><body>\r\n").append("<h3>Listing of: ").appen... | buffer(buf.length()); |
1,055,560 | public void levelOrderInput() {<NEW_LINE>LinkedList<Integer> inputData = new LinkedList<>();<NEW_LINE>LinkedList<Node> nodes = new LinkedList<>();<NEW_LINE>Node root = new Node();<NEW_LINE>int data = scan.nextInt();<NEW_LINE>root.data = data;<NEW_LINE>nodes.addLast(root);<NEW_LINE>int flag = 1;<NEW_LINE>int total = 1;<... | Node pos = nodes.removeFirst(); |
1,049,575 | private static SpanContext extractContextFromTraceParent(String traceparent) {<NEW_LINE>// TODO(bdrutu): Do we need to verify that version is hex and that<NEW_LINE>// for the version the length is the expected one?<NEW_LINE>boolean isValid = (traceparent.length() == TRACEPARENT_HEADER_SIZE || (traceparent.length() > TR... | SPAN_ID_OFFSET + SpanId.getLength()); |
552,106 | private void fillIssues(Report report) {<NEW_LINE>final List<Issue> issues = new ArrayList<>();<NEW_LINE>Iterator<Issue> itr = report.getIssues(ISSUES_LIMIT);<NEW_LINE>while (itr.hasNext()) {<NEW_LINE>issues.<MASK><NEW_LINE>}<NEW_LINE>if (issues.isEmpty()) {<NEW_LINE>JLabel label = new JLabel(NbBundle.getMessage(getCla... | add(itr.next()); |
1,218,899 | public static void showFontSizeDialog(final Activity activity, final int currentSize, final Callback.a1<Integer> callback) {<NEW_LINE>SearchOrCustomTextDialog.DialogOptions dopt = new SearchOrCustomTextDialog.DialogOptions();<NEW_LINE>baseConf(activity, dopt);<NEW_LINE>dopt.callback = (selectedDialogValueAsString -> ca... | sizes = new ArrayList<>(); |
546,408 | private Collection<? extends ShipmentScheduleWithHU> createShipmentScheduleWithHUForPick(@NonNull final I_M_ShipmentSchedule schedule, @NonNull final IHUContext huContext, @NonNull final M_ShipmentSchedule_QuantityTypeToUse quantityType) {<NEW_LINE>List<I_M_ShipmentSchedule_QtyPicked> qtyPickedRecords = retrieveQtyPick... | candidatesForPick = new ArrayList<>(); |
960,526 | public static DescribeDisksFullStatusResponse unmarshall(DescribeDisksFullStatusResponse describeDisksFullStatusResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDisksFullStatusResponse.setRequestId(_ctx.stringValue("DescribeDisksFullStatusResponse.RequestId"));<NEW_LINE>describeDisksFullStatusResponse.setPageSize... | ("DescribeDisksFullStatusResponse.DiskFullStatusSet[" + i + "].Status.Code")); |
1,291,926 | protected String doIt() throws Exception {<NEW_LINE>// Instance current Payment Selection<NEW_LINE>MPaySelection paySelection = new MPaySelection(getCtx(), getRecord_ID(), get_TrxName());<NEW_LINE>sequence.set(paySelection.getLastLineNo());<NEW_LINE>// Loop for keys<NEW_LINE>getSelectionKeys().forEach(key -> {<NEW_LINE... | paymentRule = getSelectionAsString(key, "HRM_PaymentRule"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.