buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public void put(K key, V value) {
int index = java.util.Collections.binarySearch(mKeys, key);
if (index >= 0) {
mValues.set(index, value);
}else {
mKeys.add((((-1) * index) - 1), key);
mValues.add((((-1) * index) - 1), value);
}
} | public int put(K key, V value) {
int index = java.util.Collections.binarySearch(mKeys, key);
if (index >= 0) {
mValues.set(index, value);
return 0;
}else {
mKeys.add((((-1) * index) - 1), key);
mValues.add((((-1) * index) - 1), value);
return 1;
}
} |
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) {
android.view.View vv = super.getLayoutInflater(savedInstanceState).inflate(R.layout.fragment_login, container);
android.widget.LinearLayout.LayoutParams lp = new ... | public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) {
android.view.View vv = super.getLayoutInflater(savedInstanceState).inflate(R.layout.fragment_login, null);
android.widget.LinearLayout.LayoutParams lp = new andro... |
public static java.lang.String MessageGenerate(com.upokecenter.test.Message msg) {
if (msg == null) {
org.junit.Assert.fail();
}
java.lang.String ret = msg.Generate();
org.junit.Assert.assertEquals(2, com.upokecenter.test.EncodingTest.IsGoodAsciiMessageFormat(ret, false, ""));
return ret;
} | public static java.lang.String MessageGenerate(com.upokecenter.test.Message msg) {
if (msg == null) {
org.junit.Assert.fail();
}
java.lang.String ret = msg.Generate();
org.junit.Assert.assertEquals(ret, 2, com.upokecenter.test.EncodingTest.IsGoodAsciiMessageFormat(ret, false, ""));
return re... |
public java.util.Collection<codeu.chat.common.User> getUsersExcluding(java.util.Collection<codeu.chat.util.Uuid> ids) {
java.lang.System.out.println("HERE 6");
users = new java.util.ArrayList<>();
try {
Serializers.INTEGER.write(source.out(), NetworkCode.GET_USERS_EXCLUDING_REQUEST);
codeu.c... | public java.util.Collection<codeu.chat.common.User> getUsersExcluding(java.util.Collection<codeu.chat.util.Uuid> ids) {
users = new java.util.ArrayList<>();
try {
Serializers.INTEGER.write(source.out(), NetworkCode.GET_USERS_EXCLUDING_REQUEST);
codeu.chat.util.Serializers.collection(Uuid.SERIALI... |
public java.lang.Object fetchData() throws java.util.NoSuchElementException, paintcomponents.NoConnectingLineSegmentException, paintcomponents.data.DataFromPointNoDataProviderException, paintcomponents.data.DataFromPointProviderCannotProvideDataException {
if ((this.lineSegment) == null)
throw new paintcomp... | public java.lang.Object fetchData() throws java.util.NoSuchElementException, paintcomponents.NoConnectingLineSegmentException, paintcomponents.data.DataFromPointNoDataProviderException, paintcomponents.data.DataFromPointProviderCannotProvideDataException {
if ((this.lineSegment) == null)
throw new paintcomp... |
protected void discoverInfoFields(ca.mcgill.mcb.pcingola.vcf.VcfEntry vcfEntry) {
if (!(useInfoFieldAll))
return ;
infoFields = new java.util.HashSet<java.lang.String>();
for (java.lang.String info : vcfEntry.getInfoKeys()) {
if (!(info.isEmpty()))
infoFields.add(info);
... | protected void discoverInfoFields(ca.mcgill.mcb.pcingola.vcf.VcfEntry vcfEntry) {
if (!(useInfoFieldAll))
return ;
if ((infoFields) == null)
infoFields = new java.util.HashSet<java.lang.String>();
for (java.lang.String info : vcfEntry.getInfoKeys()) {
if (!(info.isEmpty()))... |
public void onClick(com.linangran.tgfcapp.activities.View view) {
com.linangran.tgfcapp.data.ForumBasicData forumBasicData = ((com.linangran.tgfcapp.data.ForumBasicData) (view.getTag()));
this.drawerLayout.closeDrawers();
this.drawerLayout.post(new java.lang.Runnable() {
@java.lang.Override
... | public void onClick(android.view.View view) {
com.linangran.tgfcapp.data.ForumBasicData forumBasicData = ((com.linangran.tgfcapp.data.ForumBasicData) (view.getTag()));
this.drawerLayout.closeDrawers();
this.drawerLayout.post(new java.lang.Runnable() {
@java.lang.Override
public void run() {
... |
protected void setSteps(java.lang.String[] steps, java.lang.String[] stepsSubtitles, java.lang.String[] stepsButtonTexts) {
this.steps = new java.util.ArrayList<>(java.util.Arrays.asList(steps));
this.stepsButtonTexts = new java.util.ArrayList<>(java.util.Arrays.asList(stepsButtonTexts));
if (stepsSubtitles... | protected void setSteps(java.lang.String[] steps, java.lang.String[] stepsSubtitles, java.lang.String[] stepsButtonTexts) {
this.steps = new java.util.ArrayList<>(java.util.Arrays.asList(steps));
this.stepsButtonTexts = new java.util.ArrayList<>(java.util.Arrays.asList(stepsButtonTexts));
if (stepsSubtitles... |
boolean isPrime(java.math.BigInteger m) {
int n = m.intValue();
java.lang.System.out.println(((m + "-") + n));
if (n < 3) {
return false;
}
for (int i = 2; i <= (java.lang.Math.sqrt(n)); i++) {
if ((n % i) == 0) {
return false;
}
}
return true;
} | boolean isPrime(java.math.BigInteger m) {
int n = m.intValue();
if (n < 3) {
return false;
}
for (int i = 2; i <= (java.lang.Math.sqrt(n)); i++) {
if ((n % i) == 0) {
return false;
}
}
return true;
} |
private boolean saveText(java.lang.String text, java.io.File textFile) {
try {
java.io.PrintWriter out = new java.io.PrintWriter(new java.io.FileWriter(textFile));
out.print(text);
out.flush();
out.close();
return true;
} catch (java.io.IOException e) {
com.gabezt... | public boolean saveText(java.lang.String text, java.io.File textFile) {
try {
java.io.PrintWriter out = new java.io.PrintWriter(new java.io.FileWriter(textFile));
out.print(text);
out.flush();
out.close();
return true;
} catch (java.io.IOException e) {
com.gabezte... |
public void onItemClick(android.view.View view, final int position) {
java.lang.String offset = "0";
if ((resultReqCountList.get(position).getReservationReqStatus().getStatusCount()) != "0") {
hotelReservationStatusListPresenter.getHotelReservationStatusList("req_user_list", "fa", tools.Util.getUseRIdFr... | public void onItemClick(android.view.View view, final int position) {
java.lang.String offset = "0";
if ((resultReqCountList.get(position).getReservationReqStatus().getStatusCount()) != "0") {
hotelReservationStatusListPresenter.getHotelReservationStatusList("req_user_list", "fa", tools.Util.getUseRIdFr... |
public boolean accept(java.io.File f) {
if (f.isDirectory()) {
return false;
}
java.lang.String s = f.getName();
return (s.endsWith(("." + (suffix)))) || (s.endsWith(("." + (suffix.toUpperCase()))));
} | public boolean accept(java.io.File f) {
if (f.isDirectory()) {
return true;
}
java.lang.String s = f.getName();
return (s.endsWith(("." + (suffix)))) || (s.endsWith(("." + (suffix.toUpperCase()))));
} |
private void stop() {
if ((server) != null)
server.close();
java.lang.System.out.println("Server closed!");
start.setSelected(false);
stop.setSelected(false);
selected = false;
stop.setEnabled(false);
clear.setEnabled(true);
} | public void stop() {
if ((server) != null)
server.close();
java.lang.System.out.println("Server closed!");
start.setSelected(false);
stop.setSelected(false);
selected = false;
stop.setEnabled(false);
clear.setEnabled(true);
} |
private static java.lang.String doOnePage(java.io.File file) throws java.lang.Exception {
org.jsoup.nodes.Document doc = org.jsoup.Jsoup.parse(file, "windows-1255", "");
com.mycompany.app.DaatHitzoniim.log.println(doc);
java.lang.String output = doc.body().text();
output = com.mycompany.app.DaatHitzonii... | private static java.lang.String doOnePage(java.io.File file) throws java.lang.Exception {
org.jsoup.nodes.Document doc = org.jsoup.Jsoup.parse(file, "windows-1255", "");
java.lang.String output = doc.body().text();
output = com.mycompany.app.DaatHitzoniim.removeNeedlessChars(output);
return output;
} |
public void onClick(android.content.DialogInterface dialog, int whichButton) {
player.setName(editView.getText().toString());
player.setDropped(cb.isChecked());
if (cb.isChecked()) {
((com.nag.android.bs_match_maker.AppCore) (getActivity())).updateMatch();
}
listview.getAdapter().getView(pos... | public void onClick(android.content.DialogInterface dialog, int whichButton) {
player.setName(editView.getText().toString());
player.setDropped(cb.isChecked());
if ((cb.isChecked()) != value) {
((com.nag.android.bs_match_maker.AppCore) (getActivity())).updateMatch();
}
listview.getAdapter().... |
public void recalculateTotal() {
double total = 0.0;
java.util.Iterator it = itemPool.entrySet().iterator();
while (it.hasNext()) {
java.util.Map.Entry pair = ((java.util.Map.Entry) (it.next()));
total += ((com.iankeefer.model.items.Item) (pair.getValue())).getPrice().getValue();
it.... | public void recalculateTotal() {
double total = 0.0;
java.util.Iterator it = itemPool.entrySet().iterator();
while (it.hasNext()) {
java.util.Map.Entry pair = ((java.util.Map.Entry) (it.next()));
for (com.iankeefer.model.items.Item item : ((java.util.ArrayList<com.iankeefer.model.items.Item>... |
protected ru.buepl.mobile.application.data.Application collectApplicationDataToSave() {
ru.buepl.mobile.application.data.professional_development.ApplicationType applicationType = ru.buepl.mobile.application.data.professional_development.ApplicationType.builder().course(proDevApplicationFor).level(level).build();
... | protected ru.buepl.mobile.application.data.Application collectApplicationDataToSave() {
ru.buepl.mobile.application.data.professional_development.ApplicationType applicationType = ru.buepl.mobile.application.data.professional_development.ApplicationType.builder().course(proDevApplicationFor).level(level).build();
... |
private void createShareDB(android.database.sqlite.SQLiteDatabase db) {
java.lang.String createTable = (((((((((("CREATE TABLE " + (in.codehex.shareipo.app.Config.TABLE_SHARE)) + "(") + (in.codehex.shareipo.app.Config.KEY_ID)) + " INTEGER PRIMARY KEY, ") + (in.codehex.shareipo.app.Config.KEY_USER)) + " TEXT,") + (i... | private void createShareDB(android.database.sqlite.SQLiteDatabase db) {
java.lang.String createTable = (((((((((("CREATE TABLE " + (in.codehex.shareipo.app.Config.TABLE_SHARE)) + "(") + (in.codehex.shareipo.app.Config.KEY_ID)) + " INTEGER PRIMARY KEY, ") + (in.codehex.shareipo.app.Config.KEY_USER)) + " TEXT, ") + (... |
public void testExecute_WhenSDNReturnsNullNetworkElement_ThrowsVmidcException() throws java.lang.Exception {
org.osc.core.broker.service.tasks.conformance.k8s.securitygroup.CreateK8sLabelPodTask task = this.factoryTask.create(org.osc.core.broker.service.tasks.conformance.k8s.securitygroup.NETWORK_ELEMENT_NOT_FOUND_... | public void testExecute_WhenSDNReturnsNullNetworkElement_ThrowsVmidcException() throws java.lang.Exception {
org.osc.core.broker.service.tasks.conformance.k8s.securitygroup.CreateK8sLabelPodTask task = this.factoryTask.create(org.osc.core.broker.service.tasks.conformance.k8s.securitygroup.NETWORK_ELEMENT_NOT_FOUND_... |
public void onReceive(android.content.Context context, android.content.Intent intent) {
this.unregisterReceiver(this);
try {
if (intent.getAction().equals(FileBrowser.ACTION_DIRECTORY_SELECTED))
location.setText(intent.getStringExtra("folder"));
} catch (java.lang.Exception e) {... | public void onReceive(android.content.Context context, android.content.Intent intent) {
unregisterReceiver(this);
try {
if (intent.getAction().equals(FileBrowser.ACTION_DIRECTORY_SELECTED))
location.setText(intent.getStringExtra("folder"));
} catch (java.lang.Exception e) {
... |
public void onSuccess(com.google.firebase.storage.UploadTask.TaskSnapshot taskSnapshot) {
android.net.Uri downloadUrl = taskSnapshot.getDownloadUrl();
com.google.firebase.database.FirebaseDatabase database = com.google.firebase.database.FirebaseDatabase.getInstance();
final com.google.firebase.database.Data... | public void onSuccess(com.google.firebase.storage.UploadTask.TaskSnapshot taskSnapshot) {
android.net.Uri downloadUrl = taskSnapshot.getDownloadUrl();
com.google.firebase.database.FirebaseDatabase database = com.google.firebase.database.FirebaseDatabase.getInstance();
final com.google.firebase.database.Data... |
protected void decryptBuffer(java.nio.ByteBuffer out) throws java.io.IOException {
int inputSize = inBuffer.remaining();
try {
int n = cipher.update(inBuffer, out);
if (n < inputSize) {
cipher.doFinal(inBuffer, outBuffer);
cipherReset = true;
}
} catch (javax.... | protected void decryptBuffer(java.nio.ByteBuffer out) throws java.io.IOException {
int inputSize = inBuffer.remaining();
try {
int n = cipher.update(inBuffer, out);
if (n < inputSize) {
cipher.doFinal(inBuffer, out);
cipherReset = true;
}
} catch (javax.crypto... |
public void geometryType() {
org.expath.ns.GeoTest.run(("geo:geometryType(<gml:MultiPoint><gml:Point>" + (("<gml:coordinates>1,1</gml:coordinates></gml:Point>" + "<gml:Point><gml:coordinates>1,2</gml:coordinates></gml:Point>") + "</gml:MultiPoint>)")), "gml:MultiPoint");
org.expath.ns.GeoTest.error("geo:geometr... | public void geometryType() {
org.expath.ns.GeoTest.run(("geo:geometryType(<gml:MultiPoint><gml:Point>" + (("<gml:coordinates>1,1</gml:coordinates></gml:Point>" + "<gml:Point><gml:coordinates>1,2</gml:coordinates></gml:Point>") + "</gml:MultiPoint>)")), "gml:MultiPoint");
org.expath.ns.GeoTest.error("geo:geometr... |
public void newSession(java.lang.String username, ninja.Context context) {
www.purple.mixxy.models.User user = userDao.getUser(username);
if (user == null) {
context.getFlashScope().error("Invalid user.");
loginError(context);
}
context.getSession().put("username", user.username);
co... | public void newSession(www.purple.mixxy.models.User user, ninja.Context context) {
context.getSession().put("username", user.username);
context.getSession().put("userNickname", user.firstname);
context.getSession().put("userAvatar", user.pictureUrl);
context.getFlashScope().success("login.loginSuccessfu... |
private void updateItemSuggestions() {
standard.engine.Room current = player.getLocation();
item_suggestions.clear();
java.util.ArrayList<java.lang.String> itemsPresent = current.listAllItems(this);
for (java.lang.String itemId : itemsPresent) {
item_suggestions.add(itemId);
}
java.util.... | private void updateItemSuggestions() {
standard.engine.Room current = player.getLocation();
item_suggestions.clear();
java.util.ArrayList<java.lang.String> itemsPresent = current.listAllItems(this);
for (java.lang.String itemId : itemsPresent) {
item_suggestions.add(itemId);
}
java.util.... |
public boolean keyUp(int keycode) {
if ((keycode == (Input.Keys.BACK)) || (keycode == (Input.Keys.ESCAPE))) {
if (((backKey) == true) && (backDown)) {
if ((gsm.currentState) != 0) {
quit = true;
return true;
}else {
gsm.startOpenScreen(... | public boolean keyUp(int keycode) {
if ((keycode == (Input.Keys.BACK)) || (keycode == (Input.Keys.ESCAPE))) {
if (((backKey) == true) && (backDown)) {
if ((gsm.currentState) == 0) {
quit = true;
return true;
}else {
gsm.startOpenScreen(... |
protected void onCreate(android.os.Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
boolean isUserFirstTime = com.beehyv.findmissingchild.utilities.Utils.readSharedSetting(getApplicationContext(), Utils.PREFERENCES_FILE);
android.content.Intent introIntent = new android.content.Intent(getApp... | protected void onCreate(android.os.Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
boolean isUserFirstTime = com.beehyv.findmissingchild.utilities.Utils.readSharedSetting(getApplicationContext(), Utils.PREFERENCES_FILE);
android.content.Intent introIntent = new android.content.Intent(getApp... |
protected boolean isAdminUser(java.lang.String uid) {
boolean isAdmin;
com.example.admin1.gymtracker.models.Member currentMember;
if (((members) != null) && (hasProfile(uid))) {
currentMember = members.get(uid);
if ((currentMember.getIsAdmin()) && (isDeletedUser(uid))) {
isAdmin ... | protected boolean isAdminUser(java.lang.String uid) {
boolean isAdmin;
com.example.admin1.gymtracker.models.Member currentMember;
if (((members) != null) && (hasProfile(uid))) {
currentMember = members.get(uid);
if ((currentMember.getIsAdmin()) && (isDeletedUser(uid))) {
isAdmin ... |
public void update() {
done = false;
int currentFrame = ((counter)++) / (animation.Animation.ANIMATION_SPEED);
if (currentFrame >= (totalFrames)) {
resetCounter();
if ((--(currentLoop)) < 1) {
done = true;
resetLoops();
}
}
java.lang.String filePath = ... | public void update() {
done = false;
int currentFrame = ((counter)++) / (animation.Animation.ANIMATION_SPEED);
if (currentFrame >= (totalFrames)) {
resetCounter();
currentFrame = 0;
if ((--(currentLoop)) < 1) {
done = true;
resetLoops();
}
}
ja... |
public void removeListeners() {
if (!(href.equals(""))) {
java.lang.String value;
value = m_oBrowser.getUrl();
java.lang.System.out.println("set browser to blank screen");
m_oBrowser.setUrl("about:blank");
if ((!(value.equals(""))) && (!(value.equals("about:blank")))) {
... | public void removeListeners() {
if ((!(href.equals(""))) && ((m_oBrowser) != null)) {
java.lang.String value;
value = m_oBrowser.getUrl();
java.lang.System.out.println("set browser to blank screen");
m_oBrowser.setUrl("about:blank");
if ((!(value.equals(""))) && (!(value.equa... |
private void B_OwnersMouseClicked(java.awt.event.MouseEvent evt) {
ScrollPane_Owner.setVisible(true);
ScrollPane_Player.setVisible(false);
ScrollPane_Team.setVisible(false);
Panel_Person.setVisible(false);
Panel_Buttons.setVisible(false);
Panel_Statistics.setVisible(false);
ScrollPane_TeamDa... | private void B_OwnersMouseClicked(java.awt.event.MouseEvent evt) {
ScrollPane_Owner.setVisible(true);
ScrollPane_Player.setVisible(false);
ScrollPane_Team.setVisible(false);
Panel_Person.setVisible(false);
Panel_Buttons.setVisible(false);
Panel_Statistics.setVisible(false);
ScrollPane_TeamDa... |
public void run() {
com.unbelievable.munin.MuninNode mn = com.unbelievable.utils.Generic.getMuninNode(nodeId);
try {
if (mn != null) {
mn.run();
}else {
com.unbelievable.muninmxcd.logger.error((("Tried to Run job for NodeID: " + (nodeId)) + " but this node is not in nodel... | public void run() {
mn = com.unbelievable.utils.Generic.getMuninNode(nodeId);
try {
if ((mn) != null) {
mn.run();
}else {
com.unbelievable.muninmxcd.logger.error((("Tried to Run job for NodeID: " + (nodeId)) + " but this node is not in nodelist :("));
}
} catc... |
public void storeTransaction(com.revature.pojos.Account account, double amount, int type) {
java.lang.System.out.println("Storing Transaction");
try (java.sql.Connection conn = com.revature.util.ConnectionUtil.getConnection()) {
java.sql.CallableStatement cs = conn.prepareCall("{call store_transaction(?... | public void storeTransaction(com.revature.pojos.Account account, double amount, int type) {
java.lang.System.out.println("Storing Transaction");
try (java.sql.Connection conn = com.revature.util.ConnectionUtil.getConnection()) {
java.sql.CallableStatement cs = conn.prepareCall("{call store_transaction(?... |
public double findSqrt(double n, int precision) {
double p = 1;
while ((precision--) > 0)
p /= 10;
double x = n;
double x_temp = x;
do {
x = x_temp;
x_temp = (x / 2) + ((n / 2) / x);
} while ((x - x_temp) > p );
return x;
} | public double findSqrt(double n, int precision) {
double p = 1;
while ((precision--) > 0)
p /= 10;
double x = n;
double x_temp = x;
do {
x = x_temp;
x_temp = (x / 2) + ((n / 2) / x);
} while ((java.lang.Math.abs((x - x_temp))) > p );
return x;
} |
protected void onPostExecute(android.net.Uri result) {
super.onPostExecute(result);
if ((result != null) && (!(android.text.TextUtils.isEmpty(result.toString())))) {
new vandy.mooc.DownloadImageActivity.FilterImageTask().execute(result);
}else {
android.content.Intent intent = getIntent();
... | protected void onPostExecute(android.net.Uri result) {
super.onPostExecute(result);
if ((result != null) && (!(android.text.TextUtils.isEmpty(result.toString())))) {
new vandy.mooc.DownloadImageActivity.FilterImageTask().execute(result);
}else {
android.content.Intent intent = getIntent();
... |
public void onRequestPermissionsResult(int requestCode, @android.support.annotation.NonNull
java.lang.String[] permissions, @android.support.annotation.NonNull
int[] grantResults) {
if ((com.sample.camera.view.ViewActivity.PERMISSION_REQUEST_CODE_CAMERA) != requestCode) {
super.onRequestPermissionsResult(re... | public void onRequestPermissionsResult(int requestCode, @android.support.annotation.NonNull
java.lang.String[] permissions, @android.support.annotation.NonNull
int[] grantResults) {
if ((com.sample.camera.view.ViewActivity.PERMISSION_REQUEST_CODE_CAMERA) != requestCode) {
super.onRequestPermissionsResult(re... |
public synchronized javax.swing.JDialog getInspector() {
org.opensourcephysics.media.core.PerspectiveFilter.Inspector myInspector = inspector;
if (myInspector == null) {
myInspector = new org.opensourcephysics.media.core.PerspectiveFilter.Inspector();
}
if ((myInspector.isModal()) && ((vidPanel)... | public synchronized javax.swing.JDialog getInspector() {
org.opensourcephysics.media.core.PerspectiveFilter.Inspector myInspector = inspector;
if (myInspector == null) {
myInspector = new org.opensourcephysics.media.core.PerspectiveFilter.Inspector();
}
if ((myInspector.isModal()) && ((vidPanel)... |
public static final long getFileSize_Type(java.lang.String url, java.lang.String userAgent, java.util.Map<java.lang.String, java.lang.String> headers) {
switch (sune.etc.faso.video.VideoFormat.get(url)) {
case M3U8 :
return sune.etc.faso.util.Utils.FILE_SIZE_M3U8 ? sune.etc.faso.util.Utils.getFi... | public static final long getFileSize_Type(java.lang.String url, java.lang.String userAgent, java.util.Map<java.lang.String, java.lang.String> headers) {
switch (sune.etc.faso.video.VideoFormat.get(url)) {
case M3U8 :
return sune.etc.faso.util.Utils.FILE_SIZE_M3U8 ? sune.etc.faso.util.Utils.getFi... |
private static boolean isLineLongDate(java.lang.String line) {
java.lang.String[] lineParts = line.split(",");
if ((lineParts.length) < 2)
return false;
java.lang.String[] monthDay = lineParts[0].split(" ");
java.lang.String year = lineParts[1];
return (org.apache.commons.lang.StringUti... | private static boolean isLineLongDate(java.lang.String line) {
java.lang.String[] lineParts = line.split(",");
if ((lineParts.length) < 2)
return false;
java.lang.String[] monthDay = lineParts[0].split(" ");
java.lang.String year = lineParts[1];
java.lang.System.out.println((((monthDay[... |
public void onDataChange(com.google.firebase.database.DataSnapshot dataSnapshot) {
br.com.sardinha.iohan.eventos.Usuario user = dataSnapshot.getValue(br.com.sardinha.iohan.eventos.Usuario.class);
user.setEventosConfirmados(((user.getEventosConfirmados()) + 1));
if (!(CLICKED)) {
usersReference.child... | public void onDataChange(com.google.firebase.database.DataSnapshot dataSnapshot) {
br.com.sardinha.iohan.eventos.Usuario user = dataSnapshot.getValue(br.com.sardinha.iohan.eventos.Usuario.class);
user.setEventosConfirmados(((user.getEventosConfirmados()) + 1));
if (!(CLICKED)) {
usersReference.child... |
public void actionPerformed(java.awt.event.ActionEvent e) {
try {
if (Constants.GENERATE_CLIENT_ID_COMMAND.equals(e.getActionCommand())) {
clientId.setText(org.apache.jmeter.protocol.mqtt.utilities.Utils.UUIDGenerator());
}else
if (Constants.RESET_CREDENTIALS.equals(e.getActi... | public void actionPerformed(java.awt.event.ActionEvent e) {
if (Constants.GENERATE_CLIENT_ID_COMMAND.equals(e.getActionCommand())) {
clientId.setText(org.apache.jmeter.protocol.mqtt.utilities.Utils.UUIDGenerator());
}else
if (Constants.RESET_CREDENTIALS.equals(e.getActionCommand())) {
... |
private void populateData(boolean doAnimate, java.lang.String... args) {
if ((data) != null) {
data.clear();
mAdapter.notifyDataSetChanged();
}
new com.benrcarvergmail.cvhsmobileapplication.AnnouncementsFragment.DownloadAnnouncements().execute(defaultSpreadsheetUrl);
if (doAnimate) {
... | private boolean populateData(boolean doAnimate) {
if ((data) != null) {
data.clear();
mAdapter.notifyDataSetChanged();
}
new com.benrcarvergmail.cvhsmobileapplication.AnnouncementsFragment.DownloadAnnouncements().execute(defaultSpreadsheetUrl);
if (doAnimate) {
mAnimatedRecyclerV... |
private void printHtmlOptionUsage(final java.io.PrintStream stream, final picard.cmdline.CommandLineParser.OptionDefinition optionDefinition) {
final java.lang.String type = getUnderlyingType(optionDefinition.field).getSimpleName();
final java.lang.String optionLabel = ((((prefixDot) + (optionDefinition.name)) ... | private void printHtmlOptionUsage(final java.io.PrintStream stream, final picard.cmdline.CommandLineParser.OptionDefinition optionDefinition) {
final java.lang.String type = getUnderlyingType(optionDefinition.field).getSimpleName();
final java.lang.String optionLabel = ((((prefixDot) + (optionDefinition.name)) ... |
public void run() {
while ((stopped.get()) && (!(java.lang.Thread.interrupted()))) {
syncPolicy.sync(com.tencent.angel.psagent.PSAgentContext.get().getMatricesCache());
try {
java.lang.Thread.sleep(syncTimeIntervalMS);
} catch (java.lang.InterruptedException e) {
}
} ... | public void run() {
while ((!(stopped.get())) && (!(java.lang.Thread.interrupted()))) {
syncPolicy.sync(com.tencent.angel.psagent.PSAgentContext.get().getMatricesCache());
try {
java.lang.Thread.sleep(syncTimeIntervalMS);
} catch (java.lang.InterruptedException e) {
}
... |
public boolean isInside(org.bukkit.Location l) {
return (l.toVector().isInAABB(org.bukkit.util.Vector.getMinimum(v1, v2).add(new org.bukkit.util.Vector((-1), (-1), (-1))), org.bukkit.util.Vector.getMaximum(v1, v2).add(new org.bukkit.util.Vector(1, 1, 1)))) && (l.getWorld().getName().equals(world));
} | public boolean isInside(org.bukkit.Location l) {
return (l.toVector().isInAABB(org.bukkit.util.Vector.getMinimum(v1, v2), org.bukkit.util.Vector.getMaximum(v1, v2).add(new org.bukkit.util.Vector(1, 1, 1)))) && (l.getWorld().getName().equals(world));
} |
public io.fabric8.che.starter.model.server.CheServerInfo getCheServerInfoOnOpenShift(@org.springframework.web.bind.annotation.RequestParam
java.lang.String masterUrl, @org.springframework.web.bind.annotation.RequestParam
java.lang.String namespace, @io.swagger.annotations.ApiParam(value = "OpenShift token", required = ... | public io.fabric8.che.starter.model.server.CheServerInfo getCheServerInfoOnOpenShift(@org.springframework.web.bind.annotation.RequestParam
java.lang.String masterUrl, @org.springframework.web.bind.annotation.RequestParam
java.lang.String namespace, @io.swagger.annotations.ApiParam(value = "OpenShift token", required = ... |
public void getTicketByMilestoneWithTicketFilterTest() {
com.assembla.client.PagedIterator<com.assembla.Ticket> tickets = ticketService.getTicketsByMilestone("123", TicketStatusFilter.ALL);
com.assembla.client.PagedAssemblaRequest request = new com.assembla.client.PagedAssemblaRequest("/spaces/test_space_id/tic... | public void getTicketByMilestoneWithTicketFilterTest() {
com.assembla.client.PagedIterator<com.assembla.Ticket> tickets = ticketService.getTicketsByMilestone("123", TicketStatusFilter.ALL);
com.assembla.client.PagedAssemblaRequest request = new com.assembla.client.PagedAssemblaRequest("/spaces/test_space_id/tic... |
public void receiveCommand(android.webkit.WebView root, int commandId, @javax.annotation.Nullable
com.facebook.react.bridge.ReadableArray args) {
super.receiveCommand(root, commandId, args);
switch (commandId) {
case com.github.alinz.reactnativewebviewbridge.WebViewBridgeManager.COMMAND_INJECT_BRIDGE_SC... | public void receiveCommand(android.webkit.WebView root, int commandId, @javax.annotation.Nullable
com.facebook.react.bridge.ReadableArray args) {
super.receiveCommand(root, commandId, args);
switch (commandId) {
case com.github.alinz.reactnativewebviewbridge.WebViewBridgeManager.COMMAND_INJECT_BRIDGE_SC... |
public java.util.List<locker.Accounts> List_Accounts(locker.User usuario) {
try {
iniciaOperacion();
int usuarioAux = usuario.getIdUser();
org.hibernate.Query query2 = sesion.createQuery(("SELECT a FROM Accounts a WHERE owner=" + usuarioAux));
java.util.List<locker.Accounts> accounts... | public java.util.List<locker.Accounts> List_Accounts(locker.User usuario) {
try {
iniciaOperacion();
int usuarioAux = usuario.getIdUser();
org.hibernate.Query query2 = sesion.createQuery(("SELECT a FROM Accounts a WHERE owner=" + usuarioAux));
java.util.List<locker.Accounts> accounts... |
public void onCreate() {
super.onCreate();
mapd.android.phoenix.watchyourself.SA mAccessory = new mapd.android.phoenix.watchyourself.SA();
try {
mAccessory.initialize(this);
} catch (com.samsung.android.sdk.SsdkUnsupportedException e) {
if ((processUnsupportedException(e)) == true) {
... | public void onCreate() {
super.onCreate();
mapd.android.phoenix.watchyourself.SA mAccessory = new mapd.android.phoenix.watchyourself.SA();
try {
mAccessory.initialize(this);
} catch (com.samsung.android.sdk.SsdkUnsupportedException e) {
} catch (com.samsung.android.sdk.SsdkUnsupportedExcepti... |
private void updateTransform() {
model.transform.setToRotationRad(Vector3.Z, body.getAngle());
ru.spbau.blackout.utils.Utils.fixTop(model);
com.badlogic.gdx.math.Vector2 pos = body.getPosition();
model.transform.setTranslation(pos.x, pos.y, height);
} | protected void updateTransform() {
model.transform.setToRotationRad(Vector3.Z, body.getAngle());
ru.spbau.blackout.utils.Utils.fixTop(model);
com.badlogic.gdx.math.Vector2 pos = body.getPosition();
model.transform.setTranslation(pos.x, pos.y, height);
} |
private javax.websocket.ClientEndpointConfig buildClientConfig(javax.websocket.ClientEndpointConfig.Configurator configurator) {
javax.websocket.ClientEndpointConfig config = ClientEndpointConfig.Builder.create().configurator(configurator).build();
configureClientEndpoint(config);
if (trustSelfSignedCerts) ... | private javax.websocket.ClientEndpointConfig buildClientConfig(javax.websocket.ClientEndpointConfig.Configurator configurator) {
javax.websocket.ClientEndpointConfig config = ClientEndpointConfig.Builder.create().configurator(configurator).build();
configureClientEndpoint(config);
javax.net.ssl.SSLContext s... |
public void run() {
parseSusiResponse(susiResponse, actionNo);
final java.lang.String setMessage = answer;
if (actionType.equals(Constant.ANSWER))
voiceReply(setMessage, isHavingLink);
updateDatabase(id, setMessage, false, false, actionType, mapData, isHavingLink, datumList);
} | public void run() {
parseSusiResponse(susiResponse, actionNo);
final java.lang.String setMessage = answer;
if (actionType.equals(Constant.ANSWER))
voiceReply(setMessage, isHavingLink);
updateDatabase(id, setMessage, false, null, false, actionType, mapData, isHavingLink, datumList);
} |
public void SetLevel(int lvl, int iChannel) {
java.lang.String s;
javax.swing.JProgressBar targetGUI;
javax.swing.JLabel targetTxt;
switch (iChannel) {
case 0 :
targetGUI = fMeterL;
targetTxt = fSigClipL;
break;
case 1 :
targetGUI = fMeterR... | public void SetLevel(int lvl, int iChannel) {
javax.swing.JProgressBar targetGUI;
switch (iChannel) {
case 0 :
targetGUI = fMeterL;
break;
case 1 :
targetGUI = fMeterR;
break;
default :
targetGUI = fMeterL;
}
targetGUI.s... |
private void initiateCenterCreation(com.mifos.services.data.CenterPayload centerPayload) {
if (!(isValidCenterName())) {
return ;
}else {
App.apiManager.createCenter(centerPayload, new retrofit.Callback<com.mifos.objects.group.Center>() {
@java.lang.Override
public void s... | private void initiateCenterCreation(com.mifos.services.data.CenterPayload centerPayload) {
if (!(isValidCenterName())) {
return ;
}
App.apiManager.createCenter(centerPayload, new retrofit.Callback<com.mifos.objects.group.Center>() {
@java.lang.Override
public void success(com.mifos.o... |
public void UpdateUserOnline(int id, boolean online) {
byte isonline;
if (online)
isonline = 1;
else
isonline = 0;
create.update(jooqdb.Tables.USER).set(USER.ISONLINE, isonline).where(USER.ID.equal(id)).execute();
printUser();
} | public void UpdateUserOnline(int id, boolean online) {
byte isonline;
if (online)
isonline = 1;
else
isonline = 0;
create.update(jooqdb.Tables.USER).set(USER.ISONLINE, isonline).where(USER.ID.equal(id)).execute();
} |
public void mouseClicked(java.awt.event.MouseEvent e) {
java.lang.String input = inputTextField.getText();
java.lang.String output = "";
if (decimalToHexRadioButton.isSelected()) {
output = decimalToHexConverter.decimalToHex(java.lang.Integer.parseInt(input));
}else
if (hexToDecimalRadio... | public void mouseClicked(java.awt.event.MouseEvent e) {
java.lang.String input = inputTextField.getText();
java.lang.String output = "";
if (input.equals("")) {
return ;
}else
if (decimalToHexRadioButton.isSelected()) {
output = decimalToHexConverter.decimalToHex(java.lang.In... |
public java.lang.String readFromJsonFile(android.content.Context context) {
java.lang.String jsonFile = "places.json";
java.io.InputStream is = context.getResources().openRawResource(R.raw.places_json);
java.lang.StringBuffer sbJsonString = new java.lang.StringBuffer();
int character;
try {
... | public java.lang.String readFromJsonFile(android.content.Context context) {
java.io.InputStream is = context.getResources().openRawResource(R.raw.places_json);
java.lang.StringBuffer sbJsonString = new java.lang.StringBuffer();
int character;
try {
while ((character = is.read()) != (-1)) {
... |
private void assertAdd(savvytodo.testutil.TestTask[] currentList) {
savvytodo.testutil.TestTask taskToAdd = td.getTypicalTasks()[0];
commandBox.runCommand(taskToAdd.getAddCommand());
savvytodo.testutil.TestTask[] expectedList = savvytodo.testutil.TestUtil.addTasksToList(currentList, taskToAdd);
org.juni... | private void assertAdd(savvytodo.testutil.TestTask[] currentList) {
savvytodo.testutil.TestTask taskToAdd = td.getTypicalTasks()[0];
savvytodo.testutil.TestTask[] expectedList = savvytodo.testutil.TestUtil.addTasksToList(currentList, taskToAdd);
commandBox.runCommand(taskToAdd.getAddCommand());
org.juni... |
public void readExtendedInfo(de.keyle.knbt.TagCompound info) {
if (info.containsKeyAs("Variant", de.keyle.knbt.TagInt.class)) {
setVariant(de.Keyle.MyPet.entity.types.rabbit.MyRabbit.RabbitType.getTypeByID(info.getAs("Variant", de.keyle.knbt.TagByte.class).getByteData()));
}
if (info.getCompoundData... | public void readExtendedInfo(de.keyle.knbt.TagCompound info) {
if (info.containsKeyAs("Variant", de.keyle.knbt.TagByte.class)) {
setVariant(de.Keyle.MyPet.entity.types.rabbit.MyRabbit.RabbitType.getTypeByID(info.getAs("Variant", de.keyle.knbt.TagByte.class).getByteData()));
}
if (info.getCompoundDat... |
public void onTextChanged(java.lang.CharSequence s, int start, int before, int count) {
isRoute = true;
if (count == 0) {
reloadData();
}else {
data = location.getSearchData(s);
adapter.clear();
adapter.addAll(data);
adapter.notifyDataSetChanged();
}
} | public void onTextChanged(java.lang.CharSequence s, int start, int before, int count) {
isRoute = false;
if (count == 0) {
reloadData();
}else {
data = location.getSearchData(s);
adapter.clear();
adapter.addAll(data);
adapter.notifyDataSetChanged();
}
} |
public static <T> T anotherOf(java.util.List<T> l, T... alreadyChosen, java.util.Random rng) {
T elem;
while ((elem == null) || (java.util.Arrays.asList(alreadyChosen).contains(elem))) {
elem = ListUtil.oneOf(l, rng);
}
return elem;
} | public static java.lang.Object anotherOf(java.util.List l, java.lang.Object alreadyChosen, java.util.Random rng) {
java.lang.Object elem = null;
while ((elem == null) || (java.util.Arrays.asList(alreadyChosen).contains(elem))) {
elem = ListUtil.oneOf(l, rng);
}
return elem;
} |
public void stop(java.lang.String cfgId) {
com.jsoft.iot.mqttloadapp.runtime.LoadConfigurationRuntimeRegistry.LOG.log(java.util.logging.Level.INFO, "Stopping Running Load configuration {0}", cfgId);
com.jsoft.iot.mqttloadapp.runtime.RunningLoadConfiguration rt = registry.get(cfgId);
if (rt != null) {
... | public void stop(java.lang.String cfgId) {
com.jsoft.iot.mqttloadapp.runtime.LoadConfigurationRuntimeRegistry.LOG.log(java.util.logging.Level.INFO, "Stopping Running Load configuration {0}", cfgId);
com.jsoft.iot.mqttloadapp.runtime.RunningLoadConfiguration rt = registry.get(cfgId);
if (rt != null) {
... |
public listLab.MyList<T> subList(int fromIndex, int toIndex) {
if ((((fromIndex < 0) || (fromIndex > (size))) || (toIndex < 0)) || (toIndex > (size))) {
throw new java.lang.IndexOutOfBoundsException();
}
listLab.ListArray newList = new listLab.ListArray<>(c);
newList.setArray(java.util.Arrays.co... | public listLab.MyList<T> subList(int fromIndex, int toIndex) {
if ((((fromIndex < 0) || (fromIndex > (size))) || (toIndex < 0)) || (toIndex > (size))) {
throw new java.lang.IndexOutOfBoundsException();
}
listLab.ListArray newList = new listLab.ListArray<>(c);
newList.setArray(java.util.Arrays.co... |
public model.Book get(java.lang.String isbn) {
int firstHash = hashFunctionOne(isbn);
int secondHash = hashFunctionTwo(isbn);
if (((table[firstHash]) != null) && ((table[firstHash].getKey()) == firstHash)) {
return table[firstHash].getValue();
}else {
return table[secondHash].getValue();... | public model.Book get(java.lang.String isbn) {
int firstHash = hashFunctionOne(isbn);
int secondHash = hashFunctionTwo(isbn);
if (((table[firstHash]) != null) && ((table[firstHash].getKey()) == isbn)) {
return table[firstHash].getValue();
}else {
return table[secondHash].getValue();
... |
private void setUpMap() {
com.google.android.gms.maps.model.LatLng conventionLocation = new com.google.android.gms.maps.model.LatLng(amai.org.conventions.model.conventions.Convention.getInstance().getLatitude(), amai.org.conventions.model.conventions.Convention.getInstance().getLongitude());
mMap.addMarker(new ... | private void setUpMap() {
com.google.android.gms.maps.model.LatLng conventionLocation = new com.google.android.gms.maps.model.LatLng(amai.org.conventions.model.conventions.Convention.getInstance().getLatitude(), amai.org.conventions.model.conventions.Convention.getInstance().getLongitude());
mMap.addMarker(new ... |
public static java.util.List<org.openqa.selenium.WebElement> getList(org.openqa.selenium.WebElement from, java.lang.String cssSelector) {
java.util.List<org.openqa.selenium.WebElement> l;
try {
l = from.findElements(org.openqa.selenium.By.cssSelector(cssSelector));
} catch (org.openqa e) {
l... | public static java.util.List<org.openqa.selenium.WebElement> getList(org.openqa.selenium.WebElement from, java.lang.String cssSelector) {
java.util.List<org.openqa.selenium.WebElement> l;
try {
l = from.findElements(org.openqa.selenium.By.cssSelector(cssSelector));
} catch (org.openqa e) {
l... |
public java.lang.String ajax(@org.springframework.web.bind.annotation.PathVariable
java.lang.String asin, @org.springframework.web.bind.annotation.RequestParam(value = "ajaxflg", required = false, defaultValue = "0")
int ajaxflg, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) {
m... | public java.lang.String ajax(@org.springframework.web.bind.annotation.PathVariable
java.lang.String asin, @org.springframework.web.bind.annotation.RequestParam(value = "ajaxflg", required = false, defaultValue = "0")
int ajaxflg, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) {
m... |
protected java.lang.Double evaluate(com.fathzer.soft.javaluator.Function function, java.util.Iterator arguments, java.lang.Object evaluationContext) {
if (function == (abassawo.c4q.nyc.scientificcalculator_build.MainActivity.SQRT)) {
return java.lang.Math.sqrt(((double) (arguments.next())));
}else {
... | public java.lang.Double evaluate(com.fathzer.soft.javaluator.Function function, java.util.Iterator arguments, java.lang.Object evaluationContext) {
if (function == (abassawo.c4q.nyc.scientificcalculator_build.MainActivity.SQRT)) {
return java.lang.Math.sqrt(((double) (arguments.next())));
}else {
... |
public static void handleDevError(java.lang.Throwable t) {
if (org.nuxeo.runtime.api.Framework.isBooleanPropertyTrue(org.nuxeo.runtime.api.Framework.NUXEO_STRICT_RUNTIME_SYSTEM_PROP)) {
java.lang.System.err.println(("Fatal error caught in strict " + "runtime mode => exiting."));
t.printStackTrace();... | public static void handleDevError(java.lang.Throwable t) {
if (org.nuxeo.runtime.api.Framework.isBooleanPropertyTrue(org.nuxeo.runtime.api.Framework.NUXEO_STRICT_RUNTIME_SYSTEM_PROP)) {
java.lang.System.err.println(("Fatal error caught in strict " + "runtime mode => exiting."));
if (t != null) {
... |
private boolean closEquals(java.util.List<com.chicootec.dbcomparator.MetadataColumn> src, java.util.List<com.chicootec.dbcomparator.MetadataColumn> dest) {
if ((src.size()) != (dest.size())) {
return false;
}
for (com.chicootec.dbcomparator.MetadataColumn cm : src) {
if (!(dest.contains(cm))... | private boolean closEquals(java.util.List<com.chicootec.dbcomparator.MetadataColumn> src, java.util.List<com.chicootec.dbcomparator.MetadataColumn> dest) {
if ((src.size()) != (dest.size())) {
return false;
}
for (com.chicootec.dbcomparator.MetadataColumn cm : src) {
if (!(dest.contains(cm))... |
public static void insertNewClass(java.lang.String className, java.lang.String classNumber, java.lang.String sectionNumber, java.lang.String professor) {
ObjectLabEnterpriseSoftware.SQLMethods dbconn = new ObjectLabEnterpriseSoftware.SQLMethods();
dbconn.insertIntoClasses(((className + " ") + classNumber), sect... | public static void insertNewClass(java.lang.String className, java.lang.String classNumber, java.lang.String sectionNumber, java.lang.String professor) {
ObjectLabEnterpriseSoftware.SQLMethods dbconn = new ObjectLabEnterpriseSoftware.SQLMethods();
java.lang.System.out.println(((((((className + " ") + classNumbe... |
public java.util.ArrayList<com.jauer.android.blocspot.api.model.PoiItem> getFilteredList(java.lang.String category) {
java.util.ArrayList filteredItems = new java.util.ArrayList<>();
for (com.jauer.android.blocspot.api.model.PoiItem item : allPoiItemsList) {
if ((category == null) || (item.getCategory()... | public java.util.ArrayList<com.jauer.android.blocspot.api.model.PoiItem> getFilteredList(java.lang.String category) {
java.util.ArrayList filteredItems = new java.util.ArrayList<>();
for (com.jauer.android.blocspot.api.model.PoiItem item : allPoiItemsList) {
if ((category == null) || (item.getCategory()... |
public boolean userLocked(javathehutt.buzz_movieselector.model.User u) {
javathehutt.buzz_movieselector.model.DatabaseHelper.db = this.getReadableDatabase();
java.lang.String query = ((("select * from " + (javathehutt.buzz_movieselector.model.DatabaseHelper.TABLE_NAME)) + " where username like \'") + (u.getUser... | public boolean userLocked(javathehutt.buzz_movieselector.model.User u) {
javathehutt.buzz_movieselector.model.DatabaseHelper.db = this.getReadableDatabase();
java.lang.String query = ((("select * from " + (javathehutt.buzz_movieselector.model.DatabaseHelper.TABLE_NAME)) + " where username like \'") + (u.getUser... |
public final T getResult() {
try {
jsr166y.ForkJoinPool.managedBlock(this);
} catch (java.lang.InterruptedException ignore) {
} catch (java.lang.Throwable re) {
water.MRTask.setException(re);
}
water.DException.DistributedException de = water.MRTask.getDException();
if (de != nul... | public final T getResult() {
try {
jsr166y.ForkJoinPool.managedBlock(this);
} catch (java.lang.InterruptedException ignore) {
} catch (java.lang.Throwable re) {
water.MRTask.setException(re);
}
water.DException.DistributedException de = water.MRTask.getDException();
if (de != nul... |
protected void clientResponse(java.lang.String response) {
int i = java.lang.Integer.parseInt(response);
switch (i) {
case 1 :
swapAcces(services.AccesServices.class);
break;
case 2 :
connexion();
break;
case 3 :
createAccount()... | protected void clientResponse(java.lang.String response) {
response.trim();
int i = java.lang.Integer.parseInt(response);
switch (i) {
case 1 :
swapAcces(services.AccesServices.class);
break;
case 2 :
connexion();
break;
case 3 :
... |
public static org.apache.maven.artifact.repository.metadata.SnapshotVersion createSnapshotVersion(org.apache.maven.artifact.Artifact artifact, java.lang.String extension) {
org.apache.maven.artifact.repository.metadata.SnapshotVersion snapshotVersion = new org.apache.maven.artifact.repository.metadata.SnapshotVersi... | public static org.apache.maven.artifact.repository.metadata.SnapshotVersion createSnapshotVersion(org.apache.maven.artifact.Artifact artifact, java.lang.String extension) {
org.apache.maven.artifact.repository.metadata.SnapshotVersion snapshotVersion = new org.apache.maven.artifact.repository.metadata.SnapshotVersi... |
private org.extensiblecatalog.ncip.v2.service.HoldingsSet parseHoldingsSet(org.extensiblecatalog.ncip.v2.koha.item.MarcItem marcItem, org.extensiblecatalog.ncip.v2.service.LookupItemSetInitiationData initData) throws org.extensiblecatalog.ncip.v2.koha.util.KohaException {
org.extensiblecatalog.ncip.v2.service.Holdi... | private org.extensiblecatalog.ncip.v2.service.HoldingsSet parseHoldingsSet(org.extensiblecatalog.ncip.v2.koha.item.MarcItem marcItem, org.extensiblecatalog.ncip.v2.service.LookupItemSetInitiationData initData) throws org.extensiblecatalog.ncip.v2.koha.util.KohaException {
org.extensiblecatalog.ncip.v2.service.Holdi... |
public java.util.List<project.model.Appointment> therapiePlanPage(@org.springframework.web.bind.annotation.RequestBody
java.util.HashMap<java.lang.String, java.lang.String> dateRangeProp) throws java.text.ParseException {
java.lang.String fromDateString = dateRangeProp.get("fromDate");
java.lang.String toDateSt... | public java.util.List<project.model.Appointment> therapiePlanPage(@org.springframework.web.bind.annotation.RequestBody
java.util.HashMap<java.lang.String, java.lang.String> dateRangeProp) throws java.text.ParseException {
java.lang.String fromDateString = dateRangeProp.get("fromDate");
java.lang.String toDateSt... |
public boolean updateTransferAmount(java.lang.String accID, double amount) {
java.util.ArrayList<Bank> bankList = getBankList();
for (Bank b : bankList) {
java.util.ArrayList<Account> accs = b.getAccounts();
for (Account a : accs) {
if ((a.getID()) == accID) {
a.updat... | public boolean updateTransferAmount(java.lang.String accID, double amount) {
java.util.ArrayList<Bank> bankList = getBankList();
for (Bank b : bankList) {
java.util.ArrayList<Account> accs = b.getAccounts();
for (Account a : accs) {
if (a.getID().equals(accID)) {
a.up... |
void release() {
if ((soundPool) != null) {
soundPool.release();
soundPool = null;
soundEffectMap.clear();
com.huhx0015.hxaudio.utils.HXLog.d(com.huhx0015.hxaudio.audio.HXSoundEngine.LOG_TAG, (("RELEASE (" + (engineID)) + "): release(): SoundPool object has been released."));
}el... | void release() {
if ((soundPool) != null) {
soundPool.release();
soundPool = null;
if ((soundEffectMap) != null) {
soundEffectMap.clear();
}
com.huhx0015.hxaudio.utils.HXLog.d(com.huhx0015.hxaudio.audio.HXSoundEngine.LOG_TAG, (("RELEASE (" + (engineID)) + "): rele... |
private void setThumbPositionByProgress(int currentProgress) {
if (currentProgress == 0) {
thumbPos = halfThumbWidth;
return ;
}
if (currentProgress == (maxProgress)) {
thumbPos = (width) - (halfThumbWidth);
return ;
}
thumbPos = ((float) ((((currentProgress * 1.0) / ... | private void setThumbPositionByProgress(int currentProgress) {
if (currentProgress == 0) {
thumbPos = halfThumbWidth;
return ;
}
if (currentProgress == (maxProgress)) {
thumbPos = (width) - (halfThumbWidth);
return ;
}
thumbPos = ((float) ((((currentProgress * 1.0) / ... |
private void controlloUtente(servlet.Utente utente, java.lang.String utenteRichiesto, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws java.io.IOException, javax.servlet.ServletException {
if ((!(utenteRichiesto.equals("all"))) && (!(utente.getRuolo().equals(ute... | private boolean controlloUtente(servlet.Utente utente, java.lang.String utenteRichiesto, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws java.io.IOException, javax.servlet.ServletException {
if ((!(utenteRichiesto.equals("all"))) && (!(utente.getRuolo().equals(... |
public info.smartkit.hairy_batman.domain.WxSimpleSubscriber process(final info.smartkit.hairy_batman.domain.WxSimpleSubscriber wxFoo) throws java.lang.Exception {
info.smartkit.hairy_batman.batch.WxFooItemProcessor.LOG.info(("WxFooItemProcessor processing..." + wxFoo));
new info.smartkit.hairy_batman.query.Sogo... | public info.smartkit.hairy_batman.domain.WxSimpleSubscriber process(final info.smartkit.hairy_batman.domain.WxSimpleSubscriber wxFoo) throws java.lang.Exception {
info.smartkit.hairy_batman.batch.WxFooItemProcessor.LOG.info(("WxFooItemProcessor processing..." + wxFoo));
new info.smartkit.hairy_batman.query.Sogo... |
public apcs.economics.Point[] deletePointInCurve(int index) {
apcs.economics.Point[] temp = null;
if ((index >= 0) && (index < (this.curvePoints.length))) {
if (index == 0) {
temp = deletePointAtBeginningOfCurve();
}
if (index == ((this.curvePoints.length) - 1)) {
... | public apcs.economics.Point[] deletePointInCurve(int index) {
apcs.economics.Point[] temp = null;
if ((index >= 0) && (index < (this.curvePoints.length))) {
if (index == 0) {
temp = deletePointAtBeginningOfCurve();
}else
if (index == ((this.curvePoints.length) - 1)) {
... |
private void logToDebugLog(java.lang.String message) {
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("HH:mm:ss.SSS");
java.util.Date now = new java.util.Date();
debugLog.append(sdf.format(now)).append(" ").append(message).append(java.lang.System.lineSeparator());
logToDebugLog((((sdf... | private void logToDebugLog(java.lang.String message) {
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("HH:mm:ss.SSS");
java.util.Date now = new java.util.Date();
debugLog.append(sdf.format(now)).append(" ").append(message).append(java.lang.System.lineSeparator());
} |
public void render(float delta) {
update(delta);
sb.begin();
player.getSprite().draw(sb);
player.getSprite().setX(((Gdx.graphics.getWidth()) / 2));
player.getSprite().setY(((Gdx.graphics.getHeight()) / 2));
b2dr.render(gameWORLD, cam.combined);
sb.end();
} | public void render(float delta) {
update(delta);
sb.begin();
player.setX(((Gdx.graphics.getWidth()) / 2));
player.setY(((Gdx.graphics.getHeight()) / 2));
player.draw(sb);
b2dr.render(gameWORLD, cam.combined);
sb.end();
} |
public void onNext(java.util.List<com.glooory.petal.mvp.model.entity.PinBean> pinBeen) {
if ((pinBeen.size()) == 0) {
mRootView.showNoMoreDataFooter(true);
return ;
}
(mPage)++;
mAdapter.setNewData(pinBeen);
mAdapter.loadMoreComplete();
mRootView.showNoMoreDataFooter(((pinBeen.si... | public void onNext(java.util.List<com.glooory.petal.mvp.model.entity.PinBean> pinBeen) {
if ((pinBeen.size()) == 0) {
mRootView.showNoMoreDataFooter(true);
return ;
}
(mPage)++;
mAdapter.setNewData(pinBeen);
mRootView.showNoMoreDataFooter(((pinBeen.size()) < 10));
} |
public static void createProperties(java.lang.String filename, java.util.Properties prop) {
try {
me.pandaism.api.Configuration.file = new java.io.File((filename + ".properties"));
me.pandaism.api.Configuration.output = new java.io.FileOutputStream(me.pandaism.api.Configuration.file);
me.pan... | public static void createProperties(java.lang.String filename, java.util.Properties prop) {
try {
me.pandaism.api.Configuration.file = new java.io.File((filename + ".properties"));
me.pandaism.api.Configuration.output = new java.io.FileOutputStream(me.pandaism.api.Configuration.file, true);
... |
public boolean AddDiagnosis(java.lang.String diagnosis, java.lang.String patientID) {
boolean addedDiagnosis = false;
medicalrecords.Patient patient = this.getDatabaseInstance().getPatient(patientID);
if (patient != null) {
patient.AddDiagnosis(diagnosis);
return this.getDatabaseInstance().p... | public boolean AddDiagnosis(java.lang.String diagnosis, java.lang.String patientID) {
boolean addedDiagnosis = false;
medicalrecords.Patient patient = this.getDatabaseInstance().getPatient(patientID);
if (patient != null) {
addedDiagnosis = patient.AddDiagnosis(diagnosis);
if (addedDiagnosis... |
public com.constellio.app.ui.entities.RecordVO getLinkedRecordVO(com.constellio.app.ui.entities.RecordVO eventVO) {
java.lang.String recordId = eventVO.get(Event.RECORD_ID);
com.constellio.model.entities.records.Record linkedRecord = recordServices().getDocumentById(recordId);
com.constellio.app.ui.framewor... | public com.constellio.app.ui.entities.RecordVO getLinkedRecordVO(com.constellio.app.ui.entities.RecordVO eventVO) {
com.constellio.app.ui.entities.RecordVO result;
try {
java.lang.String recordId = eventVO.get(Event.RECORD_ID);
com.constellio.model.entities.records.Record linkedRecord = recordSe... |
public void onClick(android.content.DialogInterface dlg, int item) {
org.eehouse.android.xw4.GamesListDelegate self = curThis();
junit.framework.Assert.assertTrue(((-1) != (selItem[0])));
long gid = self.m_adapter.getGroupIDFor(selItem[0]);
for (long rowid : self.m_rowids) {
org.eehouse.android.... | public void onClick(android.content.DialogInterface dlg, int item) {
org.eehouse.android.xw4.GamesListDelegate self = curThis();
junit.framework.Assert.assertTrue(((-1) != (selItem[0])));
long gid = self.m_adapter.getGroupIDFor(selItem[0]);
for (long rowid : self.m_rowids) {
org.eehouse.android.... |
public void init() {
highPriorityBuffer = new cern.c2mon.shared.util.buffer.SynchroBuffer(100, 200, 100, cern.c2mon.shared.util.buffer.SynchroBuffer.DUPLICATE_OK, 10000);
highPriorityBuffer.setSynchroBufferListener(new cern.c2mon.daq.common.messaging.impl.ProxyJmsSender.HighPriorityListener());
highPriority... | private void init() {
highPriorityBuffer = new cern.c2mon.shared.util.buffer.SynchroBuffer(100, 200, 100, cern.c2mon.shared.util.buffer.SynchroBuffer.DUPLICATE_OK, 10000);
highPriorityBuffer.setSynchroBufferListener(new cern.c2mon.daq.common.messaging.impl.ProxyJmsSender.HighPriorityListener());
highPriorit... |
public static int attributeIndex(java.lang.String attribute) {
java.lang.System.out.println("Function: attributeIndex -- *I think it's here.");
for (int i = 0; i < (AIProjectFive.Main.attributes.size()); i++) {
if (AIProjectFive.Main.attributes.get(i).equals(attribute)) {
return i;
}... | public static int attributeIndex(java.lang.String attribute) {
for (int i = 0; i < (AIProjectFive.Main.attributes.size()); i++) {
if (AIProjectFive.Main.attributes.get(i).equals(attribute)) {
return i;
}
}
return -1;
} |
protected java.util.List<android.graphics.Bitmap> doInBackground(java.lang.Void... params) {
for (int i = 0; i < (mMediaList.size()); i++) {
mBitmaps.add(com.easy.player.utils.VideoUtils.getThumbNail(mMediaList.get(i).path));
}
io.vov.vitamio.utils.Log.mlj(("size===" + (mBitmaps.size())));
retur... | protected java.util.List<android.graphics.Bitmap> doInBackground(java.lang.Void... params) {
for (int i = 0; i < (mMediaList.size()); i++) {
mBitmaps.add(com.easy.player.utils.VideoUtils.getThumbNail(mMediaList.get(i).path));
}
return mBitmaps;
} |
private entities.Account createAccount(javax.servlet.http.HttpServletRequest request) throws java.sql.SQLException {
java.lang.String email = request.getParameter("email");
java.lang.String password = request.getParameter("password");
return new entities.Account.Builder().setEmail(email).setPassword(passwor... | private entities.Account createAccount(javax.servlet.http.HttpServletRequest request) throws java.sql.SQLException {
java.lang.String email = request.getParameter("email");
java.lang.String password = request.getParameter("password");
return new entities.Account.Builder().setEmail(email).setPassword(passwor... |
private static java.util.ArrayList<java.lang.String> getKarteien() {
if (((database.Stack.getStacknames()) == null) || (database.Stack.getStacknames().get(0).equals(""))) {
debug.Debugger.out("Diagramm: getKarteien if");
return statistics.Diagramm.Stacks = null;
}else {
debug.Debugger.ou... | private static java.util.ArrayList<java.lang.String> getKarteien() {
if (((database.Stack.getStacknames()) == null) || (database.Stack.getStacknames().get(0).equals(""))) {
return statistics.Diagramm.Stacks = null;
}else {
return statistics.Diagramm.Stacks = database.Stack.getStacknames();
}... |
private void clearVariables() {
type = null;
showId = -1L;
showTitle = null;
episodeId = -1L;
episodeTitle = null;
movieId = -1L;
movieTitle = null;
poster = null;
startTime = 0L;
endTime = 0L;
isExpanded = false;
} | private void clearVariables() {
type = null;
showId = -1L;
showTitle = null;
episodeId = -1L;
episodeTitle = null;
movieId = -1L;
movieTitle = null;
poster = null;
startTime = 0L;
endTime = 0L;
} |
public void addPoly(java.util.List<java.awt.geom.Point2D.Double> vertices, boolean closed, boolean filled, java.awt.Color color) {
synchronized(polys) {
if (color != null)
polyColor = dupColor(color);
if (polys.add(new com.github.rosjava.challenge.gui.MapGUIPanel.Poly(vertices, ... | public void addPoly(java.util.List<java.awt.geom.Point2D.Double> vertices, boolean closed, boolean filled, java.awt.Color color) {
synchronized(polys) {
if (color != null)
polyColor = dupColor(color);
if (polys.add(new com.github.rosjava.challenge.gui.MapGUIPanel.Poly(vertices, ... |
public void hideTile(android.view.View view) {
android.widget.Toast.makeText(this, "Hide", Toast.LENGTH_SHORT).show();
android.support.design.widget.FloatingActionButton fab = ((android.support.design.widget.FloatingActionButton) (findViewById(R.id.fab)));
smallTile.setVisibility(View.VISIBLE);
fab.setV... | public void hideTile(android.view.View view) {
android.support.design.widget.FloatingActionButton fab = ((android.support.design.widget.FloatingActionButton) (findViewById(R.id.fab)));
smallTile.setVisibility(View.VISIBLE);
fab.setVisibility(View.VISIBLE);
expandedTile.setVisibility(View.GONE);
mMap... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.