Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/CitizenLabDotCo/citizenlab
/ functions
Functions
15,961 in github.com/CitizenLabDotCo/citizenlab
⨍
Functions
15,961
◇
Types & classes
7,295
↓ 3,856 callers
Method
id
back/app/models/verification/locked_attribute.rb:11
↓ 2,902 callers
Method
get
(path)
back/app/services/assembly_ai_client.rb:97
↓ 2,007 callers
Function
formatMessage
()
front/app/containers/Admin/projects/project/phaseSetup/validate.test.ts:5
↓ 1,990 callers
Method
id
We don't persist, but we need an id for the serializer
back/engines/commercial/analysis/app/lib/analysis/q_and_a_plan.rb:30
↓ 1,440 callers
Method
where
(*)
back/lib/finder/helpers.rb:8
↓ 1,305 callers
Method
find
back/lib/finder/base.rb:33
↓ 1,179 callers
Function
formatMessage
()
front/app/components/CustomFieldsForm/generateYupSchema.test.ts:4
↓ 960 callers
Function
randomString
(length = 15)
front/cypress/support/commands.ts:113
↓ 905 callers
Function
useIntl
()
front/app/utils/cl-intl/useIntl.tsx:49
↓ 858 callers
Function
get
(obj: T, key: K)
front/app/utils/helperUtils.ts:181
↓ 619 callers
Function
createQueryClientWrapper
()
front/app/utils/testUtils/queryClientWrapper.tsx:5
↓ 571 callers
Method
visit
(field)
back/app/services/field_visitor_service.rb:4
↓ 548 callers
Method
count
Counts users by age bins @param [ActiveRecord::Relation, Array<Hash>] records_or_values - Either: - ActiveRecord relation of users - Array of custom_f
back/engines/commercial/user_custom_fields/app/services/user_custom_fields/age_counter.rb:15
↓ 541 callers
Method
instance
back/lib/factory.rb:5
↓ 500 callers
Method
count
back/app/controllers/web_api/v1/email_bans_controller.rb:4
↓ 479 callers
Function
fetcher
* * @param apiPath : The path to the API. Defaults to '/web_api/v1'. If the API path is different it should be passed as an argument.
front/app/utils/cl-react-query/fetcher.ts:78
↓ 449 callers
Method
title_multiloc
back/engines/free/email_campaigns/app/models/concerns/email_campaigns/content_configurable.rb:34
↓ 414 callers
Method
type
back/engines/commercial/public_api/app/serializers/public_api/v2/idea_serializer.rb:59
↓ 392 callers
Method
project
back/app/models/project.rb:222
↓ 388 callers
Method
title_multiloc
Special behaviour for the title page
back/app/models/custom_field.rb:263
↓ 377 callers
Function
localize
()
front/app/components/CustomFieldsForm/generateYupSchema.test.ts:5
↓ 367 callers
Method
id
back/engines/free/onboarding/app/controllers/onboarding/web_api/v1/campaigns_controller.rb:9
↓ 358 callers
Function
isNilOrError
(obj: any)
front/app/component-library/utils/helperUtils.ts:1
↓ 342 callers
Method
order
(arg)
back/lib/finder/helpers.rb:12
↓ 336 callers
Method
perform_later
(...)
back/app/concerns/jobs/trackable_job.rb:79
↓ 325 callers
Method
resolve
back/app/policies/user_policy.rb:5
↓ 303 callers
Method
format
(name: string, value: string)
front/app/components/UI/QuillEditor/configureQuill.ts:80
↓ 300 callers
Function
useLocalize
()
front/app/hooks/useLocalize.ts:21
↓ 298 callers
Method
description_multiloc
back/engines/commercial/smart_groups/app/lib/smart_groups/rules/describable_rule.rb:7
↓ 288 callers
Method
filter
(object, options = {})
back/app/concerns/filterer.rb:25
↓ 274 callers
Function
formatMessage
( message: MessageDescriptor, values?: FormatMessageValues )
front/app/containers/Admin/reporting/components/ReportBuilder/Templates/ProjectTemplate/index.tsx:113
↓ 267 callers
Method
fetch
(filename, **args)
back/engines/commercial/analysis/app/lib/analysis/LLM/prompt.rb:6
↓ 242 callers
Method
project
(args)
back/engines/commercial/admin_api/app/graphql/admin_api/types/query_type.rb:86
↓ 239 callers
Method
t
@param ignore_blank [Boolean] If true, blank translations (empty or only whitespace) are considered missing, and the next best translation is returned
back/app/services/multiloc_service.rb:10
↓ 233 callers
Function
trackEventByName
( eventName: string, properties: Properties = {} )
front/app/utils/analytics.ts:144
↓ 226 callers
Method
url
(...)
back/app/uploaders/base_uploader.rb:45
↓ 217 callers
Method
current
back/engines/commercial/multi_tenancy/app/models/tenant.rb:93
↓ 206 callers
Method
settings
(*path)
back/app/models/app_configuration.rb:168
↓ 203 callers
Function
useParams
()
front/app/containers/Admin/projects/all/_shared/params.ts:59
↓ 192 callers
Method
root
back/lib/citizen_lab.rb:8
↓ 190 callers
Function
useFeatureFlag
({ name, onlyCheckAllowed = false, onlyCheckEnabled = false, }: Parameters)
front/app/hooks/useFeatureFlag.ts:12
↓ 187 callers
Method
idea
(args)
back/engines/commercial/admin_api/app/graphql/admin_api/types/query_type.rb:115
↓ 184 callers
Method
to_s
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/error.rb:11
↓ 180 callers
Function
useAuthUser
()
front/app/api/me/useAuthUser.ts:44
↓ 176 callers
Method
settings
(*path)
back/engines/commercial/multi_tenancy/app/models/tenant.rb:103
↓ 173 callers
Method
locale
back/app/mailers/application_mailer.rb:39
↓ 172 callers
Function
useBreakpoint
(breakpointType: BreakpointType)
front/app/component-library/hooks/useBreakpoint.ts:13
↓ 168 callers
Method
delete
@param [Array<String>] user_ids
back/app/services/segment_regulations_client.rb:33
↓ 163 callers
Method
destroy!
(option, user = nil)
back/app/services/custom_fields/options/destroy_service.rb:6
↓ 163 callers
Method
first_name
back/app/services/anonymous_name_service.rb:8
↓ 163 callers
Method
slug
(options = {})
back/app/models/concerns/sluggable.rb:17
↓ 156 callers
Method
save
back/engines/commercial/report_builder/app/services/report_builder/report_saver.rb:7
↓ 151 callers
Method
post
(path, payload)
back/app/services/assembly_ai_client.rb:103
↓ 150 callers
Method
to_s
back/app/services/invites/invite_error.rb:26
↓ 145 callers
Method
filter
(users_scope)
back/engines/commercial/smart_groups/app/lib/smart_groups/rules/role.rb:63
↓ 145 callers
Function
isRtl
(style: any, ...args: any[])
front/app/component-library/utils/styleUtils.ts:9
↓ 141 callers
Method
error_fields
(rspec_context, model)
back/spec/support/validation_error_helper.rb:49
↓ 139 callers
Method
id
back/engines/commercial/custom_id_methods/app/lib/custom_id_methods/acm/acm_verification.rb:9
↓ 139 callers
Method
split
Takes a source IdeaImportFile, splits it into one PDF file per idea. Returns array of split IdeaImportFile records.
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/parsers/pdf/pdf_file_splitter.rb:14
↓ 137 callers
Method
after_update
(idea, user)
back/app/services/side_fx_idea_service.rb:41
↓ 134 callers
Method
from_json
(json)
back/engines/commercial/smart_groups/app/lib/smart_groups/rules/role.rb:50
↓ 126 callers
Method
last_name
back/app/services/anonymous_name_service.rb:16
↓ 126 callers
Function
useAppConfiguration
()
front/app/api/app_configuration/useAppConfiguration.ts:12
↓ 125 callers
Method
value
back/engines/commercial/smart_groups/app/lib/smart_groups/rules/describable_rule.rb:47
↓ 124 callers
Method
run_query
( start_at: nil, end_at: nil, project_id: nil, resolution: 'month', exclude_role
back/engines/commercial/report_builder/app/services/report_builder/queries/visitors.rb:10
↓ 118 callers
Method
subject
Subject has a dynamic default text based on the input term.
back/engines/free/email_campaigns/app/mailers/email_campaigns/idea_published_mailer.rb:39
↓ 117 callers
Method
denied_reason_for_action
(action, reaction_mode: nil, delete_action: false)
back/app/services/permissions/idea_permissions_service.rb:18
↓ 116 callers
Method
to_h
back/engines/commercial/mcp_server/app/lib/mcp_server/serializers/base.rb:81
↓ 115 callers
Method
project_id
back/app/models/spam_report.rb:45
↓ 111 callers
Function
useLocale
()
front/app/hooks/useLocale.ts:5
↓ 110 callers
Method
end_at
back/app/serializers/web_api/v1/external/phase_serializer.rb:10
↓ 109 callers
Method
parse
(file_uploader)
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/parsers/pdf/llm_form_parser.rb:27
↓ 107 callers
Method
instance
back/app/models/app_configuration.rb:113
↓ 107 callers
Function
randomEmail
()
front/cypress/support/commands.ts:125
↓ 106 callers
Method
user
(args)
back/engines/commercial/admin_api/app/graphql/admin_api/types/query_type.rb:78
↓ 102 callers
Method
ideas
back/app/services/common_ground/results_service.rb:40
↓ 101 callers
Method
after_create
(idea, user, phase)
back/app/services/side_fx_idea_service.rb:16
↓ 101 callers
Function
validate
()
front/app/containers/Admin/settings/customize/index.tsx:68
↓ 100 callers
Method
start_at
back/app/serializers/web_api/v1/external/phase_serializer.rb:6
↓ 99 callers
Method
empty?
(multiloc)
back/app/services/multiloc_service.rb:67
↓ 99 callers
Method
source_project
We don't call this `project` to not collide with the project association
back/engines/commercial/analysis/app/models/analysis/analysis.rb:80
↓ 99 callers
Method
switch
(&)
back/engines/commercial/multi_tenancy/app/models/tenant.rb:154
↓ 99 callers
Function
useProjectById
(id?: string | null, useCache: boolean = true)
front/app/api/projects/useProjectById.ts:25
↓ 98 callers
Method
to_h
back/app/services/invites/invite_error.rb:16
↓ 97 callers
Method
pmethod
back/app/models/phase.rb:277
↓ 97 callers
Method
valid?
back/app/services/form_logic_service.rb:22
↓ 96 callers
Method
name
back/engines/commercial/analysis/app/lib/analysis/LLM/base.rb:10
↓ 96 callers
Method
parse
Parses from/to boundaries into timestamps clamped to the platform's lifetime. Date inputs (Date or "YYYY-MM-DD") are expanded to cover the full day:
back/lib/time_boundaries.rb:14
↓ 94 callers
Function
isEmpty
(obj: Record<string, unknown>)
front/app/containers/Authentication/useSteps/stepConfig/missingDataFlow.ts:27
↓ 91 callers
Method
activate_feature!
(feature, config: nil, settings: {})
back/app/services/settings_service.rb:73
↓ 91 callers
Method
input_type
back/lib/cohere_multilingual_embeddings.rb:27
↓ 90 callers
Method
idea
back/app/services/notifications/internal_comments/base_notification_builder.rb:47
↓ 89 callers
Method
confirmation_required?
True if the user has not yet confirmed their email address. Exception: if the user registered via SSO and the SSO did not return an email, we treat t
back/app/models/user.rb:324
↓ 88 callers
Method
phase
back/engines/commercial/bulk_import_ideas/app/jobs/bulk_import_ideas/idea_pdf_import_job.rb:72
↓ 87 callers
Method
i18n_to_multiloc
(key, locales: nil, raise_on_missing: true, **multiloc_substitutions)
back/app/services/multiloc_service.rb:38
↓ 87 callers
Method
model_to_url
(model_instance, options = {})
back/engines/free/frontend/app/services/frontend/url_service.rb:47
↓ 87 callers
Method
to_json
(_options = {})
back/lib/auth_token/auth_token.rb:32
↓ 85 callers
Function
isAdmin
(user: IUser | undefined | null)
front/app/utils/permissions/roles.ts:37
↓ 83 callers
Function
usePhase
(phaseId: string | undefined | null)
front/app/api/phases/usePhase.ts:19
↓ 80 callers
Function
get
(_, localePath: string)
front/app/components/admin/ContentBuilder/LanguageProvider/__mocks__/i18nLoader.ts:9
next →
1–100 of 15,961, ranked by callers