idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
317,550 | protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>monitor.beginTask("Add Account Group....... ", IProgressMonitor.UNKNOWN);<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>tcp.process(RequestCmd.ADD_ACCOUNT_GROUP, param, new INetReader() {<NEW_LINE><NEW_LINE>public void process(... | item.setText(colIndex, ""); |
1,755,770 | static int indexOf(String haystack, String needle, int fromIndex, int toIndex) {<NEW_LINE>int trimmedToIndex = toIndex > haystack.length() ? haystack.length() : toIndex;<NEW_LINE>if (fromIndex >= trimmedToIndex) {<NEW_LINE>return needle.<MASK><NEW_LINE>}<NEW_LINE>int fromIndexTrimmed = fromIndex < 0 ? 0 : fromIndex;<NE... | isEmpty() ? trimmedToIndex : -1; |
1,458,676 | public void maybeExportToJson() {<NEW_LINE>if (dumpBlockchainData && daoStateService.isParseBlockChainComplete()) {<NEW_LINE>// We store the data we need once we write the data to disk (in the thread) locally.<NEW_LINE>// Access to daoStateService is single threaded, we must not access daoStateService from the thread.<... | allJsonTxOutputs = new ArrayList<>(); |
432,691 | public DmnDefinition convertToDmnModel(InputStreamProvider inputStreamProvider, boolean validateSchema, boolean enableSafeDmnXml, String encoding) {<NEW_LINE>XMLInputFactory xif = XMLInputFactory.newInstance();<NEW_LINE>if (xif.isPropertySupported(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES)) {<NEW_LINE>xif.setPrope... | e.getMessage(), e); |
324,372 | public void onEmailSent(@NonNull final I_AD_Archive archive, @Nullable final UserEMailConfig userMailConfig, final EMailAddress from, final EMailAddress to, final EMailAddress cc, final EMailAddress bcc, @NonNull final ArchiveEmailSentStatus status) {<NEW_LINE>if (!isLoggableArchive(archive)) {<NEW_LINE>return;<NEW_LIN... | final I_C_Doc_Outbound_Log_Line docExchangeLine = createLogLine(archive); |
901,787 | private void prepareWriteHeader(byte opCode, int payloadLength) {<NEW_LINE>//<NEW_LINE>// We need to prepare the frame header.<NEW_LINE>//<NEW_LINE>_writeBuffer.resize(_writeBufferSize, false);<NEW_LINE>_writeBuffer.limit(_writeBufferSize);<NEW_LINE>_writeBuffer.position(0);<NEW_LINE>//<NEW_LINE>// Set the opcode - thi... | _writeBuffer.b.put(_writeMask); |
734,285 | public HitType queryEnvelopeInGeometry(Envelope2D env) {<NEW_LINE>if (!env.intersect(m_geomEnv))<NEW_LINE>return HitType.Outside;<NEW_LINE>int ixmin = worldToPixX(env.xmin);<NEW_LINE>int <MASK><NEW_LINE>int iymin = worldToPixY(env.ymin);<NEW_LINE>int iymax = worldToPixY(env.ymax);<NEW_LINE>if (ixmin < 0)<NEW_LINE>ixmin... | ixmax = worldToPixX(env.xmax); |
753,402 | protected List<SmallFile> smallFilesProfile(String partitionPath) {<NEW_LINE>// smallFiles only for partitionPath<NEW_LINE>List<SmallFile> smallFileLocations = new ArrayList<>();<NEW_LINE>HoodieTimeline commitTimeline = metaClient.getCommitsTimeline().filterCompletedInstants();<NEW_LINE>if (!commitTimeline.empty()) {<N... | String filename = file.getFileName(); |
345,805 | public static RubyValue untrace_var(RubyValue receiver, RubyArray args, RubyBlock block) {<NEW_LINE>if (null == args || args.size() < 1) {<NEW_LINE>int actual_argc = (null == args) ? 0 : args.size();<NEW_LINE>throw new RubyException(RubyRuntime.ArgumentErrorClass, "in `untrace_var': wrong number of arguments (" + actua... | (0)).toString(); |
1,062,272 | protected Predicate<byte[]> intersects() {<NEW_LINE>final ShapeField.DecodedTriangle scratchTriangle = new ShapeField.DecodedTriangle();<NEW_LINE>return triangle -> {<NEW_LINE>ShapeField.decodeTriangle(triangle, scratchTriangle);<NEW_LINE>switch(scratchTriangle.type) {<NEW_LINE>case POINT:<NEW_LINE>{<NEW_LINE>double y ... | cX = decode(scratchTriangle.cX); |
1,126,249 | public final BufferedImage decode() throws IOException {<NEW_LINE>if (!validPNG) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ColorModel cmodel = new ComponentColorModel(COLOR_SPACE, BITS, false, <MASK><NEW_LINE>SampleModel smodel = new ComponentSampleModel(DATA_TYPE, width, height, 3, width * 3, BAND_OFFSETS);<NEW_LINE... | false, Transparency.OPAQUE, DATA_TYPE); |
223,215 | protected void handleMouseMovement(MouseEvent e) {<NEW_LINE>// Set the anchor<NEW_LINE>ZonePoint vertex = template.getVertex();<NEW_LINE>if (!anchorSet) {<NEW_LINE>setCellAtMouse(e, vertex);<NEW_LINE>controlOffset = null;<NEW_LINE>// Move the anchor if control pressed.<NEW_LINE>} else if (SwingUtil.isControlDown(e)) {<... | convert(lt.getVertex()); |
1,258,795 | private MethodSpec waiterConsumerBuilderOperationWithOverrideConfig(Map.Entry<String, WaiterDefinition> waiterDefinition) {<NEW_LINE>String waiterMethodName = waiterDefinition.getKey();<NEW_LINE>OperationModel opModel = model.getOperation(waiterDefinition.getValue().getOperation());<NEW_LINE>ClassName requestClass = Cl... | ), requestClass, waiterDefinition, opModel); |
1,437,514 | public void endVisit(JsNameRef x, JsContext ctx) {<NEW_LINE>// Removes constructor references from defineClass parameters.<NEW_LINE>// These references can be either be originated by JConstructors or<NEW_LINE>// (in closure formatted code) by JClassTypes.<NEW_LINE>JClassType classType = map.nameToType(x.getName());<NEW... | nameToMethod(x.getName()); |
124,496 | protected void markStreamsAsUsedInternal(Transaction t, final Map<Long, byte[]> streamIdsToReference) {<NEW_LINE>if (streamIdsToReference.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SnapshotsStreamIdxTable index = tables.getSnapshotsStreamIdxTable(t);<NEW_LINE>Multimap<SnapshotsStreamIdxTable.SnapshotsStreamIdxRo... | ] reference = entry.getValue(); |
26,439 | private static Mono<ClientSession> doGetSession(TransactionSynchronizationManager synchronizationManager, ReactiveMongoDatabaseFactory dbFactory, SessionSynchronization sessionSynchronization) {<NEW_LINE>final ReactiveMongoResourceHolder registeredHolder = (ReactiveMongoResourceHolder) synchronizationManager.getResourc... | .getRequiredSession().startTransaction(); |
301,788 | public Enumeration enabled(GrammarEnvironment ctx) {<NEW_LINE>Enumeration<Node> en = ctx.getDocumentChildren();<NEW_LINE>while (en.hasMoreElements()) {<NEW_LINE>Node next = (Node) en.nextElement();<NEW_LINE>if (next.getNodeType() == Node.ELEMENT_NODE) {<NEW_LINE>boolean xslt = false;<NEW_LINE>boolean version1x = false;... | attr = attrs.item(i); |
1,574,388 | public void push(RowMap r) throws Exception {<NEW_LINE>if (!r.shouldOutput(outputConfig)) {<NEW_LINE>context.<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String value = r.toJSON(outputConfig);<NEW_LINE>String natsSubject = new TopicInterpolator(this.natsSubjectTemplate).generateFromRowMapAndCleanUpIllegalCharacters(r);<... | setPosition(r.getNextPosition()); |
1,248,133 | public GeoResults<GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, Distance radius, GeoRadiusCommandArgs args) {<NEW_LINE>Assert.notNull(key, "Key must not be null!");<NEW_LINE><MASK><NEW_LINE>Assert.notNull(radius, "Radius must not be null!");<NEW_LINE>Assert.notNull(args, "Args must not be null!");<N... | Assert.notNull(member, "Member must not be null!"); |
1,641,849 | protected void executeActionInvocation(ActionInvocation invocation) {<NEW_LINE>if (invocation != null) {<NEW_LINE>new ActionCallback.Default(invocation, upnpService.getControlPoint()).run();<NEW_LINE>ActionException anException = invocation.getFailure();<NEW_LINE>if (anException != null && anException.getMessage() != n... | (newArgument.getDatatype())); |
750,681 | public Set<Integer> convertToNodeIds(@Nonnull Collection<CommitId> commitIds, boolean reportNotFound) {<NEW_LINE>Set<Integer> result = ContainerUtil.newHashSet();<NEW_LINE>Set<CommitId> matchedIds = ContainerUtil.newHashSet();<NEW_LINE>for (int i = 0; i < myCommitIdIndexes.size(); i++) {<NEW_LINE>CommitId commitId = my... | add(entry.getKey()); |
678,498 | protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) {<NEW_LINE>bindGuiTexture();<NEW_LINE>this.drawTexturedModalRect(getGuiLeft(), getGuiTop(), 0, 0, getXSize(), getYSize());<NEW_LINE>int x = getGuiLeft() + 22;<NEW_LINE>int y = getGuiTop() + 11;<NEW_LINE>RenderUtil.renderGuiTank(getTileEntity... | ().getActiveTask().color; |
568,888 | public PartitionGetResult partitionGet(PartitionGetParam partParam) {<NEW_LINE>PartSampleParam param = (PartSampleParam) partParam;<NEW_LINE>KeyPart keyPart = param.getIndicesPart();<NEW_LINE>int sampleType = param.getSampleType();<NEW_LINE>long[] nodeIds = ((ILongKeyPartOp) keyPart).getKeys();<NEW_LINE>Long2IntOpenHas... | Entry entry = iter.next(); |
1,526,662 | public boolean execute(CommandSender sender, String label, String[] args, CommandMessages commandMessages) {<NEW_LINE>if (!testPermission(sender, commandMessages.getPermissionMessage())) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (args.length != 1) {<NEW_LINE>sendUsageMessage(sender, commandMessages);<NEW_LINE>retu... | ).send(sender, name); |
273,425 | public AnimClip buildAnimation(HasLocalTransform target) {<NEW_LINE>Set<Float> <MASK><NEW_LINE>for (int frameI = 0; ; ++frameI) {<NEW_LINE>float time = frameI / fps;<NEW_LINE>if (time > duration) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>times.add(time);<NEW_LINE>}<NEW_LINE>times.addAll(rotations.keySet());<NEW_LINE>times.... | times = new TreeSet<>(); |
482,413 | final BatchDeleteDocumentResult executeBatchDeleteDocument(BatchDeleteDocumentRequest batchDeleteDocumentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDeleteDocumentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,529,303 | final DeleteAppsListResult executeDeleteAppsList(DeleteAppsListRequest deleteAppsListRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAppsListRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | endClientExecution(awsRequestMetrics, request, response); |
1,564,781 | public void write(final Writer writer, final SolrQueryRequest request, final String coreName, final QueryResponse rsp) throws IOException {<NEW_LINE>writeHtmlHead(writer, request);<NEW_LINE>writer.write("<body id=\"SnapshotImagesReponseWriter\">\n");<NEW_LINE>final SolrParams originalParams = request.getOriginalParams(... | SolrDocument doc = iterator.next(); |
1,451,332 | public void marshall(CustomKeyStoresListEntry customKeyStoresListEntry, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (customKeyStoresListEntry == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(customKeySto... | customKeyStoresListEntry.getCustomKeyStoreName(), CUSTOMKEYSTORENAME_BINDING); |
1,069,826 | private static void addParentKeeps(BundleItem bundleItem, Input input, AwbTransform awbTransform, Map<BundleInfo, AwbTransform> bundleInfoAwbTransformMap, AppVariantContext appVariantContext) throws IOException {<NEW_LINE>Set<AwbBundle> parentBundles = new HashSet<>();<NEW_LINE>for (BundleItem parent : bundleItem.paren... | .bundleInfo).getAwbBundle()); |
293,953 | final SearchSessionsResult executeSearchSessions(SearchSessionsRequest searchSessionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchSessionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
581,103 | public void marshall(CreateFileSystemRequest createFileSystemRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createFileSystemRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createFileSyste... | createFileSystemRequest.getPerformanceMode(), PERFORMANCEMODE_BINDING); |
374,424 | public void createUsersWithListInput(List<User> body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput");<N... | = new ArrayList<Pair>(); |
443,673 | protected void matchReportReference(ASTNode reference, IJavaElement element, IJavaElement localElement, IJavaElement[] otherElements, Binding elementBinding, int accuracy, MatchLocator locator) throws CoreException {<NEW_LINE>if (this.isDeclarationOfReferencedTypesPattern) {<NEW_LINE>if ((element = findElement(element,... | Expression) reference).resolvedType : null; |
969,666 | private void createButtonsPanel(JFileChooser fc) {<NEW_LINE>buttonPanel = new JPanel();<NEW_LINE>buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.Y_AXIS));<NEW_LINE>approveButton = new JButton(getApproveButtonText(fc)) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Dimension getMaximumSize() {<NEW_LINE>return... | .setMnemonic(getApproveButtonMnemonic(fc)); |
1,497,523 | public static String encrypt(String plaintext, String masterKey) throws NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException {<NEW_LINE>// Prepare the nonce<NEW_LINE>SecureRandom secureRandom = ... | encodeToString(byteBuffer.array()); |
220,069 | private Attributes create(Association as, Attributes rq, Attributes rqAttrs) throws DicomServiceException {<NEW_LINE>if (mppsNCreateIOD != null) {<NEW_LINE>ValidationResult result = rqAttrs.validate(mppsNCreateIOD);<NEW_LINE>if (!result.isValid())<NEW_LINE>throw DicomServiceException.valueOf(result, rqAttrs);<NEW_LINE>... | warn(as + ": Failed to store MPPS:", e); |
84,395 | public char[] genericSignature() {<NEW_LINE>if (!isPrototype())<NEW_LINE>return this.prototype.genericSignature();<NEW_LINE>StringBuffer sig = null;<NEW_LINE>if (this.typeVariables != Binding.NO_TYPE_VARIABLES) {<NEW_LINE>sig = new StringBuffer(10);<NEW_LINE>sig.append('<');<NEW_LINE>for (int i = 0, length = this.typeV... | .toString().toCharArray(); |
1,592,593 | private static void decodeResResource(ResResource res, File inDir, AXmlResourceParser xmlParser, Map<String, Set<String>> nonValueReferences) throws AndrolibException, IOException {<NEW_LINE>ResFileValue fileValue = (ResFileValue) res.getValue();<NEW_LINE><MASK><NEW_LINE>String typeName = res.getResSpec().getType().get... | String inFileName = fileValue.getStrippedPath(); |
1,847,407 | private <T> RedisCommand<K, V, T> preProcessCommand(RedisCommand<K, V, T> command) {<NEW_LINE>RedisCommand<K, V, T> local = command;<NEW_LINE>if (local.getType().name().equals(AUTH.name())) {<NEW_LINE>local = attachOnComplete(local, status -> {<NEW_LINE>if (status.equals("OK")) {<NEW_LINE>List<char[]> args = CommandArg... | (Collectors.toList())); |
570,455 | public void start() throws Exception {<NEW_LINE>HttpClient client = vertx.createHttpClient(new HttpClientOptions());<NEW_LINE>vertx.createHttpServer().requestHandler(serverRequest -> {<NEW_LINE>System.out.println("Proxying request: " + serverRequest.uri());<NEW_LINE>serverRequest.pause();<NEW_LINE>HttpServerResponse se... | setAll(serverRequest.headers()); |
1,122,715 | protected URL configureURLForProtectedAccess(URL url, OAuthConsumerToken requestToken, ProtectedResourceDetails details, String httpMethod, Map<String, String> additionalParameters) {<NEW_LINE>String file;<NEW_LINE>if (!"POST".equalsIgnoreCase(httpMethod) && !"PUT".equalsIgnoreCase(httpMethod) && !details.isAcceptsAuth... | getPort(), file, streamHandler); |
426,143 | private void fixupPadFile() {<NEW_LINE>// easiest way to deal with the fact that pad files are effectively already downloaded (contents is just array of zero bytes) is to wait until<NEW_LINE>// a piece is allocated for downloading and then set the pad blocks as written. If you try and do this via presetting resume data... | DMPieceList pl = dmPiece.getPieceList(); |
301,649 | public static List<IndexItem> listLocalRecordedVoiceIndexes(OsmandApplication app) {<NEW_LINE>File voiceDirPath = app.getAppPath(IndexConstants.VOICE_INDEX_DIR);<NEW_LINE>LocalIndexHelper localIndexHelper = new LocalIndexHelper(app);<NEW_LINE>List<LocalIndexInfo> localIndexes = new ArrayList<>();<NEW_LINE>List<IndexIte... | () + "_0" + IndexConstants.VOICE_INDEX_EXT_ZIP; |
121,030 | final AddProfilePermissionResult executeAddProfilePermission(AddProfilePermissionRequest addProfilePermissionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addProfilePermissionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,215,186 | ActionResult<Wo> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>String id = StringTools.uniqueToken();<NEW_LINE>Meta meta = new Meta();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>meta.setId(id);<NEW_LINE>assignmentStringValue(meta);<NEW... | (assertFloatValue(o, meta)); |
1,346,394 | private void evaluate(Line.Part part) {<NEW_LINE>Line line = part.getLine();<NEW_LINE>if (line == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DataObject dataObject = DataEditorSupport.findDataObject(line);<NEW_LINE>if (!isPhpDataObject(dataObject)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>EditorCookie editorCookie = (Ed... | document, ep, offset) : null; |
292,083 | private // }<NEW_LINE>List<Object> processOpenDopeRepeat(Object sdt, Map<String, CustomXmlPart> customXmlDataStorageParts) {<NEW_LINE>Tag tag = getSdtPr(sdt).getTag();<NEW_LINE>HashMap<String, String> map = QueryString.parseQueryString(<MASK><NEW_LINE>String repeatId = map.get(BINDING_ROLE_REPEAT);<NEW_LINE>// Check, w... | tag.getVal(), true); |
1,105,788 | private void asyncStartScan() {<NEW_LINE>if (_rpcRunning) {<NEW_LINE>logger.error("scan rpc already be running, encounter logic error, we just abandon this scan, " + "tableName({}), appId({})", _table.getTableName(), _table.getAppID());<NEW_LINE>_encounterError = true;<NEW_LINE>_cause = new PException("scan internal er... | getTableName(), request, _hash); |
1,569,899 | public static VectorMap deserialize(InputStream in) throws IOException {<NEW_LINE>DataInputStream dataIn = new DataInputStream(in);<NEW_LINE>// Read the max key length<NEW_LINE>itype keyIntType = itype.getType(dataIn.readInt());<NEW_LINE>// Read the vector dimensionality<NEW_LINE>int dim = dataIn.readInt();<NEW_LINE>//... | ] buffer = new byte[strlen]; |
937,663 | protected void saveToModel() {<NEW_LINE>super.saveToModel();<NEW_LINE>int componentleft = (Integer.parseInt(textFieldTrayCountCols.getText()) * Integer.parseInt(textFieldTrayCountRows.getText())) - Integer.<MASK><NEW_LINE>lblComponentCount.setText("Components left: " + String.valueOf(componentleft));<NEW_LINE>if ((feed... | parseInt(textFieldFeedCount.getText()); |
1,608,590 | public static void exportToStream(final OutputStream outputStream, final Iterable<? extends NodeInterface> nodes, final Iterable<? extends RelationshipInterface> relationships, final Iterable<String> filePaths, final boolean includeFiles) throws FrameworkException {<NEW_LINE>try (final ZipOutputStream zos = new ZipOutp... | (zos), nodes, relationships); |
466,480 | public SofaRequest decodeObject(AbstractByteBuf data, Map<String, String> context) throws SofaRpcException {<NEW_LINE>try {<NEW_LINE>UnsafeByteArrayInputStream inputStream = new UnsafeByteArrayInputStream(data.array());<NEW_LINE>Hessian2Input input = new Hessian2Input(inputStream);<NEW_LINE>input.setSerializerFactory(s... | Object object = input.readObject(); |
588,595 | public List<String> beforeAndAfterPuzzles(String[] phrases) {<NEW_LINE>Map<String, Set<Integer>> sameFirstWord = new HashMap<>();<NEW_LINE>for (int i = 0; i < phrases.length; ++i) {<NEW_LINE>String phrase = phrases[i];<NEW_LINE>String word = phrase.split(" ")[0];<NEW_LINE>sameFirstWord.computeIfAbsent(word, k -> new Ha... | .join(" ", t)); |
1,537,290 | private final OpDeclNode buildParameter(TreeNode treeNode, int declKind, int declLevel, ModuleNode cm, boolean declare) {<NEW_LINE>UniqueString us = null;<NEW_LINE>int arity = 0;<NEW_LINE>TreeNode[] ss = treeNode.heirs();<NEW_LINE>if (treeNode.isKind(N_IdentDecl)) {<NEW_LINE>us = ss[0].getUS();<NEW_LINE>arity = (ss.len... | ss[0].getUS(); |
269,047 | static void allPathPrint(String p, boolean[][] maze, int r, int c, int[][] path, int step) {<NEW_LINE>if (r == maze.length - 1 && c == maze[0].length - 1) {<NEW_LINE>path[r][c] = step;<NEW_LINE>for (int[] arr : path) {<NEW_LINE>System.out.println(Arrays.toString(arr));<NEW_LINE>}<NEW_LINE>System.out.println(p);<NEW_LIN... | [r][c] = 0; |
561,642 | private PlanNode createEmptyNode(PlanNode inputPlan, QueryStmt stmt, Analyzer analyzer) throws UserException {<NEW_LINE>ArrayList<TupleId> tupleIds = Lists.newArrayList();<NEW_LINE>if (inputPlan != null) {<NEW_LINE>tupleIds.addAll(inputPlan.getOutputTupleIds());<NEW_LINE>}<NEW_LINE>if (tupleIds.isEmpty()) {<NEW_LINE>//... | , analyzer).getId()); |
861,041 | private static ExemplarData mapExemplar(Exemplar exemplar) {<NEW_LINE>// Look for trace/span id.<NEW_LINE>SpanContext spanContext = SpanContext.getInvalid();<NEW_LINE>if (exemplar.getAttachments().containsKey("SpanContext")) {<NEW_LINE>// We need to use `io.opencensus.contrib.exemplar.util.AttachmentValueSpanContext`<N... | m = OPENCENSUS_TRACE_ATTACHMENT_PATTERN.matcher(spanContextToString); |
1,657,725 | public FormatterStep newFormatterStep(FormatterStepConfig stepConfig) {<NEW_LINE>// check if config is only setup in one way<NEW_LINE>if (moreThanOneNonNull(this.prettierVersion, this.devDependencies, this.devDependencyProperties)) {<NEW_LINE>throw onlyOneConfig();<NEW_LINE>}<NEW_LINE>if (devDependencies == null) {<NEW... | devDependencies = PrettierFormatterStep.defaultDevDependenciesWithPrettier(prettierVersion); |
395,875 | protected boolean cascadeDeleteWorkBeginButNotCommit(Business business, Work work) throws Exception {<NEW_LINE>if (business.work().listWithJob(work.getJob()).size() > 1) {<NEW_LINE>List<String> taskIds = business.entityManagerContainer().idsEqual(Task.class, Task.work_FIELDNAME, work.getId());<NEW_LINE>if (ListTools.is... | entityManagerContainer().remove(o); |
812,760 | public static ListSetTagsResponse unmarshall(ListSetTagsResponse listSetTagsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSetTagsResponse.setRequestId(_ctx.stringValue("ListSetTagsResponse.RequestId"));<NEW_LINE>listSetTagsResponse.setSetId(_ctx.stringValue("ListSetTagsResponse.SetId"));<NEW_LINE>List<TagsItem> ta... | ("ListSetTagsResponse.Tags[" + i + "].TagLevel")); |
462,079 | final DescribeDomainConfigResult executeDescribeDomainConfig(DescribeDomainConfigRequest describeDomainConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDomainConfigRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Descr... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,395,960 | public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {<NEW_LINE>switch(holder.getItemViewType()) {<NEW_LINE>case FIELD:<NEW_LINE>ViewHolderField viewHolderField = (ViewHolderField) holder;<NEW_LINE>viewHolderField.mRowTextView.setText(mFields.get(position));<NEW_LINE>// give the selected row a gra... | Color.LTGRAY : Color.TRANSPARENT); |
621,800 | public void initialize() {<NEW_LINE>Configuration configuration = getConfig();<NEW_LINE>if (!super.configure()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (this.thing.getThingTypeUID().equals(THING_TYPE_DIGITALIO)) {<NEW_LINE>sensors.add(<MASK><NEW_LINE>} else if (this.thing.getThingTypeUID().equals(THING_TYPE_DIGITALIO... | new DS2405(sensorId, this)); |
179,150 | void showOptions(OptionUtils.MacroOptionKind forKind, boolean commandLineStyle, Consumer<String> lineOut) {<NEW_LINE>List<String> optionsToShow = new ArrayList<>();<NEW_LINE>for (OptionUtils.MacroOptionKind kind : OptionUtils.MacroOptionKind.values()) {<NEW_LINE>if (forKind != null && !kind.equals(forKind)) {<NEW_LINE>... | optionsToShow.add(linePrefix + option); |
1,021,088 | private void dumpBody(Part p) throws Exception {<NEW_LINE>// http://www.iana.org/assignments/media-types/<NEW_LINE>log.finer("=================================================================");<NEW_LINE>log.finer("CONTENT-TYPE: " + p.getContentType());<NEW_LINE>if (p.isMimeType("text/plain")) {<NEW_LINE>log.finer("Pla... | finer(o.toString()); |
779,537 | protected void onPostExecute(Void aVoid) {<NEW_LINE>progress.dismiss();<NEW_LINE>new AlertDialog.Builder(SettingsBackup.this).setTitle(R.string.backup_complete).setMessage(R.string.backup_saved_downloads).setPositiveButton(R.string.btn_view, (dialog, which) -> {<NEW_LINE>Intent intent = FileUtil.getFileIntent(file, new... | R.string.settings_backup_view))); |
725,020 | private synchronized void addElement(Name name, Element element) {<NEW_LINE>Object types = data.get(name);<NEW_LINE>if (types == null) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int type = element.getType();<NEW_LINE>if (types instanceof List) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>List<Element>... | data.put(name, element); |
1,003,174 | public Set instantiate() throws IOException {<NEW_LINE>FileObject confRoot = ((EjbJarXmlWizardPanel1) panels[0]).getSelectedLocation();<NEW_LINE>Project project = ((EjbJarXmlWizardPanel1) panels[0]).getProject();<NEW_LINE>J2eeModuleProvider j2eeModuleProvider = project.getLookup().lookup(J2eeModuleProvider.class);<NEW_... | source = FileUtil.getConfigFile(resource); |
1,421,565 | private void processLastUpdatedTimeParams() {<NEW_LINE>if (wsso.getStartLastUpdatedTime() != null && wsso.getEndLastUpdatedTime() != null) {<NEW_LINE>instanceVersion = 2;<NEW_LINE>handleSQLForAND();<NEW_LINE>whereClause.append("x.lastUpdatedTime BETWEEN :startLastUpdatedTime AND :endLastUpdatedTime");<NEW_LINE>paramete... | "endLastUpdatedTime", wsso.getEndLastUpdatedTime()); |
197,832 | private void processParam(Element element, T holder) {<NEW_LINE>ExecutableElement method = (ExecutableElement) element.getEnclosingElement();<NEW_LINE>List<? extends VariableElement> parameters = method.getParameters();<NEW_LINE>List<ParamHelper> parameterList = methodParameterMap.get(method);<NEW_LINE>JBlock targetBlo... | invocation = JExpr.invoke(methodName); |
515,801 | final CancelPolicyGenerationResult executeCancelPolicyGeneration(CancelPolicyGenerationRequest cancelPolicyGenerationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelPolicyGenerationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
6,902 | public void dump(PrintStream out, String prefix, int indentLevel) {<NEW_LINE>StringBuffer indent = new StringBuffer(prefix);<NEW_LINE>for (int i = 0; i < indentLevel; i++) {<NEW_LINE>indent.append(' ');<NEW_LINE>}<NEW_LINE>// $NON-NLS-1$<NEW_LINE>out.println(indent + "Build Info");<NEW_LINE>// $NON-NLS-1$<NEW_LINE>out.... | out.println(indent + " |"); |
1,733,132 | private SSLSocket upgradeSocketToTls(final Socket socket) throws IOException {<NEW_LINE>final SSLSocketFactory sslSocketFactory;<NEW_LINE>try {<NEW_LINE>sslSocketFactory = getSSLSocketFactory();<NEW_LINE>} catch (final NoSuchAlgorithmException | KeyManagementException e) {<NEW_LINE>throw new StateChangingException(Acco... | StateChangingException(Account.State.TLS_ERROR); |
401,178 | private void subCreate(Module m) throws DuplicateException {<NEW_LINE>Module old = get(m.getCodeNameBase());<NEW_LINE>if (old != null) {<NEW_LINE>if (!Boolean.getBoolean("netbeans.ignore.dupmodule")) {<NEW_LINE><MASK><NEW_LINE>} else {<NEW_LINE>// ignore duplicate module, log and gracefuly exit<NEW_LINE>Util.err.warnin... | throw new DuplicateException(old, m); |
200,806 | private static void checkUpdateServerResources(File sunResourcesXml, Hk2DeploymentManager dm) {<NEW_LINE>Map<String, String> changedData = new <MASK><NEW_LINE>List<TreeParser.Path> pathList = new ArrayList<TreeParser.Path>();<NEW_LINE>// NOI18N<NEW_LINE>ResourceFinder cpFinder = new ResourceFinder("name");<NEW_LINE>// ... | HashMap<String, String>(); |
380,655 | public static void createDirectories(Iterable<PathFragment> dirsToCreate, Path dir, boolean strict) throws IOException {<NEW_LINE>Set<Path> knownDirectories = new HashSet<>();<NEW_LINE>// Add sandboxExecRoot and it's parent -- all paths must fall under the parent of<NEW_LINE>// sandboxExecRoot and we know that sandboxE... | add(dir.getParentDirectory()); |
1,765,307 | public void init(String remoteAddress) {<NEW_LINE>this.remoteAddress = remoteAddress.substring(1);<NEW_LINE>this.keepAlive = HttpUtil.isKeepAlive(nettyRequest);<NEW_LINE>this.url = nettyRequest.uri();<NEW_LINE>int pathEndPos = this.url().indexOf('?');<NEW_LINE>this.uri = pathEndPos < 0 ? this.url() : this.url().substri... | (new ByteBuf[0])); |
1,290,229 | public Map<Integer, ParameterContext> buildParams() {<NEW_LINE>Map<Integer, ParameterContext> params = new HashMap<>(22);<NEW_LINE>int index = 0;<NEW_LINE>MetaDbUtil.setParameter(++index, params, ParameterMethod.setString, this.tableSchema);<NEW_LINE>MetaDbUtil.setParameter(++index, params, ParameterMethod.setString, t... | ParameterMethod.setString, this.tbRule); |
715,734 | public okhttp3.Call readNamespacedDeploymentStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{nam... | localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); |
851,827 | public void processBindingConfiguration(String context, Item item, String bindingConfig) throws BindingConfigParseException {<NEW_LINE>super.processBindingConfiguration(context, item, bindingConfig);<NEW_LINE>String[] parts = bindingConfig.split(";");<NEW_LINE>String address = null;<NEW_LINE>EMType type = null;<NEW_LIN... | keyValue = part.split("="); |
1,032,777 | private double computeImpactB(IntVar v, int a, int b, double before) {<NEW_LINE>model.getEnvironment().worldPush();<NEW_LINE>double after;<NEW_LINE>try {<NEW_LINE>v.updateBounds(a, b, this);<NEW_LINE>model.getSolver().getEngine().propagate();<NEW_LINE>after = searchSpaceSize(vars);<NEW_LINE>return 1.0d - (after / befor... | .getEnvironment().worldPop(); |
910,177 | private void handleUnManagedOSDiskContainers() {<NEW_LINE>final VirtualMachineScaleSetStorageProfile storageProfile = innerModel().virtualMachineProfile().storageProfile();<NEW_LINE>if (isManagedDiskEnabled()) {<NEW_LINE>storageProfile.<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isOSDiskFromStoredImage(storageProfi... | osDisk().withVhdContainers(null); |
32,985 | public void updatePageLength() {<NEW_LINE>// Only update if visible and enabled<NEW_LINE>if (!isVisible() || !enabled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (scrollBody == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isDynamicHeight()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int rowHeight = (int) Math.round(scro... | scrollBodyPanel.setScrollPosition(scrollTop - 1); |
199,236 | public ODocument toDoc(Shape shape) {<NEW_LINE>// TODO REFACTOR<NEW_LINE>ODocument doc = null;<NEW_LINE>if (Point.class.isAssignableFrom(shape.getClass())) {<NEW_LINE>doc = factories.get(OPointShapeBuilder.NAME).toDoc(shape);<NEW_LINE>} else if (Rectangle.class.isAssignableFrom(shape.getClass())) {<NEW_LINE>doc = facto... | Geometry geom = geometry.getGeom(); |
1,837,539 | public ApplicationComponentStrategy unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ApplicationComponentStrategy applicationComponentStrategy = new ApplicationComponentStrategy();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1... | String currentParentElement = context.getCurrentParentElement(); |
547,131 | private static void runAssertionAllCombinations(RegressionEnvironment env, String field, AtomicInteger milestone) {<NEW_LINE>String[] methods = "getMinuteOfHour,getMonthOfYear,getDayOfMonth,getDayOfWeek,getDayOfYear,getEra,gethourOfDay,getmillisOfSecond,getsecondOfMinute,getweekyear,getyear".split(",");<NEW_LINE>String... | sdt = SupportDateTime.make("2002-05-30T09:01:02.003"); |
1,506,679 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
713,629 | // findBPartner<NEW_LINE>@Override<NEW_LINE>public void refreshPanel() {<NEW_LINE>logger.fine("RefreshPanel");<NEW_LINE>if (!posPanel.hasOrder()) {<NEW_LINE>// Document Info<NEW_LINE>totalTitle.setTitle(Msg.getMsg(Env.getCtx(), "Totals"));<NEW_LINE>fieldSalesRep.setText(posPanel.getSalesRepName());<NEW_LINE>fieldDocume... | setText(posPanel.getDateOrderedForView()); |
839,984 | public Builder mergeFrom(com.alibaba.alink.operator.batch.dl.ctr.protos.SimpleMultiTaskOuterClass.SimpleMultiTask other) {<NEW_LINE>if (other == com.alibaba.alink.operator.batch.dl.ctr.protos.SimpleMultiTaskOuterClass.SimpleMultiTask.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (taskTowersBuilder_ == null) {... | bitField0_ = (bitField0_ & ~0x00000001); |
1,385,419 | private void createActions() {<NEW_LINE>new ActionBuilder("Graph Block Flow", getName()).menuPath(MENU_GRAPH, "&Block Flow").menuGroup(MENU_GRAPH, "A").onAction(c -> graphBlockFlow()).enabledWhen(this::canGraph).buildAndInstall(tool);<NEW_LINE>new ActionBuilder("Graph Code Flow", getName()).menuPath(MENU_GRAPH, "C&ode ... | ::canGraph).buildAndInstall(tool); |
816,188 | public void store() throws IOException {<NEW_LINE>Preferences prefs = prefs(suiteProject);<NEW_LINE>prefs.putBoolean(GENERATE_FOR_WINDOWS, windowsModel.isSelected());<NEW_LINE>prefs.putBoolean(GENERATE_FOR_LINUX, linuxModel.isSelected());<NEW_LINE>prefs.putBoolean(GENERATE_FOR_SOLARIS, solarisModel.isSelected());<NEW_L... | GENERATE_FOR_MAC, macModel.isSelected()); |
798,185 | private void readIndexMap() {<NEW_LINE>try {<NEW_LINE>char[] indexMaps = org.eclipse.jdt.internal.compiler.util.Util.getFileCharContent(this.indexNamesMapFile, null);<NEW_LINE>char[][] names = CharOperation.splitOn('\n', indexMaps);<NEW_LINE>if (names.length >= 3) {<NEW_LINE>// First line is DiskIndex signature (see wr... | indexStates.put(indexPath, REUSE_STATE); |
16,908 | public CollectionResult<Greeting, Empty> searchWithPostFilter(@PagingContextParam PagingContext ctx) {<NEW_LINE>List<Greeting> greetings = new ArrayList<>();<NEW_LINE>int idx = 0;<NEW_LINE>int start = ctx.getStart();<NEW_LINE>int stop = start + ctx.getCount();<NEW_LINE>for (Greeting g : _db.values()) {<NEW_LINE>if (idx... | .values().size(); |
533,242 | void printSections(OMRMemCategoryPointer next, int level) throws CorruptDataException {<NEW_LINE>ComponentSizeAllocation csa = computeSize(next);<NEW_LINE>if (csa.size == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>printLine(level, next.name().getCStringAtOffset(0), csa.size, csa.allocations);<NEW_LINE>final int numberOf... | children().at(i); |
1,337,833 | private void loadAttributes(AttributeSet attrs, Context context) {<NEW_LINE>if (attrs != null && context != null) {<NEW_LINE>TypedArray typedArray = context.getTheme().obtainStyledAttributes(attrs, R.styleable.CompactCalendarView, 0, 0);<NEW_LINE>try {<NEW_LINE>currentDayBackgroundColor = typedArray.getColor(R.styleabl... | R.styleable.CompactCalendarView_compactCalendarCurrentSelectedDayTextColor, calenderTextColor); |
676,578 | public TranslateTextResult translateText(TranslateTextRequest translateTextRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(translateTextRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NE... | invoke(request, responseHandler, executionContext); |
1,412,470 | public MdmLinkJson toJson(MdmLink theLink) {<NEW_LINE>MdmLinkJson retVal = new MdmLinkJson();<NEW_LINE>String sourceId = myIdHelperService.resourceIdFromPidOrThrowException(theLink.getSourcePid()).toVersionless().getValue();<NEW_LINE>retVal.setSourceId(sourceId);<NEW_LINE>String goldenResourceId = myIdHelperService.res... | setVector(theLink.getVector()); |
1,546,927 | public void deviceConnected(IDevice device) {<NEW_LINE>if (device == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (device.isEmulator()) {<NEW_LINE>String serial = device.getSerialNumber();<NEW_LINE>Integer port = Integer.parseInt(serial.replace("emulator-", ""));<NEW_LINE>String avdName = null;<NEW_LINE>TelnetClient... | avdName = client.sendCommand("avd name"); |
1,682,664 | private static SparseVectorSummarizer merge(SparseVectorSummarizer left, SparseVectorSummarizer right) {<NEW_LINE>left.count += right.count;<NEW_LINE>left.colNum = Math.max(right.colNum, left.colNum);<NEW_LINE>for (Map.Entry<Integer, VectorStatCol> entry : right.cols.entrySet()) {<NEW_LINE>int idx = entry.getKey();<NEW... | = right.outerProduct.numRows(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.