buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public static java.util.List<fr.inria.spirals.jtravis.entities.Build> getBuildsFromSlugWithLimitDate(java.lang.String slug, java.util.Date limitDate) { java.util.List<fr.inria.spirals.jtravis.entities.Build> result = new java.util.ArrayList<fr.inria.spirals.jtravis.entities.Build>(); fr.inria.spirals.jtravis.he...
public static java.util.List<fr.inria.spirals.jtravis.entities.Build> getBuildsFromSlugWithLimitDate(java.lang.String slug, java.util.Date limitDate) { java.util.List<fr.inria.spirals.jtravis.entities.Build> result = new java.util.ArrayList<fr.inria.spirals.jtravis.entities.Build>(); fr.inria.spirals.jtravis.he...
protected com.akamai.testing.edgegrid.core.Request map(io.restassured.specification.FilterableRequestSpecification requestSpec) { return com.akamai.testing.edgegrid.core.Request.builder().method(requestSpec.getMethod()).uriWithQuery(java.net.URI.create(requestSpec.getURI())).headers(com.akamai.testing.edgegrid.rest...
protected com.akamai.testing.edgegrid.core.Request map(io.restassured.specification.FilterableRequestSpecification requestSpec) { return com.akamai.testing.edgegrid.core.Request.builder().method(requestSpec.getMethod()).uriWithQuery(java.net.URI.create(requestSpec.getURI())).headers(com.akamai.testing.edgegrid.rest...
public void setStart() throws java.io.IOException { programdata.Exercise.start(); if (KatalogCreator.choosenKatalog.timetracking) { scenes.Controller.startDate = java.time.LocalDateTime.now(); programdata.Tracker.startTrack(); } resetTimer(); start.setDisable(true); picture.setDi...
public void setStart() throws java.io.IOException { programdata.Exercise.start(); if (KatalogCreator.choosenKatalog.timetracking) { analyseButton.setDisable(false); programdata.Tracker.startTrack(); } resetTimer(); start.setDisable(true); picture.setDisable(false); nextStep.s...
public void onDateSet(android.widget.DatePicker view, int set_year, int set_month, int set_day) { month = set_month; day = set_day; year = set_year; date_button.setText((((((java.lang.String.valueOf(month)) + "/") + (java.lang.String.valueOf(day))) + "/") + (java.lang.String.valueOf(year)))); }
public void onDateSet(android.widget.DatePicker view, int set_year, int set_month, int set_day) { month = set_month; day = set_day; year = set_year; date_button.setText((((((java.lang.String.valueOf(((month) + 1))) + "/") + (java.lang.String.valueOf(day))) + "/") + (java.lang.String.valueOf(year)))); }
synchronized simpledb.buffer.Buffer pinNew(java.lang.String filename, simpledb.buffer.PageFormatter fmtr) { simpledb.buffer.Buffer buff = chooseUnpinnedBuffer(); java.lang.System.out.println("pinNew"); if (buff == null) return null; if ((buff.block()) != null) { bufferPoolMap.remove...
synchronized simpledb.buffer.Buffer pinNew(java.lang.String filename, simpledb.buffer.PageFormatter fmtr) { simpledb.buffer.Buffer buff = chooseUnpinnedBuffer(); if (buff == null) return null; if ((buff.block()) != null) { bufferPoolMap.remove(buff.block()); } buff.assignToNew(f...
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) { try { if (!(fileName.isEmpty())) { javax.sound.sampled.Clip clip = javax.sound.sampled.AudioSystem.getClip(); clip.open(javax.sound.sampled.AudioSystem.getAudioInputStream(new java.io.File(fileName))); ...
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) { try { if ((fileName) != null) { javax.sound.sampled.Clip clip = javax.sound.sampled.AudioSystem.getClip(); clip.open(javax.sound.sampled.AudioSystem.getAudioInputStream(new java.io.File(fileName))); cli...
private void initAccountTestData() throws java.lang.Exception { accountSolrServer.add(createAccount("1111", "JOHN1", "Fred Jones"), 0); accountSolrServer.add(createAccount("2222", "JOHN2", "John Jillian"), 0); accountSolrServer.add(createAccount("3333", "JOHN3", "Euan Jakes"), 0); accountSolrServer.add(...
private void initAccountTestData() throws java.lang.Exception { accountSolrServer.add(createAccount("1111", "JOHN1", "Fred Jones"), 0); accountSolrServer.add(createAccount("2222", "JOHN2", "John Jillian"), 0); accountSolrServer.commit(true, true); }
public void create(java.io.OutputStream oStream, java.util.Map<java.lang.String, java.io.InputStream> linkedWorkbooks, java.util.Map<java.lang.String, java.lang.String> linkedWorkbooksPasswords) throws org.zuinnote.hadoop.office.format.common.writer.OfficeWriterException { if ((this.currentOfficeSpreadSheetWriter) ...
public void create(java.io.OutputStream oStream, java.util.Map<java.lang.String, java.io.InputStream> linkedWorkbooks, java.util.Map<java.lang.String, java.lang.String> linkedWorkbooksPasswords) throws org.zuinnote.hadoop.office.format.common.writer.OfficeWriterException { this.oStream = oStream; if ((this.curr...
public java.lang.String[] getValues(@android.support.annotation.NonNull java.lang.String name, @android.support.annotation.NonNull java.lang.String key, @android.support.annotation.Nullable java.lang.String[] defValue) { java.lang.String[] value = defValue; com.tomclaw.minion.IniGroup group = getOrCreateGroup(n...
public java.lang.String[] getValues(@android.support.annotation.NonNull java.lang.String name, @android.support.annotation.NonNull java.lang.String key, @android.support.annotation.Nullable java.lang.String[] defValue) { java.lang.String[] value = defValue; com.tomclaw.minion.IniGroup group = getOrCreateGroup(n...
protected cpu.disassembler.Instruction uncheckedDecodeInstruction(util.ByteScanner scanner) { byte command = scanner.readByte(); short addr = ((short) (65280 + (scanner.readByte()))); cpu.disassembler.SettableValueContainer<java.lang.Byte> container = new cpu.disassembler.BytePointer(addr); return (comm...
protected cpu.disassembler.Instruction uncheckedDecodeInstruction(util.ByteScanner scanner) { byte command = scanner.readByte(); short addr = ((short) (65280 + ((scanner.readByte()) & 255))); cpu.disassembler.SettableValueContainer<java.lang.Byte> container = new cpu.disassembler.BytePointer(addr); retu...
public void consoleWriteInput(final java.lang.String input, java.lang.String console) { if (!(org.rstudio.core.client.StringUtil.isNullOrEmpty(console))) prompt_.setHTML(""); clearPendingInput(); output(input, ((styles_.command()) + (org.rstudio.studio.client.common.shell.ShellWidget.KEYWORD_CL...
public void consoleWriteInput(final java.lang.String input, java.lang.String console) { if (!(org.rstudio.core.client.StringUtil.isNullOrEmpty(console))) prompt_.setHTML(""); clearPendingInput(); output(input, ((styles_.command()) + (org.rstudio.studio.client.common.shell.ShellWidget.KEYWORD_CL...
public java.util.Collection<org.ndexbio.model.object.network.Namespace> getNamespaces(java.lang.String networkUUID) { java.util.ArrayList<org.ndexbio.model.object.network.Namespace> namespaces = new java.util.ArrayList<>(); com.orientechnologies.orient.core.record.impl.ODocument networkDoc = getNetworkDocByUUID...
public java.util.Collection<org.ndexbio.model.object.network.Namespace> getNamespaces(java.lang.String networkUUID) { java.util.ArrayList<org.ndexbio.model.object.network.Namespace> namespaces = new java.util.ArrayList<>(); com.orientechnologies.orient.core.record.impl.ODocument networkDoc = getNetworkDocByUUID...
public void onCambioProvincia() { localidad = provincia; if (((provincia) != null) && (!(provincia.equals("")))) { localidades = provinciaGetLocalidades(provincia); }else { localidades = new java.util.ArrayList<>(); } }
public void onCambioProvincia() { if (((provincia) != null) && (!(provincia.equals("")))) { localidades = provinciaGetLocalidades(provincia); }else { localidades = new java.util.ArrayList<>(); } }
public java.lang.Object askResumeFlag(@org.springframework.web.bind.annotation.RequestParam(value = "spaceUserID", required = false) java.lang.Integer spaceUserID, @org.springframework.web.bind.annotation.RequestParam(value = "askUserID", required = false) java.lang.Integer askUserID) throws java.io.UnsupportedEncoding...
public java.lang.Object askResumeFlag(@org.springframework.web.bind.annotation.RequestParam(value = "spaceUserID", required = false) java.lang.Integer spaceUserID, @org.springframework.web.bind.annotation.RequestParam(value = "askUserID", required = false) java.lang.Integer askUserID) throws java.io.UnsupportedEncoding...
public org.springframework.web.servlet.ModelAndView displayDiagMedicineByCase() { org.springframework.web.servlet.ModelAndView mv = new org.springframework.web.servlet.ModelAndView("casePredictMedicine"); java.util.List<java.lang.String> batchList = com.um.util.DiagMedicineProcess.getBatch(); java.util.List...
public org.springframework.web.servlet.ModelAndView displayDiagMedicineByCase() { org.springframework.web.servlet.ModelAndView mv = new org.springframework.web.servlet.ModelAndView("casePredictMedicine"); java.util.List<java.lang.String> batchList = com.um.util.DiagMedicineProcess.getBatch(); int allcount =...
int myScheduledTurn; synchronized(this) { myScheduledTurn = schedule; (schedule)++; } while (((numWriters) > 0) || (myScheduledTurn < (turn))) { try { wait(); } catch (java.lang.InterruptedException exc) { java.lang.System.out.println(("Exception: ...
int myScheduledTurn; synchronized(this) { myScheduledTurn = schedule; (schedule)++; } while (((numWriters) > 0) || (myScheduledTurn < (turn))) { try { wait(); } catch (java.lang.InterruptedException exc) { java.lang.System.out.println(("Exception: ...
public com.example.android.popularmovies.Review createFromParcel(android.os.Parcel source) { android.os.Bundle bundle = source.readBundle(); com.example.android.popularmovies.Review _review = new com.example.android.popularmovies.Review(bundle.getString(com.example.android.popularmovies.Review.KEY_ID), bundle.g...
public com.example.android.popularmovies.Review createFromParcel(android.os.Parcel source) { android.os.Bundle bundle = source.readBundle(); return new com.example.android.popularmovies.Review(bundle.getString(com.example.android.popularmovies.Review.KEY_ID), bundle.getString(com.example.android.popularmovies.R...
public java.util.Date getItemDate(int postId) { if ((posts.get(postId)) == null) { return null; } java.util.Date d = posts.get(postId).date; if (d != null) { return d; }else { return null; } }
public java.util.Date getItemDate(int postId) { if ((posts.get(postId)) == null) { return new java.util.Date(0); } java.util.Date d = posts.get(postId).date; if (d != null) { return d; }else { return new java.util.Date(0); } }
public void attachChampions(java.util.List<pl.patrykzygo.pocketleague.pojo.ChampionDto> champions) { this.champions = champions; adapter.setChampions(champions); adapter.setOnChampionClickListener(this); championsRecyclerView.setAdapter(adapter); championsRecyclerView.addItemDecoration(new android.s...
public void attachChampions(java.util.List<pl.patrykzygo.pocketleague.pojo.ChampionDto> champions) { adapter.setChampions(champions); adapter.setOnChampionClickListener(this); championsRecyclerView.setAdapter(adapter); championsRecyclerView.addItemDecoration(new android.support.v7.widget.DividerItemDeco...
public java.lang.String getStringValue() throws au.edu.jcu.v4l4j.exceptions.ControlException, au.edu.jcu.v4l4j.exceptions.StateException, au.edu.jcu.v4l4j.exceptions.UnsupportedMethod { java.lang.String v; if ((type) != (V4L4JConstants.CTRL_TYPE_STRING)) throw new au.edu.jcu.v4l4j.exceptions.Unsupported...
public java.lang.String getStringValue() throws au.edu.jcu.v4l4j.exceptions.ControlException, au.edu.jcu.v4l4j.exceptions.StateException, au.edu.jcu.v4l4j.exceptions.UnsupportedMethod { if ((type) != (V4L4JConstants.CTRL_TYPE_STRING)) throw new au.edu.jcu.v4l4j.exceptions.UnsupportedMethod("This control is ...
private void moveToClosestTreasure(pirates.game.PirateGame game, pirates.game.Pirate p) { if ((availableTreasures.size()) == 0) return ; pirates.game.Treasure nearestTreasure = availableTreasures.get(0); for (pirates.game.Treasure t : availableTreasures) { if ((game.distance(p, t)) < (g...
private void moveToClosestTreasure(pirates.game.PirateGame game, pirates.game.Pirate p) { pirates.game.Treasure nearestTreasure = availableTreasures.get(0); for (pirates.game.Treasure t : availableTreasures) { if ((game.distance(p, t)) < (game.distance(p, nearestTreasure))) nearestTreasure =...
private void subSetup() { renameItem = new javax.swing.JMenuItem("Rename..."); shiftItem = new javax.swing.JMenuItem("Shift..."); editSetup(); renameItem.addActionListener(fruitListener); shiftItem.addActionListener(fruitListener); renameItem.setName("rename"); shiftItem.setName("shift"); ...
private void subSetup() { renameItem = new javax.swing.JMenuItem("Rename..."); shiftItem = new javax.swing.JMenuItem("Shift..."); editSetup(); renameItem.addActionListener(this); shiftItem.addActionListener(this); renameItem.setName("rename"); shiftItem.setName("shift"); fruitEditor.putC...
public io.resource.DataPackage getPackageForResource(core.world.WorldResource resource) { if (resource == null) { return null; } final java.lang.String packageID = resource.getPackageId(); final io.resource.DataPackage[] plugins = getDataPackages(); for (int i = 0; i < (plugins.length); i++)...
public io.resource.DataPackage getPackageForResource(core.world.WorldResource resource) { if (resource == null) { return null; } final java.lang.String packageID = resource.getPackageId(); final io.resource.DataPackage[] plugins = getDataPackages(); for (io.resource.DataPackage pack : plugin...
public <K1 extends K, V1 extends V> com.codelanx.codelanxlib.util.cache.ExpiringMap.Builder<K1, V1> onExpiry(java.util.function.Consumer<? extends com.codelanx.codelanxlib.util.cache.ExpiringMap.ExpiringEntry<? super K, ? super V>> expired) { this.onExpire = expired; return ((com.codelanx.codelanxlib.util.cache...
public <K1 extends K, V1 extends V> com.codelanx.codelanxlib.util.cache.ExpiringMap.Builder<K1, V1> onExpiry(java.util.function.Consumer<? extends com.codelanx.codelanxlib.util.cache.ExpiringMap.ExpiringEntry<? super K, ? super V>> expired) { return ((com.codelanx.codelanxlib.util.cache.ExpiringMap.Builder<K1, V1>)...
public void onPageFinished(final android.webkit.WebView view, java.lang.String url) { if ((hasLoadedWebview) == 1) return ; hasLoadedWebview = 1; webFrame.addView(webView); android.widget.FrameLayout.LayoutParams params = new android.widget.FrameLayout.LayoutParams(ViewGroup.LayoutParams.MA...
public void onPageFinished(final android.webkit.WebView view, java.lang.String url) { if ((hasLoadedWebview) == 1) return ; hasLoadedWebview = 1; webFrame.addView(webView); android.widget.FrameLayout.LayoutParams params = new android.widget.FrameLayout.LayoutParams(ViewGroup.LayoutParams.MA...
private static void getCaptureRate(org.jsoup.nodes.Document doc, io.github.endreman0.javajson.nodes.ObjectNode data) { io.github.endreman0.pokedex.io.WebIO.logger.entry(doc, data); data.put("captureRate", num(java.lang.Integer.parseInt(doc.getElementsByClass("dextable").first().child(0).child(3).child(3).text()...
private static int getCaptureRate(org.jsoup.nodes.Document doc) { io.github.endreman0.pokedex.io.WebIO.logger.entry(doc); return io.github.endreman0.pokedex.io.WebIO.logger.exit(java.lang.Integer.parseInt(doc.getElementsByClass("dextable").first().child(0).child(3).child(3).text())); }
public java.util.List<edu.nju.logic.vo.QuestionVO> getQuestionByName(java.lang.String name) { java.util.List<edu.nju.data.entity.Question> questions = questionDAO.getQuestionByUsername(name); java.util.List<edu.nju.logic.vo.QuestionVO> questionVOs = new java.util.ArrayList(questions.size()); for (edu.nju.da...
public java.util.List<edu.nju.logic.vo.QuestionVO> getQuestionByName(java.lang.String name) { java.util.List<edu.nju.data.entity.Question> questions = questionDAO.getQuestionByUsername(name); java.util.List<edu.nju.logic.vo.QuestionVO> questionVOs = new java.util.ArrayList<>(); for (edu.nju.data.entity.Ques...
public ru.nekit.android.nowapp.model.vo.Event getEventById(int id) { ru.nekit.android.nowapp.model.vo.Event result = null; for (int i = 0; (i < (mEvents.size())) && (result == null); i++) { ru.nekit.android.nowapp.model.vo.Event event = mEvents.get(i); if ((event.id) == id) { result ...
private ru.nekit.android.nowapp.model.vo.Event getEventById(int id) { ru.nekit.android.nowapp.model.vo.Event result = null; for (int i = 0; (i < (mEvents.size())) && (result == null); i++) { ru.nekit.android.nowapp.model.vo.Event event = mEvents.get(i); if ((event.id) == id) { result...
public boolean equals(java.lang.Object obj) { if (obj == null) { return false; } if (!(obj instanceof org.datacleaner.reference.AbstractReferenceData)) { return false; } final org.datacleaner.reference.AbstractReferenceData other = ((org.datacleaner.reference.AbstractReferenceData) (...
public boolean equals(java.lang.Object obj) { if (obj == null) { return false; } if (!(getClass().equals(obj.getClass()))) { return false; } final org.datacleaner.reference.AbstractReferenceData other = ((org.datacleaner.reference.AbstractReferenceData) (obj)); return (java.util....
public boolean eval(org.ovirt.engine.core.common.businessentities.VDS p) { return ((((p.getUsageCpuPercent()) + (calcSpmCpuConsumption(p))) < lowUtilization) && ((p.getVmCount()) >= minVmCount)) && (((p.getCpuOverCommitTimestamp()) == null) || (((getTime().getTime()) - (p.getCpuOverCommitTimestamp().getTime())) < (...
public boolean eval(org.ovirt.engine.core.common.businessentities.VDS p) { return ((((p.getUsageCpuPercent()) + (calcSpmCpuConsumption(p))) < lowUtilization) && ((p.getVmCount()) >= minVmCount)) && (((p.getCpuOverCommitTimestamp()) == null) || (((getTime().getTime()) - (p.getCpuOverCommitTimestamp().getTime())) >= ...
public void testSentenceWithCommas() throws cc.redpen.RedPenException { cc.redpen.model.Document document = prepareSimpleDocument("There is no real path, so first follow the line of the foot of the rocks past Kawa, then cut straight up to the next level of slabs."); cc.redpen.RedPen redPen = new cc.redpen.RedPe...
public void testSentenceWithCommas() throws cc.redpen.RedPenException { cc.redpen.model.Document document = prepareSimpleDocument("There is no real path, so first follow the line of the foot of the rocks past Kawa, then cut straight up to the next level of slabs."); cc.redpen.RedPen redPen = new cc.redpen.RedPe...
private void sendMessage(com.treeter_client.MessageRequest msg) throws java.io.IOException, java.security.GeneralSecurityException { java.lang.String message = msg.serialize(); byte[] buffer; if (cryptoEnabled.get()) buffer = cryptoProvider.encryptMessage(message); else buffer = message....
private void sendMessage(com.treeter_client.MessageRequest msg) throws java.io.IOException, java.security.GeneralSecurityException { java.lang.String message = msg.serialize(); byte[] buffer; if (cryptoEnabled) buffer = cryptoProvider.encryptMessage(message); else buffer = message.getByt...
public void process(java.lang.String json) { com.guhanjie.weixin.model.WeixinMedia t = com.alibaba.fastjson.JSONObject.parseObject(json, com.guhanjie.weixin.model.WeixinMedia.class); if (t != null) { wm.setMedia_id(t.getMedia_id()); com.guhanjie.weixin.media.MediaKit.LOGGER.info("Success to post...
public void process(java.lang.String json) { com.guhanjie.weixin.model.WeixinMedia t = com.alibaba.fastjson.JSONObject.parseObject(json, com.guhanjie.weixin.model.WeixinMedia.class); if ((t != null) && ((t.getMedia_id()) != null)) { wm.setMedia_id(t.getMedia_id()); com.guhanjie.weixin.media.Medi...
public void updateSyntax(final org.eclipse.titan.designer.parsers.ttcn3parser.TTCN3ReparseUpdater reparser, final boolean isDamaged) throws org.eclipse.titan.designer.parsers.ttcn3parser.ReParseException { if (isDamaged) { throw new org.eclipse.titan.designer.parsers.ttcn3parser.ReParseException(); } ...
public void updateSyntax(final org.eclipse.titan.designer.parsers.ttcn3parser.TTCN3ReparseUpdater reparser, final boolean isDamaged) throws org.eclipse.titan.designer.parsers.ttcn3parser.ReParseException { if (isDamaged) { throw new org.eclipse.titan.designer.parsers.ttcn3parser.ReParseException(); } ...
public java.awt.Point getXandY() { java.lang.System.out.println("What x coordinate?"); x = playerInput.HumanInput.replaceLaterScanner.nextInt(); java.lang.System.out.println("What y coordinate?"); y = playerInput.HumanInput.replaceLaterScanner.nextInt(); java.lang.System.out.println(((printCoords())...
public java.awt.Point getXandY() { java.lang.System.out.println("What x coordinate?"); x = playerInput.HumanInput.replaceLaterScanner.nextInt(); java.lang.System.out.println("What y coordinate?"); y = playerInput.HumanInput.replaceLaterScanner.nextInt(); java.awt.Point xAndy = new java.awt.Point(x, ...
protected boolean setFreq(int sampleRate) throws info.plux.pluxapi.bitalino.bth.BITalinoException { info.plux.pluxapi.CommandArguments commandArguments = new info.plux.pluxapi.CommandArguments(); commandArguments.setSampleRate(validateSampleRate(1000)); byte[] command = BITalino.SET_FREQ.getCommand(commandA...
protected boolean setFreq(int sampleRate) throws info.plux.pluxapi.bitalino.bth.BITalinoException { info.plux.pluxapi.CommandArguments commandArguments = new info.plux.pluxapi.CommandArguments(); commandArguments.setSampleRate(validateSampleRate(sampleRate)); byte[] command = BITalino.SET_FREQ.getCommand(co...
public void onRegister(final android.content.Context context, final java.lang.String pushid) { com.jiang.android.push.utils.L.i(("onRegister called pushId: " + pushid)); if ((com.jiang.android.push.flyme.FlymeReceiver.mPushInterface) != null) { com.jiang.android.push.utils.JHandler.handler().post(new ja...
public void onRegister(final android.content.Context context, final java.lang.String pushid) { com.jiang.android.push.utils.L.i(("onRegister called pushId: " + pushid)); if ((com.jiang.android.push.flyme.FlymeReceiver.mPushInterface) != null) { com.jiang.android.push.utils.JHandler.handler().post(new ja...
public void onClickAir(android.view.View v) { if ((mBluetoothLeService) != null) { chx_plot_conti = CH0_PLOT_CONTI; if (!(saved_air_plot_list.isEmpty())) { series0.setColor(Color.WHITE); autoZoom(graph, saved_air_plot_list, X_axies); resetPlot(); displ...
public void onClickAir(android.view.View v) { if ((mBluetoothLeService) != null) { chx_plot_conti = CH0_PLOT_CONTI; if (!(saved_air_plot_list.isEmpty())) { series0.setColor(Color.WHITE); resetPlot(); displaySavedData(saved_air_plot_list); X_axies = cur...
public static void deleteCatalog(long id) throws exceptions.EntityCanNotBeDeleted, exceptions.EntityNotFoundException { if (id != 6000) { logics.template.Catalog catalog = logics.template.Catalog.catalogDAO.readById(id); for (models.template.CatalogQA catalogQA : catalog.getTemplates()) { ...
public static void deleteCatalog(long id) throws exceptions.EntityCanNotBeDeleted, exceptions.EntityNotFoundException { if (id != (-6000)) { logics.template.Catalog catalog = logics.template.Catalog.catalogDAO.readById(id); for (models.template.CatalogQA catalogQA : catalog.getTemplates()) { ...
public static void main(java.lang.String[] args) { java.lang.System.out.println(codingChallenge.bit.setBit(9)); java.lang.System.out.println(codingChallenge.bit.setbit(9)); java.lang.System.out.println(codingChallenge.bit.revBit(10)); java.lang.System.out.println(codingChallenge.bit.msb(50)); }
public static void main(java.lang.String[] args) { java.lang.System.out.println(codingChallenge.bit.setBit(9)); java.lang.System.out.println(codingChallenge.bit.setbit(9)); java.lang.System.out.println(codingChallenge.bit.revBit(1)); java.lang.System.out.println(codingChallenge.bit.msb(1)); }
public void onLocationChanged(android.location.Location location) { currentLocation = location; android.widget.TextView txtPrecision = ((android.widget.TextView) (this.getView().findViewById(R.id.txtPrecision))); if (txtPrecision != null) { txtPrecision.setText(java.lang.Float.toString(location.getA...
public void onLocationChanged(android.location.Location location) { currentLocation = location; android.widget.TextView txtPrecision = ((android.widget.TextView) (this.getView().findViewById(R.id.txtPrecision))); if ((txtPrecision != null) && (location != null)) { txtPrecision.setText(java.lang.Floa...
public static java.util.List<java.lang.String> stripRPTargetFromReplicationGroup(java.util.Collection<java.lang.String> groups) { java.util.List<java.lang.String> stripped = new java.util.ArrayList<java.lang.String>(); for (java.lang.String group : groups) { stripped.add(com.emc.sa.service.vipr.block.Bl...
public static java.util.Set<java.lang.String> stripRPTargetFromReplicationGroup(java.util.Collection<java.lang.String> groups) { java.util.Set<java.lang.String> stripped = new java.util.HashSet<java.lang.String>(); for (java.lang.String group : groups) { stripped.add(com.emc.sa.service.vipr.block.BlockS...
public void write(java.io.PrintWriter out) throws java.lang.Exception { out.printf("[Predictor: %s]\n", this.getClass().getCanonicalName()); out.println(("Bagging: " + (groves.size()))); for (mltk.predictor.tree.RegressionTree[] grove : groves) { out.println(("Size: " + (grove.length))); for...
public void write(java.io.PrintWriter out) throws java.lang.Exception { out.printf("[Predictor: %s]\n", this.getClass().getCanonicalName()); out.println(("Bagging: " + (groves.size()))); for (mltk.predictor.tree.RegressionTree[] grove : groves) { out.println(("Size: " + (grove.length))); for...
public void changeUserStatus(@lombok.NonNull final hu.schonherz.project.admin.service.api.vo.UserVo userVo) { userServiceRemote.changeStatus(userVo.getId()); init(); java.lang.String detailedMessage = (userVo.isActive()) ? localeManager.localize(hu.schonherz.project.admin.web.view.UsersView.INACTIVATE_SUCCE...
public void changeUserStatus(@lombok.NonNull final hu.schonherz.project.admin.service.api.vo.UserVo userVo) { userServiceRemote.changeStatus(userVo.getId()); init(); java.lang.String detailedMessage = (userVo.isActive()) ? localeManager.localize(hu.schonherz.project.admin.web.view.UsersView.INACTIVATE_SUCCE...
private void startTour(java.lang.String transportMode, java.lang.String type) { if (((tourService) != null) && (!(tourService.isRunning()))) { color = getTrackColor(true, type, new java.util.Date()); tourService.beginTreatment(transportMode, type); } }
private void startTour(java.lang.String transportMode, java.lang.String type) { if (((tourService) != null) && (!(tourService.isRunning()))) { color = getTrackColor(false, type, new java.util.Date()); tourService.beginTreatment(transportMode, type); } }
public boolean onOptionsItemSelected(android.view.MenuItem item) { switch (item.getItemId()) { case android.R.id.home : discardChanges(); onBackPressed(); return false; case R.id.action_done : validator.validate(); return false; cas...
public boolean onOptionsItemSelected(android.view.MenuItem item) { switch (item.getItemId()) { case android.R.id.home : onBackPressed(); return false; case R.id.action_done : validator.validate(); return false; case R.id.action_reserve : ...
public void test_clean_all() throws java.lang.Exception { java.io.File tempFolder = temp.newFolder(); org.mockito.Mockito.when(serverFileSystem.getTempDir()).thenReturn(tempFolder); java.io.File cacheLocation = dryRunCache.getCacheLocation(null); org.apache.commons.io.FileUtils.forceMkdir(cacheLocation)...
public void test_clean_all() throws java.lang.Exception { java.io.File tempFolder = temp.newFolder(); when(serverFileSystem.getTempDir()).thenReturn(tempFolder); java.io.File cacheLocation = dryRunCache.getCacheLocation(null); org.apache.commons.io.FileUtils.forceMkdir(cacheLocation); dryRunCache.cl...
protected void onPause() { super.onPause(); if (((checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)) == (android.content.pm.PackageManager.PERMISSION_GRANTED)) && ((checkSelfPermission(Manifest.permission.CAMERA)) == (android.content.pm.PackageManager.PERMISSION_GRANTED))) { if (mLocationMan...
protected void onPause() { super.onPause(); if (((checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)) == (android.content.pm.PackageManager.PERMISSION_GRANTED)) && ((checkSelfPermission(Manifest.permission.CAMERA)) == (android.content.pm.PackageManager.PERMISSION_GRANTED))) { if ((mLocationMa...
private void outputError() { outputUtils.outputError(simpleDBUtils, ErrorCode.US01); outputUtils.outputError(simpleDBUtils, ErrorCode.US02); outputUtils.outputError(simpleDBUtils, ErrorCode.US03); outputUtils.outputError(simpleDBUtils, ErrorCode.US04); outputUtils.outputError(simpleDBUtils, ErrorCod...
private void outputError() { outputUtils.outputError(simpleDBUtils, ErrorCode.US01); outputUtils.outputError(simpleDBUtils, ErrorCode.US02); outputUtils.outputError(simpleDBUtils, ErrorCode.US03); outputUtils.outputError(simpleDBUtils, ErrorCode.US04); outputUtils.outputError(simpleDBUtils, ErrorCod...
private void initializeTabs() { javafx.scene.control.Tab mainViewTab = new javafx.scene.control.Tab("Main View"); javafx.scene.control.Tab wonderViewTab = new javafx.scene.control.Tab("Wonder View"); mainViewTab.setDisable(true); mainViewTab.setContent(getMainView()); wonderViewTab.setContent(getWon...
private void initializeTabs() { javafx.scene.control.Tab mainViewTab = new javafx.scene.control.Tab("Main View"); javafx.scene.control.Tab wonderViewTab = new javafx.scene.control.Tab("Wonder View"); wonderViewTab.setDisable(true); mainViewTab.setContent(getMainView()); wonderViewTab.setContent(getW...
private void appendOpenUps(java.lang.StringBuffer sb, int pc) { for (int j = 0; j < (prototype.maxstacksize); j++) { org.luaj.vm2.luajc.VarInfo v = (pc < 0) ? params[j] : vars[j][pc]; if (((v != null) && ((v.pc) == pc)) && (v.allocupvalue)) { sb.append(((" open: " + (v.upvalue)) + "\n...
private void appendOpenUps(java.lang.StringBuffer sb, int pc) { for (int j = 0; j < (prototype.maxstacksize); j++) { org.luaj.vm2.luajc.VarInfo v = (pc < 0) ? params[j] : vars[j][pc]; if (((v != null) && ((v.pc) == pc)) && (v.allocupvalue)) { sb.append(" open: ").append(v.upvalue).app...
public void testAppProj() { com.jetbrains.jetpad.vclang.term.context.param.DependentLink x = param("x", Nat()); com.jetbrains.jetpad.vclang.term.expr.Expression expr = Apps(Proj(Tuple(Sigma(params(param(Pi(param(Nat()), Nat())), param(Lam(x, Reference(x)))))), 0), Zero()); org.junit.Assert.assertEquals(Zero...
public void testAppProj() { com.jetbrains.jetpad.vclang.term.context.param.DependentLink x = param("x", Nat()); com.jetbrains.jetpad.vclang.term.expr.Expression expr = Apps(Proj(Tuple(Sigma(param(Pi(param(Nat()), Nat()))), Lam(x, Reference(x))), 0), Zero()); org.junit.Assert.assertEquals(Zero(), expr.normal...
public com.groupeseb.ofs.core.model.program.Program createProgram(com.groupeseb.mediaimport.model.ProgramDTO dto) throws java.io.IOException { com.groupeseb.ofs.core.model.program.Program program = dcp.getProgram(dto.getKey()); if ((program.getExtraDataFile()) != null) { program.setExtraDataFile(mediaRe...
public com.groupeseb.ofs.core.model.program.Program createProgram(com.groupeseb.mediaimport.model.ProgramDTO dto) throws java.io.IOException { com.groupeseb.ofs.core.model.program.Program program = dcp.getProgram(dto.getKey()); if ((dto.getExtraData()) != null) { program.setExtraDataFile(mediaReader.cre...
public void all_returnsAllInstancesOfClient_true() { Client firstClient = new Client("Client1"); firstClient.save(); Client secondClient = new Client("Client2"); secondClient.save(); assertEquals(true, Client.all().get(0).contains(firstClient)); assertEquals(true, Client.all().get(1).contains(se...
public void all_returnsAllInstancesOfClient_true() { Client firstClient = new Client("Client1"); firstClient.save(); Client secondClient = new Client("Client2"); secondClient.save(); assertEquals(true, Client.all().get(0).equals(firstClient)); assertEquals(true, Client.all().get(1).equals(second...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { android.util.Log.d("onCreateView", category); android.view.View view = inflater.inflate(R.layout.fragment_gallery, container, false); butterknife.ButterKnife....
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { android.util.Log.i("onCreateView", category); android.view.View view = inflater.inflate(R.layout.fragment_gallery, container, false); butterknife.ButterKnife....
public void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { if (requestCode == 1) { java.lang.String filter = data.getStringExtra("filter"); java.lang.String search = data.getStringExtra("search"); filterActive = filter; searchActive = search; } }
public void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { if (requestCode == 1) { if (data != null) { java.lang.String filter = data.getStringExtra("filter"); java.lang.String search = data.getStringExtra("search"); filterActive = filter...
public boolean canPlayerBuyRoute(int playerID, model.CityToCityRoute route, java.util.Map<model.TrackColor, java.lang.Integer> cards) { if (!(gameBoard.isRouteAvailable(route))) { return false; } if (!(playerManager.canBuyTrack(playerID, route.getNumTrains()))) { return false; } if (...
public boolean canPlayerBuyRoute(int playerID, model.CityToCityRoute route, java.util.Map<model.TrackColor, java.lang.Integer> cards) { if (!(gameBoard.isRouteAvailable(route))) { return false; } if (playerManager.canBuyTrackWithCards(playerID, route.getNumTrains(), route.getTrackColor(), cards)) { ...
public void actionPerformed(java.awt.event.ActionEvent arg0) { dk.gruppe5.model.Values_cam.setCanTres2(1000); frame.removeAll(); frame.validate(); frame.setVisible(false); dk.gruppe5.model.Values_cam.setCanTres1(50); dk.gruppe5.model.Values_cam.setCanTres2(100); dk.gruppe5.model.Values_cam.s...
public void actionPerformed(java.awt.event.ActionEvent arg0) { dk.gruppe5.model.Values_cam.setCanTres2(1000); frame.removeAll(); frame.validate(); frame.setVisible(false); dk.gruppe5.model.Values_cam.setCanTres1(50); dk.gruppe5.model.Values_cam.setCanTres2(100); dk.gruppe5.model.Values_cam.s...
public void finish() { board.thread.stop(); this.time.stop(); int levelScore = java.lang.Math.max(0, ((1500 - (GameComponents.Game.count)) - (2 * (((GameComponents.Game.min) * 60) + (GameComponents.Game.sec))))); GameComponents.Game.deadBricks = 0; GameComponents.Game.count = 0; GameComponents.G...
public void finish() { board.thread.stop(); board.thread = null; this.time.stop(); int levelScore = java.lang.Math.max(0, ((1500 - (GameComponents.Game.count)) - (2 * (((GameComponents.Game.min) * 60) + (GameComponents.Game.sec))))); GameComponents.Game.deadBricks = 0; GameComponents.Game.count ...
public java.util.List<com.trinet.aboutme.beans.Address> maintaniAddress(com.trinet.aboutme.dtos.AddressDTO addressDTO) { java.util.List<com.trinet.aboutme.beans.Address> addressList = getAddressByAddressId(addressDTO.getAddressID()); com.trinet.aboutme.beans.Address address = new com.trinet.aboutme.beans.Addres...
public java.util.List<com.trinet.aboutme.beans.Address> maintaniAddress(com.trinet.aboutme.dtos.AddressDTO addressDTO) { java.util.List<com.trinet.aboutme.beans.Address> addressList = getAddressByAddressId(addressDTO.getAddressID()); com.trinet.aboutme.beans.Address address = new com.trinet.aboutme.beans.Addres...
public void colors(@org.springframework.web.bind.annotation.RequestParam java.lang.String color1, @org.springframework.web.bind.annotation.RequestParam java.lang.String color2) { java.util.List<java.lang.String> ls = new java.util.ArrayList<>(); ls.add(color1); ls.add(color2); io.mlh.objects.Metadata md...
public void colors(@org.springframework.web.bind.annotation.RequestParam java.lang.String color1, @org.springframework.web.bind.annotation.RequestParam java.lang.String color2) { java.util.List<java.lang.String> ls = new java.util.ArrayList<>(); ls.add(color1); ls.add(color2); io.mlh.objects.Metadata md...
public static int getConvertedAsciiValue(java.lang.Integer digits, short baseNumber) { java.util.List<java.lang.Integer> convertIntegerToDigits = com.sample.util.Util.splitIntegerToSingleDigits(digits); java.lang.Integer asciiValue = 0; for (int i = 0; i < (convertIntegerToDigits.size()); i++) { asc...
public static int getConvertedAsciiValue(java.lang.String digits, short baseNumber) { java.util.List<java.lang.Integer> convertIntegerToDigits = com.sample.util.Util.splitIntegerToSingleDigits(digits); java.lang.Integer asciiValue = 0; for (int i = 0; i < (convertIntegerToDigits.size()); i++) { asci...
public void start() { tempGrabber = new ro.videanuadrian.smartHome.services.impl.TemperatureGrabber(); tempGrabber.addObserver(dbTempLoggerListener); tempGrabThread = new java.lang.Thread(tempGrabber); ro.videanuadrian.smartHome.services.listeners.impl.InitService.logger.info("**************************...
public void start() { tempGrabber = new ro.videanuadrian.smartHome.services.impl.TemperatureGrabber(); tempGrabber.addObserver(dbTempLoggerListener); tempGrabThread = new java.lang.Thread(tempGrabber); ro.videanuadrian.smartHome.services.listeners.impl.InitService.logger.info("**************************...
private int calculateHP() { return (((((atk) & 1) << 3) + (((def) & 1) << 2)) + (((spc) & 1) << 1)) + ((spd) & 1); }
private int calculateHP() { return (((((atk) & 1) << 3) + (((def) & 1) << 2)) + (((spd) & 1) << 1)) + ((spc) & 1); }
public void startService(android.view.View view) { myReceiver = new com.example.android.dat_running_app.FreeRunningScreen.MyReceiver(); android.content.IntentFilter intentFilter = new android.content.IntentFilter(); intentFilter.addAction(FreeRunningScreenService.MY_ACTION); registerReceiver(myReceiver,...
public void startService(android.view.View view) { myReceiver = new com.example.android.dat_running_app.FreeRunningScreen.MyReceiver(); android.content.IntentFilter intentFilter = new android.content.IntentFilter(); intentFilter.addAction(FreeRunningScreenService.MY_ACTION); registerReceiver(myReceiver,...
public java.sql.ResultSet getUsers() { try { java.sql.PreparedStatement pstmt = con.prepareStatement("select * from employee"); rs = pstmt.executeQuery(); } catch (java.lang.Exception e) { java.lang.System.out.println(e.getStackTrace()); } finally { try { if ((con...
public java.sql.ResultSet getUsers() { try { java.sql.PreparedStatement pstmt = con.prepareStatement("select * from employee"); rs = pstmt.executeQuery(); } catch (java.lang.Exception e) { java.lang.System.out.println(e.getStackTrace()); } finally { } return rs; }
public void handle(org.spout.api.protocol.Session session, org.spout.api.player.Player player, org.spout.vanilla.protocol.msg.ServerListPingMessage message) { java.lang.System.out.println("Server list ping event"); org.spout.vanilla.event.game.ServerListPingEvent event = new org.spout.vanilla.event.game.ServerL...
public void handle(org.spout.api.protocol.Session session, org.spout.api.player.Player player, org.spout.vanilla.protocol.msg.ServerListPingMessage message) { org.spout.vanilla.event.game.ServerListPingEvent event = new org.spout.vanilla.event.game.ServerListPingEvent(session.getAddress().getAddress(), "Spout Serve...
public simpledb.TupleDesc getTupleDesc(int tableid) throws java.util.NoSuchElementException { int flag = 0; for (int i = 0; i < (cat.size()); i++) { if ((cat.get(i).tableID) == (tableID)) { cat.get(i).td.toString(); flag = 1; } if (flag == 1) break; ...
public simpledb.TupleDesc getTupleDesc(int tableid) throws java.util.NoSuchElementException { int flag = 0; for (int i = 0; i < (cat.size()); i++) { if ((cat.get(i).tableID) == tableid) { cat.get(i).td.toString(); flag = 1; } if (flag == 1) break; ...
public boolean validate() { this.errorMessage = null; javax.servlet.http.HttpServletRequest request = com.services.shared.ServiceManager.getInstance().getSharedResources().getRequest(); java.lang.String paramValue = request.getParameter(this.paramName); if (paramValue == "on") { this.value = tru...
public boolean validate() { this.errorMessage = null; javax.servlet.http.HttpServletRequest request = com.services.shared.ServiceManager.getInstance().getSharedResources().getRequest(); java.lang.String paramValue = request.getParameter(this.paramName); if (paramValue == null) { this.value = fal...
private refactored.Auction chooseAuction(int pickAuc, refactored.DisplayCalendar cal) { refactored.Auction chosenAuc = null; refactored.List<refactored.Auction> upcomingAuc = cal.getUpcomingAuctions(); for (int i = 1; i <= (upcomingAuc.size()); i++) { if (i == pickAuc) { chosenAuc = upco...
private refactored.Auction chooseAuction(int pickAuc, refactored.DisplayCalendar cal) { refactored.Auction chosenAuc = null; java.util.List<refactored.Auction> upcomingAuc = cal.getUpcomingAuctions(); for (int i = 1; i <= (upcomingAuc.size()); i++) { if (i == pickAuc) { chosenAuc = upcom...
public void setComment(java.lang.String comment) { java.lang.String old = this.comment; if (((comment == null) || (comment.isEmpty())) || ((comment.trim().length()) < 1)) { this.comment = null; }else { this.comment = comment; } firePropertyChange("Comment", old, comment); }
public void setComment(java.lang.String comment) { java.lang.String old = this.comment; if ((comment == null) || (comment.trim().isEmpty())) { this.comment = null; }else { this.comment = comment; } firePropertyChange("Comment", old, comment); }
public boolean dockerInit(java.lang.String localpath, java.lang.String dockerpath, java.lang.String name, java.lang.String img) { if ((configuration.Docker.isDockerHere()) && (configuration.Docker.isDockerNameWellWritten(name))) { boolean b = configuration.Docker.launchDockerImage(properties, localpath, doc...
public boolean dockerInit(java.lang.String localpath, java.lang.String dockerpath, java.lang.String name, java.lang.String img) { if ((configuration.Docker.isDockerHere(properties)) && (configuration.Docker.isDockerNameWellWritten(name))) { boolean b = configuration.Docker.launchDockerImage(properties, loca...
public org.apache.poi.openxml4j.util.ZipSecureFile.ThresholdInputStream run() { org.apache.poi.openxml4j.util.ZipSecureFile.ThresholdInputStream newInner = null; try { java.lang.reflect.Field f = java.io.FilterInputStream.class.getDeclaredField("in"); f.setAccessible(true); java.io.Input...
public org.apache.poi.openxml4j.util.ZipSecureFile.ThresholdInputStream run() { try { java.lang.reflect.Field f = java.io.FilterInputStream.class.getDeclaredField("in"); f.setAccessible(true); java.io.InputStream oldInner = ((java.io.InputStream) (f.get(zipIS))); org.apache.poi.openx...
public void startFilling() throws java.lang.InterruptedException { try { lock.lock(); java.lang.System.out.println("Trying to start filling."); while (((numSeededHoles) == 0) || (!(shovelAvailable))) readyToFill.await(); shovelAvailable = false; java.lang...
public void startFilling() throws java.lang.InterruptedException { try { lock.lock(); while (((numSeededHoles) == 0) || (!(shovelAvailable))) readyToFill.await(); shovelAvailable = false; } finally { lock.unlock(); } }
private static final void __printRealQuality(final org.optimizationBenchmarking.utils.document.spec.IMath math, final int qualityModel, final int dataModel) { try (final org.optimizationBenchmarking.utils.document.spec.IMath div = math.div()) { try (final org.optimizationBenchmarking.utils.document.spec.IMa...
private static final void __printRealQuality(final org.optimizationBenchmarking.utils.document.spec.IMath math, final int qualityModel, final int dataModel) { try (final org.optimizationBenchmarking.utils.document.spec.IMath div = math.div()) { try (final org.optimizationBenchmarking.utils.document.spec.IMa...
public static void delMeeting(int roomIndex, int timeIndex) { if (meetingschedulingsystem.MeetingSchedulingSystem.rooms.isEmpty()) { java.lang.System.err.println("No rooms to delete meetings from."); return ; } meetingschedulingsystem.room delRoom = meetingschedulingsystem.MeetingSchedulingS...
public static void delMeeting(int roomIndex, int timeIndex) { if (meetingschedulingsystem.MeetingSchedulingSystem.rooms.isEmpty()) { java.lang.System.err.println("No rooms to delete meetings from."); return ; } meetingschedulingsystem.room delRoom = meetingschedulingsystem.MeetingSchedulingS...
private java.util.Map<java.lang.String, java.lang.String> getAttributes(java.util.Map<java.lang.String, java.lang.Object> node) { java.util.Map<java.lang.String, java.lang.String> attrMap = new java.util.LinkedHashMap<java.lang.String, java.lang.String>(); for (java.lang.String fieldname : node.keySet()) { ...
private java.util.Map<java.lang.String, java.lang.String> getAttributes(java.util.Map<java.lang.String, java.lang.Object> node) { java.util.Map<java.lang.String, java.lang.String> attrMap = new java.util.LinkedHashMap<java.lang.String, java.lang.String>(); if (node != null) { for (java.lang.String field...
public void insert(edu.princeton.cs.algs4.Point2D p) { if (p == null) throw new java.lang.NullPointerException(); if ((mRoot) == null) { mRoot = new KdTree.KdTreeNode(p, KdTree.KdTreeNode.VERTICAL); } mRoot.insert(p); (mSize)++; }
public void insert(edu.princeton.cs.algs4.Point2D p) { if (p == null) throw new java.lang.NullPointerException(); if ((mRoot) == null) { mRoot = new KdTree.KdTreeNode(p, KdTree.KdTreeNode.VERTICAL); }else { mRoot.insert(p); } (mSize)++; }
public void addArtifacts(java.lang.String configuration, java.lang.Iterable<? extends org.gradle.api.artifacts.PublishArtifact> artifacts) { for (org.gradle.api.artifacts.PublishArtifact artifact : artifacts) { org.gradle.internal.component.external.model.MDArtifact ivyArtifact = getOrCreate(org.gradle.inte...
public void addArtifacts(java.lang.String configuration, java.lang.Iterable<? extends org.gradle.api.artifacts.PublishArtifact> artifacts) { for (org.gradle.api.artifacts.PublishArtifact artifact : artifacts) { org.gradle.internal.component.external.model.MDArtifact ivyArtifact = getOrCreate(org.gradle.inte...
public void OnCreate(android.os.Bundle SavedInstanceState) { super.onCreate(SavedInstanceState); setContentView(R.layout.timesetter); done = ((android.widget.Button) (findViewById(R.id.okbtn))); clock = ((android.widget.TimePicker) (findViewById(R.id.timePicker))); done.setOnClickListener(buttonPres...
public void onCreate(android.os.Bundle SavedInstanceState) { super.onCreate(SavedInstanceState); setContentView(R.layout.timesetter); done = ((android.widget.Button) (findViewById(R.id.okbtn))); clock = ((android.widget.TimePicker) (findViewById(R.id.timePicker))); done.setOnClickListener(buttonPres...
protected java.lang.String doInBackground(java.lang.Void... params) { try { java.io.FileOutputStream fos = context.openFileOutput(name, Context.MODE_PRIVATE); fos.write(data); fos.close(); addName(name); } catch (java.io.IOException exc) { throw new java.lang.IllegalState...
protected java.lang.String doInBackground(java.lang.Void... params) { try { java.io.FileOutputStream fos = context.openFileOutput(name, Context.MODE_PRIVATE); fos.write(data); fos.close(); } catch (java.io.IOException exc) { throw new java.lang.IllegalStateException(exc); } ...
private static java.lang.Integer multiplyArrays(java.util.ArrayList<java.lang.Integer> arrayListA, java.util.ArrayList<java.lang.Integer> arrayListB) { nevelev.dima.matrix.MatrixMultiplier.validate(arrayListA, arrayListB); java.lang.Integer result = 0; for (int x = 0; x < (arrayListA.size()); x++) { ...
private static java.lang.Integer multiplyArrays(java.util.ArrayList<java.lang.Integer> arrayListA, java.util.ArrayList<java.lang.Integer> arrayListB) { nevelev.dima.matrix.MatrixMultiplier.validate(arrayListA, arrayListB); java.lang.Integer result = 0; for (int x = 0; x < (arrayListA.size()); x++) { ...
public int createEvent(com.gameofthread.gather.integration.Event event) { com.google.firebase.database.DatabaseReference mDatabase = com.google.firebase.database.FirebaseDatabase.getInstance().getReference("events"); java.lang.String userId = mDatabase.push().getKey(); mDatabase.child(userId).push().setValu...
public int createEvent(com.gameofthread.gather.integration.Event event) { com.google.firebase.database.DatabaseReference mDatabase = com.google.firebase.database.FirebaseDatabase.getInstance().getReference("events"); java.lang.String userId = mDatabase.push().getKey(); mDatabase.push().setValue(event); ...
public lt.tieto.msi2016.user.model.User get(java.lang.Long id) { if ((securityService.getCurrentUser().getId()) != id) { throw new org.springframework.security.access.AccessDeniedException(("Cannot access user data id=" + id)); } lt.tieto.msi2016.user.repository.model.UserDb user = repository.findOn...
public lt.tieto.msi2016.user.model.User get(java.lang.Long id) { lt.tieto.msi2016.user.repository.model.UserDb user = repository.findOne(id); if (user != null) { return lt.tieto.msi2016.user.service.UserService.mapToUser(user); }else { throw new lt.tieto.msi2016.utils.exception.DataNotFoundE...
public boolean containsKey(java.lang.Object arg0) { if (isMapInitialized) { if (topLevelMap.containsKey(arg0)) { return true; } }else { try { if ((this.resourceBundle.getObject(((java.lang.String) (arg0)))) != null) { return true; } ...
public boolean containsKey(java.lang.Object arg0) { if (isMapInitialized) { if (topLevelMap.containsKey(arg0)) { return true; } }else { try { this.resourceBundle.getObject(((java.lang.String) (arg0))); return true; } catch (java.lang.NullPointe...
public static java.lang.String getBaseURL(org.apache.solr.client.solrj.SolrServer solrServer) { org.apache.solr.client.solrj.impl.HttpSolrServer httpSolrServer = (solrServer instanceof org.apache.solr.client.solrj.impl.HttpSolrServer) ? ((org.apache.solr.client.solrj.impl.HttpSolrServer) (solrServer)) : org.mouseph...
public static java.lang.String getBaseURL(org.apache.solr.client.solrj.SolrServer solrServer) { org.apache.solr.client.solrj.impl.HttpSolrServer httpSolrServer = (solrServer instanceof org.apache.solr.client.solrj.impl.HttpSolrServer) ? ((org.apache.solr.client.solrj.impl.HttpSolrServer) (solrServer)) : org.mouseph...
public void onSuccess(final com.google.common.base.Optional<T> result) { cache.add(new org.opendaylight.distributed.tx.spi.CachedData(instanceIdentifier, result.get(), org.opendaylight.yangtools.yang.data.api.ModifyAction.REPLACE)); try { delegate.put(logicalDatastoreType, instanceIdentifier, t); } ...
public void onSuccess(final com.google.common.base.Optional<T> result) { cache.add(new org.opendaylight.distributed.tx.spi.CachedData(instanceIdentifier, result.get(), org.opendaylight.yangtools.yang.data.api.ModifyAction.REPLACE)); try { delegate.put(logicalDatastoreType, instanceIdentifier, t); } ...
protected org.modeldriven.alf.syntax.expressions.impl.ElementReference deriveType() { org.modeldriven.alf.syntax.expressions.impl.ElementReference referent = this.getSelf().getReferent(); if ((referent != null) && (referent.getImpl().isClassifier())) { return referent; }else { return referen...
protected org.modeldriven.alf.syntax.expressions.impl.ElementReference deriveType() { org.modeldriven.alf.syntax.expressions.impl.ElementReference referent = this.getSelf().getReferent(); if ((referent != null) && (referent.getImpl().isClassifier())) { return referent; }else { return referen...
private java.util.List<org.lexevs.dao.index.lucenesupport.LuceneDirectoryFactory.NamedDirectory> getNamedDirectories(org.lexevs.dao.indexer.utility.ConcurrentMetaData metaDirectories) { java.util.List<org.lexevs.dao.index.lucenesupport.LuceneDirectoryFactory.NamedDirectory> directories = new java.util.ArrayList<org...
public static java.util.List<org.lexevs.dao.index.lucenesupport.LuceneDirectoryFactory.NamedDirectory> getNamedDirectories(org.lexevs.dao.indexer.utility.ConcurrentMetaData metaDirectories) { java.util.List<org.lexevs.dao.index.lucenesupport.LuceneDirectoryFactory.NamedDirectory> directories = new java.util.ArrayLi...
public java.lang.String getResultAsString(int timeDuration) { int total = this.userSelection.length; int correct = 0; for (int i = 0; i < total; i++) { if ((userSelection[i]) == (test.getQuestions().get(i).getCorrectAnswer())) { correct++; } } return java.lang.String.form...
public java.lang.String getResultAsString(java.lang.String timeDuration) { int total = this.userSelection.length; int correct = 0; for (int i = 0; i < total; i++) { if ((userSelection[i]) == (test.getQuestions().get(i).getCorrectAnswer())) { correct++; } } return (java.la...
public void parseInline(java.io.InputStream stream, org.apache.tika.sax.XHTMLContentHandler xhtml, org.apache.tika.parser.ParseContext parseContext, org.apache.tika.parser.ocr.TesseractOCRConfig config) throws java.io.IOException, org.apache.tika.exception.TikaException, org.xml.sax.SAXException { if (!(hasTesserac...
public void parseInline(java.io.InputStream stream, org.apache.tika.sax.XHTMLContentHandler xhtml, org.apache.tika.parser.ParseContext parseContext, org.apache.tika.parser.ocr.TesseractOCRConfig config) throws java.io.IOException, org.apache.tika.exception.TikaException, org.xml.sax.SAXException { if (!(hasTesserac...
public void onCreate() { super.onCreate(); android.util.Log.v(codes.simen.calm.SilentService.logTag, "onCreate"); audioManager = ((android.media.AudioManager) (getSystemService(codes.simen.calm.AUDIO_SERVICE))); notificationManager = ((android.app.NotificationManager) (getSystemService(codes.simen.calm....
public void onCreate() { super.onCreate(); audioManager = ((android.media.AudioManager) (getSystemService(codes.simen.calm.AUDIO_SERVICE))); notificationManager = ((android.app.NotificationManager) (getSystemService(codes.simen.calm.NOTIFICATION_SERVICE))); isAlternativeMuting = android.preference.Prefe...
private void clearTable() { while ((dealerCards.pop()) != null); while ((playerCards.pop()) != null); while ((dealerTempCards.pop()) != null); while ((playerTempCards.pop()) != null); }
private void clearTable() { while ((dealerCards.pop()) != null) { assert true; } while ((playerCards.pop()) != null) { assert true; } while ((dealerTempCards.pop()) != null) { assert true; } while ((playerTempCards.pop()) != null) { assert true; } }
private java.lang.String decrypt(java.lang.String s) { try { java.security.Key key = getKey(); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES"); c.init(javax.crypto.Cipher.DECRYPT_MODE, key); java.lang.String temp = new java.lang.String(java.util.Base64.getDecoder().dec...
private java.lang.String decrypt(java.lang.String s) { try { java.security.Key key = getKey(); javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES"); c.init(javax.crypto.Cipher.DECRYPT_MODE, key); byte[] dec = c.doFinal(s.getBytes()); return new java.lang.String(dec)...
public void afterTextChanged(android.text.Editable s) { java.lang.String input = Rollno.getText().toString(); java.lang.String ptr = "((1(4|5|6)MI5((0[1-9])|([1-5][0-9])|60))|(1(4-6)M[1-5]((0[1-9])|([1-5][0-9])|60))|(116((0[1-9])|[1-5][0-9]|60))|(1(5|6)MI4((0[1-9])|([1-5][0-9])|60))|(1[2-6][1-7]((0[1-9])|([1-8]...
public void afterTextChanged(android.text.Editable s) { java.lang.String input = Rollno.getText().toString(); java.lang.String ptr = "((1(4|5|6)MI5((0[1-9])|([1-5][0-9])|60))|(1(4-6)M[1-5]((0[1-9])|([1-5][0-9])|60))|(116((0[1-9])|[1-5][0-9]|60))|(1(5|6)MI4((0[1-9])|([1-5][0-9])|60))|(1[2-6][1-7]((0[1-9])|([1-8]...
private void launchMissile() { if ((this.timeStart) >= (timeEnd)) { java.awt.Point start = getMissileStartingPosition(); com.mygdx.tanks.Missile missile = new com.mygdx.tanks.Missile(tank, tank.getDirection()); missile.x = start.x; missile.y = start.x; board.missilesList.add(...
private void launchMissile() { if ((this.timeStart) >= (timeEnd)) { java.awt.Point start = getMissileStartingPosition(); com.mygdx.tanks.Missile missile = new com.mygdx.tanks.Missile(tank, tank.getDirection()); missile.x = start.x; missile.y = start.y; board.missilesList.add(...
public nl.hnogames.domoticz.Utils.ServerUtil getServerUtil() { android.app.Activity activity = getActivity(); if (activity instanceof nl.hnogames.domoticz.MainActivity) { return ((nl.hnogames.domoticz.MainActivity) (getActivity())).geServerUtil(); }else if (activity instanceof nl.hnogames.do...
public nl.hnogames.domoticz.Utils.ServerUtil getServerUtil() { android.app.Activity activity = getActivity(); if (activity instanceof nl.hnogames.domoticz.MainActivity) { return ((nl.hnogames.domoticz.MainActivity) (getActivity())).geServerUtil(); }else if (activity instanceof nl.hnogames.do...
protected void doResumeUpdates() { java.util.Calendar cal = java.util.Calendar.getInstance(java.util.Locale.getDefault()); mFirstDayOfWeek = (cal.getFirstDayOfWeek()) - 1; mShowWeekNumber = false; updateHeader(); goTo(mSelectedDay.toMillis(true), false, false, false); mAdapter.setSelectedDay(mSe...
protected void doResumeUpdates() { java.util.Calendar cal = java.util.Calendar.getInstance(java.util.Locale.getDefault()); mFirstDayOfWeek = (cal.getFirstDayOfWeek()) - 1; mShowWeekNumber = false; updateHeader(); goTo(mSelectedDay.toMillis(true), false, true, false); mAdapter.setSelectedDay(mSel...
public void onLocationChanged(android.location.Location location) { if ((prefs.getUserId()) == null) return ; android.util.Log.v(se.omegapoint.beaconmountain.service.LocationListener.TAG, ("Got accurate location: " + (location.getAccuracy()))); if ((lastLocation) == null) { notifyLocati...
public void onLocationChanged(android.location.Location location) { if ((prefs.getUserId()) == null) return ; android.util.Log.v(se.omegapoint.beaconmountain.service.LocationListener.TAG, ("Got accurate location: " + (location.getAccuracy()))); if ((lastLocation) == null) { notifyLocati...
public static bammerbom.ultimatecore.bukkit.api.UPlayer getPlayer(java.util.UUID u) { for (bammerbom.ultimatecore.bukkit.api.UPlayer p : bammerbom.ultimatecore.bukkit.api.UC.uplayers) { if (p.uuid.equals(u)) { return p; } } bammerbom.ultimatecore.bukkit.api.UPlayer pl = new bamme...
public static bammerbom.ultimatecore.bukkit.api.UPlayer getPlayer(java.util.UUID u) { for (bammerbom.ultimatecore.bukkit.api.UPlayer p : bammerbom.ultimatecore.bukkit.api.UC.uplayers) { if ((p.uuid) == null) { continue; } if (p.uuid.equals(u)) { return p; } ...