idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
789,658 | final ListRateBasedRulesResult executeListRateBasedRules(ListRateBasedRulesRequest listRateBasedRulesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRateBasedRulesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.SERVICE_ID, "WAF"); |
308,828 | public void testJsonbDemo() throws Exception {<NEW_LINE>// Convert Java Object --> JSON<NEW_LINE>Team zombies = new Team();<NEW_LINE>zombies.name = "Zombies";<NEW_LINE>zombies.size = 9;<NEW_LINE>zombies.winLossRatio = 0.85f;<NEW_LINE>Jsonb jsonb = JsonbProvider.provider().create().build();<NEW_LINE>String teamJson = js... | (teamJson.contains("\"size\":9")); |
1,151,603 | private static void validateAndFormatExpression(Symbol function, AnalyzedColumnDefinition<Symbol> columnDefinitionWithExpressionSymbols, AnalyzedColumnDefinition<Object> columnDefinitionEvaluated, Consumer<String> formattedExpressionConsumer) {<NEW_LINE>String formattedExpression;<NEW_LINE>DataType<?> valueType = funct... | , columnDataType.getName())); |
1,681,254 | public void init() {<NEW_LINE>if (configurationWrapper != null) {<NEW_LINE>eventMeshEnv = checkNotEmpty(ConfKeys.KEYS_EVENTMESH_ENV);<NEW_LINE>sysID = checkNumeric(ConfKeys.KEYS_EVENTMESH_SYSID);<NEW_LINE>eventMeshCluster = checkNotEmpty(ConfKeys.KEYS_EVENTMESH_SERVER_CLUSTER);<NEW_LINE>eventMeshName = checkNotEmpty(Co... | configurationWrapper.getProp(ConfKeys.KEYS_EVENTMESH_METRICS_PLUGIN_TYPE); |
1,517,519 | public GetVaultLockResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetVaultLockResult getVaultLockResult = new GetVaultLockResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken t... | int originalDepth = context.getCurrentDepth(); |
1,300,452 | public static GetEntityListResponse unmarshall(GetEntityListResponse getEntityListResponse, UnmarshallerContext context) {<NEW_LINE>getEntityListResponse.setRequestId(context.stringValue("GetEntityListResponse.requestId"));<NEW_LINE>getEntityListResponse.setCode(context.stringValue("GetEntityListResponse.Code"));<NEW_L... | ("GetEntityListResponse.Data.List[" + i + "].InstanceName")); |
984,752 | public static void createDomain(File location, String domainName, String username, String adminPassword, String masterPassword, String httpPort, String httpsPort, String adminPort, String domainProperties) throws IOException {<NEW_LINE>final File passwordFile = <MASK><NEW_LINE>if (passwordFile == null) {<NEW_LINE>throw... | createPasswordFile(adminPassword, masterPassword, location); |
915,700 | public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>long n = cursor.skip();<NEW_LINE>if (n < Integer.MAX_VALUE) {<NEW_LINE>return new Integer((int) n);<NEW_LINE>} else {<NEW_LINE>return new Long(n);<NEW_LINE>}<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object obj = param.getLeafExpression(... | sub = param.getSub(1); |
34,191 | public void validate(ValidationHelper helper, Context context, String key, Paths t) {<NEW_LINE>if (t != null) {<NEW_LINE>boolean mapContainsInvalidKey = false;<NEW_LINE>for (String path : t.keySet()) {<NEW_LINE>if (path != null && !path.isEmpty()) {<NEW_LINE>if (!path.startsWith("/")) {<NEW_LINE>final String message = ... | Tr.formatMessage(tc, "nullOrEmptyKeyInMap"); |
136,440 | // for filling in the text of a mention<NEW_LINE>public String tokenRangeToString(Pair<Integer, Integer> tokenRange) {<NEW_LINE>List<CoreLabel> tokens = doc.get(CoreAnnotations.TokensAnnotation.class);<NEW_LINE>// see if the token range matches an entity mention<NEW_LINE>List<CoreMap> entityMentionsInDoc = doc.get(Core... | .second).endPosition()); |
1,824,554 | private boolean areThereNewFiles(final File installLocation) throws IOException {<NEW_LINE>LogManager.log("areThereNewFiles: location " + installLocation);<NEW_LINE>Set<File> installedFiles = new HashSet<File>();<NEW_LINE>Set<File> existentFilesList = FileUtils.getRecursiveFileSet(installLocation);<NEW_LINE>for (Produ... | > eflIterator = existentFilesList.iterator(); |
1,090,178 | protected boolean handleProcess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) throws LayerGenerationException {<NEW_LINE>for (Element e : roundEnv.getElementsAnnotatedWith(VersioningSystem.Registration.class)) {<NEW_LINE>Registration a = e.getAnnotation(VersioningSystem.Registration.class);<NEW_LIN... | "actionsCategory", a.actionsCategory()); |
970,245 | public static String identifyVM() {<NEW_LINE>SystemInfo si = new SystemInfo();<NEW_LINE>HardwareAbstractionLayer hw = si.getHardware();<NEW_LINE>// Check CPU Vendor<NEW_LINE>String vendor = hw.getProcessor().getProcessorIdentifier().getVendor().trim();<NEW_LINE>if (vmVendor.containsKey(vendor)) {<NEW_LINE>return vmVend... | .getComputerSystem().getManufacturer(); |
582,786 | private String delta(long time) {<NEW_LINE>// FIXME: a formatter can probably do this.<NEW_LINE>Period period = new Period(time, System.currentTimeMillis());<NEW_LINE>ArrayList<String> parts = new ArrayList<String>();<NEW_LINE>int years = period.getYears();<NEW_LINE>if (years > 0) {<NEW_LINE>parts.add(years + " year" +... | int millis = period.getMillis(); |
416,340 | public DeregisterTaskDefinitionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeregisterTaskDefinitionResult deregisterTaskDefinitionResult = new DeregisterTaskDefinitionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu... | ().unmarshall(context)); |
215,950 | public Map<String, Object> props() {<NEW_LINE>Map<String, Object> props = new LinkedHashMap<>();<NEW_LINE>applyTemplates(props, getResolvedExtraProperties());<NEW_LINE>props.put(KEY_DISTRIBUTION_NAME, name);<NEW_LINE>props.put(KEY_DISTRIBUTION_EXECUTABLE, executable.getName());<NEW_LINE>props.put(KEY_DISTRIBUTION_EXECU... | getTag(), props, true); |
840,558 | public void endpointProxy(@PathVariable("instanceId") String instanceId, HttpServletRequest servletRequest, HttpServletResponse servletResponse) {<NEW_LINE>ServletServerHttpRequest request = new ServletServerHttpRequest(servletRequest);<NEW_LINE>Flux<DataBuffer> requestBody = DataBufferUtils.readInputStream(request::ge... | , responseBody)).then(); |
764,789 | void addNestedLink(StoredEntry linkedEntry, String dstName, StoredEntry nestedEntry, long nestedOffset, boolean dummy) throws IOException {<NEW_LINE>Preconditions.checkArgument(linkedEntry != null, "linkedEntry is null");<NEW_LINE>Preconditions.checkArgument(linkedEntry.getCentralDirectoryHeader().<MASK><NEW_LINE>Preco... | getOffset() < 0, "linkedEntry is not new file"); |
1,708,028 | protected Undertow createServer(HttpHandler contextHandler) {<NEW_LINE>Builder builder = Undertow.builder();<NEW_LINE>// TODO is it a better option?<NEW_LINE>if (getSettings().getBufferSize() > 0) {<NEW_LINE>builder.setBufferSize(getSettings().getBufferSize());<NEW_LINE>}<NEW_LINE>// method builder.setBuffersPerRegion ... | ).getHost(), sslContext); |
348,711 | final DescribeClientVpnConnectionsResult executeDescribeClientVpnConnections(DescribeClientVpnConnectionsRequest describeClientVpnConnectionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeClientVpnConnectionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | invoke(request, responseHandler, executionContext); |
172,593 | public static boolean deleteOldTemporaryFiles(Context context) {<NEW_LINE>File tempDirectory = getDecryptedTempDirectory(context);<NEW_LINE>boolean allFilesDeleted = true;<NEW_LINE>long deletionThreshold = System.currentTimeMillis() - FILE_DELETE_THRESHOLD_MILLISECONDS;<NEW_LINE>for (File tempFile : tempDirectory.listF... | Timber.e("Not deleting temp file (for another %s minutes)", timeLeftStr); |
817,506 | public static void validateAnnouncers(JReleaserContext context, JReleaserContext.Mode mode, Errors errors) {<NEW_LINE>if (!mode.validateConfig()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>context.getLogger().debug("announce");<NEW_LINE>Announce announce = context.getModel().getAnnounce();<NEW_LINE>validateArticle(context,... | announce.getConfiguredWebhooks(), errors); |
1,484,123 | public GeckoResult<AllowOrDeny> onLoadRequest(GeckoSession aSession, @NonNull LoadRequest aRequest) {<NEW_LINE>final GeckoResult<AllowOrDeny> <MASK><NEW_LINE>Uri uri = Uri.parse(aRequest.uri);<NEW_LINE>if (UrlUtils.isAboutPage(uri.toString())) {<NEW_LINE>if (UrlUtils.isBookmarksUrl(uri.toString())) {<NEW_LINE>showPanel... | result = new GeckoResult<>(); |
28,872 | synchronized public boolean is_winning_candidate(OptimizeRouteTask task) {<NEW_LINE>++num_tasks_finished;<NEW_LINE>ItemRouteResult r = task.getRouteResult();<NEW_LINE>result_map.put(<MASK><NEW_LINE>boolean won = false;<NEW_LINE>if (r.improved()) {<NEW_LINE>if (winning_candidate == null) {<NEW_LINE>won = true;<NEW_LINE>... | r.item_id(), r); |
1,056,696 | private Iterator<E> iterator(int size) {<NEW_LINE>checkClosed();<NEW_LINE>int memSize = memory.size();<NEW_LINE>// Constructing an iterator from this class is not thread-safe (just<NEW_LINE>// like all the the other methods)<NEW_LINE>if (!finishedAdding && memSize > 1) {<NEW_LINE>E[] array = (E[]) memory.toArray();<NEW... | add(memory.iterator()); |
1,260,167 | public ErrorReason unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ErrorReason errorReason = new ErrorReason();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentTok... | int originalDepth = context.getCurrentDepth(); |
1,709,001 | public int compareTo(combined_filter_result other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).<MASK><NEW_LINE>if (lastCo... | compareTo(other.isSetSuccess()); |
606,160 | private void insertJobSpec(@NonNull SQLiteDatabase db, @NonNull JobSpec job) {<NEW_LINE>if (job.isMemoryOnly()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ContentValues contentValues = new ContentValues();<NEW_LINE>contentValues.put(Jobs.JOB_SPEC_ID, job.getId());<NEW_LINE>contentValues.put(Jobs.FACTORY_KEY, job.getFactory... | MAX_ATTEMPTS, job.getMaxAttempts()); |
1,388,312 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
506,009 | public static Options buildOptions() {<NEW_LINE>Options options = new Options();<NEW_LINE>options.addOption(// Allows for 2 arguments without both being required<NEW_LINE>Option.builder("q").required(true).longOpt("query").// Allows for 2 arguments without both being required<NEW_LINE>numberOfArgs(Option.UNLIMITED_VALU... | ("Paths for table data in CSV format. File names should be formatted as \"[dataset].[table].csv\".").build()); |
596,391 | private static List<FileEntriesLayer> createLayersForLayeredSpringBootJar(Path localExplodedJarRoot) throws IOException {<NEW_LINE>Path layerIndexPath = localExplodedJarRoot.resolve(BOOT_INF).resolve("layers.idx");<NEW_LINE>Pattern <MASK><NEW_LINE>Pattern layerEntryPattern = Pattern.compile(" - \"(.*)\"");<NEW_LINE>Ma... | layerNamePattern = Pattern.compile("- \"(.*)\":"); |
830,585 | public ListTrackerConsumersResult listTrackerConsumers(ListTrackerConsumersRequest listTrackerConsumersRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTrackerConsumersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executio... | invoke(request, responseHandler, executionContext); |
927,365 | protected void populateShell() {<NEW_LINE>Display currentDisplay = Display.getCurrent();<NEW_LINE>Shell parent = currentDisplay != null ? currentDisplay.getActiveShell() : null;<NEW_LINE>shell = new Shell(parent, SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM);<NEW_LINE>shell.setText(Labels.getLabel("title.favorite.edit"));<N... | Button(shell, SWT.NONE); |
1,097,735 | public void findNodeReply(DHTTransportContact _contact, DHTTransportContact[] _contacts) {<NEW_LINE>anti_spoof_done.add(_contact);<NEW_LINE>try {<NEW_LINE>// System.out.println( "cacheForward: pre-store findNode OK" );<NEW_LINE>List<HashWrapper> keys = (List<HashWrapper>) data[1];<NEW_LINE>byte[][] store_keys = new byt... | DHTTransportValue[values.size()]; |
1,193,185 | private void mergePluginFilesFromDir(final CommandConsole console, String sourcePath, String targetPath) {<NEW_LINE>console.printlnInfoMessage(getMessage("MergePluginFilesTask.merging.plugin.dir", sourcePath));<NEW_LINE>File sourcePathFile = new File(sourcePath);<NEW_LINE>if (!sourcePathFile.exists()) {<NEW_LINE>abort(... | (getMessage("MergePluginFilesTask.merging.plugin.target.file.generating", targetPath)); |
589,243 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>attributionColors = new int[] { // a runtime app UI color<NEW_LINE>Color.RED, // a runtime app UI color<NEW_LINE>Color.BLUE, // a runtime app UI color<NEW_LINE>Color.YELLOW, // a runtime app UI color<NEW_LINE>Context... | , Color.parseColor("#1e7019") }; |
1,146,747 | public static APIUpdateVolumeEvent __example__() {<NEW_LINE>APIUpdateVolumeEvent event = new APIUpdateVolumeEvent();<NEW_LINE>String volumeUuid = uuid();<NEW_LINE>VolumeInventory vol = new VolumeInventory();<NEW_LINE>vol.setName("test-volume");<NEW_LINE>vol.setCreateDate(new Timestamp(org.zstack.header.message.DocUtils... | VolumeState.Enabled.toString()); |
676,835 | private void createZoneAcls(Configuration c) {<NEW_LINE>// Mapping: zoneName -> (MatchSrcInterface for interfaces in zone)<NEW_LINE>Map<String, MatchSrcInterface> matchSrcInterfaceBySrcZone = toImmutableMap(c.getZones(), Entry::getKey, zoneByNameEntry -> new MatchSrcInterface(zoneByNameEntry.getValue().getInterfaces())... | .getName(), acl)); |
779,412 | private void readJSONEncodedItem(String key, SharedPreferences prefs, ReadableArguments options, Promise promise) {<NEW_LINE>String encryptedItemString = prefs.getString(key, null);<NEW_LINE>JSONObject encryptedItem;<NEW_LINE>try {<NEW_LINE>encryptedItem = new JSONObject(encryptedItemString);<NEW_LINE>} catch (JSONExce... | , key, encryptedItemString), e); |
1,151,084 | public static QueryDynamicGroupDevicesResponse unmarshall(QueryDynamicGroupDevicesResponse queryDynamicGroupDevicesResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryDynamicGroupDevicesResponse.setRequestId(_ctx.stringValue("QueryDynamicGroupDevicesResponse.RequestId"));<NEW_LINE>queryDynamicGroupDevicesResponse.setSu... | ("QueryDynamicGroupDevicesResponse.Data[" + i + "].ProductName")); |
737,103 | private void handleRestEndpointGroup(Node node, BeanDefinitionBuilder builder, ManagedSet<RestEndpointGroup> groupSet) {<NEW_LINE>for (Node child : childElements(node)) {<NEW_LINE>String nodeName = cleanNodeName(child);<NEW_LINE>if ("endpoint-group".equals(nodeName)) {<NEW_LINE><MASK><NEW_LINE>Node attrEnabled = attrib... | NamedNodeMap attributes = child.getAttributes(); |
808,576 | public static Map<String, Object> encodeRuleDescriptionToMap(RuleDescription ruleDescription) {<NEW_LINE>HashMap<String, Object> descriptionMap = new HashMap<>();<NEW_LINE>if (ruleDescription.getFilter() instanceof SqlFilter) {<NEW_LINE>HashMap<String, Object> filterMap = new HashMap<>();<NEW_LINE>filterMap.put(ClientC... | REQUEST_RESPONSE_SESSION_ID, correlationFilter.getSessionId()); |
1,794,158 | private Object script(EffectivePerson effectivePerson, Business business, Statement statement, Runtime runtime, String mode) throws Exception {<NEW_LINE>Object data = null;<NEW_LINE>ScriptContext scriptContext = this.scriptContext(effectivePerson, runtime);<NEW_LINE><MASK><NEW_LINE>if (Statement.MODE_COUNT.equals(mode)... | String scriptText = statement.getScriptText(); |
1,566,222 | private boolean processHeartbeatMessage(Msg msg) {<NEW_LINE>// Get the remote heartbeat TTL to setup the timer<NEW_LINE>int remoteHeartbeatTtl = msg.getShort(5);<NEW_LINE>// The remote heartbeat is in 10ths of a second<NEW_LINE>// so we multiply it by 100 to get the timer interval in ms.<NEW_LINE>remoteHeartbeatTtl *= ... | = msg.size() - 7; |
1,669,911 | private void sendItems(Filter filter, OutputStream out, PropagationMode propagationMode, boolean sendLocation) throws IOException {<NEW_LINE>ContextBootstrap.debug(MessageID.PROPAGATION_STARTED, "Outgoing");<NEW_LINE>SimpleMap map = getMapIfItExists();<NEW_LINE>if (map != null) {<NEW_LINE>ContextBootstrap.debug(Message... | > mapEntry = items.next(); |
882,119 | public static QueryTransferInListResponse unmarshall(QueryTransferInListResponse queryTransferInListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryTransferInListResponse.setRequestId(_ctx.stringValue("QueryTransferInListResponse.RequestId"));<NEW_LINE>queryTransferInListResponse.setTotalItemNum(_ctx.integerValue("... | ("QueryTransferInListResponse.Data[" + i + "].UserId")); |
1,492,426 | public static IpRangeInventory fromMessage(APIAddIpv6RangeByNetworkCidrMsg msg) {<NEW_LINE>IpRangeInventory ipr = new IpRangeInventory();<NEW_LINE>ipr.setNetworkCidr(IPv6NetworkUtils.getFormalCidrOfNetworkCidr(msg.getNetworkCidr()));<NEW_LINE>ipr.setName(msg.getName());<NEW_LINE>ipr.setDescription(msg.getDescription())... | (msg.getNetworkCidr())); |
1,628,311 | private void initFunctionConsumerOrSupplierFromCatalog(Object targetContext) {<NEW_LINE>String name = resolveName(Function.class, targetContext);<NEW_LINE>this.function = this.catalog.lookup(Function.class, name);<NEW_LINE>if (this.function != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>name = resolveName(Consumer.cla... | .orElseGet(() -> null); |
209,118 | // ------- RDF collections<NEW_LINE>final public Node Collection(TripleCollectorMark acc) throws ParseException {<NEW_LINE>Node listHead = nRDFnil;<NEW_LINE>Node lastCell = null;<NEW_LINE>int mark;<NEW_LINE>Node n;<NEW_LINE>Token t;<NEW_LINE>t = jj_consume_token(LPAREN);<NEW_LINE>label_15: while (true) {<NEW_LINE>Node ... | acc, lastCell, nRDFrest, cell); |
553,842 | private void renderInitializer(PreparedMethod method) throws IOException {<NEW_LINE>MethodReference ref = method.reference;<NEW_LINE>debugEmitter.emitMethod(ref.getDescriptor());<NEW_LINE>ScopedName name = naming.getNameForInit(ref);<NEW_LINE>renderFunctionDeclaration(name);<NEW_LINE>writer.append("(");<NEW_LINE>for (i... | .softNewLine().indent(); |
803,787 | private void cleanWorkflowTaskStatus(final String contentTypeInode, final List<WorkflowStep> steps, final Consumer<WorkflowTask> workflowTaskConsumer) throws DotDataException {<NEW_LINE>try {<NEW_LINE>String condition = "";<NEW_LINE>if (steps.size() > 0) {<NEW_LINE>condition = " and status not in (";<NEW_LINE>StringBui... | loadObjectResults(), WorkflowTask.class); |
1,113,523 | private void computeImplementsMaps() {<NEW_LINE>// Construct the immediate supertype relation.<NEW_LINE>Multimap<String, String<MASK><NEW_LINE>superTypesByType.putAll(immediateTypeRelations.immediateImplementedInterfacesByClass);<NEW_LINE>superTypesByType.putAll(Multimaps.forMap(immediateTypeRelations.immediateSupercla... | > superTypesByType = HashMultimap.create(); |
334,194 | private void processComponent(ServletContext sc, Element documentElement, NodeList component, TagLibraryImpl taglibrary, String name) {<NEW_LINE>if (component != null && component.getLength() > 0) {<NEW_LINE>String componentType = null;<NEW_LINE>String rendererType = null;<NEW_LINE>String handlerClass = null;<NEW_LINE>... | documentElement, resourceId, taglibrary, name); |
458,732 | private void generateStepExecutionEntry(Long executionId, Long dummyTopLevelStepExecId, BatchStatus batchStatus, String exitStatus) throws Exception {<NEW_LINE>long stepExecutionId = -1L;<NEW_LINE>Connection conn = null;<NEW_LINE>PreparedStatement statement = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>long time = Sys... | stepExecutionId = rs.getLong(1); |
1,789,424 | final GetRecoveryGroupReadinessSummaryResult executeGetRecoveryGroupReadinessSummary(GetRecoveryGroupReadinessSummaryRequest getRecoveryGroupReadinessSummaryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRecoveryGroupReadinessSummaryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
766,947 | private JPanel initDateRangeQuerySettingsPanel() {<NEW_LINE>JPanel panel = new JPanel();<NEW_LINE>panel.setOpaque(false);<NEW_LINE>panel.setLayout(new BoxLayout(panel, BoxLayout.PAGE_AXIS));<NEW_LINE>JPanel header = new JPanel(<MASK><NEW_LINE>header.setOpaque(false);<NEW_LINE>header.add(new JLabel(MessageUtils.getLocal... | new FlowLayout(FlowLayout.LEADING)); |
9,107 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String path0, String path1, String path2, String path3, String path4, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Work work = null;<NEW_LINE>try (EntityManagerContainer emc = EntityMana... | ).getData(Wo.class); |
785,153 | public SegmentWithData peek(final CellRequest request) {<NEW_LINE>final SegmentCacheManager.PeekResponse response = execute(new PeekCommand(request, Locus.peek()));<NEW_LINE>for (SegmentHeader header : response.headerMap.keySet()) {<NEW_LINE>final SegmentBody body = compositeCache.get(header);<NEW_LINE>if (body != null... | converter.convert(header, body); |
394,027 | public void writeScriptUrls(AuraContext context, BaseComponentDef def, Map<String, Object> componentAttributes, StringBuilder sb) throws QuickFixException, IOException {<NEW_LINE>templateUtil.writeHtmlScripts(context, this.getJsClientLibraryUrls(context), Script.LAZY, sb);<NEW_LINE>if (cspInliningService.getInlineMode(... | ), Script.SYNC, sb); |
126,974 | public static DiffString concatenate(@Nonnull DiffString s1, @Nonnull DiffString s2) {<NEW_LINE>if (s1.isEmpty())<NEW_LINE>return s2;<NEW_LINE>if (s2.isEmpty())<NEW_LINE>return s1;<NEW_LINE>if (s1.myData == s2.myData && s1.myStart + s1.myLength == s2.myStart) {<NEW_LINE>return create(s1.myData, s1.myStart, <MASK><NEW_L... | s1.myLength + s2.myLength); |
1,150,263 | public static ListRepositoryMemberResponse unmarshall(ListRepositoryMemberResponse listRepositoryMemberResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRepositoryMemberResponse.setRequestId(_ctx.stringValue("ListRepositoryMemberResponse.RequestId"));<NEW_LINE>listRepositoryMemberResponse.setErrorCode(_ctx.stringValue... | = new ArrayList<ResultItem>(); |
1,670,189 | public void dataTypeRenamed(DataTypeManager dtm, DataTypePath oldPath, DataTypePath newPath) {<NEW_LINE>DataTypeManager originalDTM = getOriginalDataTypeManager();<NEW_LINE>if (dtm != originalDTM) {<NEW_LINE>// Different DTM than the one for this data type.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!isLoaded()) {<NEW_LI... | e.getMessage(), e); |
746,005 | private static void callShowWarning(PythonContext context, Object category, Object text, Object message, Object filename, int lineno, Object sourceline, Object sourceIn) {<NEW_LINE>PRaiseNode raise = PRaiseNode.getUncached();<NEW_LINE>Object showFn = getWarningsAttr(context, "_showwarnmsg", sourceIn != null);<NEW_LINE>... | getWarningsAttr(context, "WarningMessage", false); |
380,639 | public Map<String, Object> buildHiveReader() {<NEW_LINE>DataxHivePojo dataxHivePojo = new DataxHivePojo();<NEW_LINE>dataxHivePojo.setJdbcDatasource(readerDatasource);<NEW_LINE>List<Map<String, Object>> columns = Lists.newArrayList();<NEW_LINE>readerColumns.forEach(c -> {<NEW_LINE>Map<String, Object> column = Maps.newLi... | setReaderPath(hiveReaderDto.getReaderPath()); |
816,167 | private String addDefaultWorkflowScheme(DotConnect dc) throws DotDataException, SQLException {<NEW_LINE>String schemeID = UUIDGenerator.generateUuid();<NEW_LINE>dc.setSQL("SELECT id FROM workflow_scheme WHERE name = 'Default Scheme'");<NEW_LINE>List<Map<String, String>> results = null;<NEW_LINE>results = dc.loadResults... | ) + " where id = '" + schemeID + "' "); |
636,861 | public void onItemClick(AdapterView<?> parent, View view, int position, long id) {<NEW_LINE>TextView textView = (TextView) view.findViewById(R.id.autoCompleteScreenName);<NEW_LINE>if (textView == null) {<NEW_LINE>textView = (TextView) view.findViewById(R.id.autoCompleteHashtag);<NEW_LINE>}<NEW_LINE>String autoCompleteT... | autoCompleteStart + autoCompleteText.length()); |
446,365 | private static MPrintFormat copy(Properties ctx, int from_AD_PrintFormat_ID, int to_AD_PrintFormat_ID, int to_Client_ID) {<NEW_LINE>MClient company = MClient.get(ctx);<NEW_LINE>s_log.info("From AD_PrintFormat_ID=" + from_AD_PrintFormat_ID + ", To AD_PrintFormat_ID=" + to_AD_PrintFormat_ID + ", To Client_ID=" + to_Clien... | MPrintFormat.copyValues(from, to); |
1,306,480 | public Set<ByteArrayWrapper> keys() {<NEW_LINE>Stream<ByteArrayWrapper> baseKeys;<NEW_LINE>Stream<ByteArrayWrapper> committedKeys;<NEW_LINE>Stream<ByteArrayWrapper> uncommittedKeys;<NEW_LINE>Set<ByteArrayWrapper> uncommittedKeysToRemove;<NEW_LINE>this.lock.readLock().lock();<NEW_LINE>try {<NEW_LINE>baseKeys = base.keys... | .toCollection(HashSet::new)); |
213,114 | public boolean readCoordinates() throws IOException {<NEW_LINE>while (true) {<NEW_LINE>// Write a prompt<NEW_LINE>System.out.print("\nTarget x,y\n> ");<NEW_LINE>String inputLine = reader.readLine();<NEW_LINE>if (inputLine == null) {<NEW_LINE>// If the input stream is ended, there is no way to continue the game<NEW_LINE... | [c].strip()); |
590,017 | public static SelectInContext createContext(AnActionEvent event) {<NEW_LINE>DataContext dataContext = event.getDataContext();<NEW_LINE>SelectInContext result = createEditorContext(dataContext);<NEW_LINE>if (result != null) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>JComponent sourceComponent = getEventComponent(even... | dataContext.getData(PlatformDataKeys.NAVIGATABLE); |
376,623 | public CodegenExpression make(CodegenMethodScope parent, CodegenClassScope classScope) {<NEW_LINE>CodegenMethod method = parent.makeChild(TimerScheduleSpecComputeFromExpr.EPTYPE, <MASK><NEW_LINE>method.getBlock().declareVarNewInstance(TimerScheduleSpecComputeFromExpr.EPTYPE, "compute").exprDotMethod(ref("compute"), "se... | this.getClass(), classScope); |
97,956 | public void updatePointData(WptPt pt, double lat, double lon, long time, String description, String name, String category, int color, String iconName, String iconBackground) {<NEW_LINE>currentTrack.getModifiableGpxFile().modifiedTime = time;<NEW_LINE>List<Object> params = new ArrayList<>();<NEW_LINE>params.add(lat);<NE... | params.add(pt.name); |
674,349 | public void initPathSegments() {<NEW_LINE>if (pathSegments != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// this is not super optimised<NEW_LINE>// I don't think we care about it that much though<NEW_LINE>String path = getPath();<NEW_LINE>String[] <MASK><NEW_LINE>pathSegments = new ArrayList<>();<NEW_LINE>boolean has... | parts = path.split("/"); |
1,263,743 | public void testAssumptionFailure(TestIdentifier testIdentifier, String trace) {<NEW_LINE>if (takeScreenshotOnFailure) {<NEW_LINE>String suffix = "_failure";<NEW_LINE>String filepath = testIdentifier.getTestName() + suffix + SCREENSHOT_SUFFIX;<NEW_LINE>executeOnAdbShell("screencap -p " + screenshotsPathOnDevice + "/" +... | getFailure().add(failure); |
4,557 | protected void save(final boolean needDismiss) {<NEW_LINE>MapActivity mapActivity = getMapActivity();<NEW_LINE>WptPtEditor editor = getWptPtEditor();<NEW_LINE>WptPt wpt = getWpt();<NEW_LINE>if (mapActivity != null && editor != null && wpt != null) {<NEW_LINE>String name = Algorithms.isEmpty(getNameTextValue()) ? null :... | addLastUsedIcon(wpt.getIconName()); |
484,784 | public static void onHarvest(@Nonnull BlockEvent.HarvestDropsEvent event) {<NEW_LINE>final World world = event.getWorld();<NEW_LINE>if (world == null || world.isRemote || event.getHarvester() == null || event.isSilkTouching() || !isEquipped(event.getHarvester())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final IBlockState... | getDrops().addAll(list); |
1,594,654 | public void cleanupVolumeDuringSnapshotFailure(Long volumeId, Long snapshotId) {<NEW_LINE>SnapshotVO snaphsot = _snapshotDao.findById(snapshotId);<NEW_LINE>if (snaphsot != null) {<NEW_LINE>if (snaphsot.getState() != Snapshot.State.BackedUp) {<NEW_LINE>List<SnapshotDataStoreVO> snapshotDataStoreVOs = _snapshotStoreDao.f... | snaphsot.getState() + " from snapshot table"); |
1,238,135 | private static void tryAssertion(RegressionEnvironment env) {<NEW_LINE>env.assertStatement("s0", statement -> {<NEW_LINE>FragmentEventType fragmentType = statement.getEventType().getFragmentType("subrow");<NEW_LINE>assertFalse(fragmentType.isIndexed());<NEW_LINE>assertFalse(fragmentType.isNative());<NEW_LINE>Object[][]... | [] { "E1", 10 }); |
1,763,445 | public void readFields(DataInput in) throws IOException {<NEW_LINE>super.readFields(in);<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>long partitionId = in.readLong();<NEW_LINE>int size2 = in.readInt();<NEW_LINE>Map<Long, Long> tabletIdMap = partitionIdToBaseRollupTabletIdMap.computeIfAbsent(parti... | int size = in.readInt(); |
545,837 | public static DescribePropertyPortDetailResponse unmarshall(DescribePropertyPortDetailResponse describePropertyPortDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePropertyPortDetailResponse.setRequestId(_ctx.stringValue("DescribePropertyPortDetailResponse.RequestId"));<NEW_LINE>PageInfo pageInfo = new Page... | ("DescribePropertyPortDetailResponse.Propertys[" + i + "].Create")); |
466,780 | public void itemPropertyChanged(Datasource.ItemPropertyChangeEvent<T> e) {<NEW_LINE>if (!"firstName".equals(e.getProperty()) && !"lastName".equals(e.getProperty()) && !"middleName".equals(e.getProperty())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String firstName = getFieldValue("firstName");<NEW_LINE>String lastName = g... | pattern = AppContext.getProperty("cuba.user.fullNamePattern"); |
1,577,253 | private void insertTimerScheduler(HttpServletRequest request, TimerSchedulerEntity timerSchedulerEntity) throws GovernanceException {<NEW_LINE>try {<NEW_LINE>if (!this.checkProcessorExist(request)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.setRuleDataBaseUrl(timerSchedulerEntity);<NEW_LINE>String url = new StringBuff... | json2Object(updateMes, Map.class); |
1,263,552 | protected void write(ClassWriter classWriter, MethodWriter methodWriter, WriteScope writeScope) {<NEW_LINE>methodWriter.writeStatementOffset(getLocation());<NEW_LINE>Variable variable = writeScope.defineVariable(variableType, variableName);<NEW_LINE>Variable array = writeScope.defineInternalVariable(arrayType, arrayNam... | ), index.getSlot()); |
720,523 | private List<I_M_HU> performSplit0(@NonNull final IHUContext localHuContextCopy) {<NEW_LINE>//<NEW_LINE>// using thread-inherited to let this split key work in transaction and out of transaction<NEW_LINE>InterfaceWrapperHelper.setTrxName(huToSplit, ITrx.TRXNAME_ThreadInherited);<NEW_LINE>//<NEW_LINE>// Source: our hand... | request = requestProvider.apply(localHuContextCopy); |
1,433,767 | final GetActivityTaskResult executeGetActivityTask(GetActivityTaskRequest getActivityTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getActivityTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | false), new GetActivityTaskResultJsonUnmarshaller()); |
972,610 | public void testXAOptionABMT() throws Exception {<NEW_LINE>String deliveryID = "MD_test3a";<NEW_LINE>prepareTRA();<NEW_LINE>// construct a FVTMessage<NEW_LINE>FVTMessage message = new FVTMessage();<NEW_LINE>message.addTestResult("BMTNonJMS", 31);<NEW_LINE>// Add a FVTXAResourceImpl for this delivery.<NEW_LINE>message.a... | , 31, new FVTXAResourceImpl()); |
1,379,819 | public InstanceStateChange unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>InstanceStateChange instanceStateChange = new InstanceStateChange();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>while (true)... | int originalDepth = context.getCurrentDepth(); |
343,803 | public void update(RowBasedPartition partition, int factor, double[] scalars) {<NEW_LINE>double gamma = scalars[0];<NEW_LINE>double epsilon = scalars[1];<NEW_LINE>double beta = scalars[2];<NEW_LINE>double lr = scalars[3];<NEW_LINE>double regParam = scalars[4];<NEW_LINE>double epoch = scalars[5];<NEW_LINE>double batchSi... | Math.pow(beta, epoch); |
1,483,712 | public static BooleanExpression isFilePresentForSelectedEntry(StateManager stateManager, PreferencesService preferencesService) {<NEW_LINE>ObservableList<BibEntry> selectedEntries = stateManager.getSelectedEntries();<NEW_LINE>Binding<Boolean> fileIsPresent = EasyBind.valueAt(selectedEntries, 0).map(entry -> {<NEW_LINE>... | ), preferencesService.getFilePreferences()); |
940,643 | public boolean isAvailable(boolean forceCheck, boolean notifyUI) {<NEW_LINE>synchronized (this) {<NEW_LINE>if (!gotVersion) {<NEW_LINE>// version has not been scanned yet, run the version command<NEW_LINE>// NOI18N<NEW_LINE>LOG.log(Level.FINE, "Call to hg version not finished");<NEW_LINE>if (forceCheck) {<NEW_LINE>if (... | Level.WARNING, "Using an unsupported hg version: {0}", version); |
1,572,080 | public String visitCompoundPredicate(CompoundPredicateOperator predicate, Void context) {<NEW_LINE>if (CompoundPredicateOperator.CompoundType.NOT.equals(predicate.getCompoundType())) {<NEW_LINE>return "NOT " + print(predicate.getChild(0));<NEW_LINE>} else if (CompoundPredicateOperator.CompoundType.AND.equals(predicate.... | (predicate.getChild(1)); |
341,981 | private void init(long transferBlockSize) {<NEW_LINE>List<TorrentFile> files = torrent.getFiles();<NEW_LINE>long totalSize = torrent.getSize();<NEW_LINE><MASK><NEW_LINE>transferBlockSize = Math.min(transferBlockSize, chunkSize);<NEW_LINE>int chunksTotal = PieceUtils.calculateNumberOfChunks(totalSize, chunkSize);<NEW_LI... | long chunkSize = torrent.getChunkSize(); |
783,322 | public static NavTreeSettings readFromRequest(final PwmRequest pwmRequest) throws PwmUnrecoverableException, IOException {<NEW_LINE>final Map<String, Object> inputParameters = pwmRequest.readBodyAsJsonMap(PwmHttpRequestWrapper.Flag.BypassValidation);<NEW_LINE>final boolean modifiedSettingsOnly = (<MASK><NEW_LINE>final ... | boolean) inputParameters.get("modifiedSettingsOnly"); |
208,918 | private void populateWritersFromMultiplexParams() {<NEW_LINE>final TabbedTextFileWithHeaderParser libraryParamsParser = new TabbedTextFileWithHeaderParser(MULTIPLEX_PARAMS);<NEW_LINE>final Set<String> <MASK><NEW_LINE>final List<String> sampleBarcodeColumnLabels = new ArrayList<>();<NEW_LINE>for (int i = 1; i <= inputRe... | expectedColumnLabels = CollectionUtil.makeSet("OUTPUT_PREFIX"); |
911,938 | public boolean apply(Game game, Ability source) {<NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>if (sourceObject != null) {<NEW_LINE>DiscardTargetCost cost = new DiscardTargetCost(new TargetCardInHand(3, 3, new FilterCard()));<NEW_LINE>for (UUID playerId : game.getState().getPlayerList(sourc... | getSpell(source.getSourceId()); |
1,652,476 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select intPrimitive, s1.* as s1stream, theString, symbol as sym, s0.* as s0stream from SupportBean#length(3) as s0, " + "SupportMarketDataBean#keepall as s1";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.assertStatement("... | ()).get("s0stream"); |
1,800,470 | public void accept(PurchaseOrderSupplierLine purchaseOrderSupplierLine) throws AxelorException {<NEW_LINE>PurchaseOrderLine purchaseOrderLine = purchaseOrderSupplierLine.getPurchaseOrderLine();<NEW_LINE>purchaseOrderLine.setEstimatedDelivDate(purchaseOrderSupplierLine.getEstimatedDelivDate());<NEW_LINE>Partner supplier... | (IExceptionMessage.SUPPLIER_BLOCKED), supplierPartner); |
837,409 | public int compareTo(@Nonnull StdArrangementMatchRule o) {<NEW_LINE>final Set<ArrangementSettingsToken> tokens = ArrangementUtil.extractTokens(getMatcher().getCondition()).keySet();<NEW_LINE>final Set<ArrangementSettingsToken> tokens1 = ArrangementUtil.extractTokens(o.getMatcher().getCondition()).keySet();<NEW_LINE>if ... | final String entryType1 = getEntryType(tokens1); |
1,718,665 | public String executeRun() {<NEW_LINE>Timestamp dateDoc = getDateNextRun();<NEW_LINE>if (!calculateRuns()) {<NEW_LINE>throw new IllegalStateException("No Runs Left");<NEW_LINE>}<NEW_LINE>// log<NEW_LINE>MRecurringRun run = new MRecurringRun(getCtx(), this);<NEW_LINE>String msg = "@Created@ ";<NEW_LINE>// Copy<NEW_LINE>... | false, get_TrxName(), false); |
643,588 | public KvMetadata resolveMetadata(boolean isKey, List<MappingField> resolvedFields, Map<String, String> options, InternalSerializationService serializationService) {<NEW_LINE>Map<QueryPath, MappingField> fieldsByPath = extractFields(resolvedFields, isKey);<NEW_LINE>String typeNameProperty = isKey ? OPTION_KEY_COMPACT_T... | >(fieldsByPath.size()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.