Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 282 for toTokens (1.69 sec)

  1. cmd/kubeadm/app/phases/bootstraptoken/node/token.go

    func CreateNewTokens(client clientset.Interface, tokens []bootstraptokenv1.BootstrapToken) error {
    	return UpdateOrCreateTokens(client, true, tokens)
    }
    
    // UpdateOrCreateTokens attempts to update a token with the given ID, or create if it does not already exist.
    func UpdateOrCreateTokens(client clientset.Interface, failIfExists bool, tokens []bootstraptokenv1.BootstrapToken) error {
    
    	for _, token := range tokens {
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/kotlinapplication/multi/app/App.kt.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import ${basePackagePrefix.raw}utilities.StringUtils
    
    import org.apache.commons.text.WordUtils
    
    fun main() {
        val tokens = StringUtils.split(MessageUtils.getMessage())
        val result = StringUtils.join(tokens)
        println(WordUtils.capitalize(result))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 313 bytes
    - Viewed (0)
  3. pkg/kubelet/images/puller.go

    	go func() {
    		if pip.tokens != nil {
    			pip.tokens <- struct{}{}
    			defer func() { <-pip.tokens }()
    		}
    		startTime := time.Now()
    		imageRef, err := pip.imageService.PullImage(ctx, spec, pullSecrets, podSandboxConfig)
    		var size uint64
    		if err == nil && imageRef != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 08 00:30:31 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. build-logic-commons/code-quality-rules/src/main/resources/checkstyle/checkstyle.xml

                <property name="option" value="statement"/>
                <property name="tokens" value="LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_IF,LITERAL_FOR,LITERAL_TRY,LITERAL_WHILE,INSTANCE_INIT,STATIC_INIT"/>
            </module>
            <module name="EmptyBlock">
                <property name="option" value="text"/>
                <property name="tokens" value="LITERAL_CATCH"/>
            </module>
            <module name="AvoidNestedBlocks">
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 16 22:05:16 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/antlr/useAntlrPlugin/groovy/src/test/java/org/gradle/GrammarTest.java

            ANTLRStringStream in = new ANTLRStringStream("1+2");
            CalculatorLexer lexer = new CalculatorLexer(in);
            CommonTokenStream tokens = new CommonTokenStream(lexer);
            CalculatorParser parser = new CalculatorParser(tokens);
            parser.add();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 569 bytes
    - Viewed (0)
  6. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/scalaapplication/multi/app/App.scala.template

    import ${basePackagePrefix.raw}utilities.StringUtils
    
    import org.apache.commons.text.WordUtils
    
    object App {
       def main(args: Array[String]): Unit = {
            val tokens = StringUtils.split(MessageUtils.getMessage())
            val result = StringUtils.join(tokens)
            println(WordUtils.capitalize(result))
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 374 bytes
    - Viewed (0)
  7. platforms/software/antlr/src/integTest/groovy/org/gradle/api/plugins/antlr/Antlr3PluginIntegrationTest.groovy

                        TestLexer lexer = new TestLexer(new ANTLRFileStream(args[0]));
                        CommonTokenStream tokens = new CommonTokenStream(lexer);
                        TestParser parser = new TestParser(tokens);
                        try {
                            parser.list();
                        } catch (RecognitionException e)  {
                            e.printStackTrace();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 14:52:10 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/swift/metadata/SwiftcMetadataProvider.java

                while ((line = reader.readLine()) != null) {
                    if (line.contains("Swift version")) {
                        String[] tokens = line.split(" ");
                        // Assuming format: 'Swift version 4.0.2 (...)'
                        int i = 2;
                        if ("Apple".equals(tokens[0])) {
                            // Actual format: 'Apple Swift version 4.0.2 (...)'
                            i++;
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/mod/modfile/print.go

    	}
    
    	// Queue end-of-line comments for printing when we
    	// reach the end of the line.
    	p.comment = append(p.comment, x.Comment().Suffix...)
    }
    
    func (p *printer) tokens(tokens []string) {
    	sep := ""
    	for _, t := range tokens {
    		if t == "," || t == ")" || t == "]" || t == "}" {
    			sep = ""
    		}
    		p.printf("%s%s", sep, t)
    		sep = " "
    		if t == "(" || t == "[" || t == "{" {
    			sep = ""
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 00:48:59 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  10. internal/s3select/sql/parser_test.go

    	lex, err := sqlLexer.Lex(s)
    	if err != nil {
    		t.Fatal(err)
    	}
    	tokens, err := lexer.ConsumeAll(lex)
    	if err != nil {
    		t.Fatal(err)
    	}
    	// for i, t := range tokens {
    	// 	fmt.Printf("%d: %#v\n", i, t)
    	// }
    	if len(tokens) != 7 {
    		t.Fatalf("Expected 7 got %d", len(tokens))
    	}
    }
    
    func TestSelectWhere(t *testing.T) {
    	p := participle.MustBuild(
    		&Select{},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top