<commit_before># Imports

Imports in xPython are possible from package or file.
You can import only requested package *(that include only data from `package.xpy`)*
functions, classes, constants or variables.


## Example

```python
from django.db import
  ...models
  ...models.fields as fields
  ...migrations
# Import from a global scope.
from math import factorial
# Import from the file/package that located in the same package as this file.
from .math import factorial as my_factorial
```

**Note** that you can't do dynamical import of subpackages or files in the imported package:

```python
from django import db

# You can't import dynamically internal packages or files inside package.
# You have access only to content, that you explicitly imported.
class MyModel(db.models.Model):  ...

# The right way is to import what do you need (two ways are possible).
# Way #1 - import full package or file.
from django.db import models

class MyModel(models.Model):  ...

# Way #2 - import only requested class.
from django.db.models import Model

class MyModel(Model):  ...
```<commit_msg>Changed imports to use only import keyword (not used from)<commit_after># Imports

Imports in xPython are possible from package or file.
You can import only requested package *(that include only data from `package.xpy`)*
functions, classes, constants or variables.


## Example

```python
import django.db
  models
  models.fields as fields
  migrations
# Import from a global scope.
import math.factorial
# Import from the file/package that located in the same package as this file.
import math.factorial as my_factorial
```

**Note** that you can't do dynamical import of subpackages or files in the imported package:

```python
import django.db

# You can't import dynamically internal packages or files inside package.
# You have access only to content, that you explicitly imported.
class MyModel extends db.models.Model
  ...

# The right way is to import what do you need (two ways are possible).
# Way #1 - import full package or file.
import django.db.models

class MyModel extends models.Model
  ...

# Way #2 - import only requested class.
import django.db.models as django_models

class MyModel extends django_models.Model
  ...
```
{'fraction_non_alphanumeric': 0.07867679928475638, 'fraction_numerical': 0.001788109074653554, 'mean_word_length': 4.006711409395973, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6668957', 'n_tokens_mistral': 606, 'n_tokens_neox': 587, 'n_words': 300}