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
17,338
@Test @Ignore("Test execution is depending on server technical characteristics.") // ToDo: Need to rewrite. public void Should_ignoreExceptionsFromTask() throws Exception { ITask taskMock1 = mock(ITask.class), taskMock2 = mock(ITask.class); doThrow(new TaskExecutionException("Who...
@Test @Ignore("Test execution is depending on server technical characteristics.") public void Should_ignoreExceptionsFromTask() throws Exception { ITask taskMock1 = mock(ITask.class), taskMock2 = mock(ITask.class); doThrow(new TaskExecutionException("Whoops!")).when(taskMock1).ex...
@test @ignore("test execution is depending on server technical characteristics.") public void should_ignoreexceptionsfromtask() throws exception { itask taskmock1 = mock(itask.class), taskmock2 = mock(itask.class); dothrow(new taskexecutionexception("whoops!")).when(taskmock1).execute(); thread.execute(taskmock1); veri...
d-protsenko/smartactors-core
[ 0, 1, 0, 0 ]
25,637
@Override double getTurnInput(HumanInput humanInput) { // TODO: Maybe sine curve is more appropriate for turning? // Pass the raw turn value through an input curve, then apply the turn sensitivity. return Util.applyInputCurve(humanInput.getGamePad().rs().getHorizontal(), .75, 3) * turnSensit...
@Override double getTurnInput(HumanInput humanInput) { return Util.applyInputCurve(humanInput.getGamePad().rs().getHorizontal(), .75, 3) * turnSensitivity; }
@override double getturninput(humaninput humaninput) { return util.applyinputcurve(humaninput.getgamepad().rs().gethorizontal(), .75, 3) * turnsensitivity; }
first-1251/exp-drive
[ 1, 0, 0, 0 ]
17,495
public ReloadableType getSuperRtype() { if (superRtype != null) { return superRtype; } if (superclazz == null) { // Not filled in yet? Why is this code different to the interface case? String name = this.getSlashedSupertypeName(); if (name == null) { return null; } else { ReloadableType ...
public ReloadableType getSuperRtype() { if (superRtype != null) { return superRtype; } if (superclazz == null) { String name = this.getSlashedSupertypeName(); if (name == null) { return null; } else { ReloadableType rtype = typeRegistry.getReloadableSuperType(name); superRtype = rtyp...
public reloadabletype getsuperrtype() { if (superrtype != null) { return superrtype; } if (superclazz == null) { string name = this.getslashedsupertypename(); if (name == null) { return null; } else { reloadabletype rtype = typeregistry.getreloadablesupertype(name); superrtype = rtype; return superrtype; } } else { cla...
crudolf/spring-loaded
[ 1, 0, 0, 0 ]
33,952
public boolean waitForExpectedReplicaMap(final long timeoutMs, YBTable table, Map<String, List<List<Integer>>> replicaMapExpected) { Condition replicaMapCondition = new ReplicaMapCondition(table, replicaMapExpected, timeoutMs); return waitForCondition(replicaMapCondit...
public boolean waitForExpectedReplicaMap(final long timeoutMs, YBTable table, Map<String, List<List<Integer>>> replicaMapExpected) { Condition replicaMapCondition = new ReplicaMapCondition(table, replicaMapExpected, timeoutMs); return waitForCondition(replicaMapCondit...
public boolean waitforexpectedreplicamap(final long timeoutms, ybtable table, map<string, list<list<integer>>> replicamapexpected) { condition replicamapcondition = new replicamapcondition(table, replicamapexpected, timeoutms); return waitforcondition(replicamapcondition, timeoutms); }
def-/yugabyte-db
[ 1, 0, 0, 0 ]
25,790
@Test public void testBlowingUpWithDuplicateLoaders() { KeyValuePairLoader kvpl = new KeyValuePairLoader(); kvpl.setKeyValuePairs(cmdLineArgsWFullClassName); try { AndHowConfiguration config = AndHowTestConfig.instance() .setLoaders(kvpl, kvpl) .addOverrideGroups(configPtGroups); AndHow.setConfig(c...
@Test public void testBlowingUpWithDuplicateLoaders() { KeyValuePairLoader kvpl = new KeyValuePairLoader(); kvpl.setKeyValuePairs(cmdLineArgsWFullClassName); try { AndHowConfiguration config = AndHowTestConfig.instance() .setLoaders(kvpl, kvpl) .addOverrideGroups(configPtGroups); AndHow.setConfig(c...
@test public void testblowingupwithduplicateloaders() { keyvaluepairloader kvpl = new keyvaluepairloader(); kvpl.setkeyvaluepairs(cmdlineargswfullclassname); try { andhowconfiguration config = andhowtestconfig.instance() .setloaders(kvpl, kvpl) .addoverridegroups(configptgroups); andhow.setconfig(config); andhow.instan...
emafazillah/andhow
[ 1, 0, 0, 0 ]
17,643
public void bootstrapMessagingSystem(){ try{ messagingSystem = new MessagingSystem(ACTIVEMQ_BROKER_URI, ACTIVEMQ_BROKER_PORT); messagingSystem.createConnection(); messagingSystem.createSession(); //TODO: handle topics, not just queues messagingSystem.createDestination(ACTIVEMQ_DESTINAT...
public void bootstrapMessagingSystem(){ try{ messagingSystem = new MessagingSystem(ACTIVEMQ_BROKER_URI, ACTIVEMQ_BROKER_PORT); messagingSystem.createConnection(); messagingSystem.createSession(); messagingSystem.createDestination(ACTIVEMQ_DESTINATION_NAME); messagingSystem.create...
public void bootstrapmessagingsystem(){ try{ messagingsystem = new messagingsystem(activemq_broker_uri, activemq_broker_port); messagingsystem.createconnection(); messagingsystem.createsession(); messagingsystem.createdestination(activemq_destination_name); messagingsystem.createproducer(); system.out.println("solrtoac...
dbraga/solr2activemq
[ 0, 1, 0, 0 ]
9,486
public boolean shouldAcquire(String name) { // the org.robolectric.res package lives in the base classloader, but not its tests; yuck. int lastDot = name.lastIndexOf('.'); String pkgName = name.substring(0, lastDot == -1 ? 0 : lastDot); if (pkgName.equals("org.robolectric.res")) { return name.cont...
public boolean shouldAcquire(String name) { int lastDot = name.lastIndexOf('.'); String pkgName = name.substring(0, lastDot == -1 ? 0 : lastDot); if (pkgName.equals("org.robolectric.res")) { return name.contains("Test"); } if (name.matches("com\\.android\\.internal\\.R(\\$.*)?")) return tr...
public boolean shouldacquire(string name) { int lastdot = name.lastindexof('.'); string pkgname = name.substring(0, lastdot == -1 ? 0 : lastdot); if (pkgname.equals("org.robolectric.res")) { return name.contains("test"); } if (name.matches("com\\.android\\.internal\\.r(\\$.*)?")) return true; if (name.equals("android.r...
ecgreb/robolectric
[ 1, 0, 0, 0 ]
17,714
public void writeBytes(int stream, byte[] b, int offset, int len) { // TODO: optimize final int end = offset + len; for(int i=offset;i<end;i++) writeByte(stream, b[i]); }
public void writeBytes(int stream, byte[] b, int offset, int len) { final int end = offset + len; for(int i=offset;i<end;i++) writeByte(stream, b[i]); }
public void writebytes(int stream, byte[] b, int offset, int len) { final int end = offset + len; for(int i=offset;i<end;i++) writebyte(stream, b[i]); }
dannycho7/RTP_Latest
[ 1, 0, 0, 0 ]
9,527
public static VirtualFile createDir(Project project, final VirtualFile parent, final String name) { final Ref<VirtualFile> result = new Ref<VirtualFile>(); new WriteCommandAction.Simple(project) { @Override protected void run() throws Throwable { try { VirtualFile dir = parent.find...
public static VirtualFile createDir(Project project, final VirtualFile parent, final String name) { final Ref<VirtualFile> result = new Ref<VirtualFile>(); new WriteCommandAction.Simple(project) { @Override protected void run() throws Throwable { try { VirtualFile dir = parent.find...
public static virtualfile createdir(project project, final virtualfile parent, final string name) { final ref<virtualfile> result = new ref<virtualfile>(); new writecommandaction.simple(project) { @override protected void run() throws throwable { try { virtualfile dir = parent.findchild(name); if (dir == null) { dir = ...
consulo/consulo-git
[ 0, 1, 0, 0 ]
9,528
@CEntryPoint(name = "execute") public static int execute(IsolateThread thread, int statement) { try { boolean hasResult = statements.get(statement).execute(); if (hasResult) { throw new SQLException("unexpected results on statement execute"); } return statements.get(statement).getUpdateCount(); } c...
@CEntryPoint(name = "execute") public static int execute(IsolateThread thread, int statement) { try { boolean hasResult = statements.get(statement).execute(); if (hasResult) { throw new SQLException("unexpected results on statement execute"); } return statements.get(statement).getUpdateCount(); } c...
@centrypoint(name = "execute") public static int execute(isolatethread thread, int statement) { try { boolean hasresult = statements.get(statement).execute(); if (hasresult) { throw new sqlexception("unexpected results on statement execute"); } return statements.get(statement).getupdatecount(); } catch (throwable e) { ...
csmu-cenr/gdbc
[ 1, 0, 0, 0 ]
17,766
@Test @RunAsClient public void simpleSession() throws InterruptedException, ExecutionException { final String uuid = uuid(); try (ClosableResponse res = post(target("000", uuid, XHR), json(null))) { // New line is a frame delimiter specific for xhr-polling" assertEquals(Status.OK, res.getStatusInfo()); a...
@Test @RunAsClient public void simpleSession() throws InterruptedException, ExecutionException { final String uuid = uuid(); try (ClosableResponse res = post(target("000", uuid, XHR), json(null))) { assertEquals(Status.OK, res.getStatusInfo()); assertEquals("o\n", res.readEntity(String.class)); } ...
@test @runasclient public void simplesession() throws interruptedexception, executionexception { final string uuid = uuid(); try (closableresponse res = post(target("000", uuid, xhr), json(null))) { assertequals(status.ok, res.getstatusinfo()); assertequals("o\n", res.readentity(string.class)); } try (closableresponse ...
dansiviter/cito-sockjs
[ 1, 0, 0, 1 ]
9,593
@Override public boolean isConcurrentAccessSupported() { // Maybe we could support concurrent some time in the future return false; }
@Override public boolean isConcurrentAccessSupported() { return false; }
@override public boolean isconcurrentaccesssupported() { return false; }
elharo/plexus-archiver
[ 0, 1, 0, 0 ]
9,601
public void writeContent(HttpCarbonMessage httpOutboundRequest) { if (handlerExecutor != null) { handlerExecutor.executeAtTargetRequestReceiving(httpOutboundRequest); } BackPressureHandler backpressureHandler = Util.getBackPressureHandler(targetHandler.getContext()); Util.set...
public void writeContent(HttpCarbonMessage httpOutboundRequest) { if (handlerExecutor != null) { handlerExecutor.executeAtTargetRequestReceiving(httpOutboundRequest); } BackPressureHandler backpressureHandler = Util.getBackPressureHandler(targetHandler.getContext()); Util.set...
public void writecontent(httpcarbonmessage httpoutboundrequest) { if (handlerexecutor != null) { handlerexecutor.executeattargetrequestreceiving(httpoutboundrequest); } backpressurehandler backpressurehandler = util.getbackpressurehandler(targethandler.getcontext()); util.setbackpressurelistener(httpoutboundrequest, ba...
gabilang/module-ballerina-http
[ 0, 0, 1, 0 ]
1,413
@GetMapping("/{viewId}/{rowId}/field/{fieldName}/zoomInto") public JSONZoomInto getRowFieldZoomInto( @PathVariable("windowId") final String windowIdStr, @PathVariable(PARAM_ViewId) final String viewIdStr, @PathVariable("rowId") final String rowId, @PathVariable("fieldName") final String fieldName) { // ...
@GetMapping("/{viewId}/{rowId}/field/{fieldName}/zoomInto") public JSONZoomInto getRowFieldZoomInto( @PathVariable("windowId") final String windowIdStr, @PathVariable(PARAM_ViewId) final String viewIdStr, @PathVariable("rowId") final String rowId, @PathVariable("fieldName") final String fieldName) { V...
@getmapping("/{viewid}/{rowid}/field/{fieldname}/zoominto") public jsonzoominto getrowfieldzoominto( @pathvariable("windowid") final string windowidstr, @pathvariable(param_viewid) final string viewidstr, @pathvariable("rowid") final string rowid, @pathvariable("fieldname") final string fieldname) { viewid.ofviewidstri...
focadiz/metasfresh
[ 1, 0, 0, 0 ]
26,006
public void bad() throws Throwable { String password = (new CWE319_Cleartext_Tx_Sensitive_Info__URLConnection_passwordAuth_61b()).badSource(); if (password != null) { /* POTENTIAL FLAW: Use password directly in PasswordAuthentication() */ PasswordAuthentication creden...
public void bad() throws Throwable { String password = (new CWE319_Cleartext_Tx_Sensitive_Info__URLConnection_passwordAuth_61b()).badSource(); if (password != null) { PasswordAuthentication credentials = new PasswordAuthentication("user", password.toCharArray()); ...
public void bad() throws throwable { string password = (new cwe319_cleartext_tx_sensitive_info__urlconnection_passwordauth_61b()).badsource(); if (password != null) { passwordauthentication credentials = new passwordauthentication("user", password.tochararray()); io.writeline(credentials.tostring()); } }
diktat-static-analysis/juliet-benchmark-java
[ 0, 0, 1, 0 ]
26,007
private void goodG2B() throws Throwable { String password = (new CWE319_Cleartext_Tx_Sensitive_Info__URLConnection_passwordAuth_61b()).goodG2BSource(); if (password != null) { /* POTENTIAL FLAW: Use password directly in PasswordAuthentication() */ PasswordAuthenticati...
private void goodG2B() throws Throwable { String password = (new CWE319_Cleartext_Tx_Sensitive_Info__URLConnection_passwordAuth_61b()).goodG2BSource(); if (password != null) { PasswordAuthentication credentials = new PasswordAuthentication("user", password.toCharArray...
private void goodg2b() throws throwable { string password = (new cwe319_cleartext_tx_sensitive_info__urlconnection_passwordauth_61b()).goodg2bsource(); if (password != null) { passwordauthentication credentials = new passwordauthentication("user", password.tochararray()); io.writeline(credentials.tostring()); } }
diktat-static-analysis/juliet-benchmark-java
[ 0, 0, 1, 0 ]
34,231
@SuppressWarnings("deprecation") private void send(Iterator<TableRef> tableRefIterator) throws SQLException { int i = 0; long[] serverTimeStamps = null; boolean sendAll = false; if (tableRefIterator == null) { serverTimeStamps = validateAll(); tableRefIterator...
@SuppressWarnings("deprecation") private void send(Iterator<TableRef> tableRefIterator) throws SQLException { int i = 0; long[] serverTimeStamps = null; boolean sendAll = false; if (tableRefIterator == null) { serverTimeStamps = validateAll(); tableRefIterator...
@suppresswarnings("deprecation") private void send(iterator<tableref> tablerefiterator) throws sqlexception { int i = 0; long[] servertimestamps = null; boolean sendall = false; if (tablerefiterator == null) { servertimestamps = validateall(); tablerefiterator = mutations.keyset().iterator(); sendall = true; } map<immu...
cruisehz/phoenix
[ 1, 0, 0, 0 ]
1,597
@Transactional() @Override public EmailResponse resendConfirmationthroughEmail( String applicationId, String securityToken, String emailId, String appName) { logger.info("UserManagementProfileServiceImpl - resendConfirmationthroughEmail() - Starts"); AppEntity appPropertiesDetails = null; String c...
@Transactional() @Override public EmailResponse resendConfirmationthroughEmail( String applicationId, String securityToken, String emailId, String appName) { logger.info("UserManagementProfileServiceImpl - resendConfirmationthroughEmail() - Starts"); AppEntity appPropertiesDetails = null; String c...
@transactional() @override public emailresponse resendconfirmationthroughemail( string applicationid, string securitytoken, string emailid, string appname) { logger.info("usermanagementprofileserviceimpl - resendconfirmationthroughemail() - starts"); appentity apppropertiesdetails = null; string content = ""; string su...
deepsinghchouhan/fdamystudies
[ 1, 0, 0, 0 ]
18,031
private String replaceParam(String message, Object... parameters) { int startSize = 0; int parametersIndex = 0; int index; String tmpMessage = message; while ((index = message.indexOf("{}", startSize)) != -1) { if (parametersIndex >= parameters.length) { ...
private String replaceParam(String message, Object... parameters) { int startSize = 0; int parametersIndex = 0; int index; String tmpMessage = message; while ((index = message.indexOf("{}", startSize)) != -1) { if (parametersIndex >= parameters.length) { ...
private string replaceparam(string message, object... parameters) { int startsize = 0; int parametersindex = 0; int index; string tmpmessage = message; while ((index = message.indexof("{}", startsize)) != -1) { if (parametersindex >= parameters.length) { break; } tmpmessage = tmpmessage.replacefirst("\\{\\}", matcher.q...
erda-project/erda-java-extensions
[ 0, 0, 1, 0 ]
26,234
@GET @PermitAll @Path("/server/info") @Produces(MediaType.APPLICATION_JSON) public Response getServerInformation() throws ApiException { Map<String, Object> returnMap = new HashMap<String, Object>(); List<Object> configurations = new ArrayList<Object>(); AppConstants appConstants = AppConstants.getInstance();...
@GET @PermitAll @Path("/server/info") @Produces(MediaType.APPLICATION_JSON) public Response getServerInformation() throws ApiException { Map<String, Object> returnMap = new HashMap<String, Object>(); List<Object> configurations = new ArrayList<Object>(); AppConstants appConstants = AppConstants.getInstance();...
@get @permitall @path("/server/info") @produces(mediatype.application_json) public response getserverinformation() throws apiexception { map<string, object> returnmap = new hashmap<string, object>(); list<object> configurations = new arraylist<object>(); appconstants appconstants = appconstants.getinstance(); for (conf...
francisgw/iaf
[ 1, 0, 0, 0 ]
18,158
public static int getSqlStatementType(String sql) { sql = sql.trim(); if (sql.length() < 3) { return STATEMENT_OTHER; } String prefixSql = sql.substring(0, 3).toUpperCase(Locale.ROOT); if (prefixSql.equals("SEL")) { return STATEMENT_SELECT; } else ...
public static int getSqlStatementType(String sql) { sql = sql.trim(); if (sql.length() < 3) { return STATEMENT_OTHER; } String prefixSql = sql.substring(0, 3).toUpperCase(Locale.ROOT); if (prefixSql.equals("SEL")) { return STATEMENT_SELECT; } else ...
public static int getsqlstatementtype(string sql) { sql = sql.trim(); if (sql.length() < 3) { return statement_other; } string prefixsql = sql.substring(0, 3).touppercase(locale.root); if (prefixsql.equals("sel")) { return statement_select; } else if (prefixsql.equals("ins") || prefixsql.equals("upd") || prefixsql.equa...
finki001/couchbase-lite-java-core
[ 0, 0, 0, 0 ]
34,557
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ComplexBean that = (ComplexBean) o; // Probably incorrect - comparing Object[] arrays with Arrays.equals if (!Arrays.equa...
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ComplexBean that = (ComplexBean) o; if (!Arrays.equals(strs, that.strs)) return false; if (!A...
@override public boolean equals(object o) { if (this == o) return true; if (o == null || getclass() != o.getclass()) return false; complexbean that = (complexbean) o; if (!arrays.equals(strs, that.strs)) return false; if (!arrays.equals(jobs, that.jobs)) return false; if (list != null ? !list.equals(that.list) : that.l...
dbl-x/sofa-rpc
[ 0, 0, 1, 0 ]
10,052
@Override public void selectionDone(SelectionEvent evt) { if (!useUnixTextSelection) return; Object o = evt.getSelection(); if (!(o instanceof CharacterIterator)) return; CharacterIterator iter = (CharacterIterator) o; // first see if we can access the clipboard if (!PermissionChecker.getIns...
@Override public void selectionDone(SelectionEvent evt) { if (!useUnixTextSelection) return; Object o = evt.getSelection(); if (!(o instanceof CharacterIterator)) return; CharacterIterator iter = (CharacterIterator) o; if (!PermissionChecker.getInstance().checkPermission(new AWTPermission("a...
@override public void selectiondone(selectionevent evt) { if (!useunixtextselection) return; object o = evt.getselection(); if (!(o instanceof characteriterator)) return; characteriterator iter = (characteriterator) o; if (!permissionchecker.getinstance().checkpermission(new awtpermission("accessclipboard"))) { return;...
css4j/echosvg
[ 1, 0, 0, 0 ]
10,102
protected boolean dispatchLocal(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws ServletException, IOException { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("Local dispatch /" + translateRequestPath(httpRequest)); } if (!serveStatic) { return false; } // String contextR...
protected boolean dispatchLocal(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws ServletException, IOException { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("Local dispatch /" + translateRequestPath(httpRequest)); } if (!serveStatic) { return false; } String translated...
protected boolean dispatchlocal(httpservletrequest httprequest, httpservletresponse httpresponse) throws servletexception, ioexception { if (logger.isloggable(level.fine)) { logger.fine("local dispatch /" + translaterequestpath(httprequest)); } if (!servestatic) { return false; } string translatednoquery = "/" + transl...
csrster/openwayback-csrdev
[ 1, 0, 0, 0 ]
10,103
public boolean handleRequest(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws ServletException, IOException { WaybackRequest wbRequest = null; boolean handled = false; try { PerfStats.clearAll(); if (this.isEnablePerfStatsHeader() && (perfStatsHeader != null)) { PerfStats.t...
public boolean handleRequest(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws ServletException, IOException { WaybackRequest wbRequest = null; boolean handled = false; try { PerfStats.clearAll(); if (this.isEnablePerfStatsHeader() && (perfStatsHeader != null)) { PerfStats.t...
public boolean handlerequest(httpservletrequest httprequest, httpservletresponse httpresponse) throws servletexception, ioexception { waybackrequest wbrequest = null; boolean handled = false; try { perfstats.clearall(); if (this.isenableperfstatsheader() && (perfstatsheader != null)) { perfstats.timestart(perfstat.tota...
csrster/openwayback-csrdev
[ 1, 0, 0, 0 ]
1,957
private void actionDelete(AjaxRequestTarget aTarget) throws IOException, UIMAException, ClassNotFoundException { BratAnnotatorModel bratAnnotatorModel = getModelObject(); JCas jCas = getCas(bratAnnotatorModel); AnnotationFS fs = selectByAddr(jCas, selectedAnnotationId); TypeA...
private void actionDelete(AjaxRequestTarget aTarget) throws IOException, UIMAException, ClassNotFoundException { BratAnnotatorModel bratAnnotatorModel = getModelObject(); JCas jCas = getCas(bratAnnotatorModel); AnnotationFS fs = selectByAddr(jCas, selectedAnnotationId); TypeA...
private void actiondelete(ajaxrequesttarget atarget) throws ioexception, uimaexception, classnotfoundexception { bratannotatormodel bratannotatormodel = getmodelobject(); jcas jcas = getcas(bratannotatormodel); annotationfs fs = selectbyaddr(jcas, selectedannotationid); typeadapter adapter = getadapter(selectedannotati...
debovis/webanno
[ 0, 0, 0, 0 ]
34,792
private List<Pair<Object, Double>> getMostInfluentialFeatures(Label clazz, FeatureVector featureVector) { assert this.model instanceof NaiveBayesModel; NaiveBayesModel myModel = (NaiveBayesModel) this.model; List<Pair<Object, Double>> mostInfluentialFeatures = new ArrayList<>(); for (Obj...
private List<Pair<Object, Double>> getMostInfluentialFeatures(Label clazz, FeatureVector featureVector) { assert this.model instanceof NaiveBayesModel; NaiveBayesModel myModel = (NaiveBayesModel) this.model; List<Pair<Object, Double>> mostInfluentialFeatures = new ArrayList<>(); for (Obj...
private list<pair<object, double>> getmostinfluentialfeatures(label clazz, featurevector featurevector) { assert this.model instanceof naivebayesmodel; naivebayesmodel mymodel = (naivebayesmodel) this.model; list<pair<object, double>> mostinfluentialfeatures = new arraylist<>(); for (object feature : featurevector) { d...
floschne/NLP_ThumbnailAnnotator
[ 1, 0, 0, 0 ]
34,835
@Override public boolean allowsNewVlanCreation() throws CloudException, InternalException { // TODO: change me when implemented return false; }
@Override public boolean allowsNewVlanCreation() throws CloudException, InternalException { return false; }
@override public boolean allowsnewvlancreation() throws cloudexception, internalexception { return false; }
erik-johnson/dasein-cloud-vcloud
[ 0, 1, 0, 0 ]
34,840
@DataProvider(name = "TrimCigarData") public Object[][] makeTrimCigarData() { List<Object[]> tests = new ArrayList<>(); for ( final CigarOperator op : Arrays.asList(CigarOperator.D, CigarOperator.EQ, CigarOperator.X, CigarOperator.M) ) { for ( int myLength = 1; myLength < 6; myLength++ )...
@DataProvider(name = "TrimCigarData") public Object[][] makeTrimCigarData() { List<Object[]> tests = new ArrayList<>(); for ( final CigarOperator op : Arrays.asList(CigarOperator.D, CigarOperator.EQ, CigarOperator.X, CigarOperator.M) ) { for ( int myLength = 1; myLength < 6; myLength++ )...
@dataprovider(name = "trimcigardata") public object[][] maketrimcigardata() { list<object[]> tests = new arraylist<>(); for ( final cigaroperator op : arrays.aslist(cigaroperator.d, cigaroperator.eq, cigaroperator.x, cigaroperator.m) ) { for ( int mylength = 1; mylength < 6; mylength++ ) { for ( int start = 0; start < ...
ga4gh/gatk
[ 0, 0, 1, 0 ]
18,558
@Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { //TODO set last message time final ChatDescription description = descriptionList.get(position); User mainUser = ((GlobalVars)(inboxFragment.getActivity()).getApplication()).getUser(); final User ot...
@Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { final ChatDescription description = descriptionList.get(position); User mainUser = ((GlobalVars)(inboxFragment.getActivity()).getApplication()).getUser(); final User otherUser; if (Objects....
@override public void onbindviewholder(recyclerview.viewholder holder, int position) { final chatdescription description = descriptionlist.get(position); user mainuser = ((globalvars)(inboxfragment.getactivity()).getapplication()).getuser(); final user otheruser; if (objects.equals(mainuser.getuid(), description.getuse...
dgisser/Ripple
[ 0, 1, 0, 0 ]
18,576
private void computeTimes (TransportNetwork network, ProfileRequest req, TIntIntMap accessTimes, TIntIntMap egressTimes) { if (!accessTimes.containsKey(this.boardStops[0])) throw new IllegalArgumentException("Access times do not contain first stop of path!"); if (!egressTimes.containsKey(this.alightStop...
private void computeTimes (TransportNetwork network, ProfileRequest req, TIntIntMap accessTimes, TIntIntMap egressTimes) { if (!accessTimes.containsKey(this.boardStops[0])) throw new IllegalArgumentException("Access times do not contain first stop of path!"); if (!egressTimes.containsKey(this.alightStop...
private void computetimes (transportnetwork network, profilerequest req, tintintmap accesstimes, tintintmap egresstimes) { if (!accesstimes.containskey(this.boardstops[0])) throw new illegalargumentexception("access times do not contain first stop of path!"); if (!egresstimes.containskey(this.alightstops[this.length - ...
enoxos/r5
[ 1, 0, 1, 0 ]
18,691
protected FocusListener createFocusListener() { return new BasicComboBoxUI.FocusHandler() { public void focusLost(final FocusEvent e) { hasFocus = false; if (!e.isTemporary()) { setPopupVisible(comboBox, false); } co...
protected FocusListener createFocusListener() { return new BasicComboBoxUI.FocusHandler() { public void focusLost(final FocusEvent e) { hasFocus = false; if (!e.isTemporary()) { setPopupVisible(comboBox, false); } co...
protected focuslistener createfocuslistener() { return new basiccomboboxui.focushandler() { public void focuslost(final focusevent e) { hasfocus = false; if (!e.istemporary()) { setpopupvisible(combobox, false); } combobox.repaint(); final accessiblecontext ac = ((accessible)combobox).getaccessiblecontext(); if (ac != ...
dbac/jdk8
[ 1, 0, 0, 0 ]
10,532
public WebSocket<JsonNode> socket() { final Http.Session session = session(); final User currentUser = Application.getLocalUser(session()); return new WebSocket<JsonNode>() { @Override public void onReady(In<JsonNode> in, Out<JsonNode> out) { try { ...
public WebSocket<JsonNode> socket() { final Http.Session session = session(); final User currentUser = Application.getLocalUser(session()); return new WebSocket<JsonNode>() { @Override public void onReady(In<JsonNode> in, Out<JsonNode> out) { try { ...
public websocket<jsonnode> socket() { final http.session session = session(); final user currentuser = application.getlocaluser(session()); return new websocket<jsonnode>() { @override public void onready(in<jsonnode> in, out<jsonnode> out) { try { user u = application.getlocaluser(session); boolean alreadyonline = onl...
daniel-sandro/WTEC1516
[ 0, 1, 0, 0 ]
10,559
private void postNotification(Context context, AnswerSet answerSet, String message) { int surveyId = answerSet.getDbSurveyId(); NotificationManager notificationManager = (NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE); Intent intent = new Intent(context, SurveyActivit...
private void postNotification(Context context, AnswerSet answerSet, String message) { int surveyId = answerSet.getDbSurveyId(); NotificationManager notificationManager = (NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE); Intent intent = new Intent(context, SurveyActivit...
private void postnotification(context context, answerset answerset, string message) { int surveyid = answerset.getdbsurveyid(); notificationmanager notificationmanager = (notificationmanager)context.getsystemservice(context.notification_service); intent intent = new intent(context, surveyactivity.class); intent.putextr...
eorygen/sema2_android
[ 1, 0, 0, 0 ]
18,865
private static Attributes<Cell> attributesFrom(Node node, URI uri, ComplexCellModel cellModel, Predicate<String> attributeFilter) { if (!node.hasAttributes()) { // ** base case ** return new OrderedMap<Cell>(0); } if (cellModel.isSimple()) { log.error("CellModel '{}' does not allow attributes but the elem does"...
private static Attributes<Cell> attributesFrom(Node node, URI uri, ComplexCellModel cellModel, Predicate<String> attributeFilter) { if (!node.hasAttributes()) { return new OrderedMap<Cell>(0); } if (cellModel.isSimple()) { log.error("CellModel '{}' does not allow attributes but the elem does", cellModel.getName...
private static attributes<cell> attributesfrom(node node, uri uri, complexcellmodel cellmodel, predicate<string> attributefilter) { if (!node.hasattributes()) { return new orderedmap<cell>(0); } if (cellmodel.issimple()) { log.error("cellmodel '{}' does not allow attributes but the elem does", cellmodel.getname()); thr...
danigiri/particle
[ 1, 0, 0, 0 ]
2,495
private List<AbstractCriterionWidget> createCriteriaWidgets(final ICentreDomainTreeManagerAndEnhancer centre, final Class<? extends AbstractEntity<?>> root) { final Class<?> managedType = centre.getEnhancer().getManagedType(root); final List<AbstractCriterionWidget> criteriaWidgets = new ArrayList<>(); ...
private List<AbstractCriterionWidget> createCriteriaWidgets(final ICentreDomainTreeManagerAndEnhancer centre, final Class<? extends AbstractEntity<?>> root) { final Class<?> managedType = centre.getEnhancer().getManagedType(root); final List<AbstractCriterionWidget> criteriaWidgets = new ArrayList<>(); ...
private list<abstractcriterionwidget> createcriteriawidgets(final icentredomaintreemanagerandenhancer centre, final class<? extends abstractentity<?>> root) { final class<?> managedtype = centre.getenhancer().getmanagedtype(root); final list<abstractcriterionwidget> criteriawidgets = new arraylist<>(); for (final strin...
fieldenms/
[ 1, 0, 0, 0 ]
2,538
private void initializeFop2x(XProcRuntime runtime, XStep step, Properties options) { Object fopFactoryBuilder = null; Constructor factBuilderConstructor = null; try { factBuilderConstructor = klass.getConstructor(URI.class); } catch (NoSuchMethodException nsme) { ...
private void initializeFop2x(XProcRuntime runtime, XStep step, Properties options) { Object fopFactoryBuilder = null; Constructor factBuilderConstructor = null; try { factBuilderConstructor = klass.getConstructor(URI.class); } catch (NoSuchMethodException nsme) { ...
private void initializefop2x(xprocruntime runtime, xstep step, properties options) { object fopfactorybuilder = null; constructor factbuilderconstructor = null; try { factbuilderconstructor = klass.getconstructor(uri.class); } catch (nosuchmethodexception nsme) { } resolver = runtime.getresolver(); uri baseuri = step.g...
fsasaki/xmlcalabash1-print
[ 0, 0, 1, 0 ]
2,539
public void format(XdmNode doc, OutputStream out, String contentType) { String outputFormat = null; if (contentType == null || "application/pdf".equalsIgnoreCase(contentType)) { outputFormat = "application/pdf"; // "PDF"; } else if ("application/PostScript".equalsIgnoreCase(contentTy...
public void format(XdmNode doc, OutputStream out, String contentType) { String outputFormat = null; if (contentType == null || "application/pdf".equalsIgnoreCase(contentType)) { outputFormat = "application/pdf"; } else if ("application/PostScript".equalsIgnoreCase(contentType)) { ...
public void format(xdmnode doc, outputstream out, string contenttype) { string outputformat = null; if (contenttype == null || "application/pdf".equalsignorecase(contenttype)) { outputformat = "application/pdf"; } else if ("application/postscript".equalsignorecase(contenttype)) { outputformat = "application/postscript"...
fsasaki/xmlcalabash1-print
[ 0, 0, 1, 0 ]
10,831
@Override @SuppressLint("SetJavaScriptEnabled") protected void onCreate(@Nullable Bundle savedInstanceState) { Dank.dependencyInjector().inject(this); super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); ButterKnife.bind(this); findAndSetupToolbar(); toolbar.setBackgr...
@Override @SuppressLint("SetJavaScriptEnabled") protected void onCreate(@Nullable Bundle savedInstanceState) { Dank.dependencyInjector().inject(this); super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); ButterKnife.bind(this); findAndSetupToolbar(); toolbar.setBackgr...
@override @suppresslint("setjavascriptenabled") protected void oncreate(@nullable bundle savedinstancestate) { dank.dependencyinjector().inject(this); super.oncreate(savedinstancestate); setcontentview(r.layout.activity_login); butterknife.bind(this); findandsetuptoolbar(); toolbar.setbackground(null); toolbar.settitle...
federa7675/Dawn
[ 0, 0, 1, 0 ]
2,698
private static void setChipVersion() { //TODO: Get chip version directly if possible. String model = IrisHal.getModel(); if (Model.isV2(model)) { hardware.set("ZM5304AU-CME3R"); } else if (Model.isV3(model)) { hardware.set("ZM5101"); } else { hardware...
private static void setChipVersion() { String model = IrisHal.getModel(); if (Model.isV2(model)) { hardware.set("ZM5304AU-CME3R"); } else if (Model.isV3(model)) { hardware.set("ZM5101"); } else { hardware.set("unknown"); } }
private static void setchipversion() { string model = irishal.getmodel(); if (model.isv2(model)) { hardware.set("zm5304au-cme3r"); } else if (model.isv3(model)) { hardware.set("zm5101"); } else { hardware.set("unknown"); } }
eanderso/arcusplatform
[ 1, 0, 0, 0 ]
19,228
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if ((keyCode == KeyEvent.KEYCODE_MENU) && (null == getSupportActionBar())) { // This is to fix a bug in the v7 support lib. If there is no options menu and you hit MENU, it will crash with a // NPE @ android.support.v7...
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if ((keyCode == KeyEvent.KEYCODE_MENU) && (null == getSupportActionBar())) { return true; } return super.onKeyDown(keyCode, event); }
@override public boolean onkeydown(int keycode, keyevent event) { if ((keycode == keyevent.keycode_menu) && (null == getsupportactionbar())) { return true; } return super.onkeydown(keycode, event); }
developers16/GithubsSample
[ 1, 0, 0, 0 ]
19,294
public FFprobe setShowProgramVersion(final boolean showProgramVersion) { this.showProgramVersion = showProgramVersion; return this; }
public FFprobe setShowProgramVersion(final boolean showProgramVersion) { this.showProgramVersion = showProgramVersion; return this; }
public ffprobe setshowprogramversion(final boolean showprogramversion) { this.showprogramversion = showprogramversion; return this; }
entropycoder/Jaffree
[ 0, 1, 0, 0 ]
19,297
public FFprobe setShowPixelFormats(final boolean showPixelFormats) { this.showPixelFormats = showPixelFormats; return this; }
public FFprobe setShowPixelFormats(final boolean showPixelFormats) { this.showPixelFormats = showPixelFormats; return this; }
public ffprobe setshowpixelformats(final boolean showpixelformats) { this.showpixelformats = showpixelformats; return this; }
entropycoder/Jaffree
[ 0, 1, 0, 0 ]
19,398
private void label_iconRealizarPedidoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_label_iconRealizarPedidoMouseClicked // TODO add your handling code here: //instanciar a tela cad pessoa apenas uma vez tela_realizarPedido= new Realizar_Pedido(this.conta); tela_realizarP...
private void label_iconRealizarPedidoMouseClicked(java.awt.event.MouseEvent evt) { tela_realizarPedido= new Realizar_Pedido(this.conta); tela_realizarPedido.setVisible(true); tela_realizarPedido.setLocationRelativeTo(null); }
private void label_iconrealizarpedidomouseclicked(java.awt.event.mouseevent evt) { tela_realizarpedido= new realizar_pedido(this.conta); tela_realizarpedido.setvisible(true); tela_realizarpedido.setlocationrelativeto(null); }
fsilva-c/Screens_LP2
[ 0, 1, 0, 0 ]
19,831
public Expression getObject() { return fObject; }
public Expression getObject() { return fObject; }
public expression getobject() { return fobject; }
duarterafael/Conformitate
[ 0, 1, 0, 0 ]
19,832
public MAttribute getAttribute() { return fAttribute; }
public MAttribute getAttribute() { return fAttribute; }
public mattribute getattribute() { return fattribute; }
duarterafael/Conformitate
[ 0, 1, 0, 0 ]
19,833
public MRValue getRValue() { return fRValue; }
public MRValue getRValue() { return fRValue; }
public mrvalue getrvalue() { return frvalue; }
duarterafael/Conformitate
[ 0, 1, 0, 0 ]
19,851
public String getTagitLayoutPath() { String res = "content/none.xhtml"; //if explorer is in createMode switch( explorerAction.getMode() ) { case CREATE_LOCATION: res = "content_new/location_new.xhtml"; if( newLocationAction.getMode() == -1 ) { newLocationAction.begin(); } break; case CREATE_RO...
public String getTagitLayoutPath() { String res = "content/none.xhtml"; switch( explorerAction.getMode() ) { case CREATE_LOCATION: res = "content_new/location_new.xhtml"; if( newLocationAction.getMode() == -1 ) { newLocationAction.begin(); } break; case CREATE_ROUTE: res = "content_new/rout...
public string gettagitlayoutpath() { string res = "content/none.xhtml"; switch( exploreraction.getmode() ) { case create_location: res = "content_new/location_new.xhtml"; if( newlocationaction.getmode() == -1 ) { newlocationaction.begin(); } break; case create_route: res = "content_new/route_new.xhtml"; if( newrouteact...
fregaham/KiWi
[ 1, 1, 0, 0 ]
11,778
void load(FPod fpod) { this.fpod = fpod; this.typesByName = new HashMap(); // create a hollow Type for each FType (this requires two steps, // because we don't necessary have all the Types created for // superclasses until this loop completes) int numTypes = fpod.types == null ? 0 : fpod.types...
void load(FPod fpod) { this.fpod = fpod; this.typesByName = new HashMap(); int numTypes = fpod.types == null ? 0 : fpod.types.length; types = new ClassType[numTypes]; for (int i=0; i<numTypes; ++i) { ClassType type = new ClassType(this, fpod.types[i]); types...
void load(fpod fpod) { this.fpod = fpod; this.typesbyname = new hashmap(); int numtypes = fpod.types == null ? 0 : fpod.types.length; types = new classtype[numtypes]; for (int i=0; i<numtypes; ++i) { classtype type = new classtype(this, fpod.types[i]); types[i] = type; if (typesbyname.put(type.name, type) != null) thro...
fanx-dev/fantom
[ 0, 1, 0, 0 ]
11,829
@Override public action to_value(action expression, origin the_origin) { if (constraints != null) { // We need to specially handled narrowed variables here // because the reference type is not narrowed. // Say the variable declaration is "string or null foo", and it's narrowed to string. /...
@Override public action to_value(action expression, origin the_origin) { if (constraints != null) { action narrowed_action = can_narrow(expression, constraints); if (narrowed_action != null) { return narrowed_action; } } type the_type = expression.result()...
@override public action to_value(action expression, origin the_origin) { if (constraints != null) { action narrowed_action = can_narrow(expression, constraints); if (narrowed_action != null) { return narrowed_action; } } type the_type = expression.result().type_bound(); if (common_types.is_reference_type(the_type)) { t...
dynin/ideal
[ 1, 1, 0, 0 ]
20,164
@Override protected void reloadSettings( List<String> updatedSettings ) { // TODO: Implement disconnect and reconnect to PostgreSQL instance. }
@Override protected void reloadSettings( List<String> updatedSettings ) { }
@override protected void reloadsettings( list<string> updatedsettings ) { }
em3ndez/Polypheny-DB
[ 0, 1, 0, 0 ]
20,491
private void attemptLogin() { // Reset errors. mEmailView.setError(null); mPasswordView.setError(null); // Store values at the time of the login attempt. final String email = mEmailView.getText().toString(); final String password = mPasswordView.getText().toString(); ...
private void attemptLogin() { mEmailView.setError(null); mPasswordView.setError(null); final String email = mEmailView.getText().toString(); final String password = mPasswordView.getText().toString(); boolean cancel = false; View focusView = null; ...
private void attemptlogin() { memailview.seterror(null); mpasswordview.seterror(null); final string email = memailview.gettext().tostring(); final string password = mpasswordview.gettext().tostring(); boolean cancel = false; view focusview = null; if (textutils.isempty(password)) { mpasswordview.seterror(getstring(r.st...
edwinperaza/playmagnet
[ 1, 0, 0, 0 ]
20,492
public static boolean isEmailValid(String email) { //TODO: Replace this with your own logic return email.contains("@"); }
public static boolean isEmailValid(String email) { return email.contains("@"); }
public static boolean isemailvalid(string email) { return email.contains("@"); }
edwinperaza/playmagnet
[ 0, 1, 0, 0 ]
20,609
private void _setShutter(String name) { Shutter oldValue = getShutter(); Shutter shutter = Shutter.getShutter(name, oldValue); // XXX: Fix for older XML files saved with wrong shutter value if (shutter == Shutter.OPEN && _lamps.size() == 1) { Lamp lamp = _lamps.iterator().nex...
private void _setShutter(String name) { Shutter oldValue = getShutter(); Shutter shutter = Shutter.getShutter(name, oldValue); if (shutter == Shutter.OPEN && _lamps.size() == 1) { Lamp lamp = _lamps.iterator().next(); if (lamp != Lamp.IR_GREY_BODY_HIGH && lamp != ...
private void _setshutter(string name) { shutter oldvalue = getshutter(); shutter shutter = shutter.getshutter(name, oldvalue); if (shutter == shutter.open && _lamps.size() == 1) { lamp lamp = _lamps.iterator().next(); if (lamp != lamp.ir_grey_body_high && lamp != lamp.ir_grey_body_low) { shutter = shutter.closed; } } s...
cquiroz/ocs
[ 0, 0, 1, 0 ]
20,684
@Override public synchronized void compress(SpdyFrame frame, int start) throws IOException { init(frame.version); if (compressBuffer == null) { compressBuffer = new byte[frame.data.length]; } //System.out.println(HexDumpListener.getHexDump(frame.data, 0, frame...
@Override public synchronized void compress(SpdyFrame frame, int start) throws IOException { init(frame.version); if (compressBuffer == null) { compressBuffer = new byte[frame.data.length]; } Deflater zip = zipOut; zip.setInput(frame.da...
@override public synchronized void compress(spdyframe frame, int start) throws ioexception { init(frame.version); if (compressbuffer == null) { compressbuffer = new byte[frame.data.length]; } deflater zip = zipout; zip.setinput(frame.data, start, frame.enddata - start - 1); int coff = start; zip.setlevel(deflater.defau...
costinm/tomcat
[ 1, 0, 0, 0 ]
12,650
@Test public void test() throws Exception { // Workaround for failing tests. When these tests are executed in // separate test methods, only the first one passes successfully. testLogDebug(); testLogError(); testLogWarn(); testLogInfo(); testLogTrace(); testLogDebugWithThrowable(); testLogErrorWithTh...
@Test public void test() throws Exception { testLogDebug(); testLogError(); testLogWarn(); testLogInfo(); testLogTrace(); testLogDebugWithThrowable(); testLogErrorWithThrowable(); testLogWarnWithThrowable(); testLogInfoWithThrowable(); testLogTraceWithThrowable(); }
@test public void test() throws exception { testlogdebug(); testlogerror(); testlogwarn(); testloginfo(); testlogtrace(); testlogdebugwiththrowable(); testlogerrorwiththrowable(); testlogwarnwiththrowable(); testloginfowiththrowable(); testlogtracewiththrowable(); }
delchev/cloud-dirigible
[ 0, 0, 0, 1 ]
20,936
public static void addFuncprodutividade() { funcionarios[1] = new FuncProdutividade(JOptionPane.showInputDialog("Numero do BI do funcionario produtividade"), JOptionPane.showInputDialog("Data de ingresso do funcionario produtividade"), Double.parseDouble(JOptionPane.showInputDialog("Salario do funcionario produ...
public static void addFuncprodutividade() { funcionarios[1] = new FuncProdutividade(JOptionPane.showInputDialog("Numero do BI do funcionario produtividade"), JOptionPane.showInputDialog("Data de ingresso do funcionario produtividade"), Double.parseDouble(JOptionPane.showInputDialog("Salario do funcionario produ...
public static void addfuncprodutividade() { funcionarios[1] = new funcprodutividade(joptionpane.showinputdialog("numero do bi do funcionario produtividade"), joptionpane.showinputdialog("data de ingresso do funcionario produtividade"), double.parsedouble(joptionpane.showinputdialog("salario do funcionario produtividade...
fernandogomesfg/Algoritmos-em-Java
[ 1, 0, 0, 0 ]
20,938
public static void printSalarioProdutividade() { for (int i = 0; i < funcionarios.length; i++) { if (funcionarios[i] instanceof FuncProdutividade) { System.out.println(funcionarios[i].calcularRemuneracao()); } } }
public static void printSalarioProdutividade() { for (int i = 0; i < funcionarios.length; i++) { if (funcionarios[i] instanceof FuncProdutividade) { System.out.println(funcionarios[i].calcularRemuneracao()); } } }
public static void printsalarioprodutividade() { for (int i = 0; i < funcionarios.length; i++) { if (funcionarios[i] instanceof funcprodutividade) { system.out.println(funcionarios[i].calcularremuneracao()); } } }
fernandogomesfg/Algoritmos-em-Java
[ 1, 0, 0, 0 ]
12,906
private void distribute(Distribution[] distributionList, int iterationNum) { Distribution[] busy = null; //*TODO CONSIDER USE LIST WITH INITIAL CAP SIZE for (int inc = 0; inc < distributionList.length; inc++) { if (distributionList[inc] == null) continue; if (!dis...
private void distribute(Distribution[] distributionList, int iterationNum) { Distribution[] busy = null; for (int inc = 0; inc < distributionList.length; inc++) { if (distributionList[inc] == null) continue; if (!distributionList[inc].getiStepDecorator().offerQueu...
private void distribute(distribution[] distributionlist, int iterationnum) { distribution[] busy = null; for (int inc = 0; inc < distributionlist.length; inc++) { if (distributionlist[inc] == null) continue; if (!distributionlist[inc].getistepdecorator().offerqueuesubjectupdate(distributionlist[inc].getdata(), distribu...
gabibeyo/stepping
[ 1, 0, 0, 0 ]
13,058
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof CheckChainMap)) return false; if (!super.equals(o)) return false; CheckChainMap<?, ?> that = (CheckChainMap<?, ?>) o; // Probably incorrect - comparing Object[] arrays with Arrays.equal...
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof CheckChainMap)) return false; if (!super.equals(o)) return false; CheckChainMap<?, ?> that = (CheckChainMap<?, ?>) o; return Arrays.equals(table, that.table); }
@override public boolean equals(object o) { if (this == o) return true; if (!(o instanceof checkchainmap)) return false; if (!super.equals(o)) return false; checkchainmap<?, ?> that = (checkchainmap<?, ?>) o; return arrays.equals(table, that.table); }
finefuture/gazelle
[ 1, 0, 0, 0 ]
13,286
private boolean isEmailValid(String email) { //TODO: Replace this with your own logic return email.contains("@"); }
private boolean isEmailValid(String email) { return email.contains("@"); }
private boolean isemailvalid(string email) { return email.contains("@"); }
eZubia/scrum-team
[ 1, 0, 0, 0 ]
13,333
public int find(V target, InclusionMode mode) { return find(target, mode, MatchRequirement.EXACT_ONLY); }
public int find(V target, InclusionMode mode) { return find(target, mode, MatchRequirement.EXACT_ONLY); }
public int find(v target, inclusionmode mode) { return find(target, mode, matchrequirement.exact_only); }
devjn/fesimplegeoprox-android-maps
[ 1, 0, 0, 0 ]
13,381
public void close(boolean removeSocket, boolean stopKeepAliveTask) { isRunning = false; // we need to close everything because the socket may be closed by the other end // like in LB scenarios sending OPTIONS and killing the socket after it gets the response if (mySock != null) { ...
public void close(boolean removeSocket, boolean stopKeepAliveTask) { isRunning = false; if (mySock != null) { if (logger.isLoggingEnabled(LogWriter.TRACE_DEBUG)) logger.logDebug("Closing socket " + key); try { mySock.close(); mySock...
public void close(boolean removesocket, boolean stopkeepalivetask) { isrunning = false; if (mysock != null) { if (logger.isloggingenabled(logwriter.trace_debug)) logger.logdebug("closing socket " + key); try { mysock.close(); mysock = null; } catch (ioexception ex) { if (logger.isloggingenabled(logwriter.trace_debug)) ...
fhg-fokus-nubomedia/signaling-plane
[ 0, 0, 0, 0 ]
21,575
private String getTypeString(int type, int length) { if (type == DataType.INT.getType()) { return "int"; } if (type == DataType.FLOAT.getType()) { return "float"; } if (type == DataType.DOUBLE.getType()) { return "double"; } ...
private String getTypeString(int type, int length) { if (type == DataType.INT.getType()) { return "int"; } if (type == DataType.FLOAT.getType()) { return "float"; } if (type == DataType.DOUBLE.getType()) { return "double"; } ...
private string gettypestring(int type, int length) { if (type == datatype.int.gettype()) { return "int"; } if (type == datatype.float.gettype()) { return "float"; } if (type == datatype.double.gettype()) { return "double"; } if (type == datatype.date.gettype()) { return "date"; } if (type == datatype.char.gettype()) { ...
dbiir/pard
[ 0, 1, 0, 0 ]
13,395
public static int getPreOpsOutputSize(Component component, Schema schema, TableAliasName tan) { if (component instanceof ThetaJoinComponent) throw new RuntimeException( "SQL generator with Theta does not work for now!"); // TODO similar to Equijoin, but not subtracting joinColumnsLength final Compone...
public static int getPreOpsOutputSize(Component component, Schema schema, TableAliasName tan) { if (component instanceof ThetaJoinComponent) throw new RuntimeException( "SQL generator with Theta does not work for now!"); final Component[] parents = component.getParents(); if (parents == null) ...
public static int getpreopsoutputsize(component component, schema schema, tablealiasname tan) { if (component instanceof thetajoincomponent) throw new runtimeexception( "sql generator with theta does not work for now!"); final component[] parents = component.getparents(); if (parents == null) return getpreopsoutputsize...
epfldata/squall
[ 1, 0, 0, 0 ]
21,617
@Test @Parameters({ "clusterName", "ambariUser", "ambariPassword", "emailNeeded", "enableSecurity", "kerberosMasterKey", "kerberosAdmin", "kerberosPassword", "runRecipesOnHosts" }) public void testClusterCreation(@Optional("it-cluster") String clusterName, @Optional("admin") String ambar...
@Test @Parameters({ "clusterName", "ambariUser", "ambariPassword", "emailNeeded", "enableSecurity", "kerberosMasterKey", "kerberosAdmin", "kerberosPassword", "runRecipesOnHosts" }) public void testClusterCreation(@Optional("it-cluster") String clusterName, @Optional("admin") String ambar...
@test @parameters({ "clustername", "ambariuser", "ambaripassword", "emailneeded", "enablesecurity", "kerberosmasterkey", "kerberosadmin", "kerberospassword", "runrecipesonhosts" }) public void testclustercreation(@optional("it-cluster") string clustername, @optional("admin") string ambariuser, @optional("admin123!@#") ...
doktoric/test123
[ 1, 0, 0, 0 ]
13,832
private void reloadItemsList() { documentPartsDataSource.ensureConnectionIsOpen(); List<DocumentCollectionItem> documentCollectionItems = new ArrayList<>(); Log.d("DocCollectionActivity", "Checking filetypes to add"); for (FileType fileType : SectionsProvider.getFileTypesForSectionModel(...
private void reloadItemsList() { documentPartsDataSource.ensureConnectionIsOpen(); List<DocumentCollectionItem> documentCollectionItems = new ArrayList<>(); Log.d("DocCollectionActivity", "Checking filetypes to add"); for (FileType fileType : SectionsProvider.getFileTypesForSectionModel(...
private void reloaditemslist() { documentpartsdatasource.ensureconnectionisopen(); list<documentcollectionitem> documentcollectionitems = new arraylist<>(); log.d("doccollectionactivity", "checking filetypes to add"); for (filetype filetype : sectionsprovider.getfiletypesforsectionmodel(sectionmodel)) { log.d("doccolle...
devolksbank/NL-Help-U
[ 1, 0, 0, 0 ]
22,238
public static String replaceLeadingSpacesWithNbsps (String str) { // todo: support for tabs? Matcher m = _LeadingSpacesPattern.matcher(str); StringBuffer buf = new StringBuffer(); while (m.find()) { int spaceCount = m.group(1).length(); m.appendReplacement(buf...
public static String replaceLeadingSpacesWithNbsps (String str) { Matcher m = _LeadingSpacesPattern.matcher(str); StringBuffer buf = new StringBuffer(); while (m.find()) { int spaceCount = m.group(1).length(); m.appendReplacement(buf, AWUtil.repeatedString("&n...
public static string replaceleadingspaceswithnbsps (string str) { matcher m = _leadingspacespattern.matcher(str); stringbuffer buf = new stringbuffer(); while (m.find()) { int spacecount = m.group(1).length(); m.appendreplacement(buf, awutil.repeatedstring("&nbsp;", spacecount)); } m.appendtail(buf); return buf.tostrin...
fbarthez/aribaweb
[ 0, 1, 0, 0 ]
14,274
IbisSocket connect(TcpSendPort sp, ibis.ipl.impl.ReceivePortIdentifier rip, int timeout, boolean fillTimeout) throws IOException { IbisIdentifier id = (IbisIdentifier) rip.ibisIdentifier(); String name = rip.name(); IbisSocketAddress idAddr; synchronized (addresses) { ...
IbisSocket connect(TcpSendPort sp, ibis.ipl.impl.ReceivePortIdentifier rip, int timeout, boolean fillTimeout) throws IOException { IbisIdentifier id = (IbisIdentifier) rip.ibisIdentifier(); String name = rip.name(); IbisSocketAddress idAddr; synchronized (addresses) { ...
ibissocket connect(tcpsendport sp, ibis.ipl.impl.receiveportidentifier rip, int timeout, boolean filltimeout) throws ioexception { ibisidentifier id = (ibisidentifier) rip.ibisidentifier(); string name = rip.name(); ibissocketaddress idaddr; synchronized (addresses) { idaddr = addresses.get(id); if (idaddr == null) { i...
dadepo/ipl
[ 0, 0, 1, 0 ]
22,476
@AllowedMethod @Transactional(TransactionType.WRITE) public String update() { log.debug("---------------- update()"); saveOrUpdate(); // TODO: i18n: Externalize. // TODO: Enhance: Print link to updated shop. addActionMessage("Shop <strong>" + escape(shop.getName()) + "</strong> updated successfully."); r...
@AllowedMethod @Transactional(TransactionType.WRITE) public String update() { log.debug("---------------- update()"); saveOrUpdate(); addActionMessage("Shop <strong>" + escape(shop.getName()) + "</strong> updated successfully."); return RESULT_REDIRECT_VIEW; }
@allowedmethod @transactional(transactiontype.write) public string update() { log.debug("---------------- update()"); saveorupdate(); addactionmessage("shop <strong>" + escape(shop.getname()) + "</strong> updated successfully."); return result_redirect_view; }
doanhoa93/struts2shop
[ 0, 1, 0, 0 ]
30,694
public static void learnAndSaveAllModels(){ // Seleccionamos el directorio en el que se van a recoger todos los String input_path = "data/automatic_learn/"; File[] inputFiles = new File(input_path).listFiles(x -> x.getName().endsWith(".arff")); String output_path = "results/automatic_lea...
public static void learnAndSaveAllModels(){ String input_path = "data/automatic_learn/"; File[] inputFiles = new File(input_path).listFiles(x -> x.getName().endsWith(".arff")); String output_path = "results/automatic_learn/LCM/"; for (File inputFile : inputFiles) { tr...
public static void learnandsaveallmodels(){ string input_path = "data/automatic_learn/"; file[] inputfiles = new file(input_path).listfiles(x -> x.getname().endswith(".arff")); string output_path = "results/automatic_learn/lcm/"; for (file inputfile : inputfiles) { try { if (inputfile.isfile()) { discretedataset data =...
fernandoj92/mvca-parkinson
[ 1, 0, 0, 0 ]
22,578
public void sendLevelFinish() { TaskQueue.getTaskQueue() .push( new Task() { public void execute() { try { // for thread safety final Level level = World.getWorld().getLevel(); PacketBuilder bldr = ...
public void sendLevelFinish() { TaskQueue.getTaskQueue() .push( new Task() { public void execute() { try { final Level level = World.getWorld().getLevel(); PacketBuilder bldr = new PacketBui...
public void sendlevelfinish() { taskqueue.gettaskqueue() .push( new task() { public void execute() { try { final level level = world.getworld().getlevel(); packetbuilder bldr = new packetbuilder( persistingpacketmanager.getpacketmanager().getoutgoingpacket(4)); bldr.putshort("width", level.getwidth()); bldr.putshort("h...
derekdinan/CTFServer
[ 0, 1, 0, 0 ]
30,787
private void onFrameLoad(JavaScriptObject cajaFrameObject) { //--- This is to catch the theoretical case where we call start and stop then start really fast, //--- but the load call from the first start didn't finish before the first stop, and comes in between //--- the first stop and the second start...NOTE thi...
private void onFrameLoad(JavaScriptObject cajaFrameObject) { }
private void onframeload(javascriptobject cajaframeobject) { }
dougkoellmer/swarm
[ 1, 0, 1, 0 ]
14,459
public void assignNurseToRegister(Patient patient, Nurse nurse) { VaccinationRegister registerToAssingNurse = searchForVaccinationRegister(patient); registerToAssingNurse.assignNurse(nurse); }
public void assignNurseToRegister(Patient patient, Nurse nurse) { VaccinationRegister registerToAssingNurse = searchForVaccinationRegister(patient); registerToAssingNurse.assignNurse(nurse); }
public void assignnursetoregister(patient patient, nurse nurse) { vaccinationregister registertoassingnurse = searchforvaccinationregister(patient); registertoassingnurse.assignnurse(nurse); }
deividgdt/UNED_II
[ 0, 0, 0, 0 ]
22,775
public List<PairIntArray> findEdges() { // DFS search for sequential neighbors. Stack<PairInt> stack = new Stack<PairInt>(); int thresh0 = 1; for (int i = 0; i < img.getWidth(); i++) { for (int j = 0; j < img.getHeight(); j++) { //for now, choosing to look onl...
public List<PairIntArray> findEdges() { Stack<PairInt> stack = new Stack<PairInt>(); int thresh0 = 1; for (int i = 0; i < img.getWidth(); i++) { for (int j = 0; j < img.getHeight(); j++) { int bPix = img.getValue(i, j); if (bPix...
public list<pairintarray> findedges() { stack<pairint> stack = new stack<pairint>(); int thresh0 = 1; for (int i = 0; i < img.getwidth(); i++) { for (int j = 0; j < img.getheight(); j++) { int bpix = img.getvalue(i, j); if (bpix >= thresh0) { stack.add(new pairint(i, j)); } } } numberofpixelsabovethreshold = stack.size...
dukson/curvature-scale-space-corners-and-transformations
[ 1, 0, 0, 0 ]
22,779
public void fillPath(DirectionRobot robot, int endX, int endY) { int width = robot.getX() - endX; int height = robot.getY() - endY; //todo refactor logic //select direction AbstractRobot.Direction abstractDirection = robot.getDirection(); System.out.println("first!"); ...
public void fillPath(DirectionRobot robot, int endX, int endY) { int width = robot.getX() - endX; int height = robot.getY() - endY; AbstractRobot.Direction abstractDirection = robot.getDirection(); System.out.println("first!"); if (width < 0) { ...
public void fillpath(directionrobot robot, int endx, int endy) { int width = robot.getx() - endx; int height = robot.gety() - endy; abstractrobot.direction abstractdirection = robot.getdirection(); system.out.println("first!"); if (width < 0) { switch (abstractdirection) { case up: { this.addcomand(new rotaterightcoman...
defoltbmd/SimpleRobot
[ 1, 0, 0, 0 ]
14,669
public Dimension preferredLayoutSize(Container parent) { /* Sync the (now obsolete) policy fields with the * JScrollPane. */ JScrollPane scrollPane = (JScrollPane)parent; vsbPolicy = scrollPane.getVerticalScrollBarPolicy(); hsbPolicy = scrollPane.getHorizontalScrollBarPolicy(); Insets insets = parent.getI...
public Dimension preferredLayoutSize(Container parent) { JScrollPane scrollPane = (JScrollPane)parent; vsbPolicy = scrollPane.getVerticalScrollBarPolicy(); hsbPolicy = scrollPane.getHorizontalScrollBarPolicy(); Insets insets = parent.getInsets(); int prefWidth = insets.left + insets.right; int prefHeight = ...
public dimension preferredlayoutsize(container parent) { jscrollpane scrollpane = (jscrollpane)parent; vsbpolicy = scrollpane.getverticalscrollbarpolicy(); hsbpolicy = scrollpane.gethorizontalscrollbarpolicy(); insets insets = parent.getinsets(); int prefwidth = insets.left + insets.right; int prefheight = insets.top +...
dannyhx/artisynth_core
[ 0, 0, 1, 0 ]
31,217
@Override protected Void doInBackground(String... args) { if (isCancelled()) { return null; } // TODO subscribe to network events instead of using this if (!networkAvailable) { Toast.makeText( context, ...
@Override protected Void doInBackground(String... args) { if (isCancelled()) { return null; } if (!networkAvailable) { Toast.makeText( context, getString(R.string.toast_nonetwork), ...
@override protected void doinbackground(string... args) { if (iscancelled()) { return null; } if (!networkavailable) { toast.maketext( context, getstring(r.string.toast_nonetwork), toast.length_long).show(); } else { updateuibean = new updateuibean(); config.readconfigfile(replayconstants.config_file, context); sharedp...
dng24/wehe-android
[ 1, 1, 0, 1 ]
23,038
@Override public void resetToPreferredSizes() { Insets i = getInsets(); if (getOrientation() == VERTICAL_SPLIT) { int h = getHeight() - i.top - i.bottom - getDividerSize(); int topH = getTopComponent().getPreferredSize().height; int bottomH = getBottomComponent()....
@Override public void resetToPreferredSizes() { Insets i = getInsets(); if (getOrientation() == VERTICAL_SPLIT) { int h = getHeight() - i.top - i.bottom - getDividerSize(); int topH = getTopComponent().getPreferredSize().height; int bottomH = getBottomComponent()....
@override public void resettopreferredsizes() { insets i = getinsets(); if (getorientation() == vertical_split) { int h = getheight() - i.top - i.bottom - getdividersize(); int toph = gettopcomponent().getpreferredsize().height; int bottomh = getbottomcomponent().getpreferredsize().height; int extraspace = h - toph - b...
g-pechorin/flexdock
[ 0, 1, 0, 0 ]
23,040
@Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { // Update each of the widgets with the remote adapter for (int i = 0; i < appWidgetIds.length; ++i) { RemoteViews layout = buildLayout(context, appWidgetIds[i]); appWidgetManager.updateAppWidge...
@Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { for (int i = 0; i < appWidgetIds.length; ++i) { RemoteViews layout = buildLayout(context, appWidgetIds[i]); appWidgetManager.updateAppWidget(appWidgetIds[i], layout); } super.onUpdate(c...
@override public void onupdate(context context, appwidgetmanager appwidgetmanager, int[] appwidgetids) { for (int i = 0; i < appwidgetids.length; ++i) { remoteviews layout = buildlayout(context, appwidgetids[i]); appwidgetmanager.updateappwidget(appwidgetids[i], layout); } super.onupdate(context, appwidgetmanager, appw...
ekux44/LampShade
[ 0, 0, 1, 0 ]
14,870
private void onApnChanged() { DctConstants.State overallState = getOverallState(); boolean isDisconnected = (overallState == DctConstants.State.IDLE || overallState == DctConstants.State.FAILED); if (mPhone instanceof GSMPhone) { // The "current" may no longer be vali...
private void onApnChanged() { DctConstants.State overallState = getOverallState(); boolean isDisconnected = (overallState == DctConstants.State.IDLE || overallState == DctConstants.State.FAILED); if (mPhone instanceof GSMPhone) { ((GSMPhone)mPhone).updateC...
private void onapnchanged() { dctconstants.state overallstate = getoverallstate(); boolean isdisconnected = (overallstate == dctconstants.state.idle || overallstate == dctconstants.state.failed); if (mphone instanceof gsmphone) { ((gsmphone)mphone).updatecurrentcarrierinprovider(); } if (dbg) log("onapnchanged: createa...
efortuna/AndroidSDKClone
[ 1, 0, 0, 0 ]
14,914
public static Class<?> getRawType(Type type) { if (type instanceof Class<?>) { // type is a normal class. return (Class<?>)type; } else if (type instanceof ParameterizedType) { ParameterizedType parameterizedType = (ParameterizedType)type; // I'm not exactly sure why getRawType() returns Type instead ...
public static Class<?> getRawType(Type type) { if (type instanceof Class<?>) { return (Class<?>)type; } else if (type instanceof ParameterizedType) { ParameterizedType parameterizedType = (ParameterizedType)type; Type rawType = parameterizedType.getRawType(); Asserts.isTrue(rawType instanc...
public static class<?> getrawtype(type type) { if (type instanceof class<?>) { return (class<?>)type; } else if (type instanceof parameterizedtype) { parameterizedtype parameterizedtype = (parameterizedtype)type; type rawtype = parameterizedtype.getrawtype(); asserts.istrue(rawtype instanceof class); return (class<?>)r...
foolite/panda
[ 1, 0, 0, 0 ]
31,546
private void processResponseBody(List<AudioGson> audioGsons) { Log.i(getClass().getName(), "processResponseBody"); ExecutorService executorService = Executors.newSingleThreadExecutor(); executorService.execute(new Runnable() { @Override public void run() { ...
private void processResponseBody(List<AudioGson> audioGsons) { Log.i(getClass().getName(), "processResponseBody"); ExecutorService executorService = Executors.newSingleThreadExecutor(); executorService.execute(new Runnable() { @Override public void run() { ...
private void processresponsebody(list<audiogson> audiogsons) { log.i(getclass().getname(), "processresponsebody"); executorservice executorservice = executors.newsinglethreadexecutor(); executorservice.execute(new runnable() { @override public void run() { log.i(getclass().getname(), "run"); roomdb roomdb = roomdb.getd...
elimu-ai/content-provider
[ 0, 1, 0, 0 ]
15,539
@Override protected EntityManager getEntityManager() { return entityManager; }
@Override protected EntityManager getEntityManager() { return entityManager; }
@override protected entitymanager getentitymanager() { return entitymanager; }
dwws-ufes/2020-doeLivro
[ 0, 0, 0, 0 ]
15,540
@Override public List<Book> getBookByTitle(String title) { // FIXME: auto-generated method stub return null; }
@Override public List<Book> getBookByTitle(String title) { return null; }
@override public list<book> getbookbytitle(string title) { return null; }
dwws-ufes/2020-doeLivro
[ 1, 0, 0, 0 ]
15,541
@Override public List<Book> getBookByAuthor(String author) { // FIXME: auto-generated method stub return null; }
@Override public List<Book> getBookByAuthor(String author) { return null; }
@override public list<book> getbookbyauthor(string author) { return null; }
dwws-ufes/2020-doeLivro
[ 0, 1, 0, 0 ]
15,542
@Override public List<Book> getBookList() { // FIXME: auto-generated method stub return null; }
@Override public List<Book> getBookList() { return null; }
@override public list<book> getbooklist() { return null; }
dwws-ufes/2020-doeLivro
[ 0, 1, 0, 0 ]
31,991
public static void doGoTo( String strQualifedType ) { EditorUtilities.showWaitCursor( true ); try { IType type = TypeSystem.getByFullNameIfValid( strQualifedType ); if( type == null ) { return; } IFile[] sourceFiles = type.getSourceFiles(); if( sourceFiles != nu...
public static void doGoTo( String strQualifedType ) { EditorUtilities.showWaitCursor( true ); try { IType type = TypeSystem.getByFullNameIfValid( strQualifedType ); if( type == null ) { return; } IFile[] sourceFiles = type.getSourceFiles(); if( sourceFiles != nu...
public static void dogoto( string strqualifedtype ) { editorutilities.showwaitcursor( true ); try { itype type = typesystem.getbyfullnameifvalid( strqualifedtype ); if( type == null ) { return; } ifile[] sourcefiles = type.getsourcefiles(); if( sourcefiles != null && sourcefiles.length > 0 ) { ifile sourcefile = source...
dmcreyno/gosu-lang
[ 1, 0, 0, 0 ]
15,967
public Table<Locator, String, String> getMetadataValues(Set<Locator> locators) { ColumnFamily CF = CassandraModel.CF_METRIC_METADATA; boolean isBatch = locators.size() > 1; Table<Locator, String, String> metaTable = HashBasedTable.create(); Timer.Context ctx = isBatch ? Instrumentation.g...
public Table<Locator, String, String> getMetadataValues(Set<Locator> locators) { ColumnFamily CF = CassandraModel.CF_METRIC_METADATA; boolean isBatch = locators.size() > 1; Table<Locator, String, String> metaTable = HashBasedTable.create(); Timer.Context ctx = isBatch ? Instrumentation.g...
public table<locator, string, string> getmetadatavalues(set<locator> locators) { columnfamily cf = cassandramodel.cf_metric_metadata; boolean isbatch = locators.size() > 1; table<locator, string, string> metatable = hashbasedtable.create(); timer.context ctx = isbatch ? instrumentation.getbatchreadtimercontext(cf) : in...
dlobue/blueflood
[ 1, 0, 0, 0 ]
15,968
private Map<Locator, ColumnList<Long>> getColumnsFromDB(List<Locator> locators, ColumnFamily<Locator, Long> CF, Range range) { if (range.getStart() > range.getStop()) { throw new RuntimeException(String.format("Invalid rollup range: ", rang...
private Map<Locator, ColumnList<Long>> getColumnsFromDB(List<Locator> locators, ColumnFamily<Locator, Long> CF, Range range) { if (range.getStart() > range.getStop()) { throw new RuntimeException(String.format("Invalid rollup range: ", rang...
private map<locator, columnlist<long>> getcolumnsfromdb(list<locator> locators, columnfamily<locator, long> cf, range range) { if (range.getstart() > range.getstop()) { throw new runtimeexception(string.format("invalid rollup range: ", range.tostring())); } boolean isbatch = locators.size() != 1; final map<locator, col...
dlobue/blueflood
[ 1, 0, 0, 0 ]
16,078
void SetupDataDialog_componentAdded(java.awt.event.ContainerEvent event) { // to do: code goes here. }
void SetupDataDialog_componentAdded(java.awt.event.ContainerEvent event) { }
void setupdatadialog_componentadded(java.awt.event.containerevent event) { }
fluffynukeit/mdsplus
[ 0, 1, 0, 0 ]
7,897
private Set<String> getSpammyItems() { Set<String> spammyItems = null; try { spammyItems = new HashSet<String>(Files.readAllLines(SPAMMY_ITEM_FILE.toPath())); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); // TODO: Do something intelligent. } ...
private Set<String> getSpammyItems() { Set<String> spammyItems = null; try { spammyItems = new HashSet<String>(Files.readAllLines(SPAMMY_ITEM_FILE.toPath())); } catch (IOException e) { e.printStackTrace(); } return spammyItems; }
private set<string> getspammyitems() { set<string> spammyitems = null; try { spammyitems = new hashset<string>(files.readalllines(spammy_item_file.topath())); } catch (ioexception e) { e.printstacktrace(); } return spammyitems; }
edmazur/everquest-robot-stanvern
[ 1, 0, 0, 0 ]
7,896
public void initialize() { PayloadTrieBuilder<Item> itemsByNameBuilder = PayloadTrie.builder(); itemsByNameBuilder .ignoreCase() .ignoreOverlaps(); spammyItems = getSpammyItems(); BufferedReader bufferedReader; try { bufferedReader = new BufferedReader(new FileReader(ITEM_FILE)...
public void initialize() { PayloadTrieBuilder<Item> itemsByNameBuilder = PayloadTrie.builder(); itemsByNameBuilder .ignoreCase() .ignoreOverlaps(); spammyItems = getSpammyItems(); BufferedReader bufferedReader; try { bufferedReader = new BufferedReader(new FileReader(ITEM_FILE)...
public void initialize() { payloadtriebuilder<item> itemsbynamebuilder = payloadtrie.builder(); itemsbynamebuilder .ignorecase() .ignoreoverlaps(); spammyitems = getspammyitems(); bufferedreader bufferedreader; try { bufferedreader = new bufferedreader(new filereader(item_file)); string line = null; while ((line = buff...
edmazur/everquest-robot-stanvern
[ 1, 0, 0, 0 ]
24,462
private void bordersChanged() { JComponent component = (JComponent)toAWTComponent(); component.setBorder(JBUI.Borders.empty()); Collection<BorderInfo> borders = dataObject().getBorders(); Map<BorderPosition, Integer> emptyBorders = new LinkedHashMap<>(); for (BorderInfo border : borders) { if ...
private void bordersChanged() { JComponent component = (JComponent)toAWTComponent(); component.setBorder(JBUI.Borders.empty()); Collection<BorderInfo> borders = dataObject().getBorders(); Map<BorderPosition, Integer> emptyBorders = new LinkedHashMap<>(); for (BorderInfo border : borders) { if ...
private void borderschanged() { jcomponent component = (jcomponent)toawtcomponent(); component.setborder(jbui.borders.empty()); collection<borderinfo> borders = dataobject().getborders(); map<borderposition, integer> emptyborders = new linkedhashmap<>(); for (borderinfo border : borders) { if (border.getborderstyle() =...
consulo/consulo
[ 0, 0, 1, 0 ]
24,543
private void saveXML(Reference ref, FileOutputStream fos) throws JAXBException { JAXBContext ctx = JAXBContext.newInstance(com.digi_dmx.gen.Context.class); Marshaller m = ctx.createMarshaller(); m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); m.setProperty(Marshaller.JAXB_ENCODING, DEFAULT_ENCODING); ...
private void saveXML(Reference ref, FileOutputStream fos) throws JAXBException { JAXBContext ctx = JAXBContext.newInstance(com.digi_dmx.gen.Context.class); Marshaller m = ctx.createMarshaller(); m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); m.setProperty(Marshaller.JAXB_ENCODING, DEFAULT_ENCODING); ...
private void savexml(reference ref, fileoutputstream fos) throws jaxbexception { jaxbcontext ctx = jaxbcontext.newinstance(com.digi_dmx.gen.context.class); marshaller m = ctx.createmarshaller(); m.setproperty(marshaller.jaxb_formatted_output, true); m.setproperty(marshaller.jaxb_encoding, default_encoding); com.digi_dm...
ebardes/EasyJNDI
[ 1, 0, 0, 0 ]
119
private void reduceList(Site site, Map<String, String> zapRelations, Map<String, Vulnerability> groupVulnerabilities) throws MalformedURLException { /** * De las vulnerabilidades encontradas las mapeamos a objetos * y las agrupamos por tipo de vulnerabilidad y url */ for (...
private void reduceList(Site site, Map<String, String> zapRelations, Map<String, Vulnerability> groupVulnerabilities) throws MalformedURLException { for (Alert alert: site.getAlerts()) { String nameVuln = zapRelations.get(alert.getPluginid()); if(StringUtils.isBlank(nameVuln)){ ...
private void reducelist(site site, map<string, string> zaprelations, map<string, vulnerability> groupvulnerabilities) throws malformedurlexception { for (alert alert: site.getalerts()) { string namevuln = zaprelations.get(alert.getpluginid()); if(stringutils.isblank(namevuln)){ vulnerability vulnerability = new vulnera...
hackshieldteam/sisifo
[ 0, 1, 0, 0 ]
24,712
public void deleteAll(User user, Conversation conversation) { // TODO: optimize messageRepository.getAllBySenderAndConversation(user, conversation) .stream() .parallel() .forEach(this::delete); }
public void deleteAll(User user, Conversation conversation) { messageRepository.getAllBySenderAndConversation(user, conversation) .stream() .parallel() .forEach(this::delete); }
public void deleteall(user user, conversation conversation) { messagerepository.getallbysenderandconversation(user, conversation) .stream() .parallel() .foreach(this::delete); }
ivanjermakov/letter-core
[ 1, 0, 0, 0 ]
24,736
@Test public void testLANG1292() { // Prior to fix, this was throwing StringIndexOutOfBoundsException Wrap.wrap("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", 70); }
@Test public void testLANG1292() { Wrap.wrap("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", 70); }
@test public void testlang1292() { wrap.wrap("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", 70); }
jgallimore/crest
[ 0, 0, 1, 0 ]
24,737
@Test public void testLANG1397() { // Prior to fix, this was throwing StringIndexOutOfBoundsException Wrap.wrap("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", Integer.MAX_VALUE); ...
@Test public void testLANG1397() { Wrap.wrap("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", Integer.MAX_VALUE); }
@test public void testlang1397() { wrap.wrap("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", integer.max_value); }
jgallimore/crest
[ 0, 0, 1, 0 ]
16,576
public void dumpDecrements(Block block, RCTracker increments) { // TODO: can we guarantee that the refcount var is available in the // current scope? for (RefCountType rcType: RefcountPass.RC_TYPES) { for (Entry<AliasKey, Long> e: increments.rcIter(rcType, RCDir.DECR)) { assert (e.getVal...
public void dumpDecrements(Block block, RCTracker increments) { for (RefCountType rcType: RefcountPass.RC_TYPES) { for (Entry<AliasKey, Long> e: increments.rcIter(rcType, RCDir.DECR)) { assert (e.getValue() <= 0); Var var = increments.getRefCountVar(e.getKey()); if (RefCounting...
public void dumpdecrements(block block, rctracker increments) { for (refcounttype rctype: refcountpass.rc_types) { for (entry<aliaskey, long> e: increments.rciter(rctype, rcdir.decr)) { assert (e.getvalue() <= 0); var var = increments.getrefcountvar(e.getkey()); if (refcounting.trackrefcount(var, rctype)) { arg amount ...
hsphcdm/swift-t
[ 1, 0, 0, 0 ]