idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,653,518 | private IHTMLPage findPageInDefaultLanguageDifferentThanProvided(String identifier, long providedLang, boolean live, User user, boolean respectFrontEndPermissions, DotStateException dse) throws DotDataException, DotSecurityException {<NEW_LINE>Contentlet contentlet;<NEW_LINE>IHTMLPage htmlPage;<NEW_LINE>if (languageAPI... | getId(), user, respectFrontEndPermissions); |
775,290 | private Mono<Response<Flux<ByteBuffer>>> reapplyWithResponseAsync(String resourceGroupName, String vmName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parame... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
1,274,001 | public static void updateBinaryMetricsSummary(TreeMap<Object, Double> labelProbMap, Object label, BinaryMetricsSummary binaryMetricsSummary) {<NEW_LINE>Preconditions.checkState(labelProbMap.size() == BINARY_LABEL_NUMBER, "The number of labels must be equal to 2!");<NEW_LINE>binaryMetricsSummary.total++;<NEW_LINE>binary... | floor(d * ClassificationEvaluationUtil.DETAIL_BIN_NUMBER); |
1,335,369 | public static void test() {<NEW_LINE>Parent.ParentBuilder<String, ?, ?> parentBuilder = Parent.<String>builder();<NEW_LINE>Parent.ParentBuilder<String, ?, ?> parentBuilder1 = parentBuilder.field1("Field1");<NEW_LINE>Parent.ParentBuilder<String, ?, ?> parentBuilder2 = parentBuilder1.item("Item");<NEW_LINE>Parent<String>... | childBuilder1 = childBuilder.field3(0.0); |
1,018,479 | public void preFillOperations(QualityControl qualityControl, QualityProcess process) throws AxelorException {<NEW_LINE>List<ControlPointModel> controlPointModelList = process.getControlPointModelList();<NEW_LINE>List<ControlPointModel> optionalControlPointModelList = process.getOptionalControlPointModelList();<NEW_LINE... | .getQualityCorrectiveActionList().clear(); |
389,380 | public OFromItem copy() {<NEW_LINE>OFromItem result = new OFromItem(-1);<NEW_LINE>if (rids != null) {<NEW_LINE>result.rids = rids.stream().map(r -> r.copy()).collect(Collectors.toList());<NEW_LINE>}<NEW_LINE>if (inputParams != null) {<NEW_LINE>result.inputParams = inputParams.stream().map(r -> r.copy()).collect(Collect... | ? null : metadata.copy(); |
1,247,748 | final DeleteLaunchConfigurationResult executeDeleteLaunchConfiguration(DeleteLaunchConfigurationRequest deleteLaunchConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLaunchConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
344,452 | public static void reload(String reason, Context context) {<NEW_LINE>ModulesStatus modulesStatus = ModulesStatus.getInstance();<NEW_LINE>OperationMode operationMode = modulesStatus.getMode();<NEW_LINE>ModuleState dnsCryptState = modulesStatus.getDnsCryptState();<NEW_LINE>ModuleState torState = modulesStatus.getTorState... | Intent(context, ServiceVPN.class); |
1,648,119 | public static void main(String[] args) {<NEW_LINE>Map<Integer, Double> timesOfNaiveThreeSum = new HashMap<>();<NEW_LINE>Map<Integer, Double> timesOfEvenNaiverThreeSum = new HashMap<>();<NEW_LINE>int maxTrials = 4000;<NEW_LINE>StdOut.println("Number of items and ratio");<NEW_LINE>// Compute running times of naive 3-Sum<... | timesOfNaiveThreeSum.put(n, time); |
1,252,672 | public void run() {<NEW_LINE>// set thread context classloader to web classloader<NEW_LINE>Thread.currentThread().setContextClassLoader(webClassLoader);<NEW_LINE>Thread.currentThread().setName("Loader:" + servletContext.getContextPath());<NEW_LINE>// get the web app's parent context<NEW_LINE>ApplicationContext parentCo... | setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, appctx); |
466,547 | void handleStreamClosed(Status status) {<NEW_LINE>if (Objects.equal(status.getCode(), Code.UNIMPLEMENTED)) {<NEW_LINE>disabled = true;<NEW_LINE>logger.log(Level.SEVERE, "Backend {0} OpenRcaService is disabled. Server returned: {1}", new Object[] { subchannel.getAllAddresses(), status });<NEW_LINE>subchannelLogger.log(C... | delayNanos <= 0 ? 0 : delayNanos); |
372,234 | private void writeObjects(DataWriter out) throws IOException {<NEW_LINE>long ofsMin = Long.MAX_VALUE;<NEW_LINE>long ofsMax = Long.MIN_VALUE;<NEW_LINE>for (SerializedObjectData data : serialized.objectData()) {<NEW_LINE>ByteBuffer bb = data.buffer();<NEW_LINE>bb.rewind();<NEW_LINE>out.align(8);<NEW_LINE>ofsMin = Math.mi... | ObjectInfo info = data.info(); |
77,811 | public void onPlayerTick(@Nonnull ItemStack helm, @Nonnull IDarkSteelItem item, @Nonnull EntityPlayer player) {<NEW_LINE>// no processing on client<NEW_LINE>if (player.world.isRemote) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!player.world.canBlockSeeSky(new BlockPos(MathHelper.floor(player.posX), MathHelper.floor(pla... | PowerHandlerUtil.getCapability(stack, null); |
158,825 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>String sentence = (String) msg;<NEW_LINE>if (sentence.contains("AT+GTHBD=") && channel != null) {<NEW_LINE>String response = "+RESP:GTHBD,GPRS ACTIVE,";<NEW_LINE>response += sentence.substring(9, sentence.lastI... | (parser.nextDouble(0)); |
1,306,244 | public void addRangeToSqlBuilder(final SqlBuilder sqlBuilder, final String valueExpression, final Func1<T, T> valueConverter) {<NEW_LINE>final boolean hasSpecial <MASK><NEW_LINE>final boolean hasMinMax = minRangeValue != null || maxRangeValue != null;<NEW_LINE>if (valueExpression == null || (!hasSpecial && !hasMinMax))... | = specialNumber != null && includeSpecialNumber != null; |
685,347 | private void writeRecordedBytecode(BytecodeRecorderImpl recorder, String fallbackGeneratedStartupTaskClassName, List<ObjectSubstitutionBuildItem> substitutions, List<RecordableConstructorBuildItem> recordableConstructorBuildItems, List<BytecodeRecorderObjectLoaderBuildItem> loaders, List<BytecodeRecorderConstantDefinit... | ObjectSubstitutionBuildItem.Holder holder1 = sub.holder; |
13,686 | public default CompletableFuture<Void> doRequestFocus(TargetObject obj) {<NEW_LINE>if (getManager().isWaiting()) {<NEW_LINE>return AsyncUtils.NIL;<NEW_LINE>}<NEW_LINE>getModel().<MASK><NEW_LINE>if (obj.equals(getFocus())) {<NEW_LINE>return AsyncUtils.NIL;<NEW_LINE>}<NEW_LINE>if (!PathUtils.isAncestor(this.getPath(), ob... | assertMine(TargetObject.class, obj); |
586,918 | private void throwSenderTimeout(CompletableFuture<DeliveryState> pendingSendWork, Exception lastKnownException) {<NEW_LINE>Exception cause = lastKnownException;<NEW_LINE>if (lastKnownException == null && this.lastKnownLinkError != null) {<NEW_LINE>cause = this.lastKnownErrorReportedAt.isAfter(Instant.now().minusMillis(... | )) ? this.lastKnownLinkError : null; |
1,843,884 | private int solve() {<NEW_LINE>int max = Integer.MIN_VALUE;<NEW_LINE>long size1 = NUMS.getArraySize();<NEW_LINE>long size2 = NUMS.<MASK><NEW_LINE>for (int row = 0; row < size1; row++) {<NEW_LINE>for (int col = 0; col < size2; col++) {<NEW_LINE>if (row + 4 <= size1) {<NEW_LINE>max = Math.max(max, product(call(sub_list1,... | getArrayElement(0).getArraySize(); |
1,692,155 | public int unhideNumber(CommentNode n, int i) {<NEW_LINE>for (CommentNode ignored : n.getChildren()) {<NEW_LINE>if (!ignored.getComment().getFullName().equals(n.getComment().getFullName())) {<NEW_LINE>boolean parentHidden = parentHidden(ignored);<NEW_LINE>if (parentHidden) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>Strin... | ().getFullName() + "more"; |
1,394,706 | private void unboxType(MethodVisitor methodVisitor, Class<?> primitiveClass) {<NEW_LINE>// Float f = (Float) tmp<NEW_LINE>// f==null?0:f.floatValue()<NEW_LINE>Class<?> <MASK><NEW_LINE>Type primitiveType = Type.getType(primitiveClass);<NEW_LINE>methodVisitor.visitTypeInsn(CHECKCAST, Type.getInternalName(boxedType));<NEW... | boxedType = BOXED_TYPES.get(primitiveClass); |
1,814,319 | private void resizeVolume(VolumeInfo volumeInfo) {<NEW_LINE>LOGGER.debug("Resizing PowerFlex volume");<NEW_LINE>Preconditions.checkArgument(volumeInfo != null, "volumeInfo cannot be null");<NEW_LINE>try {<NEW_LINE>String scaleIOVolumeId = ScaleIOUtil.getVolumePath(volumeInfo.getPath());<NEW_LINE>Long storagePoolId = vo... | (newSizeInGB / 8.0) * 8.0); |
1,524,020 | private void handleLoadingError(InitializrModel model, String url, Throwable e) {<NEW_LINE>StringBuffer detailsBuffer = new StringBuffer();<NEW_LINE>String shortMessage = "Error encountered while resolving initializr content for: " + project.getName();<NEW_LINE>// This error is specific to boot version validator, so in... | deepestCause = ExceptionUtil.getDeepestCause(e); |
979,020 | public String matchAndApply(String target, HttpServletRequest request, HttpServletResponse response) throws IOException {<NEW_LINE>// best to decide the request uri and validate that<NEW_LINE>// String uri = request.getRequestURI();<NEW_LINE>String uri = URIUtil.decodePath(request.getRequestURI());<NEW_LINE>for (int i ... | i += Character.charCount(codepoint); |
956,837 | public Request<SetIdentityMailFromDomainRequest> marshall(SetIdentityMailFromDomainRequest setIdentityMailFromDomainRequest) {<NEW_LINE>if (setIdentityMailFromDomainRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(SetIdentityMailFromDomainRequest)");<NEW_LINE>}<NEW_LINE>R... | request.addParameter("Action", "SetIdentityMailFromDomain"); |
923,057 | final DescribeOrganizationHealthResult executeDescribeOrganizationHealth(DescribeOrganizationHealthRequest describeOrganizationHealthRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOrganizationHealthRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,779,565 | private void extractArchive(ArchiveInputStream input, File destination, Engine engine) throws ArchiveExtractionException {<NEW_LINE>ArchiveEntry entry;<NEW_LINE>try {<NEW_LINE>// final String destPath = destination.getCanonicalPath();<NEW_LINE>final Path d = destination.toPath();<NEW_LINE>while ((entry = input.getNextE... | File file = f.toFile(); |
1,277,628 | final DeleteLicenseConfigurationResult executeDeleteLicenseConfiguration(DeleteLicenseConfigurationRequest deleteLicenseConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLicenseConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,086,439 | final DeleteVocabularyResult executeDeleteVocabulary(DeleteVocabularyRequest deleteVocabularyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVocabularyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | invoke(request, responseHandler, executionContext); |
1,347,953 | public List<HealthRecord> healthCheck(final DomainHealthCheckRequest domainHealthCheckRequest) {<NEW_LINE>final DomainConfig config = domainHealthCheckRequest.getDomainConfig();<NEW_LINE>final List<HealthRecord> records = new ArrayList<>();<NEW_LINE>if (config.readSettingAsBoolean(PwmSetting.NEWUSER_ENABLE)) {<NEW_LINE... | (config.getAppConfig())); |
289,230 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create schema SomeType ()", path);<NEW_LINE>env.compileDeploy("@name('flow') create dataflow MyDataFlowOne " + "DefaultSupportSourceOp -> outstream<SomeType> {}" + "DefaultSupportCapture... | getAndReset().size()); |
560,371 | public RetentionPeriod unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RetentionPeriod retentionPeriod = new RetentionPeriod();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte... | int originalDepth = context.getCurrentDepth(); |
1,131,066 | private void configureSystemProperties() throws IOException {<NEW_LINE>File sandbox = new File(TestUtils.getTmpDirFile(), "_intellij_test_sandbox");<NEW_LINE>setSandboxPath("idea.home.path", new File(sandbox, "home"));<NEW_LINE>setSandboxPath("idea.config.path", new File(sandbox, "config"));<NEW_LINE>setSandboxPath("id... | URL url = urls.nextElement(); |
1,058,410 | public static void dumpPolymorphicSpecialize(OptimizedCallTarget callTarget, List<Node> toDump) {<NEW_LINE>assert toDump.size() > 0;<NEW_LINE>try (TruffleDebugContext debugContext = openDebugContext(callTarget)) {<NEW_LINE>Collections.reverse(toDump);<NEW_LINE>PolymorphicSpecializeDump.PolymorphicSpecializeGraph graph ... | - 1).toString()); |
1,270,860 | public void write(DataOutput out) throws IOException {<NEW_LINE>super.write(out);<NEW_LINE>Map<String, String> serializeMap = Maps.newHashMap();<NEW_LINE>serializeMap.put(TABLE, externalTableName);<NEW_LINE>serializeMap.put(RESOURCE, resourceName);<NEW_LINE><MASK><NEW_LINE>serializeMap.put(URL, jdbcUrl);<NEW_LINE>seria... | serializeMap.put(TABLE_TYPE, jdbcTypeName); |
379,613 | protected void run() {<NEW_LINE>try {<NEW_LINE>runInterceptHook();<NEW_LINE>PayoutTxPublishedMessage message = <MASK><NEW_LINE>Validator.checkTradeId(processModel.getOfferId(), message);<NEW_LINE>checkNotNull(message);<NEW_LINE>checkArgument(message.getPayoutTx() != null);<NEW_LINE>// update to the latest peer address ... | (PayoutTxPublishedMessage) processModel.getTradeMessage(); |
1,563,791 | public static DescribeCdnUserBillPredictionResponse unmarshall(DescribeCdnUserBillPredictionResponse describeCdnUserBillPredictionResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCdnUserBillPredictionResponse.setRequestId(_ctx.stringValue("DescribeCdnUserBillPredictionResponse.RequestId"));<NEW_LINE>describeCdnUs... | ("DescribeCdnUserBillPredictionResponse.BillPredictionData[" + i + "].Value")); |
1,458,083 | protected int doChooseSplitIndex(List<DBTreeRecord<?, ? extends NS>> children, Comparator<NS> axis) {<NEW_LINE>children.sort(Comparator.comparing<MASK><NEW_LINE>// Distributions as described in Section 4.2<NEW_LINE>// Precompute the bounding boxes of each pair, incrementally.<NEW_LINE>// ************X (M = 12)<NEW_LINE... | (DBTreeRecord::getBounds, axis)); |
993,386 | private // and put here a jar?<NEW_LINE>void putWebInfLibraries(FileObject webInf, Map<URL, URL> tomcatTable, Map<URL, URL> loadingTable) {<NEW_LINE>if (webInf == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// NOI18N<NEW_LINE>FileObject libDir = webInf.getFileObject("lib");<NEW_LINE>if (libDir == null) {<NEW_LINE>retu... | loadingTable.put(helpurl, helpurl); |
1,107,921 | private void scanElement_module_version(org.w3c.dom.Element element, Module module) {<NEW_LINE>// <module_version><NEW_LINE>Version version = new Version(module);<NEW_LINE>org.w3c.dom.NamedNodeMap attrs = element.getAttributes();<NEW_LINE>for (int i = 0; i < attrs.getLength(); i++) {<NEW_LINE>org.w3c.dom.Attr attr = (o... | setOrigin(attr.getValue()); |
1,608,792 | public static MethodInfo fromRef(RootNode root, IMethodRef methodRef) {<NEW_LINE>InfoStorage infoStorage = root.getInfoStorage();<NEW_LINE>int uniqId = methodRef.getUniqId();<NEW_LINE>if (uniqId != 0) {<NEW_LINE>MethodInfo prevMth = infoStorage.getByUniqId(uniqId);<NEW_LINE>if (prevMth != null) {<NEW_LINE>return prevMt... | parse(methodRef.getReturnType()); |
448,333 | public OidcMemberDefinition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>OidcMemberDefinition oidcMemberDefinition = new OidcMemberDefinition();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con... | String currentParentElement = context.getCurrentParentElement(); |
228,582 | private Mono<Response<Flux<ByteBuffer>>> updatePatchWithResponseAsync(String resourceGroupName, String serviceName, ConfigServerResourceInner configServerResource, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpo... | serviceName, configServerResource, accept, context); |
1,305,868 | public DataPrivacy unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DataPrivacy dataPrivacy = new DataPrivacy();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentTok... | int originalDepth = context.getCurrentDepth(); |
67,404 | private static void collapseReferent(Collection<TypedDependency> list) {<NEW_LINE>// find typed deps of form ref(gov, dep)<NEW_LINE>// put them in a List for processing; remove them from the set of deps<NEW_LINE>List<TypedDependency> refs = new ArrayList<>();<NEW_LINE>for (Iterator<TypedDependency> iter = list.iterator... | log.info(" to " + td); |
1,766,356 | private static int comparePrecedence(String operator, Atom operand) {<NEW_LINE>if (operand instanceof BinaryOperation) {<NEW_LINE>return (Unparser.getOperatorPrecedence(operator) - Unparser.getOperatorPrecedence(((BinaryOperation) operand).operator));<NEW_LINE>} else if (operand instanceof UnaryOperation) {<NEW_LINE>re... | ) - Unparser.getOperatorPrecedence("?:"); |
309,586 | final DescribeProblemResult executeDescribeProblem(DescribeProblemRequest describeProblemRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeProblemRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,272,545 | Object sum(VirtualFrame frame, Object arg1, Object start, @Shared("getIter") @Cached PyObjectGetIter getIter, @Cached ConditionProfile hasStart, @Cached BranchProfile stringStart, @Cached BranchProfile bytesStart, @Cached BranchProfile byteArrayStart) {<NEW_LINE>if (PGuards.isString(start)) {<NEW_LINE>stringStart.enter... | raise(TypeError, ErrorMessages.CANT_SUM_BYTES); |
1,653,566 | private GetRouterAlertsAnswer execute(GetRouterAlertsCommand cmd) {<NEW_LINE>String routerIp = <MASK><NEW_LINE>String args = cmd.getPreviousAlertTimeStamp();<NEW_LINE>ExecutionResult result = _vrDeployer.executeInVR(routerIp, VRScripts.ROUTER_ALERTS, args);<NEW_LINE>String[] alerts = null;<NEW_LINE>String lastAlertTime... | cmd.getAccessDetail(NetworkElementCommand.ROUTER_IP); |
675,110 | private void generateConfigFiles() {<NEW_LINE><MASK><NEW_LINE>for (String providerInterface : providers.keySet()) {<NEW_LINE>String resourceFile = "META-INF/services/" + providerInterface;<NEW_LINE>log("Working on resource file: " + resourceFile);<NEW_LINE>try {<NEW_LINE>SortedSet<String> allServices = Sets.newTreeSet(... | Filer filer = processingEnv.getFiler(); |
1,027,976 | public static boolean fileMustExist(DownloadManager download_manager, DiskManagerFileInfoSet fileSet, DiskManagerFileInfo file) {<NEW_LINE>Map resumeData = getResumeData(download_manager);<NEW_LINE>byte[] resumePieces = resumeData != null ? (byte[]) resumeData.get("resume data") : null;<NEW_LINE>boolean sharesAnyNeeded... | sharesAnyNeededPieces |= !currentFile.isSkipped(); |
1,181,439 | public OWLObjectExactCardinality translate(IRI mainNode) {<NEW_LINE>getConsumer().consumeTriple(mainNode, RDF_TYPE.getIRI(), OWL_RESTRICTION.getIRI());<NEW_LINE>int cardi = translateInteger(mainNode, OWL_CARDINALITY);<NEW_LINE>IRI propertyIRI = getConsumer().getResourceObject(mainNode, OWL_ON_PROPERTY, true);<NEW_LINE>... | .translateObjectPropertyExpression(verifyNotNull(propertyIRI)); |
168,438 | final DeleteProjectResult executeDeleteProject(DeleteProjectRequest deleteProjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteProjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
925,346 | private static Route6FilterLine toRoute6FilterLine(ExtendedIpv6AccessListLine fromLine) {<NEW_LINE>LineAction action = fromLine.getAction();<NEW_LINE>Ip6 ip = fromLine.getSourceIpWildcard().getIp();<NEW_LINE>BigInteger minSubnet = fromLine.getDestinationIpWildcard().getIp().asBigInteger();<NEW_LINE>BigInteger maxSubnet... | .inverted().numSubnetBits(); |
505,641 | private Node tryFoldSimpleFunctionCall(Node n) {<NEW_LINE>checkState(n.isCall(), n);<NEW_LINE><MASK><NEW_LINE>if (callTarget == null || !callTarget.isName()) {<NEW_LINE>return n;<NEW_LINE>}<NEW_LINE>String targetName = callTarget.getString();<NEW_LINE>switch(targetName) {<NEW_LINE>case "Boolean":<NEW_LINE>{<NEW_LINE>//... | Node callTarget = n.getFirstChild(); |
1,561,204 | public static void main(String[] args) {<NEW_LINE>String[] images = new String[] { "shapes/polygons01.jpg", "shapes/shapes02.png", "fiducial/circle_hexagonal/image00.jpg", "fiducial/circle_hexagonal/image01.jpg" };<NEW_LINE>ListDisplayPanel panel = new ListDisplayPanel();<NEW_LINE>BinaryEllipseDetector<GrayU8> detector... | showWindow(panel, "Detected Ellipses", true); |
1,351,384 | public static void registerRMChannel(RegisterRMRequest resourceManagerRequest, Channel channel) throws IncompatibleVersionException {<NEW_LINE>Version.checkVersion(resourceManagerRequest.getVersion());<NEW_LINE>Set<String> dbkeySet = <MASK><NEW_LINE>RpcContext rpcContext;<NEW_LINE>if (!IDENTIFIED_CHANNELS.containsKey(c... | dbKeytoSet(resourceManagerRequest.getResourceIds()); |
141,335 | private void checkFieldRelationConsistency() {<NEW_LINE>Entry e;<NEW_LINE>// for correct assembly of outboundlinks outboundlinks_protocol_sxt + outboundlinks_urlstub_sxt is needed<NEW_LINE>if (this.contains(CollectionSchema.outboundlinks_urlstub_sxt) && !this.contains(CollectionSchema.outboundlinks_protocol_sxt)) {<NE... | outboundlinks_protocol_sxt.name(), e); |
1,333,090 | public Set<Pair<WorkerInfo, SerializableVoid>> selectExecutors(ReplicateConfig config, List<WorkerInfo> jobWorkerInfoList, SelectExecutorsContext context) throws Exception {<NEW_LINE>Preconditions.checkArgument(!jobWorkerInfoList.isEmpty(), "No worker is available");<NEW_LINE>long blockId = config.getBlockId();<NEW_LIN... | <>(workerInfo, null)); |
7,099 | private void createProduction() {<NEW_LINE>int noProds = 0;<NEW_LINE>String info = "";<NEW_LINE>//<NEW_LINE>MProduction production = null;<NEW_LINE>MWarehouse wh = null;<NEW_LINE>X_T_Replenish[] replenishs = getReplenish("M_WarehouseSource_ID IS NULL " + "AND EXISTS (SELECT * FROM M_Product p WHERE p.M_Product_ID=T_Rep... | (getCtx(), "#Date")); |
805,853 | protected User createNewUser(final User systemUser, final Attributes attributesBean, final IdentityProviderConfiguration identityProviderConfiguration) {<NEW_LINE>User user = null;<NEW_LINE>try {<NEW_LINE>final String nameID = this.samlAuthenticationService.getValue(attributesBean.getNameID());<NEW_LINE>final String ha... | attributesBean.getEmail() + "' has been created."); |
139,962 | public static PixelInfo compute(byte[] data, boolean isRGBA) {<NEW_LINE>if (data.length == 0) {<NEW_LINE>return PixelInfo.NULL_INFO;<NEW_LINE>}<NEW_LINE>int min = 255<MASK><NEW_LINE>double average = 0;<NEW_LINE>if (isRGBA) {<NEW_LINE>alphaMin = 255;<NEW_LINE>alphaMax = 0;<NEW_LINE>for (int i = 0, end = data.length - 3;... | , max = 0, alphaMin, alphaMax; |
45,392 | public static void installUncaughtExceptionHandler() {<NEW_LINE>final UncaughtExceptionHandler previousHandler = Thread.getDefaultUncaughtExceptionHandler();<NEW_LINE>Thread.setDefaultUncaughtExceptionHandler((thread, ex) -> {<NEW_LINE>// OkHttp threads can be interrupted when a request cancellation occurs, this should... | Log.w("Error writing dump", e); |
601,443 | public void onAddNodes(ServiceRequest service) {<NEW_LINE>OpcUaServer server = service.attr(ServiceAttributes.SERVER_KEY).get();<NEW_LINE>Session session = service.attr(ServiceAttributes.SESSION_KEY).get();<NEW_LINE>AddNodesRequest request = (AddNodesRequest) service.getRequest();<NEW_LINE>List<AddNodesItem> nodesToAdd... | l(request.getNodesToAdd()); |
1,439,890 | private static int countUsedLines(DetailAST ast) {<NEW_LINE>final Deque<DetailAST> nodes = new ArrayDeque<>();<NEW_LINE>nodes.add(ast);<NEW_LINE>final Set<Integer> <MASK><NEW_LINE>while (!nodes.isEmpty()) {<NEW_LINE>final DetailAST node = nodes.removeFirst();<NEW_LINE>final int lineNo = node.getLineNo();<NEW_LINE>// te... | usedLines = new HashSet<>(); |
419,492 | public static void modifyOIDCAdapterConfig(Archive<?> archive, String adapterConfigPath) {<NEW_LINE>try {<NEW_LINE>AdapterConfig adapterConfig = IOUtil.loadJson(archive.get(adapterConfigPath).getAsset().openStream(), AdapterConfig.class);<NEW_LINE>adapterConfig.setAuthServerUrl(getAuthServerUrl());<NEW_LINE>if (APP_SER... | File truststore = new File(truststoreUrl); |
1,581,837 | private void restore(Repository repository, Database db, RestoreStmt stmt) throws DdlException {<NEW_LINE>// Check if snapshot exist in repository<NEW_LINE>List<BackupJobInfo> infos = Lists.newArrayList();<NEW_LINE>Status status = repository.getSnapshotInfoFile(stmt.getLabel(), stmt.getBackupTimestamp(), infos);<NEW_LI... | status.getErrMsg() + ". Maybe specified wrong backup timestamp"); |
1,766,691 | protected static JoinDoubleFieldBo merge(List<JoinDoubleFieldBo> joinDoubleFieldBoList) {<NEW_LINE>if (CollectionUtils.isEmpty(joinDoubleFieldBoList)) {<NEW_LINE>return UNCOLLECTED_FIELD_BO;<NEW_LINE>}<NEW_LINE>double avg = joinDoubleFieldBoList.stream().mapToDouble(JoinFieldBo::getAvg).average().orElseThrow(NoSuchElem... | String minAgentId = min.getMinAgentId(); |
1,078,518 | public SortedMap<K, V> subMap(K start, K end) {<NEW_LINE>// the exception check is special here, the end should not if equal<NEW_LINE>// to endkey unless start is equal to end<NEW_LINE>if (!checkLowerBound(start) || !checkUpperBound(start)) {<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>}<NEW_LINE>int result... | (end).compareTo(hi); |
1,357,589 | public Invite unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Invite invite = new Invite();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = c... | class).unmarshall(context)); |
1,714,014 | private boolean doSSLShutdown() {<NEW_LINE>if (SSL.isInInit(ssl) != 0) {<NEW_LINE>// Only try to call SSL_shutdown if we are not in the init state anymore.<NEW_LINE>// Otherwise we will see 'error:140E0197:SSL routines:SSL_shutdown:shutdown while in init' in our logs.<NEW_LINE>//<NEW_LINE>// See also https://hg.nginx.o... | err = SSL.shutdownSSL(ssl); |
1,206,052 | private String convertLink(@NotNull String href) {<NEW_LINE>Matcher evaluatedLinkMatcher = PATTERN_EVALUATED_LINK.matcher(href);<NEW_LINE>String concreteHref = evaluatedLinkMatcher.matches() ? evaluatedLinkMatcher.group(1) : href;<NEW_LINE>Matcher externalLinkMatcher = PATTERN_EXTERNAL_LINK.matcher(concreteHref);<NEW_L... | concreteHref.length() - 5); |
1,827,308 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.... | emc.beginTransaction(Building.class); |
1,578,729 | public void visitThread(ThreadsInfo thread) {<NEW_LINE>Extension <MASK><NEW_LINE>ThreadMXBean bean = ManagementFactory.getThreadMXBean();<NEW_LINE>bean.setThreadContentionMonitoringEnabled(true);<NEW_LINE>ThreadInfo[] threads;<NEW_LINE>if (m_dumpLocked) {<NEW_LINE>threads = bean.dumpAllThreads(true, true);<NEW_LINE>} e... | frameworkThread = m_statusInfo.findOrCreateExtension("FrameworkThread"); |
1,231,613 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "create table MyTable(sortcol sorted(intPrimitive) @type('SupportBean'));\n" + "into table MyTable select sorted(*) as sortcol from SupportBean;\n" + "@name('s0') select " + "MyTable.sortcol.firstEvent().theString as feid," + "MyTable.sortcol.firstEvent... | (SupportBean.class), "fefo,feslo,lefo,leslo"); |
419,045 | public void explain() {<NEW_LINE>try {<NEW_LINE>Object[] options = new <MASK><NEW_LINE>final OWLEditorKit owlEditorKit = getEditorKit();<NEW_LINE>IntroductoryPanel intro = new IntroductoryPanel(owlEditorKit, lastSelectedPlugin);<NEW_LINE>int ret = JOptionPane.showOptionDialog(owlEditorKit.getOWLWorkspace(), intro, "Hel... | Object[] { EXPLAIN, "Cancel" }; |
582,593 | int runCmd(CommandLine cmdLine) throws Exception {<NEW_LINE>String[] args = cmdLine.getArgs();<NEW_LINE>if (args.length < 1) {<NEW_LINE>throw new MissingArgumentException("'bookieSrc' argument required");<NEW_LINE>}<NEW_LINE>if (args.length > 1) {<NEW_LINE>System.err.println("The provided bookie dest " + args[1] + " wi... | .bookieAddress(args[0]); |
1,163,765 | public static void main(String[] args) {<NEW_LINE>Loader.loadNativeLibraries();<NEW_LINE>// Create the model.<NEW_LINE>// [START model]<NEW_LINE>CpModel model = new CpModel();<NEW_LINE>// [END model]<NEW_LINE>// Create the variables.<NEW_LINE>// [START variables]<NEW_LINE>int varUpperBound = stream(new int[] { 50, 45, ... | + solver.value(z)); |
729,465 | private void markupSectionHeaders(TaskMonitor monitor) {<NEW_LINE>int headerCount = elf.getSectionHeaderCount();<NEW_LINE>int size = elf.e_shentsize() * headerCount;<NEW_LINE>if (size == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>monitor.setMessage("Markup Section Headers ...");<NEW_LINE>Structure shStructDt = (Structur... | .resolve(arrayDt, null)); |
1,826,844 | private // TODO: Implement WritableRaster too, for use in reading<NEW_LINE>Raster asByteRaster(final Raster raster, ColorModel colorModel) {<NEW_LINE>switch(raster.getTransferType()) {<NEW_LINE>case DataBuffer.TYPE_BYTE:<NEW_LINE>return raster;<NEW_LINE>case DataBuffer.TYPE_USHORT:<NEW_LINE>// TODO: We handle USHORT es... | = (i % bands) * 8; |
1,657,035 | private static // Return: <local, GSI><NEW_LINE>Pair<List<Pair<SqlIdentifier, SqlIndexDefinition>>, List<Pair<SqlIdentifier, SqlIndexDefinition>>> gsiNormalizeNewPartition(List<Pair<SqlIdentifier, SqlIndexDefinition>> indexes, SqlCreateTable createTable, RewriteOps ops) {<NEW_LINE>List<Pair<SqlIdentifier, SqlIndexDefin... | ? pair.getValue() : changed; |
962,598 | public void findOrCreateSinglePaymentAndLinkIfPossible(@NonNull final I_C_BankStatement bankStatement, @NonNull final I_C_BankStatementLine bankStatementLine, @NonNull final Set<PaymentId> excludePaymentIds) {<NEW_LINE>// Bank Statement Line is already reconciled => do nothing<NEW_LINE>if (bankStatementLine.isReconcile... | linkSinglePayment(bankStatement, bankStatementLine, paymentId); |
1,192,879 | private void registerWatch(GC100IRBindingProvider gc100Provider, String itemName) {<NEW_LINE>if (!gc100Provider.providesBindingFor(itemName)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String gc100Instance = gc100Provider.getGC100InstanceName(itemName);<NEW_LINE>int module = gc100Provider.getGC100Module(itemName);<NEW_LINE... | logger.error("Connection failed with " + gc100Instance); |
1,735,678 | public Builder addEntryRecursive(Path sourceFile, AbsoluteUnixPath pathInContainer, FilePermissionsProvider filePermissionProvider, ModificationTimeProvider modificationTimeProvider, OwnershipProvider ownershipProvider) throws IOException {<NEW_LINE>FilePermissions permissions = <MASK><NEW_LINE>Instant modificationTime... | filePermissionProvider.get(sourceFile, pathInContainer); |
1,055,367 | public void paint(Graphics2D g) {<NEW_LINE>// here either 1. the mouse was released and the chart was zoomed so we need the reset button<NEW_LINE>// or 2. nothing should be drawn or 3. the zoom area<NEW_LINE>// should be drawn<NEW_LINE>if (resetButton.visible && (x1 == -1 || x2 == -1)) {<NEW_LINE>//<NEW_LINE>resetButto... | Math.abs(x1 - x2); |
1,192,846 | private ImmutablePair<Boolean, Boolean> calculateIsInsertionOrDeletion(final Build37ExtendedIlluminaManifestRecord extendedIlluminaManifestRecord, final ReferenceSequenceFile refFile, final String fivePrimeSeq, final String indelSeq, final String threePrimeSeq) {<NEW_LINE>// Do Illumina's strange left shift http://gith... | indelSeq.length() - 1); |
92,625 | private List<springfox.documentation.schema.ModelProperty> candidateProperties(ResolvedType type, AnnotatedMember member, BeanPropertyDefinition jacksonProperty, ModelContext givenContext, String namePrefix) {<NEW_LINE>List<springfox.documentation.schema.ModelProperty> properties = new ArrayList<>();<NEW_LINE>if (!isIn... | ).collect(toList()); |
1,231,384 | public void paint(Graphics g) {<NEW_LINE>Graphics2D g2d = (Graphics2D) g;<NEW_LINE>if (!isEnabled()) {<NEW_LINE>g2d.setComposite(AlphaComposite.getInstance<MASK><NEW_LINE>}<NEW_LINE>Color oldColor = g.getColor();<NEW_LINE>Dimension size = getSize();<NEW_LINE>g.setColor(getBackground());<NEW_LINE>g.fillRect(0, 0, size.w... | (AlphaComposite.SRC_OVER, 0.3f)); |
1,301,648 | public Container andNot(BitmapContainer x) {<NEW_LINE>// could be implemented as toTemporaryBitmap().iandNot(x);<NEW_LINE>int card = this.getCardinality();<NEW_LINE>if (card <= ArrayContainer.DEFAULT_MAX_SIZE) {<NEW_LINE>// result can only be an array (assuming that we never make a RunContainer)<NEW_LINE>ArrayContainer... | answer.cardinalityInRange(lastPos, start); |
634,940 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject <MASK><NEW_LINE>Permanent sourcePermanent = game.getPermanent(source.getSourceId());<NEW_LINE>Player newController = game.getPlayer(getTargetPointer().getFirst(game, source));<NEW... | sourceObject = source.getSourceObject(game); |
1,768,347 | protected DragstrLocus readRecord(final DataInput input) throws IOException {<NEW_LINE>while (true) {<NEW_LINE>final <MASK><NEW_LINE>final long s = input.readLong();<NEW_LINE>final byte p = input.readByte();<NEW_LINE>final short l = input.readShort();<NEW_LINE>final long m = input.readLong();<NEW_LINE>if (chrIdx != c) ... | int c = input.readInt(); |
2,464 | private // parses the file in standard format<NEW_LINE>void parseStandardFormat(CsvIterator csv, ListMultimap<String, CurveSensitivities> parsed, List<FailureItem> failures) {<NEW_LINE>// loop around all rows, peeking to match batches with the same identifier<NEW_LINE>// no exception catch at this level to avoid infini... | , ex.getMessage())); |
836,122 | public static BigInteger parseBytes(String input, ConfigOrigin originForException, String pathForException) {<NEW_LINE>String s = ConfigImplUtil.unicodeTrim(input);<NEW_LINE>String unitString = getUnits(s);<NEW_LINE>String numberString = ConfigImplUtil.unicodeTrim(s.substring(0, s.length() <MASK><NEW_LINE>// this would... | - unitString.length())); |
1,654,033 | public static DeploymentState aggregateState(Set<DeploymentState> states) {<NEW_LINE>if (states.size() == 1) {<NEW_LINE>DeploymentState state = states.iterator().next();<NEW_LINE>logger.debug("aggregateState: Deployment State Set Size = 1. Deployment State " + state);<NEW_LINE>// a stream which is known to the stream ... | debug("aggregateState: Returning " + DeploymentState.partial); |
924,920 | public void addDataPoint(IN dataPoint) {<NEW_LINE>String id = dataPoint.getId();<NEW_LINE>long timestamp = dataPoint.getTimestamp();<NEW_LINE>long timeslotTimestamp = timeWindow.refineTimestamp(timestamp);<NEW_LINE>SamplingPartitionContext<IN, OUT> samplingContext = samplingContexts.get(id);<NEW_LINE>if (samplingContex... | timeslotTimestamp, dataPoint, timeWindow, sampler); |
259,786 | private void bindCommonDynamicProp(int key, DynamicValue<?> value, View target) {<NEW_LINE>switch(key) {<NEW_LINE>case KEY_ALPHA:<NEW_LINE>target.setAlpha(DynamicPropsManager.<Float>resolve(value));<NEW_LINE>break;<NEW_LINE>case KEY_TRANSLATION_X:<NEW_LINE>target.setTranslationX(DynamicPropsManager.<Float>resolve(value... | <Integer>resolve(value)); |
465,006 | //<NEW_LINE>Reference(//<NEW_LINE>authors = "J. M. Bernando", //<NEW_LINE>title = "Algorithm AS 103: Psi (Digamma) Function", //<NEW_LINE>booktitle = "Statistical Algorithms", url = "https://doi.org/10.2307/2347257", bibkey = "doi:10.2307/2347257")<NEW_LINE>public static double digamma(double x) {<NEW_LINE>if (!(x > 0)... | x + 1.) - 1. / x; |
1,011,334 | public RowMap deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException {<NEW_LINE>ObjectNode node = jsonParser.getCodec().readTree(jsonParser);<NEW_LINE>JsonNode encrypted = node.get("encrypted");<NEW_LINE>if (encrypted != null) {<NEW_LINE>String iv = encrypted.get("iv").text... | database = node.get("database"); |
12,601 | public <T, E extends Exception> T withTempIndexService(final IndexMetadata indexMetadata, CheckedFunction<IndexService, T, E> indexServiceConsumer) throws IOException, E {<NEW_LINE>final Index index = indexMetadata.getIndex();<NEW_LINE>if (hasIndex(index)) {<NEW_LINE>throw new ResourceAlreadyExistsException(index);<NEW... | indicesQueryCache, indicesFieldDataCache, finalListeners, indexingMemoryController); |
6,782 | protected String doIt() {<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>String sql = "INSERT into T_Reconciliation " + "(AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy, " + "IsActive, Fact_Acct_ID, " + "AD_PInstance_ID, MatchCode) " + "SELECT f.AD_Client_ID, f.AD_Org_... | pstmt.setTimestamp(3, p_DateAcct_From); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.