idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
695,070 | private void removeRemainingSlashes() {<NEW_LINE>ArrayList<String> tmp = new ArrayList<String>();<NEW_LINE>boolean foundEOLSlash = false;<NEW_LINE>for (Iterator<String> iter = _queries.iterator(); iter.hasNext(); ) {<NEW_LINE>String next = iter.next();<NEW_LINE>if (slashPattern.matcher(next).matches()) {<NEW_LINE>found... | .substring(0, lastIndex)); |
1,155,177 | public DecisionTaskCompletedEventAttributes unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DecisionTaskCompletedEventAttributes decisionTaskCompletedEventAttributes = new DecisionTaskCompletedEventAttributes();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParen... | class).unmarshall(context)); |
1,267,183 | public static Vector combineServerRowSplits(List<ServerRow> rowSplits, int matrixId, int rowIndex) {<NEW_LINE>MatrixMeta matrixMeta = PSAgentContext.get().getMatrixMetaManager().getMatrixMeta(matrixId);<NEW_LINE>RowType rowType = matrixMeta.getRowType();<NEW_LINE>switch(rowType) {<NEW_LINE>case T_DOUBLE_DENSE:<NEW_LINE... | combineServerIntDoubleRowSplits(rowSplits, matrixMeta, rowIndex); |
427,567 | private static BiPredicate<AccessGroupDefinition, Entity> createBiPredicate(String className, String methodName, String argClassName) {<NEW_LINE>Class<?> clazz = ReflectionHelper.getClass(className);<NEW_LINE>Class<?> argumentClazz = ReflectionHelper.getClass(argClassName);<NEW_LINE>Method method = Arrays.stream(clazz.... | "Unable to find corresponding in-memory predicate method %s#%s", className, methodName))); |
1,305,548 | public Object createBean(Object srcObj, Class<?> srcObjClass, String beanId, BeanContainer beanContainer) {<NEW_LINE>log.debug("createBean(Object, Class, String) - start [{}]", beanId);<NEW_LINE>int indexOf = beanId.indexOf(INNER_CLASS_DELIMITER);<NEW_LINE>while (indexOf > 0) {<NEW_LINE>beanId = beanId.substring(0, ind... | ".")) + ".ObjectFactory", beanContainer); |
835,843 | public PendingModifiedServiceUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PendingModifiedServiceUpdate pendingModifiedServiceUpdate = new PendingModifiedServiceUpdate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1... | String currentParentElement = context.getCurrentParentElement(); |
732,272 | public String execute(CommandContext commandContext, String[] args) {<NEW_LINE>String config = frameworkModel.getApplicationModels().stream().map(applicationModel -> applicationModel.getApplicationConfigManager().getApplication()).map(o -> o.orElse(null)).filter(Objects::nonNull).map(ApplicationConfig::getStartupProbe)... | (Collectors.joining(",")); |
1,165,014 | public void deleteMessage(final Message message, final String userId) {<NEW_LINE>if (getActivity() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.getActivity().runOnUiThread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>Message recentMessage;<NEW_LINE>if (message.getGroupId()... | GROUP + message.getGroupId()); |
1,194,317 | public static int[] hashCarterWegman(byte[] value, int m, int k) {<NEW_LINE>int[<MASK><NEW_LINE>BigInteger prime32 = BigInteger.valueOf(4294967279l);<NEW_LINE>BigInteger prime64 = BigInteger.valueOf(53200200938189l);<NEW_LINE>BigInteger prime128 = new BigInteger("21213943449988109084994671");<NEW_LINE>Random r = new Ra... | ] positions = new int[k]; |
1,659,417 | public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.Group other) {<NEW_LINE>if (other == cn.wildfirechat.proto.WFCMessage.Group.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasGroupInfo()) {<NEW_LINE>mergeGroupInfo(other.getGroupInfo());<NEW_LINE>}<NEW_LINE>if (membersBuilder_ == null) {<NEW_LIN... | bitField0_ = (bitField0_ & ~0x00000002); |
1,846,086 | private void run() {<NEW_LINE>if (badOptions || helpRequested || blobFile == null || outDir == null) {<NEW_LINE>System.out.printf("Usage: java %s [options]%n", getClass().getName());<NEW_LINE>System.out.printf(" options:%n");<NEW_LINE>System.out.printf(" --blob=<blob file>%n");<NEW_LINE>System.out.printf(" --deb... | System.out.printf(" --help%n"); |
1,707,804 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(<MASK><NEW_LINE>mActionButton = (Button) view.findViewById(R.id.action);<NEW_LINE>mActionButton.setOnClickListener(v -> {<NEW_LINE>if (mService != null) {<NEW_LINE>mService.disconnec... | R.layout.vpn_state_fragment, null); |
577,057 | public GetResult merge(List<PartitionGetResult> partResults) {<NEW_LINE>Int2ObjectArrayMap<PartitionGetResult> partIdToResultMap = new Int2ObjectArrayMap<>(partResults.size());<NEW_LINE>for (PartitionGetResult result : partResults) {<NEW_LINE>partIdToResultMap.put(((PartGetNodeFeatsResult) result).getPartId(), result);... | ] nodeIds = param.getNodeIds(); |
1,423,105 | private PricingConditionsBreak changePricingConditionsBreak0(@NonNull final PricingConditionsBreakChangeRequest request) {<NEW_LINE>final PricingConditionsId pricingConditionsId = request.getPricingConditionsId();<NEW_LINE>//<NEW_LINE>// Load/Create discount schema record<NEW_LINE>final I_M_DiscountSchemaBreak schemaBr... | ::toBigDecimal).orElse(null); |
844,683 | // [END_EXCLUDE]<NEW_LINE>public void onCreate(Bundle savedState) {<NEW_LINE>super.onCreate(savedState);<NEW_LINE>// Set the layout. It only contains a SupportMapFragment and a DismissOverlay.<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// Enable ambient support, so the map remains visible in simplified, ... | "Is ambient enabled: " + controller.isAmbient()); |
1,474,794 | public void saveAttachment() throws Exception {<NEW_LINE>IWebDav handler = getFileHandler();<NEW_LINE>MADAttachmentReference attachmentReference = getAttachmentReference();<NEW_LINE>if (attachmentReference == null || attachmentReference.getAD_AttachmentReference_ID() <= 0) {<NEW_LINE>attachmentReference = new MADAttach... | (getCompleteFileName(attachmentReference), data); |
1,447,316 | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {<NEW_LINE>StreamEvent previousStreamEvent;<NEW_LINE>beforeWindowData = (Object[]) stream.readObject();<NEW_LINE>onAfterWindowData = (Object[]) stream.readObject();<NEW_LINE>outputData = (Object[]) stream.readObject();<NEW_LINE... | .timestamp = stream.readLong(); |
1,403,890 | final CreateDiskSnapshotResult executeCreateDiskSnapshot(CreateDiskSnapshotRequest createDiskSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDiskSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | (super.beforeMarshalling(createDiskSnapshotRequest)); |
1,518,832 | private <T> void assertSuccess(ManagedExecutorService executor, Future<T> future, Object task, TaskListener listener, T... validResults) throws Exception {<NEW_LINE>assertTrue(listener.latch[SUBMITTED].await(TIMEOUT_NS, TimeUnit.NANOSECONDS));<NEW_LINE>assertEquals(future, listener.future[SUBMITTED]);<NEW_LINE>assertEq... | , listener.failure[DONE]); |
641,645 | private static boolean sameValueAs(LiteralLabel lit1, LiteralLabel lit2) {<NEW_LINE>// return lit1.sameValueAs(lit2) ;<NEW_LINE>if (lit1 == null)<NEW_LINE>throw new NullPointerException();<NEW_LINE>if (lit2 == null)<NEW_LINE>throw new NullPointerException();<NEW_LINE>// Strings.<NEW_LINE>if (isStringValue(lit1) && isS... | String lex1 = lit1.getLexicalForm(); |
37,111 | public void checkForDeprecations(String id, NamedXContentRegistry namedXContentRegistry, Consumer<DeprecationIssue> onDeprecation) {<NEW_LINE>LoggingDeprecationAccumulationHandler deprecationLogger = new LoggingDeprecationAccumulationHandler();<NEW_LINE>try {<NEW_LINE>queryFromXContent(source, namedXContentRegistry, de... | , deprecationMessage, false, null)); |
1,267,376 | private void handleResultForAsyncAvailabilityCheck_Error(final PurchaseRowsList rows, final Throwable throwable) {<NEW_LINE>if (throwable instanceof AvailabilityException) {<NEW_LINE>final AvailabilityException availabilityException = AvailabilityException.cast(throwable);<NEW_LINE>final List<DocumentId> changedRowIds ... | warn("No line row found for {}. Skip updating the row with availability errors: {}", trackingId, errorItem); |
1,837,573 | private static FilterSpecPlanForge planFilterParametersInternal(List<ExprNode> validatedNodes, FilterSpecCompilerArgs args) throws ExprValidationException {<NEW_LINE>if (validatedNodes.isEmpty()) {<NEW_LINE>return FilterSpecPlanForge.EMPTY;<NEW_LINE>}<NEW_LINE>if (args.compileTimeServices.getConfiguration().getCompiler... | .getExecution().getFilterServiceMaxFilterWidth(); |
1,709,850 | public void start() throws Exception {<NEW_LINE>EventBus eventBus = getVertx().eventBus();<NEW_LINE>// Register codec for custom message<NEW_LINE>eventBus.registerDefaultCodec(CustomMessage.class, new CustomMessageCodec());<NEW_LINE>// Custom message<NEW_LINE>CustomMessage clusterWideMessage = new CustomMessage(200, "a... | .cause().printStackTrace(); |
298,893 | public boolean rejectPresenter(MvpPresenter<?> presenter, String delegateTag) {<NEW_LINE>Set<MvpPresenter> <MASK><NEW_LINE>if (presenters != null) {<NEW_LINE>presenters.remove(presenter);<NEW_LINE>}<NEW_LINE>if (presenters == null || presenters.isEmpty()) {<NEW_LINE>mTags.remove(delegateTag);<NEW_LINE>}<NEW_LINE>Set<St... | presenters = mTags.get(delegateTag); |
354,351 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String namespaceName, String alias, 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_LIN... | this.client.mergeContext(context); |
519,096 | final ListMonitoringSchedulesResult executeListMonitoringSchedules(ListMonitoringSchedulesRequest listMonitoringSchedulesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listMonitoringSchedulesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | invoke(request, responseHandler, executionContext); |
1,825,265 | // check if all these names are not existing, remove invalid events from the list<NEW_LINE>public void validateChildrenToCreate(@Nonnull List<? extends VFileCreateEvent> childrenToCreate) {<NEW_LINE>if (childrenToCreate.size() <= 1) {<NEW_LINE>for (int i = childrenToCreate.size() - 1; i >= 0; i--) {<NEW_LINE>VFileCreat... | int beforeSize = existingNames.size(); |
149,023 | private CompletableFuture<List<SetMonitoringModeResult>> executeAsync(UInteger operationLimit) {<NEW_LINE>List<Map.Entry<OpcUaMonitoredItem, MonitoringMode>> entries = new ArrayList<>(monitoringModesByItem.entrySet());<NEW_LINE>CompletableFuture<List<SetMonitoringModeResult>> resultsFuture = GroupMapCollate.groupMapCol... | () == results.size(); |
22,561 | public void reduce(Text key, Iterator<Text> values, OutputCollector<Text, Text> output, Reporter reporter) throws IOException {<NEW_LINE>String field = key.toString();<NEW_LINE>reporter.setStatus("starting " + field + " ::host = " + hostName);<NEW_LINE>// concatenate strings<NEW_LINE>if (field.startsWith("s:") || field... | next().toString()); |
1,056,200 | public void populateEntity(List<String> attrList) throws WIMException {<NEW_LINE>boolean uniqueIdPropSet = false;<NEW_LINE>setIdentifierProperties();<NEW_LINE>// Loop through the attributes to try to set each.<NEW_LINE>for (int i = 0; i < attrList.size(); i++) {<NEW_LINE>String attrName = attrList.get(i);<NEW_LINE>try ... | ().get(securityNameProp)); |
832,714 | public Object methodsAnnotatedWithHystrixCommand(final ProceedingJoinPoint joinPoint) throws Throwable {<NEW_LINE>Method method = getMethodFromTarget(joinPoint);<NEW_LINE>Validate.notNull(method, "failed to get method from joinPoint: %s", joinPoint);<NEW_LINE>if (method.isAnnotationPresent(HystrixCommand.class) && meth... | (HystrixPointcutType.of(method)); |
206,725 | boolean ForEachFile(String root_path, ForEachFileCallback f) {<NEW_LINE>CHECK(zip_handle_ != null);<NEW_LINE>String root_path_full = root_path;<NEW_LINE>// if (root_path_full.back() != '/') {<NEW_LINE>if (!root_path_full.endsWith("/")) {<NEW_LINE>root_path_full += '/';<NEW_LINE>}<NEW_LINE>String prefix = root_path_full... | ZipEntry zipEntry = entries.nextElement(); |
1,323,707 | public void onClick(View v) {<NEW_LINE>new ColorsDialog((FragmentActivity) controller.getActivity(), (Boolean) t1Img.getTag(), (Integer) t3Text.getTag(), (Integer) t2BG.getTag(), true, true, new ColorsDialogResult() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onChooseColor(int colorText, int colorBg) {<NEW_LINE... | ) + "," + split[3]; |
948,047 | public Repo<Manager> call(long tid, Manager manager) throws Exception {<NEW_LINE>String fmtTid = FateTxId.formatTid(tid);<NEW_LINE>log.debug(" {} sourceDir {}", fmtTid, sourceDir);<NEW_LINE>Utils.getReadLock(manager, tableId, tid).lock();<NEW_LINE>// check that the error directory exists and is empty<NEW_LINE>VolumeMan... | TableOperationExceptionType.BULK_BAD_ERROR_DIRECTORY, errorDir + " is not a directory"); |
956,186 | public JobExecution updateJobExecutionAndInstanceOnEnd(long jobExecutionId, BatchStatus finalBatchStatus, String finalExitStatus, Date endTime) throws NoSuchJobExecutionException {<NEW_LINE>JobExecutionEntity exec = getJobExecution(jobExecutionId);<NEW_LINE>try {<NEW_LINE>verifyStatusTransitionIsValid(exec, finalBatchS... | getJobInstance().setBatchStatus(finalBatchStatus); |
1,826,362 | public void marshall(QualificationType qualificationType, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (qualificationType == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(qualificationType.getQualificatio... | qualificationType.getName(), NAME_BINDING); |
240,349 | public static boolean verifSignData(final byte[] signedData) throws CMSException, IOException, OperatorCreationException, CertificateException {<NEW_LINE>ByteArrayInputStream bIn = new ByteArrayInputStream(signedData);<NEW_LINE>ASN1InputStream aIn = new ASN1InputStream(bIn);<NEW_LINE>CMSSignedData s = new CMSSignedData... | > certIt = certCollection.iterator(); |
1,749,058 | public void cleanup() {<NEW_LINE>for (ThirdpartyBookmarkCollection t : collections) {<NEW_LINE>t.filter(bookmarks);<NEW_LINE>if (t.isEmpty()) {<NEW_LINE>preferences.setProperty(t.getConfiguration(), true);<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>final NSAlert alert = // default<NEW_LINE>NSAlert.// default<NEW_LINE>alert... | alert.setAlertStyle(NSAlert.NSInformationalAlertStyle); |
219,477 | protected String runSingleTask(String[] args) throws Exception {<NEW_LINE>// prepare the benchmark.<NEW_LINE>prepare();<NEW_LINE>if (!mBaseParameters.mProfileAgent.isEmpty()) {<NEW_LINE>mBaseParameters.mJavaOpts.add("-javaagent:" + mBaseParameters.mProfileAgent + "=" + BaseParameters.AGENT_OUTPUT_PATH);<NEW_LINE>}<NEW_... | (PropertyKey.HOME) + "/bin/alluxio"); |
914,979 | protected PathConfig resolvePathConfig(PathConfig originalConfig, String path) {<NEW_LINE>if (originalConfig.hasPattern()) {<NEW_LINE>ProtectedResource resource = authzClient.protection().resource();<NEW_LINE>// search by an exact match<NEW_LINE>List<ResourceRepresentation> search = resource.findByUri(path);<NEW_LINE>/... | setMethods(originalConfig.getMethods()); |
1,603,652 | public PutContainerRecipePolicyResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PutContainerRecipePolicyResult putContainerRecipePolicyResult = new PutContainerRecipePolicyResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu... | class).unmarshall(context)); |
1,793,820 | public void calculate(final IPricingContext pricingCtx, final IPricingResult result) {<NEW_LINE>if (!applies(pricingCtx, result)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final I_M_PriceList_Version priceListVersion = pricingCtx.getM_PriceList_Version();<NEW_LINE>if (priceListVersion == null) {<NEW_LINE>return;<NEW_LINE>... | (productPrice.getC_TaxCategory_ID())); |
1,292,059 | private List<Object> transformInput(List iLeft, Object iRight, OLuceneFullTextIndex index, MemoryIndex memoryIndex) {<NEW_LINE>Integer collectionIndex = getCollectionIndex(iLeft);<NEW_LINE>if (collectionIndex == -1) {<NEW_LINE>// collection not found;<NEW_LINE>return iLeft;<NEW_LINE>}<NEW_LINE>if (collectionIndex > 1) ... | = new ArrayList<Object>(); |
580,894 | public Registration deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {<NEW_LINE>JsonNode node = p.readValueAsTree();<NEW_LINE>Registration.Builder builder = Registration.builder();<NEW_LINE>if (node.has("name")) {<NEW_LINE>builder.name(node.get("name").asText());<NEW_LINE>}<NEW_LINE>if (node.ha... | + "/health").managementUrl(url); |
111,232 | /*<NEW_LINE>@Override<NEW_LINE>public JsonSerializer<?> createContextual(SerializerProvider ctxt, BeanProperty property) throws JsonMappingException {<NEW_LINE>TypeSerializer typeSer = _valueTypeSerializer;<NEW_LINE>if (typeSer != null) {<NEW_LINE>typeSer = typeSer.forProperty(property);<NEW_LINE>}<NEW_LINE>JsonSeriali... | _valueType.getRawClass(), ser); |
709,893 | public void onReceive(Context context, Intent intent) {<NEW_LINE><MASK><NEW_LINE>if (action == null)<NEW_LINE>return;<NEW_LINE>if (action.equals(LOCAL_ACTION_LOG)) {<NEW_LINE>Message msg = mStatusUpdateHandler.obtainMessage(STATUS_UPDATE);<NEW_LINE>msg.obj = intent.getStringExtra(LOCAL_EXTRA_LOG);<NEW_LINE>msg.getData(... | String action = intent.getAction(); |
706,366 | public void main() {<NEW_LINE>RVec4 srcColor = new RVec4("srcColor");<NEW_LINE>srcColor.assign(texture2D(uTexture, vTextureCoord));<NEW_LINE>switch(mMode) {<NEW_LINE>case LIGHTNESS:<NEW_LINE>RFloat least = new RFloat("least");<NEW_LINE>least.assign(min(srcColor.g(), min(srcColor.r(), srcColor.b())));<NEW_LINE>RFloat mo... | multiply(castVec4("average, average, average, srcColor.a"))); |
1,379,484 | public Object fallback(MethodInvocationContext<Object, Object> context, Throwable exception) {<NEW_LINE>if (exception instanceof NoAvailableServiceException) {<NEW_LINE>NoAvailableServiceException ex = (NoAvailableServiceException) exception;<NEW_LINE>if (logger.isErrorEnabled()) {<NEW_LINE>logger.debug(ex.getMessage()... | invoke(context.getParameterValues()); |
1,469,602 | public Tile findClosestOre(float xp, float yp, Item item) {<NEW_LINE>if (ores[item.id] != null) {<NEW_LINE>float minDst = 0f;<NEW_LINE>Tile closest = null;<NEW_LINE>for (int qx = 0; qx < quadWidth; qx++) {<NEW_LINE>for (int qy = 0; qy < quadHeight; qy++) {<NEW_LINE>var arr = ores[item.id][qx][qy];<NEW_LINE>if (arr != n... | tile(arr.first()); |
843,977 | private List<InsertVO> takeInsertVO(Class<?> triggeredVO) {<NEW_LINE>List<String> voNames = insertVOTriggerClassNames.get(triggeredVO);<NEW_LINE>TypedQuery<InsertVO> query = null;<NEW_LINE>if (voNames.size() == 1) {<NEW_LINE>String sql = "select i from InsertVO i where i.voName = :voName";<NEW_LINE>query = dbf.getEntit... | getEntityManager().createQuery(usql); |
1,473,444 | private static ITranslatableString extractDescription(final Field field) {<NEW_LINE>final ViewColumn viewColumnAnn = <MASK><NEW_LINE>final String captionKey = !Check.isEmpty(viewColumnAnn.captionKey()) ? viewColumnAnn.captionKey() : extractFieldName(field);<NEW_LINE>final TranslationSource captionTranslationSource = vi... | field.getAnnotation(ViewColumn.class); |
557,622 | public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>mTargetFile = getArguments().getParcelable(ARG_TARGET_FILE);<NEW_LINE>// Inflate the layout for the dialog<NEW_LINE>LayoutInflater inflater = getActivity().getLayoutInflater();<NEW_LINE>View v = inflater.inflate(R.layout.edit_box_dialog, null);<NEW_LINE... | findViewById(R.id.user_input); |
1,606,982 | private boolean compareNumber(Number valueObj, String value1, String value2) {<NEW_LINE>BigDecimal valueObjB = null;<NEW_LINE>BigDecimal value1B = null;<NEW_LINE>BigDecimal value2B = null;<NEW_LINE>try {<NEW_LINE>if (valueObj instanceof BigDecimal)<NEW_LINE>valueObjB = (BigDecimal) valueObj;<NEW_LINE>else if (valueObj ... | valueObjB.compareTo(value1B) <= 0; |
465,280 | private static void addMainValueHashToTextLoader(Step step, TextLoader textLoader) {<NEW_LINE>StepEnum.Type stepType = StepEnum.Type.of(step.getStepType());<NEW_LINE>String textTypeName = stepType.getAssociatedMainTextTypeName();<NEW_LINE>TextTypeEnum textTypeEnum = TextTypeEnum.of(textTypeName);<NEW_LINE>switch(stepTy... | ) step).getHash()); |
152,332 | public void notifyBlacklistedConnection(ConnectionDescriptor conn) {<NEW_LINE>int uid = conn.uid;<NEW_LINE>AppDescriptor app = appsResolver.<MASK><NEW_LINE>assert app != null;<NEW_LINE>FilterDescriptor filter = new FilterDescriptor();<NEW_LINE>filter.onlyBlacklisted = true;<NEW_LINE>Intent intent = new Intent(this, Con... | get(conn.uid, 0); |
1,157,884 | public void run() {<NEW_LINE>log.info("Running {}", getName());<NEW_LINE>XClusterConfig xClusterConfig = refreshXClusterConfig();<NEW_LINE>Universe targetUniverse = Universe.getOrBadRequest(xClusterConfig.targetUniverseUUID);<NEW_LINE>String targetUniverseMasterAddresses = targetUniverse.getMasterAddresses();<NEW_LINE>... | ybService.closeClient(client, targetUniverseMasterAddresses); |
1,119,594 | protected Page newPage(final HttpServletRequest req, final HttpServletResponse resp, final Session session, final String template) {<NEW_LINE>final Page page = new Page(req, resp, getApplication().getVelocityEngine(), template);<NEW_LINE>page.add("version", jarVersion);<NEW_LINE>page.add("azkaban_name", this.name);<NEW... | add("TimeUtils", TimeUtils.class); |
716,000 | public static void updateALiveEvent(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {<NEW_LINE>LiveEvent resource = manager.liveEvents().getWithResponse("mediaresources", "slitestmedia10", "myLiveEvent1", <MASK><NEW_LINE>resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2", "tag3", ... | Context.NONE).getValue(); |
918,881 | protected void drawFilter() {<NEW_LINE>final Status status = renderingStatus;<NEW_LINE>switch(status) {<NEW_LINE>case DONE1:<NEW_LINE>surfaceTexture.setDefaultBufferSize(getPreviewWidth(), getPreviewHeight());<NEW_LINE>surfaceTexture.updateTexImage();<NEW_LINE>renderingStatus = Status.RENDER2;<NEW_LINE>break;<NEW_LINE>... | GLES20.glActiveTexture(GLES20.GL_TEXTURE5); |
484,659 | public void operationComplete(int rc, Set<LedgerFragment> fragments) {<NEW_LINE>if (rc == BKException.Code.OK) {<NEW_LINE>Set<BookieId> bookies = Sets.newHashSet();<NEW_LINE>for (LedgerFragment f : fragments) {<NEW_LINE>bookies.addAll(f.getAddresses());<NEW_LINE>}<NEW_LINE>if (bookies.isEmpty()) {<NEW_LINE>// no missin... | Code.OK, null, null); |
1,660,789 | final DescribeMovingAddressesResult executeDescribeMovingAddresses(DescribeMovingAddressesRequest describeMovingAddressesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeMovingAddressesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
224,921 | private void tunnelSucceeded(EndPoint endPoint) {<NEW_LINE>try {<NEW_LINE>HttpDestination destination = (HttpDestination) <MASK><NEW_LINE>ClientConnectionFactory connectionFactory = this.connectionFactory;<NEW_LINE>if (destination.isSecure()) {<NEW_LINE>// Don't want to do DNS resolution here.<NEW_LINE>InetSocketAddres... | context.get(HttpClientTransport.HTTP_DESTINATION_CONTEXT_KEY); |
1,508,563 | private List<FastqWriter> makeTagWriters(final SAMReadGroupRecord readGroup, final FastqWriterFactory factory) {<NEW_LINE>String baseFilename = null;<NEW_LINE>if (readGroup != null) {<NEW_LINE>if (RG_TAG.equalsIgnoreCase("PU")) {<NEW_LINE>baseFilename = readGroup.getPlatformUnit() + "_";<NEW_LINE>} else if (RG_TAG.equa... | fileName = IOUtil.makeFileNameSafe(fileName); |
1,380,383 | public static void processParent(Class claz, Set configProperties) {<NEW_LINE>if (claz == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// process the methods<NEW_LINE>Method[] methods = claz.getDeclaredMethods();<NEW_LINE>for (Method m : methods) {<NEW_LINE>ConfigProperty property = m.getAnnotation(ConfigProperty.class... | .getParameterTypes()[0]); |
283,087 | public void init(Map<String, String> writerOptions) throws IOException {<NEW_LINE>this.location = writerOptions.get("location");<NEW_LINE>this.prefix = writerOptions.get("prefix");<NEW_LINE>this.fs = FileSystem.get(fsConf);<NEW_LINE>String <MASK><NEW_LINE>this.extension = extension == null ? "" : "." + extension;<NEW_L... | extension = writerOptions.get("extension"); |
858,152 | protected void calculateRecall(Document doc) {<NEW_LINE>int rDen = 0;<NEW_LINE>int rNum = 0;<NEW_LINE>Map<Integer, Mention> predictedMentions = doc.allPredictedMentions;<NEW_LINE>for (CorefCluster g : doc.goldCorefClusters.values()) {<NEW_LINE>if (g.corefMentions.size() == 0) {<NEW_LINE>SieveCoreferenceSystem.logger.wa... | "NO MENTIONS for cluster " + g.getClusterID()); |
1,628,859 | public void beforeMountItem(final ExtensionState<IncrementalMountExtensionState> extensionState, final RenderTreeNode renderTreeNode, final int index) {<NEW_LINE>final <MASK><NEW_LINE>if (IncrementalMountExtensionConfigs.isDebugLoggingEnabled) {<NEW_LINE>Log.d(DEBUG_TAG, "beforeMountItem [id=" + renderTreeNode.getRende... | boolean isTracing = RenderCoreSystrace.isEnabled(); |
820,388 | private void presentBackground(boolean collapseAbove, boolean collapseBelow, boolean hasWallpaper) {<NEW_LINE>int marginDefault = getContext().getResources().getDimensionPixelOffset(R.dimen.conversation_update_vertical_margin);<NEW_LINE>int marginCollapsed = 0;<NEW_LINE>int paddingDefault = getContext().getResources().... | setBackgroundResource(R.drawable.conversation_update_wallpaper_background_bottom); |
1,206,627 | public static void convert(InterleavedS32 input, InterleavedS64 output) {<NEW_LINE>if (input.isSubimage() || output.isSubimage()) {<NEW_LINE>final int N = input<MASK><NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, input.height, y -> {<NEW_LINE>for (int y = 0; y < input.height; y++) {<NEW_LINE>int indexSrc = in... | .width * input.getNumBands(); |
692,859 | public Response toResponse(Throwable ex) {<NEW_LINE>LOG.<MASK><NEW_LINE>if (ex instanceof ProcessingException || ex instanceof IllegalArgumentException) {<NEW_LINE>final Response response = BadRequestException.of().getResponse();<NEW_LINE>return Response.fromResponse(response).type(MediaType.APPLICATION_JSON_TYPE).enti... | debug(ex.getMessage()); |
1,516,761 | public void initialize(GenericApplicationContext context) {<NEW_LINE>MongoDataConfiguration dataConfiguration = new MongoDataConfiguration();<NEW_LINE>context.registerBean(MongoCustomConversions.class, dataConfiguration::mongoCustomConversions);<NEW_LINE>context.registerBean(MongoMappingContext.class, () -> {<NEW_LINE>... | MongoCustomConversions.class, dataConfiguration::mongoCustomConversions); |
10,836 | public void apply(Project project) {<NEW_LINE>super.apply(project);<NEW_LINE>atlasConfigurationHelper.createLibCompenents();<NEW_LINE>project.afterEvaluate(project1 -> {<NEW_LINE>if (PluginTypeUtils.isAppProject(project) && atlasExtension.isAtlasEnabled()) {<NEW_LINE>Map<String, String> multiDex = new HashMap<>();<NEW_... | ).add("compile", "org.jetbrains.kotlin:kotlin-stdlib:1.2.41"); |
653,273 | private void init() {<NEW_LINE>addListener(nativeBuffer -> {<NEW_LINE>Iterator<ComplexSamples> iterator = nativeBuffer.iterator();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>getDecoder().receive(iterator.next());<NEW_LINE>}<NEW_LINE>});<NEW_LINE>getDecoder().setFilteredBufferListener(mFilteredBufferBroadcaster);<NE... | ).setSymbolDecisionDataListener(getEyeDiagramChart()); |
1,556,633 | final GetDistributionsResult executeGetDistributions(GetDistributionsRequest getDistributionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDistributionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
36,883 | private static // accrual schedule<NEW_LINE>PeriodicSchedule parseAccrualSchedule(CsvRow row, String leg) {<NEW_LINE>PeriodicSchedule.Builder builder = PeriodicSchedule.builder();<NEW_LINE>// basics<NEW_LINE>builder.startDate(LoaderUtils.parseDate(getValueWithFallback(row, leg, START_DATE_FIELD)));<NEW_LINE>builder.end... | endDateBusinessDayAdjustment(endDateAdj.get()); |
738,463 | public List<io.ballerina.tools.diagnostics.Diagnostic> diagnostics(Path filePath) {<NEW_LINE>this.checkCancelled();<NEW_LINE>if (this.diagnostics != null) {<NEW_LINE>return this.diagnostics;<NEW_LINE>}<NEW_LINE>PackageCompilation compilation;<NEW_LINE>if (this.getCancelChecker().isPresent()) {<NEW_LINE>compilation = wo... | collect(Collectors.toList()); |
1,696,699 | /*<NEW_LINE>* upload a file or directory in ftp default directory<NEW_LINE>*<NEW_LINE>* @param uploadFile file<NEW_LINE>* @throws BrokerException BrokerException<NEW_LINE>*/<NEW_LINE>public void upLoadFile(File uploadFile) throws BrokerException {<NEW_LINE>if (!this.ftpClient.isConnected() || !this.ftpClient.isAvailabl... | throw new BrokerException(ErrorCode.FTP_NOT_EXIST_PATH); |
1,340,867 | public void marshall(ListNotebookInstancesRequest listNotebookInstancesRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listNotebookInstancesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(... | listNotebookInstancesRequest.getMaxResults(), MAXRESULTS_BINDING); |
1,536,076 | PECoffSymbolStruct addSymbolEntry(String name, byte type, byte storageclass, byte secHdrIndex, long offset) {<NEW_LINE>// Get the current symbol index and append symbol name to string table.<NEW_LINE>int index;<NEW_LINE>PECoffSymbolStruct sym;<NEW_LINE>if (name.isEmpty()) {<NEW_LINE>index = strTabNrOfBytes;<NEW_LINE>st... | (name).append('\0'); |
192,079 | protected List<Class<? extends C>> parseValue(Object obj) throws ParameterException {<NEW_LINE>if (obj == null) {<NEW_LINE>throw new UnspecifiedParameterException(this);<NEW_LINE>}<NEW_LINE>if (List.class.isInstance(obj)) {<NEW_LINE>List<?> l = (List<?>) obj;<NEW_LINE>ArrayList<C> inst = new ArrayList<>(l.size());<NEW_... | <? extends C>) o); |
1,449,015 | public boolean retainAll(Collection<?> collection) {<NEW_LINE>int retainedSize = collection.size();<NEW_LINE>UnifiedMap<K, V> retainedCopy = (UnifiedMap<K, V>) UnifiedMap.this.newEmpty(retainedSize);<NEW_LINE>for (Object obj : collection) {<NEW_LINE>if (obj instanceof Entry) {<NEW_LINE>Entry<?, ?> otherEntry = (Entry<?... | ), thisEntry.getValue()); |
65,745 | public List<String> listByTopUnitYearAndMonth(String topUnitName, String sYear, String sMonth) throws Exception {<NEW_LINE>if (topUnitName == null || topUnitName.isEmpty()) {<NEW_LINE>logger.error(new TopUnitNamesEmptyException());<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>EntityManager em = this.entityManagerContainer... | StatisticTopUnitForMonth_.statisticMonth), sMonth)); |
594,439 | public void linkReferenceNo(final PO po, final IReferenceNoGeneratorInstance instance) {<NEW_LINE>final IReferenceNoDAO dao = Services.get(IReferenceNoDAO.class);<NEW_LINE>final IContextAware contextAware = getContextAware(po);<NEW_LINE>final String referenceNoStr = instance.generateReferenceNo(po);<NEW_LINE>if (IRefer... | getType(), referenceNoStr, contextAware); |
1,368,810 | private void fixNewMethods(String signature) {<NEW_LINE>Set<ExecutablePair> existingMethods = this.existingMethods.get(signature);<NEW_LINE>Set<ExecutablePair> newMethods = this.newMethods.get(signature);<NEW_LINE>Iterable<ExecutablePair> allMethods = Iterables.concat(existingMethods, newMethods);<NEW_LINE>ExecutablePa... | entry.getValue(), impl); |
1,231,355 | public Events queryEvents(List<EventQueryCondition> conditionList) throws Exception {<NEW_LINE>// This method maybe have poor efficiency. It queries all data which meets a condition without select function.<NEW_LINE>// https://github.com/apache/iotdb/discussions/3888<NEW_LINE>StringBuilder query = new StringBuilder();<... | addQueryAsterisk(Event.INDEX_NAME, query); |
640,278 | public PagedFlux<VirtualMachineImage> listAsync() {<NEW_LINE>final VirtualMachineImagesInSkuImpl self = this;<NEW_LINE>PagedFlux<VirtualMachineImageResourceInner> virtualMachineImageResourcePagedFlux = PagedConverter.convertListToPagedFlux(innerCollection.listWithResponseAsync(sku.region().toString(), sku.publisher().n... | name(), imageInner))); |
1,058,596 | public void addHistogramGraph() {<NEW_LINE>if (histogramPanel != null)<NEW_LINE>throw new IllegalArgumentException("Already called");<NEW_LINE>histogramPanel = new ImageHistogramPanel(maxGrayLevels + 1, maxGrayLevels);<NEW_LINE>histogramHolder.add(BorderLayout.CENTER, histogramPanel);<NEW_LINE>histogramHolder.setPrefer... | new Dimension(0, 60)); |
1,727,329 | public Request<UpdateThingGroupRequest> marshall(UpdateThingGroupRequest updateThingGroupRequest) {<NEW_LINE>if (updateThingGroupRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(UpdateThingGroupRequest)");<NEW_LINE>}<NEW_LINE>Request<UpdateThingGroupRequest> request = new... | ThingGroupProperties thingGroupProperties = updateThingGroupRequest.getThingGroupProperties(); |
1,212,662 | private List<DataCheckEntity> computeAlertForRule(String domain, String type, String name, String monitor, List<Config> configs) {<NEW_LINE>List<DataCheckEntity> results = new ArrayList<DataCheckEntity>();<NEW_LINE>Pair<Integer, List<Condition>> conditionPair = m_ruleConfigManager.convertConditions(configs);<NEW_LINE>i... | domain, ModelPeriod.CURRENT, pars); |
1,274,871 | public SBase convertProtocolBuffersMessageToSObject(Message message, SBase newInstance, SClass sClass) throws ConvertException {<NEW_LINE>try {<NEW_LINE>Descriptor descriptor = message.getDescriptorForType();<NEW_LINE>if (newInstance == null) {<NEW_LINE>newInstance = sClass.newInstance();<NEW_LINE>}<NEW_LINE>Message su... | size = message.getRepeatedFieldCount(fieldDescriptor); |
606,682 | public static Point calculatePositionForPopupKeyboard(Keyboard.Key key, View keyboardView, AnyKeyboardViewBase popupKeyboardView, PreviewPopupTheme theme, int[] windowOffset) {<NEW_LINE>Point point = new Point(key.x + windowOffset[0], key.y + windowOffset[1]);<NEW_LINE>point.offset(0, theme.getVerticalOffset());<NEW_LI... | 0] - popupKeyboardView.getMeasuredWidth(); |
1,794,990 | public static QueryParams fromQueryObject(Map<String, Object> map) {<NEW_LINE>QueryParams params = new QueryParams();<NEW_LINE>params.limit = (<MASK><NEW_LINE>if (map.containsKey(INDEX_START_VALUE)) {<NEW_LINE>Object indexStartValue = map.get(INDEX_START_VALUE);<NEW_LINE>params.indexStartValue = normalizeValue(NodeFrom... | Integer) map.get(LIMIT); |
1,512,545 | public void widgetSelected(SelectionEvent e) {<NEW_LINE>String newAddr = newAddressTxt.getText();<NEW_LINE>newAddr.replaceAll("\\s+", "");<NEW_LINE>if (StringUtil.isNotEmpty(newAddr)) {<NEW_LINE>if (isInvalidFormat(newAddr)) {<NEW_LINE>newAddressTxt.setFocus();<NEW_LINE>newAddressTxt.selectAll();<NEW_LINE>Point loc = n... | newAddressTxt.getSize().y); |
1,454,412 | public void process(String child, byte[] data) {<NEW_LINE>String work = new String(data);<NEW_LINE>String[] parts = work.split("\\|");<NEW_LINE>String src = parts[0];<NEW_LINE>String dest = parts[1];<NEW_LINE>String sortId = new <MASK><NEW_LINE>log.debug("Sorting {} to {} using sortId {}", src, dest, sortId);<NEW_LINE>... | Path(src).getName(); |
1,362,244 | private static void extractGenericsConnections(final Map<GenericsTypeName, GenericsType> connections, final GenericsType[] usage, final GenericsType[] declaration) {<NEW_LINE>// if declaration does not provide generics, there is no connection to make<NEW_LINE>if (usage == null || declaration == null || declaration.leng... | ), di.getType()); |
1,728,926 | public void onEnable() {<NEW_LINE>PlanBungeeComponent component = DaggerPlanBungeeComponent.builder().plan(this).abstractionLayer(abstractionLayer).build();<NEW_LINE>try {<NEW_LINE>system = component.system();<NEW_LINE>locale = system<MASK><NEW_LINE>system.enable();<NEW_LINE>new BStatsBungee(this, system.getDatabaseSys... | .getLocaleSystem().getLocale(); |
1,790,273 | private void pullUp(NbCodeLanguageClient client, String uri, QuickPickItem source, QuickPickItem target, List<QuickPickItem> members) {<NEW_LINE>try {<NEW_LINE>FileObject file = Utils.fromUri(uri);<NEW_LINE>ClasspathInfo <MASK><NEW_LINE>JavaSource js = JavaSource.forFileObject(file);<NEW_LINE>if (js == null) {<NEW_LINE... | info = ClasspathInfo.create(file); |
974,359 | public void testSFLocal() {<NEW_LINE>SFLocalHome fhome1;<NEW_LINE>try {<NEW_LINE>fhome1 = (SFLocalHome) FATHelper.lookupJavaBinding(jndiSFLHome);<NEW_LINE>if (fhome1 == null) {<NEW_LINE>results <MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>} catch (Exception e) {<NEW_LINE>results = results + " FAIL: Exception thrown when... | = results + " FAIL: Unable to lookup bean home for " + jndiSFLHome + ". "; |
306,280 | public SSHKeyPairResponse createSSHKeyPairResponse(SSHKeyPair sshkeyPair, boolean privatekey) {<NEW_LINE>SSHKeyPairResponse response = new SSHKeyPairResponse(sshkeyPair.getUuid(), sshkeyPair.getName(), sshkeyPair.getFingerprint());<NEW_LINE>if (privatekey) {<NEW_LINE>response = new CreateSSHKeyPairResponse(sshkeyPair.g... | findAccountById(sshkeyPair.getAccountId()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.