idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,391,038 | public CloseableImage decode(EncodedImage encodedImage, int length, QualityInfo qualityInfo, ImageDecodeOptions options) {<NEW_LINE>Rect regionToDecode = computeRegionToDecode(encodedImage, options);<NEW_LINE>CloseableReference<Bitmap> decodedBitmapReference = mPlatformDecoder.decodeJPEGFromEncodedImageWithColorSpace(e... | didApplyTransformation && options.bitmapTransformation instanceof CircularTransformation); |
1,395,848 | private void parseRouteStrategies(ClusterConfigImpl clusterConfig, Node routeStrategiesNode) {<NEW_LINE>List<Node> routeStrategyNodes = getRouteStrategyNodes(routeStrategiesNode);<NEW_LINE>if (routeStrategyNodes.size() > 1)<NEW_LINE>throw new ClusterRuntimeException("multiple routeStrategies configured");<NEW_LINE>if (... | propertyValue = getAttribute(node, VALUE); |
413,476 | final DeleteBGPPeerResult executeDeleteBGPPeer(DeleteBGPPeerRequest deleteBGPPeerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBGPPeerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | (super.beforeMarshalling(deleteBGPPeerRequest)); |
968,968 | public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup... | format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); |
238,840 | public void run() {<NEW_LINE>LOGGER.info("begin to read dump file.");<NEW_LINE>TraceManager.TraceObject traceObject = TraceManager.threadTrace("dump-file-read");<NEW_LINE>try {<NEW_LINE>ByteBuffer buffer = ByteBuffer.allocate(fileConfig.getBufferSize());<NEW_LINE>int byteRead = fileChannel.read(buffer);<NEW_LINE>while ... | / (float) fileLength) * 100; |
1,820,850 | public com.amazonaws.services.codecommit.model.InvalidRevisionIdException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.InvalidRevisionIdException invalidRevisionIdException = new com.amazonaws.services.codecommit.model.InvalidRevisionIdExcept... | String currentParentElement = context.getCurrentParentElement(); |
514,745 | public void enterCip_transform_set(Cip_transform_setContext ctx) {<NEW_LINE>if (_currentIpsecTransformSet != null) {<NEW_LINE>throw new BatfishException("IpsecTransformSet should be null!");<NEW_LINE>}<NEW_LINE>_currentIpsecTransformSet = new IpsecTransformSet(<MASK><NEW_LINE>_configuration.defineStructure(IPSEC_TRANSF... | ctx.name.getText()); |
1,480,091 | private HttpResponse reindex(String tenantName, String applicationName, String instanceName, String environment, String region, HttpRequest request) {<NEW_LINE>ApplicationId id = ApplicationId.from(tenantName, applicationName, instanceName);<NEW_LINE>ZoneId zone = requireZone(environment, region);<NEW_LINE>List<String>... | indexedOnly = request.getBooleanProperty("indexedOnly"); |
1,474,826 | public static SqlParameterized parameterize(ByteString sql, SQLStatement statement, Map<Integer, ParameterContext> parameters, ExecutionContext executionContext, boolean forPrepare) {<NEW_LINE>// prepare mode<NEW_LINE>if (parameters != null && parameters.size() > 0) {<NEW_LINE>List<Object> <MASK><NEW_LINE>ParamCountVis... | tmpParameters = new ArrayList<>(); |
124,208 | public void marshall(GetTableObjectsRequest getTableObjectsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (getTableObjectsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>pr... | getTableObjectsRequest.getCatalogId(), CATALOGID_BINDING); |
1,455,401 | private static void printClassBinding(PrintStream stream, Map<String, String> javaNamesToDisplayNames, PainlessContextClassBindingInfo classBindingInfo) {<NEW_LINE>stream.print("* " + ContextGeneratorCommon.getType(javaNamesToDisplayNames, classBindingInfo.getRtn()) + " " + <MASK><NEW_LINE>for (int parameterIndex = 0; ... | classBindingInfo.getName() + "("); |
1,566,167 | private static OspfInterAreaRoute jsonCreator(@Nullable @JsonProperty(PROP_NETWORK) Prefix network, @Nullable @JsonProperty(PROP_NEXT_HOP_IP) Ip nextHopIp, @Nullable @JsonProperty(PROP_NEXT_HOP_INTERFACE) String nextHopInterface, @Nullable @JsonProperty(PROP_ADMINISTRATIVE_COST) Integer admin, @Nullable @JsonProperty(P... | area, tag, false, false); |
153,887 | public List<Reader> split(JobProfile jobConf) {<NEW_LINE>String inlongGroupId = jobConf.get(PROXY_INLONG_GROUP_ID, DEFAULT_PROXY_INLONG_GROUP_ID);<NEW_LINE>String inlongStreamId = jobConf.get(PROXY_INLONG_STREAM_ID, DEFAULT_PROXY_INLONG_STREAM_ID);<NEW_LINE>String metricTagName = TEXT_FILE_SOURCE_TAG_NAME + "_" + inlon... | allFiles = PluginUtils.findSuitFiles(jobConf); |
7,457 | public void testSimpleQueryWhenUnableToSerializeEntity(HttpServletRequest req, HttpServletResponse resp) throws Exception {<NEW_LINE>QueryClient client = builder.build(QueryClient.class);<NEW_LINE>Query query = new Query();<NEW_LINE>query.setOperationName("allWidgetsUnableToSerialize");<NEW_LINE>query.setQuery("query a... | .getData().getAllWidgets(); |
1,036,836 | public void keyIds(PrfSetKeyIdsRequest request, StreamObserver<PrfSetKeyIdsResponse> responseObserver) {<NEW_LINE>PrfSetKeyIdsResponse response;<NEW_LINE>try {<NEW_LINE>KeysetHandle keysetHandle = CleartextKeysetHandle.read(BinaryKeysetReader.withBytes(request.getKeyset().toByteArray()));<NEW_LINE>PrfSet prfSet = keyse... | toString()).build(); |
649,647 | public Answer cloneVolumeFromBaseTemplate(final CopyCommand cmd) {<NEW_LINE>final Connection conn = hypervisorResource.getConnection();<NEW_LINE>final DataTO srcData = cmd.getSrcTO();<NEW_LINE>final DataTO destData = cmd.getDestTO();<NEW_LINE>final VolumeObjectTO volume = (VolumeObjectTO) destData;<NEW_LINE>VDI vdi = n... | CopyCmdAnswer(e.toString()); |
1,485,082 | protected void compute() {<NEW_LINE>if (endPos <= startPos) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (endPos - startPos <= 1) {<NEW_LINE>try {<NEW_LINE>convertPartitions(modelPath, modelFs, convertedModelPath, convertedModelFs, lineConvert, groupByParts.get(startPos), meta);<NEW_LINE>} catch (Throwable x) {<NEW_LINE>L... | meta, errorMsgs, middle, endPos); |
828,644 | public Object importMoveLine(Object bean, Map<String, Object> values) throws AxelorException {<NEW_LINE>assert bean instanceof MoveLine;<NEW_LINE>MoveLine moveLine = (MoveLine) bean;<NEW_LINE>String accountId = (String) values.get("account_importId");<NEW_LINE>Account account = getAccount(accountId);<NEW_LINE>if (accou... | ) values.get("partnerFullName")); |
724,592 | public Dimension render(Graphics2D graphics) {<NEW_LINE>ClueScroll clue = plugin.getClue();<NEW_LINE>if (clue == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>clue.makeOverlayHint(panelComponent, plugin);<NEW_LINE>final Item[] inventoryItems = plugin.getInventoryItems();<NEW_LINE>final Item[] equippedItems = plugin... | ("").build()); |
328,220 | public UDSize calculateSize(float mw) {<NEW_LINE>int maxWidth = DimenUtil.dpiToPx(mw);<NEW_LINE>if (maxWidth < 0) {<NEW_LINE>if (MLSEngine.DEBUG) {<NEW_LINE>IllegalArgumentException e = new IllegalArgumentException("max width must be more than 0");<NEW_LINE>if (!Environment.hook(e, getGlobals())) {<NEW_LINE>throw e;<NE... | ALIGN_NORMAL, 1, 0, true); |
568,597 | public void unregisterQuery(TUniqueId queryId) {<NEW_LINE>QueryInfo <MASK><NEW_LINE>if (queryInfo != null) {<NEW_LINE>if (LOG.isDebugEnabled()) {<NEW_LINE>LOG.debug("deregister query id {}", DebugUtil.printId(queryId));<NEW_LINE>}<NEW_LINE>if (queryInfo.getConnectContext() != null && !Strings.isNullOrEmpty(queryInfo.ge... | queryInfo = coordinatorMap.remove(queryId); |
1,102,145 | protected void processProgramVars() {<NEW_LINE>if (program.getLanguage().getProcessor() == Processor.findOrPossiblyCreateProcessor("PowerPC")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SymbolTable symbolTable = program.getSymbolTable();<NEW_LINE>int defaultPointerSize = program.getDefaultPointerSize();<NEW_LINE>DataType i... | PointerDataType.getPointer(charPointerX2DataType, defaultPointerSize); |
739,601 | private IExtractor<ResourceIndexedSearchParamString> createStringExtractor(IBaseResource theResource) {<NEW_LINE>return (params, searchParam, value, path, theWantLocalReferences) -> {<NEW_LINE>String resourceType = toRootTypeName(theResource);<NEW_LINE>if (value instanceof IPrimitiveType) {<NEW_LINE>IPrimitiveType<?> n... | resourceType, params, searchParam, value); |
1,742,449 | private T waitUntilScaled(final int count) {<NEW_LINE>final AtomicReference<Integer> replicasRef = new AtomicReference<>(0);<NEW_LINE>final String name = checkName(getItem());<NEW_LINE>final String namespace = checkNamespace(getItem());<NEW_LINE>try {<NEW_LINE>return waitUntilCondition(t -> {<NEW_LINE>// If the resourc... | ).getGeneration() : -1; |
688,555 | private boolean handleEvict(HasMetadata eviction) {<NEW_LINE>try {<NEW_LINE>if (Utils.isNullOrEmpty(eviction.getMetadata().getNamespace())) {<NEW_LINE>throw new KubernetesClientException("Namespace not specified, but operation requires it.");<NEW_LINE>}<NEW_LINE>if (Utils.isNullOrEmpty(eviction.getMetadata().getName())... | (forOperationType("evict"), interruptedException); |
49,030 | private JComponent createToolbar() {<NEW_LINE>JPanel toolBarPanel = new JPanel(new GridLayout());<NEW_LINE>DefaultActionGroup leftGroup = new DefaultActionGroup();<NEW_LINE>leftGroup.add(ActionManager.getInstance().getAction(RUN_DASHBOARD_TOOLBAR));<NEW_LINE>// TODO [konstantin.aleev] provide context help ID<NEW_LINE>/... | add(rightActionToolBar.getComponent()); |
1,256,381 | public void explain(int p, ExplanationForSignedClause explanation) {<NEW_LINE>IntIterableRangeSet set;<NEW_LINE>int m;<NEW_LINE>if (explanation.readVar(p) == vars[0]) {<NEW_LINE>// case a. (see javadoc)<NEW_LINE>m = explanation.readDom(vars[1]).min();<NEW_LINE>set = explanation.complement(vars[1]);<NEW_LINE>set.retainB... | [0]).min(); |
1,395,489 | static MethodDeclaration createSetter(TypeDeclaration parent, boolean deprecate, EclipseNode fieldNode, String name, char[] paramName, char[] booleanFieldToSet, boolean shouldReturnThis, int modifier, EclipseNode sourceNode, List<Annotation> onMethod, List<Annotation> onParam) {<NEW_LINE>ASTNode source = sourceNode.get... | .sourceStart, pE = source.sourceEnd; |
1,719,730 | public UpdateGatewayInformationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateGatewayInformationResult updateGatewayInformationResult = new UpdateGatewayInformationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu... | class).unmarshall(context)); |
1,015,445 | private List<JsonNode> followRefsIfAny(JsonNode referencableNode) {<NEW_LINE>List<JsonNode> results = new ArrayList<>();<NEW_LINE>if (referencableNode.has("$ref")) {<NEW_LINE>// Extract single reference.<NEW_LINE>String ref = referencableNode.path("$ref").asText();<NEW_LINE>results.add(spec.at(<MASK><NEW_LINE>} else {<... | ref.substring(1))); |
974,987 | public void removeTag(View view, final int position) {<NEW_LINE>LinearLayout rowFound = null;<NEW_LINE>for (int i = 0; i < getChildCount(); i++) {<NEW_LINE>final LinearLayout row = (LinearLayout) getChildAt(i);<NEW_LINE>if (row.findViewWithTag(getViewTag(mTagList.get(position).mTagId)) != null) {<NEW_LINE>rowFound = ro... | get(position).mTagId)); |
1,708,071 | private List<EmailWrapper> generateFeedbackSessionOpeningOrClosingEmails(FeedbackSessionAttributes session, EmailType emailType) {<NEW_LINE>CourseAttributes course = coursesLogic.getCourse(session.getCourseId());<NEW_LINE>boolean isEmailNeededForStudents = fsLogic.isFeedbackSessionForUserTypeToAnswer(session, false);<N... | ) : new ArrayList<>(); |
1,064,166 | private void jbInit() throws Exception {<NEW_LINE>this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);<NEW_LINE>this.setResizable(false);<NEW_LINE>this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));<NEW_LINE>this.getContentPane().add(Box.createVerticalStrut(8), BorderLayout.NORTH);<NEW_LINE>t... | Image productLogoImage = Adempiere.getProductLogoLarge(); |
240,182 | private void decodeEscapes(BitReader _in, ICStream ics, int[][] scaleFactors) throws AACException {<NEW_LINE>final ICSInfo info = ics.getInfo();<NEW_LINE>final int windowGroupCount = info.getWindowGroupCount();<NEW_LINE>final int maxSFB = info.getMaxSFB();<NEW_LINE>// ics.getSectionData().getSfbCB();<NEW_LINE>final int... | escapesLen = _in.readNBit(8); |
1,190,052 | protected int validate(FacesContext context, UIComponent source, UIComponent last, String expression) {<NEW_LINE>if (!(last instanceof UIData)) {<NEW_LINE>throw new FacesException("The last resolved component must be instance of UIData to support @row. Expression: \"" + expression + "\" referenced from \"" + last.getCl... | matcher = PATTERN.matcher(expression); |
1,555,896 | public void marshall(UpdateAnswerRequest updateAnswerRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateAnswerRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateAnswerRequest.getWork... | updateAnswerRequest.getQuestionId(), QUESTIONID_BINDING); |
1,414,969 | protected OJwtPayload deserializeWebPayload(final String type, final byte[] decodedPayload) {<NEW_LINE>if (!"OrientDB".equals(type)) {<NEW_LINE>throw new OSystemException("Payload class not registered:" + type);<NEW_LINE>}<NEW_LINE>final ODocument doc = new ODocument();<NEW_LINE>try {<NEW_LINE>doc.fromJSON(<MASK><NEW_L... | new String(decodedPayload, "UTF-8")); |
827,349 | void modifyNodeOfAttributeOfElement(CtElement element, CtRole role, ConflictResolutionMode conflictMode, Function<RootNode, RootNode> elementNodeChanger) {<NEW_LINE>modifyNodeOfElement(element, conflictMode, node -> {<NEW_LINE>if (node instanceof ElementNode) {<NEW_LINE>ElementNode elementNode = (ElementNode) node;<NEW... | newAttrNode = elementNodeChanger.apply(oldAttrNode); |
1,604,688 | // TODO: implementation copied from espresso's UIControllerImpl. Refactor code into common<NEW_LINE>// location<NEW_LINE>@Override<NEW_LINE>public boolean injectString(String str) throws InjectEventSecurityException {<NEW_LINE>checkNotNull(str);<NEW_LINE>checkState(Looper.myLooper() == Looper.getMainLooper(), "Expectin... | SystemClock.uptimeMillis(), 0); |
650,813 | public static DescribeSimilarSecurityEventsResponse unmarshall(DescribeSimilarSecurityEventsResponse describeSimilarSecurityEventsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSimilarSecurityEventsResponse.setRequestId(_ctx.stringValue("DescribeSimilarSecurityEventsResponse.RequestId"));<NEW_LINE>PageInfo page... | ("DescribeSimilarSecurityEventsResponse.SecurityEventsResponse[" + i + "].EventName")); |
1,369,863 | public void accept(final String bucketId, final RateBucketPeriod period, final long limit, final long increment, final IAsyncResultHandler<RateLimitResponse> handler) {<NEW_LINE>final String id = id(bucketId);<NEW_LINE>try {<NEW_LINE>GetResponse response = getClient().get(new GetRequest(getFullIndexName()).id(id), Requ... | (e, RateLimitResponse.class)); |
1,506,694 | private Optional<Integer> toInteger(ParserRuleContext messageCtx, Named_icmp_typeContext ctx) {<NEW_LINE>if (ctx.DESTINATION_UNREACHABLE() != null) {<NEW_LINE>return Optional.of(IcmpType.DESTINATION_UNREACHABLE);<NEW_LINE>} else if (ctx.ECHO_REPLY() != null) {<NEW_LINE>return Optional.of(IcmpType.ECHO_REPLY);<NEW_LINE>... | Optional.of(IcmpType.REDIRECT_MESSAGE); |
653,610 | public boolean dropTable(TableIdentifier identifier, boolean purge) {<NEW_LINE>if (!isValidIdentifier(identifier)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String database = identifier.<MASK><NEW_LINE>TableOperations ops = newTableOps(identifier);<NEW_LINE>TableMetadata lastMetadata;<NEW_LINE>if (purge && ops.curre... | namespace().level(0); |
518,674 | public static void testEnvAnnPrimInjection(String className, String key, char tChar, byte tByte, short tShort, int tInt, long tLong, boolean tBool, double tDouble, float tFloat, String[] names) {<NEW_LINE>// Start of Method<NEW_LINE>try {<NEW_LINE>initCtx = new InitialContext();<NEW_LINE>} catch (NamingException e) {<N... | , names[6], tDouble); |
1,366,374 | public AcceleratorAttributes unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AcceleratorAttributes acceleratorAttributes = new AcceleratorAttributes();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | class).unmarshall(context)); |
1,353,168 | private void addObservableTransformers() {<NEW_LINE>// Observable<NEW_LINE>transform("rx.Observable", ObservableTransformCallback.<MASK><NEW_LINE>transform("rx.observables.BlockingObservable", ObservableTransformCallback.class, "first", "firstOrDefault", "mostRecent", "last", "lastOrDefault", "latest", "single", "singl... | class, "toBlocking", "publish", "groupBy"); |
727,108 | protected void consumeReferenceExpressionTypeForm(boolean isPrimitive) {<NEW_LINE>// actually Name or Type form.<NEW_LINE>// ReferenceExpression ::= PrimitiveType Dims '::' NonWildTypeArgumentsopt IdentifierOrNew<NEW_LINE>// ReferenceExpression ::= Name Dimsopt '::' NonWildTypeArgumentsopt IdentifierOrNew<NEW_LINE>Refe... | this.identifierPositionStack[this.identifierPtr]; |
1,127,128 | private HashMap<Integer, List<Register>> buildOffsetMap(List<Register> registers) {<NEW_LINE>HashMap<Integer, List<Register>> offsetMap = new HashMap<Integer, List<Register>>();<NEW_LINE>for (Register register : registers) {<NEW_LINE>Address addr = register.getAddress();<NEW_LINE>// Must disregard registers which are n... | Collections.sort(registerList, registerSizeComparator); |
1,468,473 | public <OUT> Collection<OUT> findNodePatterns(Function<NodePattern<T>, OUT> filter, boolean allowOptional, boolean allowBranching) {<NEW_LINE>List<OUT> outList = new ArrayList<>();<NEW_LINE>Queue<State> todo = new LinkedList<>();<NEW_LINE>Set<State> seen = new HashSet<>();<NEW_LINE>todo.add(root);<NEW_LINE>seen.add(roo... | .next.size() == 1; |
1,698,654 | public void undeploy(String appName, ExtendedDeploymentContext context) {<NEW_LINE>ActionReport report = context.getActionReport();<NEW_LINE>UndeployCommandParameters params = context.getCommandParameters(UndeployCommandParameters.class);<NEW_LINE>ApplicationInfo info = appRegistry.get(appName);<NEW_LINE>if (info == nu... | "Application " + appName + " not registered", null); |
1,621,751 | private boolean rightClickBlockLegit(BlockPos pos) {<NEW_LINE>Vec3d eyesPos = RotationUtils.getEyesPos();<NEW_LINE>Vec3d <MASK><NEW_LINE>double distanceSqPosVec = eyesPos.squaredDistanceTo(posVec);<NEW_LINE>double rangeSq = Math.pow(range.getValue(), 2);<NEW_LINE>for (Direction side : Direction.values()) {<NEW_LINE>Vec... | posVec = Vec3d.ofCenter(pos); |
450,240 | public static APICreateDataVolumeEvent __example__() {<NEW_LINE>APICreateDataVolumeEvent event = new APICreateDataVolumeEvent();<NEW_LINE>String volumeUuid = uuid();<NEW_LINE>VolumeInventory vol = new VolumeInventory();<NEW_LINE>vol.setName("test-volume");<NEW_LINE>vol.setCreateDate(new Timestamp(org.zstack.header.mess... | vol.setRootImageUuid(uuid()); |
812,556 | private static void drawSelectionBox(WorldRenderer worldRenderer, IRenderTypeBuffer renderTypeBuffers, MatrixStack matrixStack, BlockPos blockPos, ActiveRenderInfo activeRenderInfo, VoxelShape shape, Color color) {<NEW_LINE><MASK><NEW_LINE>IVertexBuilder vertexBuilder = renderTypeBuffers.getBuffer(renderType);<NEW_LINE... | RenderType renderType = RenderType.getLines(); |
31,819 | public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.field("node", taskId.getNodeId());<NEW_LINE>builder.field("id", taskId.getId());<NEW_LINE>builder.field("type", type);<NEW_LINE><MASK><NEW_LINE>if (status != null) {<NEW_LINE>builder.field("status", status, p... | builder.field("action", action); |
1,675,300 | private static ConstantLookupResult lookupConstant(RubyContext context, RubyModule module, String name, ArrayList<Assumption> assumptions) {<NEW_LINE>// Look in the current module<NEW_LINE>ModuleFields fields = module.fields;<NEW_LINE>ConstantEntry constantEntry = fields.getOrComputeConstantEntry(name);<NEW_LINE>assump... | add(constantEntry.getAssumption()); |
503,271 | public static long EuclideanModulus(long a, long b) {<NEW_LINE>assert b != 0 : "Precondition Failure";<NEW_LINE>if (0 <= a) {<NEW_LINE>// +a: a % b'<NEW_LINE>if (b == Long.MIN_VALUE)<NEW_LINE>return Long.remainderUnsigned(a, b);<NEW_LINE>else if (b < 0)<NEW_LINE>return a % -b;<NEW_LINE>else<NEW_LINE>return a % b;<NEW_L... | Long.remainderUnsigned(a, bp); |
1,195,261 | public List<Record> generateDSRecords(final Name name, final long maxTTL) throws NoSuchAlgorithmException, IOException {<NEW_LINE>final List<Record> records = new ArrayList<Record>();<NEW_LINE>if (isDnssecEnabled() && name.subdomain(ZoneManager.getTopLevelDomain())) {<NEW_LINE>final JsonNode config = getCacheRegister()... | ), DSRecord.SHA256_DIGEST_ID, dsTtl); |
1,189,632 | private void reviseV1() throws ContradictionException {<NEW_LINE>vrms.clear();<NEW_LINE>vrms.setOffset(vars[1].getLB());<NEW_LINE>int ub1 = vars[1].getUB();<NEW_LINE>for (int val1 = vars[1].getLB(); val1 <= ub1; val1 = vars[1].nextValue(val1)) {<NEW_LINE>if (!vars[0].contains(currentSupport1[val1 - offset1].get())) {<N... | [0].nextValue(support); |
1,144,115 | private boolean findShardColumnMatch(RelNode root, RelNode join, List<Integer> lShardColumnRef, List<Integer> rShardColumnRefForJoin) {<NEW_LINE>if (lShardColumnRef.size() == 0 || lShardColumnRef.size() != rShardColumnRefForJoin.size()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final ExtractionResult er = ConditionE... | columnEquivalenceFrom(root).extract(); |
2,961 | final DescribeAdjustmentTypesResult executeDescribeAdjustmentTypes(DescribeAdjustmentTypesRequest describeAdjustmentTypesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAdjustmentTypesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | (super.beforeMarshalling(describeAdjustmentTypesRequest)); |
1,818,777 | public static boolean scrollToVisible(JViewport viewport, Rectangle fieldArea) {<NEW_LINE>Rectangle viewArea = viewport.getViewRect();<NEW_LINE>if (viewArea.contains(fieldArea)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Point pos = new Point();<NEW_LINE>pos.x = viewArea.x;<NEW_LINE>if (fieldArea.x + fieldArea.width ... | .width - viewArea.width + 5; |
1,681,829 | protected void packageDocker(Distribution distribution, Map<String, Object> props, Path packageDirectory, DockerConfiguration docker, List<Artifact> artifacts) throws PackagerProcessingException {<NEW_LINE>super.<MASK><NEW_LINE>try {<NEW_LINE>// copy files<NEW_LINE>Path workingDirectory = prepareAssembly(distribution, ... | doPackageDistribution(distribution, props, packageDirectory); |
600,441 | protected // @Deactivate<NEW_LINE>void stop() {<NEW_LINE>final String methodName = "stop()";<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, methodName);<NEW_LINE>ServerCache.objectCacheEnabled = false;<NEW_LINE>CacheService cacheService = getCacheService();<NEW_LINE>if (null == cacheService)<NEW_LINE>return;<N... | getCacheInstances().remove(cache); |
1,849,142 | public boolean onContextMenuClick(final ArrayAdapter<ContextMenuItem> adapter, int itemId, final int pos, boolean isChecked, int[] viewCoordinates) {<NEW_LINE>final OsmandSettings settings = mapActivity.getMyApplication().getSettings();<NEW_LINE>final PoiFiltersHelper poiFiltersHelper = mapActivity.getMyApplication().g... | color.osmand_orange : ContextMenuItem.INVALID_ID); |
864,093 | private void pingDcomConnection(Node node) throws CommandValidationException {<NEW_LINE>try {<NEW_LINE>SshConnector connector = node.getSshConnector();<NEW_LINE>SshAuth auth = connector.getSshAuth();<NEW_LINE>String host = connector.getSshHost();<NEW_LINE>if (!StringUtils.ok(host)) {<NEW_LINE>host = node.getNodeHost();... | (Strings.get("dcom.no.installdir")); |
999,493 | final DeletePackagingConfigurationResult executeDeletePackagingConfiguration(DeletePackagingConfigurationRequest deletePackagingConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePackagingConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeletePackagingConfiguration"); |
1,788,265 | private final DDLQuery parseCreateDomain() {<NEW_LINE>boolean ifNotExists = parseKeywordIf("IF NOT EXISTS");<NEW_LINE>Domain<?> domainName = parseDomainName();<NEW_LINE>parseKeyword("AS");<NEW_LINE>DataType<?> dataType = parseDataType();<NEW_LINE>CreateDomainDefaultStep<?> s1 = ifNotExists ? dsl.createDomainIfNotExists... | constraints = new ArrayList<>(); |
32,320 | public void init(int maxCapacity, Properties props) throws Exception {<NEW_LINE>super.init(maxCapacity, props);<NEW_LINE>currentSize = 0;<NEW_LINE>if (props != null) {<NEW_LINE>String strMaxSize = props.getProperty("MaxSize");<NEW_LINE>int multiplier = 1;<NEW_LINE>long size = -1;<NEW_LINE>String prop = strMaxSize;<NEW_... | prop.substring(0, index); |
1,614,934 | final DescribeAccountLimitsResult executeDescribeAccountLimits(DescribeAccountLimitsRequest describeAccountLimitsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAccountLimitsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | endClientExecution(awsRequestMetrics, request, response); |
644,580 | public int compare(ClusterModelStats stats1, ClusterModelStats stats2) {<NEW_LINE>double meanPreLeaderBytesIn = stats1.resourceUtilizationStats().get(Statistic.AVG).get(Resource.NW_IN);<NEW_LINE>double threshold = meanPreLeaderBytesIn * _balancingConstraint.resourceBalancePercentage(Resource.NW_IN);<NEW_LINE>if (stats1... | (variance1), Resource.NW_IN); |
778,544 | public static void saveLandmarksCsv(String inputFile, String detector, CalibrationObservation landmarks, OutputStream outputStream) {<NEW_LINE>var out = new PrintWriter(new OutputStreamWriter(outputStream, UTF_8));<NEW_LINE>out.println("# Landmarks detected on a calibration target");<NEW_LINE>out.println("# " + inputFi... | println("# BoofCV Version: " + BoofVersion.VERSION); |
357,600 | public Response testSubscription(@PathParam("checkId") String checkId, @PathParam("subscriptionId") final String subscriptionId) {<NEW_LINE>Check <MASK><NEW_LINE>if (check == null) {<NEW_LINE>return Response.status(Response.Status.NOT_FOUND).build();<NEW_LINE>}<NEW_LINE>Collection<Subscription> subscriptions = Collecti... | check = checksStore.getCheck(checkId); |
1,266,523 | private void createAndLinkWorkflowNodesForDocumentWorkflow(@NonNull I_AD_Workflow documentWorkflow) {<NEW_LINE>// Create start Workflow Node<NEW_LINE>final I_AD_WF_Node startWorkflowNode = createWorkflowNode(documentWorkflow, ADWorkflowConstants.WF_NODE_Start_Name, X_AD_WF_Node.ACTION_WaitSleep, null);<NEW_LINE>// set ... | X_AD_WF_Node.ACTION_DocumentAction, X_AD_WF_Node.DOCACTION_Complete); |
1,118,596 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String domainName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.... | error(new IllegalArgumentException("Parameter domainName is required and cannot be null.")); |
414,951 | public RayTraceResult rayTraceBlocks(Location start, Vector direction, double maxDistance, FluidCollisionMode mode, boolean ignorePassableBlocks) {<NEW_LINE>Validate.notNull(start, "Start location equals null");<NEW_LINE>Validate.isTrue(this.equals(start.getWorld()), "Start location a different world");<NEW_LINE>start.... | ), start.getZ()); |
1,635,382 | private BytesStore map(long mapSize, final long mappingOffsetInFile) throws IOException {<NEW_LINE>mapSize = pageAlign(mapSize);<NEW_LINE>final long minFileSize = mappingOffsetInFile + mapSize;<NEW_LINE>final FileChannel fileChannel = raf.getChannel();<NEW_LINE>if (fileChannel.size() < minFileSize) {<NEW_LINE>// In Map... | BytesStore.wrap(address, mapSize); |
1,760,123 | public void customise(OpenAPI openAPI, ResourceMappings mappings, PersistentEntities persistentEntities) {<NEW_LINE>persistentEntities.getManagedTypes().stream().forEach(typeInformation -> {<NEW_LINE>Class domainType = typeInformation.getType();<NEW_LINE>ResourceMetadata resourceMetadata = mappings.getMetadataFor(domai... | ignoredFields = getIgnoredFields(resourceMetadata, entity); |
1,813,479 | private ClusteringAlgorithm parseAlgorithm(ClusterRequest template, ClusterRequest clusteringRequest) throws TerminateRequestException {<NEW_LINE>String algorithmName = firstNotNull(<MASK><NEW_LINE>if (algorithmName == null) {<NEW_LINE>throw new TerminateRequestException(ErrorResponseType.BAD_REQUEST, "Algorithm must n... | clusteringRequest.algorithm, template.algorithm); |
1,153,959 | private Map<PendingTx, Transaction> createTransactions(Block parent) {<NEW_LINE>Map<PendingTx, Transaction> txes = new LinkedHashMap<>();<NEW_LINE>Map<ByteArrayWrapper, Long> nonces = new HashMap<>();<NEW_LINE>Repository repoSnapshot = getBlockchain().getRepository().<MASK><NEW_LINE>for (PendingTx tx : submittedTxes) {... | getSnapshotTo(parent.getStateRoot()); |
602,095 | protected void runInContext() {<NEW_LINE>try {<NEW_LINE>final List<DomainRouterVO> routers = _routerDao.listIsolatedByHostId(null);<NEW_LINE>s_logger.debug("Found " + routers.size() + " routers to update status. ");<NEW_LINE>updateSite2SiteVpnConnectionState(routers);<NEW_LINE>List<NetworkVO> networks = new ArrayList<>... | networks.size() + " VPC's to update Redundant State. "); |
335,355 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>for (int i = 0; i < accessModes_.size(); i++) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessModes_.getRaw(i));<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW... | writeString(output, 3, volumeName_); |
165,896 | public static void loadSchedulerInfo(AppResult result, HadoopApplicationData data, Scheduler scheduler) {<NEW_LINE>String appId = data.getAppId();<NEW_LINE>result.scheduler = Utils.truncateField(scheduler.getSchedulerName(), AppResult.SCHEDULER_LIMIT, appId);<NEW_LINE>result.workflowDepth = scheduler.getWorkflowDepth()... | AppResult.URL_LEN_LIMIT, appId) : ""; |
248,688 | protected Map<String, ShardingSphereAlgorithmConfiguration> createShadowAlgorithmConfigurations() {<NEW_LINE>Map<String, ShardingSphereAlgorithmConfiguration> result = new LinkedHashMap<>();<NEW_LINE>Properties userIdInsertProps = new Properties();<NEW_LINE>userIdInsertProps.setProperty("operation", "insert");<NEW_LINE... | userIdDeleteProps.setProperty("column", "user_type"); |
1,535,027 | protected void doValidate(Object value, String inputHint, ValidationContext context, ValidatorConfig config) {<NEW_LINE>if (config == null || config.isEmpty()) {<NEW_LINE>config = defaultConfig;<NEW_LINE>}<NEW_LINE>Number number = null;<NEW_LINE>if (value != null) {<NEW_LINE>try {<NEW_LINE>number = convert(value, confi... | config), min, max)); |
1,845,459 | public Optional<ProductPrice> calculateSalesRepNetUnitPrice(@NonNull final ComputeSalesRepPriceRequest request) {<NEW_LINE>final PricingSystemId pricingSystemId = bPartnerDAO.retrievePricingSystemIdOrNull(request.getSalesRepId(), request.getSoTrx());<NEW_LINE>if (pricingSystemId == null) {<NEW_LINE>loggable.addLog("cre... | countryId, request.getSoTrx()); |
826,994 | static MTable recommendItems(Object userId, ItemCfRecommData model, int topN, boolean excludeKnown, double[] res, String objectName, TypeInformation<?> objType) {<NEW_LINE>Arrays.fill(res, 0.0);<NEW_LINE>PriorityQueue<RecommItemTopKResult> queue = new PriorityQueue<>(Comparator.comparing(o -> o.similarity));<NEW_LINE>S... | ] value = itemRate.getValues(); |
1,117,276 | private void configChanged() {<NEW_LINE>Settings settings = config.getRawSettings();<NEW_LINE>settings = settings.navigate("spring-boot", "ls", "problem");<NEW_LINE>Map<String, ProblemSeverity> severityOverrides = new HashMap<>();<NEW_LINE>for (String editorType : settings.keys()) {<NEW_LINE>Settings problemConf = sett... | getType().getCode()); |
1,848,392 | protected void parseDefineBitsLossless(InStream in, int length, boolean hasAlpha) throws IOException {<NEW_LINE>int id = in.readUI16();<NEW_LINE>int format = in.readUI8();<NEW_LINE>int width = in.readUI16();<NEW_LINE>int height = in.readUI16();<NEW_LINE>int size = 0;<NEW_LINE>switch(format) {<NEW_LINE>case BITMAP_FORMA... | width, height, colors, imageData); |
128,840 | protected void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>// Load selected site<NEW_LINE>initSelectedSite();<NEW_LINE>// ensure the deep linking activity is enabled. We might be returning from the external-browser<NEW_LINE>// viewing of a post<NEW_LINE>WPActivityUtils.enableReaderDeeplinks(this);<NEW_LINE>// We n... | getCurrentSelectedPage() == PageType.MY_SITE); |
13,160 | public static void checkPortOpen(int port, long timeoutMs) {<NEW_LINE>Log.info(AcmeFatUtils.class, "checkPortOpen", "Checking if port " + port + " is open, will check for " + timeoutMs + "ms.");<NEW_LINE>boolean open = false;<NEW_LINE>long stoptime = System.currentTimeMillis() + timeoutMs;<NEW_LINE>Exception lastExcept... | port + " to be open. Last exception while checking: " + lastException, open); |
1,218,639 | private static void tryAssertion17IStream(RegressionEnvironment env, String stmtText, String outputLimit, AtomicInteger milestone) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>String[] fields = new String[] { "symbol", "volume", "price" };<NEW_LINE>ResultAssertTestResul... | env, expected, ResultAssertExecutionTestSelector.TEST_ONLY_AS_PROVIDED); |
987,953 | void assembleMessageParameters() {<NEW_LINE>LOG.info("NetKeyIndex: " + mAppKey.getBoundNetKeyIndex());<NEW_LINE>LOG.info("AppKeyIndex: " + mAppKey.getKeyIndex());<NEW_LINE>final byte[] netKeyIndex = MeshParserUtils.addKeyIndexPadding(mAppKey.getBoundNetKeyIndex());<NEW_LINE>final byte[] appKeyIndex = MeshParserUtils.ad... | put(mAppKey.getKey()); |
1,015,247 | private void registerAddMapLayerReceiver(@NonNull MapActivity mapActivity) {<NEW_LINE>final WeakReference<MapActivity> mapActivityRef = new WeakReference<>(mapActivity);<NEW_LINE>BroadcastReceiver addMapLayerReceiver = new BroadcastReceiver() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onReceive(Context context... | connectedApp = connectedApps.get(packName); |
626,556 | public void exitIf_ipv4_access_group(If_ipv4_access_groupContext ctx) {<NEW_LINE>int line = ctx.start.getLine();<NEW_LINE>if (ctx.common_acl != null) {<NEW_LINE>String <MASK><NEW_LINE>_configuration.referenceStructure(IPV4_ACCESS_LIST, name, INTERFACE_IPV4_ACCESS_GROUP_COMMON, line);<NEW_LINE>}<NEW_LINE>if (ctx.interfa... | name = toString(ctx.common_acl); |
267,916 | public void marshall(CreateModelPackageRequest createModelPackageRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createModelPackageRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createMod... | e.getMessage(), e); |
1,261,924 | public Mono<Response<Void>> stopWithResponseAsync(String resourceGroupName, String containerGroupName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,179,493 | public static PickOutboundNumbersResponse unmarshall(PickOutboundNumbersResponse pickOutboundNumbersResponse, UnmarshallerContext _ctx) {<NEW_LINE>pickOutboundNumbersResponse.setRequestId(_ctx.stringValue("PickOutboundNumbersResponse.RequestId"));<NEW_LINE>pickOutboundNumbersResponse.setCode(_ctx.stringValue("PickOutbo... | = new ArrayList<NumberPair>(); |
1,563,199 | public List<String> readHeaderValuesAsString(final String headerName) {<NEW_LINE>final int maxChars = Integer.parseInt(appConfig.readAppProperty(AppProperty.HTTP_PARAM_MAX_READ_LENGTH));<NEW_LINE>final List<String> <MASK><NEW_LINE>for (final Enumeration<String> headerValueEnum = this.getHttpServletRequest().getHeaders(... | valueList = new ArrayList<>(); |
1,717,649 | private static void handleClass(final Map<String, RdfClass> classes, final Set<HasSubclassRelationship> subclasses, final Node classNode) {<NEW_LINE>final <MASK><NEW_LINE>final String comment = getChildString(classNode, "rdfs:comment");<NEW_LINE>final String rawName = getString(attributes, "rdf:ID") != null ? getString... | NamedNodeMap attributes = classNode.getAttributes(); |
1,359,314 | public IPSet unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>IPSet iPSet = new IPSet();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token == null)<NEW_LINE... | String currentParentElement = context.getCurrentParentElement(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.