text
stringlengths
14
410k
label
int32
0
9
@Override public void spring(MOB target) { if((target!=invoker())&&(target.location()!=null)) { if((doesSaveVsTraps(target)) ||(invoker().getGroupMembers(new HashSet<MOB>()).contains(target))) target.location().show(target,null,null,CMMsg.MASK_ALWAYS|CMMsg.MSG_NOISE,L("<S-NAME> avoid(s) setting off a no...
9
@Test public void hahmoPutoaaAlkeellisesti() { int hahmonKoordinaattiAlussa = pe.getY(); pe.eksistoi(); assertTrue("Hahmo ei liikkunut alaspäin!", pe.getY() > hahmonKoordinaattiAlussa); }
0
public void mouseDragged(MouseEvent e) { //this item panel is the head item so just return //we can't move the head item if (getItemPanel().previousItem == null) { return; } Point loc = e.getPoint(); SwingUtilities.convertPointToSc...
9
public void init() throws Throwable{ StringBuilder action = new StringBuilder(); String str = null; do{ // Converte a string pra um char action.append(str); char word[] = new char[str.length()]; word = action.toString().toCharArray(); switch (word[0]) { case 'i': // Instrução para in...
4
public boolean divide() { int regionHeight = y2 - y1; int regionWidth = x2 - x1; // Millä tavalla alue voidaan jakaa? boolean canDivHor = regionHeight >= REGION_MIN_SIZE * 2; boolean canDivVer = regionWidth >= REGION_MIN_SIZE * 2; // Jos alue on liia...
5
public String getImageForStyle(Map<String, Object> style) { String filename = mxUtils.getString(style, mxConstants.STYLE_IMAGE); if (filename != null && !filename.startsWith("/") && !filename.startsWith("file:/")) { filename = imageBasePath + filename; } return filename; }
3
private Dimension findDimension(String dimensionName, SortedSet<Dimension> dimensions) throws CorrespondingDimensionNotExistsException { if (null == dimensionName || "".equals(dimensionName)) { throw new CorrespondingDimensionNotExistsException(); ...
4
public boolean func_77648_a(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) { if (par7 == 0) { return false; } if (par7 == 1) { return false; ...
8
@Override public void takeInfo(InfoPacket info) throws Exception { super.takeSuperInfo(info); Iterator<Pair<?>> i = info.namedValues.iterator(); Pair<?> pair = null; Label label = null; while(i.hasNext()){ pair = i.next(); label = pair.getLabel(); switch (label){ case temp: setTemperature((Do...
7
public static Cons javaTranslateNormalMethodCall(Symbol methodname, Surrogate classtype, Cons allargs) { { Slot slot = Stella_Class.lookupSlot(((Stella_Class)(classtype.surrogateValue)), methodname); MethodSlot methodslot = (((slot != null) && Stella_Object.isaP(slot, Stella.SGT_STELLA_METHOD_SLOT))...
9
private void initialize() { setupApplicationLocalData(); resetLastWindowState(); setMargin(); JPanel maincontainer = new JPanel(new BorderLayout()); /* * top panel */ JPanel top = new JPanel(new GridLayout(3, 8)); initComboBoxes(); // OLDDATA file_input_old.setRenderer(new FileNameListCellR...
8
@Override public boolean equals(Object other) { if(other == null) { return false; } if(other == this) { return true; } byte[] hashedpw = null; if(other instanceof HashedPassword) { hashedpw = ((HashedPassword) other).getHashedPassword(); } else if (other instanceof byte[]) { hashedpw ...
6
public int getLeapAmount(long millis) { return isLeap(millis) ? 1 : 0; }
1
public void read(IntReader reader) throws IOException { mChunkSize = reader.readInt(); mStringsCount = reader.readInt(); mStylesCount = reader.readInt(); mEncoder = reader.readInt();//utf-8 or uft16 mStrBlockOffset =reader.readInt(); mStyBlockOffset =reader.readInt(); if(mStringsCount >...
9
private static Platform getPlatform() { if(m_os == null) { String os = System.getProperty("os.name").toLowerCase(); m_os = Platform.unsupported; if(os.indexOf("win") >= 0) m_os = Platform.Windows; // Windows if(os.indexOf("mac") >= 0) m_os = Platform.Mac; // Mac if(os.indexOf("nux") >= 0) m_o...
6
public void setSide(int s) { side = s; }
0
public boolean setRole(int role) { if (role != ROLE_SERVER || role != ROLE_CLIENT) { this.role = role; saveToFile(); return true; } return false; }
2
public void init(Sag sag) { setSag(sag); cpr_textField.setText(this.sag.getPerson().getCpr()); cpr_textField.setEnabled(false); sagssted_textField.setText(this.sag.getSagsSted()); fornavn_textField.setText(this.sag.getPerson().getFornavn()); fornavn_textField.setEnable...
6
private boolean gotoNextValidMatrixCell() { do { dz++; if(dz > 2) { dz = 0; dy++; } if(dy > 2) { dy = 0; dx++; } if(dx > 2) { return false; // we have visited all neighboring matrix cells } } while(ox + dx < 0 || oy + dy < 0 || oz + dz < 0 || ox + dx >= numX || oy ...
9
public Position getDestination(){ return new Position(start.getY() + vertical, start.getX() + horizontal); }
0
public void readTable(Map table) { Identifier rep = getRepresentative(); if (!rep.wasAliased) { String newAlias = (String) table.get(getFullName()); if (newAlias != null) { rep.wasAliased = true; rep.setAlias(newAlias); } } for (Iterator i = getChilds(); i.hasNext();) ((Identifier) i.next())...
3
public CrossJoinIterator(Iterable<T> first, Iterable<TInner> second, Joint<T, TInner, TResult> joint) { this._first = first.iterator(); this._second = second; this._joint = joint; }
0
private int checkDay(int testDay) { if(testDay > 0 && testDay <= daysPerMonth[month]) return testDay; if(month == 2 && testDay == 29 && (year %400 == 0 || (year % 4 == 0 && year %100 != 0))) return testDay; throw new IllegalArgumentException( ...
7
private String csvEncode(String text) { if(text==null) return "null"; String encoded=""; boolean hasSpecialChar=false; int length=text.length(); if (length>0) { for(int i=0;i<length;i++) { char ch=text.charAt(i); if(ch==',' || ch=='"') { hasSpecialChar=true; continue; } } ...
8
@Override public PackageDoc containingPackage() { PackageDocImpl p = env.getPackageDoc(tsym.packge()); if (p.setDocPath == false) { FileObject docPath; try { Location location = env.fileManager.hasLocation(StandardLocation.SOURCE_PATH) ? St...
9
public ArrayList<String> cbEncarregado() throws SQLException { ArrayList<String> Encaregado = new ArrayList<>(); Connection conexao = null; PreparedStatement comando = null; ResultSet resultado = null; try { conexao = BancoDadosUtil.getConnection(); coma...
7
public void decrypt(InputStream in, OutputStream out) throws IOException { byte inbuf[] = new byte[8]; byte outbuf[] = new byte[8]; byte tmpbuf[] = new byte[8]; byte tmp[]; boolean done = false; int n = readn(in, inbuf, 8); while (n == 8) { tmp = tmpbuf; tmpbuf = outbuf; outbuf = tmp; n ...
7
private static int[] sumOfBinaryString(String binary) { char[] bin = binary.toCharArray(); int[] derp = new int[bin.length]; for (int i = 0; i < bin.length; i++) { if (bin[i] == '0') { derp[i] = 0; } else if (bin[i] == '1') { derp[i] = binary(bin.length - i - 1); } else { throw new NullPoint...
3
private void reportTypeChanged(){ hideSelectors(); option = current.isSelected() ? 6 : group.isSelected() ? 2 : teacher.isSelected() ? 3 : daycare.isSelected() ? 4 : club.isSelected() ? 5 :7; switch(option){ case 2: fillGroupSelector(); ...
9
public void fireWeaponListener(long id) { GameActor actor = mainLogic.getActor(id); if(actor != null) { WeaponsComponent wc = (WeaponsComponent)actor.getComponent("WeaponsComponent"); if(wc != null) { wc.fire(); } } }
2
private Collection createList() throws IOException { Collection list = null; if (_type == null) list = new ArrayList(); else if (! _type.isInterface()) { try { list = (Collection) _type.newInstance(); } catch (Exception e) { } } if (list != null) { } ...
9
public boolean start() { synchronized (optOutLock) { // Did we opt out? if (isOptOut()) { return false; } // Is metrics already running? if (task != null) { return true; } // Begin hitting the s...
7
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof HighLowRenderer)) { return false; } HighLowRenderer that = (HighLowRenderer) obj; if (this.drawOpenTicks != that.drawOpenTicks) { r...
8
public boolean update(Client client) { //Получаем текущий обьект по usersId int usersId = client.getUsersId(); Client curClient; if ((curClient = getByUsersId(usersId)) == null) { //Если обьекта не существует - обновлять нечего return false; } else { ...
5
private void rotate() { if (isOpen()) { crossRotate.setFromAngle(0); crossRotate.setToAngle(radialMenu.getOptions().isSimpleMode() ? -45 : -135); } else { crossRotate.setFromAngle(radialMenu.getOptions().isSimpleMode() ? -45 : -135); crossRotate.setToAngle...
3
@Override public void handleCollision(Actor other) { // Don't collide with our siblings if(other instanceof FlakShell && ((FlakShell) other).parentId.equals(getParentId())) return; // Don't shoot our parents if (parentId.equals(other.getId())) return; ...
3
private Header readHeader(DataInputStream ins) { Header out = new Header(); try { byte[] oldInput = new byte[3]; oldInput[0]=0; oldInput[1]=0; oldInput[2]=0; byte input = 0; input = ins.readByte(); int bufferSize = 0; ...
9
public void setNumber(String value) { this._numer = value; }
0
public Query<T> reverse() { if(this._source instanceof ArrayIterable<?>) { ArrayReverseIterable rs = new ArrayReverseIterable(((ArrayIterable<T>)this._source).getSource()); return new Query<T>(rs); } else if ((this._source instanceof List<?>) && (this._source instanceof RandomAccess)) { return new Q...
6
public static List<Integer> search(String text, String pattern){ //only searches for upper case letters text = text.toUpperCase(); pattern = pattern.toUpperCase(); List<Integer> response = new ArrayList<>(); HashSet<Character> dedup = new HashSet<>(); for( int i = 0; i< ...
6
private boolean containsVariable(String name) { for (VariableInformation var : variableList) if (var.name.equals(name)) return true; return false; }
2
public static void update() { ArrayList<AppWindow> windows = AppWindow.getAllWindows(); Collections.sort(windows); for (AppWindow window : windows) { JMenu windowMenu = StdMenuBar.findMenuByName(window.getJMenuBar(), NAME); if (windowMenu != null) { windowMenu.removeAll(); for (AppWindow one : windo...
3
public boolean distributionStrategy(int[] bowl) { predictDistribution(); double expectedScore = calculateExpectedScore(); // Take a bowl greater than your expected score based on the distribution if (bowlScore(bowl) > expectedScore + calculateThreshold()) return true; ...
1
public SignatureType createSignatureType() { return new SignatureType(); }
0
public State_Sense(String[] tokens) { super(E_Instruction.SENSE); if (tokens.length == 5 || tokens.length == 6) { // Variable number of tokens! senseDir = tokenToSenseDirection(tokens[1]); state1 = tokenToState(tokens[2]); state2 = tokenToState(tokens[3]); condition = tokenToCondition(tokens[4]); ...
9
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof Developer) { Developer other = (Developer) obj; return Objects.equals(firstName, other.firstName) && Objects.equals(lastName, other.lastName) && Objects.equals(age, other.age) && Objects.e...
5
static void checkClassSignature(final String signature) { // ClassSignature: // FormalTypeParameters? ClassTypeSignature ClassTypeSignature* int pos = 0; if (getChar(signature, 0) == '<') { pos = checkFormalTypeParameters(signature, pos); } pos = checkClassTypeSignature(signature, pos); while (getChar...
3
void updateFrom(int sender) { int changes = 0; for (int level=0; level<maxLevel; level++) { for (int zip=0; zip<maxOrder; zip++) { int[] offer = station[sender].promise[level]; if (offer[zip] != 0) { // known region if (off...
9
public boolean isArityAvailiable(int a) { return a >= lowBoundArity && a <= highBoundArity; }
1
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final TStok other = (TStok) obj; if (!Objects.equals(this.itemCode, other.itemCode)) { return false...
3
public List<User> getAllUsers() { List<User> users = null; try { beginTransaction(); users = session.createCriteria(User.class).list(); session.getTransaction().commit(); } catch (Exception e) { e.printStackTrace(); } finally { closeSession(); } return users; }
1
@Override public void update(String msg) { char ch = msg.charAt(0); int i = Integer.valueOf(String.valueOf(ch)); switch (i) { case 1: System.out.println(getClass().getName() + "说:天籁啊,真是!"); break; case 2: System.out.prin...
4
public void resume() { if (!paused) { play(); return; } paused = false; synchronized (player) { if (player != null) { player.notify(); } } setGain(oldGain); }
2
private void method98(Entity entity) { if(entity.anInt1548 == loopCycle || entity.anim == -1 || entity.anInt1529 != 0 || entity.anInt1528 + 1 > Animation.anims[entity.anim].method258(entity.anInt1527)) { int i = entity.anInt1548 - entity.anInt1547; int j = loopCycle - entity.anInt1547; int k = entity.anIn...
8
private void mergeParts(int lowerIndex, int middle, int higherIndex) { for (int i = lowerIndex; i <= higherIndex; i++) { tempMergArr[i] = array[i]; } int i = lowerIndex; int j = middle + 1; int k = lowerIndex; while (i <= middle && j <= higherIndex) { if (tempMergArr[i] <= tempMergArr[j]) { array[...
5
public SubmissionView(int mode, final ClientView cv, SubmissionTableModel model) { setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); JScrollPane scrollPane = new JScrollPane(); // If client if (mode == AS_CLIENT) { // Show submit button btnSubmitCode = new JButton("Submit Code"); btnSubmitCode.add...
1
static void initializePlatform(){ OperatingSystem os = OSDetector.detectOS(); if (os.equals(OperatingSystem.WINDOWS)) platform = new WindowsCommands(); else if (os.equals(OperatingSystem.MAC_OS)) platform = new MacOSCommands(); else if (os.equals(OperatingSystem.LINUX_GNOME))...
8
private void writeFrameType(final Object type) { if (type instanceof String) { stackMap.putByte(7).putShort(cw.newClass((String) type)); } else if (type instanceof Integer) { stackMap.putByte(((Integer) type).intValue()); } else { stackMap.putByte(8).putShort(((Label) type).position); } }
2
public void fish() { if (!Players.getLocal().isMoving() && Players.getLocal().getAnimation() != 621) { Time.sleep(1000); if (!Players.getLocal().isMoving() && Players.getLocal().getAnimation() != 621) { status = "Fishing"; NPC bob = NPCs.getNearest(327); if (bob.isOnScreen()) { bob.int...
7
public static DBConnectionProperties getInstance() throws IOException { if (instance == null) { instance = new DBConnectionProperties(); } return instance; }
1
private void writeToStream(String message) { if (!sock.isConnected() || sock.isClosed() || out == null) return; byte[] sizeinfo = new byte[4]; byte[] data = message.getBytes(); ByteBuffer bb = ByteBuffer.allocate(sizeinfo.length); bb.putInt(message.getBytes().length); try { out.w...
4
public void adicionaPreferenciaDisciplina(Disciplina d, int nivelPreferencia) throws PreferenciaInvalidaException { switch (nivelPreferencia) { case 1: this.listaDisciplinasP1.add(d); break; case 2: this.listaDisciplinasP2.add(d); break; case 3: this.listaDisciplinasP3.add(d); break; case...
4
public static Collection<Method> getDeclaredMethods(Class<?> clazz) { Reference<Collection<Method>> ref = declaredMethods.get(clazz); Collection<Method> list; if (ref != null) { list = ref.get(); if (list != null) return list; } Map<Signatu...
9
private static void doQuery() { try { String databaseName = "mytest"; for(int i = 0; i < 100; ++i) { IMySQLConnection conn = MySQLService.getConnection(databaseName); if(conn == null) { System.out.println("conn == null"); } for(int j = 0; j < 100; ++j) { conn.executeQuery("S...
6
public static void main(String[] args) { // TODO Auto-generated method stub String start = "qa"; String end = "sq"; String[] dicts = { "si", "go", "se", "cm", "so", "ph", "mt", "db", "mb", "sb", "kr", "ln", "tm", "le", "av", "sm", "ar", "ci", "ca", "br", "ti", "ba", "to", "ra", "fa", "yo", "ow", "sn", ...
3
public void preprocess() { File file = new File(path); BufferedReader reader; try { reader = new BufferedReader(new FileReader(file)); String line; while((line = reader.readLine()) != null) { String word = line.toLowerCase(); m...
3
public float getSaldo() { return saldo; }
0
public static byte[] encryptHMAC(byte[] data, String key) throws IOException, NoSuchAlgorithmException, InvalidKeyException { SecretKey secretKey = new SecretKeySpec(base64Decoder(key), KEY_MAC); Mac mac = Mac.getInstance(secretKey.getAlgorithm()); mac.init(secretKey); return mac.doFinal(data); }
0
public void pause() {isPaused = true;}
0
public boolean retirar(float cantidad) { if(cantidad+cantidad*this.penalizacion<=saldo){ saldo-=cantidad+cantidad*this.penalizacion; return true; }else{ return false; } }
1
public static ArrondissementVilleDAO getInstance(Connection conn) { if (instance == null) { instance = new ArrondissementVilleDAO(conn); } return instance; }
1
public void playSound(int i) { if (Settings.GLOBAL_SOUND) { if (i == 0) { sound = Gdx.audio.newSound(Gdx.files.internal("data/big_shot.mp3")); thread.run(); } if (i == 1) { sound = Gdx.audio.newSound(Gdx.files.internal("data/exp...
6
public LinkedList<Personnage> calculerCibles(int x, int y, int portee){ LinkedList<Personnage> res = new LinkedList<Personnage>(); // stocke le résultat final // On inspecte la verticale et l'horizontale, en ne regardant pas la case où l'on se trouve // à gauche de la case for(int i=(x-portee); i<x; i++){ if...
8
private void splitPlayerHashMap(GameData gameData) { if (gameData != null && gameData.playerData != null) { String[] keys = new String[]{""}; StringBuilder[] sb = new StringBuilder[4]; sb[0] = new StringBuilder(); sb[1] = new StringBuilder(); sb[2] =...
4
public void setServer(String server){ this.Server = server; }
0
public void process(String fName) throws FileNotFoundException, IOException{ System.out.println("Starting to sum up reads for transcripts in " + fName); System.out.println("Writing output to " + fName.replace(".txt", "_out.txt")); BufferedReader exCounts=new BufferedReader(new FileReader(fName))...
3
public void mutate() { if(bestVariation==null || baseGenome.getTotalOverlaps()<bestVariation.getTotalOverlaps()){ Logger.log("Found new best "+baseGenome.getTotalOverlaps()); bestVariation = baseGenome.clone(); } //double quality = baseGenome.getTotalOverlaps(); baseGenome.mutate(); // Only accept mutat...
2
public ArrayList<City> getNeighbours(City city) { int index = getIndex(city); if (index < 0) { return null; } ArrayList<City> list = new ArrayList<>(); for (int i = 0; i < edges.length; i++) { for (int x = 0; x < edges[i].length; i++) { if ...
6
@Override public String getDesc() { return "SonicBlow"; }
0
public static void storeNewParis(ParisModel paris) { if(!hasParisForUserAndSchedule(paris.getParis_userId(),paris.getParis_schedId())){ UserModel user = getUser(paris.getParis_userId()); user.addUserPoint(-paris.getBet()); storeUser(user); storeParis(paris); } }
1
private void doAction() { if (action == editor.getOpenItem()) this.doOpenItem(); if (action == editor.getNewItem()) this.doNewItem(); if (action == editor.getSaveItem()) this.doSaveItem(); if (action == editor.getSaveAsItem()) this.doSaveAsItem(); if (action == editor.getOpenFold...
5
public void setDirty(final boolean isDirty) { if (this.isDeleted) { final String s = "Cannot change a field once it has been marked " + "for deletion"; throw new IllegalStateException(s); } this.isDirty = isDirty; if (isDirty == true) { this.editor.setDirty(true); } }
2
@SuppressWarnings ("unchecked") protected final GEntry removeEntry(final GKey key, final boolean verifyLength) { if (this._size_ == 0) return null; final Object[] table = this._table_; final int hash = this.getKeyHash(key); final int index = this.getIndex(hash, table.length); GEntry item = (GEntry)table[inde...
5
public int getBitsPerPixel() { return bitsPerPixel; }
0
public static void main(String[] args) { Graph G = null; try { G = new Graph(new In(args[0])); } catch (Exception e) { System.out.println(e); System.exit(1); } int s = Integer.parseInt(args[1]); ISearch search = new SearchWQU(G, s); for (int v = 0; v < G.V(); v++) if (search.marked(v)...
4
public void check_reductions() throws internal_error { parse_action act; production prod; /* tabulate reductions -- look at every table entry */ for (int row = 0; row < num_states(); row++) { for (int col = 0; col < under_state[row].size(); col++) { /* look at the acti...
7
private void testWrite(){ String f_name = this.path + Params.nTests + ".txt"; long startTime = 0; long endTime = 0; File f = new File(f_name); FileOutputStream fout = null; try{ fout = new FileOutputStream(f); byte[] buf = new byte[Params.packSize * Params.nPacks]; for(int i = ...
2
public void apply(Signature signature) { ArrayList<Point> points = signature.getPoints(); int n = points.size(); /* Compute speed for each points except first and last one */ ArrayList<Double> speeds = new ArrayList<Double>(); speeds.add(0.); // Add first speed to maintain indexes for (int i = 1; i < n -...
6
protected void printWordTopicDistribution(_Doc d, File wordTopicDistributionFolder, int k) { _ParentDoc4DCM pDoc = (_ParentDoc4DCM) d; String wordTopicDistributionFile = pDoc.getName() + ".txt"; try { PrintWriter pw = new PrintWriter(new File( wordTopicDistributionFolder, wordTopicDistributionFile)); ...
5
@Override public int classDurationModifier(MOB myChar, Ability skill, int duration) { if(myChar==null) return duration; if((((skill.classificationCode()&Ability.ALL_DOMAINS)==Ability.DOMAIN_CRAFTINGSKILL) ||((skill.classificationCode()&Ability.ALL_DOMAINS)==Ability.DOMAIN_BUILDINGSKILL))...
9
public DAO_Configuration() { SAXBuilder sxb = new SAXBuilder(); try { //On crée un nouveau document JDOM avec en argument le fichier XML File f = new File(path); File dossier = new File("stockage"); if (!dossier.exists()) { ...
3
@SuppressWarnings("static-access") private void ROUND9() { enemises.clear(); System.out.println("Round9!!!!!!"); for (int i = 0; i < level.getWidth(); i++) { for (int j = 0; j < level.getHeight(); j++) { if ((level.getPixel(i, j) & 0x0000FF) == 2) { ...
3
public Dude getNearestDude(Tile tile) { int x = tile.getX(); int y = tile.getY(); int bestSquaredDistance = Integer.MAX_VALUE; Dude bestStructure = null; for (Dude d : allDudes) { if(d.getClass() != Dude.class) continue; if(d.hasTask()) continue; int squaredDistance = (d.getX() - x) * (d.get...
5
public Object getProperty(String name, Object opNode) { validate(name, opNode); if(opNode instanceof RenderedOp && name.equalsIgnoreCase("roi")) { RenderedOp op = (RenderedOp)opNode; ParameterBlock pb = op.getParameterBlock(); ...
9
private void createMap() { int c; String s = ""; for(int i = 0; i < width; i++) { for(int j = 0; j < height; j++) { mapView[i][j] = new JLabel(); c = gameMap[i][j]; if(c == 0) ...
7
@Override public void Update(long gameTime) { for (Sprite sprite : _sprites) { sprite.Update(gameTime); } _weapon.Update(gameTime); InputManager input = InputManager.getInstance(); if (input.isKeyDown(KeyEvent.VK_Q)) { jaune.setX(jaune.getX() - 1);...
6
public static Stella_Object inferPredicateFromOperatorAndTypes(Stella_Object operator, List types) { { Surrogate testValue000 = Stella_Object.safePrimaryType(operator); if (Surrogate.subtypeOfSurrogateP(testValue000)) { { Surrogate operator000 = ((Surrogate)(operator)); if (Stella_Object.i...
9
@Override public int read() throws IOException { int result = (length == next) ? -1 : string.charAt(next++); if (result <= 13) { switch (result) { case 13: column = 0; line++; int c = (length == next) ? -1 : string.charAt(next); if (c == 10) { next++; } return ...
6
@Test public void testLayers() { BeerRequest beerRequest = new BeerRequest(); beerRequest.setName("cruzcampo"); beerRequest.setDescription("standard spanish pilsner style beer"); BarController barController = AppContext.getService(BarController.class); BeerResponse firstRespo...
0
public void Render(GameObject object) { if (GetMainCamera() == null) System.err.println("Error! Main camera not found. This is very very big bug, and game will crash."); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); object.RenderAll(m_forwardAmbient, this); glEnable(GL_BLEND); glBlendFunc(GL_ONE, GL_...
2