blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 7
390
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
35
| license_type
stringclasses 2
values | repo_name
stringlengths 6
132
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringclasses 539
values | visit_date
timestamp[us]date 2016-08-02 21:09:20
2023-09-06 10:10:07
| revision_date
timestamp[us]date 1990-01-30 01:55:47
2023-09-05 21:45:37
| committer_date
timestamp[us]date 2003-07-12 18:48:29
2023-09-05 21:45:37
| github_id
int64 7.28k
684M
⌀ | star_events_count
int64 0
77.7k
| fork_events_count
int64 0
48k
| gha_license_id
stringclasses 13
values | gha_event_created_at
timestamp[us]date 2012-06-11 04:05:37
2023-09-14 21:59:18
⌀ | gha_created_at
timestamp[us]date 2008-05-22 07:58:19
2023-08-28 02:39:21
⌀ | gha_language
stringclasses 62
values | src_encoding
stringclasses 26
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 2
classes | length_bytes
int64 128
12.8k
| extension
stringclasses 11
values | content
stringlengths 128
8.19k
| authors
listlengths 1
1
| author_id
stringlengths 1
79
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d4fe0cc1b336a5c953269e7de834a71deff4babb
|
c97fd85a30567964d7dec42ca8a486624035acd6
|
/src/main/java/org/hibernate/sql/convert/spi/DomainReferenceRendererTemplate.java
|
3a6cae46b1c745684a2401c11d13d2622614ab7e
|
[] |
no_license
|
beikov/hibernate-orm-sqm-poc
|
ed05393991cbc133f5400ad924bccb29f540ae1e
|
2e687634caec5ed11e1133dccc3c4c36b4092a3c
|
refs/heads/master
| 2020-06-28T08:30:59.322684
| 2016-11-21T21:47:56
| 2016-11-21T21:47:56
| 74,497,229
| 0
| 0
| null | 2016-11-22T17:29:39
| 2016-11-22T17:29:39
| null |
UTF-8
|
Java
| false
| false
| 1,433
|
java
|
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
*/
package org.hibernate.sql.convert.spi;
import org.hibernate.sql.ast.expression.AttributeReference;
import org.hibernate.sql.ast.expression.DomainReference;
import org.hibernate.sql.ast.expression.EntityReference;
import org.hibernate.sql.ast.from.ColumnBinding;
/**
* @author Steve Ebersole
*/
public abstract class DomainReferenceRendererTemplate implements DomainReferenceRenderer {
private final RenderingContext renderingContext;
public DomainReferenceRendererTemplate(RenderingContext renderingContext) {
this.renderingContext = renderingContext;
}
protected void renderColumnBindings(ColumnBinding... columnBindings) {
renderingContext.renderColumnBindings( columnBindings );
}
@Override
public void render(DomainReference domainReference) {
if ( domainReference instanceof EntityReference ) {
renderEntityReference( (EntityReference) domainReference );
}
else if ( domainReference instanceof AttributeReference ) {
renderAttributeReference( (AttributeReference) domainReference );
}
}
protected abstract void renderEntityReference(EntityReference entityReference);
protected abstract void renderAttributeReference(AttributeReference attributeReference);
}
|
[
"steve@hibernate.org"
] |
steve@hibernate.org
|
d83f29604727aa61e8b02feac7d68b65bedc469e
|
4cb0fc395271904444fd3cee78c3f1e541bbab4e
|
/issuers/src/main/java/com/myapp/web/rest/CardResource.java
|
7c720d01b68d90226070731a3582f8cf63f72192
|
[] |
no_license
|
believefollow/microserveDH
|
d10af9cbf37720a8d4862a1566f9dab845b4ddc9
|
d320895c9b88d4b8576d4f5744ecb705f7674833
|
refs/heads/master
| 2023-01-03T18:52:43.562796
| 2020-10-29T14:06:38
| 2020-10-29T14:06:38
| 308,071,802
| 0
| 0
| null | 2020-10-29T14:06:39
| 2020-10-28T16:09:33
|
Java
|
UTF-8
|
Java
| false
| false
| 4,602
|
java
|
package com.myapp.web.rest;
import com.myapp.domain.Card;
import com.myapp.repository.CardRepository;
import com.myapp.web.rest.errors.BadRequestAlertException;
import io.github.jhipster.web.util.HeaderUtil;
import io.github.jhipster.web.util.ResponseUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.List;
import java.util.Optional;
/**
* REST controller for managing {@link com.myapp.domain.Card}.
*/
@RestController
@RequestMapping("/api")
@Transactional
public class CardResource {
private final Logger log = LoggerFactory.getLogger(CardResource.class);
private static final String ENTITY_NAME = "issuersCard";
@Value("${jhipster.clientApp.name}")
private String applicationName;
private final CardRepository cardRepository;
public CardResource(CardRepository cardRepository) {
this.cardRepository = cardRepository;
}
/**
* {@code POST /cards} : Create a new card.
*
* @param card the card to create.
* @return the {@link ResponseEntity} with status {@code 201 (Created)} and with body the new card, or with status {@code 400 (Bad Request)} if the card has already an ID.
* @throws URISyntaxException if the Location URI syntax is incorrect.
*/
@PostMapping("/cards")
public ResponseEntity<Card> createCard(@RequestBody Card card) throws URISyntaxException {
log.debug("REST request to save Card : {}", card);
if (card.getId() != null) {
throw new BadRequestAlertException("A new card cannot already have an ID", ENTITY_NAME, "idexists");
}
Card result = cardRepository.save(card);
return ResponseEntity.created(new URI("/api/cards/" + result.getId()))
.headers(HeaderUtil.createEntityCreationAlert(applicationName, true, ENTITY_NAME, result.getId().toString()))
.body(result);
}
/**
* {@code PUT /cards} : Updates an existing card.
*
* @param card the card to update.
* @return the {@link ResponseEntity} with status {@code 200 (OK)} and with body the updated card,
* or with status {@code 400 (Bad Request)} if the card is not valid,
* or with status {@code 500 (Internal Server Error)} if the card couldn't be updated.
* @throws URISyntaxException if the Location URI syntax is incorrect.
*/
@PutMapping("/cards")
public ResponseEntity<Card> updateCard(@RequestBody Card card) throws URISyntaxException {
log.debug("REST request to update Card : {}", card);
if (card.getId() == null) {
throw new BadRequestAlertException("Invalid id", ENTITY_NAME, "idnull");
}
Card result = cardRepository.save(card);
return ResponseEntity.ok()
.headers(HeaderUtil.createEntityUpdateAlert(applicationName, true, ENTITY_NAME, card.getId().toString()))
.body(result);
}
/**
* {@code GET /cards} : get all the cards.
*
* @return the {@link ResponseEntity} with status {@code 200 (OK)} and the list of cards in body.
*/
@GetMapping("/cards")
public List<Card> getAllCards() {
log.debug("REST request to get all Cards");
return cardRepository.findAll();
}
/**
* {@code GET /cards/:id} : get the "id" card.
*
* @param id the id of the card to retrieve.
* @return the {@link ResponseEntity} with status {@code 200 (OK)} and with body the card, or with status {@code 404 (Not Found)}.
*/
@GetMapping("/cards/{id}")
public ResponseEntity<Card> getCard(@PathVariable Long id) {
log.debug("REST request to get Card : {}", id);
Optional<Card> card = cardRepository.findById(id);
return ResponseUtil.wrapOrNotFound(card);
}
/**
* {@code DELETE /cards/:id} : delete the "id" card.
*
* @param id the id of the card to delete.
* @return the {@link ResponseEntity} with status {@code 204 (NO_CONTENT)}.
*/
@DeleteMapping("/cards/{id}")
public ResponseEntity<Void> deleteCard(@PathVariable Long id) {
log.debug("REST request to delete Card : {}", id);
cardRepository.deleteById(id);
return ResponseEntity.noContent().headers(HeaderUtil.createEntityDeletionAlert(applicationName, true, ENTITY_NAME, id.toString())).build();
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
793a65eb86f4cf23639c62398ea98ccb28a11783
|
3ae943cfac1890968a33daf895beca16a02386c2
|
/src/test/java/org/sagebionetworks/markdown/parsers/CodeParserTest.java
|
b534edd88113b91e590d5518c8245698ea20a9c7
|
[] |
no_license
|
Sage-Bionetworks/Synapse-Markdown
|
cb1d95061a0ad835b1add6237f5a559ba8131c4e
|
39cf9fa5192eeea065aac6b8e59357c2309d46c7
|
refs/heads/develop
| 2021-01-13T01:50:04.642976
| 2018-05-31T16:13:59
| 2018-05-31T16:13:59
| 17,187,201
| 0
| 1
| null | 2018-05-31T16:14:00
| 2014-02-25T20:32:15
|
Java
|
UTF-8
|
Java
| false
| false
| 1,903
|
java
|
package org.sagebionetworks.markdown.parsers;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
public class CodeParserTest {
CodeParser parser;
@Before
public void setup(){
parser = new CodeParser();
}
@Test
public void testHappyCase(){
String language = "ruby";
String line = "``` " + language;
MarkdownElements elements = new MarkdownElements(line);
parser.processLine(elements);
String result = elements.getHtml().toLowerCase();
assertTrue(result.contains("<pre"));
assertTrue(result.contains("<code"));
assertTrue(result.contains("class=\"" + language));
assertFalse(result.contains("</pre>"));
assertFalse(result.contains("</code>"));
assertTrue(parser.isInMarkdownElement());
//second line
line = "some code";
elements = new MarkdownElements(line);
parser.processLine(elements);
result = elements.getHtml().toLowerCase();
assertFalse(result.contains("<pre"));
assertFalse(result.contains("<code"));
assertTrue(result.contains(line));
assertFalse(result.startsWith("\n"));
assertFalse(result.contains("</pre>"));
assertFalse(result.toLowerCase().contains("</code>"));
assertTrue(parser.isInMarkdownElement());
//third line
line = "third line";
elements = new MarkdownElements(line);
parser.processLine(elements);
result = elements.getHtml().toLowerCase();
assertTrue(result.startsWith("\n"));
//forth line
line = "```";
elements = new MarkdownElements(line);
parser.processLine(elements);
result = elements.getHtml().toLowerCase();
assertFalse(result.contains("<pre"));
assertFalse(result.contains("<code"));
assertTrue(result.contains("</pre>"));
assertTrue(result.contains("</code>"));
assertFalse(parser.isInMarkdownElement());
}
}
|
[
"jay.hodgson@sagebase.org"
] |
jay.hodgson@sagebase.org
|
8b8ff4a41982b48d2328bf430ec46d5a1346784c
|
ff05965a1216a8b5f17285f438558e6ed06e0db4
|
/api/src/main/java/org/apache/cxf/security/transport/TLSSessionInfo.java
|
a18a71fc7cc56ebf03742d617ca0a2346765d18a
|
[] |
no_license
|
liucong/jms4cxf2
|
5ba89e857e9c6a4c542dffe0a13b3f704a19be77
|
56f6d8211dba6704348ee7e7551aa1a1f2c4d889
|
refs/heads/master
| 2023-01-09T18:08:51.730922
| 2009-09-16T03:16:48
| 2009-09-16T03:16:48
| 194,633
| 1
| 4
| null | 2023-01-02T21:54:29
| 2009-05-07T03:43:06
|
Java
|
UTF-8
|
Java
| false
| false
| 3,044
|
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.cxf.security.transport;
import java.security.cert.Certificate;
import javax.net.ssl.SSLSession;
/**
* An immutable struct that contains information about a negotiated
* TLS Session, including the (potentially negotiated) peer certificates
* as well as the currently effective TLS ciper suite.
*/
public class TLSSessionInfo {
private final SSLSession sslSession;
private final Certificate[] peerCertificates;
private final String cipherSuite;
/**
* This constructor has the effect of calling
* TLSSessionInfo(null, suite)
*/
public TLSSessionInfo(
final String suite
) {
this(suite, null, null);
}
/**
* @param suite
* The negotiated cipher suite
* This parameter may not be null, by contract
*
* @param session
* The JSSE representation of the SSL Session
* negotiated with the peer (optionally null, if
* it is unavailable)
*
* @param certs
* the peer X.509 certificate chain (optinally null)
*/
public TLSSessionInfo(
final String suite,
final SSLSession session,
final Certificate[] certs
) {
assert suite != null;
cipherSuite = suite;
sslSession = session;
peerCertificates = certs;
}
/**
* @return the negotiated cipher suite. This attribute is
* guaranteed to be non-null.
*/
public final String getChipherSuite() {
return cipherSuite;
}
/**
* @return the peer X.509 certificate chain, as negotiated
* though the TLS handshake. This attribute may be
* null, for example, if the SSL peer has not been
* authenticated.
*/
public final Certificate[] getPeerCertificates() {
return peerCertificates;
}
/**
* @return the negotiated SSL Session. This attribute may be
* null if it is unavailable from the underlying
* transport.
*/
public final SSLSession getSSLSession() {
return sslSession;
}
}
|
[
"liucong07@gmail.com"
] |
liucong07@gmail.com
|
a1d18e441d7b9f9ec979f2c31b6069086689cd06
|
13c2d3db2d49c40c74c2e6420a9cd89377f1c934
|
/program_data/JavaProgramData/14/735.java
|
cdc4d96263d30591fb2edafdbaf7114623a4c314
|
[
"MIT"
] |
permissive
|
qiuchili/ggnn_graph_classification
|
c2090fefe11f8bf650e734442eb96996a54dc112
|
291ff02404555511b94a4f477c6974ebd62dcf44
|
refs/heads/master
| 2021-10-18T14:54:26.154367
| 2018-10-21T23:34:14
| 2018-10-21T23:34:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,343
|
java
|
public class student
{
public int j;
public int x;
public int y;
public int z;
}
package <missing>;
public class GlobalMembers
{
public static student[] stu = tangible.Arrays.initializeWithDefaultstudentInstances(100000);
public static void Main(String[] args)
{
int n;
int i;
int a = 0;
int b = 0;
int c = 0;
int a1;
int b1;
int c1;
String tempVar = ConsoleInput.scanfRead();
if (tempVar != null)
{
n = Integer.parseInt(tempVar);
}
for (i = 0;i < n;i++)
{
String tempVar2 = ConsoleInput.scanfRead();
if (tempVar2 != null)
{
stu[i].j = Integer.parseInt(tempVar2);
}
String tempVar3 = ConsoleInput.scanfRead();
if (tempVar3 != null)
{
stu[i].x = Integer.parseInt(tempVar3);
}
String tempVar4 = ConsoleInput.scanfRead();
if (tempVar4 != null)
{
stu[i].y = Integer.parseInt(tempVar4);
}
stu[i].z = stu[i].x + stu[i].y;
}
for (i = 0;i < n;i++)
{
if (a < stu[i].z)
{
a = stu[i].z;
a1 = i;
}
}
for (i = 0;i < n;i++)
{
if (b < stu[i].z && i != a1)
{
b = stu[i].z;
b1 = i;
}
}
for (i = 0;i < n;i++)
{
if (c < stu[i].z && i != a1 && i != b1)
{
c = stu[i].z;
c1 = i;
}
}
System.out.printf("%d %d\n%d %d\n%d %d\n",stu[a1].j,stu[a1].z,stu[b1].j,stu[b1].z,stu[c1].j,stu[c1].z);
}
}
|
[
"y.yu@open.ac.uk"
] |
y.yu@open.ac.uk
|
91d1f43357e498f65bd766479415593d7e1feb97
|
39d11ddb25c29b0796679dcd726e6dca0a7ea90e
|
/java-multithread/src/main/java/com/brianway/learning/java/multithread/synchronize/example12/Run12_deadLock.java
|
7b982cd371cef71a2a7bfff602f1edb131012863
|
[
"Apache-2.0"
] |
permissive
|
banbanxia/java-learning
|
4b329baa716ba1ba99b7cd7d68a3304a24d93c95
|
f68869dd6d0ff5c4ca2879b9cec43b434f38f0d1
|
refs/heads/master
| 2021-05-10T12:18:04.250088
| 2020-01-14T05:03:44
| 2020-01-14T05:03:44
| 118,436,976
| 1
| 1
| null | 2018-01-22T09:41:49
| 2018-01-22T09:41:49
| null |
UTF-8
|
Java
| false
| false
| 7,054
|
java
|
package com.brianway.learning.java.multithread.synchronize.example12;
/**
* Created by Brian on 2016/4/13.
*/
/**
* P107
* 死锁测试
* jstack命令
*/
public class Run12_deadLock {
public static void main(String[] args) {
try {
DealThread t1 = new DealThread();
t1.setFlag("a");
Thread thread1 = new Thread(t1);
thread1.start();
Thread.sleep(100);
t1.setFlag("b");
Thread thread2 = new Thread(t1);
thread2.start();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
/*
输出:
username = a
username = b
---------------------------
G:\mygit\java-learning>jps
4752
7524 Jps
8936 Launcher
(启动Run12_deadLock的main方法)
G:\mygit\java-learning>
G:\mygit\java-learning>jps
4752
8948 AppMain
6344 Jps
8732 Launcher
G:\mygit\java-learning>jstack -l 8948
2016-04-13 15:04:01
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.25-b02 mixed mode):
"DestroyJavaVM" #13 prio=5 os_prio=0 tid=0x00000000022df000 nid=0x18dc waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Thread-1" #12 prio=5 os_prio=0 tid=0x0000000058773800 nid=0x20f0 waiting for monitor entry [0x0000000059c1f000]
java.lang.Thread.State: BLOCKED (on object monitor)
at com.brianway.learning.java.multithread.synchronize.example12.DealThread.run(DealThread.java:41)
- waiting to lock <0x00000000d61411d0> (a java.lang.Object)
- locked <0x00000000d61411e0> (a java.lang.Object)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Thread-0" #11 prio=5 os_prio=0 tid=0x000000005875a000 nid=0x1de8 waiting for monitor entry [0x00000000599bf000]
java.lang.Thread.State: BLOCKED (on object monitor)
at com.brianway.learning.java.multithread.synchronize.example12.DealThread.run(DealThread.java:27)
- waiting to lock <0x00000000d61411e0> (a java.lang.Object)
- locked <0x00000000d61411d0> (a java.lang.Object)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Monitor Ctrl-Break" #10 daemon prio=5 os_prio=0 tid=0x000000005876e800 nid=0x1f50 runnable [0x000000005969f000]
java.lang.Thread.State: RUNNABLE
at java.net.DualStackPlainSocketImpl.accept0(Native Method)
at java.net.DualStackPlainSocketImpl.socketAccept(DualStackPlainSocketImpl.java:131)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:404)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:199)
- locked <0x00000000d621bce8> (a java.net.SocksSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:545)
at java.net.ServerSocket.accept(ServerSocket.java:513)
at com.intellij.rt.execution.application.AppMain$1.run(AppMain.java:90)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Service Thread" #9 daemon prio=9 os_prio=0 tid=0x000000005736f800 nid=0x2194 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"C1 CompilerThread2" #8 daemon prio=9 os_prio=2 tid=0x0000000058698800 nid=0x2330 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"C2 CompilerThread1" #7 daemon prio=9 os_prio=2 tid=0x0000000058697800 nid=0x96c waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"C2 CompilerThread0" #6 daemon prio=9 os_prio=2 tid=0x0000000058646800 nid=0x1fac waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Attach Listener" #5 daemon prio=5 os_prio=2 tid=0x000000005863a800 nid=0x2268 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Signal Dispatcher" #4 daemon prio=9 os_prio=2 tid=0x000000005735d000 nid=0x1e2c runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Finalizer" #3 daemon prio=8 os_prio=1 tid=0x0000000057306800 nid=0x62c in Object.wait() [0x000000005836f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000d5f86280> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:142)
- locked <0x00000000d5f86280> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:158)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)
Locked ownable synchronizers:
- None
"Reference Handler" #2 daemon prio=10 os_prio=2 tid=0x00000000572fd800 nid=0x2254 in Object.wait() [0x000000005862f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000d5f85cf0> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:502)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:157)
- locked <0x00000000d5f85cf0> (a java.lang.ref.Reference$Lock)
Locked ownable synchronizers:
- None
"VM Thread" os_prio=2 tid=0x00000000572f7000 nid=0x1ba8 runnable
"GC task thread#0 (ParallelGC)" os_prio=0 tid=0x000000000214d000 nid=0x2274 runnable
"GC task thread#1 (ParallelGC)" os_prio=0 tid=0x000000000214e800 nid=0x1a74 runnable
"GC task thread#2 (ParallelGC)" os_prio=0 tid=0x0000000002150000 nid=0xad8 runnable
"GC task thread#3 (ParallelGC)" os_prio=0 tid=0x0000000002151800 nid=0x668 runnable
"VM Periodic Task Thread" os_prio=2 tid=0x00000000586b0800 nid=0x2150 waiting on condition
JNI global references: 20
Found one Java-level deadlock:
=============================
"Thread-1":
waiting to lock monitor 0x0000000057304218 (object 0x00000000d61411d0, a java.lang.Object),
which is held by "Thread-0"
"Thread-0":
waiting to lock monitor 0x0000000057300228 (object 0x00000000d61411e0, a java.lang.Object),
which is held by "Thread-1"
Java stack information for the threads listed above:
===================================================
"Thread-1":
at com.brianway.learning.java.multithread.synchronize.example12.DealThread.run(DealThread.java:41)
- waiting to lock <0x00000000d61411d0> (a java.lang.Object)
- locked <0x00000000d61411e0> (a java.lang.Object)
at java.lang.Thread.run(Thread.java:745)
"Thread-0":
at com.brianway.learning.java.multithread.synchronize.example12.DealThread.run(DealThread.java:27)
- waiting to lock <0x00000000d61411e0> (a java.lang.Object)
- locked <0x00000000d61411d0> (a java.lang.Object)
at java.lang.Thread.run(Thread.java:745)
Found 1 deadlock.
*/
|
[
"250902678@qq.com"
] |
250902678@qq.com
|
43ccb8790720fb3a852d54bafe2aebb2f8abeec4
|
a1ec70bc3a12387fde806dcb0b5364260541b583
|
/generated_code/de/fhdo/puls/chargingstationmanagementcommand/src/main/java/de/fhdo/puls/chargingstationmanagementcommand/domain/ChargingStationManagement/ParkingSpaceCreated.java
|
4162a41cbcf5665578b14c9fc6b0e8dfff5ecd55
|
[] |
no_license
|
SeelabFhdo/mde4sa-2021-proc
|
73d05c8bf73899a75cb41e3ded2561d13107ca36
|
3ab134cb2011f28f726be1b46160aacb802edfa8
|
refs/heads/master
| 2023-08-19T21:13:57.357716
| 2022-02-15T21:06:59
| 2022-02-15T21:06:59
| 459,155,497
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,391
|
java
|
package de.fhdo.puls.chargingstationmanagementcommand.domain.ChargingStationManagement;
import de.fhdo.puls.chargingstationmanagementcommand.domain.ChargingStationManagement.Location;
import de.fhdo.puls.chargingstationmanagementcommand.domain.ChargingStationManagement.ParkingSpaceSize;
import de.fhdo.puls.chargingstationmanagementcommand.domain.ChargingStationManagement.TimePeriods;
import de.fhdo.puls.chargingstationmanagementcommand.domain.ChargingStationManagement.gen.ParkingSpaceCreatedGenImpl;
/* This class might comprise custom code. It will not be overwritten by the code generator as long as it
extends ParkingSpaceCreatedGenImpl. As soon as this is not the case anymore, this file will be
overwritten, when the code generator is not explicitly invoked with the --preserve_existing_files
command line option! */
public class ParkingSpaceCreated extends ParkingSpaceCreatedGenImpl {
public ParkingSpaceCreated() {
super();
}
public ParkingSpaceCreated(String parkingSpaceId, String name, String description, long ownerId, float parkingPricePerHour, boolean activated, boolean blocked, boolean offered, Location location, ParkingSpaceSize parkingSpaceSize, TimePeriods availablePeriods) {
super(parkingSpaceId, name, description, ownerId, parkingPricePerHour, activated, blocked, offered, location, parkingSpaceSize, availablePeriods);
}
}
|
[
"pwizenty@gmail.com"
] |
pwizenty@gmail.com
|
e47ab394fff6e1d8646cf358cfa05e0ec1852af5
|
3cfffef6873f6e15baeb3839a32920d677fe0956
|
/src/test/java/com/zxs/test/main/Main1.java
|
0ff8e070b5d9234c6f77578de8aa364a13fe1f75
|
[] |
no_license
|
jayzc1234/learngit
|
2ba4c8bf939ea82b7bc73d17c6f1dc5fb09139f8
|
804d6bb3317acf23477b044a841b0ebf7c10a966
|
refs/heads/master
| 2022-07-16T16:53:45.645407
| 2021-08-05T13:15:17
| 2021-08-05T13:15:17
| 158,473,801
| 0
| 0
| null | 2022-06-21T03:38:42
| 2018-11-21T01:33:25
|
Java
|
UTF-8
|
Java
| false
| false
| 1,466
|
java
|
package com.zxs.test.main;
import com.zxs.test.model.NoJavaBean;
import java.beans.*;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class Main1 {
public static void main(String[] args) throws IntrospectionException, InvocationTargetException, IllegalAccessException {
BeanInfo beanInfo= Introspector.getBeanInfo(NoJavaBean.class);
BeanDescriptor beanDescriptor = beanInfo.getBeanDescriptor();
NoJavaBean noJavaBean=new NoJavaBean();
PropertyDescriptor[] propertyDescriptors = beanInfo.getPropertyDescriptors();
for (PropertyDescriptor propertyDescriptor : propertyDescriptors) {
String name = propertyDescriptor.getName();
Object name1 = propertyDescriptor.getValue(name);
Class<?> propertyEditorClass = propertyDescriptor.getPropertyEditorClass();
Method readMethod = propertyDescriptor.getReadMethod();
Method writeMethod = propertyDescriptor.getWriteMethod();
}
MethodDescriptor[] methodDescriptors = beanInfo.getMethodDescriptors();
for (MethodDescriptor methodDescriptor : methodDescriptors) {
String name = methodDescriptor.getName();
if (name.equals("test")){
Method method = methodDescriptor.getMethod();
Object invoke = method.invoke(noJavaBean);
System.out.println(name);
}
}
}
}
|
[
"zhuchuang@app315.net"
] |
zhuchuang@app315.net
|
395b2964dd73b988dd73407ad0f74ebf1d6e9c8d
|
17bfe5bf23d259b93359a1aad48cb064f34bf670
|
/engines/servicemix-jsr181/src/test/java/org/apache/servicemix/jsr181/Jsr181ProxySUTest.java
|
ce637be95e9f98b2135041ecd93a9fba4fd8cb38
|
[
"Apache-2.0"
] |
permissive
|
apache/servicemix-components
|
732fff76977a3f026ea85cc99e70fa5b1a0889f1
|
6bf1e46e7e173275a17571ab28c6174ff26f0651
|
refs/heads/trunk
| 2023-08-28T17:39:33.860650
| 2014-04-09T17:51:21
| 2014-04-09T17:51:21
| 1,167,439
| 4
| 17
| null | 2023-09-12T13:54:34
| 2010-12-14T08:00:08
|
Java
|
UTF-8
|
Java
| false
| false
| 3,428
|
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.servicemix.jsr181;
import java.io.File;
import java.net.URL;
import javax.jbi.messaging.ExchangeStatus;
import javax.jbi.messaging.InOut;
import javax.naming.InitialContext;
import javax.xml.namespace.QName;
import junit.framework.TestCase;
import org.apache.servicemix.client.DefaultServiceMixClient;
import org.apache.servicemix.jbi.container.JBIContainer;
import org.apache.servicemix.jbi.jaxp.StringSource;
public class Jsr181ProxySUTest extends TestCase {
protected JBIContainer container;
protected void setUp() throws Exception {
container = new JBIContainer();
container.setUseMBeanServer(false);
container.setCreateMBeanServer(false);
container.setMonitorInstallationDirectory(false);
container.setNamingContext(new InitialContext());
container.setEmbedded(true);
container.init();
}
protected void tearDown() throws Exception {
if (container != null) {
container.shutDown();
}
}
public void test() throws Exception {
Jsr181Component component = new Jsr181Component();
container.activateComponent(component, "JSR181Component");
// Start container
container.start();
// Deploy SU
component.getServiceUnitManager().deploy("target", getServiceUnitPath("target"));
component.getServiceUnitManager().init("target", getServiceUnitPath("target"));
component.getServiceUnitManager().start("target");
component.getServiceUnitManager().deploy("proxy", getServiceUnitPath("proxy"));
component.getServiceUnitManager().init("proxy", getServiceUnitPath("proxy"));
component.getServiceUnitManager().start("proxy");
DefaultServiceMixClient client = new DefaultServiceMixClient(container);
InOut me = client.createInOutExchange(new QName("http://test", "Echo"), null, null);
me.setInMessage(me.createMessage());
me.getInMessage().setContent(new StringSource("<echo xmlns='http://test'><msg>world</msg></echo>"));
client.sendSync(me);
assertEquals(ExchangeStatus.ACTIVE, me.getStatus());
assertNotNull(me.getOutMessage());
client.done(me);
}
protected String getServiceUnitPath(String name) {
URL url = getClass().getClassLoader().getResource(name + "/xbean.xml");
File path = new File(url.getFile());
path = path.getParentFile();
return path.getAbsolutePath();
}
}
|
[
"gertv@apache.org"
] |
gertv@apache.org
|
84db0f0ed889bdc295d0696fea33ed84e47ab492
|
59ca721ca1b2904fbdee2350cd002e1e5f17bd54
|
/aliyun-java-sdk-emr/src/main/java/com/aliyuncs/emr/transform/v20160408/MetastoreListDataSourceResponseUnmarshaller.java
|
32d0f4f781a2023180abb58a1aae6b0384c5dae3
|
[
"Apache-2.0"
] |
permissive
|
longtx/aliyun-openapi-java-sdk
|
8fadfd08fbcf00c4c5c1d9067cfad20a14e42c9c
|
7a9ab9eb99566b9e335465a3358553869563e161
|
refs/heads/master
| 2020-04-26T02:00:35.360905
| 2019-02-28T13:47:08
| 2019-02-28T13:47:08
| 173,221,745
| 2
| 0
|
NOASSERTION
| 2019-03-01T02:33:35
| 2019-03-01T02:33:35
| null |
UTF-8
|
Java
| false
| false
| 4,037
|
java
|
/*
* 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 com.aliyuncs.emr.transform.v20160408;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.emr.model.v20160408.MetastoreListDataSourceResponse;
import com.aliyuncs.emr.model.v20160408.MetastoreListDataSourceResponse.DataSource;
import com.aliyuncs.emr.model.v20160408.MetastoreListDataSourceResponse.DataSource.Config;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class MetastoreListDataSourceResponseUnmarshaller {
public static MetastoreListDataSourceResponse unmarshall(MetastoreListDataSourceResponse metastoreListDataSourceResponse, UnmarshallerContext context) {
metastoreListDataSourceResponse.setRequestId(context.stringValue("MetastoreListDataSourceResponse.RequestId"));
metastoreListDataSourceResponse.setTotalCount(context.integerValue("MetastoreListDataSourceResponse.TotalCount"));
metastoreListDataSourceResponse.setPageNumber(context.integerValue("MetastoreListDataSourceResponse.PageNumber"));
metastoreListDataSourceResponse.setPageSize(context.integerValue("MetastoreListDataSourceResponse.PageSize"));
List<DataSource> dataSourceList = new ArrayList<DataSource>();
for (int i = 0; i < context.lengthValue("MetastoreListDataSourceResponse.DataSourceList.Length"); i++) {
DataSource dataSource = new DataSource();
dataSource.setId(context.stringValue("MetastoreListDataSourceResponse.DataSourceList["+ i +"].Id"));
dataSource.setName(context.stringValue("MetastoreListDataSourceResponse.DataSourceList["+ i +"].Name"));
dataSource.setSourceType(context.stringValue("MetastoreListDataSourceResponse.DataSourceList["+ i +"].SourceType"));
dataSource.setDescription(context.stringValue("MetastoreListDataSourceResponse.DataSourceList["+ i +"].Description"));
dataSource.setConnectionInfo(context.stringValue("MetastoreListDataSourceResponse.DataSourceList["+ i +"].ConnectionInfo"));
dataSource.setClusterBizId(context.stringValue("MetastoreListDataSourceResponse.DataSourceList["+ i +"].ClusterBizId"));
dataSource.setClusterName(context.stringValue("MetastoreListDataSourceResponse.DataSourceList["+ i +"].ClusterName"));
dataSource.setUserId(context.stringValue("MetastoreListDataSourceResponse.DataSourceList["+ i +"].UserId"));
dataSource.setGmtCreate(context.longValue("MetastoreListDataSourceResponse.DataSourceList["+ i +"].GmtCreate"));
dataSource.setGmtModified(context.longValue("MetastoreListDataSourceResponse.DataSourceList["+ i +"].GmtModified"));
dataSource.setCapacity(context.longValue("MetastoreListDataSourceResponse.DataSourceList["+ i +"].Capacity"));
dataSource.setUsedSize(context.longValue("MetastoreListDataSourceResponse.DataSourceList["+ i +"].UsedSize"));
List<Config> configList = new ArrayList<Config>();
for (int j = 0; j < context.lengthValue("MetastoreListDataSourceResponse.DataSourceList["+ i +"].ConfigList.Length"); j++) {
Config config = new Config();
config.setConfigName(context.stringValue("MetastoreListDataSourceResponse.DataSourceList["+ i +"].ConfigList["+ j +"].ConfigName"));
config.setValue(context.stringValue("MetastoreListDataSourceResponse.DataSourceList["+ i +"].ConfigList["+ j +"].Value"));
configList.add(config);
}
dataSource.setConfigList(configList);
dataSourceList.add(dataSource);
}
metastoreListDataSourceResponse.setDataSourceList(dataSourceList);
return metastoreListDataSourceResponse;
}
}
|
[
"yixiong.jxy@alibaba-inc.com"
] |
yixiong.jxy@alibaba-inc.com
|
a9545b58de09d1dbf5b45c1e86851b51e8bf3aa3
|
becfc02168247c141747ef5a52ce10dc581ab0bc
|
/action-root/action-dao/src/main/java/cn/gyyx/action/dao/jswswxsign/SignLogDAO.java
|
73070844aec6482b2887fe221d9ee46e8e30697d
|
[] |
no_license
|
wangqingxian/springBoot
|
629d71200f2f62466ac6590924d49bd490601276
|
0efcd6ed29816c31f2843a24d9d6dc5d1c7f98d2
|
refs/heads/master
| 2020-04-22T02:42:01.757523
| 2017-06-08T10:56:51
| 2017-06-08T10:56:51
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,455
|
java
|
/**-------------------------------------------------------------------------
* 版权所有:北京光宇在线科技有限责任公司
-------------------------------------------------------------------------*/
package cn.gyyx.action.dao.jswswxsign;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.slf4j.Logger;
import cn.gyyx.action.beans.jswswxsign.SignLog;
import cn.gyyx.action.dao.MyBatisConnectionFactory;
import cn.gyyx.log.sdk.GYYXLoggerFactory;
/**
* 作 者:成龙
* 联系方式:chenglong@gyyx.cn
* 创建时间: 2016年5月13日 下午8:08:14
*/
public class SignLogDAO {
private static final Logger logger = GYYXLoggerFactory
.getLogger(SignLogDAO.class);
private SqlSession getSession() {
SqlSessionFactory sqlSessionFactory = MyBatisConnectionFactory
.getSqlActionDBV2SessionFactory();
return sqlSessionFactory.openSession();
}
public int insertSignLog(SignLog signLog) {
int result = 0;
SqlSession session = getSession();
try {
result = insertSignLog(signLog,session);
} catch (Exception e) {
logger.warn(e.toString());
} finally {
session.commit();
session.close();
}
return result;
}
public int insertSignLog(SignLog signLog,SqlSession session) {
int result = 0;
ISignLogMapper mapper = session.getMapper(ISignLogMapper.class);
result = mapper.insertSignLog(signLog);
return result;
}
}
|
[
"lihu@gyyx.cn"
] |
lihu@gyyx.cn
|
5b83ab71c5a025bf0506180c174905d011a5b854
|
39a85dff79b47fc4a2aca6383f2860c111fd6ea6
|
/src/test/java/io/webfolder/tsdb4j/CreateDeleteTest.java
|
b22b64f98951217b4aac9685e52a9abd5e6eb5a1
|
[
"Apache-2.0"
] |
permissive
|
fossabot/tsdb4j
|
3b512b877556edb89aeffe88a2a770d0abed533c
|
7737a74a39c0825d88d4ae76eb4feaf7fe93fe42
|
refs/heads/master
| 2022-11-18T10:16:37.071977
| 2020-07-05T15:32:25
| 2020-07-05T15:32:25
| 277,330,644
| 0
| 0
|
Apache-2.0
| 2020-07-05T15:32:20
| 2020-07-05T15:32:19
| null |
UTF-8
|
Java
| false
| false
| 1,068
|
java
|
package io.webfolder.tsdb4j;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import org.junit.Assert;
import org.junit.Test;
public class CreateDeleteTest extends AbstractTest {
@Test
public void t01_testOpenClose() {
Database db = createTempDb();
boolean open = db.open();
Assert.assertTrue(open);
db.close();
db.delete();
deleteIfExists(db.getPath());
}
@Test
public void t02_testDelete() throws IOException {
Path path = createTempPath();
Database database = createTempDb(path);
Path volFile = path.resolve("test_0.vol");
Path dbFile = path.resolve("test.akumuli");
Assert.assertTrue(Files.exists(dbFile));
Assert.assertTrue(Files.exists(volFile));
Assert.assertTrue(Files.size(dbFile) >= 1024L);
Assert.assertTrue(Files.size(volFile) >= 1024L * 1024L);
database.delete();
database.close();
deleteIfExists(path);
}
}
|
[
"support@webfolder.io"
] |
support@webfolder.io
|
d562cd583594455dbf2f25df59170dcda072cb7e
|
584c0670c04fc250f881a4f352c4e015dc0c1027
|
/src/test/java/com/github/signed/swagger/Integration_Test.java
|
c4af20e6b1eb9186e5247380bb845fdf60d203e6
|
[
"Apache-2.0"
] |
permissive
|
UrsMetz/swagger-toolbox
|
2e82041db677ac75775ebb6dde280a6071d5751e
|
36f8ee49803e859797fe095770a7e8e27d8b2122
|
refs/heads/master
| 2020-04-15T18:15:40.329254
| 2016-11-15T19:39:41
| 2016-11-15T19:39:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,774
|
java
|
package com.github.signed.swagger;
import com.github.signed.swagger.merge.SwaggerMerge;
import com.github.signed.swagger.reduce.SwaggerReduce;
import com.github.signed.swagger.trim.SwaggerTrim;
import io.swagger.models.Path;
import io.swagger.models.Swagger;
import io.swagger.parser.SwaggerParser;
import io.swagger.util.Json;
import io.swagger.util.Yaml;
import org.junit.Test;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.MatcherAssert.assertThat;
public class Integration_Test {
public static final String MarkerTag = "public";
private final String first = TestFiles.Json.petstoreExample();
private final String second = TestFiles.Json.petstoreExample();
private final SwaggerParser parser = new SwaggerParser();
private final SwaggerReduce reduce = new SwaggerReduce(MarkerTag);
private final SwaggerTrim trim = new SwaggerTrim();
private final SwaggerMerge merge = new SwaggerMerge();
@Test
public void just_reduce() {
Swagger petShop = parser.read(first);
petShop.getPaths().values().stream().map(Path::getOperations).flatMap(Collection::stream).forEach(operation -> operation.tag(MarkerTag));
reduce.reduce(petShop);
Yaml.prettyPrint(petShop);
assertThat(petShop, notNullValue());
}
@Test
public void reduce_trim() {
Swagger petShop = parser.read(first);
petShop.getPaths().values().stream().map(Path::getOperations).flatMap(Collection::stream).forEach(operation -> operation.tag(MarkerTag));
reduce.reduce(petShop);
Yaml.prettyPrint(petShop);
trim.trim(petShop);
Yaml.prettyPrint(petShop);
assertThat(petShop, notNullValue());
}
@Test
public void reduce_trim_merge() {
Swagger _1st = parser.read(first);
_1st.getPaths().values().stream().map(Path::getOperations).flatMap(Collection::stream).forEach(operation -> operation.tag(MarkerTag));
Swagger _2nd = parser.read(second);
List<Swagger> collect = Stream.of(_1st, _2nd).map(reduce::reduce).map(trim::trim).collect(Collectors.toList());
Swagger result = this.merge.merge(collect.get(0), collect.get(1)).swagger();
Yaml.prettyPrint(_1st);
Json.prettyPrint(result);
assertThat(result, notNullValue());
}
@Test
public void model_with_composition() {
Swagger swagger = parser.read(TestFiles.Yaml.modelWithComposition());
Swagger trim = this.trim.trim(swagger);
Yaml.prettyPrint(trim);
assertThat(trim.getDefinitions().size(), is(2));
}
}
|
[
"thomas.heilbronner@gmail.com"
] |
thomas.heilbronner@gmail.com
|
4396c4576d9fd71d2cc70b14d5908e7e52c38408
|
cc69ae4e6042c0ae18e07298768f37f3fce9c8df
|
/Tinsta_Client/src/main/java/ir/sharif/math/ap99_2/tinsta_client/communication_related/listener/GoToForwardMessageListener.java
|
3d19c6b6e6555952a307b7da5503b3ee76a52f37
|
[] |
no_license
|
MrSalahshour/Tinsta
|
e66f2a6e9f5c56bfa0f98c9af2ee3b291b1a6137
|
c72e948c14987b92beac16a04e6cc3fab7e0b570
|
refs/heads/main
| 2023-07-15T18:40:14.052321
| 2021-08-28T11:54:49
| 2021-08-28T11:54:49
| 400,775,914
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,260
|
java
|
package ir.sharif.math.ap99_2.tinsta_client.communication_related.listener;
import ir.sharif.math.ap99_2.tinsta_client.communication_related.view.ChatRoomView;
import ir.sharif.math.ap99_2.tinsta_client.communication_related.view.WriteMessageView;
import ir.sharif.math.ap99_2.tinsta_client.user_related.listener.BackToLoginListener;
import ir.sharif.math.ap99_2.tinsta_shared.communication_related.event.GoToForwardMessageEvent;
import javax.swing.*;
public class GoToForwardMessageListener {
public void eventOccurred(GoToForwardMessageEvent goToForwardMessageEvent){
ChatRoomView chatRoomView = (ChatRoomView) goToForwardMessageEvent.getSource();
JPanel panel = chatRoomView.getSource();
panel.removeAll();
WriteMessageView writeMessageView = new WriteMessageView(chatRoomView);
writeMessageView.setBackToChatRoomListener(new BackToChatRoomListener());
writeMessageView.setBackToLoginListener(new BackToLoginListener());
writeMessageView.setForwardMessageListener(new ForwardMessageListener());
writeMessageView.setSelectImageForForwardListener(new SelectImageForForwardListener());
panel.add(writeMessageView);
panel.revalidate();
panel.repaint();
}
}
|
[
"salahshour80mahdi@gmail.com"
] |
salahshour80mahdi@gmail.com
|
04d8bf6327c888d88294e0401507372b96dd4e56
|
78348f3d385a2d1eddcf3d7bfee7eaf1259d3c6e
|
/examples/uml/fr.inria.diverse.puzzle.uml.activities.metamodel/src/Activities/StructuredActivities/Clause.java
|
1c9abafb6f60ad47189e6c11311d4d680765318f
|
[] |
no_license
|
damenac/puzzle
|
6ac0a2fba6eb531ccfa7bec3a5ecabf6abb5795e
|
f74b23fd14ed5d6024667bf5fbcfe0418dc696fa
|
refs/heads/master
| 2021-06-14T21:23:05.874869
| 2017-03-27T10:24:31
| 2017-03-27T10:24:31
| 40,361,967
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,357
|
java
|
/**
*/
package Activities.StructuredActivities;
import Activities.IntermediateActivities.Element;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Clause</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link Activities.StructuredActivities.Clause#getPredecessorClause <em>Predecessor Clause</em>}</li>
* <li>{@link Activities.StructuredActivities.Clause#getSucessorClause <em>Sucessor Clause</em>}</li>
* <li>{@link Activities.StructuredActivities.Clause#getDecider <em>Decider</em>}</li>
* </ul>
* </p>
*
* @see Activities.StructuredActivities.StructuredActivitiesPackage#getClause()
* @model
* @generated
*/
public interface Clause extends Element {
/**
* Returns the value of the '<em><b>Predecessor Clause</b></em>' reference list.
* The list contents are of type {@link Activities.StructuredActivities.Clause}.
* It is bidirectional and its opposite is '{@link Activities.StructuredActivities.Clause#getSucessorClause <em>Sucessor Clause</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Predecessor Clause</em>' reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Predecessor Clause</em>' reference list.
* @see Activities.StructuredActivities.StructuredActivitiesPackage#getClause_PredecessorClause()
* @see Activities.StructuredActivities.Clause#getSucessorClause
* @model opposite="sucessorClause"
* @generated
*/
EList<Clause> getPredecessorClause();
/**
* Returns the value of the '<em><b>Sucessor Clause</b></em>' reference list.
* The list contents are of type {@link Activities.StructuredActivities.Clause}.
* It is bidirectional and its opposite is '{@link Activities.StructuredActivities.Clause#getPredecessorClause <em>Predecessor Clause</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Sucessor Clause</em>' reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Sucessor Clause</em>' reference list.
* @see Activities.StructuredActivities.StructuredActivitiesPackage#getClause_SucessorClause()
* @see Activities.StructuredActivities.Clause#getPredecessorClause
* @model opposite="predecessorClause"
* @generated
*/
EList<Clause> getSucessorClause();
/**
* Returns the value of the '<em><b>Decider</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Decider</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Decider</em>' reference.
* @see #setDecider(OutputPin)
* @see Activities.StructuredActivities.StructuredActivitiesPackage#getClause_Decider()
* @model required="true"
* @generated
*/
OutputPin getDecider();
/**
* Sets the value of the '{@link Activities.StructuredActivities.Clause#getDecider <em>Decider</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Decider</em>' reference.
* @see #getDecider()
* @generated
*/
void setDecider(OutputPin value);
} // Clause
|
[
"damenac@gmail.com"
] |
damenac@gmail.com
|
7ea5ab81f2b1ac220323c5d89ae702c804d1779d
|
4a04c7541224c663c930c2249acee8b4607c0eb3
|
/sourcecode/src/test/java/com/mpos/lottery/te/gameimpl/magic100/game/Magic100GameInstanceIntegrationTest.java
|
f8967aa88ffc41ad298b4381e387870ef580097e
|
[] |
no_license
|
ramonli/eGame_TE
|
92e1f4d7af05a4e2cb31aec89d96f00a40688fa0
|
937b7ef487ff4b9053de8693a237733f2ced7bc4
|
refs/heads/master
| 2020-12-24T14:57:07.251672
| 2015-07-20T05:55:15
| 2015-07-20T05:55:15
| 39,357,089
| 2
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,218
|
java
|
package com.mpos.lottery.te.gameimpl.magic100.game;
import static org.junit.Assert.assertEquals;
import com.mpos.lottery.te.config.exception.SystemException;
import com.mpos.lottery.te.gamespec.game.BaseGameInstance;
import com.mpos.lottery.te.gamespec.game.Game;
import com.mpos.lottery.te.gamespec.game.web.GameDto;
import com.mpos.lottery.te.gamespec.game.web.GameInstanceDto;
import com.mpos.lottery.te.gamespec.game.web.GameInstanceDtos;
import com.mpos.lottery.te.port.Context;
import com.mpos.lottery.te.test.integration.BaseServletIntegrationTest;
import com.mpos.lottery.te.trans.domain.TransactionType;
import org.junit.Test;
public class Magic100GameInstanceIntegrationTest extends BaseServletIntegrationTest {
// @Rollback(false)
@Test
public void testEnquiryByGameTpye() throws Exception {
printMethod();
this.jdbcTemplate.update("delete from LK_GAME_INSTANCE where ID='GII-112'");
GameInstanceDto reqDto = new GameInstanceDto();
reqDto.setGameType(Game.TYPE_LUCKYNUMBER);
Context ctx = this.getDefaultContext(TransactionType.GAME_DRAW_ENQUIRY.getRequestType(), reqDto);
Context respCtx = doPost(this.mockRequest(ctx));
GameInstanceDtos gameInstanceDtos = (GameInstanceDtos) respCtx.getModel();
// assert response
assertEquals(SystemException.CODE_OK, respCtx.getResponseCode());
assertEquals(1, gameInstanceDtos.getGameDtos().size());
GameDto gameDto = gameInstanceDtos.getGameDtos().get(0);
assertEquals(100.0, gameDto.getBaseAmount().doubleValue(), 0);
assertEquals("LK-1", gameDto.getId());
assertEquals(Game.TYPE_LUCKYNUMBER, gameDto.getGameType().intValue());
assertEquals(1, gameDto.getGameInstanceDtos().size());
GameInstanceDto returnedGameInstanceDto = gameDto.getGameInstanceDtos().get(0);
assertEquals(BaseGameInstance.STATE_ACTIVE, returnedGameInstanceDto.getState());
assertEquals("001", returnedGameInstanceDto.getNumber());
}
@Test
public void testEnquiryByGame() throws Exception {
printMethod();
GameInstanceDto reqDto = new GameInstanceDto();
reqDto.setGameType(Game.TYPE_LUCKYNUMBER);
reqDto.setGameId("LK-1");
Context ctx = this.getDefaultContext(TransactionType.GAME_DRAW_ENQUIRY.getRequestType(), reqDto);
Context respCtx = doPost(this.mockRequest(ctx));
GameInstanceDtos gameInstanceDtos = (GameInstanceDtos) respCtx.getModel();
// assert response
assertEquals(SystemException.CODE_OK, respCtx.getResponseCode());
assertEquals(1, gameInstanceDtos.getGameDtos().size());
GameDto gameDto = gameInstanceDtos.getGameDtos().get(0);
assertEquals(100.0, gameDto.getBaseAmount().doubleValue(), 0);
assertEquals("LK-1", gameDto.getId());
assertEquals(Game.TYPE_LUCKYNUMBER, gameDto.getGameType().intValue());
assertEquals(1, gameDto.getGameInstanceDtos().size());
GameInstanceDto returnedGameInstanceDto = gameDto.getGameInstanceDtos().get(0);
assertEquals(BaseGameInstance.STATE_ACTIVE, returnedGameInstanceDto.getState());
assertEquals("001", returnedGameInstanceDto.getNumber());
}
@Test
public void testEnquiryByGame_NoMerchantSupport() throws Exception {
printMethod();
// remove game merchant relationship
this.jdbcTemplate.update("delete from game_merchant");
GameInstanceDto reqDto = new GameInstanceDto();
reqDto.setGameType(Game.TYPE_LUCKYNUMBER);
reqDto.setGameId("LK-1");
Context ctx = this.getDefaultContext(TransactionType.GAME_DRAW_ENQUIRY.getRequestType(), reqDto);
Context respCtx = doPost(this.mockRequest(ctx));
GameInstanceDtos gameInstanceDtos = (GameInstanceDtos) respCtx.getModel();
// assert response
assertEquals(SystemException.CODE_NO_GAMEDRAW, respCtx.getResponseCode());
}
@Test
public void testEnquiryByNumber() throws Exception {
printMethod();
GameInstanceDto reqDto = new GameInstanceDto();
reqDto.setGameType(Game.TYPE_LUCKYNUMBER);
reqDto.setGameId("LK-1");
reqDto.setNumber("001");
Context ctx = this.getDefaultContext(TransactionType.GAME_DRAW_ENQUIRY.getRequestType(), reqDto);
Context respCtx = doPost(this.mockRequest(ctx));
GameInstanceDtos gameInstanceDtos = (GameInstanceDtos) respCtx.getModel();
// assert response
assertEquals(SystemException.CODE_OK, respCtx.getResponseCode());
assertEquals(1, gameInstanceDtos.getGameDtos().size());
GameDto gameDto = gameInstanceDtos.getGameDtos().get(0);
assertEquals(100.0, gameDto.getBaseAmount().doubleValue(), 0);
assertEquals("LK-1", gameDto.getId());
assertEquals(Game.TYPE_LUCKYNUMBER, gameDto.getGameType().intValue());
assertEquals(1, gameDto.getGameInstanceDtos().size());
GameInstanceDto returnedGameInstanceDto = gameDto.getGameInstanceDtos().get(0);
assertEquals(BaseGameInstance.STATE_ACTIVE, returnedGameInstanceDto.getState());
assertEquals("001", returnedGameInstanceDto.getNumber());
}
}
|
[
"myroulade@gmail.com"
] |
myroulade@gmail.com
|
5ef62e9d47eda84b16aa9e53a3e5323d1f9b1ab2
|
c4623aa95fb8cdd0ee1bc68962711c33af44604e
|
/src/com/yelp/android/appdata/webrequests/ag.java
|
b19e10f448bb95bf8f7011292839430b8d0a3f28
|
[] |
no_license
|
reverseengineeringer/com.yelp.android
|
48f7f2c830a3a1714112649a6a0a3110f7bdc2b1
|
b0ac8d4f6cd5fc5543f0d8de399b6d7b3a2184c8
|
refs/heads/master
| 2021-01-19T02:07:25.997811
| 2016-07-19T16:37:24
| 2016-07-19T16:37:24
| 38,555,675
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,676
|
java
|
package com.yelp.android.appdata.webrequests;
import com.yelp.android.appdata.webrequests.core.b;
import com.yelp.android.serializable.YelpBusinessAddresses;
import com.yelp.android.serializable.YelpDetailedAddress;
import com.yelp.parcelgen.JsonParser.DualCreator;
import java.util.HashMap;
import java.util.Iterator;
import org.json.JSONException;
import org.json.JSONObject;
public class ag
extends b<Void, Void, YelpBusinessAddresses>
{
public ag(String paramString, ApiRequest.b<YelpBusinessAddresses> paramb)
{
super(ApiRequest.RequestType.GET, "business/update/details", paramb);
a("business_id", paramString);
}
public YelpBusinessAddresses a(JSONObject paramJSONObject)
throws YelpException, JSONException
{
YelpBusinessAddresses localYelpBusinessAddresses = (YelpBusinessAddresses)YelpBusinessAddresses.CREATOR.parse(paramJSONObject);
JSONObject localJSONObject1 = paramJSONObject.getJSONObject("alternate_addresses");
HashMap localHashMap = new HashMap();
Iterator localIterator = localJSONObject1.keys();
while (localIterator.hasNext())
{
String str = (String)localIterator.next();
JSONObject localJSONObject2 = localJSONObject1.getJSONObject(str);
localHashMap.put(str, (YelpDetailedAddress)YelpDetailedAddress.CREATOR.parse(localJSONObject2));
}
localYelpBusinessAddresses.a(localHashMap);
localYelpBusinessAddresses.a((YelpDetailedAddress)YelpDetailedAddress.CREATOR.parse(paramJSONObject));
return localYelpBusinessAddresses;
}
}
/* Location:
* Qualified Name: com.yelp.android.appdata.webrequests.ag
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
d092637a6dc33e8ef6390b5848e403923517b659
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/16/16_eeb8c29e693f55643e1fe293bbc6af4f8e2f60a8/IContentDescriber/16_eeb8c29e693f55643e1fe293bbc6af4f8e2f60a8_IContentDescriber_s.java
|
f0ab479ee59f1a2658ee24b03b7bd24c75141e3f
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 2,887
|
java
|
/*******************************************************************************
* Copyright (c) 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.core.runtime.content;
import java.io.IOException;
import java.io.InputStream;
import org.eclipse.core.runtime.QualifiedName;
/**
* Content describers know how to retrieve metadata from
* contents.
* <p>
* Describers for text-based content types should implement
* <code>ITextContentDescriber</code> instead.
* </p>
* <p>
* Clients may implement this interface.
* </p>
* @see IContentDescription
* @since 3.0
*/
public interface IContentDescriber {
/**
* Description result constant, indicating the contents are valid for
* the intended content type.
*
* @see #describe
*/
public final static int VALID = 0;
/**
* Description result constant, indicating the contents are invalid for
* the intended content type.
*
* @see #describe
*/
public final static int INVALID = 1;
/**
* Description result constant, indicating that it was not possible
* to determine whether the contents were valid for
* the intended content type.
*
* @see #describe
*/
public final static int INDETERMINATE = -1;
/**
* Tries to fill a description for the given contents. Returns
* an <code>int</code> indicating whether the given stream of
* bytes represents a valid sample for its corresponding content type.
* If no content description is provided, this method should perform
* content type validation.
* <p>
* The input stream must be kept open, and any IOExceptions while
* reading the stream should flow to the caller.
* </p>
*
* @param contents the contents to be examined
* @param description a description to be filled in, or <code>null</code> if
* only content type validation is to be performed
* @return one of the following:<ul>
* <li><code>VALID</code></li>,
* <li><code>INVALID</code></li>,
* <li><code>INDETERMINATE</code></li>
* </ul>
* @throws IOException if an I/O error occurs
* @see IContentDescription
* @see #VALID
* @see #INVALID
* @see #INDETERMINATE
*/
public int describe(InputStream contents, IContentDescription description) throws IOException;
/**
* Returns the properties supported by this describer.
*
* @return the supported properties
* @see #describe
*/
public QualifiedName[] getSupportedOptions();
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
8b5788c4af6e0b04949933f9e8bfc32e0a12c71b
|
08741438d661ed53fc3e24c4927011cb50e8bd2e
|
/src/test/java/com/anno/ArchTest.java
|
3220156ca9095ebedc96ac07bb9195c0657046af
|
[] |
no_license
|
frsab/anno-cash
|
020fa9cd6451ae16e082c2308b562c95ffbbb6eb
|
cbe76f55dabe2cabf68c43c047edc2e8e41a9f22
|
refs/heads/main
| 2023-01-05T07:35:40.452511
| 2020-10-29T09:15:25
| 2020-10-29T09:15:25
| 308,273,706
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 969
|
java
|
package com.anno;
import com.tngtech.archunit.core.domain.JavaClasses;
import com.tngtech.archunit.core.importer.ClassFileImporter;
import com.tngtech.archunit.core.importer.ImportOption;
import org.junit.jupiter.api.Test;
import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.noClasses;
class ArchTest {
@Test
void servicesAndRepositoriesShouldNotDependOnWebLayer() {
JavaClasses importedClasses = new ClassFileImporter()
.withImportOption(ImportOption.Predefined.DO_NOT_INCLUDE_TESTS)
.importPackages("com.anno");
noClasses()
.that()
.resideInAnyPackage("com.anno.service..")
.or()
.resideInAnyPackage("com.anno.repository..")
.should().dependOnClassesThat()
.resideInAnyPackage("..com.anno.web..")
.because("Services and repositories should not depend on web layer")
.check(importedClasses);
}
}
|
[
"frejsaber@gmail.com"
] |
frejsaber@gmail.com
|
38acfb607cbcdd22cb3c51f4578061cf302ce20a
|
4fbf8dada0f946d361f15e389ff220cf3b17635c
|
/src/org/reddragonfly/iplsqldevj/bean/dbbean/DbJavaSourceBean.java
|
a5c97f97048a2e1c4cb048b869e2811f792b643c
|
[
"Apache-2.0"
] |
permissive
|
aezocn/plsqlweb
|
6d6ab7c0de4d688205e8a73eb4c6ea0643725472
|
9914949205a3b8a404f816aec58d796f1df34ec2
|
refs/heads/master
| 2020-03-23T21:44:07.440373
| 2019-01-02T06:58:12
| 2019-01-02T06:58:12
| 142,129,232
| 7
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,439
|
java
|
package org.reddragonfly.iplsqldevj.bean.dbbean;
import java.sql.ResultSet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts2.ServletActionContext;
import org.reddragonfly.iplsqldevj.bean.CharSet;
import org.reddragonfly.iplsqldevj.bean.UserBean;
import com.opensymphony.xwork2.ActionContext;
public class DbJavaSourceBean extends DbBean {
public static String TYPE = "java source";
public static String ICON_INVALID = "dbimages/invalid_javas.png";
public static String ICON_VALID = "dbimages/valid_javas.png";
public static String ICON_PARAMTER = "dbimages/parameter.png";
protected static String[] FIELDS =
{"References","Referenced by"};
protected String name = "";
public DbJavaSourceBean(String name){
this.name = name;
}
public String getTreeXml() {
// TODO Auto-generated method stub
StringBuffer sb = new StringBuffer();
sb.append("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
sb.append("<tree>");
for(int i = 0;i < FIELDS.length;i++){
//客户端脚本已经重写了onmouseover事件,事实上在客户端为onmouseup事件,这是出于鼠标右键的考虑
sb.append("<tree text=\""+FIELDS[i]+"\" src=\"showTree.action?type="+TYPE+"&name="+name+"&field="+FIELDS[i]+"\" onblur=\"hideMenu()\" onmouseover=\"showAppointedMenu('"+TYPE+"','"+name+"','"+FIELDS[i]+"',event)\" />");
}
sb.append("</tree>");
return sb.toString();
}
public String getFieldTreeXml(String fieldName) {
// TODO Auto-generated method stub
//String[] field = fieldName.split("\\.",4);
StringBuffer sb = new StringBuffer();
sb.append("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
sb.append("<tree>");
//System.out.println(name);
if(fieldName.equals(FIELDS[0])) {
sb.append(getGrantedToUser(name));
}
if(fieldName.equals(FIELDS[1])) {
sb.append(getGrantedToRole(name));
}
sb.append("</tree>");
return sb.toString();
}
public String getMenuScript(){
StringBuffer returnVal = new StringBuffer();
returnVal.append("myMenu.width = 200;");
returnVal.append("myMenu.add(new WFXMI(\"New...\", \"javascript:showRoot('"+TYPE+"','"+name+"','Java sources','New...','550px','300px');\"));");
returnVal.append("myMenu.add(new WebFXMenuSeparator());");
returnVal.append("myMenu.add(new WFXMI(\"Refresh\", \"javascript:tree.getSelected().reload();\"));");
returnVal.append("myMenu.add(new WFXMI(\"Copy comma separated\"));");
returnVal.append("myMenu.add(new WebFXMenuSeparator());");
returnVal.append("myMenu.add(new WFXMI(\"Properties\"));");
returnVal.append("myMenu.add(new WebFXMenuSeparator());");
returnVal.append("myMenu.add(new WFXMI(\"View\"));");
returnVal.append("myMenu.add(new WFXMI(\"Edit\"));");
returnVal.append("myMenu.add(new WFXMI(\"Drop\",\"javascript:showCommon('"+TYPE+"','"+name+"','','Drop','500px','120px');\"));");
returnVal.append("myMenu.add(new WebFXMenuSeparator());");
returnVal.append("myMenu.add(new WFXMI(\"Recompile\"));");
returnVal.append("myMenu.add(new WebFXMenuSeparator());");
returnVal.append("var sub2 = new WebFXMenu;");
returnVal.append("sub2.width = 180;");
returnVal.append("sub2.add(new WFXMI(\"(No user defined folders)\"));");
returnVal.append("myMenu.add(new WFXMI(\"Add to folder\",null,null,sub2));");
return returnVal.toString();
}
public String getFieldMenuScript(String fieldName){
StringBuffer returnVal = new StringBuffer();
if(fieldName.equals(FIELDS[0])){
returnVal.append("myMenu.width = 150;");
returnVal.append("myMenu.add(new WFXMI(\"Refresh\", \"javascript:tree.getSelected().reload();\"));");
returnVal.append("myMenu.add(new WFXMI(\"Copy comma separated\"));");
}else if(fieldName.equals(FIELDS[1])){
returnVal.append("myMenu.width = 150;");
returnVal.append("myMenu.add(new WFXMI(\"Refresh\", \"javascript:tree.getSelected().reload();\"));");
returnVal.append("myMenu.add(new WFXMI(\"Copy comma separated\"));");
}
return returnVal.toString();
}
public String getGrantedToUser(String name) {
StringBuffer sb = new StringBuffer();
ActionContext ctx = ActionContext.getContext();
HttpServletRequest request = (HttpServletRequest)ctx.get(ServletActionContext.HTTP_REQUEST);
HttpSession session = request.getSession();
UserBean ub = (UserBean)session.getAttribute("user");
String sql = null;
ResultSet rs = null;
String icon= ICON_PARAMTER;
try{
String obj = null;
String roleObj = "role_tab_privs";
String subType = "USER";
String filed = DbUserBean.FIELDS_PRI + "." + name;
if(ub.getDbglobal()) {
obj = "all_tab_privs";
sql = "select distinct grantee from " + obj + " where table_name='" + name + "' and grantor='" + ub.getUsername().toUpperCase() + "'";
} else {
obj = "user_tab_privs";
sql = "select distinct grantee from " + obj + " userp where table_name='" + name + "' and not exists (select 1 from " + roleObj + " rolep where rolep.role = userp.grantee and rolep.table_name = userp.table_name)";
}
rs = ub.getDb().getRS(sql);
int i = 0;
while(rs.next()){
i = 1;
String objectName = "";
icon = DbBeanManager.getChildMenuIcon(subType,"");
objectName = CharSet.nullToEmpty(rs.getString(1));
sb.append("<tree text=\""+objectName+"\" src=\"showTree.action?type="+subType+"&name="+objectName+"&field="+filed+"\" icon=\""+ icon +"\" openIcon=\""+ icon +"\" onblur=\"hideMenu()\" onmouseover=\"showAppointedMenu('"+subType+"','"+objectName+"','"+""+"',event)\" />");
}
if (i == 0) sb.append("<tree text=\"Nodata\" />");
}catch(Exception e){
throw new RuntimeException(e);
}finally{
if(rs != null) ub.getDb().close(rs);
}
return sb.toString();
}
public String getGrantedToRole(String name) {
StringBuffer sb = new StringBuffer();
ActionContext ctx = ActionContext.getContext();
HttpServletRequest request = (HttpServletRequest)ctx.get(ServletActionContext.HTTP_REQUEST);
HttpSession session = request.getSession();
UserBean ub = (UserBean)session.getAttribute("user");
String sql = null;
ResultSet rs = null;
String icon= ICON_PARAMTER;
try{
String obj = null;
String roleObj = "role_tab_privs";
String subType = "ROLE";
String filed = DbUserBean.FIELDS_PRI + "." + name;
if(ub.getDbglobal()) {
obj = "all_tab_privs";
sql = "select distinct grantee from " + obj + " where table_name='" + name + "' and grantor='" + ub.getUsername().toUpperCase() + "'";
} else {
obj = "user_tab_privs";
sql = "select distinct grantee from " + obj + " userp where table_name='" + name + "' and exists (select 1 from " + roleObj + " rolep where rolep.role = userp.grantee and rolep.table_name = userp.table_name)";
}
rs = ub.getDb().getRS(sql);
int i = 0;
while(rs.next()){
i = 1;
String objectName = "";
icon = DbBeanManager.getChildMenuIcon(subType,"");
objectName = CharSet.nullToEmpty(rs.getString(1));
sb.append("<tree text=\""+objectName+"\" src=\"showTree.action?type="+subType+"&name="+objectName+"&field="+filed+"\" icon=\""+ icon +"\" openIcon=\""+ icon +"\" onblur=\"hideMenu()\" onmouseover=\"showAppointedMenu('"+subType+"','"+objectName+"','"+""+"',event)\" />");
}
if (i == 0) sb.append("<tree text=\"Nodata\" />");
}catch(Exception e){
throw new RuntimeException(e);
}finally{
if(rs != null) ub.getDb().close(rs);
}
return sb.toString();
}
}
|
[
"oldinaction@qq.com"
] |
oldinaction@qq.com
|
5d77a4ab7585b5ed826a9a3e65513e612bc891c5
|
cb5f27eb6960c64542023d7382d6b917da38f0fc
|
/sources/com/google/zxing/oned/UPCEANExtension5Support.java
|
cfc92fcad6b0ca61297336664de058fe54bb38a8
|
[] |
no_license
|
djtwisty/ccah
|
a9aee5608d48448f18156dd7efc6ece4f32623a5
|
af89c8d3c216ec3371929436545227682e811be7
|
refs/heads/master
| 2020-04-13T05:33:08.267985
| 2018-12-24T13:52:39
| 2018-12-24T13:52:39
| 162,995,366
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,648
|
java
|
package com.google.zxing.oned;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.NotFoundException;
import com.google.zxing.Result;
import com.google.zxing.ResultMetadataType;
import com.google.zxing.ResultPoint;
import com.google.zxing.common.BitArray;
import java.util.EnumMap;
import java.util.Map;
final class UPCEANExtension5Support {
private static final int[] CHECK_DIGIT_ENCODINGS = new int[]{24, 20, 18, 17, 12, 6, 3, 10, 9, 5};
private final int[] decodeMiddleCounters = new int[4];
private final StringBuilder decodeRowStringBuffer = new StringBuilder();
UPCEANExtension5Support() {
}
Result decodeRow(int i, BitArray bitArray, int[] iArr) {
StringBuilder stringBuilder = this.decodeRowStringBuffer;
stringBuilder.setLength(0);
int decodeMiddle = decodeMiddle(bitArray, iArr, stringBuilder);
String stringBuilder2 = stringBuilder.toString();
Map parseExtensionString = parseExtensionString(stringBuilder2);
Result result = new Result(stringBuilder2, null, new ResultPoint[]{new ResultPoint(((float) (iArr[0] + iArr[1])) / 2.0f, (float) i), new ResultPoint((float) decodeMiddle, (float) i)}, BarcodeFormat.UPC_EAN_EXTENSION);
if (parseExtensionString != null) {
result.putAllMetadata(parseExtensionString);
}
return result;
}
private int decodeMiddle(BitArray bitArray, int[] iArr, StringBuilder stringBuilder) {
int[] iArr2 = this.decodeMiddleCounters;
iArr2[0] = 0;
iArr2[1] = 0;
iArr2[2] = 0;
iArr2[3] = 0;
int size = bitArray.getSize();
int i = iArr[1];
int i2 = 0;
for (int i3 = 0; i3 < 5 && i < size; i3++) {
int decodeDigit = UPCEANReader.decodeDigit(bitArray, iArr2, i, UPCEANReader.L_AND_G_PATTERNS);
stringBuilder.append((char) ((decodeDigit % 10) + 48));
for (int i4 : iArr2) {
i += i4;
}
if (decodeDigit >= 10) {
i2 |= 1 << (4 - i3);
}
if (i3 != 4) {
i = bitArray.getNextUnset(bitArray.getNextSet(i));
}
}
if (stringBuilder.length() != 5) {
throw NotFoundException.getNotFoundInstance();
}
if (extensionChecksum(stringBuilder.toString()) == determineCheckDigit(i2)) {
return i;
}
throw NotFoundException.getNotFoundInstance();
}
private static int extensionChecksum(CharSequence charSequence) {
int i;
int length = charSequence.length();
int i2 = 0;
for (i = length - 2; i >= 0; i -= 2) {
i2 += charSequence.charAt(i) - 48;
}
i2 *= 3;
for (i = length - 1; i >= 0; i -= 2) {
i2 += charSequence.charAt(i) - 48;
}
return (i2 * 3) % 10;
}
private static int determineCheckDigit(int i) {
for (int i2 = 0; i2 < 10; i2++) {
if (i == CHECK_DIGIT_ENCODINGS[i2]) {
return i2;
}
}
throw NotFoundException.getNotFoundInstance();
}
private static Map<ResultMetadataType, Object> parseExtensionString(String str) {
if (str.length() != 5) {
return null;
}
String parseExtension5String = parseExtension5String(str);
if (parseExtension5String == null) {
return null;
}
Map<ResultMetadataType, Object> enumMap = new EnumMap(ResultMetadataType.class);
enumMap.put(ResultMetadataType.SUGGESTED_PRICE, parseExtension5String);
return enumMap;
}
private static String parseExtension5String(String str) {
String str2;
switch (str.charAt(0)) {
case '0':
str2 = "£";
break;
case '5':
str2 = "$";
break;
case '9':
if (!"90000".equals(str)) {
if (!"99991".equals(str)) {
if (!"99990".equals(str)) {
str2 = "";
break;
}
return "Used";
}
return "0.00";
}
return null;
default:
str2 = "";
break;
}
int parseInt = Integer.parseInt(str.substring(1));
String valueOf = String.valueOf(parseInt / 100);
parseInt %= 100;
return str2 + valueOf + '.' + (parseInt < 10 ? "0" + parseInt : String.valueOf(parseInt));
}
}
|
[
"alex@Alexs-MacBook-Pro.local"
] |
alex@Alexs-MacBook-Pro.local
|
1e71e5eb9a98d51f5b8a1c63ff1afe5dc7120905
|
90eb7a131e5b3dc79e2d1e1baeed171684ef6a22
|
/sources/p005b/p268n/p269a/p270a/p271e/C4761b.java
|
704f4a88bc9025fa95297884f0e030512eb740a7
|
[] |
no_license
|
shalviraj/greenlens
|
1c6608dca75ec204e85fba3171995628d2ee8961
|
fe9f9b5a3ef4a18f91e12d3925e09745c51bf081
|
refs/heads/main
| 2023-04-20T13:50:14.619773
| 2021-04-26T15:45:11
| 2021-04-26T15:45:11
| 361,799,768
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 872
|
java
|
package p005b.p268n.p269a.p270a.p271e;
import androidx.annotation.NonNull;
import androidx.annotation.RestrictTo;
import java.io.FileDescriptor;
import java.io.IOException;
import p005b.p051h.p052a.p055m.C0979p;
import p005b.p080i.p081a.C1422f;
import p005b.p080i.p081a.C1501h;
import p005b.p096l.p097a.p113c.p119b.p126p.C1960d;
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* renamed from: b.n.a.a.e.b */
public final class C4761b extends C4767h<FileDescriptor> {
/* renamed from: d */
public int mo16485d(@NonNull Object obj) {
return C1960d.m2764X((FileDescriptor) obj);
}
/* renamed from: e */
public C1422f mo16486e(@NonNull Object obj, int i, int i2, @NonNull C0979p pVar) {
try {
return C1960d.m2774a0((FileDescriptor) obj);
} catch (C1501h | IOException e) {
throw new C4768i(e);
}
}
}
|
[
"73280944+shalviraj@users.noreply.github.com"
] |
73280944+shalviraj@users.noreply.github.com
|
e9a19dc935d498384e8e8b9639fa56540859b00e
|
21ae833dd1d4acaf389104940823dd6c7a94d539
|
/app/src/main/java/com/zggk/bridge/popuwindow/WheelScroller.java
|
5c21ddc496bcdfea14203c5e3f37b2612ad61eff
|
[] |
no_license
|
zhangchengku/MyApplication3
|
1df306f35eae5c16a71a3a83a1f75be92b7650ea
|
f5e6846cf078d9210ea408d7d01353fbda82bea4
|
refs/heads/master
| 2022-01-20T14:12:43.398019
| 2019-07-23T05:54:51
| 2019-07-23T05:54:51
| 198,360,960
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,300
|
java
|
/*
* Android Wheel Control.
* https://code.google.com/p/android-wheel/
*
* Copyright 2011 Yuri Kanivets
*
* 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 com.zggk.bridge.popuwindow;
import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.view.GestureDetector;
import android.view.GestureDetector.SimpleOnGestureListener;
import android.view.MotionEvent;
import android.view.animation.Interpolator;
import android.widget.Scroller;
/**
* Scroller class handles scrolling events and updates the
*/
public class WheelScroller {
/**
* Scrolling listener interface
*/
public interface ScrollingListener {
/**
* Scrolling callback called when scrolling is performed.
* @param distance the distance to scroll
*/
void onScroll(int distance);
/**
* Starting callback called when scrolling is started
*/
void onStarted();
/**
* Finishing callback called after justifying
*/
void onFinished();
/**
* Justifying callback called to justify a view when scrolling is ended
*/
void onJustify();
}
/** Scrolling duration */
private static final int SCROLLING_DURATION = 400;
/** Minimum delta for scrolling */
public static final int MIN_DELTA_FOR_SCROLLING = 1;
// Listener
private ScrollingListener listener;
// Context
private Context context;
// Scrolling
private GestureDetector gestureDetector;
private Scroller scroller;
private int lastScrollY;
private float lastTouchedY;
private boolean isScrollingPerformed;
/**
* Constructor
* @param context the current context
* @param listener the scrolling listener
*/
public WheelScroller(Context context, ScrollingListener listener) {
gestureDetector = new GestureDetector(context, gestureListener);
gestureDetector.setIsLongpressEnabled(false);
scroller = new Scroller(context);
this.listener = listener;
this.context = context;
}
/**
* Set the the specified scrolling interpolator
* @param interpolator the interpolator
*/
public void setInterpolator(Interpolator interpolator) {
scroller.forceFinished(true);
scroller = new Scroller(context, interpolator);
}
/**
* Scroll the wheel
* @param distance the scrolling distance
* @param time the scrolling duration
*/
public void scroll(int distance, int time) {
scroller.forceFinished(true);
lastScrollY = 0;
scroller.startScroll(0, 0, 0, distance, time != 0 ? time : SCROLLING_DURATION);
setNextMessage(MESSAGE_SCROLL);
startScrolling();
}
/**
* Stops scrolling
*/
public void stopScrolling() {
scroller.forceFinished(true);
}
/**
* Handles Touch event
* @param event the motion event
* @return
*/
public boolean onTouchEvent(MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
lastTouchedY = event.getY();
scroller.forceFinished(true);
clearMessages();
break;
case MotionEvent.ACTION_MOVE:
// perform scrolling
int distanceY = (int)(event.getY() - lastTouchedY);
if (distanceY != 0) {
startScrolling();
listener.onScroll(distanceY);
lastTouchedY = event.getY();
}
break;
}
if (!gestureDetector.onTouchEvent(event) && event.getAction() == MotionEvent.ACTION_UP) {
justify();
}
return true;
}
// gesture listener
private SimpleOnGestureListener gestureListener = new SimpleOnGestureListener() {
public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {
// Do scrolling in onTouchEvent() since onScroll() are not call immediately
// when user touch and move the wheel
return true;
}
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
lastScrollY = 0;
final int maxY = 0x7FFFFFFF;
final int minY = -maxY;
scroller.fling(0, lastScrollY, 0, (int) -velocityY, 0, 0, minY, maxY);
setNextMessage(MESSAGE_SCROLL);
return true;
}
};
// Messages
private final int MESSAGE_SCROLL = 0;
private final int MESSAGE_JUSTIFY = 1;
/**
* Set next message to queue. Clears queue before.
*
* @param message the message to set
*/
private void setNextMessage(int message) {
clearMessages();
animationHandler.sendEmptyMessage(message);
}
/**
* Clears messages from queue
*/
private void clearMessages() {
animationHandler.removeMessages(MESSAGE_SCROLL);
animationHandler.removeMessages(MESSAGE_JUSTIFY);
}
// animation handler
private Handler animationHandler = new Handler() {
public void handleMessage(Message msg) {
scroller.computeScrollOffset();
int currY = scroller.getCurrY();
int delta = lastScrollY - currY;
lastScrollY = currY;
if (delta != 0) {
listener.onScroll(delta);
}
// scrolling is not finished when it comes to final Y
// so, finish it manually
if (Math.abs(currY - scroller.getFinalY()) < MIN_DELTA_FOR_SCROLLING) {
currY = scroller.getFinalY();
scroller.forceFinished(true);
}
if (!scroller.isFinished()) {
animationHandler.sendEmptyMessage(msg.what);
} else if (msg.what == MESSAGE_SCROLL) {
justify();
} else {
finishScrolling();
}
}
};
/**
* Justifies wheel
*/
private void justify() {
listener.onJustify();
setNextMessage(MESSAGE_JUSTIFY);
}
/**
* Starts scrolling
*/
private void startScrolling() {
if (!isScrollingPerformed) {
isScrollingPerformed = true;
listener.onStarted();
}
}
/**
* Finishes scrolling
*/
void finishScrolling() {
if (isScrollingPerformed) {
listener.onFinished();
isScrollingPerformed = false;
}
}
}
|
[
"13552008150@163.com"
] |
13552008150@163.com
|
c6ccee197f9943faed4f98b11340a8c78983f73f
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/single-large-project/src/test/java/org/gradle/test/performancenull_309/Testnull_30804.java
|
ebfccd894ef97f5d88a71b66bb1744a59deea9a3
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 308
|
java
|
package org.gradle.test.performancenull_309;
import static org.junit.Assert.*;
public class Testnull_30804 {
private final Productionnull_30804 production = new Productionnull_30804("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
37b3f9cd939595d18d41a1c828022bebe0e1095e
|
b60da22bc192211b3978764e63af23e2e24081f5
|
/cdc/src/share/basis/classes/common/sun/awt/image/XbmImageDecoder.java
|
9a237ce3b565a9418d5e66b1ad5f03bed8abf172
|
[] |
no_license
|
clamp03/JavaAOTC
|
44d566927c057c013538ab51e086c42c6348554e
|
0ade633837ed9698cd74a3f6928ebde3d96bd3e3
|
refs/heads/master
| 2021-01-01T19:33:51.612033
| 2014-12-02T14:29:58
| 2014-12-02T14:29:58
| 27,435,591
| 5
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,354
|
java
|
/*
* @(#)XbmImageDecoder.java 1.20 06/10/10
*
* Copyright 1990-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version
* 2 only, as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License version 2 for more details (a copy is
* included at /legal/license.txt).
*
* You should have received a copy of the GNU General Public License
* version 2 along with this work; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 or visit www.sun.com if you need additional
* information or have any questions.
*
*/
/*-
* Reads xbitmap format images into a DIBitmap structure.
*/
package sun.awt.image;
import java.io.*;
import java.awt.image.*;
/**
* Parse files of the form:
*
* #define foo_width w
* #define foo_height h
* static char foo_bits[] = {
* 0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,
* 0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,0xnn,
* 0xnn,0xnn,0xnn,0xnn};
*
* @version 1.15 08/19/02
* @author James Gosling
*/
public class XbmImageDecoder extends ImageDecoder {
private static byte XbmColormap[] = {(byte) 255, (byte) 255, (byte) 255,
0, 0, 0};
private static int XbmHints = (ImageConsumer.TOPDOWNLEFTRIGHT |
ImageConsumer.COMPLETESCANLINES |
ImageConsumer.SINGLEPASS |
ImageConsumer.SINGLEFRAME);
public XbmImageDecoder(InputStreamImageSource src, InputStream is) {
super(src, is);
if (!(input instanceof BufferedInputStream)) {
// If the topmost stream is a metered stream,
// we take forever to decode the image...
input = new BufferedInputStream(input, 80);
}
}
/**
* An error has occurred. Throw an exception.
*/
private static void error(String s1) throws ImageFormatException {
throw new ImageFormatException(s1);
}
/**
* produce an image from the stream.
*/
public void produceImage() throws IOException, ImageFormatException {
char nm[] = new char[80];
int c;
int i = 0;
int state = 0;
int H = 0;
int W = 0;
int x = 0;
int y = 0;
boolean start = true;
byte raster[] = null;
IndexColorModel model = null;
while (!aborted && (c = input.read()) != -1) {
if ('a' <= c && c <= 'z' ||
'A' <= c && c <= 'Z' ||
'0' <= c && c <= '9' || c == '#' || c == '_') {
if (i < 78)
nm[i++] = (char) c;
} else if (i > 0) {
int nc = i;
i = 0;
if (start) {
if (nc != 7 ||
nm[0] != '#' ||
nm[1] != 'd' ||
nm[2] != 'e' ||
nm[3] != 'f' ||
nm[4] != 'i' ||
nm[5] != 'n' ||
nm[6] != 'e') {
error("Not an XBM file");
}
start = false;
}
if (nm[nc - 1] == 'h')
state = 1; /* expecting width */
else if (nm[nc - 1] == 't' && nc > 1 && nm[nc - 2] == 'h')
state = 2; /* expecting height */
else if (nc > 2 && state < 0 && nm[0] == '0' && nm[1] == 'x') {
int n = 0;
for (int p = 2; p < nc; p++) {
c = nm[p];
if ('0' <= c && c <= '9')
c = c - '0';
else if ('A' <= c && c <= 'Z')
c = c - 'A' + 10;
else if ('a' <= c && c <= 'z')
c = c - 'a' + 10;
else
c = 0;
n = n * 16 + c;
}
for (int mask = 1; mask <= 0x80; mask <<= 1) {
if (x < W) {
if ((n & mask) != 0)
raster[x] = 1;
else
raster[x] = 0;
}
x++;
}
if (x >= W) {
if (setPixels(0, y, W, 1, model, raster, 0, W) <= 0) {
return;
}
x = 0;
if (y++ >= H) {
break;
}
}
} else {
int n = 0;
for (int p = 0; p < nc; p++)
if ('0' <= (c = nm[p]) && c <= '9')
n = n * 10 + c - '0';
else {
n = -1;
break;
}
if (n > 0 && state > 0) {
if (state == 1)
W = n;
else
H = n;
if (W == 0 || H == 0)
state = 0;
else {
model = new IndexColorModel(8, 2, XbmColormap,
0, false, 0);
setDimensions(W, H);
setColorModel(model);
setHints(XbmHints);
headerComplete();
raster = new byte[W];
state = -1;
}
}
}
}
}
input.close();
imageComplete(ImageConsumer.STATICIMAGEDONE, true);
}
}
|
[
"clamp03@gmail.com"
] |
clamp03@gmail.com
|
983a6aacdadd285a3e2d2852df5e53b23fe5444b
|
e7ee311e20b40c87bf6d23a53a1d7b11fd29d2c3
|
/src/chosun/ciis/ad/mg/ds/AD_MG_1040_ADataSet.java
|
40f9076fbc8a6821602c9c3239293c6c16d8c68c
|
[] |
no_license
|
nosmoon/misdevteam
|
4e3695ef7bbdcd231bb84d7d8d7df54a23ff0a60
|
1829d5bd489eb6dd307ca244f0e183a31a1de773
|
refs/heads/master
| 2020-04-15T15:57:05.480056
| 2019-01-10T01:12:01
| 2019-01-10T01:12:01
| 164,812,547
| 1
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 2,942
|
java
|
/***************************************************************************************************
* 파일명 : .java
* 기능 : 독자우대-구독신청
* 작성일자 : 2007-05-22
* 작성자 : 김대섭
***************************************************************************************************/
/***************************************************************************************************
* 수정내역 :
* 수정자 :
* 수정일자 :
* 백업 :
***************************************************************************************************/
package chosun.ciis.ad.mg.ds;
import java.sql.CallableStatement;
import java.sql.SQLException;
import somo.framework.util.Util;
/**
*
*/
public class AD_MG_1040_ADataSet extends somo.framework.db.BaseDataSet implements java.io.Serializable{
public String errcode;
public String errmsg;
public String exec_no;
public AD_MG_1040_ADataSet(){}
public AD_MG_1040_ADataSet(String errcode, String errmsg, String exec_no){
this.errcode = errcode;
this.errmsg = errmsg;
this.exec_no = exec_no;
}
public void setErrcode(String errcode){
this.errcode = errcode;
}
public void setErrmsg(String errmsg){
this.errmsg = errmsg;
}
public void setExec_no(String exec_no){
this.exec_no = exec_no;
}
public String getErrcode(){
return this.errcode;
}
public String getErrmsg(){
return this.errmsg;
}
public String getExec_no(){
return this.exec_no;
}
public void getValues(CallableStatement cstmt) throws SQLException{
this.errcode = Util.checkString(cstmt.getString(1));
this.errmsg = Util.checkString(cstmt.getString(2));
if(!"".equals(this.errcode)){
return;
}
this.exec_no = Util.checkString(cstmt.getString(5));
}
}/*----------------------------------------------------------------------------------------------------
Web Tier에서 DataSet 객체 관련 코드 작성시 사용하십시오.
<%
AD_MG_1040_ADataSet ds = (AD_MG_1040_ADataSet)request.getAttribute("ds");
%>
Web Tier에서 Record 객체 관련 코드 작성시 사용하십시오.
----------------------------------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------------------------------
Web Tier에서 DataSet 객체의 <%= %> 작성시 사용하십시오.
<%= ds.getErrcode()%>
<%= ds.getErrmsg()%>
<%= ds.getExec_no()%>
----------------------------------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------------------------------
Web Tier에서 Record 객체의 <%= %> 작성시 사용하십시오.
----------------------------------------------------------------------------------------------------*/
/* 작성시간 : Wed May 13 16:36:06 KST 2009 */
|
[
"DLCOM000@172.16.30.11"
] |
DLCOM000@172.16.30.11
|
87f6358507dcc96bb91a83a1287afcc2e75aefad
|
57f533f1ce80823d8c9432804af11e659e211f99
|
/src/main/java/org/health/model/SQLRequest.java
|
7dffdb8dc02c4aea5fb53d226e8fb8012a30d387
|
[
"MIT"
] |
permissive
|
khasang/health
|
81e7be1e9eb8d9c6e11f60ba2680330d6168e6bc
|
1284105c3fb7db56549e6e8484c51c5e65ea5095
|
refs/heads/master
| 2020-08-01T07:23:22.400070
| 2019-11-24T19:36:47
| 2019-11-24T19:36:47
| 210,913,033
| 1
| 0
|
MIT
| 2019-12-08T18:04:26
| 2019-09-25T18:25:44
|
Java
|
UTF-8
|
Java
| false
| false
| 359
|
java
|
package org.health.model;
public interface SQLRequest {
/**
* method required for adding table to DB
* return status with String
* */
String getTableCreationStatus();
/**
* @param name - specific name of dogs
* @return count of dog's with specific name
* */
Integer getInfo(String name, String description);
}
|
[
"azon.sk@gmail.com"
] |
azon.sk@gmail.com
|
3a989af0605b099f3952e54503453e4d871b7b1e
|
52fbe7a7ed03593c05356c469bdb858c68d391d0
|
/src/test/java/org/demo/test/GlobalCurrencyRateEntityFactoryForTest.java
|
f3ac049d47ddf5e0174da7d4eec9d8c57ab402f8
|
[] |
no_license
|
altansenel/maven-project
|
4d165cb10da24159f58d083f4d5e4442ab3265b2
|
0f2e392553e5fb031235c9df776a4a01b077c349
|
refs/heads/master
| 2016-08-12T05:51:51.359531
| 2016-02-25T07:26:28
| 2016-02-25T07:26:28
| 52,504,851
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 458
|
java
|
package org.demo.test;
import org.demo.bean.jpa.GlobalCurrencyRateEntity;
public class GlobalCurrencyRateEntityFactoryForTest {
private MockValues mockValues = new MockValues();
public GlobalCurrencyRateEntity newGlobalCurrencyRateEntity() {
Integer id = mockValues.nextInteger();
GlobalCurrencyRateEntity globalCurrencyRateEntity = new GlobalCurrencyRateEntity();
globalCurrencyRateEntity.setId(id);
return globalCurrencyRateEntity;
}
}
|
[
"altan.senel@gunessigorta.com.tr"
] |
altan.senel@gunessigorta.com.tr
|
49fbb42f96e505d06ab14e2ffebf3060e65d4f58
|
f5db5e36764e03816dd6cf467a3ae2ba9d23a40a
|
/Program1/src/com/ws/program/Program.java
|
bd14aecd64b25f6b3f60e2438376aaa3f1d29127
|
[] |
no_license
|
zkl-whu/InterviewProgrammer
|
7f6e6d07aadcf543e722d05b7b9c91552e32a456
|
9c9038a6ae5d6da9ab42c416d57667e1b1721877
|
refs/heads/master
| 2021-01-22T18:08:06.635495
| 2016-09-23T06:02:35
| 2016-09-23T06:02:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,128
|
java
|
package com.ws.program;
/**
* 利用字符重复出现的次数,编写一个方法,实现基本的字符串压缩功能,比如,字符串
* aabcccccaaa会变成能够a2b1c5a3,若压缩后字符串长度没有变短,则返回原先的字符串
*/
/**
* Created by laowang on 16-9-6.
*/
public class Program {
public static void main(String []args){
System.out.println(compressAlternate("aaabbbcccddd"));
}
private static String compressAlternate(String str){
int size = countCompression(str);
if(size >= str.length()){
return str;
}
char []array = new char[size];
int index = 0;
char last = str.charAt(0);//记录首字符
int count = 1;//记录重复数量
for(int i=1;i<str.length();i++){
if(str.charAt(i)==last){
count++;
}else{
index = setChar(array,last,index,count);
last = str.charAt(i);
count = 1;
}
}
setChar(array,last,index,count);
return String.valueOf(array);
}
//多个相同字符简写
private static int setChar(char[] array, char last, int index, int count) {
array[index] = last;
index += 1;
/*
将数目转换成字符串,然后转换成字符数组
*/
char []cnt = String.valueOf(count).toCharArray();
for(char x: cnt){
array[index] = x;
index++;
}
return index;
}
//判断合并后的长度为多少
private static int countCompression(String str) {
if(str == null || str.length()==0)
return 0;
char last = str.charAt(0);
int size = 0;
int count = 1;
for(int i=1;i<str.length();i++){
if(str.charAt(i)==last){
count++;
}else{
last = str.charAt(i);
size += 1+String.valueOf(count).length();
count=1;
}
}
size += 1+String.valueOf(count).length();
return size;
}
}
|
[
"vipkia@sina.cn"
] |
vipkia@sina.cn
|
619650ef6822393b206fa4f6a863a590c67bc3d8
|
d81f128a33dd66a11b74e929cb6637b4d73b1c09
|
/Device_Cloud/.svn/pristine/95/953d5e07568a57aef7ed909f38e82bb7c4656b73.svn-base
|
2e06a3f6f3a1c2f713d1eb35904a51106051a0ee
|
[] |
no_license
|
deepakdinakaran86/poc
|
f56e146f01b66fd5231b3e16d1e5bf55ae4405c6
|
9aa4f845d3355f6ce8c5e205d42d66a369f671bb
|
refs/heads/master
| 2020-04-03T10:05:08.550330
| 2016-08-11T06:57:57
| 2016-08-11T06:57:57
| 65,439,459
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,916
|
/**
* Copyright 2014 Pacific Controls Software Services LLC (PCSS). All Rights
* Reserved.
*
* This software is the property of Pacific Controls Software Services LLC and
* its suppliers. The intellectual and technical concepts contained herein are
* proprietary to PCSS. Dissemination of this information or reproduction of
* this material is strictly forbidden unless prior written permission is
* obtained from Pacific Controls Software Services.
*
* PCSS MAKES NO REPRESENTATION OR WARRANTIES ABOUT THE SUITABILITY OF THE
* SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
* WARRANTIES OF MERCHANTANILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
* NON-INFRINGMENT. PCSS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY
* LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
* DERIVATIVES.
*/
package com.pcs.datasource.dto;
import java.io.Serializable;
/**
* POJO for AlarmExtension
*
* @author pcseg199
* @date Apr 15, 2015
* @since galaxy-1.0.0
*/
public class AlarmExtension implements Serializable{
/**
*
*/
private static final long serialVersionUID = 7321848448461239438L;
private String extensionName;
private String extensionType;
private String type;
private String criticality;
private String state;
private String alarmMessage;
private String normalMessage;
private String upperThresholdAlarmMessage;
private String lowerThresholdAlarmMessage;
private String upperThresholdNormalMessage;
private String lowerThresholdNormalMessage;
private Float lowerThreshold;
private Float upperThreshold;
public String getExtensionName() {
return extensionName;
}
public void setExtensionName(String extensionName) {
this.extensionName = extensionName;
}
public String getExtensionType() {
return extensionType;
}
public void setExtensionType(String extensionType) {
this.extensionType = extensionType;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getCriticality() {
return criticality;
}
public void setCriticality(String criticality) {
this.criticality = criticality;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public String getAlarmMessage() {
return alarmMessage;
}
public void setAlarmMessage(String alarmMessage) {
this.alarmMessage = alarmMessage;
}
public String getNormalMessage() {
return normalMessage;
}
public void setNormalMessage(String normalMessage) {
this.normalMessage = normalMessage;
}
public String getUpperThresholdAlarmMessage() {
return upperThresholdAlarmMessage;
}
public void setUpperThresholdAlarmMessage(String upperThresholdAlarmMessage) {
this.upperThresholdAlarmMessage = upperThresholdAlarmMessage;
}
public String getLowerThresholdAlarmMessage() {
return lowerThresholdAlarmMessage;
}
public void setLowerThresholdAlarmMessage(String lowerThresholdAlarmMessage) {
this.lowerThresholdAlarmMessage = lowerThresholdAlarmMessage;
}
public String getUpperThresholdNormalMessage() {
return upperThresholdNormalMessage;
}
public void setUpperThresholdNormalMessage(
String upperThresholdNormalMessage) {
this.upperThresholdNormalMessage = upperThresholdNormalMessage;
}
public String getLowerThresholdNormalMessage() {
return lowerThresholdNormalMessage;
}
public void setLowerThresholdNormalMessage(
String lowerThresholdNormalMessage) {
this.lowerThresholdNormalMessage = lowerThresholdNormalMessage;
}
public Float getLowerThreshold() {
return lowerThreshold;
}
public void setLowerThreshold(Float lowerThreshold) {
this.lowerThreshold = lowerThreshold;
}
public Float getUpperThreshold() {
return upperThreshold;
}
public void setUpperThreshold(Float upperThreshold) {
this.upperThreshold = upperThreshold;
}
}
|
[
"PCSEG288@pcs.com"
] |
PCSEG288@pcs.com
|
|
2f77b204d505a10da6275ac3653405455287dd6b
|
b66bdee811ed0eaea0b221fea851f59dd41e66ec
|
/src/com/google/android/gms/wallet/wobs/f.java
|
df01a860d6d038991fdbeb260fe6201f7a062cfe
|
[] |
no_license
|
reverseengineeringer/com.grubhub.android
|
3006a82613df5f0183e28c5e599ae5119f99d8da
|
5f035a4c036c9793483d0f2350aec2997989f0bb
|
refs/heads/master
| 2021-01-10T05:08:31.437366
| 2016-03-19T20:41:23
| 2016-03-19T20:41:23
| 54,286,207
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,018
|
java
|
package com.google.android.gms.wallet.wobs;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.google.android.gms.common.internal.safeparcel.a;
import com.google.android.gms.common.internal.safeparcel.b;
import com.google.android.gms.common.internal.safeparcel.c;
public class f
implements Parcelable.Creator<LoyaltyPoints>
{
static void a(LoyaltyPoints paramLoyaltyPoints, Parcel paramParcel, int paramInt)
{
int i = c.a(paramParcel);
c.a(paramParcel, 1, paramLoyaltyPoints.a());
c.a(paramParcel, 2, a, false);
c.a(paramParcel, 3, b, paramInt, false);
c.a(paramParcel, 4, c, false);
c.a(paramParcel, 5, d, paramInt, false);
c.a(paramParcel, i);
}
public LoyaltyPoints a(Parcel paramParcel)
{
TimeInterval localTimeInterval = null;
int j = a.b(paramParcel);
int i = 0;
String str1 = null;
LoyaltyPointsBalance localLoyaltyPointsBalance = null;
String str2 = null;
while (paramParcel.dataPosition() < j)
{
int k = a.a(paramParcel);
switch (a.a(k))
{
default:
a.b(paramParcel, k);
break;
case 1:
i = a.e(paramParcel, k);
break;
case 2:
str2 = a.j(paramParcel, k);
break;
case 3:
localLoyaltyPointsBalance = (LoyaltyPointsBalance)a.a(paramParcel, k, LoyaltyPointsBalance.CREATOR);
break;
case 4:
str1 = a.j(paramParcel, k);
break;
case 5:
localTimeInterval = (TimeInterval)a.a(paramParcel, k, TimeInterval.CREATOR);
}
}
if (paramParcel.dataPosition() != j) {
throw new b("Overread allowed size end=" + j, paramParcel);
}
return new LoyaltyPoints(i, str2, localLoyaltyPointsBalance, str1, localTimeInterval);
}
public LoyaltyPoints[] a(int paramInt)
{
return new LoyaltyPoints[paramInt];
}
}
/* Location:
* Qualified Name: com.google.android.gms.wallet.wobs.f
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
33a952e8fd45af0f18322f7fe29295c6c4cbecc9
|
749c5e082204bdc0fc09e253b4f8bba872834d2b
|
/VZhi/src/com/xiaobukuaipao/vzhi/AppliedPositionsActivity.java
|
52184a8d8dcb6c5e495c787bdf41c482f7b9badf
|
[] |
no_license
|
wanghaihui/tuding
|
5d00f1bb1e57854e28633681012d6f39787e46c1
|
b405477930433b772ae4948629043e81a34ef8d3
|
refs/heads/master
| 2021-01-10T01:35:17.739392
| 2016-02-18T08:37:50
| 2016-02-18T08:37:50
| 51,992,523
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,953
|
java
|
package com.xiaobukuaipao.vzhi;
import java.util.ArrayList;
import java.util.List;
import android.content.Context;
import android.content.Intent;
import android.os.Message;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.LinearLayout;
import android.widget.ListView;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.android.volley.RequestQueue;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.ImageLoader;
import com.android.volley.toolbox.Volley;
import com.xiaobukuaipao.vzhi.adapter.CommonAdapter;
import com.xiaobukuaipao.vzhi.adapter.ViewHolder;
import com.xiaobukuaipao.vzhi.cache.CommonBitmapMemoryCache;
import com.xiaobukuaipao.vzhi.domain.MyAppliedInfo;
import com.xiaobukuaipao.vzhi.domain.PublisherInfo;
import com.xiaobukuaipao.vzhi.event.InfoResult;
import com.xiaobukuaipao.vzhi.util.DisplayUtil;
import com.xiaobukuaipao.vzhi.util.GlobalConstants;
import com.xiaobukuaipao.vzhi.util.SpannableKeyWordBuilder;
import com.xiaobukuaipao.vzhi.util.StringUtils;
import com.xiaobukuaipao.vzhi.util.VToast;
import com.xiaobukuaipao.vzhi.view.RoundedNetworkImageView;
import com.xiaobukuaipao.vzhi.view.refresh.PullToRefreshBase;
import com.xiaobukuaipao.vzhi.view.refresh.PullToRefreshBase.Mode;
import com.xiaobukuaipao.vzhi.view.refresh.PullToRefreshBase.OnRefreshListener2;
import com.xiaobukuaipao.vzhi.view.refresh.PullToRefreshListView;
import com.xiaobukuaipao.vzhi.wrap.ProfileWrapActivity;
/**
* 我投递的职位
*
* @since 2015年01月04日20:12:10
*/
public class AppliedPositionsActivity extends ProfileWrapActivity implements OnItemClickListener {
/**
* 刷新列表控件
*/
private PullToRefreshListView mRefreshListView;
/**
* 我投递的信息列表
*/
private List<MyAppliedInfo> mApplieds;
/**
* 我投递的列表适配器
*/
private AppliedAdapter mAdapter;
/**
* Volley提供的网络请求队列
*/
private RequestQueue mQueue;
/**
* 图片加载器,启动线程等功能
*/
private ImageLoader mImageLoader;
/**
* 默认翻页标志位
*/
private final int defaultMinApplyId = -1;
/**
* 翻页标志位
*/
private int minApplyId = defaultMinApplyId;
/**
* 是否下拉刷新
*/
private boolean pullToRefresh = false;
@Override
public void initUIAndData() {
setContentView(R.layout.activity_applied_positions);
setHeaderMenuByLeft(this);
setHeaderMenuByCenterTitle(R.string.applied_positions_str);
//初始化适配器以及容器
mApplieds = new ArrayList<MyAppliedInfo>();
mAdapter = new AppliedAdapter(this, mApplieds, R.layout.item_applied);
mRefreshListView = (PullToRefreshListView) findViewById(R.id.applied_list);
mRefreshListView.setAdapter(mAdapter);
mRefreshListView.setEmptyView(findViewById(R.id.empty_view));
mRefreshListView.setOnItemClickListener(this);
mRefreshListView.setOnRefreshListener(new OnRefreshListener2<ListView>() {
@Override
public void onPullDownToRefresh(PullToRefreshBase<ListView> refreshView) {
pullToRefresh = true;
mProfileEventLogic.getMyPosted(defaultMinApplyId);
}
@Override
public void onPullUpToRefresh(PullToRefreshBase<ListView> refreshView) {
mProfileEventLogic.getMyPosted(minApplyId);
}
});
// mRefreshListView.setRefreshing();
// mRefreshListView.setShowViewWhileRefreshing(true);
// mRefreshListView.setScrollingWhileRefreshingEnabled(true);
// mRefreshListView.setPullToRefreshOverScrollEnabled(true);
mQueue = Volley.newRequestQueue(this);
mImageLoader = new ImageLoader(mQueue, new CommonBitmapMemoryCache());
mProfileEventLogic.getMyPosted(defaultMinApplyId);
}
class AppliedAdapter extends CommonAdapter<MyAppliedInfo>{
public AppliedAdapter(Context mContext, List<MyAppliedInfo> mDatas, int mItemLayoutId) {
super(mContext, mDatas, mItemLayoutId);
}
@Override
public void convert(ViewHolder viewHolder, final MyAppliedInfo item, final int position) {
viewHolder.setText(R.id.applied_title,item.getPosition());
SpannableKeyWordBuilder skwb = new SpannableKeyWordBuilder();
boolean splite = false;
if(StringUtils.isNotEmpty(item.getSalary())){
skwb.appendKeyWord(item.getSalary());
splite = true;
}
if(StringUtils.isNotEmpty(item.getCorp())){
if(splite){
skwb.append(" ");
}
skwb.append(item.getCorp());
splite = true;
}
if(StringUtils.isNotEmpty(item.getCity())){
if(splite){
skwb.append(" ");
}
skwb.append(item.getCity());
}
viewHolder.setText(R.id.applied_descrip,skwb.build());
skwb.delete(0, skwb.length());
skwb.setMode(SpannableKeyWordBuilder.MODE_NUMBER);
String count = getString(R.string.applied_position_tips,item.getApplynum(),item.getReadnum());
skwb.append(count);
viewHolder.setText(R.id.applied_count, skwb.build());
viewHolder.setText(R.id.applied_tag,item.getApplystatus());
skwb.delete(0, skwb.length());
// load publisher
LinearLayout head = viewHolder.getView(R.id.applied_head);
head.removeAllViews();
RoundedNetworkImageView avatar = new RoundedNetworkImageView(mContext);
avatar.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT));
final PublisherInfo publisherInfo = new PublisherInfo(item.getPublisher());
avatar.setBorderWidth(0f);
avatar.setBackgroundColor(getResources().getColor(R.color.general_color_F2F2F2));
avatar.setCornerRadius((float)DisplayUtil.px2dip(mContext, 5f));
avatar.setDefaultImageResId(R.drawable.general_user_avatar);
avatar.setImageUrl(publisherInfo.getAvatar(), mImageLoader);
head.addView(avatar);
head.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.setClass(mContext, PersonalShowPageActivity.class);
intent.putExtra(GlobalConstants.UID, String.valueOf(publisherInfo.getIntId()));
startActivity(intent);
}
});
viewHolder.getConvertView().setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.setClass(mContext, JobPositionInfoActivity.class);
intent.putExtra(GlobalConstants.JOB_ID, item.getId());
startActivity(intent);
}
});
}
}
@Override
public void onEventMainThread(Message msg) {
if (msg.obj instanceof InfoResult) {
InfoResult infoResult = (InfoResult) msg.obj;
switch (msg.what) {
case R.id.profile_position_posted:
// 将返回的JSON数据展示出来
JSONObject jsonResult = (JSONObject) JSONObject.parse(infoResult.getResult());
if(jsonResult != null){
JSONArray jsonArray = jsonResult.getJSONArray(GlobalConstants.JSON_DATA);
if(jsonArray != null){
minApplyId = jsonResult.getInteger(GlobalConstants.JSON_MINAPPLYID);
if (pullToRefresh) {
mApplieds.clear();
pullToRefresh = false;
}
for(int i = 0; i < jsonArray.size() ; i++ ){
mApplieds.add(new MyAppliedInfo(jsonArray.getJSONObject(i)));
}
mAdapter.notifyDataSetChanged();
//如果翻页标志为0,禁止上拉加载
mRefreshListView.setMode(minApplyId == 0 ? Mode.PULL_FROM_START : Mode.BOTH);
}
}
mRefreshListView.onRefreshComplete();
break;
default:
break;
}
}else if(msg.obj instanceof VolleyError){
VToast.show(this, getString(R.string.general_tips_network_unknow));
mRefreshListView.onRefreshComplete();
}
}
@Override
public void onItemClick(AdapterView<?> parent, View view, int position,
long id) {
}
}
|
[
"465495722@qq.com"
] |
465495722@qq.com
|
d554f8ff87853d0155d2722358cc6f3587d047f8
|
34f637c903c8cbba712f3b50c60a2caa80e77afa
|
/multyunits/src/main/java/pictures/example/administrator/multyunits/ui/Main2Activity.java
|
6d85e7568cc0676ab46cb3eb2319d56d5975d27f
|
[] |
no_license
|
StephenGiant/pictures
|
4c88b9d0b6cd7f8ae33025e4086e98f0eb7ef860
|
610aa824ba831221a1bb035f632c4c38173ce450
|
refs/heads/master
| 2016-08-12T12:06:03.801802
| 2016-03-03T03:54:45
| 2016-03-03T03:54:45
| 52,956,179
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,884
|
java
|
package pictures.example.administrator.multyunits.ui;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.StaggeredGridLayoutManager;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.google.android.gms.common.api.GoogleApiClient;
import java.util.ArrayList;
import java.util.List;
import butterknife.Bind;
import butterknife.ButterKnife;
import pictures.example.administrator.multyunits.R;
import pictures.example.administrator.multyunits.adapter.SimpleAdapter;
import pictures.example.administrator.multyunits.decorator.MyDivider;
import pictures.example.administrator.multyunits.decorator.MySpaceDecration;
public class Main2Activity extends AppCompatActivity {
@Bind(R.id.vp_content)
ViewPager vpContent;
@Bind(R.id.indicator)
TabLayout indicator;
/**
* ATTENTION: This was auto-generated to implement the App Indexing API.
* See https://g.co/AppIndexing/AndroidStudio for more information.
*/
private GoogleApiClient client;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.tab_act);
ButterKnife.bind(this);
initView();
// ATTENTION: This was auto-generated to implement the App Indexing API.
// See https://g.co/AppIndexing/AndroidStudio for more information.
// client = new GoogleApiClient.Builder(this).addApi(AppIndex.API).build();
}
List<View> views;
View view1;
View view2;
View view3;
ArrayList<String> function_list;
private void initView() {
view1 = View.inflate(this, R.layout.pager1, null);
view2 = View.inflate(this, R.layout.pager2, null);
view3 = View.inflate(this, R.layout.pager3, null);
views = new ArrayList<>();
views.add(view1);
views.add(view2);
views.add(view3);
function_list = new ArrayList<String>();
function_list.add("复核订单");
function_list.add("绑定箱号");
function_list.add("详细复核");
function_list.add("指令下架");
final String[] titles = {"邓紫棋", "车模", "杨幂"};
PagerAdapter pagerAdapter = new PagerAdapter() {
@Override
public CharSequence getPageTitle(int position) {
return titles[position];
}
@Override
public int getCount() {
return 3;
}
@Override
public void destroyItem(ViewGroup container, int position, Object object) {
container.removeView(views.get(position));
}
@Override
public Object instantiateItem(ViewGroup container, int position) {
container.addView(views.get(position));
return views.get(position);
}
@Override
public boolean isViewFromObject(View view, Object object) {
return view == object;
}
};
vpContent.setAdapter(pagerAdapter);
vpContent.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
@Override
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
}
@Override
public void onPageSelected(int position) {
switch(position){
case 0:
initView1();
break;
default:
break;
}
}
@Override
public void onPageScrollStateChanged(int state) {
}
});
indicator.setupWithViewPager(vpContent);
indicator.setTabGravity(TabLayout.GRAVITY_FILL);
indicator.setTabMode(TabLayout.MODE_FIXED);
// for(int x=0;x<indicator.getTabCount();x++){
// TabLayout.Tab tab = indicator.getTabAt(x);
// tab.setCustomView(getTabView(x));
// }
vpContent.setCurrentItem(0);
initView1();
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("MD对话框").setMessage("MD风格").setPositiveButton("确定", null).setInverseBackgroundForced(true).setCancelable(false).create().show();
}
public View getTabView(int position){
View view = View.inflate(Main2Activity.this, R.layout.tabview, null);
TextView textView = (TextView) view.findViewById(R.id.textView2);
textView.setText("页签" + (position + 1));
return view;
}
SimpleAdapter adapter;
private void initView1(){
RecyclerView functions = (RecyclerView) views.get(0).findViewById(R.id.functions);
StaggeredGridLayoutManager manager = new StaggeredGridLayoutManager(3, StaggeredGridLayoutManager.VERTICAL);
// LinearLayoutManager manager = new LinearLayoutManager(Main2Activity.this);
// manager.setOrientation(LinearLayoutManager.VERTICAL);
functions.setLayoutManager(manager);
if(adapter==null) {
adapter = new SimpleAdapter(Main2Activity.this, function_list);
MySpaceDecration spaceDecration = new MySpaceDecration(10);
MyDivider myDivider = new MyDivider(this, MyDivider.VERTICAL_LIST);
functions.setAdapter(adapter);
// functions.addItemDecoration(spaceDecration);
// functions.addItemDecoration(myDivider);
}else{
adapter.notifyDataSetChanged();
}
}
}
|
[
"zjttqyp@126.com"
] |
zjttqyp@126.com
|
f2ab534ac980d4e7efb82d54d409560ea4ffff76
|
e8cd24201cbfadef0f267151ea5b8a90cc505766
|
/group04/351121278/src/com/coding/basic/Queue.java
|
7ff587c88fefd7762cff9e43c1a63c490cc57b30
|
[] |
no_license
|
XMT-CN/coding2017-s1
|
30dd4ee886dd0a021498108353c20360148a6065
|
382f6bfeeeda2e76ffe27b440df4f328f9eafbe2
|
refs/heads/master
| 2021-01-21T21:38:42.199253
| 2017-06-25T07:44:21
| 2017-06-25T07:44:21
| 94,863,023
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 443
|
java
|
package com.coding.basic;
public class Queue {
private ArrayList elementData = new ArrayList();
public void enQueue(Object o){
elementData.add(o);
}
public Object deQueue(){
Object remove = elementData.remove(0);
return remove;
}
public boolean isEmpty(){
return elementData.size() == 0;
}
public int size(){
return elementData.size();
}
}
|
[
"542194147@qq.com"
] |
542194147@qq.com
|
94db9abeec26635316340d2bcec18a7bd9836560
|
4c8728ff2f46190046e5782400c2d8c414dcd13f
|
/src/main/java/cd4017be/rs_ctr2/part/FluidCounter.java
|
d1368827f1e15bd69883588b7c8dc48c50065550
|
[
"MIT"
] |
permissive
|
CD4017BE/RedstoneControl2
|
5c1cd9e66f0078f6d9eaeebd2e4daadd2b070e2e
|
6f8f2c4b56afb1924282849b18355fcd33521375
|
refs/heads/master-1.16.5
| 2023-08-02T12:43:55.549620
| 2021-12-15T14:23:47
| 2021-12-15T14:23:47
| 389,645,816
| 8
| 1
|
MIT
| 2022-01-06T04:34:10
| 2021-07-26T13:38:57
|
Java
|
UTF-8
|
Java
| false
| false
| 1,160
|
java
|
package cd4017be.rs_ctr2.part;
import static cd4017be.rs_ctr2.Content.fluid_counter;
import java.util.function.ObjIntConsumer;
import cd4017be.api.grid.port.IFluidAccess;
import net.minecraft.item.Item;
import net.minecraftforge.fluids.FluidStack;
/**
* @author CD4017BE */
public class FluidCounter extends ResourceCounter
implements ObjIntConsumer<FluidStack> {
IFluidAccess inv = IFluidAccess.NOP;
@Override
public Item item() {
return fluid_counter;
}
@Override
protected int type() {
return IFluidAccess.TYPE_ID;
}
@Override
protected void setSource(Object handler) {
inv = IFluidAccess.of(handler);
}
@Override
protected void count() {
state = 0;
inv.getContent(this);
}
@Override
public void accept(FluidStack stack, int value) {
state += empty ? value - stack.getAmount() : stack.getAmount();
}
@Override
protected String message(boolean empty) {
return empty ? "msg.rs_ctr2.count_air" : "msg.rs_ctr2.count_fluid";
}
@Override
public Object[] stateInfo() {
return new Object[] {
empty ? "state.rs_ctr2.air_counter" : "state.rs_ctr2.fluid_counter",
state, inv != IFluidAccess.NOP, clk
};
}
}
|
[
"cd4017be@gmail.com"
] |
cd4017be@gmail.com
|
2aef9ef5edcba7ab1e558ce8eefbeaeed37ab6e5
|
ca59ac9ae8ff13259b0a8c50cb11c90dda1c648e
|
/rpc-server/rpc-server-provider/src/main/java/com/tianhy/v2/HelloServiceImpl2.java
|
dcb9ef389845812c3cb539869badb10cefec59eb
|
[] |
no_license
|
AsTheStarsFall/Netty
|
c202efab8915eaba71f0ccf86974ddc7014544cc
|
76ae0474c6253745f48fbcfdc7453a8d20d10dc9
|
refs/heads/master
| 2022-10-13T17:07:39.904715
| 2020-03-20T01:19:57
| 2020-03-20T01:19:57
| 175,997,823
| 0
| 0
| null | 2022-10-04T23:56:25
| 2019-03-16T16:42:56
|
Java
|
UTF-8
|
Java
| false
| false
| 632
|
java
|
package com.tianhy.v2;
import com.tianhy.dto.User;
import com.tianhy.service.IHelloService;
/**
* {@link}
*
* @Desc: 接口实现类
* @Author: thy
* @CreateTime: 2019/6/19
**/
@RpcService(value = IHelloService.class,version = "v1.0")
public class HelloServiceImpl2 implements IHelloService {
@Override
public String sayHello(String content) {
System.out.println("v1.0 request sayHello:" + content);
return "v1.0 say hello :" + content;
}
@Override
public String saveUser(User user) {
System.out.println("v1.0 request saveUser:" + user);
return "v1.0 SUCCESS";
}
}
|
[
"1295029807@qq.com"
] |
1295029807@qq.com
|
af53f7b495717b6874528b88ef39acca72bdc532
|
7016cec54fb7140fd93ed805514b74201f721ccd
|
/src/java/com/echothree/control/user/geo/common/form/GetCountryForm.java
|
44c1cbdffe043bfe5b4298bb58b7da70b48295a9
|
[
"MIT",
"Apache-1.1",
"Apache-2.0"
] |
permissive
|
echothreellc/echothree
|
62fa6e88ef6449406d3035de7642ed92ffb2831b
|
bfe6152b1a40075ec65af0880dda135350a50eaf
|
refs/heads/master
| 2023-09-01T08:58:01.429249
| 2023-08-21T11:44:08
| 2023-08-21T11:44:08
| 154,900,256
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,320
|
java
|
// --------------------------------------------------------------------------------
// Copyright 2002-2023 Echo Three, LLC
//
// 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 com.echothree.control.user.geo.common.form;
import com.echothree.control.user.geo.common.spec.GeoCodeSpec;
public interface GetCountryForm
extends GeoCodeSpec {
String getCountryName();
void setCountryName(String countryName);
String getIso3Number();
void setIso3Number(String iso3Number);
String getIso3Letter();
void setIso3Letter(String iso3Letter);
String getIso2Letter();
void setIso2Letter(String iso2Letter);
String getAlias();
void setAlias(String alias);
}
|
[
"rich@echothree.com"
] |
rich@echothree.com
|
ce9a3c16dbf5e071199504e08c1e046ed0c64482
|
a944b8dc7f5651f370d21240d4790e6877e08ab4
|
/develop/back_end/java/base-java/src/main/java/com/runcoding/learn/algorithm/leet/hashtable/FindTheDifference.java
|
fad0d708abdcb93faa4836c2b6fbb30669ea2d9d
|
[
"Apache-2.0"
] |
permissive
|
runcoding/runcoding.github.io
|
767bfeae96f65bae7f76c58fdacec37e949f3888
|
eef507da64b4cbd5cb6e307d271f57c0858606f8
|
refs/heads/main
| 2021-08-19T15:22:47.368697
| 2021-07-17T06:22:26
| 2021-07-17T06:22:26
| 101,974,556
| 7
| 5
|
Apache-2.0
| 2021-06-07T18:28:30
| 2017-08-31T07:50:39
|
Java
|
UTF-8
|
Java
| false
| false
| 892
|
java
|
package com.runcoding.learn.algorithm.leet.hashtable;// Given two strings s and t which consist of only lowercase letters.
// String t is generated by random shuffling string s and then add one more letter at a random position.
// Find the letter that was added in t.
// Example:
// Input:
// s = "abcd"
// t = "abcde"
// Output:
// e
// Explanation:
// 'e' is the letter that was added.
public class FindTheDifference {
public char findTheDifference(String s, String t) {
int charCodeS = 0;
int charCodeT = 0;
for(int i = 0; i < s.length(); i++) {
charCodeS += (int)(s.charAt(i));
}
for(int i = 0; i < t.length(); i++) {
charCodeT += (int)(t.charAt(i));
}
return (char)(charCodeT - charCodeS);
}
}
|
[
"sixing@qunhemail.com"
] |
sixing@qunhemail.com
|
8255c428dd46ca3adc9d64e7fd44dfffb57c1712
|
8169b23c8a4c59642d113b2045d28558ff3f4848
|
/cloud-consumer-order80-openfeign/src/main/java/com/coderman/order/client/PaymentFeignService.java
|
e5077be2741fe507e5313c97ae8f440ae4b5d1ef
|
[
"Apache-2.0"
] |
permissive
|
Sugariscool/spring-cloud-hoxton
|
796f92325fc7bf9a87766d3f319d298d75ce4cc7
|
c7901d6db8f1c9137de7d27e7dfbd0d29c0a2754
|
refs/heads/main
| 2023-01-24T22:00:17.811851
| 2020-12-10T08:16:06
| 2020-12-10T08:16:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 695
|
java
|
package com.coderman.order.client;
import com.coderman.common.vo.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import java.math.BigDecimal;
/**
* @Author zhangyukang
* @Date 2020/12/10 11:25
* @Version 1.0
**/
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {
@GetMapping(value = "/provider/payment/create/{orderId}/{money}")
JsonData create(@PathVariable(value = "orderId") String orderId, @PathVariable(value = "money") BigDecimal money);
}
|
[
"3053161401@qq.com"
] |
3053161401@qq.com
|
7e6097461a367cd9e12275ecbdccce8a205167a4
|
2f3c04382a66dbf222c8587edd67a5df4bc80422
|
/src/com/cedar/cp/tc/apps/metadataimpexp/imprt/action/ImportLookupTableAction.java
|
b1b560d7660fff33abb8697fc7234604df718def
|
[] |
no_license
|
arnoldbendaa/cppro
|
d3ab6181cc51baad2b80876c65e11e92c569f0cc
|
f55958b85a74ad685f1360ae33c881b50d6e5814
|
refs/heads/master
| 2020-03-23T04:18:00.265742
| 2018-09-11T08:15:28
| 2018-09-11T08:15:28
| 141,074,966
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,400
|
java
|
// Decompiled by: Fernflower v0.8.6
// Date: 12.08.2012 18:23:02
// Copyright: 2008-2012, Stiver
// Home page: http://www.neshkov.com/ac_decompiler.html
package com.cedar.cp.tc.apps.metadataimpexp.imprt.action;
import com.cedar.cp.api.udeflookup.UdefLookup;
import com.cedar.cp.api.udeflookup.UdefLookupEditor;
import com.cedar.cp.api.udeflookup.UdefLookupEditorSession;
import com.cedar.cp.api.udeflookup.UdefLookupsProcess;
import com.cedar.cp.tc.apps.metadataimpexp.imprt.action.ImportAction;
import com.cedar.cp.tc.apps.metadataimpexp.util.CommonImpExpItem;
//import com.cedar.cp.tc.apps.xmlform.udlookup.impexp.POIImport;
import com.cedar.cp.util.Log;
import de.schlichtherle.truezip.file.TFile;
import java.util.List;
public class ImportLookupTableAction extends ImportAction {
protected UdefLookupsProcess mProcess = null;
private transient Log mLog = new Log(this.getClass());
public ImportLookupTableAction(CommonImpExpItem obj) {
super(obj);
this.mProcess = this.applicationState.getConnection().getUdefLookupsProcess();
this.importObj = obj;
}
public int doImport() {
try {
if(this.importObj != null && this.importObj.getTreeNodeType() == 1) {
Object e = this.applicationState.queryUdefLookupPK(this.importObj.getItemName());
if(e == null) {
this.importLookupTable((Object)null, false);
} else if(e != null && this.importObj.hasAlternativeName() && this.importObj.getAlternativeName() != null) {
this.importLookupTable((Object)null, true);
} else if(e != null && this.importObj.isOverwrite()) {
this.mProcess.deleteObject(e);
this.giveTimeToFinish((UdefLookup)null, 4);
this.importLookupTable((Object)null, false);
}
}
return 1;
} catch (Exception var2) {
this.importObj.setErrorMsg(var2.getMessage());
return -1;
}
}
private void importLookupTable(Object key, boolean hasAlternative) throws Exception {
//arnold all
// UdefLookupEditorSession session = this.mProcess.getUdefLookupEditorSession(key);
// UdefLookupEditor editor = session.getUdefLookupEditor();
// if(!hasAlternative) {
// editor.setVisId(this.importObj.getItemName());
// } else {
// editor.setVisId(this.importObj.getAlternativeName());
// }
//
// editor.setDescription(this.importObj.getDescription());
// editor.setAutoSubmit(this.importObj.isAutoSubmit());
// TFile importFile = new TFile(this.importObj.getImportFileName());
// POIImport importDef = new POIImport(importFile, editor);
// importDef.getTableData();
// editor.commit();
// session.commit(false);
// this.mProcess.terminateSession(session);
// this.doImportTableData(importFile, hasAlternative);
}
private void doImportTableData(TFile importFile, boolean hasAlternativeName) throws Exception {
//arnold all
// String visId = null;
// if(hasAlternativeName) {
// visId = this.importObj.getAlternativeName();
// } else {
// visId = this.importObj.getItemName();
// }
//
// Object key = this.applicationState.queryUdefLookupPK(visId);
// UdefLookupEditorSession session = this.mProcess.getUdefLookupEditorSession(key);
// UdefLookupEditor editor = session.getUdefLookupEditor();
// UdefLookup udefLookup = editor.getUdefLookup();
// this.giveTimeToFinish(udefLookup, 4);
// POIImport importData = new POIImport(importFile, udefLookup.getColumnDef());
// editor.setTableData(importData.getTableData());
// session.saveTableData();
// this.mProcess.terminateSession(session);
}
private void giveTimeToFinish(UdefLookup udefLookup, int retry) throws InterruptedException {
for(; retry > 0; --retry) {
Thread.sleep(5000L);
if(udefLookup != null) {
try {
List ex = udefLookup.getColumnDef();
if(ex != null) {
return;
}
} catch (Exception var4) {
this.mLog.debug("UD_ table not yet created.................");
}
}
}
}
}
|
[
"arnoldbendaa@gmail.com"
] |
arnoldbendaa@gmail.com
|
0e371a7c21c1f1f92b0b78a7e3008d1d31503445
|
a1d7232da9b90c9ca5d1e52a6efaa46810bb0c1f
|
/src/com/Stranded/commands/island/Ignore.java
|
f6db7408bd61c7878ab6a0d50827a005a0933197
|
[] |
no_license
|
JasperBouwman/Stranded
|
c042801ca3cec3f055ef5f1ccf69beaeba5c3c5c
|
bb225a6727ba86393e62899a4fac2c6be1ddd48c
|
refs/heads/master
| 2021-04-29T18:09:04.998997
| 2018-02-15T21:49:38
| 2018-02-15T21:49:38
| 121,687,305
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,792
|
java
|
package com.Stranded.commands.island;
import com.Stranded.Files;
import com.Stranded.Main;
import com.Stranded.commands.CmdManager;
import com.Stranded.commands.stranded.Reload;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import java.util.ArrayList;
import static com.Stranded.GettingFiles.getFiles;
public class Ignore extends CmdManager {
@Override
public String getName() {
return "ignore";
}
@Override
public String getAlias() {
return null;
}
@Override
public void run(String[] args, Player player) {
//island ignore
String uuid = player.getUniqueId().toString();
Files config = getFiles("config.yml");
if (config.getConfig().contains("invited." + uuid + ".newIsland")) {
Bukkit.getScheduler().cancelTask(config.getConfig().getInt("invited." + uuid + ".pendingID"));
Main.reloadHolds -= 1;
if (Main.reloadPending && Main.reloadHolds == 0) {
Reload.reload(p);
}
if (Bukkit.getPlayerExact(config.getConfig().getString("invited." + uuid + ".inviter")) != null) {
Bukkit.getPlayerExact(config.getConfig().getString("invited." + uuid + ".inviter"))
.sendMessage(ChatColor.DARK_RED + player.getName() + ChatColor.RED + " has ignored your inventation");
}
player.sendMessage(ChatColor.GREEN + "You ignored the invitation of the island " + config.getConfig().getString("invited." + uuid + ".newIsland"));
config.getConfig().set("invited." + uuid, null);
config.saveConfig();
return;
}
player.sendMessage(ChatColor.RED + "You aren't invited for anything");
}
}
|
[
"jphbouwman@gmail.com"
] |
jphbouwman@gmail.com
|
626011135de7a300d231a349f037198e7384bab1
|
ac1768b715e9fe56be8b340bc1e4bc7f917c094a
|
/ant_tasks/tags/release/11.02.x/11.02.1/ant_tasks/source/java/ch/systemsx/cisd/ant/BuildAndEnvironmentInfo.java
|
a6e651e7b7a42ffe3f40ab37e4645758fa5a38f1
|
[
"Apache-2.0"
] |
permissive
|
kykrueger/openbis
|
2c4d72cb4b150a2854df4edfef325f79ca429c94
|
1b589a9656d95e343a3747c86014fa6c9d299b8d
|
refs/heads/master
| 2023-05-11T23:03:57.567608
| 2021-05-21T11:54:58
| 2021-05-21T11:54:58
| 364,558,858
| 0
| 0
|
Apache-2.0
| 2021-06-04T10:08:32
| 2021-05-05T11:48:20
|
Java
|
UTF-8
|
Java
| false
| false
| 1,288
|
java
|
/*
* Copyright 2011 ETH Zuerich, CISD
*
* 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 ch.systemsx.cisd.ant;
import ch.systemsx.cisd.base.utilities.AbstractBuildAndEnvironmentInfo;
/**
* The build and environment information for cisd-ant-tasks.
*
* @author Bernd Rinn
*/
public class BuildAndEnvironmentInfo extends AbstractBuildAndEnvironmentInfo
{
private final static String ANT_TASKS = "ant-tasks";
public final static BuildAndEnvironmentInfo INSTANCE = new BuildAndEnvironmentInfo();
private BuildAndEnvironmentInfo()
{
super(ANT_TASKS);
}
/**
* Shows build and environment information on the console.
*/
public static void main(String[] args)
{
System.out.println(INSTANCE);
}
}
|
[
"fedoreno"
] |
fedoreno
|
68b73446cb681ee4ffa4047054666f50086d9c26
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Lang/61/org/apache/commons/lang/text/StrBuilder_deleteFirst_1201.java
|
a79f7fa5f0cc15990046a165a134e9976343609f
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 3,584
|
java
|
org apach common lang text
build string constitu part provid flexibl power api
string buffer stringbuff
main differ string buffer stringbuff string builder stringbuild
subclass direct access charact arrai
addit method
append separ appendwithsepar add arrai valu separ
append pad appendpad add length pad charact
append fix length appendfixedlength add fix width field builder
char arrai tochararrai char getchar simpler wai rang charact arrai
delet delet string
replac search replac string
left string leftstr string rightstr mid string midstr substr except
builder string
size clear empti isempti collect style api method
view
token astoken intern buffer sourc str token strtoken
reader asread intern buffer sourc reader
writer aswrit writer write directli intern buffer
aim provid api mimic close string buffer stringbuff
addit method note edg case
invalid indic input alter individu method
biggest output text
'null' control properti link set null text setnulltext string
author stephen colebourn
version
str builder strbuilder cloneabl
delet string occur builder
param str string delet action
enabl chain
str builder strbuilder delet deletefirst string str
len str str length
len
index index indexof str
index
delet impl deleteimpl index index len len
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
71d94c57b24e1b4a9b63aa1d00b3a09fbbf328f7
|
ed5159d056e98d6715357d0d14a9b3f20b764f89
|
/src/irvine/oeis/a295/A295905.java
|
78e9bef6d810d887114a2071a4a8f8a92832652f
|
[] |
no_license
|
flywind2/joeis
|
c5753169cf562939b04dd246f8a2958e97f74558
|
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
|
refs/heads/master
| 2020-09-13T18:34:35.080552
| 2019-11-19T05:40:55
| 2019-11-19T05:40:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 443
|
java
|
package irvine.oeis.a295;
// Generated by gen_linrec.pl - DO NOT EDIT here!
import irvine.oeis.LinearRecurrence;
/**
* A295905 Number of (not necessarily maximum) cliques in the <code>n X n</code> knight graph.
* @author Georg Fischer
*/
public class A295905 extends LinearRecurrence {
/** Construct the sequence. */
public A295905() {
super(new long[] {1L, -3L, 3L}, new long[] {2L, 5L, 18L});
} // constructor()
} // A295905
|
[
"sean.irvine@realtimegenomics.com"
] |
sean.irvine@realtimegenomics.com
|
7ba2ed92b732a9dc4e9deddfaf0c9f30f4614547
|
9bf1d5292ab10c2ee467ca7031d3645ba436b427
|
/loser-messaging/src/main/java/com/loserico/messaging/consumer/Consumer.java
|
a042ec2aa73dbcd9ee1995897c66a4a07e22037d
|
[] |
no_license
|
klaus-gu/awesome-loser
|
8ae58b3812c3898bd426e4810689c58824b1884c
|
309ff6958273c8a9aeb48bb5e76bbdc41390cf3a
|
refs/heads/master
| 2023-06-01T09:27:46.771346
| 2021-07-01T07:03:11
| 2021-07-01T07:03:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,051
|
java
|
package com.loserico.messaging.consumer;
import com.loserico.common.lang.concurrent.LoserThreadExecutor;
import com.loserico.common.lang.constants.Units;
import com.loserico.common.lang.transformer.Transformers;
import com.loserico.common.lang.utils.DateUtils;
import com.loserico.messaging.listener.ConsumerListener;
import lombok.extern.slf4j.Slf4j;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import org.apache.kafka.common.serialization.Deserializer;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
import java.util.regex.Pattern;
import static java.util.Arrays.asList;
/**
* <p>
* Copyright: (C), 2021-04-28 13:52
* <p>
* <p>
* Company: Sexy Uncle Inc.
*
* @author Rico Yu ricoyu520@gmail.com
* @version 1.0
*/
@Slf4j
public class Consumer<K, V> extends KafkaConsumer {
/**
* Consumer poll的超时时间, Spring Kafka也是默认5000 ms<p>
* Set the max time to block in the consumer waiting for records.
*/
private Integer pollTimeout = 5000;
private Duration pollDuration;
private LoserThreadExecutor POOL = new LoserThreadExecutor(Runtime.getRuntime().availableProcessors() + 1,
20,
100, TimeUnit.SECONDS);
public Consumer(Map<String, Object> configs) {
super(configs, null, null);
pollTimeout(configs);
}
public Consumer(Map<String, Object> configs,
Deserializer<K> keyDeserializer,
Deserializer<V> valueDeserializer) {
super(configs, keyDeserializer, valueDeserializer);
pollTimeout(configs);
}
public Consumer(Properties properties) {
this(properties, null, null);
pollTimeout(properties);
}
public Consumer(Properties properties,
Deserializer<K> keyDeserializer,
Deserializer<V> valueDeserializer) {
super(properties, keyDeserializer, valueDeserializer);
pollTimeout(properties);
}
private void pollTimeout(Map<String, Object> configs) {
pollTimeout = (Integer) configs.get("poll.timeout");
pollDuration = Duration.ofMillis(pollTimeout.longValue());
}
private void pollTimeout(Properties properties) {
String timeout = (String) properties.get("poll.timeout");
Integer timeoutMs = Transformers.convert(timeout, Integer.class);
pollTimeout = (timeoutMs == null ? 5000 : timeoutMs);
pollDuration = Duration.ofMillis(pollTimeout.longValue());
}
/**
* 订阅Topic, 消息来了之后处理
*
* @param topic
* @param listener
*/
public void subscribe(String topic, ConsumerListener listener) {
subscribe(asList(topic));
messageProcess(listener);
}
/**
* 订阅Topic, 消息来了之后处理
*
* @param topicPattern
* @param listener
*/
public void subscribePattern(String topicPattern, ConsumerListener listener) {
subscribe(Pattern.compile(topicPattern));
messageProcess(listener);
}
private void messageProcess(ConsumerListener listener) {
try {
while (true) {
ConsumerRecords<String, String> consumerRecords = poll(pollDuration);
int count = consumerRecords.count();
if (count == 0) {
continue;
}
List messages = new ArrayList(count);
for (ConsumerRecord record : consumerRecords) {
messages.add(record.value());
}
StringBuilder sb = new StringBuilder();
messages.forEach(msg -> sb.append(msg));
byte[] bytes = sb.toString().getBytes();
int messageInKB = bytes.length / Units.KB;
log.info("拉取到消息大小{}KB", messageInKB);
log.info("拉取到{}条消息", messages.size());
if (messages.isEmpty()) {
continue;
}
try {
listener.onMessage(messages);
commitSync();
} catch (Exception e) {
log.info("消费消息失败, 不提交", e);
}
}
} finally {
log.warn("Consumer 停止 {}", DateUtils.format(new Date()));
close();
}
}
}
|
[
"ricoyu520@gmail.com"
] |
ricoyu520@gmail.com
|
87eebff8b008f1d995fe1480df9b88bebf46d1fd
|
aea994e4d2f521d8274f17bd32ac40756c984ca1
|
/src/test/java/tvestergaard/databaseassignment/database/users/UnknownUsernameExceptionTest.java
|
76b4b58449a224a02341917dc0c0cc29cad61bb8
|
[] |
no_license
|
Thomas-Rosenkrans-Vestergaard/databaseassignment
|
83fe783030a9cea9d3d72f6d8976c6cac26792d5
|
390fb05090052c7cd053c8d28eaae77b3a0a56cf
|
refs/heads/master
| 2021-08-15T14:51:32.625406
| 2017-11-17T21:34:57
| 2017-11-17T21:34:57
| 110,929,745
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 431
|
java
|
package tvestergaard.databaseassignment.database.users;
import org.junit.Test;
import static org.junit.Assert.assertSame;
public class UnknownUsernameExceptionTest
{
@Test
public void getUnknownUsername() throws Exception
{
String expected = "Username";
UnknownUsernameException exception = new UnknownUsernameException(expected);
assertSame(expected, exception.getUnknownUsername());
}
}
|
[
"Thomas-Rosenkrans-Vestergaard@users.noreply.github.com"
] |
Thomas-Rosenkrans-Vestergaard@users.noreply.github.com
|
e47651797b2a05db097b77b1f287fcadb5f533f9
|
dab9095d0c261dfe35b252bf264f000a70f40b33
|
/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/AgentReloader.java
|
b4f348053bc7b0e6ab93daa6d0084dd17f423846
|
[
"Apache-2.0"
] |
permissive
|
Nephilim84/contestparser
|
1501d3a32221d9c6acfbb1969a3fbbd2f9626d69
|
e2ad787b368faf23d45bd87f3cb3f3324d4de616
|
refs/heads/master
| 2021-01-10T15:02:25.989320
| 2015-10-25T16:12:48
| 2015-10-25T16:12:48
| 44,915,265
| 1
| 4
| null | 2016-03-09T18:26:48
| 2015-10-25T15:13:34
|
Java
|
UTF-8
|
Java
| false
| false
| 1,310
|
java
|
/*
* Copyright 2012-2015 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
*
* 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.springframework.boot.devtools.restart;
import org.springframework.util.ClassUtils;
/**
* Utility to determine if an Java agent based reloader (e.g. JRebel) is being used.
*
* @author Phillip Webb
* @since 1.3.0
*/
public abstract class AgentReloader {
private AgentReloader() {
}
/**
* Determine if any agent reloader is active.
* @return true if agent reloading is active
*/
public static boolean isActive() {
return isJRebelActive();
}
/**
* Determine if JRebel is active.
* @return true if JRebel is active
*/
public static boolean isJRebelActive() {
return ClassUtils.isPresent("org.zeroturnaround.javarebel.ReloaderFactory", null);
}
}
|
[
"you@example.com"
] |
you@example.com
|
a8026f464f76667a6a9627471ac91b9210a9a9c8
|
297334a20620a6b1e3d28c1b3d8051e3520bf9cb
|
/app/src/main/java/com/facebook/animation/drawable/AnimationListener.java
|
a38dea3796296f8766d48891f95e06a57903a346
|
[] |
no_license
|
joydit/MyFresco
|
077810c3b7aba239f4e8e0ccb3f0916529516fb4
|
da1b97684f3c39c0c224147edb25b4631521dadc
|
refs/heads/master
| 2021-07-13T21:01:07.125564
| 2017-10-20T11:12:08
| 2017-10-20T11:12:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,680
|
java
|
package com.facebook.animation.drawable;
/**
* Created by heshixiyang on 2017/3/10.
*/
/**
* 这个可以被用在{@link AnimatedDrawable2}中以接受动画过程中的事件,
* 调用{@link AnimatedDrawable2#setAnimationListener(AnimationListener)}来设置监听器
* Animation listener that can be used to get notified about {@link AnimatedDrawable2} events.
* Call {@link AnimatedDrawable2#setAnimationListener(AnimationListener)} to set a listener.
*/
public interface AnimationListener {
/**
* Called when the animation is started for the given drawable.
*
* @param drawable the affected drawable
*/
void onAnimationStart(AnimatedDrawable2 drawable);
/**
* Called when the animation is stopped for the given drawable.
*
* @param drawable the affected drawable
*/
void onAnimationStop(AnimatedDrawable2 drawable);
/**
* Called when the animation is reset for the given drawable.
*
* @param drawable the affected drawable
*/
void onAnimationReset(AnimatedDrawable2 drawable);
/**
* Called when the animation is repeated for the given drawable.
* Animations have a loop count, and frame count, so this is called when
* the frame count is 0 and the loop count is increased.
*
* @param drawable the affected drawable
*/
void onAnimationRepeat(AnimatedDrawable2 drawable);
/**
* Called when a frame of the animation is about to be rendered.
*
* @param drawable the affected drawable
* @param frameNumber the frame number to be rendered
*/
void onAnimationFrame(AnimatedDrawable2 drawable, int frameNumber);
}
|
[
"a1018998632@gmail.com"
] |
a1018998632@gmail.com
|
81e95973a3f1addce0eff92863c497bdc8ff128e
|
b098dc80fedd6a269705f04cc7ab99ca4191c7da
|
/Chapter03/src/Thread3_1/Thread3_1_4/notifyHoldLock/synNotifyMethodThread.java
|
23ad97edbf5927bf4b3e953d5797fbbe99bb0e22
|
[] |
no_license
|
WingedCat/Multithread
|
ee9eaf4b277d9d309c8611b25cec07a189a1eba9
|
80489a5482a2f798d248d16d286d54afc793ae47
|
refs/heads/master
| 2020-04-25T21:16:44.607837
| 2019-03-23T09:06:23
| 2019-03-23T09:06:23
| 173,075,598
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 331
|
java
|
package Thread3_1.Thread3_1_4.notifyHoldLock;
public class synNotifyMethodThread extends Thread {
private Object lock;
public synNotifyMethodThread(Object lock){
this.lock = lock;
}
@Override
public void run(){
Service service = new Service();
service.synNotifyMethod(lock);
}
}
|
[
"2233749193@qq.com"
] |
2233749193@qq.com
|
4d6b32033aa39da6e173b24e9fdeb0449fe7d835
|
056ff5f928aec62606f95a6f90c2865dc126bddc
|
/javashop/shop-core/src/main/java/com/enation/app/shop/component/payment/plugin/alipay/sdk34/api/response/AlipayOpenPublicMenuBatchqueryResponse.java
|
6876495c4f30d1b79d5b4d9fe5920311e467f4e8
|
[] |
no_license
|
luobintianya/javashop
|
7846c7f1037652dbfdd57e24ae2c38237feb1104
|
ac15b14e8f6511afba93af60e8878ff44e380621
|
refs/heads/master
| 2022-11-17T11:12:39.060690
| 2019-09-04T08:57:58
| 2019-09-04T08:57:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,278
|
java
|
package com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.response;
import java.util.List;
import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.AlipayResponse;
import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.domain.QueryMenu;
import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.internal.mapping.ApiField;
import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.internal.mapping.ApiListField;
/**
* ALIPAY API: alipay.open.public.menu.batchquery response.
*
* @author auto create
* @since 1.0, 2017-05-25 11:39:51
*/
public class AlipayOpenPublicMenuBatchqueryResponse extends AlipayResponse {
private static final long serialVersionUID = 4891332658337179862L;
/**
* 菜单数量,包括默认菜单和个性化菜单
*/
@ApiField("count")
private String count;
/**
* 菜单列表
*/
@ApiListField("menus")
@ApiField("query_menu")
private List<QueryMenu> menus;
public void setCount(String count) {
this.count = count;
}
public String getCount( ) {
return this.count;
}
public void setMenus(List<QueryMenu> menus) {
this.menus = menus;
}
public List<QueryMenu> getMenus( ) {
return this.menus;
}
}
|
[
"sylow@javashop.cn"
] |
sylow@javashop.cn
|
187ccda61ae161db9ce925e766740604f33fe794
|
5b571349e052f480f698c08b484a7b770e8c20b5
|
/j2ee_pattern/intercepting_filter/src/main/java/com/hz/design/interceptingfilter/Client.java
|
a953b6e81e58c1c88f531ff4bb390cc4605c7cf1
|
[
"MIT"
] |
permissive
|
horacn/learn_design_pattern
|
22058bfef3bd7013230896ebc897f48a956db384
|
5572be6977c54bbc03c52584cc1597b997e41549
|
refs/heads/master
| 2021-09-29T01:04:18.502828
| 2018-08-10T09:24:55
| 2018-08-10T09:24:55
| 158,637,553
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 445
|
java
|
package com.hz.design.interceptingfilter;
/**
* 客户端
*
* Client 是向 Target 对象发送请求的对象。
*
* Created by hezhao on 2018-08-10 16:57
*/
public class Client {
private FilterManager filterManager;
public void setFilterManager(FilterManager filterManager){
this.filterManager = filterManager;
}
public void sendRequest(String request){
filterManager.filterRequest(request);
}
}
|
[
"1439293823@qq.com"
] |
1439293823@qq.com
|
834cda29d391f21f49e8b0ae7915b64f3ea922f4
|
440e5bff3d6aaed4b07eca7f88f41dd496911c6b
|
/myapplication/src/main/java/com/inveno/se/d/a/k.java
|
dde2c474654f0aa15a3930022c91bf4bc4d61f7d
|
[] |
no_license
|
freemanZYQ/GoogleRankingHook
|
4d4968cf6b2a6c79335b3ba41c1c9b80e964ddd3
|
bf9affd70913127f4cd0f374620487b7e39b20bc
|
refs/heads/master
| 2021-04-29T06:55:00.833701
| 2018-01-05T06:14:34
| 2018-01-05T06:14:34
| 77,991,340
| 7
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 174
|
java
|
package com.inveno.se.d.a;
import com.inveno.se.d.p;
import java.util.Map;
import org.apache.http.HttpResponse;
public interface k {
HttpResponse a(p pVar, Map map);
}
|
[
"zhengyuqin@youmi.net"
] |
zhengyuqin@youmi.net
|
ad6869e7db39bd0edbb1986ad966980538145456
|
6d8c06d1dcb2af678197a8eaa90d84ee51f34c8b
|
/UU/src/com/huiyoumall/uu/util/TLog.java
|
60600a1ebb86d63dafa22587271c4650082b278a
|
[] |
no_license
|
heshicaihao/UU
|
0a37abdba8aba1eb2afdf451d77f1ae9adb4a5e6
|
91840eada68bfe0f8529ab1ec206509c45652e19
|
refs/heads/master
| 2021-05-14T03:20:09.562782
| 2018-01-08T02:48:50
| 2018-01-08T02:48:50
| 116,616,515
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 720
|
java
|
package com.huiyoumall.uu.util;
import android.util.Log;
public class TLog {
public static final String LOG_TAG = "SIMICO";
public static boolean DEBUG = true;
public TLog() {
}
public static final void analytics(String log) {
if (DEBUG)
Log.d(LOG_TAG, log);
}
public static final void error(String log) {
if (DEBUG)
Log.e(LOG_TAG, "" + log);
}
public static final void log(String log) {
if (DEBUG)
Log.i(LOG_TAG, log);
}
public static final void log(String tag, String log) {
if (DEBUG)
Log.i(tag, log);
}
public static final void logv(String log) {
if (DEBUG)
Log.v(LOG_TAG, log);
}
public static final void warn(String log) {
if (DEBUG)
Log.w(LOG_TAG, log);
}
}
|
[
"heshicaihao@163.com"
] |
heshicaihao@163.com
|
8a96d1772b6c11f2486715b622e596815cfc52bd
|
3312b12b2106d36694beb7263bd44da70e4bbaae
|
/athena-ckx/src/main/java/com/athena/ckx/entity/carry/CkxMsqhb.java
|
bb037d7d695900c7e2b461342ec85edc40882425
|
[] |
no_license
|
liyq1406/athena
|
bff7110b4c8a16e47203b550979b42707b14f9a5
|
d83c9ef1c7548a52ab6c269183d5a016444f388e
|
refs/heads/master
| 2020-12-14T09:48:43.717312
| 2017-06-05T06:41:48
| 2017-06-05T06:41:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,465
|
java
|
package com.athena.ckx.entity.carry;
import java.util.Date;
import com.athena.component.entity.Domain;
import com.toft.core3.support.PageableSupport;
/**
* 仓库循环时间
* @author kong
*
*/
public class CkxMsqhb extends PageableSupport implements Domain{
private static final long serialVersionUID = -7806263175923774742L;
private String liush; //流水号(id)
private String usercenter; //用户中心
private String xunhbm; //循环编码
private String yuanxhbm; //原循环编码
private String lingjbh; //零件编号
private String cangkbh; //仓库编号
private String xiaohd; //消耗点
private String muddlx; //目的地类型
private String mos; //模式
private String yuanms; //原模式
private String shifkbqh; //是否看板切换(0|其他切看板,1|看板切看板,2|看板切其他)
private String zhuangt; //切换状态
private String creator; //创建人
private Date create_time; //创建时间
private String editor; //修改人
private Date edit_time; //修改时间
public Date getCreate_time() {
return create_time;
}
public void setCreate_time(Date create_time) {
this.create_time = create_time;
}
public String getUsercenter() {
return usercenter;
}
public void setUsercenter(String usercenter) {
this.usercenter = usercenter;
}
public String getXunhbm() {
return xunhbm;
}
public void setXunhbm(String xunhbm) {
this.xunhbm = xunhbm;
}
public String getYuanxhbm() {
return yuanxhbm;
}
public void setYuanxhbm(String yuanxhbm) {
this.yuanxhbm = yuanxhbm;
}
public String getLingjbh() {
return lingjbh;
}
public void setLingjbh(String lingjbh) {
this.lingjbh = lingjbh;
}
public String getCangkbh() {
return cangkbh;
}
public void setCangkbh(String cangkbh) {
this.cangkbh = cangkbh;
}
public String getXiaohd() {
return xiaohd;
}
public void setXiaohd(String xiaohd) {
this.xiaohd = xiaohd;
}
public String getMuddlx() {
return muddlx;
}
public void setMuddlx(String muddlx) {
this.muddlx = muddlx;
}
public String getMos() {
return mos;
}
public void setMos(String mos) {
this.mos = mos;
this.zhuangt = "0";
this.shifkbqh = "0";
if(this.mos.contains("R")&& this.yuanms.contains("R")){
this.shifkbqh = "1";
}else if(this.yuanms.startsWith("R")&&!this.mos.contains("R")){
this.shifkbqh = "2";
}
}
public String getYuanms() {
return yuanms;
}
public void setYuanms(String yuanms) {
this.yuanms = yuanms;
}
public String getShifkbqh() {
return shifkbqh;
}
public void setShifkbqh(String shifkbqh) {
this.shifkbqh = shifkbqh;
}
public String getZhuangt() {
return zhuangt;
}
public void setZhuangt(String zhuangt) {
this.zhuangt = zhuangt;
}
public String getCreator() {
return creator;
}
public void setCreator(String creator) {
this.creator = creator;
}
public String getEditor() {
return editor;
}
public void setEditor(String editor) {
this.editor = editor;
}
public Date getEdit_time() {
return edit_time;
}
public void setEdit_time(Date edit_time) {
this.edit_time = edit_time;
}
public void setId(String id) {
}
public String getId() {
return "";
}
public String getLiush() {
return liush;
}
public void setLiush(String liush) {
this.liush = liush;
}
}
|
[
"Administrator@ISS110302000330.isoftstone.com"
] |
Administrator@ISS110302000330.isoftstone.com
|
6225c42514ffc03f2c1ada146f0c11d28f1d8d46
|
19f7e40c448029530d191a262e5215571382bf9f
|
/decompiled/instagram/sources/p000X/C30821Vi.java
|
5b9ed8aebe582eee8842f366f51db3b4a24fe3da
|
[] |
no_license
|
stanvanrooy/decompiled-instagram
|
c1fb553c52e98fd82784a3a8a17abab43b0f52eb
|
3091a40af7accf6c0a80b9dda608471d503c4d78
|
refs/heads/master
| 2022-12-07T22:31:43.155086
| 2020-08-26T03:42:04
| 2020-08-26T03:42:04
| 283,347,288
| 18
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,368
|
java
|
package p000X;
import android.view.View;
/* renamed from: X.1Vi reason: invalid class name and case insensitive filesystem */
public final class C30821Vi implements View.OnClickListener {
public C30261Td A00;
public AnonymousClass0C1 A01;
public C467520s A02;
public String A03;
public C30821Vi(AnonymousClass0C1 r1, C30261Td r2) {
this.A01 = r1;
this.A00 = r2;
}
public final void onClick(View view) {
int i;
int i2;
int A05 = AnonymousClass0Z0.A05(1803589636);
C30261Td r1 = this.A00;
AnonymousClass1IU r0 = r1.A04.A1U;
if (r0 != null) {
i = r0.A00;
} else {
i = 0;
}
C30261Td.A01(r1, i);
AnonymousClass0P4 A002 = AnonymousClass0P4.A00("business_conversion_netego_click_convert_button", (AnonymousClass0RN) null);
AnonymousClass1IU r02 = this.A00.A04.A1U;
if (r02 != null) {
i2 = r02.A00;
} else {
i2 = 0;
}
A002.A0E("entry_position", Integer.valueOf(i2));
A002.A0G("id", this.A02.getId());
A002.A0G("tracking_token", this.A02.AYw());
A002.A0G("type", "business_conversion");
A002.A0G("session_id", this.A03);
AnonymousClass0WN.A01(this.A01).BcG(A002);
AnonymousClass0Z0.A0C(1233964252, A05);
}
}
|
[
"stan@rooy.works"
] |
stan@rooy.works
|
d771d9221c5db02256c35e6dda2816d00c3d84dd
|
b9756bfabef3da62b6fceb30656dafd32a1b6064
|
/src/day40/Offer.java
|
4cd233b161b214eb6bcb1bfea5d60392052e0efc
|
[] |
no_license
|
Israfil13/javaprogrammingB15online
|
54952fb7462b02003f8c28739f305dc068dd4ff5
|
555d764dad68a0b0a7d0059e0145544c8e3f8e40
|
refs/heads/master
| 2022-08-20T15:40:16.219249
| 2020-05-21T21:15:44
| 2020-05-21T21:15:44
| 242,600,428
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,463
|
java
|
package day40;
public class Offer{
String location;
String company;
long salary;
boolean isFullTime;
/**
* This is a instance method to print all the information about Offer object
* no parameter and no return type
*/
// inside instance method we can directly access instance variable
public void displayInformation() {
System.out.println("Location = " + location + " | " +
"Company = " + company + " | " +
"Salary = " + salary + " $ | " +
"isFullTime = " + isFullTime);
}
// Write a method called turnToFullTime
public void turnToFullTime() {
if (isFullTime == false) {
isFullTime = true;
} else {
System.out.println("ALREADY FULLTIME!!");
}
}
// Write a method to change the location of the Offer
// to the location user passed
public void changeLocation(String newLocation) {
location = newLocation;
}
// Write a method to accept 4 parameters to change all info
// about offers
public void changeAllInfo(String newCompany, String newLocation,
long newSalary, boolean newIsFullTime) {
company = newCompany;
location = newLocation;
salary = newSalary;
isFullTime = newIsFullTime;
// an instance method can call another instance method
// an instance method can use any instance fields
// since we already have functionality to display information
// we called it here to display new information after modifying
displayInformation();
}
// write a method to check the offer belong to 100K club and return the result as true false
/**
* a method to check the offer belong to 100K club
*
* @return true if salary is more than 100k , false if not
*/
public boolean is100KOffer() {
// salary>=100000 already generate a boolean result
// so we can directly return that result
return salary >= 100000;
}
/**
* Create an instance method called toString
* has no parameter
*
* @param
* @return String representation of Offer Object
* <p>
* In below format
* [Location = Virginia , Company = Amazon | Salary = 150000 $ | isFullTime = true]
*/
public String toString() {
String str = "[ Location = " + location + " | " +
"Company = " + company + " | " +
"Salary = " + salary + " $ | " +
"isFullTime = " + isFullTime + " ]";
return str;
}
}
|
[
"hajiyevisrafil@gmail.com"
] |
hajiyevisrafil@gmail.com
|
91df47244a9e8a99d55fca4adaf806442595b500
|
979d9bd3b58e00e1d3fb496c9342f4d21c43be50
|
/springdemo/src/springdemo/Mainapp.java
|
186d2e21a5ffea9902344a31bf25d6e77633648c
|
[] |
no_license
|
rajputkhushboo/Spring_project
|
87ed34bd747e1e208e4db1d3d962ba2c89198153
|
a7a6670980f82744ccc8571492b49d9bf8bb0d41
|
refs/heads/master
| 2021-01-01T04:32:44.018215
| 2017-07-18T11:23:33
| 2017-07-18T11:23:33
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 407
|
java
|
package springdemo;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Mainapp {
public static void main(String args[])
{
ApplicationContext context= new ClassPathXmlApplicationContext("bean.xml");
demo obj=(demo) context.getBean("demo");
obj.getX();
obj.getY();
obj.getZ();
obj.displayInfo();
}
}
|
[
"you@example.com"
] |
you@example.com
|
9b50ac61f9bd8798ea2f502529112b260a26cec9
|
e66deea4e50a7023903cd9a1d1d97b7832b3b95f
|
/src/main/java/tips/cache/CacheUserTest.java
|
3360df5e34860319580036bd779dc28632bf866d
|
[] |
no_license
|
xwj920930/thinkingInJava
|
f5e6b27cfca8b4b685a9da27be9cd533b6ca68df
|
a4e791cac560916075dcaf0971aefbe59de39555
|
refs/heads/master
| 2021-07-14T04:56:18.598451
| 2020-11-11T06:03:51
| 2020-11-11T06:03:51
| 206,221,930
| 0
| 0
| null | 2020-10-13T15:46:55
| 2019-09-04T03:20:34
|
Java
|
UTF-8
|
Java
| false
| false
| 481
|
java
|
package tips.cache;
/**
* @Description 自定义缓存测试
* @Author yuki
* @Date 2018/8/7 10:04
* @Version 1.0
**/
public class CacheUserTest {
public static void main(String[] args) {
CacheUserService service=new CacheUserService();
service.getUserById("123");
service.getUserById("123");
service.reload();
System.err.println("after reload ...");
service.getUserById("123");
service.getUserById("123");
}
}
|
[
"xuwenjie@travelsky.com"
] |
xuwenjie@travelsky.com
|
307b7035eb41a1d816f53837258700fb5661be33
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/6/6_429d3e7ce4f7d579fc9e92f0ecce073640b155b2/AddressBookRipperActivity/6_429d3e7ce4f7d579fc9e92f0ecce073640b155b2_AddressBookRipperActivity_s.java
|
7d2875159359a0d29a8c4190944a153a503d2623
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 7,237
|
java
|
package org.tomhume.ase.ripper;
import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import com.google.gson.Gson;
import com.google.i18n.phonenumbers.PhoneNumberUtil;
import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber;
import android.app.Activity;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.AsyncTask.Status;
import android.os.Bundle;
import android.provider.ContactsContract.CommonDataKinds.Phone;
import android.provider.Settings.Secure;
import android.telephony.TelephonyManager;
import android.util.Base64;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class AddressBookRipperActivity extends Activity {
private static final String TAG = "Ripper";
private static final String KEY = "ASE-GROUP2"; /* Key used for SHA-1 encoding */
private static final String ENDPOINT = "http://192.168.1.98:8080/NearMeServer/addressBook";
private GatherContactsTask gatherer = null;
private String countryCode; /* ISO Country Code to be used for canonicalising MSISDNS */
private String ownNumber; /* Users own phone number */
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button ripButton = (Button) this.findViewById(R.id.btnRip);
gatherer = new GatherContactsTask();
TelephonyManager tm = (TelephonyManager) getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE);
countryCode = tm.getSimCountryIso();
ownNumber = tm.getLine1Number();
ripButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Log.i(TAG, "CLICK!");
if (gatherer.getStatus().equals(Status.RUNNING))
return;
if (gatherer.getStatus().equals(Status.FINISHED))
gatherer = new GatherContactsTask();
gatherer.execute();
}
});
}
private void uploadContacts(AddressBook a) {
UploadContactsTask uploader = new UploadContactsTask();
uploader.execute(a);
}
/**
* Turns a given MSISDN into a usable hash to identify the number. Does this by
* rendering the number into a canonical international MSISDN, then putting
* it through SHA-1
*
* @param s input MSISDN
* @return
*/
private String hashMsisdn(String s) {
PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
String input = null;
PhoneNumber pn = null;
try {
pn = phoneUtil.parse(s, countryCode.toUpperCase());
input = phoneUtil.format(pn,PhoneNumberFormat.E164);
return sha1(input, KEY);
} catch (Exception e) {
// This is either a NumberFormatException or an error finding the crypto stuffs.
// Either way ignore, we'll use the number as given if we can't format it
return input;
}
}
/**
* Hash function, taken from http://stackoverflow.com/questions/4534370/how-to-hash-string-using-sha-1-with-key
*
* @param s
* @param keyString
* @return
* @throws UnsupportedEncodingException
* @throws NoSuchAlgorithmException
* @throws InvalidKeyException
*/
private String sha1(String s, String keyString)
throws UnsupportedEncodingException, NoSuchAlgorithmException,
InvalidKeyException {
SecretKeySpec key = new SecretKeySpec((keyString).getBytes("UTF-8"),
"HmacSHA1");
Mac mac = Mac.getInstance("HmacSHA1");
mac.init(key);
byte[] bytes = mac.doFinal(s.getBytes("UTF-8"));
return new String(Base64.encode(bytes, 0));
}
private class UploadContactsTask extends AsyncTask<AddressBook, Integer, Boolean> {
@Override
protected Boolean doInBackground(AddressBook... abe) {
Gson gson = new Gson();
Log.i(TAG, "Got entries " + abe[0].getEntries().size());
HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost(ENDPOINT);
try {
HttpEntity ent = new StringEntity(gson.toJson(abe[0]));
post.setEntity(ent);
HttpResponse response = client.execute(post);
Log.i(TAG, "post to " + ENDPOINT + " done, response="+response.getStatusLine().getStatusCode());
} catch (Exception e) {
// TODO Auto-generated catch block
Log.i(TAG, "post threw " + e);
e.printStackTrace();
return false;
}
return true;
}
}
/**
* Private class to gather contacts from the on-phone address book and use
* them to populate an AddressBook object in the background.
*
* @author twhume
*
*/
private class GatherContactsTask extends AsyncTask<Void, Integer, AddressBook> {
protected void onPostExecute(AddressBook result) {
Log.i(TAG, System.currentTimeMillis() + " done, result= " + result);
uploadContacts(result);
}
/**
* Iterate through the address book, creating an AddressBook structure which
* contains a list of AddressBookEntries, which each contains a list of
* hashes
*/
@Override
protected AddressBook doInBackground(Void... params) {
Log.i(TAG, System.currentTimeMillis() + " starting");
String[] columns = new String[] { Phone._ID, Phone.DISPLAY_NAME,
Phone.NUMBER, Phone.RAW_CONTACT_ID };
Uri contacts = Phone.CONTENT_URI;
Cursor managedCursor = managedQuery(contacts, columns,
null, // get all rows
null, // Selection arguments (none)
// Put the results in ascending order by name
Phone.DISPLAY_NAME + " ASC");
AddressBook a = new AddressBook();
a.setDeviceId(Secure.getString(getApplicationContext().getContentResolver(), Secure.ANDROID_ID));
a.setOwnerHash(hashMsisdn(ownNumber));
ArrayList<AddressBookEntry> entries = new ArrayList<AddressBookEntry>();
ArrayList<String> hashes = new ArrayList<String>();
String lastId = null;
try {
managedCursor.moveToFirst();
lastId = managedCursor.getString(3);
AddressBookEntry abe = new AddressBookEntry();
abe.setName(managedCursor.getString(1));
do {
if (!managedCursor.getString(3).equals(lastId)) {
abe.setHashes(hashes);
entries.add(abe);
abe = new AddressBookEntry();
abe.setName(managedCursor.getString(1));
hashes = new ArrayList<String>();
}
hashes.add(hashMsisdn(managedCursor.getString(2)));
lastId = managedCursor.getString(3);
} while (managedCursor.moveToNext());
abe.setHashes(hashes);
entries.add(abe);
} finally {
managedCursor.close();
}
a.setEntries(entries);
return a;
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
a5c90f1d561778d323299830a6544f8c388aa5f3
|
05c451abfa3507a4287de2b3c02f6cb7d8036331
|
/app/src/main/java/com/havrylyuk/dou/data/remote/helper/error/InternetConnectionException.java
|
293ed196fa59753e921caa6956e032ec9ffecb19
|
[
"Apache-2.0"
] |
permissive
|
Tubbz-alt/DOUSalaries
|
f0997a281378b8ffedafd9867c37794322616142
|
b7381719f8602c31028d6fa1f988299f1f9d3882
|
refs/heads/master
| 2021-09-02T08:28:39.582150
| 2018-01-01T00:18:11
| 2018-01-01T00:18:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 167
|
java
|
package com.havrylyuk.dou.data.remote.helper.error;
/**
* Created by Igor Havrylyuk on 11.09.2017
*/
public class InternetConnectionException extends Throwable {
}
|
[
"gavrilyuk.igor@gmail.com"
] |
gavrilyuk.igor@gmail.com
|
97155c080d7b1ecb968378ac9fe63c2f7a31a1a3
|
22c8d478b3e46fa3a2fc6ff79bca2419b4901ec3
|
/src/main/java/com/smm/scrapMetal/commom/ResErrorCode.java
|
684782e515cd9815c7bb4fd30bb92bc9d144898a
|
[] |
no_license
|
danshijin/scrapMetal
|
82a593573606cdbaf73a53fdd98ac6911b7bd998
|
9ec6b766e6b6324e0377cef48467b25866b44670
|
refs/heads/master
| 2020-05-20T12:26:39.487771
| 2018-10-23T03:44:27
| 2018-10-23T03:44:27
| 68,888,855
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,865
|
java
|
package com.smm.scrapMetal.commom;
/**
* Created by tangshulei on 2015/11/6.
*/
public class ResErrorCode {
/**
* 通用系统错误
*/
public static final String ERROR_CODE = "1001";
public static final String ERROR_MSG = "系统错误";
public static final String PARAMS_NULL_ERROR_CODE = "1002";
public static final String PARAMS_NULL_ERROR_MSG = "参数为空";
/**
* 市级
*/
public static final String CITY_PARAMS_ERROR_CODE = "1003";
public static final String CITY_PARAMS_ERROR_MSG = "省级Id为空";
/**
* 用户注册
*/
public static final String CUS_PARAMS_ERROR_CODE = "1003";
public static final String CUS_PARAMS_ERROR_MSG = "电话不能为空";
public static final String CUS_EXIST_ERROR_CODE = "1004";
public static final String CUS_EXIST_ERROR_MSG = "openId已经存在";
/**
* 用户查看
*/
public static final String NO_EXIST_ERROR_CODE = "1003";
public static final String NO_EXIST_ERROR_MSG = "openId不存在";
/**
* 采购单
*/
public static final String PURCHASE_ERR_EMPTY_CODE = "1003";
public static final String PURCHASE_ERR_EMPTY_MSG = "没有数据!";
public static final String PURCHASE_ERR_ID_EMPTY_CODE = "1004";
public static final String PURCHASE_ERR_ID_EMPTY_MSG = "采购单id不能为空!";
public static final String PURCHASE_ERR_PHONE_EMPTY_CODE = "1005";
public static final String PURCHASE_ERR_PHONE_EMPTY_MSG = "用户手机号不能为空!";
public static final String PURCHASE_ERR_PHONE_ISNO_CODE = "1006";
public static final String PURCHASE_ERR_PHONE_ISNO_MSG = "该手机用户不存在!";
public static final String PURCHASE_ERR_PURCHASE_ISNO_CODE = "1007";
public static final String PURCHASE_ERR_PURCHASE_ISNO_MSG = "采购单不存在!";
public static final String PURCHASE_ERR_PURCHASE_ADD_CODE = "1008";
public static final String PURCHASE_ERR_PURCHASE_ADD_MSG = "添加失败!";
public static final String PURCHASE_ERR_PURCHASE_UPDATE_CODE = "1009";
public static final String PURCHASE_ERR_PURCHASE_UPDATE_MSG = "修改失败!";
public static final String PURCHASE_API_ADD_ERROR = "发布采购单出错";
public static final String PURCHASE_API_UPD_ERROR = "修改采购单出错";
/**
* 用户登录
*/
public static final String ISLOGIN_ERROR_CODE = "1003";
public static final String ISLOGIN_ERROR_MSG = "用户没登录";
/**
* 订单
*/
public static final String SUBMITORDER_ERROR_CODE = "1003";
public static final String SUBMITORDER_ERROR_MSG = "订单提交失败";
public static final String SUBMITORDER_ERROR_CODE1 = "1004";
public static final String SUBMITORDER_ERROR_MSG1 = "phone跟买/卖家不匹配";
public static final String SUBMITORDER_orderNo_code = "1005";
public static final String SUBMITORDER_orderNo_MSG = "订单编号不能为空";
public static final String SUBMITORDER_order_code = "1006";
public static final String SUBMITORDER_order_MSG = "订单不存在";
/**
* 供货单
*/
public static final String SUPPLYINSERT_ERROR_CODE = "1008";
public static final String SUPPLYINSERT_ERROR_MSG = "添加失败!";
public static final String SUPPLY_API_ADD_ERROR = "发布供货单出错";
public static final String SUPPLY_API_UPD_ERROR = "修改供货单出错";
/**
* 收藏,点赞
*/
public static final String SOURCE_NULL_ERROR_CODE = "1003";
public static final String SOURCE_NULL_ERROR_MSG = "source is null";
public static final String SOURCEID_NULL_ERROR_CODE = "1004";
public static final String SOURCEID_NULL_ERROR_MSG = "sourceId is null";
public static final String CUSTOMERID_NULL_ERROR_CODE = "1005";
public static final String CUSTOMERID_NULL_ERROR_MSG = "customerId is null";
public static final String TYPE_NULL_ERROR_CODE = "1006";
public static final String TYPE_NULL_ERROR_MSG = "type is null";
public static final String TYPE_NO_EXIST_ERROR_CODE = "1007";
public static final String TYPE_NO_EXIST_ERROR_MSG = "type no exists";
/**
* 聊天
*/
public static final String UNKNOWN_CHAT_INITIATOR = "未知的聊天发起人";
}
|
[
"406701239@qq.com"
] |
406701239@qq.com
|
21e3e98be095e5b80f0a2c80a0b7fb74ef96b701
|
03190e2255d27fc0ceb9538b8f9697e053696564
|
/app/src/main/java/com/jingna/artworkmall/bean/AppGoodsShopgetByTjkBean.java
|
e48e057d71ea5be97b29e223042cabd97c868559
|
[] |
no_license
|
huweidongls/HaoQiShop
|
08cc790aea4266627bac5142ca8e62b207f27204
|
6f45d9922ba7a98c60c850482dfebac08a739af3
|
refs/heads/master
| 2022-11-25T05:57:08.205692
| 2020-08-03T09:30:37
| 2020-08-03T09:30:37
| 264,072,767
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,264
|
java
|
package com.jingna.artworkmall.bean;
import java.io.Serializable;
/**
* Created by Administrator on 2020/1/3.
*/
public class AppGoodsShopgetByTjkBean implements Serializable {
/**
* status : 200
* data : {"goodsName":"测试商品","appPic":"upload/goods/2019-12-30/f67db3c583824459b9ec812b99741ef6.jpg","price":123,"subTitle":"测试商品","detailMobileHtml":"<p><span style=\"color: rgb(96, 98, 102); font-family: Avenir, Helvetica, Arial, sans-serif; font-size: 14px; text-align: center; background-color: rgb(245, 247, 250);\">测试商品<\/span><\/p>","purchaseInstructions":"测试商品","type":3}
*/
private String status;
private DataBean data;
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public DataBean getData() {
return data;
}
public void setData(DataBean data) {
this.data = data;
}
public static class DataBean implements Serializable {
/**
* goodsName : 测试商品
* appPic : upload/goods/2019-12-30/f67db3c583824459b9ec812b99741ef6.jpg
* price : 123
* subTitle : 测试商品
* detailMobileHtml : <p><span style="color: rgb(96, 98, 102); font-family: Avenir, Helvetica, Arial, sans-serif; font-size: 14px; text-align: center; background-color: rgb(245, 247, 250);">测试商品</span></p>
* purchaseInstructions : 测试商品
* type : 3
*/
private String goodsName;
private String appPic;
private double price;
private String subTitle;
private String detailMobileHtml;
private String purchaseInstructions;
private int type;
private int isGood;
public int getIsGood() {
return isGood;
}
public void setIsGood(int isGood) {
this.isGood = isGood;
}
public String getGoodsName() {
return goodsName;
}
public void setGoodsName(String goodsName) {
this.goodsName = goodsName;
}
public String getAppPic() {
return appPic;
}
public void setAppPic(String appPic) {
this.appPic = appPic;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
public String getSubTitle() {
return subTitle;
}
public void setSubTitle(String subTitle) {
this.subTitle = subTitle;
}
public String getDetailMobileHtml() {
return detailMobileHtml;
}
public void setDetailMobileHtml(String detailMobileHtml) {
this.detailMobileHtml = detailMobileHtml;
}
public String getPurchaseInstructions() {
return purchaseInstructions;
}
public void setPurchaseInstructions(String purchaseInstructions) {
this.purchaseInstructions = purchaseInstructions;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
}
}
|
[
"466463054@qq.com"
] |
466463054@qq.com
|
c99ceaa7fd7560d6148974fecfd8270708d68838
|
bcb24056fde2cb3915508e210250fba1e29bd113
|
/4.JavaCollections/src/com/javarush/task/task37/task3702/FactoryProducer.java
|
fb2f79ce71a2eef2ce41114b134092e3107bae16
|
[] |
no_license
|
s3rji/JavaRush
|
fd8ba2ac8a1b5984813508f695302185a265b5bf
|
8ce3a54e89ec0e8ccae4ae6c5598017ed8954abe
|
refs/heads/master
| 2023-07-17T01:43:47.525951
| 2021-08-26T19:01:22
| 2021-08-26T19:01:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 510
|
java
|
package com.javarush.task.task37.task3702;
import com.javarush.task.task37.task3702.female.FemaleFactory;
import com.javarush.task.task37.task3702.male.MaleFactory;
public class FactoryProducer {
public enum HumanFactoryType {
MALE,
FEMALE
}
public static AbstractFactory getFactory(HumanFactoryType sex) {
if (sex == HumanFactoryType.MALE) return new MaleFactory();
if (sex == HumanFactoryType.FEMALE) return new FemaleFactory();
return null;
}
}
|
[
"s3rg.rov@yandex.ru"
] |
s3rg.rov@yandex.ru
|
ba505406fd525ef275a41685915b10e992c856d5
|
008cbeb0aa6bab2eefe6d92efd20c67ac4b791af
|
/src/Prmr/Item.java
|
6b4b46ce1e1c8187570abea6c35dbea19830305d
|
[] |
no_license
|
uday246/Nov18
|
08915d9b31e8ea2e070b8d23be796171d914f38f
|
0cd0bdfeeddcce9c53e50df0d9aae671e2288dfb
|
refs/heads/master
| 2020-08-15T07:38:25.044163
| 2019-10-15T13:11:27
| 2019-10-15T13:11:27
| 215,302,041
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,205
|
java
|
package Prmr;
import java.util.ArrayList;
import java.util.List;
public class Item {
private int itemID;
private String name;
private double cost;
public Item(int aItemID, String aName, double aCost) {
super();
itemID = aItemID;
name = aName;
cost = aCost;
}
public int getItemID() {
return itemID;
}
public void setItemID(int aItemID) {
itemID = aItemID;
}
public String getName() {
return name;
}
public void setName(String aName) {
name = aName;
}
public double getCost() {
return cost;
}
public void setCost(double aCost) {
cost = aCost;
}
}
class PurchaseOrder{
private int orderId;
private List<Item>items;
public PurchaseOrder(int aOrderId) {
super();
orderId = aOrderId;
items=new ArrayList<Item>();
}
public int getID() {
return orderId;
}
public void setID(int aOrderId) {
orderId = aOrderId;
}
public List<Item> getList() {
return items;
}
public void addItem(Item item) {
items.add(item);
}
public double getTotalCost(){
double sum=0;
for(Item i:items)
sum+=i.getCost();
return sum;
}
public int getTotalNumberOfItems(){
return items.size();
}
}
|
[
"teegalaudaykumar@gmail.com"
] |
teegalaudaykumar@gmail.com
|
54f52d4b25116f0af2b9ca98c4e1b661e853c6f9
|
34f8d4ba30242a7045c689768c3472b7af80909c
|
/jdk-12/src/jdk.internal.vm.compiler/org.graalvm.compiler.hotspot.aarch64/src/org/graalvm/compiler/hotspot/aarch64/AArch64HotSpotLoweringProvider.java
|
17d78ee2ede331dcd3469e3bcc821780dfa851d0
|
[
"Apache-2.0"
] |
permissive
|
lovelycheng/JDK
|
5b4cc07546f0dbfad15c46d427cae06ef282ef79
|
19a6c71e52f3ecd74e4a66be5d0d552ce7175531
|
refs/heads/master
| 2023-04-08T11:36:22.073953
| 2022-09-04T01:53:09
| 2022-09-04T01:53:09
| 227,544,567
| 0
| 0
| null | 2019-12-12T07:18:30
| 2019-12-12T07:18:29
| null |
UTF-8
|
Java
| false
| false
| 3,100
|
java
|
/*
* Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.graalvm.compiler.hotspot.aarch64;
import org.graalvm.compiler.core.common.spi.ForeignCallsProvider;
import org.graalvm.compiler.debug.DebugHandlersFactory;
import org.graalvm.compiler.graph.Node;
import org.graalvm.compiler.hotspot.GraalHotSpotVMConfig;
import org.graalvm.compiler.hotspot.HotSpotGraalRuntimeProvider;
import org.graalvm.compiler.hotspot.meta.DefaultHotSpotLoweringProvider;
import org.graalvm.compiler.hotspot.meta.HotSpotProviders;
import org.graalvm.compiler.hotspot.meta.HotSpotRegistersProvider;
import org.graalvm.compiler.nodes.calc.FloatConvertNode;
import org.graalvm.compiler.nodes.calc.IntegerDivRemNode;
import org.graalvm.compiler.nodes.calc.RemNode;
import org.graalvm.compiler.nodes.spi.LoweringTool;
import org.graalvm.compiler.options.OptionValues;
import org.graalvm.compiler.replacements.aarch64.AArch64FloatArithmeticSnippets;
import org.graalvm.compiler.replacements.aarch64.AArch64IntegerArithmeticSnippets;
import jdk.vm.ci.code.TargetDescription;
import jdk.vm.ci.hotspot.HotSpotConstantReflectionProvider;
import jdk.vm.ci.meta.MetaAccessProvider;
public class AArch64HotSpotLoweringProvider extends DefaultHotSpotLoweringProvider {
private AArch64IntegerArithmeticSnippets integerArithmeticSnippets;
private AArch64FloatArithmeticSnippets floatArithmeticSnippets;
public AArch64HotSpotLoweringProvider(HotSpotGraalRuntimeProvider runtime, MetaAccessProvider metaAccess, ForeignCallsProvider foreignCalls, HotSpotRegistersProvider registers,
HotSpotConstantReflectionProvider constantReflection, TargetDescription target) {
super(runtime, metaAccess, foreignCalls, registers, constantReflection, target);
}
@Override
public void initialize(OptionValues options, Iterable<DebugHandlersFactory> factories, HotSpotProviders providers, GraalHotSpotVMConfig config) {
integerArithmeticSnippets = new AArch64IntegerArithmeticSnippets(options, factories, providers, providers.getSnippetReflection(), providers.getCodeCache().getTarget());
floatArithmeticSnippets = new AArch64FloatArithmeticSnippets(options, factories, providers, providers.getSnippetReflection(), providers.getCodeCache().getTarget());
super.initialize(options, factories, providers, config);
}
@Override
public void lower(Node n, LoweringTool tool) {
if (n instanceof IntegerDivRemNode) {
integerArithmeticSnippets.lower((IntegerDivRemNode) n, tool);
} else if (n instanceof RemNode) {
floatArithmeticSnippets.lower((RemNode) n, tool);
} else if (n instanceof FloatConvertNode) {
// AMD64 has custom lowerings for ConvertNodes, HotSpotLoweringProvider does not expect
// to see a ConvertNode and throws an error, just do nothing here.
} else {
super.lower(n, tool);
}
}
}
|
[
"zeng255@163.com"
] |
zeng255@163.com
|
a4204652a6c7e3256470f73bd56ade5bf49685ce
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/single-large-project/src/test/java/org/gradle/test/performancenull_82/Testnull_8151.java
|
64596b732e8ff1e5a0c73a4a73e8722ee37c5bf3
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 304
|
java
|
package org.gradle.test.performancenull_82;
import static org.junit.Assert.*;
public class Testnull_8151 {
private final Productionnull_8151 production = new Productionnull_8151("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
ecb38739130a7efa5d215676cd288c1f1866b7e8
|
98989b2d72285e3b9fa843174470a37c62bbd920
|
/src/main/java/com/hamitmizra/scoped/ApplicationScopedCdi.java
|
920c2a2131520aba7e56931ef8439fd399b0be89
|
[] |
no_license
|
hamitmizrak/Spring-boot-jsf-primefaces-hibernate-WebServis
|
6a846969334fcdbe328706763c6cb9e30cdc096d
|
e494fac382f9bdf2c82da88c50d1d36077d821f3
|
refs/heads/master
| 2023-04-15T04:03:48.443121
| 2021-04-21T09:56:39
| 2021-04-21T09:56:39
| 359,576,685
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 297
|
java
|
package com.hamitmizra.scoped;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
@Named("applicationScopedCdi")
@ApplicationScoped
public class ApplicationScopedCdi {
public ApplicationScopedCdi ( ) {
// TODO Auto-generated constructor stub
}
}
|
[
"hamitmizrak@gmail.com"
] |
hamitmizrak@gmail.com
|
3ebcceccfe62fe9ac5b3c912f7d59f1c79780ce3
|
5adca47d426f1f90fd111a8e13421280ef8fc08e
|
/examples/src/main/java/heartBeat/ServerHeartBeatHandler.java
|
c07e48c589bdce3a144535453e421314bbccdc6e
|
[] |
no_license
|
xiaozhiliaoo/netty-practice
|
8d829657a7e30b2c96c2980553d54a7aaaf1a637
|
c236b9f211c291f81b1e1490c9b2fb0cba097f6b
|
refs/heads/master
| 2023-07-23T03:06:56.823662
| 2022-02-06T14:25:08
| 2022-02-06T14:25:08
| 248,139,147
| 1
| 0
| null | 2023-07-13T17:04:02
| 2020-03-18T04:34:59
|
Java
|
UTF-8
|
Java
| false
| false
| 2,445
|
java
|
package heartBeat;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelHandlerAdapter;
import io.netty.channel.ChannelHandlerContext;
import java.util.HashMap;
public class ServerHeartBeatHandler extends ChannelHandlerAdapter {
/** key:ip value:auth */
private static HashMap<String, String> AUTH_IP_MAP = new HashMap<String, String>();
private static final String SUCCESS_KEY = "auth_success_key";
static {
//应该从数据库取得
AUTH_IP_MAP.put("192.168.1.200", "1234");
}
private boolean auth(ChannelHandlerContext ctx, Object msg){
//System.out.println(msg); ret[0] ip ret[1] auth
String [] ret = ((String) msg).split(",");
String auth = AUTH_IP_MAP.get(ret[0]);
// 有ip并且
if(auth != null && auth.equals(ret[1])){
ctx.writeAndFlush(SUCCESS_KEY);
return true;
} else {
//认证失败进行断连
ctx.writeAndFlush("auth failure !").addListener(ChannelFutureListener.CLOSE);
return false;
}
}
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
//字符串的话走认证方法 解密等过程 实际开发较复杂
if(msg instanceof String){
auth(ctx, msg);
} else if (msg instanceof RequestInfo) {
RequestInfo info = (RequestInfo) msg;
System.out.println("--------------------------------------------");
System.out.println("当前主机ip为: " + info.getIp());
System.out.println("当前主机cpu情况: ");
HashMap<String, Object> cpu = info.getCpuPercMap();
System.out.println("总使用率: " + cpu.get("combined"));
System.out.println("用户使用率: " + cpu.get("user"));
System.out.println("系统使用率: " + cpu.get("sys"));
System.out.println("等待率: " + cpu.get("wait"));
System.out.println("空闲率: " + cpu.get("idle"));
System.out.println("当前主机memory情况: ");
HashMap<String, Object> memory = info.getMemoryMap();
System.out.println("内存总量: " + memory.get("total"));
System.out.println("当前内存使用量: " + memory.get("used"));
System.out.println("当前内存剩余量: " + memory.get("free"));
System.out.println("--------------------------------------------");
ctx.writeAndFlush("info received!");
} else {
//过了一会 没发心跳包 就会把网络断了
ctx.writeAndFlush("connect failure!").addListener(ChannelFutureListener.CLOSE);
}
}
}
|
[
"lili@chainup.com"
] |
lili@chainup.com
|
41c55798d407dfed29106e2e156b0058bbd90caa
|
e98ad9d22fb7be489a2cbf13074fdcbc83d081f1
|
/src/com/emi/wms/bean/MesWmDispatchingorder.java
|
6c2986b183c1648d475943498dc62507814bf318
|
[] |
no_license
|
yuronghao/LugErp
|
fca52dcd22910dc9add6fd2867354f04dbbd3c03
|
8b4415e72994e5d34cdaaa3ddaf88bb83e849fc7
|
refs/heads/master
| 2020-03-07T08:10:56.665798
| 2018-07-09T03:29:19
| 2018-07-09T03:29:19
| 127,370,129
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,821
|
java
|
package com.emi.wms.bean;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import com.emi.sys.core.annotation.EmiColumn;
import com.emi.sys.core.annotation.EmiTable;
@EmiTable(name = "MES_WM_DispatchingOrder")
public class MesWmDispatchingorder implements Serializable{
private static final long serialVersionUID = -663606363566555528L;
@EmiColumn(name = "pk", increment=true)
private Integer pk;
@EmiColumn(name = "gid", ID = true)
private String gid;
@EmiColumn(name = "stationGid")
private String stationGid;//工位uid
@EmiColumn(name = "disDate")
private Timestamp disDate;//派工日期
@EmiColumn(name = "dispatchingObj")
private Integer dispatchingObj;//派工对象 0:人 1:组
@EmiColumn(name = "billCode")
private String billCode;//单据编码
@EmiColumn(name = "sobgid")
private String sobgid;
@EmiColumn(name = "orggid")
private String orggid;
@EmiColumn(name = "notes")
private String notes;//备注
@EmiColumn(name = "mouldGid")
private String mouldGid;//模具gid
@EmiColumn(name = "repeatGid")
private String repeatGid;//防止重复提交的gid
@EmiColumn(name = "workingTime")
private Integer workingTime; //0白班 1夜班 默认白班
public Integer getWorkingTime() {
return workingTime;
}
public void setWorkingTime(Integer workingTime) {
this.workingTime = workingTime;
}
public String getRepeatGid() {
return repeatGid;
}
public void setRepeatGid(String repeatGid) {
this.repeatGid = repeatGid;
}
public String getMouldGid() {
return mouldGid;
}
public void setMouldGid(String mouldGid) {
this.mouldGid = mouldGid;
}
public String getNotes() {
return notes;
}
public void setNotes(String notes) {
this.notes = notes;
}
public Integer getPk() {
return pk;
}
public void setPk(Integer pk) {
this.pk = pk;
}
public String getGid() {
return gid;
}
public void setGid(String gid) {
this.gid = gid;
}
public String getStationGid() {
return stationGid;
}
public void setStationGid(String stationGid) {
this.stationGid = stationGid;
}
public Timestamp getDisDate() {
return disDate;
}
public void setDisDate(Timestamp disDate) {
this.disDate = disDate;
}
public Integer getDispatchingObj() {
return dispatchingObj;
}
public void setDispatchingObj(Integer dispatchingObj) {
this.dispatchingObj = dispatchingObj;
}
public String getSobgid() {
return sobgid;
}
public void setSobgid(String sobgid) {
this.sobgid = sobgid;
}
public String getOrggid() {
return orggid;
}
public void setOrggid(String orggid) {
this.orggid = orggid;
}
public String getBillCode() {
return billCode;
}
public void setBillCode(String billCode) {
this.billCode = billCode;
}
}
|
[
"286470940@qq.com"
] |
286470940@qq.com
|
5e989a9b53a856ea6046b574e2fb0bcd78ca76ab
|
fa1791f193a665acd9031de7750073e24986ffb7
|
/auro_scholar_lib/src/main/java/com/auro/scholr/payment/domain/PaymentRemoteUseCase.java
|
d27cf5bfe77edf3530cc005ec290271f3b43a4c7
|
[
"MIT"
] |
permissive
|
AuroScholar/microscholarReactBridge-
|
0d222eebee94fbe0d716e101a44a099312f27fe3
|
744c9b2a9eea28cc2335502a086c309c1315ac1b
|
refs/heads/master
| 2023-08-23T02:55:33.359283
| 2021-09-28T09:38:34
| 2021-09-28T09:38:34
| 409,132,193
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,479
|
java
|
package com.auro.scholr.payment.domain;
import com.auro.scholr.R;
import com.auro.scholr.core.application.AuroApp;
import com.auro.scholr.core.common.NetworkUtil;
import com.auro.scholr.core.common.ResponseApi;
import com.auro.scholr.core.common.Status;
import com.auro.scholr.core.network.NetworkUseCase;
import com.auro.scholr.home.data.model.DashboardResModel;
import com.auro.scholr.payment.data.model.request.PaytmWithdrawalByBankAccountReqModel;
import com.auro.scholr.payment.data.model.request.PaytmWithdrawalByUPIReqModel;
import com.auro.scholr.payment.data.model.request.PaytmWithdrawalReqModel;
import com.auro.scholr.payment.data.model.response.PaytmResModel;
import com.auro.scholr.payment.data.repository.PaymentRepo;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import io.reactivex.Single;
import io.reactivex.functions.Function;
import retrofit2.Response;
import static com.auro.scholr.core.common.AppConstant.ResponseConstatnt.RES_200;
import static com.auro.scholr.core.common.AppConstant.ResponseConstatnt.RES_400;
import static com.auro.scholr.core.common.AppConstant.ResponseConstatnt.RES_401;
import static com.auro.scholr.core.common.AppConstant.ResponseConstatnt.RES_FAIL;
import static com.auro.scholr.core.common.Status.DASHBOARD_API;
import static com.auro.scholr.core.common.Status.PAYMENT_TRANSFER_API;
import static com.auro.scholr.core.common.Status.PAYTM_ACCOUNT_WITHDRAWAL;
import static com.auro.scholr.core.common.Status.PAYTM_UPI_WITHDRAWAL;
import static com.auro.scholr.core.common.Status.PAYTM_WITHDRAWAL;
public class PaymentRemoteUseCase extends NetworkUseCase {
PaymentRepo.PaymentRemoteData paymentRemoteData;
Gson gson = new Gson();
public PaymentRemoteUseCase(PaymentRepo.PaymentRemoteData paymentRemoteData) {
this.paymentRemoteData = paymentRemoteData;
}
@Override
public Single<Boolean> isAvailInternet() {
return NetworkUtil.hasInternetConnection();
}
@Override
public ResponseApi response200(Response<JsonObject> response, Status status) {
if (AuroApp.getAuroScholarModel() != null && AuroApp.getAuroScholarModel().getSdkcallback() != null) {
String jsonString = new Gson().toJson(response.body());
AuroApp.getAuroScholarModel().getSdkcallback().callBack(jsonString);
}
if (status == PAYTM_UPI_WITHDRAWAL) {
PaytmResModel paytmResModel = gson.fromJson(response.body(), PaytmResModel.class);
return ResponseApi.success(paytmResModel, status);
}
if (status == PAYTM_WITHDRAWAL) {
PaytmResModel paytmResModel = gson.fromJson(response.body(), PaytmResModel.class);
return ResponseApi.success(paytmResModel, status);
}
if (status == PAYTM_ACCOUNT_WITHDRAWAL) {
PaytmResModel paytmResModel = gson.fromJson(response.body(), PaytmResModel.class);
return ResponseApi.success(paytmResModel, status);
}
if (status == PAYMENT_TRANSFER_API) {
PaytmResModel paytmResModel = gson.fromJson(response.body(), PaytmResModel.class);
return ResponseApi.success(paytmResModel, status);
}
return ResponseApi.fail(null, status);
}
@Override
public ResponseApi response401(Status status) {
return null;
}
@Override
public ResponseApi responseFail400(Response<JsonObject> response, Status status) {
return null;
}
@Override
public ResponseApi responseFail(Status status) {
return null;
}
private ResponseApi handleResponse(Response<JsonObject> response, Status apiTypeStatus) {
switch (response.code()) {
case RES_200:
return response200(response, apiTypeStatus);
case RES_401:
return response401(apiTypeStatus);
case RES_400:
return responseFail400(response, apiTypeStatus);
case RES_FAIL:
return responseFail(apiTypeStatus);
default:
return ResponseApi.fail(AuroApp.getAppContext().getString(R.string.default_error), apiTypeStatus);
}
}
public Single<ResponseApi> paytmWithdrawalApi(PaytmWithdrawalReqModel reqModel){
return paymentRemoteData.paytmWithdrawalApi(reqModel).map(new Function<Response<JsonObject>, ResponseApi>() {
@Override
public ResponseApi apply(Response<JsonObject> response) throws Exception {
if (response != null) {
return handleResponse(response, Status.PAYTM_WITHDRAWAL);
} else {
return responseFail(null);
}
}
});
}
public Single<ResponseApi> paytmByUpiApi(PaytmWithdrawalByUPIReqModel reqModel){
return paymentRemoteData.paytmWithdrawalByUpiApi(reqModel).map(new Function<Response<JsonObject>, ResponseApi>() {
@Override
public ResponseApi apply(Response<JsonObject> response) throws Exception {
if (response != null) {
return handleResponse(response, Status.PAYTM_UPI_WITHDRAWAL);
} else {
return responseFail(null);
}
}
});
}
public Single<ResponseApi> paytmByAccountApi(PaytmWithdrawalByBankAccountReqModel reqModel){
return paymentRemoteData.paytmWithdrawalByAccountApi(reqModel).map(new Function<Response<JsonObject>, ResponseApi>() {
@Override
public ResponseApi apply(Response<JsonObject> response) throws Exception {
if (response != null) {
return handleResponse(response, Status.PAYTM_ACCOUNT_WITHDRAWAL);
} else {
return responseFail(null);
}
}
});
}
public Single<ResponseApi> paymentTransferApi(PaytmWithdrawalByBankAccountReqModel reqModel){
return paymentRemoteData.paymentTransferApi(reqModel).map(new Function<Response<JsonObject>, ResponseApi>() {
@Override
public ResponseApi apply(Response<JsonObject> response) throws Exception {
if (response != null) {
return handleResponse(response, PAYMENT_TRANSFER_API);
} else {
return responseFail(null);
}
}
});
}
}
|
[
"you@example.com"
] |
you@example.com
|
53dc2db607faf4f0880c9643c57c05578a2ff375
|
ea4da81a69a300624a46fce9e64904391c37267c
|
/src/main/java/com/alipay/api/domain/AlipayEbppInvoiceTitleBatchqueryModel.java
|
a4f037a5cd205de6f8ade96e9ed41f6d65eebce5
|
[
"Apache-2.0"
] |
permissive
|
shiwei1024/alipay-sdk-java-all
|
741cc3cb8cf757292b657ce05958ff9ad8ecf582
|
d6a051fd47836c719a756607e6f84fee2b26ecb4
|
refs/heads/master
| 2022-12-29T18:46:53.195585
| 2020-10-09T06:34:30
| 2020-10-09T06:34:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,398
|
java
|
package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 获取指定抬头的发票要素列表
*
* @author auto create
* @since 1.0, 2020-05-20 15:51:53
*/
public class AlipayEbppInvoiceTitleBatchqueryModel extends AlipayObject {
private static final long serialVersionUID = 2864872169418965959L;
/**
* 查询起始时间,精确到天(按开票日期查询)
start_invoice_date和end_invoice_date传值要求
1.同时为空时,返回最近半年200条数据
2.其中一个值不能为空
3.结束日期不能大于当前日期
4.开始时间和结束时间跨度不能超过6个月
*/
@ApiField("end_invoice_date")
private String endInvoiceDate;
/**
* 发票报销状态的查询条件,为空的情况下,查询所有状态的发票;可选值WAIT_EXPENSE:待报销状态;EXPENSE_PROCESSING:报销中;EXPENSE_FINISHED:已报销
*/
@ApiListField("expense_status_list")
@ApiField("string")
private List<String> expenseStatusList;
/**
* 查询票种列表
可选值
PLAIN:增值税电子普通发票
SPECIAL:增值税专用发票
PLAIN_INVOICE:增值税普通发票
PAPER_INVOICE:增值税普通发票(卷式)
SALSE_INVOICE:机动车销售统一发票
*/
@ApiListField("invoice_kind_list")
@ApiField("string")
private List<String> invoiceKindList;
/**
* 查询结果上限笔数;
不设置时默认200笔上限;
上限为500笔
*/
@ApiField("limit_size")
private Long limitSize;
/**
* 为空时默认第一页
*/
@ApiField("page_num")
private Long pageNum;
/**
* 查询起始时间,精确到天(按开票日期查询)
start_invoice_date和end_invoice_date传值要求
1.同时为空时,返回最近半年200条数据
2.其中一个值不能为空
3.结束日期不能大于当前日期
4.开始时间和结束时间跨度不能超过6个月
*/
@ApiField("start_invoice_date")
private String startInvoiceDate;
/**
* 抬头名称
*/
@ApiField("title_name")
private String titleName;
public String getEndInvoiceDate() {
return this.endInvoiceDate;
}
public void setEndInvoiceDate(String endInvoiceDate) {
this.endInvoiceDate = endInvoiceDate;
}
public List<String> getExpenseStatusList() {
return this.expenseStatusList;
}
public void setExpenseStatusList(List<String> expenseStatusList) {
this.expenseStatusList = expenseStatusList;
}
public List<String> getInvoiceKindList() {
return this.invoiceKindList;
}
public void setInvoiceKindList(List<String> invoiceKindList) {
this.invoiceKindList = invoiceKindList;
}
public Long getLimitSize() {
return this.limitSize;
}
public void setLimitSize(Long limitSize) {
this.limitSize = limitSize;
}
public Long getPageNum() {
return this.pageNum;
}
public void setPageNum(Long pageNum) {
this.pageNum = pageNum;
}
public String getStartInvoiceDate() {
return this.startInvoiceDate;
}
public void setStartInvoiceDate(String startInvoiceDate) {
this.startInvoiceDate = startInvoiceDate;
}
public String getTitleName() {
return this.titleName;
}
public void setTitleName(String titleName) {
this.titleName = titleName;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
58e56163b30969063262702decc5dc95763d4492
|
915d1919d34ffb446e4206a29f7f5efe7ea2ff6b
|
/src/day46/SQLProgrammer.java
|
d2317dcd08dc2990041a060bad5d91e88aa099dd
|
[] |
no_license
|
gkossareva/JavaProgrammingB15Online
|
cf9c55b17303f74da62be548687e15b2adf11180
|
5c5b3ce71afdce1322b9121b2b09f4dd63e5b012
|
refs/heads/master
| 2021-01-14T04:26:20.838541
| 2020-02-23T22:05:34
| 2020-02-23T22:05:34
| 242,598,460
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 299
|
java
|
package day46;
public class SQLProgrammer extends Programmer {
@Override
void code() {
System.out.println("Writing SQL QUERY");
}
@Override
void test (){
System.out.println("Testing SQL Query");
}
public void writeSQLQuery(){
System.out.println("Writing SQL Query");}
}
|
[
"taccolinka@gmail.com"
] |
taccolinka@gmail.com
|
de9fc29ec14091335dae04eec850abf28251278a
|
afbf1b8b95986f0b853bd75b99443b78d2f2ad37
|
/common/rebelkeithy/mods/metallurgy/machines/chests/TileEntityPreciousChestRenderer.java
|
ee7326b87adefa19cb4451ce81ba09e4c3dc18a6
|
[] |
no_license
|
Vexatos/Metallurgy
|
257c8df0319a908aa82fb5a81694607dd0c5b96a
|
8f1e4c67749f6d574bad23d4b9792d78e42f287a
|
refs/heads/master
| 2021-01-15T21:44:11.689719
| 2013-09-20T13:05:16
| 2013-09-20T13:05:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,593
|
java
|
package rebelkeithy.mods.metallurgy.machines.chests;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.model.ModelChest;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
public class TileEntityPreciousChestRenderer extends TileEntitySpecialRenderer
{
/** The normal small chest model. */
private ModelChest chestModel = new ModelChest();
private ResourceLocation chestBrass = new ResourceLocation("Metallurgy:textures/blocks/machines/chests/brasschest.png");
private ResourceLocation chestSilver = new ResourceLocation("Metallurgy:textures/blocks/machines/chests/silverchest.png");
private ResourceLocation chestGold = new ResourceLocation("Metallurgy:textures/blocks/machines/chests/goldchest.png");
private ResourceLocation chestElectrum = new ResourceLocation("Metallurgy:textures/blocks/machines/chests/electrumchest.png");
private ResourceLocation chestPlatinum = new ResourceLocation("Metallurgy:textures/blocks/machines/chests/platinumchest.png");
private ResourceLocation[] textures = {chestBrass, chestSilver, chestGold, chestElectrum, chestPlatinum};
/**
* Renders the TileEntity for the chest at a position.
*/
public void renderTileEntityChestAt(TileEntityPreciousChest par1TileEntityChest, double par2, double par4, double par6, float par8)
{
String imageName = "brasschest.png";
int direction = par1TileEntityChest.getDirection();
int type = par1TileEntityChest.getType();
float offset = 0;
int var9;
if (!par1TileEntityChest.hasWorldObj())
{
var9 = 5;
offset = 0.1f;
}
else
{
Block var10 = par1TileEntityChest.getBlockType();
var9 = par1TileEntityChest.getDirection();
}
ModelChest var14;
var14 = this.chestModel;
if(type < textures.length)
Minecraft.getMinecraft().func_110434_K().func_110577_a(textures[type]);
GL11.glPushMatrix();
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GL11.glTranslatef((float)par2, (float)par4 + 1.0F, (float)par6 + 1.0F);
GL11.glScalef(1.0F, -1.0F, -1.0F);
GL11.glTranslatef(0.5F, 0.5F, 0.5F);
short var11 = 0;
if (var9 == 2)
{
var11 = 180;
}
if (var9 == 3)
{
var11 = 0;
}
if (var9 == 4)
{
var11 = 90;
}
if (var9 == 5)
{
var11 = -90;
}
GL11.glRotatef((float)var11, 0.0F, 1.0F, 0.0F);
GL11.glTranslatef(-0.5F, -0.5f + offset, -0.5F);
float var12 = par1TileEntityChest.prevLidAngle + (par1TileEntityChest.lidAngle - par1TileEntityChest.prevLidAngle) * par8;
float var13;
var12 = 1.0F - var12;
var12 = 1.0F - var12 * var12 * var12;
var14.chestLid.rotateAngleX = -(var12 * (float)Math.PI / 2.0F);
var14.renderAll();
//GL11.glDisable(GL12.GL_RESCALE_NORMAL);
GL11.glPopMatrix();
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
}
@Override
public void renderTileEntityAt(TileEntity var1, double var2, double var4, double var6, float var8) {
this.renderTileEntityChestAt((TileEntityPreciousChest)var1, var2, var4, var6, var8);
}
}
|
[
"RebelKeithy@gmail.com"
] |
RebelKeithy@gmail.com
|
e900d3027c8e7cbc6bed04078a3a355852ba802f
|
b6565ad52288fa25904ea670fd5dd928709891af
|
/query-methods/src/integration-test/java/net/petrikainulainen/springdata/jpa/TodoConstants.java
|
28fb008c4d585b0326c6de9d2364eafcc45c8cc7
|
[
"Apache-2.0"
] |
permissive
|
ddverni/spring-data-jpa-examples
|
543186242bc7ce5f55842b37a4a058ba2b0d54f0
|
869766f4cd3d866af843f1f1619e018f18b4e27d
|
refs/heads/master
| 2021-01-14T10:08:22.319036
| 2015-07-19T14:00:25
| 2015-07-19T14:00:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,406
|
java
|
package net.petrikainulainen.springdata.jpa;
/**
* This class contains the constants that are used in our integration tests, DbUnit datasets,
* and the localization file.
*
* @author Petri Kainulainen
*/
public final class TodoConstants {
public static final String CREATION_TIME = "2014-12-24T14:13:28+03:00";
public static final String DESCRIPTION = "description";
public static final Long ID = 1L;
public static final String MODIFICATION_TIME = "2014-12-25T14:13:28+03:00";
public static final String TITLE = "title";
public static final String SEARCH_TERM_DESCRIPTION_MATCHES = "esC";
public static final String SEARCH_TERM_NO_MATCH = "NO MATCH";
public static final String SEARCH_TERM_TITLE_MATCHES = "It";
public static final String UPDATED_DESCRIPTION = "updatedDescription";
public static final String UPDATED_TITLE = "updatedTitle";
public static final String ERROR_MESSAGE_TODO_ENTRY_NOT_FOUND = "No todo entry was found by using id: 1";
public static final String ERROR_MESSAGE_MISSING_TITLE = "The title cannot be empty";
public static final String ERROR_MESSAGE_TOO_LONG_DESCRIPTION = "The maximum length of description is 500 characters";
public static final String ERROR_MESSAGE_TOO_LONG_TITLE = "The maximum length of title is 100 characters";
/**
* Prevents instantiation
*/
private TodoConstants() {}
}
|
[
"petri.kainulainen@gmail.com"
] |
petri.kainulainen@gmail.com
|
e864ee7554ffb1aa3406a82e20238d580dfec2b4
|
a7b868c8c81984dbcb17c1acc09c0f0ab8e36c59
|
/src/main/java/com/alipay/api/response/AlipaySamsungPucChargeResponse.java
|
bf05a77e6e84062a9a67e6ca4571ed87f956a046
|
[
"Apache-2.0"
] |
permissive
|
1755616537/alipay-sdk-java-all
|
a7ebd46213f22b866fa3ab20c738335fc42c4043
|
3ff52e7212c762f030302493aadf859a78e3ebf7
|
refs/heads/master
| 2023-02-26T01:46:16.159565
| 2021-02-02T01:54:36
| 2021-02-02T01:54:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 652
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.samsung.puc.charge response.
*
* @author auto create
* @since 1.0, 2019-03-08 15:29:11
*/
public class AlipaySamsungPucChargeResponse extends AlipayResponse {
private static final long serialVersionUID = 3754511349921261132L;
/**
* zhijiefanhui yemian
*/
@ApiField("page_retrun")
private String pageRetrun;
public void setPageRetrun(String pageRetrun) {
this.pageRetrun = pageRetrun;
}
public String getPageRetrun( ) {
return this.pageRetrun;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
a5b14cba39645774cac6c87205d0cc79a553a718
|
b9f0d3aa3e60c5961303eb3ecc84eaf8845a87f0
|
/src/main/java/com/actualize/mortgage/datalayer/Escrows.java
|
6e873af40dc5163bdcc2bc759f059df98c588a58
|
[] |
no_license
|
suniltota/TransformX-Service-UCD-ClosingDisclosurePdf
|
fa8a703a4fba63c8b17874e1c959e903f6e057a5
|
46afe4dbc75ed026b2ded8a401aebafa23f1aa27
|
refs/heads/master
| 2021-01-22T19:54:03.570004
| 2017-08-01T12:39:47
| 2017-08-01T12:39:47
| 100,711,753
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,126
|
java
|
package com.actualize.mortgage.datalayer;
public class Escrows extends Expenses {
private String monthlyPaymentAmount = "";
private String collectedNumberOfMonthsCount = "";
private String buyerAtClosingAmount = "";
private String buyerOutsideClosingAmount = "";
private String sellerAtClosingAmount = "";
private String sellerOutsideClosingAmount = "";
private String otherAmount = "";
private String otherEntity = "";
public String getMonthlyPaymentAmount() {
return monthlyPaymentAmount;
}
public void setMonthlyPaymentAmount(String monthlyPaymentAmount) {
this.monthlyPaymentAmount = monthlyPaymentAmount;
}
public String getCollectedNumberOfMonthsCount() {
return collectedNumberOfMonthsCount;
}
public void setCollectedNumberOfMonthsCount(
String collectedNumberOfMonthsCount) {
this.collectedNumberOfMonthsCount = collectedNumberOfMonthsCount;
}
public String getBuyerAtClosingAmount() {
return buyerAtClosingAmount;
}
public void setBuyerAtClosingAmount(String buyerAtClosingAmount) {
this.buyerAtClosingAmount = buyerAtClosingAmount;
}
public String getBuyerOutsideClosingAmount() {
return buyerOutsideClosingAmount;
}
public void setBuyerOutsideClosingAmount(String buyerOutsideClosingAmount) {
this.buyerOutsideClosingAmount = buyerOutsideClosingAmount;
}
public String getSellerAtClosingAmount() {
return sellerAtClosingAmount;
}
public void setSellerAtClosingAmount(String sellerAtClosingAmount) {
this.sellerAtClosingAmount = sellerAtClosingAmount;
}
public String getSellerOutsideClosingAmount() {
return sellerOutsideClosingAmount;
}
public void setSellerOutsideClosingAmount(String sellerOutsideClosingAmount) {
this.sellerOutsideClosingAmount = sellerOutsideClosingAmount;
}
public String getOtherAmount() {
return otherAmount;
}
public void setOtherAmount(String otherAmount) {
this.otherAmount = otherAmount;
}
public String getOtherEntity() {
return otherEntity;
}
public void setOtherEntity(String otherEntity) {
this.otherEntity = otherEntity;
}
}
|
[
"shravan.boragala@compugain.com"
] |
shravan.boragala@compugain.com
|
0d15d0a4e26340f32a5fe80e9b3861915cfd126a
|
1e0d2613af81362370a59fc99bde1429088d4f2c
|
/src/test/java/jna/Win32WindowControlTest.java
|
49e58fb6d2eaaa923de911f3d714911ad9573436
|
[
"Apache-2.0"
] |
permissive
|
jjYBdx4IL/java-evaluation
|
3134605ae4a666cabf41494dd4261a0d21585a16
|
744dc4f4a26e264eb1aeab9383babb505aeae056
|
refs/heads/master
| 2021-07-01T16:25:16.416416
| 2021-06-19T14:44:44
| 2021-06-19T14:44:44
| 88,812,127
| 3
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 529
|
java
|
package jna;
import com.github.jjYBdx4IL.utils.env.Surefire;
import com.sun.jna.platform.win32.WinDef.HWND;
import org.junit.Assume;
import org.junit.Test;
/**
*
* @author jjYBdx4IL
*/
public class Win32WindowControlTest {
@Test
public void test() throws InterruptedException {
Assume.assumeTrue(Surefire.isSingleTestExecution());
while (true) {
HWND hwnd = User32Utils.getWindowAtCursor();
User32Utils.logHWNDInfo(hwnd);
Thread.sleep(3000L);
}
}
}
|
[
"jjYBdx4IL@github.com"
] |
jjYBdx4IL@github.com
|
50469f13e7f6534c9dba9fbd2b5671eb6c5e607e
|
953be620ec287b0cf1f5b32e788cb26cf10e7b08
|
/smsgateway/src/main/java/com/keren/smsgateway/core/impl/SMSConfigurationManagerImpl.java
|
c4f72524cdcb9f7825d9cdb7c49112570c79da1b
|
[] |
no_license
|
bekondo84/SOURCES
|
15511cbcf1c0d048b9d109343ac1a54cc1739b2a
|
1d80523ca6389eef393c50fed21bf1d821d328e3
|
refs/heads/master
| 2021-07-11T16:36:04.818659
| 2019-02-19T14:55:56
| 2019-02-19T14:55:56
| 148,776,597
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,949
|
java
|
package com.keren.smsgateway.core.impl;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import com.bekosoftware.genericdaolayer.dao.ifaces.GenericDAO;
import com.bekosoftware.genericdaolayer.dao.tools.Predicat;
import com.bekosoftware.genericdaolayer.dao.tools.RestrictionsContainer;
import com.bekosoftware.genericmanagerlayer.core.impl.AbstractGenericManager;
import com.keren.smsgateway.core.ifaces.SMSConfigurationManagerLocal;
import com.keren.smsgateway.core.ifaces.SMSConfigurationManagerRemote;
import com.keren.smsgateway.dao.ifaces.SMSConfigurationDAOLocal;
import com.keren.smsgateway.model.SMSConfiguration;
import com.keren.smsgateway.model.SMSGateway;
import com.megatim.common.annotations.OrderType;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
@TransactionAttribute
@Stateless(mappedName = "SMSConfigurationManager")
public class SMSConfigurationManagerImpl
extends AbstractGenericManager<SMSConfiguration, Long>
implements SMSConfigurationManagerLocal, SMSConfigurationManagerRemote
{
@EJB(name = "SMSConfigurationDAO")
protected SMSConfigurationDAOLocal dao;
public SMSConfigurationManagerImpl() {
}
@Override
public GenericDAO<SMSConfiguration, Long> getDao() {
return dao;
}
@Override
public String getEntityIdName() {
return "id";
}
@Override
public List<SMSConfiguration> filter(List<Predicat> predicats, Map<String, OrderType> orders, Set<String> properties, int firstResult, int maxResult) {
List<SMSConfiguration> datas = dao.filter(predicats, orders, properties, firstResult, maxResult); //To change body of generated methods, choose Tools | Templates.
List<SMSConfiguration> result = new ArrayList<SMSConfiguration>();
for(SMSConfiguration data : datas){
result.add(new SMSConfiguration(data));
}
return result;
}
@Override
public List<SMSConfiguration> findAll() {
RestrictionsContainer container = RestrictionsContainer.newInstance();
List<SMSConfiguration> datas = dao.filter(container.getPredicats(), null, null, 0, -1); //To change body of generated methods, choose Tools | Templates.
List<SMSConfiguration> result = new ArrayList<SMSConfiguration>();
for(SMSConfiguration data : datas){
result.add(new SMSConfiguration(data));
}
return result;
}
@Override
public SMSConfiguration find(String propertyName, Long entityID) {
SMSConfiguration data = dao.findByPrimaryKey(propertyName, entityID); //To change body of generated methods, choose Tools | Templates.
SMSConfiguration result = new SMSConfiguration(data);
for(SMSGateway gate:data.getModems()){
result.getModems().add(new SMSGateway(gate));
}
return result;
}
}
|
[
"bekondo_dieu@yahoo.fr"
] |
bekondo_dieu@yahoo.fr
|
cbf5cd1e946fc0e3d79fce3186c536c9260c4844
|
28019dd379daaf6f73beb55625f2146e8efb2fb1
|
/no.hal.pgo/no.hal.pgo.osm/src/no/hal/pgo/osm/impl/NodeImpl.java
|
5ae4e8c2ca96222572a9cde6ce1d81184167ca99
|
[] |
no_license
|
hallvard/tdt4250-2016
|
727942fa52be0685636ef76032a83fad7f962f09
|
4d4c0bc5067f8de623a1068b949957b59c3eaab9
|
refs/heads/master
| 2020-09-22T10:44:18.347504
| 2016-11-06T20:13:38
| 2016-11-06T20:13:38
| 66,255,378
| 2
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,267
|
java
|
/**
*/
package no.hal.pgo.osm.impl;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import no.hal.pgo.osm.GeoLocated;
import no.hal.pgo.osm.GeoLocation;
import no.hal.pgo.osm.Node;
import no.hal.pgo.osm.OsmPackage;
import no.hal.pgo.osm.geoutil.LatLong;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Node</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link no.hal.pgo.osm.impl.NodeImpl#getLatitude <em>Latitude</em>}</li>
* <li>{@link no.hal.pgo.osm.impl.NodeImpl#getLongitude <em>Longitude</em>}</li>
* </ul>
*
* @generated
*/
public class NodeImpl extends OSMElementImpl implements Node {
/**
* The default value of the '{@link #getLatitude() <em>Latitude</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLatitude()
* @generated
* @ordered
*/
protected static final float LATITUDE_EDEFAULT = 0.0F;
/**
* The cached value of the '{@link #getLatitude() <em>Latitude</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLatitude()
* @generated
* @ordered
*/
protected float latitude = LATITUDE_EDEFAULT;
/**
* The default value of the '{@link #getLongitude() <em>Longitude</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLongitude()
* @generated
* @ordered
*/
protected static final float LONGITUDE_EDEFAULT = 0.0F;
/**
* The cached value of the '{@link #getLongitude() <em>Longitude</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLongitude()
* @generated
* @ordered
*/
protected float longitude = LONGITUDE_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected NodeImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return OsmPackage.Literals.NODE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public float getLatitude() {
return latitude;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setLatitude(float newLatitude) {
float oldLatitude = latitude;
latitude = newLatitude;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OsmPackage.NODE__LATITUDE, oldLatitude, latitude));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public float getLongitude() {
return longitude;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setLongitude(float newLongitude) {
float oldLongitude = longitude;
longitude = newLongitude;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OsmPackage.NODE__LONGITUDE, oldLongitude, longitude));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
@Override
public LatLong getLatLong() {
return new LatLong(getLatitude(), getLongitude());
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case OsmPackage.NODE__LATITUDE:
return getLatitude();
case OsmPackage.NODE__LONGITUDE:
return getLongitude();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case OsmPackage.NODE__LATITUDE:
setLatitude((Float)newValue);
return;
case OsmPackage.NODE__LONGITUDE:
setLongitude((Float)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case OsmPackage.NODE__LATITUDE:
setLatitude(LATITUDE_EDEFAULT);
return;
case OsmPackage.NODE__LONGITUDE:
setLongitude(LONGITUDE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case OsmPackage.NODE__LATITUDE:
return latitude != LATITUDE_EDEFAULT;
case OsmPackage.NODE__LONGITUDE:
return longitude != LONGITUDE_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
if (baseClass == GeoLocated.class) {
switch (derivedFeatureID) {
default: return -1;
}
}
if (baseClass == GeoLocation.class) {
switch (derivedFeatureID) {
case OsmPackage.NODE__LATITUDE: return OsmPackage.GEO_LOCATION__LATITUDE;
case OsmPackage.NODE__LONGITUDE: return OsmPackage.GEO_LOCATION__LONGITUDE;
default: return -1;
}
}
return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
if (baseClass == GeoLocated.class) {
switch (baseFeatureID) {
default: return -1;
}
}
if (baseClass == GeoLocation.class) {
switch (baseFeatureID) {
case OsmPackage.GEO_LOCATION__LATITUDE: return OsmPackage.NODE__LATITUDE;
case OsmPackage.GEO_LOCATION__LONGITUDE: return OsmPackage.NODE__LONGITUDE;
default: return -1;
}
}
return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) {
if (baseClass == GeoLocated.class) {
switch (baseOperationID) {
case OsmPackage.GEO_LOCATED___GET_LAT_LONG: return OsmPackage.NODE___GET_LAT_LONG;
default: return -1;
}
}
if (baseClass == GeoLocation.class) {
switch (baseOperationID) {
default: return -1;
}
}
return super.eDerivedOperationID(baseOperationID, baseClass);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
switch (operationID) {
case OsmPackage.NODE___GET_LAT_LONG:
return getLatLong();
}
return super.eInvoke(operationID, arguments);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (latitude: ");
result.append(latitude);
result.append(", longitude: ");
result.append(longitude);
result.append(')');
return result.toString();
}
} //NodeImpl
|
[
"hal@idi.ntnu.no"
] |
hal@idi.ntnu.no
|
b7f32b5d414591a18f3cf1ab8b1db125852f9d93
|
99380e534cf51b9635fafeec91a740e8521e3ed8
|
/jeecms/src/com/jeecms/cms/dao/assist/CmsVoteTopicDao.java
|
b29acaa7e9259c4dc7f8340aed8a1695401147f1
|
[] |
no_license
|
khodabakhsh/cxldemo
|
d483c634e41bb2b6d70d32aff087da6fd6985d3f
|
9534183fb6837bfa11d5cad98489fdae0db526f1
|
refs/heads/master
| 2021-01-22T16:53:27.794334
| 2013-04-20T01:44:18
| 2013-04-20T01:44:18
| 38,994,185
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 556
|
java
|
package com.jeecms.cms.dao.assist;
import com.jeecms.cms.entity.assist.CmsVoteTopic;
import com.jeecms.common.hibernate3.Updater;
import com.jeecms.common.page.Pagination;
public interface CmsVoteTopicDao {
public Pagination getPage(Integer siteId, int pageNo, int pageSize);
public CmsVoteTopic getDefTopic(Integer siteId);
public CmsVoteTopic findById(Integer id);
public CmsVoteTopic save(CmsVoteTopic bean);
public CmsVoteTopic updateByUpdater(Updater<CmsVoteTopic> updater);
public CmsVoteTopic deleteById(Integer id);
}
|
[
"cxdragon@gmail.com"
] |
cxdragon@gmail.com
|
552280306eb58751ba234ca50fb6468846b6f157
|
ecbb90f42d319195d6517f639c991ae88fa74e08
|
/OpenSaml/src/org/opensaml/xacml/ctx/impl/DecisionTypeMarshaller.java
|
223f8bba4d5d5ca0140a3d6b9e22cc4f5473009c
|
[
"MIT"
] |
permissive
|
Safewhere/kombit-service-java
|
5d6577984ed0f4341bbf65cbbace9a1eced515a4
|
7df271d86804ad3229155c4f7afd3f121548e39e
|
refs/heads/master
| 2020-12-24T05:20:59.477842
| 2018-08-23T03:50:16
| 2018-08-23T03:50:16
| 36,713,383
| 0
| 1
|
MIT
| 2018-08-23T03:51:25
| 2015-06-02T06:39:09
|
Java
|
UTF-8
|
Java
| false
| false
| 2,159
|
java
|
/*
* Licensed to the University Corporation for Advanced Internet Development,
* Inc. (UCAID) under one or more contributor license agreements. See the
* NOTICE file distributed with this work for additional information regarding
* copyright ownership. The UCAID 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.opensaml.xacml.ctx.impl;
import org.opensaml.xacml.ctx.DecisionType;
import org.opensaml.xacml.impl.AbstractXACMLObjectMarshaller;
import org.opensaml.xml.XMLObject;
import org.opensaml.xml.io.MarshallingException;
import org.opensaml.xml.util.XMLHelper;
import org.w3c.dom.Element;
/** Marshaller for {@link DecisionType} objects. */
public class DecisionTypeMarshaller extends AbstractXACMLObjectMarshaller {
/** Constructor. */
public DecisionTypeMarshaller() {
super();
}
/**
* Constructor.
*
* @param targetNamespaceURI the namespace URI of either the schema type QName or element QName of the elements this
* marshaller operates on
* @param targetLocalName the local name of either the schema type QName or element QName of the elements this
* marshaller operates on
*/
protected DecisionTypeMarshaller(String targetNamespaceURI, String targetLocalName) {
super(targetNamespaceURI, targetLocalName);
}
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
DecisionType decision = (DecisionType) samlObject;
XMLHelper.appendTextContent(domElement, decision.getDecision().toString());
}
}
|
[
"lxp@globeteam.com"
] |
lxp@globeteam.com
|
628b7fb70eee47b4b66138124292e8bd291a1f8c
|
0f677e2458768cb79db9e4ee26e1c4f8e28186c7
|
/src/main/java/org/cloud/chiron/framework/shiro/ShiroByteSource.java
|
a67fd832eefa027fcba8f223527e25cfe159d362
|
[] |
no_license
|
d05660/chiron
|
d43833f02c5b5e8569c2faec8080282da2cdc37d
|
180b4eed1b1d64e5fed620b7d0f6ca9456c60662
|
refs/heads/master
| 2022-09-28T03:50:22.979859
| 2019-07-03T09:08:33
| 2019-07-03T10:24:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,324
|
java
|
package org.cloud.chiron.framework.shiro;
import java.io.Serializable;
import java.util.Arrays;
import org.apache.shiro.codec.Base64;
import org.apache.shiro.codec.CodecSupport;
import org.apache.shiro.codec.Hex;
import org.apache.shiro.util.ByteSource;
public class ShiroByteSource implements ByteSource, Serializable {
private static final long serialVersionUID = -6814382603612799610L;
private volatile byte[] bytes;
private String cachedHex;
private String cachedBase64;
public ShiroByteSource() {
}
public ShiroByteSource(String string) {
this.bytes = CodecSupport.toBytes(string);
}
public void setBytes(byte[] bytes) {
this.bytes = bytes;
}
@Override
public byte[] getBytes() {
return this.bytes;
}
@Override
public String toHex() {
if (this.cachedHex == null) {
this.cachedHex = Hex.encodeToString(getBytes());
}
return this.cachedHex;
}
@Override
public String toBase64() {
if (this.cachedBase64 == null) {
this.cachedBase64 = Base64.encodeToString(getBytes());
}
return this.cachedBase64;
}
@Override
public boolean isEmpty() {
return this.bytes == null || this.bytes.length == 0;
}
@Override
public String toString() {
return toBase64();
}
@Override
public int hashCode() {
if (this.bytes == null || this.bytes.length == 0) {
return 0;
}
return Arrays.hashCode(this.bytes);
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ByteSource) {
ByteSource bs = (ByteSource) o;
return Arrays.equals(getBytes(), bs.getBytes());
}
return false;
}
/**
* Returns a new {@code ByteSource} instance representing the specified string's
* bytes. The byte array is obtained assuming {@code UTF-8} encoding.
*
* @param string the string to represent as a {@code ByteSource} instance.
* @return a new {@code ByteSource} instance representing the specified string's
* bytes.
*/
public static ByteSource of(String string) {
return new ShiroByteSource(string);
}
}
|
[
"d05660@163.com"
] |
d05660@163.com
|
9b7771eb80b7ed19dd24ae3e11f30984055020e9
|
bbfc74a2500d4bc528939cc420819b0669158200
|
/src/main/java/com/intsof/pages/CreateAuthorizationPage.java
|
bfb92d28aaa72519a2ba263d922a06ac67d04bef
|
[] |
no_license
|
vinodmallah/CucumberBDDBDD
|
d1516b2bc9775070ba404b40bb623d06bde609a4
|
76a09c1fc8eccf9b1d75b9b66b8f0b10f8987554
|
refs/heads/main
| 2023-08-11T20:08:01.869233
| 2021-09-16T14:31:34
| 2021-09-16T14:31:34
| 404,648,366
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,970
|
java
|
package com.intsof.pages;
import java.util.List;
import java.util.Map;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import com.intsof.util.ElementUtil;
public class CreateAuthorizationPage {
private ElementUtil elementUtil;
private String initiation_FirstName;
private String initiation_LastName;
/************ CreateAuthorizationPage : Object Repository ***********/
private By pleaseWaitMessage = By.xpath("//span[contains(text(),'Please wait')]");
private By createAuthorizationIFrame = By.xpath(
"//div[contains(@id,'popup-container')]//div[contains(@class,'inlineFrame')]/iframe[@title='Content']");
private By createNewAuthorizationText = By.xpath("//span[contains(string(),'Create a new authorization')]");
private By manuallyInputEmpInfo_Radio = By.xpath(
"//label[contains(text(),'Manually input employee information')]/preceding-sibling::input[@type='radio']");
private By createAuthContinueButton = By
.xpath("//span[contains(text(),'Continue')]/parent::a[@class='af_button_link']");
private By firstNameNewAuthorization_InputField = By.id("fname::content");
private By lastNameNewAuthorization_InputField = By.id("lname::content");
private By newTransferAssignmentSelection = By.xpath("//span[contains(text(),'A new transfer or assignment')]");
private By employeeInformationHeader = By
.xpath("//span[contains(string(),'Employee Information')][@class='RXHeaderText af_outputLabel']");
private By authorizationType_RadioButton = By.id("aRegion:0:authorizationType101::content");
private By relocationType_Dropdown = By.id("aRegion:0:relocationPolicy::content");
private By originCity_TextField = By.id("aRegion:0:originCity::content");
private By originState_Dropdown = By.id("aRegion:0:originState::content");
private By originCountry_Dropdown = By.id("aRegion:0:originCountry::content");
private By destinatioCity_TextField = By.id("aRegion:0:destCity::content");
private By destinationState_Dropdown = By.id("aRegion:0:destinationState::content");
private By destinationCountry_Dropdown = By.id("aRegion:0:destCountry::content");
private By homeStatus_RadioButton = By.id("aRegion:0:homeStatus101::content");
private By assignmentType_Dropdown = By.id("aRegion:0:assignmentType::content");
private By authorizedBy_TextField = By.id("aRegion:0:authorizedBy::content");
private By submitToAires_Button = By.xpath("//span[contains(text(),'Submit to Aires')]");
/************ CreateAuthorizationPage class Constructor ***********/
public CreateAuthorizationPage(WebDriver driver) {
elementUtil = new ElementUtil(driver);
}
/********* Getter & Setter Methods for Initiation FirstName & LastName ********/
public String getInitiation_FirstName() {
return initiation_FirstName;
}
public void setInitiation_FirstName(String initiation_FirstName) {
this.initiation_FirstName = initiation_FirstName;
}
public String getInitiation_LastName() {
return initiation_LastName;
}
public void setInitiation_LastName(String initiation_LastName) {
this.initiation_LastName = initiation_LastName;
}
/**
* This method is used to create and authorization and select Manually input
* employee information Radio Button
*
* @param list
*/
public void inputNewAuthorizationInformationAndContinue(List<Map<String, String>> newEmployeeName) {
elementUtil.waitForFrameToLoad(createAuthorizationIFrame);
elementUtil.waitForVisibilityOfElement(createAuthorizationIFrame);
elementUtil.switchToFrame(createAuthorizationIFrame);
elementUtil.waitForVisibilityOfElement(createNewAuthorizationText);
elementUtil.selectRadioButton(manuallyInputEmpInfo_Radio);
elementUtil.click(createAuthContinueButton);
elementUtil.waitForVisibilityOfElement(firstNameNewAuthorization_InputField);
elementUtil.set(firstNameNewAuthorization_InputField, newEmployeeName.get(0).get("FirstName"));
setInitiation_FirstName(newEmployeeName.get(0).get("FirstName"));
elementUtil.set(lastNameNewAuthorization_InputField, newEmployeeName.get(0).get("LastName"));
setInitiation_LastName(newEmployeeName.get(0).get("LastName"));
elementUtil.click(createAuthContinueButton);
}
/**
* This method creates a new transfer or assignment and enter employee
* information
*
* @param employeeDetails
*/
public void enterInitiationFormDetails(List<Map<String, String>> employeeDetails) {
elementUtil.waitForVisibilityOfElement(newTransferAssignmentSelection);
elementUtil.click(newTransferAssignmentSelection);
try {
elementUtil.waitForInvisibilityOfElement(pleaseWaitMessage);
} catch (Exception e) {
System.out.println("Exception in PLease Wait......");
}
elementUtil.waitForVisibilityOfElement(employeeInformationHeader);
elementUtil.selectRadioButton(authorizationType_RadioButton);
elementUtil.selectByVisibleText(relocationType_Dropdown, employeeDetails.get(0).get("RelocationPolicy"));
elementUtil.set(originCity_TextField, employeeDetails.get(0).get("OriginCity"));
elementUtil.selectByVisibleText(originState_Dropdown, employeeDetails.get(0).get("OriginState"));
elementUtil.selectByVisibleText(originCountry_Dropdown, employeeDetails.get(0).get("OriginCountry"));
elementUtil.set(destinatioCity_TextField, employeeDetails.get(0).get("DestinationCity"));
elementUtil.selectByVisibleText(destinationState_Dropdown, employeeDetails.get(0).get("DestinationState"));
elementUtil.selectByVisibleText(destinationCountry_Dropdown, employeeDetails.get(0).get("DestinationCountry"));
elementUtil.selectRadioButton(homeStatus_RadioButton);
elementUtil.waitForVisibilityOfElement(assignmentType_Dropdown);
elementUtil.selectByVisibleText(assignmentType_Dropdown, employeeDetails.get(0).get("AssignmentType"));
elementUtil.set(authorizedBy_TextField, employeeDetails.get(0).get("AuthorizedBy"));
}
public void submitToAires() {
elementUtil.switchToDefaultContent();
elementUtil.click(submitToAires_Button);
}
}
|
[
"you@example.com"
] |
you@example.com
|
8b3c134e5580602f8b4dad912d4c75c890cc0ef0
|
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
|
/Code Snippet Repository/Hibernate/Hibernate7329.java
|
f7bd39dae8e4dfacfecc882ddcd9fd6dcd16f342
|
[] |
no_license
|
saber13812002/DeepCRM
|
3336a244d4852a364800af3181e03e868cf6f9f5
|
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
|
refs/heads/master
| 2023-03-16T00:08:06.473699
| 2018-04-18T05:29:50
| 2018-04-18T05:29:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 486
|
java
|
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getDefaultValue() == null) ? 0 : getDefaultValue().hashCode());
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
log.tracef(
"Calculated hashcode [%s] = %s (previous=%s, changed?=%s)",
this,
result,
previousHashCode,
!(previousHashCode == -1 || previousHashCode == result)
);
previousHashCode = result;
return result;
}
|
[
"Qing.Mi@my.cityu.edu.hk"
] |
Qing.Mi@my.cityu.edu.hk
|
1c36776f5ea54b490ea7c5cb4890684f2d0929c1
|
b1e51c74f25f3171ff9ec731e3e667c6969004dc
|
/springboot-shiro/src/main/java/com/choupangxia/shiro/controller/HelloController.java
|
b0c95336f3582a9afdeb3015fff06a84a433d78c
|
[] |
no_license
|
secbr/shiro
|
ab062ae59694d498c447aef984b0a72de05ade5c
|
c48cbee8fd1a0d362ead70386339bd957737b963
|
refs/heads/main
| 2023-03-03T23:22:07.892546
| 2021-02-01T07:13:50
| 2021-02-01T07:13:50
| 331,241,119
| 3
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,076
|
java
|
package com.choupangxia.shiro.controller;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.subject.Subject;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author sec
* @version 1.0
* @date 2021/1/27
**/
@RestController
public class HelloController {
@RequestMapping("/hello")
public String hello() {
System.out.println("Hello Shiro!");
return "Hello Shiro!";
}
@RequestMapping("/login")
public String toLogin() {
return "please login!";
}
@RequestMapping("/doLogin")
public void doLogin(String username, String password) {
Subject subject = SecurityUtils.getSubject();
try {
subject.login(new UsernamePasswordToken(username, password));
System.out.println("用户:" + username + ",登录成功!");
} catch (Exception e) {
System.out.println("登录异常" + e.getMessage());
}
}
}
|
[
"xinyoulingxi2008@126.com"
] |
xinyoulingxi2008@126.com
|
8e0e1f7bd5018eda1028bd796aff6fd5a3f9e283
|
c39b0a0e8a4010f1b1d8617bfb0f933bbc6460bf
|
/spring/How to get Auto-Generated Key with JdbcTemplate/src/main/java/com/javacreed/examples/spring/ExampleDao.java
|
58a7bba546e68a43f1298e23fdc241cde468cbc5
|
[] |
no_license
|
rkmishracs/java-creed-examples
|
4ac00308174acaaf46e0448dce7750166174b548
|
b5070604842dd8933ca4284a47a7144c8b1f22d7
|
refs/heads/master
| 2016-09-06T08:10:14.959217
| 2015-03-14T12:24:13
| 2015-03-14T12:24:13
| 42,683,378
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,897
|
java
|
/**
* Copyright 2012-2014 Java Creed.
*
* Licensed under the Apache License, Version 2.0 (the "<em>License</em>");
* 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.javacreed.examples.spring;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.PreparedStatementCreator;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springframework.jdbc.support.KeyHolder;
public class ExampleDao {
@Autowired
private JdbcTemplate jdbcTemplate;
public long addNew(final String name) {
final PreparedStatementCreator psc = new PreparedStatementCreator() {
@Override
public PreparedStatement createPreparedStatement(final Connection connection) throws SQLException {
final PreparedStatement ps = connection.prepareStatement("INSERT INTO `names` (`name`) VALUES (?)",
Statement.RETURN_GENERATED_KEYS);
ps.setString(1, name);
return ps;
}
};
// The newly generated key will be saved in this object
final KeyHolder holder = new GeneratedKeyHolder();
jdbcTemplate.update(psc, holder);
final long newNameId = holder.getKey().longValue();
return newNameId;
}
}
|
[
"albertattard@gmail.com"
] |
albertattard@gmail.com
|
8d75e2f61dbee452df1e46f053d805fdfbdd852d
|
7ecc25f3c8f4778e10bb6d876131f5e6cda94658
|
/teach-project/src/main/java/com/hlzt/project/mapper/TSocialDeptMapper.java
|
ea7cdd52294abf5bba296260daf47745139acdfa
|
[] |
no_license
|
holaJX/TEACH-CHECK
|
9b524d74829639aa9f860f3ac1e43ed0e569b667
|
b7b87e8c91ed34fce11ab3268b426d17e5fa5781
|
refs/heads/master
| 2023-06-19T10:07:18.263876
| 2021-07-15T09:37:57
| 2021-07-15T09:37:57
| 386,229,048
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,429
|
java
|
package com.hlzt.project.mapper;
import java.util.List;
import tk.mybatis.mapper.common.Mapper;
import com.hlzt.project.domain.TSocialDept;
/**
* 单位基本信息Mapper接口
*
* @author slx
* @date 2021-07-02
*/
public interface TSocialDeptMapper extends Mapper<TSocialDept>{
/**
* 查询单位基本信息
*
* @param deptId 单位基本信息ID
* @return 单位基本信息
*/
public TSocialDept selectTSocialDeptById(Long deptId);
/**
* 查询单位基本信息列表
*
* @param tSocialDept 单位基本信息
* @return 单位基本信息集合
*/
public List<TSocialDept> selectTSocialDeptList(TSocialDept tSocialDept);
/**
* 新增单位基本信息
*
* @param tSocialDept 单位基本信息
* @return 结果
*/
public int insertTSocialDept(TSocialDept tSocialDept);
/**
* 修改单位基本信息
*
* @param tSocialDept 单位基本信息
* @return 结果
*/
public int updateTSocialDept(TSocialDept tSocialDept);
/**
* 删除单位基本信息
*
* @param deptId 单位基本信息ID
* @return 结果
*/
public int deleteTSocialDeptById(Long deptId);
/**
* 批量删除单位基本信息
*
* @param deptIds 需要删除的数据ID
* @return 结果
*/
public int deleteTSocialDeptByIds(Long[] deptIds);
}
|
[
"823756689@qq.com"
] |
823756689@qq.com
|
91388f3e00649d230db5028db204c5a10252ec46
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-ws/results/MATH-32b-6-9-Single_Objective_GGA-WeightedSum/org/apache/commons/math3/geometry/partitioning/BSPTree_ESTest.java
|
35a720a709ad4a8346b9fb33f9c000765dbe25af
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 567
|
java
|
/*
* This file was automatically generated by EvoSuite
* Mon Mar 30 16:00:30 UTC 2020
*/
package org.apache.commons.math3.geometry.partitioning;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class BSPTree_ESTest extends BSPTree_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
b16d2a0f2a7a0e08602fd22b8e3cd3614a6e820a
|
e47823f99752ec2da083ac5881f526d4add98d66
|
/test_data/06_Lucene1.4.3/src/org/apache/lucene/demo/FileDocument.java
|
300256b0edd415f68418989fa4c398b469934816
|
[] |
no_license
|
Echtzeitsysteme/hulk-ase-2016
|
1dee8aca80e2425ab6acab18c8166542dace25cd
|
fbfb7aee1b9f29355a20e365f03bdf095afe9475
|
refs/heads/master
| 2020-12-24T05:31:49.671785
| 2017-05-04T08:18:32
| 2017-05-04T08:18:32
| 56,681,308
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,565
|
java
|
package org.apache.lucene.demo;
/**
* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.io.File;
import java.io.Reader;
import java.io.FileInputStream;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.document.DateField;
/** A utility for making Lucene Documents from a File. */
public class FileDocument {
/** Makes a document for a File.
<p>
The document has three fields:
<ul>
<li><code>path</code>--containing the pathname of the file, as a stored,
tokenized field;
<li><code>modified</code>--containing the last modified date of the file as
a keyword field as encoded by <a
href="lucene.document.DateField.html">DateField</a>; and
<li><code>contents</code>--containing the full contents of the file, as a
Reader field;
*/
public static Document Document(File f)
throws java.io.FileNotFoundException {
// make a new, empty document
Document doc = new Document();
// Add the path of the file as a field named "path". Use a Text field, so
// that the index stores the path, and so that the path is searchable
doc.add(Field.Text("path", f.getPath()));
// Add the last modified date of the file a field named "modified". Use a
// Keyword field, so that it's searchable, but so that no attempt is made
// to tokenize the field into words.
doc.add(Field.Keyword("modified",
DateField.timeToString(f.lastModified())));
// Add the contents of the file a field named "contents". Use a Text
// field, specifying a Reader, so that the text of the file is tokenized.
// ?? why doesn't FileReader work here ??
FileInputStream is = new FileInputStream(f);
Reader reader = new BufferedReader(new InputStreamReader(is));
doc.add(Field.Text("contents", reader));
// return the document
return doc;
}
private FileDocument() {}
}
|
[
"sven.peldszus@stud.tu-darmstadt.de"
] |
sven.peldszus@stud.tu-darmstadt.de
|
dd42bba2d873858a91fc4101e7a1b16c60804c2c
|
f567c98cb401fc7f6ad2439cd80c9bcb45e84ce9
|
/src/main/java/com/alipay/api/response/AlipayOpenDataItemSyncResponse.java
|
d526088d5f892676c75a423d1854fdd1399b4504
|
[
"Apache-2.0"
] |
permissive
|
XuYingJie-cmd/alipay-sdk-java-all
|
0887fa02f857dac538e6ea7a72d4d9279edbe0f3
|
dd18a679f7543a65f8eba2467afa0b88e8ae5446
|
refs/heads/master
| 2023-07-15T23:01:02.139231
| 2021-09-06T07:57:09
| 2021-09-06T07:57:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 663
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.open.data.item.sync response.
*
* @author auto create
* @since 1.0, 2019-01-07 20:51:15
*/
public class AlipayOpenDataItemSyncResponse extends AlipayResponse {
private static final long serialVersionUID = 5454913666717166485L;
/**
* 返回更新成功的外部id
*/
@ApiField("external_id")
private String externalId;
public void setExternalId(String externalId) {
this.externalId = externalId;
}
public String getExternalId( ) {
return this.externalId;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
cb681b0cbf17a41b066a833a65b05fd0e455f46f
|
6cb3fdc36b2e5fb53996ea8338bc1aff0e440bfa
|
/AndEngineExamplesModded/src/org/andengine/examples/adt/card/Color.java
|
4c0e5b712ede46b81a6c8939825bbb88bb1136bd
|
[] |
no_license
|
GMX-MAX/Funky-Domino
|
9b0cfdda0551061ae668d47ff450ebc3132fbb2f
|
263b281305b21b0061cfbe14e31c3606f5a92a7b
|
refs/heads/master
| 2021-01-16T21:55:53.928436
| 2012-03-01T16:48:44
| 2012-03-01T16:48:44
| 3,592,368
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,570
|
java
|
package org.andengine.examples.adt.card;
/**
* (c) 2010 Nicolas Gramlich
* (c) 2011 Zynga Inc.
*
* @author Nicolas Gramlich
* @since 18:59:33 - 18.06.2010
*/
public enum Color {
// ===========================================================
// Elements
// ===========================================================
/**
*
*/
CLUB, // Kreuz
/**
*
*/
DIAMOND,
/**
*
*/
HEART,
/**
*
*/
SPADE; // PIK
// ===========================================================
// Constants
// ===========================================================
// ===========================================================
// Fields
// ===========================================================
// ===========================================================
// Constructors
// ===========================================================
// ===========================================================
// Getter & Setter
// ===========================================================
// ===========================================================
// Methods from SuperClass/Interfaces
// ===========================================================
// ===========================================================
// Methods
// ===========================================================
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================
}
|
[
"guillaumepoiriermorency@gmail.com"
] |
guillaumepoiriermorency@gmail.com
|
75ac8e98e52319720dc5813c585df2119dc1c8de
|
e05d6c1fec35f39b466b625d0561adaffe113b29
|
/src/main/java/pl/clockworkjava/hotelreservation/jpa/App.java
|
1c130c6ba16ebf8dfd31d30bb86fcf7a66796dd5
|
[] |
no_license
|
Maro0107/Hibernate_Reservation
|
11164b108e70e2d831ed624cab15cf027dfef49b
|
57b0770bd9ec6f170969d2774f1eba448a5d4869
|
refs/heads/master
| 2023-06-20T14:54:01.946021
| 2021-07-15T12:18:11
| 2021-07-15T12:18:11
| 386,278,235
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,366
|
java
|
package pl.clockworkjava.hotelreservation.jpa;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import java.util.Arrays;
import java.util.List;
public class App {
private static EntityManagerFactory factory = Persistence.createEntityManagerFactory("thePersistenceUnit");
private static EntityManager em = factory.createEntityManager();
public static void main(String[] args) {
GuestRepository guestRepository = new GuestRepository(em);
guestRepository.createNewGuest("Paweł", 34);
// guestRepository.createNewGuest("Kinga", 37);
// guestRepository.createNewGuest("Alicja", 6);
// guestRepository.createNewGuest("Gabriel", 5);
em.getTransaction().begin();
em.flush();
em.clear();
em.getTransaction().commit(); // wrzucenie wszystkiego z PC do bazy danych i jego wyczyszczenie, by wrócić do "czystego" stanu.
// Guest ali = guestRepository.findById(3);
// System.out.println(ali);
// ali.setAge(7);
// System.out.println(ali);
// List select_g_from_guest_g = em.createQuery("SELECT g FROM Guest g").getResultList();
// System.out.println("--------------------------------");
// select_g_from_guest_g.forEach(quest -> System.out.println(quest));
}
}
|
[
"uzytkownik@kursGIT.pl"
] |
uzytkownik@kursGIT.pl
|
06ec9b60e73c0a514e5b39d57d85430fd6634ae4
|
2f497ce75def604941afb50657fbaca772bdabcd
|
/2021.02/src/n10214.java
|
1ebf2c74ee6b9c4804935bf315431c9a6a7fb412
|
[] |
no_license
|
winseung76/BOJ
|
2bbf7d0fdb475f76c83d6f868781e314e910941e
|
cee1d2ab42e926c436709b02080dd0aef80162bc
|
refs/heads/master
| 2023-06-25T11:17:55.596661
| 2021-07-04T08:21:06
| 2021-07-04T08:21:06
| 343,604,770
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 910
|
java
|
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
public class n10214 {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
int T = Integer.parseInt(br.readLine());
for (int i = 0; i < T; i++) {
int yonsei = 0;
int korea = 0;
for (int j = 0; j < 9; j++) {
String[] sarr = br.readLine().split(" ");
int Y = Integer.parseInt(sarr[0]);
int K = Integer.parseInt(sarr[1]);
if (Y > K)
yonsei++;
else if (Y < K)
korea++;
}
if (yonsei > korea)
bw.write("Yonsei\n");
else if (yonsei < korea)
bw.write("Korea\n");
else
bw.write("Draw\n");
}
bw.flush();
}
}
|
[
"winseung76@naver.com"
] |
winseung76@naver.com
|
6ea901c6a51acbe4cf0e8494f7758cd6eae773ea
|
139b430a122249efeb267dc4684101abafab1132
|
/app/src/main/java/com/rayanandisheh/peysepar/passenger/fragment/trip_new_fragment/Presenter.java
|
eaab948401463d832258c8f5d58dd695185c1905
|
[] |
no_license
|
mosayeb-masoumi/my_company_PS
|
703871de0bb63a3821a8d8b624a6bd5fe74b2643
|
c8d689318e361e6181b5497abb28ae8dbe4f1069
|
refs/heads/master
| 2020-06-05T21:32:54.716325
| 2019-06-18T14:37:19
| 2019-06-18T14:37:19
| 192,551,590
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,750
|
java
|
package com.rayanandisheh.peysepar.passenger.fragment.trip_new_fragment;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.Fragment;
import com.rayanandisheh.peysepar.passenger.R;
import com.rayanandisheh.peysepar.passenger.activities.main.MainActivity;
import com.rayanandisheh.peysepar.passenger.fragment.trip_confirmed_fragment.TripConfirmedFragment;
import com.rayanandisheh.peysepar.passenger.helpers.App;
import com.rayanandisheh.peysepar.passenger.helpers.Toaster;
public class Presenter implements Contract.Presenter {
private Context context;
private Contract.View view;
private Contract.Model model = new Model();
@Override
public void attachView(Context context, Contract.View view) {
this.view = view;
this.context = context;
model.attachPresenter(this,context);
}
@Override
public void viewLoaded() {
if (App.newTabLayoutListSuccess) {
view.showSwipeRefresh();
model.requesrListNewTabLayout();
} else if (App.listNewTabLayoutTrip.size() > 0) {
// view.setAdapter();
view.hideImg_noItem();
} else if(App.listNewTabLayoutTrip.size()==0){
view.showImg_noItem();
}
}
@Override
public void swpNewTabLayoutPressed() {
view.showSwipeRefresh();
model.requesrListNewTabLayout();
}
@Override
public void loadDataResult(int result) {
// view.stopProgressLoading();
view.hideSwipeRefresh();
if (result == -4)
Toaster.shorter(context.getString(R.string.serverFaield));
else if (result == -5)
Toaster.shorter(context.getString(R.string.connectionFaield));
else if(result==0)
view.showImg_noItem();
else if(result==1){
view.setAdapter();
view.hideImg_noItem();
if(App.listNewTabLayoutTrip.size()>0)
view.hideImg_noItem();
else
view.showImg_noItem();
}
}
@Override
public void cancelNewAlertTabLayoutTripManagement(int iOfficialTrip) {
view.showSwipeRefresh();
model.requestCancelNewAlertTabLayoutTripManagement(iOfficialTrip);
}
@Override
public void cencelTripAlertNewTabLayoutResult(int result) {
view.hideSwipeRefresh();
if (result == -4) {
Toaster.shorter(context.getString(R.string.serverFaield));
} else if (result == -5) {
Toaster.shorter(context.getString(R.string.connectionFaield));
} else{
Toaster.shorter("سفر شما با موفقیت لغو گردید");
//to update list
model.requesrListNewTabLayout();
}
}
@Override
public void confirmNewAlertTabLayoutTripManagement(int iOfficialTrip) {
view.showSwipeRefresh();
model.requestConfirmNewAlertTabLayoutTripManagement(iOfficialTrip);
}
@Override
public void confirmTripAlertNewTabLayoutResult(int result) {
view.hideSwipeRefresh();
if(result == 1){
Toaster.shorter(App.data.getMessage());
view.showSwipeRefresh();
model.requesrListNewTabLayout();
// context.startActivity(new Intent(context,MainActivity.class));
// context.startActivity(new Intent(context,TripConfirmedFragment.class));
}else if(result== -2){
Toaster.shorter(App.data.getMessage());
}else if(result== -1){
Toaster.shorter(App.data.getMessage());
}else if(result==-5){
Toaster.shorter(context.getString(R.string.connectionFaield));
}
}
}
|
[
"mosayeb.masoumi.co@gmail.com"
] |
mosayeb.masoumi.co@gmail.com
|
ff6943a8c5830a1b83ecc41a7261bdca21e43e58
|
35815a82c5d1119a30e9a1ee76b070ab81981cf2
|
/RequestPro/src/com/cdsxt/action/DownloadServlet.java
|
3a78424d55cead8fd370a84a2eb8affa10ef3efd
|
[] |
no_license
|
BinYangXian/mid
|
83211ffb0ff521a2e709bfc763a9bfd4e725e64d
|
39f1fa21584008177ee1da32ff72fa4560d98aa6
|
refs/heads/master
| 2021-01-19T17:20:02.685420
| 2017-02-19T12:43:52
| 2017-02-19T12:43:52
| 82,445,612
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,306
|
java
|
package com.cdsxt.action;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class DownloadServlet extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doPost(request, response);
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
//下载分为两步 1.设置下载响应头 2.将资源以流的方式输出
//响应头Content-Disposition attachment; filename="文件名"
String fileName=new String("四级英语.doc".getBytes("utf-8"),"iso8859-1");
response.setHeader("Content-Disposition", "attachment; filename="+fileName);
//将资源以流的方式输出
OutputStream out=response.getOutputStream();
InputStream in=new FileInputStream(new File("d:/sjyy.doc"));
byte[] b=new byte[8*1024];
int temp=0;
while((temp=in.read(b))!=-1){
out.write(b, 0, temp);
}
out.flush();
out.close();
in.close();
}
}
|
[
"350852832@qq.com"
] |
350852832@qq.com
|
1058a927bef1851215b96bf98f3bb37b48d3983e
|
0e0dae718251c31cbe9181ccabf01d2b791bc2c2
|
/archive/SCT1/tags/SCT_1.2.0_RELEASE/com.yakindu.statechart.editing.ui/plugins/org.mda4e.statemachine.contribution.diagram/src/org/mda4e/statemachine/contribution/providers/OurStatemachineDocumentProvider.java
|
7d2810ed3ed62c5999ab6f66fabc9f2b330e5561
|
[] |
no_license
|
huybuidac20593/yakindu
|
377fb9100d7db6f4bb33a3caa78776c4a4b03773
|
304fb02b9c166f340f521f5e4c41d970268f28e9
|
refs/heads/master
| 2021-05-29T14:46:43.225721
| 2015-05-28T11:54:07
| 2015-05-28T11:54:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,041
|
java
|
/**
* Copyright (c) 2006-2009 committers of mda4e and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* committers of mda4e (http://www.mda4e.org/) - initial API and implementation
*
*/
package org.mda4e.statemachine.contribution.providers;
import java.util.Iterator;
import java.util.UUID;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.gmf.runtime.common.core.command.CommandResult;
import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocument;
import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
import org.eclipse.ui.IEditorReference;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.mda4e.statemachine.contribution.commands.CmdResetIDs;
import org.mda4e.statemachine.contribution.tools.StaticMethods;
import statemachine.diagram.part.StatemachineDiagramEditor;
import statemachine.diagram.part.StatemachineDocumentProvider;
public class OurStatemachineDocumentProvider extends
StatemachineDocumentProvider {
public static final String ID = "org.mda4e.statemachine.contribution.providers.OurStatemachineDocumentProvider";
private void resetID(IProgressMonitor monitor) throws ExecutionException {
IWorkbenchPage page = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getActivePage();
StatemachineDiagramEditor editor = getEditor(page);
if (editor != null){
new CmdResetIDs(editor, "Reset ID", null).execute(
monitor, null);
}
}
/**
* Method for resolve
* @author Benjamin Schwertfeger
* @param page
* @return
*/
private StatemachineDiagramEditor getEditor(IWorkbenchPage page) {
if (page.getActiveEditor() instanceof StatemachineDiagramEditor) {
return (StatemachineDiagramEditor) page.getActiveEditor();
}
for (IEditorReference editor : page.getEditorReferences()) {
if (editor.getEditor(true) instanceof StatemachineDiagramEditor) {
boolean found = false;
for (Iterator<?> iter = getConnectedElements(); iter.hasNext();) {
try {
if (iter.next().equals(editor.getEditorInput())) {
found = true;
}
} catch (PartInitException e){}
}
if (found) {
return (StatemachineDiagramEditor) editor.getEditor(true);
}
}
}
return null;
}
private void setProperties(IProgressMonitor monitor)
throws ExecutionException {
final String name;
int last;
IWorkbenchPage page = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getActivePage();
final StatemachineDiagramEditor editor = getEditor(page);
if (editor != null) {
last = editor.getEditorInput().getName().indexOf('.', 0);
name = editor.getEditorInput().getName().substring(0, last);
new AbstractTransactionalCommand(editor.getEditingDomain(),
"Set UUID", null) {
protected CommandResult doExecuteWithResult(
IProgressMonitor arg0, IAdaptable arg1)
throws ExecutionException {
StaticMethods.getStatechart(editor).setUUID(
UUID.randomUUID().toString());
StaticMethods.getStatechart(editor).setName(name);
return CommandResult.newOKCommandResult();
}
}.execute(monitor, null);
}
}
@Override
protected void doSaveDocument(IProgressMonitor monitor, Object element,
IDocument document, boolean overwrite) throws CoreException {
try {
resetID(monitor);
setProperties(monitor);
} catch (ExecutionException e) {
e.printStackTrace();
}
super.doSaveDocument(monitor, element, document, overwrite);
}
}// OurStatemachineDocumentProvider
|
[
"terfloth@itemis.de"
] |
terfloth@itemis.de
|
02a21818353fffcb313a29c907e7c8c42963192d
|
180e78725121de49801e34de358c32cf7148b0a2
|
/dataset/protocol1/kylin/learning/5449/NotFoundException.java
|
92bd3d89ee1a8a61eac757848152e554033db4fa
|
[] |
no_license
|
ASSERT-KTH/synthetic-checkstyle-error-dataset
|
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
|
40c057e1669584bfc6fecf789b5b2854660222f3
|
refs/heads/master
| 2023-03-18T12:50:55.410343
| 2019-01-25T09:54:39
| 2019-01-25T09:54:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,211
|
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.kylin.rest.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
/**
* @author xduo
*
*/
@ResponseStatus(value = HttpStatus .NOT_FOUND)
public class NotFoundException extends RuntimeException {
private static final long serialVersionUID = 1L;
public NotFoundException(String s) {
super(s);
}
}
|
[
"bloriot97@gmail.com"
] |
bloriot97@gmail.com
|
af10a7dbdefa63e8c9e23c8675b6fbf910bde646
|
53d677a55e4ece8883526738f1c9d00fa6560ff7
|
/com/tencent/mm/plugin/sns/abtest/NotInterestMenu.java
|
a58c7d795e3a4f7b905c10683d8384df625a9a14
|
[] |
no_license
|
0jinxing/wechat-apk-source
|
544c2d79bfc10261eb36389c1edfdf553d8f312a
|
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
|
refs/heads/master
| 2020-06-07T20:06:03.580028
| 2019-06-21T09:17:26
| 2019-06-21T09:17:26
| 193,069,132
| 9
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,057
|
java
|
package com.tencent.mm.plugin.sns.abtest;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.ListView;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.sns.storage.n;
import com.tencent.mm.ui.v;
public class NotInterestMenu extends LinearLayout
{
private static int[] qCt = { 2131303656, 2131303654, 2131303655 };
private Context mContext;
private n qBY;
private ListView qCs;
private NotInterestMenu.c qCu;
private NotInterestMenu.b qCv;
public NotInterestMenu(Context paramContext)
{
super(paramContext);
AppMethodBeat.i(35667);
this.mContext = null;
this.qBY = null;
this.qCu = null;
this.qCv = null;
this.mContext = paramContext;
init();
AppMethodBeat.o(35667);
}
public NotInterestMenu(Context paramContext, AttributeSet paramAttributeSet)
{
super(paramContext, paramAttributeSet);
AppMethodBeat.i(35668);
this.mContext = null;
this.qBY = null;
this.qCu = null;
this.qCv = null;
this.mContext = paramContext;
init();
AppMethodBeat.o(35668);
}
private void init()
{
AppMethodBeat.i(35669);
v.hu(this.mContext).inflate(2130970310, this);
this.qCs = ((ListView)findViewById(2131826365));
this.qCs.setAdapter(new NotInterestMenu.a(this));
this.qCs.setOnItemClickListener(new NotInterestMenu.1(this));
AppMethodBeat.o(35669);
}
public void setOnClickMenuListener(NotInterestMenu.b paramb)
{
this.qCv = paramb;
}
public void setOnSelectMenuItemListener(NotInterestMenu.c paramc)
{
this.qCu = paramc;
}
public void setSnsInfo(n paramn)
{
this.qBY = paramn;
}
}
/* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes3-dex2jar.jar
* Qualified Name: com.tencent.mm.plugin.sns.abtest.NotInterestMenu
* JD-Core Version: 0.6.2
*/
|
[
"172601673@qq.com"
] |
172601673@qq.com
|
e5f25e67273839e05e00d4c452807e3d5daea7c1
|
f43f09457e83ee5c7600d2e9c2f402674db3b81c
|
/lesson.57-rest-session-filters/src/main/java/app/core/models/Person.java
|
9aad380f9335841ca7353290e66dcb60f2403c1d
|
[] |
no_license
|
dankosorkin/822-124
|
73d05271f079df319284234aa1c8fdeb839ea4e2
|
18352dbc5d14f2c7607e37045de10f97a4c5b8b4
|
refs/heads/master
| 2023-03-03T13:45:18.492132
| 2021-02-15T14:04:50
| 2021-02-15T14:04:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 990
|
java
|
package app.core.models;
import java.util.Objects;
public class Person {
private int id;
private String name;
private int age;
public Person() {
// TODO Auto-generated constructor stub
}
public Person(int id, String name, int age) {
super();
this.id = id;
this.name = name;
this.age = age;
}
public int getId() {
return id;
}
public String getName() {
return name;
}
public int getAge() {
return age;
}
public void setId(int id) {
this.id = id;
}
public void setName(String name) {
this.name = name;
}
public void setAge(int age) {
this.age = age;
}
@Override
public String toString() {
return "Person [id=" + id + ", name=" + name + ", age=" + age + "]";
}
@Override
public int hashCode() {
return Objects.hash(id);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Person)) {
return false;
}
Person other = (Person) obj;
return id == other.id;
}
}
|
[
"eldarba@gmail.com"
] |
eldarba@gmail.com
|
426c03e2e919080c713547bcbd138995463e200c
|
bb85a06d3fff8631f5dca31a55831cd48f747f1f
|
/src/main/business/com/goisan/educational/exam/service/impl/TestPaperAnalysisServiceImpl.java
|
24a9739912cc1cbf97b87f71fcc8acac5c20bda1
|
[] |
no_license
|
lqj12267488/Gemini
|
01e2328600d0dfcb25d1880e82c30f6c36d72bc9
|
e1677dc1006a146e60929f02dba0213f21c97485
|
refs/heads/master
| 2022-12-23T10:55:38.115096
| 2019-12-05T01:51:26
| 2019-12-05T01:51:26
| 229,698,706
| 0
| 0
| null | 2022-12-16T11:36:09
| 2019-12-23T07:20:16
|
Java
|
UTF-8
|
Java
| false
| false
| 1,201
|
java
|
package com.goisan.educational.exam.service.impl;
import com.goisan.educational.exam.bean.TestPaperAnalysis;
import com.goisan.educational.exam.dao.TestPaperAnalysisDao;
import com.goisan.educational.exam.service.TestPaperAnalysisService;
import com.goisan.system.bean.BaseBean;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class TestPaperAnalysisServiceImpl implements TestPaperAnalysisService {
@Resource
private TestPaperAnalysisDao testPaperAnalysisDao;
public List<BaseBean> getTestPaperAnalysisList(BaseBean baseBean) {
return testPaperAnalysisDao.getTestPaperAnalysisList(baseBean);
}
public void saveTestPaperAnalysis(BaseBean baseBean) {
testPaperAnalysisDao.saveTestPaperAnalysis(baseBean);
}
public TestPaperAnalysis getTestPaperAnalysisById(String id) {
return testPaperAnalysisDao.getTestPaperAnalysisById(id);
}
public void updateTestPaperAnalysis(BaseBean baseBean) {
testPaperAnalysisDao.updateTestPaperAnalysis(baseBean);
}
public void delTestPaperAnalysis(String id) {
testPaperAnalysisDao.delTestPaperAnalysis(id);
}
}
|
[
"1240414272"
] |
1240414272
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.