Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for langs2 (0.04 sec)

  1. tests/upsert_test.go

    	var langs3 []Language
    	if err := DB.Find(&langs3, "code LIKE ?", "upsert-slice%").Error; err != nil {
    		t.Errorf("no error should happen when find languages with code, but got %v", err)
    	} else if len(langs3) != 3 {
    		t.Errorf("should only find only 3 languages, but got %+v", langs3)
    	}
    
    	for idx, lang := range langs {
    		lang.Name = lang.Name + "_new"
    		langs[idx] = lang
    	}
    
    	if err := DB.Clauses(clause.OnConflict{
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Jul 29 11:06:13 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. tests/generics_test.go

    	}).Create(ctx, &lang3); err != nil {
    		t.Fatalf("failed to upsert, got %v", err)
    	}
    
    	if langs, err := gorm.G[Language](DB).Where("code = ?", lang.Code).Find(ctx); err != nil {
    		t.Errorf("no error should happen when find languages with code, but got %v", err)
    	} else if len(langs) != 1 {
    		t.Errorf("should only find only 1 languages, but got %+v", langs)
    	} else if langs[0].Name != "upsert-new" {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 28K bytes
    - Viewed (0)
  3. .github/workflows/build-docs.yml

          - name: Export Language Codes
            id: show-langs
            run: |
              echo "langs=$(python ./scripts/docs.py langs-json)" >> $GITHUB_OUTPUT
    
      build-docs:
        needs:
          - changes
          - langs
        if: ${{ needs.changes.outputs.docs == 'true' }}
        runs-on: ubuntu-latest
        strategy:
          matrix:
            lang: ${{ fromJson(needs.langs.outputs.langs) }}
        steps:
          - name: Dump GitHub context
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Aug 15 21:44:06 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/suggest/converter/ReadingConverterTest.java

                        if (japaneseMode && "ja".equals(lang)) {
                            // Simulate Japanese conversion
                            if ("東京".equals(text)) {
                                readings.add("トウキョウ");
                            } else {
                                readings.add(text.toUpperCase() + "_" + lang);
                            }
                        } else if (langs.length > 1) {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/normalizer/AnalyzerNormalizer.java

            final Normalizer normalizer;
            if (langs == null || langs.length == 0) {
                normalizer = new LangAnalyzerNormalizer(null);
            } else {
                final NormalizerChain chain = new NormalizerChain();
                for (final String lang : langs) {
                    chain.add(new LangAnalyzerNormalizer(lang));
                }
                normalizer = chain;
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/converter/AnalyzerConverter.java

            final ReadingConverter converter;
            if (langs == null || langs.length == 0) {
                converter = new LangAnalyzerConverter(null);
            } else {
                final ReadingConverterChain chain = new ReadingConverterChain();
                for (final String lang : langs) {
                    chain.addConverter(new LangAnalyzerConverter(lang));
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/suggest/converter/AnalyzerConverterTest.java

            // Test convert with null languages
            String text = "test text";
            String field = "content";
            String[] langs = null;
    
            List<String> results = converter.convert(text, field, langs);
    
            assertNotNull(results);
            // Results may vary based on analyzer configuration
        }
    
        @Test
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java

         * It should initialize the command and flags2 with default values.
         */
        @Test
        void testConstructor() {
            // Verify that the command is set to SMB_COM_NEGOTIATE
            assertEquals(ServerMessageBlock.SMB_COM_NEGOTIATE, smbComNegotiate.command,
                    "Constructor should set the command to SMB_COM_NEGOTIATE.");
            // Verify that flags2 is set to the default flags
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

         * @param roles The roles.
         * @param num The number.
         * @param langs The languages.
         * @return The SuggestIndexResponse.
         */
        public SuggestIndexResponse indexFromSearchWord(final String searchWord, final String[] fields, final String[] tags,
                final String[] roles, final int num, final String[] langs) {
            if (logger.isDebugEnabled()) {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/Trans2GetDfsReferralResponse.java

                    path = readString(buffer, start + pathOffset, len, (flags2 & FLAGS2_UNICODE) != 0);
                    if (nodeOffset > 0) {
                        node = readString(buffer, start + nodeOffset, len, (flags2 & FLAGS2_UNICODE) != 0);
                    }
                } else if (version == 1) {
                    node = readString(buffer, bufferIndex, len, (flags2 & FLAGS2_UNICODE) != 0);
                }
    
                return size;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.2K bytes
    - Viewed (0)
Back to top