idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
337,026 | public void disconnected(ClientDescriptor clientDescriptor) {<NEW_LINE>// cleanup all invalidation requests waiting for a ack from this client<NEW_LINE>Set<Integer> invalidationIds = clientsWaitingForInvalidation.keySet();<NEW_LINE>for (Integer invalidationId : invalidationIds) {<NEW_LINE>clientInvalidated(clientDescri... | , stateService.getStore(storeIdentifier)); |
619,495 | public void initialize(String nodeId, ResourceWatcherService resourceWatcher, IngestService ingestServiceArg) throws IOException {<NEW_LINE>configDatabases.initialize(resourceWatcher);<NEW_LINE>geoipTmpDirectory = geoipTmpBaseDirectory.resolve(nodeId);<NEW_LINE>Files.walkFileTree(geoipTmpDirectory, new FileVisitor<>() ... | "can't delete stale file [" + file + "]", e); |
1,603,821 | public static QueryIncomeTrendResponse unmarshall(QueryIncomeTrendResponse queryIncomeTrendResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryIncomeTrendResponse.setRequestId<MASK><NEW_LINE>queryIncomeTrendResponse.setSuccess(_ctx.booleanValue("QueryIncomeTrendResponse.Success"));<NEW_LINE>queryIncomeTrendResponse.set... | (_ctx.stringValue("QueryIncomeTrendResponse.RequestId")); |
77,277 | private void updateMockExpectConfigs(MockConfig mockConfig, List<MockExpectConfigWithBLOBs> list, SqlSession sqlSession) {<NEW_LINE>int batchCount = 0;<NEW_LINE>for (MockExpectConfigWithBLOBs mockExpect : list) {<NEW_LINE>MockExpectConfig expectInDb = this.findMockExpectConfigByMockConfigIdAndExpectNum(mockConfig.getId... | setMockConfigId(mockConfig.getId()); |
883,670 | protected long[] cleanupPalette(long[] blockStates, ListTag<CompoundTag> palette) {<NEW_LINE>// create mapping of old --> new indices<NEW_LINE>Map<Integer, Integer> allIndices = new HashMap<>(palette.size());<NEW_LINE>for (int i = 0; i < 4096; i++) {<NEW_LINE>int paletteIndex = getPaletteIndex(i, blockStates);<NEW_LINE... | air.putString("Name", "minecraft:air"); |
874,525 | public static int insertPopsForAllParameters(MethodVisitor mv, String desc) {<NEW_LINE>String descSequence = Utils.getParamSequence(desc);<NEW_LINE>if (descSequence == null) {<NEW_LINE>// nothing to do, there are no parameters<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>int count = descSequence.length();<NEW_LINE>for (int d... | " from " + desc + ":" + dpos); |
911,155 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String gatewayName, String connectionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot b... | this.client.mergeContext(context); |
1,659,004 | private void initRestOfGroupDependencies(Class<? extends ITestOrConfiguration> annotationClass) {<NEW_LINE>//<NEW_LINE>// Init groups depended upon<NEW_LINE>//<NEW_LINE>ITestOrConfiguration annotation = getAnnotationFinder().findAnnotation(getConstructorOrMethod(), annotationClass);<NEW_LINE>ITestOrConfiguration classA... | > xmlGroupDependencies = Lists.newArrayList(); |
1,530,518 | private Tuple<String, Map<String, Object>> extractMapping(String type, Map<String, Object> root) throws MapperParsingException {<NEW_LINE>if (root.size() == 0) {<NEW_LINE>if (type != null) {<NEW_LINE>return new Tuple<>(type, root);<NEW_LINE>} else {<NEW_LINE>throw new MapperParsingException("malformed mapping, no type ... | ) root.get(rootName)); |
1,654,238 | public void redraw() {<NEW_LINE>if (!preDraw()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// TimerUtil.timerStart(getClass().getName() + ".redraw()");<NEW_LINE>IMetaMember selectedMember = parent.getSelectedMember();<NEW_LINE>if (selectedMember == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Compilation selectedCompilatio... | double paneHeight = pane.getHeight(); |
1,690,971 | private RunningDevService startContainer(DockerStatusBuildItem dockerStatusBuildItem, String connectionName, DevServicesConfig devServicesConfig, LaunchMode launchMode, boolean useSharedNetwork, Optional<Duration> timeout) {<NEW_LINE>if (!devServicesConfig.enabled) {<NEW_LINE>// explicitly disabled<NEW_LINE>log.debug("... | timeout.ifPresent(redisContainer::withStartupTimeout); |
396,704 | public com.amazonaws.services.codecommit.model.InvalidSystemTagUsageException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.InvalidSystemTagUsageException invalidSystemTagUsageException = new com.amazonaws.services.codecommit.model.InvalidSyst... | JsonToken token = context.getCurrentToken(); |
1,762,681 | public static GetMqSofamqMessageByIdResponse unmarshall(GetMqSofamqMessageByIdResponse getMqSofamqMessageByIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMqSofamqMessageByIdResponse.setRequestId(_ctx.stringValue("GetMqSofamqMessageByIdResponse.RequestId"));<NEW_LINE>getMqSofamqMessageByIdResponse.setResultCode(_ct... | (_ctx.stringValue("GetMqSofamqMessageByIdResponse.Data.InstanceId")); |
657,112 | public boolean install(String displayName, String description, String[] dependencies, String account, String password) {<NEW_LINE>// This needs to be adjusted for a production implementation!<NEW_LINE>//<NEW_LINE>// Determine the JVM used to invoke this installer and use it as<NEW_LINE>// runtime for the service<NEW_LI... | .getAbsolutePath() + "\"")); |
1,302,465 | public void clusterChanged(ClusterChangedEvent changedEvent) {<NEW_LINE>try (ThreadContext.StoredContext stored = contextSupplier.get()) {<NEW_LINE>final RestoreInProgress.Entry prevEntry = restoreInProgress(changedEvent.previousState(), uuid);<NEW_LINE>final RestoreInProgress.Entry newEntry = restoreInProgress(changed... | - RestoreService.failedShards(shards)); |
294,942 | private void completeObjectProperty(CompletionRequest request, Map<String, List<JsElement>> addedItems) {<NEW_LINE>List<String> expChain = ModelUtils.resolveExpressionChain(request.result.getSnapshot(), request.anchor, false);<NEW_LINE>if (!expChain.isEmpty()) {<NEW_LINE>Map<String, List<JsElement>> toAdd = getCompleti... | .getSource().getFileObject(); |
720,955 | ChannelBuffer serialize(final byte server_version) {<NEW_LINE>if (server_version < RegionClient.SERVER_VERSION_095_OR_ABOVE) {<NEW_LINE>throw new UnsupportedOperationException(server_version + " is not supported by " + this.getClass().getName());<NEW_LINE>}<NEW_LINE>MutationProto.Builder incr = MutationProto.newBuilder... | build()).build(); |
356,127 | public int minDistance(String word1, String word2) {<NEW_LINE>int s1 = word1.length();<NEW_LINE>int s2 = word2.length();<NEW_LINE>int[][] dp = new int[s1 + 1][s2 + 1];<NEW_LINE>for (int i = 1; i <= s1; i++) {<NEW_LINE>dp[i][0] = i;<NEW_LINE>}<NEW_LINE>for (int j = 1; j <= s2; j++) {<NEW_LINE>dp[0][j] = j;<NEW_LINE>}<NE... | return dp[s1][s2]; |
355,223 | public CodegenExpression makeCodegen(CodegenClassScope classScope, CodegenMethodScope parent, SAIFFInitializeSymbolWEventType symbols) {<NEW_LINE>CodegenMethod method = parent.makeChild(FilterSpecParam.EPTYPE, this.getClass(), classScope);<NEW_LINE>CodegenExpression get = exprIdentNodeEvaluator.getGetter().eventBeanGet... | , filterOperator.name())); |
264,169 | public C deserialize(JsonParser jsonParser, DeserializationContext ctx) throws IOException, JsonProcessingException {<NEW_LINE>try {<NEW_LINE>if (jsonParser.isExpectedStartArrayToken()) {<NEW_LINE>T[] array = (T[]) jsonParser.readValueAs(TarrayClass);<NEW_LINE>return classC.getConstructor(new Class<?>[] { TarrayClass }... | String message = jsonParser.getValueAsString(); |
324,331 | private void collectHeaders() {<NEW_LINE>mNearMeCount = 0;<NEW_LINE>mHeaders.clear();<NEW_LINE>if (mSearchResultsMode)<NEW_LINE>return;<NEW_LINE>int headerId = 0;<NEW_LINE>int prev = -1;<NEW_LINE>for (CountryItem ci : mItems) {<NEW_LINE>switch(ci.category) {<NEW_LINE>case CountryItem.CATEGORY_NEAR_ME:<NEW_LINE>if (ci.c... | , 1).toUpperCase()); |
1,253,749 | private boolean prepareDataCell(CrosstabCell data, int column, int availableHeight, int xOffset) throws JRException {<NEW_LINE>int rowY = rowYs.get(rowIdx);<NEW_LINE>JRFillCrosstabCell cell = crossCells[data.getRowTotalGroupIndex()][data.getColumnTotalGroupIndex()];<NEW_LINE>JRFillCellContents contents = cell == null ?... | RTL, topEmpty && rowIdx == 0); |
1,437,898 | public static Condition convHas2Condition(HasContainer has, HugeType type, HugeGraph graph) {<NEW_LINE>P<?> p = has.getPredicate();<NEW_LINE>E.checkArgument(p != null, "The predicate of has(%s) is null", has);<NEW_LINE>BiPredicate<?, ?> bp = p.getBiPredicate();<NEW_LINE>Condition condition;<NEW_LINE>if (keyForContainsK... | condition = convContains2Relation(graph, has); |
125,666 | public SkyValue compute(SkyKey skyKey, Environment env) throws PackageLookupFunctionException, InterruptedException {<NEW_LINE>PathPackageLocator pkgLocator = PrecomputedValue.PATH_PACKAGE_LOCATOR.get(env);<NEW_LINE>StarlarkSemantics semantics = PrecomputedValue.STARLARK_SEMANTICS.get(env);<NEW_LINE>PackageIdentifier p... | getValue(IgnoredPackagePrefixesValue.key()); |
1,173,666 | public void update() {<NEW_LINE>MinecraftServer server = mod.getServer();<NEW_LINE>if (server == null) {<NEW_LINE>this.online = false;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ServerPlayerEntity player = server.getPlayerManager().getPlayer(uuid);<NEW_LINE>if (player == null) {<NEW_LINE>this.online = false;<NEW_LINE>return;... | player.getStatusEffect(StatusEffects.INVISIBILITY); |
1,397,521 | public ManagedDataSource build(MetricRegistry metricRegistry, String name) {<NEW_LINE>final Properties dbProperties = new Properties();<NEW_LINE>properties.forEach(dbProperties::setProperty);<NEW_LINE>final PoolProperties poolConfig = new PoolProperties();<NEW_LINE>poolConfig.setAbandonWhenPercentageFull(abandonWhenPer... | validatorClassName.ifPresent(poolConfig::setValidatorClassName); |
682,091 | /*<NEW_LINE>* attach and install edges between clusters.<NEW_LINE>* essentially, class2() for interclust edges.<NEW_LINE>*/<NEW_LINE>@Unused<NEW_LINE>@Reviewed(when = "15/11/2020")<NEW_LINE>@Original(version = "2.38.0", path = "lib/dotgen/cluster.c", name = "interclexp", key = "6g2m2y44x66lajznvnon2gubv", definition = ... | , ED_to_virt(prev), false); |
1,305,702 | static void mergeIntoSource(Map<String, Object> source, Map<String, Object> mappingUpdate, List<String> path) {<NEW_LINE>for (Map.Entry<String, Object> updateEntry : mappingUpdate.entrySet()) {<NEW_LINE>String key = updateEntry.getKey();<NEW_LINE>Object updateValue = updateEntry.getValue();<NEW_LINE>if (source.contains... | "=" + sourceValue + " with " + updateValue); |
514,038 | @Path("/{queryname}/drillacross")<NEW_LINE>public SaikuQuery drillacross(@PathParam("queryname") String queryName, @FormParam("position") String position, @FormParam("drill") String returns) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("TRACK\t" + "\t/query/" + queryName + "/drillacross\tPOST");<NEW_LINE>}... | "Cannot execute query (" + queryName + ")", e); |
29,241 | private void loadNode249() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_TotalRequestCount, new QualifiedName(0, "TotalRequestCount"), new LocalizedText("en", "TotalRequestCount"), LocalizedText.NULL_VALUE, UInteger.valu... | .expanded(), true)); |
1,325,026 | private Formula compileBranchFormula(ControlFlowNode node, List<ControlFlowNode> cutoffNodes, List<String> quantifiedMetavars) {<NEW_LINE>quantifiedMetavars = shallowCopy(quantifiedMetavars);<NEW_LINE>Formula formula;<NEW_LINE><MASK><NEW_LINE>int line = statement.getPosition().getLine();<NEW_LINE>formula = new Branch(s... | CtElement statement = node.getStatement(); |
1,746,810 | public CategoricalDistribution jointDistribution(Proposition... propositions) {<NEW_LINE>ProbabilityTable d = null;<NEW_LINE>final Proposition <MASK><NEW_LINE>final LinkedHashSet<RandomVariable> vars = new LinkedHashSet<RandomVariable>(conjProp.getUnboundScope());<NEW_LINE>if (vars.size() > 0) {<NEW_LINE>RandomVariable... | conjProp = ProbUtil.constructConjunction(propositions); |
858,102 | public void exitIf_switchport(If_switchportContext ctx) {<NEW_LINE>if (ctx.NO() != null) {<NEW_LINE>for (Interface iface : _currentInterfaces) {<NEW_LINE>iface.setSwitchportMode(SwitchportMode.NONE);<NEW_LINE>iface.setSwitchport(false);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>for (Interface iface : _currentInterfaces) {<... | .getCf().getDefaultSwitchportMode(); |
1,545,140 | static void runColumnRebuild(RebuildColumnCommandArgs params, RebuildColumnBase ri) throws IOException, ServerConfigurationException, JsonException {<NEW_LINE>String rootDirectory = params.tablePath + Files.SEPARATOR + ".." + Files.SEPARATOR + "..";<NEW_LINE>final Properties properties = new Properties();<NEW_LINE>fina... | tablePath, configuration.getCairoConfiguration()); |
445,181 | public void marshalConfigToProperties() {<NEW_LINE>if (DEBUG_LOGGING) {<NEW_LINE>logger.debug("marshalConfigToProperties({})", profileName);<NEW_LINE>}<NEW_LINE>loadedProps.put(KEY_LAST_PROFILE, profileName);<NEW_LINE>putProperty(loadedProps, KEY_SOURCE_LOCATIONS, StringUtil.listToText(sourceLocations, S_COMMA));<NEW_L... | , Boolean.toString(hideInterfaces)); |
801,347 | private void createGetSizeMethod(ClassWriter cw, Map<String, BField> fields, String className) {<NEW_LINE>MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, "size", "()I", null, null);<NEW_LINE>mv.visitCode();<NEW_LINE>int sizeVarIndex = 1;<NEW_LINE>mv.visitVarInsn(ALOAD, 0);<NEW_LINE>mv.visitMethodInsn(INVOKESPECIAL, MAP_V... | mv.visitIincInsn(sizeVarIndex, 1); |
1,004,581 | private RetCode doValidation(final Reporter reporter, final List<File> files) throws IOException, ProcessingException {<NEW_LINE>final File <MASK><NEW_LINE>final String uri = schemaFile.toURI().normalize().toString();<NEW_LINE>JsonNode node;<NEW_LINE>node = MAPPER.readTree(schemaFile);<NEW_LINE>if (!syntaxValidator.sch... | schemaFile = files.remove(0); |
1,020,756 | public static Tradable fromProto(protobuf.BsqSwapSellerAsMakerTrade bsqSwapSellerAsMakerTrade) {<NEW_LINE>var proto = bsqSwapSellerAsMakerTrade.getBsqSwapTrade();<NEW_LINE>var uid = ProtoUtil.stringOrNullFromProto(proto.getUid());<NEW_LINE>if (uid == null) {<NEW_LINE>uid = UUID<MASK><NEW_LINE>}<NEW_LINE>return new BsqS... | .randomUUID().toString(); |
138,864 | private boolean isPackage(String result) {<NEW_LINE>int classIdx = getClassIndex(result);<NEW_LINE>if (classIdx >= 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String resourceName = result.<MASK><NEW_LINE>boolean isPackage = true;<NEW_LINE>InputStream is = getResource(resourceName);<NEW_LINE>if (// cannot just test ... | replace('.', '/') + ".class"; |
1,212,765 | public okhttp3.Call sdkGenLanguagesGetCall(final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/sdk-gen/languages";<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NEW_LINE>List<Pair> local... | localVarHeaderParams.put("Content-Type", localVarContentType); |
445,236 | public String cloneTemplate(Template templateIn) {<NEW_LINE>Template newOne = templateIn.cloneNewTemplate(templateIn);<NEW_LINE>String name = BundleUtil.getStringFromBundle("page.copy") + " " + templateIn.getName();<NEW_LINE>newOne.setName(name);<NEW_LINE>newOne.setUsageCount(new Long(0));<NEW_LINE>newOne.setCreateTime... | getTemplates().add(newOne); |
1,116,306 | private DeploymentRoutingStatus deploymentStatus(String upstreamName) {<NEW_LINE>Instant changedAt = clock.instant();<NEW_LINE>Path path = deploymentStatusPath(upstreamName);<NEW_LINE>Optional<byte[]> <MASK><NEW_LINE>if (data.isEmpty()) {<NEW_LINE>return new DeploymentRoutingStatus(RoutingStatus.in, "", "", changedAt);... | data = curator.getData(path); |
1,036,211 | public void fetchPlaylists() {<NEW_LINE>if (DatabaseHelper.get().getLoggedOpsCount() == 0) {<NEW_LINE>Log.d(TAG, "Hatchet sync - fetching playlists");<NEW_LINE>User.getSelf().done(new DoneCallback<User>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onDone(User user) {<NEW_LINE>String requestId = InfoSystem.get(... | ).resolvePlaylists(user, true); |
1,430,653 | public void handleMessage(ReleaseMessage message, String channel) {<NEW_LINE>logger.info("message received - channel: {}, message: {}", channel, message);<NEW_LINE>String releaseMessage = message.getMessage();<NEW_LINE>if (!Topics.APOLLO_RELEASE_TOPIC.equals(channel) || Strings.isNullOrEmpty(releaseMessage)) {<NEW_LINE... | namespace = keys.get(2); |
130,742 | public Path chooseTemporaryMountPoint(VaultSettings vaultSettings, Path parentDir) {<NEW_LINE>String basename = vaultSettings<MASK><NEW_LINE>// regular<NEW_LINE>Path mountPoint = parentDir.resolve(basename);<NEW_LINE>if (Files.notExists(mountPoint)) {<NEW_LINE>return mountPoint;<NEW_LINE>}<NEW_LINE>// with id<NEW_LINE>... | .mountName().get(); |
1,314,119 | boolean unloadConnector(BlockPos pos, @Nullable IImmersiveConnectable iicToRemove) {<NEW_LINE>++version;<NEW_LINE>IImmersiveConnectable <MASK><NEW_LINE>if (iicToRemove != existingIIC) {<NEW_LINE>// Out of order case, same as in loadConnector<NEW_LINE>WireLogger.logger.info("Tried to remove {} at {} from {}, skipping", ... | existingIIC = connectors.get(pos); |
1,104,320 | public void voteUpComment(final RequestContext context) {<NEW_LINE><MASK><NEW_LINE>final JSONObject requestJSONObject = context.requestJSON();<NEW_LINE>final String dataId = requestJSONObject.optString(Common.DATA_ID);<NEW_LINE>final JSONObject currentUser = Sessions.getUser();<NEW_LINE>final String userId = currentUse... | context.renderJSON(StatusCodes.ERR); |
1,014,095 | public Mono<ClientResponse> filter(ClientRequest clientRequest, ExchangeFunction next) {<NEW_LINE><MASK><NEW_LINE>String serviceId = originalUrl.getHost();<NEW_LINE>if (serviceId == null) {<NEW_LINE>String message = String.format("Request URI does not contain a valid hostname: %s", originalUrl.toString());<NEW_LINE>if ... | URI originalUrl = clientRequest.url(); |
273,117 | public final void builtInTypeSpec(boolean addImagNode) throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST builtInTypeSpec_AST = null;<NEW_LINE>AST bt_AST = null;<NEW_LINE>Token first = LT(1);<NEW_LINE>builtInType();<NEW_LINE>bt_AST = ... | astFactory.addASTChild(currentAST, returnAST); |
1,539,468 | protected Map<String, byte[]> loadClasses() throws IOException {<NEW_LINE>// iterate war entries<NEW_LINE>ByteArrayOutputStream out = new ByteArrayOutputStream();<NEW_LINE>byte[] buffer = new byte[8192];<NEW_LINE>EntryLoader loader = getEntryLoader();<NEW_LINE>ZipInputStream zis = new ZipInputStream(new FileInputStream... | String name = entry.getName(); |
896,417 | protected StackManipulation toStackManipulation(MethodDescription instrumentedMethod, MethodDescription invokedMethod, TargetHandler.Resolved targetHandler) {<NEW_LINE>List<ArgumentLoader> argumentLoaders = new ArrayList<ArgumentLoader>();<NEW_LINE>for (ArgumentLoader.ArgumentProvider argumentProvider : argumentProvide... | (), assigner, typing)); |
509,982 | private synchronized void initCygwinPrefix() {<NEW_LINE>if (cygwinPrefix != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// NOI18N<NEW_LINE>cygwinPrefix = "/cygdrive/";<NEW_LINE>final Shell shell = WindowsSupport.getInstance().getActiveShell();<NEW_LINE>if (shell == null || shell.type != ShellType.CYGWIN) {<NEW_LINE>re... | String output = res.getOutputString(); |
1,098,273 | public Response makeResponse(FitNesseContext context, Request request) throws Exception {<NEW_LINE>String resource = request.getResource();<NEW_LINE>PageCrawler pageCrawler = context.getRootPage().getPageCrawler();<NEW_LINE>WikiPagePath path = PathParser.parse(resource);<NEW_LINE>WikiPage page = pageCrawler.getPage(pat... | secondVersionPage = page.getVersion(secondVersion); |
176,225 | private void handleNewCall(String itemName, Class<? extends Item> itemType, NewChannelEvent event, AsteriskBindingConfig config) {<NEW_LINE>if (event.getCallerIdNum() == null || event.getExten() == null) {<NEW_LINE>logger.debug("calleridnum or exten is null -> handle new call aborted!");<NEW_LINE>return;<NEW_LINE>}<NEW... | event.getUniqueId(), call); |
511,800 | public void paint(Graphics2D g, int x, int y, int w, int h) {<NEW_LINE>float scale = (float) h / (float) mMax;<NEW_LINE>g.setColor(Color.BLACK);<NEW_LINE>int by1 = h - (int) (y + minimum * scale);<NEW_LINE>int by2 = h - (int) (y + maximum * scale);<NEW_LINE>g.drawLine(x, by1, x + w, by1);<NEW_LINE>g.drawLine(x, by2, x ... | ) (y + Q3 * scale); |
1,132,690 | public void processImage(int sourceID, long frameID, final BufferedImage buffered, ImageBase input) {<NEW_LINE>System.out.flush();<NEW_LINE>synchronized (bufferedImageLock) {<NEW_LINE>original = ConvertBufferedImage.checkCopy(buffered, original);<NEW_LINE>work = ConvertBufferedImage.checkDeclare(buffered, work);<NEW_LI... | grow().setTo(d); |
1,758,997 | public void installFocusable(final JComponent comp, final AnAction action, final int prevKeyCode, final int nextKeyCode, final boolean focusListOnLeft) {<NEW_LINE>comp.setFocusable(true);<NEW_LINE>comp.setFocusTraversalKeysEnabled(true);<NEW_LINE>comp.addKeyListener(new KeyAdapter() {<NEW_LINE><NEW_LINE>@Override<NEW_L... | getComponent(), JList.class); |
846,731 | protected void handle(final APIAttachBackupStorageToZoneMsg msg) {<NEW_LINE>final APIAttachBackupStorageToZoneEvent evt = new APIAttachBackupStorageToZoneEvent(msg.getId());<NEW_LINE>final BackupStorageVO svo = dbf.findByUuid(msg.getBackupStorageUuid(), BackupStorageVO.class);<NEW_LINE>String errStr = extpEmitter.preAt... | , self.getName())); |
348,191 | private void loadJweConfigOptions(Map<String, Object> props) {<NEW_LINE>keyManagementKeyAlgorithm = configUtils.getConfigAttribute(props, JwtUtils.CFG_KEY_KEY_MANAGEMENT_KEY_ALG);<NEW_LINE>contentEncryptionAlgorithm = configUtils.<MASK><NEW_LINE>keyManagementKeyAlias = configUtils.getConfigAttribute(props, JwtUtils.CFG... | getConfigAttribute(props, JwtUtils.CFG_KEY_CONTENT_ENCRYPTION_ALG); |
1,110,775 | private void init(AssetManager assetManager, int nbShadowMaps, int shadowMapSize) {<NEW_LINE>this.postshadowMat = new Material(assetManager, "Common/MatDefs/Shadow/PostShadow.j3md");<NEW_LINE>shadowFB = new FrameBuffer[nbShadowMaps];<NEW_LINE>shadowMaps = new Texture2D[nbShadowMaps];<NEW_LINE>dispPic = new Picture[nbSh... | shadowMapSize, shadowMapSize, Format.RGBA8); |
1,209,869 | public void marshall(LoadBalancerTlsCertificate loadBalancerTlsCertificate, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (loadBalancerTlsCertificate == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(loadBa... | loadBalancerTlsCertificate.getDomainName(), DOMAINNAME_BINDING); |
1,067,675 | public void removeGroupMembers(String groupId, List<String> members, final IUIKitCallback<List<String>> callBack) {<NEW_LINE>if (members == null || members.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>V2TIMManager.getGroupManager().kickGroupMember(groupId, members, "", new V2TIMValueCallback<List<V2TIMGroupMembe... | dels = new ArrayList<>(); |
806,544 | private boolean checkCoverage(double keyStart, double keyEnd, TreeMap<Double, Double> range) {<NEW_LINE>// range covered<NEW_LINE>AtomicReference<Double> previous = new AtomicReference<>();<NEW_LINE>AtomicReference<Double> toCheckStart <MASK><NEW_LINE>AtomicBoolean covered = new AtomicBoolean(true);<NEW_LINE>for (Map.E... | = new AtomicReference<>(keyStart); |
1,480,194 | public void processMessage(final WebSocketMessage webSocketData) {<NEW_LINE>setDoTransactionNotifications(false);<NEW_LINE>final String mode = webSocketData.getNodeDataStringValue("mode");<NEW_LINE>final String favoritableId = webSocketData.getNodeDataStringValue("id");<NEW_LINE>final <MASK><NEW_LINE>if (mode == null) ... | Principal currentUser = webSocket.getCurrentUser(); |
305,057 | private JPanel initBuckCellSection() {<NEW_LINE>JPanel panel = new JPanel(new BorderLayout());<NEW_LINE>panel.setBorder(IdeBorderFactory.createTitledBorder("Cells", true));<NEW_LINE>cellTableModel = new ListTableModel<>(CELL_NAME_COLUMN, ROOT_COLUMN, BUILD_FILENAME_COLUMN);<NEW_LINE>cellTableModel.setItems(buckCellSett... | add(label, BorderLayout.NORTH); |
424,899 | public final void onSubscribe(Subscription s) {<NEW_LINE>if (SubscriptionHelper.validate(this.upstream, s)) {<NEW_LINE>this.upstream = s;<NEW_LINE>if (s instanceof QueueSubscription) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>QueueSubscription<Nono> qs = (QueueSubscription<Nono>) s;<NEW_LINE>int m = qs.requestF... | SpscLinkedArrayQueue<>(bufferSize()); |
491,678 | public void decode(SearchHit hit, Supplier<Object> getter, BlockBuilder output) {<NEW_LINE><MASK><NEW_LINE>if (value == null) {<NEW_LINE>output.appendNull();<NEW_LINE>} else if (value instanceof Boolean) {<NEW_LINE>BOOLEAN.writeBoolean(output, (Boolean) value);<NEW_LINE>} else if (value instanceof String) {<NEW_LINE>if... | Object value = getter.get(); |
1,211,064 | public boolean replace(String key, String oldValue, String newValue) {<NEW_LINE>Assert.notNull(key, KEY_MUST_NOT_BE_NULL);<NEW_LINE>Assert.notNull(oldValue, "'oldValue' must not be null.");<NEW_LINE><MASK><NEW_LINE>synchronized (this.updateMap) {<NEW_LINE>Stat currentStat = new Stat();<NEW_LINE>try {<NEW_LINE>byte[] by... | Assert.notNull(newValue, "'newValue' must not be null."); |
1,328,515 | private long pointCount(PointValues.PointTree pointTree, BiFunction<byte[], byte[], Relation> nodeComparator, Predicate<byte[]> leafComparator) throws IOException {<NEW_LINE>final int[] matchingNodeCount = { 0 };<NEW_LINE>// create a custom IntersectVisitor that records the number of leafNodes that matched<NEW_LINE>fin... | nodeComparator.apply(minPackedValue, maxPackedValue); |
365,794 | private void openFile() {<NEW_LINE>if (documentChanged) {<NEW_LINE>int ret = OptionPane.showConfirmDialog(parent, S.get("AsmPanDocumentChangedSave"), parent.getParentTitle(), OptionPane.YES_NO_OPTION);<NEW_LINE>if (ret == OptionPane.YES_OPTION) {<NEW_LINE>if (textFile == null) {<NEW_LINE>OptionPane.showMessageDialog(pa... | (st).append("\n"); |
1,320,694 | private ClientCallback<ClientExchange> createReceiveCallback(final TransportRequest transportRequest, final URI url, final HttpHeaders headers, final XhrClientSockJsSession sockJsSession, final SettableListenableFuture<WebSocketSession> connectFuture) {<NEW_LINE>return new ClientCallback<>() {<NEW_LINE><NEW_LINE>@Overr... | url, headers, sockJsSession, connectFuture); |
305,131 | private BIRNode.BIRFunction generateDefaultFunction(List<PackageID> imprtMods, BIRNode.BIRPackage pkg, String funcName, String initName) {<NEW_LINE>nextId = -1;<NEW_LINE>nextVarId = -1;<NEW_LINE>BIRNode.BIRVariableDcl retVar = new BIRNode.BIRVariableDcl(null, errorOrNilType, new Name("%ret"), VarScope.FUNCTION, VarKind... | currentInitFuncName = MethodGenUtils.encodeModuleSpecialFuncName(initName); |
708,006 | public String copyMail(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) {<NEW_LINE>String colName = mField.getColumnName();<NEW_LINE>log.info(colName + "=" + value);<NEW_LINE>if (value == null)<NEW_LINE>return "";<NEW_LINE>Integer R_MailText_ID = (Integer) value;<NEW_LINE>MMailText mailtext =... | mTab.setValue("Result", txt); |
912,650 | final DeleteApnsSandboxChannelResult executeDeleteApnsSandboxChannel(DeleteApnsSandboxChannelRequest deleteApnsSandboxChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApnsSandboxChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
432,446 | public static <T> void pdist(T[] x, double[][] d, Distance<T> distance) {<NEW_LINE>int n = x.length;<NEW_LINE>if (d[0].length < n) {<NEW_LINE>IntStream.range(0, n).parallel().forEach(i -> {<NEW_LINE>T xi = x[i];<NEW_LINE>double[] di = d[i];<NEW_LINE>for (int j = 0; j < i; j++) {<NEW_LINE>di[j] = distance.d(xi, x[j]);<N... | [] di = d[i]; |
1,155,257 | public Tuple3<Boolean, Double, Map<String, String>>[] detect(MTable series, boolean detectLast) throws Exception {<NEW_LINE>double[] data = OutlierUtil.getNumericArray(series, selectedCol);<NEW_LINE>int length = data.length;<NEW_LINE>List<Double> listData = new ArrayList<>(length);<NEW_LINE>for (double v : data) {<NEW_... | outlier_score = Math.abs(outlier_score); |
282,187 | private void internalPutIfAbsent(final byte[] key, final byte[] value, final CompletableFuture<byte[]> future, final int retriesLeft, final Errors lastCause) {<NEW_LINE>final Region region = this.pdClient.findRegionByKey(key, ErrorsHelper.isInvalidEpoch(lastCause));<NEW_LINE>final RegionEngine regionEngine = getRegionE... | region.getId(), true); |
1,821,690 | private CassandraOutputTableHandle createTable(ConnectorTableMetadata tableMetadata) {<NEW_LINE>ImmutableList.Builder<String> columnNames = ImmutableList.builder();<NEW_LINE>ImmutableList.Builder<Type<MASK><NEW_LINE>ImmutableList.Builder<ExtraColumnMetadata> columnExtra = ImmutableList.builder();<NEW_LINE>columnExtra.a... | > columnTypes = ImmutableList.builder(); |
507,296 | private void chooseJITLog() {<NEW_LINE>FileChooser fc = new FileChooser();<NEW_LINE>fc.setTitle("Choose JIT log file");<NEW_LINE>String osNameProperty = System.getProperty("os.name");<NEW_LINE>// don't use ExtensionFilter on OSX due to JavaFX2 missing combo bug<NEW_LINE>if (osNameProperty != null && !osNameProperty.toL... | result = fc.showOpenDialog(stage); |
1,854,168 | public DataSource createDataSource(Configuration dbConfig) throws PropertyVetoException, SQLException {<NEW_LINE>HikariDataSource ds = new HikariDataSource();<NEW_LINE>ds.setDriverClassName(dbConfig.getProperty("db.driver"));<NEW_LINE>ds.setJdbcUrl(dbConfig.getProperty("db.url"));<NEW_LINE>ds.setUsername(dbConfig.getPr... | getProperty("db.pool.loginTimeout", "0"))); |
1,371,075 | public void analyze(Analyzer analyzer) throws UserException {<NEW_LINE>super.analyze(analyzer);<NEW_LINE>for (LockTable lockTable : lockTables) {<NEW_LINE>String dbName = lockTable.getTableName().getDb();<NEW_LINE>String tableName = lockTable.getTableName().getTbl();<NEW_LINE>if (Strings.isNullOrEmpty(dbName)) {<NEW_LI... | getCatalog().getDbOrAnalysisException(dbName); |
970,512 | public static // Generate a diagram based on a graphviz DOT diagram description.<NEW_LINE>InputStream createDiagram(String dot) {<NEW_LINE>if (dot == null || dot.isEmpty()) {<NEW_LINE>throw new NullPointerException("syntax: no graphviz definition provided");<NEW_LINE>}<NEW_LINE>// Adds a watermark to the dot graphic.<N... | = new ArrayList<String>(); |
1,717,001 | private void addCurrentRequests() {<NEW_LINE>addParagraphTitle(getString("Requetes_en_cours"), "hourglass.png");<NEW_LINE>final Map<JavaInformations, List<CounterRequestContext>> currentRequests = getRemoteCollector().getCurrentRequests();<NEW_LINE>if (currentRequests.isEmpty()) {<NEW_LINE>add(new JLabel(' ' + getStrin... | (0, 1), javaInformations); |
1,194,812 | public NetworkFirewallUnexpectedGatewayRoutesViolation unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>NetworkFirewallUnexpectedGatewayRoutesViolation networkFirewallUnexpectedGatewayRoutesViolation = new NetworkFirewallUnexpectedGatewayRoutesViolation();<NEW_LINE>int originalDepth = context.get... | class).unmarshall(context)); |
1,491,666 | private final void openStandardInfoWindow(final ActionEvent e) {<NEW_LINE>final String actionCommand = e.getActionCommand();<NEW_LINE>if (Check.isEmpty(actionCommand, true)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final IUserRolePermissions role = getUserRolePermissions();<NEW_LINE>final JFrame parentFrame = getParentFr... | InfoBuilder.showBPartner(parentFrame, windowNo); |
81,940 | private void updateHeaders() {<NEW_LINE>Bundle b = new Bundle();<NEW_LINE>int screenNo = 0;<NEW_LINE>for (List<Pair<Pair<Scope, Dimension>, Formatter.Format>> screen : screens) {<NEW_LINE>int itemNo = 0;<NEW_LINE>String itemPrefix = screenNo + ".";<NEW_LINE>for (Pair<Pair<Scope, Dimension>, Formatter.Format> item : scr... | Wear.RunInfo.SCROLL, 5); |
316,214 | private Intent createOpenFileIntent(OCFile file) {<NEW_LINE><MASK><NEW_LINE>Uri fileUri = getFileUri(file, MainApp.getAppContext().getResources().getStringArray(R.array.ms_office_extensions));<NEW_LINE>Intent openFileWithIntent = null;<NEW_LINE>int lastIndexOfDot = storagePath.lastIndexOf('.');<NEW_LINE>if (lastIndexOf... | String storagePath = file.getStoragePath(); |
1,638,130 | // Invokes the 9 relational predicates of Line vs Line.<NEW_LINE>private boolean lineLinePredicates_(int half_edge, int id_a, int id_b) {<NEW_LINE>boolean bRelationKnown = true;<NEW_LINE>if (m_perform_predicates[MatrixPredicate.InteriorInterior]) {<NEW_LINE>interiorLineInteriorLine_(half_edge, id_a, id_b, m_cluster_ind... | bRelationKnown &= isPredicateKnown_(MatrixPredicate.InteriorBoundary); |
1,196,918 | protected Result doInBackground(byte[]... params) {<NEW_LINE>final QRCodeReaderView view = viewRef.get();<NEW_LINE>if (view == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final PlanarYUVLuminanceSource source = view.mCameraManager.buildLuminanceSource(params[0], view.mPreviewWidth, view.mPreviewHeight);<NEW_LINE>... | BinaryBitmap bitmap = new BinaryBitmap(hybBin); |
551,651 | private void loadNode67() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfiguration_CertificateGroups_DefaultApplicationGroup_TrustList_Read_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArguments"), ... | this.nodeManager.addNode(node); |
1,327,288 | protected void populateShell() {<NEW_LINE>shell.setText(title);<NEW_LINE>shell.setLayout(formLayout(10, 10, 15));<NEW_LINE>Label iconLabel = new Label(shell, SWT.ICON);<NEW_LINE>iconLabel.setLayoutData(formData(new FormAttachment(0), null, new FormAttachment(0), null));<NEW_LINE>iconLabel.setImage(shell.getImage());<NE... | SWT.BOTTOM), null)); |
699,097 | private void loadData(@NonNull final KPIDataResult.Builder data, @NonNull final TimeRange timeRange) {<NEW_LINE>logger.trace("Loading data for {}", timeRange);<NEW_LINE>//<NEW_LINE>// Create query evaluation context<NEW_LINE>final Evaluatee evalCtx = // Fallback to user context<NEW_LINE>Evaluatees.mapBuilder().put("Mai... | kpi + "\n Query: " + esQueryParsed, e); |
1,551,786 | void populateCommonInterfaceProperties(InterfacesInterface vsIface, org.batfish.datamodel.Interface viIface) {<NEW_LINE>// addresses<NEW_LINE>if (!vsIface.getAddresses().isEmpty()) {<NEW_LINE>List<ConcreteInterfaceAddress> addresses = vsIface.getAddresses();<NEW_LINE>ImmutableList.Builder<ConcreteInterfaceAddress> owne... | ().toIpSpace())); |
562,690 | private void processRows(IncrementalIndex index, BitmapFactory bitmapFactory, List<IncrementalIndex.DimensionDesc> dimensions) {<NEW_LINE>int rowNum = 0;<NEW_LINE>for (IncrementalIndexRow row : index.getFacts().persistIterable()) {<NEW_LINE>final Object[] dims = row.getDims();<NEW_LINE>for (IncrementalIndex.DimensionDe... | MutableBitmap[] bitmapIndexes = accessor.invertedIndexes; |
889,739 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.ws.http.channel.internal.outbound.HttpOutputStream#writeFile(java.nio.channels.FileChannel)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>@FFDCIgnore({ IOException.class })<NEW_LINE>public void writeFile(FileChannel fc) throws IOException {<NEW_LINE>if (TraceComp... | getBufferManager().allocateFileChannelBuffer(fc); |
691,997 | public void postProcessFile(File file, String fileType) {<NEW_LINE>if (file == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String haskellPostProcessFile = System.getenv("HASKELL_POST_PROCESS_FILE");<NEW_LINE>if (StringUtils.isEmpty(haskellPostProcessFile)) {<NEW_LINE>// skip if HASKELL_POST_PROCESS_FILE env variable i... | command, e.getMessage()); |
1,778,455 | private void add(String attributeName, ImmutableList.Builder<String> valuePath, TabularData tds) {<NEW_LINE>// @see TabularData#keySet JavaDoc:<NEW_LINE>// "Set<List<?>>" but is declared as a {@code Set<?>} for<NEW_LINE>// compatibility reasons. The returned set can be used to iterate<NEW_LINE>// over the keys."<NEW_LI... | ('.').join(key); |
920,120 | public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>assert getArguments() != null;<NEW_LINE>switch(Objects.requireNonNull(getArguments().getString(USourceSkill.EXTRA_INFO_TYPE))) {<NEW_LINE>case USourceSkill.INFO_TYPE_CONDITION:<NEW_L... | layout.skill_usource__calendar_event, container, false); |
942,082 | public Packet nextFrame() throws IOException {<NEW_LINE>try {<NEW_LINE>Future<DashMP4DemuxerTrack> curFrag = fragments.get(curFragNo);<NEW_LINE>MP4Packet nextFrame = null;<NEW_LINE>if (curFrag != null) {<NEW_LINE>nextFrame = <MASK><NEW_LINE>if (nextFrame == null) {<NEW_LINE>getCurFrag(curFrag).close();<NEW_LINE>fragmen... | getCurFrag(curFrag).nextFrame(); |
101,182 | public void run(String command, String[] args, Context context, PrintStream out) throws DDRInteractiveCommandException {<NEW_LINE>if (0 != args.length) {<NEW_LINE>String argument = args[0];<NEW_LINE>if (argument.equalsIgnoreCase("help")) {<NEW_LINE>help(out);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>try {<NEW_LI... | > waitingThreads = monitor.getWaitingThreads(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.