code stringlengths 10 174k | nl stringlengths 3 129k |
|---|---|
public void goToNextColor(){
setColorIndex(getNextColorIndex());
}
| Proceed to the next available ring color. This will automatically wrap back to the beginning of colors. |
public Vertex allowCorrection(Vertex source,Vertex user){
if (shouldCorrect(null,user)) {
return source.getNetwork().createVertex(Primitive.TRUE);
}
return source.getNetwork().createVertex(Primitive.FALSE);
}
| Self API for checking is a user is trusted and should allow correction. |
private SemanticHighlightings(){
}
| Do not instantiate |
public DExamineSsl(JFrame parent,KseFrame kseFrame){
super(parent,res.getString("DExamineSsl.Title"),Dialog.ModalityType.DOCUMENT_MODAL);
this.kseFrame=kseFrame;
initComponents();
}
| Creates new DExamineSsl dialog. |
public AppTest(String testName){
super(testName);
}
| Create the test case |
public static boolean cs_pvec(int[] p,double[] b,double[] x,int n){
int k;
if (x == null || b == null) return (false);
for (k=0; k < n; k++) x[k]=b[p != null ? p[k] : k];
return (true);
}
| Permutes a vector, x=P*b, for dense vectors x and b. |
public void buildDecList(Instances data,boolean leaf) throws Exception {
Instances[] localInstances;
int ind;
int i, j;
double sumOfWeights;
NoSplit noSplit;
m_train=null;
m_test=null;
m_isLeaf=false;
m_isEmpty=false;
m_sons=null;
indeX=0;
sumOfWeights=data.sumOfWeights();
noSplit=new NoSplit(... | Builds the partial tree without hold out set. |
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
s.defaultReadObject();
if (getGraph() == null) {
throw new NullPointerException();
}
}
| Adds semantic checks to the default deserialization method. This method must have the standard signature for a readObject method, and the body of the method must begin with "s.defaultReadObject();". Other than that, any semantic checks can be specified and do not need to stay the same from version to version. A readObj... |
public void bind(Name name,Object obj) throws NamingException {
if (name.isEmpty()) {
throw (new InvalidNameException("RegistryContext: Cannot bind empty name"));
}
try {
registry.bind(name.get(0),encodeObject(obj,name.getPrefix(1)));
}
catch ( AlreadyBoundException e) {
NamingException ne=new Nam... | If the object to be bound is both Remote and Referenceable, binds the object itself, not its Reference. |
public StateInvariantError(String s){
super(s);
}
| Creates a new StateInvariantFailure object. |
@Override protected EClass eStaticClass(){
return N4JSPackage.Literals.CATCH_VARIABLE;
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
protected boolean hasCompressedThumbnail(){
return mThumbnail != null;
}
| Returns true it this header contains a compressed thumbnail. |
public final void sample(){
long count=_count.get();
long lastCount=_lastAvgCount.getAndSet(count);
long time=_time.get();
long lastTime=_lastAvgTime.getAndSet(time);
if (count == lastCount) _value=0;
else _value=_scale * (time - lastTime) / (double)(count - lastCount);
}
| Return the probe's next sample. |
@Override public boolean supportsOuterJoins(){
debugCodeCall("supportsOuterJoins");
return true;
}
| Returns whether outer joins are supported. |
public JSONObject put(String key,double value) throws JSONException {
this.put(key,new Double(value));
return this;
}
| Put a key/double pair in the JSONObject. |
public static synchronized KDTree generate(IPoint[] points){
if (points.length == 0) {
return null;
}
IMultiPoint others[]=new IMultiPoint[points.length];
for (int i=0; i < points.length; i++) {
if (points[i] instanceof IMultiPoint) {
others[i]=(IMultiPoint)points[i];
}
else {
others[i]... | Generate a KDTree from the given array of IPoints. If underlying objects in points[] already implement IMultiPoint, then good. Otherwise a new array of TwoDPoint objects is constructed to be passed into the generate method on an IMultiPoint[] array (where the values for these TwoDPoints are extracted from the X and Y c... |
public InlineQueryResultContact.InlineQueryResultContactBuilder thumbUrl(URL thumbUrl){
this.thumb_url=thumbUrl;
return this;
}
| *Optional Sets the URL of the thumbnail that should show next to the result in the inline result selection pane |
private void startClient(String host,int port) throws IOException {
if (null != client) {
client.start();
client.connect(5000,host,port);
}
}
| Starts the client and tries to make a connection to the given host/port. |
public InvisibleMemberDescription(IEObjectDescription delegate,String accessorSuggestion){
super(delegate);
this.accessModifierSuggestion=accessorSuggestion;
}
| Creates a new instance of this wrapping description, containing the accessorSuggestion as user data. |
private DataFilterCriterion(){
}
| Creates a new instance, using the context to determine the conversion for arguments to sql friendly format |
public void reset(){
extensions=new Hashtable();
extOrdering=new Vector();
}
| Reset the generator |
public ClusterNode localNode(){
if (locNode == null) locNode=ctx.discovery().localNode();
return locNode;
}
| Get local node. |
@Override public MultivariateTable queryProb(Query.ProbQuery query){
BNetwork network=query.getNetwork();
Set<String> queryVars=new HashSet<String>(query.getQueryVars());
Assignment evidence=query.getEvidence();
Map<Assignment,Double> fullJoint=getFullJoint(network,false);
SortedMap<String,Set<Value>> queryVa... | Queries the probability distribution encoded in the Bayesian Network, given a set of query variables, and some evidence. |
public boolean closeIt(){
log.info("closeIt - " + toString());
m_processMsg=ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_BEFORE_CLOSE);
if (m_processMsg != null) return false;
setDocAction(DOCACTION_None);
m_processMsg=ModelValidationEngine.get().fireDocValidate(this,ModelValidator... | Close Document. |
@Override public void eUnset(int featureID){
switch (featureID) {
case N4JSPackage.ARRAY_LITERAL__ELEMENTS:
getElements().clear();
return;
case N4JSPackage.ARRAY_LITERAL__TRAILING_COMMA:
setTrailingComma(TRAILING_COMMA_EDEFAULT);
return;
}
super.eUnset(featureID);
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
protected Map<String,Double> loadGeneralInquirer() throws FileNotFoundException {
Map<String,Double> inquirernMap=new HashMap<String,Double>();
File file=new File("resources/lexi/inquirerbasicttabsclean");
Scanner scanner=new Scanner(file);
while (scanner.hasNextLine()) {
String[] line=scanner.nextLine().sp... | Loads and parses the GeneralInquirer sentiment lexica |
public void startTracking(){
if (tracking) {
return;
}
tracker.reset();
synchronized (gyroBiasEstimatorMutex) {
if (gyroBiasEstimator != null) {
gyroBiasEstimator.reset();
}
}
firstGyroValue=true;
sensorEventProvider.registerListener(this);
sensorEventProvider.start();
tracking=true;
}... | Starts reading sensor data for head tracking. |
public static long[] hashToLongs(String datum,long seed){
if ((datum == null) || datum.isEmpty()) {
return null;
}
byte[] data=datum.getBytes(UTF_8);
return hash(data,seed);
}
| Hash a String and long seed. |
public NamedAttachable(final String name,final GameData data){
super(name,data);
}
| Creates new NamedAttachable |
public boolean migrate(final MigrationResources resources){
LOGGER.debug("Start migration");
for ( final Migration migration : resources.getMigrations()) {
final MigrationType type=migration.getType();
final int migrationVersion=migration.getVersion();
final int version=versioner.getCurrentVersion(type... | Method that executes all migration from migration resources that are higher version than db version. If migration fails, method will exit. |
private double calculateSingleTraitLikelihood(ContrastedTraitNode contrastNode){
SimpleTree contrastTree=new SimpleTree(contrastNode);
double s2=0.0;
double sssContrast=0.0;
double slogCV=0.0;
for (int i=0; i < contrastTree.getInternalNodeCount(); i++) {
ContrastedTraitNode ctNode=(ContrastedTraitNode)con... | Calculate the likelihood of a single continuous trait on the given tree. |
private Style parseStyleForASS(String[] line,String[] styleFormat,int index,boolean isASS,String warnings){
Style newStyle=new Style(Style.defaultID());
if (line.length != styleFormat.length) {
warnings+="incorrectly formated line at " + index + "\n\n";
}
else {
for (int i=0; i < styleFormat.length; i++)... | This methods transforms a format line from ASS according to a format definition into an Style object. |
protected void updateAgendaUnary(final Model model,final AgendaItem newItem,final Agenda agenda){
final SyntaxTreeNode parse=newItem.getParse();
final List<UnaryRule> ruleProductions=unaryRules.get(parse.getCategory());
if (ruleProductions.isEmpty()) {
return;
}
final boolean isNotPunctuationNode=parse.ge... | Updates the agenda with of any unary rules that can be applied. |
public StringRequest(int method,String url,Listener<String> listener,ErrorListener errorListener){
super(method,url,errorListener);
mListener=listener;
}
| Creates a new request with the given method. |
@Override public Value sample(Assignment condition){
if (condition.size() != conditionalVars.size()) {
condition=condition.getTrimmed(conditionalVars);
}
IndependentDistribution subdistrib=table.get(condition);
if (subdistrib != null) {
return subdistrib.sample();
}
return ValueFactory.none();
}
| Sample a head assignment from the distribution P(head|condition), given the condition. If no assignment can be sampled (due to e.g. an ill-formed distribution), returns an empty assignment. |
public void collectiveUpdated(ContributionBox peer){
Iterator<ContributionBox> contributions=collective.getContributions().iterator();
while (contributions.hasNext()) {
ContributionBox cb=contributions.next();
System.out.println("Contribution from " + cb.contributor.getHost().toString() + "\n"+ cb.contribut... | This one gets called each time a collective message arrives or the refresh() method is called. Here we only print the contributions, but much more complex things can be done. You can access to the contributions at any point you have access to the collective, not only here. |
public RecoveryStats recoveryStats(){
return recoveryStats;
}
| returns stats about ongoing recoveries, both source and target |
private void dropDbTable(SQLiteDatabase db,String tableName){
if (LOCAL_LOGV) Log.d(TAG,"Dropping table and index for: " + tableName);
String dropTableSql=String.format(DROP_TABLE_SQL_FORMAT,tableName);
db.execSQL(dropTableSql);
String dropIndexSql=String.format(DROP_INDEX_SQL_FORMAT,tableName,1);
db.execSQ... | Drops the table and index for the specified database and table name |
public CookieManager(CookieStore store,CookiePolicy cookiePolicy){
policyCallback=(cookiePolicy == null) ? CookiePolicy.ACCEPT_ORIGINAL_SERVER : cookiePolicy;
if (store == null) {
cookieJar=new InMemoryCookieStore();
}
else {
cookieJar=store;
}
}
| Create a new cookie manager with specified cookie store and cookie policy. |
public void runTest() throws Throwable {
Document doc;
NodeList elementList;
Node testEmployee;
NamedNodeMap attributes;
Node child;
String nodeName;
java.util.Collection htmlExpected=new java.util.ArrayList();
htmlExpected.add("title");
htmlExpected.add("class");
java.util.Collection expected=new j... | Runs the test case. |
public boolean discharge(ItemStack stack,int limit){
if (stack == null || !Info.isIc2Available()) return false;
double amount=capacity - energyStored;
if (amount <= 0) return false;
if (limit > 0 && limit < amount) amount=limit;
amount=ElectricItem.manager.discharge(stack,amount,tier,limit > 0,true,fals... | Discharge the supplied ItemStack into this sink's energy buffer. |
public ClassPool(){
this(null);
}
| Creates a root class pool. No parent class pool is specified. |
public static int minInt(int a,float b){
return min(a,floor(b));
}
| Minimum value rounded down. |
public static boolean addLiquidTransposerFillRecipe(ItemStack aEmptyContainer,FluidStack aLiquid,ItemStack aFullContainer,int aMJ){
aFullContainer=GT_OreDictUnificator.get(true,aFullContainer);
if (aEmptyContainer == null || aFullContainer == null || aLiquid == null) return false;
if (!GregTech_API.sRecipeFile.... | LiquidTransposer Recipe for filling Containers |
public RequestHandle delete(Context context,String url,Header[] headers,RequestParams params,ResponseHandlerInterface responseHandler){
HttpDelete httpDelete=new HttpDelete(getUrlWithQueryString(isUrlEncodingEnabled,url,params));
if (headers != null) httpDelete.setHeaders(headers);
return sendRequest(httpClient... | Perform a HTTP DELETE request. |
@DSComment("From safe class list") @DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:56:23.284 -0500",hash_original_method="07424AD55498F7F8FBBB544D5FCCF9DD",hash_generated_method="1530ABD48035BF9C774F5A5B50B67F62") public static boolean isLetterOrDigit(char c... | Indicates whether the specified character is a letter or a digit. |
public static Bitmap loadBitmap(String url){
Bitmap bitmap;
try {
InputStream is=(InputStream)new URL(url).getContent();
if (is == null) return null;
bitmap=BitmapFactory.decodeStream(new FlushedInputStream(is));
}
catch ( Exception e) {
e.printStackTrace();
return null;
}
return bit... | Loads a bitmap from a url. |
private boolean writeRequestHeadersEagerly(){
return callerWritesRequestBody && permitsRequestBody(networkRequest) && requestBodyOut == null;
}
| If the caller's control flow writes the request body, we need to create that stream immediately. And that means we need to immediately write the request headers, so we can start streaming the request body. (We may already have a request body if we're retrying a failed POST.) |
public boolean removeChild(int node){
while (getChildCount(node) > 0) {
removeChild(getLastChildRow(node));
}
return removeNode(node);
}
| Remove a node and its entire subtree rooted at the node from the tree. |
public void addItem(Item item){
synchronized (items) {
items.add(item);
}
}
| Adds an item child that holds information about roles, affiliation, jids and nicks. |
@Override public JsonNode deserialize(JsonParser jp,DeserializationContext ctxt) throws IOException, JsonProcessingException {
switch (jp.getCurrentToken()) {
case START_OBJECT:
return deserializeObject(jp,ctxt,ctxt.getNodeFactory());
case START_ARRAY:
return deserializeArray(jp,ctxt,ctxt.getNodeFactory());
defau... | Implementation that will produce types of any JSON nodes; not just one deserializer is registered to handle (in case of more specialized handler). Overridden by typed sub-classes for more thorough checking |
public void addCoveredClass(Class<?> c){
executionResults.addCoveredClass(c);
}
| Adds a covered class to the most recent execution results of this sequence. |
public String nextVariableName(String base){
if (base.contains(":")) {
throw new IllegalArgumentException("Base names may not contain colons: " + base);
}
int i=0;
loop: while (true) {
String name=base + (++i);
for ( Node node1 : getGraph().getNodes()) {
if (node1.getName().equals(name)) ... | Given base b (a String), returns the first node in the sequence "b1", "b2", "b3", etc., which is not already the name of a node in the workbench. |
public static void overScrollBy(final PullToRefreshBase<?> view,final int deltaX,final int scrollX,final int deltaY,final int scrollY,final int scrollRange,final int fuzzyThreshold,final float scaleFactor,final boolean isTouchEvent){
final int deltaValue, currentScrollValue, scrollValue;
switch (view.getPullToRefresh... | Helper method for Overscrolling that encapsulates all of the necessary function. This is the advanced version of the call. |
public JBoss7xStandaloneLocalConfigurationCapability(){
this.propertySupportMap.put(GeneralPropertySet.PROTOCOL,Boolean.FALSE);
this.propertySupportMap.put(ServletPropertySet.USERS,Boolean.FALSE);
this.propertySupportMap.put(GeneralPropertySet.RMI_PORT,Boolean.TRUE);
this.propertySupportMap.put(DatasourceProper... | Initialize JBoss-specific configuration Map. |
public Vector ls(String dirName) throws IOException {
byte[] handle=openDirectory(dirName);
Vector result=scanDirectory(handle);
closeHandle(handle);
return result;
}
| List the contents of a directory. |
public static void v(String tag,String msg,Throwable tr){
println(VERBOSE,tag,msg,tr);
}
| Prints a message at VERBOSE priority. |
private static void addWrapperRequests(Requests requests,Map<SimpleStringPattern,KeywordSubstitution> wrapperMap){
requests.addArgumentRequest("-I !");
for ( final SimpleStringPattern pattern : wrapperMap.keySet()) {
final KeywordSubstitution keywordSubstitutionOptions=wrapperMap.get(pattern);
@NonNls fina... | Adds requests for specified wrappers to the specified requestList. |
public void add(@NotNull VirtualFile file){
synchronized (myDefinitelyUntrackedFiles) {
myDefinitelyUntrackedFiles.add(file);
}
}
| Adds the file to the list of untracked. |
public boolean isUseMipMaps(){
return useMipMaps;
}
| Indicates whether the texture creates and uses mipmaps. |
public void fillRect(int x,int y,int width,int height){
addDrawingRect(new Rectangle2D.Float(x,y,width,height));
mPrintMetrics.fill(this);
}
| Fills the specified rectangle. The left and right edges of the rectangle are at <code>x</code> and <code>x + width - 1</code>. The top and bottom edges are at <code>y</code> and <code>y + height - 1</code>. The resulting rectangle covers an area <code>width</code> pixels wide by ... |
public Atanh(){
super(Number.class,Number.class);
}
| Constructs a new node for calculating the hyperbolic arc tangent of a number. |
public void startDocument() throws SAXException {
int doc=addNode(DTM.DOCUMENT_NODE,DTM.DOCUMENT_NODE,DTM.NULL,DTM.NULL,0,true);
m_parents.push(doc);
m_previous=DTM.NULL;
m_contextIndexes.push(m_prefixMappings.size());
}
| Receive notification of the beginning of the document. |
public Password constructUserPassword(String username){
Password password=new Password(username,null,null);
PasswordHistory ph=getPasswordHistory(username);
password.setPasswordHistory(ph);
return password;
}
| construct a Password object which only contains its password history information |
protected void createFieldEditors(){
addField(new BooleanFieldEditor(ITLCPreferenceConstants.I_TLC_POPUP_ERRORS,"&Always pop up TLC errors view",getFieldEditorParent()));
addField(new BooleanFieldEditor(ITLCPreferenceConstants.I_TLC_REVALIDATE_ON_MODIFY,"&Re-validate model on save",getFieldEditorParent()));
addFi... | Create field editors |
public static double loss(double pred,double y){
final double x=-y * pred;
if (x >= 30) return x;
else if (x <= -30) return 0;
return log(1 + exp(x));
}
| Computes the logistic loss |
public void addKeyword(final String s,final V value){
root.add(s,value);
}
| Adds a keyword and its related value. |
public static DeltaSextadTest serializableInstance(){
return new DeltaSextadTest(ColtDataSet.serializableInstance());
}
| Generates a simple exemplar of this class to test serialization. |
public boolean isNumeric(){
if (m_displayType == 0) return m_value instanceof BigDecimal;
return DisplayType.isNumeric(m_displayType);
}
| Is Value numeric |
public ByteCodePattern addWild(int numWild){
Wild wild=isLastWild();
if (wild != null) {
wild.setMinAndMax(0,numWild);
}
else {
addElement(new Wild(numWild));
}
return this;
}
| Add a wildcard to match between 0 and given number of instructions. If there is already a wildcard at the end of the current pattern, resets its max value to that given. |
public static int compareFullPrimary(String s1,String s2){
return COLLATOR.compare(s1,s2);
}
| This method will compare the two strings using full decomposition and only look at primary differences The comparision will ignore case as well as differences like FULLWIDTH vs HALFWIDTH |
public TextEditGroup(String name){
super();
fDescription=name;
fEdits=new ArrayList(3);
}
| Creates a new text edit group with the given name. |
public void accept(final MethodVisitor mv){
AbstractInsnNode insn=first;
while (insn != null) {
insn.accept(mv);
insn=insn.next;
}
}
| Makes the given visitor visit all of the instructions in this list. |
public static void wtf(String tag,Throwable tr){
wtf(tag,null,tr);
}
| Prints a message at ASSERT priority. |
private MyFormatter(){
}
| Creates a new instance of MyFormatter |
public Boolean isForLegacyFt(){
return forLegacyFt;
}
| Gets the value of the forLegacyFt property. |
public static String[] toStringArray(String line){
List<String> row=new ArrayList<>();
boolean inQuotedField=false;
int fieldStart=0;
final int len=line.length();
for (int i=0; i < len; i++) {
char c=line.charAt(i);
if (c == FIELD_SEPARATOR) {
if (!inQuotedField) {
addField(row,line,fiel... | Converts CSV line to string array. |
public int add(DefineTag tag){
assert (tag != null);
Integer obj=tags.get(tag);
if (obj != null) {
return obj.intValue();
}
else {
Integer key=new Integer(nextId++);
tags.put(tag,key);
ids.put(key,tag);
return key.intValue();
}
}
| This is the method used during encoding. |
public final boolean isActive(){
return _lifecycle.isActive();
}
| Returns true if the webApp container is active |
public boolean hasRel(){
return super.hasAttribute(REL);
}
| Returns whether it has the programmatic value that describes the aspect that's being rated, if not specified, the rating is an overall rating. |
public boolean isInterchangeableWith(TypeVariableBinding otherVariable,Substitution substitute){
if (this == otherVariable) return true;
int length=this.superInterfaces.length;
if (length != otherVariable.superInterfaces.length) return false;
if (this.superclass != Scope.substitute(substitute,otherVariable.... | Returns true if the 2 variables are playing exact same role: they have the same bounds, providing one is substituted with the other: <T1 extends List<T1>> is interchangeable with <T2 extends List<T2>>. |
@Override public void run(final Context context) throws IOException, InterruptedException {
setup(context);
this.context=context;
try {
RyaStatement parentRyaStatement=nextParentRyaStatement();
RyaStatement childRyaStatement=nextChildRyaStatement();
CompareKeysResult compareKeysResult=null;
while ... | Expert users can override this method for more complete control over the execution of the Mapper. |
@Override public boolean removeAll(Collection<?> collection){
boolean result=false;
if (size() <= collection.size()) {
Iterator<?> it=iterator();
while (it.hasNext()) {
if (collection.contains(it.next())) {
it.remove();
result=true;
}
}
}
else {
Iterator<?> it=collecti... | Removes all occurrences in this collection which are contained in the specified collection. |
public String addSymbol(char[] buffer,int offset,int len,int hash){
final int bucket=hash & indexMask;
String sym=symbols[bucket];
boolean match=true;
if (sym != null) {
if (sym.length() == len) {
char[] characters=symbols_char[bucket];
for (int i=0; i < len; i++) {
if (buffer[offset + i... | Adds the specified symbol to the symbol table and returns a reference to the unique symbol. If the symbol already exists, the previous symbol reference is returned instead, in order guarantee that symbol references remain unique. |
public synchronized void enqueueWriteRequest(final NextFilter nextFilter,final WriteRequest writeRequest){
if (writeRequestQueue == null) {
writeRequestQueue=new LinkedList<Event>();
}
writeRequestQueue.offer(new Event(nextFilter,writeRequest));
}
| Enqueue a message to be written once handshaking is complete. |
public static boolean updateManifest(JSONObject data,boolean force){
if (data == null) return false;
Manifest manifest=parseManifest(data);
if (manifest == null) return false;
String manifestJson;
try {
manifestJson=data.toString(2);
}
catch ( JSONException e) {
e.printStackTrace();
return... | Update bundle.json and apply settings |
protected Object doCreateFromCapabilities(WCS100Capabilities caps,AVList params){
return null;
}
| Implemented by subclasses to perform the actual object creation. This default implementation always returns null. |
public final String id(){
return id;
}
| Returns this object identifier. |
public FetchedData handle(ContentHandlerArgs args,MessageQueue mq){
FetchedData result=doHandle(args,mq);
if (result == null) {
ByteArrayOutputStream intermediateResponse=new ByteArrayOutputStream();
Pair<ContentType,String> contentParams=getReturnedContentParams(args);
OutputStreamWriter writer=new Out... | Main entry point for the fetching proxy. |
public static void time(ErrorMessages message,Timer time){
if (Options.time) {
String msg=ErrorMessages.get(message,time.toString());
out.println(msg);
}
}
| Report time statistic data. |
public ChartPanel(JFreeChart chart){
this(chart,DEFAULT_WIDTH,DEFAULT_HEIGHT,DEFAULT_MINIMUM_DRAW_WIDTH,DEFAULT_MINIMUM_DRAW_HEIGHT,DEFAULT_MAXIMUM_DRAW_WIDTH,DEFAULT_MAXIMUM_DRAW_HEIGHT,DEFAULT_BUFFER_USED,true,true,true,true,true);
}
| Constructs a panel that displays the specified chart. |
public JavaTransformFactory(String name){
super(name);
install(Class.class,ClassView.class);
install(Interface.class,InterfaceView.class);
install(Method.class,MethodView.class);
install(Field.class,FieldView.class);
install(Type.class,TypeView.class);
install(Modifier.class,ModifierView.class);
install... | Instantiates the JavaTransformFactory with a custom name. |
@Deprecated public void addAssociatedStorageSystem(final String storageSystemId){
if (_associatedStorageSystems == null) {
setAssociatedStorageSystems(new StringSet());
}
_associatedStorageSystems.add(storageSystemId);
}
| Adds the id of a storage system to the set of backend storage systems associated with a virtual storage system. |
public void testSkeletons() throws Exception {
runPythonTest(new SkeletonTestTask("dotNet/expected.skeleton.java.py","com.just.like.java","testSkeleton.py",null));
}
| Tests skeleton generation |
public static FrequencyDivider fromFrequency(long frequency){
for ( FrequencyDivider divider : FrequencyDivider.values()) {
if (divider.contains(frequency)) {
return divider;
}
}
return FrequencyDivider.DIVIDER_5;
}
| Returns the correct frequency divider for the specified frequency, or returns divider #5, if the frequency is outside of the specified frequency ranges. |
public static String readTextfile(final String filename) throws IOException {
return readTextfile(new File(filename));
}
| Reads a text file into a string. |
public static int makeMask(final int value){
if (value == 0) {
return 0;
}
if ((value & 0x80000000) != 0) {
return 0xFFFFFFFF;
}
int msk=1;
do {
msk<<=1;
}
while (msk <= value);
return msk - 1;
}
| Make mask for value. |
public void adjust(double dx,double dy){
this.originLon-=dx / (dotsPerDeg * lonCorr);
this.originLat+=dy / dotsPerDeg;
}
| Adjusts the transformation. |
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-09-03 14:59:53.872 -0400",hash_original_method="088DF8F7AE1AF0A6FC6325953692637E",hash_generated_method="6C3FECB1746D0A1C9DB670D415174D67") @DSSafe(DSCat.SAFE_LIST) public static IOFileFilter fileFileFilter(){
return FileFileFilter.FILE;
}
| Returns a filter that checks if the file is a file (and not a directory). |
public ODGStylesReader(){
reset();
}
| Creates a new instance. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.