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
11,878
@Override public void runWithEvent(IAction action, Event event) { updateEnablement(action); if (action.isEnabled()) { ISelection currentSelection = getSelection(); Set<EPlanElement> selected = PlanEditorUtil.emfFromSelection(currentSelection); final MoveToOrbitOperation op = new MoveToOrbitOperation(selec...
@Override public void runWithEvent(IAction action, Event event) { updateEnablement(action); if (action.isEnabled()) { ISelection currentSelection = getSelection(); Set<EPlanElement> selected = PlanEditorUtil.emfFromSelection(currentSelection); final MoveToOrbitOperation op = new MoveToOrbitOperation(selec...
@override public void runwithevent(iaction action, event event) { updateenablement(action); if (action.isenabled()) { iselection currentselection = getselection(); set<eplanelement> selected = planeditorutil.emffromselection(currentselection); final movetoorbitoperation op = new movetoorbitoperation(selected); string e...
mikiec84/OpenSPIFe
[ 1, 0, 0, 0 ]
20,922
public static boolean addNode(Properties ctx, String treeType, int Record_ID, String trxName) { // TODO: Check & refactor this // Get Tree int AD_Tree_ID = 0; MClient client = MClient.get(ctx); I_AD_ClientInfo ci = client.getInfo(); if (TREETYPE_Activity.equals(treeType)) AD_Tree_ID = ci.getAD_Tree_Acti...
public static boolean addNode(Properties ctx, String treeType, int Record_ID, String trxName) { int AD_Tree_ID = 0; MClient client = MClient.get(ctx); I_AD_ClientInfo ci = client.getInfo(); if (TREETYPE_Activity.equals(treeType)) AD_Tree_ID = ci.getAD_Tree_Activity_ID(); else if (TREETYPE_BoM.equals(t...
public static boolean addnode(properties ctx, string treetype, int record_id, string trxname) { int ad_tree_id = 0; mclient client = mclient.get(ctx); i_ad_clientinfo ci = client.getinfo(); if (treetype_activity.equals(treetype)) ad_tree_id = ci.getad_tree_activity_id(); else if (treetype_bom.equals(treetype)) throw ne...
metas-fresh/fresh
[ 1, 0, 0, 0 ]
12,731
public List<PigOutLogicalChunks> createLogicalChunks() throws FrontendException { Set<Operator> seenByDFS = new HashSet<Operator>(); Map<LogicalPlan, PigOutLogicalChunks> mapping = new HashMap<>(); while ( !visitQueue.isEmpty() ) { Operator s = visitQueue.poll(); ...
public List<PigOutLogicalChunks> createLogicalChunks() throws FrontendException { Set<Operator> seenByDFS = new HashSet<Operator>(); Map<LogicalPlan, PigOutLogicalChunks> mapping = new HashMap<>(); while ( !visitQueue.isEmpty() ) { Operator s = visitQueue.poll(); ...
public list<pigoutlogicalchunks> createlogicalchunks() throws frontendexception { set<operator> seenbydfs = new hashset<operator>(); map<logicalplan, pigoutlogicalchunks> mapping = new hashmap<>(); while ( !visitqueue.isempty() ) { operator s = visitqueue.poll(); logicalrelationaloperator lro = (logicalrelationaloperat...
kyunghoj/pigout
[ 1, 0, 0, 0 ]
21,065
@Bean public ListFactoryBean userDnList() { ListFactoryBean bean = new ListFactoryBean(); bean.setTargetListClass(ArrayList.class); // TODO Add values to this list to allow more distinguished name patterns. // If preferable, ldap.dn can be removed when there is more than one val...
@Bean public ListFactoryBean userDnList() { ListFactoryBean bean = new ListFactoryBean(); bean.setTargetListClass(ArrayList.class); List<String> sourceList = new ArrayList<String>(Arrays.asList("${ldap.dn}", "cn={0},OU=WCT users,DC=webcurator,DC=org") ...
@bean public listfactorybean userdnlist() { listfactorybean bean = new listfactorybean(); bean.settargetlistclass(arraylist.class); list<string> sourcelist = new arraylist<string>(arrays.aslist("${ldap.dn}", "cn={0},ou=wct users,dc=webcurator,dc=org") ); bean.setsourcelist(sourcelist); return bean; }
mbreemhaar/webcurator
[ 1, 1, 0, 0 ]
21,104
private static String safeUri(String uri) { // todo: make this way more safe return uri.replace(" ", "%20"); }
private static String safeUri(String uri) { return uri.replace(" ", "%20"); }
private static string safeuri(string uri) { return uri.replace(" ", "%20"); }
mikiec84/blueprints
[ 1, 0, 0, 0 ]
13,004
public static void main(String[] args) { printoutModelFile("/Users/aidancbrady/Documents/Mekanism/src/main/resources/assets/mekanism/models/block/digital_miner.json"); }
public static void main(String[] args) { printoutModelFile("/Users/aidancbrady/Documents/Mekanism/src/main/resources/assets/mekanism/models/block/digital_miner.json"); }
public static void main(string[] args) { printoutmodelfile("/users/aidancbrady/documents/mekanism/src/main/resources/assets/mekanism/models/block/digital_miner.json"); }
marcus8448/Mekanism
[ 1, 0, 0, 0 ]
13,116
private String compoundProduce( JavaFileManager.Location location, Set<ITypeManifold> sps, String fqn, DiagnosticListener<JavaFileObject> errorHandler ) { ITypeManifold found = null; String result = ""; for( ITypeManifold sp: sps ) { if( sp.getContributorKind() == Primary || sp.getCont...
private String compoundProduce( JavaFileManager.Location location, Set<ITypeManifold> sps, String fqn, DiagnosticListener<JavaFileObject> errorHandler ) { ITypeManifold found = null; String result = ""; for( ITypeManifold sp: sps ) { if( sp.getContributorKind() == Primary || sp.getCont...
private string compoundproduce( javafilemanager.location location, set<itypemanifold> sps, string fqn, diagnosticlistener<javafileobject> errorhandler ) { itypemanifold found = null; string result = ""; for( itypemanifold sp: sps ) { if( sp.getcontributorkind() == primary || sp.getcontributorkind() == partial ) { if( f...
manifold-systems/manifold
[ 1, 0, 0, 0 ]
13,241
public void setCurPie(PieInfoWrapperr infoWrapper, float degree) { if (mDrawingPie != null) { if (degree >= mDrawingPie.toAngle / 2) { if (!mDrawingPie.hasCached) { // fix anim duration too short PieInfoWrapperr preWrapper = mDrawingPie.preWrap...
public void setCurPie(PieInfoWrapperr infoWrapper, float degree) { if (mDrawingPie != null) { if (degree >= mDrawingPie.toAngle / 2) { if (!mDrawingPie.hasCached) { PieInfoWrapperr preWrapper = mDrawingPie.preWrapper; if (pr...
public void setcurpie(pieinfowrapperr infowrapper, float degree) { if (mdrawingpie != null) { if (degree >= mdrawingpie.toangle / 2) { if (!mdrawingpie.hascached) { pieinfowrapperr prewrapper = mdrawingpie.prewrapper; if (prewrapper != null && !prewrapper.hascached) { prewrapper.hascached = true; mcacheddrawwrappers.ad...
linyingfa/AnimatedPieView-master
[ 1, 0, 0, 0 ]
21,553
public List<LineChart> LineChartGen(String filePath, String dataType, List<String> columns, List<String> columnNames) throws IllegalArgumentException { // TODO Auto-generated method stub //Read data from hdfs List<String> results = readAllData(filePath,true); //Only read limited line data(if the data length ov...
public List<LineChart> LineChartGen(String filePath, String dataType, List<String> columns, List<String> columnNames) throws IllegalArgumentException { List<String> results = readAllData(filePath,true); List<LineChart> lineCharts = new ArrayList<LineChart>(); for(String selectedCol : columnNames) { L...
public list<linechart> linechartgen(string filepath, string datatype, list<string> columns, list<string> columnnames) throws illegalargumentexception { list<string> results = readalldata(filepath,true); list<linechart> linecharts = new arraylist<linechart>(); for(string selectedcol : columnnames) { linechart linechart ...
milkboylyf/EasyML
[ 0, 1, 0, 0 ]
13,513
@Override public Value evaluate(BlockContext ctx) { ctx.beforeExpression(this); FunctionBlock funcBlock = null; BlockContext callContext = ctx; if (object != null) { // method call on an object if (VariableReference.isSelfReference(object.getName())) { ...
@Override public Value evaluate(BlockContext ctx) { ctx.beforeExpression(this); FunctionBlock funcBlock = null; BlockContext callContext = ctx; if (object != null) { if (VariableReference.isSelfReference(object.getName())) { fun...
@override public value evaluate(blockcontext ctx) { ctx.beforeexpression(this); functionblock funcblock = null; blockcontext callcontext = ctx; if (object != null) { if (variablereference.isselfreference(object.getname())) { funcblock = callcontext.retrievelocalfunction(functionname); throw new rockstarruntimeexception...
mikesep/rocky
[ 1, 1, 0, 0 ]
21,954
public static InputSource getInputSource(XSLTC xsltc, Source source) throws TransformerConfigurationException { InputSource input = null; final String systemId = source.getSystemId(); try { // Try to get InputSource from SAXSource input if (source instanceof SAXSource) { final SAXSource ...
public static InputSource getInputSource(XSLTC xsltc, Source source) throws TransformerConfigurationException { InputSource input = null; final String systemId = source.getSystemId(); try { if (source instanceof SAXSource) { final SAXSource sax = (SAXSource) source; input = sax.g...
public static inputsource getinputsource(xsltc xsltc, source source) throws transformerconfigurationexception { inputsource input = null; final string systemid = source.getsystemid(); try { if (source instanceof saxsource) { final saxsource sax = (saxsource) source; input = sax.getinputsource(); try { xmlreader reader ...
lyca/lyca-xslt
[ 0, 0, 1, 0 ]
30,244
public void handleKey(KeyCode code) throws IOException, ClassNotFoundException { switch (code) { case UP: move(new Point(-1, 0),""); break; case RIGHT: move(new Point(0, 1),""); break; case DOWN: ...
public void handleKey(KeyCode code) throws IOException, ClassNotFoundException { switch (code) { case UP: move(new Point(-1, 0),""); break; case RIGHT: move(new Point(0, 1),""); break; case DOWN: ...
public void handlekey(keycode code) throws ioexception, classnotfoundexception { switch (code) { case up: move(new point(-1, 0),""); break; case right: move(new point(0, 1),""); break; case down: move(new point(1, 0),""); break; case left: move(new point(0, -1),""); break; default: } if (isdebugactive()) { system.out.p...
krisiney/SOKOBANFX-DMS-2020
[ 0, 1, 0, 0 ]
22,278
@Override public void onNext(T o) { if (debug) Log.i(TAG, "net onNext o:" + o); observableWrapper.setData(o); logThread(""); if (debug) Log.e(TAG, " check subscriber :" + subscriber + " isUnsubscribed:" + subscriber.isUnsubscribed()); if (subscriber !=...
@Override public void onNext(T o) { if (debug) Log.i(TAG, "net onNext o:" + o); observableWrapper.setData(o); logThread(""); if (debug) Log.e(TAG, " check subscriber :" + subscriber + " isUnsubscribed:" + subscriber.isUnsubscribed()); if (subscriber !=...
@override public void onnext(t o) { if (debug) log.i(tag, "net onnext o:" + o); observablewrapper.setdata(o); logthread(""); if (debug) log.e(tag, " check subscriber :" + subscriber + " isunsubscribed:" + subscriber.isunsubscribed()); if (subscriber != null && !subscriber.isunsubscribed()) { subscriber.onnext(o)
ming1991/mingop
[ 0, 0, 1, 0 ]
22,279
@Override public void onNext(T o) { if (debug) Log.i(TAG, "cache onNext o:" + o); observableWrapper.setData(o); logThread(""); if (netLatch.getCount() > 0) { if (debug) Log.e(TAG, " check subscriber :" + subscriber + " isUnsubscribed:" + subscriber...
@Override public void onNext(T o) { if (debug) Log.i(TAG, "cache onNext o:" + o); observableWrapper.setData(o); logThread(""); if (netLatch.getCount() > 0) { if (debug) Log.e(TAG, " check subscriber :" + subscriber + " isUnsubscribed:" + subscriber...
@override public void onnext(t o) { if (debug) log.i(tag, "cache onnext o:" + o); observablewrapper.setdata(o); logthread(""); if (netlatch.getcount() > 0) { if (debug) log.e(tag, " check subscriber :" + subscriber + " isunsubscribed:" + subscriber.isunsubscribed()); if (subscriber != null && !subscriber.isunsubscribed...
ming1991/mingop
[ 0, 0, 1, 0 ]
14,123
public abstract Iterable<Tuple2<K, V>> doCall(final T t) throws Exception;
public abstract Iterable<Tuple2<K, V>> doCall(final T t) throws Exception;
public abstract iterable<tuple2<k, v>> docall(final t t) throws exception;
lordjoe/SparkAccumulators
[ 0, 1, 0, 0 ]
22,556
private boolean updateAddressFilter(String filter) { String[] pieces = filter.split("/"); if(pieces.length != 2) { searchTextField.setBackground(Color.RED); return false; } InetAddress new_filter_address; InetAddress new_filter_mask; boolean new_filter_enabled = !(pieces[1].equals("0")); try { ...
private boolean updateAddressFilter(String filter) { String[] pieces = filter.split("/"); if(pieces.length != 2) { searchTextField.setBackground(Color.RED); return false; } InetAddress new_filter_address; InetAddress new_filter_mask; boolean new_filter_enabled = !(pieces[1].equals("0")); try { ...
private boolean updateaddressfilter(string filter) { string[] pieces = filter.split("/"); if(pieces.length != 2) { searchtextfield.setbackground(color.red); return false; } inetaddress new_filter_address; inetaddress new_filter_mask; boolean new_filter_enabled = !(pieces[1].equals("0")); try { new_filter_address = inet...
kylekyle/netgrok
[ 1, 0, 0, 0 ]
22,557
private void updateRanges() { // get the minimum degree rank min_degree_rank = (float)(degreeRangeSlider.getLowValue() - degreeRangeSlider.getMinimum()) / (float)(degreeRangeSlider.getMaximum() - degreeRangeSlider.getMinimum()); max_degree_rank = (float)(degreeRangeSlider.getHighValue() - degreeRangeSlider....
private void updateRanges() { min_degree_rank = (float)(degreeRangeSlider.getLowValue() - degreeRangeSlider.getMinimum()) / (float)(degreeRangeSlider.getMaximum() - degreeRangeSlider.getMinimum()); max_degree_rank = (float)(degreeRangeSlider.getHighValue() - degreeRangeSlider.getMinimum()) / (float)(de...
private void updateranges() { min_degree_rank = (float)(degreerangeslider.getlowvalue() - degreerangeslider.getminimum()) / (float)(degreerangeslider.getmaximum() - degreerangeslider.getminimum()); max_degree_rank = (float)(degreerangeslider.gethighvalue() - degreerangeslider.getminimum()) / (float)(degreerangeslider.g...
kylekyle/netgrok
[ 1, 0, 0, 0 ]
30,751
private void resolveConstantPoolReferences(ConstantInfo[] constantPool) { for (ConstantInfo constant : constantPool) { if (constant instanceof ConstantInfo.Class) { ConstantInfo.Class info = (ConstantInfo.Class)constant; info.setName(((ConstantInfo.Utf8)constantPool[i...
private void resolveConstantPoolReferences(ConstantInfo[] constantPool) { for (ConstantInfo constant : constantPool) { if (constant instanceof ConstantInfo.Class) { ConstantInfo.Class info = (ConstantInfo.Class)constant; info.setName(((ConstantInfo.Utf8)constantPool[i...
private void resolveconstantpoolreferences(constantinfo[] constantpool) { for (constantinfo constant : constantpool) { if (constant instanceof constantinfo.class) { constantinfo.class info = (constantinfo.class)constant; info.setname(((constantinfo.utf8)constantpool[info.getnameindex() - 1]).getstring()); } else if (co...
k0kubun/jjvm
[ 1, 0, 0, 0 ]
22,840
public static void send(final InternalDistributedMember recipient, final int processorId, final DM dm, Set keys) throws ForceReattemptException { Assert.assertTrue(recipient != null, "FetchKeysReplyMessage NULL reply message"); final int numSeries = 1; final int seriesNum = 0; // chunkEn...
public static void send(final InternalDistributedMember recipient, final int processorId, final DM dm, Set keys) throws ForceReattemptException { Assert.assertTrue(recipient != null, "FetchKeysReplyMessage NULL reply message"); final int numSeries = 1; final int seriesNum = 0; if (...
public static void send(final internaldistributedmember recipient, final int processorid, final dm dm, set keys) throws forcereattemptexception { assert.asserttrue(recipient != null, "fetchkeysreplymessage null reply message"); final int numseries = 1; final int seriesnum = 0; if (logger.isdebugenabled()) { logger.debu...
karensmolermiller/incubator-geode
[ 0, 1, 0, 0 ]
14,744
@Override void processOFMessage(ControllerChannelHandler h, OFMessage m) throws IOException { switch (m.getType()) { case HELLO: processOFHello(h, (OFHello) m); break; case ECHO_REPLY: break; case ECHO_REQUEST: processOFEchoRequest(h, (OFEchoRequest) m); break; ca...
@Override void processOFMessage(ControllerChannelHandler h, OFMessage m) throws IOException { switch (m.getType()) { case HELLO: processOFHello(h, (OFHello) m); break; case ECHO_REPLY: break; case ECHO_REQUEST: processOFEchoRequest(h, (OFEchoRequest) m); break; ca...
@override void processofmessage(controllerchannelhandler h, ofmessage m) throws ioexception { switch (m.gettype()) { case hello: processofhello(h, (ofhello) m); break; case echo_reply: break; case echo_request: processofechorequest(h, (ofechorequest) m); break; case features_request: processoffeaturesrequest(h, (offeat...
mgerola/OpenVirteX
[ 0, 1, 0, 0 ]
14,763
private void concultar() { String sql = "select * from tbusuarios where iduser=?"; try { pst = conexao.prepareStatement(sql); pst.setString(1, txtUsuId.getText()); rs = pst.executeQuery(); if (rs.next()) { txtUsuNome.setText(rs.getString(2)...
private void concultar() { String sql = "select * from tbusuarios where iduser=?"; try { pst = conexao.prepareStatement(sql); pst.setString(1, txtUsuId.getText()); rs = pst.executeQuery(); if (rs.next()) { txtUsuNome.setText(rs.getString(2)...
private void concultar() { string sql = "select * from tbusuarios where iduser=?"; try { pst = conexao.preparestatement(sql); pst.setstring(1, txtusuid.gettext()); rs = pst.executequery(); if (rs.next()) { txtusunome.settext(rs.getstring(2)); txtusufone.settext(rs.getstring(3)); txtusulogin.settext(rs.getstring(4)); tx...
marceloamorimcg/Dr.InfoSystem
[ 0, 0, 0, 0 ]
14,764
private void adicionar() { String sql = "insert into tbusuarios(iduser, usuario, fone,login,senha,perfil) values(?,?,?,?,?,?)"; try { pst = conexao.prepareStatement(sql); pst.setString(1, txtUsuId.getText()); pst.setString(2, txtUsuNome.getText()); pst.set...
private void adicionar() { String sql = "insert into tbusuarios(iduser, usuario, fone,login,senha,perfil) values(?,?,?,?,?,?)"; try { pst = conexao.prepareStatement(sql); pst.setString(1, txtUsuId.getText()); pst.setString(2, txtUsuNome.getText()); pst.set...
private void adicionar() { string sql = "insert into tbusuarios(iduser, usuario, fone,login,senha,perfil) values(?,?,?,?,?,?)"; try { pst = conexao.preparestatement(sql); pst.setstring(1, txtusuid.gettext()); pst.setstring(2, txtusunome.gettext()); pst.setstring(3, txtusufone.gettext()); pst.setstring(4, txtusulogin.ge...
marceloamorimcg/Dr.InfoSystem
[ 0, 0, 0, 0 ]
14,786
public DataTokenizer buildTokenizerInstance( String tokenizerType ) { // Use a predefined list of known Tokenizers // TODO: publish more tokenizers... (when they are ready/good enough/abstract enough) if ("CSVTokenizer".equals( tokenizerType )) { return new CSVTokenizerImpl(); ...
public DataTokenizer buildTokenizerInstance( String tokenizerType ) { if ("CSVTokenizer".equals( tokenizerType )) { return new CSVTokenizerImpl(); } try { ClassLoader classLoader = this.getClass().getClassLoader(); Class<?> ...
public datatokenizer buildtokenizerinstance( string tokenizertype ) { if ("csvtokenizer".equals( tokenizertype )) { return new csvtokenizerimpl(); } try { classloader classloader = this.getclass().getclassloader(); class<?> loadedclass = classloader.loadclass( tokenizertype ); class<?>[] interfaces = loadedclass.getint...
mindscan-de/BrightFlux
[ 0, 1, 0, 0 ]
23,051
@Override protected void updateConnectButtonState() { // TODO: Update this logic to also handle the user logged in by email. boolean connected = getPlusClient().isConnected(); mSignOutButtons.setVisibility(connected ? View.VISIBLE : View.GONE); mPlusSignInButton.setVisibility(connected ? View.GONE : View.VISIB...
@Override protected void updateConnectButtonState() { boolean connected = getPlusClient().isConnected(); mSignOutButtons.setVisibility(connected ? View.VISIBLE : View.GONE); mPlusSignInButton.setVisibility(connected ? View.GONE : View.VISIBLE); }
@override protected void updateconnectbuttonstate() { boolean connected = getplusclient().isconnected(); msignoutbuttons.setvisibility(connected ? view.visible : view.gone); mplussigninbutton.setvisibility(connected ? view.gone : view.visible); }
llanox/EasyVote
[ 0, 1, 0, 0 ]
23,285
@Test public void fetchTest(){ // FileConfigProvider fcp = new FileConfigProvider("overrides.json"); // for(Config config : fcp.getAll("prod", "ssa")){ // System.out.println(config); // } // RestConfigProvider rcc = new RestConfigProvider("http://localhost:8080/configuration"); // rcc.getAll("prod", "ssa"); //...
@Test public void fetchTest(){ }
@test public void fetchtest(){ }
krisglover/cia
[ 0, 0, 0, 1 ]
31,543
private String waitForAnswer(String expected) { // todo add the possibility to specify more options to be specified // todo use regexp matching instead of the beginning of a string String line = null; if (expected != null) { try { while ((line = mplayerOutErr....
private String waitForAnswer(String expected) { String line = null; if (expected != null) { try { while ((line = mplayerOutErr.readLine()) != null) { if (MusicZones.getIsDebugOn()) { logger.log(Level.INFO, "Reading l...
private string waitforanswer(string expected) { string line = null; if (expected != null) { try { while ((line = mplayerouterr.readline()) != null) { if (musiczones.getisdebugon()) { logger.log(level.info, "reading line: {0}", line); } if (line.startswith(expected)) { return line; } } } catch (ioexception ex) { system....
jzerbe/musiczones
[ 0, 1, 0, 0 ]
31,583
private void logGameStart(CFMap map) { log.println("=== CodeFray Version 1 [Capture the Flag] Official Game Log ===\n"); //TODO: FIX ANNOTATION STUFF //log.println("[Red Team Controller: " + quote(game.getController(Team.RED).getIdString()) + "]"); //log.println("[Blue Team Controller: "...
private void logGameStart(CFMap map) { log.println("=== CodeFray Version 1 [Capture the Flag] Official Game Log ===\n"); log.println(); log.println("> Game started."); }
private void loggamestart(cfmap map) { log.println("=== codefray version 1 [capture the flag] official game log ===\n"); log.println(); log.println("> game started."); }
lg198/CodeFray
[ 0, 1, 0, 0 ]
31,644
public int getPriorityLevel(LinkedList<String> questionAsked) { // If the filtered question is the same than asked if(normalizedQuestion.equals(questionAsked)) return 100; // If it is an ordered subset // TODO I'M NOT SURE IF THIS IS WORKING else if(isSubset(questionA...
public int getPriorityLevel(LinkedList<String> questionAsked) { if(normalizedQuestion.equals(questionAsked)) return 100; else if(isSubset(questionAsked)) return 65; else if(containsWords(questionAsked)>0) return 30; else...
public int getprioritylevel(linkedlist<string> questionasked) { if(normalizedquestion.equals(questionasked)) return 100; else if(issubset(questionasked)) return 65; else if(containswords(questionasked)>0) return 30; else return 0; }
melvidoni/chatbot
[ 1, 0, 0, 0 ]
31,645
private int containsWords(LinkedList<String> questionAsked) { // Create a counter int containedWords = 0; // For each word asked for(String wordAsked : questionAsked) { // If found, we add one, otherwise, we add zero containedWords += normalizedQuestion.contains(w...
private int containsWords(LinkedList<String> questionAsked) { int containedWords = 0; for(String wordAsked : questionAsked) { containedWords += normalizedQuestion.contains(wordAsked) ? 1 : 0; } return containedWords; }
private int containswords(linkedlist<string> questionasked) { int containedwords = 0; for(string wordasked : questionasked) { containedwords += normalizedquestion.contains(wordasked) ? 1 : 0; } return containedwords; }
melvidoni/chatbot
[ 1, 0, 0, 0 ]
31,742
@Inject( method = "updateTexture()V", at = @At( value = "HEAD", target = "net/minecraft/client/render/MapRenderer$MapTexture.updateTexture()V" ), cancellable = true) private void updateAetherTexture(CallbackInfo ci) { if...
@Inject( method = "updateTexture()V", at = @At( value = "HEAD", target = "net/minecraft/client/render/MapRenderer$MapTexture.updateTexture()V" ), cancellable = true) private void updateAetherTexture(CallbackInfo ci) { if...
@inject( method = "updatetexture()v", at = @at( value = "head", target = "net/minecraft/client/render/maprenderer$maptexture.updatetexture()v" ), cancellable = true) private void updateaethertexture(callbackinfo ci) { if (this.state.dimension == aetherdimension.aether_world_key){ for (int i = 0; i < 128; ++i) { for (in...
kalucky0/The-Aether
[ 1, 0, 0, 0 ]
31,763
@Test public void test_EchoUser_restTemplate() { String firstName = "Chuck"; String lastName = "Norris"; String result = restTemplate.getForObject( "http://localhost:8888/"+firstName+"/"+lastName, String.class); String expected = "{\"firstName\":\""+firstName+"\",\"lastName\":\""+lastName+"\"}";...
@Test public void test_EchoUser_restTemplate() { String firstName = "Chuck"; String lastName = "Norris"; String result = restTemplate.getForObject( "http://localhost:8888/"+firstName+"/"+lastName, String.class); String expected = "{\"firstName\":\""+firstName+"\",\"lastName\":\""+lastName+"\"}";...
@test public void test_echouser_resttemplate() { string firstname = "chuck"; string lastname = "norris"; string result = resttemplate.getforobject( "http://localhost:8888/"+firstname+"/"+lastname, string.class); string expected = "{\"firstname\":\""+firstname+"\",\"lastname\":\""+lastname+"\"}"; assertthat(result, cont...
mickknutson/spring-cloud-config
[ 0, 0, 1, 0 ]
15,506
public boolean validateBinaryExpr(BinaryExpr node) { ExprNode expr1 = node.getExpr1(); ExprNode expr2 = node.getExpr2(); Type t1 = expr1.getType(); Type t2 = expr2.getType(); String op = node.getOperation(); switch (op) { case "==": case "!=": ...
public boolean validateBinaryExpr(BinaryExpr node) { ExprNode expr1 = node.getExpr1(); ExprNode expr2 = node.getExpr2(); Type t1 = expr1.getType(); Type t2 = expr2.getType(); String op = node.getOperation(); switch (op) { case "==": case "!=": ...
public boolean validatebinaryexpr(binaryexpr node) { exprnode expr1 = node.getexpr1(); exprnode expr2 = node.getexpr2(); type t1 = expr1.gettype(); type t2 = expr2.gettype(); string op = node.getoperation(); switch (op) { case "==": case "!=": if (types.isnumber(t1)) { return this.requirenumber(expr2,t2); } else { retu...
lbqh/kalang
[ 0, 1, 0, 0 ]
15,600
public void projectTo(final ComplexProjective1 cp) throws IllegalArgumentException { /* Check if the point lies on the sphere. */ if (Math.abs(normSquared() - 1.0) > EPSILON) { throw new IllegalArgumentException("Norm must be 1.0. " + "N...
public void projectTo(final ComplexProjective1 cp) throws IllegalArgumentException { if (Math.abs(normSquared() - 1.0) > EPSILON) { throw new IllegalArgumentException("Norm must be 1.0. " + "Norm is " + norm() + ". "); } ...
public void projectto(final complexprojective1 cp) throws illegalargumentexception { if (math.abs(normsquared() - 1.0) > epsilon) { throw new illegalargumentexception("norm must be 1.0. " + "norm is " + norm() + ". "); } if (z > 0.0) { final double dummyre; final double dummyim; y = -y; z = -z; belowxyprojectto(cp); y ...
jupsal/schmies-jTEM
[ 1, 0, 0, 0 ]
32,041
@Test public void dontPullAttachmentAlreadyPulled() { try { // create a rev with an attachment, then update it keeping attachment // TODO we need to somehow check the attachment wasn't re-downloaded createRevisionAndBigTextAttachment(); pull(); Doc...
@Test public void dontPullAttachmentAlreadyPulled() { try { createRevisionAndBigTextAttachment(); pull(); DocumentRevision docRev1 = datastore.getDocument(id, rev); Attachment a1 = datastore.getAttachment(docRev1, bigTextAttachmentName)...
@test public void dontpullattachmentalreadypulled() { try { createrevisionandbigtextattachment(); pull(); documentrevision docrev1 = datastore.getdocument(id, rev); attachment a1 = datastore.getattachment(docrev1, bigtextattachmentname); updaterevisionandkeepattachment(); updaterevisionandkeepattachment(); pull(); docu...
kiwiwearables/sync-android
[ 1, 0, 0, 0 ]
7,632
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Bundle extras; Log.d(TAG, "Widget configuration activity created"); setResult(RESULT_CANCELED); extras = getIntent().getExtras(); if (extras != null) { mAppW...
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Bundle extras; Log.d(TAG, "Widget configuration activity created"); setResult(RESULT_CANCELED); extras = getIntent().getExtras(); if (extras != null) { mAppW...
@override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); bundle extras; log.d(tag, "widget configuration activity created"); setresult(result_canceled); extras = getintent().getextras(); if (extras != null) { mappwidgetid = extras.getint(appwidgetmanager.extra_appwidget_id, app...
memleakpl/flat
[ 0, 0, 1, 0 ]
24,024
void sqlLiteralForObject(StringBuilder buffer, Object object) { if (object == null) { buffer.append("NULL"); } else if (object instanceof String) { buffer.append('\''); // lets escape quotes String literal = (String) object; if (literal.length() > TRIM_VALUES_THRESHOLD) { literal = literal.substr...
void sqlLiteralForObject(StringBuilder buffer, Object object) { if (object == null) { buffer.append("NULL"); } else if (object instanceof String) { buffer.append('\''); String literal = (String) object; if (literal.length() > TRIM_VALUES_THRESHOLD) { literal = literal.substring(0, TRIM_VALUES_THR...
void sqlliteralforobject(stringbuilder buffer, object object) { if (object == null) { buffer.append("null"); } else if (object instanceof string) { buffer.append('\''); string literal = (string) object; if (literal.length() > trim_values_threshold) { literal = literal.substring(0, trim_values_threshold) + "..."; } int ...
laakhbeenor/cayenne
[ 0, 0, 1, 0 ]
15,851
protected double valueFor(Object o) { if (o instanceof java.lang.Number) // compiler complains unless I include the full classname!!! Huh? return ((Number)o).doubleValue(); else if (o instanceof Valuable) return ((Valuable)o).doubleValue(); else if (o instanceof ...
protected double valueFor(Object o) { if (o instanceof java.lang.Number) return ((Number)o).doubleValue(); else if (o instanceof Valuable) return ((Valuable)o).doubleValue(); else if (o instanceof Boolean) return ((Boolean)o).booleanValue() ? 1 : 0; ...
protected double valuefor(object o) { if (o instanceof java.lang.number) return ((number)o).doublevalue(); else if (o instanceof valuable) return ((valuable)o).doublevalue(); else if (o instanceof boolean) return ((boolean)o).booleanvalue() ? 1 : 0; else return double.nan; }
minhhn2910/g-mason
[ 1, 0, 0, 0 ]
24,088
private Grid<Cuenta> createGrid() { grid = new Grid<>(); grid.setWidthFull(); grid.addThemeVariants(GridVariant.LUMO_NO_BORDER,GridVariant.LUMO_ROW_STRIPES); SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); grid.addColumn(c -> c.getIban()).setHeader("Iban").setFlexGrow(1); grid.addCol...
private Grid<Cuenta> createGrid() { grid = new Grid<>(); grid.setWidthFull(); grid.addThemeVariants(GridVariant.LUMO_NO_BORDER,GridVariant.LUMO_ROW_STRIPES); SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); grid.addColumn(c -> c.getIban()).setHeader("Iban").setFlexGrow(1); grid.addCol...
private grid<cuenta> creategrid() { grid = new grid<>(); grid.setwidthfull(); grid.addthemevariants(gridvariant.lumo_no_border,gridvariant.lumo_row_stripes); simpledateformat dateformat = new simpledateformat("dd/mm/yyyy"); grid.addcolumn(c -> c.getiban()).setheader("iban").setflexgrow(1); grid.addcolumn(c -> c.getsald...
juansgonzalez/ingenia-bank
[ 0, 0, 0, 0 ]
7,744
@Ignore("This test was not writted due to lack of time. This is what should have been done:\n" + "Since this feature involves network calls, to properly unit test this it, is necessary\n" + "to mock the Network module and provide a fake JSON response. This way the test doesn't\n" + "...
@Ignore("This test was not writted due to lack of time. This is what should have been done:\n" + "Since this feature involves network calls, to properly unit test this it, is necessary\n" + "to mock the Network module and provide a fake JSON response. This way the test doesn't\n" + "...
@ignore("this test was not writted due to lack of time. this is what should have been done:\n" + "since this feature involves network calls, to properly unit test this it, is necessary\n" + "to mock the network module and provide a fake json response. this way the test doesn't\n" + "rely on an internet connection, a we...
leinardi/Dagger2MVP
[ 0, 1, 0, 0 ]
24,143
@Override public boolean equals(Object obj) { // TODO: come up with a better implementation of this later return false; }
@Override public boolean equals(Object obj) { return false; }
@override public boolean equals(object obj) { return false; }
kaubster/se-577-group-projects
[ 1, 0, 0, 0 ]
7,766
@Test public void testPaginate() throws Exception { //fail("Test not implemented yet."); //TODO: do later }
@Test public void testPaginate() throws Exception { }
@test public void testpaginate() throws exception { }
mkalus/segrada
[ 0, 0, 0, 1 ]
7,935
private void processUnresolved(TypeReference Sref) throws LookupException { // WARNING // INCOMPLETE see processSubtypeConstraints TypeReference RRef = (TypeReference) invokedGenericMethod().returnTypeReference(); FirstPhaseConstraintSet constraints = new FirstPhaseConstraintSet(invocation(), invokedGenericMeth...
private void processUnresolved(TypeReference Sref) throws LookupException { TypeReference RRef = (TypeReference) invokedGenericMethod().returnTypeReference(); FirstPhaseConstraintSet constraints = new FirstPhaseConstraintSet(invocation(), invokedGenericMethod()); View view = RRef.view(); TypeReference Sprim...
private void processunresolved(typereference sref) throws lookupexception { typereference rref = (typereference) invokedgenericmethod().returntypereference(); firstphaseconstraintset constraints = new firstphaseconstraintset(invocation(), invokedgenericmethod()); view view = rref.view(); typereference sprimeref = box(s...
markovandooren/jnome
[ 0, 1, 0, 0 ]
24,673
private void validateZoneAvailable(String tenantId, String zone) throws IllegalArgumentException { List<ZoneDTO> zones; try { zones = zoneApi.getAvailableZones(tenantId); } catch (ResourceAccessException e) { // need to do something here to handle things more gracefully. throw new RuntimeE...
private void validateZoneAvailable(String tenantId, String zone) throws IllegalArgumentException { List<ZoneDTO> zones; try { zones = zoneApi.getAvailableZones(tenantId); } catch (ResourceAccessException e) { throw new RuntimeException("Unable to validate zones.", e); } boolean fou...
private void validatezoneavailable(string tenantid, string zone) throws illegalargumentexception { list<zonedto> zones; try { zones = zoneapi.getavailablezones(tenantid); } catch (resourceaccessexception e) { throw new runtimeexception("unable to validate zones.", e); } boolean found = zones.stream().anymatch(z -> z.ge...
racker/salus-telemetry-ambassador
[ 1, 0, 0, 0 ]
16,532
public String getBlockId() { final BlockEntity be = serverWorld.getBlockEntity(this.blockPos); // FIXME do we need to check at y+1? return String.valueOf(Registry.BLOCK_ENTITY_TYPE.getId(be.getType())); }
public String getBlockId() { final BlockEntity be = serverWorld.getBlockEntity(this.blockPos); return String.valueOf(Registry.BLOCK_ENTITY_TYPE.getId(be.getType())); }
public string getblockid() { final blockentity be = serverworld.getblockentity(this.blockpos); return string.valueof(registry.block_entity_type.getid(be.gettype())); }
pcal43/mob-filter
[ 0, 0, 1, 0 ]
24,727
@Override public List<DeviceStorageRoot> getSecondaryDeviceStorageRoots() { ArrayList<DeviceStorageRoot> secondaryStorageRoot = new ArrayList<>(1); if (secondaryStoragePath != null) { secondaryStorageRoot.add(new DeviceStorageRoot(secondaryStoragePath, secondaryStoragePath, DeviceStorage...
@Override public List<DeviceStorageRoot> getSecondaryDeviceStorageRoots() { ArrayList<DeviceStorageRoot> secondaryStorageRoot = new ArrayList<>(1); if (secondaryStoragePath != null) { secondaryStorageRoot.add(new DeviceStorageRoot(secondaryStoragePath, secondaryStoragePath, DeviceStorage...
@override public list<devicestorageroot> getsecondarydevicestorageroots() { arraylist<devicestorageroot> secondarystorageroot = new arraylist<>(1); if (secondarystoragepath != null) { secondarystorageroot.add(new devicestorageroot(secondarystoragepath, secondarystoragepath, devicestorageroot.type.secondary)); } return ...
novoda/storage-path-finder
[ 1, 0, 0, 0 ]
8,431
@JsonGetter("amount") public int getAmount ( ) { return this.amount; }
@JsonGetter("amount") public int getAmount ( ) { return this.amount; }
@jsongetter("amount") public int getamount ( ) { return this.amount; }
pagarme/pagarme-core-api-java
[ 0, 0, 0, 0 ]
8,432
@JsonSetter("amount") public void setAmount (int value) { this.amount = value; }
@JsonSetter("amount") public void setAmount (int value) { this.amount = value; }
@jsonsetter("amount") public void setamount (int value) { this.amount = value; }
pagarme/pagarme-core-api-java
[ 0, 0, 0, 0 ]
8,433
@JsonGetter("description") public String getDescription ( ) { return this.description; }
@JsonGetter("description") public String getDescription ( ) { return this.description; }
@jsongetter("description") public string getdescription ( ) { return this.description; }
pagarme/pagarme-core-api-java
[ 0, 0, 0, 0 ]
8,434
@JsonSetter("description") public void setDescription (String value) { this.description = value; }
@JsonSetter("description") public void setDescription (String value) { this.description = value; }
@jsonsetter("description") public void setdescription (string value) { this.description = value; }
pagarme/pagarme-core-api-java
[ 0, 0, 0, 0 ]
8,435
@JsonGetter("quantity") public int getQuantity ( ) { return this.quantity; }
@JsonGetter("quantity") public int getQuantity ( ) { return this.quantity; }
@jsongetter("quantity") public int getquantity ( ) { return this.quantity; }
pagarme/pagarme-core-api-java
[ 0, 0, 0, 0 ]
8,436
@JsonSetter("quantity") public void setQuantity (int value) { this.quantity = value; }
@JsonSetter("quantity") public void setQuantity (int value) { this.quantity = value; }
@jsonsetter("quantity") public void setquantity (int value) { this.quantity = value; }
pagarme/pagarme-core-api-java
[ 0, 0, 0, 0 ]
8,437
@JsonGetter("category") public String getCategory ( ) { return this.category; }
@JsonGetter("category") public String getCategory ( ) { return this.category; }
@jsongetter("category") public string getcategory ( ) { return this.category; }
pagarme/pagarme-core-api-java
[ 0, 0, 0, 0 ]
8,438
@JsonSetter("category") public void setCategory (String value) { this.category = value; }
@JsonSetter("category") public void setCategory (String value) { this.category = value; }
@jsonsetter("category") public void setcategory (string value) { this.category = value; }
pagarme/pagarme-core-api-java
[ 0, 0, 0, 0 ]
8,485
private void updateCartCount(int count){ if (txtItemCount != null) { txtItemCount.setText(String.valueOf(count)); } }
private void updateCartCount(int count){ if (txtItemCount != null) { txtItemCount.setText(String.valueOf(count)); } }
private void updatecartcount(int count){ if (txtitemcount != null) { txtitemcount.settext(string.valueof(count)); } }
nilesh14/FMC
[ 1, 0, 0, 0 ]
16,767
@Override public Runnable getConsumer(final KafkaSynchronizedConsumerPool pool, final KafkaStream<byte[], byte[]> stream) { return new Runnable() { @Override public void run() { ConsumerIterator<byte[],byte[]> iter = stream.iterator(); byte[] sipHashKe...
@Override public Runnable getConsumer(final KafkaSynchronizedConsumerPool pool, final KafkaStream<byte[], byte[]> stream) { return new Runnable() { @Override public void run() { ConsumerIterator<byte[],byte[]> iter = stream.iterator(); byte[] sipHashKe...
@override public runnable getconsumer(final kafkasynchronizedconsumerpool pool, final kafkastream<byte[], byte[]> stream) { return new runnable() { @override public void run() { consumeriterator<byte[],byte[]> iter = stream.iterator(); byte[] siphashkey = frontend.keystore.getkey(keystore.siphash_kafka_plasma_frontend_...
randomboolean/warp10-platform
[ 0, 1, 0, 0 ]
432
protected void addSubtable(GlyphSubtable subtable) { if (subtable instanceof GlyphClassSubtable) { this.gct = (GlyphClassSubtable) subtable; } else if (subtable instanceof AttachmentPointSubtable) { // TODO - not yet used // this.apt = (AttachmentPointSubtable) subtab...
protected void addSubtable(GlyphSubtable subtable) { if (subtable instanceof GlyphClassSubtable) { this.gct = (GlyphClassSubtable) subtable; } else if (subtable instanceof AttachmentPointSubtable) { } else if (subtable instanceof LigatureCaretSubtable) { ...
protected void addsubtable(glyphsubtable subtable) { if (subtable instanceof glyphclasssubtable) { this.gct = (glyphclasssubtable) subtable; } else if (subtable instanceof attachmentpointsubtable) { } else if (subtable instanceof ligaturecaretsubtable) { } else if (subtable instanceof markattachmentsubtable) { this.mat...
not2sirius/fop
[ 1, 0, 0, 0 ]
8,645
@Override public void exitOperator_expr(OperonModuleParser.Operator_exprContext ctx) { //:OFF:log.debug("EXIT Operator_expr :: Stack size :: " + this.stack.size()); List<ParseTree> subNodes = getContextChildNodes(ctx); int subNodesSize = subNodes.size(); // Get the FunctionRef ...
@Override public void exitOperator_expr(OperonModuleParser.Operator_exprContext ctx) { List<ParseTree> subNodes = getContextChildNodes(ctx); int subNodesSize = subNodes.size(); FunctionRef funcRef = (FunctionRef) this.stack.pop(); boolean isCascade = false; if...
@override public void exitoperator_expr(operonmoduleparser.operator_exprcontext ctx) { list<parsetree> subnodes = getcontextchildnodes(ctx); int subnodessize = subnodes.size(); functionref funcref = (functionref) this.stack.pop(); boolean iscascade = false; if (subnodes.get(subnodes.size() - 2) instanceof terminalnode ...
operon-io/operon-lang
[ 1, 0, 0, 0 ]
33,243
private void testClassify(String testID, String testExpectedID) { log.info("Testing the CLASSIFY task"); OWLOntologyManager manager = TestData.manager; // We prepare the input ontology try { OWLOntology testOntology = manager.createOntology(); OWLOntologyID testOn...
private void testClassify(String testID, String testExpectedID) { log.info("Testing the CLASSIFY task"); OWLOntologyManager manager = TestData.manager; try { OWLOntology testOntology = manager.createOntology(); OWLOntologyID testOntologyID = testOntology.getOntolo...
private void testclassify(string testid, string testexpectedid) { log.info("testing the classify task"); owlontologymanager manager = testdata.manager; try { owlontology testontology = manager.createontology(); owlontologyid testontologyid = testontology.getontologyid(); log.debug("created test ontology with id: {}", t...
nikosnikolaidis/stanbol
[ 0, 0, 0, 1 ]
8,668
@Test public void testAclExtraction() { CiscoXrConfiguration c = parseVendorConfig("acl"); assertThat(c.getIpv4Acls(), hasKeys("acl")); Ipv4AccessList acl = c.getIpv4Acls().get("acl"); // TODO: get the remark line in there too. assertThat(acl.getLines(), hasSize(7)); assertThat(c.getIpv6Acls()...
@Test public void testAclExtraction() { CiscoXrConfiguration c = parseVendorConfig("acl"); assertThat(c.getIpv4Acls(), hasKeys("acl")); Ipv4AccessList acl = c.getIpv4Acls().get("acl"); assertThat(acl.getLines(), hasSize(7)); assertThat(c.getIpv6Acls(), hasKeys("aclv6")); Ipv6AccessList acl...
@test public void testaclextraction() { ciscoxrconfiguration c = parsevendorconfig("acl"); assertthat(c.getipv4acls(), haskeys("acl")); ipv4accesslist acl = c.getipv4acls().get("acl"); assertthat(acl.getlines(), hassize(7)); assertthat(c.getipv6acls(), haskeys("aclv6")); ipv6accesslist aclv6 = c.getipv6acls().get("aclv...
pranavbj-amzn/batfish
[ 1, 0, 0, 0 ]
8,669
@Test public void testAclConversion() { Configuration c = parseConfig("acl"); assertThat(c.getIpAccessLists(), hasKeys("acl")); IpAccessList acl = c.getIpAccessLists().get("acl"); // TODO: get the remark line in there too. assertThat(acl.getLines(), hasSize(7)); assertThat(c.getIp6AccessLists(...
@Test public void testAclConversion() { Configuration c = parseConfig("acl"); assertThat(c.getIpAccessLists(), hasKeys("acl")); IpAccessList acl = c.getIpAccessLists().get("acl"); assertThat(acl.getLines(), hasSize(7)); assertThat(c.getIp6AccessLists(), hasKeys("aclv6")); Ip6AccessList acl...
@test public void testaclconversion() { configuration c = parseconfig("acl"); assertthat(c.getipaccesslists(), haskeys("acl")); ipaccesslist acl = c.getipaccesslists().get("acl"); assertthat(acl.getlines(), hassize(7)); assertthat(c.getip6accesslists(), haskeys("aclv6")); ip6accesslist aclv6 = c.getip6accesslists().get...
pranavbj-amzn/batfish
[ 1, 0, 0, 0 ]
33,288
@Override public boolean onTouch(View v, MotionEvent event) { switch(event.getAction()){ case MotionEvent.ACTION_CANCEL: _downTime.set(0); break; case MotionEvent.ACTION_DOWN: _downTime.set(System.currentTimeMillis()); _downX = event.getX(); _downY = event.getY(); if(_longClic...
@Override public boolean onTouch(View v, MotionEvent event) { switch(event.getAction()){ case MotionEvent.ACTION_CANCEL: _downTime.set(0); break; case MotionEvent.ACTION_DOWN: _downTime.set(System.currentTimeMillis()); _downX = event.getX(); _downY = event.getY(); if(_longClic...
@override public boolean ontouch(view v, motionevent event) { switch(event.getaction()){ case motionevent.action_cancel: _downtime.set(0); break; case motionevent.action_down: _downtime.set(system.currenttimemillis()); _downx = event.getx(); _downy = event.gety(); if(_longclicktimer == null){ _longclicktimer = new asyn...
otula/kiiaudata
[ 0, 0, 1, 0 ]
675
@Override public int describeContents() { return 0;//TODO figure out how to act with this stuff }
@Override public int describeContents() { return 0 }
@override public int describecontents() { return 0 }
programmerr47/breverkruntkin-test-task
[ 1, 0, 0, 0 ]
8,907
public void setWs(boolean b) { // TODO: document me this.tr.setSkipws(b); }
public void setWs(boolean b) { this.tr.setSkipws(b); }
public void setws(boolean b) { this.tr.setskipws(b); }
rebse/flaka
[ 0, 0, 0, 0 ]
8,908
public void setCl(boolean b) { // TODO: document me this.tr.setResolveContLines(b); }
public void setCl(boolean b) { this.tr.setResolveContLines(b); }
public void setcl(boolean b) { this.tr.setresolvecontlines(b); }
rebse/flaka
[ 0, 0, 0, 0 ]
781
private Map<String, T> getChoiceMap() { if (choiceMap == null || alwaysReload()) { Collection<T> choices = loadChoices(); choiceMap = new HashMap<>(); for (T choice: choices) { // TODO: smarter initialization of the map choiceMap.put(choice.get...
private Map<String, T> getChoiceMap() { if (choiceMap == null || alwaysReload()) { Collection<T> choices = loadChoices(); choiceMap = new HashMap<>(); for (T choice: choices) { choiceMap.put(choice.getLocalPart(), choice); } ...
private map<string, t> getchoicemap() { if (choicemap == null || alwaysreload()) { collection<t> choices = loadchoices(); choicemap = new hashmap<>(); for (t choice: choices) { choicemap.put(choice.getlocalpart(), choice); } } return choicemap; }
mythoss/midpoint
[ 1, 0, 0, 0 ]
9,010
public static void main(String[] args) { // The connection string value can be obtained by: // 1. Going to your Event Hubs namespace in Azure Portal. // 2. Creating an Event Hub instance. // 3. Creating a "Shared access policy" for your Event Hub instance. // 4. Copying the conne...
public static void main(String[] args) { String connectionString = "Endpoint={endpoint};SharedAccessKeyName={sharedAccessKeyName};SharedAccessKey={sharedAccessKey};EntityPath={eventHubName}"; EventHubProducerAsyncClient producer = new EventHubClientBuilder() ...
public static void main(string[] args) { string connectionstring = "endpoint={endpoint};sharedaccesskeyname={sharedaccesskeyname};sharedaccesskey={sharedaccesskey};entitypath={eventhubname}"; eventhubproducerasyncclient producer = new eventhubclientbuilder() .connectionstring(connectionstring) .buildasyncproducer(); ev...
ppsim/azure-sdk-for-java
[ 0, 0, 0, 0 ]
822
private BasePrinter escapeCharacter(char c) { if (c == '"') { return backslashChar(c); } switch (c) { case '\\': return backslashChar('\\'); case '\r': return backslashChar('r'); case '\n': return backslashChar('n'); case '\t': ...
private BasePrinter escapeCharacter(char c) { if (c == '"') { return backslashChar(c); } switch (c) { case '\\': return backslashChar('\\'); case '\r': return backslashChar('r'); case '\n': return backslashChar('n'); case '\t': ...
private baseprinter escapecharacter(char c) { if (c == '"') { return backslashchar(c); } switch (c) { case '\\': return backslashchar('\\'); case '\r': return backslashchar('r'); case '\n': return backslashchar('n'); case '\t': return backslashchar('t'); default: if (c < 32) { return this.append(string.format("\\x%02x"...
moroten/bazel
[ 0, 1, 0, 0 ]
831
private Pair<ImageView, String> loadImageWithCaption(int fileId, String caption, Map <String, Integer> weaponMap, Integer id) { try { //TODO: USE BELOW WHEN INFO IS CHANGED System.out.println(fileId); var image = new ImageView(myLogic.getImage(fileId)); ...
private Pair<ImageView, String> loadImageWithCaption(int fileId, String caption, Map <String, Integer> weaponMap, Integer id) { try { System.out.println(fileId); var image = new ImageView(myLogic.getImage(fileId)); System.out.println("**********"); ...
private pair<imageview, string> loadimagewithcaption(int fileid, string caption, map <string, integer> weaponmap, integer id) { try { system.out.println(fileid); var image = new imageview(mylogic.getimage(fileid)); system.out.println("**********"); system.out.println(image); weaponmap.put(image.tostring(), id); image.s...
pandawithcat/VoogaSalad
[ 1, 0, 0, 0 ]
25,437
@Override public void channelRead0(final ChannelHandlerContext ctx, final RPCMessage msg) throws IOException { switch (msg.getType()) { case RPC_BLOCK_READ_REQUEST: assert msg instanceof RPCBlockReadRequest; mBlockHandler.handleBlockReadRequest(ctx, (RPCBlockReadRequest) msg); ...
@Override public void channelRead0(final ChannelHandlerContext ctx, final RPCMessage msg) throws IOException { switch (msg.getType()) { case RPC_BLOCK_READ_REQUEST: assert msg instanceof RPCBlockReadRequest; mBlockHandler.handleBlockReadRequest(ctx, (RPCBlockReadRequest) msg); ...
@override public void channelread0(final channelhandlercontext ctx, final rpcmessage msg) throws ioexception { switch (msg.gettype()) { case rpc_block_read_request: assert msg instanceof rpcblockreadrequest; mblockhandler.handleblockreadrequest(ctx, (rpcblockreadrequest) msg); break; case rpc_block_write_request: asser...
ramiyer/alluxio
[ 1, 0, 1, 0 ]
25,438
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { LOG.warn("Exception thrown while processing request", cause); // TODO(peis): This doesn't have to be decode error, it can also be any network errors such as // connection reset. Fix this ALLUXIO-2235. ...
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { LOG.warn("Exception thrown while processing request", cause); RPCErrorResponse resp = new RPCErrorResponse(RPCResponse.Status.DECODE_ERROR); ChannelFuture channelFuture = ctx.writeAndFlush(resp); ...
@override public void exceptioncaught(channelhandlercontext ctx, throwable cause) throws exception { log.warn("exception thrown while processing request", cause); rpcerrorresponse resp = new rpcerrorresponse(rpcresponse.status.decode_error); channelfuture channelfuture = ctx.writeandflush(resp); channelfuture.addlisten...
ramiyer/alluxio
[ 0, 0, 1, 0 ]
17,264
public static NavigableMap<String, Object> readAttrs(Buffer buffer, int version) { NavigableMap<String, Object> attrs = new TreeMap<>(String.CASE_INSENSITIVE_ORDER); int flags = buffer.getInt(); if (version >= SftpConstants.SFTP_V4) { int type = buffer.getUByte(); switch ...
public static NavigableMap<String, Object> readAttrs(Buffer buffer, int version) { NavigableMap<String, Object> attrs = new TreeMap<>(String.CASE_INSENSITIVE_ORDER); int flags = buffer.getInt(); if (version >= SftpConstants.SFTP_V4) { int type = buffer.getUByte(); switch ...
public static navigablemap<string, object> readattrs(buffer buffer, int version) { navigablemap<string, object> attrs = new treemap<>(string.case_insensitive_order); int flags = buffer.getint(); if (version >= sftpconstants.sftp_v4) { int type = buffer.getubyte(); switch (type) { case sftpconstants.ssh_filexfer_type_re...
msohn/mina-sshd
[ 0, 1, 0, 0 ]
17,318
@Override void storeProperties() throws IOException { super.storeProperties(); // Store chnages in manifest storeManifestChanges(); // store localized info if (bundleInfo != null && bundleInfo.isModified()) { bundleInfo.store(); } // XXX else ignore for no...
@Override void storeProperties() throws IOException { super.storeProperties(); storeManifestChanges(); if (bundleInfo != null && bundleInfo.isModified()) { bundleInfo.store(); } ProjectXMLManager pxm = getProjectXMLManager(); ...
@override void storeproperties() throws ioexception { super.storeproperties(); storemanifestchanges(); if (bundleinfo != null && bundleinfo.ismodified()) { bundleinfo.store(); } projectxmlmanager pxm = getprojectxmlmanager(); dependencylistmodel dependencymodel = getdependencieslistmodel(); if (dependencymodel.ischange...
pokebadgerswithspoon/incubator-netbeans
[ 1, 0, 1, 0 ]
17,373
public void deleteByUserId(int userId) { try { DeleteBuilder<UserRequest, Long> deleteBuilder = dao.deleteBuilder(); deleteBuilder.where().eq(QMUserColumns.ID, userId); if (deleteBuilder.delete() > 0) { //TODO VT need to think how to send ID to observers ...
public void deleteByUserId(int userId) { try { DeleteBuilder<UserRequest, Long> deleteBuilder = dao.deleteBuilder(); deleteBuilder.where().eq(QMUserColumns.ID, userId); if (deleteBuilder.delete() > 0) { notifyObserversDeletedById(userId); ...
public void deletebyuserid(int userid) { try { deletebuilder<userrequest, long> deletebuilder = dao.deletebuilder(); deletebuilder.where().eq(qmusercolumns.id, userid); if (deletebuilder.delete() > 0) { notifyobserversdeletedbyid(userid); } } catch (sqlexception e) { errorutils.logerror(e); } }
philz127/CAPSTONE
[ 1, 0, 0, 0 ]
25,568
@Deprecated public boolean isValidShortNumberForRegion(String shortNumber, String regionDialingFrom) { PhoneMetadata phoneMetadata = MetadataManager.getShortNumberMetadataForRegion(regionDialingFrom); if (phoneMetadata == null) { return false; } PhoneNumberDesc generalDesc = phoneMetadat...
@Deprecated public boolean isValidShortNumberForRegion(String shortNumber, String regionDialingFrom) { PhoneMetadata phoneMetadata = MetadataManager.getShortNumberMetadataForRegion(regionDialingFrom); if (phoneMetadata == null) { return false; } PhoneNumberDesc generalDesc = phoneMetadat...
@deprecated public boolean isvalidshortnumberforregion(string shortnumber, string regiondialingfrom) { phonemetadata phonemetadata = metadatamanager.getshortnumbermetadataforregion(regiondialingfrom); if (phonemetadata == null) { return false; } phonenumberdesc generaldesc = phonemetadata.getgeneraldesc(); if (!matches...
nickbarban/libphonenumber
[ 0, 0, 0, 0 ]
33,777
private List<AnnotatedAttributeValuePair> getAttributeValuePairs(JsonOutcome outcome, JsonReference reference) { Optional<String> docNameTrue = getFirstDocname(reference); String docName = docNameTrue.orElse(outcome.getShortTitle()); // we use the highlighted text to put the table caption ...
private List<AnnotatedAttributeValuePair> getAttributeValuePairs(JsonOutcome outcome, JsonReference reference) { Optional<String> docNameTrue = getFirstDocname(reference); String docName = docNameTrue.orElse(outcome.getShortTitle()); String highlightedText = outcome.getOutcomeDescription...
private list<annotatedattributevaluepair> getattributevaluepairs(jsonoutcome outcome, jsonreference reference) { optional<string> docnametrue = getfirstdocname(reference); string docname = docnametrue.orelse(outcome.getshorttitle()); string highlightedtext = outcome.getoutcomedescription(); arm arm1 = getassignedarm(ou...
ouyangzhiping/Info-extract
[ 1, 0, 0, 0 ]
33,859
public void sortRows(AlignmentTrack.SortOption option, double location) { if (alignmentRows == null) { return; } for (AlignmentInterval.Row row : alignmentRows) { if (option == AlignmentTrack.SortOption.NUCELOTIDE) { // TODO -- why is this here? ...
public void sortRows(AlignmentTrack.SortOption option, double location) { if (alignmentRows == null) { return; } for (AlignmentInterval.Row row : alignmentRows) { if (option == AlignmentTrack.SortOption.NUCELOTIDE) { } row.updateSco...
public void sortrows(alignmenttrack.sortoption option, double location) { if (alignmentrows == null) { return; } for (alignmentinterval.row row : alignmentrows) { if (option == alignmenttrack.sortoption.nucelotide) { } row.updatescore(option, location, this); } collections.sort(alignmentrows, new comparator<row>() { pu...
nrgene/NRGene-IGV
[ 1, 0, 0, 0 ]
17,516
public native byte [] getClientIp();
public native byte [] getClientIp();
public native byte [] getclientip();
recolic/hbase-2.1.0
[ 0, 0, 1, 0 ]
25,782
public static List<JSONObject> constructRokuNativeElements(JSONObject elementObj) { List<JSONObject> elements = new ArrayList<>(); JSONArray valueArr = (JSONArray) elementObj.get("value"); if (valueArr == null) { return elements; } for (int i = 0; i < valueArr.size(); i++) { String[] boundsComponents = ...
public static List<JSONObject> constructRokuNativeElements(JSONObject elementObj) { List<JSONObject> elements = new ArrayList<>(); JSONArray valueArr = (JSONArray) elementObj.get("value"); if (valueArr == null) { return elements; } for (int i = 0; i < valueArr.size(); i++) { String[] boundsComponents = ...
public static list<jsonobject> constructrokunativeelements(jsonobject elementobj) { list<jsonobject> elements = new arraylist<>(); jsonarray valuearr = (jsonarray) elementobj.get("value"); if (valuearr == null) { return elements; } for (int i = 0; i < valuearr.size(); i++) { string[] boundscomponents = { "0", "0", "0",...
mohanakrishna12/rokuality-server
[ 0, 1, 0, 0 ]
1,229
@Test public void testReadFailure() throws IOException { // TODO (lwhite): These tests don't fail. What was their intent? Table table1 = Table.read() .csv(CsvReadOptions.builder("../data/read_failure_test.csv").minimizeColumnSizes()); table1.structure(); // just make sure the import co...
@Test public void testReadFailure() throws IOException { Table table1 = Table.read() .csv(CsvReadOptions.builder("../data/read_failure_test.csv").minimizeColumnSizes()); table1.structure(); ShortColumn test = table1.shortColumn("Test"); assertNotNull(test.summary()); }
@test public void testreadfailure() throws ioexception { table table1 = table.read() .csv(csvreadoptions.builder("../data/read_failure_test.csv").minimizecolumnsizes()); table1.structure(); shortcolumn test = table1.shortcolumn("test"); assertnotnull(test.summary()); }
rayeaster/tablesaw
[ 0, 0, 0, 1 ]
34,107
public void copyFrom(OutputProperties opsrc) throws TransformerException { // Bugzilla 6157: recover from xsl:output statements // checkDuplicates(opsrc); copyFrom(opsrc.getProperties()); }
public void copyFrom(OutputProperties opsrc) throws TransformerException { copyFrom(opsrc.getProperties()); }
public void copyfrom(outputproperties opsrc) throws transformerexception { copyfrom(opsrc.getproperties()); }
oradian/xalan-j
[ 0, 0, 1, 0 ]
25,919
private void buildDependencyTree( Queue<DependencyNode> nodeQueue, boolean full, boolean online, Session session, Map<String, Profile> profiles, PomFileLoader loader, Log log ) { int neededLevels = full ? -1 : 1; while( !nodeQueue.isEmpty() ) { DependencyNode node = nodeQueue.poll(); if( neededLevels...
private void buildDependencyTree( Queue<DependencyNode> nodeQueue, boolean full, boolean online, Session session, Map<String, Profile> profiles, PomFileLoader loader, Log log ) { int neededLevels = full ? -1 : 1; while( !nodeQueue.isEmpty() ) { DependencyNode node = nodeQueue.poll(); if( neededLevels...
private void builddependencytree( queue<dependencynode> nodequeue, boolean full, boolean online, session session, map<string, profile> profiles, pomfileloader loader, log log ) { int neededlevels = full ? -1 : 1; while( !nodequeue.isempty() ) { dependencynode node = nodequeue.poll(); if( neededlevels >= 0 && node.getle...
mpicque/pom-explorer
[ 1, 1, 1, 0 ]
34,120
private void setupViewPager(ViewPager viewPager) { // TODO: see if we can replace the words with icons in the future mSectionsPageAdapter.addFragment(new HomeFragment(), "Home"); mSectionsPageAdapter.addFragment(new SettingsFragment(), "Settings"); viewPager.setAdapter(mSectionsPageAdapt...
private void setupViewPager(ViewPager viewPager) { mSectionsPageAdapter.addFragment(new HomeFragment(), "Home"); mSectionsPageAdapter.addFragment(new SettingsFragment(), "Settings"); viewPager.setAdapter(mSectionsPageAdapter); }
private void setupviewpager(viewpager viewpager) { msectionspageadapter.addfragment(new homefragment(), "home"); msectionspageadapter.addfragment(new settingsfragment(), "settings"); viewpager.setadapter(msectionspageadapter); }
mo-morgan/Food-Radar
[ 1, 0, 0, 0 ]
1,432
@Override public void onDestroy() { super.onDestroy(); // Always call the superclass // probably not needed, onStop closes the socket, which should make the thread stop (?) if (recvAsyncTask != null) recvAsyncTask.cancel(true); recvAsyncTask = null; }
@Override public void onDestroy() { super.onDestroy(); if (recvAsyncTask != null) recvAsyncTask.cancel(true); recvAsyncTask = null; }
@override public void ondestroy() { super.ondestroy(); if (recvasynctask != null) recvasynctask.cancel(true); recvasynctask = null; }
phques/androidpush
[ 1, 0, 0, 0 ]
1,435
public static CashierTransaction fromJson( final Cashier cashier, final JsonCommand command) { final Integer txnType = command.integerValueOfParameterNamed("txnType"); final BigDecimal txnAmount = command.bigDecimalValueOfParameterNamed("txnAmount"); final LocalDate txnDate = command...
public static CashierTransaction fromJson( final Cashier cashier, final JsonCommand command) { final Integer txnType = command.integerValueOfParameterNamed("txnType"); final BigDecimal txnAmount = command.bigDecimalValueOfParameterNamed("txnAmount"); final LocalDate txnDate = command...
public static cashiertransaction fromjson( final cashier cashier, final jsoncommand command) { final integer txntype = command.integervalueofparameternamed("txntype"); final bigdecimal txnamount = command.bigdecimalvalueofparameternamed("txnamount"); final localdate txndate = command.localdatevalueofparameternamed("txn...
raghuvissu/GST
[ 0, 1, 0, 0 ]
1,463
public void parse(InputStream file) throws IOException, TikaException { ByteArrayOutputStream xmpraw = new ByteArrayOutputStream(); if (!scanner.parse(file, xmpraw)) { return; } Reader decoded = new InputStreamReader( new ByteArrayInputStream(xmpraw.toByteArra...
public void parse(InputStream file) throws IOException, TikaException { ByteArrayOutputStream xmpraw = new ByteArrayOutputStream(); if (!scanner.parse(file, xmpraw)) { return; } Reader decoded = new InputStreamReader( new ByteArrayInputStream(xmpraw.toByteArra...
public void parse(inputstream file) throws ioexception, tikaexception { bytearrayoutputstream xmpraw = new bytearrayoutputstream(); if (!scanner.parse(file, xmpraw)) { return; } reader decoded = new inputstreamreader( new bytearrayinputstream(xmpraw.tobytearray()), default_xmp_charset); try { xmpmetadata xmp = xmpmetad...
ontometrics/tika
[ 1, 1, 0, 0 ]
9,676
@Override public List<Movie> getMoviesRatedByUser(int userId) { // TODO: write query to retrieve all movies rated by user with id userId List<Movie> movies = new LinkedList<Movie>(); Genre genre0 = new Genre(0, "genre0"); Genre genre1 = new Genre(1, "genre1"); Genre genre2 = ...
@Override public List<Movie> getMoviesRatedByUser(int userId) { List<Movie> movies = new LinkedList<Movie>(); Genre genre0 = new Genre(0, "genre0"); Genre genre1 = new Genre(1, "genre1"); Genre genre2 = new Genre(2, "genre2"); movies.add(new Movie(0, "Titre 0", Arrays...
@override public list<movie> getmoviesratedbyuser(int userid) { list<movie> movies = new linkedlist<movie>(); genre genre0 = new genre(0, "genre0"); genre genre1 = new genre(1, "genre1"); genre genre2 = new genre(2, "genre2"); movies.add(new movie(0, "titre 0", arrays.aslist(new genre[]{genre0, genre1}))); movies.add(n...
quentinceschin123456/MovieRecommender
[ 0, 1, 0, 0 ]
1,545
public void execute(List<String> statements) throws MetaStoreException { for (String statement : statements) { execute(statement); } }
public void execute(List<String> statements) throws MetaStoreException { for (String statement : statements) { execute(statement); } }
public void execute(list<string> statements) throws metastoreexception { for (string statement : statements) { execute(statement); } }
plusplusjiajia/SSM
[ 1, 0, 0, 0 ]
9,749
@Test public void testGetFormatted () { IMutableCurrencyValue aCV = new CurrencyValue (ECurrency.EUR, MathHelper.toBigDecimal (5)); if (EJavaVersion.JDK_9.isSupportedVersion ()) assertEquals ("5,00" + CURRENCY_SPACE + "€", aCV.getCurrencyFormatted ()); else assertEquals ("€" + CURRENCY_SPACE...
@Test public void testGetFormatted () { IMutableCurrencyValue aCV = new CurrencyValue (ECurrency.EUR, MathHelper.toBigDecimal (5)); if (EJavaVersion.JDK_9.isSupportedVersion ()) assertEquals ("5,00" + CURRENCY_SPACE + "€", aCV.getCurrencyFormatted ()); else assertEquals ("€" + CURRENCY_SPACE...
@test public void testgetformatted () { imutablecurrencyvalue acv = new currencyvalue (ecurrency.eur, mathhelper.tobigdecimal (5)); if (ejavaversion.jdk_9.issupportedversion ()) assertequals ("5,00" + currency_space + "€", acv.getcurrencyformatted ()); else assertequals ("€" + currency_space + "5,00", acv.getcurrencyfo...
phax/ph-masterdata
[ 0, 0, 1, 0 ]
34,357
List<CandidateField> findCandidateFieldsForType(@NonNull Object source) { // At this point source class represents the true polymorphic type of the document Class<?> sourceClass = source.getClass(); // Lock a thread wanting to find information about the same type // So that this informat...
List<CandidateField> findCandidateFieldsForType(@NonNull Object source) { Class<?> sourceClass = source.getClass(); List<CandidateField> candidateFields = this.encryptedFieldsMap.get(sourceClass); if (candidateFields != null) { return candi...
list<candidatefield> findcandidatefieldsfortype(@nonnull object source) { class<?> sourceclass = source.getclass(); list<candidatefield> candidatefields = this.encryptedfieldsmap.get(sourceclass); if (candidatefields != null) { return candidatefields; } if (classutils.isprimitiveorwrapper(sourceclass)) return collectio...
profencer/appsmith
[ 0, 1, 0, 0 ]
1,644
public static void setFirstDateAsDCT(SieveDocument doc) { if (doc.getDocstamp() == null) { for (Timex nextTimex : doc.getTimexes()) { if (nextTimex.getType().equals(Timex.Type.DATE)) { nextTimex.setDocumentFunction(DocumentFunction.CREATION_TIME); doc.addCreationTime(nextTimex); ...
public static void setFirstDateAsDCT(SieveDocument doc) { if (doc.getDocstamp() == null) { for (Timex nextTimex : doc.getTimexes()) { if (nextTimex.getType().equals(Timex.Type.DATE)) { nextTimex.setDocumentFunction(DocumentFunction.CREATION_TIME); doc.addCreationTime(nextTimex); ...
public static void setfirstdateasdct(sievedocument doc) { if (doc.getdocstamp() == null) { for (timex nexttimex : doc.gettimexes()) { if (nexttimex.gettype().equals(timex.type.date)) { nexttimex.setdocumentfunction(documentfunction.creation_time); doc.addcreationtime(nexttimex); break; } } } }
nchambers/caevo
[ 1, 0, 0, 0 ]
26,251
public SetterType determineSetterType(String expression) { // TODO: if (expression.contains("setb")) return SetterType.BUILDER; if(expression.contains("setf")) return SetterType.FIELD; return SetterType.METHOD; }
public SetterType determineSetterType(String expression) { if(expression.contains("setf")) return SetterType.FIELD; return SetterType.METHOD; }
public settertype determinesettertype(string expression) { if(expression.contains("setf")) return settertype.field; return settertype.method; }
nndi-oss/intellij-just-sett
[ 0, 1, 0, 0 ]
1,701
public static boolean isPasswordValid(String password) { //TODO: Replace this with your own logic return password.length() > 4; }
public static boolean isPasswordValid(String password) { return password.length() > 4; }
public static boolean ispasswordvalid(string password) { return password.length() > 4; }
neiplz/Pedometer
[ 1, 0, 0, 0 ]
26,305
private void updateRule() { Recur.Builder<LocalDate> rBuilder = new Recur.Builder<>(); switch (frequencyBox.getValue()) { case DAILY: rBuilder.frequency(net.fortuna.ical4j.model.Recur.Frequency.DAILY); break; case MONTHLY: rBuilder....
private void updateRule() { Recur.Builder<LocalDate> rBuilder = new Recur.Builder<>(); switch (frequencyBox.getValue()) { case DAILY: rBuilder.frequency(net.fortuna.ical4j.model.Recur.Frequency.DAILY); break; case MONTHLY: rBuilder....
private void updaterule() { recur.builder<localdate> rbuilder = new recur.builder<>(); switch (frequencybox.getvalue()) { case daily: rbuilder.frequency(net.fortuna.ical4j.model.recur.frequency.daily); break; case monthly: rbuilder.frequency(net.fortuna.ical4j.model.recur.frequency.monthly); break; case weekly: rbuilde...
mwkroening/CalendarFX
[ 0, 1, 0, 0 ]
18,334
private boolean checkDoorIsSealed(World world, BlockPosition pos, int meta) { //TODO: door corners return ((meta & 8) == 8 || ((meta & 4) >> 2 == (meta & 1) && checkDoorSeal(world, pos.getPositionAtOffset(0, 0, 1), meta) && checkDoorSeal(world,...
private boolean checkDoorIsSealed(World world, BlockPosition pos, int meta) { return ((meta & 8) == 8 || ((meta & 4) >> 2 == (meta & 1) && checkDoorSeal(world, pos.getPositionAtOffset(0, 0, 1), meta) && checkDoorSeal(world, pos.getPositionAtOff...
private boolean checkdoorissealed(world world, blockposition pos, int meta) { return ((meta & 8) == 8 || ((meta & 4) >> 2 == (meta & 1) && checkdoorseal(world, pos.getpositionatoffset(0, 0, 1), meta) && checkdoorseal(world, pos.getpositionatoffset(0, 0, -1), meta)) || (meta & 4) >> 2 != (meta & 1) && checkdoorseal(worl...
phit/AdvancedRocketry
[ 1, 0, 0, 0 ]
18,335
private boolean checkDoorSeal(World world, BlockPosition pos, int meta) { Block otherBlock = world.getBlock(pos.x, pos.y, pos.z); int otherMeta = world.getBlockMetadata(pos.x, pos.y, pos.z); return (otherBlock == AdvancedRocketryBlocks.blockAirLock && (otherMeta & 1) == (meta & 1)) || ...
private boolean checkDoorSeal(World world, BlockPosition pos, int meta) { Block otherBlock = world.getBlock(pos.x, pos.y, pos.z); int otherMeta = world.getBlockMetadata(pos.x, pos.y, pos.z); return (otherBlock == AdvancedRocketryBlocks.blockAirLock && (otherMeta & 1) == (meta & 1)) || ...
private boolean checkdoorseal(world world, blockposition pos, int meta) { block otherblock = world.getblock(pos.x, pos.y, pos.z); int othermeta = world.getblockmetadata(pos.x, pos.y, pos.z); return (otherblock == advancedrocketryblocks.blockairlock && (othermeta & 1) == (meta & 1)) || (otherblock != advancedrocketryblo...
phit/AdvancedRocketry
[ 0, 0, 0, 0 ]
34,826
@Test(enabled=false) public void testGetFutureConfigWhenReady() throws Exception { MyPolicy policy = new MyPolicy(MutableMap.builder() .put(TestEntity.CONF_NAME, DependentConfiguration.whenDone(Callables.returning("aval"))) .build()); app.policies().add(policy); ...
@Test(enabled=false) public void testGetFutureConfigWhenReady() throws Exception { MyPolicy policy = new MyPolicy(MutableMap.builder() .put(TestEntity.CONF_NAME, DependentConfiguration.whenDone(Callables.returning("aval"))) .build()); app.policies().add(policy); ...
@test(enabled=false) public void testgetfutureconfigwhenready() throws exception { mypolicy policy = new mypolicy(mutablemap.builder() .put(testentity.conf_name, dependentconfiguration.whendone(callables.returning("aval"))) .build()); app.policies().add(policy); assertequals(policy.getconfig(testentity.conf_name), "ava...
nakomis/incubator-brooklyn
[ 1, 0, 0, 0 ]
34,827
@Test(enabled=false) public void testGetFutureConfigBlocksUntilReady() throws Exception { final CountDownLatch latch = new CountDownLatch(1); MyPolicy policy = new MyPolicy(MutableMap.builder() .put(TestEntity.CONF_NAME, DependentConfiguration.whenDone(new Callable<String>() { ...
@Test(enabled=false) public void testGetFutureConfigBlocksUntilReady() throws Exception { final CountDownLatch latch = new CountDownLatch(1); MyPolicy policy = new MyPolicy(MutableMap.builder() .put(TestEntity.CONF_NAME, DependentConfiguration.whenDone(new Callable<String>() { ...
@test(enabled=false) public void testgetfutureconfigblocksuntilready() throws exception { final countdownlatch latch = new countdownlatch(1); mypolicy policy = new mypolicy(mutablemap.builder() .put(testentity.conf_name, dependentconfiguration.whendone(new callable<string>() { public string call() { try { latch.await()...
nakomis/incubator-brooklyn
[ 1, 0, 0, 0 ]
18,502
public void testUpdate() { // Note: painting code, cannot test }
public void testUpdate() { }
public void testupdate() { }
qinFamily/freeVM
[ 0, 0, 0, 1 ]
18,503
public void testPaint() { // Note: painting code, cannot test }
public void testPaint() { }
public void testpaint() { }
qinFamily/freeVM
[ 0, 0, 0, 1 ]
18,504
public void testPaintContentBorderBottomEdge() { // Note: painting code, cannot test }
public void testPaintContentBorderBottomEdge() { }
public void testpaintcontentborderbottomedge() { }
qinFamily/freeVM
[ 0, 0, 0, 1 ]