id int64 22 34.9k | original_code stringlengths 31 107k | code_wo_comment stringlengths 29 77.3k | cleancode stringlengths 25 62.1k | repo stringlengths 6 65 | label listlengths 4 4 |
|---|---|---|---|---|---|
30,838 | @Override
public String getAdditionalProposalInfo() {
try {
ASTNode coveringNode = mContext.getCoveringNode();
int start = coveringNode.getStartPosition();
int length = coveringNode.getLength();
IBuffer buffer = mContext.getCompilationUnit().getBuffer();
... | @Override
public String getAdditionalProposalInfo() {
try {
ASTNode coveringNode = mContext.getCoveringNode();
int start = coveringNode.getStartPosition();
int length = coveringNode.getLength();
IBuffer buffer = mContext.getCompilationUnit().getBuffer();
... | @override public string getadditionalproposalinfo() { try { astnode coveringnode = mcontext.getcoveringnode(); int start = coveringnode.getstartposition(); int length = coveringnode.getlength(); ibuffer buffer = mcontext.getcompilationunit().getbuffer(); stringbuilder sb = new stringbuilder(); string string = buffer.ge... | jiangshide/sdk | [
1,
0,
0,
0
] |
22,747 | public void waitFor(String name,Cmd command,Context context,String input, long timeout, TimeUnit unit){
//TODO use scheduled task to implement timeout
Waiter waiter = new Waiter(command,context,input);
waitFor(name,waiter);
} | public void waitFor(String name,Cmd command,Context context,String input, long timeout, TimeUnit unit){
Waiter waiter = new Waiter(command,context,input);
waitFor(name,waiter);
} | public void waitfor(string name,cmd command,context context,string input, long timeout, timeunit unit){ waiter waiter = new waiter(command,context,input); waitfor(name,waiter); } | johnaohara/qDup | [
0,
1,
0,
0
] |
30,944 | @Override
protected FilterResults performFiltering(CharSequence constraint) {
List<DailyExpenseTagsWithPicsPojo> filteredListHelper = new ArrayList<>();
List<DailyExpenseTagsWithPicsPojo> filteredList = new ArrayList<>();
//----------- search = false, filter = false ---------... | @Override
protected FilterResults performFiltering(CharSequence constraint) {
List<DailyExpenseTagsWithPicsPojo> filteredListHelper = new ArrayList<>();
List<DailyExpenseTagsWithPicsPojo> filteredList = new ArrayList<>();
if ((constraint == null || constraint.leng... | @override protected filterresults performfiltering(charsequence constraint) { list<dailyexpensetagswithpicspojo> filteredlisthelper = new arraylist<>(); list<dailyexpensetagswithpicspojo> filteredlist = new arraylist<>(); if ((constraint == null || constraint.length() == 0) && (categoriesforfilter == null || categories... | jkandcoding/QuantiTanti_1 | [
0,
1,
1,
0
] |
22,765 | private Object convert(final Field field, final Val val) {
if (field != null && field.getFormat() != null && field.getFormat().getType() != null) {
final Type type = field.getFormat().getType();
if (Type.NUMBER.equals(type) || Type.DATE_TIME.equals(type)) {
return val.toD... | private Object convert(final Field field, final Val val) {
if (field != null && field.getFormat() != null && field.getFormat().getType() != null) {
final Type type = field.getFormat().getType();
if (Type.NUMBER.equals(type) || Type.DATE_TIME.equals(type)) {
return val.toD... | private object convert(final field field, final val val) { if (field != null && field.getformat() != null && field.getformat().gettype() != null) { final type type = field.getformat().gettype(); if (type.number.equals(type) || type.date_time.equals(type)) { return val.todouble(); } } return val.tostring(); } | gcdev373/stroom-query | [
1,
0,
0,
0
] |
14,676 | @Override
public Set<OperatorSet> detectPropertyOnline(
SearchState relevantState,
SearchTree tree) {
Set<OperatorSet> result = new HashSet<OperatorSet>();
//TODO: shouldn't this be in-fact an offline detector?
relevantState = tree.getSentState(relevantState.iparentID);
if(relevantState == null) return ... | @Override
public Set<OperatorSet> detectPropertyOnline(
SearchState relevantState,
SearchTree tree) {
Set<OperatorSet> result = new HashSet<OperatorSet>();
relevantState = tree.getSentState(relevantState.iparentID);
if(relevantState == null) return result;
for(SearchState s1 : relevantState.successo... | @override public set<operatorset> detectpropertyonline( searchstate relevantstate, searchtree tree) { set<operatorset> result = new hashset<operatorset>(); relevantstate = tree.getsentstate(relevantstate.iparentid); if(relevantstate == null) return result; for(searchstate s1 : relevantstate.successors){ for(searchstate... | gree7/privacy-analysis | [
1,
0,
0,
0
] |
14,772 | @Override
public BundleDetails extract(final InputStream inputStream) throws IOException {
try (final JarInputStream jarInputStream = new JarInputStream(inputStream)) {
final Manifest manifest = jarInputStream.getManifest();
if (manifest == null) {
throw new IllegalAr... | @Override
public BundleDetails extract(final InputStream inputStream) throws IOException {
try (final JarInputStream jarInputStream = new JarInputStream(inputStream)) {
final Manifest manifest = jarInputStream.getManifest();
if (manifest == null) {
throw new IllegalAr... | @override public bundledetails extract(final inputstream inputstream) throws ioexception { try (final jarinputstream jarinputstream = new jarinputstream(inputstream)) { final manifest manifest = jarinputstream.getmanifest(); if (manifest == null) { throw new illegalargumentexception("nar bundles must contain a valid ma... | joaocc/nifi-registry | [
1,
0,
0,
0
] |
22,990 | private void addEvent(Event e, int globalId, int localId) {
EventData data = eventMap.getOrCreate(e);
data.setId(globalId);
data.setLocalId(localId);
eventList.add(data);
data.setWasExecuted(true);
if (data.isMemoryEvent()) {
// ===== Memory Events =====
... | private void addEvent(Event e, int globalId, int localId) {
EventData data = eventMap.getOrCreate(e);
data.setId(globalId);
data.setLocalId(localId);
eventList.add(data);
data.setWasExecuted(true);
if (data.isMemoryEvent()) {
BigInteger address = ((Me... | private void addevent(event e, int globalid, int localid) { eventdata data = eventmap.getorcreate(e); data.setid(globalid); data.setlocalid(localid); eventlist.add(data); data.setwasexecuted(true); if (data.ismemoryevent()) { biginteger address = ((memevent) e).getaddress().getintvalue(e, model, context); data.setacces... | hernanponcedeleon/Dat3M | [
0,
1,
0,
0
] |
23,254 | @Override
protected int writeParametersWireFormat ( byte[] dst, int dstIndex ) {
int start = dstIndex;
SMBUtil.writeInt2(mapInformationLevel(this.informationLevel), dst, dstIndex);
dstIndex += 2;
/*
* windows98 has what appears to be another 4 0's followed by the share
... | @Override
protected int writeParametersWireFormat ( byte[] dst, int dstIndex ) {
int start = dstIndex;
SMBUtil.writeInt2(mapInformationLevel(this.informationLevel), dst, dstIndex);
dstIndex += 2;
return dstIndex - start;
} | @override protected int writeparameterswireformat ( byte[] dst, int dstindex ) { int start = dstindex; smbutil.writeint2(mapinformationlevel(this.informationlevel), dst, dstindex); dstindex += 2; return dstindex - start; } | goyourfly/NovaCustom | [
1,
0,
0,
0
] |
15,149 | private void configureComponents() {
//Associate the data with the formLayout columns and load the data.
try
{
//1 - Set properties of the form
this.tabs.addClassName("fichier-tab");
this.tabs.setOrientation(Tabs.Orientation.HORIZONTAL);
this.tab... | private void configureComponents() {
try
{
this.tabs.addClassName("fichier-tab");
this.tabs.setOrientation(Tabs.Orientation.HORIZONTAL);
this.tabs.setFlexGrowForEnclosedTabs(1);
this.tabs.addThemeVariants(TabsVariant.LUMO_SMALL);
... | private void configurecomponents() { try { this.tabs.addclassname("fichier-tab"); this.tabs.setorientation(tabs.orientation.horizontal); this.tabs.setflexgrowforenclosedtabs(1); this.tabs.addthemevariants(tabsvariant.lumo_small); this.tabs.setwidthfull(); this.tabinfogenerale.setlabel("informations générales"); this.ta... | jdissou/sigdep01_01 | [
1,
0,
0,
0
] |
15,434 | @JsonGetter("name")
public String getName ( ) {
return this.name;
} | @JsonGetter("name")
public String getName ( ) {
return this.name;
} | @jsongetter("name") public string getname ( ) { return this.name; } | information-machine/information-machine-api-android | [
0,
0,
0,
0
] |
15,435 | @JsonSetter("name")
public void setName (String value) {
this.name = value;
} | @JsonSetter("name")
public void setName (String value) {
this.name = value;
} | @jsonsetter("name") public void setname (string value) { this.name = value; } | information-machine/information-machine-api-android | [
0,
0,
0,
0
] |
15,436 | @JsonGetter("product_details")
public ProductData getProductDetails ( ) {
return this.productDetails;
} | @JsonGetter("product_details")
public ProductData getProductDetails ( ) {
return this.productDetails;
} | @jsongetter("product_details") public productdata getproductdetails ( ) { return this.productdetails; } | information-machine/information-machine-api-android | [
0,
0,
0,
0
] |
15,437 | @JsonSetter("product_details")
public void setProductDetails (ProductData value) {
this.productDetails = value;
} | @JsonSetter("product_details")
public void setProductDetails (ProductData value) {
this.productDetails = value;
} | @jsonsetter("product_details") public void setproductdetails (productdata value) { this.productdetails = value; } | information-machine/information-machine-api-android | [
0,
0,
0,
0
] |
15,438 | @JsonGetter("product_id")
public Integer getProductId ( ) {
return this.productId;
} | @JsonGetter("product_id")
public Integer getProductId ( ) {
return this.productId;
} | @jsongetter("product_id") public integer getproductid ( ) { return this.productid; } | information-machine/information-machine-api-android | [
0,
0,
0,
0
] |
15,439 | @JsonSetter("product_id")
public void setProductId (Integer value) {
this.productId = value;
} | @JsonSetter("product_id")
public void setProductId (Integer value) {
this.productId = value;
} | @jsonsetter("product_id") public void setproductid (integer value) { this.productid = value; } | information-machine/information-machine-api-android | [
0,
0,
0,
0
] |
15,440 | @JsonGetter("product_identifiers")
public ProductIdentifiers getProductIdentifiers ( ) {
return this.productIdentifiers;
} | @JsonGetter("product_identifiers")
public ProductIdentifiers getProductIdentifiers ( ) {
return this.productIdentifiers;
} | @jsongetter("product_identifiers") public productidentifiers getproductidentifiers ( ) { return this.productidentifiers; } | information-machine/information-machine-api-android | [
0,
0,
0,
0
] |
15,441 | @JsonSetter("product_identifiers")
public void setProductIdentifiers (ProductIdentifiers value) {
this.productIdentifiers = value;
} | @JsonSetter("product_identifiers")
public void setProductIdentifiers (ProductIdentifiers value) {
this.productIdentifiers = value;
} | @jsonsetter("product_identifiers") public void setproductidentifiers (productidentifiers value) { this.productidentifiers = value; } | information-machine/information-machine-api-android | [
0,
0,
0,
0
] |
15,442 | @JsonGetter("product_timestamps")
public ProductTimestamps getProductTimestamps ( ) {
return this.productTimestamps;
} | @JsonGetter("product_timestamps")
public ProductTimestamps getProductTimestamps ( ) {
return this.productTimestamps;
} | @jsongetter("product_timestamps") public producttimestamps getproducttimestamps ( ) { return this.producttimestamps; } | information-machine/information-machine-api-android | [
0,
0,
0,
0
] |
15,443 | @JsonSetter("product_timestamps")
public void setProductTimestamps (ProductTimestamps value) {
this.productTimestamps = value;
} | @JsonSetter("product_timestamps")
public void setProductTimestamps (ProductTimestamps value) {
this.productTimestamps = value;
} | @jsonsetter("product_timestamps") public void setproducttimestamps (producttimestamps value) { this.producttimestamps = value; } | information-machine/information-machine-api-android | [
0,
0,
0,
0
] |
15,444 | @JsonGetter("purchase_history")
public List<PurchaseInfo> getPurchaseHistory ( ) {
return this.purchaseHistory;
} | @JsonGetter("purchase_history")
public List<PurchaseInfo> getPurchaseHistory ( ) {
return this.purchaseHistory;
} | @jsongetter("purchase_history") public list<purchaseinfo> getpurchasehistory ( ) { return this.purchasehistory; } | information-machine/information-machine-api-android | [
0,
0,
0,
0
] |
15,445 | @JsonSetter("purchase_history")
public void setPurchaseHistory (List<PurchaseInfo> value) {
this.purchaseHistory = value;
} | @JsonSetter("purchase_history")
public void setPurchaseHistory (List<PurchaseInfo> value) {
this.purchaseHistory = value;
} | @jsonsetter("purchase_history") public void setpurchasehistory (list<purchaseinfo> value) { this.purchasehistory = value; } | information-machine/information-machine-api-android | [
0,
0,
0,
0
] |
23,670 | public Configs getConfigs() {
Configs configs = null;
InputStream is = settingsFacade.getRawConfig(SMS_CONFIGS_FILE_NAME);
String errorMessage = null;
if (is == null) {
throw new JsonIOException(SMS_CONFIGS_FILE_NAME + " missing");
}
try {
String j... | public Configs getConfigs() {
Configs configs = null;
InputStream is = settingsFacade.getRawConfig(SMS_CONFIGS_FILE_NAME);
String errorMessage = null;
if (is == null) {
throw new JsonIOException(SMS_CONFIGS_FILE_NAME + " missing");
}
try {
String j... | public configs getconfigs() { configs configs = null; inputstream is = settingsfacade.getrawconfig(sms_configs_file_name); string errormessage = null; if (is == null) { throw new jsonioexception(sms_configs_file_name + " missing"); } try { string jsontext = ioutils.tostring(is); gson gson = new gson(); configs = gson.f... | jkondrat/modules | [
1,
0,
0,
0
] |
15,511 | @Override
public Socket createSocket (final Socket plainSocket, final String host, final int port, final boolean autoClose) throws IOException, UnknownHostException {
// we don't need the plainSocket
if (autoClose) plainSocket.close();
// create and connect SSL socket, but don't do hostname/certificate verificat... | @Override
public Socket createSocket (final Socket plainSocket, final String host, final int port, final boolean autoClose) throws IOException, UnknownHostException {
if (autoClose) plainSocket.close();
final SSLCertificateSocketFactory sslSocketFactory = (SSLCertificateSocketFactory) SSLCertificateSocketFacto... | @override public socket createsocket (final socket plainsocket, final string host, final int port, final boolean autoclose) throws ioexception, unknownhostexception { if (autoclose) plainsocket.close(); final sslcertificatesocketfactory sslsocketfactory = (sslcertificatesocketfactory) sslcertificatesocketfactory.getdef... | haku/Onosendai | [
1,
0,
0,
0
] |
23,703 | @Test
public void providerCannotBeUsedIfNotAssigned() throws IOException, InterruptedException {
setupWorkspace("user_defined_providers");
EventCollector collector = new EventCollector(EnumSet.allOf(EventKind.class));
parser = createParser(collector);
// TODO(T48080142): When we wrap up all of these v... | @Test
public void providerCannotBeUsedIfNotAssigned() throws IOException, InterruptedException {
setupWorkspace("user_defined_providers");
EventCollector collector = new EventCollector(EnumSet.allOf(EventKind.class));
parser = createParser(collector);
thrown.expect(Exception.class);
thrown... | @test public void providercannotbeusedifnotassigned() throws ioexception, interruptedexception { setupworkspace("user_defined_providers"); eventcollector collector = new eventcollector(enumset.allof(eventkind.class)); parser = createparser(collector); thrown.expect(exception.class); thrown.expectmessage("//not_assigned... | jasonnam/buck | [
0,
0,
1,
0
] |
15,556 | @Test
public void testDeleteBuildDefinition()
throws ContinuumStoreException
{
Project project = projectDao.getProjectWithAllDetails( testProject1.getId() );
BuildDefinition buildDefinition = project.getBuildDefinitions().get( 1 );
project.getBuildDefinitions().remove( 0 );
... | @Test
public void testDeleteBuildDefinition()
throws ContinuumStoreException
{
Project project = projectDao.getProjectWithAllDetails( testProject1.getId() );
BuildDefinition buildDefinition = project.getBuildDefinitions().get( 1 );
project.getBuildDefinitions().remove( 0 );
... | @test public void testdeletebuilddefinition() throws continuumstoreexception { project project = projectdao.getprojectwithalldetails( testproject1.getid() ); builddefinition builddefinition = project.getbuilddefinitions().get( 1 ); project.getbuilddefinitions().remove( 0 ); projectdao.updateproject( project ); project ... | isabella232/continuum | [
0,
0,
0,
1
] |
15,558 | @Test
public void testDeleteGroupBuildDefinition()
throws ContinuumStoreException
{
ProjectGroup projectGroup = projectGroupDao.getProjectGroupWithBuildDetailsByProjectGroupId(
defaultProjectGroup.getId() );
projectGroup.getBuildDefinitions().remove( 0 );
projectGroup... | @Test
public void testDeleteGroupBuildDefinition()
throws ContinuumStoreException
{
ProjectGroup projectGroup = projectGroupDao.getProjectGroupWithBuildDetailsByProjectGroupId(
defaultProjectGroup.getId() );
projectGroup.getBuildDefinitions().remove( 0 );
projectGroup... | @test public void testdeletegroupbuilddefinition() throws continuumstoreexception { projectgroup projectgroup = projectgroupdao.getprojectgroupwithbuilddetailsbyprojectgroupid( defaultprojectgroup.getid() ); projectgroup.getbuilddefinitions().remove( 0 ); projectgroupdao.updateprojectgroup( projectgroup ); projectgroup... | isabella232/continuum | [
0,
0,
0,
1
] |
32,006 | @Override
public void handleEvent(Event event) {
List<Entity> entities = entityManager.getEntitiesContainingComponent(VisionComponent.class);
if (entities == null)
return;
EntityCreatedEvent entityCreatedEvent = (EntityCreatedEvent) event;
for (Entity entity : entities) {
VisionComponent visionComponent ... | @Override
public void handleEvent(Event event) {
List<Entity> entities = entityManager.getEntitiesContainingComponent(VisionComponent.class);
if (entities == null)
return;
EntityCreatedEvent entityCreatedEvent = (EntityCreatedEvent) event;
for (Entity entity : entities) {
VisionComponent visionComponent ... | @override public void handleevent(event event) { list<entity> entities = entitymanager.getentitiescontainingcomponent(visioncomponent.class); if (entities == null) return; entitycreatedevent entitycreatedevent = (entitycreatedevent) event; for (entity entity : entities) { visioncomponent visioncomponent = (visioncompon... | haxic/Heavy-Space | [
1,
0,
0,
0
] |
23,877 | @Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
// TODO: Manage sizes to avoid specific ones. It always must be parent size (match_parent)
int widthSize = MeasureSpec.getSize(widthMeasureSpec);
int heightSize = MeasureSpec.getSize(heightMeasureSpec);
... | @Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int widthSize = MeasureSpec.getSize(widthMeasureSpec);
int heightSize = MeasureSpec.getSize(heightMeasureSpec);
mWidth.set(widthSize);
mHeight.set(heightSize);
mQuadrangle.set(0, 0, widt... | @override protected void onmeasure(int widthmeasurespec, int heightmeasurespec) { int widthsize = measurespec.getsize(widthmeasurespec); int heightsize = measurespec.getsize(heightmeasurespec); mwidth.set(widthsize); mheight.set(heightsize); mquadrangle.set(0, 0, widthsize, heightsize); super.onmeasure(widthmeasurespec... | gemalto/idcloud-kyc-sample-android | [
0,
1,
0,
0
] |
7,781 | public static void main(String args[]) throws FileNotFoundException {
// TODO: use sane arg parsing
if (args.length != 7 && args.length != 8) {
throw new RuntimeException("usage: Processor trace-file tcg-dump-out inst-info-dump hierarchy-dump test-case-name test-method-name tested-class [out... | public static void main(String args[]) throws FileNotFoundException {
if (args.length != 7 && args.length != 8) {
throw new RuntimeException("usage: Processor trace-file tcg-dump-out inst-info-dump hierarchy-dump test-case-name test-method-name tested-class [output-package]");
}
... | public static void main(string args[]) throws filenotfoundexception { if (args.length != 7 && args.length != 8) { throw new runtimeexception("usage: processor trace-file tcg-dump-out inst-info-dump hierarchy-dump test-case-name test-method-name tested-class [output-package]"); } string tracefilename = args[0]; string t... | glasser/amock | [
1,
0,
0,
0
] |
7,812 | @Override
public void run(double frac) {
logger.trace("run -> begin of method");
try {
workingDataset = new GranularityAggregationTree(sourceDataset.getDataColumnSchema(),granularities.length+1);
ArrayList<TemporalObject> currentBranches = new ArrayList<TemporalObject>();
ArrayList<ArrayList<TemporalObjec... | @Override
public void run(double frac) {
logger.trace("run -> begin of method");
try {
workingDataset = new GranularityAggregationTree(sourceDataset.getDataColumnSchema(),granularities.length+1);
ArrayList<TemporalObject> currentBranches = new ArrayList<TemporalObject>();
ArrayList<ArrayList<TemporalObjec... | @override public void run(double frac) { logger.trace("run -> begin of method"); try { workingdataset = new granularityaggregationtree(sourcedataset.getdatacolumnschema(),granularities.length+1); arraylist<temporalobject> currentbranches = new arraylist<temporalobject>(); arraylist<arraylist<temporalobject>> currentlea... | ieg-vienna/TimeBench | [
1,
0,
0,
0
] |
7,861 | @Override
@SuppressFBWarnings("BC_UNCONFIRMED_CAST")
protected void runApiSpecificTests(HttpSecurityDescription securityDescription)
throws SuiteBroken {
this.currentState.selectedHeiId = getParameterValue(HEI_ID_PARAMETER, this::getSelectedHeiId);
} | @Override
@SuppressFBWarnings("BC_UNCONFIRMED_CAST")
protected void runApiSpecificTests(HttpSecurityDescription securityDescription)
throws SuiteBroken {
this.currentState.selectedHeiId = getParameterValue(HEI_ID_PARAMETER, this::getSelectedHeiId);
} | @override @suppressfbwarnings("bc_unconfirmed_cast") protected void runapispecifictests(httpsecuritydescription securitydescription) throws suitebroken { this.currentstate.selectedheiid = getparametervalue(hei_id_parameter, this::getselectedheiid); } | j-be/ewp-registry-service | [
1,
0,
0,
0
] |
7,912 | private BeanDescriptorImpl<T> getBeanDescriptorInternal() {
return new BeanDescriptorImpl<T>(
beanClass,
getClassLevelConstraintsAsDescriptors(),
getConstrainedPropertiesAsDescriptors(),
getMethodsAsDescriptors(),
defaultGroupSequenceIsRedefined(),
getDefaultGroupSequence( null )
);
} | private BeanDescriptorImpl<T> getBeanDescriptorInternal() {
return new BeanDescriptorImpl<T>(
beanClass,
getClassLevelConstraintsAsDescriptors(),
getConstrainedPropertiesAsDescriptors(),
getMethodsAsDescriptors(),
defaultGroupSequenceIsRedefined(),
getDefaultGroupSequence( null )
);
} | private beandescriptorimpl<t> getbeandescriptorinternal() { return new beandescriptorimpl<t>( beanclass, getclasslevelconstraintsasdescriptors(), getconstrainedpropertiesasdescriptors(), getmethodsasdescriptors(), defaultgroupsequenceisredefined(), getdefaultgroupsequence( null ) ); } | gastaldi/hibernate-validator | [
0,
0,
0,
0
] |
8,028 | public void webHookEvent(GerritProjectEvent projectEvent) {
log.info("Got Webhook:" + projectEvent);
// TODO Update open changes according to event. For now, just read them all
scheduleRefresh();
} | public void webHookEvent(GerritProjectEvent projectEvent) {
log.info("Got Webhook:" + projectEvent);
scheduleRefresh();
} | public void webhookevent(gerritprojectevent projectevent) { log.info("got webhook:" + projectevent); schedulerefresh(); } | johannesc/gerrit-builder-plugin | [
0,
1,
0,
0
] |
16,325 | private void orderButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_orderButtonActionPerformed
AddOrderForm orderForm = AddOrderForm.getInstance();
System.out.println(lowOnStock.get(stockTable.getSelectedColumn()));
AdminMainForm admin = AdminMainForm.getInstance();
... | private void orderButtonActionPerformed(java.awt.event.ActionEvent evt) { AddOrderForm orderForm = AddOrderForm.getInstance();
System.out.println(lowOnStock.get(stockTable.getSelectedColumn()));
AdminMainForm admin = AdminMainForm.getInstance();
admin.showForm(orderForm);
orderFor... | private void orderbuttonactionperformed(java.awt.event.actionevent evt) { addorderform orderform = addorderform.getinstance(); system.out.println(lowonstock.get(stocktable.getselectedcolumn())); adminmainform admin = adminmainform.getinstance(); admin.showform(orderform); orderform.setdrug(lowonstock.get(stocktable.get... | isurunix/pharmacy-manager | [
0,
1,
0,
0
] |
22 | public boolean usesRegs() {
// FIXME: this is almost certainly boned. a Reg could appear in the
// address expressions.
for (int i=0;i<rhs().length;++i) {
if (usesDirectly(i) && rhs()[i] instanceof Reg) {
return true;
}
}
if (opcode.form()... | public boolean usesRegs() {
for (int i=0;i<rhs().length;++i) {
if (usesDirectly(i) && rhs()[i] instanceof Reg) {
return true;
}
}
if (opcode.form().implicitUses(head().code()).length!=0) {
return true;
}
return f... | public boolean usesregs() { for (int i=0;i<rhs().length;++i) { if (usesdirectly(i) && rhs()[i] instanceof reg) { return true; } } if (opcode.form().implicituses(head().code()).length!=0) { return true; } return false; } | mihirlibran/cse605 | [
0,
0,
1,
0
] |
83 | @Test
public void parseNegativeIntegerLiteral(
) throws ExpressionException {
LineSpecifier ls = new LineSpecifier(0, 10);
Locale locale = new Locale(ls, 10);
ExpressionParser parser = new ExpressionParser("-14458", locale);
Expression exp = parser.parse(new Assembler.Builder().b... | @Test
public void parseNegativeIntegerLiteral(
) throws ExpressionException {
LineSpecifier ls = new LineSpecifier(0, 10);
Locale locale = new Locale(ls, 10);
ExpressionParser parser = new ExpressionParser("-14458", locale);
Expression exp = parser.parse(new Assembler.Builder().b... | @test public void parsenegativeintegerliteral( ) throws expressionexception { linespecifier ls = new linespecifier(0, 10); locale locale = new locale(ls, 10); expressionparser parser = new expressionparser("-14458", locale); expression exp = parser.parse(new assembler.builder().build()); assertequals(2, exp._items.size... | kduncan99/em2200-java | [
1,
0,
0,
0
] |
118 | @Override
public void onLocationChanged(Location location) {
mLocation = location;
if (mLocation != null) {
// Bug report: cached GeoPoint is being returned as the first value.
// Wait for the 2nd value to be returned, which is hopefully not cached?
++mLocationCou... | @Override
public void onLocationChanged(Location location) {
mLocation = location;
if (mLocation != null) {
++mLocationCount;
InfoLogger.geolog("GeoPointActivity: " + System.currentTimeMillis() +
" onLocationChanged(" + mLocationCou... | @override public void onlocationchanged(location location) { mlocation = location; if (mlocation != null) { ++mlocationcount; infologger.geolog("geopointactivity: " + system.currenttimemillis() + " onlocationchanged(" + mlocationcount + ") lat: " + mlocation.getlatitude() + " long: " + mlocation.getlongitude() + " acc:... | jorgepsendziuk/novo_coletor | [
0,
0,
1,
0
] |
32,955 | @Deprecated
public FileDataSource generatePythonImpl(File spec, String artifactName, String groupId, String artifactVersion, String implemName) throws Exception {
Yaml yaml = new Yaml();
LinkedHashMap swaggerFile = yaml.load(FileUtils.openInputStream(spec));
String groupIdApi = getPropInSwa... | @Deprecated
public FileDataSource generatePythonImpl(File spec, String artifactName, String groupId, String artifactVersion, String implemName) throws Exception {
Yaml yaml = new Yaml();
LinkedHashMap swaggerFile = yaml.load(FileUtils.openInputStream(spec));
String groupIdApi = getPropInSwa... | @deprecated public filedatasource generatepythonimpl(file spec, string artifactname, string groupid, string artifactversion, string implemname) throws exception { yaml yaml = new yaml(); linkedhashmap swaggerfile = yaml.load(fileutils.openinputstream(spec)); string groupidapi = getpropinswaggerfile(swaggerfile, "x-grou... | kathra-project/kathra-codegen-swagger | [
1,
0,
0,
0
] |
16,627 | public void checkList()
{
if(observed.size() != cachedSize)
{
cachedSize = observed.size();
listUpdated();
}
} | public void checkList()
{
if(observed.size() != cachedSize)
{
cachedSize = observed.size();
listUpdated();
}
} | public void checklist() { if(observed.size() != cachedsize) { cachedsize = observed.size(); listupdated(); } } | justin-espedal/polydes | [
0,
0,
1,
0
] |
16,754 | @Override
public boolean isReferenceTo(PsiElement psiElement) {
if(!(psiElement instanceof PhpNamedElement)) {
return false;
}
String text = getElement().getText();
if(StringUtils.isBlank(text)) {
return false;
}
... | @Override
public boolean isReferenceTo(PsiElement psiElement) {
if(!(psiElement instanceof PhpNamedElement)) {
return false;
}
String text = getElement().getText();
if(StringUtils.isBlank(text)) {
return false;
}
... | @override public boolean isreferenceto(psielement psielement) { if(!(psielement instanceof phpnamedelement)) { return false; } string text = getelement().gettext(); if(stringutils.isblank(text)) { return false; } psielement namespace = element.getprevsibling(); if(phppsiutil.isoftype(namespace, phpdoctokentypes.doc_nam... | meyerbaptiste/idea-php-annotation-plugin | [
0,
1,
0,
0
] |
16,808 | public SyncStatusDetail synchronizeStack(Stack stack, UmsUsersState umsUsersState, UserSyncOptions options) {
MDCBuilder.buildMdcContext(stack);
String environmentCrn = stack.getEnvironmentCrn();
Multimap<String, String> warnings = ArrayListMultimap.create();
try {
FreeIpaCli... | public SyncStatusDetail synchronizeStack(Stack stack, UmsUsersState umsUsersState, UserSyncOptions options) {
MDCBuilder.buildMdcContext(stack);
String environmentCrn = stack.getEnvironmentCrn();
Multimap<String, String> warnings = ArrayListMultimap.create();
try {
FreeIpaCli... | public syncstatusdetail synchronizestack(stack stack, umsusersstate umsusersstate, usersyncoptions options) { mdcbuilder.buildmdccontext(stack); string environmentcrn = stack.getenvironmentcrn(); multimap<string, string> warnings = arraylistmultimap.create(); try { freeipaclient freeipaclient = freeipaclientfactory.get... | mdvtlp/cloudbreak | [
0,
1,
0,
0
] |
25,017 | public static String obtainProcessID() {
//get process id
String pname = ManagementFactory.getRuntimeMXBean().getName(); //pid@hostname
String pid = pname.split("@")[0];
// TODO: change this as soon as we switch to a java version >= 9
// import java.lang.ProcessHandle;
// pid = ProcessHandle.current().pid()... | public static String obtainProcessID() {
String pname = ManagementFactory.getRuntimeMXBean().getName();
String pid = pname.split("@")[0];
return pid;
} | public static string obtainprocessid() { string pname = managementfactory.getruntimemxbean().getname(); string pid = pname.split("@")[0]; return pid; } | mgd-hin/systemds | [
1,
0,
0,
0
] |
16,892 | public static LeXeMerger build(String pathToMergeSchema) {
if (builder == null) {
builder = new GenericLexemeBuilder();
}
return builder.build(pathToMergeSchema);
} | public static LeXeMerger build(String pathToMergeSchema) {
if (builder == null) {
builder = new GenericLexemeBuilder();
}
return builder.build(pathToMergeSchema);
} | public static lexemerger build(string pathtomergeschema) { if (builder == null) { builder = new genericlexemebuilder(); } return builder.build(pathtomergeschema); } | maybeec/lexeme | [
0,
0,
0,
0
] |
16,946 | public static List<ServiceResult> runXmlReplayFile(String xmlReplayBaseDir,
String controlFileName,
String testGroupID,
String oneTestID,
Map<String, Se... | public static List<ServiceResult> runXmlReplayFile(String xmlReplayBaseDir,
String controlFileName,
String testGroupID,
String oneTestID,
Map<String, Se... | public static list<serviceresult> runxmlreplayfile(string xmlreplaybasedir, string controlfilename, string testgroupid, string onetestid, map<string, serviceresult> serviceresultsmap, boolean param_autodeleteposts, dump dump, string protohostportparam, authsmap defaultauths, list<string> reportslist, string reportsdir)... | litchfieldhistoricalsociety/services | [
1,
0,
0,
0
] |
25,235 | @Test
public void positionalConstructors() throws Exception {
assertRejected(new ProxyWhitelist(), "new java.lang.Boolean java.lang.String", "['true'] as Boolean");
assertEvaluate(new StaticWhitelist("new java.lang.Boolean java.lang.String"), true, "['true'] as Boolean");
String cc = "static... | @Test
public void positionalConstructors() throws Exception {
assertRejected(new ProxyWhitelist(), "new java.lang.Boolean java.lang.String", "['true'] as Boolean");
assertEvaluate(new StaticWhitelist("new java.lang.Boolean java.lang.String"), true, "['true'] as Boolean");
String cc = "static... | @test public void positionalconstructors() throws exception { assertrejected(new proxywhitelist(), "new java.lang.boolean java.lang.string", "['true'] as boolean"); assertevaluate(new staticwhitelist("new java.lang.boolean java.lang.string"), true, "['true'] as boolean"); string cc = "staticmethod org.kohsuke.groovy.sa... | maheshp/gocd-groovy-dsl-config-plugin | [
1,
1,
0,
0
] |
685 | public static final int testElementParsing (
final PrintStream out, final BufferedReader in, final String ... args)
{
final String ans=getval(out, in, "use owner document y/[n]/q");
if (isQuit(ans))
return 0;
Document owner=null;
if ((ans != null) && (an... | public static final int testElementParsing (
final PrintStream out, final BufferedReader in, final String ... args)
{
final String ans=getval(out, in, "use owner document y/[n]/q");
if (isQuit(ans))
return 0;
Document owner=null;
if ((ans != null) && (an... | public static final int testelementparsing ( final printstream out, final bufferedreader in, final string ... args) { final string ans=getval(out, in, "use owner document y/[n]/q"); if (isquit(ans)) return 0; document owner=null; if ((ans != null) && (ans.length() > 0) && ('y' == character.tolowercase(ans.charat(0)))) ... | lgoldstein/communitychest | [
0,
1,
0,
0
] |
33,498 | @SuppressWarnings("fallthrough")
@Override
public Token<CppTokenId> nextToken() {
while (true) {
// special handling for escaped lines
if (lastTokenEndedByEscapedLine > 0) {
int c = read(false);
lastTokenEndedByEscapedLine--;
assert... | @SuppressWarnings("fallthrough")
@Override
public Token<CppTokenId> nextToken() {
while (true) {
if (lastTokenEndedByEscapedLine > 0) {
int c = read(false);
lastTokenEndedByEscapedLine--;
assert c == '\\' : "there must be \\";
... | @suppresswarnings("fallthrough") @override public token<cpptokenid> nexttoken() { while (true) { if (lasttokenendedbyescapedline > 0) { int c = read(false); lasttokenendedbyescapedline--; assert c == '\\' : "there must be \\"; c = read(false); assert c == '\n' || c == '\r' : "there must be \r or \n"; if (c == '\r') { l... | leginee/netbeans | [
1,
0,
0,
0
] |
25,373 | protected void evaluateAndShowHint() {
myEvaluator.evaluate(myExpression, new XEvaluationCallbackBase() {
public void evaluated(@NotNull final XValue result) {
result.computePresentation(new XValueNode() {
@Override
public void setPresentation(@Nullable Icon icon, @NonNls @Nullable... | protected void evaluateAndShowHint() {
myEvaluator.evaluate(myExpression, new XEvaluationCallbackBase() {
public void evaluated(@NotNull final XValue result) {
result.computePresentation(new XValueNode() {
@Override
public void setPresentation(@Nullable Icon icon, @NonNls @Nullable... | protected void evaluateandshowhint() { myevaluator.evaluate(myexpression, new xevaluationcallbackbase() { public void evaluated(@notnull final xvalue result) { result.computepresentation(new xvaluenode() { @override public void setpresentation(@nullable icon icon, @nonnls @nullable string type, @nonnls @notnull string ... | liveqmock/platform-tools-idea | [
0,
1,
0,
0
] |
25,388 | @DB
private Network createGuestNetwork(final long networkOfferingId, final String name, final String displayText, final String gateway, final String cidr, String vlanId,
boolean bypassVlanOverlapCheck, String networkDomain, final Account owner, final Long domainId, final Physi... | @DB
private Network createGuestNetwork(final long networkOfferingId, final String name, final String displayText, final String gateway, final String cidr, String vlanId,
boolean bypassVlanOverlapCheck, String networkDomain, final Account owner, final Long domainId, final Physi... | @db private network createguestnetwork(final long networkofferingid, final string name, final string displaytext, final string gateway, final string cidr, string vlanid, boolean bypassvlanoverlapcheck, string networkdomain, final account owner, final long domainid, final physicalnetwork pntwk, final long zoneid, final ... | leolleeooleo/cloudstack | [
1,
1,
0,
0
] |
25,403 | public static String domToString(Document document) {
Source source = new DOMSource(document);
try {
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();
transformer.setOutputProperty(OutputKeys. INDENT, "yes");
transformer.setOutputProperty(... | public static String domToString(Document document) {
Source source = new DOMSource(document);
try {
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();
transformer.setOutputProperty(OutputKeys. INDENT, "yes");
transformer.setOutputProperty(... | public static string domtostring(document document) { source source = new domsource(document); try { transformerfactory factory = transformerfactory.newinstance(); transformer transformer = factory.newtransformer(); transformer.setoutputproperty(outputkeys. indent, "yes"); transformer.setoutputproperty("{http://xml.apa... | mino98/stix | [
1,
0,
0,
0
] |
25,580 | private void deviceClientMonitorLoop() {
do {
try {
// This synchronized block stops us from doing the select() if a new
// Device is being added.
// @see startMonitoringDevice()
synchronized (mDevices) {
}
... | private void deviceClientMonitorLoop() {
do {
try {
synchronized (mDevices) {
}
int count = mSelector.select();
if (mQuit) {
return;
}
s... | private void deviceclientmonitorloop() { do { try { synchronized (mdevices) { } int count = mselector.select(); if (mquit) { return; } synchronized (mclientstoreopen) { if (mclientstoreopen.size() > 0) { set<client> clients = mclientstoreopen.keyset(); monitorthread monitorthread = monitorthread.getinstance(); for (cli... | lrscp/ControlAndroidDeviceFromPC | [
1,
0,
0,
0
] |
33,797 | @POST
@Path("/services")
@Produces({ "application/json", "application/xml" })
@PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.CREATE_SERVICE + "\")")
public RangerService createService(RangerService service) {
if(LOG.isDebugEnabled()) {
LOG.debug("==> ServiceREST.createService(... | @POST
@Path("/services")
@Produces({ "application/json", "application/xml" })
@PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.CREATE_SERVICE + "\")")
public RangerService createService(RangerService service) {
if(LOG.isDebugEnabled()) {
LOG.debug("==> ServiceREST.createService(... | @post @path("/services") @produces({ "application/json", "application/xml" }) @preauthorize("@rangerpreauthsecurityhandler.isapiaccessible(\"" + rangerapilist.create_service + "\")") public rangerservice createservice(rangerservice service) { if(log.isdebugenabled()) { log.debug("==> servicerest.createservice(" + servi... | lw-lin/incubator-ranger | [
1,
0,
0,
0
] |
33,798 | @PUT
@Path("/services/{id}")
@Produces({ "application/json", "application/xml" })
@PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.UPDATE_SERVICE + "\")")
public RangerService updateService(RangerService service) {
if(LOG.isDebugEnabled()) {
LOG.debug("==> ServiceREST.updateServ... | @PUT
@Path("/services/{id}")
@Produces({ "application/json", "application/xml" })
@PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.UPDATE_SERVICE + "\")")
public RangerService updateService(RangerService service) {
if(LOG.isDebugEnabled()) {
LOG.debug("==> ServiceREST.updateServ... | @put @path("/services/{id}") @produces({ "application/json", "application/xml" }) @preauthorize("@rangerpreauthsecurityhandler.isapiaccessible(\"" + rangerapilist.update_service + "\")") public rangerservice updateservice(rangerservice service) { if(log.isdebugenabled()) { log.debug("==> servicerest.updateservice(): " ... | lw-lin/incubator-ranger | [
1,
0,
0,
0
] |
33,799 | @DELETE
@Path("/services/{id}")
@Produces({ "application/json", "application/xml" })
@PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.DELETE_SERVICE + "\")")
public void deleteService(@PathParam("id") Long id) {
if(LOG.isDebugEnabled()) {
LOG.debug("==> ServiceREST.deleteService... | @DELETE
@Path("/services/{id}")
@Produces({ "application/json", "application/xml" })
@PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.DELETE_SERVICE + "\")")
public void deleteService(@PathParam("id") Long id) {
if(LOG.isDebugEnabled()) {
LOG.debug("==> ServiceREST.deleteService... | @delete @path("/services/{id}") @produces({ "application/json", "application/xml" }) @preauthorize("@rangerpreauthsecurityhandler.isapiaccessible(\"" + rangerapilist.delete_service + "\")") public void deleteservice(@pathparam("id") long id) { if(log.isdebugenabled()) { log.debug("==> servicerest.deleteservice(" + id +... | lw-lin/incubator-ranger | [
1,
0,
0,
0
] |
9,239 | @Issue("JENKINS-20415")
@Test public void nonTopLevelItemGroup() throws Exception {
MatrixProject mp = j.jenkins.createProject(MatrixProject.class, "mp");
mp.setAxes(new AxisList(new TextAxis("axis", "one", "two")));
assertEquals(2, mp.getItems().size());
ListView v = new ListView("v... | @Issue("JENKINS-20415")
@Test public void nonTopLevelItemGroup() throws Exception {
MatrixProject mp = j.jenkins.createProject(MatrixProject.class, "mp");
mp.setAxes(new AxisList(new TextAxis("axis", "one", "two")));
assertEquals(2, mp.getItems().size());
ListView v = new ListView("v... | @issue("jenkins-20415") @test public void nontoplevelitemgroup() throws exception { matrixproject mp = j.jenkins.createproject(matrixproject.class, "mp"); mp.setaxes(new axislist(new textaxis("axis", "one", "two"))); assertequals(2, mp.getitems().size()); listview v = new listview("v"); j.jenkins.addview(v); v.setinclu... | mahevpm/Mahendran_Jenkins | [
0,
0,
1,
0
] |
33,880 | @Override
public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry beanDefinitionRegistry) throws BeansException {
// TODO empty method, if you want to definition & registry , use it.
} | @Override
public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry beanDefinitionRegistry) throws BeansException {
} | @override public void postprocessbeandefinitionregistry(beandefinitionregistry beandefinitionregistry) throws beansexception { } | liuziyuan/retrofit-spring-boot-starter | [
0,
1,
0,
0
] |
33,901 | @Ignore // todo: test case for https://github.com/jhy/jsoup/issues/845. Doesn't work yet.
@Test public void handlesMisnestedAInDivs() {
String h = "<a href='#1'><div><div><a href='#2'>child</a</div</div></a>";
String w = "<a href=\"#1\"></a><div><a href=\"#1\"></a><div><a href=\"#1\"></a><a href=\"#... | @Ignore @Test public void handlesMisnestedAInDivs() {
String h = "<a href='#1'><div><div><a href='#2'>child</a</div</div></a>";
String w = "<a href=\"#1\"></a><div><a href=\"#1\"></a><div><a href=\"#1\"></a><a href=\"#2\">child</a></div></div>";
Document doc = Jsoup.parse(h);
assertE... | @ignore @test public void handlesmisnestedaindivs() { string h = "<a href='#1'><div><div><a href='#2'>child</a</div</div></a>"; string w = "<a href=\"#1\"></a><div><a href=\"#1\"></a><div><a href=\"#1\"></a><a href=\"#2\">child</a></div></div>"; document doc = jsoup.parse(h); assertequals( stringutil.normalisewhitespac... | mikiec84/jsoup | [
0,
0,
0,
1
] |
1,139 | private void transformTimeSeries(String metricName, AnomalyDetectionContext anomalyDetectionContext) {
// Transform the observed (current) time series
if (anomalyDetectionContext.getTransformedCurrent(metricName) == null) {
anomalyDetectionContext.setTransformedCurrent(metricName, anomalyDetectionContext.... | private void transformTimeSeries(String metricName, AnomalyDetectionContext anomalyDetectionContext) {
if (anomalyDetectionContext.getTransformedCurrent(metricName) == null) {
anomalyDetectionContext.setTransformedCurrent(metricName, anomalyDetectionContext.getCurrent(metricName));
}
List<Transfor... | private void transformtimeseries(string metricname, anomalydetectioncontext anomalydetectioncontext) { if (anomalydetectioncontext.gettransformedcurrent(metricname) == null) { anomalydetectioncontext.settransformedcurrent(metricname, anomalydetectioncontext.getcurrent(metricname)); } list<transformationfunction> curren... | kupl/starlab-benchmarks | [
0,
1,
0,
0
] |
17,582 | @Override
public void onManifest(String contentId, MediaPresentationDescription manifest) {
Handler mainHandler = player.getMainHandler();
LoadControl loadControl = new DefaultLoadControl(new BufferPool(BUFFER_SEGMENT_SIZE));
DefaultBandwidthMeter bandwidthMeter = new DefaultBandwidthMeter(mainHandler, pl... | @Override
public void onManifest(String contentId, MediaPresentationDescription manifest) {
Handler mainHandler = player.getMainHandler();
LoadControl loadControl = new DefaultLoadControl(new BufferPool(BUFFER_SEGMENT_SIZE));
DefaultBandwidthMeter bandwidthMeter = new DefaultBandwidthMeter(mainHandler, pl... | @override public void onmanifest(string contentid, mediapresentationdescription manifest) { handler mainhandler = player.getmainhandler(); loadcontrol loadcontrol = new defaultloadcontrol(new bufferpool(buffer_segment_size)); defaultbandwidthmeter bandwidthmeter = new defaultbandwidthmeter(mainhandler, player); int max... | malmstein/ExoPlayer | [
1,
0,
0,
0
] |
17,679 | public void onFinished(JavaScriptObject jso) {
applFormItems.clear();
applFormItems.addAll(JsonUtils.<ApplicationFormItemWithPrefilledValue>jsoAsList(jso));
applFormGenerators.clear();
if (applFormItems == null || applFormItems.isEmpty()) {
// when there are no application form items
FlexTable ft = new Fl... | public void onFinished(JavaScriptObject jso) {
applFormItems.clear();
applFormItems.addAll(JsonUtils.<ApplicationFormItemWithPrefilledValue>jsoAsList(jso));
applFormGenerators.clear();
if (applFormItems == null || applFormItems.isEmpty()) {
FlexTable ft = new FlexTable();
ft.setSize("100%", "300px");
... | public void onfinished(javascriptobject jso) { applformitems.clear(); applformitems.addall(jsonutils.<applicationformitemwithprefilledvalue>jsoaslist(jso)); applformgenerators.clear(); if (applformitems == null || applformitems.isempty()) { flextable ft = new flextable(); ft.setsize("100%", "300px"); ft.sethtml(0, 0, n... | licehammer/perun | [
0,
0,
1,
0
] |
9,531 | private PathFormula withCorrectionTermsAndPC(
Block pBlock,
FormulaManagerView pFmgr,
BooleanFormulaManagerView pBfmgr,
BitvectorFormulaManagerView pBvfmgr,
PathFormulaManager pPfmgr,
CFA pCFA) {
BooleanFormula extendedBlockFormula = pBlock.getFormula();
PathFormula unprimedB... | private PathFormula withCorrectionTermsAndPC(
Block pBlock,
FormulaManagerView pFmgr,
BooleanFormulaManagerView pBfmgr,
BitvectorFormulaManagerView pBvfmgr,
PathFormulaManager pPfmgr,
CFA pCFA) {
BooleanFormula extendedBlockFormula = pBlock.getFormula();
PathFormula unprimedB... | private pathformula withcorrectiontermsandpc( block pblock, formulamanagerview pfmgr, booleanformulamanagerview pbfmgr, bitvectorformulamanagerview pbvfmgr, pathformulamanager ppfmgr, cfa pcfa) { booleanformula extendedblockformula = pblock.getformula(); pathformula unprimedblockcontext = pblock.getunprimedcontext(); p... | lembergerth/cpachecker | [
0,
0,
1,
0
] |
1,459 | @Test
public void testPredicateTypeMismatch()
{
try (LocalQueryRunner queryRunner = createLocalQueryRunner(
getMockApplyRedirectAfterPredicatePushdown(TYPE_MISMATCHED_REDIRECTION_MAPPING_BC, Optional.of(ImmutableSet.of(SOURCE_COLUMN_HANDLE_B))),
Optional.of(this::mockAppl... | @Test
public void testPredicateTypeMismatch()
{
try (LocalQueryRunner queryRunner = createLocalQueryRunner(
getMockApplyRedirectAfterPredicatePushdown(TYPE_MISMATCHED_REDIRECTION_MAPPING_BC, Optional.of(ImmutableSet.of(SOURCE_COLUMN_HANDLE_B))),
Optional.of(this::mockAppl... | @test public void testpredicatetypemismatch() { try (localqueryrunner queryrunner = createlocalqueryrunner( getmockapplyredirectafterpredicatepushdown(type_mismatched_redirection_mapping_bc, optional.of(immutableset.of(source_column_handle_b))), optional.of(this::mockapplyprojection), optional.of(getmockapplyfilter(imm... | liujiansxcd/trino | [
1,
0,
0,
0
] |
34,339 | private void createRowFactory(){
//Play selected song from playlist, to skip forward or back
tableView.setRowFactory( tv -> {
TableRow<PlaylistSongDisplay> row = new TableRow<>();
row.setOnMouseClicked(event -> {
//On double click of song, play it
... | private void createRowFactory(){
tableView.setRowFactory( tv -> {
TableRow<PlaylistSongDisplay> row = new TableRow<>();
row.setOnMouseClicked(event -> {
if (event.getClickCount() == 2 && (! row.isEmpty()) ) {
playlist.playPlayli... | private void createrowfactory(){ tableview.setrowfactory( tv -> { tablerow<playlistsongdisplay> row = new tablerow<>(); row.setonmouseclicked(event -> { if (event.getclickcount() == 2 && (! row.isempty()) ) { playlist.playplaylistselection(songhashmap.get(row.getitem())); } if (event.getbutton() == mousebutton.secondar... | justinlautner/Cassette | [
0,
1,
0,
0
] |
34,410 | @Override
public void suspend() {
// TODO unsubscribe from everything? And resubscribe on resume?
super.suspend();
if (executor != null) executor.shutdownNow();
executorQueued.set(false);
} | @Override
public void suspend() {
super.suspend();
if (executor != null) executor.shutdownNow();
executorQueued.set(false);
} | @override public void suspend() { super.suspend(); if (executor != null) executor.shutdownnow(); executorqueued.set(false); } | kiuby88/incubator-brooklyn | [
1,
0,
0,
0
] |
1,656 | private void onSessionError(final int sessionId) {
// TODO(qinmin): pass the error code to native.
mHandler.post(new Runnable() {
@Override
public void run() {
nativeOnSessionError(mNativeMediaDrmBridge, sessionId);
}
});
} | private void onSessionError(final int sessionId) {
mHandler.post(new Runnable() {
@Override
public void run() {
nativeOnSessionError(mNativeMediaDrmBridge, sessionId);
}
});
} | private void onsessionerror(final int sessionid) { mhandler.post(new runnable() { @override public void run() { nativeonsessionerror(mnativemediadrmbridge, sessionid); } }); } | kjthegod/chromium | [
0,
1,
0,
0
] |
18,096 | @SuppressWarnings("unchecked")
public static void SetPageFacet(int facetType, String facetName, long delay) {
FacesContext context = FacesContext.getCurrentInstance();
Map viewScope = context.getViewRoot().getViewMap();
String previousFacet = "";
String selectedFacet = "";
try {
switch (facetType) {
ca... | @SuppressWarnings("unchecked")
public static void SetPageFacet(int facetType, String facetName, long delay) {
FacesContext context = FacesContext.getCurrentInstance();
Map viewScope = context.getViewRoot().getViewMap();
String previousFacet = "";
String selectedFacet = "";
try {
switch (facetType) {
ca... | @suppresswarnings("unchecked") public static void setpagefacet(int facettype, string facetname, long delay) { facescontext context = facescontext.getcurrentinstance(); map viewscope = context.getviewroot().getviewmap(); string previousfacet = ""; string selectedfacet = ""; try { switch (facettype) { case 1 previousface... | johnjardin/ukuvuma-xpages-boilerplate | [
1,
0,
0,
0
] |
9,907 | public static List<String> contentPrefixList(int flags)
{
final List<String> contentPrefixList = new ArrayList<String>();
if ((flags & JMF) != 0) {
contentPrefixList.add("javax");
contentPrefixList.add("com.sun");
contentPrefixList.add("com.ibm");
}
if ((flags & FMJ_NATIVE) != 0) {
if (OSUtils.isMa... | public static List<String> contentPrefixList(int flags)
{
final List<String> contentPrefixList = new ArrayList<String>();
if ((flags & JMF) != 0) {
contentPrefixList.add("javax");
contentPrefixList.add("com.sun");
contentPrefixList.add("com.ibm");
}
if ((flags & FMJ_NATIVE) != 0) {
if (OSUtils.isMa... | public static list<string> contentprefixlist(int flags) { final list<string> contentprefixlist = new arraylist<string>(); if ((flags & jmf) != 0) { contentprefixlist.add("javax"); contentprefixlist.add("com.sun"); contentprefixlist.add("com.ibm"); } if ((flags & fmj_native) != 0) { if (osutils.ismacosx() || osutils.isw... | licaon-kter/atalk-android | [
0,
1,
0,
0
] |
26,295 | @Test(groups = "slow", enabled = false)
public void testOverdueStateAndWRITTEN_OFFTag() throws Exception {
// TODO add/remove tag to invoice
} | @Test(groups = "slow", enabled = false)
public void testOverdueStateAndWRITTEN_OFFTag() throws Exception {
} | @test(groups = "slow", enabled = false) public void testoverduestateandwritten_offtag() throws exception { } | kevinpostlewaite/killbill | [
0,
1,
0,
0
] |
26,312 | private String getServerUrl(OpenAPI openAPI, String pathInfo) {
// TO-DO rethink how to manage multiple servers
final String firstServer = openAPIUtils.mapServersToEndpoint(openAPI.getServers()).get(0);
final String apiIdentifier = apiManagerService.getApiIdentifier(pathInfo);
final String swaggerPath = pathInf... | private String getServerUrl(OpenAPI openAPI, String pathInfo) {
final String firstServer = openAPIUtils.mapServersToEndpoint(openAPI.getServers()).get(0);
final String apiIdentifier = apiManagerService.getApiIdentifier(pathInfo);
final String swaggerPath = pathInfo.substring(pathInfo.indexOf(apiIdentifier) + ap... | private string getserverurl(openapi openapi, string pathinfo) { final string firstserver = openapiutils.mapserverstoendpoint(openapi.getservers()).get(0); final string apiidentifier = apimanagerservice.getapiidentifier(pathinfo); final string swaggerpath = pathinfo.substring(pathinfo.indexof(apiidentifier) + apiidentif... | marrmartin/onesaitplatform-cloud | [
1,
0,
0,
0
] |
34,553 | @PostConstruct
public void setup(){
//Do not use getClass() here... a typical weld issue...
endpointUrl=appConfiguration.getBaseEndpoint() + BulkWebService.class.getAnnotation(Path.class).value();
availableMethods= Arrays.asList(Verb.values());
usersEndpoint=userWS.getEndpointUrl();
... | @PostConstruct
public void setup(){
endpointUrl=appConfiguration.getBaseEndpoint() + BulkWebService.class.getAnnotation(Path.class).value();
availableMethods= Arrays.asList(Verb.values());
usersEndpoint=userWS.getEndpointUrl();
groupsEndpoint=groupWS.getEndpointUrl();
... | @postconstruct public void setup(){ endpointurl=appconfiguration.getbaseendpoint() + bulkwebservice.class.getannotation(path.class).value(); availablemethods= arrays.aslist(verb.values()); usersendpoint=userws.getendpointurl(); groupsendpoint=groupws.getendpointurl(); fidodevicesendpoint=fidodevicews.getendpointurl(); ... | linosgian/oxTrust | [
1,
0,
0,
0
] |
10,032 | private void onNetBegin(
BeginFW begin)
{
final long sequence = begin.sequence();
final long acknowledge = begin.acknowledge();
final int maximum = begin.maximum();
final long traceId = begin.traceId();
final lon... | private void onNetBegin(
BeginFW begin)
{
final long sequence = begin.sequence();
final long acknowledge = begin.acknowledge();
final int maximum = begin.maximum();
final long traceId = begin.traceId();
final lon... | private void onnetbegin( beginfw begin) { final long sequence = begin.sequence(); final long acknowledge = begin.acknowledge(); final int maximum = begin.maximum(); final long traceid = begin.traceid(); final long authorization = begin.authorization(); final long affinity = begin.affinity(); assert acknowledge <= seque... | lukefallows/zilla | [
1,
0,
0,
0
] |
18,250 | @Override
public Value evaluate(Context context)
{
Value operand1 = get(0, context);
Value operand2 = get(1, context);
if (operand1.isNumber() && operand2.isList())
{
BigDecimal value1 = operand1.getNumber();
List<Value> value2 = operand2.getList();
return value2.get(value1.intValue());
}
else if... | @Override
public Value evaluate(Context context)
{
Value operand1 = get(0, context);
Value operand2 = get(1, context);
if (operand1.isNumber() && operand2.isList())
{
BigDecimal value1 = operand1.getNumber();
List<Value> value2 = operand2.getList();
return value2.get(value1.intValue());
}
else if... | @override public value evaluate(context context) { value operand1 = get(0, context); value operand2 = get(1, context); if (operand1.isnumber() && operand2.islist()) { bigdecimal value1 = operand1.getnumber(); list<value> value2 = operand2.getlist(); return value2.get(value1.intvalue()); } else if (operand1.isnumber() &... | mauriciotogneri/prefix | [
0,
0,
0,
0
] |
10,131 | @Test
public void test() throws Exception {
// The generated main dex list should contain Main (which is a root) and A (which is a direct
// dependency of Main).
assertEquals(2, mainDexList.size());
assertEquals(A.class.getTypeName(), mainDexList.get(0).getTypeName());
assertEquals(Main.class.getT... | @Test
public void test() throws Exception {
assertEquals(2, mainDexList.size());
assertEquals(A.class.getTypeName(), mainDexList.get(0).getTypeName());
assertEquals(Main.class.getTypeName(), mainDexList.get(1).getTypeName());
R8TestCompileResult compileResult =
testForR8(parameters.get... | @test public void test() throws exception { assertequals(2, maindexlist.size()); assertequals(a.class.gettypename(), maindexlist.get(0).gettypename()); assertequals(main.class.gettypename(), maindexlist.get(1).gettypename()); r8testcompileresult compileresult = testforr8(parameters.getbackend()) .addinnerclasses(getcla... | kami-lang/madex-r8 | [
0,
0,
0,
1
] |
18,378 | public T getAbstractOption() {
// WARNING!! Do not rename this method to getOption(). It breaks
// BeanUtils, which will silently not call setOption. Very annoying!
return abstractOption;
} | public T getAbstractOption() {
return abstractOption;
} | public t getabstractoption() { return abstractoption; } | kupl/starlab-benchmarks | [
0,
0,
1,
0
] |
18,390 | @Override public brooklyn.management.internal.UsageListener apply(String input) {
// TODO Want to use classLoader = mgmt.getCatalog().getRootClassLoader();
ClassLoader classLoader = LocalUsageManager.class.getClassLoader();
Optional<Object> result = Reflections.invokeCons... | @Override public brooklyn.management.internal.UsageListener apply(String input) {
ClassLoader classLoader = LocalUsageManager.class.getClassLoader();
Optional<Object> result = Reflections.invokeConstructorWithArgs(classLoader, input);
if (result.isPresent(... | @override public brooklyn.management.internal.usagelistener apply(string input) { classloader classloader = localusagemanager.class.getclassloader(); optional<object> result = reflections.invokeconstructorwithargs(classloader, input); if (result.ispresent()) { if (result.get() instanceof brooklyn.management.internal.us... | kiuby88/incubator-brooklyn | [
1,
0,
0,
0
] |
2,022 | @Test
public void testUpgradeTables() throws Exception {
TestRMTxStore store = new TestRMTxStore();
store.setDriverClassName("org.apache.derby.jdbc.EmbeddedDriver");
// workaround for the db file deletion problem during the tests
store.setUrl(MessageFormat.format("jdbc:derby:{0};crea... | @Test
public void testUpgradeTables() throws Exception {
TestRMTxStore store = new TestRMTxStore();
store.setDriverClassName("org.apache.derby.jdbc.EmbeddedDriver");
store.setUrl(MessageFormat.format("jdbc:derby:{0};create=true", TEST_DB_NAME));
store.init();
... | @test public void testupgradetables() throws exception { testrmtxstore store = new testrmtxstore(); store.setdriverclassname("org.apache.derby.jdbc.embeddeddriver"); store.seturl(messageformat.format("jdbc:derby:{0};create=true", test_db_name)); store.init(); verifycolumns(store, "cxf_rm_src_sequences", new string[]{"p... | kimjand/cxf | [
1,
0,
0,
0
] |
2,048 | @VisibleForTesting
HeaderCacheElement getHeader() throws ExecutionException, InterruptedException, TimeoutException {
final Future<HeaderCacheElement> deferredResult;
// Optimize for the common case: do a volatile read to peek for a Good cache value
HeaderCacheElement headerCacheUnsync = this.headerCache;... | @VisibleForTesting
HeaderCacheElement getHeader() throws ExecutionException, InterruptedException, TimeoutException {
final Future<HeaderCacheElement> deferredResult;
HeaderCacheElement headerCacheUnsync = this.headerCache;
if (headerCacheUnsync.getCacheState() == CacheState.Good) {
return heade... | @visiblefortesting headercacheelement getheader() throws executionexception, interruptedexception, timeoutexception { final future<headercacheelement> deferredresult; headercacheelement headercacheunsync = this.headercache; if (headercacheunsync.getcachestate() == cachestate.good) { return headercacheunsync; } synchron... | mbrukman/java-bigtable-hbase | [
1,
0,
0,
0
] |
10,315 | static private List<EventStripe> mergeClustersToStripes(Period timeUnitLength, List<EventCluster> preMergedEvents) {
//effectively map from type to (map from description to events)
Map<EventType, SetMultimap< String, EventCluster>> typeMap = new HashMap<>();
for (EventCluster aggregateEvent : pr... | static private List<EventStripe> mergeClustersToStripes(Period timeUnitLength, List<EventCluster> preMergedEvents) {
Map<EventType, SetMultimap< String, EventCluster>> typeMap = new HashMap<>();
for (EventCluster aggregateEvent : preMergedEvents) {
typeMap.computeIfAbsent(aggregateEv... | static private list<eventstripe> mergeclusterstostripes(period timeunitlength, list<eventcluster> premergedevents) { map<eventtype, setmultimap< string, eventcluster>> typemap = new hashmap<>(); for (eventcluster aggregateevent : premergedevents) { typemap.computeifabsent(aggregateevent.geteventtype(), eventtype -> has... | karlmortensen/autopsy | [
1,
0,
0,
0
] |
2,162 | public void storeObjectField(int fieldNumber, Object value)
{
if (value == null)
{
return; // No value so nothing to do
}
ExecutionContext ec = op.getExecutionContext();
ClassLoaderResolver clr = ec.getClassLoaderResolver();
AbstractMemberMetaData mmd = op... | public void storeObjectField(int fieldNumber, Object value)
{
if (value == null)
{
return;
}
ExecutionContext ec = op.getExecutionContext();
ClassLoaderResolver clr = ec.getClassLoaderResolver();
AbstractMemberMetaData mmd = op.getClassMetaData().getMetaDa... | public void storeobjectfield(int fieldnumber, object value) { if (value == null) { return; } executioncontext ec = op.getexecutioncontext(); classloaderresolver clr = ec.getclassloaderresolver(); abstractmembermetadata mmd = op.getclassmetadata().getmetadataformanagedmemberatabsoluteposition(fieldnumber); if (mmd != nu... | meysam/datanucleus-rdbms | [
1,
0,
0,
0
] |
2,180 | public void R_Init (Wad wad, int screenBlocks, boolean detailLevel) {
//MenuManager menu = MenuManager.getInstance();
logger.config("R_InitData");
data.R_InitData (wad);
//UNUSED - gets points from a table.
//logger.config("\nR_InitPointToAngle");
//R_InitPointToAngle ();... | public void R_Init (Wad wad, int screenBlocks, boolean detailLevel) {
logger.config("R_InitData");
data.R_InitData (wad);
R_SetViewSize (screenBlocks, detailLevel);
logger.config("R_InitPlanes");
plane.R_InitPlanes (... | public void r_init (wad wad, int screenblocks, boolean detaillevel) { logger.config("r_initdata"); data.r_initdata (wad); r_setviewsize (screenblocks, detaillevel); logger.config("r_initplanes"); plane.r_initplanes (); logger.config("r_initlighttables"); r_initlighttables (); logger.config("r_initskymap"); r_initskymap... | maehem/Thump | [
1,
0,
0,
0
] |
2,227 | public static void validateInstance(Document d, LSResourceResolver iepdResourceResolver, List<String> schemaPathList) throws SAXException, Exception {
SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
schemaFactory.setResourceResolver(iepdResourceResolver);
L... | public static void validateInstance(Document d, LSResourceResolver iepdResourceResolver, List<String> schemaPathList) throws SAXException, Exception {
SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
schemaFactory.setResourceResolver(iepdResourceResolver);
L... | public static void validateinstance(document d, lsresourceresolver iepdresourceresolver, list<string> schemapathlist) throws saxexception, exception { schemafactory schemafactory = schemafactory.newinstance(xmlconstants.w3c_xml_schema_ns_uri); schemafactory.setresourceresolver(iepdresourceresolver); list<source> source... | mark43/nibrs | [
0,
0,
0,
0
] |
18,713 | @Test
/** TODO this test works if we assume most recent version wins, but semantics TBC */
public void testMoreEntityV2ThenV1GivesV1() throws Exception {
TestResourceUnavailableException.throwIfResourceUnavailable(getClass(), "/brooklyn/osgi/brooklyn-test-osgi-more-entities_0.1.0.jar");
TestReso... | @Test
public void testMoreEntityV2ThenV1GivesV1() throws Exception {
TestResourceUnavailableException.throwIfResourceUnavailable(getClass(), "/brooklyn/osgi/brooklyn-test-osgi-more-entities_0.1.0.jar");
TestResourceUnavailableException.throwIfResourceUnavailable(getClass(), "/brooklyn/osgi/brook... | @test public void testmoreentityv2thenv1givesv1() throws exception { testresourceunavailableexception.throwifresourceunavailable(getclass(), "/brooklyn/osgi/brooklyn-test-osgi-more-entities_0.1.0.jar"); testresourceunavailableexception.throwifresourceunavailable(getclass(), "/brooklyn/osgi/brooklyn-test-osgi-more-entit... | kiuby88/incubator-brooklyn | [
0,
0,
1,
0
] |
10,580 | public synchronized boolean markTaskCompleted (int taskId) {
Job job = getJobForTask(taskId);
if (job == null) {
LOG.error("Could not find a job containing task {}, and therefore could not mark the task as completed.", taskId);
return false;
}
job.completedTasks.a... | public synchronized boolean markTaskCompleted (int taskId) {
Job job = getJobForTask(taskId);
if (job == null) {
LOG.error("Could not find a job containing task {}, and therefore could not mark the task as completed.", taskId);
return false;
}
job.completedTasks.a... | public synchronized boolean marktaskcompleted (int taskid) { job job = getjobfortask(taskid); if (job == null) { log.error("could not find a job containing task {}, and therefore could not mark the task as completed.", taskid); return false; } job.completedtasks.add(taskid); return true; } | mcheung610/r5 | [
1,
0,
0,
0
] |
10,625 | private int translateChannel(Channel input, int inputIndex, FlinkVertex targetVertex,
TezTaskConfig targetVertexConfig, boolean isBroadcast) throws Exception
{
final PlanNode inputPlanNode = input.getSource();
final Iterator<Channel> allInChannels;
allInChannels = Collections.singletonList(input).iterato... | private int translateChannel(Channel input, int inputIndex, FlinkVertex targetVertex,
TezTaskConfig targetVertexConfig, boolean isBroadcast) throws Exception
{
final PlanNode inputPlanNode = input.getSource();
final Iterator<Channel> allInChannels;
allInChannels = Collections.singletonList(input).iterato... | private int translatechannel(channel input, int inputindex, flinkvertex targetvertex, teztaskconfig targetvertexconfig, boolean isbroadcast) throws exception { final plannode inputplannode = input.getsource(); final iterator<channel> allinchannels; allinchannels = collections.singletonlist(input).iterator(); typeserial... | ljzzju/incubator-flink | [
1,
0,
0,
0
] |
10,626 | private void connectJobVertices(Channel channel, int inputNumber,
final FlinkVertex sourceVertex, final TezTaskConfig sourceConfig,
final FlinkVertex targetVertex, final TezTaskConfig targetConfig, boolean isBroadcast)
throws CompilerException {
// -------------- configure the source task's ship stra... | private void connectJobVertices(Channel channel, int inputNumber,
final FlinkVertex sourceVertex, final TezTaskConfig sourceConfig,
final FlinkVertex targetVertex, final TezTaskConfig targetConfig, boolean isBroadcast)
throws CompilerException {
final int outputIndex = sourceConfig.getNumOutputs();... | private void connectjobvertices(channel channel, int inputnumber, final flinkvertex sourcevertex, final teztaskconfig sourceconfig, final flinkvertex targetvertex, final teztaskconfig targetconfig, boolean isbroadcast) throws compilerexception { final int outputindex = sourceconfig.getnumoutputs(); sourceconfig.addoutp... | ljzzju/incubator-flink | [
1,
1,
0,
0
] |
10,732 | @Handler(op = InHeader.USER_TRANSFER_FIELD_REQUEST)
public static void handleUserTransferFieldRequest(Client c, InPacket inPacket) {
Char chr = c.getChr();
if (inPacket.getUnreadAmount() == 0) {
// Coming back from the cash shop
// chr.warp(chr.getOrCreateFieldByCurrentInstanc... | @Handler(op = InHeader.USER_TRANSFER_FIELD_REQUEST)
public static void handleUserTransferFieldRequest(Client c, InPacket inPacket) {
Char chr = c.getChr();
if (inPacket.getUnreadAmount() == 0) {
c.getChannelInstance().addClientInTransfer(c.getChannel(), chr.getId(), c);
... | @handler(op = inheader.user_transfer_field_request) public static void handleusertransferfieldrequest(client c, inpacket inpacket) { char chr = c.getchr(); if (inpacket.getunreadamount() == 0) { c.getchannelinstance().addclientintransfer(c.getchannel(), chr.getid(), c); c.write(clientsocket.migratecommand(true, (short)... | lynsone/swordie | [
1,
0,
1,
0
] |
18,957 | private <T extends Serializable> void sendObject(CommunicationPatternAgent agent,
Connection connection,
String logMessageName, T obj) throws FatalErrorHalt, AbortRound {
byte[] data = null;
data = agent.serialize(obj);
logJson(LogFlag.serialization, "mica-serialize-bytes-" + logMessageName, dat... | private <T extends Serializable> void sendObject(CommunicationPatternAgent agent,
Connection connection,
String logMessageName, T obj) throws FatalErrorHalt, AbortRound {
byte[] data = null;
data = agent.serialize(obj);
logJson(LogFlag.serialization, "mica-serialize-bytes-" + logMessageName, dat... | private <t extends serializable> void sendobject(communicationpatternagent agent, connection connection, string logmessagename, t obj) throws fatalerrorhalt, abortround { byte[] data = null; data = agent.serialize(obj); logjson(logflag.serialization, "mica-serialize-bytes-" + logmessagename, data.length); byte[] length... | mica-gossip/MiCA | [
0,
0,
1,
0
] |
2,602 | @Test
public void testUnionType() throws Exception {
String sql ="SELECT typeof(a) AS t, modeof(a) AS m, drilltypeof(a) AS dt\n" +
"FROM cp.`jsoninput/union/c.json`";
try {
testBuilder()
.optionSettingQueriesForTestQuery("alter session set `exec.enable_union_type` = true")
... | @Test
public void testUnionType() throws Exception {
String sql ="SELECT typeof(a) AS t, modeof(a) AS m, drilltypeof(a) AS dt\n" +
"FROM cp.`jsoninput/union/c.json`";
try {
testBuilder()
.optionSettingQueriesForTestQuery("alter session set `exec.enable_union_type` = true")
... | @test public void testuniontype() throws exception { string sql ="select typeof(a) as t, modeof(a) as m, drilltypeof(a) as dt\n" + "from cp.`jsoninput/union/c.json`"; try { testbuilder() .optionsettingqueriesfortestquery("alter session set `exec.enable_union_type` = true") .sqlquery(sql) .ordered() .baselinecolumns("t"... | julien-faye/drill | [
1,
0,
0,
0
] |
10,862 | @Test
public void test20046() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest40.test20046");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(resp... | @Test
public void test20046() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest40.test20046");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(resp... | @test public void test20046() throws throwable { if (debug) system.out.format("%n%s%n", "regressiontest40.test20046"); org.jsoup.helper.httpconnection.response response0 = null; org.jsoup.helper.httpconnection.response response1 = new org.jsoup.helper.httpconnection.response(response0); org.jsoup.connection.request req... | leusonmario/2022PhDThesis | [
0,
0,
1,
0
] |
10,871 | private void checkNullable() {
if (ConfigurationAnnotations.getNullableType(element).isPresent()) {
report.addWarning("@Nullable on @Produces methods does not do anything");
}
} | private void checkNullable() {
if (ConfigurationAnnotations.getNullableType(element).isPresent()) {
report.addWarning("@Nullable on @Produces methods does not do anything");
}
} | private void checknullable() { if (configurationannotations.getnullabletype(element).ispresent()) { report.addwarning("@nullable on @produces methods does not do anything"); } } | lynnfield/dagger | [
0,
1,
0,
0
] |
19,094 | private IMRIValueListener createValueListener() {
return new IMRIValueListener() {
@Override
public void valueChanged(MRIValueEvent event) {
if (event.getValue() instanceof CompositeData) {
// FIXME: change to a better test of containment?
dispose();
m_repository.movePossibleChildSubscription... | private IMRIValueListener createValueListener() {
return new IMRIValueListener() {
@Override
public void valueChanged(MRIValueEvent event) {
if (event.getValue() instanceof CompositeData) {
dispose();
m_repository.movePossibleChildSubscriptions(UnavailableChildSubscriptions.this);
}
}
... | private imrivaluelistener createvaluelistener() { return new imrivaluelistener() { @override public void valuechanged(mrivalueevent event) { if (event.getvalue() instanceof compositedata) { dispose(); m_repository.movepossiblechildsubscriptions(unavailablechildsubscriptions.this); } } }; } | meghasfdc/jmc | [
1,
0,
0,
0
] |
19,169 | private boolean ruleMatches(String text, String pattern) {
int patternPos = 0;
int textPos = 0;
int patternEnd = pattern.length();
int textEnd = text.length();
boolean containsEndChar = pattern.endsWith("$");
if (containsEndChar) {
patternEnd -= 1;
}
... | private boolean ruleMatches(String text, String pattern) {
int patternPos = 0;
int textPos = 0;
int patternEnd = pattern.length();
int textEnd = text.length();
boolean containsEndChar = pattern.endsWith("$");
if (containsEndChar) {
patternEnd -= 1;
}
... | private boolean rulematches(string text, string pattern) { int patternpos = 0; int textpos = 0; int patternend = pattern.length(); int textend = text.length(); boolean containsendchar = pattern.endswith("$"); if (containsendchar) { patternend -= 1; } while ((patternpos < patternend) && (textpos < textend)) { int wildca... | kovyrin/crawler-commons | [
1,
0,
0,
0
] |
11,110 | private void validateImportPackage(IProgressMonitor monitor) {
IHeader header = getHeader(Constants.IMPORT_PACKAGE);
if (header == null)
return;
BundleDescription desc = fModel.getBundleDescription();
if (desc == null) {
ManifestElement[] elements = header.getElem... | private void validateImportPackage(IProgressMonitor monitor) {
IHeader header = getHeader(Constants.IMPORT_PACKAGE);
if (header == null)
return;
BundleDescription desc = fModel.getBundleDescription();
if (desc == null) {
ManifestElement[] elements = header.getElem... | private void validateimportpackage(iprogressmonitor monitor) { iheader header = getheader(constants.import_package); if (header == null) return; bundledescription desc = fmodel.getbundledescription(); if (desc == null) { manifestelement[] elements = header.getelements(); for (int i = 0; i < elements.length; i++) { vali... | masud-technope/BLIZZARD-Replication-Package-ESEC-FSE2018 | [
1,
0,
0,
0
] |
3,341 | @Override
public boolean onOptionsItemSelected(MenuItem item) {
switch(item.getItemId()) {
case R.id.clean_all:
db.open();
db.drop();
db.close();
break;
case R.id.manage_backup:
db.Backup();
... | @Override
public boolean onOptionsItemSelected(MenuItem item) {
switch(item.getItemId()) {
case R.id.clean_all:
db.open();
db.drop();
db.close();
break;
case R.id.manage_backup:
db.Backup();
... | @override public boolean onoptionsitemselected(menuitem item) { switch(item.getitemid()) { case r.id.clean_all: db.open(); db.drop(); db.close(); break; case r.id.manage_backup: db.backup(); break; case r.id.manage_funds: startactivityforresult(new intent(bilansview.this, bilansstatussetting.class), 1); break; default:... | kkrolczyk/Schowek | [
0,
1,
0,
0
] |
3,342 | private void updateSingleAccount(double amount, String account_name) {
// ok nasty hack here. Currently account have no idea which direction money flows.
// so for now - hardcoded for backwards compatiblility
if (account_name.equals("bankomat")){
status_disp.transfer_resources("karta... | private void updateSingleAccount(double amount, String account_name) {
if (account_name.equals("bankomat")){
status_disp.transfer_resources("karta konto 1", "gotowka", (float) amount);
}
else {
status_disp.reduce_wealth(account_name, (float) amount);
... | private void updatesingleaccount(double amount, string account_name) { if (account_name.equals("bankomat")){ status_disp.transfer_resources("karta konto 1", "gotowka", (float) amount); } else { status_disp.reduce_wealth(account_name, (float) amount); log.e(tag, account_name + " " + amount); } } | kkrolczyk/Schowek | [
1,
0,
1,
0
] |
19,798 | protected void onDragonDeath(EnderDragon dragon) {
log("The dragon died.");
if (_stageNumber != 11) {
log("But we're not in stage 11, so it doesn't count.");
return;
}
if (DragonFight.CONFIG.FIGHT_OWNER == null) {
log("But nobody owns the fight, so it ... | protected void onDragonDeath(EnderDragon dragon) {
log("The dragon died.");
if (_stageNumber != 11) {
log("But we're not in stage 11, so it doesn't count.");
return;
}
if (DragonFight.CONFIG.FIGHT_OWNER == null) {
log("But nobody owns the fight, so it ... | protected void ondragondeath(enderdragon dragon) { log("the dragon died."); if (_stagenumber != 11) { log("but we're not in stage 11, so it doesn't count."); return; } if (dragonfight.config.fight_owner == null) { log("but nobody owns the fight, so it doesn't count."); return; } offlineplayer offlineplayer = bukkit.get... | kadenscott/DragonFight | [
1,
0,
0,
0
] |
11,718 | @Override
protected void processAuthenticationResponse(HttpServletRequest request,
HttpServletResponse response, AuthenticationContext context)
throws AuthenticationFailedException {
try {
Map<String, String> authenticatorProperties = ... | @Override
protected void processAuthenticationResponse(HttpServletRequest request,
HttpServletResponse response, AuthenticationContext context)
throws AuthenticationFailedException {
try {
Map<String, String> authenticatorProperties = ... | @override protected void processauthenticationresponse(httpservletrequest request, httpservletresponse response, authenticationcontext context) throws authenticationfailedexception { try { map<string, string> authenticatorproperties = context.getauthenticatorproperties(); string clientid = authenticatorproperties.get(o... | manjulaRathnayaka/carbon-identity | [
0,
1,
0,
0
] |
11,781 | public void displayStructure(QueryControl q_cntl, int index, HttpUtils h, XView xv, String cntl)
throws MetadataValidationException, MetadataException {
System.out.println("Related QueryContents");
this.displayStructureHeader(index, xv);
Metadata m = getMetadata();
boolean ob... | public void displayStructure(QueryControl q_cntl, int index, HttpUtils h, XView xv, String cntl)
throws MetadataValidationException, MetadataException {
System.out.println("Related QueryContents");
this.displayStructureHeader(index, xv);
Metadata m = getMetadata();
boolean ob... | public void displaystructure(querycontrol q_cntl, int index, httputils h, xview xv, string cntl) throws metadatavalidationexception, metadataexception { system.out.println("related querycontents"); this.displaystructureheader(index, xv); metadata m = getmetadata(); boolean object_refs = m.isobjectrefsonly(); if (m.getw... | kef/hieos | [
1,
1,
0,
0
] |
3,600 | public RemoteEventData[] readAhead(int maxEvents)
throws IOException, ClassNotFoundException
{
boolean IOExceptionCaught = false;
stateCheck();
if (debugState) {
assertInvariants();
}
// Check if empty
if (isEmpty())
throw new NoSuchElementException();
lon... | public RemoteEventData[] readAhead(int maxEvents)
throws IOException, ClassNotFoundException
{
boolean IOExceptionCaught = false;
stateCheck();
if (debugState) {
assertInvariants();
}
if (isEmpty())
throw new NoSuchElementException();
long readCount = rcou... | public remoteeventdata[] readahead(int maxevents) throws ioexception, classnotfoundexception { boolean ioexceptioncaught = false; statecheck(); if (debugstate) { assertinvariants(); } if (isempty()) throw new nosuchelementexception(); long readcount = rcount; long readposition = rpos; long lognum = getlognum(readcount)... | mkleczek/river | [
0,
1,
0,
0
] |
11,842 | public LoginContext authenticate(String user, char[] password, String realm) {
// consider modules: Krb5LoginModule, LdapLoginModule, NTLoginModule,
// JndiLoginModule
// ...sun...
PassiveCallbackHandler cbh = new PassiveCallbackHandler(user, password);
LoginContext lc;
try {
lc = new LoginContext(realm,... | public LoginContext authenticate(String user, char[] password, String realm) {
PassiveCallbackHandler cbh = new PassiveCallbackHandler(user, password);
LoginContext lc;
try {
lc = new LoginContext(realm, cbh);
} catch (LoginException e) {
LOG.error("Exception during new LoginContext()", e);
retur... | public logincontext authenticate(string user, char[] password, string realm) { passivecallbackhandler cbh = new passivecallbackhandler(user, password); logincontext lc; try { lc = new logincontext(realm, cbh); } catch (loginexception e) { log.error("exception during new logincontext()", e); return null; } try { lc.logi... | luca-vercelli/java-web-template | [
0,
0,
1,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.