Returns the defaultFaceDescriptor. Creates one if needed.
195008
private CommandFaceDescriptor getOrCreateFaceDescriptor() {
		if (!isFaceConfigured()) {
			if (logger.isInfoEnabled()) {
				logger.info("Lazily instantiating default face descriptor on behalf of caller to prevent npe; "
						+ "command is being configured manually, right?");
			}
			if(ValkyrieRepository.isCurrentlyRunningInContext()) {
				ValkyrieRepository.getInstance().getApplicationConfig().commandConfigurer().configure(this);
			} else {
				setFaceDescriptor(new CommandFaceDescriptor());
			}
		}
		return getFaceDescriptor();
	}
1186125
public static PropertyIdentifier getIdentifier(final ConfigDescriptor descriptor)
    {
        checkNotNull(descriptor);
        return new PropertyIdentifierImpl(descriptor.getConfigName(), descriptor.getMethod().getDeclaringClass());
    }
231299
function detectFaces(img, faceSize = 150) {
      return locateFaces(img)
        .then(rects => getFacesFromLocations(img, rects.map(mmodRect => mmodRect.rect), faceSize))
    }
51426
def get_type_by_descriptor(descriptor):
        
        if descriptor == None:
            raise Exception("Type descriptor cannot be null")

        return TypeReflector.get_type(descriptor.get_name(), descriptor.get_library())
1140967
def get_default_config(self):
        
        default_config = super(SNMPInterfaceCollector,
                               self).get_default_config()
        default_config['path'] = 'interface'
        default_config['byte_unit'] = ['bit', 'byte']
        return default_config
1191487
def get_default_config(self):
        
        config = super(JCollectdCollector, self).get_default_config()
        config.update({
            'path':     'jvm',
            'listener_host': '127.0.0.1',
            'listener_port': 25826,
        })
        return config
662939
@Override
    public MethodDescriptor getMethodDescriptor() {
        return DescriptorFactory.instance().getMethodDescriptor(ClassName.toSlashedClassName(getClassName()), getName(),
                getSignature(), isStatic());
    }
581704
public FacesConfigLifecycleType<WebFacesConfigDescriptor> getOrCreateLifecycle()
   {
      List<Node> nodeList = model.get("lifecycle");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new FacesConfigLifecycleTypeImpl<WebFacesConfigDescriptor>(this, "lifecycle", model, nodeList.get(0));
      }
      return createLifecycle();
   }
820641
public FacesConfigApplicationType<WebFacesConfigDescriptor> getOrCreateApplication()
   {
      List<Node> nodeList = model.get("application");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new FacesConfigApplicationTypeImpl<WebFacesConfigDescriptor>(this, "application", model, nodeList.get(0));
      }
      return createApplication();
   }
772554
private static ImageDescriptor createUnManaged(String prefix, String name)
	{
		return create(prefix, name, true);
	}
861161
def default_profiler(f, _type, _value):
    ''' 
    '''
    try:
        profile_print(
            '\n'.join([
                get_frame_src(f),
                get_locals(f),
                '----------------------------------------'
            ])
        )
    except:
        pass
785446
public org.tensorflow.framework.TensorDescription getTensor() {
    return tensor_ == null ? org.tensorflow.framework.TensorDescription.getDefaultInstance() : tensor_;
  }
672983
public FacesConfigReferencedBeanType<WebFacesConfigDescriptor> getOrCreateReferencedBean()
   {
      List<Node> nodeList = model.get("referenced-bean");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new FacesConfigReferencedBeanTypeImpl<WebFacesConfigDescriptor>(this, "referenced-bean", model, nodeList.get(0));
      }
      return createReferencedBean();
   }
891116
public String toDescriptor() {
        int i;
        StringBuilder result;

        if (isArray()) {
            result = new StringBuilder();
            for (i = 0; i < dimensions; i++) {
                result.append('[');
            }
            result.append(componentType.descriptor);
            if (componentType.id == T_REFERENCE) {
                result.append(name.replace('.', '/'));
                result.append(';');
            }
            return result.toString();
        } else {
            if (componentType.id != T_REFERENCE) {
                throw new RuntimeException("not a reference type: " + this);
            }
            return name.replace('.', '/');
        }
    }
902628
function loadPresetDescriptor(descriptor) {
  return {
    type: "preset",
    options: loadDescriptor(descriptor).value,
    alias: descriptor.alias,
    loc: descriptor.loc,
    dirname: descriptor.dirname
  };
}
206808
public FacesConfigComponentType<WebFacesConfigDescriptor> getOrCreateComponent()
   {
      List<Node> nodeList = model.get("component");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new FacesConfigComponentTypeImpl<WebFacesConfigDescriptor>(this, "component", model, nodeList.get(0));
      }
      return createComponent();
   }
295558
def get_file_descriptor(self):
        
        return self._subscription.connection and self._subscription.connection._sock.fileno()