Giter Club home page Giter Club logo

leblad's People

Contributors

abachi avatar abderrahmanemustapha avatar allcontributors[bot] avatar aminevolk avatar amtazi avatar anuragsati avatar dependabot[bot] avatar fcmam5 avatar joeylnguyen avatar oussamabouchikhi avatar redaloukil avatar spertch9a avatar xxkeefer avatar zibanpirate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leblad's Issues

Use of mutation testing in leblad - Help needed

Hello there!

My name is Ana. I noted that you use the mutation testing tool strykerjs in the project.
I am a postdoctoral researcher at the University of Seville (Spain), and my colleagues and I are studying how mutation testing tools are used in practice. With this aim in mind, we have analysed over 3,500 public GitHub repositories using mutation testing tools, including yours! This work has recently been published in a journal paper available at https://link.springer.com/content/pdf/10.1007/s10664-022-10177-8.pdf.

To complete this study, we are asking for your help to understand better how mutation testing is used in practice, please! We would be extremely grateful if you could contribute to this study by answering a brief survey of 21 simple questions (no more than 6 minutes). This is the link to the questionnaire https://forms.gle/FvXNrimWAsJYC1zB9.

Drop me an e-mail if you have any questions or comments ([email protected]). Thank you very much in advance!!

Feature requests for v0.0.1

We would like to provide some features in our initial release, and as suggested in our slack thread, we would like to have these features (sorted by votes).

If you'd like to contribute:

  • Comment on this issue with the feature you want to work on, and we will edit it to add your name, as in getWilayaList() example.
  • Read our contributing guidelines and code of conduct.
  • Add your feature (with tests of course ๐Ÿ˜„ ).
  • Document it in the Readme (example: getWilayaList(projection) )
  • Submit a new pull request and point your branch to develop.

Please take your time, and if you need any help we will be very happy to help you. You can find us in #repo-leblad channel on our Slack.

Update dataset

We know that the administrative division in Algeria has changed from 48 wilaya, to 58 wilaya, so it is clear that many of the data in this package are outdated.
that's why we need to update the dataset, so that whoever uses this package can see correct data that helps him in his work

Update the data set

I think that Get Baladiyats By Daira Code , which will be a function that returns the baldiyats that belong to a specific daira by entering a daira code as the input for this function

Add Dependency scanner and test coverage badge.

As a toolcoholic, I suggest adding these integrations:

All these tools should provide badges for README files, it would be nice to add them as well ๐Ÿ˜„ .

Why?

  • Because it's cool :)
  • We try to make this library useful, secure and stable for all consumers.

Wilayat data need to be updated

states data (wilayat) need to be updated.
The ten states (10 new states) become the states of Algeria 58 Algerian states after they were 48 Algerian states.

Wilayat No. 49: Timimoun Province, based in the city of Timimoun,
Wilayat No. 50: The Wilayat of Bordj Badji Mokhtar, based in the city of Bordj Badji Mokhtar.
Wilayat No. 51: Wilayat Awlad Jalal, located in the city of Awlad Jalal.
Wilayat No. 52: Wilayat Bani Abbas, based in the city of Bani Abbas,
State No. 53: State of In Saleh, based in the city of In Saleh,
Wilayat No. 54: The Wilayat of Ain Gezam, based in the city of Ain Gezam,
Wilayat No. 55: Wilayat Tougart, located in the city of Tougart,
State No. 56: State of Djanet, based in the city of Djanet,
Wilayat No. 57: Al-Mughayer Wilayat, located in the city of Al-Mughayer,
Wilayat No. 58: Wilayat Al-Manea, located in the city of Al-Manea

10 states need to be added

** What I have faced when trying to add the data**
the problem I found is I can't find the official site where I can extract data for the new 10 states, their phone Codes, or the new postal Codes Departments and their municipalities

Baladiya ( commune ) Fetch

As I see in the api https://github.com/Fcmam5/algeria-api/blob/develop/data/WilayaList.json , Baladiya list is attached to each Daira, Can anyone confirm ?

If it's the case, I suggest we add the following functionalities :

Get All Baladiya's attached to a Daira
By a given Daira, retrieve baladiya's List.

Get All Baladiya's attached to a Wilaya
By a given wilaya, retrieve baladya's List.

Get Wilaya and Daira in which the baladiya is located
By a given baladiya, Retrive the WIlaya and Daira.

Feature request: Add a getWilayaByPhoneCode method

As a user, I would like to have a method which it returns a wilaya code for a given phone code.
Example:

  • getWilayaByPhoneCode(41) return WilayaObject{ name: 'Oran'.. }

It would be great if the method accepts full phone numbers, truncate the phone code and then return the wilaya, example:

  • getWilayaByPhoneCode('0412345678')

N.B:

  • Please read our contributing guidelines and our code of conduct
  • Comment here so we know that you're on it ๐Ÿ .
  • Please keep it simple and clean, KISS ๐Ÿฅฐ .
  • Write tests
  • Update documentation in the readme file
  • It's okay to submit a PR with a function that only take a phone code (not a complete phone number).
  • Keep functions small, and pure. We may reuse your code in the future โ™ป๏ธ .
  • Ask for help, here or in Slack.

Happy Hacking !

Natural disaster list for each wilaya

add a list of natural disaster for each Wilaya
example :

 {
 "WilayaName": {
    "natural disaster":{
        "earthquakes" : [
             {"name": "name" , "date " :  22-3-2000, "deaths" : 1 , .more ......}
         ],
        "floods": [.......] 
      ........
}
}
}

Feature request: getBaladyiatsForDaira

Implement a new feature that takes a daira name (either in French, English or Arabic) and returns either a list of baladyiats or null.

  • getBaladyiatsForDaira(name: string): string

Please, don't forget to update the documentation in the README file (check this example PR).

Feature request: Extend wilayaProjection to project nested fields

Related to wilayaProjection:

The goal if this helper function is to return only the Wilaya objects properties that a user wants (Otherwise they will receive an element like this big & ugly ๐Ÿ˜„ ).

For now we can use this feature to only return only wilaya fields we want (example, and it will be great if we can project dairats (a Wilaya property containing an array of objects).

So when we call:

projectWilaya(someWilayaObject, ['name', 'dairats.name']);

You should only return the wilaya name and only names of its dairats.

We'd prefer a simple and minimalist solution, but if needed you can use any library you like. If you need some inspiration you can check projects like jq. Or just keep it simple, split by . and then add a magical recursive function to project daira object

getWilayaByBaladyiaName

Given a baladyia name or code ( would be more unique, because imo there is two baladya with same name and different wilaya).

Fix: Do not search for wilaya by zip code if it's invalid

In Algeria all ZIP codes are numeric in a form of WILAYA_CODE_XXXX. For example Oran city's code is 31, and it provinces have codes like 31000, 310094 ...

In this line :

const wilaya = data.find(w => w.postalCodes.includes(zipCode));

We are directly looking for the given zip code even if it's not a valid number. I suggest at least checking if the parameter is a number before searching.

Add wilaya names in Tifinagh

โš ๏ธ First timers only โš ๏ธ

The dataset in Algeria-API v1.1 has been updated to include wilayas names in Tifinagh. So we should update our library doing the following:

  • Run npm run update-dataset.
  • Change hasName (and its test ofc), to look into name_ber field as well.
  • Watch for any regression.

Feature request: getWilayaByDairaName

As a user, I would like to get a wilaya by a daira name.

It would be nice If I can pass either the name (In French), the name in English or in Arabic (You can have the beautified dataset from: algeria-api/data/WilayaList.json).

Examples:

  • getWilayaByDairaName('ZIAMAH MANSOURIAH')
  • getWilayaByDairaName('ุฒูŠุงู…ุฉ ู…ู†ุตูˆุฑูŠุฉ')

should return WilayaObject {name: "Jijel" ....}.

If the daira is not found return undefined.

Feature request: getWilayaByDairaName

Implement a new feature: getWilayaByDairaName. That takes a Daira name (French, English or Arabic) and returns either the corresponding wilaya or null.

  • getWilayaByDairaName(name: string, projection?: string[]): WilayaObject

Please, don't forget to update the documentation in the README file (check this example PR).

Feature request: Add `getPhoneCodeForWilaya` and `getPhoneCodesForWilaya `

โš ๏ธโš ๏ธโš ๏ธ
This issue is for first-timers only, we'd like you to start your open-source journey from here ๐Ÿ˜„
โš ๏ธโš ๏ธโš ๏ธ

As a library consumer, I would like to have a method that returns phone codes for each wilaya.
One of the use cases for this feature is with forms; in order to have a better user experience, we would like to set the phone code initials when the user select their wilaya. For example: if I fill the address block and set my city to Oran (code: 31) I would like if the phone number block is set automatically to 041.

What we want to add:

  • A getPhoneCodeForWilaya function that takes one parameter (wilayaCode: number) and returns the first phone code (as a wilaya, like Algiers have two phone codes: 21, 23).
  • A getPhoneCodesForWilaya function that takes one parameter (wilayaCode: number) and returns an array of all phoneCodes of that wilaya.

NB:

  • Please read our contributing guidelines and our code of conduct
  • Comment here so we know that you're on it ๐Ÿ .
  • Clone this repository, read the code and try to understand how we structured it.
  • Start hacking (PS: You can check the PRs we merged and see how our smart contributors added this kind of features)
  • Update documentation in the readme file
  • Ask for help, here or in Slack.

Happy Hacking !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.