can not find file  scripts/extract_features.py

Excuse me,Thanks for your great work.when I run this code ,It have a little question.
"python scripts/extract_features.py
--input_image_dir </path/to/CLEVR/images/train>
--output_h5_file </path/to/train_features.h5>
--model_stage 2"
I can not find file  scripts/extract_features.py
could you help me?

Hi Jack, we use Justin Johnson's processing script for this step; as we mention in our readme we recommend cloning his repo and following his steps for pre-processing the data.

Assuming this is resolved to inactivity; please reopen if you need any additional help figuring this out


Support cluster upgrade for day1 scenario

the kernel module image's tag should be equal to kernel version of the node. Pull image will get the current kernel version of the node and use this value as a tag for image to pull

/assign @qbarrand

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 75.56%. Comparing base (2ae391e) to head (2c5f782).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1076   +/-   ##
=======================================
  Coverage   75.56%   75.56%
=======================================
  Files          66       66
  Lines        5909     5909
=======================================
  Hits         4465     4465
  Misses       1216     1216
  Partials      228      228

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Host documentation at https://modelviewer.dev

Currently we host our documentation at a Github pages URL. We registered the domain name modelviewer.dev. We should host our documentation under that domain instead!

Fixed


[Discuss] Rename SharedTemplates to GovukComponents

We're updating slimmer across a lot of apps with breaking changes, so I thought to rename a few things for consistency while we're upgrading things.
We're already calling this functionality "GOV.UK components" in most places. For consistency this renames the modules that we include into the controller and tests.
Before
class ApplicationController < ActionController::Base
  include Slimmer::SharedTemplates
end

After
class ApplicationController < ActionController::Base
  include Slimmer::GovukComponents
end

Closes https://github.com/alphagov/slimmer/issues/169.
After merge:

[ ] http://govuk-component-guide.herokuapp.com/about

I like it. And :+1: to the - -> _ change too.

I feel this should be 'GovukPublishingComponents' or 'PublishingComponents'?
I think we should try and make sure we're not referring to our publishing applications as 'Govuk' as this is confusing at the moment and will be moreso in the future.
Happy to flesh these thoughts out more if you want.

Note sure about that now. This PR brings the module in line with how it's called in static, the apps (render "govuk_component") and in the guide app. I don't really want to change those...
This PR isn't meant to solve the naming confusing with other GDS products :)

Chatted with @tijmenb, right now people refer to the GOV.UK Components as 'GOV.UK Components' so 👍  for this, we can discuss the overall naming of GOV.UK Components when it makes sense to do so.

:100:


mm.min.js: Uncaught abstract method not implemented by subclass

The latest modestmaps.min.js bundled here throws the following error (I'm trying to get the layer switcher TileMill demo to run):
Uncaught Abstract method not implemented by subclass. modestmaps.min.js:14

Indeed, it needs an update - wax master is written against an untagged modest maps master. I'll hopefully get to this later.


Miscellaneous Fixes

i think for headers, title case is fine..? (that's the only nit i have actually)


Fix addComments feature (or docs)

The addComments config parameter seems not to work anymore in 1.1.0-0 (or the documentation is outdated).
When specifying addComments: 'translator:' as config option, the following comment will not be added to the .pot file: // translator: Bla. This is because the configured prefix needs to include the whitespace between // and translator. From my memory, this has worked before, and the documentation says it's supposed to work without specifying the space.
I'm using addComments: ' translator:' (note the space at the beginning of the string) as a workaround for now. Should we just update the docs and add the string there, or support whitespace in the matcher?
Thanks to everyone putting effort into maintaining this project, you rock! 👌🏻

Hey, thanks for the feedback!
I think that is a bug, and we should omit spaces after // while matching. That one should be easy to fix.

version 1.1.0 is available with fix


[BUG] Max examples is not respected in stateful tests

Checklist

[x] I checked the FAQ section of the documentation
[x] I looked for similar issues in the issue tracker
[x] I am using the latest version of Schemathesis

Describe the bug
Hi, I'm trying to run stateful tests where each test is running with 1 maximum example. But when I run the tests, they end up running forever. I'm following the documentation itself but to no luck.
Here is the code
from hypothesis import Phase, settings
import requests
import schemathesis

schema = schemathesis.from_path(
    "testing_oas.yaml",
    base_url="/api/v1/",
)

class APIWorkflow(schema.as_state_machine()):
    headers: dict

    def setup(self):
        # Make a login request
        response = requests.post(
            "/api/v1/login",
            json={
                "username": "xxxx",
                "password": "xxxx"
            },
            verify=False
        )
        response.raise_for_status()
        token = response.json()["token"]
        self.headers = {"Authorization": f"Bearer {token}"}

    def get_call_kwargs(self, case):
        # Use stored headers
        return {
            "headers": self.headers,
            "verify": False
        }

statefulTests = APIWorkflow()
statefulTests.run(
    settings=settings(
        max_examples=1
    )
)

Clearly describe the issue you're facing.
To Reproduce
🚨 Mandatory 🚨: Steps to reproduce the behavior:

Run the above code
Process does not terminate

Please include a minimal API schema causing this issue:
paths:
  /tenants/contact:
    post:
      tags:
        - Contact
      operationId: create_contact_api
      description: "Create a contact"
      summary: Create a contact
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ContactModel"
      responses:
        "200":
          description: Successful creation of a resource
          content:
            "text/plain; charset=utf-8":
              schema:
                type: object
                properties:
                  contact_id:
                    type: string
          links:
            GetContactById:
              operationId: get_contact_by_id_api
              parameters:
                contact_id: '$response.body#/contact_id'
        400:
          $ref: "#/components/responses/invalid_params"
        401:
          $ref: "#/components/responses/unauthorized"
        500:
          $ref: "#/components/responses/internal_server_error"
  /tenants/contact/{contact_id}:
    get:
      tags:
        - Contact
      summary: Get contact by Id
      operationId: get_contact_by_id_api
      description: Get a contact by contact Id
      parameters:
        - name: contact_id
          required: true
          in: path
          description: contact_id to get the contact
          schema:
            type: string
            format: uuid
      responses:
        "200":
          description: Get contacts
          content:
            application/json:
              schema:
                type: object
                properties:
                  contact_id:
                    type: string
                    example: "c453e2a1-773b-4d51-a8ba-c92f2b2e9fbd"
                  first_name:
                    type: string
                    example: "ubuntu"
                  last_name:
                    type: string
                    example: "testing"
                  email_id:
                    type: string
                    example<EMAIL_ADDRESS>                  is_global:
                    type: boolean
                  mobile_no:
                    type: string
                    example: "23213213231"
                  organization:
                    type: string
                    example: "nouveau labs"
                  location:
                    type: string
                    example: "Bangalore"
                  designation:
                    type: string
                    example: "Software Engineer"
                  department:
                    type: string
                    example: "engineering"
                  tags:
                    type: array
                    items:
                      type: string
                  dvc_user_id:
                    type: string
                    enum:
                      - "email_id"
                      - "mobile_no"
                      - "both"
        404:
          $ref: "#/components/responses/not_found"
        401:
          $ref: "#/components/responses/unauthorized"
        500:
          $ref: "#/components/responses/internal_server_error"

Expected behavior
Each API test should run once
Environment
- OS: Linux
- Python version: 3.10
- Schemathesis version: 3.20.0
- Spec version: Open API 3.0

Additional context
Include any other relevant details, like logs or screenshots.

Hi! Could you, please, try running the state machine above with the following settings:
‘’’
from hypothesis import settings, Verbosity, Phase
settings(
max_examples=1, stateful_step_count=5, verbosity=Verbosity.verbose,
phases=[Phase.generate]
)
’’’
also, have you observed any requests on the server side?

The response content type is expected to be JSON, not “text/plain; charset=utf-8”, otherwise it is not clear how to extract a field from text, even though it declares a schema

To conclude, the max_examples setting controls the number of sequences executed during the generate phase. Usually shrinking works slow with stateful tests and tends to run a lot of sequences, so I suspect that.


read_csv() does not support soft link?

I was trying to read a soft link to a csv file but failed.
Is this the expected behavior? Sometimes working with data it would be more convenient if I can use a soft link instead of the real file path.

In [3]: df = DataFrame(np.random.randn(5,5))

In [4]: df.to_csv('test.csv',mode='w')

In [6]: !ln -s test.csv test2.csv

In [7]: !ls -ltr *.csv
-rw-rw-r--  1 jreback  staff  402 Nov  5 07:45 test.csv
lrwxrwxr-x  1 jreback  staff    8 Nov  5 07:45 test2.csv -> test.csv

In [9]: pd.read_csv('test.csv',index_col=0)
Out[9]:
          0         1         2         3         4
0  0.374406 -0.963625 -1.640425  1.227618 -2.282998
1  0.631971 -0.915808 -1.792995  0.952393  0.709391
2  0.738525 -2.196856  1.600180 -0.751301 -0.926468
3 -2.185574 -0.091669 -1.712271  0.943839 -0.148508
4 -0.606274  0.646721  0.755271 -0.857622 -0.732984

In [10]: pd.read_csv('test2.csv',index_col=0)
Out[10]:
          0         1         2         3         4
0  0.374406 -0.963625 -1.640425  1.227618 -2.282998
1  0.631971 -0.915808 -1.792995  0.952393  0.709391
2  0.738525 -2.196856  1.600180 -0.751301 -0.926468
3 -2.185574 -0.091669 -1.712271  0.943839 -0.148508
4 -0.606274  0.646721  0.755271 -0.857622 -0.732984

this is on 0.17.0. if you have a repro example, pls show it and pd.show_versions()


Entry listing and searching

First of all, thank you for this great crate!
Context
I am working on Pimalaya, a project that tries to improve open-source tools related to Personal Information Management. I try to design a lib built at the top of you keyring crate that would be a bit higher level (including caching with keyutils, prompt for passwords etc). I also plan to develop a CLI at top of my lib.
Issue
Your crate seems to be focused on Entry, which means you expose a get set and delete. But for the CLI I also need to list and search entries, is it sth you plan to expose as well? I can propose a draft if you are interested in.

Hi Clément.  This is an intriguing idea.  Are you proposing to build search support into all of the underlying keystore implementations so that you can surface some sort of entry search?  I would certainly be interested in seeing a PR for that!

Are you proposing to build search support into all of the underlying
keystore implementations so that you can surface some sort of entry
search?

It does not mean to be complicated, just string matching could be
enough. The list is more important, as it allows lib consumers to build
their own search. My point was more to know if it fits your crate scope?
If so then I can propose a PR for listing, then let's see for the
search.

Sorry for the late reply.  I'd be very interested in seeing a PR that covers a listing in all platforms. I have consistently resisted the idea of adding any feature that only works on some platforms.

I'd be very interested in seeing a PR that covers a listing in all
platforms.

Alright then, I come back to you whenever I have something. It may be in
few weeks, maybe months.

I'd be very interested in seeing a PR that covers a listing in all platforms.
Alright then, I come back to you whenever I have something. It may be in few weeks, maybe months.

Is there any progress to this? I would really want to use it!

Is there any progress to this? I would really want to use it!

I had no occasion to work on this yet, plans slightly changed from my
side. I still keep the feature in mind If I find the time one day!

I was also interested in this for a sort of passwordless login code format I had for an API of mine. I just wanted to check if the credential made by the app to store the login code existed. I have a working version to list target names in Windows, but want to make sure that's the goal of this before I try to make it work on other platforms. It's just a vector of strings that can be iterated to match a target name given by the client.

It doesn't sound like you need any new features in the crate in order to do what you want.  If you can iterate the possible credential names, then you can use the crate to check if a credential with that name exists, and get its password.

Yes! I implemented a function called targets into the Entry struct. Then pointed to a default credential retriever function outside of the struct that points to the platform specific modules credential retriever (in my case, only Windows so far) and returns a list of all the targets in the store. I could be mistaken, but is this the feature looking to be added? Or is it a list of the whole entry; target, password, etc. and then a search function that we want? Thanks 👍🏻

I think the feature that @soywod proposed was meant to be more of a general search feature, where one might (for example) be able to iterate over all entries currently in the store.  There is no one currently working on this, as far as I know.

Search feature #169
I've started a pull request for this feature, details can be found in the PR.

keyring-search A separate library for broad keystore searching. #169 still under development but will need some tweaks to fit with the functionality of the rest of the crate.

keyring-search is on crates.io now, v0.1.0. Should be fully functional aside from BSD implementations.

I have closed #169 now that @wiimmers has released keyring-search.  If he has the time, we will create some code in this crate for search for keyring-created credentials.  But until then I recommend that people use the new crate for their searches.

Closing this issue now that keyring-search is available on crates.io.