idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
230,280 | private List<Column> buildQueryColumns(DataFetchingEnvironment environment) {<NEW_LINE>List<SelectedField> valuesFields = environment.getSelectionSet().getFields("values");<NEW_LINE>if (valuesFields.isEmpty()) {<NEW_LINE>return ImmutableList.of();<NEW_LINE>}<NEW_LINE>// While convoluted, it's technically valid to refer... | queryColumns = new LinkedHashSet<>(); |
93,630 | public Object toJson() {<NEW_LINE>Map<String, Object> jsonObj = new HashMap<String, Object>();<NEW_LINE>jsonObj.put("numberMaps", Integer.toString(numberMaps));<NEW_LINE>jsonObj.put("numberReduces", Integer.toString(numberReduces));<NEW_LINE>jsonObj.put("minMapTime", Long.toString(minMapTime));<NEW_LINE>jsonObj.put("ma... | , Long.toString(proactiveSpillCountRecs)); |
1,061,212 | private static PDGRegion pdgpostorder(PDGNode node, List<PDGRegion> list) {<NEW_LINE>if (node.getVisited()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>node.setVisited(true);<NEW_LINE>PDGRegion region;<NEW_LINE>if (!node2Region.containsKey(node)) {<NEW_LINE>region = new PDGRegion(node);<NEW_LINE>node2Region.put(node, r... | kid = pdgpostorder(body, list); |
1,816,290 | public void cellPaint(GC gc, TableCellSWT cell) {<NEW_LINE>Subscription sub = (Subscription) cell.getDataSource();<NEW_LINE>Rectangle bounds = cell.getBounds();<NEW_LINE>bounds.width -= 5;<NEW_LINE>bounds.height -= 7;<NEW_LINE>bounds.x += 2;<NEW_LINE>bounds.y += 3;<NEW_LINE>gc.setBackground(ColorCache.getColor(gc.getDe... | rankingBars = imageLoader.getImage("ranking_bars"); |
1,355,299 | private static int[] overARGB(int[] a, int[] b) {<NEW_LINE>int[] r = new int[4];<NEW_LINE>for (int c = 0; c < 4; c++) {<NEW_LINE>assert a[c] >= 0 && a[c] <= 255 : a[c];<NEW_LINE>assert b[c] >= 0 && b[c<MASK><NEW_LINE>}<NEW_LINE>float alphaA = a[0] / 255.0f;<NEW_LINE>float alphaB = b[0] / 255.0f;<NEW_LINE>float alphaANe... | ] <= 255 : b[c]; |
1,186,135 | public URI normalizeTemplateLocation(URI locationUri) {<NEW_LINE>if (!"file".equals(locationUri.getScheme()))<NEW_LINE>return locationUri;<NEW_LINE><MASK><NEW_LINE>String userTemplateLocation = defaultUserTemplateDir().toURI().toString();<NEW_LINE>String normalizedLocation;<NEW_LINE>if (location.startsWith(userTemplate... | String location = locationUri.toString(); |
462,071 | public static LinkedJSONObject toJSONObject(String string) throws org.librera.JSONException {<NEW_LINE>String name;<NEW_LINE>LinkedJSONObject jo = new LinkedJSONObject();<NEW_LINE>Object value;<NEW_LINE>org.librera.JSONTokener x = new <MASK><NEW_LINE>jo.put("name", x.nextTo('='));<NEW_LINE>x.next('=');<NEW_LINE>jo.put(... | org.librera.JSONTokener(string); |
1,395,606 | protected void doExecute(Task task, MultiSearchTemplateRequest request, ActionListener<MultiSearchTemplateResponse> listener) {<NEW_LINE>List<Integer> originalSlots = new ArrayList<>();<NEW_LINE>MultiSearchRequest multiSearchRequest = new MultiSearchRequest();<NEW_LINE>multiSearchRequest.indicesOptions(request.indicesO... | MultiSearchTemplateResponse.Item(searchTemplateResponse, null); |
1,754,663 | public ListUserSettingsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListUserSettingsResult listUserSettingsResult = new ListUserSettingsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | class).unmarshall(context)); |
1,468,372 | public static DateTimeFieldSpec convertToDateTimeFieldSpec(TimeFieldSpec timeFieldSpec) {<NEW_LINE>DateTimeFieldSpec dateTimeFieldSpec = new DateTimeFieldSpec();<NEW_LINE>TimeGranularitySpec incomingGranularitySpec = timeFieldSpec.getIncomingGranularitySpec();<NEW_LINE>TimeGranularitySpec outgoingGranularitySpec = time... | incomingTimeSize, incomingTimeUnit, outgoingTimeSize, outgoingTimeUnit); |
1,345,609 | public int findLesser(String word) {<NEW_LINE>word = word.toLowerCase(locale);<NEW_LINE>List<String> dict = getDictionary();<NEW_LINE>int lower = 0;<NEW_LINE>int upper <MASK><NEW_LINE>boolean last = false;<NEW_LINE>while (true) {<NEW_LINE>if (lower == upper)<NEW_LINE>break;<NEW_LINE>if (last)<NEW_LINE>break;<NEW_LINE>i... | = dict.size() - 1; |
351,826 | void deleteRecordActionPerformed() {<NEW_LINE>assert dataPage.getTableMetaData().getTableCount() == 1 : "Only one table allowed in resultset if delete is invoked";<NEW_LINE>DataViewTableUI rsTable = dataViewUI.getDataViewTableUI();<NEW_LINE>if (rsTable.getSelectedRowCount() == 0) {<NEW_LINE>String msg = NbBundle.getMes... | getTableMetaData().getTable(0); |
1,075,455 | private Response sendVerifyEmail(KeycloakSession session, LoginFormsProvider forms, UserModel user, AuthenticationSessionModel authSession, EventBuilder event) throws UriBuilderException, IllegalArgumentException {<NEW_LINE>RealmModel realm = session.getContext().getRealm();<NEW_LINE>UriInfo uriInfo = session.getContex... | fromAuthSession(authSession).getEncodedId(); |
341,204 | Map<String, Object> mapFieldsFromJson(final String json) throws JsonProcessingException, DotDataException, DotSecurityException {<NEW_LINE>final Contentlet immutableContentlet = immutableFromJson(json);<NEW_LINE>final Map<String, Object> <MASK><NEW_LINE>final String inode = immutableContentlet.inode();<NEW_LINE>final S... | map = new HashMap<>(); |
80,232 | public AgentInfoBo map(TAgentInfo thriftObject) {<NEW_LINE>final String hostName = thriftObject.getHostname();<NEW_LINE>final String ip = thriftObject.getIp();<NEW_LINE>final String ports = thriftObject.getPorts();<NEW_LINE>final String agentId = thriftObject.getAgentId();<NEW_LINE>final String agentName = thriftObject... | int endStatus = thriftObject.getEndStatus(); |
160,252 | private void endTextClip() {<NEW_LINE>PDGraphicsState state = getGraphicsState();<NEW_LINE>RenderingMode renderingMode = state.getTextState().getRenderingMode();<NEW_LINE>// apply the buffered clip as one area<NEW_LINE>if (renderingMode.isClip() && !textClippings.isEmpty()) {<NEW_LINE>// PDFBOX-4150: this is much faste... | = new ArrayList<Path>(); |
1,748,996 | protected void onHandleIntent(Intent intent) {<NEW_LINE>mTodoText = intent.getStringExtra(TODOTEXT);<NEW_LINE>mTodoUUID = (UUID) intent.getSerializableExtra(TODOUUID);<NEW_LINE>Log.d("OskarSchindler", "onHandleIntent called");<NEW_LINE>NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SE... | Intent(this, DeleteNotificationService.class); |
839,445 | public CreateCallAnalyticsCategoryResult createCallAnalyticsCategory(CreateCallAnalyticsCategoryRequest createCallAnalyticsCategoryRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCallAnalyticsCategoryRequest);<NEW_LINE><MASK><NEW_... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
567,445 | public MessageStore create(SessionID sessionID) {<NEW_LINE>try {<NEW_LINE>String dbDir = <MASK><NEW_LINE>String seqDbName = "seq";<NEW_LINE>if (settings.isSetting(sessionID, SETTING_SLEEPYCAT_SEQUENCE_DB_NAME)) {<NEW_LINE>seqDbName = settings.getString(sessionID, SETTING_SLEEPYCAT_SEQUENCE_DB_NAME);<NEW_LINE>}<NEW_LINE... | settings.getString(sessionID, SETTING_SLEEPYCAT_DATABASE_DIR); |
1,172,225 | public void main(StatCollector stat, Runnable appInitializeMark, ApplicationEx app, boolean newConfigFolder, @Nonnull CommandLineArgs args) {<NEW_LINE>appInitializeMark.run();<NEW_LINE>stat.dump("Startup statistics", LOG::info);<NEW_LINE>PluginLoadStatistics.get().dumpPluginClassStatistics(LOG::info);<NEW_LINE>SwingUti... | showFrame, ModalityState.any()); |
111,738 | public CompletableFuture<Integer> start(final int tcpPort) {<NEW_LINE>if (config.isActive()) {<NEW_LINE>final String host = config.getBindHost();<NEW_LINE>final int port = config.getBindPort();<NEW_LINE>LOG.info("Starting peer discovery agent on host={}, port={}", host, port);<NEW_LINE>// override advertised host if we... | localNode = Optional.of(ourNode); |
307,356 | private static PartitionMetricSample readV0(ByteBuffer buffer) {<NEW_LINE>MetricDef metricDef = KafkaMetricDef.commonMetricDef();<NEW_LINE>int brokerId = buffer.getInt();<NEW_LINE>int <MASK><NEW_LINE>String topic = new String(buffer.array(), 49, buffer.array().length - 49, UTF_8);<NEW_LINE>PartitionMetricSample sample ... | partition = buffer.getInt(45); |
1,186,778 | public static GetTaskInstanceRelationResponse unmarshall(GetTaskInstanceRelationResponse getTaskInstanceRelationResponse, UnmarshallerContext _ctx) {<NEW_LINE>getTaskInstanceRelationResponse.setRequestId(_ctx.stringValue("GetTaskInstanceRelationResponse.RequestId"));<NEW_LINE>getTaskInstanceRelationResponse.setErrorCod... | ("GetTaskInstanceRelationResponse.NodeList[" + i + "].EndTime")); |
363,854 | public void updateMessageWithNewAttachments(final String messageId, final List<File> files) {<NEW_LINE>Realm realm = MessageDatabaseManager.getInstance().getNewBackgroundRealm();<NEW_LINE>realm.executeTransaction(new Realm.Transaction() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void execute(Realm realm) {<NEW_LINE... | setImageWidth(imageSize.getWidth()); |
232,633 | final DeleteCrossAccountAuthorizationResult executeDeleteCrossAccountAuthorization(DeleteCrossAccountAuthorizationRequest deleteCrossAccountAuthorizationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteCrossAccountAuthorizationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,666,839 | protected ListBuffer<JCStatement> generatePluralMethodStatements(JavacTreeMaker maker, SingularData data, JavacNode builderType, JavacNode source) {<NEW_LINE>List<JCExpression<MASK><NEW_LINE>ListBuffer<JCStatement> statements = new ListBuffer<JCStatement>();<NEW_LINE>long baseFlags = JavacHandlerUtil.addFinalIfNeeded(0... | > jceBlank = List.nil(); |
1,395,461 | public IRubyObject to_s() {<NEW_LINE>final Ruby runtime = metaClass.runtime;<NEW_LINE>if (Double.isInfinite(value)) {<NEW_LINE>return RubyString.newString(runtime, value < 0 ? "-Infinity" : "Infinity");<NEW_LINE>}<NEW_LINE>if (Double.isNaN(value)) {<NEW_LINE>return RubyString.newString(runtime, "NaN");<NEW_LINE>}<NEW_L... | e = buf.indexOf('e'); |
1,420,552 | private OResult toTraverseResult(OResult item) {<NEW_LINE>OTraverseResult res = null;<NEW_LINE>if (item instanceof OTraverseResult) {<NEW_LINE>res = (OTraverseResult) item;<NEW_LINE>} else if (item.isElement() && item.getElement().get().getIdentity().isValid()) {<NEW_LINE>res = new OTraverseResult();<NEW_LINE>res.setEl... | .setElement((OIdentifiable) val); |
560,261 | public void onClick(@NonNull View v) {<NEW_LINE>RecyclerView rv = RecyclerViewAdapterUtils.getParentRecyclerView(v);<NEW_LINE>RecyclerView.ViewHolder vh = rv.findContainingViewHolder(v);<NEW_LINE>int rootPosition = vh.getAdapterPosition();<NEW_LINE>if (rootPosition == RecyclerView.NO_POSITION) {<NEW_LINE>return;<NEW_LI... | Adapter rootAdapter = rv.getAdapter(); |
573,318 | public void expireTimeout(Timer t) {<NEW_LINE>svLogger.logp(Level.INFO, CLASSNAME, "expireTimeout", "Timeout, t == {0}", t);<NEW_LINE>svInfo = (String) t.getInfo();<NEW_LINE>svLogger.logp(Level.FINEST, CLASSNAME, "expireTimeout", "info == {0}", svInfo);<NEW_LINE>if ("testGetNextTimeoutCanceledIntervalTimer".equals(svIn... | .getClass().getSimpleName(); |
364,558 | public void doOperation(final ImportJavaRDDOfElements operation, final Context context, final AccumuloStore store) throws OperationException {<NEW_LINE>final String outputPath = operation.getOption(OUTPUT_PATH);<NEW_LINE>if (null == outputPath || outputPath.isEmpty()) {<NEW_LINE>throw new OperationException("Option out... | failurePath = operation.getOption(FAILURE_PATH); |
1,587,910 | Shape convertShapeBasics(C2jShape c2jShape, String shapeName) {<NEW_LINE>Shape shape = new Shape();<NEW_LINE>HashSet<String> shapesReferencedBy = new HashSet<String>();<NEW_LINE>shape.setReferencedBy(shapesReferencedBy);<NEW_LINE>shape.setName(CppViewHelper.convertToUpperCamel(shapeName));<NEW_LINE>String crossLinkedSh... | setFlattened(c2jShape.isFlattened()); |
625,226 | public static void average(Planar<GrayS8> from, GrayS8 to) {<NEW_LINE>int numBands = from.getNumBands();<NEW_LINE>if (numBands == 1) {<NEW_LINE>to.setTo(from.getBand(0));<NEW_LINE>} else if (numBands == 3) {<NEW_LINE>GrayS8 <MASK><NEW_LINE>GrayS8 band1 = from.getBand(1);<NEW_LINE>GrayS8 band2 = from.getBand(2);<NEW_LIN... | band0 = from.getBand(0); |
1,306,256 | public static Bitfield compileFlags(final serverObjects post) {<NEW_LINE>final Bitfield b = new Bitfield(4);<NEW_LINE>if (post.get("allurl", "").equals("on")) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (post.get("flags") != null) {<NEW_LINE>if (post.get("flags", "").isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW... | set(WordReferenceRow.flag_app_dc_identifier, true); |
1,825,679 | public HeavyReport queryHourlyReport(String domain, Date start, Date end) {<NEW_LINE>HeavyReportMerger merger = new HeavyReportMerger(new HeavyReport(domain));<NEW_LINE>long startTime = start.getTime();<NEW_LINE>long endTime = end.getTime();<NEW_LINE>String name = Constants.REPORT_HEAVY;<NEW_LINE>for (; startTime < end... | HeavyReport heavyReport = merger.getHeavyReport(); |
89,084 | private void createTriggerChannels(RemoteopenhabThing thing, boolean addNewChannels) {<NEW_LINE>List<Channel> channels = new ArrayList<>();<NEW_LINE>for (RemoteopenhabChannel channelDTO : thing.channels) {<NEW_LINE>if (!"TRIGGER".equals(channelDTO.kind)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>ChannelTypeUID channelTy... | updateThing(thingBuilder.build()); |
589,300 | private int[] packDataIntoArray(GImageFormat format, InputStream data, long dataLength) throws IOException {<NEW_LINE>int offset = 0;<NEW_LINE>int[] arr = new int[width * height];<NEW_LINE>for (int i = 0; i < arr.length; ++i) {<NEW_LINE>if (format == GImageFormat.RGB_ALPHA_4BYTE) {<NEW_LINE>int blue = 0;<NEW_LINE>int g... | = data.read() & 0xff; |
400,070 | /* Vertical B Filtering */<NEW_LINE>static void vp8_loop_filter_bv(FullAccessIntArrPointer y_ptr, FullAccessIntArrPointer u_ptr, FullAccessIntArrPointer v_ptr, int y_stride, int uv_stride, LoopFilterInfo lfi) {<NEW_LINE>loop_filter_vertical_edge(y_ptr.shallowCopyWithPosInc(4), y_stride, lfi.blim, lfi.<MASK><NEW_LINE>lo... | lim, lfi.hev_thr, 2); |
1,359,167 | public int addFilesFromZip(ZipFile z) throws IOException {<NEW_LINE>try {<NEW_LINE>// get meta info first<NEW_LINE>JSONObject meta = new JSONObject(Utils.convertStreamToString(z.getInputStream(z.getEntry("_meta"))));<NEW_LINE>// then loop through all files<NEW_LINE>int cnt = 0;<NEW_LINE>ArrayList<? extends ZipEntry> zi... | mDb.executeMany("insert or replace into media values (?,?,?,?)", media); |
331,727 | public void marshall(CloneStackRequest cloneStackRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (cloneStackRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(cloneStackRequest.getSourceStackI... | cloneStackRequest.getUseOpsworksSecurityGroups(), USEOPSWORKSSECURITYGROUPS_BINDING); |
1,526,406 | public void checkDefaultRules(String hostUuid, Completion completion) {<NEW_LINE>CheckDefaultSecurityGroupCmd cmd = new CheckDefaultSecurityGroupCmd();<NEW_LINE>cmd.skipIpv6 = NetworkGlobalProperty.SKIP_IPV6;<NEW_LINE>KVMHostAsyncHttpCallMsg msg = new KVMHostAsyncHttpCallMsg();<NEW_LINE>msg.setHostUuid(hostUuid);<NEW_L... | KVMHostAsyncHttpCallReply hreply = reply.castReply(); |
1,709,813 | private Resource evaluateObservationCriteria(Context context, Patient patient, Resource resource, Measure.MeasureGroupPopulationComponent pop, MeasureReport report) {<NEW_LINE>if (pop == null || !pop.hasCriteria()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>context.setContextValue("Patient", patient.getIdElement().get... | randomUUID().toString()); |
1,449,809 | public boolean autoImportReferenceAtCursor(@NotNull Editor editor, @NotNull PsiFile file) {<NEW_LINE>if (!file.getViewProvider().getLanguages().contains(GoLanguage.INSTANCE) || !DaemonListeners.canChangeFileSilently(file)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int caretOffset = editor.getCaretModel().getOffset()... | GoImportPackageQuickFix fix = new GoImportPackageQuickFix(reference); |
1,479,900 | private static RemoteScreenshot[] takeCurrent(JPDADebugger debugger, DebuggerEngine engine) throws RetrievalException {<NEW_LINE>List<JPDAThread> allThreads = debugger<MASK><NEW_LINE>if (logger.isLoggable(Level.FINE)) {<NEW_LINE>logger.log(Level.FINE, "Threads = {0}", allThreads);<NEW_LINE>}<NEW_LINE>RemoteScreenshot[]... | .getThreadsCollector().getAllThreads(); |
1,254,013 | public static void main(String[] args) throws IOException {<NEW_LINE>if (args.length < 2) {<NEW_LINE>_log.error("Usage: PegasusDataTemplateGenerator targetDirectoryPath [sourceFile or sourceDirectory or schemaName]+");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>final String generateImportedProperty = System.getProper... | true : Boolean.parseBoolean(generateLowercasePathProperty); |
663,464 | private void addRequestParameters(RequestData rd, HttpServletRequest request) {<NEW_LINE>// NOI18N<NEW_LINE>String method = rd.getAttributeValue("method");<NEW_LINE>// If it is a POST request we check if it was URL encoded<NEW_LINE>// Not sure this matters if we record the parameters after the<NEW_LINE>// request has b... | Headers headers = rd.getHeaders(); |
121,675 | public DescribeChannelMembershipForAppInstanceUserResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeChannelMembershipForAppInstanceUserResult describeChannelMembershipForAppInstanceUserResult = new DescribeChannelMembershipForAppInstanceUserResult();<NEW_LINE>int originalDepth = con... | JsonToken token = context.getCurrentToken(); |
1,132,911 | final CreateVPCEConfigurationResult executeCreateVPCEConfiguration(CreateVPCEConfigurationRequest createVPCEConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createVPCEConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | (super.beforeMarshalling(createVPCEConfigurationRequest)); |
441,522 | public OutgoingVariant convertToOutgoingVariant() {<NEW_LINE>return new OutgoingVariant() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public DisplayName asDescribable() {<NEW_LINE>return displayName;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public AttributeContainerInternal getAttributes() {<NEW_LINE>return attribu... | ) : variants.size()); |
1,664,169 | private static Set<Pair<String, Formula>> collectLexemeFormulaPairs(Example ex) {<NEW_LINE>Set<Pair<String, Formula>> res = new HashSet<>();<NEW_LINE>Set<Pair<String, Formula>> temp = new HashSet<>();<NEW_LINE>for (Derivation correctDerivation : ex.getCorrectDerivations()) {<NEW_LINE>// get all join formulas<NEW_LINE>L... | get(i), relation)); |
1,574,290 | private HttpTransport createHttpTransport(AddressManager kieAddressManager, RequestConfig requestConfig, Configuration localConfiguration) {<NEW_LINE>List<AuthHeaderProvider> authHeaderProviders = SPIServiceUtils.getOrLoadSortedService(AuthHeaderProvider.class);<NEW_LINE>if (ConfigCenterConfig.INSTANCE.isProxyEnable())... | , getRequestAuthHeaderProvider(authHeaderProviders), httpClientBuilder); |
704,701 | public void handleTransaction(SocBusTransaction trans) {<NEW_LINE>if (!canHandleTransaction(trans))<NEW_LINE>return;<NEW_LINE>trans.setTransactionResponder(attachedBus.getComponent());<NEW_LINE>long addr = SocSupport.convUnsignedInt(trans.getAddress());<NEW_LINE>long start = SocSupport.convUnsignedInt(startAddress);<NE... | writeControlRegister(trans.getWriteData()); |
62,739 | private Mono<Response<RolloutInner>> restartWithResponseAsync(String resourceGroupName, String rolloutName, Boolean skipSucceeded, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.erro... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
1,233,976 | protected DBTraceBreakpoint addBreakpoint(String path, Range<Long> lifespan, AddressRange range, Collection<TraceThread> threads, Collection<TraceBreakpointKind> kinds, boolean enabled, String comment) {<NEW_LINE>// NOTE: thread here is not about address/register spaces.<NEW_LINE>// It's about which thread to trap<NEW_... | (range, lifespan), null); |
1,334,492 | public void validateOptionalJoin(Join join) {<NEW_LINE>for (ValidationCapability c : getCapabilities()) {<NEW_LINE>validateFeature(c, Feature.join);<NEW_LINE>validateFeature(c, join.isSimple() && join.isOuter(), Feature.joinOuterSimple);<NEW_LINE>validateFeature(c, join.isSimple(), Feature.joinSimple);<NEW_LINE>validat... | isInner(), Feature.joinInner); |
123,301 | public File prepareDownloadFile(Response response) throws IOException {<NEW_LINE>String filename = null;<NEW_LINE>String contentDisposition = (String) response.getHeaders().getFirst("Content-Disposition");<NEW_LINE>if (contentDisposition != null && !"".equals(contentDisposition)) {<NEW_LINE>// Get filename from the Con... | matcher = pattern.matcher(contentDisposition); |
567,186 | public StepExecutionResult execute(ExecutionContext context) throws IOException {<NEW_LINE>if (skeletonManifestPath.getNameCount() == 0) {<NEW_LINE>throw new HumanReadableException("Skeleton manifest filepath is missing");<NEW_LINE>}<NEW_LINE>if (outManifestPath.getNameCount() == 0) {<NEW_LINE>throw new HumanReadableEx... | ManifestMergerLogger(context.getBuckEventBus()); |
1,702,387 | private void buildRestOfGuiPages(GuiAutotest guiTest) {<NEW_LINE>// directory page<NEW_LINE>guiTest.addKeyAction(KeyEvent.VK_TAB);<NEW_LINE>guiTest.addKeyAction(KeyEvent.VK_TAB);<NEW_LINE>guiTest.addKeyAction(KeyEvent.VK_TAB);<NEW_LINE>guiTest.addKeyAction(KeyEvent.VK_TAB);<NEW_LINE>guiTest.addKeyAction(KeyEvent.VK_SPA... | guiTest.addKeyAction(KeyEvent.VK_SPACE); |
324,658 | public Result listByRegion(UUID customerUUID, UUID providerUUID, UUID regionUUID, Boolean includeMetadata) {<NEW_LINE>Customer customer = Customer.getOrBadRequest(customerUUID);<NEW_LINE>Region region = Region.getOrBadRequest(customerUUID, providerUUID, regionUUID);<NEW_LINE>Map<String, Object> releases = releaseManage... | info("ReleaseController: Could not determine region {} architecture. Listing all releases.", region.code); |
92,418 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>infoLabel = new JLabel();<NEW_LINE>optionsLabel = new JLabel();<NEW_LINE>noteLabel = new JLabel();<NEW_LINE>// NOI18N<NEW_LINE>Mnemonics.setLocalizedText(infoLabel, "INFO");<NEW_LI... | (NewProjectConfigurationPanel.class, "NewProjectConfigurationPanel.optionsLabel.text")); |
1,757,624 | public T call() throws IOException {<NEW_LINE>URL u = new URL(url);<NEW_LINE>InputStream stream = null;<NEW_LINE>final String protocol = u.getProtocol();<NEW_LINE>if (protocol.equals("http") || protocol.equals("https")) {<NEW_LINE>HttpURLConnection conn = (HttpURLConnection) u.openConnection();<NEW_LINE>conn.setRequest... | .valueOf(outBytes.length)); |
292,166 | // GEN-LAST:event_saveButtonActionPerformed<NEW_LINE>private void saveGUISize() {<NEW_LINE>Preferences prefs = MageFrame.getPreferences();<NEW_LINE>// GUI Size<NEW_LINE>save(prefs, dialog.sliderFontSize, KEY_GUI_TABLE_FONT_SIZE, "true", "false", UPDATE_CACHE_POLICY);<NEW_LINE>save(prefs, dialog.sliderChatFontSize, <MAS... | KEY_GUI_CHAT_FONT_SIZE, "true", "false", UPDATE_CACHE_POLICY); |
1,170,030 | public void actionPerformed(ActionEvent e) {<NEW_LINE>Object source = e.getSource();<NEW_LINE>if (source == saveCallsToCheckBox) {<NEW_LINE>boolean selected = saveCallsToCheckBox.isSelected();<NEW_LINE>callDirTextField.setEnabled(selected);<NEW_LINE>callDirChooseButton.setEnabled(selected);<NEW_LINE>if (selected) {<NEW... | ).getDefaultDownloadDirectory(), true); |
533,493 | public final XmldeclContext xmldecl() throws RecognitionException {<NEW_LINE>XmldeclContext _localctx = new XmldeclContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 4, RULE_xmldecl);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(45);<NEW_LINE>match(SPECIAL_OP... | _errHandler.reportError(this, re); |
284,279 | protected void computeOutlierScores(KNNSearcher<DBIDRef> knnq, final DBIDs ids, WritableDataStore<double[]> densities, WritableDoubleDataStore kdeos, DoubleMinMax minmax) {<NEW_LINE>final int knum = kmax + 1 - kmin;<NEW_LINE>FiniteProgress prog = LOG.isVerbose() ? new FiniteProgress("Computing KDEOS scores", ids.size()... | [i] = ndens[k]; |
509,375 | public DeleteIdentitiesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteIdentitiesResult deleteIdentitiesResult = new DeleteIdentitiesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | )).unmarshall(context)); |
1,306,980 | public RelDataType deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call) {<NEW_LINE>final RelDataTypeFactory typeFactory = validator.getTypeFactory();<NEW_LINE>List<RelDataTypeFieldImpl> columns = new LinkedList<>();<NEW_LINE>columns.add(new RelDataTypeFieldImpl("Rule_Name", 0, typeFactory.createSql... | createSqlType(SqlTypeName.VARCHAR))); |
808,598 | private static Map<String, Object> defToMap(Map<FieldDef, String> entMap) {<NEW_LINE>Map<String, Object> dataMap = new HashMap<>();<NEW_LINE>dataMap.computeIfAbsent("pub_id", s -> entMap.get(ID));<NEW_LINE>dataMap.computeIfAbsent("pub_api_id", s -> entMap.get(API_ID));<NEW_LINE>dataMap.computeIfAbsent("pub_method", s -... | -> entMap.get(STATUS)); |
963,457 | public static int run(String[] args) {<NEW_LINE>Args parameters = new Args();<NEW_LINE>JCommander jc = JCommander.newBuilder().addObject(parameters).build();<NEW_LINE>jc.parse(args);<NEW_LINE>if (parameters.help) {<NEW_LINE>jc.usage();<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>File dbDirectory = new File(parameters.databa... | .currentThread().interrupt(); |
1,714,966 | public Future<Boolean> startModule(ExtendedModuleInfo moduleInfo) throws StateChangeException {<NEW_LINE>try {<NEW_LINE>latch.await(5, TimeUnit.SECONDS);<NEW_LINE>} catch (InterruptedException e1) {<NEW_LINE>AccessController.doPrivileged(new PrivilegedAction<Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void r... | getComponentMetaDataAccessor().beginContext(cmd); |
214,661 | public void deserialize(String name, String value, boolean isSecure, String encryptedValue) throws CryptoException {<NEW_LINE>setName(name);<NEW_LINE>setIsSecure(isSecure);<NEW_LINE>if (!isSecure && StringUtils.isNotBlank(encryptedValue)) {<NEW_LINE>errors(<MASK><NEW_LINE>}<NEW_LINE>if (StringUtils.isNotBlank(value) &&... | ).add(ENCRYPTEDVALUE, "You may specify encrypted value only when option 'secure' is true."); |
291,184 | // pkg private for testing<NEW_LINE>final void verifyAfterCleanup(MetadataSnapshot sourceMetadata, MetadataSnapshot targetMetadata) {<NEW_LINE>final RecoveryDiff recoveryDiff = targetMetadata.recoveryDiff(sourceMetadata);<NEW_LINE>if (recoveryDiff.identical.size() != recoveryDiff.size()) {<NEW_LINE>if (recoveryDiff.mis... | get(meta.name()); |
411,897 | public static GetMainPartListResponse unmarshall(GetMainPartListResponse getMainPartListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMainPartListResponse.setRequestId(_ctx.stringValue("GetMainPartListResponse.RequestId"));<NEW_LINE>getMainPartListResponse.setCode<MASK><NEW_LINE>getMainPartListResponse.setSuccess(_... | (_ctx.longValue("GetMainPartListResponse.Code")); |
56,678 | public void testRxFlowableInvoker_get3WithGenericType(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE><MASK><NEW_LINE>Thread jaxrs21Thread = jaxrs21ThreadF... | ThreadFactory jaxrs21ThreadFactory = Executors.defaultThreadFactory(); |
248,949 | private void buildPreliminaryGraphs(Program program, MethodDependencyInfo thisMethodDep) {<NEW_LINE>GraphBuildingVisitor visitor = new GraphBuildingVisitor(program.variableCount(), dependencyInfo);<NEW_LINE>visitor.thisMethodDep = thisMethodDep;<NEW_LINE>for (BasicBlock block : program.getBasicBlocks()) {<NEW_LINE>visi... | toArray(new ValueCast[0]); |
1,063,367 | public void init(boolean delay) {<NEW_LINE>final Account account = message.getConversation().getAccount();<NEW_LINE>this.file = mXmppConnectionService.getFileBackend().getFile(message, false);<NEW_LINE>final String mime;<NEW_LINE>if (message.getEncryption() == Message.ENCRYPTION_PGP || message.getEncryption() == Messag... | fail(throwable.getMessage()); |
1,209,885 | protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>JsonObject input = InputParser.parseJsonObjectOrThrowError(req);<NEW_LINE>String method = InputParser.parseStringOrThrowError(input, "method", false);<NEW_LINE>String token = InputParser.parseStringOr... | verifyEmail(super.main, token); |
909,353 | private void decorate(Element el, Component cmp) {<NEW_LINE>String classAttr = el.getAttribute("class");<NEW_LINE>if (classAttr != null && classAttr.length() > 0) {<NEW_LINE>String[] tags = Util.split(classAttr, " ");<NEW_LINE>$(cmp).addTags(tags);<NEW_LINE>}<NEW_LINE>String uiid = el.getAttribute("uiid");<NEW_LINE>if ... | index.put(id, cmp); |
1,089,925 | public List<NetworkAddressAlias> loadLastUpdate(long timeBucketInMinute) {<NEW_LINE>List<NetworkAddressAlias> networkAddressAliases = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>final int batchSize = Math.min(resultWindowMaxSize, scrollingBatchSize);<NEW_LINE>final Search search = Search.builder().query(Query.range(Netw... | builder = new NetworkAddressAlias.Builder(); |
654,684 | private void assertCanWrite() throws IOException {<NEW_LINE>for (Path path : nodeDataPaths()) {<NEW_LINE>// check node-paths are writable<NEW_LINE>tryWriteTempFile(path);<NEW_LINE>}<NEW_LINE>for (String indexFolderName : this.availableIndexFolders()) {<NEW_LINE>for (Path indexPath : this.resolveIndexFolder(indexFolderN... | indexPath.resolve(MetadataStateFormat.STATE_DIR_NAME); |
1,157,938 | public void execute(GenshinPlayer sender, List<String> args) {<NEW_LINE>if (sender == null) {<NEW_LINE>CommandHandler.sendMessage(null, "Run this command in-game.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>sender.getTeamManager().getActiveTeam().forEach(entity -> {<NEW_LINE><MASK><NEW_LINE>entity.setFightProperty(FightPro... | boolean isAlive = entity.isAlive(); |
1,511,898 | public void marshall(UpdateLaunchProfileRequest updateLaunchProfileRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateLaunchProfileRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK>... | updateLaunchProfileRequest.getClientToken(), CLIENTTOKEN_BINDING); |
1,835,713 | private void killLoadsOfObjectsPassed(InvokeInstruction ins) {<NEW_LINE>try {<NEW_LINE>XMethod called = Hierarchy2.findExactMethod(ins, methodGen.getConstantPool(), Hierarchy.ANY_METHOD);<NEW_LINE>if (called != null) {<NEW_LINE>NoSideEffectMethodsDatabase nse = Global.getAnalysisCache().getOptionalDatabase(NoSideEffect... | [] arguments = allocateValueNumberArray(passed); |
1,054,995 | public Request<DeleteLanguageModelRequest> marshall(DeleteLanguageModelRequest deleteLanguageModelRequest) {<NEW_LINE>if (deleteLanguageModelRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteLanguageModelRequest)");<NEW_LINE>}<NEW_LINE>Request<DeleteLanguageModelRequ... | request.addHeader("Content-Type", "application/x-amz-json-1.1"); |
213,115 | private static Object readCheckedCollectionFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, boolean graph, Object collection, boolean ss, boolean list) throws IOException {<NEW_LINE>if (graph) {<NEW_LINE>// update the actual reference.<NEW_LINE>((GraphInput) input).updateLast(collection, owner);<N... | final Wrapper wrapper = new Wrapper(); |
1,159,961 | protected Record rebalance(int id1, Record r1, int id2, Record r2) {<NEW_LINE>RecordBufferPageMgr mgr = bpt.getRecordsMgr().getRecordBufferPageMgr();<NEW_LINE>RecordBufferPage page1 = mgr.getWrite(id1);<NEW_LINE>RecordBufferPage page2 = mgr.getWrite(id2);<NEW_LINE>// Wrong calculation.<NEW_LINE>for (int i = page2.getCo... | ).add(0, r); |
1,041,417 | public boolean startForeground(Service service, @NonNull Repository.PlaylistsRepository playlistsRepository, @NonNull Repository.SongsRepository songsRepository, @NonNull Song song, boolean isPlaying, @NonNull MediaSessionCompat.Token mediaSessionToken, SettingsManager settingsManager, FavoritesPlaylistManager favorite... | analyticsManager.dropBreadcrumb(TAG, "startForeground() called"); |
850,383 | // Liberty Change<NEW_LINE>@FFDCIgnore(value = { Exception.class })<NEW_LINE>private static Object evaluateFactoryMethods(String value, ParameterType pType, Object result, Class<?> cls, String[] methodNames) {<NEW_LINE>Exception factoryMethodEx = null;<NEW_LINE>for (String mName : methodNames) {<NEW_LINE>try {<NEW_LINE... | evaluateFactoryMethod(value, cls, mName); |
696,865 | private List<Folder> findContainersAssetsByContentType(final String contentTypeVarNameFileName) {<NEW_LINE>List<Contentlet> containers = null;<NEW_LINE>final List<Folder> folders = new ArrayList<>();<NEW_LINE>final User user = APILocator.systemUser();<NEW_LINE>final StringBuilder sqlQuery = new StringBuilder("select cv... | StringPool.FORWARD_SLASH + StringPool.PERCENT); |
199,821 | protected Enumeration<URL> findResources(String name) throws IOException {<NEW_LINE>Enumeration<URL> <MASK><NEW_LINE>ConcurrentLinkedQueue<String> providerNames = clSvc.metaInfServicesProviders.get(name);<NEW_LINE>if (providerNames != null && !providerNames.isEmpty()) {<NEW_LINE>Set<URL> urls = new LinkedHashSet<URL>()... | urlEnum = super.findResources(name); |
1,797,569 | public static void convertMillisToReadable(HandlerContext handlerCtx) {<NEW_LINE>Long milliseconds = (<MASK><NEW_LINE>final long MSEC_PER_SECOND = 1000;<NEW_LINE>final long MSEC_PER_MINUTE = 60 * MSEC_PER_SECOND;<NEW_LINE>final long MSEC_PER_HOUR = MSEC_PER_MINUTE * 60;<NEW_LINE>final long MSEC_PER_DAY = MSEC_PER_HOUR ... | Long) handlerCtx.getInputValue("milliseconds"); |
1,632,396 | public static Collection<EventPayloadInstance> createEventPayloadInstances(VariableScope variableScope, ExpressionManager expressionManager, BaseElement baseElement, EventModel eventDefinition) {<NEW_LINE>List<EventPayloadInstance> eventPayloadInstances = new ArrayList<>();<NEW_LINE>List<ExtensionElement> inParameters ... | getAttributeValue(null, CmmnXmlConstants.ATTRIBUTE_IOPARAMETER_SOURCE); |
908,251 | public void update(long bytesRead, long contentLength, boolean done) {<NEW_LINE>EventEmitter eventEmitter = mModuleRegistry.getModule(EventEmitter.class);<NEW_LINE>if (eventEmitter != null) {<NEW_LINE>Bundle downloadProgress = new Bundle();<NEW_LINE>Bundle downloadProgressData = new Bundle();<NEW_LINE>long totalBytesWr... | Long.parseLong(resumeData) : bytesRead; |
57,701 | public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View root = inflater.inflate(R.layout.fragment_wallet, container, false);<NEW_LINE>loadingRecentContainer = root.findViewById(R.id.wallet_loading_recent_container);<NEW_LINE>layoutAccountRecommended = r... | findViewById(R.id.wallet_hint_what_sync_means); |
24,226 | public SpringProcessLiveData retrieveLiveData(JMXConnector jmxConnector, String processID, String processName, String urlScheme, String host, String contextPath, String port, SpringProcessLiveData currentData) {<NEW_LINE>try {<NEW_LINE>MBeanServerConnection connection = jmxConnector.getMBeanServerConnection();<NEW_LINE... | activeProfiles = getActiveProfiles(connection, environment); |
1,358,969 | private void writeInternal(ByteBuffer buffer) throws IOException {<NEW_LINE>Platform.blockGuardOnNetwork();<NEW_LINE>checkOpen();<NEW_LINE>init();<NEW_LINE>// Need to loop through at least once to enable handshaking where no application<NEW_LINE>// bytes are processed.<NEW_LINE>int len = buffer.remaining();<NEW_LINE>SS... | "Unexpected engine result " + engineResult.getStatus()); |
73,231 | public void paintTrack(Graphics graphic) {<NEW_LINE>// This rectangle is the bounding box for the progress bar<NEW_LINE>// portion of the slider. The track is painted in the middle<NEW_LINE>// of this rectangle and the thumb laid overtop.<NEW_LINE>Rectangle track = this.trackRect;<NEW_LINE>// Get the location of the th... | Color original = graphic.getColor(); |
848,906 | protected void initData() {<NEW_LINE>RxRun.runOn(new RxRunnable<List<UserModel>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public List<UserModel> execute() {<NEW_LINE>List<UserEntity> temp = AppDatabase.getAppDatabase(mContext).downloadDao().getAllUser();<NEW_LINE>allItems = new ArrayList<>();<NEW_LINE>for (int i = 0; ... | (), UserModel.class)); |
69,345 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String test = request.getParameter("test");<NEW_LINE>PrintWriter out = response.getWriter();<NEW_LINE>try {<NEW_LINE>out.println(getClass().getSimpleName() + " is starting " + test + "<br>");<N... | println("-----> " + test + " starting"); |
661,379 | public void visit(OWLAnnotationPropertyRangeAxiom ax) {<NEW_LINE>OWLProperty prop = dup(ax.getProperty());<NEW_LINE>IRI range = dup(ax.getRange());<NEW_LINE>if (prop.isObjectPropertyExpression()) {<NEW_LINE>// turn to object property domain<NEW_LINE>OWLClassExpression d = df.getOWLClass(range);<NEW_LINE>LOGGER.warn("An... | LOGGER.warn("Annotation property range axiom turned to data property range after parsing. This could introduce errors if the original range was an anonymous expression: {} is the new domain.", range); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.