text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
{"mithril.js":"sha256-wibUsKgMpeO7Ib9CucoRbGhPNWlfdgBIHustLEJUqe0=","mithril.min.js":"sha256-lBAr08zsUwdCoasSb/ucQWjegD9rQMUVFmyNovcDcWE="} | json |
The startup-within-a-big-company is a narrative that's becoming increasingly popular, but Sohel I S, CEO of the property portal HDFC RED, feels that six years on, the mindset genuinely applies to his organisation, where the average age of the team is still 28.
"We're able to make decisions quickly and don't have to go through so much hierarchy and we've had to be very fiscally responsible," Sohel tells Gadgets 360. This also helped the company have a relatively narrow focus from the beginning, something he says helped a lot.
While many of the best known companies in the property space in India got their start in the rental market, HDFC RED stayed out of that segment, focused instead on the buying and selling of private homes from the beginning.
Last year, Housing.com announced layoffs and shut down its rentals; visit most of the other popular sites and the first option you now see is "Buy". In some ways, RED was ahead of the time when it launched and Sohel sees the current trend as a validation of its business model.
"When we were getting started we talked about what all we should be doing, and we were clear that we aren't going to try and do everything at once," he says. "The problem with rentals is that there is a lot of demand, but the supply is very erratic. You're spending money to acquire each listing, but that money is only good for about three weeks. In that much time, any house which is in a decent condition, where the rent is reasonable, goes off the market."
"On top of that, the listing will be there on a dozen sites, and you're all spending money to improve the quality of the listing and bring information," he adds. "It's just not really practical."
On the other hand, the supply side for selling houses is a lot better, he explains. For one thing, builders are ready to pay to be on the platform. Additionally, you're capturing the data for an entire project and not just a single house. And of course, the listings are live for a lot longer, so the money that is spent on getting and maintaining them is a lot lower in the long term.
Additionally, Sohel continues, the builders themselves are very enthusiastic about adopting technology. It’s a cost effective way to grow, and in a market where buyers are often not purchasing locally anymore – buying property in their hometowns while living elsewhere, for example – technology becomes essential to finding homes.
| english |
/**
*/
package at.fhj.gaar.androidapp.appDsl;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
/**
* <!-- begin-user-doc -->
* The <b>Package</b> for the model.
* It contains accessors for the meta objects to represent
* <ul>
* <li>each class,</li>
* <li>each feature of each class,</li>
* <li>each enum,</li>
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.AppDslFactory
* @model kind="package"
* @generated
*/
public interface AppDslPackage extends EPackage
{
/**
* The package name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNAME = "appDsl";
/**
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNS_URI = "http://www.fhj.at/gaar/androidapp/AppDsl";
/**
* The package namespace name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNS_PREFIX = "appDsl";
/**
* The singleton instance of the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
AppDslPackage eINSTANCE = at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl.init();
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.AndroidAppProjectImpl <em>Android App Project</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.AndroidAppProjectImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getAndroidAppProject()
* @generated
*/
int ANDROID_APP_PROJECT = 0;
/**
* The feature id for the '<em><b>Applications</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ANDROID_APP_PROJECT__APPLICATIONS = 0;
/**
* The number of structural features of the '<em>Android App Project</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ANDROID_APP_PROJECT_FEATURE_COUNT = 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationImpl <em>Application</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplication()
* @generated
*/
int APPLICATION = 1;
/**
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION__NAME = 0;
/**
* The feature id for the '<em><b>Attributes</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION__ATTRIBUTES = 1;
/**
* The number of structural features of the '<em>Application</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_FEATURE_COUNT = 2;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationAttributeImpl <em>Application Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationAttribute()
* @generated
*/
int APPLICATION_ATTRIBUTE = 2;
/**
* The number of structural features of the '<em>Application Attribute</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_ATTRIBUTE_FEATURE_COUNT = 0;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationMinSdkImpl <em>Application Min Sdk</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationMinSdkImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationMinSdk()
* @generated
*/
int APPLICATION_MIN_SDK = 3;
/**
* The feature id for the '<em><b>Min Sdk</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_MIN_SDK__MIN_SDK = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Application Min Sdk</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_MIN_SDK_FEATURE_COUNT = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationTargetSdkImpl <em>Application Target Sdk</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationTargetSdkImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationTargetSdk()
* @generated
*/
int APPLICATION_TARGET_SDK = 4;
/**
* The feature id for the '<em><b>Target Sdk</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_TARGET_SDK__TARGET_SDK = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Application Target Sdk</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_TARGET_SDK_FEATURE_COUNT = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationCompileSdkImpl <em>Application Compile Sdk</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationCompileSdkImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationCompileSdk()
* @generated
*/
int APPLICATION_COMPILE_SDK = 5;
/**
* The feature id for the '<em><b>Compile Sdk</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_COMPILE_SDK__COMPILE_SDK = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Application Compile Sdk</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_COMPILE_SDK_FEATURE_COUNT = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationPermissionListImpl <em>Application Permission List</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationPermissionListImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationPermissionList()
* @generated
*/
int APPLICATION_PERMISSION_LIST = 6;
/**
* The feature id for the '<em><b>Permissions</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_PERMISSION_LIST__PERMISSIONS = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Application Permission List</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_PERMISSION_LIST_FEATURE_COUNT = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationElementListImpl <em>Application Element List</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationElementListImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationElementList()
* @generated
*/
int APPLICATION_ELEMENT_LIST = 7;
/**
* The feature id for the '<em><b>Elements</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_ELEMENT_LIST__ELEMENTS = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Application Element List</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_ELEMENT_LIST_FEATURE_COUNT = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationMainActivityImpl <em>Application Main Activity</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationMainActivityImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationMainActivity()
* @generated
*/
int APPLICATION_MAIN_ACTIVITY = 8;
/**
* The feature id for the '<em><b>Launcher Activity</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_MAIN_ACTIVITY__LAUNCHER_ACTIVITY = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Application Main Activity</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_MAIN_ACTIVITY_FEATURE_COUNT = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.PermissionImpl <em>Permission</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.PermissionImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getPermission()
* @generated
*/
int PERMISSION = 9;
/**
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int PERMISSION__NAME = 0;
/**
* The number of structural features of the '<em>Permission</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int PERMISSION_FEATURE_COUNT = 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationElementImpl <em>Application Element</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationElementImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationElement()
* @generated
*/
int APPLICATION_ELEMENT = 10;
/**
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_ELEMENT__NAME = 0;
/**
* The number of structural features of the '<em>Application Element</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_ELEMENT_FEATURE_COUNT = 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActivityImpl <em>Activity</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ActivityImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActivity()
* @generated
*/
int ACTIVITY = 11;
/**
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ACTIVITY__NAME = APPLICATION_ELEMENT__NAME;
/**
* The feature id for the '<em><b>Attributes</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ACTIVITY__ATTRIBUTES = APPLICATION_ELEMENT_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Activity</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ACTIVITY_FEATURE_COUNT = APPLICATION_ELEMENT_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverImpl <em>Broadcast Receiver</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getBroadcastReceiver()
* @generated
*/
int BROADCAST_RECEIVER = 12;
/**
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BROADCAST_RECEIVER__NAME = APPLICATION_ELEMENT__NAME;
/**
* The feature id for the '<em><b>Attributes</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BROADCAST_RECEIVER__ATTRIBUTES = APPLICATION_ELEMENT_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Broadcast Receiver</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BROADCAST_RECEIVER_FEATURE_COUNT = APPLICATION_ELEMENT_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ServiceImpl <em>Service</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ServiceImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getService()
* @generated
*/
int SERVICE = 13;
/**
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SERVICE__NAME = APPLICATION_ELEMENT__NAME;
/**
* The feature id for the '<em><b>Attributes</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SERVICE__ATTRIBUTES = APPLICATION_ELEMENT_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Service</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SERVICE_FEATURE_COUNT = APPLICATION_ELEMENT_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActivityAttributeImpl <em>Activity Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ActivityAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActivityAttribute()
* @generated
*/
int ACTIVITY_ATTRIBUTE = 14;
/**
* The number of structural features of the '<em>Activity Attribute</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ACTIVITY_ATTRIBUTE_FEATURE_COUNT = 0;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverAttributeImpl <em>Broadcast Receiver Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getBroadcastReceiverAttribute()
* @generated
*/
int BROADCAST_RECEIVER_ATTRIBUTE = 15;
/**
* The number of structural features of the '<em>Broadcast Receiver Attribute</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BROADCAST_RECEIVER_ATTRIBUTE_FEATURE_COUNT = 0;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ServiceAttributeImpl <em>Service Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ServiceAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getServiceAttribute()
* @generated
*/
int SERVICE_ATTRIBUTE = 16;
/**
* The number of structural features of the '<em>Service Attribute</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SERVICE_ATTRIBUTE_FEATURE_COUNT = 0;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ElementEnabledAttributeImpl <em>Element Enabled Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ElementEnabledAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getElementEnabledAttribute()
* @generated
*/
int ELEMENT_ENABLED_ATTRIBUTE = 17;
/**
* The feature id for the '<em><b>Enabled</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ELEMENT_ENABLED_ATTRIBUTE__ENABLED = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Element Enabled Attribute</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ELEMENT_ENABLED_ATTRIBUTE_FEATURE_COUNT = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ElementExportedAttributeImpl <em>Element Exported Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ElementExportedAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getElementExportedAttribute()
* @generated
*/
int ELEMENT_EXPORTED_ATTRIBUTE = 18;
/**
* The feature id for the '<em><b>Exported</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ELEMENT_EXPORTED_ATTRIBUTE__EXPORTED = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Element Exported Attribute</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ELEMENT_EXPORTED_ATTRIBUTE_FEATURE_COUNT = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ElementLabelAttributeImpl <em>Element Label Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ElementLabelAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getElementLabelAttribute()
* @generated
*/
int ELEMENT_LABEL_ATTRIBUTE = 19;
/**
* The feature id for the '<em><b>Title</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ELEMENT_LABEL_ATTRIBUTE__TITLE = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Element Label Attribute</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ELEMENT_LABEL_ATTRIBUTE_FEATURE_COUNT = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ElementIntentListImpl <em>Element Intent List</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ElementIntentListImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getElementIntentList()
* @generated
*/
int ELEMENT_INTENT_LIST = 20;
/**
* The feature id for the '<em><b>Intents</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ELEMENT_INTENT_LIST__INTENTS = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Element Intent List</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ELEMENT_INTENT_LIST_FEATURE_COUNT = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.IntentImpl <em>Intent</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.IntentImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getIntent()
* @generated
*/
int INTENT = 21;
/**
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int INTENT__NAME = 0;
/**
* The number of structural features of the '<em>Intent</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int INTENT_FEATURE_COUNT = 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActivityParentAttributeImpl <em>Activity Parent Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ActivityParentAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActivityParentAttribute()
* @generated
*/
int ACTIVITY_PARENT_ATTRIBUTE = 22;
/**
* The feature id for the '<em><b>Parent</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ACTIVITY_PARENT_ATTRIBUTE__PARENT = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Activity Parent Attribute</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ACTIVITY_PARENT_ATTRIBUTE_FEATURE_COUNT = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActivityLayoutAttributeImpl <em>Activity Layout Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ActivityLayoutAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActivityLayoutAttribute()
* @generated
*/
int ACTIVITY_LAYOUT_ATTRIBUTE = 23;
/**
* The feature id for the '<em><b>Layout Elements</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ACTIVITY_LAYOUT_ATTRIBUTE__LAYOUT_ELEMENTS = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Activity Layout Attribute</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ACTIVITY_LAYOUT_ATTRIBUTE_FEATURE_COUNT = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.LayoutElementImpl <em>Layout Element</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.LayoutElementImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getLayoutElement()
* @generated
*/
int LAYOUT_ELEMENT = 24;
/**
* The number of structural features of the '<em>Layout Element</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int LAYOUT_ELEMENT_FEATURE_COUNT = 0;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ButtonImpl <em>Button</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ButtonImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getButton()
* @generated
*/
int BUTTON = 25;
/**
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BUTTON__NAME = LAYOUT_ELEMENT_FEATURE_COUNT + 0;
/**
* The feature id for the '<em><b>Attributes</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BUTTON__ATTRIBUTES = LAYOUT_ELEMENT_FEATURE_COUNT + 1;
/**
* The number of structural features of the '<em>Button</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BUTTON_FEATURE_COUNT = LAYOUT_ELEMENT_FEATURE_COUNT + 2;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ButtonAttributeImpl <em>Button Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ButtonAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getButtonAttribute()
* @generated
*/
int BUTTON_ATTRIBUTE = 26;
/**
* The number of structural features of the '<em>Button Attribute</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BUTTON_ATTRIBUTE_FEATURE_COUNT = 0;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ButtonLabelAttributeImpl <em>Button Label Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ButtonLabelAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getButtonLabelAttribute()
* @generated
*/
int BUTTON_LABEL_ATTRIBUTE = 27;
/**
* The feature id for the '<em><b>Title</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BUTTON_LABEL_ATTRIBUTE__TITLE = BUTTON_ATTRIBUTE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Button Label Attribute</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BUTTON_LABEL_ATTRIBUTE_FEATURE_COUNT = BUTTON_ATTRIBUTE_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ButtonActionAttributeImpl <em>Button Action Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ButtonActionAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getButtonActionAttribute()
* @generated
*/
int BUTTON_ACTION_ATTRIBUTE = 28;
/**
* The feature id for the '<em><b>Action</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BUTTON_ACTION_ATTRIBUTE__ACTION = BUTTON_ATTRIBUTE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Button Action Attribute</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BUTTON_ACTION_ATTRIBUTE_FEATURE_COUNT = BUTTON_ATTRIBUTE_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.SpacerImpl <em>Spacer</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.SpacerImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getSpacer()
* @generated
*/
int SPACER = 29;
/**
* The number of structural features of the '<em>Spacer</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SPACER_FEATURE_COUNT = LAYOUT_ELEMENT_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.TextImpl <em>Text</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.TextImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getText()
* @generated
*/
int TEXT = 30;
/**
* The feature id for the '<em><b>Text</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TEXT__TEXT = LAYOUT_ELEMENT_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Text</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TEXT_FEATURE_COUNT = LAYOUT_ELEMENT_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.LayoutElementClickActionImpl <em>Layout Element Click Action</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.LayoutElementClickActionImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getLayoutElementClickAction()
* @generated
*/
int LAYOUT_ELEMENT_CLICK_ACTION = 31;
/**
* The number of structural features of the '<em>Layout Element Click Action</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int LAYOUT_ELEMENT_CLICK_ACTION_FEATURE_COUNT = 0;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverActionAttributeImpl <em>Broadcast Receiver Action Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverActionAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getBroadcastReceiverActionAttribute()
* @generated
*/
int BROADCAST_RECEIVER_ACTION_ATTRIBUTE = 32;
/**
* The feature id for the '<em><b>Action</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BROADCAST_RECEIVER_ACTION_ATTRIBUTE__ACTION = BROADCAST_RECEIVER_ATTRIBUTE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Broadcast Receiver Action Attribute</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BROADCAST_RECEIVER_ACTION_ATTRIBUTE_FEATURE_COUNT = BROADCAST_RECEIVER_ATTRIBUTE_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverActionImpl <em>Broadcast Receiver Action</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverActionImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getBroadcastReceiverAction()
* @generated
*/
int BROADCAST_RECEIVER_ACTION = 33;
/**
* The number of structural features of the '<em>Broadcast Receiver Action</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BROADCAST_RECEIVER_ACTION_FEATURE_COUNT = 0;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActionShowToastImpl <em>Action Show Toast</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ActionShowToastImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActionShowToast()
* @generated
*/
int ACTION_SHOW_TOAST = 34;
/**
* The feature id for the '<em><b>Toast Text</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ACTION_SHOW_TOAST__TOAST_TEXT = LAYOUT_ELEMENT_CLICK_ACTION_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Action Show Toast</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ACTION_SHOW_TOAST_FEATURE_COUNT = LAYOUT_ELEMENT_CLICK_ACTION_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActionStartActivityImpl <em>Action Start Activity</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ActionStartActivityImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActionStartActivity()
* @generated
*/
int ACTION_START_ACTIVITY = 35;
/**
* The feature id for the '<em><b>Activity</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ACTION_START_ACTIVITY__ACTIVITY = LAYOUT_ELEMENT_CLICK_ACTION_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Action Start Activity</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ACTION_START_ACTIVITY_FEATURE_COUNT = LAYOUT_ELEMENT_CLICK_ACTION_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActionStartServiceImpl <em>Action Start Service</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ActionStartServiceImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActionStartService()
* @generated
*/
int ACTION_START_SERVICE = 36;
/**
* The feature id for the '<em><b>Service</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ACTION_START_SERVICE__SERVICE = LAYOUT_ELEMENT_CLICK_ACTION_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Action Start Service</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ACTION_START_SERVICE_FEATURE_COUNT = LAYOUT_ELEMENT_CLICK_ACTION_FEATURE_COUNT + 1;
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.AndroidAppProject <em>Android App Project</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Android App Project</em>'.
* @see at.fhj.gaar.androidapp.appDsl.AndroidAppProject
* @generated
*/
EClass getAndroidAppProject();
/**
* Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.AndroidAppProject#getApplications <em>Applications</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Applications</em>'.
* @see at.fhj.gaar.androidapp.appDsl.AndroidAppProject#getApplications()
* @see #getAndroidAppProject()
* @generated
*/
EReference getAndroidAppProject_Applications();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.Application <em>Application</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Application</em>'.
* @see at.fhj.gaar.androidapp.appDsl.Application
* @generated
*/
EClass getApplication();
/**
* Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.Application#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name</em>'.
* @see at.fhj.gaar.androidapp.appDsl.Application#getName()
* @see #getApplication()
* @generated
*/
EAttribute getApplication_Name();
/**
* Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.Application#getAttributes <em>Attributes</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Attributes</em>'.
* @see at.fhj.gaar.androidapp.appDsl.Application#getAttributes()
* @see #getApplication()
* @generated
*/
EReference getApplication_Attributes();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ApplicationAttribute <em>Application Attribute</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Application Attribute</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ApplicationAttribute
* @generated
*/
EClass getApplicationAttribute();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ApplicationMinSdk <em>Application Min Sdk</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Application Min Sdk</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ApplicationMinSdk
* @generated
*/
EClass getApplicationMinSdk();
/**
* Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ApplicationMinSdk#getMinSdk <em>Min Sdk</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Min Sdk</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ApplicationMinSdk#getMinSdk()
* @see #getApplicationMinSdk()
* @generated
*/
EAttribute getApplicationMinSdk_MinSdk();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ApplicationTargetSdk <em>Application Target Sdk</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Application Target Sdk</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ApplicationTargetSdk
* @generated
*/
EClass getApplicationTargetSdk();
/**
* Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ApplicationTargetSdk#getTargetSdk <em>Target Sdk</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Target Sdk</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ApplicationTargetSdk#getTargetSdk()
* @see #getApplicationTargetSdk()
* @generated
*/
EAttribute getApplicationTargetSdk_TargetSdk();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ApplicationCompileSdk <em>Application Compile Sdk</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Application Compile Sdk</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ApplicationCompileSdk
* @generated
*/
EClass getApplicationCompileSdk();
/**
* Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ApplicationCompileSdk#getCompileSdk <em>Compile Sdk</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Compile Sdk</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ApplicationCompileSdk#getCompileSdk()
* @see #getApplicationCompileSdk()
* @generated
*/
EAttribute getApplicationCompileSdk_CompileSdk();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ApplicationPermissionList <em>Application Permission List</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Application Permission List</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ApplicationPermissionList
* @generated
*/
EClass getApplicationPermissionList();
/**
* Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.ApplicationPermissionList#getPermissions <em>Permissions</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Permissions</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ApplicationPermissionList#getPermissions()
* @see #getApplicationPermissionList()
* @generated
*/
EReference getApplicationPermissionList_Permissions();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ApplicationElementList <em>Application Element List</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Application Element List</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ApplicationElementList
* @generated
*/
EClass getApplicationElementList();
/**
* Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.ApplicationElementList#getElements <em>Elements</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Elements</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ApplicationElementList#getElements()
* @see #getApplicationElementList()
* @generated
*/
EReference getApplicationElementList_Elements();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ApplicationMainActivity <em>Application Main Activity</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Application Main Activity</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ApplicationMainActivity
* @generated
*/
EClass getApplicationMainActivity();
/**
* Returns the meta object for the reference '{@link at.fhj.gaar.androidapp.appDsl.ApplicationMainActivity#getLauncherActivity <em>Launcher Activity</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the reference '<em>Launcher Activity</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ApplicationMainActivity#getLauncherActivity()
* @see #getApplicationMainActivity()
* @generated
*/
EReference getApplicationMainActivity_LauncherActivity();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.Permission <em>Permission</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Permission</em>'.
* @see at.fhj.gaar.androidapp.appDsl.Permission
* @generated
*/
EClass getPermission();
/**
* Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.Permission#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name</em>'.
* @see at.fhj.gaar.androidapp.appDsl.Permission#getName()
* @see #getPermission()
* @generated
*/
EAttribute getPermission_Name();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ApplicationElement <em>Application Element</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Application Element</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ApplicationElement
* @generated
*/
EClass getApplicationElement();
/**
* Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ApplicationElement#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ApplicationElement#getName()
* @see #getApplicationElement()
* @generated
*/
EAttribute getApplicationElement_Name();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.Activity <em>Activity</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Activity</em>'.
* @see at.fhj.gaar.androidapp.appDsl.Activity
* @generated
*/
EClass getActivity();
/**
* Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.Activity#getAttributes <em>Attributes</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Attributes</em>'.
* @see at.fhj.gaar.androidapp.appDsl.Activity#getAttributes()
* @see #getActivity()
* @generated
*/
EReference getActivity_Attributes();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.BroadcastReceiver <em>Broadcast Receiver</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Broadcast Receiver</em>'.
* @see at.fhj.gaar.androidapp.appDsl.BroadcastReceiver
* @generated
*/
EClass getBroadcastReceiver();
/**
* Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.BroadcastReceiver#getAttributes <em>Attributes</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Attributes</em>'.
* @see at.fhj.gaar.androidapp.appDsl.BroadcastReceiver#getAttributes()
* @see #getBroadcastReceiver()
* @generated
*/
EReference getBroadcastReceiver_Attributes();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.Service <em>Service</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Service</em>'.
* @see at.fhj.gaar.androidapp.appDsl.Service
* @generated
*/
EClass getService();
/**
* Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.Service#getAttributes <em>Attributes</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Attributes</em>'.
* @see at.fhj.gaar.androidapp.appDsl.Service#getAttributes()
* @see #getService()
* @generated
*/
EReference getService_Attributes();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ActivityAttribute <em>Activity Attribute</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Activity Attribute</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ActivityAttribute
* @generated
*/
EClass getActivityAttribute();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.BroadcastReceiverAttribute <em>Broadcast Receiver Attribute</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Broadcast Receiver Attribute</em>'.
* @see at.fhj.gaar.androidapp.appDsl.BroadcastReceiverAttribute
* @generated
*/
EClass getBroadcastReceiverAttribute();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ServiceAttribute <em>Service Attribute</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Service Attribute</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ServiceAttribute
* @generated
*/
EClass getServiceAttribute();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ElementEnabledAttribute <em>Element Enabled Attribute</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Element Enabled Attribute</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ElementEnabledAttribute
* @generated
*/
EClass getElementEnabledAttribute();
/**
* Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ElementEnabledAttribute#isEnabled <em>Enabled</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Enabled</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ElementEnabledAttribute#isEnabled()
* @see #getElementEnabledAttribute()
* @generated
*/
EAttribute getElementEnabledAttribute_Enabled();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ElementExportedAttribute <em>Element Exported Attribute</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Element Exported Attribute</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ElementExportedAttribute
* @generated
*/
EClass getElementExportedAttribute();
/**
* Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ElementExportedAttribute#isExported <em>Exported</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Exported</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ElementExportedAttribute#isExported()
* @see #getElementExportedAttribute()
* @generated
*/
EAttribute getElementExportedAttribute_Exported();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ElementLabelAttribute <em>Element Label Attribute</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Element Label Attribute</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ElementLabelAttribute
* @generated
*/
EClass getElementLabelAttribute();
/**
* Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ElementLabelAttribute#getTitle <em>Title</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Title</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ElementLabelAttribute#getTitle()
* @see #getElementLabelAttribute()
* @generated
*/
EAttribute getElementLabelAttribute_Title();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ElementIntentList <em>Element Intent List</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Element Intent List</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ElementIntentList
* @generated
*/
EClass getElementIntentList();
/**
* Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.ElementIntentList#getIntents <em>Intents</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Intents</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ElementIntentList#getIntents()
* @see #getElementIntentList()
* @generated
*/
EReference getElementIntentList_Intents();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.Intent <em>Intent</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Intent</em>'.
* @see at.fhj.gaar.androidapp.appDsl.Intent
* @generated
*/
EClass getIntent();
/**
* Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.Intent#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name</em>'.
* @see at.fhj.gaar.androidapp.appDsl.Intent#getName()
* @see #getIntent()
* @generated
*/
EAttribute getIntent_Name();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ActivityParentAttribute <em>Activity Parent Attribute</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Activity Parent Attribute</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ActivityParentAttribute
* @generated
*/
EClass getActivityParentAttribute();
/**
* Returns the meta object for the reference '{@link at.fhj.gaar.androidapp.appDsl.ActivityParentAttribute#getParent <em>Parent</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the reference '<em>Parent</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ActivityParentAttribute#getParent()
* @see #getActivityParentAttribute()
* @generated
*/
EReference getActivityParentAttribute_Parent();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ActivityLayoutAttribute <em>Activity Layout Attribute</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Activity Layout Attribute</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ActivityLayoutAttribute
* @generated
*/
EClass getActivityLayoutAttribute();
/**
* Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.ActivityLayoutAttribute#getLayoutElements <em>Layout Elements</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Layout Elements</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ActivityLayoutAttribute#getLayoutElements()
* @see #getActivityLayoutAttribute()
* @generated
*/
EReference getActivityLayoutAttribute_LayoutElements();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.LayoutElement <em>Layout Element</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Layout Element</em>'.
* @see at.fhj.gaar.androidapp.appDsl.LayoutElement
* @generated
*/
EClass getLayoutElement();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.Button <em>Button</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Button</em>'.
* @see at.fhj.gaar.androidapp.appDsl.Button
* @generated
*/
EClass getButton();
/**
* Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.Button#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name</em>'.
* @see at.fhj.gaar.androidapp.appDsl.Button#getName()
* @see #getButton()
* @generated
*/
EAttribute getButton_Name();
/**
* Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.Button#getAttributes <em>Attributes</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Attributes</em>'.
* @see at.fhj.gaar.androidapp.appDsl.Button#getAttributes()
* @see #getButton()
* @generated
*/
EReference getButton_Attributes();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ButtonAttribute <em>Button Attribute</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Button Attribute</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ButtonAttribute
* @generated
*/
EClass getButtonAttribute();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ButtonLabelAttribute <em>Button Label Attribute</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Button Label Attribute</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ButtonLabelAttribute
* @generated
*/
EClass getButtonLabelAttribute();
/**
* Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ButtonLabelAttribute#getTitle <em>Title</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Title</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ButtonLabelAttribute#getTitle()
* @see #getButtonLabelAttribute()
* @generated
*/
EAttribute getButtonLabelAttribute_Title();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ButtonActionAttribute <em>Button Action Attribute</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Button Action Attribute</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ButtonActionAttribute
* @generated
*/
EClass getButtonActionAttribute();
/**
* Returns the meta object for the containment reference '{@link at.fhj.gaar.androidapp.appDsl.ButtonActionAttribute#getAction <em>Action</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Action</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ButtonActionAttribute#getAction()
* @see #getButtonActionAttribute()
* @generated
*/
EReference getButtonActionAttribute_Action();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.Spacer <em>Spacer</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Spacer</em>'.
* @see at.fhj.gaar.androidapp.appDsl.Spacer
* @generated
*/
EClass getSpacer();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.Text <em>Text</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Text</em>'.
* @see at.fhj.gaar.androidapp.appDsl.Text
* @generated
*/
EClass getText();
/**
* Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.Text#getText <em>Text</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Text</em>'.
* @see at.fhj.gaar.androidapp.appDsl.Text#getText()
* @see #getText()
* @generated
*/
EAttribute getText_Text();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.LayoutElementClickAction <em>Layout Element Click Action</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Layout Element Click Action</em>'.
* @see at.fhj.gaar.androidapp.appDsl.LayoutElementClickAction
* @generated
*/
EClass getLayoutElementClickAction();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.BroadcastReceiverActionAttribute <em>Broadcast Receiver Action Attribute</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Broadcast Receiver Action Attribute</em>'.
* @see at.fhj.gaar.androidapp.appDsl.BroadcastReceiverActionAttribute
* @generated
*/
EClass getBroadcastReceiverActionAttribute();
/**
* Returns the meta object for the containment reference '{@link at.fhj.gaar.androidapp.appDsl.BroadcastReceiverActionAttribute#getAction <em>Action</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Action</em>'.
* @see at.fhj.gaar.androidapp.appDsl.BroadcastReceiverActionAttribute#getAction()
* @see #getBroadcastReceiverActionAttribute()
* @generated
*/
EReference getBroadcastReceiverActionAttribute_Action();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.BroadcastReceiverAction <em>Broadcast Receiver Action</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Broadcast Receiver Action</em>'.
* @see at.fhj.gaar.androidapp.appDsl.BroadcastReceiverAction
* @generated
*/
EClass getBroadcastReceiverAction();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ActionShowToast <em>Action Show Toast</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Action Show Toast</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ActionShowToast
* @generated
*/
EClass getActionShowToast();
/**
* Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ActionShowToast#getToastText <em>Toast Text</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Toast Text</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ActionShowToast#getToastText()
* @see #getActionShowToast()
* @generated
*/
EAttribute getActionShowToast_ToastText();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ActionStartActivity <em>Action Start Activity</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Action Start Activity</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ActionStartActivity
* @generated
*/
EClass getActionStartActivity();
/**
* Returns the meta object for the reference '{@link at.fhj.gaar.androidapp.appDsl.ActionStartActivity#getActivity <em>Activity</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the reference '<em>Activity</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ActionStartActivity#getActivity()
* @see #getActionStartActivity()
* @generated
*/
EReference getActionStartActivity_Activity();
/**
* Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ActionStartService <em>Action Start Service</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Action Start Service</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ActionStartService
* @generated
*/
EClass getActionStartService();
/**
* Returns the meta object for the reference '{@link at.fhj.gaar.androidapp.appDsl.ActionStartService#getService <em>Service</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the reference '<em>Service</em>'.
* @see at.fhj.gaar.androidapp.appDsl.ActionStartService#getService()
* @see #getActionStartService()
* @generated
*/
EReference getActionStartService_Service();
/**
* Returns the factory that creates the instances of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the factory that creates the instances of the model.
* @generated
*/
AppDslFactory getAppDslFactory();
/**
* <!-- begin-user-doc -->
* Defines literals for the meta objects that represent
* <ul>
* <li>each class,</li>
* <li>each feature of each class,</li>
* <li>each enum,</li>
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
* @generated
*/
interface Literals
{
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.AndroidAppProjectImpl <em>Android App Project</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.AndroidAppProjectImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getAndroidAppProject()
* @generated
*/
EClass ANDROID_APP_PROJECT = eINSTANCE.getAndroidAppProject();
/**
* The meta object literal for the '<em><b>Applications</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ANDROID_APP_PROJECT__APPLICATIONS = eINSTANCE.getAndroidAppProject_Applications();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationImpl <em>Application</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplication()
* @generated
*/
EClass APPLICATION = eINSTANCE.getApplication();
/**
* The meta object literal for the '<em><b>Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute APPLICATION__NAME = eINSTANCE.getApplication_Name();
/**
* The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference APPLICATION__ATTRIBUTES = eINSTANCE.getApplication_Attributes();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationAttributeImpl <em>Application Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationAttribute()
* @generated
*/
EClass APPLICATION_ATTRIBUTE = eINSTANCE.getApplicationAttribute();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationMinSdkImpl <em>Application Min Sdk</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationMinSdkImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationMinSdk()
* @generated
*/
EClass APPLICATION_MIN_SDK = eINSTANCE.getApplicationMinSdk();
/**
* The meta object literal for the '<em><b>Min Sdk</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute APPLICATION_MIN_SDK__MIN_SDK = eINSTANCE.getApplicationMinSdk_MinSdk();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationTargetSdkImpl <em>Application Target Sdk</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationTargetSdkImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationTargetSdk()
* @generated
*/
EClass APPLICATION_TARGET_SDK = eINSTANCE.getApplicationTargetSdk();
/**
* The meta object literal for the '<em><b>Target Sdk</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute APPLICATION_TARGET_SDK__TARGET_SDK = eINSTANCE.getApplicationTargetSdk_TargetSdk();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationCompileSdkImpl <em>Application Compile Sdk</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationCompileSdkImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationCompileSdk()
* @generated
*/
EClass APPLICATION_COMPILE_SDK = eINSTANCE.getApplicationCompileSdk();
/**
* The meta object literal for the '<em><b>Compile Sdk</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute APPLICATION_COMPILE_SDK__COMPILE_SDK = eINSTANCE.getApplicationCompileSdk_CompileSdk();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationPermissionListImpl <em>Application Permission List</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationPermissionListImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationPermissionList()
* @generated
*/
EClass APPLICATION_PERMISSION_LIST = eINSTANCE.getApplicationPermissionList();
/**
* The meta object literal for the '<em><b>Permissions</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference APPLICATION_PERMISSION_LIST__PERMISSIONS = eINSTANCE.getApplicationPermissionList_Permissions();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationElementListImpl <em>Application Element List</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationElementListImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationElementList()
* @generated
*/
EClass APPLICATION_ELEMENT_LIST = eINSTANCE.getApplicationElementList();
/**
* The meta object literal for the '<em><b>Elements</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference APPLICATION_ELEMENT_LIST__ELEMENTS = eINSTANCE.getApplicationElementList_Elements();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationMainActivityImpl <em>Application Main Activity</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationMainActivityImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationMainActivity()
* @generated
*/
EClass APPLICATION_MAIN_ACTIVITY = eINSTANCE.getApplicationMainActivity();
/**
* The meta object literal for the '<em><b>Launcher Activity</b></em>' reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference APPLICATION_MAIN_ACTIVITY__LAUNCHER_ACTIVITY = eINSTANCE.getApplicationMainActivity_LauncherActivity();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.PermissionImpl <em>Permission</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.PermissionImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getPermission()
* @generated
*/
EClass PERMISSION = eINSTANCE.getPermission();
/**
* The meta object literal for the '<em><b>Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute PERMISSION__NAME = eINSTANCE.getPermission_Name();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationElementImpl <em>Application Element</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationElementImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationElement()
* @generated
*/
EClass APPLICATION_ELEMENT = eINSTANCE.getApplicationElement();
/**
* The meta object literal for the '<em><b>Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute APPLICATION_ELEMENT__NAME = eINSTANCE.getApplicationElement_Name();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActivityImpl <em>Activity</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ActivityImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActivity()
* @generated
*/
EClass ACTIVITY = eINSTANCE.getActivity();
/**
* The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ACTIVITY__ATTRIBUTES = eINSTANCE.getActivity_Attributes();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverImpl <em>Broadcast Receiver</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getBroadcastReceiver()
* @generated
*/
EClass BROADCAST_RECEIVER = eINSTANCE.getBroadcastReceiver();
/**
* The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference BROADCAST_RECEIVER__ATTRIBUTES = eINSTANCE.getBroadcastReceiver_Attributes();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ServiceImpl <em>Service</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ServiceImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getService()
* @generated
*/
EClass SERVICE = eINSTANCE.getService();
/**
* The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference SERVICE__ATTRIBUTES = eINSTANCE.getService_Attributes();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActivityAttributeImpl <em>Activity Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ActivityAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActivityAttribute()
* @generated
*/
EClass ACTIVITY_ATTRIBUTE = eINSTANCE.getActivityAttribute();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverAttributeImpl <em>Broadcast Receiver Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getBroadcastReceiverAttribute()
* @generated
*/
EClass BROADCAST_RECEIVER_ATTRIBUTE = eINSTANCE.getBroadcastReceiverAttribute();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ServiceAttributeImpl <em>Service Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ServiceAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getServiceAttribute()
* @generated
*/
EClass SERVICE_ATTRIBUTE = eINSTANCE.getServiceAttribute();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ElementEnabledAttributeImpl <em>Element Enabled Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ElementEnabledAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getElementEnabledAttribute()
* @generated
*/
EClass ELEMENT_ENABLED_ATTRIBUTE = eINSTANCE.getElementEnabledAttribute();
/**
* The meta object literal for the '<em><b>Enabled</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ELEMENT_ENABLED_ATTRIBUTE__ENABLED = eINSTANCE.getElementEnabledAttribute_Enabled();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ElementExportedAttributeImpl <em>Element Exported Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ElementExportedAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getElementExportedAttribute()
* @generated
*/
EClass ELEMENT_EXPORTED_ATTRIBUTE = eINSTANCE.getElementExportedAttribute();
/**
* The meta object literal for the '<em><b>Exported</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ELEMENT_EXPORTED_ATTRIBUTE__EXPORTED = eINSTANCE.getElementExportedAttribute_Exported();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ElementLabelAttributeImpl <em>Element Label Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ElementLabelAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getElementLabelAttribute()
* @generated
*/
EClass ELEMENT_LABEL_ATTRIBUTE = eINSTANCE.getElementLabelAttribute();
/**
* The meta object literal for the '<em><b>Title</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ELEMENT_LABEL_ATTRIBUTE__TITLE = eINSTANCE.getElementLabelAttribute_Title();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ElementIntentListImpl <em>Element Intent List</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ElementIntentListImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getElementIntentList()
* @generated
*/
EClass ELEMENT_INTENT_LIST = eINSTANCE.getElementIntentList();
/**
* The meta object literal for the '<em><b>Intents</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ELEMENT_INTENT_LIST__INTENTS = eINSTANCE.getElementIntentList_Intents();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.IntentImpl <em>Intent</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.IntentImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getIntent()
* @generated
*/
EClass INTENT = eINSTANCE.getIntent();
/**
* The meta object literal for the '<em><b>Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute INTENT__NAME = eINSTANCE.getIntent_Name();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActivityParentAttributeImpl <em>Activity Parent Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ActivityParentAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActivityParentAttribute()
* @generated
*/
EClass ACTIVITY_PARENT_ATTRIBUTE = eINSTANCE.getActivityParentAttribute();
/**
* The meta object literal for the '<em><b>Parent</b></em>' reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ACTIVITY_PARENT_ATTRIBUTE__PARENT = eINSTANCE.getActivityParentAttribute_Parent();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActivityLayoutAttributeImpl <em>Activity Layout Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ActivityLayoutAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActivityLayoutAttribute()
* @generated
*/
EClass ACTIVITY_LAYOUT_ATTRIBUTE = eINSTANCE.getActivityLayoutAttribute();
/**
* The meta object literal for the '<em><b>Layout Elements</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ACTIVITY_LAYOUT_ATTRIBUTE__LAYOUT_ELEMENTS = eINSTANCE.getActivityLayoutAttribute_LayoutElements();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.LayoutElementImpl <em>Layout Element</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.LayoutElementImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getLayoutElement()
* @generated
*/
EClass LAYOUT_ELEMENT = eINSTANCE.getLayoutElement();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ButtonImpl <em>Button</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ButtonImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getButton()
* @generated
*/
EClass BUTTON = eINSTANCE.getButton();
/**
* The meta object literal for the '<em><b>Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute BUTTON__NAME = eINSTANCE.getButton_Name();
/**
* The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference BUTTON__ATTRIBUTES = eINSTANCE.getButton_Attributes();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ButtonAttributeImpl <em>Button Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ButtonAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getButtonAttribute()
* @generated
*/
EClass BUTTON_ATTRIBUTE = eINSTANCE.getButtonAttribute();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ButtonLabelAttributeImpl <em>Button Label Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ButtonLabelAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getButtonLabelAttribute()
* @generated
*/
EClass BUTTON_LABEL_ATTRIBUTE = eINSTANCE.getButtonLabelAttribute();
/**
* The meta object literal for the '<em><b>Title</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute BUTTON_LABEL_ATTRIBUTE__TITLE = eINSTANCE.getButtonLabelAttribute_Title();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ButtonActionAttributeImpl <em>Button Action Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ButtonActionAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getButtonActionAttribute()
* @generated
*/
EClass BUTTON_ACTION_ATTRIBUTE = eINSTANCE.getButtonActionAttribute();
/**
* The meta object literal for the '<em><b>Action</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference BUTTON_ACTION_ATTRIBUTE__ACTION = eINSTANCE.getButtonActionAttribute_Action();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.SpacerImpl <em>Spacer</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.SpacerImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getSpacer()
* @generated
*/
EClass SPACER = eINSTANCE.getSpacer();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.TextImpl <em>Text</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.TextImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getText()
* @generated
*/
EClass TEXT = eINSTANCE.getText();
/**
* The meta object literal for the '<em><b>Text</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute TEXT__TEXT = eINSTANCE.getText_Text();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.LayoutElementClickActionImpl <em>Layout Element Click Action</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.LayoutElementClickActionImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getLayoutElementClickAction()
* @generated
*/
EClass LAYOUT_ELEMENT_CLICK_ACTION = eINSTANCE.getLayoutElementClickAction();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverActionAttributeImpl <em>Broadcast Receiver Action Attribute</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverActionAttributeImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getBroadcastReceiverActionAttribute()
* @generated
*/
EClass BROADCAST_RECEIVER_ACTION_ATTRIBUTE = eINSTANCE.getBroadcastReceiverActionAttribute();
/**
* The meta object literal for the '<em><b>Action</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference BROADCAST_RECEIVER_ACTION_ATTRIBUTE__ACTION = eINSTANCE.getBroadcastReceiverActionAttribute_Action();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverActionImpl <em>Broadcast Receiver Action</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverActionImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getBroadcastReceiverAction()
* @generated
*/
EClass BROADCAST_RECEIVER_ACTION = eINSTANCE.getBroadcastReceiverAction();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActionShowToastImpl <em>Action Show Toast</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ActionShowToastImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActionShowToast()
* @generated
*/
EClass ACTION_SHOW_TOAST = eINSTANCE.getActionShowToast();
/**
* The meta object literal for the '<em><b>Toast Text</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ACTION_SHOW_TOAST__TOAST_TEXT = eINSTANCE.getActionShowToast_ToastText();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActionStartActivityImpl <em>Action Start Activity</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ActionStartActivityImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActionStartActivity()
* @generated
*/
EClass ACTION_START_ACTIVITY = eINSTANCE.getActionStartActivity();
/**
* The meta object literal for the '<em><b>Activity</b></em>' reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ACTION_START_ACTIVITY__ACTIVITY = eINSTANCE.getActionStartActivity_Activity();
/**
* The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActionStartServiceImpl <em>Action Start Service</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see at.fhj.gaar.androidapp.appDsl.impl.ActionStartServiceImpl
* @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActionStartService()
* @generated
*/
EClass ACTION_START_SERVICE = eINSTANCE.getActionStartService();
/**
* The meta object literal for the '<em><b>Service</b></em>' reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ACTION_START_SERVICE__SERVICE = eINSTANCE.getActionStartService_Service();
}
} //AppDslPackage
| java |
<filename>src/components/TaskList/tasklist.tsx
/// <reference path="../../../typings/tsd.d.ts" />
import * as React from 'react';
class Task{
public date: Date;
public label: string;
public isRead: boolean;
public href: string;
}
class TaskListProps{
public label: string;
public tasks: Task[];
public fontFamily: string;
}
const defaultShowTasks = 3;
export default class TaskList extends React.Component<TaskListProps, any> {
constructor(props: TaskListProps)
{
super(props);
this.state = {
tasks: this.orderTasks(),
unread: this.getNumberOfUnread(),
showAll: false
};
}
orderTasks()
{
return this.props.tasks.sort((a: Task,b: Task) =>{
return b.date < a.date ? -1 : 1
});
}
getNumberOfUnread()
{
var unread = 0;
for(var task of this.props.tasks) if(!task.isRead) unread++;
return unread;
}
getOuterDivStyles()
{
return {
border:"1px solid rgb(214, 214, 214)",
WebkitBoxShadow:'0 0 6px rgba(0,0,0,.24)',
boxShadow:'0 0 6px rgba(0,0,0,.24)',
maxWidth: 450,
marginBottom: 15,
fontFamily: this.props.fontFamily,
fontWeight: "bold",
backgroundColor: "#ffffff"
};
}
getUnreadNumberStyles()
{
return {
float: "right",
color: "#ffffff",
backgroundColor: "#09417e",
width: 36,
height: 28,
MozBorderRadius: 70,
WebkitBorderRadius: 70,
borderRadius: 70,
textAlign: "center",
paddingTop: 8,
margin: 3,
marginTop: -9
};
}
getHeaderStyles()
{
return {
height: 36,
color: "rgb(80,80,80)",
marginTop: 16,
paddingLeft: 10
};
}
getTaskListStyles()
{
return {
paddingTop: 10,
border:"1px solid rgb(214, 214, 214)",
borderTop:"2px solid rgb(214, 214, 214)",//TODO
color: "rgb(80,80,80)"
};
}
getTaskStyles()
{
return {
borderBottom: "1px solid rgb(214, 214, 214)",
overflow: "hidden",
minHeight: 32,
paddingTop: 12
};
}
getTaskDateStyles()
{
return {
float: "left",
marginRight: 20,
marginLeft: 10,
minWidth: 110
};
}
getTaskLabelStyles()
{
return {
color: "inherit",
textDecoration: "none",
float: "left",
width: 230,
fontWeight: "normal"
};
}
getButtonContainerStyles()
{
return {
minHeight: 100,
textAlign: "center"
};
}
getButtonStyles()
{
return {
backgroundColor: "#ffffff",
border:"1px solid rgb(214, 214, 214)",
boxShadow: 0,
color: "rgb(37,87,133)",
fontWeight: "bold",
fontSize: 16,
borderRadius: 20,
width: 150,
height: 50,
outline: 0,
marginTop: 25
};
}
getButtonText()
{
return this.state.showAll ? "HIDE" : "SEE ALL";
}
handleButtonClick()
{
this.setState({
tasks: this.state.tasks,
unread: this.state.unread,
showAll: !this.state.showAll
});
}
handleButtonMouseOver()
{
var domNode:any = ReactDOM.findDOMNode(this.refs["button"]);
domNode.style.backgroundColor = "rgb(238,233,233)";
}
handleButtonMouseOut()
{
var domNode:any = ReactDOM.findDOMNode(this.refs["button"]);
domNode.style.backgroundColor = "#ffffff";
}
formatDate(date: Date)
{
var y = date.getFullYear();
var m = date.getMonth();
var d = date.getDate();
var toTwoDigits = (input: number) => {return (input < 10 ? "0" : "") + input};
return `${y}-${toTwoDigits(m)}-${toTwoDigits(d)}`;
}
getReadStatusTag(isRead: boolean)
{
var text = isRead ? "READ" : "NEW";
var style = {
color: isRead ? "rgb(37,87,133)" : "rgb(112,169,90)",
float: "left",
marginLeft: 10,
textAlign: "center"
};
return (<span style={style}>{text}</span>);
}
render()
{
return (
<div style={this.getOuterDivStyles()}>
<div style={this.getHeaderStyles()}>
{this.props.label}
<div style={this.getUnreadNumberStyles()}>
{this.state.unread}
</div>
</div>
<div style={this.getTaskListStyles()}>
{this.state.tasks.map((task, index) => {
if(!this.state.showAll && index >= defaultShowTasks) return undefined;
return (
<div key={index}
style={this.getTaskStyles()}>
<label style={this.getTaskDateStyles()}>{this.formatDate(task.date)}</label>
{
task.href != undefined ?
<a style={this.getTaskLabelStyles()} href={task.href}>{task.label}</a> :
<span style={this.getTaskLabelStyles()}>{task.label}</span>
}
{this.getReadStatusTag(task.isRead)}
</div>
);
})}
</div>
<div style={this.getButtonContainerStyles()}>
<button style={this.getButtonStyles()}
onClick={ (e) => this.handleButtonClick()}
onMouseEnter={(e) => this.handleButtonMouseOver()}
onMouseOut={(e) => this.handleButtonMouseOut()}
ref="button">
{this.getButtonText()}</button>
</div>
</div>
);
}
} | typescript |
Each week the National Anti-Vivisection Society (NAVS) sends out an e-mail alert called Take Action Thursday, which tells subscribers about current actions they can take to help animals. NAVS is a national, not-for-profit educational organization incorporated in the State of Illinois. NAVS promotes greater compassion, respect, and justice for animals through educational programs based on respected ethical and scientific theory and supported by extensive documentation of the cruelty and waste of vivisection. You can register to receive these action alerts and more at the NAVS Web site.
This week’s Take Action Thursday urges strong opposition to legislation that would gut the Endangered Species Act and support for legislation banning the slaughter of horses for meat.
The Endangered Species Management Self-Determination Act, HR 3533 and S 1731, also known as the Extinction Act, would turn over a majority of the management of the U.S. Endangered Species Act (ESA) to the states, instead of maintaining a national perspective on the status and protection of threatened and endangered species. This bill begins with stating that “the ESA has not achieved its stated goal of recovering threatened species or endangered species”; however, what follows is a process that will politicize the process of protecting endangered and threatened animals by:
- Giving each state Governor the right to accept or reject taking action on a designated endangered or threatened species;
- Giving the U.S. Congress authority to approve or reject lists of endangered or threatened species submitted to it by the Department of the Interior;
- Creating a mandatory 5-year limit on listing each species, requiring confirmation by Congress to be returned to the ESA protected species list.
While the Secretary of the Interior has not always acted in the best interests of many animal populations, including wolves, allowing members of Congress to substitute their own political perspective on the inclusion or exclusion of specific animals is not a good solution. Instead, it could create a system of barter for approval (or rejection) of specific species that may have a greater impact on a single state’s interest, based largely on a state’s economic interest and not the interests of any animal species. This could lead to the rapid extinction of any species that is not “popular” in a specific location, including prairie dogs and black-foot ferrets, despite the long-term negative impact on an area’s ecosystem.
The most effective way to amend and enforce the Endangered Species Act is to allow scientists with the appropriate expertise and background to testify before determining the fate of a species and what remedies are needed to protect its existence. Giving full credence to scientific expertise, while imposing meaningful penalties for violations of the ESA, are actions that the Department of the Interior can take to improve their record for species recovery. This legislation is about making it easier to eradicate inconvenient endangered animals, not about protecting them.
Please contact your U.S. Senators and Representative and ask them to OPPOSE this legislation!
Urgent action is needed to pass the Safeguard American Food Exports Act of 2013, S 541 and HR 1094, which would prohibit the sale or transport of equines and equine meat in interstate or foreign commerce for human consumption. The U.S. Department of Agriculture (USDA) issued permits in June 2013 to Valley Meat Company to operate a horse slaughter plant in Roswell, New Mexico, and to Rains Natural Meats in Gallatin, Missouri. Valley Meat Company successfully sued the USDA, charging that it unlawfully failed to reestablish its equine inspection service after Congress failed to include in its appropriations for 2011 a provision that prevented the agency from spending money on these inspections. Such a provision had been included in past appropriations bills which prevented the reopening of any new slaughterhouses for horses since 2007. Without any current prohibition on conducting inspections, several companies decided to open horse slaughter facilities and applied for the necessary permits. The USDA approved the permits this summer, but a coalition of animal groups immediately filed suit opposing the issuance of permits without first conducting proper environmental studies. On December 13, 2013, a U.S. Circuit Court of Appeals in Denver lifted a temporary ban on opening the plants, finding that there was not a sufficient reason to stop the slaughterhouses from opening while the Court considered the merits of the case.
Congress must act to put an end to the operation of horse slaughter facilities in the U.S. as these facilities plan to open their plants as soon as the end of this year.
Please contact your U.S. Senators and Representative TODAY and ask them to SUPPORT this legislation.
In an unrelated matter regarding the human consumption of horse meat, police arrested 21 people across France for allegedly falsifying veterinary records for as many as 200 horses, certifying them as safe for food. Dozens of these horses had been used by a French pharmaceutical company, Sanofi Pasteur, to develop serums against rabies and other diseases and then sold them to abattoirs with false papers regarding their health. Veterinarians, meat dealers and even a computer programmer were suspected of being involved in the fraud. Some of these horses were exported across Europe with questions about their traceability. During the summer another horse meat scandal arose in Europe when it was discovered that millions of TV dinners labeled as containing “beef” actually contained horsemeat as well. If the U.S. resumes the slaughter and processing of horse meat for food, will this country face similar concerns? Take action, above!
For a weekly update on legal news stories, visit AnimalLaw.com.
| english |
Source code and tests
---------------------
Add source code here. Add `.spec.ts` files alongside them to create unit tests
using mocha. Test helpers/utils should go in `root/spec`. Configuration /
non-code files your tests need should go in `/root/spec/common`.
| markdown |
Straight, shiny and smooth hair has always been in trend as it looks good on any face type. Also, straight hair can be worn free flowing or styled in numerous ways.
People who are not blessed with naturally straight hair often turn to chemical treatments to get rid of unruly waves and curls. Many beauty salons offer hair-straightening services with immediate results. The finished look lasts for a limited time, perhaps for a year.
But after one year, your hair will start showing the side effects of the harsh chemicals and heated tools used during the treatment. This can include dry hair, allergy on the scalp and hair loss.
If you wish to have straight hair without damaging your lustrous locks, you can try some natural home remedies. There are some ingredients in your kitchen that can help straighten your hair naturally.
These home remedies should be done no more than two or three times a week. Daily use would not be healthy for your scalp and hair.
Regular hot oil treatments is one the best and easiest ways to keep your hair smooth and well hydrated. The heat and saturation from the warm oil will relax the light wavy and curly pattern of your hair. For hot oil treatment, the best options are coconut, olive, almond or sesame oil.
- Slightly heat the oil you wish to use in a microwave for about 20 seconds.
- Apply the warm oil to your hair and massage your scalp for 15 to 20 minutes.
- Comb your hair thoroughly to evenly distribute the oil. It will also avoid breakage while washing your hair.
- Cover your hair with a hot wet towel for 30 to 40 minutes.
- Wash your hair with a mild shampoo.
- Gently comb your hair (use a wide-toothed comb not a brush) while it is still wet and allow it to air dry.
Coconut milk is believed to help straighten hair. It has a moisturizing ability and also gives your hair a beautiful shine and luster. In addition, it has all the benefits of being antibacterial, antifungal and antiviral to keep your scalp infection free.
- In a glass jar, mix one cup of fresh coconut milk and the juice of one lemon.
- Place the glass jar in the refrigerator for a few hours, until there is a creamy layer on the top.
- Massage your hair and scalp with this cream, and then leave it on for 20 minutes.
- Cover your head with a shower cap or swimming cap and wrap a warm moist towel around the cap.
- Leave it on for about 30 minutes, and then shampoo and condition your hair.
- Comb your hair when it is still wet and allow it to air dry.
Milk is known to have moisturizing properties that can help straighten hair. Also, the protein in milk fortifies the hair shafts, making them smooth and frizz free.
- Mix together one-half cup each of milk and water. Store the mixture in a spray bottle. Comb out any tangles in your hair, spray the mixture over your hair and comb it again. Leave it on for 30 minutes so that the milk is absorbed by your hair. Then wash your hair with shampoo and apply conditioner.
- Mix one tablespoon of honey in one cup of milk. Mash up three to four strawberries and add them to the mixture. Apply this mixture to your hair thoroughly and wrap your hair in a towel for about two hours. Wash your hair with a mild shampoo, comb your hair using a wide-toothed comb and let your hair air dry.
Eggs play an important role in making your hair stronger and shiner. Olive oil helps keep your hair well moisturized. These ingredients, when combined together, help straighten your hair naturally.
- Beat two eggs properly and mix in four tablespoons of olive oil.
- Apply this mixture to your hair and scalp, then comb your hair with a wide-toothed comb.
- Wear a shower cap and leave it on for 30 to 45 minutes.
- Rinse it off and wash your hair with a mild shampoo.
Fuller’s earth, also known as multani mitti, can help straighten your hair naturally. It can even help get rid of frizzy hair. Additionally, being a mild cleansing agent, it will not damage your hair.
- Mix together one cup of fuller’s earth, one egg white and two tablespoons of rice flour.
- Add enough water to the mixture to get a thin texture.
- Apply this mixture to your hair and comb your hair with a wide-toothed comb.
- Leave it in for one hour, and then wash it out with water.
- Now generously spray milk on your hair.
- Leave it on for 15 minutes, and then shampoo and condition your hair.
Aloe vera contains several enzymes that promote healthy hair growth and makes your hair smooth and soft. Also, aloe vera gel easily penetrates into the hair strands and keeps them well moisturized. Due to this moisturizing property, it can straighten your hair naturally.
- Mix one-half cup each of aloe vera gel and warm olive oil.
- Optionally, mix in six drops each of rosemary oil and sandalwood oil.
- Massage the mixture into your hair and scalp.
- Cover your hair with a shower cap and leave it on for one to two hours.
- Rinse it off and shampoo your hair with a mild shampoo.
Apple cider vinegar is a great ingredient for straightening your hair. It restores your hair’s natural pH levels and promotes healthy hair growth and an infection-free scalp.
- Mix one or two tablespoons of apple cider vinegar in one cup of water.
- Use this mixture as a final rinse after shampooing your hair.
- Leave this rinse on your hair and allow it to air dry. | english |
Many videos and photos on the internet are witnesses that children are fond of dogs and other pets. However, when you welcome a new family member, and you already have a pet, proper care should be taken to ensure a perfect bonding between these two.
Spending time and growing up with your pets can have positive effects on your kid’s upbringing. However, in the case of a newborn, it is advised to keep the baby away from your pet. Be it a dog or cat, the pets should be kept away from babies for the initial few years. Their fur can get into your baby’s mouth or nose. There are chances that your dog might behave differently.
After a couple of months, along with some initial adjustment, you can introduce your baby and pets to each other and let them spend time depending on the advice of your veterinary doctor. However, never leave your baby alone with the pet, always keep a watch.
An immense amount of care and precaution is needed to build a good bonding between your child and pets.
“In the initial months too, don’t completely cut off your dog, cat or any other pet from your newborn as it could possibly make your pet feel neglected. A little interaction every day will mean a lot for this new bonding,” Shah was quoted as saying by HT.
When you introduce them after 2-3 months, carefully supervise the interaction between the toddler and pet to avoid any unwanted accidents. According to Shah, it should be followed till your kid is about two-three years old at least.
Remember, the nature of the relationship between the two depends on children to children and pets. If your pet is friendly in nature, then it will be easy for you to manage both your child and the pet. But, if the pet behaves aggressively, then professional advice is a must. | english |
The decision to kick-off their summer tour from Perth was taken due to the fact Brisbane was failing to attract decent crowd. There was also quite consideration given to Canberra as the venue for the 2nd Test match against South Africa. But the officials believed for the time being, the Manuka Oval is best suited for limited over’s cricket, hence chose Hobart as the venue. The schedule for Big Bash League though, was not changed much, due to no extra game being drafted and the idea of match at Christmas getting rejected.
Also, the CA recently announced a raise in the salaries for the Women’s Cricket. Speaking on the issue, CA chief James Sutherland said, “Cricket is a sport for all Australians and Cricket Australia will continue to invest heavily in the women’s game in the coming years. We are determined to make cricket the sport of choice for women in Australia,” reported Sydney Morning Herald.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
| english |
<filename>package.json
{
"name": "yammertime",
"version": "1.0.1",
"author": "Habanero Consulting Group",
"contributors": [
{
"name": "<NAME>",
"email": "<EMAIL>",
"url": "http://habaneroconsulting.com"
},
{
"name": "<NAME>",
"email": "<EMAIL>",
"url": "http://habaneroconsulting.com"
}
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/habaneroconsulting/yammertime.git"
},
"scripts": {
"build": "grunt build",
"install": "bower-installer",
"production": "grunt prod",
"serve": "grunt serve"
},
"devDependencies": {
"bower-installer": "^1.2.0",
"grunt": "~0.4.5",
"grunt-cli": "^0.1.13",
"grunt-contrib-clean": "~0.6.0",
"grunt-contrib-concat": "~0.5.1",
"grunt-contrib-connect": "~0.10.1",
"grunt-contrib-copy": "~0.8.0",
"grunt-contrib-cssmin": "~0.12.3",
"grunt-contrib-handlebars": "~0.10.2",
"grunt-contrib-jshint": "~0.11.2",
"grunt-contrib-less": "~1.0.1",
"grunt-contrib-uglify": "~0.9.1",
"grunt-contrib-watch": "~0.6.1",
"grunt-newer": "~1.1.0",
"grunt-shell": "~1.1.2",
"grunt-usemin": "~3.0.0",
"load-grunt-config": "^0.17.1"
}
}
| json |
{"answers":["agaze","azalea","faze","feaze","feeze","fuze","fuzee","fuzz","fuzzle","gauze","gazal","gaze","gazeful","gazelle","glaze","guzzle","laze","leaze","leeze","lezza","lulz","zeal","zealful","zeze","zulu"],"centerLetter":"z","letterString":"zaefglu","outerLetters":["a","e","f","g","l","u"],"pangrams":["gazeful"],"validLetters":["a","e","f","g","l","u","z"]}
| json |
<filename>ve-web/src/containers/Cms/Dashboard/DashboardBoothOwner/DashboardBoothOwner.tsx<gh_stars>0
import { useCommonStores } from '@/hooks';
import { observer } from 'mobx-react';
import React from 'react';
import Report from '../../Reports/shared/Report';
const DashboardBoothOwner = observer(() => {
const { authStore } = useCommonStores();
return (
<Report
sceneIdKey={'boothId'}
sceneId={authStore.userInfo?.boothId!}
title={'Booth'}
/>
);
});
export default DashboardBoothOwner;
| typescript |
When Apple released the iPhone 7 in 2016, without a headphone jack, many customers were miffed that they had to use headphones designed for a lightning port or buy a dongle, and couldn’t charge their phone and use headphones at the same time.
Samsung channeled that frustration into an ad campaign. Over the last couple years, Samsung released several commercials that trolled Apple and iPhones—mocking the Genius Bar, the fan culture, screen size, battery throttling, screen notch, and the lack of a headphone jack. Namely, one commercial titled “Growing Up,” released in November of 2017, captures a longtime iPhone user’s disappointment at having to use a dongle. He finally switches to Samsung and his life is all the better.
But now that fictional character has been betrayed less than two years after he switched allegiance. Samsung is also ditching the headphone jack, and scrubbing the ads that make fun of a company that would dare deprive customers of the convenience of plugging standard headphones into a mobile device.
On Wednesday, Samsung announced the Galaxy Note 10. Gizmodo’s first-look review lamented the loss of the 3.5mm headphone jack—because the Galaxy Note is a phone line that was known for having all the features a user would want.
So Samsung, it seems, prefers people don’t know that it once mocked the iPhone for requiring people to buy an extra bit of hardware to use headphones.
Business Insider reports that the “Growing Up” commercials have been taken down from Samsung Mobile USA YouTube channel and the main Samsung YouTube channel. The news outlet found that the video can be viewed on an archived version of the Samsung Mobile USA YouTube channel on the Wayback Machine.
Samsung did not immediately respond to a Gizmodo request for comment on the reason for the removal of these ads.
The video is still available on Samsung regional YouTube channels, like Samsung Denmark and Samsung Malaysia.
| english |
```@meta
DocTestSetup = quote
using Unitful
end
```
```@docs
Unitful.@u_str
Unitful.unit
Unitful.ustrip
Unitful.dimension(::Number)
Unitful.dimension{U,D}(::Unitful.Units{U,D})
Unitful.dimension{T,D,U}(x::Quantity{T,D,U})
Unitful.dimension{T<:Unitful.Units}(x::AbstractArray{T})
*(::Unitful.Unitlike, ::Unitful.Unitlike...)
```
| markdown |
<filename>src/storage/templates/MiniSeries.json
{"props":{"$progress":"string","$losses":"int","$target":"int","$wins":"int"},"sees":["https:\/\/developer.riotgames.com\/api-methods\/#league-v4\/GET_getAllLeaguePositionsForSummoner"],"list":[],"methods":{"getParsedSeries":{"name":"getParsedSeries","returns":["array"],"params":[]}},"name":"MiniSeries","class":"RiotQuest\\Components\\Collections\\MiniSeries"} | json |
<gh_stars>1-10
{"word":"scillitin","definition":"A bitter principle extracted from the bulbs of the squill (Scilla), and probably consisting of a complex mixture of several substances."} | json |
Note: This is part four of a series on Modi government’s Swachh Bharat Mission. Read part one, two and three.
Barabanki/Meerut/Lucknow/Shamli: Usha Devi is 24, belongs to a so-called lower caste. She has five children, the eldest is seven-years-old and the youngest one month. Her husband works as a labourer at a brick kiln earning Rs 250 a day. The family lives in a small ramshackle house in Azizabad, a small village of about 100 households in Barabanki. There is a toilet on their premises, but it remains locked.
“It was built for my father-in-law. He used to live here earlier,” Devi explained. Earlier this year, the father-in-law, along with his wife and two unmarried sons, moved to another part of the village where they don’t have a toilet on their premises. “They come here daily to use the toilet. But they don’t allow us to use it. They lock it after use,” she said.
Devi’s family has not received the Rs 12,000 provided as incentive under the Swachh Bharat Mission (Gramin) to build a toilet. They continue to defecate in the open despite having a toilet on their premises.
The family’s predicament is faced by many where the structure of the families changed after 2012. As The Wire reported earlier, in 2012 a baseline survey was conducted to identify the number of households in rural India that did not have access to toilets. That survey forms the basis on which targets are set under the SBM (Gramin), i. e, the number of toilets needed to be built is equal to the number of households lacking toilets according to the baseline survey.
In that survey, the family mentioned here would have been counted as one household since they lived together at the time. However, now they live in different dwellings and are separate households. But as far as the SBM (Gramin) is concerned, they remain one household.
During the course of my reporting, I found several such households which, for a variety of reasons, were not separate households in 2012 and hence are kept out of the Narendra Modi government’s flagship Swachh Bharat Scheme.
For instance, in 2012, Mohammed Farooq used to live with his parents and brothers in their two-room house in Jamalpur – a village in Shamli. He got married to Fatima Bano in 2014 and the couple moved to a one-room dwelling of their own. “My father got a toilet, but I did not,” Farooq said.
Families that moved into a particular village after 2012 are also excluded from the Swachh Bharat Scheme. Another set of people excluded are migrant workers.
“Migrant workers who spend about six months in the village when the brick kilns operate have no access to toilets. They will defecate in the open. Where else will they go? They are not even a part of the list (based on the 2012 baseline survey) that we have sent to the district office,” said the pradhan of a village in Lucknow district.
Almost all the pradhans that I met expressed concern that migrant workers who don’t have houses in the village but stay there for a considerable period of time have been excluded from the SBM.
A senior district official in charge of the SBM implementation in one of the districts that we visited also admitted that lack of toilets for migrant workers is a cause for worry. “Some workers move seasonally. Others move from village to village in search of jobs. They are not a part of the baseline survey. So they don’t get toilets under SBM,” the official said.
Over the course of our reporting, we discovered, as academics have in the past, that the baseline survey is not entirely reliable. A large proportion of residents in the villages that we visited claimed that they were not a part of the list of households (based on the baseline survey) prepared by the pradhan, despite having been residents even prior to 2012.
Hetampur is a small village in Barabanki district which has been declared open defecation free. According to SBM (Gramin) database, it has 168 households, each having access to a toilet. However, according to the Census, Hetampur had 194 households in 2011, a year prior to the baseline survey.
Urmila, who we also mentioned in an earlier part of the series, claimed that her family is not a part of the list of households in Hetampur who stand to benefit under SBM. Since the list is drawn from the 2012 baseline survey, exclusion is possible if the family did not live in the village in 2012. However, Urmila and her family have lived in Hetampur for generations.
Usha Devi’s village Azizabad has 100 households, but only five of the 40 households that we visited had toilets. A large proportion of residents claimed that they were not part of the list of beneficiaries. This essentially means that they were not a part of the baseline survey.
Recently, when the Centre for Policy Research (CPR) studied the sanitation status in 19 villages in Udaipur that had been declared ODF, they concluded, among other things, that there exist inaccuracies in the baseline survey. Officials and gram panchayats told the team conducting the survey that the baseline numbers were compiled ‘in a hurried manner without entirely realising their relevance’.
Block development officers and pradhans told the CPR team that the baseline survey was not authentic because names were repeated, people got left out. ‘It was a random estimate number which is now necessary to be followed’.
The CPR study noted that since the baseline survey forms the basis on which villages are declared ODF, it brings ‘into question the validity of the ODF status’.
In their influential book Where India Goes, Diane Coffey and Dean Spears have also described instances when they met village heads who were in the process of completing the baseline survey for their village. “They were caught in a dilemma: They could not decide whether they should claim that everybody in their village indeed has the latrines that they received funding for under the last sanitation programme or whether they should admit that everyone still defecates in the open, seizing the opportunity to get their hands on a new round of construction funds,” they wrote describing one particular incident.
During the course of my reporting, I also met several pradhans and block development officers who confessed that the baseline survey they filled in was not entirely accurate. “We filled out a number. It was a guess on how many people live in the village. Now it has become a major problem because there are more households in the village than we mentioned in the survey,” said the pradhan of a village in Lucknow.
In villages where the number of households as per the baseline survey is less than the actual households in the village, the toilet building exercise poses an allocation challenge: Who gets the limited number of toilets?
In almost all villages, we found residents who complained that the pradhan favoured those who belonged to his (all the pradhans were men) caste. “Toilets have been built only in that part of the village where the Vermas live,” said a resident in Chinhat, Lucknow.
In many villages, residents said that they did not figure on the list of beneficiaries under SBM prepared by the pradhan because they had not voted for him. “We didn’t vote for him and that is why the entire Yadav community has been overlooked,” said Sanjay Yadav, in Barabanki’s Muradpur.
With the aim of correcting these discrepancies, the Uttar Pradesh government has now decided that they will conduct surveys in each district with the aim of including households that had been left out by the 2012 baseline survey. The process, they claim, will be done by early November.
Avani Kapur, a fellow at the Delhi-based Centre for Policy Research (CPR) and director at the Accountability Initiative, argued that it is positive that the government has recognised that there is a gap and is seeking to correct it. However, she has a word of caution. “If one again does it in a hurried manner we may still miss people especially because it’s festive season. Ideally, we should have stronger monitoring and verifications on a regular basis. We wouldn’t need to keep having costly one-time mapping exercises as the mapping can be done by GPS regularly and then verified by the block sanitation coordinators,” she said.
Investigative reporting has never been so important. Just Rs 7 per day from readers like you will keep The Wire going. Click here for more details. | english |
To Start receiving timely alerts please follow the below steps:
Click on the Menu icon of the browser, it opens up a list of options.
Click on the “Options ”, it opens up the settings page,
Here click on the “Privacy & Security” options listed on the left hand side of the page.
Scroll down the page to the “Permission” section .
Here click on the “Settings” tab of the Notification option.
A pop up will open with all listed sites, select the option “ALLOW“, for the respective site under the status head to allow the notification.
Once the changes is done, click on the “Save Changes” option to save the changes.
Also available in:
Shilpa Shetty Or Shamita Shetty: Whose Bold Prints Wowed Us More?
What Is Cellophane Hair Treatment And What Are Its Benefits?
How To Use Green Tea For Hair Fall?
Want To Get Rid Of Moles? Try These Amazing Castor Oil Hacks Today!
Multani Mitti Hacks To Treat Acne That You Should Try Right Now!
Do you want to clear all the notifications from your inbox? | english |
/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
============================================================================*/
#include "mitkImageToPlanarFigureFilter.h"
mitk::ImageToPlanarFigureFilter::ImageToPlanarFigureFilter()
{
// Modify superclass default values, can be overridden by subclasses
this->SetNumberOfRequiredInputs(1);
}
mitk::ImageToPlanarFigureFilter::~ImageToPlanarFigureFilter()
{
}
/**
*
*/
void mitk::ImageToPlanarFigureFilter::SetInput(const mitk::ImageToPlanarFigureFilter::InputImageType *input)
{
// Process object is not const-correct so the const_cast is required here
this->ProcessObject::SetNthInput(0, const_cast<mitk::ImageToPlanarFigureFilter::InputImageType *>(input));
}
/**
* Connect one of the operands for pixel-wise addition
*/
void mitk::ImageToPlanarFigureFilter::SetInput(unsigned int index,
const mitk::ImageToPlanarFigureFilter::InputImageType *image)
{
if (index + 1 > this->GetNumberOfInputs())
{
this->SetNumberOfRequiredInputs(index + 1);
}
// Process object is not const-correct so the const_cast is required here
this->ProcessObject::SetNthInput(index, const_cast<mitk::ImageToPlanarFigureFilter::InputImageType *>(image));
}
/**
*
*/
const mitk::ImageToPlanarFigureFilter::InputImageType *mitk::ImageToPlanarFigureFilter::GetInput(void)
{
if (this->GetNumberOfInputs() < 1)
{
return nullptr;
}
return static_cast<const mitk::ImageToPlanarFigureFilter::InputImageType *>(this->ProcessObject::GetInput(0));
}
/**
*
*/
const mitk::ImageToPlanarFigureFilter::InputImageType *mitk::ImageToPlanarFigureFilter::GetInput(unsigned int idx)
{
return static_cast<const mitk::ImageToPlanarFigureFilter::InputImageType *>(this->ProcessObject::GetInput(idx));
}
//-----------------------------------------------------------------------
//
void mitk::ImageToPlanarFigureFilter::GenerateInputRequestedRegion()
{
Superclass::GenerateInputRequestedRegion();
}
void mitk::ImageToPlanarFigureFilter::PrintSelf(std::ostream &os, itk::Indent indent) const
{
Superclass::PrintSelf(os, indent);
}
| cpp |
{
"files": [
"js/libs/Squiddle.js",
"js/libs/STEINBECK.Keys.js",
"js/libs/MO5.js",
"js/WSE.js",
"js/WSE.tools.js",
"js/WSE.datasources.LocalStorage.js",
"js/WSE.Trigger.js",
"js/WSE.Game.js",
"js/WSE.Interpreter.js",
"js/WSE.tools.ui.js",
"js/WSE.assets.mixins.displayable.flash.js",
"js/WSE.assets.mixins.displayable.flicker.js",
"js/WSE.assets.mixins.displayable.hide.js",
"js/WSE.assets.mixins.displayable.move.js",
"js/WSE.assets.mixins.displayable.shake.js",
"js/WSE.assets.mixins.displayable.show.js",
"js/WSE.assets.Animation.js",
"js/WSE.assets.Audio.js",
"js/WSE.assets.Character.js",
"js/WSE.assets.Curtain.js",
"js/WSE.assets.Imagepack.js",
"js/WSE.assets.Textbox.js",
"js/WSE.assets.Background.js",
"js/WSE.commands.break.js",
"js/WSE.commands.choice.js",
"js/WSE.commands.do.js",
"js/WSE.commands.fn.js",
"js/WSE.commands.global.js",
"js/WSE.commands.globalize.js",
"js/WSE.commands.goto.js",
"js/WSE.commands.line.js",
"js/WSE.commands.localize.js",
"js/WSE.commands.restart.js",
"js/WSE.commands.sub.js",
"js/WSE.commands.trigger.js",
"js/WSE.commands.var.js",
"js/WSE.commands.set_vars.js",
"js/WSE.commands.wait.js",
"js/WSE.commands.with.js",
"js/WSE.commands.while.js"
]
} | json |
<filename>php3/htdocs/doc/class.orbitobject.html
<HTML
><HEAD
><TITLE
>OrbitObject</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.57"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="manual.html"><LINK
REL="UP"
TITLE="Satellite CORBA client extension"
HREF="ref.satellite.html"><LINK
REL="PREVIOUS"
TITLE="Satellite CORBA client extension"
HREF="ref.satellite.html"><LINK
REL="NEXT"
TITLE="OrbitEnum"
HREF="class.orbitenum.html"><META
NAME="HTTP_EQUIV"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="ref.satellite.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="class.orbitenum.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="class.orbitobject"
>OrbitObject</A
></H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN33450"
></A
><P
> (unknown)</P
>OrbitObject -- Access CORBA objects</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN33453"
></A
><H2
>Description</H2
><DIV
CLASS="funcsynopsis"
><A
NAME="AEN33455"
></A
><P
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>new <B
CLASS="function"
>OrbitObject</B
></CODE
> (string ior)</CODE
></P
><P
></P
></DIV
><P
> This class provides access to a CORBA object. The
<TT
CLASS="parameter"
><I
>ior</I
></TT
> parameter should be a string
containing the IOR (Interoperable Object Reference) that
identifies the remote object.
</P
><P
> <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN33464"
></A
><P
><B
>Example 1. Sample IDL file</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="programlisting"
> interface MyInterface {
void SetInfo (string info);
string GetInfo();
attribute int value;
}
</PRE
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
</P
><P
> <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN33468"
></A
><P
><B
>Example 2. PHP code for accessing MyInterface</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="programlisting"
> <?php
$obj = new OrbitObject ($ior);
$obj->SetInfo ("A 2GooD object");
echo $obj->GetInfo();
$obj->value = 42;
echo $obj->value;
?>
</PRE
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="ref.satellite.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="manual.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="class.orbitenum.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Satellite CORBA client extension</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.satellite.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>OrbitEnum</TD
></TR
></TABLE
></DIV
></BODY
></HTML
> | html |
{"components/sbthemes/module/sb_testimonial/default":"{{#if status }}\r\n<div class=\"module sb-testimonial sb-testimonial--{{prefix}} {{class_sfx}}\">\r\n\t<div class=\"block-content clearfix\">\r\n\t\r\n\t\t<div class=\"sb-testimonial--carousel\"\r\n data-slick='{\r\n\t\t\t\t\"dots\": false,\r\n\t\t\t\t\"arrows\": true,\r\n\t\t\t\t\"mobileFirst\": true,\r\n\t\t\t\t\"slidesToShow\": 1,\r\n\t\t\t\t\"slidesToScroll\": 1,\r\n\t\t\t\t\"autoplay\": false,\r\n\t\t\t\t\"autoplaySpeed\": 5000\r\n\t\t\t}'\r\n \t>\r\n\t\t{{#for limitation }}\r\n\t\t\t{{> components/sbthemes/module/sb_testimonial/default-item \r\n\t\t\t\tavatar\t\t= (lang (concat (concat (concat (concat 'sb_themes.' ../prefix) '.item') $index)'.image'))\r\n\t\t\t\tcontent\t\t= (lang (concat (concat (concat (concat 'sb_themes.' ../prefix) '.item') $index)'.content'))\r\n\t\t\t\tauthor_name\t= (lang (concat (concat (concat (concat 'sb_themes.' ../prefix) '.item') $index)'.author_name'))\r\n\t\t\t\tauthor_position\t= (lang (concat (concat (concat (concat 'sb_themes.' ../prefix) '.item') $index)'.author_position'))\r\n\t\t\t}}\r\n\t\t{{/for}}\r\n\t\t</div>\r\n\r\n\t\r\n\t</div>\r\n</div>\r\n{{/if}}\r\n","components/sbthemes/module/sb_testimonial/default-item":"\r\n<div class=\"sb-testimonial--item\">\r\n\t<div class=\"item-img-info\">\r\n\t\t<img data-sizes=\"auto\" class=\"img-fluid lazyload \" src=\"{{cdn '/assets/img/loading.svg'}}\" data-src=\"{{cdn avatar }}\" alt=\"{{author_name}}\" />\r\n\t</div>\r\n\t<div class=\"item-info\">\r\n\t\t<p>{{content}}</p>\t\t\t\r\n\t\t<h5>{{author_name}}</h5>\t\t\t\r\n\t\t<span class=\"position\">{{author_position}}</span>\t\t\t\r\n\t</div>\r\n\t\t\r\n</div>\r\n"}
| json |
<filename>src/apis/emscripten/env.rs
use super::super::host;
/// NOTE: These syscalls only support wasm_32 for now because they take u32 offset
use libc::{
c_int, c_long, getenv, getgrnam as libc_getgrnam, getpwnam as libc_getpwnam, putenv, setenv,
sysconf, unsetenv,
};
use std::ffi::CStr;
use std::mem;
use std::os::raw::c_char;
use super::utils::{allocate_on_stack, copy_cstr_into_wasm, copy_terminated_array_of_cstrs};
use crate::webassembly::Instance;
// #[no_mangle]
/// emscripten: _getenv // (name: *const char) -> *const c_char;
pub extern "C" fn _getenv(name: c_int, instance: &mut Instance) -> u32 {
debug!("emscripten::_getenv");
let name_addr = instance.memory_offset_addr(0, name as usize) as *const c_char;
debug!("=> name({:?})", unsafe { CStr::from_ptr(name_addr) });
let c_str = unsafe { getenv(name_addr) };
if c_str.is_null() {
return 0;
}
unsafe { copy_cstr_into_wasm(instance, c_str) }
}
/// emscripten: _setenv // (name: *const char, name: *const value, overwrite: int);
pub extern "C" fn _setenv(name: c_int, value: c_int, overwrite: c_int, instance: &mut Instance) {
debug!("emscripten::_setenv");
let name_addr = instance.memory_offset_addr(0, name as usize) as *const c_char;
let value_addr = instance.memory_offset_addr(0, value as usize) as *const c_char;
debug!("=> name({:?})", unsafe { CStr::from_ptr(name_addr) });
debug!("=> value({:?})", unsafe { CStr::from_ptr(value_addr) });
unsafe { setenv(name_addr, value_addr, overwrite) };
}
/// emscripten: _putenv // (name: *const char);
pub extern "C" fn _putenv(name: c_int, instance: &mut Instance) {
debug!("emscripten::_putenv");
let name_addr = instance.memory_offset_addr(0, name as usize) as *const c_char;
debug!("=> name({:?})", unsafe { CStr::from_ptr(name_addr) });
unsafe { putenv(name_addr as _) };
}
/// emscripten: _unsetenv // (name: *const char);
pub extern "C" fn _unsetenv(name: c_int, instance: &mut Instance) {
debug!("emscripten::_unsetenv");
let name_addr = instance.memory_offset_addr(0, name as usize) as *const c_char;
debug!("=> name({:?})", unsafe { CStr::from_ptr(name_addr) });
unsafe { unsetenv(name_addr) };
}
pub extern "C" fn _getpwnam(name_ptr: c_int, instance: &mut Instance) -> c_int {
debug!("emscripten::_getpwnam {}", name_ptr);
#[repr(C)]
struct GuestPasswd {
pw_name: u32,
pw_passwd: <PASSWORD>,
pw_uid: u32,
pw_gid: u32,
pw_gecos: u32,
pw_dir: u32,
pw_shell: u32,
}
let name = unsafe {
let memory_name_ptr = instance.memory_offset_addr(0, name_ptr as usize) as *const c_char;
CStr::from_ptr(memory_name_ptr)
};
unsafe {
let passwd = &*libc_getpwnam(name.as_ptr());
let passwd_struct_offset = (instance.emscripten_data.as_ref().unwrap().malloc)(
mem::size_of::<GuestPasswd>() as _,
instance,
);
let passwd_struct_ptr =
instance.memory_offset_addr(0, passwd_struct_offset as _) as *mut GuestPasswd;
(*passwd_struct_ptr).pw_name = copy_cstr_into_wasm(instance, passwd.pw_name);
(*passwd_struct_ptr).pw_passwd = copy_cstr_into_wasm(instance, passwd.pw_passwd);
(*passwd_struct_ptr).pw_gecos = copy_cstr_into_wasm(instance, passwd.pw_gecos);
(*passwd_struct_ptr).pw_dir = copy_cstr_into_wasm(instance, passwd.pw_dir);
(*passwd_struct_ptr).pw_shell = copy_cstr_into_wasm(instance, passwd.pw_shell);
(*passwd_struct_ptr).pw_uid = passwd.pw_uid;
(*passwd_struct_ptr).pw_gid = passwd.pw_gid;
passwd_struct_offset as c_int
}
}
pub extern "C" fn _getgrnam(name_ptr: c_int, instance: &mut Instance) -> c_int {
debug!("emscripten::_getgrnam {}", name_ptr);
#[repr(C)]
struct GuestGroup {
gr_name: u32,
gr_passwd: u32,
gr_gid: u32,
gr_mem: u32,
}
let name = unsafe {
let memory_name_ptr = instance.memory_offset_addr(0, name_ptr as usize) as *const c_char;
CStr::from_ptr(memory_name_ptr)
};
unsafe {
let group = &*libc_getgrnam(name.as_ptr());
let group_struct_offset = (instance.emscripten_data.as_ref().unwrap().malloc)(
mem::size_of::<GuestGroup>() as _,
instance,
);
let group_struct_ptr =
instance.memory_offset_addr(0, group_struct_offset as _) as *mut GuestGroup;
(*group_struct_ptr).gr_name = copy_cstr_into_wasm(instance, group.gr_name);
(*group_struct_ptr).gr_passwd = copy_cstr_into_wasm(instance, group.gr_passwd);
(*group_struct_ptr).gr_gid = group.gr_gid;
(*group_struct_ptr).gr_mem = copy_terminated_array_of_cstrs(instance, group.gr_mem);
group_struct_offset as c_int
}
}
pub extern "C" fn _getpagesize() -> u32 {
debug!("emscripten::_getpagesize");
16384
}
pub extern "C" fn ___build_environment(environ: c_int, instance: &mut Instance) {
debug!("emscripten::___build_environment {}", environ);
const MAX_ENV_VALUES: u32 = 64;
const TOTAL_ENV_SIZE: u32 = 1024;
let mut environment = instance.memory_offset_addr(0, environ as _) as *mut c_int;
unsafe {
let (pool_offset, pool_slice): (u32, &mut [u8]) =
allocate_on_stack(TOTAL_ENV_SIZE as u32, instance);
let (env_offset, env_slice): (u32, &mut [u8]) =
allocate_on_stack((MAX_ENV_VALUES * 4) as u32, instance);
let mut env_ptr = instance.memory_offset_addr(0, env_offset as _) as *mut c_int;
let mut pool_ptr = instance.memory_offset_addr(0, pool_offset as _) as *mut c_int;
*env_ptr = pool_offset as i32;
*environment = env_offset as i32;
// *env_ptr = 0;
};
// unsafe {
// *env_ptr = 0;
// };
}
pub extern "C" fn _sysconf(name: c_int, _instance: &mut Instance) -> c_long {
debug!("emscripten::_sysconf {}", name);
// TODO: Implement like emscripten expects regarding memory/page size
unsafe { sysconf(name) }
}
| rust |
//@HEADER
// ************************************************************************
//
// HPCCG: Simple Conjugate Gradient Benchmark Code
// Copyright (2006) Sandia Corporation
//
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
// license for use of this work by or on behalf of the U.S. Government.
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
// USA
// Questions? Contact <NAME> (<EMAIL>)
//
// ************************************************************************
//@HEADER
#ifdef USING_MPI // Compile this routine only if running in parallel
#include <iostream>
using std::cerr;
using std::endl;
#include <cstdlib>
#include <cstdio>
#include "exchange_externals.hpp"
#undef DEBUG
void exchange_externals(HPC_Sparse_Matrix * A, const double *x)
{
int i, j, k;
int num_external = 0;
// Extract Matrix pieces
int local_nrow = A->local_nrow;
int num_neighbors = A->num_send_neighbors;
int * recv_length = A->recv_length;
int * send_length = A->send_length;
int * neighbors = A->neighbors;
double * send_buffer = A->send_buffer;
int total_to_be_sent = A->total_to_be_sent;
int * elements_to_send = A->elements_to_send;
int size, rank; // Number of MPI processes, My process ID
MPI_Comm_size(MPI_COMM_WORLD, &size);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
//
// first post receives, these are immediate receives
// Do not wait for result to come, will do that at the
// wait call below.
//
int MPI_MY_TAG = 99;
MPI_Request * request = new MPI_Request[num_neighbors];
//
// Externals are at end of locals
//
double *x_external = (double *) x + local_nrow;
// Post receives first
for (i = 0; i < num_neighbors; i++)
{
int n_recv = recv_length[i];
MPI_Irecv(x_external, n_recv, MPI_DOUBLE, neighbors[i], MPI_MY_TAG,
MPI_COMM_WORLD, request+i);
x_external += n_recv;
}
//
// Fill up send buffer
//
for (i=0; i<total_to_be_sent; i++) send_buffer[i] = x[elements_to_send[i]];
//
// Send to each neighbor
//
for (i = 0; i < num_neighbors; i++)
{
int n_send = send_length[i];
MPI_Send(send_buffer, n_send, MPI_DOUBLE, neighbors[i], MPI_MY_TAG,
MPI_COMM_WORLD);
send_buffer += n_send;
}
//
// Complete the reads issued above
//
MPI_Status status;
for (i = 0; i < num_neighbors; i++)
{
if ( MPI_Wait(request+i, &status) )
{
cerr << "MPI_Wait error\n"<<endl;
exit(-1);
}
}
delete [] request;
return;
}
#endif // USING_MPI
| cpp |
Finance Minister Nirmala Sitharaman has said India is in talks with different countries, including Singapore and the UAE, to make RuPay acceptable there. She also said payment systems UPI, BHIM and NPCI are all now being worked in such a way that the systems of respective countries can talk to the Indian system and the interoperability will then itself give strength to India’s expertise in those countries.
On India’s economic performance, Sitharaman said pre-pandemic efforts included making the Indian economy robust with the infrastructure of not just roads but also digital infrastructure ready, financial inclusion so that everybody has access to a bank account. All this came in handy during the COVID-19 pandemic.
India’s gross domestic product (GDP) rose 13. 5 per cent in the June 2022 quarter (Q1FY23) as compared with the 20. 1 per cent growth registered in Q1 2021-22. It was the fastest growth in a year, as the country’s GDP had grown at 4. 1 per cent in the previous quarter (Q4FY22), 5. 4 per cent in the December 2021 quarter of FY22, and 8. 4 per cent in September 2021 quarter.
However, on Tuesday, the International Monetary Fund (IMF) slashed its estimate for India’s GDP growth in the current financial year started April by 60 basis points to 6. 8 per cent from a previously expected 7. 4 per cent, on account of lower-than-expected growth in April-June and weak external demand. The figure for FY24 was left unchanged at 6. 1 per cent.
Sitharaman made the remarks at the prestigious Brookings Institute think-tank during a fireside chat with eminent economist Eshwar Prasad.
She said multilateral institutions need to be robust and strengthened in order to give solutions, and voices of emerging markets will have to find traction. “We are working together for global good. "
On the reforms in the Indian economy, she said, “It is the process that the government has to keep doing and doing and carrying it forwards. It is not sufficient to just privatise a company here or there but even look at some of the core sectors which we have announced during the 2021 budget… We opened up all the sectors for the private sector to come in, there was no one area totally reserved for the public sector. "
Sitharaman added that reforms are going through steadily and continuously. “It’s not like we’ve done that and the story ended there. We are committed to third-generation reforms and are going through with them. "
On the agriculture sector, the finance minister said the government last year had to pay much more for imports of fertilisers due to the rise in international prices. But the Modi government took the burden of the entire price rise and the farmers paid what they had paid in 2018-19. | english |
<reponame>pkch93/cardshare
{% extends "layout/base.html" %}
{% block title %}카드쉐어{% endblock %}
{% block head %}
{{ super() }}
<link rel="stylesheet" href="{{ url_for('static', filename='css/index.css') }}" />
{% endblock %}
{% block body %}
<main class="main">
<div class="copy">
<div class="copy__text">
따뜻한 말 한마디로<br />행복과 추억을 나눠요.
</div>
</div>
<div class="wrapper">
<section class="header">
<div class="tutorial">
<div class="tutorial__title">How to Use</div>
<ul class="tutorial__numbers">
<li class="tutorial__number">
1. 아래에서 샘플 카드를 선택하세요.
</li>
<li class="tutorial__number">
2. 감동 문구와 추억의 사진을 넣으세요.
</li>
<li class="tutorial__number">3. 지인들에게 행복을 공유하세요.</li>
</ul>
</div>
</section>
<section class="cards">
<a href="card/create?type=1" class="card"><img src="{{ url_for('static', filename='img/card1.png') }}" alt="card1"/></a>
<a href="card/create?type=2" class="card"><img src="{{ url_for('static', filename='img/card2.png') }}" alt="card2"/></a>
<a href="card/create?type=3" class="card"><img src="{{ url_for('static', filename='img/card3.png') }}" alt="card3"/></a>
<a href="card/create?type=4" class="card"><img src="{{ url_for('static', filename='img/card4.png') }}" alt="card4"/></a>
</section>
</div>
</main>
{% endblock %} | html |
<reponame>AP2020Fall/project-team-team-2<filename>src/main/java/controller/player/PlayerFriendsMenuController.java<gh_stars>1-10
package controller.player;
import main.ClientInfo;
import model.FriendRequest;
import model.Player;
import java.util.ArrayList;
public class PlayerFriendsMenuController {
private final Player player;
public PlayerFriendsMenuController(ClientInfo clientInfo) {
this.player = Player.getPlayerByUsername(clientInfo.getLoggedInUsername());
if (player == null)
System.err.println("Player passed to FriendsMenuController is null.");
}
public ArrayList<Player> getFriends() {
return player.getFriends();
}
public ArrayList<FriendRequest> getFriendRequests() {
return player.getReceivedFriendRequests();
}
public void acceptRequest(String friendRequestId) {
for (FriendRequest friendRequest : player.getReceivedFriendRequests())
if (friendRequest.getFriendRequestId().equals(friendRequestId))
friendRequest.acceptRequest();
}
public String getFriendRequestPlayerName(String friendRequestId) {
for (FriendRequest friendRequest : player.getReceivedFriendRequests())
if (friendRequest.getFriendRequestId().equals(friendRequestId))
return friendRequest.getPlayer().getUsername();
return "";
}
public void declineRequest(String friendRequestId) {
for (FriendRequest friendRequest : player.getReceivedFriendRequests())
if (friendRequest.getFriendRequestId().equals(friendRequestId))
friendRequest.declineRequest();
}
} | java |
<filename>infra/bots/assets/skimage/create.py
#!/usr/bin/env python
#
# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Create the asset."""
import argparse
import common
from assets import asset_utils
def create_asset(target_dir):
"""Create the asset."""
# The common case is to add one or more images to the existing set. Therefore,
# download the previous version first.
asset = asset_utils.Asset(common.ASSET_NAME, asset_utils.MultiStore())
asset.download_current_version(target_dir)
# Allow the user to modify the contents of the target dir.
raw_input('Previous SKImage contents have been downloaded. Please make '
'your desired changes in the following directory and press enter '
'to continue:\n%s' % target_dir)
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--target_dir', '-t', required=True)
args = parser.parse_args()
create_asset(args.target_dir)
if __name__ == '__main__':
main()
| python |
Blues ... Black ... Darker than grey/ Creation sounds Gold Reef Mine rockfall crush-sounds/ Guitar-string gun-spit tear flesh/ Black sonic science/ Darkest Acoustics ...from Where Are The Keys? on Group Theory: Black Music.
South African poet Lesego Rampolokeng often writes about Black music in his poems. His collaborations with musicians on record are rarer but always remarkable. There was the casette-only 1994 African Axemen collaboration with Zimbabwean Louis Mhlanga and a stellar crew of other pan-African guitarists. And his Tears for Marikana on Salim Washington’s album, Sankofa. And now the track Where Are the Keys? on South African drummer and composer Tumi Mogorosi’s fourth outing: Group Theory: Black Music.
What makes the collaboration so satisfying is the shared skill of both Rampolokeng and Mogorosi in signifying. Not the “signification” of semiotics, but the righteous, subversive signifying perfected by the Black churches and theorised by US literary critic Henry Louis Gates Jr.
For him signifying is “the practice of representing an idea indirectly, through a commentary that is often humourous, boastful, insulting, or provocative”. Communities repurpose ideas; poets like Rampolokeng do it via wordplay; jazz musicians, every time they improvise.
So when Black South African jazz players, decades ago, heard and admired American jazz on record or at the movies, they not only copied the styles and approaches. They also employed many ways to “make it our own”. When Peter Rezant’s Merry Blackbirds recorded the international standard Heatwave in 1939, for example, they played the tune straight – but the words, in an African language, became a praise song for the band’s national prowess.
Musician, activist and scholar Mogorosi started his musical career as a chorister in church. So, it is not surprising that part of his signifying has often been through working with voices. From singing, he moved to guitar and later drums. At 18, he studied music at the Tshwane University of Technology. He now has a master’s degree in fine arts and is registered on a doctoral programme.
Along the way he produced his 2014 debut album, Project ELO, from a sextet with four accompanying voices. In 2017 he was part of the Swiss-based Sanctum Sanctorium with its allusion to sacred rites. He worked internationally with, among others, UK saxophonist Shabaka Hutchings.
Those international collaborations set the scene for the joint release of the new album between South African label Mushroom Half Hour and UK imprint New Soil. In 2020, in a trio called Wretched with vocalist Gabisile Motuba and guitarist Andrei van Wyk he improvised and experimented with vocals and noise.
Group Theory: Black Music has echoes of all those, but is a sonically distinct new project. The album’s notes refer to two musical sources, from South African and American jazz traditions. The rich South African vocal tradition of jazz composers like Todd Matshikiza and Victor Ntoni, and the work with voices of radical American jazzmen like Max Roach, Billy Harper and Andrew Hill.
Mogorosi says:
(Black voices in concert have) this idea of mass, of a group of people gathering, which has a political implication. And the operatic voice has both a presence and a capacity to scream, a capacity for affect. The instrumental group can sustain the intensity of that affect, and the chorus can go beyond improvisation, towards communal melodies that everyone can be a part of.
So, alongside the jazz quintet – Mogorosi, reedman Mthunzi Mvubu, trumpeter Tumi Pheko, guitarist Reza Khota and bassist Dalisu Ndlazi – the tracks employ a nine-voice chorus, predominantly singing in unison to shape the communal voice. There are also two guest vocalists, Motuba and Siyabonga Mthembu, each providing a very different interpretation of the traditional Sometimes I Feel Like a Motherless Child.
That choice of song, the only one not composed by Mogorosi, makes explicit the community and spiritual traditions shared by Africa and the Black diaspora. Mthembu’s take on it is inspiring, heartfelt and soul-infused: the massed voices echoing the historic style of the Howard Roberts Chorale. Motuba’s voice is more subversive: underlined by Khota’s guitar improvisation, she fractures lyric and phrasing deliberately to build tension with the choir.
The very distinctive instrumental voices, and the presence of veteran piano guest Andile Yenana, also interrogate conventional roles in an ensemble. Who is a leader and who a composer when each sonic element cedes and creates space for the ideas of others.
Far less smooth is the sound of the chorus on Thaba Bosiu, the track featuring Yenana, where fragmented textures and that capacity to “scream” that Mogorosi notes come to the fore over urgent, imaginative improvisation from drums, guitar, piano and bass. The track is faded out – it is a long album – but that’s the one I wanted more of.
The theoretical underpinnings of the album are many. The title Group Theory: Black Music foregrounds three: association, identity and closure. But there is nothing dry and theoretical about the sound. It’s warm, human and at points more tuneful than some of Mogorosi’s previous work.
The drummer quotes jazz historian and critic Amiri Baraka’s proposition about the “New Black Music” of another era – “Find the self, then kill it” – to point to the collective and global struggle to generate new identities, ideas and sounds from those who were previously hemmed in.
The closing track, Where Are the Keys? with the prominent presence of veterans Yenana and Rampolokeng, and the poet’s encyclopedic stringing together of all the music’s sonic, intellectual and revolutionary influences, ties everything together.
Reading the poetry, which is supplied, is a rich source of perspectives for all kinds of thinking beyond the edges of a record. The situation of war, poverty but also creativity into which the music is published means that, right now, closure isn’t an answer; it’s a question too:
Gwen Ansell is Associate of the Gordon Institute for Business Science, University of Pretoria.
This article was first published on The Conversation.
| english |
Paige VanZant, the former UFC fighter who has transitioned into an OnlyF*ns star, continues to captivate fan attention with her social media presence. While her in-cage actions may have taken a backseat, her online persona and posts have kept fans engaged.
After building a successful following on her paid subscription OnlyF*ns account, Paige VanZant recently launched a free account on the platform. This move has stirred excitement among her fans, who now have access to her exclusive content without the need for a paid subscription.
'12 Gauge' has been teasing her followers on Instagram with mirror selfies, providing a glimpse of what her free OnlyF*ns account has to offer. In a recent video post, she showcased a series of mirror selfies.
Unsurprisingly, the provocative content has prompted wild reactions from her devoted fanbase. One fan cheekily commented that the video itself serves as an equivalent to her OnlyF*ns content.
"This is her onlyfans right here^😂"
Another fan, taking a dig at VanZant's inactive fighting career, remarked:
"So this is how an unsuccessful fighter looks like"
Amidst the varied reactions, one fan couldn't help but appreciate VanZant's figure:
"I'm sure ur getting thicker 💯🔥🔥🔥"
Check out the reactions below:
Paige VanZant's transition to the UFC flyweight division was marred by a series of unfortunate events and setbacks throughout her tenure.
In 2017, she was scheduled to face Jessica Eye at UFC 216 but had to withdraw due to a back injury. This was followed by a string of ailments, further delaying her debut in the flyweight division.
Paige VanZant finally made her flyweight debut on January 14, 2018, against Jessica Rose-Clark at UFC Fight Night: Stephens vs. Choi. However, her hopes of a successful comeback were shattered when she broke her arm in the second round while attempting a spinning back fist. She lost the fight via unanimous decision.
After a year-long hiatus due to her broken arm, VanZant returned to the octagon on January 19, 2019, to face Rachael Ostovich. She showcased her submission skills, securing a victory via armbar in the second round.
Unfortunately, VanZant's journey in the flyweight division continued to be plagued by injuries. A scheduled bout with Poliana Botelho at UFC 236 was scrapped when VanZant suffered a fractured right arm.
Paige VanZant was scheduled to face Amanda Ribas at UFC Fight Night 170 in March 2020. However, she fractured her right arm for the third time during the fight, forcing her to withdraw. Despite her request for a reschedule, Ribas was forced to face Randa Markos as a replacement.
The fight with Ribas was eventually rescheduled for July 12, 2020, at UFC 251, but VanZant was submitted in the first round. Following the loss, '12 Gauge' left the promotion.
| english |
Young actor Santosh Sobhan has the best support system in the form of Prabhas.
The top star is completely behind him and encouraging him. Prabhas is also using social media to promote Santosh Sobhan's films.
Santosh gained recognition for himself by making concept-based movies at the beginning. However, his recent script choices have been disastrous.
Some of his recent films were so bad that they were not worth watching, even if you were given free admission.
His recent films include "Manchi Rojulochaie," "Like, Share & Subscribe," "Kalyanam Kamaneeyam," and "Sridevi Sobhan Babu," all of which were flops.
The film 'Sridevi Sobhan Babu' was so bad that even its producers avoided promoting it.
For this young actor to have a successful career, he must select stories wisely. | english |
Discover a new way to pray. A way that is more about proclaiming than pleading. A way rooted in an understanding of the goodness of God and the astonishing breadth of what Jesus purchased for us on the cross. A way that helps you approach God with confidence and joy. Author and pastor David A. Holland takes you on a two-week journey into new dimensions of intimacy and impact.
| english |
The death of a minor gang-rape victim here took a political colour Wednesday after the opposition CPI-M accused the police of trying to forcibly cremate the victim's body against the family's wishes.
The ruling Trinamool Congress has rejected the Communist Party of India-Marxist's allegations.
The girl, who was allegedly raped twice in October and had subsequently set herself on fire as she was unable to bear the taunts and threats by her alleged molestors, Tuesday succumbed to her injuries in a government hospital here.
The victim's father - a taxi driver - said he would meet Governor M. K. Narayanan seeking death penalty for the rapists.
Shyamal Chakrabarty, president of the CPI-M-affiliated CITU (Centre of Indian Trade Unions), and the victim's father accused the police of trying to forcibly cremate the body.
"The police took away the body and wanted to cremate it. They even baton charged those who protested the move. But they couldn't cremate the body as they did not have the death certificate," said Chakraborty.
"There was so much drama over my daughter's body," said the inconsolable father after the body was retrieved from the crematorium and eventually brought to the CITU office in the city.
Trinamool general secretary Mukul Roy, meanwhile, said: "The incident is highly condemnable . . . the guilty have been arrested and are behind bars. "
"While such an incident is highly unwarranted we feel the opposition has mentality of trying to malign and lower the esteem of the ruling party," he added.
The girl's family and civil society members took out a condolence march Wednesday and they proposed to submit a memorandum to the governor seeking death penalty for the rapists.
Though police have denied the allegation of forcibly taking the body for cremation, the Left Front will stage condemnation rallies across the state against the "police harassment" meted out to the victim's family.
Meanwhile, the National Commission for Women has taken cognizance of the case and will seek a report from Chief Minister Mamata Banerjee on the action taken by her government.
"Had police rendered their job efficiently, the girl wouldn't have been brutalised a second time. We have taken cognizance of the case and will write to the chief minister seeking what action she has taken," NCW chair Mamta Sharma said. | english |
package precious_rule_system.journeyview.view.popup;
import android.content.Context;
import android.graphics.Color;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;
import precious_rule_system.journeyview.view.JourneyView;
import precious_rule_system.journeyview.helpers.Utilities;
/**
* Created by christopher on 01.09.16.
*/
public class PopupFooterView extends RelativeLayout {
Context context;
JourneyView parent;
int width;
int height;
public PopupFooterView(Context context, JourneyView parent, int width, int height) {
super(context);
this.context = context;
this.parent = parent;
this.width = width;
this.height = height;
this.initialize(parent);
}
private void initialize(final JourneyView parent) {
PopupFooterBackground bg = new PopupFooterBackground(context);
this.addView(bg,new RelativeLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
TextView label = new TextView(context);
label.setText("Awesome");
label.setId(Utilities.generateViewId());
label.setTextColor(Color.rgb(255,255,255));
LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
params.addRule(RelativeLayout.CENTER_IN_PARENT);
bg.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
parent.closePopupButtonClicked();
}
});
this.addView(label,params);
}
}
| java |
# -*- coding: utf-8 -*-
# Copyright 2015 <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
from wsme import types as wtypes
import wsmeext.pecan as wsme_pecan
from cloudkitty import rating
from cloudkitty.rating.hash.controllers import field as field_api
from cloudkitty.rating.hash.controllers import group as group_api
from cloudkitty.rating.hash.controllers import mapping as mapping_api
from cloudkitty.rating.hash.controllers import service as service_api
from cloudkitty.rating.hash.controllers import threshold as threshold_api
from cloudkitty.rating.hash.datamodels import mapping as mapping_models
class HashMapConfigController(rating.RatingRestControllerBase):
"""Controller exposing all management sub controllers."""
_custom_actions = {
'types': ['GET']
}
services = service_api.HashMapServicesController()
fields = field_api.HashMapFieldsController()
groups = group_api.HashMapGroupsController()
mappings = mapping_api.HashMapMappingsController()
thresholds = threshold_api.HashMapThresholdsController()
@wsme_pecan.wsexpose([wtypes.text])
def get_types(self):
"""Return the list of every mapping type available.
"""
return mapping_models.MAP_TYPE.values
| python |
/* The Adama Programming Language For Board Games!
* See http://www.adama-lang.org/ for more information.
* (c) copyright 2020 <NAME> (http://jeffrey.io) */
package org.adamalang.runtime.natives;
import org.adamalang.runtime.mocks.MockMessage;
import org.junit.Assert;
import org.junit.Test;
public class NtTableTests {
@Test
public void flow() {
final var table = new NtTable<>(MockMessage::new);
new NtTable<>(table);
table.make();
Assert.assertEquals(1, table.size());
table.make();
Assert.assertEquals(2, table.size());
table.delete();
Assert.assertEquals(0, table.size());
Assert.assertEquals(0, table.iterate(false).size());
table.make();
table.make();
table.make();
Assert.assertEquals(3, table.iterate(false).size());
table.__raiseInvalid();
}
}
| java |
<gh_stars>10-100
{"type":"Feature","id":"way/645960062","properties":{"building":"yes","name":"<NAME>","operator":"<NAME>","shop":"farm","id":"way/645960062"},"geometry":{"type":"Point","coordinates":[8.7965119,49.6426367]}} | json |
Virtual reality is everywhere these days, but shelling out for an Oculus Rift might be a pricey investment if you’re a VR novice. Google Cardboard, though not the flashiest headset, is the perfect entry point into 3D gaming.
Now, before you start exploring the library, you should download the actual Cardboard app:
The app helps you set up a viewer and get familiar with the VR landscape. Plus there are some cool experiences built right in — from a tour of the Northern Lights to an Urban Hike. This lets viewers walk around the world’s greatest cities.
If you’re looking for a cheap VR option, this can be your answer. If you’re looking for something else, we’ve still got you covered:
After you’ve learned the ropes, you’ll likely want to broaden those virtual horizons.
Below, we’ve compiled a list of the best apps you can download for Google Cardboard. Whether you’re up for a bone-chilling horror game or just chilling with friends.
A real step up from Second Life, vTime is a VR app designed for socializing in immersive, virtual destinations. The app is device-agnostic and has a lot in common with traditional social media apps. Users create an avatar and customize their profile. From there, you can chat with friends, family, and strangers.
While this does just look like a digital hangout — you’re dropping yourself into a video game landscape. vTime also allows you to share photos and videos from your camera roll with your digitized pals.
vTime isn’t exactly the kind of app that creates an adventure. It’s a more sedentary experience. You and your pals can hang around a campfire, on a rooftop, or on top of your photo album.
“Netflix and chill” may have a whole new meaning.
Even though no one talks about it, Netflix has had a VR offering for quite a while now. The Netflix VR app lets users watch content through the cardboard headset through two different viewing modes.
Netflix has yet to release any 3D Netflix Originals, but you can watch everything in the catalog through your headset. Hopefully, we’ll see some VR content soon. In the meantime, the immersive viewing experience is still pretty cool.
Don’t play this game with a full bladder.
Sisters VR is a horror game that’s been around for a few years but still holds up as one of the best entries in the Google Play store.
The ghost story takes place in a Victorian mansion, loaded with creepy portraits, dusty furniture, and plenty of jump scares.
While Sisters is an entry-level game, it’s the perfect way to get used to Google Cardboard and get your horror fix.
Now you can find a wretched hive of scum and villainy in VR!
More than a game, Star Wars VR is fans’ mobile connection to the franchise. There’s a big trivia component built-in and it’s a go-to source for announcements and new content.
This VR experience transports you to the Jakku Desert from “Star Wars: The Force Awakens” as a resistance agent. Hone your lightsaber skills in the immersive Star Wars universe, unlock 3D characters, and take selfies from inside the app.
Why go to the movies when you can experience the theater from the comfort of home?
CINEVR aims to bring the movie-going experience to you with a realistic 3D movie theater with customizable lighting effects to boot.
You can watch movies through the app from various streaming sources and invite up to eight friends to watch with you. You can talk over the movie and send emoji reactions.
Minos Starfighter VR is a first-person space shooter with Android graphics that rival PlayStation quality.
Players fight off enemy ships in waves and shoot them down using a trigger button from your Bluetooth or USB controller. If you don’t have a controller, no big deal. You’ll also have the option to play using gaze navigation.
While the premise of Minos Starfighter is standard arcade fare, experiencing the flight simulation in VR breathes new life into the classic style.
Google’s Expeditions is a VR field trip app that makes learning fun. The app used to be exclusively available to teachers and their students. However, now anyone with Cardboard (or Daydream) can sign up for the field trip, too.
Okay, it’s actually pretty cool. Adventurers can visit the International Space Station, the African Plains, the Great Barrier Reef, or another planet. You can choose to be a leader, which means you’re given information to present to a group. You can be a tour guide in a museum, or you can be an adventurer and let someone else do the talking.
The app will pair you with people on the same Wi-Fi network if you’re a solo explorer, you can just join a tour.
If you haven’t tried virtual reality yet, Google Cardboard is just $15 and offers a low-stakes intro into VR. Whether you’re into exploring the world from home, hanging out with friends, or up for an adventure, Cardboard is a great way to find out if VR is up your alley. And hey, if you happen to get motion sickness, it’s no major hit to the wallet.
| english |
<gh_stars>1-10
package tailf
import (
"sync"
"time"
"github.com/astaxie/beego/logs"
"github.com/hpcloud/tail"
)
const (
StatusNormal = 1
StatusDelete = 2
)
type CollectConf struct {
LogPath string `json:"logpath"`
Topic string `json:"topic"`
}
type TailObj struct {
tail *tail.Tail
conf CollectConf
status int
exitChan chan int
}
type TextMsg struct {
Msg string
Topic string
}
type TailObjMgr struct {
tailObjs []*TailObj
msgChan chan *TextMsg
lock sync.Mutex
}
var (
tailObjMgr *TailObjMgr
)
func GetOneLine() (msg *TextMsg) {
msg = <-tailObjMgr.msgChan
return
}
func UpdateConfig(confs []CollectConf) (err error) {
tailObjMgr.lock.Lock()
defer tailObjMgr.lock.Unlock()
for _, oneConf := range confs {
var isRunning = false
for _, obj := range tailObjMgr.tailObjs {
if oneConf.LogPath == obj.conf.LogPath {
isRunning = true
break
}
}
if isRunning {
continue
}
createNewTask(oneConf)
}
var tailObjs []*TailObj
for _, obj := range tailObjMgr.tailObjs {
obj.status = StatusDelete
for _, oneConf := range confs {
if oneConf.LogPath == obj.conf.LogPath {
obj.status = StatusNormal
break
}
}
if obj.status == StatusDelete {
obj.exitChan <- 1
continue
}
tailObjs = append(tailObjs, obj)
}
tailObjMgr.tailObjs = tailObjs
return
}
func createNewTask(conf CollectConf) {
obj := &TailObj{
conf: conf,
exitChan: make(chan int, 1),
}
tails, errTail := tail.TailFile(conf.LogPath, tail.Config{
ReOpen: true,
Follow: true,
//Location: &tail.SeekInfo{Offset: 0, Whence: 2},
MustExist: false,
Poll: true,
})
if errTail != nil {
logs.Error("collect filename[%s] failed, err:%v", conf.LogPath, errTail)
return
}
obj.tail = tails
tailObjMgr.tailObjs = append(tailObjMgr.tailObjs, obj)
go readFromTail(obj)
}
func InitTail(conf []CollectConf, chanSize int) (err error) {
tailObjMgr = &TailObjMgr{
msgChan: make(chan *TextMsg, chanSize),
}
if len(conf) == 0 {
logs.Error("invalid config for log collect, conf:%v", conf)
return
}
for _, v := range conf {
createNewTask(v)
}
return
}
func readFromTail(tailObj *TailObj) {
for true {
select {
case line, ok := <-tailObj.tail.Lines:
if !ok {
logs.Warn("tail file close reopen, filename:%s\n", tailObj.tail.Filename)
time.Sleep(100 * time.Millisecond)
continue
}
textMsg := &TextMsg{
Msg: line.Text,
Topic: tailObj.conf.Topic,
}
tailObjMgr.msgChan <- textMsg
case <-tailObj.exitChan:
logs.Warn("tail obj will exited, conf:%v", tailObj.conf)
return
}
}
}
| go |
<reponame>dreambo8563/RSK-Redux<gh_stars>1-10
import React, { Component, PropTypes } from 'react';
import { Link } from 'react-router'
import cx from 'classnames'
import s from './ListHeader.css'
class ListHeader extends Component {
static propTypes = {
category: PropTypes.string.isRequired,
desc: PropTypes.string.isRequired,
href: PropTypes.string.isRequired,
className: PropTypes.string,
more: PropTypes.string
}
static defaultProps = {
more: '更多>'
}
render() {
const { category, desc, href, more, className } = this.props
return (
<div className={cx(s.headerContainer, className) } >
<div className={s.ribbon} />
<div className={s.category}>{category}</div>
<div className={s.desc}>{desc}</div>
<Link to={href} className={s.more}>{more}</Link>
</div>
)
}
}
export default ListHeader
| javascript |
{
"parameters": {
"serviceName": "sampleServiceName",
"IPAddressAggregateSetting": {
"id": "ipAddressAggregateSettings",
"badPasswordAndExtranetLockoutCombinedDailyThreshold": 11,
"badPasswordAndExtranetLockoutCombinedHourlyThreshold": 7,
"extranetLockoutDailyThreshold": 7,
"extranetLockoutHourlyThreshold": 8,
"emailNotificationEnabled": true
},
"api-version": "2014-01-01"
},
"responses": {
"200": {
"body": {
"id": "ipAddressAggregateSettings",
"badPasswordAndExtranetLockoutCombinedDailyThreshold": 11,
"badPasswordAndExtranetLockoutCombinedHourlyThreshold": 7,
"extranetLockoutDailyThreshold": 7,
"extranetLockoutHourlyThreshold": 8,
"emailNotificationEnabled": true
}
}
}
}
| json |
Blake Lemoine, the ex-Google engineer who had claimed last year that the company's AI bot had gone sentient, revealed in a new interview that the release of Bard was delayed over safety concerns.
- Former Google engineer says Bard has been in development since 2021.
- He added that Google didn't release Bard earlier as they were trying to be safe.
- This is the same engineer who claimed that Google's AI had gone 'sentient'.
By Divyanshi Sharma: Until November 2022, not a lot of people were familiar with the term 'generative AI'. However, things changed soon after that as OpenAI introduced its ground-breaking AI chatbot, ChatGPT, that could write essays, compose poems, answer questions in a human-like manner, and whatnot. In February this year, Google unveiled its ChatGPT rival Bard and Microsoft came out with its AI-powered search engine and chatbot Bing. However, did you know that Google's Bard had been in development since 2021 and could have been released around the same time as ChatGPT?
Blake Lemoine, who was a part of Google's AI team until last year, revealed in an interview with Futurism that Bard was in development in mid 2021. However, it wasn't named Bard yet and the company was trying to figure out if it would be safe to release it or not.
He added, "They were on the verge of releasing something in the fall of 2022. So it would have come out right around the same time as ChatGPT, or right before it. Then, in part because of some of the safety concerns I raised, they deleted it. "
The former Google engineer also said that the company is equipped with 'far more advanced technology' that hasn't been released yet.
Over the last couple of months, a lot has been reported about how Google lost sleep over ChatGPT and rushed into launching a rival of the viral AI chatbot.
Lemoine, while talking to the publication, said that Google was not being 'pushed around' by OpenAI and that the ChatGPT parent company had not had any effect on 'Google's trajectory'.
He added, "I think Google is going about doing things in what they believe is a safe and responsible manner, and OpenAI just happened to release something. "
In June last year, Google had suspended, and eventually fired, Lemoine after he claimed that an AI chatbot developed by the tech giant had gone 'sentient'. He had also said that the AI chatbot (developed by Google) 'thinks and responds like a human being'.
“If I didn’t know exactly what it was, which is this computer program we built recently, I’d think it was a seven-year-old, eight-year-old kid that happens to know physics,” Lemoine had said in conversation with the Washington Post at the time. His claims raised eyebrows and made headlines back then.
Following this, Lemoine was suspended by Google and was placed on paid leave. Eventually, he was fired from the company. The tech giant alleged that Lemoine breached their confidentiality policy and rejected his statements. | english |
<gh_stars>1-10
[
"2g1c",
"2 girls 1 cup",
"acrotomophilia",
"alabama hot pocket",
"alaskan pipeline",
"anal",
"anilingus",
"anus",
"apeshit",
"arsehole",
"ass",
"asshole",
"assmunch",
"auto erotic",
"autoerotic",
"babeland",
"baby batter",
"baby juice",
"ball gag",
"ball gravy",
"ball kicking",
"ball licking",
"ball sack",
"ball sucking",
"bangbros",
"bareback",
"barely legal",
"barenaked",
"bastard",
"bastardo",
"bastinado",
"bbw",
"bdsm",
"beaner",
"beaners",
"beaver cleaver",
"beaver lips",
"bestiality",
"big black",
"big breasts",
"big knockers",
"big tits",
"bimbos",
"birdlock",
"bitch",
"bitches",
"black cock",
"blonde action",
"blonde on blonde action",
"blowjob",
"blow job",
"blow your load",
"blue waffle",
"blumpkin",
"bollocks",
"bondage",
"boner",
"boob",
"boobs",
"booty call",
"brown showers",
"brunette action",
"bukkake",
"bulldyke",
"bullet vibe",
"bullshit",
"bung hole",
"bunghole",
"busty",
"butt",
"buttcheeks",
"butthole",
"camel toe",
"camgirl",
"camslut",
"camwhore",
"carpet muncher",
"carpetmuncher",
"chocolate rosebuds",
"circlejerk",
"cleveland steamer",
"clit",
"clitoris",
"clover clamps",
"clusterfuck",
"cock",
"cocks",
"coprolagnia",
"coprophilia",
"cornhole",
"creampie",
"cum",
"cumming",
"cunnilingus",
"cunt",
"darkie",
"date rape",
"daterape",
"deep throat",
"deepthroat",
"dendrophilia",
"dick",
"dildo",
"dingleberry",
"dingleberries",
"dirty pillows",
"dirty sanchez",
"doggie style",
"doggiestyle",
"doggy style",
"doggystyle",
"dog style",
"dolcett",
"domination",
"dominatrix",
"dommes",
"donkey punch",
"double dong",
"double penetration",
"dp action",
"dry hump",
"dvda",
"eat my ass",
"ecchi",
"ejaculation",
"erotic",
"erotism",
"escort",
"eunuch",
"faggot",
"fecal",
"felch",
"fellatio",
"feltch",
"female squirting",
"femdom",
"figging",
"fingerbang",
"fisting",
"foot fetish",
"footjob",
"frotting",
"fuck",
"fuck buttons",
"fuckin",
"fucking",
"fucktards",
"fudge packer",
"fudgepacker",
"futanari",
"gang bang",
"gay sex",
"genitals",
"giant cock",
"girl on",
"girl on top",
"girls gone wild",
"goatcx",
"goatse",
"god damn",
"gokkun",
"golden shower",
"goodpoop",
"goo girl",
"goregasm",
"grope",
"group sex",
"g-spot",
"guro",
"hand job",
"handjob",
"hard core",
"hardcore",
"hentai",
"homoerotic",
"honkey",
"hooker",
"hot carl",
"hot chick",
"how to murder",
"huge fat",
"humping",
"intercourse",
"jack off",
"jail bait",
"jailbait",
"jelly donut",
"jerk off",
"jigaboo",
"jiggaboo",
"jiggerboo",
"jizz",
"juggs",
"kike",
"kinbaku",
"kinkster",
"kinky",
"knobbing",
"leather restraint",
"leather straight jacket",
"lemon party",
"lolita",
"lovemaking",
"make me come",
"male squirting",
"masturbate",
"menage a trois",
"milf",
"missionary position",
"motherfucker",
"mound of venus",
"mr hands",
"muff diver",
"muffdiving",
"nambla",
"nawashi",
"negro",
"neonazi",
"nigga",
"nigger",
"nig nog",
"nimphomania",
"nipple",
"nipples",
"nsfw images",
"nude",
"nudity",
"nympho",
"nymphomania",
"octopussy",
"omorashi",
"one cup two girls",
"one guy one jar",
"orgasm",
"orgy",
"paedophile",
"paki",
"panties",
"panty",
"pedobear",
"pedophile",
"pegging",
"penis",
"phone sex",
"piece of shit",
"pissing",
"piss pig",
"pisspig",
"playboy",
"pleasure chest",
"pole smoker",
"ponyplay",
"poof",
"poon",
"poontang",
"punany",
"poop chute",
"poopchute",
"porn",
"porno",
"pornography",
"<NAME>",
"pthc",
"pubes",
"pussy",
"queaf",
"queef",
"quim",
"raghead",
"raging boner",
"rape",
"raping",
"rapist",
"rectum",
"reverse cowgirl",
"rimjob",
"rimming",
"rosy palm",
"rosy palm and her 5 sisters",
"sadism",
"santorum",
"scat",
"schlong",
"scissoring",
"semen",
"sex",
"sexo",
"sexy",
"shaved beaver",
"shaved pussy",
"shemale",
"shibari",
"shit",
"shitblimp",
"shitty",
"shota",
"shrimping",
"skeet",
"slanteye",
"slut",
"smut",
"snatch",
"snowballing",
"sodomize",
"sodomy",
"spic",
"splooge",
"splooge moose",
"spooge",
"spread legs",
"spunk",
"strap on",
"strapon",
"strappado",
"strip club",
"style doggy",
"suicide girls",
"sultry women",
"swastika",
"swinger",
"tainted love",
"taste my",
"tea bagging",
"threesome",
"throating",
"tied up",
"tight white",
"tit",
"tits",
"titties",
"titty",
"tongue in a",
"topless",
"tosser",
"towelhead",
"tranny",
"tribadism",
"tub girl",
"tubgirl",
"tushy",
"twat",
"twink",
"twinkie",
"two girls one cup",
"undressing",
"upskirt",
"urethra play",
"urophilia",
"vagina",
"venus mound",
"vibrator",
"violet wand",
"vorarephilia",
"voyeur",
"vulva",
"wank",
"wetback",
"wet dream",
"white power",
"wrapping men",
"wrinkled starfish",
"xx",
"xxx",
"yiffy",
"zoophilia"
] | json |
<gh_stars>0
import * as path from 'path'
import * as exec from '@actions/exec'
import * as io from '@actions/io'
import {getVersion, gitTagExists} from '../src/version'
import * as fs from 'fs'
const testTag = 'TEST-TAG'
describe('version', () => {
const remotePath = path.join(__dirname, 'remote')
const localPath = path.join(__dirname, 'local')
beforeAll(async () => {
await io.mkdirP(remotePath)
await io.mkdirP(localPath)
fs.writeFileSync(path.join(remotePath, 'index.txt'), 'data')
const rOpt = {cwd: remotePath}
await exec.exec('git', ['init'], rOpt)
await exec.exec('git', ['config', 'user.email', '<EMAIL>'], rOpt)
await exec.exec('git', ['config', 'user.name', 'tester'], rOpt)
await exec.exec('git', ['add', 'index.txt'], rOpt)
await exec.exec('git', ['commit', '-m', 'test'], rOpt)
await exec.exec('git', ['tag', testTag], rOpt)
const lOpt = {cwd: localPath}
await exec.exec('git', ['init'], lOpt)
await exec.exec('git', ['remote', 'add', 'origin', remotePath], lOpt)
})
afterAll(async () => {
await io.rmRF(localPath)
await io.rmRF(remotePath)
})
it('can validate that git tag exists in remote', async () => {
const exists = await gitTagExists(testTag, localPath)
expect(exists).toBeTruthy()
})
it('fails to validate when git tag does not exist in remote', async () => {
const exists = await gitTagExists('NOT-REAL-TAG', localPath)
expect(exists).toBeFalsy()
})
it('find version in file', async () => {
const version = await getVersion(path.join(__dirname, 'version.txt'), 'v')
expect(version).toBe('v1.0.0')
})
it('find version in multi-line file', async () => {
const version = await getVersion(
path.join(__dirname, 'multi-line-version.txt'),
'v'
)
expect(version).toBe('v1.0.0')
})
it('to error when file does not exist', async () => {
expect.assertions(1)
await expect(
getVersion(path.join(__dirname, 'not-real-path.txt'))
).rejects.toThrow()
})
it('to error when file is empty', async () => {
expect.assertions(1)
await expect(
getVersion(path.join(__dirname, 'empty-version.txt'))
).rejects.toThrow()
})
})
| typescript |
Don’t Miss Out on the Latest Updates.
Subscribe to Our Newsletter Today!
We are glued to TV actor Karishma Tanna’s Instagram, thanks to her pre-wedding festivities. The actor is all set to marry businessman Varun Bangera on February 5. For her Mehendi ceremony, Karishma wore a mustard yellow bandhani lehenga from the shelves of designer Punit Balana. The groom complemented the bride in a maroon kurta pyjama set.
Karishma accessorised her lehenga with a statement neckpiece, earrings, bangles. She styled her hair with yellow roses. Tanna amped her look with black sunglasses. The couple looks deeply in love. The actor shared a slew of stunning pictures from her mehendi ceremony, and we are in awe!
Check out her pictures here:
It is evident that the mehendi ceremony was a joyous affair! Tanna flaunted her mehendi clad hands for the camera.
If you wish to add this stunning mustard yellow bandhani lehenga to your wardrobe, then you are in luck. The lehenga is available on designer Punit Balana’s official website and is worth Rs 65,000. As per the website, the lehenga features mustard marodi work bandhani blouse with marodi work skirt and marodi work border dupatta.
A few videos have also surfaced on Karishma’s fan account where she can be seen dancing with her friends at her pre-wedding function. The bride danced on “Ban Ja Tu Meri Rani” with Varun.
According to reports, Karishma and Varun met at a common friend’s party and fell in love after dating for a while. They got engaged in a low-key affair in November.
What are your thoughts on Karishma’s mehendi look?
For breaking news and live news updates, like us on Facebook or follow us on Twitter and Instagram. Read more on Latest Lifestyle News on India. com. | english |
<gh_stars>0
{
"businessService" : "businessService",
"consolidationCaptureActionTaskReference" : "CCATR775375",
"consolidationServiceWorkProduct" : "consolidationServiceWorkProduct",
"consolidationBusinessUnitEmployeeReference" : "CBUR769668",
"consolidationWorkSchedule" : "consolidationWorkSchedule",
"consolidationCaptureRecordReference" : "CCRR746439",
"consolidationServiceType" : "consolidationServiceType",
"consolidationCaptureActionTaskRecord" : {},
"consolidationServiceDescription" : "consolidationServiceDescription",
"consolidationPostconditions" : "consolidationPostconditions",
"consolidationServiceInputsandOuputs" : "consolidationServiceInputsandOuputs",
"consolidationServiceName" : "consolidationServiceName",
"captureResponseRecord" : {},
"consolidationPreconditions" : "consolidationPreconditions"
} | json |
version https://git-lfs.github.com/spec/v1
oid sha256:b75c3b91072b01eb230dea6d1f5872bd5d7b7fdaa6d467c2e532e59ea299e675
size 21534
| json |
/* Night Sky Stylesheet */
body {
background: url(../images/night-sky.jpg);
background-size: cover;
background-repeat: no-repeat;
color: #AED8E6;
height: 100%;
}
#logo:after {
content: url(../images/night-sky-logo.png);
}
#info:after {
content: url(../images/night-sky-info.png);
}
#contact:after {
content: url(../images/night-sky-contact.png);
}
a {
color: inherit;
}
#header {
background-color: #23434E; /* dark sky green */
border-bottom-color: #AED8E6;
}
.up-arrow {
border-bottom: 25px solid #23434E;
}
.down-arrow {
border-top: 25px solid #23434E;
}
.button {
color: #AED8E6; /* starry white */
background-color: #23434E ; /* dark sky green */
}
li.active {
color: #23434E !important; /* dark sky green */
background-color: #AED8E6 !important; /* starry white */
}
.highlighted {
background-color: #375661; /* slightly lighter green for highlight */
}
.ui-dialog-titlebar {
background: #23434E ; /* dark sky green */
color: #AED8E6; /* starry white */
}
.ui-dialog {
background: #AED8E6; /* starry white */
}
@media only screen
and (min-device-width: 375px)
and (max-device-width: 667px)
and (orientation: portrait)
and (-webkit-min-device-pixel-ratio: 2)
{
.up-arrow {
border-bottom: 75px solid #23434E;
}
.down-arrow {
border-top: 75px solid #23434E;
}
}
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: portrait)
and (-webkit-min-device-pixel-ratio: 1) {
.up-arrow {
border-bottom: 75px solid #23434E;
}
.down-arrow {
border-top: 75px solid #23434E;
}
}
/*iPhone 4*/
@media only screen
and (min-device-width: 320px)
and (max-device-width: 480px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: portrait) {
.up-arrow {
border-bottom: 75px solid #23434E;
}
.down-arrow {
border-top: 75px solid #23434E;
}
}
/*iPhone 5*/
@media only screen
and (min-device-width: 320px)
and (max-device-width: 568px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: portrait) {
.up-arrow {
border-bottom: 75px solid #23434E;
}
.down-arrow {
border-top: 75px solid #23434E;
}
}
/*iPad 3/4*/
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: portrait)
and (-webkit-min-device-pixel-ratio: 2) {
.up-arrow {
border-bottom: 75px solid #23434E;
}
.down-arrow {
border-top: 75px solid #23434E;
}
} | css |
{
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"editor.find.autoFindInSelection": true,
"editor.accessibilitySupport": "on",
"editor.tabCompletion": "on"
} | json |
{
"name": "dataprata",
"description": "Information about how to communicate with family and friends over the Internet, started as a reaction on people being isolated during the COVID-19 crisis.",
"version": "1.0.0",
"license": "MIT",
"author": "Daresay AB (https://daresay.co)",
"contributors": [
"<NAME> <<EMAIL>>",
"<NAME> <<EMAIL>>",
"<NAME> <<EMAIL>>"
],
"keywords": [
"daresay",
"daresaydigital",
"gibon",
"dataprata",
"ringmera",
"gatsby",
"covid19",
"vitecherupp"
],
"homepage": "https://dataprata.se",
"bugs": "https://github.com/daresaydigital/dataprata/issues",
"repository": "github:daresaydigital/dataprata",
"main": "pages/index.tsx",
"engines": {
"node": ">=10.0.0",
"yarn": ">=1.17.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
],
"scripts": {
"build": "gatsby build",
"clean": "rimraf public",
"deploy": "gatsby build --prefix-paths && gh-pages -d public",
"dev": "gatsby develop",
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,md,css,json}\"",
"format-check": "prettier -c \"src/**/*.{js,jsx,ts,tsx,md,css,json}\"",
"lint": "eslint src --fix --ext .js,.ts,.tsx",
"lint-no-fix": "eslint src --ext .js,.ts,.tsx",
"start": "yarn run dev",
"type-check": "tsc",
"test": "yarn run type-check && yarn run lint-no-fix && yarn run format-check"
},
"husky": {
"hooks": {
"pre-commit": "yarn format && yarn lint",
"pre-push": "yarn test && yarn build"
}
},
"dependencies": {
"@emotion/core": "^10.0.28",
"@emotion/styled": "^10.0.27",
"@fortawesome/fontawesome-svg-core": "^1.2.29",
"@fortawesome/free-brands-svg-icons": "^5.13.1",
"@fortawesome/free-solid-svg-icons": "^5.13.1",
"@fortawesome/react-fontawesome": "^0.1.11",
"@mdx-js/mdx": "^1.6.6",
"@mdx-js/react": "^1.6.6",
"@microsoft/applicationinsights-web": "^2.5.5",
"babel-plugin-styled-components": "^1.10.7",
"classnames": "^2.2.6",
"dotenv": "^8.2.0",
"gatsby": "^2.23.11",
"gatsby-image": "^2.4.9",
"gatsby-plugin-canonical-urls": "^2.3.6",
"gatsby-plugin-emotion": "^4.3.6",
"gatsby-plugin-favicon": "^3.1.6",
"gatsby-plugin-intl": "^0.3.3",
"gatsby-plugin-mdx": "^1.2.18",
"gatsby-plugin-react-helmet": "^3.3.6",
"gatsby-plugin-sharp": "^2.6.14",
"gatsby-plugin-typescript": "^2.4.8",
"gatsby-remark-copy-linked-files": "^2.3.7",
"gatsby-remark-images": "^3.3.13",
"gatsby-remark-prismjs": "^3.5.6",
"gatsby-remark-responsive-iframe": "^2.4.7",
"gatsby-remark-smartypants": "^2.3.6",
"gatsby-source-filesystem": "^2.3.14",
"gatsby-transformer-json": "^2.4.7",
"gatsby-transformer-remark": "^2.8.19",
"gatsby-transformer-sharp": "^2.5.7",
"instant.page": "^5.1.0",
"modern-normalize": "^0.6.0",
"normalize.css": "^8.0.1",
"polished": "^3.6.5",
"prism-themes": "^1.4.0",
"prismjs": "^1.20.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-helmet": "^6.1.0",
"typescript": "^3.9.5"
},
"devDependencies": {
"@types/classnames": "*",
"@types/gtag.js": "*",
"@types/node": "*",
"@types/react": "*",
"@types/react-dom": "*",
"@types/react-helmet": "*",
"@typescript-eslint/eslint-plugin": "*",
"@typescript-eslint/parser": "*",
"eslint": "*",
"eslint-config-blvd": "*",
"eslint-config-prettier": "*",
"eslint-plugin-prettier": "*",
"eslint-plugin-react": "*",
"gh-pages": "*",
"husky": "*",
"prettier": "*"
}
}
| json |
# -*- coding: utf-8 -*-
# @Time : 2020/9/10
# @Author : <NAME>
# @File : .py
# @Role :
from tornado.web import RequestHandler
from kube_bench.main import kube_daily_scan
from libs.base_handler import BaseHandler
from sqlalchemy import or_
from libs.pagination import pagination_util
from models.kube_bench import KUBECONFIG, model_to_dict, BENCHDB
from websdk.db_context import DBContext
class GetkubeBenchconfig(BaseHandler):
@pagination_util
def get(self, *args, **kwargs):
key = self.get_argument('key', default=None, strip=True)
config_project_list = []
with DBContext('w') as session:
if key:
git_project_info = session.query(KUBECONFIG).filter(
or_(KUBECONFIG.kube_config_name.like('%{}%'.format(key)),
KUBECONFIG.server.like('%{}%'.format(key)),
KUBECONFIG.current_context.like('%{}%'.format(key)),
KUBECONFIG.date.like('%{}%'.format(key)),
)
).all()
else:
git_project_info = session.query(KUBECONFIG).all()
for data in git_project_info:
data_dict = model_to_dict(data)
config_project_list.append(data_dict)
# 返回数据
return config_project_list
class GetKubeBenchScanResult(BaseHandler):
@pagination_util
def get(self, *args, **kwargs):
config_name = self.get_argument('config_name', default="config.a", strip=True)
mastr_or_node = self.get_argument('mastr_or_node', default="master", strip=True)
with DBContext('w') as session:
kube_config_info = session.query(KUBECONFIG).first()
if kube_config_info:
kube_config_info = model_to_dict(kube_config_info)
else:
return []
if config_name == "":
config_name=kube_config_info["kube_config_name"]
scan_result_list = []
with DBContext('w') as session:
result_data = session.query(BENCHDB) \
.filter(BENCHDB.config_name ==config_name,BENCHDB.mastr_or_node ==mastr_or_node).all()
for data in result_data:
data_dict = model_to_dict(data)
scan_result_list.append(data_dict)
# 返回数据
return scan_result_list
class ApiTest(BaseHandler):
def get(self, *args, **kwargs):
kube_daily_scan()
return "测试中"
aws_kube_scan_urls = [
(r"/v1/cmdb/kube_config/", GetkubeBenchconfig),
(r"/v1/cmdb/kube_scan_result/", GetKubeBenchScanResult),
(r"/v1/cmdb/kubeapitest/", ApiTest),
]
| python |
<filename>src/util/html_parse.rs
use scraper::{Html, Selector};
pub fn html_to_text( html_str : &str) -> String {
let target_string = format!("<div id=\"__wrapper\">{}</div>", html_str);
let fragment = Html::parse_fragment(&target_string);
let css = "#__wrapper"; // FIXME: もっといい方法
let selector = Selector::parse(css).unwrap();
let elements = fragment.select(&selector);
let items = elements.map(|e| e.text().next().unwrap_or(""));
let text = items.collect::<Vec<_>>();
return text.concat()
}
| rust |
India at that time, had the only known diamond mines in the world.
The Mines of Golkonda themselves yielded diamonds of trifling quantity. Europeans knew that diamonds were found only in these fabled mines. Golkonda was, in fact, the market city of the diamond trade, and gems sold there came from a number of mines. The fortress city within the walls was famous for diamond trade.
All the states in India have some or the other cultural history. If you ever chance to visit Hyderabad, the capital of Andhra Pradesh, you can't possibly miss out the 400-year-old majestic and imposing Golconda Fort situated on the western outskirts in the city. The fort was built by the Kakatiya dynasty in the 13th century.
Considered one of India's most outstanding citadels, the Golconda fort epitomises the sumptuous 'Nawabi' culture of the time. "Shepherd's Hill" or "Golla Konda", as it was popularly known in Telugu, has an interesting story behind it. One day, a shepherd boy came across an idol on the rocky hill, which was called Mangalavaram. The news was conveyed to the ruling Kakatiya king. The king got a mud fort constructed around the holy spot and his descendents continued to follow this trend.
Later, the Golconda fort came into the possession of the Bahmani dynasty. Still later, the Qutub Shahi dynasty took over and made Golconda its capital. Golconda fort owes much of its present grandeur to Mohammad Quli Qutub Shah. The subsequent generations saw Golconda being fortified further with several additions and the formation of a beautiful city within. By the 17th century, Golconda was famous as a diamond market. It gave the world some of the best-known diamonds, including the 'Kohinoor'. The meticulous details of the architecture and the fading gardens, which were once upon a time replete with sprawling lawns and playing fountains has the power to transport you back in time. The magnificent architecture of the Golconda fort is as imposing as ever, and this is evident from the colossal gate at the entrance studded with long iron spikes, to deter invading armies from battering it down. The gate leads to the portico known as the Balahisar gate, magnificent as the gate itself.
One can't help, but be amazed at the modern acoustic system, which was so designed that a handclap sounded at the Balahisar gate of the fort could be heard right up in the citadel! The brilliant planning of the architects is evident from the ventilation, which is so designed to let in bouts of fresh cool breeze, a respite from the scorching humid summer of Andhra Pradesh!
Shayari by Jagjit Singh on Golconda fort .
एक गुलशन था जलवानुमां इस जगह,
रंग-ओ-बू जिसकी दुनिया में मशहूर थी,
बेग़मों की हँसी गूँजती थी यहीं,
ताज की शक्ल में जब तक ये क़िला,
गोल्कोंड़ा की अज़्मत करेगा बयां,
मिट सकेगी नहीं शानेमुल्केदक्कन,
ये क़िला ये फ़सीना ये वीरानियां,
हैं उसी शान-ओ-शौकत की परछाइयां,
जिस की दिलकश कहानी का है राज़दां,
वक़्त की मार सहकर जो कायम रहे,
कैफ़ियत बस यही थी उसी रान की,
गोल्कोंड़ा की अज़्मत का कहना ही क्या,
| english |
Since yesterday I got that great new Iphone which I love!!
got it unlocked and fully operational on the airtel network including EDGE.
1. Voicemail. If you're offline or away from the computer, your friends can leave you voicemail. You'll see a star by the voicemail icon in your Messenger List. Click the voicemail icon, select the message, and press Play to hear your voicemail.
| english |
<filename>src/script.js
const text=document.getElementById("quote-text");
const author=document.getElementById("author");
const tweetButton=document.getElementById("tweet-quote");
const getNewQuote = async () =>
{
//api for quotes
var url="https://type.fit/api/quotes";
// fetch the data from api
const response=await fetch(url);
console.log(typeof response);
//convert response to json and store it in quotes array
const allQuotes = await response.json();
// Generates a random number between 0 and the length of the quotes array
const indx = Math.floor(Math.random()*allQuotes.length);
//Store the quote present at the randomly generated index
const quote=allQuotes[indx].text;
//Store the author of the respective quote
const auth=allQuotes[indx].author;
if(auth==null)
{
author = "Anonymous";
}
//function to dynamically display the quote and the author
text.innerHTML=quote;
author.innerHTML="~"+auth;
//tweet the quote
tweetButton.href="https://twitter.com/intent/tweet?text="+quote+" ~ "+auth;
}
getNewQuote(); | javascript |
<gh_stars>0
#include "socketserver.h"
#include <iostream>
#include <QDir>
#include <QTcpServer>
#include <QTextCodec>
#include <QTcpSocket>
#include <QObject>
#include <QAbstractSocket>
#include <QWebPage>
#include <QThread>
#include <QTimer>
using namespace std;
#include <unistd.h>
#include "socketclient.h"
#include "phantom.h"
#include "webpage.h"
#include "main.h"
#include "utils.h"
/*
Protocol:
Request:
- A header line which is consists of the string "XXX\n" where XXX is
an integer, the length of the javascript code that follows and that
needs to be executed.
- Then the javascript string code.
*/
//#define SOCKETSERVER_DEBUG
SocketServer::SocketServer(QObject *parent)
{
Utils::printDebugMessages = true;
}
SocketServer::~SocketServer()
{
}
void SocketServer::setup(Main *main, const QString &sHost, uint sPort)
{
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF8"));
this->main = main;
this->serverHost = sHost;
this->serverPort = sPort;
}
void SocketServer::sendConsoleMessage(const QString &message)
{
}
void SocketServer::doWork()
{
QThread *currentThread = QThread::currentThread();
quint64 currentThreadId = (quint64) (void*)currentThread;
server = new QTcpServer(this);
bool status = server->listen(QHostAddress(this->serverHost), this->serverPort);
#ifdef SOCKETSERVER_DEBUG
qDebug() << "SocketServer: listening for connection on" << this->serverHost << ":" << this->serverPort << "with thread" << QString("0x%1").arg(currentThreadId, 0, 16);
#endif
if (!status)
{
#ifdef SOCKETSERVER_DEBUG
qDebug() << "SocketServer: can't open TCP Server.";
#endif
exit(1);
}
while (true)
{
status = server->waitForNewConnection(-1);
if (status)
{
#ifdef SOCKETSERVER_DEBUG
qDebug() << "SocketServer: new connection available";
#endif
QTcpSocket *client = server->nextPendingConnection();
if (client == NULL)
{
#ifdef SOCKETSERVER_DEBUG
qDebug() << "SocketServer: client socket is NULL";
#endif
}
else
{
#ifdef MULTIPLE_THREADS
QThread *thread = new QThread();
socketClient = new SocketClient(thread, client);
quint64 threadId = (quint64) (void*)thread;
threadInstancesMap[threadId] = thread;
#ifdef SOCKETSERVER_DEBUG
qDebug() << "SocketServer: add thread instance" << QString("0x%1").arg(threadId, 0, 16) << ", total: " << threadInstancesMap.size();
#endif
#else
server->close();
socketClient = new SocketClient(NULL, client);
#ifdef SOCKETSERVER_DEBUG
qDebug() << "SocketServer: add instance";
#endif
#endif
socketClient->setup(main, this);
#ifdef MULTIPLE_THREADS
socketClient->moveToThread(thread);
QMetaObject::invokeMethod(socketClient, "doWork", Qt::QueuedConnection);
thread->start();
#else
socketClient->doWork();
#endif
}
}
else
{
#ifdef SOCKETSERVER_DEBUG
qDebug() << "SocketServer: problem waiting for a new connection";
#endif
}
}
}
void SocketServer::disconnect(quint64 threadId)
{
#ifdef MULTIPLE_THREADS
QThread *thread = threadInstancesMap[threadId];
threadInstancesMap.remove(threadId);
#ifdef SOCKETSERVER_DEBUG
qDebug() << "SocketServer: delete thread instance" << QString("0x%1").arg(threadId, 0, 16) << ", total: " << threadInstancesMap.size();
#endif
thread->quit();
#else
delete socketClient;
server->listen(QHostAddress(this->serverHost), this->serverPort);
#endif
}
| cpp |
Thiruvananthapuram, July 19 (IANS) The coastal village of Pallithura, home to cricketer Sanju Samson near here, was on cloud nine when the news flashed that the 20-year-old will be playing in the second and final Twenty20 International against Zimbabwe in Harare on Sunday.
Though he is the third Keralite to don the national colours, after Tinu Yohanan and S. Sreesanth, Samson is the first to be selected for his wickekeeping and batting skills.
A big crowd was waiting in front of his home and when the announcement came, and the locals expressed their happiness by shouting his name.
"He is such a cool and calm boy and we are all really happy and excited as he has reached a level not many can even dream. Our prayers are with him," said a middle-aged man who was leading a group of cheering locals.
A boy who claimed to be Samson's friend said: "We are thick friends and when he left for Zimbabwe, he was supremely confident of doing well. We are all waiting now to see him bat. He is such an unassuming boy despite all the glory."
The crowd grew around Samson's home, which was locked as his parents and brother were at Kollam to attend a meeting organised by the Kerala Cricket Association (KCA) where Samson is being honoured for being the best player of 2014.
"We are really delighted that the news came when the Annual General Meeting (AGM) of the KCA was going on. This is great news for Kerala cricket and our job is to create proper infrastructure, which we are doing," said KCA president T.C. Mathew.
The glovesman was lucky to get a late call to the Indian team after batsman Ambati Rayudu was left out due to an injury and it was only on Thursday that Samson reached the Zimbabwean capital. Samson on Sunday received his India cap from opening batsman Murali Vijay.
This is the second time that Samson has been selected. The first was when he was included for the limited over series against England in 2014, but he had to cool himself on the bench then.
Samson's selection on July 13 came soon after he was named Kerala captain, making him the youngest skipper of the state side.
Sony Chervathoor, Samson's senior colleague in the Kerala Ranji Trophy team, said their prayers have been answered.
"It's not that he is playing today, but let it be the beginning of long innings for Samson. Each one of us is really happy for him," said Chervathoor.
| english |
Las Vegas: Tech visionaries have long dreamed of the day when PCs, TVs and phones can be controlled with a wave of the hand or even the blink of an eye.
"Natural user interface" technologies on display at last week's Consumer Electronics Show suggest that vision is inching closer to the mainstream - tearing down barriers between user and device, and dispensing with unwieldy keyboards and remotes.
The technology, stoked in the public imagination by the sci-fi hit film Minority Report, could be approaching a tipping point and can empower applications beyond simple user commands, according to industry insiders.
"Control everything without touching it - it's moving that way faster than ever," said Janine Kutliroff, CEO and founder of Omek Interactive, an Israeli company that makes software for gesture recognition through 3-D sensors, so you can play games or manipulate a TV just by moving your hands and body.
"Cameras are going to get smaller and cheaper. There's a lot of competitive technology out there," said Kutliroff, whose company was one of a handful showing off gesture control technologies at CES in Las Vegas.
The opportunities for using sensors, cameras and voice recognition to make everyday objects 'intelligent' is almost endless, promoters of the new technology say.
"We see a whole world where machines of any kind interact with you," said Uzi Breier, chief marketing officer for PrimeSense, an Israeli company that built some of the technology behind Microsoft's Kinect system, and has teamed up with Taiwan's Asustek to bring gesture-controlled TV and computer functions to the living room screen this year.
His company is providing sensors for iRobot Corp's latest robots, including a new Roomba automatic vacuum cleaner that can actually 'see' dirt and head for it, rather than aimlessly trundling around the room.
He predicts sensors will soon be used in homes, so heating and cooling systems can recognize who is in a room and set the temperature to predetermined levels, or into cars to adjust settings according to the driver.
Omek is helping pioneer 'digital signage' - signs in stores that interact with shoppers and can initiate conversations when people walk close, or hover in an area.
Kutliroff sees this technology reaching far into the commercial sphere, creating virtual salespeople, providing virtual clothes-fitting, or aiding physical rehabilitation by sending 3-D images of a patient in real time to a remote therapist. Security is also a potential avenue, as cameras learn to identify people based on the way their bodies move.
"These are the applications that are going to push this to be more than just another game console," said Kutliroff.
Microsoft in front?
Gaming has so far been the only mainstream use of gesture-recognition technology. Microsoft Corp's Kinect add-on for the Xbox -- which allows gamers to move avatars on screen just through body motions - has already sold 8 million units in just over two months on the market. Its three demo booths were one of CES's most popular destinations.
The logical step is for Microsoft to bring the same technology to its Windows operating system, allowing users to manipulate documents or move photos around a screen or projection, as Tom Cruise does in Minority Report.
But the world's largest software company is not talking about any plans it may have in that direction. For now, its ambition is to fine tune Kinect and bring the avatar into social on-screen situations.
"The next step will be facial expressions, when you move your mouth for example," said Jose Pinero, an executive at Microsoft's Entertainment Services business, at CES. "Our intention is to bring this technology to games and into other entertainment options. "
In the meantime, Microsoft's research labs are working on intriguing new possibilities, such as its 'Skinput' project, a way of controlling devices just by touching your arm or hand in different places, and its LightSpace project for manipulating virtual documents, the closest it has come to the Minority Report scenario.
Though neither of these are products, and may never be, Microsoft has signaled ambitions in gesture-recognition with its October purchase of chipmaker and software company Canesta, which specializes in 3-D sensing technology.
Not everyone is convinced that the revolution is nigh.
Many still like touching things, and the mouse will likely remain the tool of choice for precise jobs, from desktop publishing to graphic design, said IDC analyst Al Hilwa.
"These user interfaces will continue to be the most effective for many areas," said Hilwa. "But overall, technology marches towards more diversity and alternatives. "
Several other companies at CES showed off alternative uses for hands-free interaction with computers.
Belgium's Softkinetic-Optrima demonstrated a home video-conferencing system employing 3-D cameras that means you don't have to sit close to the camera, and also a gesture-based TV and media control system.
Softkinetic, like Omek, uses "time of flight" technology, which works out motion based on the time it takes light beams to travel to an object and back to a sensor. Kinect uses a "structured light" system, which projects a grid of dots onto a scene and works out an image from the distortion, while PrimeSense uses its chips to build an image from 'coded' light reflected from objects.
On a different track, Norway's Elliptic Labs demonstrated a way of manipulating an iPad with close-up hand gestures, based on reflected sound waves, or ultrasonics, rather than light.
Many look forward to the day computers and other devices have to learn about you, not other way round.
"We will move from an era from thinking about computers as things with screens and keyboards to an era where the computer becomes invisible and pervasive and it works on your behalf and there's no learning curve, or very slight," said Peter Haynes, senior director, advanced strategies and research at Microsoft. "The next generation of computing has to be computing without the learning curve. "
Watch the technology in action(This story has not been edited by News18 staff and is published from a syndicated news agency feed - Reuters) | english |
package com.example.habit_tracker;
import static org.junit.jupiter.api.Assertions.*;
import com.google.firebase.firestore.FirebaseFirestore;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
class FriendListFragmentTest {
// No tests to run as everything all the functions are tied into with firebase.
// FriendListFragment friendListFragment = new FriendListFragment();
// FirebaseFirestore db = FirebaseFirestore.getInstance();
//
// @Test
// void updateFriendListTest() {
// String username = "unitTestUser";
// createMockAccount(username);
//
// friendListFragment.updateFriendList(username);
// assertEquals(1, friendListFragment.friendDataList.size());
// assertEquals(0, friendListFragment.requestDataList.size());
// }
//
// @AfterEach
// void tearDown() {
// removeAccount("unitTestUser");
// }
//
// private void createMockAccount(String username) {
// Map<String, Object> data = new HashMap<>();
// data.put("username", username);
// data.put("realname", username);
// data.put("password", "<PASSWORD>");
// data.put("salt", "NA");
// ArrayList<Friend> friends = new ArrayList<Friend>();
// friends.add(new Friend("friendUser", "friendActual"));
//
// data.put("friends", friends); // empty list since there are no friends on the acc yet
// data.put("requests", Collections.emptyList());
//
// db.collection("Users").document(username).set(data);
// }
//
// private void removeAccount(String username) {
// db.collection("Users").document(username)
// .delete();
// }
} | java |
<filename>moabb/analysis/__init__.py
import logging
import os
import platform
from datetime import datetime
from moabb.analysis import plotting as plt
from moabb.analysis.meta_analysis import ( # noqa: E501
compute_dataset_statistics,
find_significant_differences,
)
from moabb.analysis.results import Results # noqa: F401
log = logging.getLogger(__name__)
def analyze(results, out_path, name="analysis", plot=False):
"""Analyze results.
Given a results dataframe, generates a folder with
results and a dataframe of the exact data used to generate those results,
aswell as introspection to return information on the computer
parameters
----------
out_path: location to store analysis folder
results: Dataframe generated from Results object
path: string/None
plot: whether to plot results
Either path or results is necessary
"""
# input checks #
if not isinstance(out_path, str):
raise ValueError("Given out_path argument is not string")
elif not os.path.isdir(out_path):
raise IOError("Given directory does not exist")
else:
analysis_path = os.path.join(out_path, name)
unique_ids = [plt._simplify_names(x) for x in results.pipeline.unique()]
simplify = True
print(unique_ids)
print(set(unique_ids))
if len(unique_ids) != len(set(unique_ids)):
log.warning("Pipeline names are too similar, turning off name shortening")
simplify = False
os.makedirs(analysis_path, exist_ok=True)
# TODO: no good cross-platform way of recording CPU info?
with open(os.path.join(analysis_path, "info.txt"), "a") as f:
dt = datetime.now()
f.write("Date: {:%Y-%m-%d}\n Time: {:%H:%M}\n".format(dt, dt))
f.write("System: {}\n".format(platform.system()))
f.write("CPU: {}\n".format(platform.processor()))
results.to_csv(os.path.join(analysis_path, "data.csv"))
stats = compute_dataset_statistics(results)
stats.to_csv(os.path.join(analysis_path, "stats.csv"))
P, T = find_significant_differences(stats)
if plot:
fig, color_dict = plt.score_plot(results)
fig.savefig(os.path.join(analysis_path, "scores.pdf"))
fig = plt.summary_plot(P, T, simplify=simplify)
fig.savefig(os.path.join(analysis_path, "ordering.pdf"))
| python |
The 8th edition of the Studyrama Higher Education Fair in La Rochelle invites you to come to ESPACE ENCAN, Saturday, October 1, 2022 to plan for your future. For the next edition, which will take place in October 2023, we will be there to meet you.
Many professionals and specialists from Higher Education are available to help you refine your orientation project.
Do you hesitate about choosing your training or school? Or your future career path? You can exchange with schools, prep schools, high school, and orientation schools to help you build your study project.
You will have the opportunity to meet with professors, students and higher education experts at this fair. They can give you advice about your course selection from the over 350 courses available, as well as your management of Parcoursup and student life in La Rochelle.
Parcoursup is one way to get into higher education. What are the trainings affected? What are the key dates and timelines? What is the best way to express your wishes? How to reply to establishments These are just a few of the questions that the show will answer.
| english |
package com.disconf.client.config;
import com.disconf.client.config.inner.DisClientComConfig;
import com.disconf.core.common.lock.Locker;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.disconf.client.config.inner.DisInnerConfigHelper;
/**
* 配置模块
*
* @author liaoqiqi
* @version 2014-6-6
*/
public class ConfigMgr {
protected static final Logger LOGGER = LoggerFactory.getLogger(ConfigMgr.class);
private static boolean isInit = false;
private static final Locker _locker = new Locker();
/**
* 初始化配置
*
* @throws Exception
*/
public static void init() throws Exception {
try (Locker.Lock lock = _locker.lock()) {
LOGGER.info("--------------- LOAD CONFIG START ---------------");
//机器指纹 host_port_randomUUID
LOGGER.info("Finer print: " + DisClientComConfig.getInstance().getInstanceFingerprint());
// 导入系统配置
DisClientSysConfig.getInstance().loadConfig(null);
// 校验 系统配置
DisInnerConfigHelper.verifySysConfig();
// 导入用户配置
DisClientConfig.getInstance().loadConfig(null);
// 校验 用户配置
DisInnerConfigHelper.verifyUserConfig();
isInit = true;
LOGGER.info("--------------- LOAD CONFIG END ---------------");
}
}
/**
*/
public synchronized static boolean isInit() {
return isInit;
}
/**
*/
public static void main(String[] args) {
try {
ConfigMgr.init();
} catch (Exception e) {
e.printStackTrace();
}
}
}
| java |
Our editors will review what you’ve submitted and determine whether to revise the article.
Melbourne, city, Brevard county, east-central Florida, U.S. It lies on the Intracoastal Waterway along the Indian River (a lagoon separated from the Atlantic Ocean by barrier islands), about 60 miles (95 km) southeast of Orlando. The site, originally known as Crane Creek, was settled in 1878, and the community was soon renamed for Melbourne, Australia, the onetime home of the community’s first postmaster, Cornthwaite John Hector. A passenger steamer service existed until the Florida East Coast Railway arrived in 1893. Tourism (yachting and sport fishing), citrus growing, and cattle raising provided the town’s early economic base.
Since 1950 Melbourne’s growth has been influenced by the space complex at Cape Canaveral to the north and a subsequent influx of aerospace industries. The economy is based on tourism, high-technology industries, the military, and services (especially health care). The city is the site of the Florida Institute of Technology (1958). In 1969 Melbourne consolidated with Eau Gallie, just to the north. Patrick Air Force Base is nearby. Melbourne is home to the Brevard Museum of Art and Science and the Brevard Zoo. The John F. Kennedy Space Center, at Cape Canaveral, has a visitor complex with exhibits on space exploration. The Melbourne bone beds, a series of deposits along the east coast, contain important Pleistocene fossil remains of extinct animals. The towns of Melbourne Beach and Indialantic can be reached across the Indian River via the Melbourne Causeway. Inc. town, 1888; city, 1913. Pop. (2000) 71,382; Palm Bay–Melbourne–Titusville Metro Area, 476,230; (2010) 76,068; Palm Bay–Melbourne–Titusville Metro Area, 543,376.
| english |
<filename>src/components/profile/Profile.module.css
.profile {
width: 250px;
border: 1px #dddddd solid;
border-radius: 5px;
overflow: hidden;
box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.15);
}
.description {
padding: 30px;
text-align: center;
border-bottom: 1px #dddddd solid;
background-color: #ffffff;
}
.avatar {
margin-bottom: 25px;
width: 100px;
border-radius: 50%;
}
.name {
margin-bottom: 10px;
font-weight: 600;
font-size: 18px;
}
.tag,
.location {
margin-bottom: 5px;
color: grey;
font-size: 14px;
}
.stats {
display: flex;
text-align: center;
background-color: #eeeeee;
}
.stats li {
padding: 15px;
flex-basis: 33.33333%;
flex-shrink: 0;
}
.stats li:not(:last-child) {
border-right: 1px #dddddd solid;
}
.stats span {
display: block;
}
.label {
margin-bottom: 5px;
color: grey;
font-size: 12px;
}
.quantity {
font-size: 14px;
font-weight: 600;
}
| css |
Senator Lindsey Graham says the US is looking for its allies to deploy hundreds of troops to Syria following the withdrawal of American soldiers from the Arab country.
Speaking on a panel discussion at the 2019 Munich Security Conference on Friday, Graham announced that US Chairman of the Joint Chiefs of Staff General Joseph Dunford would call on Washington's partners during the event to send forces to Syria.
Dunford, he said, “would be coming to some of you in this room, and he will be asking for a contribution of forces to stabilize the region, post destruction of the caliphate,” established by the Daesh terrorist group.
Graham also claimed that the US would consider keeping some troops in Syria if Washington's allies agreed to the deployment meant to help create a buffer zone near the Turkish border.
The US senator said he had discussed the Syria plan with President Donald Trump and General Joseph Votel, the head of US Central Command.
"I'm hoping that President Trump will be coming to some of you and asking for your help and you will say yes. And in return, the capability that we have that is unique to the United States will still be in the fight in Syria," Graham said.
Trump ordered the withdrawal of all 2,000 American forces from Syria in December 2018 amid preparations by Turkey to launch an operation against US-backed Kurdish militants in northern Syria.
German Defense Minister Ursula von der Leyen criticized the idea that European forces would stay in Syria after the US exit, saying the alleged anti-Daesh mission should be "in together, out together. "
Additionally, French Foreign Minister Jean-Yves Le Drian described the US approach in northeastern as a "mystery. "
"It is totally out of the question to have French troops on the ground without the Americans there. It's just 'no'," a French government source said.
Belgian Foreign Minister Didier Reynders said the US had told coalition partners that its forces would leave Syria in "weeks rather than months. "
A senior US defense official, however, pointed out that none of Washington's allies had made any "specific commitment . . . either whether they would stay or [whether] they would leave when we have left. "
Despite "a tremendous desire to have a security arrangement or mechanism," no concrete solution has been found to "resolve the security vacuum," he added.
The US and its allies have been bombarding what they call Daesh positions inside Syria since September 2014 without any authorization from the Damascus government or a UN mandate.
The aerial assaults have failed to fulfill their declared aim of countering terrorism, but destroyed much of Syria's infrastructure and left many civilian casualties. | english |
<filename>patterns/src/main/java/org/jpromise/functions/OnFulfilled3.java
package org.jpromise.functions;
import org.jpromise.patterns.Pattern3;
public abstract class OnFulfilled3<V1, V2, V3> implements OnFulfilled<Pattern3<V1, V2, V3>> {
@Override
public final void fulfilled(Pattern3<V1, V2, V3> result) throws Throwable {
if (result == null) {
fulfilled(null, null, null);
}
else {
fulfilled(result.item1, result.item2, result.item3);
}
}
public abstract void fulfilled(V1 item1, V2 item2, V3 item3) throws Throwable;
}
| java |
New Delhi: In the Union Budget 2018 scheduled on February 1, the government is likely to cut taxes on travel and tourism to boost economic growth and job creation.
According to Reuters, the government may give more incentives to the USD 210 billion sectors, which could add to a domestic tourism boom in the world’s second most populous nation.
With scores of destinations introduced on airline routes last year, air travel is also surging.
India’s tourism sector grew over 10% in the six months ending September, compared to near 8% in the year-ago period. According to an industry report, tourism employs 40 million people in India and could add 10 million jobs in a decade.
If it was announced in the upcoming budget, then many companies are likely to benefit which include airlines such as IndiGo, owned by InterGlobe Aviation, and Jet Airways and hotel operators such as Indian Hotels, that owns the Taj Mahal chain and EIH Ltd that operates the Oberoi hotels in India.
According to a government official, Finance Minister Arun Jaitley was expected to lower income tax on corporate profit, offer tax incentives on hotel construction, and allocate more funds for new tourist trains and building roads to tourist destinations.
Besides tour operators such as our operators including Cox & Kings and Thomas Cook are likely to benefit from the move.
“We’ll announce measures in the budget to promote investment in the tourism sector,” a top finance ministry official told Reuters, adding that Finance Minister Arun Jaitley favors lowering a 28% tax on hotel tariffs, and offering incentives to attract private investments.
The budget was likely to “significantly” raise allocations for tourism infrastructure and raise income tax exemptions on investments in new hotels, said another government official.
In addition, the Centre is also planning to offer incentives to more regional airlines this year to cover new, under-served airports.
Prime Minister Narendra Modi has said developing tourism, particularly in India’s remote north-eastern states, is one of his top priorities.
One major driver of the domestic tourism boom has been the launch in 2017 of five regional budget airlines on over 100 routes.
According to Pronab Sarkar, president of the Indian Association of Tour Operators (IATO), in India, tourists pay 30% tax on an average on hotel rooms and travel compared with less than 10% in Singapore, Thailand, and Indonesia.
(With inputs from agencies) | english |
{"resourceType":"CodeSystem","id":"claim-type","meta":{"lastUpdated":"2019-10-24T11:53:00+11:00","profile":["http://hl7.org/fhir/StructureDefinition/shareablecodesystem"]},"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-ballot-status","valueString":"Informative"},{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm","valueInteger":2},{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-wg","valueCode":"fm"}],"url":"http://hl7.org/fhir/ex-claimtype","identifier":{"system":"urn:ietf:rfc:3986","value":"urn:oid:2.16.840.1.113883.4.642.1.551"},"version":"3.0.2","name":"Example Claim Type Codes","status":"draft","experimental":true,"publisher":"Financial Management","contact":[{"telecom":[{"system":"url","value":"http://hl7.org/fhir"}]}],"description":"This value set includes sample Claim Type codes.","copyright":"This is an example set.","caseSensitive":true,"valueSet":"http://hl7.org/fhir/ValueSet/claim-type","content":"complete","concept":[{"code":"institutional","display":"Institutional","definition":"Hospital, clinic and typically inpatient claims."},{"code":"oral","display":"Oral","definition":"Dental, Denture and Hygiene claims."},{"code":"pharmacy","display":"Pharmacy","definition":"Pharmacy claims for goods and services."},{"code":"professional","display":"Professional","definition":"Typically outpatient claims from Physician, Psychological, Chiropractor, Physiotherapy, Speach Pathology, rehabilitative, consulting."},{"code":"vision","display":"Vision","definition":"Vision claims for professional services and products such as glasses and contact lenses."}]} | json |
<reponame>pierfra-ro/pyesasky<gh_stars>10-100
__all__ = ['ImgFormat']
class ImgFormat():
JPEG = 'jpeg'
PNG = 'png'
| python |
Novak Djokovic started his bid for a men’s record 23rd Grand Slam singles title with a straight-sets victory over Aleksandar Kovacevic in the French Open first round on Monday, as Carlos Alcaraz dazzled in his opening victory.
Two-time Roland Garros champion Djokovic held off a late rally from his American opponent on Court Philippe Chatrier to clinch a 6-3, 6-2, 7-6 (7/1) victory.
He has still not lost in his opening match of a major since the 2006 Australian Open.
“I want to dominate whoever I play against regardless of the circumstances and who is across the net, but sometimes it works, sometimes it doesn’t,” said Djokovic after kicking off his 19th consecutive French Open campaign.
The 36-year-old will face Hungarian Marton Fucsovics, who he has beaten four times in as many meetings, in the second round.
Djokovic is only seeded third at Roland Garros this year despite the absence of his great rival and 14-time winner Rafael Nadal through injury, behind world number one Alcaraz and Daniil Medvedev.
He is tied with Nadal for most men’s Slam singles trophies and just one behind the 23 of Serena Williams. Margaret Court holds the all-time record of 24.
Kovacevic, the world number 114 playing in his first Grand Slam match, battled hard but could not put Djokovic under sustained pressure until it was too late.
Djokovic eased through the first two sets, before Kovacevic did break for the first time in the match to level the third set at 3-3, only to drop serve again immediately.
Djokovic uncharacteristically stumbled when serving for the match as Kovacevic forced a tie-break to the delight of the crowd.
But the world number three quickly regrouped, dominating the breaker before ending Kovacevic’s resistance on his first match point with a thumping forehand return.
Alcaraz began his attempt to win a second Grand Slam title in fine style against Italian qualifier Flavio Cobolli, the world number 159 playing in a Grand Slam for the first time.
The top seed played some wonderful shots as he powered to a 6-0, 6-2, 7-5 victory, despite also struggling to get over the line.
Spaniard Alcaraz is the favourite to win the title in the absence of his compatriot Nadal and is slated to meet Djokovic in the semi-finals.
The 20-year-old has enjoyed a fine clay-court season, winning the Madrid and Barcelona Opens, but did suffer a shock defeat to a player from outside the top 100 against Fabian Marozsan last time out in Rome.
There was no such slip-up on Court Suzanne Lenglen, though, as he won the first eight games of the match.
Cobolli settled and improved, even saving four match points in the third set and breaking Alcaraz when he first served for it, but eventually the sport’s new golden boy extended his record of never having lost in a Slam first round to nine appearances.
Alcaraz will next play Japan’s Taro Daniel.
Canadian 10th seed Felix Auger-Aliassime suffered a third defeat at the opening hurdle in four visits to Roland Garros as he lost 6-4, 6-4, 6-3 to Fabio Fognini.
The unpredictable Italian, who himself has lost in the first round six times in nine tournaments so far this season, pulled off a shock win on Court Simonne Mathieu.
British 14th seed Cameron Norrie came through a five-set thriller on Court Suzanne Lenglen to beat home wildcard Benoit Paire 7-5, 4-6, 3-6, 6-1, 6-4.
Last year’s Wimbledon semi-finalist will take on resurgent Frenchman Lucas Pouille for a third-round berth.
Former champion Stan Wawrinka, 38, out-fought Albert Ramos-Vinolas over four hours and 35 minutes, winning 7-6 (7/5), 6-4, 6-7 (2/7), 1-6, 6-4 to set up a clash with Thanasi Kokkinakis.
Zhang Zhizhen became the first Chinese man to win a main-draw match at the tournament since 1937 when his opponent Dusan Lajovic retired injured while trailing 6-1, 4-1.
In the women’s draw, Ukraine’s Elina Svitolina won her first match at a Slam event since the 2022 Australian Open, beating last year’s semi-finalist Martina Trevisan 6-2, 6-2.
The former world number three has recently returned to the tour following maternity leave, having previously taken a break from the sport citing health problems and mental exhaustion following Russia’s invasion of her home country.
“These kind of moments, these little wins. . . on a level, which is very low, but these moments bring joy to people of Ukraine,” said Svitolina. | english |
{
"properties": [
{
"name": "chat.queues.output",
"type": "java.lang.String",
"description": "Rabbit output queue name."
},
{
"name": "chat.exhanges.output",
"type": "java.lang.String",
"description": "Rabbit output exchange name."
}
] } | json |
"""
Source: https://github.com/rokups/paste2box
License: GNU General Public License v3.0
"""
from PySide.QtCore import Qt, Signal
from PySide.QtGui import QKeySequence
class GlobalHotkeyManagerBase(object):
keyPressed = Signal(int)
keyReleased = Signal(int)
def __init__(self):
self.shortcuts = {}
def register(self, sequence, callback, winid):
if not isinstance(sequence, QKeySequence):
sequence = QKeySequence(sequence)
assert isinstance(sequence, QKeySequence), 'Invalid sequence type'
k, m = self._sequence_to_native(sequence)
return self._register_shortcut(callback, k, m, winid)
def unregister(self, sequence=None, callback=None, winid=None):
if sequence is not None:
assert callback is not None, 'Invalid parameter'
if isinstance(sequence, str):
sequence = QKeySequence(sequence)
assert isinstance(sequence, QKeySequence), 'Invalid sequence type'
k, m = self._sequence_to_native(sequence)
self._unregister_shortcut(k, m, winid)
elif callback is not None:
assert sequence is not None, 'Invalid parameter'
for (k, m), cb in self.shortcuts.items():
if callback == cb:
self._unregister_shortcut(k, m, winid)
else:
for (k, m), cb in self.shortcuts.copy().items():
self._unregister_shortcut(k, m, winid)
def _sequence_to_native(self, sequence):
all_mods = int(Qt.ShiftModifier |
Qt.ControlModifier |
Qt.AltModifier |
Qt.MetaModifier)
assert not sequence.isEmpty()
key = Qt.Key((sequence[0] ^ all_mods) & sequence[0])
mods = Qt.KeyboardModifiers(sequence[0] ^ int(key))
return self._native_keycode(key), self._native_modifiers(mods)
def _native_modifiers(self, modifiers):
raise NotImplemented()
def _native_keycode(self, key):
raise NotImplemented()
def _register_shortcut(self, receiver, native_key, native_mods, winid):
raise NotImplemented()
def _unregister_shortcut(self, native_key, native_mods, winid):
raise NotImplemented()
def stop(self):
raise NotImplemented
| python |
KATHMANDU: A pedestrian has died after being hit by a tipper at Kalanki in Kathmandu.
According to SSP Janak Bhattarai, the in-charge at the Metropolitan Traffic Police Division (MTPD)Kathmandu, a young man of around 25 was killed when a tipper Ba 1 Kha 5893 heading to Thankot from Balkhu hit him last night.
The youth died while undergoing treatment in Maharajgunj based TU Teaching Hospital.
The tipper driver Youvak Thokar, 30, has been taken under police control. | english |
The Hoenn Collection Challenge in Pokemon GO gives players a chance at catching several Generation III Pokemon, including Plusle and Minun.
The plus and minus pair are much more difficult to catch in Pokemon GO than the other seven creatures that play a part in the challenge.
Thankfully, simply encountering them in the wild isn't the only way to get a hold of these two. The Electric-type duo are a must to complete the challenge, however, so venture out and get them.
Viewing the surrounding Pokemon in-game is the easiest way to spot a potential encounter. If either Plusle or Minun appear at a specific PokeStop or landmark, go there immediately. This is the best chance to catch on in Pokemon GO.
They will also be part of a special Field Research Task encounter. During the Hoenn Collection Challenge, players can get a "Catch 11 Pokemon" task in Pokemon GO. It is random, however, so if the spun PokeStop does not provide it, go to another and spin again.
The "Catch 11 Pokemon" Field Research Task will provide a Pokemon encounter. During the challenge, this encounter is guaranteed to be either Plusle or Minun. Some players believe they are locked to this encounter and are hoping for increased spawn rates in the wild.
If spinning PokeStops for the appropriate Field Research Task is doable, that may be the best option to catch either Plusle or Minun in Pokemon GO. Spin them all and complete "Catch 11 Pokemon" until both of them are caught.
Just be weary of repeats in the encounter. Plusle could randomly appear each time the encounter is triggered. Minun could just as well. That part is completely random and requires just a bit of luck on the part of the Pokemon GO trainer. | english |
package com.x.processplatform.service.service.jaxrs.service;
import java.net.URLEncoder;
import java.util.Objects;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.Consumes;
import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import com.x.base.core.container.EntityManagerContainer;
import com.x.base.core.container.factory.EntityManagerContainerFactory;
import com.x.base.core.entity.annotation.CheckPersistType;
import com.x.base.core.exception.ExceptionWhen;
import com.x.base.core.http.ActionResult;
import com.x.base.core.http.EffectivePerson;
import com.x.base.core.http.HttpMediaType;
import com.x.base.core.http.WrapOutId;
import com.x.base.core.http.annotation.HttpMethodDescribe;
import com.x.base.core.project.x_processplatform_service_processing;
import com.x.base.core.project.jaxrs.ResponseFactory;
import com.x.base.core.project.jaxrs.StandardJaxrsAction;
import com.x.processplatform.core.entity.content.Work;
import com.x.processplatform.core.entity.element.ActivityType;
import com.x.processplatform.core.entity.element.Service;
import com.x.processplatform.core.entity.temporary.ServiceValue;
import com.x.processplatform.service.service.Business;
import com.x.processplatform.service.service.ThisApplication;
@Path("service")
public class ServiceAction extends StandardJaxrsAction {
@HttpMethodDescribe(value = "对于等待调用的work写入回写数据", response = WrapOutId.class)
@GET
@Path("work/{workId}/{value}")
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
@Consumes(MediaType.APPLICATION_JSON)
public Response get(@Context HttpServletRequest request, @PathParam("workId") String workId,
@PathParam("value") String value) {
ActionResult<WrapOutId> result = new ActionResult<>();
WrapOutId wrap = null;
try {
try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {
Business business = new Business(emc);
EffectivePerson effectivePerson = this.effectivePerson(request);
Work work = emc.find(workId, Work.class, ExceptionWhen.not_found);
if (!Objects.equals(ActivityType.service, work.getActivityType())) {
throw new JaxrsBusinessLogicException(
"invalid work{id:" + workId + ", activityType:" + work.getActivityType() + "} ");
}
Service service = emc.find(work.getActivity(), Service.class);
business.checkServicePermission(request, business, effectivePerson, work, service);
emc.beginTransaction(Work.class);
emc.beginTransaction(ServiceValue.class);
ServiceValue serviceValue = new ServiceValue();
work.copyTo(serviceValue);
serviceValue.setValue(value);
work.setServiceValue(serviceValue.getId());
emc.check(work, CheckPersistType.all);
emc.persist(serviceValue, CheckPersistType.all);
emc.commit();
}
ThisApplication.context().applications().putQuery(x_processplatform_service_processing.class,
"work/" + URLEncoder.encode(workId, "UTF-8") + "/processing", null);
wrap = new WrapOutId(workId);
result.setData(wrap);
} catch (Throwable th) {
th.printStackTrace();
result.error(th);
}
return ResponseFactory.getDefaultActionResultResponse(result);
}
@HttpMethodDescribe(value = "对于等待调用的work写入回写数据", response = WrapOutId.class)
@POST
@Path("work/{workId}")
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
@Consumes(MediaType.APPLICATION_JSON)
public Response post(@Context HttpServletRequest request, @PathParam("workId") String workId,
@FormParam("value") String value) {
ActionResult<WrapOutId> result = new ActionResult<>();
WrapOutId wrap = null;
try {
try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {
Business business = new Business(emc);
EffectivePerson effectivePerson = this.effectivePerson(request);
Work work = emc.find(workId, Work.class, ExceptionWhen.not_found);
if (!Objects.equals(ActivityType.service, work.getActivityType())) {
throw new JaxrsBusinessLogicException(
"invalid work{id:" + workId + ", activityType:" + work.getActivityType() + "} ");
}
Service service = emc.find(work.getActivity(), Service.class);
business.checkServicePermission(request, business, effectivePerson, work, service);
emc.beginTransaction(Work.class);
emc.beginTransaction(ServiceValue.class);
ServiceValue serviceValue = new ServiceValue();
work.copyTo(serviceValue);
serviceValue.setValue(value);
work.setServiceValue(serviceValue.getId());
emc.check(work, CheckPersistType.all);
emc.persist(serviceValue, CheckPersistType.all);
emc.commit();
}
ThisApplication.context().applications().putQuery(x_processplatform_service_processing.class,
"work/" + URLEncoder.encode(workId, "UTF-8") + "/processing", null);
wrap = new WrapOutId(workId);
result.setData(wrap);
} catch (Throwable th) {
th.printStackTrace();
result.error(th);
}
return ResponseFactory.getDefaultActionResultResponse(result);
}
} | java |
<filename>angular/app/components/user/user.component.js
class UserController{
constructor(UserService){
'ngInject';
//
this.me;
this.UserService = UserService;
this.UserService.me((user) => {
this.me = user;
});
}
$onInit(){
}
}
export const UserComponent = {
templateUrl: './views/app/components/user/user.component.html',
controller: UserController,
controllerAs: 'vm',
bindings: {
field:'@'
}
}
| javascript |
{"intercooler-debugger.js":"sha256-uC5FYXpk+KCVHRuvj6k0BNw293XDepgIt+MH9aQuYis=","intercooler-debugger.min.js":"sha256-gGuIJyruylPESBVeNSWujqUMrN4rNvyjgHNYWMT0ULs=","intercooler.js":"sha256-QSsbSJaTiMk0Y5s/3oukeyBY3lKjtzku7kxNvoxCtgE=","intercooler.min.js":"sha256-A5gIVRvQv+qnO+2hNmYeqZXQpg4SCQytwe9kuII53CI="} | json |
<reponame>Jason-Silla/JohnAI
### Written by Jason-Silla ###
### https://github.com/Jason-Silla/JohnAI ###
class Fraction:
numerator = 1
denominatior = 1
def __init__(self, *info):
if len(info) == 2:
self.numerator = numerator
self.denominator = denominator
elif len(info) == 0:
pass
else:
raise ValueError
def simplify(self):
num = 2
while True:
if self.numerator % num == 0 and self.denominator % num == 0:
self.numerator = self.numerator/num
self.denominator = self.denominator/num
elif(not(num > self.numerator or num > self.denominator)):
num += 1
else:
break
del(num)
def __add__(self, f):
rf, nf1, nf2 = Fraction()
a = Fraction(self.denominator, self.denominator)
b = Fraction(f.denominator, f.denominator)
nf1.numerator = self.numerator * b.numerator
nf1.denominator = self.denominator * b.denominator
nf2.numerator = f.numerator * a.numerator
nf2.denominator = f.denominator * a.denominator
rf.numerator = nf1.numerator + nf2.numerator
rf.denominator = nf1.denominator
rf.simplify()
del(nf1, nf2, a, b)
return rf
def __sub__(self, f):
rf, nf1, nf2 = Fraction()
a = Fraction(self.denominator, self.denominator)
b = Fraction(f.denominator, f.denominator)
nf1.numerator = self.numerator * b.numerator
nf1.denominator = self.denominator * b.denominator
nf2.numerator = f.numerator * a.numerator
nf2.denominator = f.denominator * a.denominator
rf.numerator = nf1.numerator - nf2.numerator
rf.denominator = nf1.denominator
del(nf1, nf2, a, b)
rf.simplify()
return rf
def __mul__(self, f):
newf = Fraction()
newf.numerator = self.numerator * f.numerator
newf.denominator = self.denominator * f.denominator;
newf.simplify();
return newf
def __truediv__(self, f):
newf = Fraction()
newf.numerator = self.numerator * f.denominator
newf.denominator = self.denominator * f.numerator
newf.simplify()
return newf
def __str__(self):
if self.denominator == 1:
return self.numerator
elif self.denominator == 0:
return 0
else:
return f"{self.numerator}/{self.denominator}"
def toDouble(self):
return self.numerator/self.denominator
def __mod__(self, f):
newf = Fraction()
newf.numerator = self.numerator * f.denominator
newf.denominator = self.denominator * f.numerator
whole = newf.numerator/newf.denominator
remainderN = whole * newf.denominator
remainder = Fraction(remainderN, newf.denominator)
remainder = newf - remainder
remainder.simplify()
del(newf, whole, remainderN)
return remainder
class SlopeIntForm:
def init(self, y, m, x, b):
self.y = y
self.m = m
self.x = x
self.b = b
def init(self, m, b):
self.m = m
self.b = b
def slopeIntFromPoints(a, b):
slope = Fraction()
slope.numerator((b.x - a.x).toDouble())
slope.denominatior((b.y - a.y).toDouble())
be = Fraction()
equation = SlopeIntForm(slope, be)
return equation
| python |
India’s premier investigating agency, National Investigation Agency (NIA) which was constituted to investigate offences related to terrorist activities and other crimes having national and international importance, has invited Punjab police personnel’s from sepoy to inspector rank, to work with this premier investigating agency, on deputation.
In a letter issued by director general of police (DGP) Punjab office to DGP (intelligence), special director general of police (Armed) jalandhar, additional director general of police (technical) Chandigarh, additional director general of police (GRP), Patiala, additional director general of police (operations-cum-SOG’s and commando’s) Bahadurgarh , Patiala along with all IGP’s and all commissioner of police Punjab has asked the officials to give the details of willing police personnel s ,in a format to the DGP office.
As per the requirement of NIA, “those willing to join India’s premier investigating agency on deputation, must be a bachelor of degree. The police personnel will get 20 percent additional basic pay along with one rank up for five years or more, after joining NIA” read the conditions.
National Investigation Agency (NIA) director general YC Modi inaugurated the branch office of the premier anti-terror organisation’s office in Chandigarh near Model Jail, Sector 51, last month. Its jurisdiction extended over the states of Punjab, Haryana, Himachal Pradesh and the Union Territory of Chandigarh. The NIA has its headquarters in Delhi, with other branch offices existing at Guwahati, Kolkata, Kochi, Hyderabad, Mumbai, Raipur, Lucknow and Jammu.
| english |
Apple’s decision to greenlight an app called HKmaps, which is being used by pro-democracy protestors in Hong Kong to crowdsource information about street closures and police presence, is attracting the ire of the Chinese government.
An article in Chinese state mouthpiece, China Daily, attacks the iPhone maker for reversing an earlier decision not to allow the app to be listed on the iOS App Store — claiming the app is “allowing the rioters in Hong Kong to go on violent acts” (via The Guardian).
HKmaps uses emoji to denote live police and protest activity around Hong Kong, as reported by users.
The former British colony is a special administrative region of the People’s Republic of China that’s been able to maintain certain economic and and political freedoms since reunification with China — under the one country, two systems principle. But earlier this year pro-democracy protests broke out after the Hong Kong government sought to pass legislation that would allow for extradition to mainland China. It’s policing around those on-going protests that’s being made visible on HKmaps.
The app’s developer denies the map enables illegal activity, saying its function is “for info” purposes only — to allow residents to move freely around the city by being able to avoid protest flash-points. But the Chinese government is branding it “toxic”.
“Business is business, and politics is politics. Nobody wants to drag Apple into the lingering unrest in Hong Kong. But people have reason to assume that Apple is mixing business with politics, and even illegal acts. Apple has to think about the consequences of its unwise and reckless decision,” the China Daily writer warns in a not-so-veiled threat about continued access to the Chinese market.
The article takes further aim at Apple — claiming it reinstated a song which advocates for independence for Hong Kong and had previously been removed from its music store.
We’ve reached out to Apple for comment.
A few days ago the company was getting flak from the other direction as Western commentators piled on to express incredulity over its decision, at the app review stage, not to allow HKmaps on its store. The app’s developer said Apple App Store reviewers had rejected it citing the reasoning as “the app allowed users to evade law enforcement”.
Yet, as many pointed out at the time, the Google-owned Waze app literally describes its function as “avoid police” if you take the trouble to read its iOS listing. So it looked like a crystal-clear case of double standards by Cupertino. And, most awkwardly for Apple, as if the US tech giant was siding with the Chinese state against Hong Kong as concerned residents fight for their autonomy and call for democracy.
We asked Apple about its decision to reject the app at the App Store review stage last week. It did not provide any comment but a couple of days afterwards a spokesman pointed us to an “update” — where the developer tweeted that the iOS version was “Approved, comming soon!” [sic].
At the time of writing the iOS app remains available on the App Store but the episode highlights the tricky trade-offs Apple is facing by operating in the Chinese market — a choice that risks denting its reputation for highly polished corporate values.
The size of the China market is such that just “economical deceleration” can — and has — put a serious dent in Apple’s bottom line. If the company were to exit — or be ejected — from the market entirely there would be no way for it to cushion the blow for shareholders. Yet with a premium brand so bound up with ethical claims to champion and defend fundamental human rights like privacy Apple risks being pinned between a rock and a hard place as an increasingly powerful China flexes more political and economic muscle.
Wider trade tensions between the US and China are also creating further instability, causing major operating headaches for Chinese tech giant Huawei — with the Trump administration pressuring allies to freeze it out of 5G networks and leaning on US companies not to provide services to Chinese firms (leading to question marks over whether Huawei’s smartphones can continue using Google’s Android OS, and suggestions it might seek to deploy its own OS).
The going is certainly getting tougher for tech businesses working from East to West. But it also remains to be seen how sustainable Apple’s West-to-East democratic balancing act can be given heightened and escalating geopolitical tensions.
| english |
{"date":20200926,"state":"ND","positive":20340,"probableCases":2,"negative":215849,"pending":null,"totalTestResultsSource":"totalTestEncountersViral","totalTestResults":594628,"hospitalizedCurrently":104,"hospitalizedCumulative":809,"inIcuCurrently":22,"inIcuCumulative":201,"onVentilatorCurrently":null,"onVentilatorCumulative":null,"recovered":16481,"lastUpdateEt":"9/26/2020 01:59","dateModified":"2020-09-26T01:59:00Z","checkTimeEt":"09/25 21:59","death":230,"hospitalized":809,"hospitalizedDischarged":null,"dateChecked":"2020-09-26T01:59:00Z","totalTestsViral":616642,"positiveTestsViral":null,"negativeTestsViral":null,"positiveCasesViral":20338,"deathConfirmed":null,"deathProbable":null,"totalTestEncountersViral":594628,"totalTestsPeopleViral":236229,"totalTestsAntibody":9344,"positiveTestsAntibody":421,"negativeTestsAntibody":8923,"totalTestsPeopleAntibody":null,"positiveTestsPeopleAntibody":null,"negativeTestsPeopleAntibody":null,"totalTestsPeopleAntigen":null,"positiveTestsPeopleAntigen":null,"totalTestsAntigen":17,"positiveTestsAntigen":null,"fips":"38","positiveIncrease":497,"negativeIncrease":1100,"total":236189,"totalTestResultsIncrease":7064,"posNeg":236189,"dataQualityGrade":null,"deathIncrease":8,"hospitalizedIncrease":20,"hash":"06f5c59436a71e5b381b01ebf150e6effec031c0","commercialScore":0,"negativeRegularScore":0,"negativeScore":0,"positiveScore":0,"score":0,"grade":""}
| json |
The average person with multiple diseased arteries in the heart does slightly better following coronary artery bypass surgery than after having stents inserted, a new study suggests, but the optimal procedure varies by patient.
Researchers found slightly more heart patients survived at least five years after bypass surgery - 74 percent, versus 72 percent of those who had a stenting procedure, known as angioplasty.
However, people who had no diabetes or heart failure and were non-smokers tended to have better outcomes with angioplasty than with more invasive surgery, the study team reported Monday in the Annals of Internal Medicine.
"It's good to say, ‘On average people do better with this drug or this procedure,'" said Dr. Mark Hlatky, a healthy policy and cardiovascular medicine researcher at Stanford University in California.
"But if we could only target the people who would get the most benefit, we'd probably make better decisions and maybe save money," he said.
For their study, Hlatky and his colleagues tracked the records of 105,156 people on Medicare, the government health insurance program for the elderly, who had bypass surgery or received stents between 1992 and 2008. Patients from each treatment group were matched by age and the year they had their procedure.
The researchers calculated the average patient lived 19 days longer after bypass surgery than stenting. People with diabetes, heart failure and peripheral artery disease, as well as those who smoked, were especially likely to benefit from bypass surgery.
But the rest of heart patients - as many as 41 percent - were predicted to do better after angioplasty, they found.
Bypass surgery involves grafting a healthy blood vessel around a blocked one, so blood "bypasses" the unhealthy vessel. For a stent procedure, a small mesh tube is inserted into the blood vessel after it's opened with a balloon-tipped catheter.
The results are consistent with other recent research suggesting people with diabetes and multiple clogged arteries fare better after undergoing bypass surgery than after receiving drug-coated stents.
"The first question is whether you need something done at all, (or) whether drugs alone are enough," Hlatky said. "The second questions is, once you think you do need to go ahead and drug therapy is not enough - either because symptoms are too bad or the patient is high-risk - then you can decide between bypass surgery and angioplasty. "
For people who have only one clogged vessel, angioplasty is typically fine, Hlatky said.
"On the other end if there's very, very severe coronary disease in lots of places, most of the time patients go straight to surgery," he added.
It's in the middle where patients and doctors can use studies like this one to make more informed decisions about what treatment might be best for them, Hlatky said.
According to the Healthcare Blue Book, bypass surgery runs for about $64,000, including the hospital stay. Because angioplasty requires fewer days in the hospital, it typically costs less than half that. | english |
package checkspec.report.output.gui;
/*-
* #%L
* CheckSpec Output
* %%
* Copyright (C) 2017 <NAME>
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import java.awt.Component;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.net.URL;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;
import javax.swing.JScrollPane;
import javax.swing.JTree;
import javax.swing.ToolTipManager;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.MutableTreeNode;
import javax.swing.tree.TreeCellRenderer;
import javax.swing.tree.TreePath;
import checkspec.report.ClassReport;
import checkspec.report.Report;
import checkspec.report.ReportProblem;
import checkspec.report.ReportType;
import checkspec.report.SpecReport;
import checkspec.util.ClassUtils;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
/**
* Frame that presents one or more {@link SpecReport}s.
*
* @author <NAME>
*
*/
class CheckSpecFrame extends JFrame {
private static final long serialVersionUID = -954917589134719758L;
private static final String ICON_FORMAT = "%s.png";
static final String SUCCESS = "Export was successful";
static final String ERROR = "An error occurred while exporting:%n%s";
private final JMenuBar menuBar = new JMenuBar();
private final DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode();
private final JTree tree = new JTree(rootNode);
private final JMenuItem textExport;
private final JMenuItem htmlExport;
private final TreeSelectionListener treeSelectionListener;
private final JPopupMenu contextMenu;
@Getter(AccessLevel.PACKAGE)
private final List<SpecReport> reports = new LinkedList<>();
public CheckSpecFrame() {
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
setLayout(new GridBagLayout());
setTitle("CheckSpec");
GridBagConstraints constraints = new GridBagConstraints();
constraints.gridx = 0;
constraints.gridy = 0;
constraints.insets = new Insets(5, 5, 5, 5);
constraints.weightx = 1;
constraints.weighty = 1;
constraints.fill = GridBagConstraints.BOTH;
treeSelectionListener = new CustomTreeSelectionListener();
add(new JScrollPane(getReportTreeView()), constraints);
pack();
setLocationRelativeTo(null);
JMenu exportMenu = new JMenu("Export");
exportMenu.setMnemonic('E');
exportMenu.add(textExport = new TextExportMenuItem(this));
exportMenu.add(htmlExport = new HtmlExportMenuItem(this));
treeSelectionListener.valueChanged(null);
menuBar.add(exportMenu);
setJMenuBar(menuBar);
contextMenu = createContextMenu();
}
private JTree getReportTreeView() {
tree.setCellRenderer(new CustomTreeCellRenderer(tree.getCellRenderer()));
tree.addTreeSelectionListener(treeSelectionListener);
tree.addMouseListener(new CustomMouseListener());
tree.setRootVisible(false);
ToolTipManager.sharedInstance().registerComponent(tree);
expandAllNodes(tree);
return tree;
}
public void addReport(SpecReport report) {
reports.add(report);
MutableTreeNode node = createNode(report);
rootNode.add(node);
}
public void finishedAddingReports() {
((DefaultTreeModel) tree.getModel()).reload();
expandAllNodes(tree);
pack();
}
public SpecReport getCurrentReport() {
TreePath selectionPath = tree.getSelectionPath();
if (selectionPath != null && selectionPath.getPathCount() > 1) {
DefaultMutableTreeNode reportNode = (DefaultMutableTreeNode) selectionPath.getPathComponent(1);
return (SpecReport) reportNode.getUserObject();
}
return null;
}
private static MutableTreeNode createNode(SpecReport report) {
DefaultMutableTreeNode node = new DefaultMutableTreeNode(report);
for (Report<?, ?> cr : report.getClassReports()) {
node.add(createNode(cr));
}
return node;
}
private static MutableTreeNode createNode(Report<?, ?> report) {
DefaultMutableTreeNode node = new DefaultMutableTreeNode(report);
for (ReportProblem e : report.getProblems()) {
node.add(createNode(e));
}
for (Report<?, ?> e : report.getSubReports()) {
node.add(createNode(e));
}
return node;
}
private static MutableTreeNode createNode(ReportProblem line) {
return new DefaultMutableTreeNode(line, false);
}
private static void expandAllNodes(JTree tree) {
expandAllNodes(tree, 0, tree.getRowCount());
}
private static void expandAllNodes(JTree tree, int startingIndex, int rowCount) {
for (int i = startingIndex; i < rowCount; ++i) {
tree.expandRow(i);
}
if (tree.getRowCount() != rowCount) {
expandAllNodes(tree, rowCount, tree.getRowCount());
}
}
public static Icon getIcon(String name) {
return new ImageIcon(CheckSpecFrame.class.getResource(String.format(ICON_FORMAT, name)));
}
private JPopupMenu createContextMenu() {
JPopupMenu menu = new JPopupMenu();
JMenuItem removeItem = new JMenuItem("remove");
removeItem.setIcon(new ImageIcon(CheckSpecFrame.class.getResource("remove.png")));
removeItem.addActionListener(this::removeItem);
menu.add(removeItem);
return menu;
}
private void handleContextMenu(MouseEvent e) {
if (e.isPopupTrigger()) {
TreePath path = tree.getPathForLocation(e.getX(), e.getY());
if (path != null && path.getPathCount() > 1) {
tree.setSelectionPaths(new TreePath[] { path });
contextMenu.show(e.getComponent(), e.getX(), e.getY());
}
}
}
private void removeItem(ActionEvent e) {
TreePath path = tree.getSelectionPath();
DefaultMutableTreeNode node = (DefaultMutableTreeNode) path.getLastPathComponent();
Object object = node.getUserObject();
boolean remove = true;
if (object instanceof SpecReport) {
reports.remove(object);
} else if (object instanceof Report<?, ?>) {
DefaultMutableTreeNode parentComponent = (DefaultMutableTreeNode) path.getPathComponent(path.getPathCount() - 2);
Object parentReport = parentComponent.getUserObject();
if (parentReport instanceof SpecReport) {
((SpecReport) parentReport).removeClassReport((ClassReport) object);
} else if (parentReport instanceof Report<?, ?>) {
((Report<?, ?>) parentReport).removeSubReport((Report<?, ?>) object);
}
} else if (object instanceof ReportProblem) {
DefaultMutableTreeNode secondToLastComponent = (DefaultMutableTreeNode) path.getPathComponent(path.getPathCount() - 2);
Report<?, ?> parentReport = (Report<?, ?>) secondToLastComponent.getUserObject();
parentReport.removeProblem((ReportProblem) object);
} else {
remove = false;
}
if (remove) {
TreePath rootPath = getRootPath(path);
List<TreePath> expandedDescendants = Collections.list(tree.getExpandedDescendants(rootPath));
node.removeFromParent();
((DefaultTreeModel) tree.getModel()).reload();
expandedDescendants.forEach(tree::expandPath);
}
}
private TreePath getRootPath(TreePath path) {
TreePath parent = path.getParentPath();
return parent == null ? path : getRootPath(parent);
}
@RequiredArgsConstructor
private class CustomTreeCellRenderer implements TreeCellRenderer {
private final TreeCellRenderer delegate;
@Override
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {
Component component = delegate.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus);
DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;
if (component instanceof JLabel) {
JLabel label = (JLabel) component;
String iconName = null;
String tooltip = null;
Object userObject = node.getUserObject();
if (userObject instanceof SpecReport) {
iconName = "report";
URL location = ClassUtils.getLocation(((SpecReport) userObject).getSpecification().getRawElement().getRawClass());
tooltip = location == null ? null : location.toString();
} else {
ReportType type = null;
if (userObject instanceof ReportProblem) {
type = ((ReportProblem) userObject).getType().toReportType();
} else if (userObject instanceof Report<?, ?>) {
type = ((Report<?, ?>) userObject).getType();
}
if (userObject instanceof ClassReport) {
URL location = ClassUtils.getLocation(((ClassReport) userObject).getImplementation().getRawClass());
tooltip = location == null ? null : location.toString();
}
iconName = type == null ? null : getIconName(type);
}
if (iconName != null) {
label.setIcon(getIcon(iconName));
} else {
label.setIcon(null);
}
label.setToolTipText(tooltip);
}
return component;
}
}
private class CustomTreeSelectionListener implements TreeSelectionListener {
@Override
public void valueChanged(TreeSelectionEvent e) {
boolean enabled = getCurrentReport() != null;
textExport.setEnabled(enabled);
htmlExport.setEnabled(enabled);
}
}
private class CustomMouseListener extends MouseAdapter {
@Override
public void mousePressed(MouseEvent e) {
handleContextMenu(e);
}
@Override
public void mouseReleased(MouseEvent e) {
handleContextMenu(e);
}
}
private String getIconName(@NonNull ReportType type) {
switch (type) {
case SUCCESS:
return "success";
case WARNING:
return "exclamation_mark";
case ERROR:
return "failure";
}
return null;
}
}
| java |
<reponame>ChainXcom/bitaddress.org
(function (ninja) {
var status = ninja.status = function() {
var cryptoCase = "";
if (window.crypto && window.crypto.getRandomValues) {
document.getElementById("statuscrypto").innerHTML = "✔"; //✔
cryptoCase = "good";
}
else {
document.getElementById("statuscrypto").innerHTML = "×"; //×
cryptoCase = "bad";
}
var protocolCase = "";
switch (window.location.protocol) {
case 'file:':
document.getElementById("statusprotocol").innerHTML = "✔"; //✔
protocolCase = "good";
break;
case 'http:':
case 'https:':
document.getElementById("statusprotocol").innerHTML = "⚠"; //⚠
protocolCase = "bad";
break;
default:
}
var unitTestsCase = "";
var unitTests = function () {
var result = ninja.unitTests.runSynchronousTests();
if (result.passCount == result.testCount) {
document.getElementById("statusunittests").innerHTML = "✔"; //✔
unitTestsCase = "good";
}
else {
document.getElementById("statusunittests").innerHTML = "×"; //×
unitTestsCase = "bad";
}
};
var showCrypto = function () {
document.getElementById('statuscrypto' + cryptoCase).style.display = 'block';
};
var showProtocol = function () {
document.getElementById('statusprotocol' + protocolCase).style.display = 'block';
};
var showUnitTests = function () {
if(unitTestsCase != "") document.getElementById('statusunittests' + unitTestsCase).style.display = 'block';
};
var showKeyPool = function () {
document.getElementById('statuskeypoolgood').style.display = 'block';
document.getElementById("keypooltextarea").value = Bitcoin.KeyPool.toString();
};
return {
unitTests: unitTests, showCrypto: showCrypto, showProtocol: showProtocol,
showUnitTests: showUnitTests, showKeyPool: showKeyPool
};
}();
})(ninja);
ninja.tab = {
select: function (walletTab) {
// detect type: normally an HtmlElement/object but when string then get the element
if (typeof walletTab === 'string') {
walletTab = document.getElementById(walletTab);
}
var walletType = walletTab.getAttribute("id");
if (walletTab.className.indexOf("selected") == -1) {
// unselect all tabs
for (var wType in ninja.wallets) {
document.getElementById(wType).className = "tab";
ninja.wallets[wType].close();
}
// don't open tab if entropy still being collected
// exceptions: brainwallet detailwallet
if (ninja.seeder.isStillSeeding == false || walletType == "brainwallet" || walletType == "detailwallet") {
walletTab.className += " selected";
document.getElementById("generate").style.display = "none";
ninja.wallets[walletTab.getAttribute("id")].open();
}
else if (ninja.seeder.isStillSeeding == true && !(walletType == "brainwallet" || walletType == "detailwallet")) {
document.getElementById("generate").style.display = "block";
}
}
},
whichIsOpen: function () {
var isOpen;
for (var wType in ninja.wallets) {
isOpen = ninja.wallets[wType].isOpen();
if (isOpen) {
return wType;
}
}
return null;
}
};
ninja.getQueryString = function () {
var result = {}, queryString = location.search.substring(1), re = /([^&=]+)=([^&]*)/g, m;
while (m = re.exec(queryString)) {
result[decodeURIComponent(m[1])] = decodeURIComponent(m[2]);
}
return result;
};
// use when passing an Array of Functions
ninja.runSerialized = function (functions, onComplete) {
onComplete = onComplete || function () { };
if (functions.length === 0) onComplete();
else {
// run the first function, and make it call this
// function when finished with the rest of the list
var f = functions.shift();
f(function () { ninja.runSerialized(functions, onComplete); });
}
};
ninja.forSerialized = function (initial, max, whatToDo, onComplete) {
onComplete = onComplete || function () { };
if (initial === max) { onComplete(); }
else {
// same idea as runSerialized
whatToDo(initial, function () { ninja.forSerialized(++initial, max, whatToDo, onComplete); });
}
};
// use when passing an Object (dictionary) of Functions
ninja.foreachSerialized = function (collection, whatToDo, onComplete) {
var keys = [];
for (var name in collection) {
keys.push(name);
}
ninja.forSerialized(0, keys.length, function (i, callback) {
whatToDo(keys[i], callback);
}, onComplete);
}; | javascript |
@font-face {
font-family: Preahvihear;
font-style: normal;
font-weight: 400;
src: local("Preah Vihear"),local(PreahVihear),url(//fonts.gstatic.com/s/preahvihear/v12/6NUS8F-dNQeEYhzj7uluxswF.eot?#) format("eot"),url(//fonts.gstatic.com/s/preahvihear/v12/6NUS8F-dNQeEYhzj7uluxvwI6dB5fw.woff2) format("woff2"),url(//fonts.gstatic.com/s/preahvihear/v12/6NUS8F-dNQeEYhzj7uluxswH.woff) format("woff");
}
.u-font-preahvihear-400 {
font-family: 'Preahvihear' !important;
font-weight: 400 !important;
} | css |
KANSAS CITY, Mo. (AP) — The even-keeled executive with the crisp suit and winning smile stood inside the mostly empty Kansas City Chiefs locker room, his team having just won a home playoff game for the first time in 25 years.
He talked about how much it meant to their long-suffering fans. Spoke glowingly about coach Andy Reid, and his young superstar quarterback, Patrick Mahomes. He praised the rest of a team that captured its third straight AFC West title before knocking off the Colts in the playoffs.
It wasn't until Clark Hunt was asked about winning the AFC title game that he became emotional.
You see, the Chiefs were founded by his father, the late Lamar Hunt, who along with seven others in what would be called "The Foolish Club" founded the AFL.
The personable Texas businessman's importance to establishing the modern NFL was honored in 1984, when the league renamed the silver trophy awarded to the winner of the AFC championship game the Lamar Hunt Trophy.
So it's easy to understand why his son, now the team's chairman and the most visible face of the ownership family, would have tears in the corners of his eyes at the thought of holding it for the first time with a win over the New England Patriots on Sunday night.
"It's been a long time coming," Clark Hunt said. "Since Andy came here we've had a lot of shots, but we finally have a chance to win the AFC championship, and to do it at home is so special for us. "
The Chiefs have never played an AFC title game at Arrowhead Stadium. They won at Buffalo to reach the first Super Bowl, and in Oakland on their way to their lone Super Bowl triumph in 1970.
They lost their only other appearance in Buffalo in January 1994.
Indeed, the opportunity to return to the NFL's biggest stage for the first time in 49 years has been a long time coming. The Chiefs lost eight consecutive postseason games during one maddening stretch, and squandered the No. 1 seed along the way. They had great individual players — Tony Gonzalez, Priest Holmes, Joe Montana — yet never managed to hoist the AFC championship trophy.
Former coach Dick Vermeil, who took the Eagles to the Super Bowl and won it with the Rams, said this week that "my biggest regret" was failing to deliver it during his five seasons in Kansas City.
"It would be great. I mean, when your name is on it, that's a pretty big thing," said current Chiefs coach Andy Reid, who still remembers meeting Lamar Hunt during an ownership meeting years ago.
Hunt died in December 2006 at the age of 74.
"To have the opportunity to work with his kids and Clark in particular, I understand the importance of that," Reid said. "Not that he has to tell me. He doesn't have to say anything. "
In fact, the Chiefs make sure everybody knows the importance.
"One of the awesome things we do with our player development team is that they take us through the whole history," Mahomes said. "We come over to the museum that we have in the stadium and they take us through how he made the AFL, pretty much from scratch, and had this vision for what is now the AFC and combined it with the NFL and made this beautiful league.
"It truly is special for someone like that who has created your franchise," Mahomes added. "You want to do whatever you can to bring honor to him and that family. "
The Patriots are no strangers to hoisting the Lamar Hunt Trophy, of course. They are playing for it for the eighth consecutive season, and the coach-quarterback combination of Bill Belichick and Tom Brady have succeeded in hoisting it eight times since their first real season together in 2001.
But despite a perennial juggernaut standing in the way, there is a profound sense of confidence that surrounds the Chiefs these days, an unabashed optimism that can be felt all around town.
Fountains are colored red — at least, those that haven't frozen — and Chiefs banners hang off many of the city's iconic buildings. Fans are streaming into Charlie Hustle, a local vintage clothing store, for their "Arrowhead Collection" of shirts. Those who aren't making a buck off the Chiefs' playoff ride are spending a buck to support them, or in many cases several hundred bucks.
The stars are quite literally aligning: There is a "super blood wolf moon" due Sunday night, where the sun, Earth and moon line up and the moon is cast in a rusty (Chiefs-like) red tint.
The fan fever is not unlike the way the city embraced the Royals when they made back-to-back World Series appearances. And when they won the 2015 championship, some 800,000 turned out for the parade.
Imagine how many would show up if the Chiefs won the Super Bowl.
"It means a lot just to make it to this point," said Chiefs linebacker Justin Houston, one of the team's elder statesmen. I've never had this opportunity, so I think it will means a lot to me, to (the Hunt family) and to the city. "
Yes, the Hunt family.
Clark Hunt knows better than to plan for parades before games are won. The Chiefs have come up short many times, and the sting of those disappointments still lingers after all these years. Yet the franchise is also on the precipice of something great, a potential salve to make that pain go away.
"It's very special, obviously, for our entire family," Hunt said. "It's one of the goals that I always put out for the players at the beginning of the year. First thing we want to do is win that Lamar Hunt Trophy. Then we want to go to the Super Bowl and win that Lombardi Trophy. " | english |
<filename>src/main/java/com/scofield/blog/service/impl/LinkServiceImpl.java
package com.scofield.blog.service.impl;
import com.scofield.blog.dao.BlogLinkMapper;
import com.scofield.blog.entity.BlogLink;
import com.scofield.blog.service.LinkService;
import com.scofield.blog.util.PageQueryUtil;
import com.scofield.blog.util.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
@Service
public class LinkServiceImpl implements LinkService {
@Autowired
private BlogLinkMapper blogLinkMapper;
@Override
public PageResult getBlogLinkPage(PageQueryUtil pageUtil) {
List<BlogLink> links = blogLinkMapper.findLinkList(pageUtil);
int total = blogLinkMapper.getTotalLinks(pageUtil);
PageResult pageResult = new PageResult(links, total, pageUtil.getLimit(), pageUtil.getPage());
return pageResult;
}
@Override
public int getTotalLinks() {
return blogLinkMapper.getTotalLinks(null);
}
@Override
public Boolean saveLink(BlogLink link) {
return blogLinkMapper.insertSelective(link) > 0;
}
@Override
public BlogLink selectById(Integer id) {
return blogLinkMapper.selectByPrimaryKey(id);
}
@Override
public Boolean updateLink(BlogLink tempLink) {
return blogLinkMapper.updateByPrimaryKeySelective(tempLink) > 0;
}
@Override
public Boolean deleteBatch(Integer[] ids) {
return blogLinkMapper.deleteBatch(ids) > 0;
}
@Override
public Map<Byte, List<BlogLink>> getLinksForLinkPage() {
//获取所有链接数据
List<BlogLink> links = blogLinkMapper.findLinkList(null);
if (!CollectionUtils.isEmpty(links)) {
//根据type进行分组
Map<Byte, List<BlogLink>> linksMap = links.stream().collect(Collectors.groupingBy(BlogLink::getLinkType));
return linksMap;
}
return null;
}
}
| java |
<filename>maps/gsiv/rooms/18695.json
{
"id": 18695,
"title": [
"[Wyrwood Retreat, Entryway]"
],
"description": [
"This open, airy room has smooth, polished floorboards that chirp whenever weight is placed upon them. Bramble-carved ironwood benches rest beneath the windows in the northern wall, framing the doorway that leads to the meditation garden at the center of the lodge. Wrought iron sconces supporting unlit oil lamps are set into the walls around the room. A row of coat hooks is set to one side of a pair of sturdy ironwood doors leading back out to the front porch."
],
"paths": [
"Obvious exits: north"
],
"location": "Wyrwood Retreat, outside the frontier town of Wehnimer's Landing",
"wayto": {
"18694": "go doors",
"18698": "north"
},
"timeto": {
"18694": 0.2,
"18698": 0.2
}
} | json |
Trading pair LTC/BTC. The movement in April / May.
Hello, gentlemen..
Litecoin is very promising this year. Everyone is waiting for its growth, so in our reviews we have to consider it.
"All-in", timeframe is 1 day.
The growth of the asset price in the near future will limit the main resistance line 1. The main support is line 2.
The exchange chart of the LTC token shows us that in the near future the price will be inside the figure limited by lines 1 and 2. Apparently, we should expect the price to fall to the level of*** 0.015 BTC***. After that, the price will start to grow along the support line 2, with a likely jump to the line 1 (level 0.02 BTC)
I do not think that the resistance line 1, the price of bitcoin will break the first time. So after the jump, the LTC price will drop slightly down along line 1.
Good luck!
Some of the posts might contain our opinion on trading strategies based on our technical and fundamental knowledge. However, please, invest at your own risk. We can’t be held responsible for any losses.
| english |
{"derivation": "a prolonged form of G3427 (\u1f10\u03bc\u03bf\u03af);", "kjv_def": "I, me, mine, my", "lemma": "\u1f10\u03bc\u03bf\u03af", "frequency": 0, "strongs_def": " to me", "outline": "<ol><li> I, me, myself, etc.</li></ol>"} | json |
Big-hitting Australian all-rounder Glenn Maxwell says being continuously confined to bio-bubbles can become a “nightmare” and cricketers are leading a “difficult lifestyle” right now to ensure that they continue to do their job.
Maxwell, who had his share of problems with mental fatigue in the past, admitted that adjusting to such a life amid the COVID-19 pandemic is definitely taking a toll on players around the world.
“It’s very difficult (to move from one bubble to other)…you being sheltered from people outside your bio-secure bubble and you get stuck into this never-ending nightmare where you are living the same day over and over again,” he said in an interview posted by his IPL franchise Royal Challengers Bangalore on its youtube channel.
“You almost tend to forget how to have a normal conversation with the outside world. That can be very hard mentally and is a massive challenge. But it’s great to be back playing and to be able to do our jobs and entertain people. But it’s still a difficult lifestyle at the moment,” he said.
Talking about the upcoming IPL, Maxwell said couldn’t care less for all the chatter around his hefty price tag despite underwhelming past performances as he is excited about living a long-cherished dream of playing alongside Virat Kohli and AB de Villiers.
Despite poor outings in the last two IPLs, Maxwell managed to earn big bucks again in this year’s auction when RCB signed him for a whopping Rs 14. 25 crore.
“It’s been a long time (dream of playing alongside Kohli and de Villiers). Obviously having known them very well off the field, played against them fair bit but finally I got to play in the same team,” Maxwell said in an interview posted RCB on its youtube page.
“Not really,” was his response to a query on whether he was surprised by the high bid he attracted at the auction.
RCB will take on Mumbai Indians in the tournament-opener in Chennai on Friday.
He said his vast experience of playing in Indian conditions could turn out to be handy for Kohli and the RCB in their endeavour to lift a maiden IPL title.
“I suppose with my experience, I think it’s my 22nd trip to India… so with that sort of experience you have got to help out the rest of the group,” Maxwell said.
Maxwell said having spent the entire lockdown period with his fiancee at his Melbourne home, he is feeling fresh now and can’t wait to take the field for his new IPL side.
“I was so excited to get going. A new team, a new tournament we are back in India after Dubai last year, I was so excited. Happy to be outside of quarantine. It was nice to see some friendly faces, meet a few new people, get out and run around. | english |
<reponame>davidovichmarcos/MechanicsApp
{"ast":null,"code":"\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar IntlProvider =\n/*#__PURE__*/\nfunction (_React$Component) {\n (0, _inheritsLoose2.default)(IntlProvider, _React$Component);\n\n function IntlProvider() {\n return _React$Component.apply(this, arguments) || this;\n }\n\n var _proto = IntlProvider.prototype;\n\n _proto.getChildContext = function getChildContext() {\n var locale = this.props.locale;\n return {\n rsuiteLocale: locale\n };\n };\n\n _proto.render = function render() {\n return this.props.children || null;\n };\n\n return IntlProvider;\n}(React.Component);\n\n(0, _defineProperty2.default)(IntlProvider, \"childContextTypes\", {\n rsuiteLocale: _propTypes.default.object\n});\n(0, _defineProperty2.default)(IntlProvider, \"handledProps\", [\"children\", \"locale\"]);\nvar _default = IntlProvider;\nexports.default = _default;","map":null,"metadata":{},"sourceType":"script"} | json |
New Delhi: In a major development in the INX media money laundering case, a Delhi court on Wednesday issued summons against ex-union minister P Chidambaram, his son Karti Chidambaram and others including heads of several firms.
The court issued the summons after taking cognizance of the Enforcement Directorate's main chargesheet in the case. All the accused have been asked to appear before the court on April 7, 2021.
Special Judge M K Nagpal observed that there was sufficient material to proceed against the father-son duo, Karti's chartered accountant SS Bhaslararaman, former CEO of INX Pratim Mukerjea and six firms including INX Media and INX News.
"I find sufficient material and grounds for proceeding further in the matter against all the 10 accused persons named in the complaint, out of which six accused are companies, for commission of offence under section 3 read with section 70 of the PMLA, which is punishable under section 4 of the Act," the judge said in his order.
Earlier, the ED and Central Bureau of Investigation (CBI) had questioned Karti in connection with the INX media case. Karti was accused of obtaining clearance to the tune of Rs 305 crore from the Foreign Investment Promotion Board (FIPB) in 2007 when his father P Chidambaram was the finance minister during the UPA-I regime.
P Chidambaram was arrested by the CBI on August 21 in 2019 in a case registered on May 15, 2017 alleging irregularities in a FIPB clearance granted to the INX Media group. In 2018, Chidambaram's son Karti was arrested on the basis of a statement of Indrani Mukerjea, the former director of INX Media (P) Ltd to ED. He was granted bail after 23 days.
The ED had also attached assets worth Rs 54 crore of Karti in India, the UK and Spain in connection with the INX Media case. | english |
<filename>test/function/string_functions_test.cpp
//===----------------------------------------------------------------------===//
//
// Peloton
//
// string_functions_test.cpp
//
// Identification: test/expression/string_functions_test.cpp
//
// Copyright (c) 2015-2018, Carnegie Mellon University Database Group
//
//===----------------------------------------------------------------------===//
#include <set>
#include <string>
#include <vector>
#include "common/harness.h"
#include "executor/executor_context.h"
#include "function/string_functions.h"
#include "function/old_engine_string_functions.h"
using ::testing::NotNull;
using ::testing::Return;
namespace peloton {
namespace test {
class StringFunctionsTests : public PelotonTest {
public:
StringFunctionsTests() : test_ctx_(nullptr) {}
executor::ExecutorContext &GetExecutorContext() { return test_ctx_; }
private:
executor::ExecutorContext test_ctx_;
};
TEST_F(StringFunctionsTests, LikeTest) {
//-------------- match ---------------- //
std::string s1 = "forbes \\avenue"; // "forbes \avenue"
std::string p1 = "%b_s \\\\avenue"; // "%b_s \\avenue"
EXPECT_TRUE(function::StringFunctions::Like(
GetExecutorContext(), s1.c_str(), s1.size(), p1.c_str(), p1.size()));
std::string s2 = "for%bes avenue%"; // "for%bes avenue%"
std::string p2 = "for%bes a_enue\\%"; // "for%bes a_enue%"
EXPECT_TRUE(function::StringFunctions::Like(
GetExecutorContext(), s2.c_str(), s2.size(), p2.c_str(), p2.size()));
std::string s3 = "Allison"; // "Allison"
std::string p3 = "%lison"; // "%lison"
EXPECT_TRUE(function::StringFunctions::Like(
GetExecutorContext(), s3.c_str(), s3.size(), p3.c_str(), p3.size()));
//----------Exact Match------------//
std::string s5 = "Allison"; // "Allison"
std::string p5 = "Allison"; // "Allison"
EXPECT_TRUE(function::StringFunctions::Like(
GetExecutorContext(), s5.c_str(), s5.size(), p5.c_str(), p5.size()));
//----------Exact Match------------//
std::string s6 = "Allison"; // "Allison"
std::string p6 = "A%llison"; // "A%llison"
EXPECT_TRUE(function::StringFunctions::Like(
GetExecutorContext(), s6.c_str(), s6.size(), p6.c_str(), p6.size()));
//-------------- not match ----------------//
std::string s4 = "forbes avenue"; // "forbes avenue"
std::string p4 = "f_bes avenue"; // "f_bes avenue"
EXPECT_FALSE(function::StringFunctions::Like(
GetExecutorContext(), s4.c_str(), s4.size(), p4.c_str(), p4.size()));
}
TEST_F(StringFunctionsTests, AsciiTest) {
const char column_char = 'A';
for (int i = 0; i < 52; i++) {
auto expected = static_cast<uint32_t>(column_char + i);
std::ostringstream os;
os << static_cast<char>(expected);
std::vector<type::Value> args = {
type::ValueFactory::GetVarcharValue(os.str())};
auto result = function::OldEngineStringFunctions::Ascii(args);
EXPECT_FALSE(result.IsNull());
EXPECT_EQ(expected, result.GetAs<int>());
}
// NULL CHECK
std::vector<type::Value> args = {
type::ValueFactory::GetNullValueByType(type::TypeId::VARCHAR)};
auto result = function::OldEngineStringFunctions::Ascii(args);
EXPECT_TRUE(result.IsNull());
}
TEST_F(StringFunctionsTests, ChrTest) {
const char column_char = 'A';
for (int i = 0; i < 52; i++) {
int char_int = (int)column_char + i;
std::ostringstream os;
os << static_cast<char>(char_int);
std::string expected = os.str();
std::vector<type::Value> args = {
type::ValueFactory::GetIntegerValue(char_int)};
auto result = function::OldEngineStringFunctions::Chr(args);
EXPECT_FALSE(result.IsNull());
EXPECT_EQ(expected, result.ToString());
}
// NULL CHECK
std::vector<type::Value> args = {
type::ValueFactory::GetNullValueByType(type::TypeId::INTEGER)};
auto result = function::OldEngineStringFunctions::Chr(args);
EXPECT_TRUE(result.IsNull());
}
TEST_F(StringFunctionsTests, SubstrTest) {
std::vector<std::string> words = {"Fuck", "yo", "couch"};
std::ostringstream os;
for (auto w : words) {
os << w;
}
int from = words[0].size() + 1;
int len = words[1].size();
const std::string expected = words[1];
std::vector<type::Value> args = {
type::ValueFactory::GetVarcharValue(os.str()),
type::ValueFactory::GetIntegerValue(from),
type::ValueFactory::GetIntegerValue(len),
};
auto result = function::OldEngineStringFunctions::Substr(args);
EXPECT_FALSE(result.IsNull());
EXPECT_EQ(expected, result.ToString());
// Use NULL for every argument and make sure that it always returns NULL.
for (int i = 0; i < 3; i++) {
std::vector<type::Value> nullargs = {
type::ValueFactory::GetVarcharValue("aaa"),
type::ValueFactory::GetVarcharValue("bbb"),
type::ValueFactory::GetVarcharValue("ccc"),
};
nullargs[i] = type::ValueFactory::GetNullValueByType(type::TypeId::VARCHAR);
auto result = function::OldEngineStringFunctions::Substr(nullargs);
EXPECT_TRUE(result.IsNull());
}
}
TEST_F(StringFunctionsTests, CharLengthTest) {
const std::string str = "A";
for (int i = 0; i < 100; i++) {
std::string input = StringUtil::Repeat(str, i);
std::vector<type::Value> args = {
type::ValueFactory::GetVarcharValue(input)};
auto result = function::OldEngineStringFunctions::CharLength(args);
EXPECT_FALSE(result.IsNull());
EXPECT_EQ(i, result.GetAs<int>());
}
// NULL CHECK
std::vector<type::Value> args = {
type::ValueFactory::GetNullValueByType(type::TypeId::VARCHAR)};
auto result = function::OldEngineStringFunctions::CharLength(args);
EXPECT_TRUE(result.IsNull());
}
TEST_F(StringFunctionsTests, RepeatTest) {
const std::string str = "A";
for (int i = 0; i < 100; i++) {
std::string expected = StringUtil::Repeat(str, i);
EXPECT_EQ(i, expected.size());
std::vector<type::Value> args = {type::ValueFactory::GetVarcharValue(str),
type::ValueFactory::GetIntegerValue(i)};
auto result = function::OldEngineStringFunctions::Repeat(args);
EXPECT_FALSE(result.IsNull());
EXPECT_EQ(expected, result.ToString());
}
// NULL CHECK
std::vector<type::Value> args = {
type::ValueFactory::GetNullValueByType(type::TypeId::VARCHAR),
type::ValueFactory::GetVarcharValue(str),
};
auto result = function::OldEngineStringFunctions::Repeat(args);
EXPECT_TRUE(result.IsNull());
}
TEST_F(StringFunctionsTests, ReplaceTest) {
const std::string origChar = "A";
const std::string replaceChar = "X";
const std::string prefix = "**PAVLO**";
for (int i = 0; i < 100; i++) {
std::string expected = prefix + StringUtil::Repeat(origChar, i);
EXPECT_EQ(i + prefix.size(), expected.size());
std::string input = prefix + StringUtil::Repeat(replaceChar, i);
EXPECT_EQ(i + prefix.size(), expected.size());
std::vector<type::Value> args = {
type::ValueFactory::GetVarcharValue(input),
type::ValueFactory::GetVarcharValue(replaceChar),
type::ValueFactory::GetVarcharValue(origChar)};
auto result = function::OldEngineStringFunctions::Replace(args);
EXPECT_FALSE(result.IsNull());
EXPECT_EQ(expected, result.ToString());
}
// Use NULL for every argument and make sure that it always returns NULL.
for (int i = 0; i < 3; i++) {
std::vector<type::Value> args = {
type::ValueFactory::GetVarcharValue("aaa"),
type::ValueFactory::GetVarcharValue("bbb"),
type::ValueFactory::GetVarcharValue("ccc"),
};
args[i] = type::ValueFactory::GetNullValueByType(type::TypeId::VARCHAR);
auto result = function::OldEngineStringFunctions::Replace(args);
EXPECT_TRUE(result.IsNull());
}
}
TEST_F(StringFunctionsTests, LTrimTest) {
const std::string message = "This is a string with spaces";
const std::string spaces = " ";
const std::string origStr = spaces + message + spaces;
const std::string expected = message + spaces;
std::vector<type::Value> args = {type::ValueFactory::GetVarcharValue(origStr),
type::ValueFactory::GetVarcharValue(" ")};
auto result = function::OldEngineStringFunctions::LTrim(args);
EXPECT_FALSE(result.IsNull());
EXPECT_EQ(expected, result.ToString());
// Use NULL for every argument and make sure that it always returns NULL.
for (int i = 0; i < 2; i++) {
std::vector<type::Value> nullargs = {
type::ValueFactory::GetVarcharValue("aaa"),
type::ValueFactory::GetVarcharValue("bbb"),
};
nullargs[i] = type::ValueFactory::GetNullValueByType(type::TypeId::VARCHAR);
auto result = function::OldEngineStringFunctions::LTrim(nullargs);
EXPECT_TRUE(result.IsNull());
}
}
TEST_F(StringFunctionsTests, RTrimTest) {
const std::string message = "This is a string with spaces";
const std::string spaces = " ";
const std::string origStr = spaces + message + spaces;
const std::string expected = spaces + message;
std::vector<type::Value> args = {type::ValueFactory::GetVarcharValue(origStr),
type::ValueFactory::GetVarcharValue(" ")};
auto result = function::OldEngineStringFunctions::RTrim(args);
EXPECT_FALSE(result.IsNull());
EXPECT_EQ(expected, result.ToString());
// Use NULL for every argument and make sure that it always returns NULL.
for (int i = 0; i < 2; i++) {
std::vector<type::Value> nullargs = {
type::ValueFactory::GetVarcharValue("aaa"),
type::ValueFactory::GetVarcharValue("bbb"),
};
nullargs[i] = type::ValueFactory::GetNullValueByType(type::TypeId::VARCHAR);
auto result = function::OldEngineStringFunctions::RTrim(nullargs);
EXPECT_TRUE(result.IsNull());
}
}
TEST_F(StringFunctionsTests, BTrimTest) {
const std::string message = "This is a string with spaces";
const std::string spaces = " ";
const std::string origStr = spaces + message + spaces;
const std::string expected = message;
std::vector<type::Value> args = {type::ValueFactory::GetVarcharValue(origStr),
type::ValueFactory::GetVarcharValue(" ")};
auto result = function::OldEngineStringFunctions::BTrim(args);
EXPECT_FALSE(result.IsNull());
EXPECT_EQ(expected, result.ToString());
result = function::OldEngineStringFunctions::Trim(
{type::ValueFactory::GetVarcharValue(origStr)});
EXPECT_FALSE(result.IsNull());
EXPECT_EQ(expected, result.ToString());
// Use NULL for every argument and make sure that it always returns NULL.
for (int i = 0; i < 2; i++) {
std::vector<type::Value> nullargs = {
type::ValueFactory::GetVarcharValue("aaa"),
type::ValueFactory::GetVarcharValue("bbb"),
};
nullargs[i] = type::ValueFactory::GetNullValueByType(type::TypeId::VARCHAR);
auto result = function::OldEngineStringFunctions::BTrim(nullargs);
EXPECT_TRUE(result.IsNull());
}
}
TEST_F(StringFunctionsTests, LengthTest) {
const char column_char = 'A';
int expected = 1;
std::string str = "";
for (int i = 0; i < 52; i++) {
str += (char)(column_char + i);
expected++;
std::vector<type::Value> args = {type::ValueFactory::GetVarcharValue(str)};
auto result = function::OldEngineStringFunctions::Length(args);
EXPECT_FALSE(result.IsNull());
EXPECT_EQ(expected, result.GetAs<int>());
}
// NULL CHECK
std::vector<type::Value> args = {
type::ValueFactory::GetNullValueByType(type::TypeId::VARCHAR)};
auto result = function::OldEngineStringFunctions::Length(args);
EXPECT_TRUE(result.IsNull());
}
TEST_F(StringFunctionsTests, CodegenSubstrTest) {
const std::string message = "1234567";
int from = 1;
int len = 5;
std::string expected = message.substr(from - 1, len);
auto res = function::StringFunctions::Substr(
GetExecutorContext(), message.c_str(), message.length(), from, len);
EXPECT_EQ(len + 1, res.length);
EXPECT_EQ(expected, std::string(res.str, len));
from = 7;
len = 1;
expected = message.substr(from - 1, len);
res = function::StringFunctions::Substr(GetExecutorContext(), message.c_str(),
message.length(), from, len);
EXPECT_EQ(len + 1, res.length);
EXPECT_EQ(expected, std::string(res.str, len));
from = -2;
len = 4;
expected = message.substr(0, 1);
res = function::StringFunctions::Substr(GetExecutorContext(), message.c_str(),
message.length(), from, len);
EXPECT_EQ(2, res.length);
EXPECT_EQ(expected, std::string(res.str, 1));
from = -2;
len = 2;
expected = "";
res = function::StringFunctions::Substr(GetExecutorContext(), message.c_str(),
message.length(), from, len);
EXPECT_EQ(0, res.length);
EXPECT_EQ(nullptr, res.str);
}
} // namespace test
} // namespace peloton
| cpp |
<reponame>grace-shopper-team-it/grace-shopper<gh_stars>0
import React from 'react';
import { connect } from 'react-redux';
import {
addExistingCategoryThunk,
getAllCategoriesThunk,
} from '../../store/product';
class CategoryForm extends React.Component {
constructor() {
super();
this.state = {
categoryId: 0,
};
}
componentDidMount() {
this.props.fetchCategories();
}
handleSubmit = event => {
event.preventDefault();
this.props.addCategory(this.props.currentProduct.id, this.state.categoryId);
};
handleChange = event => {
this.setState({
categoryId: event.target.value,
});
};
render() {
const { categories } = this.props;
return (
<form onSubmit={this.handleSubmit} id="category-form">
<div id="category-dropdown">
<label htmlFor="categories">
<strong>Existing Categories</strong>
</label>
<select
className="form-control category-select"
id="categories"
name="categories"
onChange={this.handleChange}
>
<option key="nothing">-----</option>
{categories.map(category => {
return (
<option value={category.id} key={category.id}>
{category.name}
</option>
);
})}
</select>
<button type="submit" className="btn btn-success category-btn">
Add Category
</button>
</div>
</form>
);
}
}
const mapState = state => {
return {
currentProduct: state.product.currentProduct,
categories: state.product.categories,
};
};
const mapDispatch = dispatch => {
return {
addCategory: (productId, categoryId) => {
dispatch(addExistingCategoryThunk(productId, categoryId));
},
fetchCategories: () => dispatch(getAllCategoriesThunk()),
};
};
export default connect(
mapState,
mapDispatch
)(CategoryForm);
| javascript |
- PICS : OMG! THIS IS SHAH RUKH !
The poster of the film shows a bakra in bright clothing aviators ready to cut a ribbon at an inaugural function, with a crowd cheering. But why named Shah Rukh, is it an attempt to poke some fun on the king Khan? | english |
Baripada: North Orissa University at Takatpur in Mayurbhanj district is allegedly playing with the future of degree students. The university authorities have not published the results of fourth semester examinations conducted in June, 2018.
The students are now worried about their future.
The degree students have appeared for the fifth semester in January and the sixth semester in April, 2019. By that time the results of the fourth and fifth semesters should have been out. But the university authorities have held their publication. Students are wondering why the results have not been published.
Students said that they had met the university authorities in the past seeking steps for quick publication of the semester results, but to no avail. As a result, they have been facing problems while applying for jobs.
Companies and managements require mark sheets of the fourth semester. As the students are unable to produce their mark sheets, the companies do not give them jobs, students lamented.
Bikash Pradhan, a student, said that they had repeatedly approached the university authorities for publication of results, but no attention is paid to their plight. “The university authorities are unable to give satisfactory replies,” Pradhan said.
Another student, Monika Patra, said that she had complained to the authorities about delay in result publication. “Whenever we apply for jobs, companies and agencies ask for marks list of fourth semester examinations. Our future is uncertain,” she added.
The results of fourth semester for Computer Science, Zoology, Physics, Chemistry, Botany, Mathematics, English, Odia, Political Science, History, Education, Psychology, Home Science and Geology have not been published.
The university’s Comptroller of Examinations Jitendra Kumar Mantri said that the results of the fourth semester would be published within a week. “The results of the fifth and sixth semesters will be published within a month,” he added.
Notably, NOU was set up at Baripada in 1998. Its second campus is at Keonjhar. There are 80 degree colleges under the NOU in both the districts. | english |
# Generated by Django 3.0.3 on 2020-05-30 20:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('microimprocessing', '0005_auto_20200530_2231'),
]
operations = [
migrations.AlterField(
model_name='serverdatafilename',
name='file_path',
field=models.FilePathField(path='C:\\Users\\Jirik\\data', recursive=True, verbose_name='File Path on server'),
),
]
| python |
["babel-plugin-transform-react-stateless-component-name","fgraphql","generator-wyze-nm","gh-pages-with-token","redux-debounce","redux-middleware-debounce"] | json |
<filename>src/main/Entity/Workable.java
package main.Entity;
import java.io.Serializable;
public interface Workable extends Serializable{
/**
* An interface of User class, for reducing dependency purpose.
*
*/
String getName();
String getID();
int getLevel();
String getCreateTime();
String getEndTime();
String getDepartment();
String getState();
void setState(String state);
void setDescribe(String information);
String getDescribe();
void setRequirement(String requirement);
String getRequirement();
String getSign();
void setSign(String sign);
void setEndTime(String time);
void setIsKPI(String IsKPI);
String getIsKPI();
}
| java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.