function
stringlengths
11
56k
repo_name
stringlengths
5
60
features
list
def create_autospec(spec, spec_set=False, instance=False, _parent=None, _name=None, **kwargs): """Create a mock object using another object as a spec. Attributes on the mock will use the corresponding attribute on the `spec` object as their spec. Functions or methods being mocked wi...
mozilla/popcorn_maker
[ 34, 28, 34, 1, 1334919665 ]
def _get_class(obj): try: return obj.__class__ except AttributeError: # in Python 2, _sre.SRE_Pattern objects have no __class__ return type(obj)
mozilla/popcorn_maker
[ 34, 28, 34, 1, 1334919665 ]
def __init__(self, spec, spec_set=False, parent=None, name=None, ids=None, instance=False): self.spec = spec self.ids = ids self.spec_set = spec_set self.parent = parent self.instance = instance self.name = name
mozilla/popcorn_maker
[ 34, 28, 34, 1, 1334919665 ]
def __init__(self, features): """Initialize `ExampleParser`. The `features` argument must be an object that can be converted to an `OrderedDict`. The keys should be strings and will be used to name the output. Values should be either `VarLenFeature` or `FixedLenFeature`. If `features` is a ...
npuichigo/ttsflow
[ 16, 6, 16, 1, 1500635633 ]
def name(self): return "ExampleParser"
npuichigo/ttsflow
[ 16, 6, 16, 1, 1500635633 ]
def input_valency(self): return 1
npuichigo/ttsflow
[ 16, 6, 16, 1, 1500635633 ]
def _output_names(self): return list(self._ordered_features.keys())
npuichigo/ttsflow
[ 16, 6, 16, 1, 1500635633 ]
def feature_definitions(self): return self._ordered_features
npuichigo/ttsflow
[ 16, 6, 16, 1, 1500635633 ]
def __init__(self, params): params = params.copy() options = params.pop('OPTIONS').copy() super(Jinja2, self).__init__(params) environment = options.pop('environment', 'jinja2.Environment') environment_cls = import_string(environment) options.setdefault('autoescape', Tr...
Vvucinic/Wander
[ 1, 1, 1, 11, 1449375044 ]
def get_template(self, template_name): try: return Template(self.env.get_template(template_name)) except jinja2.TemplateNotFound as exc: six.reraise( TemplateDoesNotExist, TemplateDoesNotExist(exc.name, backend=self), sys.exc_info()...
Vvucinic/Wander
[ 1, 1, 1, 11, 1449375044 ]
def __init__(self, template): self.template = template self.origin = Origin( name=template.filename, template_name=template.name, )
Vvucinic/Wander
[ 1, 1, 1, 11, 1449375044 ]
def __init__(self, name, template_name): self.name = name self.template_name = template_name
Vvucinic/Wander
[ 1, 1, 1, 11, 1449375044 ]
def check_token(self, user, token): """Check that a registration token is correct for a given user.""" # If the user is active, the hash can't be valid. if user.is_active: return False
ithinksw/philo
[ 50, 12, 50, 3, 1274327279 ]
def _make_token_with_timestamp(self, user, timestamp): ts_b36 = int_to_base36(timestamp)
ithinksw/philo
[ 50, 12, 50, 3, 1274327279 ]
def make_token(self, user, email): """Returns a token that can be used once to do an email change for the given user and email.""" return self._make_token_with_timestamp(user, email, self._num_days(self._today()))
ithinksw/philo
[ 50, 12, 50, 3, 1274327279 ]
def check_token(self, user, email, token): if email == user.email: return False
ithinksw/philo
[ 50, 12, 50, 3, 1274327279 ]
def _make_token_with_timestamp(self, user, email, timestamp): ts_b36 = int_to_base36(timestamp)
ithinksw/philo
[ 50, 12, 50, 3, 1274327279 ]
def __init__(self, client, config, serializer, deserializer) -> None: self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def process_poi(self, poi): props = {} add_parts = [] for child in poi: if child.tag in TAGS and child.tag in MAPPING: if child.tag in ('latitude', 'longitude'): props[MAPPING[child.tag]] = float(child.text) else: ...
iandees/all-the-places
[ 379, 151, 379, 602, 1465952958 ]
def gene_1_2(value, system): # https://encodedcc.atlassian.net/browse/ENCD-5005 # go_annotations are replaced by a link on UI to GO value.pop('go_annotations', None)
ENCODE-DCC/encoded
[ 104, 54, 104, 70, 1354841541 ]
def __init__( self, plotly_name="sourceattribution", parent_name="layout.mapbox.layer", **kwargs
plotly/python-api
[ 13052, 2308, 13052, 1319, 1385013188 ]
def __init__(self, machine): """Initialise P-ROC.""" super().__init__(machine) # validate config for p_roc self.config = self.machine.config_validator.validate_config("p_roc", self.machine.config.get('p_roc', {})) self._configure_device_logging_and_debug('P-Roc', self.config) ...
missionpinball/mpf
[ 176, 127, 176, 108, 1403853986 ]
def _get_default_subtype(self): """Return default subtype for P-Roc.""" return "matrix"
missionpinball/mpf
[ 176, 127, 176, 108, 1403853986 ]
def get_info_string(self): """Dump infos about boards.""" infos = "Firmware Version: {} Firmware Revision: {} Hardware Board ID: {}\n".format( self.version, self.revision, self.hardware_version) return infos
missionpinball/mpf
[ 176, 127, 176, 108, 1403853986 ]
def get_coil_config_section(cls): """Return coil config section.""" return "p_roc_coils"
missionpinball/mpf
[ 176, 127, 176, 108, 1403853986 ]
def configure_switch(self, number: str, config: SwitchConfig, platform_config: dict): """Configure a P-ROC switch. Args: ---- number: String number of the switch to configure. config: SwitchConfig settings. platform_config: Platform specific settings. ...
missionpinball/mpf
[ 176, 127, 176, 108, 1403853986 ]
def configure_dmd(self): """Configure a hardware DMD connected to a classic P-ROC.""" self.dmd = PROCDMD(self, self.machine) return self.dmd
missionpinball/mpf
[ 176, 127, 176, 108, 1403853986 ]
def process_events(self, events): """Process events from the P-Roc.""" for event in events: event_type = event['type'] event_value = event['value'] if event_type == self.pinproc.EventTypeDMDFrameDisplayed: # ignore this for now pass ...
missionpinball/mpf
[ 176, 127, 176, 108, 1403853986 ]
def __init__(self, platform, machine): """Set up DMD.""" self.platform = platform # type: PROCBasePlatform self.machine = machine # type: MachineController # dmd_timing defaults should be 250, 400, 180, 800 if self.machine.config['p_roc']['dmd_timing_cycles']: ...
missionpinball/mpf
[ 176, 127, 176, 108, 1403853986 ]
def update(self, data): """Update the DMD with a new frame. Args: ---- data: A 4096-byte raw string. """ if len(data) == 4096: self.platform.run_proc_cmd_no_wait("_dmd_send", data) else: self.machine.log.warning("Received DMD frame of...
missionpinball/mpf
[ 176, 127, 176, 108, 1403853986 ]
def __init__(self, platform): """Initialise aux port.""" self.platform = platform self._commands = []
missionpinball/mpf
[ 176, 127, 176, 108, 1403853986 ]
def reserve_index(self): """Return index of next free command slot and reserve it.""" self._commands += [[]] return len(self._commands) - 1
missionpinball/mpf
[ 176, 127, 176, 108, 1403853986 ]
def _write_commands(self): """Write commands to hardware.""" # disable program commands = [self.platform.pinproc.aux_command_disable()] # build command list for command_set in self._commands: commands += command_set self.platform.run_proc_cmd_no_wait("aux_...
missionpinball/mpf
[ 176, 127, 176, 108, 1403853986 ]
def __init__(self, display, index): """Initialise alpha numeric display.""" super().__init__(index) self.display = display
missionpinball/mpf
[ 176, 127, 176, 108, 1403853986 ]
def __init__(self, platform, aux_controller): """Initialise the alphanumeric display.""" self.platform = platform self.aux_controller = aux_controller self.aux_index = aux_controller.reserve_index() self.texts = [" "] * 4
missionpinball/mpf
[ 176, 127, 176, 108, 1403853986 ]
def build_list_request( resource_group_name: str, subscription_id: str, resource_name: str, **kwargs: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def build_get_request( resource_group_name: str, subscription_id: str, resource_name: str, configuration_id: str, **kwargs: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def build_update_request( resource_group_name: str, subscription_id: str, resource_name: str, configuration_id: str, *, json: JSONType = None, content: Any = None, **kwargs: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def list( self, resource_group_name: str, resource_name: str, **kwargs: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def get( self, resource_group_name: str, resource_name: str, configuration_id: str, **kwargs: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def update( self, resource_group_name: str, resource_name: str, configuration_id: str, proactive_detection_properties: "_models.ApplicationInsightsComponentProactiveDetectionConfiguration", **kwargs: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def __init__( self, credential, # type: "TokenCredential" synapse_dns_suffix="dev.azuresynapse.net", # type: str livy_api_version="2019-11-01-preview", # type: str **kwargs # type: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def _configure( self, **kwargs # type: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def test_manifest(self): with open(MANIFEST) as f: m = json.load(f) for img in m: r = requests.head(img['url']) r.raise_for_status() self.assertEqual(r.headers['Content-Type'], "application/x-xz") if not img['sparse']: assert img['hash'] == img['hash_raw']
commaai/openpilot
[ 38913, 7077, 38913, 364, 1479951210 ]
def __init__(self, contributor_orcid=None, credit_name=None, contributor_email=None, contributor_attributes=None): # noqa: E501 """FundingContributorV30Rc1 - a model defined in Swagger""" # noqa: E501 self._contributor_orcid = None self._credit_name = None self._contributor_email = Non...
Royal-Society-of-New-Zealand/NZ-ORCID-Hub
[ 13, 7, 13, 28, 1486087622 ]
def contributor_orcid(self): """Gets the contributor_orcid of this FundingContributorV30Rc1. # noqa: E501 :return: The contributor_orcid of this FundingContributorV30Rc1. # noqa: E501 :rtype: ContributorOrcidV30Rc1 """ return self._contributor_orcid
Royal-Society-of-New-Zealand/NZ-ORCID-Hub
[ 13, 7, 13, 28, 1486087622 ]
def contributor_orcid(self, contributor_orcid): """Sets the contributor_orcid of this FundingContributorV30Rc1. :param contributor_orcid: The contributor_orcid of this FundingContributorV30Rc1. # noqa: E501 :type: ContributorOrcidV30Rc1 """ self._contributor_orcid = contribut...
Royal-Society-of-New-Zealand/NZ-ORCID-Hub
[ 13, 7, 13, 28, 1486087622 ]
def credit_name(self): """Gets the credit_name of this FundingContributorV30Rc1. # noqa: E501 :return: The credit_name of this FundingContributorV30Rc1. # noqa: E501 :rtype: CreditNameV30Rc1 """ return self._credit_name
Royal-Society-of-New-Zealand/NZ-ORCID-Hub
[ 13, 7, 13, 28, 1486087622 ]
def credit_name(self, credit_name): """Sets the credit_name of this FundingContributorV30Rc1. :param credit_name: The credit_name of this FundingContributorV30Rc1. # noqa: E501 :type: CreditNameV30Rc1 """ self._credit_name = credit_name
Royal-Society-of-New-Zealand/NZ-ORCID-Hub
[ 13, 7, 13, 28, 1486087622 ]
def contributor_email(self): """Gets the contributor_email of this FundingContributorV30Rc1. # noqa: E501 :return: The contributor_email of this FundingContributorV30Rc1. # noqa: E501 :rtype: ContributorEmailV30Rc1 """ return self._contributor_email
Royal-Society-of-New-Zealand/NZ-ORCID-Hub
[ 13, 7, 13, 28, 1486087622 ]
def contributor_email(self, contributor_email): """Sets the contributor_email of this FundingContributorV30Rc1. :param contributor_email: The contributor_email of this FundingContributorV30Rc1. # noqa: E501 :type: ContributorEmailV30Rc1 """ self._contributor_email = contribut...
Royal-Society-of-New-Zealand/NZ-ORCID-Hub
[ 13, 7, 13, 28, 1486087622 ]
def contributor_attributes(self): """Gets the contributor_attributes of this FundingContributorV30Rc1. # noqa: E501 :return: The contributor_attributes of this FundingContributorV30Rc1. # noqa: E501 :rtype: FundingContributorAttributesV30Rc1 """ return self._contributor_attri...
Royal-Society-of-New-Zealand/NZ-ORCID-Hub
[ 13, 7, 13, 28, 1486087622 ]
def contributor_attributes(self, contributor_attributes): """Sets the contributor_attributes of this FundingContributorV30Rc1. :param contributor_attributes: The contributor_attributes of this FundingContributorV30Rc1. # noqa: E501 :type: FundingContributorAttributesV30Rc1 """ ...
Royal-Society-of-New-Zealand/NZ-ORCID-Hub
[ 13, 7, 13, 28, 1486087622 ]
def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict())
Royal-Society-of-New-Zealand/NZ-ORCID-Hub
[ 13, 7, 13, 28, 1486087622 ]
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, FundingContributorV30Rc1): return False return self.__dict__ == other.__dict__
Royal-Society-of-New-Zealand/NZ-ORCID-Hub
[ 13, 7, 13, 28, 1486087622 ]
def main(): global hold, fill, draw, look hold = [] fill = '#000000' connect() root = Tk() root.title('Paint 1.0') root.resizable(False, False) upper = LabelFrame(root, text='Your Canvas') lower = LabelFrame(root, text='Their Canvas') draw = Canvas(upper, bg='#ffffff', width=400,...
ActiveState/code
[ 1884, 686, 1884, 41, 1500923597 ]
def connect(): try: start_client() except: start_server() thread.start_new_thread(processor, ())
ActiveState/code
[ 1884, 686, 1884, 41, 1500923597 ]
def start_server(): global QRI server = socket.socket() server.bind(('', PORT)) server.listen(1) QRI = spots.qri(server.accept()[0])
ActiveState/code
[ 1884, 686, 1884, 41, 1500923597 ]
def call(func, *args, **kwargs): try: QRI.call((func, args, kwargs), 0.001) except: pass
ActiveState/code
[ 1884, 686, 1884, 41, 1500923597 ]
def change_cursor(): global fill color = tkColorChooser.askcolor(color=fill)[1] if color is not None: fill = color
ActiveState/code
[ 1884, 686, 1884, 41, 1500923597 ]
def motion(event): if hold: hold.extend([event.x, event.y]) event.widget.create_line(hold[-4:], fill=fill, tag='TEMP') call('create_line', hold[-4:], fill=fill, tag='TEMP')
ActiveState/code
[ 1884, 686, 1884, 41, 1500923597 ]
def release(event): global hold if len(hold) > 2: event.widget.delete('TEMP') event.widget.create_line(hold, fill=fill, smooth=True) call('delete', 'TEMP') call('create_line', hold, fill=fill, smooth=True) hold = []
ActiveState/code
[ 1884, 686, 1884, 41, 1500923597 ]
def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL url = self.list.metadat...
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=resp...
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def __init__(self): """ The constructor ... :return: """ # Call the constructor of the base class super(ModelGenerator, self).__init__() # The dictionary with the parameter ranges self.ranges = OrderedDict() # The dictionary with the list of th...
Stargrazer82301/CAAPR
[ 8, 2, 8, 1, 1453231962 ]
def parameter_names(self): """ This function ... :return: """ return self.ranges.keys()
Stargrazer82301/CAAPR
[ 8, 2, 8, 1, 1453231962 ]
def nparameters(self): """ This function ... :return: """ return len(self.ranges)
Stargrazer82301/CAAPR
[ 8, 2, 8, 1, 1453231962 ]
def nmodels(self): """ This function ... :return: """ return len(self.parameters[self.ranges.keys()[0]])
Stargrazer82301/CAAPR
[ 8, 2, 8, 1, 1453231962 ]
def parameter_minima(self): """ This function ... :return: """ minima = [] for name in self.ranges: minima.append(self.ranges[name].min) # Return the minimal parameter values return minima
Stargrazer82301/CAAPR
[ 8, 2, 8, 1, 1453231962 ]
def parameter_maxima(self): """ This function ... :return: """ maxima = [] for name in self.ranges: maxima.append(self.ranges[name].max) # Return the maximal parameter values return maxima
Stargrazer82301/CAAPR
[ 8, 2, 8, 1, 1453231962 ]
def add_parameter(self, name, par_range): """ This function ... :param name: :param par_range: :return: """ self.ranges[name] = par_range
Stargrazer82301/CAAPR
[ 8, 2, 8, 1, 1453231962 ]
def run(self): """ This function ... :return: """ # 1. Call the setup function self.setup() # 2. Load the necessary input self.load_input() # 3. Initialize the animations self.initialize_animations() # 4. Generate the model par...
Stargrazer82301/CAAPR
[ 8, 2, 8, 1, 1453231962 ]
def setup(self): """ This function ... :return: """ # Call the setup of the base class super(ModelGenerator, self).setup()
Stargrazer82301/CAAPR
[ 8, 2, 8, 1, 1453231962 ]
def load_input(self): """ This function ... :return: """ pass
Stargrazer82301/CAAPR
[ 8, 2, 8, 1, 1453231962 ]
def initialize_animations(self): """ This function ... :return: """ # Inform the user log.info("Initializing the animations ...") # Initialize the scatter animation self.scatter_animation = ScatterAnimation(self.ranges["FUV young"], self.ranges["FUV ion...
Stargrazer82301/CAAPR
[ 8, 2, 8, 1, 1453231962 ]
def generate(self): """ This function ... :return: """ pass
Stargrazer82301/CAAPR
[ 8, 2, 8, 1, 1453231962 ]
def update_animations(self, young_luminosity, ionizing_luminosity, dust_mass): """ This function ... :param young_luminosity: :param ionizing_luminosity: :param dust_mass: :return: """ # Add the point (and thus a frame) to the animation of parameter poin...
Stargrazer82301/CAAPR
[ 8, 2, 8, 1, 1453231962 ]
def __init__(self, *args, **kwargs): super(OrgLDIFHiAMixin, self).__init__(*args, **kwargs) self.attr2syntax['mobile'] = self.attr2syntax['telephoneNumber'] self.attr2syntax['roomNumber'] = (None, None, normalize_string)
unioslo/cerebrum
[ 9, 3, 9, 40, 1396362121 ]
def get_contact_aliases(self, contact_type=None, source_system=None, convert=None, verify=None, normalize=None): """Return a dict {entity_id: [list of contact aliases]}.""" # The code mimics a reduced modules/OrgLDIF.py:get_contacts(). entity = Entity.EntityContactInf...
unioslo/cerebrum
[ 9, 3, 9, 40, 1396362121 ]
def _(text, disambiguation=None, context='Page'): """Translate text.""" return qt.QCoreApplication.translate(context, text, disambiguation)
veusz/veusz
[ 634, 96, 634, 303, 1296746008 ]
def _resolveLinkedAxis(axis): """Follow a chain of axis function dependencies.""" loopcheck = set() while axis is not None and axis.isLinked(): loopcheck.add(axis) axis = axis.getLinkedAxis() if axis in loopcheck: # fail if loop return None return axis
veusz/veusz
[ 634, 96, 634, 303, 1296746008 ]
def __init__(self): # map widgets to widgets it depends on self.deps = collections.defaultdict(list) # list of axes self.axes = [] # list of plotters associated with each axis self.axis_plotter_map = collections.defaultdict(list) # ranges for each axis sel...
veusz/veusz
[ 634, 96, 634, 303, 1296746008 ]
def breakCycles(self, origcyclic): """Remove cycles if possible.""" numcyclic = len(origcyclic) best = -1 for i in range(len(self.pairs)): if not self.pairs[i][0][0].isaxis: p = self.pairs[:i] + self.pairs[i+1:] ordered, cyclic = utils.topolo...
veusz/veusz
[ 634, 96, 634, 303, 1296746008 ]
def _updateRangeFromPlotter(self, axis, plotter, plotterdep): """Update the range for axis from the plotter.""" if axis.isLinked(): # take range and map back to real axis therange = list(defaultrange) plotter.getRange(axis, plotterdep, therange) if thera...
veusz/veusz
[ 634, 96, 634, 303, 1296746008 ]
def processDepends(self): """Go through dependencies of widget. If the dependency has no dependency itself, then update the axis with the widget or vice versa Algorithm: Iterate over dependencies for widget. If the widget has a dependency on a widget which doesn't ...
veusz/veusz
[ 634, 96, 634, 303, 1296746008 ]
def addSettings(klass, s): widget.Widget.addSettings(s) # page sizes are initially linked to the document page size s.add( setting.DistancePhysical( 'width', setting.Reference('/width'), descr=_('Width of page'), usertext=_('Page width'), ...
veusz/veusz
[ 634, 96, 634, 303, 1296746008 ]
def allowedParentTypes(klass): from . import root return (root.Root,)
veusz/veusz
[ 634, 96, 634, 303, 1296746008 ]
def userdescription(self): """Return user-friendly description.""" return textwrap.fill(self.settings.notes, 60)
veusz/veusz
[ 634, 96, 634, 303, 1296746008 ]
def updateControlItem(self, cgi): """Call helper to set page size.""" cgi.setPageSize()
veusz/veusz
[ 634, 96, 634, 303, 1296746008 ]
def clean_password2(self): # Check that the two password entries match password1 = self.cleaned_data.get("password1") password2 = self.cleaned_data.get("password2") if password1 and password2 and password1 != password2: raise forms.ValidationError(_("Passwords don't match")) ...
JustinWingChungHui/okKindred
[ 14, 9, 14, 7, 1414365205 ]
def clean_password(self): # Regardless of what the user provides, return the initial value. # This is done here, rather than on the field, because the # field does not have access to the initial value return self.initial["password"]
JustinWingChungHui/okKindred
[ 14, 9, 14, 7, 1414365205 ]
def child_visibility(appliance, network_provider, relationship, view): network_provider_view = navigate_to(network_provider, 'Details') if network_provider_view.entities.relationships.get_text_of(relationship) == "0": pytest.skip("There are no relationships for {}".format(relationship)) network_prov...
RedHatQE/cfme_tests
[ 69, 165, 69, 133, 1360187957 ]
def test_tagvis_network_provider_children(provider, appliance, request, relationship, view, tag, user_restricted): """ Polarion: assignee: anikifor initialEstimate: 1/8h casecomponent: Tagging """ collection = appliance.collections.networ...
RedHatQE/cfme_tests
[ 69, 165, 69, 133, 1360187957 ]
def entity(request, appliance): collection_name = request.param item_collection = getattr(appliance.collections, collection_name) items = item_collection.all() if items: return items[0] else: pytest.skip("No content found for test")
RedHatQE/cfme_tests
[ 69, 165, 69, 133, 1360187957 ]
def setUp(self): self.oFile = vhdlFile.vhdlFile(lFile) self.assertIsNone(eError) self.oFile.set_indent_map(dIndentMap)
jeremiah-c-leary/vhdl-style-guide
[ 129, 31, 129, 57, 1499106283 ]
def main():
mikel-egana-aranguren/SADI-Galaxy-Docker
[ 1, 3, 1, 1, 1417087373 ]
def _timesheet_get_portal_domain(self): """ WE revert this functionality of odoo. We want to show details of ordered quantities also Only the timesheets with a product invoiced on delivered quantity are concerned. since in ordered quantity, the timesheet quantity is not invoiced, thus there ...
ingadhoc/sale
[ 42, 53, 42, 22, 1453129543 ]
def get_mandate_action(self): """ return an action for an ext.mandate contains into the domain a specific tuples to get concerned mandates """ self.ensure_one() res_ids = self._get_assemblies()._get_mandates().ids domain = [("id", "in", res_ids)] # get mo...
mozaik-association/mozaik
[ 28, 20, 28, 4, 1421746811 ]