idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,773,797 | private boolean isItOKToAddCertToTrustStore(X509Certificate c) {<NEW_LINE>if (!interactive) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>String result = null;<NEW_LINE>LineReader lineReader = null;<NEW_LINE>try {<NEW_LINE>lineReader = LineReaderBuilder.builder().terminal(new DumbTerminal(System.in, System.out)).build();... | Level.WARNING, "Error closing terminal", ioe); |
98,160 | BlockEntryStreamMerger<KEY, VALUE> startMerge() {<NEW_LINE>List<BlockEntryCursor<KEY, VALUE>> remainingParts <MASK><NEW_LINE>while (remainingParts.size() > MERGE_FACTOR) {<NEW_LINE>// Build one "level" of mergers, each merger in this level merging "merge factor" number of streams<NEW_LINE>List<BlockEntryCursor<KEY, VAL... | = new ArrayList<>(parts); |
679,119 | public static void main(String[] args) {<NEW_LINE>Exercise26_LazyDeleteLinearProbing lazyDeleteLinearProbing = new Exercise26_LazyDeleteLinearProbing();<NEW_LINE>LinearProbingHashTableLazyDelete<Integer, Integer> linearProbingHashTableLazyDelete = lazyDeleteLinearProbing.new LinearProbingHashTableLazyDelete<>(16);<NEW_... | linearProbingHashTableLazyDelete.put(i, i); |
503,536 | private void createVmFlowChainBuilder() throws InstantiationException, IllegalAccessException, ClassNotFoundException {<NEW_LINE>createVmFlowBuilder = FlowChainBuilder.newBuilder().setFlowClassNames(createVmWorkFlowElements).construct();<NEW_LINE>stopVmFlowBuilder = FlowChainBuilder.newBuilder().setFlowClassNames(stopV... | setFlowClassNames(expungeVmWorkFlowElements).construct(); |
167,081 | public com.amazonaws.services.codedeploy.model.DeploymentGroupNameRequiredException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codedeploy.model.DeploymentGroupNameRequiredException deploymentGroupNameRequiredException = new com.amazonaws.services.codedeploy... | String currentParentElement = context.getCurrentParentElement(); |
1,460,864 | public OperationResult execute(final MessageFrame frame, final EVM evm) {<NEW_LINE>try {<NEW_LINE>final Address address = Words.toAddress(frame.popStackItem());<NEW_LINE>final boolean accountIsWarm = frame.warmUpAddress(address) || gasCalculator().isPrecompile(address);<NEW_LINE>final Optional<Gas> optionalCost = Optio... | frame.pushStackItem(UInt256.ZERO); |
851,972 | public static GetTextLogoListResponse unmarshall(GetTextLogoListResponse getTextLogoListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getTextLogoListResponse.setRequestId(_ctx.stringValue("GetTextLogoListResponse.RequestId"));<NEW_LINE>getTextLogoListResponse.setSuccess(_ctx.booleanValue("GetTextLogoListResponse.Succe... | = new ArrayList<LogosItem>(); |
1,578,436 | public void propertyChange(PropertyChangeEvent evt) {<NEW_LINE>if (evt.getPropertyName().equals(WorkspaceInformation.EVENT_RENAME)) {<NEW_LINE>final WorkspaceInformation workspaceInformation = (WorkspaceInformation) evt.getSource();<NEW_LINE>final int index = tabbedContainer<MASK><NEW_LINE>if (!tabDataModel.getTab(inde... | .getSelectionModel().getSelectedIndex(); |
1,277,432 | public io.kubernetes.client.proto.V1alpha1Rbac.ClusterRoleList buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1alpha1Rbac.ClusterRoleList result = new io.kubernetes.client.proto.V1alpha1Rbac.ClusterRoleList(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitF... | .items_ = itemsBuilder_.build(); |
193,124 | public void deployResource(Object resource, String applicationName, String moduleName) throws Exception {<NEW_LINE>ManagedExecutorService managedExecutorServiceRes = (ManagedExecutorService) resource;<NEW_LINE>if (managedExecutorServiceRes == null) {<NEW_LINE>_logger.log(Level.WARNING, LogFacade.DEPLOY_ERROR_NULL_CONFI... | UNABLE_TO_BIND_OBJECT, ex, "ManagedExecutorService", jndiName); |
1,591,114 | public void load(Map<String, Object> parameters) {<NEW_LINE>setCurrentSetup(new TreeMap<>());<NEW_LINE><MASK><NEW_LINE>getCurrentSetup().putAll(getSetup());<NEW_LINE>LOGGER.log(Level.INFO, "[{0}] Stack \"{1}\" is loading.", new Object[] { getFlag().toString().toUpperCase(Locale.ROOT), getName() });<NEW_LINE>// fill pro... | getCurrentSetup().putAll(parameters); |
1,685,921 | private void startImportApp(@NonNull Class<? extends DatabaseImporter> importerType) {<NEW_LINE>DatabaseImporter importer = DatabaseImporter.create(this, importerType);<NEW_LINE>// obtain the global root shell and close it immediately after we're done<NEW_LINE>// TODO: find a way to use SuFileInputStream with Shell.new... | Toast.LENGTH_SHORT).show(); |
1,476,477 | private void init() {<NEW_LINE>setUndecorated(true);<NEW_LINE>try {<NEW_LINE>if (GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().isWindowTranslucencySupported(WindowTranslucency.TRANSLUCENT)) {<NEW_LINE>if (!Config.getInstance().isNoTransparency())<NEW_LINE>setOpacity(0.85f);<NEW_LINE>}<NEW_L... | setBackground(ColorResource.getSelectionColor()); |
876,889 | public void addOverlays() {<NEW_LINE>super.addOverlays();<NEW_LINE>String cacheDir = getActivity().getApplicationContext().getCacheDir()<MASK><NEW_LINE>mir.init(cacheDir);<NEW_LINE>mMapView.addMapListener(new MapListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean onScroll(ScrollEvent event) {<NEW_LINE>Log... | .getAbsoluteFile().getAbsolutePath(); |
1,736,631 | public static void main(String[] args) {<NEW_LINE>// Instantiate a client that will be used to call the service.<NEW_LINE>TextAnalyticsClient client = new TextAnalyticsClientBuilder().credential(new AzureKeyCredential("{key}")).endpoint("{endpoint}").buildClient();<NEW_LINE>// The texts that need be analyzed.<NEW_LINE>... | TextDocumentBatchStatistics batchStatistics = keyPhrasesBatchResultCollection.getStatistics(); |
665,911 | private void addParameterInfo(CompilationUnitRewrite cuRewrite) throws JavaModelException {<NEW_LINE>ITypeBinding typeBinding = Bindings.normalizeForDeclarationUse(fSelectedExpression.resolveTypeBinding(), fSelectedExpression.getAST());<NEW_LINE>String name = fParameterName != null ? fParameterName : guessedParameterNa... | .getCu()), settings); |
61,457 | public TableMetadataPersistence.TableMetadata.Builder persistToProto() {<NEW_LINE>TableMetadataPersistence.TableMetadata.Builder builder = TableMetadataPersistence.TableMetadata.newBuilder();<NEW_LINE>builder.setConflictHandler(ConflictHandlers.persistToProto(getConflictHandler()));<NEW_LINE>builder.setRowName(getRowMe... | builder.setNameLogSafety(getNameLogSafety()); |
1,456,702 | public static DescribeUserDomainsResponse unmarshall(DescribeUserDomainsResponse describeUserDomainsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeUserDomainsResponse.setRequestId(_ctx.stringValue("DescribeUserDomainsResponse.RequestId"));<NEW_LINE>describeUserDomainsResponse.setPageNumber(_ctx.longValue("Descr... | ("DescribeUserDomainsResponse.Domains[" + i + "].ResourceGroupId")); |
225,362 | public void initializeChildBlocks(NDManager manager, DataType dataType, Shape... inputShapes) {<NEW_LINE>super.beforeInitialize(inputShapes);<NEW_LINE>inputNames = Arrays.<MASK><NEW_LINE>Shape[] tokenShape = { inputShapes[0] };<NEW_LINE>Shape[] typeShape = { inputShapes[1] };<NEW_LINE>this.tokenEmbedding.initialize(man... | asList("tokenIds", "typeIds", "masks"); |
1,724,889 | protected void paintClientArea(final Graphics graphics) {<NEW_LINE>// Don't do anything when hidden<NEW_LINE>if (!isVisible())<NEW_LINE>return;<NEW_LINE>super.paintClientArea(graphics);<NEW_LINE>// graphics.pushState();<NEW_LINE>graphics.setFont(titleFont);<NEW_LINE>final Dimension titleSize = FigureUtilities.getTextEx... | width / 2, bounds.y); |
999,666 | public void put(long ledgerId, long entryId, ByteBuf entry) {<NEW_LINE>int entrySize = entry.readableBytes();<NEW_LINE>int alignedSize = align64(entrySize);<NEW_LINE>lock.readLock().lock();<NEW_LINE>try {<NEW_LINE>if (entrySize > segmentSize) {<NEW_LINE>log.warn("entrySize {} > segmentSize {}, skip update read cache!",... | .writeLock().unlock(); |
506,164 | public static void main(String[] args) {<NEW_LINE>if (args.length != 4) {<NEW_LINE>System.out.println("Usage: java com.dotcms.cli.security.TrustStoreImportKey truststore truststore_password alias certfile ");<NEW_LINE>System.exit(0);<NEW_LINE>}<NEW_LINE>String keypass = args[1];<NEW_LINE>String alias = args[2];<NEW_LIN... | c.toArray().length]; |
33,900 | public List<Datastream> findGroup(@Context PagingContext pagingContext, @QueryParam("datastreamName") String datastreamName) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>_dynamicMetricsManager.createOrUpdateMeter(CLASS_NAME, FINDER_CALL, 1);<NEW_LINE>Datastream datastream = _store.getDatastream(datastreamName);<NEW_LINE>i... | LOG.info("findDuplicates called with paging context {}", pagingContext); |
389,663 | final DescribeEventsResult executeDescribeEvents(DescribeEventsRequest describeEventsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEventsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,541,647 | public void afterExitScope(NodeTraversal t, ReferenceMap referenceMap) {<NEW_LINE>// Check all vars after finishing a scope<NEW_LINE>Scope scope = t.getScope();<NEW_LINE>if (scope.isFunctionBlockScope()) {<NEW_LINE>varsInFunctionBody.clear();<NEW_LINE>for (Var v : scope.getVarIterable()) {<NEW_LINE>varsInFunctionBody.a... | referenceCollection = referenceMap.getReferences(v); |
530,552 | private static List<Execution> createExecutions(List<Event> events) {<NEW_LINE>List<Execution> executions = new ArrayList<>();<NEW_LINE>Map<TestDescriptor, Instant> <MASK><NEW_LINE>for (Event event : events) {<NEW_LINE>switch(event.getType()) {<NEW_LINE>case STARTED:<NEW_LINE>{<NEW_LINE>executionStarts.put(event.getTes... | executionStarts = new HashMap<>(); |
1,613,538 | public void updateUser(String username, User body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'username' is set<NEW_LINE>if (username == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");<NEW_LI... | 0 ? localVarContentTypes[0] : "application/json"; |
122,584 | static org.batfish.datamodel.ospf.OspfNetworkType toOspfNetworkType(@Nullable OspfNetworkType type, Warnings warnings) {<NEW_LINE>if (type == null) {<NEW_LINE>// default is broadcast for all Ethernet interfaces<NEW_LINE>// (https://learningnetwork.cisco_xr.com/thread/66827)<NEW_LINE>return org.batfish.datamodel.ospf.Os... | .datamodel.ospf.OspfNetworkType.POINT_TO_MULTIPOINT; |
1,588,771 | public ApiResponse<File> favoritesUpdateWithHttpInfo(String id, UpdateFavoriteRequest updateFavoriteRequest) throws ApiException {<NEW_LINE>Object localVarPostBody = updateFavoriteRequest;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the ... | = new ArrayList<Pair>(); |
80,987 | private void insertUniqueItem(String item) {<NEW_LINE>item = item.trim(<MASK><NEW_LINE>// Pattern to match <space><literal string><space OR end of line><NEW_LINE>// i.e. to check if a word is present in the line<NEW_LINE>final Pattern pattern = Pattern.compile(String.format("\\s\\Q%s\\E(:?\\s|$)", item));<NEW_LINE>fina... | ).replace(" ", "_"); |
1,327,848 | private List<Wo> list(Business business, Wi wi, List<Identity> identityList) throws Exception {<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>if (StringUtils.isBlank(wi.getKey()) && (ListTools.isEmpty(wi.getUnitList()) || ListTools.isEmpty(identityList))) {<NEW_LINE>return wos;<NEW_LINE>}<NEW_LINE>EntityManager e... | + "%", StringTools.SQL_ESCAPE_CHAR)); |
281,525 | protected String doIt() throws Exception {<NEW_LINE>String[] tables = new String[] { "AD_Window_Access", "AD_Process_Access", "AD_Form_Access", "AD_Workflow_Access", "AD_Task_Access", "AD_Document_Action_Access", X_AD_Role_Included.Table_Name };<NEW_LINE>String[] keycolumns = new String[] { "AD_Window_ID", "AD_Process_... | (no), "Old records deleted from " + table); |
64,513 | static FileObject[] listSavedHeapdumps(File directory) {<NEW_LINE>try {<NEW_LINE>FileObject snapshotsFolder = null;<NEW_LINE>if (directory != null) {<NEW_LINE>snapshotsFolder = FileUtil.toFileObject(directory);<NEW_LINE>} else {<NEW_LINE>snapshotsFolder = ProfilerStorage.getGlobalFolder(false);<NEW_LINE>}<NEW_LINE>if (... | toArray(new FileObject[0]); |
665,542 | public void eval(DenseMatrix data, DenseMatrix output) {<NEW_LINE>int batchSize = data.numRows();<NEW_LINE>for (int ibatch = 0; ibatch < batchSize; ibatch++) {<NEW_LINE>double max = -Double.MAX_VALUE;<NEW_LINE>for (int i = 0; i < data.numCols(); i++) {<NEW_LINE>double v = data.get(ibatch, i);<NEW_LINE>if (v > max) {<NE... | output.get(ibatch, i); |
1,831,189 | public void manageSyntheticAccessIfNecessary(BlockScope currentScope, FlowInfo flowInfo) {<NEW_LINE>if ((flowInfo.tagBits & FlowInfo.UNREACHABLE_OR_DEAD) != 0)<NEW_LINE>return;<NEW_LINE>// if method from parameterized type got found, use the original method at codegen time<NEW_LINE>MethodBinding codegenBinding = this.b... | ).needToEmulateMethodAccess(codegenBinding, this); |
1,376,837 | public Mono<Void> doExecute(final ServerWebExchange exchange, final ShenyuPluginChain chain, final SelectorData selector, final RuleData rule) {<NEW_LINE>String param = exchange.getAttribute(Constants.PARAM_TRANSFORM);<NEW_LINE>ShenyuContext shenyuContext = exchange.getAttribute(Constants.CONTEXT);<NEW_LINE>assert shen... | WebFluxResultUtils.result(exchange, error); |
1,372,915 | public void addJvmMData(MNode mNode, List<MData> mDatas) {<NEW_LINE>int size = mDatas.size();<NEW_LINE>List<JVMGCDataPo> jvmGCDataPos = new ArrayList<JVMGCDataPo>(size);<NEW_LINE>List<JVMMemoryDataPo> jvmMemoryDataPos = new ArrayList<JVMMemoryDataPo>(size);<NEW_LINE>List<JVMThreadDataPo> jvmThreadDataPos = new ArrayLis... | getJvmMemoryAccess().insert(jvmMemoryDataPos); |
1,658,579 | static void enumerate(HMONITOR hMonitor) {<NEW_LINE>System.out.println("Found HMONITOR: " + hMonitor.getPointer().toString());<NEW_LINE>MONITORINFOEX info = new MONITORINFOEX();<NEW_LINE>User32.INSTANCE.GetMonitorInfo(hMonitor, info);<NEW_LINE>System.out.println("Screen " + info.rcMonitor);<NEW_LINE>System.out.<MASK><N... | println("Work area " + info.rcWork); |
620,087 | public void tableDataSourceChanged(Object newDataSource) {<NEW_LINE>if (newDataSource instanceof Tag[]) {<NEW_LINE>// neverShowCatButtons = true;<NEW_LINE>setCurrentTags((Tag[]) newDataSource);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (newDataSource instanceof Object[]) {<NEW_LINE>Object[] datasources = ((Object[]) newD... | tags = new HashSet<>(); |
609,225 | public void initialize(ApplicationInfo appInfo, Collection<? extends Sniffer> sniffers, ExtendedDeploymentContext context) {<NEW_LINE>if (appInfo == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>appRegistry.<MASK><NEW_LINE>final ActionReport report = context.getActionReport();<NEW_LINE>ProgressTracker tracker = context.... | removeTransient(appInfo.getName()); |
446,824 | protected void receiveTunnelInbound(DHTTransportUDPContact originator, Map data) {<NEW_LINE>log("Received tunnel inbound message from " + originator.getString());<NEW_LINE>try {<NEW_LINE>punch_mon.enter();<NEW_LINE>for (int i = 0; i < oustanding_punches.size(); i++) {<NEW_LINE>Object[] wait_data = (Object[]) oustanding... | [1]).release(); |
1,103,186 | protected void doNegatedPropertySet(P_NegPropSet pathNotOneOf, Node node, Collection<Node> output) {<NEW_LINE>List<Node> fwdSteps = pathNotOneOf.getFwdNodes();<NEW_LINE>List<Node> bwkSteps = pathNotOneOf.getBwdNodes();<NEW_LINE>// Flip lists processed - flips calls of stepExcludeForwards/stepExcludeBackwards<NEW_LINE>i... | nodes2 = stepExcludeBackwards(node, bwkSteps); |
693,469 | final CreateOpenIDConnectProviderResult executeCreateOpenIDConnectProvider(CreateOpenIDConnectProviderRequest createOpenIDConnectProviderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createOpenIDConnectProviderRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | (super.beforeMarshalling(createOpenIDConnectProviderRequest)); |
1,058,457 | public static ListMappCenterWorkspacesResponse unmarshall(ListMappCenterWorkspacesResponse listMappCenterWorkspacesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMappCenterWorkspacesResponse.setRequestId(_ctx.stringValue("ListMappCenterWorkspacesResponse.RequestId"));<NEW_LINE>listMappCenterWorkspacesResponse.setRe... | ("ListMappCenterWorkspacesResponse.ListMappCenterWorkspaceResult.MappCenterWorkspaceList[" + i + "].WorkspaceId")); |
749,968 | private void tryClearingSpoutputOverflow() {<NEW_LINE>BlockState blockState = getBlockState();<NEW_LINE>if (!(blockState.getBlock() instanceof BasinBlock))<NEW_LINE>return;<NEW_LINE>Direction direction = blockState.getValue(BasinBlock.FACING);<NEW_LINE>BlockEntity te = level.getBlockEntity(worldPosition.below().relativ... | FluidStack fluidStack = iterator.next(); |
365,178 | // compiles the element and returns the new entity if successful<NEW_LINE>private CustomElement compile(String code) {<NEW_LINE>saveJavaSource(code);<NEW_LINE>CustomElement entity = null;<NEW_LINE>compilation_errors.clear();<NEW_LINE>try {<NEW_LINE>// catch compiler messages<NEW_LINE>StringWriter compilerErrorMessageSW... | compilerErrorMessageSW.toString(), beforecodelines); |
91,586 | public EventResource unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EventResource eventResource = new EventResource();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | class).unmarshall(context)); |
1,320,016 | public static void copyLocalNativeLibraries(final File localNativeLibrariesDirectory, final File destinationDirectory, Set<String> supportAbis, Set<String> removeSoFiles) {<NEW_LINE>sLogger.info(<MASK><NEW_LINE>try {<NEW_LINE>IOFileFilter filter = new NativeSoFilter(supportAbis, removeSoFiles);<NEW_LINE>// First, deter... | "Copying existing native libraries from " + localNativeLibrariesDirectory + " to " + destinationDirectory); |
296,712 | private // }<NEW_LINE>ItemStack slotClickPhantom(Slot slot, int mouseButton, ClickType clickType, EntityPlayer player) {<NEW_LINE>ItemStack stack = null;<NEW_LINE>if (mouseButton == 2) {<NEW_LINE>if (((IPhantomSlot) slot).canAdjustCount()) {<NEW_LINE>slot.putStack(null);<NEW_LINE>}<NEW_LINE>} else if (mouseButton == 0 ... | adjustPhantomSlot(slot, mouseButton, clickType); |
1,233,011 | public List<ApiDescription> read(RequestMappingContext outerContext) {<NEW_LINE>PatternsRequestCondition patternsCondition = outerContext.getPatternsCondition();<NEW_LINE>ApiSelector selector = outerContext.getDocumentationContext().getApiSelector();<NEW_LINE>List<ApiDescription> <MASK><NEW_LINE>for (String path : matc... | apiDescriptionList = new ArrayList<>(); |
1,144,904 | // We use reflection to get the methods from WebObjects because the jar is not distribuable publicly<NEW_LINE>// and we want to build witout it.<NEW_LINE>@Init<NEW_LINE>@SuppressWarnings({ "rawtypes", "unchecked" })<NEW_LINE>public void init(PluginConfiguration pluginConfiguration, ClassLoader appClassLoader) {<NEW_LIN... | forName("com.webobjects.foundation._NSThreadsafeMutableDictionary", false, appClassLoader); |
38,623 | private static void raw(Exchange exchange) throws IOException {<NEW_LINE>DeribitMarketDataService service = (DeribitMarketDataService) exchange.getMarketDataService();<NEW_LINE>String instrumentName = "BTC-PERPETUAL";<NEW_LINE>String currency = "BTC";<NEW_LINE>DeribitTicker ticker = service.getDeribitTicker(instrumentN... | System.out.println(ticker); |
127,553 | public static DescribeSnapshotsResponse unmarshall(DescribeSnapshotsResponse describeSnapshotsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSnapshotsResponse.setRequestId(_ctx.stringValue("DescribeSnapshotsResponse.RequestId"));<NEW_LINE>describeSnapshotsResponse.setNextToken(_ctx.stringValue("DescribeSnapshot... | ("DescribeSnapshotsResponse.Snapshots[" + i + "].SnapshotType")); |
914,444 | public void startPublishing() {<NEW_LINE>// We send the start messages before the first packet is received.<NEW_LINE>// This is required so FME actually starts publishing.<NEW_LINE>sendStartNotifications(Red5.getConnectionLocal());<NEW_LINE>IStreamCapableConnection conn = getConnection();<NEW_LINE>IContext context = co... | false, conn.getScope()); |
740,119 | private Queueable wrapMessageForWLM(SipMessage msg) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>Queueable queueable = msg;<NEW_LINE>QueueableTransformer transformer = SipContainerWLMHooksFactory.getSipContainerHooks().getQueueableTransformer();<NEW_LINE>if (transformer != nu... | c_logger.traceEntry(this, "wrapMessageForWLM"); |
1,560,568 | public void launchMpjwt11TCKLauncher_aud_noenv() throws Exception {<NEW_LINE>String port = String.valueOf(server.getBvtPort());<NEW_LINE>String bucketAndTestName = this.getClass().getCanonicalName();<NEW_LINE>Map<String, String> additionalProps = new HashMap<>();<NEW_LINE>// need to pass the correct url for PublicKeyAs... | resultInfo = MvnUtils.getResultInfo(server); |
1,838,311 | protected void handleSizeCall(ParserRuleContext ctx) {<NEW_LINE>// Check that this is the size call for processing and not a user defined size method.<NEW_LINE>if (!calledFromGlobalOrSetup(ctx)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ParseTree argsContext = ctx.getChild(2);<NEW_LINE>boolean thisRequiresRewrite = false;... | getChild(0).getText(); |
752,374 | protected Number runThread(AbstractEmulator<?> emulator) {<NEW_LINE>Backend backend = emulator.getBackend();<NEW_LINE>UnidbgPointer stack = allocateStack(emulator);<NEW_LINE>if (emulator.is32Bit()) {<NEW_LINE>Pointer tls = thread.share(0x48);<NEW_LINE>this.errno = tls.share(8);<NEW_LINE>backend.reg_write(ArmConst.UC_AR... | , UnidbgPointer.nativeValue(tls)); |
757,563 | Result<List<String>> matchTransactions(Collection<TicketReservationWithTransaction> pendingReservations, List<RevolutTransactionDescriptor> transactions, PaymentContext context, boolean manualReviewRequired) {<NEW_LINE>List<Pair<TicketReservationWithTransaction, RevolutTransactionDescriptor>> matched = pendingReservati... | latestTransaction = transactionRepository.lockLatestForUpdate(reservationId); |
930,417 | private StoreWorkflowResult storeLocalWorkflowsImpl(String projectName, Revision revision, WorkflowDefinitionList defs, Optional<Instant> currentTimeToSchedule) throws ResourceConflictException {<NEW_LINE>// validate workflow<NEW_LINE>// TODO move this to ProjectControl<NEW_LINE>defs.get().stream().forEach(workflowSour... | rev = lockedProj.insertRevision(revision); |
1,306,476 | public void writeQuad(float x, float y, float z, int color, float u, float v, int light, int overlay, int normal) {<NEW_LINE>int i = this.writeOffset;<NEW_LINE>ByteBuffer buffer = this.byteBuffer;<NEW_LINE>vertexCount++;<NEW_LINE>midU += u;<NEW_LINE>midV += v;<NEW_LINE>buffer.putFloat(i, x);<NEW_LINE>buffer.putFloat(i ... | putInt(i + 12, color); |
1,743,166 | public IoTJobAbortCriteria unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>IoTJobAbortCriteria ioTJobAbortCriteria = new IoTJobAbortCriteria();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep... | class).unmarshall(context)); |
1,366,574 | private Object toJSONInstance(Object object) {<NEW_LINE>if (object == null) {<NEW_LINE>return JSONObject.NULL;<NEW_LINE>}<NEW_LINE>if (object instanceof JSONObject || object instanceof JSONArray || JSONObject.NULL.equals(object) || isJSONString(object) || object instanceof Byte || object instanceof Character || object ... | ((byte[]) object); |
199,914 | private void initFromLines(String[] lines, int minimumItemsInOneLine) {<NEW_LINE>ArrayList<Label> labels <MASK><NEW_LINE>for (int i = 0; i < lines.length; i++) {<NEW_LINE>String[] labelInfos = lines[i].trim().split("\\s+");<NEW_LINE>if (labelInfos.length >= minimumItemsInOneLine && StringUtils.isNumeric(labelInfos[0]) ... | = new ArrayList<Label>(); |
547,361 | public void putFloat(long t, float v) {<NEW_LINE>if (writeCurArrayIndex == -1) {<NEW_LINE>if (capacity >= CAPACITY_THRESHOLD) {<NEW_LINE>((LinkedList<long[]>) timeRet).addFirst(new long[capacity]);<NEW_LINE>((LinkedList<float[]>) floatRet).addFirst(new float[capacity]);<NEW_LINE>writeCurListIndex++;<NEW_LINE>writeCurAr... | newValueData, newCapacity - capacity, capacity); |
1,734,595 | public AuthenticationMechanism create(String mechanismName, IdentityManager identityManager, FormParserFactory formParserFactory, Map<String, String> properties) {<NEW_LINE>String realm = properties.get(REALM);<NEW_LINE>String silent = properties.get(SILENT);<NEW_LINE>String charsetString = properties.get(CHARSET);<NEW... | userAgentString = properties.get(USER_AGENT_CHARSETS); |
733,494 | protected void consumeBlock() {<NEW_LINE>// Block ::= OpenBlock '{' BlockStatementsopt '}'<NEW_LINE>// LambdaBody ::= NestedType NestedMethod '{' BlockStatementsopt '}'<NEW_LINE>// simpler action for empty blocks<NEW_LINE>int statementsLength = this.astLengthStack[this.astLengthPtr--];<NEW_LINE>Block block;<NEW_LINE>i... | .intStack[this.intPtr--]; |
1,234,980 | private BucketPath prevNonEmptyNode(BucketPath nodePath, final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>prevBucketLoop: while (nodePath != null) {<NEW_LINE>final long[] node = directory.getNode(nodePath.nodeIndex, atomicOperation);<NEW_LINE>final int startIndex = 0;<NEW_LINE>final int endIndex = ... | nodeLocalDepth, parent.nodeGlobalDepth + nodeLocalDepth); |
1,120,418 | public com.amazonaws.services.health.model.UnsupportedLocaleException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.health.model.UnsupportedLocaleException unsupportedLocaleException = new com.amazonaws.services.health.model.UnsupportedLocaleException(null);<N... | int originalDepth = context.getCurrentDepth(); |
898,855 | public int encodeString(KrollDict args) {<NEW_LINE>if (!args.containsKey(TiC.PROPERTY_DEST)) {<NEW_LINE>throw new IllegalArgumentException("dest was not specified for encodeString");<NEW_LINE>}<NEW_LINE>if (!args.containsKey(TiC.PROPERTY_SOURCE) || args.get(TiC.PROPERTY_SOURCE) == null) {<NEW_LINE>throw new IllegalArgu... | encoded = src.getBytes(charset); |
144,805 | public static DescribeIPv6TranslatorAclListAttributesResponse unmarshall(DescribeIPv6TranslatorAclListAttributesResponse describeIPv6TranslatorAclListAttributesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeIPv6TranslatorAclListAttributesResponse.setRequestId(_ctx.stringValue("DescribeIPv6TranslatorAclListAttri... | ("DescribeIPv6TranslatorAclListAttributesResponse.AclEntries[" + i + "].AclEntryIp")); |
1,035,352 | private int br(String x, String y) {<NEW_LINE>if (x.length() > y.length()) {<NEW_LINE>String swap = x;<NEW_LINE>x = y;<NEW_LINE>y = swap;<NEW_LINE>}<NEW_LINE>final int m = x.length();<NEW_LINE>final int n = y.length();<NEW_LINE>int ZERO_K = n;<NEW_LINE>if (n + 3 > FKP.ncol())<NEW_LINE>FKP = new IntArray2D(2 * n + 1, n ... | .abs(k) - 1); |
657,428 | public void unmanageNics(VirtualMachineProfile vm) {<NEW_LINE>if (s_logger.isDebugEnabled()) {<NEW_LINE>s_logger.debug("Unmanaging NICs for VM: " + vm.getId());<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>final List<NicVO> nics = _nicDao.listByVmId(vm.getId());<NEW_LINE>for (final NicVO nic : nics) {<NEW_LINE>removeNic(vm, nic... | VirtualMachine virtualMachine = vm.getVirtualMachine(); |
961,112 | public static String decode(String html) {<NEW_LINE>if (html.indexOf('&') < 0) {<NEW_LINE>return html;<NEW_LINE>}<NEW_LINE>char[] chars = html.toCharArray();<NEW_LINE>int delta = 0;<NEW_LINE>int n = chars.length;<NEW_LINE>for (int i = 0; i < n; ) {<NEW_LINE>char ch = chars[i];<NEW_LINE>if (chars[i] == '&') {<NEW_LINE>l... | , chars, i - delta)); |
444,976 | private ClusterConfig buildMultiHostClusterConfig(MultiHostConnectionStringConfigure configure) {<NEW_LINE>ClusterConfigWithNoVersion clusterConfig = new ClusterConfigWithNoVersion(configure.getName(), ClusterType.NORMAL, DatabaseCategory.MYSQL);<NEW_LINE>DatabaseShardConfigImpl databaseShardConfig = new DatabaseShardC... | setPwd(configure.getPassword()); |
884,480 | public static QueryEventRecordPlanDetailResponse unmarshall(QueryEventRecordPlanDetailResponse queryEventRecordPlanDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryEventRecordPlanDetailResponse.setRequestId(_ctx.stringValue("QueryEventRecordPlanDetailResponse.RequestId"));<NEW_LINE>queryEventRecordPlanDetailRe... | (_ctx.stringValue("QueryEventRecordPlanDetailResponse.Data.PlanId")); |
1,018,098 | private void paintFixed(RenderingContext c, Layer layer) {<NEW_LINE>layer.positionFixedLayer(c);<NEW_LINE>if (c.getShadowPageNumber() == -1) {<NEW_LINE>SimplePainter painter = new SimplePainter(c.getPage().getMarginBorderPadding(c, CalculatedStyle.LEFT), c.getPage().getMarginBorderPadding(c, CalculatedStyle.TOP));<NEW_... | translate(shadowRect.x, 0); |
187,968 | private void updateLocationCache(Iterable<DatabaseAccountLocation> writeLocations, Iterable<DatabaseAccountLocation> readLocations, UnmodifiableList<String> preferenceList, Boolean enableMultipleWriteLocations) {<NEW_LINE>synchronized (this.lockObject) {<NEW_LINE>DatabaseAccountLocationsInfo nextLocationInfo = new Data... | getEndpointByLocation(writeLocations, out, outWriteRegionMap); |
99,648 | public List<List<Writable>> next(int num) {<NEW_LINE>List<File> files = new ArrayList<>(num);<NEW_LINE>List<List<ImageObject>> objects = new ArrayList<>(num);<NEW_LINE>for (int i = 0; i < num && hasNext(); i++) {<NEW_LINE>File f = iter.next();<NEW_LINE>this.currentFile = f;<NEW_LINE>if (!f.isDirectory()) {<NEW_LINE>fil... | (f.getPath())); |
1,039,520 | public static Query<NavigableMap<Long, Long>> playtimePerDay(long after, long before, long timeZoneOffset, ServerUUID serverUUID) {<NEW_LINE>return database -> {<NEW_LINE>Sql sql = database.getSql();<NEW_LINE>String selectPlaytimePerDay = SELECT + sql.dateToEpochSecond(sql.dateToDayStamp(sql.epochSecondToDate('(' + Ses... | statement.setLong(2, before); |
758,496 | public byte[] ntlm_construct_authenticate_target_info() {<NEW_LINE>ByteBuffer buf = new ByteBuffer(4096);<NEW_LINE>writeAVPair(buf, MSV_AV_NETBIOS_DOMAIN_NAME, serverNetbiosDomainName);<NEW_LINE>writeAVPair(buf, MSV_AV_NETBIOS_COMPUTER_NAME, serverNetbiosComputerName);<NEW_LINE>writeAVPair(buf, MSV_AV_DNS_DOMAIN_NAME, ... | writeAVPair(buf, MSV_AV_TIMESTAMP, serverTimestamp); |
865,979 | public static String leftPad(String str, int size, String padStr) {<NEW_LINE>if (str == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (isNullOrEmpty(padStr)) {<NEW_LINE>padStr = " ";<NEW_LINE>}<NEW_LINE>int padLen = padStr.length();<NEW_LINE>int strLen = str.length();<NEW_LINE>int pads = size - strLen;<NEW_LINE>... | ] padChars = padStr.toCharArray(); |
427,527 | public ImmutableSortedBag<T> newWithout(T element) {<NEW_LINE>int index = Arrays.binarySearch(this.elements, element, this.comparator);<NEW_LINE>if (index < 0) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (this.occurrences[index] > 1) {<NEW_LINE>int[] occurrences = this.occurrences.clone();<NEW_LINE>occurrences[index... | this.elements.length - 1]; |
1,703,268 | private void vp8_setup_block_dptrs() {<NEW_LINE>int r, c;<NEW_LINE>for (r = 0; r < 4; ++r) {<NEW_LINE>for (c = 0; c < 4; ++c) {<NEW_LINE>block.setRel(r * 4 + c, new BlockD(predictor.shallowCopyWithPosInc(r * 4 * 16 + c * 4)));<NEW_LINE>}<NEW_LINE>}<NEW_LINE>for (r = 0; r < 2; ++r) {<NEW_LINE>for (c = 0; c < 2; ++c) {<N... | dqcoeff.shallowCopyWithPosInc(r * 16); |
689,953 | public void writeMessages(ProcessContext context) {<NEW_LINE>HL7v2Message msg = context.element();<NEW_LINE>// all fields but data and labels should be null for ingest.<NEW_LINE>Message model = new Message();<NEW_LINE>model.setData(msg.getData());<NEW_LINE>model.setLabels(msg.getLabels());<NEW_LINE>switch(writeMethod) ... | HealthcareIOError.of(msg, e); |
990,345 | public List<SubscriptionBaseWithAddOns> createPlansWithAddOns(final UUID accountId, final Iterable<SubscriptionAndAddOnsSpecifier> subscriptionsAndAddOns, final SubscriptionCatalog kbCatalog, final CallContext context) throws SubscriptionBaseApiException {<NEW_LINE>final Map<UUID, List<SubscriptionBaseEvent>> eventsMap... | allSubscriptions, eventsMap, kbCatalog, internalCallContext); |
53,834 | public void run() {<NEW_LINE>double max = 0;<NEW_LINE>for (MapPack mpack : values) {<NEW_LINE>int objHash = mpack.getInt("objHash");<NEW_LINE>ListValue time = mpack.getList("time");<NEW_LINE>ListValue value = mpack.getList("value");<NEW_LINE>TracePair tp = getTracePair(objType, objHash, (int) ((etime - stime) / (<MASK>... | DateUtil.MILLIS_PER_SECOND * 2))); |
1,047,209 | void parseStatusParameters() {<NEW_LINE>LOG.info("Received light ctl status from: " + MeshAddress.formatAddress(mMessage.getSrc(), true));<NEW_LINE>final ByteBuffer buffer = ByteBuffer.wrap(mParameters).order(ByteOrder.LITTLE_ENDIAN);<NEW_LINE>mPresentCtlLightness = buffer.getShort() & 0xFFFF;<NEW_LINE>mPresentCtlTempe... | = buffer.getShort() & 0xFFFF; |
34,706 | public void logNativeQuery(RequestLogLine requestLogLine) throws IOException {<NEW_LINE>final Map mdc = MDC.getCopyOfContextMap();<NEW_LINE>// MDC must be set during the `LOG.info` call at the end of the try block.<NEW_LINE>try {<NEW_LINE>if (setMDC) {<NEW_LINE>try {<NEW_LINE>final Query query = requestLogLine.getQuery... | .getContext().entrySet(); |
232,982 | public void refreshFields() {<NEW_LINE>ResourceConfigData data = this.helper.getData();<NEW_LINE>for (int i = 0; i < jFields.length; i++) {<NEW_LINE>String item;<NEW_LINE>if (FieldHelper.isList(fields[i])) {<NEW_LINE>item = (String) ((JComboBox) jFields[i]).getSelectedItem();<NEW_LINE>} else {<NEW_LINE>item = (String) ... | value = data.get(fieldName); |
89,156 | private RangeIndex createBPTree(FileSet fileset, int order, BlockMgrBuilder blockMgrBuilderNodes, BlockMgrBuilder blockMgrBuilderRecords, RecordFactory factory, IndexParams indexParams) {<NEW_LINE>// ---- Checking<NEW_LINE>{<NEW_LINE>int blockSize = indexParams.getBlockSize();<NEW_LINE>if (blockSize < 0)<NEW_LINE>throw... | "Wrong order (" + order + "), calculated = " + order2); |
385,243 | public void onEvent(StatisticEvent statisticEvent, long l, boolean b) {<NEW_LINE>if (StatisticManager.getInstance().getSamplingRate() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StatisticEntry entry = statisticEvent.getEntry();<NEW_LINE>if (entry instanceof StatisticTxEntry) {<NEW_LINE>StatisticTxEntry txEntry = (Stat... | ), new TxRecord(txEntry)); |
1,175,007 | private void generateDirectMovement(final DDOrderMoveSchedule schedule) {<NEW_LINE>//<NEW_LINE>// Make sure DD Order is completed<NEW_LINE>final DDOrderId ddOrderId = schedule.getDdOrderId();<NEW_LINE>if (!skipCompletingDDOrder) {<NEW_LINE>final I_DD_Order ddOrder = getDDOrderById(ddOrderId);<NEW_LINE>ddOrderService.co... | null).build())); |
206,410 | private void deleteManifestFileNodes() throws InterruptedException {<NEW_LINE>if (deleteOption == DeleteOptions.DELETE_OUTPUT || deleteOption == DeleteOptions.DELETE_INPUT_AND_OUTPUT) {<NEW_LINE>boolean allINodesDeleted = true;<NEW_LINE>Iterator<ManifestFileLock> iterator = manifestFileLocks.iterator();<NEW_LINE>while ... | (Bundle.DeleteCaseTask_progress_releasingManifestLock(manifestFilePath)); |
1,372,941 | public byte[] doInTransform(Instrumentor instrumentor, ClassLoader classLoader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>InstrumentClass target = instrumentor.<MASK><NEW_LINE>// Methods<NEW_LINE>InstrumentMethod getE... | getInstrumentClass(classLoader, className, classfileBuffer); |
1,352,845 | public static DescribeDomainPvDataResponse unmarshall(DescribeDomainPvDataResponse describeDomainPvDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainPvDataResponse.setRequestId(_ctx.stringValue("DescribeDomainPvDataResponse.RequestId"));<NEW_LINE>describeDomainPvDataResponse.setDomainName(_ctx.stringValu... | = new ArrayList<UsageData>(); |
1,635,888 | final BatchUpdateFindingsResult executeBatchUpdateFindings(BatchUpdateFindingsRequest batchUpdateFindingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchUpdateFindingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | (super.beforeMarshalling(batchUpdateFindingsRequest)); |
1,231,358 | protected void process_native_annotations(Class<?> nat) throws Exception {<NEW_LINE>for (Field field : nat.getDeclaredFields()) {<NEW_LINE>if (!Modifier.isStatic(field.getModifiers()))<NEW_LINE>continue;<NEW_LINE>Import imp = field.getAnnotation(Import.class);<NEW_LINE>if (imp != null) {<NEW_LINE>field.setAccessible(tr... | FunID f = new FunID(imp); |
1,573,684 | private Behavior<Command> broadcast() {<NEW_LINE>spawnPolicyActors();<NEW_LINE>if (policies.isEmpty()) {<NEW_LINE>System.err.println("No active policies in the current configuration");<NEW_LINE>return Behaviors.stopped();<NEW_LINE>}<NEW_LINE>stopwatch.start();<NEW_LINE>long skip = settings.trace().skip();<NEW_LINE>long... | getValue().add(event); |
1,667,946 | public void bind() throws MalformedURLException {<NEW_LINE>InstanceInfo myInfo = ApplicationInfoManager.getInstance().getInfo();<NEW_LINE>String myInstanceId = ((AmazonInfo) myInfo.getDataCenterInfo()).get(AmazonInfo.MetaDataKey.instanceId);<NEW_LINE>String myZone = ((AmazonInfo) myInfo.getDataCenterInfo()).get(AmazonI... | indexOf(networkInterface.getPrivateIpAddress()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.