@openfisca/france-json
Version:
JSON & YAML data extracted from OpenFisca-France source code (parameters, variables, etc)
320 lines (319 loc) • 10 kB
JSON
{
"calculate_output": "calculate_output_add",
"default_value": 0,
"definition_period": "month",
"dtype": "float32",
"entity": "individu",
"file_path": "openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/travail_totaux.py",
"formulas": {
"0001-01-01": {
"ast": {
"args": {
"args": [
{
"arg": "individu",
"ast_class": "arg",
"col_offset": 12,
"end_col_offset": 20,
"end_lineno": 1,
"lineno": 1
},
{
"arg": "period",
"ast_class": "arg",
"col_offset": 22,
"end_col_offset": 28,
"end_lineno": 1,
"lineno": 1
},
{
"arg": "parameters",
"ast_class": "arg",
"col_offset": 30,
"end_col_offset": 40,
"end_lineno": 1,
"lineno": 1
}
],
"ast_class": "arguments",
"defaults": [],
"kw_defaults": [],
"kwonlyargs": [],
"posonlyargs": []
},
"ast_class": "FunctionDef",
"body": [
{
"ast_class": "Assign",
"col_offset": 4,
"end_col_offset": 97,
"end_lineno": 2,
"lineno": 2,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 39,
"end_lineno": 2,
"id": "cotisations_employeur_contributives",
"lineno": 2
}
],
"value": {
"args": [
{
"ast_class": "Constant",
"col_offset": 51,
"end_col_offset": 88,
"end_lineno": 2,
"lineno": 2,
"value": "cotisations_employeur_contributives"
},
{
"ast_class": "Name",
"col_offset": 90,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 96,
"end_lineno": 2,
"id": "period",
"lineno": 2
}
],
"ast_class": "Call",
"col_offset": 42,
"end_col_offset": 97,
"end_lineno": 2,
"func": {
"ast_class": "Name",
"col_offset": 42,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 50,
"end_lineno": 2,
"id": "individu",
"lineno": 2
},
"keywords": [],
"lineno": 2
}
},
{
"ast_class": "Assign",
"col_offset": 4,
"end_col_offset": 58,
"end_lineno": 4,
"lineno": 3,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 43,
"end_lineno": 3,
"id": "cotisations_employeur_non_contributives",
"lineno": 3
}
],
"value": {
"args": [
{
"ast_class": "Constant",
"col_offset": 8,
"end_col_offset": 49,
"end_lineno": 4,
"lineno": 4,
"value": "cotisations_employeur_non_contributives"
},
{
"ast_class": "Name",
"col_offset": 51,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 57,
"end_lineno": 4,
"id": "period",
"lineno": 4
}
],
"ast_class": "Call",
"col_offset": 46,
"end_col_offset": 58,
"end_lineno": 4,
"func": {
"ast_class": "Name",
"col_offset": 46,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 54,
"end_lineno": 3,
"id": "individu",
"lineno": 3
},
"keywords": [],
"lineno": 3
}
},
{
"ast_class": "Assign",
"col_offset": 4,
"end_col_offset": 97,
"end_lineno": 5,
"lineno": 5,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 39,
"end_lineno": 5,
"id": "cotisations_employeur_main_d_oeuvre",
"lineno": 5
}
],
"value": {
"args": [
{
"ast_class": "Constant",
"col_offset": 51,
"end_col_offset": 88,
"end_lineno": 5,
"lineno": 5,
"value": "cotisations_employeur_main_d_oeuvre"
},
{
"ast_class": "Name",
"col_offset": 90,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 96,
"end_lineno": 5,
"id": "period",
"lineno": 5
}
],
"ast_class": "Call",
"col_offset": 42,
"end_col_offset": 97,
"end_lineno": 5,
"func": {
"ast_class": "Name",
"col_offset": 42,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 50,
"end_lineno": 5,
"id": "individu",
"lineno": 5
},
"keywords": [],
"lineno": 5
}
},
{
"ast_class": "Return",
"col_offset": 4,
"end_col_offset": 9,
"end_lineno": 11,
"lineno": 7,
"value": {
"ast_class": "BinOp",
"col_offset": 8,
"end_col_offset": 45,
"end_lineno": 10,
"left": {
"ast_class": "BinOp",
"col_offset": 8,
"end_col_offset": 49,
"end_lineno": 9,
"left": {
"ast_class": "Name",
"col_offset": 8,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 43,
"end_lineno": 8,
"id": "cotisations_employeur_contributives",
"lineno": 8
},
"lineno": 8,
"op": {
"ast_class": "Add"
},
"right": {
"ast_class": "Name",
"col_offset": 10,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 49,
"end_lineno": 9,
"id": "cotisations_employeur_non_contributives",
"lineno": 9
}
},
"lineno": 8,
"op": {
"ast_class": "Add"
},
"right": {
"ast_class": "Name",
"col_offset": 10,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 45,
"end_lineno": 10,
"id": "cotisations_employeur_main_d_oeuvre",
"lineno": 10
}
}
}
],
"col_offset": 0,
"decorator_list": [],
"end_col_offset": 9,
"end_lineno": 11,
"lineno": 1,
"name": "formula"
},
"file_path": "openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/travail_totaux.py",
"source_code": "def formula(individu, period, parameters):\n cotisations_employeur_contributives = individu('cotisations_employeur_contributives', period)\n cotisations_employeur_non_contributives = individu(\n 'cotisations_employeur_non_contributives', period)\n cotisations_employeur_main_d_oeuvre = individu('cotisations_employeur_main_d_oeuvre', period)\n\n return (\n cotisations_employeur_contributives\n + cotisations_employeur_non_contributives\n + cotisations_employeur_main_d_oeuvre\n )\n",
"start_line_number": 16,
"stop_line_number": 27,
"variables": [
"cotisations_employeur_contributives",
"cotisations_employeur_main_d_oeuvre",
"cotisations_employeur_non_contributives"
]
}
},
"json_type": "number",
"label": "Cotisations sociales employeur",
"name": "cotisations_employeur",
"referring_variables": [
"exoneration_cotisations_employeur_apprenti",
"revenus_travail_super_bruts_menage",
"salaire_super_brut_hors_allegements"
],
"set_input": "set_input_divide_by_period",
"start_line_number": 8,
"stop_line_number": 27,
"unit": "currency",
"ux_name": "Cotisations employeur",
"value_type": "float"
}