This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Map; | |
| import java.util.concurrent.ConcurrentHashMap; | |
| import java.util.regex.Pattern; | |
| import java.util.regex.PatternSyntaxException; | |
| /** | |
| * Изучить следующий кусочек кода, подробно расписать какие проблемы Вы видите в нем при их наличии и предложить пути решения, модифицировав код программы. | |
| * https://docs.google.com/document/d/11ZFJLrqlHYwr1Ply20ej8yqKmNxdf09FMY-MkVFhZJM/edit?tab=t.0 | |
| * https://spb.hh.ru/vacancy/109822869?hhtmFrom=vacancy_response | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.HashMap; | |
| import java.util.Map; | |
| public class ElementCounter { | |
| public static Map<Integer, Integer> countElements(int[] array) { | |
| Map<Integer, Integer> elementCount = new HashMap<>(); | |
| for (int element : array) { | |
| elementCount.put(element, elementCount.getOrDefault(element, 0) + 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VERSION = (0, 4, 3) | |
| __version__ = '.'.join(map(str, VERSION)) | |
| try: | |
| from geokey.extensions.base import register | |
| register( | |
| 'geokey_export', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VERSION = (1, 0, 4) | |
| __version__ = '.'.join(map(str, VERSION)) | |
| try: | |
| from geokey.extensions.base import register | |
| register( | |
| 'geokey_epicollect', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VERSION = (0, 1, 4) | |
| __version__ = '.'.join(map(str, VERSION)) | |
| try: | |
| from geokey.extensions.base import register | |
| register( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import commands | |
| import re | |
| from django.conf import settings | |
| from geokey.applications.models import Application | |
| from .sapelli_exceptions import SapelliException | |
| from .sapelli_loader import get_sapelli_dir_path, get_sapelli_jar_path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class RealPathUtil { | |
| public static String getRealPath(Context context, Uri fileUri) { | |
| String realPath; | |
| // SDK < API11 | |
| if (Build.VERSION.SDK_INT < 11) { | |
| realPath = RealPathUtil.getRealPathFromURI_BelowAPI11(context, fileUri); | |
| } | |
| // SDK >= 11 && SDK < 19 | |
| else if (Build.VERSION.SDK_INT < 19) { |