Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for magic (0.17 sec)

  1. src/archive/tar/format.go

    	trailer := string(b.toSTAR().trailer())
    	switch {
    	case magic == magicUSTAR && trailer == trailerSTAR:
    		return formatSTAR
    	case magic == magicUSTAR:
    		return FormatUSTAR | FormatPAX
    	case magic == magicGNU && version == versionGNU:
    		return FormatGNU
    	default:
    		return formatV7
    	}
    }
    
    // setFormat writes the magic values necessary for specified format
    // and then updates the checksum accordingly.
    Go
    - Registered: 2023-12-05 11:13
    - Last Modified: 2023-10-13 18:36
    - 11.3K bytes
    - Viewed (0)
  2. fess-crawler/src/main/resources/org/codelibs/fess/crawler/mime/tika-mimetypes.xml

        <tika:uti>com.corel.wordperfect.doc</tika:uti>
        <magic priority="50">
          <match value="application/vnd.wordperfect;" type="string" offset="0"/>
        </magic>
        <magic priority="40">
          <match value="0xFF575043" type="big32" offset="0"/> <!-- ÿWPC -->
        </magic>
        <!-- If magic for the different versions doesn't work, fall back to glob -->
        <glob pattern="*.wpd"/>
    XML
    - Registered: 2023-11-05 03:50
    - Last Modified: 2023-09-21 06:46
    - 298.5K bytes
    - Viewed (2)
  3. okhttp/src/jvmMain/kotlin/okhttp3/internal/ws/WebSocketProtocol.kt

     * limitations under the License.
     */
    package okhttp3.internal.ws
    
    import okio.Buffer
    import okio.ByteString.Companion.encodeUtf8
    
    object WebSocketProtocol {
      /** Magic value which must be appended to the key in a response header. */
      internal const val ACCEPT_MAGIC = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"
    
      /*
      Each frame starts with two bytes of data.
    
       0 1 2 3 4 5 6 7    0 1 2 3 4 5 6 7
      +-+-+-+-+-------+  +-+-------------+
    Plain Text
    - Registered: 2023-12-01 11:42
    - Last Modified: 2021-12-16 08:22
    - 4.8K bytes
    - Viewed (0)
  4. docs_src/path_operation_advanced_configuration/tutorial006.py

    from fastapi import FastAPI, Request
    
    app = FastAPI()
    
    
    def magic_data_reader(raw_body: bytes):
        return {
            "size": len(raw_body),
            "content": {
                "name": "Maaaagic",
                "price": 42,
                "description": "Just kiddin', no magic here. ✨",
            },
        }
    
    
    @app.post(
        "/items/",
        openapi_extra={
            "requestBody": {
                "content": {
    Python
    - Registered: 2023-12-03 07:19
    - Last Modified: 2021-07-29 20:01
    - 1K bytes
    - Viewed (0)
  5. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/shared-configuration.kt

        }
    }
    
    
    private
    fun IntegrationTest.addDebugProperties() {
        // TODO Move magic property out
        if (project.hasProperty("org.gradle.integtest.debug")) {
            systemProperties["org.gradle.integtest.debug"] = "true"
            testLogging.showStandardStreams = true
        }
        // TODO Move magic property out
        if (project.hasProperty("org.gradle.integtest.verbose")) {
    Plain Text
    - Registered: 2023-11-29 11:36
    - Last Modified: 2023-09-30 16:17
    - 11.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMailDeliveryDepartmentCreator.java

    import org.dbflute.mail.send.supplement.label.SMailLabelStrategy;
    import org.dbflute.optional.OptionalThing;
    import org.dbflute.util.DfStringUtil;
    import org.lastaflute.core.magic.async.AsyncManager;
    import org.lastaflute.core.magic.async.ConcurrentAsyncCall;
    import org.lastaflute.core.message.MessageManager;
    import org.lastaflute.core.util.ContainerUtil;
    
    /**
     * @author jflute
     */
    Java
    - Registered: 2023-12-04 08:04
    - Last Modified: 2023-01-04 12:40
    - 7K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial006.py

        assert response.json() == {
            "size": 30,
            "content": {
                "name": "Maaaagic",
                "price": 42,
                "description": "Just kiddin', no magic here. ✨",
            },
        }
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
    Python
    - Registered: 2023-12-03 07:19
    - Last Modified: 2023-06-30 18:25
    - 1.9K bytes
    - Viewed (0)
  8. .gitattributes

    # Treat all files in the Go repo as binary, with no git magic updating
    # line endings. This produces predictable results in different environments.
    #
    # Windows users contributing to Go will need to use a modern version
    # of git and editors capable of LF line endings.
    #
    # Windows .bat files are known to have multiple bugs when run with LF
    # endings, and so they are checked in with CRLF endings, with a test
    Plain Text
    - Registered: 2023-12-05 11:13
    - Last Modified: 2020-06-08 15:31
    - 639 bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/NtlmContext.java

        private static final String S2C_SEAL_CONSTANT = "session key to server-to-client sealing key magic constant";
    
        private static final String C2S_SIGN_CONSTANT = "session key to client-to-server signing key magic constant";
        private static final String C2S_SEAL_CONSTANT = "session key to client-to-server sealing key magic constant";
    
    Java
    - Registered: 2023-12-03 00:10
    - Last Modified: 2020-07-07 12:07
    - 15.7K bytes
    - Viewed (0)
  10. okhttp/src/jvmMain/kotlin/okhttp3/internal/cache/DiskLruCache.kt

      private fun readJournal() {
        fileSystem.read(journalFile) {
          val magic = readUtf8LineStrict()
          val version = readUtf8LineStrict()
          val appVersionString = readUtf8LineStrict()
          val valueCountString = readUtf8LineStrict()
          val blank = readUtf8LineStrict()
    
          if (MAGIC != magic ||
              VERSION_1 != version ||
              appVersion.toString() != appVersionString ||
    Plain Text
    - Registered: 2023-12-01 11:42
    - Last Modified: 2023-01-08 22:45
    - 34.5K bytes
    - Viewed (0)
Back to top