language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def remove(self, *widgets): ''' Remove @widgets from the blitting hand of the Container(). Each arg must be a Widget(), a fellow Container(), or an iterable. Else, things get ugly... ''' for w in widgets: if w in self.widgets: self.widgets.re...
java
public void marshall(CancelWorkflowExecutionDecisionAttributes cancelWorkflowExecutionDecisionAttributes, ProtocolMarshaller protocolMarshaller) { if (cancelWorkflowExecutionDecisionAttributes == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } tr...
python
def get_controversial(self, *args, **kwargs): """Return a get_content generator for controversial submissions. Corresponds to submissions provided by ``https://www.reddit.com/controversial/`` for the session. The additional parameters are passed directly into :meth:`.get_conten...
java
public TaskDefinition withRequiresCompatibilities(Compatibility... requiresCompatibilities) { com.amazonaws.internal.SdkInternalList<String> requiresCompatibilitiesCopy = new com.amazonaws.internal.SdkInternalList<String>( requiresCompatibilities.length); for (Compatibility value : requi...
python
def reversed_blocks(handle, blocksize=4096): """Generate blocks of file's contents in reverse order.""" handle.seek(0, os.SEEK_END) here = handle.tell() while 0 < here: delta = min(blocksize, here) here -= delta handle.seek(here, os.SEEK_SET) yield handle.read(delta)
python
def prepare_metadata(metadata, source_metadata=None, append=False, append_list=False): """Prepare a metadata dict for an :class:`S3PreparedRequest <S3PreparedRequest>` or :class:`MetadataPreparedRequest <MetadataPreparedRequest>` object. :type metadata: dict :param metadata: The metadata dict to be...
java
public BufferedImage createImage(File file) throws IOException { resetAvailabilityFlags(); this.data = PELoader.loadPE(file); image = new BufferedImage(fileWidth, height, IMAGE_TYPE); drawSections(); Overlay overlay = new Overlay(data); if (overlay.exists()) { long overlayOffset = overlay.getOffset(); ...
java
@Override public void connect() throws Exception { String host = sysConfig.getProperty(RestCommunication.SYSPROP_HOST, "localhost"); int port = sysConfig.getIntProperty(RestCommunication.SYSPROP_PORT, 443); RestAssured.useRelaxedHTTPSValidation(); this.reqSpec = RestAssured.given(); ...
java
public static String evaluate(CharSequence text) { if(text==null) return null; Matcher m = JS_PATTERN.matcher(text); StringBuffer ret = new StringBuffer(); final boolean isNas = scriptEngine.getFactory().getEngineName().toLowerCase().contains("nashorn"); while(m.find()) { String source = (isNa...
java
public static boolean isInstalled(int major, int minor) { try { // see http://support.microsoft.com/?scid=kb;en-us;315291 for the basic algorithm // observation in my registry shows that the actual key name can be things like "v2.0 SP1" // or "v2.0.50727", so the regexp is wr...
java
public final BaseDescr equalityExpression() throws RecognitionException { BaseDescr result = null; Token op=null; BaseDescr left =null; BaseDescr right =null; try { // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:300:3: (left= instanceOfExpression ( (op= EQUALS |op= NOT_EQUALS ) right= ...
python
def plot_learning_curve(clf, X, y, title='Learning Curve', cv=None, shuffle=False, random_state=None, train_sizes=None, n_jobs=1, scoring=None, ax=None, figsize=None, title_fontsize="large", text_fontsize="medium"): """G...
python
def evaluate_expression(expression, vars): '''evaluation an expression''' try: v = eval(expression, globals(), vars) except NameError: return None except ZeroDivisionError: return None return v
python
def temp_land(self, pcps, water): """Derive high/low percentiles of land temperature Equations 12 an 13 (Zhu and Woodcock, 2012) Parameters ---------- pcps: ndarray potential cloud pixels, boolean water: ndarray water mask, boolean tirs1: n...
python
def write(self, source=None, rows=None, **kwargs): ''' Transfform structural metadata, i.e. codelists, concept-schemes, lists of dataflow definitions or category-schemes from a :class:`pandasdmx.model.StructureMessage` instance into a pandas DataFrame. This method is calle...
java
public static <V extends FeatureVector<?>> VectorFieldTypeInformation<V> assumeVectorField(Relation<V> relation) { try { return ((VectorFieldTypeInformation<V>) relation.getDataTypeInformation()); } catch(Exception e) { throw new UnsupportedOperationException("Expected a vector field, got type i...
python
def fetch_git(repo, filename, branch="master", hash=None): """Fetch a gist and return the contents as a string.""" url = git_url(repo, filename, branch, hash) response = requests.get(url) if response.status_code != 200: raise Exception('Got a bad status looking up gist.') body = response.te...
java
public Observable<WorkflowRunInner> getAsync(String resourceGroupName, String workflowName, String runName) { return getWithServiceResponseAsync(resourceGroupName, workflowName, runName).map(new Func1<ServiceResponse<WorkflowRunInner>, WorkflowRunInner>() { @Override public WorkflowRunIn...
python
def angle(self, vector): """Return the angle between two vectors in degrees.""" return math.degrees( math.acos( self.dot(vector) / (self.magnitude() * vector.magnitude()) ) )
python
def _load_folder(folder_entry, corpus): """ Load the given subfolder into the corpus (e.g. bed, one, ...) """ for wav_path in glob.glob(os.path.join(folder_entry.path, '*.wav')): wav_name = os.path.basename(wav_path) basename, __ = os.path.splitext(wav_name) command ...
java
@Override public void setNameMap(Map<java.util.Locale, String> nameMap, java.util.Locale defaultLocale) { _commerceTaxMethod.setNameMap(nameMap, defaultLocale); }
python
def __prepare_record(self, record, enabled_fields): """Prepare log record with given fields.""" message = record.getMessage() if hasattr(record, 'prefix'): message = "{}{}".format((str(record.prefix) + ' ') if record.prefix else '', message) obj = { 'name': recor...
python
def iget_list_column_slice(list_, start=None, stop=None, stride=None): """ iterator version of get_list_column """ if isinstance(start, slice): slice_ = start else: slice_ = slice(start, stop, stride) return (row[slice_] for row in list_)
java
public static int[] selectPyramidScale( int imageWidth , int imageHeight, int minSize ) { int w = Math.max(imageWidth,imageHeight); int maxScale = w/minSize; int n = 1; int scale = 1; while( scale*2 < maxScale ) { n++; scale *= 2; } int ret[] = new int[n]; scale = 1; for( int i = 0; i < n; i++...
java
public JBBPTextWriter Long(final long[] values, int off, int len) throws IOException { while (len-- > 0) { this.Long(values[off++]); } return this; }
java
public EmbeddedGobblin enableMetrics() { this.usePlugin(new GobblinMetricsPlugin.Factory()); this.sysConfig(ConfigurationKeys.METRICS_ENABLED_KEY, Boolean.toString(true)); return this; }
python
def generate_bytes(cls, payload, fin_bit, opcode, mask_payload): """ Format data to string (buffered_bytes) to send to server. """ # the first byte contains the FIN bit, the 3 RSV bits and the # 4 opcode bits and for a client will *always* be 1000 0001 (or 129). # so we want the ...
java
public void processResponseEvent(HttpClientNIOResponseEvent event, HttpClientNIORequestActivityImpl activity) { HttpClientNIORequestActivityHandle ah = new HttpClientNIORequestActivityHandle(activity.getId()); if (tracer.isFineEnabled()) tracer.fine("==== FIRING ResponseEvent EVENT TO...
python
def ut_datetime_to_mjd( self, utDatetime): """*ut datetime to mjd* If the date given has no time associated with it (e.g. ``20160426``), then the datetime assumed is ``20160426 00:00:00.0``. Precision should be respected. **Key Arguments:** - ``utD...
java
private CmsPushButton createButton(String buttonText) { CmsPushButton button = new CmsPushButton(); button.setTitle(buttonText); button.setText(buttonText); button.setSize(I_CmsButton.Size.medium); button.setUseMinWidth(true); return button; }
python
def _filter_startswith(self, term, field_name, field_type, is_not): """ Returns a startswith query on the un-stemmed term. Assumes term is not a list. """ if field_type == 'text': if len(term.split()) == 1: term = '^ %s*' % term query ...
python
def add_chassis(self, chassis, port=22611, password='xena'): """ Add chassis. XenaManager-2G -> Add Chassis. :param chassis: chassis IP address :param port: chassis port number :param password: chassis password :return: newly created chassis :rtype: xenamanager....
java
public long getCardinality() { if (pos > 0) { return totalHits; } try { EsResponse res = client.search(index, type, query); Document hits = (Document) res.get("hits"); totalHits = hits.getInteger("total"); return totalHits; } ca...
python
def calculate_ethinca_metric_comps(metricParams, ethincaParams, mass1, mass2, spin1z=0., spin2z=0., full_ethinca=True): """ Calculate the Gamma components needed to use the ethinca metric. At present this outputs the standard TaylorF2 metric over the end time and chirp...
java
private Map<String, String> launchArgs(int port, String remoteVMOptions) { Map<String, String> argumentName2Value = new HashMap<>(); argumentName2Value.put("main", remoteAgent + " " + port); argumentName2Value.put("options", remoteVMOptions); return argumentName2Value; }
python
def verify_pubkey_sig(self, message, sig): ''' Wraps the verify_signature method so we have additional checks. :rtype: bool :return: Success or failure of public key verification ''' if self.opts['master_sign_key_name']: path = os.path.join(self.opts[...
java
public IAtomContainer proposeStructure() { logger.debug("RandomGenerator->proposeStructure() Start"); do { try { trial = molecule.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Could not clone IAtomContainer!" + ...
python
def __buttonEvent(event=None, buttons=None, virtual_event=None): """ Handle an event that is generated by a person interacting with a button. It may be a button press or a key press. """ # TODO: Replace globals with tkinter variables global boxRoot, __replyButtonText # Determine window loc...
java
public void refreshSignature () { if (postStartTimestamp == 0 || (System.nanoTime() - postStartTimestamp) > Duration.ofMinutes(sigExpireInMinute).toNanos()) { // generate signature try { signature = SharedAccessSignatureTokenProvider .generateSharedAccessSignature(sasKeyName, sasKey,...
python
def transformer(self, instance_count, instance_type, strategy=None, assemble_with=None, output_path=None, output_kms_key=None, accept=None, env=None, max_concurrent_transforms=None, max_payload=None, tags=None, role=None, model_server_workers=None, volume_kms_key=None): "...
java
@Override Path relativizeAgainstRoot(final WatchedDirectory pWatchedDirectory, final Path pPath) { // Because we are on the last root directory possible we can ignore the // directory key here. return getPath().relativize(pPath); }
python
def _get_agent_grounding(agent): """Convert an agent to the corresponding PyBEL DSL object (to be filled with variants later).""" def _get_id(_agent, key): _id = _agent.db_refs.get(key) if isinstance(_id, list): _id = _id[0] return _id hgnc_id = _get_id(agent, 'HGNC') ...
java
private List<String> searchTokens(SNode n, long cnr) { List<String> result = new LinkedList<String>(); if (n instanceof SToken) { result.add(n.getId()); if (componentOfToken.get(n.getId()) == null) { List<Long> newlist = new LinkedList<Long>(); newlist.add(cnr); c...
python
def unpause(self): """ Unpause the animation. """ self._pause_level -= 1 if not self._pause_level: self._offset = self._paused_time - self._clock()
java
@CheckForNull public UserDetails getCached(String idOrFullName) throws UsernameNotFoundException { Boolean exists = existenceCache.getIfPresent(idOrFullName); if (exists != null && !exists) { throw new UserMayOrMayNotExistException(String.format("\"%s\" does not exist", idOrFullName)); ...
python
def getLabel(self,form): """A label can be a string, dict (lookup by name) or a callable (passed the form).""" return specialInterpretValue(self.label,self.name,form=form)
java
@SuppressWarnings({ "checkstyle:returncount", "checkstyle:cyclomaticcomplexity" }) public static Level parseLoggingLevel(String level) { if (level == null) { return Level.INFO; } switch (level.toLowerCase()) { case "none": //$NON-NLS-1$ case "false": //$NON-NLS-1$ case "0": //$NON-NLS-1$ return Level...
java
public JsonObject getJsonObject(String name) throws JsonException { JsonElement el = get(name); if (!el.isJsonObject()) { throw Util.typeMismatch(name, el, "JsonObject"); } return el.asJsonObject(); }
python
def get_range_kwargs(self): """ Convert row range object to dict which can be passed to google.bigtable.v2.RowRange add method. """ range_kwargs = {} if self.start_key is not None: start_key_key = "start_key_open" if self.start_inclusive: s...
python
def create_feature_class(out_path, out_name, geom_type, wkid, fields, objectIdField): """ creates a feature class in a given gdb or folder """ if arcpyFound == False: raise Except...
python
def db(self): """Return the correct KV store for this execution.""" if self._db is None: if self.tcex.default_args.tc_playbook_db_type == 'Redis': from .tcex_redis import TcExRedis self._db = TcExRedis( self.tcex.default_args.tc_playbook_d...
python
def AddEventData(self, event_data): """Adds event data. Args: event_data (EventData): event data. Raises: IOError: when the storage writer is closed. OSError: when the storage writer is closed. """ self._RaiseIfNotWritable() event_data = self._PrepareAttributeContainer(event...
java
protected VoltTable runDML(String dml, boolean transformDml) { String modifiedDml = (transformDml ? transformDML(dml) : dml); printTransformedSql(dml, modifiedDml); return super.runDML(modifiedDml); }
python
def timedelta_seconds(timedelta): """Returns the total timedelta duration in seconds.""" return (timedelta.total_seconds() if hasattr(timedelta, "total_seconds") else timedelta.days * 24 * 3600 + timedelta.seconds + timedelta.microseconds / 1000000.)
java
public <T, K> T don( Thing<K> core, Class<T> trait, boolean logical, Mode... modes ) { return don( core.getCore(), trait, logical, modes ); }
java
public <T> void use(Class<T> type, Annotation qualifier, Class<? extends Annotation> injectAnnotation, Consumer<T> consumer) throws ProvideException, CircularDependenciesException, ProviderMissingException { T instance = reference(type, qualifier, injectAnnotation); c...
java
public boolean checkProperty(T prop, Object value) { Object attribute = getProperty(prop); return (attribute != null && attribute.equals(value)); }
python
def run(self): """ run the plugin """ if self.workflow.builder.base_from_scratch and not self.workflow.builder.parent_images: self.log.info("Skipping add yum repo by url: unsupported for FROM-scratch images") return if self.repourls: for repou...
java
public String convertRenderingIntentReserved2ToString(EDataType eDataType, Object instanceValue) { return instanceValue == null ? null : instanceValue.toString(); }
python
def normalize_locale(locale): """ Normalize locale Extracts language code from passed in locale string to be used later for dictionaries loading. :param locale: string, locale (en, en_US) :return: string, language code """ import r...
python
def modflow_sfr_gag_to_instruction_file(gage_output_file, ins_file=None, parse_filename=False): """writes an instruction file for an SFR gage output file to read Flow only at all times Parameters ---------- gage_output_file : str the gage output filename (ASCII). ...
java
@Override public int compareTo(final Path other) { if (other == null) { throw new IllegalArgumentException("other path must be specified"); } // Just defer to alpha ordering since we're absolute return this.toString().compareTo(other.toString()); }
python
def get_authorize_url(self, redirect_uri='', **kw): ''' return the authorization url that the user should be redirected to. ''' return self._mixin.get_authorize_url(redirect_uri or self._mixin._redirect_uri, **kw)
java
public NodeCache getNodeCache( String workspaceName ) throws WorkspaceNotFoundException { NodeCache cache = overriddenNodeCachesByWorkspaceName.get(workspaceName); if (cache == null) { cache = repositoryCache.getWorkspaceCache(workspaceName); } return cache; }
python
def fetch_entity_cls_from_registry(entity): """Util Method to fetch an Entity class from an entity's name""" # Defensive check to ensure we only process if `to_cls` is a string if isinstance(entity, str): try: return repo_factory.get_entity(entity) except AssertionError: ...
java
public static <T> StreamEx<T> ofTree(T root, Function<T, Stream<T>> mapper) { TreeSpliterator<T, T> spliterator = new TreeSpliterator.Plain<>(root, mapper); return new StreamEx<>(spliterator, StreamContext.SEQUENTIAL.onClose(spliterator::close)); }
java
public GetMaintenanceWindowExecutionTaskResult withTaskParameters(java.util.Map<String, MaintenanceWindowTaskParameterValueExpression>... taskParameters) { if (this.taskParameters == null) { setTaskParameters(new com.amazonaws.internal.SdkInternalList<java.util.Map<String, MaintenanceWindowTaskParam...
java
public synchronized boolean next(long seqNum) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "next", new Long(seqNum)); // cancel the existing alarm and create a new one expiryAlarmHandle.cancel(); expiryAlarmHandle = am.create(parent.getMessagePr...
python
def cause_repertoire(self, mechanism, purview): """Return the cause repertoire of a mechanism over a purview. Args: mechanism (tuple[int]): The mechanism for which to calculate the cause repertoire. purview (tuple[int]): The purview over which to calculate the ...
python
def datetime_to_timestamp(dt): """Convert timezone-aware `datetime` to POSIX timestamp and return seconds since UNIX epoch. Note: similar to `datetime.timestamp()` in Python 3.3+. """ epoch = datetime.utcfromtimestamp(0).replace(tzinfo=UTC) return (dt - epoch).total_seconds()
java
public static void runExample( AdWordsServicesInterface adWordsServices, AdWordsSession session, @Nullable Long adGroupId) throws RemoteException { // Get the TargetingIdeaService. TargetingIdeaServiceInterface targetingIdeaService = adWordsServices.get(session, TargetingIdeaServiceInterface...
python
def list_tasks(location='\\'): r''' List all tasks located in a specific location in the task scheduler. :param str location: A string value representing the folder from which you want to list tasks. Default is '\\' which is the root for the task scheduler (C:\Windows\System32\tasks). ...
python
def resample_1d(arr, n_out=None, random_state=None): """Resample an array, with replacement. Parameters ========== arr: np.ndarray The array is resampled along the first axis. n_out: int, optional Number of samples to return. If not specified, return ``len(arr)`` samples. ...
python
def escalate_incident( self, incident, update_mask=None, subscriptions=None, tags=None, roles=None, artifacts=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, ): ...
java
public static authenticationsamlpolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{ authenticationsamlpolicy_authenticationvserver_binding obj = new authenticationsamlpolicy_authenticationvserver_binding(); obj.set_name(name); authenticationsamlpolicy_authenticationvse...
python
def as_cross(self, delimiter=''): ''' Return a cross rate representation with respect USD. @param delimiter: could be '' or '/' normally ''' if self.order > usd_order: return 'USD%s%s' % (delimiter, self.code) else: return '%s%sUSD' % (self.code, d...
python
def readbits(self, bits): """ Read the specified number of bits from the stream. Returns 0 for bits == 0. """ if bits == 0: return 0 # fast byte-aligned path if bits % 8 == 0 and self._bits_pending == 0: return self._read_...
java
private Tree<K, V> del(Tree<K, V> tree, K k) { if (tree == null) return null; int cmp = ordering.compare(k, tree.getKey(kf)); if (cmp < 0) return delLeft(tree, k); else if (cmp > 0) return delRight(tree, k); else return append(tree.getLeft(), tree.getRight()); }
python
def compare_version(value): """ Determines if the provided version value compares with program version. `value` Version comparison string (e.g. ==1.0, <=1.0, >1.1) Supported operators: <, <=, ==, >, >= """ # extract parts from value import re...
python
def change_interface_id(self, interface_id): """ Generic change interface ID for VLAN interfaces that are not Inline Interfaces (non-VLAN sub interfaces do not have an interface_id field). :param str, int interface_id: interface ID value """ _, second = s...
python
def add_result_hook(self, hook: Type["QueryResultHook"]) -> Type["QueryResultHook"]: """ Add a query result hook to the chain :param hook: hook to add :return: added hook (same as hook to add) """ hook.next_hook = self._query_result_hook self._query_result_hook = ...
java
public static SyncMapPermissionFetcher fetcher(final String pathServiceSid, final String pathMapSid, final String pathIdentity) { return new SyncMapPermissionFetcher(pathServiceSid, pathMapSid, pathIdentity);...
python
def get_map_matrix(inputfile): """ Return the matrix representation of the genetic map. :arg inputfile: the path to the input file from which to retrieve the genetic map. """ matrix = read_input_file(inputfile, sep=',', noquote=True) output = [['Locus', 'Group', 'Position']] for row in...
python
def full_path(self): '''The full path of this node.''' with self._mutex: if self._parent: return self._parent.full_path + [self._name] else: return [self._name]
java
protected double smoothedProbability(Token tok, double freq, double totalWeight) { return (freq + pseudoCount * backgroundProb(tok)) / (totalWeight + pseudoCount); }
python
def load_map_projection(filename, center=None, center_right=None, radius=None, method='orthographic', registration='native', chirality=None, sphere_radius=None, pre_affine=None, post_affine=None, meta_data=None): ''' load_map_projection(fil...
python
def setup_icons(self, ): """Set all icons on buttons :returns: None :rtype: None :raises: None """ plus_icon = get_icon('glyphicons_433_plus_bright.png', asicon=True) self.addnew_tb.setIcon(plus_icon)
python
def load_config_from_files(filenames=None): """Load D-Wave Cloud Client configuration from a list of files. .. note:: This method is not standardly used to set up D-Wave Cloud Client configuration. It is recommended you use :meth:`.Client.from_config` or :meth:`.config.load_config` instead. ...
java
public List<Milestone> getMilestones(Object projectIdOrPath, int page, int perPage) throws GitLabApiException { Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "projects", getProjectIdOrPath(projectIdOrPath), "milestones"); return (response.readEntity(new G...
java
@SuppressWarnings("unchecked") public static <X> X deserializeFunction(RuntimeContext context, byte[] serFun) throws FlinkException { if (!jythonInitialized) { // This branch is only tested by end-to-end tests String path = context.getDistributedCache().getFile(PythonConstants.FLINK_PYTHON_DC_ID).getAbsolutePa...
python
def login(self, email, password): """ login using email and password :param email: email address :param password: password """ rsp = self._request() self.default_headers['Authorization'] = rsp.data['token'] return rsp
python
async def receive(self, pkt): """Receive packet from the client.""" self.server.logger.info('%s: Received packet %s data %s', self.sid, packet.packet_names[pkt.packet_type], pkt.data if not isinstance(pkt.data, bytes) ...
java
public static StorageObjectSummary createFromS3ObjectSummary(S3ObjectSummary objSummary) { return new StorageObjectSummary( objSummary.getBucketName(), objSummary.getKey(), // S3 ETag is not always MD5, but since this code path is only // used in skip duplicate files in PUT comman...
java
@Nullable public static BigInteger parseBigInteger (@Nullable final String sStr, @Nonnegative final int nRadix, @Nullable final BigInteger aDefault) { if (sStr != null && sStr.length () > 0) try { return ...
java
public void setAnimationFromJson(String jsonString, @Nullable String cacheKey) { setAnimation(new JsonReader(new StringReader(jsonString)), cacheKey); }
java
@Nonnull public final Launcher decorateByPrefix(final String... prefix) { final Launcher outer = this; return new Launcher(outer) { @Override public boolean isUnix() { return outer.isUnix(); } @Override public Proc launch(...
java
@Override public HTTaxinvoiceSearchResult search(String CorpNum, String JobID, String[] Type, String[] TaxType, String[] PurposeType, String TaxRegIDYN, String TaxRegIDType, String TaxRegID, Integer Page, Integer PerPage, String Order, String UserID) throws PopbillException { if (JobID.length() != 18) ...
java
public PayloadType<ConstraintType<T>> getOrCreatePayload() { Node node = childNode.getOrCreate("payload"); PayloadType<ConstraintType<T>> payload = new PayloadTypeImpl<ConstraintType<T>>(this, "payload", childNode, node); return payload; }
java
public EC2TagSet withEc2TagSetList(java.util.Collection<java.util.List<EC2TagFilter>> ec2TagSetList) { setEc2TagSetList(ec2TagSetList); return this; }
java
public static <T> Mapping<T> make(Class<T> clazz, AnnotationSet<?, ?> annotationSet, boolean includeParentFields) { return new Mapping<T>(clazz, annotationSet, includeParentFields); }