code
stringlengths 10
174k
| nl
stringlengths 3
129k
|
---|---|
public BasicCondition(String variable,String value,Relation relation){
this.variable=Template.create(variable);
this.templateValue=Template.create(value);
groundValue=(templateValue.isUnderspecified()) ? null : ValueFactory.create(value);
this.relation=relation;
}
| Creates a new basic condition, given a variable label, an expected value, and a relation to hold between the variable and its value |
public String[] validBaudRates(){
return new String[]{"19,200 bps"};
}
| Get an array of valid baud rates. This is currently only 19,200 bps |
static double slowCos(final double x,final double result[]){
final double xs[]=new double[2];
final double ys[]=new double[2];
final double facts[]=new double[2];
final double as[]=new double[2];
split(x,xs);
ys[0]=ys[1]=0.0;
for (int i=FACT.length - 1; i >= 0; i--) {
splitMult(xs,ys,as);
ys[0]=as[0];
ys[1]=as[1];
if ((i & 1) != 0) {
continue;
}
split(FACT[i],as);
splitReciprocal(as,facts);
if ((i & 2) != 0) {
facts[0]=-facts[0];
facts[1]=-facts[1];
}
splitAdd(ys,facts,as);
ys[0]=as[0];
ys[1]=as[1];
}
if (result != null) {
result[0]=ys[0];
result[1]=ys[1];
}
return ys[0] + ys[1];
}
| For x between 0 and pi/4 compute cosine using Talor series cos(x) = 1 - x^2/2! + x^4/4! ... |
public synchronized void add(double minValue,double maxValue){
super.add(minValue);
mMaxValues.add(maxValue);
}
| Adds new values to the series |
public NecronomiconSummonRitual(String unlocalizedName,int bookType,float requiredEnergy,Class<? extends EntityLivingBase> entity,Object... offerings){
this(unlocalizedName,bookType,-1,requiredEnergy,entity,offerings);
}
| A Necronomicon Ritual |
public AssertionFailedException(Exception ex){
super(Messages.getString("AssertionFailedException.0") + ex.toString() + Messages.getString("AssertionFailedException.1"));
}
| Creates an AssertionFailedException for the given exception that should never have been thrown. |
@Override public void handlePatch(Operation op){
setOperationHandlerInvokeTimeStat(op);
if (!op.hasBody()) {
op.fail(new IllegalArgumentException("body is required"));
return;
}
EnumerationContext ctx=new EnumerationContext(op);
AdapterUtils.validateEnumRequest(ctx.enumRequest);
if (ctx.enumRequest.isMockRequest) {
op.complete();
AdapterUtils.sendPatchToEnumerationTask(this,ctx.enumRequest.taskReference);
return;
}
handleEnumerationRequest(ctx);
}
| The REST PATCH request handler. This is the entry of starting an enumeration. |
public Polygon2D add(float x,float y){
return add(new Vec2D(x,y));
}
| Adds a new vertex to the polygon (builder pattern). |
public static void filledPolygon(double[] x,double[] y){
if (x == null) throw new NullPointerException();
if (y == null) throw new NullPointerException();
int n1=x.length;
int n2=y.length;
if (n1 != n2) throw new IllegalArgumentException("arrays must be of the same length");
int n=n1;
GeneralPath path=new GeneralPath();
path.moveTo((float)scaleX(x[0]),(float)scaleY(y[0]));
for (int i=0; i < n; i++) path.lineTo((float)scaleX(x[i]),(float)scaleY(y[i]));
path.closePath();
offscreen.fill(path);
draw();
}
| Draws a polygon with the vertices (<em>x</em><sub>0</sub>, <em>y</em><sub>0</sub>), (<em>x</em><sub>1</sub>, <em>y</em><sub>1</sub>), ..., (<em>x</em><sub><em>n</em>−1</sub>, <em>y</em><sub><em>n</em>−1</sub>). |
@POST @Consumes({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) @CheckPermission(roles={Role.TENANT_ADMIN}) public TaskResourceRep createHost(HostCreateParam createParam,@QueryParam("validate_connection") @DefaultValue("false") final Boolean validateConnection){
URI tid=createParam.getTenant();
if ((tid == null) || tid.toString().isEmpty()) {
_log.error("The tenant id is missing");
throw APIException.badRequests.requiredParameterMissingOrEmpty("tenant");
}
TenantOrg tenant=_permissionsHelper.getObjectById(tid,TenantOrg.class);
ArgValidator.checkEntity(tenant,tid,isIdEmbeddedInURL(tid),true);
validateHostData(createParam,tid,null,validateConnection);
Host host=createNewHost(tenant,createParam);
host.setRegistrationStatus(RegistrationStatus.REGISTERED.toString());
_dbClient.createObject(host);
auditOp(OperationTypeEnum.CREATE_HOST,true,null,host.auditParameters());
return doDiscoverHost(host);
}
| Creates a new host for the tenant organization. Discovery is initiated after the host is created. |
public boolean hasEdge(DigraphNode node){
return outNodes.contains(node);
}
| Returns <code>true</code> if an edge exists between this node and the given node. |
@Override @Deprecated public Condition duplicate(){
return this;
}
| Since the condition cannot be altered after creation we can just return the condition object itself. |
public E elementAt(int index){
return delegate.elementAt(index);
}
| Returns the component at the specified index. Throws an <code>ArrayIndexOutOfBoundsException</code> if the index is negative or not less than the size of the list. <blockquote> <b>Note:</b> Although this method is not deprecated, the preferred method to use is <code>get(int)</code>, which implements the <code>List</code> interface defined in the 1.2 Collections framework. </blockquote> |
void addFillComponents(Container panel,int[] cols,int[] rows){
Dimension filler=new Dimension(10,10);
boolean filled_cell_11=false;
CellConstraints cc=new CellConstraints();
if (cols.length > 0 && rows.length > 0) {
if (cols[0] == 1 && rows[0] == 1) {
panel.add(Box.createRigidArea(filler),cc.xy(1,1));
filled_cell_11=true;
}
}
for (int index=0; index < cols.length; index++) {
if (cols[index] == 1 && filled_cell_11) {
continue;
}
panel.add(Box.createRigidArea(filler),cc.xy(cols[index],1));
}
for (int index=0; index < rows.length; index++) {
if (rows[index] == 1 && filled_cell_11) {
continue;
}
panel.add(Box.createRigidArea(filler),cc.xy(1,rows[index]));
}
}
| Adds fill components to empty cells in the first row and first column of the grid. This ensures that the grid spacing will be the same as shown in the designer. |
@Deprecated public void visitMethodInsn(int opcode,String owner,String name,String desc){
if (api >= Opcodes.ASM5) {
boolean itf=opcode == Opcodes.INVOKEINTERFACE;
visitMethodInsn(opcode,owner,name,desc,itf);
return;
}
if (mv != null) {
mv.visitMethodInsn(opcode,owner,name,desc);
}
}
| Visits a method instruction. A method instruction is an instruction that invokes a method. |
@Override public void registerOutParameter(int parameterIndex,int sqlType,String typeName) throws SQLException {
registerOutParameter(parameterIndex);
}
| Registers the given OUT parameter. |
private final Throwable unwrapFutureThrowable(Future<?> ft){
if (ft.isDone() && !ft.isCancelled()) {
try {
ft.get();
}
catch ( ExecutionException ee) {
return ee.getCause();
}
catch ( InterruptedException ie) {
Thread.currentThread().interrupt();
}
}
return null;
}
| Get the reason of a task's abnormal completion. Callers may cancel and reschedule tasks, so a task completed by cancellation is not an error. |
protected static boolean placeAnimalIntoWorld(final DomesticAnimal animal,final Player player){
final StendhalRPZone playerZone=player.getZone();
if (animal.has("zoneid") && animal.has("x") && animal.has("y")) {
final StendhalRPZone zone=SingletonRepository.getRPWorld().getZone(animal.get("zoneid"));
if (zone == playerZone) {
if (StendhalRPAction.placeat(zone,animal,animal.getX(),animal.getY())) {
return true;
}
}
}
return StendhalRPAction.placeat(playerZone,animal,player.getX(),player.getY());
}
| Places a domestic animal in the world. If it matches it's owner's zone, then try to keep it's position. |
@Override public int K(final Object ex,final FormObject formObj,final int actionID){
if (showMethods) {
System.out.println("DefaultActionHandler.K()");
}
return javascript.execute(formObj,PdfDictionary.K,actionID,getKeyPressed(ex));
}
| when user types a keystroke K action on - [javascript] keystroke in textfield or combobox modifys the list box selection (can access the keystroke for validity and reject or modify) |
protected FileMetadata buildFileMetadata(FileInfo fileInfo) throws IOException {
String filePathStr=fileInfo.getFilePath();
LOG.debug("file {}",filePathStr);
FileMetadata fileMetadata=new FileMetadata(filePathStr);
Path path=new Path(filePathStr);
fileMetadata.setFileName(path.getName());
FileStatus status=fs.getFileStatus(path);
fileMetadata.setDirectory(status.isDirectory());
fileMetadata.setFileLength(status.getLen());
if (!status.isDirectory()) {
int noOfBlocks=(int)((status.getLen() / blockSize) + (((status.getLen() % blockSize) == 0) ? 0 : 1));
if (fileMetadata.getDataOffset() >= status.getLen()) {
noOfBlocks=0;
}
fileMetadata.setNumberOfBlocks(noOfBlocks);
populateBlockIds(fileMetadata);
}
return fileMetadata;
}
| Creates file-metadata and populates no. of blocks in the metadata. |
public Map<URI,List<URI>> addSourceVolumeFullCopies(){
List<URI> fullCopies=Lists.newArrayList();
Map<URI,List<URI>> fullCopiesMap=new HashMap<>();
for ( URI volumeId : uris(volumeIds)) {
List<URI> volumeFullCopies=getFullCopies(volumeId);
fullCopies.addAll(volumeFullCopies);
fullCopiesMap.put(volumeId,volumeFullCopies);
}
if (!fullCopies.isEmpty()) {
BlockStorageUtils.addVolumesToConsistencyGroup(consistencyGroup,fullCopies);
}
return fullCopiesMap;
}
| Adds all source volumes' full copies to the consistency group |
@Override public String toString(){
StringBuilder sb=new StringBuilder();
sb.append(getClass().getSimpleName()).append("(id=").append(id).append(",records=").append(sizeRecords()).append(",bytes=").append(sizeBytes()).append(")");
return sb.toString();
}
| NOTE: Use for debugging only please. |
public boolean isAbstract(String className) throws IllegalArgumentException {
checkClass(className);
ClassNode node=getClassNode(className);
return (node.access & Opcodes.ACC_ABSTRACT) == Opcodes.ACC_ABSTRACT;
}
| Is the given class name representing an abstract class in the SUT? |
@Override protected void reset(){
super.reset();
m_Initialized=false;
}
| resets the filter, i.e., m_NewBatch to true and m_FirstBatchDone to false. |
@Override public Serializable saveState(){
final BaseDelegateState state=new BaseDelegateState();
state.m_startBaseStepsFinished=m_startBaseStepsFinished;
state.m_endBaseStepsFinished=m_endBaseStepsFinished;
return state;
}
| Returns the state of the Delegate. All classes should super.saveState if they override this. |
public void testRandomCompositeIds() throws Exception {
DocRouter router=DocRouter.getDocRouter(CompositeIdRouter.NAME);
DocCollection coll=createCollection(TestUtil.nextInt(random(),1,10),router);
StringBuilder idBuilder=new StringBuilder();
for (int i=0; i < 10000; ++i) {
idBuilder.setLength(0);
int numParts=TestUtil.nextInt(random(),1,30);
for (int part=0; part < numParts; ++part) {
switch (random().nextInt(5)) {
case 0:
idBuilder.append('!');
break;
case 1:
idBuilder.append('/');
break;
case 2:
idBuilder.append(TestUtil.nextInt(random(),-100,1000));
break;
default :
{
int length=TestUtil.nextInt(random(),1,10);
char[] str=new char[length];
TestUtil.randomFixedLengthUnicodeString(random(),str,0,length);
idBuilder.append(str);
break;
}
}
}
String id=idBuilder.toString();
try {
Slice targetSlice=router.getTargetSlice(id,null,null,coll);
assertNotNull(targetSlice);
}
catch (Exception e) {
throw new Exception("Exception routing id '" + id + "'",e);
}
}
}
| Make sure CompositeIdRouter can route random IDs without throwing exceptions |
public void remove(String name){
if (impl.formalArguments == null) {
if (impl.hasFormalArgs) {
throw new IllegalArgumentException("no such attribute: " + name);
}
return;
}
FormalArgument arg=impl.formalArguments.get(name);
if (arg == null) {
throw new IllegalArgumentException("no such attribute: " + name);
}
locals[arg.index]=EMPTY_ATTR;
}
| Remove an attribute value entirely (can't remove attribute definitions). |
public void writeExternal(ObjectOutput out) throws IOException {
ref.write(out,true);
}
| Write out external representation for remote ref. |
@Override public Map<String,OperationDeclaration> operationsMap(){
return operationsMap;
}
| Returns the operations of the port, mapped by their names. |
private boolean zzRefill() throws java.io.IOException {
return zzCurrentPos >= s.offset + s.count;
}
| Refills the input buffer. |
@Override public void emitTuple(HashMap<K,Integer> tuple){
least.emit(tuple);
}
| Emits tuple on port "least" |
protected void initInfo(int record_id,String value){
label1.setText(Msg.translate(Env.getCtx(),m_queryColumns.get(0).toString()));
textField1.addActionListener(this);
if (m_queryColumns.size() > 1) {
label2.setText(Msg.translate(Env.getCtx(),m_queryColumns.get(1).toString()));
textField2.addActionListener(this);
}
else {
label2.setVisible(false);
textField2.setVisible(false);
}
if (m_queryColumns.size() > 2) {
label3.setText(Msg.translate(Env.getCtx(),m_queryColumns.get(2).toString()));
textField3.addActionListener(this);
}
else {
label3.setVisible(false);
textField3.setVisible(false);
}
if (m_queryColumns.size() > 3) {
label4.setText(Msg.translate(Env.getCtx(),m_queryColumns.get(3).toString()));
textField4.addActionListener(this);
}
else {
label4.setVisible(false);
textField4.setVisible(false);
}
if (record_id != 0) {
fieldID=record_id;
}
else {
if (value != null && value.length() > 0) {
textField1.setValue(value);
}
}
return;
}
| General Init |
public static boolean hasPermission(@NonNull Context context,@NonNull String permission){
return ContextCompat.checkSelfPermission(context,permission) == PackageManager.PERMISSION_GRANTED;
}
| Returns whether the application has access to a specific permission. |
public Truncate(double min,double max){
super(Number.class,Number.class);
this.min=min;
this.max=max;
}
| Constructs a new node for truncating a number within a range. |
public ForEachFaceletsITCase(String name){
super(name);
}
| Construct a new instance of this test case. |
public void testContinuousMode() throws Exception {
depMode=DeploymentMode.CONTINUOUS;
processTest(false);
}
| Test GridDeploymentMode.CONTINOUS mode. |
public String next(int n) throws JSONException {
if (n == 0) {
return "";
}
char[] chars=new char[n];
int pos=0;
while (pos < n) {
chars[pos]=this.next();
if (this.end()) {
throw this.syntaxError("Substring bounds error");
}
pos+=1;
}
return new String(chars);
}
| Get the next n characters. |
int encrypt(byte[] plain,int plainOffset,int plainLen,byte[] cipher,int cipherOffset){
if ((plainLen % blockSize) != 0) {
throw new ProviderException("Internal error in input buffering");
}
int endIndex=plainOffset + plainLen;
for (; plainOffset < endIndex; plainOffset+=blockSize, cipherOffset+=blockSize) {
for (int i=0; i < blockSize; i++) {
k[i]=(byte)(plain[i + plainOffset] ^ r[i]);
}
embeddedCipher.encryptBlock(k,0,cipher,cipherOffset);
System.arraycopy(cipher,cipherOffset,r,0,blockSize);
}
return plainLen;
}
| Performs encryption operation. <p>The input plain text <code>plain</code>, starting at <code>plainOffset</code> and ending at <code>(plainOffset + plainLen - 1)</code>, is encrypted. The result is stored in <code>cipher</code>, starting at <code>cipherOffset</code>. |
public MentionDetector(JCas jCas,DependencyGraph dependencyGraph){
this.jCas=jCas;
this.dependencyGraph=dependencyGraph;
}
| Create a new mention detector using the specified JCas and DependencyGraph |
public boolean isDelegationTargetIsAbstract(){
return delegationTargetIsAbstract;
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
public Object clone() throws CloneNotSupportedException {
DefaultTreeSelectionModel clone=(DefaultTreeSelectionModel)super.clone();
clone.changeSupport=null;
if (selection != null) {
int selLength=selection.length;
clone.selection=new TreePath[selLength];
System.arraycopy(selection,0,clone.selection,0,selLength);
}
clone.listenerList=new EventListenerList();
clone.listSelectionModel=(DefaultListSelectionModel)listSelectionModel.clone();
clone.uniquePaths=new Hashtable<TreePath,Boolean>();
clone.lastPaths=new Hashtable<TreePath,Boolean>();
clone.tempPaths=new TreePath[1];
return clone;
}
| Returns a clone of this object with the same selection. This method does not duplicate selection listeners and property listeners. |
public ExponetialDecay(){
this(1e-4);
}
| Creates a new decay rate that decays down to 1e-4 |
String readCountryName(Element el) throws IOException {
NodeList list=el.getElementsByTagName("country");
if (list == null || list.getLength() == 0) throw new IOException("Country name should be given");
return list.item(0).getNodeValue();
}
| read field countryname |
public void processFinished() throws OperatorException {
}
| Called at the end of the process. The default implementation does nothing. |
@Override protected Scalar parseScalar(Scalar s){
if (s.val.length < 1) throw new IllegalArgumentException("Scalar must have 1 dimension.");
return new Scalar(s.val[0]);
}
| Parse a scalar value into the colorspace |
public void addCredentials(HomeserverConnectionConfig config){
if (null != config && config.getCredentials() != null) {
SharedPreferences prefs=mContext.getSharedPreferences(PREFS_LOGIN,Context.MODE_PRIVATE);
SharedPreferences.Editor editor=prefs.edit();
ArrayList<HomeserverConnectionConfig> configs=getCredentialsList();
configs.add(config);
ArrayList<JSONObject> serialized=new ArrayList<>(configs.size());
try {
for ( HomeserverConnectionConfig c : configs) {
serialized.add(c.toJson());
}
}
catch ( JSONException e) {
throw new RuntimeException("Failed to serialize connection config");
}
String ser=new JSONArray(serialized).toString();
Log.d(LOG_TAG,"Storing " + serialized.size() + " credentials");
editor.putString(PREFS_KEY_CONNECTION_CONFIGS,ser);
editor.apply();
}
}
| Add a credentials to the credentials list |
@Override public int compareTo(@Nullable ObsValue other){
if (other == null) return 1;
int result=0;
result=Integer.compare(getTypeOrdering(),other.getTypeOrdering());
if (result != 0) return result;
if (uuid != null) {
result=Integer.compare(getUuidOrdering(),other.getUuidOrdering());
if (result != 0) return result;
result=uuid.compareTo(other.uuid);
}
else if (number != null) {
result=Double.compare(number,other.number);
}
else if (text != null) {
result=text.compareTo(other.text);
}
else if (date != null) {
result=date.compareTo(other.date);
}
else if (instant != null) {
result=instant.compareTo(other.instant);
}
return result;
}
| Compares ObsValue instances according to a total ordering such that: - All non-null values are greater than null. - The lowest value is the "false" Boolean value (encoded as the coded concept for "No"). - Next are all coded values, ordered from least severe to most severe (if they can be interpreted as having a severity); or from first to last (if they can be interpreted as having a typical temporal sequence). - Next is the "true" Boolean value (encoded as the coded concept for "Yes"). - Next are all numeric values, ordered from least to greatest. - Next are all text values, ordered lexicographically from A to Z. - Next are all date values, ordered from least to greatest. - Next are all instant values, ordered from least to greatest. |
@Override public NotificationChain eInverseRemove(InternalEObject otherEnd,int featureID,NotificationChain msgs){
switch (featureID) {
case UmplePackage.PARAMETER_LIST___PARAMETER_1:
return ((InternalEList<?>)getParameter_1()).basicRemove(otherEnd,msgs);
case UmplePackage.PARAMETER_LIST___ANONYMOUS_PARAMETER_LIST_11:
return ((InternalEList<?>)getAnonymous_parameterList_1_1()).basicRemove(otherEnd,msgs);
}
return super.eInverseRemove(otherEnd,featureID,msgs);
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
@SuppressWarnings("unchecked") private Volume performRPVolumeIngestion(IngestionRequestContext parentRequestContext,RecoverPointVolumeIngestionContext rpVolumeContext,UnManagedVolume unManagedVolume,Volume volume){
_logger.info("starting RecoverPoint volume ingestion for UnManagedVolume {}",unManagedVolume.forDisplay());
if (null == volume) {
IngestStrategy ingestStrategy=ingestStrategyFactory.buildIngestStrategy(unManagedVolume,IngestStrategyFactory.DISREGARD_PROTECTION);
volume=(Volume)ingestStrategy.ingestBlockObjects(rpVolumeContext,VolumeIngestionUtil.getBlockObjectClass(unManagedVolume));
_logger.info("Ingestion ended for unmanagedvolume {}",unManagedVolume.getNativeGuid());
if (null == volume) {
throw IngestionException.exceptions.generalVolumeException(unManagedVolume.getLabel(),"check the logs for more details");
}
}
else {
if (markUnManagedVolumeInactive(parentRequestContext,volume)) {
_logger.info("All the related replicas and parent of unManagedVolume {} have been ingested ",unManagedVolume.getNativeGuid());
unManagedVolume.setInactive(true);
parentRequestContext.getUnManagedVolumesToBeDeleted().add(unManagedVolume);
}
else {
_logger.info("Not all the parent/replicas of unManagedVolume {} have been ingested , hence marking as internal",unManagedVolume.getNativeGuid());
volume.addInternalFlags(INTERNAL_VOLUME_FLAGS);
}
}
rpVolumeContext.setManagedBlockObject(volume);
if (null != _dbClient.queryObject(Volume.class,volume.getId())) {
rpVolumeContext.addDataObjectToUpdate(volume,unManagedVolume);
}
else {
rpVolumeContext.addBlockObjectToCreate(volume);
}
return volume;
}
| Perform RP volume ingestion. Typically this involves finding the proper ingestion orchestrator for the volume type (minus the fact it's RP, which got us to this code in the first place), then calling block ingest on that orchestrator. |
public HDTVFilter(boolean matchPasses){
super(matchPasses);
}
| Creates a new instance of HDTVFilter |
@Override public Toolbar build(){
ToolbarSearch toolbar=new ToolbarSearch(mContext);
toolbar.setData(mAutoCompletionEnabled,mAutoCompletionDynamic,mAutoCompletionSuggestions,mAutoCompletionMode,mThreshold,mOnSearchListener,mOnSearchDynamicListener);
return toolbar;
}
| Build the Toolbar to be the Search Toolbar. |
public synchronized TCPConnection openConnection() throws IOException {
int id;
do {
lastID=(++lastID) & 0x7FFF;
id=lastID;
if (orig) id|=0x8000;
}
while (connectionTable.get(id) != null);
MultiplexConnectionInfo info=new MultiplexConnectionInfo(id);
info.in=new MultiplexInputStream(this,info,2048);
info.out=new MultiplexOutputStream(this,info,2048);
synchronized (connectionTable) {
if (!alive) throw new IOException("Multiplexer connection dead");
if (numConnections >= maxConnections) throw new IOException("Cannot exceed " + maxConnections + " simultaneous multiplexed connections");
connectionTable.put(id,info);
++numConnections;
}
synchronized (dataOut) {
try {
dataOut.writeByte(OPEN);
dataOut.writeShort(id);
dataOut.flush();
}
catch ( IOException e) {
multiplexLog.log(Log.BRIEF,"exception: ",e);
shutDown();
throw e;
}
}
return new TCPConnection(channel,info.in,info.out);
}
| Initiate a new multiplexed connection through the underlying connection. |
public V remove(Object key){
synchronized (this) {
Map<K,V> newMap=new HashMap<K,V>(internalMap);
V val=newMap.remove(key);
internalMap=newMap;
return val;
}
}
| Removed the value and key from this map based on the provided key. |
public void defineLocal() throws IOException {
print("defineLocal",null);
}
| Description of the Method |
public void testIntbyInt2(){
byte aBytes[]={-1,-1,-1,-1};
byte bBytes[]={-1,-1,-1,-1};
int aSign=1;
int bSign=1;
byte rBytes[]={0,-1,-1,-1,-2,0,0,0,1};
BigInteger aNumber=new BigInteger(aSign,aBytes);
BigInteger bNumber=new BigInteger(bSign,bBytes);
BigInteger result=aNumber.multiply(bNumber);
byte resBytes[]=new byte[rBytes.length];
resBytes=result.toByteArray();
for (int i=0; i < resBytes.length; i++) {
assertTrue(resBytes[i] == rBytes[i]);
}
assertEquals("incorrect sign",1,result.signum());
}
| Multiply two numbers of 4 bytes length. |
private Object createRmiProxy(URI endpoint){
RmiProxyFactoryBean proxyFactory=new RmiProxyFactoryBean();
proxyFactory.setServiceInterface(_endpointInterface);
proxyFactory.setServiceUrl(endpoint.toString());
proxyFactory.setRefreshStubOnConnectFailure(true);
proxyFactory.setCacheStub(false);
proxyFactory.afterPropertiesSet();
Object rmiProxy=proxyFactory.getObject();
_proxyMap.putIfAbsent(endpoint,rmiProxy);
return rmiProxy;
}
| Creates and caches RMI proxy |
public TBGraph(final LiveExprNode tf){
this.tf=tf;
this.initCnt=0;
final TBPar initTerms=new TBPar(1);
initTerms.addElement(tf);
final TBParVec pars=initTerms.particleClosure();
for (int i=0; i < pars.size(); i++) {
final TBGraphNode gn=new TBGraphNode(pars.parAt(i));
this.addElement(gn);
}
this.setInitCnt(this.size());
for (int i=0; i < this.size(); i++) {
final TBGraphNode gnSrc=(TBGraphNode)this.elementAt(i);
final TBPar imps=gnSrc.getPar().impliedSuccessors();
final TBParVec succs=imps.particleClosure();
for (int j=0; j < succs.size(); j++) {
final TBPar par=succs.parAt(j);
final TBGraphNode gnDst=findOrCreateNode(par);
gnSrc.nexts.addElement(gnDst);
}
}
for (int i=0; i < this.size(); i++) {
this.getNode(i).setIndex(i);
}
}
| Given a starting TBGraphNode, constructTableau constructs the tableau for it. Read MP for details. It returns a list of all the nodes in the tableau graph. |
private UserTransaction startUserTransaction(){
if (wrapInUserTransaction == false) {
return null;
}
UserTransaction userTransaction=null;
try {
userTransaction=UserTransactionHelper.lookupUserTransaction();
userTransaction.begin();
}
catch ( Throwable t) {
UserTransactionHelper.returnUserTransaction(userTransaction);
userTransaction=null;
getLog().error("Failed to start UserTransaction for plugin: " + getName(),t);
}
return userTransaction;
}
| If <em>wrapInUserTransaction</em> is true, starts a new UserTransaction and returns it. Otherwise, or if establishing the transaction fail, it will return null. |
public ClientBuilderForConnector forServer(String uri,@Nullable String version){
configBuilder.withDockerHost(URI.create(uri).toString()).withApiVersion(version);
return this;
}
| Method to setup url and docker-api version. Convenient for test-connection purposes and quick requests |
public static boolean invertM(float[] mInv,int mInvOffset,float[] m,int mOffset){
float src0=m[mOffset], src4=m[mOffset + 1], src8=m[mOffset + 2], src12=m[mOffset + 3], src1=m[mOffset + 4], src5=m[mOffset + 5], src9=m[mOffset + 6], src13=m[mOffset + 7], src2=m[mOffset + 8], src6=m[mOffset + 9], src10=m[mOffset + 10], src14=m[mOffset + 11], src3=m[mOffset + 12], src7=m[mOffset + 13], src11=m[mOffset + 14], src15=m[mOffset + 15];
float tmp0=src10 * src15, tmp1=src11 * src14, tmp2=src9 * src15, tmp3=src11 * src13, tmp4=src9 * src14, tmp5=src10 * src13, tmp6=src8 * src15, tmp7=src11 * src12, tmp8=src8 * src14, tmp9=src10 * src12, tmp10=src8 * src13, tmp11=src9 * src12;
float dst0=tmp0 * src5 + tmp3 * src6 + tmp4 * src7;
dst0-=tmp1 * src5 + tmp2 * src6 + tmp5 * src7;
float dst1=tmp1 * src4 + tmp6 * src6 + tmp9 * src7;
dst1-=tmp0 * src4 + tmp7 * src6 + tmp8 * src7;
float dst2=tmp2 * src4 + tmp7 * src5 + tmp10 * src7;
dst2-=tmp3 * src4 + tmp6 * src5 + tmp11 * src7;
float dst3=tmp5 * src4 + tmp8 * src5 + tmp11 * src6;
dst3-=tmp4 * src4 + tmp9 * src5 + tmp10 * src6;
float dst4=tmp1 * src1 + tmp2 * src2 + tmp5 * src3;
dst4-=tmp0 * src1 + tmp3 * src2 + tmp4 * src3;
float dst5=tmp0 * src0 + tmp7 * src2 + tmp8 * src3;
dst5-=tmp1 * src0 + tmp6 * src2 + tmp9 * src3;
float dst6=tmp3 * src0 + tmp6 * src1 + tmp11 * src3;
dst6-=tmp2 * src0 + tmp7 * src1 + tmp10 * src3;
float dst7=tmp4 * src0 + tmp9 * src1 + tmp10 * src2;
dst7-=tmp5 * src0 + tmp8 * src1 + tmp11 * src2;
tmp0=src2 * src7;
tmp1=src3 * src6;
tmp2=src1 * src7;
tmp3=src3 * src5;
tmp4=src1 * src6;
tmp5=src2 * src5;
tmp6=src0 * src7;
tmp7=src3 * src4;
tmp8=src0 * src6;
tmp9=src2 * src4;
tmp10=src0 * src5;
tmp11=src1 * src4;
float dst8=tmp0 * src13 + tmp3 * src14 + tmp4 * src15;
dst8-=tmp1 * src13 + tmp2 * src14 + tmp5 * src15;
float dst9=tmp1 * src12 + tmp6 * src14 + tmp9 * src15;
dst9-=tmp0 * src12 + tmp7 * src14 + tmp8 * src15;
float dst10=tmp2 * src12 + tmp7 * src13 + tmp10 * src15;
dst10-=tmp3 * src12 + tmp6 * src13 + tmp11 * src15;
float dst11=tmp5 * src12 + tmp8 * src13 + tmp11 * src14;
dst11-=tmp4 * src12 + tmp9 * src13 + tmp10 * src14;
float dst12=tmp2 * src10 + tmp5 * src11 + tmp1 * src9;
dst12-=tmp4 * src11 + tmp0 * src9 + tmp3 * src10;
float dst13=tmp8 * src11 + tmp0 * src8 + tmp7 * src10;
dst13-=tmp6 * src10 + tmp9 * src11 + tmp1 * src8;
float dst14=tmp6 * src9 + tmp11 * src11 + tmp3 * src8;
dst14-=tmp10 * src11 + tmp2 * src8 + tmp7 * src9;
float dst15=tmp10 * src10 + tmp4 * src8 + tmp9 * src9;
dst15-=tmp8 * src9 + tmp11 * src10 + tmp5 * src8;
float det=src0 * dst0 + src1 * dst1 + src2 * dst2 + src3 * dst3;
if (det == 0.0f) {
}
det=1.0f / det;
mInv[mInvOffset + 0]=dst0 * det;
mInv[mInvOffset + 1]=dst1 * det;
mInv[mInvOffset + 2]=dst2 * det;
mInv[mInvOffset + 3]=dst3 * det;
mInv[mInvOffset + 4]=dst4 * det;
mInv[mInvOffset + 5]=dst5 * det;
mInv[mInvOffset + 6]=dst6 * det;
mInv[mInvOffset + 7]=dst7 * det;
mInv[mInvOffset + 8]=dst8 * det;
mInv[mInvOffset + 9]=dst9 * det;
mInv[mInvOffset + 10]=dst10 * det;
mInv[mInvOffset + 11]=dst11 * det;
mInv[mInvOffset + 12]=dst12 * det;
mInv[mInvOffset + 13]=dst13 * det;
mInv[mInvOffset + 14]=dst14 * det;
mInv[mInvOffset + 15]=dst15 * det;
return true;
}
| Inverts a 4 x 4 matrix. |
public void addSuffix(String suffix,boolean selected){
if (suffixAction == null) {
suffixAction=new UpdateSuffixListAction(listModel);
}
final JCheckBox cb=(JCheckBox)suffixList.add(new JCheckBox(suffix));
cb.setOpaque(false);
checkboxes.addElement(cb);
cb.setSelected(selected);
cb.addActionListener(suffixAction);
if (selected) {
listModel.addSuffix(suffix);
}
cb.addFocusListener(listFocusListener);
}
| Adds the suffix. |
public boolean isAccessibilityEnabled(){
return isTouchExplorationEnabled() || containsGoogleAccessibilityService();
}
| Returns whether a touch exploration is enabled or a Google accessibility service is enabled. |
public void removeCondition(AbstractCondition condition){
Node<AbstractCondition> node=getNode(condition);
if (node != null) {
if (node.getParent() == null) {
getRootNodes().remove(node);
}
else {
node.getParent().getChildren().remove(node);
}
}
}
| Removes a node with condition from the tree. Do nothing if condition is not in the tree. |
public final void println(float f) throws IOException {
println(String.valueOf(f));
}
| Prints a float followed by a newline. |
public MergingLexer(final Lexer original,final MergeTuple... mergeTuples){
super(original);
this.mergeFunction=new LexerMergeFunction(mergeTuples);
}
| Create a merging lexer which works with the merge definitions given in the mergeTuples parameter. |
@SuppressWarnings("static-access") private void resetOptionAttemptTranslations(){
m_optionAttemptTranslations.setSelected(s_parameters.isAttemptTranslation());
}
| resets the attempt translations checkbox |
private void updateProgress(int progress){
if (myHost != null) {
myHost.updateProgress(progress);
}
else {
System.out.println("Progress: " + progress + "%");
}
}
| Used to communicate a progress update between a plugin tool and the main Whitebox user interface. |
@Override public void paintBorder(Component c,Graphics g,int x,int y,int width,int height){
final JComponent popup=(JComponent)c;
final Image hShadowBg=(Image)popup.getClientProperty(ShadowPopupFactory.PROP_HORIZONTAL_BACKGROUND);
if (hShadowBg != null) {
g.drawImage(hShadowBg,x,y + height - 5,c);
}
final Image vShadowBg=(Image)popup.getClientProperty(ShadowPopupFactory.PROP_VERTICAL_BACKGROUND);
if (vShadowBg != null) {
g.drawImage(vShadowBg,x + width - 5,y,c);
}
g.drawImage(SHADOW,x + 5,y + height - 5,x + 10,y + height,0,6,5,11,null,c);
g.drawImage(SHADOW,x + 10,y + height - 5,x + width - 5,y + height,5,6,6,11,null,c);
g.drawImage(SHADOW,x + width - 5,y + 5,x + width,y + 10,6,0,11,5,null,c);
g.drawImage(SHADOW,x + width - 5,y + 10,x + width,y + height - 5,6,5,11,6,null,c);
g.drawImage(SHADOW,x + width - 5,y + height - 5,x + width,y + height,6,6,11,11,null,c);
}
| Paints the border for the specified component with the specified position and size. |
public int calcHash(char[] buffer,int start,int len){
int hash=_hashSeed;
for (int i=0; i < len; ++i) {
hash=(hash * HASH_MULT) + (int)buffer[i];
}
return (hash == 0) ? 1 : hash;
}
| Implementation of a hashing method for variable length Strings. Most of the time intention is that this calculation is done by caller during parsing, not here; however, sometimes it needs to be done for parsed "String" too. |
private void sendTrackBroadcast(int actionId,long trackId){
Intent intent=new Intent().setAction(getString(actionId)).putExtra(getString(R.string.track_id_broadcast_extra),trackId);
sendBroadcast(intent,getString(R.string.permission_notification_value));
if (PreferencesUtils.getBoolean(this,R.string.allow_access_key,PreferencesUtils.ALLOW_ACCESS_DEFAULT)) {
sendBroadcast(intent,getString(R.string.broadcast_notifications_permission));
}
}
| Sends track broadcast. |
public static HappySQL mysql(String dbHost,String userName,String password,String dbName) throws ClassNotFoundException, SQLException {
return new HappyMySQL(dbHost,userName,password,dbName);
}
| Creates an instance of a HappySQL object. |
public double logMarginalLikelihoodAICM(List<Double> v){
double sum=0;
final int size=v.size();
for (int i=0; i < size; i++) sum+=v.get(i);
double mean=sum / (double)size;
double var=0;
for (int i=0; i < size; i++) var+=(v.get(i) - mean) * (v.get(i) - mean);
var/=(double)size - 1;
return 2 * var - 2 * mean;
}
| Calculates the AICM of a model using method-of-moments from Raftery et al. (2007) |
public void addIdentity(DiscoverInfo.Identity identity){
identities.add(identity);
renewEntityCapsVersion();
}
| Add an identity to the client. |
public static RegexMatcher buildRegexMatcher(Map<String,String> operatorProperties) throws PlanGenException, DataFlowException, IOException {
String regex=OperatorBuilderUtils.getRequiredProperty(REGEX,operatorProperties);
PlanGenUtils.planGenAssert(!regex.trim().isEmpty(),"regex is empty");
List<Attribute> attributeList=OperatorBuilderUtils.constructAttributeList(operatorProperties);
RegexPredicate regexPredicate=new RegexPredicate(regex,attributeList,DataConstants.getTrigramAnalyzer());
RegexMatcher regexMatcher=new RegexMatcher(regexPredicate);
Integer limitInt=OperatorBuilderUtils.findLimit(operatorProperties);
if (limitInt != null) {
regexMatcher.setLimit(limitInt);
}
Integer offsetInt=OperatorBuilderUtils.findOffset(operatorProperties);
if (offsetInt != null) {
regexMatcher.setOffset(offsetInt);
}
return regexMatcher;
}
| Builds a RegexMatcher according to operatorProperties. |
public Signature sign(final byte[] salt){
final Signer signer=new Signer(this.keyPair);
return signer.sign(this.getPayload(salt));
}
| Signs information about this identity with its private key. |
public synchronized boolean isLockOwner(Connection conn,String lockName){
lockName=lockName.intern();
return getThreadLocks().contains(lockName);
}
| Determine whether the calling thread owns a lock on the identified resource. |
@Override public void finish() throws IOException {
if (out == null) {
throw new IOException("Stream is closed");
}
if (cDir == null) {
return;
}
if (entries.isEmpty()) {
throw new ZipException("No entries");
}
if (currentEntry != null) {
closeEntry();
}
int cdirSize=cDir.size();
writeLong(cDir,ENDSIG);
writeShort(cDir,0);
writeShort(cDir,0);
writeShort(cDir,entries.size());
writeShort(cDir,entries.size());
writeLong(cDir,cdirSize);
writeLong(cDir,offset);
writeShort(cDir,commentBytes.length);
if (commentBytes.length > 0) {
cDir.write(commentBytes);
}
cDir.writeTo(out);
cDir=null;
}
| Indicates that all entries have been written to the stream. Any terminal information is written to the underlying stream. |
public static RandomMixedRunner serializableInstance(){
return new RandomMixedRunner(Dag.serializableInstance(),new Parameters());
}
| Generates a simple exemplar of this class to test serialization. |
protected POInfo initPO(Properties ctx){
POInfo poi=POInfo.getPOInfo(ctx,Table_ID,get_TrxName());
return poi;
}
| Load Meta Data |
public CubeDesc updateCubeDesc(CubeDesc desc) throws IOException {
if (desc.getUuid() == null || desc.getName() == null) {
throw new IllegalArgumentException();
}
String name=desc.getName();
if (!cubeDescMap.containsKey(name)) {
throw new IllegalArgumentException("CubeDesc '" + name + "' does not exist.");
}
try {
desc.init(config);
}
catch ( Exception e) {
logger.warn("Broken cube desc " + desc,e);
desc.addError(e.getMessage());
return desc;
}
CubeMetadataValidator validator=new CubeMetadataValidator();
ValidateContext context=validator.validate(desc);
if (!context.ifPass()) {
return desc;
}
desc.setSignature(desc.calculateSignature());
String path=desc.getResourcePath();
getStore().putResource(path,desc,CUBE_DESC_SERIALIZER);
CubeDesc ndesc=loadCubeDesc(path,false);
cubeDescMap.put(ndesc.getName(),desc);
return ndesc;
}
| Update CubeDesc with the input. Broadcast the event into cluster |
public static boolean isAppletAvailable(String applet){
return RootTools.isAppletAvailable(applet,"");
}
| This will let you know if an applet is available from BusyBox <p/> |
public static String toShortString(ClusterNode n){
return "ClusterNode [id=" + n.id() + ", order="+ n.order()+ ", addr="+ n.addresses()+ ", daemon="+ n.isDaemon()+ ']';
}
| Short node representation. |
public ByteBuffer readBinary() throws IOException {
_messageReader.next();
return _messageReader.getBinary();
}
| This method will be used our InputStream implementation to continually retrieve binary messages. |
public static byte[] decode(String s) throws Base64DecoderException {
byte[] bytes=s.getBytes();
return decode(bytes,bytes.length);
}
| Decodes data from Base64 notation. |
private void writeAttribute(java.lang.String namespace,java.lang.String attName,java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
if (namespace.equals("")) {
xmlWriter.writeAttribute(attName,attValue);
}
else {
registerPrefix(xmlWriter,namespace);
xmlWriter.writeAttribute(namespace,attName,attValue);
}
}
| Util method to write an attribute without the ns prefix |
public void testBindPlacement03(){
new Helper(){
{
given=select(varNode(x),where(stmtPatternWithVar("x1"),stmtPatternWithVarOptional("y1"),stmtPatternWithVar("y1"),stmtPatternWithVars("y1","z1"),assignmentWithVar("z1","y1")));
expected=select(varNode(x),where(stmtPatternWithVar("x1"),stmtPatternWithVarOptional("y1"),stmtPatternWithVar("y1"),assignmentWithVar("z1","y1"),stmtPatternWithVars("y1","z1")));
}
}
.testWhileIgnoringExplainHints();
}
| Test complex pattern, including inter- and intra-partition reordering, with focus on BIND and ASSIGNMENT nodes. |
public String urlTipText(){
return "The URL of the database";
}
| Returns the tip text for this property. |
public final void writeLong(long v){
tempBuffer[0]=(byte)(v >>> 56);
tempBuffer[1]=(byte)(v >>> 48);
tempBuffer[2]=(byte)(v >>> 40);
tempBuffer[3]=(byte)(v >>> 32);
tempBuffer[4]=(byte)(v >>> 24);
tempBuffer[5]=(byte)(v >>> 16);
tempBuffer[6]=(byte)(v >>> 8);
tempBuffer[7]=(byte)(v >>> 0);
write(tempBuffer,0,8);
}
| Writes a <code>long</code> to the underlying output stream as eight bytes, high byte first. In no exception is thrown, the counter <code>written</code> is incremented by <code>8</code>. |
public SunCertPathBuilderException(Throwable cause){
super(cause);
}
| Constructs a <code>SunCertPathBuilderException</code> that wraps the specified throwable. This allows any exception to be converted into a <code>SunCertPathBuilderException</code>, while retaining information about the cause, which may be useful for debugging. The detail message is set to (<code>cause==null ? null : cause.toString()</code>) (which typically contains the class and detail message of cause). |
public static boolean isValid(String wwnString){
if (wwnString.length() != 18) {
return false;
}
Pattern pattern=Pattern.compile("^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}");
Matcher matcher=pattern.matcher(wwnString);
boolean found=false;
while (matcher.find()) {
found=true;
}
return found;
}
| validates that the passed in string represents a valid WWN. WWN must be in the 60060160-6c4a-2200 WWN format |
protected void addStatePropertyDescriptor(Object object){
itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),getResourceLocator(),getString("_UI_TraceStateExited_state_feature"),getString("_UI_PropertyDescriptor_description","_UI_TraceStateExited_state_feature","_UI_TraceStateExited_type"),SexecPackage.Literals.TRACE_STATE_EXITED__STATE,true,false,true,null,null,null));
}
| This adds a property descriptor for the State feature. <!-- begin-user-doc --> <!-- end-user-doc --> |
public static double rRSErawFitness(boolean useTrainingData,GEPIndividual ind,int chromosomeNum){
double sumOfSquaredRelativeError=0.0;
double expectedResult;
double result;
double relativeError;
GEPDependentVariable dv;
if (useTrainingData) dv=GEPDependentVariable.trainingData;
else dv=GEPDependentVariable.testingData;
double dvValues[]=dv.getDependentVariableValues(chromosomeNum);
double dvSumOfSquaredRelativeError=dv.getDependentVariableSumOfSquaredRelativeError(chromosomeNum);
for (int i=0; i < dvValues.length; i++) {
expectedResult=dvValues[i];
result=ind.eval(chromosomeNum,useTrainingData,i);
if (expectedResult == 0.0) {
expectedResult=RELATIVE_ERROR_ZERO_FACTOR;
result+=RELATIVE_ERROR_ZERO_FACTOR;
System.err.println("Warning: expected result (test value) is 0 in rRSE fitness calculation. Adjusting to avoid division by zero.");
}
relativeError=(result - expectedResult) / expectedResult;
sumOfSquaredRelativeError+=relativeError * relativeError;
}
if (dvSumOfSquaredRelativeError == 0.0) {
dvSumOfSquaredRelativeError=RELATIVE_ERROR_ZERO_FACTOR;
System.err.println("Warning: sum of squared relative error for dependent variable is 0 in rRSE fitness calculation. Adjusting to avoid division by zero.");
}
return (sumOfSquaredRelativeError / dvSumOfSquaredRelativeError);
}
| Calculates the 'raw' fitness for the rRSE (relative RSE) type fitness (before the normalization from 0 to max value is done). |
public static void clear(){
responseHeaderDB.clear();
try {
fileDB.clear();
}
catch ( final IOException e) {
ConcurrentLog.logException(e);
}
try {
fileDBunbuffered.clear();
}
catch ( final IOException e) {
ConcurrentLog.logException(e);
}
}
| clear the cache |
@Override public void transmitPartialDiff(final Task<Diff> result){
writeOutput(result);
}
| Receives a partial DiffTask Transmission. |
public boolean useEnergy(double amount){
if (canUseEnergy(amount) && !FMLCommonHandler.instance().getEffectiveSide().isClient()) {
energyStored-=amount;
return true;
}
return false;
}
| Use the specified amount of energy, if available. |
public static String encodeWebSafe(byte[] source,boolean doPadding){
return encode(source,0,source.length,WEBSAFE_ALPHABET,doPadding);
}
| Encodes a byte array into web safe Base64 notation. |
public static void main(final String[] args){
DOMTestCase.doMain(elementsetattributenodens04.class,args);
}
| Runs this test from the command line. |
public void createDefaultColumnsFromModel(){
DataLineModel<?,?> dlm=(DataLineModel<?,?>)dataModel;
if (dlm != null) {
TableColumnModel cm=getColumnModel();
while (cm.getColumnCount() > 0) {
cm.removeColumn(cm.getColumn(0));
}
for (int i=0; i < dlm.getColumnCount(); i++) {
TableColumn newColumn=dlm.getTableColumn(i);
if (newColumn != null) {
addColumn(newColumn);
}
}
}
}
| Overrides JTable's default implementation in order to add LimeTableColumn columns. |
public static Map duplicateMap(Map map,boolean doKeysLower,boolean deepCopy) throws PageException {
if (doKeysLower) {
Map newMap;
try {
newMap=(Map)ClassUtil.loadInstance(map.getClass());
}
catch ( ClassException e) {
newMap=new HashMap();
}
boolean inside=ThreadLocalDuplication.set(map,newMap);
try {
Iterator it=map.keySet().iterator();
while (it.hasNext()) {
Object key=it.next();
if (deepCopy) newMap.put(StringUtil.toLowerCase(Caster.toString(key)),duplicate(map.get(key),deepCopy));
else newMap.put(StringUtil.toLowerCase(Caster.toString(key)),map.get(key));
}
}
finally {
if (!inside) ThreadLocalDuplication.reset();
}
return newMap;
}
return duplicateMap(map,deepCopy);
}
| duplicate a map |
public static _Fields findByName(String name){
return byName.get(name);
}
| Find the _Fields constant that matches name, or null if its not found. |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.