buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
private void copyDate2SalesTotalShowList(java.util.List<com.tjhx.entity.info.SalesMonthTotal_Show> _salesTotalShowList, java.util.List<com.tjhx.entity.info.SalesMonthTotalItem> _salesYearTotal, int orgCnt) {
for (com.tjhx.entity.info.SalesMonthTotalItem _salesMonthTotalItem : _salesYearTotal) {
for (com.tjh... | private void copyDate2SalesTotalShowList(java.util.List<com.tjhx.entity.info.SalesMonthTotal_Show> _salesTotalShowList, java.util.List<com.tjhx.entity.info.SalesMonthTotalItem> _salesYearTotal) {
for (com.tjhx.entity.info.SalesMonthTotalItem _salesMonthTotalItem : _salesYearTotal) {
for (com.tjhx.entity.inf... |
public com.emc.storageos.vplex.api.VPlexVirtualVolumeInfo createVirtualVolume(java.util.List<com.emc.storageos.vplex.api.clientdata.VolumeInfo> nativeVolumeInfoList, boolean isDistributed, boolean discoveryRequired, boolean preserveData, java.lang.String winningClusterId, java.util.List<com.emc.storageos.vplex.api.VPle... | public com.emc.storageos.vplex.api.VPlexVirtualVolumeInfo createVirtualVolume(java.util.List<com.emc.storageos.vplex.api.clientdata.VolumeInfo> nativeVolumeInfoList, boolean isDistributed, boolean discoveryRequired, boolean preserveData, java.lang.String winningClusterId, java.util.List<com.emc.storageos.vplex.api.VPle... |
public <T> T foldMap(java.util.function.BiFunction<T, java.lang.Double, T> foldFun, java.util.function.DoubleFunction<java.lang.Double> mapFun) {
T t = null;
int len = sto.size();
for (int i = 1; i < len; i++)
t = foldFun.apply(t, mapFun.apply(sto.get(i)));
return t;
} | public <T> T foldMap(java.util.function.BiFunction<T, java.lang.Double, T> foldFun, java.util.function.DoubleFunction<java.lang.Double> mapFun) {
T t = null;
int len = sto.size();
for (int i = 0; i < len; i++)
t = foldFun.apply(t, mapFun.apply(sto.get(i)));
return t;
} |
public org.springframework.http.ResponseEntity update(@com.adswizz.controller.RequestBody
com.adswizz.domain.dto.ScoreDTO scoreDTO) {
try {
com.adswizz.controller.ScoreController.LOGGER.debug(((("update score by ID: " + (scoreDTO.getId())) + " new value: ") + (scoreDTO.getScore())));
return new org.... | public org.springframework.http.ResponseEntity update(@com.adswizz.controller.RequestBody
com.adswizz.domain.dto.ScoreDTO scoreDTO) throws com.adswizz.service.exception.ServiceException {
com.adswizz.controller.ScoreController.LOGGER.debug(((("update score by ID: " + (scoreDTO.getId())) + " new value: ") + (scoreDT... |
public static boolean checkLocationPermission(android.content.Context context) {
if (((android.support.v4.app.ActivityCompat.checkSelfPermission(context, Manifest.permission.ACCESS_FINE_LOCATION)) != (android.content.pm.PackageManager.PERMISSION_GRANTED)) && ((android.support.v4.app.ActivityCompat.checkSelfPermissi... | public static boolean checkLocationPermission(android.content.Context context) {
if (((android.support.v4.app.ActivityCompat.checkSelfPermission(context, Manifest.permission.ACCESS_FINE_LOCATION)) != (android.content.pm.PackageManager.PERMISSION_GRANTED)) && ((android.support.v4.app.ActivityCompat.checkSelfPermissi... |
private java.util.List<hudson.model.ModelObject> newRuns(long startId, long endId) throws java.io.IOException {
java.util.List<hudson.model.ModelObject> runs = new java.util.ArrayList<hudson.model.ModelObject>();
for (long queueId = startId; queueId <= endId; queueId++) {
runs.add(new jenkins.widgets.Hi... | private java.util.List<hudson.model.ModelObject> newRuns(long startId, long endId) throws java.io.IOException {
java.util.List<hudson.model.ModelObject> runs = new java.util.ArrayList<>();
for (long queueId = endId; queueId >= startId; queueId--) {
runs.add(new jenkins.widgets.HistoryPageFilterTest.Mock... |
public void testGetDisplayName() {
org.junit.Assume.assumeFalse(java.awt.GraphicsEnvironment.isHeadless());
org.junit.Assert.assertNotNull("LayoutEditor exists", jmri.jmrit.display.layoutEditor.LayoutSlipTest.layoutEditor);
org.junit.Assert.assertNotNull("LayoutSlip single not null", lts);
org.junit.Ass... | public void testGetDisplayName() {
org.junit.Assume.assumeFalse(java.awt.GraphicsEnvironment.isHeadless());
org.junit.Assert.assertNotNull("LayoutEditor exists", jmri.jmrit.display.layoutEditor.LayoutSlipTest.layoutEditor);
org.junit.Assert.assertNotNull("LayoutSlip single not null", lts);
org.junit.Ass... |
public boolean checkoutDupCacheSize(final int windowSize, final int idCacheSize) {
final int msgNumInFlight = windowSize / (org.hornetq.core.server.cluster.impl.ClusterConnectionImpl.DEFAULT_JMS_MESSAGE_SIZE);
boolean sizeGood = false;
if (idCacheSize >= msgNumInFlight) {
int r = idCacheSize / msgNu... | public boolean checkoutDupCacheSize(final int windowSize, final int idCacheSize) {
final int msgNumInFlight = windowSize / (org.hornetq.core.server.cluster.impl.ClusterConnectionImpl.DEFAULT_JMS_MESSAGE_SIZE);
if (msgNumInFlight == 0) {
return true;
}
boolean sizeGood = false;
if (idCacheSiz... |
private org.grammaticalframework.pgf.ExprIterator doParse() throws org.grammaticalframework.pgf.ParseError {
org.grammaticalframework.pgf.Pool pool = new org.grammaticalframework.pgf.Pool();
long callbacksRef = org.grammaticalframework.pgf.Parser.newCallbacksMap(concr, pool);
for (java.util.Map.Entry<java.l... | private org.grammaticalframework.pgf.ExprIterator doParse() throws org.grammaticalframework.pgf.ParseError {
org.grammaticalframework.pgf.Pool pool = new org.grammaticalframework.pgf.Pool();
long callbacksRef = org.grammaticalframework.pgf.Parser.newCallbacksMap(concr, pool);
if ((callbacks) != null) {
... |
public void testGetParent() throws bsma.SizeException {
java.lang.System.out.println("getParent");
bsma.NodeTest.testNode = new bsma.Node(8);
bsma.Node left = new bsma.Node(bsma.NodeTest.testNode, 4);
bsma.Node right = new bsma.Node(bsma.NodeTest.testNode, 4);
bsma.NodeTest.testNode.setChildren(left... | public void testGetParent() throws bsma.SizeException {
java.lang.System.out.println("getParent");
bsma.NodeTest.testNode = new bsma.Node(8);
bsma.Node left = new bsma.Node(bsma.NodeTest.testNode, 4, 0);
bsma.Node right = new bsma.Node(bsma.NodeTest.testNode, 4, 0);
bsma.NodeTest.testNode.setChildre... |
public static com.intellij.formatting.Spacing getSpacing(@org.jetbrains.annotations.NotNull
final com.intellij.lang.ASTNode leftChild, @org.jetbrains.annotations.NotNull
final com.intellij.lang.ASTNode rightChild, final com.intellij.psi.codeStyle.CodeStyleSettings settings) {
if (SpacingTokens.SPACING_AFTER.contain... | public static com.intellij.formatting.Spacing getSpacing(@org.jetbrains.annotations.Nullable
final com.intellij.lang.ASTNode leftChild, @org.jetbrains.annotations.NotNull
final com.intellij.lang.ASTNode rightChild, final com.intellij.psi.codeStyle.CodeStyleSettings settings) {
if ((leftChild != null) && (SpacingTok... |
public void onAttach(android.app.Activity activity) {
super.onAttach(activity);
mIsFresh = true;
com.google.sample.castcompanionlibrary.cast.player.VideoCastControllerFragment.sDialogCanceled = false;
mCastController = ((com.google.sample.castcompanionlibrary.cast.player.IVideoCastController) (activity)... | public void onAttach(android.app.Activity activity) {
super.onAttach(activity);
com.google.sample.castcompanionlibrary.cast.player.VideoCastControllerFragment.sDialogCanceled = false;
mCastController = ((com.google.sample.castcompanionlibrary.cast.player.IVideoCastController) (activity));
mHandler = new... |
public boolean areObjectsEqual(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.Match statsMatch, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.Match storedMatch) {
if ((storedMatch.getVlanMatch()) == null) {
if ((statsMatch.getVlanMatch()) != null) {
... | public boolean areObjectsEqual(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.Match statsMatch, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.Match storedMatch) {
if (storedMatch == null)
return false;
if ((storedMatch.getVlanMatch()) == null) {
... |
public void There_s_no_defined_scaling_policy(java.lang.String nodeName) throws java.lang.Throwable {
I_try_to_retrieve_the_created_topology();
java.lang.String topologyResponseText = alien4cloud.it.Context.getInstance().getRestResponse();
alien4cloud.rest.model.RestResponse<alien4cloud.topology.TopologyDTO... | public void There_s_no_defined_scaling_policy(java.lang.String nodeName) throws java.lang.Throwable {
I_try_to_retrieve_the_created_topology();
java.lang.String topologyResponseText = alien4cloud.it.Context.getInstance().getRestResponse();
alien4cloud.rest.model.RestResponse<alien4cloud.topology.TopologyDTO... |
private com.starproductions.starmotion.starmotion.ScoreSystem.Score getMinScore(java.util.ArrayList<com.starproductions.starmotion.starmotion.ScoreSystem.Score> scoreList) {
com.starproductions.starmotion.starmotion.ScoreSystem.Score min = scoreList.get(0);
for (com.starproductions.starmotion.starmotion.ScoreSy... | private com.starproductions.starmotion.starmotion.ScoreSystem.Score getMinScore(java.util.ArrayList<com.starproductions.starmotion.starmotion.ScoreSystem.Score> scoreList) {
com.starproductions.starmotion.starmotion.ScoreSystem.Score min = null;
for (com.starproductions.starmotion.starmotion.ScoreSystem.Score s... |
public boolean hasPermisssion(java.lang.String command, java.lang.String username) {
java.lang.String permLevel = userPerms.get(username);
java.util.List<java.lang.String> commands = commandPerms.get(permLevel);
boolean hasCommand = false;
if (commands != null) {
hasCommand = commands.contains(c... | public boolean hasPermisssion(java.lang.String command, java.lang.String username) {
if (username.equals("self")) {
return true;
}
java.lang.String permLevel = userPerms.get(username);
java.util.List<java.lang.String> commands = null;
if (permLevel != null) {
commands = commandPerms.... |
public void onResume() {
super.onResume();
if ((mGridLayoutmanager.getSpanCount()) != (numberOfColumns())) {
android.support.v7.widget.GridLayoutManager layoutmanager = new android.support.v7.widget.GridLayoutManager(getActivity(), numberOfColumns());
mGridView.setLayoutManager(layoutmanager);
... | public void onResume() {
if ((mGridLayoutmanager.getSpanCount()) != (numberOfColumns())) {
mGridLayoutmanager = new android.support.v7.widget.GridLayoutManager(getActivity(), numberOfColumns());
mGridView.setLayoutManager(mGridLayoutmanager);
((org.bottiger.podcast.adapters.SubscriptionCurso... |
public void setOrt(java.lang.String ort) throws exceptions.UngueltigeEingabeException {
if (ort == null) {
throw new java.lang.NullPointerException("Kein Ort vorhanden!");
}else
if ((ort.length()) < 3) {
throw new exceptions.UngueltigeEingabeException("Bitte geben Sie mindestens 3 Ze... | private void setOrt(java.lang.String ort) throws exceptions.UngueltigeEingabeException {
if (ort == null) {
throw new java.lang.NullPointerException("Kein Ort vorhanden!");
}else
if ((ort.length()) < 3) {
throw new exceptions.UngueltigeEingabeException("Bitte geben Sie mindestens 3 Z... |
public final com.google.gson.JsonElement getJson() {
com.google.gson.JsonObject o = new com.google.gson.JsonObject();
for (latmod.lib.config.ConfigEntry e : entries.values()) {
if (!(e.isExcluded())) {
e.onPreLoaded();
o.add(e.ID, e.getJson());
}
}
return o;
} | public final com.google.gson.JsonElement getJson() {
com.google.gson.JsonObject o = new com.google.gson.JsonObject();
for (latmod.lib.config.ConfigEntry e : entries.values(null)) {
if (!(e.isExcluded())) {
e.onPreLoaded();
o.add(e.ID, e.getJson());
}
}
return o;
} |
public static java.lang.Integer[] clone(java.lang.Integer[] intArray) {
java.lang.Integer[] ret = new java.lang.Integer[intArray.length];
for (int i = 0; i < (intArray.length); i++) {
ret[i] = java.lang.Integer.valueOf(intArray[i]);
}
return ret;
} | public static java.lang.Integer[] clone(java.lang.Integer[] intArray) {
java.lang.Integer[] ret = new java.lang.Integer[intArray.length];
for (int i = 0; i < (intArray.length); i++) {
ret[i] = intArray[i];
}
return ret;
} |
public java.sql.ResultSet executeStatement(java.lang.String sql) throws java.sql.SQLException {
closeResult();
if ((conn) == null)
conn = com.scholastic.sbam.server.database.util.HibernateUtil.getConnection();
java.sql.Statement sqlStmt = conn.createStatement();
try {
results = sqlS... | public java.sql.ResultSet executeStatement(java.lang.String sql) throws java.sql.SQLException {
closeResult();
if ((conn) == null)
conn = com.scholastic.sbam.server.database.util.HibernateUtil.getConnection();
sqlStmt = conn.createStatement();
try {
results = sqlStmt.executeQuery(sq... |
protected void onQueryComplete(int token, java.lang.Object cookie, android.database.Cursor cursor) {
super.onQueryComplete(token, cookie, cursor);
if (cookie == null) {
return ;
}
if ((mCallback.get()) == null) {
return ;
}
if (cookie.equals(mItemId)) {
mCallback.get().on... | protected void onQueryComplete(int token, java.lang.Object cookie, android.database.Cursor cursor) {
super.onQueryComplete(token, cookie, cursor);
if (cookie == null) {
mCallback = null;
return ;
}
if (cookie.equals(mItemId)) {
mCallback.onQueryComplete(((cursor.getCount()) > 0))... |
public void write(int c) throws java.io.IOException {
if ((firstChar) && (((prevChar) != '\n') || ((prevChar) != '\r'))) {
out.write(((((counter)++) + "\t") + c));
firstChar = false;
}else {
out.write(c);
}
if ((c == '\n') || (c == '\r')) {
firstChar = true;
}
pre... | public void write(int c) throws java.io.IOException {
if (firstChar) {
out.write(((((counter)++) + "\t") + c));
firstChar = false;
}else {
out.write(c);
}
if ((c == '\n') || (c == '\r')) {
firstChar = true;
}
prevChar = c;
} |
public Item dequeue() {
if ((size) == 0)
throw new java.util.NoSuchElementException();
int randIndex = edu.princeton.cs.algs4.StdRandom.uniform(((size)--));
Item item = array[randIndex];
array[randIndex] = array[size];
array[size] = null;
if ((size) == ((array.length) / 4))
... | public Item dequeue() {
if ((size) == 0)
throw new java.util.NoSuchElementException();
int randIndex = edu.princeton.cs.algs4.StdRandom.uniform(((size)--));
Item item = array[randIndex];
array[randIndex] = array[size];
array[size] = null;
if (((size) > 1) && ((size) == ((array.lengt... |
public void onClick(android.view.View v) {
android.os.Bundle b = new android.os.Bundle();
b.putInt("idDate", textDate.getId());
b.putString("setDate", dateCTR.revertDateAndChangeSeparator(textDate.getText().toString(), "/", "-"));
br.com.inmypocket.dialogs.DatePickerFragment datePicker = new br.com.inmy... | public void onClick(android.view.View v) {
android.os.Bundle b = new android.os.Bundle();
b.putString("setDate", dateCTR.revertDateAndChangeSeparator(textDate.getText().toString(), "/", "-"));
br.com.inmypocket.dialogs.DatePickerFragment datePicker = new br.com.inmypocket.dialogs.DatePickerFragment();
d... |
private void updateHeaderOnOffsetChange(int deltaOffset, final int targetOffset) {
if ((mHeader) instanceof com.huangxueqin.listcomponent.header.BaseHeaderView) {
final com.huangxueqin.listcomponent.header.BaseHeaderView bhv = ((com.huangxueqin.listcomponent.header.BaseHeaderView) (mHeader));
if ((m... | private void updateHeaderOnOffsetChange(int deltaOffset, final int targetOffset) {
if ((mHeader) instanceof com.huangxueqin.listcomponent.header.BaseHeaderView) {
final com.huangxueqin.listcomponent.header.BaseHeaderView bhv = ((com.huangxueqin.listcomponent.header.BaseHeaderView) (mHeader));
if ((m... |
public void actionPerformed(java.awt.event.ActionEvent e) {
try {
controller.ClientController.createConnection();
controller.ClientController.sendUsernameAndGetOnlineClients();
getPanel().setVisible(true);
getBtnPoveziSe().setVisible(false);
getBtnPrekiniVezu().setVisible(tru... | public void actionPerformed(java.awt.event.ActionEvent e) {
try {
controller.ClientController.createConnection();
boolean b = controller.ClientController.sendUsernameAndGetOnlineClients();
if (b) {
getPanel().setVisible(true);
getBtnPoveziSe().setVisible(false);
... |
private org.apache.commons.math3.linear.RealMatrix calculateCovariateMatrix(final org.knime.base.node.mine.regression.logistic.learner4.sag.WeightVector<T> beta) {
final double[][] hessian = m_loss.hessian(m_data, beta);
org.apache.commons.math3.linear.RealMatrix observedInformation = org.apache.commons.math3.l... | private org.apache.commons.math3.linear.RealMatrix calculateCovariateMatrix(final org.knime.base.node.mine.regression.logistic.learner4.sag.WeightVector<T> beta) {
final double[][] hessian = m_loss.hessian(m_data, beta);
org.apache.commons.math3.linear.RealMatrix observedInformation = org.apache.commons.math3.l... |
public jvn.JvnObject lookupObject(java.lang.String jon, jvn.JvnRemoteServer js) throws jvn.JvnException {
int i = 0;
while ((i < (jvn.JvnObjectRegistry.MAXENTRY)) && (!((registry[i].getName().equals(jon)) && ((registry[i].getCurrentOwner()) == js))))
i++;
if (i == (jvn.JvnObjectRegistry.MAXENTR... | public jvn.JvnObject lookupObject(java.lang.String jon, jvn.JvnRemoteServer js) throws jvn.JvnException {
int i = 0;
while ((i < (jvn.JvnObjectRegistry.MAXENTRY)) && (!((jon.equals(registry[i].getName())) && ((registry[i].getCurrentOwner()) == js)))) {
java.lang.System.out.println(i);
i++;
}... |
private int levelToExp(int level) {
final int BASE = 3;
final double RATE = 0.03;
final int LINEAR_CAP = 9;
if (level <= LINEAR_CAP) {
return BASE + level;
}
return ((int) ((LINEAR_CAP + BASE) * (java.lang.Math.pow((1 + RATE), (level - LINEAR_CAP)))));
} | public static int levelToExp(int level) {
final int BASE = 3;
final double RATE = 0.03;
final int LINEAR_CAP = 9;
if (level <= LINEAR_CAP) {
return BASE + level;
}
return ((int) ((LINEAR_CAP + BASE) * (java.lang.Math.pow((1 + RATE), (level - LINEAR_CAP)))));
} |
public java.awt.image.BufferedImage getPlayerAsset(int index, int i) {
assert (index >= 0) && (index < (_player_assets.length)) : "Invalid Index.";
assert (i >= 0) && (i < (_player_assets[i].length)) : "Invalid Index.";
return _player_assets[index][i];
} | public java.awt.image.BufferedImage getPlayerAsset(int index, int i) {
assert (index >= 0) && (index < (_player_assets.length)) : "Invalid Index.";
assert (i >= 0) && (i < (_player_assets[index].length)) : "Invalid Index.";
return _player_assets[index][i];
} |
private java.lang.String getStoreIdentifierFromVorlageneigenschaften(org.goobi.production.importer.FireburnProperty p) throws java.lang.ClassNotFoundException, java.sql.SQLException {
java.lang.String vorlagenId = getVorlagenId(p);
if (vorlagenId != null) {
java.lang.String sql = ("SELECT ProzesseID FRO... | private java.lang.String getStoreIdentifierFromVorlageneigenschaften(org.goobi.production.importer.FireburnProperty p) throws java.lang.ClassNotFoundException, java.sql.SQLException {
java.lang.String vorlagenId = getVorlagenId(p);
java.lang.String processId = null;
if (vorlagenId != null) {
java.la... |
public android.content.Loader<android.database.Cursor> onCreateLoader(int id, android.os.Bundle args) {
if ((com.playing.lokasee.fragments.SearchFragment.LIST_ID) == id) {
java.lang.String selection = null;
if (!(name.equals(""))) {
selection = (((UserDao.Properties.Name.columnName) + " ... | public android.content.Loader<android.database.Cursor> onCreateLoader(int id, android.os.Bundle args) {
if ((com.playing.lokasee.fragments.SearchFragment.LIST_ID) == id) {
if ((name) == null) {
selection = null;
}
return new android.content.CursorLoader(getActivity(), com.playing... |
public void onPreviewFrame(byte[] frame, android.hardware.Camera arg1) {
android.util.Log.d(org.opencv.android.JavaCameraView.TAG, ("Preview Frame received. Frame size: " + (frame.length)));
synchronized(this) {
mFrameChain[(1 - (mChainIdx))].put(0, 0, frame);
this.notify();
}
if ((mCame... | public void onPreviewFrame(byte[] frame, android.hardware.Camera arg1) {
synchronized(this) {
mFrameChain[(1 - (mChainIdx))].put(0, 0, frame);
this.notify();
}
if ((mCamera) != null)
mCamera.addCallbackBuffer(mBuffer);
} |
private void updateLocation(android.location.Location location) {
double latitiude = location.getLatitude();
double longitude = location.getLongitude();
android.util.Log.d(com.huhx0015.doordashchallenge.services.LocationService.LOG_TAG, ((("updateLocation(): Latitude: " + latitiude) + " | Longitude: ") + lo... | private void updateLocation(android.location.Location location) {
double latitiude = location.getLatitude();
double longitude = location.getLongitude();
android.util.Log.d(com.huhx0015.doordashchallenge.services.LocationService.LOG_TAG, ((("updateLocation(): Latitude: " + latitiude) + " | Longitude: ") + lo... |
public void onReceive(android.content.Context context, android.content.Intent intent) {
final android.content.Intent dialogIntent;
if (com.estvis.oaslibrary.Settings.Config.getInstance().getUsePinToUnlock(context)) {
dialogIntent = new android.content.Intent(context, com.estvis.ma.LoginByPinActivity.cla... | public void onReceive(android.content.Context context, android.content.Intent intent) {
if (com.estvis.oaslibrary.Settings.Config.getInstance().getUsePinToUnlock(context)) {
final android.content.Intent dialogIntent = new android.content.Intent(context, com.estvis.ma.LoginByPinActivity.class);
dialo... |
public void publish(com.esri.geoportal.harvester.api.DataReference ref) throws com.esri.geoportal.harvester.api.ex.DataOutputException {
try {
(counter)++;
java.lang.System.out.println(java.lang.String.format("%s [%s]", ref.getId(), ref.getLastModifiedDate()));
java.lang.System.out.println(j... | public boolean publish(com.esri.geoportal.harvester.api.DataReference ref) throws com.esri.geoportal.harvester.api.ex.DataOutputException {
try {
(counter)++;
java.lang.System.out.println(java.lang.String.format("%s [%s]", ref.getId(), ref.getLastModifiedDate()));
java.lang.System.out.printl... |
private void launchExternalIntent(android.content.Context context) {
android.content.Intent i = new android.content.Intent("android.intent.action.VIEW");
java.io.File f = new java.io.File((((instanceFolder) + (java.io.File.separator)) + (binaryName)));
i.setDataAndType(android.net.Uri.fromFile(f), "video/*"... | private void launchExternalIntent() {
android.content.Intent i = new android.content.Intent("android.intent.action.VIEW");
java.io.File f = new java.io.File((((instanceFolder) + (java.io.File.separator)) + (binaryName)));
i.setDataAndType(android.net.Uri.fromFile(f), "video/*");
try {
getContext... |
public java.lang.String getServiceStatus(java.lang.String service) throws org.sleuthkit.autopsy.core.ServicesMonitor.UnknownServiceException {
if (service == null) {
throw new org.sleuthkit.autopsy.core.ServicesMonitor.UnknownServiceException(org.openide.util.NbBundle.getMessage(org.sleuthkit.autopsy.core.S... | public java.lang.String getServiceStatus(java.lang.String service) throws org.sleuthkit.autopsy.core.ServicesMonitor.UnknownServiceException {
if (service == null) {
throw new org.sleuthkit.autopsy.core.ServicesMonitor.UnknownServiceException(org.openide.util.NbBundle.getMessage(org.sleuthkit.autopsy.core.S... |
public java.util.List<eu.europeana.uim.store.Collection<java.lang.String>> getAllCollections() {
java.util.List<eu.europeana.uim.store.Collection<java.lang.String>> res = new java.util.ArrayList<eu.europeana.uim.store.Collection<java.lang.String>>();
for (eu.europeana.uim.store.mongo.decorators.MongoCollectionD... | public java.util.List<java.util.Collection<java.lang.String>> getAllCollections() {
java.util.List<java.util.Collection<java.lang.String>> res = new java.util.ArrayList<java.util.Collection<java.lang.String>>();
for (eu.europeana.uim.store.mongo.decorators.MongoCollectionDecorator<java.lang.String> c : ds.find(... |
private void appendColormapData(cz.fidentis.controller.data.ColormapConfig data, org.w3c.dom.Element parent) {
org.w3c.dom.Element colorE = parent.getOwnerDocument().createElement("colormapData");
parent.appendChild(colorE);
colorE.setAttribute("haussdorfMaxTreshold", java.lang.String.valueOf(data.getHausdo... | private void appendColormapData(cz.fidentis.controller.data.ColormapConfig data, org.w3c.dom.Element parent) {
org.w3c.dom.Element colorE = parent.getOwnerDocument().createElement("colormapData");
parent.appendChild(colorE);
colorE.setAttribute("haussdorfMaxTreshold", java.lang.String.valueOf(data.getHausdo... |
public boolean alphabeticName(java.lang.String name) {
for (int i = 0; i < (name.length()); i++) {
char ch = name.charAt(i);
if (!(java.lang.Character.isAlphabetic(ch)))
return false;
}
return true;
} | private boolean alphabeticName(java.lang.String name) {
for (int i = 0; i < (name.length()); i++) {
char ch = name.charAt(i);
if (!(java.lang.Character.isAlphabetic(ch)))
return false;
}
return true;
} |
public com.epam.indigo.IndigoObject addDataSGroup(int[] atoms, int[] bonds, java.lang.String description, java.lang.String data) {
dispatcher.setSessionID();
if (description == null)
description = "";
if (data == null)
data = "";
return new com.epam.indigo.IndigoObject(dispatch... | public com.epam.indigo.IndigoObject addDataSGroup(int[] atoms, int[] bonds, java.lang.String description, java.lang.String data) {
if (description == null)
description = "";
if (data == null)
data = "";
dispatcher.setSessionID();
return new com.epam.indigo.IndigoObject(dispatch... |
public boolean isType(dyvil.tools.compiler.ast.type.IType type) {
if (type == (dyvil.tools.compiler.ast.type.builtin.Types.VOID)) {
return true;
}
if (((this.then) != null) && (!(this.then.isType(type)))) {
return false;
}
return ((this.elseThen) == null) || (this.elseThen.isType(typ... | public boolean isType(dyvil.tools.compiler.ast.type.IType type) {
return (type == (dyvil.tools.compiler.ast.type.builtin.Types.VOID)) || ((!(((this.then) != null) && (!(this.then.isType(type))))) && (((this.elseThen) == null) || (this.elseThen.isType(type))));
} |
public org.voltdb.VoltTable[] run(int uid) {
voltQueueSQL(getFollowing, uid);
org.voltdb.VoltTable[] result = voltExecuteSQL();
int num_params = java.lang.Math.min(result[1].getRowCount(), TwitterConstants.LIMIT_FOLLOWERS);
for (int i = 0; i < num_params; ++i) {
voltQueueSQL(getTweets, result[1]... | public org.voltdb.VoltTable[] run(int uid) {
voltQueueSQL(getFollowing, uid);
org.voltdb.VoltTable[] result = voltExecuteSQL();
int num_params = java.lang.Math.min(result[0].getRowCount(), TwitterConstants.LIMIT_FOLLOWERS);
for (int i = 0; i < num_params; ++i) {
voltQueueSQL(getTweets, result[0]... |
public int compareTo(cardsuite.Card compare) {
if (((compare.getCardNumber()) > (this.getCardNumber())) || ((compare.getSuit()) != (this.getSuit()))) {
return -1;
}
if (((compare.getCardNumber()) == (this.getCardNumber())) || ((compare.getSuit()) == (this.getSuit()))) {
return 0;
}
r... | public int compareTo(cardsuite.Card compare) {
if (((compare.getCardNumber()) > (this.getCardNumber())) || ((compare.getSuit()) != (this.getSuit()))) {
return -1;
}
if (((compare.getCardNumber()) == (this.getCardNumber())) && ((compare.getSuit()) == (this.getSuit()))) {
return 0;
}
r... |
public void onCreate() {
super.onCreate();
com.hon.sunny.base.BaseApplication.sAppContext = getApplicationContext();
com.hon.sunny.common.CrashHandler.init(new com.hon.sunny.common.CrashHandler(getApplicationContext()));
if (!(com.hon.sunny.BuildConfig.DEBUG)) {
}
if (((getApplicationContext().g... | public void onCreate() {
super.onCreate();
com.hon.sunny.base.BaseApplication.sAppContext = getApplicationContext();
if (!(com.hon.sunny.BuildConfig.DEBUG)) {
}
if (((getApplicationContext().getExternalCacheDir()) != null) && (ExistSDCard())) {
com.hon.sunny.base.BaseApplication.sCacheDir = ... |
public javax.ws.rs.core.Response persistKontakt(ch.issueman.common.Kontakt t, @javax.ws.rs.core.Context
javax.servlet.http.HttpServletRequest request) {
rbm.get("login").setLogin(((ch.issueman.common.Login) (request.getSession(true).getAttribute("login"))));
return ((ch.issueman.webservice.DAOResponseBuilder) (... | public javax.ws.rs.core.Response persistKontakt(ch.issueman.common.Kontakt t, @javax.ws.rs.core.Context
javax.servlet.http.HttpServletRequest request) {
rbm.get("kontakt").setLogin(((ch.issueman.common.Login) (request.getSession(true).getAttribute("login"))));
return ((ch.issueman.webservice.DAOResponseBuilder)... |
protected static java.util.ArrayList<java.lang.String> sliceContent(java.lang.String content) {
java.util.ArrayList<java.lang.String> slicedContent = new java.util.ArrayList<java.lang.String>();
java.lang.String[] contentPieces = content.split("\\s+");
for (java.lang.String pieceOfContent : contentPieces) {... | protected static java.util.ArrayList<java.lang.String> sliceContent(java.lang.String content) {
java.util.ArrayList<java.lang.String> slicedContent = new java.util.ArrayList<java.lang.String>();
java.lang.String[] contentPieces = content.trim().split("\\s+");
for (java.lang.String pieceOfContent : contentPi... |
public void storeToken(java.lang.String token, int treeDepth) throws java.io.IOException {
if (de.uka.ipd.idaho.goldenGateServer.srs.webPortal.layouts.XsltSearchPortalLayout.html.isEndTag(token))
tr.storeToken(token, treeDepth);
else
if (de.uka.ipd.idaho.goldenGateServer.srs.webPortal.layouts.Xs... | public void storeToken(java.lang.String token, int treeDepth) throws java.io.IOException {
if (de.uka.ipd.idaho.goldenGateServer.srs.webPortal.layouts.XsltSearchPortalLayout.html.isEndTag(token))
tr.storeToken(token, treeDepth);
else
if (de.uka.ipd.idaho.goldenGateServer.srs.webPortal.layouts.Xs... |
public void setHeaderView(android.view.View headerView) {
if ((mHeaderView) != headerView) {
if ((mHeaderView) == null) {
mHeaderView = headerView;
com.livae.android.loading.RecyclerAdapter.notifyItemInserted(getHeaderPosition());
}else {
mHeaderView = headerView;... | public void setHeaderView(android.view.View headerView) {
if ((mHeaderView) != headerView) {
if ((mHeaderView) == null) {
mHeaderView = headerView;
com.livae.android.loading.RecyclerAdapter.notifyItemInserted(getHeaderPosition());
}else {
if (headerView != null) {... |
public void pushPedelecInavailability(java.lang.String pedelecManufacturerId) {
java.util.List<java.lang.String> pedelecManufacturerIds = new java.util.ArrayList<>();
de.rwth.idsg.bikeman.domain.Pedelec pedelec = pedelecRepository.findByManufacturerId(pedelecManufacturerId);
pedelecManufacturerIds.add(pedel... | public void pushPedelecInavailability(java.lang.String pedelecManufacturerId) {
java.util.List<java.lang.String> pedelecManufacturerIds = new java.util.ArrayList<>();
de.rwth.idsg.bikeman.domain.Pedelec pedelec = pedelecRepository.findByManufacturerId(pedelecManufacturerId);
if ((pedelec.getStationSlot()) =... |
private void parseHerbExtras(android.content.Intent intent, android.content.Context context) {
java.lang.String herbFlavor = org.chromium.chrome.browser.util.FeatureUtilities.getHerbFlavor();
if ((android.text.TextUtils.isEmpty(herbFlavor)) || (android.text.TextUtils.equals(ChromeSwitches.HERB_FLAVOR_DISABLED, ... | private void parseHerbExtras(android.content.Intent intent, android.content.Context context) {
java.lang.String herbFlavor = org.chromium.chrome.browser.util.FeatureUtilities.getHerbFlavor();
if ((android.text.TextUtils.isEmpty(herbFlavor)) || (android.text.TextUtils.equals(ChromeSwitches.HERB_FLAVOR_DISABLED, ... |
public void mousePressed(java.awt.event.MouseEvent e) {
int x = e.getX();
int y = e.getY();
java.lang.System.out.println("click");
if ((dragging) == true)
return ;
else {
prevX = x;
prevY = y;
dragging = true;
}
} | public void mousePressed(java.awt.event.MouseEvent e) {
int x = e.getX();
int y = e.getY();
if ((dragging) == true)
return ;
else {
prevX = x;
prevY = y;
dragging = true;
}
} |
protected static void writeName(java.lang.String nickname) {
java.awt.Font font = new java.awt.Font("Open Sans", java.awt.Font.PLAIN, 12);
javax.swing.JLabel name = new javax.swing.JLabel(nickname.toUpperCase());
name.setBounds(20, 115, 100, 22);
name.setFont(font);
name.setForeground(new java.awt.C... | protected static void writeName(java.lang.String nickname) {
java.awt.Font font = new java.awt.Font("Open Sans", java.awt.Font.PLAIN, 12);
javax.swing.JLabel name = new javax.swing.JLabel(nickname);
name.setBounds(20, 115, 100, 22);
name.setFont(font);
name.setForeground(new java.awt.Color(255, 255,... |
private void scrollToChild(int position, int offset) {
android.util.Log.i(com.danxx.tabstrip.FlymeTabStrip.TAG, "scrollToChild---->");
if ((tabCount) == 0) {
return ;
}
int newScrollX = (container.getChildAt(position).getLeft()) + offset;
if (newScrollX != (lastScrollX)) {
lastScroll... | private void scrollToChild(int position, int offset) {
if ((tabCount) == 0) {
return ;
}
int newScrollX = (container.getChildAt(position).getLeft()) + offset;
if (newScrollX != (lastScrollX)) {
lastScrollX = newScrollX;
scrollTo(newScrollX, 0);
}
} |
public void execute() {
double i = (((getInput()) * (direction)) == (org.stlpriory.robotics.commands.drivetrain.DriveStraight.Direction.REVERSE)) ? -1 : 1;
Robot.drivetrain.tankDrive((i * (org.stlpriory.robotics.commands.drivetrain.DriveStraight.COEFFICIENT)), (i * (org.stlpriory.robotics.commands.drivetrain.Dr... | public void execute() {
double i = (getInput()) * ((direction) == (org.stlpriory.robotics.commands.drivetrain.DriveStraight.Direction.REVERSE) ? -1 : 1);
Robot.drivetrain.tankDrive((i * (org.stlpriory.robotics.commands.drivetrain.DriveStraight.COEFFICIENT)), (i * (org.stlpriory.robotics.commands.drivetrain.Driv... |
private void handleEnterEmergencyCallbackMode(android.os.Message msg) {
if (com.android.internal.telephony.cdma.CDMAPhone.DBG) {
android.telephony.Rlog.d(com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG, ("handleEnterEmergencyCallbackMode,mIsPhoneInEcmState= " + (mIsPhoneInEcmState)));
}
if ((m... | private void handleEnterEmergencyCallbackMode(android.os.Message msg) {
if (com.android.internal.telephony.cdma.CDMAPhone.DBG) {
android.telephony.Rlog.d(com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG, ("handleEnterEmergencyCallbackMode,mIsPhoneInEcmState= " + (mIsPhoneInEcmState)));
}
if ((m... |
private double[] computeZernike(int Nzern, int Nx, int Ny, double radius) {
mitiv.microscopy.Zernike zernike = new mitiv.microscopy.Zernike(Nx, Ny);
Z = zernike.zernikePupilMultipleOpt(Nzern, Nx, Ny, radius, mitiv.microscopy.MicroscopyModelPSF1D.NORMALIZED);
return Z = mitiv.utils.MathUtils.gram_schmidt_ort... | private double[] computeZernike() {
mitiv.microscopy.Zernike zernike = new mitiv.microscopy.Zernike(Nx, Ny);
Z = zernike.zernikePupilMultipleOpt(Nzern, Nx, Ny, radius, mitiv.microscopy.MicroscopyModelPSF1D.NORMALIZED);
return Z = mitiv.utils.MathUtils.gram_schmidt_orthonormalization(Z, Nx, Ny, Nzern);
} |
public void testConvertDuration() {
java.time.Duration sourceDuration = java.time.Duration.of(1000, java.time.temporal.ChronoUnit.NANOS);
java.time.Duration destinationDuration = null;
when(durationCreatorMock.create(sourceDuration)).thenReturn(sourceDuration);
java.lang.Object actualDuration = objectUn... | public void testConvertDuration() {
java.time.Duration sourceDuration = java.time.Duration.of(1000, java.time.temporal.ChronoUnit.NANOS);
java.time.Duration destinationDuration = null;
when(durationCreatorMock.create(sourceDuration)).thenReturn(sourceDuration);
java.lang.Object actualDuration = objectUn... |
public int getItemCountOfTypesUntil(@android.support.annotation.IntRange(from = 0)
int position, java.lang.Integer... viewTypes) {
java.util.List<java.lang.Integer> viewTypeList = java.util.Arrays.asList(viewTypes);
int count = 0;
for (int i = 0; i < position; i++) {
if (((autoMap) && (viewTypeList.... | public int getItemCountOfTypesUntil(@android.support.annotation.IntRange(from = 0)
int position, java.lang.Integer... viewTypes) {
java.util.List<java.lang.Integer> viewTypeList = java.util.Arrays.asList(viewTypes);
int count = 0;
for (int i = 0; i < position; i++) {
if (viewTypeList.contains(getIte... |
public java.lang.String CreateItem(@org.spring.Controller.RequestParam(value = "name")
java.lang.String iName, @org.spring.Controller.RequestParam(value = "description")
java.lang.String iDescription, @org.spring.Controller.RequestHeader(value = "token")
java.lang.String token, javax.servlet.http.HttpServletResponse ht... | public java.lang.String CreateItem(@org.spring.Controller.RequestParam(value = "name")
java.lang.String iName, @org.spring.Controller.RequestParam(value = "description")
java.lang.String iDescription, @org.spring.Controller.RequestHeader(value = "token")
java.lang.String token, javax.servlet.http.HttpServletResponse ht... |
public void actionPerformed(java.awt.event.ActionEvent e) {
java.lang.String str = tfTxt.getText();
taContent.setText(str);
tfTxt.setText("");
java.io.DataOutputStream dos;
try {
dos = new java.io.DataOutputStream(s.getOutputStream());
dos.writeUTF(str);
dos.flush();
... | public void actionPerformed(java.awt.event.ActionEvent e) {
java.lang.String str = tfTxt.getText();
taContent.setText(str);
tfTxt.setText("");
try {
dos.writeUTF(str);
dos.flush();
} catch (java.io.IOException e1) {
e1.printStackTrace();
}
} |
private synchronized void close(boolean checkForStaleScan) {
if ((status) != (io.fluo.core.impl.TransactionImpl.TxStatus.CLOSED)) {
status = io.fluo.core.impl.TransactionImpl.TxStatus.CLOSED;
if (checkForStaleScan && (!(commitAttempted))) {
io.fluo.core.oracle.Stamp stamp = env.getShared... | private synchronized void close(boolean checkForStaleScan) {
if ((status) != (io.fluo.core.impl.TransactionImpl.TxStatus.CLOSED)) {
status = io.fluo.core.impl.TransactionImpl.TxStatus.CLOSED;
if (checkForStaleScan && (!(commitAttempted))) {
io.fluo.core.oracle.Stamp stamp = env.getShared... |
public void searchActionListener(javax.faces.event.ActionEvent actionEvent) {
javax.faces.context.FacesContext facesContext = javax.faces.context.FacesContext.getCurrentInstance();
javax.faces.event.PhaseId phaseId = facesContext.getCurrentPhaseId();
com.liferay.faces.demos.bean.InputSearchBacking.logger.de... | public void searchActionListener(javax.faces.event.ActionEvent actionEvent) {
javax.faces.context.FacesContext facesContext = javax.faces.context.FacesContext.getCurrentInstance();
javax.faces.event.PhaseId phaseId = facesContext.getCurrentPhaseId();
com.liferay.faces.demos.bean.InputSearchBacking.logger.de... |
private void saveCurNote() {
java.lang.String str = mEtFastNote.toHtml();
str = str.replace("<del>", "<strike>");
str = str.replace("</del>", "</strike>");
timber.log.Timber.e(str);
ssthouse.love.xinying.note.FastNoteConfigUtil.getInstance(this).saveNote(str);
android.content.Intent intent = new... | private void saveCurNote() {
java.lang.String str = mEtFastNote.toHtml();
str = str.replace("<del>", "<strike>");
str = str.replace("</del>", "</strike>");
ssthouse.love.xinying.note.FastNoteConfigUtil.getInstance(this).saveNote(str);
android.content.Intent intent = new android.content.Intent(this, ... |
public void onItemSelected(android.widget.AdapterView<?> spinner, android.view.View view, int position, long itemId) {
if ((subcategoriesAdapter.getItemViewType(position)) == (com.ayuget.redface.ui.adapter.SubcategoriesAdapter.TYPE_CATEGORY)) {
subcategory = null;
}else {
subcategory = ((com.ayu... | public void onItemSelected(android.widget.AdapterView<?> spinner, android.view.View view, int position, long itemId) {
if (first) {
first = false;
return ;
}
if ((subcategoriesAdapter.getItemViewType(position)) == (com.ayuget.redface.ui.adapter.SubcategoriesAdapter.TYPE_CATEGORY)) {
... |
public android.support.v4.app.Fragment getItem(int position) {
switch (position) {
case 0 :
return new edu.uw.samueldc.assassin_manager.LobbyFragment().newInstance(edu.uw.samueldc.assassin_manager.MainActivity.userData.get("name"), edu.uw.samueldc.assassin_manager.MainActivity.userData.get("room... | public android.support.v4.app.Fragment getItem(int position) {
switch (position) {
case 0 :
return new edu.uw.samueldc.assassin_manager.LobbyFragment().newInstance(edu.uw.samueldc.assassin_manager.MainActivity.userData.get("name"), edu.uw.samueldc.assassin_manager.MainActivity.userData.get("room... |
public void removeTrap() {
java.util.Collection<model.InfluenceTile> list = getSet(1);
for (model.InfluenceTile it : list) {
if ((it.getTrap()) != null) {
model.Trap tr = it.getTrap();
tr.destroy();
}
}
} | public void removeTrap() {
java.util.Collection<model.InfluenceTile> list = getSet(1);
for (model.InfluenceTile it : list) {
if ((it.getTrap()) != null) {
model.Trap tr = it.getTrap();
tr.destroy();
tr = null;
}
}
} |
private org.dsa.iot.dslink.handshake.RemoteHandshake generateHandshake(org.vertx.java.core.Handler<java.lang.Exception> errorHandler) {
try {
if (!(running)) {
return null;
}
org.dsa.iot.dslink.util.URLInfo auth = configuration.getAuthEndpoint();
return org.dsa.iot.dslink... | private org.dsa.iot.dslink.handshake.RemoteHandshake generateHandshake(org.vertx.java.core.Handler<java.lang.Exception> errorHandler) {
try {
synchronized(this) {
if (!(running)) {
return null;
}
}
org.dsa.iot.dslink.util.URLInfo auth = configuration.g... |
public void setSongPosition(int changed) {
if ((this.clip) != null) {
this.clip.stop();
this.clip.setFramePosition(((this.clip.getFramePosition()) - changed));
this.clip.start();
}
} | public void setSongPosition(int position) {
if ((this.clip) != null) {
this.clip.stop();
java.lang.System.out.println(this.clip.getFramePosition());
this.clip.setFramePosition(position);
java.lang.System.out.println(this.clip.getFramePosition());
this.clip.start();
}
} |
void createEditText() {
android.util.Log.i("value1", "createEditText: 1");
SaveData.editTextList.add(editText);
editText.setLayoutParams(editParams);
editText.setTextColor(Color.BLACK);
editText.setTextSize(17);
editText.setHint("Comments");
editText.setHintTextColor(Color.DKGRAY);
editT... | void createEditText() {
SaveData.editTextList.add(editText);
editText.setLayoutParams(editParams);
editText.setTextColor(Color.BLACK);
editText.setTextSize(17);
editText.setHint("Comments");
editText.setHintTextColor(Color.DKGRAY);
editText.setPadding(20, 20, 20, 20);
editText.setBackgro... |
public void deployConfig(org.springframework.web.context.WebApplicationContext cxt) {
this.context = this.tomcatServer.addContext("", java.lang.System.getProperty("java.io.tmpdir"));
this.context.addApplicationListener(org.springframework.samples.portfolio.web.support.TomcatWebSocketTestServer.WS_APPLICATION_LI... | public void deployConfig(org.springframework.web.context.WebApplicationContext cxt) {
this.context = this.tomcatServer.addContext("", java.lang.System.getProperty("java.io.tmpdir"));
org.apache.catalina.startup.Tomcat.addServlet(context, "dispatcherServlet", new org.springframework.web.servlet.DispatcherServlet... |
public int[] getHighestFreq(int amount) {
int[] out = new int[amount];
for (int x = 0; x < amount; x++) {
int highest = 0;
for (int y = 0; y < (Input.number_nodes); y++) {
if ((frequence[y]) > highest) {
highest = frequence[y];
}
}
out[x] =... | public int[] getHighestFreq(int amount) {
int[] out = new int[amount];
for (int x = 0; x < amount; x++) {
int highest = 0;
for (int y = 0; y < (Input.number_nodes); y++) {
if ((frequence[y]) > (frequence[highest])) {
highest = y;
}
}
out[x]... |
public void run() {
try {
while ((totalConsumed.get()) < (NUM_MESSAGES)) {
my.cool.Message message = consumer.receive();
counter.incrementAndGet();
}
} catch (java.lang.Exception e) {
my.cool.PriorityAndPrefetch.log.error("Caught an unexpected error: ", e);
}... | public void run() {
try {
while ((counter.get()) < (NUM_MESSAGES)) {
my.cool.Message message = consumer.receive();
counter.incrementAndGet();
}
} catch (java.lang.Exception e) {
my.cool.PriorityAndPrefetch.log.error("Caught an unexpected error: ", e);
}
} |
private void writeNativeObject(final com.google.openrtb.OpenRtb.BidRequest.Imp.Native aNativ, final com.fasterxml.jackson.core.JsonGenerator aGen) throws java.io.IOException {
if (useNativeAsObject()) {
aGen.writeFieldName("request");
final com.google.openrtb.json.OpenRtbNativeJsonWriter nativeWrite... | private void writeNativeObject(final com.google.openrtb.OpenRtb.BidRequest.Imp.Native aNativ, final com.fasterxml.jackson.core.JsonGenerator aGen) throws java.io.IOException {
if (useNativeAsObject()) {
aGen.writeFieldName("request");
new com.google.openrtb.json.OpenRtbNativeJsonWriter(factory(), tr... |
protected void onActivityResult(int requestCode, int resultCode, android.content.Intent data) {
java.lang.System.out.println(((requestCode + ", ") + resultCode));
switch (requestCode) {
case com.dangerducks.cookit.MainActivity.RECIPE_ACTIVITY :
if (resultCode == (com.dangerducks.cookit.MainA... | protected void onActivityResult(int requestCode, int resultCode, android.content.Intent data) {
switch (requestCode) {
case com.dangerducks.cookit.MainActivity.RECIPE_ACTIVITY :
if (resultCode == (com.dangerducks.cookit.MainActivity.RECIPE_REMOVED)) {
}else
if (result... |
public void apply(org.gradle.api.Project project) {
org.shipkit.gradle.configuration.ShipkitConfiguration conf = project.getPlugins().apply(org.shipkit.internal.gradle.configuration.ShipkitConfigurationPlugin.class).getConfiguration();
java.lang.String ghUser = conf.getGitHub().getWriteAuthUser();
java.lang... | public void apply(org.gradle.api.Project project) {
org.shipkit.gradle.configuration.ShipkitConfiguration conf = project.getPlugins().apply(org.shipkit.internal.gradle.configuration.ShipkitConfigurationPlugin.class).getConfiguration();
java.lang.String writeToken = conf.getLenient().getGitHub().getWriteAuthToke... |
public static void init() throws java.beans.PropertyVetoException {
com.wireless.db.DBCon.init("192.168.33.100", "3306", "wireless_order_db", "root", "HelloZ315", false);
OssImage.Params.init("digie-image-test", com.wireless.pojo.oss.OSSParams.init("KMLtoTwkG5Jqaapu", "VZtrdLaO6WFcJQrvffO9XBPVpbKGRP", "oss.aliy... | public static void init() throws java.beans.PropertyVetoException {
com.wireless.db.DBCon.init("192.168.33.100", "3306", "wireless_order_db", "root", "HelloZ315");
OssImage.Params.init("digie-image-test", com.wireless.pojo.oss.OSSParams.init("KMLtoTwkG5Jqaapu", "VZtrdLaO6WFcJQrvffO9XBPVpbKGRP", "oss.aliyuncs.co... |
public static boolean isCurrentlyConnectedToVenuesWifi(@android.support.annotation.NonNull
android.content.Context context) {
final android.net.wifi.WifiManager wifiManager = ((android.net.wifi.WifiManager) (context.getApplicationContext().getSystemService(Context.WIFI_SERVICE)));
android.net.wifi.WifiInfo wifi... | public static boolean isCurrentlyConnectedToVenuesWifi(@android.support.annotation.NonNull
android.content.Context context) {
final android.net.wifi.WifiManager wifiManager = ((android.net.wifi.WifiManager) (context.getApplicationContext().getSystemService(Context.WIFI_SERVICE)));
android.net.wifi.WifiInfo wifi... |
public void onReceivedError(android.webkit.WebView view, android.webkit.WebResourceRequest req, android.webkit.WebResourceError rerr) {
captchaListener.onError(((req.toString()) + (rerr.toString())));
if ((captchaDialog.getProgressDialog()) != null) {
captchaDialog.getProgressDialog().dismiss();
}
... | public void onReceivedError(android.webkit.WebView view, android.webkit.WebResourceRequest req, android.webkit.WebResourceError rerr) {
captchaListener.onError(((req.toString()) + (rerr.toString())));
if ((captchaDialog.getProgressDialog()) != null) {
captchaDialog.getProgressDialog().dismiss();
}
... |
public static void main(java.lang.String[] args) throws java.io.IOException {
cona.pi.Main.readProps();
cona.pi.Ping ping = new cona.pi.Ping(cona.pi.Main.props.getProperty("rangefinder-topic"), cona.pi.Main.props.getProperty("ip"), cona.pi.Main.props.getProperty("rangefinderSensorID"), true, cona.pi.Main.props.... | public static void main(java.lang.String[] args) throws java.io.IOException {
cona.pi.Main.readProps();
cona.pi.Ping ping = new cona.pi.Ping(cona.pi.Main.props.getProperty("rangefinder-topic"), cona.pi.Main.props.getProperty("ip"), cona.pi.Main.props.getProperty("rangefinderSensorID"), true, cona.pi.Main.props.... |
public uk.co.nickthecoder.itchy.script.ScriptLanguage getLanguage(java.lang.String extension) {
uk.co.nickthecoder.itchy.script.ScriptLanguage result = this.languages.get(extension);
if (result == null) {
java.lang.System.out.println(("Creating a ScriptLanguage for extension : " + extension));
u... | public uk.co.nickthecoder.itchy.script.ScriptLanguage getLanguage(java.lang.String extension) {
uk.co.nickthecoder.itchy.script.ScriptLanguage result = this.languages.get(extension);
if (result == null) {
uk.co.nickthecoder.itchy.script.ScriptLanguageFactory factory = uk.co.nickthecoder.itchy.script.Scr... |
private void createJournal(src.Server.User currentUser, src.Server.Patient patient) {
if (currentUser.isDoctor()) {
src.Server.Journal newJournal = new src.Server.Journal(patient);
newJournal.addTreater(currentUser, currentUser);
journals.put(currentUser.getID(), newJournal);
try {
... | private void createJournal(src.Server.User currentUser, src.Server.Patient patient) {
if (currentUser.isDoctor()) {
src.Server.Journal newJournal = new src.Server.Journal(patient);
newJournal.addTreater(currentUser, currentUser);
journals.put(patient.getID(), newJournal);
try {
... |
public org.collectiveone.common.dto.GetResult<org.collectiveone.modules.model.dto.ModelDto> getModel(@org.springframework.web.bind.annotation.PathVariable(value = "initiativeId")
java.lang.String initiativeIdStr, @org.springframework.web.bind.annotation.RequestParam(defaultValue = "1")
java.lang.Integer level) {
ja... | public org.collectiveone.common.dto.GetResult<org.collectiveone.modules.model.dto.ModelDto> getModel(@org.springframework.web.bind.annotation.PathVariable(value = "initiativeId")
java.lang.String initiativeIdStr, @org.springframework.web.bind.annotation.RequestParam(defaultValue = "1")
java.lang.Integer level) {
ja... |
public void addmoney56(double amountadd, org.bukkit.entity.Player player) {
if ((iConomyversion) == 5) {
com.nijikokun.register.payment.Methods.getMethod().getAccount(player.getName()).add(amountadd);
}else
if ((iConomyversion) == 6) {
me.ibhh.xpShop.Account account = new com.iCo6.sy... | public void addmoney56(double amountadd, org.bukkit.entity.Player player) {
if ((iConomyversion) == 5) {
com.nijikokun.register.payment.Methods.getMethod().getAccount(player.getName()).add(amountadd);
}else
if ((iConomyversion) == 6) {
me.ibhh.xpShop.Account account = new com.iCo6.sy... |
public java.lang.Object instantiateItem(android.view.ViewGroup container, final int position) {
final android.view.View itemView = viewCreator.view(container);
itemView.setOnClickListener(new android.view.View.OnClickListener() {
@java.lang.Override
public void onClick(android.view.View v) {
... | public java.lang.Object instantiateItem(android.view.ViewGroup container, final int position) {
final android.view.View itemView = viewCreator.view(container);
if ((itemClickListener) != null) {
itemView.setOnClickListener(new android.view.View.OnClickListener() {
@java.lang.Override
... |
public void addTest() {
final es.supermarket.comparator.api.Products products = productsFactory.createProducts();
es.supermarket.comparator.api.Product product_one = productFactory.createProduct("product_one");
org.junit.Assert.assertEquals("Checking addTest(), initial size", products.getAll().size(), 0);
... | public void addTest() {
final es.supermarket.comparator.api.Products products = productsFactory.createProducts();
final es.supermarket.comparator.api.Product product_one = productFactory.createProduct("product_one");
products.add(product_one);
org.junit.Assert.assertEquals("Checking add(), product added... |
private void complete() {
status = com.frostwire.android.gui.transfers.YouTubeDownload.STATUS_COMPLETE;
manager.incrementDownloadsToReview();
if (completeFile.getAbsoluteFile().exists()) {
com.frostwire.android.gui.Librarian.instance().scan(getSavePath().getAbsoluteFile());
java.lang.String ... | private void complete() {
status = com.frostwire.android.gui.transfers.YouTubeDownload.STATUS_COMPLETE;
manager.incrementDownloadsToReview();
if (completeFile.getAbsoluteFile().exists()) {
com.frostwire.android.gui.Librarian.instance().scan(getSavePath().getAbsoluteFile());
com.frostwire.and... |
public static java.io.OutputStream getFileOutputSteam(android.content.Context context, java.lang.String fileName, android.support.v4.provider.DocumentFile root, java.lang.String... subDirs) {
android.support.v4.provider.DocumentFile parent = ml.puredark.hviewer.utils.DocumentUtil.getDirDocument(root, subDirs);
... | public static java.io.OutputStream getFileOutputSteam(android.content.Context context, java.lang.String fileName, android.support.v4.provider.DocumentFile root, java.lang.String... subDirs) {
android.support.v4.provider.DocumentFile parent = ml.puredark.hviewer.utils.DocumentUtil.getDirDocument(root, subDirs);
... |
public static void deserializeSupportCodeChangeCollection(java.io.ObjectInput in, java.util.Collection collection) throws java.io.IOException, java.lang.ClassNotFoundException {
int collectionSize = in.readInt();
for (int i = 0; i < collectionSize; i++) {
org.jini.rio.boot.SupportCodeChangeAnnotationCon... | public static void deserializeSupportCodeChangeCollection(java.io.ObjectInput in, java.util.Collection collection) throws java.io.IOException, java.lang.ClassNotFoundException {
int collectionSize = in.readInt();
for (int i = 0; i < collectionSize; i++) {
org.jini.rio.boot.SupportCodeChangeAnnotationCon... |
private java.util.List<com.example.entity.Job> getJobDetailsById(java.lang.String id) {
com.example.dao.CreateJobInfoDAO.LOG.info(("Search user job by client Id :" + id));
return hibernateTemplate.getSessionFactory().getCurrentSession().createCriteria(com.example.entity.Job.class).add(org.hibernate.criterion.Re... | private java.util.List<com.example.entity.Job> getJobDetailsById(java.math.BigDecimal id) {
com.example.dao.CreateJobInfoDAO.LOG.info(("Search user job by client Id :" + id));
return hibernateTemplate.getSessionFactory().getCurrentSession().createCriteria(com.example.entity.Job.class).add(org.hibernate.criterio... |
public double calculate(double[] x) {
return ((x[3]) * (x[2])) - (((((k9 * (x[5])) * (x[0])) * (x[0])) * (x[0])) * (x[0]));
} | public double calculate(double[] x) {
return ((x[3]) * (x[2])) - ((((k9 * (x[5])) * (x[0])) * (x[0])) * (x[0]));
} |
private void remove() {
if (!(this.contentAssistant.isPresent()))
this.contentAssistant.get().removeCompletionListener(this);
if (!(this.quickAssistant.isPresent()))
this.quickAssistant.get().removeCompletionListener(this);
} | private void remove() {
if (this.contentAssistant.isPresent())
this.contentAssistant.get().removeCompletionListener(this);
if (this.quickAssistant.isPresent())
this.quickAssistant.get().removeCompletionListener(this);
} |
private org.json.JSONObject parseRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException {
java.lang.String putData = org.georchestra.lib.file.FileUtils.asString(request.getInputStream());
org.json.JSONObject json;
try {
retu... | private org.json.JSONObject parseRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException {
try {
return new org.json.JSONObject(org.georchestra.lib.file.FileUtils.asString(request.getInputStream()));
} catch (org.json.JSONExcepti... |
public void onMapReady(com.google.android.gms.maps.GoogleMap googleMap) {
mMap = googleMap;
mMap.addMarker(new com.google.android.gms.maps.model.MarkerOptions().position(new com.google.android.gms.maps.model.LatLng(userLocation.getLatitude(), userLocation.getLongitude())).title("You"));
mMap.moveCamera(com.... | public void onMapReady(com.google.android.gms.maps.GoogleMap googleMap) {
mMap = googleMap;
mMap.addMarker(new com.google.android.gms.maps.model.MarkerOptions().position(new com.google.android.gms.maps.model.LatLng(userLocation.getLatitude(), userLocation.getLongitude())).title("You"));
mMap.moveCamera(com.... |
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column) {
this.value = ((org.rr.jeborker.db.item.EbookPropertyItem) (value));
final java.awt.Component tableCellComponent = renderer.getTableCellComponent(table, value, true, ... | public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column) {
this.value = ((org.rr.jeborker.db.item.EbookPropertyItem) (value));
tableCellComponent = renderer.getTableCellComponent(table, value, true, true, row, column);
i... |
public boolean matches(DebugUtils.DebugFlagBase... flags) {
if ((flags.length) == 0)
return true;
for (DebugUtils.DebugFlagBase flag : flags) {
if ((flag == null) || (((value) & (flag.toInt())) != 0))
return true;
}
return false;
} | public boolean matches(DebugUtils.DebugFlagBase... flags) {
for (DebugUtils.DebugFlagBase flag : flags) {
if ((flag == null) || (((value) & (flag.toInt())) != 0))
return true;
}
return false;
} |
public void run() {
try {
java.text.DateFormat dateFormat = new java.text.SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
java.util.Date date = new java.util.Date();
java.lang.String finalMsg = ((dateFormat.format(date)) + ": ") + (msg);
synchronized(this) {
logger.LoggerThread.... | public void run() {
try {
java.text.DateFormat dateFormat = new java.text.SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
java.util.Date date = new java.util.Date();
java.lang.String finalMsg = ((dateFormat.format(date)) + ": ") + (msg);
logger.LoggerThread.log(finalMsg);
} catch (java.... |
public <T extends java.lang.Object> void set(T value, java.lang.String... indices) {
if ((indices.length) == 0) {
set(value.toString());
}else
if ((indices.length) == 1) {
set(value.toString(), indices[0]);
}else {
set(value.toString(), indices[0], java.util.Array... | public void set(java.lang.Object value, java.lang.String... indices) {
if ((indices.length) == 0) {
set(value.toString());
}else
if ((indices.length) == 1) {
set(value.toString(), indices[0]);
}else {
set(value.toString(), indices[0], java.util.Arrays.copyOfRange(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.