idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,430,121 | private static boolean waitForStreams(FileObject fo, int timeInMs, Set<?> streams) {<NEW_LINE>synchronized (StreamPool.class) {<NEW_LINE>if (isStreamOpen(streams)) {<NEW_LINE>long till = System.currentTimeMillis() + timeInMs;<NEW_LINE>boolean interrupted = false;<NEW_LINE>for (; ; ) {<NEW_LINE>long wait = till - System... | [] { streams, fo }); |
80,262 | private void onRenderTickStart() {<NEW_LINE>if (ShaderReflection.shaders_beginRender == null)<NEW_LINE>return;<NEW_LINE>if (ShaderReflection.config_isShaders == null)<NEW_LINE>return;<NEW_LINE>try {<NEW_LINE>// check if video is being rendered<NEW_LINE>if (((EntityRendererHandler.IEntityRenderer) mc.gameRenderer).repla... | mc.getTickDelta(), 0); |
1,630,281 | public com.amazonaws.services.directory.model.ShareLimitExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.directory.model.ShareLimitExceededException shareLimitExceededException = new com.amazonaws.services.directory.model.ShareLimitExceededExcep... | String currentParentElement = context.getCurrentParentElement(); |
1,457,321 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.... | find(id, Application.class); |
803,635 | public final QualifiedClassNameListContext qualifiedClassNameList() throws RecognitionException {<NEW_LINE>QualifiedClassNameListContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 92, RULE_qualifiedClassNameList);<NEW_LINE>try {<NEW_LINE>int _alt;<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setS... | QualifiedClassNameListContext(_ctx, getState()); |
1,435,670 | private boolean checkSubclassImpl(ClassCallExpression classCall1, ClassCallExpression classCall2, boolean correctOrder) {<NEW_LINE>CMP origCMP = myCMP;<NEW_LINE>for (ClassField field : classCall2.getDefinition().getFields()) {<NEW_LINE>if (field.isProperty()) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>Expression impl2 = ... | getDefinition().getImplementation(field); |
1,314,537 | public boolean transform() throws Throwable {<NEW_LINE>DelegatingProvider provider = new DelegatingProvider();<NEW_LINE>provider.register(new JVMMethodProvider());<NEW_LINE>provider.register(new JVMComparisonProvider());<NEW_LINE>provider.register(new MappedMethodProvider(classes));<NEW_LINE>provider.register(new Mappe... | method.instructions.remove(ain); |
232,523 | public Pair<Boolean, byte[]> execute(byte[] data) {<NEW_LINE>if (data == null)<NEW_LINE>data = EMPTY_BYTE_ARRAY;<NEW_LINE>// fail if input len is not a multiple of PAIR_SIZE<NEW_LINE>if (data.length % PAIR_SIZE > 0)<NEW_LINE>return Pair.of(false, EMPTY_BYTE_ARRAY);<NEW_LINE>PairingCheck check = PairingCheck.create();<N... | Pair.of(false, EMPTY_BYTE_ARRAY); |
1,795,586 | private JComponent createButtonPanel() {<NEW_LINE>JPanel fileChooserPanel = new JPanel(<MASK><NEW_LINE>fileChooserPanel.setBorder(new TitledBorder("Actions"));<NEW_LINE>fileChooser = new JFileChooser();<NEW_LINE>final JButton chooseFileButton = new JButton("Open...");<NEW_LINE>chooseFileButton.addActionListener(new Act... | new GridLayout(1, 0)); |
1,586,243 | public Assembler unbox(String desc) {<NEW_LINE>int <MASK><NEW_LINE>switch(typeCode) {<NEW_LINE>case '[':<NEW_LINE>case 'L':<NEW_LINE>mv.visitTypeInsn(CHECKCAST, Type.getType(desc).getInternalName());<NEW_LINE>break;<NEW_LINE>case 'Z':<NEW_LINE>mv.visitTypeInsn(CHECKCAST, BOOLEAN_BOXED_INTERNAL);<NEW_LINE>invokeVirtual(... | typeCode = desc.charAt(0); |
594,576 | public static CustomerShortNames[] fromCustomers(Customer[] customers) {<NEW_LINE>CustomerShortNames[] feedback = new CustomerShortNames[customers.length];<NEW_LINE>for (int i = 0; i < customers.length; i++) {<NEW_LINE>Customer aCustomer = customers[i];<NEW_LINE>CustomerShortNames newOne = new CustomerShortNames();<NEW... | setPostalCode(aCustomer.getPostalCode()); |
1,536,739 | public EmbeddedDestinationSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EmbeddedDestinationSettings embeddedDestinationSettings = new EmbeddedDestinationSettings();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE... | class).unmarshall(context)); |
1,037,580 | public void addObserver(final ServiceObserverPrx observer, Current current) {<NEW_LINE>java.util.List<String> activeServices = new java<MASK><NEW_LINE>//<NEW_LINE>// Null observers and duplicate registrations are ignored<NEW_LINE>//<NEW_LINE>synchronized (this) {<NEW_LINE>if (observer != null && _observers.add(observer... | .util.LinkedList<>(); |
1,136,805 | private int localizedWOWBY(TemporalAccessor temporal) {<NEW_LINE>int sow = weekDef<MASK><NEW_LINE>int isoDow = temporal.get(DAY_OF_WEEK);<NEW_LINE>int dow = Jdk8Methods.floorMod(isoDow - sow, 7) + 1;<NEW_LINE>long woy = localizedWeekOfYear(temporal, dow);<NEW_LINE>if (woy == 0) {<NEW_LINE>ChronoLocalDate previous = Chr... | .getFirstDayOfWeek().getValue(); |
517,848 | // sends diagnostic frames to initialize the system<NEW_LINE>public void initSystem() {<NEW_LINE>try {<NEW_LINE>logger.info("Sending frames to (re)initialize subsystems");<NEW_LINE>logger.debug("Sending {} frame to (re)initialize LIGHTING", LIGHTING_DIAGNOSTIC_FRAME);<NEW_LINE>myPlant.sendCommandSync(LIGHTING_DIAGNOSTI... | logger.debug("Sending {} frame to (re)initialize POWER MANAGEMENT", POWER_MANAGEMENT_DIAGNOSTIC_FRAME); |
749,321 | ActionResult<Wo> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>List<String> applicationIds = emc... | copier), WoParallel.copier)); |
834,329 | public static void main(String[] args) {<NEW_LINE>final DropShadow ds = new DropShadow();<NEW_LINE>final JPanel canvas = new JPanel() {<NEW_LINE><NEW_LINE>BufferedImage image = null;<NEW_LINE><NEW_LINE>Image shadow = null;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void paintComponent(Graphics g) {<NEW_LINE>Graphi... | size.height, BufferedImage.TYPE_INT_ARGB); |
860,244 | public void split() {<NEW_LINE>if (chord.isVip()) {<NEW_LINE>logger.info("VIP split {}, {} origins on {}", chord, origins.size(), side.opposite());<NEW_LINE>}<NEW_LINE>// Detect all partitions of consistent heads in this chord<NEW_LINE>getAllPartitions();<NEW_LINE>logger.debug("allPartitions: {}", allPartitions);<NEW_L... | lastSubStem, entry.getValue()); |
131,602 | protected XFormDialog buildDialog(Interface modelItem) {<NEW_LINE>XFormDialogBuilder builder = XFormFactory.createDialogBuilder(messages.get("Dialog.Title"));<NEW_LINE>XForm mainForm = builder.createForm(messages.get("Dialog.Basic.Label"));<NEW_LINE>addWSDLFields(mainForm, modelItem);<NEW_LINE>mainForm.addTextField(OUT... | , messages.get("Dialog.Basic.HelperGen")); |
723,351 | public void loadContactImage(CircleImageView imageView, TextView textView, Contact contact) {<NEW_LINE>try {<NEW_LINE>textView.setVisibility(View.VISIBLE);<NEW_LINE>imageView.setVisibility(View.GONE);<NEW_LINE>String contactNumber = "";<NEW_LINE>char firstLetter = 0;<NEW_LINE>contactNumber = contact.getDisplayName().to... | (GradientDrawable) textView.getBackground(); |
350,415 | private Map<String, String> formatDynamicCodeMessage(Event event, PromoCodeDiscount promoCodeDiscount) {<NEW_LINE>Validate.isTrue(promoCodeDiscount != null && promoCodeDiscount.getDiscountType() != PromoCodeDiscount.DiscountType.NONE);<NEW_LINE>var messageSource = messageSourceManager.getMessageSourceFor(event);<NEW_LI... | ), event.getCurrency()); |
783,646 | public static void finalSetup(Context ctx, boolean resetFileTree, boolean emulateFileTree) throws IOException {<NEW_LINE>if (resetFileTree) {<NEW_LINE>Logger.T(TAG, "Removing bundle upgrade");<NEW_LINE>removeBundleUpgrade();<NEW_LINE>copy("apps/rhoconfig.txt");<NEW_LINE>File libDir = new File(getRootPath(), "lib");<NEW... | libDir.getPath(), "rhoframework.iseq"); |
1,282,121 | // create a new instance atomically, broken out to aid inlining<NEW_LINE>private static HolidayCalendarId create(String name) {<NEW_LINE>// parse names once and build resolver function to aid performance<NEW_LINE>// name BBB+CCC+AAA changed to sorted form of AAA+BBB+CCC<NEW_LINE>// dedicated resolver function created<N... | normalizedName = JOINER_WIGGLE.join(ids); |
900,681 | @PutMapping(value = "/cmmn-runtime/case-instances/{caseInstanceId}", produces = "application/json")<NEW_LINE>public CaseInstanceResponse updateCaseInstance(@ApiParam(name = "caseInstanceId") @PathVariable String caseInstanceId, @RequestBody CaseInstanceUpdateRequest updateRequest, HttpServletRequest request, HttpServle... | restApiInterceptor.doCaseInstanceAction(caseInstance, updateRequest); |
1,803,157 | private void ReadTime(Vector dataVector, long type) throws IOException {<NEW_LINE>BoolVector boolVector = this.inStream.ReadBoolVector2(this.Files.size());<NEW_LINE>StreamSwitch streamSwitch = new StreamSwitch();<NEW_LINE>streamSwitch.Set(this.inStream, dataVector);<NEW_LINE>for (int i = 0; i < this.Files.size(); i++) ... | this.Files.get(i); |
1,689,078 | public CACertificate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CACertificate cACertificate = new CACertificate();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCu... | int originalDepth = context.getCurrentDepth(); |
1,025,328 | private <V> void doSchedule(ScheduledTaskDescriptor descriptor) {<NEW_LINE>assert descriptor.getScheduledFuture() == null;<NEW_LINE>TaskDefinition definition = descriptor.getDefinition();<NEW_LINE>ScheduledFuture future;<NEW_LINE>TaskRunner<V> runner;<NEW_LINE>try {<NEW_LINE>switch(definition.getType()) {<NEW_LINE>case... | , definition.getUnit())); |
92,973 | public static void init() {<NEW_LINE>INSTANCE.registerMessage(MessageKeyPressed.MessageHandler.class, MessageKeyPressed.class, 4, Side.SERVER);<NEW_LINE>INSTANCE.registerMessage(MessageSyncEnergyValues.MessageHandler.class, MessageSyncEnergyValues.<MASK><NEW_LINE>INSTANCE.registerMessage(MessageSetEnergyValue.MessageHa... | class, 6, Side.CLIENT); |
1,362,317 | private void pullImage(final String image) throws DockerException, InterruptedException {<NEW_LINE>listener.pulling();<NEW_LINE>DockerTimeoutException wasTimeout = null;<NEW_LINE>final Stopwatch pullTime = Stopwatch.createStarted();<NEW_LINE>// Attempt to pull. Failure, while less than ideal, is ok.<NEW_LINE>try {<NEW... | "Failed pulling image " + image + " because of timeout", wasTimeout); |
822,863 | public Set<FileObject> extend(WebModule webModule) {<NEW_LINE>CreateSpringConfig createSpringConfig = new CreateSpringConfig(webModule);<NEW_LINE>FileObject webInf = webModule.getWebInf();<NEW_LINE>if (webInf == null) {<NEW_LINE>try {<NEW_LINE>FileObject documentBase = webModule.getDocumentBase();<NEW_LINE>if (document... | log(Level.INFO, "WebModule does not have valid documentBase"); |
1,048,171 | public SJavaInfo convertToSObject(JavaInfo input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SJavaInfo result = new SJavaInfo();<NEW_LINE>result.setOid(input.getOid());<NEW_LINE>result.setUuid(input.getUuid());<NEW_LINE>result.setRid(input.getRid());<NEW_LINE>result.setHeapTotal(input.get... | setJavaExtdir(input.getJavaExtdir()); |
1,389,266 | private synchronized void writeMessage(byte[] message, OutputStream os) throws IOException {<NEW_LINE>// prepare data for encryption<NEW_LINE>int bytesCount = 6 + message.length;<NEW_LINE>if (bytesCount < 16) {<NEW_LINE>bytesCount = 16;<NEW_LINE>}<NEW_LINE>byte[] data = new byte[bytesCount];<NEW_LINE>int randomValue = ... | (this.rollingCounter >> 8); |
1,646,753 | public void fill(int start, int end, byte val) {<NEW_LINE>start += _start;<NEW_LINE>end += _start;<NEW_LINE>while (start < end) {<NEW_LINE>int chunk = start / growAmount;<NEW_LINE>int off = start % growAmount;<NEW_LINE>if (chunk < chunks.size()) {<NEW_LINE>int toFill = Math.min(end - start, growAmount - off);<NEW_LINE>... | off, off + toFill, val); |
1,629,270 | public static void apiManagementCreateApiWithOpenIdConnect(com.azure.resourcemanager.apimanagement.ApiManagementManager manager) {<NEW_LINE>manager.apis().define("tempgroup").withExistingService("rg1", "apimService1").withDisplayName("Swagger Petstore").withServiceUrl("http://petstore.swagger.io/v2").withPath("petstore... | ("subscription-key")).create(); |
576,355 | public Iterator<String> call(Integer partitionIdx, Iterator<MultiDataSet> iterator) throws Exception {<NEW_LINE>List<String> outputPaths = new ArrayList<>();<NEW_LINE>LinkedList<MultiDataSet> tempList = new LinkedList<>();<NEW_LINE>int count = 0;<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>MultiDataSet next = iterat... | tempList, partitionIdx, count, true); |
260,285 | public void execute(PyCursor cursor, PyObject params, PyObject bindings) throws SQLException {<NEW_LINE>if (closed) {<NEW_LINE>throw zxJDBC.makeException(zxJDBC.ProgrammingError, "statement is closed");<NEW_LINE>}<NEW_LINE>prepare(cursor, params, bindings);<NEW_LINE>Fetch fetch = cursor.fetch;<NEW_LINE>switch(style) {<... | final CallableStatement callableStatement = (CallableStatement) statement; |
1,127,452 | public static Iterator<BOp> preOrderIteratorWithAnnotations(final BOp op) {<NEW_LINE>return new Striterator(preOrderIterator(op)).addFilter(new Expander() {<NEW_LINE><NEW_LINE>private static final long serialVersionUID = 1L;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected Iterator expand(final Object arg0) {<NEW_LINE>f... | Striterator(new SingleValueIterator(op)); |
1,621,756 | public Documentation scan(DocumentationContext context) {<NEW_LINE>ApiListingReferenceScanResult result = apiListingReferenceScanner.scan(context);<NEW_LINE>ApiListingScanningContext listingContext = new ApiListingScanningContext(context, result.getResourceGroupRequestMappings());<NEW_LINE>Map<String, List<ApiListing>>... | (apiListingReferences(apiListings, context)); |
867,346 | private EditorEx createEditor(Project project, IdeDocumentHistoryImpl.PlaceInfo placeInfo) {<NEW_LINE>RangeMarker positionOffset = placeInfo.getCaretPosition();<NEW_LINE>if (positionOffset == null || !positionOffset.isValid()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>assert positionOffset.getStartOffset() == positio... | Document fileDocument = positionOffset.getDocument(); |
41,897 | private void jstackAndRespond(CentralRequest request, StreamObserver<AgentResponse> responseObserver) {<NEW_LINE>String jstack;<NEW_LINE>try {<NEW_LINE>jstack = liveJvmService.getJstack("");<NEW_LINE>} catch (UnavailableDueToRunningInJreException e) {<NEW_LINE>logger.debug(e.getMessage(), e);<NEW_LINE>responseObserver.... | true)).build()); |
484,551 | public Project createProject(String name, Long namespaceId, String description, Boolean issuesEnabled, Boolean mergeRequestsEnabled, Boolean wikiEnabled, Boolean snippetsEnabled, Visibility visibility, Integer visibilityLevel, String importUrl) throws GitLabApiException {<NEW_LINE>if (isApiVersion(ApiVersion.V3)) {<NEW... | .readEntity(Project.class)); |
1,731,513 | private static void insertAlignedRecords() throws IoTDBConnectionException, StatementExecutionException {<NEW_LINE>List<String> multiSeriesIds = new ArrayList<>();<NEW_LINE>List<List<String>> multiMeasurementComponentsList = new ArrayList<>();<NEW_LINE>List<List<TSDataType>> typeList = new ArrayList<>();<NEW_LINE>List<... | values = new ArrayList<>(); |
1,761,768 | private static void foldSequentialComments(List<FoldingDescriptor> descriptors, ASTNode node) {<NEW_LINE>// need to skip previous comments in sequence<NEW_LINE><MASK><NEW_LINE>while (curNode != null) {<NEW_LINE>if (curNode.getElementType() == BuildToken.COMMENT) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>curNode = isWhites... | ASTNode curNode = node.getTreePrev(); |
649,815 | public static HashMap<String, Double> determineEntityMentionConfidences(CoreMap entityMention) {<NEW_LINE>// get a list of labels that have probability values from the first token<NEW_LINE>Map<String, Double> tagProbs = entityMention.get(CoreAnnotations.TokensAnnotation.class).get(0).<MASK><NEW_LINE>if (tagProbs == nul... | get(CoreAnnotations.NamedEntityTagProbsAnnotation.class); |
1,616,340 | public ArrayList<SearchResult> search(String query, SearchSite site, SearchSortOrder sortBy) {<NEW_LINE>// Try to query the TorrentSearchProvider to search for torrents on the web<NEW_LINE>Uri uri = Uri.parse("content://org.transdroid.search.torrentsearchprovider/search/" + query);<NEW_LINE>Cursor cursor;<NEW_LINE>if (... | while (cursor.moveToNext()); |
1,623,660 | public void flush() {<NEW_LINE>final int nbSegments = getSize() / 4;<NEW_LINE>if (nbSegments == 0) {<NEW_LINE>additionalFlush();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final float[] lines = getLines();<NEW_LINE>final <MASK><NEW_LINE>if (paint != null) {<NEW_LINE>// monochromatic: that's enough<NEW_LINE>final int size = c... | Paint paint = mPaintList.getPaint(); |
107,142 | public void testThenApplyWithPreContextualizedAction() throws Exception {<NEW_LINE>ThreadContext cityContextPropagator = ThreadContext.builder().propagated(TestContextTypes.CITY).build();<NEW_LINE>ManagedExecutor executor = ManagedExecutor.builder().propagated(TestContextTypes.CITY).build();<NEW_LINE>try {<NEW_LINE>Cur... | preContextualizedAddCity = cityContextPropagator.contextualFunction(addCity); |
1,318,272 | public Object visit(Object context, OfOperatorExpression expr, boolean strict) {<NEW_LINE>LabelNode typeError = new LabelNode();<NEW_LINE>LabelNode end = new LabelNode();<NEW_LINE>expr.getLhs().<MASK><NEW_LINE>// obj(lhs)<NEW_LINE>append(jsGetValue());<NEW_LINE>// val(lhs)<NEW_LINE>expr.getRhs().accept(context, this, s... | accept(context, this, strict); |
156,846 | protected BeanDefinitionBuilder parseHandler(Element element, ParserContext parserContext) {<NEW_LINE>final BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(ContentEnricher.class);<NEW_LINE>IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "request-channel");<NEW_LINE... | .class).addConstructorArgValue(requestPayloadExpression); |
1,131,166 | private FieldDTO makeDTO(DatasetFieldType dataverseFieldType, FieldDTO value, String dataverseFieldName) {<NEW_LINE>if (dataverseFieldType.isAllowMultiples()) {<NEW_LINE>if (dataverseFieldType.isCompound()) {<NEW_LINE>value = <MASK><NEW_LINE>} else if (dataverseFieldType.isControlledVocabulary()) {<NEW_LINE>value = Fie... | FieldDTO.createMultipleCompoundFieldDTO(dataverseFieldName, value); |
1,796,225 | public <V> Future<V> immediateExecuteCallableInNewThread(final Callable<V> callable, final String threadName) {<NEW_LINE>if (checkIfSchedulerClosed()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Objects.requireNonNull(callable);<NEW_LINE>final String name = "runtime thread #" + THREAD_ID_COUNTER.next() + " " + threadNa... | ), callable.getClass()); |
874,340 | private Either<ErrorResponseWriter, CommandApiResponseWriter> handleExecuteCommandRequest(final int partitionId, final long requestId, final CommandApiRequestReader reader, final CommandApiResponseWriter responseWriter, final ErrorResponseWriter errorWriter) {<NEW_LINE>if (!isDiskSpaceAvailable) {<NEW_LINE>errorWriter.... | var command = reader.getMessageDecoder(); |
885,620 | private EllipticCurveOverFp computeWeierstrassEquivalent() {<NEW_LINE>BigInteger weierstrassA = new BigInteger("3").subtract(this.getFieldA().getData().modPow(new BigInteger("2"), this.getModulus()));<NEW_LINE>weierstrassA = weierstrassA.multiply(new BigInteger("3").multiply(this.getFieldB().getData().modPow(new BigInt... | toWeierstrass(this.getBasePoint()); |
1,156 | protected CachedValue<PsiReference[]> compute(final PsiElement element, Object p) {<NEW_LINE>return CachedValuesManager.getManager(element.getProject()).createCachedValue(() -> {<NEW_LINE>IssueNavigationConfiguration navigationConfiguration = IssueNavigationConfiguration.getInstance(element.getProject());<NEW_LINE>if (... | create(PsiReference.EMPTY_ARRAY, element); |
1,402,810 | private static void updateEntry(SQLiteDatabase db, long taskId, long propertyId, int type, String searchableText) {<NEW_LINE>// generate nGrams<NEW_LINE>Set<String> propertyNgrams = TRIGRAM_GENERATOR.getNgrams(searchableText);<NEW_LINE>propertyNgrams.addAll(TETRAGRAM_GENERATOR.getNgrams(searchableText));<NEW_LINE>// ge... | missing, taskId, propertyId, type); |
587,209 | public void updateTimelime(final Timeline timeline) throws InconsistentStateException, RepositoryProblemException {<NEW_LINE>if (null == timeline.getId()) {<NEW_LINE>throw new IllegalArgumentException("Timeline id can not be null on update (" + timeline + ")");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>jdbcTemplate.update("UP... | ), timeline.getId()); |
1,245,913 | public static ZNRecord toZNRecord(TableConfig tableConfig) throws JsonProcessingException {<NEW_LINE>Map<String, String> <MASK><NEW_LINE>// Mandatory fields<NEW_LINE>simpleFields.put(TableConfig.TABLE_NAME_KEY, tableConfig.getTableName());<NEW_LINE>simpleFields.put(TableConfig.TABLE_TYPE_KEY, tableConfig.getTableType()... | simpleFields = new HashMap<>(); |
413,261 | public Publisher<Buffer> serialize(final Publisher<T> toSerialize, final BufferAllocator allocator) {<NEW_LINE>return compressor == null ? toSerialize.map(t -> {<NEW_LINE>final int <MASK><NEW_LINE>Buffer buffer = allocator.newBuffer(METADATA_SIZE + sizeEstimate);<NEW_LINE>final int writerIndexBefore = buffer.writerInde... | sizeEstimate = serializedBytesEstimator.applyAsInt(t); |
126,700 | private void addGroup3(Composite composite) {<NEW_LINE>final Group container3 = new Group(composite, SWT.None);<NEW_LINE>container3.setLayout(new GridLayout(3, false));<NEW_LINE>GridData innergrid3 = new GridData(GridData.FILL_HORIZONTAL);<NEW_LINE>innergrid3.horizontalSpan = 3;<NEW_LINE>container3.setLayoutData(innerg... | Label(container3, SWT.NONE); |
198,556 | public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {<NEW_LINE>PsiElement element = descriptor.getPsiElement();<NEW_LINE>if (!element.isValid() || !(element instanceof GoConstDefinition)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String name = ((GoConstDefinition) element).getName();<NEW_... | GoConstDefinition) element).findSiblingType(); |
83,650 | public Map<String, String> parse(final char[] chars, int offset, int length, char separator) {<NEW_LINE>if (chars == null) {<NEW_LINE>return emptyMap();<NEW_LINE>}<NEW_LINE>Map<String, String> params = newMap();<NEW_LINE>this.chars = chars;<NEW_LINE>this.pos = offset;<NEW_LINE>this.len = length;<NEW_LINE>String paramNa... | new char[] { separator }); |
1,655,396 | public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>Dialog <MASK><NEW_LINE>res.requestWindowFeature(Window.FEATURE_NO_TITLE);<NEW_LINE>res.setCancelable(false);<NEW_LINE>hanldeOnboardingSteps();<NEW_LINE>mContentView = View.inflate(getActivity(), R.layout.fragment_welcome, null);<NEW_LINE>res.setContentV... | res = super.onCreateDialog(savedInstanceState); |
1,409,923 | private void applyToWST_XMLEditor(Theme theme, boolean revertToDefaults) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>IEclipsePreferences prefs = InstanceScope.INSTANCE.getNode("org.eclipse.wst.xml.ui");<NEW_LINE>setGeneralEditorValues(theme, prefs, revertToDefaults);<NEW_LINE>// FIXME These were adapted from our scopes for DTD,... | theme, "string.unquoted.cdata.xml", "cdataBorder", revertToDefaults); |
876,144 | public static WindowObjectInfo display(String p_title, Collection<Printable> p_object_list, BoardFrame p_board_frame, app.freerouting.board.CoordinateTransform p_coordinate_transform) {<NEW_LINE>WindowObjectInfo new_window <MASK><NEW_LINE>new_window.setTitle(p_title);<NEW_LINE>if (p_object_list.isEmpty()) {<NEW_LINE>ne... | = new WindowObjectInfo(p_board_frame, p_coordinate_transform); |
86,637 | public void onSendMessage(Participant participant, JsonObject message, Set<Participant> participants, String sessionId, String uniqueSessionId, Integer transactionId, OpenViduException error) {<NEW_LINE>boolean isRpcCall = transactionId != null;<NEW_LINE>if (isRpcCall) {<NEW_LINE>if (error != null) {<NEW_LINE>rpcNotifi... | = new HashSet<String>(); |
1,508,818 | public EnableVpcClassicLinkResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>EnableVpcClassicLinkResult enableVpcClassicLinkResult = new EnableVpcClassicLinkResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.i... | ().unmarshall(context)); |
1,238,726 | public static int askInput(String message, int timeout, int defaultValue, String... options) {<NEW_LINE>ConsoleInput con = ConsoleInput.get(1, timeout, TimeUnit.SECONDS);<NEW_LINE>if (con != null) {<NEW_LINE>StringBuilder msg = new StringBuilder(message + "\n\n");<NEW_LINE>for (int i = 0; i < options.length; i++) {<NEW... | i]).append("\n"); |
1,396,308 | private int rewriteExpressionOptionalQualifier(SwitchCase parent, StructuralPropertyDescriptor property, int startPos) {<NEW_LINE>RewriteEvent event = getEvent(parent, property);<NEW_LINE>if (event != null) {<NEW_LINE>switch(event.getChangeKind()) {<NEW_LINE>case RewriteEvent.INSERTED:<NEW_LINE>{<NEW_LINE>ASTNode node ... | = doVisit((ASTNode) node); |
918,564 | public static ListOTAModuleVersionsByDeviceResponse unmarshall(ListOTAModuleVersionsByDeviceResponse listOTAModuleVersionsByDeviceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listOTAModuleVersionsByDeviceResponse.setRequestId(_ctx.stringValue("ListOTAModuleVersionsByDeviceResponse.RequestId"));<NEW_LINE>listOTAModule... | ("ListOTAModuleVersionsByDeviceResponse.Data[" + i + "].ProductKey")); |
1,453,979 | void showHideControlButtons() {<NEW_LINE>Component tabComponent = null;<NEW_LINE>boolean tcSlidingEnabled = true;<NEW_LINE>boolean tcClosingEnabled = true;<NEW_LINE>int selIndex = Math.max(0, displayer.getSelectionModel().getSelectedIndex());<NEW_LINE>if (selIndex >= 0 && selIndex < displayer.getModel().size()) {<NEW_L... | .isTopComponentSlidingEnabled((TopComponent) tabComponent); |
1,339,033 | public void open(Configuration parameters) throws Exception {<NEW_LINE>List<Row> bc = getRuntimeContext().getBroadcastVariable("allLabels");<NEW_LINE>Integer[] order = new Integer[bc.size()];<NEW_LINE>for (int i = 0; i < order.length; i++) {<NEW_LINE>order[i] = i;<NEW_LINE>}<NEW_LINE>Arrays.sort(order, new Comparator<I... | (o2).getField(0); |
1,304,314 | public void insertPushEquals(int opcode, JumpInsnNode position, InsnList list) {<NEW_LINE>MethodInsnNode equalCheck = new MethodInsnNode(Opcodes.INVOKESTATIC, Type.getInternalName(BooleanHelper.class), "isEqual", Type.getMethodDescriptor(Type.INT_TYPE, Type.getType(Object.class), Type.getType(Object.class), Type.INT_TY... | , Type.INT_TYPE), false); |
1,462,026 | default void emitValue(@Nullable T value, Sinks.EmitFailureHandler failureHandler) {<NEW_LINE>if (value == null) {<NEW_LINE>emitEmpty(failureHandler);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (; ; ) {<NEW_LINE>Sinks.EmitResult emitResult = tryEmitValue(value);<NEW_LINE>if (emitResult.isSuccess()) {<NEW_LINE>return;<NEW... | onEmitFailure(SignalType.ON_NEXT, emitResult); |
1,718,256 | public ProcessStatus restWriteSetting(final PwmRequest pwmRequest) throws PwmUnrecoverableException, IOException {<NEW_LINE>final String profileID = "default";<NEW_LINE>final String settingKey = pwmRequest.readParameterAsString("key");<NEW_LINE>final String bodyString = pwmRequest.readRequestBodyAsString();<NEW_LINE>fi... | pwmSetting, profileID, DomainID.DOMAIN_ID_DEFAULT); |
1,535,554 | protected ClusterState.Builder becomeMasterAndTrimConflictingNodes(ClusterState currentState, List<Task> joiningNodes) {<NEW_LINE>assert currentState.nodes().getMasterNodeId() == null : currentState;<NEW_LINE>DiscoveryNodes currentNodes = currentState.nodes();<NEW_LINE>DiscoveryNodes.Builder nodesBuilder = DiscoveryNod... | nodes().getLocalNodeId()); |
35,610 | public void mouseDown(MouseEvent e) {<NEW_LINE>double x = xyGraph.primaryXAxis.getPositionValue(e.x, false);<NEW_LINE>double y = xyGraph.primaryYAxis.getPositionValue(e.y, false);<NEW_LINE>if (x < 0 || y < 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>double minDistance = 30.0d;<NEW_LINE>long time = 0;<NEW_LINE>double valu... | ).getInt(PreferenceConstants.P_CHART_LINE_WIDTH); |
1,302,640 | public static DescribeLiveRealtimeDeliveryAccResponse unmarshall(DescribeLiveRealtimeDeliveryAccResponse describeLiveRealtimeDeliveryAccResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLiveRealtimeDeliveryAccResponse.setRequestId<MASK><NEW_LINE>List<AccData> realTimeDeliveryAccData = new ArrayList<AccData>();<NEW... | (_ctx.stringValue("DescribeLiveRealtimeDeliveryAccResponse.RequestId")); |
933,217 | IRubyObject selectEnd(ThreadContext context) throws IOException {<NEW_LINE>if (selectors != null) {<NEW_LINE>for (int i = 0; i < selectors.size(); i++) {<NEW_LINE>Selector <MASK><NEW_LINE>// if it is a JDK selector, cache it<NEW_LINE>if (selector.provider() == SelectorProvider.provider()) {<NEW_LINE>// return to pool<N... | selector = selectors.get(i); |
1,286,557 | private void initializeActiveRegionEvaluationGenotyperEngine() {<NEW_LINE>final StandardCallerArgumentCollection activeRegionArgs = new StandardCallerArgumentCollection();<NEW_LINE><MASK><NEW_LINE>activeRegionArgs.outputMode = OutputMode.EMIT_VARIANTS_ONLY;<NEW_LINE>// low values used for isActive determination only, d... | activeRegionArgs.copyStandardCallerArgsFrom(hcArgs.standardArgs); |
1,704,950 | public static boolean showCustomizer() {<NEW_LINE>JSTestDriverCustomizerPanel panel = new JSTestDriverCustomizerPanel();<NEW_LINE>DialogDescriptor descriptor = new DialogDescriptor(panel, org.openide.util.NbBundle.getMessage(JSTestDriverCustomizerPanel.class, "MSG_CONFIGURE"));<NEW_LINE>panel.setDescriptor(descriptor);... | NbPreferences.forModule(JSTestDriverCustomizerPanel.class); |
939,052 | public void scrollTo(float x, float y, float width, float height, boolean centerHorizontal, boolean centerVertical) {<NEW_LINE>validate();<NEW_LINE>float amountX = this.amountX;<NEW_LINE>if (centerHorizontal) {<NEW_LINE>amountX = x - widgetArea.width / 2 + width / 2;<NEW_LINE>} else {<NEW_LINE>if (x + width > amountX +... | .height / 2 - height / 2; |
70,381 | public NetworkOfferingResponse newNetworkOfferingResponse(NetworkOffering offering) {<NEW_LINE>NetworkOfferingResponse networkOfferingResponse = new NetworkOfferingResponse();<NEW_LINE>networkOfferingResponse.setId(offering.getUuid());<NEW_LINE>networkOfferingResponse.setName(offering.getName());<NEW_LINE>networkOfferi... | setTags(offering.getTags()); |
1,751,369 | // Builds an ordered map of timezones sorted first by the timezone offset (keys of the TreeMap) and then<NEW_LINE>// alphabetically the timezones in that specific offset. Iterating over the map and keys maintains that order<NEW_LINE>@SuppressForbidden("Intentionally use system default timezone")<NEW_LINE>private static... | getDefault()).toInstant(); |
1,467,606 | private GenerateXcodeWorkspaceFileTask createWorkspaceTask(Project project, DefaultXcodeWorkspace workspace) {<NEW_LINE>File xcodeWorkspacePackageDir = project.file(project.getName() + ".xcworkspace");<NEW_LINE>workspace.getLocation().set(xcodeWorkspacePackageDir);<NEW_LINE>GenerateWorkspaceSettingsFileTask workspaceSe... | create("xcodeWorkspace", GenerateXcodeWorkspaceFileTask.class); |
221,199 | public void executeWriteAction(Editor editor, Caret caret, DataContext dataContext) {<NEW_LINE>final Document doc = editor.getDocument();<NEW_LINE>LogicalPosition caretPosition = caret.getLogicalPosition();<NEW_LINE>int startLine = caretPosition.line;<NEW_LINE>int endLine = startLine + 1;<NEW_LINE>if (caret.hasSelectio... | ).scrollToCaret(ScrollType.RELATIVE); |
204,786 | /* Build call for throttlingPoliciesAdvancedPolicyIdPut */<NEW_LINE>private com.squareup.okhttp.Call throttlingPoliciesAdvancedPolicyIdPutCall(String policyId, AdvancedThrottlePolicy body, String contentType, String ifMatch, String ifUnmodifiedSince, final ProgressResponseBody.ProgressListener progressListener, final P... | HashMap<String, String>(); |
1,848,425 | public void timeLimitedExport(Collection<SpanData> spanDataList) throws Exception {<NEW_LINE>List<String> jsonList = JsonConversionUtils.convertToJson(appName, spanDataList);<NEW_LINE>if (jsonList.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (String json : jsonList) {<NEW_LINE>OutputStream outputStream = null;... | (Charset.defaultCharset())); |
637,761 | public HistoricCaseInstanceResponse createHistoricCaseInstanceResponse(HistoricCaseInstance caseInstance, RestUrlBuilder urlBuilder) {<NEW_LINE>HistoricCaseInstanceResponse result = new HistoricCaseInstanceResponse();<NEW_LINE>result.<MASK><NEW_LINE>result.setBusinessStatus(caseInstance.getBusinessStatus());<NEW_LINE>r... | setBusinessKey(caseInstance.getBusinessKey()); |
909,005 | public RunState startTracking(IProgressMonitor monitor) throws Exception, OperationCanceledException {<NEW_LINE>// fetch an updated Cloud Application that reflects changes that<NEW_LINE>// were<NEW_LINE>// performed on it. Make sure the element element reference is updated<NEW_LINE>// as<NEW_LINE>// run state of the el... | getApplication(app.getName()); |
770,675 | private void addCSSClasses(SVGPlot svgp) {<NEW_LINE>final StyleLibrary style = context.getStyleLibrary();<NEW_LINE>// Class for the cube<NEW_LINE>if (!svgp.getCSSClassManager().contains(MARKER)) {<NEW_LINE>CSSClass cls = new CSSClass(this, MARKER);<NEW_LINE>cls.setStatement(SVGConstants.CSS_STROKE_VALUE, style.getColor... | .getOpacity(StyleLibrary.SELECTION)); |
1,015,598 | private void verifyResults(PrintWriter pw, long execId, String testName) throws TestFailureException {<NEW_LINE>// Common stuff<NEW_LINE>JobOperator jobOp = BatchRuntime.getJobOperator();<NEW_LINE>// Tests<NEW_LINE>if (testName.equals("flowTransitionIllegal")) {<NEW_LINE>JobWaiter waiter = new JobWaiter(JobWaiter.START... | entrySet().size()); |
1,327,736 | private void renderMinimizeButton(MatrixStack matrixStack, int x1, int y1, int x2, int y2, boolean hovering, boolean minimized) {<NEW_LINE>renderTitleBarButton(matrixStack, x1, y1, x2, y2, hovering);<NEW_LINE>Matrix4f matrix = matrixStack.peek().getPositionMatrix();<NEW_LINE>BufferBuilder bufferBuilder = Tessellator.ge... | ya2, 0).next(); |
1,060,081 | public ConstructorExecutor resolve(EvaluationContext context, String typeName, List<TypeDescriptor> argumentTypes) throws AccessException {<NEW_LINE>try {<NEW_LINE>TypeConverter typeConverter = context.getTypeConverter();<NEW_LINE>Class<?> type = context.getTypeLocator().findType(typeName);<NEW_LINE>Constructor<?>[<MAS... | ] ctors = type.getConstructors(); |
172,452 | private Properties createOverridingProperties() {<NEW_LINE>final Properties returnValue = new Properties();<NEW_LINE>// Load the properties file if specified<NEW_LINE>if (properties != null) {<NEW_LINE>try (InputStream inStream = Files.newInputStream(properties.toPath())) {<NEW_LINE>returnValue.load(inStream);<NEW_LINE... | = getProject().getProperties(); |
1,796,167 | public void handleEvent(Event event) {<NEW_LINE>TableItem item = (TableItem) event.item;<NEW_LINE>int index = table.indexOf(item);<NEW_LINE>PluginInterface pluginIF = pluginIFs.get(index);<NEW_LINE>for (int i = 0; i < COLUMN_HEADERS.length; i++) {<NEW_LINE>if (i == FilterComparator.FIELD_NAME)<NEW_LINE>item.setImage(i,... | isOperational() ? imgGreenLed : imgRedLed); |
1,640,950 | public boolean write() throws IOException {<NEW_LINE>Send send = networkSend.getPayload();<NEW_LINE>if (send == null) {<NEW_LINE>throw new IllegalStateException("Registered for write interest but no response attached to key.");<NEW_LINE>}<NEW_LINE>if (!closing && handshakeComplete) {<NEW_LINE>if (!flush(netWriteBuffer)... | long startTimeMs = time.milliseconds(); |
522,121 | private CloseSessionResponse closeSession(ServiceRequest service) throws UaException {<NEW_LINE>CloseSessionRequest request = (CloseSessionRequest) service.getRequest();<NEW_LINE>long secureChannelId = service.getSecureChannelId();<NEW_LINE>NodeId authToken = service.getRequest().getRequestHeader().getAuthenticationTok... | CloseSessionResponse(service.createResponseHeader()); |
560,510 | protected Message createMessage(Object objectToConvert, MessageProperties messageProperties, @Nullable Type genericType) throws MessageConversionException {<NEW_LINE>byte[] bytes;<NEW_LINE>try {<NEW_LINE>if (this.charsetIsUtf8 && this.supportedCTCharset == null) {<NEW_LINE>bytes = this.objectMapper.writeValueAsBytes(ob... | objectToConvert.getClass(), messageProperties); |
181,200 | public static void splitHyphenatedToken(Tree tree) {<NEW_LINE>List<Tree> childrenList = tree.getChildrenAsList();<NEW_LINE>for (int i = 0; i < childrenList.size(); i++) {<NEW_LINE>if (childrenList.get(i).isPreTerminal()) {<NEW_LINE>String potentialHyphenatedWord = childrenList.get(i).getLeaves().get(0).value();<NEW_LIN... | (wordTag, splitUpWord[0]); |
1,094,209 | private static void buildCollisionConvexHulls(TileSet tileSet, BufferedImage image, TextureSet.Builder textureSet) {<NEW_LINE>if (image != null) {<NEW_LINE>ConvexHulls convexHulls = TileSetUtil.calculateConvexHulls(image.getAlphaRaster(), 16, image.getWidth(), image.getHeight(), tileSet.getTileWidth(), tileSet.getTileH... | addAllCollisionGroups(tileSet.getCollisionGroupsList()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.