idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
904,193 | public void startExperiment(SearchForActions<NQueensBoard, QueenAction> search) {<NEW_LINE>search.addNodeListener(n -> notifyProgressTrackers(n.getState()<MASK><NEW_LINE>Problem<NQueensBoard, QueenAction> problem;<NEW_LINE>if (board.getNumberOfQueensOnBoard() == 0)<NEW_LINE>problem = new GeneralProblem<>(board, NQueens... | , search.getMetrics())); |
591,610 | public static KeyPair genKeyPair(KeyPairType keyPairType, String provider, int keySize) throws CryptoException, NoSuchProviderException {<NEW_LINE>try {<NEW_LINE>if (keyPairType == KeyPairType.ECDSA) {<NEW_LINE>throw new CryptoException("Could not support ''" + keyPairType + "'' key pair.");<NEW_LINE>}<NEW_LINE>KeyPair... | getInstance(keyPairType.name()); |
448,263 | public static void main(String[] args) throws ApiException, IOException, org.wso2.carbon.apimgt.samples.utils.store.rest.client.ApiException {<NEW_LINE>if (StringUtils.isEmpty(System.getProperty(Constants.JAVAX_NET_SSL_TRUST_STORE))) {<NEW_LINE>System.setProperty(Constants.JAVAX_NET_SSL_TRUST_STORE, clientTrustStore);<... | System.out.println("Deploying sample back end"); |
1,016,369 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, 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 be null."))... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
1,222,814 | private void init() {<NEW_LINE>this.setLayout(new BorderLayout());<NEW_LINE>// HEADER<NEW_LINE>Box boxV = Box.createVerticalBox();<NEW_LINE>// DIALS/HTML+Bars<NEW_LINE>Box boxH = Box.createHorizontalBox();<NEW_LINE>// DIALS<NEW_LINE>Box boxV1 = Box.createVerticalBox();<NEW_LINE>// HTML/Bars<NEW_LINE>Box boxV2 = Box.cre... | Box boxH1 = Box.createHorizontalBox(); |
598,155 | final CopyBackupToRegionResult executeCopyBackupToRegion(CopyBackupToRegionRequest copyBackupToRegionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(copyBackupToRegionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,240,694 | public boolean saveOrUpdateBatch(Collection<T> entityList, int batchSize) {<NEW_LINE>TableInfo tableInfo = TableInfoHelper.getTableInfo(entityClass);<NEW_LINE>Assert.notNull(tableInfo, "error: can not execute. because can not find cache of TableInfo for entity!");<NEW_LINE>String keyProperty = tableInfo.getKeyProperty(... | SqlMethod.SELECT_BY_ID), entity)); |
798,716 | public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> SelectSelectStep<Record16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>> select(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> ... | , field14, field15, field16 }); |
589,238 | public Optional<InputDataSourceId> retrieveInputDataSourceIdBy(@NonNull final InputDataSourceQuery query) {<NEW_LINE>final IQueryBL queryBL = Services.get(IQueryBL.class);<NEW_LINE>final IQueryBuilder<I_AD_InputDataSource> queryBuilder = queryBL.createQueryBuilder(<MASK><NEW_LINE>Check.assumeNotNull(query.getOrgId(), "... | I_AD_InputDataSource.class).addOnlyActiveRecordsFilter(); |
698,400 | protected void mStep() {<NEW_LINE>double sumAlpha = alpha.sum();<NEW_LINE>double sumBeta = beta.sum();<NEW_LINE>double ak, br;<NEW_LINE>// update alpha vector<NEW_LINE>for (int k = 0; k < numTopics; k++) {<NEW_LINE><MASK><NEW_LINE>double numerator = 0, denominator = 0;<NEW_LINE>for (int u = 0; u < numUsers; u++) {<NEW_... | ak = alpha.get(k); |
437,344 | public ListV2LoggingLevelsResult listV2LoggingLevels(ListV2LoggingLevelsRequest listV2LoggingLevelsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listV2LoggingLevelsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionCont... | awsRequestMetrics.endEvent(Field.ClientExecuteTime); |
1,248,056 | public void config(String name, final OServerParameterConfiguration[] iParameters) {<NEW_LINE>super.config(name, iParameters);<NEW_LINE>for (OServerParameterConfiguration param : iParameters) {<NEW_LINE>if (param.name.equalsIgnoreCase(PARAM_NETWORK_SSL_CLIENT_AUTH)) {<NEW_LINE>clientAuth = Boolean.parseBoolean(param.va... | .resolveSystemVariables("${ORIENTDB_HOME}"), trustStorePath); |
545,833 | public static void initialize(Core core) {<NEW_LINE>ConfigurationManager config = ConfigurationManager.getInstance();<NEW_LINE>if ("az2".equalsIgnoreCase(config.getStringParameter("ui", "az3"))) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int userMode = COConfigurationManager.getIntParameter("User Mode");<NEW_LINE>boolean s... | defaults.addParameter("LibraryDL.UseDefaultIndicatorColor", false); |
1,153,405 | public void fileJournalChanged() {<NEW_LINE><MASK><NEW_LINE>for (long i = USN - 1; i >= lastUSN; --i) {<NEW_LINE>FileSystemJournalEntry entry = FileSystemJournal.getEntry(i);<NEW_LINE>if (entry != null) {<NEW_LINE>String path = entry.getPath();<NEW_LINE>if (entry.getEvent() == FileSystemJournalEntry.FILE_ADDED && path.... | long USN = FileSystemJournal.getNextUSN(); |
470,799 | public List<String> sortMetricNames(String groupName, List<String> originMetricNames) {<NEW_LINE>Group <MASK><NEW_LINE>List<String> result = new ArrayList<String>();<NEW_LINE>if (group != null) {<NEW_LINE>List<Metric> list = new ArrayList<Metric>();<NEW_LINE>for (Entry<String, Metric> entry : group.getMetrics().entrySe... | group = m_config.findGroup(groupName); |
1,458,640 | private SSLContext createSslContext(SecurityStore keystore, SecurityStore truststore) {<NEW_LINE>try {<NEW_LINE>SSLContext sslContext;<NEW_LINE>if (isNotEmpty(provider)) {<NEW_LINE>sslContext = SSLContext.getInstance(protocol, provider);<NEW_LINE>} else {<NEW_LINE>sslContext = SSLContext.getInstance(protocol);<NEW_LINE... | kmf = KeyManagerFactory.getInstance(kmfAlgorithm); |
1,218,152 | private void updateTransformTaskConfig(TransformTask transformTask, @NonNull Collection<TransformStream> consumedInputStreams, @NonNull Collection<TransformStream> referencedInputStreams, @Nullable IntermediateStream outputStream) throws IllegalAccessException {<NEW_LINE>Field consumedInputStreamsField = FieldUtils.get... | StreamBasedTask.class, "referencedInputStreams", true); |
1,010,538 | private void moveRuntimeDataFile(Path dir) {<NEW_LINE>File runtimeDataNewLoc = dir.resolve(BfConsts.RELPATH_BATFISH).resolve(BfConsts.RELPATH_RUNTIME_DATA_FILE).toFile();<NEW_LINE>File runtimeDataOldLoc = dir.resolve(<MASK><NEW_LINE>if (runtimeDataNewLoc.exists()) {<NEW_LINE>// The runtime data file already exists unde... | BfConsts.RELPATH_RUNTIME_DATA_FILE).toFile(); |
1,178,499 | private void parse() {<NEW_LINE>// From: https://tools.ietf.org/html/rfc7231#section-3.1.1.1<NEW_LINE>// The type, subtype, and parameter name tokens are case-insensitive.<NEW_LINE>// media-type = type "/" subtype *( OWS ";" OWS parameter )<NEW_LINE>// type = token.<NEW_LINE>type = parseToken().toLowerCase(Locale... | ? parseQuotedString() : parseToken(); |
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>}... | View propertyView = property.getView(); |
444,104 | // default match algorithm, find match for character under cursor<NEW_LINE>@Override<NEW_LINE>protected int destination(int offset, TextContent content, int count) throws CommandExecutionException {<NEW_LINE>LineInformation line = content.getLineInformationOfOffset(offset);<NEW_LINE>// Check for one-character pairs.<NE... | content.getText(index, 1); |
680,497 | static Map<String, Map<String, Map<String, IpSpace>>> union(Map<String, Map<String, Map<String, IpSpace>>> ipSpaces1, Map<String, Map<String, Map<String, IpSpace>>> ipSpaces2) {<NEW_LINE>checkArgument(ipSpaces1.keySet().equals(ipSpaces2.keySet()), "Can't union with different nodes: %s and %s", ipSpaces1.keySet(), ipSpa... | ), vrfIpSpaces2.keySet()); |
461,341 | public double findPutMessageEntireTimePX(double px) {<NEW_LINE>Map<Long, LongAdder> lastBuckets = this.lastBuckets;<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>double result = 0.0;<NEW_LINE>long totalRequest = lastBuckets.values().stream().mapToLong(LongAdder::longValue).sum();<NEW_LINE>long pxIndex = (l... | ) * relativeIndex / (double) count; |
20,695 | protected AuthenticationResponse authenticateWithExtension(String pluginId, AccessTokenCredential credentials, SecurityAuthConfig authConfig, List<PluginRoleConfig> pluginRoleConfigs) {<NEW_LINE>String username = credentials.getAccessToken().getUsername();<NEW_LINE>if (authorizationExtensionCacheService.isValidUser(plu... | return new AuthenticationResponse(user, roles); |
984,537 | final CreateVirtualRouterResult executeCreateVirtualRouter(CreateVirtualRouterRequest createVirtualRouterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createVirtualRouterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | false), new CreateVirtualRouterResultJsonUnmarshaller()); |
1,378,049 | private void updateReasonerStatus(ReasonerStatus status) {<NEW_LINE>reasonerStatus.<MASK><NEW_LINE>startReasonerAction.setEnabled(status.isEnableInitialization());<NEW_LINE>startReasonerAction.putValue(Action.SHORT_DESCRIPTION, status.getInitializationTooltip());<NEW_LINE>synchronizeReasonerAction.setEnabled(status.isE... | setText(status.getDescription()); |
779,099 | void monitor(ArcConfig config, BuildProducer<DevConsoleRuntimeTemplateInfoBuildItem> runtimeInfos, BuildProducer<AdditionalBeanBuildItem> beans, BuildProducer<AnnotationsTransformerBuildItem> annotationTransformers, CustomScopeAnnotationsBuildItem customScopes, List<BeanDefiningAnnotationBuildItem> beanDefiningAnnotati... | .getTarget().asClass(); |
997,926 | public com.amazonaws.services.cloudcontrolapi.model.GeneralServiceException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.cloudcontrolapi.model.GeneralServiceException generalServiceException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = con... | cloudcontrolapi.model.GeneralServiceException(null); |
1,056,928 | private void addConnectionActions(Menu menu, IDiagramModelArchimateComponent sourceDiagramModelComponent) {<NEW_LINE>for (EClass relationshipType : ArchimateModelUtils.getRelationsClasses()) {<NEW_LINE>if (ArchimateModelUtils.isValidRelationshipStart(sourceDiagramModelComponent.getArchimateConcept(), relationshipType))... | ArchimateModelUtils.getBusinessClasses(), relationshipType); |
637,081 | protected void CopyString20(int Length, int Distance) {<NEW_LINE>lastDist = oldDist<MASK><NEW_LINE>lastLength = Length;<NEW_LINE>destUnpSize -= Length;<NEW_LINE>int DestPtr = unpPtr - Distance;<NEW_LINE>if (DestPtr < Compress.MAXWINSIZE - 300 && unpPtr < Compress.MAXWINSIZE - 300) {<NEW_LINE>window[unpPtr++] = window[D... | [oldDistPtr++ & 3] = Distance; |
791,051 | public void write(Configuration config) throws IOException {<NEW_LINE>pp.startDocument();<NEW_LINE>pp.startElement("duke", null);<NEW_LINE>// FIXME: here we should write the objects, but that's not<NEW_LINE>// possible with the current API. we don't need that for the<NEW_LINE>// genetic algorithm at the moment, but it ... | "" + config.getThreshold()); |
1,064,478 | private int predictSerializedSize(final byte server_version) {<NEW_LINE>int size = 0;<NEW_LINE>// int: Number of parameters.<NEW_LINE>size += 4;<NEW_LINE>// byte: Type of the 1st parameter.<NEW_LINE>size += 1;<NEW_LINE>// byte: Type again (see HBASE-2877).<NEW_LINE>size += 1;<NEW_LINE>// int: How many regions do we w... | size += req.predictSerializedSize(server_version); |
1,677,330 | private void updateCoProductCosts(MPPProductBOM bom, MCost baseDimension, String trxName) {<NEW_LINE>// Skip if not BOM found<NEW_LINE>if (bom == null)<NEW_LINE>return;<NEW_LINE>AtomicReference<BigDecimal> costPriceTotal = new AtomicReference<>(Env.ZERO);<NEW_LINE>// Iterate bom lines<NEW_LINE>Arrays.stream(bom.getLine... | setM_Product_ID(bomLine.getM_Product_ID()); |
100,421 | public Response generateInstallation(KeycloakSession session, RealmModel realm, ClientModel client, URI baseUri) {<NEW_LINE>ClientManager.InstallationAdapterConfig rep = new ClientManager.InstallationAdapterConfig();<NEW_LINE>rep.setAuthServerUrl(baseUri.toString());<NEW_LINE>rep.setRealm(realm.getName());<NEW_LINE>rep... | name().toLowerCase()); |
261,189 | public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>inflater = (LayoutInflater) getContext().getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);<NEW_LINE>View view = inflater.inflate(R.layout.al_conversation_fra... | findViewById(R.id.conversationRecyclerView); |
1,211,040 | AuthResponseMessageV4 makeAuthInitiateV4(AuthInitiateMessageV4 initiate, ECKey key) {<NEW_LINE>initiatorNonce = initiate.nonce;<NEW_LINE>remotePublicKey = initiate.publicKey;<NEW_LINE>BigInteger secretScalar = remotePublicKey.multiply(key.getPrivKey()).normalize().getXCoord().toBigInteger();<NEW_LINE>byte[] token = Byt... | signed = xor(token, initiatorNonce); |
327,674 | // Adjust upwards starting at this node until stopAt<NEW_LINE>private void adjustUpwards(TreeNode<E, T> node, TreeNode<E, T> stopAt) {<NEW_LINE>TreeNode<E, T> n = node;<NEW_LINE>while (n != null && n != stopAt) {<NEW_LINE>int leftSize = (n.left != null) ? n.left.size : 0;<NEW_LINE>int rightSize = (n.right != null) ? n.... | maxEnd, n.left.maxEnd); |
1,699,834 | protected void createStmt(polyglot.ast.Stmt stmt) {<NEW_LINE>// System.out.println("stmt: "+stmt.getClass());<NEW_LINE>if (stmt instanceof polyglot.ast.Eval) {<NEW_LINE>base().createAggressiveExpr(((polyglot.ast.Eval) stmt).expr(), false, false);<NEW_LINE>} else if (stmt instanceof polyglot.ast.If) {<NEW_LINE>createIf2... | polyglot.ast.While) stmt); |
455,734 | protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final IOperandTreeNode registerOperand2 = i... | = (registerOperand1.getValue()); |
198,406 | public void deParse(GroupByElement groupBy) {<NEW_LINE>buffer.append("GROUP BY ");<NEW_LINE>if (groupBy.isUsingBrackets()) {<NEW_LINE>buffer.append("( ");<NEW_LINE>}<NEW_LINE>List<Expression> expressions = groupBy.getGroupByExpressionList().getExpressions();<NEW_LINE>if (expressions != null) {<NEW_LINE>for (Iterator<Ex... | "()" : list.toString()); |
1,009,981 | public android.os.ParcelFileDescriptor openFile(android.net.Uri uri, String mode) throws java.io.FileNotFoundException {<NEW_LINE>CheckForPathTraversal(uri);<NEW_LINE>// Retrieve the requested file and pass the file reference to the calling client/application via a parcel.<NEW_LINE>java.io.File dataDir = new java.io.Fi... | String rootCanonicalPath = dataDir.getCanonicalPath(); |
1,630,310 | private ArrayList<String> removeOriginalDuePropertyWhereInvalid(Runnable notifyProgress) {<NEW_LINE>Timber.d("removeOriginalDuePropertyWhereInvalid()");<NEW_LINE>ArrayList<String> problems = new ArrayList<>(1);<NEW_LINE>notifyProgress.run();<NEW_LINE>// cards with odue set when it shouldn't be<NEW_LINE>ArrayList<Long> ... | ids.size() + " card(s) with invalid properties."); |
1,027,797 | private Optional<PaymentAllocationBuilder> preparePaymentAllocationBuilder(@NonNull final PaymentAllocationCriteria paymentAllocationCriteria) {<NEW_LINE>final boolean paymentAllocationItemsMissing = CollectionUtils.isEmpty(paymentAllocationCriteria.getPaymentAllocationPayableItems());<NEW_LINE>if (paymentAllocationIte... | ), ZoneId.systemDefault()); |
929,799 | public static Certificate readCertificate(InputStream stream) throws FileNotFoundException, CertificateException, IOException {<NEW_LINE>CertificateFactory certFactory = CertificateFactory.getInstance("X.509");<NEW_LINE>Collection<? extends java.security.cert.Certificate> certs = certFactory.generateCertificates(stream... | asn1.x509.Certificate[1]; |
993,410 | private static void newSparseElementToElements(HtmlElementTables.HtmlElementNames en, JsonObject obj, String fieldName, SourceLineWriter src) {<NEW_LINE>List<int[]> arrs = Lists.newArrayList();<NEW_LINE>for (String elname : obj.keySet()) {<NEW_LINE>int ei = en.getElementNameIndex(elname);<NEW_LINE>ImmutableSet.Builder<... | int[iset.size()]; |
954,651 | private List<BackupMessageMeta> scanMessageMeta(String subject, String messageId) {<NEW_LINE>final LocalDateTime now = LocalDateTime.now();<NEW_LINE>final Date createTimeEnd = localDateTime2Date(now);<NEW_LINE>final Date createTimeBegin = localDateTime2Date(now.minusDays(30));<NEW_LINE>try {<NEW_LINE>final String subje... | (Sets.newHashSet(metas)); |
575,069 | public void marshall(Cluster cluster, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (cluster == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(cluster.getName(), NAME_BINDING);<NEW_LINE>protocolMarshaller.m... | cluster.getSnsTopicStatus(), SNSTOPICSTATUS_BINDING); |
733,887 | private void initialize() {<NEW_LINE>if (!(doc instanceof StyledDocument)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GuardedSectionManager mgr = GuardedSectionManager.getInstance((StyledDocument) doc);<NEW_LINE>if (mgr == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>len = doc.getLength();<NEW_LINE>int[] arr = new int[10];... | ().getOffset() + 1; |
515,438 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>if (cacher == null) {<NEW_LINE>try {<NEW_LINE>cacher = ResponseCacheMiddleware.addCache(AsyncHttpClient.getDefaultInstance(), getFileStreamPath("asynccache"), 1024 * 1024 * 10);<NEW_LINE>cacher.setCaching(false);<NEW... | findViewById(R.id.go); |
1,048,582 | // generate initial rwr vector<NEW_LINE>public void gen_initial_vector(long number_nodes, Path vector_path) throws IOException {<NEW_LINE>int i, j = 0;<NEW_LINE>int <MASK><NEW_LINE>String file_name = "rwr_init_vector.temp";<NEW_LINE>FileWriter file = new FileWriter(file_name);<NEW_LINE>BufferedWriter out = new Buffered... | milestone = (int) number_nodes / 10; |
1,703,260 | public void snmpV2Trap(SnmpOid trapOid, SnmpVarBindList varBindList) throws IOException, SnmpStatusException {<NEW_LINE>if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINER)) {<NEW_LINE>SNMP_ADAPTOR_LOGGER.logp(Level.FINER, <MASK><NEW_LINE>}<NEW_LINE>// First, make an SNMP V2 trap pdu<NEW_LINE>// We clone varBindList and ins... | dbgTag, "snmpV2Trap", "trapOid=" + trapOid); |
416,506 | public void filterWsdlRequest(SubmitContext context, WsdlRequest wsdlRequest) {<NEW_LINE>HttpRequest postMethod = (HttpRequest) context.getProperty(BaseHttpRequestTransport.HTTP_METHOD);<NEW_LINE>WsdlInterface wsdlInterface = (WsdlInterface) wsdlRequest.getOperation().getInterface();<NEW_LINE>// init content-type and e... | .getContentTypeHttpHeader(encoding, soapAction)); |
1,005,498 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {<NEW_LINE>String token = request.getHeader("token");<NEW_LINE>if (StringUtils.isEmpty(token)) {<NEW_LINE>RestUtil.response(response, SystemCode.UNAUTHORIZED);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>i... | ), refreshToken.getToken()); |
804,373 | void update(@NonNull final Collection<? extends URL> update) {<NEW_LINE>final List<? extends PathResourceImplementation<MASK><NEW_LINE>final List<PathResourceImplementation> next = new ArrayList<>();<NEW_LINE>final Set<URL> updateSet = new LinkedHashSet<>(update);<NEW_LINE>boolean dirty = false;<NEW_LINE>for (PathResou... | > current = cache.get(); |
529,824 | private Action createSUSPEND_ACTION(RequestProcessor requestProcessor) {<NEW_LINE>return Models.createAction(NbBundle.getBundle(DebuggingActionsProvider.class).getString("CTL_ThreadAction_Suspend_Label"), new LazyActionPerformer(requestProcessor) {<NEW_LINE><NEW_LINE>public boolean isEnabled(Object node) {<NEW_LINE>// ... | JPDADVThread) node).suspend(); |
1,590,399 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String envName, String name, 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... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,065,828 | public void handle(RoutingContext ctx) {<NEW_LINE>initLazyState();<NEW_LINE>// Redirect /q/dev to /q/dev/<NEW_LINE>if (ctx.normalizedPath().length() == devRootAppend.length()) {<NEW_LINE>ctx.response().setStatusCode(302);<NEW_LINE>ctx.response().headers().set(HttpHeaders.LOCATION, devRootAppend + "/");<NEW_LINE>ctx.res... | devTemplate = engine.getTemplate(path); |
922,122 | public Optional<Host> findDefaultHost(final String contentTypeId, final String columnName) throws DotDataException, DotSecurityException {<NEW_LINE>Host defaultHost = this.siteCache.getDefaultHost();<NEW_LINE>if (null != defaultHost) {<NEW_LINE>return Optional.of(defaultHost);<NEW_LINE>}<NEW_LINE>final DotConnect dotCo... | this.siteCache.add(defaultHost); |
1,115,522 | private void jbInit() throws Exception {<NEW_LINE>AdempierePLAF.setDefaultBackground(panel);<NEW_LINE>newBorder = new TitledBorder("");<NEW_LINE>accountBorder = new TitledBorder("");<NEW_LINE>mainPanel.setLayout(mainLayout);<NEW_LINE>newPanel.setBorder(newBorder);<NEW_LINE>newPanel.setLayout(newLayout);<NEW_LINE>newBor... | .getCtx(), "Account_ID")); |
47,669 | public PageHandler query(Short siteId, boolean projection, boolean phrase, HighLighterQuery highLighterQuery, Integer[] categoryIds, String[] modelIds, String text, String[] fields, Long[] tagIds, String[] dictionaryValues, Date startPublishDate, Date endPublishDate, Date expiryDate, String orderField, Integer pageInde... | startPublishDate, endPublishDate, expiryDate, orderField); |
749,069 | public okhttp3.Call connectPostNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}... | localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); |
1,002,632 | public static PrimitiveCoderDescriptor createCoderDescriptorFor(final char encoding) {<NEW_LINE>switch(encoding) {<NEW_LINE>case 'B':<NEW_LINE>return new PrimitiveCoderDescriptor(BoolCoder.INST, "false");<NEW_LINE>case 'c':<NEW_LINE>return new PrimitiveCoderDescriptor(SCharCoder.INST, "0");<NEW_LINE>case 'C':<NEW_LINE>... | PrimitiveCoderDescriptor(UIntCoder.INST, "0"); |
954,628 | public static void deleteLoggers(List<Map<String, Object>> allRows, String configName) {<NEW_LINE>ArrayList<String> newLoggers = new ArrayList<String>();<NEW_LINE>HashMap attrs = new HashMap();<NEW_LINE>attrs.put("target", configName);<NEW_LINE>Map result = RestUtil.restRequest((String) GuiUtil.getSessionValue("REST_UR... | ) oneRow.get("loggerName")); |
115,937 | public static byte[] encryptCCM(@NotNull final byte[] data, @NotNull final byte[] key, @NotNull final byte[] nonce, final int micSize) {<NEW_LINE>Objects.requireNonNull(data);<NEW_LINE>Objects.requireNonNull(key);<NEW_LINE>Objects.requireNonNull(nonce);<NEW_LINE>final byte[] ccm = new byte[data.length + micSize];<NEW_L... | ccmBlockCipher.doFinal(ccm, 0); |
557,815 | public void afterPropertiesSet() {<NEW_LINE>super.afterPropertiesSet();<NEW_LINE>Assert.state(this.exposeListenerChannel || !getAcknowledgeMode().isManual(), "You cannot acknowledge messages manually if the channel is not exposed to the listener " + "(please check your configuration and set exposeListenerChannel=true o... | ), "The acknowledgeMode is NONE (autoack in Rabbit terms) which is not consistent with having a " + "transactional channel. Either use a different AcknowledgeMode or make sure " + "channelTransacted=false"); |
1,630,370 | public void calibrateZ(ReferenceNozzleTip nt) throws Exception {<NEW_LINE>if (nt != getCalibrationNozzleTip()) {<NEW_LINE>throw new Exception("Nozzle " + getName() + " has not nozzle tip " + <MASK><NEW_LINE>}<NEW_LINE>if (nt == null) {<NEW_LINE>throw new Exception("Nozzle " + getName() + " has no nozzle tip loaded.");<... | nt.getName() + " loaded."); |
1,622,297 | private static TileSourceTemplate createWmsTileSourceTemplate(Map<String, String> attributes) {<NEW_LINE>String name = attributes.get("name");<NEW_LINE>String layer = attributes.get("layer");<NEW_LINE>String urlTemplate = attributes.get("url_template");<NEW_LINE>if (name == null || urlTemplate == null || layer == null)... | randoms = attributes.get("randoms"); |
466,522 | protected void doBootstrap(ConnectionState curState) {<NEW_LINE>if (null != _lastOpenConnection) {<NEW_LINE>_lastOpenConnection.close();<NEW_LINE>_lastOpenConnection = null;<NEW_LINE>}<NEW_LINE>Checkpoint bootstrapCkpt = null;<NEW_LINE>if (_sourcesConn.getBootstrapPuller() == null) {<NEW_LINE>_log.warn("doBootstrap got... | _log.error("Exception occured while switching to bootstrap: ", e); |
1,425,355 | private void handleRegistration(Context context, Bundle extras) {<NEW_LINE><MASK><NEW_LINE>String token = extras.getString(ANSConstants.ANS_EXTRA_TOKEN);<NEW_LINE>String error = extras.getString(ANSConstants.ANS_EXTRA_ERROR);<NEW_LINE>String type = extras.getString(ANSConstants.ANS_EXTRA_RESPONSE_TYPE);<NEW_LINE>// PRO... | Logger.T(TAG, "Handling rhoconnect-push relgistratoion response"); |
799,070 | protected static Pair<Type, Integer> fromThrift(TTypeDesc typeDesc, int nodeIdx) throws InternalException {<NEW_LINE>TTypeNode node = typeDesc.getTypes().get(nodeIdx);<NEW_LINE>Type type = null;<NEW_LINE>switch(node.getType()) {<NEW_LINE>case SCALAR:<NEW_LINE>{<NEW_LINE>Preconditions.checkState(node.isSetScalarType());... | ), scalarType.getScale()); |
384,163 | private void addTaxLossAdjustmentAccountStatementTransaction() {<NEW_LINE>DocumentType type = new DocumentType("KONTOAUSZUG");<NEW_LINE>this.addDocumentTyp(type);<NEW_LINE>Block block = new Block("^[\\d]{1,2}\\.[\\d]{1,2} KESt\\-Verlustausgleich .*$");<NEW_LINE>type.addBlock(block);<NEW_LINE>Transaction<AccountTransact... | v.get("currency"))); |
829,845 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String networkVirtualApplianceName, 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.... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
95,496 | public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.stringListField(INDEX_PATTERNS.getPreferredName(), this.indexPatterns);<NEW_LINE>if (this.template != null) {<NEW_LINE>builder.field(TEMPLATE.getPreferredName(<MASK><NEW_LINE>}... | ), this.template, params); |
434,629 | public static void main(String[] args) {<NEW_LINE>final String USAGE = "To run this example, supply a key id or ARN\n" + "Usage: GetKeyPolicy <key-id>\n" + "Example: GetKeyPolicy 1234abcd-12ab-34cd-56ef-1234567890ab\n";<NEW_LINE>if (args.length != 1) {<NEW_LINE>System.out.println(USAGE);<NEW_LINE>System.exit(1);<NEW_LI... | result = kmsClient.getKeyPolicy(req); |
96,590 | public InteractionResultHolder<ItemStack> use(Level worldIn, Player playerIn, @NotNull InteractionHand handIn) {<NEW_LINE>ItemStack itemstack = playerIn.getItemInHand(handIn);<NEW_LINE>if (!worldIn.isClientSide) {<NEW_LINE>ThrownEnderpearl enderpearlentity = new ThrownEnderpearl(worldIn, playerIn);<NEW_LINE>enderpearle... | .ITEM_USED.get(this)); |
1,300,503 | private void checkFailedMeasurments(InsertPlan plan) throws PathNotExistException, StorageEngineException {<NEW_LINE>// check if all path not exist exceptions<NEW_LINE>List<String> failedPaths = plan.getFailedMeasurements();<NEW_LINE>List<Exception> exceptions = plan.getFailedExceptions();<NEW_LINE>boolean isPathNotExi... | getMessage()) : "")); |
1,665,693 | private synchronized <T extends BaseRealm> RealmAsyncTask doCreateRealmOrGetFromCacheAsync(RealmConfiguration configuration, BaseRealm.InstanceCallback<T> callback, Class<T> realmClass) {<NEW_LINE>Capabilities capabilities = new AndroidCapabilities();<NEW_LINE>capabilities.checkCanDeliverNotification(ASYNC_NOT_ALLOWED_... | add(configuration.getPath()); |
366,874 | final CancelJobExecutionResult executeCancelJobExecution(CancelJobExecutionRequest cancelJobExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelJobExecutionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
842,568 | public void render(PoseStack ms, int x, int y) {<NEW_LINE>ms.pushPose();<NEW_LINE>ms.translate(x, y, 0);<NEW_LINE>if (icon != null) {<NEW_LINE>RenderSystem.setShaderTexture(0, icon);<NEW_LINE>ms.scale(0.25f, 0.25f, 1);<NEW_LINE>// x and y offset, blit z offset, tex x and y, tex width and height, entire tex<NEW_LINE>// ... | 64, 64, 64, 64); |
611,344 | protected void readNodeChildren(org.w3c.dom.Node node, java.util.Map namespacePrefixes) {<NEW_LINE>org.w3c.dom.<MASK><NEW_LINE>for (int i = 0, size = children.getLength(); i < size; ++i) {<NEW_LINE>org.w3c.dom.Node childNode = children.item(i);<NEW_LINE>String childNodeName = (childNode.getLocalName() == null ? childNo... | NodeList children = node.getChildNodes(); |
1,045,788 | public static void createDevice(String projectId, String cloudRegion, String registryName, String deviceId) throws GeneralSecurityException, IOException {<NEW_LINE>// [START create_device]<NEW_LINE>GoogleCredentials credential = GoogleCredentials.getApplicationDefault().createScoped(CloudIotScopes.all());<NEW_LINE>Json... | "projects/%s/locations/%s/registries/%s", projectId, cloudRegion, registryName); |
170,898 | public void insertRow() throws SQLException {<NEW_LINE>isUpdatable();<NEW_LINE>if (!oninsrow || rowbuf == null) {<NEW_LINE>throw new SQLException("no insert data provided");<NEW_LINE>}<NEW_LINE>JDBCResultSetMetaData m = (JDBCResultSetMetaData) getMetaData();<NEW_LINE>StringBuffer sb = new StringBuffer();<NEW_LINE>sb.ap... | .Shell.sql_quote_dbl(uptable)); |
719,656 | public void visitSimpleInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SimpleInstruction simpleInstruction) {<NEW_LINE>switch(simpleInstruction.opcode) {<NEW_LINE>case InstructionConstants.OP_AASTORE:<NEW_LINE>// Mark array parameters whose element is modified.<NEW_LINE>markModifiedPara... | .stackPopCount(clazz) - 1); |
1,618,165 | protected void perform(JavaSource js, JTextComponent pane, final int[] selection) {<NEW_LINE>final Fix[] f = new Fix[1];<NEW_LINE>String error = null;<NEW_LINE>try {<NEW_LINE>js.runUserActionTask(new Task<CompilationController>() {<NEW_LINE><NEW_LINE>public void run(CompilationController parameter) throws Exception {<N... | , selection[1], false); |
1,843,842 | private ReadOnlyStyledDocument<PS, SEG, S> concat0(StyledDocument<PS, SEG, S> other, BinaryOperator<Paragraph<PS, SEG, S>> parConcat) {<NEW_LINE>int n = tree.getLeafCount() - 1;<NEW_LINE>Paragraph<PS, SEG, S> p0 = tree.getLeaf(n);<NEW_LINE>Paragraph<PS, SEG, S> p1 = other.<MASK><NEW_LINE>Paragraph<PS, SEG, S> p = parCo... | getParagraphs().get(0); |
1,407,761 | public static DescribeProductResourceTagKeyListResponse unmarshall(DescribeProductResourceTagKeyListResponse describeProductResourceTagKeyListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeProductResourceTagKeyListResponse.setRequestId(_ctx.stringValue("DescribeProductResourceTagKeyListResponse.RequestId"));<NE... | (_ctx.booleanValue("DescribeProductResourceTagKeyListResponse.Success")); |
417,208 | private boolean maybeCreateFailActionDueToTransitiveSourcesVersion() {<NEW_LINE>String errorTemplate = ruleContext.getLabel() + ": " + "This target is being built for Python %s but (transitively) includes Python %s-only " + "sources. You can get diagnostic information about which dependencies introduce this " + "versio... | format(errorTemplate, "2", "3"); |
1,349,164 | public final FilterContext filter() throws RecognitionException {<NEW_LINE>FilterContext _localctx = new FilterContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 10, RULE_filter);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(69);<NEW_LINE>match(QUESTION);<NEW... | NULL))) != 0)); |
386,101 | public void readRange(int srcStart, int count, ByteBuffer dst, int dstOffset, boolean bForward) {<NEW_LINE>if (srcStart < 0 || count < 0 || dstOffset < 0 || size() < count + srcStart)<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>final int elmSize = NumberUtils<MASK><NEW_LINE>if (dst.capacity() < (int) (dstOf... | .sizeOf((double) 0); |
1,138,044 | private void processServers() throws InstallException {<NEW_LINE>for (Enumeration<? extends ZipEntry> zipEntries = zip.entries(); zipEntries.hasMoreElements(); ) {<NEW_LINE>ZipEntry nextEntry = zipEntries.nextElement();<NEW_LINE>String entryName = nextEntry<MASK><NEW_LINE>if (nextEntry.isDirectory()) {<NEW_LINE>if (ent... | .getName().toLowerCase(); |
1,264,517 | public Object intercept(Object obj, Method method, Object[] args) throws Throwable {<NEW_LINE>if (method.getName().equals("getTargetConnection")) {<NEW_LINE>// Handle getTargetConnection method: return underlying RedisConnection.<NEW_LINE>return obj;<NEW_LINE>}<NEW_LINE>RedisCommand commandToExecute = RedisCommand.fail... | RedisConnection connection = factory.getConnection(); |
419,840 | private static byte[] rsaPrivateKeyToBlob(RSAPrivateCrtKey rsaPrivCrtKey) throws CryptoException {<NEW_LINE>try {<NEW_LINE>// 2316 sufficient for a 4096 bit RSA key<NEW_LINE>ByteBuffer bb = ByteBuffer.wrap(new byte[4096]);<NEW_LINE>bb.order(ByteOrder.LITTLE_ENDIAN);<NEW_LINE>// Write out the blob fields<NEW_LINE>// rsa... | (bitLength / 16) + add16); |
260,380 | protected void channelRead0(ChannelHandlerContext ctx, FullHttpRequest request) throws Exception {<NEW_LINE>HttpResponse response;<NEW_LINE>HttpMethod httpMethod = request.getMethod();<NEW_LINE>HttpHeaders headers = request.headers();<NEW_LINE>// when a request has multiple host fields declared it would be equivalent t... | get(HttpHeaders.Names.ORIGIN); |
1,525,568 | protected void doAddAppliedMigration(int installedRank, MigrationVersion version, String description, MigrationType type, String script, Integer checksum, int executionTime, boolean success) {<NEW_LINE>boolean tableIsLocked = false;<NEW_LINE>connection.restoreOriginalState();<NEW_LINE>// Lock again for databases with n... | version + "' in Schema History table " + table, e); |
35,089 | public void marshall(BulkDeploymentResult bulkDeploymentResult, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (bulkDeploymentResult == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(bulkDeploymentResult.get... | bulkDeploymentResult.getErrorMessage(), ERRORMESSAGE_BINDING); |
292,067 | public void playerPortal(PlayerPortalEvent event) {<NEW_LINE>if (event.isCancelled() || (event.getFrom() == null)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// The adjust should have happened much earlier.<NEW_LINE>if (event.getTo() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MultiverseWorld fromWorld = this.worldMana... | ).getName() + "' is portaling to the same world."); |
569,797 | private static boolean _cutteeStartCutterEndEvent(int eventIndex, EditShape editShape, ArrayList<CutEvent> cutEvents, int ipartCuttee, int ivertexCuttee, int ipartCutter, int ivertexCutter, int ifirstVertexCuttee) {<NEW_LINE>Segment segmentCuttee;<NEW_LINE>Segment segmentCutter;<NEW_LINE>Line lineCuttee = new Line();<N... | editShape.queryLineConnector(ivertexCuttee, lineCuttee); |
421,225 | static boolean testPackagePatterns(String patterns, String value) {<NEW_LINE>boolean matches = false;<NEW_LINE>if (patterns != null) {<NEW_LINE>patterns = PackageDefinitionUtil.omitDirectives(patterns);<NEW_LINE>// NOI18N<NEW_LINE>StringTokenizer tok = new StringTokenizer(patterns, " ,", false);<NEW_LINE>while (tok.has... | token = token.substring(1); |
1,594,052 | public FeatureBuildItem build(SchedulerConfig config, BuildProducer<SyntheticBeanBuildItem> syntheticBeans, SchedulerRecorder recorder, List<ScheduledBusinessMethodItem> scheduledMethods, BuildProducer<GeneratedClassBuildItem> generatedClasses, BuildProducer<ReflectiveClassBuildItem> reflectiveClass, AnnotationProxyBui... | schedules = new ArrayList<>(); |
1,847,883 | public AddressSetView flowConstants(final Program program, Address flowStart, AddressSetView flowSet, final SymbolicPropogator symEval, final TaskMonitor monitor) throws CancelledException {<NEW_LINE>// follow all flows building up context<NEW_LINE>// use context to fill out addresses on certain instructions<NEW_LINE>C... | address, refType, SourceType.ANALYSIS); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.