MCPcopy Create free account

hub / github.com/okfn-brasil/serenata-de-amor / functions

Functions681 in github.com/okfn-brasil/serenata-de-amor

↓ 146 callersMethodget
(self, request)
jarbas/chamber_of_deputies/views.py:16
↓ 35 callersMethodread_csv
(self, name)
research/src/group_receipts.py:35
↓ 28 callersMethodpredict
(self, X)
rosie/rosie/chamber_of_deputies/classifiers/traveled_speeds_classifier.py:63
↓ 25 callersMethodcount
(self)
jarbas/dashboard/admin/paginators.py:11
↓ 25 callersFunctionget_reimbursement
(**kwargs)
jarbas/chamber_of_deputies/tests/test_reimbursement_view.py:16
↓ 17 callersMethodexists
(self)
jarbas/chamber_of_deputies/models.py:53
↓ 16 callersMethodhandle
(self, *args, **options)
jarbas/chamber_of_deputies/management/commands/tweet.py:16
↓ 14 callersMethodbool
(string)
jarbas/chamber_of_deputies/management/commands/suspicions.py:107
↓ 13 callersMethodall
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 callersMethodupdate
(self, reimbursement)
jarbas/chamber_of_deputies/management/commands/receipts.py:61
↓ 10 callersMethodget_receipt_url
(self, force=False, bulk=False)
jarbas/chamber_of_deputies/models.py:118
↓ 10 callersMethodto_number
(value, cast=None)
jarbas/core/management/commands/__init__.py:18
↓ 9 callersMethodpredict
(self, dataframe)
rosie/rosie/core/classifiers/invalid_cnpj_cpf_classifier.py:28
↓ 7 callersMethodfit
(self, X)
rosie/rosie/chamber_of_deputies/classifiers/traveled_speeds_classifier.py:52
↓ 7 callersMethodprint_count
(self, **kwargs)
jarbas/chamber_of_deputies/management/commands/receipts.py:80
↓ 7 callersMethodvalue
(self, obj)
jarbas/dashboard/admin/__init__.py:139
↓ 6 callersFunctionclean_cnpj_cpf
(value)
jarbas/chamber_of_deputies/serializers.py:135
↓ 6 callersMethodget_url
(self)
jarbas/chamber_of_deputies/models.py:168
↓ 6 callersMethodload_trained_model
(self, classifier)
rosie/rosie/core/__init__.py:52
↓ 6 callersMethodserialize
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 callersMethodsuspicions
Returns a Generator with batches of suspicions.
jarbas/chamber_of_deputies/management/commands/suspicions.py:39
↓ 6 callersMethodto_date
(text)
jarbas/core/management/commands/__init__.py:28
↓ 6 callersFunctionto_float
(number)
jarbas/chamber_of_deputies/serializers.py:117
↓ 5 callersMethoddrop_all
(self, model)
jarbas/core/management/commands/__init__.py:50
↓ 5 callersFunctionformat_cnpj
(cnpj)
jarbas/chamber_of_deputies/serializers.py:124
↓ 5 callersMethodhas_module_perms
(self, app_label)
jarbas/public_admin/sites.py:10
↓ 5 callersMethodprint_msg
(msg, permanent=False)
jarbas/chamber_of_deputies/management/commands/receipts.py:70
↓ 4 callersMethod_format_document
(self, obj)
jarbas/dashboard/admin/__init__.py:64
↓ 4 callersMethodadd_arguments
(self, parser)
jarbas/chamber_of_deputies/management/commands/tweet.py:9
↓ 4 callersMethodaggregate
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 callersMethodcount_msg
(self)
jarbas/chamber_of_deputies/management/commands/receipts.py:77
↓ 4 callersMethodgroup
(self, receipts)
research/src/group_receipts.py:78
↓ 4 callersMethodmain
(self)
jarbas/chamber_of_deputies/management/commands/suspicions.py:79
↓ 4 callersMethodprint_count
(self, model, **kwargs)
jarbas/core/management/commands/__init__.py:57
↓ 4 callersMethodrename_categories
(self, df)
rosie/rosie/chamber_of_deputies/adapter.py:103
↓ 4 callersMethodrender
(self, name, value, attrs=None, renderer=None)
jarbas/dashboard/admin/widgets.py:47
↓ 4 callersMethodschedule_update
(self, content)
jarbas/chamber_of_deputies/management/commands/suspicions.py:85
↓ 4 callersMethodvalid_url
(url)
jarbas/public_admin/sites.py:28
↓ 4 callersMethodwas_ordered
(self)
jarbas/chamber_of_deputies/querysets.py:50
↓ 3 callersMethod__applicable_rows
(self, X)
rosie/rosie/chamber_of_deputies/classifiers/meal_price_outlier_classifier.py:84
↓ 3 callersMethod_bool_param
(self, param)
jarbas/chamber_of_deputies/views.py:67
↓ 3 callersMethod_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 callersMethodas_list
(content, cast=None)
jarbas/chamber_of_deputies/models.py:141
↓ 3 callersMethoddeserialize
(cls, value, *args, **kwargs)
jarbas/chamber_of_deputies/fields.py:9
↓ 3 callersFunctionextract_file_name_from_args
(filepath)
research/src/fetch_cnpj_info.py:166
↓ 3 callersMethodfetch
(self)
research/src/fetch_purchase_suppliers.py:44
↓ 3 callersFunctionfind_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 callersMethodfit
(self, dataframe)
rosie/rosie/core/classifiers/invalid_cnpj_cpf_classifier.py:22
↓ 3 callersMethodget_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 callersMethodget_model_name
(model)
jarbas/core/management/commands/__init__.py:66
↓ 3 callersMethodget_queryset
(self)
jarbas/chamber_of_deputies/management/commands/receipts.py:58
↓ 3 callersMethodhas_perm
(self, permission, obj=None)
jarbas/public_admin/sites.py:13
↓ 3 callersMethodhas_permission
(self, request)
jarbas/public_admin/sites.py:45
↓ 3 callersMethodhas_receipt_url
(self, boolean)
jarbas/chamber_of_deputies/querysets.py:38
↓ 3 callersFunctionload_newest_dataset
(pattern, usecols, na_value='')
research/src/fetch_sex_places.py:353
↓ 3 callersMethodpt_br
(cls, en_us)
jarbas/dashboard/admin/subquotas.py:84
↓ 3 callersMethodsave_tweet
:param reimbursement: Reimbursement instance :param status: (int) Tweet status ID
jarbas/chamber_of_deputies/management/commands/tweets.py:107
↓ 3 callersMethodsuspicions
(self, boolean)
jarbas/chamber_of_deputies/querysets.py:35
↓ 3 callersMethodto_email
(email)
jarbas/core/management/commands/companies.py:80
↓ 2 callersMethod__aggregate_dataset
(self, X)
rosie/rosie/chamber_of_deputies/classifiers/traveled_speeds_classifier.py:75
↓ 2 callersMethod__applicable_company_rows
(self, companies)
rosie/rosie/chamber_of_deputies/classifiers/meal_price_outlier_classifier.py:89
↓ 2 callersMethod__applicable_rows
(self, X)
rosie/rosie/chamber_of_deputies/classifiers/traveled_speeds_classifier.py:95
↓ 2 callersMethod__repr__
(self)
jarbas/chamber_of_deputies/models.py:175
↓ 2 callersMethod_create_dataframe
(self, dataframe_data)
rosie/rosie/chamber_of_deputies/tests/test_election_expenses_classifier.py:43
↓ 2 callersMethod_get_company_dataset
(self, **kwargs)
rosie/rosie/chamber_of_deputies/tests/test_irregular_companies_classifier.py:33
↓ 2 callersMethod_read_csv
Wrapper to read CSV with default args and an optional `chunksize`
research/src/fetch_campaign_donations.py:145
↓ 2 callersMethodadd_arguments
(self, parser, add_drop_all=True)
jarbas/core/management/commands/__init__.py:9
↓ 2 callersFunctionbrazilian_float
(value)
jarbas/dashboard/templatetags/dashboard.py:34
↓ 2 callersMethodbulk_update
(self)
jarbas/chamber_of_deputies/management/commands/receipts.py:52
↓ 2 callersMethodcreate_batches
(self)
jarbas/chamber_of_deputies/management/commands/reimbursements.py:39
↓ 2 callersFunctionextract_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 callersMethodfetch
(self)
jarbas/chamber_of_deputies/management/commands/receipts.py:45
↓ 2 callersFunctionfind_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 callersFunctionfind_newest_file
(name)
research/src/fetch_yelp_info.py:47
↓ 2 callersFunctionget_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 callersMethodhandle
(self, *args, **options)
jarbas/core/management/commands/companies.py:14
↓ 2 callersMethodhas_receipt_url
(self, obj)
jarbas/dashboard/admin/__init__.py:133
↓ 2 callersFunctionis_single_word
(s)
research/src/get_family_names.py:38
↓ 2 callersMethodlist_distinct
(self, field, order_by_field, query=None)
jarbas/chamber_of_deputies/querysets.py:27
↓ 2 callersMethodparse
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 callersFunctionparse_search_results
Return the first venue from the given search response
research/src/fetch_foursquare_info.py:103
↓ 2 callersMethodpersist_batch
(self, print_permanent=False)
jarbas/chamber_of_deputies/management/commands/reimbursements.py:47
↓ 2 callersMethodpredict
(self, model, name)
rosie/rosie/core/__init__.py:71
↓ 2 callersMethodprint_pause
(self, **kwargs)
jarbas/chamber_of_deputies/management/commands/receipts.py:83
↓ 2 callersMethodprint_saving
(self, **kwargs)
jarbas/chamber_of_deputies/management/commands/receipts.py:87
↓ 2 callersMethodqueryset
(self, request, queryset)
jarbas/dashboard/admin/list_filters.py:25
↓ 2 callersFunctionrandom_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 callersMethodreceipts
Returns a Generator with batches of receipts text.
jarbas/chamber_of_deputies/management/commands/receipts_text.py:33
↓ 2 callersFunctionremaining_cnpjs
(cnpj_list_to_import, temp_dataset)
research/src/fetch_cnpj_info.py:199
↓ 2 callersMethodrender
(self, name, value, attrs=None, renderer=None)
jarbas/dashboard/admin/widgets.py:10
↓ 2 callersMethodsame_day_as
(self, document_id)
jarbas/chamber_of_deputies/querysets.py:13
↓ 2 callersMethodsave_activities
(self, row)
jarbas/core/management/commands/companies.py:48
↓ 2 callersMethodsave_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 callersFunctionserialize
Read the dict generated by the reimbursement command and returns a Reimbursement model instance.
jarbas/chamber_of_deputies/tasks.py:37
↓ 2 callersMethodserialize
(self, row)
jarbas/core/management/commands/companies.py:66
↓ 2 callersFunctionstandardize_name
(name)
research/src/fetch_yelp_info.py:99
↓ 2 callersMethodtransform
(self, dataframe=None)
rosie/rosie/core/classifiers/invalid_cnpj_cpf_classifier.py:25
↓ 2 callersMethodurl
: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 callersFunctionwrite_fetched_companies
(companies)
research/src/fetch_yelp_info.py:82
↓ 2 callersFunctionwrite_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