idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,244,231 | final CreateConnectionResult executeCreateConnection(CreateConnectionRequest createConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,156,291 | static void c_1() throws Exception {<NEW_LINE>AkSourceBatchOp dense_source = new AkSourceBatchOp().setFilePath(DATA_DIR + DENSE_TRAIN_FILE);<NEW_LINE>AkSourceBatchOp sparse_source = new AkSourceBatchOp().setFilePath(DATA_DIR + SPARSE_TRAIN_FILE);<NEW_LINE>Stopwatch sw = new Stopwatch();<NEW_LINE>ArrayList<Tuple2<String... | println(sw.getElapsedTimeSpan()); |
681,292 | private void addCreateNewImageProposal(final JavaContentAssistInvocationContext javaContext, ArrayList<ICompletionProposal> proposals, String prefix, int offset, int length) {<NEW_LINE>final IContainer parent = UmletPluginUtils.getCompilationUnitParent(javaContext.getCompilationUnit());<NEW_LINE>if (parent == null) {<N... | create(true, true, null); |
563,743 | private void visitNewWithSpread(Node spreadParent) {<NEW_LINE>checkArgument(spreadParent.isNew());<NEW_LINE>// Must remove callee before extracting argument groups.<NEW_LINE>Node callee = spreadParent.removeFirstChild();<NEW_LINE>List<Node> groups = extractSpreadGroups(spreadParent);<NEW_LINE>// We need to generate<NEW... | cannotConvert(compiler, spreadParent, "\"...\" passed to a constructor (consider using --language_out=ES5)"); |
277,941 | public Collection<NicIpConfiguration> listNetworkInterfaceIPConfigurations() {<NEW_LINE>Collection<NicIpConfiguration> ipConfigs = new ArrayList<>();<NEW_LINE>Map<String, NetworkInterface> nics = new TreeMap<>();<NEW_LINE>List<IpConfigurationInner> ipConfigRefs = this.innerModel().ipConfigurations();<NEW_LINE>if (ipCon... | nameFromResourceId(ipConfigRef.id()); |
826,348 | private void initComponents() {<NEW_LINE>// GEN-BEGIN:initComponents<NEW_LINE>mainPanel = new javax.swing.JPanel();<NEW_LINE>OrderPlanning = new javax.swing.JTabbedPane();<NEW_LINE>PanelOrder = new javax.swing.JPanel();<NEW_LINE>PanelFind = new javax.swing.JPanel();<NEW_LINE>PanelCenter = new javax.swing.JPanel();<NEW_... | java.awt.BorderLayout.CENTER); |
724,005 | public RestMethodResult doPost(final Map<String, Object> propertySet) throws FrameworkException {<NEW_LINE>// virtual type?<NEW_LINE>if (virtualType != null) {<NEW_LINE>virtualType.transformInput(securityContext, entityClass, propertySet);<NEW_LINE>}<NEW_LINE>if (isNode) {<NEW_LINE>final RestMethodResult result = new R... | ("Location", buildLocationHeader(newNode)); |
1,179,572 | final RetryDataReplicationResult executeRetryDataReplication(RetryDataReplicationRequest retryDataReplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(retryDataReplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
514,499 | public BitbucketClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto) {<NEW_LINE>String almRepo = Optional.ofNullable(StringUtils.trimToNull(projectAlmSettingDto.getAlmRepo())).orElseThrow(() -> new InvalidConfigurationException(InvalidConfigurationException.Scope.PROJECT, "ALM Rep... | .Scope.GLOBAL, "URL must be set in configuration")); |
1,779,435 | boolean askReloadFromDisk(VirtualFile file, Document document) {<NEW_LINE>if (myConflictAppeared != null) {<NEW_LINE>Throwable trace = myConflictAppeared;<NEW_LINE>myConflictAppeared = null;<NEW_LINE>throw new IllegalStateException("Unexpected memory-disk conflict in tests for " + file.getPath() + ", please use FileDoc... | putUserData(DiffUserDataKeys.GO_TO_SOURCE_DISABLE, true); |
1,618,088 | public void startPausing(int timeOut, Set<String> ds, String dsStr, int queueLimit) throws MySQLOutPutException {<NEW_LINE>pauseLock.lock();<NEW_LINE>try {<NEW_LINE>if (isPausing.get()) {<NEW_LINE>// the error message can only show in single mod<NEW_LINE>if ((!Objects.equals(dsStr, currentParseInfo.getShardingNodes()))... | ErrorCode.ER_UNKNOWN_ERROR, "", "You are paused already"); |
175,014 | public void marshall(CreateIntentRequest createIntentRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createIntentRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createIntentRequest.getInte... | createIntentRequest.getIntentConfirmationSetting(), INTENTCONFIRMATIONSETTING_BINDING); |
1,253,110 | public static GetDataCorrectOrderDetailResponse unmarshall(GetDataCorrectOrderDetailResponse getDataCorrectOrderDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>getDataCorrectOrderDetailResponse.setRequestId(_ctx.stringValue("GetDataCorrectOrderDetailResponse.RequestId"));<NEW_LINE>getDataCorrectOrderDetailResponse... | ("GetDataCorrectOrderDetailResponse.DataCorrectOrderDetail.PreCheckDetail[" + i + "].CheckStep")); |
745,820 | public Pair<Long, Object> peekNextNotNullValue(long nextStartTime, long nextEndTime) throws IOException {<NEW_LINE>try {<NEW_LINE>if (preCachedData != null && preCachedData.hasCurrent()) {<NEW_LINE>// save context<NEW_LINE><MASK><NEW_LINE>int readCurListIndex = preCachedData.getReadCurListIndex();<NEW_LINE>List<Aggrega... | int readCurArrayIndex = preCachedData.getReadCurArrayIndex(); |
74,337 | public static DescribePriceResponse unmarshall(DescribePriceResponse describePriceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePriceResponse.setRequestId(_ctx.stringValue("DescribePriceResponse.RequestId"));<NEW_LINE>describePriceResponse.setOrderParams(_ctx.stringValue("DescribePriceResponse.OrderParams"));<... | ("DescribePriceResponse.SubOrders[" + i + "].DiscountAmount")); |
1,567,230 | public void onClick(DialogInterface arg0, int arg1) {<NEW_LINE>account.archiveAccount();<NEW_LINE>if (account instanceof EthAccount) {<NEW_LINE>for (WalletAccount walletAccount : getLinkedERC20Accounts(account)) {<NEW_LINE>walletAccount.archiveAccount();<NEW_LINE>}<NEW_LINE>} else if (!(account instanceof ERC20Account)... | R.string.archived, false); |
774,736 | private PriamInstance claimToken(PriamInstance originalInstance) {<NEW_LINE>String hostIP = config.usePrivateIP() ? myInstanceInfo.getPrivateIP() : myInstanceInfo.getHostIP();<NEW_LINE>if (originalInstance.getInstanceId().equals(myInstanceInfo.getInstanceId()) && originalInstance.getHostName().equals(myInstanceInfo.get... | warn("Failed updating token: {}; sleeping {} millis", token, sleepTime); |
858,845 | protected void configEngine(VideoEncoderConfiguration.VideoDimensions videoDimension, VideoEncoderConfiguration.FRAME_RATE fps, String encryptionKey, String encryptionMode) {<NEW_LINE>EncryptionConfig config = new EncryptionConfig();<NEW_LINE>if (!TextUtils.isEmpty(encryptionKey)) {<NEW_LINE>config.encryptionKey = encr... | ).enableEncryption(true, config); |
1,847,058 | private static ValueNode canonical(LoadFieldNode loadFieldNode, StampPair stamp, ValueNode forObject, ResolvedJavaField field, ConstantFieldProvider constantFields, ConstantReflectionProvider constantReflection, OptionValues options, MetaAccessProvider metaAccess, boolean canonicalizeReads, boolean allUsagesAvailable) ... | DeoptimizationAction.InvalidateReprofile, DeoptimizationReason.NullCheckException); |
2,813 | public static boolean handleCustomParameters(CommandLine commandLine) {<NEW_LINE>if (commandLine == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean exit = false;<NEW_LINE>for (Option cliOption : commandLine.getOptions()) {<NEW_LINE>ParameterDescriptor param = customParameters.get(cliOption.getOpt());<NEW_LIN... | param.name + "'", e); |
550,172 | static int parseExitCode(ApiClient client, InputStream inputStream) {<NEW_LINE>try {<NEW_LINE>Type returnType = new TypeToken<V1Status>() {<NEW_LINE>}.getType();<NEW_LINE>String body;<NEW_LINE>try (final Reader reader = new InputStreamReader(inputStream)) {<NEW_LINE>body = Streams.toString(reader);<NEW_LINE>}<NEW_LINE>... | > causes = details.getCauses(); |
1,132,807 | private boolean isCandidate(Map<ColumnHandle, NullableValue> bindings) {<NEW_LINE>if (intersection(bindings.keySet(), arguments).isEmpty()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Function<VariableReferenceExpression, Object> variableResolver = variable -> {<NEW_LINE>ColumnHandle column = assignments.get(variable.g... | expression, OPTIMIZED, session, variableResolver); |
1,724,629 | public void createInitializrModel(IProgressMonitor monitor) {<NEW_LINE>InitializrModel initializrModel = null;<NEW_LINE>Exception error = null;<NEW_LINE>String url = urlField.getValue();<NEW_LINE>try {<NEW_LINE>writeToMonitor(monitor, "Getting Boot project...");<NEW_LINE>ISpringBootProject bootProject = getBootProject(... | = new InitializrModel(bootProject, preferences); |
500,455 | public byte[] doInTransform(Instrumentor instrumentor, ClassLoader classLoader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>final InstrumentClass target = instrumentor.<MASK><NEW_LINE>if (getter) {<NEW_LINE>target.addGe... | getInstrumentClass(classLoader, className, classfileBuffer); |
1,405,811 | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {<NEW_LINE>final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();<NEW_LINE>if (!KeycloakAdapterConfigService.getInstance().isSecureDeployment(deploymentUnit)) {<NEW_LINE>WarMetaData warMetaData = deployment... | ModuleLoader moduleLoader = Module.getBootModuleLoader(); |
990,712 | public com.amazonaws.services.config.model.InvalidS3KeyPrefixException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.config.model.InvalidS3KeyPrefixException invalidS3KeyPrefixException = new com.amazonaws.services.config.model.InvalidS3KeyPrefixException(null... | int originalDepth = context.getCurrentDepth(); |
1,700,423 | protected void internalTraverseAttributesByView(View view, Entity entity, EntityAttributeVisitor visitor, Map<Entity, Set<View>> visited, boolean checkLoaded) {<NEW_LINE>Set<View> views = visited.get(entity);<NEW_LINE>if (views == null) {<NEW_LINE>views = new HashSet<>();<NEW_LINE>visited.put(entity, views);<NEW_LINE>}... | item, visitor, visited, checkLoaded); |
1,250,166 | private Map<InputFile, NewCoverage> parse(List<String> lines) {<NEW_LINE>final Map<InputFile, FileData> files = new HashMap<>();<NEW_LINE>FileData fileData = null;<NEW_LINE>int reportLineNum = 0;<NEW_LINE>for (String line : lines) {<NEW_LINE>reportLineNum++;<NEW_LINE>if (line.startsWith(SF)) {<NEW_LINE>fileData = files... | e.getKey(), newCoverage); |
1,029,075 | final ModifyCacheParameterGroupResult executeModifyCacheParameterGroup(ModifyCacheParameterGroupRequest modifyCacheParameterGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyCacheParameterGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,305,764 | private static Multimap<Integer, Integer> generateMapping(RexBuilder rexBuilder, RelMetadataQuery mq, RelNode node, RelNode target, ImmutableBitSet positions, BiMap<RelTableRef, RelTableRef> tableMapping, EquivalenceClasses sourceEC) {<NEW_LINE>Map<RexTableInputRef, Set<RexTableInputRef>> equivalenceClassesMap = source... | > m = ArrayListMultimap.create(); |
1,484,416 | public Object sGet(SField sField) {<NEW_LINE>if (sField.getName().equals("identification")) {<NEW_LINE>return getIdentification();<NEW_LINE>}<NEW_LINE>if (sField.getName().equals("userId")) {<NEW_LINE>return getUserId();<NEW_LINE>}<NEW_LINE>if (sField.getName().equals("start")) {<NEW_LINE>return getStart();<NEW_LINE>}<... | sField.getName() + " not found"); |
254,734 | final GetPhoneNumberSettingsResult executeGetPhoneNumberSettings(GetPhoneNumberSettingsRequest getPhoneNumberSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPhoneNumberSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | false), new GetPhoneNumberSettingsResultJsonUnmarshaller()); |
89,509 | public String determineServerBase(ServletContext theServletContext, HttpServletRequest theRequest) {<NEW_LINE>if (theRequest == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String requestFullPath = StringUtils.defaultString(theRequest.getRequestURI());<NEW_LINE>String servletPath;<NEW_LINE>if (myServletPath != nul... | requestUrl.indexOf(requestPath, startOfPath); |
1,245,249 | private void completeTagIds(ParserResult parserInfo, String prefix, int astOffset, List<CompletionProposal> resultList) {<NEW_LINE>FileObject fo = parserInfo.getSnapshot().getSource().getFileObject();<NEW_LINE>if (fo == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Project project = FileOwnerQuery.getOwner(fo);<NEW_LINE... | (), parserInfo, astOffset)); |
84,303 | public void updateConditionRoute(ConditionRouteDTO newConditionRoute) {<NEW_LINE>String id = ConvertUtil.getIdFromDTO(newConditionRoute);<NEW_LINE>String path = <MASK><NEW_LINE>String existConfig = dynamicConfiguration.getConfig(path);<NEW_LINE>if (existConfig == null) {<NEW_LINE>throw new ResourceNotFoundException("no... | getPath(id, Constants.CONDITION_ROUTE); |
1,247,640 | // -------------------------------------<NEW_LINE>public static void register() {<NEW_LINE>// Check JEI recipes are enabled<NEW_LINE>if (!PersonalConfig.enableWeatherObeliskJEIRecipes.get()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MachinesPlugin.iModRegistry.addRecipeCategories(new WeatherObeliskRecipeCategory(MachinesP... | , "weather_rain", MachinesPlugin.iGuiHelper)); |
1,543,470 | // @formatter:on<NEW_LINE>@Override<NEW_LINE>PComplex compute(VirtualFrame frame, double real, double imag) {<NEW_LINE>PComplex result = specialValue(factory(), SPECIAL_VALUES, real, imag);<NEW_LINE>if (result != null) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>if (real == 0.0 && imag == 0.0) {<NEW_LINE>return facto... | (ax, ay / 8.0)); |
561,372 | public com.amazonaws.services.cognitoidp.model.UsernameExistsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.cognitoidp.model.UsernameExistsException usernameExistsException = new com.amazonaws.services.cognitoidp.model.UsernameExistsException(null);<N... | JsonToken token = context.getCurrentToken(); |
1,250,115 | public CollectFieldResult collectFields(FieldCollectorNormalizedQueryParams parameters, NormalizedField normalizedField, MergedField mergedField, int level) {<NEW_LINE>GraphQLUnmodifiedType fieldType = GraphQLTypeUtil.unwrapAll(normalizedField.getFieldDefinition().getType());<NEW_LINE>// if not composite we don't have ... | return new CollectFieldResult(children, mergedFieldByNormalizedField); |
1,668,967 | public void executeTest(final String name, CommandLineProgramTester test, final String expectedIndexExtension) throws IOException {<NEW_LINE>List<File> tmpFiles = new ArrayList<>();<NEW_LINE>for (int i = 0; i < nOutputFiles; i++) {<NEW_LINE>File fl = BaseTest.createTempFile(String.format(DEFAULT_TEMP_PREFIX + ".%d", i)... | preFormattedArgs, tmpFiles.toArray()); |
1,120,136 | protected List<DateWithLabel> generateAdapterValues(boolean showOnlyFutureDates) {<NEW_LINE>final List<DateWithLabel> days = new ArrayList<>();<NEW_LINE>Calendar instance = Calendar.getInstance();<NEW_LINE>instance.setTimeZone(dateHelper.getTimeZone());<NEW_LINE>int startDayOffset = showOnlyFutureDates ? 0 : -1 * dayCo... | add(Calendar.DATE, 1); |
443,222 | private static void careplan(List<String> textRecord, CarePlan careplan, Boolean stat) {<NEW_LINE>String cpTime = dateFromTimestamp(careplan.start);<NEW_LINE>String cpDesc = careplan.codes.get(0).display;<NEW_LINE>String status = (careplan.stop == 0L) ? "CURRENT" : "STOPPED";<NEW_LINE>if (stat) {<NEW_LINE>textRecord.ad... | add(" Reason: " + reason.display); |
1,488,656 | public AuroraPostgreSqlParameters unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AuroraPostgreSqlParameters auroraPostgreSqlParameters = new AuroraPostgreSqlParameters();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina... | int originalDepth = context.getCurrentDepth(); |
1,455,733 | private Vec3 reverseTransformVec(Vec3 in) {<NEW_LINE>float pt = AnimationTickHolder.getPartialTicks();<NEW_LINE>in = in.subtract(VecHelper.lerp(pt, prevAnimatedOffset, animatedOffset));<NEW_LINE>if (!animatedRotation.equals(Vec3.ZERO) || !prevAnimatedRotation.equals(Vec3.ZERO)) {<NEW_LINE>if (centerOfRotation == null)<... | in = in.add(centerOfRotation); |
1,265,250 | private void applyColumnWidths() {<NEW_LINE>Map<Integer, Double> constrainedWidths = new LinkedHashMap<Integer, Double>();<NEW_LINE>for (int index = 0; index < columns.size(); index++) {<NEW_LINE>Column<?, T> column = columns.get(index);<NEW_LINE>boolean hasAutoWidth = column.getWidth() < 0;<NEW_LINE>if (!hasAutoWidth)... | getColumnConfiguration().setColumnWidths(constrainedWidths); |
993,909 | private void updateDisplay(boolean announce) {<NEW_LINE>mYearView.setText(YEAR_FORMAT.format(mCalendar.getTime()));<NEW_LINE>if (mVersion == Version.VERSION_1) {<NEW_LINE>if (mDatePickerHeaderView != null) {<NEW_LINE>if (mTitle != null)<NEW_LINE>mDatePickerHeaderView.setText(mTitle);<NEW_LINE>else {<NEW_LINE>mDatePicke... | getActivity(), millis, flags); |
949,906 | public void initializeDefaultPreferences() {<NEW_LINE>IEclipsePreferences prefs = DefaultScope.INSTANCE.getNode(HTMLPlugin.PLUGIN_ID);<NEW_LINE>// prefs.putBoolean(com.aptana.editor.common.preferences.IPreferenceConstants.LINK_OUTLINE_WITH_EDITOR, true);<NEW_LINE>prefs.putDouble(IPreferenceConstants.HTML_INDEX_VERSION,... | put(IPreferenceConstants.HTML_OUTLINE_TAG_ATTRIBUTES_TO_SHOW, DEFAULT_TAG_ATTRIBUTES_TO_SHOW); |
1,697,104 | public Filter springSecurityFilterChain() throws Exception {<NEW_LINE>boolean hasConfigurers = this.webSecurityConfigurers != null && !this.webSecurityConfigurers.isEmpty();<NEW_LINE>boolean hasFilterChain = !this.securityFilterChains.isEmpty();<NEW_LINE>Assert.state(!(hasConfigurers && hasFilterChain), "Found WebSecur... | this.webSecurity.apply(adapter); |
700,758 | public static boolean toBoolean(Object value) {<NEW_LINE>if (value == Boolean.TRUE) {<NEW_LINE>return true;<NEW_LINE>} else if (value == Boolean.FALSE || value == Undefined.instance || value == Null.instance) {<NEW_LINE>return false;<NEW_LINE>} else if (isNumber(value)) {<NEW_LINE>return toBoolean((Number) value);<NEW_... | .instance, interop, null)); |
1,228,488 | public BatchPutGeofenceError unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchPutGeofenceError batchPutGeofenceError = new BatchPutGeofenceError();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | JsonToken token = context.getCurrentToken(); |
1,425,422 | public void extractBatchKeyPhrasesMaxOverload() {<NEW_LINE>// BEGIN: com.azure.ai.textanalytics.TextAnalyticsAsyncClient.extractKeyPhrasesBatch#Iterable-TextAnalyticsRequestOptions<NEW_LINE>List<TextDocumentInput> textDocumentInputs1 = Arrays.asList(new TextDocumentInput("0", "I had a wonderful trip to Seattle last wee... | "I work at Microsoft.").setLanguage("en")); |
1,054,659 | public boolean isEvenOddTree(TreeNode root) {<NEW_LINE>boolean even = true;<NEW_LINE>Deque<TreeNode> q = new ArrayDeque<>();<NEW_LINE>q.offerLast(root);<NEW_LINE>while (!q.isEmpty()) {<NEW_LINE>int prev = even ? 0 : 1000000;<NEW_LINE>for (int i = 0, n = q.size(); i < n; ++i) {<NEW_LINE>TreeNode node = q.pollFirst();<NE... | q.offerLast(node.left); |
1,207,019 | public boolean onCreateOptionsMenu(Menu menu) {<NEW_LINE>MenuInflater inflater = getMenuInflater();<NEW_LINE>inflater.inflate(R.menu.itemslist, menu);<NEW_LINE>if (fs.isGlobalShared() || fs.isAllSocial() || fs.isFilterSaved() || fs.isAllSaved() || fs.isSingleSavedTag() || fs.isInfrequent() || fs.isAllRead()) {<NEW_LINE... | .menu_read_filter).setVisible(false); |
695,750 | private void initDataTypeConstMap() {<NEW_LINE>for (int i = 0; i < DataTypeSensorToCK.values().length - 1; i++) {<NEW_LINE>DataTypeSensorToCK dt = DataTypeSensorToCK.values()[i];<NEW_LINE>if (i > this.getEntry().getDataTypeConst().size() - 1) {<NEW_LINE>dataTypeConstMap.put(dt.getIndex(), null);<NEW_LINE>continue;<NEW_... | getDataTypeConst().get(i); |
1,388,931 | private static Shape[] addBatterySymbol(Shape[] baseShape) {<NEW_LINE>Shape[] newShape = new Shape[baseShape.length + 1];<NEW_LINE>Rectangle2D bounds = baseShape[0].getBounds2D();<NEW_LINE>int offset = baseShape.length;<NEW_LINE>System.arraycopy(baseShape, 0, newShape, 0, baseShape.length);<NEW_LINE>Double vMargin = bo... | symbol.lineTo(x, cellBottom); |
1,405,194 | private TrainTestSplitter createStratifiedSplitter(Classification classification) {<NEW_LINE>String aggName = "dependent_variable_terms";<NEW_LINE>SearchRequestBuilder searchRequestBuilder = client.prepareSearch(config.getDest().getIndex()).setSize(0).setAllowPartialSearchResults(false).addAggregation(AggregationBuilde... | classCounts = new HashMap<>(); |
248,892 | public static void main(String[] args) throws Exception {<NEW_LINE>String loopBack = null;<NEW_LINE>LOG.log(Level.INFO, "Running main, port = ", args[0]);<NEW_LINE>Socket socket = new Socket(loopBack, Integer.parseInt(args[0]));<NEW_LINE>try {<NEW_LINE>AgentWorker worker = new AgentWorker();<NEW_LINE>LOG.log(Level.INFO... | PrintStream(st, true))); |
1,812,886 | // Not public<NEW_LINE>Collection<LifecycleQueryInstalledChaincodesProposalResponse> lifecycleQueryInstalledChaincodes(LifecycleQueryInstalledChaincodesRequest lifecycleQueryInstalledChaincodesRequest, Collection<Peer> peers) throws InvalidArgumentException, ProposalException {<NEW_LINE>logger.trace("LifecycleQueryInst... | qProposal = getSignedProposal(context, proposalBuilder); |
1,605,819 | public void formerSerialize(ByteBuffer buffer) {<NEW_LINE>buffer.put((byte) PhysicalPlanType.CREATE_ALIGNED_TIMESERIES.ordinal());<NEW_LINE>byte[] bytes = prefixPath.getFullPath().getBytes();<NEW_LINE>buffer.putInt(bytes.length);<NEW_LINE>buffer.put(bytes);<NEW_LINE>ReadWriteIOUtils.write(measurements.size(), buffer);<... | byte) encoding.ordinal()); |
731,645 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String webTestName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if ... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,063,400 | protected JSDynamicObject doForeignObject(JSDynamicObject newTarget, Object object, Object byteOffset0, Object length0, @CachedLibrary("object") InteropLibrary interop, @Cached("createWriteOwn()") WriteElementNode writeOwnNode, @Cached ImportValueNode importValue, @Cached("createBinaryProfile()") ConditionProfile lengt... | (object, interop, this)); |
730,006 | public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>setQueryTimeParams_result result = new setQueryTimeParams_result();<NEW_LINE>if (e instanceof QueryException) {<NEW_LINE>result.err = (QueryException... | .thrift.protocol.TMessageType.EXCEPTION; |
1,212,622 | protected void run() {<NEW_LINE>try {<NEW_LINE>runInterceptHook();<NEW_LINE>if (!trade.isPayoutPublished()) {<NEW_LINE>BtcWalletService walletService = processModel.getBtcWalletService();<NEW_LINE>String id = processModel.getOffer().getId();<NEW_LINE>Address address = walletService.getOrCreateAddressEntry(id, AddressEn... | UserThread.execute(this::unSubscribe); |
1,367,608 | public void run() {<NEW_LINE>start_sem.release();<NEW_LINE>long successful_accepts = 0;<NEW_LINE>long failed_accepts = 0;<NEW_LINE>while (!(manager_destroyed || search_destroyed)) {<NEW_LINE>try {<NEW_LINE>byte[] buf = new byte[8192];<NEW_LINE>DatagramPacket packet = new <MASK><NEW_LINE>control_socket.receive(packet);<... | DatagramPacket(buf, buf.length); |
1,740,413 | public DispatchFrame mapRow(ResultSet rs, int rowNum) throws SQLException {<NEW_LINE>DispatchFrame frame = new DispatchFrame();<NEW_LINE>frame.id = rs.getString("pk_frame");<NEW_LINE>frame.name = rs.getString("frame_name");<NEW_LINE>frame.layerId = rs.getString("pk_layer");<NEW_LINE>frame.jobId = rs.getString("pk_job")... | jobName = rs.getString("job_name"); |
1,756,165 | protected void initComponents(final String searchText) {<NEW_LINE>// TODO: merge here the changes from org.compiere.apps.search.InfoQueryCriteriaGeneral#initComponents, and drop that method<NEW_LINE>final IInfoSimple parent = getParent();<NEW_LINE>final I_AD_InfoColumn infoColumn = getAD_InfoColumn();<NEW_LINE>final Pr... | false, infoColumn.getAD_Val_Rule_ID()); |
1,542,429 | static private void scanDeadlineQueue(final long nowNanos, final PriorityBlockingQueue<QueryDeadline> deadlineQueue) {<NEW_LINE>final List<QueryDeadline> c = new ArrayList<QueryDeadline>(DEADLINE_QUEUE_SCAN_SIZE);<NEW_LINE>// drain up to that many elements.<NEW_LINE><MASK><NEW_LINE>int ndropped = 0, nrunning = 0;<NEW_L... | deadlineQueue.drainTo(c, DEADLINE_QUEUE_SCAN_SIZE); |
648,347 | public void sendWelcomeEmail(User user, boolean verifyEmail, HttpServletRequest req) {<NEW_LINE>// send welcome email notification<NEW_LINE>if (user != null) {<NEW_LINE>Map<String, Object> model = new HashMap<String, Object>();<NEW_LINE>Map<String, String> lang = getLang(req);<NEW_LINE>String subject = Utils.formatMess... | , subject, compileEmailTemplate(model)); |
214,567 | public void login() throws LoginException {<NEW_LINE>// building the first one in the current thread ensures that LoginException and IllegalArgumentException can be thrown on login<NEW_LINE>JDAImpl jda = null;<NEW_LINE>try {<NEW_LINE>final int shardId = this.queue.isEmpty() ? 0 <MASK><NEW_LINE>jda = this.buildInstance(... | : this.queue.peek(); |
830,996 | public static void evaluateEventForStatement(EventBean theEvent, Map<String, Object> optionalTriggeringPattern, List<AgentInstance> agentInstances, AgentInstanceContext agentInstanceContextCreate) {<NEW_LINE>ContextStatementEventEvaluator evaluator = agentInstanceContextCreate.getContextServiceFactory().getContextState... | evaluateEventForStatement(eventElement, agentInstances, agentInstanceContextCreate); |
1,104,284 | private Finder doCheckLastSeenAndCreateFinder(ScreenImage base, Image img, double findTimeout, Pattern ptn) {<NEW_LINE>if (base == null) {<NEW_LINE>base = getScreen().capture(this);<NEW_LINE>}<NEW_LINE>boolean shouldCheckLastSeen = false;<NEW_LINE>float score = 0;<NEW_LINE>if (!Settings.UseImageFinder && Settings.Check... | ptn).similar(score)); |
1,086,764 | private void executeParallelProjections(List<Callable<Void>> parallelProjections, List<String> parallelProjectionNameOrder, BiConsumer<String, Throwable> projectionExceptionConsumer) {<NEW_LINE>ExecutorService executor = ForkJoinPool.commonPool();<NEW_LINE>try {<NEW_LINE>List<Future<Void>> futures = executor.invokeAll(... | projectionExceptionConsumer.accept(failedProjectionName, cause); |
375,451 | public void updateBackground(Planar<T> frame) {<NEW_LINE>if (background.width != frame.width || background.height != frame.height) {<NEW_LINE>background.reshape(frame.width, frame.height);<NEW_LINE>GConvertImage.convert(frame, background);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>inputWrapper.wrap(frame);<NEW_LINE>final in... | backgroundBand = background.getBand(band); |
1,552,565 | protected void updateBestResponse(SipServletRequest request, int errorCode, ProxyBranchImpl branch) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>c_logger.traceEntry(this, "updateBestResponse", new Object[] { request, new Integer(errorCode), branch });<NEW_LINE>}<NEW_LINE>if (branch.getRecurse() && erro... | "updateBestResponse", getMyInfo() + "Not updating best response on a redirect response when proxy in recurse mode"); |
413,883 | private static void startNewInlineLine(LayoutContext c, BlockBox box, int breakAtLine, byte blockLayoutDirection, SpaceVariables space, StateVariables current, StateVariables previous, int contentStart, List<InlineBox> openInlineBoxes, Map<InlineBox, InlineLayoutBox> iBMap, int minimumLineHeight, MarkerData markerData,... | , box, breakAtLine, lineOffset)); |
826,111 | final DescribePermissionSetResult executeDescribePermissionSet(DescribePermissionSetRequest describePermissionSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePermissionSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,634,398 | private int doStartService(Context context, Intent intent) {<NEW_LINE>// It seems that startService with intent without ClassName can fail due to a framework bug<NEW_LINE>// See: http://b/19873307 and http://b/24065801 for GCM<NEW_LINE>String className = resolveServiceClassName(context, intent);<NEW_LINE>if (className ... | Log.d(TAG, "Missing wake lock permission, service start may be delayed"); |
1,371,617 | final GetLicenseResult executeGetLicense(GetLicenseRequest getLicenseRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getLicenseRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | (super.beforeMarshalling(getLicenseRequest)); |
1,770,841 | public KeyspaceMetadata dropSecondaryIndex(final KeyspaceMetadata ksm, final CFMetaData cfm0, final Collection<Mutation> mutations, final Collection<Event.SchemaChange> events) throws RequestExecutionException {<NEW_LINE>KeyspaceMetadata ksm2 = ksm;<NEW_LINE>for (IndexMetadata idx : cfm0.getIndexes()) {<NEW_LINE>if (id... | setIndex(idx.name, true); |
447,555 | private Change updateSpectatorPositions() {<NEW_LINE>if (entityTracker == null) {<NEW_LINE>return CombinedChange.create();<NEW_LINE>}<NEW_LINE>List<Change> changes = new ArrayList<>();<NEW_LINE>timePath.updateAll();<NEW_LINE>for (Keyframe keyframe : positionPath.getKeyframes()) {<NEW_LINE>Optional<Integer> spectator = ... | (0F, 0F, 0F)); |
922,625 | final UpdateLoggerDefinitionResult executeUpdateLoggerDefinition(UpdateLoggerDefinitionRequest updateLoggerDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateLoggerDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,553,728 | public boolean performOk() {<NEW_LINE>List<QMObjectType> objectTypes = new ArrayList<>();<NEW_LINE>List<String> queryTypes = new ArrayList<>();<NEW_LINE>if (checkObjectTypeSessions.getSelection())<NEW_LINE>objectTypes.add(QMObjectType.session);<NEW_LINE>if (checkObjectTypeTxn.getSelection())<NEW_LINE>objectTypes.add(QM... | PROP_LOG_DIRECTORY, textOutputFolder.getText()); |
1,321,532 | private void basicCRUD(Realm realm) {<NEW_LINE>showStatus("Perform basic Create/Read/Update/Delete (CRUD) operations...");<NEW_LINE>// All writes must be wrapped in a transaction to facilitate safe multi threading<NEW_LINE>realm.executeTransaction(r -> {<NEW_LINE>// Add a person.<NEW_LINE>// RealmObjects with primary k... | .delete(Person.class)); |
326,729 | private FollowerInfo createTestFollowerInfo() {<NEW_LINE>List<Follower> test = new ArrayList<>();<NEW_LINE>test.add(createTestFollower(stream, 30, 24 * 60, true));<NEW_LINE>test.add(createTestFollower(stream, 80, 24 * 1087, true));<NEW_LINE>test.add(createTestFollower(stream, 90, 1, true));<NEW_LINE>test.add(createTest... | , 24 * 900, false)); |
1,419,143 | public RecommendedList recommendRating(LibrecDataList<AbstractBaseDataEntry> dataList) throws LibrecException {<NEW_LINE>int numDataEntries = dataList.size();<NEW_LINE>RecommendedList recommendedList = new RecommendedList(numDataEntries);<NEW_LINE>for (int contextIdx = 0; contextIdx < numDataEntries; ++contextIdx) {<NE... | BaseRatingDataEntry) dataList.getDataEntry(contextIdx); |
651,619 | public void run(String... args) {<NEW_LINE>CommandLineOptions options = new CommandLineOptions(args);<NEW_LINE>if (options.help()) {<NEW_LINE>out.println(options.helpText());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FileSource fileSource = options.filesRoot();<NEW_LINE>fileSource.createIfNecessary();<NEW_LINE>FileSource fi... | setActualHttpsPort(wireMockServer.httpsPort()); |
1,533,204 | public void marshall(StorageDescriptor storageDescriptor, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (storageDescriptor == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(storageDescriptor.getColumns(), C... | storageDescriptor.getSkewedInfo(), SKEWEDINFO_BINDING); |
485,723 | final DescribeOrganizationConformancePacksResult executeDescribeOrganizationConformancePacks(DescribeOrganizationConformancePacksRequest describeOrganizationConformancePacksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOrganizationConformancePacksRequest);<NEW_LINE><MASK><NEW_LI... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
55,592 | @JSONP<NEW_LINE>@NoCache<NEW_LINE>@Path("/reindex")<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON })<NEW_LINE>public Response startReindex(@Context final HttpServletRequest request, @Context final HttpServletResponse response, @QueryParam("shards") int shards, @DefaultValue(DOTALL) @QueryParam("contentType") String c... | init = auth(request, response); |
774,997 | public static void main(String[] args) {<NEW_LINE>Exercise19<Integer> linkedList = new Exercise19<>();<NEW_LINE>linkedList.add(0);<NEW_LINE>linkedList.add(1);<NEW_LINE>linkedList.add(2);<NEW_LINE>linkedList.add(3);<NEW_LINE>StdOut.println("Before removing last node");<NEW_LINE>StringJoiner listBeforeRemove = new String... | (String.valueOf(number)); |
1,748,926 | public static TruffleString temporalDateTimeToString(int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond, int nanosecond, JSDynamicObject calendar, Object precision, ShowCalendar showCalendar) {<NEW_LINE>TruffleString yearString = TemporalUtil.padISOYear(year);<NEW_LINE>Truf... | Strings.format("%1$02d", day); |
1,248,921 | public Result process(CvPipeline pipeline) throws Exception {<NEW_LINE>if (templateMatchesStageName == null || templateMatchesStageName.trim().isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Result result = pipeline.getExpectedResult(templateMatchesStageName);<NEW_LINE>if (result.model == null) {<NEW_LINE>return... | Mat mat = pipeline.getWorkingImage(); |
609,560 | public static RoaringBitmap or(final RoaringBitmap x1, final RoaringBitmap x2) {<NEW_LINE>final RoaringBitmap answer = new RoaringBitmap();<NEW_LINE>int pos1 = 0, pos2 = 0;<NEW_LINE>final int length1 = x1.highLowContainer.size(), length2 = x2.highLowContainer.size();<NEW_LINE>main: if (pos1 < length1 && pos2 < length2)... | x1.highLowContainer.getKeyAtIndex(pos1); |
537,738 | public IHarvestResult harvestBlock(@Nonnull IFarmer farm, @Nonnull BlockPos bc, @Nonnull final IBlockState stateIn) {<NEW_LINE>IBlockState state = stateIn;<NEW_LINE>Block block = state.getBlock();<NEW_LINE>if (block != getPlantedBlock()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (!farm.hasTool(FarmingTool.HOE)) {<... | harvestBlock(farm, checkBlock, state); |
40,163 | NexentaStorZvol createIscsiVolume(String volumeName, Long volumeSize) {<NEW_LINE>final String zvolName = getVolumeName(volumeName);<NEW_LINE>String volumeSizeString = String.format("%dB", volumeSize);<NEW_LINE>client.execute(NmsResponse.class, "zvol", "create", zvolName, volumeSizeString, parameters.getVolumeBlockSize(... | return new NexentaStorZvol(zvolName, targetName); |
120,564 | // TODO: export also UI gestures file if available, preferably based on user option<NEW_LINE>private static void export(final FileObject sourceFO, final File targetFile) {<NEW_LINE>final ProgressHandle progress = ProgressHandle.createHandle(Bundle.ExportSnapshotAction_ProgressMsg());<NEW_LINE>progress.setInitialDelay(5... | "Failed to export NPSS snapshot: " + t.getMessage()); |
636,828 | Model fromModelRef(springfox.documentation.schema.ModelReference modelRef) {<NEW_LINE>if (modelRef.isCollection()) {<NEW_LINE>if (modelRef.getItemType().equals("byte")) {<NEW_LINE>ModelImpl baseModel = new ModelImpl();<NEW_LINE>baseModel.setType("string");<NEW_LINE>baseModel.setFormat("byte");<NEW_LINE>return maybeAddA... | baseModel, modelRef.getAllowableValues()); |
595,799 | final DeleteUserPoolDomainResult executeDeleteUserPoolDomain(DeleteUserPoolDomainRequest deleteUserPoolDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUserPoolDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
553,049 | public void loginAsync(long accountId, String passwordTemp, long providerId, boolean retry) {<NEW_LINE>mAccountId = accountId;<NEW_LINE>mPassword = passwordTemp;<NEW_LINE>mProviderId = providerId;<NEW_LINE>mRetryLogin = retry;<NEW_LINE>ContentResolver contentResolver = mContext.getContentResolver();<NEW_LINE>if (mPassw... | .split(":")[1]; |
1,396,786 | final UpdateDistributionResult executeUpdateDistribution(UpdateDistributionRequest updateDistributionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDistributionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.