idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,534,534 | private Map executeUDP(Map data_to_send, InetAddress bind_ip, int bind_port, boolean v6) throws Exception {<NEW_LINE>if (COConfigurationManager.getBooleanParameter("update.anonymous")) {<NEW_LINE>throw (new Exception("UDP disabled for anonymous updates"));<NEW_LINE>}<NEW_LINE>if (v6 && !enable_v6) {<NEW_LINE>throw (new... | Map reply = reply_packet.getPayload(); |
230,262 | private static Pair<ExprNode, ExprTableAccessNode> handleTableSubchain(List<ExprNode> tableKeys, List<Chainable> chain, TableMetaData table, Function<List<Chainable>, ExprDotNodeImpl> dotNodeFunction) {<NEW_LINE>if (chain.isEmpty()) {<NEW_LINE>ExprTableAccessNodeTopLevel node = new ExprTableAccessNodeTopLevel(table.get... | 1, chain.size()); |
472,627 | public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException {<NEW_LINE>this.phaseType = in.readBoolean() ? PhaseType.valueOf(in.readUTF()) : null;<NEW_LINE>this.fromProduct = (DefaultProduct) in.readObject();<NEW_LINE>this.fromProductCategory = in.readBoolean() ? ProductCategory.valueOf(in... | (DefaultPriceList) in.readObject(); |
816,271 | public void removeMarker(BlockPos pos) {<NEW_LINE>if (positions.getFirst().equals(pos)) {<NEW_LINE>positions.removeFirst();<NEW_LINE>loop = false;<NEW_LINE>if (positions.size() < 2) {<NEW_LINE>positions.clear();<NEW_LINE>}<NEW_LINE>subCache.refreshConnection(this);<NEW_LINE>} else if (positions.getLast().equals(pos)) {... | PathConnection conB = new PathConnection(subCache); |
388,501 | public void rollbackToSavepoint(long savepointId) {<NEW_LINE>long lastState = setStatus(STATUS_ROLLING_BACK);<NEW_LINE>long logId = getLogId(lastState);<NEW_LINE>boolean success;<NEW_LINE>try {<NEW_LINE>store.<MASK><NEW_LINE>} finally {<NEW_LINE>notifyAllWaitingTransactions();<NEW_LINE>long expectedState = composeState... | rollbackTo(this, logId, savepointId); |
873,030 | public void save(ServerRow row, PSMatrixSaveContext saveContext, MatrixPartitionMeta meta, DataOutputStream out) throws IOException {<NEW_LINE>if (saveContext.cloneFirst()) {<NEW_LINE>row = (ServerRow) row.adaptiveClone();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>row.startWrite();<NEW_LINE>if (row instanceof ServerIntFloatRo... | row, saveContext, meta, out); |
429,050 | private void loadSkinFile(String f, JFrame frm) {<NEW_LINE>try {<NEW_LINE>File fsFile = new File(f);<NEW_LINE>if (fsFile.exists()) {<NEW_LINE>f = fsFile.toURI().toString();<NEW_LINE>}<NEW_LINE>if (f.contains("://") || f.startsWith("file:")) {<NEW_LINE>try {<NEW_LINE>// load Via URL loading<NEW_LINE>loadSkinFile(new URL... | ).openStream(), frm); |
574,924 | private boolean validateOwnership(final ImageTypeDTO imageType) throws ImageMgmtValidationException {<NEW_LINE>// Check if ownership record exists<NEW_LINE>if (CollectionUtils.isEmpty(imageType.getOwnerships()) || imageType.getOwnerships().size() < 2) {<NEW_LINE>log.error("Please specify at least two owners for the ima... | "Please specify at least one ADMIN owner for image type: {} ", imageType.getName()); |
369,807 | private void initButtons() {<NEW_LINE>buttonXneg = createJogButton("X-");<NEW_LINE>buttonXneg.addActionListener(event -> moveMachine(-1, 0, 0));<NEW_LINE>buttonXpos = createJogButton("X+");<NEW_LINE>buttonXpos.addActionListener(event -> moveMachine(1, 0, 0));<NEW_LINE>buttonYneg = createJogButton("Y-");<NEW_LINE>button... | (0, 0, 1)); |
1,597,196 | public final MergeMatchedContext mergeMatched() throws RecognitionException {<NEW_LINE>MergeMatchedContext _localctx = new MergeMatchedContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 46, RULE_mergeMatched);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(787)... | _errHandler.reportError(this, re); |
1,803,254 | public void loadProperties(Properties properties) {<NEW_LINE>Reader reader = new Reader(properties);<NEW_LINE>this.server = reader.get("ebean.redis.server", server);<NEW_LINE>this.port = reader.getInt("ebean.redis.port", port);<NEW_LINE>this.ssl = reader.getBool("ebean.redis.ssl", ssl);<NEW_LINE>this.minIdle = reader.g... | reader.getInt("ebean.redis.timeout", timeout); |
1,806,623 | private void createLocFileSymlinks(final IlluminaFileUtil fileUtil, final int lane) {<NEW_LINE>final File baseFile = new File(BASECALLS_DIR.getParentFile().getAbsolutePath() + File.separator + AbstractIlluminaPositionFileReader.S_LOCS_FILE);<NEW_LINE>final File newFileBase = new File(baseFile.getParent() + File.separat... | format("s_%d_%d.locs", lane, tile); |
385,186 | public Builder config(Config config) {<NEW_LINE>config.get("optional").asBoolean().ifPresent(this::optional);<NEW_LINE>config.get("authenticate").asBoolean(<MASK><NEW_LINE>config.get("propagate").asBoolean().ifPresent(this::propagate);<NEW_LINE>config.get("allow-impersonation").asBoolean().ifPresent(this::allowImperson... | ).ifPresent(this::authenticate); |
1,000,407 | public boolean matchesAsSource(final IZoomSource zoomSource) {<NEW_LINE>if (tableRecordIdTarget) {<NEW_LINE>// the source always matches if the target is ReferenceTarget<NEW_LINE>logger.debug("matchesAsSource - return true because tableRecordIdTarget=true; this={}", this);<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (... | "whereClause='{}' matches source='{}': {}", parsedWhere, zoomSource, match); |
1,504,272 | private String buildGlobalDictAndEncodeSourceTable(EtlTable table, long tableId) {<NEW_LINE>// dict column map<NEW_LINE>MultiValueMap dictColumnMap = new MultiValueMap();<NEW_LINE>for (String dictColumn : tableToBitmapDictColumns.get(tableId)) {<NEW_LINE>dictColumnMap.put(dictColumn, null);<NEW_LINE>}<NEW_LINE>// hive ... | > mapSideJoinColumns = Lists.newArrayList(); |
1,173,373 | final UnlabelParameterVersionResult executeUnlabelParameterVersion(UnlabelParameterVersionRequest unlabelParameterVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(unlabelParameterVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | (super.beforeMarshalling(unlabelParameterVersionRequest)); |
1,101,879 | public static EObject hibernate(EProc self, EObject a1, EObject a2, EObject a3) {<NEW_LINE>EAtom m = a1.testAtom();<NEW_LINE>EAtom f = a2.testAtom();<NEW_LINE>ESeq a = a3.testSeq();<NEW_LINE>if (m == null || f == null || a == null) {<NEW_LINE>throw ERT.badarg(a1, a2, a3);<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>EFun target... | int arity = a.length(); |
1,283,286 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.ws.sib.msgstore.transactions.TransactionCallback#afterCompletion(com.ibm.ws.sib.msgstore.transactions.Transaction, boolean)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void afterCompletion(TransactionCommon transaction, boolean committed) {<NEW_LINE>if (... | Boolean.valueOf(committed) }); |
609,096 | public void execute(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity) {<NEW_LINE>RepetitionRule repetitionRule = ExpressionUtil.getRepetitionRule(planItemInstanceEntity);<NEW_LINE>if (repetitionRule != null && ExpressionUtil.evaluateRepetitionRule(commandContext, planItemInstanceEntity, plan... | eventPlanItemInstanceEntity.setState(PlanItemInstanceState.AVAILABLE); |
616,288 | public static FeedbackQuestionAttributes valueOf(FeedbackQuestion fq) {<NEW_LINE>FeedbackQuestionAttributes faq = new FeedbackQuestionAttributes();<NEW_LINE>faq<MASK><NEW_LINE>faq.courseId = fq.getCourseId();<NEW_LINE>faq.questionDetails = deserializeFeedbackQuestionDetails(fq.getQuestionText(), fq.getQuestionType());<... | .feedbackSessionName = fq.getFeedbackSessionName(); |
423,064 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String applicationFlag) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>Applicati... | jsonElement = converter.assemble(items); |
87,967 | public void arrangeSheet(short cmd) throws Exception {<NEW_LINE>JInternalFrame[] frames = desk.getAllFrames();<NEW_LINE>if (frames.length == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int x = 0, y = 0, w = 450, h = 280;<NEW_LINE>switch(cmd) {<NEW_LINE>case GC.iCASCADE:<NEW_LINE>for (int i = 0; i < frames.length; i++) {<... | int deskWidth = desk.getWidth(); |
1,474,217 | public Result render(Context ctx, Throwable cause, StatusCode code) {<NEW_LINE>try {<NEW_LINE>List<Frame> frames = Frame.toFrames(locator, cause);<NEW_LINE>if (frames.isEmpty()) {<NEW_LINE>return Result.skip();<NEW_LINE>}<NEW_LINE>StringWriter stacktrace = new StringWriter();<NEW_LINE>cause.printStackTrace(new PrintWri... | model.put("frames", frames); |
753,978 | public void readFromFile(java.io.File configurationFile) {<NEW_LINE>try {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>if (configurationFile.getName().endsWith(".xml")) {<NEW_LINE>properties.loadFromXML(new FileInputStream(configurationFile));<NEW_LINE>} else {<NEW_LINE>properties.load(new FileInputStrea... | (key).split("\\s+"); |
142,563 | public void encode(SerializationContext context, UaEncoder encoder, SubscriptionDiagnosticsDataType value) {<NEW_LINE>encoder.writeNodeId("SessionId", value.getSessionId());<NEW_LINE>encoder.writeUInt32("SubscriptionId", value.getSubscriptionId());<NEW_LINE>encoder.writeByte("Priority", value.getPriority());<NEW_LINE>e... | "LatePublishRequestCount", value.getLatePublishRequestCount()); |
321,828 | // If the class of an object is "type", the object must be a class and as "type" is the base<NEW_LINE>// metaclass, which defines only certain type slots, it can not have inherited other<NEW_LINE>// attributes via metaclass inheritance. For all non-type-slot attributes it therefore<NEW_LINE>// suffices to only check fo... | valueGet = lookupValueGet.execute(value); |
1,603,125 | final DBClusterSnapshotAttributesResult executeDescribeDBClusterSnapshotAttributes(DescribeDBClusterSnapshotAttributesRequest describeDBClusterSnapshotAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDBClusterSnapshotAttributesRequest);<NEW_LINE>AWSRequestMetrics awsReque... | invoke(request, responseHandler, executionContext); |
362,158 | public long recv_initiateFlush() throws org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException, org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException, org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException {<NEW_LINE>initiateFlush_result r... | thrift.TApplicationException.MISSING_RESULT, "initiateFlush failed: unknown result"); |
342,905 | public Boolean call(String question) {<NEW_LINE>final Stage dialogStage = new Stage();<NEW_LINE>dialogStage.initModality(Modality.WINDOW_MODAL);<NEW_LINE>dialogStage.initOwner(stage);<NEW_LINE>// NOI18N<NEW_LINE>ResourceBundle r = NbBundle.getBundle(NbBrowsers.class);<NEW_LINE>// NOI18N<NEW_LINE>dialogStage.setTitle(r.... | new CloseDialogHandler(dialogStage, null)); |
322,889 | private void writeServiceIndex(SortedMap<String, SortedMap<String, Set<String>>> serviceImpls, final Map<String, Integer> servicePositions) throws IOException {<NEW_LINE>try (PrintWriter pw = new PrintWriter(serviceOutput, "UTF-8")) {<NEW_LINE>for (Map.Entry<String, SortedMap<String, Set<String>>> mainEntry : serviceIm... | " @" + servicePositions.get(impl); |
1,032,053 | public static <T extends ImageGray<T>, D extends ImageGray<D>> FeaturePyramid<T, D> harrisPyramid(int extractRadius, float detectThreshold, int maxFeatures, Class<T> imageType, Class<D> derivType) {<NEW_LINE>GradientCornerIntensity<D> harris = FactoryIntensityPointAlg.harris(extractRadius, 0.04f, false, derivType);<NEW... | >(detector, deriv, 2); |
1,524,129 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>maxAllowedLinesLabel = new javax.swing.JLabel();<NEW_LINE>maxAllowedLinesSpinner = new javax.swing.JSpinner();<NEW_LINE>// NOI18N<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedTex... | DEFAULT_SIZE, Short.MAX_VALUE))); |
1,283,373 | public String sendHttpJsonDownstreamMessage(String destination, Message message) throws IOException {<NEW_LINE>JSONObject jsonBody = new JSONObject();<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>jsonBody.putOpt(PARAM_COLLAPSE_KEY, message.getCollapseKey());<NEW_LINE>jsonBody.putOpt(PARAM_RESTRICTED_PACKAGE_NAME, message.ge... | jsonBody.put(PARAM_TO, destination); |
1,487,932 | private static void decodeUnreserved(StringBuilder path, int start) {<NEW_LINE>if (start + 3 <= path.length()) {<NEW_LINE>// these are latin chars so there is no danger of falling into some special unicode char that requires more<NEW_LINE>// than 1 byte<NEW_LINE>final String escapeSequence = path.substring(start + 1, s... | throw new IllegalArgumentException("Invalid escape sequence: %" + escapeSequence); |
374,426 | private void logHeadersConfig() {<NEW_LINE>// If tracing is enabled, print out the state of these maps.<NEW_LINE>if (this.isHeadersConfigEnabled && (TraceComponent.isAnyTracingEnabled()) && (tc.isEventEnabled())) {<NEW_LINE>List<String> addHeaders <MASK><NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.appe... | = new LinkedList<String>(); |
707,588 | static void c_4() throws Exception {<NEW_LINE>AkSourceBatchOp train_data = new AkSourceBatchOp().setFilePath(DATA_DIR + TRAIN_FILE);<NEW_LINE>AkSourceBatchOp test_data = new AkSourceBatchOp(<MASK><NEW_LINE>new OneVsRest().setClassifier(new LogisticRegression().setFeatureCols(FEATURE_COL_NAMES).setLabelCol(LABEL_COL_NAM... | ).setFilePath(DATA_DIR + TEST_FILE); |
1,665,215 | private void updateUsers(AuthConfig authConfig) {<NEW_LINE>users.clear();<NEW_LINE>for (UserAuthConfig userAuthConfig : authConfig.getUsers()) {<NEW_LINE>// Add a role either if it's actively assigned to him or if the right isn't restricted at all<NEW_LINE>List<GrantedAuthority> userRoles = new ArrayList<>();<NEW_LINE>... | add(new SimpleGrantedAuthority("ROLE_STATS")); |
350,323 | protected Excuse<Regressor> innerGetExcuse(Example<Regressor> e, double[][] allFeatureWeights) {<NEW_LINE>Prediction<Regressor> prediction = predict(e);<NEW_LINE>Map<String, List<Pair<String, Double>>> <MASK><NEW_LINE>for (int i = 0; i < allFeatureWeights.length; i++) {<NEW_LINE>List<Pair<String, Double>> scores = new ... | weightMap = new HashMap<>(); |
635,573 | private static <U1 extends Comparable<? super U1>, U2 extends Comparable<? super U2>, U3 extends Comparable<? super U3>, U4 extends Comparable<? super U4>, U5 extends Comparable<? super U5>> int compareTo(Tuple5<?, ?, ?, ?, ?> o1, Tuple5<?, ?, ?, ?, ?> o2) {<NEW_LINE>final Tuple5<U1, U2, U3, U4, U5> t1 = (Tuple5<U1, U2... | U3, U4, U5>) o2; |
755,749 | public Scope visitTable(TableRelation node, Scope outerScope) {<NEW_LINE>TableName tableName = node.getAlias();<NEW_LINE>Table table = node.getTable();<NEW_LINE>ImmutableList.Builder<Field> fields = ImmutableList.builder();<NEW_LINE>ImmutableMap.Builder<Field, Column<MASK><NEW_LINE>for (Column column : table.getFullSch... | > columns = ImmutableMap.builder(); |
1,263,995 | public static DescribeDrdsDbInstanceResponse unmarshall(DescribeDrdsDbInstanceResponse describeDrdsDbInstanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDrdsDbInstanceResponse.setRequestId(_ctx.stringValue("DescribeDrdsDbInstanceResponse.RequestId"));<NEW_LINE>describeDrdsDbInstanceResponse.setSuccess(_ctx.b... | ("DescribeDrdsDbInstanceResponse.DbInstance.ReadOnlyInstances[" + i + "].EngineVersion")); |
1,563,636 | private I_SEPA_Export createExportHeader(@NonNull final I_C_PaySelection paySelectionHeader) {<NEW_LINE>final PaySelectionTrxType paySelectionTrxType = PaySelectionTrxType.ofNullableCode(paySelectionHeader.getPaySelectionTrxType());<NEW_LINE>if (paySelectionTrxType == null) {<NEW_LINE>throw new FillMandatoryException(f... | bank = bankRepo.getById(bankId); |
987,802 | private void removeObsoleteRemoteCheckpoints(long successBatchId) {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>if (lastSuccessBatchId != -1 && lastSuccessBatchId != (successBatchId - 1)) {<NEW_LINE>LOG.warn("Some ack msgs from TM were lost!. Last success batch Id: {}, Current success batch Id: {}", ... | System.currentTimeMillis() - startTime); |
864,968 | public void closeElement(String element, HashMap<String, String> attributes, String content, WarningSet warnings) throws SAXException {<NEW_LINE>// DEBUG ONLY<NEW_LINE>// System.err.println("closing MotorMount element: "+ element);<NEW_LINE>if (element.equals("motor")) {<NEW_LINE>FlightConfigurationId fcid = new Flight... | getDefaultMotorConfig().setIgnitionEvent(event); |
758,853 | public static // p must be a direct parent of all of (b1,b2)<NEW_LINE>void identifyLoops1(Method method, List<Op03SimpleStatement> statements, BlockIdentifierFactory blockIdentifierFactory) {<NEW_LINE>// Find back references.<NEW_LINE>// Verify that they belong to jump instructions (otherwise something has gone wrong)<... | fixLoopOverlaps(statements, loopResults, relevantBlocks); |
1,332,388 | void sendFile(Http.RequestMethod method, Path pathParam, ServerRequest request, ServerResponse response, String welcomePage) throws IOException {<NEW_LINE>LOGGER.fine(() -> "Sending static content from file: " + pathParam);<NEW_LINE>Path path = pathParam;<NEW_LINE>// we know the file exists, though it may be a director... | path = resolveWelcomeFile(path, welcomePage); |
136,434 | /*<NEW_LINE>* Ensures that this.macInstance is initialized<NEW_LINE>* In-case of credential change, optimistically will try to refresh the macInstance<NEW_LINE>*<NEW_LINE>* Implementation is non-blocking, the one which acquire the lock will try to refresh<NEW_LINE>* with new credentials<NEW_LINE>*<NEW_LINE>* NOTE: Call... | = this.macInstanceLock.tryLock(); |
1,838,543 | private void appendStringify(Writer writer, HollowDataAccess dataAccess, String type, int ordinal, int indentation) throws IOException {<NEW_LINE>if (excludeObjectTypes.contains(type)) {<NEW_LINE>writer.append("null");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HollowTypeDataAccess typeDataAccess = dataAccess.getTypeDataAcce... | HollowObjectTypeDataAccess) typeDataAccess, ordinal, indentation); |
839,688 | private static void exportMultiPointToJson(MultiPoint mpt, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) {<NEW_LINE>boolean bExportZs = mpt.hasAttribute(Semantics.Z);<NEW_LINE>boolean bExportMs = <MASK><NEW_LINE>boolean bPositionAsF = false;<NEW_LINE>int decimals = 17;<... | mpt.hasAttribute(Semantics.M); |
144,900 | private void writeNamespacesToZip(Stream<ConfigBO> configBOStream, ZipOutputStream zipOutputStream) {<NEW_LINE>final Consumer<ConfigBO> configBOConsumer = configBO -> {<NEW_LINE>try {<NEW_LINE>synchronized (zipOutputStream) {<NEW_LINE>String appId = configBO.getAppId();<NEW_LINE>String clusterName = configBO.getCluster... | configBO.getEnv(), configFileName); |
461,974 | // visible for testing<NEW_LINE>static void shiftLeftDestructive(Slice decimal, int leftShifts) {<NEW_LINE>if (leftShifts == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int wordShifts = leftShifts / 64;<NEW_LINE>int bitShiftsInWord = leftShifts % 64;<NEW_LINE>int shiftRestore = 64 - bitShiftsInWord;<NEW_LINE>// check ove... | low = getLong(decimal, 0); |
1,106,442 | final BatchExecuteStatementResult executeBatchExecuteStatement(BatchExecuteStatementRequest batchExecuteStatementRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchExecuteStatementRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | false), new BatchExecuteStatementResultJsonUnmarshaller()); |
872,890 | private void exportXML(ExportDataDumper eDD, boolean combine, String viewName) {<NEW_LINE>// Header<NEW_LINE>// NOI18N<NEW_LINE>String newline = System.getProperty("line.separator");<NEW_LINE>StringBuffer result;<NEW_LINE><MASK><NEW_LINE>if (!combine) {<NEW_LINE>// NOI18N<NEW_LINE>result = new StringBuffer("<?xml versi... | boolean iCTTS = flatProfileContainer.isCollectingTwoTimeStamps(); |
611,821 | protected void applyDefaultsToWsdlRequest(SubmitContext context, AbstractHttpRequestInterface<?> wsdlRequest, EndpointDefaults def) {<NEW_LINE>String requestUsername = PropertyExpander.expandProperties(context, wsdlRequest.getUsername());<NEW_LINE>String requestPassword = PropertyExpander.expandProperties(context, wsdl... | defUsername, defPassword, defDomain, authType); |
300,152 | public boolean performCommand(ConsoleInput ci, DownloadManager dm, List<String> args) {<NEW_LINE>if (args.size() < 1) {<NEW_LINE>ci.out.println("> Command 'hack': Not enough parameters for subcommand '" + getCommandName() + "'");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String <MASK><NEW_LINE>if (op.equals("set")) {<... | op = args.get(0); |
497,939 | protected void checkAndGenerateFieldAssignment(FlowContext flowContext, FlowInfo flowInfo, FieldBinding[] fields) {<NEW_LINE>this.scope.isCompactConstructorScope = false;<NEW_LINE>if (fields == null)<NEW_LINE>return;<NEW_LINE>List<Statement> fieldAssignments = new ArrayList<>();<NEW_LINE>for (FieldBinding field : field... | .name, 0), 0); |
423,056 | public ApiResponse<String> syncGetPolicyWithHttpInfo() throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/v4/sync/policy";<NEW_LINE>// query params<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NEW_LINE>Map<String,... | localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); |
744,802 | private void addBodyElements(XmlTokenSource source, IBody part, List<IBodyElement> bodyElements) {<NEW_LINE>// parse the document with cursor and add<NEW_LINE>// the XmlObject to its lists<NEW_LINE>XmlCursor cursor = source.newCursor();<NEW_LINE>cursor.selectPath("./*");<NEW_LINE>while (cursor.toNextSelection()) {<NEW_... | addBodyElements(contentBlock, part, bodyElements); |
1,582,089 | protected String doIt() throws Exception {<NEW_LINE>// Instance current Payment Selection<NEW_LINE>if (getRecord_ID() > 0) {<NEW_LINE>// Already exists<NEW_LINE>paymentSelection = new MPaySelection(getCtx(), getRecord_ID(), get_TrxName());<NEW_LINE>seqNo = paymentSelection.getLastLineNo();<NEW_LINE>} else {<NEW_LINE>//... | paymentSelection.setC_BankAccount_ID(getBankAccountId()); |
1,173,130 | public void onListArchivedWorkers(final ListArchivedWorkersRequest request) {<NEW_LINE>if (logger.isTraceEnabled()) {<NEW_LINE>logger.trace("In onListArchiveWorkers {}", request);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>List<IMantisWorkerMetadata> workerList = jobStore.getArchivedWorkers(request.getJobId().getId());<NEW_LIN... | ()), getSelf()); |
1,517,830 | /*<NEW_LINE>* Performs a two-way or three-way diff on the current selection.<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public Object prepareInput(IProgressMonitor pm) throws InvocationTargetException {<NEW_LINE>try {<NEW_LINE>// fix for PR 1GFMLFB: ITPUI:WIN2000 - files that are out of sync with the file system appear as... | String rightLabel = fRightResource.name(); |
1,025,028 | public static DescribeDrdsInstanceResponse unmarshall(DescribeDrdsInstanceResponse describeDrdsInstanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDrdsInstanceResponse.setRequestId(_ctx.stringValue("DescribeDrdsInstanceResponse.RequestId"));<NEW_LINE>describeDrdsInstanceResponse.setSuccess(_ctx.booleanValue(... | (_ctx.stringValue("DescribeDrdsInstanceResponse.Data.VersionAction")); |
1,293,460 | public PerRoleOutliersAnswerElement answer(NetworkSnapshot snapshot) {<NEW_LINE>PerRoleOutliersQuestion question = (PerRoleOutliersQuestion) _question;<NEW_LINE>_answerElement = new PerRoleOutliersAnswerElement();<NEW_LINE>OutliersQuestion innerQ = new OutliersQuestionPlugin().createQuestion();<NEW_LINE>innerQ.setNamed... | > roleAnswers = roleAE.getAnswers(); |
23,776 | public static void triggerIntegrityDataGeneration(final String key, final String integrityDataRequestId) {<NEW_LINE><MASK><NEW_LINE>jobDataMap.put(IntegrityUtil.REQUESTER_KEY, key);<NEW_LINE>jobDataMap.put(IntegrityUtil.INTEGRITY_DATA_REQUEST_ID, integrityDataRequestId);<NEW_LINE>final JobDetail jobDetail = new JobDeta... | final JobDataMap jobDataMap = new JobDataMap(); |
996,430 | public void run() {<NEW_LINE>try {<NEW_LINE>File selectedFile = getFile();<NEW_LINE>BufferProject bufferProject = new BufferProject(getProject(), getUiFacade());<NEW_LINE>ProjectFileImporter importer = new ProjectFileImporter(bufferProject, getUiFacade().getTaskColumnList(), selectedFile);<NEW_LINE>importer.run();<NEW_... | findChangedDates(originalDates, buffer2realTask, errors); |
931,693 | private Mono<Response<AddressResponseInner>> listVipsWithResponseAsync(String resourceGroupName, String name, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Par... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
1,135,749 | public static DescribeGatherStatsResultResponse unmarshall(DescribeGatherStatsResultResponse describeGatherStatsResultResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeGatherStatsResultResponse.setRequestId(_ctx.stringValue("DescribeGatherStatsResultResponse.RequestId"));<NEW_LINE>describeGatherStatsResultResponse... | (_ctx.stringValue("DescribeGatherStatsResultResponse.GatherStatsResult.Change.ActionName")); |
898,223 | private boolean dropProcessInfo(Pair<Target, Parameters> key, @Nullable String errorMessage, @Nullable ProcessHandler handler) {<NEW_LINE>Info info;<NEW_LINE>synchronized (myProcMap) {<NEW_LINE><MASK><NEW_LINE>if (info != null && (handler == null || info.handler == handler)) {<NEW_LINE>myProcMap.remove(key);<NEW_LINE>m... | info = myProcMap.get(key); |
1,281,886 | public void showAtNotifications(final RequestContext context) {<NEW_LINE>final <MASK><NEW_LINE>final JSONObject currentUser = Sessions.getUser();<NEW_LINE>if (null == currentUser) {<NEW_LINE>context.sendError(403);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final AbstractFreeMarkerRenderer renderer = new SkinRenderer(context... | Request request = context.getRequest(); |
287,555 | public TByteBuffer putLong(int index, long value) {<NEW_LINE>if (readOnly) {<NEW_LINE>throw new TReadOnlyBufferException();<NEW_LINE>}<NEW_LINE>if (index < 0 || index + 3 >= limit) {<NEW_LINE>throw new IndexOutOfBoundsException("Index " + index + " is outside of range [0;" + (limit - 3) + ")");<NEW_LINE>}<NEW_LINE>if (... | byte) (value >> 24); |
1,157,030 | public CodegenExpression makeCodegen(CodegenClassScope classScope, CodegenMethodScope parent, SAIFFInitializeSymbolWEventType symbols) {<NEW_LINE>CodegenMethod method = parent.makeChild(FilterSpecParam.EPTYPE, FilterSpecParamConstantForge.class, classScope);<NEW_LINE>method.getBlock().declareVar(ExprFilterSpecLookupabl... | codegenNew(constant(filterConstant))); |
878,716 | protected void initializeProcess() throws IOException, DecompileException {<NEW_LINE>if (decompCallback == null) {<NEW_LINE>throw new IOException("Program not opened in decompiler");<NEW_LINE>}<NEW_LINE>if (decompProcess == null) {<NEW_LINE>decompProcess = DecompileProcessFactory.get();<NEW_LINE>} else if (!decompProce... | (SleighLanguageDescription) pcodelanguage.getLanguageDescription(); |
1,374,676 | private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(<MASK><NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, NativeType.SSHORT);<NEW_LINE>m.put... | TypeAlias.int8_t, NativeType.SCHAR); |
1,271,993 | protected void encodeMarkup(FacesContext context, Terminal terminal) throws IOException {<NEW_LINE>String clientId = terminal.getClientId(context);<NEW_LINE>String style = terminal.getStyle();<NEW_LINE>String styleClass = terminal.getStyleClass();<NEW_LINE>styleClass = (styleClass == null) ? Terminal.CONTAINER_CLASS : ... | "class", Terminal.CONTENT_CLASS, null); |
1,552,684 | private void processProvideCall(NodeTraversal t, Node call, Node parent) {<NEW_LINE>checkState(call.isCall());<NEW_LINE>if (!verifyOnlyArgumentIsString(call)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Node left = call.getFirstChild();<NEW_LINE>Node arg = left.getNext();<NEW_LINE>String ns = arg.getString();<NEW_LINE>JSDoc... | (isImplicitlyInitialized).build()); |
292,047 | public List<QuotaBalanceVO> doInTransaction(final TransactionStatus status) {<NEW_LINE>if ((lastbalancedate != null) && (beforeThis != null) && lastbalancedate.before(beforeThis)) {<NEW_LINE>Filter filter = new Filter(QuotaBalanceVO.class, "updatedOn", <MASK><NEW_LINE>QueryBuilder<QuotaBalanceVO> qb = QueryBuilder.crea... | true, 0L, Long.MAX_VALUE); |
437,081 | public static void init(List<String> classPathEntries, Problems problems) {<NEW_LINE>checkState(packageInfoCacheStorage.get() == null, "PackageInfoCache should only be initialized once per thread.");<NEW_LINE>// Constructs a URLClassLoader to do the dirty work of finding package-info.class files in the<NEW_LINE>// clas... | new URL("file:" + classPathEntry)); |
74,261 | private void delegateResource(byte[] ownerAddress, byte[] receiverAddress, long frozenBalance, long expireTime, boolean isBandwidth, Repository repo) {<NEW_LINE>byte[] key = DelegatedResourceCapsule.createDbKey(ownerAddress, receiverAddress);<NEW_LINE>// insert or update DelegateResource<NEW_LINE>DelegatedResourceCapsu... | receiverCapsule.createDbKey(), receiverCapsule); |
1,270,371 | protected List<Element> expandDateMonth(Document doc, String s) {<NEW_LINE>ArrayList<Element> exp = new ArrayList<Element>();<NEW_LINE>Matcher reMatcher = reMonth.matcher(s);<NEW_LINE>boolean found = reMatcher.find();<NEW_LINE>// month == (0)1, (0)2, ... , 12<NEW_LINE>int monthType = 1;<NEW_LINE>if (!found) {<NEW_LINE>... | reMatcher = reMonthabbr.matcher(s); |
946,433 | final DeleteReportResult executeDeleteReport(DeleteReportRequest deleteReportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteReportRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,577,131 | // private Gson gson = new GsonBuilder()<NEW_LINE>// .setLenient()<NEW_LINE>// .serializeSpecialFloatingPointValues()<NEW_LINE>// .setPrettyPrinting()<NEW_LINE>// .registerTypeAdapterFactory(serverBuilderFactory)<NEW_LINE>// // .registerTypeAdapterFactory(new ImageServerTypeAdapterFactory())<NEW_LINE>// .create();<N... | boolean lenient = out.isLenient(); |
1,551,463 | private int reversePairsHelper2(int[] nums, int left, int right) {<NEW_LINE>if (left >= right)<NEW_LINE>return 0;<NEW_LINE>int mid = (left + right) >> 1;<NEW_LINE>int count = reversePairsHelper2(nums, left, mid) + reversePairsHelper2(nums, mid + 1, right);<NEW_LINE>int[] tmp = new int[right - left + 1];<NEW_LINE>int k ... | ++] = nums[p++]; |
224,747 | public RedisSink genStreamSink(AbstractTargetTableInfo targetTableInfo) {<NEW_LINE>RedisTableInfo redisTableInfo = (RedisTableInfo) targetTableInfo;<NEW_LINE>this.url = redisTableInfo.getUrl();<NEW_LINE>this.database = redisTableInfo.getDatabase();<NEW_LINE>this.password = redisTableInfo.getPassword();<NEW_LINE>this.ta... | .timeout = redisTableInfo.getTimeout(); |
1,171,696 | public TBigInteger toBigIntegerExact() {<NEW_LINE>if ((scale == 0) || (isZero())) {<NEW_LINE>return getUnscaledValue();<NEW_LINE>} else if (scale < 0) {<NEW_LINE>return getUnscaledValue().multiply(TMultiplication.powerOf10<MASK><NEW_LINE>} else {<NEW_LINE>// (scale > 0)<NEW_LINE>TBigInteger[] integerAndFraction;<NEW_LI... | (-(long) scale)); |
1,678,983 | private Mono<Response<FactoryInner>> updateWithResponseAsync(String resourceGroupName, String factoryName, FactoryUpdateParameters factoryUpdateParameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is... | error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); |
946,797 | public boolean isExposed(String itemName) {<NEW_LINE>NeeoUtil.requireNotEmpty(itemName, "itemName cannot be empty");<NEW_LINE>logger.trace("isExposed: {}", itemName);<NEW_LINE>for (NeeoDeviceChannel channel : channels) {<NEW_LINE>final boolean notExcluded = channel.getType() != NeeoCapabilityType.EXCLUDE;<NEW_LINE>fina... | equalsIgnoreCase(channel.getItemName()); |
1,593,064 | public void addDependencies(String[] typeNameDependencies) {<NEW_LINE>// if each qualified type name is already known then all of its subNames can be skipped<NEW_LINE>// and its expected that very few qualified names in typeNameDependencies need to be added<NEW_LINE>// but could always take 'p1.p2.p3.X' and make all qu... | [qualifiedTypeName.length - 1]); |
122,279 | static public void resizeImage(PImage img, int w, int h) {<NEW_LINE>// ignore<NEW_LINE>if (w <= 0 && h <= 0) {<NEW_LINE>throw new IllegalArgumentException("width or height must be > 0 for resize");<NEW_LINE>}<NEW_LINE>if (w == 0) {<NEW_LINE>// Use height to determine relative size<NEW_LINE>float diff = (float) h / (flo... | = img.pixelWidth / img.pixelDensity; |
258,730 | private void processBeanPropertyValues(Object bean, String beanName) {<NEW_LINE>Collection<SpringValueDefinition> propertySpringValues = beanName2SpringValueDefinitions.get(beanName);<NEW_LINE>if (propertySpringValues == null || propertySpringValues.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (SpringValueDefi... | ), definition.getPropertyName()); |
1,744,425 | public void render(Map<String, Object> context, String templateFile, Handler<AsyncResult<Buffer>> handler) {<NEW_LINE>try {<NEW_LINE>String src = adjustLocation(templateFile);<NEW_LINE>TemplateHolder<CompiledTemplate> template = getTemplate(src);<NEW_LINE>if (template == null) {<NEW_LINE>int idx = src.lastIndexOf('/');... | src.substring(0, idx); |
30,240 | protected void triggerNow(GCCompletion completion) {<NEW_LINE>if (!dbf.isExist(primaryStorageUuid, PrimaryStorageVO.class)) {<NEW_LINE>completion.cancel();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!dbf.isExist(hostUuid, HostVO.class)) {<NEW_LINE>completion.cancel();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LocalStorageKvmB... | PrimaryStorageVO_.url).findValue(); |
52,287 | private void loadNode93() {<NEW_LINE>UaMethodNode node = new UaMethodNode(this.context, Identifiers.ServerConfigurationType_CertificateGroups_DefaultApplicationGroup_TrustList_OpenWithMasks, new QualifiedName(0, "OpenWithMasks"), new LocalizedText("en", "OpenWithMasks"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), U... | .expanded(), true)); |
1,425,433 | private void appendParagraph(String text, Element root, Locale defaultLocale) {<NEW_LINE>Element insertHere = root;<NEW_LINE>String rootLanguage = root.getAttribute("xml:lang");<NEW_LINE>String textLanguage = MaryUtils.locale2xmllang(determineLocale(text, defaultLocale));<NEW_LINE>if (!textLanguage.equals(rootLanguage)... | appendChildElement(insertHere, MaryXML.PARAGRAPH); |
191,548 | private Mono<Void> v2Push(CFPushArguments params) {<NEW_LINE>String appName = params.getAppName();<NEW_LINE>// Routes are set AFTER push, so for initial push, make sure no route is set<NEW_LINE>boolean noRoute = true;<NEW_LINE>// Environment variables require app start, so for initial push, do not start app.<NEW_LINE>/... | then(Mono.empty()); |
1,235,276 | private void traverseFilesystem(File file) {<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)<NEW_LINE>return;<NEW_LINE>File[] list = file.listFiles();<NEW_LINE>if (list == null)<NEW_LINE>return;<NEW_LINE>List<String> availableCores = Arrays.asList(getAvailableCores());<NEW_LINE>// Check each file in ... | File(newFilename).delete(); |
764,420 | void applyTo(TaskMonitor monitor, MessageLog log) {<NEW_LINE>while (xmlParser.hasNext()) {<NEW_LINE>if (monitor.isCancelled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>XmlElement elem = xmlParser.peek();<NEW_LINE>if (elem.isEnd() && elem.getName().equals("function")) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>// line number s... | PdbUtil.reladdr(program, addr); |
807,453 | private Object legacyEvaluate(DocumentOperation op) {<NEW_LINE>DocumentType doct;<NEW_LINE>if (op instanceof DocumentPut) {<NEW_LINE>doct = ((DocumentPut) op).getDocument().getDataType();<NEW_LINE>} else if (op instanceof DocumentUpdate) {<NEW_LINE>doct = ((<MASK><NEW_LINE>} else if (op instanceof DocumentRemove) {<NEW... | DocumentUpdate) op).getDocumentType(); |
1,443,243 | // endregion<NEW_LINE>// region RequestProcessor Implementation<NEW_LINE>@Override<NEW_LINE>public void readSegment(ReadSegment readSegment) {<NEW_LINE>Timer timer = new Timer();<NEW_LINE>final String segment = readSegment.getSegment();<NEW_LINE>final String operation = "readSegment";<NEW_LINE>if (!verifyToken(segment,... | traceEnter(log, operation, readSegment); |
37,152 | public <T> void save(final T model) {<NEW_LINE>throwExceptionIfMissingAnnotation(model.getClass());<NEW_LINE>cacheMeasurementClass(model.getClass());<NEW_LINE>ConcurrentMap<String, Field> colNameAndFieldMap = getColNameAndFieldMap(model.getClass());<NEW_LINE>try {<NEW_LINE>Class<?> modelType = model.getClass();<NEW_LIN... | write(database, retentionPolicy, point); |
723,371 | ArrayList<Object> new138() /* reduce AAdynamicinvokeexpr3InvokeExpr */<NEW_LINE>{<NEW_LINE>@SuppressWarnings("hiding")<NEW_LINE>ArrayList<Object> nodeList = new ArrayList<Object>();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nodeArrayList9 = pop();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>Arra... | TRParen) nodeArrayList9.get(0); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.