buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public main.State execute(main.State completeState) throws java.io.IOException, json.JSONException { this.completeState = completeState; completeState.clearSelections(); java.util.ArrayList<main.GenericEvent> allEvents = completeState.getAllEvents(); if (selectByIndex) { selectViaIndex(); }e...
public main.State execute(main.State completeState) throws java.io.IOException, json.JSONException { this.completeState = completeState; java.util.ArrayList<main.GenericEvent> allEvents = completeState.getAllEvents(); if (selectByIndex) { selectViaIndex(); }else { getMatchingEvents(allEv...
protected void readInputLines(java.io.InputStream is) throws java.io.IOException { lines = new java.util.ArrayList<java.lang.String>(); java.io.BufferedReader r = null; r = new java.io.BufferedReader(new java.io.InputStreamReader(is, "UTF-8")); java.lang.String line; while (((line = r.readLine()) !=...
protected void readInputLines(java.io.InputStream is) throws java.io.IOException { lines = new java.util.ArrayList<java.lang.String>(); java.io.BufferedReader r = new java.io.BufferedReader(new java.io.InputStreamReader(is, "UTF-8")); java.lang.String line; while (((line = r.readLine()) != null) && (!(l...
public void cache(java.lang.String resource, org.reactome.web.diagram.data.interactors.model.InteractorEntity interactor) { if ((interactor.getAccession()) != null) { java.util.Map<java.lang.String, org.reactome.web.diagram.data.interactors.model.InteractorEntity> map = this.interactorsCache.get(resource); ...
public void cache(java.lang.String resource, org.reactome.web.diagram.data.interactors.model.InteractorEntity interactor) { if ((interactor.getAccession()) != null) { java.util.Map<java.lang.String, org.reactome.web.diagram.data.interactors.model.InteractorEntity> map = this.interactorsCache.get(resource.to...
public static void main(java.lang.String[] args) throws java.io.FileNotFoundException { if ((args.length) != 1) java.lang.System.out.println("Usage: java SudokuText filename"); else { java.lang.String filename = args[0]; java.io.File file = new java.io.File(filename); java.util.S...
public static void main(java.lang.String[] args) throws java.io.FileNotFoundException { if ((args.length) != 1) java.lang.System.out.println("Usage: java SudokuText filename"); else { java.lang.String filename = args[0]; SudokuModel m = new SudokuModel(filename); java.lang.System...
private void mergeDwrResources(java.io.File dwr) throws java.io.IOException { getLog().debug("Starting ApplicationResources Merge Process"); org.jaffa.plugins.util.FileFinder dwrResourcesFinder = new org.jaffa.plugins.util.FileFinder((((DWR) + "*.") + (XFRAGMENT))); java.nio.file.Files.walkFileTree(targetDi...
private void mergeDwrResources(java.io.File dwr) throws java.io.IOException { getLog().debug("Starting ApplicationResources Merge Process"); org.jaffa.plugins.util.FileFinder dwrResourcesFinder = new org.jaffa.plugins.util.FileFinder((((DWR) + "*.") + (XFRAGMENT))); java.nio.file.Files.walkFileTree(targetDi...
public boolean awaitMotionEnd(double timeoutSeconds) { motionEndLock.lock(); try { t.setAreaTreshold(teaselib.motiondetection.MotionDetector.InitialAreaTreshold); boolean motionStopped = !(isMotionDetected(teaselib.motiondetection.MotionDetector.MotionInertia)); if (!motionStopped) { ...
public boolean awaitMotionEnd(double timeoutSeconds) { motionEndLock.lock(); try { boolean motionStopped = !(isMotionDetected(teaselib.motiondetection.MotionDetector.MotionInertia)); if (!motionStopped) { motionStopped = motionEnd.await((((long) (timeoutSeconds)) * 1000), java.util.c...
private void construct() { this.add(new javafx.geometry.Point3D(0, 0, 0)); this.add(new javafx.geometry.Point3D(1, 0, 0)); this.add(new javafx.geometry.Point3D(2, 0, 0)); this.add(new javafx.geometry.Point3D(3, 0, 0)); this.add(new javafx.geometry.Point3D(0, 0, 1)); }
protected void construct() { this.add(new javafx.geometry.Point3D(0, 0, 0)); this.add(new javafx.geometry.Point3D(1, 0, 0)); this.add(new javafx.geometry.Point3D(2, 0, 0)); this.add(new javafx.geometry.Point3D(3, 0, 0)); this.add(new javafx.geometry.Point3D(0, 0, 1)); }
public void drawGrid(java.awt.Graphics g) { g.setColor(java.awt.Color.ORANGE); for (int i = 0; i < 13; i++) { g.drawLine(Gridx2Screenx(i), 0, Gridx2Screenx(i), GridHeight2ScreenHeight(GRIDH)); g.drawLine(0, Gridy2Screeny(i), GridWidth2ScreenWidth(GRIDW), Gy2Sy(i)); } }
public void drawGrid(java.awt.Graphics g) { g.setColor(java.awt.Color.ORANGE); for (int i = 0; i < 13; i++) { g.drawLine(Gridx2Screenx(i), 0, Gridx2Screenx(i), GridHeight2ScreenHeight(GRIDH)); g.drawLine(0, Gridy2Screeny(i), GridWidth2ScreenWidth(GRIDW), Gridy2Screeny(i)); } }
public void setCategorySpinner(android.widget.Spinner categorySpinner) { this.categorySpinner = categorySpinner; this.categorySpinner.setOnItemSelectedListener(categoryListener); java.util.List<java.lang.String> categoriesList = new java.util.ArrayList<>(); for (com.example.albergon.unirank.Model.Enums....
public void setCategorySpinner(android.widget.Spinner categorySpinner) { this.categorySpinner = categorySpinner; java.util.List<java.lang.String> categoriesList = new java.util.ArrayList<>(); for (com.example.albergon.unirank.Model.Enums.PopularIndicatorsCategories category : Enums.PopularIndicatorsCategori...
private void generatePlus() { java.lang.StringBuffer bufa = new java.lang.StringBuffer(); for (int a = 0; a < 21; a++) for (int b = 0; b < (21 - a); b++) { bufa.append(a); bufa.append(b); } aufgaben = bufa.toString(); }
private void generatePlus() { java.lang.StringBuffer bufa = new java.lang.StringBuffer(); for (int a = 0; a < 21; a++) for (int b = 0; b < (21 - a); b++) { append(bufa, a); append(bufa, b); } aufgaben = bufa.toString(); }
public void saveConfig() { if (((fileConfiguration) == null) || ((configFile) == null)) { return ; }else { try { getConfig().save(configFile); } catch (java.io.IOException ex) { plugin.getLogger().log(java.util.logging.Level.SEVERE, ("Could not save config to " + ...
public void saveConfig() { if (((fileConfiguration) == null) || ((configFile) == null)) { return ; }else { try { getConfig().save(configFile); } catch (java.io.IOException ex) { plugin.getLogger().log(java.util.logging.Level.SEVERE, ("Could not save config to " + ...
private boolean initializeRequiredContext(final org.eclipse.jdt.ui.text.java.ContentAssistInvocationContext context) { org.eclipse.jdt.ui.text.java.JavaContentAssistInvocationContext jdtCtx = org.eclipse.recommenders.utils.Checks.castOrNull(context); if (jdtCtx == null) { return false; } ctx = n...
private boolean initializeRequiredContext(final org.eclipse.jdt.ui.text.java.ContentAssistInvocationContext context) { if (!(context instanceof org.eclipse.jdt.ui.text.java.JavaContentAssistInvocationContext)) { return false; } org.eclipse.jdt.ui.text.java.JavaContentAssistInvocationContext jdtCtx =...
public void findPath() { map.Vertex vertex; vertex = InGame.map.getPathFinding().findPath(new map.Vertex(x, y, InGame.map.getPathFinding()), new map.Vertex(InGame.player.getx(), InGame.player.gety(), InGame.map.getPathFinding())); }
public void findPath() { map.Vertex vertex; map.Vertex start = new map.Vertex(x, y, InGame.map.getPathFinding()); vertex = InGame.map.getPathFinding().findPath(start, new map.Vertex(InGame.player.getx(), InGame.player.gety(), InGame.map.getPathFinding())); }
protected void onCreate(android.os.Bundle savedInstanceState) { firebaseInitialization(); super.onCreate(savedInstanceState); setContentView(R.layout.login_activity); firebase = new com.firebase.client.Firebase(com.example.swarren.smitter.frontend.Login_Activity.FIREBASE_URL); firebase.keepSynced(tr...
protected void onCreate(android.os.Bundle savedInstanceState) { firebaseInitialization(savedInstanceState); super.onCreate(savedInstanceState); setContentView(R.layout.login_activity); firebase = new com.firebase.client.Firebase(com.example.swarren.smitter.frontend.Login_Activity.FIREBASE_URL); fire...
public boolean onBlockActivated(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.state.IBlockState state, net.minecraft.entity.player.EntityPlayer playerIn, net.minecraft.util.EnumHand hand, net.minecraft.util.EnumFacing side, float hitX, float hitY, float hitZ) { if (!(sta...
public boolean onBlockActivated(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.state.IBlockState state, net.minecraft.entity.player.EntityPlayer playerIn, net.minecraft.util.EnumHand hand, net.minecraft.util.EnumFacing side, float hitX, float hitY, float hitZ) { if (!(sta...
private static java.util.List<nl.pdok.catalog.jobentry.JobEntry> parseStringToJobEntries(java.lang.String jsonString) { java.util.List<nl.pdok.catalog.jobentry.JobEntry> listJobEntries = new java.util.ArrayList<>(); org.codehaus.jackson.map.ObjectMapper mapper = new org.codehaus.jackson.map.ObjectMapper(); ...
private static java.util.List<nl.pdok.catalog.jobentry.JobEntry> parseStringToJobEntries(java.lang.String jsonString) { org.codehaus.jackson.map.ObjectMapper mapper = new org.codehaus.jackson.map.ObjectMapper(); try { nl.pdok.catalog.jobentry.JobEntry[] entries = mapper.readValue(jsonString, nl.pdok.cat...
private boolean loadFromDB() { prefix = caexbot.database.CaexDB.loadPrefixes().get(guild); guildXP = caexbot.database.CaexDB.getLevels().get(guild); if (((prefix) != null) && ((guildXP) != null)) return true; else return false; }
private boolean loadFromDB() { prefix = caexbot.database.CaexDB.loadPrefixes().get(guild); guildXP = caexbot.database.CaexDB.getLevels().get(guild); if (((prefix) != null) || ((guildXP) != null)) return true; else return false; }
private void processNextPage() throws java.io.IOException { int bitOffset = (sasFileProperties.isU64()) ? PAGE_BIT_OFFSET_X64 : PAGE_BIT_OFFSET_X86; currentPageDataSubheaderPointers.clear(); try { sasFileStream.readFully(cachedPage, 0, sasFileProperties.getPageLength()); } catch (java.io.EOFExce...
private void processNextPage() throws java.io.IOException { int bitOffset = (sasFileProperties.isU64()) ? PAGE_BIT_OFFSET_X64 : PAGE_BIT_OFFSET_X86; currentPageDataSubheaderPointers.clear(); sasFileStream.readFully(cachedPage, 0, sasFileProperties.getPageLength()); readPageHeader(); if ((currentPage...
public <T> T[] randomPortion(T[] data, int count) { T[] array = java.util.Arrays.copyOf(data, java.lang.Math.min(count, data.length)); shuffle(data, array); return array; }
public <T> T[] randomPortion(T[] data, int count) { T[] array = java.util.Arrays.copyOf(data, data.length); shuffle(data, array); array = java.util.Arrays.copyOf(array, java.lang.Math.min(count, data.length)); return array; }
protected void onCreate(android.os.Bundle savedInstanceState) { setContentView(R.layout.activity_queue); super.onCreate(savedInstanceState); android.support.v7.widget.RecyclerView recyclerView = ((android.support.v7.widget.RecyclerView) (findViewById(R.id.queue_recycler_view))); recyclerView.setHasFixed...
protected void onCreate(android.os.Bundle savedInstanceState) { setContentView(R.layout.activity_queue); super.onCreate(savedInstanceState); recyclerView = ((android.support.v7.widget.RecyclerView) (findViewById(R.id.queue_recycler_view))); recyclerView.setHasFixedSize(true); recyclerView.setLayoutM...
public static void main(java.lang.String[] args) throws java.lang.Exception { fodor.anthony.hhapplet.ModelApplet frame = new fodor.anthony.hhapplet.ModelApplet(); frame.setSize(900, 500); frame.setResizable(false); frame.setLocation(100, 100); frame.init(); frame.run(); frame.setDefaultClose...
public static void main(java.lang.String[] args) throws java.lang.Exception { fodor.anthony.hhapplet.ModelApplet frame = new fodor.anthony.hhapplet.ModelApplet(); frame.setSize(900, 500); frame.setResizable(false); frame.setLocation(100, 100); frame.init(); frame.setDefaultCloseOperation(javax.s...
public void RemoveCarTest() { org.mockito.Mockito.when(classMapper.mapTo(any(cz.muni.fi.pa165.carpark.api.dto.CarDTO.class), eq(cz.muni.fi.pa165.carpark.persistence.entity.Car.class))).thenReturn(car); carFacade.removeCar(carDTO); org.mockito.Mockito.verify(carService).deleteCar(car); }
public void RemoveCarTest() { org.mockito.Mockito.when(classMapper.mapTo(any(cz.muni.fi.pa165.carpark.api.dto.CarDTO.class), eq(cz.muni.fi.pa165.carpark.persistence.entity.Car.class))).thenReturn(car); carFacade.removeCar(car.getId()); org.mockito.Mockito.verify(carService).deleteCar(car); }
public void actionPerformed(java.awt.event.ActionEvent e) { int size = model.getShapes().size(); if (size > 0) { model.Shape temp = model.getShapes().remove((size - 1)); model.getUndoShapes().add(temp); } }
public void actionPerformed(java.awt.event.ActionEvent e) { int size = model.getShapes().size(); if (size > 0) { model.Shape temp = model.getShapes().remove((size - 1)); model.getUndoShapes().add(temp); model.update(); } }
public boolean onFling(android.view.MotionEvent e1, android.view.MotionEvent e2, float velocityX, float velocityY) { if ((mSingleFlingListener) != null) { if ((getScale()) > (DEFAULT_MIN_SCALE)) { return false; } if (((android.support.v4.view.MotionEventCompat.getPointerCount(e1)...
public boolean onFling(android.view.MotionEvent e1, android.view.MotionEvent e2, float velocityX, float velocityY) { return ((((mSingleFlingListener) != null) && ((getScale()) <= (DEFAULT_MIN_SCALE))) && (!(((e1.getPointerCount()) > (com.lance.common.widget.photoview.PhotoViewAttacher.SINGLE_TOUCH)) || ((e2.getPoin...
public static org.wordpress.android.ui.accounts.SignInDialogFragment newInstance(java.lang.String title, java.lang.String message, int imageSource, int numberOfButtons, java.lang.String firstButtonLabel, java.lang.String secondButtonLabel, java.lang.String thirdButtonLabel, int secondButtonAction, int thirdButtonAction...
public static org.wordpress.android.ui.accounts.SignInDialogFragment newInstance(java.lang.String title, java.lang.String message, int imageSource, int numberOfButtons, java.lang.String firstButtonLabel, java.lang.String secondButtonLabel, java.lang.String thirdButtonLabel, int secondButtonAction, int thirdButtonAction...
public com.blackbirdai.client.model.UploadRequest withDocStrings(java.util.List<java.lang.String> docStrings) throws com.blackbirdai.client.InvalidRequestException { this.docs = com.google.common.collect.Lists.newArrayListWithCapacity(docs.size()); for (java.lang.String s : docStrings) { try { ...
public com.blackbirdai.client.model.UploadRequest withDocStrings(java.util.List<java.lang.String> docStrings) throws com.blackbirdai.client.InvalidRequestException { this.docs = com.google.common.collect.Lists.newArrayListWithCapacity(docStrings.size()); for (java.lang.String s : docStrings) { try { ...
protected void onCreate(android.os.Bundle savedInstanceState) { android.os.StrictMode.ThreadPolicy policy = new android.os.StrictMode.ThreadPolicy.Builder().permitAll().build(); android.os.StrictMode.setThreadPolicy(policy); user = new example.com.videofly.User(); makeMeRequest(); fbFriendsRequest()...
protected void onCreate(android.os.Bundle savedInstanceState) { android.os.StrictMode.ThreadPolicy policy = new android.os.StrictMode.ThreadPolicy.Builder().permitAll().build(); android.os.StrictMode.setThreadPolicy(policy); user = new example.com.videofly.User(); makeMeRequest(); super.onCreate(sav...
public void testCompareP2Better() { swissTournamentRunner.Player p1 = new swissTournamentRunner.Player("P1", 0, 0, 0, 0, 0); swissTournamentRunner.Player p2 = new swissTournamentRunner.Player("P2", 1, 0, 0, 0, 0); t.addPlayer("P1"); t.addPlayer("P2"); org.junit.Assert.assertEquals(1, p1.compareTo(p2...
public void testCompareP2Better() { swissTournamentRunner.Player p1 = new swissTournamentRunner.Player("P1", 0, 0, 0, 0); swissTournamentRunner.Player p2 = new swissTournamentRunner.Player("P2", 1, 0, 0, 0); t.addPlayer("P1"); t.addPlayer("P2"); org.junit.Assert.assertEquals(1, p1.compareTo(p2)); }
public boolean visit(org.eclipse.jdt.core.dom.VariableDeclarationStatement fs) { java.lang.String type = fs.getType().toString(); for (java.lang.Object o : fs.fragments()) { org.eclipse.jdt.core.dom.VariableDeclarationFragment fd = ((org.eclipse.jdt.core.dom.VariableDeclarationFragment) (o)); ja...
public boolean visit(org.eclipse.jdt.core.dom.VariableDeclarationStatement fs) { java.lang.String type = fs.getType().toString(); for (java.lang.Object o : fs.fragments()) { org.eclipse.jdt.core.dom.VariableDeclarationFragment fd = ((org.eclipse.jdt.core.dom.VariableDeclarationFragment) (o)); cp...
public int getSubPartCount(int index) { javax.mail.BodyPart part = getPart(java.lang.Integer.toString(index)); try { java.lang.Object content = part.getContent(); if (content instanceof javax.mail.Multipart) { return ((javax.mail.Multipart) (content)).getCount(); }else { ...
public int getSubPartCount(int index) { javax.mail.BodyPart part = getPart(java.lang.Integer.toString(index)); try { java.lang.Object content = part.getContent(); if (content instanceof javax.mail.Multipart) { return ((javax.mail.Multipart) (content)).getCount(); } re...
public boolean remove(final int value) { @uk.co.real_logic.agrona.generation.DoNotSub int index = uk.co.real_logic.agrona.collections.Hashing.intHash(value, mask); while ((values[index]) != (missingValue)) { if ((values[index]) == value) { values[index] = missingValue; compac...
public boolean remove(final int value) { @uk.co.real_logic.agrona.generation.DoNotSub int index = uk.co.real_logic.agrona.collections.Hashing.intHash(value, mask); while ((values[index]) != (missingValue)) { if ((values[index]) == value) { values[index] = missingValue; compac...
public void onClick(android.view.View v) { if (notifsEnabled) { tv1.setText(("[ ] " + (getText(R.string.first_disclaimer_notifs)))); tv2.setVisibility(View.INVISIBLE); }else { tv1.setText(("[X] " + (getText(R.string.first_disclaimer_notifs)))); tv2.setVisibility(View.VISIBLE); ...
public void onClick(android.view.View v) { if (notifsEnabled) tv1.setText(("[ ] " + (getText(R.string.first_disclaimer_notifs)))); else tv1.setText(("[X] " + (getText(R.string.first_disclaimer_notifs)))); notifsEnabled = !(notifsEnabled); }
private ast.Type lookup(java.lang.String name) { if ((currentLookupContext) == (typechecker.implementation.TypeCheckVisitor.LookupContext.VARIABLE)) return lookupVariable(name); else if ((currentLookupContext) == (typechecker.implementation.TypeCheckVisitor.LookupContext.CLASS)) retu...
private ast.Type lookup(java.lang.String name) { if ((currentLookupContext) == (typechecker.implementation.TypeCheckVisitor.LookupContext.VARIABLE)) return lookupVariable(name); else if ((currentLookupContext) == (typechecker.implementation.TypeCheckVisitor.LookupContext.CLASS)) retu...
public void testCalibrateTightPatternUpsidedown() throws java.io.IOException { acm.reset(); java.awt.image.BufferedImage testFrame = javax.imageio.ImageIO.read(com.shootoff.camera.TestAutoCalibration.class.getResourceAsStream("/autocalibration/tight-calibration-pattern-upsidedown.png")); final org.opencv.co...
public void testCalibrateTightPatternUpsidedown() throws java.io.IOException { acm.reset(); java.awt.image.BufferedImage testFrame = javax.imageio.ImageIO.read(com.shootoff.camera.TestAutoCalibration.class.getResourceAsStream("/autocalibration/tight-calibration-pattern-upsidedown.png")); final org.opencv.co...
private void init(android.util.AttributeSet attrs, int defStyleAttr, int defStyleRes) { processAttributes(attrs, defStyleAttr, defStyleRes); if (wasDismissedBefore()) { hide(); }else { android.view.LayoutInflater.from(getContext()).inflate(R.layout.view_one_time_hint_view_card, this, true); ...
private void init(android.util.AttributeSet attrs, int defStyleAttr, int defStyleRes) { processAttributes(attrs, defStyleAttr, defStyleRes); android.view.LayoutInflater.from(getContext()).inflate(R.layout.view_one_time_hint_view_card, this, true); applyAttributes(); attachListenerToDismissButton(); }
private void loadConfigValues() { final java.util.List<sidben.ateliercanvas.handler.CustomPaintingConfigItem> configList = sidben.ateliercanvas.handler.ConfigurationHandler.getAllMahGoodPaintings(); configList.sort(new sidben.ateliercanvas.handler.CustomPaintingConfigItemComparator(listSorting)); this.paint...
private void loadConfigValues() { final java.util.List<sidben.ateliercanvas.handler.CustomPaintingConfigItem> configList = sidben.ateliercanvas.handler.ConfigurationHandler.getAllMahGoodPaintings(); java.util.Collections.sort(configList, new sidben.ateliercanvas.handler.CustomPaintingConfigItemComparator(listSo...
protected void onPostExecute(java.lang.Void aVoid) { progressDialog.dismiss(); com.kidusmt.android.rssparser.MyAdapter adapter = new com.kidusmt.android.rssparser.MyAdapter(context, feedItems); recyclerView.setLayoutManager(new android.support.v7.widget.LinearLayoutManager(context)); recyclerView.setAda...
protected void onPostExecute(java.lang.Void aVoid) { super.onPostExecute(aVoid); progressDialog.dismiss(); com.kidusmt.android.rssparser.MyAdapter adapter = new com.kidusmt.android.rssparser.MyAdapter(context, feedItems); recyclerView.setLayoutManager(new android.support.v7.widget.LinearLayoutManager(co...
public android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent) { android.widget.ImageView imageView; if (convertView == null) { imageView = new android.widget.ImageView(mContext); imageView.setLayoutParams(new android.widget.GridView.LayoutParams(85,...
public android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent) { android.widget.ImageView imageView; if (convertView == null) { imageView = new android.widget.ImageView(mContext); imageView.setLayoutParams(new android.widget.GridView.LayoutParams(85,...
public void onReceive(android.content.Context context, android.content.Intent intent) { if ((intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) || (intent.getAction().equals("android.intent.action.LOCKED_BOOT_COMPLETED"))) { android.util.Log.d(Config.LOG_TAG, "Received BOOT_COMPLETED Broadca...
public void onReceive(android.content.Context context, android.content.Intent intent) { if ((intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) || (intent.getAction().equals("android.intent.action.LOCKED_BOOT_COMPLETED"))) { android.util.Log.d(Config.LOG_TAG, "Received BOOT_COMPLETED Broadca...
public boolean authenticateUser(java.lang.String UserName) { for (int i = 0; i < (ca.ualberta.cs.cmput301w15t12.UserList.users.size()); ++i) { if (ca.ualberta.cs.cmput301w15t12.UserList.users.get(i).getUserName().equals(UserName)) { return true; } return false; } }
public boolean authenticateUser(java.lang.String UserName) { for (int i = 0; i < (ca.ualberta.cs.cmput301w15t12.UserList.users.size()); ++i) { if (ca.ualberta.cs.cmput301w15t12.UserList.users.get(i).getUserName().equals(UserName)) { return true; } } return false; }
public boolean remove(java.lang.Object o) { java.lang.Object[] arr2 = new java.lang.Object[(arr.length) - 1]; for (int x = 0; x < (arr.length); x++) { if ((arr[x]) != o) { arr2[x] = arr[x]; } } arr = arr2; return true; }
public boolean remove(java.lang.Object o) { java.lang.Object[] arr2 = new java.lang.Object[(arr.length) - 1]; int count = 0; for (int x = 0; x < (arr.length); x++) { if (!(arr[x].equals(o))) { arr2[count] = arr[x]; count++; } } arr = arr2; return true; }
public static com.reddit.material.UnloadedComments generateUnloadedComments(org.json.JSONObject object) { try { com.reddit.material.UnloadedComments comments; comments = new com.reddit.material.UnloadedComments(object.getString("name"), object.getInt("count"), object.getString("parent_id"), object.g...
public static com.reddit.material.UnloadedComments generateUnloadedComments(org.json.JSONObject object) { try { com.reddit.material.UnloadedComments comments; comments = new com.reddit.material.UnloadedComments(object.getString("name"), object.getInt("count"), object.getJSONArray("children")); ...
public void actionPerformed(java.awt.event.ActionEvent event) { java.lang.Object action = event.getSource(); if (action == start) { java.lang.System.out.println("Go to setup screen"); frame.setVisible(false); setup.init(); } if (action == leader) { java.lang.System.out.pr...
public void actionPerformed(java.awt.event.ActionEvent event) { java.lang.Object action = event.getSource(); if (action == start) { java.lang.System.out.println("Go to setup screen"); frame.setVisible(false); } if (action == leader) { java.lang.System.out.println("Go to leaderboa...
public static java.io.File zip(java.io.File srcFile) throws java.io.IOException { java.io.File zipFile = com.xiaoleilu.hutool.util.FileUtil.file(srcFile.getParentFile(), ((com.xiaoleilu.hutool.util.FileUtil.mainName(srcFile)) + ".zip")); com.xiaoleilu.hutool.util.ZipUtil.zip(srcFile, zipFile, false); return...
public static java.io.File zip(java.io.File srcFile) throws java.io.IOException { java.io.File zipFile = com.xiaoleilu.hutool.util.FileUtil.file(srcFile.getParentFile(), ((com.xiaoleilu.hutool.util.FileUtil.mainName(srcFile)) + ".zip")); com.xiaoleilu.hutool.util.ZipUtil.zip(zipFile, false, srcFile); return...
public void onDateSet(android.widget.DatePicker view, int year, int month, int day) { android.util.Log.d("MVC", "Date has been set"); etSignupBirthday.setText(((((day + "/") + (month + 1)) + "/") + year)); }
public void onDateSet(android.widget.DatePicker view, int year, int month, int day) { android.util.Log.d("MVC", "Date has been set"); etSignupBirthday.setText((((((month + 1) + "/") + day) + "/") + year)); }
public void actionPerformed(java.awt.event.ActionEvent e) { com.devankuleindiren.mnist.DataLoader dataLoader = com.devankuleindiren.mnist.DataLoader.getInstance(); try { com.devankuleindiren.mnist.Image image = dataLoader.next(loadImageSource.getText()); com.devankuleindiren.mnist.DrawingPanel d...
public void actionPerformed(java.awt.event.ActionEvent e) { com.devankuleindiren.mnist.DataLoader dataLoader = com.devankuleindiren.mnist.DataLoader.getInstance(); try { com.devankuleindiren.mnist.Image image = dataLoader.next(loadImageSource.getText()); com.devankuleindiren.mnist.DrawingPanel d...
public java.lang.String getNext(java.lang.String key) { java.lang.String hash = computeMd5(key); java.lang.String higherKey = circle.higherKey(hash); if (higherKey.isEmpty()) { hash = circle.firstKey(); }else { hash = higherKey; } return circle.get(hash); }
public java.lang.String getNext(java.lang.String key) { java.lang.String hash = computeMd5(key); java.lang.String higherKey = circle.higherKey(hash); if (higherKey == null) { hash = circle.firstKey(); }else { hash = higherKey; } return circle.get(hash); }
@com.google.common.annotations.VisibleForTesting boolean shouldSendNeighborRequest(java.lang.String datacenter) { return datacenter.equals(this.datacenter) ? (endpointStateSubscriber.fanout(datacenter, datacenter)) > (localDatacenterView.size()) : (endpointStateSubscriber.comapreDatacenterSizes(this.datacenter, dat...
@com.google.common.annotations.VisibleForTesting boolean shouldSendNeighborRequest(java.lang.String datacenter) { if (localDatacenterView.isEmpty()) return true; return datacenter.equals(this.datacenter) ? (endpointStateSubscriber.fanout(datacenter, datacenter)) > (localDatacenterView.size()) : (en...
public void run() { running.set(true); try { final java.util.List<com.bt4vt.repository.model.BusModel> buses = transitRepository.getBusLocations(route); for (com.bt4vt.repository.listener.BusListener busListener : busListeners) { busListener.onUpdateBuses(buses); } } catc...
public void run() { running.set(true); try { final java.util.List<com.bt4vt.repository.model.BusModel> buses = transitRepository.getBusLocations(route); for (com.bt4vt.repository.listener.BusListener busListener : busListeners) { busListener.onUpdateBuses(buses); } } catc...
public void append(org.apache.logging.log4j.core.LogEvent logEvent) { if (com.getsentry.raven.environment.RavenEnvironment.isManagingThread()) return ; com.getsentry.raven.environment.RavenEnvironment.startManagingThread(); try { if ((raven) == null) initRaven(); ...
public void append(org.apache.logging.log4j.core.LogEvent logEvent) { if (com.getsentry.raven.environment.RavenEnvironment.isManagingThread()) return ; com.getsentry.raven.environment.RavenEnvironment.startManagingThread(); try { synchronized(this) { if ((raven) == null) ...
public void onClick(android.content.DialogInterface dialog, int which) { java.util.Map<java.lang.String, java.lang.Object> result = new java.util.HashMap<java.lang.String, java.lang.Object>(); result.put(com.taobao.weex.ui.module.WXModalUIModule.RESULT, okTitle_f); result.put(com.taobao.weex.ui.module.WXMod...
public void onClick(android.content.DialogInterface dialog, int which) { if (callback != null) { java.util.Map<java.lang.String, java.lang.Object> result = new java.util.HashMap<java.lang.String, java.lang.Object>(); result.put(com.taobao.weex.ui.module.WXModalUIModule.RESULT, okTitle_f); re...
public void run() { for (int i = (admins.size()) - (1 / 2); i < (admins.size()); i++) { admins.get(i).restore(); } }
public void run() { for (int i = ((admins.size()) - 1) / 2; i < (admins.size()); i++) { admins.get(i).restore(); } }
private static int handleEmptyDates(java.lang.String dateString1, java.lang.String dateString2) { assert (dateString1.isEmpty()) || (dateString2.isEmpty()); if ((dateString1.isEmpty()) && (dateString2.isEmpty())) { return seedu.ezdo.commons.util.DateUtil.COMPARE_RESULT_EQUAL; }else if (dateS...
private static int handleEmptyDates(java.lang.String dateString1, java.lang.String dateString2) { assert (dateString1.isEmpty()) || (dateString2.isEmpty()); if ((dateString1.isEmpty()) && (dateString2.isEmpty())) { return seedu.ezdo.commons.util.DateUtil.COMPARE_RESULT_EQUAL; }else if (dateS...
public void setCharacter(java.lang.Character character) { if ((this.character) != null) { if ((this.character) instanceof java.lang.Runnable) runnables.remove(this.character); this.character.onCharacterRemove(this); } this.character = character; if (character instanc...
public void setCharacter(java.lang.Character character) { if ((this.character) != null) { if ((this.character) instanceof java.lang.Runnable) runnables.remove(this.character); this.character.onCharacterRemove(this); } this.character = character; if (character != null...
public void onItemSelected(android.widget.AdapterView<?> parent, android.view.View view, int pos, long l) { switch (parent.getId()) { case R.id.college_spinner : college_selected = parent.getItemAtPosition(pos).toString(); break; case R.id.year_spinner : year_sele...
public void onItemSelected(android.widget.AdapterView<?> parent, android.view.View view, int pos, long l) { switch (parent.getId()) { case R.id.college_spinner : college_selected = parent.getItemAtPosition(pos).toString(); case R.id.year_spinner : year_selected = parent.getIt...
public boolean update() { org.hibernate.SessionFactory sf = Server.DAO.HibernateUtil.getSessionFactory(); org.hibernate.Session session = sf.openSession(); session.beginTransaction(); try { session.update(this); session.getTransaction().commit(); } catch (org.hibernate.HibernateExcep...
public boolean update() { org.hibernate.SessionFactory sf = Server.DAO.HibernateUtil.getSessionFactory(); org.hibernate.Session session = sf.openSession(); session.beginTransaction(); try { session.update(this); session.getTransaction().commit(); } catch (org.hibernate.HibernateExcep...
private logic.TaskObject deleteFunction(logic.CommandObject commandObj) { logic.TaskObject removedTask = new logic.TaskObject(); logic.Delete delete = new logic.Delete(commandObj, taskList, lastOutputTaskList); setOutput(delete.run()); setLastOutputTaskList(taskList); removedTask = delete.getRemoved...
private logic.TaskObject deleteFunction(logic.CommandObject commandObj) { logic.TaskObject removedTask = new logic.TaskObject(); logic.Delete delete = new logic.Delete(commandObj, taskList, lastOutputTaskList); setOutput(delete.run()); setLastOutputTaskList(taskList); return delete.getRemovedTask();...
public com.kepler.protocol.Request valid(com.kepler.protocol.Request request) throws com.kepler.KeplerValidateException { for (java.lang.Object arg : request.args()) { if (arg == null) { continue; } for (javax.validation.ConstraintViolation<java.lang.Object> valid : com.kepler.pr...
public com.kepler.protocol.Request valid(com.kepler.protocol.Request request) throws com.kepler.KeplerValidateException { for (java.lang.Object arg : request.args()) { if (arg != null) { for (javax.validation.ConstraintViolation<java.lang.Object> valid : com.kepler.protocol.validation.Jsr303Vali...
protected void execute() { org.usfirst.frc.team500.robot.subsystems.DrivetrainSubsystem.getInstance().populateLog(startTime); if (org.usfirst.frc.team500.robot.OI.aPressed()) { org.usfirst.frc.team500.robot.subsystems.DrivetrainSubsystem.getInstance().forwardFullVelocity(); }else if (org.usf...
protected void execute() { if (org.usfirst.frc.team500.robot.OI.aPressed()) { org.usfirst.frc.team500.robot.subsystems.DrivetrainSubsystem.getInstance().forwardFullVelocity(); }else if (org.usfirst.frc.team500.robot.OI.bPressed()) { org.usfirst.frc.team500.robot.subsystems.Drivetrain...
public static java.net.URI pathToURI(org.apache.hadoop.fs.swift.util.SwiftObjectPath path, java.net.URI endpointURI) throws org.apache.hadoop.fs.swift.exceptions.SwiftException { org.apache.hadoop.fs.swift.http.SwiftRestClient.checkNotNull(endpointURI, "Null Endpoint -client is not authenticated"); java.lang.St...
public static java.net.URI pathToURI(org.apache.hadoop.fs.swift.util.SwiftObjectPath path, java.net.URI endpointURI) throws org.apache.hadoop.fs.swift.exceptions.SwiftException { org.apache.hadoop.fs.swift.http.SwiftRestClient.checkNotNull(endpointURI, "Null Endpoint -client is not authenticated"); java.lang.St...
public static void logEventListenerError(java.lang.Object listener, java.lang.Exception error) { if (com.google.gerrit.server.extensions.events.EventUtil.log.isDebugEnabled()) { com.google.gerrit.server.extensions.events.EventUtil.log.debug(java.lang.String.format("Error in event listener %s", listener.getC...
public static void logEventListenerError(java.lang.Object listener, java.lang.Exception error) { if (com.google.gerrit.server.extensions.events.EventUtil.log.isDebugEnabled()) { com.google.gerrit.server.extensions.events.EventUtil.log.debug(java.lang.String.format("Error in event listener %s", listener.getC...
protected void setSelectedIndexOnClick(int index) { if (index != (_selectedTaskIndex.getValue())) { ((urgenda.gui.SimpleTaskController) (displayHolder.getChildren().get(_selectedTaskIndex.getValue()))).setSelected(false); _selectedTaskIndex.set(index); setDisplayScrollHeight((-1), _selectedT...
protected void setSelectedIndexOnClick(int index) { if (index != (_selectedTaskIndex.getValue())) { ((urgenda.gui.SimpleTaskController) (displayHolder.getChildren().get(_selectedTaskIndex.getValue()))).setSelected(false); _selectedTaskIndex.set(index); } }
public void setInfo(com.luxoft.wheretogo.models.UserInfo user) { if ((user.getPassword()) != "") this.password = user.getPassword(); this.firstName = user.getFirstName(); this.lastName = user.getLastName(); this.birthday = user.getBirthday(); this.phoneNumber = user.getPhoneNumber(); ...
public void setInfo(com.luxoft.wheretogo.models.UserInfo user) { this.firstName = user.getFirstName(); this.lastName = user.getLastName(); this.birthday = user.getBirthday(); this.phoneNumber = user.getPhoneNumber(); this.description = user.getDescription(); setPicture(user.getPicture()); }
public static com.yarolegovich.wellsql.SelectQuery<org.wordpress.android.fluxc.model.MediaModel> getMediaExcludingQuery(org.wordpress.android.fluxc.model.SiteModel site, java.lang.String column, java.lang.Object value) { return com.yarolegovich.wellsql.WellSql.select(org.wordpress.android.fluxc.model.MediaModel.cla...
public static com.yarolegovich.wellsql.SelectQuery<org.wordpress.android.fluxc.model.MediaModel> getMediaExcludingQuery(org.wordpress.android.fluxc.model.SiteModel site, java.lang.String column, java.lang.Object value) { return com.yarolegovich.wellsql.WellSql.select(org.wordpress.android.fluxc.model.MediaModel.cla...
public void close() { try { importContracts(); publishServices(); registerApplications(); for (io.apiman.manager.api.gateway.IGatewayLink gwLink : gatewayLinkCache.values()) { try { gwLink.close(); } catch (java.lang.Exception e) { ...
public void close() { try { importContracts(); publishServices(); registerApplications(); for (io.apiman.manager.api.gateway.IGatewayLink gwLink : gatewayLinkCache.values()) { try { gwLink.close(); } catch (java.lang.Exception e) { ...
public br.ufs.dcomp.sigaaweb.model.AlunoBean findByMatricula(long matricula) { try { java.sql.Statement statement = this.getConnection().createStatement(); java.sql.ResultSet resultSet = statement.executeQuery(("SELECT * FROM alunos WHERE cod_matricula=" + matricula)); if (resultSet.next()) ...
public br.ufs.dcomp.sigaaweb.model.AlunoBean findByMatricula(long matricula) { try { java.sql.Statement statement = this.getConnection().createStatement(); java.sql.ResultSet resultSet = statement.executeQuery(("SELECT * FROM alunos WHERE cod_matricula=" + matricula)); if (resultSet.next()) ...
public int onStartCommand(android.content.Intent intent, int flags, int startId) { android.util.Log.d("Start Command", "Inside"); CollectData(); showNotification(); android.util.Log.d("LocalService", ((("Received start id " + startId) + ": ") + intent)); android.util.Log.d("On alarm", "test two"); ...
public int onStartCommand(android.content.Intent intent, int flags, int startId) { android.util.Log.d("Start Command", "Inside"); showNotification(); CollectData(); android.util.Log.d("LocalService", ((("Received start id " + startId) + ": ") + intent)); android.util.Log.d("On alarm", "test two"); ...
public void deletePlayer(iitema.gypsypokemon.PlayerInterface dead) { for (int i = 0; i < 3; ++i) { if ((players[i]) == dead) { players[i] = null; if (((players[0]) == null) && ((players[1]) == null)) { endGame(); } return ; } } }
public void deletePlayer(iitema.gypsypokemon.PlayerInterface dead) { for (int i = 0; i < 3; ++i) { if ((players[i]) == dead) { players[i] = null; if (((players[0]) == null) || ((players[1]) == null)) { endGame(); } return ; } } }
public android.database.Cursor swapCursor(android.database.Cursor newCursor) { final android.database.Cursor oldCursor = mCursor; if (oldCursor != null) { oldCursor.unregisterDataSetObserver(mDataObserver); } mCursor = newCursor; if ((mCursor) != null) { newCursor.registerDataSetObse...
public android.database.Cursor swapCursor(android.database.Cursor newCursor) { final android.database.Cursor oldCursor = mCursor; if (oldCursor != null) { oldCursor.unregisterDataSetObserver(mDataObserver); } mCursor = newCursor; if ((mCursor) != null) { newCursor.registerDataSetObse...
private void collectUsedFragmentsInDefinition(java.util.List<java.lang.String> result, java.lang.String fragmentName) { if (result.contains(fragmentName)) return ; result.add(fragmentName); java.util.List<java.lang.String> spreadList = spreadsInDefinition.get(fragmentName); for (java.lang.S...
private void collectUsedFragmentsInDefinition(java.util.List<java.lang.String> result, java.lang.String fragmentName) { if (result.contains(fragmentName)) return ; result.add(fragmentName); java.util.List<java.lang.String> spreadList = spreadsInDefinition.get(fragmentName); if (spreadList =...
public org.wso2.carbon.tools.wsdlvalidator.Report validateFromFile(java.lang.String type, javax.activation.DataHandler filedata) throws java.lang.Exception { java.io.InputStream inputStream; try { inputStream = filedata.getDataSource().getInputStream(); } catch (java.io.IOException e) { thro...
public org.wso2.carbon.tools.wsdlvalidator.Report validateFromFile(java.lang.String type, javax.activation.DataHandler filedata) throws java.lang.Exception { java.io.InputStream inputStream; try { inputStream = filedata.getDataSource().getInputStream(); } catch (java.io.IOException e) { thro...
private java.util.Set<rocks.inspectit.shared.all.communication.data.ParameterContentData> convertParameterContents() { java.util.Set<rocks.inspectit.shared.all.communication.data.ParameterContentData> contents = new java.util.HashSet<>(); for (java.util.Map.Entry<java.lang.String, java.lang.String> contentEntry...
private java.util.Set<rocks.inspectit.shared.all.communication.data.ParameterContentData> convertParameterContents() { java.util.Set<rocks.inspectit.shared.all.communication.data.ParameterContentData> contents = new java.util.HashSet<>(); if ((parameterContentData) != null) { for (java.util.Map.Entry<ja...
public com.uf.rest.entity.ShopVisitRecord findOneDayVisitRecord(java.lang.Integer shopId, java.util.Date date) { java.util.List<com.uf.rest.entity.ShopVisitRecord> records = shopVisitDao.findByHql("select v from ShopVisitRecord v where v.shop.id=? and v.date>=? and v.date<=? ", shopId, com.uf.rest.util.DateUtil.get...
public com.uf.rest.entity.ShopVisitRecord findOneDayVisitRecord(java.lang.Integer shopId, java.util.Date date) { java.util.List<com.uf.rest.entity.ShopVisitRecord> records = shopVisitDao.findByHql("select v from ShopVisitRecord v where v.shop.id=? and v.date>=? and v.date<=? ", shopId, com.uf.rest.util.DateUtil.get...
public void onItemClick(android.view.View view, int position) { boolean flag = true; for (int mem : edu.aku.hassannaqvi.dss_census.core.MainApp.memClicked) { if (mem == position) { flag = false; break; } } if (flag) { (edu.aku.hassannaqvi.dss_census.core.M...
public void onItemClick(android.view.View view, int position) { boolean flag = true; for (int mem : edu.aku.hassannaqvi.dss_census.core.MainApp.memClicked) { if (mem == position) { flag = false; break; } } if (flag) { MainApp.memClicked.add(position); ...
public java.lang.String getOntologyNamespaceFromId(java.lang.String uri) { if (ontologyMappings.containsKey(uri)) { return ontologyMappings.get(uri).getNamespace(); } uk.ac.ebi.pride.utilities.ols.web.service.model.Ontology ontology = olsClient.getOntologyFromId(java.net.URI.create(uri)); if (on...
public java.lang.String getOntologyNamespaceFromId(java.lang.String uri) { if (ontologyMappings.containsKey(uri)) { return ontologyMappings.get(uri).getNamespace(); } uk.ac.ebi.pride.utilities.ols.web.service.model.Ontology ontology = olsClient.getOntologyFromId(java.net.URI.create(uri)); if (on...
public void get_Present() { com.marc.collections.SkipList<java.lang.Integer> mySkipList = new com.marc.collections.SkipList(4, new java.util.Random()); mySkipList.add(new java.lang.Integer(5)); mySkipList.add(new java.lang.Integer(6)); mySkipList.add(new java.lang.Integer(8)); mySkipList.add(new jav...
public void get_Present() { com.marc.collections.SkipList<java.lang.Integer> mySkipList = new com.marc.collections.SkipList(4); mySkipList.add(new java.lang.Integer(5)); mySkipList.add(new java.lang.Integer(6)); mySkipList.add(new java.lang.Integer(8)); mySkipList.add(new java.lang.Integer(7)); ...
public void add(int field, int amount) { this.getSolar().add(field, amount); this.computeBySolarDate(this.getSolar().get(java.util.Calendar.YEAR), this.getSolar().get(java.util.Calendar.MONTH), this.getSolar().get(java.util.Calendar.DATE)); }
public void add(int field, int amount) { this.getSolar().add(field, amount); this.computeBySolarDate(this.getSolar().get(java.util.Calendar.YEAR), ((this.getSolar().get(java.util.Calendar.MONTH)) + 1), this.getSolar().get(java.util.Calendar.DATE)); }
private static net.nikr.eve.jeveasset.gui.tabs.orders.MyMarketOrder toMarketOrder(final com.beimin.eveapi.model.shared.MarketOrder apiMarketOrder, final net.nikr.eve.jeveasset.data.Owner owner) { net.nikr.eve.jeveasset.data.Item item = net.nikr.eve.jeveasset.io.shared.ApiIdConverter.getItem(apiMarketOrder.getTypeID...
private static net.nikr.eve.jeveasset.gui.tabs.orders.MyMarketOrder toMarketOrder(final com.beimin.eveapi.model.shared.MarketOrder apiMarketOrder, final net.nikr.eve.jeveasset.data.Owner owner) { net.nikr.eve.jeveasset.data.Item item = net.nikr.eve.jeveasset.io.shared.ApiIdConverter.getItem(apiMarketOrder.getTypeID...
private static void _handleNavigation(int container, int animIn, int animOut) { icarus.io.router.FragmentRouter.mAct.getSupportFragmentManager().beginTransaction().setCustomAnimations(animIn, animOut).replace(container, icarus.io.router.FragmentRouter.current).commit(); if ((icarus.io.router.FragmentRouter.frag...
private static void _handleNavigation(int container, int animIn, int animOut) { if ((icarus.io.router.FragmentRouter.current) == null) { return ; } icarus.io.router.FragmentRouter.mAct.getSupportFragmentManager().beginTransaction().setCustomAnimations(animIn, animOut).replace(container, icarus.io.ro...
public void printTree(java.lang.Integer depth) { java.util.Iterator<java.lang.String> i = children.keySet().iterator(); if (i.hasNext()) { java.lang.String fileName = i.next(); java.lang.System.out.println(""); for (int k = 0; k < depth; k++) { java.lang.System.out.print("-")...
public void printTree(java.lang.Integer depth) { java.lang.System.out.println(""); for (int k = 0; k < depth; k++) { java.lang.System.out.print("-"); } java.lang.System.out.print(fileName); for (java.lang.String fileName : children.keySet()) { children.get(fileName).printTree((depth ...
public void pause() throws java.lang.InterruptedException { org.junit.Assert.assertThat(OperatingPool.CORE.getStatus().isPaused(), org.hamcrest.CoreMatchers.is(false)); OperatingPool.CORE.pause(); java.lang.Thread.sleep(6000); org.junit.Assert.assertThat(OperatingPool.CORE.getStatus().isPaused(), org.ha...
public void pause() throws java.lang.InterruptedException { org.junit.Assert.assertThat(OperatingPool.CORE.getStatus().isPaused(), org.hamcrest.CoreMatchers.is(false)); OperatingPool.CORE.pause(); org.junit.Assert.assertThat(OperatingPool.CORE.getStatus().isPaused(), org.hamcrest.CoreMatchers.is(true)); }
private void doNotify(redis.clients.jedis.Jedis jedis, java.lang.String key) { for (java.util.Map.Entry<com.github.ltsopensource.core.cluster.Node, java.util.Set<com.github.ltsopensource.core.registry.NotifyListener>> entry : new java.util.HashMap<com.github.ltsopensource.core.cluster.Node, java.util.Set<com.github...
private void doNotify(redis.clients.jedis.Jedis jedis, java.lang.String key) { for (java.util.Map.Entry<com.github.ltsopensource.core.cluster.Node, java.util.Set<com.github.ltsopensource.core.registry.NotifyListener>> entry : new java.util.HashMap<com.github.ltsopensource.core.cluster.Node, java.util.Set<com.github...
public void run() { dataReadDisruptor = new com.lmax.disruptor.dsl.Disruptor<org.wso2.siddhi.debs2016.Processors.DEBSEvent>(new com.lmax.disruptor.EventFactory<org.wso2.siddhi.debs2016.Processors.DEBSEvent>() { @java.lang.Override public org.wso2.siddhi.debs2016.Processors.DEBSEvent newInstance() { ...
public void run() { dataReadDisruptor = new com.lmax.disruptor.dsl.Disruptor<org.wso2.siddhi.debs2016.Processors.DEBSEvent>(new com.lmax.disruptor.EventFactory<org.wso2.siddhi.debs2016.Processors.DEBSEvent>() { @java.lang.Override public org.wso2.siddhi.debs2016.Processors.DEBSEvent newInstance() { ...
private void disableKDC() { _kdcReader.EnableNFCPower(0); org.json.JSONObject parameter = new org.json.JSONObject(); parameter.put("KDCDisable", _kdcReader.IsNFCPowerEnabled().toString()); org.apache.cordova.PluginResult pluginResult = new org.apache.cordova.PluginResult(PluginResult.Status.OK, paramete...
private void disableKDC() { _kdcReader.EnableNFCPower(false); org.json.JSONObject parameter = new org.json.JSONObject(); parameter.put("KDCDisable", _kdcReader.IsNFCPowerEnabled()); org.apache.cordova.PluginResult pluginResult = new org.apache.cordova.PluginResult(PluginResult.Status.OK, parameter); ...
public int compare(java.lang.Object a, java.lang.Object b) { double ax = java.lang.Integer.parseInt(java.lang.String.valueOf(this.base.get(a))); double bx = java.lang.Integer.parseInt(java.lang.String.valueOf(this.base.get(b))); if (ax < bx) return 1; if (ax == bx) { return 0; }...
public int compare(java.lang.Object a, java.lang.Object b) { int ax = java.lang.Integer.parseInt(java.lang.String.valueOf(this.base.get(a))); int bx = java.lang.Integer.parseInt(java.lang.String.valueOf(this.base.get(b))); if (ax < bx) return 1; if (ax == bx) { return 0; } r...
public static void main(java.lang.String[] args) { com.kaushik.AlgorithmUtility.linkedlistalgos.LinkedListAlgos algos = new com.kaushik.AlgorithmUtility.linkedlistalgos.LinkedListAlgos(); int[] arr = new int[]{ 1 , 2 , 3 , 1 , 2 , 1 , 1 , 1 , 1 , 1 , 5 , 0 , 1 , 6 }; com.kaushik.AlgorithmUtility.entities.Li...
public static void main(java.lang.String[] args) { com.kaushik.AlgorithmUtility.linkedlistalgos.LinkedListAlgos algos = new com.kaushik.AlgorithmUtility.linkedlistalgos.LinkedListAlgos(); int[] arr = new int[]{ 1 , 1 , 1 }; com.kaushik.AlgorithmUtility.entities.LinkedlistNode<java.lang.Integer> head = algos...
public boolean needToSync(java.lang.String candidate) { boolean needToSync = false; int index = 0; for (java.lang.String screen : pendingScreens) { if (candidate.equals(screen)) { needToSync = true; break; } index++; } if (needToSync) pendingSc...
public boolean needToSync(@android.support.annotation.Nullable java.lang.String candidate) { boolean needToSync = false; if (candidate == null) return needToSync; int index = 0; for (java.lang.String screen : pendingScreens) { if (candidate.equals(screen)) { needToSync =...
private boolean isDelay() { java.lang.Integer delay = com.alibaba.dubbo.config.spring.ServiceBean.getDelay(); com.alibaba.dubbo.config.ProviderConfig provider = com.alibaba.dubbo.config.spring.ServiceBean.getProvider(); if ((delay == null) && (provider != null)) { delay = provider.getDelay(); } ...
private boolean isDelay() { java.lang.Integer delay = com.alibaba.dubbo.config.spring.ServiceBean.getDelay(); com.alibaba.dubbo.config.ProviderConfig provider = com.alibaba.dubbo.config.spring.ServiceBean.getProvider(); if ((delay == null) && (provider != null)) { delay = provider.getDelay(); } ...
public static void main(java.lang.String[] args) { int n = java.lang.Integer.valueOf(args[0]); int trials = java.lang.Integer.valueOf(args[1]); com.github.olegkoskin.algs4.percolation.PercolationStats percStats = new com.github.olegkoskin.algs4.percolation.PercolationStats(n, trials); java.lang.System.o...
public static void main(java.lang.String[] args) { int n = java.lang.Integer.parseInt(args[0]); int trials = java.lang.Integer.parseInt(args[1]); com.github.olegkoskin.algs4.percolation.PercolationStats percStats = new com.github.olegkoskin.algs4.percolation.PercolationStats(n, trials); java.lang.System...
public void actionPerformed(java.awt.event.ActionEvent e) { if (((getUserName()) != null) && ((getUserName().length()) > 0)) { controller.login(tfUserName.getText().toString()); if ((getUserName().length()) > 0) { controller.login(getUserName()); frame.setVisible(false); ...
public void actionPerformed(java.awt.event.ActionEvent e) { if (((getUserName()) != null) && ((getUserName().length()) > 0)) { controller.login(tfUserName.getText().toString()); frame.setVisible(false); }else { javax.swing.JOptionPane.showMessageDialog(null, "You must enter a username!")...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { sensorList = ((com.ohtu.wearable.wearabledataservice.SelectedSensorsInterface) (getActivity())).getSelectedSensors(); android.view.View view = inflater.inflate(R....
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { sensorList = ((com.ohtu.wearable.wearabledataservice.SelectedSensorsInterface) (getActivity())).getSelectedSensors(); android.view.View view = inflater.inflate(R....
public void installPacoBarkRingtone() { com.pacoapp.paco.UserPreferences userPreferences = new com.pacoapp.paco.UserPreferences(context); if (!(userPreferences.hasInstalledAlternateRingtone())) { installRingtone(userPreferences, com.pacoapp.paco.os.RingtoneUtil.ALTERNATE_RINGTONE_FILENAME, com.pacoapp.p...
public void installPacoBarkRingtone() { com.pacoapp.paco.UserPreferences userPreferences = new com.pacoapp.paco.UserPreferences(context); if (!(userPreferences.hasInstalledAlternateRingtone())) { installRingtone(userPreferences, com.pacoapp.paco.os.RingtoneUtil.ALTERNATE_RINGTONE_FILENAME, com.pacoapp.p...
public static int[] mergeSort(int[] a, int p, int r) { if (p < r) { int q = (p + r) / 2; Sorting.MergeSort.mergeSort(a, p, q); Sorting.MergeSort.mergeSort(a, (q + 1), r); Sorting.MergeSort.merge(a, p, q, r); } return a; }
public static void mergeSort(int[] a, int p, int r) { if (p < r) { int q = (p + r) / 2; Sorting.MergeSort.mergeSort(a, p, q); Sorting.MergeSort.mergeSort(a, (q + 1), r); Sorting.MergeSort.merge(a, p, q, r); } }
public lir.LirReturnInfo visit(lir.AssignStmt stmt, lir.Environment d) { lir.LirReturnInfo valueInfo = stmt.getRhs().accept(this, d); lir.LirReturnInfo locationInfo = stmt.getLocation().accept(this, d); lirAssignHandler(locationInfo, valueInfo, d); return null; }
public lir.LirReturnInfo visit(lir.AssignStmt stmt, lir.Environment d) { lir.LirReturnInfo valueInfo = stmt.getRhs().accept(this, d); lir.LirReturnInfo locationInfo = stmt.getLocation().accept(this, d); return lirAssignHandler(locationInfo, valueInfo, d); }
public void setupFirebase() { if (mbIsGrocery) { mListRef = new com.firebase.client.Firebase(edu.pacificu.cs493f15_1.utils.Constants.FIREBASE_URL_GROCERY_LISTS); mListItemsRef = new com.firebase.client.Firebase(edu.pacificu.cs493f15_1.utils.Constants.FIREBASE_URL_GROCERY_LIST_ITEMS).child(mListID); ...
public void setupFirebase() { if (mbIsGrocery) { mListRef = new com.firebase.client.Firebase(edu.pacificu.cs493f15_1.utils.Constants.FIREBASE_URL_GROCERY_LISTS).child(mListID); mListItemsRef = new com.firebase.client.Firebase(edu.pacificu.cs493f15_1.utils.Constants.FIREBASE_URL_GROCERY_LIST_ITEMS).c...
public void openConnection() { java.sql.Connection c = null; java.sql.Statement stmt = null; try { java.lang.Class.forName("org.sqlite.JDBC"); c = java.sql.DriverManager.getConnection("jdbc:sqlite:FacilityManagementSystem.db"); } catch (java.lang.Exception e) { java.lang.System.e...
public void openConnection(java.sql.Connection c) { try { java.lang.Class.forName("org.sqlite.JDBC"); c = java.sql.DriverManager.getConnection("jdbc:sqlite:FacilityManagementSystem.db"); } catch (java.lang.Exception e) { java.lang.System.err.println((((e.getClass().getName()) + ": ") + (...
public boolean equalTo(org.yashasvi.calender4j.core.classes.Time B) { return ((((this.second) == (B.second)) && ((this.minute) == (B.minute))) && ((this.hour) == (B.hour))) && ((this.microsecond) == (B.microsecond)); }
public boolean equalTo(@lombok.NonNull final org.yashasvi.calender4j.core.classes.Time B) { return ((((this.second) == (B.second)) && ((this.minute) == (B.minute))) && ((this.hour) == (B.hour))) && ((this.microsecond) == (B.microsecond)); }
public edu.msg.ro.business.dto.UserDTO updateUser(edu.msg.ro.business.dto.UserDTO userDTO) throws edu.msg.ro.business.exception.BusinessException, edu.msg.ro.business.exception.TechnicalException { userValidator.validateUserUpdateData(userDTO); java.lang.String password = com.google.common.hash.Hashing.sha256()...
public edu.msg.ro.business.dto.UserDTO updateUser(edu.msg.ro.business.dto.UserDTO userDTO) throws edu.msg.ro.business.exception.BusinessException, edu.msg.ro.business.exception.TechnicalException { userValidator.validateUserUpdateData(userDTO); edu.msg.ro.persistence.entity.User initialUser = userDAO.findUserBy...
public void onAttach(android.content.Context context) { super.onAttach(context); if (context instanceof tpdev.megaphone.MessageListFragment.Listener) { mListener = ((tpdev.megaphone.MessageListFragment.Listener) (context)); android.util.Log.w(com.google.android.gms.wearable.DataMap.TAG, "ATTACHI...
public void onAttach(android.content.Context context) { super.onAttach(context); if (context instanceof tpdev.megaphone.MessageListFragment.Listener) { mListener = ((tpdev.megaphone.MessageListFragment.Listener) (context)); }else { throw new java.lang.RuntimeException(((context.toString()) +...
public static corp.skaj.foretagskvitton.view.CompanyListFragment createCompanyList(android.content.Context context, java.util.List<corp.skaj.foretagskvitton.model.Company> companyList, corp.skaj.foretagskvitton.controllers.IActivity listener) { corp.skaj.foretagskvitton.view.CompanyAdapter ca = new corp.skaj.foreta...
public static corp.skaj.foretagskvitton.view.CompanyListFragment createCompanyList(android.content.Context context, java.util.List<corp.skaj.foretagskvitton.model.Company> companyList) { corp.skaj.foretagskvitton.view.CompanyAdapter ca = new corp.skaj.foretagskvitton.view.CompanyAdapter(R.layout.company_list_item, ...