Best JavaScript code snippet using best
security_groups.py
Source:security_groups.py
...200 sg_rule['group'] = group_rule_data201 else:202 sg_rule['ip_range'] = {'cidr': rule['cidr']}203 return sg_rule204 def _format_security_group(self, context, group):205 security_group = {}206 security_group['id'] = group['id']207 security_group['description'] = group['description']208 security_group['name'] = group['name']209 security_group['tenant_id'] = group['project_id']210 security_group['rules'] = []211 for rule in group['rules']:212 formatted_rule = self._format_security_group_rule(context, rule)213 if formatted_rule:214 security_group['rules'] += [formatted_rule]215 return security_group216 def _from_body(self, body, key):217 if not body:218 raise exc.HTTPUnprocessableEntity()219 value = body.get(key, None)220 if value is None:221 raise exc.HTTPUnprocessableEntity()222 return value223class SecurityGroupController(SecurityGroupControllerBase):224 """The Security group API controller for the OpenStack API."""225 @wsgi.serializers(xml=SecurityGroupTemplate)226 def show(self, req, id):227 """Return data about the given security group."""228 context = _authorize_context(req)229 with translate_exceptions():230 id = self.security_group_api.validate_id(id)231 security_group = self.security_group_api.get(context, None, id,232 map_exception=True)233 return {'security_group': self._format_security_group(context,234 security_group)}235 def delete(self, req, id):236 """Delete a security group."""237 context = _authorize_context(req)238 with translate_exceptions():239 id = self.security_group_api.validate_id(id)240 security_group = self.security_group_api.get(context, None, id,241 map_exception=True)242 self.security_group_api.destroy(context, security_group)243 return webob.Response(status_int=202)244 @wsgi.serializers(xml=SecurityGroupsTemplate)245 def index(self, req):246 """Returns a list of security groups."""247 context = _authorize_context(req)248 search_opts = {}249 search_opts.update(req.GET)250 with translate_exceptions():251 project_id = context.project_id252 raw_groups = self.security_group_api.list(context,253 project=project_id,254 search_opts=search_opts)255 limited_list = common.limited(raw_groups, req)256 result = [self._format_security_group(context, group)257 for group in limited_list]258 return {'security_groups':259 list(sorted(result,260 key=lambda k: (k['tenant_id'], k['name'])))}261 @wsgi.serializers(xml=SecurityGroupTemplate)262 @wsgi.deserializers(xml=SecurityGroupXMLDeserializer)263 def create(self, req, body):264 """Creates a new security group."""265 context = _authorize_context(req)266 security_group = self._from_body(body, 'security_group')267 group_name = security_group.get('name', None)268 group_description = security_group.get('description', None)269 with translate_exceptions():270 self.security_group_api.validate_property(group_name, 'name', None)271 self.security_group_api.validate_property(group_description,272 'description', None)273 group_ref = self.security_group_api.create_security_group(274 context, group_name, group_description)275 return {'security_group': self._format_security_group(context,276 group_ref)}277 @wsgi.serializers(xml=SecurityGroupTemplate)278 def update(self, req, id, body):279 """Update a security group."""280 context = _authorize_context(req)281 with translate_exceptions():282 id = self.security_group_api.validate_id(id)283 security_group = self.security_group_api.get(context, None, id,284 map_exception=True)285 security_group_data = self._from_body(body, 'security_group')286 group_name = security_group_data.get('name', None)287 group_description = security_group_data.get('description', None)288 with translate_exceptions():289 self.security_group_api.validate_property(group_name, 'name', None)290 self.security_group_api.validate_property(group_description,291 'description', None)292 group_ref = self.security_group_api.update_security_group(293 context, security_group, group_name, group_description)294 return {'security_group': self._format_security_group(context,295 group_ref)}296class SecurityGroupRulesController(SecurityGroupControllerBase):297 @wsgi.serializers(xml=SecurityGroupRuleTemplate)298 @wsgi.deserializers(xml=SecurityGroupRulesXMLDeserializer)299 def create(self, req, body):300 context = _authorize_context(req)301 sg_rule = self._from_body(body, 'security_group_rule')302 with translate_exceptions():303 parent_group_id = self.security_group_api.validate_id(304 sg_rule.get('parent_group_id', None))305 security_group = self.security_group_api.get(context, None,306 parent_group_id,307 map_exception=True)308 try:309 new_rule = self._rule_args_to_dict(context,310 to_port=sg_rule.get('to_port'),311 from_port=sg_rule.get('from_port'),312 ip_protocol=sg_rule.get('ip_protocol'),313 cidr=sg_rule.get('cidr'),314 group_id=sg_rule.get('group_id'))315 except Exception as exp:316 raise exc.HTTPBadRequest(explanation=unicode(exp))317 if new_rule is None:318 msg = _("Not enough parameters to build a valid rule.")319 raise exc.HTTPBadRequest(explanation=msg)320 new_rule['parent_group_id'] = security_group['id']321 if 'cidr' in new_rule:322 net, prefixlen = netutils.get_net_and_prefixlen(new_rule['cidr'])323 if net not in ('0.0.0.0', '::') and prefixlen == '0':324 msg = _("Bad prefix for network in cidr %s") % new_rule['cidr']325 raise exc.HTTPBadRequest(explanation=msg)326 group_rule_data = None327 with translate_exceptions():328 if sg_rule.get('group_id'):329 source_group = self.security_group_api.get(330 context, id=sg_rule['group_id'])331 group_rule_data = {'name': source_group.get('name'),332 'tenant_id': source_group.get('project_id')}333 security_group_rule = (334 self.security_group_api.create_security_group_rule(335 context, security_group, new_rule))336 formatted_rule = self._format_security_group_rule(context,337 security_group_rule,338 group_rule_data)339 return {"security_group_rule": formatted_rule}340 def _rule_args_to_dict(self, context, to_port=None, from_port=None,341 ip_protocol=None, cidr=None, group_id=None):342 if group_id is not None:343 group_id = self.security_group_api.validate_id(group_id)344 # check if groupId exists345 self.security_group_api.get(context, id=group_id)346 return self.security_group_api.new_group_ingress_rule(347 group_id, ip_protocol, from_port, to_port)348 else:349 cidr = self.security_group_api.parse_cidr(cidr)350 return self.security_group_api.new_cidr_ingress_rule(351 cidr, ip_protocol, from_port, to_port)352 def delete(self, req, id):353 context = _authorize_context(req)354 with translate_exceptions():355 id = self.security_group_api.validate_id(id)356 rule = self.security_group_api.get_rule(context, id)357 group_id = rule['parent_group_id']358 security_group = self.security_group_api.get(context, None,359 group_id,360 map_exception=True)361 self.security_group_api.remove_rules(context, security_group,362 [rule['id']])363 return webob.Response(status_int=202)364class ServerSecurityGroupController(SecurityGroupControllerBase):365 @wsgi.serializers(xml=SecurityGroupsTemplate)366 def index(self, req, server_id):367 """Returns a list of security groups for the given instance."""368 context = _authorize_context(req)369 self.security_group_api.ensure_default(context)370 with translate_exceptions():371 instance = self.compute_api.get(context, server_id)372 groups = self.security_group_api.get_instance_security_groups(373 context, instance['uuid'], True)374 result = [self._format_security_group(context, group)375 for group in groups]376 return {'security_groups':377 list(sorted(result,378 key=lambda k: (k['tenant_id'], k['name'])))}379class SecurityGroupActionController(wsgi.Controller):380 def __init__(self, *args, **kwargs):381 super(SecurityGroupActionController, self).__init__(*args, **kwargs)382 self.security_group_api = (383 openstack_driver.get_openstack_security_group_driver())384 self.compute_api = compute.API(385 security_group_api=self.security_group_api)386 def _parse(self, body, action):387 try:388 body = body[action]389 group_name = body['name']390 except TypeError:391 msg = _("Missing parameter dict")392 raise webob.exc.HTTPBadRequest(explanation=msg)393 except KeyError:394 msg = _("Security group not specified")395 raise webob.exc.HTTPBadRequest(explanation=msg)396 if not group_name or group_name.strip() == '':397 msg = _("Security group name cannot be empty")398 raise webob.exc.HTTPBadRequest(explanation=msg)399 return group_name400 def _invoke(self, method, context, id, group_name):401 with translate_exceptions():402 instance = self.compute_api.get(context, id)403 method(context, instance, group_name)404 return webob.Response(status_int=202)405 @wsgi.action('addSecurityGroup')406 def _addSecurityGroup(self, req, id, body):407 context = req.environ['nova.context']408 authorize(context)409 group_name = self._parse(body, 'addSecurityGroup')410 return self._invoke(self.security_group_api.add_to_instance,411 context, id, group_name)412 @wsgi.action('removeSecurityGroup')413 def _removeSecurityGroup(self, req, id, body):414 context = req.environ['nova.context']415 authorize(context)416 group_name = self._parse(body, 'removeSecurityGroup')417 return self._invoke(self.security_group_api.remove_from_instance,418 context, id, group_name)419class SecurityGroupsOutputController(wsgi.Controller):420 def __init__(self, *args, **kwargs):421 super(SecurityGroupsOutputController, self).__init__(*args, **kwargs)422 self.compute_api = compute.API()423 self.security_group_api = (424 openstack_driver.get_openstack_security_group_driver())425 def _extend_servers(self, req, servers):426 # TODO(arosen) this function should be refactored to reduce duplicate427 # code and use get_instance_security_groups instead of get_db_instance.428 if not len(servers):429 return430 key = "security_groups"431 context = _authorize_context(req)432 if not openstack_driver.is_neutron_security_groups():433 for server in servers:434 instance = req.get_db_instance(server['id'])435 groups = instance.get(key)436 if groups:437 server[key] = [{"name": group["name"]} for group in groups]438 else:439 # If method is a POST we get the security groups intended for an440 # instance from the request. The reason for this is if using441 # neutron security groups the requested security groups for the442 # instance are not in the db and have not been sent to neutron yet.443 if req.method != 'POST':444 sg_instance_bindings = (445 self.security_group_api446 .get_instances_security_groups_bindings(context,447 servers))448 for server in servers:449 groups = sg_instance_bindings.get(server['id'])450 if groups:451 server[key] = groups452 # In this section of code len(servers) == 1 as you can only POST453 # one server in an API request.454 else:455 try:456 # try converting to json457 req_obj = jsonutils.loads(req.body)458 # Add security group to server, if no security group was in459 # request add default since that is the group it is part of460 servers[0][key] = req_obj['server'].get(461 key, [{'name': 'default'}])462 except ValueError:463 root = xmlutils.safe_minidom_parse_string(req.body)464 sg_root = root.getElementsByTagName(key)465 groups = []466 if sg_root:467 security_groups = sg_root[0].getElementsByTagName(468 'security_group')469 for security_group in security_groups:470 groups.append(471 {'name': security_group.getAttribute('name')})472 if not groups:473 groups = [{'name': 'default'}]474 servers[0][key] = groups475 def _show(self, req, resp_obj):476 if not softauth(req.environ['nova.context']):477 return478 if 'server' in resp_obj.obj:479 resp_obj.attach(xml=SecurityGroupServerTemplate())480 self._extend_servers(req, [resp_obj.obj['server']])481 @wsgi.extends482 def show(self, req, resp_obj, id):483 return self._show(req, resp_obj)484 @wsgi.extends485 def create(self, req, resp_obj, body):486 return self._show(req, resp_obj)487 @wsgi.extends488 def detail(self, req, resp_obj):489 if not softauth(req.environ['nova.context']):490 return491 resp_obj.attach(xml=SecurityGroupServersTemplate())492 self._extend_servers(req, list(resp_obj.obj['servers']))493class SecurityGroupsTemplateElement(xmlutil.TemplateElement):494 def will_render(self, datum):495 return "security_groups" in datum496def make_server(elem):497 secgrps = SecurityGroupsTemplateElement('security_groups')498 elem.append(secgrps)499 secgrp = xmlutil.SubTemplateElement(secgrps, 'security_group',500 selector="security_groups")501 secgrp.set('name')502class SecurityGroupServerTemplate(xmlutil.TemplateBuilder):503 def construct(self):504 root = xmlutil.TemplateElement('server')505 make_server(root)506 return xmlutil.SlaveTemplate(root, 1)507class SecurityGroupServersTemplate(xmlutil.TemplateBuilder):508 def construct(self):509 root = xmlutil.TemplateElement('servers')510 elem = xmlutil.SubTemplateElement(root, 'server', selector='servers')511 make_server(elem)512 return xmlutil.SlaveTemplate(root, 1)513class Security_groups(extensions.ExtensionDescriptor):514 """Security group support."""515 name = "SecurityGroups"516 alias = "os-security-groups"517 namespace = "http://docs.openstack.org/compute/ext/securitygroups/api/v1.1"518 updated = "2013-05-28T00:00:00Z"519 def get_controller_extensions(self):520 controller = SecurityGroupActionController()521 actions = extensions.ControllerExtension(self, 'servers', controller)522 controller = SecurityGroupsOutputController()523 output = extensions.ControllerExtension(self, 'servers', controller)524 return [actions, output]525 def get_resources(self):526 resources = []527 res = extensions.ResourceExtension('os-security-groups',528 controller=SecurityGroupController())529 resources.append(res)530 res = extensions.ResourceExtension('os-security-group-rules',531 controller=SecurityGroupRulesController())532 resources.append(res)533 res = extensions.ResourceExtension(534 'os-security-groups',535 controller=ServerSecurityGroupController(),536 parent=dict(member_name='server', collection_name='servers'))537 resources.append(res)538 return resources539class NativeSecurityGroupExceptions(object):540 @staticmethod541 def raise_invalid_property(msg):542 raise exception.Invalid(msg)543 @staticmethod544 def raise_group_already_exists(msg):545 raise exception.Invalid(msg)546 @staticmethod547 def raise_invalid_group(msg):548 raise exception.Invalid(msg)549 @staticmethod550 def raise_invalid_cidr(cidr, decoding_exception=None):551 raise exception.InvalidCidr(cidr=cidr)552 @staticmethod553 def raise_over_quota(msg):554 raise exception.SecurityGroupLimitExceeded(msg)555 @staticmethod556 def raise_not_found(msg):557 raise exception.SecurityGroupNotFound(msg)558class NativeNovaSecurityGroupAPI(NativeSecurityGroupExceptions,559 compute_api.SecurityGroupAPI):560 pass561class NativeNeutronSecurityGroupAPI(NativeSecurityGroupExceptions,...
ec2_group.py
Source:ec2_group.py
...204 else:205 if not rule.get('group_desc', '').strip():206 module.fail_json(msg="group %s will be automatically created by rule %s and no description was provided" % (group_name, rule))207 if not module.check_mode:208 auto_group = ec2.create_security_group(group_name, rule['group_desc'], vpc_id=vpc_id)209 group_id = auto_group.id210 groups[group_id] = auto_group211 groups[group_name] = auto_group212 target_group_created = True213 elif 'cidr_ip' in rule:214 ip = rule['cidr_ip']215 return group_id, ip, target_group_created216def main():217 argument_spec = ec2_argument_spec()218 argument_spec.update(dict(219 name=dict(type='str', required=True),220 description=dict(type='str', required=False),221 vpc_id=dict(type='str'),222 rules=dict(type='list'),223 rules_egress=dict(type='list'),224 state = dict(default='present', type='str', choices=['present', 'absent']),225 purge_rules=dict(default=True, required=False, type='bool'),226 purge_rules_egress=dict(default=True, required=False, type='bool'),227 )228 )229 module = AnsibleModule(230 argument_spec=argument_spec,231 supports_check_mode=True,232 )233 if not HAS_BOTO:234 module.fail_json(msg='boto required for this module')235 name = module.params['name']236 description = module.params['description']237 vpc_id = module.params['vpc_id']238 rules = module.params['rules']239 rules_egress = module.params['rules_egress']240 state = module.params.get('state')241 purge_rules = module.params['purge_rules']242 purge_rules_egress = module.params['purge_rules_egress']243 if state == 'present' and not description:244 module.fail_json(msg='Must provide description when state is present.')245 changed = False246 ec2 = ec2_connect(module)247 # find the group if present248 group = None249 groups = {}250 for curGroup in ec2.get_all_security_groups():251 groups[curGroup.id] = curGroup252 if curGroup.name in groups:253 # Prioritise groups from the current VPC254 if vpc_id is None or curGroup.vpc_id == vpc_id:255 groups[curGroup.name] = curGroup256 else:257 groups[curGroup.name] = curGroup258 if curGroup.name == name and (vpc_id is None or curGroup.vpc_id == vpc_id):259 group = curGroup260 # Ensure requested group is absent261 if state == 'absent':262 if group:263 '''found a match, delete it'''264 try:265 if not module.check_mode:266 group.delete()267 except Exception as e:268 module.fail_json(msg="Unable to delete security group '%s' - %s" % (group, e))269 else:270 group = None271 changed = True272 else:273 '''no match found, no changes required'''274 # Ensure requested group is present275 elif state == 'present':276 if group:277 '''existing group found'''278 # check the group parameters are correct279 group_in_use = False280 rs = ec2.get_all_instances()281 for r in rs:282 for i in r.instances:283 group_in_use |= reduce(lambda x, y: x | (y.name == 'public-ssh'), i.groups, False)284 if group.description != description:285 if group_in_use:286 module.fail_json(msg="Group description does not match, but it is in use so cannot be changed.")287 # if the group doesn't exist, create it now288 else:289 '''no match found, create it'''290 if not module.check_mode:291 group = ec2.create_security_group(name, description, vpc_id=vpc_id)292 # When a group is created, an egress_rule ALLOW ALL293 # to 0.0.0.0/0 is added automatically but it's not294 # reflected in the object returned by the AWS API295 # call. We re-read the group for getting an updated object296 # amazon sometimes takes a couple seconds to update the security group so wait till it exists297 while len(ec2.get_all_security_groups(filters={ 'group_id': group.id, })) == 0:298 time.sleep(0.1)299 group = ec2.get_all_security_groups(group_ids=(group.id,))[0]300 changed = True301 else:302 module.fail_json(msg="Unsupported state requested: %s" % state)303 # create a lookup for all existing rules on the group304 if group:305 # Manage ingress rules...
course_util.py
Source:course_util.py
...123 except Exception as e:124 logger.info('that we can\'t find this information from this model {}'.format(modelclass))125 raise exceptions.NotFound(CourseResError.NOT_FOUND_JSTREE)126 return course_instance127def _new_group(user_ids):128 group = {129 'users': user_ids,130 }131 return group132def check_class_groups(classes, groups):133 user_ids = []134 for group in groups:135 user_ids.extend(group['users'])136 real_user_ids = [user.id for user in classes.user_set.exclude(status=User.USER.DELETE).filter(groups=GroupType.USER)]137 if (set(user_ids) - set(real_user_ids)) or (set(real_user_ids) - set(user_ids)):138 return False139 return True140def get_class_group_info(classes, groups):141 users = classes.user_set.exclude(status=User.USER.DELETE).filter(groups=GroupType.USER)142 user_dict = {user.id: user for user in users}143 group_infos = []144 for group in groups:145 group_info = {}146 group_user_ids = group['users']147 user_list = []148 for user_id in group_user_ids:149 user = user_dict.pop(user_id, None)150 if user:151 user_list.append({152 'id': user.id,153 'name': user.first_name or user.username,154 })155 group_info['users'] = user_list156 group_infos.append(group_info)157 if user_dict:158 group_changed = True159 group_user_len = sum([len(group['users']) for group in groups])160 avg_len = int(math.ceil(group_user_len * 1.0 / len(groups))) if groups else 0161 extra_user_ids = user_dict.keys()162 index = 0163 while extra_user_ids[index: index + avg_len]:164 group_user_ids = extra_user_ids[index: index + avg_len]165 group = _new_group(group_user_ids)166 groups.append(group)167 user_list = []168 for user_id in group_user_ids:169 user = user_dict.pop(user_id, None)170 if user:171 user_list.append({172 'id': user.id,173 'name': user.first_name or user.username,174 })175 group_infos.append({176 'users': user_list177 })178 index = index + avg_len179 else:180 group_changed = False181 return {182 'group_changed': group_changed,183 'groups': groups,184 'group_infos': group_infos,185 }186def get_class_group_env_info(class_group):187 classes = class_group.classroom.classes188 groups = json.loads(class_group.groups)189 info_ret = get_class_group_info(classes, groups)190 groups = info_ret['groups']191 group_infos = info_ret['group_infos']192 group_changed = info_ret['group_changed']193 group_lesson_envs = class_group.classroom.lesson.envs.filter(type=LessonEnv.Type.GROUP)194 lesson_env_ids = []195 group_keys = []196 for i, group_info in enumerate(group_infos):197 group = groups[i]198 if 'key' not in group:199 group_changed = True200 group_key = group.setdefault('key', generate_unique_key())201 group_keys.append(group_key)202 lesson_env_id = group.get('lesson_env')203 if lesson_env_id:204 lesson_env_ids.append(lesson_env_id)205 group_info['key'] = group_key206 lesson_env_map = {lesson_env.id: lesson_env for lesson_env in group_lesson_envs.filter(pk__in=lesson_env_ids)}207 group_wait_map = {wait.extra: wait for wait in class_group.waits.filter(extra__in=group_keys)}208 for i, group_info in enumerate(group_infos):209 group = groups[i]210 wait = group_wait_map.get(group_info['key'])211 if wait:212 group_info['wait'] = get_executor_info(instance=wait)213 lesson_env_id = group.get('lesson_env')214 if lesson_env_id:215 group_lesson_env = lesson_env_map.get(lesson_env_id)216 if group_lesson_env:217 estimate_consume_time = Getter.get_estimate_env_consume_time(group_lesson_env.env.json_config)218 loaded_seconds, remain_seconds = Getter.get_estimate_remain_seconds(group_lesson_env.env.create_time,219 estimate_consume_time)220 group_info['env'] = {221 'status': group_lesson_env.env.status,222 'error': group_lesson_env.env.error,223 'loaded_seconds': loaded_seconds,224 'estimate_consume_time': estimate_consume_time,225 }226 if group_changed:227 class_group.groups = json.dumps(groups)228 class_group.save()229 return group_infos230def create_default_class_group_info(classroom):231 users = classroom.classes.user_set.exclude(status=User.USER.DELETE).filter(groups=GroupType.USER)232 groups = [_new_group([user.id]) for user in users]233 return ClassroomGroupInfo.objects.create(234 classroom=classroom,235 groups=json.dumps(groups),236 )237def update_class_group_info(classroom_group_info, groups):238 from ..widgets.env.error import error239 old_groups = json.loads(classroom_group_info.groups)240 for group in old_groups:241 lesson_env_id = group.get('lesson_env')242 if lesson_env_id:243 using_status = Env.ActiveStatusList244 lesson_env = LessonEnv.objects.filter(pk=lesson_env_id).first()245 if lesson_env and lesson_env.env and lesson_env.env.status in using_status:246 raise exceptions.PermissionDenied(error.NO_PERMISSION)247 if not check_class_groups(classroom_group_info.classroom.classes, groups):248 raise exceptions.PermissionDenied(error.NO_PERMISSION)249 for group in groups:250 group['key'] = generate_unique_key()251 group['lesson_env'] = None252 classroom_group_info.groups = json.dumps(groups)253 classroom_group_info.save()254 return classroom_group_info255def create_group_env(user_id, class_group_id, group_key):256 from ..widgets.env.error import error257 try:258 user = User.objects.get(pk=user_id)259 except User.DoesNotExist as e:260 raise exceptions.PermissionDenied(error.NO_PERMISSION)261 try:262 class_room_group_info = ClassroomGroupInfo.objects.get(pk=class_group_id)263 except Exception as e:264 raise exceptions.PermissionDenied(error.NO_PERMISSION)265 groups = json.loads(class_room_group_info.groups)266 group_dict = {group['key']: group for group in groups}267 if group_key not in group_dict:268 raise exceptions.PermissionDenied(error.NO_PERMISSION)269 group = group_dict[group_key]270 lesson_env_id = group.get('lesson_env')271 if lesson_env_id:272 using_status = Env.ActiveStatusList273 lesson_env = LessonEnv.objects.filter(pk=lesson_env_id).first()274 if lesson_env and lesson_env.env and lesson_env.env.status in using_status:275 raise exceptions.PermissionDenied(error.NO_PERMISSION)276 lesson = class_room_group_info.classroom.lesson277 executor = get_create_group_env_executor(user_id, class_group_id, group_key)278 try:279 env_handler = EnvHandler(user, executor=executor)280 except MsgException as e:281 raise exceptions.NotFound(e.message)282 try:283 lesson_env = env_handler.create(lesson, group_users=group['users'])284 except MsgException as e:285 raise exceptions.PermissionDenied(e.message)286 except PoolFullException as e:287 class_room_group_info.waits.add(e.executor_instance)288 raise e289 except Exception as e:290 logger.error('create lessonenv error[lesson_hash=%s, user_id=%s]: %s' % (lesson.id, user.id, e))291 raise exceptions.APIException(error.CREATE_LESSON_ENV_ERROR)292 group['lesson_env'] = lesson_env.id293 class_room_group_info.groups = json.dumps(groups)294 class_room_group_info.save()295 return lesson_env296def get_create_group_env_executor(user_id, class_group_id, group_key):297 executor = {298 'func': create_group_env,299 'params': {300 'user_id': user_id,301 'class_group_id': class_group_id,302 'group_key': group_key,303 },304 'extra': group_key,305 }306 return executor307def delete_group_env(class_room_group_info, group_key):308 groups = json.loads(class_room_group_info.groups)309 group_dict = {group['key']: group for group in groups}310 if group_key not in group_dict:311 raise exceptions.PermissionDenied()312 group = group_dict[group_key]313 lesson_env_id = group.get('lesson_env')314 if lesson_env_id:315 can_delete_status = Env.UseStatusList316 lesson_env = LessonEnv.objects.filter(pk=lesson_env_id).first()317 if lesson_env and lesson_env.env and lesson_env.env.status in can_delete_status:318 admin_delete_env(lesson_env.env)319 # å é¤éå320 class_room_group_info.waits.filter(extra=group_key).delete()321def leave_group(user_id, group):322 from ..widgets.env.error import error323 group_users = group['users']324 if user_id not in group_users:325 return False326 group_users.remove(user_id)327 lesson_env_id = group.get('lesson_env')328 if lesson_env_id:329 if LessonEnv.objects.filter(pk=lesson_env_id, env__status__in=Env.ActiveStatusList).exists():330 raise exceptions.PermissionDenied(error.NO_PERMISSION)331 # lesson_env = LessonEnv.objects.filter(pk=lesson_env_id).first()332 # if lesson_env:333 # lesson_env.group_users.remove(user_id)334 return True335def enter_group(user_id, group):336 from ..widgets.env.error import error337 group_users = group['users']338 if user_id in group_users:339 return False340 group_users.append(user_id)341 lesson_env_id = group.get('lesson_env')342 if lesson_env_id:343 if LessonEnv.objects.filter(pk=lesson_env_id, env__status__in=Env.ActiveStatusList).exists():344 raise exceptions.PermissionDenied(error.NO_PERMISSION)345 # lesson_env = LessonEnv.objects.filter(pk=lesson_env_id).first()346 # if lesson_env:347 # lesson_env.group_users.add(user_id)348 return True349def transfer_group_user(class_room_group_info, user_id, from_group_key, to_group_key):350 from ..widgets.env.error import error351 groups = json.loads(class_room_group_info.groups)352 group_dict = {group['key']: group for group in groups}353 if from_group_key not in group_dict or to_group_key not in group_dict:354 raise exceptions.PermissionDenied(error.NO_PERMISSION)355 from_group = group_dict[from_group_key]356 leave_flag = leave_group(user_id, from_group)357 to_group = group_dict[to_group_key]358 enter_flag = enter_group(user_id, to_group)359 if leave_flag or enter_flag:360 class_room_group_info.groups = json.dumps(groups)361 class_room_group_info.save()362def add_experiment_time(user, lesson, seconds):363 try:364 if CourseUserStat.objects.filter(user=user, lesson=lesson).exists():365 CourseUserStat.objects.filter(user=user, lesson=lesson).update(366 experiment_seconds=F('experiment_seconds') + seconds,367 experiment_update_time=timezone.now(),368 )369 else:370 CourseUserStat.objects.create(371 user=user,372 lesson=lesson,...
navtreeindex2.js
Source:navtreeindex2.js
1var NAVTREEINDEX2 =2{3"group__group-_iterable.html#ga5332fd1dd82edf08379958ba21d57a87":[1,0,9,7],4"group__group-_iterable.html#ga8a484304380eae38f3d9663d98860129":[1,0,9,0],5"group__group-_iterable.html#ga8a67ea10e8082dbe6705e573fa978444":[1,0,9,6],6"group__group-_iterable.html#ga9f1d02c74a6bdc1db260e0d6a8f1ee56":[1,0,9,5],7"group__group-_iterable.html#gab3f4d0035345a453284e46303862d463":[1,0,9,2],8"group__group-_iterable.html#gad23ce0a4906e2bb0a52f38837b134757":[1,0,9,3],9"group__group-_logical.html":[1,0,10],10"group__group-_logical.html#ga08a767b86c330cac67daa891406d2730":[1,0,10,5],11"group__group-_logical.html#ga14066f5672867c123524e0e0978069eb":[1,0,10,0],12"group__group-_logical.html#ga4a7c9d7037601d5e553fd20777958980":[1,0,10,3],13"group__group-_logical.html#ga68c00efbeb69339bfa157a78ebdd3f87":[1,0,10,4],14"group__group-_logical.html#gab64636f84de983575aac0208f5fa840c":[1,0,10,1],15"group__group-_logical.html#gafd655d2222367131e7a63616e93dd080":[1,0,10,2],16"group__group-_metafunction.html":[1,0,11],17"group__group-_metafunction.html#ga246419f6c3263b648412f346106e6543":[1,0,11,0],18"group__group-_metafunction.html#ga6d4093318f46472e62f9539a4dc998a9":[1,0,11,4],19"group__group-_metafunction.html#gaaa4f85cb8cbce21f5c04ef40ca35cc6a":[1,0,11,1],20"group__group-_metafunction.html#gacec153d7f86aa7cf1efd813b3fd212b4":[1,0,11,2],21"group__group-_metafunction.html#gaf7045fe6a627f88f5f646dad22d37aae":[1,0,11,3],22"group__group-_monad.html":[1,0,12],23"group__group-_monad.html#ga5e0735de01a24f681c55aedfeb6d13bf":[1,0,12,0],24"group__group-_monad.html#gaaddd3789de43cf989babb10cdc0b447a":[1,0,12,1],25"group__group-_monad_plus.html":[1,0,13],26"group__group-_monad_plus.html#ga08624924fe05f0cfbfbd6e439db01873":[1,0,13,0],27"group__group-_monad_plus.html#ga1946e96c3b4c178c7ae8703724c29c37":[1,0,13,1],28"group__group-_monad_plus.html#ga3022fdfe454dc9bc1f79b5dfeba13b5e":[1,0,13,5],29"group__group-_monad_plus.html#ga5ee54dc1195f9e5cf48bfd51ba231ae5":[1,0,13,7],30"group__group-_monad_plus.html#ga61dab15f6ecf379121d4096fe0c8ab13":[1,0,13,9],31"group__group-_monad_plus.html#ga65cc6d9f522fb9e8e3b28d80ee5c822a":[1,0,13,4],32"group__group-_monad_plus.html#ga69afbfd4e91125e3e52fcb409135ca7c":[1,0,13,6],33"group__group-_monad_plus.html#gaa6be1e83ad72b9d69b43b4bada0f3a75":[1,0,13,3],34"group__group-_monad_plus.html#gaaf46c168f721da9effcc7336a997f5d6":[1,0,13,2],35"group__group-_monad_plus.html#gad5f48c79d11923d6c1d70b18b7dd3f19":[1,0,13,8],36"group__group-_monoid.html":[1,0,14],37"group__group-_monoid.html#gad459ac17b6bab8ead1cae7de0032f3c6":[1,0,14,1],38"group__group-_monoid.html#gaeb5d4a1e967e319712f9e4791948896c":[1,0,14,0],39"group__group-_orderable.html":[1,0,15],40"group__group-_orderable.html#ga2d54f189ea6f57fb2c0d772169440c5c":[1,0,15,5],41"group__group-_orderable.html#ga6023631e7d0a01e16dc3fa4221fbd703":[1,0,15,1],42"group__group-_orderable.html#ga9917dd82beb67151bf5657245d37b851":[1,0,15,3],43"group__group-_orderable.html#ga999eee8ca8750f9b1afa0d7a1db28030":[1,0,15,4],44"group__group-_orderable.html#gad510011602bdb14686f1c4ec145301c9":[1,0,15,2],45"group__group-_orderable.html#gaf7e94ba859710cd6ba6152e5dc18977d":[1,0,15,6],46"group__group-_orderable.html#gaf9a073eafebbe514fb19dff82318f198":[1,0,15,0],47"group__group-_product.html":[1,0,16],48"group__group-_product.html#ga34bbf4281de06dc3540441e8b2bd24f4":[1,0,16,0],49"group__group-_product.html#ga7bb979d59ffc3ab862cb7d9dc7730077":[1,0,16,1],50"group__group-_ring.html":[1,0,17],51"group__group-_ring.html#ga052d31c269a6a438cc8004c9ad1efdfa":[1,0,17,0],52"group__group-_ring.html#ga0ee3cff9ec646bcc7217f00ee6099b72":[1,0,17,2],53"group__group-_ring.html#gadea531feb3b0a1c5c3d777f7ab45e932":[1,0,17,1],54"group__group-_searchable.html":[1,0,18],55"group__group-_searchable.html#ga0d9456ceda38b6ca664998e79d7c45b7":[1,0,18,6],56"group__group-_searchable.html#ga38e7748956cbc9f3d9bb035ac8577906":[1,0,18,5],57"group__group-_searchable.html#ga3a168950082f38afd9edf256f336c8ba":[1,0,18,1],58"group__group-_searchable.html#ga3b8269d4f5cdd6dd549fae32280795a0":[1,0,18,9],59"group__group-_searchable.html#ga3c1826aee6c6eb577810bb99c5c3e53d":[1,0,18,4],60"group__group-_searchable.html#ga43954c791b5b1351fb009e2a643d00f5":[1,0,18,12],61"group__group-_searchable.html#ga5f7ff0125c448983e1b96c3ffb84f646":[1,0,18,3],62"group__group-_searchable.html#ga614ff1e575806f59246b17006e19d479":[1,0,18,11],63"group__group-_searchable.html#ga6b6cdd69942b0fe3bf5254247f9c861e":[1,0,18,7],64"group__group-_searchable.html#ga7f99b80672aa80a7eb8b223955ce546f":[1,0,18,8],65"group__group-_searchable.html#ga81ae9764dd7818ad36270c6419fb1082":[1,0,18,0],66"group__group-_searchable.html#gab7d632b9319b10b1eb7e98f9e1cf8a28":[1,0,18,2],67"group__group-_searchable.html#gadccfc79f1acdd8043d2baa16df16ec9f":[1,0,18,10],68"group__group-_sequence.html":[1,0,19],69"group__group-_sequence.html#ga245d8abaf6ba67e64020be51c8366081":[1,0,19,12],70"group__group-_sequence.html#ga28037560e8f224c53cf6ac168d03a067":[1,0,19,9],71"group__group-_sequence.html#ga2d4db4ec5ec5bc16fe74f57de12697fd":[1,0,19,18],72"group__group-_sequence.html#ga3410ba833cf1ff1d929fcfda4df2eae1":[1,0,19,2],73"group__group-_sequence.html#ga3779f62fea92af00113a9290f1c680eb":[1,0,19,17],74"group__group-_sequence.html#ga4696efcdee7d95ab4a391bb896a840b5":[1,0,19,8],75"group__group-_sequence.html#ga5112e6070d29b4f7fde3f44825da3316":[1,0,19,16],76"group__group-_sequence.html#ga54d141f901866dfab29b052857123bab":[1,0,19,11],77"group__group-_sequence.html#ga6a4bf8549ce69b5b5b7377aec225a0e3":[1,0,19,22],78"group__group-_sequence.html#ga6f6d5c1f335780c91d29626fde615c78":[1,0,19,7],79"group__group-_sequence.html#ga80724ec8ecf319a1e695988a69e22f87":[1,0,19,5],80"group__group-_sequence.html#ga8d302de01b94b4b17f3bd81e09f42920":[1,0,19,14],81"group__group-_sequence.html#gaa18061cd0f63cfaae89abf43ff92b79e":[1,0,19,3],82"group__group-_sequence.html#gaa4d4818952083e3b27c83b0ed645e322":[1,0,19,15],83"group__group-_sequence.html#gaa5a378d4e71a91e0d6cd3959d9818e8a":[1,0,19,19],84"group__group-_sequence.html#gac10231310abc86b056585ea0d0e96ef7":[1,0,19,0],85"group__group-_sequence.html#gac1e182ac088f1990edd739424d30ea07":[1,0,19,4],86"group__group-_sequence.html#gade78593b3ff51fc5479e1da97142fef5":[1,0,19,20],87"group__group-_sequence.html#gae1f6a2a9cb70564d43c6b3c663b25dd7":[1,0,19,13],88"group__group-_sequence.html#gae22a1a184b1b2dd550fa4fa619bed2e9":[1,0,19,1],89"group__group-_sequence.html#gae70b0815645c7d81bb636a1eed1a65c6":[1,0,19,6],90"group__group-_sequence.html#gae7a51104a77db79a0407d7d67b034667":[1,0,19,21],91"group__group-_sequence.html#gaec484fb349500149d90717f6e68f7bcd":[1,0,19,10],92"group__group-_struct.html":[1,0,20],93"group__group-_struct.html#ga141761435a7826b3cbe646b4f59eaf0a":[1,0,20,0],94"group__group-_struct.html#ga983a55dbd93d766fd37689ea32e4ddfb":[1,0,20,3],95"group__group-_struct.html#gab9efb238a82207d91643994c5295cf8c":[1,0,20,2],96"group__group-_struct.html#gaba3b4d2cf342bfca773e90fc20bfae91":[1,0,20,1],97"group__group-_struct.html#gad301dd8e9fb4639d7874619c97d6d427":[1,0,20,5],98"group__group-_struct.html#gaf8c7199742581e6e66c8397def68e2d3":[1,0,20,4],99"group__group-assertions.html":[1,7],100"group__group-assertions.html#ga046d7ee458de8da63812fe2f059c0a4d":[1,7,6],101"group__group-assertions.html#ga046d7ee458de8da63812fe2f059c0a4d":[3,0,0,19,6],102"group__group-assertions.html#ga0a1327b758604bf330efeba450dd4a95":[1,7,7],103"group__group-assertions.html#ga0a1327b758604bf330efeba450dd4a95":[3,0,0,19,7],104"group__group-assertions.html#ga1d4feb0a2414f9b17249dff3dc441bf4":[1,7,8],105"group__group-assertions.html#ga1d4feb0a2414f9b17249dff3dc441bf4":[3,0,0,19,8],106"group__group-assertions.html#ga2626fa0c92b308cee62ac423ae2dba41":[1,7,2],107"group__group-assertions.html#ga2626fa0c92b308cee62ac423ae2dba41":[3,0,0,19,2],108"group__group-assertions.html#ga2c5006540936d9f8880e3a39f4fcc035":[1,7,11],109"group__group-assertions.html#ga2c5006540936d9f8880e3a39f4fcc035":[3,0,0,19,11],110"group__group-assertions.html#ga2e25bbdeefb0e5fbf45ffa9227ddb8d2":[1,7,1],111"group__group-assertions.html#ga2e25bbdeefb0e5fbf45ffa9227ddb8d2":[3,0,0,19,1],112"group__group-assertions.html#ga3faec2cf9e803f4fe5537fe1831e82ce":[1,7,10],113"group__group-assertions.html#ga3faec2cf9e803f4fe5537fe1831e82ce":[3,0,0,19,10],114"group__group-assertions.html#ga4796ae107d58b67e0bbccd5ae6f70101":[1,7,9],115"group__group-assertions.html#ga4796ae107d58b67e0bbccd5ae6f70101":[3,0,0,19,9],116"group__group-assertions.html#ga90c1df2cb8eb67e8e0c822eac180b7bc":[1,7,4],117"group__group-assertions.html#ga90c1df2cb8eb67e8e0c822eac180b7bc":[3,0,0,19,4],118"group__group-assertions.html#ga932876152d7f87b6b24077322a2e4139":[1,7,13],119"group__group-assertions.html#ga932876152d7f87b6b24077322a2e4139":[3,0,0,19,13],120"group__group-assertions.html#ga9961218055c571b279bb6e07befbba4d":[3,0,0,19,3],121"group__group-assertions.html#ga9961218055c571b279bb6e07befbba4d":[1,7,3],122"group__group-assertions.html#gaa7690973ea7b2ba5b6a72a6293fce873":[1,7,5],123"group__group-assertions.html#gaa7690973ea7b2ba5b6a72a6293fce873":[3,0,0,19,5],124"group__group-assertions.html#gabf13a9c600ad4fd014ede3c2fd42b1a4":[3,0,0,19,14],125"group__group-assertions.html#gabf13a9c600ad4fd014ede3c2fd42b1a4":[1,7,14],126"group__group-assertions.html#gac7aafc41e4dcc7d1f1929fb00f010d2a":[3,0,0,19,15],127"group__group-assertions.html#gac7aafc41e4dcc7d1f1929fb00f010d2a":[1,7,15],128"group__group-assertions.html#gad4134ab51e9f2e5d41595ef40d4d0c5b":[1,7,12],129"group__group-assertions.html#gad4134ab51e9f2e5d41595ef40d4d0c5b":[3,0,0,19,12],130"group__group-assertions.html#gae4eb14a3b31e44f433b080d9bc2d14fd":[1,7,0],131"group__group-assertions.html#gae4eb14a3b31e44f433b080d9bc2d14fd":[3,0,0,19,0],132"group__group-concepts.html":[1,0],133"group__group-config.html":[1,6],134"group__group-config.html#ga08dcc32bef198420e646244e851d1995":[1,6,0],135"group__group-config.html#ga08dcc32bef198420e646244e851d1995":[3,0,0,30,0],136"group__group-config.html#ga2fb384037c12a706e1a1cac053065648":[1,6,7],137"group__group-config.html#ga2fb384037c12a706e1a1cac053065648":[3,0,0,152,4],138"group__group-config.html#ga50940f9267eacd0da0d4d8ccbfac8817":[3,0,0,152,3],139"group__group-config.html#ga50940f9267eacd0da0d4d8ccbfac8817":[1,6,6],140"group__group-config.html#ga81de60f5bea16e6ff4a38c94e3022f10":[1,6,2],141"group__group-config.html#ga81de60f5bea16e6ff4a38c94e3022f10":[3,0,0,30,2],142"group__group-config.html#ga95603295cd6cc840c0dbc50b75e02ee9":[1,6,3],143"group__group-config.html#ga95603295cd6cc840c0dbc50b75e02ee9":[3,0,0,30,3],144"group__group-config.html#gac1f8e58978bf4fe02f68ca4646124aee":[3,0,0,152,1],145"group__group-config.html#gac1f8e58978bf4fe02f68ca4646124aee":[1,6,4],146"group__group-config.html#gad2b44f7cf8a6ba1002437a1a89e62acd":[1,6,1],147"group__group-config.html#gad2b44f7cf8a6ba1002437a1a89e62acd":[3,0,0,30,1],148"group__group-config.html#gafd6a702442b280083efe2690da5621bd":[1,6,5],149"group__group-config.html#gafd6a702442b280083efe2690da5621bd":[3,0,0,152,2],150"group__group-core.html":[1,3],151"group__group-core.html#ga0f5d717bbf6646619bb6219b104384dc":[1,3,11],152"group__group-core.html#ga1d92480f0af1029878e773dafa3e2f60":[1,3,14],153"group__group-core.html#ga38cf78e1e3e262f7f1c71ddd9ca70cd9":[1,3,12],154"group__group-core.html#ga4da46c97755c0f430b063711b66ca05b":[1,3,9],155"group__group-core.html#ga686d1236161b5690ab302500077988e1":[1,3,10],156"group__group-core.html#ga7fdbde52f5fe384a816c6f39ff272df9":[1,3,13],157"group__group-core.html#gadc70755c1d059139297814fb3bfeb91e":[1,3,15],158"group__group-datatypes.html":[1,1],159"group__group-details.html":[1,8],160"group__group-details.html#ga1be7a4bd805ffff2882fe54995dc41bd":[3,0,0,2,27,1],161"group__group-details.html#ga1be7a4bd805ffff2882fe54995dc41bd":[1,8,19],162"group__group-details.html#ga444e73a2fe13732b802a770b55b4a99c":[3,0,0,2,25,0],163"group__group-details.html#ga444e73a2fe13732b802a770b55b4a99c":[1,8,14],164"group__group-details.html#ga4bd17b3ef62e1e275dfe485923fdf666":[3,0,0,2,25,3],165"group__group-details.html#ga4bd17b3ef62e1e275dfe485923fdf666":[1,8,17],166"group__group-details.html#ga5de7a0132a80e37c73d544ece1e6dd4e":[3,0,0,2,9,0],167"group__group-details.html#ga5de7a0132a80e37c73d544ece1e6dd4e":[1,8,13],168"group__group-details.html#ga62fe3327023c37706c827cc82624998b":[3,0,0,2,27,0],169"group__group-details.html#ga62fe3327023c37706c827cc82624998b":[1,8,18],170"group__group-details.html#ga6b4ca5cb5cefc6cf77455d7d7ef6f381":[3,0,0,2,25,1],171"group__group-details.html#ga6b4ca5cb5cefc6cf77455d7d7ef6f381":[1,8,15],172"group__group-details.html#ga9acac3c4609cff5f0957572744c61ec4":[1,8,22],173"group__group-details.html#gadcf0cf5cb650681b8cac90d94ce52d44":[3,0,0,2,27,2],174"group__group-details.html#gadcf0cf5cb650681b8cac90d94ce52d44":[1,8,20],175"group__group-details.html#gae85b604ae6c7a386f0fc3631c561091b":[1,8,21],176"group__group-details.html#gaf8319341c937c45415ae0eae8d656723":[3,0,0,2,25,2],177"group__group-details.html#gaf8319341c937c45415ae0eae8d656723":[1,8,16],178"group__group-experimental.html":[1,4],179"group__group-experimental.html#ga660c0769106006a86948b5b355fad050":[1,4,2],180"group__group-experimental.html#gaf14876d1f1a3c42ce7a0243d7b263bec":[1,4,1],181"group__group-ext-boost.html":[1,5,2],182"group__group-ext-fusion.html":[1,5,0],183"group__group-ext-mpl.html":[1,5,1],184"group__group-ext-std.html":[1,5,3],185"group__group-ext.html":[1,5],186"group__group-functional.html":[1,2],187"group__group-functional.html#ga004f884cdbb85c2efe3383c1db450094":[1,2,8],188"group__group-functional.html#ga1393f40da2e8da6e0c12fce953e56a6c":[1,2,7],189"group__group-functional.html#ga30027c383676084be151ef3c6cf2829f":[1,2,1],190"group__group-functional.html#ga35c4fc3c5677b9f558150b90e74d3ab1":[1,2,12],191"group__group-functional.html#ga3b16146e53efcdf9ecbb9a7b21f8cd0b":[1,2,4],192"group__group-functional.html#ga41ada6b336e9d5bcb101ff0c737acbd0":[1,2,3],193"group__group-functional.html#ga49ea872ade5ac8f6c10052c495302e89":[1,2,5],194"group__group-functional.html#ga6acc765a35c4dc85f0deab4785831a3d":[1,2,2],195"group__group-functional.html#ga6e648f0d3fc0209ec024e9d759a5e8f8":[1,2,17],196"group__group-functional.html#ga778b2daa27882e71d28b6f2b38982ddf":[1,2,15],197"group__group-functional.html#ga7bdafba6dc801f1d2d83731ad9714557":[1,2,10],198"group__group-functional.html#ga835970cb25a0c8dc200f1e5f8943538b":[1,2,0],199"group__group-functional.html#ga83e71bae315e299f9f5f9de77b012139":[1,2,13],200"group__group-functional.html#ga8c6f17b58ce527c7650eb878f01f2cd2":[1,2,6],201"group__group-functional.html#gaa46de6f618d9f14edb1589b36b6e75ec":[1,2,14],202"group__group-functional.html#gaef38cf34324c8edbd3597ae71811d00d":[1,2,9],203"group__group-functional.html#gaefe9fd152cba94be71c2b5b9de689d23":[1,2,16],204"group__group-functional.html#gafca60c09e1f7a32a2b52baaf6515c279":[1,2,11],205"hana_8hpp.html":[3,0,1],206"has__common__embedding_8hpp.html":[3,0,0,2,13],207"has__common__embedding_8hpp.html#ga9acac3c4609cff5f0957572744c61ec4":[3,0,0,2,13,1],208"has__common__embedding_8hpp.html#gae85b604ae6c7a386f0fc3631c561091b":[3,0,0,2,13,0],209"has__duplicates_8hpp.html":[3,0,0,2,14],210"hash_8hpp.html":[3,0,0,67],211"hash__table_8hpp.html":[3,0,0,2,15],212"id_8hpp.html":[3,0,0,5,9],213"id_8hpp.html#gaef38cf34324c8edbd3597ae71811d00d":[3,0,0,5,9,0],214"if_8hpp.html":[3,0,0,68],215"index.html":[],216"index.html":[0],217"index.html#autotoc_md419":[0],218"index.html#tutorial-acknowledgements":[0,18],219"index.html#tutorial-algorithms":[0,11],220"index.html#tutorial-algorithms-codegen":[0,11,2],221"index.html#tutorial-algorithms-cross_phase":[0,11,4],222"index.html#tutorial-algorithms-effects":[0,11,3],223"index.html#tutorial-algorithms-laziness":[0,11,1],224"index.html#tutorial-algorithms-value":[0,11,0],225"index.html#tutorial-appendix-constexpr":[0,21],226"index.html#tutorial-appendix-constexpr-effects":[0,21,2],227"index.html#tutorial-appendix-constexpr-stripping":[0,21,0],228"index.html#tutorial-assert":[0,6],229"index.html#tutorial-cheatsheet":[0,5],230"index.html#tutorial-conclusion":[0,16],231"index.html#tutorial-conclusion-projects_using_hana":[0,16,2],232"index.html#tutorial-conclusion-related_material":[0,16,1],233"index.html#tutorial-conclusion-warning":[0,16,0],234"index.html#tutorial-containers":[0,10],235"index.html#tutorial-containers-creating":[0,10,0],236"index.html#tutorial-containers-elements":[0,10,2],237"index.html#tutorial-containers-types":[0,10,1],238"index.html#tutorial-containers-types-overloading":[0,10,1,0],239"index.html#tutorial-core":[0,14],240"index.html#tutorial-core-concepts":[0,14,2],241"index.html#tutorial-core-tag_dispatching":[0,14,1],242"index.html#tutorial-core-tags":[0,14,0],243"index.html#tutorial-description":[0,0],244"index.html#tutorial-ext":[0,13],245"index.html#tutorial-glossary":[0,19],246"index.html#tutorial-header_organization":[0,15],247"index.html#tutorial-installation":[0,1],248"index.html#tutorial-installation-cmake":[0,1,0],249"index.html#tutorial-installation-requirements":[0,1,1],250"index.html#tutorial-integral":[0,7],251"index.html#tutorial-integral-arithmetic":[0,7,0],252"index.html#tutorial-integral-branching":[0,7,2]...
navtreeindex1.js
Source:navtreeindex1.js
1var NAVTREEINDEX1 =2{3"group___l_m_s.html#ga6a0abfe6041253a6f91c63b383a64257":[3,3,11,5],4"group___l_m_s.html#ga8d4bc251169f4b102355097a9f7530d6":[3,3,11,3],5"group___l_m_s.html#ga9544cc26f18cd4465cfbed371be822b3":[3,3,11,2],6"group___l_m_s.html#ga9fc7adca0966ff2cec1746fca8364cee":[3,3,11,1],7"group___l_m_s.html#gacde16c17eb75979f81b34e2e2a58c7ac":[3,3,11,4],8"group___l_m_s.html#gae266d009e682180421601627c79a3843":[3,3,11,0],9"group___l_m_s___n_o_r_m.html":[3,3,12],10"group___l_m_s___n_o_r_m.html#ga1d9659dbbea4c89a7a9d14d5fc0dd490":[3,3,12,3],11"group___l_m_s___n_o_r_m.html#ga213ab1ee2e154cc2fa30d667b1994b89":[3,3,12,2],12"group___l_m_s___n_o_r_m.html#ga2418c929087c6eba719758eaae3f3300":[3,3,12,0],13"group___l_m_s___n_o_r_m.html#ga7128775e99817c183a7d7ad34e8b6e05":[3,3,12,5],14"group___l_m_s___n_o_r_m.html#gac7ccbaea863882056eee815456464670":[3,3,12,1],15"group___l_m_s___n_o_r_m.html#gad47486a399dedb0bc85a5990ec5cf981":[3,3,12,4],16"group___linear_interp_example.html":[3,10,6],17"group___linear_interpolate.html":[3,9,0],18"group___linear_interpolate.html#ga2269263d810cafcd19681957b37d5cf6":[3,9,0,0],19"group___linear_interpolate.html#ga42c9206e5d2d22b8808716dc30622846":[3,9,0,1],20"group___linear_interpolate.html#ga690e63e9a513ca0a741b1b174805d031":[3,9,0,2],21"group___linear_interpolate.html#gacb0d44fe00aca0ba1d036d469a1763fc":[3,9,0,3],22"group___matrix_add.html":[3,4,0],23"group___matrix_add.html#ga04bbf64a5f9c9e57dd1efb26a768aba1":[3,4,0,0],24"group___matrix_add.html#ga147e90b7c12a162735ab8824127a33ee":[3,4,0,1],25"group___matrix_add.html#ga7d9d7d81a0832a17b831aad1e4a5dc16":[3,4,0,2],26"group___matrix_example.html":[3,10,7],27"group___matrix_init.html":[3,4,2],28"group___matrix_init.html#ga11e3dc41592a6401c13182fef9416a27":[3,4,2,0],29"group___matrix_init.html#ga31a7c2b991803d49719393eb2d53dc26":[3,4,2,1],30"group___matrix_init.html#ga48a5e5d37e1f062cc57fcfaf683343cc":[3,4,2,2],31"group___matrix_inv.html":[3,4,3],32"group___matrix_inv.html#ga542be7aabbf7a2297a4b62cf212910e3":[3,4,3,0],33"group___matrix_inv.html#gaede2367c02df083cc915ddd5d8fae838":[3,4,3,1],34"group___matrix_mult.html":[3,4,4],35"group___matrix_mult.html#ga08f37d93a5bfef0c5000dc5e0a411f93":[3,4,4,1],36"group___matrix_mult.html#ga2785e8c1b785348b0c439b56aaf585a3":[3,4,4,2],37"group___matrix_mult.html#ga2ec612a8c2c4916477fb9bc1ab548a6e":[3,4,4,4],38"group___matrix_mult.html#ga3657b99a9667945373e520dbac0f4516":[3,4,4,3],39"group___matrix_mult.html#ga917bf0270310c1d3f0eda1fc7c0026a0":[3,4,4,0],40"group___matrix_scale.html":[3,4,5],41"group___matrix_scale.html#ga609743821ee81fa8c34c4bcdc1ed9744":[3,4,5,2],42"group___matrix_scale.html#ga7521769e2cf1c3d9c4656138cd2ae2ca":[3,4,5,1],43"group___matrix_scale.html#ga9cb4e385b18c9a0b9cbc940c1067ca12":[3,4,5,0],44"group___matrix_sub.html":[3,4,6],45"group___matrix_sub.html#ga39f42e0e3b7f115fbb909d6ff4e1329d":[3,4,6,2],46"group___matrix_sub.html#gac8b72fb70246ccfee3b372002345732c":[3,4,6,0],47"group___matrix_sub.html#gaf647776a425b7f9dd0aca3e11d81f02f":[3,4,6,1],48"group___matrix_trans.html":[3,4,7],49"group___matrix_trans.html#ga30a4d49489ac67ff98a46b9f58f73bf1":[3,4,7,2],50"group___matrix_trans.html#ga4f4f821cc695fd0ef9061d702e08050a":[3,4,7,1],51"group___matrix_trans.html#gad7dd9f108429da13d3864696ceeec789":[3,4,7,0],52"group___max.html":[3,7,0],53"group___max.html#ga5b89d1b04575aeec494f678695fb87d8":[3,7,0,0],54"group___max.html#ga6afd64d381b5c232de59163ebfe71e35":[3,7,0,3],55"group___max.html#gac132856c68f4bf2a056eaad5921c7880":[3,7,0,1],56"group___max.html#gaff7cbd4e955382def06724cc4cc85795":[3,7,0,2],57"group___min.html":[3,7,2],58"group___min.html#ga3631d38ac8d715fc14f6f1b343f4c4ed":[3,7,2,3],59"group___min.html#gab20faeceb5ff5d2d9dd628c2ecf41303":[3,7,2,2],60"group___min.html#gad065e37535ebb726750ac1545cb3fa6f":[3,7,2,1],61"group___min.html#gaf62b1673740fc516ea64daf777b7d74a":[3,7,2,0],62"group___p_i_d.html":[3,6,1],63"group___p_i_d.html#ga084f646bbb20d55f225c3efafcf7fc1f":[3,6,1,4],64"group___p_i_d.html#ga2cb1e3d3ebb167348fdabec74653d5c3":[3,6,1,2],65"group___p_i_d.html#ga408566dacb4fa6e0458b2c75672e525f":[3,6,1,7],66"group___p_i_d.html#ga5f6f941e7ae981728dd3a662f8f4ecd7":[3,6,1,5],67"group___p_i_d.html#ga9ec860bcb6f8ca31205bf0f1b51ab723":[3,6,1,6],68"group___p_i_d.html#gac5c79ed46abf2d72b8cf41fa6c708bda":[3,6,1,0],69"group___p_i_d.html#gad9d88485234fa9460b1ce9e64989ac86":[3,6,1,3],70"group___p_i_d.html#gae31536b19b82b93ed184fb1ab73cfcb3":[3,6,1,1],71"group___p_i_d.html#gaeecbacd3fb37c608ec25474d3a0dffa9":[3,6,1,8],72"group___partial_conv.html":[3,3,4],73"group___partial_conv.html#ga10c5294cda8c4985386f4e3944be7650":[3,3,4,3],74"group___partial_conv.html#ga16d10f32072cd79fc5fb6e785df45f5e":[3,3,4,0],75"group___partial_conv.html#ga1e4d43385cb62262a78c6752fe1fafb2":[3,3,4,2],76"group___partial_conv.html#ga209a2a913a0c5e5679c5988da8f46b03":[3,3,4,6],77"group___partial_conv.html#ga3707e16af1435b215840006a7ab0c98f":[3,3,4,5],78"group___partial_conv.html#ga3de9c4ddcc7886de25b70d875099a8d9":[3,3,4,1],79"group___partial_conv.html#ga78e73a5f02d103168a09821fb461e77a":[3,3,4,7],80"group___partial_conv.html#ga834b23b4ade8682beeb55778399101f8":[3,3,4,4],81"group___partial_conv.html#ga8567259fe18396dd972242c41741ebf4":[3,3,4,8],82"group___r_m_s.html":[3,7,4],83"group___r_m_s.html#ga0e3ab1b57da32d45388d1fa90d7fd88c":[3,7,4,0],84"group___r_m_s.html#gae33015fda23fc44e7ead5e5ed7e8d314":[3,7,4,2],85"group___r_m_s.html#gaf5b836b72dda9e5dfbbd17c7906fd13f":[3,7,4,1],86"group___radix8___c_f_f_t___c_i_f_f_t.html":[3,5,1],87"group___real_f_f_t.html":[3,5,5],88"group___real_f_f_t.html#ga00e615f5db21736ad5b27fb6146f3fc5":[3,5,5,6],89"group___real_f_f_t.html#ga053450cc600a55410ba5b5605e96245d":[3,5,5,4],90"group___real_f_f_t.html#ga10717ee326bf50832ef1c25b85a23068":[3,5,5,3],91"group___real_f_f_t.html#ga11e84d0ee257a547f749b37dd0078d36":[3,5,5,9],92"group___real_f_f_t.html#ga180d8b764d59cbb85d37a2d5f7cd9799":[3,5,5,1],93"group___real_f_f_t.html#ga1eb5745728a61c3715755f5d69a4a960":[3,5,5,13],94"group___real_f_f_t.html#ga3df1766d230532bc068fc4ed69d0fcdc":[3,5,5,0],95"group___real_f_f_t.html#ga5abde938abbe72e95c5bab080eb33c45":[3,5,5,5],96"group___real_f_f_t.html#ga8b1ad947c470596674fa3364e16045c6":[3,5,5,8],97"group___real_f_f_t.html#gabaeab5646aeea9844e6d42ca8c73fe3a":[3,5,5,7],98"group___real_f_f_t.html#gac52f98b52a1f03bfac8b57a67ba07397":[3,5,5,11],99"group___real_f_f_t.html#gac5fceb172551e7c11eb4d0e17ef15aa3":[3,5,5,2],100"group___real_f_f_t.html#gac871666f018b70938b2b98017628cb97":[3,5,5,12],101"group___real_f_f_t.html#gaf1592a6cf0504675205074a43c3728a2":[3,5,5,10],102"group___s_q_r_t.html":[3,1,2],103"group___s_q_r_t.html#ga119e25831e141d734d7ef10636670058":[3,1,2,2],104"group___s_q_r_t.html#ga56a40d1cf842b0b45267df6761975da0":[3,1,2,0],105"group___s_q_r_t.html#ga5abe5ca724f3e15849662b03752c1238":[3,1,2,1],106"group___s_t_d.html":[3,7,5],107"group___s_t_d.html#ga39495e74f96116178be085c9dc7742f5":[3,7,5,2],108"group___s_t_d.html#ga4969b5b5f3d001377bc401a3ee99dfc2":[3,7,5,0],109"group___s_t_d.html#gaf9d27afa9928ff28a63cd98ea9218a72":[3,7,5,1],110"group___signal_convergence.html":[3,10,8],111"group___sin_cos.html":[3,6,0],112"group___sin_cos.html#ga4420d45c37d58c310ef9ae1b5fe58020":[3,6,0,0],113"group___sin_cos.html#gae9e4ddebff9d4eb5d0a093e28e0bc504":[3,6,0,1],114"group___sin_cos_example.html":[3,10,9],115"group___variance_example.html":[3,10,10],116"group__clarke.html":[3,6,2],117"group__clarke.html#ga2b4ebec76215e1277c970c269ffdbd76":[3,6,2,0],118"group__clarke.html#ga7fd106ca8d346a2a472842e0656014c1":[3,6,2,1],119"group__cmplx__conj.html":[3,2,0],120"group__cmplx__conj.html#ga3a102aead6460ad9fcb0626f6b226ffb":[3,2,0,0],121"group__cmplx__conj.html#gaf47689ae07962acaecb8ddde556df4a4":[3,2,0,1],122"group__cmplx__conj.html#gafecc94879a383c5208ec3ef99485e4b5":[3,2,0,2],123"group__cmplx__dot__prod.html":[3,2,1],124"group__cmplx__dot__prod.html#ga2b08b5e8001d2c15204639d00893fc70":[3,2,1,1],125"group__cmplx__dot__prod.html#ga5b731a59db062a9ad84562ef68a6c8af":[3,2,1,2],126"group__cmplx__dot__prod.html#gadcfaf567a25eb641da4043eafb9bb076":[3,2,1,0],127"group__cmplx__mag.html":[3,2,2],128"group__cmplx__mag.html#ga0a4a8f77a6a51d9b3f3b9d729f85b7a4":[3,2,2,1],129"group__cmplx__mag.html#ga14f82f9230e9d96d5b9774e2fefcb7be":[3,2,2,2],130"group__cmplx__mag.html#gae45024c497392cde2ae358a76d435213":[3,2,2,0],131"group__cmplx__mag__squared.html":[3,2,3],132"group__cmplx__mag__squared.html#ga384b0538101e8c03fa4fa14271e63b04":[3,2,3,2],133"group__cmplx__mag__squared.html#ga45537f576102d960d467eb722b8431f2":[3,2,3,1],134"group__cmplx__mag__squared.html#gaa7faccc0d96b061d8b7d0d7d82045074":[3,2,3,0],135"group__copy.html":[3,8,0],136"group__copy.html#ga467579beda492aa92797529d794c88fb":[3,8,0,3],137"group__copy.html#ga872ca4cfc18c680b8991ccd569a5fda0":[3,8,0,1],138"group__copy.html#gadd1f737e677e0e6ca31767c7001417b3":[3,8,0,0],139"group__copy.html#gaddf70be7e3f87e535c324862b501f3f9":[3,8,0,2],140"group__cos.html":[3,1,0],141"group__cos.html#gace15287f9c64b9b4084d1c797d4c49d8":[3,1,0,0],142"group__cos.html#gad80f121949ef885a77d83ab36e002567":[3,1,0,2],143"group__cos.html#gadfd60c24def501638c0d5db20f4c869b":[3,1,0,1],144"group__dot__prod.html":[3,0,2],145"group__dot__prod.html#ga436d5bed28a4b73b24acbde436a3044b":[3,0,2,1],146"group__dot__prod.html#ga55418d4362f6ba84c327f9b4f089a8c3":[3,0,2,0],147"group__dot__prod.html#ga9c3293a50ac7ec8ba928bf8e3aaea6c1":[3,0,2,3],148"group__dot__prod.html#gab15d8fa060fc85b4d948d091b7deaa11":[3,0,2,2],149"group__float__to__x.html":[3,8,2],150"group__float__to__x.html#ga177704107f94564e9abe4daaa36f4554":[3,8,2,1],151"group__float__to__x.html#ga215456e35a18db86882e1d3f0d24e1f2":[3,8,2,0],152"group__float__to__x.html#ga44a393818cdee8dce80f2d66add25411":[3,8,2,2],153"group__group_cmplx_math.html":[3,2],154"group__group_controller.html":[3,6],155"group__group_examples.html":[3,10],156"group__group_fast_math.html":[3,1],157"group__group_filters.html":[3,3],158"group__group_interpolation.html":[3,9],159"group__group_math.html":[3,0],160"group__group_matrix.html":[3,4],161"group__group_stats.html":[3,7],162"group__group_support.html":[3,8],163"group__group_transforms.html":[3,5],164"group__group_transforms.html#ga6cfdb6bdc66b13732ef2351caf98fdbb":[3,5,7],165"group__group_transforms.html#gae239ddf995d1607115f9e84d5c069b9c":[3,5,6],166"group__inv__clarke.html":[3,6,3],167"group__inv__clarke.html#ga137f0396d837477b899ecae89f075a50":[3,6,3,0],168"group__inv__clarke.html#ga2d0c60f114f095a2f27442d98781ba02":[3,6,3,1],169"group__inv__park.html":[3,6,5],170"group__inv__park.html#ga0b33822b988a15455773d28440c5579a":[3,6,5,1],171"group__inv__park.html#gaaf6bef0de21946f774d49df050dd8b05":[3,6,5,0],172"group__mean.html":[3,7,1],173"group__mean.html#ga74ce08c49ab61e57bd50c3a0ca1fdb2b":[3,7,1,0],174"group__mean.html#gac882495d5f098819fd3939c1ef7795b3":[3,7,1,1],175"group__mean.html#gacf2526d8c2d75e486e8f0b0e31877ad0":[3,7,1,2],176"group__mean.html#gaebc707ee539020357c25da4c75b52eb7":[3,7,1,3],177"group__negate.html":[3,0,4],178"group__negate.html#ga0239a833d72cf00290b9723c394e5042":[3,0,4,1],179"group__negate.html#ga2784c6887686a73dc7c364e2e41c776c":[3,0,4,2],180"group__negate.html#ga2e169c4de6cc6e3ba4be9473531e6657":[3,0,4,0],181"group__negate.html#gaae78fc079a43bdaa3055f9b32e2a1f4c":[3,0,4,3],182"group__offset.html":[3,0,5],183"group__offset.html#ga00bd9cc17c5bf905e76c91ad50886393":[3,0,5,3],184"group__offset.html#ga989dfae15235799d82f62ef9d356abb4":[3,0,5,0],185"group__offset.html#gab4c1d2391b599549e5a06fdfbc2747bf":[3,0,5,1],186"group__offset.html#gac84ec42cbbebc5c197a87d0221819acf":[3,0,5,2],187"group__park.html":[3,6,4],188"group__park.html#ga08b3a683197de7e143fb00497787683c":[3,6,4,0],189"group__park.html#gaf4cc6370c0cfc14ea66774ed3c5bb10f":[3,6,4,1],190"group__power.html":[3,7,3],191"group__power.html#ga0b93d31bb5b5ed214c2b94d8a7744cd2":[3,7,3,2],192"group__power.html#ga7050c04b7515e01a75c38f1abbaf71ba":[3,7,3,1],193"group__power.html#ga993c00dd7f661d66bdb6e58426e893aa":[3,7,3,0],194"group__power.html#gaf969c85c5655e3d72d7b99ff188f92c9":[3,7,3,3],195"group__q15__to__x.html":[3,8,3],196"group__q15__to__x.html#ga7ba2d87366990ad5380439e2b4a4c0a5":[3,8,3,1],197"group__q15__to__x.html#ga8fb31855ff8cce09c2ec9308f48ded69":[3,8,3,2],198"group__q15__to__x.html#gaf8b0d2324de273fc430b0e61ad4e9eb2":[3,8,3,0],199"group__q31__to__x.html":[3,8,4],200"group__q31__to__x.html#ga7f297d1a7d776805395095fdb24a8071":[3,8,4,2],201"group__q31__to__x.html#ga901dede4661365c9e7c630d3eb31c32c":[3,8,4,1],202"group__q31__to__x.html#gacf407b007a37da18e99dabd9023c56b4":[3,8,4,0],203"group__q7__to__x.html":[3,8,5],204"group__q7__to__x.html#ga656620f957b65512ed83db03fd455ec5":[3,8,5,0],205"group__q7__to__x.html#gabc02597fc3f01033daf43ec0547a2f78":[3,8,5,1],206"group__q7__to__x.html#gad8958cd3cb7f521466168b46a25b7908":[3,8,5,2],207"group__scale.html":[3,0,6],208"group__scale.html#ga3487af88b112f682ee90589cd419e123":[3,0,6,0],209"group__scale.html#ga83e36cd82bf51ce35406a199e477d47c":[3,0,6,2],210"group__scale.html#gabc9fd3d37904c58df56492b351d21fb0":[3,0,6,3],211"group__scale.html#gafaac0e1927daffeb68a42719b53ea780":[3,0,6,1],212"group__shift.html":[3,0,7],213"group__shift.html#ga387dd8b7b87377378280978f16cdb13d":[3,0,7,1],214"group__shift.html#ga47295d08a685f7de700a48dafb4db6fb":[3,0,7,2],215"group__shift.html#gaa1757e53279780107acc92cf100adb61":[3,0,7,0],216"group__sin.html":[3,1,1],217"group__sin.html#ga1fc6d6640be6cfa688a8bea0a48397ee":[3,1,1,1],218"group__sin.html#ga57aade7d8892585992cdc6375bd82f9c":[3,1,1,2],219"group__sin.html#gae164899c4a3fc0e946dc5d55555fe541":[3,1,1,0],220"group__variance.html":[3,7,6],221"group__variance.html#ga393f26c5a3bfa05624fb8d32232a6d96":[3,7,6,0],222"group__variance.html#ga79dce009ed2de28a125aeb3f19631654":[3,7,6,1],223"group__variance.html#gac02873f1c2cc80adfd799305f0e6465d":[3,7,6,2],224"index.html":[],225"index.html":[0],226"modules.html":[3],227"pages.html":[],228"structarm__bilinear__interp__instance__f32.html":[4,0],229"structarm__bilinear__interp__instance__f32.html#a34f2b17cc57b95011960df9718af6ed6":[4,0,1],230"structarm__bilinear__interp__instance__f32.html#aede17bebfb1f835b61d71dd813eab3f8":[4,0,0],231"structarm__bilinear__interp__instance__f32.html#afd1e764591c991c212d56c893efb5ea4":[4,0,2],232"structarm__bilinear__interp__instance__q15.html":[4,1],233"structarm__bilinear__interp__instance__q15.html#a2130ae30a804995a9f5d0e2189e08565":[4,1,1],234"structarm__bilinear__interp__instance__q15.html#a50d75b1316cee3e0dfad6dcc4c9a2954":[4,1,2],235"structarm__bilinear__interp__instance__q15.html#a7fa8772d01583374ff8ac18205a26a37":[4,1,0],236"structarm__bilinear__interp__instance__q31.html":[4,2],237"structarm__bilinear__interp__instance__q31.html#a2082e3eac56354d75291f03e96ce4aa5":[4,2,1],238"structarm__bilinear__interp__instance__q31.html#a6c3eff4eb17ff1d43f170efb84713a2d":[4,2,0],239"structarm__bilinear__interp__instance__q31.html#a843eae0c9db5f815e77e1aaf9afea358":[4,2,2],240"structarm__bilinear__interp__instance__q7.html":[4,3],241"structarm__bilinear__interp__instance__q7.html#a860dd0d24380ea06cfbb348fb3b12c9a":[4,3,0],242"structarm__bilinear__interp__instance__q7.html#ad5a8067cab5f9ea4688b11a623e16607":[4,3,1],243"structarm__bilinear__interp__instance__q7.html#af05194d691bbefb02c34bafb22ca9ef0":[4,3,2],244"structarm__biquad__cas__df1__32x64__ins__q31.html":[4,4],245"structarm__biquad__cas__df1__32x64__ins__q31.html#a490462d6ebe0fecfb6acbf51bed22ecf":[4,4,1],246"structarm__biquad__cas__df1__32x64__ins__q31.html#a4c899cdfaf2bb955323e93637bd662e0":[4,4,3],247"structarm__biquad__cas__df1__32x64__ins__q31.html#a8e9d58e8dba5aa3b2fc4f36d2ed07996":[4,4,2],248"structarm__biquad__cas__df1__32x64__ins__q31.html#ad7cb9a9f5df8f4fcfc7a0b633672e574":[4,4,0],249"structarm__biquad__cascade__df2_t__instance__f32.html":[4,5],250"structarm__biquad__cascade__df2_t__instance__f32.html#a24d223addfd926a7177088cf2efe76b1":[4,5,2],251"structarm__biquad__cascade__df2_t__instance__f32.html#a49a24fe1b6ad3b0b26779c32d8d80b2e":[4,5,1],252"structarm__biquad__cascade__df2_t__instance__f32.html#a4d17958c33c3d0a905f974bac50f033f":[4,5,0]...
navtreeindex0.js
Source:navtreeindex0.js
1var NAVTREEINDEX0 =2{3"globals.html":[6,0],4"globals.html":[6,0,0],5"globals_0x63.html":[6,0,1],6"globals_0x64.html":[6,0,2],7"globals_0x65.html":[6,0,3],8"globals_0x6d.html":[6,0,4],9"globals_0x70.html":[6,0,5],10"globals_0x72.html":[6,0,6],11"globals_0x73.html":[6,0,7],12"globals_0x74.html":[6,0,8],13"globals_0x76.html":[6,0,9],14"globals_0x77.html":[6,0,10],15"globals_0x78.html":[6,0,11],16"globals_defs.html":[6,5],17"globals_enum.html":[6,3],18"globals_eval.html":[6,4],19"globals_func.html":[6,1],20"globals_func.html":[6,1,0],21"globals_func_0x63.html":[6,1,1],22"globals_func_0x64.html":[6,1,2],23"globals_func_0x65.html":[6,1,3],24"globals_func_0x6d.html":[6,1,4],25"globals_func_0x70.html":[6,1,5],26"globals_func_0x72.html":[6,1,6],27"globals_func_0x73.html":[6,1,7],28"globals_func_0x77.html":[6,1,8],29"globals_func_0x78.html":[6,1,9],30"globals_type.html":[6,2],31"group___camellia.html":[5,4,11],32"group___camellia.html#ga192688db34ab7bd994e24b8f28df0d48":[5,4,11,4],33"group___camellia.html#ga26593bb4eea4ba22303a16f6f42e7a2f":[5,4,11,2],34"group___camellia.html#ga313f6d7ddeadeb5766d61096f53fd799":[5,4,11,0],35"group___camellia.html#gac77a1628bc5c607edac9b25d3bab0633":[5,4,11,3],36"group___camellia.html#gad7fe86e6c243fc22fc73044c58abb404":[5,4,11,1],37"group___s_e_e_d.html":[5,4,12],38"group___s_e_e_d.html#ga15b8e3246e19373fc9095cd29afcf249":[5,4,12,2],39"group___s_e_e_d.html#ga93fe6e54733a54ed2e9cfa747c9c909a":[5,4,12,0],40"group___s_e_e_d.html#gadeb0bb1450549fe9e6b2d627f6a37672":[5,4,12,1],41"group__adc.html":[5,2,3],42"group__adc.html#ga1b9aded5dac0d4db8753b738a15678d2":[5,2,3,0],43"group__adc.html#ga47d872d4dd49dd529c7a4fb7873ea536":[5,2,3,2],44"group__adc.html#ga9830e0bea7631819438237a1ea020945":[5,2,3,1],45"group__adc.html#gae84442ff3ef9ce681b5f4cd30d224c28":[5,2,3,3],46"group__aes.html":[5,4,0],47"group__aes.html#ga0aa350c4346e13283440d8830e0c8533":[5,4,0,5],48"group__aes.html#ga12b405382be9234098f9f114a367600f":[5,4,0,0],49"group__aes.html#ga1698568681c568ae17cce5c512a26d25":[5,4,0,4],50"group__aes.html#ga1f92cb5a0a320a904ab092ae9cadedd6":[5,4,0,1],51"group__aes.html#ga26a6fd04dae14ecd0e2147529e29315f":[5,4,0,3],52"group__aes.html#ga29c82eea26519910a64dc3c48ea14a53":[5,4,0,2],53"group__aes.html#ga4f311b25bfee4e96184dfee4600d358c":[5,4,0,8],54"group__aes.html#gad8a80e687b193ab1c2bb140724e34d42":[5,4,0,6],55"group__aes.html#gae1bd46e2541103032af228ee9ecb702a":[5,4,0,9],56"group__aes.html#gaed1490e28bcf8f4fc408fba7e7aaf624":[5,4,0,7],57"group__app.html":[5,6],58"group__arc4.html":[5,4,9],59"group__arc4.html#ga4ed57e9ba300af470a319a02371775b6":[5,4,9,0],60"group__arc4.html#gab8e8617b289d74c9b48da17dcc421d47":[5,4,9,1],61"group__chacha.html":[5,4,6],62"group__chacha.html#ga226ec5578691330c85d24b2dacd088ed":[5,4,6,2],63"group__chacha.html#ga3e45f85798c7d0b9ca16cb4829f5e7bd":[5,4,6,3],64"group__chacha.html#ga4e894fd52f93b1cabfd63045edef5b40":[5,4,6,10],65"group__chacha.html#ga6b09c2446c07d512e9223015225009e3":[5,4,6,5],66"group__chacha.html#ga73899974775ccfdb991e34037ebfb128":[5,4,6,4],67"group__chacha.html#gab65837a622aa9577f75b92a32d8a69ff":[5,4,6,0],68"group__chacha.html#gac0f29c9047262b232a78c3d3b0805f5a":[5,4,6,9],69"group__chacha.html#gacc1bc28632765576792c2702d1a0cf2b":[5,4,6,1],70"group__chacha.html#gae2ceb5704ed157c4d1a9a644c7d4ed5f":[5,4,6,6],71"group__chacha.html#gaf1c956a011ee43b6a5ab27ef4f3105d8":[5,4,6,8],72"group__chacha.html#gaffb0154164c47042b10862f0ade0e8bd":[5,4,6,7],73"group__crypto.html":[5,4],74"group__curve25519.html":[5,4,7],75"group__curve25519.html#ga0854945002ad786a5fac1de6a815ca32":[5,4,7,0],76"group__dct.html":[5,0,0],77"group__dct.html#ga8a48c1c9301b78369ee89536f0e654d8":[5,0,0,1],78"group__dct.html#gadb26e486e7e6fb53d9b0109c5114562d":[5,0,0,2],79"group__deprecated__dct.html":[5,0,0,0],80"group__deprecated__dct.html#ga4fa1ce9cec82a7071d525dee9a0593b5":[5,0,0,0,0],81"group__deprecated__dct.html#ga58041e174cb7f2c8848a6a8ff8b4a27e":[5,0,0,0,5],82"group__deprecated__dct.html#ga593acdbe169b35e8a0a71c4fd8d9dfcf":[5,0,0,0,7],83"group__deprecated__dct.html#ga5b6ded5a51ef977a62e186c3a2a7b74c":[5,0,0,0,4],84"group__deprecated__dct.html#ga7270d5bb5b9dc1316139b77a1764af92":[5,0,0,0,1],85"group__deprecated__dct.html#ga94e20f5708b03aeccbb11085ae5242ee":[5,0,0,0,3],86"group__deprecated__dct.html#gab8b4abc77f577bd1b11f55982c1ed551":[5,0,0,0,9],87"group__deprecated__dct.html#gabeed7a0fbfebf5a952b432be67ace078":[5,0,0,0,2],88"group__deprecated__dct.html#gad401d82d8f830b5df7c6542ab70e7fc6":[5,0,0,0,8],89"group__deprecated__dct.html#gad8106e10461401655df567870f1a2bc2":[5,0,0,0,6],90"group__des.html":[5,4,1],91"group__des.html#ga29a04fcca2236e62a119381645b65782":[5,4,1,2],92"group__des.html#ga3821909f567cee6f276cc5c7baa60523":[5,4,1,6],93"group__des.html#ga6aba8975626002db39adaa92a1d1ed90":[5,4,1,5],94"group__des.html#ga7dffe952ce9419e747d0a4633946eabd":[5,4,1,8],95"group__des.html#ga8cf7aa7333feb45e083f3f4ffe32ab74":[5,4,1,3],96"group__des.html#gabb21c4e55b6253d292869c4278974bd9":[5,4,1,7],97"group__des.html#gada6d7a926e262017c012a5e160b6f26e":[5,4,1,4],98"group__des.html#gaeb90ce5f4ba334de266464b3acd541b4":[5,4,1,1],99"group__des.html#gaee64993375c58c97b3fc965f76645232":[5,4,1,9],100"group__des.html#gaf460ff25b3384e010dbdaf56e5abad6c":[5,4,1,0],101"group__dns.html":[5,5,1,6],102"group__dns.html":[5,5,4],103"group__dns.html#ga4b259b36f1960e6f6821a72e6ca34e8b":[5,5,1,6,0],104"group__dns.html#ga4b259b36f1960e6f6821a72e6ca34e8b":[5,5,4,0],105"group__ed25519.html":[5,4,8],106"group__ed25519.html#ga820cb791f7dc64a91d7b6f2cb8f21b3f":[5,4,8,2],107"group__ed25519.html#ga8bd81c03a1802a5815ef3619010f8b2d":[5,4,8,1],108"group__ed25519.html#ga8c3d21080d78c79c43ad547b8675ee85":[5,4,8,0],109"group__eventflags.html":[5,3,7],110"group__eventflags.html#ga689517e95093a9d76ac01635bff0f766":[5,3,7,0],111"group__eventflags.html#gaa43000da1e8402b4e427f13cb416c1a6":[5,3,7,2],112"group__eventflags.html#gab3c048d1ada42601b7e0532a68d87692":[5,3,7,1],113"group__eventflags.html#gae84b75998da2d72e3c03eeceb1a0e2e9":[5,3,7,3],114"group__events.html":[5,3,6],115"group__events.html#ga1ef76a6565d173a60637146fd073aa93":[5,3,6,2],116"group__events.html#ga2ab1054524338dcd4c89893760b36c03":[5,3,6,0],117"group__events.html#gae4a50af644873c65ad3c73b19b7e5bf8":[5,3,6,1],118"group__framework.html":[5,0],119"group__gpio.html":[5,2,4],120"group__gpio.html#ga62d304818814ac7226e83a969cad8416":[5,2,4,6],121"group__gpio.html#ga90d878967b87a7570d03b61a653ea5ff":[5,2,4,2],122"group__gpio.html#gaa992110378e9a13dba05af1193d716a2":[5,2,4,1],123"group__gpio.html#gaaf58cf0e6039af7830ad3fc18125d37a":[5,2,4,3],124"group__gpio.html#gac9f5c28543c38eed07aa32dc85420a5f":[5,2,4,0],125"group__gpio.html#gae68b81b15db81b3ce1479161631ed238":[5,2,4,5],126"group__gpio.html#gaed7ee9b6296f13c5040dbb3aacc90942":[5,2,4,4],127"group__i2c.html":[5,2,2],128"group__i2c.html#ga0ac8529f2da107d9760ad7f8f42360e8":[5,2,2,6],129"group__i2c.html#ga2bd4747bc05e6ac9f4cf44ec062155cd":[5,2,2,3],130"group__i2c.html#ga51b3b880f1a42ec764357feea278684e":[5,2,2,1],131"group__i2c.html#ga854fb719049d8fddcdde687a07eab8f1":[5,2,2,0],132"group__i2c.html#ga9f676926390ac2dd6d6b4cb354ba9e86":[5,2,2,4],133"group__i2c.html#gaafc8d59589b28976d6cff7de98604fb6":[5,2,2,5],134"group__i2c.html#gae888303b8c4d4c6f3f0bb2c740cec958":[5,2,2,2],135"group__icmp.html":[5,5,1,5],136"group__icmp.html":[5,5,3],137"group__icmp.html#gaac1e5d1d0c6b64efedafbddd032693d3":[5,5,1,5,0],138"group__icmp.html#gaac1e5d1d0c6b64efedafbddd032693d3":[5,5,3,0],139"group__igmp.html":[5,5,1,7],140"group__igmp.html":[5,5,5],141"group__igmp.html#ga1b48c587304201165b0a12204f3ce733":[5,5,1,7,0],142"group__igmp.html#ga1b48c587304201165b0a12204f3ce733":[5,5,5,0],143"group__igmp.html#gadf6b2e1e7f68da5a29cbe7628e995141":[5,5,1,7,1],144"group__igmp.html#gadf6b2e1e7f68da5a29cbe7628e995141":[5,5,5,1],145"group__initconf.html":[5,1,0],146"group__initconf.html#ga2fcc0c1e885e02196923bc0db960e907":[5,1,0,2],147"group__initconf.html#ga32793f5aa7031cc847da6f3bc86a71b3":[5,1,0,0],148"group__initconf.html#ga38bda185853db494b36b8ee62e55ff94":[5,1,0,4],149"group__initconf.html#ga557bc9c1960a7d582de843f6d36ce74f":[5,1,0,1],150"group__initconf.html#ga88388340a11ffee5b585e4bf4fb2380f":[5,1,0,3],151"group__initconf.html#gad1614760e47a5fb4d009f3f3a5223827":[5,1,0,5],152"group__ipcoms.html":[5,5],153"group__keepalive.html":[5,8,2],154"group__mcupowersave.html":[5,2,7],155"group__mcupowersave.html#ga34fe239525f225671f0f8f68d572a159":[5,2,7,0],156"group__mcupowersave.html#ga93a241845568c5d3cb6ba4ce84330b33":[5,2,7,1],157"group__md5.html":[5,4,5],158"group__md5.html#ga0d6858d863b6e4409000b08bceafbd98":[5,4,5,3],159"group__md5.html#ga38347d3af3913463cfe5403488f6b654":[5,4,5,12],160"group__md5.html#ga5c8f63b69d2a631c172fef4dbb4222cd":[5,4,5,11],161"group__md5.html#ga6ca964edd174ee2aa325da83ad77de31":[5,4,5,10],162"group__md5.html#ga8daaf0556288630055a66ee07a37b3da":[5,4,5,4],163"group__md5.html#ga8dcc7990090403a195ce8fff836fe920":[5,4,5,5],164"group__md5.html#ga9f91661d81cffc55facccc8e0fbf50a0":[5,4,5,1],165"group__md5.html#gaba2f69cf403347df173738555dd47b2e":[5,4,5,7],166"group__md5.html#gabd54148cb2a6530d72adf33a05daf45a":[5,4,5,0],167"group__md5.html#gac6e9fda1d8fda7d51fd1c0c036f87cfe":[5,4,5,6],168"group__md5.html#gacab4e95c76ace4fcbb069768b55ebd75":[5,4,5,9],169"group__md5.html#gad3f4c47545d8cc205d4bc3a966486707":[5,4,5,2],170"group__md5.html#gadb175a5eb51aa977a29b2a785a94133b":[5,4,5,8],171"group__mgmt.html":[5,1],172"group__mutexes.html":[5,3,2],173"group__mutexes.html#ga081e5859dcf5719eb734e622f858fbe6":[5,3,2,1],174"group__mutexes.html#ga1da1dcd1b52dd251f955a0b70c285736":[5,3,2,2],175"group__mutexes.html#gaf26c5eebb920a389bdda5765c7383145":[5,3,2,3],176"group__mutexes.html#gaf2a7aae4fc108c8cff63397a16967724":[5,3,2,0],177"group__netmgmt.html":[5,1,1],178"group__netmgmt.html#ga0cefb1cd81c473b6c8748f11da54d5d7":[5,1,1,12],179"group__netmgmt.html#ga1ea5ccd750a94af07bf7a9c320119333":[5,1,1,2],180"group__netmgmt.html#ga223a6ad985d7ef93e47c4a7fc0ae8763":[5,1,1,9],181"group__netmgmt.html#ga28338e9fcdecb5787a014b990efb2a77":[5,1,1,11],182"group__netmgmt.html#ga6563f22f3024392f6f6f3343ceb76aea":[5,1,1,1],183"group__netmgmt.html#ga7b13df70fb50cdc0fea212bf4cb95434":[5,1,1,10],184"group__netmgmt.html#gaaab856c09152a0752530f64bd4e1670d":[5,1,1,4],185"group__netmgmt.html#gaafbb771fbfd039eecd97a16cc6ad95fd":[5,1,1,5],186"group__netmgmt.html#gac3f82d2e522c0942442faa03826b6c73":[5,1,1,3],187"group__netmgmt.html#gaca929d3bfdf44a893d602a278bec8778":[5,1,1,6],188"group__netmgmt.html#gad8db1a14ea4e283e80ac1f65c508ab58":[5,1,1,7],189"group__netmgmt.html#gae54d29ef91d77056ae80bc99bdb99482":[5,1,1,8],190"group__netmgmt.html#gaf964beb411fc9086456eed2210c6d4c5":[5,1,1,0],191"group__packetfilter.html":[5,8,1],192"group__pktmgmt.html":[5,5,1,8],193"group__pktmgmt.html":[5,5,6],194"group__pktmgmt.html#ga222f3c583dd6df5cc017d27c6de2b2df":[5,5,1,8,3],195"group__pktmgmt.html#ga222f3c583dd6df5cc017d27c6de2b2df":[5,5,6,3],196"group__pktmgmt.html#ga29aab3857f1332ba62442028f17853f5":[5,5,1,8,2],197"group__pktmgmt.html#ga29aab3857f1332ba62442028f17853f5":[5,5,6,2],198"group__pktmgmt.html#ga778a1c9f2c0715fb6ac4486ecead404b":[5,5,1,8,5],199"group__pktmgmt.html#ga778a1c9f2c0715fb6ac4486ecead404b":[5,5,6,5],200"group__pktmgmt.html#gac0d6189d631dacbf84e81f5087e58a83":[5,5,1,8,0],201"group__pktmgmt.html#gac0d6189d631dacbf84e81f5087e58a83":[5,5,6,0],202"group__pktmgmt.html#gac9246577619e490acc21e31d4fae00db":[5,5,1,8,1],203"group__pktmgmt.html#gac9246577619e490acc21e31d4fae00db":[5,5,6,1],204"group__pktmgmt.html#gad10f67f5acdd3dadfbc7bdffdf1eecb7":[5,5,1,8,4],205"group__pktmgmt.html#gad10f67f5acdd3dadfbc7bdffdf1eecb7":[5,5,6,4],206"group__pktmgmt.html#gae38feb55ef8dc5fd171ae7ae3d87a549":[5,5,1,8,6],207"group__pktmgmt.html#gae38feb55ef8dc5fd171ae7ae3d87a549":[5,5,6,6],208"group__pktmgmt.html#gaf11d7ed01c8e2f6da748eddf7bd3c267":[5,5,1,8,7],209"group__pktmgmt.html#gaf11d7ed01c8e2f6da748eddf7bd3c267":[5,5,6,7],210"group__platform.html":[5,2],211"group__pwm.html":[5,2,5],212"group__pwm.html#ga4760fa0c7dbd9fd6a9e2db9c772de7de":[5,2,5,0],213"group__pwm.html#ga7f2115a5748e029441421cfedefb6bb1":[5,2,5,2],214"group__pwm.html#ga81d6e172aff83d9b28908f37bea2b259":[5,2,5,1],215"group__queues.html":[5,3,3],216"group__queues.html#ga199073726dff5306e1344c1b92818216":[5,3,3,4],217"group__queues.html#ga4241e95121350d26f72b8af575ad549b":[5,3,3,0],218"group__queues.html#ga5a1885df28aa1e146ca1e334f4997787":[5,3,3,1],219"group__queues.html#ga6237b01c648e5025cff6e59e3c78292b":[5,3,3,5],220"group__queues.html#gaa25255f93948bba8dec1cd74ad875000":[5,3,3,2],221"group__queues.html#gae24567ea636395b9c7de6d7923e3a97d":[5,3,3,3],222"group__rawip.html":[5,5,1,9],223"group__rawip.html":[5,5,7],224"group__rawip.html#ga58707d9da9e84d14ae405c52288bb934":[5,5,1,9,4],225"group__rawip.html#ga58707d9da9e84d14ae405c52288bb934":[5,5,7,4],226"group__rawip.html#ga5bd7e82bc238a3a9048d7b5314015c55":[5,5,7,0],227"group__rawip.html#ga5bd7e82bc238a3a9048d7b5314015c55":[5,5,1,9,0],228"group__rawip.html#gaa366a2944c92c44bbec110415619ab66":[5,5,1,9,2],229"group__rawip.html#gaa366a2944c92c44bbec110415619ab66":[5,5,7,2],230"group__rawip.html#gabb2bcdbf780f039b0207429c1afb808f":[5,5,1,9,5],231"group__rawip.html#gabb2bcdbf780f039b0207429c1afb808f":[5,5,7,5],232"group__rawip.html#gae40843c1dbb897d35facbb26b862abbe":[5,5,7,1],233"group__rawip.html#gae40843c1dbb897d35facbb26b862abbe":[5,5,1,9,1],234"group__rawip.html#gafa8986c1596f2b9842d606afa2af3c6d":[5,5,7,3],235"group__rawip.html#gafa8986c1596f2b9842d606afa2af3c6d":[5,5,1,9,3],236"group__rsa.html":[5,4,10],237"group__rsa.html#ga0131a01dcc69955bb0a4b84f0cbdd942":[5,4,10,6],238"group__rsa.html#ga0be690d6dc93b240dcf85b55c7bda571":[5,4,10,4],239"group__rsa.html#ga0d94d3d99728c879e88c90a15dfcc89f":[5,4,10,10],240"group__rsa.html#ga29a19beea283e73cbddcc866bcc288e2":[5,4,10,8],241"group__rsa.html#ga348b12b1c907541ab170a149f56e52a4":[5,4,10,3],242"group__rsa.html#ga3d130d534163beb060de2fbd198d9eb4":[5,4,10,7],243"group__rsa.html#ga4e0db77001b4c08de899d9177e248605":[5,4,10,1],244"group__rsa.html#ga5c650c79a6148a3b2e7d50488f3ced39":[5,4,10,9],245"group__rsa.html#ga6648428562d036d2a2492bf983eeebf3":[5,4,10,0],246"group__rsa.html#gabad28409c81b64858aea680cb61fe514":[5,4,10,5],247"group__rsa.html#gabb5d26b09e183c8a885eaee270c38fc7":[5,4,10,2],248"group__rtos.html":[5,3],249"group__rtostmr.html":[5,3,4],250"group__rtostmr.html#ga03a49a8efa4003c39c61905c1847e559":[5,3,4,4],251"group__rtostmr.html#ga286ce2bb2e2be4c138267b01c7345060":[5,3,4,1],252"group__rtostmr.html#ga979c9b7fd218deed02b2176abfa11df7":[5,3,4,3]...
Using AI Code Generation
1var BestFit = require('./BestFit.js');2var group = BestFit.group([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 3);3console.log(group);4var BestFit = function () {5 function BestFit() {6 _classCallCheck(this, BestFit);7 }8 _createClass(BestFit, null, [{9 value: function group(items, groupSize) {10 var groups = [];11 var group = [];12 var i = 0;13 items.forEach(function (item) {14 group.push(item);15 i++;16 if (i == groupSize) {17 groups.push(group);18 group = [];19 i = 0;20 }21 });22 if (group.length > 0) {23 groups.push(group);24 }25 return groups;26 }27 }]);28 return BestFit;29}();30module.exports = BestFit;
Using AI Code Generation
1var BestFit = require('bestfit');2var bf = new BestFit();3var group = bf.group([1, 2, 3, 4, 5, 6, 7, 8, 9], 3);4console.log(group);5var BestFit = require('bestfit');6var bf = new BestFit();7var group = bf.group([1, 2, 3, 4, 5, 6, 7, 8, 9], 5);8console.log(group);9var BestFit = require('bestfit');10var bf = new BestFit();11var group = bf.group([1, 2, 3, 4, 5, 6, 7, 8, 9], 6);12console.log(group);13var BestFit = require('bestfit');14var bf = new BestFit();15var group = bf.group([1, 2, 3, 4, 5, 6, 7, 8, 9], 7);16console.log(group);17var BestFit = require('bestfit');18var bf = new BestFit();19var group = bf.group([1, 2, 3, 4, 5, 6, 7, 8, 9], 8);20console.log(group);21var BestFit = require('bestfit');22var bf = new BestFit();23var group = bf.group([
Using AI Code Generation
1var BestFit = require('./BestFit.js');2var bestFit = new BestFit();3var data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];4var groups = 5;5bestFit.group(data, groups, function (err, result) {6 if (err) {7 console.log(err);8 }9 else {10 console.log(result);11 }12});13var BestFit = function () {14 this.group = function (data, groups, callback) {15 var result = [];16 var sum = 0;17 var temp = [];18 var i = 0;19 var j = 0;20 while (i < data.length) {21 sum = sum + data[i];22 temp.push(data[i]);23 if (sum / temp.length == Math.round(sum / temp.length)) {24 result.push(temp);25 temp = [];26 sum = 0;27 }28 i++;29 }30 if (temp.length > 0) {31 result.push(temp);32 }33 callback(null, result);34 }35}36module.exports = BestFit;
Using AI Code Generation
1var bf = new BestFit();2bf.group();3var bf = new BestFit();4bf.group();5var bf = new BestFit();6bf.group();7var bf = new BestFit();8bf.group();9var bf = new BestFit();10bf.group();11var bf = new BestFit();12bf.group();13var bf = new BestFit();14bf.group();15var bf = new BestFit();16bf.group();17var bf = new BestFit();18bf.group();19var bf = new BestFit();20bf.group();21var bf = new BestFit();22bf.group();23var bf = new BestFit();24bf.group();25var bf = new BestFit();26bf.group();27var bf = new BestFit();28bf.group();29var bf = new BestFit();30bf.group();31var bf = new BestFit();32bf.group();33var bf = new BestFit();34bf.group();35var bf = new BestFit();36bf.group();
Using AI Code Generation
1var b = new BestFit();2var x = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);3var y = new Array(2, 4, 6, 8, 10, 12, 14, 16, 18, 20);4var myGroup = b.group(x, y, 5);5for (var i = 0; i < myGroup.length; i++) {6 print("Group " + i + " has " + myGroup[i].length + " points");7}8var b = new BestFit();9var x = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);10var y = new Array(2, 4, 6, 8, 10, 12, 14, 16, 18, 20);11var myGroup = b.group(x, y, 2);12for (var i = 0; i < myGroup.length; i++) {13 print("Group " + i + " has " + myGroup[i].length + " points");14}15var b = new BestFit();16var x = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);17var y = new Array(2, 4, 6, 8, 10, 12, 14, 16, 18, 20);18var myGroup = b.group(x, y, 3);19for (var i = 0; i < myGroup.length; i++) {20 print("Group " + i + " has " + myGroup[i].length + " points");21}
Using AI Code Generation
1var BestFitLine = require('./BestFitLine.js');2var line = new BestFitLine();3var x = [0,1,2,3,4,5,6,7,8,9];4var y = [1,3,2,5,7,8,8,9,10,12];5var group = line.group(x,y);6console.log(group);7console.log(group.slope);8console.log(group.intercept);9console.log(group.r2);10function BestFitLine() {11 this.group = function(x,y) {12 var sumX = 0;13 var sumY = 0;14 var sumXY = 0;15 var sumXX = 0;16 var count = 0;17 var x = 0;18 var y = 0;19 var valuesLength = x.length;20 if (valuesLength != y.length) {21 throw new Error('The parameters values_x and values_y need to have same size!');22 }23 if (valuesLength === 0) {24 return [ [], [] ];25 }26 for (var v = 0; v < valuesLength; v++) {27 x = x[v];28 y = y[v];29 sumX += x;30 sumY += y;31 sumXX += x*x;32 sumXY += x*y;33 count++;34 }35 var m = (count*sumXY - sumX*sumY) / (count*sumXX - sumX*sumX);36 var b = (sumY/count) - (m*sumX)/count;37 var resultValuesX = [];38 var resultValuesY = [];39 for (var v = 0; v < valuesLength; v++) {40 x = x[v];41 y = x * m + b;42 resultValuesX.push(x);43 resultValuesY.push(y);44 }
Using AI Code Generation
1var BestFit = require('BestFit');2 {x: 0, y: 0},3 {x: 1, y: 0},4 {x: 0, y: 1},5 {x: 1, y: 1},6 {x: 0.5, y: 0.5}7];8var circle = BestFit.group(points, 'circle');9console.log(circle.center);10console.log(circle.radius);11var BestFit = require('BestFit');12 {x: 0, y: 0},13 {x: 1, y: 0},14 {x: 0, y: 1},15 {x: 1, y: 1},16 {x: 0.5, y: 0.5}17];18var line = BestFit.group(points, 'line');19console.log(line.slope);20console.log(line.yIntercept);21var BestFit = require('BestFit');22 {x: 0, y: 0},23 {x: 1, y: 0},24 {x: 0, y: 1},25 {x: 1, y: 1},26 {x: 0.5, y: 0.5}27];28var parabola = BestFit.group(points, 'parabola');29console.log(parabola.a);30console.log(parabola.b);31console.log(parabola.c);32var BestFit = require('BestFit');33 {x: 0, y: 0},
Using AI Code Generation
1var k = 3;2var points = [[0,0],[1,1],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10]];3var groups = BestFit.group(points,k);4print("groups = " + groups);5var k = 2;6var points = [[0,0],[1,1],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10]];7var groups = BestFit.group(points,k);8print("groups = " + groups);9var k = 1;10var points = [[0,0],[1,1],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10]];11var groups = BestFit.group(points,k);12print("groups = " + groups);13var k = 0;14var points = [[0,0],[1,1],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10]];15var groups = BestFit.group(points,k);16print("groups = " +
Using AI Code Generation
1var BestRoute = require('./bestRoute');2var bestRoute = new BestRoute();3bestRoute.group('A', 'B', 1);4bestRoute.group('B', 'C', 2);5bestRoute.group('A', 'C', 3);6bestRoute.group('A', 'D', 4);7bestRoute.group('D', 'C', 5);8bestRoute.group('D', 'E', 6);9bestRoute.group('E', 'C', 7);10bestRoute.group('C', 'F', 8);11bestRoute.group('E', 'F', 9);12var bestRoute = new BestRoute();13var bestRoute = bestRoute.bestRoute('A', 'F');14console.log(bestRoute);
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!