buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public java.sql.ResultSet getResultSet(java.lang.String sql) throws java.sql.SQLException { java.sql.ResultSet rs = null; java.sql.Statement stmt = null; stmt = con.createStatement(); rs = stmt.executeQuery(sql); stmt.close(); con.close(); return rs; }
public java.sql.ResultSet getResultSet(java.lang.String sql) throws java.sql.SQLException { java.sql.ResultSet rs = null; java.sql.Statement stmt = null; stmt = this.con.createStatement(); rs = stmt.executeQuery(sql); this.con.commit(); stmt.close(); this.con.close(); return rs; }
public <AT> java.util.List<ac.uk.susx.tag.annotation.Annotation<AT>> getSentenceAnnotations(java.lang.Class<? extends ac.uk.susx.tag.annotator.IAnnotator<AT, ?>> class1) throws ac.uk.susx.tag.utils.IllegalAnnotationStorageException { try { return annotations.get(class1).getClass().cast(annotations.get(class...
public <AT> java.util.List<ac.uk.susx.tag.annotation.Annotation<AT>> getSentenceAnnotations(java.lang.Class<? extends ac.uk.susx.tag.annotator.IAnnotator<AT, ?>> class1) throws ac.uk.susx.tag.utils.IllegalAnnotationStorageException { java.lang.System.out.println(class1.toString()); try { return annotati...
public void startAsync(it.unical.mat.embasp.base.Callback c, java.util.List<java.lang.Integer> program_index, java.util.List<java.lang.Integer> option_index) { java.util.List<it.unical.mat.embasp.base.InputProgram> input_programs = collect_programs(program_index); java.util.List<it.unical.mat.embasp.base.Option...
public void startAsync(it.unical.mat.embasp.base.Callback c, java.util.List<java.lang.Integer> program_index, java.util.List<java.lang.Integer> option_index) { java.util.List<it.unical.mat.embasp.base.InputProgram> input_programs = collect_programs(program_index); java.util.List<it.unical.mat.embasp.base.Option...
public net.sf.memoranda.date.CalendarDate getEndRepeat() { java.lang.String temp; try { temp = _element.getAttribute("endRepeat").getValue(); } catch (java.lang.NullPointerException e) { temp = ""; } net.sf.memoranda.date.CalendarDate attr; if (!(temp.equals(""))) { attr ...
public net.sf.memoranda.date.CalendarDate getEndRepeat() { java.lang.String temp; try { temp = _element.getAttribute("endRepeat").getValue(); } catch (java.lang.NullPointerException e) { temp = ""; } net.sf.memoranda.date.CalendarDate attr; if (temp.equals("")) { attr = n...
public void run() { double amp = mSensor.getAmplitude(); android.util.Log.e("Noise", ("runnable mPollTask " + amp)); if (amp > (mThreshold)) { callForHelp(amp); android.util.Log.e("Noise", "==== onCreate ==="); } mHandler.postDelayed(mPollTask, com.example.jackson.gameuebung_3.MGDExe...
public void run() { double amp = mSensor.getAmplitude(); android.util.Log.e("Noise", ("runnable mPollTask " + amp)); if (amp > (mThreshold)) { callForHelp(amp); } mHandler.postDelayed(mPollTask, com.example.jackson.gameuebung_3.MGDExerciseActivity.POLL_INTERVAL); }
public org.eclipse.emf.common.util.EList<no.hal.pg.quiz.runtime.QAProposal> getQAProposals(no.hal.pg.runtime.Ref<no.hal.pg.runtime.Player> playerRef) { no.hal.pg.runtime.Player player = playerRef.get(this); org.eclipse.emf.common.util.EList<no.hal.pg.quiz.runtime.QAProposal> proposals = new org.eclipse.emf.comm...
public org.eclipse.emf.common.util.EList<no.hal.pg.quiz.runtime.QAProposal> getQAProposals(no.hal.pg.runtime.Player player) { org.eclipse.emf.common.util.EList<no.hal.pg.quiz.runtime.QAProposal> proposals = new org.eclipse.emf.common.util.BasicEList<no.hal.pg.quiz.runtime.QAProposal>(); for (no.hal.pg.quiz.runt...
private void doAny(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { javax.servlet.http.HttpSession session = request.getSession(false); if (session == null) { java.lang.String reference = request....
private void doAny(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { javax.servlet.http.HttpSession session = request.getSession(false); if (session != null) { request.getRequestDispatcher("work.js...
public void buttonClicked(int buttonID) { switch (buttonID) { case 0 : activityController.createActivity(buttonID, activityNameField.getText(), ageLimitField.getText(), heightLimitField.getText()); break; case 1 : break; case 2 : break; ...
public void buttonClicked(int buttonID) { switch (buttonID) { case 0 : activityController.createActivity(buttonID, activityNameField.getText().trim(), ageLimitField.getText().trim(), heightLimitField.getText().trim()); break; case 1 : break; case 2 : ...
public void pullTest() throws java.io.IOException, java.lang.InterruptedException { java.lang.String QUEUE_NAME = (BASE_QUEUE_NAME) + "Pull"; service.purgeQueue(QUEUE_NAME); service.push(QUEUE_NAME, messageBody); com.example.Message message = service.pull(QUEUE_NAME); org.junit.Assert.assertNotNull(...
public void pullTest() throws java.io.IOException, java.lang.InterruptedException { java.lang.String QUEUE_NAME = (BASE_QUEUE_NAME) + "Pull"; service.purgeQueue(QUEUE_NAME); service.push(QUEUE_NAME, messageBody); com.example.Message message = service.pull(QUEUE_NAME); org.junit.Assert.assertNotNull(...
protected void onPostExecute(java.lang.String result) { progress.dismiss(); notification.setText(result); if (!(result.equals("NOT AUTHENTICATED"))) { android.content.Intent i = new android.content.Intent(this, com.test.root.arm.Selection.class); i.putExtra("json", result); startActi...
protected void onPostExecute(java.lang.String result) { progress.dismiss(); if (result != null) if (!(result.equals("NOT AUTHENTICATED"))) { android.content.Intent i = new android.content.Intent(this, com.test.root.arm.Selection.class); i.putExtra("json", result); sta...
public void visitConnector(org.peg4d.expression.ParsingConnector e) { int label = newLabel(); this.pushFailureJumpPoint(); writeCode(Instruction.PUSHconnect); writeCode(Instruction.PUSHm); e.inner.visit(this); writeCode(Instruction.COMMIT); writeCode(Instruction.LINK, e.index); writeJump...
public void visitConnector(org.peg4d.expression.ParsingConnector e) { int label = newLabel(); this.pushFailureJumpPoint(); writeCode(Instruction.PUSHconnect); writeCode(Instruction.PUSHm); e.inner.visit(this); writeCode(Instruction.COMMIT); writeCode(Instruction.LINK, e.index); writeCode...
public void OnNewMessageNotification(final org.jivesoftware.smack.packet.Message message, final java.lang.String userXmppAddress) { getActivity().invalidateOptionsMenu(); final java.lang.String username = com.recoverrelax.pt.riotxmppchat.MainApplication.getInstance().getRiotXmppService().getRoster().getEntry(us...
public void OnNewMessageNotification(final org.jivesoftware.smack.packet.Message message, final java.lang.String userXmppAddress) { getActivity().invalidateOptionsMenu(); final java.lang.String username = com.recoverrelax.pt.riotxmppchat.MainApplication.getInstance().getRiotXmppService().getRoster().getEntry(us...
public void disableMenubar() { for (java.awt.Component menuItem : menuBar.getComponents()) { if (menuItem.isEnabled()) { menuItem.setEnabled(false); disabledMenus.add(((javax.swing.JMenuItem) (menuItem))); } } }
public void disableMenubar() { this.disabledMenus = new java.util.HashSet<javax.swing.JMenuItem>(); for (java.awt.Component menuItem : menuBar.getComponents()) { if (menuItem.isEnabled()) { menuItem.setEnabled(false); disabledMenus.add(((javax.swing.JMenuItem) (menuItem))); ...
public void setSkyLight(int x, int y, int z, byte light) { net.morbz.minecraft.world.Section section = getSection(y, false); if (section != null) { int blockY = y % (Section.SECTION_HEIGHT); section.setSkyLight(x, blockY, z, light); } }
private void setSkyLight(int x, int y, int z, byte light) { net.morbz.minecraft.world.Section section = getSection(y, false); if (section != null) { int blockY = y % (Section.SECTION_HEIGHT); section.setSkyLight(x, blockY, z, light); } }
private com.sap.hadoop.ds.sortedmap.ByteBasedSortedMap persist(int i) throws com.sap.hadoop.ds.BaseException { try { com.sap.hadoop.ds.sortedmap.ByteBasedSortedMap mp = partitions.get(i); if (mp instanceof com.sap.hadoop.ds.sortedmap.ByteBasedSortedMap) { java.io.File f = java.io.File.cr...
private com.sap.hadoop.ds.sortedmap.ByteBasedSortedMap persist(int i) throws com.sap.hadoop.ds.BaseException { try { com.sap.hadoop.ds.sortedmap.ByteBasedSortedMap mp = partitions.get(i); if (!(mp instanceof com.sap.hadoop.ds.sortedmap.PersistentByteBasedSortedMap)) { java.io.File f = ja...
public int getFailed() { long total = 0; long failed = 0; for (java.util.Iterator<org.zeroturnaround.stats.model.RunStats> ite = runStats.iterator(); ite.hasNext();) { org.zeroturnaround.stats.model.RunStats stats = ((org.zeroturnaround.stats.model.RunStats) (ite.next())); failed += stats.ge...
public int getFailed() { long total = 0; long failed = 0; for (java.util.Iterator<org.zeroturnaround.stats.model.RunStats> ite = runStats.iterator(); ite.hasNext();) { org.zeroturnaround.stats.model.RunStats stats = ((org.zeroturnaround.stats.model.RunStats) (ite.next())); failed += stats.ge...
public static void writeFile(java.lang.String toWrite) { try { byte[] data = toWrite.getBytes(); java.io.FileOutputStream outputStream = new java.io.FileOutputStream(Bastille.filename); java.util.Base64.Encoder encoder = java.util.Base64.getEncoder(); data = encoder.encode(data); ...
public static void writeFile(java.lang.String toWrite) { try (java.io.FileOutputStream outputStream = new java.io.FileOutputStream(Bastille.filename)) { byte[] data = toWrite.getBytes(); java.util.Base64.Encoder encoder = java.util.Base64.getEncoder(); data = encoder.encode(data); ou...
private void addCards(int cardwidth) { com.amosli.game2048.Card c; for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { c = new com.amosli.game2048.Card(getContext()); c.setNum(0); addView(c, cardwidth, cardwidth); cards[j][i] = c; } } }
private void addCards(int cardwidth) { com.amosli.game2048.Card c; for (int y = 0; y < 4; y++) { for (int x = 0; x < 4; x++) { c = new com.amosli.game2048.Card(getContext()); c.setNum(0); addView(c, cardwidth, cardwidth); cards[x][y] = c; } } }
public void paintComponent(java.awt.Graphics g) { super.paintComponent(g); java.awt.Dimension size = this.getSize(); java.lang.System.out.println(((("Size: " + (size.width)) + " ") + (size.height))); if ((size.width) != (size.height)) { int d = java.lang.Math.min(size.width, size.height); ...
public void paintComponent(java.awt.Graphics g) { super.paintComponent(g); java.awt.Dimension size = this.getSize(); if ((size.width) != (size.height)) { int d = java.lang.Math.min(size.width, size.height); setSize(d, d); setPreferredSize(new java.awt.Dimension(d, d)); } }
private static void restoreDeviceInfo() { if ((com.cmcc.uiautomator.MiguUiAutomator.setOrNot) == 1) return ; java.lang.String json_device = com.cmcc.uiautomator.MiguUiAutomator.parseDeviceObj2Str(); if (android.text.TextUtils.isEmpty(json_device)) return ; if ((com.cmcc.uiautom...
private static void restoreDeviceInfo() { if ((com.cmcc.uiautomator.MiguUiAutomator.setOrNot) == 1) return ; java.lang.String json_device = com.cmcc.uiautomator.MiguUiAutomator.parseDeviceObj2Str(); if (android.text.TextUtils.isEmpty(json_device)) return ; if ((com.cmcc.uiautom...
public void testFireAtInvalidCol() { edu.oregonstate.cs361.battleship.BattleshipModel test = new edu.oregonstate.cs361.battleship.BattleshipModel(); com.google.gson.Gson gson = new com.google.gson.Gson(); java.lang.String model = gson.toJson(test); edu.oregonstate.cs361.battleship.MainTest.TestResponse ...
public void testFireAtInvalidCol() { edu.oregonstate.cs361.battleship.BattleshipModel test = new edu.oregonstate.cs361.battleship.BattleshipModel(); com.google.gson.Gson gson = new com.google.gson.Gson(); java.lang.String model = gson.toJson(test); edu.oregonstate.cs361.battleship.MainTest.TestResponse ...
public cn.momia.api.user.Contacts getContacts(java.lang.String utoken) { cn.momia.api.base.http.MomiaHttpParamBuilder builder = new cn.momia.api.base.http.MomiaHttpParamBuilder().add("utoken", utoken); cn.momia.api.base.http.MomiaHttpRequest request = cn.momia.api.base.http.MomiaHttpRequest.GET("contacts", true...
public cn.momia.api.user.Contacts getContacts(java.lang.String utoken) { cn.momia.api.base.http.MomiaHttpParamBuilder builder = new cn.momia.api.base.http.MomiaHttpParamBuilder().add("utoken", utoken); cn.momia.api.base.http.MomiaHttpRequest request = cn.momia.api.base.http.MomiaHttpRequest.GET(url("user/contac...
public void close() throws java.io.IOException { org.rascalmpl.uri.libraries.InMemoryResolver.File file = get(uri); byte[] content = this.toByteArray(); if (file == null) { if ((content.length) == 0) { super.close(); return ; } file = new org.rascalmpl.uri.lib...
public void close() throws java.io.IOException { org.rascalmpl.uri.libraries.InMemoryResolver.File file = get(uri); byte[] content = this.toByteArray(); if (file == null) { file = new org.rascalmpl.uri.libraries.InMemoryResolver.File(); fileSystem.getFileSystem().put(uri.getPath(), file); ...
private void updateTopArtists(org.tomahawk.libtomahawk.collection.Playlist playlist) { if ((playlist != null) && ((playlist.getEntries().size()) == 0)) { playlist = org.tomahawk.libtomahawk.database.DatabaseHelper.getInstance().getPlaylist(playlist.getId()); } if ((playlist != null) && ((playlist.ge...
private void updateTopArtists(org.tomahawk.libtomahawk.collection.Playlist playlist) { if ((playlist != null) && ((playlist.getEntries().size()) == 0)) { playlist = org.tomahawk.libtomahawk.database.DatabaseHelper.getInstance().getPlaylist(playlist.getId()); } if ((playlist != null) && ((playlist.ge...
private static de.terrestris.shogun2.util.model.Response postBody(org.apache.http.client.methods.HttpPost httpRequest, java.lang.String body, org.apache.http.entity.ContentType contentType, java.lang.String username, java.lang.String password) throws java.net.URISyntaxException, org.apache.http.HttpException { org....
private static de.terrestris.shogun2.util.model.Response postBody(org.apache.http.client.methods.HttpPost httpRequest, java.lang.String body, org.apache.http.entity.ContentType contentType, java.lang.String username, java.lang.String password) throws java.net.URISyntaxException, org.apache.http.HttpException { org....
public static synchronized void markConversionForGoal(@android.support.annotation.NonNull java.lang.String goalIdentifier, double value) { if (((com.vwo.mobile.VWO.sSharedInstance) != null) && ((com.vwo.mobile.VWO.sSharedInstance.mVWOStartState.getValue()) >= (VWOStartState.STARTED.getValue()))) { if (com.v...
public static void markConversionForGoal(@android.support.annotation.NonNull java.lang.String goalIdentifier, double value) { synchronized(com.vwo.mobile.VWO.sSharedInstance) { if (((com.vwo.mobile.VWO.sSharedInstance) != null) && ((com.vwo.mobile.VWO.sSharedInstance.mVWOStartState.getValue()) >= (VWOStartS...
public void createPendingInternship(@javax.jws.WebParam(name = "student") java.lang.String student, @javax.jws.WebParam(name = "company") java.lang.String company, @javax.jws.WebParam(name = "postDate") java.lang.String postDate, @javax.jws.WebParam(name = "salary") float salary, @javax.jws.WebParam(name = "title") jav...
public void createPendingInternship(@javax.jws.WebParam(name = "student") java.lang.String student, @javax.jws.WebParam(name = "company") java.lang.String company, @javax.jws.WebParam(name = "postDate") java.lang.String postDate, @javax.jws.WebParam(name = "salary") float salary, @javax.jws.WebParam(name = "title") jav...
public void geometricSeriesApproximationStep1(double x) { this.steps = 0; this.lastApproximation = 1; double nextApproximation = x; for (int i = 0; i < (steps); i++) { nextApproximation = nextApproximation * x; } this.approximation = (this.lastApproximation) + nextApproximation; if (...
public void geometricSeriesApproximationStep1(double x) { this.steps = 0; this.lastApproximation = 1; double nextApproximation = x; for (int i = 0; i < (steps); i++) { nextApproximation = nextApproximation * x; } this.approximation = (this.lastApproximation) + nextApproximation; (thi...
public void changeToToday() { changeDay(todaysDay); changeMonth(todaysMonth); changeYear(todaysYear); calendar.set(java.util.Calendar.DATE, todaysDay); calendar.set(java.util.Calendar.MONTH, todaysMonth); calendar.set(java.util.Calendar.YEAR, todaysYear); update(); }
public void changeToToday() { changeDay(todaysDay); changeMonth(todaysMonth); changeYear(todaysYear); calendar.set(java.util.Calendar.DATE, todaysDay); calendar.set(java.util.Calendar.MONTH, todaysMonth); calendar.set(java.util.Calendar.YEAR, todaysYear); java.lang.System.out.println(todaysD...
public static java.lang.String readFromSharedPrefs(java.lang.String key) { android.content.SharedPreferences settings = com.example.shashankshekhar.servicedemo.Logger.MqttLogger.applicationContext.getSharedPreferences(com.example.shashankshekhar.servicedemo.Logger.PREFS_NAME, 0); java.lang.String userName = set...
private static java.lang.String readFromSharedPrefs(java.lang.String key) { android.content.SharedPreferences settings = com.example.shashankshekhar.servicedemo.Logger.MqttLogger.applicationContext.getSharedPreferences(com.example.shashankshekhar.servicedemo.Logger.PREFS_NAME, 0); java.lang.String userName = se...
public void handleMessage(android.os.Message msg) { java.lang.String _msg = ((java.lang.String) (msg.obj)); android.util.Log.d(com.jsbd.uart.server.LogService.TAG, _msg); if ((mCallback) != null) { mCallback.onMessage(_msg); } try { mOut.write(_msg.getBytes()); mOut.flush(); ...
public void handleMessage(android.os.Message msg) { java.lang.String _msg = ((java.lang.String) (msg.obj)); if ((mCallback) != null) { mCallback.onMessage(_msg); } try { mOut.write(_msg.getBytes()); mOut.flush(); } catch (java.io.IOException e) { android.util.Log.e(co...
if ((entity.sensors().get(org.apache.brooklyn.location.jclouds.PRIVATE_ADDRESSES)) == null) { entity.sensors().set(org.apache.brooklyn.location.jclouds.PRIVATE_ADDRESSES, com.google.common.collect.ImmutableSet.copyOf(node.getPrivateAddresses())); } if ((entity.sensors().get(org.apache.brooklyn.locat...
entity.sensors().set(org.apache.brooklyn.location.jclouds.PRIVATE_ADDRESSES, com.google.common.collect.ImmutableSet.copyOf(node.getPrivateAddresses())); entity.sensors().set(org.apache.brooklyn.location.jclouds.PUBLIC_ADDRESSES, com.google.common.collect.ImmutableSet.copyOf(node.getPublicAddresses())); }
public static java.lang.String removeLeadingZeroes(java.lang.String str) { int leadingZeroes; for (leadingZeroes = 0; (leadingZeroes < (str.length())) && ((str.charAt(leadingZeroes)) == '0'); leadingZeroes++); return str.substring(leadingZeroes); }
public static java.lang.String removeLeadingZeroes(java.lang.String str) { if (str == null) { return null; } int leadingZeroes; for (leadingZeroes = 0; (leadingZeroes < (str.length())) && ((str.charAt(leadingZeroes)) == '0'); leadingZeroes++); return str.substring(leadingZeroes); }
public void testLengths() throws java.io.IOException, org.biojava.bio.structure.StructureException { java.lang.String pdbId = "1w0p"; java.lang.String rangeStr = "A:25-26"; org.biojava.bio.structure.Atom[] atoms = cache.getAtoms(pdbId); org.biojava.bio.structure.AtomPositionMap map = new org.biojava.bio...
public void testLengths() throws java.io.IOException, org.biojava.bio.structure.StructureException { java.lang.String pdbId = "1w0p"; java.lang.String rangeStr = "A:25-26"; org.biojava.bio.structure.Atom[] atoms = cache.getAtoms(pdbId); org.biojava.bio.structure.AtomPositionMap map = new org.biojava.bio...
public void obtainLock(java.lang.Object aggregateIdentifier) { boolean lockObtained = false; while (!lockObtained) { createLockIfAbsent(aggregateIdentifier); org.axonframework.repository.PessimisticLockManager.DisposableLock lock = lockFor(aggregateIdentifier); lockObtained = lock.lock()...
public void obtainLock(java.lang.Object aggregateIdentifier) { boolean lockObtained = false; while (!lockObtained) { org.axonframework.repository.PessimisticLockManager.DisposableLock lock = lockFor(aggregateIdentifier); lockObtained = lock.lock(); if (!lockObtained) { locks....
private static java.lang.CharSequence doPeek(final java.lang.CharSequence pattern) { java.lang.CharSequence returnPattern; boolean validPattern = FourBitTwoDisclosureDeviceUnlocker.isPeekValid(pattern); if (validPattern) { FourBitTwoDisclosureDeviceUnlocker.appendTrace("peek : with pattern", pattern...
private static java.lang.CharSequence doPeek(final java.lang.CharSequence pattern) { java.lang.CharSequence returnPattern; if (FourBitTwoDisclosureDeviceUnlocker.isPeekValid(pattern)) { FourBitTwoDisclosureDeviceUnlocker.appendTrace("peek : with pattern", pattern); returnPattern = FourBitTwoDisc...
public void onStop() { super.onStop(); if (connectionEstablished) { removeVideoTrackSListener(); conversationFragmentCallbackListener.removeRTCClientConnectionCallback(this); conversationFragmentCallbackListener.removeRTCSessionUserCallback(this); conversationFragmentCallbackList...
public void onStop() { super.onStop(); if (connectionEstablished) { removeVideoTrackSListener(); conversationFragmentCallbackListener.removeRTCClientConnectionCallback(this); conversationFragmentCallbackListener.removeRTCSessionUserCallback(this); allCallbacksInit = false; }e...
public org.ethereum.jsonrpc.SyncingResult eth_syncing() { org.ethereum.jsonrpc.SyncingResult s = new org.ethereum.jsonrpc.SyncingResult(); s.startingBlock = org.ethereum.jsonrpc.TypeConverter.TypeConverter.toJsonHex(initialBlockNumber); s.currentBlock = org.ethereum.jsonrpc.TypeConverter.TypeConverter.toJso...
public org.ethereum.jsonrpc.SyncingResult eth_syncing() { org.ethereum.jsonrpc.SyncingResult s = new org.ethereum.jsonrpc.SyncingResult(); try { s.startingBlock = org.ethereum.jsonrpc.TypeConverter.TypeConverter.toJsonHex(initialBlockNumber); s.currentBlock = org.ethereum.jsonrpc.TypeConverter.T...
public void checkDepthForNormalGameLength() throws java.lang.Exception { de.doe.players.NegaMaxPlayer player = new de.doe.players.NegaMaxPlayer(de.doe.Player.WHITE, 6); de.doe.Move move = player.getMove(new de.doe.Board()); java.lang.System.out.println(move.toChessString()); java.lang.System.out.println...
public void checkDepthForNormalGameLength() throws java.lang.Exception { de.doe.players.NegaMaxPlayer player = new de.doe.players.NegaMaxPlayer(de.doe.Player.WHITE, 6); de.doe.Move move = player.getMove(new de.doe.Board()); java.lang.System.out.println(move.toChessString()); java.lang.System.out.println...
public int ComputeFac(int num) { int num2; int num_aux; num_aux = 5; num2 = 2; if (num2 < 1) num_aux = 1; else num_aux = num2 * (this.ComputeFac((num2 - 1))); return num_aux; }
public int ComputeFac(int num) { int num; int num_aux; num_aux = 5; num2 = 2; if ((num2) < 1) num_aux = 1; else num_aux = (num2) * (this.ComputeFac(((num2) - 1))); return num_aux; }
public void run() { while (!(connection.tables.ReverseTableService.shutdown)) { try { for (connection.tables.RTableEntry e : connection.tables.ReverseTableService.reverseTable) { if (e.lifetime.isAfter(java.time.LocalTime.now())) { connection.tables.ReverseTab...
public void run() { while (!(connection.tables.ReverseTableService.shutdown)) { try { for (connection.tables.RTableEntry e : connection.tables.ReverseTableService.reverseTable) { if (e.lifetime.isAfter(java.time.LocalTime.now())) { connection.tables.ReverseTab...
private boolean isUnbalanced(java.lang.String image, java.lang.String pattern) { int occurance = 0; int index = image.lastIndexOf("="); index = image.indexOf(pattern, (index + 1)); while (index >= 0) { occurance++; index = image.indexOf(pattern, (index + 1)); } if ((occurance % ...
private boolean isUnbalanced(java.lang.String image, java.lang.String pattern) { int occurance = 0; int index = image.indexOf("="); index = image.indexOf(pattern, (index + 1)); while (index >= 0) { occurance++; index = image.indexOf(pattern, (index + 1)); } if ((occurance % 2) !...
public boolean setVolumeDataBuffer(int pRenderLayerIndex, java.nio.ByteBuffer pByteBuffer, long pSizeX, long pSizeY, long pSizeZ, double pVoxelSizeX, double pVoxelSizeY, double pVoxelSizeZ) { return setVolumeDataBuffer(clearvolume.renderer.ClearVolumeRendererBase.cDefaultSetVolumeDataBufferTimeout, java.util.concur...
public boolean setVolumeDataBuffer(int pRenderLayerIndex, java.nio.ByteBuffer pByteBuffer, long pSizeX, long pSizeY, long pSizeZ, double pVoxelSizeX, double pVoxelSizeY, double pVoxelSizeZ) { return setVolumeDataBuffer(clearvolume.renderer.ClearVolumeRendererBase.cDefaultSetVolumeDataBufferTimeout, java.util.concur...
protected void writeInternal(java.lang.Object obj, org.springframework.http.HttpOutputMessage outputMessage) throws java.io.IOException, org.springframework.http.converter.HttpMessageNotWritableException { org.springframework.http.HttpHeaders headers = outputMessage.getHeaders(); java.lang.String text = com.ali...
protected void writeInternal(java.lang.Object obj, org.springframework.http.HttpOutputMessage outputMessage) throws java.io.IOException, org.springframework.http.converter.HttpMessageNotWritableException { org.springframework.http.HttpHeaders headers = outputMessage.getHeaders(); java.lang.String text = com.ali...
public static java.lang.String getGcmInfoNotificationData(android.app.Activity context, java.lang.String notificationData) { try { java.lang.String language = bg.znestorov.sofbus24.utils.LanguageChange.getUserLocale(context); org.json.JSONObject notificationJson = new org.json.JSONArray(notification...
public static java.lang.String getGcmInfoNotificationData(android.app.Activity context, java.lang.String notificationData) { try { java.lang.String language = bg.znestorov.sofbus24.utils.LanguageChange.getUserLocale(context); org.json.JSONObject notificationJson = new org.json.JSONObject(notificatio...
double effectiveDuration_s() { if ((this.realizedArrTime_s) > (this.realizedDptTime_s)) { return (this.realizedDptTime_s) + ((floetteroed.utilities.Units.S_PER_D) - (this.realizedArrTime_s)); }else { return floetteroed.utilities.math.MathHelpers.overlap(this.realizedDptTime_s, this.realizedArrTi...
double effectiveDuration_s() { final double result; if ((this.realizedArrTime_s) > (this.realizedDptTime_s)) { result = (this.realizedDptTime_s) + ((floetteroed.utilities.Units.S_PER_D) - (this.realizedArrTime_s)); }else { result = floetteroed.utilities.math.MathHelpers.overlap(this.realized...
private void NPCMove() { if ((hasWon()) == (fields.TIAR.Player.NONE)) { util.TIARMove move = getWinningMove(); if (move == null) { move = getMove(fields.TIAR.NPC); } if ((move == null) && ((maxMoves()) != 9)) { java.lang.System.err.println("Couldnt find NPC mo...
private void NPCMove() { if ((hasWon()) == (fields.TIAR.Player.NONE)) { util.TIARMove move = getWinningMove(); if (move == null) { move = getMove(fields.TIAR.NPC); } if ((move == null) && ((maxMoves()) != 9)) { java.lang.System.err.println("Couldnt find NPC mo...
public boolean playerRemoveGroup(java.lang.String world, java.lang.String player, java.lang.String group) { if (world != null) { throw new java.lang.UnsupportedOperationException(((getName()) + " does not support world based groups.")); } return plugin.getServer().dispatchCommand(ccs, ((("permission...
public boolean playerRemoveGroup(java.lang.String world, java.lang.String player, java.lang.String group) { if (world != null) { throw new java.lang.UnsupportedOperationException(((getName()) + " does not support world based groups.")); } return plugin.getServer().dispatchCommand(ccs, ((("permission...
public java.lang.String[] readFile(java.io.File file) throws java.io.FileNotFoundException { java.util.ArrayList<java.lang.String> contents = new java.util.ArrayList<java.lang.String>(0); java.io.FileReader configRead = new java.io.FileReader(file); java.util.Scanner scan = new java.util.Scanner(configRead)...
public java.lang.String[] readFile(java.io.File file) throws java.io.FileNotFoundException { java.util.ArrayList<java.lang.String> contents = new java.util.ArrayList<java.lang.String>(0); java.io.FileReader configRead = new java.io.FileReader(file); java.util.Scanner scan = new java.util.Scanner(configRead)...
public void addCurrentExecuted(java.lang.String key, java.lang.Integer value) { if ((totalExecuted.get(key)) == null) { currentExecuted.put(key, value); }else { currentExecuted.put(key, (value - (totalExecuted.get(key)))); } }
public void addCurrentExecuted(java.lang.String key, java.lang.Integer value) { if ((totalExecuted.get(key)) == null) { currentExecuted.put(key, value); }else { if (value < (totalExecuted.get(key))) { currentExecuted.put(key, value); }else { currentExecuted.put(ke...
private boolean straightCards() { boolean straightCards = true; for (int i = 1; i < (cardArray.length); i++) { if ((cardArray[(i - 1)].getGameValue()) != ((cardArray[i].getGameValue()) - 1)) { straightCards = false; } } return straightCards; }
private boolean straightCards() { boolean straightCards = true; for (int i = 1; i < (cardArray.length); i++) { if ((cardArray[i].getGameValue()) != ((cardArray[(i - 1)].getGameValue()) - 1)) { straightCards = false; } } return straightCards; }
public void visit(Expression.BinaryOperation node) { try { commands.add(new Command.PushVariable(getReference(node))); node.getLeft().accept(this); commands.add(Command.APPLY); node.getRight().accept(this); commands.add(Command.APPLY); } catch (SymbolNotFoundException exc...
public void visit(Expression.BinaryOperation node) { try { node.getRight().accept(this); node.getLeft().accept(this); commands.add(new Command.PushVariable(getReference(node))); commands.add(Command.APPLY); commands.add(Command.APPLY); } catch (SymbolNotFoundException exc...
protected void onResume() { super.onResume(); setUpMapIfNeeded(); if (mGoogleApiClient.isConnected()) { LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, locationRequest, this); android.util.Log.d("onResume", "Location update resumed ....................."); } ...
protected void onResume() { super.onResume(); setUpMapIfNeeded(); if ((mGoogleApiClient) != null) { if (mGoogleApiClient.isConnected()) { LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, locationRequest, this); android.util.Log.d("onResume", "Locatio...
public void onReset() { if ((((mHeaderView) != null) && ((mHeaderView) instanceof com.aspsine.swipetoloadlayout.SwipeTrigger)) && (com.aspsine.swipetoloadlayout.SwipeToLoadLayout.STATUS.isStatusDefault(mStatus))) { mHeaderView.setVisibility(com.aspsine.swipetoloadlayout.GONE); ((com.aspsine.swipetol...
public void onReset() { if ((((mHeaderView) != null) && ((mHeaderView) instanceof com.aspsine.swipetoloadlayout.SwipeTrigger)) && (com.aspsine.swipetoloadlayout.SwipeToLoadLayout.STATUS.isStatusDefault(mStatus))) { ((com.aspsine.swipetoloadlayout.SwipeTrigger) (mHeaderView)).onReset(); mHeaderView.s...
private void writeChannels(final java.util.List<org.eclipse.kura.asset.AssetRecord> assetRecordsToWriteChannels) { java.util.Objects.requireNonNull(assetRecordsToWriteChannels, org.eclipse.kura.internal.wire.asset.WireAsset.message.assetRecordsNonNull()); try { write(assetRecordsToWriteChannels); } ...
private void writeChannels(final java.util.List<org.eclipse.kura.asset.AssetRecord> assetRecordsToWriteChannels) { java.util.Objects.requireNonNull(assetRecordsToWriteChannels, org.eclipse.kura.internal.wire.asset.WireAsset.message.assetRecordsNonNull()); if (assetRecordsToWriteChannels.isEmpty()) { ret...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.register); firebaseAuth = com.google.firebase.auth.FirebaseAuth.getInstance(); if ((firebaseAuth.getCurrentUser()) != null) { goHome(); } avatarChosen = com.gabriel...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.register); firebaseAuth = com.google.firebase.auth.FirebaseAuth.getInstance(); if ((firebaseAuth.getCurrentUser()) != null) { goHome(); } avatarChosen = 0; find...
private void loadDatasRestore() { if ((framgia.vn.framgiacrb.activity.MainActivity.sCurrentDate) != null) { try { initDatas(); int left = 0; int right = mDatas.size(); restoreData(left, right); } catch (java.text.ParseException e) { e.print...
private void loadDatasRestore() { try { initDatas(); int left = 0; int right = mDatas.size(); restoreData(left, right); } catch (java.text.ParseException e) { e.printStackTrace(); } setRefreshing(false); }
public void DNF_Test() { Chronotimer c8 = new Chronotimer(); c8.power(); c8.toggleChannel("1"); c8.toggleChannel("2"); c8.newRun(); c8.num("111"); assertEquals(true, c8.start()); assertEquals(true, c8.dnf()); c8.endRun(); c8.power(); }
public void DNF_Test() { Chronotimer c8 = new Chronotimer(); c8.power(); c8.toggleChannel("1"); c8.toggleChannel("2"); assertEquals(true, c8.newRun()); c8.num("111"); assertEquals(true, c8.start()); assertEquals(true, c8.dnf()); assertTrue(c8.endRun()); c8.power(); }
public boolean onKey(android.view.View v, int keyCode, android.view.KeyEvent event) { if (((event.getAction()) == (android.view.KeyEvent.ACTION_DOWN)) && (keyCode == (android.view.KeyEvent.KEYCODE_ENTER))) { try { mAnswer.clearFocus(); mAnswer.setSelection(View.FOCUS_FORWARD); ...
public boolean onKey(android.view.View v, int keyCode, android.view.KeyEvent event) { if (((event.getAction()) == (android.view.KeyEvent.ACTION_DOWN)) && (keyCode == (android.view.KeyEvent.KEYCODE_ENTER))) { try { mAnswer.append("\n"); } catch (java.lang.Exception e) { return...
public void postInit(org.bukkit.plugin.Plugin plugin, org.bukkit.Location location) throws java.lang.Exception { new org.inventivetalent.reflection.resolver.FieldResolver(Reflection.nmsClassResolver.resolve("EntityPlayer")).resolve("playerConnection").set(getNpcEntity(), org.inventivetalent.npclib.ClassBuilder.buil...
public void postInit(org.bukkit.plugin.Plugin plugin, org.bukkit.Location location) throws java.lang.Exception { this.plugin = plugin; new org.inventivetalent.reflection.resolver.FieldResolver(Reflection.nmsClassResolver.resolve("EntityPlayer")).resolve("playerConnection").set(getNpcEntity(), org.inventivetalen...
public void solve() throws sudokuHelper.Solver.PuzzleNotLoadedException, sudokuHelper.Solver.PuzzleUnsolvableException { if ((loadedBoard) != null) { try { resultBoard = new sudokuHelper.Board.SudokuBoard(sudokuHelper.Solver.Solver.depthFirstSearch(loadedBoard)); } catch (sudokuHelper.So...
public void solve() throws sudokuHelper.Solver.PuzzleNotLoadedException, sudokuHelper.Solver.PuzzleUnsolvableException { if ((loadedBoard) != null) { try { resultBoard = sudokuHelper.Solver.Solver.depthFirstSearch(loadedBoard); } catch (sudokuHelper.Solver.PuzzleUnsolvableException pue) ...
protected void onPostExecute(java.lang.String result) { android.widget.TextView errorTextView = ((android.widget.TextView) (findViewById(R.id.error_text_view))); if (result == null) { recyclerView.setVisibility(View.INVISIBLE); errorTextView.setVisibility(View.VISIBLE); }else { recyc...
protected void onPostExecute(java.lang.String result) { android.widget.TextView errorTextView = ((android.widget.TextView) (findViewById(R.id.error_text_view))); if (result == null) { recyclerView.setVisibility(View.INVISIBLE); errorTextView.setVisibility(View.VISIBLE); }else { recyc...
private static com.cburch.logisim.proj.Project completeProject(com.cburch.logisim.gui.start.SplashScreen monitor, com.cburch.logisim.file.Loader loader, com.cburch.logisim.file.LogisimFile file, boolean isStartup) { if (monitor != null) monitor.setProgress(SplashScreen.PROJECT_CREATE); com.cburch.l...
private static com.cburch.logisim.proj.Project completeProject(com.cburch.logisim.gui.start.SplashScreen monitor, com.cburch.logisim.file.Loader loader, com.cburch.logisim.file.LogisimFile file, boolean isStartup) { if (monitor != null) monitor.setProgress(SplashScreen.PROJECT_CREATE); com.cburch.l...
public void containsValueShouldFindNull() { map.put(1, new io.netty.util.collection.IntObjectHashMapTest.Value("v1")); map.put(2, null); map.put(3, new io.netty.util.collection.IntObjectHashMapTest.Value("v2")); org.junit.Assert.assertTrue(map.containsValue(null)); }
public void containsValueShouldFindNull() { map.put(1, new io.netty.util.collection.IntObjectHashMapTest.Value("v1")); map.put(2, null); map.put(3, new io.netty.util.collection.IntObjectHashMapTest.Value("v2")); assertTrue(map.containsValue(null)); }
private void markMigrationFail(java.lang.String currentSchemaVersion, java.lang.Exception e) { schemaUtil.setMigrationStatus(MigrationStatus.FAILED); java.lang.String errMsg = java.lang.String.format("The DB migration fails from %s to %s due to some unexpected error.", currentSchemaVersion, targetVersion); ...
private void markMigrationFail(java.lang.String currentSchemaVersion, java.lang.Exception e) { schemaUtil.setMigrationStatus(MigrationStatus.FAILED); java.lang.String errMsg = java.lang.String.format("The DB migration fails from %s to %s due to some unexpected error.", currentSchemaVersion, targetVersion); ...
public java.util.ArrayList<dna.labels.Label> computeLabels(dna.graph.Graph g, dna.updates.batch.Batch batch, dna.series.data.BatchData batchData, dna.metrics.IMetric[] metrics) { java.util.ArrayList<dna.labels.Label> list = new java.util.ArrayList<dna.labels.Label>(); if ((model) != null) { java.lang.St...
public java.util.ArrayList<dna.labels.Label> computeLabels(dna.graph.Graph g, dna.updates.batch.Batch batch, dna.series.data.BatchData batchData, dna.metrics.IMetric[] metrics) { java.util.ArrayList<dna.labels.Label> list = new java.util.ArrayList<dna.labels.Label>(); if ((model) != null) { java.lang.St...
public void sendMessage(abec_app.Client_info client, java.lang.String msg) { java.lang.System.out.println("---------------------- sendMessage()"); try { java.io.OutputStream out = client.getSocket().getOutputStream(); java.io.DataOutputStream sortie = new java.io.DataOutputStream(out); i...
public void sendMessage(abec_app.Client_info client, java.lang.String msg) { java.lang.System.out.println("---------------------- sendMessage()"); try { java.io.OutputStream out = client.getSocket().getOutputStream(); java.io.DataOutputStream sortie = new java.io.DataOutputStream(out); i...
public void run() { notificationAdapter.notifyDataSetChanged(); } }); }
public void run() { notificationAdapter.getNotifications().add(0, notification); notificationAdapter.notifyDataSetChanged(); } }); }else { notificationAdapter.getNotifications().add(0, notification); } }
public void log(java.lang.String message) { ui.TabDisplay.log.append((message + "\n")); if ((ui.TabDisplay.log.length()) > (maxCharacter)) { ui.TabDisplay.log = ui.TabDisplay.log.delete(0, ((ui.TabDisplay.log.length()) - (maxCharacter))); } prompt.setText(ui.TabDisplay.log.toString()); this....
public void log(java.lang.String message) { ui.TabDisplay.log.append((message + "\n")); if ((ui.TabDisplay.log.length()) > (maxCharacter)) { ui.TabDisplay.log = ui.TabDisplay.log.delete(0, ((ui.TabDisplay.log.length()) - (maxCharacter))); } prompt.setText(ui.TabDisplay.log.toString()); scrol...
public static int getRemainDays(java.lang.String playerName) { long interval = ((new java.util.Date().getTime()) + 2592000000L) - (cc.isotopestudio.Punctual.Punctual.plugin.getPlayersData().getLong((playerName + ".time"))); return ((int) ((interval / (((1000 * 60) * 60) * 24)) + 1)); }
public static int getRemainDays(java.lang.String playerName) { long interval = ((cc.isotopestudio.Punctual.Punctual.plugin.getPlayersData().getLong((playerName + ".time"))) + 2592000000L) - (new java.util.Date().getTime()); return ((int) ((interval / (((1000 * 60) * 60) * 24)) + 1)); }
public void addFieldToIntent(com.squareup.javapoet.MethodSpec.Builder buildMethod, boolean initPrimitives) { if (!(isOptional())) { java.lang.Object primitiveDefaultValue = com.michaelflisar.bundlebuilder.Util.getPrimitiveTypeDefaultValue(mType); if (primitiveDefaultValue == null) { if (...
public void addFieldToIntent(com.squareup.javapoet.MethodSpec.Builder buildMethod, boolean initPrimitives) { if (!(isOptional())) { java.lang.Object primitiveDefaultValue = com.michaelflisar.bundlebuilder.Util.getPrimitiveTypeDefaultValue(mType); if (primitiveDefaultValue == null) { if (...
public void createHeader(java.lang.String[] header) throws java.io.IOException { lineCount = header.length; for (int i = 0; i < (header.length); i++) { writer.write(header[i]); if (i < ((header.length) - 1)) { writer.write(", "); } } writer.write("\n"); writer.flu...
public void createHeader(java.lang.String[] header) throws java.io.IOException { lineCount = header.length; for (int i = 0; i < (header.length); i++) { writer.write(header[i]); if (i < ((header.length) - 1)) { writer.write(", "); } (lineCount)++; } writer.writ...
public bizartxo.udacity.nanodegree.androiddeveloper.popularmoviesapp.MovieAdapter.MovieViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType) { context = parent.getContext(); int layoutIdForListItem = R.layout.movie_rv_item; android.view.LayoutInflater inflater = android.view.LayoutInfla...
public bizartxo.udacity.nanodegree.androiddeveloper.popularmoviesapp.MovieAdapter.MovieViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType) { context = parent.getContext(); int layoutIdForListItem = R.layout.movie_rv_item; android.view.LayoutInflater inflater = android.view.LayoutInfla...
public java.lang.String getPath(io.swagger.servlet.ReaderContext context, java.lang.reflect.Method method) { final io.swagger.annotations.Api apiAnnotation = context.getCls().getAnnotation(io.swagger.annotations.Api.class); final io.swagger.annotations.ApiOperation apiOperation = io.swagger.util.ReflectionUtils...
public java.lang.String getPath(io.swagger.servlet.ReaderContext context, java.lang.reflect.Method method) { final io.swagger.annotations.Api apiAnnotation = context.getCls().getAnnotation(io.swagger.annotations.Api.class); final io.swagger.annotations.ApiOperation apiOperation = io.swagger.util.ReflectionUtils...
private static java.lang.String getExtension(java.io.File file) { java.lang.String extension = ""; int i = file.getAbsolutePath().lastIndexOf('.'); int p = java.lang.Math.max(file.getAbsolutePath().lastIndexOf('/'), file.getAbsolutePath().lastIndexOf('\\')); if ((i > 0) && (i > p)) { extension =...
private static java.lang.String getExtension(java.io.File file) { java.lang.String extension = ""; int i = file.getAbsolutePath().lastIndexOf('.'); int p = java.lang.Math.max(file.getAbsolutePath().lastIndexOf('/'), file.getAbsolutePath().lastIndexOf('\\')); if ((i > 0) && (i > p)) { extension =...
public static void printFridge(java.lang.String[] items, double[] quantity, java.lang.String[] units) { java.lang.System.out.println("Fridge contents:\n"); for (int i = 0; i < (items.length); i++) { java.lang.System.out.println((((((items[i]) + " ") + (quantity[i])) + " ") + (units[i]))); } }
public static void printFridge(java.lang.String[] items, double[] quantity, java.lang.String[] units) { java.lang.System.out.println("Fridge contents:\n"); for (int i = 0; i < (items.length); i++) { if ((quantity[i]) != 0) { java.lang.System.out.println((((((items[i]) + " ") + (quantity[i]))...
public void onClick(android.view.View v) { java.util.Random randomNext = new java.util.Random(); int index = randomNext.nextInt(20); setIndex(index); randomText.setText((((orderList[index]) + "_") + index)); balanceText.setText(("COMMON FURSE: " + (commonPurse))); caloriesText.setText(("ALL CALO...
public void onClick(android.view.View v) { java.util.Random randomNext = new java.util.Random(); int index = randomNext.nextInt(20); x = index; randomText.setText((((orderList[index]) + "_") + index)); }
public void testFilterOperatorMoreThanForLongAutoID() { siena.core.async.SienaFuture<java.util.List<siena.base.test.model.PersonLongAutoID>> future = pm.createQuery(siena.base.test.model.PersonLongAutoID.class).filter("id>", siena.base.test.BaseAsyncTest.LongAutoID_TESLA.id).order("id").fetch(); java.util.List<...
public void testFilterOperatorMoreThanForLongAutoID() { java.util.List<siena.base.test.model.PersonLongAutoID> people = pm.createQuery(siena.base.test.model.PersonLongAutoID.class).filter("id>", siena.base.test.BaseAsyncTest.LongAutoID_TESLA.id).order("id").fetch(); assertNotNull(people); assertEquals(2, pe...
public void putAll(org.jetbrains.ether.dependencyView.MultiMaplet<K, V> m) { for (java.util.Map.Entry<K, java.util.Collection<V>> e : m.entrySet()) { remove(e.getKey()); put(e.getKey(), e.getValue()); } }
public void replaceAll(org.jetbrains.ether.dependencyView.MultiMaplet<K, V> m) { for (java.util.Map.Entry<K, java.util.Collection<V>> e : m.entrySet()) { remove(e.getKey()); put(e.getKey(), e.getValue()); } }
public void sendText() { if (!(this.textField.getText().equals(""))) { try { server.sendToBroadcast((((de.eschoenawa.lanchat.Config.load().getName()) + ": ") + (this.textField.getText()))); } catch (java.io.IOException e) { e.printStackTrace(); } this.textFiel...
public void sendText() { if (!(this.textField.getText().equals(""))) { try { java.lang.String msg = ((de.eschoenawa.lanchat.Config.load().getName()) + ": ") + (this.textField.getText()); server.sendToBroadcast(msg); } catch (java.io.IOException e) { e.printStackTr...
public void allSets() { headphoneSet = new java.util.HashSet<java.util.HashMap<java.lang.String, java.lang.String>>(); headphoneSet.add(Sony()); headphoneSet.add(Sennheiser()); headphoneSet.add(Grado()); headphoneSet.add(Beyerdynamic()); headphoneSet.add(VModa()); }
private void allSets() { headphoneSet = new java.util.HashSet<java.util.HashMap<java.lang.String, java.lang.String>>(); headphoneSet.add(Sony()); headphoneSet.add(Sennheiser()); headphoneSet.add(Grado()); headphoneSet.add(Beyerdynamic()); headphoneSet.add(VModa()); }
public void run() { pl.qus.xenoamp.musicbrainz.MBRecordingList możliweUtwory = pl.qus.xenoamp.musicbrainz.MBParser.searchRecording("Noctuary"); java.util.Vector<pl.qus.xenoamp.musicbrainz.MBEzRecording> płyty = pl.qus.xenoamp.musicbrainz.MBParser.convertToEz(możliweUtwory); pl.qus.xenoamp.musicbrainz.MBRele...
public void run() { pl.qus.xenoamp.musicbrainz.MBRecordingList możliweUtwory = pl.qus.xenoamp.musicbrainz.MBParser.searchRecording("Noctuary"); java.util.Vector<pl.qus.xenoamp.musicbrainz.MBEzRecording> płyty = pl.qus.xenoamp.musicbrainz.MBParser.convertToEz(możliweUtwory); pl.qus.xenoamp.musicbrainz.MBRele...
private int handleSwimmerChildGroup(swim.enums.Stil stil, java.lang.String[] lines, int beginIndex, swim.data.swimmer.CSwimmerDataObject dataObject) throws swim.exceptions.ParseException { for (int j = beginIndex + 1; j < (lines.length); j++) { if (lines[j].contains("}")) return j + 1; e...
private int handleSwimmerChildGroup(swim.enums.Stil stil, java.lang.String[] lines, int beginIndex, swim.data.swimmer.CSwimmerDataObject dataObject) throws swim.exceptions.ParseException { for (int j = beginIndex + 1; j < (lines.length); j++) { if (lines[j].contains("}")) return j; else ...
public int updateMVP(int jobSize, int index, int optimalSize) { for (int i = 0; i < (freeSpaceTable.size); i++) { if (index == (freeSpaceTable[i].start)) { } } }
public void updateMVP(int jobSize, int index, int optimalSize) { for (int i = 0; i < (freeSpaceTable.size()); i++) { if (index == (freeSpaceTable.get(i).start)) { } } }
private TreeNode program() { TreeNode program = new TreeNode(Node.NPROG); if ((tokenList.get(0).value()) == (TokId.TCD)) { tokenList.remove(0); id(); program.setLeft(globals()); program.setMiddle(funcs()); program.setRight(mainbody()); return program; } re...
private TreeNode program() { TreeNode program = new TreeNode(Node.NPROG); if ((tokenList.get(0).value()) == (TokId.TCD)) { java.lang.System.out.println(tokenList.get(0)); tokenList.remove(0); id(); program.setLeft(globals()); program.setMiddle(funcs()); program.se...
public void hovered() { if (world.mouse.shift_down) { world.mouse.shift_down = false; slot.hovered(); world.mouse.shift_down = true; }else { if ((world.mouse.lb_pressed) && ((world.mouse.slot.item) == null)) slot.consume(world.player); slot.hovered();...
public void hovered() { if (world.mouse.shift_down) { world.mouse.shift_down = false; slot.hovered(); world.mouse.shift_down = true; }else { if (((world.mouse.lb_pressed) && ((world.mouse.slot.item) == null)) && (slot.consume(world.player))) return ; ...
private java.util.Map<java.lang.String, java.lang.String> readToMap(java.lang.String input) { java.util.Map<java.lang.String, java.lang.String> cleanUpMap = new java.util.HashMap<>(); for (java.lang.String property : input.split(",")) { int index = property.indexOf(":"); if (index > 0) ...
private java.util.Map<java.lang.String, java.lang.String> readToMap(java.lang.String input) { java.util.Map<java.lang.String, java.lang.String> cleanUpMap = new java.util.HashMap<>(); for (java.lang.String property : input.split(",")) { int index = property.indexOf(":"); if (index > 0) { ...
public void propertyChange(java.beans.PropertyChangeEvent evt) { final java.lang.String eventName = evt.getPropertyName(); if (eventName.equals("game")) { setScreen(gameScreen); }else if ((eventName.equals("time")) || (eventName.equals("dead"))) { createMainMenuScreen(); ...
public void propertyChange(java.beans.PropertyChangeEvent evt) { final java.lang.String eventName = evt.getPropertyName(); if (eventName.equals("game")) { setScreen(gameScreen); }else if ((eventName.equals("time")) || (eventName.equals("dead"))) { setScreen(mainMenuScreen); ...
public void screenChanged(edu.chl.proximity.Controllers.ScreenChanger.ScreenChanger.ScreenType newScreen) { switch (newScreen) { case MainMenu : game.setScreen(new edu.chl.proximity.Controllers.GameStates.MenuScreen(game, edu.chl.proximity.Models.Player.Players.GameData.getInstance().getPlayer()...
public void screenChanged(edu.chl.proximity.Controllers.ScreenChanger.ScreenChanger.ScreenType newScreen) { switch (newScreen) { case MainMenu : game.setScreen(new edu.chl.proximity.Controllers.GameStates.MenuScreen(game, edu.chl.proximity.Models.Player.Players.GameData.getInstance().getPlayer()...
private void generate(wyc.builder.Assign s, wyc.builder.CodeGenerator.EnclosingScope scope) { int lhs = generate(s.lvals.get(0), scope); int rhs = generate(s.rvals.get(0), scope); scope.add(new wyc.builder.Bytecode.Assign(lhs, rhs), s.attributes()); }
private void generate(wyc.builder.Assign s, wyc.builder.CodeGenerator.EnclosingScope scope) { int[] lhs = generate(((java.util.List) (s.lvals)), scope); int[] rhs = generate(s.rvals, scope); scope.add(new wyc.builder.Bytecode.Assign(lhs, rhs), s.attributes()); }
public void onResume() { super.onResume(); android.util.Log.e(com.fourthwardcoder.android.volumemanager.fragments.ProfileMainFragment.TAG, "onResume()"); if ((mProfileType) == (LOCATION_PROFILE_LIST)) mGoogleApiClient.connect(); getLoaderManager().initLoader(com.fourthwardcoder.android.volu...
public void onResume() { super.onResume(); android.util.Log.e(com.fourthwardcoder.android.volumemanager.fragments.ProfileMainFragment.TAG, "onResume()"); if ((mProfileType) == (LOCATION_PROFILE_LIST)) mGoogleApiClient.connect(); if ((mProfileAdapter) != null) notifyListViewChanged()...
private void writeArrayInitialiser(wyil.lang.SyntaxTree.Location<wyjs.io.Bytecode.Operator> expr, java.io.PrintWriter out) { wyil.lang.SyntaxTree.Location<?>[] operands = expr.getOperands(); out.print("["); for (int i = 0; i != (operands.length); ++i) { if (i != 0) { out.print(", "); ...
private void writeArrayInitialiser(wyil.lang.SyntaxTree.Location<wyjs.io.Bytecode.Operator> expr) { wyil.lang.SyntaxTree.Location<?>[] operands = expr.getOperands(); out.print("["); for (int i = 0; i != (operands.length); ++i) { if (i != 0) { out.print(", "); } writeExpre...
private static void createTemplateFormatsFolder(final java.lang.String packagePath) { final java.lang.String formatsPath = (packagePath + '/') + (com.abiquo.am.services.TemplateConventions.FORMATS_PATH); java.io.File formatsFolder = new java.io.File(formatsPath); if (!(formatsFolder.exists())) { if ...
private static void createTemplateFormatsFolder(final java.lang.String packagePath) { final java.lang.String formatsPath = (packagePath + '/') + (com.abiquo.am.services.TemplateConventions.FORMATS_PATH); java.io.File formatsFolder = new java.io.File(formatsPath); if (!(formatsFolder.exists())) { if ...
private boolean checkConsistency(cspSolver.Variable v) { boolean isConsistent = false; switch (cChecks) { case None : isConsistent = assignmentsCheck(); break; case ForwardChecking : isConsistent = forwardChecking(v); break; case ArcConsist...
private boolean checkConsistency(cspSolver.Variable v) { boolean isConsistent = false; switch (cChecks) { case None : isConsistent = assignmentsCheck(); break; case ForwardChecking : isConsistent = forwardChecking(v); break; case ArcConsist...
public static application.ActionSticks2H parseAction(java.lang.String moveStr) { switch (moveStr) { case "0 2" : case "2 0" : return application.ActionSticks2H.LEFT_ATK_LEFT; case "0 3" : case "3 0" : return application.ActionSticks2H.LEFT_ATK_RIGHT; c...
public static application.ActionSticks2H parseAction(java.lang.String moveStr) { switch (moveStr) { case "0 2" : case "2 0" : return application.ActionSticks2H.LEFT_ATK_LEFT; case "0 3" : case "2 1" : return application.ActionSticks2H.LEFT_ATK_RIGHT; c...
public boolean isSubtypeOf(com.google.javascript.rhino.TypeI other) { com.google.javascript.jscomp.newtypes.JSType type2 = ((com.google.javascript.jscomp.newtypes.JSType) (other)); if ((isLoose()) || (type2.isLoose())) { return autobox().isSubtypeOfHelper(true, type2.autobox()); }else { retu...
public boolean isSubtypeOf(com.google.javascript.rhino.TypeI other) { if ((this) == other) { return true; } com.google.javascript.jscomp.newtypes.JSType type2 = ((com.google.javascript.jscomp.newtypes.JSType) (other)); if ((isLoose()) || (type2.isLoose())) { return autobox().isSubtypeOfH...
public com.qa.smurf.entities.LineItems readLineItems(com.qa.smurf.entities.LineItems p) { java.util.ArrayList<com.qa.smurf.entities.LineItems> lineitems = new java.util.ArrayList<com.qa.smurf.entities.LineItems>(); try { lineitems = initialData.getLineItems(); } catch (java.text.ParseException pe) {...
public com.qa.smurf.entities.LineItems readLineItems(com.qa.smurf.entities.LineItems p) { java.util.ArrayList<com.qa.smurf.entities.LineItems> lineitems = new java.util.ArrayList<com.qa.smurf.entities.LineItems>(); lineitems = initialData.getLineItems(); for (int i = 0; i < (lineitems.size()); i++) { ...
public br.uff.labtempo.omcp.common.Response process(br.uff.labtempo.omcp.common.Request request) throws br.uff.labtempo.omcp.common.exceptions.BadRequestException, br.uff.labtempo.omcp.common.exceptions.InternalServerErrorException, br.uff.labtempo.omcp.common.exceptions.MethodNotAllowedException, br.uff.labtempo.omcp....
public br.uff.labtempo.omcp.common.Response process(br.uff.labtempo.omcp.common.Request request) throws br.uff.labtempo.omcp.common.exceptions.BadRequestException, br.uff.labtempo.omcp.common.exceptions.InternalServerErrorException, br.uff.labtempo.omcp.common.exceptions.MethodNotAllowedException, br.uff.labtempo.omcp....
public void onClick(android.view.View view) { MillisecondTime = 0L; StartTime = 0L; TimeBuff = 0L; UpdateTime = 0L; Seconds = 0; Minutes = 0; MilliSeconds = 0; listElementsArrayList.clear(); adapter.notifyDataSetChanged(); handler.removeCallbacks(runnable); txtStopWatch.setTe...
public void onClick(android.view.View view) { MillisecondTime = 0L; StartTime = 0L; TimeBuff = 0L; UpdateTime = 0L; Seconds = 0; Minutes = 0; MilliSeconds = 0; listElementsArrayList.clear(); adapter.clear(); adapter.notifyDataSetChanged(); handler.removeCallbacks(runnable); ...
private void loadProperties() { try { java.io.FileInputStream fileInputStream = new java.io.FileInputStream(org.fundacionjala.pivotal.util.Environment.CONFIG_PROPERTIES); properties = new java.util.Properties(); properties.load(fileInputStream); fileInputStream.close(); } catch (...
private void loadProperties() { try { java.io.FileInputStream fileInputStream = new java.io.FileInputStream(org.fundacionjala.pivotal.util.Environment.CONFIG_PROPERTIES); properties = new java.util.Properties(); properties.load(fileInputStream); fileInputStream.close(); } catch (...