idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,574,311 | protected boolean handleResourceRequest(HttpServletResponse theResponse, ServletRequestDetails theRequestDetails, String requestPath) throws IOException {<NEW_LINE>if (requestPath.equals("/swagger-ui/") || requestPath.equals("/swagger-ui/index.html")) {<NEW_LINE>serveSwaggerUiHtml(theRequestDetails, theResponse);<NEW_L... | resource, theResponse.getOutputStream()); |
79,309 | public Description matchVariable(VariableTree tree, VisitorState state) {<NEW_LINE>if (!shouldStandardizeModifiers()) {<NEW_LINE>return NO_MATCH;<NEW_LINE>}<NEW_LINE>Type loggerType = LOGGER_TYPE.get(state);<NEW_LINE>if (!ASTHelpers.isSameType(loggerType, ASTHelpers.getType(tree), state)) {<NEW_LINE>return NO_MATCH;<NE... | ).getLeaf(), state); |
1,028,628 | private void initializeMap(List<File> jsonPaths) throws IOException {<NEW_LINE><MASK><NEW_LINE>map.put("runtime.install.dir", Utils.getInstallDir());<NEW_LINE>map.put("target.user.directory", new File(Utils.getInstallDir(), "usr"));<NEW_LINE>map.put("install.local.esa", true);<NEW_LINE>map.put("single.json.file", jsonP... | map.put("is.feature.utility", true); |
1,463,490 | final DeleteUserPoolResult executeDeleteUserPool(DeleteUserPoolRequest deleteUserPoolRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUserPoolRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
257,401 | private void scheduleCallback() {<NEW_LINE>isCallbackScheduled = true;<NEW_LINE>ScheduleHandleCallback callback = new ScheduleHandleCallback() {<NEW_LINE><NEW_LINE>public void scheduledTrigger() {<NEW_LINE>context.getInstrumentationProvider().qOutputRateConditionScheduledEval();<NEW_LINE>context.getAuditProvider().sche... | context.getEpStatementAgentInstanceHandle(), callback); |
1,665,660 | protected void generateXML(ProjectInfo proj) {<NEW_LINE>String apiname = proj.getName();<NEW_LINE>Javadoc <MASK><NEW_LINE>jd.setDestdir(getDestdir());<NEW_LINE>addSourcePaths(jd, proj);<NEW_LINE>// Tell Javadoc which packages we want to scan.<NEW_LINE>// JDiff works with packagenames, not sourcefiles.<NEW_LINE>jd.setPa... | jd = initJavadoc("Analyzing " + apiname); |
1,769,921 | private Date convertFromString(String valueStr, @NonNull final ExpressionContext options) {<NEW_LINE>if (valueStr == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>valueStr = valueStr.trim();<NEW_LINE>//<NEW_LINE>// Use the given date format<NEW_LINE>try {<NEW_LINE>final DateFormat dateFormat = (DateFormat) <MASK><N... | options.get(DateStringExpression.PARAM_DateFormat); |
410,746 | protected void processOpSendMsg(OpSendMsg op) {<NEW_LINE>if (op == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (op.msg != null && isBatchMessagingEnabled()) {<NEW_LINE>batchMessageAndSend(false);<NEW_LINE>}<NEW_LINE>if (isMessageSizeExceeded(op)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>pendingMessages... | last, getHighestSequenceId(op))); |
139,912 | private static FluidStack extractSimple(int millibuckets, FluidStack filter, IFluidHandler handler, boolean simulate) {<NEW_LINE>if (filter == null) {<NEW_LINE>return handler.drain(millibuckets, !simulate);<NEW_LINE>}<NEW_LINE>filter = filter.copy();<NEW_LINE>filter.amount = millibuckets;<NEW_LINE>FluidStack drained = ... | "(Filter = " + StringUtilBC.fluidToString(filter); |
319,833 | // Existing logging behaviour where the non stacktrace part has sufficed.<NEW_LINE>@SuppressWarnings("Slf4jThrowable")<NEW_LINE>public static PalantirSqlException handleInterruptions(long startTime, SQLException cause) throws PalantirSqlException {<NEW_LINE>SqlLoggers.SQL_EXCEPTION_LOG.debug("Caught SQLException", caus... | throw new PalantirInterruptedException("SQL call interrupted", cause); |
1,183,084 | public void testTriggerFailsGetNextRunTimeAfterTaskRuns(HttpServletRequest request, PrintWriter out) throws Exception {<NEW_LINE>Callable<<MASK><NEW_LINE>FailingTrigger trigger = new FailingTrigger();<NEW_LINE>trigger.allowFirstGetNextRunTime = true;<NEW_LINE>TaskStatus<Long> status = scheduler.schedule(task, trigger);... | Long> task = new SharedCounterTask(); |
829,289 | public void run() {<NEW_LINE>current = keymapData;<NEW_LINE>if (current != null && current.keyMaps.get(profile) != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<<MASK><NEW_LINE>Map<ShortcutAction, Set<String>> defRes;<NEW_LINE>res = new HashMap<ShortcutAction, Set<String>>();<NEW_LINE>defRes = new HashMap<ShortcutAc... | ShortcutAction, Set<String>> res; |
1,330,382 | void configureBuilderForSsl(URI requestUri, Builder builder) {<NEW_LINE>String host = requestUri.getHost();<NEW_LINE>final Ssl.SslVerificationState <MASK><NEW_LINE>SSLSocketFactory allTrustingSslSocketFactory = ssl.getAllTrustingSslSocketFactory();<NEW_LINE>X509TrustManager allTrustingDefaultTrustManager = ssl.getAllTr... | verificationState = ssl.getVerificationStateForHost(host); |
730,730 | private Map<FileChecksum, FileContent> createFileContents(ResultSet resultSet) throws SQLException {<NEW_LINE>Map<FileChecksum, FileContent> fileContents = new HashMap<FileChecksum, FileContent>();<NEW_LINE>FileChecksum currentFileChecksum = null;<NEW_LINE>while (resultSet.next()) {<NEW_LINE>FileChecksum fileChecksum =... | (resultSet.getString("checksum")); |
576,720 | private static void persistMetadata(final ShardPath shardPath, final IndexSettings indexSettings, final ShardRouting newRouting, @Nullable final ShardRouting currentRouting, final Logger logger) throws IOException {<NEW_LINE>assert newRouting != null : "newRouting must not be null";<NEW_LINE>// only persist metadata if... | null || currentRouting.isSameAllocation(newRouting); |
1,774,593 | public InputStream handleURLProtocol(AZPluginConnection connection, String arg_str) throws IPCException {<NEW_LINE>if (arg_str.toLowerCase(Locale.US).startsWith("chat:")) {<NEW_LINE>// azplug:?id=azbuddy&arg=chat%3Aanon%3Fmonkey%2520magic<NEW_LINE>if (!beta_enabled_param.getValue()) {<NEW_LINE>throw (new IPCException("... | , buddy, category_or_tag, hash)); |
782,105 | private static <T extends Trait> Map<CorsHeader, String> deduceCorsHeaders(Context<T> context, String path, PathItem pathItem, CorsTrait corsTrait) {<NEW_LINE>Map<CorsHeader, String> corsHeaders = new HashMap<>();<NEW_LINE>corsHeaders.put(CorsHeader.MAX_AGE, String.valueOf(corsTrait.getMaxAge()));<NEW_LINE>corsHeaders.... | TreeSet<>(String.CASE_INSENSITIVE_ORDER); |
55,031 | protected void saveAddress(User user, Address ad) throws DotDataException {<NEW_LINE>try {<NEW_LINE>if (UtilMethods.isSet(ad.getAddressId())) {<NEW_LINE>AddressLocalManagerUtil.updateAddress(ad.getAddressId(), ad.getDescription(), ad.getStreet1(), ad.getStreet2(), ad.getCity(), ad.getState(), ad.getZip(), ad.getCountry... | ), ad.getCell()); |
1,499,793 | private JComponent buildLog() {<NEW_LINE>tableModel = new MonitorLogTableModel();<NEW_LINE>logTable = new JXTable(1, 2);<NEW_LINE>logTable.setColumnControlVisible(true);<NEW_LINE>logTable.setModel(tableModel);<NEW_LINE>logTable.setHorizontalScrollEnabled(true);<NEW_LINE>logTable.setSelectionMode(ListSelectionModel.MULT... | PatternFilter(".*", 0, 2); |
267,645 | public MongoDatabase initSourceConnect() throws Exception {<NEW_LINE>List<MongoCredential> auths = new ArrayList<MongoCredential>();<NEW_LINE>if (!StringHelper.isEmpty(connection.getUsername()) && !StringHelper.isEmpty(connection.getPassword())) {<NEW_LINE>MongoCredential credential = MongoCredential.createCredential(c... | ",connection=" + mongo.getConnectPoint()); |
802,174 | public void testJMS2CompletionListener() throws JMSException, InterruptedException {<NEW_LINE>clearQueue(depthLimitedQueue_);<NEW_LINE>completionListener_.reset();<NEW_LINE>try (JMSContext context = queueConnectionFactory_.createContext()) {<NEW_LINE><MASK><NEW_LINE>producer.setAsync(completionListener_);<NEW_LINE>for ... | JMSProducer producer = context.createProducer(); |
120,910 | private void dump() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>for (Map.Entry<Class, ApiMessageDescriptor> e : descriptors.entrySet()) {<NEW_LINE>ApiMessageDescriptor desc = e.getValue();<NEW_LINE>sb.append("\n-------------------------------------------");<NEW_LINE>sb.append(String.format("\nname: %s",... | .format("\ninterceptors: %s", inc)); |
750,340 | public RestoreSecretResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RestoreSecretResult restoreSecretResult = new RestoreSecretResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep... | class).unmarshall(context)); |
689,938 | private JPanel buttonTab(final RailButton rbc) {<NEW_LINE>JPanel primary = new JPanel(new MigLayout("fill"));<NEW_LINE>JPanel panel = new JPanel(new MigLayout());<NEW_LINE>{<NEW_LINE>// // Outer Diameter<NEW_LINE>panel.add(new JLabel(trans.get("RailBtnCfg.lbl.OuterDiam")));<NEW_LINE>DoubleModel ODModel = new DoubleMode... | get("RailBtnCfg.lbl.Plus")), "right"); |
1,790,896 | static Object parsePropertyValue(@Nullable final String propertyValue) {<NEW_LINE>if (propertyValue == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// read boolean value<NEW_LINE>final Map<String, Boolean> booleanConversionMap = new HashMap<>();<NEW_LINE>booleanConversionMap.put("0", false);<NEW_LINE>booleanConver... | booleanConversionMap.put("no", false); |
267,898 | protected void addDefaultVRProvider(Connection conn, long physicalNetworkId, long zoneId) {<NEW_LINE>PreparedStatement pstmtUpdate = null, pstmt2 = null;<NEW_LINE>try {<NEW_LINE>// add physical network service provider - VirtualRouter<NEW_LINE>s_logger.debug("Adding PhysicalNetworkServiceProvider VirtualRouter");<NEW_L... | pstmt2.setString(1, routerUUID); |
916,102 | public static synchronized AnalysisResultTopComponent findInstance() {<NEW_LINE>TopComponent win = WindowManager.getDefault().findTopComponent(PREFERRED_ID);<NEW_LINE>if (win instanceof AnalysisResultTopComponent) {<NEW_LINE>return (AnalysisResultTopComponent) win;<NEW_LINE>}<NEW_LINE>if (win == null) {<NEW_LINE>Logger... | getDefault().findMode("output"); |
1,243,395 | public DescribeSnapshotSchedulesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeSnapshotSchedulesResult describeSnapshotSchedulesResult = new DescribeSnapshotSchedulesResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<... | int originalDepth = context.getCurrentDepth(); |
710,064 | void configOSC(final ParametersInfo parametersInfo) {<NEW_LINE>Log.d("FaustJava", "ipAddress : " + ipAddress.getText().toString());<NEW_LINE>parametersInfo.ipAddress = ipAddress.getText().toString();<NEW_LINE>Log.d("FaustJava", "inPort : " + inPort.getText().toString());<NEW_LINE>parametersInfo.inPort = Integer.parseIn... | getText().toString()); |
133,264 | private void reportSocketStats(long channelId, InternalWithLogId socketLogId) {<NEW_LINE>final long socketId = socketLogId.getLogId().getId();<NEW_LINE>InternalInstrumented<InternalChannelz.SocketStats> iSocket = channelz.getSocket(socketId);<NEW_LINE>if (iSocket == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final St... | , toMillis(transportStats.lastLocalStreamCreatedTimeNanos)); |
598,363 | private <T extends CompletableFuture<?>> void makeRequest(final String path, final Buffer requestBody, final T cf, final Handler<HttpClientResponse> responseHandler, final boolean endRequest, final HttpMethod method) {<NEW_LINE>HttpClientRequest request = httpClient.request(method, serverSocketAddress, clientOptions.ge... | (0, 0, requestBody)); |
139,857 | public void removeHeaders(String headerName) throws IllegalArgumentException {<NEW_LINE>if (headerName == null) {<NEW_LINE>throw new IllegalArgumentException("Message: null headerName");<NEW_LINE>}<NEW_LINE>Field member = getDirectAccessMember(headerName);<NEW_LINE>HeaderEntry direct = member == null ? null : getDirect... | first = topHeader(headerName, direct); |
350,815 | public void marshall(CreateApplicationRequest createApplicationRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createApplicationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createApplic... | createApplicationRequest.getTemplateUrl(), TEMPLATEURL_BINDING); |
631,617 | public static void createDocumentTypes(Properties ctx, int AD_Client_ID, JavaProcess sp, String trxName) {<NEW_LINE>s_log.info("AD_Client_ID=" + AD_Client_ID);<NEW_LINE>String sql = "SELECT rl.Value, rl.Name " + "FROM AD_Ref_List rl " + "WHERE rl.AD_Reference_ID=183" + " AND rl.IsActive='Y' AND NOT EXISTS " + " (SELECT... | ResultSet rs = pstmt.executeQuery(); |
588,412 | public void process(Set<MultiKeyArrayOfKeys<EventBean>> newData, Set<MultiKeyArrayOfKeys<EventBean>> oldData, ExprEvaluatorContext exprEvaluatorContext) {<NEW_LINE>InstrumentationCommon instrumentationCommon = agentInstanceContext.getInstrumentationProvider();<NEW_LINE>instrumentationCommon.qOutputProcessNonBufferedJoi... | processJoinResult(newData, oldData, isGenerateSynthetic); |
1,185,465 | private void updateRecentWorkspacesMenu() {<NEW_LINE>String recent = SoapUI.getSettings().getString(RECENT_WORKSPACES_SETTING, null);<NEW_LINE>StringToStringMap history = recent == null ? new StringToStringMap() : StringToStringMap.fromXml(recent);<NEW_LINE>recentWorkspacesMenu.removeAll();<NEW_LINE>if (history.size() ... | add(new JMenuItem(delegate)); |
1,123,319 | public Set<StoreTrait> doOperation(final GetTraits operation, final Context context, final Store store) throws OperationException {<NEW_LINE>try {<NEW_LINE>FederatedOperationChain<Void, StoreTrait> wrappedFedChain = // deep copy options<NEW_LINE>new FederatedOperationChain.Builder<Void, StoreTrait>().operationChain(Ope... | .stream().count(); |
385,283 | HttpResponse createHttpResponse(final HttpRequest request, final HttpURLConnection connection) throws IOException {<NEW_LINE>// connection.setDoOutput(true);<NEW_LINE>final String statusText = connection.getResponseMessage();<NEW_LINE>final int statusCode = connection.getResponseCode();<NEW_LINE><MASK><NEW_LINE>if (con... | InputStream content = connection.getErrorStream(); |
885,837 | public static long[] pascalTableUpTo(final int maxN, final int maxK) {<NEW_LINE>if (maxN > MAXCHOOSENUM) {<NEW_LINE>final long[] ppt = new long[((maxN - MAXCHOOSENUM) * (maxK - 1))];<NEW_LINE>int idx = 0;<NEW_LINE>// Initialize first "row" of extension table from existing triangle.<NEW_LINE>int i = MAXCHOOSENUM + 1;<NE... | ppt[idx - k - 1]; |
334,398 | public void print(PrettyPrinter printer) {<NEW_LINE>printer.add("%5s %7s %30s %-50s %s", "INDEX", "ORDINAL", "TYPE", "NAME", "CANDIDATE");<NEW_LINE>for (int l = this.baseArgIndex; l < this.locals.length; l++) {<NEW_LINE>Local <MASK><NEW_LINE>if (local != null) {<NEW_LINE>Type localType = local.type;<NEW_LINE>String... | local = this.locals[l]; |
865,286 | public Object executeFunction() {<NEW_LINE><MASK><NEW_LINE>StringBuffer conc_str_buffer = (StringBuffer) this.getConcReceiver();<NEW_LINE>StringValue leftExpr = this.env.heap.getField(Types.JAVA_LANG_STRING_BUFFER, SymbolicHeap.$STRING_BUFFER_CONTENTS, conc_str_buffer, symb_str_buffer, stringValBeforeExecution);<NEW_LI... | ReferenceConstant symb_str_buffer = this.getSymbReceiver(); |
379,131 | public Integer save(UserRequest request) {<NEW_LINE>String username = request.getName();<NEW_LINE>UserEntity userExists = userMapper.selectByName(username);<NEW_LINE>String password = request.getPassword();<NEW_LINE>Preconditions.checkNull(<MASK><NEW_LINE>Preconditions.checkTrue(StringUtils.isNotBlank(password), "passw... | userExists, "username [" + username + "] already exists"); |
676,683 | private static Lookup[] delegates(Lookup prevFolderLkp, String path) {<NEW_LINE>ClassLoader loader = Lookup.getDefault().lookup(ClassLoader.class);<NEW_LINE>LOG.log(Level.FINEST, "lkp loader: {0}", loader);<NEW_LINE>if (loader == null) {<NEW_LINE>loader = Thread.currentThread().getContextClassLoader();<NEW_LINE>LOG.log... | return new Lookup[] { base }; |
1,026,911 | private static void aggregateRequestByKeys(SearchRequest searchRequest, OptionalLimit limit, OptionalLimit exactLimit) {<NEW_LINE>final TermsAggregationBuilder keysAggBuilder = AggregationBuilders.terms<MASK><NEW_LINE>limit.asInteger().ifPresent(l -> keysAggBuilder.size(l + 1));<NEW_LINE>// Assign keys aggregation to r... | ("keys").field(TAG_SKEY_RAW); |
657,861 | private void insertGuard(Guard guard) {<NEW_LINE>if ("ignore".equals(options.guards())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SootMethod container = guard.container;<NEW_LINE>if (!container.hasActiveBody()) {<NEW_LINE>logger.warn("Tried to insert guard into " + container + " but couldn't because method has no body.");... | .newThrowStmt(exceptionLocal), initStmt); |
452,459 | public boolean loadChildren(JFileChooser chooser, boolean descend) {<NEW_LINE>// fixed bug #97124<NEW_LINE>if (loaded == false) {<NEW_LINE>ArrayList files = getFiles(chooser);<NEW_LINE>if (files.isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>for (int i = 0; i < files.size(); i++) {<NEW_LINE>File child = (<MASK... | File) files.get(i); |
435,896 | private List<BaseMessage> deserializeBaseMessage(ByteBuf input) {<NEW_LINE>if (input.readableBytes() == 0)<NEW_LINE>return Collections.emptyList();<NEW_LINE>List<BaseMessage> result = Lists.newArrayList();<NEW_LINE><MASK><NEW_LINE>// ignore consumer offset<NEW_LINE>input.readLong();<NEW_LINE>while (input.isReadable()) ... | long pullLogOffset = input.readLong(); |
230,749 | public static void placeSchematicBlock(Level world, BlockState state, BlockPos target, ItemStack stack, @Nullable CompoundTag data) {<NEW_LINE>// Piston<NEW_LINE>if (state.hasProperty(BlockStateProperties.EXTENDED))<NEW_LINE>state = state.setValue(<MASK><NEW_LINE>if (state.hasProperty(BlockStateProperties.WATERLOGGED))... | BlockStateProperties.EXTENDED, Boolean.FALSE); |
536,803 | static byte[] create(ZipFileData file, boolean allowZip64) throws ZipException {<NEW_LINE>byte[] comment = file.getBytes(file.getComment());<NEW_LINE>byte[] buf = new byte[FIXED_DATA_SIZE + comment.length];<NEW_LINE>// Allow writing of Zip file without Zip64 extensions for large archives as a special case<NEW_LINE>// s... | 1 : file.getCentralDirectoryOffset()); |
253,529 | private Mono<PagedResponse<BillingRoleDefinitionInner>> listByBillingAccountNextSinglePageAsync(String nextLink) {<NEW_LINE>if (nextLink == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.getEndpoint() == null) {... | )).readOnly())); |
1,330,066 | private void convertYieldOfAsyncGenerator(LexicalContext ctx, Node yieldNode) {<NEW_LINE>checkNotNull(yieldNode);<NEW_LINE>checkState(yieldNode.isYield());<NEW_LINE>checkState(ctx != <MASK><NEW_LINE>checkState(ctx.function.isAsyncGeneratorFunction());<NEW_LINE>Node expression = yieldNode.removeFirstChild();<NEW_LINE>No... | null && ctx.function != null); |
1,380,922 | public void preselectFile(FileObject fo) {<NEW_LINE>ClassPath cp = ClassPath.<MASK><NEW_LINE>if (cp == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String packagePath = // NOI18N<NEW_LINE>cp.getResourceName(fo.getParent()) + "/" + fo.getName();<NEW_LINE>// NOI18N<NEW_LINE>String[] packagePathArr = packagePath.split("/"... | getClassPath(fo, ClassPath.SOURCE); |
371,327 | public void print_info(app.freerouting.board.ObjectInfoPanel p_window, java.util.Locale p_locale) {<NEW_LINE>java.util.ResourceBundle resources = java.util.ResourceBundle.getBundle("app.freerouting.board.ObjectInfoPanel", p_locale);<NEW_LINE>p_window.append_bold(resources.getString("net_class_2") + " ");<NEW_LINE><MASK... | p_window.append_bold(this.name); |
331,517 | private List<NameValueCountPair> groupByProcess(Business business, Predicate predicate) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Review.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = cb.createQuery(Tuple.class);<NEW_LINE>Root... | root.get(Review_.processName); |
494,146 | public void trigger(DelegateExecution execution, String triggerName, Object triggerData) {<NEW_LINE>ExecutionEntity executionEntity = (ExecutionEntity) execution;<NEW_LINE>BoundaryEvent boundaryEvent = <MASK><NEW_LINE>if (boundaryEvent.isCancelActivity()) {<NEW_LINE>CommandContext commandContext = Context.getCommandCon... | (BoundaryEvent) execution.getCurrentFlowElement(); |
212,627 | final PutUserPermissionsBoundaryResult executePutUserPermissionsBoundary(PutUserPermissionsBoundaryRequest putUserPermissionsBoundaryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putUserPermissionsBoundaryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | invoke(request, responseHandler, executionContext); |
388,995 | private void addRequestMetricsToSensor(final Sensor sensor, final String servicePrefix, final String metricNamePrefix, final Map<String, String> metricsTags, final String descriptionSuffix) {<NEW_LINE>addSensor(sensor, metricNamePrefix + "-latency-avg", servicePrefix + PULL_QUERY_METRIC_GROUP, "Average time for a pull ... | , metricsTags, new Avg()); |
969,404 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.acitivty_choose_tag);<NEW_LINE>mNoteId = getIntent()<MASK><NEW_LINE>Query.many(Tag.class, "select * from Tags").getAsync(getLoaderManager(), onTagsLoaded);<NEW_LINE>Query.many(NoteTagLink.c... | .getLongExtra(EXTRA_NOTE_ID, -1); |
1,496,646 | public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());<NEW_LINE>KeyStore trustStore = KeyStore.getInstance(JKS);<NEW_LINE>char[] ksPwd = new char[] { 0x63, 0x6C, 0x69, 0x65, 0x6E, 0x74, 0x5F, 0x6B, 0x73, 0x5F... | setSocketFactory(sslContext.getSocketFactory()); |
1,561,684 | private Mono<Response<Void>> disableAllForHostingEnvironmentWithResponseAsync(String resourceGroupName, String environmentName, String hostingEnvironmentName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint()... | error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); |
1,005,072 | public double calculate(double p) {<NEW_LINE>switch(funcName) {<NEW_LINE>case StdNormal:<NEW_LINE>return stdNormal(p);<NEW_LINE>case Normal:<NEW_LINE>return normal(p, params[0], params[1]);<NEW_LINE>case Gamma:<NEW_LINE>return gamma(p, params[0], params[1]);<NEW_LINE>case Beta:<NEW_LINE>return beta(p, params[0], params... | (p, params[0]); |
219,691 | public static HostColumnVector decimalFromDoubles(DType type, RoundingMode mode, double... values) {<NEW_LINE>assert type.isDecimalType();<NEW_LINE>if (type.typeId == DType.DTypeEnum.DECIMAL64) {<NEW_LINE>long[] data = new long[values.length];<NEW_LINE>for (int i = 0; i < values.length; i++) {<NEW_LINE>BigDecimal dec =... | -> b.appendUnscaledDecimalArray(data)); |
813,190 | private void useRegistryAsMetadataCenterIfNecessary() {<NEW_LINE>Collection<MetadataReportConfig<MASK><NEW_LINE>if (CollectionUtils.isNotEmpty(metadataConfigs)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<RegistryConfig> defaultRegistries = configManager.getDefaultRegistries();<NEW_LINE>if (defaultRegistries.size() > 0... | > metadataConfigs = configManager.getMetadataConfigs(); |
1,591,354 | public void populateItem(final Item<RefModel> item) {<NEW_LINE>final RefModel entry = item.getModelObject();<NEW_LINE>PageParameters shortUniqRef = WicketUtils.newObjectParameter(model.name, Repository.shortenRefName(entry.getName()));<NEW_LINE>item.add(WicketUtils.createDateLabel("branchDate", entry.getDate(), getTime... | WicketUtils.setAlternatingBackground(item, counter); |
1,237,743 | public static void validateJsonObject(JsonObject jsonObj) throws IOException {<NEW_LINE>if (jsonObj == null) {<NEW_LINE>if (FileSchemaTestClass.openapiRequiredFields.isEmpty()) {<NEW_LINE>return;<NEW_LINE>} else {<NEW_LINE>// has required fields<NEW_LINE>throw new IllegalArgumentException(String.format("The required fi... | .openapiRequiredFields.toString())); |
1,190,274 | public void installRenderer(final CheckboxTreeCellRendererBase cellRenderer) {<NEW_LINE>setCellRenderer(cellRenderer);<NEW_LINE>new ClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean onClick(MouseEvent e, int clickCount) {<NEW_LINE>int row = getRowForLocation(e.getX(), e.getY());<NEW_LINE>if (row < ... | getPathForRow(row).getLastPathComponent(); |
271,329 | public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {<NEW_LINE>super.onCreateContextMenu(menu, v, menuInfo);<NEW_LINE>WebView.HitTestResult result = ninjaWebView.getHitTestResult();<NEW_LINE>if (result.getExtra() != null) {<NEW_LINE>if (result.getType() == SRC_ANCHOR_TYPE)<NE... | getData().get("url"); |
1,255,639 | protected List<float[]> convertColumn(float[] cLine) {<NEW_LINE>if (cLine.length < 4)<NEW_LINE>throw new RuntimeException(MessageLocalization.getComposedMessage("no.valid.column.line.found"));<NEW_LINE>List<float[]> cc = new ArrayList<>();<NEW_LINE>for (int k = 0; k < cLine.length - 2; k += 2) {<NEW_LINE>if (cLine.leng... | ] r = new float[4]; |
33,052 | public static boolean areSame(Collection<? extends AnnotationMirror> c1, Collection<? extends AnnotationMirror> c2) {<NEW_LINE>if (c1.size() != c2.size()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (c1.size() == 1) {<NEW_LINE>return areSame(c1.iterator().next(), c2.iterator().next());<NEW_LINE>}<NEW_LINE>// while ... | AnnotationMirror anno2 = iter2.next(); |
891,831 | private static void processOutputLimitedViewDefaultCodegen(ResultSetProcessorRowForAllForge forge, CodegenClassScope classScope, CodegenMethod method, CodegenInstanceAux instance) {<NEW_LINE>CodegenMethod getSelectListEventAddList = <MASK><NEW_LINE>CodegenMethod getSelectListEventAsArray = getSelectListEventsAsArrayCod... | getSelectListEventsAddListCodegen(forge, classScope, instance); |
1,357,205 | static List<PipelineStageBase<?>> unpackPipelineStages(BatchOperator<?> batchOp, String meta) {<NEW_LINE>String[] clazzNames = JsonConverter.fromJson(JsonPath.read(meta, "$.clazz").toString(), String[].class);<NEW_LINE>String[] params0 = JsonConverter.fromJson(JsonPath.read(meta, "$.param").toString(<MASK><NEW_LINE>Str... | ), String[].class); |
407,243 | public void marshall(PushNotificationTemplateRequest pushNotificationTemplateRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (pushNotificationTemplateRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.... | pushNotificationTemplateRequest.getTemplateDescription(), TEMPLATEDESCRIPTION_BINDING); |
638,622 | private <K, InputT> boolean isApplicable(Map<TupleTag<?>, PCollection<?>> inputs, GlobalCombineFn<InputT, ?, ?> fn) {<NEW_LINE>if (!(fn instanceof CombineFn)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (inputs.size() == 1) {<NEW_LINE>PCollection<KV<K, InputT>> input = (PCollection<KV<K, InputT>>) Iterables.<MASK><... | getOnlyElement(inputs.values()); |
1,400,648 | private static File linkResources(Project project, File outDir, File compiledResourcesDir, File manifestFile, ICanceled canceled) throws CompileExceptionError {<NEW_LINE>log("Linking resources from " + compiledResourcesDir.getAbsolutePath());<NEW_LINE>try {<NEW_LINE>File aabDir = new File(outDir, "aab");<NEW_LINE>File ... | file.getAbsolutePath() + " "); |
140,190 | public void release() {<NEW_LINE>Log.i(TAG, "Release " + Integer.toHexString(System.identityHashCode(this)) + " [" + ExoPlayerLibraryInfo.VERSION_SLASHY + "] [" + Util.DEVICE_DEBUG_INFO + "] [" + ExoPlayerLibraryInfo.registeredModules() + "]");<NEW_LINE>verifyApplicationThread();<NEW_LINE>if (Util.SDK_INT < 21 && keepS... | playbackInfo.copyWithPlaybackState(Player.STATE_IDLE); |
1,135,199 | private CompletableFuture<AcknowledgedResponse> publishTableStats(Map<RelationName, Stats> newTableStats) {<NEW_LINE>List<DiscoveryNode> nodesOn41OrAfter = StreamSupport.stream(clusterService.state().nodes().spliterator(), false).filter(x -> x.getVersion().onOrAfter(Version.V_4_1_0)).collect(Collectors.toList());<NEW_L... | , AcknowledgedResponse>(x -> x); |
637,623 | private void sendMetrics() {<NEW_LINE>synchronized (LOCK) {<NEW_LINE>for (Map.Entry<String, SamplerMetric> entry : metricsPerSampler.entrySet()) {<NEW_LINE>SamplerMetric metric = entry.getValue();<NEW_LINE>if (entry.getKey().equals(CUMULATED_METRICS)) {<NEW_LINE>addCumulatedMetrics(metric);<NEW_LINE>} else {<NEW_LINE>a... | ()).append(','); |
1,614,457 | protected <T> T doFindOne(String collectionName, Document query, Document fields, CursorPreparer preparer, Class<T> entityClass) {<NEW_LINE>MongoPersistentEntity<?> entity = mappingContext.getPersistentEntity(entityClass);<NEW_LINE>QueryContext queryContext = queryOperations.createQueryContext(<MASK><NEW_LINE>Document ... | new BasicQuery(query, fields)); |
1,171,473 | private void initLangInfoLink() {<NEW_LINE>if (mLangInfoLink != null) {<NEW_LINE>Spannable link = new SpannableString(getString(R.string.prefs_languages_information_off_link));<NEW_LINE>link.setSpan(new ForegroundColorSpan(ContextCompat.getColor(getContext(), UiUtils.getStyledResourceId(getContext(), R.attr.colorAccent... | getString(R.string.tts_info_link); |
536,275 | public void positionStmtsAfterEnumInitStmts(List<Statement> staticFieldStatements) {<NEW_LINE>MethodNode method = getOrAddStaticConstructorNode();<NEW_LINE>Statement statement = method.getCode();<NEW_LINE>if (statement instanceof BlockStatement) {<NEW_LINE>BlockStatement block = (BlockStatement) statement;<NEW_LINE>// ... | > blockStatements = block.getStatements(); |
1,633,800 | private ByteBuffer serialize() {<NEW_LINE>final ByteBuffer buffer;<NEW_LINE>int bufferSize = 8 + 4 + 1 + 8 + 4 + 4;<NEW_LINE>if (txMetadata != null) {<NEW_LINE>bufferSize += txMetadata.length;<NEW_LINE>}<NEW_LINE>final byte[] openedAtVersionRaw;<NEW_LINE>if (openedAtVersion != null) {<NEW_LINE>openedAtVersionRaw = open... | capacity() - 8, XX_HASH_SEED); |
1,306,476 | public void writeQuad(float x, float y, float z, int color, float u, float v, int light, int overlay, int normal) {<NEW_LINE>int i = this.writeOffset;<NEW_LINE>ByteBuffer buffer = this.byteBuffer;<NEW_LINE>vertexCount++;<NEW_LINE>midU += u;<NEW_LINE>midV += v;<NEW_LINE>buffer.putFloat(i, x);<NEW_LINE>buffer.putFloat(i ... | putInt(i + 32, normal); |
809,995 | public void generic(Request request, StreamObserver<Response> responseObserver) {<NEW_LINE>SofaRequest sofaRequest = TracingContextKey.getKeySofaRequest().get(Context.current());<NEW_LINE>String methodName = sofaRequest.getMethodName();<NEW_LINE>String interfaceName = sofaRequest.getInterfaceName();<NEW_LINE>ClassLoade... | getInvokeArgs(request, argTypes, serializer); |
1,396,551 | public static void debugKrb5LoginModule(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) {<NEW_LINE>String NULL = "null";<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "Krb5LoginModule ==> ", " subject: " + (subject == null ? NULL : subject.toString... | + ": " + getSystemProperty(KRB5_KTNAME)); |
1,189,911 | public CommitEntity saveCommitEntity(Session session, Commit commit, String rootSha, String author, RepositoryEntity repositoryEntity) throws ModelDBException, NoSuchAlgorithmException {<NEW_LINE>long timeCreated = new Date().getTime();<NEW_LINE>if (commit.getDateCreated() != 0L) {<NEW_LINE>timeCreated = commit.getDate... | commit.getParentShas(index))); |
714,102 | private void openSession() throws SQLException {<NEW_LINE>TSOpenSessionReq openReq = new TSOpenSessionReq();<NEW_LINE>openReq.setUsername(params.getUsername());<NEW_LINE>openReq.<MASK><NEW_LINE>openReq.setZoneId(getTimeZone());<NEW_LINE>openReq.putToConfiguration("version", params.getVersion().toString());<NEW_LINE>TSO... | setPassword(params.getPassword()); |
823,200 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent permanent = game.getPermanentOrLKIBattlefield(source.getSourceId());<NEW_LINE>if (controller != null && permanent != null) {<NEW_LINE>new AddCountersSourceEffect(CounterType.WAGE.c... | Target target = new TargetOpponent(true); |
27,631 | public void adjustAllBy(long offset) {<NEW_LINE>// fix up the timers<NEW_LINE>synchronized (this) {<NEW_LINE>// as we're adjusting all events by the same amount the ordering remains valid<NEW_LINE>Iterator<TimerEvent> it = events.iterator();<NEW_LINE>boolean resort = false;<NEW_LINE>while (it.hasNext()) {<NEW_LINE>Time... | long old_when = event.getWhen(); |
810,538 | private boolean handleWRegModification(Instruction instr) {<NEW_LINE>String mnemonic = instr.getMnemonicString();<NEW_LINE>boolean modUnknown = false;<NEW_LINE>if ("CLRW".equals(mnemonic)) {<NEW_LINE>wContext.setValueAt(instr, 0, false);<NEW_LINE>return true;<NEW_LINE>} else if ("MOVLW".equals(mnemonic)) {<NEW_LINE>Sca... | s = instr.getScalar(0); |
649,038 | public Response requestFileAccess(@PathParam("id") String fileToRequestAccessId, @Context HttpHeaders headers) {<NEW_LINE>DataverseRequest dataverseRequest;<NEW_LINE>DataFile dataFile;<NEW_LINE>try {<NEW_LINE>dataFile = findDataFileOrDie(fileToRequestAccessId);<NEW_LINE>} catch (WrappedResponse ex) {<NEW_LINE>List<Stri... | args = Arrays.asList(fileToRequestAccessId); |
1,092,015 | public UsageTotal unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UsageTotal usageTotal = new UsageTotal();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso... | class).unmarshall(context)); |
641,749 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>// Inflate the layout for this fragment<NEW_LINE>View root = inflater.inflate(R.layout.fragment_itunes_search, container, false);<NEW_LINE>root.findViewById(R.id.spinner_country).setVisibility(INVISIBLE);<NEW_LI... | ).getSystemService(Context.INPUT_METHOD_SERVICE); |
1,051,633 | public JSONObject jsonSerialize() {<NEW_LINE>JSONObject json = new JSONObject();<NEW_LINE>JsonUtil.put(json, KEY_REQUEST, request.jsonSerialize());<NEW_LINE>JsonUtil.put(json, PARAM_CLIENT_ID, clientId);<NEW_LINE>JsonUtil.putIfNotNull(json, PARAM_CLIENT_ID_ISSUED_AT, clientIdIssuedAt);<NEW_LINE>JsonUtil.putIfNotNull(js... | , JsonUtil.mapToJsonObject(additionalParameters)); |
971,837 | public Request<GetCoipPoolUsageRequest> marshall(GetCoipPoolUsageRequest getCoipPoolUsageRequest) {<NEW_LINE>if (getCoipPoolUsageRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<GetCoipPoolUsageRequest> request = new DefaultRequest<GetCoip... | (getCoipPoolUsageRequestFiltersListValue.getName())); |
1,391,847 | protected Control createDialogArea(Composite parent) {<NEW_LINE>setTitle("Select Deployment Manifest for project '" + model.getProjectName() + "'");<NEW_LINE>Composite container = (Composite) super.createDialogArea(parent);<NEW_LINE>final Composite composite = new Composite(container, parent.getStyle());<NEW_LINE>compo... | ValidationResult result = exp.getValue(); |
216,862 | protected void loadNewOptionHandler(LookupField component, Element element) {<NEW_LINE>String <MASK><NEW_LINE>if (StringUtils.isNotEmpty(newOptionAllowed)) {<NEW_LINE>component.setNewOptionAllowed(Boolean.parseBoolean(newOptionAllowed));<NEW_LINE>}<NEW_LINE>String newOptionHandlerMethod = element.attributeValue("newOpt... | newOptionAllowed = element.attributeValue("newOptionAllowed"); |
1,015,077 | private static void linearizeInner(CFG cfg, List<BasicBlock> list, BitSet processed, BasicBlock current) {<NEW_LINE>if (processed.get(current.getID()))<NEW_LINE>return;<NEW_LINE>// Cannot lay out current block till its fall-through predecessor has been laid out already<NEW_LINE>BasicBlock source = cfg.getIncomingSource... | cfg, list, processed, destination); |
1,593,874 | public void bindChat(long chatId) {<NEW_LINE>log(<MASK><NEW_LINE>mLastChatId = chatId;<NEW_LINE>Uri contactUri = ContentUris.withAppendedId(Imps.Contacts.CONTENT_URI, chatId);<NEW_LINE>Cursor c = mNewChatActivity.getContentResolver().query(contactUri, CHAT_PROJECTION, null, null, null);<NEW_LINE>if (c == null)<NEW_LINE... | "bind " + this + " " + chatId); |
474,083 | public boolean onKeyDown(int keyCode, KeyEvent event) {<NEW_LINE>switch(keyCode) {<NEW_LINE>case KeyEvent.KEYCODE_BACK:<NEW_LINE>if (audioRecorder.isRecording() && !backgroundAudioViewModel.isBackgroundRecording()) {<NEW_LINE>// We want the user to stop recording before changing screens<NEW_LINE>DialogFragmentUtils.sho... | super.onKeyDown(keyCode, event); |
9,114 | public CmdDesc commandDescription(List<String> args) {<NEW_LINE>CommandLine sub = findSubcommandLine(args, args.size());<NEW_LINE>if (sub == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>CommandSpec spec = sub.getCommandSpec();<NEW_LINE>Help cmdhelp = new picocli.CommandLine.Help(spec);<NEW_LINE>List<AttributedStri... | options = new HashMap<>(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.