idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,591,038 | public static BindDevicesResponse unmarshall(BindDevicesResponse bindDevicesResponse, UnmarshallerContext _ctx) {<NEW_LINE>bindDevicesResponse.setRequestId<MASK><NEW_LINE>bindDevicesResponse.setCode(_ctx.stringValue("BindDevicesResponse.Code"));<NEW_LINE>bindDevicesResponse.setMessage(_ctx.stringValue("BindDevicesRespo... | (_ctx.stringValue("BindDevicesResponse.RequestId")); |
1,706,611 | public ResourceDataSyncDestinationDataSharing unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ResourceDataSyncDestinationDataSharing resourceDataSyncDestinationDataSharing = new ResourceDataSyncDestinationDataSharing();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String curr... | JsonToken token = context.getCurrentToken(); |
1,160,858 | public com.squareup.okhttp.Call geNursingHomeCall(String albertaApiKey, String _id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map vari... | HashMap<String, String>(); |
152,623 | public ResourceTargetDefinition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ResourceTargetDefinition resourceTargetDefinition = new ResourceTargetDefinition();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonT... | String currentParentElement = context.getCurrentParentElement(); |
1,268,344 | public static void main(String[] args) {<NEW_LINE>int[] input_itemsets, output_itemsets, referrence;<NEW_LINE>// the lengths of the two sequences should be able to divided by 16 and at<NEW_LINE>// current stage max_rows needs to equal max_cols<NEW_LINE>if (args.length != 3) {<NEW_LINE>usage();<NEW_LINE>}<NEW_LINE>final... | Arrays.fill(input_itemsets, 0); |
725,883 | public static boolean methodMatches(@NotNull Pair<PsiMethod, PsiSubstitutor> firstPair, @NotNull Pair<PsiMethod, PsiSubstitutor> secondPair) {<NEW_LINE>final PsiMethod firstMethod = firstPair.getFirst();<NEW_LINE>final <MASK><NEW_LINE>if (!firstMethod.getName().equals(secondMethod.getName())) {<NEW_LINE>return false;<N... | PsiMethod secondMethod = secondPair.getFirst(); |
1,097,457 | private byte[] convert2DBiomesTo3D(BaseFullChunk chunk) {<NEW_LINE>PalettedBlockStorage palette = PalettedBlockStorage.createWithDefaultState(Biome.getBiomeIdOrCorrect(chunk.getBiomeId(0, 0)));<NEW_LINE>for (int x = 0; x < 16; x++) {<NEW_LINE>for (int z = 0; z < 16; z++) {<NEW_LINE>int biomeId = Biome.getBiomeIdOrCorre... | .getBiomeId(x, z)); |
1,431,504 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.wsspi.sib.core.ConsumerSession#close()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void close() throws SIResourceException, SIConnectionLostException, SIErrorException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && CoreSPIConsumerSession.tc.isEnt... | CoreSPIConsumerSession.tc, "close", this); |
971,234 | private void embedTraining(final EncogProgramNode node) {<NEW_LINE>final File dataFile = (File) node.getArgs().get(0).getValue();<NEW_LINE>final MLDataSet data = EncogUtility.loadEGB2Memory(dataFile);<NEW_LINE>// generate the input data<NEW_LINE>indentLine("public static final double[][] INPUT_DATA = {");<NEW_LINE>for ... | final StringBuilder line = new StringBuilder(); |
706,200 | final NotifyApplicationStateResult executeNotifyApplicationState(NotifyApplicationStateRequest notifyApplicationStateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(notifyApplicationStateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,673,176 | protected void showJPopupMenu(int x, int y) {<NEW_LINE>dialog.setLocation(x, y);<NEW_LINE>dialog.setVisible(true);<NEW_LINE>// Show the menu centered on the invisible dialog<NEW_LINE>menu.show(dialog.<MASK><NEW_LINE>// Compensate position variance due to off-screen placement<NEW_LINE>Dimension menuSize = menu.getPrefer... | getContentPane(), 0, 0); |
656,387 | public static GetContactFlowVersionResponse unmarshall(GetContactFlowVersionResponse getContactFlowVersionResponse, UnmarshallerContext context) {<NEW_LINE>getContactFlowVersionResponse.setRequestId(context.stringValue("GetContactFlowVersionResponse.RequestId"));<NEW_LINE>getContactFlowVersionResponse.setSuccess(contex... | ("GetContactFlowVersionResponse.ContactFlow.Versions[" + i + "].Canvas")); |
644,576 | @Authenticate(AccessType.UPDATE)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Revert segments replacement", notes = "Revert segments replacement")<NEW_LINE>public Response revertReplaceSegments(@ApiParam(value = "Name of the table", required = true) @PathParam("tableName") String table... | tableType = Constants.validateTableType(tableTypeStr); |
1,638,509 | private static Op compilePattern(PropertyFunctionRegistry registry, BasicPattern pattern, Context context) {<NEW_LINE>// Split into triples and property functions.<NEW_LINE>// 1/ Find property functions.<NEW_LINE>// Property functions may involve other triples (for list arguments)<NEW_LINE>// (but leave the property fu... | BasicPattern triples = new BasicPattern(pattern); |
1,599,278 | Object py_dl_open(VirtualFrame frame, String name_str, int m, @Cached PyObjectHashNode hashNode, @Cached AuditNode auditNode) {<NEW_LINE>int mode = m != Integer.MIN_VALUE <MASK><NEW_LINE>mode |= RTLD_NOW.getValueIfDefined();<NEW_LINE>auditNode.audit("ctypes.dlopen", name_str);<NEW_LINE>CtypesThreadState ctypes = Ctypes... | ? m : RTLD_LOCAL.getValueIfDefined(); |
1,570,032 | private void createClientSubject() {<NEW_LINE>if (clientPrincipal == null)<NEW_LINE>throw new OSecurityAuthenticatorException("OKerberosAuthenticator.createClientSubject() Client Principal cannot be null");<NEW_LINE>if (clientUseTicketCache && clientCCName == null)<NEW_LINE>throw new OSecurityAuthenticatorException("OK... | clientPrincipal, clientUseTicketCache, clientCCName, clientKTName); |
776,908 | private void addBlackBoardAttribute(BlackboardAttribute attr, int artifactTypeId, CaseDbConnection connection) throws SQLException, TskCoreException {<NEW_LINE>PreparedStatement statement;<NEW_LINE>switch(attr.getAttributeType().getValueType()) {<NEW_LINE>case STRING:<NEW_LINE>statement = connection.getPreparedStatemen... | 7, attr.getValueString()); |
464,987 | public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(values.get("serviceName"), con... | "deleteFlag"), convLabelName("Delete Flag")); |
271,384 | public int updateHmilyTransactionStatus(final Long transId, final Integer status) throws HmilyRepositoryException {<NEW_LINE>String path = node.getHmilyTransactionRealPath(transId);<NEW_LINE>Stat stat = new Stat();<NEW_LINE>try {<NEW_LINE>if (checkPath(path, true)) {<NEW_LINE>return FAIL_ROWS;<NEW_LINE>}<NEW_LINE>byte[... | .setUpdateTime(new Date()); |
1,499,775 | public void paintComponent(Graphics g) {<NEW_LINE>if (!isToDrawTabs())<NEW_LINE>return;<NEW_LINE>for (ContentTabLabel each : myTabs) {<NEW_LINE>if (each.isSelected() || each.isHovered()) {<NEW_LINE>Rectangle r = each.getBounds();<NEW_LINE>Graphics2D g2d = (Graphics2D) g.create();<NEW_LINE>g2d.setRenderingHint(Rendering... | setColor(UIUtil.getBorderColor()); |
1,025,849 | public UserKeyPairContainer requestRoomRescueKeyPair(Long roomId, String xSdsDateFormat, String version, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'roomId' is set<NEW_LINE>if (roomId == null) {<NEW_LINE>throw new ApiException(400, "Mis... | ("", "version", version)); |
404,395 | @Override<NEW_LINE>public AsyncResult<V> showAsync(@Nullable Window component) {<NEW_LINE>AsyncResult<V> result = AsyncResult.undefined();<NEW_LINE>if (component == null) {<NEW_LINE>component = SheetMessageUtil.getForemostWindow(null);<NEW_LINE>}<NEW_LINE>final Window finalComponent = component;<NEW_LINE>UIAccess.curre... | buttonMap = new HashMap<>(); |
838,800 | private void completeCodestartArtifact(ObjectMapper mapper, ObjectNode extObject) throws MojoExecutionException {<NEW_LINE>JsonNode mvalue = getJsonElement(extObject, METADATA, "codestart");<NEW_LINE>if (mvalue == null || !mvalue.isObject()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ObjectNode codestartObject = (Obj... | resolve(new DefaultArtifact(codestartArtifact)); |
178,537 | // TemplateWizard specific - Start<NEW_LINE>public Set<DataObject> instantiate(TemplateWizard wiz) throws IOException {<NEW_LINE>FileObject template = Templates.getTemplate(wiz);<NEW_LINE>DataObject dTemplate = DataObject.find(template);<NEW_LINE>SchemaCompiler schemaCompiler = CompilerFinder.findCompiler(project);<NEW... | getFileSystem().refresh(true); |
177,945 | public final ArrContext arr() throws RecognitionException {<NEW_LINE>ArrContext _localctx = new ArrContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>int _alt;<NEW_LINE>setState(66);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(getInterpreter().adaptivePredict(_input, 7, _ctx)) {<N... | enterRule(_localctx, 10, RULE_arr); |
1,474,243 | protected static void collectLibraries(ProjectData project, Program cur, Set<Program> col, TaskMonitor monitor) throws CancelledException {<NEW_LINE>if (!col.add(cur)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>for (String extName : externs.getExternalLibraryNames()) {<NEW_LINE>monitor.checkCanceled();<NEW_... | ExternalManager externs = cur.getExternalManager(); |
804,119 | <T> void processBean(@Observes ProcessBean<T> processBean) {<NEW_LINE>Bean<T> bean = processBean.getBean();<NEW_LINE>for (Type type : bean.getTypes()) {<NEW_LINE>if (!(type instanceof Class<?>)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>// Check if the bean is an RedisURI.<NEW_LINE>if (RedisURI.class.isAssignableFrom((C... | .getName(), qualifiers)); |
1,853,534 | public Request<ResetFpgaImageAttributeRequest> marshall(ResetFpgaImageAttributeRequest resetFpgaImageAttributeRequest) {<NEW_LINE>if (resetFpgaImageAttributeRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ResetFpgaImageAttributeRequest> r... | request.addParameter("Action", "ResetFpgaImageAttribute"); |
136,689 | protected void checkFile(@NotNull GoFile file, @NotNull ProblemsHolder problemsHolder) {<NEW_LINE>if (((ScratchFileType) ScratchFileType.INSTANCE).isMyFileType(file.getVirtualFile()))<NEW_LINE>return;<NEW_LINE>GoPackageClause packageClause = file.getPackage();<NEW_LINE>if (packageClause != null) {<NEW_LINE>String packa... | PsiDirectory dir = file.getContainingDirectory(); |
476,106 | public synchronized void preExpandDeferredValueSetsToTerminologyTables() {<NEW_LINE>if (!myDaoConfig.isEnableTaskPreExpandValueSets()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isNotSafeToPreExpandValueSets()) {<NEW_LINE>ourLog.info("Skipping scheduled pre-expansion of ValueSets while deferred entities are being loade... | termValueSet.setExpansionStatus(TermValueSetPreExpansionStatusEnum.EXPANSION_IN_PROGRESS); |
330,612 | protected void doPushProjectIntoGroupScan(RelOptRuleCall call, ProjectPrel project, ScanPrel scan, JsonTableGroupScan groupScan) {<NEW_LINE>try {<NEW_LINE>DrillRelOptUtil.ProjectPushInfo columnInfo = DrillRelOptUtil.getFieldsInformation(scan.getRowType(), project.getProjects());<NEW_LINE>if (columnInfo == null || Utili... | (columnInfo.getInputReWriter())); |
1,722,592 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View rootView;<NEW_LINE>switch(mDemoPreset) {<NEW_LINE>case RECT:<NEW_LINE>rootView = inflater.inflate(R.layout.fragment_main_rect, container, false);<NEW_LINE>break;<NEW_LINE>case CIRCULAR:<NEW_LINE>rootView = ... | layout.fragment_main_min_max, container, false); |
1,126,538 | public void generalResultMapping(String labeledResult, List<LayoutToken> tokenizations) {<NEW_LINE>if (labeledTokens == null)<NEW_LINE>labeledTokens = new TreeMap<>();<NEW_LINE>TaggingTokenClusteror clusteror = new TaggingTokenClusteror(GrobidModels.HEADER, labeledResult, tokenizations);<NEW_LINE>List<TaggingTokenClust... | get(clusterLabel.getLabel()); |
1,372,462 | private void drawSelectedPoint(Canvas canvas, RotatedTileBox tileBox) {<NEW_LINE>if (selectedImageLocation != null) {<NEW_LINE>canvas.rotate(-tileBox.getRotate(), tileBox.getCenterPixelX(), tileBox.getCenterPixelY());<NEW_LINE>float x = tileBox.getPixXFromLatLon(selectedImageLocation.getLatitude(), selectedImageLocatio... | selectedImageCameraAngle - 180, x, y); |
477,106 | public ConfiguredS3SdkHttpRequest applyEndpointConfiguration(S3EndpointResolverContext context) {<NEW_LINE>S3Resource s3Resource = S3ArnConverter.create().convertArn(Arn.fromString(getBucketName(context)));<NEW_LINE>S3AccessPointResource s3EndpointResource = Validate.isInstanceOf(S3AccessPointResource.class, s3Resource... | of(context.region()); |
905,174 | private void writeOpenTag(String unsafeElementName, List<? extends String> attrs) throws IOException {<NEW_LINE>if (!open) {<NEW_LINE>throw new IllegalStateException();<NEW_LINE>}<NEW_LINE>String elementName = safeName(unsafeElementName);<NEW_LINE>if (!isValidHtmlName(elementName)) {<NEW_LINE>error("Invalid element nam... | Encoding.encodeHtmlAttribOnto(value, output); |
1,617,628 | public int failInProgressUploads(UploadResult fail) {<NEW_LINE><MASK><NEW_LINE>ContentValues cv = new ContentValues();<NEW_LINE>cv.put(ProviderTableMeta.UPLOADS_STATUS, UploadStatus.UPLOAD_FAILED.getValue());<NEW_LINE>cv.put(ProviderTableMeta.UPLOADS_LAST_RESULT, fail != null ? fail.getValue() : UploadResult.UNKNOWN.ge... | Log_OC.v(TAG, "Updating state of any killed upload"); |
485,596 | private static String makeEmoticonPopupText2(CachedImage<Emoticon> emoticonImage, boolean showImage, EmotesetInfo emoteInfo, MyPopup popup) {<NEW_LINE>Emoticon emote = emoticonImage.getObject();<NEW_LINE>String result = "";<NEW_LINE>if (emote.type == Emoticon.Type.TWITCH) {<NEW_LINE>if (emote.subType == Emoticon.SubTyp... | Emoticons.toWriteable(emote.code); |
1,613,284 | public void grow(int newLength) {<NEW_LINE>if (elementType != null) {<NEW_LINE>switch(elementType.getTag()) {<NEW_LINE>case TypeTags.INT_TAG:<NEW_LINE>intValues = <MASK><NEW_LINE>break;<NEW_LINE>case TypeTags.BOOLEAN_TAG:<NEW_LINE>booleanValues = Arrays.copyOf(booleanValues, newLength);<NEW_LINE>break;<NEW_LINE>case Ty... | Arrays.copyOf(intValues, newLength); |
1,698,752 | public List<T> call() throws Exception {<NEW_LINE>@Nullable<NEW_LINE>Bson query = criteria != <MASK><NEW_LINE>FindIterable<T> cursor = collection().find(query);<NEW_LINE>if (!exclusion.isNil()) {<NEW_LINE>cursor.projection(convertToBson(exclusion));<NEW_LINE>}<NEW_LINE>if (!ordering.isNil()) {<NEW_LINE>cursor.sort(conv... | null ? convertToBson(criteria) : null; |
1,152,625 | // init various application wide stores for handling history and debug output.<NEW_LINE>private void initMBeans(Configuration pConfig) {<NEW_LINE>int maxEntries = pConfig.getAsInt(HISTORY_MAX_ENTRIES);<NEW_LINE>int maxDebugEntries = pConfig.getAsInt(DEBUG_MAX_ENTRIES);<NEW_LINE>historyStore = new HistoryStore(maxEntrie... | , pConfig.getAsBoolean(DEBUG)); |
1,130,302 | public Void visitIdentifier(IdentifierTree identifierTree, Void unused) {<NEW_LINE>if (identifierTree.getName().contentEquals("this")) {<NEW_LINE>return super.visitIdentifier(identifierTree, unused);<NEW_LINE>}<NEW_LINE>Symbol symbol = getSymbol(identifierTree);<NEW_LINE>if (symbol == null || ASTHelpers.isLocal(symbol)... | "." + symbol.getQualifiedName()); |
1,550,342 | final CreateStackResult executeCreateStack(CreateStackRequest createStackRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createStackRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<CreateStackRequest> request = null;<NEW_LINE>Respo... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
351,461 | public ObservableSource<RxBleConnection> call() {<NEW_LINE>final ConnectionComponent connectionComponent = connectionComponentBuilder.autoConnect(options.autoConnect).suppressOperationChecks(options.suppressOperationCheck).operationTimeout(options.operationTimeout).build();<NEW_LINE>final Set<ConnectionSubscriptionWatc... | (callbacksScheduler).unsubscribeOn(callbacksScheduler); |
166,913 | public static ListNodeIOResponse unmarshall(ListNodeIOResponse listNodeIOResponse, UnmarshallerContext _ctx) {<NEW_LINE>listNodeIOResponse.setRequestId(_ctx.stringValue("ListNodeIOResponse.RequestId"));<NEW_LINE>listNodeIOResponse.setHttpStatusCode(_ctx.integerValue("ListNodeIOResponse.HttpStatusCode"));<NEW_LINE>listN... | (_ctx.booleanValue("ListNodeIOResponse.Success")); |
298,724 | public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState state) {<NEW_LINE>Tree receiver;<NEW_LINE>Tree argument;<NEW_LINE>List<? extends ExpressionTree<MASK><NEW_LINE>Type bigDecimal = JAVA_MATH_BIGDECIMAL.get(state);<NEW_LINE>boolean handleNulls;<NEW_LINE>if (staticEqualsInvocation().matches(t... | > arguments = tree.getArguments(); |
1,521,494 | public SyntheticFieldBinding addSyntheticFieldForSwitchEnum(char[] fieldName, String key) {<NEW_LINE>if (!isPrototype())<NEW_LINE>throw new IllegalStateException();<NEW_LINE>if (this.synthetics == null)<NEW_LINE>this.synthetics = new HashMap[MAX_SYNTHETICS];<NEW_LINE>if (this.synthetics[SourceTypeBinding.FIELD_EMUL] ==... | == null ? 0 : fieldDeclarations.length; |
951,754 | private Task<Map<String, Object>> updateProfile(Map<String, Object> arguments) {<NEW_LINE>return Tasks.call(cachedThreadPool, () -> {<NEW_LINE>FirebaseUser firebaseUser = getCurrentUser(arguments);<NEW_LINE>if (firebaseUser == null) {<NEW_LINE>throw FlutterFirebaseAuthPluginException.noUser();<NEW_LINE>}<NEW_LINE>@Supp... | builder = new UserProfileChangeRequest.Builder(); |
737,372 | public static Order adaptOrder(CoinbaseProOrder order) {<NEW_LINE>OrderType type = "buy".equals(order.getSide()) ? OrderType.BID : OrderType.ASK;<NEW_LINE>CurrencyPair currencyPair = new CurrencyPair(order.getProductId().replace('-', '/'));<NEW_LINE>Order.Builder builder = null;<NEW_LINE>if (order.getType() == null) {<... | MarketOrder.Builder(type, currencyPair); |
2,542 | public ModelPackageValidationProfile unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ModelPackageValidationProfile modelPackageValidationProfile = new ModelPackageValidationProfile();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth... | String currentParentElement = context.getCurrentParentElement(); |
460,052 | private JComponent buildProjectOverview() {<NEW_LINE>metrics = new MetricsPanel();<NEW_LINE>JXToolBar toolbar = buildOverviewToolbar();<NEW_LINE>metrics.add(toolbar, BorderLayout.NORTH);<NEW_LINE>MetricsSection <MASK><NEW_LINE>section.addMetric(ModelItemIconFactory.getIcon(Project.class), "File Path", MetricType.URL);<... | section = metrics.addSection("Project Summary"); |
1,780,332 | public static void copyView(final JFrame parent, final INaviModule module, final INaviView view) {<NEW_LINE>Preconditions.checkNotNull(parent, "IE01832: Parent argument can not be null");<NEW_LINE>Preconditions.checkNotNull(module, "IE01833: Module argument can not be null");<NEW_LINE>Preconditions.checkNotNull(view, "... | CViewInserter.insertView(view, newView); |
472,561 | public MOrder createPOForVendor(int bPartnerId, MOrder salesOrder) {<NEW_LINE>MOrder purchaseOrder = new MOrder(getCtx(), 0, get_TrxName());<NEW_LINE>purchaseOrder.setClientOrg(salesOrder.getAD_Client_ID(), salesOrder.getAD_Org_ID());<NEW_LINE>purchaseOrder.setIsSOTrx(false);<NEW_LINE>purchaseOrder.setC_DocTypeTarget_I... | ), bPartnerId, get_TrxName()); |
252,641 | public static org.bouncycastle.crypto.tls.Certificate loadTLSCertificate(KeyStore keyStore, String alias) {<NEW_LINE>try {<NEW_LINE>if (alias == null || keyStore == null) {<NEW_LINE>throw new ConfigurationException("The certificate cannot be fetched. Have you provided correct " + "certificate alias and key? (Current al... | "The certificate cannot be fetched. Have you provided correct " + "certificate alias and key? (Current alias: " + alias + ")"); |
58,183 | private void change(DiffXEvent e, int mod) throws IOException {<NEW_LINE>if (!this.isSetup) {<NEW_LINE>setUpXML();<NEW_LINE>}<NEW_LINE>// change in element<NEW_LINE>if (e instanceof OpenElementEvent) {<NEW_LINE>flushAttributes();<NEW_LINE>endTextChange();<NEW_LINE>this.xml.openElement(mod > 0 ? Constants.INSERT_NS_URI ... | .push((AttributeEvent) e); |
458,408 | protected void initChannel(Channel ch) throws Exception {<NEW_LINE>ChannelPipeline p = ch.pipeline();<NEW_LINE>p.addLast(MetricRecordingHandler.NAME, new MetricRecordingHandler());<NEW_LINE>p.addLast("inflateDecoder", new Lz4FrameDecoder());<NEW_LINE>p.addLast("lengthFrameDecoder", new LengthFieldBasedFrameDecoder(8388... | "connectionHandler", new ServerConnectionHandler(networkSystem)); |
823,292 | private void configureCommonWebAnnotation(TargetConfig targetConfig, AnnotationInfo webAnnotation, String targetConfigType) {<NEW_LINE>AnnotationValue asyncSupportedValue = webAnnotation.getValue("asyncSupported");<NEW_LINE>boolean asyncSupported = (null == asyncSupportedValue ? false : asyncSupportedValue.getBooleanVa... | AnnotationInfo initParamAnnotation = initParam.getAnnotationValue(); |
1,385,378 | private static Sorter.DocMap sort(final int maxDoc, IndexSorter.DocComparator comparator) {<NEW_LINE>// check if the index is sorted<NEW_LINE>boolean sorted = true;<NEW_LINE>for (int i = 1; i < maxDoc; ++i) {<NEW_LINE>if (comparator.compare(i - 1, i) > 0) {<NEW_LINE>sorted = false;<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>}... | ] docs = new int[maxDoc]; |
1,160,986 | private void handleFilterResult(@Nullable Intent data) {<NEW_LINE>if (data == null || mFilterController == null)<NEW_LINE>return;<NEW_LINE>String query;<NEW_LINE>if (data.hasExtra(DiscoveryActivity.EXTRA_FILTER_SEARCH_QUERY))<NEW_LINE>query = data.getStringExtra(DiscoveryActivity.EXTRA_FILTER_SEARCH_QUERY);<NEW_LINE>el... | () : mSearchController.getFilterParams(); |
1,584,708 | private Mono<Response<OutboundEnvironmentEndpointListInner>> listByServiceWithResponseAsync(String resourceGroupName, String serviceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cann... | error(new IllegalArgumentException("Parameter serviceName is required and cannot be null.")); |
1,737,877 | public void run() {<NEW_LINE>try {<NEW_LINE>if (released)<NEW_LINE>return;<NEW_LINE>System.out.println("about to run " + sql);<NEW_LINE>DataSource ds = (DataSource) new InitialContext().lookup(jndiName);<NEW_LINE>Connection con = ds.getConnection();<NEW_LINE>try {<NEW_LINE>if (released)<NEW_LINE>return;<NEW_LINE>Statem... | updateCount = stmt.executeUpdate(sql); |
1,269,652 | public com.amazonaws.services.simplesystemsmanagement.model.InvalidCommandIdException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simplesystemsmanagement.model.InvalidCommandIdException invalidCommandIdException = new com.amazonaws.services.<MASK><NEW_LINE>i... | simplesystemsmanagement.model.InvalidCommandIdException(null); |
680,710 | public TraversalControl visitArgument(Argument argument, TraverserContext<Node> context) {<NEW_LINE>GraphQLArgument graphQLArgumentDefinition;<NEW_LINE>// An argument is either from a applied query directive or from a field<NEW_LINE>if (context.getVarFromParents(GraphQLDirective.class) != null) {<NEW_LINE>GraphQLDirect... | ).value(newValue))); |
977,160 | public Map<String, List<String>> listUnits(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>Map<String, List<String>> unitMap = new HashMap<>();<NEW_LINE>List<AttendanceAdmin> unitlist = new ArrayList<>();<NEW_LINE>List<String> companyList = new ArrayList<String>();<NEW_LINE>List<String> deptList = new Arra... | CriteriaBuilder cb = em.getCriteriaBuilder(); |
1,724,963 | public static SendScreenStartResponse unmarshall(SendScreenStartResponse sendScreenStartResponse, UnmarshallerContext _ctx) {<NEW_LINE>sendScreenStartResponse.setRequestId(_ctx.stringValue("SendScreenStartResponse.RequestId"));<NEW_LINE>sendScreenStartResponse.setMessage(_ctx.stringValue("SendScreenStartResponse.Messag... | (_ctx.stringValue("SendScreenStartResponse.Data.SignallingServerConfig.ShareScreenMeetingRobUrl")); |
282,020 | public static PMTSection parsePMT(ByteBuffer data) {<NEW_LINE>PSISection psi = PSISection.parsePSI(data);<NEW_LINE>int w1 = data.getShort() & 0xffff;<NEW_LINE>int pcrPid = w1 & 0x1fff;<NEW_LINE>int w2 = data.getShort() & 0xffff;<NEW_LINE>int programInfoLength = w2 & 0xfff;<NEW_LINE>List<Tag> tags = parseTags(NIOUtils.r... | = data.get() & 0xff; |
7,176 | private static double parseTime(String str, MetricType type) {<NEW_LINE>String timePattern = "|Time";<NEW_LINE>int start = str.indexOf(timePattern);<NEW_LINE>if (start < 0) {<NEW_LINE>return Double.NaN;<NEW_LINE>}<NEW_LINE>start += timePattern.length();<NEW_LINE>int openBraceIndex = str.indexOf('(', start);<NEW_LINE>if... | str.indexOf('+', start); |
102,703 | public Space visitSpace(Space space, Space.Location loc, P p) {<NEW_LINE>Space s = space.withWhitespace(normalizeAfterFirstNewline(space.getWhitespace()));<NEW_LINE>return s.withComments(ListUtils.map(s.getComments(), comment -> {<NEW_LINE>Comment c = comment;<NEW_LINE>if (c.isMultiline()) {<NEW_LINE>if (c instanceof J... | .getMargin(), true)); |
5,743 | public synchronized void reattach(SamplerConfigurationImpl samplerConfig) throws IOException {<NEW_LINE>if (!tabletReservedReaders.isEmpty())<NEW_LINE>throw new IllegalStateException();<NEW_LINE>List<String> files = dataSources.stream().map(x -> x.file).collect(Collectors.toList());<NEW_LINE>Map<FileSKVIterator, String... | map = new HashMap<>(); |
1,340,473 | public RocketComponent pick(GLAutoDrawable drawable, FlightConfiguration configuration, Point p, Set<RocketComponent> ignore) {<NEW_LINE>final GL2 gl = drawable.getGL().getGL2();<NEW_LINE>gl.glEnable(GL.GL_DEPTH_TEST);<NEW_LINE>// Store a vector of pickable parts.<NEW_LINE>final Map<Integer, RocketComponent> selectionM... | selectionMap.put(hashCode, comp); |
327,007 | public static URL convertToURL(@Nonnull String vfsUrl) {<NEW_LINE>if (vfsUrl.startsWith("jar://") || vfsUrl.startsWith(StandardFileSystems.ZIP_PROTOCOL_PREFIX)) {<NEW_LINE>try {<NEW_LINE>// jar:// and zip:// have the same lenght<NEW_LINE>return new URL("jar:file:///" + vfsUrl.substring(StandardFileSystems.ZIP_PROTOCOL_... | LOG.debug("Malformed VFS URL: " + vfsUrl); |
738,745 | void resolve() throws InjectionException {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "resolve");<NEW_LINE>Map<String, Object> props = new HashMap<String, Object>();<NEW_LINE>if (properties != null) {<NEW_LINE>int i = 0;<... | addOrRemoveProperty(props, KEY_DESCRIPTION, description); |
896,568 | private void createNutchUrls() throws IOException, URISyntaxException {<NEW_LINE>log.info("Creating nutch urls ...");<NEW_LINE>JobConf job = new JobConf(NutchData.class);<NEW_LINE>Path urls = new Path(<MASK><NEW_LINE>Utils.checkHdfsPath(urls);<NEW_LINE>String jobname = "Create nutch urls";<NEW_LINE>job.setJobName(jobna... | options.getWorkPath(), URLS_DIR_NAME); |
327,389 | protected void executePlan(TaskMonitor monitor) throws Exception {<NEW_LINE>Program dest = getDestination().getOrCreateProgram(source, this);<NEW_LINE>boolean doRelease = !Arrays.asList(programManager.getAllOpenPrograms()).contains(dest);<NEW_LINE>TraceRecorder recorder = getRecorderIfEnabledAndReadsPresent();<NEW_LINE... | entry, dest, recorder, monitor); |
1,346,076 | public static void notifyRunConfiguration(Project project) {<NEW_LINE>final String projectName = NodeJsUtils.getProjectDisplayName(project);<NEW_LINE>final NodeJsSupport nodeJsSupport = NodeJsSupport.forProject(project);<NEW_LINE>final NodeJsPreferences preferences = nodeJsSupport.getPreferences();<NEW_LINE>assert !pre... | getDefault().setStatusText(text); |
1,814,798 | private void addTab(String url, String content) throws Exception {<NEW_LINE>int ix = url.startsWith("file:") ? url.lastIndexOf(File.separatorChar) : url.lastIndexOf('/');<NEW_LINE>if (ix == -1) {<NEW_LINE>ix = url.lastIndexOf('/');<NEW_LINE>}<NEW_LINE>String title = url.substring(ix + 1);<NEW_LINE>metrics.getSection(DE... | new JPanel(new BorderLayout()); |
231,145 | public void read(org.apache.thrift.protocol.TProtocol prot, TabletStats struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(8);<NEW_LINE>if (incoming.get(0)) {<NEW... | struct.splits.read(iprot); |
1,730,987 | protected void paintHorizontalAxis(Graphics g, Rectangle clip, Rectangle chartMask) {<NEW_LINE>paintHorizontalBasis(g, clip, chartMask);<NEW_LINE>// -1: extra 1px for axis<NEW_LINE>int viewStart = SwingUtilities.convertPoint(this, chartMask.x, 0, chart).x - 1;<NEW_LINE>// +2 extra 1px + 1px for axis<NEW_LINE>int viewEn... | AxisMark mark = marks.next(); |
621,918 | // endregion<NEW_LINE>// region Operations<NEW_LINE>List<Long> includeUpdateBatch(TableKeyBatch batch, long batchOffset, int generation) {<NEW_LINE>val result = new ArrayList<Long>(batch.getItems().size());<NEW_LINE>synchronized (this) {<NEW_LINE>for (TableKeyBatch.Item item : batch.getItems()) {<NEW_LINE>long itemOffs... | , batch.isRemoval())); |
556,339 | // prepare<NEW_LINE>@Override<NEW_LINE>protected String doIt() {<NEW_LINE>if (from_AD_ImpFormat_ID.equals(to_AD_ImpFormat_ID)) {<NEW_LINE>throw new AdempiereException("Copying into same import format is not allowed");<NEW_LINE>}<NEW_LINE>final I_AD_ImpFormat from = retrieveImpFormatRecord(from_AD_ImpFormat_ID);<NEW_LIN... | final I_AD_ImpFormat target = retrieveImpFormatRecord(to_AD_ImpFormat_ID); |
923,057 | final DescribeOrganizationHealthResult executeDescribeOrganizationHealth(DescribeOrganizationHealthRequest describeOrganizationHealthRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOrganizationHealthRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,804,639 | public void init(IStreamDataExporterSite site) throws DBException {<NEW_LINE>super.init(site);<NEW_LINE>Map<String, Object> properties = site.getProperties();<NEW_LINE>this.delimiter = StreamTransferUtils.getDelimiterString(properties, PROP_DELIMITER);<NEW_LINE>this.rowDelimiter = StreamTransferUtils.getDelimiterString... | nullStringProp = properties.get(PROP_NULL_STRING); |
172,574 | public int classifyPathObjects(Collection<PathObject> pathObjects) {<NEW_LINE>int counter = 0;<NEW_LINE>// PathClass classPositive = PathClassFactory.getDefaultPathClass(PathClassFactory.PathClasses.POSITIVE);<NEW_LINE>// PathClass classNegative = PathClassFactory.getDefaultPathClass(PathClassFactory.PathClasses.NEGATI... | classTwoPlus, pathObjectTemp.getClassProbability()); |
1,612,257 | private static TsModel transformBeanPropertyTypes(TsModel tsModel, TsType.Transformer transformer) {<NEW_LINE>final List<TsBeanModel> newBeans = new ArrayList<>();<NEW_LINE>for (TsBeanModel bean : tsModel.getBeans()) {<NEW_LINE>final TsType.Context context = new TsType.Context();<NEW_LINE>final List<TsPropertyModel> ne... | .getName(), newParameterType)); |
183,664 | private static Vector apply(CompLongDoubleVector v1, LongDoubleVector v2, Binary op) {<NEW_LINE>LongDoubleVector[] parts = v1.getPartitions();<NEW_LINE>Storage[] resParts = StorageSwitch.<MASK><NEW_LINE>if (!op.isKeepStorage()) {<NEW_LINE>for (int i = 0; i < parts.length; i++) {<NEW_LINE>if (parts[i].getStorage() insta... | applyComp(v1, v2, op); |
1,074,909 | private static GnssStatus createFrom(List<GnssSatelliteInfo> satelliteInfos) {<NEW_LINE>int svCount = satelliteInfos.size();<NEW_LINE>int[] svidWithFlags = new int[svCount];<NEW_LINE>float[] cn0DbHz = new float[svCount];<NEW_LINE>float[] elevations = new float[svCount];<NEW_LINE>float[] azimuths = new float[svCount];<N... | [].class, azimuths)); |
1,763,737 | protected void init() {<NEW_LINE>myRoot = new Wrapper();<NEW_LINE>OnePixelSplitter splitter = new OnePixelSplitter(false, 0.5f);<NEW_LINE>myRoot.setContent(splitter);<NEW_LINE>myDescriptionPanel = new PluginDescriptionPanel();<NEW_LINE>splitter.setSecondComponent(myDescriptionPanel.getPanel());<NEW_LINE>myTablePanel = ... | new JPanel(new BorderLayout()); |
876,517 | public boolean authorizeStore(MerchantStore store, String path) {<NEW_LINE>Validate.notNull(store, "MerchantStore cannot be null");<NEW_LINE>Authentication authentication = SecurityContextHolder<MASK><NEW_LINE>if (!StringUtils.isBlank(path) && path.contains(PRIVATE_PATH)) {<NEW_LINE>Validate.notNull(authentication, "Do... | .getContext().getAuthentication(); |
57,937 | public static AnalysisLimits validateAndSetDefaults(@Nullable AnalysisLimits source, @Nullable ByteSizeValue maxModelMemoryLimit, long defaultModelMemoryLimit) {<NEW_LINE>boolean maxModelMemoryIsSet = maxModelMemoryLimit != null <MASK><NEW_LINE>long modelMemoryLimit = defaultModelMemoryLimit;<NEW_LINE>if (maxModelMemor... | && maxModelMemoryLimit.getMb() > 0; |
1,615,249 | static double[][] of(double[] data, double[] breaks) {<NEW_LINE>int k = breaks.length - 1;<NEW_LINE>if (k <= 1) {<NEW_LINE>throw new IllegalArgumentException("Invalid number of bins: " + k);<NEW_LINE>}<NEW_LINE>double[][] freq = <MASK><NEW_LINE>for (int i = 0; i < k; i++) {<NEW_LINE>freq[0][i] = breaks[i];<NEW_LINE>fre... | new double[3][k]; |
775,859 | private boolean doCopy(FileObject source, File target) throws IOException {<NEW_LINE>LOGGER.log(Level.FINE, "Copying file {0} -> {1}", new Object[] { getPath(source), target });<NEW_LINE>File targetParent = target.getParentFile();<NEW_LINE>if (source.isData()) {<NEW_LINE>doDelete(target);<NEW_LINE>FileObject <MASK><NEW... | parent = FileUtil.createFolder(targetParent); |
1,014,108 | private void initialize() {<NEW_LINE>mAddWebServicePresenter.setView(this, new TestWebServiceView() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void webServiceTested(boolean status) {<NEW_LINE>if (status) {<NEW_LINE>showSnackbar(getView(), R.string.valid_web_service);<NEW_LINE>} else {<NEW_LINE>showSnackbar(getView(... | showSnackbar(getView(), s); |
203,906 | private void parseRequest(FitNesseContext context, Request request) {<NEW_LINE>user = request.getAuthorizationUsername();<NEW_LINE>childName = request.getInput(EditResponder.PAGE_NAME);<NEW_LINE>childName = childName == null ? "null" : childName;<NEW_LINE>childPath = PathParser.parse(childName);<NEW_LINE>WikiPagePath c... | request.getInput(EditResponder.CONTENT_INPUT_NAME); |
492,755 | public Image generateImage(InputStream input) throws IOException {<NEW_LINE>try {<NEW_LINE>byte[] head = new byte[256];<NEW_LINE>input.read(head);<NEW_LINE>ByteArrayInputStream headByteStream = new ByteArrayInputStream(head);<NEW_LINE>Charset cs = getJavaCoreCodePage(headByteStream);<NEW_LINE>SequenceInputStream stream... | IOException e1 = new IOException("Error parsing Javacore"); |
250,199 | public void drawComponent(TextGUIGraphics graphics, CheckBox component) {<NEW_LINE><MASK><NEW_LINE>if (component.isFocused()) {<NEW_LINE>graphics.applyThemeStyle(themeDefinition.getActive());<NEW_LINE>} else {<NEW_LINE>graphics.applyThemeStyle(themeDefinition.getNormal());<NEW_LINE>}<NEW_LINE>graphics.fill(' ');<NEW_LI... | ThemeDefinition themeDefinition = component.getThemeDefinition(); |
27,070 | private static AlertResult checkWeChatSendMsgResult(String result) {<NEW_LINE>AlertResult alertResult = new AlertResult();<NEW_LINE>alertResult.setStatus(ALERT_STATUS);<NEW_LINE>if (null == result) {<NEW_LINE>alertResult.setMessage("we chat send fail");<NEW_LINE>logger.info("send we chat msg error,resp is null");<NEW_L... | parseObject(result, WeChatSendMsgResponse.class); |
1,621,529 | public Status update(String table, String key, Map<String, ByteIterator> values) {<NEW_LINE>try {<NEW_LINE>if (!transactionUpdate) {<NEW_LINE>BaseDocument updateDoc = new BaseDocument();<NEW_LINE>for (Entry<String, ByteIterator> field : values.entrySet()) {<NEW_LINE>updateDoc.addAttribute(field.getKey(), byteIteratorTo... | (field.getValue())); |
210,304 | protected void initialize(final Window owner, final StyleId id, final String title) {<NEW_LINE>// Slightly modified default behavior for parentless dialogs<NEW_LINE>if (owner == ProprietaryUtils.getSharedOwnerFrame()) {<NEW_LINE>addWindowListener(ProprietaryUtils.getSharedOwnerFrameShutdownListener());<NEW_LINE>}<NEW_L... | .this, WindowEvent.WINDOW_CLOSING)); |
1,449,875 | private Mono<PagedResponse<BillingPermissionsPropertiesInner>> listByBillingProfileSinglePageAsync(String billingAccountName, String billingProfileName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is re... | error(new IllegalArgumentException("Parameter billingAccountName is required and cannot be null.")); |
1,086,084 | private void notifyIndividualCallbacks(Response<MultiplexedResponseContent> muxResponse) {<NEW_LINE>IndividualResponseMap individualResponses = muxResponse.getEntity().getResponses();<NEW_LINE>for (IndividualResponseMap.Entry<String, IndividualResponse> individualResponseMapEntry : individualResponses.entrySet()) {<NEW... | valueOf(individualResponseMapEntry.getKey()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.