@openfisca/france-json
Version:
JSON & YAML data extracted from OpenFisca-France source code (parameters, variables, etc)
524 lines (523 loc) • 16.7 kB
JSON
{
"default_value": 0,
"definition_period": "month",
"dtype": "float32",
"entity": "individu",
"file_path": "openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/stage.py",
"formulas": {
"2014-11-01": {
"ast": {
"args": {
"args": [
{
"arg": "individu",
"ast_class": "arg",
"col_offset": 20,
"end_col_offset": 28,
"end_lineno": 1,
"lineno": 1
},
{
"arg": "period",
"ast_class": "arg",
"col_offset": 30,
"end_col_offset": 36,
"end_lineno": 1,
"lineno": 1
},
{
"arg": "parameters",
"ast_class": "arg",
"col_offset": 38,
"end_col_offset": 48,
"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": 63,
"end_lineno": 2,
"lineno": 2,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 22,
"end_lineno": 2,
"id": "stage_duree_heures",
"lineno": 2
}
],
"value": {
"args": [
{
"ast_class": "Constant",
"col_offset": 34,
"end_col_offset": 54,
"end_lineno": 2,
"lineno": 2,
"value": "stage_duree_heures"
},
{
"ast_class": "Name",
"col_offset": 56,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 62,
"end_lineno": 2,
"id": "period",
"lineno": 2
}
],
"ast_class": "Call",
"col_offset": 25,
"end_col_offset": 63,
"end_lineno": 2,
"func": {
"ast_class": "Name",
"col_offset": 25,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 33,
"end_lineno": 2,
"id": "individu",
"lineno": 2
},
"keywords": [],
"lineno": 2
}
},
{
"ast_class": "Assign",
"col_offset": 4,
"end_col_offset": 65,
"end_lineno": 3,
"lineno": 3,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 23,
"end_lineno": 3,
"id": "stage_gratification",
"lineno": 3
}
],
"value": {
"args": [
{
"ast_class": "Constant",
"col_offset": 35,
"end_col_offset": 56,
"end_lineno": 3,
"lineno": 3,
"value": "stage_gratification"
},
{
"ast_class": "Name",
"col_offset": 58,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 64,
"end_lineno": 3,
"id": "period",
"lineno": 3
}
],
"ast_class": "Call",
"col_offset": 26,
"end_col_offset": 65,
"end_lineno": 3,
"func": {
"ast_class": "Name",
"col_offset": 26,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 34,
"end_lineno": 3,
"id": "individu",
"lineno": 3
},
"keywords": [],
"lineno": 3
}
},
{
"ast_class": "Assign",
"col_offset": 4,
"end_col_offset": 115,
"end_lineno": 4,
"lineno": 4,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 36,
"end_lineno": 4,
"id": "plafond_securite_sociale_horaire",
"lineno": 4
}
],
"value": {
"ast_class": "Attribute",
"attr": "plafond_securite_sociale_horaire",
"col_offset": 39,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 115,
"end_lineno": 4,
"lineno": 4,
"value": {
"ast_class": "Attribute",
"attr": "pss",
"col_offset": 39,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 82,
"end_lineno": 4,
"lineno": 4,
"value": {
"ast_class": "Attribute",
"attr": "prelevements_sociaux",
"col_offset": 39,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 78,
"end_lineno": 4,
"lineno": 4,
"value": {
"args": [
{
"ast_class": "Name",
"col_offset": 50,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 56,
"end_lineno": 4,
"id": "period",
"lineno": 4
}
],
"ast_class": "Call",
"col_offset": 39,
"end_col_offset": 57,
"end_lineno": 4,
"func": {
"ast_class": "Name",
"col_offset": 39,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 49,
"end_lineno": 4,
"id": "parameters",
"lineno": 4
},
"keywords": [],
"lineno": 4
}
}
}
}
},
{
"ast_class": "Assign",
"col_offset": 4,
"end_col_offset": 116,
"end_lineno": 5,
"lineno": 5,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 32,
"end_lineno": 5,
"id": "stage_gratification_taux_min",
"lineno": 5
}
],
"value": {
"ast_class": "Attribute",
"attr": "taux_gratification_min",
"col_offset": 35,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 116,
"end_lineno": 5,
"lineno": 5,
"value": {
"ast_class": "Attribute",
"attr": "minstage",
"col_offset": 35,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 93,
"end_lineno": 5,
"lineno": 5,
"value": {
"ast_class": "Attribute",
"attr": "salaire_minimum",
"col_offset": 35,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 84,
"end_lineno": 5,
"lineno": 5,
"value": {
"ast_class": "Attribute",
"attr": "marche_travail",
"col_offset": 35,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 68,
"end_lineno": 5,
"lineno": 5,
"value": {
"args": [
{
"ast_class": "Name",
"col_offset": 46,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 52,
"end_lineno": 5,
"id": "period",
"lineno": 5
}
],
"ast_class": "Call",
"col_offset": 35,
"end_col_offset": 53,
"end_lineno": 5,
"func": {
"ast_class": "Name",
"col_offset": 35,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 45,
"end_lineno": 5,
"id": "parameters",
"lineno": 5
},
"keywords": [],
"lineno": 5
}
}
}
}
}
},
{
"ast_class": "Assign",
"col_offset": 4,
"end_col_offset": 114,
"end_lineno": 6,
"lineno": 6,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 27,
"end_lineno": 6,
"id": "stage_gratification_min",
"lineno": 6
}
],
"value": {
"ast_class": "BinOp",
"col_offset": 30,
"end_col_offset": 114,
"end_lineno": 6,
"left": {
"ast_class": "BinOp",
"col_offset": 30,
"end_col_offset": 83,
"end_lineno": 6,
"left": {
"ast_class": "Name",
"col_offset": 30,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 62,
"end_lineno": 6,
"id": "plafond_securite_sociale_horaire",
"lineno": 6
},
"lineno": 6,
"op": {
"ast_class": "Mult"
},
"right": {
"ast_class": "Name",
"col_offset": 65,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 83,
"end_lineno": 6,
"id": "stage_duree_heures",
"lineno": 6
}
},
"lineno": 6,
"op": {
"ast_class": "Mult"
},
"right": {
"ast_class": "Name",
"col_offset": 86,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 114,
"end_lineno": 6,
"id": "stage_gratification_taux_min",
"lineno": 6
}
}
},
{
"ast_class": "Return",
"col_offset": 4,
"end_col_offset": 65,
"end_lineno": 7,
"lineno": 7,
"value": {
"args": [
{
"ast_class": "BinOp",
"col_offset": 16,
"end_col_offset": 61,
"end_lineno": 7,
"left": {
"ast_class": "Name",
"col_offset": 16,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 35,
"end_lineno": 7,
"id": "stage_gratification",
"lineno": 7
},
"lineno": 7,
"op": {
"ast_class": "Sub"
},
"right": {
"ast_class": "Name",
"col_offset": 38,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 61,
"end_lineno": 7,
"id": "stage_gratification_min",
"lineno": 7
}
},
{
"ast_class": "Constant",
"col_offset": 63,
"end_col_offset": 64,
"end_lineno": 7,
"lineno": 7,
"value": 0
}
],
"ast_class": "Call",
"col_offset": 11,
"end_col_offset": 65,
"end_lineno": 7,
"func": {
"ast_class": "Name",
"col_offset": 11,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 15,
"end_lineno": 7,
"id": "max_",
"lineno": 7
},
"keywords": [],
"lineno": 7
}
}
],
"col_offset": 0,
"decorator_list": [],
"end_col_offset": 65,
"end_lineno": 7,
"lineno": 1,
"name": "formula_2014_11"
},
"file_path": "openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/stage.py",
"parameters": [
"marche_travail.salaire_minimum.minstage.taux_gratification_min",
"prelevements_sociaux.pss.plafond_securite_sociale_horaire"
],
"source_code": "def formula_2014_11(individu, period, parameters):\n stage_duree_heures = individu('stage_duree_heures', period)\n stage_gratification = individu('stage_gratification', period)\n plafond_securite_sociale_horaire = parameters(period).prelevements_sociaux.pss.plafond_securite_sociale_horaire\n stage_gratification_taux_min = parameters(period).marche_travail.salaire_minimum.minstage.taux_gratification_min\n stage_gratification_min = plafond_securite_sociale_horaire * stage_duree_heures * stage_gratification_taux_min\n return max_(stage_gratification - stage_gratification_min, 0)\n",
"start_line_number": 45,
"stop_line_number": 52,
"variables": [
"stage_duree_heures",
"stage_gratification"
]
}
},
"json_type": "number",
"label": "Part de la gratification de stage réintégrée à l'assiette des cotisations et contributions sociales",
"last_review": "2014-11-01",
"name": "stage_gratification_reintegration",
"referring_variables": [
"assiette_cotisations_sociales",
"assiette_csg_abattue",
"exoneration_cotisations_employeur_stagiaire",
"exoneration_cotisations_salarie_stagiaire"
],
"set_input": "set_input_divide_by_period",
"start_line_number": 38,
"stop_line_number": 52,
"value_type": "float"
}