idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
150,476 | private void writeClass(SmaliWriter smali, ClassNode cls) {<NEW_LINE>IClassData clsData = cls.getClsData();<NEW_LINE>if (clsData == null) {<NEW_LINE>smali.startLine(String.format("###### Class %s is created by jadx", cls.getFullName()));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AttributeStorage attributes = new AttributeSt... | smali, clsData, fields, colWidths); |
308,039 | public <Req, Resp> BlockingClientCall<Req, Resp> newBlockingCall(final MethodDescriptor<Req, Resp> methodDescriptor, final BufferDecoderGroup decompressors) {<NEW_LINE>final BlockingHttpClient client = streamingHttpClient.asBlockingClient();<NEW_LINE>GrpcSerializer<Req> serializerIdentity = serializer(methodDescriptor)... | String mdPath = methodDescriptor.httpPath(); |
856,585 | public // 118073_4_1 Gets an indication of whether message IDs are disabled.<NEW_LINE>void testSetDisableMessageID_B_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContextQCFBindings = qcfBindings.createContext();<NEW_LINE>emptyQueue(qcfBindings, queue1);<NEW_... | TextMessage tmsg = jmsContextQCFBindings.createTextMessage(); |
1,455,973 | public CompletableFuture<DistributedValue<V>> buildAsync() {<NEW_LINE>PrimitiveProtocol protocol = protocol();<NEW_LINE>if (protocol instanceof GossipProtocol) {<NEW_LINE>if (protocol instanceof ValueProtocol) {<NEW_LINE>CompletableFuture<AsyncDistributedValue<V>> future = managementService.getPrimitiveCache().getPrimi... | -> serializer.decode(bytes)); |
826,401 | private void generateWikiFull() throws IOException {<NEW_LINE>Path file = getDirectory().resolve(base + "Full" + WIKI_FILE_EXTENSION);<NEW_LINE>System.out.println("Generating " + file.toAbsolutePath());<NEW_LINE>try (BufferedWriter out = Files.newBufferedWriter(file, StandardCharsets.UTF_8)) {<NEW_LINE>out.write(title)... | out.write(OPTIONAL_MESSAGE + "\n\n"); |
91,513 | public static <K extends Kernel2D> SteerableKernel<K> gaussian(Class<K> kernelType, int orderX, int orderY, double sigma, int radius) {<NEW_LINE>if (orderX < 0 || orderX > 4)<NEW_LINE>throw new IllegalArgumentException("derivX must be from 0 to 4 inclusive.");<NEW_LINE>if (orderY < 0 || orderY > 4)<NEW_LINE>throw new I... | = new Kernel2D[order + 1]; |
1,007,991 | public void marshall(CaptionDestinationSettings captionDestinationSettings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (captionDestinationSettings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(captio... | captionDestinationSettings.getRtmpCaptionInfoDestinationSettings(), RTMPCAPTIONINFODESTINATIONSETTINGS_BINDING); |
426,942 | public void writeResponses(final SessionLabel sessionLabel, final UserIdentity userIdentity, final ChaiUser theUser, final String userGUID, final ResponseInfoBean responseInfoBean) throws PwmUnrecoverableException {<NEW_LINE>if (userGUID == null || userGUID.length() < 1) {<NEW_LINE>throw new PwmUnrecoverableException(n... | " in remote database: " + e.getMessage()); |
1,739,366 | protected void computeNewAveragePriceLocationLine(StockLocationLine stockLocationLine, StockMoveLine stockMoveLine) throws AxelorException {<NEW_LINE>BigDecimal oldAvgPrice = stockLocationLine.getAvgPrice();<NEW_LINE>// avgPrice in stock move line is a bigdecimal but is nullable.<NEW_LINE>BigDecimal newQty = stockMoveL... | int scale = appBaseService.getNbDecimalDigitForUnitPrice(); |
38,364 | synchronized public void writeMetadata(@NonNull BackupFiles.BackupFile backupFile) throws IOException {<NEW_LINE>if (metadata == null) {<NEW_LINE>throw new RuntimeException("Metadata not set for path " + backupFile.getBackupPath());<NEW_LINE>}<NEW_LINE>Path metadataFile = backupFile.getMetadataFile();<NEW_LINE>try (Out... | metadata.flags.getFlags()); |
1,820,817 | protected String handleOtherXCosts(Game game, Player controller) {<NEW_LINE>StringBuilder announceString = new StringBuilder();<NEW_LINE>for (VariableCost variableCost : this.costs.getVariableCosts()) {<NEW_LINE>if (!(variableCost instanceof VariableManaCost) && !((Cost) variableCost).isPaid()) {<NEW_LINE>int xValue = ... | fixedCost = variableCost.getFixedCostsFromAnnouncedValue(xValue); |
534,299 | private void bindDownload(@NonNull final ViewHolder holder, int position, GalleryDownloaderV2 downloader) {<NEW_LINE>int percentage = downloader.getPercentage();<NEW_LINE>// if (!downloader.hasData())return;<NEW_LINE>ImageDownloadUtility.loadImage(context, downloader.getThumbnail(), holder.imgView);<NEW_LINE>holder.tit... | ) == GalleryDownloaderV2.Status.NOT_STARTED); |
737,077 | Void transferLock(final Resource resource, final String owner, final String threadId, final String oldOwner, final String oldThreadId) {<NEW_LINE>boolean lockAcquired = false;<NEW_LINE>// test and set implementation<NEW_LINE>try {<NEW_LINE>// Read the existing data along with its version.<NEW_LINE>// Update data if ver... | LockFailedException(resource.getString()); |
1,519,457 | public void fullRedraw() {<NEW_LINE>setupCanvas();<NEW_LINE>final StyleLibrary style = context.getStyleLibrary();<NEW_LINE>CSSClass cls = new CSSClass(this, CSSNAME);<NEW_LINE>style.lines().formatCSSClass(cls, -1, style.getLineWidth(StyleLibrary.CLUSTERORDER));<NEW_LINE>cls.setStatement(SVGConstants.CSS_MARKER_END_PROP... | DBIDVar prev = DBIDUtil.newVar(); |
699,062 | private void chartInit() {<NEW_LINE>previewChart.setTouchEnabled(true);<NEW_LINE>previewChart.setHighlightPerDragEnabled(true);<NEW_LINE>previewChart.setDragEnabled(true);<NEW_LINE>previewChart.setScaleEnabled(true);<NEW_LINE>previewChart.setDrawGridBackground(false);<NEW_LINE>previewChart.setPinchZoom(true);<NEW_LINE>... | getDescription().setEnabled(false); |
592,629 | private IClass compileGet2(ClassLiteral cl) throws CompileException {<NEW_LINE>IType type = this.getType(cl.type);<NEW_LINE>if (type instanceof IParameterizedType) {<NEW_LINE>this.compileError("LHS of class literal must not be a parameterized type", cl.getLocation());<NEW_LINE>}<NEW_LINE>assert type instanceof IClass;<... | this.iClassLoader.TYPE_java_lang_Class, true); |
670,087 | Object reconfigure(VirtualFrame frame, PTextIO self, Object encodingObj, Object errorsObj, Object newlineObj, Object lineBufferingObj, Object writeThroughObj, @Cached IONodes.ToStringNode toStringNode, @Cached PyObjectCallMethodObjArgs callMethod, @Cached PyObjectIsTrueNode isTrueNode, @Cached TextIOWrapperNodes.Change... | isTrueNode.execute(frame, writeThroughObj); |
793,352 | public String commandList() {<NEW_LINE>if (subcommands().isEmpty()) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>int commandLength = maxLength(subcommands().keySet());<NEW_LINE>Help.TextTable textTable = Help.TextTable.forColumns(ansi(), new Help.Column(commandLength + 2, 2, Help.Column.Overflow.SPAN), new Help.Column(wid... | .EMPTY_TEXT, lines[i]); |
1,612,819 | protected Response runInternal(final UserSession session, final SchemaTreeProvider schemaProvider) {<NEW_LINE>final GetTablesResp.Builder respBuilder = GetTablesResp.newBuilder();<NEW_LINE>final InfoSchemaFilter filter = createInfoSchemaFilter(req.hasCatalogNameFilter() ? req.getCatalogNameFilter() : null, req.hasSchem... | TABLES, respBuilder.build()); |
1,317,517 | public static void unzip(InputStream is, Path targetDir) throws IOException {<NEW_LINE>targetDir = targetDir.toAbsolutePath();<NEW_LINE>try (ZipInputStream zipIn = new ZipInputStream(is)) {<NEW_LINE>for (ZipEntry ze; (ze = zipIn.getNextEntry()) != null; ) {<NEW_LINE>Path resolvedPath = targetDir.resolve(ze.getName()).n... | assert dir != null : "null parent: " + resolvedPath; |
1,309,498 | public ThreadRuntime createContainer(InstanceConfig instanceConfig, String jarFile, String originalCodeFileName, Long expectedHealthCheckInterval) {<NEW_LINE>SecretsProvider secretsProvider = defaultSecretsProvider;<NEW_LINE>if (secretsProvider == null) {<NEW_LINE>String secretsProviderClassName = secretsProviderConfig... | getSecretsProviderClassName(instanceConfig.getFunctionDetails()); |
1,646,153 | final DescribeMultiplexProgramResult executeDescribeMultiplexProgram(DescribeMultiplexProgramRequest describeMultiplexProgramRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeMultiplexProgramRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,043,306 | private String findPropertyName(Object bean, String key) {<NEW_LINE>if (bean == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Class<?> cls = bean.getClass();<NEW_LINE>int index = PropertyAccessorUtils.getFirstNestedPropertySeparatorIndex(key);<NEW_LINE>String prefix;<NEW_LINE>String suffix;<NEW_LINE>// If the prope... | key.substring(0, index); |
552,883 | public static void parsePredicateLogicalCompare(Message.LogicalCompare.Builder logicalCompareBuilder, P predicate) {<NEW_LINE>if (predicate instanceof AndP) {<NEW_LINE>List<P> plist = ((AndP) predicate).getPredicates();<NEW_LINE>logicalCompareBuilder.<MASK><NEW_LINE>int andPropId = logicalCompareBuilder.getPropId();<NE... | setCompare(Message.CompareType.AND_RELATION); |
917,456 | private void pickAddressFromNetworkConfig() {<NEW_LINE>InetSocketAddress bindAddress;<NEW_LINE>InetSocketAddress publicAddress;<NEW_LINE>ServerSocketChannel serverSocketChannel;<NEW_LINE>NetworkConfig networkConfig = config.getNetworkConfig();<NEW_LINE>bindAddress = memberAddressProvider.getBindAddress();<NEW_LINE>publ... | bindAddresses.put(MEMBER, bindAddress); |
1,009,193 | final GetTrafficPolicyInstanceResult executeGetTrafficPolicyInstance(GetTrafficPolicyInstanceRequest getTrafficPolicyInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTrafficPolicyInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | endClientExecution(awsRequestMetrics, request, response); |
1,582,845 | public static ListRolesResponse unmarshall(ListRolesResponse listRolesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRolesResponse.setRequestId(_ctx.stringValue("ListRolesResponse.RequestId"));<NEW_LINE>listRolesResponse.setTotalCount(_ctx.integerValue("ListRolesResponse.TotalCount"));<NEW_LINE>listRolesResponse.se... | ("ListRolesResponse.Roles[" + i + "].RoleName")); |
1,257,414 | final UpdateDefaultBranchResult executeUpdateDefaultBranch(UpdateDefaultBranchRequest updateDefaultBranchRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDefaultBranchRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | (super.beforeMarshalling(updateDefaultBranchRequest)); |
816,792 | public MHREmployeeDependent filterCareerLevelValue(String careerLevelValue) {<NEW_LINE>if (careerLevelValue == null || careerLevelValue.length() == 0) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (dependentList != null && dependentList.size() > 0) {<NEW_LINE>// Get Degree Id<NEW_LINE>MHRCareerLevel careerLevel = MHRC... | ), careerLevelValue, get_TrxName()); |
305,637 | public boolean move(Point vector) {<NEW_LINE>final int dx = vector.x;<NEW_LINE>if (dx == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// Data<NEW_LINE>box.width += dx;<NEW_LINE>if (box.width > 0) {<NEW_LINE>WordInter word = (WordInter) inter;<NEW_LINE>String value = word.getValue();<NEW_LINE>int fontSize = (int) Mat... | rect.getHeight() / 2); |
1,851,223 | public void onPluginChanged(final List<PluginData> changed, final DataEventTypeEnum eventType) {<NEW_LINE>updatePluginMap(getConfig(NacosPathConstants.PLUGIN_DATA_ID));<NEW_LINE>switch(eventType) {<NEW_LINE>case DELETE:<NEW_LINE>changed.forEach(plugin -> PLUGIN_MAP.remove(plugin.getName()));<NEW_LINE>break;<NEW_LINE>ca... | remove(plugin.getName()); |
1,227,443 | protected ValidationResult validateOperation(final Transform operation, final Schema schema) {<NEW_LINE>final ValidationResult result = new ValidationResult();<NEW_LINE>final Map<String, ?> entities = null != operation.getEntities() ? operation.getEntities() : new HashMap<>();<NEW_LINE>final Map<String, ?> edges = null... | (validateEntity(entry, schema)); |
337,632 | private void processSystem(SystemInfo system) {<NEW_LINE>try {<NEW_LINE>logger.debug("Processing {}", system);<NEW_LINE>current.system = system;<NEW_LINE>isFirst.measure = true;<NEW_LINE>Part systemPart = system.getPartById(current.logicalPart.getId());<NEW_LINE>if (systemPart != null) {<NEW_LINE>processPart(systemPart... | system, current.page, ex); |
12,873 | public void open() {<NEW_LINE>super.open();<NEW_LINE>try {<NEW_LINE>writeComment(Document.getVersion());<NEW_LINE>writeComment("CreationDate: " + new Date().toString());<NEW_LINE>addTabs(1);<NEW_LINE>writeEnd(HtmlTags.HEAD);<NEW_LINE>addTabs(1);<NEW_LINE>writeStart(HtmlTags.BODY);<NEW_LINE>if (document.leftMargin() > 0... | (document.getJavaScript_onUnLoad())); |
1,092,266 | public static <T> T invokeSetters(final T instance, final Map<String, Object> vars) throws ReflectiveOperationException {<NEW_LINE>if (instance != null && vars != null) {<NEW_LINE>final Class<?> clazz = instance.getClass();<NEW_LINE>final Method[] methods = clazz.getMethods();<NEW_LINE>for (final Entry<String, Object> ... | entry.getKey() + "'"); |
1,419,361 | private Metric collectGauge(MetricName dropwizardMetric, Gauge gauge) {<NEW_LINE>// TODO cache dropwizard MetricName -> OC MetricDescriptor, Labels conversion<NEW_LINE>String metricName = DropWizardUtils.generateFullMetricName(dropwizardMetric.getKey(), "gauge");<NEW_LINE>String metricDescription = DropWizardUtils.gene... | ) obj).doubleValue()); |
619,996 | private void sne(int i, double[] dY, double[] dC) {<NEW_LINE>double[][] Y = coordinates;<NEW_LINE>int n = Y.length;<NEW_LINE>int d = Y[0].length;<NEW_LINE>// Compute gradient<NEW_LINE>// dereference before the loop for better performance<NEW_LINE>double[] Yi = Y[i];<NEW_LINE>double[] Pi = P[i];<NEW_LINE>double[] Qi = Q... | (q / Qsum)) * q; |
592,902 | private Properties loadProperties() {<NEW_LINE>final Path agentDirPath = agentDirectory.getAgentDirPath();<NEW_LINE>final Path profilesPath = agentDirectory.getProfilesPath();<NEW_LINE>final String[] profileDirs = agentDirectory.getProfileDirs();<NEW_LINE>final SimpleProperty javaSystemProperty = copyJavaSystemProperty... | Properties properties = loader.load(); |
1,578,242 | static IntegerSpace portRangeStringToIntegerSpace(String range) {<NEW_LINE>if (range.isEmpty()) {<NEW_LINE>// warn? all ports instead?<NEW_LINE>return IntegerSpace.EMPTY;<NEW_LINE>}<NEW_LINE>IntegerSpace raw;<NEW_LINE>char firstChar = range.charAt(0);<NEW_LINE>if ('0' <= firstChar && firstChar <= '9') {<NEW_LINE>// Exa... | (2)), MAX_PORT_NUMBER)); |
1,742,726 | final synchronized void showInfo(String title) {<NEW_LINE>if (infoPanel == null) {<NEW_LINE>infoPanel = new JPanel();<NEW_LINE>infoPanel<MASK><NEW_LINE>JScrollPane scrollPane = new JScrollPane();<NEW_LINE>infoPanelContent = new JPanel(new FlowLayout(FlowLayout.LEADING));<NEW_LINE>// NOI18N<NEW_LINE>infoPanelContent.set... | .setLayout(new BorderLayout()); |
1,826,780 | protected JMenu createLightSourceMenu() {<NEW_LINE>JMenu menu = new JMenu(I18N.getText("panel.MapExplorer.View.LIGHT_SOURCES"));<NEW_LINE>if (tokenUnderMouse.hasLightSources()) {<NEW_LINE>menu<MASK><NEW_LINE>ZoneRenderer renderer = MapTool.getFrame().getCurrentZoneRenderer();<NEW_LINE>for (GUID tokenGUID : selectedToke... | .add(new ClearLightAction()); |
253,959 | public ListTargetedSentimentDetectionJobsResult listTargetedSentimentDetectionJobs(ListTargetedSentimentDetectionJobsRequest listTargetedSentimentDetectionJobsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTargetedSentimentDetectio... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
846,949 | public Response updateMetadata(@Context UriInfo uriInfo) {<NEW_LINE>try {<NEW_LINE>InstanceInfo instanceInfo = registry.getInstanceByAppAndId(app.getName(), id);<NEW_LINE>// ReplicationInstance information is not found, generate an error<NEW_LINE>if (instanceInfo == null) {<NEW_LINE>logger.warn("Cannot find instance wh... | > metadataMap = instanceInfo.getMetadata(); |
940,412 | public void run(FlowTrigger trigger, Map data) {<NEW_LINE>VmInstanceSpec spec = (VmInstanceSpec) data.get(VmInstanceConstant.Params.VmInstanceSpec.toString());<NEW_LINE>ApplianceVmPostLifeCycleInfo info;<NEW_LINE>if (spec.getCurrentVmOperation() == VmOperation.NewCreate) {<NEW_LINE>final ApplianceVmSpec aspec = spec.ge... | IS_NEW_CREATED.toString(), true); |
622,107 | public void onTestFailure(@Nonnull final TestFailedEvent testFailedEvent) {<NEW_LINE>addToInvokeLater(() -> {<NEW_LINE>final String testName = testFailedEvent.getName();<NEW_LINE>if (testName == null) {<NEW_LINE>logProblem("No test name specified in " + testFailedEvent);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Strin... | + "}. " + cannotFindFullTestNameMsg(fullTestName)); |
485,133 | private View findEndView(RecyclerView.LayoutManager layoutManager, OrientationHelper helper) {<NEW_LINE>if (layoutManager instanceof LinearLayoutManager) {<NEW_LINE>int lastChild = ((LinearLayoutManager) layoutManager).findLastVisibleItemPosition();<NEW_LINE>if (lastChild == RecyclerView.NO_POSITION) {<NEW_LINE>return ... | layoutManager.findViewByPosition(lastChild - 1); |
382,958 | final ListVirtualClustersResult executeListVirtualClusters(ListVirtualClustersRequest listVirtualClustersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listVirtualClustersRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListVirtua... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
965,504 | final DescribeInstallationMediaResult executeDescribeInstallationMedia(DescribeInstallationMediaRequest describeInstallationMediaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeInstallationMediaRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,569,536 | public static void main(String[] args) throws Exception {<NEW_LINE>double[] vscales = { 1.0 };<NEW_LINE>for (int i = 0; i < args.length; i++) {<NEW_LINE>AudioInputStream inputAudio = AudioSystem.getAudioInputStream(new File(args[i]));<NEW_LINE>int samplingRate = (int) inputAudio.getFormat().getSampleRate();<NEW_LINE>in... | AudioDoubleDataSource signal = new AudioDoubleDataSource(inputAudio); |
487,029 | final UpdateConnectionResult executeUpdateConnection(UpdateConnectionRequest updateConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | endClientExecution(awsRequestMetrics, request, response); |
1,737,464 | public List<Map<String, Object>> asMaps() {<NEW_LINE>List<Map<String, Object>> servers = new ArrayList<>();<NEW_LINE>for (Map.Entry<ServerUUID, DataContainer> entry : perServer.entrySet()) {<NEW_LINE>ServerUUID serverUUID = entry.getKey();<NEW_LINE>DataContainer ofServer = entry.getValue();<NEW_LINE>Map<String, Object>... | (sessionsMutator.toPlaytime())); |
1,278,926 | public static PwmPasswordPolicy determineConfiguredPolicyProfileForUser(final PwmDomain pwmDomain, final SessionLabel pwmSession, final UserIdentity userIdentity) throws PwmUnrecoverableException {<NEW_LINE>final List<String> profiles = pwmDomain.getConfig().getPasswordProfileIDs();<NEW_LINE>if (profiles.isEmpty()) {<N... | "', error: " + e.getMessage()); |
1,811,423 | public static TokenHierarchy<CharSequence> createJspTokenHierarchy(Snapshot jspSnapshot) {<NEW_LINE>InputAttributes inputAttributes = new InputAttributes();<NEW_LINE>FileObject fo = jspSnapshot<MASK><NEW_LINE>if (fo != null) {<NEW_LINE>// try to obtain jsp coloring info for file based snapshots<NEW_LINE>JspColoringData... | .getSource().getFileObject(); |
1,771,796 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.fragment_rounded, container, false);<NEW_LINE>StreamAdapter adapter = new StreamAdapter(getActivity());<NEW_LINE>adapter.add(new StreamItem(getActivity(), R.drawable.photo1,... | , Shader.TileMode.CLAMP)); |
488,474 | public static void convertFrr(Configuration c, FrrVendorConfiguration vc) {<NEW_LINE>FrrConfiguration frrConfiguration = vc.getFrrConfiguration();<NEW_LINE>// FRR does not generate local routes for connected routes.<NEW_LINE>c.getAllInterfaces().values().forEach(i -> {<NEW_LINE>ImmutableSortedMap.Builder<ConcreteInterf... | setAddressMetadata(metadata.build()); |
1,845,796 | protected Attachment executeInternal(CommandContext commandContext) {<NEW_LINE>AttachmentEntity attachment = commandContext.getAttachmentEntityManager().create();<NEW_LINE>attachment.setName(attachmentName);<NEW_LINE>attachment.setProcessInstanceId(processInstanceId);<NEW_LINE>attachment.setTaskId(taskId);<NEW_LINE>att... | , processInstanceId, processInstanceId, processDefinitionId)); |
1,622,228 | protected static SchemaExtender implForChaiProvider(final ChaiProvider chaiProvider) throws PwmUnrecoverableException {<NEW_LINE>if (!chaiProvider.isConnected()) {<NEW_LINE>throw new PwmUnrecoverableException(new ErrorInformation(PwmError.ERROR_DIRECTORY_UNAVAILABLE, "provider is not connected"));<NEW_LINE>}<NEW_LINE>t... | = "error instantiating schema extender: " + e.getMessage(); |
1,168,307 | private BufferSet appendInvertedGeometry(IntBuffer indicesAsInt, DoubleBuffer verticesAsDouble, FloatBuffer normalsAsFloat, IntBuffer colorIndices) {<NEW_LINE>indicesAsInt.position(0);<NEW_LINE>normalsAsFloat.position(0);<NEW_LINE>ByteBuffer newVerticesByteBuffer = ByteBuffer.allocate(verticesAsDouble.capacity() * 16);... | int index2 = indicesAsInt.get(); |
1,669,361 | static void updateNavigationViewLayout(int screenWidth, @NonNull DrawerLayout drawerLayout, @NonNull NavigationView modalNavDrawer, @Nullable FloatingActionButton fab, @NonNull BottomNavigationView bottomNav, @NonNull NavigationRailView navRail, @NonNull NavigationView navDrawer, @NonNull ExtendedFloatingActionButton n... | navRail.setVisibility(View.VISIBLE); |
985,962 | private void printFieldRef(FieldRef v) {<NEW_LINE>String refTypeName = v.getClass().getSimpleName();<NEW_LINE>p.openBlock();<NEW_LINE>String oldName = varName;<NEW_LINE>SootField f = v.getField();<NEW_LINE>ttp.setVariableName("type");<NEW_LINE>f.getType().apply(ttp);<NEW_LINE>p.print("SootFieldRef fieldRef = ");<NEW_LI... | f.getName() + "\","); |
486,006 | private void writeCacheWaypoint(@NonNull final Waypoint wp) throws IOException {<NEW_LINE>gpx.startTag(NS_GPX, "wpt");<NEW_LINE>final Geopoint coords = wp.getCoords();<NEW_LINE>if (coords != null) {<NEW_LINE>gpx.attribute("", "lat", Double.toString(coords.getLatitude()));<NEW_LINE>gpx.attribute("", "lon", Double.toStri... | WaypointUserNoteCombiner wpCombiner = new WaypointUserNoteCombiner(wp); |
704,756 | private OPFData peek(InputStream inputStream) throws InvalidVersionException {<NEW_LINE>OPFDataBuilder builder = new OPFDataBuilder();<NEW_LINE>SAXParserFactory factory = SAXParserFactory.newInstance();<NEW_LINE>factory.setNamespaceAware(true);<NEW_LINE>factory.setValidating(false);<NEW_LINE>try {<NEW_LINE>factory.setF... | getXMLReader().setEntityResolver(handler); |
89,531 | public void read(org.apache.thrift.protocol.TProtocol iprot, query_cfg_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == or... | .pegasus.replication.query_cfg_response(); |
904,202 | public static String gerarExemploDeInicializacaoDeVetor(Vetor vetor, int tamanhoVetor) {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>builder.append(vetor.getTipoDado().getNome());<NEW_LINE>builder.append(" ");<NEW_LINE>builder.<MASK><NEW_LINE>if (tamanhoVetor == 0) {<NEW_LINE>builder.append("[]");<NE... | append(vetor.getNome()); |
411,098 | private ArrayTypesInternal mergeTypeStates(ArrayTypesInternal a1, ArrayTypesInternal a2) {<NEW_LINE>assert (a1 != null && a2 != null);<NEW_LINE>ArrayTypesInternal toRet = new ArrayTypesInternal();<NEW_LINE>toRet.sizeState.or(a1.sizeState);<NEW_LINE>toRet.sizeState.or(a2.sizeState);<NEW_LINE>int maxSize = Math.max(a1.ty... | .mustAssign = new BitSet(maxSize); |
91,708 | // used to initialize a scroll (based on a query)<NEW_LINE>Scroll scroll(String query, BytesArray body, ScrollReader reader) throws IOException {<NEW_LINE>InputStream scroll = client.execute(POST, query, body).body();<NEW_LINE>try {<NEW_LINE>Scroll <MASK><NEW_LINE>if (scrollResult == null) {<NEW_LINE>log.info(String.fo... | scrollResult = reader.read(scroll); |
1,822,222 | public ButtonType close() {<NEW_LINE>if (Objects.nonNull(getPath()))<NEW_LINE>tabService.getClosedPaths().add(Optional<MASK><NEW_LINE>this.select();<NEW_LINE>if (isNew() && !isChanged()) {<NEW_LINE>// if tab is not dirty<NEW_LINE>closeIt();<NEW_LINE>return ButtonType.YES;<NEW_LINE>} else if (isNew()) {<NEW_LINE>// else... | .ofNullable(getPath())); |
1,419,305 | public User authenticate(Authentication auth) throws AuthenticationFailedException {<NEW_LINE>logger.debug("Authentication: {}", auth);<NEW_LINE>String userName = null;<NEW_LINE>String password = null;<NEW_LINE>if (auth instanceof UsernamePasswordAuthentication) {<NEW_LINE>org.structr.web.entity.User user = null;<NEW_L... | [] { userName, password }); |
596,598 | private static JetSqlRow addWindowBoundsSingleRow(JetSqlRow row, Object timeStamp, long windowStart, long windowEnd) {<NEW_LINE>Object[] result = Arrays.copyOf(row.getValues(), row.getFieldCount() + 2);<NEW_LINE>if (timeStamp instanceof Byte) {<NEW_LINE>result[result.length - 2] = (byte) windowStart;<NEW_LINE>result[re... | ] = asTimestampWithTimezone(windowEnd, DEFAULT_ZONE); |
472,158 | public static void vertical5(Kernel1D_S32 kernel, GrayU8 input, GrayI16 output, int skip) {<NEW_LINE>final byte[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int... | indexDst++] = (short) total; |
505,374 | private RichSinkFunction createEsSinkFunction() {<NEW_LINE>// check whether id fields is exists in columns<NEW_LINE>List<String> filedNamesLists = Arrays.asList(fieldNames);<NEW_LINE>if (idFiledNames != null && idFiledNames.size() != 0) {<NEW_LINE>Preconditions.checkState(filedNamesLists.containsAll(idFiledNames), "ela... | > userConfig = Maps.newHashMap(); |
987,426 | public static FluidStack extract(FluidStack stack, Action action, IntSupplier tankCount, Int2ObjectFunction<@NonNull FluidStack> inTankGetter, ExtractFluid extractFluid) {<NEW_LINE><MASK><NEW_LINE>if (tanks == 1) {<NEW_LINE>FluidStack inTank = inTankGetter.get(0);<NEW_LINE>if (inTank.isEmpty() || !inTank.isFluidEqual(s... | int tanks = tankCount.getAsInt(); |
891,654 | public void run() {<NEW_LINE>if (v != null && ((BooleanValue) v).value) {<NEW_LINE>MessageDialog.openInformation(window.getShell(), "Success", ((mode == EDIT_MODE) ? "Edit" : "Add") + " successfully.");<NEW_LINE>ExUtil.asyncRun(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.get... | getSingle(RequestCmd.REMOTE_CONTROL_ALL, param); |
1,817,001 | public TrainingAndTestSet nextPartitioning() {<NEW_LINE>if (fold >= nfold) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>MultipleObjectsBundle training = new MultipleObjectsBundle();<NEW_LINE>MultipleObjectsBundle test = new MultipleObjectsBundle();<NEW_LINE>Random rnd = random.getRandom();<NEW_LINE>int datalen = bundle.... | ] assignment = new boolean[datalen]; |
608,902 | public static Spanned parseSimpleHtml(final Context c, String source, final TextView textView) {<NEW_LINE>source = source.replaceAll("<li>", "\t\u0095 ");<NEW_LINE>source = source.replaceAll("</li>", "<br>");<NEW_LINE>Spanned html = Html.fromHtml(source, Html.FROM_HTML_MODE_COMPACT, source1 -> {<NEW_LINE>LevelListDrawa... | ), empty.getIntrinsicHeight()); |
1,405,125 | protected // 112102 - added method below to fill the cipher to bit size table<NEW_LINE>void loadCipherToBit() {<NEW_LINE>boolean keySizeFromCipherMap = Boolean.valueOf(WebContainer.getWebContainerProperties().getProperty("com.ibm.ws.webcontainer.keysizefromciphermap"<MASK><NEW_LINE>// 721610<NEW_LINE>if (keySizeFromCip... | , "true")).booleanValue(); |
1,038,759 | static PointDouble calcPosOfLineDescriptionText(DrawHandler drawer, String text, int lineNr, int totalLines, RelationPointHandler relationPoints, LineDescriptionEnum enumVal) {<NEW_LINE>double textWidth = calcWidth(drawer, text);<NEW_LINE>double totalBlock = totalLines * drawer.textHeightMax();<NEW_LINE>double previous... | ) + previousLinesBlock + LineDescriptionFacet.LOWER_Y_DIST_TO_LINE); |
748,192 | static CdmTraitReference createCsvTrait(final CsvFormatSettings obj, final CdmCorpusContext ctx) {<NEW_LINE>final CdmTraitReference csvFormatTrait = ctx.getCorpus().makeRef(<MASK><NEW_LINE>csvFormatTrait.setSimpleNamedReference(false);<NEW_LINE>if (obj.isColumnHeaders() != null) {<NEW_LINE>final CdmArgumentDefinition c... | CdmObjectType.TraitRef, "is.partition.format.CSV", true); |
1,562,890 | protected void runProcess(final SettableFuture<T> result, final ProcessBuilder pb) {<NEW_LINE>try {<NEW_LINE>// This will throw IOException if the executable is not found.<NEW_LINE>LOG.log(INFO, "Starting " + name + " as " + pb.command());<NEW_LINE>process = pb.start();<NEW_LINE>} catch (IOException e) {<NEW_LINE>LOG.l... | process.getErrorStream(), result); |
1,596,548 | public int system(Object commandObj) {<NEW_LINE>String cmd = pathToJavaStr(commandObj);<NEW_LINE>LOGGER.fine(() -> "os.system: " + cmd);<NEW_LINE>String[] command;<NEW_LINE>String osProperty = System.getProperty("os.name");<NEW_LINE>if (osProperty != null && osProperty.toLowerCase(Locale.ENGLISH).startsWith("windows"))... | "sh")), "-c", cmd }; |
909,700 | public static org.python.Object __le__(org.python.Object v, org.python.Object w) {<NEW_LINE>org.python.Object result = org.python.types.NotImplementedType.NOT_IMPLEMENTED;<NEW_LINE>boolean reflectedChecked = v.type() != w.type() && ((org.python.types.Bool) org.Python.isinstance(w, v<MASK><NEW_LINE>boolean v_builtin = i... | .type())).value; |
1,523,615 | public final SepContext sep() throws RecognitionException {<NEW_LINE>SepContext _localctx = new SepContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>int _alt;<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(1763);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>_alt = 1;<... | enterRule(_localctx, 322, RULE_sep); |
515,321 | public static ListLogConfigsResponse unmarshall(ListLogConfigsResponse listLogConfigsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listLogConfigsResponse.setRequestId(_ctx.stringValue("ListLogConfigsResponse.RequestId"));<NEW_LINE>listLogConfigsResponse.setCode(_ctx.stringValue("ListLogConfigsResponse.Code"));<NEW_LIN... | (_ctx.booleanValue("ListLogConfigsResponse.Success")); |
384,425 | public String findPrivateKeyPassphrase(final Host bookmark) {<NEW_LINE>if (StringUtils.isEmpty(bookmark.getHostname())) {<NEW_LINE>log.warn("No hostname given");<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Credentials credentials = bookmark.getCredentials();<NEW_LINE>if (StringUtils.isEmpty(credentials.getUsername(... | Local key = credentials.getIdentity(); |
895,527 | private void extractObjects(String s) {<NEW_LINE>int instanceIdx = s.indexOf(INSTANCE_LINK_PREFIX);<NEW_LINE>int classIdx = instanceIdx != -1 ? -1 : s.indexOf(CLASS_LINK_PREFIX);<NEW_LINE>while (instanceIdx != -1 || classIdx != -1) {<NEW_LINE>if (instanceIdx != -1) {<NEW_LINE>s = s.substring(<MASK><NEW_LINE>String inst... | instanceIdx + INSTANCE_LINK_PREFIX.length()); |
908,360 | public static SyncFileNotEnoughSpaceDialogFragment newInstance(OCFile file, long availableDeviceSpace) {<NEW_LINE>Bundle args = new Bundle();<NEW_LINE>SyncFileNotEnoughSpaceDialogFragment frag = new SyncFileNotEnoughSpaceDialogFragment();<NEW_LINE>String properFileSize = DisplayUtils.bytesToHumanReadable(file.getFileLe... | properDiskAvailableSpace = DisplayUtils.bytesToHumanReadable(availableDeviceSpace); |
1,447,106 | private Table buildTable(RestRequest req, ClusterStateResponse state, NodesInfoResponse nodesInfo) {<NEW_LINE>boolean fullId = req.paramAsBoolean("full_id", false);<NEW_LINE>DiscoveryNodes nodes = state<MASK><NEW_LINE>Table table = getTableWithHeader(req);<NEW_LINE>for (DiscoveryNode node : nodes) {<NEW_LINE>NodeInfo i... | .getState().nodes(); |
1,241,006 | default public void swipe(int startx, int starty, int endx, int endy, int duration) {<NEW_LINE>UTILS_LOGGER.debug("Starting swipe...");<NEW_LINE>WebDriver drv = castDriver();<NEW_LINE>UTILS_LOGGER.debug("Getting driver dimension size...");<NEW_LINE>Dimension scrSize = drv.manage().window().getSize();<NEW_LINE>UTILS_LOG... | (Duration.ofMillis(duration)); |
422,895 | public static void doUnloadLibraries(Project proj) {<NEW_LINE>final var file = proj.getLogisimFile();<NEW_LINE>final var canUnload <MASK><NEW_LINE>for (final var lib : file.getLibraries()) {<NEW_LINE>final var message = file.getUnloadLibraryMessage(lib);<NEW_LINE>if (message == null)<NEW_LINE>canUnload.add(lib);<NEW_LI... | = new ArrayList<Library>(); |
1,005,203 | public Predicate addPredicate(String theResourceName, RuntimeSearchParam theSearchParam, List<? extends IQueryParameterType> theList, SearchFilterParser.CompareOperation theOperation, RequestPartitionId theRequestPartitionId) {<NEW_LINE>From<?, ResourceIndexedSearchParamCoords> join = myQueryStack.createJoin(SearchBuil... | getMissing(), join, theRequestPartitionId); |
92,654 | public static void main(String[] args) throws IOException {<NEW_LINE>if (args.length < 2) {<NEW_LINE>System.err.println("TokensRegexMatcher rules file [outFile]");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String rules = args[0];<NEW_LINE>PrintWriter out;<NEW_LINE>if (args.length > 2) {<NEW_LINE>out = new PrintWriter(args[2... | ("Text", "PartOfSpeech", "NamedEntityTag")); |
965,632 | public static UDPAnnounceResponseMessage parse(ByteBuffer data) throws MessageValidationException {<NEW_LINE>if (data.remaining() < UDP_ANNOUNCE_RESPONSE_MIN_MESSAGE_SIZE || (data.remaining() - UDP_ANNOUNCE_RESPONSE_MIN_MESSAGE_SIZE) % 6 != 0) {<NEW_LINE>throw new MessageValidationException("Invalid announce response m... | int incomplete = data.getInt(); |
587,247 | public boolean initialize(final String name, final String version, final String instance) {<NEW_LINE>String serviceName = null;<NEW_LINE>if (!"default".equals(name)) {<NEW_LINE>serviceName = name;<NEW_LINE>}<NEW_LINE>this.databasePath = Settings.DatabasePath.getPrefixedValue(serviceName);<NEW_LINE>databaseUrl = <MASK><... | Settings.ConnectionUrl.getPrefixedValue(serviceName); |
611,639 | V parseResponse(AggregatedHttpResponse response, BodyConverter<V> bodyConverter) throws IOException {<NEW_LINE>// Handle the case where there is no content, as that means we have no resources to release.<NEW_LINE>HttpStatus status = response.status();<NEW_LINE>if (response.content().isEmpty()) {<NEW_LINE>if (status.cod... | headers().path()); |
1,424,651 | public boolean added(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log) throws CancelledException {<NEW_LINE>Memory memory = program.getMemory();<NEW_LINE>AddressSetView validMemorySet = memory.getLoadedAndInitializedAddressSet();<NEW_LINE>AddressSetView searchSet = set.intersect(validMemorySet);... | MemoryBytePatternSearcher searcher = new MemoryBytePatternSearcher("Embedded Media"); |
1,835,000 | final DeleteLaunchProfileResult executeDeleteLaunchProfile(DeleteLaunchProfileRequest deleteLaunchProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLaunchProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | endClientExecution(awsRequestMetrics, request, response); |
1,775,895 | public OAuth2AccessToken deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {<NEW_LINE>String tokenValue = null;<NEW_LINE>String tokenType = null;<NEW_LINE>String refreshToken = null;<NEW_LINE>Long expiresIn = null;<NEW_LINE>Set<String> scope = null;<NEW_LINE>Map<String,... | + (expiresIn * 1000))); |
1,822,114 | public static void main(String[] args) {<NEW_LINE>Node root = null;<NEW_LINE>int val;<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>RedBlackTree redBlackTree = new RedBlackTree();<NEW_LINE>do {<NEW_LINE>System.out.println("OPTIONS \n 1) INSERT VALUES \n 2) Display Tree Structure \n 3) Inorder Traversal \n 4) E... | System.out.println("\n"); |
1,500,934 | private void loadNode1122() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.AuditConditionAcknowledgeEventType_Comment, new QualifiedName(0, "Comment"), new LocalizedText("en", "Comment"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VA... | this.nodeManager.addNode(node); |
1,347,049 | public void run() throws IOException {<NEW_LINE>// Read the entire input stream and write it back<NEW_LINE>try (BufferAllocator allocator = new RootAllocator(Long.MAX_VALUE)) {<NEW_LINE>ArrowStreamReader reader = new ArrowStreamReader(<MASK><NEW_LINE>VectorSchemaRoot root = reader.getVectorSchemaRoot();<NEW_LINE>// loa... | socket.getInputStream(), allocator); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.