blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 410 | content_id stringlengths 40 40 | detected_licenses listlengths 0 51 | license_type stringclasses 2 values | repo_name stringlengths 5 132 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 80 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 684M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 132 values | src_encoding stringclasses 34 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 3 9.45M | extension stringclasses 28 values | content stringlengths 3 9.45M | authors listlengths 1 1 | author_id stringlengths 0 352 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ca88d28780cb438ec303b5bc3c5a090452a3ad31 | 7b9d60964722f7921782348777a4f8ecfb0e86aa | /solutions/051.n-queens/n-queens.java | f872fd5f422dcb5cf322a506b28c93bc7d6210cc | [] | no_license | LLLRS/leetcode | 24ab02bfd12111bb85a30e25f85cb00c6a605c5f | ea1f5874d414a9de88e2b0fda213fa855c70b3b4 | refs/heads/master | 2020-05-03T15:11:00.417836 | 2019-04-06T14:35:51 | 2019-04-06T14:35:51 | 126,662,032 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,295 | java | class Solution {
boolean[] col = null;
boolean[] dia1 = null;
boolean[] dia2 = null;
List<List<String>> res = new ArrayList<>();
public List<List<String>> solveNQueens(int n) {
col = new boolean[n];
dia1 = new boolean[2*n-1];
dia2 = new boolean[2*n-1];
dfs(n, 0, new ArrayList<>());
return res;
}
public void dfs(int n,int row,List<Integer> st) {
if(row==n){
res.add(aux(n, st));
return;
}
for(int i=0;i<n;i++){
if(!col[i]&&!dia1[row-i+n-1]&&!dia2[row+i]){
col[i] = true;
dia1[row-i+n-1] = true;
dia2[row+i] = true;
st.add(i);
dfs(n, row+1, st);
st.remove(st.size()-1);
col[i] = false;
dia1[row-i+n-1] = false;
dia2[row+i] = false;
}
}
}
public List<String> aux(int n,List<Integer> st) {
char[] t = new char[n];
List<String> temp = new ArrayList<>();
for(int i=0;i<n;i++) t[i] = '.';
for(int i=0;i<n;i++){
int k = st.get(i);
t[k] = 'Q';
temp.add(String.valueOf(t));
t[k] = '.';
}
return temp;
}
} | [
"15311257617@163.com"
] | 15311257617@163.com |
9c362f0e70bdd20cfb6c0a9362caf2611cec56a1 | beb1c4f1cd0c4da6db33b0cf0567e6b078e5e59c | /sdks/java/fn-execution/src/main/java/org/apache/beam/sdk/fn/stream/OutboundObserverFactory.java | 44874491891f96b0fa1d2d1252789d0a93c97346 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-protobuf"
] | permissive | kkucharc/beam | d35041ddd85e8b3ec1fd5dbbef806ac79bd312c0 | e77882c9cb2ed58cd408452462886d3022645813 | refs/heads/master | 2021-04-06T14:53:12.263095 | 2018-06-25T04:32:52 | 2018-06-25T04:32:52 | 124,561,521 | 0 | 0 | Apache-2.0 | 2018-03-09T15:56:34 | 2018-03-09T15:56:34 | null | UTF-8 | Java | false | false | 5,941 | 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.beam.sdk.fn.stream;
import io.grpc.stub.CallStreamObserver;
import io.grpc.stub.StreamObserver;
import java.util.concurrent.ExecutorService;
/**
* Creates factories which determine an underlying {@link StreamObserver} implementation to use in
* to interact with fn execution APIs.
*/
public abstract class OutboundObserverFactory {
/**
* Create a buffering {@link OutboundObserverFactory} for client-side RPCs with the specified
* {@link ExecutorService} and the default buffer size.
*/
public static OutboundObserverFactory clientBuffered(ExecutorService executorService) {
return new Buffered(executorService, Buffered.DEFAULT_BUFFER_SIZE);
}
/**
* Create a buffering {@link OutboundObserverFactory} for client-side RPCs with the specified
* {@link ExecutorService} and buffer size.
*/
public static OutboundObserverFactory clientBuffered(
ExecutorService executorService, int bufferSize) {
return new Buffered(executorService, bufferSize);
}
/**
* Create the default {@link OutboundObserverFactory} for client-side RPCs, which uses basic
* unbuffered flow control and adds synchronization to provide thread safety of access to the
* returned observer.
*/
public static OutboundObserverFactory clientDirect() {
return new DirectClient();
}
/** Like {@link #clientDirect} but for server-side RPCs. */
public static OutboundObserverFactory serverDirect() {
return new DirectServer();
}
/**
* Creates an {@link OutboundObserverFactory} that simply delegates to the base factory, with no
* flow control or synchronization. Not recommended for use except in tests.
*/
public static OutboundObserverFactory trivial() {
return new Trivial();
}
/** Creates an outbound observer for the given inbound observer. */
@FunctionalInterface
public interface BasicFactory<ReqT, RespT> {
StreamObserver<RespT> outboundObserverFor(StreamObserver<ReqT> inboundObserver);
}
/**
* Creates an outbound observer for the given inbound observer by potentially inserting hooks into
* the inbound and outbound observers.
*
* @param baseOutboundObserverFactory A base function to create an outbound observer from an
* inbound observer.
* @param inboundObserver The inbound observer.
*/
public abstract <ReqT, RespT> StreamObserver<RespT> outboundObserverFor(
BasicFactory<ReqT, RespT> baseOutboundObserverFactory,
StreamObserver<ReqT> inboundObserver);
private static class DirectClient extends OutboundObserverFactory {
@Override
public <ReqT, RespT> StreamObserver<RespT> outboundObserverFor(
BasicFactory<ReqT, RespT> baseOutboundObserverFactory,
StreamObserver<ReqT> inboundObserver) {
AdvancingPhaser phaser = new AdvancingPhaser(1);
inboundObserver = ForwardingClientResponseObserver.create(inboundObserver, phaser::arrive);
CallStreamObserver<RespT> outboundObserver =
(CallStreamObserver<RespT>)
baseOutboundObserverFactory.outboundObserverFor(inboundObserver);
return new DirectStreamObserver<>(phaser, outboundObserver);
}
}
private static class DirectServer extends OutboundObserverFactory {
@Override
public <ReqT, RespT> StreamObserver<RespT> outboundObserverFor(
BasicFactory<ReqT, RespT> baseOutboundObserverFactory,
StreamObserver<ReqT> inboundObserver) {
AdvancingPhaser phaser = new AdvancingPhaser(1);
CallStreamObserver<RespT> outboundObserver =
(CallStreamObserver<RespT>)
baseOutboundObserverFactory.outboundObserverFor(inboundObserver);
outboundObserver.setOnReadyHandler(phaser::arrive);
return new DirectStreamObserver<>(phaser, outboundObserver);
}
}
private static class Buffered extends OutboundObserverFactory {
private static final int DEFAULT_BUFFER_SIZE = 64;
private final ExecutorService executorService;
private final int bufferSize;
private Buffered(ExecutorService executorService, int bufferSize) {
this.executorService = executorService;
this.bufferSize = bufferSize;
}
@Override
public <ReqT, RespT> StreamObserver<RespT> outboundObserverFor(
BasicFactory<ReqT, RespT> baseOutboundObserverFactory,
StreamObserver<ReqT> inboundObserver) {
AdvancingPhaser phaser = new AdvancingPhaser(1);
inboundObserver = ForwardingClientResponseObserver.create(inboundObserver, phaser::arrive);
CallStreamObserver<RespT> outboundObserver =
(CallStreamObserver<RespT>)
baseOutboundObserverFactory.outboundObserverFor(inboundObserver);
return new BufferingStreamObserver<>(phaser, outboundObserver, executorService, bufferSize);
}
}
private static class Trivial extends OutboundObserverFactory {
@Override
public <ReqT, RespT> StreamObserver<RespT> outboundObserverFor(
BasicFactory<ReqT, RespT> baseOutboundObserverFactory,
StreamObserver<ReqT> inboundObserver) {
return baseOutboundObserverFactory.outboundObserverFor(inboundObserver);
}
}
}
| [
"kirpichov@google.com"
] | kirpichov@google.com |
d4de49cb3e642555fd2479f8bd67ccc213de1401 | e1470ee6766ce0c7bc169895101bf969786cdbe1 | /src/main/java/net/arquetipo/base/db/mapper/UserMapper.java | 228a39986b99242a94de6405d72a70c7ecaa7456 | [] | no_license | ingapoloperseo/arquetipo_drop_wizard | b354c4d9edfee47463a29daffbef58ca4ed9c7ed | f9f674aa635a933cab1c76d5a55f8bb19fe2f3b8 | refs/heads/main | 2023-01-24T12:17:05.244253 | 2020-11-13T04:50:14 | 2020-11-13T04:50:14 | 311,491,574 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 808 | java | package net.arquetipo.base.db.mapper;
import net.arquetipo.base.api.User;
import net.arquetipo.base.api.UserType;
import org.skife.jdbi.v2.StatementContext;
import org.skife.jdbi.v2.tweak.ResultSetMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
public class UserMapper implements ResultSetMapper<User> {
@Override
public User map(int i, ResultSet resultSet, StatementContext statementContext) throws SQLException {
return User.builder()
.id(resultSet.getLong("id"))
.name(resultSet.getString("name"))
.email(resultSet.getString("email"))
.created(resultSet.getTimestamp("created").toLocalDateTime())
.type(UserType.valueOf(resultSet.getString("user_type")))
.build();
}
}
| [
"oswaldo.sanchez@dreambox.com"
] | oswaldo.sanchez@dreambox.com |
551f5043e96b950446e5ea94ec762d4dfbda8877 | d1726d0a45dfa513ffceb421db2f33c91bfa7f33 | /2172.java | 6b806c93148f8e6a54a8feffb7872bf8d273b463 | [] | no_license | gabaghul/URI | 56ee4cdfefaf5a9e0ab6ac672f100157bd481a9e | 6fe1348f8f935f7d9ea82634ade249b8f0686f3d | refs/heads/master | 2022-12-31T19:15:19.718156 | 2020-10-24T02:20:30 | 2020-10-24T02:20:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 428 | java | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner scan = new Scanner(System.in);
int n=0;
double xp=1.0;
while(!(n==xp && n==0)){
n=scan.nextInt();
xp=scan.nextDouble();
double r = n*xp;
if(r!=0)System.out.printf("%.0f\n",r);
}
}
} | [
"gabriel.camp96@hotmail.com"
] | gabriel.camp96@hotmail.com |
444d8d6c5d8a9b92411cdf7737bd28eb3e93ce8d | ca59718f60865008bb8909094a9e75f78c003a92 | /src/main/java/org/onvif/ver10/schema/NetworkProtocol.java | 54bc334800ee6d3d932b4b6a16dceab6040f9fb7 | [] | no_license | yanxinorg/MyPTZTest | ea6a3457796d320e6f45393634fc428905bf9758 | 882448f7bfe3c191f5b3951d31178e7fcabb9944 | refs/heads/master | 2021-04-03T08:01:19.247051 | 2018-03-12T08:28:43 | 2018-03-12T08:28:43 | 124,856,618 | 3 | 1 | null | null | null | null | UTF-8 | Java | false | false | 4,448 | java | //
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2 generiert
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// �nderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2014.02.04 um 12:22:03 PM CET
//
package org.onvif.ver10.schema;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;
/**
* <p>
* Java-Klasse f�r NetworkProtocol complex type.
*
* <p>
* Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
*
* <pre>
* <complexType name="NetworkProtocol">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Name" type="{http://www.onvif.org/ver10/schema}NetworkProtocolType"/>
* <element name="Enabled" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="Port" type="{http://www.w3.org/2001/XMLSchema}int" maxOccurs="unbounded"/>
* <element name="Extension" type="{http://www.onvif.org/ver10/schema}NetworkProtocolExtension" minOccurs="0"/>
* </sequence>
* <anyAttribute processContents='lax'/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NetworkProtocol", propOrder = { "name", "enabled", "port", "extension" })
public class NetworkProtocol {
@XmlElement(name = "Name", required = true)
protected NetworkProtocolType name;
@XmlElement(name = "Enabled")
protected boolean enabled;
@XmlElement(name = "Port", type = Integer.class)
protected List<Integer> port;
@XmlElement(name = "Extension")
protected NetworkProtocolExtension extension;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* Ruft den Wert der name-Eigenschaft ab.
*
* @return possible object is {@link NetworkProtocolType }
*
*/
public NetworkProtocolType getName() {
return name;
}
/**
* Legt den Wert der name-Eigenschaft fest.
*
* @param value
* allowed object is {@link NetworkProtocolType }
*
*/
public void setName(NetworkProtocolType value) {
this.name = value;
}
/**
* Ruft den Wert der enabled-Eigenschaft ab.
*
*/
public boolean isEnabled() {
return enabled;
}
/**
* Legt den Wert der enabled-Eigenschaft fest.
*
*/
public void setEnabled(boolean value) {
this.enabled = value;
}
/**
* Gets the value of the port property.
*
* <p>
* This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the port property.
*
* <p>
* For example, to add a new item, do as follows:
*
* <pre>
* getPort().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list {@link Integer }
*
*
*/
public List<Integer> getPort() {
if (port == null) {
port = new ArrayList<Integer>();
}
return this.port;
}
/**
* Ruft den Wert der extension-Eigenschaft ab.
*
* @return possible object is {@link NetworkProtocolExtension }
*
*/
public NetworkProtocolExtension getExtension() {
return extension;
}
/**
* Legt den Wert der extension-Eigenschaft fest.
*
* @param value
* allowed object is {@link NetworkProtocolExtension }
*
*/
public void setExtension(NetworkProtocolExtension value) {
this.extension = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.
*
*
* @return always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}
}
| [
"yanxinorg@163.com"
] | yanxinorg@163.com |
5ce76a0004b3b08a0d80f772b759e7f9a071d51a | d4627ad44a9ac9dfb444bd5d9631b25abe49c37e | /net/divinerpg/item/tool/FoodBase.java | b3921cc8bd9784bd14d5a3a651e285ab8e1b00ed | [] | no_license | Scrik/Divine-RPG | 0c357acf374f0ca7fab1f662b8f305ff0e587a2f | f546f1d60a2514947209b9eacdfda36a3990d994 | refs/heads/master | 2021-01-15T11:14:03.426172 | 2014-02-19T20:27:30 | 2014-02-19T20:27:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 865 | java | package net.divinerpg.item.tool;
import net.divinerpg.DivineRPG;
import net.divinerpg.lib.Reference;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.Item;
import net.minecraft.item.ItemFood;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class FoodBase extends ItemFood{
private String iconPath;
public FoodBase(int par1, int par2, float par3, boolean par4) {
super(par1, par2, par3, par4);
setCreativeTab(DivineRPG.Misc);
}
public Item registerTextures(String texture) {
iconPath = texture;
setUnlocalizedName(texture);
return this;
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister iconRegister) {
itemIcon = iconRegister.registerIcon(Reference.MOD_ID + ":" + iconPath);
}
} | [
"brock.kerley@hotmail.com"
] | brock.kerley@hotmail.com |
c0400cf0ed4b1ec1d8fd940f1d764cee3f546dce | c9ff4c7d1c23a05b4e5e1e243325d6d004829511 | /aws-java-sdk-chime/src/main/java/com/amazonaws/services/chime/model/CreateVoiceConnectorRequest.java | 66b3d7f65bf5540789bd471a5149da2cd4346ce0 | [
"Apache-2.0"
] | permissive | Purushotam-Thakur/aws-sdk-java | 3c5789fe0b0dbd25e1ebfdd48dfd71e25a945f62 | ab58baac6370f160b66da96d46afa57ba5bdee06 | refs/heads/master | 2020-07-22T23:27:57.700466 | 2019-09-06T23:28:26 | 2019-09-06T23:28:26 | 207,350,924 | 1 | 0 | Apache-2.0 | 2019-09-09T16:11:46 | 2019-09-09T16:11:45 | null | UTF-8 | Java | false | false | 5,687 | java | /*
* Copyright 2014-2019 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.chime.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateVoiceConnector" target="_top">AWS API
* Documentation</a>
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateVoiceConnectorRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
* <p>
* The name of the Amazon Chime Voice Connector.
* </p>
*/
private String name;
/**
* <p>
* When enabled, requires encryption for the Amazon Chime Voice Connector.
* </p>
*/
private Boolean requireEncryption;
/**
* <p>
* The name of the Amazon Chime Voice Connector.
* </p>
*
* @param name
* The name of the Amazon Chime Voice Connector.
*/
public void setName(String name) {
this.name = name;
}
/**
* <p>
* The name of the Amazon Chime Voice Connector.
* </p>
*
* @return The name of the Amazon Chime Voice Connector.
*/
public String getName() {
return this.name;
}
/**
* <p>
* The name of the Amazon Chime Voice Connector.
* </p>
*
* @param name
* The name of the Amazon Chime Voice Connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateVoiceConnectorRequest withName(String name) {
setName(name);
return this;
}
/**
* <p>
* When enabled, requires encryption for the Amazon Chime Voice Connector.
* </p>
*
* @param requireEncryption
* When enabled, requires encryption for the Amazon Chime Voice Connector.
*/
public void setRequireEncryption(Boolean requireEncryption) {
this.requireEncryption = requireEncryption;
}
/**
* <p>
* When enabled, requires encryption for the Amazon Chime Voice Connector.
* </p>
*
* @return When enabled, requires encryption for the Amazon Chime Voice Connector.
*/
public Boolean getRequireEncryption() {
return this.requireEncryption;
}
/**
* <p>
* When enabled, requires encryption for the Amazon Chime Voice Connector.
* </p>
*
* @param requireEncryption
* When enabled, requires encryption for the Amazon Chime Voice Connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateVoiceConnectorRequest withRequireEncryption(Boolean requireEncryption) {
setRequireEncryption(requireEncryption);
return this;
}
/**
* <p>
* When enabled, requires encryption for the Amazon Chime Voice Connector.
* </p>
*
* @return When enabled, requires encryption for the Amazon Chime Voice Connector.
*/
public Boolean isRequireEncryption() {
return this.requireEncryption;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getRequireEncryption() != null)
sb.append("RequireEncryption: ").append(getRequireEncryption());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateVoiceConnectorRequest == false)
return false;
CreateVoiceConnectorRequest other = (CreateVoiceConnectorRequest) obj;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getRequireEncryption() == null ^ this.getRequireEncryption() == null)
return false;
if (other.getRequireEncryption() != null && other.getRequireEncryption().equals(this.getRequireEncryption()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getRequireEncryption() == null) ? 0 : getRequireEncryption().hashCode());
return hashCode;
}
@Override
public CreateVoiceConnectorRequest clone() {
return (CreateVoiceConnectorRequest) super.clone();
}
}
| [
""
] | |
83256cf6b37b20a3631f3be1dd0c2a78c11e2288 | 9ba1afd739866a7a003a2fad5ff53c6f418b639f | /src/graphs/undirectedgraphs/DegreesOfSeparation.java | 285573bc41be06be82d41a4e5faf24a7613afe9e | [] | no_license | jeffreyyjp/algs4solutions | af07b938af41a7a60c664c1ab283a3d46eb111fb | 3679a986f1137c2aafc1850be47f5bb100f79948 | refs/heads/master | 2022-12-09T21:57:31.490148 | 2020-09-11T12:41:42 | 2020-09-11T12:41:42 | 178,507,039 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,198 | java | package graphs.undirectedgraphs;
import edu.princeton.cs.algs4.BreadthFirstPaths;
import edu.princeton.cs.algs4.Graph;
import edu.princeton.cs.algs4.StdIn;
import edu.princeton.cs.algs4.StdOut;
import edu.princeton.cs.algs4.SymbolGraph;
public class DegreesOfSeparation {
public static void main(String[] args) {
SymbolGraph sg = new SymbolGraph(args[0], args[1]);
Graph G = sg.graph();
String source = args[2];
if (!sg.contains(source)) {
StdOut.println(source + " not in database.");
return;
}
int s = sg.indexOf(source);
BreadthFirstPaths bfs = new BreadthFirstPaths(G, s);
while (!StdIn.isEmpty()) {
String sink = StdIn.readLine();
if (sg.contains(sink)) {
int t = sg.indexOf(sink);
if (bfs.hasPathTo(t)) {
for (int v : bfs.pathTo(t)) {
StdOut.println(" " + sg.nameOf(v));
}
} else {
StdOut.println("Not connected");
}
} else {
StdOut.println("Not in database.");
}
}
}
}
| [
"gracyme123@hotmail.com"
] | gracyme123@hotmail.com |
a50fc45e9623c9b58fe8737902c47e0f1ef7cf41 | 211e970edb66a52b93cb89628db6a4c4295fa968 | /Java/Java - Me/lez09_garage/src/lez09_garage/Moto.java | 34732197c3bbc3e698da58bfd77b965170dd9b69 | [] | no_license | AlessandraArdissone/TSS2019 | bdb5b35942672b131295bbb791158a142b86f3e1 | a151e7d6e8f1929ddb254c08144c27e18f9e3af7 | refs/heads/master | 2020-04-28T09:21:55.146424 | 2019-07-04T12:28:37 | 2019-07-04T12:28:37 | 166,390,308 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 753 | 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 lez09_garage;
/**
* classe derivata da Veicolo
*
* @author tss
*/
public class Moto extends Veicolo{
public enum Tempi{
DUE_T, QUATTRO_T
}
private final Tempi tempi;
public Moto(String marca, int anno, int cilindrata, Tempi tempi) {
super(marca, anno, cilindrata);
this.tempi=tempi;
}
public Tempi getTempi() {
return tempi;
}
@Override
public String toString(){
return super.toString()+ "\n"
+ String.format("tempi %s", this.tempi);
}
}
| [
"perlatempesta77@gmail.com"
] | perlatempesta77@gmail.com |
a382224d6ff9fa56098d85b0b31cf9c70f1c3d51 | 4ca5af9abc32cac1ded82f37738ee099c77fb588 | /src/main/java/com/byond/maven/plugin/library/PackageMojo.java | e2fee9900a26b6947de97a3250c471b49c6d91e5 | [] | no_license | BYOND/byond-library-plugin | 378cb53cbbab083e31c2cbea02ce8560eb5f1cb2 | 979082cd2b91427810cef6c81adad3da24f7b9d7 | refs/heads/master | 2023-08-26T01:12:36.218548 | 2021-07-11T19:53:44 | 2021-07-11T19:53:44 | 10,016,820 | 0 | 1 | null | 2023-08-15T17:42:54 | 2013-05-12T17:19:26 | Java | UTF-8 | Java | false | false | 4,315 | java | package com.byond.maven.plugin.library;
import java.io.File;
import java.io.IOException;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.plugins.annotations.ResolutionScope;
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.archiver.Archiver;
/**
* Packages the target folder up as a BYOND DM library, with extra information required
* to assist Dream Maker, and non-maven compilers.
*
* @author Stephen001
*/
@Mojo(name = "package", defaultPhase = LifecyclePhase.PACKAGE, requiresProject = true, requiresDependencyResolution = ResolutionScope.RUNTIME, threadSafe = true)
public class PackageMojo extends AbstractMojo {
private static final String[] DEFAULT_EXCLUDES = new String[] {};
private static final String[] DEFAULT_INCLUDES = new String[] { "**/**" };
@Component(hint = "zip")
private Archiver archiver;
/**
* The directory we will be archiving up.
*/
@Parameter(property = "dmFilesDirectory", defaultValue = "${project.build.directory}/classes", required = true)
private File dmFilesDirectory;
/**
* A list of paths or patterns to exclude from the DM library archive. By default,
* nothing is excluded.
*/
@Parameter
private String[] excludes;
/**
* The final name of the archive.
*/
@Parameter(property = "finalName", defaultValue = "${project.build.finalName}", required = true)
private String finalName;
/**
* A list of paths or patterns to include from the DM library archive. By default,
* everything is included.
*/
@Parameter
private String[] includes;
@Component
private MavenProject project;
/**
* The output directory to write the archive to.
*/
@Parameter(property = "outputDirectory", defaultValue = "${project.build.directory}", required = true)
private File outputDirectory;
/**
* Executes this mojo, producing a DM library archive and setting it as the
* primary artifact of the project.
*/
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
File dmLibraryFile = createArchive();
if (dmLibraryFile.exists()) {
project.getArtifact().setFile(dmLibraryFile);
}
}
/**
* Gets the maven project used by this Mojo.
*
* @return The maven project used by this Mojo.
*/
public MavenProject getProject() {
return project;
}
/**
* Sets the maven project used by this Mojo.
*
* @param project The maven project used by this Mojo.
*/
public void setProject(MavenProject project) {
this.project = project;
}
/**
* Creates a DM library archive from the provided target directory.
*
* @return The (potentially empty) DM library archive.
* @throws MojoExecutionException If the archive could not be written.
*/
protected File createArchive() throws MojoExecutionException {
File libraryFile = getArtifactFile();
archiver.setDestFile(libraryFile);
if (dmFilesDirectory.exists()) {
archiver.addDirectory(dmFilesDirectory, getIncludes(), getExcludes());
}
try {
archiver.createArchive();
} catch (IOException e) {
throw new MojoExecutionException("Could not create DM library archive", e);
}
return libraryFile;
}
/**
* Returns a file representing the archive file we intend to create.
*
* @return A file representing the archive file we intend to create.
*/
protected File getArtifactFile() {
return new File(outputDirectory, finalName + ".zip");
}
/**
* Gets the list of exclude paths/patterns. If not defined, it defaults to nothing.
*
* @return A list of exclude paths/patterns.
*/
protected String[] getExcludes() {
if (excludes != null && excludes.length > 0) {
return excludes;
}
return DEFAULT_EXCLUDES;
}
/**
* Gets the list of include paths/patterns. If not defined, it defaults to everything.
*
* @return A list of include paths/patterns.
*/
protected String[] getIncludes() {
if (includes != null && includes.length > 0) {
return includes;
}
return DEFAULT_INCLUDES;
}
}
| [
"stephen.badger@gmail.com"
] | stephen.badger@gmail.com |
b4dcd2462bb528433d6e8f10dc74cefd9790d562 | 53a39b2b301e8db36104b4b8d37da53b9525675f | /src/main/java/com/wxiwei/office/officereader/filelist/FileItemAdapter.java | 7d48c51f8173f52a6430294261d7588a1a091c59 | [] | no_license | yan269954107/officeReader | 35197596f9e2d4230499f896620b31d6d676efdf | ab8f296ca22838a4872bf337a3d55ba82a4bf453 | refs/heads/master | 2020-03-19T05:50:58.351090 | 2017-10-11T08:50:44 | 2017-10-11T08:50:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,211 | java | /*
* 文件名称: MainControl.java
*
* 编译器: android2.2
* 时间: 下午1:34:44
*/
package com.wxiwei.office.officereader.filelist;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import com.wxiwei.office.constant.MainConstant;
import com.wxiwei.office.officereader.R;
import com.wxiwei.office.system.IControl;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.provider.Settings;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
/**
* 文件注释
* <p>
* <p>
* Read版本: Read V1.0
* <p>
* 作者: 梁金晶
* <p>
* 日期: 2011-10-31
* <p>
* 负责人: 梁金晶
* <p>
* 负责小组:
* <p>
* <p>
*/
public class FileItemAdapter extends BaseAdapter
{
private static final Calendar calendar = Calendar.getInstance();
// 数值格式化
private static final DecimalFormat df = new java.text.DecimalFormat("#0.00");
// 日期格式 分为24和12小时制
private static final SimpleDateFormat sdf_24 = new SimpleDateFormat("yyyy-MM-dd hh:mm");
private static final SimpleDateFormat sdf_12 = new SimpleDateFormat("yyyy-MM-dd a hh:mm");
// 目录
public static final int ICON_TYPE_FOLDER = 0;// 0
// doc
public static final int ICON_TYPE_DOC = ICON_TYPE_FOLDER + 1; // 1
// docx
public static final int ICON_TYPE_DOCX = ICON_TYPE_DOC + 1; // 2
// xls
public static final int ICON_TYPE_XSL = ICON_TYPE_DOCX + 1; // 3
// xlsx
public static final int ICON_TYPE_XLSX = ICON_TYPE_XSL + 1; // 4
// ppt
public static final int ICON_TYPE_PPT = ICON_TYPE_XLSX + 1; // 5
// pptx
public static final int ICON_TYPE_PPTX = ICON_TYPE_PPT + 1; // 6
// txt
public static final int ICON_TYPE_TXT = ICON_TYPE_PPTX + 1; // 7
//
public static final int ICON_TYPE_STAR = ICON_TYPE_TXT + 1; // 8
//
public static final int ICON_TYPE_PDF = ICON_TYPE_STAR + 1; // 9
// GB
private static final int GB = 1024 * 1024 * 1024;
// MB
private static final int MB = 1024 * 1024;
// KB
private static final int KB = 1024;
/**
*
* @param context
*/
public FileItemAdapter(Context context, IControl control)
{
this.control = control;
this.is24Hour = "24".equals(Settings.System.getString(context.getContentResolver(),
Settings.System.TIME_12_24));
Resources res = context.getResources();
iconMap = new Hashtable<Integer, Drawable>();
// folder
iconMap.put(ICON_TYPE_FOLDER, res.getDrawable(R.drawable.file_folder));
// doc
iconMap.put(ICON_TYPE_DOC, res.getDrawable(R.drawable.file_doc));
// docx
iconMap.put(ICON_TYPE_DOCX, res.getDrawable(R.drawable.file_docx));
// xls
iconMap.put(ICON_TYPE_XSL, res.getDrawable(R.drawable.file_xls));
// xlsx
iconMap.put(ICON_TYPE_XLSX, res.getDrawable(R.drawable.file_xlsx));
// ppt
iconMap.put(ICON_TYPE_PPT, res.getDrawable(R.drawable.file_ppt));
// pptx
iconMap.put(ICON_TYPE_PPTX, res.getDrawable(R.drawable.file_pptx));
// txt
iconMap.put(ICON_TYPE_TXT, res.getDrawable(R.drawable.file_txt));
// stat
iconMap.put(ICON_TYPE_STAR, res.getDrawable(R.drawable.file_icon_star));
// pdf
iconMap.put(ICON_TYPE_PDF, res.getDrawable(R.drawable.file_pdf));
}
/**
*
* @param it
*/
public void addItem(FileItem it)
{
mItems.add(it);
}
/**
*
* @param lit
*/
public void setListItems(List<FileItem> fileItem)
{
mItems = fileItem;
}
/**
*
*/
public int getCount()
{
return mItems.size();
}
/**
*
*
*/
public Object getItem(int position)
{
return mItems.get(position);
}
/**
*
* @return
*/
public boolean areAllItemsSelectable()
{
return false;
}
/**
*
* @param position
* @return
*/
public boolean isSelectable(int position)
{
return mItems.get(position).isCheck();
}
/**
*
*
*/
public long getItemId(int position)
{
return position;
}
/**
*
*(non-Javadoc)
* @see android.widget.BaseAdapter#isEmpty()
*
*/
public boolean isEmpty()
{
return mItems.size() == 0;
}
/**
*
*
*/
public View getView(int position, View convertView, ViewGroup parent)
{
FileItem fileItem = mItems.get(position);
if (fileItem == null)
{
return null;
}
if (convertView == null || convertView.getWidth() != parent.getContext().getResources().getDisplayMetrics().widthPixels)
{
convertView = new FileItemView(control.getActivity().getApplicationContext(), control, this, fileItem);
}
else
{
((FileItemView)convertView).updateFileItem(fileItem, this);
}
return convertView;
}
/**
*
* @param time
* @return
*/
public String formatDate(long time)
{
calendar.setTimeInMillis(time);
return is24Hour ? sdf_24.format(calendar.getTime()) : sdf_12.format(calendar.getTime());
}
/**
*
*/
public String formatSize(long size)
{
String str = "";
if (size == 0)
{
return "0B";
}
if (size >= GB)
{
str += df.format((float)size / GB) + "GB";
}
// MB
else if (size >= MB)
{
str += df.format((float)size / MB) + "MB";
}
// KB
else if (size >= KB)
{
str += df.format((float)size / KB) + "KB";
}
// B
else
{
str += size + " B";
}
return str;
}
/**
*
* @param icontType
* @return
*/
public Drawable getIconDrawable(int icontType)
{
return iconMap.get(icontType);
}
/**
* get file icon type
* @param fileName
* @return
*/
public int getFileIconType(String fileName)
{
fileName = fileName.toLowerCase();
// doc
if (fileName.endsWith(MainConstant.FILE_TYPE_DOC)
|| fileName.endsWith(MainConstant.FILE_TYPE_DOT))
{
return FileItemAdapter.ICON_TYPE_DOC;
}
// docx
else if (fileName.endsWith(MainConstant.FILE_TYPE_DOCX)
|| fileName.endsWith(MainConstant.FILE_TYPE_DOTX)
|| fileName.endsWith(MainConstant.FILE_TYPE_DOTM))
{
return FileItemAdapter.ICON_TYPE_DOCX;
}
// xls
else if (fileName.endsWith(MainConstant.FILE_TYPE_XLS)
|| fileName.endsWith(MainConstant.FILE_TYPE_XLT))
{
return FileItemAdapter.ICON_TYPE_XSL;
}
// xlsx
else if (fileName.endsWith(MainConstant.FILE_TYPE_XLSX)
|| fileName.endsWith(MainConstant.FILE_TYPE_XLTX)
|| fileName.endsWith(MainConstant.FILE_TYPE_XLTM)
|| fileName.endsWith(MainConstant.FILE_TYPE_XLSM))
{
return FileItemAdapter.ICON_TYPE_XLSX;
}
// ppt
else if (fileName.endsWith(MainConstant.FILE_TYPE_PPT)
|| fileName.endsWith(MainConstant.FILE_TYPE_POT))
{
return FileItemAdapter.ICON_TYPE_PPT;
}
// pptx
else if (fileName.endsWith(MainConstant.FILE_TYPE_PPTX)
|| fileName.endsWith(MainConstant.FILE_TYPE_PPTM)
|| fileName.endsWith(MainConstant.FILE_TYPE_POTX)
|| fileName.endsWith(MainConstant.FILE_TYPE_POTM))
{
return FileItemAdapter.ICON_TYPE_PPTX;
}
// PDF document
else if (fileName.endsWith(MainConstant.FILE_TYPE_PDF))
{
return FileItemAdapter.ICON_TYPE_PDF;
}
// txt
else if (fileName.endsWith(MainConstant.FILE_TYPE_TXT))
{
return FileItemAdapter.ICON_TYPE_TXT;
}
return -1;
}
/**
* 释放内存
*/
public void dispose()
{
control = null;
if (mItems != null)
{
for (FileItem item : mItems)
{
item.dispose();
}
mItems.clear();
mItems = null;
}
if (iconMap != null)
{
iconMap.clear();
iconMap = null;
}
}
// 是否24小时制
private boolean is24Hour;
//
private IControl control;
//
private List<FileItem> mItems;
// 文件列表选用的icon
private Map<Integer, Drawable> iconMap;
}
| [
"397569981@qq.com"
] | 397569981@qq.com |
cd67ac9f9945858c17a914e932c41b4795d8981f | 78b054f0bd625e4d7aa538c5eac72931153edeb3 | /LectureCode/lec2/BadSquareTesterGraphics.java | b6cf1622b4f1f37b37339464a67133f3c1da11cb | [] | no_license | PopoTeaTree/OOD-exercise | 2d0aa98c107ec040e2ce39a749db960834a07fe0 | 6f55e7a68239b544292f32b28d669a2ebd6656ab | refs/heads/master | 2023-03-09T14:56:03.080187 | 2021-02-24T14:44:55 | 2021-02-24T14:44:55 | 341,933,584 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,168 | java | import java.io.*;
import java.util.*;
/**
* Test program to create and display squares.
* BAD VERSION SHOWING EFFECTS OF PUBLIC DATA
*
* Created by Sally Goldin, 13 August 2017
* Modified to use IOUtils.java - 19 Jan 2020
*/
public class BadSquareTesterGraphics
{
/** Keep hold of the last square we created so we can move
* it using the mouse.
*/
protected static BadSquare latestSquare = null;
/* Main method first creates the viewer. Then it
* asks for coordinates, creates new triangles, and displays them.
* Then prints the perimetr and area as well.
*/
public static void main(String arguments[])
{
boolean bContinue = true;
FigureViewer viewer = new FigureViewer();
viewer.pack();
viewer.setVisible(true);
while (bContinue)
{
int x,y; /* coordinates of upper left point of square */
int length; /* length of one side */
x = IOUtils.getInteger("Enter x for upper left point (negative to exit): ");
if (x < 0)
{
bContinue = false;
}
else
{
y = IOUtils.getInteger("Enter y for upper left point: ");
length = IOUtils.getInteger("Length of each side of square: ");
latestSquare = new BadSquare(x,y,length);
viewer.drawBadSquare(latestSquare,false);
double perim = latestSquare.calcPerimeter();
System.out.println("Perimeter is " + perim);
double area = latestSquare.calcArea();
System.out.println("Area is " + area + "\n\n");
System.out.println("-----------------------------");
String move = IOUtils.getString("Want to move the square (Y/N)?");
if (move.startsWith("Y"))
{
x = IOUtils.getInteger("New X: ");
y = IOUtils.getInteger("New Y: ");
/* JUST SET THE MEMBER DATA. HEY, THEY'RE PUBLIC!! */
latestSquare.xcoord[0] = x;
latestSquare.ycoord[0] = y;
viewer.clear();
try
{
Thread.sleep(1000); /* Wait for clear to complete */
}
catch (InterruptedException ie)
{
}
viewer.drawBadSquare(latestSquare,true);
}
System.out.println("-----------------------------\n");
}
}
System.exit(0);
}
}
| [
"onepiece14515@gmail.com"
] | onepiece14515@gmail.com |
75162aaa8920f762dded1729a541767cea64dd5a | 05ba4598688a799f73878dd54030c802f178e932 | /app/src/main/java/com/tzl/agriculture/model/GoodsMo.java | f0538eafcdc9c227e67531276a1e179dbba3fcba | [] | no_license | 2803404074/Agriculture | 41e4b5e4c5adc2435df3d989d8ef6e85172523a5 | 5cb8d2ceddc2beaee0cd0c14474a5d5d29255f32 | refs/heads/master | 2020-07-09T12:09:41.071227 | 2019-09-16T06:41:38 | 2019-09-16T06:41:38 | 203,963,006 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,757 | java | package com.tzl.agriculture.model;
import java.io.Serializable;
import java.util.List;
/**
* 商品列表模型
*/
public class GoodsMo implements Serializable {
private String goodsId;
private String originalPrice;
private String goodsName;
private String goodsDesc;
private String categoryId;
private String picUrl;
private String goodsPic;
private String salesVolume;//销量
private List<String>goodsLabelList;//标签
private String spikeStartTime;
private String spikeEndTime;
private String shopName;
private String categoryName;
private String price;
public GoodsMo() {
}
public String getSalesVolume() {
return salesVolume;
}
public List<String> getGoodsLabelList() {
return goodsLabelList;
}
public String getGoodsPic() {
return goodsPic;
}
public void setGoodsPic(String goodsPic) {
this.goodsPic = goodsPic;
}
public String getOriginalPrice() {
return originalPrice;
}
public void setOriginalPrice(String originalPrice) {
this.originalPrice = originalPrice;
}
public String getGoodsId() {
return goodsId;
}
public void setGoodsId(String goodsId) {
this.goodsId = goodsId;
}
public String getGoodsName() {
return goodsName;
}
public void setGoodsName(String goodsName) {
this.goodsName = goodsName;
}
public String getGoodsDesc() {
return goodsDesc;
}
public void setGoodsDesc(String goodsDesc) {
this.goodsDesc = goodsDesc;
}
public String getCategoryId() {
return categoryId;
}
public void setCategoryId(String categoryId) {
this.categoryId = categoryId;
}
public String getPicUrl() {
return picUrl;
}
public void setPicUrl(String picUrl) {
this.picUrl = picUrl;
}
public String getSpikeStartTime() {
return spikeStartTime;
}
public void setSpikeStartTime(String spikeStartTime) {
this.spikeStartTime = spikeStartTime;
}
public String getSpikeEndTime() {
return spikeEndTime;
}
public void setSpikeEndTime(String spikeEndTime) {
this.spikeEndTime = spikeEndTime;
}
public String getShopName() {
return shopName;
}
public void setShopName(String shopName) {
this.shopName = shopName;
}
public String getCategoryName() {
return categoryName;
}
public void setCategoryName(String categoryName) {
this.categoryName = categoryName;
}
public String getPrice() {
return price;
}
public void setPrice(String price) {
this.price = price;
}
}
| [
"2803404074@qq.com"
] | 2803404074@qq.com |
a0df5ffd2be81b21f443955c2da5fea78103d8cd | b0215a823f1fc24f4b57bcc37926bc011ce7cb6f | /odps-sdk/odps-sdk-core/src/main/java/com/aliyun/odps/task/SQLTask.java | b4c37db9121f564978fa074361e23e9d092b1530 | [
"Apache-2.0"
] | permissive | shellc/aliyun-odps-java-sdk | 539f5649628c33a48b6e1915a29bcebb38a8b76c | 3eb9ea886f7ecd4cae94a2c1549ab05863f35f72 | refs/heads/master | 2021-01-16T21:52:38.531808 | 2015-08-14T07:43:01 | 2015-08-14T07:43:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,004 | 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 com.aliyun.odps.task;
import java.util.Map;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import com.aliyun.odps.Instance;
import com.aliyun.odps.Odps;
import com.aliyun.odps.OdpsException;
import com.aliyun.odps.Task;
import com.aliyun.odps.commons.util.JacksonParser;
/**
* SQLTask的定义
*
* @author shenggong.wang@alibaba-inc.com
*/
@XmlRootElement(name = "SQL")
public class SQLTask extends Task {
private String query;
public String getQuery() {
return query;
}
/**
* 设置SQL查询语句
*
* @param query
* 需要执行的SQL查询
*/
@XmlElement(name = "Query")
public void setQuery(String query) {
this.query = query;
}
@Override
public String getCommandText() {
return query;
}
/**
* 运行 SQL.<br />
* 执行读取数据时,最多返回 1W 条记录,若超过,数据将被截断。<br />
*
* 特别注意,在执行数据读取操作时:<br />
* 正常情况下的 task 执行后,task 的状态为 SUCCESS,并正常返回数据结果。<br />
* 但是,当读取数据量超过 10MB,task 的状态将是 FAILED,返回的数据结果为 error message。<br />
* 因此,大量数据的获取建议使用 {@link com.aliyun.odps.tunnel.TableTunnel} 进行操作。<br />
*
* <br />
* 示例代码:
* <pre>
*{
String sql = "select ....;";
Instance instance = SQLTask.run(odps, sql);
instance.waitForSuccess();
Map<String, String> results = instance.getTaskResults();
Map<String, TaskStatus> taskStatus = instance.getTaskStatus();
for(Entry<String, TaskStatus> status : taskStatus.entrySet()) {
if (TaskStatus.Status.SUCCESS == status.getValue().getStatus()) {
String result = results.get(status.getKey());
System.out.println(result);
}
}
}
* </pre>
*
* @param {@link
* Odps}
* @param sql
* 需要执行的SQL查询
* @return 运行实例 {@link Instance}
* @throws OdpsException
*/
public static Instance run(Odps odps, String sql) throws OdpsException {
String project = odps.getDefaultProject();
if (project == null) {
throw new OdpsException("default project required.");
}
return run(odps, project, sql, "AnonymousSQLTask", null, null, "sql");
}
/**
* 运行SQL
*
* @param odps
* {@link Odps}对象
* @param project
* 任务运行时所属的{@link Project}名称
* @param sql
* 需要运行的SQL查询
* @param hints
* 能够影响SQL执行的Set信息,例如:odps.mapred.map.split.size等
* @param alias
* Alias信息。详情请参考用户手册中alias命令的相关介绍
* @return 作业运行实例 {@link Instance}
* @throws OdpsException
*/
public static Instance run(Odps odps, String project, String sql,
Map<String, String> hints, Map<String, String> aliases)
throws OdpsException {
return run(odps, project, sql, "AnonymousSQLTask", hints, aliases, "sql");
}
/*Un-document*/
public static Instance run(Odps odps, String project, String sql,
String taskName, Map<String, String> hints,
Map<String, String> aliases) throws OdpsException {
return run(odps, project, sql, taskName, hints, aliases, "sql");
}
public static Instance run(Odps odps, String project, String sql,
String taskName, Map<String, String> hints,
Map<String, String> aliases, int priority) throws OdpsException {
return run(odps, project, sql, taskName, hints, aliases, priority, "sql");
}
private static Instance run(Odps odps, String project, String sql, String taskName,
Map<String, String> hints, Map<String, String> aliases,
Integer priority,
String type) throws OdpsException {
SQLTask task = new SQLTask();
task.setQuery(sql);
task.setName(taskName);
task.setProperty("type", type);
if (hints != null) {
try {
String json = JacksonParser.getObjectMapper().writeValueAsString(hints);
task.setProperty("settings", json);
} catch (Exception e) {
throw new OdpsException(e.getMessage(), e);
}
}
if (aliases != null) {
try {
String json = JacksonParser.getObjectMapper().writeValueAsString(aliases);
task.setProperty("aliases", json);
} catch (Exception e) {
throw new OdpsException(e.getMessage(), e);
}
}
if (priority != null) {
return odps.instances().create(project, task, priority);
} else {
return odps.instances().create(project, task);
}
}
static Instance run(Odps odps, String project, String sql,
String taskName, Map<String, String> hints, Map<String, String> aliases,
String type) throws OdpsException {
return run(odps, project, sql, taskName, hints, aliases, null, type);
}
}
| [
"lymanrb@gmail.com"
] | lymanrb@gmail.com |
bfc9821ef1a668dfa8c686bea69511c02c7f5a26 | 399db4496ffc4dd588994765088c2917a32e398c | /SRC/Course.java | e0805ac2f5e67539077a7cca53f4fe6f5f2b0e92 | [] | no_license | cgperel/CoderGirlProjects | ea3302fff6793f86aed461f8cade4570c9b7f20f | 7dc1aca6761b274da3b6c0ea23b20ef96542e3a3 | refs/heads/master | 2020-03-22T04:52:36.297900 | 2018-12-06T01:34:36 | 2018-12-06T01:34:36 | 139,526,563 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,310 | java | public class Course {
//has a;
//name
//credits
// number of students
// roster
private String name;
private int credits;
private int numberOfSeats;
private Student[] roster;//array is the type
public Course(String name, int credits, int numberOfSeats){//put the variables in the paramter to describe the object but if you
//they're the same no need to put it in the parameter. or for roster it's empty so no input so no need to include in parameter
this.name = name;
this.credits = credits;
this.numberOfSeats = numberOfSeats;
//we want to create an empty array that students will sign up and we'll add as they sign up, the array can go up to the amount of number of seats
this.roster = new Student[numberOfSeats];
//all these variables have a value but they're null so be careful for later
}
public void registerStudent(Student s){
if(numberOfSeats > 0) {//or could do =1 or <=0
this.roster[numberOfSeats - 1] = s;//last person will be at position 0- this is action of putting it into the array
numberOfSeats--; //or numberOfSeats=numberOfSeats-1
}
}
public static void main(String[]args){
Course history = new Course("History", 6, 30);
}
}
| [
"cgperel@gmail.com"
] | cgperel@gmail.com |
16e4e788546c26de3f033033e22db201aa0adc92 | 56d0e2b5f278e6079d3a9fcb7129db8d3911cd9f | /src/main/java/com/rasin/controller/HelloController.java | 6803a810a3200fab161dc7eb263add51a0895c3b | [] | no_license | wangyu32/jenkinsDemo | 44a9036714031e428f505644241f234234d525c4 | 947abf56fe7fa87cca2e2587db3a05d1da59aa19 | refs/heads/master | 2020-05-23T03:51:16.511492 | 2019-05-15T11:15:04 | 2019-05-15T11:15:04 | 186,624,298 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 830 | java | package com.rasin.controller;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* @Description
* @Author wangyu
* @Date 2019/5/14 21:22
*/
@Slf4j
@RestController
public class HelloController {
private static DateFormat dateFormator = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
@RequestMapping("/hello")
public String hello(){
Date d = new Date();
log.info("hello");
return dateFormator.format(d);
}
@RequestMapping("/test")
public String test(){
Date d = new Date();
log.info("test...");
return "test....:" + dateFormator.format(d);
}
}
| [
"285677770@qq.com"
] | 285677770@qq.com |
09f733f8ce3e590796b94e79be0ec0a200e06427 | c822be7d47efff2b2c801f8da7c8754a5c02168a | /src/main/java/imdb/constants/MovieSortParams.java | 5586d085416968af4cc1dd49268c1c6d126c6e49 | [] | no_license | MathewManu/MovieMon | b2328ba685f5100ecc4d1fdba7e83a203af2d6a4 | 9d5d0e0470c172af723b14a2ca0eaa1c881de5fc | refs/heads/master | 2020-12-19T22:43:20.912362 | 2016-05-26T13:53:49 | 2016-05-26T13:53:49 | 41,999,750 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 302 | java | package imdb.constants;
public enum MovieSortParams {
NAME ("name"),
RATINGS ("ratings"),
RECENTLYADDED ("recentlyadded");
private String stringValue;
private MovieSortParams(String stringv) {
this.stringValue = stringv;
}
public String getStringValue() {
return stringValue;
}
}
| [
"anushya.k.kutty@gmail.com"
] | anushya.k.kutty@gmail.com |
ac2d5b2b752e0a1c2e94a9fa414f74059dec5a2b | d38afb4d31e0574dd2086fc84e5d664aecc77f5c | /com/planet_ink/coffee_mud/Abilities/Spells/Spell_SuperiorImage.java | 6ff05a445552563d360a609685ebf7aea64991ed | [
"Apache-2.0"
] | permissive | Dboykey/CoffeeMud | c4775fc6ec9e910ff7ff8523c04567a580a9529e | 844704805d3de26a16b83bd07552d6ae82391208 | refs/heads/master | 2022-04-16T07:07:22.004847 | 2020-04-06T17:55:33 | 2020-04-06T17:55:33 | 255,074,559 | 0 | 1 | Apache-2.0 | 2020-04-12T12:10:07 | 2020-04-12T12:10:06 | null | UTF-8 | Java | false | false | 2,301 | java | package com.planet_ink.coffee_mud.Abilities.Spells;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.planet_ink.coffee_mud.CharClasses.interfaces.*;
import com.planet_ink.coffee_mud.Commands.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.*;
import com.planet_ink.coffee_mud.Exits.interfaces.*;
import com.planet_ink.coffee_mud.Items.interfaces.*;
import com.planet_ink.coffee_mud.Libraries.interfaces.ExpertiseLibrary;
import com.planet_ink.coffee_mud.Locales.interfaces.*;
import com.planet_ink.coffee_mud.MOBS.interfaces.*;
import com.planet_ink.coffee_mud.Races.interfaces.*;
import java.util.*;
/*
Copyright 2017-2020 Bo Zimmerman
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.
*/
public class Spell_SuperiorImage extends Spell_MinorImage
{
@Override
public String ID()
{
return "Spell_SuperiorImage";
}
private final static String localizedName = CMLib.lang().L("Superior Image");
@Override
public String name()
{
return localizedName;
}
@Override
protected int getDuration(final MOB caster, final int asLevel)
{
final int ticksPerMudHr = (int)CMProps.getTicksPerMudHour();
return (CMLib.time().globalClock().getHoursInDay() + super.adjustedLevel(caster, asLevel)) * ticksPerMudHr;
}
@Override
protected boolean canSeeAppearance()
{
return true;
}
@Override
protected int canTargetCode()
{
return CAN_MOBS;
}
@Override
protected boolean canTargetOthers()
{
return true;
}
}
| [
"bo@zimmers.net"
] | bo@zimmers.net |
b250771ab2f120068d4fd3967d39a4151023a231 | 999741e70c60a19b5428331adaf8135982a095cb | /Assign1_java/src/assignments/MultiplicationTable.java | 2b533a091e4f55164f27259b26263b5812a27094 | [] | no_license | garimasahu12/task | 362395af9eb3381383df017fd7273bb6f57ae398 | 5fc2ddfdd707b5cc240076eb62815395f2bef820 | refs/heads/master | 2023-06-04T04:43:48.289262 | 2021-06-21T03:39:02 | 2021-06-21T03:39:02 | 377,761,808 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 590 | java | package assignments;
import java.util.Scanner;
public class MultiplicationTable {
public static void mulTable(int n){
System.out.println("The multiplication table is: ");
for(int i=1;i<=10;i++)
{
System.out.println(""+n+"*"+i+"="+(n*i));
}
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Enter no.");
Scanner sc =new Scanner(System.in);
int p=sc.nextInt();
mulTable(p);
}
}
| [
"garimacg99@gmail.com"
] | garimacg99@gmail.com |
f21485432e95e542cdf6d77bce1adcd1aa3cd632 | 63054d2d9b3de8ac910dc3fc0dac0ce51f129c82 | /test/org/trackmont/protocol/SanavProtocolDecoderTest.java | 4b959628b61d85153afdfebcdbf9f5ae735f2d83 | [
"Apache-2.0"
] | permissive | vegellibert/trackmont | 10e9f0b6d53afe8531b89e7e14e938739fc2f689 | 387326ce816401dd7aa7959399b14cf45744dfa2 | refs/heads/master | 2021-08-14T12:44:06.625709 | 2017-11-15T17:55:53 | 2017-11-15T17:55:53 | 110,860,511 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,530 | java | package org.trackmont.protocol;
import org.junit.Test;
import org.trackmont.ProtocolTest;
public class SanavProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
SanavProtocolDecoder decoder = new SanavProtocolDecoder(new SanavProtocol());
verifyPosition(decoder, text(
"imei=1234567890&rmc=$GPRMC,091950.00,V,5300.10000,N,00900.14000,E,0.160,,200513,,,A*68,STOP,V3.872;67%,S4,H8.3,D2.38"));
verifyPosition(decoder, text(
"imei=352024028982787&rmc=$GPRMC,103048.000,A,4735.0399,N,01905.2895,E,0.00,0.00,171013,,*05,AUTO-4095mv"),
position("2013-10-17 10:30:48.000", true, 47.58400, 19.08816));
verifyPosition(decoder, text(
"imei:352024028980000rmc:$GPRMC,093604.354,A,4735.0862,N,01905.2146,E,0.00,0.00,171013,,*09,AUTO-4103mv"));
verifyPosition(decoder, text(
"imei:352024027800000rmc:$GPRMC,000025.000,A,4735.0349,N,01905.2899,E,0.00,202.97,171013,,*03,3950mV,AUTO"));
verifyPosition(decoder, text(
"imei:352024020976845rmc:$GPRMC,000201.000,A,4655.7043,N,01941.3796,E,0.54,159.14,171013,,,A*65,AUTO"));
verifyPosition(decoder, text(
"imei=352024028982787&rmc=$GPRMC,103048.000,A,4735.0399,N,01905.2895,E,0.00,0.00,171013,,"));
verifyPosition(decoder, text(
"65,AUTOimei=352024028982787&rmc=$GPRMC,103048.000,A,4735.0399,N,01905.2895,E,0.00,0.00,171013,,"));
}
}
| [
"benditatecnologia@gmail.com"
] | benditatecnologia@gmail.com |
9b23fa92f2dd2d82dcd97ca5ad4ccc6336f838ab | 2140d19fcdb28730a8e59804da1ddda941bb6ad0 | /NotificationCenter/src/main/java/com/gl/notificationcenter/model/SubscriptionInfo.java | e323b1efeacc78d71aca706a2af2b2a93ef985c6 | [] | no_license | malhotrarakesh/notification-center | c7b6fff9228150c1f759ca95771f65aca58c8e70 | 71c6d364c063056a6d31e331e4348a52e85f3ca4 | refs/heads/master | 2021-01-10T07:48:57.538884 | 2016-03-28T04:53:01 | 2016-03-28T04:53:01 | 53,040,011 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 970 | java | package com.gl.notificationcenter.model;
import java.util.List;
/**
* Refers to the class which represents subscription information
* It includes User who is trying to subscribe to an Event using a list of
* Channel Info
*/
public class SubscriptionInfo {
private User user;
private Event event;
private List<ChannelInfo> channelInfos;
private String subscriptionId;;
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public Event getEvent() {
return event;
}
public void setEvent(Event event) {
this.event = event;
}
public List<ChannelInfo> getChannelInfos() {
return channelInfos;
}
public void setChannelInfos(List<ChannelInfo> channelInfos) {
this.channelInfos = channelInfos;
}
public String getSubscriptionId() {
return subscriptionId;
}
public void setSubscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
}
}
| [
"chat.rakesh@gmail.com"
] | chat.rakesh@gmail.com |
c41aa1b7aeb68634a7c630e8b03dfbc2af6d3328 | f7814b2e7f1ed13c7e5064c309eaf356e992263e | /src/test/java/com/network_reward_tc/SearchCode.java | 29881e9d3aaea478afdc7d628216105f3cb70c75 | [] | no_license | kmcaradine/Sandbox | 08d7e1dbbcebe25fe722da784183064c29e2e3dd | 9f3b9e26e007030ad57b34a2ecc1a1e552521211 | refs/heads/master | 2020-04-07T17:45:36.317643 | 2018-11-30T19:13:23 | 2018-11-30T19:13:23 | 158,582,798 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,120 | java | package com.network_reward_tc;
import com.aventstack.extentreports.Status;
import com.aventstack.extentreports.markuputils.ExtentColor;
import com.aventstack.extentreports.markuputils.MarkupHelper;
import com.common_code.SharedCode;
import com.test_data.DataProviderClass;
import io.restassured.RestAssured;
import io.restassured.builder.RequestSpecBuilder;
import io.restassured.response.Response;
import io.restassured.specification.RequestSpecification;
import org.testng.ITestResult;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.Test;
import java.io.UnsupportedEncodingException;
import static java.util.concurrent.TimeUnit.MILLISECONDS;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.lessThanOrEqualTo;
public class SearchCode extends SharedCode {
private RequestSpecBuilder requestSpecBuilder ;
private RequestSpecification requestSpec;
private Response response;
private String apiType = "";
private String testName = "";
@Test(dataProvider="SearchProvider",
dataProviderClass= DataProviderClass.class)
public void SearchCodeTest(String tcName, String lang, String sort, String order,
String acceptHeader, int requestStatus) throws UnsupportedEncodingException {
apiType = "get";
testName = tcName;
//Print header to console
header(testName);
//String accessToken = "0c86b0d3a469ea6880d8414826b7828047c203db";
//RequestSpecification oauth2(accessToken);
test = extent.createTest(testName,"SearchCommits");
//Set the Base URL and Base Path send it to the report
String basePath = "/search/code";
test.log(Status.INFO, "Base URI: " + RestAssured.baseURI);
test.log(Status.INFO, "Base Path: " + basePath);
//Build API request
requestSpecBuilder = new RequestSpecBuilder();
requestSpecBuilder.setBasePath(basePath);
if(acceptHeader.trim().length() > 0){
requestSpecBuilder.setAccept(acceptHeader);
}
if(lang.trim().length() > 0) {
requestSpecBuilder.addQueryParam("q", convertCharset(lang));
}
if(sort.trim().length() > 0) {
requestSpecBuilder.addQueryParam("sort", sort);
}
if(order.trim().length() > 0) {
requestSpecBuilder.addQueryParam("order", order);
}
requestSpec = requestSpecBuilder.build();
//Get API response
response = getTheResponse(apiType, requestSpec);
//Get response time and send the it to the report
long timeSeconds = response.timeIn(MILLISECONDS);
test.log(Status.INFO, "Response Time: " + timeSeconds + " millisecond(s)");
//Send the response status code to the report
test.log(Status.INFO, "Response Status: " + response.statusCode() );
log.info("Response Status: " + response.statusCode());
//Send the response body to the report
//test.log(Status.INFO, "Response Body: " + response.body().asString());
//Assert on api response
assertThat(response.statusCode(), is(requestStatus));
assertThat(timeSeconds, is(lessThanOrEqualTo(3000L)));
}
@AfterMethod(alwaysRun = true)
public void getResult(ITestResult result) {
//Check for pass, fail or skip test status after each test
if (result.getStatus() == ITestResult.SUCCESS) {
test.log(Status.PASS, MarkupHelper.createLabel(result.getName() + "Test Case PASSED", ExtentColor.GREEN));
}
else if (result.getStatus() == ITestResult.FAILURE) {
test.log(Status.FAIL, MarkupHelper.createLabel(result.getName() + "Test Case FAIL", ExtentColor.RED));
test.fail(result.getThrowable());
}
else if (result.getStatus() == ITestResult.SKIP) {
test.log(Status.SKIP, MarkupHelper.createLabel(result.getName() + "Test Case SKIP", ExtentColor.YELLOW));
test.skip(result.getThrowable());
}
}
}
| [
"kcqcone@gmail.com"
] | kcqcone@gmail.com |
4936a17e1cf95183c665319caff5e7b76e19d762 | b187813e75754645e0e332adb12b63dfb66acc8b | /bingosdk/src/main/java/com/bingo/sdk/string2pic/BlockFactory.java | d8f85e1638d0be6d5212d5ceea6ec87f82d9013e | [] | no_license | game-platform-awaresome/BingoGameSDK | 98b5c6ca1d46822675b9eddf1f91bcada73c707a | 535eaac32fd6787a97cc23b77a7df1638c038ce3 | refs/heads/master | 2023-01-04T13:47:46.455097 | 2020-11-03T07:41:11 | 2020-11-03T07:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,537 | java | package com.bingo.sdk.string2pic;
import com.bingo.sdk.inner.util.ByteUtils;
import com.bingo.sdk.string2pic.entity.Png;
import com.bingo.sdk.string2pic.entity.block.DataBlock;
import com.bingo.sdk.string2pic.entity.block.IDATBlock;
import com.bingo.sdk.string2pic.entity.block.IENDBlock;
import com.bingo.sdk.string2pic.entity.block.IHDRBlock;
import com.bingo.sdk.string2pic.entity.block.PHYSBlock;
import com.bingo.sdk.string2pic.entity.block.PLTEBlock;
import com.bingo.sdk.string2pic.entity.block.SRGBBlock;
import com.bingo.sdk.string2pic.entity.block.TEXTBlock;
import com.bingo.sdk.string2pic.entity.block.TRNSBlock;
import java.io.IOException;
import java.io.InputStream;
/**
* @author #Suyghur.
* @date 2020/6/9
*/
public class BlockFactory {
public static DataBlock readBlock(InputStream in, Png png, DataBlock dataBlock) throws IOException {
String hexCode = ByteUtils.byte2Hex(dataBlock.getChunkTypeCode(), 0, dataBlock.getChunkTypeCode().length);
hexCode = hexCode.toUpperCase();
DataBlock realDataBlock = null;
if (BlockUtils.isIHDRBlock(hexCode)) {
//IHDR数据块
realDataBlock = new IHDRBlock();
} else if (BlockUtils.isPLTEBlock(hexCode)) {
//PLTE数据块
realDataBlock = new PLTEBlock();
} else if (BlockUtils.isIDATBlock(hexCode)) {
//IDAT数据块
realDataBlock = new IDATBlock();
} else if (BlockUtils.isIENDBlock(hexCode)) {
//IEND数据块
realDataBlock = new IENDBlock();
} else if (BlockUtils.isSRGBBlock(hexCode)) {
//sRGB数据块
realDataBlock = new SRGBBlock();
} else if (BlockUtils.isTEXTBlock(hexCode)) {
//tEXt数据块
realDataBlock = new TEXTBlock();
} else if (BlockUtils.isPHYSBlock(hexCode)) {
//pHYs数据块
realDataBlock = new PHYSBlock();
} else if (BlockUtils.isTRNSBlock(hexCode)) {
//tRNS数据块
realDataBlock = new TRNSBlock();
} else {
//其它数据块
realDataBlock = dataBlock;
}
realDataBlock.setLength(dataBlock.getLength());
realDataBlock.setChunkTypeCode(dataBlock.getChunkTypeCode());
int len = -1;
byte[] data = new byte[8096];
len = in.read(data, 0, ByteUtils.highByteToInt(dataBlock.getLength()));
realDataBlock.setData(ByteUtils.cutByte(data, 0, len));
return realDataBlock;
}
}
| [
"ouyanglongzhi"
] | ouyanglongzhi |
d8d8da76f6caa4045b586ce8051e3350e951171a | 490a9edb8cbaf2a75d841d530f9291cab7adab2b | /src/main/java/com/company/project/service/impl/ShopReturnCauseServiceImpl.java | 7ce7f0886df171bec220280889170ff6453b0cfd | [
"MIT"
] | permissive | zhoushuai19900726/medicine | c2e44e7146733553afe300c737cd148a1efc94d5 | 4ec739f3571bcc3664b41e5ef52e7f5cf37f94af | refs/heads/master | 2023-07-13T01:12:07.138937 | 2021-08-07T07:21:34 | 2021-08-07T07:21:34 | 375,554,125 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,908 | java | package com.company.project.service.impl;
import com.company.project.common.utils.DataResult;
import com.company.project.common.utils.DictionariesKeyConstant;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.company.project.mapper.ShopReturnCauseMapper;
import com.company.project.entity.ShopReturnCauseEntity;
import com.company.project.service.ShopReturnCauseService;
import javax.annotation.Resource;
import java.util.List;
@Service("shopReturnCauseService")
public class ShopReturnCauseServiceImpl extends ServiceImpl<ShopReturnCauseMapper, ShopReturnCauseEntity> implements ShopReturnCauseService {
@Resource
private ShopReturnCauseMapper shopReturnCauseMapper;
@Resource
private RedisTemplate redisTemplate;
@Override
public DataResult saveShopReturnCauseEntity(ShopReturnCauseEntity shopReturnCause) {
shopReturnCauseMapper.insert(shopReturnCause);
redisTemplate.boundHashOps(DictionariesKeyConstant.RETURN_REASON_KEY).put(shopReturnCause.getId(), shopReturnCauseMapper.selectById(shopReturnCause.getId()));
return DataResult.success();
}
@Override
public DataResult removeShopReturnCauseEntityByIds(List<String> ids) {
shopReturnCauseMapper.deleteBatchIds(ids);
redisTemplate.boundHashOps(DictionariesKeyConstant.RETURN_REASON_KEY).delete(ids.toArray());
return DataResult.success();
}
@Override
public DataResult updateShopReturnCauseEntityById(ShopReturnCauseEntity shopReturnCause) {
shopReturnCauseMapper.updateById(shopReturnCause);
redisTemplate.boundHashOps(DictionariesKeyConstant.RETURN_REASON_KEY).put(shopReturnCause.getId(), shopReturnCauseMapper.selectById(shopReturnCause.getId()));
return DataResult.success();
}
}
| [
"zhoushuai01@inspur.com"
] | zhoushuai01@inspur.com |
cf2932631d997e9f7ffaee6fedd51e96ee163e05 | 5e224ff6d555ee74e0fda6dfa9a645fb7de60989 | /database/src/main/java/adila/db/bit_bit.java | 9f2a10013d53ac32df8b15afcb993f2954c3deae | [
"MIT"
] | permissive | karim/adila | 8b0b6ba56d83f3f29f6354a2964377e6197761c4 | 00f262f6d5352b9d535ae54a2023e4a807449faa | refs/heads/master | 2021-01-18T22:52:51.508129 | 2016-11-13T13:08:04 | 2016-11-13T13:08:04 | 45,054,909 | 3 | 1 | null | null | null | null | UTF-8 | Java | false | false | 191 | java | // This file is automatically generated.
package adila.db;
/*
* Explay Bit
*
* DEVICE: Bit
* MODEL: Bit
*/
final class bit_bit {
public static final String DATA = "Explay|Bit|";
}
| [
"keldeeb@gmail.com"
] | keldeeb@gmail.com |
0029a9b4bc6dfe0bea93a2e312cf6ea12d42784a | ca2505791212ebaaa768bd83b1ecbda54fa85b01 | /kodilla-patterns/src/test/java/com/kodilla/patterns/strategy/social/UserTestSuite.java | 9dc2f74864bec4fcf840758750034daa6d8197c7 | [] | no_license | gwojtyl/grzegorz-wojtyl-kodilla-java | f98bea97f74533768bac469f11dd4f3e5fb11155 | ef9a7b364040316376caf3ed005dc4f2bc18b8b9 | refs/heads/master | 2020-09-23T00:08:22.523105 | 2020-04-13T08:14:39 | 2020-04-13T08:14:39 | 225,350,543 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,282 | java | package com.kodilla.patterns.strategy.social;
import org.junit.Assert;
import org.junit.Test;
public class UserTestSuite {
@Test
public void testDefaultSharingStrategies() {
User adam = new Millenials("Adam");
User chris = new YGeneration("Chris");
User jessica = new ZGeneration("Z-Gen");
String adamShare = adam.shareMedia();
System.out.println("Adam shares media to " + adamShare);
String chrisShare = chris.shareMedia();
System.out.println("Chris shares media to " + chrisShare);
String jessicaShare = jessica.shareMedia();
System.out.println("Jessica shares media to " + jessicaShare);
Assert.assertEquals("Facebook", adamShare);
Assert.assertEquals("Twitter", chrisShare);
Assert.assertEquals("Snapchat", jessicaShare);
}
@Test
public void testIndividualSharingStrategy() {
User adam = new Millenials("Adam");
String adamShare = adam.shareMedia();
System.out.println("Adam shares media to " + adamShare);
adam.setSocialPublisher(new TwitterPublisher());
adamShare = adam.shareMedia();
System.out.println("Adam now shares media to " + adamShare);
Assert.assertEquals("Twitter", adamShare);
}
}
| [
"gwojtyl@gmail.com"
] | gwojtyl@gmail.com |
e6d6223d716d8d58b9be542337c2d6311c387f98 | 40a6d17d2fd7bd7f800d5562d8bb9a76fb571ab4 | /pxlab/src/main/java/de/pxlab/pxl/display/AfterEffect.java | 207117a31fbd1ebe66a023fb38d2762f5ab72dc9 | [
"MIT"
] | permissive | manuelgentile/pxlab | cb6970e2782af16feb1f8bf8e71465ebc48aa683 | c8d29347d36c3e758bac4115999fc88143c84f87 | refs/heads/master | 2021-01-13T02:26:40.208893 | 2012-08-08T13:49:53 | 2012-08-08T13:49:53 | 5,121,970 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,171 | java | package de.pxlab.pxl.display;
import de.pxlab.pxl.*;
/**
* An abstract superclass for after effect matching of two patches, one for
* adaptation and the other one for matching it to the afterimage. May be shown
* continuously.
*
* @version 0.1.0
*/
/*
*
* 2006/06/30
*/
abstract public class AfterEffect extends Display {
/** Pattern background. */
public ExPar BackgroundColor = new ExPar(COLOR, new ExParValue(
new ExParExpression(ExParExpression.GRAY)), "Background color");
/** Color of the adaptation patch. */
public ExPar AdaptationColor = new ExPar(COLOR, new ExParValue(
new ExParExpression(ExParExpression.CYAN)), "Adaptation color");
/** Color of the test patch. */
public ExPar MatchingColor = new ExPar(COLOR, new ExParValue(
new ExParExpression(ExParExpression.RED)), "Test color");
/** Horizontal pattern center position. */
public ExPar LocationX = new ExPar(HORSCREENPOS, new ExParValue(0),
"Horizontal center position");
/** Vertical pattern center position. */
public ExPar LocationY = new ExPar(VERSCREENPOS, new ExParValue(0),
"Vertical center position");
/** Number of horizontal pixels in the pattern. */
public ExPar Width = new ExPar(HORSCREENSIZE, new ExParValue(384),
"Pattern width in number of pixels");
/** Number of vertical pixels in the pattern. */
public ExPar Height = new ExPar(VERSCREENSIZE, new ExParValue(256),
"Pattern height in number of pixels");
/**
* Number of horizontal pixels which the patch centers are shifted from the
* pattern center.
*/
public ExPar ShiftX = new ExPar(HORSCREENSIZE, new ExParValue(32),
"Horizontal test patch shift");
/** Number of vertical pixels which the test patch centers are shifted. */
public ExPar ShiftY = new ExPar(HORSCREENSIZE, new ExParValue(0),
"Vertical test ppatch shift");
/**
* Timer for controlling the ON and OFF periods. This should always be set
* to de.pxlab.pxl.TimerCodes.VS_CLOCK_TIMER.
*/
public ExPar OnOffTimer = new ExPar(TIMING_EDITOR, TimerCodes.class,
new ExParValueConstant("de.pxlab.pxl.TimerCodes.VS_CLOCK_TIMER"),
"Internal cycle interval timer");
/** Adaptation interval duration. */
public ExPar AdaptationDuration = new ExPar(DURATION, 0, 300,
new ExParValue(3000), "Adaptation interval duration");
/** Test interval duration. */
public ExPar MatchingDuration = new ExPar(DURATION, 0, 500, new ExParValue(
600), "Test interval duration");
/**
* Type of fixation mark to be shown.
*
* @see de.pxlab.pxl.FixationCodes
*/
public ExPar FixationType = new ExPar(
GEOMETRY_EDITOR,
FixationCodes.class,
new ExParValueConstant("de.pxlab.pxl.FixationCodes.FIXATION_CROSS"),
"Type of fixation mark");
/** Color of an optional fixation mark. */
public ExPar FixationColor = new ExPar(COLOR, new ExParValue(
new ExParExpression(ExParExpression.LIGHT_GRAY)),
"Fixation mark color");
/** Size of a fixation marks. */
public ExPar FixationSize = new ExPar(VERSCREENSIZE, new ExParValue(10),
"Size of fixation mark");
public boolean isAnimated() {
return (true);
}
}
| [
"manuelgentile@gmail.com"
] | manuelgentile@gmail.com |
ecb3269bdedc6b5620b256f3d1775be066050389 | e8fc19f6301ceddebe1c76b29dbf6753f4d63da8 | /AutomationFramework/src/com/inflectra/spirateam/mylyn/core/internal/services/soap/RemoteVersion.java | 7c3858032743a5881f934ac5910232640f0c07e6 | [] | no_license | ravinder1414/AutomationFrameworkUpdated | 524b91f29400dd1c906cc6b06a56b06ff8e6fc55 | 0cf3e56fc9b6b5a4bac47d0a7c7e424a49c9845a | refs/heads/master | 2021-07-02T22:31:46.280362 | 2017-09-22T04:28:38 | 2017-09-22T04:28:38 | 104,431,215 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 3,913 | java |
package com.inflectra.spirateam.mylyn.core.internal.services.soap;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlType;
/**
*
* <pre>
* <?xml version="1.0" encoding="UTF-8"?><comments xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v3_0.DataObjects" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><summary>
* Contains application version information
* </summary></comments>
* </pre>
*
*
* <p>Java class for RemoteVersion complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="RemoteVersion">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Patch" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="Version" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RemoteVersion", namespace = "http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v3_0.DataObjects", propOrder = {
"patch",
"version"
})
public class RemoteVersion {
@XmlElementRef(name = "Patch", namespace = "http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v3_0.DataObjects", type = JAXBElement.class)
protected JAXBElement<Integer> patch;
@XmlElementRef(name = "Version", namespace = "http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v3_0.DataObjects", type = JAXBElement.class)
protected JAXBElement<String> version;
/**
* Gets the value of the patch property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link Integer }{@code >}
*
*/
public JAXBElement<Integer> getPatch() {
return patch;
}
/**
* Sets the value of the patch property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link Integer }{@code >}
*
*/
public void setPatch(JAXBElement<Integer> value) {
this.patch = ((JAXBElement<Integer> ) value);
}
/**
* Gets the value of the version property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public JAXBElement<String> getVersion() {
return version;
}
/**
* Sets the value of the version property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public void setVersion(JAXBElement<String> value) {
this.version = ((JAXBElement<String> ) value);
}
}
| [
"kumarravinder4141@gmail.com"
] | kumarravinder4141@gmail.com |
212ddf51f8785eda87e32cb8a7f5ae9c9cde0aad | f662526b79170f8eeee8a78840dd454b1ea8048c | /nd.java | 3b2c3aa76cc9093db66dc742840196ce9cdb9f89 | [] | no_license | jason920612/Minecraft | 5d3cd1eb90726efda60a61e8ff9e057059f9a484 | 5bd5fb4dac36e23a2c16576118da15c4890a2dff | refs/heads/master | 2023-01-12T17:04:25.208957 | 2020-11-26T08:51:21 | 2020-11-26T08:51:21 | 316,170,984 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,338 | java | /* */ import java.io.IOException;
/* */
/* */ public class nd implements iv<me> {
/* */ private a a;
/* */ private pc b;
/* */ private boolean c;
/* */ private boolean d;
/* */ private boolean e;
/* */ private boolean f;
/* */
/* */ public enum a {
/* 12 */ a, b;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public nd() {}
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public nd(avk ☃) {
/* 28 */ this.a = a.a;
/* 29 */ this.b = ☃.b();
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void a(hy ☃) throws IOException {
/* 42 */ this.a = ☃.<a>a(a.class);
/* 43 */ if (this.a == a.a) {
/* 44 */ this.b = ☃.l();
/* 45 */ } else if (this.a == a.b) {
/* 46 */ this.c = ☃.readBoolean();
/* 47 */ this.d = ☃.readBoolean();
/* 48 */ this.e = ☃.readBoolean();
/* 49 */ this.f = ☃.readBoolean();
/* */ }
/* */ }
/* */
/* */
/* */ public void b(hy ☃) throws IOException {
/* 55 */ ☃.a(this.a);
/* */
/* 57 */ if (this.a == a.a) {
/* 58 */ ☃.a(this.b);
/* 59 */ } else if (this.a == a.b) {
/* 60 */ ☃.writeBoolean(this.c);
/* 61 */ ☃.writeBoolean(this.d);
/* 62 */ ☃.writeBoolean(this.e);
/* 63 */ ☃.writeBoolean(this.f);
/* */ }
/* */ }
/* */
/* */
/* */ public void a(me ☃) {
/* 69 */ ☃.a(this);
/* */ }
/* */
/* */ public a b() {
/* 73 */ return this.a;
/* */ }
/* */
/* */ public pc c() {
/* 77 */ return this.b;
/* */ }
/* */
/* */ public boolean d() {
/* 81 */ return this.c;
/* */ }
/* */
/* */ public boolean e() {
/* 85 */ return this.d;
/* */ }
/* */
/* */ public boolean f() {
/* 89 */ return this.e;
/* */ }
/* */
/* */ public boolean g() {
/* 93 */ return this.f;
/* */ }
/* */ }
/* Location: F:\dw\server.jar!\nd.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/ | [
"jasonya2206@gmail.com"
] | jasonya2206@gmail.com |
08cf04564c14fb88570573ab4b712692689e7a2d | 11144263d1e0fcebeed20fc0c764c03042423f52 | /src/main/java/com/github/benchdoos/weblocopenerstatistics/exceptions/FeedbackNotFoundException.java | 50eb88df3a6e9c3cfe78a687e49273ca22e22b7b | [] | no_license | benchdoos/weblocopener-statistics | 2edba7cb1defe89ef0d8d6f5ec60126c34ce1186 | b97e1ce30c0f8c50d304d800f6bd9ab4a066cf66 | refs/heads/master | 2022-04-06T09:46:00.496231 | 2020-01-28T16:18:44 | 2020-01-28T16:18:44 | 224,603,045 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 339 | java | package com.github.benchdoos.weblocopenerstatistics.exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(code = HttpStatus.NOT_FOUND, reason = "Feedback with given credentials not found")
public class FeedbackNotFoundException extends RuntimeException{
}
| [
"evgeny.zrazhevskiy@rtlabs.ru"
] | evgeny.zrazhevskiy@rtlabs.ru |
ea1e78e4d15506a34619d558682176eb443f7903 | 3f6637f6b073232dcc873d17d23c74c8d822e676 | /EdlGameFramework/src/main/java/com/edlplan/framework/ui/LayoutTransition.java | 5883928a1fe245d7d3803bbadcfa48bf7394833f | [] | no_license | EdrowsLuo/osu-lab | 6fcb432c45d982eec686b73e61a02e654a43754a | f23bda8234f128abb6d30537b81ca54443d7a21e | refs/heads/master | 2020-03-22T21:52:23.982325 | 2019-05-22T09:13:52 | 2019-05-22T09:14:57 | 140,718,644 | 11 | 6 | null | null | null | null | UTF-8 | Java | false | false | 169 | java | package com.edlplan.framework.ui;
public interface LayoutTransition {
public boolean isChangingLayout();
public void layoutChange(EdAbstractViewGroup view);
}
| [
"793971297@qq.com"
] | 793971297@qq.com |
75f101fb9c6add214e9cc502ad5b89c7515062a1 | ce4593fec61a2573aefa8ccde9c7a91998e92e0d | /src/DateHelper.java | 0989b6e25d6856fcefbb51dd2d467346f957724e | [] | no_license | cansusezen/work-logger | 4da0923f2370b2fda1ab1cdaee39bd2e9817ffae | c8033a78e338a46fe17486424e47659d10eddc4a | refs/heads/master | 2021-01-01T05:23:31.127240 | 2016-04-20T07:40:29 | 2016-04-20T07:40:29 | 56,319,437 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 329 | java | import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by c.sezen on 15.4.2016.
*/
public class DateHelper {
static Date parseToDate(String dateFormat, String dateString) throws ParseException {
return (new SimpleDateFormat(dateFormat)).parse(dateString);
}
}
| [
"c.sezen@relephant.nl"
] | c.sezen@relephant.nl |
6f862916cabb607489abe1fd37714fd4cb631faf | 57262325efc4074d4813ef1a195cf2ee60ddcb64 | /src/leetcode/days/OddEvenList.java | 43625bad9d85d03f20fff9905dc8ca7631e4c9ab | [] | no_license | god-jiang/Java-Algorithm | 88371675c60d56993daad79273c1416284cf57a0 | eb8691374fd2aa9b34579c6c6d68e8d8e3d0e59b | refs/heads/master | 2023-01-31T15:50:37.442707 | 2020-12-18T12:53:09 | 2020-12-18T12:53:09 | 259,246,921 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,085 | java | package leetcode.days;
import leetcode.struct.ListNode;
/**
* 328. 奇偶链表
*
* @author god-jiang
* @date 2020/11/29 21:22
*/
public class OddEvenList {
public ListNode oddEvenList(ListNode head) {
// 分别定义奇偶链表的虚拟头节点和尾节点
ListNode oddHead = new ListNode(0);
ListNode oddTail = oddHead;
ListNode evenHead = new ListNode(0);
ListNode evenTail = evenHead;
// 遍历原链表,根据isOdd标示位决定将当前节点插入到奇链表还是偶链表
boolean isOdd = true;
while (head != null) {
if (isOdd) {
oddTail.next = head;
oddTail = oddTail.next;
} else {
evenTail.next = head;
evenTail = evenTail.next;
}
head = head.next;
isOdd = !isOdd;
}
// 将奇链表后面拼接上偶链表,并将偶链表的next设置为null
oddTail.next = evenHead.next;
evenTail.next = null;
return oddHead.next;
}
}
| [
"1440113361@qq.com"
] | 1440113361@qq.com |
4af5753b04b00c47e0cc39978fe32c2329a746cc | 4e72b130cad2206ac2fb57909e4fcc9dad323613 | /src/test/java/org/ldaniels528/javapc/ibmpc/util/X86CompilerUtilTest.java | 06948b9642249d50f17967c4c5d9393e15eb5414 | [] | no_license | ldaniels528/javapc | 1c10d2574491146b232a164cd711d77e35a3789e | e33628f4eb7f73be44ac0b8e24cc9ba82f332466 | refs/heads/master | 2020-08-07T13:12:19.652616 | 2020-06-17T18:44:16 | 2020-06-17T18:44:16 | 16,382,104 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 738 | java | package org.ldaniels528.javapc.ibmpc.util;
import org.junit.Test;
import static org.ldaniels528.javapc.ibmpc.util.X86CompilerUtil.getMemoryOffset;
import static org.ldaniels528.javapc.ibmpc.util.X86CompilerUtil.isNumber;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
/**
* 8086 Compiler Utilities Test Suite
*
* @author lawrence.daniels@gmail.com
*/
public class X86CompilerUtilTest {
@Test
public void testIsNumber() {
assertTrue(isNumber("1234"));
assertTrue(isNumber("&O1234"));
assertTrue(isNumber("&H1234"));
}
@Test
public void testGetMemoryOffset() throws Exception {
assertEquals(getMemoryOffset("[&H1234]"), 0x1234);
}
}
| [
"lawrence.daniels@gmail.com"
] | lawrence.daniels@gmail.com |
b5eb3f9777842de230fb34412b8e920ad0c7a1bd | fff9297205a7f7a0034234e8d3bef81339573b81 | /app/src/main/java/br/com/tastyfast/tastyfastapp/MenuConfiguracoesActivity.java | 0da1c8ecd46f6f4b0671dabf1071707865f9c467 | [] | no_license | addsonMendes/AppTastyFast | bd368a78203e9d69d83cd80c871548cf16c5aad9 | 5ff1149bbd2b9f8b09c64dba956f08033556360c | refs/heads/master | 2020-04-09T21:33:59.068389 | 2018-12-06T02:22:10 | 2018-12-06T02:22:10 | 160,605,876 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,417 | java | package br.com.tastyfast.tastyfastapp;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class MenuConfiguracoesActivity extends AppCompatActivity {
private Button btPerfil, btBuscaAvancada, btReservas, btSair;
private EditText edtPesquisar;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_menu_configuracoes);
inicializaComponentes();
btPerfil.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent vaiParaTelaDePerfil = new Intent(MenuConfiguracoesActivity.this, PerfilUsuarioActivity.class);
startActivity(vaiParaTelaDePerfil);
}
});
btReservas.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent vaiParaTelaDeHistorico = new Intent(MenuConfiguracoesActivity.this, HistoricoReservasActivity.class);
startActivity(vaiParaTelaDeHistorico);
}
});
btSair.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
SharedPreferences preferences = getSharedPreferences("user_preferences", MODE_PRIVATE);
SharedPreferences.Editor editor = preferences.edit();
editor.remove("usuarioLogado");
editor.remove("idUsuarioLogado");
editor.remove("nomeUsuario");
editor.remove("emailUsuario");
editor.commit();
Intent vaiParaTelaDeLogin = new Intent(MenuConfiguracoesActivity.this, LoginActivity.class);
startActivity(vaiParaTelaDeLogin);
finish();
}
});
}
private void inicializaComponentes(){
btPerfil = findViewById(R.id.btMenuConfPerfil);
btBuscaAvancada = findViewById(R.id.btMenuConfBuscaAvanc);
btReservas = findViewById(R.id.btMenuConfReservas);
btSair = findViewById(R.id.btMenuConfSair);
edtPesquisar = findViewById(R.id.edtMenuConfPesquisar);
}
}
| [
"="
] | = |
9b1e4bc212f4e49955e85ae72f829d753d404426 | 70c7c9e1ecc96002f2028085865357dd752f5ada | /java8/src/java8_15/Hangman.java | 1e830cf5f235ce11ea9e4138e2dcc173b4716976 | [] | no_license | pc1111/java8 | 0ef26ab8fb40d1ee68c100e1dfbacd24ade708cf | e07a8b76726384c0a166f2f6b179164ded7a7dc8 | refs/heads/master | 2021-03-25T02:56:19.952291 | 2020-04-13T06:18:21 | 2020-04-13T06:18:21 | 247,583,967 | 0 | 0 | null | null | null | null | UHC | Java | false | false | 1,513 | java | package java8_15;
public class Hangman {
String hiddenString;
StringBuffer outputString = new StringBuffer();
StringBuffer inputString = new StringBuffer();
int remainder;
int failed;
public Hangman(String game) {
hiddenString = game;
}
public int playGame() {
this.inputString = new StringBuffer(hiddenString);
this.remainder = hiddenString.length();
this.failed = 6;
for (int i = 0; i < remainder; i++)
outputString.append("_");
return remainder;
}
public int go(StringBuffer player) {
int temp = 0;
int count = remainder;
int i = 0;
while (count >= 0) {
count--;
if ((player.charAt(0)) == (inputString.charAt(i))) {
outputString.deleteCharAt(i);
outputString.insert(i, inputString.charAt(i));
inputString.deleteCharAt(i);
inputString.insert(i, "_");
temp = 1;
} else {
i += 1;
}
}
if (temp == 0)
failed--;
show();
count = cheak();
if (count == remainder) {
System.out.println("정답입니다.");
return 30;
} else {
return failed;
}
}
private void show() {
System.out.println("남아있는 라이프 : " + failed);
System.out.println(outputString);
}
private int cheak() {
int count = 0;
for (int i = 0; i < remainder; i++) {
if (hiddenString.charAt(i) == outputString.charAt(i)) {
count++;
}
}
return count;
}
public void ready() {
System.out.println("문자를 입력해주세요");
}
}
| [
"seunghoon.ryu.dev@gmail.com"
] | seunghoon.ryu.dev@gmail.com |
b859d7b69e4fcbbcea3c607a4cf66f107e8a377b | 4bb4093a26dc88848d6b5882c167a56ee313eb78 | /app/src/main/java/com/noorapp/noor/models/ReservationsModel/Trip.java | 15135ef1369aaa16ce48884bff359cccc6ec4be8 | [] | no_license | MahmoudMostafa125/Brights | 381b1aab8d158a9749c1ed27f87a9b483920cc44 | eb1490d4f391bf597566fa37d6d72419bc061258 | refs/heads/master | 2020-07-06T14:32:41.826448 | 2019-08-18T20:10:37 | 2019-08-18T20:10:37 | 203,050,804 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,227 | java | package com.noorapp.noor.models.ReservationsModel;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Trip {
@SerializedName("id")
@Expose
private Integer id;
@SerializedName("code")
@Expose
private String code;
@SerializedName("user_id")
@Expose
private String userId;
@SerializedName("trip_id")
@Expose
private String tripId;
@SerializedName("amount")
@Expose
private String amount;
@SerializedName("coupon")
@Expose
private Object coupon;
@SerializedName("paied")
@Expose
private String paied;
@SerializedName("pay_type")
@Expose
private String payType;
@SerializedName("location")
@Expose
private Object location;
@SerializedName("time")
@Expose
private Object time;
@SerializedName("date")
@Expose
private String date;
@SerializedName("created_at")
@Expose
private Object createdAt;
@SerializedName("updated_at")
@Expose
private Object updatedAt;
@SerializedName("trip")
@Expose
private com.noorapp.noor.models.TransportationModel.Trip trip;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getTripId() {
return tripId;
}
public void setTripId(String tripId) {
this.tripId = tripId;
}
public String getAmount() {
return amount;
}
public void setAmount(String amount) {
this.amount = amount;
}
public Object getCoupon() {
return coupon;
}
public void setCoupon(Object coupon) {
this.coupon = coupon;
}
public String getPaied() {
return paied;
}
public void setPaied(String paied) {
this.paied = paied;
}
public String getPayType() {
return payType;
}
public void setPayType(String payType) {
this.payType = payType;
}
public Object getLocation() {
return location;
}
public void setLocation(Object location) {
this.location = location;
}
public Object getTime() {
return time;
}
public void setTime(Object time) {
this.time = time;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public Object getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Object createdAt) {
this.createdAt = createdAt;
}
public Object getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Object updatedAt) {
this.updatedAt = updatedAt;
}
public com.noorapp.noor.models.TransportationModel.Trip getTrip() {
return trip;
}
public void setTrip(com.noorapp.noor.models.TransportationModel.Trip trip) {
this.trip = trip;
}
}
| [
"mahmoudmostafa125125@yahoo.com"
] | mahmoudmostafa125125@yahoo.com |
b4ed460da7b96398efdddd42f358262f329ac83e | d3a1b74bff9e2163ccd09cf456b731a79a7105fe | /code-convertor/src/main/java/com/gacfinance/ycloans2/convertor/grammar/single/Java8Listener.java | 143d2533cfbb918c11d1c5cd47d7221ec70792d2 | [] | no_license | lichanan/ycloans2 | f0e0df16bd76c4d6360bd3a36c03558fd8a89119 | 81a80943dc379305b668702c4b61ac2b0a676793 | refs/heads/master | 2023-02-25T23:13:24.257192 | 2021-02-01T10:29:59 | 2021-02-01T10:29:59 | 333,682,390 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 92,030 | java | // Generated from D:/intellij_project/ycloans2/code-convertor/src/main/resources/grammar/single\Java8.g4 by ANTLR 4.9
package com.gacfinance.ycloans2.convertor.grammar.single;
import org.antlr.v4.runtime.tree.ParseTreeListener;
/**
* This interface defines a complete listener for a parse tree produced by
* {@link Java8Parser}.
*/
public interface Java8Listener extends ParseTreeListener {
/**
* Enter a parse tree produced by {@link Java8Parser#literal}.
* @param ctx the parse tree
*/
void enterLiteral(Java8Parser.LiteralContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#literal}.
* @param ctx the parse tree
*/
void exitLiteral(Java8Parser.LiteralContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#type}.
* @param ctx the parse tree
*/
void enterType(Java8Parser.TypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#type}.
* @param ctx the parse tree
*/
void exitType(Java8Parser.TypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#primitiveType}.
* @param ctx the parse tree
*/
void enterPrimitiveType(Java8Parser.PrimitiveTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#primitiveType}.
* @param ctx the parse tree
*/
void exitPrimitiveType(Java8Parser.PrimitiveTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#numericType}.
* @param ctx the parse tree
*/
void enterNumericType(Java8Parser.NumericTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#numericType}.
* @param ctx the parse tree
*/
void exitNumericType(Java8Parser.NumericTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#integralType}.
* @param ctx the parse tree
*/
void enterIntegralType(Java8Parser.IntegralTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#integralType}.
* @param ctx the parse tree
*/
void exitIntegralType(Java8Parser.IntegralTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#floatingPointType}.
* @param ctx the parse tree
*/
void enterFloatingPointType(Java8Parser.FloatingPointTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#floatingPointType}.
* @param ctx the parse tree
*/
void exitFloatingPointType(Java8Parser.FloatingPointTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#referenceType}.
* @param ctx the parse tree
*/
void enterReferenceType(Java8Parser.ReferenceTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#referenceType}.
* @param ctx the parse tree
*/
void exitReferenceType(Java8Parser.ReferenceTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#classOrInterfaceType}.
* @param ctx the parse tree
*/
void enterClassOrInterfaceType(Java8Parser.ClassOrInterfaceTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#classOrInterfaceType}.
* @param ctx the parse tree
*/
void exitClassOrInterfaceType(Java8Parser.ClassOrInterfaceTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#classType}.
* @param ctx the parse tree
*/
void enterClassType(Java8Parser.ClassTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#classType}.
* @param ctx the parse tree
*/
void exitClassType(Java8Parser.ClassTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#classType_lf_classOrInterfaceType}.
* @param ctx the parse tree
*/
void enterClassType_lf_classOrInterfaceType(Java8Parser.ClassType_lf_classOrInterfaceTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#classType_lf_classOrInterfaceType}.
* @param ctx the parse tree
*/
void exitClassType_lf_classOrInterfaceType(Java8Parser.ClassType_lf_classOrInterfaceTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#classType_lfno_classOrInterfaceType}.
* @param ctx the parse tree
*/
void enterClassType_lfno_classOrInterfaceType(Java8Parser.ClassType_lfno_classOrInterfaceTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#classType_lfno_classOrInterfaceType}.
* @param ctx the parse tree
*/
void exitClassType_lfno_classOrInterfaceType(Java8Parser.ClassType_lfno_classOrInterfaceTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#interfaceType}.
* @param ctx the parse tree
*/
void enterInterfaceType(Java8Parser.InterfaceTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#interfaceType}.
* @param ctx the parse tree
*/
void exitInterfaceType(Java8Parser.InterfaceTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#interfaceType_lf_classOrInterfaceType}.
* @param ctx the parse tree
*/
void enterInterfaceType_lf_classOrInterfaceType(Java8Parser.InterfaceType_lf_classOrInterfaceTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#interfaceType_lf_classOrInterfaceType}.
* @param ctx the parse tree
*/
void exitInterfaceType_lf_classOrInterfaceType(Java8Parser.InterfaceType_lf_classOrInterfaceTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#interfaceType_lfno_classOrInterfaceType}.
* @param ctx the parse tree
*/
void enterInterfaceType_lfno_classOrInterfaceType(Java8Parser.InterfaceType_lfno_classOrInterfaceTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#interfaceType_lfno_classOrInterfaceType}.
* @param ctx the parse tree
*/
void exitInterfaceType_lfno_classOrInterfaceType(Java8Parser.InterfaceType_lfno_classOrInterfaceTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#typeVariable}.
* @param ctx the parse tree
*/
void enterTypeVariable(Java8Parser.TypeVariableContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#typeVariable}.
* @param ctx the parse tree
*/
void exitTypeVariable(Java8Parser.TypeVariableContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#arrayType}.
* @param ctx the parse tree
*/
void enterArrayType(Java8Parser.ArrayTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#arrayType}.
* @param ctx the parse tree
*/
void exitArrayType(Java8Parser.ArrayTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#dims}.
* @param ctx the parse tree
*/
void enterDims(Java8Parser.DimsContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#dims}.
* @param ctx the parse tree
*/
void exitDims(Java8Parser.DimsContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#typeParameter}.
* @param ctx the parse tree
*/
void enterTypeParameter(Java8Parser.TypeParameterContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#typeParameter}.
* @param ctx the parse tree
*/
void exitTypeParameter(Java8Parser.TypeParameterContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#typeParameterModifier}.
* @param ctx the parse tree
*/
void enterTypeParameterModifier(Java8Parser.TypeParameterModifierContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#typeParameterModifier}.
* @param ctx the parse tree
*/
void exitTypeParameterModifier(Java8Parser.TypeParameterModifierContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#typeBound}.
* @param ctx the parse tree
*/
void enterTypeBound(Java8Parser.TypeBoundContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#typeBound}.
* @param ctx the parse tree
*/
void exitTypeBound(Java8Parser.TypeBoundContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#additionalBound}.
* @param ctx the parse tree
*/
void enterAdditionalBound(Java8Parser.AdditionalBoundContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#additionalBound}.
* @param ctx the parse tree
*/
void exitAdditionalBound(Java8Parser.AdditionalBoundContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#typeArguments}.
* @param ctx the parse tree
*/
void enterTypeArguments(Java8Parser.TypeArgumentsContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#typeArguments}.
* @param ctx the parse tree
*/
void exitTypeArguments(Java8Parser.TypeArgumentsContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#typeArgumentList}.
* @param ctx the parse tree
*/
void enterTypeArgumentList(Java8Parser.TypeArgumentListContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#typeArgumentList}.
* @param ctx the parse tree
*/
void exitTypeArgumentList(Java8Parser.TypeArgumentListContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#typeArgument}.
* @param ctx the parse tree
*/
void enterTypeArgument(Java8Parser.TypeArgumentContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#typeArgument}.
* @param ctx the parse tree
*/
void exitTypeArgument(Java8Parser.TypeArgumentContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#wildcard}.
* @param ctx the parse tree
*/
void enterWildcard(Java8Parser.WildcardContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#wildcard}.
* @param ctx the parse tree
*/
void exitWildcard(Java8Parser.WildcardContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#wildcardBounds}.
* @param ctx the parse tree
*/
void enterWildcardBounds(Java8Parser.WildcardBoundsContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#wildcardBounds}.
* @param ctx the parse tree
*/
void exitWildcardBounds(Java8Parser.WildcardBoundsContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#packageName}.
* @param ctx the parse tree
*/
void enterPackageName(Java8Parser.PackageNameContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#packageName}.
* @param ctx the parse tree
*/
void exitPackageName(Java8Parser.PackageNameContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#typeName}.
* @param ctx the parse tree
*/
void enterTypeName(Java8Parser.TypeNameContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#typeName}.
* @param ctx the parse tree
*/
void exitTypeName(Java8Parser.TypeNameContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#packageOrTypeName}.
* @param ctx the parse tree
*/
void enterPackageOrTypeName(Java8Parser.PackageOrTypeNameContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#packageOrTypeName}.
* @param ctx the parse tree
*/
void exitPackageOrTypeName(Java8Parser.PackageOrTypeNameContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#expressionName}.
* @param ctx the parse tree
*/
void enterExpressionName(Java8Parser.ExpressionNameContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#expressionName}.
* @param ctx the parse tree
*/
void exitExpressionName(Java8Parser.ExpressionNameContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#methodName}.
* @param ctx the parse tree
*/
void enterMethodName(Java8Parser.MethodNameContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#methodName}.
* @param ctx the parse tree
*/
void exitMethodName(Java8Parser.MethodNameContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#ambiguousName}.
* @param ctx the parse tree
*/
void enterAmbiguousName(Java8Parser.AmbiguousNameContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#ambiguousName}.
* @param ctx the parse tree
*/
void exitAmbiguousName(Java8Parser.AmbiguousNameContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#compilationUnit}.
* @param ctx the parse tree
*/
void enterCompilationUnit(Java8Parser.CompilationUnitContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#compilationUnit}.
* @param ctx the parse tree
*/
void exitCompilationUnit(Java8Parser.CompilationUnitContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#declaration}.
* @param ctx the parse tree
*/
void enterDeclaration(Java8Parser.DeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#declaration}.
* @param ctx the parse tree
*/
void exitDeclaration(Java8Parser.DeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#singleStatement}.
* @param ctx the parse tree
*/
void enterSingleStatement(Java8Parser.SingleStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#singleStatement}.
* @param ctx the parse tree
*/
void exitSingleStatement(Java8Parser.SingleStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#packageDeclaration}.
* @param ctx the parse tree
*/
void enterPackageDeclaration(Java8Parser.PackageDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#packageDeclaration}.
* @param ctx the parse tree
*/
void exitPackageDeclaration(Java8Parser.PackageDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#packageModifier}.
* @param ctx the parse tree
*/
void enterPackageModifier(Java8Parser.PackageModifierContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#packageModifier}.
* @param ctx the parse tree
*/
void exitPackageModifier(Java8Parser.PackageModifierContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#importDeclaration}.
* @param ctx the parse tree
*/
void enterImportDeclaration(Java8Parser.ImportDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#importDeclaration}.
* @param ctx the parse tree
*/
void exitImportDeclaration(Java8Parser.ImportDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#singleTypeImportDeclaration}.
* @param ctx the parse tree
*/
void enterSingleTypeImportDeclaration(Java8Parser.SingleTypeImportDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#singleTypeImportDeclaration}.
* @param ctx the parse tree
*/
void exitSingleTypeImportDeclaration(Java8Parser.SingleTypeImportDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#typeImportOnDemandDeclaration}.
* @param ctx the parse tree
*/
void enterTypeImportOnDemandDeclaration(Java8Parser.TypeImportOnDemandDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#typeImportOnDemandDeclaration}.
* @param ctx the parse tree
*/
void exitTypeImportOnDemandDeclaration(Java8Parser.TypeImportOnDemandDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#singleStaticImportDeclaration}.
* @param ctx the parse tree
*/
void enterSingleStaticImportDeclaration(Java8Parser.SingleStaticImportDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#singleStaticImportDeclaration}.
* @param ctx the parse tree
*/
void exitSingleStaticImportDeclaration(Java8Parser.SingleStaticImportDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#staticImportOnDemandDeclaration}.
* @param ctx the parse tree
*/
void enterStaticImportOnDemandDeclaration(Java8Parser.StaticImportOnDemandDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#staticImportOnDemandDeclaration}.
* @param ctx the parse tree
*/
void exitStaticImportOnDemandDeclaration(Java8Parser.StaticImportOnDemandDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#typeDeclaration}.
* @param ctx the parse tree
*/
void enterTypeDeclaration(Java8Parser.TypeDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#typeDeclaration}.
* @param ctx the parse tree
*/
void exitTypeDeclaration(Java8Parser.TypeDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#classDeclaration}.
* @param ctx the parse tree
*/
void enterClassDeclaration(Java8Parser.ClassDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#classDeclaration}.
* @param ctx the parse tree
*/
void exitClassDeclaration(Java8Parser.ClassDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#normalClassDeclaration}.
* @param ctx the parse tree
*/
void enterNormalClassDeclaration(Java8Parser.NormalClassDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#normalClassDeclaration}.
* @param ctx the parse tree
*/
void exitNormalClassDeclaration(Java8Parser.NormalClassDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#classModifier}.
* @param ctx the parse tree
*/
void enterClassModifier(Java8Parser.ClassModifierContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#classModifier}.
* @param ctx the parse tree
*/
void exitClassModifier(Java8Parser.ClassModifierContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#typeParameters}.
* @param ctx the parse tree
*/
void enterTypeParameters(Java8Parser.TypeParametersContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#typeParameters}.
* @param ctx the parse tree
*/
void exitTypeParameters(Java8Parser.TypeParametersContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#typeParameterList}.
* @param ctx the parse tree
*/
void enterTypeParameterList(Java8Parser.TypeParameterListContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#typeParameterList}.
* @param ctx the parse tree
*/
void exitTypeParameterList(Java8Parser.TypeParameterListContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#superclass}.
* @param ctx the parse tree
*/
void enterSuperclass(Java8Parser.SuperclassContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#superclass}.
* @param ctx the parse tree
*/
void exitSuperclass(Java8Parser.SuperclassContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#superinterfaces}.
* @param ctx the parse tree
*/
void enterSuperinterfaces(Java8Parser.SuperinterfacesContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#superinterfaces}.
* @param ctx the parse tree
*/
void exitSuperinterfaces(Java8Parser.SuperinterfacesContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#interfaceTypeList}.
* @param ctx the parse tree
*/
void enterInterfaceTypeList(Java8Parser.InterfaceTypeListContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#interfaceTypeList}.
* @param ctx the parse tree
*/
void exitInterfaceTypeList(Java8Parser.InterfaceTypeListContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#classBody}.
* @param ctx the parse tree
*/
void enterClassBody(Java8Parser.ClassBodyContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#classBody}.
* @param ctx the parse tree
*/
void exitClassBody(Java8Parser.ClassBodyContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#classBodyDeclaration}.
* @param ctx the parse tree
*/
void enterClassBodyDeclaration(Java8Parser.ClassBodyDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#classBodyDeclaration}.
* @param ctx the parse tree
*/
void exitClassBodyDeclaration(Java8Parser.ClassBodyDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#classMemberDeclaration}.
* @param ctx the parse tree
*/
void enterClassMemberDeclaration(Java8Parser.ClassMemberDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#classMemberDeclaration}.
* @param ctx the parse tree
*/
void exitClassMemberDeclaration(Java8Parser.ClassMemberDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#fieldDeclaration}.
* @param ctx the parse tree
*/
void enterFieldDeclaration(Java8Parser.FieldDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#fieldDeclaration}.
* @param ctx the parse tree
*/
void exitFieldDeclaration(Java8Parser.FieldDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#fieldModifier}.
* @param ctx the parse tree
*/
void enterFieldModifier(Java8Parser.FieldModifierContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#fieldModifier}.
* @param ctx the parse tree
*/
void exitFieldModifier(Java8Parser.FieldModifierContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#variableDeclaratorList}.
* @param ctx the parse tree
*/
void enterVariableDeclaratorList(Java8Parser.VariableDeclaratorListContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#variableDeclaratorList}.
* @param ctx the parse tree
*/
void exitVariableDeclaratorList(Java8Parser.VariableDeclaratorListContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#variableDeclarator}.
* @param ctx the parse tree
*/
void enterVariableDeclarator(Java8Parser.VariableDeclaratorContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#variableDeclarator}.
* @param ctx the parse tree
*/
void exitVariableDeclarator(Java8Parser.VariableDeclaratorContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#variableDeclaratorId}.
* @param ctx the parse tree
*/
void enterVariableDeclaratorId(Java8Parser.VariableDeclaratorIdContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#variableDeclaratorId}.
* @param ctx the parse tree
*/
void exitVariableDeclaratorId(Java8Parser.VariableDeclaratorIdContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#variableInitializer}.
* @param ctx the parse tree
*/
void enterVariableInitializer(Java8Parser.VariableInitializerContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#variableInitializer}.
* @param ctx the parse tree
*/
void exitVariableInitializer(Java8Parser.VariableInitializerContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#unannType}.
* @param ctx the parse tree
*/
void enterUnannType(Java8Parser.UnannTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#unannType}.
* @param ctx the parse tree
*/
void exitUnannType(Java8Parser.UnannTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#unannPrimitiveType}.
* @param ctx the parse tree
*/
void enterUnannPrimitiveType(Java8Parser.UnannPrimitiveTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#unannPrimitiveType}.
* @param ctx the parse tree
*/
void exitUnannPrimitiveType(Java8Parser.UnannPrimitiveTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#unannReferenceType}.
* @param ctx the parse tree
*/
void enterUnannReferenceType(Java8Parser.UnannReferenceTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#unannReferenceType}.
* @param ctx the parse tree
*/
void exitUnannReferenceType(Java8Parser.UnannReferenceTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#unannClassOrInterfaceType}.
* @param ctx the parse tree
*/
void enterUnannClassOrInterfaceType(Java8Parser.UnannClassOrInterfaceTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#unannClassOrInterfaceType}.
* @param ctx the parse tree
*/
void exitUnannClassOrInterfaceType(Java8Parser.UnannClassOrInterfaceTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#unannClassType}.
* @param ctx the parse tree
*/
void enterUnannClassType(Java8Parser.UnannClassTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#unannClassType}.
* @param ctx the parse tree
*/
void exitUnannClassType(Java8Parser.UnannClassTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#unannClassType_lf_unannClassOrInterfaceType}.
* @param ctx the parse tree
*/
void enterUnannClassType_lf_unannClassOrInterfaceType(Java8Parser.UnannClassType_lf_unannClassOrInterfaceTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#unannClassType_lf_unannClassOrInterfaceType}.
* @param ctx the parse tree
*/
void exitUnannClassType_lf_unannClassOrInterfaceType(Java8Parser.UnannClassType_lf_unannClassOrInterfaceTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#unannClassType_lfno_unannClassOrInterfaceType}.
* @param ctx the parse tree
*/
void enterUnannClassType_lfno_unannClassOrInterfaceType(Java8Parser.UnannClassType_lfno_unannClassOrInterfaceTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#unannClassType_lfno_unannClassOrInterfaceType}.
* @param ctx the parse tree
*/
void exitUnannClassType_lfno_unannClassOrInterfaceType(Java8Parser.UnannClassType_lfno_unannClassOrInterfaceTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#unannInterfaceType}.
* @param ctx the parse tree
*/
void enterUnannInterfaceType(Java8Parser.UnannInterfaceTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#unannInterfaceType}.
* @param ctx the parse tree
*/
void exitUnannInterfaceType(Java8Parser.UnannInterfaceTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#unannInterfaceType_lf_unannClassOrInterfaceType}.
* @param ctx the parse tree
*/
void enterUnannInterfaceType_lf_unannClassOrInterfaceType(Java8Parser.UnannInterfaceType_lf_unannClassOrInterfaceTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#unannInterfaceType_lf_unannClassOrInterfaceType}.
* @param ctx the parse tree
*/
void exitUnannInterfaceType_lf_unannClassOrInterfaceType(Java8Parser.UnannInterfaceType_lf_unannClassOrInterfaceTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#unannInterfaceType_lfno_unannClassOrInterfaceType}.
* @param ctx the parse tree
*/
void enterUnannInterfaceType_lfno_unannClassOrInterfaceType(Java8Parser.UnannInterfaceType_lfno_unannClassOrInterfaceTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#unannInterfaceType_lfno_unannClassOrInterfaceType}.
* @param ctx the parse tree
*/
void exitUnannInterfaceType_lfno_unannClassOrInterfaceType(Java8Parser.UnannInterfaceType_lfno_unannClassOrInterfaceTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#unannTypeVariable}.
* @param ctx the parse tree
*/
void enterUnannTypeVariable(Java8Parser.UnannTypeVariableContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#unannTypeVariable}.
* @param ctx the parse tree
*/
void exitUnannTypeVariable(Java8Parser.UnannTypeVariableContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#unannArrayType}.
* @param ctx the parse tree
*/
void enterUnannArrayType(Java8Parser.UnannArrayTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#unannArrayType}.
* @param ctx the parse tree
*/
void exitUnannArrayType(Java8Parser.UnannArrayTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#methodDeclaration}.
* @param ctx the parse tree
*/
void enterMethodDeclaration(Java8Parser.MethodDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#methodDeclaration}.
* @param ctx the parse tree
*/
void exitMethodDeclaration(Java8Parser.MethodDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#methodModifier}.
* @param ctx the parse tree
*/
void enterMethodModifier(Java8Parser.MethodModifierContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#methodModifier}.
* @param ctx the parse tree
*/
void exitMethodModifier(Java8Parser.MethodModifierContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#methodHeader}.
* @param ctx the parse tree
*/
void enterMethodHeader(Java8Parser.MethodHeaderContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#methodHeader}.
* @param ctx the parse tree
*/
void exitMethodHeader(Java8Parser.MethodHeaderContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#result}.
* @param ctx the parse tree
*/
void enterResult(Java8Parser.ResultContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#result}.
* @param ctx the parse tree
*/
void exitResult(Java8Parser.ResultContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#methodDeclarator}.
* @param ctx the parse tree
*/
void enterMethodDeclarator(Java8Parser.MethodDeclaratorContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#methodDeclarator}.
* @param ctx the parse tree
*/
void exitMethodDeclarator(Java8Parser.MethodDeclaratorContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#formalParameterList}.
* @param ctx the parse tree
*/
void enterFormalParameterList(Java8Parser.FormalParameterListContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#formalParameterList}.
* @param ctx the parse tree
*/
void exitFormalParameterList(Java8Parser.FormalParameterListContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#formalParameters}.
* @param ctx the parse tree
*/
void enterFormalParameters(Java8Parser.FormalParametersContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#formalParameters}.
* @param ctx the parse tree
*/
void exitFormalParameters(Java8Parser.FormalParametersContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#formalParameter}.
* @param ctx the parse tree
*/
void enterFormalParameter(Java8Parser.FormalParameterContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#formalParameter}.
* @param ctx the parse tree
*/
void exitFormalParameter(Java8Parser.FormalParameterContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#variableModifier}.
* @param ctx the parse tree
*/
void enterVariableModifier(Java8Parser.VariableModifierContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#variableModifier}.
* @param ctx the parse tree
*/
void exitVariableModifier(Java8Parser.VariableModifierContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#lastFormalParameter}.
* @param ctx the parse tree
*/
void enterLastFormalParameter(Java8Parser.LastFormalParameterContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#lastFormalParameter}.
* @param ctx the parse tree
*/
void exitLastFormalParameter(Java8Parser.LastFormalParameterContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#receiverParameter}.
* @param ctx the parse tree
*/
void enterReceiverParameter(Java8Parser.ReceiverParameterContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#receiverParameter}.
* @param ctx the parse tree
*/
void exitReceiverParameter(Java8Parser.ReceiverParameterContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#throws_}.
* @param ctx the parse tree
*/
void enterThrows_(Java8Parser.Throws_Context ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#throws_}.
* @param ctx the parse tree
*/
void exitThrows_(Java8Parser.Throws_Context ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#exceptionTypeList}.
* @param ctx the parse tree
*/
void enterExceptionTypeList(Java8Parser.ExceptionTypeListContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#exceptionTypeList}.
* @param ctx the parse tree
*/
void exitExceptionTypeList(Java8Parser.ExceptionTypeListContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#exceptionType}.
* @param ctx the parse tree
*/
void enterExceptionType(Java8Parser.ExceptionTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#exceptionType}.
* @param ctx the parse tree
*/
void exitExceptionType(Java8Parser.ExceptionTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#methodBody}.
* @param ctx the parse tree
*/
void enterMethodBody(Java8Parser.MethodBodyContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#methodBody}.
* @param ctx the parse tree
*/
void exitMethodBody(Java8Parser.MethodBodyContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#instanceInitializer}.
* @param ctx the parse tree
*/
void enterInstanceInitializer(Java8Parser.InstanceInitializerContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#instanceInitializer}.
* @param ctx the parse tree
*/
void exitInstanceInitializer(Java8Parser.InstanceInitializerContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#staticInitializer}.
* @param ctx the parse tree
*/
void enterStaticInitializer(Java8Parser.StaticInitializerContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#staticInitializer}.
* @param ctx the parse tree
*/
void exitStaticInitializer(Java8Parser.StaticInitializerContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#constructorDeclaration}.
* @param ctx the parse tree
*/
void enterConstructorDeclaration(Java8Parser.ConstructorDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#constructorDeclaration}.
* @param ctx the parse tree
*/
void exitConstructorDeclaration(Java8Parser.ConstructorDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#constructorModifier}.
* @param ctx the parse tree
*/
void enterConstructorModifier(Java8Parser.ConstructorModifierContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#constructorModifier}.
* @param ctx the parse tree
*/
void exitConstructorModifier(Java8Parser.ConstructorModifierContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#constructorDeclarator}.
* @param ctx the parse tree
*/
void enterConstructorDeclarator(Java8Parser.ConstructorDeclaratorContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#constructorDeclarator}.
* @param ctx the parse tree
*/
void exitConstructorDeclarator(Java8Parser.ConstructorDeclaratorContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#simpleTypeName}.
* @param ctx the parse tree
*/
void enterSimpleTypeName(Java8Parser.SimpleTypeNameContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#simpleTypeName}.
* @param ctx the parse tree
*/
void exitSimpleTypeName(Java8Parser.SimpleTypeNameContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#constructorBody}.
* @param ctx the parse tree
*/
void enterConstructorBody(Java8Parser.ConstructorBodyContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#constructorBody}.
* @param ctx the parse tree
*/
void exitConstructorBody(Java8Parser.ConstructorBodyContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#explicitConstructorInvocation}.
* @param ctx the parse tree
*/
void enterExplicitConstructorInvocation(Java8Parser.ExplicitConstructorInvocationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#explicitConstructorInvocation}.
* @param ctx the parse tree
*/
void exitExplicitConstructorInvocation(Java8Parser.ExplicitConstructorInvocationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#enumDeclaration}.
* @param ctx the parse tree
*/
void enterEnumDeclaration(Java8Parser.EnumDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#enumDeclaration}.
* @param ctx the parse tree
*/
void exitEnumDeclaration(Java8Parser.EnumDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#enumBody}.
* @param ctx the parse tree
*/
void enterEnumBody(Java8Parser.EnumBodyContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#enumBody}.
* @param ctx the parse tree
*/
void exitEnumBody(Java8Parser.EnumBodyContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#enumConstantList}.
* @param ctx the parse tree
*/
void enterEnumConstantList(Java8Parser.EnumConstantListContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#enumConstantList}.
* @param ctx the parse tree
*/
void exitEnumConstantList(Java8Parser.EnumConstantListContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#enumConstant}.
* @param ctx the parse tree
*/
void enterEnumConstant(Java8Parser.EnumConstantContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#enumConstant}.
* @param ctx the parse tree
*/
void exitEnumConstant(Java8Parser.EnumConstantContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#enumConstantModifier}.
* @param ctx the parse tree
*/
void enterEnumConstantModifier(Java8Parser.EnumConstantModifierContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#enumConstantModifier}.
* @param ctx the parse tree
*/
void exitEnumConstantModifier(Java8Parser.EnumConstantModifierContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#enumBodyDeclarations}.
* @param ctx the parse tree
*/
void enterEnumBodyDeclarations(Java8Parser.EnumBodyDeclarationsContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#enumBodyDeclarations}.
* @param ctx the parse tree
*/
void exitEnumBodyDeclarations(Java8Parser.EnumBodyDeclarationsContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#interfaceDeclaration}.
* @param ctx the parse tree
*/
void enterInterfaceDeclaration(Java8Parser.InterfaceDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#interfaceDeclaration}.
* @param ctx the parse tree
*/
void exitInterfaceDeclaration(Java8Parser.InterfaceDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#normalInterfaceDeclaration}.
* @param ctx the parse tree
*/
void enterNormalInterfaceDeclaration(Java8Parser.NormalInterfaceDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#normalInterfaceDeclaration}.
* @param ctx the parse tree
*/
void exitNormalInterfaceDeclaration(Java8Parser.NormalInterfaceDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#interfaceModifier}.
* @param ctx the parse tree
*/
void enterInterfaceModifier(Java8Parser.InterfaceModifierContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#interfaceModifier}.
* @param ctx the parse tree
*/
void exitInterfaceModifier(Java8Parser.InterfaceModifierContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#extendsInterfaces}.
* @param ctx the parse tree
*/
void enterExtendsInterfaces(Java8Parser.ExtendsInterfacesContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#extendsInterfaces}.
* @param ctx the parse tree
*/
void exitExtendsInterfaces(Java8Parser.ExtendsInterfacesContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#interfaceBody}.
* @param ctx the parse tree
*/
void enterInterfaceBody(Java8Parser.InterfaceBodyContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#interfaceBody}.
* @param ctx the parse tree
*/
void exitInterfaceBody(Java8Parser.InterfaceBodyContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#interfaceMemberDeclaration}.
* @param ctx the parse tree
*/
void enterInterfaceMemberDeclaration(Java8Parser.InterfaceMemberDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#interfaceMemberDeclaration}.
* @param ctx the parse tree
*/
void exitInterfaceMemberDeclaration(Java8Parser.InterfaceMemberDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#constantDeclaration}.
* @param ctx the parse tree
*/
void enterConstantDeclaration(Java8Parser.ConstantDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#constantDeclaration}.
* @param ctx the parse tree
*/
void exitConstantDeclaration(Java8Parser.ConstantDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#constantModifier}.
* @param ctx the parse tree
*/
void enterConstantModifier(Java8Parser.ConstantModifierContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#constantModifier}.
* @param ctx the parse tree
*/
void exitConstantModifier(Java8Parser.ConstantModifierContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#interfaceMethodDeclaration}.
* @param ctx the parse tree
*/
void enterInterfaceMethodDeclaration(Java8Parser.InterfaceMethodDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#interfaceMethodDeclaration}.
* @param ctx the parse tree
*/
void exitInterfaceMethodDeclaration(Java8Parser.InterfaceMethodDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#interfaceMethodModifier}.
* @param ctx the parse tree
*/
void enterInterfaceMethodModifier(Java8Parser.InterfaceMethodModifierContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#interfaceMethodModifier}.
* @param ctx the parse tree
*/
void exitInterfaceMethodModifier(Java8Parser.InterfaceMethodModifierContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#annotationTypeDeclaration}.
* @param ctx the parse tree
*/
void enterAnnotationTypeDeclaration(Java8Parser.AnnotationTypeDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#annotationTypeDeclaration}.
* @param ctx the parse tree
*/
void exitAnnotationTypeDeclaration(Java8Parser.AnnotationTypeDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#annotationTypeBody}.
* @param ctx the parse tree
*/
void enterAnnotationTypeBody(Java8Parser.AnnotationTypeBodyContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#annotationTypeBody}.
* @param ctx the parse tree
*/
void exitAnnotationTypeBody(Java8Parser.AnnotationTypeBodyContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#annotationTypeMemberDeclaration}.
* @param ctx the parse tree
*/
void enterAnnotationTypeMemberDeclaration(Java8Parser.AnnotationTypeMemberDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#annotationTypeMemberDeclaration}.
* @param ctx the parse tree
*/
void exitAnnotationTypeMemberDeclaration(Java8Parser.AnnotationTypeMemberDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#annotationTypeElementDeclaration}.
* @param ctx the parse tree
*/
void enterAnnotationTypeElementDeclaration(Java8Parser.AnnotationTypeElementDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#annotationTypeElementDeclaration}.
* @param ctx the parse tree
*/
void exitAnnotationTypeElementDeclaration(Java8Parser.AnnotationTypeElementDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#annotationTypeElementModifier}.
* @param ctx the parse tree
*/
void enterAnnotationTypeElementModifier(Java8Parser.AnnotationTypeElementModifierContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#annotationTypeElementModifier}.
* @param ctx the parse tree
*/
void exitAnnotationTypeElementModifier(Java8Parser.AnnotationTypeElementModifierContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#defaultValue}.
* @param ctx the parse tree
*/
void enterDefaultValue(Java8Parser.DefaultValueContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#defaultValue}.
* @param ctx the parse tree
*/
void exitDefaultValue(Java8Parser.DefaultValueContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#annotation}.
* @param ctx the parse tree
*/
void enterAnnotation(Java8Parser.AnnotationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#annotation}.
* @param ctx the parse tree
*/
void exitAnnotation(Java8Parser.AnnotationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#normalAnnotation}.
* @param ctx the parse tree
*/
void enterNormalAnnotation(Java8Parser.NormalAnnotationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#normalAnnotation}.
* @param ctx the parse tree
*/
void exitNormalAnnotation(Java8Parser.NormalAnnotationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#elementValuePairList}.
* @param ctx the parse tree
*/
void enterElementValuePairList(Java8Parser.ElementValuePairListContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#elementValuePairList}.
* @param ctx the parse tree
*/
void exitElementValuePairList(Java8Parser.ElementValuePairListContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#elementValuePair}.
* @param ctx the parse tree
*/
void enterElementValuePair(Java8Parser.ElementValuePairContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#elementValuePair}.
* @param ctx the parse tree
*/
void exitElementValuePair(Java8Parser.ElementValuePairContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#elementValue}.
* @param ctx the parse tree
*/
void enterElementValue(Java8Parser.ElementValueContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#elementValue}.
* @param ctx the parse tree
*/
void exitElementValue(Java8Parser.ElementValueContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#elementValueArrayInitializer}.
* @param ctx the parse tree
*/
void enterElementValueArrayInitializer(Java8Parser.ElementValueArrayInitializerContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#elementValueArrayInitializer}.
* @param ctx the parse tree
*/
void exitElementValueArrayInitializer(Java8Parser.ElementValueArrayInitializerContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#elementValueList}.
* @param ctx the parse tree
*/
void enterElementValueList(Java8Parser.ElementValueListContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#elementValueList}.
* @param ctx the parse tree
*/
void exitElementValueList(Java8Parser.ElementValueListContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#markerAnnotation}.
* @param ctx the parse tree
*/
void enterMarkerAnnotation(Java8Parser.MarkerAnnotationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#markerAnnotation}.
* @param ctx the parse tree
*/
void exitMarkerAnnotation(Java8Parser.MarkerAnnotationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#singleElementAnnotation}.
* @param ctx the parse tree
*/
void enterSingleElementAnnotation(Java8Parser.SingleElementAnnotationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#singleElementAnnotation}.
* @param ctx the parse tree
*/
void exitSingleElementAnnotation(Java8Parser.SingleElementAnnotationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#arrayInitializer}.
* @param ctx the parse tree
*/
void enterArrayInitializer(Java8Parser.ArrayInitializerContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#arrayInitializer}.
* @param ctx the parse tree
*/
void exitArrayInitializer(Java8Parser.ArrayInitializerContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#variableInitializerList}.
* @param ctx the parse tree
*/
void enterVariableInitializerList(Java8Parser.VariableInitializerListContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#variableInitializerList}.
* @param ctx the parse tree
*/
void exitVariableInitializerList(Java8Parser.VariableInitializerListContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#block}.
* @param ctx the parse tree
*/
void enterBlock(Java8Parser.BlockContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#block}.
* @param ctx the parse tree
*/
void exitBlock(Java8Parser.BlockContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#blockStatements}.
* @param ctx the parse tree
*/
void enterBlockStatements(Java8Parser.BlockStatementsContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#blockStatements}.
* @param ctx the parse tree
*/
void exitBlockStatements(Java8Parser.BlockStatementsContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#blockStatement}.
* @param ctx the parse tree
*/
void enterBlockStatement(Java8Parser.BlockStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#blockStatement}.
* @param ctx the parse tree
*/
void exitBlockStatement(Java8Parser.BlockStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#localVariableDeclarationStatement}.
* @param ctx the parse tree
*/
void enterLocalVariableDeclarationStatement(Java8Parser.LocalVariableDeclarationStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#localVariableDeclarationStatement}.
* @param ctx the parse tree
*/
void exitLocalVariableDeclarationStatement(Java8Parser.LocalVariableDeclarationStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#localVariableDeclaration}.
* @param ctx the parse tree
*/
void enterLocalVariableDeclaration(Java8Parser.LocalVariableDeclarationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#localVariableDeclaration}.
* @param ctx the parse tree
*/
void exitLocalVariableDeclaration(Java8Parser.LocalVariableDeclarationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#statement}.
* @param ctx the parse tree
*/
void enterStatement(Java8Parser.StatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#statement}.
* @param ctx the parse tree
*/
void exitStatement(Java8Parser.StatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#statementNoShortIf}.
* @param ctx the parse tree
*/
void enterStatementNoShortIf(Java8Parser.StatementNoShortIfContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#statementNoShortIf}.
* @param ctx the parse tree
*/
void exitStatementNoShortIf(Java8Parser.StatementNoShortIfContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#statementWithoutTrailingSubstatement}.
* @param ctx the parse tree
*/
void enterStatementWithoutTrailingSubstatement(Java8Parser.StatementWithoutTrailingSubstatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#statementWithoutTrailingSubstatement}.
* @param ctx the parse tree
*/
void exitStatementWithoutTrailingSubstatement(Java8Parser.StatementWithoutTrailingSubstatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#emptyStatement}.
* @param ctx the parse tree
*/
void enterEmptyStatement(Java8Parser.EmptyStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#emptyStatement}.
* @param ctx the parse tree
*/
void exitEmptyStatement(Java8Parser.EmptyStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#labeledStatement}.
* @param ctx the parse tree
*/
void enterLabeledStatement(Java8Parser.LabeledStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#labeledStatement}.
* @param ctx the parse tree
*/
void exitLabeledStatement(Java8Parser.LabeledStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#labeledStatementNoShortIf}.
* @param ctx the parse tree
*/
void enterLabeledStatementNoShortIf(Java8Parser.LabeledStatementNoShortIfContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#labeledStatementNoShortIf}.
* @param ctx the parse tree
*/
void exitLabeledStatementNoShortIf(Java8Parser.LabeledStatementNoShortIfContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#expressionStatement}.
* @param ctx the parse tree
*/
void enterExpressionStatement(Java8Parser.ExpressionStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#expressionStatement}.
* @param ctx the parse tree
*/
void exitExpressionStatement(Java8Parser.ExpressionStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#statementExpression}.
* @param ctx the parse tree
*/
void enterStatementExpression(Java8Parser.StatementExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#statementExpression}.
* @param ctx the parse tree
*/
void exitStatementExpression(Java8Parser.StatementExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#ifThenStatement}.
* @param ctx the parse tree
*/
void enterIfThenStatement(Java8Parser.IfThenStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#ifThenStatement}.
* @param ctx the parse tree
*/
void exitIfThenStatement(Java8Parser.IfThenStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#ifThenElseStatement}.
* @param ctx the parse tree
*/
void enterIfThenElseStatement(Java8Parser.IfThenElseStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#ifThenElseStatement}.
* @param ctx the parse tree
*/
void exitIfThenElseStatement(Java8Parser.IfThenElseStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#ifThenElseStatementNoShortIf}.
* @param ctx the parse tree
*/
void enterIfThenElseStatementNoShortIf(Java8Parser.IfThenElseStatementNoShortIfContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#ifThenElseStatementNoShortIf}.
* @param ctx the parse tree
*/
void exitIfThenElseStatementNoShortIf(Java8Parser.IfThenElseStatementNoShortIfContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#assertStatement}.
* @param ctx the parse tree
*/
void enterAssertStatement(Java8Parser.AssertStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#assertStatement}.
* @param ctx the parse tree
*/
void exitAssertStatement(Java8Parser.AssertStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#switchStatement}.
* @param ctx the parse tree
*/
void enterSwitchStatement(Java8Parser.SwitchStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#switchStatement}.
* @param ctx the parse tree
*/
void exitSwitchStatement(Java8Parser.SwitchStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#switchBlock}.
* @param ctx the parse tree
*/
void enterSwitchBlock(Java8Parser.SwitchBlockContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#switchBlock}.
* @param ctx the parse tree
*/
void exitSwitchBlock(Java8Parser.SwitchBlockContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#switchBlockStatementGroup}.
* @param ctx the parse tree
*/
void enterSwitchBlockStatementGroup(Java8Parser.SwitchBlockStatementGroupContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#switchBlockStatementGroup}.
* @param ctx the parse tree
*/
void exitSwitchBlockStatementGroup(Java8Parser.SwitchBlockStatementGroupContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#switchLabels}.
* @param ctx the parse tree
*/
void enterSwitchLabels(Java8Parser.SwitchLabelsContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#switchLabels}.
* @param ctx the parse tree
*/
void exitSwitchLabels(Java8Parser.SwitchLabelsContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#switchLabel}.
* @param ctx the parse tree
*/
void enterSwitchLabel(Java8Parser.SwitchLabelContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#switchLabel}.
* @param ctx the parse tree
*/
void exitSwitchLabel(Java8Parser.SwitchLabelContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#enumConstantName}.
* @param ctx the parse tree
*/
void enterEnumConstantName(Java8Parser.EnumConstantNameContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#enumConstantName}.
* @param ctx the parse tree
*/
void exitEnumConstantName(Java8Parser.EnumConstantNameContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#whileStatement}.
* @param ctx the parse tree
*/
void enterWhileStatement(Java8Parser.WhileStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#whileStatement}.
* @param ctx the parse tree
*/
void exitWhileStatement(Java8Parser.WhileStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#whileStatementNoShortIf}.
* @param ctx the parse tree
*/
void enterWhileStatementNoShortIf(Java8Parser.WhileStatementNoShortIfContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#whileStatementNoShortIf}.
* @param ctx the parse tree
*/
void exitWhileStatementNoShortIf(Java8Parser.WhileStatementNoShortIfContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#doStatement}.
* @param ctx the parse tree
*/
void enterDoStatement(Java8Parser.DoStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#doStatement}.
* @param ctx the parse tree
*/
void exitDoStatement(Java8Parser.DoStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#forStatement}.
* @param ctx the parse tree
*/
void enterForStatement(Java8Parser.ForStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#forStatement}.
* @param ctx the parse tree
*/
void exitForStatement(Java8Parser.ForStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#forStatementNoShortIf}.
* @param ctx the parse tree
*/
void enterForStatementNoShortIf(Java8Parser.ForStatementNoShortIfContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#forStatementNoShortIf}.
* @param ctx the parse tree
*/
void exitForStatementNoShortIf(Java8Parser.ForStatementNoShortIfContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#basicForStatement}.
* @param ctx the parse tree
*/
void enterBasicForStatement(Java8Parser.BasicForStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#basicForStatement}.
* @param ctx the parse tree
*/
void exitBasicForStatement(Java8Parser.BasicForStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#basicForStatementNoShortIf}.
* @param ctx the parse tree
*/
void enterBasicForStatementNoShortIf(Java8Parser.BasicForStatementNoShortIfContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#basicForStatementNoShortIf}.
* @param ctx the parse tree
*/
void exitBasicForStatementNoShortIf(Java8Parser.BasicForStatementNoShortIfContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#forInit}.
* @param ctx the parse tree
*/
void enterForInit(Java8Parser.ForInitContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#forInit}.
* @param ctx the parse tree
*/
void exitForInit(Java8Parser.ForInitContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#forUpdate}.
* @param ctx the parse tree
*/
void enterForUpdate(Java8Parser.ForUpdateContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#forUpdate}.
* @param ctx the parse tree
*/
void exitForUpdate(Java8Parser.ForUpdateContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#statementExpressionList}.
* @param ctx the parse tree
*/
void enterStatementExpressionList(Java8Parser.StatementExpressionListContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#statementExpressionList}.
* @param ctx the parse tree
*/
void exitStatementExpressionList(Java8Parser.StatementExpressionListContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#enhancedForStatement}.
* @param ctx the parse tree
*/
void enterEnhancedForStatement(Java8Parser.EnhancedForStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#enhancedForStatement}.
* @param ctx the parse tree
*/
void exitEnhancedForStatement(Java8Parser.EnhancedForStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#enhancedForStatementNoShortIf}.
* @param ctx the parse tree
*/
void enterEnhancedForStatementNoShortIf(Java8Parser.EnhancedForStatementNoShortIfContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#enhancedForStatementNoShortIf}.
* @param ctx the parse tree
*/
void exitEnhancedForStatementNoShortIf(Java8Parser.EnhancedForStatementNoShortIfContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#breakStatement}.
* @param ctx the parse tree
*/
void enterBreakStatement(Java8Parser.BreakStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#breakStatement}.
* @param ctx the parse tree
*/
void exitBreakStatement(Java8Parser.BreakStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#continueStatement}.
* @param ctx the parse tree
*/
void enterContinueStatement(Java8Parser.ContinueStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#continueStatement}.
* @param ctx the parse tree
*/
void exitContinueStatement(Java8Parser.ContinueStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#returnStatement}.
* @param ctx the parse tree
*/
void enterReturnStatement(Java8Parser.ReturnStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#returnStatement}.
* @param ctx the parse tree
*/
void exitReturnStatement(Java8Parser.ReturnStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#throwStatement}.
* @param ctx the parse tree
*/
void enterThrowStatement(Java8Parser.ThrowStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#throwStatement}.
* @param ctx the parse tree
*/
void exitThrowStatement(Java8Parser.ThrowStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#synchronizedStatement}.
* @param ctx the parse tree
*/
void enterSynchronizedStatement(Java8Parser.SynchronizedStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#synchronizedStatement}.
* @param ctx the parse tree
*/
void exitSynchronizedStatement(Java8Parser.SynchronizedStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#tryStatement}.
* @param ctx the parse tree
*/
void enterTryStatement(Java8Parser.TryStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#tryStatement}.
* @param ctx the parse tree
*/
void exitTryStatement(Java8Parser.TryStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#catches}.
* @param ctx the parse tree
*/
void enterCatches(Java8Parser.CatchesContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#catches}.
* @param ctx the parse tree
*/
void exitCatches(Java8Parser.CatchesContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#catchClause}.
* @param ctx the parse tree
*/
void enterCatchClause(Java8Parser.CatchClauseContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#catchClause}.
* @param ctx the parse tree
*/
void exitCatchClause(Java8Parser.CatchClauseContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#catchFormalParameter}.
* @param ctx the parse tree
*/
void enterCatchFormalParameter(Java8Parser.CatchFormalParameterContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#catchFormalParameter}.
* @param ctx the parse tree
*/
void exitCatchFormalParameter(Java8Parser.CatchFormalParameterContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#catchType}.
* @param ctx the parse tree
*/
void enterCatchType(Java8Parser.CatchTypeContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#catchType}.
* @param ctx the parse tree
*/
void exitCatchType(Java8Parser.CatchTypeContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#finally_}.
* @param ctx the parse tree
*/
void enterFinally_(Java8Parser.Finally_Context ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#finally_}.
* @param ctx the parse tree
*/
void exitFinally_(Java8Parser.Finally_Context ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#tryWithResourcesStatement}.
* @param ctx the parse tree
*/
void enterTryWithResourcesStatement(Java8Parser.TryWithResourcesStatementContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#tryWithResourcesStatement}.
* @param ctx the parse tree
*/
void exitTryWithResourcesStatement(Java8Parser.TryWithResourcesStatementContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#resourceSpecification}.
* @param ctx the parse tree
*/
void enterResourceSpecification(Java8Parser.ResourceSpecificationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#resourceSpecification}.
* @param ctx the parse tree
*/
void exitResourceSpecification(Java8Parser.ResourceSpecificationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#resourceList}.
* @param ctx the parse tree
*/
void enterResourceList(Java8Parser.ResourceListContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#resourceList}.
* @param ctx the parse tree
*/
void exitResourceList(Java8Parser.ResourceListContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#resource}.
* @param ctx the parse tree
*/
void enterResource(Java8Parser.ResourceContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#resource}.
* @param ctx the parse tree
*/
void exitResource(Java8Parser.ResourceContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#primary}.
* @param ctx the parse tree
*/
void enterPrimary(Java8Parser.PrimaryContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#primary}.
* @param ctx the parse tree
*/
void exitPrimary(Java8Parser.PrimaryContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#primaryNoNewArray}.
* @param ctx the parse tree
*/
void enterPrimaryNoNewArray(Java8Parser.PrimaryNoNewArrayContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#primaryNoNewArray}.
* @param ctx the parse tree
*/
void exitPrimaryNoNewArray(Java8Parser.PrimaryNoNewArrayContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#primaryNoNewArray_lf_arrayAccess}.
* @param ctx the parse tree
*/
void enterPrimaryNoNewArray_lf_arrayAccess(Java8Parser.PrimaryNoNewArray_lf_arrayAccessContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#primaryNoNewArray_lf_arrayAccess}.
* @param ctx the parse tree
*/
void exitPrimaryNoNewArray_lf_arrayAccess(Java8Parser.PrimaryNoNewArray_lf_arrayAccessContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#primaryNoNewArray_lfno_arrayAccess}.
* @param ctx the parse tree
*/
void enterPrimaryNoNewArray_lfno_arrayAccess(Java8Parser.PrimaryNoNewArray_lfno_arrayAccessContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#primaryNoNewArray_lfno_arrayAccess}.
* @param ctx the parse tree
*/
void exitPrimaryNoNewArray_lfno_arrayAccess(Java8Parser.PrimaryNoNewArray_lfno_arrayAccessContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#primaryNoNewArray_lf_primary}.
* @param ctx the parse tree
*/
void enterPrimaryNoNewArray_lf_primary(Java8Parser.PrimaryNoNewArray_lf_primaryContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#primaryNoNewArray_lf_primary}.
* @param ctx the parse tree
*/
void exitPrimaryNoNewArray_lf_primary(Java8Parser.PrimaryNoNewArray_lf_primaryContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#primaryNoNewArray_lf_primary_lf_arrayAccess_lf_primary}.
* @param ctx the parse tree
*/
void enterPrimaryNoNewArray_lf_primary_lf_arrayAccess_lf_primary(Java8Parser.PrimaryNoNewArray_lf_primary_lf_arrayAccess_lf_primaryContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#primaryNoNewArray_lf_primary_lf_arrayAccess_lf_primary}.
* @param ctx the parse tree
*/
void exitPrimaryNoNewArray_lf_primary_lf_arrayAccess_lf_primary(Java8Parser.PrimaryNoNewArray_lf_primary_lf_arrayAccess_lf_primaryContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#primaryNoNewArray_lf_primary_lfno_arrayAccess_lf_primary}.
* @param ctx the parse tree
*/
void enterPrimaryNoNewArray_lf_primary_lfno_arrayAccess_lf_primary(Java8Parser.PrimaryNoNewArray_lf_primary_lfno_arrayAccess_lf_primaryContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#primaryNoNewArray_lf_primary_lfno_arrayAccess_lf_primary}.
* @param ctx the parse tree
*/
void exitPrimaryNoNewArray_lf_primary_lfno_arrayAccess_lf_primary(Java8Parser.PrimaryNoNewArray_lf_primary_lfno_arrayAccess_lf_primaryContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#primaryNoNewArray_lfno_primary}.
* @param ctx the parse tree
*/
void enterPrimaryNoNewArray_lfno_primary(Java8Parser.PrimaryNoNewArray_lfno_primaryContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#primaryNoNewArray_lfno_primary}.
* @param ctx the parse tree
*/
void exitPrimaryNoNewArray_lfno_primary(Java8Parser.PrimaryNoNewArray_lfno_primaryContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#primaryNoNewArray_lfno_primary_lf_arrayAccess_lfno_primary}.
* @param ctx the parse tree
*/
void enterPrimaryNoNewArray_lfno_primary_lf_arrayAccess_lfno_primary(Java8Parser.PrimaryNoNewArray_lfno_primary_lf_arrayAccess_lfno_primaryContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#primaryNoNewArray_lfno_primary_lf_arrayAccess_lfno_primary}.
* @param ctx the parse tree
*/
void exitPrimaryNoNewArray_lfno_primary_lf_arrayAccess_lfno_primary(Java8Parser.PrimaryNoNewArray_lfno_primary_lf_arrayAccess_lfno_primaryContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#primaryNoNewArray_lfno_primary_lfno_arrayAccess_lfno_primary}.
* @param ctx the parse tree
*/
void enterPrimaryNoNewArray_lfno_primary_lfno_arrayAccess_lfno_primary(Java8Parser.PrimaryNoNewArray_lfno_primary_lfno_arrayAccess_lfno_primaryContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#primaryNoNewArray_lfno_primary_lfno_arrayAccess_lfno_primary}.
* @param ctx the parse tree
*/
void exitPrimaryNoNewArray_lfno_primary_lfno_arrayAccess_lfno_primary(Java8Parser.PrimaryNoNewArray_lfno_primary_lfno_arrayAccess_lfno_primaryContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#classInstanceCreationExpression}.
* @param ctx the parse tree
*/
void enterClassInstanceCreationExpression(Java8Parser.ClassInstanceCreationExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#classInstanceCreationExpression}.
* @param ctx the parse tree
*/
void exitClassInstanceCreationExpression(Java8Parser.ClassInstanceCreationExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#classInstanceCreationExpression_lf_primary}.
* @param ctx the parse tree
*/
void enterClassInstanceCreationExpression_lf_primary(Java8Parser.ClassInstanceCreationExpression_lf_primaryContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#classInstanceCreationExpression_lf_primary}.
* @param ctx the parse tree
*/
void exitClassInstanceCreationExpression_lf_primary(Java8Parser.ClassInstanceCreationExpression_lf_primaryContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#classInstanceCreationExpression_lfno_primary}.
* @param ctx the parse tree
*/
void enterClassInstanceCreationExpression_lfno_primary(Java8Parser.ClassInstanceCreationExpression_lfno_primaryContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#classInstanceCreationExpression_lfno_primary}.
* @param ctx the parse tree
*/
void exitClassInstanceCreationExpression_lfno_primary(Java8Parser.ClassInstanceCreationExpression_lfno_primaryContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#typeArgumentsOrDiamond}.
* @param ctx the parse tree
*/
void enterTypeArgumentsOrDiamond(Java8Parser.TypeArgumentsOrDiamondContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#typeArgumentsOrDiamond}.
* @param ctx the parse tree
*/
void exitTypeArgumentsOrDiamond(Java8Parser.TypeArgumentsOrDiamondContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#fieldAccess}.
* @param ctx the parse tree
*/
void enterFieldAccess(Java8Parser.FieldAccessContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#fieldAccess}.
* @param ctx the parse tree
*/
void exitFieldAccess(Java8Parser.FieldAccessContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#fieldAccess_lf_primary}.
* @param ctx the parse tree
*/
void enterFieldAccess_lf_primary(Java8Parser.FieldAccess_lf_primaryContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#fieldAccess_lf_primary}.
* @param ctx the parse tree
*/
void exitFieldAccess_lf_primary(Java8Parser.FieldAccess_lf_primaryContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#fieldAccess_lfno_primary}.
* @param ctx the parse tree
*/
void enterFieldAccess_lfno_primary(Java8Parser.FieldAccess_lfno_primaryContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#fieldAccess_lfno_primary}.
* @param ctx the parse tree
*/
void exitFieldAccess_lfno_primary(Java8Parser.FieldAccess_lfno_primaryContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#arrayAccess}.
* @param ctx the parse tree
*/
void enterArrayAccess(Java8Parser.ArrayAccessContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#arrayAccess}.
* @param ctx the parse tree
*/
void exitArrayAccess(Java8Parser.ArrayAccessContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#arrayAccess_lf_primary}.
* @param ctx the parse tree
*/
void enterArrayAccess_lf_primary(Java8Parser.ArrayAccess_lf_primaryContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#arrayAccess_lf_primary}.
* @param ctx the parse tree
*/
void exitArrayAccess_lf_primary(Java8Parser.ArrayAccess_lf_primaryContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#arrayAccess_lfno_primary}.
* @param ctx the parse tree
*/
void enterArrayAccess_lfno_primary(Java8Parser.ArrayAccess_lfno_primaryContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#arrayAccess_lfno_primary}.
* @param ctx the parse tree
*/
void exitArrayAccess_lfno_primary(Java8Parser.ArrayAccess_lfno_primaryContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#methodInvocation}.
* @param ctx the parse tree
*/
void enterMethodInvocation(Java8Parser.MethodInvocationContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#methodInvocation}.
* @param ctx the parse tree
*/
void exitMethodInvocation(Java8Parser.MethodInvocationContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#methodInvocation_lf_primary}.
* @param ctx the parse tree
*/
void enterMethodInvocation_lf_primary(Java8Parser.MethodInvocation_lf_primaryContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#methodInvocation_lf_primary}.
* @param ctx the parse tree
*/
void exitMethodInvocation_lf_primary(Java8Parser.MethodInvocation_lf_primaryContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#methodInvocation_lfno_primary}.
* @param ctx the parse tree
*/
void enterMethodInvocation_lfno_primary(Java8Parser.MethodInvocation_lfno_primaryContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#methodInvocation_lfno_primary}.
* @param ctx the parse tree
*/
void exitMethodInvocation_lfno_primary(Java8Parser.MethodInvocation_lfno_primaryContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#argumentList}.
* @param ctx the parse tree
*/
void enterArgumentList(Java8Parser.ArgumentListContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#argumentList}.
* @param ctx the parse tree
*/
void exitArgumentList(Java8Parser.ArgumentListContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#methodReference}.
* @param ctx the parse tree
*/
void enterMethodReference(Java8Parser.MethodReferenceContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#methodReference}.
* @param ctx the parse tree
*/
void exitMethodReference(Java8Parser.MethodReferenceContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#methodReference_lf_primary}.
* @param ctx the parse tree
*/
void enterMethodReference_lf_primary(Java8Parser.MethodReference_lf_primaryContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#methodReference_lf_primary}.
* @param ctx the parse tree
*/
void exitMethodReference_lf_primary(Java8Parser.MethodReference_lf_primaryContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#methodReference_lfno_primary}.
* @param ctx the parse tree
*/
void enterMethodReference_lfno_primary(Java8Parser.MethodReference_lfno_primaryContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#methodReference_lfno_primary}.
* @param ctx the parse tree
*/
void exitMethodReference_lfno_primary(Java8Parser.MethodReference_lfno_primaryContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#arrayCreationExpression}.
* @param ctx the parse tree
*/
void enterArrayCreationExpression(Java8Parser.ArrayCreationExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#arrayCreationExpression}.
* @param ctx the parse tree
*/
void exitArrayCreationExpression(Java8Parser.ArrayCreationExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#dimExprs}.
* @param ctx the parse tree
*/
void enterDimExprs(Java8Parser.DimExprsContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#dimExprs}.
* @param ctx the parse tree
*/
void exitDimExprs(Java8Parser.DimExprsContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#dimExpr}.
* @param ctx the parse tree
*/
void enterDimExpr(Java8Parser.DimExprContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#dimExpr}.
* @param ctx the parse tree
*/
void exitDimExpr(Java8Parser.DimExprContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#constantExpression}.
* @param ctx the parse tree
*/
void enterConstantExpression(Java8Parser.ConstantExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#constantExpression}.
* @param ctx the parse tree
*/
void exitConstantExpression(Java8Parser.ConstantExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#expression}.
* @param ctx the parse tree
*/
void enterExpression(Java8Parser.ExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#expression}.
* @param ctx the parse tree
*/
void exitExpression(Java8Parser.ExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#lambdaExpression}.
* @param ctx the parse tree
*/
void enterLambdaExpression(Java8Parser.LambdaExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#lambdaExpression}.
* @param ctx the parse tree
*/
void exitLambdaExpression(Java8Parser.LambdaExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#lambdaParameters}.
* @param ctx the parse tree
*/
void enterLambdaParameters(Java8Parser.LambdaParametersContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#lambdaParameters}.
* @param ctx the parse tree
*/
void exitLambdaParameters(Java8Parser.LambdaParametersContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#inferredFormalParameterList}.
* @param ctx the parse tree
*/
void enterInferredFormalParameterList(Java8Parser.InferredFormalParameterListContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#inferredFormalParameterList}.
* @param ctx the parse tree
*/
void exitInferredFormalParameterList(Java8Parser.InferredFormalParameterListContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#lambdaBody}.
* @param ctx the parse tree
*/
void enterLambdaBody(Java8Parser.LambdaBodyContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#lambdaBody}.
* @param ctx the parse tree
*/
void exitLambdaBody(Java8Parser.LambdaBodyContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#assignmentExpression}.
* @param ctx the parse tree
*/
void enterAssignmentExpression(Java8Parser.AssignmentExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#assignmentExpression}.
* @param ctx the parse tree
*/
void exitAssignmentExpression(Java8Parser.AssignmentExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#assignment}.
* @param ctx the parse tree
*/
void enterAssignment(Java8Parser.AssignmentContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#assignment}.
* @param ctx the parse tree
*/
void exitAssignment(Java8Parser.AssignmentContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#leftHandSide}.
* @param ctx the parse tree
*/
void enterLeftHandSide(Java8Parser.LeftHandSideContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#leftHandSide}.
* @param ctx the parse tree
*/
void exitLeftHandSide(Java8Parser.LeftHandSideContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#assignmentOperator}.
* @param ctx the parse tree
*/
void enterAssignmentOperator(Java8Parser.AssignmentOperatorContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#assignmentOperator}.
* @param ctx the parse tree
*/
void exitAssignmentOperator(Java8Parser.AssignmentOperatorContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#conditionalExpression}.
* @param ctx the parse tree
*/
void enterConditionalExpression(Java8Parser.ConditionalExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#conditionalExpression}.
* @param ctx the parse tree
*/
void exitConditionalExpression(Java8Parser.ConditionalExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#conditionalOrExpression}.
* @param ctx the parse tree
*/
void enterConditionalOrExpression(Java8Parser.ConditionalOrExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#conditionalOrExpression}.
* @param ctx the parse tree
*/
void exitConditionalOrExpression(Java8Parser.ConditionalOrExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#conditionalAndExpression}.
* @param ctx the parse tree
*/
void enterConditionalAndExpression(Java8Parser.ConditionalAndExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#conditionalAndExpression}.
* @param ctx the parse tree
*/
void exitConditionalAndExpression(Java8Parser.ConditionalAndExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#inclusiveOrExpression}.
* @param ctx the parse tree
*/
void enterInclusiveOrExpression(Java8Parser.InclusiveOrExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#inclusiveOrExpression}.
* @param ctx the parse tree
*/
void exitInclusiveOrExpression(Java8Parser.InclusiveOrExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#exclusiveOrExpression}.
* @param ctx the parse tree
*/
void enterExclusiveOrExpression(Java8Parser.ExclusiveOrExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#exclusiveOrExpression}.
* @param ctx the parse tree
*/
void exitExclusiveOrExpression(Java8Parser.ExclusiveOrExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#andExpression}.
* @param ctx the parse tree
*/
void enterAndExpression(Java8Parser.AndExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#andExpression}.
* @param ctx the parse tree
*/
void exitAndExpression(Java8Parser.AndExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#equalityExpression}.
* @param ctx the parse tree
*/
void enterEqualityExpression(Java8Parser.EqualityExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#equalityExpression}.
* @param ctx the parse tree
*/
void exitEqualityExpression(Java8Parser.EqualityExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#relationalExpression}.
* @param ctx the parse tree
*/
void enterRelationalExpression(Java8Parser.RelationalExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#relationalExpression}.
* @param ctx the parse tree
*/
void exitRelationalExpression(Java8Parser.RelationalExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#shiftExpression}.
* @param ctx the parse tree
*/
void enterShiftExpression(Java8Parser.ShiftExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#shiftExpression}.
* @param ctx the parse tree
*/
void exitShiftExpression(Java8Parser.ShiftExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#additiveExpression}.
* @param ctx the parse tree
*/
void enterAdditiveExpression(Java8Parser.AdditiveExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#additiveExpression}.
* @param ctx the parse tree
*/
void exitAdditiveExpression(Java8Parser.AdditiveExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#multiplicativeExpression}.
* @param ctx the parse tree
*/
void enterMultiplicativeExpression(Java8Parser.MultiplicativeExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#multiplicativeExpression}.
* @param ctx the parse tree
*/
void exitMultiplicativeExpression(Java8Parser.MultiplicativeExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#unaryExpression}.
* @param ctx the parse tree
*/
void enterUnaryExpression(Java8Parser.UnaryExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#unaryExpression}.
* @param ctx the parse tree
*/
void exitUnaryExpression(Java8Parser.UnaryExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#preIncrementExpression}.
* @param ctx the parse tree
*/
void enterPreIncrementExpression(Java8Parser.PreIncrementExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#preIncrementExpression}.
* @param ctx the parse tree
*/
void exitPreIncrementExpression(Java8Parser.PreIncrementExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#preDecrementExpression}.
* @param ctx the parse tree
*/
void enterPreDecrementExpression(Java8Parser.PreDecrementExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#preDecrementExpression}.
* @param ctx the parse tree
*/
void exitPreDecrementExpression(Java8Parser.PreDecrementExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#unaryExpressionNotPlusMinus}.
* @param ctx the parse tree
*/
void enterUnaryExpressionNotPlusMinus(Java8Parser.UnaryExpressionNotPlusMinusContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#unaryExpressionNotPlusMinus}.
* @param ctx the parse tree
*/
void exitUnaryExpressionNotPlusMinus(Java8Parser.UnaryExpressionNotPlusMinusContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#postfixExpression}.
* @param ctx the parse tree
*/
void enterPostfixExpression(Java8Parser.PostfixExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#postfixExpression}.
* @param ctx the parse tree
*/
void exitPostfixExpression(Java8Parser.PostfixExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#postIncrementExpression}.
* @param ctx the parse tree
*/
void enterPostIncrementExpression(Java8Parser.PostIncrementExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#postIncrementExpression}.
* @param ctx the parse tree
*/
void exitPostIncrementExpression(Java8Parser.PostIncrementExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#postIncrementExpression_lf_postfixExpression}.
* @param ctx the parse tree
*/
void enterPostIncrementExpression_lf_postfixExpression(Java8Parser.PostIncrementExpression_lf_postfixExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#postIncrementExpression_lf_postfixExpression}.
* @param ctx the parse tree
*/
void exitPostIncrementExpression_lf_postfixExpression(Java8Parser.PostIncrementExpression_lf_postfixExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#postDecrementExpression}.
* @param ctx the parse tree
*/
void enterPostDecrementExpression(Java8Parser.PostDecrementExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#postDecrementExpression}.
* @param ctx the parse tree
*/
void exitPostDecrementExpression(Java8Parser.PostDecrementExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#postDecrementExpression_lf_postfixExpression}.
* @param ctx the parse tree
*/
void enterPostDecrementExpression_lf_postfixExpression(Java8Parser.PostDecrementExpression_lf_postfixExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#postDecrementExpression_lf_postfixExpression}.
* @param ctx the parse tree
*/
void exitPostDecrementExpression_lf_postfixExpression(Java8Parser.PostDecrementExpression_lf_postfixExpressionContext ctx);
/**
* Enter a parse tree produced by {@link Java8Parser#castExpression}.
* @param ctx the parse tree
*/
void enterCastExpression(Java8Parser.CastExpressionContext ctx);
/**
* Exit a parse tree produced by {@link Java8Parser#castExpression}.
* @param ctx the parse tree
*/
void exitCastExpression(Java8Parser.CastExpressionContext ctx);
} | [
"li_chan_an@126.com"
] | li_chan_an@126.com |
ea6a604c902dda4273cf0a3d094e6e4ae804bb69 | 8d2c7cfc1639afda5be1992a14c653e1d28dfb11 | /tms/src/main/java/com/usc/tms/web/UseinfoController.java | c2e7b69745f05175098d0e5ef507e78070d3dee0 | [] | no_license | lzh1043060917/JavaX | 9c42fe36f9ecebbe2c79833e6fa5426018db82f3 | b263de7f5a7a64afbb77879ce330e73dbe1c81b6 | refs/heads/master | 2021-05-17T08:43:45.514851 | 2020-03-27T17:54:07 | 2020-03-27T17:54:07 | 250,713,276 | 1 | 0 | null | 2020-03-28T04:22:17 | 2020-03-28T04:22:16 | null | UTF-8 | Java | false | false | 3,492 | java | package com.usc.tms.web;
import com.sun.org.apache.regexp.internal.RE;
import com.usc.tms.pojo.Fixture;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.usc.tms.pojo.Useinfo;
import com.usc.tms.pojo.User;
import com.usc.tms.service.UseinfoService;
import com.usc.tms.util.Result;
import com.usc.tms.util.Page4Navigator;
import org.springframework.web.util.HtmlUtils;
import javax.servlet.http.HttpSession;
import com.usc.tms.service.FixtureService;
import java.util.Date;
import java.util.List;
@RestController
public class UseinfoController {
@Autowired UseinfoService useinfoService;
@Autowired FixtureService fixtureService;
// 分页查询数据
@GetMapping("/useinfos")
public Page4Navigator<Useinfo> list(@RequestParam(value = "start", defaultValue = "0") int start,@RequestParam(value = "size", defaultValue = "5") int size) throws Exception {
start = start<0?0:start;
Page4Navigator<Useinfo> page = useinfoService.list(start,size,5);
return page;
}
// 增加数据
@PostMapping("/useinfos")
public Object add(@RequestBody Useinfo bean, HttpSession session) throws Exception{
// 判断工夹具是否存在
Fixture x1=fixtureService.getByid(bean.getFid());
if(null==x1){
String message ="不存在";
return Result.fail(message);
}
// 判断是否已借出
List<Useinfo> useinfos=useinfoService.getAllbyFid(bean.getFid());
for (Useinfo useinfo:useinfos){
if (useinfo.getIndate()==null)
{
String message ="已借出";
return Result.fail(message);
}
}
// 增加相应的登记人
User user = (User)session.getAttribute("user");
String x =user.getName();
bean.setWritename(x);
// 增加相应的存放位置
bean.setLocation(fixtureService.get(bean.getFid()).getLocation());
// 设置出库时间
bean.setOutdate(new Date());
// 工具夹使用次数+1
Fixture fixture=fixtureService.get(bean.getFid());
int num = Integer.parseInt(fixture.getUsedCount());
num=num+1;
fixture.setUsedCount(String.valueOf(num));
fixtureService.update(fixture);
useinfoService.add(bean);
return Result.success();
}
//删除数据
@DeleteMapping("/useinfos/{id}")
public void delete(@PathVariable("id") int id)throws Exception {
useinfoService.delete(id);
}
//根据id获取数据
@GetMapping("/useinfos/{id}")
public Useinfo get(@PathVariable("id") int id) throws Exception {
Useinfo bean=useinfoService.get(id);
return bean;
}
//修改数据
@PutMapping("/useinfos")
public Object update(@RequestBody Useinfo bean) throws Exception {
if(bean.getIndate()==null) {
bean.setIndate(new Date());
useinfoService.update(bean);
}
else
{
useinfoService.update(bean);
}
return bean;
}
@GetMapping("/searchs/{keyword}")
public Object search(@PathVariable("keyword") String id) throws Exception{
List<Useinfo> useinfos=useinfoService.getAllbyFid(id);
if (useinfos.isEmpty()){
return Result.fail("不存在");
}
else
{
return useinfos;
}
}
} | [
"1623122700@qq.com"
] | 1623122700@qq.com |
53aa30ee49b0af4d19251885dc4b3aee941b4787 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /OnlineDB/SiStripConfigDb/java/DetIDGenerator/src/db/ClassNotSupportedException.java | c545aebee781e482cd6c6fdcc68cfa31e2c0b456 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Java | false | false | 614 | java | package db;
/**
* <p>Sent when a class is used where it should not ...</p>
* @author G. Baulieu
* @version 1.0
**/
/*
Revision 1.2 2006/06/07 12:40:42 baulieu
Add a - verbose option
Add a serialVersionUID to the ClassNotSupportedException class to avoid a warning
Revision 1.1 2006/02/02 17:17:00 baulieu
Some modifications for JDK 1.5
Call a PL/SQL function to export the parameters
*/
public class ClassNotSupportedException extends RuntimeException {
private static final long serialVersionUID = 1L;
public ClassNotSupportedException(String message) {
super(message);
}
}
| [
"sha1-8f60a7380593436f6440c878e3fd53153fef0d93@cern.ch"
] | sha1-8f60a7380593436f6440c878e3fd53153fef0d93@cern.ch |
55ee48fa21d6785d553c5ead52ddab9be0a4fd54 | d71e879b3517cf4fccde29f7bf82cff69856cfcd | /ExtractedJars/iRobot_com.irobot.home/javafiles/android/support/v4/view/AbsSavedState.java | 3d177431527433a52e2a1298c2be7399f842f521 | [
"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 | 5,913 | 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.v4.view;
import android.os.Parcel;
import android.os.Parcelable;
public abstract class AbsSavedState
implements Parcelable
{
private AbsSavedState()
{
// 0 0:aload_0
// 1 1:invokespecial #29 <Method void Object()>
a = null;
// 2 4:aload_0
// 3 5:aconst_null
// 4 6:putfield #31 <Field Parcelable a>
// 5 9:return
}
protected AbsSavedState(Parcel parcel, ClassLoader classloader)
{
// 0 0:aload_0
// 1 1:invokespecial #29 <Method void Object()>
parcel = ((Parcel) (parcel.readParcelable(classloader)));
// 2 4:aload_1
// 3 5:aload_2
// 4 6:invokevirtual #38 <Method Parcelable Parcel.readParcelable(ClassLoader)>
// 5 9:astore_1
if(parcel == null)
//* 6 10:aload_1
//* 7 11:ifnull 17
//* 8 14:goto 21
parcel = ((Parcel) (d));
// 9 17:getstatic #24 <Field AbsSavedState d>
// 10 20:astore_1
a = ((Parcelable) (parcel));
// 11 21:aload_0
// 12 22:aload_1
// 13 23:putfield #31 <Field Parcelable a>
// 14 26:return
}
protected AbsSavedState(Parcelable parcelable)
{
// 0 0:aload_0
// 1 1:invokespecial #29 <Method void Object()>
if(parcelable == null)
//* 2 4:aload_1
//* 3 5:ifnonnull 18
throw new IllegalArgumentException("superState must not be null");
// 4 8:new #41 <Class IllegalArgumentException>
// 5 11:dup
// 6 12:ldc1 #43 <String "superState must not be null">
// 7 14:invokespecial #46 <Method void IllegalArgumentException(String)>
// 8 17:athrow
if(parcelable == d)
//* 9 18:aload_1
//* 10 19:getstatic #24 <Field AbsSavedState d>
//* 11 22:if_acmpeq 28
//* 12 25:goto 30
parcelable = null;
// 13 28:aconst_null
// 14 29:astore_1
a = parcelable;
// 15 30:aload_0
// 16 31:aload_1
// 17 32:putfield #31 <Field Parcelable a>
// 18 35:return
}
public final Parcelable a()
{
return a;
// 0 0:aload_0
// 1 1:getfield #31 <Field Parcelable a>
// 2 4:areturn
}
public int describeContents()
{
return 0;
// 0 0:iconst_0
// 1 1:ireturn
}
public void writeToParcel(Parcel parcel, int i)
{
parcel.writeParcelable(a, i);
// 0 0:aload_1
// 1 1:aload_0
// 2 2:getfield #31 <Field Parcelable a>
// 3 5:iload_2
// 4 6:invokevirtual #57 <Method void Parcel.writeParcelable(Parcelable, int)>
// 5 9:return
}
public static final android.os.Parcelable.Creator CREATOR = new android.os.Parcelable.ClassLoaderCreator() {
public AbsSavedState a(Parcel parcel)
{
return a(parcel, ((ClassLoader) (null)));
// 0 0:aload_0
// 1 1:aload_1
// 2 2:aconst_null
// 3 3:invokevirtual #19 <Method AbsSavedState a(Parcel, ClassLoader)>
// 4 6:areturn
}
public AbsSavedState a(Parcel parcel, ClassLoader classloader)
{
if(parcel.readParcelable(classloader) != null)
//* 0 0:aload_1
//* 1 1:aload_2
//* 2 2:invokevirtual #25 <Method Parcelable Parcel.readParcelable(ClassLoader)>
//* 3 5:ifnull 18
throw new IllegalStateException("superState must be null");
// 4 8:new #27 <Class IllegalStateException>
// 5 11:dup
// 6 12:ldc1 #29 <String "superState must be null">
// 7 14:invokespecial #32 <Method void IllegalStateException(String)>
// 8 17:athrow
else
return AbsSavedState.d;
// 9 18:getstatic #36 <Field AbsSavedState AbsSavedState.d>
// 10 21:areturn
}
public AbsSavedState[] a(int i)
{
return new AbsSavedState[i];
// 0 0:iload_1
// 1 1:anewarray AbsSavedState[]
// 2 4:areturn
}
public Object createFromParcel(Parcel parcel)
{
return ((Object) (a(parcel)));
// 0 0:aload_0
// 1 1:aload_1
// 2 2:invokevirtual #41 <Method AbsSavedState a(Parcel)>
// 3 5:areturn
}
public Object createFromParcel(Parcel parcel, ClassLoader classloader)
{
return ((Object) (a(parcel, classloader)));
// 0 0:aload_0
// 1 1:aload_1
// 2 2:aload_2
// 3 3:invokevirtual #19 <Method AbsSavedState a(Parcel, ClassLoader)>
// 4 6:areturn
}
public Object[] newArray(int i)
{
return ((Object []) (a(i)));
// 0 0:aload_0
// 1 1:iload_1
// 2 2:invokevirtual #46 <Method AbsSavedState[] a(int)>
// 3 5:areturn
}
}
;
public static final AbsSavedState d = new AbsSavedState() {
}
;
private final Parcelable a;
static
{
// 0 0:new #8 <Class AbsSavedState$1>
// 1 3:dup
// 2 4:invokespecial #22 <Method void AbsSavedState$1()>
// 3 7:putstatic #24 <Field AbsSavedState d>
// 4 10:new #10 <Class AbsSavedState$2>
// 5 13:dup
// 6 14:invokespecial #25 <Method void AbsSavedState$2()>
// 7 17:putstatic #27 <Field android.os.Parcelable$Creator CREATOR>
//* 8 20:return
}
}
| [
"silenta237@gmail.com"
] | silenta237@gmail.com |
d95e875f45e8172184dbf9d6869a20e8f391f516 | c4dfb0137914f92dd785edd0fc7d8850c3df2374 | /forge/src/main/java/com/jadarstudios/rankcapes/forge/cape/StaticCape.java | 73af8c6c0febf342c48901735888c42256a0a0a4 | [
"MIT"
] | permissive | PrestigePvP/RankCapes | c2c25723adcfce0e565ee8d85c0b49bcdaa9443f | e5a06add9afaa98fcd5be4c0e333c114d3f42a04 | refs/heads/master | 2021-04-21T06:25:09.731105 | 2014-03-14T04:22:58 | 2014-03-14T04:22:58 | 249,756,823 | 1 | 0 | MIT | 2020-03-24T16:17:06 | 2020-03-24T16:17:06 | null | UTF-8 | Java | false | false | 1,920 | java | /**
* RankCapes Forge Mod
*
* Copyright (c) 2013 Jacob Rhoda.
* Released under the MIT license
* http://github.com/jadar/RankCapes/blob/master/LICENSE
*/
package com.jadarstudios.rankcapes.forge.cape;
import net.minecraft.client.entity.AbstractClientPlayer;
import net.minecraft.client.renderer.ThreadDownloadImageData;
import net.minecraft.client.renderer.texture.TextureUtil;
import java.awt.image.BufferedImage;
/**
* This class is a static cape. It holds the texture and loads the texture to the GPU.
*/
public class StaticCape extends AbstractCape
{
protected BufferedImage capeImage;
protected int[] texture;
protected String name;
public StaticCape(String name, BufferedImage capeImage)
{
this.capeImage = new HDImageBuffer().parseUserSkin(capeImage);
this.name = name;
}
@Override
public BufferedImage getCapeTexture()
{
return this.capeImage;
}
@Override
public void loadTexture(AbstractClientPlayer player)
{
if (this.texture == null)
{
this.texture = readImageData(capeImage);
}
ThreadDownloadImageData data = player.getTextureCape();
data.setBufferedImage(this.capeImage);
TextureUtil.uploadTexture(data.getGlTextureId(), this.texture, capeImage.getWidth(), capeImage.getHeight());
}
@Override
public String getName()
{
return this.name;
}
public StaticCape setName(String name)
{
this.name = name;
return this;
}
private static int[] readImageData(BufferedImage bufferedImage)
{
int width = bufferedImage.getWidth();
int height = bufferedImage.getHeight();
int[] data = new int[width * height];
bufferedImage.getRGB(0, 0, width, height, data, 0, width);
return data;
}
}
| [
"jake@jadarstudios.com"
] | jake@jadarstudios.com |
7cef97ff670fbb2509d25729c8c3f0ee87073eb2 | b79ab2aed0d4dc54d71eb06a4720e0a1331c7aa7 | /src/test/java/br/com/zupedu/olucas/proposta/PropostaApplicationTests.java | c882916d30645875c966928a62d36a605fb6a7df | [
"Apache-2.0"
] | permissive | olucasokarin/orange-talents-05-template-proposta | 7c5f60d0c9198bfbfdf1dcb92d2629848026c9c0 | a29777a64a1ecd4fec18ac621ccff615e3652d79 | refs/heads/main | 2023-06-02T13:49:27.952557 | 2021-06-23T21:58:17 | 2021-06-23T21:58:17 | 375,649,728 | 0 | 0 | Apache-2.0 | 2021-06-10T09:54:32 | 2021-06-10T09:54:31 | null | UTF-8 | Java | false | false | 223 | java | package br.com.zupedu.olucas.proposta;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class PropostaApplicationTests {
@Test
void contextLoads() {
}
}
| [
"olucas014@hotmail.com"
] | olucas014@hotmail.com |
4cd585e5335c207751cabb5381a6851dc5a1b274 | 8cfdb7713cc9922d2e9def41285ebf4fcfd6fe42 | /src/main/java/pl/camp/it/Main.java | e13763ad3b4d7f9239611a619c7b84dc74dda4c7 | [] | no_license | bmatteo/IT-CAMP1-2020.02.16-JDBC | 8ab55f6cc4586d3b5e7f427d9d54624059f43811 | 87b577fa438d4b1032ad35e870c0bde18255661e | refs/heads/master | 2022-07-06T12:19:09.066207 | 2020-02-16T15:27:37 | 2020-02-16T15:27:37 | 240,866,468 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 545 | java | package pl.camp.it;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) {
DB.connect();
Person person = new Person();
person.setName("Mateusz");
person.setSurname("Kowalski");
person.setAge(30);
DB.persistPerson2(person);
Person p2 = DB.getPersonById(30);
System.out.println(p2);
List<Person> mojaLista = DB.getAllPersons();
System.out.println(mojaLista);
DB.closeConnection();
}
}
| [
"bmatteo@interia.pl"
] | bmatteo@interia.pl |
07dcb27a5a06fd6ba7325aafba334a6e874dcb32 | abd1eaca5bb057def725a60935e43d8a60289ee7 | /drishti-mother-child/src/test/java/org/ei/drishti/service/formSubmission/handler/PNCVisitHandlerTest.java | e88db3cae6155a9ae80630c533a163d99a0a676d | [
"Apache-2.0"
] | permissive | Rani-Biswas/opensrp-server | b99235ebc166a7f528f9860e6733d419b4e8140c | ec4706df631bc68fadc9725084c3a4170d5c4ad1 | refs/heads/doctor-module | 2020-12-26T02:20:57.555035 | 2016-04-28T12:56:42 | 2016-04-28T12:56:42 | 47,322,356 | 2 | 0 | null | 2016-01-20T06:50:40 | 2015-12-03T09:40:05 | Java | UTF-8 | Java | false | false | 1,073 | java | package org.ei.drishti.service.formSubmission.handler;
import org.ei.drishti.form.domain.FormSubmission;
import org.ei.drishti.service.ChildService;
import org.ei.drishti.service.PNCService;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import static org.mockito.Mockito.verify;
import static org.mockito.MockitoAnnotations.initMocks;
public class PNCVisitHandlerTest {
@Mock
private PNCService pncService;
@Mock
private ChildService childService;
private PNCVisitHandler handler;
@Before
public void setUp() throws Exception {
initMocks(this);
handler = new PNCVisitHandler(pncService, childService);
}
@Test
public void shouldDelegateFormSubmissionHandleToPNCService() throws Exception {
FormSubmission submission = new FormSubmission("anm id 1", "instance id 1", "pnc_visit", "entity id 1", 0L, "1", null, 0L);
handler.handle(submission);
verify(pncService).pncVisitHappened(submission);
verify(childService).pncVisitHappened(submission);
}
}
| [
"sm.sowmya14@gmail.com"
] | sm.sowmya14@gmail.com |
48d893929a012868b760c3ab6f6168d99b792585 | 5e5874e2ed9f99b4cf9711f854fe8cfffde52973 | /src/main/java/com/reagan/wxpt/pojo/business/BusinessGoods.java | ce1b31971762e3ff5567468a42b1f40cd38828d1 | [] | no_license | reaganjava/wxpt | 2bbb16ac601556158bcf13c3330640de934e6148 | 8411c023409cb2820da78fb201a4aa31fdb6f630 | refs/heads/master | 2016-09-06T01:34:02.308075 | 2014-05-10T14:38:47 | 2014-05-10T14:38:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,129 | java | package com.reagan.wxpt.pojo.business;
// Generated 2014-3-14 10:25:00 by Hibernate Tools 3.4.0.CR1
import java.math.BigDecimal;
/**
* BusinessGoods generated by hbm2java
*/
public class BusinessGoods implements java.io.Serializable {
private static final long serialVersionUID = -8232662800623624371L;
private Integer goid;
private Integer companyId;
private Integer shopId;
private int shid;
private String name;
private BigDecimal price;
private String description;
private int quantity;
private int payQuantity;
private int evaluate;
private int payType;
private int status;
public Integer getGoid() {
return this.goid;
}
public void setGoid(Integer goid) {
this.goid = goid;
}
public int getShid() {
return this.shid;
}
public void setShid(int shid) {
this.shid = shid;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public BigDecimal getPrice() {
return this.price;
}
public void setPrice(BigDecimal price) {
this.price = price;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public int getQuantity() {
return this.quantity;
}
public void setQuantity(int quantity) {
this.quantity = quantity;
}
public int getPayQuantity() {
return this.payQuantity;
}
public void setPayQuantity(int payQuantity) {
this.payQuantity = payQuantity;
}
public int getEvaluate() {
return this.evaluate;
}
public void setEvaluate(int evaluate) {
this.evaluate = evaluate;
}
public int getPayType() {
return this.payType;
}
public void setPayType(int payType) {
this.payType = payType;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public Integer getCompanyId() {
return companyId;
}
public void setCompanyId(Integer companyId) {
this.companyId = companyId;
}
public Integer getShopId() {
return shopId;
}
public void setShopId(Integer shopId) {
this.shopId = shopId;
}
}
| [
"reaganjava@gmail.com"
] | reaganjava@gmail.com |
99fedb5c2d3b9c2de3617066d21fc972f4144634 | 71f09b51a173f338c620bc538b37d3bf739ca160 | /src/entity/Spawner.java | 249bbafa8e9c628ed563cfae400008a434da374e | [] | no_license | SrVaderXD/Game8 | a4be6b04c661096144b7d910e99290b222a0a302 | 8909b7e72e82d6bd0fac07b9238eac5162066bdd | refs/heads/master | 2023-06-18T08:13:11.393783 | 2021-07-21T20:21:23 | 2021-07-21T20:21:23 | 377,673,197 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 390 | java | package entity;
import java.util.Random;
import main.Game;
public class Spawner {
private Random random;
private int curTime = 0, spawnTime = 60;
public Spawner() {
random = new Random();
}
public void tick() {
curTime++;
if (curTime == spawnTime) {
curTime = 0;
Game.crabs.add(new Crab(random.nextInt(Game.WIDTH - 40), random.nextInt(Game.HEIGHT - 40)));
}
}
}
| [
"henriquelfaria08@gmail.com"
] | henriquelfaria08@gmail.com |
6b6eb480121756f42a93be9891beef24fbd1ab28 | 877020e445d72aa8aa4834842889b68b94c9d154 | /Lyrically/lyrical/src/main/java/lyrically/photovideomaker/particl/ly/musicallybeat/MyFirebaseMessagingService.java | 923b346b3a75a3d04dbc94618c3bf6e5b6f2b634 | [] | no_license | UnityAndroid/AndroidSamples | ff74989a20ceca66a7d511706f303d9a801e405c | deac9f593d3666060e7e4cbbf65c5a0717b17b80 | refs/heads/master | 2023-03-28T04:27:23.465052 | 2021-03-20T06:03:49 | 2021-03-20T06:03:49 | 349,632,852 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 13,271 | java | package lyrically.photovideomaker.particl.ly.musicallybeat;
import android.app.ActivityManager;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Typeface;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Build;
import android.text.Html;
import android.util.Log;
import android.widget.RemoteViews;
import androidx.core.app.NotificationCompat;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
import io.github.inflationx.viewpump.ViewPumpContextWrapper;
import lyrically.photovideomaker.particl.ly.musicallybeat.R;
import lyrically.photovideomaker.particl.ly.musicallybeat.activity.SplashActivity;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.List;
public class MyFirebaseMessagingService extends FirebaseMessagingService {
private static final String TAG = MyFirebaseMessagingService.class.getName();
public static String CHANNEL_ID = "royalspin";
public static String id = "hi";
public static boolean inforeground = false;
String title = "", text = "", url = "", icon = "";
int nottype = 0;
boolean checktitle, checktext, checkurl, checkicon;
Context context;
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
try {
context = this;
Log.e("task", "notifed");
checktitle = remoteMessage.getData().containsKey("title");
checktext = remoteMessage.getData().containsKey("text");
checkurl = remoteMessage.getData().containsKey("url");
checkicon = remoteMessage.getData().containsKey("icon");
if (checktitle)
title = remoteMessage.getData().get("title");
if (checktext)
text = remoteMessage.getData().get("text");
if (checkurl)
url = remoteMessage.getData().get("url");
if (checkicon)
icon = remoteMessage.getData().get("icon");
PendingIntent contentIntent;
if (isAppIsInBackground(context)) {
Intent intent;
intent = new Intent(this, UnityPlayerActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
contentIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_ONE_SHOT);
} else {
contentIntent = PendingIntent.getActivity(
getApplicationContext(),
0,
new Intent(), // add this
PendingIntent.FLAG_ONE_SHOT);
}
if (checktitle && checktext && !checkurl && !checkicon) {
Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
NotificationCompat.Builder builder = new NotificationCompat.Builder(this, CHANNEL_ID).setSmallIcon(R.drawable.logo).setSound(defaultSoundUri).setContentTitle(title)
.setContentText(text).setAutoCancel(true).setContentIntent(contentIntent);
NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
NotificationChannel channel = new NotificationChannel(CHANNEL_ID, title, NotificationManager.IMPORTANCE_DEFAULT);
manager.createNotificationChannel(channel);
}
manager.notify(0, builder.build());
} else if (checktitle && checktext && checkicon) {
startnotify();
}
} catch (Exception e) {
Log.e(TAG, e.toString());
}
}
public void startnotify() {
new sendNotification().execute();
}
@Override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
public class sendNotification extends AsyncTask<String, Void, Bitmap> {
public sendNotification() {
super();
}
@Override
protected void onPreExecute() {
super.onPreExecute();
Log.e("task", "image download starts");
}
@Override
protected Bitmap doInBackground(String... params) {
InputStream in;
try {
Bitmap bitmap;
URL urll = new URL(icon);
HttpURLConnection connection = (HttpURLConnection) urll.openConnection();
connection.setDoInput(true);
// connection.setReadTimeout(60000);
// connection.setConnectTimeout(60000);
connection.connect();
InputStream input = connection.getInputStream();
bitmap = BitmapFactory.decodeStream(input);
return bitmap;
} catch (MalformedURLException e) {
e.printStackTrace();
Log.e(TAG, "bitmap error" + e.toString());
} catch (IOException e) {
e.printStackTrace();
Log.e(TAG, "bitmap error" + e.toString());
}
return null;
}
@Override
protected void onPostExecute(Bitmap result) {
super.onPostExecute(result);
if (result != null) {
Log.e("task", "image download completes");
Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
NotificationCompat.Builder builder;
PendingIntent contentIntent;
Intent rIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
if (checktitle && checktext && checkicon) {
if (isAppIsInBackground(context)) {
Intent intent;
intent = new Intent(context, lyrically.photovideomaker.particl.ly.musicallybeat.UnityPlayerActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
contentIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_ONE_SHOT);
} else {
contentIntent = PendingIntent.getActivity(
getApplicationContext(),
0,
new Intent(), // add this
PendingIntent.FLAG_ONE_SHOT);
}
RemoteViews contentView = new RemoteViews(getPackageName(), R.layout.app_promotion_notify);
contentView.setImageViewBitmap(R.id.image, result);
/* contentView.setTextViewText(R.id.title, title);
contentView.setTextViewText(R.id.text, text);
*/
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
contentView.setTextViewText(R.id.title, Html.fromHtml(title, Html.FROM_HTML_MODE_LEGACY));
} else {
contentView.setTextViewText(R.id.title, Html.fromHtml(title));
}
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
contentView.setTextViewText(R.id.text, Html.fromHtml(text, Html.FROM_HTML_MODE_LEGACY));
} else {
contentView.setTextViewText(R.id.text, Html.fromHtml(text));
}
builder = new NotificationCompat.Builder(context, CHANNEL_ID).setSmallIcon(R.drawable.logo).setContentTitle(title)
.setAutoCancel(true).setContent(contentView).setContentIntent(contentIntent);
NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
NotificationChannel channel = new NotificationChannel(CHANNEL_ID, title, NotificationManager.IMPORTANCE_DEFAULT);
manager.createNotificationChannel(channel);
}
manager.notify(1, builder.build());
} else if (checktitle && !checktext && checkurl && checkicon) {
contentIntent = PendingIntent.getActivity(
getApplicationContext(),
0,
rIntent, // add this
PendingIntent.FLAG_ONE_SHOT);
builder = new NotificationCompat.Builder(context, CHANNEL_ID).setSmallIcon(R.drawable.logo).setContentTitle(title)
.setAutoCancel(true).setStyle(new NotificationCompat.BigPictureStyle().bigPicture(result)).setContentIntent(contentIntent);
NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
NotificationChannel channel = new NotificationChannel(CHANNEL_ID, title, NotificationManager.IMPORTANCE_DEFAULT);
manager.createNotificationChannel(channel);
}
manager.notify(1, builder.build());
} else if (checktitle && !checktext && !checkurl && checkicon) {
if (isAppIsInBackground(context)) {
Intent intent;
intent = new Intent(context, UnityPlayerActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
contentIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_ONE_SHOT);
} else {
contentIntent = PendingIntent.getActivity(
getApplicationContext(),
0,
new Intent(), // add this
PendingIntent.FLAG_ONE_SHOT);
}
builder = new NotificationCompat.Builder(context, CHANNEL_ID).setSmallIcon(R.drawable.logo).setContentTitle(title)
.setAutoCancel(true).setStyle(new NotificationCompat.BigPictureStyle().bigPicture(result)).setContentIntent(contentIntent);
NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
NotificationChannel channel = new NotificationChannel(CHANNEL_ID, title, NotificationManager.IMPORTANCE_DEFAULT);
manager.createNotificationChannel(channel);
}
manager.notify(1, builder.build());
}
} else {
Log.e(TAG, "Bitmap Null");
}
}
}
private boolean isAppIsInBackground(Context context) {
boolean isInBackground = true;
ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
List<ActivityManager.RunningAppProcessInfo> runningProcesses = am.getRunningAppProcesses();
for (ActivityManager.RunningAppProcessInfo processInfo : runningProcesses) {
if (processInfo.importance == ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND) {
for (String activeProcess : processInfo.pkgList) {
if (activeProcess.equals(context.getPackageName())) {
isInBackground = false;
}
}
}
}
return isInBackground;
}
class ForegroundCheckTask extends AsyncTask<Context, Void, Boolean> {
@Override
protected Boolean doInBackground(Context... params) {
final Context context = params[0].getApplicationContext();
return isAppOnForeground(context);
}
private boolean isAppOnForeground(Context context) {
ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
List<ActivityManager.RunningAppProcessInfo> appProcesses = activityManager.getRunningAppProcesses();
if (appProcesses == null) {
return false;
}
final String packageName = context.getPackageName();
for (ActivityManager.RunningAppProcessInfo appProcess : appProcesses) {
if (appProcess.importance == ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND && appProcess.processName.equals(packageName)) {
return true;
}
}
return false;
}
}
}
| [
"43367236+jitendra0402@users.noreply.github.com"
] | 43367236+jitendra0402@users.noreply.github.com |
4e9902a186916f0127ec7bc706810bf0c20f9acc | 7596b13ad3a84feb67f05aeda486e8b9fc93f65f | /getAndroidAPI/src/java/security/interfaces/DSAKey.java | c79bcde863dd0afbd2ae640b04657df7a7d27425 | [] | no_license | WinterPan2017/Android-Malware-Detection | 7aeacfa03ca1431e7f3ba3ec8902cfe2498fd3de | ff38c91dc6985112e958291867d87bfb41c32a0f | refs/heads/main | 2023-02-08T00:02:28.775711 | 2020-12-20T06:58:01 | 2020-12-20T06:58:01 | 303,900,592 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 378 | java | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: DSAKey.java
package java.security.interfaces;
// Referenced classes of package java.security.interfaces:
// DSAParams
public interface DSAKey
{
public abstract DSAParams getParams();
}
| [
"panwentao1301@163.com"
] | panwentao1301@163.com |
ee14a14b1304b88269413d4b2481758d844397be | 379bc4aa204edf7733ed59fd4e9bd4253b029731 | /app/src/main/java/com/fitpal/fitpal/model/Users.java | 8b023078a885424ade876c31339975272b4347e6 | [] | no_license | himageorge14/FitPal | 22b7658e3228c2f10381bebacc07197017589c7c | 7ac630c926f0a124bc8c9331527d1408c56a2160 | refs/heads/master | 2021-07-18T03:59:57.942246 | 2020-10-02T13:09:41 | 2020-10-02T13:09:41 | 216,623,246 | 0 | 3 | null | 2019-11-03T18:11:25 | 2019-10-21T17:13:31 | Java | UTF-8 | Java | false | false | 616 | java | package com.fitpal.fitpal.model;
public class Users {
public int Age;
public float BMI;
public String Email;
public String Gender;
public float Goal;
public float Height;
public long KeyUserMeals;
public float Weight;
public Users() {
}
public Users(int age, float BMI, String email, String gender, float goal, float height, long keyUserMeals, float weight) {
Age = age;
this.BMI = BMI;
Email = email;
Gender = gender;
Goal = goal;
Height = height;
KeyUserMeals = keyUserMeals;
Weight = weight;
}
}
| [
"38138722+himageorge14@users.noreply.github.com"
] | 38138722+himageorge14@users.noreply.github.com |
7dedb12653cd43f8e8f15a44dc0ef0262edae6e8 | d9cde28715c36102f7a7cea7f6e06361b3d5ba27 | /app/src/main/java/com/nikola/notes/db/model/Note.java | 2b3062920349cc66175f08b6dec2f138542f645b | [] | no_license | dzoni842/Notes-Practice | edc24392d4328beb993b47174ac88ca8be02f18b | 5c61caeb04f2e39db42748c1cd9bdeb041ec0dab | refs/heads/master | 2022-06-19T11:21:32.243426 | 2017-06-29T20:16:39 | 2017-06-29T20:16:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,431 | java | package com.nikola.notes.db.model;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
/**
* Created by Dzoni on 5/23/2017.
*/
@DatabaseTable(tableName = Note.TABLE_NOTES)
public class Note {
// Table Name
public static final String TABLE_NOTES = "notes";
// Table Columns
public static final String NOTE_ID = "id";
public static final String NOTE_TITLE = "title";
public static final String NOTE_CONTENT = "content";
@DatabaseField(columnName = NOTE_ID, generatedId = true)
private int id;
@DatabaseField(columnName = NOTE_TITLE)
private String title;
@DatabaseField(columnName = NOTE_CONTENT)
private String content;
// Default constructor is needed for the SQLite
public Note(){
}
public Note(String title, String content) {
this.title = title;
this.content = content;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
@Override
public String toString() {
// return super.toString();
return title + ", " + content;
}
}
| [
"alezniki@gmail.com"
] | alezniki@gmail.com |
17b6f306ae8d4ce9efd104f802cf759ceedcd98d | 3c08a7d87b64dc12e35feeb5fb4fab566f50460a | /src/main/java/wely/github/jhipster/sampleapp/repository/PersistenceAuditEventRepository.java | 753609e9c7ad63e9cf23a99c5927f9f663157b03 | [] | no_license | BulkSecurityGeneratorProject/myJhipsterSampleApp | 620da93f370d293268e476eeee3d08c7b948fcb5 | a294b43339f3b08dc165da097e078072ee7781ab | refs/heads/master | 2022-12-15T11:26:33.311659 | 2018-03-09T06:56:08 | 2018-03-09T06:56:08 | 296,641,060 | 0 | 0 | null | 2020-09-18T14:15:54 | 2020-09-18T14:15:53 | null | UTF-8 | Java | false | false | 1,000 | java | package wely.github.jhipster.sampleapp.repository;
import wely.github.jhipster.sampleapp.domain.PersistentAuditEvent;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import java.time.Instant;
import java.util.List;
/**
* Spring Data JPA repository for the PersistentAuditEvent entity.
*/
public interface PersistenceAuditEventRepository extends JpaRepository<PersistentAuditEvent, Long> {
List<PersistentAuditEvent> findByPrincipal(String principal);
List<PersistentAuditEvent> findByAuditEventDateAfter(Instant after);
List<PersistentAuditEvent> findByPrincipalAndAuditEventDateAfter(String principal, Instant after);
List<PersistentAuditEvent> findByPrincipalAndAuditEventDateAfterAndAuditEventType(String principle, Instant after, String type);
Page<PersistentAuditEvent> findAllByAuditEventDateBetween(Instant fromDate, Instant toDate, Pageable pageable);
}
| [
"jhipster-bot@users.noreply.github.com"
] | jhipster-bot@users.noreply.github.com |
e27b94206d90e2e24fd10a51a1da4843ab61bf4a | f2804ad75278b1a104bce41f7a409ef68434780a | /GeneticAlgorithm/Test/Excercises/symbolicRegression.java | aa93c3be76a5f4a59fe88dab9cf7300895d8f81c | [] | no_license | Tvallejos/CC5114-NeuralNetworks | 5b04e7fcbd87c9bec29c4512238000b51202510a | 67723782403992f73692373edc0649b6f96fa07d | refs/heads/master | 2020-06-27T10:28:40.475086 | 2019-12-16T01:17:53 | 2019-12-16T01:17:53 | 199,927,342 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,835 | java | package Excercises;
import GA.Functions.TreeGenerator;
import GA.Functions.numberFindingFitnessFunction;
import GA.Functions.symbolicRegressionFitnessFunction;
import GA.GeneticAlgorithm;
import GP.Tree.*;
import com.sun.source.tree.BinaryTree;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class symbolicRegression {
public static void main(String[] args) {
IBinaryNode X2 = new MultNode(new VariableNode("x"), new VariableNode("x"));
IBinaryNode sum = new AddNode(X2, new VariableNode("x"));
IBinaryNode end = new SubNode(sum, new TerminalNode(3.0));
//function is x^2 + x - 6
GeneticAlgorithm numFindGA = new GeneticAlgorithm(500,
new symbolicRegressionFitnessFunction(end, -10, 10),
new TreeGenerator(
//allowed func
new ArrayList<IBinaryNode>(
List.of(
new AddNode(null, null),
new SubNode(null, null),
new MaxNode(null, null),
new MultNode(null, null)
)),
//terminal nodes
new ArrayList<>(
List.of(
new TerminalNode(10.0),
new TerminalNode(9.0),
new TerminalNode(8.0),
new TerminalNode(7.0),
new TerminalNode(6.0),
new TerminalNode(5.0),
new TerminalNode(4.0),
new TerminalNode(3.0),
new TerminalNode(2.0),
new TerminalNode(1.0),
new TerminalNode(0.0),
new TerminalNode(-10.0),
new TerminalNode(-9.0),
new TerminalNode(-8.0),
new TerminalNode(-7.0),
new TerminalNode(-6.0),
new TerminalNode(-5.0),
new TerminalNode(-4.0),
new TerminalNode(-3.0),
new TerminalNode(-2.0),
new TerminalNode(-1.0),
new VariableNode("x"),
new VariableNode("x"),
new VariableNode("x"),
new VariableNode("x"),
new VariableNode("x"),
new VariableNode("x"),
new VariableNode("x"),
new VariableNode("x"),
new VariableNode("x"),
new VariableNode("x"),
new VariableNode("x"),
new VariableNode("x"),
new VariableNode("x"),
new VariableNode("x"),
new VariableNode("x")
)),
4,
0.2),
0.2,
1000, 0);
numFindGA.run();
}
}
| [
"tomas.vallejos12@gmail.com"
] | tomas.vallejos12@gmail.com |
23e54081337e05602dc2afea133819900dd539eb | 9f3d2b460c93b7d3f0120f3b8a3df2e6fc5192b4 | /src/org/banki/io/SyncFailedException.java | 5210c6c96b1dbe9aee82ce8b4fb35f0f0cf42886 | [
"MIT"
] | permissive | Banki-Africa/feature-wallet-jme | d8bcba59ec1e63466a27f75b9b0c650c8e704355 | 50663ecb06e2c387fefebe4bd2abc0d6f50e1821 | refs/heads/master | 2023-05-31T12:38:52.563446 | 2021-06-08T04:10:56 | 2021-06-08T04:10:56 | 372,295,569 | 3 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,365 | 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 banki.io;
/**
* Signals that the {@link FileDescriptor#sync()} method has failed to
* complete.
*/
public class SyncFailedException extends IOException {
private static final long serialVersionUID = -2353342684412443330L;
/**
* Constructs a new {@code SyncFailedException} with its stack trace and
* detail message filled in.
*
* @param detailMessage
* the detail message for this exception.
*/
public SyncFailedException(String detailMessage) {
super(detailMessage);
}
}
| [
"deon4e@gmail.com"
] | deon4e@gmail.com |
bb744e9890b7e8bca454251fd30f6739f0a3105e | ef1bd226cd514b7855e6061fba7ae6e739808e5e | /app/src/main/java/com/solutions/ray/expenser/UpdateExpense.java | e8752da1129b24b72041fdfa5665d6327e9422e5 | [] | no_license | yasankarj/SEP | 4515e19cc7ed357b2c192eecb0ddcdbf117f9e54 | 35bbb355eba06847d9cade32f3d2768cd38ecb8e | refs/heads/master | 2016-09-11T07:12:17.287326 | 2015-08-29T14:44:22 | 2015-08-29T14:44:22 | 39,423,876 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,611 | java | package com.solutions.ray.expenser;
import android.content.Intent;
import android.os.Environment;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import java.io.File;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import Controller.Tracker.TransactionHandler;
public class UpdateExpense extends ActionBarActivity {
TextView amountLbl;
TransactionHandler transactionHandler;
int TAKE_PHOTO_CODE = 0;
public static int count = 0;
EditText amountTxt; //Widgets
EditText payeeTxt;
EditText catTxt;
EditText subCatTxt;
EditText descTxt;
TextView testTxt;
EditText payeeTypeTxt;
Button addExpBtn;
Button captureBtn;
TextView curDateTxt;
String week;
String time;
Button galleryBtn;
DateFormat df;
Date dt;
private static final int SELECT_PHOTO = 100;
String expID;
HashMap <String,String> elementMap;
final String dir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES) + "/expenser/";
File newdir = new File(dir);
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_update_expense);
amountTxt = (EditText) findViewById(R.id.amountTxt);
payeeTxt = (EditText) findViewById(R.id.instTxt);
payeeTypeTxt = (EditText) findViewById(R.id.payeeTypeTxt);
descTxt = (EditText) findViewById(R.id.descTxt);
addExpBtn = (Button) findViewById(R.id.updateBtn);
captureBtn = (Button) findViewById(R.id.captureBtn);
catTxt = (EditText) findViewById(R.id.categoryTxt);
subCatTxt = (EditText) findViewById(R.id.subCatTxt);
testTxt = (TextView) findViewById(R.id.testTxt);
curDateTxt = (TextView) findViewById(R.id.curDateTxt);
galleryBtn = (Button) findViewById(R.id.galleryBtn);
newdir.mkdirs();
transactionHandler = new TransactionHandler();
Bundle extras = getIntent().getExtras();
expID = extras.getString("expID");
if (extras != null) {
elementMap = transactionHandler.getExpense(this, expID);
amountTxt.setText(elementMap.get("amount"));
curDateTxt.setText(elementMap.get("date"));
catTxt.setText(elementMap.get("category"));
subCatTxt.setText(elementMap.get("subCategory"));
payeeTxt.setText(elementMap.get("payee"));
payeeTypeTxt.setText(elementMap.get("payType"));
descTxt.setText(elementMap.get("desc"));
week = elementMap.get("week");
time = elementMap.get("time");
}
}
public void setDate(View view) {
Intent intent = new Intent(this, DatePick.class);
startActivityForResult(intent, 1);
}
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == 1) {
if (resultCode == RESULT_OK) {
curDateTxt.setText(data.getStringExtra("result"));
}
if (resultCode == RESULT_CANCELED) {
//Write your code if there's no result
}
}
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_add_expense, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
public void updateExpense(View view) throws ParseException {
String dateStr = curDateTxt.getText().toString();
Date dt;
df = new SimpleDateFormat("yyyy-MM-dd");
dt = df.parse(dateStr);
df = new SimpleDateFormat("W");
week = df.format(dt);
String msg = transactionHandler.updateExpense(this,expID, amountTxt.getText().toString(), descTxt.getText().toString(), catTxt.getText().toString(), subCatTxt.getText().toString(), payeeTxt.getText().toString(), payeeTypeTxt.getText().toString(),curDateTxt.getText().toString(),time,week);
if(msg.equals("Successfully Updated")){
Toast.makeText(getApplicationContext(), msg,
Toast.LENGTH_LONG).show();
finish();
}
else{
Toast.makeText(getApplicationContext(), msg,
Toast.LENGTH_SHORT).show();
}
}
public void deleteExpense(View view){
String msg = transactionHandler.deleteExpense(this,expID);
if(msg.equals("Sucessfully Deleted")){
Toast.makeText(getApplicationContext(), msg,
Toast.LENGTH_LONG).show();
finish();
}
else{
Toast.makeText(getApplicationContext(), msg,
Toast.LENGTH_SHORT).show();
}
}
} | [
"yasankarj@gmail.com"
] | yasankarj@gmail.com |
eadd5b116557ed375a9e75f712bcee7545e2e2a2 | 3456e7b38fe6f86caa61b3d17bfb885fe059c3c5 | /designPattern/src/main/java/com/gupao/pattern/proxy/dynamicProxy/jdkProxy/JDKProxyTest.java | df1e5f4c48ed34f27030fb7e0bd09a13cccbec22 | [] | no_license | fengyun0556/GP_homework | 0625ebc0c20fcd013cd97016dff3764d24297a33 | 44c8a7894f53273f287f56a954280ef0c241435c | refs/heads/master | 2022-12-21T08:29:55.577699 | 2019-12-01T23:51:55 | 2019-12-01T23:51:55 | 174,353,386 | 1 | 0 | null | 2022-12-16T04:51:46 | 2019-03-07T13:55:06 | Java | UTF-8 | Java | false | false | 828 | java | package com.gupao.pattern.proxy.dynamicProxy.jdkProxy;
import com.gupao.pattern.proxy.dynamicProxy.Person;
import sun.misc.ProxyGenerator;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class JDKProxyTest {
public static void main(String[] args) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, IOException {
Person person = (Person) new JDKMeiPo().getInstance(new Girl());
person.findLove();
/*byte[] bytes = ProxyGenerator.generateProxyClass("$Proxy0", new Class[]{Person.class});
FileOutputStream fos = new FileOutputStream("D:\\Java\\$Proxy0.class");
fos.write(bytes);
fos.close();*/
}
}
| [
"510362989@qq.com"
] | 510362989@qq.com |
33d847839c0d512fdb57222d662142885efc1ab6 | 7a1de96dcd60f5566f792a7c8eafd76c3df079e8 | /java/refactoring/src/main/java/ru/demon1999/sd/refactoring/DataBase/ProductsDataBase.java | 7b9dd79d51e710fe9fa677c2ba4509565cc9c39b | [] | no_license | demon1999/software-design | ffbca45ce6ec88bce4438213341a30c8b5be3a8d | 82c2649720acf829e754e864f88de40eedd0e303 | refs/heads/master | 2023-03-29T08:54:02.544502 | 2021-03-10T10:31:06 | 2021-03-10T10:31:06 | 299,869,457 | 0 | 0 | null | 2020-09-30T09:23:36 | 2020-09-30T09:23:35 | null | UTF-8 | Java | false | false | 2,142 | java | package ru.demon1999.sd.refactoring.DataBase;
import java.sql.*;
public class ProductsDataBase {
private final String path;
private void updateQuery(String query) throws SQLException {
try (Connection c = DriverManager.getConnection(path)) { ;
Statement stmt = c.createStatement();
stmt.executeUpdate(query);
stmt.close();
}
}
private QueryResult infoQuery(String query) throws SQLException {
Connection c = DriverManager.getConnection(path);
Statement stmt = c.createStatement();
ResultSet rs = stmt.executeQuery(query);
return new QueryResult(c, stmt, rs);
}
public void createIfNotExists() throws SQLException {
String createQuery = "CREATE TABLE IF NOT EXISTS PRODUCT" +
"(ID INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL," +
" NAME TEXT NOT NULL, " +
" PRICE INT NOT NULL)";
updateQuery(createQuery);
}
public ProductsDataBase(String path) throws SQLException {
this.path = path;
createIfNotExists();
}
public void dropTableIfExists() throws SQLException {
updateQuery("DROP TABLE IF EXISTS PRODUCT");
}
public void addProductQuery(String name, long price) throws SQLException {
updateQuery("INSERT INTO PRODUCT (NAME, PRICE) VALUES (\""
+ name + "\"," + price + ")");
}
public QueryResult getEveryProduct() throws SQLException {
return infoQuery("SELECT * FROM PRODUCT");
}
public QueryResult getMinPricedProduct() throws SQLException {
return infoQuery("SELECT * FROM PRODUCT ORDER BY PRICE LIMIT 1");
}
public QueryResult getMaxPricedProduct() throws SQLException {
return infoQuery("SELECT * FROM PRODUCT ORDER BY PRICE DESC LIMIT 1");
}
public QueryResult getNumberOfProducts() throws SQLException {
return infoQuery("SELECT COUNT(*) FROM PRODUCT");
}
public QueryResult getSumOfPrices() throws SQLException {
return infoQuery("SELECT SUM(price) FROM PRODUCT");
}
}
| [
"drsanusha1@mail.ru"
] | drsanusha1@mail.ru |
f3091339aa572e49445182a31fd2eaf2acc81364 | 775ee8feca8a78a271a96607cb0dd739875bcd70 | /src/com/liulin/study/designpatterns/j_adaptermode/passport/adapterv2/adapters/AbstraceAdapter.java | 92e087cc1491175df7b9e2c6d0e78c71ef1c624d | [] | no_license | zgliulin/gupao-design-patterns | 24c6618f368e23c7062623e5764842e9cffcf2ea | 2f9b75b538ca313f4e04788050a8f18dd8083cfc | refs/heads/master | 2022-04-10T18:08:45.230579 | 2020-03-15T08:02:52 | 2020-03-15T08:02:52 | 243,944,129 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 613 | java | package com.liulin.study.designpatterns.j_adaptermode.passport.adapterv2.adapters;
import com.liulin.study.designpatterns.j_adaptermode.passport.PassportService;
import com.liulin.study.designpatterns.j_adaptermode.passport.ResultMsg;
/**
* Create by DbL on 2020/3/12
*/
public abstract class AbstraceAdapter extends PassportService implements ILoginAdapter {
protected ResultMsg loginForRegist(String username, String password){
if(null == password){
password = "THIRD_EMPTY";
}
super.regist(username,password);
return super.login(username,password);
}
}
| [
"1170873261@qq.com"
] | 1170873261@qq.com |
84bce34e3db600c5e4ace10643e09fa5d51b639d | 373de57b4bc293964ba36058c68bb13f89aaff7d | /src/main/java/com/bootcamp/event/service/OrganizerService.java | 1043673b2e6050953f3cb76ea38ff5f44634012d | [] | no_license | abelmiraval/event | 407ab1c97aaf3f7e0f205bae6548df2f34284416 | 7733946c6f7b6bf3b9c321446aa46aa7bf2a17aa | refs/heads/master | 2022-10-25T20:40:47.707872 | 2019-11-02T15:10:47 | 2019-11-02T15:10:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 798 | java | package com.bootcamp.event.service;
import org.springframework.stereotype.Service;
import com.bootcamp.event.domain.Organizer;
import com.bootcamp.event.dto.OrganizerDto;
import com.bootcamp.event.repository.OrganizerRepository;
import lombok.RequiredArgsConstructor;
@Service
@RequiredArgsConstructor
public class OrganizerService {
private final OrganizerRepository organizerRepository;
public String saveOrganizer(OrganizerDto organizerDto) {
try {
Organizer organizer = new Organizer();
organizer.setName(organizerDto.getName());
organizer.setStatus("1");
this.organizerRepository.saveAndFlush(organizer);
return "Guardado exitoso!!";
} catch (Exception e) {
// TODO: handle exception
throw new RuntimeException(e.getMessage(), e.getCause());
}
}
}
| [
"isai.venpi@gmail.com"
] | isai.venpi@gmail.com |
1d1bb995f048a5b30fad09b4c5fd5585a84d9143 | 36f2c9b3ef056b5ff520daa76692e75907b60955 | /src/main/java/com/we2seek/gwtdemo/model/UserRepository.java | 22b3835e68b1399b47346d1b3932ce0dca41b7a1 | [] | no_license | we2seek/gwtboot | fdeb17428fd39032982050349a9dc78f3f6259b4 | b7462a743d46d7a74317d760fe5be0f07c7eb5cd | refs/heads/master | 2021-01-01T05:25:36.638280 | 2016-05-11T14:46:53 | 2016-05-11T14:46:53 | 58,553,333 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 219 | java | package com.we2seek.gwtdemo.model;
import org.springframework.data.jpa.repository.JpaRepository;
public interface UserRepository extends JpaRepository<User, Long> {
public User findByNameIgnoreCase(String name);
} | [
"vitaliy.timchenko@gmail.com"
] | vitaliy.timchenko@gmail.com |
bbf7f6543c7c071b1f143d20f2212702171b2a2d | e157b9cbaa3599c5578cf610c7e80488b335ab40 | /services/hrdb/src/com/auto_cfiryapstr/hrdb/service/HrdbQueryExecutorServiceImpl.java | 046910903bb39ddd8eeec953a2fa5c24aff95a4f | [] | no_license | wavemakerapps/Auto_cfiryaPstr | 6ec49c6cd82d24a0dee0d6b327325300f3ea845f | 11790bfc3345f9033fd0f827514f6af08a9834d0 | refs/heads/master | 2020-03-13T02:08:21.887229 | 2018-04-24T22:08:42 | 2018-04-24T22:08:42 | 130,918,650 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,053 | java | /*Copyright (c) 2015-2016 wavemaker.com All Rights Reserved.
This software is the confidential and proprietary information of wavemaker.com You shall not disclose such Confidential Information and shall use it only in accordance
with the terms of the source code license agreement you entered into with wavemaker.com*/
package com.auto_cfiryapstr.hrdb.service;
/*This is a Studio Managed File. DO NOT EDIT THIS FILE. Your changes may be reverted by Studio.*/
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import com.wavemaker.runtime.data.dao.query.WMQueryExecutor;
@Service
public class HrdbQueryExecutorServiceImpl implements HrdbQueryExecutorService {
private static final Logger LOGGER = LoggerFactory.getLogger(HrdbQueryExecutorServiceImpl.class);
@Autowired
@Qualifier("hrdbWMQueryExecutor")
private WMQueryExecutor queryExecutor;
}
| [
"automate1@wavemaker.com"
] | automate1@wavemaker.com |
38227d81ce988414f9f8489edef6e637b636a9f5 | f566e8ddf693ba5bb980c5981371b044acbf58af | /src/main/java/com/eminentstar/junitinaction/ch03/mastering/Controller.java | 35d2ee2c1f1e857ebfe8df6238bc94048410dd03 | [] | no_license | EminentStar/junit-in-action | c58bc5c2379e7fe65ef39934649b94aa5449fe52 | 83caa545dfd1c3c7039fdd914e148b7288e5dbbc | refs/heads/master | 2020-03-20T17:27:44.535440 | 2018-06-17T04:32:38 | 2018-06-17T04:32:38 | 137,559,617 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 198 | java | package com.eminentstar.junitinaction.ch03.mastering;
public interface Controller {
Response processRequest(Request request);
void addHandler(Request request, RequestHandler requestHandler);
}
| [
"junk3843@naver.com"
] | junk3843@naver.com |
c17d4c78f998149a96320e635d4f2cc0a6feac8c | 3e3c40bd524b30d94f56874af66cfb4fc92dbe1b | /src/main/java/com/bootdo/app/controller/WeChatController.java | 5c325870c94ccfe0a8bcde57caad1d09cb21d14e | [] | no_license | dingling001/consignment-master | 020dff8a6ed7114e5a8f77f5ac95303c23aec64f | 9224c8c77a219e884d61e13bb8d91b0a915e872f | refs/heads/master | 2020-04-17T02:26:47.798988 | 2019-01-17T00:56:13 | 2019-01-17T00:56:31 | 166,134,879 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,060 | java | package com.bootdo.app.controller;
import com.alibaba.fastjson.JSONObject;
import com.bootdo.system.params.EnumRetCode;
import com.bootdo.system.utils.HttpClientUtil;
import com.bootdo.system.vo.OutVoGlobal;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* Created by ziteng016 on 2019/1/10.
*/
@RequestMapping("/app/weChat")
@Controller
@Api(value = "小程序登录调用接口")
public class WeChatController {
private String baseUrl = "https://api.weixin.qq.com/sns/jscode2session";
private String appId = "wxd9b0aabd502ac948";
private String secret = "808beb01ac26951e7fae2405c6f85ee3";
private String suffix = "&grant_type=authorization_code";
@PostMapping(value = "/login")
@ResponseBody
@ApiOperation(value = "登录接口",notes = "正常返回数据:{\"code\": \"0000\",\"info\": \"请求成功\",\"data\": \"相应数据\"}")
public OutVoGlobal login(@RequestParam(value = "code", required = false) String code){
OutVoGlobal outVoGlobal = new OutVoGlobal();
String url = baseUrl + "?appid=" + appId + "&secret=" + secret +"&js_code=" + code + suffix;
String request = HttpClientUtil.httpPostRequest(url);
System.out.println("request = " + request);
JSONObject jsonObject = JSONObject.parseObject(request);
Object errcode = jsonObject.get("errcode");
if(!StringUtils.isEmpty(errcode)){
outVoGlobal.setEnum(EnumRetCode.CODE_ERROR);
return outVoGlobal;
}else{
String openid = jsonObject.get("openid").toString();
String sessionKey = jsonObject.get("session_key").toString();
}
return outVoGlobal;
}
}
| [
"dingling"
] | dingling |
162b886c4715be00ccbb81b637cc4d921e225df9 | 3fa5b02de01725a1f66900063df7f064e68b6584 | /src/main/java/AppendDate.java | 431888c12e950333881bde624b485d5922ca1d30 | [] | no_license | daiwei-dave/util-tool | d594b942d3845ecc368ea2c3337cb0a383b83653 | 316c378f8143208a06387242581c6a33b74bfb9f | refs/heads/develop | 2022-12-27T11:28:35.314519 | 2021-01-13T03:33:16 | 2021-01-13T03:33:16 | 82,891,584 | 0 | 0 | null | 2022-12-16T01:51:19 | 2017-02-23T06:15:10 | Java | UTF-8 | Java | false | false | 13,888 | java |
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.lang.reflect.Field;
import java.text.DecimalFormat;
import java.util.*;
import java.util.Map.Entry;
/**
* Created by daiwei on 2017/4/11.
* 日期拼接成连续
*
*对结果位数进行保留
*DecimalFormat df = new DecimalFormat("#.00");
*
*
*
*
*
*
*
*
*
*
*
*
*/
@Service("alumYieldFacade")
public class AppendDate {
// /**
// * 阳极组装产量统计
// *
// * @param alumProceQuery
// * @return
// */
// @Override
// public ResultData getAnodeProduce(AlumProceQuery alumProceQuery) {
//
// Map<String, Object> map = new LinkedHashMap<String, Object>();
//
// List<Map<String, String>> finalList = getFinalList(alumProceQuery);
// map.put("produceList", finalList);
//
// //求总和
// Map<String, Object> querySum = alumYieldService.querySum(alumProceQuery);
// //最后一次的库存为总库存
// if(finalList.size()>0){
// querySum.put("stokQuant", finalList.get(finalList.size() - 1).get("stokQuant"));
// if (querySum.get("pIronConsumption")!=null&&querySum.get("prodYield")!=null){
// if (Double.parseDouble(querySum.get("prodYield").toString())==0){
// querySum.put("prodnCsmd",null);
// }else {
// //磷生铁单耗
// double temp=Double.parseDouble(querySum.get("pIronConsumption").toString())/Double.parseDouble(querySum.get("prodYield").toString());
// String format = decimalFormat.format(temp);
// querySum.put("prodnCsmd",format);
// }
// }
// }
// map.put("sum", querySum);
// //自定义日期时按月求总和
// if (!StringUtils.isNullOrEmpty(alumProceQuery.getStartDate())
// || (!StringUtils.isNullOrEmpty(alumProceQuery.getEndDate()))) {
// //封装用户当前的年月
// AlumProceQuery nowAlumProceQuery = new AlumProceQuery();
// StringBuffer stringBuffer = new StringBuffer("0");
// Calendar now = Calendar.getInstance();
// int month = now.get(Calendar.MONTH) + 1;
// int year = now.get(Calendar.YEAR);
// nowAlumProceQuery.setMonth(stringBuffer.append(String.valueOf(month)).toString());
// nowAlumProceQuery.setYear(String.valueOf(year));
// Map<String, Object> querySumMonth = alumYieldService.querySumMonth(nowAlumProceQuery);
// List<Map<String, String>> nowAlumProceQueryinalList = getFinalList(nowAlumProceQuery);
// //当前月的最后一天的库存为月库存
// if(nowAlumProceQueryinalList.size()>0){
// querySumMonth.put("stokQuant", nowAlumProceQueryinalList.get(nowAlumProceQueryinalList.size() - 1).get("stokQuant"));
// if (querySumMonth.get("pIronConsumption")!=null&&querySumMonth.get("prodYield")!=null){
// if (Double.parseDouble(querySumMonth.get("prodYield").toString())==0){
// querySumMonth.put("prodnCsmd",null);
// }else {
// //磷生铁单耗
// double temp=Double.parseDouble(querySumMonth.get("pIronConsumption").toString())/Double.parseDouble(querySumMonth.get("prodYield").toString());
// String format = decimalFormat.format(temp);
// querySumMonth.put("prodnCsmd",format);
// }
// }
//
// }
// map.put("sumMonth", querySumMonth);
// }
// return ResultData.newResultData(map);
//
// }
// /**
// * 获取阳极组装产量信息
// *
// * @param alumProceQuery
// * @return
// */
// public List<Map<String, String>> getFinalList(AlumProceQuery alumProceQuery) {
// Map<String, Map<String, String>> result = new LinkedHashMap<>();
//
// //阳极组装产量(组)
// List<AlumYieldVO> prodYield = alumYieldService.queryProdYield(alumProceQuery);
// convertList(prodYield, result, "prodYield");
//
// //库存(组)
// List<AlumYieldVO> stokQuant = alumYieldService.queryStokQuant(alumProceQuery);
// convertList(stokQuant, result, "stokQuant");
//
// //发极数(组)
// List<AlumYieldVO> csmdQuant = alumYieldService.queryCsmdQuant(alumProceQuery);
// convertList(csmdQuant, result, "csmdQuant");
//
// //炭块入库(块)
// List<AlumYieldVO> csmdQuantIn = alumYieldService.queryCsmdQuantIn(alumProceQuery);
// convertList(csmdQuantIn, result, "csmdQuantIn");
//
// //炭块出库(块)
// List<AlumYieldVO> csmdQuantOut = alumYieldService.queryCsmdQuantOut(alumProceQuery);
// convertList(csmdQuantOut, result, "csmdQuantOut");
//
// //炭块库存(块)
// List<AlumYieldVO> csmdQuantStore = alumYieldService.queryCsmdQuantStore(alumProceQuery);
// convertList(csmdQuantStore, result, "csmdQuantStore");
//
// //磷生铁消耗(kg)
// List<AlumYieldVO> pIronConsumption = alumYieldService.queryPIronConsumption(alumProceQuery);
// convertList(pIronConsumption, result, "pIronConsumption");
//
// //磷生铁单耗(kg/块)
// List<AlumYieldVO> prodnCsmd = alumYieldService.queryProdnCsmd(alumProceQuery);
// convertList(prodnCsmd, result, "prodnCsmd");
//
//
// List<Map<String, String>> finalList = convertToFinalList(result);
// //对结果按日期排序
// Collections.sort(finalList, new Comparator() {
// /**
// * 升序排序
// */
// public int compare(Object obj1, Object obj2) {
// Map<String, String> map1 = (Map<String, String>) obj1;
// Map<String, String> map2 = (Map<String, String>) obj2;
// return Integer.parseInt(map1.get("prodDate")) - Integer.parseInt(map2.get("prodDate"));
// }
// });
//
// //字段为空时,设置初始值为0(并非数据库的实际值)
// for (int i = 0; i < finalList.size(); i++) {
// if (finalList.get(i).get("pIronConsumption") == null) {
// finalList.get(i).put("pIronConsumption", "0");
// }
// if (finalList.get(i).get("prodYield") == null) {
// finalList.get(i).put("prodYield", "0");
// finalList.get(i).put("prodnCsmd", null);
// }else {
// //磷生铁单耗
// double temp = Double.parseDouble(finalList.get(i).get("pIronConsumption")) / Double.parseDouble(finalList.get(i).get("prodYield"));
// String format = decimalFormat.format(temp);
// if (format.equals("0.00")) {
// finalList.get(i).put("prodnCsmd", "0");
// } else {
// finalList.get(i).put("prodnCsmd", format);
// }
// }
//
// if (finalList.get(i).get("csmdQuant") == null) {
// finalList.get(i).put("csmdQuant", "0");
// }
//
// if (finalList.get(i).get("csmdQuantIn") == null) {
// finalList.get(i).put("csmdQuantIn", "0");
// }
// if (finalList.get(i).get("csmdQuantOut") == null) {
// finalList.get(i).put("csmdQuantOut", "0");
// }
// if (finalList.get(i).get("csmdQuantStore") == null) {
// finalList.get(i).put("csmdQuantStore", "0");
// }
//
//
// //如果是按年查找的后的结果
// if (finalList.get(i).get("prodDate").length() == 6) {
// //重新封装查询条件
// AlumProceQuery queryByMonth = new AlumProceQuery();
// String year = finalList.get(i).get("prodDate").substring(0, 4);
// String month = finalList.get(i).get("prodDate").substring(4, 6);
// queryByMonth.setYear(year);
// queryByMonth.setMonth(month);
// List<Map<String, String>> finalListByMonth = getFinalList(queryByMonth);
// finalList.get(i).put("stokQuant", finalListByMonth.get(finalListByMonth.size() - 1).get("stokQuant"));
// }
// //如果是按月或者自定义时间查找后的结果
// if (finalList.get(i).get("prodDate").length() == 8) {
// /**
// * 用基准的库存数据+期间产出数量-期间出库数据=库存数据(a+b-c)
// * 当天若有库存,则不进行计算
// */
// double temp = 0;
// if (i == 0) {
// if (finalList.get(i).get("stokQuant") == null) {
// //当天日期
// String prodDate = finalList.get(i).get("prodDate");
// //查询最近有库存的日期
// String dateBeforeProdDate = alumYieldService.queryDateBeforeProdDate(prodDate);
//
// if (dateBeforeProdDate != null) {
// //重新封装查询条件
// AlumProceQuery query = new AlumProceQuery();
// query.setStartDate(dateBeforeProdDate);
// query.setEndDate(prodDate);
// //递归获得当天的库存
// List<Map<String, String>> mapList = getFinalList(query);
// finalList.get(i).put("stokQuant", mapList.get(mapList.size() - 1).get("stokQuant"));
// } else {
// //没有找到有库存的日期,则当天为0
// finalList.get(i).put("stokQuant", "0");
// }
// }
// } else {
// //当天若有库存或者昨天库存为0,则不进行计算
// if (finalList.get(i).get("stokQuant") == null && !finalList.get(i - 1).get("stokQuant").equals("0")) {
// temp = Double.parseDouble(finalList.get(i - 1).get("stokQuant")) + Double.parseDouble(finalList.get(i).get("prodYield")) - Double.parseDouble(finalList.get(i).get("csmdQuant"));
// finalList.get(i).put("stokQuant", String.valueOf(temp));
// } else if (finalList.get(i - 1).get("stokQuant").equals("0") && finalList.get(i).get("stokQuant") == null) {
// //昨天库存为0且今天也没有库存,则今天库存也为0
// finalList.get(i).put("stokQuant", "0");
// }
// }
// }
// }
// return finalList;
// }
/**
* 将日期拼接。
* @param
* @param
* @param rowName
*/
// public void convertList(List<AlumYieldVO> list, Map<String, Map<String, String>> result, String rowName) {
// //1.遍历查询的数据,取日期
// //2.存到下面的map
// //3.再遍历map
// //4.存到resultList
// if (null == list || list.size() <= 0) {
// return;
// }
// DecimalFormat df = new DecimalFormat("0.00");
// Map<String, String> valueMap;
//
// /**
// * 若日期重复,在当前日期下增加result的value值。
// * 若日期为新的,在增加result的key-value
// */
// for (int i = 0; i < list.size(); i++) {
// if (!result.containsKey(list.get(i).getProdDate())) {
// valueMap = new LinkedHashMap<>();
// valueMap.put(rowName, String.valueOf(getFieldValue(list.get(i), rowName)));
// //存储日期和对应的时间
// result.put(list.get(i).getProdDate(), valueMap);
// } else {
// //existMap只是一个临时变量未进行实例化,故没有值,
// // 以下代码等价于:result.get(list.get(i).getProdDate()).put(rowName, String.valueOf(getFieldValue(list.get(i), rowName)))
// Map<String, String> existMap = result.get(list.get(i).getProdDate());
// //存储值
// existMap.put(rowName, String.valueOf(getFieldValue(list.get(i), rowName)));
// }
// }
// }
// /**
// * 获取成员变量的值
// * @param clazz 类的实例名
// * @param rowName 成员变量名
// * @return
// */
// private Object getFieldValue(AlumYieldVO clazz, String rowName) {
// Field field = null;
// Object obj = null;
// try {
// field = clazz.getClass().getDeclaredField(rowName);
// field.setAccessible(true);
// obj = field.get(clazz);
// } catch (Exception e) {
// }
// return obj;
// }
/**
* 将map集合转为list集合
* @param
* @return
*/
// private List<Map<String, String>> convertToFinalList(Map<String, Map<String, String>> result) {
// Map<String, List<Map<String, String>>> resultMap = new LinkedHashMap<>();
// List<Map<String, String>> finalList = new ArrayList<>();
// for (Entry<String, Map<String, String>> entry : result.entrySet()) {
// Map<String, String> finalMap = new LinkedHashMap<>();
// Map<String, String> temp = new LinkedHashMap<>();
// temp.put("prodDate", entry.getKey());
// finalMap.putAll(temp);
// finalMap.putAll(entry.getValue());
// finalList.add(finalMap);
// }
// return finalList;
// }
}
| [
"18428385839@163.com"
] | 18428385839@163.com |
2755cdd0a8984663909a1f6894490c4af3f7473d | 1dd03ae1cdd0f80d5b07114e0cba3faee331b425 | /WebViewDemo/library/src/main/java/com/changxiao/library/config/IWebPageView.java | f327dc041e5e99df1e372e9acc0a88f0b3dc3b88 | [] | no_license | xiaoqianchang/AndroidStudioProjects | 94392371a7d53c7866132842d47753c048ba2d2b | f5b256df3404f56ad53e80c818c551114555950e | refs/heads/master | 2020-08-10T00:51:53.251036 | 2019-10-10T15:16:00 | 2019-10-10T15:16:00 | 214,214,308 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 694 | java | package com.changxiao.library.config;
import android.view.View;
/**
* Created by jingbin on 2016/11/17.
*/
public interface IWebPageView {
// 隐藏进度条
void hindProgressBar();
// 显示webview
void showWebView();
// 隐藏webview
void hindWebView();
// 进度条先加载到90%,然后再加载到100%
void startProgress();
/**
* 进度条变化时调用
*/
void progressChanged(int newProgress);
/**
* 添加js监听
*/
void addImageClickListener();
/**
* 播放网络视频全屏调用
*/
void fullViewAddView(View view);
void showVideoFullView();
void hindVideoFullView();
}
| [
"qianchang.xiao@gmail.com"
] | qianchang.xiao@gmail.com |
e8135c84c4264d80dee16a04cf37af07d45c80c5 | 5e7594f5c2e08dbd9d7cded725a313fbe98c522b | /src/main/java/com/example/testnavigation/moudle/IMUserFavourite.java | bd44571e5582dbf7b7c71cb0d5bf21d5e0a78542 | [] | no_license | ws01016121/TestExtract | e16f0d01b1af7419871f10cf56e71c97f41454e9 | 01c2a71348818ae6fb5ff060da96afcf236fb83d | refs/heads/master | 2021-10-20T09:19:11.988631 | 2019-02-27T06:36:08 | 2019-02-27T06:36:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,248 | java | package com.example.testnavigation.moudle;
import com.example.testnavigation.base.BaseObserver;
import com.example.testnavigation.brean.mine.FavouriteNewsBean;
import com.example.testnavigation.brean.mine.FavouriteTopicBean;
import com.example.testnavigation.contact.UserFavourite;
import com.example.testnavigation.http.HttpManager;
import com.example.testnavigation.http.HttpResponse;
import com.example.testnavigation.utils.HttpUtils;
import com.example.testnavigation.utils.RxUtils;
import okhttp3.FormBody;
import okhttp3.RequestBody;
public class IMUserFavourite {
public void getUserFavouriteNews(String userId, String cursor, final UserFavourite.UserFavouriteCallBak userFavouriteCallBak) {
RequestBody requestBody=new FormBody.Builder()
.addEncoded("userId",userId)
.addEncoded("cursor",cursor)
.build();
HttpManager.getInstance().getServer().getFavouriteNews(requestBody)
.compose(RxUtils.<HttpResponse<FavouriteNewsBean>>rxScheduleThread())
.compose(RxUtils.<FavouriteNewsBean>handeResult())
.subscribe(new BaseObserver<FavouriteNewsBean>(userFavouriteCallBak) {
@Override
public void onNext(FavouriteNewsBean value) {
userFavouriteCallBak.setUserFavouriteNewsTab(value);
}
});
}
public void getUserFavouriteTopic(String userId, String cursor, final UserFavourite.UserFavouriteCallBak userFavouriteCallBak) {
RequestBody requestBody=new FormBody.Builder()
.addEncoded("userId",userId)
.addEncoded("cursor",cursor)
.build();
HttpManager.getInstance().getServer().getFavouriteTopic(requestBody).compose(RxUtils.<HttpResponse<FavouriteTopicBean>>rxScheduleThread())
.compose(RxUtils.<FavouriteTopicBean>handeResult())
.subscribe(new BaseObserver<FavouriteTopicBean>(userFavouriteCallBak) {
@Override
public void onNext(FavouriteTopicBean value) {
userFavouriteCallBak.setUserFavouriteTopicTab(value);
}
});
}
}
| [
"846606492@qq.com"
] | 846606492@qq.com |
02f2239e4c6caf3cd58a114a39a8d5b459104501 | f608308317104d1abbaca0b2835340126ad4bfbc | /app/src/main/java/com/udacity/gradle/builditbigger/GettingJokeByAsynTask.java | b6ff9824ddd22e902f0f3605f30388d8db7af66e | [] | no_license | huse/FinalProject_Build_It_Bigger | 71ba0c138830ffe5c4012b34be69de169fdc9606 | 41b799e384e8951f6de035ec0672ef9e55048e0f | refs/heads/master | 2021-05-09T05:44:28.599961 | 2018-04-29T18:13:42 | 2018-04-29T18:13:42 | 119,318,321 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,312 | java | package com.udacity.gradle.builditbigger;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import android.view.View;
import android.widget.ProgressBar;
import com.google.api.client.extensions.android.http.AndroidHttp;
import com.google.api.client.extensions.android.json.AndroidJsonFactory;
import com.google.api.client.googleapis.services.AbstractGoogleClientRequest;
import com.google.api.client.googleapis.services.GoogleClientRequestInitializer;
import com.udacity.gradle.builditbigger.backend.ApiJoker;
import java.io.IOException;
/**
* Created by hk640d on 3/23/2018.
*/
public class GettingJokeByAsynTask extends AsyncTask<Void, Void, String> {
private ApiJoker apiJoker = null;
private TaskCompletionInterface taskCompletedCallback;
protected Context contexts;
protected ProgressBar progressBars;
/*public GettingJokeByAsynTask(ProgressBar progressBar,Context context) {
this.contexts =context;
this.progressBars =progressBar;
}*/
public GettingJokeByAsynTask(TaskCompletionInterface callback) {
taskCompletedCallback = callback;
}
/*public GettingJokeByAsynTask(){
}*/
public interface TaskCompletionInterface {
void completingTasks(String joke);
}
@Override
protected void onPostExecute(String result) {
Log.v("hhh3", "onPostExecute 1");
if (progressBars !=null){
progressBars.setVisibility(View.GONE);
}
/*Intent intent = new Intent(contexts, MainActivity.class);
intent.putExtra(MainActivity.JOKE_INTENT, result);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
contexts.startActivity(intent);*/
Log.v("hhh3", "onPostExecute 2");
if (taskCompletedCallback != null) {
taskCompletedCallback.completingTasks(result);
}
/*Intent intent2 = new Intent(contexts, MainActivityJoke.class);
contexts.startActivity(intent2);*/
Log.v("hhh3", "onPostExecute 3");
}
@Override
protected String doInBackground(Void... params) {
Log.v("hhh", "doInBackground 1");
if(apiJoker == null) {
ApiJoker.JokeBuilder builder = new ApiJoker.JokeBuilder(AndroidHttp.newCompatibleTransport(),
new AndroidJsonFactory(), null)
.setRootUrl("http://localhost:8080/_ah/api/")
.setGoogleClientRequestInitializer(new GoogleClientRequestInitializer() {
@Override
public void initialize(AbstractGoogleClientRequest<?> abstractGoogleClientRequest) throws IOException {
abstractGoogleClientRequest.setDisableGZipContent(true);
}
});
Log.v("hhh", "doInBackground 2: " + builder.toString());
apiJoker = builder.build();
Log.v("hhh", "doInBackground 3: " + apiJoker.toString());
}
try {
String result = apiJoker.gettingJoke().execute().getData();
Log.v("hhh", "doInBackground 4: "+ result);
return result;
} catch (IOException e) {
Log.v("hhh", "doInBackground 5: " + e.getMessage());
return e.getMessage();
}
}
}
| [
"hus.kpr@gmail.com"
] | hus.kpr@gmail.com |
50467d1381bc7f5068a734cacaf199e0a1af0918 | 5c064d109ee7e4952b3b519dd002dbbc2afc6e20 | /jenkins/src/main/java/jacs/jenkins/model/Member.java | fd4f15782f6927d9bfc499aed1012b0c84d05e1a | [] | no_license | juancastro88/jenkins | 1b59160bd574e55d815387d095eafe8a6678b591 | 15ce4a1d98a9d1b28bb185cdafba3d96be2d6e16 | refs/heads/master | 2020-12-24T18:33:19.122889 | 2016-05-26T19:10:55 | 2016-05-26T19:10:55 | 59,749,898 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,524 | java | /*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* 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 jacs.jenkins.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;
@SuppressWarnings("serial")
@Entity
@XmlRootElement
@Table(uniqueConstraints = @UniqueConstraint(columnNames = "email"))
public class Member implements Serializable {
@Id
@GeneratedValue
private Long id;
@NotNull
@Size(min = 1, max = 25)
@Pattern(regexp = "[^0-9]*", message = "Must not contain numbers")
private String name;
@NotNull
@NotEmpty
@Email
private String email;
@NotNull
@Size(min = 10, max = 12)
@Digits(fraction = 0, integer = 12)
@Column(name = "phone_number")
private String phoneNumber;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
}
| [
"juan.castro.co@usco.edu.co"
] | juan.castro.co@usco.edu.co |
a566ff1e54f417e3a95be1e3ac7f173e6ca8bf21 | 44e7adc9a1c5c0a1116097ac99c2a51692d4c986 | /aws-java-sdk-codecommit/src/main/java/com/amazonaws/services/codecommit/model/FileEntryRequiredException.java | ee71bdd00ad3e27f8c8fa41981aae4ea10cb934b | [
"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 | 1,321 | 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.codecommit.model;
import javax.annotation.Generated;
/**
* <p>
* The commit cannot be created because no files have been specified as added, updated, or changed (PutFile or
* DeleteFile) for the commit.
* </p>
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class FileEntryRequiredException extends com.amazonaws.services.codecommit.model.AWSCodeCommitException {
private static final long serialVersionUID = 1L;
/**
* Constructs a new FileEntryRequiredException with the specified error message.
*
* @param message
* Describes the error encountered.
*/
public FileEntryRequiredException(String message) {
super(message);
}
}
| [
""
] | |
b5babd9da25e4a0638e5ac8c81ead24e34f047e4 | f0b40d71a83e1fd7802f54f2004042ced56f7d3b | /src/main/java/com/liuss/model/model/Msg.java | 64450fbd1ebcfd58180a05b452e1ffaa979d5d8c | [] | no_license | shishuai45/springboot_model | 6194acba7d5ddcb149166a3da2b29b4106d0c707 | 461a5cdf04833dc8d2418358d6795132afeda611 | refs/heads/master | 2021-04-15T04:43:28.302849 | 2018-04-09T09:41:02 | 2018-04-09T09:41:02 | 126,803,726 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 581 | java | package com.liuss.model.model;
public class Msg {
private String title;
private String content;
private String extraInfo;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getExtraInfo() {
return extraInfo;
}
public void setExtraInfo(String extraInfo) {
this.extraInfo = extraInfo;
}
}
| [
"liuss@192.168.1.43:29418"
] | liuss@192.168.1.43:29418 |
bc438a627c2952d350e5f46f3f7c99ad855209cd | 52b92c8156ceb81b3c613379659b930e43f36417 | /app/src/main/java/com/itcunkou/commondemo/net/RetrofitHelper.java | b05cad068e2847b28b776455dfb0eab29dc42bfd | [] | no_license | wys919591169/CommonDemo | fa527558206015e09ddb76aca3e6e848fe16564e | cc399997e04862c528b3ee6c5dff91faf06c7183 | refs/heads/master | 2020-06-07T14:05:30.564242 | 2019-06-21T05:53:17 | 2019-06-21T05:53:17 | 193,038,491 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,287 | java | package com.itcunkou.commondemo.net;
import android.util.Log;
import com.itcunkou.commondemo.common.Contacts;
import com.itcunkou.commondemo.util.DateUtils;
import com.itcunkou.commondemo.util.JsonHandleUtils;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import okhttp3.Interceptor;
import okhttp3.MediaType;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;
import okhttp3.ResponseBody;
import okio.Buffer;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;
/**
* Retrofit 辅助类
* @author Veer
* @email 276412667@qq.com
* @date 18/7/2
*/
public class RetrofitHelper {
private static String TGA = "RetrofitHelper";
private long CONNECT_TIMEOUT = 60L;
private long READ_TIMEOUT = 30L;
private long WRITE_TIMEOUT = 30L;
private static RetrofitHelper mInstance = null;
private Retrofit mRetrofit = null;
public static RetrofitHelper getInstance(){
synchronized (RetrofitHelper.class){
if (mInstance == null){
mInstance = new RetrofitHelper();
}
}
return mInstance;
}
private RetrofitHelper(){
init();
}
private void init() {
resetApp();
}
private void resetApp() {
mRetrofit = new Retrofit.Builder()
.baseUrl(Contacts.DEV_BASE_URL)
.client(getOkHttpClient())
.addConverterFactory(GsonConverterFactory.create())
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())
.build();
}
/**
* 获取OkHttpClient实例
*
* @return
*/
private OkHttpClient getOkHttpClient() {
OkHttpClient okHttpClient = new OkHttpClient.Builder()
.retryOnConnectionFailure(true)
.connectTimeout(CONNECT_TIMEOUT, TimeUnit.SECONDS)
.readTimeout(READ_TIMEOUT, TimeUnit.SECONDS)
.writeTimeout(WRITE_TIMEOUT, TimeUnit.SECONDS)
.addInterceptor(new RqInterceptor())
.addInterceptor(new LogInterceptor())
.build();
return okHttpClient;
}
/**
* 请求拦截器
*/
private class RqInterceptor implements Interceptor {
@Override
public Response intercept(Chain chain) throws IOException {
Request request = chain.request()
.newBuilder()
.addHeader("X-APP-TYPE","android")
.build();
Response response = chain.proceed(request);
return response;
}
}
/**
* 日志拦截器
*/
private class LogInterceptor implements Interceptor {
@Override
public Response intercept(Chain chain) throws IOException {
Request request = chain.request();
String url = request.url().toString();
String params = requestBodyToString(request.body());
Response response = chain.proceed(request);
MediaType mediaType = response.body().contentType();
String content = response.body().string();
String responseString = JsonHandleUtils.jsonHandle(content);
String time = DateUtils.getNowDateFormat(DateUtils.DATE_FORMAT_2);
String log = "\n\n*****请求时间*****:\n" + time+"\n*******路径*******:\n" + url + "\n*******参数*******:\n" + params + "\n*******报文*******:\n" + responseString+"\n \n";
Log.d(TGA,log);
return response.newBuilder().body(ResponseBody.create(mediaType,content)).build();
}
}
private String requestBodyToString(final RequestBody request) {
try {
final RequestBody copy = request;
final Buffer buffer = new Buffer();
if (copy != null){
copy.writeTo(buffer);
}
else{
return "";
}
return buffer.readUtf8();
} catch (final IOException e) {
return "did not work";
}
}
public ApiService getServer(){
return mRetrofit.create(ApiService.class);
}
}
| [
"1164399367@qq.com"
] | 1164399367@qq.com |
ac2ab0911f4782a18f1a9eb8e6c03ead9b3c23ce | dd307dbec4352ea52ec33f2cc609e6f3bcf01e78 | /src/test/java/paginas/FAQCategories.java | f9a882d351193889d5edabd296b5d368c8017e9f | [] | no_license | MMSouzaT/HomolPiloto | d41641797c49c3b2396c6156b11bde6587bfa391 | c83fe974bd8ccf74fc07c87e300a0b0011d102ab | refs/heads/master | 2022-12-21T08:02:51.549743 | 2020-10-01T12:56:07 | 2020-10-01T12:56:07 | 294,707,514 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,223 | java | package paginas;
import org.openqa.selenium.WebDriver;
public class FAQCategories extends PageBase{
public FAQCategories(WebDriver navegador) {
super(navegador);
}
public FAQCategories newCategory() throws InterruptedException {
openLateralMenu("//a[@ng-click='categoria()']");
clickButton("//button[@data-target='.modal-categories']");
return this;
}
public FAQCategories editCategory() throws InterruptedException {
openTypeFilter("//a[@ng-click='categoria()']","//input[@id='filterTitle']","//button[@ng-click='filterCategories(1)']");
takeLineAndClick("//a[@ng-click='editCategory(item)']");
return this;
}
public FAQCategories deleteCategory() throws InterruptedException {
openTypeFilter("//a[@ng-click='categoria()']","//input[@id='filterTitle']","//button[@ng-click='filterCategories(1)']");
takeLineAndClick("//a[@ng-click='deleteCategory(item.id)']");
clickButton("//button[@style='float: left;']");
return this;
}
public FAQCategories writeEverything(){
type("//input[@id='title']", swd);
save("//a[@ng-click='createUpdateCategory()']");
return this;
}
} | [
"marcio.messiassouza@gmail.com"
] | marcio.messiassouza@gmail.com |
151d5c65d0c47b330c4d7be45851f973bde4f050 | f1129ecf5057d5b928c55d05803ff14665ad9dd7 | /changgou-service/changgou-service-order/src/main/java/org/changgou/order/service/OrderService.java | 29d40f88d11018bac2e3bc3cacb030191d9fd42f | [] | no_license | BoWen98/changgou_shop | 0afe154f25fc40655dda6b4ef981eb0568b16d57 | a504fdb81c8d0dc1e36c6fed13fa55b2ba45cbc5 | refs/heads/master | 2022-07-05T18:21:35.531510 | 2019-12-12T10:24:54 | 2019-12-12T10:24:54 | 227,579,305 | 0 | 0 | null | 2022-06-17T02:43:16 | 2019-12-12T10:24:21 | JavaScript | UTF-8 | Java | false | false | 1,614 | java | package org.changgou.order.service;
import com.github.pagehelper.PageInfo;
import org.changgou.order.pojo.Order;
import java.util.Date;
import java.util.List;
/****
* @Author:shenkunlin
* @Description:Order业务层接口
* @Date 2019/6/14 0:16
*****/
public interface OrderService {
/**
* 根据失败的支付结果更新订单状态
* @param id 订单Id
*/
void deleteOrder(String id);
/**
* 根据成功的支付结果更新订单状态
* @param id 订单Id
* @param transactionId 微信方生成的交易流水号
*/
void updateOrder(String id, String transactionId, Date payTime);
/***
* Order多条件分页查询
* @param order
* @param page
* @param size
* @return
*/
PageInfo<Order> findPage(Order order, int page, int size);
/***
* Order分页查询
* @param page
* @param size
* @return
*/
PageInfo<Order> findPage(int page, int size);
/***
* Order多条件搜索方法
* @param order
* @return
*/
List<Order> findList(Order order);
/***
* 删除Order
* @param id
*/
void delete(String id);
/***
* 修改Order数据
* @param order
*/
void update(Order order);
/***
* 新增Order
* @param order 返回订单信息供前端和支付微服务使用
*/
Order add(Order order);
/**
* 根据ID查询Order
* @param id
* @return
*/
Order findById(String id);
/***
* 查询所有Order
* @return
*/
List<Order> findAll();
}
| [
"376512291@qq.com"
] | 376512291@qq.com |
623fb0855fb6e34652296cafc8485f4ccaa53ed8 | 5d071cdf62b50da4042b71d13bace879efcce072 | /18BIT0003_SPASH_SCREEN/app/src/main/java/com/example/a18bit0003_spash_screen/splash.java | db2a5fc4ad4650e6567f8feb5e0d5d10fa0f1096 | [] | no_license | anupamth2/Prono_doctor_app | adc218bcb51dd2c7e43c53baea02864c5957810a | 8a574fa05289fe75d830fbec297b853ec36f2732 | refs/heads/master | 2023-04-18T23:40:54.115924 | 2021-05-02T13:40:53 | 2021-05-02T13:40:53 | 362,320,342 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 275 | java | package com.example.a18bit0003_spash_screen;
import android.os.Bundle;
public class splash extends MainActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate( savedInstanceState );
setContentView( R.layout.my_splash );
}
}
| [
"63403141+ANUPAM386@users.noreply.github.com"
] | 63403141+ANUPAM386@users.noreply.github.com |
da2415896c53ef7c37a96c44ca104f545cfc8df0 | 1ae187049ebe590c2f3e7afeaa1eadd6839926d3 | /server/src/main/java/com/course/server/service/CourseContentFileService.java | 8e747e10140ea6b37a99341d3705bdd38943062f | [] | no_license | lbules/Istudy | c962d6816761a5e93402fcd12a22877e58ca5929 | 40c8fd89784b33bcdef895b7cbc7973537d01f43 | refs/heads/master | 2023-07-04T07:37:57.285905 | 2021-08-05T12:58:10 | 2021-08-05T12:58:10 | 392,906,807 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,150 | java | package com.course.server.service;
import com.course.server.domain.CourseContentFile;
import com.course.server.domain.CourseContentFileExample;
import com.course.server.dto.CourseContentFileDto;
import com.course.server.mapper.CourseContentFileMapper;
import com.course.server.util.CopyUtil;
import com.course.server.util.UuidUtil;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import javax.annotation.Resource;
import java.util.List;
@Service
public class CourseContentFileService {
@Resource
private CourseContentFileMapper courseContentFileMapper;
/**
* 列表查询
*/
public List<CourseContentFileDto> list(String courseId) {
CourseContentFileExample example = new CourseContentFileExample();
CourseContentFileExample.Criteria criteria = example.createCriteria();
criteria.andCourseIdEqualTo(courseId);
List<CourseContentFile> fileList = courseContentFileMapper.selectByExample(example);
return CopyUtil.copyList(fileList, CourseContentFileDto.class);
}
/**
* 保存
* @param courseContentFileDto
*/
public void save(CourseContentFileDto courseContentFileDto) {
CourseContentFile courseContentFile = CopyUtil.copy(courseContentFileDto, CourseContentFile.class);
if (StringUtils.isEmpty(courseContentFileDto.getId())){ //id为空则调用insert方法添加
this.insert(courseContentFile);
}
else { //id不为空
this.update(courseContentFile);
}
}
/**
* 新增
* @param
*/
private void insert(CourseContentFile courseContentFile) {
courseContentFile.setId(UuidUtil.getShortUuid());
courseContentFileMapper.insert(courseContentFile);
}
/**
* 更新
* @param courseContentFile
*/
private void update(CourseContentFile courseContentFile) {
courseContentFileMapper.updateByPrimaryKey(courseContentFile);
}
/**
* 删除
* @param id
*/
public void delete(String id) {
courseContentFileMapper.deleteByPrimaryKey(id);
}
}
| [
"48148324+ridworld@users.noreply.github.com"
] | 48148324+ridworld@users.noreply.github.com |
3ab8df40e5146310f19df82e8f6659c57119ab46 | 22361430ab12e5a7c1eba4664293fc4a39051d9b | /QMRServer/jbsrc/scripts/player/PlayerWasHitScript.java | fcd9732052146362cc9dbc4a2723364c4719ee77 | [] | no_license | liuziangexit/QMR | ab93a66623e670a7f276683d94188d1b627db853 | 91ea3bd35ee3a1ebf994fb3fd6ffdbaa6fbf4d22 | refs/heads/master | 2020-03-30T00:22:31.028514 | 2017-12-20T05:41:17 | 2017-12-20T05:41:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 722 | java | package scripts.player;
import com.game.fight.structs.Fighter;
import com.game.manager.ManagerPool;
import com.game.player.script.IPlayerWasHitScript;
import com.game.player.structs.Player;
import com.game.script.structs.ScriptEnum;
public class PlayerWasHitScript implements IPlayerWasHitScript {
@Override
public int getId() {
return ScriptEnum.PLAYERWASHIT;
}
@Override
public void wasHit(Fighter fighter, Player player) {
if (ManagerPool.guildFlagManager.getFlagwarstatus() == 1) {
if (ManagerPool.guildFlagManager.getTerritorymap().containsKey(player.getMapModelId())) {
ManagerPool.guildFlagManager.addGuildFlagBuff(fighter,player);
}
}
}
}
| [
"ctl70000@163.com"
] | ctl70000@163.com |
53d0f07ea844627e29c0da365b3f535d297bf977 | 66798cf683be50876f59c6bf2200aa7e35298640 | /src/main/java/com/chessfab/entities/materialisable.java | 61b6b9fd00e52766dc76eed7ee6d88a128c39fbf | [] | no_license | novitskayas/Chess_Lab | 425efbb9bef1ed5be51da0336c4db8cdb4a0047a | 985563686fb47674d3e350bc79379eba9cd69156 | refs/heads/main | 2023-05-07T11:30:43.303501 | 2021-06-02T10:01:32 | 2021-06-02T10:05:56 | 371,931,707 | 0 | 0 | null | 2021-06-02T10:05:52 | 2021-05-29T09:27:32 | Java | UTF-8 | Java | false | false | 467 | java | package com.chessfab.entities;
public class materialisable {
private materialTypeEnum materialType;
public enum materialTypeEnum {
wood,
redWood,
iron,
titan,
aluminium,
carbon,
plastic,
stone
}
public void setMaterialType(materialTypeEnum material) {
this.materialType = material;
}
public materialTypeEnum materialType() {
return this.materialType;
}
}
| [
"novitskaya.ws@gmail.com"
] | novitskaya.ws@gmail.com |
ed1ac7f36aee0a21d17b0bf1c726f13ab55635be | e9624ce7d3efcbb2866bf9cb019572126f9e868f | /src/com/ginvaell/module7/task3/Task7_3.java | b7f3879ec420131bb4bd17e3059696dc097bd0ad | [] | no_license | ginvaell/javaTasks | 133c0f32fbc2f53e493935db241896f51152a480 | 0b66c43f697df72c3972c16179ca830aab03c29c | refs/heads/master | 2021-01-10T11:23:54.302073 | 2015-11-10T18:52:42 | 2015-11-10T18:52:42 | 43,615,064 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 921 | java | package com.ginvaell.module7.task3;
public class Task7_3 {
public static void main(String[] args) throws InterruptedException {
SharedResource res = new SharedResource();
IntegerSetterGetter t1 = new IntegerSetterGetter("1", res);
IntegerSetterGetter t2 = new IntegerSetterGetter("2", res);
IntegerSetterGetter t3 = new IntegerSetterGetter("3", res);
IntegerSetterGetter t4 = new IntegerSetterGetter("4", res);
IntegerSetterGetter t5 = new IntegerSetterGetter("5", res);
t1.start();
t2.start();
t3.start();
t4.start();
t5.start();
Thread.sleep(100);
t1.stopThread();
t2.stopThread();
t3.stopThread();
t4.stopThread();
t5.stopThread();
t1.join();
t2.join();
t3.join();
t4.join();
t5.join();
System.out.println("main");
}
}
| [
"ginvaell@gmail.com"
] | ginvaell@gmail.com |
3b9faf32c3013ca02d4f85056213cd5bbc7422f1 | f06e3a4bf0bea3e17837e21a1d82c43b1941475e | /src/com/observer/action/ICat.java | 4ccdf5463665cc754445e8c6cb58606e1c302f7c | [
"Apache-2.0"
] | permissive | ZhongXinWang/designPatterns | f3be2e7ef351bf6886a37cb4258f10bff3993bcf | 6385a55c86ea96e66d3d6a8f421ce971393bde9c | refs/heads/master | 2021-07-20T21:55:17.467584 | 2017-10-30T12:50:43 | 2017-10-30T12:50:43 | 108,489,539 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 216 | java | package com.observer.action;
public interface ICat {
//添加观察者
abstract void addObserver(Observers o);
//删除观察者
void removeObserver(Observers o);
//对观察者实现通知
void notifys();
}
| [
"940945444@qq.com"
] | 940945444@qq.com |
fa48a43da9d78cd0baf831bd0dfbc5f3d8e1a171 | 2bc6bd1748bb83f89fe4cac703953a110daa30f2 | /src/test/testThread/ADeamon.java | 8e14e17c9f414fbe23b173604c2f8ee5fe057d32 | [] | no_license | TomyJx/testJava_Thinking_in_java | adb586fff2418f85cf77cbf30a053756290b2163 | c282cdf30985d032eae5f0d0e58caaa9d0f00d8d | refs/heads/master | 2020-03-28T12:22:38.424949 | 2018-09-11T09:43:38 | 2018-09-11T09:43:38 | 148,291,647 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 614 | java | package test.testThread;
import java.util.concurrent.TimeUnit;
/**
* ${DESCRIPTION}
*
* @author jiyx
* @create 2017-08-29-0:09
*/
public class ADeamon implements Runnable {
@Override
public void run() {
try {
System.out.println("Starting deamon");
TimeUnit.MILLISECONDS.sleep(10);
} catch (InterruptedException e) {
e.printStackTrace();
}finally {
System.out.println("this should always run?");
}
}
public static void main(String[] args) throws InterruptedException {
Thread t = new Thread(new ADeamon());
t.setDaemon(true);
t.start();
TimeUnit.MILLISECONDS.sleep(10);
}
}
| [
"18292341322@163.com"
] | 18292341322@163.com |
c5a4798d3376efa6008ecc7f6cddb3039eb1ed8a | 320e0f623db2206530d4d25f95ea6404f7de6b23 | /gulimall-coupon/src/main/java/com/atguigu/gulimall/coupon/controller/SeckillPromotionController.java | 31f30ca7e21098924b1259980fd36e484329fd83 | [] | no_license | tomaslisheng/gulimall | f2681743259779bd958e7bbb955aae40f5dc1c2b | 6d9df2f356a249f6056040a5fefd51985496e165 | refs/heads/master | 2023-05-08T15:03:24.856200 | 2021-06-05T03:44:33 | 2021-06-05T03:44:33 | 374,018,947 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,108 | java | package com.atguigu.gulimall.coupon.controller;
import java.util.Arrays;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.atguigu.gulimall.coupon.entity.SeckillPromotionEntity;
import com.atguigu.gulimall.coupon.service.SeckillPromotionService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.common.utils.R;
/**
* 秒杀活动
*
* @author shengli
* @email tomaslisheng@163.com
* @date 2021-06-03 21:03:46
*/
@RestController
@RequestMapping("coupon/seckillpromotion")
public class SeckillPromotionController {
@Autowired
private SeckillPromotionService seckillPromotionService;
/**
* 列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params){
PageUtils page = seckillPromotionService.queryPage(params);
return R.ok().put("page", page);
}
/**
* 信息
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
SeckillPromotionEntity seckillPromotion = seckillPromotionService.getById(id);
return R.ok().put("seckillPromotion", seckillPromotion);
}
/**
* 保存
*/
@RequestMapping("/save")
public R save(@RequestBody SeckillPromotionEntity seckillPromotion){
seckillPromotionService.save(seckillPromotion);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody SeckillPromotionEntity seckillPromotion){
seckillPromotionService.updateById(seckillPromotion);
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
seckillPromotionService.removeByIds(Arrays.asList(ids));
return R.ok();
}
}
| [
"tomaslisheng@163.com"
] | tomaslisheng@163.com |
59f574bc820f3973bdd9dd3dc1d9bd8dd6469a1f | 567caa81bd0b1d9d9b0d34a924d147b7b60a66e0 | /spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/ldap/LdapAutoConfigurationTests.java | 7f6b3e65954cead5d59086c73b052c121f03de40 | [
"Apache-2.0"
] | permissive | MrSorrow/spring-boot | fb06c692f35dfb88ee6a8f3fa540e0ebef21de8f | ceed0e80af969c778b5c25c64e5124105988aab9 | refs/heads/master | 2023-01-10T07:09:07.443658 | 2019-10-14T07:39:17 | 2019-10-14T07:39:17 | 182,507,696 | 1 | 0 | Apache-2.0 | 2022-12-27T14:44:13 | 2019-04-21T08:16:26 | Java | UTF-8 | Java | false | false | 5,028 | java | /*
* Copyright 2012-2018 the original author or authors.
*
* 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.springframework.boot.autoconfigure.ldap;
import org.junit.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.ldap.core.LdapTemplate;
import org.springframework.ldap.core.support.LdapContextSource;
import org.springframework.ldap.pool2.factory.PoolConfig;
import org.springframework.ldap.pool2.factory.PooledContextSource;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Tests for {@link LdapAutoConfiguration}.
*
* @author Eddú Meléndez
* @author Stephane Nicoll
* @author Vedran Pavic
*/
public class LdapAutoConfigurationTests {
private ApplicationContextRunner contextRunner = new ApplicationContextRunner()
.withConfiguration(AutoConfigurations.of(LdapAutoConfiguration.class));
@Test
public void contextSourceWithDefaultUrl() {
this.contextRunner.run((context) -> {
LdapContextSource contextSource = context.getBean(LdapContextSource.class);
String[] urls = getUrls(contextSource);
assertThat(urls).containsExactly("ldap://localhost:389");
assertThat(contextSource.isAnonymousReadOnly()).isFalse();
});
}
@Test
public void contextSourceWithSingleUrl() {
this.contextRunner.withPropertyValues("spring.ldap.urls:ldap://localhost:123")
.run((context) -> {
LdapContextSource contextSource = context
.getBean(LdapContextSource.class);
String[] urls = getUrls(contextSource);
assertThat(urls).containsExactly("ldap://localhost:123");
});
}
@Test
public void contextSourceWithSeveralUrls() {
this.contextRunner
.withPropertyValues(
"spring.ldap.urls:ldap://localhost:123,ldap://mycompany:123")
.run((context) -> {
LdapContextSource contextSource = context
.getBean(LdapContextSource.class);
LdapProperties ldapProperties = context.getBean(LdapProperties.class);
String[] urls = getUrls(contextSource);
assertThat(urls).containsExactly("ldap://localhost:123",
"ldap://mycompany:123");
assertThat(ldapProperties.getUrls()).hasSize(2);
});
}
@Test
public void contextSourceWithExtraCustomization() {
this.contextRunner.withPropertyValues("spring.ldap.urls:ldap://localhost:123",
"spring.ldap.username:root", "spring.ldap.password:secret",
"spring.ldap.anonymous-read-only:true",
"spring.ldap.base:cn=SpringDevelopers",
"spring.ldap.baseEnvironment.java.naming.security.authentication:DIGEST-MD5")
.run((context) -> {
LdapContextSource contextSource = context
.getBean(LdapContextSource.class);
assertThat(contextSource.getUserDn()).isEqualTo("root");
assertThat(contextSource.getPassword()).isEqualTo("secret");
assertThat(contextSource.isAnonymousReadOnly()).isTrue();
assertThat(contextSource.getBaseLdapPathAsString())
.isEqualTo("cn=SpringDevelopers");
LdapProperties ldapProperties = context.getBean(LdapProperties.class);
assertThat(ldapProperties.getBaseEnvironment()).containsEntry(
"java.naming.security.authentication", "DIGEST-MD5");
});
}
@Test
public void templateExists() {
this.contextRunner.withPropertyValues("spring.ldap.urls:ldap://localhost:389")
.run((context) -> assertThat(context).hasSingleBean(LdapTemplate.class));
}
@Test
public void contextSourceWithUserProvidedPooledContextSource() {
this.contextRunner.withUserConfiguration(PooledContextSourceConfig.class)
.run((context) -> {
LdapContextSource contextSource = context
.getBean(LdapContextSource.class);
String[] urls = getUrls(contextSource);
assertThat(urls).containsExactly("ldap://localhost:389");
assertThat(contextSource.isAnonymousReadOnly()).isFalse();
});
}
private String[] getUrls(LdapContextSource contextSource) {
return contextSource.getUrls();
}
@Configuration
static class PooledContextSourceConfig {
@Bean
@Primary
public PooledContextSource pooledContextSource(
LdapContextSource ldapContextSource) {
PooledContextSource pooledContextSource = new PooledContextSource(
new PoolConfig());
pooledContextSource.setContextSource(ldapContextSource);
return pooledContextSource;
}
}
}
| [
"Kingdompin@163.com"
] | Kingdompin@163.com |
f1d47e29187274467d5d87418f090814330700c6 | b543f9419a6a5214842aa413fb818302d635b9f9 | /spring-boot-04-web-restful-crud/src/main/java/org/com/cay/spring/boot/filter/MyFilter.java | 3e5825f115a458ae11e10679bdb91f3d00ead667 | [] | no_license | caychen/spring-boot-study-2 | 3575acec55fe61b8c299d10e364c2aed51e75209 | 3296adfa7b1f1839f5772856880701fabfef5790 | refs/heads/master | 2020-03-28T02:55:00.713984 | 2018-09-06T02:47:06 | 2018-09-06T02:47:06 | 147,606,429 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 542 | java | package org.com.cay.spring.boot.filter;
import javax.servlet.*;
import java.io.IOException;
/**
* Created by Cay on 2018/5/9.
*/
public class MyFilter implements Filter {
@Override
public void init(FilterConfig filterConfig) throws ServletException {
}
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
System.out.println("MyFilter process...");
//放行
chain.doFilter(request, response);
}
@Override
public void destroy() {
}
}
| [
"412425870@qq.com"
] | 412425870@qq.com |
5385d3927ec1ba8047d3969193b9b6708981fd56 | a0e5af30fc51dce6edc54f959fb51c79a650f830 | /rpcstudy/backup/protocol/ProtocolFactory.java | c958b60aaf35f02e8792ee9c11c2dee5243b4292 | [
"Apache-2.0"
] | permissive | chenwei182729/senior2021 | a12996167a62696af49e40d97212db3ed401764c | 82f9eaa9c5527202a434a0612099542aedae6a9c | refs/heads/main | 2023-03-23T16:30:29.488593 | 2021-03-13T14:56:19 | 2021-03-13T14:56:19 | 327,779,257 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 626 | java | package protocol;
import protocol.dubbo.DubboProtocol;
import protocol.http.HttpProtocol;
/**
* @author chenxinwei
* @date 2021/2/1 18:03
**/
public class ProtocolFactory {
public static Protocol getProtocol() {
String name = System.getProperty("protocolName");
if (name == null || name.equals("")) {
name = "http";
}
switch (name) {
case "http":
return new HttpProtocol();
case "dubbo":
return new DubboProtocol();
default:
break;
}
return new HttpProtocol();
}
}
| [
"chenwei182729@163.com"
] | chenwei182729@163.com |
9e5f06744ba7b819f62bdb2a744fb18e80c936f2 | 80350e29cb52873d9f6cb12cd6c31a4aeeee8956 | /src/visão/PainelSelecionaCliente.java | 6c215de8f58bea84137ac0876ede3d4e57ada41b | [] | no_license | MateusValasques/EngSoft | 1b8bbaf6501a5f631dfc611f2278b01f3f0016e6 | 8d22a13fe43dbdb8f5ee76ca5ee516d269ed0303 | refs/heads/master | 2020-05-01T11:13:48.999065 | 2019-09-10T19:32:47 | 2019-09-10T19:32:47 | 176,532,692 | 0 | 0 | null | 2019-03-19T15:10:00 | 2019-03-19T14:42:26 | Java | ISO-8859-1 | Java | false | false | 3,131 | java | package visão;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JFormattedTextField;
import javax.swing.JComboBox;
import java.awt.List;
import javax.swing.JButton;
import java.awt.Button;
import java.awt.Color;
import javax.swing.JSeparator;
import javax.swing.JToggleButton;
public class PainelSelecionaCliente extends JFrame {
private JPanel contentPane;
private JLabel lblBuscaCliente;
private JFormattedTextField formattedTextField;
private JComboBox cbxTipoPesquisa;
private List list;
private JButton btnPesquisar;
private Button btnConfirmar;
private Button btnCancelar;
private JSeparator separator;
public PainelSelecionaCliente() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 573, 300);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
contentPane.setBackground(new Color(153, 255, 204));
setContentPane(contentPane);
contentPane.setLayout(null);
contentPane.add(getLblBuscaCliente());
contentPane.add(getFormattedTextField());
contentPane.add(getCbxTipoPesquisa());
contentPane.add(getList());
contentPane.add(getBtnPesquisar());
contentPane.add(getBtnConfirmar());
contentPane.add(getBtnCancelar());
contentPane.add(getSeparator());
}
public JLabel getLblBuscaCliente() {
if (lblBuscaCliente == null) {
lblBuscaCliente = new JLabel("Busca Cliente");
lblBuscaCliente.setFont(new Font("Tahoma", Font.ITALIC, 24));
lblBuscaCliente.setBounds(0, 0, 223, 29);
}
return lblBuscaCliente;
}
public JFormattedTextField getFormattedTextField() {
if (formattedTextField == null) {
formattedTextField = new JFormattedTextField();
formattedTextField.setColumns(10);
formattedTextField.setBounds(115, 47, 310, 20);
}
return formattedTextField;
}
public JComboBox getCbxTipoPesquisa() {
if (cbxTipoPesquisa == null) {
cbxTipoPesquisa = new JComboBox();
cbxTipoPesquisa.addItem("-Selecione-");
cbxTipoPesquisa.addItem("CPF");
cbxTipoPesquisa.addItem("CNPJ");
cbxTipoPesquisa.addItem("NOME");
cbxTipoPesquisa.setBounds(10, 46, 98, 22);
}
return cbxTipoPesquisa;
}
public List getList() {
if (list == null) {
list = new List();
list.setBounds(10, 77, 537, 134);
}
return list;
}
public JButton getBtnPesquisar() {
if (btnPesquisar == null) {
btnPesquisar = new JButton("Pesquisar");
btnPesquisar.setBounds(435, 46, 112, 23);
}
return btnPesquisar;
}
public Button getBtnConfirmar() {
if (btnConfirmar == null) {
btnConfirmar = new Button("Confirmar");
btnConfirmar.setBounds(368, 229, 70, 22);
}
return btnConfirmar;
}
public Button getBtnCancelar() {
if (btnCancelar == null) {
btnCancelar = new Button("Cancelar");
btnCancelar.setBounds(477, 229, 70, 22);
}
return btnCancelar;
}
public JSeparator getSeparator() {
if (separator == null) {
separator = new JSeparator();
separator.setBounds(0, 27, 146, 2);
}
return separator;
}
}
| [
"you@example.com"
] | you@example.com |
ac0148adb88f95db3e45448d1fe541b3bffd1344 | 01b67b2ba9b1d251b8158279c18e7ea69c888fd5 | /backend/meduo-tools/meduo-tools-extra/src/main/java/org/quick/meduo/tools/extra/ssh/package-info.java | b75b7a52a364aab1f2f96dd6eda0a5300076f538 | [
"LicenseRef-scancode-unknown-license-reference",
"MulanPSL-2.0",
"LicenseRef-scancode-mulanpsl-2.0-en"
] | permissive | suwinner1987/meduo | 7489e24a4623c95ed4794d3262839478f65566d5 | 34c8d707a423dfbcf1b0f103a527eb1f3735c188 | refs/heads/master | 2023-06-10T11:02:53.867308 | 2020-11-23T07:43:48 | 2020-11-23T07:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 149 | java | /**
* Jsch封装,包括端口映射、SFTP封装等,入口为JschUtil
*
* @author looly
*
*/
package org.quick.meduo.tools.extra.ssh; | [
"gao.brian@gmail.com"
] | gao.brian@gmail.com |
d8def531dc97ce62bd9ede9fff4c00a524c0f2f1 | e5aa8023355e22eadf3dc65432fe1a525a2d2b01 | /src/main/java/conv/MakeW.java | f0e8fc38dd04c1e39387fbfe0984231469487e6d | [] | no_license | jkool/NetC | f3222a178a59d5101144e63e596000b467585622 | b9b8b2cd7113b0c4c9dbfcd5099c099657f84e44 | refs/heads/master | 2021-01-01T19:16:37.454414 | 2015-08-29T11:14:28 | 2015-08-29T11:14:28 | 8,282,439 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 17,044 | java | package conv;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import ucar.ma2.Array;
import ucar.ma2.DataType;
import ucar.ma2.Index;
import ucar.ma2.InvalidRangeException;
import ucar.nc2.Attribute;
import ucar.nc2.Dimension;
import ucar.nc2.NetcdfFileWriter;
import ucar.nc2.Variable;
import ucar.nc2.dataset.NetcdfDataset;
import utilities.MatrixUtilities;
public class MakeW {
// public static void main(String[] args) {
// MakeW mw = new MakeW();
// mw.go();
// }
private String inputUFile = "D:/HYCOM/Blocks/2008_12_30_to_2009_01_29_tmp_u.nc";
private String inputVFile = "D:/HYCOM/Blocks/2008_12_30_to_2009_01_29_tmp_v.nc";
private String outputWFile = "D:/HYCOM/Blocks/2008_12_30_to_2009_01_29_tmp_w.nc";
private ArrayList<Dimension> dims;
private NetcdfDataset uFile, vFile;
NetcdfFileWriter writer;
private String inLatName = "Latitude";
private String inLonName = "Longitude";
private String inLayerName = "Depth";
private String inTimeName = "Time";
private Variable var;
private String inUName = "u";
private String inVName = "v";
private String outLatName = inLatName;
private String outLonName = inLonName;
private String outLayerName = "Depth";
private String outTimeName = "Time";
private String outVarName = "w";
private boolean reproject = true;
/**
* Calculates the change in w over a change in z
*
* @param lats
* - an Array of latitude values
* @param lons
* - an Array of longitude values
* @param us
* - an Array of u (east-west) velocity values
* @param vs
* - an Array of v (north-south) velocity values
* @return
*/
public float calcdwdz(Array lats, Array lons, Array us, Array vs) {
float du = dx(us);
if (Float.isNaN(du)) {
return du;
}
float dv = dy(vs);
if (Float.isNaN(dv)) {
return dv;
}
Array[] prj;
if (reproject) {
prj = prj2meters(lons, lats);
} else {
prj = new Array[] { lons, lats };
}
float dx = dx(prj[1]);
float dy = dy(prj[0]);
float dudx = du / dx;
float dvdy = dv / dy;
float out = -(dudx + dvdy);
return out==-0.0f?0.0f:out;
}
/**
* Clones the attributes of the input file(s) to the output file
*
* @param infile
* @param inVarName
* @param outfile
* @param outVarName
*/
private void cloneAttributes(NetcdfDataset infile, String inVarName,
NetcdfFileWriter writer, Variable outVar) {
// Find the variable
Variable vi = infile.findVariable(inVarName);
List<Attribute> l = vi.getAttributes();
for (Attribute a : l) {
writer.addVariableAttribute(outVar, a);
}
}
/**
* Calculates change in the x direction
*
* @param arr
* - a 3x3 array of numbers
* @return
*/
public float dx(Array arr) {
Index idx = Index.factory(arr.getShape());
float e = arr.getFloat((int) arr.getSize()/2);
if (Float.isNaN(e)) {
return Float.NaN;
}
if(arr.getSize()==3){
return ((arr.getFloat(2)-arr.getFloat(0))/2);
}
float a = arr.getFloat(idx.set(0, 0));
float c = arr.getFloat(idx.set(0, 2));
float d = arr.getFloat(idx.set(1, 0));
float f = arr.getFloat(idx.set(1, 2));
float g = arr.getFloat(idx.set(2, 0));
float i = arr.getFloat(idx.set(2, 2));
a = Float.isNaN(a) ? 0 : a;
c = Float.isNaN(c) ? 0 : c;
d = Float.isNaN(d) ? 0 : d;
f = Float.isNaN(f) ? 0 : f;
g = Float.isNaN(g) ? 0 : g;
i = Float.isNaN(i) ? 0 : i;
return ((c + 2 * f + i) - (a + 2 * d + g)) / 8;
}
/**
* Calculates change in the x direction
*
* @param arr1
* , arr2 - 3x3 arrays of numbers
* @return
*/
/**
* Calculates change in the y direction
*
* @param arr
* - a 3x3 array of numbers
* @return
*/
public float dy(Array arr) {
Index idx = Index.factory(arr.getShape());
float e = arr.getFloat((int) arr.getSize()/2);
if (Float.isNaN(e)) {
return Float.NaN;
}
if(arr.getSize()==3){
return ((arr.getFloat(2)-arr.getFloat(0))/2);
}
float a = arr.getFloat(idx.set(0, 0));
float b = arr.getFloat(idx.set(0, 1));
float c = arr.getFloat(idx.set(0, 2));
float g = arr.getFloat(idx.set(2, 0));
float h = arr.getFloat(idx.set(2, 1));
float i = arr.getFloat(idx.set(2, 2));
a = Float.isNaN(a) ? 0 : a;
b = Float.isNaN(b) ? 0 : b;
c = Float.isNaN(c) ? 0 : c;
g = Float.isNaN(g) ? 0 : g;
h = Float.isNaN(h) ? 0 : h;
i = Float.isNaN(i) ? 0 : i;
return ((g + 2 * h + i) - (a + 2 * b + c)) / 8;
}
/**
* Creates the w file
*
* @param uFile
* - the input east-west velocity file
* @param vFile
* - the input north-south velocity file
* @throws InvalidRangeException
* @throws IOException
*/
public NetcdfDataset generate(NetcdfDataset uFile, NetcdfDataset vFile)
throws InvalidRangeException, IOException {
// Set up empty arrays for ranges and dimensions.
dims = new ArrayList<Dimension>();
// Create the output file
writer = NetcdfFileWriter.createNew(NetcdfFileWriter.Version.netcdf4, outputWFile, null);
// Construct the data set dimensions - Time, Depth, Latitude and
// Longitude (in order)
int uTimeLength = uFile.findVariable(inTimeName).getShape()[0];
int uLayerLength = uFile.findVariable(inLayerName).getShape()[0];
int uLatLength = uFile.findVariable(inLatName).getShape()[0];
int uLonLength = uFile.findVariable(inLonName).getShape()[0];
int vTimeLength = vFile.findVariable(inTimeName).getShape()[0];
int vLayerLength = vFile.findVariable(inLayerName).getShape()[0];
int vLatLength = vFile.findVariable(inLatName).getShape()[0];
int vLonLength = vFile.findVariable(inLonName).getShape()[0];
Dimension timeDim = writer.addDimension(null, outTimeName,
Math.min(uTimeLength, vTimeLength));
Dimension layerDim = writer.addDimension(null, outLayerName,
Math.min(uLayerLength, vLayerLength));
Dimension latDim = writer.addDimension(null, outLatName,
Math.min(uLatLength, vLatLength));
Dimension lonDim = writer.addDimension(null, outLonName,
Math.min(uLonLength, vLonLength));
// Add to a list - this becomes the coordinate system for the output
// variable
dims.add(timeDim);
dims.add(layerDim);
dims.add(latDim);
dims.add(lonDim);
// Create variables in the output file
Variable time = writer.addVariable(null, outTimeName, DataType.DOUBLE,
Arrays.asList(timeDim));
Variable layer = writer.addVariable(null, outLayerName, DataType.DOUBLE,
Arrays.asList(layerDim));
Variable lat = writer.addVariable(null, outLatName, DataType.DOUBLE,
Arrays.asList(latDim));
Variable lon = writer.addVariable(null, outLonName, DataType.DOUBLE,
Arrays.asList(lonDim));
// outfile.setLargeFile(true);
var = writer.addVariable(null, outVarName, DataType.FLOAT, dims);
// Add attribute information (cloned from source)
cloneAttributes(uFile, inTimeName, writer, time);
cloneAttributes(uFile, inLayerName, writer, layer);
cloneAttributes(uFile, inLatName, writer, lat);
cloneAttributes(uFile, inLonName, writer, lon);
// Finalizes the structure of the output file, making the changes real.
writer.create();
// Write the static information for 1D axes.
writer.write(time, uFile.findVariable(inTimeName).read());
writer.write(layer, uFile.findVariable(inLayerName).read());
writer.write(lat, uFile.findVariable(inLatName).read());
writer.write(lon, uFile.findVariable(inLonName).read());
Variable u = uFile.findVariable(inUName);
Variable v = vFile.findVariable(inVName);
Variable latdim = uFile.findVariable(inLatName);
Variable londim = uFile.findVariable(inLonName);
// Write the collar as NaNs.
writeCollar(uLayerLength, u.getShape());
// Calculate w values for each time, depth, lat and lon
// using 3x3 (horizontal) vertical pencils
for (int t = 0; t < u.getShape(0); t++) {
for (int i = 1; i < u.getShape(2) - 1; i++) {
Array lta = latdim.read(new int[] { i - 1 }, // move for
// speed
new int[] { 3 });
for (int j = 1; j < u.getShape(3) - 1; j++) {
Array lna = londim.read(new int[] { j - 1 },
new int[] { 3 });
Array uarr = u.read(new int[]{t,0,i-1,j-1}, new int[]{1,u.getShape()[1],3,3});
Array varr = v.read(new int[]{t,0,i-1,j-1}, new int[]{1,u.getShape()[1],3,3});
float[] w_arr = integrate(uarr, varr, lna, lta);
Array warra = Array.factory(java.lang.Float.class,
new int[] { 1, uLayerLength, 1, 1 }, w_arr);
writer.write(var, new int[] { t, 0, i, j }, warra);
}
System.out.println("\tRow " + i + " complete.");
}
System.out.printf("Time %d of " + (u.getShape(0))
+ " is complete.\n", t + 1);
}
return new NetcdfDataset(writer.getNetcdfFile());
}
public float[] integrate(Array u, Array v, Array lons, Array lats) {
int zdim = u.getShape()[1];
float[] w_arr = new float[zdim];
boolean alwaysNaN = true;
for (int k = zdim - 1; k >= 0; k--) {
// If we're at the top layer, check if all values have
// been NaN. If so, write NaN, otherwise, write 0.
if (k == 0) {
if (!alwaysNaN) {
w_arr[k] = 0;
} else {
w_arr[k] = Float.NaN;
}
continue;
}
// Read the 3x3 u and v kernels
Array ua = null;
Array va = null;
try {
ua = u.section(new int[]{0,k,0,0}, new int[]{1,1,3,3});
va = v.section(new int[]{0,k,0,0}, new int[]{1,1,3,3});
} catch (InvalidRangeException e) {
e.printStackTrace();
}
float dwdz = calcdwdz(lats, lons, ua, va);
if (Float.isNaN(dwdz)) {
w_arr[k] = Float.NaN;
continue;
}
if (alwaysNaN) {
w_arr[k] = dwdz;
alwaysNaN = false;
} else {
w_arr[k] = w_arr[k + 1] + dwdz;
}
}
return w_arr;
}
public void go() {
System.out.println("Writing to " + outputWFile + "...");
try {
uFile = NetcdfDataset.openDataset(inputUFile);
vFile = NetcdfDataset.openDataset(inputVFile);
generate(uFile, vFile);
} catch (IOException e) {
e.printStackTrace();
} catch (InvalidRangeException e) {
e.printStackTrace();
}
System.out.println("Complete.");
}
public void writeCollar(int layerLength, int[] shape) {
float[] nan = new float[layerLength];
for (int n = 0; n < layerLength; n++) {
nan[n] = Float.NaN;
}
Array nana = Array.factory(java.lang.Float.class, new int[] { 1,
layerLength, 1, 1 }, nan);
try {
for (int t = 0; t < shape[0]; t++) {
for (int j = 0; j < shape[3]; j++) {
writer.write(var, new int[] { t, 0, 0, j }, nana);
writer.write(var, new int[] { t, 0, shape[2] - 1, j },
nana);
}
for (int i = 1; i < shape[2] - 1; i++) {
writer.write(var, new int[] { t, 0, i, 0 }, nana);
writer.write(var, new int[] { t, 0, i, shape[3] - 1 },
nana);
}
}
} catch (IOException e) {
e.printStackTrace();
} catch (InvalidRangeException e) {
e.printStackTrace();
}
}
/**
* Projects the arrays of longitudes and latitudes to a Cylindrical
* Equidistant Projection to bring x,y and z into a uniform coordinate
* system (meters).
*
* @param lons
* @param lats
* @return
*/
private Array[] prj2meters(Array lons, Array lats) {
Array[] out = new Array[2];
Index ltidx = Index.factory(lats.getShape());
Index lnidx = Index.factory(lons.getShape());
Array lats_prj = Array.factory(java.lang.Double.class, lats.getShape());
Array lons_prj = Array.factory(java.lang.Double.class, lons.getShape());
for (int i = 0; i < lats.getSize(); i++) {
for (int j = 0; j < lons.getSize(); j++) {
float lon_dd = lons.getFloat(lnidx.set(j));
float lat_dd = lats.getFloat(ltidx.set(i));
double[] prj = MatrixUtilities.lonlat2ceqd(new double[] {
lon_dd, lat_dd });
lons_prj.setDouble(lnidx.set(j), prj[0]);
lats_prj.setDouble(ltidx.set(i), prj[1]);
}
}
out[0] = lons_prj;
out[1] = lats_prj;
return out;
}
/**
* Retrieves the name of the Latitude Variable
*
* @return
*/
public String getInLatName() {
return inLatName;
}
/**
* Retrieves the name of the Depth Variable
*
* @return
*/
public String getInLayerName() {
return inLayerName;
}
/**
* Retrieves the name of the Longitude Variable
*
* @return
*/
public String getInLonName() {
return inLonName;
}
/**
* Retrieves the u-velocity input file
*
* @return
*/
public String getInputUFile() {
return inputUFile;
}
/**
* Retrieves the v-velocity input file
*
* @return
*/
public String getInputVFile() {
return inputVFile;
}
/**
* Retrieves the name of the Time Variable
*
* @return
*/
public String getInTimeName() {
return inTimeName;
}
/**
* Retrieves the name of the u (east-west velocity) Variable
*
* @return
*/
public String getInUName() {
return inUName;
}
/**
* Retrieves the name of the v (east-west velocity) Variable
*
* @return
*/
public String getInVName() {
return inVName;
}
/**
* Retrieves the name of the output Latitude Variable
*
* @return
*/
public String getOutLatName() {
return outLatName;
}
/**
* Retrieves the name of the output Depth Variable
*
* @return
*/
public String getOutLayerName() {
return outLayerName;
}
/**
* Retrieves the name of the output Longitude Variable
*
* @return
*/
public String getOutLonName() {
return outLonName;
}
/**
* Retrieves the name of the output w file
*
* @return
*/
public String getOutputWFile() {
return outputWFile;
}
/**
* Retrieves the name of the output Time Variable
*
* @return
*/
public String getOutTimeName() {
return outTimeName;
}
/**
* Retrieves the name of the output Variable
*
* @return
*/
public String getOutVarName() {
return outVarName;
}
/**
* Sets the name of the input Latitude Variable
*
* @param inLatName
*/
public void setInLatName(String inLatName) {
this.inLatName = inLatName;
}
/**
* Sets the name of the input Depth Variable
*
* @param inLayerName
*/
public void setInLayerName(String inLayerName) {
this.inLayerName = inLayerName;
}
/**
* Sets the name of the input Longitude Variable
*
* @param inLonName
*/
public void setInLonName(String inLonName) {
this.inLonName = inLonName;
}
/**
* Sets the name of the input u (east-west) velocity file
*
* @param inputUFile
*/
public void setInputUFile(String inputUFile) {
this.inputUFile = inputUFile;
}
/**
* Sets the name of the input v (north-south) velocity file
*
* @param inputVFile
*/
public void setInputVFile(String inputVFile) {
this.inputVFile = inputVFile;
}
/**
* Sets the name of the input Time Variable
*
* @param inTimeName
*/
public void setInTimeName(String inTimeName) {
this.inTimeName = inTimeName;
}
/**
* Sets the name of the input u (east-west) velocity Variable
*
* @param inUName
*/
public void setInUName(String inUName) {
this.inUName = inUName;
}
/**
* Sets the name of the input v (north-south) velocity Variable
*
* @param inVName
*/
public void setInVName(String inVName) {
this.inVName = inVName;
}
/**
* Sets the name of the output Latitude Variable
*
* @param outLatName
*/
public void setOutLatName(String outLatName) {
this.outLatName = outLatName;
}
/**
* Sets the name of the output Depth Variable
*
* @param outLayerName
*/
public void setOutLayerName(String outLayerName) {
this.outLayerName = outLayerName;
}
/**
* Sets the name of the output Longitude Variable
*
* @param outLonName
*/
public void setOutLonName(String outLonName) {
this.outLonName = outLonName;
}
/**
* Sets the name of the output w velocity file
*
* @param outputWFile
*/
public void setOutputWFile(String outputWFile) {
this.outputWFile = outputWFile;
}
/**
* Sets the name of the output Time Variable
*
* @param outTimeName
*/
public void setOutTimeName(String outTimeName) {
this.outTimeName = outTimeName;
}
/**
* Sets the name of the output Variable
*
* @param outVarName
*/
public void setOutVarName(String outVarName) {
this.outVarName = outVarName;
}
public void setReproject(boolean reproject) {
this.reproject = reproject;
}
} | [
"johnathan.kool@ga.gov.au"
] | johnathan.kool@ga.gov.au |
3884c8aa1ce8d7acd0b9557e33c16eae7d428539 | 47fa77e1936ef72b53885a0ed3de3fa960db65ec | /data_structure/BST practise/src/com/pp/demo/Main (2020_11_23 15_04_39 UTC).java | 0290a8b0739efa21b47b5dc8ab5b18eaf13dfcfa | [] | no_license | Himanshu-abc/Eclipse_workspaces_2018 | afded2cf43831494df02861ee4e515c7e24f00f8 | 87d744ad74b5908cb51d2dea044056ee8f8a5e55 | refs/heads/master | 2023-07-03T20:48:55.594079 | 2021-08-14T16:52:17 | 2021-08-14T16:52:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 180 | java | package com.pp.demo;
public class Main {
public static void main(String[] args) {
BST bst=new BST();
bst.insert(5);
bst.insert(3);
bst.insert(4);
bst.search(4);
}
}
| [
"himanshupatidar663@gmail.com"
] | himanshupatidar663@gmail.com |
125078f908a826ab6f95c5430c264804f409b699 | ec67aaabcd3cb04c5e6bc547331ecbc718557c93 | /halftone/Halftoner-1.java | 8698211f7132b53eac82fb565aef0b397fbb8108 | [
"Apache-2.0"
] | permissive | danfuzz/archive | a0dba5e9a2ea6342b24c9ca730e943935b9dd418 | c2d9c9fa1b5b68b8d907056dada3e22359c32196 | refs/heads/main | 2022-11-05T04:16:44.921404 | 2022-11-03T16:59:32 | 2022-11-03T16:59:32 | 86,256,929 | 3 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,695 | java | import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
public class Halftoner {
private static final int CELL_SIZE = 9;
public static void main(String[] args) throws IOException {
File readFile = new File(args[0]);
File writeFile = new File(args[1]);
doit(readFile, writeFile);
}
private static void doit(File readFile, File writeFile)
throws IOException {
System.err.println("=== reading");
BufferedImage image = ImageIO.read(readFile);
int width = image.getWidth();
int height = image.getHeight();
int[] rgb = new int[width * height];
System.err.println("=== " + width + "x" + height);
System.err.println("=== getting");
image.getRGB(0, 0, width, height, rgb, 0, width);
System.err.println("=== processing");
new Mechanism(rgb, width, height).process();
System.err.println("=== setting");
image.setRGB(0, 0, width, height, rgb, 0, width);
System.err.println("=== writing");
ImageIO.write(image, "png", writeFile);
}
private static class Mechanism {
private final int[] rgb;
private final int width;
private final int height;
private final int widthCells;
private final int heightCells;
private final int maxPossibleTotal;
private final int patternCount;
private final int[][] patterns;
public Mechanism(int[] rgb, int width, int height) {
this.rgb = rgb;
this.width = width;
this.height = height;
widthCells = (width + CELL_SIZE - 1) / CELL_SIZE;
heightCells = (height + CELL_SIZE - 1) / CELL_SIZE;
maxPossibleTotal = CELL_SIZE * CELL_SIZE * (255 * 3);
patternCount = CELL_SIZE * CELL_SIZE + 1;
patterns = new int[patternCount][CELL_SIZE * CELL_SIZE];
createPatterns();
}
public void process() {
for (int y = 0; y < heightCells; y++) {
for (int x = 0; x < widthCells; x++) {
processCell(x, y);
}
}
}
private void processCell(int x, int y) {
int total = getCellTotal(x, y);
int whichPattern = (total * patternCount) / (maxPossibleTotal + 1);
try {
putPatternInCell(patterns[whichPattern], x, y);
} catch (RuntimeException ex) {
System.err.println("=== total " + total);
System.err.println("=== pcount " + patternCount);
System.err.println("=== max " + maxPossibleTotal);
throw ex;
}
}
private int getCellTotal(int x, int y) {
int baseX = x * CELL_SIZE;
int baseY = y * CELL_SIZE;
int maxX = CELL_SIZE;
int maxY = CELL_SIZE;
int total = 0;
if ((baseX + maxX) > width) {
maxX = width - baseX;
}
if ((baseY + maxY) > height) {
maxY = height - baseY;
}
for (int y1 = 0; y1 < maxY; y1++) {
int offset = (baseY + y1) * width + baseX;
for (int x1 = 0; x1 < maxX; x1++) {
int one = rgb[offset + x1];
int r = one & 0xff;
int g = (one >> 8) & 0xff;
int b = (one >> 16) & 0xff;
total += r + g + b;
}
}
return total;
}
private void putPatternInCell(int[] pattern, int x, int y) {
int baseX = x * CELL_SIZE;
int baseY = y * CELL_SIZE;
int maxX = CELL_SIZE;
int maxY = CELL_SIZE;
if ((baseX + maxX) > width) {
maxX = width - baseX;
}
if ((baseY + maxY) > height) {
maxY = height - baseY;
}
for (int y1 = 0; y1 < maxY; y1++) {
int offset = (baseY + y1) * width + baseX;
int patOffset = y1 * CELL_SIZE;
for (int x1 = 0; x1 < maxX; x1++) {
rgb[offset + x1] = pattern[patOffset + x1];
}
}
}
private void createPatterns() {
for (int p = 1; p < patternCount; p++) {
int[] pattern = patterns[p];
System.arraycopy(patterns[p - 1], 0, patterns[p], 0,
pattern.length);
pattern[p - 1] = 0xffffff;
}
}
}
}
| [
"danfuzz@milk.com"
] | danfuzz@milk.com |
d0fab5d33305ecc277b5303389be33f68d4a853f | c802775f68311ea16c9fc109b23d1595df4d8676 | /DVDLibraryWeb.3/src/main/java/Com/MyCompany/Dvdlibraryweb/Controllers/HomeController.java | e9c6ebcb0e2e841d6ff6f9aae89d2a70860a39b6 | [] | no_license | davidKolesar/DVD-Library-Web- | 34345d693c2ed40830fd22a383483e2fd0803785 | 3eba6878febd93a7ca9f9b52e51e10307344ba84 | refs/heads/master | 2021-08-30T10:31:19.593987 | 2017-12-17T14:24:43 | 2017-12-17T14:24:43 | 114,541,988 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,261 | 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 Com.MyCompany.Dvdlibraryweb.Controllers;
import Com.MyCompany.Dvdlibraryweb.Dao.DVDDao;
import Com.MyCompany.Dvdlibraryweb.Dao.NoteDao;
import Com.MyCompany.Dvdlibraryweb.Dto.AddDVDCommand;
import Com.MyCompany.Dvdlibraryweb.Dto.DVD;
import java.util.List;
import java.util.Map;
import javax.inject.Inject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
*
* @author David Kolesar
*/
@Controller
public class HomeController {
private DVDDao dvdDao;
private NoteDao noteDao;
@Inject
public HomeController(DVDDao dvdDao, NoteDao noteDao) {
this.dvdDao = dvdDao;
this.noteDao = noteDao;
}
@RequestMapping(value="/", method=RequestMethod.GET)
public String home(Map model) {
List<DVD> dvdList = dvdDao.list();
model.put("dvdList", dvdList);
model.put("addDVDCommand", new AddDVDCommand());
return "home";
}
}
| [
"djkolesa@gmail.com"
] | djkolesa@gmail.com |
c15dce6ea889bc51174a55076549b66196543519 | bad0986586589f69c22ac5bbf693a09561061005 | /Hello1Interpreter/src/hello/Operation.java | d4fe35bcebb1137246015cf8d38cba18913055c8 | [] | no_license | Sylphy0052/vax_hello_interpreter | bebe738c0b2e40d89503a17bded178dc3f0f8d1c | ddba92625b985c480505f731cf008929d7af321d | refs/heads/master | 2021-01-01T06:14:43.066839 | 2017-07-16T15:00:52 | 2017-07-16T15:00:52 | 97,390,779 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 514 | java | package hello;
public class Operation {
private int operandNum;
private String name;
private Operand operand[];
public Operation(String name) {
this.name = name;
this.operand = null;
operandNum = 0;
}
public Operation(String name, Operand operand[]) {
this.name = name;
this.operand = operand;
operandNum = operand.length;
}
public String getName() {
return name;
}
public Operand[] getOperand() {
return operand;
}
public int getOperandNum() {
return operandNum;
}
}
| [
"al13095@shibaura-it.ac.jp"
] | al13095@shibaura-it.ac.jp |
cc6b4af3b53defffa5d27cb3dab315e110c03e33 | 3e96f3b8a3ca81ba0af1d971e4d1fa047f33efde | /health_project/health-weixin-web/src/main/java/com/health/weixin/Controller/SetmealController.java | 5b5ec27cca5db4715e5f3b5d91391032bebe85bd | [] | no_license | publicpop/pinyougou | 19c641be3b1855e0718f187a60e476c928f5e65e | 50155acf6093a935ae9f4166721a8f0dbedf1d9d | refs/heads/master | 2022-12-30T05:57:08.837718 | 2019-08-16T03:02:29 | 2019-08-16T03:02:29 | 202,648,833 | 0 | 0 | null | 2022-12-16T07:15:05 | 2019-08-16T03:03:56 | JavaScript | UTF-8 | Java | false | false | 2,414 | java | package com.health.weixin.Controller;
import com.alibaba.dubbo.config.annotation.Reference;
import com.health.pojo.CheckGroup;
import com.health.pojo.CheckItem;
import com.health.pojo.Setmeal;
import com.health.service.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
@RestController
@RequestMapping("setmeal")
public class SetmealController {
@Reference
private SetmealService setmealService;
/**
* 返回全部列表
* @return
*/
@RequestMapping("/getSetmeal")
public List<Setmeal> findAll(){
return setmealService.findAll();
}
@Reference
private SetmealAndCheckGroupService setmealAndCheckGroupService;
@Reference
private CheckgroupService checkgroupService;
@Reference
private CheckitemService checkitemService;
@Reference
private CheckitemAndCheckGroupService checkitemAndCheckGroup;
@RequestMapping("/findById")
/**
* 根据id查询套餐详细信息
* @param id
* @Return:
*/
public Setmeal findOne(Integer id){
//获取检查组的id
List<Integer> checkGroupIds = setmealAndCheckGroupService.searchSetmealIdByCheckGroupId(id);//获取套餐对应的检查组id
Setmeal setmeal = setmealService.findOne(id);//获取套餐信息
List<CheckGroup> checkGroups = new ArrayList<>();
//查询检查组并将其添加至检查组集合
for (Integer checkGroupId : checkGroupIds) {
List<CheckItem> checkItems = new ArrayList<>();
//获取检查组
CheckGroup checkGroup = checkgroupService.findOne(checkGroupId);
//获取当前检查组对应的检查项
List<Integer> checkitemIds = checkitemAndCheckGroup.searchCheckitemIdByCheckGroupId(checkGroupId);
for (Integer checkitemId : checkitemIds) {
//获取检查项
CheckItem checkItem = checkitemService.findOne(checkitemId);
checkItems.add(checkItem);
}
//添加检查项集合
checkGroup.setCheckItems(checkItems);
checkGroups.add(checkGroup);
}
//添加检查组集合
setmeal.setCheckGroups(checkGroups);
//返回套餐数据
return setmeal;
}
}
| [
"412720894@qq.com"
] | 412720894@qq.com |
3419b3903902f4bd59a77004812de7ab6c49504f | 406aa14ae097b06cedcf3f292d96d44b19ef67b7 | /hospital/src/main/java/com/neu/config/MybatisPlusConfig.java | 9d62fcb92bb38570c6b0d5317c811692322834f8 | [] | no_license | afreshboy/HospitalSystem | 8a66124f585c07ec43660685fe491edd0f75f35e | 60ff51a70d9930dbe1c38ae4ef5532cb1db50eb2 | refs/heads/master | 2023-03-29T10:51:32.868041 | 2021-03-23T08:46:26 | 2021-03-23T08:46:26 | 350,568,598 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 645 | java | package com.neu.config;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@Configuration
@EnableTransactionManagement
@MapperScan("com.neu.mapper")
public class MybatisPlusConfig {
@Bean
public PaginationInterceptor paginationInterceptor() {
PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
return paginationInterceptor;
}
}
| [
"724632296@qq.com"
] | 724632296@qq.com |
4f4f94c39a3425b04eed6bc150b85fc9f5986fb7 | 69f0384e226f76286c5e4a0d9e3e606c07dce863 | /Braille_Learning/Braille_learning/app/src/main/java/com/example/yeo/practice/Talkback_version_menu/Talk_Menu_Braille_translation.java | bebbe6c6f2baf8fb3c10b274d55160a101626b42 | [] | no_license | ch-Yoon/trio | 85201f39ae5b17509f11b3a822daf38303b4cd68 | 63df3673d118cb426ca99110e676ae7f9ba29f91 | refs/heads/master | 2020-04-27T13:49:07.241882 | 2017-05-16T02:38:53 | 2017-05-16T02:38:53 | 78,740,712 | 0 | 0 | null | 2017-01-12T11:53:27 | 2017-01-12T11:53:27 | null | UTF-8 | Java | false | false | 10,007 | java | package com.example.yeo.practice.Talkback_version_menu;
import android.content.Intent;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.MotionEvent;
import android.view.View;
import com.example.yeo.practice.Common_menu_display.Common_menu_display;
import com.example.yeo.practice.Common_menu_sound.Menu_basic_service;
import com.example.yeo.practice.Common_menu_sound.Menu_detail_service;
import com.example.yeo.practice.Common_menu_sound.Menu_main_service;
import com.example.yeo.practice.Common_trans_sound.Braille_trans_service;
import com.example.yeo.practice.Normal_version_Display_Practice.Braille_long_practice;
import com.example.yeo.practice.R;
import com.example.yeo.practice.Common_sound.slied;
import com.example.yeo.practice.*;
import com.example.yeo.practice.Talkback_version_Display_Practice.Talk_Braille_long_practice;
//기초과정 대 메뉴 화면
public class Talk_Menu_Braille_translation extends FragmentActivity {
Common_menu_display m;
int finger_x[] = new int[3];
int finger_y[] = new int[3];
int newdrag,olddrag;
int posx1,posx2,posy1,posy2;
int y1drag,y2drag;
boolean enter = true;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
View decorView = getWindow().getDecorView();
int uiOption = getWindow().getDecorView().getSystemUiVisibility();
if( Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH )
uiOption |= View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
if( Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN )
uiOption |= View.SYSTEM_UI_FLAG_FULLSCREEN;
if( Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT )
uiOption |= View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
decorView.setSystemUiVisibility( uiOption );
Menu_info.DISPLAY = Menu_info.DISPLAY_TRANS;
m = new Common_menu_display(this);
m.setBackgroundColor(Color.rgb(22,26,44));
setContentView(m);
m.setOnHoverListener(new View.OnHoverListener() {
@Override
public boolean onHover(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_HOVER_ENTER: //손가락 1개를 화면에 터치하였을 경우
startService(new Intent(Talk_Menu_Braille_translation.this, Sound_Manager.class));
posx1 = (int)event.getX();//현재 좌표의 x좌표값 저장
posy1 = (int)event.getY();//현재 좌표의 y좌표값 저장
break;
case MotionEvent.ACTION_HOVER_EXIT: // 손가락 1개를 화면에서 떨어트렸을 경우
posx2 = (int)event.getX();//손가락 1개를 화면에서 떨어트린 x좌표값 저장
posy2 = (int)event.getY();//손가락 1개를 화면에서 떨어트린 y좌표값 저장
if(enter == true) {
//손가락 1개를 떨어트린 x,y좌표 지점에 다시 클릭이 이루어진다면 기초과정으로 접속
if (posx2 < posx1 + WHclass.Touch_space && posx2 > posx1 - WHclass.Touch_space && posy1 < posy2 + WHclass.Touch_space && posy2 > posy2 - WHclass.Touch_space) {
Menu_info.MENU_INFO = Menu_info.MENU_TRANSLATION;
WHclass.sel = Menu_info.MENU_TRANSLATION;
Intent intent = new Intent(Talk_Menu_Braille_translation.this, Talk_Braille_long_practice.class);
startActivityForResult(intent, Menu_info.MENU_BRAILLE_TRANSLATION);
overridePendingTransition(R.anim.fade, R.anim.hold);
Braille_trans_service.menu_page = Menu_info.TRANS_INFO;
startService(new Intent(Talk_Menu_Braille_translation.this, Braille_trans_service.class));
}
}
break;
}
return false;
}
});
}
@Override
public void onPause(){
super.onPause();
m.free();
}
@Override
public void onRestart(){
super.onRestart();
Menu_info.DISPLAY = Menu_info.DISPLAY_TRANS;
m = new Common_menu_display(this);
m.setBackgroundColor(Color.rgb(22,26,44));
setContentView(m);
m.setOnHoverListener(new View.OnHoverListener() {
@Override
public boolean onHover(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_HOVER_ENTER: //손가락 1개를 화면에 터치하였을 경우
startService(new Intent(Talk_Menu_Braille_translation.this, Sound_Manager.class));
posx1 = (int)event.getX();//현재 좌표의 x좌표값 저장
posy1 = (int)event.getY();//현재 좌표의 y좌표값 저장
break;
case MotionEvent.ACTION_HOVER_EXIT: // 손가락 1개를 화면에서 떨어트렸을 경우
posx2 = (int)event.getX();//손가락 1개를 화면에서 떨어트린 x좌표값 저장
posy2 = (int)event.getY();//손가락 1개를 화면에서 떨어트린 y좌표값 저장
if(enter == true) {
//손가락 1개를 떨어트린 x,y좌표 지점에 다시 클릭이 이루어진다면 기초과정으로 접속
if (posx2 < posx1 + WHclass.Touch_space && posx2 > posx1 - WHclass.Touch_space && posy1 < posy2 + WHclass.Touch_space && posy2 > posy2 - WHclass.Touch_space) {
Menu_info.MENU_INFO = Menu_info.MENU_TRANSLATION;
WHclass.sel = Menu_info.MENU_TRANSLATION;
Intent intent = new Intent(Talk_Menu_Braille_translation.this, Talk_Braille_long_practice.class);
startActivityForResult(intent, Menu_info.MENU_BRAILLE_TRANSLATION);
overridePendingTransition(R.anim.fade, R.anim.hold);
Braille_trans_service.menu_page = Menu_info.TRANS_INFO;
startService(new Intent(Talk_Menu_Braille_translation.this, Braille_trans_service.class));
}
}
break;
}
return false;
}
});
}
@Override
public boolean onTouchEvent(MotionEvent event) {
switch(event.getAction() & MotionEvent.ACTION_MASK) {
case MotionEvent.ACTION_DOWN://손가락 1개를 화면에 터치하였을 경우
startService(new Intent(Talk_Menu_Braille_translation.this, Sound_Manager.class));
enter = false;//손가락 1개를 인지하는 화면을 잠금
olddrag = (int)event.getX(); // 두번째 손가락이 터지된 지점의 x좌표값 저장
y1drag = (int) event.getY(); // 두번째 손가락이 터지된 지점의 y좌표값 저장
break; case MotionEvent.ACTION_UP: // 손가락 1개를 화면에서 떨어트렸을 경우
newdrag = (int)event.getX();// 두번째 손가락이 떨어진 지점의 x좌표값 저장
y2drag = (int)event.getY();// 두번째 손가락이 떨어진 지점의 y좌표값 저장
if(olddrag-newdrag>WHclass.Drag_space) { //손가락 2개를 이용하여 오른쪽에서 왼쪽으로 드래그할 경우 다음 메뉴로 이동
Intent intent = new Intent(this,Talk_Menu_quiz.class);
startActivityForResult(intent,Menu_info.MENU_QUIZ);
overridePendingTransition(R.anim.fade, R.anim.hold);
Menu_main_service.menu_page = Menu_info.MENU_QUIZ;
slied.slied =Menu_info.next;
startService(new Intent(this, slied.class));
startService(new Intent(this, Menu_main_service.class));
finish();
}
else if(newdrag-olddrag>WHclass.Drag_space) {//손가락 2개를 이용하여 왼쪽에서 오른쪽으로 드래그 할 경우 이전 메뉴로 이동
Intent intent = new Intent(this,Talk_Menu_master_practice.class);
startActivityForResult(intent,Menu_info.MENU_MASTER_PRACTICE);
overridePendingTransition(R.anim.fade, R.anim.hold);
Menu_main_service.menu_page = Menu_info.MENU_MASTER_PRACTICE;
slied.slied = Menu_info.pre;
startService(new Intent(this, slied.class));
startService(new Intent(this, Menu_main_service.class));
finish();
}
else if(y2drag-y1drag> WHclass.Drag_space) { //손가락 2개를 이용하여 상단에서 하단으로 드래그할 경우 현재 메뉴의 상세정보 음성 출력
Menu_detail_service.menu_page=2;
startService(new Intent(this, Menu_detail_service.class));
}
else if (y1drag - y2drag > WHclass.Drag_space) {//손가락 2개를 이용하여 하단에서 상단으로 드래그할 경우 현재 메뉴를 종료
onBackPressed();
}
break;
}
return true;
}
@Override
public void onBackPressed() { //종료키를 눌렀을 경우
Menu_main_service.finish=true;
startService(new Intent(this,Menu_main_service.class));
finish();
}
}
| [
"chanhyuck1021@naver.com"
] | chanhyuck1021@naver.com |
2c5358bb5dc67f74fdf19a7e163ba439e3970ec4 | f874bdd0f98de9359119a972cfc085bc7cb3c621 | /src/main/java/nl/ijmker/test/rs/filter/LoggingFilter.java | f955832648b77956d735368fdfe665cbac7cdeca | [] | no_license | jjijmker/OAuthTestWeb | 54d37e2cd0007ebd7fa9a82fbd4e762de0282422 | 9a0c78509df682e4b6d45254f6bbfacd9549d9fa | refs/heads/master | 2021-01-12T14:20:01.180145 | 2016-10-14T09:08:54 | 2016-10-14T09:08:54 | 69,200,275 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 516 | java | package nl.ijmker.test.rs.filter;
import java.io.IOException;
import javax.ws.rs.client.ClientRequestContext;
import javax.ws.rs.client.ClientRequestFilter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LoggingFilter implements ClientRequestFilter {
private static final Logger LOG = LoggerFactory.getLogger(LoggingFilter.class);
@Override
public void filter(ClientRequestContext requestContext) throws IOException {
LOG.info("Entity: " + requestContext.getEntity());
}
}
| [
"jan.ijmker@oakton.com.au"
] | jan.ijmker@oakton.com.au |
4c60d8735ddaf514b4f2a2d4c0a15924f36b5f08 | ba998ec44d59df248d6c7e93d1d73b803f160af2 | /app/src/main/java/com/nglinx/pulse/adapter/DeviceCatalogAdapter.java | d00a4ced4736fc59d59768bc543374972a262fed | [] | no_license | yrprasad/Famlinx | 2f5888abf2a03072200d2786497c4e6f7e7eee77 | 103b4cb2ff1f2df5b895e4bda4b51f01249841b5 | refs/heads/master | 2020-03-13T14:19:30.237143 | 2019-02-14T13:29:16 | 2019-02-14T13:29:16 | 131,156,151 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,625 | java | package com.nglinx.pulse.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
import com.nglinx.pulse.R;
import com.nglinx.pulse.activity.DeviceCatelogActivity;
import com.nglinx.pulse.activity.NotificationActivity;
import com.nglinx.pulse.models.ChildUserModel;
import com.nglinx.pulse.models.DeviceModel;
import com.nglinx.pulse.models.DeviceStatus;
import com.nglinx.pulse.models.NotificationModel;
import java.util.ArrayList;
public class DeviceCatalogAdapter extends ArrayAdapter<DeviceModel> {
Context context;
ArrayList<ChildUserModel> childProfiles;
public DeviceCatalogAdapter(Context context, ArrayList<DeviceModel> devices, ArrayList<ChildUserModel> childProfiles) {
super(context, 0, devices);
this.context = context;
this.childProfiles = childProfiles;
}
@Override
public View getView(final int position, View convertView, final ViewGroup parent) {
// Get the data item for this position
DeviceModel deviceModel = null;
// Check if an existing view is being reused, otherwise inflate the view
if (convertView == null) {
convertView = LayoutInflater.from(getContext()).inflate(R.layout.activity_device_catalog_row, parent, false);
deviceModel = getItem(position);
convertView.setTag(deviceModel);
} else
deviceModel = getItem(position);
// Lookup view for data population
// TextView device_modified_date = (TextView) convertView.findViewById(R.id.device_modified_date);
TextView tv_device_udid = (TextView) convertView.findViewById(R.id.tv_device_udid);
TextView tv_date_modified = (TextView) convertView.findViewById(R.id.tv_date_modified);
TextView tv_status_state = (TextView) convertView.findViewById(R.id.tv_status_state);
// Populate the data into the template view using the data object
// device_modified_date.setText(deviceModel.getModifiedDate());
tv_device_udid.setText(deviceModel.getUdid());
tv_date_modified.setText(deviceModel.getModifiedDate());
String statusState = "";
if (deviceModel.isActivated())
statusState = statusState.concat("Active");
else
statusState = statusState.concat("InActive");
final ChildUserModel userAttached = getAttachedProfileForDevice(deviceModel.getUdid());
if (null == userAttached)
statusState = statusState.concat(", " + "Not Attached.");
else
statusState = statusState.concat("Attached to " + userAttached.getUsername());
tv_status_state.setText(statusState);
final ImageView img_activate_device = (ImageView) convertView.findViewById(R.id.img_activate_device);
img_activate_device.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
((DeviceCatelogActivity) context).onItemClick(img_activate_device, position, 0);
}
});
// Return the completed view to render on screen
return convertView;
}
private ChildUserModel getAttachedProfileForDevice(final String udid) {
for (ChildUserModel user :
childProfiles) {
if ((null != user.getUdid()) && (user.getUdid().equalsIgnoreCase(udid)))
return user;
}
return null;
}
} | [
"raghavendra.pra.yelisetty@hpe.com"
] | raghavendra.pra.yelisetty@hpe.com |
b99503359fef8e5a7e4be8585d54bb632f8a0d90 | 3c24b3c1a7ee2e303fa2d75187e0f773886f5741 | /test2/src/main/java/com/qingyang/test/TestController.java | 28a9f6abeefbe92927098aab10dbfa962a395952 | [] | no_license | fangdong116/data-burying | 8ec7c69e04966cabdb72327a8eb0e2bf763c9189 | fa359bb52b801293cef5e83d632667d5bce9a561 | refs/heads/master | 2020-04-12T14:38:16.121844 | 2018-12-20T09:39:16 | 2018-12-20T09:39:16 | 162,557,784 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 719 | java | package com.qingyang.test;
import com.alibaba.fastjson.JSON;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
* @author qingyang
* @date 2018/11/15.
*/
@RestController("/test")
public class TestController {
@Resource
TestService testService;
@RequestMapping(value = "/hello")
public String helloWorld(){
return "helloWorld";
}
@RequestMapping(value = "/select")
public String select(){
List<CarMakeEntity> s= testService.select();
return JSON.toJSONString(s);
}
}
| [
"qingyang@xiaokakeji.com"
] | qingyang@xiaokakeji.com |
1f9afd4ea9942bbed56ad0f2b80fbd3c12e783f6 | 687ad64266358a8d6dba88ebb2e5431790fbe3e7 | /Structural/Decorator/FaceRecognitionAIDecorator.java | a63b43cd8eeb17dde138f63b340c0cc4c076e8e6 | [] | no_license | rmzcn/design_patterns | 4ab7cecd45ba1eeaa97d4351e1fe77df44c0623a | 8fe5f2d07718bd3a97d6464ae81d5ae8ba4b9d49 | refs/heads/master | 2023-02-11T00:05:39.459574 | 2021-01-10T20:55:21 | 2021-01-10T20:55:21 | 324,346,410 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 590 | java | package Structural.Decorator;
public class FaceRecognitionAIDecorator extends AIDecorator {
private String faceTrainData;
public FaceRecognitionAIDecorator(IArtificialIntelligence AI, String faceTrainData) {
super(AI);
this.faceTrainData = faceTrainData;
}
@Override
public void train() {
super.train();
System.out.println("The model is training with : "+ faceTrainData);
}
@Override
public void recognizeObject() {
super.recognizeObject();
System.out.println("Person recognized from the picture");
}
}
| [
"ramazancangolgen@gmail.com"
] | ramazancangolgen@gmail.com |
1cf767eaad345b64e3f46dcbfa57e2c60b2e57a6 | e89c5a89bec509c25b84dd994f1cf09241d72a10 | /src/main/java/cn/et/lesson03/food/controller/FoodController.java | 522d70f1ba3b6baa71969e6c5565ad2a7d30b430 | [] | no_license | Ida825/SpringBoot | 174a25b08cc73d78f429dd5cf188448fe8a0729a | d1bdeca0bdb501d8588c8bf5b3ac14d9a0372e0d | refs/heads/master | 2021-09-01T22:44:33.337740 | 2017-12-29T01:05:15 | 2017-12-29T01:05:15 | 115,672,354 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,456 | java | package cn.et.lesson03.food.controller;
import java.io.File;
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.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import cn.et.lesson03.food.entity.Food;
import cn.et.lesson03.food.entity.Result;
import cn.et.lesson03.food.service.FoodService;
import cn.et.lesson03.food.utils.PageTools;
@RestController
public class FoodController {
@Autowired
FoodService service;
//����json
@ResponseBody
@RequestMapping("/queryFood")
public PageTools queryFood(String foodname,Integer page,Integer rows){
return service.queryFood(foodname,page,rows);
}
@ResponseBody
@RequestMapping("/saveFood")
public Result saveFood(Food food,MultipartFile myImage){
Result r = new Result();
r.setCode(1);
try {
//��ȡ�ļ���
String fileName = myImage.getOriginalFilename();
File destFile = new File("E:\\myImage\\"+fileName);
//���ļ�����ָ��λ��
myImage.transferTo(destFile);
service.saveFood(food);
} catch (Exception e) {
r.setCode(0);
r.setMessage(e);
}
return r;
}
@ResponseBody
@RequestMapping(value="/deleteFood/{foodid}",method=RequestMethod.DELETE)
public Result deleteFood(@PathVariable String foodid,Integer page,Integer rows){
Result r = new Result();
r.setCode(1);
String[] str=foodid.split(",");
try {
//����쳣
/*String str=null;
str.toString();*/
for(int i=0;i<str.length;i++){
//ɾ��
service.deleteFood(Integer.parseInt(str[i]));
}
} catch (Exception e) {
//ɾ��ʧ��
r.setCode(0);
r.setMessage(e);
}
return r;
}
@ResponseBody
@RequestMapping(value="/update/{foodid}",method=RequestMethod.PUT)
public Result updateFood(@PathVariable Integer foodid,Food food,Integer page,Integer rows){
food.setFoodid(foodid);
Result r = new Result();
r.setCode(1);
try {
service.updateFood(food);
} catch (Exception e) {
r.setCode(0);
r.setMessage(e);
}
return r;
}
}
| [
"Administrator@www.qq.com"
] | Administrator@www.qq.com |
dc360e86632ef999a60fc88e6fa4b2e66943c0fe | 3a9f18f663271d67dc392eb4fb7a60bc8b20c64f | /src/silver/Entity.java | 77cdf99bd7b4ccdd92cd44132e8ad36a8bd535ec | [
"BSD-2-Clause"
] | permissive | smeagolthellama/silver-past | a5c29bbe3e757510d1aaf97d9288fe90188febef | de657c34c371f8b6704cf967e23e4669095176a9 | refs/heads/main | 2023-03-03T18:16:46.985401 | 2021-02-15T09:55:56 | 2021-02-15T09:55:56 | 333,394,954 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 799 | java | package silver;
import java.awt.event.*;
import java.awt.image.*;
import java.io.*;
import javax.imageio.*;
import javax.swing.*;
public abstract class Entity extends JPanel implements MouseListener{
private static final long serialVersionUID = 6456829963586921495L;
protected int x;
protected int y;
protected String filename;
protected BufferedImage sprite;
//protected TODO Inventory;
public Entity(String fn) {
// TODO Auto-generated constructor stub
filename=fn;
x=y=0;
try {
sprite=ImageIO.read(new File(filename+".png"));
} catch (IOException e) {
e.printStackTrace();
}
}
public int GetX() {
return x;
}
public int GetY() {
return y;
}
public abstract void mouseClicked(MouseEvent me);
protected abstract void transform(String newFile);
}
| [
"magardner2010@gmail.com"
] | magardner2010@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.