idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,646,803 | public static GetSmsConfigResponse unmarshall(GetSmsConfigResponse getSmsConfigResponse, UnmarshallerContext context) {<NEW_LINE>getSmsConfigResponse.setRequestId(context.stringValue("GetSmsConfigResponse.RequestId"));<NEW_LINE>getSmsConfigResponse.setSuccess(context.booleanValue("GetSmsConfigResponse.Success"));<NEW_L... | ("GetSmsConfigResponse.SmsConfigs[" + i + "].SignName")); |
649,728 | public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("rgb" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>int size = param.getSubSize();<NEW_LINE>if (size < 3 || size > 4) {<NEW_LINE>MessageManager mm = Engi... | + mm.getMessage("function.paramTypeError")); |
791,041 | public void marshall(ListChannelMessagesRequest listChannelMessagesRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listChannelMessagesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(listCh... | e.getMessage(), e); |
1,674,884 | private void terminateWorker(IMantisWorkerMetadata workerMeta, WorkerState finalWorkerState, JobCompletedReason reason) {<NEW_LINE>LOGGER.info("Terminating worker {} with number {}", workerMeta, workerMeta.getWorkerNumber());<NEW_LINE>try {<NEW_LINE>WorkerId workerId = workerMeta.getWorkerId();<NEW_LINE>// call vmserv... | "WorkerNumber->StageMap {}", mantisJobMetaData.getWorkerNumberToStageMap()); |
1,046,703 | public Value evaluate(Env env, Object... args) {<NEW_LINE>Value value = valueExpr.evaluate(env, args);<NEW_LINE>if (args != null) {<NEW_LINE>if (args.length == 1 && args[0] instanceof CoreMap) {<NEW_LINE>CoreMap cm = (CoreMap) args[0];<NEW_LINE>Class annotationKey = <MASK><NEW_LINE>if (annotationKey != null) {<NEW_LINE... | EnvLookup.lookupAnnotationKey(env, varName); |
1,818,723 | protected Order mergeOfferCodes(Order anonymousCart, Order customerCart) {<NEW_LINE>// add all offers from anonymous order<NEW_LINE>Map<String, OfferCode> customerOffersMap = new HashMap<String, OfferCode>();<NEW_LINE>for (OfferCode customerOffer : customerCart.getAddedOfferCodes()) {<NEW_LINE>customerOffersMap.put(<MA... | customerOffer.getOfferCode(), customerOffer); |
312,220 | private static void open(DbMethodCall mc) {<NEW_LINE>synchronized (mc.plugin) {<NEW_LINE>String path = normalizePath(mc.getAppContext(), (String<MASK><NEW_LINE>DbEntry dbe = null;<NEW_LINE>for (DbEntry v : dbmap.values()) {<NEW_LINE>if (v.path.equals(path)) {<NEW_LINE>dbe = v;<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>}<NEW_... | ) mc.args[1]); |
1,026,654 | public void onSessionFinished(@NonNull TerminalSession finishedSession) {<NEW_LINE>TermuxService service = mActivity.getTermuxService();<NEW_LINE>if (service == null || service.wantsToStop()) {<NEW_LINE>// The service wants to stop as soon as possible.<NEW_LINE>mActivity.finishActivityIfNotFinishing();<NEW_LINE>return;... | index = service.getIndexOfSession(finishedSession); |
1,682,775 | protected Result check() throws Exception {<NEW_LINE>if (!STORAGE_CHECK_ENABLED) {<NEW_LINE>return Result.healthy("Storage check disabled");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>Instant writeTimestamp = Instant.now();<NEW_LINE>// insert record<NEW_LINE>dataStore.execute(dataStore.queryBuilder().insertInto... | DataStore dataStore = dataStoreFactory.createInternal(); |
204,469 | public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints) {<NEW_LINE>DebugGraphicsInfo info = info();<NEW_LINE>if (debugLog()) {<NEW_LINE>info().log(toShortString() + " Drawing polygon: " + " nPoints: " + nPoints + " X's: " + xPoints + " Y's: " + yPoints);<NEW_LINE>}<NEW_LINE>if (isDrawingBuffer()) {<NEW_LINE>... | 0 ? info.flashColor : oldColor); |
1,060,057 | public Map<String, Object> annotate(ReferenceContext ref, VariantContext vc, AlleleLikelihoods<GATKRead, Allele> likelihoods) {<NEW_LINE>Utils.nonNull(vc);<NEW_LINE>Utils.nonNull(likelihoods);<NEW_LINE>final double[] lods = Mutect2FilteringEngine.getTumorLogOdds(vc);<NEW_LINE>if (lods == null) {<NEW_LINE>warning.warn(S... | of(GATKVCFConstants.ORIGINAL_CONTIG_MISMATCH_KEY, nonChrMAlt); |
1,029,809 | public void addFormForEditAccount() {<NEW_LINE>gridRowFrom = gridRow;<NEW_LINE>addAccountNameTextFieldWithAutoFillToggleButton();<NEW_LINE>addCompactTopLabelTextField(gridPane, ++gridRow, Res.get("shared.paymentMethod"), Res.get(australiaPayid.getPaymentMethod().getId()));<NEW_LINE>addCompactTopLabelTextField(gridPane,... | .get("shared.currency"), nameAndCode); |
635 | private static Map<String, String> fetchColumnType(Connection conn, String actualTableName) {<NEW_LINE>Map<String, String> specialType = new TreeMap(String.CASE_INSENSITIVE_ORDER);<NEW_LINE>Statement stmt = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>stmt = conn.createStatement();<NEW_LINE>rs = stmt.exe... | logger.warn("", e); |
1,657,537 | static public HashMap<String, String> readSettings(File inputFile) {<NEW_LINE>HashMap<String, String> outgoing = new HashMap<>();<NEW_LINE>// return empty hash<NEW_LINE>if (!inputFile.exists())<NEW_LINE>return outgoing;<NEW_LINE>String[] lines = PApplet.loadStrings(inputFile);<NEW_LINE>for (int i = 0; i < lines.length;... | outgoing.put(attr, valu); |
21,280 | public void verifyActivityStarting(android.os.Bundle options, java.lang.String pkg, android.content.ComponentName componentName, int uid, int pid, github.tornaco.android.thanos.core.app.activity.IVerifyCallback callback) throws android.os.RemoteException {<NEW_LINE>android.os.Parcel _data = android.os.Parcel.obtain();<... | .os.Parcel.obtain(); |
1,085,655 | private void insertFieldInDb(Field field) throws DotDataException {<NEW_LINE>DotConnect dc = new DotConnect();<NEW_LINE>dc.setSQL(sql.insertField);<NEW_LINE>dc.addParam(field.id());<NEW_LINE>dc.addParam(field.contentTypeId());<NEW_LINE>dc.addParam(field.name());<NEW_LINE>dc.addParam(field.type().getCanonicalName());<NE... | addParam(field.defaultValue()); |
1,304,437 | private List<AnAction> initActions() {<NEW_LINE>List<AnAction> result = new ArrayList<>();<NEW_LINE>result.add(new ConfigureInspectionsAction());<NEW_LINE>result.add(DaemonEditorPopup.createGotoGroup());<NEW_LINE>result.add(AnSeparator.create());<NEW_LINE>result.add(new ToggleAction(EditorBundle.message("iw.show.import... | .isAutohintsAvailable(getPsiFile())); |
1,121,405 | final DBInstance executeRestoreDBInstanceToPointInTime(RestoreDBInstanceToPointInTimeRequest restoreDBInstanceToPointInTimeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(restoreDBInstanceToPointInTimeRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime)... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
223,698 | Repositories repositories(ServiceRegistry serviceRegistry, FlavorContainer flavors, PlatformContainer platforms, BuildTypeContainer buildTypes, CollectionCallbackActionDecorator callbackActionDecorator) {<NEW_LINE>Instantiator instantiator = serviceRegistry.get(Instantiator.class);<NEW_LINE>ObjectFactory sourceDirector... | serviceRegistry.get(ObjectFactory.class); |
1,173,390 | public SetIpAddressTypeResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SetIpAddressTypeResult setIpAddressTypeResult = new SetIpAddressTypeResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_... | int originalDepth = context.getCurrentDepth(); |
1,143,020 | private static Codec createCodec(Format format, MediaFormat mediaFormat, boolean isVideo, boolean isDecoder, @Nullable Surface outputSurface) throws TransformationException {<NEW_LINE>@Nullable<NEW_LINE>MediaCodec mediaCodec = null;<NEW_LINE>@Nullable<NEW_LINE>Surface inputSurface = null;<NEW_LINE>try {<NEW_LINE>mediaC... | Codec(mediaCodec, format, inputSurface); |
1,360,067 | private boolean backupGroupCtrlConfig(StringBuilder strBuff) {<NEW_LINE>logger.info("[Backup Group Ctrl] begin ");<NEW_LINE>Map<String, GroupResCtrlEntity> groupCtrlMap = getGroupResCtrlInfos(strBuff);<NEW_LINE>if (groupCtrlMap == null) {<NEW_LINE>logger.error(" download group-control configurations are null!");<NEW_L... | storeObjectToFile(groupCtrlMap, backupAndRecoveryPath, storeFileNameGroupCtrl); |
915,777 | public Property convertSimpleRuleToJson(MVELToDataWrapperTranslator translator, ObjectMapper mapper, String matchRule, String jsonProp, String fieldService) {<NEW_LINE>Entity[<MASK><NEW_LINE>Property[] properties = new Property[1];<NEW_LINE>Property mvelProperty = new Property();<NEW_LINE>mvelProperty.setName("matchRul... | ] matchCriteria = new Entity[1]; |
238,535 | private void executeAggregation(OCommandContext ctx, int nRecords) {<NEW_LINE>long timeoutBegin = System.currentTimeMillis();<NEW_LINE>if (!prev.isPresent()) {<NEW_LINE>throw new OCommandExecutionException("Cannot execute an aggregation or a GROUP BY without a previous result");<NEW_LINE>}<NEW_LINE>OExecutionStepIntern... | finalResults = new ArrayList<>(); |
1,325,383 | protected FilterResults performFiltering(CharSequence constraint) {<NEW_LINE>FilterResults filterResults = new FilterResults();<NEW_LINE>ArrayList<AmiiboFile> tempList = new ArrayList<>();<NEW_LINE>String queryText = settings.getQuery().trim().toLowerCase();<NEW_LINE>for (AmiiboFile amiiboFile : amiiboFiles) {<NEW_LINE... | .count = tempList.size(); |
518,614 | public static Table run(StreamExecutionEnvironment streamEnv, TableEnvironment tableEnv, StatementSet statementSet, ExecutionMode mode, Table input, TFConfig tfConfig, TableSchema outSchema) throws IOException {<NEW_LINE><MASK><NEW_LINE>Preconditions.checkArgument(hasScript || mode == ExecutionMode.INFERENCE, "Python s... | final boolean hasScript = hasScript(tfConfig); |
520,277 | public static Object evaluateExpression(final Expression expr, final CompilerConfiguration config) {<NEW_LINE>Expression ce = expr instanceof CastExpression ? ((CastExpression) expr).getExpression() : expr;<NEW_LINE>if (ce instanceof ConstantExpression) {<NEW_LINE>if (expr.getType().equals(ce.getType()))<NEW_LINE>retur... | ).replace('-', '$'); |
1,265,912 | public void updateDBCapacity() throws DalException {<NEW_LINE>int maxId = m_manager.getWeeklyStatus();<NEW_LINE>while (true) {<NEW_LINE>List<WeeklyReportContent> reports = m_weeklyReportContentDao.findOverloadReport(maxId, WeeklyReportContentEntity.READSET_LENGTH);<NEW_LINE>for (WeeklyReportContent content : reports) {... | overload.setReportType(CapacityUpdater.WEEKLY_TYPE); |
1,081,938 | protected TraceModule doRecordProcessModule(long snap, TargetModule module) {<NEW_LINE>String <MASK><NEW_LINE>if (recorder.getMemoryMapper() == null) {<NEW_LINE>Msg.error(this, "Got module before memory mapper: " + path);<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Short-circuit the DuplicateNameException for efficien... | path = module.getJoinedPath("."); |
8,831 | final CreateCertificateAuthorityResult executeCreateCertificateAuthority(CreateCertificateAuthorityRequest createCertificateAuthorityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCertificateAuthorityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,511,006 | public Messages process(Messages messages) {<NEW_LINE>for (final MessageFilter filter : filterRegistry) {<NEW_LINE>for (Message msg : messages) {<NEW_LINE>final String timerName = name(filter.getClass(), "executionTime");<NEW_LINE>final Timer timer = metricRegistry.timer(timerName);<NEW_LINE>final Timer.<MASK><NEW_LINE... | Context timerContext = timer.time(); |
371,763 | protected void startCore(ServletContext context) {<NEW_LINE>Injector injector = (Injector) context.getAttribute(Injector.class.getName());<NEW_LINE>// create the runtime settings object<NEW_LINE>IStoredSettings runtimeSettings = injector.getInstance(IStoredSettings.class);<NEW_LINE>final File baseFolder;<NEW_LINE>if (g... | startManager(injector, IServicesManager.class); |
528,518 | public String testEJBExtension() throws Exception {<NEW_LINE>Container ejbContainer = getEJBJarContainer(TEST_EJB);<NEW_LINE>EJBJarExt extensions = <MASK><NEW_LINE>if (extensions == null)<NEW_LINE>return "Could not adapt EJB jar extensions";<NEW_LINE>List<EnterpriseBean> ejbs = extensions.getEnterpriseBeans();<NEW_LINE... | ejbContainer.adapt(EJBJarExt.class); |
1,415,945 | public void handle(Request request, Response response) {<NEW_LINE>try {<NEW_LINE>if (getLogger().isLoggable(Level.FINE)) {<NEW_LINE>getLogger().log(Level.FINE, "Handling client request: " + request);<NEW_LINE>}<NEW_LINE>if ((request != null) && request.isSynchronous() && request.isExpectingResponse()) {<NEW_LINE>// Pre... | CountDownLatch latch = new CountDownLatch(1); |
129,572 | public HClient borrowClient() throws HectorException {<NEW_LINE>if (!active.get()) {<NEW_LINE>throw new HInactivePoolException("Attempt to borrow on in-active pool: " + getName());<NEW_LINE>}<NEW_LINE>HClient cassandraClient = availableClientQueue.poll();<NEW_LINE>int currentActiveClients = activeClientsCount.increment... | ) - cassandraClient.getCreatedTime()); |
1,673,200 | public JDBCStatement prepareUniqueConstraintsLoadStatement(@NotNull JDBCSession session, @NotNull GenericStructContainer owner, @Nullable GenericTableBase forParent) throws SQLException, DBException {<NEW_LINE>JDBCPreparedStatement dbStat;<NEW_LINE>dbStat = session.prepareStatement(// "LEFT JOIN v_catalog.comments com ... | ? " AND col.table_name = ?" : "") + " ORDER BY col.table_id, KEY_SEQ, PK_NAME"); |
1,346,476 | public void shortReportLineTo(PrintWriter w) {<NEW_LINE>Map<String, Object> map = shortReportMap();<NEW_LINE>w.print(map.get("toeCount"));<NEW_LINE>w.print(" threads: ");<NEW_LINE>LinkedList<String> sortedSteps = (LinkedList<String>) map.get("steps");<NEW_LINE>{<NEW_LINE>Iterator<String> iter = sortedSteps.iterator();<... | print(iter.next()); |
968,056 | public void inheritedMethodsHaveIncompatibleReturnTypes(ASTNode location, MethodBinding[] inheritedMethods, int length) {<NEW_LINE>StringBuffer methodSignatures = new StringBuffer();<NEW_LINE>StringBuffer shortSignatures = new StringBuffer();<NEW_LINE>for (int i = length; --i >= 0; ) {<NEW_LINE>methodSignatures.append(... | [i].shortReadableName()); |
1,742,781 | public static double squaredDistance(SparseArray x, SparseArray y) {<NEW_LINE>Iterator<SparseArray.Entry> it1 = x.iterator();<NEW_LINE>Iterator<SparseArray.Entry> it2 = y.iterator();<NEW_LINE>SparseArray.Entry e1 = it1.hasNext() ? it1.next() : null;<NEW_LINE>SparseArray.Entry e2 = it2.hasNext() ? it2.next() : null;<NEW... | ? it2.next() : null; |
1,638,631 | public Object execute(ODistributedRequestId requestId, OServer iServer, ODistributedServerManager iManager, ODatabaseDocumentInternal database) throws Exception {<NEW_LINE>if (iManager != null) {<NEW_LINE>iManager.messageBeforeOp("prepare1Phase", requestId);<NEW_LINE>}<NEW_LINE>convert(database);<NEW_LINE>if (iManager ... | = OGlobalConfiguration.DISTRIBUTED_CONCURRENT_TX_AUTORETRY_DELAY.getValueAsInteger(); |
1,144,309 | public void deleteTask(TaskEntity task, String deleteReason, boolean cascade, boolean skipCustomListeners) {<NEW_LINE>if (!task.isDeleted()) {<NEW_LINE>task.setDeleted(true);<NEW_LINE>CommandContext commandContext = Context.getCommandContext();<NEW_LINE>String taskId = task.getId();<NEW_LINE>List<Task> subTasks = findT... | getDbEntityManager().delete(task); |
1,411,179 | public static <T, U, A, R> AggregateOperation1<T, A, R> mapping(@Nonnull FunctionEx<? super T, ? extends U> mapFn, @Nonnull AggregateOperation1<? super U, A, ? extends R> downstream) {<NEW_LINE>checkSerializable(mapFn, "mapFn");<NEW_LINE>BiConsumerEx<? super A, ? super U<MASK><NEW_LINE>return AggregateOperation.withCre... | > downstreamAccumulateFn = downstream.accumulateFn(); |
594,944 | private void addProxySettingRadioButtons() {<NEW_LINE>ButtonGroup group = new ButtonGroup();<NEW_LINE>JPanel radioPanel = new JPanel();<NEW_LINE>radioPanel.setLayout(new BoxLayout(radioPanel, BoxLayout.Y_AXIS));<NEW_LINE>radioPanel.add<MASK><NEW_LINE>automatic = createRadioButton("Automatic", group, radioPanel);<NEW_LI... | (Box.createVerticalStrut(4)); |
1,088,945 | private Calendar addDurationToDate(final I_C_Flatrate_Transition trans, final Timestamp date) {<NEW_LINE><MASK><NEW_LINE>calTermEnd.setTime(date);<NEW_LINE>if (X_C_Flatrate_Transition.TERMDURATIONUNIT_JahrE.equals(trans.getTermDurationUnit())) {<NEW_LINE>calTermEnd.add(Calendar.YEAR, trans.getTermDuration());<NEW_LINE>... | final Calendar calTermEnd = new GregorianCalendar(); |
356,993 | public void initialize(TemplateWizard wizard) {<NEW_LINE>WizardDescriptor.Panel<WizardDescriptor> folderPanel;<NEW_LINE>Project project = Templates.getProject(wizard);<NEW_LINE>Sources sources = ProjectUtils.getSources(project);<NEW_LINE>SourceGroup[] sourceGroups = sources.getSourceGroups(WebProjectConstants.TYPE_WEB_... | panels[i].getComponent(); |
918,632 | protected void addOverlays() {<NEW_LINE>super.addOverlays();<NEW_LINE>final ArrayList<GeoPoint> list = new ArrayList<>();<NEW_LINE>list.clear();<NEW_LINE>list.add(new GeoPoint(sCentralParkBoundingBox.getActualNorth(), -85));<NEW_LINE>list.add(new GeoPoint(sCentralParkBoundingBox.getActualNorth(), -65));<NEW_LINE>mNorth... | getActualSouth(), -85)); |
482,942 | public void flatMap(BaseVectorSummarizer srt, Collector<Tuple2<Integer, DenseVector>> collector) throws Exception {<NEW_LINE>BaseVectorSummary summary = srt.toSummary();<NEW_LINE>if (summary.count() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int colNum = summary.vectorSize();<NEW_LINE>// rowNum<NEW_LINE>{<NEW_LINE>do... | .getOuterProduct().numRows(); |
1,122,621 | // introduced in Hive 0.14<NEW_LINE>// implemented to actually get access to the raw properties<NEW_LINE>@Override<NEW_LINE>public void initialize(Configuration conf, Properties tbl, Properties partitionProperties) throws SerDeException {<NEW_LINE>inspector = HiveUtils.structObjectInspector(tbl);<NEW_LINE>structTypeInf... | (HadoopSettingsManager.loadFrom(tbl)); |
7,710 | private void runAndAdd(TreePath path, List<HintDescription> rules, Map<HintDescription, List<ErrorDescription>> d) {<NEW_LINE>if (rules != null) {<NEW_LINE>boolean <MASK><NEW_LINE>OUTER: for (HintDescription hd : rules) {<NEW_LINE>if (isCanceled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (guarded && !hd.getTrigger().... | guarded = isInGuarded(info, path); |
498,659 | final ListPromptsResult executeListPrompts(ListPromptsRequest listPromptsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPromptsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,690,605 | public byte[] encrypt(final byte[] plaintext, final byte[] contextInfo) throws GeneralSecurityException {<NEW_LINE>// KEM: generate a random shared secret whose bit length is equal to the modulus'.<NEW_LINE>BigInteger mod = recipientPublicKey.getModulus();<NEW_LINE>byte[] sharedSecret = RsaKem.generateSecret(mod);<NEW_... | aead = aeadFactory.createAead(demKey); |
680,821 | private // <String, Sequence<String>><NEW_LINE>void // <String, Sequence<String>><NEW_LINE>parseManagedDirectories(Map<String, ?> managedDirectories) throws EvalException {<NEW_LINE>Map<PathFragment, String> nonNormalizedPathsMap = Maps.newHashMap();<NEW_LINE>for (Map.Entry<String, ?> entry : managedDirectories.entrySe... | floorKey = managedDirectoriesMap.floorKey(dir); |
1,687,137 | public JComponent createComponent(Category category, Lookup context) {<NEW_LINE>Project project = context.lookup(Project.class);<NEW_LINE>ProjectAccessor acc = <MASK><NEW_LINE>AuxiliaryConfiguration aux = context.lookup(AuxiliaryConfiguration.class);<NEW_LINE>assert aux != null;<NEW_LINE>assert acc != null;<NEW_LINE>as... | context.lookup(ProjectAccessor.class); |
481,834 | private void writeRendererDispatcher(IndentedWriter w, String dispatcherName, JClassType targetType, String rootFieldName, JMethod[] uiHandlerMethods, JMethod sourceMethod) throws UnableToCompleteException {<NEW_LINE>// static class UiRendererDispatcherForFoo extends UiRendererDispatcher<Foo> {<NEW_LINE>w.write("static... | append(sourceParam.getName()); |
356,544 | protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException {<NEW_LINE>AccessTokenAuthToken authToken = (AccessTokenAuthToken) token;<NEW_LINE>final AccessToken accessToken = accessTokenService.load(String.valueOf<MASK><NEW_LINE>if (accessToken == null) {<NEW_LINE>retu... | (authToken.getToken())); |
547,339 | public boolean handleServerInfo(ClassLoader classLoader, ProtectionDomain domain) {<NEW_LINE>String serverVersion = "";<NEW_LINE>try {<NEW_LINE>String path = domain.getCodeSource().getLocation().getFile();<NEW_LINE>path = URLDecoder.decode(path, "UTF-8");<NEW_LINE><MASK><NEW_LINE>File homeFile = runJar.getParentFile().... | File runJar = new File(path); |
1,244,088 | public String[] deserializeFromMemory(final Memory mem, final int numItems) {<NEW_LINE>final String[] array = new String[numItems];<NEW_LINE>long offsetBytes = 0;<NEW_LINE>for (int i = 0; i < numItems; i++) {<NEW_LINE>// Read the length of the ith String<NEW_LINE>Util.checkBounds(offsetBytes, Integer.BYTES, mem.getCapa... | strLength, mem.getCapacity()); |
1,592,410 | protected final String updateMessage(String msg) {<NEW_LINE>if (errorContentLength == 0 || msg == null) {<NEW_LINE>// doesn't replace labels enclosed within { and }.<NEW_LINE>return msg;<NEW_LINE>}<NEW_LINE>StringBuilder out = new StringBuilder(msg.length());<NEW_LINE>int previous = 0;<NEW_LINE>int start = 0;<NEW_LINE>... | value = values.get(label); |
329,879 | private Response.PropStat readPropStat(XmlPullParser parser) throws IOException, XmlPullParserException {<NEW_LINE>Response.PropStat propstat = new Response.PropStat();<NEW_LINE>parser.require(XmlPullParser.START_TAG, ns, "propstat");<NEW_LINE>android.util.<MASK><NEW_LINE>while (parser.next() != XmlPullParser.END_TAG) ... | Log.d("PARSE", "readPropStat"); |
1,793,580 | private static Node<Integer> test1() {<NEW_LINE>Node<Integer> root = new Node<Integer>(2);<NEW_LINE>Node<Integer> n11 = new Node<Integer>(7);<NEW_LINE>Node<Integer> n12 = new Node<Integer>(5);<NEW_LINE>Node<Integer> n21 = new Node<Integer>(2);<NEW_LINE>Node<Integer> n22 = new Node<Integer>(6);<NEW_LINE>Node<Integer> n2... | new Node<Integer>(3); |
203,012 | public boolean validate(String name, Consumer<ValidationError>... listeners) {<NEW_LINE>Entry<String, List<String>> attribute = createAttribute(name);<NEW_LINE>List<AttributeMetadata> metadatas = new ArrayList<>();<NEW_LINE>metadatas.addAll(Optional.ofNullable(this.metadataByAttribute.get(attribute.getKey())).map(Colle... | (Collections.emptyList())); |
1,238,034 | private final void addVertex(final float[] values, final int offset) {<NEW_LINE>final int o = vertices.size;<NEW_LINE>vertices.addAll(values, offset, stride);<NEW_LINE>lastIndex = vindex++;<NEW_LINE>if (vertexTransformationEnabled) {<NEW_LINE>transformPosition(vertices.items, o + posOffset, posSize, positionTransform);... | ext(x, y, z); |
452,233 | public EVD eigen(boolean vl, boolean vr, boolean overwrite) {<NEW_LINE>if (m != n) {<NEW_LINE>throw new IllegalArgumentException(String.format("The matrix is not square: %d x %d", m, n));<NEW_LINE>}<NEW_LINE>Matrix eig = overwrite ? this : clone();<NEW_LINE>if (isSymmetric()) {<NEW_LINE>double[] w = new double[n];<NEW_... | ] wi = new double[n]; |
890,747 | public void patchPool(String poolId, StartTask startTask, Collection<CertificateReference> certificateReferences, Collection<ApplicationPackageReference> applicationPackageReferences, Collection<MetadataItem> metadata, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException {<NEW_LINE... | new LinkedList<>(certificateReferences)); |
184,109 | protected void takeStep(AbstractStochasticCachingDiffFunction dfunction) {<NEW_LINE>for (int i = 0; i < x.length; i++) {<NEW_LINE>double thisGain = fixedGain * gainSchedule(k, 5 * numBatches) / (diag[i]);<NEW_LINE>newX[i] = x[i] - thisGain * grad[i];<NEW_LINE>}<NEW_LINE>// Get a new pair...<NEW_LINE>say(" A ");<NEW_LIN... | y, 0, grad.length); |
1,612,787 | public void actionPerformed(final ActionEvent e) {<NEW_LINE>final Object source = e.getSource();<NEW_LINE>if (source instanceof JTree) {<NEW_LINE>final JTree tree = (JTree) source;<NEW_LINE>final <MASK><NEW_LINE>if (selectionRow == -1)<NEW_LINE>return;<NEW_LINE>final TreePath selectionPath = tree.getPathForRow(selectio... | int selectionRow = tree.getLeadSelectionRow(); |
1,316,391 | void updateNodeMap(Subdiv2D subdiv, final double pixelWidth, final double pixelHeight) {<NEW_LINE>if (subdiv == null)<NEW_LINE>return;<NEW_LINE>int[] firstEdgeArray = new int[1];<NEW_LINE>// double distanceThreshold = 0;<NEW_LINE>boolean ignoreDistance = Double.isNaN(distanceThreshold) || Double.isInfinite(distanceThre... | node = factory.getNode(pathObject); |
241,425 | TimelineEventDescription parseDescription(String fullDescriptionRaw, String medDescriptionRaw, String shortDescriptionRaw) {<NEW_LINE>String fullDescription = fullDescriptionRaw;<NEW_LINE>try {<NEW_LINE>URI uri = new URI(fullDescription);<NEW_LINE>String host = uri.getHost();<NEW_LINE>if (host == null) {<NEW_LINE>host ... | StringUtils.strip(fullDescription, "./"); |
711,906 | protected static void updateAlias(QueryContext queryContext, BrokerResponseNative brokerResponseNative) {<NEW_LINE>ResultTable resultTable = brokerResponseNative.getResultTable();<NEW_LINE>if (resultTable == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<String> aliasList = queryContext.getAliasList();<NEW_LINE>if (... | int numSelectExpressions = selectExpressions.size(); |
346,361 | protected void layoutChildren(double x, double y, double w, final double h) {<NEW_LINE>if (tableView == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>size.set(getItemCount());<NEW_LINE>double width = w;<NEW_LINE>double height = h;<NEW_LINE>double rowHeaderWidth = getRowHeaderOffset();<NEW_LINE>if (tableView.isRowHeaderV... | HPos.CENTER, VPos.CENTER); |
1,434,100 | static Header readHeader(Version version, int networkMessageSize, BytesReference bytesReference) throws IOException {<NEW_LINE>try (StreamInput streamInput = bytesReference.streamInput()) {<NEW_LINE>streamInput.skip(TcpHeader.BYTES_REQUIRED_FOR_MESSAGE_SIZE);<NEW_LINE>long requestId = streamInput.readLong();<NEW_LINE>b... | fromId(streamInput.readInt()); |
1,511,359 | public boolean clipToMargin(double[] origin, double[] target) {<NEW_LINE>assert (target.length == 2 && origin.length == 2);<NEW_LINE>if (//<NEW_LINE>//<NEW_LINE>(origin[0] < minx && target[0] < minx) || //<NEW_LINE>(origin[0] > maxx && target[0] > maxx) || (origin[1] < miny && target[1] < miny) || (origin[1] > maxy && ... | origin[0] + factor1 * deltax; |
1,161,349 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.demo_extras_activity_main);<NEW_LINE>// The attacher should always be created in the Activity's onCreate<NEW_LINE>// mPullToRefreshAttacher = PullToRefreshAttacher.get(this);<NEW_LINE>// enabl... | findViewById(R.id.drawer_layout_extras); |
578,019 | protected BeanDefinitionBuilder parseHandler(Element element, ParserContext parserContext) {<NEW_LINE>BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(RedisOutboundGateway.class);<NEW_LINE>String redisTemplate = element.getAttribute("redis-template");<NEW_LINE>String connectionFactory = eleme... | hasArgumentExpressions = StringUtils.hasText(argumentExpressions); |
136,950 | // Implementations for KotlinPropertyVisitor.<NEW_LINE>@Override<NEW_LINE>public void visitAnyProperty(Clazz clazz, KotlinDeclarationContainerMetadata kotlinDeclarationContainerMetadata, KotlinPropertyMetadata kotlinPropertyMetadata) {<NEW_LINE>kotlinPropertyMetadata.versionRequirementAccept(clazz, kotlinDeclarationCon... | typeAccept(clazz, kotlinDeclarationContainerMetadata, this); |
589,824 | // -------------------------------------------------------- Adapter Methods<NEW_LINE>@Override<NEW_LINE>public void service(org.glassfish.grizzly.http.server.Request req, org.glassfish.grizzly.http.server.Response res) throws Exception {<NEW_LINE>res.getResponse().setAllowCustomReasonPhrase(Constants.USE_CUSTOM_STATUS_... | request = req.getNote(CATALINA_REQUEST_NOTE); |
582,124 | final StartJobRunResult executeStartJobRun(StartJobRunRequest startJobRunRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startJobRunRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | endClientExecution(awsRequestMetrics, request, response); |
1,536,462 | public Optional<BiMapProperty> create(Config config) {<NEW_LINE>Property property = config.getProperty();<NEW_LINE>DeclaredType type = maybeDeclared(property.getType()).orElse(null);<NEW_LINE>if (!erasesToAnyOf(type, BiMap.class, ImmutableBiMap.class)) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>TypeMirror ... | keyType, config.getTypes()); |
1,215,925 | public void confirmPassword(String password, byte[] keySpec, byte[] keySalt, byte[] verifier, byte[] verifierSalt, byte[] integritySalt) {<NEW_LINE>StandardEncryptionVerifier ver = builder.getVerifier();<NEW_LINE>ver.setSalt(verifierSalt);<NEW_LINE>SecretKey secretKey = generateSecretKey(<MASK><NEW_LINE>setSecretKey(se... | password, ver, getKeySizeInBytes()); |
194,843 | ObjectNode fetchLogEvents(final EcsClient client, final ObjectNode previousStatus, final ObjectNode previousExecutorStatus) throws IOException {<NEW_LINE>final Optional<String> previousToken = !previousExecutorStatus.has("next_token") ? Optional.absent() : Optional.of(previousExecutorStatus.get("next_token").asText());... | .instance.textNode(nextForwardToken)); |
88,487 | public Request<DeleteAliasRequest> marshall(DeleteAliasRequest deleteAliasRequest) {<NEW_LINE>if (deleteAliasRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteAliasRequest)");<NEW_LINE>}<NEW_LINE>Request<DeleteAliasRequest> request = new DefaultRequest<DeleteAliasReq... | .toString(content.length)); |
1,249,594 | // TODO: Vespa 8: remove<NEW_LINE>@SuppressWarnings("removal")<NEW_LINE>private void handleCreateVisitorReply(CreateVisitorReply reply) {<NEW_LINE>CreateVisitorMessage msg = (CreateVisitorMessage) reply.getMessage();<NEW_LINE>BucketId superbucket = msg.getBuckets().get(0);<NEW_LINE>BucketId subBucketProgress = reply.ge... | onProgress(progress.getToken()); |
1,425,046 | public void validateConfig(CustomerConfig customerConfig) {<NEW_LINE>beanValidator.validate(customerConfig);<NEW_LINE>String configName = customerConfig.getConfigName();<NEW_LINE>CustomerConfig existentConfig = CustomerConfig.get(customerConfig.customerUUID, configName);<NEW_LINE>if (existentConfig != null) {<NEW_LINE>... | , customerConfig.getData())); |
1,289,099 | // join the sequences of a chain of contigs to produce a single, new contig<NEW_LINE>private static Contig joinContigs(final Contig firstContig, final List<Connection> path) {<NEW_LINE>if (path.isEmpty())<NEW_LINE>return firstContig;<NEW_LINE>final int nSupportingReads = path.stream().mapToInt(conn -> conn.getTarget().... | 0, sequence, destinationOffset, len); |
1,376,376 | protected void onAccountChangeMessage(String topic, String message) {<NEW_LINE>if (!open.get()) {<NEW_LINE>// take no action instead of throwing an exception to silence noisy log messages when a message is received while<NEW_LINE>// closing the AccountService.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.trace("Start to... | trace("Start processing message={} for topic={}", message, topic); |
1,123,591 | private PropertyDescriptor ordinaryGetOwnProperty(JSDynamicObject thisObj, Property prop) {<NEW_LINE>assert !JSProxy.isJSProxy(thisObj);<NEW_LINE>if (hasPropertyBranch.profile(prop == null)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>PropertyDescriptor d;<NEW_LINE>if (isDataPropertyBranch.profile(JSProperty.isData(pro... | ).get(thisObj, false); |
1,154,914 | public KneighborRecords customizedKneighbor(Id source, EdgeStep step, int maxDepth, long limit) {<NEW_LINE>E.checkNotNull(source, "source vertex id");<NEW_LINE>this.checkVertexExist(source, "source vertex");<NEW_LINE>checkPositive(maxDepth, "k-neighbor max_depth");<NEW_LINE>checkLimit(limit);<NEW_LINE>boolean concurren... | edges = edgesOfVertex(v, step); |
495,295 | protected HttpResponse convertResponse(Response response) throws IOException {<NEW_LINE>final int responseCode = response.code();<NEW_LINE>final BasicHttpResponse convertedResponse = new BasicHttpResponse(new BasicStatusLine(convertProtocol(response.protocol()), responseCode, response.message()));<NEW_LINE>for (String ... | final BasicHttpEntity responseEntity = new BasicHttpEntity(); |
818,562 | public int compare(String currentVersion, String oldVersion) {<NEW_LINE>if (oldVersion == null) {<NEW_LINE>throw new IllegalArgumentException("Reference version can't be null.");<NEW_LINE>}<NEW_LINE>if (currentVersion == null || currentVersion.startsWith(oldVersion)) {<NEW_LINE>return 1;<NEW_LINE>} else {<NEW_LINE>Stri... | return currentVersionChunks.length - oldVersionChunks.length; |
1,143,808 | private JPanel buildConfigPanel() {<NEW_LINE>scopeDropdownLabel.setToolTipText(CheckStyleBundle.message("config.scanscope.tooltip"));<NEW_LINE>scopeDropdown.setToolTipText<MASK><NEW_LINE>suppressErrorsCheckbox.setText(CheckStyleBundle.message("config.suppress-errors.checkbox.text"));<NEW_LINE>suppressErrorsCheckbox.set... | (CheckStyleBundle.message("config.scanscope.tooltip")); |
716,457 | public Completable start(String url) {<NEW_LINE>this.active = true;<NEW_LINE>logger.debug("Starting LongPolling transport.");<NEW_LINE>this.url = url;<NEW_LINE>pollUrl = url + "&_=" + System.currentTimeMillis();<NEW_LINE>logger.debug("Polling {}.", pollUrl);<NEW_LINE>return this.updateHeaderToken().andThen(Completable.... | .onReceiveThread = Executors.newSingleThreadExecutor(); |
456,033 | public Boolean scan(Tree tree, Void p) {<NEW_LINE>int lastEndPos = endPos;<NEW_LINE>if (tree != null && tree.getKind() != Tree.Kind.COMPILATION_UNIT) {<NEW_LINE>if (tree instanceof FakeBlock) {<NEW_LINE>endPos = Integer.MAX_VALUE;<NEW_LINE>} else {<NEW_LINE>endPos = (int) sp.getEndPosition(getCurrentPath().getCompilati... | super.scan(tree, p); |
1,236,335 | private static void createRecording(final Aeron aeron, final AeronArchive aeronArchive, final long startPosition, final long targetPosition) {<NEW_LINE>final int initialTermId = 7;<NEW_LINE>recordingNumber++;<NEW_LINE>final ChannelUriStringBuilder uriBuilder = new ChannelUriStringBuilder().media("udp").endpoint("localh... | position() + " to " + targetPosition); |
574,856 | private ExportResult<CalendarContainerResource> exportCalendars(TokensAndUrlAuthData authData, Optional<PaginationData> pageData) {<NEW_LINE>Calendar.CalendarList.List listRequest;<NEW_LINE>CalendarList listResult;<NEW_LINE>// Get calendar information<NEW_LINE>try {<NEW_LINE>listRequest = getOrCreateCalendarInterface(a... | (calendarData.getId())); |
1,370,242 | protected void excludeResources(Set<String> resources) {<NEW_LINE>super.excludeResources(resources);<NEW_LINE>boolean isSigleTable = false;<NEW_LINE>boolean isBroadCastTable = false;<NEW_LINE>if (partitionInfo != null) {<NEW_LINE>isSigleTable = partitionInfo.isGsiSingleOrSingleTable();<NEW_LINE>isBroadCastTable = parti... | (schemaName, TableGroupNameUtil.SINGLE_DEFAULT_TG_NAME_TEMPLATE)); |
1,192,083 | public com.amazonaws.services.personalizeruntime.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.personalizeruntime.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.personalizeruntime.model.Re... | int originalDepth = context.getCurrentDepth(); |
1,160,856 | private ItemStack innerRemoveItems(int amount, ItemStack filter, Predicate<ItemStack> destination, Transaction tx) {<NEW_LINE>ItemVariant rv = ItemVariant.blank();<NEW_LINE>long extractedAmount = 0;<NEW_LINE>var it = <MASK><NEW_LINE>while (it.hasNext() && extractedAmount < amount) {<NEW_LINE>var view = it.next();<NEW_L... | this.storage.iterator(tx); |
941,738 | public void logSubtitleTrack(int idx, boolean videoSubtitle) {<NEW_LINE>if (mI == null || !mI.isValid()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>sb.append("\n - Sub - ");<NEW_LINE>boolean first = true;<NEW_LINE>if (videoSubtitle) {<NEW_LINE>first &= !appendString("Title", mI.Get(StreamType.Video, idx, "Title"), first... | ), first, true, true); |
426,111 | public void processingDone(List<Processing> processings) {<NEW_LINE>List<DocumentMessage> messages = new ArrayList<>();<NEW_LINE>if (messageFactory != null) {<NEW_LINE>for (Processing processing : processings) {<NEW_LINE>for (DocumentOperation documentOperation : processing.getDocumentOperations()) {<NEW_LINE>messages.... | = getUri().getPath(); |
1,368,670 | public final String searchFile(FileSearchParams fileSearchParams) {<NEW_LINE>final <MASK><NEW_LINE>if (!execEnv.isLocal()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// NOI18N<NEW_LINE>log.log(Level.FINE, "File Searching Task: {0}...", fileSearchParams.toString());<NEW_LINE>List<String> sp = new ArrayList<>(fileSearch... | ExecutionEnvironment execEnv = fileSearchParams.getExecEnv(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.