prompt
large_stringlengths
72
9.34k
completion
large_stringlengths
0
7.61k
<|file_name|>CertAuthority.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ This module provides the necessary methods for a Certification Authority. For creating the self signed Certificate for the CA, use the following command: $ openssl req -x509 -newkey rsa:2048 -keyout ca_priv.pem -out ca_cert.pem ...
__init__
<|file_name|>CertAuthority.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ This module provides the necessary methods for a Certification Authority. For creating the self signed Certificate for the CA, use the following command: $ openssl req -x509 -newkey rsa:2048 -keyout ca_priv.pem -out ca_cert.pem ...
getPassphrase
<|file_name|>CertAuthority.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ This module provides the necessary methods for a Certification Authority. For creating the self signed Certificate for the CA, use the following command: $ openssl req -x509 -newkey rsa:2048 -keyout ca_priv.pem -out ca_cert.pem ...
createSignedCertificate
<|file_name|>CertAuthority.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ This module provides the necessary methods for a Certification Authority. For creating the self signed Certificate for the CA, use the following command: $ openssl req -x509 -newkey rsa:2048 -keyout ca_priv.pem -out ca_cert.pem ...
decryptData
<|file_name|>CertAuthority.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ This module provides the necessary methods for a Certification Authority. For creating the self signed Certificate for the CA, use the following command: $ openssl req -x509 -newkey rsa:2048 -keyout ca_priv.pem -out ca_cert.pem ...
encryptData
<|file_name|>CertAuthority.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ This module provides the necessary methods for a Certification Authority. For creating the self signed Certificate for the CA, use the following command: $ openssl req -x509 -newkey rsa:2048 -keyout ca_priv.pem -out ca_cert.pem ...
getPublicKey
<|file_name|>CertAuthority.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ This module provides the necessary methods for a Certification Authority. For creating the self signed Certificate for the CA, use the following command: $ openssl req -x509 -newkey rsa:2048 -keyout ca_priv.pem -out ca_cert.pem ...
signData
<|file_name|>CertAuthority.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ This module provides the necessary methods for a Certification Authority. For creating the self signed Certificate for the CA, use the following command: $ openssl req -x509 -newkey rsa:2048 -keyout ca_priv.pem -out ca_cert.pem ...
signEncryptedData
<|file_name|>CertAuthority.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ This module provides the necessary methods for a Certification Authority. For creating the self signed Certificate for the CA, use the following command: $ openssl req -x509 -newkey rsa:2048 -keyout ca_priv.pem -out ca_cert.pem ...
validCertificate
<|file_name|>CertAuthority.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ This module provides the necessary methods for a Certification Authority. For creating the self signed Certificate for the CA, use the following command: $ openssl req -x509 -newkey rsa:2048 -keyout ca_priv.pem -out ca_cert.pem ...
validSelfSignedCertificate
<|file_name|>CertAuthority.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ This module provides the necessary methods for a Certification Authority. For creating the self signed Certificate for the CA, use the following command: $ openssl req -x509 -newkey rsa:2048 -keyout ca_priv.pem -out ca_cert.pem ...
validSignedData
<|file_name|>CertAuthority.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ This module provides the necessary methods for a Certification Authority. For creating the self signed Certificate for the CA, use the following command: $ openssl req -x509 -newkey rsa:2048 -keyout ca_priv.pem -out ca_cert.pem ...
validSignedEncryptedData
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
def emit(self, record): pass
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
pass
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
""" turn on/off the traceability. traceable: boolean value. if set True, traceability is enabled. """ global _traceEnabled _traceEnabled = traceable if traceable: _logger.addHandler(handler) _logger.setLevel(logging.DEBUG)
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
if _traceEnabled: _logger.debug("--- " + title + " ---") _logger.debug(message) _logger.debug("-----------------------")
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
_logger.error(msg)
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
_logger.warning(msg)
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
_logger.debug(msg)
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
if _traceEnabled: _logger.debug(msg)
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
return _logger.isEnabledFor(logging.ERROR)
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
return _logger.isEnabledFor(logging.DEBUG)
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
return _traceEnabled
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
_logger.addHandler(handler) _logger.setLevel(logging.DEBUG)
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
_logger.debug("--- " + title + " ---") _logger.debug(message) _logger.debug("-----------------------")
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
_logger.debug(msg)
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
emit
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
enableTrace
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
dump
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
error
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
warning
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
debug
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
trace
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
isEnabledForError
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
isEnabledForDebug
<|file_name|>_logging.py<|end_file_name|><|fim▁begin|>""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
isEnabledForTrace
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
stats_result = stats_datasets.get_dataverse_affiliation_counts() elif pub_state == self.PUB_STATE_UNPUBLISHED:
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): <|fim_middle|> class DataverseTotalCounts(StatsView...
"""API View - Dataverse counts by Month.""" # Define the swagger attributes # Note: api_path must match the path in urls.py # api_path = '/dataverses/count/monthly' summary = ('Number of published Dataverses by' ' the month they were created*. (*' ' Not month published)...
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
"""Return the StatsResult object for this statistic""" stats_datasets = StatsMakerDataverses(**request.GET.dict()) pub_state = self.get_pub_state(request) if pub_state == self.PUB_STATE_ALL: stats_result = stats_datasets.get_dataverse_counts_by_month() elif pub_stat...
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
"""API View - Total count of all Dataverses""" # Define the swagger attributes # Note: api_path must match the path in urls.py # api_path = '/dataverses/count' summary = ('Simple count of published Dataverses') description = ('Returns number of published Dataverses') description_200 = '...
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
"""Return the StatsResult object for this statistic""" stats_datasets = StatsMakerDataverses(**request.GET.dict()) pub_state = self.get_pub_state(request) if pub_state == self.PUB_STATE_ALL: stats_result = stats_datasets.get_dataverse_count() elif pub_state == self....
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
"""API View - Number of Dataverses by Affiliation""" # Define the swagger attributes # Note: api_path must match the path in urls.py # api_path = '/dataverses/count/by-affiliation' summary = ('Number of Dataverses by Affiliation') description = ('Number of Dataverses by Affiliation.') d...
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
"""Return the StatsResult object for this statistic""" stats_datasets = StatsMakerDataverses(**request.GET.dict()) pub_state = self.get_pub_state(request) if pub_state == self.PUB_STATE_ALL: stats_result = stats_datasets.get_dataverse_affiliation_counts() elif pub_s...
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
api_path = '/dataverses/count/by-type' summary = ('Number of Dataverses by Type') description = ('Number of Dataverses by Type.') description_200 = 'Number of published Dataverses by Type.' param_names = StatsViewSwagger.PARAM_DV_API_KEY + StatsViewSwagger.PUBLISH_PARAMS +\ Stats...
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
"""Return the result of the "?show_uncategorized" query string param""" show_uncategorized = request.GET.get('show_uncategorized', False) if show_uncategorized is True or show_uncategorized == 'true': return True return False
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
"""Return the StatsResult object for this statistic""" stats_datasets = StatsMakerDataverses(**request.GET.dict()) if self.is_show_uncategorized(request): exclude_uncategorized = False else: exclude_uncategorized = True pub_state = self.get_pub_state(req...
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
stats_result = stats_datasets.get_dataverse_counts_by_month()
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
stats_result = stats_datasets.get_dataverse_counts_by_month_unpublished()
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
stats_result = stats_datasets.get_dataverse_counts_by_month_published()
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
stats_result = stats_datasets.get_dataverse_count()
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
stats_result = stats_datasets.get_dataverse_count_unpublished()
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
stats_result = stats_datasets.get_dataverse_count_published()
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
stats_result = stats_datasets.get_dataverse_affiliation_counts()
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
stats_result = stats_datasets.get_dataverse_affiliation_counts_unpublished()
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
stats_result = stats_datasets.get_dataverse_affiliation_counts_published()
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
return True
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
exclude_uncategorized = False
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
exclude_uncategorized = True
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
stats_result = stats_datasets.get_dataverse_counts_by_type(exclude_uncategorized)
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
stats_result = stats_datasets.get_dataverse_counts_by_type_unpublished(exclude_uncategorized)
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
stats_result = stats_datasets.get_dataverse_counts_by_type_published(exclude_uncategorized)
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
get_stats_result
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
get_stats_result
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
get_stats_result
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
is_show_uncategorized
<|file_name|>stats_views_dataverses.py<|end_file_name|><|fim▁begin|>from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # De...
get_stats_result
<|file_name|>101_test.py<|end_file_name|><|fim▁begin|>from fruits import validate_fruit<|fim▁hole|> print fruits def list_fruits(fruits, byName=True): if byName: # WARNING: this won't make a copy of the list and return it. It will change the list FOREVER fruits.sort() for index, fruit in enu...
fruits = ["banana", "lemon", "apple", "orange", "batman"]
<|file_name|>101_test.py<|end_file_name|><|fim▁begin|>from fruits import validate_fruit fruits = ["banana", "lemon", "apple", "orange", "batman"] print fruits def list_fruits(fruits, byName=True): <|fim_middle|> list_fruits(fruits) print fruits <|fim▁end|>
if byName: # WARNING: this won't make a copy of the list and return it. It will change the list FOREVER fruits.sort() for index, fruit in enumerate(fruits): if validate_fruit(fruit): print "Fruit nr %d is %s" % (index, fruit) else: print "This %s is no fr...
<|file_name|>101_test.py<|end_file_name|><|fim▁begin|>from fruits import validate_fruit fruits = ["banana", "lemon", "apple", "orange", "batman"] print fruits def list_fruits(fruits, byName=True): if byName: # WARNING: this won't make a copy of the list and return it. It will change the list FOREVER ...
fruits.sort()
<|file_name|>101_test.py<|end_file_name|><|fim▁begin|>from fruits import validate_fruit fruits = ["banana", "lemon", "apple", "orange", "batman"] print fruits def list_fruits(fruits, byName=True): if byName: # WARNING: this won't make a copy of the list and return it. It will change the list FOREVER ...
print "Fruit nr %d is %s" % (index, fruit)
<|file_name|>101_test.py<|end_file_name|><|fim▁begin|>from fruits import validate_fruit fruits = ["banana", "lemon", "apple", "orange", "batman"] print fruits def list_fruits(fruits, byName=True): if byName: # WARNING: this won't make a copy of the list and return it. It will change the list FOREVER ...
print "This %s is no fruit!" % (fruit)
<|file_name|>101_test.py<|end_file_name|><|fim▁begin|>from fruits import validate_fruit fruits = ["banana", "lemon", "apple", "orange", "batman"] print fruits def <|fim_middle|>(fruits, byName=True): if byName: # WARNING: this won't make a copy of the list and return it. It will change the list FOREVER...
list_fruits
<|file_name|>urls.py<|end_file_name|><|fim▁begin|># ETConf -- web-based user-friendly computer hardware configurator # Copyright (C) 2010-2011 ETegro Technologies, PLC <http://etegro.com/> # Sergey Matveev <sergey.matveev@etegro.com> # # This program is free software: you can redistribute it an...
# GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License
<|file_name|>tag_follow_disagreement.py<|end_file_name|><|fim▁begin|>import sys tagging_filepath = sys.argv[1] following_filepath = sys.argv[2] delim = '\t' if len(sys.argv) > 3: delim = sys.argv[3] graph = {} for line in open(tagging_filepath): entry = line.rstrip().split('\t') src = entry[0] dst = ...
val = graph[src][dst]
<|file_name|>tag_follow_disagreement.py<|end_file_name|><|fim▁begin|>import sys tagging_filepath = sys.argv[1] following_filepath = sys.argv[2] delim = '\t' if len(sys.argv) > 3: <|fim_middle|> graph = {} for line in open(tagging_filepath): entry = line.rstrip().split('\t') src = entry[0] dst = ...
delim = sys.argv[3]
<|file_name|>tag_follow_disagreement.py<|end_file_name|><|fim▁begin|>import sys tagging_filepath = sys.argv[1] following_filepath = sys.argv[2] delim = '\t' if len(sys.argv) > 3: delim = sys.argv[3] graph = {} for line in open(tagging_filepath): entry = line.rstrip().split('\t') src = entry[0] dst = ...
graph[src] = {}
<|file_name|>tag_follow_disagreement.py<|end_file_name|><|fim▁begin|>import sys tagging_filepath = sys.argv[1] following_filepath = sys.argv[2] delim = '\t' if len(sys.argv) > 3: delim = sys.argv[3] graph = {} for line in open(tagging_filepath): entry = line.rstrip().split('\t') src = entry[0] dst = ...
graph[src][dst] += 1
<|file_name|>tag_follow_disagreement.py<|end_file_name|><|fim▁begin|>import sys tagging_filepath = sys.argv[1] following_filepath = sys.argv[2] delim = '\t' if len(sys.argv) > 3: delim = sys.argv[3] graph = {} for line in open(tagging_filepath): entry = line.rstrip().split('\t') src = entry[0] dst = ...
graph[dst][src] += 2
<|file_name|>tag_follow_disagreement.py<|end_file_name|><|fim▁begin|>import sys tagging_filepath = sys.argv[1] following_filepath = sys.argv[2] delim = '\t' if len(sys.argv) > 3: delim = sys.argv[3] graph = {} for line in open(tagging_filepath): entry = line.rstrip().split('\t') src = entry[0] dst = ...
w_dir += 1
<|file_name|>tag_follow_disagreement.py<|end_file_name|><|fim▁begin|>import sys tagging_filepath = sys.argv[1] following_filepath = sys.argv[2] delim = '\t' if len(sys.argv) > 3: delim = sys.argv[3] graph = {} for line in open(tagging_filepath): entry = line.rstrip().split('\t') src = entry[0] dst = ...
wo_dir += 1
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python import argparse from . import core from . import gui def main(): parser = argparse.ArgumentParser( description="Track opponent's mulligan in the game of Hearthstone.") parser.add_argument('--gui', action='store_true') arg...
main()
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python import argparse from . import core from . import gui def main(): <|fim_middle|> if __name__ == '__main__': main() <|fim▁end|>
parser = argparse.ArgumentParser( description="Track opponent's mulligan in the game of Hearthstone.") parser.add_argument('--gui', action='store_true') args = parser.parse_args() if args.gui: gui.main() else: core.main()
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python import argparse from . import core from . import gui def main(): parser = argparse.ArgumentParser( description="Track opponent's mulligan in the game of Hearthstone.") parser.add_argument('--gui', action='store_true') arg...
gui.main()
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python import argparse from . import core from . import gui def main(): parser = argparse.ArgumentParser( description="Track opponent's mulligan in the game of Hearthstone.") parser.add_argument('--gui', action='store_true') arg...
core.main()
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python import argparse from . import core from . import gui def main(): parser = argparse.ArgumentParser( description="Track opponent's mulligan in the game of Hearthstone.") parser.add_argument('--gui', action='store_true') arg...
main()
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python import argparse from . import core from . import gui def <|fim_middle|>(): parser = argparse.ArgumentParser( description="Track opponent's mulligan in the game of Hearthstone.") parser.add_argument('--gui', action='store_true...
main
<|file_name|>factory.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Copyright 2017 DST Controls # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at<|fim▁hole|># http://...
#
<|file_name|>factory.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Copyright 2017 DST Controls # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apach...
""" Return an object created with factory :param webapi: :param factory: :param params: :param session: :return: """ payload = dict(map(lambda k_v: (k_v[0].lower(), k_v[1]), iteritems(thing))) # added to avoid creating Value objects if the value was considered bad values ...
<|file_name|>factory.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Copyright 2017 DST Controls # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apach...
def __init__(self, type_): self.type = type_ def create(self, **kwargs): return self.type(**kwargs)
<|file_name|>factory.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Copyright 2017 DST Controls # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apach...
self.type = type_
<|file_name|>factory.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Copyright 2017 DST Controls # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apach...
return self.type(**kwargs)
<|file_name|>factory.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Copyright 2017 DST Controls # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apach...
create
<|file_name|>factory.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Copyright 2017 DST Controls # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apach...
__init__
<|file_name|>factory.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Copyright 2017 DST Controls # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apach...
create
<|file_name|>counter.py<|end_file_name|><|fim▁begin|>import cv2 import numpy as np import datetime as dt # constant faceCascade = cv2.CascadeClassifier('haarcascade_frontalface_alt.xml') OPENCV_METHODS = { "Correlation": 0, "Chi-Squared": 1, "Intersection": 2, "Hellinger": 3} hist_limit = 0.6 ttl = 1 *...
# init variables total_count = 0 prev_count = 0
<|file_name|>counter.py<|end_file_name|><|fim▁begin|>import cv2 import numpy as np import datetime as dt # constant faceCascade = cv2.CascadeClassifier('haarcascade_frontalface_alt.xml') OPENCV_METHODS = { "Correlation": 0, "Chi-Squared": 1, "Intersection": 2, "Hellinger": 3} hist_limit = 0.6 ttl = 1 *...
stm.pop(t, None)
<|file_name|>counter.py<|end_file_name|><|fim▁begin|>import cv2 import numpy as np import datetime as dt # constant faceCascade = cv2.CascadeClassifier('haarcascade_frontalface_alt.xml') OPENCV_METHODS = { "Correlation": 0, "Chi-Squared": 1, "Intersection": 2, "Hellinger": 3} hist_limit = 0.6 ttl = 1 *...
del q[0]
<|file_name|>counter.py<|end_file_name|><|fim▁begin|>import cv2 import numpy as np import datetime as dt # constant faceCascade = cv2.CascadeClassifier('haarcascade_frontalface_alt.xml') OPENCV_METHODS = { "Correlation": 0, "Chi-Squared": 1, "Intersection": 2, "Hellinger": 3} hist_limit = 0.6 ttl = 1 *...
isSame = False
<|file_name|>counter.py<|end_file_name|><|fim▁begin|>import cv2 import numpy as np import datetime as dt # constant faceCascade = cv2.CascadeClassifier('haarcascade_frontalface_alt.xml') OPENCV_METHODS = { "Correlation": 0, "Chi-Squared": 1, "Intersection": 2, "Hellinger": 3} hist_limit = 0.6 ttl = 1 *...
continue