code stringlengths 10 174k | nl stringlengths 3 129k |
|---|---|
public Matrix4f scale(float x,float y,float z){
return scale(x,y,z,this);
}
| Apply scaling to this matrix by scaling the base axes by the given sx, sy and sz factors. <p> If <code>M</code> is <code>this</code> matrix and <code>S</code> the scaling matrix, then the new matrix will be <code>M * S</code>. So when transforming a vector <code>v</code> with the new matrix by using <code>M * S * v</co... |
void stringConversion(Converter converter,String expected,Object value){
String valueType=(value == null ? "null" : value.getClass().getName());
String msg="Converting '" + valueType + "' value '"+ value+ "' to String";
try {
Object result=converter.convert(String.class,value);
Class<?> resultType=(result... | Test Conversion to String |
@Override public void close() throws IOException {
synchronized (lock) {
if (!isClosed()) {
in.close();
buf=null;
}
}
}
| Closes this reader. This implementation closes the buffered source reader and releases the buffer. Nothing is done if this reader has already been closed. |
public Object nextEntity(char ampersand) throws JSONException {
StringBuffer sb=new StringBuffer();
for (; ; ) {
char c=next();
if (Character.isLetterOrDigit(c) || c == '#') {
sb.append(Character.toLowerCase(c));
}
else if (c == ';') {
break;
}
else {
throw syntaxError("Missi... | Return the next entity. These entities are translated to Characters: <code>& ' > < "</code>. |
public void testSerializeErrors() throws Throwable {
CopycatError error;
error=CopycatError.forId(new NoLeaderException("test").getType().id());
assertEquals(error,CopycatError.Type.NO_LEADER_ERROR);
error=CopycatError.forId(new QueryException("test").getType().id());
assertEquals(error,CopycatError.Type.QUER... | Tests serializing exceptions. |
public static String determineDescription(final INaviInstruction startInstruction,final String trackedRegister,final CInstructionResult result){
Preconditions.checkNotNull(startInstruction,"IE01680: Start instruction argument can not be null");
Preconditions.checkNotNull(trackedRegister,"IE01681: Tracked register a... | Determines the description text used to display a given instruction. |
private MD5Legacy(InputStream in){
this.in=in;
this.state=new int[4];
this.buffer=new byte[64];
this.count=0;
state[0]=0x67452301;
state[1]=0xefcdab89;
state[2]=0x98badcfe;
state[3]=0x10325476;
}
| Construct a digestifier for the given input stream. |
public void testObjectMarshallingToJson(){
ToDoItem toDoItem=getToDoItem(REMINDER_ON);
try {
JSONObject json=toDoItem.toJSON();
assertEquals(TEXT_BODY,json.getString("todotext"));
assertEquals(REMINDER_ON,json.getBoolean("todoreminder"));
assertEquals(String.valueOf(CURRENT_DATE.getTime()),json.getS... | Ensure we can marshall ToDoItem objects to Json |
public String uploadId(){
return uploadId;
}
| Returns upload ID. |
public SingleSignOnService(String location,String binding){
this.location=location;
this.binding=binding;
}
| SingleSignOnService object. This object correspond to samlm:EndPointType |
public AppletThreadGroup(String name){
this(Thread.currentThread().getThreadGroup(),name);
}
| Constructs a new thread group for an applet. The parent of this new group is the thread group of the currently running thread. |
public void save(File file) throws IOException {
IOUtils.writeBinary(file,quantiser);
}
| Save the quantiser to the specified file |
private void addFeaturesToEncoder(Map<FeatureCollection,Style> featureCollectionStyleMap,double scaleDenominator){
for ( FeatureCollection featureCollection : featureCollectionStyleMap.keySet()) {
String layerName=featureCollection.getSchema().getName().getLocalPart();
Style featureStyle=featureCollectionSty... | Adds all features to the encoder and prepares it before. So geometries are removed from the attribute map and the geometry is transformed to the target tile local system |
public boolean hasBPAccess(String BPAccessType,Object[] params){
if (isFullBPAccess()) return true;
getBPAccess(false);
for (int i=0; i < m_bpAccess.length; i++) {
if (m_bpAccess[i].getBPAccessType().equals(BPAccessType)) {
return true;
}
}
return false;
}
| Has the user Access to BP info and resources |
protected void processWindowEvent(WindowEvent e){
super.processWindowEvent(e);
}
| Window Events |
public static boolean isExternalStorageReadable(){
String state=Environment.getExternalStorageState();
return Environment.MEDIA_MOUNTED.equals(state) || Environment.MEDIA_MOUNTED_READ_ONLY.equals(state);
}
| Check if external storage is readable or not |
@Override public void run(){
amIActive=true;
String streamsHeader=null;
String pointerHeader=null;
String outputHeader=null;
int row, col, x, y;
int progress=0;
int i, c;
int[] dX=new int[]{1,1,1,0,-1,-1,-1,0};
int[] dY=new int[]{-1,0,1,1,1,0,-1,-1};
double[] inflowingVals=new double[]{16,32,64,128,... | Used to execute this plugin tool. |
public static FileChannel open(String fileName,String mode) throws IOException {
return FilePath.get(fileName).open(mode);
}
| Open a random access file object. This method is similar to Java 7 <code>java.nio.channels.FileChannel.open</code>. |
public static void forceDelete(final File file) throws IOException {
if (file.isDirectory()) {
deleteDirectory(file);
}
else {
final boolean filePresent=file.exists();
if (!file.delete()) {
if (!filePresent) {
throw new FileNotFoundException("File does not exist: " + file);
}
... | Deletes a file. If file is a directory, delete it and all sub-directories. <p> The difference between File.delete() and this method are: <ul> <li>A directory to be deleted does not have to be empty.</li> <li>You get exceptions when a file or directory cannot be deleted. (java.io.File methods returns a boolean)</li> </u... |
public void addReturn(CtClass type){
if (type == null) addOpcode(RETURN);
else if (type.isPrimitive()) {
CtPrimitiveType ptype=(CtPrimitiveType)type;
addOpcode(ptype.getReturnOp());
}
else addOpcode(ARETURN);
}
| Appends ARETURN, IRETURN, .., or RETURN. |
public void clear(){
final int lastRow=data.size() - 1;
data.clear();
if (lastRow >= 0) this.fireTableRowsDeleted(0,lastRow);
}
| Clears the table completely. |
private void updateProgress(int progress){
if (myHost != null && progress != previousProgress) {
myHost.updateProgress(progress);
}
previousProgress=progress;
}
| Used to communicate a progress update between a plugin tool and the main Whitebox user interface. |
@Override public int eBaseStructuralFeatureID(int derivedFeatureID,Class<?> baseClass){
if (baseClass == ReactiveElement.class) {
switch (derivedFeatureID) {
case SGraphPackage.STATE__LOCAL_REACTIONS:
return SGraphPackage.REACTIVE_ELEMENT__LOCAL_REACTIONS;
default :
return -1;
}
}
if (baseClass == ScopedEle... | <!-- begin-user-doc --> <!-- end-user-doc --> |
protected void skipTransform() throws IOException {
loop: for (; ; ) {
current=reader.read();
switch (current) {
case ')':
break loop;
default :
if (current == -1) {
break loop;
}
}
}
}
| Skips characters in the given reader until a ')' is encountered. |
public void resetNotification(){
this.lastEmailAlertReason=null;
this.lastEmailAlertTime=-1L;
this.lastWebAlertTime=-1L;
this.lastWebAlertReason=null;
}
| Reset if alert is resolved |
public void loadSettings(JDialog dialog){
if (!dialog.getName().contains("dialog")) {
Rectangle rect=getWindowBounds(dialog.getName());
if (rect.width > 0) {
dialog.setBounds(rect);
}
}
}
| Load settings for a dialog |
@Override public void clear(){
size=0;
for (int i=0; i < elementData.length; i++) {
elementData[i]=null;
}
modCount++;
}
| Removes all elements from this map, leaving it empty. |
public void endDocument() throws IOException {
writer.flush();
}
| Output the text for the end of a document. |
public void rotate(@Nonnull File file,int max,String extension) throws IOException {
if (max < 1) {
throw new IllegalArgumentException();
}
String name=file.getName();
if (extension != null) {
if (extension.length() > 0 && !extension.startsWith(".")) {
extension="." + extension;
}
}
else {
... | Rotate a file and its backups, retaining only a set number of backups. |
public boolean updateAllTypes(){
return updateAllTypes;
}
| True if all fields that span multiple types should be updated, false otherwise |
protected AbstractAtomicRowReadOrWrite(){
super();
}
| De-serialization ctor. |
@Override public void chartChanged(ChartChangeEvent event){
this.flag=true;
}
| Event handler. |
@Override protected void addConvert(ConvertMetadata convert){
if (m_converts == null) {
m_converts=new ArrayList<ConvertMetadata>();
}
m_converts.add(convert);
}
| INTERNAL: Subclasses that support key converts need to override this method. |
public static void bootstrapConf(SolrZkClient zkClient,CoreContainer cc,String solrHome) throws IOException {
ZkConfigManager configManager=new ZkConfigManager(zkClient);
List<CoreDescriptor> cds=cc.getCoresLocator().discover(cc);
log.info("bootstrapping config for " + cds.size() + " cores into ZooKeeper using so... | If in SolrCloud mode, upload config sets for each SolrCore in solr.xml. |
private void handleBrowse(){
containerText.setText(WorkspaceTools.selectProject(containingPage.getShell(),getContainerName()));
}
| Uses the standard container selection dialog to choose the new value for the container field. |
private void addDiscussionItems(SteamGiftsUserData account,String mode){
if ("full".equals(mode)) {
drawer.addItem(new SectionDrawerItem().withName(R.string.navigation_discussions).withDivider(true));
for ( DiscussionListFragment.Type type : DiscussionListFragment.Type.values()) {
if (type == Discuss... | Add all discussion-related items. |
private Point restoreWindowLocation(){
Point result=null;
final String sizestr=preferences.get(prefnzPrefix + PREF_WINDOW_POSITION,null);
if (sizestr != null) {
int x=0;
int y=0;
final String[] sizes=sizestr.split("[,]");
try {
x=Integer.parseInt(sizes[0].trim());
y=Integer.parseInt(si... | Loads and set the saved position preferences for this frame. |
@Deprecated Template(String name,TemplateElement root,Configuration cfg){
this(name,null,cfg,(ParserConfiguration)null);
this.rootElement=root;
DebuggerService.registerTemplate(this);
}
| Only meant to be used internally. |
private void updateSortingIcons(){
for ( SortingType type : SortingType.values()) {
SortingDirection direction=model.getSortingDirection(type);
ImageIcon icon;
switch (direction) {
case DESCENDING:
icon=ICON_ARROW_DOWN;
break;
case ASCENDING:
icon=ICON_ARROW_UP;
break;
case UNDEFINED:
icon=null;
... | Updates the sorting icons. |
@Override public void initialize(){
}
| Rule featurizer. |
public boolean isVlanTaggingSupported(){
return vlanTaggingSupported;
}
| Gets the value of the vlanTaggingSupported property. |
public static String id8(UUID id){
return id.toString().substring(0,8);
}
| Gets 8-character substring of UUID (for terse logging). |
public basefont addElement(Element element){
addElementToRegistry(element);
return (this);
}
| Adds an Element to the element. |
@Override public PartitionKeyGroup createPartitionKeyGroup(PartitionKeyGroupCreateRequest request){
partitionKeyGroupHelper.validatePartitionKeyGroupKey(request.getPartitionKeyGroupKey());
PartitionKeyGroupEntity partitionKeyGroupEntity=partitionKeyGroupDao.getPartitionKeyGroupByKey(request.getPartitionKeyGroupKey(... | Creates a new partition key group. |
public OptionsHttpSessionsPanel(){
super();
initialize();
}
| Instantiates a new options panel for http sessions. |
public boolean hasPurchase(String sku){
return mPurchaseMap.containsKey(sku);
}
| Returns whether or not there exists a purchase of the given product. |
public void testGetNameWhenWarHasExtension(){
WAR war=new WAR("c:/some/path/to/war/test.war");
assertEquals("test",war.getName());
}
| Test name when WAR has an extension. |
public int updateByExampleSelective(User record,UserExample example) throws SQLException {
UpdateByExampleParms parms=new UpdateByExampleParms(record,example);
int rows=sqlMapClient.update("t_user.ibatorgenerated_updateByExampleSelective",parms);
return rows;
}
| This method was generated by Apache iBATIS ibator. This method corresponds to the database table t_user |
public soot.Local generateLocal(soot.Type type){
initLocalNames();
String name="v";
if (type instanceof soot.IntType) {
while (true) {
name=nextIntName();
if (!bodyContainsLocal(name)) break;
}
}
else if (type instanceof soot.ByteType) {
while (true) {
name=nextByteName();... | generates a new soot local given the type |
@Override protected EClass eStaticClass(){
return TypesPackage.Literals.TMEMBER_WITH_ACCESS_MODIFIER;
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
private void testManyEventsAfterLeaderShutdown(int nodes) throws Throwable {
List<CopycatServer> servers=createServers(nodes);
CopycatClient client=createClient();
client.onEvent("test",null);
for (int i=0; i < 10; i++) {
client.submit(new TestEvent(true)).thenAccept(null);
await(30000,2);
}
Copycat... | Tests submitting a linearizable event that publishes to all sessions. |
private static void addCurve(Path2D line,Point2D p0,Point2D p1,Point2D p2,Point2D p3,Point2D ctrl1,Point2D ctrl2,double smoothness){
if (p1 == null) {
return;
}
if (line.getCurrentPoint() == null) {
line.moveTo(p1.getX(),p1.getY());
}
if (p2 == null) {
return;
}
getControlsPoints(p0,p1,p2,p3,c... | Utility method to add a smooth curve segment to a specified line path. |
public int currentBaudNumber(String currentBaudRate){
String[] rates=validBaudRates();
int[] numbers=validBaudNumber();
if (numbers == null) {
log.error("numbers array null in currentBaudNumber");
return -1;
}
if (rates == null) {
log.error("rates array null in currentBaudNumber");
return -1;
... | Convert a baud rate string to a number. Uses the validBaudNumber and validBaudRates methods to do this. |
public XYDataItem(double x,double y){
this(new Double(x),new Double(y));
}
| Constructs a new data item. |
protected void fireItemStateChanged(ItemEvent e){
Object[] listeners=listenerList.getListenerList();
for (int i=listeners.length - 2; i >= 0; i-=2) {
if (listeners[i] == ItemListener.class) {
((ItemListener)listeners[i + 1]).itemStateChanged(e);
}
}
}
| Notifies all listeners that have registered interest for notification on this event type. |
public void startBridgeServer(int port,boolean notifyBySubscription) throws IOException {
Cache cache=getCache();
CacheServer bridge=cache.addCacheServer();
bridge.setPort(port);
bridge.setNotifyBySubscription(notifyBySubscription);
bridge.start();
bridgeServerPort=bridge.getPort();
}
| Starts a bridge server on the given port, using the given deserializeValues and notifyBySubscription to serve up the given region. |
@Override public boolean input(Instance instance) throws Exception {
if (getInputFormat() == null) {
throw new IllegalStateException("No input instance format defined");
}
if (m_NewBatch) {
resetQueue();
m_NewBatch=false;
}
if (outputFormatPeek() != null) {
convertInstance(instance);
retur... | Input an instance for filtering. Ordinarily the instance is processed and made available for output immediately. Some filters require all instances be read before producing output. |
public IntCharSet copy(){
IntCharSet result=new IntCharSet();
for ( Interval interval : intervals) result.intervals.add(interval.copy());
return result;
}
| Return a (deep) copy of this char set |
public Builder put(String key,String customFileName,File file) throws FileNotFoundException {
mParams.put(key,file,null,customFileName);
return this;
}
| Adds a file to the request with custom provided file name |
public PreferenceBuilder<PreferenceClass> prefKey(String prefKey){
this.prefKey=prefKey;
return this;
}
| The key of the preference to retrieve |
public ScReplay[] createConsistencyGroupSnapshots(String instanceId) throws StorageCenterAPIException {
LOG.debug("Creating consistency group snapshots for '{}'",instanceId);
String id=UUID.randomUUID().toString().substring(0,31);
Parameters params=new Parameters();
params.add("description",id);
params.add("e... | Create snapshots for the consistency group. |
private String computeSort(){
List<Book> books=DataModel.getMapOfBooksByAuthor().get(this);
if (books != null) for ( Book book : books) {
if (book.hasSingleAuthor()) {
String authorSort=book.getAuthorSort();
if (Helper.isNotNullOrEmpty(authorSort) && authorSort.contains(",")) return authorS... | Derive the value we are going to use for sorting by Author |
public static String parseResourceId(String path){
String result=null;
if (path != null && path.length() > 0) {
int index=path.lastIndexOf("/");
String fileName=path.substring(index + 1);
result=fileName.substring(0,fileName.lastIndexOf("."));
}
return result;
}
| Parse path url, obtain database id from file name. |
public void rectValueToPixel(RectF r){
mMatrixValueToPx.mapRect(r);
mViewPortHandler.getMatrixTouch().mapRect(r);
mMatrixOffset.mapRect(r);
}
| Transform a rectangle with all matrices. |
public boolean hasViewAttached(){
return mView != null;
}
| Helper method to determine if View is attached at the moment |
public final static byte[] toAsciiByteArray(CharSequence charSequence){
byte[] barr=new byte[charSequence.length()];
for (int i=0; i < barr.length; i++) {
char c=charSequence.charAt(i);
barr[i]=(byte)((int)(c <= 0xFF ? c : 0x3F));
}
return barr;
}
| Converts char sequence into ASCII byte array. |
public Text padLeft(int len,char c){
final int padSize=(len <= length()) ? 0 : len - length();
return insert(0,Text.valueOf(c,padSize));
}
| Pads this text on the left to make the minimum total length as specified. Spaces or the given Unicode character are used to pad with. <br> The new length of the new text is equal to the original length plus <code>(length()-len)</code> pad characters. |
public Criteria or(){
Criteria criteria=createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
| This method was generated by MyBatis Generator. This method corresponds to the database table group |
public void testPackageContainer() throws Exception {
StandaloneLocalConfiguration configuration=(StandaloneLocalConfiguration)createConfiguration(ConfigurationType.STANDALONE);
InstalledLocalContainer container=(InstalledLocalContainer)createContainer(configuration);
Deployable war=new DefaultDeployableFactory()... | Create the packaging of a container and that it works when unpackaged. |
public void increaseThis(){
addToThis(ONE((GF2nONBField)mField));
}
| increases <tt>this</tt> element. |
public SnapshotState state(){
return state;
}
| Returns snapshot state |
protected SelectedSparseObjectMatrix1D(AbstractIntObjectMap elements,int[] offsets){
this(offsets.length,elements,0,1,offsets,0);
}
| Constructs a matrix view with the given parameters. |
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){
switch (featureID) {
case ImPackage.DELEGATING_SETTER_DECLARATION__DELEGATION_BASE_TYPE:
if (resolve) return getDelegationBaseType();
return basicGetDelegationBaseType();
case ImPackage.DELEGATING_SETTER_DECLARATION__DELEGATION_SUPE... | <!-- begin-user-doc --> <!-- end-user-doc --> |
public ConjunctionOfClauses extend(Collection<Clause> additionalClauses){
Set<Clause> extendedClauses=new LinkedHashSet<Clause>();
extendedClauses.addAll(clauses);
extendedClauses.addAll(additionalClauses);
ConjunctionOfClauses result=new ConjunctionOfClauses(extendedClauses);
return result;
}
| Create a new conjunction of clauses by taking the clauses from the current conjunction and adding additional clauses to it. |
public static void main(String[] args){
exec(args);
}
| Run the benchmark algorithm. |
public long lastseenTime(){
return time - lastseen() * 60000;
}
| get the absolute time when this peer was seen in the network |
public void play(String mStreamURL){
sendBroadcast(new Intent(ACTION_RADIOPLAYER_STOP));
notifyPlayerLoading();
if (mState == State.PAUSED && this.mStreamURL.equals(mStreamURL)) {
mediaPlayer.start();
mState=State.PLAYING;
notifyPlayerStarted(mediaPlayer.getDuration(),mediaPlayer.getCurrentPosition())... | Play music streaming |
public Type1(){
}
| needed so CIDFOnt0 can extend |
public final int yystate(){
return zzLexicalState;
}
| Returns the current lexical state. |
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter,java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
java.lang.String prefix=xmlWriter.getPrefix(namespace);
if (prefix == null) {
prefix=generatePrefix(namespace);
while (xmlWriter.getNamespaceContext().g... | Register a namespace prefix |
public void testGetters8(){
LayoutBuilder b=builder().setText("This is a longer test").setIncludePad(true).setWidth(50).setSpacingAdd(2).setSpacingMult(.8f);
FontMetricsInt fmi=b.paint.getFontMetricsInt();
Scaler s=new Scaler(b.spacingMult,b.spacingAdd);
Layout l=b.build();
assertVertMetrics(l,fmi.top - fmi.a... | Basic test showing effect of includePad = true, spacingAdd = 0, spacingMult = 0.8 when wrapping to 3 lines. |
public RetrieveAndRank(){
super("retrieve_and_rank");
if ((getEndPoint() == null) || getEndPoint().isEmpty()) {
setEndPoint(URL);
}
}
| Instantiates a new ranker client. |
private <V>PCollection<KV<K,RawUnionValue>> makeUnionTable(final int index,PCollection<KV<K,V>> pCollection,KvCoder<K,RawUnionValue> unionTableEncoder){
return pCollection.apply("MakeUnionTable" + index,ParDo.of(new ConstructUnionTableFn<K,V>(index))).setCoder(unionTableEncoder);
}
| Returns a UnionTable for the given input PCollection, using the given union index and the given unionTableEncoder. |
public void removeCalendarSelectionListener(CalendarSelectionListener listener){
calendarSelectionListeners.remove(listener);
}
| removeCalendarSelectionListener, This removes the specified calendar selection listener from this CalendarPanel. |
public String readString() throws IOException {
int firstByte=readByte();
int length=readInt(firstByte,PREFIX_8_BITS);
byte[] encoded=new byte[length];
bytesLeft-=length;
in.readFully(encoded);
return new String(encoded,"UTF-8");
}
| Reads a UTF-8 encoded string. Since ASCII is a subset of UTF-8, this method may be used to read strings that are known to be ASCII-only. |
public static void showOptionSheet(Component parentComponent,Object message,int optionType,int messageType,@Nullable Icon icon,@Nullable Object[] options,@Nullable Object initialValue,SheetListener listener){
JOptionPane pane=new JOptionPane(message,messageType,optionType,icon,options,initialValue);
pane.setInitial... | Brings up a sheet with a specified icon, where the initial choice is determined by the <code>initialValue</code> parameter and the number of choices is determined by the <code>optionType</code> parameter. <p> If <code>optionType</code> is <code>YES_NO_OPTION</code>, or <code>YES_NO_CANCEL_OPTION</code> and the <code>op... |
public ShortBuffer duplicate(){
ShortBuffer buf=new ShortBuffer(byteBuffer.duplicate());
buf.limit=limit;
buf.position=position;
buf.mark=mark;
return buf;
}
| Returns a duplicated buffer that shares its content with this buffer. <p> The duplicated buffer's position, limit, capacity and mark are the same as this buffer. The duplicated buffer's read-only property and byte order are the same as this buffer's. </p> <p> The new buffer shares its content with this buffer, which me... |
@Override public String toString(){
return "CUarray[" + "nativePointer=0x" + Long.toHexString(getNativePointer()) + "]";
}
| Returns a String representation of this object. |
public Document parse(String content){
LagartoParser lagartoParser=new LagartoParser(content,true);
return doParse(lagartoParser);
}
| Creates DOM tree from the provided content. |
public DViewPrivateKey(JFrame parent,String title,PrivateKey privateKey,Provider provider) throws CryptoException {
super(parent,title,Dialog.ModalityType.DOCUMENT_MODAL);
this.privateKey=privateKey;
this.provider=provider;
initComponents();
}
| Creates a new DViewPrivateKey dialog. |
public int fetchPattern(String key){
for (int i=0; i < Cell.expressionPatterns.length; i++) if (Cell.expressionPatterns[i].equalsIgnoreCase(key)) return i;
System.out.println("Unknown expression pattern: " + key);
return 0;
}
| Fetches an expression pattern in the pattern dictionary by a given key, creating a new pattern if the key doesn't exist yet. |
public void tableChanged(TableModelEvent e){
if (!loading) calculateSelection();
}
| Table Model Listener |
public void tickCube(boolean tryToTickFaster){
if (!this.isInitialLightingDone && this.isPopulated) {
this.tryDoFirstLight();
}
while (!this.tileEntityPosQueue.isEmpty()) {
BlockPos blockpos=this.tileEntityPosQueue.poll();
IBlockState state=this.getBlockState(blockpos);
Block block=state.getBlock(... | Tick this cube |
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-03-25 15:47:15.465 -0400",hash_original_method="8B9C9DA5FC3E4B4973EEF627B10AB2C3",hash_generated_method="E5C48F7C4C445F8E9E1E390A2036B6DD") public void testEnable(){
int iterations=BluetoothTestRunner.sEnableIterations;
if (iterations == 0)... | Stress test for enabling and disabling Bluetooth. |
protected Point2D _forward(double phi,double lambda,Point2D p,AzimuthVar azVar){
double c=hemisphere_distance(centerY,centerX,phi,lambda);
if (c > HEMISPHERE_EDGE) {
double az=GreatCircle.sphericalAzimuth(centerY,centerX,phi,lambda);
if (azVar != null) {
azVar.invalid_forward=true;
azVar.current... | Forward project a point. If the point is not within the viewable hemisphere, return flags in AzimuthVar variable if specified. |
protected void addProgressBar(final JProgressBar pbar){
super.add(pbar);
super.revalidate();
}
| Add a new progress bar. Protected, so this can be called via invokeLater |
public JaasConfiguration(String principal,File keytab,String appName){
this(principal,keytab,null,null);
clientAppName=appName;
serverAppName=null;
}
| Add an entry to the jaas configuration with the passed in principal and keytab, along with the app name. |
private void writeObject(ObjectOutputStream stream) throws IOException {
stream.defaultWriteObject();
writePaintMap(this.tickLabelPaintMap,stream);
}
| Provides serialization support. |
private void generateImportStatement(String importPackage){
PsiImportList psiImportList=psiFile.getImportList();
if (null == psiImportList.findOnDemandImportStatement(importPackage)) {
psiImportList.add(factory.createImportStatementOnDemand(importPackage));
}
}
| Generate import statement. |
@Override public void sendPrivateText(final NotificationType type,final String text){
this.addEvent(new PrivateTextEvent(type,text));
this.notifyWorldAboutChanges();
}
| Sends a message that only this player can read. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.