blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 332 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2
values | repo_name stringlengths 7 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 557
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 684M ⌀ | star_events_count int64 0 77.7k | fork_events_count int64 0 48k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 82
values | src_encoding stringclasses 28
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 5.41M | extension stringclasses 11
values | content stringlengths 7 5.41M | authors listlengths 1 1 | author stringlengths 0 161 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
84a1cf144953797cbed953b39d2f62344df36c6c | 44e7adc9a1c5c0a1116097ac99c2a51692d4c986 | /aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/transform/FederatedAuthenticationStaxUnmarshaller.java | 6cc11ca995827f56ce647bebc9c53bc74910c0a3 | [
"Apache-2.0"
] | permissive | QiAnXinCodeSafe/aws-sdk-java | f93bc97c289984e41527ae5bba97bebd6554ddbe | 8251e0a3d910da4f63f1b102b171a3abf212099e | refs/heads/master | 2023-01-28T14:28:05.239019 | 2020-12-03T22:09:01 | 2020-12-03T22:09:01 | 318,460,751 | 1 | 0 | Apache-2.0 | 2020-12-04T10:06:51 | 2020-12-04T09:05:03 | null | UTF-8 | Java | false | false | 2,770 | java | /*
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file 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.
*/
package com.amazonaws.services.ec2.model.transform;
import javax.xml.stream.events.XMLEvent;
import javax.annotation.Generated;
import com.amazonaws.services.ec2.model.*;
import com.amazonaws.transform.Unmarshaller;
import com.amazonaws.transform.StaxUnmarshallerContext;
import com.amazonaws.transform.SimpleTypeStaxUnmarshallers.*;
/**
* FederatedAuthentication StAX Unmarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class FederatedAuthenticationStaxUnmarshaller implements Unmarshaller<FederatedAuthentication, StaxUnmarshallerContext> {
public FederatedAuthentication unmarshall(StaxUnmarshallerContext context) throws Exception {
FederatedAuthentication federatedAuthentication = new FederatedAuthentication();
int originalDepth = context.getCurrentDepth();
int targetDepth = originalDepth + 1;
if (context.isStartOfDocument())
targetDepth += 1;
while (true) {
XMLEvent xmlEvent = context.nextEvent();
if (xmlEvent.isEndDocument())
return federatedAuthentication;
if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) {
if (context.testExpression("samlProviderArn", targetDepth)) {
federatedAuthentication.setSamlProviderArn(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;
}
if (context.testExpression("selfServiceSamlProviderArn", targetDepth)) {
federatedAuthentication.setSelfServiceSamlProviderArn(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;
}
} else if (xmlEvent.isEndElement()) {
if (context.getCurrentDepth() < originalDepth) {
return federatedAuthentication;
}
}
}
}
private static FederatedAuthenticationStaxUnmarshaller instance;
public static FederatedAuthenticationStaxUnmarshaller getInstance() {
if (instance == null)
instance = new FederatedAuthenticationStaxUnmarshaller();
return instance;
}
}
| [
""
] | |
8b5c323c3fbdb1fad061e78830b62844d190ffb8 | 51dc41671f290b15a80f2b7b083736a3fad98b5f | /src/com/homework/Construct.java | e612d20d16ba96d25253eb5e1940ed6130b60d8d | [] | no_license | wanghuimin-0604/java_2020_07_31 | af5684abb2a76145ba8dd4db50d8973db89f9f1b | 43571c44c2f61f26f448b2f7e231d61a15e36d53 | refs/heads/master | 2022-11-28T14:05:14.984471 | 2020-07-31T07:17:33 | 2020-07-31T07:17:33 | 283,969,421 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,111 | java | package homework;
import java.util.Arrays;
/**
* Created with IntelliJ IDEA.
* Description:赎金信
* User:wanghuimin
* Date:2020-04-16
* Time:10:21
* 一万年太久,只争朝夕,加油
*/
public class Construct {
public static void main(String[] args) {
String ransomNote="aa";
String magazine="aab";
System.out.println(canConstruct(ransomNote, magazine));
}
public static boolean canConstruct(String ransomNote, String magazine) {
//先将字符串拆分成数组
char[] r=ransomNote.toCharArray();
char[] m=magazine.toCharArray();
//调用排序方法,将数组升序排序
Arrays.sort(r);
Arrays.sort(m);
int i=0;
int j=0;
boolean b=true;
if(r.length>m.length){
return false;
}
while(i<r.length&&j<m.length){
if(r[i]<m[j]){
return false;
}else if(r[i]>m[j]){
j++;
}else{
i++;
j++;
}
}
return i==r.length;
}
}
| [
"2895004668@qq.com"
] | 2895004668@qq.com |
d58eeec3a78179522223c677d0be063d3d23bbdc | 8f4fe4afaa6a0a50c877da450a83f15926e2558a | /geode-core/src/integrationTest/java/org/apache/geode/management/internal/configuration/realizers/RegionConfigRealizerIntegrationTest.java | 61bd0ab770b4d9e9d2b3948cb370bf9f49baeb5c | [
"Apache-2.0",
"LicenseRef-scancode-unknown",
"MIT",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | xiaoyuMo/geode | 8fe4731ac2f9cef116207c0bb4dee9f52b34cfb3 | d4a94f38a80b1e587384dfabf6c52e07e9c1e17a | refs/heads/develop | 2020-04-10T08:29:35.766568 | 2019-03-06T11:01:08 | 2019-03-06T11:01:08 | 160,907,214 | 0 | 0 | Apache-2.0 | 2019-03-06T11:01:09 | 2018-12-08T05:28:19 | Java | UTF-8 | Java | false | false | 2,007 | java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You 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.
*/
package org.apache.geode.management.internal.configuration.realizers;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.apache.geode.cache.DataPolicy;
import org.apache.geode.cache.Region;
import org.apache.geode.cache.Scope;
import org.apache.geode.cache.configuration.RegionConfig;
import org.apache.geode.test.junit.rules.ServerStarterRule;
public class RegionConfigRealizerIntegrationTest {
@Rule
public ServerStarterRule server = new ServerStarterRule().withAutoStart();
private RegionConfigRealizer realizer;
private RegionConfig config;
@Before
public void setup() {
config = new RegionConfig();
realizer = new RegionConfigRealizer();
}
@Test
public void sanityCheck() throws Exception {
config.setName("test");
config.setType("REPLICATE");
realizer.create(config, server.getCache());
Region<Object, Object> region = server.getCache().getRegion("test");
assertThat(region).isNotNull();
assertThat(region.getAttributes().getDataPolicy()).isEqualTo(DataPolicy.REPLICATE);
assertThat(region.getAttributes().getScope()).isEqualTo(Scope.DISTRIBUTED_ACK);
}
}
| [
"noreply@github.com"
] | noreply@github.com |
3690556a34820e1cb422605046192d988582bca3 | 4a59945351120b92cc074b8d2db3ec4b9d262644 | /src/com/algobot76/leetcode/_681/Solution2.java | 6aa1e75b8dc8f1307bce88db425203d94a10998e | [] | no_license | algobot76/leetcode-java | c88f461eb1c8a19cf0b36a5c81498572b5cfc717 | 3acccd340b0a1db711a2d88325297e867c9b6300 | refs/heads/master | 2020-05-04T18:55:16.245355 | 2019-11-24T04:31:25 | 2019-11-24T04:31:25 | 179,371,805 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,938 | java | package com.algobot76.leetcode._681;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* DFS
*/
public class Solution2 {
private int diff = Integer.MAX_VALUE;
private String ans = "";
public String nextClosestTime(String time) {
Set<Integer> set = new HashSet<>();
set.add(Integer.parseInt(time.substring(0, 1)));
set.add(Integer.parseInt(time.substring(1, 2)));
set.add(Integer.parseInt(time.substring(3, 4)));
set.add(Integer.parseInt(time.substring(4, 5)));
if (set.size() == 1) {
return time;
}
List<Integer> digits = new ArrayList<>(set);
int min = Integer.parseInt(time.substring(0, 2)) * 60 + Integer.parseInt(time.substring(3, 5));
dfs(digits, "", 0, min);
return ans;
}
private void dfs(List<Integer> digits, String curr, int pos, int target) {
if (pos == 4) {
int m = Integer.parseInt(curr.substring(0, 2)) * 60 + Integer.parseInt(curr.substring(2, 4));
if (m == target) {
return;
}
int d = m - target > 0 ? m - target : 1440 + m - target;
if (d < diff) {
diff = d;
ans = curr.substring(0, 2) + ":" + curr.substring(2, 4);
}
return;
}
for (int i = 0; i < digits.size(); i++) {
if (pos == 0 && digits.get(i) > 2) {
continue;
}
if (pos == 1 && Integer.parseInt(curr) * 10 + digits.get(i) > 23) {
continue;
}
if (pos == 2 && digits.get(i) > 5) {
continue;
}
if (pos == 3 && Integer.parseInt(curr.substring(2)) * 10 + digits.get(i) > 59) {
continue;
}
dfs(digits, curr + digits.get(i), pos + 1, target);
}
}
}
| [
"xkaitian@gmail.com"
] | xkaitian@gmail.com |
6cadb9157d75fd0d64b8216d56e4fcdbde07773e | b95709cb8ccc6e9a5c4b8d2f22c6e268d53ff422 | /Project File/src/se_project/Square.java | 5356ae8feb890baea39ca75d9b96d17fcb354e22 | [
"MIT"
] | permissive | yutnori/se_project_yutnori | 50e3f774fe310e04ae4cacc7fbe3cf52dab6909c | 5788c584aa4731c8b056c37830f1646c1cbe8715 | refs/heads/master | 2020-05-20T01:58:57.599298 | 2019-06-06T08:56:38 | 2019-06-06T08:56:38 | 185,321,870 | 0 | 2 | null | null | null | null | UTF-8 | Java | false | false | 271 | java | package se_project;
import java.util.*;
public class Square { // 보드에서 각각의 칸(블록)들을 나타내는 클래스
ArrayList<Piece> pieces; // 칸(블록)들의 리스트를 갖고 있다
Square(){
pieces = new ArrayList<>();
}
} | [
"michael6487@naver.com"
] | michael6487@naver.com |
5202ac3d1c9cbed6a9876b7fb7bddc70578c4cd5 | 330bc9bb8a0e3c6dde41a870a919dab82d13a29f | /app/src/main/java/com/example/eco/roomdatabaseeco/MainActivity.java | a909db52f88724f7d1c885a03fc4d849b41c41e3 | [] | no_license | mobiledev2014/2018_RoomDatabaseECO | 0a07da67a3ad507714d11ab8fd8b509fb1258fb3 | 1206dc044662d7fe9563b6bf7dd8df9a43489587 | refs/heads/master | 2020-04-09T10:26:51.989011 | 2018-12-04T00:21:18 | 2018-12-04T00:21:18 | 160,271,476 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,189 | java | package com.example.eco.roomdatabaseeco;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class MainActivity extends AppCompatActivity {
Button bt_create, bt_view;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
bt_create = findViewById(R.id.btn_create);
bt_view = findViewById(R.id.btn_view);
bt_create.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(getApplicationContext(), CreateActivity.class);
startActivity(intent);
finish();
}
});
bt_view.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(getApplicationContext(), ViewAllActivity.class);
startActivity(intent);
finish();
}
});
}
}
| [
"rick.zafe@gmail.com"
] | rick.zafe@gmail.com |
233b34c14481f536eea6f8a649190440b98c928c | f6a67c12daa528c190932fb1c8676326dc9e0c91 | /lib/src/main/java/me/ycdev/android/lib/common/ui/base/ListAdapterBase.java | 918f9420f1452e6c528ba13e3b75754e6dbbf1fc | [
"Apache-2.0"
] | permissive | XClouded/AndroidLib | 088879dd604096d852f70aa8b6de949a72126906 | 9687c5a992c986c7528de3a300e18fc1dc70e83f | refs/heads/master | 2020-12-25T16:35:38.289680 | 2015-01-29T16:42:33 | 2015-01-29T16:42:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,335 | java | package me.ycdev.android.lib.common.ui.base;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
public abstract class ListAdapterBase<T> extends BaseAdapter {
protected LayoutInflater mInflater;
protected List<T> mList;
public ListAdapterBase(@NonNull LayoutInflater inflater) {
mInflater = inflater;
}
public void setData(@Nullable List<T> data) {
mList = data;
notifyDataSetChanged();
}
public void sort(@NonNull Comparator<T> comparator) {
Collections.sort(mList, comparator);
notifyDataSetChanged();
}
/**
* @return null will be returned if no data set.
*/
@Nullable
public List<T> getData() {
return mList;
}
@Override
public int getCount() {
return mList != null ? mList.size(): 0;
}
@Override
public T getItem(int position) {
return mList.get(position);
}
@Override
public long getItemId(int position) {
return position;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolderBase holder;
if (convertView == null) {
convertView = mInflater.inflate(getItemResId(), parent, false);
holder = createViewHolder(convertView, position);
convertView.setTag(holder);
} else {
holder = (ViewHolderBase) convertView.getTag();
}
bindView(getItem(position), holder);
return convertView;
}
protected abstract int getItemResId();
protected abstract ViewHolderBase createViewHolder(@NonNull View itemView, int position);
protected abstract void bindView(T item, @NonNull ViewHolderBase holder);
protected static abstract class ViewHolderBase {
@NonNull
public View itemView;
public int position;
public ViewHolderBase(@NonNull View itemView, int position) {
this.itemView = itemView;
this.position = position;
findViews();
}
protected abstract void findViews();
}
}
| [
"yongce.tu@gmail.com"
] | yongce.tu@gmail.com |
b0b66720e6a902683bbd001753d6bde46c1817c5 | 2296b883cd1a67d3404ac1fb2cf902a9b663253c | /usercenter/src/main/java/com/zm/user/pojo/VipPrice.java | 9229732e1c1450f9ac3f4758f6e4aa8789397b3a | [] | no_license | jsbhb/servercenter | ab206570d9e0f3011f1fed421c76acba783abb7b | 0758aafc5d2daf694aca9b979936fe4af19cf6d2 | refs/heads/master | 2022-11-23T04:22:11.900837 | 2019-07-03T07:06:31 | 2019-07-03T07:06:31 | 99,976,687 | 6 | 8 | null | 2022-11-16T07:58:33 | 2017-08-11T00:50:52 | Java | UTF-8 | Java | false | false | 1,825 | java | package com.zm.user.pojo;
public class VipPrice {
private Integer id;
private Integer centerId;
private Integer vipLevel;
private Integer duration;
private Double price;
private String attribute;
private String createTime;
private String updateTime;
private String opt;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getCenterId() {
return centerId;
}
public void setCenterId(Integer centerId) {
this.centerId = centerId;
}
public Integer getVipLevel() {
return vipLevel;
}
public void setVipLevel(Integer vipLevel) {
this.vipLevel = vipLevel;
}
public Integer getDuration() {
return duration;
}
public void setDuration(Integer duration) {
this.duration = duration;
}
public Double getPrice() {
return price;
}
public void setPrice(Double price) {
this.price = price;
}
public String getAttribute() {
return attribute;
}
public void setAttribute(String attribute) {
this.attribute = attribute;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
public String getOpt() {
return opt;
}
public void setOpt(String opt) {
this.opt = opt;
}
@Override
public String toString() {
return "VipPrice [id=" + id + ", centerId=" + centerId + ", vipLevel=" + vipLevel + ", duration=" + duration
+ ", price=" + price + ", attribute=" + attribute + ", createTime=" + createTime + ", updateTime="
+ updateTime + ", opt=" + opt + "]";
}
}
| [
"190873411@163.com"
] | 190873411@163.com |
6bd031047fa1ed0daa18879ea3304551639ca011 | b1690c15c84a0efad7d7003dc7944b7aba264065 | /src/main/java/net/pwall/party/OrganizationName.java | 8a190d5bd4406cc58369aa347e063e23e6c24f48 | [
"MIT"
] | permissive | pwall567/party | de94d4f43eeb12c6b022a65c04de80a4091f2c59 | d4072ae3b15190916b9724b983fdddc8ec642901 | refs/heads/master | 2016-09-05T22:26:55.910421 | 2015-03-08T11:08:37 | 2015-03-08T11:08:37 | 31,846,558 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 298 | java | /*
* @(#) OrganizationName.java
*/
package net.pwall.party;
public class OrganizationName extends PartyName {
private String name;
public OrganizationName(String name) {
this.name = name;
}
@Override
public String getDisplayName() {
return name;
}
}
| [
"pwall@pwall.net"
] | pwall@pwall.net |
9a46cd79b9ac3a6bcc8117a37897e82701007785 | a3f5be2908547a93bc801558539f1ff9fe55559c | /src/EndPoint.java | df2a8bc9e1b83987ab0766b4d0fdbedf3382a030 | [] | no_license | zanfarMohammed/firstExamJava | db27d6f0d606cb4bf5cca36c00c7fdd3eeba243f | ca7419251e093fb69efa24c7119f5376cb21a8a5 | refs/heads/master | 2020-10-01T04:30:47.148507 | 2019-12-11T21:20:31 | 2019-12-11T21:20:31 | 227,455,639 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 850 | java |
public class EndPoint {
public static void main(String[] args) {
// TODO Auto-generated method stub
ComptePayant cp=new ComptePayant("T04754",7000);
System.out.println("Opertations compte Payant:");
cp.afficher();
System.out.println("operation retrait compte payant");
cp.retrait(500); cp.afficher();
System.out.println("operation versement compte payant");
cp.versement(500); cp.afficher();
CompteEpagne ce=new CompteEpagne("T04754",7000);
System.out.println("Opertations compte Epagne");
ce.afficher();
System.out.println("operation retrait compte Epagne");
ce.retrait(500); ce.afficher();
System.out.println("operation versement compte Epagne");
ce.versement(500); ce.afficher();
System.out.println("operation qui permet de calculer l'interet compte Epagne");
ce.calculInteret(); ce.afficher();
}
}
| [
"zanfar.med@gmail.com"
] | zanfar.med@gmail.com |
b3e109e0fa90c67125fc444a6b220e246d32bf82 | e82ee18caf359d89f63ce046cb5546424fe61d49 | /app/src/main/java/com/example/gameofmemory/MainActivity.java | e6a8133b1fe4aa6f46b4ca8f32a0429d6f8544ec | [] | no_license | IlaiGigi/Game-Of-Memory | 7406457eddf7b9801c94a8e0b2c36b15530c9ba5 | a9e8b28b1d39e1bc7ffceed8cef256b1a2bb98dc | refs/heads/master | 2023-08-24T11:18:21.567690 | 2021-10-11T07:46:11 | 2021-10-11T07:46:11 | 414,576,014 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,469 | java | package com.example.gameofmemory;
import androidx.appcompat.app.AppCompatActivity;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.Random;
import java.util.ArrayList;
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
ArrayList<Integer> boardIndex = new ArrayList<Integer>();
int[] imgsIndex = new int[16];
ImageView[] imgViews = new ImageView[16];
Drawable[] cards = new Drawable[16];
Random random = new Random();
TextView tvHeadline, tvTries;
Button btNewGame;
int countFlipped = 0;
int open1 = -1;
int open2 = -1;
int tries = 0;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
tvHeadline = findViewById(R.id.tvHeadline);
tvTries = findViewById(R.id.tvTries);
btNewGame = findViewById(R.id.btNewGame);
imgViews[0] = findViewById(R.id.zero);
imgViews[1] = findViewById(R.id.one);
imgViews[2] = findViewById(R.id.two);
imgViews[3] = findViewById(R.id.three);
imgViews[4] = findViewById(R.id.four);
imgViews[5] = findViewById(R.id.five);
imgViews[6] = findViewById(R.id.six);
imgViews[7] = findViewById(R.id.seven);
imgViews[8] = findViewById(R.id.eight);
imgViews[9] = findViewById(R.id.nine);
imgViews[10] = findViewById(R.id.ten);
imgViews[11] = findViewById(R.id.eleven);
imgViews[12] = findViewById(R.id.twelve);
imgViews[13] = findViewById(R.id.thirdteen);
imgViews[14] = findViewById(R.id.fourteen);
imgViews[15] = findViewById(R.id.fifthteen);
cards[0] = getDrawable(R.drawable.arabfunny);
cards[1] = getDrawable(R.drawable.mogusdrip);
cards[2] = getDrawable(R.drawable.johnxina);
cards[3] = getDrawable(R.drawable.bruceitsbeen);
cards[4] = getDrawable(R.drawable.itswednesday);
cards[5] = getDrawable(R.drawable.rickastley);
cards[6] = getDrawable(R.drawable.thinkmark);
cards[7] = getDrawable(R.drawable.juan);
btNewGame.setOnClickListener(this);
randomizeImages();
}
@Override
public void onClick(View view) {
if (view == btNewGame){
boardIndex.clear();
randomizeImages();
open1 = -1;
open2 = -1;
tries = 0;
countFlipped = 0;
tvTries.setText("Tries: 0");
for(int i=0; i<16; i++)
imgViews[i].setImageResource(R.drawable.cardback);
}
if (view == imgViews[0]){
initiateClick(0);
}
if (view == imgViews[1]){
initiateClick(1);
}
if (view == imgViews[2]){
initiateClick(2);
}
if (view == imgViews[3]){
initiateClick(3);
}
if (view == imgViews[4]){
initiateClick(4);
}
if (view == imgViews[5]){
initiateClick(5);
}
if (view == imgViews[6]){
initiateClick(6);
}
if (view == imgViews[7]){
initiateClick(7);
}
if (view == imgViews[8]){
initiateClick(8);
}
if (view == imgViews[9]){
initiateClick(9);
}
if (view == imgViews[10]){
initiateClick(10);
}
if (view == imgViews[11]){
initiateClick(11);
}
if (view == imgViews[12]){
initiateClick(12);
}
if (view == imgViews[13]){
initiateClick(13);
}
if (view == imgViews[14]){
initiateClick(14);
}
if (view == imgViews[15]){
initiateClick(15);
}
}
public void initiateClick(int index){
if (countFlipped == 2) {
if (!validateImages(open1, open2)) {
resetImages();
tries++;
tvTries.setText(String.format("Tries: %d", tries));
}
open1 = index;
open2 = -1;
countFlipped = 0;
}
countFlipped++;
if (countFlipped == 1)
open1 = index;
else if (countFlipped == 2)
if (open1 == index)
countFlipped--;
else
open2 = index;
imgViews[index].setImageDrawable(cards[imgsIndex[index]]);
}
public boolean isPresent(int num){
for (int value : boardIndex){
if (value == num)
return true;
}
return false;
}
public void randomizeImages(){
for (int i=0; i<8; i++){
for (int j=0; j<2; j++){
int n = random.nextInt(16);
while (isPresent(n))
n = random.nextInt(16);
imgsIndex[n] = i;
boardIndex.add(n);
}
}
}
public boolean validateImages(int index1, int index2){
return imgViews[index1].getDrawable().equals(imgViews[index2].getDrawable()) && index2 != index1;
}
public void resetImages(){
imgViews[open1].setImageResource(R.drawable.cardback);
imgViews[open2].setImageResource(R.drawable.cardback);
}
} | [
"ilai.gigi@gmail.com"
] | ilai.gigi@gmail.com |
bd6d2b653175e18a90c09425e262e3c4bc664561 | 949964d45002f3ce30f408dba58e582134447700 | /lib_net/src/main/java/com/wkq/net/model/MTimeMoveDetailInfo.java | e661890f7426347362d554663be4b1e93323803e | [] | no_license | wukuiqing49/moveAndNovel | 3426c7196e6094ceaa2d4d30dbf4437023089e03 | dfd9a40d211f1a7051b175a12476be9d93eedad6 | refs/heads/master | 2021-04-20T05:08:46.516427 | 2020-04-24T08:24:00 | 2020-04-24T08:24:00 | 249,656,981 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 89,340 | java | package com.wkq.net.model;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.List;
/**
* 作者:吴奎庆
* <p>
* 时间:2020-03-03
* <p>
* 用途:
*/
public class MTimeMoveDetailInfo {
/**
* basic : {"actors":[{"actorId":893026,"img":"http://img31.mtime.cn/ph/2014/10/16/090902.78583267_1280X720X2.jpg","name":"蒂姆·罗宾斯","nameEn":"Tim Robbins","roleImg":"http://img31.mtime.cn/mg/2014/03/06/095801.37640458.jpg","roleName":"安迪"},{"actorId":914747,"img":"http://img31.mtime.cn/ph/2014/03/14/152553.24862330_1280X720X2.jpg","name":"摩根·弗里曼","nameEn":"Morgan Freeman","roleImg":"http://img31.mtime.cn/mg/2014/03/06/100012.83373613.jpg","roleName":"瑞德"},{"actorId":926465,"img":"http://img31.mtime.cn/ph/2014/03/14/154053.49621373_1280X720X2.jpg","name":"鲍勃·冈顿","nameEn":"Bob Gunton","roleImg":"http://img31.mtime.cn/mg/2014/03/06/095646.98460287.jpg","roleName":"典狱长诺顿"},{"actorId":985553,"img":"http://img31.mtime.cn/ph/2014/03/14/154053.46837866_1280X720X2.jpg","name":"詹姆斯·惠特摩","nameEn":"James Whitmore","roleImg":"http://img31.mtime.cn/mg/2014/03/06/095605.37095220.jpg","roleName":"布鲁克斯"},{"actorId":914101,"img":"http://img31.mtime.cn/ph/2016/09/04/195829.17155789_1280X720X2.jpg","name":"吉尔·贝罗斯","nameEn":"Gil Bellows","roleImg":"http://img31.mtime.cn/mg/2014/03/06/100103.16916600.jpg","roleName":"汤米"},{"actorId":923631,"img":"http://img31.mtime.cn/ph/2016/06/01/102317.53025734_1280X720X2.jpg","name":"克兰西·布朗","nameEn":"Clancy Brown","roleImg":"http://img31.mtime.cn/mg/2014/03/06/100238.27497603.jpg","roleName":"赫德利"},{"actorId":980579,"img":"http://img31.mtime.cn/ph/2014/03/14/154055.16364112_1280X720X2.jpg","name":"马克·罗斯顿","nameEn":"Mark Rolston","roleImg":"http://img31.mtime.cn/mg/2014/03/06/095335.27207572.jpg","roleName":"鲍格斯"},{"actorId":927604,"img":"http://img31.mtime.cn/ph/2014/03/14/154055.36105401_1280X720X2.jpg","name":"祖德·塞克利拉","nameEn":"Jude Ciccolella","roleImg":"","roleName":"Guard Mert"},{"actorId":913477,"img":"http://img31.mtime.cn/ph/2016/08/31/132306.87833827_1280X720X2.jpg","name":"耐德·巴拉米","nameEn":"Ned Bellamy","roleImg":"","roleName":"Guard Youngblood"},{"actorId":985544,"img":"http://img31.mtime.cn/ph/2014/03/14/154055.60171327_1280X720X2.jpg","name":"杰弗瑞·德穆恩","nameEn":"Jeffrey DeMunn","roleImg":"","roleName":"1946 D.A."},{"actorId":989568,"img":"http://img31.mtime.cn/ph/2016/06/02/110028.47578651_1280X720X2.jpg","name":"","nameEn":"Larry Brandenburg","roleImg":"","roleName":"Skeet"},{"actorId":1013991,"img":"http://img31.mtime.cn/ph/1991/1013991/1013991_1280X720X2.jpg","name":"","nameEn":"Neil Giuntoli","roleImg":"","roleName":"Jigger"},{"actorId":965338,"img":"http://img31.mtime.cn/ph/1338/965338/965338_1280X720X2.jpg","name":"","nameEn":"Brian Libby","roleImg":"","roleName":"Floyd"},{"actorId":981250,"img":"http://img31.mtime.cn/ph/2014/03/14/154056.66087533_1280X720X2.jpg","name":"大卫·普罗瓦尔","nameEn":"David Proval","roleImg":"","roleName":"Snooze"},{"actorId":900770,"img":"http://img31.mtime.cn/ph/2016/05/16/115011.71106045_1280X720X2.jpg","name":"保罗·迈克格莱恩","nameEn":"Paul McCrane","roleImg":"","roleName":"Guard Trout"},{"actorId":1019549,"img":"http://img31.mtime.cn/ph/1549/1019549/1019549_1280X720X2.jpg","name":"","nameEn":"Renee Blaine","roleImg":"","roleName":"Andy Dufresne's Wife"},{"actorId":1019551,"img":"http://img31.mtime.cn/ph/1551/1019551/1019551_1280X720X2.jpg","name":"","nameEn":"Scott Mann","roleImg":"","roleName":"Glenn Quentin"},{"actorId":1008767,"img":"http://img31.mtime.cn/ph/767/1008767/1008767_1280X720X2.jpg","name":"","nameEn":"John Horton","roleImg":"","roleName":"1946 Judge"},{"actorId":993986,"img":"http://img31.mtime.cn/ph/1986/993986/993986_1280X720X2.jpg","name":"","nameEn":"Alfonso Freeman","roleImg":"","roleName":"Fresh Fish Con"},{"actorId":970393,"img":"http://img31.mtime.cn/ph/393/970393/970393_1280X720X2.jpg","name":"","nameEn":"V.J. Foster","roleImg":"","roleName":"Hungry Fish Con"}],"attitude":-1,"award":{"awardList":[{"festivalId":3,"nominateAwards":[{"awardName":"奥斯卡奖-最佳影片","festivalEventYear":"1995","persons":[{"nameCn":"","nameEn":"Niki Marvin","personId":1210720}],"sequenceNumber":67},{"awardName":"奥斯卡奖-最佳男主角","festivalEventYear":"1995","persons":[{"nameCn":"摩根·弗里曼","nameEn":"Morgan Freeman","personId":914747}],"sequenceNumber":67},{"awardName":"奥斯卡奖-最佳改编剧本","festivalEventYear":"1995","persons":[{"nameCn":"弗兰克·德拉邦特","nameEn":"Frank Darabont","personId":897895}],"sequenceNumber":67},{"awardName":"奥斯卡奖-最佳摄影","festivalEventYear":"1995","persons":[{"nameCn":"罗杰·狄金斯","nameEn":"Roger Deakins","personId":1162749}],"sequenceNumber":67},{"awardName":"奥斯卡奖-最佳音响","festivalEventYear":"1995","persons":[{"nameCn":"","nameEn":"Robert J. Litt","personId":1905448},{"nameCn":"","nameEn":"Elliot Tyson","personId":1905449},{"nameCn":"","nameEn":"Michael Herbick","personId":1905450},{"nameCn":"","nameEn":"Willie D. Burton","personId":1905315}],"sequenceNumber":67},{"awardName":"奥斯卡奖-最佳电影剪辑","festivalEventYear":"1995","persons":[{"nameCn":"","nameEn":"Richard Francis-Bruce","personId":1265229}],"sequenceNumber":67},{"awardName":"奥斯卡奖-最佳配乐","festivalEventYear":"1995","persons":[{"nameCn":"托马斯·纽曼","nameEn":"Thomas Newman","personId":1229462}],"sequenceNumber":67}],"nominateCount":7,"winAwards":[],"winCount":0},{"festivalId":15,"nominateAwards":[{"awardName":"电影类-剧情类最佳男主角","festivalEventYear":"1995","persons":[{"nameCn":"摩根·弗里曼","nameEn":"Morgan Freeman","personId":914747}],"sequenceNumber":52},{"awardName":"电影类-最佳编剧","festivalEventYear":"1995","persons":[{"nameCn":"弗兰克·德拉邦特","nameEn":"Frank Darabont","personId":897895}],"sequenceNumber":52}],"nominateCount":2,"winAwards":[],"winCount":0},{"festivalId":20,"nominateAwards":[],"nominateCount":0,"winAwards":[{"awardName":"最佳外语片","festivalEventYear":"1996","persons":[{"nameCn":"弗兰克·德拉邦特","nameEn":"Frank Darabont","personId":897895}],"sequenceNumber":19}],"winCount":1},{"festivalId":24,"nominateAwards":[{"awardName":"土星奖-最佳DVD/蓝光套装","festivalEventYear":"2016","persons":[],"sequenceNumber":42},{"awardName":"土星奖-最佳动作/冒险/惊悚电影","festivalEventYear":"1995","persons":[],"sequenceNumber":21},{"awardName":"土星奖-最佳编剧","festivalEventYear":"1995","persons":[{"nameCn":"弗兰克·德拉邦特","nameEn":"Frank Darabont","personId":897895}],"sequenceNumber":21}],"nominateCount":3,"winAwards":[],"winCount":0}],"totalNominateAward":12,"totalWinAward":1},"bigImage":"","broadcastDes":"","commentSpecial":"","community":{},"director":{"directorId":897895,"img":"http://img31.mtime.cn/ph/2016/01/28/094446.79677444_1280X720X2.jpg","name":"弗兰克·德拉邦特","nameEn":"Frank Darabont"},"eggDesc":"","episodeCnt":"","festivals":[{"festivalId":3,"img":"http://img31.mtime.cn/mg/2014/02/24/144331.32490714.jpg","nameCn":"奥斯卡金像奖","nameEn":"Academy Awards","shortName":"奥斯卡"},{"festivalId":15,"img":"http://img31.mtime.cn/mg/2014/02/24/145735.69166081.jpg","nameCn":"美国金球奖","nameEn":"Golden Globes, USA","shortName":"金球奖"},{"festivalId":20,"img":"http://img31.mtime.cn/mg/2014/02/24/151023.22214126.jpg","nameCn":"日本电影学院奖","nameEn":"Awards of the Japanese Academy","shortName":"日本学院奖"},{"festivalId":24,"img":"http://img31.mtime.cn/mg/2014/02/24/170521.92061793.jpg","nameCn":"土星奖","nameEn":"Saturn Awards","shortName":"土星奖"}],"hasSeenCount":70586,"hasSeenCountShow":"7.1万","hotRanking":-1,"img":"http://img31.mtime.cn/mt/2014/03/07/123549.37376649_1280X720X2.jpg","is3D":false,"isDMAX":false,"isEggHunt":false,"isFavorite":0,"isFilter":false,"isIMAX":false,"isIMAX3D":false,"isTicket":false,"message":"该操作将清除您对该片的评分!是否确认?","mins":"142分钟","movieId":12231,"movieStatus":1,"name":"肖申克的救赎","nameEn":"The Shawshank Redemption","overallRating":9.2,"personCount":126,"quizGame":{},"ratingCount":63437,"ratingCountShow":"6.3万","releaseArea":"美国","releaseDate":"19940923","sensitiveStatus":false,"showCinemaCount":-1,"showDay":-1,"showtimeCount":-1,"stageImg":{"count":115,"list":[{"imgId":7371500,"imgUrl":"http://img5.mtime.cn/pi/2017/07/20/160045.85354294_1280X720X2.jpg"},{"imgId":359553,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094947.29158501_1280X720X2.jpg"},{"imgId":347482,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094947.15659323_1280X720X2.jpg"},{"imgId":401961,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094947.13521527_1280X720X2.jpg"},{"imgId":401969,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094947.23978212_1280X720X2.jpg"},{"imgId":1021326,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094948.60015849_1280X720X2.jpg"},{"imgId":1021314,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094948.93716471_1280X720X2.jpg"},{"imgId":1021315,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094948.83770271_1280X720X2.jpg"},{"imgId":1021316,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094948.31802439_1280X720X2.jpg"},{"imgId":1021317,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094948.59114656_1280X720X2.jpg"}]},"story":"银行家安迪因被陷害杀害妻子与她的情夫,被判两个终身监禁。入狱后,影片便以黑人狱友瑞德冷静的旁白来推进。监狱数十年如一日的改造会使原本自由的心灵习惯了牢笼的禁锢,而这也将是安迪的命运?","style":{"isLeadPage":0,"leadImg":"https://img2.mtime.cn/mg/.jpg","leadUrl":""},"summary":"","totalNominateAward":0,"totalWinAward":0,"type":["犯罪","剧情"],"url":"https://movie.mtime.com/12231/","userComment":"","userCommentId":0,"userImg":"","userName":"","userRating":0,"video":{"count":2,"hightUrl":"https://vfx.mtime.cn/Video/2014/03/06/mp4/140306102651231568.mp4","img":"http://img31.mtime.cn/mg/2014/03/06/101952.22948087_235X132X4.jpg","title":"肖申克的救赎 预告片","url":"https://vfx.mtime.cn/Video/2014/03/06/mp4/140306102651231568_480.mp4","videoId":48021,"videoSourceType":1},"wantToSeeCount":7018,"wantToSeeCountShow":"7018","wantToSeeNumberShow":"","year":""}
* playlist : [{"isOpenByBrowser":true,"payRule":"VIP免费","picUrl":"http://img5.mtime.cn/mg/2018/05/10/163509.88712987.jpg","playSourceName":"优酷","playUrl":"https://v.youku.com/v_show/id_XMjgwNDkwNzE2.html?tpa=dW5pb25faWQ9MzAwMDExXzEwMDExMl8wMl8wMQ&refer=shiguangwangneirongjieru_bd.xuyang01_shiguangwang_434655","playUrlH5":"https://m.youku.com/video/id_XMjgwNDkwNzE2.html?tpa=dW5pb25faWQ9MzAwMDExXzEwMDExMl8wMl8wMQ&refer=shiguangwangneirongjieru_bd.xuyang01_shiguangwang_434655","playUrlPC":"https://v.youku.com/v_show/id_XMjgwNDkwNzE2.html?tpa=dW5pb25faWQ9MzAwMDExXzEwMDExMl8wMl8wMQ&refer=shiguangwangneirongjieru_bd.xuyang01_shiguangwang_434655","sourceId":"22227"},{"isOpenByBrowser":false,"payRule":"VIP免费","picUrl":"http://img5.mtime.cn/mg/2018/07/16/105243.30739031.jpg","playSourceName":"腾讯视频","playUrl":"https://m.v.qq.com/cover/1/1o29ui77e85grdr.html_m","playUrlH5":"https://m.v.qq.com/cover/1/1o29ui77e85grdr.html_m","playUrlPC":"https://v.qq.com/x/cover/1o29ui77e85grdr.html","sourceId":"51289"},{"isOpenByBrowser":true,"payRule":"VIP免费","picUrl":"http://img5.mtime.cn/mg/2018/11/05/160129.53337781.jpg","playSourceName":"搜狐视频","playUrl":"https://film.sohu.com/album/1008593.html","playUrlH5":"https://film.sohu.com/album/1008593.html","playUrlPC":"https://film.sohu.com/album/1008593.html","sourceId":"27038"}]
*/
private BasicBean basic;
private List<PlaylistBean> playlist;
public BasicBean getBasic() {
return basic;
}
public void setBasic(BasicBean basic) {
this.basic = basic;
}
public List<PlaylistBean> getPlaylist() {
return playlist;
}
public void setPlaylist(List<PlaylistBean> playlist) {
this.playlist = playlist;
}
public static class BasicBean {
/**
* actors : [{"actorId":893026,"img":"http://img31.mtime.cn/ph/2014/10/16/090902.78583267_1280X720X2.jpg","name":"蒂姆·罗宾斯","nameEn":"Tim Robbins","roleImg":"http://img31.mtime.cn/mg/2014/03/06/095801.37640458.jpg","roleName":"安迪"},{"actorId":914747,"img":"http://img31.mtime.cn/ph/2014/03/14/152553.24862330_1280X720X2.jpg","name":"摩根·弗里曼","nameEn":"Morgan Freeman","roleImg":"http://img31.mtime.cn/mg/2014/03/06/100012.83373613.jpg","roleName":"瑞德"},{"actorId":926465,"img":"http://img31.mtime.cn/ph/2014/03/14/154053.49621373_1280X720X2.jpg","name":"鲍勃·冈顿","nameEn":"Bob Gunton","roleImg":"http://img31.mtime.cn/mg/2014/03/06/095646.98460287.jpg","roleName":"典狱长诺顿"},{"actorId":985553,"img":"http://img31.mtime.cn/ph/2014/03/14/154053.46837866_1280X720X2.jpg","name":"詹姆斯·惠特摩","nameEn":"James Whitmore","roleImg":"http://img31.mtime.cn/mg/2014/03/06/095605.37095220.jpg","roleName":"布鲁克斯"},{"actorId":914101,"img":"http://img31.mtime.cn/ph/2016/09/04/195829.17155789_1280X720X2.jpg","name":"吉尔·贝罗斯","nameEn":"Gil Bellows","roleImg":"http://img31.mtime.cn/mg/2014/03/06/100103.16916600.jpg","roleName":"汤米"},{"actorId":923631,"img":"http://img31.mtime.cn/ph/2016/06/01/102317.53025734_1280X720X2.jpg","name":"克兰西·布朗","nameEn":"Clancy Brown","roleImg":"http://img31.mtime.cn/mg/2014/03/06/100238.27497603.jpg","roleName":"赫德利"},{"actorId":980579,"img":"http://img31.mtime.cn/ph/2014/03/14/154055.16364112_1280X720X2.jpg","name":"马克·罗斯顿","nameEn":"Mark Rolston","roleImg":"http://img31.mtime.cn/mg/2014/03/06/095335.27207572.jpg","roleName":"鲍格斯"},{"actorId":927604,"img":"http://img31.mtime.cn/ph/2014/03/14/154055.36105401_1280X720X2.jpg","name":"祖德·塞克利拉","nameEn":"Jude Ciccolella","roleImg":"","roleName":"Guard Mert"},{"actorId":913477,"img":"http://img31.mtime.cn/ph/2016/08/31/132306.87833827_1280X720X2.jpg","name":"耐德·巴拉米","nameEn":"Ned Bellamy","roleImg":"","roleName":"Guard Youngblood"},{"actorId":985544,"img":"http://img31.mtime.cn/ph/2014/03/14/154055.60171327_1280X720X2.jpg","name":"杰弗瑞·德穆恩","nameEn":"Jeffrey DeMunn","roleImg":"","roleName":"1946 D.A."},{"actorId":989568,"img":"http://img31.mtime.cn/ph/2016/06/02/110028.47578651_1280X720X2.jpg","name":"","nameEn":"Larry Brandenburg","roleImg":"","roleName":"Skeet"},{"actorId":1013991,"img":"http://img31.mtime.cn/ph/1991/1013991/1013991_1280X720X2.jpg","name":"","nameEn":"Neil Giuntoli","roleImg":"","roleName":"Jigger"},{"actorId":965338,"img":"http://img31.mtime.cn/ph/1338/965338/965338_1280X720X2.jpg","name":"","nameEn":"Brian Libby","roleImg":"","roleName":"Floyd"},{"actorId":981250,"img":"http://img31.mtime.cn/ph/2014/03/14/154056.66087533_1280X720X2.jpg","name":"大卫·普罗瓦尔","nameEn":"David Proval","roleImg":"","roleName":"Snooze"},{"actorId":900770,"img":"http://img31.mtime.cn/ph/2016/05/16/115011.71106045_1280X720X2.jpg","name":"保罗·迈克格莱恩","nameEn":"Paul McCrane","roleImg":"","roleName":"Guard Trout"},{"actorId":1019549,"img":"http://img31.mtime.cn/ph/1549/1019549/1019549_1280X720X2.jpg","name":"","nameEn":"Renee Blaine","roleImg":"","roleName":"Andy Dufresne's Wife"},{"actorId":1019551,"img":"http://img31.mtime.cn/ph/1551/1019551/1019551_1280X720X2.jpg","name":"","nameEn":"Scott Mann","roleImg":"","roleName":"Glenn Quentin"},{"actorId":1008767,"img":"http://img31.mtime.cn/ph/767/1008767/1008767_1280X720X2.jpg","name":"","nameEn":"John Horton","roleImg":"","roleName":"1946 Judge"},{"actorId":993986,"img":"http://img31.mtime.cn/ph/1986/993986/993986_1280X720X2.jpg","name":"","nameEn":"Alfonso Freeman","roleImg":"","roleName":"Fresh Fish Con"},{"actorId":970393,"img":"http://img31.mtime.cn/ph/393/970393/970393_1280X720X2.jpg","name":"","nameEn":"V.J. Foster","roleImg":"","roleName":"Hungry Fish Con"}]
* attitude : -1
* award : {"awardList":[{"festivalId":3,"nominateAwards":[{"awardName":"奥斯卡奖-最佳影片","festivalEventYear":"1995","persons":[{"nameCn":"","nameEn":"Niki Marvin","personId":1210720}],"sequenceNumber":67},{"awardName":"奥斯卡奖-最佳男主角","festivalEventYear":"1995","persons":[{"nameCn":"摩根·弗里曼","nameEn":"Morgan Freeman","personId":914747}],"sequenceNumber":67},{"awardName":"奥斯卡奖-最佳改编剧本","festivalEventYear":"1995","persons":[{"nameCn":"弗兰克·德拉邦特","nameEn":"Frank Darabont","personId":897895}],"sequenceNumber":67},{"awardName":"奥斯卡奖-最佳摄影","festivalEventYear":"1995","persons":[{"nameCn":"罗杰·狄金斯","nameEn":"Roger Deakins","personId":1162749}],"sequenceNumber":67},{"awardName":"奥斯卡奖-最佳音响","festivalEventYear":"1995","persons":[{"nameCn":"","nameEn":"Robert J. Litt","personId":1905448},{"nameCn":"","nameEn":"Elliot Tyson","personId":1905449},{"nameCn":"","nameEn":"Michael Herbick","personId":1905450},{"nameCn":"","nameEn":"Willie D. Burton","personId":1905315}],"sequenceNumber":67},{"awardName":"奥斯卡奖-最佳电影剪辑","festivalEventYear":"1995","persons":[{"nameCn":"","nameEn":"Richard Francis-Bruce","personId":1265229}],"sequenceNumber":67},{"awardName":"奥斯卡奖-最佳配乐","festivalEventYear":"1995","persons":[{"nameCn":"托马斯·纽曼","nameEn":"Thomas Newman","personId":1229462}],"sequenceNumber":67}],"nominateCount":7,"winAwards":[],"winCount":0},{"festivalId":15,"nominateAwards":[{"awardName":"电影类-剧情类最佳男主角","festivalEventYear":"1995","persons":[{"nameCn":"摩根·弗里曼","nameEn":"Morgan Freeman","personId":914747}],"sequenceNumber":52},{"awardName":"电影类-最佳编剧","festivalEventYear":"1995","persons":[{"nameCn":"弗兰克·德拉邦特","nameEn":"Frank Darabont","personId":897895}],"sequenceNumber":52}],"nominateCount":2,"winAwards":[],"winCount":0},{"festivalId":20,"nominateAwards":[],"nominateCount":0,"winAwards":[{"awardName":"最佳外语片","festivalEventYear":"1996","persons":[{"nameCn":"弗兰克·德拉邦特","nameEn":"Frank Darabont","personId":897895}],"sequenceNumber":19}],"winCount":1},{"festivalId":24,"nominateAwards":[{"awardName":"土星奖-最佳DVD/蓝光套装","festivalEventYear":"2016","persons":[],"sequenceNumber":42},{"awardName":"土星奖-最佳动作/冒险/惊悚电影","festivalEventYear":"1995","persons":[],"sequenceNumber":21},{"awardName":"土星奖-最佳编剧","festivalEventYear":"1995","persons":[{"nameCn":"弗兰克·德拉邦特","nameEn":"Frank Darabont","personId":897895}],"sequenceNumber":21}],"nominateCount":3,"winAwards":[],"winCount":0}],"totalNominateAward":12,"totalWinAward":1}
* bigImage :
* broadcastDes :
* commentSpecial :
* community : {}
* director : {"directorId":897895,"img":"http://img31.mtime.cn/ph/2016/01/28/094446.79677444_1280X720X2.jpg","name":"弗兰克·德拉邦特","nameEn":"Frank Darabont"}
* eggDesc :
* episodeCnt :
* festivals : [{"festivalId":3,"img":"http://img31.mtime.cn/mg/2014/02/24/144331.32490714.jpg","nameCn":"奥斯卡金像奖","nameEn":"Academy Awards","shortName":"奥斯卡"},{"festivalId":15,"img":"http://img31.mtime.cn/mg/2014/02/24/145735.69166081.jpg","nameCn":"美国金球奖","nameEn":"Golden Globes, USA","shortName":"金球奖"},{"festivalId":20,"img":"http://img31.mtime.cn/mg/2014/02/24/151023.22214126.jpg","nameCn":"日本电影学院奖","nameEn":"Awards of the Japanese Academy","shortName":"日本学院奖"},{"festivalId":24,"img":"http://img31.mtime.cn/mg/2014/02/24/170521.92061793.jpg","nameCn":"土星奖","nameEn":"Saturn Awards","shortName":"土星奖"}]
* hasSeenCount : 70586
* hasSeenCountShow : 7.1万
* hotRanking : -1
* img : http://img31.mtime.cn/mt/2014/03/07/123549.37376649_1280X720X2.jpg
* is3D : false
* isDMAX : false
* isEggHunt : false
* isFavorite : 0
* isFilter : false
* isIMAX : false
* isIMAX3D : false
* isTicket : false
* message : 该操作将清除您对该片的评分!是否确认?
* mins : 142分钟
* movieId : 12231
* movieStatus : 1
* name : 肖申克的救赎
* nameEn : The Shawshank Redemption
* overallRating : 9.2
* personCount : 126
* quizGame : {}
* ratingCount : 63437
* ratingCountShow : 6.3万
* releaseArea : 美国
* releaseDate : 19940923
* sensitiveStatus : false
* showCinemaCount : -1
* showDay : -1
* showtimeCount : -1
* stageImg : {"count":115,"list":[{"imgId":7371500,"imgUrl":"http://img5.mtime.cn/pi/2017/07/20/160045.85354294_1280X720X2.jpg"},{"imgId":359553,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094947.29158501_1280X720X2.jpg"},{"imgId":347482,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094947.15659323_1280X720X2.jpg"},{"imgId":401961,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094947.13521527_1280X720X2.jpg"},{"imgId":401969,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094947.23978212_1280X720X2.jpg"},{"imgId":1021326,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094948.60015849_1280X720X2.jpg"},{"imgId":1021314,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094948.93716471_1280X720X2.jpg"},{"imgId":1021315,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094948.83770271_1280X720X2.jpg"},{"imgId":1021316,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094948.31802439_1280X720X2.jpg"},{"imgId":1021317,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094948.59114656_1280X720X2.jpg"}]}
* story : 银行家安迪因被陷害杀害妻子与她的情夫,被判两个终身监禁。入狱后,影片便以黑人狱友瑞德冷静的旁白来推进。监狱数十年如一日的改造会使原本自由的心灵习惯了牢笼的禁锢,而这也将是安迪的命运?
* style : {"isLeadPage":0,"leadImg":"https://img2.mtime.cn/mg/.jpg","leadUrl":""}
* summary :
* totalNominateAward : 0
* totalWinAward : 0
* type : ["犯罪","剧情"]
* url : https://movie.mtime.com/12231/
* userComment :
* userCommentId : 0
* userImg :
* userName :
* userRating : 0
* video : {"count":2,"hightUrl":"https://vfx.mtime.cn/Video/2014/03/06/mp4/140306102651231568.mp4","img":"http://img31.mtime.cn/mg/2014/03/06/101952.22948087_235X132X4.jpg","title":"肖申克的救赎 预告片","url":"https://vfx.mtime.cn/Video/2014/03/06/mp4/140306102651231568_480.mp4","videoId":48021,"videoSourceType":1}
* wantToSeeCount : 7018
* wantToSeeCountShow : 7018
* wantToSeeNumberShow :
* year :
*/
private int attitude;
private AwardBean award;
private String bigImage;
private String broadcastDes;
private String commentSpecial;
private CommunityBean community;
private DirectorBean director;
private String eggDesc;
private String episodeCnt;
private int hasSeenCount;
private String hasSeenCountShow;
private int hotRanking;
private String img;
private boolean is3D;
private boolean isDMAX;
private boolean isEggHunt;
private int isFavorite;
private boolean isFilter;
private boolean isIMAX;
private boolean isIMAX3D;
private boolean isTicket;
private String message;
private String mins;
private int movieId;
private int movieStatus;
private String name;
private String nameEn;
private double overallRating;
private int personCount;
private QuizGameBean quizGame;
private int ratingCount;
private String ratingCountShow;
private String releaseArea;
private String releaseDate;
private boolean sensitiveStatus;
private int showCinemaCount;
private int showDay;
private int showtimeCount;
private StageImgBean stageImg;
private String story;
private StyleBean style;
private String summary;
private int totalNominateAward;
private int totalWinAward;
private String url;
private String userComment;
private int userCommentId;
private String userImg;
private String userName;
private int userRating;
private VideoBean video;
private int wantToSeeCount;
private String wantToSeeCountShow;
private String wantToSeeNumberShow;
private String year;
private List<ActorsBean> actors;
private List<FestivalsBean> festivals;
private List<String> type;
public int getAttitude() {
return attitude;
}
public void setAttitude(int attitude) {
this.attitude = attitude;
}
public AwardBean getAward() {
return award;
}
public void setAward(AwardBean award) {
this.award = award;
}
public String getBigImage() {
return bigImage;
}
public void setBigImage(String bigImage) {
this.bigImage = bigImage;
}
public String getBroadcastDes() {
return broadcastDes;
}
public void setBroadcastDes(String broadcastDes) {
this.broadcastDes = broadcastDes;
}
public String getCommentSpecial() {
return commentSpecial;
}
public void setCommentSpecial(String commentSpecial) {
this.commentSpecial = commentSpecial;
}
public CommunityBean getCommunity() {
return community;
}
public void setCommunity(CommunityBean community) {
this.community = community;
}
public DirectorBean getDirector() {
return director;
}
public void setDirector(DirectorBean director) {
this.director = director;
}
public String getEggDesc() {
return eggDesc;
}
public void setEggDesc(String eggDesc) {
this.eggDesc = eggDesc;
}
public String getEpisodeCnt() {
return episodeCnt;
}
public void setEpisodeCnt(String episodeCnt) {
this.episodeCnt = episodeCnt;
}
public int getHasSeenCount() {
return hasSeenCount;
}
public void setHasSeenCount(int hasSeenCount) {
this.hasSeenCount = hasSeenCount;
}
public String getHasSeenCountShow() {
return hasSeenCountShow;
}
public void setHasSeenCountShow(String hasSeenCountShow) {
this.hasSeenCountShow = hasSeenCountShow;
}
public int getHotRanking() {
return hotRanking;
}
public void setHotRanking(int hotRanking) {
this.hotRanking = hotRanking;
}
public String getImg() {
return img;
}
public void setImg(String img) {
this.img = img;
}
public boolean isIs3D() {
return is3D;
}
public void setIs3D(boolean is3D) {
this.is3D = is3D;
}
public boolean isIsDMAX() {
return isDMAX;
}
public void setIsDMAX(boolean isDMAX) {
this.isDMAX = isDMAX;
}
public boolean isIsEggHunt() {
return isEggHunt;
}
public void setIsEggHunt(boolean isEggHunt) {
this.isEggHunt = isEggHunt;
}
public int getIsFavorite() {
return isFavorite;
}
public void setIsFavorite(int isFavorite) {
this.isFavorite = isFavorite;
}
public boolean isIsFilter() {
return isFilter;
}
public void setIsFilter(boolean isFilter) {
this.isFilter = isFilter;
}
public boolean isIsIMAX() {
return isIMAX;
}
public void setIsIMAX(boolean isIMAX) {
this.isIMAX = isIMAX;
}
public boolean isIsIMAX3D() {
return isIMAX3D;
}
public void setIsIMAX3D(boolean isIMAX3D) {
this.isIMAX3D = isIMAX3D;
}
public boolean isIsTicket() {
return isTicket;
}
public void setIsTicket(boolean isTicket) {
this.isTicket = isTicket;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getMins() {
return mins;
}
public void setMins(String mins) {
this.mins = mins;
}
public int getMovieId() {
return movieId;
}
public void setMovieId(int movieId) {
this.movieId = movieId;
}
public int getMovieStatus() {
return movieStatus;
}
public void setMovieStatus(int movieStatus) {
this.movieStatus = movieStatus;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getNameEn() {
return nameEn;
}
public void setNameEn(String nameEn) {
this.nameEn = nameEn;
}
public double getOverallRating() {
return overallRating;
}
public void setOverallRating(double overallRating) {
this.overallRating = overallRating;
}
public int getPersonCount() {
return personCount;
}
public void setPersonCount(int personCount) {
this.personCount = personCount;
}
public QuizGameBean getQuizGame() {
return quizGame;
}
public void setQuizGame(QuizGameBean quizGame) {
this.quizGame = quizGame;
}
public int getRatingCount() {
return ratingCount;
}
public void setRatingCount(int ratingCount) {
this.ratingCount = ratingCount;
}
public String getRatingCountShow() {
return ratingCountShow;
}
public void setRatingCountShow(String ratingCountShow) {
this.ratingCountShow = ratingCountShow;
}
public String getReleaseArea() {
return releaseArea;
}
public void setReleaseArea(String releaseArea) {
this.releaseArea = releaseArea;
}
public String getReleaseDate() {
return releaseDate;
}
public void setReleaseDate(String releaseDate) {
this.releaseDate = releaseDate;
}
public boolean isSensitiveStatus() {
return sensitiveStatus;
}
public void setSensitiveStatus(boolean sensitiveStatus) {
this.sensitiveStatus = sensitiveStatus;
}
public int getShowCinemaCount() {
return showCinemaCount;
}
public void setShowCinemaCount(int showCinemaCount) {
this.showCinemaCount = showCinemaCount;
}
public int getShowDay() {
return showDay;
}
public void setShowDay(int showDay) {
this.showDay = showDay;
}
public int getShowtimeCount() {
return showtimeCount;
}
public void setShowtimeCount(int showtimeCount) {
this.showtimeCount = showtimeCount;
}
public StageImgBean getStageImg() {
return stageImg;
}
public void setStageImg(StageImgBean stageImg) {
this.stageImg = stageImg;
}
public String getStory() {
return story;
}
public void setStory(String story) {
this.story = story;
}
public StyleBean getStyle() {
return style;
}
public void setStyle(StyleBean style) {
this.style = style;
}
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
public int getTotalNominateAward() {
return totalNominateAward;
}
public void setTotalNominateAward(int totalNominateAward) {
this.totalNominateAward = totalNominateAward;
}
public int getTotalWinAward() {
return totalWinAward;
}
public void setTotalWinAward(int totalWinAward) {
this.totalWinAward = totalWinAward;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getUserComment() {
return userComment;
}
public void setUserComment(String userComment) {
this.userComment = userComment;
}
public int getUserCommentId() {
return userCommentId;
}
public void setUserCommentId(int userCommentId) {
this.userCommentId = userCommentId;
}
public String getUserImg() {
return userImg;
}
public void setUserImg(String userImg) {
this.userImg = userImg;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public int getUserRating() {
return userRating;
}
public void setUserRating(int userRating) {
this.userRating = userRating;
}
public VideoBean getVideo() {
return video;
}
public void setVideo(VideoBean video) {
this.video = video;
}
public int getWantToSeeCount() {
return wantToSeeCount;
}
public void setWantToSeeCount(int wantToSeeCount) {
this.wantToSeeCount = wantToSeeCount;
}
public String getWantToSeeCountShow() {
return wantToSeeCountShow;
}
public void setWantToSeeCountShow(String wantToSeeCountShow) {
this.wantToSeeCountShow = wantToSeeCountShow;
}
public String getWantToSeeNumberShow() {
return wantToSeeNumberShow;
}
public void setWantToSeeNumberShow(String wantToSeeNumberShow) {
this.wantToSeeNumberShow = wantToSeeNumberShow;
}
public String getYear() {
return year;
}
public void setYear(String year) {
this.year = year;
}
public List<ActorsBean> getActors() {
return actors;
}
public void setActors(List<ActorsBean> actors) {
this.actors = actors;
}
public List<FestivalsBean> getFestivals() {
return festivals;
}
public void setFestivals(List<FestivalsBean> festivals) {
this.festivals = festivals;
}
public List<String> getType() {
return type;
}
public void setType(List<String> type) {
this.type = type;
}
public static class AwardBean {
public static class AwardListBean {
public static class NominateAwardsBean {
public static class PersonsBean {
}
}
}
}
public static class CommunityBean {
}
public static class DirectorBean {
String name;
String img;
String nameEn;
public String getImg() {
return img;
}
public void setImg(String img) {
this.img = img;
}
public String getNameEn() {
return nameEn;
}
public void setNameEn(String nameEn) {
this.nameEn = nameEn;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
public static class QuizGameBean {
}
public static class StageImgBean {
/**
* count : 115
* list : [{"imgId":7371500,"imgUrl":"http://img5.mtime.cn/pi/2017/07/20/160045.85354294_1280X720X2.jpg"},{"imgId":359553,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094947.29158501_1280X720X2.jpg"},{"imgId":347482,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094947.15659323_1280X720X2.jpg"},{"imgId":401961,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094947.13521527_1280X720X2.jpg"},{"imgId":401969,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094947.23978212_1280X720X2.jpg"},{"imgId":1021326,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094948.60015849_1280X720X2.jpg"},{"imgId":1021314,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094948.93716471_1280X720X2.jpg"},{"imgId":1021315,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094948.83770271_1280X720X2.jpg"},{"imgId":1021316,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094948.31802439_1280X720X2.jpg"},{"imgId":1021317,"imgUrl":"http://img31.mtime.cn/pi/2014/03/06/094948.59114656_1280X720X2.jpg"}]
*/
private int count;
private List<ListBean> list;
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
public List<ListBean> getList() {
return list;
}
public void setList(List<ListBean> list) {
this.list = list;
}
public static class ListBean {
/**
* imgId : 7371500
* imgUrl : http://img5.mtime.cn/pi/2017/07/20/160045.85354294_1280X720X2.jpg
*/
private int imgId;
private String imgUrl;
public int getImgId() {
return imgId;
}
public void setImgId(int imgId) {
this.imgId = imgId;
}
public String getImgUrl() {
return imgUrl;
}
public void setImgUrl(String imgUrl) {
this.imgUrl = imgUrl;
}
}
}
public static class StyleBean {
/**
* isLeadPage : 0
* leadImg : https://img2.mtime.cn/mg/.jpg
* leadUrl :
*/
private int isLeadPage;
private String leadImg;
private String leadUrl;
public int getIsLeadPage() {
return isLeadPage;
}
public void setIsLeadPage(int isLeadPage) {
this.isLeadPage = isLeadPage;
}
public String getLeadImg() {
return leadImg;
}
public void setLeadImg(String leadImg) {
this.leadImg = leadImg;
}
public String getLeadUrl() {
return leadUrl;
}
public void setLeadUrl(String leadUrl) {
this.leadUrl = leadUrl;
}
}
public static class VideoBean {
/**
* count : 2
* hightUrl : https://vfx.mtime.cn/Video/2014/03/06/mp4/140306102651231568.mp4
* img : http://img31.mtime.cn/mg/2014/03/06/101952.22948087_235X132X4.jpg
* title : 肖申克的救赎 预告片
* url : https://vfx.mtime.cn/Video/2014/03/06/mp4/140306102651231568_480.mp4
* videoId : 48021
* videoSourceType : 1
*/
private int count;
private String hightUrl;
private String img;
private String title;
private String url;
private int videoId;
private int videoSourceType;
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
public String getHightUrl() {
return hightUrl;
}
public void setHightUrl(String hightUrl) {
this.hightUrl = hightUrl;
}
public String getImg() {
return img;
}
public void setImg(String img) {
this.img = img;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public int getVideoId() {
return videoId;
}
public void setVideoId(int videoId) {
this.videoId = videoId;
}
public int getVideoSourceType() {
return videoSourceType;
}
public void setVideoSourceType(int videoSourceType) {
this.videoSourceType = videoSourceType;
}
}
public static class ActorsBean {
/**
* actorId : 893026
* img : http://img31.mtime.cn/ph/2014/10/16/090902.78583267_1280X720X2.jpg
* name : 蒂姆·罗宾斯
* nameEn : Tim Robbins
* roleImg : http://img31.mtime.cn/mg/2014/03/06/095801.37640458.jpg
* roleName : 安迪
*/
private int actorId;
private String img;
private String name;
private String nameEn;
private String roleImg;
private String roleName;
public int getActorId() {
return actorId;
}
public void setActorId(int actorId) {
this.actorId = actorId;
}
public String getImg() {
return img;
}
public void setImg(String img) {
this.img = img;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getNameEn() {
return nameEn;
}
public void setNameEn(String nameEn) {
this.nameEn = nameEn;
}
public String getRoleImg() {
return roleImg;
}
public void setRoleImg(String roleImg) {
this.roleImg = roleImg;
}
public String getRoleName() {
return roleName;
}
public void setRoleName(String roleName) {
this.roleName = roleName;
}
}
public static class FestivalsBean {
/**
* festivalId : 3
* img : http://img31.mtime.cn/mg/2014/02/24/144331.32490714.jpg
* nameCn : 奥斯卡金像奖
* nameEn : Academy Awards
* shortName : 奥斯卡
*/
private int festivalId;
private String img;
private String nameCn;
private String nameEn;
private String shortName;
public int getFestivalId() {
return festivalId;
}
public void setFestivalId(int festivalId) {
this.festivalId = festivalId;
}
public String getImg() {
return img;
}
public void setImg(String img) {
this.img = img;
}
public String getNameCn() {
return nameCn;
}
public void setNameCn(String nameCn) {
this.nameCn = nameCn;
}
public String getNameEn() {
return nameEn;
}
public void setNameEn(String nameEn) {
this.nameEn = nameEn;
}
public String getShortName() {
return shortName;
}
public void setShortName(String shortName) {
this.shortName = shortName;
}
}
}
public static class PlaylistBean implements Parcelable {
/**
* isOpenByBrowser : true
* payRule : VIP免费
* picUrl : http://img5.mtime.cn/mg/2018/05/10/163509.88712987.jpg
* playSourceName : 优酷
* playUrl : https://v.youku.com/v_show/id_XMjgwNDkwNzE2.html?tpa=dW5pb25faWQ9MzAwMDExXzEwMDExMl8wMl8wMQ&refer=shiguangwangneirongjieru_bd.xuyang01_shiguangwang_434655
* playUrlH5 : https://m.youku.com/video/id_XMjgwNDkwNzE2.html?tpa=dW5pb25faWQ9MzAwMDExXzEwMDExMl8wMl8wMQ&refer=shiguangwangneirongjieru_bd.xuyang01_shiguangwang_434655
* playUrlPC : https://v.youku.com/v_show/id_XMjgwNDkwNzE2.html?tpa=dW5pb25faWQ9MzAwMDExXzEwMDExMl8wMl8wMQ&refer=shiguangwangneirongjieru_bd.xuyang01_shiguangwang_434655
* sourceId : 22227
*/
private boolean isOpenByBrowser;
private String payRule;
private String picUrl;
private String playSourceName;
private String playUrl;
private String playUrlH5;
private String playUrlPC;
private String sourceId;
protected PlaylistBean(Parcel in) {
isOpenByBrowser = in.readByte() != 0;
payRule = in.readString();
picUrl = in.readString();
playSourceName = in.readString();
playUrl = in.readString();
playUrlH5 = in.readString();
playUrlPC = in.readString();
sourceId = in.readString();
}
public static final Creator<PlaylistBean> CREATOR = new Creator<PlaylistBean>() {
@Override
public PlaylistBean createFromParcel(Parcel in) {
return new PlaylistBean(in);
}
@Override
public PlaylistBean[] newArray(int size) {
return new PlaylistBean[size];
}
};
public boolean isIsOpenByBrowser() {
return isOpenByBrowser;
}
public void setIsOpenByBrowser(boolean isOpenByBrowser) {
this.isOpenByBrowser = isOpenByBrowser;
}
public String getPayRule() {
return payRule;
}
public void setPayRule(String payRule) {
this.payRule = payRule;
}
public String getPicUrl() {
return picUrl;
}
public void setPicUrl(String picUrl) {
this.picUrl = picUrl;
}
public String getPlaySourceName() {
return playSourceName;
}
public void setPlaySourceName(String playSourceName) {
this.playSourceName = playSourceName;
}
public String getPlayUrl() {
return playUrl;
}
public void setPlayUrl(String playUrl) {
this.playUrl = playUrl;
}
public String getPlayUrlH5() {
return playUrlH5;
}
public void setPlayUrlH5(String playUrlH5) {
this.playUrlH5 = playUrlH5;
}
public String getPlayUrlPC() {
return playUrlPC;
}
public void setPlayUrlPC(String playUrlPC) {
this.playUrlPC = playUrlPC;
}
public String getSourceId() {
return sourceId;
}
public void setSourceId(String sourceId) {
this.sourceId = sourceId;
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeByte((byte) (isOpenByBrowser ? 1 : 0));
parcel.writeString(payRule);
parcel.writeString(picUrl);
parcel.writeString(playSourceName);
parcel.writeString(playUrl);
parcel.writeString(playUrlH5);
parcel.writeString(playUrlPC);
parcel.writeString(sourceId);
}
}
/**
* code : 1
* msg : 成功
* showMsg :
*
*
*
*/
// private BasicBean basic;
// private BoxOfficeBean boxOffice;
// private LiveBean live;
// private String playState;
// private RelatedBean related;
// private List<PlaylistBean> playlist;
//
//
// public BasicBean getBasic() {
// return basic;
// }
//
// public void setBasic(BasicBean basic) {
// this.basic = basic;
// }
//
// public BoxOfficeBean getBoxOffice() {
// return boxOffice;
// }
//
// public void setBoxOffice(BoxOfficeBean boxOffice) {
// this.boxOffice = boxOffice;
// }
//
// public LiveBean getLive() {
// return live;
// }
//
// public void setLive(LiveBean live) {
// this.live = live;
// }
//
// public String getPlayState() {
// return playState;
// }
//
// public void setPlayState(String playState) {
// this.playState = playState;
// }
//
// public RelatedBean getRelated() {
// return related;
// }
//
// public void setRelated(RelatedBean related) {
// this.related = related;
// }
//
// public List<PlaylistBean> getPlaylist() {
// return playlist;
// }
//
// public void setPlaylist(List<PlaylistBean> playlist) {
// this.playlist = playlist;
// }
//
// public static class AdvertisementBean {
// /**
// * advList : []
// * count : 0
// * error :
// * success : true
// */
//
// private int count;
// private String error;
// private boolean success;
//
//
// public int getCount() {
// return count;
// }
//
// public void setCount(int count) {
// this.count = count;
// }
//
// public String getError() {
// return error;
// }
//
// public void setError(String error) {
// this.error = error;
// }
//
// public boolean isSuccess() {
// return success;
// }
//
// public void setSuccess(boolean success) {
// this.success = success;
// }
//
//
// }
//
// public static class BasicBean {
// /**
// * actors : [{"actorId":1248675,"img":"http://img5.mtime.cn/ph/2018/08/20/193919.93463030_1280X720X2.jpg","name":"徐峥","nameEn":"Zheng Xu","roleImg":"","roleName":"徐伊万"},{"actorId":1095207,"img":"http://img5.mtime.cn/ph/2019/12/21/170305.30791942_1280X720X2.jpg","name":"黄梅莹","nameEn":"Meiying Huang","roleImg":"","roleName":"卢小花"},{"actorId":922623,"img":"http://img5.mtime.cn/ph/2019/04/16/170747.49708143_1280X720X2.jpg","name":"袁泉","nameEn":"Quan Yuan","roleImg":"","roleName":"张璐"},{"actorId":2341776,"img":"http://img5.mtime.cn/ph/2020/01/08/175737.86462170_1280X720X2.jpg","name":"贾冰","nameEn":"","roleImg":"","roleName":"贾建国"},{"actorId":1308405,"img":"http://img31.mtime.cn/ph/2016/08/27/141509.72105370_1280X720X2.jpg","name":"郭京飞","nameEn":"Jingfei Guo","roleImg":"","roleName":""},{"actorId":1993475,"img":"http://img31.mtime.cn/ph/2014/09/26/105617.72460110_1280X720X2.jpg","name":"沈腾","nameEn":"Teng Shen","roleImg":"","roleName":""},{"actorId":1796360,"img":"http://img5.mtime.cn/ph/2019/10/16/143832.32108686_1280X720X2.jpg","name":"陈奇","nameEn":"","roleImg":"","roleName":""},{"actorId":1882280,"img":"http://img31.mtime.cn/ph/2016/04/11/162936.72983445_1280X720X2.jpg","name":"宋小宝","nameEn":"Xiaobao Song","roleImg":"","roleName":""},{"actorId":2189621,"img":"http://img5.mtime.cn/ph/2019/02/12/152017.32062448_1280X720X2.jpg","name":"黄景瑜","nameEn":"Johnny Huang","roleImg":"","roleName":"司机"},{"actorId":1406610,"img":"http://img31.mtime.cn/ph/2014/07/29/093613.66358817_1280X720X2.jpg","name":"高以翔","nameEn":"Godfrey Kao","roleImg":"","roleName":"律师"},{"actorId":2278714,"img":"http://img31.mtime.cn/ph/714/2278714/2278714_1280X720X2.jpg","name":"欧丽娅","nameEn":"","roleImg":"","roleName":""}]
// * attitude : -1
// * award : {"awardList":[],"totalNominateAward":0,"totalWinAward":0}
// * bigImage :
// * broadcastDes :
// * commentSpecial : 徐峥与母亲的俄罗斯囧途
// * community : {}
// * director : {"directorId":1248675,"img":"http://img5.mtime.cn/ph/2018/08/20/193919.93463030_1280X720X2.jpg","name":"徐峥","nameEn":"Zheng Xu"}
// * eggDesc : 演职员表开始后有2个彩蛋
// * episodeCnt :
// * festivals : []
// * hasSeenCount : 1562
// * hasSeenCountShow : 1562
// * hotRanking : -1
// * img : http://img5.mtime.cn/mt/2020/01/13/144906.94615802_1280X720X2.jpg
// * is3D : false
// * isDMAX : true
// * isEggHunt : true
// * isFavorite : 0
// * isFilter : false
// * isIMAX : true
// * isIMAX3D : false
// * isTicket : false
// * message : 该操作将清除您对该片的评分!是否确认?
// * mins : 126分钟
// * movieId : 262895
// * movieStatus : 1
// * name : 囧妈
// * nameEn : Lost In Russia
// * overallRating : 6.3
// * personCount : 15
// * quizGame : {}
// * ratingCount : 1497
// * ratingCountShow : 1497
// * releaseArea : 中国
// * releaseDate : 20200125
// * sensitiveStatus : false
// * showCinemaCount : -1
// * showDay : -1
// * showtimeCount : -1
// * stageImg : {"count":77,"list":[{"imgId":7571861,"imgUrl":"http://img5.mtime.cn/pi/2019/10/14/101627.33725089_1280X720X2.jpg"},{"imgId":7572069,"imgUrl":"http://img5.mtime.cn/pi/2019/10/16/103657.50348698_1280X720X2.jpg"},{"imgId":7572070,"imgUrl":"http://img5.mtime.cn/pi/2019/10/16/103657.56830644_1280X720X2.jpg"},{"imgId":7572071,"imgUrl":"http://img5.mtime.cn/pi/2019/10/16/103657.65843950_1280X720X2.jpg"},{"imgId":7572072,"imgUrl":"http://img5.mtime.cn/pi/2019/10/16/103657.58198936_1280X720X2.jpg"},{"imgId":7574121,"imgUrl":"http://img5.mtime.cn/pi/2019/11/04/102336.67456279_1280X720X2.jpg"},{"imgId":7574122,"imgUrl":"http://img5.mtime.cn/pi/2019/11/04/102336.82135620_1280X720X2.jpg"},{"imgId":7574123,"imgUrl":"http://img5.mtime.cn/pi/2019/11/04/102336.44796716_1280X720X2.jpg"},{"imgId":7575680,"imgUrl":"http://img5.mtime.cn/pi/2019/11/13/183301.51605333_1280X720X2.jpg"},{"imgId":7575681,"imgUrl":"http://img5.mtime.cn/pi/2019/11/13/183301.53055574_1280X720X2.jpg"}]}
// * story : 小老板伊万缠身于商业纠纷,却意外同母亲坐上了开往俄罗斯的火车。在旅途中,他和母亲发生激烈冲突,同时还要和竞争对手斗智斗勇。为了最终抵达莫斯科,他不得不和母亲共同克服难关,并面对家庭生活中一直所逃避的问题。
// * style : {"isLeadPage":0,"leadImg":"https://img2.mtime.cn/mg/.jpg","leadUrl":""}
// * summary :
// * totalNominateAward : 0
// * totalWinAward : 0
// * type : ["剧情","喜剧"]
// * url : https://movie.mtime.com/262895/
// * userComment :
// * userCommentId : 0
// * userImg :
// * userName :
// * userRating : 0
// * video : {"count":10,"hightUrl":"https://vfx.mtime.cn/Video/2019/10/16/mp4/191016114345154729.mp4","img":"http://img5.mtime.cn/mg/2019/10/16/114454.75574291_235X132X4.jpg","title":"囧妈 先导预告片","url":"https://vfx.mtime.cn/Video/2019/10/16/mp4/191016114345154729_480.mp4","videoId":76626,"videoSourceType":1}
// * wantToSeeCount : 2628
// * wantToSeeCountShow : 2628
// * wantToSeeNumberShow : 2020年我想看的第156部电影
// * year :
// */
//
// private int attitude;
// private AwardBean award;
// private String bigImage;
// private String broadcastDes;
// private String commentSpecial;
// private CommunityBean community;
// private DirectorBean director;
// private String eggDesc;
// private String episodeCnt;
// private int hasSeenCount;
// private String hasSeenCountShow;
// private int hotRanking;
// private String img;
// private boolean is3D;
// private boolean isDMAX;
// private boolean isEggHunt;
// private int isFavorite;
// private boolean isFilter;
// private boolean isIMAX;
// private boolean isIMAX3D;
// private boolean isTicket;
// private String message;
// private String mins;
// private int movieId;
// private int movieStatus;
// private String name;
// private String nameEn;
// private double overallRating;
// private int personCount;
// private QuizGameBean quizGame;
// private int ratingCount;
// private String ratingCountShow;
// private String releaseArea;
// private String releaseDate;
// private boolean sensitiveStatus;
// private int showCinemaCount;
// private int showDay;
// private int showtimeCount;
// private StageImgBean stageImg;
// private String story;
// private StyleBean style;
// private String summary;
// private int totalNominateAward;
// private int totalWinAward;
// private String url;
// private String userComment;
// private int userCommentId;
// private String userImg;
// private String userName;
// private int userRating;
// private VideoBean video;
// private int wantToSeeCount;
// private String wantToSeeCountShow;
// private String wantToSeeNumberShow;
// private String year;
// private List<ActorsBean> actors;
//
// private List<String> type;
//
// public int getAttitude() {
// return attitude;
// }
//
// public void setAttitude(int attitude) {
// this.attitude = attitude;
// }
//
// public AwardBean getAward() {
// return award;
// }
//
// public void setAward(AwardBean award) {
// this.award = award;
// }
//
// public String getBigImage() {
// return bigImage;
// }
//
// public void setBigImage(String bigImage) {
// this.bigImage = bigImage;
// }
//
// public String getBroadcastDes() {
// return broadcastDes;
// }
//
// public void setBroadcastDes(String broadcastDes) {
// this.broadcastDes = broadcastDes;
// }
//
// public String getCommentSpecial() {
// return commentSpecial;
// }
//
// public void setCommentSpecial(String commentSpecial) {
// this.commentSpecial = commentSpecial;
// }
//
// public CommunityBean getCommunity() {
// return community;
// }
//
// public void setCommunity(CommunityBean community) {
// this.community = community;
// }
//
// public DirectorBean getDirector() {
// return director;
// }
//
// public void setDirector(DirectorBean director) {
// this.director = director;
// }
//
// public String getEggDesc() {
// return eggDesc;
// }
//
// public void setEggDesc(String eggDesc) {
// this.eggDesc = eggDesc;
// }
//
// public String getEpisodeCnt() {
// return episodeCnt;
// }
//
// public void setEpisodeCnt(String episodeCnt) {
// this.episodeCnt = episodeCnt;
// }
//
// public int getHasSeenCount() {
// return hasSeenCount;
// }
//
// public void setHasSeenCount(int hasSeenCount) {
// this.hasSeenCount = hasSeenCount;
// }
//
// public String getHasSeenCountShow() {
// return hasSeenCountShow;
// }
//
// public void setHasSeenCountShow(String hasSeenCountShow) {
// this.hasSeenCountShow = hasSeenCountShow;
// }
//
// public int getHotRanking() {
// return hotRanking;
// }
//
// public void setHotRanking(int hotRanking) {
// this.hotRanking = hotRanking;
// }
//
// public String getImg() {
// return img;
// }
//
// public void setImg(String img) {
// this.img = img;
// }
//
// public boolean isIs3D() {
// return is3D;
// }
//
// public void setIs3D(boolean is3D) {
// this.is3D = is3D;
// }
//
// public boolean isIsDMAX() {
// return isDMAX;
// }
//
// public void setIsDMAX(boolean isDMAX) {
// this.isDMAX = isDMAX;
// }
//
// public boolean isIsEggHunt() {
// return isEggHunt;
// }
//
// public void setIsEggHunt(boolean isEggHunt) {
// this.isEggHunt = isEggHunt;
// }
//
// public int getIsFavorite() {
// return isFavorite;
// }
//
// public void setIsFavorite(int isFavorite) {
// this.isFavorite = isFavorite;
// }
//
// public boolean isIsFilter() {
// return isFilter;
// }
//
// public void setIsFilter(boolean isFilter) {
// this.isFilter = isFilter;
// }
//
// public boolean isIsIMAX() {
// return isIMAX;
// }
//
// public void setIsIMAX(boolean isIMAX) {
// this.isIMAX = isIMAX;
// }
//
// public boolean isIsIMAX3D() {
// return isIMAX3D;
// }
//
// public void setIsIMAX3D(boolean isIMAX3D) {
// this.isIMAX3D = isIMAX3D;
// }
//
// public boolean isIsTicket() {
// return isTicket;
// }
//
// public void setIsTicket(boolean isTicket) {
// this.isTicket = isTicket;
// }
//
// public String getMessage() {
// return message;
// }
//
// public void setMessage(String message) {
// this.message = message;
// }
//
// public String getMins() {
// return mins;
// }
//
// public void setMins(String mins) {
// this.mins = mins;
// }
//
// public int getMovieId() {
// return movieId;
// }
//
// public void setMovieId(int movieId) {
// this.movieId = movieId;
// }
//
// public int getMovieStatus() {
// return movieStatus;
// }
//
// public void setMovieStatus(int movieStatus) {
// this.movieStatus = movieStatus;
// }
//
// public String getName() {
// return name;
// }
//
// public void setName(String name) {
// this.name = name;
// }
//
// public String getNameEn() {
// return nameEn;
// }
//
// public void setNameEn(String nameEn) {
// this.nameEn = nameEn;
// }
//
// public double getOverallRating() {
// return overallRating;
// }
//
// public void setOverallRating(double overallRating) {
// this.overallRating = overallRating;
// }
//
// public int getPersonCount() {
// return personCount;
// }
//
// public void setPersonCount(int personCount) {
// this.personCount = personCount;
// }
//
// public QuizGameBean getQuizGame() {
// return quizGame;
// }
//
// public void setQuizGame(QuizGameBean quizGame) {
// this.quizGame = quizGame;
// }
//
// public int getRatingCount() {
// return ratingCount;
// }
//
// public void setRatingCount(int ratingCount) {
// this.ratingCount = ratingCount;
// }
//
// public String getRatingCountShow() {
// return ratingCountShow;
// }
//
// public void setRatingCountShow(String ratingCountShow) {
// this.ratingCountShow = ratingCountShow;
// }
//
// public String getReleaseArea() {
// return releaseArea;
// }
//
// public void setReleaseArea(String releaseArea) {
// this.releaseArea = releaseArea;
// }
//
// public String getReleaseDate() {
// return releaseDate;
// }
//
// public void setReleaseDate(String releaseDate) {
// this.releaseDate = releaseDate;
// }
//
// public boolean isSensitiveStatus() {
// return sensitiveStatus;
// }
//
// public void setSensitiveStatus(boolean sensitiveStatus) {
// this.sensitiveStatus = sensitiveStatus;
// }
//
// public int getShowCinemaCount() {
// return showCinemaCount;
// }
//
// public void setShowCinemaCount(int showCinemaCount) {
// this.showCinemaCount = showCinemaCount;
// }
//
// public int getShowDay() {
// return showDay;
// }
//
// public void setShowDay(int showDay) {
// this.showDay = showDay;
// }
//
// public int getShowtimeCount() {
// return showtimeCount;
// }
//
// public void setShowtimeCount(int showtimeCount) {
// this.showtimeCount = showtimeCount;
// }
//
// public StageImgBean getStageImg() {
// return stageImg;
// }
//
// public void setStageImg(StageImgBean stageImg) {
// this.stageImg = stageImg;
// }
//
// public String getStory() {
// return story;
// }
//
// public void setStory(String story) {
// this.story = story;
// }
//
// public StyleBean getStyle() {
// return style;
// }
//
// public void setStyle(StyleBean style) {
// this.style = style;
// }
//
// public String getSummary() {
// return summary;
// }
//
// public void setSummary(String summary) {
// this.summary = summary;
// }
//
// public int getTotalNominateAward() {
// return totalNominateAward;
// }
//
// public void setTotalNominateAward(int totalNominateAward) {
// this.totalNominateAward = totalNominateAward;
// }
//
// public int getTotalWinAward() {
// return totalWinAward;
// }
//
// public void setTotalWinAward(int totalWinAward) {
// this.totalWinAward = totalWinAward;
// }
//
// public String getUrl() {
// return url;
// }
//
// public void setUrl(String url) {
// this.url = url;
// }
//
// public String getUserComment() {
// return userComment;
// }
//
// public void setUserComment(String userComment) {
// this.userComment = userComment;
// }
//
// public int getUserCommentId() {
// return userCommentId;
// }
//
// public void setUserCommentId(int userCommentId) {
// this.userCommentId = userCommentId;
// }
//
// public String getUserImg() {
// return userImg;
// }
//
// public void setUserImg(String userImg) {
// this.userImg = userImg;
// }
//
// public String getUserName() {
// return userName;
// }
//
// public void setUserName(String userName) {
// this.userName = userName;
// }
//
// public int getUserRating() {
// return userRating;
// }
//
// public void setUserRating(int userRating) {
// this.userRating = userRating;
// }
//
// public VideoBean getVideo() {
// return video;
// }
//
// public void setVideo(VideoBean video) {
// this.video = video;
// }
//
// public int getWantToSeeCount() {
// return wantToSeeCount;
// }
//
// public void setWantToSeeCount(int wantToSeeCount) {
// this.wantToSeeCount = wantToSeeCount;
// }
//
// public String getWantToSeeCountShow() {
// return wantToSeeCountShow;
// }
//
// public void setWantToSeeCountShow(String wantToSeeCountShow) {
// this.wantToSeeCountShow = wantToSeeCountShow;
// }
//
// public String getWantToSeeNumberShow() {
// return wantToSeeNumberShow;
// }
//
// public void setWantToSeeNumberShow(String wantToSeeNumberShow) {
// this.wantToSeeNumberShow = wantToSeeNumberShow;
// }
//
// public String getYear() {
// return year;
// }
//
// public void setYear(String year) {
// this.year = year;
// }
//
// public List<ActorsBean> getActors() {
// return actors;
// }
//
// public void setActors(List<ActorsBean> actors) {
// this.actors = actors;
// }
//
//
//
// public List<String> getType() {
// return type;
// }
//
// public void setType(List<String> type) {
// this.type = type;
// }
//
// public static class AwardBean {
//
//
// }
//
// public static class CommunityBean {
// }
//
// public static class DirectorBean {
// }
//
// public static class QuizGameBean {
// }
//
// public static class StageImgBean {
// /**
// * count : 77
// * list : [{"imgId":7571861,"imgUrl":"http://img5.mtime.cn/pi/2019/10/14/101627.33725089_1280X720X2.jpg"},{"imgId":7572069,"imgUrl":"http://img5.mtime.cn/pi/2019/10/16/103657.50348698_1280X720X2.jpg"},{"imgId":7572070,"imgUrl":"http://img5.mtime.cn/pi/2019/10/16/103657.56830644_1280X720X2.jpg"},{"imgId":7572071,"imgUrl":"http://img5.mtime.cn/pi/2019/10/16/103657.65843950_1280X720X2.jpg"},{"imgId":7572072,"imgUrl":"http://img5.mtime.cn/pi/2019/10/16/103657.58198936_1280X720X2.jpg"},{"imgId":7574121,"imgUrl":"http://img5.mtime.cn/pi/2019/11/04/102336.67456279_1280X720X2.jpg"},{"imgId":7574122,"imgUrl":"http://img5.mtime.cn/pi/2019/11/04/102336.82135620_1280X720X2.jpg"},{"imgId":7574123,"imgUrl":"http://img5.mtime.cn/pi/2019/11/04/102336.44796716_1280X720X2.jpg"},{"imgId":7575680,"imgUrl":"http://img5.mtime.cn/pi/2019/11/13/183301.51605333_1280X720X2.jpg"},{"imgId":7575681,"imgUrl":"http://img5.mtime.cn/pi/2019/11/13/183301.53055574_1280X720X2.jpg"}]
// */
//
// private int count;
// private List<ListBean> list;
//
// public int getCount() {
// return count;
// }
//
// public void setCount(int count) {
// this.count = count;
// }
//
// public List<ListBean> getList() {
// return list;
// }
//
// public void setList(List<ListBean> list) {
// this.list = list;
// }
//
// public static class ListBean {
// /**
// * imgId : 7571861
// * imgUrl : http://img5.mtime.cn/pi/2019/10/14/101627.33725089_1280X720X2.jpg
// */
//
// private int imgId;
// private String imgUrl;
//
// public int getImgId() {
// return imgId;
// }
//
// public void setImgId(int imgId) {
// this.imgId = imgId;
// }
//
// public String getImgUrl() {
// return imgUrl;
// }
//
// public void setImgUrl(String imgUrl) {
// this.imgUrl = imgUrl;
// }
// }
// }
//
// public static class StyleBean {
// /**
// * isLeadPage : 0
// * leadImg : https://img2.mtime.cn/mg/.jpg
// * leadUrl :
// */
//
// private int isLeadPage;
// private String leadImg;
// private String leadUrl;
//
// public int getIsLeadPage() {
// return isLeadPage;
// }
//
// public void setIsLeadPage(int isLeadPage) {
// this.isLeadPage = isLeadPage;
// }
//
// public String getLeadImg() {
// return leadImg;
// }
//
// public void setLeadImg(String leadImg) {
// this.leadImg = leadImg;
// }
//
// public String getLeadUrl() {
// return leadUrl;
// }
//
// public void setLeadUrl(String leadUrl) {
// this.leadUrl = leadUrl;
// }
// }
//
// public static class VideoBean {
// /**
// * count : 10
// * hightUrl : https://vfx.mtime.cn/Video/2019/10/16/mp4/191016114345154729.mp4
// * img : http://img5.mtime.cn/mg/2019/10/16/114454.75574291_235X132X4.jpg
// * title : 囧妈 先导预告片
// * url : https://vfx.mtime.cn/Video/2019/10/16/mp4/191016114345154729_480.mp4
// * videoId : 76626
// * videoSourceType : 1
// */
//
// private int count;
// private String hightUrl;
// private String img;
// private String title;
// private String url;
// private int videoId;
// private int videoSourceType;
//
// public int getCount() {
// return count;
// }
//
// public void setCount(int count) {
// this.count = count;
// }
//
// public String getHightUrl() {
// return hightUrl;
// }
//
// public void setHightUrl(String hightUrl) {
// this.hightUrl = hightUrl;
// }
//
// public String getImg() {
// return img;
// }
//
// public void setImg(String img) {
// this.img = img;
// }
//
// public String getTitle() {
// return title;
// }
//
// public void setTitle(String title) {
// this.title = title;
// }
//
// public String getUrl() {
// return url;
// }
//
// public void setUrl(String url) {
// this.url = url;
// }
//
// public int getVideoId() {
// return videoId;
// }
//
// public void setVideoId(int videoId) {
// this.videoId = videoId;
// }
//
// public int getVideoSourceType() {
// return videoSourceType;
// }
//
// public void setVideoSourceType(int videoSourceType) {
// this.videoSourceType = videoSourceType;
// }
// }
//
// public static class ActorsBean {
// /**
// * actorId : 1248675
// * img : http://img5.mtime.cn/ph/2018/08/20/193919.93463030_1280X720X2.jpg
// * name : 徐峥
// * nameEn : Zheng Xu
// * roleImg :
// * roleName : 徐伊万
// */
//
// private int actorId;
// private String img;
// private String name;
// private String nameEn;
// private String roleImg;
// private String roleName;
//
// public int getActorId() {
// return actorId;
// }
//
// public void setActorId(int actorId) {
// this.actorId = actorId;
// }
//
// public String getImg() {
// return img;
// }
//
// public void setImg(String img) {
// this.img = img;
// }
//
// public String getName() {
// return name;
// }
//
// public void setName(String name) {
// this.name = name;
// }
//
// public String getNameEn() {
// return nameEn;
// }
//
// public void setNameEn(String nameEn) {
// this.nameEn = nameEn;
// }
//
// public String getRoleImg() {
// return roleImg;
// }
//
// public void setRoleImg(String roleImg) {
// this.roleImg = roleImg;
// }
//
// public String getRoleName() {
// return roleName;
// }
//
// public void setRoleName(String roleName) {
// this.roleName = roleName;
// }
// }
// }
//
// public static class BoxOfficeBean {
// /**
// * movieId : 262895
// * ranking : 0
// * todayBox : 0
// * todayBoxDes :
// * todayBoxDesUnit :
// * totalBox : 0
// * totalBoxDes :
// * totalBoxUnit :
// */
//
// private int movieId;
// private int ranking;
// private int todayBox;
// private String todayBoxDes;
// private String todayBoxDesUnit;
// private int totalBox;
// private String totalBoxDes;
// private String totalBoxUnit;
//
// public int getMovieId() {
// return movieId;
// }
//
// public void setMovieId(int movieId) {
// this.movieId = movieId;
// }
//
// public int getRanking() {
// return ranking;
// }
//
// public void setRanking(int ranking) {
// this.ranking = ranking;
// }
//
// public int getTodayBox() {
// return todayBox;
// }
//
// public void setTodayBox(int todayBox) {
// this.todayBox = todayBox;
// }
//
// public String getTodayBoxDes() {
// return todayBoxDes;
// }
//
// public void setTodayBoxDes(String todayBoxDes) {
// this.todayBoxDes = todayBoxDes;
// }
//
// public String getTodayBoxDesUnit() {
// return todayBoxDesUnit;
// }
//
// public void setTodayBoxDesUnit(String todayBoxDesUnit) {
// this.todayBoxDesUnit = todayBoxDesUnit;
// }
//
// public int getTotalBox() {
// return totalBox;
// }
//
// public void setTotalBox(int totalBox) {
// this.totalBox = totalBox;
// }
//
// public String getTotalBoxDes() {
// return totalBoxDes;
// }
//
// public void setTotalBoxDes(String totalBoxDes) {
// this.totalBoxDes = totalBoxDes;
// }
//
// public String getTotalBoxUnit() {
// return totalBoxUnit;
// }
//
// public void setTotalBoxUnit(String totalBoxUnit) {
// this.totalBoxUnit = totalBoxUnit;
// }
// }
//
// public static class LiveBean {
// /**
// * count : 0
// * img :
// * isSubscribe : false
// * liveId : 0
// * playNumTag :
// * playTag :
// * status : 3
// * title :
// */
//
// private int count;
// private String img;
// private boolean isSubscribe;
// private int liveId;
// private String playNumTag;
// private String playTag;
// private int status;
// private String title;
//
// public int getCount() {
// return count;
// }
//
// public void setCount(int count) {
// this.count = count;
// }
//
// public String getImg() {
// return img;
// }
//
// public void setImg(String img) {
// this.img = img;
// }
//
// public boolean isIsSubscribe() {
// return isSubscribe;
// }
//
// public void setIsSubscribe(boolean isSubscribe) {
// this.isSubscribe = isSubscribe;
// }
//
// public int getLiveId() {
// return liveId;
// }
//
// public void setLiveId(int liveId) {
// this.liveId = liveId;
// }
//
// public String getPlayNumTag() {
// return playNumTag;
// }
//
// public void setPlayNumTag(String playNumTag) {
// this.playNumTag = playNumTag;
// }
//
// public String getPlayTag() {
// return playTag;
// }
//
// public void setPlayTag(String playTag) {
// this.playTag = playTag;
// }
//
// public int getStatus() {
// return status;
// }
//
// public void setStatus(int status) {
// this.status = status;
// }
//
// public String getTitle() {
// return title;
// }
//
// public void setTitle(String title) {
// this.title = title;
// }
// }
//
// public static class RelatedBean {
// /**
// * goodsCount : 0
// * goodsList : []
// * relateId : 0
// * relatedUrl : https://mall-wv.mtime.cn/#!/commerce/list/
// * type : 0
// */
//
// private int goodsCount;
// private int relateId;
// private String relatedUrl;
// private int type;
//
// public int getGoodsCount() {
// return goodsCount;
// }
//
// public void setGoodsCount(int goodsCount) {
// this.goodsCount = goodsCount;
// }
//
// public int getRelateId() {
// return relateId;
// }
//
// public void setRelateId(int relateId) {
// this.relateId = relateId;
// }
//
// public String getRelatedUrl() {
// return relatedUrl;
// }
//
// public void setRelatedUrl(String relatedUrl) {
// this.relatedUrl = relatedUrl;
// }
//
// public int getType() {
// return type;
// }
//
// public void setType(int type) {
// this.type = type;
// }
//
//
// }
//
// public static class PlaylistBean {
//
//
// private boolean isOpenByBrowser;
// private String payRule;
// private String picUrl;
// private String playSourceName;
// private String playUrl;
// private String playUrlH5;
// private String playUrlPC;
// private String sourceId;
//
// public boolean isIsOpenByBrowser() {
// return isOpenByBrowser;
// }
//
// public void setIsOpenByBrowser(boolean isOpenByBrowser) {
// this.isOpenByBrowser = isOpenByBrowser;
// }
//
// public String getPayRule() {
// return payRule;
// }
//
// public void setPayRule(String payRule) {
// this.payRule = payRule;
// }
//
// public String getPicUrl() {
// return picUrl;
// }
//
// public void setPicUrl(String picUrl) {
// this.picUrl = picUrl;
// }
//
// public String getPlaySourceName() {
// return playSourceName;
// }
//
// public void setPlaySourceName(String playSourceName) {
// this.playSourceName = playSourceName;
// }
//
// public String getPlayUrl() {
// return playUrl;
// }
//
// public void setPlayUrl(String playUrl) {
// this.playUrl = playUrl;
// }
//
// public String getPlayUrlH5() {
// return playUrlH5;
// }
//
// public void setPlayUrlH5(String playUrlH5) {
// this.playUrlH5 = playUrlH5;
// }
//
// public String getPlayUrlPC() {
// return playUrlPC;
// }
//
// public void setPlayUrlPC(String playUrlPC) {
// this.playUrlPC = playUrlPC;
// }
//
// public String getSourceId() {
// return sourceId;
// }
//
// public void setSourceId(String sourceId) {
// this.sourceId = sourceId;
// }
// }
}
| [
"1571478933@qq.com"
] | 1571478933@qq.com |
4e93bcae3b42c8101febf16effcf9a9ebd534e18 | 0f9127707b0ca3645d61066cce322dbea2782c15 | /src/test/java/com/innovat/RegistroPresenze/RegistroPresenzeApplicationTests.java | 09d2b648af644f1f8ecb7a0091440617bd1046d6 | [] | no_license | danie-tomasello/RegistroPresenze | ec817d053adbadd1aa70e5aee5ec0f538081c100 | 8df3febb125e8ab987a48c0e33c39aab2fe4f273 | refs/heads/main | 2023-07-18T05:56:14.645010 | 2021-06-11T07:56:15 | 2021-06-11T07:56:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 230 | java | package com.innovat.RegistroPresenze;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class RegistroPresenzeApplicationTests {
@Test
void contextLoads() {
}
}
| [
"daniele.tomasello@innovatsrl.it"
] | daniele.tomasello@innovatsrl.it |
8ab396d16aef5e72b0a357ef71474598ffb3635c | 4bae26a5c1dc96d0640addfe04a81977223565f1 | /src/main/java/com/it/ky/schedule/entity/EmailInfo.java | 043fc744496214c84b594a612eb94bfd23992885 | [] | no_license | zhj149/schedule | 73556c3208808c2dd8c75f02bb2914b427a0ffa9 | d703fcaa47592b417e6526932947f46a26a6c685 | refs/heads/master | 2023-03-18T01:35:33.166047 | 2018-11-29T03:20:59 | 2018-11-29T03:20:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 718 | java | package com.it.ky.schedule.entity;
import lombok.Data;
import lombok.Getter;
/**
* @author: yangchangkui
* @date: 2018-11-03 17:22
*/
public class EmailInfo {
private Integer id;
private String emailTheme;
private String emailContent;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getEmailTheme() {
return emailTheme;
}
public void setEmailTheme(String emailTheme) {
this.emailTheme = emailTheme;
}
public String getEmailContent() {
return emailContent;
}
public void setEmailContent(String emailContent) {
this.emailContent = emailContent;
}
}
| [
"2687296052@qq.com"
] | 2687296052@qq.com |
bb506f16e3541eff158124f68d020a39ae0fd5bf | e0d130b97bac836bb1082f63e2c1ebdd1b6b8bce | /src/main/java/br/com/redhat/poc/model/CacheHealthModel.java | 68faf65cc8a3272b03bbb3403175ed75115b9f15 | [] | no_license | EricSaDev/fuse-sb-rhdg-quickstart | f2df94923b868bc796264959423c8a1b067a818a | 1d109239747a5d6009f8aa5ab28dfea998fd143b | refs/heads/master | 2022-12-03T00:00:59.561091 | 2020-08-24T14:42:14 | 2020-08-24T14:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,960 | java | package br.com.redhat.poc.model;
import java.io.Serializable;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
public class CacheHealthModel implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
@JsonProperty("cache-health")
private List<String> cacheHealth;
@JsonProperty("cluster-health")
private String clusterHealth;
@JsonProperty("cluster-name")
private String clusterName;
@JsonProperty("free-memory")
private Long freeMemory;
@JsonProperty("log-tail")
private List<String> logTail;
@JsonProperty("number-of-cpus")
private Integer numberOfCpus;
@JsonProperty("number-of-nodes")
private Integer numberOfNodes;
@JsonProperty("total-memory")
private Long totalMemory;
public List<String> getCacheHealth() {
return cacheHealth;
}
public void setCacheHealth(List<String> cacheHealth) {
this.cacheHealth = cacheHealth;
}
public String getClusterHealth() {
return clusterHealth;
}
public void setClusterHealth(String clusterHealth) {
this.clusterHealth = clusterHealth;
}
public String getClusterName() {
return clusterName;
}
public void setClusterName(String clusterName) {
this.clusterName = clusterName;
}
public Long getFreeMemory() {
return freeMemory;
}
public void setFreeMemory(Long freeMemory) {
this.freeMemory = freeMemory;
}
public List<String> getLogTail() {
return logTail;
}
public void setLogTail(List<String> logTail) {
this.logTail = logTail;
}
public Integer getNumberOfCpus() {
return numberOfCpus;
}
public void setNumberOfCpus(Integer numberOfCpus) {
this.numberOfCpus = numberOfCpus;
}
public Integer getNumberOfNodes() {
return numberOfNodes;
}
public void setNumberOfNodes(Integer numberOfNodes) {
this.numberOfNodes = numberOfNodes;
}
public Long getTotalMemory() {
return totalMemory;
}
public void setTotalMemory(Long totalMemory) {
this.totalMemory = totalMemory;
}
}
| [
"br.roglusa@gmail.com"
] | br.roglusa@gmail.com |
86398ff815347bee7af5e954077e5979005634f8 | bdbf5ebb34ca6d8b4b8ddde9f3fb7919bf35f12e | /microservicecloud-consumer-dept-80/src/main/java/com/atguigu/springcloud/controller/DeptController_Consumer.java | 9c8e071add9d406e2835686654f83878a070f3a4 | [] | no_license | rulerlwx/atguigu-springcloud | f24fda4821fbfffaab5d6bb5bf36e3bb972044cc | 2203581f7f4a802a326fac0669d70b20b398c82d | refs/heads/master | 2022-04-18T17:23:41.165589 | 2020-02-27T15:59:41 | 2020-02-27T15:59:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,815 | java | package com.atguigu.springcloud.controller;
import com.atguigu.springcloud.entity.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;
import java.util.List;
@RestController
public class DeptController_Consumer {
//private static final String REST_URL_PREFIX = "http://localhost:8001";
private static final String REST_URL_PREFIX = "http://MICROSERVICECLOUD-DEPT";
/**
* 使用 使用restTemplate访问restful接口非常的简单粗暴无脑。 (url, requestMap,
* ResponseBean.class)这三个参数分别代表 REST请求地址、请求参数、HTTP响应转换被转换成的对象类型。
*/
@Autowired
private RestTemplate restTemplate;
@RequestMapping(value = "/consumer/dept/add")
public boolean add(Dept dept)
{
return restTemplate.postForObject(REST_URL_PREFIX + "/dept/add", dept, Boolean.class);
}
@RequestMapping(value = "/consumer/dept/get/{id}")
public Dept get(@PathVariable("id") Long id)
{
return restTemplate.getForObject(REST_URL_PREFIX + "/dept/get/" + id, Dept.class);
}
@SuppressWarnings("unchecked")
@RequestMapping(value = "/consumer/dept/list")
public List<Dept> list()
{
return restTemplate.getForObject(REST_URL_PREFIX + "/dept/list", List.class);
}
// 测试@EnableDiscoveryClient,消费端可以调用服务发现
@RequestMapping(value = "/consumer/dept/discovery")
public Object discovery()
{
return restTemplate.getForObject(REST_URL_PREFIX + "/dept/discovery", Object.class);
}
}
| [
"leafsing20309@163.com"
] | leafsing20309@163.com |
6808ed0acb4e5743549ac0cc9477fe9d873b71f1 | aa297c3799d12854a0eeeb85c89a309a031933fb | /app/src/main/java/com/example/musicos/QueueActivity.java | 66d180ef88cbd0c20bb78297c6f5fc86ad52f576 | [] | no_license | mariaconstantin97/MusicOS | dedba8b0a6f9850f560836847d316394a1c763de | 5faa10a23934086830a152c870d9230cd0ece8fc | refs/heads/master | 2020-12-13T22:19:50.342240 | 2020-01-17T12:55:56 | 2020-01-17T12:55:56 | 232,086,291 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 335 | java | package com.example.musicos;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
public class QueueActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_queue);
}
}
| [
"57353667+mariaconstantin97@users.noreply.github.com"
] | 57353667+mariaconstantin97@users.noreply.github.com |
df1372787136ef41d32f91ca1f073f41922df599 | f55ab55105b9d8a71df840e6a9c6a1b4d5dc7b17 | /src/test/java/com/seleniumtests/dataobject/RandomEmailID.java | fc5011035b8c2e1c16cdc6510cf5b9b8210bb84e | [
"Apache-2.0"
] | permissive | sunilbehera17/automationframeworkselenium | 37285f4d7d37cba4ef679bf3593d920e1bb8ac1a | 0efe8042cf09616bf41e1061fb945207f8158485 | refs/heads/master | 2021-02-12T18:19:38.932115 | 2020-03-03T13:56:58 | 2020-03-03T13:56:58 | 244,616,657 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 686 | java | package com.seleniumtests.dataobject;
import java.text.SimpleDateFormat;
import java.util.Date;
public class RandomEmailID {
//public static String email = null;
//public static String name = null;
//public static String password = null;
public static String randomEmail(){
String timeStamp = new SimpleDateFormat("yyyyMMddHHmmss").format(new Date());
String emailprefix = "automation";
String emailDomain = "@mailsac.com";
String email = emailprefix + timeStamp + emailDomain;
// name = emailprefix + timeStamp;
// password = emailprefix + timeStamp;
System.out.println(email);
return email;
}
public static void main(String args []) {
randomEmail();
}
}
| [
"qaitsunil@gmail.com"
] | qaitsunil@gmail.com |
3faa6379c815747fe0b29545a132927db63a4cfe | f5cb342cd8c922ab40401d8cbd34e4edd57387f2 | /app/src/main/java/com/example/azuredragon/business/Localfile/ImportBookPresenterImpl.java | eb0cf31203c7affb9f9417b77a9d5fc54aa1de9b | [] | no_license | androidglod/AzureDragon | d1a03c43251454e458d0f10da96880a7973f7091 | d5e6c61b691b1a00066472dd6f2b9ff772305dea | refs/heads/master | 2020-04-05T07:04:45.258068 | 2019-03-02T17:02:56 | 2019-03-02T17:02:56 | 156,659,596 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,385 | java | package com.example.azuredragon.business.Localfile;
import android.os.Environment;
import com.example.azuredragon.business.bookdetail.ImportBookModelImpl;
import com.example.azuredragon.cache.RxBusTag;
import com.example.azuredragon.http.bean.LocBookShelfBean;
import com.example.azuredragon.http.impl.BasePresenterImpl;
import com.example.azuredragon.http.observer.SimpleObserver;
import com.hwangjr.rxbus.RxBus;
import java.io.File;
import java.util.List;
import io.reactivex.Observable;
import io.reactivex.ObservableEmitter;
import io.reactivex.ObservableOnSubscribe;
import io.reactivex.ObservableSource;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.functions.Function;
import io.reactivex.schedulers.Schedulers;
public class ImportBookPresenterImpl extends BasePresenterImpl<IImportBookView> implements IImportBookPresenter {
boolean stop= false;
public ImportBookPresenterImpl(){
}
@Override
public void searchLocationBook(){
Observable.create(new ObservableOnSubscribe<File>() {
@Override
public void subscribe(ObservableEmitter<File> e) throws Exception {
if (Environment.getExternalStorageState().equals(
Environment.MEDIA_MOUNTED)){
if (!stop){
searchBook(e,new File(Environment.getExternalStorageDirectory().getAbsolutePath()));
}
}
e.onComplete();
}
}).observeOn(AndroidSchedulers.mainThread())
.subscribeOn(Schedulers.io())
.subscribe(new SimpleObserver<File>() {
@Override
public void onNext(File value) {
mView.addNewBook(value);
}
@Override
public void onComplete() {
mView.searchFinish();
}
@Override
public void onError(Throwable e) {
e.printStackTrace();
}
});
}
@Override
public void stopSearchLocationBook() {
stop = true;
}
private void searchBook(ObservableEmitter<File> e, File parentFile) {
if (null != parentFile && parentFile.listFiles().length > 0) {
File[] childFiles = parentFile.listFiles();
for (int i = 0; i < childFiles.length; i++) {
if (childFiles[i].isFile() && childFiles[i].getName().substring(childFiles[i].getName().lastIndexOf(".") + 1).equalsIgnoreCase("txt") && childFiles[i].length() > 100*1024) { //100kb
e.onNext(childFiles[i]);
continue;
}else{
if (stop){
break;
}
}
if (childFiles[i].isDirectory() && childFiles[i].listFiles().length > 0) {
if (!stop) {
searchBook(e, childFiles[i]);
}
}
}
}
}
@Override
public void importBooks(List<File> books){
Observable.fromIterable(books).flatMap(new Function<File, ObservableSource<LocBookShelfBean>>() {
@Override
public ObservableSource<LocBookShelfBean> apply(File file) throws Exception {
return ImportBookModelImpl.getInstance().importBook(file);
}
})
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new SimpleObserver<LocBookShelfBean>() {
@Override
public void onNext(LocBookShelfBean value) {
if(value.getNew()){
RxBus.get().post(RxBusTag.HAD_ADD_BOOK,value.getBookShelfBean());
}
}
@Override
public void onError(Throwable e) {
e.printStackTrace();
mView.addError();
}
@Override
public void onComplete() {
mView.addSuccess();
}
});
}
@Override
public void detachView() {
}
}
| [
"1758032458"
] | 1758032458 |
2dcba1d95d98137f4c8562c44a7e09013bea85f7 | 857357e59979827883e7f438dfecf345bb1ed18d | /gen/com/actionbarsherlock/R.java | 4b2ffc3b5163ac0193b74449ea3290925f7ea226 | [] | no_license | techartist/SixtySecondYogaFree | e01ae7ad34c235d0916bd6502abfccb94b5fea2d | c5c0815739ba764051b050cc0d8168020183a80b | refs/heads/master | 2021-01-22T11:38:28.889830 | 2014-12-04T20:01:30 | 2014-12-04T20:01:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 35,346 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.actionbarsherlock;
public final class R {
public static final class id {
public static final int abs__image = 0x7f050019;
public static final int showCustom = 0x7f050008;
public static final int abs__action_mode_bar_stub = 0x7f050027;
public static final int abs__content = 0x7f05001f;
public static final int abs__action_bar_container = 0x7f050023;
public static final int normal = 0x7f050001;
public static final int abs__action_menu_divider = 0x7f05000c;
public static final int abs__icon = 0x7f05001c;
public static final int homeAsUp = 0x7f050006;
public static final int abs__action_bar = 0x7f050024;
public static final int abs__default_activity_button = 0x7f05001a;
public static final int abs__action_mode_bar = 0x7f050028;
public static final int abs__imageButton = 0x7f050014;
public static final int abs__action_mode_close_button = 0x7f050016;
public static final int abs__action_bar_subtitle = 0x7f050013;
public static final int abs__activity_chooser_view_content = 0x7f050017;
public static final int wrap_content = 0x7f050000;
public static final int listMode = 0x7f050002;
public static final int disableHome = 0x7f050009;
public static final int showTitle = 0x7f050007;
public static final int abs__title = 0x7f05001d;
public static final int abs__up = 0x7f05000b;
public static final int abs__progress_circular = 0x7f05000e;
public static final int abs__split_action_bar = 0x7f050026;
public static final int useLogo = 0x7f050004;
public static final int abs__action_context_bar = 0x7f050025;
public static final int tabMode = 0x7f050003;
public static final int abs__list_item = 0x7f05001b;
public static final int abs__progress_horizontal = 0x7f05000f;
public static final int abs__action_bar_title = 0x7f050012;
public static final int abs__radio = 0x7f050022;
public static final int abs__shortcut = 0x7f050021;
public static final int showHome = 0x7f050005;
public static final int abs__action_menu_presenter = 0x7f05000d;
public static final int abs__textButton = 0x7f050015;
public static final int abs__home = 0x7f05000a;
public static final int abs__titleDivider = 0x7f05001e;
public static final int abs__checkbox = 0x7f050020;
public static final int abs__expand_activities_button = 0x7f050018;
}
public static final class style {
public static final int Widget_Sherlock_Light_ActivityChooserView = 0x7f0b0020;
public static final int Widget_Sherlock_Light_ProgressBar_Horizontal = 0x7f0b0031;
public static final int TextAppearance_Sherlock_Light_Small = 0x7f0b0049;
public static final int DialogWindowTitle_Sherlock_Light = 0x7f0b0034;
public static final int Widget_Sherlock_ActivityChooserView = 0x7f0b001f;
public static final int TextAppearance_Sherlock_Widget_ActionBar_Subtitle_Inverse = 0x7f0b0039;
public static final int Sherlock___Widget_Holo_ListView = 0x7f0b0026;
public static final int Widget_Sherlock_Light_ActionBar = 0x7f0b0004;
public static final int Theme_Sherlock_Light_ForceOverflow = 0x7f0b0054;
public static final int DialogWindowTitle_Sherlock = 0x7f0b0033;
public static final int Theme_Sherlock = 0x7f0b004e;
public static final int TextAppearance_Sherlock_Widget_ActionMode_Subtitle_Inverse = 0x7f0b003d;
public static final int TextAppearance_Sherlock_Widget_PopupMenu_Small = 0x7f0b0041;
public static final int Theme_Sherlock_ForceOverflow = 0x7f0b0053;
public static final int Widget_Sherlock_Button_Small = 0x7f0b0021;
public static final int TextAppearance_Sherlock_Light_DialogWindowTitle = 0x7f0b0046;
public static final int Widget_Sherlock_Light_ActionBar_Solid = 0x7f0b0005;
public static final int TextAppearance_Sherlock_Widget_PopupMenu = 0x7f0b003e;
public static final int Theme_Sherlock_Light_DarkActionBar_ForceOverflow = 0x7f0b0055;
public static final int Widget_Sherlock_ActionBar = 0x7f0b0002;
public static final int Widget_Sherlock_Light_DropDownItem_Spinner = 0x7f0b002b;
public static final int Widget_Sherlock_Light_ListPopupWindow = 0x7f0b001b;
public static final int Widget_Sherlock_Light_ActionMode = 0x7f0b0018;
public static final int Widget_Sherlock_Light_ActionBar_TabBar = 0x7f0b000b;
public static final int Theme_Sherlock_Light_NoActionBar = 0x7f0b0052;
public static final int Widget_Sherlock_Light_ActionMode_Inverse = 0x7f0b0019;
public static final int Sherlock___Theme_Dialog = 0x7f0b004d;
public static final int Sherlock___Theme_DarkActionBar = 0x7f0b004c;
public static final int Theme_Sherlock_Light_DarkActionBar = 0x7f0b0050;
public static final int Sherlock___Widget_Holo_Spinner = 0x7f0b0023;
public static final int TextAppearance_Sherlock_Widget_ActionBar_Menu = 0x7f0b0035;
public static final int Sherlock___Theme_Light = 0x7f0b004b;
public static final int Widget_Sherlock_TextView_SpinnerItem = 0x7f0b0032;
public static final int Widget_Sherlock_Light_ListView_DropDown = 0x7f0b0028;
public static final int Widget_Sherlock_Light_Button_Small = 0x7f0b0022;
public static final int TextAppearance_Sherlock_Small = 0x7f0b0048;
public static final int Theme_Sherlock_Light = 0x7f0b004f;
public static final int Widget_Sherlock_ActionBar_TabBar = 0x7f0b000a;
public static final int TextAppearance_Sherlock_Light_Widget_PopupMenu_Large = 0x7f0b0040;
public static final int Sherlock___Theme = 0x7f0b004a;
public static final int Widget_Sherlock_Light_ActionBar_TabBar_Inverse = 0x7f0b000c;
public static final int Widget_Sherlock_ActionButton = 0x7f0b0010;
public static final int Theme_Sherlock_Light_Dialog = 0x7f0b0057;
public static final int Widget_Sherlock_ProgressBar_Horizontal = 0x7f0b0030;
public static final int Widget_Sherlock_ActionButton_CloseMode = 0x7f0b0012;
public static final int TextAppearance_Sherlock_Widget_DropDownItem = 0x7f0b0044;
public static final int Theme_Sherlock_Dialog = 0x7f0b0056;
public static final int Widget_Sherlock_PopupWindow_ActionMode = 0x7f0b002c;
public static final int Widget_Sherlock_Light_ActionBar_Solid_Inverse = 0x7f0b0006;
public static final int Widget_Sherlock_Light_Spinner_DropDown_ActionBar = 0x7f0b0025;
public static final int Sherlock___Widget_ActivityChooserView = 0x7f0b001e;
public static final int Sherlock___Widget_Holo_DropDownItem = 0x7f0b0029;
public static final int Widget = 0x7f0b0000;
public static final int TextAppearance_Sherlock_Widget_ActionBar_Title_Inverse = 0x7f0b0037;
public static final int Sherlock___Widget_ActionMode = 0x7f0b0016;
public static final int Widget_Sherlock_ActionMode = 0x7f0b0017;
public static final int Widget_Sherlock_Light_ActionButton_Overflow = 0x7f0b0015;
public static final int Theme_Sherlock_NoActionBar = 0x7f0b0051;
public static final int Widget_Sherlock_Light_PopupMenu = 0x7f0b001d;
public static final int Widget_Sherlock_PopupMenu = 0x7f0b001c;
public static final int Sherlock___TextAppearance_Small = 0x7f0b0047;
public static final int Widget_Sherlock_Light_PopupWindow_ActionMode = 0x7f0b002d;
public static final int Widget_Sherlock_Light_ActionBar_TabView = 0x7f0b0008;
public static final int Widget_Sherlock_ListPopupWindow = 0x7f0b001a;
public static final int TextAppearance_Sherlock_DialogWindowTitle = 0x7f0b0045;
public static final int TextAppearance_Sherlock_Widget_ActionMode_Title_Inverse = 0x7f0b003b;
public static final int Widget_Sherlock_Light_ActionButton_CloseMode = 0x7f0b0013;
public static final int Widget_Sherlock_Light_ActionBar_TabText_Inverse = 0x7f0b000f;
public static final int TextAppearance_Sherlock_Widget_ActionMode_Title = 0x7f0b003a;
public static final int Widget_Sherlock_Spinner_DropDown_ActionBar = 0x7f0b0024;
public static final int TextAppearance_Sherlock_Widget_TextView_SpinnerItem = 0x7f0b0043;
public static final int Sherlock___Widget_ActionBar = 0x7f0b0001;
public static final int Widget_Sherlock_ProgressBar = 0x7f0b002e;
public static final int Widget_Sherlock_Light_ActionBar_TabView_Inverse = 0x7f0b0009;
public static final int TextAppearance_Sherlock_Widget_ActionBar_Title = 0x7f0b0036;
public static final int TextAppearance_Sherlock_Light_Widget_PopupMenu_Small = 0x7f0b0042;
public static final int Widget_Sherlock_ActionBar_TabText = 0x7f0b000d;
public static final int Widget_Sherlock_Light_ProgressBar = 0x7f0b002f;
public static final int Widget_Sherlock_ActionBar_TabView = 0x7f0b0007;
public static final int Widget_Sherlock_ActionBar_Solid = 0x7f0b0003;
public static final int Widget_Sherlock_ListView_DropDown = 0x7f0b0027;
public static final int Widget_Sherlock_ActionButton_Overflow = 0x7f0b0014;
public static final int Widget_Sherlock_Light_ActionBar_TabText = 0x7f0b000e;
public static final int TextAppearance_Sherlock_Widget_ActionMode_Subtitle = 0x7f0b003c;
public static final int TextAppearance_Sherlock_Widget_ActionBar_Subtitle = 0x7f0b0038;
public static final int Widget_Sherlock_DropDownItem_Spinner = 0x7f0b002a;
public static final int Widget_Sherlock_Light_ActionButton = 0x7f0b0011;
public static final int TextAppearance_Sherlock_Widget_PopupMenu_Large = 0x7f0b003f;
}
public static final class integer {
public static final int abs__max_action_buttons = 0x7f090000;
}
public static final class color {
public static final int abs__bright_foreground_inverse_holo_light = 0x7f070007;
public static final int abs__holo_blue_light = 0x7f070008;
public static final int abs__bright_foreground_holo_light = 0x7f070003;
public static final int abs__bright_foreground_holo_dark = 0x7f070002;
public static final int abs__bright_foreground_disabled_holo_light = 0x7f070005;
public static final int abs__primary_text_disable_only_holo_dark = 0x7f070009;
public static final int abs__bright_foreground_inverse_holo_dark = 0x7f070006;
public static final int abs__background_holo_dark = 0x7f070000;
public static final int abs__primary_text_disable_only_holo_light = 0x7f07000a;
public static final int abs__background_holo_light = 0x7f070001;
public static final int abs__bright_foreground_disabled_holo_dark = 0x7f070004;
public static final int abs__primary_text_holo_dark = 0x7f07000b;
public static final int abs__primary_text_holo_light = 0x7f07000c;
}
public static final class string {
public static final int abs__action_bar_up_description = 0x7f0a0001;
public static final int abs__activitychooserview_choose_application = 0x7f0a0007;
public static final int abs__share_action_provider_share_with = 0x7f0a0006;
public static final int abs__action_menu_overflow_description = 0x7f0a0002;
public static final int abs__action_mode_done = 0x7f0a0003;
public static final int abs__activity_chooser_view_dialog_title_default = 0x7f0a0005;
public static final int abs__shareactionprovider_share_with_application = 0x7f0a0009;
public static final int abs__shareactionprovider_share_with = 0x7f0a0008;
public static final int abs__action_bar_home_description = 0x7f0a0000;
public static final int abs__activity_chooser_view_see_all = 0x7f0a0004;
}
public static final class layout {
public static final int abs__list_menu_item_radio = 0x7f03000f;
public static final int abs__action_mode_close_item = 0x7f030008;
public static final int abs__activity_chooser_view_list_item = 0x7f03000a;
public static final int abs__dialog_title_holo = 0x7f03000b;
public static final int abs__screen_simple_overlay_action_mode = 0x7f030014;
public static final int abs__screen_action_bar = 0x7f030011;
public static final int abs__action_menu_layout = 0x7f030006;
public static final int sherlock_spinner_dropdown_item = 0x7f03001b;
public static final int abs__screen_action_bar_overlay = 0x7f030012;
public static final int abs__action_bar_title_item = 0x7f030004;
public static final int abs__list_menu_item_checkbox = 0x7f03000c;
public static final int abs__list_menu_item_icon = 0x7f03000d;
public static final int abs__action_mode_bar = 0x7f030007;
public static final int abs__list_menu_item_layout = 0x7f03000e;
public static final int sherlock_spinner_item = 0x7f03001c;
public static final int abs__screen_simple = 0x7f030013;
public static final int abs__activity_chooser_view = 0x7f030009;
public static final int abs__popup_menu_item_layout = 0x7f030010;
public static final int abs__action_bar_home = 0x7f030001;
public static final int abs__action_bar_tab_bar_view = 0x7f030003;
public static final int abs__action_menu_item_layout = 0x7f030005;
public static final int abs__action_bar_tab = 0x7f030002;
}
public static final class styleable {
public static final int SherlockTheme_textColorPrimaryInverse = 27;
public static final int SherlockActionBar_displayOptions = 7;
public static final int SherlockTheme_actionMenuTextAppearance = 11;
public static final int SherlockTheme_listPreferredItemPaddingLeft = 31;
public static final int SherlockMenuView_itemBackground = 4;
public static final int SherlockTheme_actionBarDivider = 9;
public static final int SherlockTheme_homeAsUpIndicator = 39;
public static final int SherlockMenuItem_android_id = 2;
public static final int[] SherlockTheme = { 0x01010057, 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011, 0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015, 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019, 0x7f01001a, 0x7f01001b, 0x7f01001c, 0x7f01001d, 0x7f01001e, 0x7f01001f, 0x7f010020, 0x7f010021, 0x7f010022, 0x7f010023, 0x7f010024, 0x7f010025, 0x7f010026, 0x7f010027, 0x7f010028, 0x7f010029, 0x7f01002a, 0x7f01002b, 0x7f01002c, 0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030, 0x7f010031, 0x7f010032, 0x7f010033, 0x7f010034, 0x7f010035, 0x7f010036, 0x7f010037, 0x7f010038, 0x7f010039 };
public static final int[] SherlockMenuGroup = { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 };
public static final int SherlockTheme_actionBarSplitStyle = 6;
public static final int SherlockTheme_actionModeShareDrawable = 18;
public static final int SherlockTheme_activatedBackgroundIndicator = 51;
public static final int SherlockActionBar_subtitle = 9;
public static final int SherlockActionMode_backgroundSplit = 3;
public static final int[] SherlockActionBar = { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004, 0x7f010005, 0x7f01003a, 0x7f01003b, 0x7f01003c, 0x7f01003d, 0x7f01003e, 0x7f01003f, 0x7f010040, 0x7f010041, 0x7f010042, 0x7f010043, 0x7f010044, 0x7f010045, 0x7f010046 };
public static final int SherlockTheme_buttonStyleSmall = 20;
public static final int SherlockMenuItem_android_icon = 0;
public static final int SherlockMenuItem_android_title = 7;
public static final int SherlockTheme_dropdownListPreferredItemHeight = 42;
public static final int SherlockActivityChooserView_initialActivityCount = 1;
public static final int SherlockActionBar_itemPadding = 18;
public static final int SherlockTheme_actionBarWidgetTheme = 7;
public static final int SherlockSpinner_android_dropDownHorizontalOffset = 5;
public static final int SherlockMenuGroup_android_orderInCategory = 4;
public static final int SherlockTheme_actionOverflowButtonStyle = 4;
public static final int SherlockTheme_spinnerDropDownItemStyle = 29;
public static final int SherlockTheme_android_windowIsFloating = 0;
public static final int SherlockActionMode_background = 2;
public static final int SherlockTheme_actionMenuTextColor = 12;
public static final int SherlockActionBar_progressBarPadding = 17;
public static final int SherlockMenuItem_android_titleCondensed = 8;
public static final int SherlockActionMode_height = 4;
public static final int SherlockActionMenuItemView_android_minWidth = 0;
public static final int SherlockTheme_actionBarTabStyle = 1;
public static final int SherlockTheme_actionSpinnerItemStyle = 43;
public static final int SherlockActivityChooserView_expandActivityOverflowButtonDrawable = 2;
public static final int SherlockActionBar_backgroundSplit = 3;
public static final int SherlockMenuView_headerBackground = 3;
public static final int SherlockActionBar_subtitleTextStyle = 1;
public static final int SherlockActionBar_icon = 10;
public static final int SherlockTheme_dropDownListViewStyle = 40;
public static final int SherlockMenuItem_android_alphabeticShortcut = 9;
public static final int[] SherlockActionMenuItemView = { 0x0101013f };
public static final int SherlockSpinner_android_dropDownWidth = 4;
public static final int SherlockActionBar_indeterminateProgressStyle = 16;
public static final int SherlockTheme_textAppearanceLargePopupMenu = 22;
public static final int SherlockTheme_windowMinWidthMajor = 34;
public static final int SherlockMenuItem_android_checked = 3;
public static final int SherlockActionBar_progressBarStyle = 15;
public static final int SherlockMenuView_horizontalDivider = 1;
public static final int[] SherlockActivityChooserView = { 0x010100d4, 0x7f01004f, 0x7f010050 };
public static final int[] SherlockMenuItem = { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x010102d9, 0x010102fb, 0x010102fc, 0x01010389 };
public static final int SherlockTheme_actionBarStyle = 5;
public static final int SherlockTheme_windowSplitActionBar = 48;
public static final int SherlockMenuGroup_android_enabled = 0;
public static final int SherlockSpinner_android_gravity = 0;
public static final int SherlockActionBar_customNavigationLayout = 13;
public static final int SherlockSpinner_android_prompt = 3;
public static final int SherlockTheme_actionBarTabBarStyle = 2;
public static final int SherlockActionBar_title = 8;
public static final int SherlockMenuItem_android_menuCategory = 5;
public static final int SherlockActionBar_height = 4;
public static final int SherlockActionBar_navigationMode = 6;
public static final int SherlockTheme_actionBarTabTextStyle = 3;
public static final int SherlockTheme_windowMinWidthMinor = 35;
public static final int SherlockMenuItem_android_actionViewClass = 15;
public static final int SherlockMenuView_itemTextAppearance = 0;
public static final int SherlockTheme_actionModeBackground = 15;
public static final int SherlockMenuItem_android_checkable = 11;
public static final int SherlockTheme_actionModeCloseDrawable = 17;
public static final int SherlockTheme_windowNoTitle = 44;
public static final int SherlockTheme_textAppearanceSmall = 24;
public static final int SherlockSpinner_android_dropDownVerticalOffset = 6;
public static final int SherlockMenuView_verticalDivider = 2;
public static final int SherlockMenuGroup_android_visible = 2;
public static final int SherlockActionMode_subtitleTextStyle = 1;
public static final int SherlockMenuView_itemIconDisabledAlpha = 6;
public static final int SherlockTheme_actionBarItemBackground = 10;
public static final int SherlockTheme_textColorPrimary = 25;
public static final int SherlockTheme_listPreferredItemHeightSmall = 30;
public static final int SherlockTheme_windowContentOverlay = 21;
public static final int SherlockTheme_listPopupWindowStyle = 49;
public static final int SherlockMenuGroup_android_menuCategory = 3;
public static final int SherlockActionBar_logo = 11;
public static final int SherlockMenuItem_android_actionProviderClass = 16;
public static final int SherlockTheme_actionBarSize = 8;
public static final int SherlockActionBar_backgroundStacked = 12;
public static final int SherlockTheme_actionModeCloseButtonStyle = 14;
public static final int SherlockActivityChooserView_android_background = 0;
public static final int SherlockTheme_absForceOverflow = 52;
public static final int SherlockTheme_dividerVertical = 36;
public static final int SherlockTheme_actionModePopupWindowStyle = 19;
public static final int SherlockTheme_textAppearanceSmallPopupMenu = 23;
public static final int SherlockSpinner_android_popupBackground = 2;
public static final int[] SherlockActionMode = { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004 };
public static final int SherlockTheme_popupMenuStyle = 41;
public static final int[] SherlockMenuView = { 0x7f010047, 0x7f010048, 0x7f010049, 0x7f01004a, 0x7f01004b, 0x7f01004c, 0x7f01004d, 0x7f01004e };
public static final int SherlockSpinner_android_popupPromptView = 7;
public static final int SherlockActionBar_background = 2;
public static final int SherlockSpinner_android_dropDownSelector = 1;
public static final int SherlockTheme_actionModeSplitBackground = 16;
public static final int SherlockTheme_actionModeStyle = 13;
public static final int SherlockMenuView_windowAnimationStyle = 5;
public static final int SherlockTheme_listPreferredItemPaddingRight = 32;
public static final int SherlockMenuItem_android_numericShortcut = 10;
public static final int SherlockMenuItem_android_showAsAction = 13;
public static final int SherlockTheme_actionButtonStyle = 38;
public static final int SherlockMenuGroup_android_checkableBehavior = 5;
public static final int SherlockMenuGroup_android_id = 1;
public static final int SherlockTheme_actionDropDownStyle = 37;
public static final int SherlockActionMode_titleTextStyle = 0;
public static final int SherlockTheme_textColorPrimaryDisableOnly = 26;
public static final int SherlockTheme_textAppearanceListItemSmall = 33;
public static final int SherlockTheme_windowActionModeOverlay = 47;
public static final int SherlockActionBar_homeLayout = 14;
public static final int SherlockActionBar_divider = 5;
public static final int SherlockTheme_spinnerItemStyle = 28;
public static final int SherlockMenuItem_android_visible = 4;
public static final int SherlockMenuItem_android_orderInCategory = 6;
public static final int SherlockActionBar_titleTextStyle = 0;
public static final int SherlockMenuView_preserveIconSpacing = 7;
public static final int SherlockTheme_windowActionBar = 45;
public static final int SherlockTheme_activityChooserViewStyle = 50;
public static final int SherlockMenuItem_android_enabled = 1;
public static final int SherlockMenuItem_android_onClick = 12;
public static final int SherlockMenuItem_android_actionLayout = 14;
public static final int[] SherlockSpinner = { 0x010100af, 0x01010175, 0x01010176, 0x0101017b, 0x01010262, 0x010102ac, 0x010102ad, 0x01010411 };
public static final int SherlockTheme_windowActionBarOverlay = 46;
}
public static final class drawable {
public static final int abs__list_selector_holo_dark = 0x7f020037;
public static final int abs__ic_cab_done_holo_dark = 0x7f020022;
public static final int abs__ab_share_pack_holo_dark = 0x7f020005;
public static final int abs__progress_medium_holo = 0x7f02003f;
public static final int abs__btn_cab_done_pressed_holo_light = 0x7f020019;
public static final int abs__ab_bottom_transparent_dark_holo = 0x7f020003;
public static final int abs__progress_secondary_holo_light = 0x7f020043;
public static final int abs__spinner_48_outer_holo = 0x7f020045;
public static final int abs__ab_stacked_solid_dark_holo = 0x7f02000a;
public static final int abs__ab_solid_shadow_holo = 0x7f020009;
public static final int abs__ab_bottom_solid_dark_holo = 0x7f020000;
public static final int abs__tab_selected_pressed_holo = 0x7f020053;
public static final int abs__spinner_ab_focused_holo_dark = 0x7f02004a;
public static final int abs__ab_transparent_light_holo = 0x7f02000f;
public static final int abs__list_selector_disabled_holo_light = 0x7f020036;
public static final int abs__ab_solid_dark_holo = 0x7f020007;
public static final int abs__progress_secondary_holo_dark = 0x7f020042;
public static final int abs__ab_stacked_transparent_light_holo = 0x7f02000d;
public static final int abs__spinner_ab_holo_light = 0x7f02004d;
public static final int abs__btn_cab_done_focused_holo_light = 0x7f020015;
public static final int abs__ab_share_pack_holo_light = 0x7f020006;
public static final int abs__list_selector_background_transition_holo_light = 0x7f020034;
public static final int abs__ab_solid_light_holo = 0x7f020008;
public static final int abs__list_focused_holo = 0x7f02002f;
public static final int abs__spinner_ab_pressed_holo_light = 0x7f02004f;
public static final int abs__progress_primary_holo_dark = 0x7f020040;
public static final int abs__list_selector_holo_light = 0x7f020038;
public static final int abs__spinner_ab_pressed_holo_dark = 0x7f02004e;
public static final int abs__spinner_ab_default_holo_light = 0x7f020047;
public static final int abs__ab_bottom_solid_inverse_holo = 0x7f020001;
public static final int abs__ab_bottom_solid_light_holo = 0x7f020002;
public static final int abs__ic_menu_moreoverflow_normal_holo_dark = 0x7f020026;
public static final int abs__progress_primary_holo_light = 0x7f020041;
public static final int abs__btn_cab_done_default_holo_dark = 0x7f020012;
public static final int abs__btn_cab_done_focused_holo_dark = 0x7f020014;
public static final int abs__list_divider_holo_dark = 0x7f02002d;
public static final int abs__list_pressed_holo_light = 0x7f020032;
public static final int abs__btn_cab_done_holo_light = 0x7f020017;
public static final int abs__activated_background_holo_dark = 0x7f020010;
public static final int abs__ic_ab_back_holo_light = 0x7f020021;
public static final int abs__list_selector_background_transition_holo_dark = 0x7f020033;
public static final int abs__spinner_ab_disabled_holo_light = 0x7f020049;
public static final int abs__ab_stacked_transparent_dark_holo = 0x7f02000c;
public static final int abs__progress_bg_holo_light = 0x7f02003c;
public static final int abs__dialog_full_holo_dark = 0x7f02001e;
public static final int abs__ic_cab_done_holo_light = 0x7f020023;
public static final int abs__spinner_ab_default_holo_dark = 0x7f020046;
public static final int abs__ic_menu_share_holo_light = 0x7f020029;
public static final int abs__tab_unselected_pressed_holo = 0x7f020054;
public static final int abs__ic_menu_moreoverflow_normal_holo_light = 0x7f020027;
public static final int abs__progress_horizontal_holo_dark = 0x7f02003d;
public static final int abs__menu_dropdown_panel_holo_dark = 0x7f020039;
public static final int abs__progress_bg_holo_dark = 0x7f02003b;
public static final int abs__activated_background_holo_light = 0x7f020011;
public static final int abs__btn_cab_done_holo_dark = 0x7f020016;
public static final int abs__cab_background_bottom_holo_light = 0x7f02001b;
public static final int abs__btn_cab_done_default_holo_light = 0x7f020013;
public static final int abs__spinner_48_inner_holo = 0x7f020044;
public static final int abs__tab_selected_holo = 0x7f020052;
public static final int abs__progress_horizontal_holo_light = 0x7f02003e;
public static final int abs__btn_cab_done_pressed_holo_dark = 0x7f020018;
public static final int abs__ab_transparent_dark_holo = 0x7f02000e;
public static final int abs__cab_background_bottom_holo_dark = 0x7f02001a;
public static final int abs__ic_ab_back_holo_dark = 0x7f020020;
public static final int abs__menu_dropdown_panel_holo_light = 0x7f02003a;
public static final int abs__ic_menu_share_holo_dark = 0x7f020028;
public static final int abs__ab_stacked_solid_light_holo = 0x7f02000b;
public static final int abs__list_activated_holo = 0x7f02002c;
public static final int abs__dialog_full_holo_light = 0x7f02001f;
public static final int abs__spinner_ab_focused_holo_light = 0x7f02004b;
public static final int abs__cab_background_top_holo_light = 0x7f02001d;
public static final int abs__spinner_ab_disabled_holo_dark = 0x7f020048;
public static final int abs__list_selector_disabled_holo_dark = 0x7f020035;
public static final int abs__cab_background_top_holo_dark = 0x7f02001c;
public static final int abs__ab_bottom_transparent_light_holo = 0x7f020004;
public static final int abs__ic_menu_moreoverflow_holo_light = 0x7f020025;
public static final int abs__item_background_holo_dark = 0x7f02002a;
public static final int abs__list_divider_holo_light = 0x7f02002e;
public static final int abs__list_pressed_holo_dark = 0x7f020031;
public static final int abs__spinner_ab_holo_dark = 0x7f02004c;
public static final int abs__item_background_holo_light = 0x7f02002b;
public static final int abs__tab_selected_focused_holo = 0x7f020051;
public static final int abs__tab_indicator_ab_holo = 0x7f020050;
public static final int abs__ic_menu_moreoverflow_holo_dark = 0x7f020024;
public static final int abs__list_longpressed_holo = 0x7f020030;
}
public static final class attr {
public static final int textAppearanceSmall = 0x7f01001d;
public static final int actionOverflowButtonStyle = 0x7f010009;
public static final int windowMinWidthMajor = 0x7f010027;
public static final int initialActivityCount = 0x7f01004f;
public static final int actionModeStyle = 0x7f010012;
public static final int listPreferredItemPaddingRight = 0x7f010025;
public static final int actionBarTabTextStyle = 0x7f010008;
public static final int dropDownListViewStyle = 0x7f01002d;
public static final int windowMinWidthMinor = 0x7f010028;
public static final int actionModeBackground = 0x7f010014;
public static final int activityChooserViewStyle = 0x7f010037;
public static final int itemIconDisabledAlpha = 0x7f01004d;
public static final int textAppearanceSmallPopupMenu = 0x7f01001c;
public static final int height = 0x7f010004;
public static final int actionButtonStyle = 0x7f01002b;
public static final int windowAnimationStyle = 0x7f01004c;
public static final int headerBackground = 0x7f01004a;
public static final int dividerVertical = 0x7f010029;
public static final int actionModeCloseDrawable = 0x7f010016;
public static final int actionBarTabStyle = 0x7f010006;
public static final int windowContentOverlay = 0x7f01001a;
public static final int actionBarStyle = 0x7f01000a;
public static final int actionBarDivider = 0x7f01000e;
public static final int actionBarWidgetTheme = 0x7f01000c;
public static final int spinnerDropDownItemStyle = 0x7f010022;
public static final int windowActionModeOverlay = 0x7f010034;
public static final int divider = 0x7f010005;
public static final int navigationMode = 0x7f01003a;
public static final int listPopupWindowStyle = 0x7f010036;
public static final int actionBarItemBackground = 0x7f01000f;
public static final int expandActivityOverflowButtonDrawable = 0x7f010050;
public static final int homeLayout = 0x7f010042;
public static final int indeterminateProgressStyle = 0x7f010044;
public static final int progressBarPadding = 0x7f010045;
public static final int activatedBackgroundIndicator = 0x7f010038;
public static final int actionModeShareDrawable = 0x7f010017;
public static final int windowNoTitle = 0x7f010031;
public static final int textColorPrimaryInverse = 0x7f010020;
public static final int textAppearanceLargePopupMenu = 0x7f01001b;
public static final int actionMenuTextAppearance = 0x7f010010;
public static final int horizontalDivider = 0x7f010048;
public static final int verticalDivider = 0x7f010049;
public static final int listPreferredItemHeightSmall = 0x7f010023;
public static final int actionModePopupWindowStyle = 0x7f010018;
public static final int homeAsUpIndicator = 0x7f01002c;
public static final int textColorPrimary = 0x7f01001e;
public static final int itemBackground = 0x7f01004b;
public static final int actionModeCloseButtonStyle = 0x7f010013;
public static final int actionBarSplitStyle = 0x7f01000b;
public static final int popupMenuStyle = 0x7f01002e;
public static final int backgroundSplit = 0x7f010003;
public static final int actionBarTabBarStyle = 0x7f010007;
public static final int title = 0x7f01003c;
public static final int preserveIconSpacing = 0x7f01004e;
public static final int actionBarSize = 0x7f01000d;
public static final int textAppearanceListItemSmall = 0x7f010026;
public static final int actionSpinnerItemStyle = 0x7f010030;
public static final int buttonStyleSmall = 0x7f010019;
public static final int dropdownListPreferredItemHeight = 0x7f01002f;
public static final int displayOptions = 0x7f01003b;
public static final int itemPadding = 0x7f010046;
public static final int titleTextStyle = 0x7f010000;
public static final int logo = 0x7f01003f;
public static final int icon = 0x7f01003e;
public static final int textColorPrimaryDisableOnly = 0x7f01001f;
public static final int actionModeSplitBackground = 0x7f010015;
public static final int backgroundStacked = 0x7f010040;
public static final int customNavigationLayout = 0x7f010041;
public static final int listPreferredItemPaddingLeft = 0x7f010024;
public static final int windowActionBarOverlay = 0x7f010033;
public static final int itemTextAppearance = 0x7f010047;
public static final int windowActionBar = 0x7f010032;
public static final int windowSplitActionBar = 0x7f010035;
public static final int subtitleTextStyle = 0x7f010001;
public static final int absForceOverflow = 0x7f010039;
public static final int progressBarStyle = 0x7f010043;
public static final int spinnerItemStyle = 0x7f010021;
public static final int background = 0x7f010002;
public static final int subtitle = 0x7f01003d;
public static final int actionMenuTextColor = 0x7f010011;
public static final int actionDropDownStyle = 0x7f01002a;
}
public static final class bool {
public static final int abs__config_allowActionMenuItemTextWithIcon = 0x7f060005;
public static final int abs__action_bar_expanded_action_views_exclusive = 0x7f060002;
public static final int abs__config_showMenuShortcutsWhenKeyboardPresent = 0x7f060003;
public static final int abs__action_bar_embed_tabs = 0x7f060000;
public static final int abs__split_action_bar_is_narrow = 0x7f060001;
public static final int abs__config_actionMenuItemAllCaps = 0x7f060004;
}
public static final class dimen {
public static final int abs__config_prefDialogWidth = 0x7f080000;
public static final int abs__action_bar_subtitle_text_size = 0x7f080004;
public static final int abs__dialog_min_width_minor = 0x7f08000a;
public static final int abs__dialog_min_width_major = 0x7f080009;
public static final int abs__action_bar_icon_vertical_padding = 0x7f080002;
public static final int abs__action_bar_subtitle_top_margin = 0x7f080005;
public static final int abs__action_button_min_width = 0x7f080007;
public static final int abs__alert_dialog_title_height = 0x7f080008;
public static final int abs__action_bar_subtitle_bottom_margin = 0x7f080006;
public static final int action_button_min_width = 0x7f08000b;
public static final int abs__action_bar_title_text_size = 0x7f080003;
public static final int abs__action_bar_default_height = 0x7f080001;
}
}
| [
"techartist@yahoo.com"
] | techartist@yahoo.com |
fe24a36cd9d43cb56fdfab16b62af2615da58f1a | 0af8b92686a58eb0b64e319b22411432aca7a8f3 | /single-medium-project/src/main/java/org/gradle/test/performancenull_23/Productionnull_2244.java | bfbf8e18e729fbffb441363edccf8ccfcf328b9c | [] | no_license | gradle/performance-comparisons | b0d38db37c326e0ce271abebdb3c91769b860799 | e53dc7182fafcf9fedf07920cbbea8b40ee4eef4 | refs/heads/master | 2023-08-14T19:24:39.164276 | 2022-11-24T05:18:33 | 2022-11-24T05:18:33 | 80,121,268 | 17 | 15 | null | 2022-09-30T08:04:35 | 2017-01-26T14:25:33 | null | UTF-8 | Java | false | false | 585 | java | package org.gradle.test.performancenull_23;
public class Productionnull_2244 {
private final String property;
public Productionnull_2244(String param) {
this.property = param;
}
public String getProperty() {
return property;
}
private String prop0;
public String getProp0() {
return prop0;
}
public void setProp0(String value) {
prop0 = value;
}
private String prop1;
public String getProp1() {
return prop1;
}
public void setProp1(String value) {
prop1 = value;
}
}
| [
"cedric.champeau@gmail.com"
] | cedric.champeau@gmail.com |
ddbda5122a4b5cf3a540e7612b415eb2ac8fdd64 | c96adb9ce8635c70d0de7d67e580cf784b04a077 | /jamira-cli/src/main/java/org/tomitribe/jamira/cli/SearchCommand.java | ecf6ae3189e6572a5a8991d92130820b19b4e93f | [
"Apache-2.0"
] | permissive | tomitribe/jamira | 04ae0649a9dbdd76b2d22f14c1470da56a84bf6a | e57f88c1997107f432787aed97c8221b83ea8932 | refs/heads/main | 2023-04-30T15:34:42.974934 | 2021-05-17T01:55:37 | 2021-05-17T01:55:37 | 356,059,200 | 13 | 4 | Apache-2.0 | 2021-04-19T11:54:24 | 2021-04-08T22:03:03 | Java | UTF-8 | Java | false | false | 1,827 | java | /*
* Copyright 2021 Tomitribe and community
*
* 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
*
* https://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.
*/
package org.tomitribe.jamira.cli;
import com.atlassian.jira.rest.client.api.SearchRestClient;
import com.atlassian.jira.rest.client.api.domain.SearchResult;
import org.tomitribe.crest.api.Command;
import org.tomitribe.crest.api.Default;
import org.tomitribe.crest.api.Option;
import org.tomitribe.jamira.core.Account;
import org.tomitribe.jamira.core.Client;
import org.tomitribe.jamira.core.Formatting;
import java.util.concurrent.ExecutionException;
@Command("search")
public class SearchCommand {
@Command
public String[][] jql(final String query,
@Option("fields") @Default("key issueType.name priority.name status.name summary") final String fields,
@Option("sort") @Default("issueType.name priority.name status.name") final String sort,
@Option("account") @Default("default") final Account account) throws ExecutionException, InterruptedException {
final Client client = account.getClient();
final SearchRestClient searchClient = client.getSearchClient();
final SearchResult result = searchClient.searchJql(query).get();
return Formatting.asTable(result.getIssues(), fields, sort);
}
}
| [
"david.blevins@gmail.com"
] | david.blevins@gmail.com |
82022ab97a5c9dc32f31389f2059bfaf8a2c0d4e | 3fc80b1c53f08cd3d045a60896129638b34c7fe3 | /newAccount/newAccount/app/src/main/java/com/melissabakker/newaccount/Welcome.java | 7145731e5fc02c2d3beb7d566e751d99ecd38bb8 | [] | no_license | MelissaJBakker/testProject | e436b1e8a1a47faa433899a1bdaaa1b323c9af20 | fbcbed629271381c8801162b6b82b1e58ff0d020 | refs/heads/master | 2023-01-22T20:58:21.274989 | 2020-12-06T20:38:34 | 2020-12-06T20:38:34 | 315,158,454 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,117 | java | package com.melissabakker.newaccount;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.firestore.DocumentReference;
import com.google.firebase.firestore.DocumentSnapshot;
import com.google.firebase.firestore.EventListener;
import com.google.firebase.firestore.FirebaseFirestore;
import com.google.firebase.firestore.FirebaseFirestoreException;
public class Welcome extends AppCompatActivity {
String welcomeMsg;
String credMsg;
FirebaseAuth firebaseAuth;
FirebaseFirestore fStore;
String userID, firstName, lastName;
Button btnLogout, btnDeleteUser, btnAddService, btnEditService, btnBranchService, btnRequests, btnEditBranch, btnAddSchedule, btnUserServiceRequest;
TextView roleDisplay, ID, cred, welcome;
private static String currUserRole;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_welcome);
firebaseAuth = FirebaseAuth.getInstance();
fStore = FirebaseFirestore.getInstance();
userID = firebaseAuth.getCurrentUser().getUid();
//Logout Button
btnLogout = (Button) findViewById(R.id.btnLogout);
btnAddService = (Button) findViewById(R.id.btnAddService);
btnEditService = (Button) findViewById(R.id.btnEditService);
btnDeleteUser = (Button) findViewById(R.id.btnDeleteUser);
btnBranchService = (Button) findViewById(R.id.btnBranchService);
btnEditBranch = (Button) findViewById(R.id.btnEditProfile);
btnRequests = (Button) findViewById(R.id.btnRequests);
btnAddSchedule = (Button) findViewById(R.id.AddScheduleButton);
btnUserServiceRequest = (Button) findViewById(R.id.btnUserServRequest);
welcome = (TextView) findViewById(R.id.Welcome);
welcomeMsg = "Welcome to Service Novigrad!";
welcome.setText(welcomeMsg);
final TextView roleDisplay = (TextView) findViewById(R.id.Role);
final TextView ID = (TextView) findViewById(R.id.ID);
final TextView cred = (TextView) findViewById(R.id.Credentials);
DocumentReference documentReference = fStore.collection("users").document(userID);
documentReference.addSnapshotListener(Welcome.this, new EventListener<DocumentSnapshot>() {
@SuppressLint("SetTextI18n")
@Override
public void onEvent(@Nullable DocumentSnapshot value, @Nullable FirebaseFirestoreException error) {
roleDisplay.setText("Role: "+value.getString("role"));
String username = value.getString("username");
//Credentials Message
credMsg = "Logged in as: " + username;
cred.setText(credMsg);
if (value.getString("role").equals("Admin")) {
ID.setText("Administrator");
btnAddService.setVisibility(View.VISIBLE);
btnEditService.setVisibility(View.VISIBLE);
btnDeleteUser.setVisibility(View.VISIBLE);
}
else if (value.getString("role").equals("Employee")) {
firstName=value.getString("fName");
lastName=value.getString("lName");
String idMessage = firstName + " "+ lastName;
ID.setText(idMessage);
btnAddSchedule.setVisibility(View.VISIBLE);
btnBranchService.setVisibility(View.VISIBLE);
btnEditBranch.setVisibility(View.VISIBLE);
btnRequests.setVisibility(View.VISIBLE);
}
else {
firstName=value.getString("fName");
lastName=value.getString("lName");
String idMessage = firstName + " "+ lastName;
ID.setText(idMessage);
btnUserServiceRequest.setVisibility(View.VISIBLE);
}
}
});
btnLogout.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
FirebaseAuth.getInstance().signOut();
Intent login = new Intent(getApplicationContext(), LogIn.class);
startActivity(login);
}
});
btnDeleteUser.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent deleteUser = new Intent(getApplicationContext(), DeleteUser.class);
startActivity(deleteUser);
}
});
btnAddService.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent addService = new Intent(getApplicationContext(), AddService.class);
startActivity(addService);
}
});
btnEditService.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent editService = new Intent(getApplicationContext(), EditService.class);
startActivity(editService);
}
});
btnBranchService.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent branchService = new Intent(getApplicationContext(), BranchServices.class);
startActivity(branchService);
}
});
btnEditBranch.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent pInfo = new Intent(getApplicationContext(), SignUp2E.class);
startActivity(pInfo);
}
});
btnRequests.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent serviceRequests = new Intent(getApplicationContext(), ServiceRequestList.class);
startActivity(serviceRequests);
}
});
btnAddSchedule.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent addSchedule = new Intent(getApplicationContext(), AddSchedule.class);
startActivity(addSchedule);
}});
btnUserServiceRequest.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
/**Intent userServiceRequest = new Intent(getApplicationContext(), UserServiceRequest.class); **/
Intent userServiceRequest = new Intent(getApplicationContext(), BranchSearchBegin.class);
startActivity(userServiceRequest);
}
});
}
} | [
"57692172+MelissaJBakker@users.noreply.github.com"
] | 57692172+MelissaJBakker@users.noreply.github.com |
2f5e0ddade73b39aa0f19d4e765072deb704d7cc | e600d38b708e64dd85f44d3e9875c677fba2258b | /beacon-adapter-google-genomics/src/main/java/com/dnastack/beacon/adater/variants/client/ga4gh/model/CallSet.java | 0dac1e9d61283fe329dc377389979957d7b81455 | [
"Apache-2.0"
] | permissive | mcupak/beacon-adapters | 74aa55ecc7750fb0238205ccd882a84185d80438 | b2d876a107bebaebdaf24b5ecae49110ef4b08f4 | refs/heads/develop | 2021-01-21T21:09:40.508246 | 2017-08-26T14:13:06 | 2017-08-26T14:13:06 | 57,239,329 | 0 | 0 | null | 2016-08-22T17:07:09 | 2016-04-27T19:08:43 | Java | UTF-8 | Java | false | false | 480 | java | package com.dnastack.beacon.adater.variants.client.ga4gh.model;
import lombok.Builder;
import lombok.Getter;
import java.util.List;
import java.util.Map;
/**
* @author Andrey Mochalov (mochalovandrey@gmail.com)
*/
@Builder
@Getter
public class CallSet {
private String id;
private String name;
private String sampleId;
private List<String> variantSetIds;
private Long created;
private Long updated;
private Map<String, List<String>> info;
}
| [
"exclusive_pro@mail.ru"
] | exclusive_pro@mail.ru |
7e3887de7c34c53d4a8df8968bd361b948d1705c | 4cc268d636124368cb0314e8fb2342e35fbbdf75 | /java-algo/src/array/Money3.java | 598991177f116a6fb53070d517f2442e04907150 | [] | no_license | gaechan111187/java-algo | af5b39d185322de7c4643a05c813772fb254dc53 | 9e4716a779cde1c94c30806ff07e5b3458c70ad7 | refs/heads/master | 2021-01-13T01:28:30.021086 | 2015-10-08T08:43:50 | 2015-10-08T08:43:50 | 42,429,218 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 912 | java | package array;
import java.util.Scanner;
/**
* @file_name : Money.java
* @author : chanhok61@daum.net
* @date : 2015. 9. 21.
* @story : 금액을 입력하면 화폐단위별로 분류시키는 문제
*/
public class Money3 {
/**
* 예를 들어서 134,530원 이면
* 거스름돈을 화폐로 표시해주면 5만원: 2, 1만원: 3, 1천원: 4 ...
* 표시하고 10원 미만은 절삭
*/
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("금액을 입력하세요");
int money = scanner.nextInt();
int[] moneyUnit = {50000, 10000, 5000, 1000, 500, 100, 50, 10};
int[] count = new int[moneyUnit.length];
for (int i = 0; i < moneyUnit.length; i++) {
count[i] = money /moneyUnit[i];
money = money%moneyUnit[i];
System.out.println(moneyUnit[i]+"원 : "+count[i]+"개");
}
}
}
| [
"user@user-PC"
] | user@user-PC |
d0f9dac992525a9e15a7328d6630cd56231da706 | aca82a9b8ad16a58ded2a85c955f32ff204f777c | /src/main/java/UniqueBinarySearchTrees.java | 75dc2dc5f57d177fcb9ded23d27c0dd887ccfe37 | [] | no_license | jmnarloch/leetcode | 25a4e662b0bbbb82ff4dc335d2f4827a6297cfd4 | d3043a1f929477a71cfa519cffb4d0d3df85eaf4 | refs/heads/master | 2021-01-10T21:24:03.936257 | 2015-07-16T18:41:43 | 2015-07-16T18:41:43 | 34,535,829 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 937 | java | /**
* Created by jakubnarloch on 10.04.15.
*/
public class UniqueBinarySearchTrees {
public int numTrees(int n) {
// input: the integer with number of unique elements of binary tree
// output: the possible number of unique trees that can be created
// edge cases: n is zero, n is negative, n eq 1, n eq 2
if (n <= 0) {
return 0;
} else if (n == 1) {
return 1;
} else if (n == 2) {
return 2;
}
int[] bt = new int[n + 1];
bt[0] = 1;
bt[1] = 1;
bt[2] = 2;
for (int i = 3; i <= n; i++) {
for (int j = 1; j <= i; j++) {
bt[i] += bt[j - 1] * bt[i - j];
}
}
return bt[n];
}
public static void main(String[] args) {
UniqueBinarySearchTrees bt = new UniqueBinarySearchTrees();
System.out.println(bt.numTrees(3));
}
}
| [
"jmnarloch@gmail.com"
] | jmnarloch@gmail.com |
e129985d25691821beccb0ffd0ceefa8684fcaa8 | 6cbc56bd7726bb191550d30511209525307df810 | /OCD/src/org/bdigital/ocd/model/form/NameAf.java | 08e146a3fcd75aed3c37762fe327f3835c28863f | [] | no_license | barcelonadigital/ocd_java | 4090799b98c5cfb38d069f0e12bb5b77987b2818 | 0c2c193977f8c62ec629a785e10c4cf8cd0282d4 | refs/heads/master | 2020-12-25T19:14:26.474854 | 2014-05-28T15:12:24 | 2014-05-28T15:13:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,600 | java | package org.bdigital.ocd.model.form;
import java.lang.reflect.InvocationTargetException;
import org.apache.commons.beanutils.BeanUtils;
import org.bdigital.ocd.model.Name;
public class NameAf extends org.apache.struts.action.ActionForm {
/**
*
*/
private static final long serialVersionUID = 1L;
String prefix;
String givenName;
String middleName;
String maidenName;
String familyName;
String familyName2;
String sufix;
public NameAf(Name obj) throws IllegalAccessException, InvocationTargetException {
super();
BeanUtils.copyProperties( this, obj );
}
public String getPrefix() {
return prefix;
}
public void setPrefix(String prefix) {
this.prefix = prefix;
}
public String getGivenName() {
return givenName;
}
public void setGivenName(String givenName) {
this.givenName = givenName;
}
public String getMiddleName() {
return middleName;
}
public void setMiddleName(String middleName) {
this.middleName = middleName;
}
public String getMaidenName() {
return maidenName;
}
public void setMaidenName(String maidenName) {
this.maidenName = maidenName;
}
public String getFamilyName() {
return familyName;
}
public void setFamilyName(String familyName) {
this.familyName = familyName;
}
public String getFamilyName2() {
return familyName2;
}
public void setFamilyName2(String familyName2) {
this.familyName2 = familyName2;
}
public String getSufix() {
return sufix;
}
public void setSufix(String sufix) {
this.sufix = sufix;
}
}
| [
"jroda@ce.bdigital.org"
] | jroda@ce.bdigital.org |
06f31dddaab70a908a0f88b4be56817c427ae81e | 2fa7da4d5c011b00718f5188d03afd7971da33e9 | /zigbee-dongle-cc2531/src/main/java/org/bubblecloud/zigbee/api/cluster/impl/security_safety/ias_zone/IAS_ZoneZoneStatusChangeNotificationFilter.java | 6d9f72694eb4beb25f696989bfce8a110a3206d7 | [
"Apache-2.0"
] | permissive | EvanZheng11/zigbee4java | b47eb6e1fb39efacd86831bdff1d05492fc9dce6 | 1170b84c8bd36be30dabc0b6724bedeed96c2784 | refs/heads/master | 2022-01-14T17:32:27.968228 | 2019-07-06T09:54:12 | 2019-07-06T09:54:12 | 271,141,457 | 1 | 0 | Apache-2.0 | 2020-06-10T00:50:34 | 2020-06-10T00:50:33 | null | UTF-8 | Java | false | false | 1,778 | java | /*
Copyright 2012-2013 CNR-ISTI, http://isti.cnr.it
Institute of Information Science and Technologies
of the Italian National Research Council
See the NOTICE file distributed with this work for additional
information regarding copyright ownership
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.
*/
package org.bubblecloud.zigbee.api.cluster.impl.security_safety.ias_zone;
import org.bubblecloud.zigbee.network.ClusterMessage;
import org.bubblecloud.zigbee.network.ClusterFilter;
import org.bubblecloud.zigbee.api.cluster.impl.api.security_safety.IASZone;
import org.bubblecloud.zigbee.api.cluster.impl.core.ZCLFrame;
public class IAS_ZoneZoneStatusChangeNotificationFilter implements ClusterFilter {
public final static IAS_ZoneZoneStatusChangeNotificationFilter FILTER = new IAS_ZoneZoneStatusChangeNotificationFilter();
private IAS_ZoneZoneStatusChangeNotificationFilter() {
}
public boolean match(ClusterMessage clusterMessage) {
if (clusterMessage.getId() != IASZone.ID) return false;
ZCLFrame frame = new ZCLFrame(clusterMessage);
return frame.getHeader().getCommandId() == IASZone.ZONE_STATUS_CHANGE_NOTIFICATION_ID
&& frame.getHeader().getFramecontrol().isClusterSpecificCommand();
}
} | [
"tommi.s.e.laukkanen@gmail.com"
] | tommi.s.e.laukkanen@gmail.com |
be07969e04d235b6e0eb9f3e9a019e1fde6245f1 | 7be999d7edb37c6cf33fea50dba09818bbd36c56 | /W01/S191220130/Spear.java | 38da4e047048d189f31e1b997ecdc6cac31e5660 | [] | no_license | jianhenglian/jwork-2021 | 6b5cdacf0df87719bcedc555f99806192fc9d6bd | d085b4262e9845ab46ccdd5a47b2bd436ceb206c | refs/heads/main | 2023-08-11T15:49:48.616877 | 2021-09-28T15:21:12 | 2021-09-28T15:21:12 | 404,985,902 | 0 | 0 | null | 2021-09-10T06:58:32 | 2021-09-10T06:58:31 | null | UTF-8 | Java | false | false | 156 | java |
public class Spear extends Tool {
public Spear()
{
this.name = "Spear";
this.damage = 5;
this.durability = 5;
}
}
| [
"71576355+ComaX21@users.noreply.github.com"
] | 71576355+ComaX21@users.noreply.github.com |
457c3aaf8a1e0b5e9ed3b59710da41a142532d5e | 108bb12692b37a72b61445f7ac99135759a84ad4 | /src/main/java/io/github/jhipster/gatewayapplication/service/AuditEventService.java | 497d6ff57821be91aa1b2496f9e5fd8b0231f5d3 | [] | no_license | newfacer/jhipsterSampleGatewayApplication | 8a80cbf8d28bc4dd8bd22a083ceed312792a1342 | d28f882be1c625ac342336574d269da3d589a807 | refs/heads/master | 2021-05-08T05:40:18.331992 | 2017-10-11T05:12:44 | 2017-10-11T05:12:44 | 106,508,555 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,839 | java | package io.github.jhipster.gatewayapplication.service;
import io.github.jhipster.gatewayapplication.config.audit.AuditEventConverter;
import io.github.jhipster.gatewayapplication.repository.PersistenceAuditEventRepository;
import org.springframework.boot.actuate.audit.AuditEvent;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.time.Instant;
import java.util.Optional;
/**
* Service for managing audit events.
* <p>
* This is the default implementation to support SpringBoot Actuator AuditEventRepository
*/
@Service
@Transactional
public class AuditEventService {
private final PersistenceAuditEventRepository persistenceAuditEventRepository;
private final AuditEventConverter auditEventConverter;
public AuditEventService(
PersistenceAuditEventRepository persistenceAuditEventRepository,
AuditEventConverter auditEventConverter) {
this.persistenceAuditEventRepository = persistenceAuditEventRepository;
this.auditEventConverter = auditEventConverter;
}
public Page<AuditEvent> findAll(Pageable pageable) {
return persistenceAuditEventRepository.findAll(pageable)
.map(auditEventConverter::convertToAuditEvent);
}
public Page<AuditEvent> findByDates(Instant fromDate, Instant toDate, Pageable pageable) {
return persistenceAuditEventRepository.findAllByAuditEventDateBetween(fromDate, toDate, pageable)
.map(auditEventConverter::convertToAuditEvent);
}
public Optional<AuditEvent> find(Long id) {
return Optional.ofNullable(persistenceAuditEventRepository.findOne(id)).map
(auditEventConverter::convertToAuditEvent);
}
}
| [
"jhipster-bot@users.noreply.github.com"
] | jhipster-bot@users.noreply.github.com |
2b0f4650683e4494479b5caff60be6749b0ac56a | cadfca4a63547eda2008571602de78fe76ffb90c | /PTCentralPro/src/main/java/org/dmfs/rfc5545/recur/ByMonthDaySkipFilter.java | cc1004bbe92cc8ab4cba6e7a9a89eda26719e1ea | [] | no_license | albertsandro/fitness | d0592b75c701f43e29500cebdb7230c2bc902979 | dac9b746ea09703c11da1ccbb6beb60bed96f2c8 | refs/heads/master | 2021-01-25T05:44:07.108151 | 2017-02-01T22:06:51 | 2017-02-01T22:06:51 | 80,669,174 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,660 | java | /*
* Copyright (C) 2015 Marten Gajda <marten@dmfs.org>
*
* 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.
*
*/
package org.dmfs.rfc5545.recur;
import org.dmfs.rfc5545.Instance;
import org.dmfs.rfc5545.calendarmetrics.CalendarMetrics;
import org.dmfs.rfc5545.recur.RecurrenceRule.Skip;
/**
* A filter that ensures invalid day of month numbers are skipped.
*
* @author Marten Gajda <marten@dmfs.org>
*/
final class ByMonthDaySkipFilter extends RuleIterator
{
/**
* Stop iterating (throwing an exception) if this number of empty sets passed in a line, i.e. sets that contain no elements because they have been filtered
* or nothing was expanded.
*/
private final static int MAX_EMPTY_SETS = 1000;
private final CalendarMetrics mCalendarMetrics;
private final Skip mSkip;
/**
* The set we work on. This comes from the previous instance.
*/
private LongArray mWorkingSet = null;
/**
* The set we return.
*/
private final LongArray mResultSet = new LongArray();
public ByMonthDaySkipFilter(RecurrenceRule rule, RuleIterator previous, CalendarMetrics calendarMetrics, long start)
{
super(previous);
mCalendarMetrics = calendarMetrics;
mSkip = rule.getSkip();
}
@Override
public long next()
{
LongArray workingSet = mWorkingSet;
if (workingSet == null || !workingSet.hasNext())
{
mWorkingSet = workingSet = nextSet();
}
return workingSet.next();
}
@Override
LongArray nextSet()
{
LongArray resultSet = mResultSet;
CalendarMetrics calendarMetrics = mCalendarMetrics;
int counter = 0;
do
{
if (counter == MAX_EMPTY_SETS)
{
throw new IllegalArgumentException("too many empty recurrence sets");
}
counter++;
LongArray prev = mPrevious.nextSet();
while (prev.hasNext())
{
long next = Instance.maskWeekday(prev.next());
if (!calendarMetrics.validate(next))
{
if (mSkip == Skip.BACKWARD)
{
next = calendarMetrics.prevDay(next);
}
else
// mSkip == Skip.FORWARD
{
next = calendarMetrics.nextDay(next);
}
}
resultSet.add(next);
}
} while (!resultSet.hasNext());
return resultSet;
}
}
| [
"albertsandro85@gmail.com"
] | albertsandro85@gmail.com |
76ad50d0a3441463bfaeefa084cda2303b70da75 | ed3cb95dcc590e98d09117ea0b4768df18e8f99e | /project_1_1/src/d/i/f/Calc_1_1_3851.java | f8f0f8d135b3c7d578cc90f74b9c3751804aeb8e | [] | no_license | chalstrick/bigRepo1 | ac7fd5785d475b3c38f1328e370ba9a85a751cff | dad1852eef66fcec200df10083959c674fdcc55d | refs/heads/master | 2016-08-11T17:59:16.079541 | 2015-12-18T14:26:49 | 2015-12-18T14:26:49 | 48,244,030 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 131 | java | package d.i.f;
public class Calc_1_1_3851 {
/** @return the sum of a and b */
public int add(int a, int b) {
return a+b;
}
}
| [
"christian.halstrick@sap.com"
] | christian.halstrick@sap.com |
3d0c01c43e09fdfd7b928a36ef1836b5081eccad | 72afc09fd0e8ef12fdd8b8d46e315ab765cd578c | /AirlineReservation/src/air/BookTicket.java | 2571659f70b9d4713d8df0259d86278a8ff62d0e | [] | no_license | MEHRUNNISA2000/AirticketS | 01b3a537611e953bc9bd112775b0bc2188f82f62 | 074cd434a3e8e286658bba27deaea812a653127c | refs/heads/main | 2023-08-13T21:56:11.733662 | 2021-10-07T10:01:11 | 2021-10-07T10:01:11 | 414,145,574 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 11,687 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package air;
import java.sql.*;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
public class BookTicket extends javax.swing.JFrame {
/**
* Creates new form OrderFood
*/
public BookTicket() {
initComponents();
this.setBounds(200, 10, 700, 700);
this.setResizable(false);
try {
Database d = new Database();
PreparedStatement ps = d.con.prepareStatement("select * from flight");
ResultSet rs = ps.executeQuery();
DefaultTableModel td = new DefaultTableModel();
td = (DefaultTableModel) jTable1.getModel();
td.setNumRows(0);
while (rs.next()) {
String company = rs.getString(1);
String from = rs.getString(2);
String to = rs.getString(3);
String date = rs.getString(4);
String total = rs.getString(5);
cmbbx_flight.addItem(rs.getString(1));
td.addRow(new Object[]{company, from, to, date, total});
}
} catch (Exception e) {
System.out.println(e);
}
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jTextField2 = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
jLabel5 = new javax.swing.JLabel();
jTextField4 = new javax.swing.JTextField();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
jTextField5 = new javax.swing.JTextField();
jTextField6 = new javax.swing.JTextField();
jTextField7 = new javax.swing.JTextField();
jTextField8 = new javax.swing.JTextField();
jXDatePicker1 = new org.jdesktop.swingx.JXDatePicker();
dP_dob = new org.jdesktop.swingx.JXDatePicker();
cmbbx_flight = new javax.swing.JComboBox<>();
jComboBox1 = new javax.swing.JComboBox<>();
getContentPane().setLayout(null);
jLabel1.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
jLabel1.setForeground(new java.awt.Color(0, 0, 204));
jLabel1.setText("Book Flight");
getContentPane().add(jLabel1);
jLabel1.setBounds(200, 10, 170, 40);
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null, null},
{null, null, null, null, null}
},
new String [] {
"company", "From", "to", "date", "number of seats"
}
));
jScrollPane1.setViewportView(jTable1);
getContentPane().add(jScrollPane1);
jScrollPane1.setBounds(30, 60, 630, 150);
jLabel2.setText("Company");
getContentPane().add(jLabel2);
jLabel2.setBounds(60, 230, 60, 18);
jLabel3.setText("User Name");
getContentPane().add(jLabel3);
jLabel3.setBounds(50, 280, 100, 20);
jLabel4.setText("Dob");
getContentPane().add(jLabel4);
jLabel4.setBounds(50, 340, 60, 20);
getContentPane().add(jTextField2);
jTextField2.setBounds(170, 270, 180, 40);
jButton1.setText("Book Now");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
getContentPane().add(jButton1);
jButton1.setBounds(380, 610, 80, 30);
jLabel5.setText("Passport number");
getContentPane().add(jLabel5);
jLabel5.setBounds(50, 390, 90, 20);
getContentPane().add(jTextField4);
jTextField4.setBounds(170, 370, 190, 40);
jLabel6.setText("Phone Number");
getContentPane().add(jLabel6);
jLabel6.setBounds(50, 450, 80, 20);
jLabel7.setText("Addresss");
getContentPane().add(jLabel7);
jLabel7.setBounds(50, 510, 100, 20);
jLabel8.setText("From");
getContentPane().add(jLabel8);
jLabel8.setBounds(50, 560, 50, 20);
jLabel9.setText("To");
getContentPane().add(jLabel9);
jLabel9.setBounds(50, 610, 40, 18);
jLabel10.setText("date & Time");
getContentPane().add(jLabel10);
jLabel10.setBounds(50, 650, 70, 18);
getContentPane().add(jTextField5);
jTextField5.setBounds(170, 430, 190, 30);
getContentPane().add(jTextField6);
jTextField6.setBounds(170, 490, 190, 30);
getContentPane().add(jTextField7);
jTextField7.setBounds(170, 540, 190, 40);
getContentPane().add(jTextField8);
jTextField8.setBounds(170, 600, 190, 30);
getContentPane().add(jXDatePicker1);
jXDatePicker1.setBounds(170, 640, 190, 34);
getContentPane().add(dP_dob);
dP_dob.setBounds(170, 320, 180, 34);
cmbbx_flight.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cmbbx_flightActionPerformed(evt);
}
});
getContentPane().add(cmbbx_flight);
cmbbx_flight.setBounds(170, 220, 180, 34);
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
getContentPane().add(jComboBox1);
jComboBox1.setBounds(470, 160, 96, 34);
pack();
}// </editor-fold>//GEN-END:initComponents
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
Database d = new Database();
String company = cmbbx_flight.getSelectedItem().toString();
String uname = jTextField2.getText();
String dob = dP_dob.getDate().toString();
String pno = jTextField4.getText();
String phno = jTextField5.getText();
String address = jTextField6.getText();
String from = jTextField7.getText();
String to = jTextField8.getText();
String date = jXDatePicker1.getDate().toString();
try {
PreparedStatement ps = d.con.prepareStatement("INSERT INTO `airticket`.`ticketbooking` (\n"
+ "`company` ,\n"
+ "`uname` ,\n"
+ "`dob` ,\n"
+ "`passportno` ,\n"
+ "`phno` ,\n"
+ "`address` ,\n"
+ "`from` ,\n"
+ "`to` ,\n"
+ "`datetime`\n"
+ ") VALUES (?,?,?,?,?,?,?,?,?)");
ps.setString(1, company);
ps.setString(2, uname);
ps.setString(3, dob);
ps.setString(4, pno);
ps.setString(5, phno);
ps.setString(6, address);
ps.setString(7, from);
ps.setString(8, to);
ps.setString(9, date);
int val = ps.executeUpdate();
if (val >= 1) {
JOptionPane.showMessageDialog(null, "successfully booked");
} else {
JOptionPane.showMessageDialog(null, "not successfully booked");
}
} catch (Exception e) {
System.out.println("cannot order" + e);
}
}//GEN-LAST:event_jButton1ActionPerformed
private void cmbbx_flightActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmbbx_flightActionPerformed
}//GEN-LAST:event_cmbbx_flightActionPerformed
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(BookTicket.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(BookTicket.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(BookTicket.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(BookTicket.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new BookTicket().setVisible(true);
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JComboBox<String> cmbbx_flight;
private org.jdesktop.swingx.JXDatePicker dP_dob;
private javax.swing.JButton jButton1;
private javax.swing.JComboBox<String> jComboBox1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTable jTable1;
private javax.swing.JTextField jTextField2;
private javax.swing.JTextField jTextField4;
private javax.swing.JTextField jTextField5;
private javax.swing.JTextField jTextField6;
private javax.swing.JTextField jTextField7;
private javax.swing.JTextField jTextField8;
private org.jdesktop.swingx.JXDatePicker jXDatePicker1;
// End of variables declaration//GEN-END:variables
}
| [
"noreply@github.com"
] | noreply@github.com |
90eca3d04ddacd87eb67b4b461be53887baf5460 | 14db63666dc4fdcb6cca3bbc6271c029a7dc7a75 | /Layout_minggu 3/Linearlayout/app/src/androidTest/java/widya/example/linearlayout/ExampleInstrumentedTest.java | 7890b42f7f26310e0f0507540e701bb9379840ba | [] | no_license | widyayuristika/A-Bondowoso_E41191325_Widya-Yuristika-Oktavia_Mobile | 5d94b75f330a1ebcc6131a2f856f23e38d917c75 | 7bfff254aa1daac49f116f6e12b50279204aee80 | refs/heads/main | 2023-06-08T20:16:34.703180 | 2021-06-18T09:15:07 | 2021-06-18T09:15:07 | 350,628,132 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 766 | java | package widya.example.linearlayout;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("widya.example.linearlayout", appContext.getPackageName());
}
} | [
"yuristikawidya@gmail.com"
] | yuristikawidya@gmail.com |
359798713f5d96910d6c83edb5d55de4283ecff2 | 392e1747a54d1edcfc934dab031c7a14a1822944 | /iflow/common/src/main/java/com/pth/iflow/common/models/edo/workflow/singletask/SingleTaskWorkflowSaveRequestEdo.java | f9b2d853553e6d7e9e925cc211c13931604cb559 | [] | no_license | hamidrezaseifi/iflow-java | dcd745251502d42890d95c55a4af1d86f0019d19 | 2bfb61f0b22f9768769b320a85c79d661c02a3d6 | refs/heads/develop | 2023-01-10T10:42:57.228952 | 2020-03-04T13:44:42 | 2020-03-04T13:44:42 | 190,767,957 | 0 | 0 | null | 2023-01-07T13:09:42 | 2019-06-07T15:33:59 | JavaScript | UTF-8 | Java | false | false | 2,973 | java | package com.pth.iflow.common.models.edo.workflow.singletask;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.pth.iflow.common.enums.EWorkflowProcessCommand;
import com.pth.iflow.common.models.base.IFlowJaxbDefinition;
import com.pth.iflow.common.models.edo.AssignItemEdo;
import com.pth.iflow.common.models.validation.AEnumNameValidator;
@XmlRootElement(name = "SingleTaskWorkflowSaveRequest", namespace = IFlowJaxbDefinition.IFlow.NAMESPACE)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(namespace = IFlowJaxbDefinition.IFlow.NAMESPACE, name = "SingleTaskWorkflowSaveRequest" + IFlowJaxbDefinition.TYPE_PREFIX)
public class SingleTaskWorkflowSaveRequestEdo {
@NotNull(message = "Command is not allowed to be null!")
@AEnumNameValidator(enumClazz = EWorkflowProcessCommand.class)
@XmlElement(name = "Command", namespace = IFlowJaxbDefinition.IFlow.NAMESPACE)
private String command;
@NotNull(message = "Workflow must not be null")
@XmlElement(name = "Workflow", namespace = IFlowJaxbDefinition.IFlow.NAMESPACE)
private SingleTaskWorkflowEdo workflow;
@NotNull(message = "ExpireDays must not be null")
@XmlElement(name = "ExpireDays", namespace = IFlowJaxbDefinition.IFlow.NAMESPACE)
private Integer expireDays;
@NotNull(message = "AssignedList must not be null")
@XmlElementWrapper(name = "AssignedList", namespace = IFlowJaxbDefinition.IFlow.NAMESPACE)
@XmlElement(name = "AssignedList", namespace = IFlowJaxbDefinition.IFlow.NAMESPACE)
private List<AssignItemEdo> assigns = new ArrayList<>();
public SingleTaskWorkflowSaveRequestEdo() {
}
public String getCommand() {
return this.command;
}
public void setCommand(final String command) {
this.command = command;
}
/**
* @return the workflow
*/
public SingleTaskWorkflowEdo getWorkflow() {
return this.workflow;
}
/**
* @param workflow the workflow to set
*/
public void setWorkflow(final SingleTaskWorkflowEdo workflow) {
this.workflow = workflow;
}
public Integer getExpireDays() {
return this.expireDays;
}
public void setExpireDays(final Integer expireDays) {
this.expireDays = expireDays;
}
public List<AssignItemEdo> getAssigns() {
return this.assigns;
}
/**
* @param assignedUsers the assignedUsers to set
*/
@JsonSetter
public void setAssigns(final List<AssignItemEdo> assigns) {
this.assigns = new ArrayList<>();
if (assigns != null) {
this.assigns.addAll(assigns);
}
}
}
| [
"hamidrezaseifi@gmail.com"
] | hamidrezaseifi@gmail.com |
7f4b4870b371f01453050c85c0cba24b243d5e64 | af6389b3e2a329b4251a62ccfd68d96b5a3fb1c3 | /test1/src/h_day0212/customer.java | 87111e5c0d9b976ecc0f570746dbf2b50514f0de | [] | no_license | CHANG-HUN-AN/SSangyuong | e7bd5173802ca5d5a490edc1daabc43a7bf1cb2e | 11ab4d6da193f15adb78e45a5a0a8f70b562003b | refs/heads/master | 2021-01-14T19:05:37.425991 | 2020-04-06T09:04:06 | 2020-04-06T09:04:06 | 242,723,071 | 0 | 0 | null | null | null | null | UHC | Java | false | false | 1,326 | java | package h_day0212;
import java.util.Scanner;
public class customer {
Scanner scanner = new Scanner(System.in);
int money = 0;
public String[] withdraw() {
String[] personal_if = new String[3];
System.out.print("이름을 입력하세요.>\t");
String name = scanner.next();
System.out.print("계좌번호을 입력하세요.>\t");
String account = scanner.next();
System.out.print("출금할 돈을 입력해주세요>\t\n");
String money = scanner.next();
for (int i = 0; i < personal_if.length; i++) {
switch (i) {
case 0:
personal_if[i] = name;
break;
case 1:
personal_if[i] = account;
break;
case 2:
personal_if[i] = money;
break;
default:
System.out.println("에러발생");
}//switch
}//fors
return personal_if;
}// method withdraw()
public int money() {
System.out.println("출금할 돈을 입력해주세요>>>\t");
int money_ct = scanner.nextInt();
return money_ct;
}
public String password() {
System.out.println("패스워드를 입력하세요>>>\t");
String password = scanner.next();
return password;
}
public void withdraw_com(int withdrawed_money) {
this.money = withdrawed_money;
System.out.println("현재 가진금액은" + this.money);
}
}// class
| [
"dksck@DESKTOP-RUR9QM8"
] | dksck@DESKTOP-RUR9QM8 |
b609e5e1ef66b907d1a96a7f28fc4715acbdebc6 | 7fa8eaf126bf167c2a49cf9643ad4169318bed23 | /modules/server/master-data/src/main/java/com/df/masterdata/entity/ItemTemplate.java | d70d5c787e25cba6d63e036ee2e45bd6be02820f | [] | no_license | sala223/DelicacyFusion | 95aeda51e2ea6b1c0794abae5a191e20584f742b | 21b110dc78c5180729a2737fec29b59f9c8bc697 | refs/heads/master | 2020-03-30T22:58:59.113883 | 2014-01-21T16:32:09 | 2014-01-21T16:32:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,034 | java | package com.df.masterdata.entity;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;
import org.eclipse.persistence.annotations.Index;
import org.eclipse.persistence.annotations.Indexes;
import org.hibernate.validator.constraints.NotEmpty;
import com.df.blobstore.image.http.ImageLinkCreator;
import com.df.core.persist.eclipselink.MultiTenantSupport;
@XmlRootElement
@Entity
@Indexes({ @Index(name = "IDX_ITEM_TPL_T_NAME", unique = false, columnNames = { "NAME",
MultiTenantSupport.TENANT_COLUMN }) })
@Table(name = "ITEM_TEMPLATE")
public class ItemTemplate extends MasterData {
@NotEmpty(message = "{item.name.NotEmpty}")
@Size(message = "{item.name.Size}", max = 128)
@Column(length = 128, name = "NAME")
private String name;
@Column(length = 64, name = "TYPE")
@Enumerated(EnumType.STRING)
private ItemType type;
@ElementCollection(targetClass = String.class)
@Column(name = "CATEGORY_CODE", length = 255)
@CollectionTable(name = "ITEM_TEMPLATE_CATEGORY", joinColumns = { @JoinColumn(name = "ITEM_CODE", referencedColumnName = "CODE") })
private List<String> categories;
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name = "ITEM_TEMPLATE_PICTURE", joinColumns = { @JoinColumn(name = "ITEM_CODE", referencedColumnName = "CODE") })
private List<PictureRef> pictureSet;
@Lob
@Column(name = "DESCRIPTION")
private String description;
@Column(scale = 2, name = "PRICE")
private float price;
@Column(name = "PRICE_UNIT")
private String currency;
@Enumerated(EnumType.STRING)
@Column(name = "ITEM_UNIT")
private ItemUnit itemUnit;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List<String> getCategories() {
return categories;
}
public ItemType getType() {
return type;
}
public void setType(ItemType type) {
this.type = type;
}
public List<PictureRef> getPictureSet() {
return pictureSet;
}
public PictureRef getImageByImageId(String imageId) {
if (pictureSet != null) {
for (PictureRef pic : pictureSet) {
if (pic.getImageId().equals(imageId)) {
return pic;
}
}
}
return null;
}
public void setPictureSet(List<PictureRef> pictureSet) {
this.pictureSet = pictureSet;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public float getPrice() {
return price;
}
public void setPrice(float price) {
this.price = price;
}
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
public ItemUnit getItemUnit() {
return itemUnit;
}
public void setItemUnit(ItemUnit itemUnit) {
this.itemUnit = itemUnit;
}
@Override
protected void fillDefaultValue() {
super.fillDefaultValue();
if (this.type == null) {
this.type = ItemType.FOOD;
}
}
public void setCategories(String... categories) {
if (this.categories == null) {
this.categories = new ArrayList<String>();
} else {
this.categories.clear();
}
addCategories(categories);
}
public void addCategories(String... categories) {
if (this.categories == null) {
this.categories = new ArrayList<String>();
}
if (categories != null) {
for (String c : categories) {
this.categories.add(c);
}
}
}
public void createImageLink(ImageLinkCreator creator) {
if (this.pictureSet != null) {
for (PictureRef pictureRef : pictureSet) {
pictureRef.setImageLink(creator.createImageLink(pictureRef.getImageId()));
}
}
}
}
| [
"sala223@msn.com"
] | sala223@msn.com |
e2f478c339778735d3bf20b83a9b80c762a17102 | 62f4db442a94feea9abb597c9d076b839fd4c71b | /src/com/darkenedsky/gemini/d20system/D20ClassLevel.java | 76e47c51a2509815c09e4cb26130bd3257c6b91a | [] | no_license | jero-rodriguez/D20CharViewer | 63793782452f2f03da041af5e02c3cb0c1bcd28b | ddee77a53374d700cf154bd3953b3cd030f36564 | refs/heads/master | 2020-06-14T15:54:57.651024 | 2012-08-14T02:42:02 | 2012-08-14T02:42:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,540 | java | package com.darkenedsky.gemini.d20system;
import java.io.Serializable;
import java.util.ArrayList;
import org.jdom.Element;
import com.darkenedsky.gemini.common.Library;
import com.darkenedsky.gemini.common.Specialized;
import com.darkenedsky.gemini.common.XMLSerializable;
import com.darkenedsky.gemini.common.XMLTools;
import com.darkenedsky.gemini.d20system.prereq.RestrictsAlignment;
public class D20ClassLevel implements D20, XMLSerializable, Serializable, RestrictsAlignment {
/**
*
*/
private static final long serialVersionUID = -8278296635971049131L;
private D20Class classLeveled;
public D20Class getClassLeveled() { return classLeveled; }
public D20ClassLevel(D20Class claz) {
classLeveled = claz;
}
public Element toXML(String root) {
Element e = new Element(root);
e.addContent(XMLTools.xml("class", getClass().getName()));
e.addContent(XMLTools.xml("d20class", classLeveled.getUniqueID()));
return e;
}
public D20ClassLevel(Element e) {
classLeveled = (D20Class)Library.instance.getByID(XMLTools.getString(e,"d20class"));
}
public ArrayList<Specialized<D20Skill>> getClassSkills() {
return classLeveled.getClassSkills();
}
public ArrayList<Specialized<D20Skill>> getForbiddenSkills() {
return classLeveled.getForbiddenSkills();
}
@Override
public ArrayList<D20Alignment> getForbiddenAlignments() {
return classLeveled.getForbiddenAlignments();
}
@Override
public String getUniqueID() {
return classLeveled.getUniqueID() + "||" + hashCode();
}
}
| [
"mholden@mattholden.com"
] | mholden@mattholden.com |
94c3abb10e81b2ac8b9d7bab93bfb0bdeabf162a | e82b5b38b384cfb324041f283fddcc3b0b58907c | /src/main/java/com/banco/consultaprecio/service/ConsultaPrecioImpl.java | f509d365319e8cfd79a4a9cfc0ad3dd879195240 | [] | no_license | ErnestoBravo/Prueba-Apiux-ConsultaPrecioMoneda | 77a7574bc8b0525e329980caaa4e093ae0394c9a | de8f1f2c9d556ebac42d6cf3d7042c477efc074c | refs/heads/master | 2023-07-24T13:26:54.066048 | 2021-09-09T22:16:56 | 2021-09-09T22:16:56 | 404,884,362 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 489 | java | package com.banco.consultaprecio.service;
import org.springframework.stereotype.Service;
import com.banco.consultaprecio.model.ConsultaPrecioRq;
@Service
public class ConsultaPrecioImpl implements IConsultaPrecio{
public String getValormoneda(ConsultaPrecioRq request) {
String valor = "0";
if (request.getCode().equals("USD")) {
valor = "789";
}else if (request.getCode().equals("EUR")) {
valor = "957";
}else {
valor = "666";
}
return valor;
}
}
| [
"ebravom.apiux@bancochile.cl"
] | ebravom.apiux@bancochile.cl |
e36ea4abefd0c963fc20228bc605051d4b340193 | f0568343ecd32379a6a2d598bda93fa419847584 | /modules/dfp_axis/src/main/java/com/google/api/ads/dfp/axis/v201302/LongCreativeTemplateVariableValue.java | 9547f4b6315fe194451d50199c02a9225cbc939b | [
"Apache-2.0"
] | permissive | frankzwang/googleads-java-lib | bd098b7b61622bd50352ccca815c4de15c45a545 | 0cf942d2558754589a12b4d9daa5902d7499e43f | refs/heads/master | 2021-01-20T23:20:53.380875 | 2014-07-02T19:14:30 | 2014-07-02T19:14:30 | 21,526,492 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,307 | java | /**
* LongCreativeTemplateVariableValue.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.axis.v201302;
/**
* Stores values of {@link CreativeTemplateVariable} of {@link VariableType#LONG}.
*/
public class LongCreativeTemplateVariableValue extends com.google.api.ads.dfp.axis.v201302.BaseCreativeTemplateVariableValue implements java.io.Serializable {
/* The long value of {@link CreativeTemplateVariable} */
private java.lang.Long value;
public LongCreativeTemplateVariableValue() {
}
public LongCreativeTemplateVariableValue(
java.lang.String uniqueName,
java.lang.String baseCreativeTemplateVariableValueType,
java.lang.Long value) {
super(
uniqueName,
baseCreativeTemplateVariableValueType);
this.value = value;
}
/**
* Gets the value value for this LongCreativeTemplateVariableValue.
*
* @return value * The long value of {@link CreativeTemplateVariable}
*/
public java.lang.Long getValue() {
return value;
}
/**
* Sets the value value for this LongCreativeTemplateVariableValue.
*
* @param value * The long value of {@link CreativeTemplateVariable}
*/
public void setValue(java.lang.Long value) {
this.value = value;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof LongCreativeTemplateVariableValue)) return false;
LongCreativeTemplateVariableValue other = (LongCreativeTemplateVariableValue) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.value==null && other.getValue()==null) ||
(this.value!=null &&
this.value.equals(other.getValue())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getValue() != null) {
_hashCode += getValue().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(LongCreativeTemplateVariableValue.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201302", "LongCreativeTemplateVariableValue"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("value");
elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201302", "value"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
| [
"jradcliff@google.com"
] | jradcliff@google.com |
556ccaf87347bebd39ba29687390183b2c87b0ff | a230d05ccfc80f2f4af80d468e77e436390da0ff | /app/build/generated/not_namespaced_r_class_sources/debug/r/androidx/fragment/R.java | 84878c578b9500a67b2c5437a583106cc6098939 | [] | no_license | moshi-soft/android-wikipedia | ef7e0c3e91ae4fb27a0716a58bf3479bd1cb4c7b | 2359fdd14224c9fdb8b60a9f8baac566ba025e27 | refs/heads/master | 2020-07-25T14:18:48.863609 | 2019-09-14T16:38:39 | 2019-09-14T16:38:39 | 208,320,158 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 12,390 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package androidx.fragment;
public final class R {
private R() {}
public static final class attr {
private attr() {}
public static final int alpha = 0x7f030028;
public static final int coordinatorLayoutStyle = 0x7f0300a6;
public static final int font = 0x7f0300df;
public static final int fontProviderAuthority = 0x7f0300e1;
public static final int fontProviderCerts = 0x7f0300e2;
public static final int fontProviderFetchStrategy = 0x7f0300e3;
public static final int fontProviderFetchTimeout = 0x7f0300e4;
public static final int fontProviderPackage = 0x7f0300e5;
public static final int fontProviderQuery = 0x7f0300e6;
public static final int fontStyle = 0x7f0300e7;
public static final int fontVariationSettings = 0x7f0300e8;
public static final int fontWeight = 0x7f0300e9;
public static final int keylines = 0x7f030116;
public static final int layout_anchor = 0x7f03011c;
public static final int layout_anchorGravity = 0x7f03011d;
public static final int layout_behavior = 0x7f03011e;
public static final int layout_dodgeInsetEdges = 0x7f03014a;
public static final int layout_insetEdge = 0x7f030153;
public static final int layout_keyline = 0x7f030154;
public static final int statusBarBackground = 0x7f0301b7;
public static final int ttcIndex = 0x7f030219;
}
public static final class color {
private color() {}
public static final int notification_action_color_filter = 0x7f05006a;
public static final int notification_icon_bg_color = 0x7f05006b;
public static final int ripple_material_light = 0x7f050075;
public static final int secondary_text_default_material_light = 0x7f050077;
}
public static final class dimen {
private dimen() {}
public static final int compat_button_inset_horizontal_material = 0x7f060050;
public static final int compat_button_inset_vertical_material = 0x7f060051;
public static final int compat_button_padding_horizontal_material = 0x7f060052;
public static final int compat_button_padding_vertical_material = 0x7f060053;
public static final int compat_control_corner_material = 0x7f060054;
public static final int compat_notification_large_icon_max_height = 0x7f060055;
public static final int compat_notification_large_icon_max_width = 0x7f060056;
public static final int notification_action_icon_size = 0x7f0600c2;
public static final int notification_action_text_size = 0x7f0600c3;
public static final int notification_big_circle_margin = 0x7f0600c4;
public static final int notification_content_margin_start = 0x7f0600c5;
public static final int notification_large_icon_height = 0x7f0600c6;
public static final int notification_large_icon_width = 0x7f0600c7;
public static final int notification_main_column_padding_top = 0x7f0600c8;
public static final int notification_media_narrow_margin = 0x7f0600c9;
public static final int notification_right_icon_size = 0x7f0600ca;
public static final int notification_right_side_padding_top = 0x7f0600cb;
public static final int notification_small_icon_background_padding = 0x7f0600cc;
public static final int notification_small_icon_size_as_large = 0x7f0600cd;
public static final int notification_subtext_size = 0x7f0600ce;
public static final int notification_top_pad = 0x7f0600cf;
public static final int notification_top_pad_large_text = 0x7f0600d0;
}
public static final class drawable {
private drawable() {}
public static final int notification_action_background = 0x7f07006e;
public static final int notification_bg = 0x7f07006f;
public static final int notification_bg_low = 0x7f070070;
public static final int notification_bg_low_normal = 0x7f070071;
public static final int notification_bg_low_pressed = 0x7f070072;
public static final int notification_bg_normal = 0x7f070073;
public static final int notification_bg_normal_pressed = 0x7f070074;
public static final int notification_icon_background = 0x7f070075;
public static final int notification_template_icon_bg = 0x7f070076;
public static final int notification_template_icon_low_bg = 0x7f070077;
public static final int notification_tile_bg = 0x7f070078;
public static final int notify_panel_notification_icon_bg = 0x7f070079;
}
public static final class id {
private id() {}
public static final int action_container = 0x7f08000d;
public static final int action_divider = 0x7f08000f;
public static final int action_image = 0x7f080010;
public static final int action_text = 0x7f080016;
public static final int actions = 0x7f080017;
public static final int async = 0x7f08001d;
public static final int blocking = 0x7f080021;
public static final int bottom = 0x7f080022;
public static final int chronometer = 0x7f080029;
public static final int end = 0x7f08003e;
public static final int forever = 0x7f080049;
public static final int icon = 0x7f080050;
public static final int icon_group = 0x7f080051;
public static final int info = 0x7f080054;
public static final int italic = 0x7f080056;
public static final int left = 0x7f08005a;
public static final int line1 = 0x7f08005b;
public static final int line3 = 0x7f08005c;
public static final int none = 0x7f08006f;
public static final int normal = 0x7f080070;
public static final int notification_background = 0x7f080071;
public static final int notification_main_column = 0x7f080072;
public static final int notification_main_column_container = 0x7f080073;
public static final int right = 0x7f08007f;
public static final int right_icon = 0x7f080080;
public static final int right_side = 0x7f080081;
public static final int start = 0x7f0800a8;
public static final int tag_transition_group = 0x7f0800ad;
public static final int tag_unhandled_key_event_manager = 0x7f0800ae;
public static final int tag_unhandled_key_listeners = 0x7f0800af;
public static final int text = 0x7f0800b0;
public static final int text2 = 0x7f0800b1;
public static final int time = 0x7f0800bc;
public static final int title = 0x7f0800bd;
public static final int top = 0x7f0800c0;
}
public static final class integer {
private integer() {}
public static final int status_bar_notification_info_maxnum = 0x7f09000e;
}
public static final class layout {
private layout() {}
public static final int notification_action = 0x7f0b0030;
public static final int notification_action_tombstone = 0x7f0b0031;
public static final int notification_template_custom_big = 0x7f0b0032;
public static final int notification_template_icon_group = 0x7f0b0033;
public static final int notification_template_part_chronometer = 0x7f0b0034;
public static final int notification_template_part_time = 0x7f0b0035;
}
public static final class string {
private string() {}
public static final int status_bar_notification_info_overflow = 0x7f0f0038;
}
public static final class style {
private style() {}
public static final int TextAppearance_Compat_Notification = 0x7f100116;
public static final int TextAppearance_Compat_Notification_Info = 0x7f100117;
public static final int TextAppearance_Compat_Notification_Line2 = 0x7f100118;
public static final int TextAppearance_Compat_Notification_Time = 0x7f100119;
public static final int TextAppearance_Compat_Notification_Title = 0x7f10011a;
public static final int Widget_Compat_NotificationActionContainer = 0x7f1001c0;
public static final int Widget_Compat_NotificationActionText = 0x7f1001c1;
public static final int Widget_Support_CoordinatorLayout = 0x7f1001f0;
}
public static final class styleable {
private styleable() {}
public static final int[] ColorStateListItem = { 0x10101a5, 0x101031f, 0x7f030028 };
public static final int ColorStateListItem_android_color = 0;
public static final int ColorStateListItem_android_alpha = 1;
public static final int ColorStateListItem_alpha = 2;
public static final int[] CoordinatorLayout = { 0x7f030116, 0x7f0301b7 };
public static final int CoordinatorLayout_keylines = 0;
public static final int CoordinatorLayout_statusBarBackground = 1;
public static final int[] CoordinatorLayout_Layout = { 0x10100b3, 0x7f03011c, 0x7f03011d, 0x7f03011e, 0x7f03014a, 0x7f030153, 0x7f030154 };
public static final int CoordinatorLayout_Layout_android_layout_gravity = 0;
public static final int CoordinatorLayout_Layout_layout_anchor = 1;
public static final int CoordinatorLayout_Layout_layout_anchorGravity = 2;
public static final int CoordinatorLayout_Layout_layout_behavior = 3;
public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 4;
public static final int CoordinatorLayout_Layout_layout_insetEdge = 5;
public static final int CoordinatorLayout_Layout_layout_keyline = 6;
public static final int[] FontFamily = { 0x7f0300e1, 0x7f0300e2, 0x7f0300e3, 0x7f0300e4, 0x7f0300e5, 0x7f0300e6 };
public static final int FontFamily_fontProviderAuthority = 0;
public static final int FontFamily_fontProviderCerts = 1;
public static final int FontFamily_fontProviderFetchStrategy = 2;
public static final int FontFamily_fontProviderFetchTimeout = 3;
public static final int FontFamily_fontProviderPackage = 4;
public static final int FontFamily_fontProviderQuery = 5;
public static final int[] FontFamilyFont = { 0x1010532, 0x1010533, 0x101053f, 0x101056f, 0x1010570, 0x7f0300df, 0x7f0300e7, 0x7f0300e8, 0x7f0300e9, 0x7f030219 };
public static final int FontFamilyFont_android_font = 0;
public static final int FontFamilyFont_android_fontWeight = 1;
public static final int FontFamilyFont_android_fontStyle = 2;
public static final int FontFamilyFont_android_ttcIndex = 3;
public static final int FontFamilyFont_android_fontVariationSettings = 4;
public static final int FontFamilyFont_font = 5;
public static final int FontFamilyFont_fontStyle = 6;
public static final int FontFamilyFont_fontVariationSettings = 7;
public static final int FontFamilyFont_fontWeight = 8;
public static final int FontFamilyFont_ttcIndex = 9;
public static final int[] GradientColor = { 0x101019d, 0x101019e, 0x10101a1, 0x10101a2, 0x10101a3, 0x10101a4, 0x1010201, 0x101020b, 0x1010510, 0x1010511, 0x1010512, 0x1010513 };
public static final int GradientColor_android_startColor = 0;
public static final int GradientColor_android_endColor = 1;
public static final int GradientColor_android_type = 2;
public static final int GradientColor_android_centerX = 3;
public static final int GradientColor_android_centerY = 4;
public static final int GradientColor_android_gradientRadius = 5;
public static final int GradientColor_android_tileMode = 6;
public static final int GradientColor_android_centerColor = 7;
public static final int GradientColor_android_startX = 8;
public static final int GradientColor_android_startY = 9;
public static final int GradientColor_android_endX = 10;
public static final int GradientColor_android_endY = 11;
public static final int[] GradientColorItem = { 0x10101a5, 0x1010514 };
public static final int GradientColorItem_android_color = 0;
public static final int GradientColorItem_android_offset = 1;
}
}
| [
"rmoshiur81@gmail.com"
] | rmoshiur81@gmail.com |
3b2af86d5a589f49ab443bc3dff6f6010c34d725 | 21ab7480dfc055dbb0f275218bb6a67ddf14e3f4 | /QuanlyHsWs_server/src/entities/KieuQuanhe.java | d433ff0a9583b3a0acb78a515f3916765df21bc1 | [] | no_license | x981/Rest-sercurity | 3a0f708a4712cf5a412573e8e26eead048fc7ad5 | 752d1b7e371cfeadc5e30c8610873fb3a100729c | refs/heads/master | 2021-01-01T03:49:55.839197 | 2016-05-19T03:15:24 | 2016-05-19T03:15:24 | 59,079,127 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,623 | java | package entities;
// Generated Nov 23, 2015 4:06:50 PM by Hibernate Tools 3.4.0.CR1
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
/**
* KieuQuanhe generated by hbm2java
*/
@Entity
@Table(name = "KieuQuanhe", catalog = "Sunshine_final")
public class KieuQuanhe implements java.io.Serializable {
private int maQh;
private String tenQh;
private String ghichu;
private Set<Quanhe> quanhes = new HashSet<Quanhe>(0);
public KieuQuanhe() {
}
public KieuQuanhe(int maQh, String tenQh) {
this.maQh = maQh;
this.tenQh = tenQh;
}
public KieuQuanhe(int maQh, String tenQh, String ghichu, Set<Quanhe> quanhes) {
this.maQh = maQh;
this.tenQh = tenQh;
this.ghichu = ghichu;
this.quanhes = quanhes;
}
@Id
@Column(name = "MaQH", unique = true, nullable = false)
public int getMaQh() {
return this.maQh;
}
public void setMaQh(int maQh) {
this.maQh = maQh;
}
@Column(name = "TenQH", nullable = false, length = 50)
public String getTenQh() {
return this.tenQh;
}
public void setTenQh(String tenQh) {
this.tenQh = tenQh;
}
@Column(name = "Ghichu", length = 250)
public String getGhichu() {
return this.ghichu;
}
public void setGhichu(String ghichu) {
this.ghichu = ghichu;
}
@OneToMany(fetch = FetchType.LAZY, mappedBy = "kieuQuanhe")
public Set<Quanhe> getQuanhes() {
return this.quanhes;
}
public void setQuanhes(Set<Quanhe> quanhes) {
this.quanhes = quanhes;
}
}
| [
"aff0511@gmail.com"
] | aff0511@gmail.com |
503406b2ee03851b9f2b8444afcf8d06c1568aff | 383fc142d45dc04f0bd3794bb4d72640361660c2 | /src/main/java/design/principle/dependenceinversion/PythonCourse.java | baba4ee977dbbf56029b76fe196bc762264e65e8 | [] | no_license | HoleLin/DesignPatternLearning | 152a3b944cb4b985141b7af441ad60235add6666 | b6da9939b9d77d0054f46509cc02234c3dbaf4ab | refs/heads/master | 2023-03-18T19:49:40.903332 | 2021-05-30T10:07:48 | 2023-03-13T15:34:30 | 184,872,292 | 0 | 1 | null | 2023-03-13T15:36:28 | 2019-05-04T08:51:57 | Java | UTF-8 | Java | false | false | 274 | java | package design.principle.dependenceinversion;
/**
* ClassName: PythonCourse
*
* @author HoleLin
* @version 1.0
* @date 2019/5/3
*/
public class PythonCourse implements ICourse {
public void studyCourse() {
System.out.println("HoleLin在学习Python课程");
}
}
| [
"HoleLin@163.com"
] | HoleLin@163.com |
da6c6608446ab131c21b2fad53704d94d99ff376 | c36e7ba63d557b58199a45a569a52d237c31ab6e | /VaadinCRUD/src/main/java/nl/bos/vaadincrud/EAccountService.java | 4edf95cfd09822f2ca63ff73a1bc6225c538211a | [] | no_license | HetBenkt/JavaSkills | 3f09d18d96612222ff6ac412062857e4013a90c5 | f998a1bc9186a7cf38fc78f02ae1acd2cc2a2d95 | refs/heads/master | 2023-06-09T03:28:27.568504 | 2023-06-01T12:50:13 | 2023-06-01T12:50:13 | 65,486,994 | 1 | 0 | null | 2023-04-17T06:09:16 | 2016-08-11T17:07:58 | Java | UTF-8 | Java | false | false | 406 | java | package nl.bos.vaadincrud;
import java.util.List;
public enum EAccountService implements IAccountService {
INSTANCE;
private final IAccountDAO accountDAO = new AccountDAO();
@Override
public AccountDTO getAccount(long id) {
return accountDAO.getAccount(id);
}
@Override
public List<AccountDTO> getAllAccounts() {
return accountDAO.getAllAccounts();
}
}
| [
"Abos@-02"
] | Abos@-02 |
476743419a44c2819fc50e761079bd6eb7f64ca6 | 6ce05ce4a2a09da21c8f68d135a8e638ac086421 | /app/src/main/java/com/example/jerry/mvpandroid_master/main/MainInteractor.java | 109fd644ac5233f0638b90af5a15cc0ceb0613af | [] | no_license | jerryyh/MvpAndroidmaster | 92b7769597e4e24d265c46879156a47b5d30140b | 4053b8ee62ee87699afde515527aa864f059a270 | refs/heads/master | 2020-03-21T21:57:43.941322 | 2018-07-03T09:17:20 | 2018-07-03T09:17:20 | 139,095,761 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 952 | java | package com.example.jerry.mvpandroid_master.main;
import com.example.jerry.mvpandroid_master.IMyAidl;
import com.example.jerry.mvpandroid_master.SubjectApi;
import com.wzgiceman.rxretrofitlibrary.retrofit_rx.exception.ApiException;
/**
* Created by jerry on 2018/6/28.
*/
public interface MainInteractor {
interface OnGetDataResultFinishListener {
/**
* 成功后回调方法
*
* @param resulte
* @param mothead
*/
void onNext(String resulte, String mothead);
/**
* 失败
* 失败或者错误方法
* 自定义异常处理
*
* @param e
*/
void onError(ApiException e);
void showText(String s);
}
void getServiceData(IMyAidl mAidl,OnGetDataResultFinishListener listener);
void getDataResult(OnGetDataResultFinishListener listenter, SubjectApi baseApi, MainActivity rxAppCompatActivity);
}
| [
"569061051@qq.com"
] | 569061051@qq.com |
1d289cff1618b30317759973870fed698fa2391a | c5b931b9cbfa3dbbfe519ff46da8a00bf6710494 | /src/main/java/com/github/alexthe666/iceandfire/client/render/entity/RenderHydra.java | c8918fbfa24f526bc72fdae8c7a3095c25acf53e | [] | no_license | ETStareak/Ice_and_Fire | 4df690c161036188f25a39711759fa03f9543958 | 31dcce21f06763fee7e33683a631f0a133f67130 | refs/heads/1.8.4-1.12.2 | 2023-03-17T01:05:31.176702 | 2022-02-21T17:34:49 | 2022-02-21T17:34:49 | 260,837,962 | 1 | 0 | null | 2020-05-15T16:25:56 | 2020-05-03T05:54:48 | Java | UTF-8 | Java | false | false | 1,822 | java | package com.github.alexthe666.iceandfire.client.render.entity;
import com.github.alexthe666.iceandfire.client.model.ModelHydraBody;
import com.github.alexthe666.iceandfire.client.render.entity.layer.LayerGenericGlowing;
import com.github.alexthe666.iceandfire.client.render.entity.layer.LayerHydraHead;
import com.github.alexthe666.iceandfire.entity.EntityHydra;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
public class RenderHydra extends RenderLiving<EntityHydra> {
public static final ResourceLocation TEXUTURE_0 = new ResourceLocation("iceandfire:textures/models/hydra/hydra_0.png");
public static final ResourceLocation TEXUTURE_1 = new ResourceLocation("iceandfire:textures/models/hydra/hydra_1.png");
public static final ResourceLocation TEXUTURE_2 = new ResourceLocation("iceandfire:textures/models/hydra/hydra_2.png");
public static final ResourceLocation TEXUTURE_EYES = new ResourceLocation("iceandfire:textures/models/hydra/hydra_eyes.png");
public RenderHydra(RenderManager renderManager) {
super(renderManager, new ModelHydraBody(), 1.2F);
this.addLayer(new LayerHydraHead(this));
this.addLayer(new LayerGenericGlowing(this, TEXUTURE_EYES));
}
@Override
public void preRenderCallback(EntityHydra entitylivingbaseIn, float partialTickTime) {
GL11.glScalef(1.75F, 1.75F, 1.75F);
}
@Override
protected ResourceLocation getEntityTexture(EntityHydra gorgon) {
switch (gorgon.getVariant()) {
default:
return TEXUTURE_0;
case 1:
return TEXUTURE_1;
case 2:
return TEXUTURE_2;
}
}
}
| [
"alex.rowlands@cox.net"
] | alex.rowlands@cox.net |
bb5d272361c13fd01635b088fec5d91f7e1b45a4 | c1ceaf08516a77ad5325554c4aa043067db582db | /FlooringMastery/flooring-mastery-Ollie-Dickson/FlooringMastery/src/main/java/com/sg/flooring/dao/FlooringPersistenceException.java | 99447c16d74d99ff37c525be60be36b75ffa1cfd | [] | no_license | Ollie-Dickson/mthree-Java-development-projects | 53486b67b1d8769798e493f2584b456317a041f6 | 6ee2393cf5d0bda0080bde60fcd4fb1a4d5d4300 | refs/heads/master | 2023-01-30T18:47:54.671197 | 2020-12-11T14:23:54 | 2020-12-11T14:23:54 | 320,590,987 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 295 | java | package com.sg.flooring.dao;
public class FlooringPersistenceException extends Exception{
public FlooringPersistenceException(String message) {
super(message);
}
public FlooringPersistenceException(String message, Throwable cause) {
super(message, cause);
}
}
| [
"oliverdickson97@gmail.com"
] | oliverdickson97@gmail.com |
0cb1c4f7ca644d2cdfe973c2b6f51d810dddf550 | a24d5bb35a1f1e6aecebd08647c62f929ef70dfd | /backend/src/main/java/acm/objects/database/SetupDatabaseBean.java | f2d26562f30fcdeb221263e85865d39b40031c17 | [] | no_license | PranilDahal/Eagle-Post | 94f0221886dd45d29dbef23994599f47c8f40a1b | c1353b18bbc681b5163b271de45d523a16a27b1d | refs/heads/V1.0_Master | 2022-06-26T01:40:37.429757 | 2019-05-23T16:46:23 | 2019-05-23T16:46:23 | 142,788,194 | 0 | 1 | null | 2022-06-21T01:09:26 | 2018-07-29T19:06:38 | JavaScript | UTF-8 | Java | false | false | 2,075 | java | package acm.objects.database;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.jdbc.core.simple.SimpleJdbcInsert;
import org.springframework.stereotype.Component;
import acm.objects.SetupTestObject;
/**
* @author Pranil
* @description This is used during testing whether your development environment is correctly setup.
*
*/
@Component
public class SetupDatabaseBean {
public static final String LIST_TEST = "select * from testSetup";
public static final String ADD_TEST = "insert into testSetup (first_name, last_name, cin) values (?, ?, ?)";
private JdbcTemplate jdbcTemplate;
private SimpleJdbcInsert insertTestValue;
@Autowired
public void setDataSource(DataSource dataSource) {
this.jdbcTemplate = new JdbcTemplate(dataSource);
this.insertTestValue = new SimpleJdbcInsert(dataSource).withTableName("testsetup");
}
public List<SetupTestObject> getTestValues() {
List<SetupTestObject> employees = this.jdbcTemplate.query(LIST_TEST, new TestValuesMapper());
return employees;
}
public int insertTestValues(SetupTestObject value) {
Map<String, Object> parameters = new HashMap<String, Object>();
parameters.put("first_name", value.getFirst_name());
parameters.put("last_name", value.getLast_name());
parameters.put("cin", value.getCin());
Number newId = insertTestValue.executeAndReturnKey(parameters);
return newId.intValue();
}
private static final class TestValuesMapper implements RowMapper<SetupTestObject> {
@Override
public SetupTestObject mapRow(ResultSet rs, int rowNum) throws SQLException {
String firstName = rs.getString("first_name");
String lastName = rs.getString("last_name");
Integer cin = rs.getInt("cin");
return new SetupTestObject(firstName, lastName, cin);
}
}
} | [
"dahalpranil@gmail.com"
] | dahalpranil@gmail.com |
2ba2d73dbb7a9ae288f67e36ecbcd86e54f16f1c | 8dec3b35d2d4c3c423275a56d577434a1a3bc7e3 | /backend/src/main/java/com/quickbase/Main.java | 92f11825293a437cf1418e555ee2f9142a229e80 | [] | no_license | QuickBase/interview-demos | 1d8d2e8f6cb80b2ba91fec20734c0a77e6d34cdf | 99b1297eaed9f5a94decb0e33a569918d99119e5 | refs/heads/master | 2023-04-23T06:19:30.577731 | 2023-02-21T01:45:08 | 2023-02-21T01:45:08 | 61,741,917 | 7 | 122 | null | 2023-04-10T07:25:42 | 2016-06-22T18:25:03 | C# | UTF-8 | Java | false | false | 779 | java | package com.quickbase;
import com.quickbase.devint.DBManager;
import com.quickbase.devint.DBManagerImpl;
import java.sql.Connection;
/**
* The main method of the executable JAR generated from this repository. This is to let you
* execute something from the command-line or IDE for the purposes of demonstration, but you can choose
* to demonstrate in a different way (e.g. if you're using a framework)
*/
public class Main {
public static void main( String args[] ) {
System.out.println("Starting.");
System.out.print("Getting DB Connection...");
DBManager dbm = new DBManagerImpl();
Connection c = dbm.getConnection();
if (null == c ) {
System.out.println("failed.");
System.exit(1);
}
}
} | [
"adawson@quickbase.com"
] | adawson@quickbase.com |
fa21c4eeff288587cea857094365af870f8845cf | 7ae81a25f4ff76b1d43a6dd8b2c9414f42e293b9 | /basiclib/src/main/java/com/sirui/basiclib/widget/upgrade/UpgradeBean.java | 9b262a4d89da981a43188484ded39a733d691faf | [] | no_license | 52Hewei/SRHealth | 9b69efdda83e4efeb9b117b589dc278c3b14de90 | 3d7e46dc15f8c9fa088c373da437d475b00307ba | refs/heads/master | 2020-03-19T09:35:29.658619 | 2018-06-07T09:29:50 | 2018-06-07T09:29:50 | 136,298,690 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,109 | java | package com.sirui.basiclib.widget.upgrade;
/**
* @author LuoSiYe
* Created on 2017/10/19.
*/
public class UpgradeBean extends RootPojo{
Upgrade data;
public Upgrade getData() {
return data;
}
public void setData(Upgrade data) {
this.data = data;
}
public class Upgrade{
String romCustomerVersion;
String isDefault;
String versionUrl;
String versionType;
String updFlag;
String versionCompareNo;
String version;
public String getRemark1() {
return remark1;
}
public void setRemark1(String remark1) {
this.remark1 = remark1;
}
String remark1;
public String getRomCustomerVersion() {
return romCustomerVersion;
}
public void setRomCustomerVersion(String romCustomerVersion) {
this.romCustomerVersion = romCustomerVersion;
}
public String getIsDefault() {
return isDefault;
}
public void setIsDefault(String isDefault) {
this.isDefault = isDefault;
}
public String getVersionUrl() {
return versionUrl;
}
public void setVersionUrl(String versionUrl) {
this.versionUrl = versionUrl;
}
public String getVersionType() {
return versionType;
}
public void setVersionType(String versionType) {
this.versionType = versionType;
}
public String getUpdFlag() {
return updFlag;
}
public void setUpdFlag(String updFlag) {
this.updFlag = updFlag;
}
public String getVersionCompareNo() {
return versionCompareNo;
}
public void setVersionCompareNo(String versionCompareNo) {
this.versionCompareNo = versionCompareNo;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
}
}
| [
"562185476@qq.com"
] | 562185476@qq.com |
5c6cf5bc9d2102d368153ea65737b25b738f9420 | ca0e9689023cc9998c7f24b9e0532261fd976e0e | /src/com/tencent/mm/plugin/sns/ui/SnsCommentDetailUI$7.java | c5267fa394706bd10d2a862eae89f8c838036bd3 | [] | no_license | honeyflyfish/com.tencent.mm | c7e992f51070f6ac5e9c05e9a2babd7b712cf713 | ce6e605ff98164359a7073ab9a62a3f3101b8c34 | refs/heads/master | 2020-03-28T15:42:52.284117 | 2016-07-19T16:33:30 | 2016-07-19T16:33:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 421 | java | package com.tencent.mm.plugin.sns.ui;
import com.tencent.mm.e.a.ev;
import com.tencent.mm.sdk.c.c;
final class SnsCommentDetailUI$7
extends c<ev>
{
SnsCommentDetailUI$7(SnsCommentDetailUI paramSnsCommentDetailUI)
{
kum = ev.class.getName().hashCode();
}
}
/* Location:
* Qualified Name: com.tencent.mm.plugin.sns.ui.SnsCommentDetailUI.7
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/ | [
"reverseengineeringer@hackeradmin.com"
] | reverseengineeringer@hackeradmin.com |
c03bcd25417805b281d71be0360dba35123ea9cb | 0efd81befd1445937adf7ad76ea9b0f32b5f625d | /.history/Random/DijkstraAlgorithm_20210317161840.java | ef460303cf7f2aa87f371b45bf3e42fdbec82418 | [] | no_license | Aman-kulshreshtha/100DaysOfCode | 1a080eb36a65c50b7e18db7c4eac508c3f51e2c4 | be4cb2fd80cfe5b7e2996eed0a35ad7f390813c1 | refs/heads/main | 2023-03-23T07:11:26.924928 | 2021-03-21T16:16:46 | 2021-03-21T16:16:46 | 346,999,930 | 0 | 0 | null | 2021-03-12T09:41:46 | 2021-03-12T08:49:46 | null | UTF-8 | Java | false | false | 718 | java | import java.util.*;
import java.io.*;
import java.lang.*;
public class DijkstraAlgorithm {
public static void main(String[] args) {
}
public static void dijkstra(int[][] graph) {
boolean[] visited = new boolean[graph.length];
var distance = new HashMap<Integer, Integer>();
for(int i = 0 ; i < graph.length ; i++) {
distance.put(i, Integer.MAX_VALUE);
}
int vertex = minimum(visited,graph,distance);
var notVisited = new HashSet<Integer>
while()
}
private static int minimum(boolean[] visited, int[][] graph, HashMap<Integer, Integer> distance) {
return 0;
}
} | [
"aman21102000@gmail.com"
] | aman21102000@gmail.com |
28f9e578b7b89ee3e5dbd2685c8ba825e2a6b12c | 09d79a238af8126549f1f161afe778048978c41c | /src/main/java/com/liveus/common/Validator/ValidateEntity.java | 9924ed0ba3191e3bf7862844772e46458bd9f326 | [] | no_license | Liveus/homePage | 45dcd49e7844107d8bae9141d247feede18456ad | 6325ac59c6e15cf182a04464213b5ff07c0e9c5b | refs/heads/master | 2022-12-13T01:17:39.049131 | 2020-12-29T06:15:31 | 2020-12-29T06:15:31 | 148,293,731 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,097 | java | package com.liveus.common.Validator;
import com.liveus.common.Validator.FlagValidator;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Email;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
public class ValidateEntity implements Serializable {
@NotBlank
@Length(min = 2,max = 10)
private String name;
@Min(value = 1)
private int age;
@NotBlank
@Email
private String email;
@FlagValidator(values = "1,2,3")
private String flag;
public String getFlag() {
return flag;
}
public void setFlag(String flag) {
this.flag = flag;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
}
| [
"17826806306@163.com"
] | 17826806306@163.com |
208c08f2a028813c4ba9398bc4b2e5fe8c02cb3a | fa50b2cac63a1fde152c069a24f310f167493420 | /src/com/nieyue/dao/UserDao.java | 1c95d2f8180fd996b31d59c3f95dfc7ed725407e | [] | no_license | nieyue/WeChatForwardingPlatform | ac4d5ad6f3a1fccb1c13e5aecc92181030a38b90 | 067befc3c73ff66b431158b07c249afbbba8bd79 | refs/heads/master | 2021-01-19T16:15:38.598305 | 2017-05-05T11:57:45 | 2017-05-05T11:57:45 | 88,258,287 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,012 | java | package com.nieyue.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.nieyue.bean.User;
/**
* 用户管理接口
* @author yy
*
*/
public interface UserDao {
/** 账户登录 */
public User userLogin(@Param("name")String name,@Param("password")String password);
/** 微信隐形账户登录 */
public User weixinBaseUserLogin(String openid);
/** 检测登录帐号是否有效 */
public boolean chkLoginName(String name) ;
/** 找回账户 */
public User retrieveAccount(String name) ;
/** 新增注册账户 */
public boolean addUser(User user) ;
/** 修改注册账户信息 */
public boolean updateUser(User user) ;
/** 分页查询注册账户 */
public List<User> searchUser(@Param("pageNum") Integer pageNum,@Param("pageSize")Integer pageSize) ;
/** 浏览注册账户*/
public List<User> browseUser();
/** 删除注册账户 */
public boolean delUser(Integer userId) ;
/**装载注册账户 */
public User loadUser(Integer userId);
}
| [
"278076304@qq.com"
] | 278076304@qq.com |
2dce00b5150b5f0c46d73bccd1c65d36b0ac2e27 | a67448a1974f6e8e1b2dabf81d0a1adfe9af3609 | /src/LC53.java | 271b7e443319f55e4d8df541eb768d04c70f1d80 | [] | no_license | OriginalCoke/LeetCode | 3ebce4089d67931c00ae0a802ef5b6c377170490 | 6a226e83df80bb8f4c6fbff3da156d7d8c5f8f43 | refs/heads/master | 2021-07-12T15:51:56.189765 | 2020-06-26T04:32:58 | 2020-06-26T04:32:58 | 164,371,828 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 391 | java | public class LC53 {
//Maximum Subarray
//Amazon
//sum 记录目前为止的和,如果和小于0就重置,max 记录最大值
public int maxSubArray(int[] nums) {
int sum = 0, max = Integer.MIN_VALUE;
for (int n : nums) {
if (sum >= 0) sum += n;
else sum = n;
max = Math.max(sum, max);
}
return max;
}
}
| [
"whuang36@hawk.iit.edu"
] | whuang36@hawk.iit.edu |
26e2bd3bc23948585aabfe817185cd519ab902c3 | c6541338f3d56435d3bb76701f265e2805adaad0 | /algorithm-solvings-princeton/src/com/problems/algorithms/week3/mergesort/Point.java | 58ebcd568ffb9761005d43e16d6d52040bfd39ef | [] | no_license | jawahit/algorithms | 3d0ce61d0c86e6dabd806b54620c790f5e7f7770 | 257f60f69f571c87b9f3c9be6b46d858691469f1 | refs/heads/master | 2022-11-30T19:26:34.517215 | 2022-11-16T03:34:52 | 2022-11-16T03:34:52 | 99,579,164 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,299 | java | package com.problems.algorithms.week3.mergesort;
/******************************************************************************
* Compilation: javac Point.java
* Execution: java Point
* Dependencies: none
*
* An immutable data type for points in the plane.
* For use on Coursera, Algorithms Part I programming assignment.
*
******************************************************************************/
import java.util.Comparator;
import edu.princeton.cs.algs4.StdDraw;
public class Point implements Comparable<Point> {
private final int x; // x-coordinate of this point
private final int y; // y-coordinate of this point
/**
* Initializes a new point.
*
* @param x the <em>x</em>-coordinate of the point
* @param y the <em>y</em>-coordinate of the point
*/
public Point(int x, int y) {
/* DO NOT MODIFY */
this.x = x;
this.y = y;
}
/**
* Draws this point to standard draw.
*/
public void draw() {
/* DO NOT MODIFY */
StdDraw.point(x, y);
}
/**
* Draws the line segment between this point and the specified point
* to standard draw.
*
* @param that the other point
*/
public void drawTo(Point that) {
/* DO NOT MODIFY */
StdDraw.line(this.x, this.y, that.x, that.y);
}
/**
* Returns the slope between this point and the specified point.
* Formally, if the two points are (x0, y0) and (x1, y1), then the slope
* is (y1 - y0) / (x1 - x0). For completeness, the slope is defined to be
* +0.0 if the line segment connecting the two points is horizontal;
* Double.POSITIVE_INFINITY if the line segment is vertical;
* and Double.NEGATIVE_INFINITY if (x0, y0) and (x1, y1) are equal.
*
* @param that the other point
* @return the slope between this point and the specified point
*/
public double slopeTo(Point that) {
/* YOUR CODE HERE */
if(this.x == that.x && this.y == that.y) {
return Double.NEGATIVE_INFINITY;
}
if(this.y == that.y) { // horizontal line
return +0.0;
}
if(this.x == that.x) { //vertical line
return Double.POSITIVE_INFINITY;
}
return new Double(that.y - this.y) / new Double(that.x -this.x);
}
/**
* Compares two points by y-coordinate, breaking ties by x-coordinate.
* Formally, the invoking point (x0, y0) is less than the argument point
* (x1, y1) if and only if either y0 < y1 or if y0 = y1 and x0 < x1.
*
* @param that the other point
* @return the value <tt>0</tt> if this point is equal to the argument
* point (x0 = x1 and y0 = y1);
* a negative integer if this point is less than the argument
* point; and a positive integer if this point is greater than the
* argument point
*/
public int compareTo(Point that) {
/* YOUR CODE HERE */
if(this.y > that.y) {
return 1;
}
else if(this.y == that.y) {
if(this.x < that.x) {
return -1;
}else if(this.x == that.x) {
return 0;
}else {
return 1;
}
}
//this.y < that.y
return -1;
}
/**
* Compares two points by the slope they make with this point.
* The slope is defined as in the slopeTo() method.
*
* @return the Comparator that defines this ordering on points
*/
public Comparator<Point> slopeOrder() {
/* YOUR CODE HERE */
return new Comparator<Point>() {
@Override
public int compare(Point q1, Point q2) {
if(slopeTo(q1) == slopeTo(q2)) {
return 0;
}else if(slopeTo(q1) > slopeTo(q2)) {
return 1;
}
return -1;
}
};
}
/**
* Returns a string representation of this point.
* This method is provide for debugging;
* your program should not rely on the format of the string representation.
*
* @return a string representation of this point
*/
public String toString() {
/* DO NOT MODIFY */
return "(" + x + ", " + y + ")";
}
/**
* Unit tests the Point data type.
*/
public static void main(String[] args) {
/* YOUR CODE HERE */
}
}
| [
"thangj3@nationwide.com"
] | thangj3@nationwide.com |
741583ba5618a281670eb0e18f7ce084cbce0570 | c18865955a855e50976d142d752f983667d2c0a0 | /notes/Arrays/sort1.java | 85734b488c2ce360159b8a30cadae7647a0268ce | [] | no_license | AnubhavTalukdar/treasures | 263c1f5a9d9f92985726c7d4aaf3e57d023c9859 | b6dd20d42c28a7143af77b0bd95782feaa02d320 | refs/heads/master | 2021-09-10T00:55:11.531573 | 2021-09-03T05:41:56 | 2021-09-03T05:41:56 | 210,466,079 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 926 | java | import java.util.Arrays;
//The Arrays class is present in the java.util package
public class Main
{
public static void main(String[] args)
{
int arr[] = {20, 10, 35, 15, 22, 13, 17}, i;
Arrays.sort(arr);
for(i=0;i<arr.length;i++)
System.out.print(arr[i]+" ");
//Output: 10 13 15 17 20 22 35
System.out.println();
Arrays.sort(arr,2,5); //1st index inclusive, 2nd index exclusive
for(i=0;i<arr.length;i++)
System.out.print(arr[i]+" ");
//Output: 20 10 15 22 35 13 17
System.out.println();
String cities[] = {"Delhi", "Chennai", "Alaska", "Calcutta", "Madras", "Mumbai", "Amritsar"};
Arrays.sort(cities);
for(i=0;i<cities.length;i++)
System.out.print(cities[i]+" ");
//Output: Alaska Amritsar Calcutta Chennai Delhi Madras Mumbai
}
}
| [
"noreply@github.com"
] | noreply@github.com |
b99462956c699ba944c7d52e87bc326121b6c399 | 7851ba126a6b0be16a916dc4ec2322546a5b02ea | /src/main/java/com/docusign/hackathon/model/CompositeTemplateRequest.java | ee1abce55c16272626de14618a241174df277a8a | [] | no_license | amit143bist/pocHackathon | 93480e5e7693529c2333d7b7637af2e5fdb7fb79 | 79590d1e1659850df0cdd2f899396354d0702573 | refs/heads/master | 2021-01-24T16:27:00.030605 | 2018-08-13T04:53:28 | 2018-08-13T04:53:28 | 123,194,082 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,787 | java | package com.docusign.hackathon.model;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({ "compositeTemplates", "status", "emailBlurb", "emailSubject", "brandId" })
public class CompositeTemplateRequest {
@JsonProperty("compositeTemplates")
private List<CompositeTemplate> compositeTemplates = null;
@JsonProperty("status")
private String status;
@JsonProperty("emailBlurb")
private String emailBlurb;
@JsonProperty("emailSubject")
private String emailSubject;
@JsonProperty("brandId")
private String brandId;
@JsonProperty("compositeTemplates")
public List<CompositeTemplate> getCompositeTemplates() {
return compositeTemplates;
}
@JsonProperty("compositeTemplates")
public void setCompositeTemplates(List<CompositeTemplate> compositeTemplates) {
this.compositeTemplates = compositeTemplates;
}
@JsonProperty("status")
public String getStatus() {
return status;
}
@JsonProperty("status")
public void setStatus(String status) {
this.status = status;
}
@JsonProperty("emailBlurb")
public String getEmailBlurb() {
return emailBlurb;
}
@JsonProperty("emailBlurb")
public void setEmailBlurb(String emailBlurb) {
this.emailBlurb = emailBlurb;
}
@JsonProperty("emailSubject")
public String getEmailSubject() {
return emailSubject;
}
@JsonProperty("emailSubject")
public void setEmailSubject(String emailSubject) {
this.emailSubject = emailSubject;
}
@JsonProperty("brandId")
public String getBrandId() {
return brandId;
}
@JsonProperty("brandId")
public void setBrandId(String brandId) {
this.brandId = brandId;
}
} | [
"Amit.Bist@docusign.com"
] | Amit.Bist@docusign.com |
ecfa82e13c08a5fdc449eed6431f7ba4bac1b0ad | 845dfddf8f2eec3c6ac0693d9019cbf433e106f0 | /shop/src/main/java/com/qingliang/dao/DataDictionaryDao.java | 2f8e4eede3f2d4c16957bc68de5f1ab9ce7c1aa7 | [] | no_license | a1667834841/shop | f0beb49fa0ebfeaf72d565f03929f8d0bf558804 | 1274f9bc0ed03f41fef47579968bdfd73e5cc0bb | refs/heads/master | 2022-12-22T04:47:27.996206 | 2019-09-04T12:52:21 | 2019-09-04T12:52:21 | 205,770,025 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 487 | java | package com.qingliang.dao;
import com.qingliang.entity.DataDictionary;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface DataDictionaryDao {
/*查询所有字典数据*/
public List<DataDictionary> findAllData();
/*插入字典数据*/
public void addData(DataDictionary dd);
/*更新字典数据*/
public void updateData(DataDictionary dd);
/*删除字典数据*/
public void delData(Integer id);
}
| [
"34375481+a1667834841@users.noreply.github.com"
] | 34375481+a1667834841@users.noreply.github.com |
567839826f0ab730ca5fbbc5f1da5c2d8d8e0339 | af2bb973a85190cfa1a294510a3f066c2697437b | /Android/src/com/dronekit/core/survey/SurveyData.java | 17decf9782162d6b92009b0a3ab5996ff4b03b63 | [] | no_license | bfYSKUY/Amobbs-Android-GCS | 5ca29dec24cb2dd7e725d0512cfcf9c595f8469f | 9355111b655a8059f1db3c515bd7d972a0a1d085 | refs/heads/master | 2022-10-13T16:02:57.879913 | 2020-06-12T05:51:21 | 2020-06-12T05:51:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,203 | java | package com.dronekit.core.survey;
import com.dronekit.core.helpers.units.Area;
import java.util.Locale;
public class SurveyData {
private CameraInfo camera = new CameraInfo();
private double altitude;
private double angle;
private double overlap;
private double sidelap;
private double width;
private double delay;
private FootPrint footprint;
public SurveyData() {
update(0, (5.0), 0, 0, 5, 0);
}
public void setCamera(CameraInfo camera) {
this.camera = camera;
}
public void setFootprint(FootPrint footprint) {
this.footprint = footprint;
}
public void update(double angle, double altitude, double overlap, double sidelap, double width, double delay) {
this.angle = angle;
this.overlap = overlap;
this.sidelap = sidelap;
this.width = width;
this.delay = delay;
setAltitude(altitude);
}
public CameraInfo getCameraInfo() {
return this.camera;
}
public void setCameraInfo(CameraInfo info) {
this.camera = info;
this.footprint = new FootPrint(this.camera, this.altitude);
tryToLoadOverlapFromCamera();
}
private void tryToLoadOverlapFromCamera() {
if (camera.overlap != null) {
this.overlap = camera.overlap;
}
if (camera.sidelap != null) {
this.sidelap = camera.sidelap;
}
}
public double getLongitudinalPictureDistance() {
return getLongitudinalFootPrint() * (1 - overlap * .01);
}
public double getLateralPictureDistance() {
return this.width;
// return getLateralFootPrint() * (1 - sidelap * .01);
}
public double getAltitude() {
return altitude;
}
public void setAltitude(double altitude) {
this.altitude = altitude;
this.footprint = new FootPrint(camera, this.altitude);
}
public double getAngle() {
return angle;
}
public void setAngle(Double angle) {
this.angle = angle;
}
public double getWidth() {
return width;
}
public double getDelay() {
return this.delay;
}
public double getSidelap() {
return sidelap;
}
public void setSidelap(Double sidelap) {
this.sidelap = sidelap;
}
public void setWidth(Double width) {
this.width = width;
}
public void setDelay(Double delay) {
this.delay = delay;
}
public double getOverlap() {
return overlap;
}
public void setOverlap(Double overlap) {
this.overlap = overlap;
}
public double getLateralFootPrint() {
return footprint.getLateralSize();
}
public double getLongitudinalFootPrint() {
return footprint.getLongitudinalSize();
}
public Area getGroundResolution() {
return new Area(footprint.getGSD() * 0.01);
}
public String getCameraName() {
return camera.name;
}
@Override
public String toString() {
return String.format(Locale.US, "Altitude: %f Angle %f Overlap: %f Sidelap: %f, width: %f, delay: %f", altitude, angle, overlap, sidelap, width, delay);
}
} | [
"zhaoyanjie@163.com"
] | zhaoyanjie@163.com |
35face63a2fb377db0f99358ec74313ff034ce87 | 005d25a5d45a9292d14e9874fd52f65d401965cd | /ArrayNdk/src/com/example/arrayndk/JniClient.java | 787328c9ea1e7460af8e636cb12e1c7381ebdec8 | [] | no_license | zhouniyao/Java | 6f4633ae9784fe09d768d947473b0593234b3643 | 6c1cba8fb595e9207891c623d085f068efac4a00 | refs/heads/master | 2021-08-23T05:04:52.108621 | 2017-12-03T13:24:45 | 2017-12-03T13:24:45 | 112,750,191 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 119 | java | package com.example.arrayndk;
public class JniClient {
public static native int[] useArray(int arr[], int length);
}
| [
"zhouniyao@163.com"
] | zhouniyao@163.com |
a15ba6b5ca59ff0fa5ab97bce9bbf91c6e0af9d5 | 60fd1bc7a940b0768a780be381ce4bb868ce1908 | /BigData/project-ct/ct-analysis/src/main/java/com/whj/ct/analysis/AnalysisData.java | 9ec50dd53db50502dae2265f8e2ab3a596bf6aa5 | [] | no_license | rijing29/project-ct | ac06608a3bd8066268fc9fead9ff0d3d12fbe909 | b6f6709945b0a9f4af1c73147381d29211d9340b | refs/heads/main | 2023-07-15T20:12:21.216281 | 2021-09-02T11:57:14 | 2021-09-02T11:57:14 | 394,504,820 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 338 | java | package com.whj.ct.analysis;
import com.whj.ct.analysis.tool.AnalysisBeanTool;
import com.whj.ct.analysis.tool.AnalysisTextTool;
import org.apache.hadoop.util.ToolRunner;
public class AnalysisData {
public static void main(String[] args) throws Exception {
int result = ToolRunner.run(new AnalysisBeanTool(), args);
}
}
| [
"8125725+rjnbnb@user.noreply.gitee.com"
] | 8125725+rjnbnb@user.noreply.gitee.com |
7096eb124cfd4979949ca17e1992991fae6487d1 | 3d11befe071d6f75697c5c77dae6c4087348ef5b | /examOcean-master-Services/portal/src/main/java/com/examocean/portal/entity/Teacher.java | 8090732c018a3b35dea5317d5a0654484f6dd72a | [] | no_license | pylSER/exam-ocean | 12cfa0ec8923182742ed0920378f180db94cc484 | ccf24f7c19b27fcf1010b2d6015be9f2f6061be1 | refs/heads/master | 2020-04-08T01:35:42.626049 | 2018-11-24T04:24:44 | 2018-11-24T04:24:44 | 158,901,357 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 742 | java | package com.examocean.portal.entity;
import javax.persistence.*;
import java.util.Set;
@Entity
@Table(name="teacher")
public class Teacher {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
private String username;
private String password;
public Teacher() {
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}
| [
"pyl14@software.nju.edu.cn"
] | pyl14@software.nju.edu.cn |
ac91670b912e83e62c8a45b10c338c9f0149267b | 69130c102f67880876226025e4d7adfcab520e0e | /src/main/java/org/uk/puppykit/mazeSolver/Solver.java | 8cc4af91cf9c47a2e98ffdab476caafb934f23b7 | [] | no_license | Sandvich/mazeSolver | 8a4c5e1deb33ade2a8d46918e07ee7387035ee0d | 5ff7e2c19507d7b6e280f4411dd6845e28f4e0bd | refs/heads/master | 2021-01-19T17:37:15.960750 | 2017-08-23T14:30:40 | 2017-08-23T14:30:40 | 101,075,406 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,668 | java | package org.uk.puppykit.mazeSolver;
import java.awt.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/*
* Solves an instance of the Maze class
* If debug is turned on, you may see:
* 5s, representing dead ends
* 6s, representing wave crests
*/
public class Solver {
/*
* Solves a maze. An implementation of the Collision Solver. crests tracks the crest of each wave.
*/
public static Maze solve(Maze toSolve) {
java.util.List<Point> crests = new ArrayList<>();
int[][] editableMaze = new int[toSolve.getSize().y][toSolve.getSize().x];
for (int i=0; i<editableMaze.length; i++) {
editableMaze[i] = Arrays.copyOf(toSolve.getWalls()[i],toSolve.getSize().x);
}
java.util.List<Point> paths;
java.util.List<Point> toRemove = new ArrayList<>();
java.util.List<Point> toAdd = new ArrayList<>();
Point crest;
crests.add(new Point(toSolve.getStart().x, toSolve.getStart().y));
while (crests.size() != 0) {
for (int i=0; i<crests.size(); i++) {
crest = crests.get(i);
if (crest.x == toSolve.getEnd().x && crest.y == toSolve.getEnd().y) {
toRemove.add(crest);
editableMaze[crest.y][crest.x] = 3;
} else {
// For each wave crest, check where it can move and move it there (splitting if necessary)
paths = possiblePaths(editableMaze, crest, true);
if (editableMaze[crest.y][crest.x] != 2) {
editableMaze[crest.y][crest.x] = 4;
}
if (paths.size() == 0) {
editableMaze = followBack(crest, editableMaze);
toRemove.add(crest);
} else if (paths.size() == 1) {
// Follow path
crest.x = paths.get(0).x;
crest.y = paths.get(0).y;
editableMaze[crest.y][crest.x] = 6;
} else {
// At each junction, split into multiple paths
toAdd.addAll(paths);
toRemove.add(crest);
for (Point path:paths) {
editableMaze[path.y][path.x] = 6;
}
}
}
// Check for collisions and mark them
for (Point otherCrest:crests) {
if (crest != otherCrest) {
if (crest.equals(otherCrest)) {
toRemove.add(crest);
editableMaze[crest.y][crest.x] = 1;
}
}
}
}
crests.removeAll(toRemove);
crests.addAll(toAdd);
toRemove = new ArrayList<>();
toAdd = new ArrayList<>();
}
for (int y=0; y<toSolve.getSize().y; y++) {
for (int x=0; x<toSolve.getSize().x; x++) {
if (editableMaze[y][x] == 5 || editableMaze[y][x] == 6) {
toSolve.setCell(x,y,0);
} else {
toSolve.setCell(x,y,editableMaze[y][x]);
}
}
}
return toSolve;
}
private static int[][] followBack(Point crest, int[][] maze) {
// When we find a dead end, we follow it backwards marking it as a dead end.
java.util.List<Point> paths;
paths = possiblePaths(maze, crest, false);
// If there has been a collision, we set this point to be a wall and then apply the algorithm multiple times.
if (paths.size() > 1) {
maze[crest.y][crest.x] = 1;
for (Point path: paths) {
maze = followBack(path, maze);
}
} else {
maze[crest.y][crest.x] = 5;
while (paths.size() == 1) {
crest.x = paths.get(0).x;
crest.y = paths.get(0).y;
maze[crest.y][crest.x] = 5;
paths = possiblePaths(maze, crest, false);
}
}
maze[crest.y][crest.x] = 4;
return maze;
}
private static java.util.List<Point> possiblePaths(int[][] maze, Point location, boolean forwards) {
java.util.List<Point> paths;
Set<Integer> validSpace = new HashSet<>();
if (forwards) {
validSpace.add(0);
validSpace.add(3);
validSpace.add(6);
} else {
validSpace.add(4);
}
paths = possiblePathsCalc(maze, location, validSpace);
return paths;
}
private static java.util.List<Point> possiblePathsCalc(int[][] maze, Point location, Set<Integer> validSpace) {
List<Point> paths = new ArrayList<>();
// above: test if the space is empty, a wave crest or the end
if (validSpace.contains(maze[location.y+1][location.x])) {
paths.add(new Point(location.x,location.y+1));
}
// below
if (validSpace.contains(maze[location.y-1][location.x])) {
paths.add(new Point(location.x,location.y-1));
}
// left
if (validSpace.contains(maze[location.y][location.x-1])) {
paths.add(new Point(location.x-1,location.y));
}
// right
if (validSpace.contains(maze[location.y][location.x+1])) {
paths.add(new Point(location.x+1,location.y));
}
return paths;
}
}
| [
"sanchitsharma1@gmail.com"
] | sanchitsharma1@gmail.com |
6d3cee9f478c5a1faf3b515fea8ed2cf6708aaa1 | 5d1b71b415e1196132b2973ec06388ffd538af17 | /pencil-generator/src/main/java/com/freeter/utils/Test.java | 611309e5aaecacc2e4acad231cc7c0178af93ef0 | [
"Apache-2.0"
] | permissive | ThirdOfWord/pencil | 07d9245767a4bc7e046e46b9d762be0c4698f59e | 2b09562f6343e95fcabc31306b5e4eeffa92484e | refs/heads/main | 2023-04-18T07:54:02.220552 | 2021-05-07T10:14:39 | 2021-05-07T10:14:39 | 364,954,269 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 467 | java | package com.freeter.utils;
import java.io.File;
import java.io.IOException;
/**
* Created by Administrator on 2018-07-13.
*/
public class Test {
public static void main(String[] ages) throws IOException {
//获取当前项目的根路径
File directory = new File("");// 参数为空
String courseFile = directory.getCanonicalPath();
System.out.print(directory.getAbsolutePath());
System.out.print(courseFile);
}
}
| [
"1806146700@qq.com"
] | 1806146700@qq.com |
8ca7cf8e977ebdcf296e28e653c15a986d80a2ed | 4becc654a9a538c68985472ea5ca5cec0236522c | /src/com/edu/leetcoding/array/FindAllDuplicatesInAnArray.java | b41baf50d666cbc175347a637245647b891accef | [] | no_license | AngryCouchPotato/LeetCoding | efd29805c84fbbfc7de4392a1c009b6935d4416f | 809a18075c4a029db3597f3b69ac5eb4b4f31f94 | refs/heads/main | 2023-07-09T08:00:13.203001 | 2021-08-16T18:15:46 | 2021-08-16T18:15:46 | 328,774,340 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,444 | java | package com.edu.leetcoding.array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/*
442. Find All Duplicates in an Array
Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.
Find all the elements that appear twice in this array.
Could you do it without extra space and in O(n) runtime?
Example:
Input:
[4,3,2,7,8,2,3,1]
Output:
[2,3]
*/
public class FindAllDuplicatesInAnArray {
// O(n) time | O(1) space
public List<Integer> findDuplicates(int[] nums) {
List<Integer> result = new ArrayList<>();
if (nums.length == 1) {
return result;
}
for (int i = 0; i < nums.length; i++) {
int val = Math.abs(nums[i]);
if (nums[val - 1] > 0) {
nums[val - 1] = (-1) * nums[val - 1];
} else {
result.add(val);
}
}
return result;
}
// O(n*log(n)) time | O(1) space
public List<Integer> findDuplicates1(int[] nums) {
List<Integer> result = new ArrayList<>();
if (nums.length == 1) {
return result;
}
Arrays.sort(nums);
for (int i = 1; i < nums.length; i++) {
if (nums[i - 1] == nums[i]) {
result.add(nums[i]);
}
}
return result;
}
}
| [
"alexeykolcov@gmail.com"
] | alexeykolcov@gmail.com |
3d8f5d8f7773dc2f78c105d583fe3cb4b775a52a | c6e854514b1c6dbfb99c1751f498a31bb45dfa9c | /src/main/java/com/movies/serviceImpl/OrderServiceImpl.java | 6c20a42be7eaa618cc81227fd439cf2731ac2ff7 | [] | no_license | yuanran0127/movie-sales | c924c914de7b90b4daa565b6bb392b7d9b865fbf | 8f0381f4afe6f5340267e1fd9e435ab860a96c48 | refs/heads/main | 2023-06-08T04:05:40.748877 | 2021-06-22T14:09:10 | 2021-06-22T14:09:10 | 377,430,798 | 5 | 0 | null | null | null | null | UTF-8 | Java | false | false | 824 | java | package com.movies.serviceImpl;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.movies.mapper.OrderMapper;
import com.movies.pojo.Order;
import com.movies.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper,Order> implements OrderService {
@Autowired
private OrderMapper orderMapper;
public List<Order> getOrder(Integer uid) {
return orderMapper.getOrder(uid);
}
public void delete(Integer oid){
orderMapper.delete(oid);
}
public List<Order> getAllOrder() {
return orderMapper.getAllOrder();
}
}
| [
"1826452653@qq.com"
] | 1826452653@qq.com |
bd1708ab88047aa7858c37711533047c4de6ec0f | 4664493957e9ae7481a28c082b9a67d3b8867973 | /src/main/java/com/zos/activiti/excel/util/FormulaCellValueService.java | 31682c0c50835e29c564c9076f3b4d96cc93f881 | [
"MIT"
] | permissive | zostudio/zos | da0d5c229d567eef66a70ac107f88b3c51ff8434 | 62aa4144249e82ffc9cc00ee68997533a8614926 | refs/heads/master | 2020-07-28T15:15:17.835474 | 2019-11-28T04:41:13 | 2019-11-28T04:41:13 | 209,447,927 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 13,687 | java | package com.zos.activiti.excel.util;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.math.BigDecimal;
import java.sql.Time;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellType;
import org.apache.poi.ss.usermodel.DateUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import cn.afterturn.easypoi.excel.entity.params.ExcelImportEntity;
import cn.afterturn.easypoi.excel.entity.sax.SaxReadCellEntity;
import cn.afterturn.easypoi.excel.imports.CellValueService;
import cn.afterturn.easypoi.exception.excel.ExcelImportException;
import cn.afterturn.easypoi.exception.excel.enums.ExcelImportEnum;
import cn.afterturn.easypoi.handler.inter.IExcelDataHandler;
import cn.afterturn.easypoi.handler.inter.IExcelDictHandler;
import cn.afterturn.easypoi.util.PoiPublicUtil;
public class FormulaCellValueService {
private static final Logger LOGGER = LoggerFactory.getLogger(CellValueService.class);
private List<String> handlerList = null;
/**
* 获取单元格内的值
*
* @param cell
* @param entity
* @return
*/
@SuppressWarnings("deprecation")
private Object getCellValue(String xclass, Cell cell, ExcelImportEntity entity) {
if (cell == null) {
return "";
}
Object result = null;
if ("class java.util.Date".equals(xclass) || "class java.sql.Date".equals(xclass)
|| ("class java.sql.Time").equals(xclass)
|| ("class java.sql.Timestamp").equals(xclass)) {
/*
if (Cell.CELL_TYPE_NUMERIC == cell.getCellType()) {
// 日期格式
result = cell.getDateCellValue();
} else {
cell.setCellType(Cell.CELL_TYPE_STRING);
result = getDateData(entity, cell.getStringCellValue());
}*/
//FIX: 单元格yyyyMMdd数字时候使用 cell.getDateCellValue() 解析出的日期错误
if (Cell.CELL_TYPE_NUMERIC == cell.getCellType() && DateUtil.isCellDateFormatted(cell)) {
result = DateUtil.getJavaDate(cell.getNumericCellValue());
} else {
cell.setCellType(CellType.STRING);
result = getDateData(entity, cell.getStringCellValue());
}
if (("class java.sql.Date").equals(xclass)) {
result = new java.sql.Date(((Date) result).getTime());
}
if (("class java.sql.Time").equals(xclass)) {
result = new Time(((Date) result).getTime());
}
if (("class java.sql.Timestamp").equals(xclass)) {
result = new Timestamp(((Date) result).getTime());
}
} else if (Cell.CELL_TYPE_NUMERIC == cell.getCellType() && DateUtil.isCellDateFormatted(cell)) {
result = DateUtil.getJavaDate(cell.getNumericCellValue());
} else {
switch (cell.getCellType()) {
case Cell.CELL_TYPE_STRING:
result = cell.getRichStringCellValue() == null ? ""
: cell.getRichStringCellValue().getString();
break;
case Cell.CELL_TYPE_NUMERIC:
if (DateUtil.isCellDateFormatted(cell)) {
if ("class java.lang.String".equals(xclass)) {
result = formateDate(entity, cell.getDateCellValue());
}
} else {
result = readNumericCell(cell);
}
break;
case Cell.CELL_TYPE_BOOLEAN:
result = Boolean.toString(cell.getBooleanCellValue());
break;
case Cell.CELL_TYPE_BLANK:
break;
case Cell.CELL_TYPE_ERROR:
break;
case Cell.CELL_TYPE_FORMULA:
try {
result = readNumericCell(cell);
} catch (Exception e1) {
try {
result = cell.getRichStringCellValue() == null ? ""
: cell.getRichStringCellValue().getString();
} catch (Exception e2) {
LOGGER.error(e2.getMessage() == null ? e2.getCause().getMessage() : e2.getMessage());
return cell.getCellFormula();
}
}
break;
default:
break;
}
}
return result;
}
private Object readNumericCell(Cell cell) {
Object result = null;
double value = cell.getNumericCellValue();
if (((int) value) == value) {
result = (int) value;
} else {
result = value;
}
return result;
}
/**
* 获取日期类型数据
*
* @author JueYue
* 2013年11月26日
* @param entity
* @param value
* @return
*/
private Date getDateData(ExcelImportEntity entity, String value) {
if (StringUtils.isNotEmpty(entity.getFormat()) && StringUtils.isNotEmpty(value)) {
SimpleDateFormat format = new SimpleDateFormat(entity.getFormat());
try {
return format.parse(value);
} catch (ParseException e) {
LOGGER.error("时间格式化失败,格式化:{},值:{}", entity.getFormat(), value);
throw new ExcelImportException(ExcelImportEnum.GET_VALUE_ERROR);
}
}
return null;
}
private String formateDate(ExcelImportEntity entity, Date value) {
if (StringUtils.isNotEmpty(entity.getFormat()) && value != null) {
SimpleDateFormat format = new SimpleDateFormat(entity.getFormat());
return format.format(value);
}
return null;
}
/**
* 获取cell的值
*
* @param object
* @param cell
* @param excelParams
* @param titleString
* @param dictHandler
*/
public Object getValue(IExcelDataHandler<?> dataHandler, Object object, Cell cell,
Map<String, ExcelImportEntity> excelParams,
String titleString, IExcelDictHandler dictHandler) throws Exception {
ExcelImportEntity entity = excelParams.get(titleString);
String xclass = "class java.lang.Object";
if (!(object instanceof Map)) {
Method setMethod = entity.getMethods() != null && entity.getMethods().size() > 0
? entity.getMethods().get(entity.getMethods().size() - 1) : entity.getMethod();
Type[] ts = setMethod.getGenericParameterTypes();
xclass = ts[0].toString();
}
Object result = getCellValue(xclass, cell, entity);
if (entity != null) {
result = hanlderSuffix(entity.getSuffix(), result);
result = replaceValue(entity.getReplace(), result);
result = replaceValue(entity.getReplace(), result);
if(dictHandler != null && StringUtils.isNoneBlank(entity.getDict())){
dictHandler.toValue(entity.getDict(), object, entity.getName(), result);
}
}
result = handlerValue(dataHandler, object, result, titleString);
return getValueByType(xclass, result, entity);
}
/**
* 获取cell值
*
* @param dataHandler
* @param object
* @param cellEntity
* @param excelParams
* @param titleString
* @return
*/
public Object getValue(IExcelDataHandler<?> dataHandler, Object object,
SaxReadCellEntity cellEntity, Map<String, ExcelImportEntity> excelParams,
String titleString) {
ExcelImportEntity entity = excelParams.get(titleString);
Method setMethod = entity.getMethods() != null && entity.getMethods().size() > 0
? entity.getMethods().get(entity.getMethods().size() - 1) : entity.getMethod();
Type[] ts = setMethod.getGenericParameterTypes();
String xclass = ts[0].toString();
Object result = cellEntity.getValue();
result = hanlderSuffix(entity.getSuffix(), result);
result = replaceValue(entity.getReplace(), result);
result = handlerValue(dataHandler, object, result, titleString);
return getValueByType(xclass, result, entity);
}
/**
* 把后缀删除掉
*
* @param result
* @param suffix
* @return
*/
private Object hanlderSuffix(String suffix, Object result) {
if (StringUtils.isNotEmpty(suffix) && result != null
&& result.toString().endsWith(suffix)) {
String temp = result.toString();
return temp.substring(0, temp.length() - suffix.length());
}
return result;
}
/**
* 根据返回类型获取返回值
*
* @param xclass
* @param result
* @param entity
* @return
*/
private Object getValueByType(String xclass, Object result, ExcelImportEntity entity) {
try {
//过滤空和空字符串,如果基本类型null会在上层抛出,这里就不处理了
if (result == null || StringUtils.isBlank(result.toString())) {
return null;
}
if ("class java.util.Date".equals(xclass)) {
return result;
}
if ("class java.lang.Boolean".equals(xclass) || "boolean".equals(xclass)) {
return Boolean.valueOf(String.valueOf(result));
}
if ("class java.lang.Double".equals(xclass) || "double".equals(xclass)) {
return Double.valueOf(String.valueOf(result));
}
if ("class java.lang.Long".equals(xclass) || "long".equals(xclass)) {
try {
return Long.valueOf(String.valueOf(result));
} catch (Exception e) {
//格式错误的时候,就用double,然后获取Int值
return Double.valueOf(String.valueOf(result)).longValue();
}
}
if ("class java.lang.Float".equals(xclass) || "float".equals(xclass)) {
return Float.valueOf(String.valueOf(result));
}
if ("class java.lang.Integer".equals(xclass) || "int".equals(xclass)) {
try {
return Integer.valueOf(String.valueOf(result));
} catch (Exception e) {
//格式错误的时候,就用double,然后获取Int值
return Double.valueOf(String.valueOf(result)).intValue();
}
}
if ("class java.math.BigDecimal".equals(xclass)) {
return new BigDecimal(String.valueOf(result));
}
if ("class java.lang.String".equals(xclass)) {
//针对String 类型,但是Excel获取的数据却不是String,比如Double类型,防止科学计数法
if (result instanceof String) {
return result;
}
// double类型防止科学计数法
if (result instanceof Double) {
return PoiPublicUtil.doubleToString((Double) result);
}
return String.valueOf(result);
}
return result;
} catch (Exception e) {
LOGGER.error(e.getMessage(), e);
throw new ExcelImportException(ExcelImportEnum.GET_VALUE_ERROR);
}
}
/**
* 调用处理接口处理值
*
* @param dataHandler
* @param object
* @param result
* @param titleString
* @return
*/
@SuppressWarnings({"unchecked", "rawtypes"})
private Object handlerValue(IExcelDataHandler dataHandler, Object object, Object result,
String titleString) {
if (dataHandler == null || dataHandler.getNeedHandlerFields() == null
|| dataHandler.getNeedHandlerFields().length == 0) {
return result;
}
if (handlerList == null) {
handlerList = Arrays.asList(dataHandler.getNeedHandlerFields());
}
if (handlerList.contains(titleString)) {
return dataHandler.importHandler(object, titleString, result);
}
return result;
}
/**
* 替换值
*
* @param replace
* @param result
* @return
*/
private Object replaceValue(String[] replace, Object result) {
if (replace != null && replace.length > 0) {
String temp = String.valueOf(result);
String[] tempArr;
for (int i = 0; i < replace.length; i++) {
tempArr = replace[i].split("_");
if (temp.equals(tempArr[0])) {
return tempArr[1];
}
}
}
return result;
}
}
| [
"wangrupeng@foxmail.com"
] | wangrupeng@foxmail.com |
757ac313ea1bf702d9c19151b2adafba5abc5023 | 04eebd09915aa0fbfc4894158578f16ee5bf6162 | /youtubevids/src/empty/Potpie.java | 9520a0f471c1842318fa5f6ba38328f7a9bdc593 | [] | no_license | engehagen/youtubeVids | b0c12052948d9e45ed898a2d700a49c7bca9e434 | 327c198e5c4f21d1dded9c861c7cf01f80e9e1e4 | refs/heads/master | 2021-01-10T12:35:50.542833 | 2016-03-15T23:30:33 | 2016-03-15T23:30:55 | 53,985,879 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 63 | java | package empty;
public class Potpie extends Food{
}
| [
"sondre.engehagen@gmail.com"
] | sondre.engehagen@gmail.com |
6c7a774dfad9b0147a44217a485a0b97a88329ae | 1f3b7b63f81f129050dd0b63e8832868d366c774 | /eMagine/JavaSource/fr/umlv/ir3/emagine/extraction/ExtractionConfigEntityDAO.java | e4e1b886a03825ef4dcaf488fcae5c6866bc64a6 | [] | no_license | lbarbisan/emagine | 8b0610748e27c4ae6400142cb8af90195942cc04 | f624cf30011374ead498dda08c5bb6b69007918c | refs/heads/master | 2016-09-05T20:45:05.117923 | 2006-02-24T04:31:26 | 2006-02-24T04:31:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 179 | java | package fr.umlv.ir3.emagine.extraction;
import fr.umlv.ir3.emagine.util.base.BaseDAO;
public class ExtractionConfigEntityDAO extends BaseDAO<ExtractionConfigEntity> {
}
| [
"netangel@06c2f47b-b305-0410-bc58-bf68df72c600"
] | netangel@06c2f47b-b305-0410-bc58-bf68df72c600 |
a85dcee2e1070bdedfa74c6648f05119a5936723 | 7dded13bb746a17564cafaf9cf704bc68083127b | /app/src/main/java/com/example/flickster/models/Movie.java | 0edb82e0ac1acc967aa300d550eef0b8af050d4e | [
"Apache-2.0"
] | permissive | jzhuge99/Flickster | 8bedf3d7580a2315e4baaff3003ff74d2b8eff30 | 20a3220a9feb27d008c241ea3585f04064652c0e | refs/heads/master | 2020-06-12T15:30:41.393202 | 2019-06-29T01:20:38 | 2019-06-29T01:20:38 | 194,347,419 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 853 | java | package com.example.flickster.models;
import org.json.JSONException;
import org.json.JSONObject;
public class Movie {
//values from API
private String title;
private String overview;
private String posterPath; //only the path
private String backdropPath;
//initialize from JSON data
public Movie(JSONObject object) throws JSONException {
title = object.getString("title");
overview = object.getString("overview");
posterPath = object.getString("poster_path");
backdropPath = object.getString("backdrop_path");
}
public String getTitle() {
return title;
}
public String getOverview() {
return overview;
}
public String getPosterPath() {
return posterPath;
}
public String getBackdropPath() {
return backdropPath;
}
}
| [
"jennytzhuge@gmail.com"
] | jennytzhuge@gmail.com |
4b65b642c0f173c77ff8e2bf4ca41d59fdfe7a5b | a43d4202628ecb52e806d09f0f3dc1f5bab3ef4f | /src/main/java/pnc/mesadmin/service/impl/DicService.java | 97fb22963ec159fc6759dc5e7c631723960d9750 | [] | no_license | pnc-mes/base | b88583929e53670340a704f848e4e9e2027f1334 | 162135b8752b4edc397b218ffd26664929f6920d | refs/heads/main | 2023-01-07T22:06:10.794300 | 2020-10-27T07:47:20 | 2020-10-27T07:47:20 | 307,621,190 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,554 | java | package pnc.mesadmin.service.impl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import pnc.mesadmin.dao.DicDAO;
import pnc.mesadmin.dto.GetAllDicInfo.GetAllDicInfoResB;
import pnc.mesadmin.dto.GetAllDicInfo.GetAllDicInfoResD;
import pnc.mesadmin.dto.GetAllDicInfo.GetAllDicInfoRes;
import pnc.mesadmin.dto.GetDicInfo.GetDicInfoResB;
import pnc.mesadmin.dto.GetDicInfo.GetDicInfoResD;
import pnc.mesadmin.dto.GetDicInfo.GetDicInfoRes;
import pnc.mesadmin.dto.GetDicLanTypeInfo.GetDicLanTypeInfoResB;
import pnc.mesadmin.dto.GetDicLanTypeInfo.GetDicLanTypeInfoResD;
import pnc.mesadmin.dto.GetDicLanTypeInfo.GetDicLanTypeInfoRes;
import pnc.mesadmin.dto.SaveDicInfo.*;
import pnc.mesadmin.dto.SystemException;
import pnc.mesadmin.entity.DicInfo;
import pnc.mesadmin.service.DicIService;
import pnc.mesadmin.utils.CommonUtils;
import pnc.mesadmin.utils.DateUtil;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
/**
* 公司名称:驭航信息技术(上海)有限公司
* 系统名称:PNC-MES管理系统
* 子系统名称:字典信息Service实现类
* 创建人:赵超
* 创建时间:2017-5-24
* 修改人:
* 修改时间:
*/
@Transactional
@Service
public class DicService implements DicIService {
@Resource
private DicDAO dicDAO;
/**
* 获取语言类别树
* @return
*/
public GetDicLanTypeInfoRes getDicTree() throws SystemException {
GetDicLanTypeInfoRes objEGetDicLanTypeInfoRes = new GetDicLanTypeInfoRes();
GetDicLanTypeInfoResB body = new GetDicLanTypeInfoResB();
List<GetDicLanTypeInfoResD> dataList = new ArrayList<GetDicLanTypeInfoResD>();
GetDicLanTypeInfoResD data = null;
// 加载语言类别信息列表树
List<String> languageList = new ArrayList<String>();//dicDAO.getLanguageList();
languageList.add("00");
languageList.add("01");
// 判断返回语言类别列表是否为空
if (languageList.size() <= 0 || languageList == null) { // 为空
throw new SystemException("MG000001", "语言类别列表为空!");
}
// 循环写入
int count = 0;
for (int i = 0; i < languageList.size(); i++) {
data = new GetDicLanTypeInfoResD();
String language = languageList.get(i);
String lanName = null;
// 00 表示中文
if ("00".equals(language)) {
lanName = "中文";
} else {
lanName = "英文";
}
data.setLanName(lanName);
data.setLanCode(language);
// 查询语言labID标签数量
count = dicDAO.getDicCountByLanguage(language);
data.setCount(count);
dataList.add(data);
}
body.setData(dataList);
objEGetDicLanTypeInfoRes.setBody(body);
return objEGetDicLanTypeInfoRes;
}
/**
* 获取字典信息列表
* @return
*/
public GetAllDicInfoRes getDicInfoListByLanCode(String lanCode) throws SystemException{
GetAllDicInfoRes objEGetAllDicInfoRes = new GetAllDicInfoRes();
GetAllDicInfoResB body = new GetAllDicInfoResB();
// 获取字典信息列表
List<GetAllDicInfoResD> dataList = new ArrayList<GetAllDicInfoResD>();
List<DicInfo> dicInfoList = dicDAO.getDicInfoListByLanCode(lanCode);
GetAllDicInfoResD data = null;
// 判断返回字典列表是否为空
if (dicInfoList.size() <= 0 || dicInfoList == null) { // 为空
throw new SystemException("MG000001", "字典信息列表为空!");
}
// 循环赋值
for (int i = 0; i < dicInfoList.size(); i++){
data = new GetAllDicInfoResD();
data.setDicRd(dicInfoList.get(i).getRuid());
data.setLabelID(dicInfoList.get(i).getLabelID());
data.setLabelDes(dicInfoList.get(i).getLabelDes());
dataList.add(data);
}
body.setData(dataList);
objEGetAllDicInfoRes.setBody(body);
return objEGetAllDicInfoRes;
}
/**
* 获取字典信息
* @return
*/
public GetDicInfoRes getDicInfoByGuid(String dicRd) throws SystemException{
GetDicInfoRes objEGetDicInfoRes = new GetDicInfoRes();
GetDicInfoResB body = new GetDicInfoResB();
GetDicInfoResD data = new GetDicInfoResD();
// 获取字典信息
DicInfo dicInfo = dicDAO.getDicInfoByGuid(dicRd);
// 判断返回字典是否为空
if (dicInfo == null){
throw new SystemException("MG000001", "字典信息为空!");
}
// 赋值
data.setLabelID(dicInfo.getLabelID());
data.setLabelDes(dicInfo.getLabelDes());
data.setCreator(dicInfo.getCreator());
data.setCreateTime(DateUtil.format(dicInfo.getCreateTime()));
data.setLastModifyMan(dicInfo.getLastModifyMan());
data.setLastModifyTime(DateUtil.format(dicInfo.getLastModifyTime()));
data.setRemark(dicInfo.getRemark());
body.setData(data);
objEGetDicInfoRes.setBody(body);
return objEGetDicInfoRes;
}
/**
* 保存字典信息
* @return
*/
public SaveDicInfoRes saveDicInfo(SaveDicInfoReqBD00 busData00, DicInfo dicInfo) throws SystemException{
SaveDicInfoRes saveDicInfoRes = new SaveDicInfoRes();
SaveDicInfoResB body = new SaveDicInfoResB();
SaveDicInfoResD data = new SaveDicInfoResD();
// 赋值
dicInfo.setGuid(CommonUtils.getRandomNumber());
dicInfo.setLanguage(busData00.getLanCode());
dicInfo.setLabelID(busData00.getLabelID());
dicInfo.setLabelDes(busData00.getLabelDes());
dicInfo.setRemark(busData00.getRemark());
// 保存
int count = dicDAO.saveDicInfo(dicInfo);
if(count <=0) throw new SystemException("MG000001","保存失败!");
saveDicInfoRes.setBody(body);
return saveDicInfoRes;
}
/**
* 删除字典信息
* @return
*/
public SaveDicInfoRes deleteDicInfoByRuid(List<SaveDicInfoReqBD01> dicRdList) throws SystemException{
SaveDicInfoRes saveDicInfoRes = new SaveDicInfoRes();
SaveDicInfoResB body = new SaveDicInfoResB();
SaveDicInfoResD data = new SaveDicInfoResD();
for(SaveDicInfoReqBD01 bd01 : dicRdList) {
// 保存
int count = dicDAO.deleteDicInfoByRuid(bd01.getDicRd());
if (count <= 0) throw new SystemException("MG000001", "删除失败!");
}
saveDicInfoRes.setBody(body);
return saveDicInfoRes;
}
/**
* 更新字典信息
* @return
*/
public SaveDicInfoRes update(SaveDicInfoReqBD02 busData02, DicInfo dicInfo) throws SystemException{
SaveDicInfoRes saveDicInfoRes = new SaveDicInfoRes();
SaveDicInfoResB body = new SaveDicInfoResB();
SaveDicInfoResD data = new SaveDicInfoResD();
// 赋值
dicInfo.setRuid(busData02.getDicRd());
dicInfo.setLabelID(busData02.getLabelID());
dicInfo.setLabelDes(busData02.getLabelDes());
dicInfo.setRemark(busData02.getRemark());
// 更新
int count = dicDAO.update(dicInfo);
if(count <=0) throw new SystemException("MG000001","更新失败!");
saveDicInfoRes.setBody(body);
return saveDicInfoRes;
}
}
| [
"95887577@qq.com"
] | 95887577@qq.com |
6c0f37d88012383469bbc4f5b6bb8b428f2407a9 | c4a983e4684a0ee9f214b1d0353c789cc3b50c58 | /RocketServer/src/main/java/rocketServer/RocketHub.java | f45486f65ae42e62e71082f99fb36fb79753b736 | [] | no_license | adamicaulfield/Final-Exam-Coding-Portion | 83a1f7494d75ac4acece74a92076b4acb3800dee | 9039e82ad82e37ab6c1cd7f6dba38e2cf2d96458 | refs/heads/master | 2021-05-31T14:43:22.061361 | 2016-05-23T23:26:11 | 2016-05-23T23:26:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,295 | java | package rocketServer;
import java.io.IOException;
import exceptions.RateException;
import netgame.common.Hub;
import rocketBase.RateBLL;
import rocketData.LoanRequest;
public class RocketHub extends Hub {
private RateBLL _RateBLL = new RateBLL();
public RocketHub(int port) throws IOException {
super(port);
}
@Override
protected void messageReceived(int ClientID, Object message) {
System.out.println("Message Received by Hub");
if (message instanceof LoanRequest) {
resetOutput();
LoanRequest lq = (LoanRequest) message;
// TODO - RocketHub.messageReceived
// You will have to:
// Determine the rate with the given credit score (call RateBLL.getRate)
// If exception, show error message, stop processing
// If no exception, continue
// Determine if payment, call RateBLL.getPayment
//
// you should update lq, and then send lq back to the caller(s)
double rate = 0;
try{
rate = RateBLL.getRate(lq.getiCreditScore());
}
catch(RateException e){
System.out.println(e.getLocalizedMessage());
}
double payment = RateBLL.getPayment(rate, lq.getiTerm(), lq.getiDownPayment(), 0, true);
lq.setdPayment(payment);
sendToAll(lq);
}
}
}
| [
"adamic@udel.edu"
] | adamic@udel.edu |
42abc63c11281dc912d45fb1be37cd68fc98c7b2 | 7acd025036f9493c30702454d2dddec9f8a8630f | /src/com/reminder/sql/Database.java | ad2c239d3ecafde7c5509631a7655f758f44efdb | [] | no_license | TheReal01053/ExpirationReminder---Desktop-Application | c07d2f7b9c7ac307381172fa463d1e247f9a6b6e | 20eba6002987a42229a1550ea9951d93b2f7bc97 | refs/heads/master | 2021-02-12T04:29:37.893622 | 2020-03-11T04:44:53 | 2020-03-11T04:44:53 | 244,561,374 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,560 | java | package com.reminder.sql;
import com.reminder.License;
import com.reminder.Main;
import java.sql.*;
import java.time.LocalDate;
public class Database implements AutoCloseable {
public static Connection db;
private static final String URL = "jdbc:sqlserver://clar_con2:1433;";
public static void initDatabase(String user, String pass) throws SQLException {
db = DriverManager.getConnection(URL, user, pass);
execute("USE expirationreminder");
System.out.println("Reading Database..");
}
public static void fetchLicenses() throws SQLException {
try (PreparedStatement stmt = Database.db.prepareStatement("SELECT * FROM Licenses")) {
try (ResultSet rs = stmt.executeQuery()) {
while (rs.next()) {
String serialNumber = rs.getString("serialNumber");
String contactName = rs.getString("contactName");
String contactEmail = rs.getString("contactEmail");
String licenseName = rs.getString("licenseName");
String clientName = rs.getString("clientName");
Date date = rs.getDate("date");
String displayedDate = rs.getString("displayedDate");
int daysRemaining = rs.getInt("daysRemaining");
Main.licenses.add(new License(serialNumber, contactName, contactEmail, licenseName, clientName, date.toLocalDate(), displayedDate, daysRemaining));
}
}
}
}
public static void UpdateDays(String key, int value) throws SQLException {
try (PreparedStatement stmt = db.prepareStatement("UPDATE licenses SET daysRemaining = ("+ value +") WHERE licenseName = '"+ key +"'")) {
stmt.executeUpdate();
}
}
public static boolean hasLicense;
public static boolean checkLicense(String licenseName) throws SQLException {
try (PreparedStatement stmt = db.prepareStatement("SELECT * FROM LICENSES WHERE licenseName = '" + licenseName +"'")) {
try (ResultSet rs = stmt.executeQuery()) {
while (rs.next()) {
return true;
//hasLicense = true;
}
}
}
return false;
}
public static void deleteLicense(String licenseName) throws SQLException {
try (PreparedStatement stmt = db.prepareStatement("DELETE FROM licenses WHERE licenseName = ?")) {
System.out.println(licenseName + " deleted from DB");
stmt.setString(1, licenseName);
stmt.executeUpdate();
}
}
@Override
public void close() throws SQLException {
if (db != null)
db.close();
}
public String getString(ResultSet s, String b)
throws SQLException
{
return s.getString(b);
}
public static int executeUpdate(String sql)
throws SQLException
{
PreparedStatement s = DisposalManager.manage(db.prepareStatement(sql));
return s.executeUpdate();
}
public JSResultSet executeQuery(String sql)
throws SQLException
{
PreparedStatement s = DisposalManager.manage(db.prepareStatement(sql));
return DisposalManager.manage(new JSResultSet(s.executeQuery()));
}
public static boolean execute(String sql)
throws SQLException
{
PreparedStatement s = DisposalManager.manage(db.prepareStatement(sql));
return s.execute();
}
}
| [
"mthomspon30061995@gmail.com"
] | mthomspon30061995@gmail.com |
a8f4b27b8d5f4553e409d778ba149b649df45128 | d71e879b3517cf4fccde29f7bf82cff69856cfcd | /ExtractedJars/Apk_Extractor_com.ext.ui.apk/javafiles/android/support/v7/view/menu/MenuPresenter.java | a2cd17c98479c9f42065175a460dd282b186f5bf | [
"MIT"
] | permissive | Andreas237/AndroidPolicyAutomation | b8e949e072d08cf6c6166c3f15c9c63379b8f6ce | c1ed10a2c6d4cf3dfda8b8e6291dee2c2a15ee8a | refs/heads/master | 2020-04-10T02:14:08.789751 | 2019-05-16T19:29:11 | 2019-05-16T19:29:11 | 160,739,088 | 5 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,436 | java | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package android.support.v7.view.menu;
import android.content.Context;
import android.os.Parcelable;
import android.view.ViewGroup;
// Referenced classes of package android.support.v7.view.menu:
// MenuBuilder, MenuItemImpl, MenuView, SubMenuBuilder
public interface MenuPresenter
{
public static interface Callback
{
public abstract void onCloseMenu(MenuBuilder menubuilder, boolean flag);
public abstract boolean onOpenSubMenu(MenuBuilder menubuilder);
}
public abstract boolean collapseItemActionView(MenuBuilder menubuilder, MenuItemImpl menuitemimpl);
public abstract boolean expandItemActionView(MenuBuilder menubuilder, MenuItemImpl menuitemimpl);
public abstract boolean flagActionItems();
public abstract int getId();
public abstract MenuView getMenuView(ViewGroup viewgroup);
public abstract void initForMenu(Context context, MenuBuilder menubuilder);
public abstract void onCloseMenu(MenuBuilder menubuilder, boolean flag);
public abstract void onRestoreInstanceState(Parcelable parcelable);
public abstract Parcelable onSaveInstanceState();
public abstract boolean onSubMenuSelected(SubMenuBuilder submenubuilder);
public abstract void setCallback(Callback callback);
public abstract void updateMenuView(boolean flag);
}
| [
"silenta237@gmail.com"
] | silenta237@gmail.com |
cd4ecb27a0a2253eaa1dd1467f30f71915787a07 | 8162c6a216aeef8e0060d33b72a3af30c9e8f7e5 | /src/server/tasks/ReportTask.java | 9396950da4c8447b24972cc772161226132aa2e3 | [
"MIT"
] | permissive | Romansko/ZerLi | 2ae5f7e55f02dbb9004ce268ef38ae436a55b1a2 | b1ca99da89f79e39eca1fac3a3873ce5a71573b7 | refs/heads/main | 2022-08-29T19:49:06.713662 | 2019-01-25T09:50:34 | 2019-01-25T09:50:34 | 113,896,216 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 944 | java | package server.tasks;
import java.text.ParseException;
import java.util.TimerTask;
import common.ZerliDate;
import server.reports.CreateReports;
public class ReportTask extends TimerTask {
private static int nextQuarter;
private static CreateReports cReports = new CreateReports();
public ReportTask()
{
try {
nextQuarter = new ZerliDate().getQuarter()+1;
if (nextQuarter == 5)
nextQuarter = 1;
} catch (ParseException e) {
e.printStackTrace();
}
}
/**
* this function make reports every starting quater
*/
@Override
public void run() {
ZerliDate now = new ZerliDate();
try {
if(nextQuarter== now.getQuarter())
{
cReports.generateReports(nextQuarter, now.getYearInInteger());
nextQuarter= now.getQuarter()+1;
if (nextQuarter == 5)
nextQuarter = 1;
System.err.println("Report Task done");
}
} catch (Exception e) {
// TODO: handle exception
}
}
}
| [
"romansko90@gmail.com"
] | romansko90@gmail.com |
c5ba3f05052253a0137428c48b2f3aa433487061 | 08923d90287e624cf108774db814598dec8f1925 | /learn-java/src/test/java/com.lemon.java/BaseTest.java | 9a38f4af89f087d516c59442d039fbab3abfdf37 | [] | no_license | Lemoner/LemonProject | 5d0a071f532b2b48a93e287b3168d41f70c1d0b7 | edf5ee919603ac847c187f6ffa8692d563427e81 | refs/heads/main | 2023-04-19T22:29:00.112267 | 2021-05-12T07:05:14 | 2021-05-12T07:05:14 | 365,152,748 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 840 | java | package com.lemon.java;
import org.junit.After;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
/**
* @author lemon
* @since 2021-05-07
*/
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = MainApplication.class)
@ActiveProfiles("BeanTest")
public class BaseTest {
private Long timeGap = 0L;
@Before
public void init() {
timeGap = System.currentTimeMillis();
System.out.println("开始测试-----------------");
}
@After
public void after() {
timeGap = System.currentTimeMillis() - timeGap;
System.out.println("测试结束-----------------:" + timeGap);
}
}
| [
"lemon"
] | lemon |
a1566863838dcf82d40b3427f9cafd0d0a2c6e47 | acfdcee39dbbb7a6381c3026d0dc556eba770ce9 | /src/main/java/com/controller/ResetPasswordForm.java | 059dd65b2b45bb1da5a61b85f571c71bbd225ff4 | [
"MIT"
] | permissive | t-neu/Java_Spring_Boot_Ajax | e2644577c1f4d46463fc541510b2c4586eccb37a | 5185006c02c52164637b2b29ffd4cb8678209b82 | refs/heads/master | 2021-01-23T05:15:22.042146 | 2017-06-01T03:25:18 | 2017-06-01T03:25:18 | 92,955,721 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 524 | java | package com.controller;
import javax.validation.constraints.NotNull;
import com.annotation.CheckForUsername;
public class ResetPasswordForm {
@NotNull
@CheckForUsername(message = "Sorry, there is no account with that username.")
private String username;
public String getUsername() {
return this.username;
}
public void setUsername(String username) {
this.username = username;
}
@Override
public String toString() {
return "PersonForm [username=" + username + "]";
}
} | [
"tom.neumeyer@gmail.com"
] | tom.neumeyer@gmail.com |
4c35abfea922ac6f1d049d1b180833bf867bc3e7 | 059166998df9013b1c2b43f04a8544d8198aa7e4 | /src/main/java/jp/gr/java_conf/islandocean/stockanalysis/enumex/HasDataValueClass.java | 4e9c01bafdd2e6c3eb1f89cad64cebfc3f2817fa | [] | no_license | islandocean/stockanalysis | 3bebbf2139c372efc6de0765b22d9d28e7d1e59d | cbbed2b113f4885c4050f1aaa8e4fb4815b21b7d | refs/heads/master | 2020-05-18T20:55:37.382248 | 2016-01-24T07:36:24 | 2016-01-24T07:36:24 | 39,019,999 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 203 | java | package jp.gr.java_conf.islandocean.stockanalysis.enumex;
public interface HasDataValueClass {
public Class<?> getDataValueClass();
public void setDataValueClass(Class<?> dataValueClass);
}
| [
"ijh312-tech3650@yahoo.co.jp"
] | ijh312-tech3650@yahoo.co.jp |
1c97e3c068fbff4bf980fcb8868289700cefa970 | a870dc7e107ecaacd79ab3e2c50d9e6770665240 | /src/main/java/com/github/sheigutn/pushbullet/http/defaults/delete/DeleteSpecificAccountRequest.java | 5bc3880f7054bf40a159329a7d14bcd4981735cd | [
"MIT"
] | permissive | Osndok/pushbullet-java-8 | 37f77f113ca88a3ed901ac6c6de4c6be85da07ce | 6bd296505403d91d67d8ff6cebed12af6d9eb485 | refs/heads/master | 2020-04-13T03:25:07.382386 | 2018-12-23T23:36:12 | 2018-12-23T23:37:10 | 162,931,097 | 0 | 0 | MIT | 2018-12-23T23:30:42 | 2018-12-23T23:30:42 | null | UTF-8 | Java | false | false | 371 | java | package com.github.sheigutn.pushbullet.http.defaults.delete;
import com.github.sheigutn.pushbullet.http.DeleteRequest;
import com.github.sheigutn.pushbullet.http.Urls;
public class DeleteSpecificAccountRequest extends DeleteRequest<Void> {
public DeleteSpecificAccountRequest(String accountIdentity) {
super(Urls.ACCOUNTS + "/" + accountIdentity);
}
}
| [
"fb020198@gmail.com"
] | fb020198@gmail.com |
f13801b75f2fe259edd3316637cabbfd4fb87ef2 | d224a60a6bb72701a9f24387c1d6bfdf95a4f08e | /Liang/Chapter3/Question3_27.java | 117e465302f9cc87b09b227cb59383cc3a710ef7 | [
"MIT"
] | permissive | akinfotech19/IntroductionToJavaProgramming | 34501122994f24f5fda02efcc47938ec57671e26 | 5006fe23a05658a42c08eb114d62e63c1a107cf4 | refs/heads/master | 2022-01-10T23:00:13.181918 | 2019-07-01T15:13:09 | 2019-07-01T15:13:09 | 266,969,874 | 1 | 0 | MIT | 2020-05-26T07:07:46 | 2020-05-26T07:07:45 | null | UTF-8 | Java | false | false | 1,243 | java | import java.util.Scanner;
/*
This is a really interesting question, because to create a generic version of it would require:
1) Have the generic ax + by = c versions of three lines that form the triangle.
2) Check to see whether any of these lines are parallel to the x-axis or y-axis (because for them the checking is different)
3) Check to see on which side of the line do the points fall on
At some point in the future, I'll create a complete implementation of just that. For now, we'll solve this problem with the given (specific) input.
*/
public class Question3_27
{
public static void main(String[] args)
{
Scanner scannerObject = new Scanner(System.in);
double x, y;
//take input from the user
System.out.print("Enter the co-ordinates of the point. ");
x = scannerObject.nextDouble();
y = scannerObject.nextDouble();
//first things first: check whether the point lies in the first quadrant
//after that bring in the calculated value of y from the third equation (hypotenuse)
if(x > 0 && y > 0 && y < (200 - x) / 2)
{
System.out.println("The point is in the triangle. ");
}
else
{
System.out.println("The point is outside the triangle. ");
}
}
}
| [
"subham.satyajeet1994@gmail.com"
] | subham.satyajeet1994@gmail.com |
a79a54dd24c851fcc5935d03fb5ee41661cb94ba | 77655847d0e8a211b3fb6298dd67413a2e99b969 | /kodilla-stream/src/main/java/com/kodilla/stream/forumuser/ForumUser.java | 16506f702872c5954458ba4b28c9635f54781903 | [] | no_license | przemyslawgontarczyk/przemyslaw-gontarczyk-kodilla-java | 1616bcde41173b4a0f9f8a92964d320ec8774040 | fe50682c3b798f0f7c0b0e5dad3fd58f5ebacb30 | refs/heads/master | 2021-09-12T09:38:11.162460 | 2018-04-15T21:15:05 | 2018-04-15T21:15:05 | 108,734,530 | 0 | 1 | null | 2017-11-12T19:50:28 | 2017-10-29T12:59:31 | HTML | UTF-8 | Java | false | false | 1,193 | java | package com.kodilla.stream.forumuser;
import java.time.LocalDate;
public final class ForumUser {
private final int userId;
private final String userName;
private final char sex;
private final LocalDate bornDate;
private final int postsPublicated;
public ForumUser(int userId, String userName, char sex, LocalDate bornDate, int postsPublicated) {
this.userId = userId;
this.userName = userName;
this.sex = sex;
this.bornDate = bornDate;
this.postsPublicated = postsPublicated;
}
public int getUserId() {
return userId;
}
public String getUserName() {
return userName;
}
public char getSex() {
return sex;
}
public LocalDate getBornDate() {
return bornDate;
}
public int getPostsPublicated() {
return postsPublicated;
}
@Override
public String toString() {
return
" userId" +
", userName='" + userName + '\'' +
", sex=" + sex +
", bornDate=" + bornDate +
", postsPublicated=" + postsPublicated + '\n';
}
}
| [
"“przemyslawgontarczyk@gmail.com"
] | “przemyslawgontarczyk@gmail.com |
ef8ba8aa1f72a3661129b5b89e3d49a68b5eab14 | 8bf4d5d8c2ed8743e8a0f8414b0a1415db43eee7 | /CC/java/QuoletController.java | 202de4f81bb087c748915f57ffd6795fdc4b0f29 | [] | no_license | FraPazGal/DP1_Sep_2019 | 69ae829e914781357dd13e503d69928095e70403 | 88e87690cd2f16dead51fc024299776551aba0af | refs/heads/master | 2020-06-02T14:19:41.296865 | 2019-09-04T15:39:54 | 2019-09-04T15:39:54 | 191,185,264 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Java | false | false | 5,556 | java | package controllers;
import java.util.Collection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.util.Assert;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;
import services.ConferenceService;
import services.QuoletService;
import services.UtilityService;
import domain.Actor;
import domain.Conference;
import domain.Quolet;
@Controller
@RequestMapping("/quolet")
public class QuoletController extends AbstractController {
@Autowired
private QuoletService quoletService;
@Autowired
private ConferenceService conferenceService;
@Autowired
private UtilityService utilityService;
/* Display */
/* Asumo que el display es para todos los actores del sistema */
@RequestMapping(value = "/display", method = RequestMethod.GET)
public ModelAndView display(
@RequestParam(value = "quoletid", required = true) Integer quoletid) {
ModelAndView res;
Quolet toDisplay;
Boolean found;
try {
toDisplay = this.quoletService.findOne(quoletid);
found = (toDisplay != null) ? true : false;
res = new ModelAndView("quolet/display");
res.addObject("quolet", toDisplay);
res.addObject("found", found);
} catch (Throwable oops) {
res = new ModelAndView("redirect:/welcome/index.do");
}
return res;
}
/* List */
/*
* Asumo que habrá distintas perspectivas para la misma vista, por lo que si
* el usuario es un admin sera el 'principal' y tendrá derecho a
* modificarlas
*/
@RequestMapping(value = "/list", method = RequestMethod.GET)
public ModelAndView list(
@RequestParam(value = "conferenceid", required = true) Integer conferenceid) {
ModelAndView res;
Actor principal;
Conference conference;
Collection<Quolet> quolets;
Boolean isPrincipal;
try {
quolets = this.quoletService.findConferenceQuolets(conferenceid);
principal = this.utilityService.findByPrincipal();
conference = this.conferenceService.findOne(conferenceid);
isPrincipal = conference.getAdministrator().getId() == principal
.getId();
res = new ModelAndView("quolet/list");
res.addObject("quolets", quolets);
res.addObject("isPrincipal", isPrincipal);
} catch (Throwable oops) {
res = new ModelAndView("redirect:/welcome/index.do");
}
return res;
}
/* Create */
@RequestMapping(value = "/admin/create", method = RequestMethod.GET)
public ModelAndView create(
@RequestParam(value = "conferenceid", required = true) Integer conferenceid) {
ModelAndView res;
Actor principal;
Quolet quolet;
try {
principal = this.utilityService.findByPrincipal();
Conference conference = this.conferenceService
.findOne(conferenceid);
Assert.notNull(conference, "null.conference");
Assert.isTrue(
conference.getAdministrator().getId() == principal.getId(),
"not.allowed");
quolet = new Quolet();
res = this.createEditModelAndView(quolet);
} catch (final Throwable oops) {
res = new ModelAndView("redirect:/welcome/index.do");
}
return res;
}
/* Edit */
@RequestMapping(value = "/admin/edit", method = RequestMethod.GET)
public ModelAndView edit(
@RequestParam(value = "quoletid", required = true) Integer quoletid) {
ModelAndView res;
Actor principal;
Quolet quolet;
try {
principal = this.utilityService.findByPrincipal();
quolet = this.quoletService.findOne(quoletid);
Assert.notNull(quolet, "null.quolet");
Assert.isTrue(quolet.getIsDraft(), "not.draft.mode");
Assert.isTrue(
quolet.getConference().getAdministrator().getId() == principal
.getId(), "not.allowed");
res = this.createEditModelAndView(quolet);
} catch (final Throwable oops) {
res = new ModelAndView("redirect:/welcome/index.do");
}
return res;
}
/* Save */
@RequestMapping(value = "/admin/edit", method = RequestMethod.POST, params = "save")
public ModelAndView save(Quolet quolet, BindingResult binding) {
ModelAndView res;
Quolet toSave;
try {
toSave = this.quoletService.reconstruct(quolet, binding);
if (binding.hasErrors()) {
res = this.createEditModelAndView(quolet);
} else {
this.quoletService.save(toSave);
res = new ModelAndView("redirect:/quolet/display.do?quoletid="
+ quolet.getId());
}
} catch (final Throwable oops) {
res = new ModelAndView("redirect:/welcome/index.do");
}
return res;
}
/* Deletion */
@RequestMapping(value = "/delete", method = RequestMethod.GET)
public ModelAndView delete(
@RequestParam(value = "quoletid", required = true) Integer quoletid) {
ModelAndView res;
try {
Quolet quolet = this.quoletService.findOne(quoletid);
res = new ModelAndView("redirect:/quolet/list.do?conferenceid="
+ quolet.getConference().getId());
this.quoletService.delete(quolet);
} catch (final Throwable oops) {
res = new ModelAndView("redirect:/welcome/index.do");
}
return res;
}
/* Ancillary methods */
private ModelAndView createEditModelAndView(Quolet quolet) {
return this.createEditModelAndView(quolet, null);
}
private ModelAndView createEditModelAndView(Quolet quolet,
String messageCode) {
ModelAndView res = new ModelAndView("quolet/edit");
res.addObject("quolet", quolet);
res.addObject("errMsg", messageCode);
return res;
}
}
| [
"pablomf@hotmail.es"
] | pablomf@hotmail.es |
e9b1276f7fd90e6be16376b300effa84fb41e229 | 9ce31055cc5467c2655f60030103beb502db125b | /spring/boot/boot-web-jdbc/src/main/java/com/boot/web/controller/CompanyController.java | 54c04680ef981281ab1bf6b021dd24d20b11110e | [] | no_license | manishfullDev/All-Project | 969cfadbb608a76054c675fd854fb2c05f5f8ee2 | 888f852aea6f4271d8a2737bf6ab1eec7525bad2 | refs/heads/master | 2023-08-03T10:55:45.437393 | 2020-04-07T06:44:08 | 2020-04-07T06:44:08 | 253,693,976 | 1 | 0 | null | 2023-07-23T11:10:07 | 2020-04-07T05:17:53 | Java | UTF-8 | Java | false | false | 728 | java | package com.boot.web.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import com.boot.web.dto.CompanyDto;
import com.boot.web.service.CompanyService;
@Controller
public class CompanyController {
@Autowired
private CompanyService companyService;
@RequestMapping("/companies")
public String showCompanies(Model model) {
List<CompanyDto> companies = null;
companies = companyService.getCompanies();
model.addAttribute("companies", companies);
model.addAttribute("devtools", "enabled");
return "companies";
}
}
| [
"manish.vishwakarma@s-force.org"
] | manish.vishwakarma@s-force.org |
ffb1017b443c88213c448375a3a1a560a6233de7 | 969f3341f79236051b2fd6196f38d741f76d9e3e | /app/src/main/java/com/sagishchori/tmdb_app/fragments/BaseFragment.java | 689c6f56662449c70ca890739c5e1bf4fa309541 | [] | no_license | sagishchori/TMDBApp2 | 614555d3a1a8ee6097803b3cb76a2d96585f315b | 9ff4b16b0932d25989b569362b480454496d9699 | refs/heads/master | 2020-07-06T23:06:44.394370 | 2019-08-19T12:19:25 | 2019-08-19T12:19:25 | 203,166,792 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 587 | java | package com.sagishchori.tmdb_app.fragments;
import android.support.v4.app.Fragment;
public abstract class BaseFragment<T extends Fragment> extends Fragment {
/**
* A method to get the {@link android.arch.lifecycle.ViewModel}.
*/
protected abstract void getViewModel();
/**
* A method to load data from server (optional).
*/
protected abstract void loadData();
/**
* A method to set the ActionBar. Each fragment can control the {@link android.app.ActionBar}
* via this method.
*/
protected abstract void setupActionBar();
}
| [
"sagi.shchori@gmail.com"
] | sagi.shchori@gmail.com |
802b8daee6ec77d7f5b5d4fd6d6c4e2f93d60cc3 | 553b33fd044a3c90a80ea619bb27520260dbc1ce | /IUH/Module1_Bai4/Main.java | c9752152fcea4f89d831190e6a06392390828e94 | [] | no_license | mrfoott/OOP_Homework_VTCA | b2c0dafa36ebeda0182383ec75dd80afebf956b2 | 7ef21e7124d89aae82af298d6d942520761de238 | refs/heads/main | 2023-04-03T11:13:46.912316 | 2021-03-29T09:32:21 | 2021-03-29T09:32:21 | 346,614,656 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,147 | java | import java.text.NumberFormat;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Locale;
public class Main
{
public static void main(String[] args)
{
ArrayList<GiaoDich> danhSachGiaoDich = new ArrayList<>();
GiaoDich giaoDich1 = new GiaoDichNha("580192", LocalDate.of(2020, 7, 14), 29000000, 35, "Cao Cap", "713 Hoa Binh");
GiaoDich giaoDich2 = new GiaoDichNha("137933", LocalDate.of(2021, 2, 11), 33000000, 50, "Cao Cap", "112 Au Co");
GiaoDich giaoDich3 = new GiaoDichNha("962913", LocalDate.of(2020, 12, 19), 28000000, 42, "Thuong", "215 Lac Long Quan");
GiaoDich giaoDich4 = new GiaoDichNha("786901", LocalDate.of(2021, 2, 23), 26500000, 33, "Thuong", "89 Hoang Dieu");
GiaoDich giaoDich5 = new GiaoDichNha("309862", LocalDate.of(2020, 7, 1), 16000000, 120, "Thuong", "77 Ten Lua");
GiaoDich giaoDich6 = new GiaoDichDat("231653", LocalDate.of(2020, 7, 19), 12000000, 200, "A");
GiaoDich giaoDich7 = new GiaoDichDat("413642", LocalDate.of(2020, 7, 18), 10000000, 150, "B");
GiaoDich giaoDich8 = new GiaoDichDat("351952", LocalDate.of(2020, 7, 17), 11500000, 165, "B");
GiaoDich giaoDich9 = new GiaoDichDat("985219", LocalDate.of(2020, 7, 16), 10000000, 220, "C");
GiaoDich giaoDich10 = new GiaoDichDat("998445", LocalDate.of(2020, 7, 15), 9800000, 300, "C");
GiaoDich giaoDich11 = new GiaoDichDat("109223", LocalDate.of(2020, 7, 14), 8900000, 185, "C");
danhSachGiaoDich.add(giaoDich1);
danhSachGiaoDich.add(giaoDich2);
danhSachGiaoDich.add(giaoDich3);
danhSachGiaoDich.add(giaoDich4);
danhSachGiaoDich.add(giaoDich5);
danhSachGiaoDich.add(giaoDich6);
danhSachGiaoDich.add(giaoDich7);
danhSachGiaoDich.add(giaoDich8);
danhSachGiaoDich.add(giaoDich9);
danhSachGiaoDich.add(giaoDich10);
danhSachGiaoDich.add(giaoDich11);
int iCC = 0, iT = 0, iA = 0, iB = 0, iC = 0;
for (GiaoDich gd : danhSachGiaoDich)
{
if (gd instanceof GiaoDichNha)
{
if (gd.getLoai().equals("Cao Cap"))
{
iCC++;
}
else if (gd.getLoai().equals("Thuong"))
{
iT++;
}
}
else if (gd instanceof GiaoDichDat)
{
if (gd.getLoai().equals("A"))
{
iA++;
}
else if (gd.getLoai().equals("B"))
{
iB++;
}
else if (gd.getLoai().equals("C"))
{
iC++;
}
}
}
System.out.println("Tong so luong tung loai: ");
System.out.println("So Luong nha loai cao cap: " + iCC);
System.out.println("So Luong nha loai thuong: " + iT);
System.out.println("So Luong dat loai A: " + iA);
System.out.println("So Luong dat loai B: " + iB);
System.out.println("So Luong dat loai C: " + iC);
System.out.println("Trung binh thanh tien cua giao dich dat la: ");
double temp = 0.0;
int count = 0;
Locale local = new Locale("vi", "vn");
NumberFormat nf = NumberFormat.getInstance(local);
for (GiaoDich gd : danhSachGiaoDich)
if (gd instanceof GiaoDichDat)
{
temp += gd.getThanhTien();
count++;
}
if (count != 0)
{
System.out.println(nf.format(temp / (double) count));
}
else
{
System.out.println("Khong co giao dich dat");
}
System.out.println("Giao dich dat ngay 14/07/2020 la: ");
for (GiaoDich gd : danhSachGiaoDich)
{
if (gd.ngayGiaoDich.isEqual(LocalDate.of(2020, 7, 14)))
{
System.out.println(gd.getInfo());
}
}
}
}
| [
"noreply@github.com"
] | noreply@github.com |
3ce636de00635f3ce133bccd23a34c35ec64b947 | de8b751d86d5f2c221675e5bc0aeef62297418da | /fetch/src/java/cn/exinhua/fetch/utils/BloomFilter.java | d6b6fc4ac6791a87abde33ce26e10548a541ef4e | [] | no_license | fysoft2006/kamike.collect | e5b79c965d5b96e24c4e091fe751a7957165d001 | c053ae0a1e718f695e7f7ec39e9ab0650aef76a2 | refs/heads/master | 2020-12-13T20:55:26.697263 | 2015-03-30T03:12:12 | 2015-03-30T03:12:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,428 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package cn.exinhua.fetch.utils;
import java.util.BitSet;
public class BloomFilter {
public BitSet bitSet = new BitSet(2 << 24);
public int seeds[] = {3, 7, 11, 13, 31, 37, 61};
public BloomFilter() {
}
int getHashValue(String str, int n) {
int result = 0;
for (int i = 0; i < str.length(); i++) {
result = seeds[n] * result + (int) str.charAt(i);
if (result > 2 << 24) {
result %= 2 << 24;
}
}
return result;
}
public boolean contains(String str) {
for (int i = 0; i < 7; i++) {
int hash = getHashValue(str, i);
if (bitSet.get(hash) == false) {
return false;
}
}
return true;
}
public void add(String str) {
for (int i = 0; i < 7; i++) {
int hash = getHashValue(str, i);
bitSet.set(hash, true);
}
}
public static void main(String[] args){
BloomFilter filter=new BloomFilter();
String baseurl="http://www.baidu.com";
for(int i=0;i<10000;i++){
System.out.println(filter.contains(baseurl+i%100));
filter.add(baseurl+i);
}
}
}
| [
"hubinix@gmail.com"
] | hubinix@gmail.com |
e45a82016bd2bc55bcda8e3505694768351d6f81 | 3388bdcca89af10f6699dbb6b9c5df1115a9f3ef | /viikko3/LoginCucumber/src/main/java/ohtu/services/AuthenticationService.java | c12c5a568d6ded4e840a2faa0fc2bf61ace968b0 | [] | no_license | LinAksel/ohtu-tehtavat | 67d9d69ec10a6d92939f29f9674eb090ffeac484 | d39b7e762d648f2e302d0f374d1f244bf19d563e | refs/heads/master | 2021-04-08T19:25:29.504076 | 2020-04-30T14:25:29 | 2020-04-30T14:25:29 | 248,803,856 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,257 | java | package ohtu.services;
import ohtu.domain.User;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import ohtu.data_access.UserDao;
public class AuthenticationService {
private UserDao userDao;
public AuthenticationService(UserDao userDao) {
this.userDao = userDao;
}
public boolean logIn(String username, String password) {
for (User user : userDao.listAll()) {
if (user.getUsername().equals(username) && user.getPassword().equals(password)) {
return true;
}
}
return false;
}
public boolean createUser(String username, String password) {
if (userDao.findByName(username) != null) {
return false;
}
if (invalid(username, password)) {
return false;
}
userDao.add(new User(username, password));
return true;
}
private boolean invalid(String username, String password) {
if (username.length() < 3 || !Pattern.matches("[a-z]+", username)) {
return true;
}
if (password.length() < 8 || Pattern.matches("[a-zA-zåäöÅÄÖ]+", password)) {
return true;
}
return false;
}
}
| [
"linrosaksel@gmail.com"
] | linrosaksel@gmail.com |
11b42333c2b02629ddb9e4fbd258a9c12d61ebcb | 2ad815e9607bd61fa61392f35306cdbfb1223f22 | /ex/exercicio3.java | 56abb3fe038240e33d6135b3c3d2566214de5cdb | [] | no_license | vannalien/Trabalhos-java | a3a5e467fd91857b3ab1b686ba83677d8aeb30c7 | 436981b130b08e7f8d4dddefc11d4b126127ea41 | refs/heads/master | 2022-07-11T04:21:47.568282 | 2020-05-18T00:42:09 | 2020-05-18T00:42:09 | 262,680,947 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 697 | java |
package ex;
import java.util.Scanner;
public class exercicio3 {
public static void main(String[] args) {
int x, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10;
Scanner tec = new Scanner (System.in);
System.out.println("Digite um número de 0 a 10 para ver sua tabuada");
x = tec.nextInt();
m1 = x*1;
m2 = x*2;
m3 = x*3;
m4 = x*4;
m5 = x*5;
m6 = x*6;
m7 = x*7;
m8 = x*8;
m9 = x*9;
m10 = x*10;
System.out.println("a tabuada de " + x + " é: " + m1 + m2 + m3 + m4 + m5 + m6 + m7 + m8 + m9 + m10);
}
}
| [
"noreply@github.com"
] | noreply@github.com |
0ab3d0d94129f07bd9b9f96d1cc49562cd37c15b | c7a739054a6db52578c7ef88836cc326efc8d59c | /microservice-provider-xcyf168/src/main/java/com/xcyf/springcloud/service/IProductService.java | adb5278a44f42673f1e687e4deb88ca94ba6aa3b | [] | no_license | liaojiamin/springcloud-learn | e43ee80790e4a0cbc9708837f0483b99382afb2c | 32a1e71448dc774e251ac5d46e1f7e11c4e01916 | refs/heads/master | 2023-04-18T22:32:50.264520 | 2021-05-12T04:26:09 | 2021-05-12T04:26:09 | 282,099,941 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 852 | java | package com.xcyf.springcloud.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xcyf.springcloud.entity.XcyfProduct;
import com.xcyf.springcloud.request.AddProductRequest;
import com.xcyf.springcloud.request.PageListProductRequest;
import com.xcyf.springcloud.response.BaseResponse;
import com.xcyf.springcloud.response.ProductDetailResponse;
/**
* @author liaojiamin
* @Date:Created in 16:53 2021/5/11
*/
public interface IProductService extends IService<XcyfProduct> {
BaseResponse addproduct(AddProductRequest request);
BaseResponse delProduct(Long productID);
BaseResponse updateProduct(AddProductRequest request);
IPage<XcyfProduct> pageList(PageListProductRequest request);
ProductDetailResponse productDetail(Long id, Long userID);
}
| [
"jiamin.liao@zhenai.com"
] | jiamin.liao@zhenai.com |
3aca9d27cd38c70c65667c32232f6bb55484b181 | b781d0b2485d80a0fac603407bf6fa7f12ebe905 | /BoletoBancarioJuno/src/br/co/jorgereidinaldo/juno/app/Xml.java | 888dcae5abb7bcbf746c1a7f5ce7bc9616867277 | [] | no_license | jorgereidinaldo/BoletoBancarioJuno | b727bba456db5c5182699ea1519e4f8c39e96b69 | efb9ae1e6c26fc67b6e882633152e1af51e95fb9 | refs/heads/master | 2022-07-04T17:45:44.980848 | 2020-05-14T18:20:59 | 2020-05-14T18:20:59 | 263,733,542 | 0 | 0 | null | null | null | null | ISO-8859-1 | Java | false | false | 5,935 | java | package br.co.jorgereidinaldo.juno.app;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.math.BigDecimal;
import java.text.ParseException;
import java.util.ArrayList;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;
import br.com.jorgereidinaldo.juno.classes.BilletDetails;
import br.com.jorgereidinaldo.juno.classes.Charge;
import br.com.jorgereidinaldo.juno.classes.Charges;
import br.com.jorgereidinaldo.juno.classes.Data;
import br.com.jorgereidinaldo.juno.classes.Payment;
import br.com.jorgereidinaldo.juno.classes.Payments;
import br.com.jorgereidinaldo.juno.classes.Result;
import br.com.jorgereidinaldo.juno.classes.RetornoPagamentoJuno;
import br.com.jorgereidinaldo.juno.util.Util;
public class Xml {
public static void main(String[] args) throws FileNotFoundException, ParseException {
lerXML("C:\\juno.xml");
//gravaXml();
}
private static ArrayList<RetornoPagamentoJuno> lerXML(String caminhoXML) throws FileNotFoundException, ParseException {
XStream xstream = new XStream(new DomDriver());
ArrayList<RetornoPagamentoJuno> lista=new ArrayList<RetornoPagamentoJuno>();
if(new File(caminhoXML).exists()) {
// Crio arquivo
FileInputStream input = new FileInputStream(new File(caminhoXML));
xstream.alias("result", Result.class);
xstream.alias("data", Data.class);
xstream.alias("charges", Charges.class);
xstream.alias("charge", Charge.class);
xstream.addImplicitCollection(Charges.class, "charge", Charge.class);
xstream.alias("billetDetails", BilletDetails.class);
xstream.alias("payments", Payments.class);
xstream.alias("payment", Payment.class);
// BufferedReader input = new BufferedReader(new FileReader("c:/teste.xml"));
//File input = new File("c://teste.xml");
//File fXmlFile = new File("c:/juno.xml");
//FileInputStream fis = new FileInputStream(fXmlFile);
/** Fazendo o cast para o tipo de objeto Pessoa **/
//System.out.println(fis);
System.out.println(input);
Result xml1 = (Result) xstream.fromXML(input);
//System.out.println(input);
for( Charge result: xml1.getData().getCharges().getCharge()) {
RetornoPagamentoJuno r=new RetornoPagamentoJuno();
r.setAmount(result.getPayments().getPayment().getAmount());
r.setBankAccount(result.getBilletDetails().getBankAccount());
r.setCode(result.getCode());
r.setDate(Util.dataFormatada(result.getPayments().getPayment().getDate()));
r.setDueDate(Util.dataFormatada(result.getDueDate()));
r.setFee(result.getPayments().getPayment().getFee());
r.setLink(result.getLink());
r.setOurNumber(result.getBilletDetails().getOurNumber());
r.setPayNumber(result.getPayNumber());
r.setStatus(result.getPayments().getPayment().getStatus());
r.setType(result.getPayments().getPayment().getType());
lista.add(r);
}
/** Imprimindo o resultado no console **/
System.out.println("Nome :" + xml1.getData().getCharges().getCharge().get(0).getDueDate());
System.out.println("Valor Pago :" + xml1.getData().getCharges().getCharge().get(0).getPayments().getPayment().getDate());
//System.out.println("Nome :" + xml1.getData().getCharges().getCharge().get(0).getBilletDetails().get(0).getBarcodeNumber());
//System.out.println("Idade :" + xml1.getIdade());
}
return lista;
}
/*
private static String gravaXml() {
XStream xstream = new XStream(new DomDriver());
//O código abaixo é opcional
//xstream.alias("pessoa", Pessoa.class);
//xstream.alias("telefone", Fone.class);
//Pessoa joao = new Pessoa("João", "da Silva");
//joao.setFone(new Fone(1,"1234-456"));
//joao.setCelular(new Fone(2,"9999-9999"));
Result r =new Result();
Data data=new Data();
Charges charges=new Charges();
ArrayList<Charge> charge=new ArrayList<Charge>();
Charge charge1=new Charge();
ArrayList<BilletDetails> billetDetails=new ArrayList<BilletDetails>();
Payment pay = new Payment();
xstream.alias("result", Result.class);
xstream.alias("data", Data.class);
xstream.alias("charges", Charges.class);
xstream.alias("charge", Charge.class);
xstream.addImplicitCollection(Charges.class, "charge", Charge.class);
xstream.alias("billetDetails", BilletDetails.class);
xstream.alias("payments", Payments.class);
Charge a=new Charge();
a.setCode("1234568");
a.setDueDate("10-05-2020");
a.setPayNumber("BOLETO PAGO");
charge.add(a);
Charge n=new Charge();
n.setCode("123456");
n.setDueDate("10-05-2020");
n.setPayNumber("BOLETO PAGO");
charge.add(n);
Charge b=new Charge();
b.setCode("123456");
b.setDueDate("10-05-2020");
b.setPayNumber("BOLETO PAGO");
charge.add(b);
BilletDetails bili=new BilletDetails();
bili.setBankAccount("0655/46480-8");
bili.setOurNumber("176/70018821-3");
bili.setBarcodeNumber("34191825400000012751767001882130655464808000");
bili.setPortfolio("176");
billetDetails.add(bili);
BilletDetails bil=new BilletDetails();
bil.setBankAccount("0655/46480-8");
bil.setOurNumber("176/70018821-3");
bil.setBarcodeNumber("34191825400000012751767001882130655464808000");
bil.setPortfolio("176");
billetDetails.add(bil);
pay.setId("48836");
pay.setAmount("50,00");
pay.setDate("10-05-2020");
pay.setFee("3.90");
pay.setType("BOLETO");
pay.setStatus("CONFIRMED");
r.setData(data);
r.getData().setCharges(charges);
r.getData().getCharges().setCharge(charge);
r.getData().getCharges().getCharge().get(0).setBilletDetails(bili);
r.getData().getCharges().getCharge().get(1).setBilletDetails(bil);
//r.getData().getCharges().getCharge().setPaymentsPay(pay);
String xml = xstream.toXML(r);
System.out.println(xml);
return xml;
}
*/
}
| [
"User@DESKTOP-AMDRA7S"
] | User@DESKTOP-AMDRA7S |
9f567a483397518d5baab2bfbf9c8b4896ddbdab | 6a455d50ee15410d1301c78d12317f3bdc6fa4b7 | /src/main/java/com/chan/Eschool/global/dao/UserDaoImpl.java | bb58b491fa54e7443e9fe22167aa9dfb94f34949 | [] | no_license | Darshan746/ESchool | f0e8e900166c3b5ce613a02d2b605d046af93d2d | ab2668f2e14cc6f3fe7190b7412f5c81e959b3f9 | refs/heads/master | 2016-09-05T22:31:55.922842 | 2015-05-16T12:09:07 | 2015-05-16T12:09:07 | 34,271,666 | 0 | 0 | null | 2015-05-16T12:09:07 | 2015-04-20T16:15:48 | Java | UTF-8 | Java | false | false | 3,295 | java | package com.chan.Eschool.global.dao;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.chan.Eschool.global.model.User;
@Repository
@SuppressWarnings("unchecked")
public class UserDaoImpl implements UserDao{
@Autowired
private SessionFactory sessionFactory;
@Override
public User addUser(User user) {
if(user != null){
Session session = getSessionFactory().getCurrentSession();
if(user.getId() == 0){
session.save(user);
return user;
}else if(user.getId() > 0){
session.update(user);
return user;
}
}
return null;
}
@Override
public User findUserById(long id) {
if(id > 0){
Session session = getSessionFactory().getCurrentSession();
User user = (User) session.get(User.class, id);
return user;
}
return null;
}
@Override
public boolean activateUser(long id) {
if(id > 0){
Session session = getSessionFactory().getCurrentSession();
/*Query query = session.createQuery("UPDATE User U SET U.active = true WHERE U.id = :id");
query.setParameter("id", id);
int row = query.executeUpdate();
if(row > 0){
return true;
}*/
User user = (User) session.get(User.class, id);
user.setActive(true);
session.update(user);
return true;
}
return false;
}
@Override
public boolean deActivateUser(long id) {
if(id > 0){
Session session = getSessionFactory().getCurrentSession();
User user = (User) session.get(User.class, id);
user.setActive(false);
session.update(user);
return true;
}
return false;
}
@Override
public List<User> getAllUsers() {
Session session = getSessionFactory().getCurrentSession();
List<User> users = session.createCriteria(User.class).list();
if(users.size() > 0){
return users;
}
return null;
}
@Override
public boolean deleteUser(long id) {
if(id > 0){
Session session = getSessionFactory().getCurrentSession();
User user = (User) session.get(User.class, id);
session.delete(user);
return true;
}
return false;
}
@Override
public boolean userExists(String email) {
if(!email.isEmpty() && email != null){
Session session = getSessionFactory().getCurrentSession();
Query query = session.createQuery("SELECT U FROM User U WHERE U.email = :email");
query.setParameter("email", email);
List<User> users = query.list();
if(users.size() > 0){
return true;
}
}
return false;
}
@Override
public User findUserByEmail(String email) {
if(!email.isEmpty()){
Session session = this.sessionFactory.getCurrentSession();
Query query = session.createQuery("SELECT U FROM User U WHERE U.email = :email");
query.setParameter("email", email);
List<User> users = query.list();
if(users.size() > 0){
return users.get(0);
}
}
return null;
}
public SessionFactory getSessionFactory() {
return sessionFactory;
}
public void setSessionFactory(SessionFactory sessionFactory) {
this.sessionFactory = sessionFactory;
}
}
| [
"darshan.mn746@gmail.com"
] | darshan.mn746@gmail.com |
ec3c311e54c51b63a97dff36355cf21658dab8a8 | 584e3159aec43ff98af4e8bccecb3754a29ed10c | /gulimall-pms/src/main/java/com/atguigu/gulimall/pms/entity/SpuInfoEntity.java | 887389349159512c8d3007a294d03f2a5bc6f0c7 | [] | no_license | Leyao929/gulimall | cdbbd9cff3011f2747ebd7adbbf36eba483d1f6c | c7d7cc2e0d77800074d5c57ffa8ebc5aae946b1f | refs/heads/master | 2022-08-08T20:22:45.817552 | 2019-08-14T08:58:04 | 2019-08-14T08:58:04 | 200,006,923 | 0 | 0 | null | 2022-07-06T20:40:25 | 2019-08-01T08:09:46 | JavaScript | UTF-8 | Java | false | false | 1,473 | java | package com.atguigu.gulimall.pms.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* spu信息
*
* @author leyao
* @email hzb@leyao.com
* @date 2019-08-03 13:21:08
*/
@ApiModel
@Data
@TableName("pms_spu_info")
public class SpuInfoEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 商品id
*/
@TableId
@ApiModelProperty(name = "id",value = "商品id")
private Long id;
/**
* 商品名称
*/
@ApiModelProperty(name = "spuName",value = "商品名称")
private String spuName;
/**
* 商品描述
*/
@ApiModelProperty(name = "spuDescription",value = "商品描述")
private String spuDescription;
/**
* 所属分类id
*/
@ApiModelProperty(name = "catalogId",value = "所属分类id")
private Long catalogId;
/**
* 品牌id
*/
@ApiModelProperty(name = "brandId",value = "品牌id")
private Long brandId;
/**
* 上架状态[0 - 下架,1 - 上架]
*/
@ApiModelProperty(name = "publishStatus",value = "上架状态[0 - 下架,1 - 上架]")
private Integer publishStatus;
/**
*
*/
@ApiModelProperty(name = "createTime",value = "")
private Date createTime;
/**
*
*/
@ApiModelProperty(name = "uodateTime",value = "")
private Date uodateTime;
}
| [
"leyao929@outlook.com"
] | leyao929@outlook.com |
9c0b6604b8cceb452a7b4809ce2d4474ea03e83d | e21015d867a47a1ffc6a25ccfc6093df26b344bc | /JDK/src/thread/Test1.java | 544327908b1ce209b63e1fafc0cf71406a20c3d4 | [] | no_license | liuxing5yu/TestInIDEA | 7d758f7ab9186c20bb53b3a4676b4f8fd0e35323 | 20a281b4df9936b644e75b3ac2e8e9fd978779fa | refs/heads/master | 2022-12-21T08:06:57.532117 | 2019-06-26T02:06:53 | 2019-06-26T02:06:53 | 156,318,309 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,336 | java | /**
*
*/
package thread;
/**
* @author hwj
* @date 2017年10月7日 下午7:57:27
*
* @see Java 里如何实现线程间通信? http://wingjay.com/2017/04/09/Java%E9%87%8C%E5%A6%82%E4%BD%95%E5%AE%9E%E7%8E%B0%E7%BA%BF%E7%A8%8B%E9%97%B4%E9%80%9A%E4%BF%A1%EF%BC%9F/
*
* 有问题!!!
*/
public class Test1 {
public static void main(String[] args) {
// demo1(); // 两个线程同时执行
// demo2();// 两个县城依次执行
demo3();// A 1, B 1, B 2, B 3, A 2, A 3
}
private static void demo1() {
Thread A = new Thread(new Runnable() {
@Override
public void run() {
printNumber("A");
}
});
Thread B = new Thread(new Runnable() {
@Override
public void run() {
printNumber("B");
}
});
A.start();
B.start();
}
private static void demo2() {
Thread A = new Thread(new Runnable() {
@Override
public void run() {
printNumber("A");
}
});
Thread B = new Thread(new Runnable() {
@Override
public void run() {
System.out.println("B 开始等待 A");
try {
A.join();
} catch (InterruptedException e) {
e.printStackTrace();
}
printNumber("B");
}
});
B.start();
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
A.start();
}
/**
* A 1, B 1, B 2, B 3, A 2, A 3
*/
private static void demo3() {
Object lock = new Object();
Thread A = new Thread(new Runnable() {
@Override
public void run() {
synchronized (lock) {
System.out.println("A 1");
try {
lock.wait();
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("A 2");
System.out.println("A 3");
}
}
});
Thread B = new Thread(new Runnable() {
@Override
public void run() {
synchronized (lock) {
System.out.println("B 1");
System.out.println("B 2");
System.out.println("B 3");
lock.notify();
}
}
});
B.start();
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
A.start();
}
private static void printNumber(String threadName) {
int i = 0;
while (i++ < 3) {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println(threadName + " print: " + i);
}
}
}
| [
"liuxing5yu@users.noreply.github.com"
] | liuxing5yu@users.noreply.github.com |
e11486b8c149b1ecdb4d6d5b31ce0d52e467e8e8 | e4aa8c73d2a951999fe1c1d048ead2f1f81a8b1c | /src/main/java/JVMProject/AnotherJVMtask.java | 1e784eab574fb03b32bdec9b5d7ba02688aeaf9e | [] | no_license | AdamRojewski/Homeworks | 8bc1ab988990675b2be656614d7a1593961dbd04 | dac0de10a66e6dc39c66967453b60dcaf465a7f7 | refs/heads/master | 2020-04-27T23:58:00.018050 | 2019-03-10T08:45:25 | 2019-03-10T08:45:25 | 174,798,462 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,202 | java | package JVMProject;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/*public class AnotherJVMtask {
public static void main(String[] args) {
TestCalculator("dodaj");
}
private static void TestCalculator(String[] args) {
String type = args[0];
AnotherJVMtask m = new AnotherJVMtask();
int b = Integer.valueOf(args[2]);
int a = Integer.valueOf(args[1]);
m.doIt(type, a, b);
}
public int dodaj(int a, int b) {
return a + b;
}
public int odejmij(int a, int b) {
return a - b;
}
public int mnoz(int a, int b) {
return a * b;
}
public int dziel(int a, int b) {
return a / b;
}
public void doIt(String type, int a, int b) {
try {
Class c = this.getClass();
Method action = c.getMethod(type, int.class, int.class);
Object result = action.invoke(this, a, b);
System.out.println("Wynik to " + result);
} catch (NoSuchMethodException | IllegalAccessError | InvocationTargetException e) {
System.out.println("Brak obslugiwanej metody");
}
}
}
*/ | [
"adam.a.rojewski@gmail.com"
] | adam.a.rojewski@gmail.com |
4b889e19c0e3e63126c5634977ab7886da6076e2 | 4072cdea20ca4aa16ba49da90ff4585d6867e055 | /financeiro/WEB-INF/src/com/grupoexata/financeiro/dao/ModelGrupoConta.java | 35d2f12695005b40aa98d86edd2d9d7aef1d31ca | [] | no_license | altairaquino/financeiroConsignado | f3cf22178c2f99c4828ec488fb61fed232b2cd46 | 9d21460067315401eeaee2da32cbe27fa50ab7a6 | refs/heads/master | 2020-05-17T17:39:51.634594 | 2015-01-04T18:26:25 | 2015-01-04T18:26:25 | 28,781,990 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,279 | java | package com.grupoexata.financeiro.dao;
import java.sql.PreparedStatement;
import java.util.ArrayList;
import java.util.List;
import com.grupoexata.bancario.dao.Banco;
import com.grupoexata.bancario.utils.Utils;
import com.grupoexata.financeiro.struts.bean.BeanGrupoConta;
public class ModelGrupoConta {
public static ModelGrupoConta getInstance(){
return new ModelGrupoConta();
}
public ArrayList<BeanGrupoConta> getGruposConta(){
ArrayList<BeanGrupoConta> grupos = new ArrayList<BeanGrupoConta>();
try {
String sql = " SELECT * FROM VW_GRUPOCONTA";
PreparedStatement st = Banco.getConnection().prepareStatement(sql);
grupos.addAll(Utils.getObjectsStr(st, BeanGrupoConta.class));
} catch (Exception e) {
e.printStackTrace();
}
return grupos;
}
public BeanGrupoConta getGrupoConta(int gpcncodg){
BeanGrupoConta grupoConta = null;
try {
String sql = "SELECT * FROM VW_GRUPOCONTA WHERE GPCNCODG = ?";
PreparedStatement st = Banco.getConnection().prepareStatement(sql);
st.setInt(1, gpcncodg);
List<BeanGrupoConta> l = Utils.getObjectsStr(st, BeanGrupoConta.class);
if (!l.isEmpty())
grupoConta = l.get(0);
} catch (Exception e) {
e.printStackTrace();
}
return grupoConta;
}
/*
public void inserir(BeanGrupoConta GrupoConta){
try {
String sql = "INSERT INTO GrupoConta (FLQCDESC, FLQLIMED) VALUES (?,?)";
PreparedStatement st = Banco.getConnection().prepareStatement(sql);
st.setString(1, GrupoConta.getFlqcdesc().toUpperCase());
st.setString(2, GrupoConta.getFlqlimed());
st.executeUpdate();
} catch (Exception e) {
e.printStackTrace();
}
}
public void update(BeanGrupoConta GrupoConta){
try {
String sql = " UPDATE GrupoConta " +
" SET FLQCDESC = ?," +
" FLQLIMED = ?"+
" WHERE FLQNCODG = ?";
PreparedStatement st = Banco.getConnection().prepareStatement(sql);
st.setString(1, GrupoConta.getFlqcdesc().toUpperCase());
st.setString(2, GrupoConta.getFlqlimed());
st.setInt(3, Integer.parseInt(GrupoConta.getFlqncodg()));
st.executeUpdate();
} catch (Exception e) {
e.printStackTrace();
}
}
*/
}
| [
"altairaquino@gmail.com"
] | altairaquino@gmail.com |
51933e179d99119f02d785ce97168b44becfb910 | 0846e1bd0bb5a4d86dab5cba1ef1c978f6c8a3a3 | /app/src/main/java/com/example/relieved/Bullet.java | f40b04effcac2d2621805aa1b0ce9b170f987d30 | [] | no_license | Kiranmayep/Relieved_App | f7bade0437a1575e805c3d37426e3a5e8887ae46 | 957284d1a2c68eaa0aa6de3a02721d19b3983b85 | refs/heads/master | 2023-02-24T14:11:45.164249 | 2021-02-03T09:19:32 | 2021-02-03T09:19:32 | 335,345,085 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 857 | java | package com.example.relieved;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Rect;
import static com.example.relieved.Birdgameview.screenRatioX;
import static com.example.relieved.Birdgameview.screenRatioY;
public class Bullet {
int x, y, width, height;
Bitmap bullet;
Bullet (Resources res) {
bullet = BitmapFactory.decodeResource(res, R.drawable.bullet);
width = bullet.getWidth();
height = bullet.getHeight();
width /= 4;
height /= 4;
width = (int) (width * screenRatioX);
height = (int) (height * screenRatioY);
bullet = Bitmap.createScaledBitmap(bullet, width, height, false);
}
Rect getCollisionShape () {
return new Rect(x, y, x + width, y + height);
}
} | [
"kiranmaye2904@gmail.com"
] | kiranmaye2904@gmail.com |
e1eadd763d3fea069a0d1ace9373f37608f74405 | 94da9df747bef2db246f0cdeb20963f5a7fa09ba | /src/main/java/com/fox/testsys/utility/AutoFloorDate.java | ca5b9bcb86d713a741ef37ca039349c039292720 | [] | no_license | YTY11/KeyParameter | ae51ee4251751c22371b0d4efc9731e92a7209d9 | 5bb8055bb6c1a5b72b06e31d987ef52fcd3afa74 | refs/heads/master | 2023-03-24T10:58:15.875621 | 2021-03-15T14:34:01 | 2021-03-15T14:34:01 | 341,171,481 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 15,441 | java | package com.fox.testsys.utility;
import com.fox.alarmsys.mapper.AutoFloor_Test_ExceptionMapper;
import com.fox.testsys.entity.AutoFloor_Machine_Detail;
import com.fox.testsys.mapper.AutoFloor_Machine_DetailMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author
* @create 2020-04-09 18:05
*/
@Component
@Configuration
public class AutoFloorDate {
@Autowired
TimeUtility timeUtility;
@Autowired
TaskService taskService;
@Autowired
AutoFloor_Machine_DetailMapper autoFloor_machine_detailMapper;
@Autowired
AutoFloor_Test_ExceptionMapper autoFloor_test_exceptionMapper;
//机种名称
private static String LOT_PRODUCT = "Lotus";
private static final String MAC_PRODUCT = "Macan";
private static final String PHA_PRODUCT = "Pha";
//班别
private static final String TwoTimeType = "two";
private static final String DayTimeType = "Day";
private static final String NightTimeType = "Night";
private static final String YestrerDayTimeType = "Yesterday";
DateFormat Yeardf = new SimpleDateFormat("yyyy/MM/dd");
DateFormat df = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
DateFormat avitime = new SimpleDateFormat("yyyyMMdd");
public Map<String, Object> AutoFloorDate(String TypeTime) {
Map<String, Object> AutoFloorDateMap = new HashMap<>();
Integer TimeGNumber = 1;
if (TwoTimeType.equals(TypeTime)) {
if (timeUtility.Timequantum("08:30", "20:29")) {
} else {
TimeGNumber = 0;
}
}
/*获取当前时间*/
List<java.sql.Date> sqlList = taskService.Schedule();
/*当前日期*/
Date schedule = sqlList.get(0);
Date actiondate = sqlList.get(0);
/*当前日期减1*/
Date YesterdayDate = sqlList.get(1);
/*当前日期加1*/
Date TomorrowDate = sqlList.get(2);
/*当前日期减2*/
Date BeforeDay = sqlList.get(5);
List<Integer> timeList = taskService.getTime(new Date());
/*时*/
Integer Htime = timeList.get(2);
/*分*/
Integer Minute = timeList.get(3);
/*工作时间*/
Integer actionMinuteD = 0;
Integer actionMinute;
if (timeUtility.Timequantum("08:30", "20:30")){
actionMinute = ((Htime - 8) * 60 + Minute) - 30;
actionMinuteD = actionMinute;
}if (timeUtility.Timequantum("20:30", "23:59")){
actionMinute = ((Htime - 20) * 60 + Minute) - 30;
actionMinuteD = actionMinute;
}else if (timeUtility.Timequantum("00:00", "08:29")){
actionMinute = ((4+Htime) * 60 + Minute) - 30;
actionMinuteD = actionMinute;
}
//产能浮动数据
Integer FloatNum = 200;
/*过24时 时间变量*/
String StartDateStr = null;
String EndDateStr = null;
/*过24时 时间变量*/
String AviStartDateStr = null;
String AviEndDateStr = null;
//符合两小时一查的数据时间
String twoDateStartDate = null;
String twoDateEndDate = null;
//查询线体时间
if (TwoTimeType.equals(TypeTime)) {
schedule = actiondate;
if (timeUtility.Timequantum("00:00", "08:30")) {
StartDateStr = Yeardf.format(YesterdayDate);
StartDateStr += " 20:30:00";
EndDateStr = Yeardf.format(actiondate);
EndDateStr += " 08:30:00";
AviStartDateStr=avitime.format(YesterdayDate);
AviStartDateStr += "203000";
AviEndDateStr = avitime.format(actiondate);
AviEndDateStr += "083000";
schedule = YesterdayDate;
} else if (timeUtility.Timequantum("08:30", "20:30")) {
StartDateStr = Yeardf.format(actiondate);
StartDateStr += " 08:30:00";
EndDateStr = Yeardf.format(actiondate);
EndDateStr += " 20:30:00";
AviStartDateStr = avitime.format(actiondate);
AviStartDateStr += "083000";
AviEndDateStr = avitime.format(actiondate);
AviEndDateStr += "203000";
} else if (timeUtility.Timequantum("20:30", "23:59")) {
StartDateStr = Yeardf.format(actiondate);
StartDateStr += " 20:30:00";
EndDateStr = Yeardf.format(TomorrowDate);
EndDateStr += " 08:30:00";
AviStartDateStr = avitime.format(actiondate);
AviStartDateStr += "203000";
AviEndDateStr = avitime.format(TomorrowDate);
AviEndDateStr += "083000";
}
//符合两小时一查的数据时间
if (timeUtility.Timequantum(" 08:30", "10:30")) {
twoDateStartDate = Yeardf.format(actiondate);
twoDateStartDate += " 08:30:00";
twoDateEndDate = Yeardf.format(actiondate);
twoDateEndDate += " 10:30:00";
} else if (timeUtility.Timequantum(" 20:30", "22:30")) {
twoDateStartDate = Yeardf.format(actiondate);
twoDateStartDate += " 20:30:00";
twoDateEndDate = Yeardf.format(actiondate);
twoDateEndDate += " 22:30:00";
} else {
long EndLong = autoFloor_test_exceptionMapper.DBDate().getTime();
long StartLong = EndLong - 2 * (60 * 60 * 1000);
twoDateStartDate = df.format(new Date(StartLong));
twoDateEndDate = df.format(new Date(EndLong));
}
} else if (DayTimeType.equals(TypeTime)) {
schedule = actiondate;
if (timeUtility.Timequantum("00:00", "08:30")) {
StartDateStr = Yeardf.format(YesterdayDate);
StartDateStr += " 08:30:00";
EndDateStr = Yeardf.format(YesterdayDate);
EndDateStr += " 20:30:00";
} else if (timeUtility.Timequantum("08:30", "20:30")) {
StartDateStr = Yeardf.format(actiondate);
StartDateStr += " 08:30:00";
EndDateStr = Yeardf.format(actiondate);
EndDateStr += " 20:30:00";
} else if (timeUtility.Timequantum("20:30", "23:59")) {
StartDateStr = Yeardf.format(actiondate);
StartDateStr += " 20:30:00";
EndDateStr = Yeardf.format(TomorrowDate);
EndDateStr += " 08:30:00";
}
} else if (NightTimeType.equals(TypeTime)) {
TimeGNumber = 0;
if (timeUtility.Timequantum("20:29", "23:59")) {
schedule = actiondate;
StartDateStr = Yeardf.format(actiondate);
StartDateStr += " 20:30:00";
EndDateStr = Yeardf.format(TomorrowDate);
EndDateStr += " 08:30:00";
} else if (timeUtility.Timequantum("00:00", "20:29")) {
schedule = YesterdayDate;
StartDateStr = Yeardf.format(YesterdayDate);
StartDateStr += " 20:30:00";
EndDateStr = Yeardf.format(actiondate);
EndDateStr += " 08:30:00";
}
} else if (YestrerDayTimeType.equals(TypeTime)) {
TimeGNumber = 2;
schedule = YesterdayDate;
StartDateStr = Yeardf.format(YesterdayDate);
StartDateStr += " 08:30:00";
EndDateStr = Yeardf.format(actiondate);
EndDateStr += " 08:30:00";
if (timeUtility.Timequantum("00:00", "08:30")) {
StartDateStr = Yeardf.format(BeforeDay);
StartDateStr += " 08:30:00";
EndDateStr = Yeardf.format(YesterdayDate);
EndDateStr += " 08:30:00";
}
}
if (!TwoTimeType.equals(TypeTime)) {
twoDateStartDate = StartDateStr;
twoDateEndDate = EndDateStr;
}
AutoFloorDateMap.put("TomorrowDate", TomorrowDate);
AutoFloorDateMap.put("schedule", schedule);
AutoFloorDateMap.put("actionMinuteD", actionMinuteD);
AutoFloorDateMap.put("TimeGNumber", TimeGNumber);
AutoFloorDateMap.put("StartDateStr", StartDateStr);
AutoFloorDateMap.put("EndDateStr", EndDateStr);
AutoFloorDateMap.put("AviStartDateStr", AviStartDateStr);
AutoFloorDateMap.put("AviEndDateStr", AviEndDateStr);
AutoFloorDateMap.put("FloatNum", FloatNum);
AutoFloorDateMap.put("actiondate", actiondate);
AutoFloorDateMap.put("Htime", Htime);
AutoFloorDateMap.put("Minute", Minute);
AutoFloorDateMap.put("twoDateStartDate", twoDateStartDate);
AutoFloorDateMap.put("twoDateEndDate", twoDateEndDate);
AutoFloorDateMap.put("YesterdayDate", YesterdayDate);
return AutoFloorDateMap;
}
//SKAS戰術
// 20:10: 08:00
//"08:10", "20:00"
public Map<String, Object> SKASAutoDate(String TypeTime) {
Map<String, Object> AutoFloorDateMap = new HashMap<>();
Integer TimeGNumber = 1;
if (TwoTimeType.equals(TypeTime)) {
if (timeUtility.Timequantum("08:30", "20:29")) {
} else {
TimeGNumber = 0;
}
}
/*获取当前时间*/
List<java.sql.Date> sqlList = taskService.Schedule();
/*当前日期*/
Date schedule = sqlList.get(0);
Date actiondate = sqlList.get(0);
/*当前日期减1*/
Date YesterdayDate = sqlList.get(1);
/*当前日期加1*/
Date TomorrowDate = sqlList.get(2);
/*当前日期减2*/
Date BeforeDay = sqlList.get(5);
List<Integer> timeList = taskService.getTime(new Date());
/*时*/
Integer Htime = timeList.get(2);
/*分*/
Integer Minute = timeList.get(3);
/*工作时间*/
Integer actionMinuteD = 0;
Integer actionMinute;
if (Htime != null && Htime >= 8) {
actionMinute = ((Htime - 8) * 60 + Minute) - 30;
actionMinuteD = actionMinute;
}
//产能浮动数据
Integer FloatNum = 200;
/*过24时 时间变量*/
String StartDateStr = null;
String EndDateStr = null;
//查询线体时间
if (TwoTimeType.equals(TypeTime)) {
schedule = actiondate;
if (timeUtility.Timequantum("00:00", "08:30")) {
StartDateStr = Yeardf.format(YesterdayDate);
StartDateStr += " 20:30:00";
EndDateStr = Yeardf.format(actiondate);
EndDateStr += " 08:30:00";
schedule = YesterdayDate;
} else if (timeUtility.Timequantum("08:30", "20:30")) {
StartDateStr = Yeardf.format(actiondate);
StartDateStr += " 08:30:00";
EndDateStr = Yeardf.format(actiondate);
EndDateStr += " 20:30:00";
} else if (timeUtility.Timequantum("20:30", "23:59")) {
StartDateStr = Yeardf.format(actiondate);
StartDateStr += " 20:30:00";
EndDateStr = Yeardf.format(TomorrowDate);
EndDateStr += " 08:30:00";
}
} else if (DayTimeType.equals(TypeTime)) {
schedule = actiondate;
if (timeUtility.Timequantum("00:00", "08:30")) {
StartDateStr = Yeardf.format(YesterdayDate);
StartDateStr += " 08:10:00";
EndDateStr = Yeardf.format(YesterdayDate);
EndDateStr += " 20:00:00";
} else if (timeUtility.Timequantum("08:30", "20:30")) {
StartDateStr = Yeardf.format(actiondate);
StartDateStr += " 08:10:00";
EndDateStr = Yeardf.format(actiondate);
EndDateStr += " 20:00:00";
} else if (timeUtility.Timequantum("20:30", "23:59")) {
StartDateStr = Yeardf.format(actiondate);
StartDateStr += " 20:10:00";
EndDateStr = Yeardf.format(TomorrowDate);
EndDateStr += " 08:00:00";
}
} else if (NightTimeType.equals(TypeTime)) {
TimeGNumber = 0;
if (timeUtility.Timequantum("20:29", "23:59")) {
schedule = actiondate;
StartDateStr = Yeardf.format(actiondate);
StartDateStr += " 20:10:00";
EndDateStr = Yeardf.format(TomorrowDate);
EndDateStr += " 08:00:00";
} else if (timeUtility.Timequantum("00:00", "20:29")) {
schedule = YesterdayDate;
StartDateStr = Yeardf.format(YesterdayDate);
StartDateStr += " 20:10:00";
EndDateStr = Yeardf.format(actiondate);
EndDateStr += " 08:00:00";
}
} else if (YestrerDayTimeType.equals(TypeTime)) {
TimeGNumber = 2;
schedule = YesterdayDate;
StartDateStr = Yeardf.format(YesterdayDate);
StartDateStr += " 08:10:00";
EndDateStr = Yeardf.format(actiondate);
EndDateStr += " 08:10:00";
if (timeUtility.Timequantum("00:00", "08:30")) {
StartDateStr = Yeardf.format(BeforeDay);
StartDateStr += " 08:10:00";
EndDateStr = Yeardf.format(YesterdayDate);
EndDateStr += " 08:10:00";
}
}
AutoFloorDateMap.put("TomorrowDate", TomorrowDate);
AutoFloorDateMap.put("schedule", schedule);
AutoFloorDateMap.put("actionMinuteD", actionMinuteD);
AutoFloorDateMap.put("TimeGNumber", TimeGNumber);
AutoFloorDateMap.put("StartDateStr", StartDateStr);
AutoFloorDateMap.put("EndDateStr", EndDateStr);
AutoFloorDateMap.put("FloatNum", FloatNum);
AutoFloorDateMap.put("actiondate", actiondate);
AutoFloorDateMap.put("Htime", Htime);
return AutoFloorDateMap;
}
public Map<String, Integer> getFloor_Proudct(String floor_name) {
int Lot = 0;
int Mac = 0;
int Pha = 0;
if ("K051F".equals(floor_name)){
LOT_PRODUCT ="Apollo";
}
List<AutoFloor_Machine_Detail> autoFloor_machine_details = autoFloor_machine_detailMapper.selectFloor_Product(floor_name);
for (AutoFloor_Machine_Detail autoFloor_machine_detail : autoFloor_machine_details) {
if (LOT_PRODUCT.equals(autoFloor_machine_detail.gettProduct())) {
Lot = 1;
}
if (MAC_PRODUCT.equals(autoFloor_machine_detail.gettProduct())) {
Mac = 1;
}
if (PHA_PRODUCT.equals(autoFloor_machine_detail.gettProduct())) {
Pha = 1;
}
}
Map<String, Integer> ProudctMap = new HashMap<>();
ProudctMap.put("Lot", Lot);
ProudctMap.put("Mac", Mac);
ProudctMap.put("Pha", Pha);
return ProudctMap;
}
}
| [
"862454711@qq.com"
] | 862454711@qq.com |
0ed3126fd7c443fb66f4b9f5c63f1c0dd50c8378 | 7f00ae77941e49bb2e20c09df49adc3d7b681dad | /terasoluna-collector/src/test/java/jp/terasoluna/fw/collector/unit/common/DefaultProperties.java | d4ee4afe79785f0a917f62518fafa26b870daa49 | [
"Apache-2.0"
] | permissive | ElementOne/terasoluna-batch | 77b730bc33d1a49c36a414b065812237be6828d0 | e0bd4a05ab9f2f98ed053c6b316064a354e9a35b | refs/heads/master | 2020-03-22T20:56:25.650986 | 2018-02-13T09:01:18 | 2018-02-13T09:01:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,947 | java | package jp.terasoluna.fw.collector.unit.common;
/*
* Copyright (c) 2012 NTT DATA Corporation
*
* 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.
*/
import java.io.IOException;
import java.io.InputStream;
import java.util.Map.Entry;
import java.util.Properties;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import jp.terasoluna.fw.collector.unit.exception.UTRuntimeException;
import jp.terasoluna.fw.collector.unit.util.ClassLoaderUtils;
import org.springframework.util.Assert;
/**
* UTライブラリで使用するデフォルトプロパティを管理するクラスです。
*
* <pre>
* プロパティはterasoluna-unit.propertiesに設定されています。
* 環境にあわせて適宜変更してください。
* </pre>
*/
public class DefaultProperties {
/**
* UTライブラリで使用するプロパティファイル
*/
private static final String DEFAULT_FILE_PATH = "terasoluna-unit.properties";
private static final ConcurrentMap<String, String> properties = new ConcurrentHashMap<String, String>();
static {
// プロパティファイルからキー・値を読み込みます。
Properties defaults = new Properties();
loadProperties(defaults, DEFAULT_FILE_PATH);
for (Entry<?, ?> e : defaults.entrySet()) {
properties.put((String) e.getKey(), (String) e.getValue());
}
}
/**
* プロパティファイルを読み込みます。
*
* <pre>
* プロパティファイルが存在しない場合は読み込みません。
* 読み込み中にIO例外が発生した場合は{@link UTRuntimeException}をスローします。
* </pre>
*
* @param props プロパティ
* @param filePath 読み込むプロパティファイル
*/
private static void loadProperties(Properties props, String filePath)
throws UTRuntimeException {
Assert.notNull(props);
Assert.notNull(filePath);
ClassLoader cl = ClassLoaderUtils.getClassLoader();
if (cl != null) {
InputStream strm = cl.getResourceAsStream(filePath);
try {
if (strm != null) {
try {
props.load(strm);
} catch (IOException e) {
throw new UTRuntimeException(e);
}
}
} finally {
if (strm != null) {
try {
strm.close();
} catch (IOException e) {
throw new UTRuntimeException(e);
}
}
}
}
}
/**
* プロパティ値を返却します。
*
* @param key プロパティのキー
* @return プロパティの値
*/
public static String getValue(String key) {
return properties.get(key);
}
/**
* プロパティ値を返却します。
*
* @param key プロパティのキー({@link PropertyKeys}形式)
* @return プロパティの値
*/
public static String getValue(PropertyKeys key) {
return getValue(key.getKey());
}
}
| [
"kuramotoki@nttdata.co.jp"
] | kuramotoki@nttdata.co.jp |
be7e97fa7f3f29a48cf85f068f07ebb76ecdcd50 | 85ce3a70a4bcfb824833053a2d5ab78e5870dc4d | /IdeaProjects/rbac2_template/src/main/java/cn/wolfcode/rbac/controller/PermissionController.java | d4ee2ecc86a67a3c08a2a29fc4f3015395e91768 | [] | no_license | qyl1006/Hello_World | 87e4aef81874cef1ddd5cd0d7278ac56c8f8bb19 | be81d9e957d4e81e3d2097ac7ab9ae7ba1a620af | refs/heads/master | 2020-03-08T03:14:44.053205 | 2018-05-18T02:31:16 | 2018-05-18T02:31:16 | 127,881,971 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,522 | java | package cn.wolfcode.rbac.controller;
import cn.wolfcode.rbac.domain.Permission;
import cn.wolfcode.rbac.query.PageResult;
import cn.wolfcode.rbac.query.QueryObject;
import cn.wolfcode.rbac.service.IPermissionService;
import cn.wolfcode.rbac.util.RequiredPermission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@Controller
@RequestMapping("permission")
public class PermissionController {
@Autowired
private IPermissionService permissionService;
//加载权限
@RequestMapping("reload")
public ModelAndView reload(HttpServletResponse resp) throws IOException {
permissionService.reload();
resp.setContentType("text/json;charset=utf-8");
resp.getWriter().print("{\"success\":true}");
return null;
}
//可分页的list
@RequestMapping("list")
public String list(QueryObject qo, Model model){
PageResult result = permissionService.queryAll(qo);
model.addAttribute("result", result);
return "permission/list";
}
//删除
@RequestMapping("delete")
public String delete(Long id){
if (id != null){
permissionService.deleteById(id);
}
return "redirect:/permission/list.do";
}
}
| [
"yuelinshi@qq.com"
] | yuelinshi@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.