Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/okfn-brasil/serenata-de-amor
/ functions
Functions
681 in github.com/okfn-brasil/serenata-de-amor
⨍
Functions
681
◇
Types & classes
217
↳
Endpoints
70
↓ 146 callers
Method
get
(self, request)
jarbas/chamber_of_deputies/views.py:16
↓ 35 callers
Method
read_csv
(self, name)
research/src/group_receipts.py:35
↓ 28 callers
Method
predict
(self, X)
rosie/rosie/chamber_of_deputies/classifiers/traveled_speeds_classifier.py:63
↓ 25 callers
Method
count
(self)
jarbas/dashboard/admin/paginators.py:11
↓ 25 callers
Function
get_reimbursement
(**kwargs)
jarbas/chamber_of_deputies/tests/test_reimbursement_view.py:16
↓ 17 callers
Method
exists
(self)
jarbas/chamber_of_deputies/models.py:53
↓ 16 callers
Method
handle
(self, *args, **options)
jarbas/chamber_of_deputies/management/commands/tweet.py:16
↓ 14 callers
Method
bool
(string)
jarbas/chamber_of_deputies/management/commands/suspicions.py:107
↓ 13 callers
Method
all
List generator with Receipt objects containing the path of the receipt image (to be used when saving it, for example) and the URL of
research/src/fetch_receipts.py:36
↓ 12 callers
Method
update
(self, reimbursement)
jarbas/chamber_of_deputies/management/commands/receipts.py:61
↓ 10 callers
Method
get_receipt_url
(self, force=False, bulk=False)
jarbas/chamber_of_deputies/models.py:118
↓ 10 callers
Method
to_number
(value, cast=None)
jarbas/core/management/commands/__init__.py:18
↓ 9 callers
Method
predict
(self, dataframe)
rosie/rosie/core/classifiers/invalid_cnpj_cpf_classifier.py:28
↓ 7 callers
Method
fit
(self, X)
rosie/rosie/chamber_of_deputies/classifiers/traveled_speeds_classifier.py:52
↓ 7 callers
Method
print_count
(self, **kwargs)
jarbas/chamber_of_deputies/management/commands/receipts.py:80
↓ 7 callers
Method
value
(self, obj)
jarbas/dashboard/admin/__init__.py:139
↓ 6 callers
Function
clean_cnpj_cpf
(value)
jarbas/chamber_of_deputies/serializers.py:135
↓ 6 callers
Method
get_url
(self)
jarbas/chamber_of_deputies/models.py:168
↓ 6 callers
Method
load_trained_model
(self, classifier)
rosie/rosie/core/__init__.py:52
↓ 6 callers
Method
serialize
Reads the dict generated by DictReader and returns another dict with the `document_id` and with data about the suspicions.
jarbas/chamber_of_deputies/management/commands/suspicions.py:51
↓ 6 callers
Method
suspicions
Returns a Generator with batches of suspicions.
jarbas/chamber_of_deputies/management/commands/suspicions.py:39
↓ 6 callers
Method
to_date
(text)
jarbas/core/management/commands/__init__.py:28
↓ 6 callers
Function
to_float
(number)
jarbas/chamber_of_deputies/serializers.py:117
↓ 5 callers
Method
drop_all
(self, model)
jarbas/core/management/commands/__init__.py:50
↓ 5 callers
Function
format_cnpj
(cnpj)
jarbas/chamber_of_deputies/serializers.py:124
↓ 5 callers
Method
has_module_perms
(self, app_label)
jarbas/public_admin/sites.py:10
↓ 5 callers
Method
print_msg
(msg, permanent=False)
jarbas/chamber_of_deputies/management/commands/receipts.py:70
↓ 4 callers
Method
_format_document
(self, obj)
jarbas/dashboard/admin/__init__.py:64
↓ 4 callers
Method
add_arguments
(self, parser)
jarbas/chamber_of_deputies/management/commands/tweet.py:9
↓ 4 callers
Method
aggregate
Gets a GroupBy object, aggregates it on `old` using `func`, then rename the series name from `old` to `new`, returning a DataFrame.
research/src/group_receipts.py:69
↓ 4 callers
Method
count_msg
(self)
jarbas/chamber_of_deputies/management/commands/receipts.py:77
↓ 4 callers
Method
group
(self, receipts)
research/src/group_receipts.py:78
↓ 4 callers
Method
main
(self)
jarbas/chamber_of_deputies/management/commands/suspicions.py:79
↓ 4 callers
Method
print_count
(self, model, **kwargs)
jarbas/core/management/commands/__init__.py:57
↓ 4 callers
Method
rename_categories
(self, df)
rosie/rosie/chamber_of_deputies/adapter.py:103
↓ 4 callers
Method
render
(self, name, value, attrs=None, renderer=None)
jarbas/dashboard/admin/widgets.py:47
↓ 4 callers
Method
schedule_update
(self, content)
jarbas/chamber_of_deputies/management/commands/suspicions.py:85
↓ 4 callers
Method
valid_url
(url)
jarbas/public_admin/sites.py:28
↓ 4 callers
Method
was_ordered
(self)
jarbas/chamber_of_deputies/querysets.py:50
↓ 3 callers
Method
__applicable_rows
(self, X)
rosie/rosie/chamber_of_deputies/classifiers/meal_price_outlier_classifier.py:84
↓ 3 callers
Method
_bool_param
(self, param)
jarbas/chamber_of_deputies/views.py:67
↓ 3 callers
Method
_data_by_pattern
Given a glob pattern, loads all files matching this pattern, and then concats them all in a single data frame
research/src/fetch_campaign_donations.py:154
↓ 3 callers
Method
as_list
(content, cast=None)
jarbas/chamber_of_deputies/models.py:141
↓ 3 callers
Method
deserialize
(cls, value, *args, **kwargs)
jarbas/chamber_of_deputies/fields.py:9
↓ 3 callers
Function
extract_file_name_from_args
(filepath)
research/src/fetch_cnpj_info.py:166
↓ 3 callers
Method
fetch
(self)
research/src/fetch_purchase_suppliers.py:44
↓ 3 callers
Function
find_newest_file
Assuming that the files will be in the form of : yyyy-mm-dd-type_of_file.xz we can try to find the newest file based on the date, but if
research/src/fetch_foursquare_info.py:15
↓ 3 callers
Method
fit
(self, dataframe)
rosie/rosie/core/classifiers/invalid_cnpj_cpf_classifier.py:22
↓ 3 callers
Method
get_document_id
Gets a URL (str) and return the Reimbursement document ID (int) contained in it. If nothing is found, or document ID is not an `int`
jarbas/chamber_of_deputies/management/commands/tweets.py:83
↓ 3 callers
Method
get_model_name
(model)
jarbas/core/management/commands/__init__.py:66
↓ 3 callers
Method
get_queryset
(self)
jarbas/chamber_of_deputies/management/commands/receipts.py:58
↓ 3 callers
Method
has_perm
(self, permission, obj=None)
jarbas/public_admin/sites.py:13
↓ 3 callers
Method
has_permission
(self, request)
jarbas/public_admin/sites.py:45
↓ 3 callers
Method
has_receipt_url
(self, boolean)
jarbas/chamber_of_deputies/querysets.py:38
↓ 3 callers
Function
load_newest_dataset
(pattern, usecols, na_value='')
research/src/fetch_sex_places.py:353
↓ 3 callers
Method
pt_br
(cls, en_us)
jarbas/dashboard/admin/subquotas.py:84
↓ 3 callers
Method
save_tweet
:param reimbursement: Reimbursement instance :param status: (int) Tweet status ID
jarbas/chamber_of_deputies/management/commands/tweets.py:107
↓ 3 callers
Method
suspicions
(self, boolean)
jarbas/chamber_of_deputies/querysets.py:35
↓ 3 callers
Method
to_email
(email)
jarbas/core/management/commands/companies.py:80
↓ 2 callers
Method
__aggregate_dataset
(self, X)
rosie/rosie/chamber_of_deputies/classifiers/traveled_speeds_classifier.py:75
↓ 2 callers
Method
__applicable_company_rows
(self, companies)
rosie/rosie/chamber_of_deputies/classifiers/meal_price_outlier_classifier.py:89
↓ 2 callers
Method
__applicable_rows
(self, X)
rosie/rosie/chamber_of_deputies/classifiers/traveled_speeds_classifier.py:95
↓ 2 callers
Method
__repr__
(self)
jarbas/chamber_of_deputies/models.py:175
↓ 2 callers
Method
_create_dataframe
(self, dataframe_data)
rosie/rosie/chamber_of_deputies/tests/test_election_expenses_classifier.py:43
↓ 2 callers
Method
_get_company_dataset
(self, **kwargs)
rosie/rosie/chamber_of_deputies/tests/test_irregular_companies_classifier.py:33
↓ 2 callers
Method
_read_csv
Wrapper to read CSV with default args and an optional `chunksize`
research/src/fetch_campaign_donations.py:145
↓ 2 callers
Method
add_arguments
(self, parser, add_drop_all=True)
jarbas/core/management/commands/__init__.py:9
↓ 2 callers
Function
brazilian_float
(value)
jarbas/dashboard/templatetags/dashboard.py:34
↓ 2 callers
Method
bulk_update
(self)
jarbas/chamber_of_deputies/management/commands/receipts.py:52
↓ 2 callers
Method
create_batches
(self)
jarbas/chamber_of_deputies/management/commands/reimbursements.py:39
↓ 2 callers
Function
extract_data_from_page
Extracts all relevant data from a page and returns it as Dict. Each information is inside a key in the dict as following: - Deputy name,
research/src/fetch_deputies_advisors.py:127
↓ 2 callers
Method
fetch
(self)
jarbas/chamber_of_deputies/management/commands/receipts.py:45
↓ 2 callers
Function
find_newest_file
Assuming that the files will be in the form of: yyyy-mm-dd-type-of-file.xz we can try to find the newest file based on the date.
research/src/fetch_sex_places.py:336
↓ 2 callers
Function
find_newest_file
(name)
research/src/fetch_yelp_info.py:47
↓ 2 callers
Function
get_page
Returns a POST AsyncRequest object from grequests ready to be sent to `CAMARA_URL` with `lotacao` field filled with `deputy_number`. Some
research/src/fetch_deputies_advisors.py:109
↓ 2 callers
Method
handle
(self, *args, **options)
jarbas/core/management/commands/companies.py:14
↓ 2 callers
Method
has_receipt_url
(self, obj)
jarbas/dashboard/admin/__init__.py:133
↓ 2 callers
Function
is_single_word
(s)
research/src/get_family_names.py:38
↓ 2 callers
Method
list_distinct
(self, field, order_by_field, query=None)
jarbas/chamber_of_deputies/querysets.py:27
↓ 2 callers
Method
parse
Return a dictionary with information of the nearest sex place around a given company. :param keyword: (str) keyword used by t
research/src/fetch_sex_places.py:170
↓ 2 callers
Function
parse_search_results
Return the first venue from the given search response
research/src/fetch_foursquare_info.py:103
↓ 2 callers
Method
persist_batch
(self, print_permanent=False)
jarbas/chamber_of_deputies/management/commands/reimbursements.py:47
↓ 2 callers
Method
predict
(self, model, name)
rosie/rosie/core/__init__.py:71
↓ 2 callers
Method
print_pause
(self, **kwargs)
jarbas/chamber_of_deputies/management/commands/receipts.py:83
↓ 2 callers
Method
print_saving
(self, **kwargs)
jarbas/chamber_of_deputies/management/commands/receipts.py:87
↓ 2 callers
Method
queryset
(self, request, queryset)
jarbas/dashboard/admin/list_filters.py:25
↓ 2 callers
Function
random_tweet_status
Fixture generators (mixer, and faker behind the scenes) won't generate a value for a `DecimalField` with zero decimal places - which is the c
jarbas/chamber_of_deputies/tests/__init__.py:47
↓ 2 callers
Method
receipts
Returns a Generator with batches of receipts text.
jarbas/chamber_of_deputies/management/commands/receipts_text.py:33
↓ 2 callers
Function
remaining_cnpjs
(cnpj_list_to_import, temp_dataset)
research/src/fetch_cnpj_info.py:199
↓ 2 callers
Method
render
(self, name, value, attrs=None, renderer=None)
jarbas/dashboard/admin/widgets.py:10
↓ 2 callers
Method
same_day_as
(self, document_id)
jarbas/chamber_of_deputies/querysets.py:13
↓ 2 callers
Method
save_activities
(self, row)
jarbas/core/management/commands/companies.py:48
↓ 2 callers
Method
save_companies
Receives path to the dataset file and create a Company object for each row of each file. It creates the related activity when needed.
jarbas/core/management/commands/companies.py:26
↓ 2 callers
Function
serialize
Read the dict generated by the reimbursement command and returns a Reimbursement model instance.
jarbas/chamber_of_deputies/tasks.py:37
↓ 2 callers
Method
serialize
(self, row)
jarbas/core/management/commands/companies.py:66
↓ 2 callers
Function
standardize_name
(name)
research/src/fetch_yelp_info.py:99
↓ 2 callers
Method
transform
(self, dataframe=None)
rosie/rosie/core/classifiers/invalid_cnpj_cpf_classifier.py:25
↓ 2 callers
Method
url
:param endpoint: (str) Google Places API endpoint name (e.g. details) :param query: (tuple) tuples with key/values pairs for the URL
research/src/fetch_sex_places.py:36
↓ 2 callers
Function
write_fetched_companies
(companies)
research/src/fetch_yelp_info.py:82
↓ 2 callers
Function
write_fetched_companies
Save a compressed CSV file with the given DF
research/src/fetch_foursquare_info.py:127
next →
1–100 of 681, ranked by callers