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
30,822
public void checkBookmarks() throws IOException { for (Bookmark bookmark : bookmarksService.getBookmarks()) { bookmarksService.doCheck(bookmark); JavaFxUtils.getController(BookmarksController.class).bookmarksTableView.refresh(); } JavaFxUtils.getController(BookmarksContro...
public void checkBookmarks() throws IOException { for (Bookmark bookmark : bookmarksService.getBookmarks()) { bookmarksService.doCheck(bookmark); JavaFxUtils.getController(BookmarksController.class).bookmarksTableView.refresh(); } JavaFxUtils.getController(BookmarksContro...
public void checkbookmarks() throws ioexception { for (bookmark bookmark : bookmarksservice.getbookmarks()) { bookmarksservice.docheck(bookmark); javafxutils.getcontroller(bookmarkscontroller.class).bookmarkstableview.refresh(); } javafxutils.getcontroller(bookmarkscontroller.class).tableview.setuserdata(null); javafxu...
LeonisX/jSite-Watcher
[ 0, 1, 0, 0 ]
22,752
public void remove( ) { // TODO Add remove operation support. }
public void remove( ) { }
public void remove( ) { }
JamesCao2048/BlizzardData
[ 0, 1, 0, 0 ]
30,989
public String longestPalindrome(String s) { // TODO:write your code here return ""; }
public String longestPalindrome(String s) { return ""; }
public string longestpalindrome(string s) { return ""; }
MessierObject111/algorithms-playground
[ 0, 1, 0, 0 ]
30,992
public File executeOptimization() throws IOException, InterruptedException { final String path = workingFile.getCanonicalPath(); // FIXME Handle the ImageFileOptimizationException in one of the optimizations so it does not impact the other optimizations. return executePngquant(execut...
public File executeOptimization() throws IOException, InterruptedException { final String path = workingFile.getCanonicalPath(); return executePngquant(executeOptipng(executePngout(executeAdvpng(executePngquant(executeOptipng(executePngout(executeAdvpng(workingFile, path), path), pat...
public file executeoptimization() throws ioexception, interruptedexception { final string path = workingfile.getcanonicalpath(); return executepngquant(executeoptipng(executepngout(executeadvpng(executepngquant(executeoptipng(executepngout(executeadvpng(workingfile, path), path), path), path), path), path), path), path...
MatthewJuliusScott/ImageOptimization
[ 1, 0, 0, 0 ]
23,231
@Test public void testValueOfJ() { // workaround to register this test as covering some part of the testee. // static variable access does not currently register as coverage . . . HasMutableStaticInitializer.noticeMe(); assertEquals(101, HasMutableStaticInitializer.j); }
@Test public void testValueOfJ() { HasMutableStaticInitializer.noticeMe(); assertEquals(101, HasMutableStaticInitializer.j); }
@test public void testvalueofj() { hasmutablestaticinitializer.noticeme(); assertequals(101, hasmutablestaticinitializer.j); }
Programming-Systems-Lab/pitest
[ 0, 1, 0, 0 ]
31,477
@Test public void testLineOfCaller() { assumeStackTraceDetailsAvailable(); DynamicConverter<ILoggingEvent> converter = new LineOfCallerConverter(); StringBuilder buf = new StringBuilder(); converter.write(buf, le); // the number below should be the line number of the previous line assertEquals...
@Test public void testLineOfCaller() { assumeStackTraceDetailsAvailable(); DynamicConverter<ILoggingEvent> converter = new LineOfCallerConverter(); StringBuilder buf = new StringBuilder(); converter.write(buf, le); assertEquals("78", buf.toString()); }
@test public void testlineofcaller() { assumestacktracedetailsavailable(); dynamicconverter<iloggingevent> converter = new lineofcallerconverter(); stringbuilder buf = new stringbuilder(); converter.write(buf, le); assertequals("78", buf.tostring()); }
LinZong/logback-android
[ 0, 0, 0, 1 ]
23,314
@Override public void runOpMode() throws InterruptedException { /* Initialize the setDrivePowers system variables. The init() methods of our hardware class does all the work: */ FtcDashboard dashboard = FtcDashboard.getInstance(); Telemetry dashboardTelemetry = dashboard.ge...
@Override public void runOpMode() throws InterruptedException { FtcDashboard dashboard = FtcDashboard.getInstance(); Telemetry dashboardTelemetry = dashboard.getTelemetry(); robot.init(hardwareMap, this, true, false); delayTimer.reset(); while (!opMode...
@override public void runopmode() throws interruptedexception { ftcdashboard dashboard = ftcdashboard.getinstance(); telemetry dashboardtelemetry = dashboard.gettelemetry(); robot.init(hardwaremap, this, true, false); delaytimer.reset(); while (!opmodeisactive()) { if (this.isstoprequested()) { return; } if (gamepad1.d...
PanzerSchnitter/UltimateGoal2020
[ 0, 0, 0, 0 ]
15,126
private void clanList(L2PcInstance activeChar, int index) { if (index < 1) { index = 1; } // header final StringBuilder html = StringUtil.startAppend(2000, "<html><body><br><br><center><br1><br1><table border=0 cellspacing=0 cellpadding=0><tr><td FIXWIDTH=15>&nbsp;</td><td width=610 height=30 align=left><...
private void clanList(L2PcInstance activeChar, int index) { if (index < 1) { index = 1; } final StringBuilder html = StringUtil.startAppend(2000, "<html><body><br><br><center><br1><br1><table border=0 cellspacing=0 cellpadding=0><tr><td FIXWIDTH=15>&nbsp;</td><td width=610 height=30 align=left><a action=\...
private void clanlist(l2pcinstance activechar, int index) { if (index < 1) { index = 1; } final stringbuilder html = stringutil.startappend(2000, "<html><body><br><br><center><br1><br1><table border=0 cellspacing=0 cellpadding=0><tr><td fixwidth=15>&nbsp;</td><td width=610 height=30 align=left><a action=\"bypass _bbscl...
RollingSoftware/L2J_HighFive_Hardcore
[ 0, 1, 0, 0 ]
23,375
public void sendErrorEmail(RequestCycle cycle, Exception ex, IRequestLogger logger) { try { String customer = Utils.getCustomer(); Url url = cycle.getRequest().getUrl(); Url clientUrl = cycle.getRequest().getClientUrl(); String exStr = ExceptionUtils.getStackTrace...
public void sendErrorEmail(RequestCycle cycle, Exception ex, IRequestLogger logger) { try { String customer = Utils.getCustomer(); Url url = cycle.getRequest().getUrl(); Url clientUrl = cycle.getRequest().getClientUrl(); String exStr = ExceptionUtils.getStackTrace...
public void senderroremail(requestcycle cycle, exception ex, irequestlogger logger) { try { string customer = utils.getcustomer(); url url = cycle.getrequest().geturl(); url clienturl = cycle.getrequest().getclienturl(); string exstr = exceptionutils.getstacktrace(ex); string fullurl = cycle.geturlrenderer().renderfull...
RomanSery/codesnippets
[ 0, 1, 0, 0 ]
23,575
public static void main(String[] args) { // TODO Auto-generated method stub //Assuming stock of each sport is 2 Sports sp1=new IndoorSports(); System.out.println("Total Indoor Sports Stock:"+sp1.getCurrentStock()); sp1=new Billiards(sp1); System.out.println("Total Indoor Sports Stock:"+sp1.getCurrentStock()...
public static void main(String[] args) { Sports sp1=new IndoorSports(); System.out.println("Total Indoor Sports Stock:"+sp1.getCurrentStock()); sp1=new Billiards(sp1); System.out.println("Total Indoor Sports Stock:"+sp1.getCurrentStock()); sp1=new Carrom(sp1); System.out.println("Total Indoor Sports Sto...
public static void main(string[] args) { sports sp1=new indoorsports(); system.out.println("total indoor sports stock:"+sp1.getcurrentstock()); sp1=new billiards(sp1); system.out.println("total indoor sports stock:"+sp1.getcurrentstock()); sp1=new carrom(sp1); system.out.println("total indoor sports stock:"+sp1.getcurr...
Saba-d-coder/6thSemIse
[ 1, 0, 0, 0 ]
15,413
public void put(String name, Scriptable start, Object value) { try { ObjectLocation variable = this.extractFieldVariable(name); if (value instanceof NativeArray) { // FIXME this breaks referential equality, but maybe it's OK variable.set(this.sequenceFromArray((NativeArray)value, start)); ret...
public void put(String name, Scriptable start, Object value) { try { ObjectLocation variable = this.extractFieldVariable(name); if (value instanceof NativeArray) { variable.set(this.sequenceFromArray((NativeArray)value, start)); return; } if (variable instanceof FloatLocation) { v...
public void put(string name, scriptable start, object value) { try { objectlocation variable = this.extractfieldvariable(name); if (value instanceof nativearray) { variable.set(this.sequencefromarray((nativearray)value, start)); return; } if (variable instanceof floatlocation) { value = context.jstojava(value, float.cl...
LivelyKernel/sunlabs-kernel
[ 1, 0, 1, 0 ]
15,430
private static Method getMethod() { return method.get(0); }
private static Method getMethod() { return method.get(0); }
private static method getmethod() { return method.get(0); }
Modify24x7/ApkStringDecryptor
[ 1, 0, 0, 0 ]
15,621
private boolean initCipher() { try { //Obtain a cipher instance and configure it with the properties required for fingerprint authentication// if(this.cipher == null) { this.cipher = Cipher.getInstance( KeyProperties.KEY_ALGORITHM_AES + "/" ...
private boolean initCipher() { try { if(this.cipher == null) { this.cipher = Cipher.getInstance( KeyProperties.KEY_ALGORITHM_AES + "/" + KeyProperties.BLOCK_MODE_CBC + "/" + KeyPropert...
private boolean initcipher() { try { if(this.cipher == null) { this.cipher = cipher.getinstance( keyproperties.key_algorithm_aes + "/" + keyproperties.block_mode_cbc + "/" + keyproperties.encryption_padding_pkcs7); } } catch (nosuchalgorithmexception | nosuchpaddingexception e) { e.printstacktrace(); return false; } tr...
PGMacDesign/PGMacTips
[ 1, 0, 0, 0 ]
23,837
private void writeRunnerProject() throws IOException, XmlException, ParseException { // TODO revise whole method // TODO now using a newer JAPA (suuports java 8), -> maybe ANTLR supports better PathUtils.createDir(getRunnerProjectSettings().getBaseDir().toPath()); // copy snippets ...
private void writeRunnerProject() throws IOException, XmlException, ParseException { PathUtils.createDir(getRunnerProjectSettings().getBaseDir().toPath()); PathUtils.copy(getSnippetProject().getSourceDir(), getRunnerProjectSettings().getSnippetSourceDirectory().to...
private void writerunnerproject() throws ioexception, xmlexception, parseexception { pathutils.createdir(getrunnerprojectsettings().getbasedir().topath()); pathutils.copy(getsnippetproject().getsourcedir(), getrunnerprojectsettings().getsnippetsourcedirectory().topath()); writeinfofile(); collection<file> fileswritten ...
SETTE-Testing/sette-tool
[ 1, 0, 1, 0 ]
15,691
public boolean isSubjectEmpty() { return TextUtils.getTrimmedLength(mSubject.getText()) == 0; }
public boolean isSubjectEmpty() { return TextUtils.getTrimmedLength(mSubject.getText()) == 0; }
public boolean issubjectempty() { return textutils.gettrimmedlength(msubject.gettext()) == 0; }
Keneral/apackages
[ 1, 0, 0, 0 ]
23,891
public void buildOutAssignment(StringBuilder sb, PLSQLargument outArg, PLSQLStoredProcedureCall call) { String sql2PlName = call.getPl2SQLName(this); if (sql2PlName == null) { // TODO: Error. throw new NullPointerException("no Pl2SQL conversion routine for " + typeName); ...
public void buildOutAssignment(StringBuilder sb, PLSQLargument outArg, PLSQLStoredProcedureCall call) { String sql2PlName = call.getPl2SQLName(this); if (sql2PlName == null) { throw new NullPointerException("no Pl2SQL conversion routine for " + typeName); } String...
public void buildoutassignment(stringbuilder sb, plsqlargument outarg, plsqlstoredprocedurecall call) { string sql2plname = call.getpl2sqlname(this); if (sql2plname == null) { throw new nullpointerexception("no pl2sql conversion routine for " + typename); } string target = databasetypehelper.buildtarget(outarg); sb.app...
Pandrex247/patched-src-eclipselink
[ 0, 0, 1, 0 ]
23,901
private void guestSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_guestSearchActionPerformed // TODO add your handling code here: //Guestsearch guestsearch = new Guestsearch(jFrameInstance, email); //jFrameInstance.changePanelToSpecific(guestsearch); }
private void guestSearchActionPerformed(java.awt.event.ActionEvent evt) { }
private void guestsearchactionperformed(java.awt.event.actionevent evt) { }
Jed-g/property-booking-system
[ 0, 1, 0, 0 ]
32,148
@Override protected void setUp() throws Exception { super.setUp(); // TODO: This test will actually mess with contacts on your phone. // Ideally we would use a fake content provider to give us contact data... FakeFactory.registerWithoutFakeContext(getTestContext()); // add te...
@Override protected void setUp() throws Exception { super.setUp(); FakeFactory.registerWithoutFakeContext(getTestContext()); addTestContact("John", "650-123-1233", "john@gmail.com", false); addTestContact("Joe", "(650)123-1233", "joe@gmail.com", false); ...
@override protected void setup() throws exception { super.setup(); fakefactory.registerwithoutfakecontext(gettestcontext()); addtestcontact("john", "650-123-1233", "john@gmail.com", false); addtestcontact("joe", "(650)123-1233", "joe@gmail.com", false); addtestcontact("jim", "650 123 1233", "jim@gmail.com", false); add...
Keneral/apackages
[ 0, 0, 0, 1 ]
15,785
@Override public ItemStack transferStackInSlot(EntityPlayer player, int slot) { // TODO: Try to come up with a generic way of implementing this return null; }
@Override public ItemStack transferStackInSlot(EntityPlayer player, int slot) { return null; }
@override public itemstack transferstackinslot(entityplayer player, int slot) { return null; }
PC-Logix/GregsLighting-Reloaded
[ 1, 0, 0, 0 ]
7,631
public JSONArray getProjectRevisions(ProjectEndpoint endpoint) { //TODO need to add paging somewhere (page, items) to handle long commit histories String json = restInterface.get(TeamworkCloudEndpoints.GET_PROJECT_REVISIONS.buildUrl(endpoint.getHost(), endpoint.getCollection(), endpoint.getProject(), "true"), e...
public JSONArray getProjectRevisions(ProjectEndpoint endpoint) { String json = restInterface.get(TeamworkCloudEndpoints.GET_PROJECT_REVISIONS.buildUrl(endpoint.getHost(), endpoint.getCollection(), endpoint.getProject(), "true"), endpoint.getToken(), String.class); return new JSONArray(json); }
public jsonarray getprojectrevisions(projectendpoint endpoint) { string json = restinterface.get(teamworkcloudendpoints.get_project_revisions.buildurl(endpoint.gethost(), endpoint.getcollection(), endpoint.getproject(), "true"), endpoint.gettoken(), string.class); return new jsonarray(json); }
Open-MBEE/sync-service
[ 0, 1, 0, 0 ]
24,107
public void ClearScreenTest(){ press(R.id.btn_1); press(R.id.btn_0); press(R.id.btn_0); press(R.id.btn_0); press(R.id.btn_0); press(R.id.btn_1); press(R.id.btn_1); press(R.id.btn_1); press(R.id.btn_1); press(R.id.btn_1); press(R.id....
public void ClearScreenTest(){ press(R.id.btn_1); press(R.id.btn_0); press(R.id.btn_0); press(R.id.btn_0); press(R.id.btn_0); press(R.id.btn_1); press(R.id.btn_1); press(R.id.btn_1); press(R.id.btn_1); press(R.id.btn_1); press(R.id....
public void clearscreentest(){ press(r.id.btn_1); press(r.id.btn_0); press(r.id.btn_0); press(r.id.btn_0); press(r.id.btn_0); press(r.id.btn_1); press(r.id.btn_1); press(r.id.btn_1); press(r.id.btn_1); press(r.id.btn_1); press(r.id.btn_1); press(r.id.binary_number_2); press(r.id.btn_1); press(r.id.btn_0); press(r.id.bt...
ModestosV/Simple-Calculator
[ 0, 0, 0, 1 ]
24,108
public void DeleteTest(){ press(R.id.btn_1); press(R.id.btn_0); press(R.id.btn_0); press(R.id.btn_0); press(R.id.btn_0); press(R.id.btn_1); press(R.id.btn_1); press(R.id.btn_1); press(R.id.btn_1); press(R.id.btn_1); press(R.id.btn_1...
public void DeleteTest(){ press(R.id.btn_1); press(R.id.btn_0); press(R.id.btn_0); press(R.id.btn_0); press(R.id.btn_0); press(R.id.btn_1); press(R.id.btn_1); press(R.id.btn_1); press(R.id.btn_1); press(R.id.btn_1); press(R.id.btn_1...
public void deletetest(){ press(r.id.btn_1); press(r.id.btn_0); press(r.id.btn_0); press(r.id.btn_0); press(r.id.btn_0); press(r.id.btn_1); press(r.id.btn_1); press(r.id.btn_1); press(r.id.btn_1); press(r.id.btn_1); press(r.id.btn_1); press(r.id.btn_del); checkbinary1("1000011111"); press(r.id.binary_number_2); press(r...
ModestosV/Simple-Calculator
[ 0, 0, 0, 1 ]
15,927
public int ExecuteGFXCommand(int cmd, int len, byte[] cmddata, int[] hasret) { len -= 4; // for the 4 byte header hasret[0] = 0; // Nothing to return by default // System.out.println("GFXCMD=" + cmd); // make sure the frame is still valid or we could crash on fullscreen mode switches if((cmd != GFXCMD_INIT...
public int ExecuteGFXCommand(int cmd, int len, byte[] cmddata, int[] hasret) { len -= 4; hasret[0] = 0; if((cmd != GFXCMD_INIT) && (cmd != GFXCMD_DEINIT)) { if((f != null) ? (!f.isDisplayable() || !f.isValid() || !f.isShowing()) : true) { while((f != null) ? (!f.isDisplayable() || !f.isValid() ...
public int executegfxcommand(int cmd, int len, byte[] cmddata, int[] hasret) { len -= 4; hasret[0] = 0; if((cmd != gfxcmd_init) && (cmd != gfxcmd_deinit)) { if((f != null) ? (!f.isdisplayable() || !f.isvalid() || !f.isshowing()) : true) { while((f != null) ? (!f.isdisplayable() || !f.isvalid() || !f.isshowing()) : true...
Narflex/sagetv
[ 1, 0, 1, 0 ]
7,810
public boolean isOvertaking() { if (overtakeStage != OvertakeStage.NOT_OVERTAKING) { return true; } else { return false; } }
public boolean isOvertaking() { if (overtakeStage != OvertakeStage.NOT_OVERTAKING) { return true; } else { return false; } }
public boolean isovertaking() { if (overtakestage != overtakestage.not_overtaking) { return true; } else { return false; } }
RobAlexander/SCovSGen
[ 0, 1, 0, 0 ]
16,039
public static List<String> generateParenthesis1(int n) { Set<String>[] dp = new Set[n + 1]; Set<String> first = new HashSet<>(); first.add(""); dp[0] = first; for (int i = 1; i <= n; i++) { Set<String> set = new HashSet<>(); for (String pre : dp[i - 1]) { ...
public static List<String> generateParenthesis1(int n) { Set<String>[] dp = new Set[n + 1]; Set<String> first = new HashSet<>(); first.add(""); dp[0] = first; for (int i = 1; i <= n; i++) { Set<String> set = new HashSet<>(); for (String pre : dp[i - 1]) { ...
public static list<string> generateparenthesis1(int n) { set<string>[] dp = new set[n + 1]; set<string> first = new hashset<>(); first.add(""); dp[0] = first; for (int i = 1; i <= n; i++) { set<string> set = new hashset<>(); for (string pre : dp[i - 1]) { set.add("(" + pre + ")"); } for (int m = 1; m < i; m++) { for (s...
Joybeanx/leetcode
[ 1, 0, 0, 0 ]
24,717
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { Study study = ControllerUtil.findStudy(request, mStudyService); Submission submission = (Submission) study.getSubmission(); StudyCommand studyCommand = new StudyCommand(); // copy study information ...
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { Study study = ControllerUtil.findStudy(request, mStudyService); Submission submission = (Submission) study.getSubmission(); StudyCommand studyCommand = new StudyCommand(); studyCommand.setStudy(stu...
public modelandview handlerequest(httpservletrequest request, httpservletresponse response) throws exception { study study = controllerutil.findstudy(request, mstudyservice); submission submission = (submission) study.getsubmission(); studycommand studycommand = new studycommand(); studycommand.setstudy(study); if (sub...
TreeBASE/treebasetest
[ 0, 1, 1, 0 ]
148
private void addVar(Varlet v){ long key=key(v.chromosome, v.beginLoc); ArrayList<Varlet> list=keymap.get(key); assert(list!=null) : "\nCan't find "+key+" in "+keymap.keySet()+"\n"; synchronized(list){ list.add(v); if(list.size()>=WRITE_BUFFER){ if(MERGE_EQUAL_VARLETS){ mergeEqualVarlets(l...
private void addVar(Varlet v){ long key=key(v.chromosome, v.beginLoc); ArrayList<Varlet> list=keymap.get(key); assert(list!=null) : "\nCan't find "+key+" in "+keymap.keySet()+"\n"; synchronized(list){ list.add(v); if(list.size()>=WRITE_BUFFER){ if(MERGE_EQUAL_VARLETS){ mergeEqualVarlets(l...
private void addvar(varlet v){ long key=key(v.chromosome, v.beginloc); arraylist<varlet> list=keymap.get(key); assert(list!=null) : "\ncan't find "+key+" in "+keymap.keyset()+"\n"; synchronized(list){ list.add(v); if(list.size()>=write_buffer){ if(merge_equal_varlets){ mergeequalvarlets(list); }else{ collections.sort(l...
SilasK/BBMap
[ 1, 0, 0, 0 ]
16,664
private NiceWebDriver getNiceWebDriverInstance(DriverType driverType, Object[] oArgs){ switch(driverType) { case Chrome: return new NiceChrome().UnderloadedNiceWebDriverConstructor(oArgs).getThisWithVerbositySetTo(outputIsVerbose); case Firefox: return null; //TODO: Make Firefox subclass case IE: ...
private NiceWebDriver getNiceWebDriverInstance(DriverType driverType, Object[] oArgs){ switch(driverType) { case Chrome: return new NiceChrome().UnderloadedNiceWebDriverConstructor(oArgs).getThisWithVerbositySetTo(outputIsVerbose); case Firefox: return null; case IE: return null; case Edge: ...
private nicewebdriver getnicewebdriverinstance(drivertype drivertype, object[] oargs){ switch(drivertype) { case chrome: return new nicechrome().underloadednicewebdriverconstructor(oargs).getthiswithverbositysetto(outputisverbose); case firefox: return null; case ie: return null; case edge: return null; case opera: ret...
Skenvy/SeleniumNG
[ 0, 1, 0, 0 ]
33,149
private void tag() throws Exception { String[] asFilename = (String[])m_oCmdLineMap.get("filenames"); for (int i=0; i < asFilename.length; i++) { File oSourceFile = new File(asFilename[i]); MP3File oMP3File = new MP3File(oSourceFile); if (m_oCmdLin...
private void tag() throws Exception { String[] asFilename = (String[])m_oCmdLineMap.get("filenames"); for (int i=0; i < asFilename.length; i++) { File oSourceFile = new File(asFilename[i]); MP3File oMP3File = new MP3File(oSourceFile); if (m_oCmdLin...
private void tag() throws exception { string[] asfilename = (string[])m_ocmdlinemap.get("filenames"); for (int i=0; i < asfilename.length; i++) { file osourcefile = new file(asfilename[i]); mp3file omp3file = new mp3file(osourcefile); if (m_ocmdlinemap.containskey("1")) { id3v1_1tag oid3v1_1tag = new id3v1_1tag(); if (...
ShahzaibAyyub/Music-Player-Library-Java-SQL
[ 1, 0, 0, 0 ]
8,611
@Override public void actionPerformed(ActionEvent e) { if(currSel!= null && currSel instanceof GroupTreeNode){ // differentiate clones in this group GroupTreeNode gtn = (GroupTreeNode)currSel; // if(gtn.getChildCount() == 2){ // TODO: currently we only support two way comparison ...
@Override public void actionPerformed(ActionEvent e) { if(currSel!= null && currSel instanceof GroupTreeNode){ GroupTreeNode gtn = (GroupTreeNode)currSel; CloneTreeNode ctn1 = (CloneTreeNode)gtn.getChildAt(0); CloneTreeNode ctn2 = (CloneTreeNode)gtn.getChildAt(1); String...
@override public void actionperformed(actionevent e) { if(currsel!= null && currsel instanceof grouptreenode){ grouptreenode gtn = (grouptreenode)currsel; clonetreenode ctn1 = (clonetreenode)gtn.getchildat(0); clonetreenode ctn2 = (clonetreenode)gtn.getchildat(1); string file1 = ctn1.getfile(); string file2 = ctn2.getf...
UCLA-SEAL/Grafter
[ 1, 0, 0, 0 ]
25,018
private BaseQuery buildQueryNoAggregations(QueryFactory queryFactory, String queryString, Map<String, Object> namedParameters, long startOffset, int maxResults, IckleParsingResult<TypeMetadata> parsingResult) { if (parsingResult.hasGroupingOrAggregations()) { ...
private BaseQuery buildQueryNoAggregations(QueryFactory queryFactory, String queryString, Map<String, Object> namedParameters, long startOffset, int maxResults, IckleParsingResult<TypeMetadata> parsingResult) { if (parsingResult.hasGroupingOrAggregations()) { ...
private basequery buildquerynoaggregations(queryfactory queryfactory, string querystring, map<string, object> namedparameters, long startoffset, int maxresults, ickleparsingresult<typemetadata> parsingresult) { if (parsingresult.hasgroupingoraggregations()) { throw log.querymustnotusegroupingoraggregation(); } boolean ...
TomasHofman/infinispan
[ 1, 0, 0, 0 ]
448
public static char[][] fill(char contents, int width, int height) { char[][] next = new char[width][height]; for (int x = 0; x < width; x++) { Arrays.fill(next[x], contents); } return next; }
public static char[][] fill(char contents, int width, int height) { char[][] next = new char[width][height]; for (int x = 0; x < width; x++) { Arrays.fill(next[x], contents); } return next; }
public static char[][] fill(char contents, int width, int height) { char[][] next = new char[width][height]; for (int x = 0; x < width; x++) { arrays.fill(next[x], contents); } return next; }
SquidPony/SquidLib
[ 1, 0, 0, 0 ]
449
public static float[][] fill(float contents, int width, int height) { float[][] next = new float[width][height]; for (int x = 0; x < width; x++) { Arrays.fill(next[x], contents); } return next; }
public static float[][] fill(float contents, int width, int height) { float[][] next = new float[width][height]; for (int x = 0; x < width; x++) { Arrays.fill(next[x], contents); } return next; }
public static float[][] fill(float contents, int width, int height) { float[][] next = new float[width][height]; for (int x = 0; x < width; x++) { arrays.fill(next[x], contents); } return next; }
SquidPony/SquidLib
[ 1, 0, 0, 0 ]
450
public static double[][] fill(double contents, int width, int height) { double[][] next = new double[width][height]; for (int x = 0; x < width; x++) { Arrays.fill(next[x], contents); } return next; }
public static double[][] fill(double contents, int width, int height) { double[][] next = new double[width][height]; for (int x = 0; x < width; x++) { Arrays.fill(next[x], contents); } return next; }
public static double[][] fill(double contents, int width, int height) { double[][] next = new double[width][height]; for (int x = 0; x < width; x++) { arrays.fill(next[x], contents); } return next; }
SquidPony/SquidLib
[ 1, 0, 0, 0 ]
451
public static int[][] fill(int contents, int width, int height) { int[][] next = new int[width][height]; for (int x = 0; x < width; x++) { Arrays.fill(next[x], contents); } return next; }
public static int[][] fill(int contents, int width, int height) { int[][] next = new int[width][height]; for (int x = 0; x < width; x++) { Arrays.fill(next[x], contents); } return next; }
public static int[][] fill(int contents, int width, int height) { int[][] next = new int[width][height]; for (int x = 0; x < width; x++) { arrays.fill(next[x], contents); } return next; }
SquidPony/SquidLib
[ 1, 0, 0, 0 ]
452
public static byte[][] fill(byte contents, int width, int height) { byte[][] next = new byte[width][height]; for (int x = 0; x < width; x++) { Arrays.fill(next[x], contents); } return next; }
public static byte[][] fill(byte contents, int width, int height) { byte[][] next = new byte[width][height]; for (int x = 0; x < width; x++) { Arrays.fill(next[x], contents); } return next; }
public static byte[][] fill(byte contents, int width, int height) { byte[][] next = new byte[width][height]; for (int x = 0; x < width; x++) { arrays.fill(next[x], contents); } return next; }
SquidPony/SquidLib
[ 1, 0, 0, 0 ]
453
public static boolean[][] fill(boolean contents, int width, int height) { boolean[][] next = new boolean[width][height]; if (contents) { for (int x = 0; x < width; x++) { Arrays.fill(next[x], true); } } return next; }
public static boolean[][] fill(boolean contents, int width, int height) { boolean[][] next = new boolean[width][height]; if (contents) { for (int x = 0; x < width; x++) { Arrays.fill(next[x], true); } } return next; }
public static boolean[][] fill(boolean contents, int width, int height) { boolean[][] next = new boolean[width][height]; if (contents) { for (int x = 0; x < width; x++) { arrays.fill(next[x], true); } } return next; }
SquidPony/SquidLib
[ 1, 0, 0, 0 ]
16,885
@JsonGetter("limit") public String getLimit ( ) { return this.limit; }
@JsonGetter("limit") public String getLimit ( ) { return this.limit; }
@jsongetter("limit") public string getlimit ( ) { return this.limit; }
adams-okode/chirpstack-rest-sdk
[ 0, 0, 0, 0 ]
25,078
@Override protected void execute(CalculationMonitor monitor){ // import the image data into 1D arrays : TO DO ImageDataFloat layersImg = new ImageDataFloat(layersImage.getImageData()); ImageDataFloat intensImg = new ImageDataFloat(intensityImage.getImageData()); int nx = layersImg.getRows(); int ny = layersI...
@Override protected void execute(CalculationMonitor monitor){ ImageDataFloat layersImg = new ImageDataFloat(layersImage.getImageData()); ImageDataFloat intensImg = new ImageDataFloat(intensityImage.getImageData()); int nx = layersImg.getRows(); int ny = layersImg.getCols(); int nz = layersImg.getSlices(); ...
@override protected void execute(calculationmonitor monitor){ imagedatafloat layersimg = new imagedatafloat(layersimage.getimagedata()); imagedatafloat intensimg = new imagedatafloat(intensityimage.getimagedata()); int nx = layersimg.getrows(); int ny = layersimg.getcols(); int nz = layersimg.getslices(); int nlayers =...
alaurent4/nighres
[ 0, 1, 0, 0 ]
16,887
@JsonGetter("offset") public String getOffset ( ) { return this.offset; }
@JsonGetter("offset") public String getOffset ( ) { return this.offset; }
@jsongetter("offset") public string getoffset ( ) { return this.offset; }
adams-okode/chirpstack-rest-sdk
[ 0, 0, 0, 0 ]
16,886
@JsonSetter("limit") public void setLimit (String value) { this.limit = value; }
@JsonSetter("limit") public void setLimit (String value) { this.limit = value; }
@jsonsetter("limit") public void setlimit (string value) { this.limit = value; }
adams-okode/chirpstack-rest-sdk
[ 0, 0, 0, 0 ]
16,888
@JsonSetter("offset") public void setOffset (String value) { this.offset = value; }
@JsonSetter("offset") public void setOffset (String value) { this.offset = value; }
@jsonsetter("offset") public void setoffset (string value) { this.offset = value; }
adams-okode/chirpstack-rest-sdk
[ 0, 0, 0, 0 ]
25,180
public static int staticCompare(UUID u1, UUID u2) { // First: major sorting by types int type = u1.version(); int diff = type - u2.version(); if (diff != 0) { return diff; } // Second: for time-based variant, order by time stamp: if (type == UUIDTy...
public static int staticCompare(UUID u1, UUID u2) { int type = u1.version(); int diff = type - u2.version(); if (diff != 0) { return diff; } if (type == UUIDType.TIME_BASED.raw()) { diff = compareULongs(u1.timestamp(), u2.timestamp()); ...
public static int staticcompare(uuid u1, uuid u2) { int type = u1.version(); int diff = type - u2.version(); if (diff != 0) { return diff; } if (type == uuidtype.time_based.raw()) { diff = compareulongs(u1.timestamp(), u2.timestamp()); if (diff == 0) { diff = compareulongs(u1.getleastsignificantbits(), u2.getleastsigni...
andrebrait/java-uuid-generator
[ 0, 0, 0, 0 ]
653
public PlayerPathData populateStats() { this.playerEntity = strongholdPath.getPlayerEntity(); StrongholdGenerator.Start start = this.strongholdPath.getStart(); StrongholdTreeAccessor treeAccessor = (StrongholdTreeAccessor) start; List<StrongholdPathEntry> history = this.strongholdPath.ge...
public PlayerPathData populateStats() { this.playerEntity = strongholdPath.getPlayerEntity(); StrongholdGenerator.Start start = this.strongholdPath.getStart(); StrongholdTreeAccessor treeAccessor = (StrongholdTreeAccessor) start; List<StrongholdPathEntry> history = this.strongholdPath.ge...
public playerpathdata populatestats() { this.playerentity = strongholdpath.getplayerentity(); strongholdgenerator.start start = this.strongholdpath.getstart(); strongholdtreeaccessor treeaccessor = (strongholdtreeaccessor) start; list<strongholdpathentry> history = this.strongholdpath.gethistory(); arraylist<structurep...
ScribbleLP/StrongholdTrainer
[ 0, 1, 0, 0 ]
17,055
public void sendEmail(String userId1, String userId2, String asgmtName, double score, String recipientMail, String reportLink) throws Exception { MimeMessage message = sender.createMimeMessage(); MimeMessageHelper helper = new MimeMessageHelper(message); String stud1 = userService.findById(userId1).getfName();...
public void sendEmail(String userId1, String userId2, String asgmtName, double score, String recipientMail, String reportLink) throws Exception { MimeMessage message = sender.createMimeMessage(); MimeMessageHelper helper = new MimeMessageHelper(message); String stud1 = userService.findById(userId1).getfName();...
public void sendemail(string userid1, string userid2, string asgmtname, double score, string recipientmail, string reportlink) throws exception { mimemessage message = sender.createmimemessage(); mimemessagehelper helper = new mimemessagehelper(message); string stud1 = userservice.findbyid(userid1).getfname(); string s...
Stephen3333/codesniffer
[ 0, 1, 0, 0 ]
17,081
@Override public void refresh() throws LoginException, GSSException { // TODO: do we need to call logout() on the LoginContext? loginContext = new LoginContext("", null, null, new Configuration() { @Override public AppConfigurationEntry[] getAppConfigu...
@Override public void refresh() throws LoginException, GSSException { loginContext = new LoginContext("", null, null, new Configuration() { @Override public AppConfigurationEntry[] getAppConfigurationEntry(String name) { Imm...
@override public void refresh() throws loginexception, gssexception { logincontext = new logincontext("", null, null, new configuration() { @override public appconfigurationentry[] getappconfigurationentry(string name) { immutablemap.builder<string, string> options = immutablemap.builder(); options.put("refreshkrb5conf...
SanjayTechGuru/TRINO
[ 1, 0, 0, 0 ]
17,089
@Override public void reduce(BytesWritable key, Iterable<BytesWritable> values, Context context) throws IOException, InterruptedException { int defCount = 0; refs.clear(); // We only expect two values, a DEF and a reference, but there might be more. for (BytesWritable typ...
@Override public void reduce(BytesWritable key, Iterable<BytesWritable> values, Context context) throws IOException, InterruptedException { int defCount = 0; refs.clear(); for (BytesWritable type : values) { if (type.getLength() == DEF.getLength()) { ...
@override public void reduce(byteswritable key, iterable<byteswritable> values, context context) throws ioexception, interruptedexception { int defcount = 0; refs.clear(); for (byteswritable type : values) { if (type.getlength() == def.getlength()) { defcount++; } else { byte[] bytes = new byte[type.getlength()]; syste...
YCjia/kudu
[ 1, 1, 0, 0 ]
748
public boolean addNewTodo(Request req, Response res) { res.type("application/json"); Object o = JSON.parse(req.body()); try { if(o.getClass().equals(BasicDBObject.class)) { try { BasicDBObject dbO = (BasicDBObject) o; ...
public boolean addNewTodo(Request req, Response res) { res.type("application/json"); Object o = JSON.parse(req.body()); try { if(o.getClass().equals(BasicDBObject.class)) { try { BasicDBObject dbO = (BasicDBObject) o; ...
public boolean addnewtodo(request req, response res) { res.type("application/json"); object o = json.parse(req.body()); try { if(o.getclass().equals(basicdbobject.class)) { try { basicdbobject dbo = (basicdbobject) o; string owner = dbo.getstring("owner"); boolean status = dbo.getboolean("status"); string body = dbo.ge...
UMM-CSci-3601-S18/lab-4-mongo-voyageurs-national-park
[ 0, 0, 1, 0 ]
25,329
public void shutdown() { try { LOGGER.info("Shutting down listener on " + host + ":" + port); running.set(false); // This isn't good, the Jedis object is not thread safe jedis.disconnect(); } catch (Exception e) { LOGGER.error("Caught exception while shutting down: " + e.getMessage())...
public void shutdown() { try { LOGGER.info("Shutting down listener on " + host + ":" + port); running.set(false); jedis.disconnect(); } catch (Exception e) { LOGGER.error("Caught exception while shutting down: " + e.getMessage()); } }
public void shutdown() { try { logger.info("shutting down listener on " + host + ":" + port); running.set(false); jedis.disconnect(); } catch (exception e) { logger.error("caught exception while shutting down: " + e.getmessage()); } }
Samsung/Spark-CEP
[ 1, 0, 0, 0 ]
17,260
public int getLineForVertical(int vertical) { int high = getLineCount(), low = -1, guess; while (high - low > 1) { guess = (high + low) / 2; if (getLineTop(guess) > vertical) high = guess; else low = guess; } if (low < 0...
public int getLineForVertical(int vertical) { int high = getLineCount(), low = -1, guess; while (high - low > 1) { guess = (high + low) / 2; if (getLineTop(guess) > vertical) high = guess; else low = guess; } if (low < 0...
public int getlineforvertical(int vertical) { int high = getlinecount(), low = -1, guess; while (high - low > 1) { guess = (high + low) / 2; if (getlinetop(guess) > vertical) high = guess; else low = guess; } if (low < 0) return 0; else return low; }
VPeruS/JotaTextEditor
[ 1, 0, 0, 0 ]
9,218
@Override public void visitElement(PsiElement element) { if (this.context.skip(element)) { return; } // TODO: the refactor this.holder.registerProblem(element, this.context.getMessage()); }
@Override public void visitElement(PsiElement element) { if (this.context.skip(element)) { return; } this.holder.registerProblem(element, this.context.getMessage()); }
@override public void visitelement(psielement element) { if (this.context.skip(element)) { return; } this.holder.registerproblem(element, this.context.getmessage()); }
aarthibl/intellibot
[ 1, 0, 0, 0 ]
9,220
private static ConfigurationOptions defaultOptions() { return ConfigurationOptions.defaults() .serializers(SpongeCommon.game().configManager().serializers()); }
private static ConfigurationOptions defaultOptions() { return ConfigurationOptions.defaults() .serializers(SpongeCommon.game().configManager().serializers()); }
private static configurationoptions defaultoptions() { return configurationoptions.defaults() .serializers(spongecommon.game().configmanager().serializers()); }
SpongePowered/Common
[ 1, 0, 0, 0 ]
25,606
@Test public void testRetrieveUserByName() { em.getTransaction().begin(); em.createNativeQuery("INSERT INTO t_users( user_id, name, date_added, description)" + " VALUES (1, 'BOOM1', '1988-09-15', 'TEST USER1');").executeUpdate(); em.createNativeQuery("INSERT INTO t_users( user_id, name, date_added, descripti...
@Test public void testRetrieveUserByName() { em.getTransaction().begin(); em.createNativeQuery("INSERT INTO t_users( user_id, name, date_added, description)" + " VALUES (1, 'BOOM1', '1988-09-15', 'TEST USER1');").executeUpdate(); em.createNativeQuery("INSERT INTO t_users( user_id, name, date_added, descripti...
@test public void testretrieveuserbyname() { em.gettransaction().begin(); em.createnativequery("insert into t_users( user_id, name, date_added, description)" + " values (1, 'boom1', '1988-09-15', 'test user1');").executeupdate(); em.createnativequery("insert into t_users( user_id, name, date_added, description)" + " va...
andrewflbarnes/debt-tracker
[ 0, 1, 0, 0 ]
1,134
private void restoreKVStateMetaData() throws IOException, StateMigrationException, RocksDBException { KeyedBackendSerializationProxy<K> serializationProxy = new KeyedBackendSerializationProxy<>(rocksDBKeyedStateBackend.userCodeClassLoader); serializationProxy.read(currentStateHandleInView); // check for k...
private void restoreKVStateMetaData() throws IOException, StateMigrationException, RocksDBException { KeyedBackendSerializationProxy<K> serializationProxy = new KeyedBackendSerializationProxy<>(rocksDBKeyedStateBackend.userCodeClassLoader); serializationProxy.read(currentStateHandleInView); if (Comp...
private void restorekvstatemetadata() throws ioexception, statemigrationexception, rocksdbexception { keyedbackendserializationproxy<k> serializationproxy = new keyedbackendserializationproxy<>(rocksdbkeyedstatebackend.usercodeclassloader); serializationproxy.read(currentstatehandleinview); if (compatibilityutil.resolv...
alpinegizmo/flink
[ 1, 1, 0, 0 ]
1,136
private List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> readMetaData( StreamStateHandle metaStateHandle) throws Exception { FSDataInputStream inputStream = null; try { inputStream = metaStateHandle.openInputStream(); stateBackend.cancelStreamRegistry.registerClosable(inputStream); KeyedBa...
private List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> readMetaData( StreamStateHandle metaStateHandle) throws Exception { FSDataInputStream inputStream = null; try { inputStream = metaStateHandle.openInputStream(); stateBackend.cancelStreamRegistry.registerClosable(inputStream); KeyedBa...
private list<registeredkeyedbackendstatemetainfo.snapshot<?, ?>> readmetadata( streamstatehandle metastatehandle) throws exception { fsdatainputstream inputstream = null; try { inputstream = metastatehandle.openinputstream(); statebackend.cancelstreamregistry.registerclosable(inputstream); keyedbackendserializationprox...
alpinegizmo/flink
[ 1, 0, 0, 0 ]
25,762
@Test public void testCreateDbAndTable() throws Exception { // 1. create connect context ConnectContext ctx = UtFrameUtils.createDefaultCtx(); // 2. create database db1 String createDbStmtStr = "create database db1;"; CreateDbStmt createDbStmt = (CreateDbStmt) UtFrameUtils.pa...
@Test public void testCreateDbAndTable() throws Exception { ConnectContext ctx = UtFrameUtils.createDefaultCtx(); String createDbStmtStr = "create database db1;"; CreateDbStmt createDbStmt = (CreateDbStmt) UtFrameUtils.parseAndAnalyzeStmt(createDbStmtStr, ctx); Catalo...
@test public void testcreatedbandtable() throws exception { connectcontext ctx = utframeutils.createdefaultctx(); string createdbstmtstr = "create database db1;"; createdbstmt createdbstmt = (createdbstmt) utframeutils.parseandanalyzestmt(createdbstmtstr, ctx); catalog.getcurrentcatalog().createdb(createdbstmt); system...
WilsonWangCS/incubator-doris
[ 1, 0, 0, 0 ]
17,588
private void registerSnapshot () { try { Statement statement = connection.createStatement(); // TODO copy over feed_id and feed_version from source namespace? // FIXME do the following only on databases that support schemas. // SQLite does not support them. Is the...
private void registerSnapshot () { try { Statement statement = connection.createStatement(); statement.execute("create schema " + tablePrefix); PreparedStatement insertStatement = connection.prepareStatem...
private void registersnapshot () { try { statement statement = connection.createstatement(); statement.execute("create schema " + tableprefix); preparedstatement insertstatement = connection.preparestatement( "insert into feeds values (?, null, null, null, null, null, current_timestamp, ?)"); insertstatement.setstring(...
Wilhansen/gtfs-lib
[ 1, 1, 0, 0 ]
9,474
@Override protected void channelRead0(ChannelHandlerContext ctx, CoapMessage msg) { try { // Find proper device and raise event. Device targetDevice = ctx.channel().attr(keyDevice).get(); if (targetDevice == null) { ...
@Override protected void channelRead0(ChannelHandlerContext ctx, CoapMessage msg) { try { Device targetDevice = ctx.channel().attr(keyDevice).get(); if (targetDevice == null) { throw new InternalServerErrorException(...
@override protected void channelread0(channelhandlercontext ctx, coapmessage msg) { try { device targetdevice = ctx.channel().attr(keydevice).get(); if (targetdevice == null) { throw new internalservererrorexception( "unable to find device"); } if (msg instanceof coaprequest) { onrequestreceived(targetdevice, (coaprequ...
SenthilKumarGS/TizenRT
[ 1, 0, 0, 0 ]
9,490
public LNode reverseListRec(LNode head) { // TODO: implement this method /*This method takes a reference to the head of a linked list and returns the reference to the head of the linked list in the reversed order. */ if(head == null) { return head; } if(head.getLink() == null) ...
public LNode reverseListRec(LNode head) { if(head == null) { return head; } if(head.getLink() == null) { return head; } head.getLink().setLink(head); head.setLink(null); return reverseListRec(head); }
public lnode reverselistrec(lnode head) { if(head == null) { return head; } if(head.getlink() == null) { return head; } head.getlink().setlink(head); head.setlink(null); return reverselistrec(head); }
Sailia/data_structures
[ 0, 1, 0, 0 ]
17,706
@SuppressWarnings("ParameterName") public void drive(double xSpeed, double ySpeed, double rot, boolean fieldRelative) { // ask the kinematics to determine our swerve command ChassisSpeeds speeds; if (fieldRelative == true) { speeds = ChassisSpeeds.fromFieldRelativeSpeeds(xSpeed, ...
@SuppressWarnings("ParameterName") public void drive(double xSpeed, double ySpeed, double rot, boolean fieldRelative) { ChassisSpeeds speeds; if (fieldRelative == true) { speeds = ChassisSpeeds.fromFieldRelativeSpeeds(xSpeed, ySpeed, rot, getHeading()); } else { ...
@suppresswarnings("parametername") public void drive(double xspeed, double yspeed, double rot, boolean fieldrelative) { chassisspeeds speeds; if (fieldrelative == true) { speeds = chassisspeeds.fromfieldrelativespeeds(xspeed, yspeed, rot, getheading()); } else { speeds = new chassisspeeds(xspeed, yspeed, rot); } swerve...
Sammoore15/Robot2022-2832-altencoderforingestor
[ 0, 0, 0, 0 ]
1,344
private int generateNewTicketNumber() { //TODO: this may take foreever. fix int generated = numberGenerator.next(); while(purchased.containsKey(generated)){ generated = numberGenerator.next(); } return generated; }
private int generateNewTicketNumber() { int generated = numberGenerator.next(); while(purchased.containsKey(generated)){ generated = numberGenerator.next(); } return generated; }
private int generatenewticketnumber() { int generated = numbergenerator.next(); while(purchased.containskey(generated)){ generated = numbergenerator.next(); } return generated; }
aha0x0x/LotteryApplication
[ 0, 0, 1, 0 ]
17,729
public void setParentAtRowAndColumn(GridLayout parent, int row, int col) { // prepare the layout parameters for the EditText // TODO: Consider caching the layout params and only changing the spec row and spec column LayoutParams layoutParams = new GridLayout.LayoutParams(); layoutPar...
public void setParentAtRowAndColumn(GridLayout parent, int row, int col) { LayoutParams layoutParams = new GridLayout.LayoutParams(); layoutParams.width = LayoutParams.WRAP_CONTENT; layoutParams.height = LayoutParams.WRAP_CONTENT; layoutParams.rowSpec = GridLa...
public void setparentatrowandcolumn(gridlayout parent, int row, int col) { layoutparams layoutparams = new gridlayout.layoutparams(); layoutparams.width = layoutparams.wrap_content; layoutparams.height = layoutparams.wrap_content; layoutparams.rowspec = gridlayout.spec(row); layoutparams.columnspec = gridlayout.spec(co...
SnoBoarder/Sudoku-Solver
[ 0, 1, 0, 0 ]
34,188
public void testZKSMFalse() throws ZKSetMembershipException, BigIntegerClassNotValid { BigInteger[] theSet = {new BigInteger("0"), new BigInteger("1"), new BigInteger("2"), new BigInteger("3"), new BigInteger("4")}; EncryptedInteger c = new EncryptedInteger(new BigInteger("10"), pub); BigInteger r = c.set(ne...
public void testZKSMFalse() throws ZKSetMembershipException, BigIntegerClassNotValid { BigInteger[] theSet = {new BigInteger("0"), new BigInteger("1"), new BigInteger("2"), new BigInteger("3"), new BigInteger("4")}; EncryptedInteger c = new EncryptedInteger(new BigInteger("10"), pub); BigInteger r = c.set(ne...
public void testzksmfalse() throws zksetmembershipexception, bigintegerclassnotvalid { biginteger[] theset = {new biginteger("0"), new biginteger("1"), new biginteger("2"), new biginteger("3"), new biginteger("4")}; encryptedinteger c = new encryptedinteger(new biginteger("10"), pub); biginteger r = c.set(new bigintege...
SoftwareEngineeringToolDemos/type-inference
[ 0, 0, 1, 0 ]
34,189
public void testZKSMSingleMemberSetFalse() throws ZKSetMembershipException, BigIntegerClassNotValid { BigInteger[] theSet = {new BigInteger("0")}; EncryptedInteger c = new EncryptedInteger(BigInteger.ONE, pub); BigInteger r = c.set(BigInteger.ONE); int msgIndex = 0; for (int i=0; i<10; i++) { ZKSetMembersh...
public void testZKSMSingleMemberSetFalse() throws ZKSetMembershipException, BigIntegerClassNotValid { BigInteger[] theSet = {new BigInteger("0")}; EncryptedInteger c = new EncryptedInteger(BigInteger.ONE, pub); BigInteger r = c.set(BigInteger.ONE); int msgIndex = 0; for (int i=0; i<10; i++) { ZKSetMembersh...
public void testzksmsinglemembersetfalse() throws zksetmembershipexception, bigintegerclassnotvalid { biginteger[] theset = {new biginteger("0")}; encryptedinteger c = new encryptedinteger(biginteger.one, pub); biginteger r = c.set(biginteger.one); int msgindex = 0; for (int i=0; i<10; i++) { zksetmembershipprover prov...
SoftwareEngineeringToolDemos/type-inference
[ 0, 0, 1, 0 ]
34,190
public void testZKSMAddTrue() throws ZKSetMembershipException, PublicKeysNotEqualException, BigIntegerClassNotValid { BigInteger[] theSet = {new BigInteger("0"), new BigInteger("1"), new BigInteger("2"), new BigInteger("3"), new BigInteger("4"), new BigInteger("6")}; EncryptedInteger c1 = new EncryptedInte...
public void testZKSMAddTrue() throws ZKSetMembershipException, PublicKeysNotEqualException, BigIntegerClassNotValid { BigInteger[] theSet = {new BigInteger("0"), new BigInteger("1"), new BigInteger("2"), new BigInteger("3"), new BigInteger("4"), new BigInteger("6")}; EncryptedInteger c1 = new EncryptedInte...
public void testzksmaddtrue() throws zksetmembershipexception, publickeysnotequalexception, bigintegerclassnotvalid { biginteger[] theset = {new biginteger("0"), new biginteger("1"), new biginteger("2"), new biginteger("3"), new biginteger("4"), new biginteger("6")}; encryptedinteger c1 = new encryptedinteger(new bigin...
SoftwareEngineeringToolDemos/type-inference
[ 0, 0, 1, 0 ]
34,191
public void testZKSMManyOperations() throws ZKSetMembershipException, PublicKeysNotEqualException, BigIntegerClassNotValid { BigInteger[] theSet = {new BigInteger("0"), new BigInteger("1"), new BigInteger("2"), new BigInteger("3"), new BigInteger("4"), new BigInteger("6")}; EncryptedInteger c1 = new Encryp...
public void testZKSMManyOperations() throws ZKSetMembershipException, PublicKeysNotEqualException, BigIntegerClassNotValid { BigInteger[] theSet = {new BigInteger("0"), new BigInteger("1"), new BigInteger("2"), new BigInteger("3"), new BigInteger("4"), new BigInteger("6")}; EncryptedInteger c1 = new Encryp...
public void testzksmmanyoperations() throws zksetmembershipexception, publickeysnotequalexception, bigintegerclassnotvalid { biginteger[] theset = {new biginteger("0"), new biginteger("1"), new biginteger("2"), new biginteger("3"), new biginteger("4"), new biginteger("6")}; encryptedinteger c1 = new encryptedinteger(ne...
SoftwareEngineeringToolDemos/type-inference
[ 0, 0, 1, 0 ]
34,311
private void assertTestSummary() { int fails = testResult.fails().size(); int errors = testResult.errors().size(); int succeeds = testResult.succeeds().size(); int testCount = fails + errors + succeeds; if (testMode.isJ2cl()) { // Like Junit4, J2CL always counts errors as failures fails ...
private void assertTestSummary() { int fails = testResult.fails().size(); int errors = testResult.errors().size(); int succeeds = testResult.succeeds().size(); int testCount = fails + errors + succeeds; if (testMode.isJ2cl()) { fails += errors; errors = 0; testCount = 1...
private void asserttestsummary() { int fails = testresult.fails().size(); int errors = testresult.errors().size(); int succeeds = testresult.succeeds().size(); int testcount = fails + errors + succeeds; if (testmode.isj2cl()) { fails += errors; errors = 0; testcount = 1; assertthat(consolelogs.stream().filter(x -> x.co...
VishrutMehta/j2cl
[ 0, 0, 1, 0 ]
18,084
public boolean connect(long timeoutMs) { if (LOG.isDebugEnabled()) LOG.debug("Connecting to JMX URL: {} ({})", url, ((timeoutMs == -1) ? "indefinitely" : timeoutMs+"ms timeout")); long startMs = System.currentTimeMillis(); long endMs = (timeoutMs == -1) ? Long.MAX_VALUE : (startMs + timeoutMs); ...
public boolean connect(long timeoutMs) { if (LOG.isDebugEnabled()) LOG.debug("Connecting to JMX URL: {} ({})", url, ((timeoutMs == -1) ? "indefinitely" : timeoutMs+"ms timeout")); long startMs = System.currentTimeMillis(); long endMs = (timeoutMs == -1) ? Long.MAX_VALUE : (startMs + timeoutMs); ...
public boolean connect(long timeoutms) { if (log.isdebugenabled()) log.debug("connecting to jmx url: {} ({})", url, ((timeoutms == -1) ? "indefinitely" : timeoutms+"ms timeout")); long startms = system.currenttimemillis(); long endms = (timeoutms == -1) ? long.max_value : (startms + timeoutms); long currenttime = start...
YYTVicky/brooklyn-server
[ 1, 0, 0, 0 ]
34,588
public String toString(int indentFactor) { try { StringWriter w = new StringWriter(); synchronized (w.getBuffer()) { return this.write(w, indentFactor, 0).toString(); } } catch (Exception e) { //there is no conceivable exception tha...
public String toString(int indentFactor) { try { StringWriter w = new StringWriter(); synchronized (w.getBuffer()) { return this.write(w, indentFactor, 0).toString(); } } catch (Exception e) { throw new Runti...
public string tostring(int indentfactor) { try { stringwriter w = new stringwriter(); synchronized (w.getbuffer()) { return this.write(w, indentfactor, 0).tostring(); } } catch (exception e) { throw new runtimeexception("can not serialize jsonobject????", e); } }
agilepro/purple
[ 0, 0, 0, 0 ]
18,326
private void validate() throws IllegalStateException { Set<DateComponentOrdering> orderings = Sets.newHashSet(); if(preferred != null) { orderings.add(preferred.getOrdering()); } for(DateTimeParser parser : otherParsers) { if(!orderings.add(parser.getOrdering())) { thro...
private void validate() throws IllegalStateException { Set<DateComponentOrdering> orderings = Sets.newHashSet(); if(preferred != null) { orderings.add(preferred.getOrdering()); } for(DateTimeParser parser : otherParsers) { if(!orderings.add(parser.getOrdering())) { thro...
private void validate() throws illegalstateexception { set<datecomponentordering> orderings = sets.newhashset(); if(preferred != null) { orderings.add(preferred.getordering()); } for(datetimeparser parser : otherparsers) { if(!orderings.add(parser.getordering())) { throw new illegalstateexception("datecomponentordering...
adam-collins/parsers
[ 1, 0, 0, 0 ]
18,370
public static String getEnumName(String fieldName ) { //Later TODO //return super.getEnumName(fieldName); return null; }
public static String getEnumName(String fieldName ) { return null; }
public static string getenumname(string fieldname ) { return null; }
aloklal99/apache-ranger
[ 0, 1, 0, 0 ]
18,422
public static StatsValues createStatsValues(StatsField statsField) { final SchemaField sf = statsField.getSchemaField(); if (null == sf) { // function stats return new NumericStatsValues(statsField); } final FieldType fieldType = sf.getType(); // TODO: allow FieldType to provide impl. if...
public static StatsValues createStatsValues(StatsField statsField) { final SchemaField sf = statsField.getSchemaField(); if (null == sf) { return new NumericStatsValues(statsField); } final FieldType fieldType = sf.getType(); if (TrieDateField.class.isInstance(fieldType) || DatePointFiel...
public static statsvalues createstatsvalues(statsfield statsfield) { final schemafield sf = statsfield.getschemafield(); if (null == sf) { return new numericstatsvalues(statsfield); } final fieldtype fieldtype = sf.gettype(); if (triedatefield.class.isinstance(fieldtype) || datepointfield.class.isinstance(fieldtype)) {...
ackepenek/solr
[ 0, 1, 0, 0 ]
18,424
public void setSelected(@Nullable PackListWidget.PackEntry entry) { this.setSelected(entry, true); }
public void setSelected(@Nullable PackListWidget.PackEntry entry) { this.setSelected(entry, true); }
public void setselected(@nullable packlistwidget.packentry entry) { this.setselected(entry, true); }
VanillaImprovements/VVDownloader
[ 0, 1, 0, 0 ]
2,045
synchronized ImmutableList<JobEvent> getActiveEvents() { ImmutableList.Builder<JobEvent> builder = ImmutableList.builder(); for (String id : activeJobIds) { JobEvent p = eventsByJobId.get(id); assert p != null; builder.add(p); } return builder.build(); }
synchronized ImmutableList<JobEvent> getActiveEvents() { ImmutableList.Builder<JobEvent> builder = ImmutableList.builder(); for (String id : activeJobIds) { JobEvent p = eventsByJobId.get(id); assert p != null; builder.add(p); } return builder.build(); }
synchronized immutablelist<jobevent> getactiveevents() { immutablelist.builder<jobevent> builder = immutablelist.builder(); for (string id : activejobids) { jobevent p = eventsbyjobid.get(id); assert p != null; builder.add(p); } return builder.build(); }
TeamSPoon/CYC_JRTL_with_CommonLisp_OLD
[ 1, 0, 0, 0 ]
18,433
private VdsmVm appendStatistics(VdsmVm vm, V1VirtualMachineInstance vmi) { VmStatistics statistics = new VmStatistics(); statistics.setId(vm.getId()); DateTime creationTimestampDate = vmi.getMetadata().getCreationTimestamp(); if (creationTimestampDate != null) { DateTime now ...
private VdsmVm appendStatistics(VdsmVm vm, V1VirtualMachineInstance vmi) { VmStatistics statistics = new VmStatistics(); statistics.setId(vm.getId()); DateTime creationTimestampDate = vmi.getMetadata().getCreationTimestamp(); if (creationTimestampDate != null) { DateTime now ...
private vdsmvm appendstatistics(vdsmvm vm, v1virtualmachineinstance vmi) { vmstatistics statistics = new vmstatistics(); statistics.setid(vm.getid()); datetime creationtimestampdate = vmi.getmetadata().getcreationtimestamp(); if (creationtimestampdate != null) { datetime now = datetime.now(); seconds seconds = seconds....
StevenCode/ovirt-engine
[ 0, 0, 1, 0 ]
18,456
@Test @Ignore("dbpedia is not reliable") public void testDBPedia() throws Exception { testResource(DBPEDIA, "dbpedia-berlin.sparql" ); }
@Test @Ignore("dbpedia is not reliable") public void testDBPedia() throws Exception { testResource(DBPEDIA, "dbpedia-berlin.sparql" ); }
@test @ignore("dbpedia is not reliable") public void testdbpedia() throws exception { testresource(dbpedia, "dbpedia-berlin.sparql" ); }
YYTVicky/marmotta
[ 1, 0, 0, 0 ]
34,925
@Test public void canCompleteItself() throws IOException { String jid = queue.put("Foo", null, null); queue.pop().complete(); // TODO: this test passes even when this line is removed Assert.assertEquals("complete", client.getJob(jid).getState()); }
@Test public void canCompleteItself() throws IOException { String jid = queue.put("Foo", null, null); queue.pop().complete(); Assert.assertEquals("complete", client.getJob(jid).getState()); }
@test public void cancompleteitself() throws ioexception { string jid = queue.put("foo", null, null); queue.pop().complete(); assert.assertequals("complete", client.getjob(jid).getstate()); }
Zimbra/qless-java
[ 0, 0, 0, 1 ]
18,643
@Override public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) { if (affectedControllerId.equals(source.getControllerId())) { Card card = game.getCard(objectId); MageObject sourceObject = source.getSourceObject(game); if (card != nul...
@Override public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) { if (affectedControllerId.equals(source.getControllerId())) { Card card = game.getCard(objectId); MageObject sourceObject = source.getSourceObject(game); if (card != nul...
@override public boolean applies(uuid objectid, ability source, uuid affectedcontrollerid, game game) { if (affectedcontrollerid.equals(source.getcontrollerid())) { card card = game.getcard(objectid); mageobject sourceobject = source.getsourceobject(game); if (card != null && !card.island() && sourceobject != null) { u...
amc8391/mage
[ 0, 0, 1, 0 ]
2,359
public static String getFilePathDiskCache(final String key) { if (sDiskLruCache == null) { return null; } // This violates encapsulation but there is no convenience method to get a filename from // DiskLruCache. Filename was derived from private class method Entry#getCleanFil...
public static String getFilePathDiskCache(final String key) { if (sDiskLruCache == null) { return null; } return sDiskLruCache.getDirectory() + File.separator + createValidDiskCacheKey(key) + "." ...
public static string getfilepathdiskcache(final string key) { if (sdisklrucache == null) { return null; } return sdisklrucache.getdirectory() + file.separator + createvaliddiskcachekey(key) + "." + disk_cache_index; }
SinnerSchraderMobileMirrors/mopub-android-sdk
[ 1, 0, 0, 0 ]
18,861
private void setUpViews() { glucometerAttribution = findViewById(R.id.glucometerAttribution); glucometerImg = findViewById(R.id.glucometerImg); insertStripText = findViewById(R.id.insertStripText); upArrow = findViewById(R.id.upArrow); droplet = findViewById(R.id.dropletImg); ...
private void setUpViews() { glucometerAttribution = findViewById(R.id.glucometerAttribution); glucometerImg = findViewById(R.id.glucometerImg); insertStripText = findViewById(R.id.insertStripText); upArrow = findViewById(R.id.upArrow); droplet = findViewById(R.id.dropletImg); ...
private void setupviews() { glucometerattribution = findviewbyid(r.id.glucometerattribution); glucometerimg = findviewbyid(r.id.glucometerimg); insertstriptext = findviewbyid(r.id.insertstriptext); uparrow = findviewbyid(r.id.uparrow); droplet = findviewbyid(r.id.dropletimg); attributiontext = findviewbyid(r.id.attribu...
W6WM9M/VitalityMeter
[ 0, 1, 0, 0 ]
10,671
public void render(SpriteBatch batch) { viewport.apply(); batch.setProjectionMatrix(viewport.getCamera().combined); batch.begin(); // TODO: Draw a game over message // Feel free to get more creative with this screen. Perhaps you could cover the screen in enemy robots? flo...
public void render(SpriteBatch batch) { viewport.apply(); batch.setProjectionMatrix(viewport.getCamera().combined); batch.begin(); float timeElapsed = Utils.secondsSince(startTime); int enemiesToShow = (int) (Constants.ENEMY_COUNT * (timeElapsed / Constants.LEVEL_...
public void render(spritebatch batch) { viewport.apply(); batch.setprojectionmatrix(viewport.getcamera().combined); batch.begin(); float timeelapsed = utils.secondssince(starttime); int enemiestoshow = (int) (constants.enemy_count * (timeelapsed / constants.level_end_duration)); for (int i = 0; i < enemiestoshow; i++){...
Sceptres/ud406
[ 0, 1, 0, 0 ]
2,527
public static <T extends Enum> String getEnumI18n(Locale locale, String base, T enumToGet) { return Language.i18n(locale, base + "." + enumToGet.name().toLowerCase()); }
public static <T extends Enum> String getEnumI18n(Locale locale, String base, T enumToGet) { return Language.i18n(locale, base + "." + enumToGet.name().toLowerCase()); }
public static <t extends enum> string getenumi18n(locale locale, string base, t enumtoget) { return language.i18n(locale, base + "." + enumtoget.name().tolowercase()); }
TortleWortle/CascadeBot
[ 0, 0, 0, 0 ]
10,747
public JsonObject setMaxComments(int comments){ JsonObject result = new JsonObject(); if( dbServices.setMaxCommentsPerVideo(comments)) { result.addProperty("msg", "Max comments to collect for each video is now: " + comments); } else result.addProperty("error","Fai...
public JsonObject setMaxComments(int comments){ JsonObject result = new JsonObject(); if( dbServices.setMaxCommentsPerVideo(comments)) { result.addProperty("msg", "Max comments to collect for each video is now: " + comments); } else result.addProperty("error","Fai...
public jsonobject setmaxcomments(int comments){ jsonobject result = new jsonobject(); if( dbservices.setmaxcommentspervideo(comments)) { result.addproperty("msg", "max comments to collect for each video is now: " + comments); } else result.addproperty("error","failed to set max comments per video"); return result; }
UCY-LINC-LAB/YouTube-Twitter-Analysis
[ 0, 1, 0, 0 ]
2,557
static OzoneClient getOzoneClient(boolean secure) throws IOException { OzoneConfiguration conf = new OzoneConfiguration(); // TODO: If you don't have OM HA configured, change the following as appropriate. conf.set("ozone.om.address", "9.29.173.57:9862"); if (disableChecksum) conf.set("ozone.client...
static OzoneClient getOzoneClient(boolean secure) throws IOException { OzoneConfiguration conf = new OzoneConfiguration(); conf.set("ozone.om.address", "9.29.173.57:9862"); if (disableChecksum) conf.set("ozone.client.checksum.type", "NONE"); return OzoneClientFactory.getRpcClient(conf); }
static ozoneclient getozoneclient(boolean secure) throws ioexception { ozoneconfiguration conf = new ozoneconfiguration(); conf.set("ozone.om.address", "9.29.173.57:9862"); if (disablechecksum) conf.set("ozone.client.checksum.type", "none"); return ozoneclientfactory.getrpcclient(conf); }
SincereXIA/ozonerpc2
[ 1, 0, 0, 0 ]
10,797
@Unused @Doc("Init 'record' node") @Reviewed(when = "02/12/2020") @Original(version="2.38.0", path="lib/common/shapes.c", name="record_init", key="h2lcuthzwljbcjwdeidw1jiv", definition="static void record_init(node_t * n)") public static void record_init(ST_Agnode_s n) { ENTERING("h2lcuthzwljbcjwdeidw1jiv","record_init...
@Unused @Doc("Init 'record' node") @Reviewed(when = "02/12/2020") @Original(version="2.38.0", path="lib/common/shapes.c", name="record_init", key="h2lcuthzwljbcjwdeidw1jiv", definition="static void record_init(node_t * n)") public static void record_init(ST_Agnode_s n) { ENTERING("h2lcuthzwljbcjwdeidw1jiv","record_init...
@unused @doc("init 'record' node") @reviewed(when = "02/12/2020") @original(version="2.38.0", path="lib/common/shapes.c", name="record_init", key="h2lcuthzwljbcjwdeidw1jiv", definition="static void record_init(node_t * n)") public static void record_init(st_agnode_s n) { entering("h2lcuthzwljbcjwdeidw1jiv","record_init...
SandraBSofiaH/Final-UMldoclet
[ 1, 1, 1, 0 ]
19,017
private Table buildHeader() { Skin skin = getSkin(); SquareButton ffBack = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-ff")); ffBack.flipHorizontal(); playBack = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-play"), true); playBack.flipHorizontal(); ...
private Table buildHeader() { Skin skin = getSkin(); SquareButton ffBack = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-ff")); ffBack.flipHorizontal(); playBack = new SquareButton(skin, skin.getDrawable("timeline-btn-icon-play"), true); playBack.flipHorizontal(); ...
private table buildheader() { skin skin = getskin(); squarebutton ffback = new squarebutton(skin, skin.getdrawable("timeline-btn-icon-ff")); ffback.fliphorizontal(); playback = new squarebutton(skin, skin.getdrawable("timeline-btn-icon-play"), true); playback.fliphorizontal(); play = new squarebutton(skin, skin.getdraw...
TheSenPie/talos
[ 0, 1, 0, 0 ]
10,974
public Map<String, Double> classifyImageVGG16(IplImage iplImage) throws IOException { NativeImageLoader loader = new NativeImageLoader(224, 224, 3); BufferedImage buffImg = OpenCV.toBufferedImage(iplImage); INDArray image = loader.asMatrix(buffImg); // TODO: we should consider the model as not only the ...
public Map<String, Double> classifyImageVGG16(IplImage iplImage) throws IOException { NativeImageLoader loader = new NativeImageLoader(224, 224, 3); BufferedImage buffImg = OpenCV.toBufferedImage(iplImage); INDArray image = loader.asMatrix(buffImg); DataNormalization scaler = new VGG16ImageP...
public map<string, double> classifyimagevgg16(iplimage iplimage) throws ioexception { nativeimageloader loader = new nativeimageloader(224, 224, 3); bufferedimage buffimg = opencv.tobufferedimage(iplimage); indarray image = loader.asmatrix(buffimg); datanormalization scaler = new vgg16imagepreprocessor(); scaler.transf...
ShaunHolt/myrobotlab
[ 1, 0, 0, 0 ]
10,975
public Map<String, Double> classifyImageFileVGG16(String filename) throws IOException { File file = new File(filename); NativeImageLoader loader = new NativeImageLoader(224, 224, 3); INDArray image = loader.asMatrix(file); // TODO: we should consider the model as not only the model, but also the // ...
public Map<String, Double> classifyImageFileVGG16(String filename) throws IOException { File file = new File(filename); NativeImageLoader loader = new NativeImageLoader(224, 224, 3); INDArray image = loader.asMatrix(file); DataNormalization scaler = new VGG16ImagePreProcessor(); scaler.t...
public map<string, double> classifyimagefilevgg16(string filename) throws ioexception { file file = new file(filename); nativeimageloader loader = new nativeimageloader(224, 224, 3); indarray image = loader.asmatrix(file); datanormalization scaler = new vgg16imagepreprocessor(); scaler.transform(image); indarray[] outp...
ShaunHolt/myrobotlab
[ 1, 0, 0, 0 ]
10,994
private long getReservedCacheSize(String uuid) { // TODO: Revisit the cache size after running more storage tests. // TODO: Figure out how to ensure ExtServices has the permissions to call // StorageStatsManager, because this is ignoring the cache... StorageManager storageManager =...
private long getReservedCacheSize(String uuid) { StorageManager storageManager = getSystemService(StorageManager.class); long freeBytes = 0; if (uuid == StorageManager.UUID_PRIVATE_INTERNAL) { freeBytes = Environment.getDataDirectory().getUsableSpace(); ...
private long getreservedcachesize(string uuid) { storagemanager storagemanager = getsystemservice(storagemanager.class); long freebytes = 0; if (uuid == storagemanager.uuid_private_internal) { freebytes = environment.getdatadirectory().getusablespace(); } else { final volumeinfo vol = storagemanager.findvolumebyuuid(uu...
Y-D-Lu/rr_frameworks_base
[ 1, 0, 0, 0 ]
11,115
public static Intent createEmailAttendeesIntent(Resources resources, String eventTitle, String body, List<String> toEmails, List<String> ccEmails, String ownerAccount) { List<String> toList = toEmails; List<String> ccList = ccEmails; if (toEmai...
public static Intent createEmailAttendeesIntent(Resources resources, String eventTitle, String body, List<String> toEmails, List<String> ccEmails, String ownerAccount) { List<String> toList = toEmails; List<String> ccList = ccEmails; if (toEmai...
public static intent createemailattendeesintent(resources resources, string eventtitle, string body, list<string> toemails, list<string> ccemails, string owneraccount) { list<string> tolist = toemails; list<string> cclist = ccemails; if (toemails.size() <= 0) { if (ccemails.size() <= 0) { throw new illegalargumentexcep...
Shusshu/Android-RecurrencePicker
[ 0, 1, 1, 0 ]
11,181
@NotNull public abstract Biome getBiome(@NotNull WorldInfo worldInfo, int x, int y, int z);
@NotNull public abstract Biome getBiome(@NotNull WorldInfo worldInfo, int x, int y, int z);
@notnull public abstract biome getbiome(@notnull worldinfo worldinfo, int x, int y, int z);
abcd1234-byte/spigot2
[ 0, 1, 0, 0 ]
3,159
private static void addField(SolrInputDocument doc, String fieldName, Object value, Class type, String dynamicFieldSuffix) { if (type.isArray()) return; // TODO: Array types not supported yet ... if (dynamicFieldSuffix == null) { dynamicFieldSuffix = getDefaultDynamicFieldMapping(type); // tre...
private static void addField(SolrInputDocument doc, String fieldName, Object value, Class type, String dynamicFieldSuffix) { if (type.isArray()) return; if (dynamicFieldSuffix == null) { dynamicFieldSuffix = getDefaultDynamicFieldMapping(type); if ("_s".equals(dynamicFieldSuffix)) { ...
private static void addfield(solrinputdocument doc, string fieldname, object value, class type, string dynamicfieldsuffix) { if (type.isarray()) return; if (dynamicfieldsuffix == null) { dynamicfieldsuffix = getdefaultdynamicfieldmapping(type); if ("_s".equals(dynamicfieldsuffix)) { string str = (string)value; if (str....
Stratio/spark-solr
[ 1, 0, 0, 0 ]
11,407
protected Path getRealPath2(TVFSAbstractPath path) { List<String> list = new ArrayList<>(); for (String s : path.path) { list.add(s); } Path p; if (list.isEmpty()) { //p = virtualFS.getTvFileSystem().getPath(virtualFS.getName().getName()); p = fileSystem.getRootPath(); } else { String first = ""...
protected Path getRealPath2(TVFSAbstractPath path) { List<String> list = new ArrayList<>(); for (String s : path.path) { list.add(s); } Path p; if (list.isEmpty()) { p = fileSystem.getRootPath(); } else { String first = ""; String others[] = null; p = fileSystem.getRootPath().resolve(li...
protected path getrealpath2(tvfsabstractpath path) { list<string> list = new arraylist<>(); for (string s : path.path) { list.add(s); } path p; if (list.isempty()) { p = filesystem.getrootpath(); } else { string first = ""; string others[] = null; p = filesystem.getrootpath().resolve(list.stream().collect(collectors.jo...
abarhub/tinyvfs
[ 1, 0, 0, 0 ]
11,482
@Override public void populateGui() { // Filler this.getFiller(); // Items for (Map.Entry<Material, Integer> entry : collector.getContents().entrySet()) { // Args Material material = entry.getKey(); int startAmount = entry.getValue(); ...
@Override public void populateGui() { this.getFiller(); for (Map.Entry<Material, Integer> entry : collector.getContents().entrySet()) { Material material = entry.getKey(); int startAmount = entry.getValue(); double startValu...
@override public void populategui() { this.getfiller(); for (map.entry<material, integer> entry : collector.getcontents().entryset()) { material material = entry.getkey(); int startamount = entry.getvalue(); double startvalue = plugin.getcollectormanager().value(collector, material); list<string> lore = color.color(plu...
Workinq/AsyncCollectors
[ 0, 1, 0, 0 ]
3,400
protected List<String> updateProvisioning(Map<String, File> artifacts, Provisioner provisionService) throws Exception { ResourceInstaller resourceInstaller = provisionService.getResourceInstaller(); Map<ResourceIdentity, Resource> installedResources = getInstalledResources(provisionService); Map...
protected List<String> updateProvisioning(Map<String, File> artifacts, Provisioner provisionService) throws Exception { ResourceInstaller resourceInstaller = provisionService.getResourceInstaller(); Map<ResourceIdentity, Resource> installedResources = getInstalledResources(provisionService); Map...
protected list<string> updateprovisioning(map<string, file> artifacts, provisioner provisionservice) throws exception { resourceinstaller resourceinstaller = provisionservice.getresourceinstaller(); map<resourceidentity, resource> installedresources = getinstalledresources(provisionservice); map<requirement, resource> ...
WillemJiang/fabric8
[ 1, 0, 0, 0 ]
3,401
private static MavenCoordinates parse(String coordinates) { MavenCoordinates result; String[] parts = coordinates.split(":"); if (parts.length == 3) { result = MavenCoordinates.create(parts[0], parts[1], parts[2], null, null); } else if (parts.length == 4) { resu...
private static MavenCoordinates parse(String coordinates) { MavenCoordinates result; String[] parts = coordinates.split(":"); if (parts.length == 3) { result = MavenCoordinates.create(parts[0], parts[1], parts[2], null, null); } else if (parts.length == 4) { resu...
private static mavencoordinates parse(string coordinates) { mavencoordinates result; string[] parts = coordinates.split(":"); if (parts.length == 3) { result = mavencoordinates.create(parts[0], parts[1], parts[2], null, null); } else if (parts.length == 4) { result = mavencoordinates.create(parts[0], parts[1], parts[2]...
WillemJiang/fabric8
[ 0, 0, 1, 0 ]
19,814
@Override public void validateDataOnEntry() throws DataModelException { // TODO auto-generated method stub, to be implemented by parser }
@Override public void validateDataOnEntry() throws DataModelException { }
@override public void validatedataonentry() throws datamodelexception { }
airlenet/yang-maven-plugin
[ 0, 1, 0, 0 ]
19,815
@Override public void validateDataOnExit() throws DataModelException { // TODO auto-generated method stub, to be implemented by parser }
@Override public void validateDataOnExit() throws DataModelException { }
@override public void validatedataonexit() throws datamodelexception { }
airlenet/yang-maven-plugin
[ 0, 1, 0, 0 ]
19,923
@OnClick(R.id.btn_meter_set_minus) void decreaseLevel() { if (mLevelToSet == Channels.CHN_MIN_VALUE_OF_EVERYTHING) { return; } mLevelToSet--; mTextViewLevel.setText(String.format(Locale.US, "%1$d", mLevelToSet)); //TODO send setting level frame and change shared p...
@OnClick(R.id.btn_meter_set_minus) void decreaseLevel() { if (mLevelToSet == Channels.CHN_MIN_VALUE_OF_EVERYTHING) { return; } mLevelToSet--; mTextViewLevel.setText(String.format(Locale.US, "%1$d", mLevelToSet)); updateLevelForPrefsAndViewAndSendFrame(mLev...
@onclick(r.id.btn_meter_set_minus) void decreaselevel() { if (mleveltoset == channels.chn_min_value_of_everything) { return; } mleveltoset--; mtextviewlevel.settext(string.format(locale.us, "%1$d", mleveltoset)); updatelevelforprefsandviewandsendframe(mleveltoset); islevelzero(); }
SirdarYangK/SirdarYKCode
[ 0, 1, 0, 0 ]
19,924
@OnClick(R.id.btn_meter_set_plus) void increaseLevel() { if (mLevelToSet == Channels.CHN_MAX_LEVEL) { return; } mLevelToSet++; mTextViewLevel.setText(String.format(Locale.US, "%1$d", mLevelToSet)); //TODO send setting level frame and change shared prefs and displa...
@OnClick(R.id.btn_meter_set_plus) void increaseLevel() { if (mLevelToSet == Channels.CHN_MAX_LEVEL) { return; } mLevelToSet++; mTextViewLevel.setText(String.format(Locale.US, "%1$d", mLevelToSet)); updateLevelForPrefsAndViewAndSendFrame(mLevelToSet); ...
@onclick(r.id.btn_meter_set_plus) void increaselevel() { if (mleveltoset == channels.chn_max_level) { return; } mleveltoset++; mtextviewlevel.settext(string.format(locale.us, "%1$d", mleveltoset)); updatelevelforprefsandviewandsendframe(mleveltoset); islevelzero(); }
SirdarYangK/SirdarYKCode
[ 0, 1, 0, 0 ]