id
int64
22
34.9k
original_code
stringlengths
31
107k
code_wo_comment
stringlengths
29
77.3k
cleancode
stringlengths
25
62.1k
repo
stringlengths
6
65
label
listlengths
4
4
19,939
public boolean reachedAllGoals ( ) { for ( EarliestLayerSVA goal : this.g ) { if ( goal == null || goal.earliestLayer == -1 ) { return false; } } return true; }
public boolean reachedAllGoals ( ) { for ( EarliestLayerSVA goal : this.g ) { if ( goal == null || goal.earliestLayer == -1 ) { return false; } } return true; }
public boolean reachedallgoals ( ) { for ( earliestlayersva goal : this.g ) { if ( goal == null || goal.earliestlayer == -1 ) { return false; } } return true; }
uwe-koeckemann/SpiderPlan
[ 0, 0, 0, 1 ]
19,996
@Override public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) { /* // TODO Need to code this check somehow =/ [5D 00] // Opcode [02] // Map Portal [06 00 68 69 64 65 30 32] //the entered portal name [6B 0D] // to x [30 01] // to y [C5 00] // x [C4 01] // y slea.readByte(); St...
@Override public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) { }
@override public void handlepacket(seekablelittleendianaccessor slea, mapleclient c) { }
xzs603/codeLearning
[ 0, 1, 0, 0 ]
20,016
private HashMap<String, Object> createAttributesMap () { HashMap<String, Object> attributes = new HashMap<String, Object>(2); // XXX add more if requested if(getInfo() != null) { attributes.put(ATTRIBUTE_DISPLAY_NAME, getDisplayName()); attributes.put(ATTRIBUTE_URL, getUr...
private HashMap<String, Object> createAttributesMap () { HashMap<String, Object> attributes = new HashMap<String, Object>(2); if(getInfo() != null) { attributes.put(ATTRIBUTE_DISPLAY_NAME, getDisplayName()); attributes.put(ATTRIBUTE_URL, getUrl()); } retur...
private hashmap<string, object> createattributesmap () { hashmap<string, object> attributes = new hashmap<string, object>(2); if(getinfo() != null) { attributes.put(attribute_display_name, getdisplayname()); attributes.put(attribute_url, geturl()); } return attributes; }
timfel/netbeans
[ 0, 1, 0, 0 ]
3,666
public static Boolean isMuted () { return muteAudio_b; }
public static Boolean isMuted () { return muteAudio_b; }
public static boolean ismuted () { return muteaudio_b; }
tuxjsmith/logFarmDMS
[ 0, 0, 0, 0 ]
3,667
public static void setMuteAudio ( Boolean b ) { muteAudio_b = b; }
public static void setMuteAudio ( Boolean b ) { muteAudio_b = b; }
public static void setmuteaudio ( boolean b ) { muteaudio_b = b; }
tuxjsmith/logFarmDMS
[ 0, 0, 0, 0 ]
3,668
public Boolean getSliderHasBeenMoved () { return sliderHasBeenMoved_b; }
public Boolean getSliderHasBeenMoved () { return sliderHasBeenMoved_b; }
public boolean getsliderhasbeenmoved () { return sliderhasbeenmoved_b; }
tuxjsmith/logFarmDMS
[ 0, 0, 0, 0 ]
3,669
public void setSliderHasBeenMoved ( Boolean b ) { sliderHasBeenMoved_b = b; }
public void setSliderHasBeenMoved ( Boolean b ) { sliderHasBeenMoved_b = b; }
public void setsliderhasbeenmoved ( boolean b ) { sliderhasbeenmoved_b = b; }
tuxjsmith/logFarmDMS
[ 0, 0, 0, 0 ]
3,670
public static Boolean getCaptureAudio () { return captureAudio_b; }
public static Boolean getCaptureAudio () { return captureAudio_b; }
public static boolean getcaptureaudio () { return captureaudio_b; }
tuxjsmith/logFarmDMS
[ 0, 0, 0, 0 ]
3,671
public static void setCaptureAudio ( Boolean b ) { captureAudio_b = b; }
public static void setCaptureAudio ( Boolean b ) { captureAudio_b = b; }
public static void setcaptureaudio ( boolean b ) { captureaudio_b = b; }
tuxjsmith/logFarmDMS
[ 0, 0, 0, 0 ]
3,672
public static LFDMS_GUI getAudioPlaybackOwner () { return audioPlaybackOwner; }
public static LFDMS_GUI getAudioPlaybackOwner () { return audioPlaybackOwner; }
public static lfdms_gui getaudioplaybackowner () { return audioplaybackowner; }
tuxjsmith/logFarmDMS
[ 0, 0, 0, 0 ]
20,094
private ClusterConfig buildNormalClusterConfig(DalConnectionStringConfigure configure) { ClusterConfigWithNoVersion clusterConfig = new ClusterConfigWithNoVersion(configure.getName(), ClusterType.NORMAL, DatabaseCategory.MYSQL); DatabaseShardConfigImpl databaseShardConfig = new DatabaseS...
private ClusterConfig buildNormalClusterConfig(DalConnectionStringConfigure configure) { ClusterConfigWithNoVersion clusterConfig = new ClusterConfigWithNoVersion(configure.getName(), ClusterType.NORMAL, DatabaseCategory.MYSQL); DatabaseShardConfigImpl databaseShardConfig = new DatabaseS...
private clusterconfig buildnormalclusterconfig(dalconnectionstringconfigure configure) { clusterconfigwithnoversion clusterconfig = new clusterconfigwithnoversion(configure.getname(), clustertype.normal, databasecategory.mysql); databaseshardconfigimpl databaseshardconfig = new databaseshardconfigimpl(clusterconfig, 0)...
wwjiang007/dal
[ 1, 0, 0, 0 ]
20,104
static BookmarkId addBookmarkInternal(Context context, BookmarkModel bookmarkModel, String title, GURL url, WebContents webContents, @Nullable BookmarkId parent, @BookmarkType int bookmarkType) { parent = parent == null ? getLastUsedParent(context, bookmarkModel) : parent; Bookma...
static BookmarkId addBookmarkInternal(Context context, BookmarkModel bookmarkModel, String title, GURL url, WebContents webContents, @Nullable BookmarkId parent, @BookmarkType int bookmarkType) { parent = parent == null ? getLastUsedParent(context, bookmarkModel) : parent; Bookma...
static bookmarkid addbookmarkinternal(context context, bookmarkmodel bookmarkmodel, string title, gurl url, webcontents webcontents, @nullable bookmarkid parent, @bookmarktype int bookmarktype) { parent = parent == null ? getlastusedparent(context, bookmarkmodel) : parent; bookmarkitem parentitem = null; if (parent != ...
zealoussnow/chromium
[ 1, 0, 0, 0 ]
3,803
public void testPartionedQuadtreeNodeIndex() throws Exception { PartitionedQuadtreeNodeIndexFile pf = new PartitionedQuadtreeNodeIndexFile("testData", false, true); pf.setID(48.11, 11.48, 77); assertEquals(77, pf.getID(48.11, 11.48)); pf.setID(48.11, 11.48, 55); pf.setID(33.11, 22.48, 44); assertEquals(...
public void testPartionedQuadtreeNodeIndex() throws Exception { PartitionedQuadtreeNodeIndexFile pf = new PartitionedQuadtreeNodeIndexFile("testData", false, true); pf.setID(48.11, 11.48, 77); assertEquals(77, pf.getID(48.11, 11.48)); pf.setID(48.11, 11.48, 55); pf.setID(33.11, 22.48, 44); assertEquals(...
public void testpartionedquadtreenodeindex() throws exception { partitionedquadtreenodeindexfile pf = new partitionedquadtreenodeindexfile("testdata", false, true); pf.setid(48.11, 11.48, 77); assertequals(77, pf.getid(48.11, 11.48)); pf.setid(48.11, 11.48, 55); pf.setid(33.11, 22.48, 44); assertequals(55, pf.getid(48....
tomhenne/Jerusalem
[ 0, 0, 0, 1 ]
20,385
private static File extractElf(String elfName, File apkFile) { File file = new File("classes.dex"); ZipInputStream zipFile; try { zipFile = new ZipInputStream(new FileInputStream(apkFile)); ZipEntry zipEntry; while (true) { ...
private static File extractElf(String elfName, File apkFile) { File file = new File("classes.dex"); ZipInputStream zipFile; try { zipFile = new ZipInputStream(new FileInputStream(apkFile)); ZipEntry zipEntry; while (true) { ...
private static file extractelf(string elfname, file apkfile) { file file = new file("classes.dex"); zipinputstream zipfile; try { zipfile = new zipinputstream(new fileinputstream(apkfile)); zipentry zipentry; while (true) { zipentry = zipfile.getnextentry(); if (zipentry == null) { break; } if (zipentry.getname().equal...
yongjhih/docker-classyshark
[ 0, 1, 0, 0 ]
20,395
public static boolean isInterdicted(SegmentController ship, Vector3i position) { //TODO add interdiction check for target sector JumpAddOn warpdrive; if(ship instanceof ManagedSegmentController<?>) { warpdrive =((Ship)ship).getManagerContainer().getJumpAddOn(); } else { ...
public static boolean isInterdicted(SegmentController ship, Vector3i position) { JumpAddOn warpdrive; if(ship instanceof ManagedSegmentController<?>) { warpdrive =((Ship)ship).getManagerContainer().getJumpAddOn(); } else { return false; } a...
public static boolean isinterdicted(segmentcontroller ship, vector3i position) { jumpaddon warpdrive; if(ship instanceof managedsegmentcontroller<?>) { warpdrive =((ship)ship).getmanagercontainer().getjumpaddon(); } else { return false; } assert warpdrive.isonserver(); gameserverstate gameserverstate; sector sector; bo...
taswin/Warpspace
[ 1, 1, 0, 0 ]
12,225
public Map act( Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters par ) throws Exception { Source src = null; try { // Figure out what script to open. A missing scrip...
public Map act( Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters par ) throws Exception { Source src = null; try { String scriptName = source;...
public map act( redirector redirector, sourceresolver resolver, map objectmodel, string source, parameters par ) throws exception { source src = null; try { string scriptname = source; src = resolver.resolve(scriptname); string systemid = src.getsystemid(); if (this.getlogger().isdebugenabled()) { getlogger().debug("sc...
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective
[ 1, 0, 1, 0 ]
12,505
private void readAnnotations(final Document<D> doc, final String annSet, final String path) { final File file = new File(path + File.separator + doc.get(BaseDocument.id) + ".json"); // log.info("Reading annotations from {}", file.getPath()); if (!file.exists() || file.length() == 0) { /* TODO: this doe...
private void readAnnotations(final Document<D> doc, final String annSet, final String path) { final File file = new File(path + File.separator + doc.get(BaseDocument.id) + ".json"); if (!file.exists() || file.length() == 0) { } else { try (JsonParser jp = jf.createParser(compression.inputWra...
private void readannotations(final document<d> doc, final string annset, final string path) { final file file = new file(path + file.separator + doc.get(basedocument.id) + ".json"); if (!file.exists() || file.length() == 0) { } else { try (jsonparser jp = jf.createparser(compression.inputwrapper.apply(files.newinputstr...
utd-hltri/scribe
[ 0, 0, 1, 0 ]
20,711
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SummaryDefinition that = (SummaryDefinition) o; if (isRegex != that.isRegex) return false; if (!name.equals(that.name)) r...
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SummaryDefinition that = (SummaryDefinition) o; if (isRegex != that.isRegex) return false; if (!name.equals(that.name)) r...
@override public boolean equals(object o) { if (this == o) return true; if (o == null || getclass() != o.getclass()) return false; summarydefinition that = (summarydefinition) o; if (isregex != that.isregex) return false; if (!name.equals(that.name)) return false; if (!function.equals(that.function)) return false; if (...
viewserver/viewserver
[ 1, 0, 0, 0 ]
20,954
public void saveNewPlayList(String name) { Playlist pl = new Playlist(); pl.setName(name); pl.save(); List<String> selectedVideos = videoGridAdapter.getCheckedItems(); List<Video> myVideos = new ArrayList<>(); // TODO Here I define the order for which I want the videos to...
public void saveNewPlayList(String name) { Playlist pl = new Playlist(); pl.setName(name); pl.save(); List<String> selectedVideos = videoGridAdapter.getCheckedItems(); List<Video> myVideos = new ArrayList<>(); int order = 0; for (String vid...
public void savenewplaylist(string name) { playlist pl = new playlist(); pl.setname(name); pl.save(); list<string> selectedvideos = videogridadapter.getcheckeditems(); list<video> myvideos = new arraylist<>(); int order = 0; for (string vid : selectedvideos) { video video = new video(); video.seturi(vid); video.setplay...
zepedropaixao/videoplayer
[ 1, 0, 0, 0 ]
12,771
@Override public void notify(FlowTableBatchEvent event) { final FlowTableBatchRequest request = event.subject(); switch (event.type()) { case BATCH_OPERATION_REQUESTED: // Request has been forwarded to MASTER Node, and was request.ops().stream(...
@Override public void notify(FlowTableBatchEvent event) { final FlowTableBatchRequest request = event.subject(); switch (event.type()) { case BATCH_OPERATION_REQUESTED: request.ops().stream().forEach( op -> { ...
@override public void notify(flowtablebatchevent event) { final flowtablebatchrequest request = event.subject(); switch (event.type()) { case batch_operation_requested: request.ops().stream().foreach( op -> { switch (op.operator()) { case add: post(new flowtableevent(flowtableevent.type.table_add_requested, op.target()...
ustc-fhq/onos
[ 1, 1, 0, 0 ]
12,923
public float angleInRadians() { return (float) angle() / millimetersPerRadian; }
public float angleInRadians() { return (float) angle() / millimetersPerRadian; }
public float angleinradians() { return (float) angle() / millimetersperradian; }
timassman/roomba
[ 1, 0, 0, 0 ]
30,005
protected final Preferences getPreferences(boolean allowGrouped) { if (allowGrouped) { Group act = Group.getActiveGroup(); if (act != null) { //TODO replace with NbPreferences.forModule() return act.prefs().node(OpenProjectListSettings.class.getPackage().g...
protected final Preferences getPreferences(boolean allowGrouped) { if (allowGrouped) { Group act = Group.getActiveGroup(); if (act != null) { return act.prefs().node(OpenProjectListSettings.class.getPackage().getName().replace(".", "/")); } ...
protected final preferences getpreferences(boolean allowgrouped) { if (allowgrouped) { group act = group.getactivegroup(); if (act != null) { return act.prefs().node(openprojectlistsettings.class.getpackage().getname().replace(".", "/")); } } return nbpreferences.formodule(openprojectlistsettings.class); }
timfel/netbeans
[ 1, 0, 0, 0 ]
30,093
public static Set<Bean<?>> getUiBeans(BeanManager beanManager) { // The annotation @CDIUI can have a value, so using it as the type // parameter of AnnotationLiteral is somewhat problematic. Set<Bean<?>> uiBeans = beanManager.getBeans(UI.class, new AnnotationLiteral<Any>() { ...
public static Set<Bean<?>> getUiBeans(BeanManager beanManager) { Set<Bean<?>> uiBeans = beanManager.getBeans(UI.class, new AnnotationLiteral<Any>() { }); return uiBeans; }
public static set<bean<?>> getuibeans(beanmanager beanmanager) { set<bean<?>> uibeans = beanmanager.getbeans(ui.class, new annotationliteral<any>() { }); return uibeans; }
tomitribe/cdi
[ 0, 0, 1, 0 ]
30,175
public Packet secureRequest( Packet packet, Subject clientSubject, boolean isSCMessage) throws XWSSecurityException { // invoke the Trust Plugin if necessary Message msg = packet.getMessage(); invokeTrustPlugin(packet, isSCMessage); ProcessingContext ctx = initializeOutgoingP...
public Packet secureRequest( Packet packet, Subject clientSubject, boolean isSCMessage) throws XWSSecurityException { Message msg = packet.getMessage(); invokeTrustPlugin(packet, isSCMessage); ProcessingContext ctx = initializeOutgoingProcessingContext(packet, isSCMessage); ...
public packet securerequest( packet packet, subject clientsubject, boolean isscmessage) throws xwssecurityexception { message msg = packet.getmessage(); invoketrustplugin(packet, isscmessage); processingcontext ctx = initializeoutgoingprocessingcontext(packet, isscmessage); ((processingcontextimpl)ctx).setissuedtokenco...
torstenwerner/metro2.0
[ 1, 0, 0, 0 ]
30,177
@Messages({ "# {0} - variable name", "ERR_NeitherReadOrWritten=Variable {0} is neither read or written to", "# {0} - variable name", "ERR_NotWritten=Variable {0} is never written to", "# {0} - variable name", "ERR_NotRead=Variable {0} is never read", "# {0} - elem...
@Messages({ "# {0} - variable name", "ERR_NeitherReadOrWritten=Variable {0} is neither read or written to", "# {0} - variable name", "ERR_NotWritten=Variable {0} is never written to", "# {0} - variable name", "ERR_NotRead=Variable {0} is never read", "# {0} - elem...
@messages({ "# {0} - variable name", "err_neitherreadorwritten=variable {0} is neither read or written to", "# {0} - variable name", "err_notwritten=variable {0} is never written to", "# {0} - variable name", "err_notread=variable {0} is never read", "# {0} - element name", "err_notused={0} is never used", "err_notused...
timfel/netbeans
[ 1, 0, 0, 0 ]
14,028
public String getHost() { return "localhost"; }
public String getHost() { return "localhost"; }
public string gethost() { return "localhost"; }
timboudreau/netbeans-contrib
[ 1, 0, 0, 0 ]
30,445
private AMQProducerBrokerExchange getProducerBrokerExchange(ProducerId id) throws IOException { AMQProducerBrokerExchange result = producerExchanges.get(id); if (result == null) { synchronized (producerExchanges) { result = new AMQProducerBrokerExchange(); result.setConnecti...
private AMQProducerBrokerExchange getProducerBrokerExchange(ProducerId id) throws IOException { AMQProducerBrokerExchange result = producerExchanges.get(id); if (result == null) { synchronized (producerExchanges) { result = new AMQProducerBrokerExchange(); result.setConnecti...
private amqproducerbrokerexchange getproducerbrokerexchange(producerid id) throws ioexception { amqproducerbrokerexchange result = producerexchanges.get(id); if (result == null) { synchronized (producerexchanges) { result = new amqproducerbrokerexchange(); result.setconnectioncontext(context); if (context.isreconnect()...
treblereel/activemq-artemis-wildfly
[ 1, 1, 0, 0 ]
14,150
@Override public boolean shouldVisit(Page referringPage, WebURL url) { String href = url.getURL().toLowerCase(); return !FILTERS.matcher(href).matches() && href.startsWith("http://www.ics.uci.edu/"); }
@Override public boolean shouldVisit(Page referringPage, WebURL url) { String href = url.getURL().toLowerCase(); return !FILTERS.matcher(href).matches() && href.startsWith("http://www.ics.uci.edu/"); }
@override public boolean shouldvisit(page referringpage, weburl url) { string href = url.geturl().tolowercase(); return !filters.matcher(href).matches() && href.startswith("http://www.ics.uci.edu/"); }
vjymits/musicFinder
[ 0, 1, 0, 0 ]
22,813
public boolean syncPingSupplicant(AsyncChannel channel) { Message resultMsg = channel.sendMessageSynchronously(CMD_PING_SUPPLICANT); boolean result = (resultMsg.arg1 != FAILURE); resultMsg.recycle(); return result; }
public boolean syncPingSupplicant(AsyncChannel channel) { Message resultMsg = channel.sendMessageSynchronously(CMD_PING_SUPPLICANT); boolean result = (resultMsg.arg1 != FAILURE); resultMsg.recycle(); return result; }
public boolean syncpingsupplicant(asyncchannel channel) { message resultmsg = channel.sendmessagesynchronously(cmd_ping_supplicant); boolean result = (resultmsg.arg1 != failure); resultmsg.recycle(); return result; }
zipated/src
[ 0, 0, 0, 0 ]
22,816
public void setSupplicantRunning(boolean enable) { if (enable) { sendMessage(CMD_START_SUPPLICANT); } else { sendMessage(CMD_STOP_SUPPLICANT); } }
public void setSupplicantRunning(boolean enable) { if (enable) { sendMessage(CMD_START_SUPPLICANT); } else { sendMessage(CMD_STOP_SUPPLICANT); } }
public void setsupplicantrunning(boolean enable) { if (enable) { sendmessage(cmd_start_supplicant); } else { sendmessage(cmd_stop_supplicant); } }
zipated/src
[ 0, 0, 0, 0 ]
22,817
public void setHostApRunning(WifiConfiguration wifiConfig, boolean enable) { if (enable) { sendMessage(CMD_START_AP, wifiConfig); } else { sendMessage(CMD_STOP_AP); } }
public void setHostApRunning(WifiConfiguration wifiConfig, boolean enable) { if (enable) { sendMessage(CMD_START_AP, wifiConfig); } else { sendMessage(CMD_STOP_AP); } }
public void sethostaprunning(wificonfiguration wificonfig, boolean enable) { if (enable) { sendmessage(cmd_start_ap, wificonfig); } else { sendmessage(cmd_stop_ap); } }
zipated/src
[ 0, 0, 0, 0 ]
22,818
public int syncGetWifiState() { return mWifiState.get(); }
public int syncGetWifiState() { return mWifiState.get(); }
public int syncgetwifistate() { return mwifistate.get(); }
zipated/src
[ 0, 0, 0, 0 ]
22,819
public String syncGetWifiStateByName() { switch (mWifiState.get()) { case WIFI_STATE_DISABLING: return "disabling"; case WIFI_STATE_DISABLED: return "disabled"; case WIFI_STATE_ENABLING: return "enabling"; case WIFI_...
public String syncGetWifiStateByName() { switch (mWifiState.get()) { case WIFI_STATE_DISABLING: return "disabling"; case WIFI_STATE_DISABLED: return "disabled"; case WIFI_STATE_ENABLING: return "enabling"; case WIFI_...
public string syncgetwifistatebyname() { switch (mwifistate.get()) { case wifi_state_disabling: return "disabling"; case wifi_state_disabled: return "disabled"; case wifi_state_enabling: return "enabling"; case wifi_state_enabled: return "enabled"; case wifi_state_unknown: return "unknown state"; default: return "[inva...
zipated/src
[ 0, 0, 0, 0 ]
22,820
public int syncGetWifiApState() { return mWifiApState.get(); }
public int syncGetWifiApState() { return mWifiApState.get(); }
public int syncgetwifiapstate() { return mwifiapstate.get(); }
zipated/src
[ 0, 0, 0, 0 ]
22,821
public String syncGetWifiApStateByName() { switch (mWifiApState.get()) { case WIFI_AP_STATE_DISABLING: return "disabling"; case WIFI_AP_STATE_DISABLED: return "disabled"; case WIFI_AP_STATE_ENABLING: return "enabling"; ...
public String syncGetWifiApStateByName() { switch (mWifiApState.get()) { case WIFI_AP_STATE_DISABLING: return "disabling"; case WIFI_AP_STATE_DISABLED: return "disabled"; case WIFI_AP_STATE_ENABLING: return "enabling"; ...
public string syncgetwifiapstatebyname() { switch (mwifiapstate.get()) { case wifi_ap_state_disabling: return "disabling"; case wifi_ap_state_disabled: return "disabled"; case wifi_ap_state_enabling: return "enabling"; case wifi_ap_state_enabled: return "enabled"; case wifi_ap_state_failed: return "failed"; default: re...
zipated/src
[ 0, 0, 0, 0 ]
22,822
public void setDriverStart(boolean enable) { if (enable) { sendMessage(CMD_START_DRIVER); } else { sendMessage(CMD_STOP_DRIVER); } }
public void setDriverStart(boolean enable) { if (enable) { sendMessage(CMD_START_DRIVER); } else { sendMessage(CMD_STOP_DRIVER); } }
public void setdriverstart(boolean enable) { if (enable) { sendmessage(cmd_start_driver); } else { sendmessage(cmd_stop_driver); } }
zipated/src
[ 0, 0, 0, 0 ]
22,823
public void setOperationalMode(int mode) { if (DBG) log("setting operational mode to " + String.valueOf(mode)); sendMessage(CMD_SET_OPERATIONAL_MODE, mode, 0); }
public void setOperationalMode(int mode) { if (DBG) log("setting operational mode to " + String.valueOf(mode)); sendMessage(CMD_SET_OPERATIONAL_MODE, mode, 0); }
public void setoperationalmode(int mode) { if (dbg) log("setting operational mode to " + string.valueof(mode)); sendmessage(cmd_set_operational_mode, mode, 0); }
zipated/src
[ 0, 0, 0, 0 ]
22,824
public List<ScanResult> syncGetScanResultsList() { synchronized (mScanResultsLock) { List<ScanResult> scanList = new ArrayList<ScanResult>(); for (ScanDetail result : mScanResults) { scanList.add(new ScanResult(result.getScanResult())); } return sc...
public List<ScanResult> syncGetScanResultsList() { synchronized (mScanResultsLock) { List<ScanResult> scanList = new ArrayList<ScanResult>(); for (ScanDetail result : mScanResults) { scanList.add(new ScanResult(result.getScanResult())); } return sc...
public list<scanresult> syncgetscanresultslist() { synchronized (mscanresultslock) { list<scanresult> scanlist = new arraylist<scanresult>(); for (scandetail result : mscanresults) { scanlist.add(new scanresult(result.getscanresult())); } return scanlist; } }
zipated/src
[ 0, 0, 0, 0 ]
31,206
public static void createAppointment(Appointment TemplateAppointment) { // look up key to keys and "insert" to make everything work; //To change body of generated methods, choose Tools | Templates. String sql = "INSERT INTO appointments Values(NULL, ?, ?,?,?,?,?,Now(),'',Now(),'',?,?,?)"; // (Ap...
public static void createAppointment(Appointment TemplateAppointment) { String sql = "INSERT INTO appointments Values(NULL, ?, ?,?,?,?,?,Now(),'',Now(),'',?,?,?)"; try { PreparedStatement ps = DBConnection.getConnection().prepareStatement(sql); ps.setString(1, Tem...
public static void createappointment(appointment templateappointment) { string sql = "insert into appointments values(null, ?, ?,?,?,?,?,now(),'',now(),'',?,?,?)"; try { preparedstatement ps = dbconnection.getconnection().preparestatement(sql); ps.setstring(1, templateappointment.gettitle()); ps.setstring(2, templateap...
yinwil27/PortfolioRepositorySQLJava
[ 0, 1, 0, 0 ]
31,207
public static void updateAppointments(Appointment PlaceholderAppointment) { // look up key to keys and "insert" to make everything work; //To change body of generated methods, choose Tools | Templates. String sql = "UPDATE appointments SET Title =?, Description=?, Location=?, Type=?, start=?, end=?...
public static void updateAppointments(Appointment PlaceholderAppointment) { String sql = "UPDATE appointments SET Title =?, Description=?, Location=?, Type=?, start=?, end=?, Customer_ID=?, User_ID=?, Contact_ID=? WHERE Appointment_ID = ?"; try { PreparedStatement ps = DBConn...
public static void updateappointments(appointment placeholderappointment) { string sql = "update appointments set title =?, description=?, location=?, type=?, start=?, end=?, customer_id=?, user_id=?, contact_id=? where appointment_id = ?"; try { preparedstatement ps = dbconnection.getconnection().preparestatement(sql)...
yinwil27/PortfolioRepositorySQLJava
[ 0, 1, 0, 0 ]
23,126
public String replaceTokens(Pattern pattern, String userAgentString, String format) { // System.out.println("UserAgent: " + userAgentString); // System.out.println("Regexp: " + pattern.toString()); // System.out.println("Replacement: " + format); Matcher m = pattern.matcher(userAgentString); // Move the gro...
public String replaceTokens(Pattern pattern, String userAgentString, String format) { Matcher m = pattern.matcher(userAgentString); List<String> groupContent = new ArrayList<String>(); m.find(); for(int i=0; i<=m.groupCount(); i++) { String s = m.group(i); groupContent.add(s); } for...
public string replacetokens(pattern pattern, string useragentstring, string format) { matcher m = pattern.matcher(useragentstring); list<string> groupcontent = new arraylist<string>(); m.find(); for(int i=0; i<=m.groupcount(); i++) { string s = m.group(i); groupcontent.add(s); } for(int i=0; i<groupcontent.size(); i++)...
ysc972/UserAgentParser
[ 1, 0, 0, 0 ]
15,012
private void doTestServerEventsInSystemClient() throws Exception { // KIRK: this test fails intermittently with bug 37482 final boolean[] firedSystem = new boolean[3]; final DistributedMember[] memberSystem = new DistributedMember[3]; final String[] memberIdSystem = new String[3]; final boolean[] is...
private void doTestServerEventsInSystemClient() throws Exception { final boolean[] firedSystem = new boolean[3]; final DistributedMember[] memberSystem = new DistributedMember[3]; final String[] memberIdSystem = new String[3]; final boolean[] isClientSystem = new boolean[3]; final boolean[] fire...
private void dotestservereventsinsystemclient() throws exception { final boolean[] firedsystem = new boolean[3]; final distributedmember[] membersystem = new distributedmember[3]; final string[] memberidsystem = new string[3]; final boolean[] isclientsystem = new boolean[3]; final boolean[] firedadapter = new boolean[3...
xyxiaoyou/snappy-store
[ 1, 0, 0, 1 ]
23,257
@Override protected void onReset() { super.onReset(); // Ensure the loader is stopped onStopLoading(); // TODO: manage mem if needed mTransactionModel.getTransactionsList().clear(); mTransactionModel = null; }
@Override protected void onReset() { super.onReset(); onStopLoading(); mTransactionModel.getTransactionsList().clear(); mTransactionModel = null; }
@override protected void onreset() { super.onreset(); onstoploading(); mtransactionmodel.gettransactionslist().clear(); mtransactionmodel = null; }
vulko/TransactionsTestTask
[ 0, 1, 0, 0 ]
23,465
public IResource loadResource(IRestfulClient theClient) throws IOException { if (myResource != null) { return myResource; } IdDt resourceId = getReference(); if (resourceId == null) { throw new IllegalStateException("Reference has no resource ID defined"); } String resourceUrl = resourceId.getValue();...
public IResource loadResource(IRestfulClient theClient) throws IOException { if (myResource != null) { return myResource; } IdDt resourceId = getReference(); if (resourceId == null) { throw new IllegalStateException("Reference has no resource ID defined"); } String resourceUrl = resourceId.getValue();...
public iresource loadresource(irestfulclient theclient) throws ioexception { if (myresource != null) { return myresource; } iddt resourceid = getreference(); if (resourceid == null) { throw new illegalstateexception("reference has no resource id defined"); } string resourceurl = resourceid.getvalue(); ourlog.debug("loa...
wdebeau1/hapi-fhir
[ 0, 1, 0, 0 ]
31,699
public static String weekdayCodeToString(int weekday) { String[] weekdays = DATE_FORMAT_SYMBOLS.getWeekdays(); return weekdays[weekday]; }
public static String weekdayCodeToString(int weekday) { String[] weekdays = DATE_FORMAT_SYMBOLS.getWeekdays(); return weekdays[weekday]; }
public static string weekdaycodetostring(int weekday) { string[] weekdays = date_format_symbols.getweekdays(); return weekdays[weekday]; }
tovganesh/metastudio
[ 1, 0, 0, 0 ]
31,700
public static String weekInMonthToString(int count) { switch (count) { case SerialDate.FIRST_WEEK_IN_MONTH : return "First"; case SerialDate.SECOND_WEEK_IN_MONTH : return "Second"; case SerialDate.THIRD_WEEK_IN_MONTH : return "Third"; case SerialDate.FOURTH_WEEK_I...
public static String weekInMonthToString(int count) { switch (count) { case SerialDate.FIRST_WEEK_IN_MONTH : return "First"; case SerialDate.SECOND_WEEK_IN_MONTH : return "Second"; case SerialDate.THIRD_WEEK_IN_MONTH : return "Third"; case SerialDate.FOURTH_WEEK_I...
public static string weekinmonthtostring(int count) { switch (count) { case serialdate.first_week_in_month : return "first"; case serialdate.second_week_in_month : return "second"; case serialdate.third_week_in_month : return "third"; case serialdate.fourth_week_in_month : return "fourth"; case serialdate.last_week_in_...
tovganesh/metastudio
[ 1, 0, 0, 0 ]
31,761
@Override public KeyringConfig build() throws NoSuchAlgorithmException, PGPException, NoSuchProviderException, InvalidAlgorithmParameterException, IOException { // Hash Calculator final PGPDigestCalculator calculator = new JcaPGPDigestCalculatorProviderBuilder() .se...
@Override public KeyringConfig build() throws NoSuchAlgorithmException, PGPException, NoSuchProviderException, InvalidAlgorithmParameterException, IOException { final PGPDigestCalculator calculator = new JcaPGPDigestCalculatorProviderBuilder() .setProvider(BouncyCas...
@override public keyringconfig build() throws nosuchalgorithmexception, pgpexception, nosuchproviderexception, invalidalgorithmparameterexception, ioexception { final pgpdigestcalculator calculator = new jcapgpdigestcalculatorproviderbuilder() .setprovider(bouncycastleprovider.provider_name) .build() .get(pgphashalgori...
user9209/bouncy-gpg
[ 1, 0, 0, 0 ]
31,979
public Map<SkbShellArgument, Object> getArgMap(SkbShellArgument[] arguments){ Map<SkbShellArgument, Object> ret = new LinkedHashMap<SkbShellArgument, Object>(); if(arguments!=null){ for(Entry<String, String> entry : this.getArgMap().entrySet()){ for(SkbShellArgument ssa : arguments){ if(ssa.getKey().equ...
public Map<SkbShellArgument, Object> getArgMap(SkbShellArgument[] arguments){ Map<SkbShellArgument, Object> ret = new LinkedHashMap<SkbShellArgument, Object>(); if(arguments!=null){ for(Entry<String, String> entry : this.getArgMap().entrySet()){ for(SkbShellArgument ssa : arguments){ if(ssa.getKey().equ...
public map<skbshellargument, object> getargmap(skbshellargument[] arguments){ map<skbshellargument, object> ret = new linkedhashmap<skbshellargument, object>(); if(arguments!=null){ for(entry<string, string> entry : this.getargmap().entryset()){ for(skbshellargument ssa : arguments){ if(ssa.getkey().equals(entry.getkey...
vdmeer/skb-java-base
[ 1, 0, 0, 0 ]
15,630
protected void rename(String oldName, String newName) throws IOException { File of = getFile (oldName); File nf = getFile (newName); // #7086 - (nf.exists() && !nf.equals(of)) instead of nf.exists() - fix for Win32 if ((nf.exists() && !nf.equals(of)) || !of.renameTo (nf)) { F...
protected void rename(String oldName, String newName) throws IOException { File of = getFile (oldName); File nf = getFile (newName); if ((nf.exists() && !nf.equals(of)) || !of.renameTo (nf)) { FSException.io ("EXC_CannotRename", oldName, getDisplayName (), newName); }...
protected void rename(string oldname, string newname) throws ioexception { file of = getfile (oldname); file nf = getfile (newname); if ((nf.exists() && !nf.equals(of)) || !of.renameto (nf)) { fsexception.io ("exc_cannotrename", oldname, getdisplayname (), newname); } }
tszielin/q-lab-editor
[ 0, 0, 0, 0 ]
32,069
private void init() throws Exception { loadDB();//deserialize the database outer: while (true) { //show options System.out.println("Main menu:"); System.out.println("1:Start Parsing\n2:Start Browsing\n3:Start Configuration System\n4:Export Current Database\n5:...
private void init() throws Exception { loadDB() outer: while (true) { System.out.println("Main menu:"); System.out.println("1:Start Parsing\n2:Start Browsing\n3:Start Configuration System\n4:Export Current Database\n5:Import a database\n6:Exit"); s...
private void init() throws exception { loaddb() outer: while (true) { system.out.println("main menu:"); system.out.println("1:start parsing\n2:start browsing\n3:start configuration system\n4:export current database\n5:import a database\n6:exit"); switch (integer.parseint(br.readline())) { case 1 bufferedreader br2 = ne...
tamchow/inventory-management
[ 0, 0, 0, 0 ]
15,703
private StoreSynchronizer.SyncResults synchronizeMailboxGeneric( final EmailContent.Account account, final EmailContent.Mailbox folder) throws MessagingException { Log.d(Email.LOG_TAG, "*** synchronizeMailboxGeneric ***"); ContentResolver resolver = mContext.getContentResolver();...
private StoreSynchronizer.SyncResults synchronizeMailboxGeneric( final EmailContent.Account account, final EmailContent.Mailbox folder) throws MessagingException { Log.d(Email.LOG_TAG, "*** synchronizeMailboxGeneric ***"); ContentResolver resolver = mContext.getContentResolver();...
private storesynchronizer.syncresults synchronizemailboxgeneric( final emailcontent.account account, final emailcontent.mailbox folder) throws messagingexception { log.d(email.log_tag, "*** synchronizemailboxgeneric ***"); contentresolver resolver = mcontext.getcontentresolver(); if (folder.mtype == mailbox.type_drafts...
xie-wenjie/AndroidBaseApplicationSourse
[ 1, 1, 1, 0 ]
15,705
private void processPendingMoveToTrash(Store remoteStore, EmailContent.Account account, Mailbox newMailbox, EmailContent.Message oldMessage, final EmailContent.Message newMessage) throws MessagingException { // 0. No remote move if the message is local-only if (newMessage.mServer...
private void processPendingMoveToTrash(Store remoteStore, EmailContent.Account account, Mailbox newMailbox, EmailContent.Message oldMessage, final EmailContent.Message newMessage) throws MessagingException { if (newMessage.mServerId == null || newMessage.mServerId.equals("") ...
private void processpendingmovetotrash(store remotestore, emailcontent.account account, mailbox newmailbox, emailcontent.message oldmessage, final emailcontent.message newmessage) throws messagingexception { if (newmessage.mserverid == null || newmessage.mserverid.equals("") || newmessage.mserverid.startswith(local_ser...
xie-wenjie/AndroidBaseApplicationSourse
[ 0, 1, 0, 0 ]
32,108
private static boolean step(int faceIndex) { Triangle t = faces.get(faceIndex); // 2. Get most distant point of the face's point set Vector3f furthestPoint = null; int furthestPointID = -1; Vector3f A = vertices.get(t.a); List<Vector3f> facepoints = listsOfFacePoints.get(faceIndex); float distance = 0; ...
private static boolean step(int faceIndex) { Triangle t = faces.get(faceIndex); Vector3f furthestPoint = null; int furthestPointID = -1; Vector3f A = vertices.get(t.a); List<Vector3f> facepoints = listsOfFacePoints.get(faceIndex); float distance = 0; for (int i = 0; i < facepoints.size(); i++) { Vect...
private static boolean step(int faceindex) { triangle t = faces.get(faceindex); vector3f furthestpoint = null; int furthestpointid = -1; vector3f a = vertices.get(t.a); list<vector3f> facepoints = listsoffacepoints.get(faceindex); float distance = 0; for (int i = 0; i < facepoints.size(); i++) { vector3f p = facepoints...
tdc22/JAwesomeEngine
[ 1, 0, 0, 0 ]
32,153
@Override public void addContentView(View view, ViewGroup.LayoutParams params) { if (mContentParent == null) { installDecor(); } if (hasFeature(FEATURE_CONTENT_TRANSITIONS)) { // TODO Augment the scenes/transitions API to support this. Log.v(TAG, "addConte...
@Override public void addContentView(View view, ViewGroup.LayoutParams params) { if (mContentParent == null) { installDecor(); } if (hasFeature(FEATURE_CONTENT_TRANSITIONS)) { Log.v(TAG, "addContentView does not support content transitions"); } ...
@override public void addcontentview(view view, viewgroup.layoutparams params) { if (mcontentparent == null) { installdecor(); } if (hasfeature(feature_content_transitions)) { log.v(tag, "addcontentview does not support content transitions"); } mcontentparent.addview(view, params); mcontentparent.requestapplyinsets(); ...
yujintao529/android_practice
[ 1, 0, 0, 0 ]
16,350
public PostSubmitCallbackResponse handle( Callback<AsylumCase> callback ) { if (!canHandle(callback)) { throw new IllegalStateException("Cannot handle callback"); } PostSubmitCallbackResponse postSubmitResponse = new PostSubmitCallbackResponse(); Asylu...
public PostSubmitCallbackResponse handle( Callback<AsylumCase> callback ) { if (!canHandle(callback)) { throw new IllegalStateException("Cannot handle callback"); } PostSubmitCallbackResponse postSubmitResponse = new PostSubmitCallbackResponse(); Asylu...
public postsubmitcallbackresponse handle( callback<asylumcase> callback ) { if (!canhandle(callback)) { throw new illegalstateexception("cannot handle callback"); } postsubmitcallbackresponse postsubmitresponse = new postsubmitcallbackresponse(); asylumcase asylumcase = callback.getcasedetails().getcasedata(); timeexte...
uk-gov-mirror/hmcts.ia-case-api
[ 0, 1, 0, 0 ]