idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,398,786 | static EObject apply(EProc proc, EObject fun, EObject args) throws Pausable {<NEW_LINE>ESeq a = args.testSeq();<NEW_LINE>if (a == null)<NEW_LINE>throw ERT.badarg(fun, args);<NEW_LINE>EObject res;<NEW_LINE>EFun f = fun.testFunction();<NEW_LINE>if (f != null) {<NEW_LINE>res = apply_last(proc, f, a);<NEW_LINE>} else {<NEW... | = t2.elem1.testAtom(); |
58,240 | final CustomAvailabilityZone executeDeleteCustomAvailabilityZone(DeleteCustomAvailabilityZoneRequest deleteCustomAvailabilityZoneRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteCustomAvailabilityZoneRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequ... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteCustomAvailabilityZone"); |
861,009 | public void actionPerformed(ActionEvent evt, final JTextComponent target) {<NEW_LINE>Document doc = target.getDocument();<NEW_LINE>doc.render(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>FoldHierarchy hierarchy = FoldHierarchy.get(target);<NEW_LINE>int dot = target.getCaret().getD... | allFolds.add(0, fold); |
457,710 | public void update(InlongGroupInfo originGroupInfo, BaseSortConf sortConf) throws Exception {<NEW_LINE>if (originGroupInfo == null) {<NEW_LINE>originGroupInfo = this.groupInfo;<NEW_LINE>}<NEW_LINE>final String groupId = originGroupInfo.getInlongGroupId();<NEW_LINE>Preconditions.checkTrue(groupId != null && groupId.equa... | parseStatusByCode(existGroupInfo.getStatus()); |
724,623 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>if (new ManaWasSpentCondition(ColoredManaSymbol.B).apply(game, source)) {<NEW_LINE>Permanent targetCreature1 = game.getPermanent(getTargetPointer().getFirs... | (1).getFirstTarget()); |
1,597,681 | private XObject eval(String expression, Object contextItem) throws javax.xml.transform.TransformerException {<NEW_LINE>org.apache.xpath.XPath xpath = new org.apache.xpath.XPath(expression, null, prefixResolver, org.apache.xpath.XPath.SELECT);<NEW_LINE>org.apache.xpath.XPathContext xpathSupport = null;<NEW_LINE>// Creat... | xpath.XPathContext(jep, false); |
1,248,658 | private IWeEventFileClient buildIWeEventFileClient(Integer brokerId, String groupId, String nodeAddress) {<NEW_LINE>String clientKey = brokerId + IDENTIFIER + groupId + IDENTIFIER + nodeAddress;<NEW_LINE>if (!this.fileClientMap.containsKey(clientKey)) {<NEW_LINE>FiscoConfig fiscoConfig = new FiscoConfig();<NEW_LINE>fis... | File.separator + nodeAddress2Path(nodeAddress); |
1,029,816 | public static void addExceptionAfterUnit(Body b, String exceptionType, Unit u, String m) {<NEW_LINE>LocalCreation lc = Scene.v().createLocalCreation(b.getLocals());<NEW_LINE>Local l = lc.newLocal(RefType.v(exceptionType));<NEW_LINE>List<Unit> newUnits = new ArrayList<Unit>();<NEW_LINE>Unit u1 = Jimple.v().newAssignStmt... | v().newThrowStmt(l); |
1,595,639 | public void execute(Editor editor, DataContext dataContext) {<NEW_LINE>Project project = dataContext.getData(CommonDataKeys.PROJECT);<NEW_LINE>if (project == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CaretModel caretModel = editor.getCaretModel();<NEW_LINE>int offset = caretModel.getOffset();<NEW_LINE>CharSequence t... | .getDocument().getCharsSequence(); |
1,354,156 | public void onViewRecycled(@NonNull RecyclerView.ViewHolder holder) {<NEW_LINE>if (holder instanceof PostDetailBaseViewHolder) {<NEW_LINE>((PostDetailBaseViewHolder) holder).mUpvoteButton.setColorFilter(mPostIconAndInfoColor, PorterDuff.Mode.SRC_IN);<NEW_LINE>((PostDetailBaseViewHolder) holder).mScoreTextView.setTextCo... | (PostDetailLinkViewHolder) holder).mImageView); |
935,226 | public static ListQueryHistoryResponse unmarshall(ListQueryHistoryResponse listQueryHistoryResponse, UnmarshallerContext _ctx) {<NEW_LINE>listQueryHistoryResponse.setRequestId(_ctx.stringValue("ListQueryHistoryResponse.RequestId"));<NEW_LINE>listQueryHistoryResponse.setSuccess(_ctx.booleanValue("ListQueryHistoryRespons... | ("ListQueryHistoryResponse.Data[" + i + "].RegionId")); |
1,599,329 | public static DescribeDnsCacheDomainsResponse unmarshall(DescribeDnsCacheDomainsResponse describeDnsCacheDomainsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDnsCacheDomainsResponse.setRequestId(_ctx.stringValue("DescribeDnsCacheDomainsResponse.RequestId"));<NEW_LINE>describeDnsCacheDomainsResponse.setTotalCou... | ("DescribeDnsCacheDomainsResponse.Domains[" + i + "].SourceEdns")); |
707,316 | public Void execute(CommandContext commandContext) {<NEW_LINE>if (deploymentId == null) {<NEW_LINE>throw new FlowableIllegalArgumentException("deploymentId is null");<NEW_LINE>}<NEW_LINE>// Update all entities<NEW_LINE>DmnDeploymentEntity deployment = CommandContextUtil.getDeploymentEntityManager(commandContext).findBy... | (commandContext).update(deployment); |
692,322 | protected boolean isNetworkOverlappingRequestedPvlan(Integer existingPrimaryVlan, Integer existingSecondaryVlan, Network.PVlanType existingPvlanType, Integer requestedPrimaryVlan, Integer requestedSecondaryVlan, Network.PVlanType requestedPvlanType) {<NEW_LINE>if (existingPrimaryVlan == null || existingSecondaryVlan ==... | ) && existingSecondaryVlan.equals(requestedSecondaryVlan); |
1,451,295 | final DiscoverPollEndpointResult executeDiscoverPollEndpoint(DiscoverPollEndpointRequest discoverPollEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(discoverPollEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
220,045 | private static boolean putImageInfo(ContentResolver resolver, Cursor media, WritableMap node, int widthIndex, int heightIndex, int sizeIndex, int dataIndex, int mimeTypeIndex, boolean includeFilename, boolean includeFileSize, boolean includeImageSize, boolean includePlayableDuration) {<NEW_LINE>WritableMap image = new ... | null && mimeType.startsWith("video"); |
843,038 | protected void workerRegisterStart(WorkerRegisterContext context, RegisterWorkerPRequest chunk) {<NEW_LINE>final List<String> storageTiers = chunk.getStorageTiersList();<NEW_LINE>final Map<String, Long> totalBytesOnTiers = chunk.getTotalBytesOnTiersMap();<NEW_LINE>final Map<String, Long> usedBytesOnTiers = chunk.getUse... | checkState(worker != null, "No worker metadata found in the WorkerRegisterContext!"); |
1,558,398 | private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String namespaceName, SBNamespaceInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is requi... | this.client.mergeContext(context); |
474,944 | public static VariableAggregator resolveVariableAggregator(VariableAggregationDefinition aggregation, DelegateExecution execution) {<NEW_LINE>if (ImplementationType.IMPLEMENTATION_TYPE_CLASS.equalsIgnoreCase(aggregation.getImplementationType())) {<NEW_LINE>Object delegate = ClassDelegateUtil.instantiateDelegate(<MASK><... | aggregation.getImplementation(), null); |
326,072 | public void fireSubscriptionEvent(Contact source, ContactGroup parentGroup, int eventID, int errorCode, String errorReason) {<NEW_LINE>SubscriptionEvent evt = new SubscriptionEvent(source, parentProvider, parentGroup, eventID, errorCode, errorReason);<NEW_LINE>Collection<SubscriptionListener> listeners;<NEW_LINE>synchr... | new ArrayList<SubscriptionListener>(subscriptionListeners); |
655,759 | protected String doIt() throws Exception {<NEW_LINE>log.info("C_PeriodControl_ID=" + p_C_PeriodControl_ID);<NEW_LINE>MPeriodControl pc = new MPeriodControl(getCtx(), p_C_PeriodControl_ID, get_TrxName());<NEW_LINE>if (pc.get_ID() == 0)<NEW_LINE>throw new AdempiereUserError("@NotFound@ @C_PeriodControl_ID@=" + p_C_Perio... | pc.setPeriodStatus(MPeriodControl.PERIODSTATUS_Open); |
128,665 | protected String parseOptionsAndParameters(String[] parameterValues) {<NEW_LINE>boolean getUrl = true;<NEW_LINE>for (int i = 0; i < parameterValues.length; i++) {<NEW_LINE>if (null == parameterValues[i]) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>if (parameterValues[i].equals(OPTION_ST)) {<NEW_LINE>st = true;<NEW_LINE>} ... | ("Unsupported option: %s", parameterValues[i]); |
55,297 | protected void writeAuditSuppressCriteriaList(JsonWriter writer, List<AuditSuppressCriteria> list) {<NEW_LINE>if (list.isEmpty())<NEW_LINE>return;<NEW_LINE>writer.writeStartArray("dcmAuditSuppressCriteria");<NEW_LINE>for (AuditSuppressCriteria suppressCriteria : list) {<NEW_LINE>writer.writeStartObject();<NEW_LINE>writ... | "dcmAuditEventActionCode", suppressCriteria.getEventActionCodes()); |
479,832 | public static BeanDefinition createExpressionDefinitionFromValueOrExpression(String valueElementName, String expressionElementName, ParserContext parserContext, Element element, boolean oneRequired) {<NEW_LINE>Assert.hasText(valueElementName, "'valueElementName' must not be empty");<NEW_LINE><MASK><NEW_LINE>String valu... | Assert.hasText(expressionElementName, "'expressionElementName' must not be empty"); |
814,071 | public static ListInstanceResponse unmarshall(ListInstanceResponse listInstanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listInstanceResponse.setCode(_ctx.stringValue("ListInstanceResponse.code"));<NEW_LINE>listInstanceResponse.setMessage(_ctx.stringValue("ListInstanceResponse.message"));<NEW_LINE>listInstanceResp... | ("ListInstanceResponse.result[" + i + "].gmtModified")); |
1,827,741 | public Action makeRemoteAction(String label, final String cmd, final MapPack m) {<NEW_LINE>return new Action(label) {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>TableItem[] items = viewer.getTable().getSelection();<NEW_LINE>if (items == null || items.length < 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>UserData data... | ConsoleProxy.errorSafe(cmd + " Remote Control Error"); |
989,874 | public List<String> queryExpireTableSync(List<Long> tableIds) throws Exception {<NEW_LINE>if (null == tableIds || tableIds.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>StringBuilder sql = new StringBuilder(SELECT_EXPIRE_TABLE_TEMPLATE);<NEW_LINE>sql.append(" AND table_id NOT IN (").append(S... | context, parsedStmt, false, true); |
1,742,135 | public static String toFriendlyString(BigInteger value) {<NEW_LINE>if (value.compareTo(ETHER.value()) == 1 || value.compareTo(ETHER.value()) == 0) {<NEW_LINE>return Float.toString(value.divide(ETHER.value()).floatValue()) + " ETHER";<NEW_LINE>} else if (value.compareTo(FINNEY.value()) == 1 || value.compareTo(FINNEY.val... | ).floatValue()) + " FINNEY"; |
12,757 | // GEN-LAST:event_removeFolder<NEW_LINE>private void addZipOrFolder(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_addZipOrFolder<NEW_LINE>JFileChooser chooser = new JFileChooser(ModuleUISettings.getDefault().getLastUsedNbPlatformLocation());<NEW_LINE>chooser.setAcceptAllFileFilterUsed(false);<NEW_LINE>c... | Message(getMessage("MSG_NotValidNBSrcZIP"))); |
903,146 | public void onPrepareBufferImage(Canvas canvas, RotatedTileBox tileBox, DrawSettings settings) {<NEW_LINE>QuadTree<QuadRect> intersections = initBoundIntersections(tileBox);<NEW_LINE>for (Map.Entry<OsmandMapLayer, Collection<?>> entry : textObjects.entrySet()) {<NEW_LINE>OsmandMapLayer l = entry.getKey();<NEW_LINE>MapT... | setFakeBoldText(provider.isFakeBoldText()); |
692,835 | static long decodeULE128(ByteBuf in, long result) throws Http2Exception {<NEW_LINE>assert result <= 0x7f && result >= 0;<NEW_LINE>final boolean resultStartedAtZero = result == 0;<NEW_LINE>final int writerIndex = in.writerIndex();<NEW_LINE>for (int readerIndex = in.readerIndex(), shift = 0; readerIndex < writerIndex; ++... | += (b & 0x7FL) << shift; |
850,690 | static KeySpec pkcs1RsaKeySpec(byte[] bytes) {<NEW_LINE>try {<NEW_LINE>// fully qualified class names allow us to compile this without failure<NEW_LINE>sun.security.util.DerInputStream derReader = new sun.security.util.DerInputStream(bytes);<NEW_LINE>sun.security.util.DerValue[] <MASK><NEW_LINE>// skip version seq[0];<... | seq = derReader.getSequence(0); |
882,310 | private Mono<Response<Flux<ByteBuffer>>> backendHealthWithResponseAsync(String resourceGroupName, String applicationGatewayName, String expand, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required an... | ), expand, accept, context); |
841,388 | public TableCell<ProofOfBurnListItem, ProofOfBurnListItem> call(TableColumn<ProofOfBurnListItem, ProofOfBurnListItem> column) {<NEW_LINE>return new TableCell<>() {<NEW_LINE><NEW_LINE>private HyperlinkWithIcon hyperlinkWithIcon;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void updateItem(final ProofOfBurnListItem item,... | super.updateItem(item, empty); |
264,579 | public Stream<ShortestPathDeltaStepping.DeltaSteppingResult> deltaSteppingStream(@Name("startNode") Node startNode, @Name("propertyName") String propertyName, @Name("delta") Double delta, @Name(value = "config", defaultValue = "{}") Map<String, Object> config) {<NEW_LINE>ProcedureConfiguration configuration = Procedure... | (true).withDirection(direction); |
1,807,548 | public static HttpResult httpPutLarge(String url, Map<String, String> headers, byte[] content) {<NEW_LINE>try {<NEW_LINE>HttpClientBuilder builder = HttpClients.custom();<NEW_LINE>builder.setUserAgent(UtilsAndCommons.SERVER_VERSION);<NEW_LINE>builder.setConnectionTimeToLive(500, TimeUnit.MILLISECONDS);<NEW_LINE>Closeab... | HttpPut httpPut = new HttpPut(url); |
985,344 | public Response searchPermsDebug(@QueryParam("key") String apiToken, @QueryParam("id") Long dvObjectId) {<NEW_LINE>User user = findUserByApiToken(apiToken);<NEW_LINE>if (user == null) {<NEW_LINE>return error(Response.Status.UNAUTHORIZED, "Invalid apikey");<NEW_LINE>}<NEW_LINE>DvObject dvObjectToLookUp = dvObjectService... | Status.BAD_REQUEST, "Could not find DvObject based on id " + dvObjectId); |
995,540 | public String handleRequest(URI uri, boolean apiEnabled) {<NEW_LINE>// Right now just generate a basic home page<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("<head>\n");<NEW_LINE>sb.append("<title>");<NEW_LINE>sb.append(Constant.messages.getString("api.html.title"));<NEW_LINE>sb.append("</title>... | .messages.getString("api.home.links.api.enabled")); |
143,189 | private void loadNode852() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.AuditHistoryEventUpdateEventType_OldValues, new QualifiedName(0, "OldValues"), new LocalizedText("en", "OldValues"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL... | (1), 0.0, false); |
485,177 | private final char[] optimizedCurrentTokenSource2(char[] source, int startPosition) {<NEW_LINE>char[] src = source;<NEW_LINE>int start = startPosition;<NEW_LINE>char c0, c1;<NEW_LINE>int hash = (((c0 = src[start]) << 6) + (c1 = src[start + 1])) % TABLE_SIZE;<NEW_LINE>char[][] table = this.charArray_length[0][hash];<NEW... | this.newEntry2 = max] = r; |
1,236,332 | public void initializeForModule(ModuleBinding module) {<NEW_LINE>initializeHeader(null, ClassFileConstants.AccModule);<NEW_LINE>int classNameIndex = this.constantPool.literalIndexForType(TypeConstants.MODULE_INFO_NAME);<NEW_LINE>this.contents[this.contentsOffset++] = (byte) (classNameIndex >> 8);<NEW_LINE>this.contents... | contentsOffset++] = (byte) classNameIndex; |
1,832,303 | public static void freezeData() {<NEW_LINE>LOGGER.debug(REGISTRIES, "Freezing registries");<NEW_LINE>Registry.REGISTRY.stream().filter(r -> r instanceof MappedRegistry).forEach(r -> ((MappedRegistry<?><MASK><NEW_LINE>for (Map.Entry<ResourceLocation, ForgeRegistry<? extends IForgeRegistryEntry<?>>> r : RegistryManager.A... | ) r).freeze()); |
1,293,159 | public TaskView toTaskView(String responseBody) {<NEW_LINE>ArrayList<String> exceptions = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>final Map map = (Map) new GsonBuilder().create().fromJson(responseBody, Object.class);<NEW_LINE>if (map.isEmpty()) {<NEW_LINE>exceptions.add("The Json for Task View cannot be empty");<NEW... | String) map.get("template"); |
683,892 | public static int calcPoint(final JSONObject liveness) {<NEW_LINE>final float activityPer = Symphonys.ACTIVITY_YESTERDAY_REWARD_ACTIVITY_PER;<NEW_LINE>final float articlePer = Symphonys.ACTIVITY_YESTERDAY_REWARD_ARTICLE_PER;<NEW_LINE>final float commentPer = Symphonys.ACTIVITY_YESTERDAY_REWARD_COMMENT_PER;<NEW_LINE>fin... | liveness.optInt(Liveness.LIVENESS_ARTICLE); |
132,132 | public void metaContactGroupAdded(MetaContactGroupEvent evt) {<NEW_LINE>// if the group was created as an encapsulator of a non persistent proto<NEW_LINE>// group then we'll ignore it.<NEW_LINE>if (evt.getSourceProtoGroup() != null && !evt.getSourceProtoGroup().isPersistent())<NEW_LINE>return;<NEW_LINE>MetaContactGroup... | evt.getSourceMetaContactGroup(), ex); |
900,829 | protected void runTool(final JavaSparkContext ctx) {<NEW_LINE>if (!readArguments.getReadPathSpecifiers().isEmpty()) {<NEW_LINE>throw new UserException.BadInput("Please use --paired-input or --unpaired-input instead of --input");<NEW_LINE>}<NEW_LINE>final ReadsSparkSource readsSource = new ReadsSparkSource(ctx, readArgu... | unpairedData = readInputWithHeader(unpairedInput, readsSource); |
585,731 | public static PullActionDataResponse unmarshall(PullActionDataResponse pullActionDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>pullActionDataResponse.setRequestId(_ctx.stringValue("PullActionDataResponse.RequestId"));<NEW_LINE>pullActionDataResponse.setErrorCode(_ctx.stringValue("PullActionDataResponse.ErrorCode")... | ("PullActionDataResponse.Actions[" + i + "].Status")); |
1,537,661 | public org.osmdroid.views.overlay.Polygon toPolygon(Polygon polygon) {<NEW_LINE>org.osmdroid.views.overlay.Polygon newPoloygon = new org.osmdroid.views.overlay.Polygon();<NEW_LINE>List<GeoPoint> pts = new ArrayList<>();<NEW_LINE>List<List<GeoPoint>> holes = new ArrayList<>();<NEW_LINE>List<LineString> rings = polygon.g... | setTitle(polygonOptions.getTitle()); |
529,203 | public void init() {<NEW_LINE>tableModel = new SampleTableModel();<NEW_LINE>// create javafx panel for charts<NEW_LINE>chartFxPanel = new JFXPanel();<NEW_LINE>chartFxPanel.setPreferredSize(new Dimension(PANEL_WIDTH_INT, PANEL_HEIGHT_INT));<NEW_LINE>// create javafx panel for browser<NEW_LINE>browserFxPanel = new JFXPan... | table.setGridColor(Color.DARK_GRAY); |
264,890 | final DeleteEventActionResult executeDeleteEventAction(DeleteEventActionRequest deleteEventActionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEventActionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,538,608 | // Use invokeAll where one or more tasks must run on the current thread due to the queue being full.<NEW_LINE>// To achieve this, we constrain maxConcurrency and maxQueueSize to 1 and supply 4 tasks to invokeAll,<NEW_LINE>// where the first task blocks until all others start. This causes maxConcurrency to be exceeded, ... | 0, canceledFromQueue.size()); |
978,335 | public ListRepositoriesInDomainResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListRepositoriesInDomainResult listRepositoriesInDomainResult = new ListRepositoriesInDomainResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | int originalDepth = context.getCurrentDepth(); |
652,455 | public void mergeChunks(CompoundTag source, CompoundTag destination, List<Range> ranges, int yOffset) {<NEW_LINE>mergeCompoundTagListsFromLevel(source, destination, ranges, yOffset, "Sections", c -> (int<MASK><NEW_LINE>mergeCompoundTagListsFromLevel(source, destination, ranges, yOffset, "TileEntities", c -> c.getInt("y... | ) c.getByte("Y")); |
1,460,538 | // Create the Dialog view<NEW_LINE>@Override<NEW_LINE>protected View onCreateDialogView() {<NEW_LINE>removeViews();<NEW_LINE>providerName.setHint(R.string.search_provider_name);<NEW_LINE>providerUrl.setHint(R.string.search_provider_url);<NEW_LINE>providerUrl.setInputType(InputType.TYPE_TEXT_VARIATION_URI);<NEW_LINE>pro... | prefs.getString("theme", "light"); |
44,261 | public static void compress(MapBasedCharNgramLanguageModel model, File output) throws IOException {<NEW_LINE>Mphf[] mphfs = new MultiLevelMphf[model.getOrder() + 1];<NEW_LINE>DoubleLookup[] lookups = new DoubleLookup[model.getOrder() + 1];<NEW_LINE>try (DataOutputStream dos = new DataOutputStream(new BufferedOutputStre... | (fingerprints[k] & 0xffff); |
885,230 | private static // Lookup/derive "properties" for each serializer.<NEW_LINE>void calculateSpeedProperties(List<Entry> entries) {<NEW_LINE>// Get a sorted list of all running times.<NEW_LINE>int[] times = new int[entries.size()];<NEW_LINE>int i = 0;<NEW_LINE>for (Entry e : entries) {<NEW_LINE>times[i++] = <MASK><NEW_LINE... | e.results.get(roundTripColumnIndex); |
1,410,180 | public EdgeLabel readEdgeLabel(HugeGraph graph, BackendEntry backendEntry) {<NEW_LINE>if (backendEntry == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TableBackendEntry entry = this.convertEntry(backendEntry);<NEW_LINE>Number id = schemaColumn(entry, HugeKeys.ID);<NEW_LINE>String name = schemaColumn(entry, HugeKey... | HugeKeys.STATUS, SchemaStatus.class); |
998,636 | public void drop(DropTargetDropEvent dtde) {<NEW_LINE>dtde.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE);<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>Object handlerObj = null;<NEW_LINE>try {<NEW_LINE>handlerObj = new ImageTransferableHandler().getTransferObject(dtde.getTransferable());<NEW_LINE>System.out.println("Dro... | "\t" + flavor.getMimeType()); |
1,089,296 | private void printComputeAngles() {<NEW_LINE><MASK><NEW_LINE>String sumType = imageType.getSumType();<NEW_LINE>out.print("\tprivate void computeAngles() {\n" + "\t\tint i = 0;\n" + "\t\tfor( int y = rect.y0; y < rect.y1; y++ ) {\n" + "\t\t\tint indexX = derivX.startIndex + derivX.stride*y + rect.x0;\n" + "\t\t\tint ind... | String bitWise = imageType.getBitWise(); |
1,520,377 | @Operation(summary = "Set rule attributes", responses = { @ApiResponse(responseCode = "200", description = "OK") })<NEW_LINE>public //<NEW_LINE>//<NEW_LINE>Response //<NEW_LINE>modifyRuleApi(@Context UriInfo uri, @PathParam("username") @Parameter(description = "username") String username, @PathParam("id") @Parameter(de... | uri, HueResponse.NOT_AVAILABLE, "Rule does not exist!"); |
1,812,983 | public static void run(String hostName, InputStream in, OutputStream out) {<NEW_LINE>if (_tc.isEntryEnabled())<NEW_LINE>Tr.<MASK><NEW_LINE>ESIProcessor processor = null;<NEW_LINE>try {<NEW_LINE>processor = new ESIProcessor(hostName, in, out);<NEW_LINE>runCommon(processor);<NEW_LINE>} catch (IOException ioe) {<NEW_LINE>... | entry(_tc, "run", hostName); |
1,796,783 | private void loadServices() {<NEW_LINE>if (!CodeActionProvidersHolder.nodeBasedProviders.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ServiceLoader<LSCodeActionProvider> serviceLoader = ServiceLoader.load(LSCodeActionProvider.class);<NEW_LINE>for (CodeActionNodeType nodeType : CodeActionNodeType.values()) {<NEW_LI... | (nodeType).add(provider); |
466,242 | private static void traverse(Object value, Function<DslProperty<?>, Object> dslPropertyValueProvider, String path, Generators generators, Category category) {<NEW_LINE>Object v = value;<NEW_LINE>if (v instanceof DslProperty) {<NEW_LINE>v = dslPropertyValueProvider.apply((DslProperty<?>) v);<NEW_LINE>}<NEW_LINE>if (v in... | , path, new TimeGenerator()); |
1,480,783 | public static GeneralPath filterPath(PathIterator it, BiPredicate<float[], float[]> method) {<NEW_LINE>GeneralPath newPath = new GeneralPath();<NEW_LINE>float[] prevCoords = new float[2];<NEW_LINE>float[] coords = new float[2];<NEW_LINE>float[] start = new float[2];<NEW_LINE>boolean shouldMoveNext = false;<NEW_LINE>whi... | [1] = coords[1]; |
388,584 | final ListTestGridSessionsResult executeListTestGridSessions(ListTestGridSessionsRequest listTestGridSessionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTestGridSessionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | (super.beforeMarshalling(listTestGridSessionsRequest)); |
1,147,907 | protected void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>if (instanceImage == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int lineHeight = g.getFontMetrics().getHeight();<NEW_LINE>int viewWidth <MASK><NEW_LINE>int viewHeight = getHeight() - 3 * PREVIEW_BORDER - 2 * lineHeight;<NEW_LINE>if... | = getWidth() - 2 * PREVIEW_BORDER; |
1,733,661 | private void processRange(@Nonnull MarkupModelEx model, @Nonnull HighlightRange range) {<NEW_LINE>final TextRange base = range.getBase();<NEW_LINE>final TextRange changed = range.getChanged();<NEW_LINE>final int changedLength = changed.getEndOffset() - changed.getStartOffset();<NEW_LINE>model.processRangeHighlightersOv... | = base.getStartOffset() + relativeEnd; |
1,543,273 | final GetMetricStatisticsResult executeGetMetricStatistics(GetMetricStatisticsRequest getMetricStatisticsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMetricStatisticsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
193,092 | private Map<String, Object> tableOrUserTypeToAvro(FieldInfo fieldInfo, UserTypeInfo typeInfo, boolean asSchema) {<NEW_LINE>Map<String, Object> field = new HashMap<String, Object>();<NEW_LINE>// Field name<NEW_LINE>String name = SchemaUtils.toCamelCase(fieldInfo.getFieldName());<NEW_LINE>field.put("name", name);<NEW_LIN... | field.put("type", "record"); |
1,408,133 | public void run(RegressionEnvironment env) {<NEW_LINE>EPStatementObjectModel model = new EPStatementObjectModel();<NEW_LINE>model.setSelectClause(SelectClause.createWildcard());<NEW_LINE>FromClause fromClause = FromClause.create(FilterStream.create("SupportBean_A", "streamA").addView(View.create("length", Expressions.c... | model = SerializableObjectCopier.copyMayFail(model); |
940,822 | public void onMessage(Message inMessage) {<NEW_LINE>// disposable exchange, swapped with real Exchange on correlation<NEW_LINE>inMessage<MASK><NEW_LINE>inMessage.getExchange().put(Bus.class, bus);<NEW_LINE>inMessage.put(DECOUPLED_CHANNEL_MESSAGE, Boolean.TRUE);<NEW_LINE>// REVISIT: how to get response headers?<NEW_LINE... | .setExchange(new ExchangeImpl()); |
1,165,523 | public AboutPage addGroup(String name) {<NEW_LINE>TextView textView = new TextView(mContext);<NEW_LINE>textView.setText(name);<NEW_LINE>TextViewCompat.setTextAppearance(textView, AboutPageUtils.resolveResIdAttr(mContext, R.attr.aboutGroupTextAppearance, R.style.about_groupTextAppearance));<NEW_LINE>LinearLayout.LayoutP... | getDimensionPixelSize(R.dimen.about_group_text_padding); |
823,278 | protected void processDiElements(ConversionHelper conversionHelper) {<NEW_LINE>DmnDefinition dmnDefinition = conversionHelper.getDmnDefinition();<NEW_LINE>conversionHelper.getDiDiagrams().forEach(diDiagram -> {<NEW_LINE>dmnDefinition.addDiDiagram(diDiagram);<NEW_LINE>if (conversionHelper.getDiShapes(diDiagram.getId()) ... | ), dmnDiShape.getGraphicInfo()); |
831,666 | public void cryptoOperation(final CryptoInputParcel cryptoInput) {<NEW_LINE>T operationInput = mCallback.createOperationInput();<NEW_LINE>if (operationInput == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FragmentActivity activity = mUseFragment ? mFragment.getActivity() : mActivity;<NEW_LINE>if (activity == null) {<NE... | activity.getString(resourceId) : null; |
1,089,133 | private void execCmd() throws Exception {<NEW_LINE>String id = getTaskInstance().getId();<NEW_LINE>process = Runtime.getRuntime().exec(getCmd(), new String[] { "varConfPath=" + getVarConfPath() });<NEW_LINE>Thread stdoutThread = new Thread(() -> {<NEW_LINE>try {<NEW_LINE>append(id, process.getInputStream(), "stdout", n... | int exitValue = process.waitFor(); |
1,322,215 | public static void revokeMessage(Object msg) throws Exception {<NEW_LINE>if (msg == null) {<NEW_LINE>throw new NullPointerException("msg == null");<NEW_LINE>}<NEW_LINE>int istroop = (int) Reflex.getInstanceObjectOrNull(msg, "istroop");<NEW_LINE>Object mgr = getMessageManager(istroop);<NEW_LINE>try {<NEW_LINE>Object msg... | _MessageRecord(), void.class); |
1,510,264 | private void updateUiKnownBalance(Balance balance, AssetInfo coinType) {<NEW_LINE>CharSequence valueString = ValueExtensionsKt.toStringWithUnit(balance.getSpendable()<MASK><NEW_LINE>((TextView) _root.findViewById(R.id.tvBalance)).setText(valueString);<NEW_LINE>// Show alternative values<NEW_LINE>_tcdFiatDisplay.setValu... | , _mbwManager.getDenomination(coinType)); |
14,388 | private List<I_M_HU> tuExtractCUs(@NonNull final HUsToNewCUsRequest singleSourceTuRequest) {<NEW_LINE>final ImmutableList.Builder<I_M_HU> extractedCUs = new ImmutableList.Builder<>();<NEW_LINE><MASK><NEW_LINE>final I_M_HU sourceTU = CollectionUtils.singleElement(singleSourceTuRequest.getSourceHUs());<NEW_LINE>for (fina... | Quantity qtyCUsRemaining = singleSourceTuRequest.getQtyCU(); |
85,322 | private String parseForNext(JSONObject resp, List<SyncActivityItem> items) throws JSONException {<NEW_LINE>if (resp.has("items")) {<NEW_LINE>JSONArray activities = resp.getJSONArray("items");<NEW_LINE>for (int i = 0; i < activities.length(); i++) {<NEW_LINE>JSONObject <MASK><NEW_LINE>SyncActivityItem ai = new SyncActiv... | item = activities.getJSONObject(i); |
1,020,019 | private MHRMovement createMovement(MHRConcept concept, MHRAttribute attribute, boolean isPrinted) {<NEW_LINE>I_HR_Period payrollPeriod = getHR_Period();<NEW_LINE>MHRMovement movement = new MHRMovement(getCtx(), 0, get_TrxName());<NEW_LINE>movement.setAD_Org_ID(employee.getAD_Org_ID());<NEW_LINE>movement.setSeqNo(concep... | setReferenceNo(attribute.getReferenceNo()); |
521,642 | public static List<RegressionExecution> executions() {<NEW_LINE>List<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new EPLSpatialPREventIndexUnindexed());<NEW_LINE>execs.add(new EPLSpatialPREventIndexUnusedOnTrigger());<NEW_LINE>execs.add(new EPLSpatialPREventIndexUnusedNamedWindowFireAndForget());... | .add(new EPLSpatialPREventIndexNWFireAndForgetPerformance()); |
618,265 | private Mono<Response<Void>> moveWithResponseAsync(String resourceGroupName, CsmMoveResourceEnvelope moveResourceEnvelope, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
328,144 | protected void scripts() {<NEW_LINE>PrimaryStorageHostStatus oldStatus = Q.New(PrimaryStorageHostRefVO.class).eq(PrimaryStorageHostRefVO_.hostUuid, huuid).eq(PrimaryStorageHostRefVO_.primaryStorageUuid, psUuid).select(PrimaryStorageHostRefVO_.status).findValue();<NEW_LINE>if (oldStatus == newStatus) {<NEW_LINE>return;<... | , newStatus.toString())); |
1,008,419 | public Result deleteYb(UUID customerUUID, UUID configUUID, boolean isDeleteBackups) {<NEW_LINE>Customer customer = Customer.getOrBadRequest(customerUUID);<NEW_LINE>CustomerConfig customerConfig = customerConfigService.getOrBadRequest(customerUUID, configUUID);<NEW_LINE>if (customerConfig.type == CustomerConfig.ConfigTy... | info("Saved task uuid {} in customer tasks for Customer Configuration {}.", taskUUID, configUUID); |
192,709 | public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {<NEW_LINE>final View view = inflater.inflate(R.layout.request_coins_fragment, container, false);<NEW_LINE>qrView = view.findViewById(R.id.request_coins_qr);<NEW_LINE>qrCardView = view.findViewById(R.id.r... | = new CurrencyCalculatorLink(btcAmountView, localAmountView); |
565,798 | private AclLineMatchExpr aclLineMatchExprForApplication(Application application, Map<String, AclLineMatchExpr> appOverrideAclsMap, @Nullable TraceElement traceElement, boolean applicationDefaultService) {<NEW_LINE>String appName = application.getName();<NEW_LINE>if (appOverrideAclsMap.containsKey(appName)) {<NEW_LINE>r... | AndMatchExpr(conjunctions.build()); |
598,593 | final DeleteClientCertificateResult executeDeleteClientCertificate(DeleteClientCertificateRequest deleteClientCertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteClientCertificateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
746,816 | protected void initLaunchDir() {<NEW_LINE>initLaunchId();<NEW_LINE>try {<NEW_LINE>currentLaunchDir = new File(getConfigurationFile().getParentFile(), getCurrentLaunchId());<NEW_LINE>if (!currentLaunchDir.mkdir()) {<NEW_LINE>throw new IOException("failed to create directory " + currentLaunchDir);<NEW_LINE>}<NEW_LINE>// ... | copyFileToDirectory(getConfigurationFile(), currentLaunchDir); |
1,205,685 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fieldsOne = "c0,c1".split(",");<NEW_LINE>// test initiated-by pattern with immediate start<NEW_LINE>env.advanceTime(120000);<NEW_LINE>String epl = "create context CtxPerId initiated by pattern [timer:interval(0) or every timer:interval(1 min)] terminated af... | new SupportBean("E2", 20)); |
1,714,394 | private void initialize() {<NEW_LINE>FieldPaths.FieldPath<FieldPaths.FieldSegment> path = FieldPaths.createFieldPathForPrefixIndex(hollowDataAccess, type, fieldPath, autoExpand);<NEW_LINE>List<String> fields = new ArrayList<>();<NEW_LINE>List<Integer> fieldPositions = new ArrayList<>();<NEW_LINE>List<FieldType> fieldTy... | add(oSegment.getType()); |
930,409 | private void pushAddServerPopupAndStartEmitter() {<NEW_LINE>AddServerPopup addServerPopup = nuiManager.pushScreen(<MASK><NEW_LINE>addServerPopup.removeTip();<NEW_LINE>ServerInfo serverInfo;<NEW_LINE>TelemetryConfig telemetryConfig = config.getTelemetryConfig();<NEW_LINE>String telemetryDestination = telemetryConfig.get... | AddServerPopup.ASSET_URI, AddServerPopup.class); |
1,364,099 | private void updateSelection() {<NEW_LINE>dataSourcesTableModel.clearTable();<NEW_LINE>if (casesTable.getSelectedRow() >= 0 && casesTable.getSelectedRow() < casesTable.getRowCount()) {<NEW_LINE>CaseDataSourcesWrapper caseWrapper = casesTableModel.getEamCase(casesTable.convertRowIndexToModel(casesTable.getSelectedRow())... | setText(caseWrapper.getExaminerPhone()); |
242,214 | public void checkIteratorConflicts(String namespace, IteratorSetting setting, EnumSet<IteratorScope> scopes) throws AccumuloException, NamespaceNotFoundException, AccumuloSecurityException {<NEW_LINE>if (!exists(namespace))<NEW_LINE>throw new NamespaceNotFoundException(null, namespace, null);<NEW_LINE>for (IteratorScop... | "=" + property.getValue()); |
1,261,033 | protected void addTradeCurrencyComboBox() {<NEW_LINE>currencyComboBox = FormBuilder.<TradeCurrency>addLabelAutocompleteComboBox(gridPane, ++gridRow, Res.get("payment.altcoin"), Layout.FIRST_ROW_AND_GROUP_DISTANCE).second;<NEW_LINE>currencyComboBox.setPromptText<MASK><NEW_LINE>currencyComboBox.setButtonCell(getComboBoxB... | (Res.get("payment.select.altcoin")); |
1,257,998 | private Optional<Package> resolveFromRepository(ResolutionRequest resolutionReq, ResolutionOptions options) {<NEW_LINE><MASK><NEW_LINE>// 1) Try to load from the distribution repo, if the requested package is a built-in package.<NEW_LINE>if (pkgDesc.isBuiltInPackage()) {<NEW_LINE>return distributionRepo.getPackage(reso... | PackageDescriptor pkgDesc = resolutionReq.packageDescriptor(); |
1,850,047 | public static ListDeviceDistributeJobResponse unmarshall(ListDeviceDistributeJobResponse listDeviceDistributeJobResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDeviceDistributeJobResponse.setRequestId(_ctx.stringValue("ListDeviceDistributeJobResponse.RequestId"));<NEW_LINE>listDeviceDistributeJobResponse.setSuccess(... | ("ListDeviceDistributeJobResponse.Data.JobInfo[" + i + "].SourceUid")); |
172,395 | public static PathValue populate(VirtualPathValue value, DbAccess dbAccess, NodeCursor nodeCursor, RelationshipScanCursor relCursor, PropertyCursor propertyCursor) {<NEW_LINE>if (value instanceof PathValue) {<NEW_LINE>return (PathValue) value;<NEW_LINE>} else {<NEW_LINE>var nodeIds = value.nodeIds();<NEW_LINE>var relId... | ], dbAccess, nodeCursor, propertyCursor); |
1,673,928 | public void addFormForEditAccount() {<NEW_LINE>gridRowFrom = gridRow;<NEW_LINE>addAccountNameTextFieldWithAutoFillToggleButton();<NEW_LINE>addCompactTopLabelTextField(gridPane, ++gridRow, Res.get("shared.paymentMethod"), Res.get(paymentAccount.getPaymentMethod().getId()));<NEW_LINE>TextField field = addCompactTopLabelT... | amazonGiftCardAccount.getEmailOrMobileNr()).second; |
1,163,996 | public CommitTransactionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CommitTransactionResult commitTransactionResult = new CommitTransactionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken... | String currentParentElement = context.getCurrentParentElement(); |
192,874 | // used only in flatten packages mode<NEW_LINE>@RequiredReadAction<NEW_LINE>public static void addAllSubpackages(List<AbstractTreeNode> container, PsiDirectory dir, ModuleFileIndex moduleFileIndex, ViewSettings viewSettings) {<NEW_LINE>final <MASK><NEW_LINE>PsiDirectory[] subdirs = dir.getSubdirectories();<NEW_LINE>for... | Project project = dir.getProject(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.