Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CitizenLabDotCo/citizenlab
/ functions
Functions
15,961 in github.com/CitizenLabDotCo/citizenlab
⨍
Functions
15,961
◇
Types & classes
7,295
↓ 19 callers
Method
find_records
back/lib/finder/base.rb:20
↓ 19 callers
Function
formatCurrency
( locale: SupportedLocale, currency: TCountryCurrency | undefined, amount: number, { maximumFractionDi
front/app/utils/currency/formatCurrency.ts:5
↓ 19 callers
Function
onClose
()
front/app/containers/App/ModalQueue/modals/CommunityMonitor/Modal.tsx:27
↓ 19 callers
Function
perform_update
Runs `update_in_sso!` against a doubled authver method whose behaviour is configured by the table columns.
back/spec/services/user_service_spec.rb:117
↓ 19 callers
Method
rand_description_multiloc
back/engines/commercial/multi_tenancy/db/seeds/runner.rb:173
↓ 19 callers
Method
remove_empty_trailing_tags
Remove any empty `EDITOR_STRUCTURE_TAGS` positioned as last children of an html string and returns the resulting html string. ===== Examples sanitat
back/app/services/sanitization_service.rb:49
↓ 19 callers
Method
reset
back/app/models/app_configuration.rb:89
↓ 19 callers
Method
run
back/engines/commercial/analytics/app/services/analytics/query.rb:40
↓ 19 callers
Function
sectionsToDocxBlob
( sections: WordSection[], options: RendererOptions = {} )
front/app/containers/Admin/projects/project/insights/word/wordRenderer.ts:32
↓ 19 callers
Method
switch!
back/engines/commercial/multi_tenancy/app/models/tenant.rb:160
↓ 19 callers
Function
useAdminPublications
( queryParams: IQueryParameters, { enabled = true } = {} )
front/app/api/admin_publications/useAdminPublications.ts:49
↓ 18 callers
Method
call
(env)
back/engines/commercial/multi_tenancy/config/initializers/apartment.rb:113
↓ 18 callers
Method
create_default_form!
back/lib/participation_method/base.rb:61
↓ 18 callers
Method
create_for_tenant_locales
@return[Hash] A multiloc hash with translations
back/engines/commercial/multi_tenancy/db/seeds/runner.rb:160
↓ 18 callers
Method
event
back/engines/free/email_campaigns/app/mailers/email_campaigns/application_mailer.rb:53
↓ 18 callers
Method
generate
(unit: 'inputs', tags: detect_tags, user_custom_fields: detect_user_custom_fields, input_custom_fields: detect
back/engines/commercial/analysis/app/services/analysis/auto_insights_service.rb:15
↓ 18 callers
Function
getJwt
()
front/app/utils/auth/jwt.ts:18
↓ 18 callers
Method
record
back/engines/commercial/mcp_server/app/lib/mcp_server/tools/update_resource.rb:94
↓ 18 callers
Method
resolve
back/engines/commercial/report_builder/app/policies/report_builder/report_policy.rb:6
↓ 18 callers
Function
signUpEmailConformation
( cy: Cypress.Chainable, email: string = randomEmail() )
front/cypress/support/auth.ts:35
↓ 18 callers
Method
transfer
(visitor_hash:, user:)
back/app/services/idea_exposure_transfer_service.rb:13
↓ 18 callers
Function
updateIdea
({ id, requestBody }: IUpdateIdeaObject)
front/app/api/ideas/useUpdateIdea.ts:23
↓ 17 callers
Method
author_in_form?
(_user)
back/lib/participation_method/base.rb:49
↓ 17 callers
Method
author_name
back/app/models/idea.rb:405
↓ 17 callers
Method
cache_store
back/app/controllers/concerns/action_caching.rb:84
↓ 17 callers
Function
create_project
( start_at: nil, end_at: nil, start_at2: nil, end_at2: nil, created_at: nil )
back/spec/services/projects_finder_admin_service_spec.rb:4
↓ 17 callers
Method
encode
(card_id)
back/engines/commercial/custom_id_methods/app/services/custom_id_methods/id_card_lookup/id_card_service.rb:5
↓ 17 callers
Method
filters
(filter_params = params)
back/engines/commercial/analysis/app/controllers/concerns/analysis/filter_params_extraction.rb:10
↓ 17 callers
Function
getInputTerm
( phases: IPhaseData[] | undefined, phase?: IPhaseData | undefined | null | Error )
front/app/api/phases/utils.ts:138
↓ 17 callers
Function
getLowerBoundLimits
(bins: Bins, binIndex: number)
front/app/utils/representativeness/bins.ts:62
↓ 17 callers
Function
getMethodConfig
( participationMethod: ParticipationMethod, setting?: { showIdeaFilters?: boolean } )
front/app/utils/configs/participationMethodConfig/index.tsx:387
↓ 17 callers
Method
import
(template, folder: nil, local_copy: false)
back/app/services/project_copy_service.rb:4
↓ 17 callers
Method
import
(idea_rows)
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/importers/idea_importer.rb:8
↓ 17 callers
Method
last_name!
nil-friendly version of #last_name. Returns nil when 'user' is nil without logging a warning. @param [User, nil] user @return [String]
back/app/services/user_display_name_service.rb:62
↓ 17 callers
Function
onSubmit
({ formValues, isSubmitPage, }: { formValues: FormValues; isSubmitPage: boolean; })
front/app/components/CustomFieldsForm/SurveyForm/index.tsx:69
↓ 17 callers
Method
project_folder_moderator?
(project_folder_id = nil)
back/app/models/concerns/user_roles.rb:156
↓ 17 callers
Method
stats
back/app/services/common_ground/results_service.rb:32
↓ 17 callers
Method
supports_reacting?
@param mode [String, nil] One of the values in Reaction::MODES. If nil, checks whether any reaction modes are supported.
back/lib/participation_method/base.rb:163
↓ 17 callers
Function
useCommunityMonitorProject
({ enabled, }: UseCommunityMonitorProjectOptions)
front/app/api/community_monitor/useCommunityMonitorProject.ts:21
↓ 16 callers
Method
accuracy
Float in 0..1 that denotes how relatively accurate the llm is. 1 would be perfect accuracy.
back/engines/commercial/analysis/app/lib/analysis/LLM/base.rb:32
↓ 16 callers
Method
attributes
(record)
back/engines/commercial/mcp_server/app/lib/mcp_server/serializers/base.rb:97
↓ 16 callers
Method
belongs_to
(_preloaded = {})
back/engines/commercial/moderation/app/models/moderation/moderation.rb:57
↓ 16 callers
Method
constraints
back/lib/participation_method/base.rb:57
↓ 16 callers
Function
getColor
({ checkedColor, checkedOrIndeterminate, element, usePrimaryBorder = false, }: Props)
front/app/component-library/components/Checkbox/utils.tsx:18
↓ 16 callers
Function
getPercentageDifference
( thisPeriodAvg?: number | null, lastPeriodAvg?: number | null )
front/app/components/admin/FormResults/FormResultsQuestion/SentimentQuestion/utils.tsx:91
↓ 16 callers
Method
mime_type
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/exporters/base_form_exporter.rb:21
↓ 16 callers
Function
modalQueueReducer
( state: ModalQueueState, action: ModalQueueAction )
front/app/containers/App/ModalQueue/modalQueueReducer.ts:24
↓ 16 callers
Function
name
back/engines/commercial/smart_groups/spec/models/email_campaigns/concerns/recipient_configurable_spec.rb:9
↓ 16 callers
Method
output_schema
Returns a JSON Schema hash for structured LLM output
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/parsers/pdf/form_sync_schema_builder.rb:15
↓ 16 callers
Method
run
We use YAML to pass the template data to the job to be able to preserve the internal references (that are encoded with anchors and aliases in the YAML
back/engines/commercial/admin_api/app/jobs/admin_api/copy_project_job.rb:11
↓ 16 callers
Method
slugify
(str)
back/app/services/slug_service.rb:62
↓ 16 callers
Method
space_moderator?
(space_id = nil)
back/app/models/concerns/user_roles.rb:168
↓ 16 callers
Function
useAnalysis
(id: string)
front/app/api/analyses/useAnalysis.ts:12
↓ 16 callers
Function
usePermission
({ item, action, context, }: { item: TPermissionItem | null; action: string; context?: any; })
front/app/utils/permissions/permissions.ts:55
↓ 16 callers
Method
xlsx_to_hash_array
Converts this xlsx: | name | size | age | | Ron | xl | | | John | | 35 | into this hash array: [{'name' => 'Ron', 'size' => 'xl'), {'n
back/app/services/xlsx_service.rb:34
↓ 15 callers
Method
add_feature
@param [CitizenLab::Mixins::FeatureSpecification] specification
back/app/models/app_configuration.rb:71
↓ 15 callers
Method
add_node
rubocop:disable Metrics/ParameterLists
back/engines/commercial/content_builder/app/services/content_builder/craftjs/state.rb:15
↓ 15 callers
Method
add_span_around
@param [String] text @param [User] user @return [String] text with plain mentions replaced by mention tags.
back/app/services/mention_service.rb:24
↓ 15 callers
Method
author_name
back/engines/free/email_campaigns/app/mailers/email_campaigns/mention_in_official_feedback_mailer.rb:38
↓ 15 callers
Method
base_frontend_uri
back/app/models/app_configuration.rb:173
↓ 15 callers
Method
check
(password)
back/app/models/common_password.rb:31
↓ 15 callers
Method
closest_locale_to
(locale)
back/app/models/app_configuration.rb:147
↓ 15 callers
Function
createEmptyParagraph
(height?: number)
front/app/utils/word/converters/textConverter.ts:90
↓ 15 callers
Method
current_campaign
(user)
back/engines/free/onboarding/app/services/onboarding/onboarding_service.rb:9
↓ 15 callers
Method
deserialize
(template, validate: true, max_time: nil, local_copy: false)
back/engines/commercial/multi_tenancy/app/services/multi_tenancy/templates/tenant_deserializer.rb:22
↓ 15 callers
Method
down
back/db/migrate/20210119144531_add_que.rb:9
↓ 15 callers
Method
end_at
back/engines/commercial/public_api/app/serializers/public_api/v2/phase_serializer.rb:32
↓ 15 callers
Method
find_by_cimail
Returns the user record from the database which matches the specified email address (case-insensitive) or `nil`. @param email [String] The email of th
back/app/models/user.rb:100
↓ 15 callers
Method
future_enabled_phase
Future enabled phases
back/app/services/permissions/project_permissions_service.rb:30
↓ 15 callers
Method
generate_slug
(record, string, excluded: [])
back/app/services/slug_service.rb:6
↓ 15 callers
Method
generate_tree
back/app/services/tree_view_service.rb:8
↓ 15 callers
Method
highest_role
back/app/models/concerns/user_roles.rb:132
↓ 15 callers
Method
in_any_groups?
(groups_to_check)
back/app/models/concerns/user_groups.rb:34
↓ 15 callers
Method
inspect
back/app/services/invites/invite_error.rb:30
↓ 15 callers
Function
isDraft
(campaign: ICampaignData)
front/app/api/campaigns/util.ts:3
↓ 15 callers
Function
isEmptyMultiloc
(multiloc: Multiloc)
front/app/utils/helperUtils.ts:24
↓ 15 callers
Method
members
back/app/models/group.rb:66
↓ 15 callers
Function
onChange
(option)
front/app/components/CustomFieldsForm/Fields/ImageMultichoiceField/index.tsx:81
↓ 15 callers
Function
parseMargin
( margin: Margin | undefined, legend: Legend | undefined, legendDimensions: LegendDimensions | undefined
front/app/components/admin/Graphs/utils.ts:35
↓ 15 callers
Method
project_id
back/engines/free/polls/app/models/polls/response.rb:70
↓ 15 callers
Method
remove_multiloc_empty_trailing_tags
(multiloc)
back/app/services/sanitization_service.rb:36
↓ 15 callers
Method
report
Avoid passing manually created errors here like `ErrorReporter.report(RuntimeError.new('message')` (though it would work), because it does not contain
back/lib/error_reporter.rb:60
↓ 15 callers
Function
reportError
(error: any)
front/app/utils/loggingUtils.ts:15
↓ 15 callers
Method
rules
back/engines/commercial/smart_groups/app/services/concerns/smart_groups/rulable_service.rb:12
↓ 15 callers
Function
run_task
(execute: false, host: Tenant.current.host, locale: 'nl-BE')
back/engines/commercial/multi_tenancy/spec/tasks/demos/translate_slugs_spec.rb:15
↓ 15 callers
Function
scrollToElement
({ id, behavior, offset, shouldFocus, }: IScrollToElementParams)
front/app/utils/scroll.ts:10
↓ 15 callers
Method
success?
back/app/services/user_confirmation_service.rb:28
↓ 15 callers
Method
supports_public_visibility?
back/lib/participation_method/base.rb:157
↓ 15 callers
Function
useIdeaStatuses
({ enabled = true, queryParams, }: { enabled?: boolean; queryParams: IdeaStatusesQueryParams; })
front/app/api/idea_statuses/useIdeaStatuses.ts:20
↓ 15 callers
Function
useProjectFolderById
(projectFolderId?: string | null)
front/app/api/project_folders/useProjectFolderById.ts:15
↓ 14 callers
Method
all_fields
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/exporters/idea_html_form_exporter.rb:30
↓ 14 callers
Method
calculate
Calculates age statistics for a set of users or custom field values @param [ActiveRecord::Relation, Array<Hash>] records_or_values - Either: - ActiveR
back/engines/commercial/user_custom_fields/app/models/user_custom_fields/age_stats.rb:20
↓ 14 callers
Function
configure_locales
(locales)
back/engines/commercial/multi_tenancy/spec/tasks/replace_de_at_with_de_de_task_spec.rb:18
↓ 14 callers
Function
configure_locales
(locales)
back/engines/commercial/multi_tenancy/spec/tasks/replace_de_de_with_de_at_task_spec.rb:18
↓ 14 callers
Function
createMultiloc
( locales: SupportedLocale[], getValue: (locale: SupportedLocale) => string )
front/app/hooks/useAppConfigurationLocales.ts:19
↓ 14 callers
Method
delete_all
back/engines/commercial/bulk_import_ideas/app/controllers/bulk_import_ideas/web_api/v1/bulk_import_controller.rb:95
↓ 14 callers
Method
end_date
back/app/models/phase.rb:261
↓ 14 callers
Function
fetch
(customFieldId?: string)
front/app/api/user_custom_fields/useUserCustomField.ts:9
↓ 14 callers
Method
generate_results
Get the results for all survey questions
back/app/services/surveys/results_generator.rb:30
↓ 14 callers
Function
getAlternateLinks
( tenantLocales: SupportedLocale[] | undefined )
front/app/utils/cl-router/getAlternateLinks.tsx:9
← previous
next →
301–400 of 15,961, ranked by callers