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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a24cdcb643003a1efe216e3fb3a4e73fd5be898
|
66581bc32744f3a30be77c7638a534f024daddb6
|
/sakai-mini/2.8.0/sitestats/sitestats-api/src/java/org/sakaiproject/sitestats/api/Stat.java
|
41e4b4836a05f7d05ebaa181a6c0d29f23289cf2
|
[
"ECL-2.0"
] |
permissive
|
lijiangt/sakai
|
087be33a4f20fe199458fe6a4404f37c613f3fa2
|
2647ef7e93617e33d53b1756918e64502522636b
|
refs/heads/master
| 2021-01-10T08:44:39.756518
| 2012-03-05T14:40:08
| 2012-03-05T14:40:08
| 36,716,620
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,857
|
java
|
/**
* $URL: https://source.sakaiproject.org/svn/sitestats/tags/sitestats-2.2.0/sitestats-api/src/java/org/sakaiproject/sitestats/api/Stat.java $
* $Id: Stat.java 72172 2009-09-23 00:48:53Z arwhyte@umich.edu $
*
* Copyright (c) 2006-2009 The Sakai Foundation
*
* Licensed under the Educational Community 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.osedu.org/licenses/ECL-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.sakaiproject.sitestats.api;
import java.util.Date;
/**
* Represents common fields of records from the SST_EVENTS and SST_RESOURCES tables.
* @author Nuno Fernandes
*/
public interface Stat {
/** Get the db record id. */
public long getId();
/** Set the db record id. */
public void setId(long id);
/** Get the user Id this record refers to. */
public String getUserId();
/** Set the user Id this record refers to. */
public void setUserId(String userId);
/** Get the context (site Id) this record refers to. */
public String getSiteId();
/** Set the context (site Id) this record refers to. */
public void setSiteId(String siteId);
/** Get the total value. */
public long getCount();
/** Set the total value. */
public void setCount(long count);
/** Get the date this record refers to. Only year,month and day are important. */
public Date getDate();
/** Set the date this record refers to. Only year,month and day are important. */
public void setDate(Date date);
}
|
[
"lijiangt@gmail.com"
] |
lijiangt@gmail.com
|
1bb446df06f5b70cf92cd14ab6edbc759ce928af
|
69040d2ad1b09341df198deb4822fde814eccd52
|
/src/main/java/RingOfDestiny/summon/NullSummon.java
|
8c76ed3ec97389879898d247a9024bc018286fef
|
[] |
no_license
|
Rita-Bernstein/RingOfDestiny
|
69feecf461541ed2c585c181c6dde6a16d39af52
|
788da2b2d11c2393288506b3e04e6d5da1a16949
|
refs/heads/master
| 2023-07-16T20:56:30.160192
| 2021-08-31T17:16:55
| 2021-08-31T17:16:55
| 343,334,965
| 3
| 3
| null | 2021-05-24T08:28:52
| 2021-03-01T08:01:25
|
Java
|
UTF-8
|
Java
| false
| false
| 1,132
|
java
|
package RingOfDestiny.summon;
import RingOfDestiny.RingOfDestiny;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.esotericsoftware.spine.*;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.core.Settings;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.helpers.Hitbox;
import com.megacrit.cardcrawl.vfx.TintEffect;
import static com.megacrit.cardcrawl.core.AbstractCreature.sr;
public class NullSummon extends AbstractSummon {
public static final String ID = RingOfDestiny.makeID("NullSummon");
public NullSummon() {
super(ID);
this.hb_x = 0.0f * Settings.scale;
this.hb_y = 0.0f * Settings.scale;
this.hb_w = 160.0f;
this.hb_h = 160.0f;
this.hb = new Hitbox(this.hb_w, this.hb_h);
}
@Override
public void attackAnimation() {
}
@Override
public void randomAttack(int amount) {
}
@Override
public void onSacrifice() {
}
}
|
[
"13536709069@163.com"
] |
13536709069@163.com
|
f0baaa32744e337c50702442a2f5ec1902a378c2
|
ccb80fd76f16884ab6c3b28998a3526ac38ec321
|
/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/ae/DefaultJCasTermAnnotator.java
|
b8cfe837b0a329c597db23f2ffcbb8da22828b60
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
apache/ctakes
|
5d5c35a7c8c906e21d52488396adeb40ebd7034e
|
def3dea5602945dfbec260d4faaabfbc0a2a2ad4
|
refs/heads/main
| 2023-07-02T18:28:53.754174
| 2023-05-18T00:00:51
| 2023-05-18T00:00:51
| 26,951,043
| 97
| 77
|
Apache-2.0
| 2022-10-18T23:28:24
| 2014-11-21T08:00:09
|
Java
|
UTF-8
|
Java
| false
| false
| 5,781
|
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.ctakes.dictionary.lookup2.ae;
import org.apache.ctakes.core.config.ConfigParameterConstants;
import org.apache.ctakes.core.pipeline.PipeBitInfo;
import org.apache.ctakes.core.util.collection.CollectionMap;
import org.apache.ctakes.dictionary.lookup2.dictionary.RareWordDictionary;
import org.apache.ctakes.dictionary.lookup2.term.RareWordTerm;
import org.apache.ctakes.dictionary.lookup2.textspan.DefaultTextSpan;
import org.apache.ctakes.dictionary.lookup2.textspan.TextSpan;
import org.apache.ctakes.dictionary.lookup2.util.FastLookupToken;
import org.apache.uima.analysis_engine.AnalysisEngineDescription;
import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.resource.ResourceInitializationException;
import java.util.Collection;
import java.util.List;
/**
* A direct string match using phrase permutations
* Author: SPF
* Affiliation: CHIP-NLP
* Date: 11/19/13
*/
@PipeBitInfo(
name = "Dictionary Lookup (Default)",
description = "Annotates clinically-relevant terms. Terms must match dictionary entries exactly.",
dependencies = { PipeBitInfo.TypeProduct.SENTENCE, PipeBitInfo.TypeProduct.BASE_TOKEN },
products = PipeBitInfo.TypeProduct.IDENTIFIED_ANNOTATION
)
public class DefaultJCasTermAnnotator extends AbstractJCasTermAnnotator {
/**
* {@inheritDoc}
*/
@Override
public void findTerms( final RareWordDictionary dictionary,
final List<FastLookupToken> allTokens,
final List<Integer> lookupTokenIndices,
final CollectionMap<TextSpan, Long, ? extends Collection<Long>> termsFromDictionary ) {
Collection<RareWordTerm> rareWordHits;
for ( Integer lookupTokenIndex : lookupTokenIndices ) {
final FastLookupToken lookupToken = allTokens.get( lookupTokenIndex );
rareWordHits = dictionary.getRareWordHits( lookupToken );
if ( rareWordHits == null || rareWordHits.isEmpty() ) {
continue;
}
for ( RareWordTerm rareWordHit : rareWordHits ) {
if ( rareWordHit.getText().length() < _minimumLookupSpan ) {
continue;
}
if ( rareWordHit.getTokenCount() == 1 ) {
// Single word term, add and move on
termsFromDictionary.placeValue( lookupToken.getTextSpan(), rareWordHit.getCuiCode() );
continue;
}
final int termStartIndex = lookupTokenIndex - rareWordHit.getRareWordIndex();
if ( termStartIndex < 0 || termStartIndex + rareWordHit.getTokenCount() > allTokens.size() ) {
// term will extend beyond window
continue;
}
final int termEndIndex = termStartIndex + rareWordHit.getTokenCount() - 1;
if ( isTermMatch( rareWordHit, allTokens, termStartIndex, termEndIndex ) ) {
final int spanStart = allTokens.get( termStartIndex ).getStart();
final int spanEnd = allTokens.get( termEndIndex ).getEnd();
termsFromDictionary.placeValue( new DefaultTextSpan( spanStart, spanEnd ), rareWordHit.getCuiCode() );
}
}
}
}
/**
* Hopefully the jit will inline this method
*
* @param rareWordHit rare word term to check for match
* @param allTokens all tokens in a window
* @param termStartIndex index of first token in allTokens to check
* @param termEndIndex index of last token in allTokens to check
* @return true if the rare word term exists in allTokens within the given indices
*/
public static boolean isTermMatch( final RareWordTerm rareWordHit, final List<FastLookupToken> allTokens,
final int termStartIndex, final int termEndIndex ) {
final String[] hitTokens = rareWordHit.getTokens();
int hit = 0;
for ( int i = termStartIndex; i < termEndIndex + 1; i++ ) {
if ( hitTokens[ hit ].equals( allTokens.get( i ).getText() )
|| hitTokens[ hit ].equals( allTokens.get( i ).getVariant() ) ) {
// the normal token or variant matched, move to the next token
hit++;
continue;
}
// the token normal didn't match and there is no matching variant
return false;
}
// some combination of token and variant matched
return true;
}
static public AnalysisEngineDescription createAnnotatorDescription() throws ResourceInitializationException {
return AnalysisEngineFactory.createEngineDescription( DefaultJCasTermAnnotator.class );
}
static public AnalysisEngineDescription createAnnotatorDescription( final String descriptorPath )
throws ResourceInitializationException {
return AnalysisEngineFactory.createEngineDescription( DefaultJCasTermAnnotator.class,
ConfigParameterConstants.PARAM_LOOKUP_XML, descriptorPath );
}
}
|
[
"sean.finan@childrens.harvard.edu"
] |
sean.finan@childrens.harvard.edu
|
c5f86e43ea7d00da98e92c88e5b3b59ec397a478
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/23/23_1dd588a5711e2c9d53a10008b64ef29a30c125ec/Generate/23_1dd588a5711e2c9d53a10008b64ef29a30c125ec_Generate_t.java
|
4518584cb6cffb2b88168fc8f90fdf674f7924e8
|
[] |
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,681
|
java
|
/**
*
* Copyright 2010, Lawrence McAlpin.
*
*
* 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 play.modules.scaffold;
import java.io.File;
import java.util.List;
import javax.persistence.GeneratedValue;
import play.Logger;
import play.Play;
import play.i18n.MessagesPlugin;
import play.modules.scaffold.entity.Entity;
import play.modules.scaffold.entity.PersistenceStrategy;
import play.modules.scaffold.generator.DatabaseAccessScaffolding;
import play.modules.scaffold.generator.ScaffoldingGenerator;
import play.modules.scaffold.utils.Fields;
/**
* Processes the scaffold:gen command. This command generates the scaffolding
* for a project, creating a rudimentary Application.index template, layout, and
* basic CRUD screens.
*
* @author Lawrence McAlpin
*/
public class Generate {
private static final String EXCLUDE = "--exclude";
private static final String INCLUDE = "--include";
private static final String OVERWRITE = "--overwrite";
private static final String WITH_LAYOUT = "--with-layout";
private static final String WITH_LOGIN = "--with-login";
private static final String ALL = "--all";
private static final String INVALID_MODELPATTERN = "Invalid pattern, provide a text string with optional '*' wildcard";
public static void main(String[] args) throws Exception {
// initialize Play!
File root = new File(System.getProperty("application.path"));
Play.init(root, System.getProperty("play.id", ""));
Thread.currentThread().setContextClassLoader(Play.classloader);
MessagesPlugin plugin = new MessagesPlugin();
plugin.onApplicationStart();
// default options
boolean forceOverwrite = false;
String includeRegEx = null;
String excludeRegEx = null;
boolean includeLayout = false;
boolean includeLogin = false;
// interpret command line arguments
String gettingArgumentsForCommand = null;
for (String arg : args) {
if (gettingArgumentsForCommand != null) {
if (gettingArgumentsForCommand.equalsIgnoreCase(INCLUDE)) {
gettingArgumentsForCommand = INCLUDE;
if (arg.isEmpty()) {
Logger.warn(INCLUDE + ": " + INVALID_MODELPATTERN);
System.exit(-1);
}
includeRegEx = arg;
Logger.info("--include: Including files that match: %s",
includeRegEx);
} else if (gettingArgumentsForCommand.equalsIgnoreCase(EXCLUDE)) {
gettingArgumentsForCommand = EXCLUDE;
if (arg.isEmpty()) {
Logger.warn(EXCLUDE + ": " + INVALID_MODELPATTERN);
System.exit(-1);
}
excludeRegEx = arg;
Logger.info("--exclude: Skipping files that match: %s",
excludeRegEx);
}
gettingArgumentsForCommand = null;
continue;
}
String lowerArg = arg.toLowerCase();
if (arg.startsWith("--")) {
if (lowerArg.equals(OVERWRITE)) {
forceOverwrite = true;
Logger.info("--overwrite: We will force overwrite target files");
} else if (lowerArg.equalsIgnoreCase(INCLUDE)) {
gettingArgumentsForCommand = INCLUDE;
} else if (lowerArg.equalsIgnoreCase(EXCLUDE)) {
gettingArgumentsForCommand = EXCLUDE;
} else if (lowerArg.equalsIgnoreCase(WITH_LAYOUT)) {
includeLayout = true;
} else if (lowerArg.equalsIgnoreCase(WITH_LOGIN)) {
includeLogin = true;
} else if (lowerArg.equalsIgnoreCase(ALL)) {
forceOverwrite = true;
includeLayout = true;
includeLogin = true;
} else {
Logger.warn("Invalid argument: %s", arg);
System.exit(-1);
}
}
}
// validate flags
if (includeLogin) {
try {
Class.forName("controllers.Secure", false, Play.classloader);
} catch (ClassNotFoundException e) {
Logger.warn(" ! controllers.Secure could not be found");
Logger.warn(" ! check application.conf to ensure module.secure is imported");
includeLogin = false;
}
}
// Locate domain model classes that we can process.
// Currently, we only support classes that extend the
// play.db.jpa.Model or siena.Model classes.
List<Class> classes = Play.classloader.getAllClasses();
ScaffoldingGenerator generator = new ScaffoldingGenerator();
generator.setForceOverwrite(forceOverwrite);
generator.setIncludeLayout(includeLayout);
generator.setIncludeLogin(includeLogin);
for (Class clazz : classes) {
// If this model is of a supported type, queue it up
// so the ScaffoldGenerator will create its controller
// and views.
PersistenceStrategy persistenceStrategy = PersistenceStrategy.forModel(clazz);
if (persistenceStrategy != null) {
String simpleName = clazz.getSimpleName();
boolean includeEntity = false;
// by default, include all entities if no --include= value is
// specified
if (includeRegEx == null) {
includeEntity = true;
}
// if an --include= value is specified, include only the models
// that match
if (includeRegEx != null && match(simpleName, includeRegEx)) {
includeEntity = true;
}
// always exclude models that match the --exclude= parameter
if (excludeRegEx != null && match(simpleName, excludeRegEx)) {
includeEntity = false;
}
if (includeEntity) {
Entity entity = new Entity(clazz);
// validate known limitations
if (persistenceStrategy == PersistenceStrategy.PURE_JPA) {
String idField = entity.getIdField();
if (idField == null) {
Logger.warn("Can not process %s because it needs an @Id annotated column", simpleName);
continue;
}
if (!Fields.annotations(clazz, idField).contains(GeneratedValue.class)) {
Logger.warn("Can not process %s because key must be auto-generated (use @GeneratedValue)", simpleName);
continue;
}
}
// we appear to be good to go!
generator.addEntity(entity);
} else {
Logger.info("Skipping %s", simpleName);
}
}
}
generator.generate();
}
// Does simple matching: you can add an asterisk to match "any"
// text. Matching is case insensitive.
public static boolean match(String text, String pattern) {
String normalizedText = text.toLowerCase();
String normalizedPattern = pattern.toLowerCase();
String[] subsections = normalizedPattern.split("[\\*~]");
int section = 0;
for (String subsection : subsections) {
int idx = normalizedText.indexOf(subsection);
if (idx == -1) {
return false;
}
// if we don't start with a wildcard, the first matched section must be at index 0
if (section == 0 && (!(normalizedPattern.startsWith("*") || normalizedPattern.startsWith("~")))) {
if (idx != 0) {
return false;
}
}
// if we don't end with a wildcard, the first matched section must be at index 0
if (section == subsections.length-1 && (!(normalizedPattern.endsWith("*") || normalizedPattern.endsWith("~")))) {
if (!normalizedText.endsWith(subsection)) {
return false;
}
}
normalizedText = normalizedText
.substring(idx + subsection.length());
section++;
}
return true;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
50072ff406aa5a2c789db739e04d0dab1717f7b8
|
4bfedfe1ef1cd14f03cfaa2b76a54cc307cb75a3
|
/cs179e/cs179e/Compiler/src/parsing/ast/visitor/IndentPrinter.java
|
cc65ed42f83eaa951aab6136cf3495fcfb4963f8
|
[] |
no_license
|
XiaoLi0614/Secure_Partition
|
ad2c2b57c2eeb876bbc76214af2b09fbcd41acd9
|
5e5c519b9a9f2e924d647507d0049a8b2a38b268
|
refs/heads/master
| 2023-08-22T01:06:59.272088
| 2021-09-21T19:06:27
| 2021-09-21T19:06:27
| 303,326,552
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,805
|
java
|
package parsing.ast.visitor;
import parsing.ast.tree.CompilationUnit;
import parsing.ast.tree.List;
import parsing.ast.tree.Node;
import parsing.ast.tree.Token;
import java.util.Iterator;
/**
* User: Mohsen's Desktop
* Date: Aug 27, 2009
*/
public class IndentPrinter extends DepthFirstSearchVisitor {
private CompilationUnit compilationUnit;
private String out = "";
static class Counter {
private int c;
Counter(int c) { this.c = c; }
public int inc() { c++; return get(); }
public int dec() { c--; return get(); }
private int get() { return c; }
}
final Counter indentCount = new Counter(0);
public IndentPrinter(CompilationUnit compilationUnit) {
this.compilationUnit = compilationUnit;
setPre(
new Callable() {
public void run(Node node) {
print(node.getClass().getSimpleName() + "\n");
indentCount.inc();
}
}
);
setIn(new InCallable() {
public void run(Node node, int no) {
indentPrint(node.getClass().getFields()[no].getName() + ": ");
}
});
setPost(
new Callable() {
public void run(Node node) {
indentCount.dec();
}
}
);
}
private void print(String s) {
out += s;
}
private void indentPrint(String s) {
int c = indentCount.get();
for (int i = 0; i < c; i++) {
print("\t");
}
print(s);
}
public String print() {
compilationUnit.accept(this);
return out;
}
//------------------------------------------------------------
// Visits
public void visit(List list) {
pre.run(list);
Iterator iterator = list.iterator();
int i = 0;
while (iterator.hasNext()) {
Node node = (Node)iterator.next();
indentPrint("[" + i + "]: ");
node.accept(this);
i++;
}
post.run(list);
}
public void visit(Token token) {
print(" \"" + token.toString() + "\"\n");
}
}
|
[
"xli289@ucr.edu"
] |
xli289@ucr.edu
|
451281b20f4715accca46ac940ad4c17e27e9163
|
70daf318d027f371ada3abeaaa31dd47651640d7
|
/src/action/ind/INDStockBatchAction.java
|
14cdc366856f4750daf83b84450fc2a79fad8bdf
|
[] |
no_license
|
wangqing123654/web
|
00613f6db653562e2e8edc14327649dc18b2aae6
|
bd447877400291d3f35715ca9c7c7b1e79653531
|
refs/heads/master
| 2023-04-07T15:23:34.705954
| 2020-11-02T10:10:57
| 2020-11-02T10:10:57
| 309,329,277
| 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 1,094
|
java
|
package action.ind;
import com.dongyang.action.TAction;
import com.dongyang.data.TParm;
import com.dongyang.db.TConnection;
import jdo.ind.INDTool;
/**
* <p>
* Title: 日结过帐管理
* </p>
*
* <p>
* Description: 日结过帐管理
* </p>
*
* <p>
* Copyright: Copyright (c) 2009
* </p>
*
* <p>
* Company: JavaHis
* </p>
*
* @author zhangy 2009.09.02
* @version 1.0
*/
public class INDStockBatchAction extends TAction {
public INDStockBatchAction() {
}
/**
* 指定部门药品库存手动日结批次作业
* @param parm TParm
* @return TParm
*/
public TParm onIndStockBatch(TParm parm) {
TConnection conn = getConnection();
TParm result = new TParm();
result = INDTool.getInstance().onIndStockBatchByOrgCode(parm, conn);
if (result.getErrCode() < 0) {
err("ERR:" + result.getErrCode() + result.getErrText()
+ result.getErrName());
conn.close();
return result;
}
conn.commit();
conn.close();
return result;
}
}
|
[
"1638364772@qq.com"
] |
1638364772@qq.com
|
ac36c4dc814661f10b062b006bb033153df75c2c
|
d3e47ffaf435eef07614120147deb204fe9e1acc
|
/src/JavaTechnoStudy/day44/staticFieldInheritance/B.java
|
27f35d00eca764d24257b9e6afc4e6efe5ac63fa
|
[] |
no_license
|
Aykurt24/aykurtsProjects
|
94d08fe13d23f403e95309937db043a69d44a6c0
|
130e6c0adf7e6d321df7bf415947829bd8fe82a3
|
refs/heads/master
| 2022-10-24T18:20:58.562719
| 2020-06-16T15:00:17
| 2020-06-16T15:00:17
| 263,530,839
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 134
|
java
|
package JavaTechnoStudy.day44.staticFieldInheritance;
public class B extends A {
public B() {
text = "Hello B";
}
}
|
[
"doganaykurt@gmail.com"
] |
doganaykurt@gmail.com
|
f8e71b9c8cd68988bdba61d731ab09e228146dea
|
3d4349c88a96505992277c56311e73243130c290
|
/Preparation/processed-dataset/god-class_3_1112/6.java
|
2b794bedcb22a723f2e54f853be5a27be09993e9
|
[] |
no_license
|
D-a-r-e-k/Code-Smells-Detection
|
5270233badf3fb8c2d6034ac4d780e9ce7a8276e
|
079a02e5037d909114613aedceba1d5dea81c65d
|
refs/heads/master
| 2020-05-20T00:03:08.191102
| 2019-05-15T11:51:51
| 2019-05-15T11:51:51
| 185,272,690
| 7
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 400
|
java
|
private static int zzUnpackTrans(String packed, int offset, int[] result) {
int i = 0;
/* index in packed string */
int j = offset;
/* index in unpacked array */
int l = packed.length();
while (i < l) {
int count = packed.charAt(i++);
int value = packed.charAt(i++);
value--;
do result[j++] = value; while (--count > 0);
}
return j;
}
|
[
"dariusb@unifysquare.com"
] |
dariusb@unifysquare.com
|
66c478a02fdcf97b19307dc8e195a2bafdf98ab8
|
c4623aa95fb8cdd0ee1bc68962711c33af44604e
|
/src/android/support/v4/widget/t.java
|
5d4e13d4cdb8091bc08d9f17cded47ac1b09230d
|
[] |
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
| 442
|
java
|
package android.support.v4.widget;
import android.view.View;
import android.widget.PopupWindow;
class t
{
public static void a(PopupWindow paramPopupWindow, View paramView, int paramInt1, int paramInt2, int paramInt3)
{
paramPopupWindow.showAsDropDown(paramView, paramInt1, paramInt2, paramInt3);
}
}
/* Location:
* Qualified Name: android.support.v4.widget.t
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
16aa97a36eb00c0fc14ce0418f351317d2a55502
|
95b93c921adf5c09793c41a7f0104374201212ab
|
/ws-Client/src/main/java/demo/spring/service_large/SayHi26Response.java
|
e77ed2ba9b9bc7409e1779f0265ba668a39deac2
|
[] |
no_license
|
yhjhoo/WS-CXF-AuthTest
|
d6ad62bdf95af7f4832f16ffa242785fc0a93eb8
|
ded10abaefdc2e8b3b32becdc6f5781471acf27f
|
refs/heads/master
| 2020-06-15T02:21:42.204025
| 2015-04-08T00:05:02
| 2015-04-08T00:05:02
| 33,409,007
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,431
|
java
|
package demo.spring.service_large;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for sayHi26Response complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="sayHi26Response">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="return" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "sayHi26Response", propOrder = {
"_return"
})
public class SayHi26Response {
@XmlElement(name = "return")
protected String _return;
/**
* Gets the value of the return property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getReturn() {
return _return;
}
/**
* Sets the value of the return property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setReturn(String value) {
this._return = value;
}
}
|
[
"yhjhoo@163.com"
] |
yhjhoo@163.com
|
47c67b0f0dd35ba99e7bebd6ccccf7323f6db922
|
285691cba03e9a452405c01fc9d29ed8e7181ae4
|
/src/test/java/com/mycompany/api/ebankingPortal/configuration/CucumberSpringContextConfiguration.java
|
8473af65878980247dbde38750aba1221b3fc3d9
|
[] |
no_license
|
goeld/ebankingPortal
|
e8a8bfb9782908d405f01a8c071523a7a4c08044
|
29cd39351fd1795ee67f8fa91223b58438511fe1
|
refs/heads/main
| 2023-06-07T19:52:10.976002
| 2021-07-01T10:05:18
| 2021-07-01T10:05:18
| 374,670,303
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 440
|
java
|
package com.mycompany.api.ebankingPortal.configuration;
import io.cucumber.spring.CucumberContextConfiguration;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
@CucumberContextConfiguration
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@AutoConfigureMockMvc
public class CucumberSpringContextConfiguration {
}
|
[
"admin@Admins-MacBook-Pro.local"
] |
admin@Admins-MacBook-Pro.local
|
c4c157b8b9759f9bacb02f15bb568e2b91b61b32
|
166b8320b94dcf5932062b8ac4f90dc353767d39
|
/cdi/extension/src/main/java/org/infinispan/cdi/util/annotatedtypebuilder/AnnotatedMethodImpl.java
|
91063e6d441a7ef45b0134ebad3ea23085c1ea7e
|
[
"Apache-2.0"
] |
permissive
|
Cotton-Ben/infinispan
|
87e0caeeba2616dd7eb5a96b896b462ed9de5d67
|
2ba2d9992cd0018829d9ba0b0d4ba74bab49616b
|
refs/heads/master
| 2020-12-31T02:22:26.654774
| 2014-07-11T16:48:15
| 2014-07-11T16:48:15
| 16,557,570
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 781
|
java
|
package org.infinispan.cdi.util.annotatedtypebuilder;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.Map;
import javax.enterprise.inject.spi.AnnotatedMethod;
import javax.enterprise.inject.spi.AnnotatedType;
/**
* @author Stuart Douglas
*/
class AnnotatedMethodImpl<X> extends AnnotatedCallableImpl<X, Method> implements AnnotatedMethod<X> {
AnnotatedMethodImpl(AnnotatedType<X> type, Method method, AnnotationStore annotations, Map<Integer, AnnotationStore> parameterAnnotations, Map<Integer, Type> parameterTypeOverrides) {
super(type, method, method.getReturnType(), method.getParameterTypes(), method.getGenericParameterTypes(), annotations, parameterAnnotations, method.getGenericReturnType(), parameterTypeOverrides);
}
}
|
[
"galder@zamarreno.com"
] |
galder@zamarreno.com
|
6c8a3489b552c0dad6ff51713227771eadf8ecf0
|
8258dd82dece76adbffc1d3429ca63aebf1a2600
|
/app/src/main/java/com/mac/runtu/javabean/PropertyCommiteInfo.java
|
40b5e0c0e898188d66f1b2bdc140602a9c246fbe
|
[] |
no_license
|
wuyue0829/Runtu-master02
|
155750550c601e05afe3c5a76140bb92df14fe77
|
cc76dde1bf017d2649f5b51a7bf45afc2891df4e
|
refs/heads/master
| 2020-04-11T06:44:44.682500
| 2018-12-13T05:51:04
| 2018-12-13T05:51:04
| 161,590,380
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,098
|
java
|
package com.mac.runtu.javabean;
import java.io.Serializable;
/**
* Description: 产权流转信息发布
* Copyright : Copyright (c) 2016
* Company :
* Author : 牒倩楠
* Date : 2016/10/31 0031 下午 8:41
*/
public class PropertyCommiteInfo implements Serializable{
/*userUuid,kind(种类),title,content,contacts,phone,city,county,town,village
,area(亩),price(价格),years(年限),exchange(流转方式1为转让,2为转包,3为互换,4为入股,5为出租) uuid
(单独获得第uuid)*/
public String userUuid;
public String kind;
public String title;
public String content;
public String contacts;
public String phone;
public String publisher = "";
public String province ="";
public String city;
public String county = "";
public String town = "";
public String village = "";
public String uuid = "";
public String area;
public String price;
public String years;
public String exchange;
}
|
[
"wuyue@wuyuedeiMac.local"
] |
wuyue@wuyuedeiMac.local
|
bd22ff10dac2838c32d89438673ad169da6a6ee8
|
dfc0ef8c3017ebfe80fe8ee657b4f593330d3ef6
|
/Reversed/framework/com/samsung/android/hardware/context/SemContextAutoBrightness.java
|
ccaf026ca9c9973f2e052fd2174683379ce07580
|
[] |
no_license
|
khomsn/SCoverRE
|
fe079b6006281112ee37b66c5d156bb959e15420
|
2374565740e4c7bfc653b3f05bd9be519e722e32
|
refs/heads/master
| 2020-04-13T15:36:19.925426
| 2017-06-01T07:31:37
| 2017-06-01T07:31:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,540
|
java
|
package com.samsung.android.hardware.context;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable.Creator;
public class SemContextAutoBrightness extends SemContextEventContext {
public static final int CONFIG_DATA_DOWNLOADED = 1000;
public static final Creator<SemContextAutoBrightness> CREATOR = new C01441();
public static final int EBOOK_MODE = 1;
public static final int NORMAL_MODE = 0;
public static final int UPDATE_MODE = 2;
private Bundle mContext;
static class C01441 implements Creator<SemContextAutoBrightness> {
C01441() {
}
public SemContextAutoBrightness createFromParcel(Parcel parcel) {
return new SemContextAutoBrightness(parcel);
}
public SemContextAutoBrightness[] newArray(int i) {
return new SemContextAutoBrightness[i];
}
}
SemContextAutoBrightness() {
this.mContext = new Bundle();
}
SemContextAutoBrightness(Parcel parcel) {
readFromParcel(parcel);
}
private void readFromParcel(Parcel parcel) {
this.mContext = parcel.readBundle(getClass().getClassLoader());
}
public int getAmbientLux() {
return this.mContext.getInt("AmbientLux");
}
public int getCandela() {
return this.mContext.getInt("Candela");
}
public void setValues(Bundle bundle) {
this.mContext = bundle;
}
public void writeToParcel(Parcel parcel, int i) {
parcel.writeBundle(this.mContext);
}
}
|
[
"fonix232@gmail.com"
] |
fonix232@gmail.com
|
09008adcac7b18a789da962521693845a10bfa34
|
ce29ae639da37c571cbbeac622b5d4ec67fcc58c
|
/fe/generated-sources/gen-java/com/cloudera/impala/thrift/TLogLevel.java
|
e3db30a917f72323a3a4d3f5fd1803bcf1d461e9
|
[
"Apache-2.0"
] |
permissive
|
dayutianfei/impala-Q
|
703de4a0f6581401734b27b1f947ac1db718cb2e
|
46af5ff8bf3e80999620db7bf0c9ffc93c8e5950
|
refs/heads/master
| 2021-01-10T11:54:57.584647
| 2016-02-17T15:39:09
| 2016-02-17T15:39:09
| 48,152,335
| 0
| 1
| null | 2016-03-09T17:02:07
| 2015-12-17T04:29:58
|
C++
|
UTF-8
|
Java
| false
| true
| 1,135
|
java
|
/**
* Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.cloudera.impala.thrift;
import java.util.Map;
import java.util.HashMap;
import org.apache.thrift.TEnum;
public enum TLogLevel implements org.apache.thrift.TEnum {
VLOG_3(0),
VLOG_2(1),
VLOG(2),
INFO(3),
WARN(4),
ERROR(5),
FATAL(6);
private final int value;
private TLogLevel(int value) {
this.value = value;
}
/**
* Get the integer value of this enum value, as defined in the Thrift IDL.
*/
public int getValue() {
return value;
}
/**
* Find a the enum type by its integer value, as defined in the Thrift IDL.
* @return null if the value is not found.
*/
public static TLogLevel findByValue(int value) {
switch (value) {
case 0:
return VLOG_3;
case 1:
return VLOG_2;
case 2:
return VLOG;
case 3:
return INFO;
case 4:
return WARN;
case 5:
return ERROR;
case 6:
return FATAL;
default:
return null;
}
}
}
|
[
"dayutianfei@gmail.com"
] |
dayutianfei@gmail.com
|
f2205b60a5f34fbf08e5f5314a1321b63dc4989c
|
3efa417c5668b2e7d1c377c41d976ed31fd26fdc
|
/src/br/com/mind5/paymentPartner/partnerMoip/orderMoip/info/OrdmoipMergerVisiPayordem.java
|
d5268f29e07742bc0f586aa459a983d0c8d145b8
|
[] |
no_license
|
grazianiborcai/Agenda_WS
|
4b2656716cc49a413636933665d6ad8b821394ef
|
e8815a951f76d498eb3379394a54d2aa1655f779
|
refs/heads/master
| 2023-05-24T19:39:22.215816
| 2023-05-15T15:15:15
| 2023-05-15T15:15:15
| 109,902,084
| 0
| 0
| null | 2022-06-29T19:44:56
| 2017-11-07T23:14:21
|
Java
|
UTF-8
|
Java
| false
| false
| 878
|
java
|
package br.com.mind5.paymentPartner.partnerMoip.orderMoip.info;
import java.util.ArrayList;
import java.util.List;
import br.com.mind5.info.InfoMergerVisitorTemplate;
import br.com.mind5.payment.payOrderItem.info.PayordemInfo;
final class OrdmoipMergerVisiPayordem extends InfoMergerVisitorTemplate<OrdmoipInfo, PayordemInfo> {
@Override public boolean shouldMerge(OrdmoipInfo baseInfo, PayordemInfo selectedInfo) {
return (baseInfo.codOwner == selectedInfo.codOwner &&
baseInfo.codPayOrder == selectedInfo.codPayOrder &&
baseInfo.codPayOrderItem == selectedInfo.codPayOrderItem );
}
@Override public List<OrdmoipInfo> merge(OrdmoipInfo baseInfo, PayordemInfo selectedInfo) {
List<OrdmoipInfo> results = new ArrayList<>();
baseInfo.payordemData = selectedInfo;
results.add(baseInfo);
return results;
}
}
|
[
"mmaciel@mind5.com"
] |
mmaciel@mind5.com
|
b11dbb1c61e91a930cce4d63d14cd0dc30a020d3
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-ws/results/MATH-51b-1-28-Single_Objective_GGA-WeightedSum/org/apache/commons/math/analysis/solvers/BaseAbstractUnivariateRealSolver_ESTest.java
|
c1e8e3b5a5a17c6e17217e8703540fe318826d48
|
[
"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
| 821
|
java
|
/*
* This file was automatically generated by EvoSuite
* Fri Jan 17 22:50:36 UTC 2020
*/
package org.apache.commons.math.analysis.solvers;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.apache.commons.math.analysis.solvers.NewtonSolver;
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 BaseAbstractUnivariateRealSolver_ESTest extends BaseAbstractUnivariateRealSolver_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
NewtonSolver newtonSolver0 = new NewtonSolver();
// Undeclared exception!
newtonSolver0.doSolve();
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
21968bce9755e4c86a519ec491eb7d7177622c5e
|
dc5459ac2dfd8647cdbed41b2f41607f7007e660
|
/app/src/main/java/com/vvm/sh/repositorios/ImagemRepositorio.java
|
38c469bfc243c0181a51593340bfd2542644ca2e
|
[] |
no_license
|
ArtemisSoftware/VVM-SH
|
5961540712193620291ecf3427181579bb6229b9
|
d433a6821bcd4c4f9a41ab25f664e72251b83d63
|
refs/heads/master
| 2021-07-05T06:57:05.535395
| 2021-02-22T15:53:14
| 2021-02-22T15:54:10
| 237,837,228
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,107
|
java
|
package com.vvm.sh.repositorios;
import androidx.annotation.NonNull;
import com.vvm.sh.baseDados.dao.ImagemDao;
import com.vvm.sh.baseDados.dao.ResultadoDao;
import com.vvm.sh.baseDados.entidades.ImagemResultado;
import com.vvm.sh.ui.imagens.modelos.ImagemRegisto;
import com.vvm.sh.util.constantes.Identificadores;
import com.vvm.sh.util.constantes.TiposConstantes;
import java.util.List;
import io.reactivex.Completable;
import io.reactivex.Observable;
import io.reactivex.Single;
public class ImagemRepositorio implements Repositorio<ImagemResultado>{
private final ImagemDao imagemDao;
public final ResultadoDao resultadoDao;
public ImagemRepositorio(@NonNull ImagemDao imagemDao, @NonNull ResultadoDao resultadoDao) {
this.imagemDao = imagemDao;
this.resultadoDao = resultadoDao;
}
public Observable<List<ImagemRegisto>> obterImagemLevantamento(int idLevantamento) {
return imagemDao.obterImagemLevantamento(idLevantamento);
}
public Observable<List<ImagemRegisto>> obterGaleria(int id, int origem) {
return imagemDao.obterGaleria(id, origem);
}
public Observable<List<ImagemRegisto>> obterCapasRelatorio(int idTarefa) {
return imagemDao.obterGaleria(idTarefa);
}
public Completable fixarCapaRelatorio(int idTarefa, int idImagem){
Completable removerCapaRelatorio = imagemDao.removerCapaRelatorio(idTarefa);
Completable inserirCapaRelatorio = imagemDao.fixarCapaRelatorio(idImagem);
Completable completable = Completable.concatArray(removerCapaRelatorio, inserirCapaRelatorio);
return completable;
}
public Completable removerCapaRelatorio(int idTarefa){
return imagemDao.removerCapaRelatorio(idTarefa);
}
@Override
public Single<Long> inserir(ImagemResultado item) {
return imagemDao.inserir(item);
}
@Override
public Single<Integer> atualizar(ImagemResultado item) {
return null;
}
@Override
public Single<Integer> remover(ImagemResultado item) {
return imagemDao.remover(item);
}
}
|
[
"gustavo.maia@b2b.com.pt"
] |
gustavo.maia@b2b.com.pt
|
1e5ee16cb687d538f37d5d4e04450bd29c89d902
|
9e8f669d216211ed25cd7208d25f918d8031a335
|
/CCMS/src/main/java/com/kh/ccms/community/model/exception/CommunityException.java
|
b4a33a8b56009f2dc3f7ee16780c5db3e28d98c2
|
[] |
no_license
|
CleverCodeMonkeys/ALLIT
|
d3ce6dfde79a975a09de1e1877b71ca177ca4e6b
|
6aa7823e66b7409f8ed5bcc1f7f237600a21d585
|
refs/heads/master
| 2020-03-24T23:11:33.771249
| 2018-08-08T09:03:38
| 2018-08-08T09:03:38
| 143,122,443
| 0
| 0
| null | 2018-08-08T09:03:39
| 2018-08-01T07:50:20
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 299
|
java
|
package com.kh.ccms.community.model.exception;
public class CommunityException extends RuntimeException
{
private static final long serialVersionUID = 155L;
public CommunityException() {}
public CommunityException(String msg)
{
super("게시판 에러 발생" + msg);
}
}
|
[
"user2@KH_H"
] |
user2@KH_H
|
a50f26aea04180f59b7e46109049f367bc080105
|
ae9efe033a18c3d4a0915bceda7be2b3b00ae571
|
/jambeth/jambeth-test/src/test/java/com/koch/ambeth/query/isin/QueryIsInMassdataTest.java
|
1423d6ffcf352c794561fcc7899fb64f6c0814b7
|
[
"Apache-2.0"
] |
permissive
|
Dennis-Koch/ambeth
|
0902d321ccd15f6dc62ebb5e245e18187b913165
|
8552b210b8b37d3d8f66bdac2e094bf23c8b5fda
|
refs/heads/develop
| 2022-11-10T00:40:00.744551
| 2017-10-27T05:35:20
| 2017-10-27T05:35:20
| 88,013,592
| 0
| 4
|
Apache-2.0
| 2022-09-22T18:02:18
| 2017-04-12T05:36:00
|
Java
|
UTF-8
|
Java
| false
| false
| 5,089
|
java
|
package com.koch.ambeth.query.isin;
/*-
* #%L
* jambeth-test
* %%
* Copyright (C) 2017 Koch Softwaredevelopment
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
* #L%
*/
// package com.koch.ambeth.query.isin;
//
// import org.junit.Assert;
// import org.junit.Test;
// import org.junit.experimental.categories.Category;
//
// import com.koch.ambeth.config.ServiceConfigurationConstants;
// import com.koch.ambeth.ioc.annotation.Autowired;
// import com.koch.ambeth.persistence.config.PersistenceConfigurationConstants;
// import com.koch.ambeth.testutil.AbstractInformationBusWithPersistenceTest;
// import com.koch.ambeth.testutil.SQLData;
// import com.koch.ambeth.testutil.SQLDataRebuild;
// import com.koch.ambeth.testutil.SQLStructure;
// import com.koch.ambeth.testutil.TestModule;
// import com.koch.ambeth.testutil.TestProperties;
// import com.koch.ambeth.testutil.TestPropertiesList;
// import com.koch.ambeth.testutil.category.PerformanceTests;
//
// @Category(PerformanceTests.class)
// @TestModule(QueryIsInMassdataTestModule.class)
// @SQLDataRebuild(false)
// @SQLData("QueryIsInMassdata_data.sql")
// @SQLStructure("QueryIsInMassdata_structure.sql")
// @TestPropertiesList({
// @TestProperties(name = PersistenceConfigurationConstants.AutoIndexForeignKeys, value = "false"),
// @TestProperties(name = PersistenceConfigurationConstants.DatabasePoolMaxUsed, value = "20"),
// @TestProperties(name = ServiceConfigurationConstants.mappingFile, value =
// "com/koch/ambeth/query/isin/QueryIsInMassdata_orm.xml"),
// @TestProperties(name = "ambeth.log.level.com.koch.ambeth.cache.DefaultPersistenceCacheRetriever",
// value = "INFO"),
// @TestProperties(name = "ambeth.log.level.com.koch.ambeth.filter.PagingQuery", value = "INFO"),
// @TestProperties(name = "ambeth.log.level.com.koch.ambeth.orm.XmlDatabaseMapper", value = "INFO"),
// @TestProperties(name = "ambeth.log.level.com.koch.ambeth.persistence.EntityLoader", value =
// "INFO"),
// @TestProperties(name = "ambeth.log.level.com.koch.ambeth.persistence.jdbc.JdbcTable", value =
// "INFO"),
// @TestProperties(name = "ambeth.log.level.com.koch.ambeth.persistence.jdbc.JDBCDatabaseWrapper",
// value = "INFO"),
// // @TestProperties(name =
// "ambeth.log.level.com.koch.ambeth.persistence.jdbc.connection.LogPreparedStatementInterceptor",
// value = "INFO"),
// @TestProperties(name =
// "ambeth.log.level.com.koch.ambeth.persistence.jdbc.connection.LogStatementInterceptor", value =
// "INFO"),
// @TestProperties(name =
// "ambeth.log.level.com.koch.ambeth.persistence.jdbc.database.JdbcTransaction", value = "INFO"),
// @TestProperties(name = "ambeth.log.level.com.koch.ambeth.proxy.AbstractCascadePostProcessor",
// value = "INFO"),
// @TestProperties(name = "ambeth.log.level.com.koch.ambeth.cache.CacheLocalDataChangeListener",
// value = "INFO"),
// @TestProperties(name = "ambeth.log.level.com.koch.ambeth.cache.FirstLevelCacheManager", value =
// "INFO"),
// @TestProperties(name = "ambeth.log.level.com.koch.ambeth.service.MergeService", value = "INFO")
// })
// public class QueryIsInMassdataTest extends AbstractInformationBusWithPersistenceTest
// {
// protected static long timeForEquals = 0;
//
// protected static long timeForIsIn = 0;
//
// @Autowired
// protected IChildService childService;
//
// @Test
// public void testTimeForEquals() throws Exception
// {
// long start = System.currentTimeMillis();
// for (int a = 100; a-- > 0;)
// {
// childService.searchForParentWithEquals(10001);
// }
// timeForEquals = System.currentTimeMillis() - start;
// checkTimes();
// }
//
// @Test
// public void testTimeForIsIn() throws Exception
// {
// long start = System.currentTimeMillis();
// for (int a = 100; a-- > 0;)
// {
// childService.getForParentWithIsIn(10002);
// }
// timeForIsIn = System.currentTimeMillis() - start;
// checkTimes();
// }
//
// @Test
// public void testTimeForIsInMoreThan4000() throws Exception
// {
// int[] parentIds = new int[4005]; // Force UNION > 4000
// for (int a = parentIds.length; a-- > 0;)
// {
// parentIds[a] = 10000 + a;
// }
// long start = System.currentTimeMillis();
// childService.getForParentWithIsIn(parentIds);
// timeForIsIn = System.currentTimeMillis() - start;
// checkTimes();
// }
//
// private void checkTimes()
// {
// if (timeForEquals > 0 && timeForIsIn > 0)
// {
// if (timeForEquals < 50)
// {
// Assert.fail("Difference not significant. Use a larger number of entities.");
// }
// if (timeForIsIn > timeForEquals * 1.5)
// {
// Assert.fail("IsIn is to slow: timeForEquals = " + timeForEquals + ", timeForIsIn = " +
// timeForIsIn);
// }
// }
// }
// }
|
[
"dennis.koch@bruker.com"
] |
dennis.koch@bruker.com
|
d53aa77e3ad2fa5916699b352ba73b38ee956e01
|
e2a6ca6c033ea35c098f9ca0b52f445e99e5d1db
|
/ble/src/main/java/no/nordicsemi/android/ble/callback/ReadProgressCallback.java
|
c3b37a674d20975dcd5e84214c17ae93576c4ac3
|
[] |
permissive
|
NordicSemiconductor/Android-BLE-Library
|
bf1db1a8fd4b34a44a83cb10cee78bc1ea1983b4
|
004e6645dfb391c253c13a8b75d38a86b0aeacc2
|
refs/heads/main
| 2023-08-25T03:45:49.585534
| 2023-04-04T13:28:20
| 2023-04-04T13:28:20
| 114,649,434
| 1,798
| 429
|
BSD-3-Clause
| 2023-05-22T09:56:21
| 2017-12-18T14:17:43
|
Java
|
UTF-8
|
Java
| false
| false
| 2,312
|
java
|
/*
* Copyright (c) 2018, Nordic Semiconductor
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package no.nordicsemi.android.ble.callback;
import android.bluetooth.BluetoothDevice;
import androidx.annotation.IntRange;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import no.nordicsemi.android.ble.data.DataMerger;
@FunctionalInterface
public interface ReadProgressCallback {
/**
* Callback received each time the value was read or has changed using notifications or
* indications when {@link DataMerger} was used.
*
* @param device the target device.
* @param data the last packet received.
* @param index the index of a packet that will be merged into a single Data.
*/
void onPacketReceived(@NonNull final BluetoothDevice device,
@Nullable final byte[] data, @IntRange(from = 0) final int index);
}
|
[
"aleksander.nowakowski@nordicsemi.no"
] |
aleksander.nowakowski@nordicsemi.no
|
775e48dd63cddabe8380b4d7b25d1b8934f4e294
|
684f50dd1ae58a766ce441d460214a4f7e693101
|
/modules/account/account-console-service/src/main/java/com/dimeng/p2p/modules/account/console/service/EnterpriseManage.java
|
6ee539699c7a2bd52acb7149158bf3991aff5272
|
[] |
no_license
|
wang-shun/rainiee-core
|
a0361255e3957dd58f653ae922088219738e0d25
|
80a96b2ed36e3460282e9e21d4f031cfbd198e69
|
refs/heads/master
| 2020-03-29T16:40:18.372561
| 2018-09-22T10:05:17
| 2018-09-22T10:05:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,903
|
java
|
/**
*
*/
package com.dimeng.p2p.modules.account.console.service;
import java.io.OutputStream;
import java.sql.Connection;
import com.dimeng.framework.service.Service;
import com.dimeng.framework.service.query.Paging;
import com.dimeng.framework.service.query.PagingResult;
import com.dimeng.p2p.S61.entities.T6112;
import com.dimeng.p2p.S61.entities.T6113;
import com.dimeng.p2p.S61.entities.T6161;
import com.dimeng.p2p.S61.entities.T6162;
import com.dimeng.p2p.S61.entities.T6163;
import com.dimeng.p2p.S61.entities.T6164;
import com.dimeng.p2p.S61.entities.T6180;
import com.dimeng.p2p.modules.account.console.service.entity.AT6161;
import com.dimeng.p2p.modules.account.console.service.entity.Enterprise;
import com.dimeng.p2p.modules.account.console.service.entity.Jg;
import com.dimeng.p2p.modules.account.console.service.query.EnterpriseQuery;
/**
* 企业用户信息
*
* @author guopeng
*
*/
public abstract interface EnterpriseManage extends Service {
/**
*
* <dt>
* <dl>
* 描述:添加企业信息
* </dl>
*
* @param user
* 添加信息
* @throws Throwable
*/
public abstract int add(Enterprise enterprise) throws Throwable;
/**
*
* <dt>
* <dl>
* 描述:修改企业信息
* </dl>
*
* @param user
* 修改信息
* @throws Throwable
*/
public abstract void update(Enterprise enterprise) throws Throwable;
/**
*
* <dt>
* <dl>
* 描述:查询所企业人用户列表.
* </dl>
*
* @param userQuery
* @param paging
* @return
* @throws Throwable
*/
public abstract PagingResult<Enterprise> enterpriseSearch(
EnterpriseQuery enterpriseQuery, Paging paging) throws Throwable;
/**
* <dt>
* <dl>
* 描述:导出企业用户信息
* </dl>
*
* @param users
* 用户信息列表
* @param outputStream
* 输出流
* @param charset
* 字符编码
* @throws Throwable
*/
public abstract void export(Enterprise[] enterprises,
OutputStream outputStream, String charset) throws Throwable;
/**
*
* <dl>
* 描述:查询所有机构.
* </dl>
*
*
* @return
* @throws Throwable
*/
public abstract Jg[] searchJg() throws Throwable;
/**
*
* <dl>
* 描述:查询已通过第三方审核的机构
* </dl>
*
*
* @return
* @throws Throwable
*/
public abstract Jg[] searchTgJg() throws Throwable;
/**
* 根据机构ID查询机构描述信息
*/
public abstract String getJgDes(int id) throws Throwable;
/**
* 根据机构ID查询机构描述信息
*/
public abstract T6180 getJgInfo(int id) throws Throwable;
/**
* 查询企业基础信息
*/
public abstract AT6161 getEnterprise(int userId) throws Throwable;
/**
* 根据企业编号查询企业基础信息
*/
public abstract T6161 getEnterpriseByBH(String bhId) throws Throwable;
/**
* 查询企业财务状况
*/
public abstract T6163[] getEnterpriseCw(int userId) throws Throwable;
/**
* 查询企业介绍信息
*/
public abstract T6162 getEnterpriseJs(int userId) throws Throwable;
/**
* 查询企业联系人
*/
public abstract T6164 getEnterpriseLxr(int userId) throws Throwable;
/**
* 修改企业基础资料
*/
public abstract String updateEnterpriseBase(AT6161 t6161) throws Throwable;
/**
* 修改企业信息
*/
public abstract void updateEnterpriseOtherInfos(T6161 t6161, T6162 t6162,
T6163[] t6163, T6164 t6164) throws Throwable;
/**
* 插入或更新房产信息
* @throws Throwable
*/
public abstract int addOrupdateHourse(T6112 entity) throws Throwable;
/**
* 插入或更新车产信息
* @throws Throwable
*/
public abstract int addOrupdateCar(T6113 entity) throws Throwable;
public abstract T6112[] getHourseInfo(int userId) throws Throwable;
public abstract T6113[] getCarInfo(int userId) throws Throwable;
}
|
[
"humengmeng@rainiee.com"
] |
humengmeng@rainiee.com
|
23196879a81fd461adfd4e775b4d791786b38e07
|
c53ee32324d283c5b652d0db764af1a298dd988d
|
/189.rotate-array.113341428.ac.java
|
93a271e59e5e97cd563ec87adbe11feba1362dd8
|
[] |
no_license
|
zhuolikevin/leetcode-java
|
f5f984e3db99359e2e5df621f1896dfd57030a93
|
712c93bade63829ca13bd88a4ef0600f3439be6d
|
refs/heads/master
| 2020-12-29T00:59:04.999430
| 2017-08-15T17:58:12
| 2017-08-15T17:58:12
| 94,374,971
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 806
|
java
|
/*
* [189] Rotate Array
*
* https://leetcode.com/problems/rotate-array
*
* Easy (24.37%)
* Total Accepted:
* Total Submissions:
* Testcase Example: '[1]\n0'
*
* Can you solve this problem? 🤔
*/
public class Solution {
public void rotate(int[] nums, int k) {
if (nums == null || nums.length == 0) {
return;
}
k = k % nums.length;
reverse(nums, 0, nums.length - 1);
reverse(nums, 0, k - 1);
reverse(nums, k, nums.length - 1);
}
private void reverse(int[] nums, int left, int right) {
while (left < right) {
int temp = nums[left];
nums[left] = nums[right];
nums[right] = temp;
left++;
right--;
}
}
}
|
[
"lizhuogo@gmail.com"
] |
lizhuogo@gmail.com
|
c83e30f3c3b191824ec98752429eabc882b49fdc
|
c188408c9ec0425666250b45734f8b4c9644a946
|
/open-sphere-base/core/src/main/java/io/opensphere/core/StatisticsManager.java
|
46ea511d1a20e41b1de041e1ba96ab787d699074
|
[
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] |
permissive
|
rkausch/opensphere-desktop
|
ef8067eb03197c758e3af40ebe49e182a450cc02
|
c871c4364b3456685411fddd22414fd40ce65699
|
refs/heads/snapshot_5.2.7
| 2023-04-13T21:00:00.575303
| 2020-07-29T17:56:10
| 2020-07-29T17:56:10
| 360,594,280
| 0
| 0
|
Apache-2.0
| 2021-04-22T17:40:38
| 2021-04-22T16:58:41
| null |
UTF-8
|
Java
| false
| false
| 1,673
|
java
|
package io.opensphere.core;
import io.opensphere.core.orwell.ApplicationStatistics;
import io.opensphere.core.orwell.GraphicsStatistics;
import io.opensphere.core.orwell.SessionStatistics;
import io.opensphere.core.orwell.SystemStatistics;
import io.opensphere.core.orwell.UserStatistics;
/**
* A simple manager interface in which the various objects used to gather and maintain statistics.
*/
public interface StatisticsManager
{
/**
* Gets the container in which the statistics describing the operating system are stored.
*
* @return the container in which the statistics describing the operating system are stored.
*/
SystemStatistics getSystemStatistics();
/**
* Gets the container in which the statistics describing the graphics system are stored.
*
* @return the container in which the statistics describing the graphics system are stored.
*/
GraphicsStatistics getGraphicsStatistics();
/**
* Gets the container in which the statistics describing the application are stored.
*
* @return the container in which the statistics describing the application are stored.
*/
ApplicationStatistics getApplicationStatistics();
/**
* Gets the container describing the user currently executing the application.
*
* @return the container describing the user currently executing the application.
*/
UserStatistics getUserStatistics();
/**
* Gets the statistics container describing the user's current session.
*
* @return the statistics container describing the user's current session.
*/
SessionStatistics getSessionStatistics();
}
|
[
"kauschr@opensphere.io"
] |
kauschr@opensphere.io
|
db99ed9f6a3e9f9c30e64c79ca2484e82a90a8f4
|
cf6a2dd9d33935b89c7153346e757c933a4501e2
|
/src/main/java/com/lun/designpattern/templatemethod/example1/Tea.java
|
c90b94c9166bd6d1b98b32f01aa5205008eb3859
|
[] |
no_license
|
JallenKwong/LearnDesignPattern
|
8ae49aaaaea41f07b28c385be8d00651ad48c2d9
|
5a39e0ed527b8441fa873bc08d83676fa5e616cc
|
refs/heads/master
| 2020-03-24T21:24:08.994402
| 2019-01-04T17:40:13
| 2019-01-04T17:40:13
| 143,030,412
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 241
|
java
|
package com.lun.designpattern.templatemethod.example1;
public class Tea extends CaffeineBeverage {
public void brew() {
System.out.println("Steeping the tea");
}
public void addCondiments() {
System.out.println("Adding Lemon");
}
}
|
[
"jallenkwong@163.com"
] |
jallenkwong@163.com
|
4ee7dda2df856b6f1de6b49f36b49dd50a0b6ab2
|
9a0c5fe198eec7858442c8c65242f1fcb40d477c
|
/book/src/main/java/com/dragontalker/filter/ManagerFilter.java
|
88cd633717934be84b714457b7669258fdd4105b
|
[
"MIT"
] |
permissive
|
Dragontalker/JavaWeb-study-notes
|
512e86fa8a2c402f17bbc081049ec54532c80235
|
25acf971fc92d18235170454e26b3b30c79f5f20
|
refs/heads/main
| 2023-06-20T16:21:21.542684
| 2021-07-06T19:12:40
| 2021-07-06T19:12:40
| 378,425,450
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 887
|
java
|
package com.dragontalker.filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
public class ManagerFilter implements Filter {
@Override
public void doFilter(ServletRequest servletRequest,
ServletResponse servletResponse,
FilterChain filterChain)
throws IOException, ServletException {
HttpServletRequest httpServletRequest = (HttpServletRequest) servletRequest;
Object user = httpServletRequest.getSession().getAttribute("user");
if (user == null) {
httpServletRequest.getRequestDispatcher("/pages/user/login.jsp")
.forward(httpServletRequest, servletResponse);
} else {
filterChain.doFilter(httpServletRequest, servletResponse);
}
}
}
|
[
"richard.yang.tong@gmail.com"
] |
richard.yang.tong@gmail.com
|
1ff77df1046eca5204f0c2ea04c5d8899b36ea8f
|
2e33486c5cf9aa121f4bf920448f260e160dd763
|
/src/main/java/it/consoft/budget/web/rest/BudgetTemporaneoResource.java
|
944d6d087b3eef42acf0c4dea8cd7cf54990fab5
|
[] |
no_license
|
EmaBachi/BudgetJhipster
|
573524cdd43c1dbbf6fbb869ea8e4422f7327903
|
804c23c692772315a93fd3c4c99d8aabc8f0e891
|
refs/heads/master
| 2022-03-02T22:51:20.167079
| 2017-06-30T14:58:46
| 2017-06-30T14:58:46
| 95,873,206
| 0
| 0
| null | 2022-03-02T04:33:54
| 2017-06-30T09:34:36
|
Java
|
UTF-8
|
Java
| false
| false
| 5,721
|
java
|
package it.consoft.budget.web.rest;
import com.codahale.metrics.annotation.Timed;
import it.consoft.budget.domain.BudgetTemporaneo;
import it.consoft.budget.service.BudgetTemporaneoService;
import it.consoft.budget.web.rest.util.HeaderUtil;
import it.consoft.budget.web.rest.util.PaginationUtil;
import io.swagger.annotations.ApiParam;
import io.github.jhipster.web.util.ResponseUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
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 BudgetTemporaneo.
*/
@RestController
@RequestMapping("/api")
public class BudgetTemporaneoResource {
private final Logger log = LoggerFactory.getLogger(BudgetTemporaneoResource.class);
private static final String ENTITY_NAME = "budgetTemporaneo";
private final BudgetTemporaneoService budgetTemporaneoService;
public BudgetTemporaneoResource(BudgetTemporaneoService budgetTemporaneoService) {
this.budgetTemporaneoService = budgetTemporaneoService;
}
/**
* POST /budget-temporaneos : Create a new budgetTemporaneo.
*
* @param budgetTemporaneo the budgetTemporaneo to create
* @return the ResponseEntity with status 201 (Created) and with body the new budgetTemporaneo, or with status 400 (Bad Request) if the budgetTemporaneo has already an ID
* @throws URISyntaxException if the Location URI syntax is incorrect
*/
@PostMapping("/budget-temporaneos")
@Timed
public ResponseEntity<BudgetTemporaneo> createBudgetTemporaneo(@RequestBody BudgetTemporaneo budgetTemporaneo) throws URISyntaxException {
log.debug("REST request to save BudgetTemporaneo : {}", budgetTemporaneo);
if (budgetTemporaneo.getId() != null) {
return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, "idexists", "A new budgetTemporaneo cannot already have an ID")).body(null);
}
BudgetTemporaneo result = budgetTemporaneoService.save(budgetTemporaneo);
return ResponseEntity.created(new URI("/api/budget-temporaneos/" + result.getId()))
.headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))
.body(result);
}
/**
* PUT /budget-temporaneos : Updates an existing budgetTemporaneo.
*
* @param budgetTemporaneo the budgetTemporaneo to update
* @return the ResponseEntity with status 200 (OK) and with body the updated budgetTemporaneo,
* or with status 400 (Bad Request) if the budgetTemporaneo is not valid,
* or with status 500 (Internal Server Error) if the budgetTemporaneo couldnt be updated
* @throws URISyntaxException if the Location URI syntax is incorrect
*/
@PutMapping("/budget-temporaneos")
@Timed
public ResponseEntity<BudgetTemporaneo> updateBudgetTemporaneo(@RequestBody BudgetTemporaneo budgetTemporaneo) throws URISyntaxException {
log.debug("REST request to update BudgetTemporaneo : {}", budgetTemporaneo);
if (budgetTemporaneo.getId() == null) {
return createBudgetTemporaneo(budgetTemporaneo);
}
BudgetTemporaneo result = budgetTemporaneoService.save(budgetTemporaneo);
return ResponseEntity.ok()
.headers(HeaderUtil.createEntityUpdateAlert(ENTITY_NAME, budgetTemporaneo.getId().toString()))
.body(result);
}
/**
* GET /budget-temporaneos : get all the budgetTemporaneos.
*
* @param pageable the pagination information
* @return the ResponseEntity with status 200 (OK) and the list of budgetTemporaneos in body
*/
@GetMapping("/budget-temporaneos")
@Timed
public ResponseEntity<List<BudgetTemporaneo>> getAllBudgetTemporaneos(@ApiParam Pageable pageable) {
log.debug("REST request to get a page of BudgetTemporaneos");
Page<BudgetTemporaneo> page = budgetTemporaneoService.findAll(pageable);
HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, "/api/budget-temporaneos");
return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);
}
/**
* GET /budget-temporaneos/:id : get the "id" budgetTemporaneo.
*
* @param id the id of the budgetTemporaneo to retrieve
* @return the ResponseEntity with status 200 (OK) and with body the budgetTemporaneo, or with status 404 (Not Found)
*/
@GetMapping("/budget-temporaneos/{id}")
@Timed
public ResponseEntity<BudgetTemporaneo> getBudgetTemporaneo(@PathVariable Long id) {
log.debug("REST request to get BudgetTemporaneo : {}", id);
BudgetTemporaneo budgetTemporaneo = budgetTemporaneoService.findOne(id);
return ResponseUtil.wrapOrNotFound(Optional.ofNullable(budgetTemporaneo));
}
/**
* DELETE /budget-temporaneos/:id : delete the "id" budgetTemporaneo.
*
* @param id the id of the budgetTemporaneo to delete
* @return the ResponseEntity with status 200 (OK)
*/
@DeleteMapping("/budget-temporaneos/{id}")
@Timed
public ResponseEntity<Void> deleteBudgetTemporaneo(@PathVariable Long id) {
log.debug("REST request to delete BudgetTemporaneo : {}", id);
budgetTemporaneoService.delete(id);
return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();
}
}
|
[
"="
] |
=
|
cbbe3affa6ae5b72336b31d6c944019eee720045
|
31b7a2a14964dc37c40646d1215ee73b747f7311
|
/contentcenter/src/main/java/com/soft/content/config/UserCenterRibbonConfig.java
|
77f27297198633933dc9f9b2addbfc3dc68e75d4
|
[] |
no_license
|
valleytrees/high-concurrency
|
2716329f539312214c1e8fea2e5dd381e6039915
|
a892e5aaadc471f5047089291c2efbda8eb00c72
|
refs/heads/master
| 2023-05-27T04:45:02.101631
| 2021-06-08T05:22:40
| 2021-06-08T05:22:40
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 466
|
java
|
package com.soft.content.config;
import org.springframework.context.annotation.Configuration;
/**
* @author 倪涛涛
* @version 1.0.0
* @ClassName UserCenterRibbonConfig.java
* @Description TODO
* @createTime 2020年09月25日 11:11:00
*/
@Configuration
//@RibbonClient(name = "user-center",configuration = RibbonConfiguration.class)
//@RibbonClients(defaultConfiguration = RibbonConfiguration.class)
public class UserCenterRibbonConfig {
}
|
[
"1914866205@qq.com"
] |
1914866205@qq.com
|
32de3b103149ac36e449691acced4593d4d3a2c5
|
e034eadd636b4a43f6c7b97627af7d718dec58ff
|
/ngpm/com.sap.trex.client/src/com/sap/trex/client/Property.java
|
874ebcbf391272541b7e72be2414c7a9b9c8bc9e
|
[] |
no_license
|
FURCAS-dev/FURCAS
|
ed89b3152a56466fee04285fa02b09d3124adf8f
|
1f5651283f45666792b4747c5ce97128807761f1
|
refs/heads/master
| 2020-06-03T21:46:35.150521
| 2017-08-09T10:20:45
| 2017-08-09T10:20:45
| 1,083,639
| 2
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,186
|
java
|
//
// TrexClient - (c) Copyright 2008-2009 SAP AG
//
// created from Property.xsd/wsdl. ! do not edit !
//
package com.sap.trex.client;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class Property
{
private String itsName;
private String itsValue;
public Property ()
{
itsName = "";
itsValue = "";
}
public void clear()
{
itsName = "";
itsValue = "";
}
public void read(InputStream theStream) throws IOException, TrexException
{
throw new TrexException(Error.TDBC_WRITE_ONLY,"Property");
}
public void write(OutputStream theStream) throws IOException, TrexException
{
theStream.writeString(itsName);
theStream.writeString(itsValue);
}
/**
* \class Property
*
* \var name -
* \var value -
*/
public String getName()
{
return itsName;
}
public void setName(String theName)
{
itsName = theName;
}
public String getValue()
{
return itsValue;
}
public void setValue(String theValue)
{
itsValue = theValue;
}
}
|
[
"goldschm@.fzi.de"
] |
goldschm@.fzi.de
|
6cfa8b2752711fa8a3f7e02d93d415622c30cee9
|
54c1dcb9a6fb9e257c6ebe7745d5008d29b0d6b6
|
/app/src/main/java/com/vivo/push/PushClient.java
|
546f3e19ed818f00a861f0e687d1aaba9bd89263
|
[] |
no_license
|
rcoolboy/guilvN
|
3817397da465c34fcee82c0ca8c39f7292bcc7e1
|
c779a8e2e5fd458d62503dc1344aa2185101f0f0
|
refs/heads/master
| 2023-05-31T10:04:41.992499
| 2021-07-07T09:58:05
| 2021-07-07T09:58:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,715
|
java
|
package com.vivo.push;
import android.content.Context;
import com.vivo.push.util.VivoPushException;
import java.util.ArrayList;
import java.util.List;
public class PushClient {
public static final String DEFAULT_REQUEST_ID = "1";
public static final Object SLOCK = new Object();
public static volatile PushClient sPushClient;
public PushClient(Context context) {
C4121p.m11080a().mo41093a(context);
}
private void checkParam(String str) {
if (str == null) {
throw new IllegalArgumentException("PushManager String param should not be " + str);
}
}
public static PushClient getInstance(Context context) {
if (sPushClient == null) {
synchronized (SLOCK) {
if (sPushClient == null) {
sPushClient = new PushClient(context.getApplicationContext());
}
}
}
return sPushClient;
}
public void bindAlias(String str, IPushActionListener iPushActionListener) {
checkParam(str);
C4121p.m11080a().mo41100a(str, iPushActionListener);
}
public void checkManifest() throws VivoPushException {
C4121p.m11080a().mo41106b();
}
public void delTopic(String str, IPushActionListener iPushActionListener) {
ArrayList<String> arrayList = new ArrayList<>(1);
arrayList.add(str);
C4121p.m11080a().mo41113b(arrayList, iPushActionListener);
}
public String getAlias() {
return C4121p.m11080a().mo41127l();
}
public String getRegId() {
return C4121p.m11080a().mo41121f();
}
public List<String> getTopics() {
return C4121p.m11080a().mo41116c();
}
public String getVersion() {
return "2.5.3";
}
public void initialize() {
C4121p.m11080a().mo41124i();
}
public boolean isSupport() {
return C4121p.m11080a().mo41119d();
}
public void setSystemModel(boolean z) {
C4121p.m11080a().mo41105a(z);
}
public void setTopic(String str, IPushActionListener iPushActionListener) {
ArrayList<String> arrayList = new ArrayList<>(1);
arrayList.add(str);
C4121p.m11080a().mo41103a(arrayList, iPushActionListener);
}
public void turnOffPush(IPushActionListener iPushActionListener) {
C4121p.m11080a().mo41108b(iPushActionListener);
}
public void turnOnPush(IPushActionListener iPushActionListener) {
C4121p.m11080a().mo41095a(iPushActionListener);
}
public void unBindAlias(String str, IPushActionListener iPushActionListener) {
checkParam(str);
C4121p.m11080a().mo41110b(str, iPushActionListener);
}
}
|
[
"593746220@qq.com"
] |
593746220@qq.com
|
57799674b4f144ffaf7ab7fa53ec7e759cdf3732
|
2a80c8f3004960d07f3461ab7f32072095fd3a67
|
/src/main/java/com/tencentcloudapi/vod/v20180717/models/MediaAiAnalysisCoverItem.java
|
5580584ff5a1d667a5dbdb0aea2b6a46f234a256
|
[
"Apache-2.0"
] |
permissive
|
kennyshittu/tencentcloud-sdk-java-intl-en
|
495a6e9cf3936406a0d95974aee666ded6632118
|
2ed6e287c3f451e3709791a3c7ac4b5316205670
|
refs/heads/master
| 2022-04-15T06:59:48.967043
| 2020-04-02T14:13:10
| 2020-04-02T14:13:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,487
|
java
|
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* 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.tencentcloudapi.vod.v20180717.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class MediaAiAnalysisCoverItem extends AbstractModel{
/**
* Address of intelligently generated cover.
*/
@SerializedName("CoverUrl")
@Expose
private String CoverUrl;
/**
* Confidence of intelligently generated cover between 0 and 100.
*/
@SerializedName("Confidence")
@Expose
private Float Confidence;
/**
* Get Address of intelligently generated cover.
* @return CoverUrl Address of intelligently generated cover.
*/
public String getCoverUrl() {
return this.CoverUrl;
}
/**
* Set Address of intelligently generated cover.
* @param CoverUrl Address of intelligently generated cover.
*/
public void setCoverUrl(String CoverUrl) {
this.CoverUrl = CoverUrl;
}
/**
* Get Confidence of intelligently generated cover between 0 and 100.
* @return Confidence Confidence of intelligently generated cover between 0 and 100.
*/
public Float getConfidence() {
return this.Confidence;
}
/**
* Set Confidence of intelligently generated cover between 0 and 100.
* @param Confidence Confidence of intelligently generated cover between 0 and 100.
*/
public void setConfidence(Float Confidence) {
this.Confidence = Confidence;
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap<String, String> map, String prefix) {
this.setParamSimple(map, prefix + "CoverUrl", this.CoverUrl);
this.setParamSimple(map, prefix + "Confidence", this.Confidence);
}
}
|
[
"hapsyou@foxmail.com"
] |
hapsyou@foxmail.com
|
c45ef5a8aba3332b0df9bd941e9c3f3fcfc20bc7
|
fca6e069c335dc8442618e36d4c0f97ede2c6a06
|
/src/com/mixshare/rapid_evolution/audio/util/ByteToSampleReader.java
|
a8026931778ec2b926dfbde356193d1551eafbe0
|
[] |
no_license
|
divideby0/RapidEvolution3
|
127255648bae55e778321067cd7bb5b979684b2c
|
f04058c6abfe520442a75b3485147f570f7d538e
|
refs/heads/master
| 2020-03-22T00:56:26.188151
| 2018-06-30T20:41:26
| 2018-06-30T20:41:26
| 139,274,034
| 0
| 0
| null | 2018-06-30T19:19:57
| 2018-06-30T19:19:57
| null |
UTF-8
|
Java
| false
| false
| 4,017
|
java
|
package com.mixshare.rapid_evolution.audio.util;
import org.tritonus.share.sampled.TConversionTool;
public class ByteToSampleReader {
public ByteToSampleReader() { }
public static double getSampleFromBytesNormalized(byte[] buffer, int offset, int bytespersample, boolean bigendian) {
double val = getSampleFromBytes(buffer, offset, bytespersample, bigendian);
if (bytespersample == 1) val /= (128.0);
else if (bytespersample == 2) val /= (32768.0);
else if (bytespersample == 3) val /= (8388606.0);
else if (bytespersample == 4) val /= (2147483648.0);
return val;
}
public static double getSampleFromBytesFactored(byte[] buffer, int offset, int bytespersample, boolean bigendian, double factor) {
double val = getSampleFromBytes(buffer, offset, bytespersample, bigendian);
if (bytespersample == 1) val /= (128.0 * factor);
else if (bytespersample == 2) val /= (32768.0 * factor);
else if (bytespersample == 3) val /= (8388606.0 * factor);
else if (bytespersample == 4) val /= (2147483648.0 * factor);
return val;
}
public static double getSampleFromBytes(byte[] buffer, int offset, int bytespersample, boolean bigendian) {
if (bytespersample == 1) {
if (bigendian) {
double sample = ( (buffer[offset] & 0xFF) - 128);
return sample;
} else {
double sample = buffer[offset];
return sample;
}
} else if (bytespersample == 2) {
if (bigendian) {
double sample = ( (buffer[offset + 0] << 8) | (buffer[offset + 1] & 0xFF) );
return sample;
} else {
double sample = ( (buffer[offset + 0] & 0xFF) | (buffer[offset + 1] << 8) );
return sample;
}
} else if (bytespersample == 3) {
if (bigendian) {
double sample = ( (buffer[offset + 0] << 16) | ((buffer[offset + 1] & 0xFF) << 8) | (buffer[offset + 2] & 0xFF) );
return sample;
} else {
double sample = ( (buffer[offset + 0] & 0xFF) | ((buffer[offset + 1] & 0xFF) << 8) | (buffer[offset + 2] << 16) );
return sample;
}
} else if (bytespersample == 4) {
if (bigendian) {
double sample = ( (buffer[offset + 0] << 24) | ((buffer[offset + 1] & 0xFF) << 16) | ((buffer[offset + 2] & 0xFF) << 8) | (buffer[offset + 3] & 0xFF) );
return sample;
} else {
double sample = ( (buffer[offset + 0] & 0xFF) | ((buffer[offset + 1] & 0xFF) << 8) | ((buffer[offset + 2] & 0xFF) << 16) | (buffer[offset + 3] << 24) );
return sample;
}
}
return 0.0;
}
public static void setBytesFromSample(double sample, byte[] buffer, int offset, int bytespersample, boolean bigendian) {
if (bytespersample == 1) {
byte val = (byte)sample;
buffer[offset] = val;
} else if (bytespersample == 2) {
int val = (int)sample;
TConversionTool.intToBytes16(val, buffer, offset, bigendian);
} else if (bytespersample == 3) {
int val = (int)sample;
TConversionTool.intToBytes24(val, buffer, offset, bigendian);
} else if (bytespersample == 4) {
int val = (int)sample;
TConversionTool.intToBytes32(val, buffer, offset, bigendian);
}
}
public static void setBytesFromNormalizedSample(double sample, byte[] buffer, int offset, int bytespersample, boolean bigendian) {
if (bytespersample == 1) sample *= 127.0;
else if (bytespersample == 2) sample *= 32767.0;
else if (bytespersample == 3) sample *= 8388605.0;
else if (bytespersample == 4) sample *= 2147483647.0;
setBytesFromSample(sample, buffer, offset, bytespersample, bigendian);
}
}
|
[
"jbickmore@gmail.com"
] |
jbickmore@gmail.com
|
da1b28650b4b5db11eaac81bdea01ca9fa9524b2
|
ba77e0c5f213c6eeecb7ef0a07589f5b45f6ddbf
|
/src/main/java/p455w0rd/ae2wtlib/integration/JEI.java
|
7599ce652a26077df5acfb6b59a1061859488b29
|
[
"MIT"
] |
permissive
|
BernardoGrigiastro/AE2WirelessTerminalLibrary
|
7431500f8d7abd07338fbf7eecee066570d64f31
|
3c9717f1b1f281042cb3819d98bf67e3794b61a1
|
refs/heads/master
| 2022-03-27T19:52:49.733929
| 2019-11-20T19:24:13
| 2019-11-20T19:24:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,517
|
java
|
package p455w0rd.ae2wtlib.integration;
import mezz.jei.api.*;
import mezz.jei.api.ingredients.VanillaTypes;
import mezz.jei.api.recipe.VanillaRecipeCategoryUid;
import mezz.jei.plugins.vanilla.crafting.ShapelessRecipeWrapper;
import net.minecraft.item.ItemStack;
import p455w0rd.ae2wtlib.api.WTApi;
import p455w0rd.ae2wtlib.init.LibItems;
import p455w0rd.ae2wtlib.recipe.RecipeAddTerminal;
import p455w0rd.ae2wtlib.recipe.RecipeNewTerminal;
/**
* @author p455w0rd
*
*/
@JEIPlugin
public class JEI implements IModPlugin {
@Override
public void register(final IModRegistry registry) {
registry.addIngredientInfo(new ItemStack(LibItems.ULTIMATE_TERMINAL), VanillaTypes.ITEM, "jei.wut.desc");
registry.addRecipes(RecipeNewTerminal.getRecipes(), VanillaRecipeCategoryUid.CRAFTING);
registry.addRecipes(RecipeAddTerminal.getRecipes(), VanillaRecipeCategoryUid.CRAFTING);
registry.handleRecipes(RecipeNewTerminal.class, recipe -> new ShapelessRecipeWrapper<>(registry.getJeiHelpers(), recipe), VanillaRecipeCategoryUid.CRAFTING);
registry.handleRecipes(RecipeAddTerminal.class, recipe -> new ShapelessRecipeWrapper<>(registry.getJeiHelpers(), recipe), VanillaRecipeCategoryUid.CRAFTING);
if (!WTApi.instance().getConfig().isInfinityBoosterCardEnabled()) {
registry.getJeiHelpers().getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(WTApi.instance().getBoosterCard()));
}
}
public static boolean isIngrediantOverlayActive() {
return mezz.jei.config.Config.isOverlayEnabled();
}
}
|
[
"p455w0rd@gmail.com"
] |
p455w0rd@gmail.com
|
8672c09489eaa29065767a053c7956889fdb0a02
|
0753867c790281239b8f213ac547d5b6a8451a33
|
/ex_lib/simple_rt/src/java/io/PrintStream.java
|
ee7d489a594866ba18dcd9fc1337371da409f1e1
|
[
"LicenseRef-scancode-public-domain"
] |
permissive
|
zhujiabin/miniJVM
|
386325e8554a6cbaa2442096a16b91767d75d4a7
|
4ae1cd1a40c5e23cb8f4bec0ebe1a3b94c611d8c
|
refs/heads/master
| 2020-04-28T05:57:09.444049
| 2019-03-07T08:17:27
| 2019-03-07T08:17:27
| 175,038,279
| 1
| 0
| null | 2019-03-11T16:14:52
| 2019-03-11T16:14:51
| null |
UTF-8
|
Java
| false
| false
| 1,413
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package java.io;
import java.lang.Integer;
import java.lang.String;
/**
*
* @author gust
*/
public class PrintStream {
public PrintStream() {
}
public void print(String s) {
printImpl(s);
}
public void println(String s) {
printImpl(s + "\n");
}
public void print(int v) {
printImpl(Integer.toString(v));
}
public void println(int v) {
printImpl(Integer.toString(v) + "\n");
}
public void print(long v) {
printImpl(Long.toString(v));
}
public void println(long v) {
printImpl(Long.toString(v) + "\n");
}
public void print(float d) {
printImpl(Double.toString(d));
}
public void println(float d) {
printImpl(Double.toString(d) + "\n");
}
public void print(double d) {
printImpl(Double.toString(d));
}
public void println(double d) {
printImpl(Double.toString(d) + "\n");
}
public void println() {
printImpl(new String("\n"));
}
// void printImpl(String s){
// java.lang.System.out.println("");
// }
static native void printImpl(String s);
}
|
[
"digitalgust@163.com"
] |
digitalgust@163.com
|
548ddd4e153660de5473b1cd95a7d0e999390c70
|
04e38c40679b0fd2236a697d7a43685faed00057
|
/examples/src/test/java/org/interfacegen/examples/OneMethodTest.java
|
3fe241c3d781b152806d3ae89d87e3085d0e85c6
|
[
"Apache-2.0"
] |
permissive
|
stephenh/interfacegen
|
b9fab2346e4a7667c082ab1ae7e6a51d3725d860
|
46b544961e1140a5b50c10d8dc85042d031a8853
|
refs/heads/master
| 2021-01-25T08:54:02.583559
| 2010-04-06T21:39:42
| 2010-04-06T21:39:42
| 481,753
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 205
|
java
|
package org.interfacegen.examples;
import junit.framework.TestCase;
public class OneMethodTest extends TestCase {
public void testOneMethod() {
IOneMethod m = new OneMethod();
m.fooMethod();
}
}
|
[
"stephen@exigencecorp.com"
] |
stephen@exigencecorp.com
|
b65a88f86d9d5eeafa451ab2c7196ffa18cdaaf6
|
5e420be994f45c4c2dedc44cf8f4a1b5e3e78e01
|
/src/main/java/com/pedrovisk/jhipster/web/rest/errors/BadRequestAlertException.java
|
8f3c4df6fd3d14db69f3abb213d993f132958899
|
[] |
no_license
|
Pedro-Thales/jhipster-sample-application
|
b48e43dddb0fba421b1d776ec10abca59e814176
|
12ca874622194ed6c66ce43ac8104246a3f069c7
|
refs/heads/main
| 2023-01-28T21:41:44.242707
| 2020-12-02T17:12:24
| 2020-12-02T17:12:24
| 317,934,802
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,323
|
java
|
package com.pedrovisk.jhipster.web.rest.errors;
import java.net.URI;
import java.util.HashMap;
import java.util.Map;
import org.zalando.problem.AbstractThrowableProblem;
import org.zalando.problem.Status;
public class BadRequestAlertException extends AbstractThrowableProblem {
private static final long serialVersionUID = 1L;
private final String entityName;
private final String errorKey;
public BadRequestAlertException(String defaultMessage, String entityName, String errorKey) {
this(ErrorConstants.DEFAULT_TYPE, defaultMessage, entityName, errorKey);
}
public BadRequestAlertException(URI type, String defaultMessage, String entityName, String errorKey) {
super(type, defaultMessage, Status.BAD_REQUEST, null, null, null, getAlertParameters(entityName, errorKey));
this.entityName = entityName;
this.errorKey = errorKey;
}
public String getEntityName() {
return entityName;
}
public String getErrorKey() {
return errorKey;
}
private static Map<String, Object> getAlertParameters(String entityName, String errorKey) {
Map<String, Object> parameters = new HashMap<>();
parameters.put("message", "error." + errorKey);
parameters.put("params", entityName);
return parameters;
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
b3933b7241c12ff195e318fd5b74b39baf1fafbc
|
e42c98daf48cb6b70e3dbd5f5af3517d901a06ab
|
/modules/uctool-manager/src/main/java/com/cisco/axl/api/_10/ListProcessNodeReq.java
|
0f27e654aaf8ff906b60b5d4f717f9845dc7a889
|
[] |
no_license
|
mgnext/UCTOOL
|
c238d8f295e689a8babcc1156eb0b487cba31da0
|
5e7aeb422a33b3cf33fca0231616ac0416d02f1a
|
refs/heads/master
| 2020-06-03T04:07:57.650216
| 2015-08-07T10:44:04
| 2015-08-07T10:44:04
| 39,693,900
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,913
|
java
|
package com.cisco.axl.api._10;
import java.math.BigInteger;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ListProcessNodeReq complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ListProcessNodeReq">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="searchCriteria">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="processNodeRole" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="returnedTags" type="{http://www.cisco.com/AXL/API/10.5}LProcessNode"/>
* <element name="skip" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" minOccurs="0"/>
* <element name="first" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" minOccurs="0"/>
* </sequence>
* <attribute name="sequence" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ListProcessNodeReq", propOrder = {
"searchCriteria",
"returnedTags",
"skip",
"first"
})
public class ListProcessNodeReq {
@XmlElement(required = true)
protected ListProcessNodeReq.SearchCriteria searchCriteria;
@XmlElement(required = true)
protected LProcessNode returnedTags;
@XmlSchemaType(name = "unsignedLong")
protected BigInteger skip;
@XmlSchemaType(name = "unsignedLong")
protected BigInteger first;
@XmlAttribute(name = "sequence")
@XmlSchemaType(name = "unsignedLong")
protected BigInteger sequence;
/**
* Gets the value of the searchCriteria property.
*
* @return
* possible object is
* {@link ListProcessNodeReq.SearchCriteria }
*
*/
public ListProcessNodeReq.SearchCriteria getSearchCriteria() {
return searchCriteria;
}
/**
* Sets the value of the searchCriteria property.
*
* @param value
* allowed object is
* {@link ListProcessNodeReq.SearchCriteria }
*
*/
public void setSearchCriteria(ListProcessNodeReq.SearchCriteria value) {
this.searchCriteria = value;
}
/**
* Gets the value of the returnedTags property.
*
* @return
* possible object is
* {@link LProcessNode }
*
*/
public LProcessNode getReturnedTags() {
return returnedTags;
}
/**
* Sets the value of the returnedTags property.
*
* @param value
* allowed object is
* {@link LProcessNode }
*
*/
public void setReturnedTags(LProcessNode value) {
this.returnedTags = value;
}
/**
* Gets the value of the skip property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getSkip() {
return skip;
}
/**
* Sets the value of the skip property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setSkip(BigInteger value) {
this.skip = value;
}
/**
* Gets the value of the first property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getFirst() {
return first;
}
/**
* Sets the value of the first property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setFirst(BigInteger value) {
this.first = value;
}
/**
* Gets the value of the sequence property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getSequence() {
return sequence;
}
/**
* Sets the value of the sequence property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setSequence(BigInteger value) {
this.sequence = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="processNodeRole" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"name",
"description",
"processNodeRole"
})
public static class SearchCriteria {
protected String name;
protected String description;
protected String processNodeRole;
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the processNodeRole property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProcessNodeRole() {
return processNodeRole;
}
/**
* Sets the value of the processNodeRole property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProcessNodeRole(String value) {
this.processNodeRole = value;
}
}
}
|
[
"agentmilindu@gmail.com"
] |
agentmilindu@gmail.com
|
1043c23804733b9a4bc6d38c11dfc94a1b54b2f6
|
506cbb3a7e991221063095c1861ade0d6afea15d
|
/src/main/java/com/codetaylor/mc/dropt/modules/dropt/rule/parse/ParserRuleMatchBlocks.java
|
78e8aa1e517e5140ed5914bf4b3073642c7e357d
|
[
"Apache-2.0"
] |
permissive
|
WolfieWaffle/dropt
|
93fe18157700e233a0c70b6d08e5239c9fef84d1
|
d0388b9e5d8c1db1fee4ae4bed3b8c208ce77a8e
|
refs/heads/master
| 2020-06-14T08:43:08.032853
| 2019-06-30T18:18:49
| 2019-06-30T18:18:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,087
|
java
|
package com.codetaylor.mc.dropt.modules.dropt.rule.parse;
import com.codetaylor.mc.athenaeum.parser.recipe.item.MalformedRecipeItemException;
import com.codetaylor.mc.athenaeum.parser.recipe.item.ParseResult;
import com.codetaylor.mc.athenaeum.parser.recipe.item.RecipeItemParser;
import com.codetaylor.mc.dropt.modules.dropt.rule.data.Rule;
import com.codetaylor.mc.dropt.modules.dropt.rule.data.RuleList;
import com.codetaylor.mc.dropt.modules.dropt.rule.log.ILogger;
import com.codetaylor.mc.dropt.modules.dropt.rule.log.DebugFileWrapper;
import com.codetaylor.mc.dropt.modules.dropt.rule.match.BlockMatchEntry;
import net.minecraft.block.Block;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.common.registry.ForgeRegistries;
import net.minecraftforge.oredict.OreDictionary;
public class ParserRuleMatchBlocks
implements IRuleListParser {
@Override
public void parse(
RecipeItemParser parser, RuleList ruleList, Rule rule, ILogger logger, DebugFileWrapper debugFileWrapper
) {
if (rule.match == null) {
if (rule.debug) {
debugFileWrapper.debug("[PARSE] Match object not defined, skipped parsing block match");
}
return;
}
if (rule.match.blocks == null || rule.match.blocks.blocks.length == 0) {
if (rule.debug) {
debugFileWrapper.debug("[PARSE] No block matches defined, skipped parsing block match");
}
return;
}
for (String string : rule.match.blocks.blocks) {
String[] split = string.split(",");
ParseResult parse;
try {
parse = parser.parse(split[0]);
} catch (MalformedRecipeItemException e) {
logger.error("[PARSE] Unable to parse block <" + split[0] + "> in file: " + ruleList._filename, e);
continue;
}
if (rule.debug) {
debugFileWrapper.debug("[PARSE] Parsed block match: " + parse);
}
Block block = ForgeRegistries.BLOCKS.getValue(new ResourceLocation(parse.getDomain(), parse.getPath()));
if (block == null) {
logger.error("[PARSE] Unable to find registered block: " + parse.toString());
continue;
}
if (rule.debug) {
debugFileWrapper.debug("[PARSE] Found registered block: " + block);
}
int meta = parse.getMeta();
int[] metas = new int[Math.max(split.length - 1, 0)];
for (int i = 1; i < split.length; i++) {
if ("*".equals(split[i].trim())) {
meta = OreDictionary.WILDCARD_VALUE;
metas = new int[0];
break;
}
try {
metas[i - 1] = Integer.valueOf(split[i].trim());
} catch (Exception e) {
logger.error("[PARSE] Unable to parse extra meta for <" + string + "> in file: " + ruleList._filename, e);
}
}
BlockMatchEntry blockMatchEntry = new BlockMatchEntry(parse.getDomain(), parse.getPath(), meta, metas);
rule.match.blocks._blocks.add(blockMatchEntry);
if (rule.debug) {
debugFileWrapper.debug("[PARSE] Added block matcher: " + blockMatchEntry);
}
}
}
}
|
[
"jason@codetaylor.com"
] |
jason@codetaylor.com
|
2868f4b85e85299ca04ac7e77cd1cfc0796bb6b4
|
9d32980f5989cd4c55cea498af5d6a413e08b7a2
|
/A72n_10_0_0/src/main/java/com/android/server/wm/ClientLifecycleManager.java
|
5bce15ab3315bbaeca2fd383f6b3446233033b62
|
[] |
no_license
|
liuhaosource/OppoFramework
|
e7cc3bcd16958f809eec624b9921043cde30c831
|
ebe39acabf5eae49f5f991c5ce677d62b683f1b6
|
refs/heads/master
| 2023-06-03T23:06:17.572407
| 2020-11-30T08:40:07
| 2020-11-30T08:40:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,412
|
java
|
package com.android.server.wm;
import android.app.IApplicationThread;
import android.app.servertransaction.ActivityLifecycleItem;
import android.app.servertransaction.ClientTransaction;
import android.app.servertransaction.ClientTransactionItem;
import android.os.Binder;
import android.os.IBinder;
import android.os.RemoteException;
/* access modifiers changed from: package-private */
public class ClientLifecycleManager {
ClientLifecycleManager() {
}
/* access modifiers changed from: package-private */
public void scheduleTransaction(ClientTransaction transaction) throws RemoteException {
IApplicationThread client = transaction.getClient();
ClientLifecycleMonitor.getInstance().transactionStart(transaction);
transaction.schedule();
if (!(client instanceof Binder)) {
transaction.recycle();
}
}
/* access modifiers changed from: package-private */
public void scheduleTransaction(IApplicationThread client, IBinder activityToken, ActivityLifecycleItem stateRequest) throws RemoteException {
scheduleTransaction(transactionWithState(client, activityToken, stateRequest));
}
/* access modifiers changed from: package-private */
public void scheduleTransaction(IApplicationThread client, IBinder activityToken, ClientTransactionItem callback) throws RemoteException {
scheduleTransaction(transactionWithCallback(client, activityToken, callback));
}
/* access modifiers changed from: package-private */
public void scheduleTransaction(IApplicationThread client, ClientTransactionItem callback) throws RemoteException {
scheduleTransaction(transactionWithCallback(client, null, callback));
}
private static ClientTransaction transactionWithState(IApplicationThread client, IBinder activityToken, ActivityLifecycleItem stateRequest) {
ClientTransaction clientTransaction = ClientTransaction.obtain(client, activityToken);
clientTransaction.setLifecycleStateRequest(stateRequest);
return clientTransaction;
}
private static ClientTransaction transactionWithCallback(IApplicationThread client, IBinder activityToken, ClientTransactionItem callback) {
ClientTransaction clientTransaction = ClientTransaction.obtain(client, activityToken);
clientTransaction.addCallback(callback);
return clientTransaction;
}
}
|
[
"dstmath@163.com"
] |
dstmath@163.com
|
55608810938ebabdf744ef14f96577a3a85fc146
|
329b2cb3c91a0c953458efd253c4fcdce6f539c4
|
/graphsdk/src/main/java/com/microsoft/graph/generated/IBaseWorkbookTableConvertToRangeRequestBuilder.java
|
3577b6dfa4807c78d308306af81dad1096d94f5c
|
[
"MIT"
] |
permissive
|
sbolotovms/msgraph-sdk-android
|
255eeddf19c1b15f04ee3b1549f0cae70d561fdd
|
1320795ba1c0b5eb36ef8252b73799d15fc46ba1
|
refs/heads/master
| 2021-01-20T05:09:00.148739
| 2017-04-28T23:20:23
| 2017-04-28T23:20:23
| 89,751,501
| 1
| 0
| null | 2017-04-28T23:20:37
| 2017-04-28T23:20:37
| null |
UTF-8
|
Java
| false
| false
| 1,485
|
java
|
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.generated;
import com.microsoft.graph.concurrency.*;
import com.microsoft.graph.core.*;
import com.microsoft.graph.extensions.*;
import com.microsoft.graph.http.*;
import com.microsoft.graph.generated.*;
import com.microsoft.graph.options.*;
import com.microsoft.graph.serializer.*;
import java.util.Arrays;
import java.util.List;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The interface for the Base Workbook Table Convert To Range Request Builder.
*/
public interface IBaseWorkbookTableConvertToRangeRequestBuilder extends IRequestBuilder {
/**
* Creates the IWorkbookTableConvertToRangeRequest
*
* @return The IWorkbookTableConvertToRangeRequest instance
*/
IWorkbookTableConvertToRangeRequest buildRequest();
/**
* Creates the IWorkbookTableConvertToRangeRequest with specific options instead of the existing options
*
* @param requestOptions the options for the request
* @return The IWorkbookTableConvertToRangeRequest instance
*/
IWorkbookTableConvertToRangeRequest buildRequest(final List<Option> requestOptions);
}
|
[
"brianmel@microsoft.com"
] |
brianmel@microsoft.com
|
95533794e13c176a6ada4a4b935e75fc36c04ef3
|
34c3b0887f71165a6d4a533bc06ffa2624c2dc10
|
/summer-alipay-core/src/main/java/com/alipay/api/domain/Material.java
|
b8f9592b4b5b6efd3143e6d403334a9c4961f87b
|
[] |
no_license
|
songhaoran/summer-alipay
|
91a7a7fdddf67265241785cd6bb2b784c0f0f1c4
|
d02e33d9ab679dfc56160af4abd759c0abb113a4
|
refs/heads/master
| 2021-05-04T16:39:11.272890
| 2018-01-17T09:52:32
| 2018-01-17T09:52:32
| 120,255,759
| 1
| 0
| null | 2018-02-05T04:42:15
| 2018-02-05T04:42:15
| null |
UTF-8
|
Java
| false
| false
| 1,271
|
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, 2016-12-02 15:56:25
*/
public class Material extends AlipayObject {
private static final long serialVersionUID = 8853395383182559114L;
/**
* 图文消息子消息项集合,单条消息最多6个子项,否则会发送失败
*/
@ApiListField("articles")
@ApiField("article")
private List<Article> articles;
/**
* 消息类型,text:文本类型,image-text:图文类型。当消息类型为text时,text参数必传,当消息类型为image-text时,articles参数必传
*/
@ApiField("msg_type")
private String msgType;
/**
* 文本消息内容
*/
@ApiField("text")
private Text text;
public List<Article> getArticles() {
return this.articles;
}
public void setArticles(List<Article> articles) {
this.articles = articles;
}
public String getMsgType() {
return this.msgType;
}
public void setMsgType(String msgType) {
this.msgType = msgType;
}
public Text getText() {
return this.text;
}
public void setText(Text text) {
this.text = text;
}
}
|
[
"1467237221@qq.com"
] |
1467237221@qq.com
|
07c92a3c1a2d6369e3d26dc1ba3efbcd0bfa8bbf
|
a5957981f24989424a8e627af5089fb63cb6ce60
|
/src/com/bergerkiller/bukkit/tc/signactions/SignActionStation.java
|
c1dbc06e53d637aaa1a7f0fe276b2f40914651b1
|
[] |
no_license
|
Thulinma/TrainCarts
|
fc928f03ee61416c79785c2bc137c8a8ac4a367f
|
999d2694debe100b887d6a9a8703c32010080237
|
refs/heads/master
| 2021-01-18T08:55:27.299989
| 2012-01-11T16:49:56
| 2012-01-11T16:49:56
| 2,627,618
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,837
|
java
|
package com.bergerkiller.bukkit.tc.signactions;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.event.block.SignChangeEvent;
import org.bukkit.material.Rails;
import com.bergerkiller.bukkit.tc.MinecartGroup;
import com.bergerkiller.bukkit.tc.MinecartMember;
import com.bergerkiller.bukkit.tc.StationMode;
import com.bergerkiller.bukkit.tc.TrainCarts;
import com.bergerkiller.bukkit.tc.API.SignActionEvent;
import com.bergerkiller.bukkit.tc.actions.BlockActionSetLevers;
import com.bergerkiller.bukkit.tc.permissions.Permission;
import com.bergerkiller.bukkit.tc.utils.BlockUtil;
import com.bergerkiller.bukkit.tc.utils.FaceUtil;
public class SignActionStation extends SignAction {
@Override
public void execute(SignActionEvent info) {
if (info.isAction(SignActionType.REDSTONE_CHANGE, SignActionType.GROUP_ENTER, SignActionType.GROUP_LEAVE)) {
if (info.isTrainSign() || info.isCartSign()) {
if (info.isType("station")) {
if (info.hasRails()) {
MinecartGroup group = info.getGroup();
if (group != null) {
if (info.isAction(SignActionType.GROUP_LEAVE)) {
} else if (!info.isPowered()) {
group.clearActions();
} else {
//Check if not already targeting
if (group != null && info.hasRails()) {
//Get station length
double length = 0;
try {
length = Double.parseDouble(info.getLine(1).substring(7).trim());
} catch (Exception ex) {};
long delayMS = 0;
try {
delayMS = (long) (Double.parseDouble(info.getLine(2)) * 1000);
} catch (Exception ex) {};
//Get the mode used
StationMode mode = StationMode.fromString(info.getLine(3));
//Get the middle minecart
MinecartMember midd = group.middle();
//First, get the direction of the tracks above
BlockFace dir = info.getRailDirection();
//Get the length of the track to center in
if (length == 0) {
//manually calculate the length
//use the amount of straight blocks
for (BlockFace face : FaceUtil.getFaces(dir)) {
int tlength = 0;
//get the type of rail required
BlockFace checkface = face;
if (checkface == BlockFace.NORTH)
checkface = BlockFace.SOUTH;
if (checkface == BlockFace.EAST)
checkface = BlockFace.WEST;
Block b = info.getRails();
int maxlength = 20;
while (true) {
//Next until invalid
b = b.getRelative(face);
Rails rr = BlockUtil.getRails(b);
if (rr == null || rr.getDirection() != checkface)
break;
tlength++;
//prevent inf. loop or long processing
maxlength--;
if (maxlength <= 0) break;
}
//Update the length
if (length == 0 || tlength < length) length = tlength;
}
}
boolean west = info.isPowered(BlockFace.WEST);
boolean east = info.isPowered(BlockFace.EAST);
boolean north = info.isPowered(BlockFace.NORTH);
boolean south = info.isPowered(BlockFace.SOUTH);
//which directions to move, or brake?
BlockFace instruction = BlockFace.UP; //SELF is brake
if (dir == BlockFace.WEST) {
if (west && !east) {
instruction = BlockFace.WEST;
} else if (east && !west) {
instruction = BlockFace.EAST;
} else {
instruction = BlockFace.SELF;
}
} else if (dir == BlockFace.SOUTH) {
if (north && !south) {
instruction = BlockFace.NORTH;
} else if (south && !north) {
instruction = BlockFace.SOUTH;
} else {
instruction = BlockFace.SELF;
}
}
if (instruction == BlockFace.UP) return;
//What do we do?
if (instruction == BlockFace.SELF) {
if (north || east || south || west) {
//Redstone change and moving?
if (!info.isAction(SignActionType.REDSTONE_CHANGE) || !info.getMember().isMoving()) {
//Brake
//TODO: ADD CHECK?!
group.clearActions();
midd.addActionLaunch(info.getRailLocation(), 0);
BlockFace trainDirection = null;
if (mode == StationMode.CONTINUE) {
trainDirection = midd.getDirection();
} else if (mode == StationMode.REVERSE) {
trainDirection = midd.getDirection().getOppositeFace();
} else if (mode == StationMode.LEFT || mode == StationMode.RIGHT) {
trainDirection = info.getFacing();
//Convert
if (mode == StationMode.LEFT) {
trainDirection = FaceUtil.rotate(trainDirection, 2);
} else {
trainDirection = FaceUtil.rotate(trainDirection, -2);
}
}
if (trainDirection != null) {
//Actual launching here
if (delayMS > 0) {
if (TrainCarts.playSoundAtStation) group.addActionSizzle();
info.getGroup().addAction(new BlockActionSetLevers(info.getAttachedBlock(), true));
}
group.addActionWait(delayMS);
midd.addActionLaunch(trainDirection, length, TrainCarts.launchForce);
} else {
group.addActionWaitForever();
if (TrainCarts.playSoundAtStation) group.addActionSizzle();
info.getGroup().addAction(new BlockActionSetLevers(info.getAttachedBlock(), true));
}
}
}
} else {
//Launch
group.clearActions();
MinecartMember head = group.head();
if (delayMS > 0 || (head.isMoving() && head.getDirection() != instruction)) {
//Reversing or has delay, need to center it in the middle first
midd.addActionLaunch(info.getRailLocation(), 0);
}
if (delayMS > 0) {
if (TrainCarts.playSoundAtStation) group.addActionSizzle();
info.getGroup().addAction(new BlockActionSetLevers(info.getAttachedBlock(), true));
}
group.addActionWait(delayMS);
midd.addActionLaunch(instruction, length, TrainCarts.launchForce);
}
}
}
}
if (info.isAction(SignActionType.GROUP_LEAVE)) {
info.setLevers(false);
}
}
}
}
}
}
@Override
public void build(SignChangeEvent event, String type, SignActionMode mode) {
if (mode != SignActionMode.NONE) {
if (type.startsWith("station")) {
handleBuild(event, Permission.BUILD_STATION, "station", "stop, wait and launch trains");
}
}
}
}
|
[
"bergerkiller@gmail.com"
] |
bergerkiller@gmail.com
|
98db75bbd79608791b6e4856338962c6ea0d8805
|
29b6a856a81a47ebab7bfdba7fe8a7b845123c9e
|
/dingtalk/java/src/main/java/com/aliyun/dingtalkimpaas_1_0/models/GetConversationIdRequest.java
|
54aa673e0d5bee2c6cff2f2794b5ab5b131c10c7
|
[
"Apache-2.0"
] |
permissive
|
aliyun/dingtalk-sdk
|
f2362b6963c4dbacd82a83eeebc223c21f143beb
|
586874df48466d968adf0441b3086a2841892935
|
refs/heads/master
| 2023-08-31T08:21:14.042410
| 2023-08-30T08:18:22
| 2023-08-30T08:18:22
| 290,671,707
| 22
| 9
| null | 2021-08-12T09:55:44
| 2020-08-27T04:05:39
|
PHP
|
UTF-8
|
Java
| false
| false
| 884
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkimpaas_1_0.models;
import com.aliyun.tea.*;
public class GetConversationIdRequest extends TeaModel {
@NameInMap("appUid")
public String appUid;
@NameInMap("userId")
public String userId;
public static GetConversationIdRequest build(java.util.Map<String, ?> map) throws Exception {
GetConversationIdRequest self = new GetConversationIdRequest();
return TeaModel.build(map, self);
}
public GetConversationIdRequest setAppUid(String appUid) {
this.appUid = appUid;
return this;
}
public String getAppUid() {
return this.appUid;
}
public GetConversationIdRequest setUserId(String userId) {
this.userId = userId;
return this;
}
public String getUserId() {
return this.userId;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
8eecdd28300aec0070017830e0a0a9a297afb39b
|
65074aecb1ec800748d0e5a6a1c12b1396ce9582
|
/hc-meta-app/app/src/main/java/com/cloudminds/meta/service/navigation/LocationMonitor.java
|
65f057764e4654afa82ae0521a3b5f778ece661c
|
[] |
no_license
|
wqlljj/note
|
fe4011547899b469a5c179a813970af326f5c65f
|
792821980fb6087719012b943cc4e8dda69d3626
|
refs/heads/master
| 2021-06-27T16:28:49.376137
| 2019-06-11T03:39:52
| 2019-06-11T03:39:52
| 135,403,941
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,997
|
java
|
package com.cloudminds.meta.service.navigation;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.util.Log;
import com.amap.api.location.AMapLocation;
import com.amap.api.location.AMapLocationClient;
import com.amap.api.location.AMapLocationClientOption;
import com.amap.api.location.AMapLocationListener;
import com.amap.api.navi.model.NaviLatLng;
import com.cloudminds.hc.hariservice.HariServiceClient;
import com.cloudminds.hc.hariservice.utils.PreferenceUtils;
import com.cloudminds.meta.util.DeviceUtils;
import com.squareup.okhttp.Call;
import com.squareup.okhttp.Callback;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
/**
* Created by zoey on 17/5/15.
*/
public class LocationMonitor implements AMapLocationListener {
private final String TAG = "NAVI/LocationMonitor";
private static LocationMonitor locationMonitor;
private Context mContext;
private AMapLocationClient mLocationClient;
//声明mLocationOption对象
private AMapLocationClientOption mLocationOption;
public static String cityCode = "";
public static double curLatitude = 0.0; //当前位置纬度
public static double curLongitude = 0.0; //当前位置经度
private LocationObserver locationObserver;
private boolean enableReportLocation = false; //上传位置到hari 后台
//英文环境使用framwork提供的api
private LocationManager locationManager = null;
public static LocationMonitor instance(Context context){
if (null == locationMonitor){
locationMonitor = new LocationMonitor();
locationMonitor.init(context);
}
return locationMonitor;
}
public static LocationMonitor getInstance(){
return locationMonitor;
}
public void setEnableReportLocation(boolean enable){
enableReportLocation = enable;
}
public void init(Context context){
mContext = context;
if ("EN".equalsIgnoreCase(DeviceUtils.getSysLanguage())){
//initEn();
} else {
initCH();
}
}
private void initEn(){
if (ActivityCompat.checkSelfPermission(mContext, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(mContext, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
return;
}
String serviceString = Context.LOCATION_SERVICE;
locationManager = (LocationManager) mContext.getSystemService(serviceString);
locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 6000, 0, locationListener);
}
private void initCH(){
mLocationClient = new AMapLocationClient(mContext);
//初始化定位参数
mLocationOption = new AMapLocationClientOption();
//设置定位监听
mLocationClient.setLocationListener(this);
//设置定位模式为高精度模式,Battery_Saving为低功耗模式,Device_Sensors是仅设备模式
mLocationOption.setLocationMode(AMapLocationClientOption.AMapLocationMode.Hight_Accuracy);
//设置定位间隔,单位毫秒,默认为2000ms
mLocationOption.setInterval(2000);
//启用手机传感器 用来获取方向角
mLocationOption.setSensorEnable(true);
//设置定位参数
mLocationClient.setLocationOption(mLocationOption);
// 此方法为每隔固定时间会发起一次定位请求,为了减少电量消耗或网络流量消耗,
// 注意设置合适的定位时间的间隔(最小间隔支持为1000ms),并且在合适时间调用stopLocation()方法来取消定位请求
// 在定位结束后,在合适的生命周期调用onDestroy()方法
}
public NaviLatLng getCurPoint(){
NaviLatLng latLng = new NaviLatLng();
latLng.setLatitude(curLatitude);
latLng.setLongitude(curLongitude);
return latLng;
}
public void setLocationObserver(LocationObserver observer){
locationObserver = observer;
}
public void startLocation(LocationObserver observer){
if ("EN".equalsIgnoreCase(DeviceUtils.getSysLanguage())){
initEn();
} else {
boolean gpsEnable = PreferenceUtils.getPrefBoolean("GPSEnable",true);
if (gpsEnable){
locationObserver = observer;
mLocationClient.startLocation();
}
}
}
public void stopLocation(){
if (null != locationManager){
locationManager.removeUpdates(locationListener);
}
if (null != mLocationClient){
mLocationClient.stopLocation();
}
}
@Override
public void onLocationChanged(AMapLocation aMapLocation) {
if (aMapLocation != null) {
if (aMapLocation.getErrorCode() == 0) {
//定位成功回调信息,设置相关消息
curLatitude = aMapLocation.getLatitude();//获取纬度
curLongitude = aMapLocation.getLongitude();//获取经度
Log.d(TAG,"定位精度 : "+aMapLocation.getAccuracy());
if (cityCode.isEmpty()){
cityCode = aMapLocation.getCityCode();//城市编码
}
if (enableReportLocation){
reportLocation();
enableReportLocation = false;
}
} else {
//显示错误信息ErrCode是错误码,errInfo是错误信息,详见错误码表。
Log.d(TAG,"location Error, ErrCode:"
+ aMapLocation.getErrorCode() + ", errInfo:"
+ aMapLocation.getErrorInfo());
}
}
if (locationObserver != null){
locationObserver.onLocationChanged(aMapLocation);
}
}
public interface LocationObserver{
public void onLocationChanged(AMapLocation aMapLocation);
}
//英文环境下 位置更新回调
private final LocationListener locationListener = new LocationListener() {
@Override
public void onLocationChanged(Location location) {
curLongitude = location.getLongitude();
curLatitude = location.getLatitude();
}
@Override
public void onStatusChanged(String provider, int status, Bundle extras) {
}
@Override
public void onProviderEnabled(String provider) {
}
@Override
public void onProviderDisabled(String provider) {
}
};
public boolean isGpsEnabled(){
boolean enable = true;
LocationManager locationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE);
// 判断GPS模块是否开启,如果没有则开启
if (!locationManager.isProviderEnabled(android.location.LocationManager.GPS_PROVIDER)){
enable = false;
}
return enable;
}
private void reportLocation(){
Log.d(TAG, "reportRobotLocation"+"latitude:"+ curLatitude + " longitude:" + curLongitude);
JSONObject object = new JSONObject();
try {
object.put("type","reportLocation");
JSONObject locationInfo = new JSONObject();
locationInfo.put("lng",curLongitude);
locationInfo.put("lat",curLatitude);
object.put("data",locationInfo);
}catch (JSONException e){
e.printStackTrace();
}
HariServiceClient.getCommandEngine().sendData(object);
}
}
|
[
"qi.wang.x@cloudminds.com"
] |
qi.wang.x@cloudminds.com
|
bdb0487ab300db1cebac18334c409812c76d87e2
|
f55e0f08bbbbde3bbf06b83c822a93d54819b1e8
|
/app/src/main/java/com/jqsoft/nursing/rx/RxBusBaseMessage.java
|
4fedbb9fe8acca6e8456b3ed80026d77d8c47974
|
[] |
no_license
|
moshangqianye/nursing
|
27e58e30a51424502f1b636ae47b60b81a3b2ca0
|
20cd5aace59555ef9d708df0fb03639b2fc843d0
|
refs/heads/master
| 2020-09-08T13:39:55.939252
| 2020-03-20T09:55:34
| 2020-03-20T09:55:34
| 221,147,807
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 428
|
java
|
package com.jqsoft.nursing.rx;
/**
* Created by quantan.liu on 2017/3/10.
*/
public class RxBusBaseMessage {
private int code;
private Object object;
private RxBusBaseMessage(){}
public RxBusBaseMessage(int code, Object object){
this.code=code;
this.object=object;
}
public int getCode() {
return code;
}
public Object getObject() {
return object;
}
}
|
[
"123456"
] |
123456
|
a52538190278f7fde06448f2c78ba34278ae72b4
|
d74ae31c66c8493260e4dbf8b3cc87581337174c
|
/src/main/java/hello/repo/Customer146Repository.java
|
6cf4a31d0e18e62dcec316a48a294ffbd6e13422
|
[] |
no_license
|
scratches/spring-data-gazillions
|
72e36c78a327f263f0de46fcee991473aa9fb92c
|
858183c99841c869d688cdbc4f2aa0f431953925
|
refs/heads/main
| 2021-06-07T13:20:08.279099
| 2018-08-16T12:13:37
| 2018-08-16T12:13:37
| 144,152,360
| 0
| 0
| null | 2021-04-26T17:19:34
| 2018-08-09T12:53:18
|
Java
|
UTF-8
|
Java
| false
| false
| 279
|
java
|
package hello.repo;
import hello.model.Customer146;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer146Repository extends CrudRepository<Customer146, Long> {
List<Customer146> findByLastName(String lastName);
}
|
[
"dsyer@pivotal.io"
] |
dsyer@pivotal.io
|
8ec02b2a956d579b705bac2b821ad30c2d00879d
|
f28dce60491e33aefb5c2187871c1df784ccdb3a
|
/src/main/java/rx/internal/operators/OperatorZipIterable.java
|
67b59f1147616416687a8b3613c9a45d69eac3bc
|
[
"Apache-2.0"
] |
permissive
|
JackChan1999/boohee_v5.6
|
861a5cad79f2bfbd96d528d6a2aff84a39127c83
|
221f7ea237f491e2153039a42941a515493ba52c
|
refs/heads/master
| 2021-06-11T23:32:55.977231
| 2017-02-14T18:07:04
| 2017-02-14T18:07:04
| 81,962,585
| 8
| 6
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,304
|
java
|
package rx.internal.operators;
import java.util.Iterator;
import rx.Observable$Operator;
import rx.Subscriber;
import rx.exceptions.Exceptions;
import rx.functions.Func2;
import rx.observers.Subscribers;
public final class OperatorZipIterable<T1, T2, R> implements Observable$Operator<R, T1> {
final Iterable<? extends T2> iterable;
final Func2<? super T1, ? super T2, ? extends R> zipFunction;
public OperatorZipIterable(Iterable<? extends T2> iterable, Func2<? super T1, ? super T2, ? extends R> zipFunction) {
this.iterable = iterable;
this.zipFunction = zipFunction;
}
public Subscriber<? super T1> call(final Subscriber<? super R> subscriber) {
final Iterator<? extends T2> iterator = this.iterable.iterator();
try {
if (iterator.hasNext()) {
return new Subscriber<T1>(subscriber) {
boolean done;
public void onCompleted() {
if (!this.done) {
this.done = true;
subscriber.onCompleted();
}
}
public void onError(Throwable e) {
if (this.done) {
Exceptions.throwIfFatal(e);
return;
}
this.done = true;
subscriber.onError(e);
}
public void onNext(T1 t) {
if (!this.done) {
try {
subscriber.onNext(OperatorZipIterable.this.zipFunction.call(t, iterator.next()));
if (!iterator.hasNext()) {
onCompleted();
}
} catch (Throwable e) {
Exceptions.throwOrReport(e, this);
}
}
}
};
}
subscriber.onCompleted();
return Subscribers.empty();
} catch (Throwable e) {
Exceptions.throwOrReport(e, subscriber);
return Subscribers.empty();
}
}
}
|
[
"jackychan2040@gmail.com"
] |
jackychan2040@gmail.com
|
3a672820261432c24b8760cf300ffccf4b5748f6
|
342f92c326ab23ae70512356bb5568722aa81a7c
|
/ClavaWeaver/test/pt/up/fe/specs/cxxweaver/tests/CxxBenchTest.java
|
ba47a4fd2d46d0891ff2a6e9a32306fc321eb56b
|
[
"Apache-2.0"
] |
permissive
|
fabiodrg/clava
|
56082f69cf43ec3054c8b181cde3d0cda32562d5
|
c85df83eaf4fd2037e0b628d933ae2de4a372a35
|
refs/heads/master
| 2023-06-30T04:46:03.315347
| 2021-08-11T18:46:12
| 2021-08-11T18:46:12
| 369,831,920
| 0
| 0
|
Apache-2.0
| 2021-05-22T14:43:23
| 2021-05-22T14:43:22
| null |
UTF-8
|
Java
| false
| false
| 1,885
|
java
|
/**
* Copyright 2016 SPeCS.
*
* 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. under the License.
*/
package pt.up.fe.specs.cxxweaver.tests;
import org.junit.After;
import org.junit.BeforeClass;
import org.junit.Test;
import pt.up.fe.specs.clava.language.Standard;
import pt.up.fe.specs.cxxweaver.ClavaWeaverTester;
import pt.up.fe.specs.util.SpecsSystem;
public class CxxBenchTest {
@BeforeClass
public static void setupOnce() {
SpecsSystem.programStandardInit();
ClavaWeaverTester.clean();
}
@After
public void tearDown() {
ClavaWeaverTester.clean();
}
private static ClavaWeaverTester newTester() {
return new ClavaWeaverTester("clava/test/bench/", Standard.CXX11)
.setResultPackage("cpp/results")
.setSrcPackage("cpp/src");
}
@Test
public void testLoicEx1() {
newTester().test("LoicEx1.lara", "loic_ex1.cpp");
}
@Test
public void testLoicEx2() {
newTester().setCheckWovenCodeSyntax(false).test("LoicEx2.lara", "loic_ex2.cpp");
}
@Test
public void testLoicEx3() {
// newTester().setCheckWovenCodeSyntax(false).test("LoicEx3.lara", "loic_ex3.cpp");
newTester().test("LoicEx3.lara", "loic_ex3.cpp");
}
@Test
public void testLSIssue2() {
newTester().test("LSIssue2.lara", "ls_issue2.cpp");
}
}
|
[
"joaobispo@gmail.com"
] |
joaobispo@gmail.com
|
41bca3fdae613c658708c1b6baebb00092580fe7
|
44308a812aadf60910509d94de39e8a511d6e91e
|
/app/src/main/java/android/renderscript/ScriptIntrinsicResize.java
|
83185e48c72c419bf30de04f89a1350586af5544
|
[] |
no_license
|
longyinzaitian/Android27Source
|
31e01e83bc891e3602484b91b7eab325a22747ce
|
9b982c844adbfd54f92facb7e4caf46ee40e2692
|
refs/heads/master
| 2020-03-08T15:54:54.433791
| 2018-04-10T09:44:25
| 2018-04-10T09:44:25
| 128,224,765
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,654
|
java
|
/*
* Copyright (C) 2014 The Android Open Source Project
*
* 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 android.renderscript;
/**
* Intrinsic for performing a resize of a 2D allocation.
*/
public final class ScriptIntrinsicResize extends ScriptIntrinsic {
private Allocation mInput;
private ScriptIntrinsicResize(long id, RenderScript rs) {
super(id, rs);
}
/**
* Supported elements types are {@link Element#U8}, {@link
* Element#U8_2}, {@link Element#U8_3}, {@link Element#U8_4}
* {@link Element#F32}, {@link Element#F32_2}, {@link
* Element#F32_3}, {@link Element#F32_4}
*
* @param rs The RenderScript context
*
* @return ScriptIntrinsicResize
*/
public static ScriptIntrinsicResize create(RenderScript rs) {
long id = rs.nScriptIntrinsicCreate(12, 0);
ScriptIntrinsicResize si = new ScriptIntrinsicResize(id, rs);
return si;
}
/**
* Set the input of the resize.
* Must match the element type supplied during create.
*
* @param ain The input allocation.
*/
public void setInput(Allocation ain) {
Element e = ain.getElement();
if (!e.isCompatible(Element.U8(mRS)) &&
!e.isCompatible(Element.U8_2(mRS)) &&
!e.isCompatible(Element.U8_3(mRS)) &&
!e.isCompatible(Element.U8_4(mRS)) &&
!e.isCompatible(Element.F32(mRS)) &&
!e.isCompatible(Element.F32_2(mRS)) &&
!e.isCompatible(Element.F32_3(mRS)) &&
!e.isCompatible(Element.F32_4(mRS))) {
throw new RSIllegalArgumentException("Unsupported element type.");
}
mInput = ain;
setVar(0, ain);
}
/**
* Get a FieldID for the input field of this intrinsic.
*
* @return Script.FieldID The FieldID object.
*/
public FieldID getFieldID_Input() {
return createFieldID(0, null);
}
/**
* Resize copy the input allocation to the output specified. The
* Allocation is rescaled if necessary using bi-cubic
* interpolation.
*
* @param aout Output allocation. Element type must match
* current input. Must not be same as input.
*/
public void forEach_bicubic(Allocation aout) {
if (aout == mInput) {
throw new RSIllegalArgumentException("Output cannot be same as Input.");
}
forEach_bicubic(aout, null);
}
/**
* Resize copy the input allocation to the output specified. The
* Allocation is rescaled if necessary using bi-cubic
* interpolation.
*
* @param aout Output allocation. Element type must match
* current input.
* @param opt LaunchOptions for clipping
*/
public void forEach_bicubic(Allocation aout, LaunchOptions opt) {
forEach(0, (Allocation) null, aout, null, opt);
}
/**
* Get a KernelID for this intrinsic kernel.
*
* @return Script.KernelID The KernelID object.
*/
public KernelID getKernelID_bicubic() {
return createKernelID(0, 2, null, null);
}
}
|
[
"1536132397@qq.com"
] |
1536132397@qq.com
|
cbbfbb78800b9c0654264b2881e71da9102ae80c
|
1ea83c6b176ad0b5c8d6f43bb9e942a90b0729bb
|
/app/src/main/java/com/howell/action/PlatformAction.java
|
116834f6e839dc10226be8c0ff3a47cce3377d7a
|
[] |
no_license
|
Bjelijah/EcamH265AS
|
bd2e61567f274b58d01d3ce2a3dbe715e006f4b7
|
85fff49782554d611ff575c062afd3f1f7600156
|
refs/heads/master
| 2021-01-12T14:45:57.533948
| 2017-08-21T06:29:56
| 2017-08-21T06:29:56
| 72,078,807
| 6
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,623
|
java
|
package com.howell.action;
import android.os.AsyncTask;
import android.os.Handler;
import android.util.Log;
import com.howell.entityclass.Device;
import com.howell.entityclass.NodeDetails;
import com.howell.protocol.GetNATServerReq;
import com.howell.protocol.GetNATServerRes;
import com.howell.protocol.LoginRequest;
import com.howell.protocol.LoginResponse;
import com.howell.protocol.SoapManager;
import com.howell.utils.DecodeUtils;
import com.howell.utils.IConst;
import java.util.List;
public class PlatformAction implements IConst{
private static PlatformAction mInstance = null;
private PlatformAction() { }
public static PlatformAction getInstance(){
if(mInstance == null){
mInstance = new PlatformAction();
}
return mInstance;
}
SoapManager mSoapManager = SoapManager.getInstance();
private String turnServerIp = null;
private int turnServerPort = -1;
private String device_id = null;
private String deviceID = null;
private String account = null;
private String password= null;
private boolean isTest = false;//是用100868账号登入试用e看
private NodeDetails curSelNode= null;
List<Device> deviceList = null;
public boolean isTest(){
return isTest;
}
public void setIsTest(boolean isTest){
this.isTest = isTest;
}
public void setCurSelNode(NodeDetails node){
this.curSelNode = node;
}
public NodeDetails getCurSelNode(){
return curSelNode;
}
public void setDeviceID(String deviceID){
Log.e("123","~~~~~~~~ PlatformAction set dev id="+deviceID);
this.deviceID = deviceID;
}
public String getDeviceID(){
return this.deviceID;
}
public List<Device> getDeviceList() {
return deviceList;
}
public void setDeviceList(List<Device> deviceList) {
this.deviceList = deviceList;
}
public String getDevice_id() {
return device_id;
}
public String getDevice_id(int index){
if(deviceList==null)return null;
if(index>deviceList.size())return null;
return deviceList.get(index).getDeviceID();
}
public void setDevice_id(String device_id) {
this.device_id = device_id;
}
public void setDevice_id(int index){
if(deviceList==null)return;
if(index>deviceList.size())return;
this.device_id = deviceList.get(index).getDeviceID();
}
public String getAccount() {
return account;
}
public void setAccount(String account) {
this.account = account;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getDeviceId(){
// return device_id;
return this.deviceID;
}
public String getCurSelDeviceId(){
return getDeviceId();
}
public void setCurSelDeviceId(String deviceId){
setDevice_id(deviceId);
}
public void setTurnServerIP(String turnServerIp){
// Log.i("123","~~~~~~turnServerIP="+turnServerIp);
this.turnServerIp = turnServerIp;
}
public String getTurnServerIP(){
return this.turnServerIp;
}
public void setTurnServerPort(int turnServerPort){
// Log.i("123","~~~~~turnServerPort="+turnServerPort);
this.turnServerPort = turnServerPort;
}
public int getTurnServerPort(){
return turnServerPort;
}
Handler handler;
public void setHandler(Handler handler){
this.handler = handler;
}
/**
* @Deprecated H265 Turn SSL never used
*
*
*/
@Deprecated
public void loginPlatform(){
new AsyncTask<Void, Void, Boolean>() {
@Override
protected Boolean doInBackground(Void... params) {
String encodedPassword = DecodeUtils.getEncodedPassword(TEST_PASSWORD);
// String imei = PhoneConfig.getPhoneDeveceID(PlatformAction.this);
LoginRequest loginReq = new LoginRequest(TEST_ACCOUNT, "Common",encodedPassword, "1.0.0.1",null);
LoginResponse loginRes = mSoapManager.getUserLoginRes(loginReq);
if(loginRes.getResult().equals("OK")){
List<Device> list = loginRes.getNodeList();
if(!list.isEmpty()){
device_id = list.get(0).getDeviceID();
}else{
device_id = null;
}
GetNATServerRes res = mSoapManager.getGetNATServerRes(new GetNATServerReq(TEST_ACCOUNT, loginRes.getLoginSession()));
Log.i("123", res.toString());
if(res.getResult().equals("OK")){
turnServerIp = res.getTURNServerAddress();
turnServerPort = res.getTURNServerPort();
}else{
turnServerIp = null;
turnServerPort = -1;
}
return true;
}else{
return false;
}
}
protected void onPostExecute(Boolean result) {
if(result){
handler.sendEmptyMessage(MSG_LOGIN_OK);
}else{
handler.sendEmptyMessage(MSG_LOGIN_FAIL);
}
};
}.execute();
}
}
|
[
"elijah@live.cn"
] |
elijah@live.cn
|
87db2d05b912c2ede9eea1c4e26d99e64987fbd4
|
421f0a75a6b62c5af62f89595be61f406328113b
|
/generated_tests/no_seeding/88_jopenchart-de.progra.charting.render.InterpolationChartRenderer-1.0-2/de/progra/charting/render/InterpolationChartRenderer_ESTest_scaffolding.java
|
7529ab8f9c5927303a51d9603066a5542527b268
|
[] |
no_license
|
tigerqiu712/evosuite-model-seeding-empirical-evaluation
|
c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6
|
11a920b8213d9855082d3946233731c843baf7bc
|
refs/heads/master
| 2020-12-23T21:04:12.152289
| 2019-10-30T08:02:29
| 2019-10-30T08:02:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 558
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Mon Oct 28 15:05:31 GMT 2019
*/
package de.progra.charting.render;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class InterpolationChartRenderer_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pderakhshanfar@bsr01.win.tue.nl"
] |
pderakhshanfar@bsr01.win.tue.nl
|
6b0d49c2d35dc6076a71c81521d9d73f549fdf8e
|
79a33795eed2bbf921e426fdaaf285ed4a38a68f
|
/前30/xianjinxia/app/src/main/java/com/example/apple/xianjinxia/dao/Bills.java
|
37100e84ae82172f05ba92fdb1b141c037be3d39
|
[] |
no_license
|
bluelzx/miaobaitiao
|
d809c6cf778852998513f0ae73624567d0798ca1
|
b8be0d5256cb029fef8784069dae7704bb16ad85
|
refs/heads/master
| 2021-01-20T01:51:21.518301
| 2017-04-20T02:53:42
| 2017-04-20T02:53:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,041
|
java
|
package com.example.apple.xianjinxia.dao;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. Enable "keep" sections if you want to edit.
/**
* Entity mapped to table e_bills.
*/
public class Bills {
private Long b_id;
private Long b_pid;
private String b_add_date;
private String b_name;
private String b_type;
private String b_num;
private String b_all;
private String b_describ;
public Bills() {
}
public Bills(Long b_id) {
this.b_id = b_id;
}
public Bills(Long b_id, Long b_pid, String b_add_date, String b_name, String b_type, String b_num, String b_all, String b_describ) {
this.b_id = b_id;
this.b_pid = b_pid;
this.b_add_date = b_add_date;
this.b_name = b_name;
this.b_type = b_type;
this.b_num = b_num;
this.b_all = b_all;
this.b_describ = b_describ;
}
public Long getB_id() {
return b_id;
}
public void setB_id(Long b_id) {
this.b_id = b_id;
}
public Long getB_pid() {
return b_pid;
}
public void setB_pid(Long b_pid) {
this.b_pid = b_pid;
}
public String getB_add_date() {
return b_add_date;
}
public void setB_add_date(String b_add_date) {
this.b_add_date = b_add_date;
}
public String getB_name() {
return b_name;
}
public void setB_name(String b_name) {
this.b_name = b_name;
}
public String getB_type() {
return b_type;
}
public void setB_type(String b_type) {
this.b_type = b_type;
}
public String getB_num() {
return b_num;
}
public void setB_num(String b_num) {
this.b_num = b_num;
}
public String getB_all() {
return b_all;
}
public void setB_all(String b_all) {
this.b_all = b_all;
}
public String getB_describ() {
return b_describ;
}
public void setB_describ(String b_describ) {
this.b_describ = b_describ;
}
}
|
[
"mexicande@hotmail.com"
] |
mexicande@hotmail.com
|
6cce1217c677e2640d7f323f3760af23178d3759
|
9f276752a939569143bdeb30abf0f6fb5f069b1e
|
/src/main/java/com/joy/demo/mapper/TestMapper.java
|
2bee6d47c0db66ed855ed6784930212cd3e1cccf
|
[] |
no_license
|
15122741165/spring.demo
|
e80600bfe245324206f4177fd0f120d1a41ca518
|
d3586d8f161cf78561e7e35031120bed9da384f2
|
refs/heads/master
| 2023-04-17T11:58:37.751428
| 2021-05-05T13:48:12
| 2021-05-05T13:48:12
| 364,584,069
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 279
|
java
|
package com.joy.demo.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;
import java.util.Map;
@Mapper
public interface TestMapper {
@Select("select * from user")
List<Map<String,Object>> test();
}
|
[
"you@example.com"
] |
you@example.com
|
1fd0c9145faafbecdc06e8c3f3511d3f694a46b0
|
d6b21db31c312ecb0da1b52b955eac1c93c373a9
|
/JavaSpring_Projects/TicketAdvantage/CommonPackage/src/main/java/com/ticketadvantage/services/model/User.java
|
275028514e836b9f6d0b36d3c48934e538a5947f
|
[] |
no_license
|
teja0009/Projects
|
84b366a0d0cb17245422c6e2aad5e65a5f7403ac
|
70a437a164cef33e42b65162f8b8c3cfaeda008b
|
refs/heads/master
| 2023-03-16T10:10:10.529062
| 2020-03-08T06:22:43
| 2020-03-08T06:22:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,917
|
java
|
/**
*
*/
package com.ticketadvantage.services.model;
import java.io.Serializable;
import java.util.Date;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.OneToMany;
import javax.persistence.OrderBy;
import javax.persistence.PrePersist;
import javax.persistence.PreUpdate;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author jmiller
*
*/
@Entity
@Table(name = "usersta")
@XmlRootElement(name = "user")
@XmlAccessorType(XmlAccessType.NONE)
public class User implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "usersta_generator")
@SequenceGenerator(name="usersta_generator", sequenceName = "usersta_seq", initialValue=1, allocationSize=50)
@Column(name = "id", unique = true, nullable = false)
@XmlElement
private Long id;
@Column(name = "username", unique = true, nullable = false, length = 50)
@XmlElement
private String username;
@Column(name = "password", unique = false, nullable = true, length = 50)
@XmlElement(nillable=true)
private String password;
@Column(name = "email", unique = false, nullable = true, length = 100)
@XmlElement(nillable=true)
private String email;
@Column(name = "mobilenumber", unique = false, nullable = true, length = 16)
@XmlElement(nillable=true)
private String mobilenumber;
@Column(name = "isactive")
@XmlElement
private Boolean isactive;
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "datecreated", unique = false, nullable = true)
@XmlElement
private Date datecreated;
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "datemodified", unique = false, nullable = true)
@XmlElement
private Date datemodified;
@OneToMany(fetch = FetchType.EAGER, cascade=CascadeType.ALL)
@OrderBy("name ASC")
@JoinTable(name="usersaccounts", joinColumns={@JoinColumn(name="usersid", referencedColumnName="id")}
, inverseJoinColumns={@JoinColumn(name="accountsid", referencedColumnName="id")})
@XmlElement(nillable=true)
private Set<Accounts> accounts;
@OneToMany(fetch = FetchType.EAGER, cascade=CascadeType.ALL)
@OrderBy("name ASC")
@JoinTable(name="usersemailaccounts", joinColumns={@JoinColumn(name="usersid", referencedColumnName="id")}
, inverseJoinColumns={@JoinColumn(name="emailaccountsid", referencedColumnName="id")})
@XmlElement(nillable=true)
private Set<EmailAccounts> emailaccounts;
@OneToMany(fetch = FetchType.EAGER, cascade=CascadeType.ALL)
@OrderBy("name ASC")
@JoinTable(name="userstwitteraccounts", joinColumns={@JoinColumn(name="usersid", referencedColumnName="id")}
, inverseJoinColumns={@JoinColumn(name="twitteraccountsid", referencedColumnName="id")})
@XmlElement(nillable=true)
private Set<TwitterAccounts> twitteraccounts;
@OneToMany(fetch = FetchType.EAGER, cascade=CascadeType.ALL)
@OrderBy("name ASC")
@JoinTable(name="usersgroups", joinColumns={@JoinColumn(name="usersid", referencedColumnName="id")}
, inverseJoinColumns={@JoinColumn(name="groupsid", referencedColumnName="id")})
@XmlElement(nillable=true)
private Set<Groups> groups;
/*
@OneToMany(mappedBy="user", fetch = FetchType.EAGER, cascade=CascadeType.ALL)
@OrderBy("weekstartdate DESC")
@XmlElement(nillable=true)
private List<UserBilling> userBillings;
*/
/**
*
*/
public User() {
super();
// log.debug("Entering User()");
}
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
}
/**
* @return the id
*/
public Long getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(Long id) {
this.id = id;
}
/**
* @return the username
*/
public String getUsername() {
return username;
}
/**
* @param username the username to set
*/
public void setUsername(String username) {
this.username = username;
}
/**
* @return the password
*/
public String getPassword() {
return password;
}
/**
* @param password the password to set
*/
public void setPassword(String password) {
this.password = password;
}
/**
* @return the email
*/
public String getEmail() {
return email;
}
/**
* @param email the email to set
*/
public void setEmail(String email) {
this.email = email;
}
/**
* @return the mobilenumber
*/
public String getMobilenumber() {
return mobilenumber;
}
/**
* @param mobilenumber the mobilenumber to set
*/
public void setMobilenumber(String mobilenumber) {
this.mobilenumber = mobilenumber;
}
/**
* @return the isactive
*/
public Boolean getIsactive() {
return isactive;
}
/**
* @param isactive the isactive to set
*/
public void setIsactive(Boolean isactive) {
this.isactive = isactive;
}
/**
* @return the datecreated
*/
public Date getDatecreated() {
return datecreated;
}
/**
* @param datecreated the datecreated to set
*/
public void setDatecreated(Date datecreated) {
this.datecreated = datecreated;
}
/**
* @return the datemodified
*/
public Date getDatemodified() {
return datemodified;
}
/**
* @param datemodified the datemodified to set
*/
public void setDatemodified(Date datemodified) {
this.datemodified = datemodified;
}
/**
* @return the accounts
*/
public Set<Accounts> getAccounts() {
return accounts;
}
/**
* @param accounts the accounts to set
*/
public void setAccounts(Set<Accounts> accounts) {
this.accounts = accounts;
}
/**
* @return the user billings
*/
// public List<UserBilling> getUserBillings() {
// return userBillings;
// }
/**
* @param user billings the user billings to set
*/
// public void setUserBillings(List<UserBilling> userBillings) {
// this.userBillings = userBillings;
// }
/**
* @return the emailaccounts
*/
public Set<EmailAccounts> getEmailaccounts() {
return emailaccounts;
}
/**
* @param emailaccounts the emailaccounts to set
*/
public void setEmailaccounts(Set<EmailAccounts> emailaccounts) {
this.emailaccounts = emailaccounts;
}
/**
* @return the twitteraccounts
*/
public Set<TwitterAccounts> getTwitteraccounts() {
return twitteraccounts;
}
/**
* @param twitteraccounts the twitteraccounts to set
*/
public void setTwitteraccounts(Set<TwitterAccounts> twitteraccounts) {
this.twitteraccounts = twitteraccounts;
}
/**
* @return the groups
*/
public Set<Groups> getGroups() {
return groups;
}
/**
* @param groups the groups to set
*/
public void setGroups(Set<Groups> groups) {
this.groups = groups;
}
/**
*
*/
@PrePersist
protected void onCreate() {
datecreated = datemodified = new Date();
}
/**
*
*/
@PreUpdate
protected void onUpdate() {
datecreated = datemodified = new Date();
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return "User [id=" + id + ", username=" + username + ", password=" + password + ", email=" + email
+ ", mobilenumber=" + mobilenumber + ", isactive=" + isactive + ", datecreated=" + datecreated
+ ", datemodified=" + datemodified + ", accounts=" + accounts + ", emailaccounts=" + emailaccounts
+ ", twitteraccounts=" + twitteraccounts + ", groups=" + groups + "]";
}
}
|
[
"sinceregeneral@outlook.com"
] |
sinceregeneral@outlook.com
|
a0d3b857249ac4d657b7dc5fc7f1376f5f68447f
|
7bea7fb60b5f60f89f546a12b43ca239e39255b5
|
/src/javax/management/remote/MBeanServerForwarder.java
|
f9d9dd1cdd6c43de94e36a48f4134fdfc3965d99
|
[] |
no_license
|
sorakeet/fitcorejdk
|
67623ab26f1defb072ab473f195795262a8ddcdd
|
f946930a826ddcd688b2ddbb5bc907d2fc4174c3
|
refs/heads/master
| 2021-01-01T05:52:19.696053
| 2017-07-15T01:33:41
| 2017-07-15T01:33:41
| 97,292,673
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 381
|
java
|
/**
* Copyright (c) 2003, 2007, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package javax.management.remote;
import javax.management.MBeanServer;
public interface MBeanServerForwarder extends MBeanServer{
public MBeanServer getMBeanServer();
public void setMBeanServer(MBeanServer mbs);
}
|
[
"panxiaoping@9af151c5-2e68-9a40-a710-8967c58c11f7"
] |
panxiaoping@9af151c5-2e68-9a40-a710-8967c58c11f7
|
a90835b3063b0a29ce772e8bdc513974957ccfdc
|
fcc6a1eca7246cd4465e9d7b7e3f4e1c4c741373
|
/common/rebelkeithy/mods/aquaculture/items/AquaItemPickaxe.java
|
21ac18e0269a80c4cd72fc5abc77a6d9acbd8f7f
|
[] |
no_license
|
RebelKeithy/Aquaculture
|
600617ec4996d166d04f55d970880574f8bb752f
|
6fe8bd24cedfd6e129ade4354af53e2826678ea5
|
refs/heads/master
| 2023-07-08T14:10:50.533384
| 2013-07-16T18:54:41
| 2013-07-16T18:54:41
| 10,957,344
| 4
| 2
| null | 2020-07-21T14:44:24
| 2013-06-26T03:33:34
|
Java
|
UTF-8
|
Java
| false
| false
| 778
|
java
|
package rebelkeithy.mods.aquaculture.items;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemPickaxe;
public class AquaItemPickaxe extends ItemPickaxe
{
public AquaItemPickaxe(int par1, EnumToolMaterial par2EnumToolMaterial)
{
super(par1, par2EnumToolMaterial);
}
/**
* Sets the unlocalized name of this item to the string passed as the parameter, prefixed by "item."
*/
public Item setUnlocalizedName(String par1Str)
{
super.setUnlocalizedName(par1Str);
this.setTextureName("aquaculture:" + par1Str.replaceAll("\\s",""));
return this;
}
public Item setTextureName(String par1Str)
{
super.func_111206_d(par1Str);
return this;
}
}
|
[
"RebelKeithy@gmail.com"
] |
RebelKeithy@gmail.com
|
8b9fbce00270906a0b0e52f9f27686ac186be3ce
|
f42d7da85f9633cfb84371ae67f6d3469f80fdcb
|
/com4j-20120426-2/samples/word/build/src/word/SeriesCollection.java
|
ea5c98829a52884da387903798fc70402361a1ee
|
[
"BSD-2-Clause"
] |
permissive
|
LoongYou/Wanda
|
ca89ac03cc179cf761f1286172d36ead41f036b5
|
2c2c4d1d14e95e98c0a3af365495ec53775cc36b
|
refs/heads/master
| 2023-03-14T13:14:38.476457
| 2021-03-06T10:20:37
| 2021-03-06T10:20:37
| 231,610,760
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,817
|
java
|
package word ;
import com4j.*;
@IID("{8FEB78F7-35C6-4871-918C-193C3CDD886D}")
public interface SeriesCollection extends Com4jObject,Iterable<Com4jObject> {
// Methods:
/**
* <p>
* Getter method for the COM property "Parent"
* </p>
* @return Returns a value of type com4j.Com4jObject
*/
@DISPID(150) //= 0x96. The runtime will prefer the VTID if present
@VTID(7)
@ReturnValue(type=NativeType.Dispatch)
com4j.Com4jObject parent();
/**
* @param source Mandatory java.lang.Object parameter.
* @param rowcol Optional parameter. Default value is 2
* @param seriesLabels Optional parameter. Default value is com4j.Variant.getMissing()
* @param categoryLabels Optional parameter. Default value is com4j.Variant.getMissing()
* @param replace Optional parameter. Default value is com4j.Variant.getMissing()
* @return Returns a value of type word.Series
*/
@DISPID(181) //= 0xb5. The runtime will prefer the VTID if present
@VTID(8)
word.Series add(
@MarshalAs(NativeType.VARIANT) java.lang.Object source,
@Optional @DefaultValue("2") word.XlRowCol rowcol,
@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object seriesLabels,
@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object categoryLabels,
@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object replace);
/**
* <p>
* Getter method for the COM property "Count"
* </p>
* @return Returns a value of type int
*/
@DISPID(118) //= 0x76. The runtime will prefer the VTID if present
@VTID(9)
int count();
/**
* @param source Mandatory java.lang.Object parameter.
* @param rowcol Optional parameter. Default value is com4j.Variant.getMissing()
* @param categoryLabels Optional parameter. Default value is com4j.Variant.getMissing()
* @return Returns a value of type java.lang.Object
*/
@DISPID(227) //= 0xe3. The runtime will prefer the VTID if present
@VTID(10)
@ReturnValue(type=NativeType.VARIANT)
java.lang.Object extend(
@MarshalAs(NativeType.VARIANT) java.lang.Object source,
@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object rowcol,
@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object categoryLabels);
/**
* @param index Mandatory java.lang.Object parameter.
* @return Returns a value of type word.Series
*/
@DISPID(0) //= 0x0. The runtime will prefer the VTID if present
@VTID(11)
@DefaultMethod
word.Series item(
@MarshalAs(NativeType.VARIANT) java.lang.Object index);
/**
*/
@DISPID(-4) //= 0xfffffffc. The runtime will prefer the VTID if present
@VTID(12)
java.util.Iterator<Com4jObject> iterator();
/**
* @return Returns a value of type word.Series
*/
@DISPID(1117) //= 0x45d. The runtime will prefer the VTID if present
@VTID(13)
word.Series newSeries();
/**
* <p>
* Getter method for the COM property "Application"
* </p>
* @return Returns a value of type com4j.Com4jObject
*/
@DISPID(148) //= 0x94. The runtime will prefer the VTID if present
@VTID(14)
@ReturnValue(type=NativeType.Dispatch)
com4j.Com4jObject application();
/**
* <p>
* Getter method for the COM property "Creator"
* </p>
* @return Returns a value of type int
*/
@DISPID(149) //= 0x95. The runtime will prefer the VTID if present
@VTID(15)
int creator();
/**
* @param index Mandatory java.lang.Object parameter.
* @return Returns a value of type word.Series
*/
@DISPID(1610743818) //= 0x6002000a. The runtime will prefer the VTID if present
@VTID(16)
word.Series _Default(
@MarshalAs(NativeType.VARIANT) java.lang.Object index);
// Properties:
}
|
[
"815234949@qq.com"
] |
815234949@qq.com
|
c85a876279ab2f06547fda0e5663e8aac1530b1d
|
62bbd2ceeb59fc713e610133f37e5fee7271e91b
|
/src/main/java/ua/goit/timonov/enterprise/module_9/web/OrderServiceController.java
|
489c4d93f8a0b93e6b2cd45933c469ee941b3342
|
[] |
no_license
|
alextimonov/GoJavaEnterprise
|
7f4408cc5ad65f1c699cf8193b2098ef4d8d3502
|
56dc584ad5e3ae00933b9e96d46fa79d57756e0a
|
refs/heads/master
| 2021-01-23T14:05:07.584488
| 2016-09-23T21:17:35
| 2016-09-23T21:17:35
| 59,581,892
| 0
| 1
| null | 2016-09-23T22:10:50
| 2016-05-24T14:47:25
|
Java
|
UTF-8
|
Java
| false
| false
| 3,255
|
java
|
package ua.goit.timonov.enterprise.module_9.web;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import ua.goit.timonov.enterprise.module_6_2.model.Employee;
import ua.goit.timonov.enterprise.module_9.service.EmployeeService;
import ua.goit.timonov.enterprise.module_9.service.OrderService;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.Map;
/**
* Created by Alex on 17.09.2016.
*/
@Controller
@RequestMapping("/service/order")
public class OrderServiceController {
public static final String ITEMS = "orders";
public static final String PATH_ORDERS = "service/order/orders";
private OrderService orderService;
private EmployeeService employeeService;
@Autowired
public void setOrderService(OrderService orderService) {
this.orderService = orderService;
}
@Autowired
public void setEmployeeService(EmployeeService employeeService) {
this.employeeService = employeeService;
}
@RequestMapping(value = "/orders", method = RequestMethod.GET)
public String getAllIngredients(Map<String, Object> model) {
model.put(ITEMS, orderService.getAllOrders());
return PATH_ORDERS;
}
// @RequestMapping(value = "/dishes", method = RequestMethod.GET)
// public String getOrderDishes(Map<String, Object> model, @RequestParam(value="order", required=true) Integer id) {
// Order order = orderService.getOrder(id);
// model.put("dishes", order.getDishes());
// return PATH_ORDERS;
// }
@RequestMapping(value = "/filterByDate", method = RequestMethod.GET)
public String filterByDate(Map<String, Object> model, @RequestParam(value="date", required=true) Date date) {
model.put(ITEMS, orderService.filterByDate(date));
return PATH_ORDERS;
}
@RequestMapping(value = "/filterByWaiter", method = RequestMethod.GET)
public String filterByName(Map<String, Object> model, @RequestParam(value="waiterName", required=true) String waiterName) {
Employee waiter = employeeService.getEmployeeByName(waiterName);
model.put(ITEMS, orderService.filterByWaiter(waiter));
return PATH_ORDERS;
}
@RequestMapping(value = "/filterByTableNumber", method = RequestMethod.GET)
public String filterByName(Map<String, Object> model, @RequestParam(value="tableNumber", required=true) Integer tableNumber) {
model.put(ITEMS, orderService.filterByTableNumber(tableNumber));
return PATH_ORDERS;
}
@InitBinder
public final void initBinderUsuariosFormValidator(final WebDataBinder binder, final Locale locale) {
final SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy", locale);
binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, true));
}
}
|
[
"timalex1206@gmail.com"
] |
timalex1206@gmail.com
|
7758c47df672e0d4eef177607187dcf2122feb79
|
a965262d4f33f01263f5050574bc6b1b397639b2
|
/plugin/applianceVm/src/main/java/org/zstack/appliancevm/ApplianceVmGlobalProperty.java
|
6e5864c856cf1dc21d97c44d5de41164999bad68
|
[
"Apache-2.0"
] |
permissive
|
mattyen/zstack
|
e2b4cff83e196c52636b958dd2dc3880e8a29225
|
515c5aa7cdba158d4f60daacd094bdf290422e5c
|
refs/heads/master
| 2021-01-21T18:34:53.347813
| 2015-12-08T06:53:41
| 2015-12-08T06:53:41
| 44,942,834
| 0
| 1
| null | 2015-10-26T03:09:55
| 2015-10-26T03:09:55
| null |
UTF-8
|
Java
| false
| false
| 983
|
java
|
package org.zstack.appliancevm;
import org.zstack.core.GlobalProperty;
import org.zstack.core.GlobalPropertyDefinition;
/**
*/
@GlobalPropertyDefinition
public class ApplianceVmGlobalProperty {
@GlobalProperty(name = "ApplianceVm.noRollbackOnPostFailure", defaultValue = "false")
public static boolean NO_ROLLBACK_ON_POST_FAILURE;
@GlobalProperty(name = "ApplianceVm.connectVerbose", defaultValue = "false")
public static boolean CONNECT_VERBOSE;
@GlobalProperty(name="ApplianceVm.agentPackageName", defaultValue = "appliancevm-0.9.tar.gz")
public static String AGENT_PACKAGE_NAME;
@GlobalProperty(name="ApplianceVm.agentPort", defaultValue = "7759")
public static int AGENT_PORT;
@GlobalProperty(name="ApplianceVm.agentUrlScheme", defaultValue = "http")
public static String AGENT_URL_SCHEME;
@GlobalProperty(name="ApplianceVm.agentUrlRootPath", defaultValue = "")
public static String AGENT_URL_ROOT_PATH;
}
|
[
"xing5820@gmail.com"
] |
xing5820@gmail.com
|
5c7cf285d6c0d683806c35b3427d3b863bec4fb2
|
56456387c8a2ff1062f34780b471712cc2a49b71
|
/b/a/a/a/i/b/s.java
|
87a5fc5e2051307213b57f07f21998063e58cfe2
|
[] |
no_license
|
nendraharyo/presensimahasiswa-sourcecode
|
55d4b8e9f6968eaf71a2ea002e0e7f08d16c5a50
|
890fc86782e9b2b4748bdb9f3db946bfb830b252
|
refs/heads/master
| 2020-05-21T11:21:55.143420
| 2019-05-10T19:03:56
| 2019-05-10T19:03:56
| 186,022,425
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 563
|
java
|
package b.a.a.a.i.b;
import b.a.a.a.a.h;
import b.a.a.a.b.c;
import b.a.a.a.h.b;
import b.a.a.a.i.a.f;
import b.a.a.a.n;
import b.a.a.a.n.e;
public class s
extends f
{
public s() {}
public s(b paramb)
{
super(paramb);
}
public boolean c(n paramn, b.a.a.a.s params, c paramc, h paramh, e parame)
{
return b(paramn, params, paramc, paramh, parame);
}
}
/* Location: C:\Users\haryo\Desktop\enjarify-master\presensi-enjarify.jar!\b\a\a\a\i\b\s.class
* Java compiler version: 5 (49.0)
* JD-Core Version: 0.7.1
*/
|
[
"haryo.nendra@gmail.com"
] |
haryo.nendra@gmail.com
|
c06dcab0244660eb7e0dccdb4a7aae5903895f4e
|
596d59292b2355e93f57c1d55f107664adda4e10
|
/app/src/main/java/com/rackluxury/lamborghini/activities/FavItemCategories.java
|
b1870df97c9c683c60192524d821578b7cd44932
|
[] |
no_license
|
HarshAProgrammer/Lamborghini
|
25dd82af51f29c4d2c4fa4a90c651c3a59b57434
|
6e2a4eda873a376f2d05b74048d7f2e8ea227811
|
refs/heads/master
| 2023-08-01T03:33:05.151537
| 2021-09-13T16:26:58
| 2021-09-13T16:26:58
| 405,989,932
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 872
|
java
|
package com.rackluxury.lamborghini.activities;
public class FavItemCategories {
private String item_title;
private String key_id;
private int item_image;
public FavItemCategories() {
}
public FavItemCategories(String item_title, String key_id, int item_image) {
this.item_title = item_title;
this.key_id = key_id;
this.item_image = item_image;
}
public String getItem_title() {
return item_title;
}
public void setItem_title(String item_title) {
this.item_title = item_title;
}
public String getKey_id() {
return key_id;
}
public void setKey_id(String key_id) {
this.key_id = key_id;
}
public int getItem_image() {
return item_image;
}
public void setItem_image(int item_image) {
this.item_image = item_image;
}
}
|
[
"App.Lavishly@Gmail.com"
] |
App.Lavishly@Gmail.com
|
ac48e31057ce8fd4603b3f955e5036c6d5b501a7
|
0d98e84c2cc3b702ed30030b98f71a46f638bf56
|
/src/main/java/structuralpattern/facadepattern/Stock.java
|
7dd352710109504463423cffae4a087e17afc221
|
[] |
no_license
|
rsun07/Design_Pattern
|
1cf55c063588b94871714387276481b4168ee17b
|
48a301b9e8f176a0ee836d8f43f47d40c398fb2b
|
refs/heads/master
| 2023-04-01T22:45:45.787420
| 2019-07-23T20:06:22
| 2019-07-23T20:06:22
| 124,569,614
| 0
| 0
| null | 2021-03-31T19:06:25
| 2018-03-09T17:03:30
|
Java
|
UTF-8
|
Java
| false
| false
| 177
|
java
|
package structuralpattern.facadepattern;
public class Stock implements Investment {
@Override
public void trade() {
System.out.println("Invest Stock");
}
}
|
[
"rsun2014@gmail.com"
] |
rsun2014@gmail.com
|
0ff46c2c8b1ad18a90dd5b8512d6d731ab72abbc
|
6f437fac5de2ec8b3f19be57f92ffe2ed6757301
|
/common-orm/src/main/java/jef/database/datasource/TomcatCpWrapper.java
|
44cf44601c558efd220160496e327e346548a091
|
[
"Apache-2.0"
] |
permissive
|
azureidea/ef-orm
|
9f37015565ea603085179a252594286618f2a6a8
|
8940b4d9727ac33d5e884461185423f2528d71b1
|
refs/heads/master
| 2021-01-18T07:55:58.301453
| 2016-06-26T16:45:14
| 2016-06-26T16:45:14
| 63,916,124
| 1
| 0
| null | 2016-07-22T02:11:29
| 2016-07-22T02:11:29
| null |
UTF-8
|
Java
| false
| false
| 1,880
|
java
|
package jef.database.datasource;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Properties;
import javax.sql.DataSource;
import org.apache.tomcat.jdbc.pool.PoolConfiguration;
public class TomcatCpWrapper extends AbstractDataSource implements DataSourceWrapper{
org.apache.tomcat.jdbc.pool.DataSource datasource;
public TomcatCpWrapper() {
datasource = new org.apache.tomcat.jdbc.pool.DataSource();
}
public String getUrl() {
return datasource.getUrl();
}
public String getUser() {
return datasource.getUsername();
}
public String getPassword() {
return datasource.getPassword();
}
public String getDriverClass() {
return datasource.getDriverClassName();
}
public void setUrl(String url) {
datasource.setUrl(url);
}
public void setUser(String user) {
datasource.setUsername(user);
}
public void setPassword(String password) {
datasource.setPassword(password);
}
public void setDriverClass(String driverClassName) {
datasource.setDriverClassName(driverClassName);
}
public Properties getProperties() {
return new ReflectionProperties(PoolConfiguration.class, datasource.getPoolProperties());
}
public void putProperty(String key, Object value) {
new ReflectionProperties(PoolConfiguration.class, datasource.getPoolProperties()).put(key, value);
}
public Connection getConnection() throws SQLException {
return datasource.getConnection();
}
public Connection getConnection(String username, String password) throws SQLException {
return datasource.getConnection(username, password);
}
public boolean isConnectionPool() {
return true;
}
public void setWrappedDataSource(DataSource ds) {
datasource=(org.apache.tomcat.jdbc.pool.DataSource)ds;
}
@Override
protected Class<? extends DataSource> getWrappedClass() {
return org.apache.tomcat.jdbc.pool.DataSource.class;
}
}
|
[
"hzjiyi@gmail.com"
] |
hzjiyi@gmail.com
|
1478ccb86919d23c1f90d129720e0e53497b840d
|
62cc47fc30032e40ba0bc5e0eb177460e384a1ed
|
/core/src/main/java/lando/systems/ld48/Game.java
|
26ad6d892e9fc868022ca46074207194d49f3916
|
[] |
no_license
|
bploeckelman/LudumDare48
|
5fcb627a6f6380d1508562f37f17464ff15347f8
|
3be28842acac1cb3caf9b33e14a6bc79904449d0
|
refs/heads/master
| 2023-04-10T10:24:22.474289
| 2021-04-27T21:32:45
| 2021-04-27T21:32:45
| 359,710,454
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,461
|
java
|
package lando.systems.ld48;
import aurelienribon.tweenengine.Timeline;
import aurelienribon.tweenengine.Tween;
import aurelienribon.tweenengine.TweenManager;
import aurelienribon.tweenengine.primitives.MutableFloat;
import com.badlogic.gdx.Application;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.graphics.*;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.FrameBuffer;
import com.badlogic.gdx.graphics.glutils.ShaderProgram;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.math.Vector3;
import com.badlogic.gdx.utils.Disposable;
import lando.systems.ld48.screens.BaseScreen;
import lando.systems.ld48.screens.LaunchScreen;
import lando.systems.ld48.screens.TitleScreen;
import lando.systems.ld48.utils.Time;
import lando.systems.ld48.utils.accessors.*;
public class Game extends ApplicationAdapter {
public Assets assets;
public Audio audio;
public TweenManager tween;
private BaseScreen screen;
private ScreenTransition screenTransition;
@Override
public void create() {
Time.init();
tween = new TweenManager();
Tween.setWaypointsLimit(4);
Tween.setCombinedAttributesLimit(4);
Tween.registerAccessor(Color.class, new ColorAccessor());
Tween.registerAccessor(Rectangle.class, new RectangleAccessor());
Tween.registerAccessor(Vector2.class, new Vector2Accessor());
Tween.registerAccessor(Vector3.class, new Vector3Accessor());
Tween.registerAccessor(OrthographicCamera.class, new CameraAccessor());
assets = new Assets();
audio = new Audio(this);
screenTransition = new ScreenTransition(Config.windowWidth, Config.windowHeight);
if (Config.showLaunchScreen || Gdx.app.getType() == Application.ApplicationType.WebGL) {
setScreen(new LaunchScreen(this));
} else {
setScreen(new TitleScreen(this));
}
}
public void update() {
if (Gdx.input.isKeyJustPressed(Input.Keys.ESCAPE)) {
Gdx.app.exit();
}
// update global timer
Time.delta = Gdx.graphics.getDeltaTime();
// update code that always runs (regardless of pause)
screen.alwaysUpdate(Time.delta);
// handle a pause
if (Time.pause_timer > 0) {
Time.pause_timer -= Time.delta;
if (Time.pause_timer <= -0.0001f) {
Time.delta = -Time.pause_timer;
} else {
// skip updates if we're paused
return;
}
}
Time.millis += Time.delta;
Time.previous_elapsed = Time.elapsed_millis();
// update systems
tween.update(Time.delta);
audio.update(Time.delta);
screen.update(Time.delta);
}
@Override
public void render() {
update();
// render the active screen
Gdx.gl.glClearColor(0, 0, 0, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
if (!screenTransition.active) {
screen.render(assets.batch);
} else {
screenTransition.updateAndRender(Time.delta, assets.batch, screen);
}
}
@Override
public void dispose() {
screenTransition.dispose();
audio.dispose();
assets.dispose();
}
public BaseScreen getScreen() {
return screen;
}
public void setScreen(BaseScreen newScreen) {
setScreen(newScreen, null);
}
public void setScreen(BaseScreen newScreen, ShaderProgram transitionShader) {
// only one active transition at a time
if (screenTransition.active || screenTransition.next != null) {
return;
}
if (screen == null) {
screen = newScreen;
} else {
if (transitionShader == null) {
screenTransition.shader = Assets.Transitions.shaders.random();
} else {
screenTransition.shader = transitionShader;
}
Timeline.createSequence()
.pushPause(0.1f)
.push(Tween.call((i, baseTween) -> {
screenTransition.active = true;
screenTransition.percent.setValue(0f);
screenTransition.next = newScreen;
}))
.push(Tween.to(screenTransition.percent, -1, screenTransition.duration).target(1))
.push(Tween.call((i, baseTween) -> {
screen = screenTransition.next;
screenTransition.next = null;
screenTransition.active = false;
}))
.start(tween);
}
}
// ------------------------------------------------------------------------
static class ScreenTransition implements Disposable {
boolean active = false;
float duration = 0.5f;
BaseScreen next;
ShaderProgram shader;
MutableFloat percent;
Texture sourceTexture;
Texture destTexture;
FrameBuffer sourceFramebuffer;
FrameBuffer destFramebuffer;
public ScreenTransition(int windowWidth, int windowHeight) {
next = null;
shader = null;
percent = new MutableFloat(0f);
sourceFramebuffer = new FrameBuffer(Pixmap.Format.RGBA8888, windowWidth, windowHeight, false);
destFramebuffer = new FrameBuffer(Pixmap.Format.RGBA8888, windowWidth, windowHeight, false);
sourceTexture = sourceFramebuffer.getColorBufferTexture();
destTexture = destFramebuffer.getColorBufferTexture();
}
@Override
public void dispose() {
sourceTexture.dispose();
destTexture.dispose();
sourceFramebuffer.dispose();
destFramebuffer.dispose();
}
public void updateAndRender(float delta, SpriteBatch batch, BaseScreen screen) {
// update the next screen
next.update(delta);
// render the next screen to a buffer
destFramebuffer.begin();
{
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
next.render(batch);
}
destFramebuffer.end();
// render the current screen to a buffer
sourceFramebuffer.begin();
{
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
screen.render(batch);
}
sourceFramebuffer.end();
batch.setShader(shader);
batch.begin();
{
shader.setUniformf("u_percent", percent.floatValue());
sourceTexture.bind(1);
shader.setUniformi("u_texture1", 1);
destTexture.bind(0);
shader.setUniformi("u_texture", 0);
// TODO - this only works cleanly if source and dest equal window size,
// if one screen has a different size it ends up either too big or too small during the transition
batch.setColor(Color.WHITE);
batch.draw(destTexture, 0, 0, Config.windowWidth, Config.windowHeight);
}
batch.end();
batch.setShader(null);
}
}
}
|
[
"brian.ploeckelman@gmail.com"
] |
brian.ploeckelman@gmail.com
|
8733534972706ce05a790e3629afe5f6d6a91e93
|
f9fd138d5e6f1f23d9aced533b5a3f5ff2b7d6f4
|
/Common/src/main/java/com/blamejared/crafttweaker/impl/preprocessor/PriorityPreprocessor.java
|
fb212aabfc68f40b74246a02bdbffed5b7411fa3
|
[
"MIT"
] |
permissive
|
kindlich/CraftTweaker
|
fd61116413b274dc6eac2d6f7468095eb04a9a06
|
c15ecad34374f09a4917506dc9eb17cf743b792e
|
refs/heads/1.18
| 2023-08-17T16:30:47.448860
| 2022-05-29T14:45:02
| 2022-05-29T14:45:02
| 109,025,585
| 0
| 0
|
MIT
| 2023-04-04T09:46:26
| 2017-10-31T16:49:14
|
Java
|
UTF-8
|
Java
| false
| false
| 2,249
|
java
|
package com.blamejared.crafttweaker.impl.preprocessor;
import com.blamejared.crafttweaker.api.CraftTweakerAPI;
import com.blamejared.crafttweaker.api.annotation.Preprocessor;
import com.blamejared.crafttweaker.api.annotation.ZenRegister;
import com.blamejared.crafttweaker.api.zencode.IPreprocessor;
import com.blamejared.crafttweaker.api.zencode.scriptrun.IMutableScriptRunInfo;
import com.blamejared.crafttweaker.api.zencode.scriptrun.IScriptFile;
import java.util.List;
@ZenRegister
@Preprocessor
public final class PriorityPreprocessor implements IPreprocessor {
public static final PriorityPreprocessor INSTANCE = new PriorityPreprocessor();
private static final int DEFAULT_PRIORITY = 0;
private PriorityPreprocessor() {}
@Override
public String name() {
return "priority";
}
@Override
public String defaultValue() {
return Integer.toString(DEFAULT_PRIORITY);
}
@Override
public boolean apply(final IScriptFile file, final List<String> preprocessedContents, final IMutableScriptRunInfo runInfo, final List<Match> matches) {
if(matches.size() > 1) {
CraftTweakerAPI.LOGGER.warn("Conflicting priorities in file {}: only the first will be used", file.name());
}
final String priority = matches.get(0).content().trim();
try {
Integer.parseInt(priority);
} catch(final NumberFormatException e) {
CraftTweakerAPI.LOGGER.warn("Invalid priority value '{}' for file {}", priority, file.name());
}
return true;
}
@Override
public int compare(final IScriptFile a, final IScriptFile b) {
return Integer.compare(
this.getIntSafely(a.matchesFor(this).get(0)),
this.getIntSafely(b.matchesFor(this).get(0))
);
}
@Override
public int priority() {
return 100;
}
private int getIntSafely(final Match match) {
try {
return Integer.parseInt(match.content().trim());
} catch(final NumberFormatException e) {
return DEFAULT_PRIORITY;
}
}
}
|
[
"jaredlll08@gmail.com"
] |
jaredlll08@gmail.com
|
b8c47fffa495342daca5f8f5d409d7a11fbce846
|
131d39303b54a0cfc2001a1b3181656297b9f183
|
/src/test/java/page1/App_page.java
|
75aa3ea14be1d8166a21535153ba2bb147c8a721
|
[] |
no_license
|
bamboo1991/Appium-Mod-testing-
|
32fad9560c06ac3160ebebd1cc6048ce4cc21c0b
|
a509bb056b849878a1d04c140e45dcd4381c83ae
|
refs/heads/master
| 2022-12-29T13:49:03.366439
| 2020-04-25T20:41:00
| 2020-04-25T20:41:00
| 257,174,277
| 0
| 0
| null | 2020-10-13T21:20:17
| 2020-04-20T04:49:29
|
Java
|
UTF-8
|
Java
| false
| false
| 1,330
|
java
|
package page1;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.android.AndroidElement;
import io.appium.java_client.pagefactory.AndroidFindBy;
import io.appium.java_client.pagefactory.AppiumFieldDecorator;
import org.openqa.selenium.support.PageFactory;
public class App_page {
private AndroidDriver<AndroidElement> driver;
public App_page(AndroidDriver<AndroidElement> driver) {
this.driver = driver;
PageFactory.initElements(new AppiumFieldDecorator(driver), this);
}
@AndroidFindBy(uiAutomator = "text(\"General Store\")")
public AndroidElement generalStore;
@AndroidFindBy(uiAutomator = "text(\"Select the country where you want to shop\")")
public AndroidElement countryTitle;
@AndroidFindBy(uiAutomator = "text(\"Your Name\")")
public AndroidElement nameText;
@AndroidFindBy(uiAutomator = "text(\"Gender\")")
public AndroidElement genderText;
@AndroidFindBy(uiAutomator = "text(\"Afghanistan\")")
public AndroidElement defaultCountry;
@AndroidFindBy(uiAutomator = "text(\"Enter name here\")")
public AndroidElement nameFieldText;
@AndroidFindBy(uiAutomator = "text(\"Male\")")
public AndroidElement maleText;
@AndroidFindBy(uiAutomator = "text(\"Female\")")
public AndroidElement FemaleText;
}
|
[
"stamovuber@gmail.com"
] |
stamovuber@gmail.com
|
d76bfed6c75babdc8c1af140e98735c412eab7b7
|
3426da6090f2b3171340ba75adb04f965185699c
|
/cicMorGan/src/main/java/com/ztmg/cicmorgan/receive/MyReceiver.java
|
e5d59c64c79bb43554537b57838c6636893d18e8
|
[] |
no_license
|
menglongfengyuqing/cic-android
|
58a48504ff6b6d02ae6635d12c5a53d33feb46b6
|
e5e9bc9da36d102191b5fe0503ade6e818e91363
|
refs/heads/master
| 2022-07-17T10:14:58.090623
| 2020-05-12T08:13:24
| 2020-05-12T08:13:24
| 263,254,969
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,300
|
java
|
package com.ztmg.cicmorgan.receive;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import com.ztmg.cicmorgan.activity.MainActivity;
import com.ztmg.cicmorgan.activity.RollViewActivity;
import com.ztmg.cicmorgan.util.ExampleUtil;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.Iterator;
import cn.jpush.android.api.JPushInterface;
/**
* 自定义接收器
* <p>
* 如果不定义这个 Receiver,则:
* 1) 默认用户会打开主界面
* 2) 接收不到自定义消息
*/
public class MyReceiver extends BroadcastReceiver {
private static final String TAG = "JPush";
@Override
public void onReceive(Context context, Intent intent) {
Bundle bundle = intent.getExtras();
Log.d(TAG, "[MyReceiver] onReceive - " + intent.getAction() + ", extras: " + printBundle(bundle));
if (JPushInterface.ACTION_REGISTRATION_ID.equals(intent.getAction())) {
String regId = bundle.getString(JPushInterface.EXTRA_REGISTRATION_ID);
Log.d(TAG, "[MyReceiver] 接收Registration Id : " + regId);
//send the Registration Id to your server...
} else if (JPushInterface.ACTION_MESSAGE_RECEIVED.equals(intent.getAction())) {
Log.d(TAG, "[MyReceiver] 接收到推送下来的自定义消息: " + bundle.getString(JPushInterface.EXTRA_MESSAGE));
processCustomMessage(context, bundle);
} else if (JPushInterface.ACTION_NOTIFICATION_RECEIVED.equals(intent.getAction())) {
Log.d(TAG, "[MyReceiver] 接收到推送下来的通知");
int notifactionId = bundle.getInt(JPushInterface.EXTRA_NOTIFICATION_ID);
Log.d(TAG, "[MyReceiver] 接收到推送下来的通知的ID: " + notifactionId);
} else if (JPushInterface.ACTION_NOTIFICATION_OPENED.equals(intent.getAction())) {
Log.d(TAG, "[MyReceiver] 用户点击打开了通知");
String string = bundle.getString(JPushInterface.EXTRA_EXTRA);
// //打开自定义的Activity
// Intent i = new Intent(context, MainActivity.class);
// i.putExtras(bundle);
// //i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
// i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
// context.startActivity(i);
try {
JSONObject jsonObject = new JSONObject(string);
String Url = jsonObject.getString("Url");
//JPushEntity jPushEntity = GsonManager.fromJson(json, JPushEntity.class);
Intent noticeIntent = new Intent(context, RollViewActivity.class);
noticeIntent.putExtra("Url", Url);
noticeIntent.putExtras(bundle);
noticeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
context.startActivity(noticeIntent);
} catch (JSONException e) {
e.printStackTrace();
}
} else if (JPushInterface.ACTION_RICHPUSH_CALLBACK.equals(intent.getAction())) {
Log.d(TAG, "[MyReceiver] 用户收到到RICH PUSH CALLBACK: " + bundle.getString(JPushInterface.EXTRA_EXTRA));
//在这里根据 JPushInterface.EXTRA_EXTRA 的内容处理代码,比如打开新的Activity, 打开一个网页等..
} else if (JPushInterface.ACTION_CONNECTION_CHANGE.equals(intent.getAction())) {
boolean connected = intent.getBooleanExtra(JPushInterface.EXTRA_CONNECTION_CHANGE, false);
Log.w(TAG, "[MyReceiver]" + intent.getAction() + " connected state change to " + connected);
} else {
Log.d(TAG, "[MyReceiver] Unhandled intent - " + intent.getAction());
}
}
// 打印所有的 intent extra 数据
private static String printBundle(Bundle bundle) {
StringBuilder sb = new StringBuilder();
for (String key : bundle.keySet()) {
if (key.equals(JPushInterface.EXTRA_NOTIFICATION_ID)) {
sb.append("\nkey:" + key + ", value:" + bundle.getInt(key));
} else if (key.equals(JPushInterface.EXTRA_CONNECTION_CHANGE)) {
sb.append("\nkey:" + key + ", value:" + bundle.getBoolean(key));
} else if (key.equals(JPushInterface.EXTRA_EXTRA)) {
if (bundle.getString(JPushInterface.EXTRA_EXTRA).isEmpty()) {
Log.i(TAG, "This message has no Extra data");
continue;
}
try {
JSONObject json = new JSONObject(bundle.getString(JPushInterface.EXTRA_EXTRA));
Iterator<String> it = json.keys();
while (it.hasNext()) {
String myKey = it.next().toString();
sb.append("\nkey:" + key + ", value: [" +
myKey + " - " + json.optString(myKey) + "]");
}
} catch (JSONException e) {
Log.e(TAG, "Get message extra JSON error!");
}
} else {
sb.append("\nkey:" + key + ", value:" + bundle.getString(key));
}
}
return sb.toString();
}
//send msg to MainActivity
private void processCustomMessage(Context context, Bundle bundle) {
if (MainActivity.isForeground) {
String message = bundle.getString(JPushInterface.EXTRA_MESSAGE);
String extras = bundle.getString(JPushInterface.EXTRA_EXTRA);
Intent msgIntent = new Intent(MainActivity.MESSAGE_RECEIVED_ACTION);
msgIntent.putExtra(MainActivity.KEY_MESSAGE, message);
if (!ExampleUtil.isEmpty(extras)) {
try {
JSONObject extraJson = new JSONObject(extras);
if (null != extraJson && extraJson.length() > 0) {
msgIntent.putExtra(MainActivity.KEY_EXTRAS, extras);
}
} catch (JSONException e) {
}
}
context.sendBroadcast(msgIntent);
}
}
}
|
[
"liyun@cicmorgan.com"
] |
liyun@cicmorgan.com
|
6688ad579d3f91f1ce6a24cf37c9ed609be41c17
|
678a3d58c110afd1e9ce195d2f20b2531d45a2e0
|
/sources/com/airbnb/android/react/maps/LatLngBoundsUtils.java
|
595ba8a7a6067de8bf407b43d3cbd16939a1db92
|
[] |
no_license
|
jasonnth/AirCode
|
d1c37fb9ba3d8087efcdd9fa2103fb85d13735d5
|
d37db1baa493fca56f390c4205faf5c9bbe36604
|
refs/heads/master
| 2020-07-03T08:35:24.902940
| 2019-08-12T03:34:56
| 2019-08-12T03:34:56
| 201,842,970
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,644
|
java
|
package com.airbnb.android.react.maps;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.LatLngBounds;
public class LatLngBoundsUtils {
public static boolean BoundsAreDifferent(LatLngBounds a, LatLngBounds b) {
LatLng centerA = a.getCenter();
double latA = centerA.latitude;
double lngA = centerA.longitude;
double latDeltaA = a.northeast.latitude - a.southwest.latitude;
double lngDeltaA = a.northeast.longitude - a.southwest.longitude;
LatLng centerB = b.getCenter();
double latB = centerB.latitude;
double lngB = centerB.longitude;
double latDeltaB = b.northeast.latitude - b.southwest.latitude;
double lngDeltaB = b.northeast.longitude - b.southwest.longitude;
double latEps = LatitudeEpsilon(a, b);
double lngEps = LongitudeEpsilon(a, b);
return different(latA, latB, latEps) || different(lngA, lngB, lngEps) || different(latDeltaA, latDeltaB, latEps) || different(lngDeltaA, lngDeltaB, lngEps);
}
private static boolean different(double a, double b, double epsilon) {
return Math.abs(a - b) > epsilon;
}
private static double LatitudeEpsilon(LatLngBounds a, LatLngBounds b) {
return Math.min(Math.abs(a.northeast.latitude - a.southwest.latitude), Math.abs(b.northeast.latitude - b.southwest.latitude)) / 2560.0d;
}
private static double LongitudeEpsilon(LatLngBounds a, LatLngBounds b) {
return Math.min(Math.abs(a.northeast.longitude - a.southwest.longitude), Math.abs(b.northeast.longitude - b.southwest.longitude)) / 2560.0d;
}
}
|
[
"thanhhuu2apc@gmail.com"
] |
thanhhuu2apc@gmail.com
|
e5db1c129b9eebb9bf2da23ae5ed200bdd74c392
|
be28a7b64a4030f74233a79ebeba310e23fe2c3a
|
/generated-tests/rmosa/tests/s1011/24_saxpath/evosuite-tests/com/werken/saxpath/XPathLexer_ESTest_scaffolding.java
|
233584641aa089703c730d05747c18cc553115bc
|
[
"MIT"
] |
permissive
|
blindsubmissions/icse19replication
|
664e670f9cfcf9273d4b5eb332562a083e179a5f
|
42a7c172efa86d7d01f7e74b58612cc255c6eb0f
|
refs/heads/master
| 2020-03-27T06:12:34.631952
| 2018-08-25T11:19:56
| 2018-08-25T11:19:56
| 146,074,648
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,258
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Thu Aug 23 09:51:11 GMT 2018
*/
package com.werken.saxpath;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.junit.AfterClass;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class XPathLexer_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "com.werken.saxpath.XPathLexer";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED;
org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT();
org.evosuite.runtime.classhandling.JDKClassResetter.init();
setSystemProperties();
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@AfterClass
public static void clearEvoSuiteFramework(){
Sandbox.resetDefaultSecurityManager();
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode();
setSystemProperties();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
org.evosuite.runtime.classhandling.JDKClassResetter.reset();
resetClasses();
org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public static void setSystemProperties() {
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
java.lang.System.setProperty("file.encoding", "UTF-8");
java.lang.System.setProperty("java.awt.headless", "true");
java.lang.System.setProperty("java.io.tmpdir", "/tmp");
java.lang.System.setProperty("user.country", "US");
java.lang.System.setProperty("user.dir", "/home/ubuntu/evosuite_readability_gen/projects/24_saxpath");
java.lang.System.setProperty("user.home", "/home/ubuntu");
java.lang.System.setProperty("user.language", "en");
java.lang.System.setProperty("user.name", "ubuntu");
java.lang.System.setProperty("user.timezone", "Etc/UTC");
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(XPathLexer_ESTest_scaffolding.class.getClassLoader() ,
"com.werken.saxpath.Token",
"com.werken.saxpath.XPathLexer"
);
}
private static void resetClasses() {
org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(XPathLexer_ESTest_scaffolding.class.getClassLoader());
org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
"com.werken.saxpath.XPathLexer",
"com.werken.saxpath.Token"
);
}
}
|
[
"my.submission.blind@gmail.com"
] |
my.submission.blind@gmail.com
|
265c1dd563f4fc4ce9b3e2f24af20d79ea2c5678
|
ad5cd983fa810454ccbb8d834882856d7bf6faca
|
/platform/ext/platformservices/src/de/hybris/platform/order/strategies/impl/DefaultCreateQuoteSnapshotStrategy.java
|
63e4fbc04a1ec1cd0f31f4d9e4c3648a66d4feba
|
[] |
no_license
|
amaljanan/my-hybris
|
2ea57d1a4391c9a81c8f4fef7c8ab977b48992b8
|
ef9f254682970282cf8ad6d26d75c661f95500dd
|
refs/heads/master
| 2023-06-12T17:20:35.026159
| 2021-07-09T04:33:13
| 2021-07-09T04:33:13
| 384,177,175
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,364
|
java
|
/*
* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
*/
package de.hybris.platform.order.strategies.impl;
import static de.hybris.platform.servicelayer.util.ServicesUtil.validateParameterNotNullStandardMessage;
import de.hybris.platform.core.enums.QuoteState;
import de.hybris.platform.core.model.order.QuoteEntryModel;
import de.hybris.platform.core.model.order.QuoteModel;
import de.hybris.platform.order.strategies.CreateQuoteSnapshotStrategy;
import java.util.Optional;
/**
* The Class DefaultCreateQuoteSnapshotStrategy.
*/
public class DefaultCreateQuoteSnapshotStrategy
extends GenericAbstractOrderCloningStrategy<QuoteModel, QuoteEntryModel, QuoteModel>
implements CreateQuoteSnapshotStrategy
{
public DefaultCreateQuoteSnapshotStrategy()
{
super(QuoteModel.class, QuoteEntryModel.class, QuoteModel.class);
}
@Override
public QuoteModel createQuoteSnapshot(final QuoteModel quote, final QuoteState quoteState)
{
validateParameterNotNullStandardMessage("quote", quote);
validateParameterNotNullStandardMessage("quoteState", quoteState);
final QuoteModel quoteSnapshot = clone(quote, Optional.of(quote.getCode()));
quoteSnapshot.setState(quoteState);
quoteSnapshot.setVersion(Integer.valueOf(quote.getVersion().intValue() + 1));
postProcess(quote, quoteSnapshot);
return quoteSnapshot;
}
}
|
[
"amaljanan333@gmail.com"
] |
amaljanan333@gmail.com
|
547a47b9bccbf2814c99fa80ec712a110ff4fbdb
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/actorapp--actor-platform/00d8bf64c793173cfb8f8912bf2f42cba199b6da/before/ConnectingStateChanged.java
|
c678faca995f3872ae9758ad71ded4649fb7da5b
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003
| 2018-11-30T13:00:57
| 2018-11-30T13:00:57
| 87,353,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 590
|
java
|
package im.actor.core.modules.events;
import im.actor.runtime.eventbus.Event;
public class ConnectingStateChanged extends Event {
public static final String EVENT = "connecting_state_changed";
private boolean isConnecting;
public ConnectingStateChanged(boolean isConnecting) {
this.isConnecting = isConnecting;
}
public boolean isConnecting() {
return isConnecting;
}
@Override
public String getType() {
return EVENT;
}
@Override
public String toString() {
return EVENT + " {" + isConnecting + "}";
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
b05eb2e0b03a1404a26d64642ea97eb90a0a3edc
|
2eeff73686aea02b4b59b1a02fe9abc60987da86
|
/user/src/test/java/org/tessell/model/dsl/WhenConditionsTest.java
|
04115b32d5ff6816a97238b26a2f700a89f3b68e
|
[
"Apache-2.0"
] |
permissive
|
jcarver989/tessell
|
bef33893a68f6103c3734f97f279f8b63ea891d9
|
f35eb952386f55c00d61faf65d665deff1895ab4
|
refs/heads/master
| 2021-04-15T14:38:03.650868
| 2012-08-13T17:55:41
| 2012-08-13T17:55:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 948
|
java
|
package org.tessell.model.dsl;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.tessell.model.dsl.WhenConditions.greaterThan;
import static org.tessell.model.dsl.WhenConditions.lessThan;
import static org.tessell.model.properties.NewProperty.integerProperty;
import org.junit.Test;
import org.tessell.model.properties.IntegerProperty;
public class WhenConditionsTest {
@Test
public void testGreaterThan() {
IntegerProperty i = integerProperty("i", 1);
assertThat(greaterThan(0).evaluate(i), is(true));
assertThat(greaterThan(1).evaluate(i), is(false));
assertThat(greaterThan(2).evaluate(i), is(false));
}
@Test
public void testLessThan() {
IntegerProperty i = integerProperty("i", 1);
assertThat(lessThan(0).evaluate(i), is(false));
assertThat(lessThan(1).evaluate(i), is(false));
assertThat(lessThan(2).evaluate(i), is(true));
}
}
|
[
"stephen@exigencecorp.com"
] |
stephen@exigencecorp.com
|
92527e6274144d039ccf46528c7b48599edcb1e6
|
f40c5613a833bc38fca6676bad8f681200cffb25
|
/kubernetes-model-generator/openshift-model-hive/src/generated/java/io/fabric8/openshift/api/model/hive/v1/SelectorSyncIdentityProviderList.java
|
cf661f6488cf6965420aeaa45d5e650c07a2515f
|
[
"Apache-2.0"
] |
permissive
|
rohanKanojia/kubernetes-client
|
2d599e4ed1beedf603c79d28f49203fbce1fc8b2
|
502a14c166dce9ec07cf6adb114e9e36053baece
|
refs/heads/master
| 2023-07-25T18:31:33.982683
| 2022-04-12T13:39:06
| 2022-04-13T05:12:38
| 106,398,990
| 2
| 3
|
Apache-2.0
| 2023-04-28T16:21:03
| 2017-10-10T09:50:25
|
Java
|
UTF-8
|
Java
| false
| false
| 5,320
|
java
|
package io.fabric8.openshift.api.model.hive.v1;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.fabric8.kubernetes.api.model.Container;
import io.fabric8.kubernetes.api.model.IntOrString;
import io.fabric8.kubernetes.api.model.KubernetesResource;
import io.fabric8.kubernetes.api.model.KubernetesResourceList;
import io.fabric8.kubernetes.api.model.LabelSelector;
import io.fabric8.kubernetes.api.model.ListMeta;
import io.fabric8.kubernetes.api.model.LocalObjectReference;
import io.fabric8.kubernetes.api.model.ObjectMeta;
import io.fabric8.kubernetes.api.model.ObjectReference;
import io.fabric8.kubernetes.api.model.PersistentVolumeClaim;
import io.fabric8.kubernetes.api.model.PodTemplateSpec;
import io.fabric8.kubernetes.api.model.ResourceRequirements;
import io.fabric8.kubernetes.model.annotation.Group;
import io.fabric8.kubernetes.model.annotation.Version;
import io.sundr.builder.annotations.Buildable;
import io.sundr.builder.annotations.BuildableReference;
import lombok.EqualsAndHashCode;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"apiVersion",
"kind",
"metadata",
"items"
})
@ToString
@EqualsAndHashCode
@Setter
@Accessors(prefix = {
"_",
""
})
@Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = {
@BuildableReference(ObjectMeta.class),
@BuildableReference(LabelSelector.class),
@BuildableReference(Container.class),
@BuildableReference(PodTemplateSpec.class),
@BuildableReference(ResourceRequirements.class),
@BuildableReference(IntOrString.class),
@BuildableReference(ObjectReference.class),
@BuildableReference(LocalObjectReference.class),
@BuildableReference(PersistentVolumeClaim.class)
})
@Version("v1")
@Group("hive.openshift.io")
public class SelectorSyncIdentityProviderList implements KubernetesResource, KubernetesResourceList<io.fabric8.openshift.api.model.hive.v1.SelectorSyncIdentityProvider>
{
/**
*
* (Required)
*
*/
@JsonProperty("apiVersion")
private String apiVersion = "hive.openshift.io/v1";
@JsonProperty("items")
private List<io.fabric8.openshift.api.model.hive.v1.SelectorSyncIdentityProvider> items = new ArrayList<io.fabric8.openshift.api.model.hive.v1.SelectorSyncIdentityProvider>();
/**
*
* (Required)
*
*/
@JsonProperty("kind")
private String kind = "SelectorSyncIdentityProviderList";
@JsonProperty("metadata")
private ListMeta metadata;
@JsonIgnore
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
/**
* No args constructor for use in serialization
*
*/
public SelectorSyncIdentityProviderList() {
}
/**
*
* @param metadata
* @param apiVersion
* @param kind
* @param items
*/
public SelectorSyncIdentityProviderList(String apiVersion, List<io.fabric8.openshift.api.model.hive.v1.SelectorSyncIdentityProvider> items, String kind, ListMeta metadata) {
super();
this.apiVersion = apiVersion;
this.items = items;
this.kind = kind;
this.metadata = metadata;
}
/**
*
* (Required)
*
*/
@JsonProperty("apiVersion")
public String getApiVersion() {
return apiVersion;
}
/**
*
* (Required)
*
*/
@JsonProperty("apiVersion")
public void setApiVersion(String apiVersion) {
this.apiVersion = apiVersion;
}
@JsonProperty("items")
public List<io.fabric8.openshift.api.model.hive.v1.SelectorSyncIdentityProvider> getItems() {
return items;
}
@JsonProperty("items")
public void setItems(List<io.fabric8.openshift.api.model.hive.v1.SelectorSyncIdentityProvider> items) {
this.items = items;
}
/**
*
* (Required)
*
*/
@JsonProperty("kind")
public String getKind() {
return kind;
}
/**
*
* (Required)
*
*/
@JsonProperty("kind")
public void setKind(String kind) {
this.kind = kind;
}
@JsonProperty("metadata")
public ListMeta getMetadata() {
return metadata;
}
@JsonProperty("metadata")
public void setMetadata(ListMeta metadata) {
this.metadata = metadata;
}
@JsonAnyGetter
public Map<String, Object> getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
}
|
[
"marc@marcnuri.com"
] |
marc@marcnuri.com
|
5f06d73845d2e0c5d36372feb9a76cdfa8b16b1d
|
cc6679e93340935c22d15984f1a939d15867721b
|
/src/RegexEx/ExtractEmails.java
|
5a106e07d7e8bdb3bd89bcab57e16fc886d3994e
|
[] |
no_license
|
GerganaL/JavaFundamentals-2020-Softuni
|
2cd21f31e9cd500e3dedde0f5562e54749e4c70f
|
8f7cae0ff424b8a44346c1c47a69af455c1ccdc6
|
refs/heads/master
| 2023-01-30T18:36:35.274829
| 2020-12-12T08:03:11
| 2020-12-12T08:03:11
| 318,480,327
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 588
|
java
|
package RegexEx;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class ExtractEmails {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String input = scan.nextLine();
String userRegex = "((?<=\\s)[a-zA-Z0-9]+([-.]\\w*)*@[a-zA-Z]+?([.-][a-zA-Z]*)*(\\.[a-z]{2,}))";
Pattern userPattern = Pattern.compile(userRegex);
Matcher matcher = userPattern.matcher(input);
while (matcher.find()){
System.out.println(matcher.group());
}
}
}
|
[
"lulchevagergana@gmail.com"
] |
lulchevagergana@gmail.com
|
776dcd5f2ea3d2e8185d1f493fe762a2e9a7126b
|
4f3fbd90662e4e0607809025c3709017c305c2d7
|
/iters-service/src/main/java/com/xinghui/service/PersonalFileService.java
|
6331e668a19fee01dd21f3f96c111dff024ef08e
|
[] |
no_license
|
chenkuanxing/iters
|
f76332aec5648317f35683c51c7a52b3d57a3043
|
4e65eab3445e98e60023cf03ff94ad3cb1d4d453
|
refs/heads/master
| 2022-07-09T07:29:30.128430
| 2020-05-22T09:00:37
| 2020-05-22T09:00:37
| 195,210,743
| 1
| 0
| null | 2022-06-29T17:29:19
| 2019-07-04T09:23:47
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 489
|
java
|
package com.xinghui.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xinghui.dot.PersonalFileDot;
import com.xinghui.entity.PersonalFile;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
public interface PersonalFileService extends IService<PersonalFile> {
boolean create(PersonalFileDot personalFileDot);
String fileUpload(MultipartFile file);
}
|
[
"12345678"
] |
12345678
|
602bb9f56870d5be174cc32e3762d9a1c6646109
|
4a6f52eb172ca463d2488b9f17459793ce224201
|
/Book-Store-Servlet/src/com/tampro/service/impl/DistrictServiceImpl.java
|
6efa3d9732eb655520bbd27d97230a188eabacf9
|
[] |
no_license
|
xomrayno1/test
|
a2982392d7c6ae969c4677c730d1d837db224254
|
ceee10b3d8ab92865ef1d6f63c41195d3b8dcbf0
|
refs/heads/master
| 2022-12-01T18:25:59.520499
| 2020-08-10T16:10:30
| 2020-08-10T16:10:30
| 286,278,456
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,133
|
java
|
package com.tampro.service.impl;
import java.util.List;
import com.tampro.dao.DistrictDao;
import com.tampro.dao.impl.DistrictDaoImpl;
import com.tampro.model.District;
import com.tampro.service.DistrictService;
public class DistrictServiceImpl implements DistrictService{
DistrictDao districtDao = new DistrictDaoImpl();
@Override
public List<District> getAll() {
// TODO Auto-generated method stub
return districtDao.getAll();
}
@Override
public List<District> getAllByIdProvince(int idProvince) {
// TODO Auto-generated method stub
return districtDao.getAllByIdProvince(idProvince);
}
@Override
public District getDistrictById(int id) {
// TODO Auto-generated method stub
return districtDao.getDistrictById(id);
}
@Override
public boolean delete(int id) {
// TODO Auto-generated method stub
return districtDao.delete(id);
}
@Override
public boolean update(District district) {
// TODO Auto-generated method stub
return districtDao.update(district);
}
@Override
public boolean add(District district) {
// TODO Auto-generated method stub
return districtDao.add(district);
}
}
|
[
"xomrayno5"
] |
xomrayno5
|
61e52656a2083ad83fe09aa6546b97b79cd80cf2
|
a018b34d355869d4998a4496df7a32951bde52e3
|
/broadcasttest/src/main/java/com/glg/broadcasttest/MyReceiver.java
|
a91fadcde555e635de2656f1365337e6ef4be286
|
[] |
no_license
|
gao271692093/Demo
|
1a1c294df6ce435898f932aac2412ef19f24a57c
|
3659887e6302474ce79a1169276197e0aba2e354
|
refs/heads/master
| 2021-08-06T16:51:56.692548
| 2020-12-31T03:06:19
| 2020-12-31T03:06:19
| 234,738,155
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,068
|
java
|
package com.glg.broadcasttest;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;
public class MyReceiver extends BroadcastReceiver {
private static final String Action1 = "zuckerberg";
private static final String Action2 = "mayun";
@Override
public void onReceive(Context context, Intent intent) {
if(intent.getAction().equals(Action1)) {
Toast.makeText(context, "MyReceiver收到:扎克伯格的广播", Toast.LENGTH_SHORT).show();
} else if(intent.getAction().equals("MyBroadcast")) {
Bundle bundle = intent.getExtras();
if(bundle != null) {
String text = bundle.getString("text");
Toast.makeText(context, "成功接收广播:"+text, Toast.LENGTH_SHORT).show();
}
} else {
Toast.makeText(context, "MyReceiver收到马云的广播", Toast.LENGTH_SHORT).show();
}
}
}
|
[
"271692093@qq.com"
] |
271692093@qq.com
|
acd3b02a3b3f7f3a165d49710a1482d905adabe6
|
eb7240bd1ab4bccdeca51a7d56bc7c948633467c
|
/heima/day11/src/hm_02kehouxiti/Test8.java
|
46ef0b49c763e83dfac45536d5958dbad49446e6
|
[] |
no_license
|
yp684320/sms
|
00890946d76d9d9d9c12eea3e58535222c25bbc5
|
9bc5a574db6436cefbeb57b4a4639907a16c613f
|
refs/heads/master
| 2020-05-03T13:31:59.839678
| 2019-03-31T06:37:14
| 2019-03-31T06:37:14
| 178,655,242
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 630
|
java
|
package hm_02kehouxiti;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
/*描述:将上一题保存到stu.txt文件中的学生对象读取出来。*/
public class Test8 {
public static void main(String[] args) throws IOException, ClassNotFoundException {
//反序列化
//创建反序列化流对象
ObjectInputStream ois = new ObjectInputStream(new FileInputStream("stu.txt"));
//读取一个对象
Student s =(Student) ois.readObject();
System.out.println(s);
ois.close();
}
}
|
[
"naiba@example.com"
] |
naiba@example.com
|
7e34ad2ef424e449e3f045750401bdb3fa4a138b
|
a4862976d43e02c14c9d90034fd18cfb46701334
|
/src/test/java/com/bellintegrator/weatherbrokertomcat/controller/IndexControllerTest.java
|
3cacf2d153f1795acc06976df8d764aafdbd3bff
|
[] |
no_license
|
danailKondov/weatherbroker_for_tomcat
|
48b5ab510ffb17662b42128928472c65a7386600
|
679cdcf31ff9b78ebbcd57547dc9297282b90f53
|
refs/heads/master
| 2020-03-11T03:45:42.456121
| 2018-05-17T09:38:51
| 2018-05-17T09:38:51
| 129,757,774
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,459
|
java
|
package com.bellintegrator.weatherbrokertomcat.controller;
import org.hamcrest.Matchers;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.http.MediaType;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
import static org.junit.Assert.*;
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.view;
@RunWith(SpringRunner.class)
@WebMvcTest(IndexController.class)
public class IndexControllerTest {
@Autowired
private MockMvc mvc;
@Test
public void getIndexTest() throws Exception {
mvc.perform(MockMvcRequestBuilders
.get("/index")
.accept(MediaType.TEXT_HTML))
.andExpect(status().isOk())
.andExpect(view().name("index"))
.andExpect(content().string(Matchers.containsString("Enter city for weather info")))
.andDo(print());
}
}
|
[
"dkondov@yandex.ru"
] |
dkondov@yandex.ru
|
8d955363049b4e29d3c2eefca70324dd13945182
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/11/11_26aedd86ceaacb9dd0b598a0c55d27f6d8f3705f/AmibeToMesh/11_26aedd86ceaacb9dd0b598a0c55d27f6d8f3705f_AmibeToMesh_t.java
|
37508131e57bc0f330f7fcee059a18a5dd661d14
|
[] |
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
| 5,048
|
java
|
/*
* Project Info: http://jcae.sourceforge.net
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This 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 Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* (C) Copyright 2009, by EADS France
*/
package org.jcae.vtk;
import gnu.trove.TIntArrayList;
import gnu.trove.TIntHashSet;
import gnu.trove.TIntIntHashMap;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.jcae.mesh.xmldata.AmibeReader;
import org.jcae.mesh.xmldata.AmibeReader.Group;
import org.jcae.mesh.xmldata.AmibeReader.SubMesh;
import org.xml.sax.SAXException;
/**
*
* @author Jerome Robert
*/
public class AmibeToMesh
{
private final static Logger LOGGER=Logger.getLogger(AmibeToMesh.class.getName());
private Map<String, LeafNode.DataProvider> triangles =
new HashMap<String, LeafNode.DataProvider>();
private Map<String, LeafNode.DataProvider> beams =
new HashMap<String, LeafNode.DataProvider>();
public Map<String, LeafNode.DataProvider> getTriangles()
{
return Collections.unmodifiableMap(triangles);
}
public Map<String, LeafNode.DataProvider> getBeams()
{
return Collections.unmodifiableMap(beams);
}
/**
* Create the list of needed nodes for a triangle array
* @param trias the triangles which require nodes
* @return the nodes id
*/
private static int[] makeNodeIDArray(int[] ... ids)
{
int n = 0;
for(int[] id:ids)
n += id.length;
TIntHashSet set = new TIntHashSet(n/2);
for(int[] id:ids)
set.addAll(id);
TIntArrayList list = new TIntArrayList(set.size());
list.add(set.toArray());
list.sort();
return list.toNativeArray();
}
private static void renumberArray(int[] newIndices, int[] ... arraysToRenumber)
{
TIntIntHashMap map = new TIntIntHashMap(newIndices.length);
for (int i = 0; i < newIndices.length; i++)
map.put(newIndices[i], i);
for(int[] arrayToRenumber:arraysToRenumber)
for (int i = 0; i < arrayToRenumber.length; i++)
arrayToRenumber[i] = map.get(arrayToRenumber[i]);
}
private static class TriaData extends LeafNode.DataProvider
{
private final AmibeReader.Dim3 provider;
private final String id;
TriaData(AmibeReader.Dim3 provider, String id)
{
this.provider = provider;
this.id = id;
}
@Override
public void load()
{
try {
SubMesh sm = provider.getSubmeshes().get(0);
Group g = sm.getGroup(id);
int[] triangles = g.readTria3();
int[] nodesID = makeNodeIDArray(triangles);
setNodes(sm.readNodes(nodesID));
renumberArray(nodesID, triangles);
setPolys(triangles.length/3, Utils.createTriangleCells(triangles, 0));
} catch (IOException ex) {
LOGGER.log(Level.SEVERE, ex.getMessage(), ex);
}
}
}
private static class BeamData extends LeafNode.DataProvider
{
private final AmibeReader.Dim3 provider;
private final String id;
BeamData(AmibeReader.Dim3 provider, String id)
{
this.provider = provider;
this.id = id;
}
@Override
public void load()
{
try {
SubMesh sm = provider.getSubmeshes().get(0);
Group g = sm.getGroup(id);
int[] beams = g.readBeams();
int[] nodesID = makeNodeIDArray(beams);
setNodes(sm.readNodes(nodesID));
renumberArray(nodesID, beams);
setLines(Utils.createBeamCells(beams));
} catch (IOException ex) {
LOGGER.log(Level.SEVERE, ex.getMessage(), ex);
}
}
}
public AmibeToMesh(String filePath) throws SAXException, IOException
{
this(filePath, null);
}
public AmibeToMesh(String filePath, String[] groupExtraction)
throws SAXException, IOException
{
AmibeReader.Dim3 reader = new AmibeReader.Dim3(filePath);
SubMesh sm = reader.getSubmeshes().get(0);
List<Group> grps = sm.getGroups();
if(groupExtraction == null)
{
groupExtraction = new String[grps.size()];
for(int i=0; i<groupExtraction.length; i++)
groupExtraction[i]=grps.get(i).getName();
}
for(String id : groupExtraction)
{
Group g = sm.getGroup(id);
if(g != null)
{
if(g.getNumberOfTrias() > 0)
triangles.put(id, new TriaData(reader, id));
if(g.getNumberOfBeams() > 0)
beams.put(id, new BeamData(reader, id));
}
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
1768dbd7f67405f062971dbfb939b66293805c23
|
dd91160574613bda26b84634982dfbb668f9cd4e
|
/src/main/java/gyakorlás/vizsga2felkészülés/Trainer.java
|
68ae1d9ef56638b594c0f929fcdfb9770b494b34
|
[] |
no_license
|
djtesla/training-solutions
|
fbaa6216e151be39e0ceef7bcb1466652d56f9e4
|
4d54a4d5573ae897bef7bcd55cc779d92414d57b
|
refs/heads/master
| 2023-07-15T21:38:59.893443
| 2021-09-06T06:02:13
| 2021-09-06T06:02:13
| 308,435,314
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 762
|
java
|
package gyakorlás.vizsga2felkészülés;
import gyakorlás.TrafficLight;
import java.util.ArrayList;
import java.util.List;
public class Trainer extends Human {
private String name;
private List<Course> courses = new ArrayList<>();
public Trainer() {
}
@Override
public String getName() {
return name;
}
public Trainer(String name, int age, List<Course> courses) {
this.courses = courses;
}
public List<Course> getCourses() {
return courses;
}
public void sayHello() {
System.out.println("Hello");
}
public void setCourses(List<Course> courses) {
this.courses = courses;
}
@Override
public int getFreeTime() {
return 5;
}
}
|
[
"djtesla@gmailcom"
] |
djtesla@gmailcom
|
78c412e4d545633368a2818ffcdb80c34f01e556
|
c1b23a03926012ccee280b3895f100cec61d2407
|
/topdeep_web_common/server/common-core/src/main/java/topdeep/commonfund/entity/hundsun/B014Input.java
|
9aaaa4cac48eafa8c4234562d7c14daca7178aa9
|
[] |
no_license
|
zhuangxiaotian/project
|
a0e548c88f01339993097d99ac68adcba9d11171
|
d0c96854b3678209c9a25d07c9729c613fe66d38
|
refs/heads/master
| 2020-12-05T23:14:27.354448
| 2016-09-01T07:19:22
| 2016-09-01T07:19:22
| 67,108,931
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 876
|
java
|
package topdeep.commonfund.entity.hundsun;
import java.io.Serializable;
import java.util.*;
import common.util.param.PropertyAttribute;
/**
* 汇付渠道当前银行卡查询(B014)
*/
public class B014Input extends HundsunBaseInput implements Serializable {
/**
* 交易账号,
*/
private String tradeacco = "";
/**
* 初始化参数
*/
public B014Input() {
this.setFunction("B014");
this.setChannel("1");
this.setUsertype("p");
this.setSignmode("md5");
this.setVersion("v1.0");
this.setFormat("json");
}
/**
* 交易账号,
*/
public String getTradeacco() {
return this.tradeacco;
}
/**
* 交易账号,
*/
public void setTradeacco(String value)
{
this.tradeacco = value;
}
public void serializeToMap(Map<String, String> inputMap) {
super.serializeToMap(inputMap);
inputMap.put("tradeacco", this.tradeacco);
}
}
|
[
"xtian.zhuang@topdeep.com"
] |
xtian.zhuang@topdeep.com
|
448b05174bc381da65575331cbb85a95da4d867a
|
d6c9d7f1831ff8ff224b51834bfd77d178491ac5
|
/app/src/main/java/com/example/q/pocketmusic/module/home/profile/user/other/OtherProfileActivity.java
|
1be5211ed5e83c1cefbcc9731f56989130d6f7a4
|
[] |
no_license
|
kikiChuang/PocketMusic
|
84b8ed4cb6a1af6b30604a27b8edd217f46067a0
|
7c3ef688f1ffdad25c67c23b82459cd0877fcb2f
|
refs/heads/master
| 2021-08-16T06:14:49.255811
| 2017-11-19T04:34:48
| 2017-11-19T04:34:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,992
|
java
|
package com.example.q.pocketmusic.module.home.profile.user.other;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.support.v7.widget.Toolbar;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.q.pocketmusic.R;
import com.example.q.pocketmusic.config.pic.DisplayStrategy;
import com.example.q.pocketmusic.data.bean.MyUser;
import com.example.q.pocketmusic.module.common.AuthActivity;
import butterknife.BindView;
import butterknife.OnClick;
public class OtherProfileActivity extends AuthActivity<OtherProfilePresenter.IView, OtherProfilePresenter>
implements OtherProfilePresenter.IView {
@BindView(R.id.tab_layout)
TabLayout tabLayout;
@BindView(R.id.view_pager)
ViewPager viewPager;
@BindView(R.id.head_iv)
ImageView headIv;
@BindView(R.id.user_signature_tv)
TextView userSignatureTv;
@BindView(R.id.toolbar)
Toolbar toolbar;
@BindView(R.id.interest_tv)
TextView interestTv;
private OtherAdapter adapter;
public MyUser otherUser;
public final static String PARAM_USER = "other_user";
@Override
protected OtherProfilePresenter createPresenter() {
return new OtherProfilePresenter(this);
}
@Override
public int setContentResource() {
return R.layout.activity_other_profile;
}
@Override
public void initUserView() {
otherUser = (MyUser) getIntent().getSerializableExtra(PARAM_USER);
initToolbar(toolbar, otherUser.getNickName());
adapter = new OtherAdapter(getSupportFragmentManager());
viewPager.setAdapter(adapter);
tabLayout.setupWithViewPager(viewPager);
userSignatureTv.setText(otherUser.getSignature());
new DisplayStrategy().displayCircle(getCurrentContext(), otherUser.getHeadImg(), headIv);
}
@OnClick(R.id.interest_tv)
public void onViewClicked() {
presenter.interestOther(otherUser);
}
}
|
[
"812568684@qq.com"
] |
812568684@qq.com
|
31f75ca1df7bbe31184be7b7b92cbc95864e45e8
|
5d04f56906801ab830ceb7d8ef954035c1617430
|
/src/org/usfirst/frc/team2848/robot/commands/auton/RedPosition1.java
|
efac5492849a04fccdfab20c476894bff806929c
|
[] |
no_license
|
AllSparks2848/FRC2017
|
305ccebab4c79708bdbc8619a71bc7ab0be40c1b
|
c26ba7449ee5001624c62946f0a6479eaa82d5ec
|
refs/heads/master
| 2021-01-20T03:59:33.916037
| 2017-05-06T22:00:36
| 2017-05-06T22:00:36
| 89,616,487
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,352
|
java
|
package org.usfirst.frc.team2848.robot.commands.auton;
import org.usfirst.frc.team2848.robot.Robot;
import org.usfirst.frc.team2848.robot.commands.drive.AllOmnis;
import org.usfirst.frc.team2848.robot.commands.drive.BackAway;
import org.usfirst.frc.team2848.robot.commands.drive.DriveToDistHigh;
import org.usfirst.frc.team2848.robot.commands.drive.DriveToDistance;
import org.usfirst.frc.team2848.robot.commands.drive.GyroTurn;
import org.usfirst.frc.team2848.robot.commands.drive.NoOmnis;
import org.usfirst.frc.team2848.robot.commands.drive.ShiftHigh;
import org.usfirst.frc.team2848.robot.commands.drive.ShiftLow;
import org.usfirst.frc.team2848.robot.commands.drive.TestZeroGyro;
import org.usfirst.frc.team2848.robot.commands.drive.VisionTurn;
import org.usfirst.frc.team2848.robot.commands.intake.IntakePID;
import org.usfirst.frc.team2848.robot.commands.intake.SpitGearBreakBeam;
import edu.wpi.first.wpilibj.command.CommandGroup;
/**
*
*/
public class RedPosition1 extends CommandGroup {
public RedPosition1() {
// NON VISION
/*addSequential(new ShiftLow());
addSequential(new NoOmnis());
addSequential(new ZeroIntake());
addSequential(new testZeroGyro());
addSequential(new DriveToDistance(70.3));
addSequential(new Wait(.75));
addParallel(new IntakePIDNonStop(Robot.intake.spitPos));
addSequential (new GyroTurn(60));
addSequential(new Wait(.75));
addSequential(new DriveToDistance(62));
addSequential(new Wait(.75)); */
//NON VISION
addSequential(new ShiftLow());
addSequential(new NoOmnis());
addParallel(new ZeroAndVisionPos());
addSequential(new TestZeroGyro());
addSequential(new DriveToDistance(74.3));
//addParallel(new IntakePIDNonStop(Robot.intake.spitPos));
addSequential (new GyroTurn(60));
addSequential(new DriveToDistance(30)); //was 30
addSequential(new VisionTurn());
addSequential(new IntakePID(Robot.intake.spitPos));
addSequential(new DriveToDistance(34)); //was 34
addParallel(new SpitGearBreakBeam());
addSequential(new BackAway());
addSequential(new TestZeroGyro());
addSequential(new GyroTurn(-60));
addSequential(new ShiftHigh());
addSequential(new AllOmnis());
addSequential(new DriveToDistHigh(125));
}
}
|
[
"18187@jcpstudents.org"
] |
18187@jcpstudents.org
|
e82f2998964121b335f60b08195c964b5f466264
|
e54f6b2b0da03f54d5a3f48e427f628cac675abb
|
/src/flightTrackApp/Capital.java
|
1b6c877830ff252dc79f00fcd5a5f582ef3fe225
|
[] |
no_license
|
tugrulhkarabulut/FlightTrackApp
|
afa1677807e87f6f5135cb4ad04721ddc28a928e
|
9570a7db58987e0608b81926976ecfb62b5cfb2d
|
refs/heads/master
| 2022-07-11T06:14:27.245138
| 2020-05-14T16:03:14
| 2020-05-14T16:03:14
| 263,961,029
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 465
|
java
|
package flightTrackApp;
public class Capital {
public static int numCapitals = 0;
private String name;
private int id;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public Capital(String name) {
numCapitals++;
this.id = numCapitals;
this.name = name;
}
public String toString() {
return name;
}
}
|
[
"="
] |
=
|
1c5e8bb704f867d8c23804171117c2b8ab9e2caf
|
ebb91f8170706aaab667d1432ec70af4b3d8d756
|
/app/src/main/java/con/xiaweizi/dashboardview/MainActivity.java
|
1e7ee27afbe47adf66fade0e58cfd7e34ee13026
|
[] |
no_license
|
xiaweizi/CoderPDemo
|
1ce2dac952aa437a460a4b12b64f6d10a8714abc
|
6a256c4bc5377da021cf6de15c894654066c889a
|
refs/heads/master
| 2020-04-14T22:55:06.716864
| 2019-01-25T03:12:30
| 2019-01-25T03:12:30
| 164,183,361
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 427
|
java
|
package con.xiaweizi.dashboardview;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
public class MainActivity extends AppCompatActivity {
private View view;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
view = findViewById(R.id.view);
}
}
|
[
"1012126908@qq.com"
] |
1012126908@qq.com
|
3c0c99d597f4a779e43dbfba0515fec48e2c5206
|
6bb75074f72a08f40f7d8f08ea655f0778e2cc9b
|
/app/src/main/java/io/github/andres_vasquez/attendacelist/viewmodel/PersonViewModel.java
|
642f3ffb61de7e765f5dba381b901262915ee115
|
[] |
no_license
|
andres-vasquez/android-mvvm-attendance
|
c9551e5d63b9040c8b3c4192db2c585b2588efb0
|
497dc85c82d6e97941064e1b1c2409dcda2e12c2
|
refs/heads/master
| 2020-12-25T18:42:50.167902
| 2017-06-18T21:44:38
| 2017-06-18T21:44:38
| 93,979,208
| 4
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,404
|
java
|
package io.github.andres_vasquez.attendacelist.viewmodel;
import android.app.Application;
import android.arch.lifecycle.AndroidViewModel;
import android.arch.lifecycle.LiveData;
import android.support.annotation.Nullable;
import java.util.List;
import io.github.andres_vasquez.attendacelist.db.entity.PersonEntity;
import io.github.andres_vasquez.attendacelist.repository.PersonRepositoryImpl;
/**
* Created by andresvasquez on 6/11/17.
*/
public class PersonViewModel extends AndroidViewModel{
public PersonRepositoryImpl personRepository;
@Nullable
private LiveData<List<PersonEntity>> mPersonList;
public PersonViewModel(Application application) {
super(application);
personRepository =new PersonRepositoryImpl(application);
// Receive changes
subscribeToDbChanges();
}
/**
* Get all persons in LiveData variable
*/
private void subscribeToDbChanges() {
//TODO Step 10: Bind the person List LiveData
}
@Nullable
public LiveData<List<PersonEntity>> getPersonList() {
return mPersonList;
}
/**
* Get one person in LiveData variable
* @param personId Id of person to observe
* @return livedata object
*/
@Nullable
public LiveData<PersonEntity> getPerson(int personId) {
//TODO Step 11: Bind the single person LiveData
return null;
}
}
|
[
"andres.vasquez.a@hotmail.com"
] |
andres.vasquez.a@hotmail.com
|
83ea0373b7e156e78cb10a42c9f4a8223e11d3ac
|
6d60a8adbfdc498a28f3e3fef70366581aa0c5fd
|
/codebase/selected/339583.java
|
07f92eaa16d5d71ac1dff811611d4569540bea35
|
[] |
no_license
|
rayhan-ferdous/code2vec
|
14268adaf9022d140a47a88129634398cd23cf8f
|
c8ca68a7a1053d0d09087b14d4c79a189ac0cf00
|
refs/heads/master
| 2022-03-09T08:40:18.035781
| 2022-02-27T23:57:44
| 2022-02-27T23:57:44
| 140,347,552
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,124
|
java
|
package net.sourceforge.javautil.common.reflection.cache;
import java.lang.annotation.Annotation;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Member;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.Type;
import net.sourceforge.javautil.common.reflection.ReflectionContext;
/**
* A class property descriptor and access bridge. A property
* is a getter and/or setter that follows the Java Beans specification.
*
* @author elponderador
* @author $Author: ponderator $
* @version $Id: ClassProperty.java 2722 2011-01-16 05:38:59Z ponderator $
*/
public class ClassProperty extends ClassMember implements IClassMemberWritableValue {
/**
* The name of the property
*/
protected final String name;
/**
* The reader method of the property, null if not readable
*/
protected final ClassMethod reader;
/**
* The writer method of the property, null if not writable
*/
protected final ClassMethod writer;
/**
* The type of this property
*/
protected final Class<?> type;
/**
* @param descriptor The {@link ClassMember#descriptor}
* @param name The {@link #name}
* @param reader The {@link #reader}
* @param writer The {@link #writer}
*/
public ClassProperty(ClassDescriptor descriptor, String name, ClassMethod reader, ClassMethod writer) {
super(descriptor);
this.name = name;
this.reader = reader;
this.writer = writer;
this.type = reader != null ? reader.getReturnType() : writer.getParameterTypes()[0];
}
/**
* @return The descriptor
*/
public ClassDescriptor<?> getDescriptor() {
return descriptor;
}
/**
* If this is a write only property, the annotation will be retrieved from the
* writer method, otherwise from the reader method.
*
* @param <A> The annotation type
* @param clazz The annotation class
* @return The annotation if present, otherwise null
*/
public <A extends Annotation> A getAnnotation(Class<A> clazz) {
A annotation = reader != null ? reader.getAnnotation(clazz) : null;
return annotation == null && writer != null ? writer.getAnnotation(clazz) : annotation;
}
@Override
public Annotation[] getAnnotations() {
return reader == null ? writer.getAnnotations() : reader.getAnnotations();
}
@Override
public Class getBaseType() {
return reader == null ? writer.getBaseType() : reader.getBaseType();
}
@Override
public Method getJavaMember() {
return reader == null ? writer.getJavaMember() : reader.getJavaMember();
}
@Override
public boolean isStatic() {
return Modifier.isStatic(this.getJavaMember().getModifiers());
}
/**
* @return The {@link #name}
*/
public String getName() {
return name;
}
/**
* @return The {@link #reader}
*/
public ClassMethod getReader() {
return reader;
}
/**
* @return The {@link #writer}
*/
public ClassMethod getWriter() {
return writer;
}
/**
* If false, {@link #getValue(Object)} will fail.
*
* @return True if this property is readable, otherwise false
*/
public boolean isReadable() {
return this.reader != null;
}
/**
* If false, {@link #setValue(Object, Object)} will fail.
*
* @return True if this property is writable, otherwise false
*/
public boolean isWritable() {
return this.writer != null;
}
/**
* @return The {@link #type}
*/
public Class<?> getType() {
return type;
}
/**
* @return The generic type of this property
*/
public Type getGenericType() {
return reader == null ? writer.getGenericParameterTypes()[0] : reader.getGenericReturnType();
}
/**
* @return A descriptor for the {@link #type}
*/
public ClassDescriptor<?> getTypeDescriptor() {
return descriptor.cache.getDescriptor(type);
}
/**
* Set the current value of the property on the instance or class.
*
* @param instance The instance on which to set the property, null if it is a static property
* @param value The value to assign to the property of the instance/class
*
* @see #isWritable()
* @throws ClassPropertyAccessException
*/
public void setValue(Object instance, Object value) {
if (writer == null) throw new ClassPropertyAccessException(descriptor, this, "Property not writable");
writer.invoke(instance, value);
}
/**
* Get the current value of the property on the instance or class.
*
* @param instance The instance on which to get the property, null if it is a static property
* @return The current value of the property
*
* @see #isReadable()
* @throws ClassPropertyAccessException
*/
public Object getValue(Object instance) {
if (reader == null) throw new ClassPropertyAccessException(descriptor, this, "Property not readable");
return reader.invoke(instance);
}
}
|
[
"aaponcseku@gmail.com"
] |
aaponcseku@gmail.com
|
fc95a292a91140dd8ad887c7e2d0a7c3d1d159ad
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/13/13_45b80e0910e412363f642bbd4c5a7ce0dfbb6b0d/PhysicsEngine/13_45b80e0910e412363f642bbd4c5a7ce0dfbb6b0d_PhysicsEngine_t.java
|
0c76aac055a28fcc2cd24ff7ad16975bc016f185
|
[] |
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
| 1,126
|
java
|
public class PhysicsEngine {
public PhysicsEngine() {
}
public static void affectObject(GraphicsObject go, Vector force) {
}
public static boolean isColliding(GraphicsObject go1, GraphicsObject go2) {
double go1x1 = go1.getReferencePoint()[0];
double go1x2 = go1x1 + go1.getWidth();
double go1y1 = go1.getReferencePoint()[1];
double go1y2 = go1y1 + go1.getHeight();
double go2x1 = go2.getReferencePoint()[0];
double go2x2 = go2x1 + go2.getWidth();
double go2y1 = go2.getReferencePoint()[1];
double go2y2 = go2y1 + go2.getHeight();
System.out.println(go1y1 + " - " + go1y2);
System.out.println(go2y1 + " - " + go2y2);
System.out.println();
// If go2.x1 is IN BETWEEN of go1x1 and go1x2 OR go2x2 is IN BETWEEN go1x1 and go1x2
if( (go2x1 >= go1x1 && go2x1 <= go1x2) || (go2x2 >= go1x1 && go2x2 <= go1x2) ) {
// If go2.y1 OR go2.y2 is IN BETWEEN go1.y1 AND go1.y2
if( (go2y1 >= go1y1 && go2y1 <= go1y2) || (go2y2 >= go1y1 && go2y2 <= go1y2) ) {
return true;
} else {
return false;
}
} else {
return false;
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
c36bff6e77607319a4d8f6f884738600531c7c85
|
2b2fcb1902206ad0f207305b9268838504c3749b
|
/WakfuClientSources/srcx/class_8930_deP.java
|
2970f8e2994af75d6d41114fa11ba98273270a20
|
[] |
no_license
|
shelsonjava/Synx
|
4fbcee964631f747efc9296477dee5a22826791a
|
0cb26d5473ba1f36a3ea1d7163a5b9e6ebcb0b1d
|
refs/heads/master
| 2021-01-15T13:51:41.816571
| 2013-11-17T10:46:22
| 2013-11-17T10:46:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,399
|
java
|
import com.sun.jna.Native;
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.WeakHashMap;
public class deP extends bik
{
private static Map kYK = new WeakHashMap();
private static final int kYL = 13;
public Kg kYM;
public short kYN;
public short type = 13;
public axA kYO;
private deP(bik parambik)
{
bik.a(parambik, true);
axA[] arrayOfaxA;
int i;
Iterator localIterator;
if ((parambik instanceof Iy)) {
bJW localbJW1 = ((Iy)parambik).bRp;
arrayOfaxA = new axA[] { c(parambik.a(localbJW1.field), localbJW1.type), null };
}
else
{
arrayOfaxA = new axA[parambik.buc().size() + 1];
i = 0;
for (localIterator = parambik.buc().values().iterator(); localIterator.hasNext(); ) {
bJW localbJW2 = (bJW)localIterator.next();
arrayOfaxA[(i++)] = parambik.c(localbJW2);
}
}
a(arrayOfaxA);
}
private deP(Object paramObject, Class paramClass) {
int i = Array.getLength(paramObject);
axA[] arrayOfaxA = new axA[i + 1];
axA localaxA = c(null, paramClass.getComponentType());
for (int j = 0; j < i; j++) {
arrayOfaxA[j] = localaxA;
}
a(arrayOfaxA);
}
protected List aR() {
return Arrays.asList(new String[] { "size", "alignment", "type", "elements" });
}
private void a(axA[] paramArrayOfaxA) {
this.kYO = new dcj(axA.SIZE * paramArrayOfaxA.length);
this.kYO.b(0L, paramArrayOfaxA, 0, paramArrayOfaxA.length);
write();
}
public static axA bi(Object paramObject) {
if (paramObject == null)
return JM.Um();
if ((paramObject instanceof Class))
return c(null, (Class)paramObject);
return c(paramObject, paramObject.getClass());
}
private static axA c(Object paramObject, Class paramClass) {
bXj localbXj = Native.q(paramClass);
if (localbXj != null) {
aEQ localaEQ = localbXj.X(paramClass);
if (localaEQ != null) {
paramClass = localaEQ.WJ();
}
}
synchronized (kYK) {
Object localObject1 = kYK.get(paramClass);
if ((localObject1 instanceof axA)) {
return (axA)localObject1;
}
if ((localObject1 instanceof deP)) {
return ((deP)localObject1).sF();
}
if (bIG.gIh) { if ((bik.cvT == null ? (bik.cvT = bik.cd("java.nio.Buffer")) : bik.cvT).isAssignableFrom(paramClass)); } else if (!(bik.cvB == null ? (bik.cvB = bik.cd("dBN")) : bik.cvB).isAssignableFrom(paramClass))
break label161;
kYK.put(paramClass, JM.Um());
return JM.Um();
label161: Object localObject2;
if ((bik.bRq == null ? (bik.bRq = bik.cd("bik")) : bik.bRq).isAssignableFrom(paramClass)) {
if (paramObject == null) paramObject = a(paramClass, bik.buu());
if ((bik.cvF == null ? (bik.cvF = bik.cd("ckM")) : bik.cvF).isAssignableFrom(paramClass)) {
kYK.put(paramClass, JM.Um());
return JM.Um();
}
localObject2 = new deP((bik)paramObject);
kYK.put(paramClass, localObject2);
return ((deP)localObject2).sF();
}
if ((bik.bZS == null ? (bik.bZS = bik.cd("arr")) : bik.bZS).isAssignableFrom(paramClass)) {
localObject2 = MK.k(paramClass);
return c(((MK)localObject2).a(paramObject, new qd()), ((MK)localObject2).WJ());
}
if (paramClass.isArray()) {
localObject2 = new deP(paramObject, paramClass);
kYK.put(paramObject, localObject2);
return ((deP)localObject2).sF();
}
throw new IllegalArgumentException("Unsupported Structure field type " + paramClass);
}
}
static axA d(Object paramObject, Class paramClass)
{
return c(paramObject, paramClass);
}
static
{
if (Native.cuK == 0)
throw new Error("Native library not initialized");
if (JM.Ud() == null)
throw new Error("FFI types not initialized");
kYK.put(Void.TYPE, JM.Ud());
kYK.put(bik.cvP == null ? (bik.cvP = bik.cd("java.lang.Void")) : bik.cvP, JM.Ud());
kYK.put(Float.TYPE, JM.Ue());
kYK.put(bik.cvM == null ? (bik.cvM = bik.cd("java.lang.Float")) : bik.cvM, JM.Ue());
kYK.put(Double.TYPE, JM.Uf());
kYK.put(bik.cvN == null ? (bik.cvN = bik.cd("java.lang.Double")) : bik.cvN, JM.Uf());
kYK.put(Long.TYPE, JM.Ug());
kYK.put(bik.cvL == null ? (bik.cvL = bik.cd("java.lang.Long")) : bik.cvL, JM.Ug());
kYK.put(Integer.TYPE, JM.Uh());
kYK.put(bik.cvK == null ? (bik.cvK = bik.cd("java.lang.Integer")) : bik.cvK, JM.Uh());
kYK.put(Short.TYPE, JM.Ui());
kYK.put(bik.cvI == null ? (bik.cvI = bik.cd("java.lang.Short")) : bik.cvI, JM.Ui());
axA localaxA = Native.cuL == 2 ? JM.Uj() : JM.Uk();
kYK.put(Character.TYPE, localaxA);
kYK.put(bik.cvJ == null ? (bik.cvJ = bik.cd("java.lang.Character")) : bik.cvJ, localaxA);
kYK.put(Byte.TYPE, JM.Ul());
kYK.put(bik.cvH == null ? (bik.cvH = bik.cd("java.lang.Byte")) : bik.cvH, JM.Ul());
kYK.put(bik.bZT == null ? (bik.bZT = bik.cd("axA")) : bik.bZT, JM.Um());
kYK.put(bik.bRr == null ? (bik.bRr = bik.cd("java.lang.String")) : bik.bRr, JM.Um());
kYK.put(bik.bRs == null ? (bik.bRs = bik.cd("cFg")) : bik.bRs, JM.Um());
kYK.put(Boolean.TYPE, JM.Uk());
kYK.put(bik.cvG == null ? (bik.cvG = bik.cd("java.lang.Boolean")) : bik.cvG, JM.Uk());
}
}
|
[
"music_inme@hotmail.fr"
] |
music_inme@hotmail.fr
|
2ff72d7c82ec2ae587b0c3eb4ef10f5a46222eb2
|
d7dab538d6fc5390c5160c28f5c8231834c0a406
|
/src/main/java/javax/ims/core/ServiceMethod.java
|
acd4aa1171be3c3eb6feea079fc2754c52de4bb2
|
[
"Apache-2.0"
] |
permissive
|
fhg-fokus-nubomedia/nubomedia-ims-connector
|
037cbcc11c2f053fc3c159b3c53735dcc27fdcaf
|
a6dac8810f779c75351355cdd03933fedf07a99a
|
refs/heads/master
| 2020-04-06T06:42:11.608858
| 2016-07-29T12:40:34
| 2016-07-29T12:40:34
| 49,443,826
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,062
|
java
|
package javax.ims.core;
/**
* <p>The ServiceMethod interface provides methods to manipulate the next outgoing request message and to inspect previously sent request and response messages.
* The headers and body parts that are set will be transmitted in the next message that is triggered by an interface method, see code example below:
*
* @author amo
* @version 1.0
*/
public interface ServiceMethod
{
/**
* Returns the user identity of the remote endpoint of this ServiceMethod.
* This method will return null if the ServiceMethod is a Subscription or a Publication
*
* @return the remote user identity or null
*/
public abstract String getRemoteUserId();
/**
* This method returns a handle to the next outgoing request Message within this ServiceMethod to be
* manipulated by the local endpoint.
*
* @return the next outgoing request Message created for this ServiceMethod
*/
public abstract Message getNextRequest();
/**
* This method enables the user to inspect a previously sent or received request message. It is only possible to inspect the last request of each interface method identifier.
* This method will return null if the interface method identifier has not been sent/received.
*
* @param method - the interface method identifier
* @return the request Message
* @throws IllegalArgumentException - if the method argument is not a valid identifier
*/
public Message getPreviousRequest(int method) throws IllegalArgumentException;
/**
* This method enables the user to inspect previously sent or received response messages. It is only possible to inspect the response(s) for the last request of each interface method identifier.
* This method will return null if the interface method identifier has not been sent/received.
*
* @param method - the interface method identifier
* @return an array containing all responses associated to the method
*/
public Message[] getPreviousResponses(int method);
}
|
[
"alice.cheambe@fokus.fraunhofer.de"
] |
alice.cheambe@fokus.fraunhofer.de
|
11b0fac3a29ae1a8cfbd4004dba2eff33da69dce
|
19599ad278e170175f31f3544f140a8bc4ee6bab
|
/src/com/ametis/cms/web/validator/BillingItemValidator.java
|
7f5d00951129270197166fbac32f6494d48eaf3d
|
[] |
no_license
|
andreHer/owlexaGIT
|
a2a0df83cd64a399e1c57bb6451262434e089631
|
426df1790443e8e8dd492690d6b7bd8fd37fa3d7
|
refs/heads/master
| 2021-01-01T04:26:16.039616
| 2016-05-12T07:37:20
| 2016-05-12T07:37:20
| 58,693,624
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,780
|
java
|
package com.ametis.cms.web.validator;
import com.ametis.cms.datamodel.*;
import com.ametis.cms.web.form.*;
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;
// imports+
// imports-
/**
* BillingItem is a mapping of billing_item Table.
*/
public class BillingItemValidator implements Validator
// extends+
// extends-
{
public boolean supports(Class clazz) {
return BillingItemForm.class.isAssignableFrom(clazz);
}
public void validate(Object obj, Errors errors) {
ValidationUtils.rejectIfEmptyOrWhitespace
(errors,"billingItemId","BILLING_ITEM_ID_REQUIRED","billingItemId is required");
ValidationUtils.rejectIfEmptyOrWhitespace
(errors,"createdTime","CREATED_TIME_REQUIRED","createdTime is required");
// foreign affairs
ValidationUtils.rejectIfEmptyOrWhitespace
(errors,"memberImportId","MEMBER_IMPORT_ID_REQUIRED",
"memberImportId is required");
ValidationUtils.rejectIfEmptyOrWhitespace
(errors,"claimId","CLAIM_ID_REQUIRED",
"claimId is required");
ValidationUtils.rejectIfEmptyOrWhitespace
(errors,"clientId","CLIENT_ID_REQUIRED",
"clientId is required");
ValidationUtils.rejectIfEmptyOrWhitespace
(errors,"memberId","MEMBER_ID_REQUIRED",
"memberId is required");
ValidationUtils.rejectIfEmptyOrWhitespace
(errors,"policyId","POLICY_ID_REQUIRED",
"policyId is required");
// -- foreign affairs end
}
// class+
// class-
}
|
[
"mashuri@7a4bab5d-9f4e-4b47-a10f-b21823e054b7"
] |
mashuri@7a4bab5d-9f4e-4b47-a10f-b21823e054b7
|
79d7d7ccbee7ec9dbc588a3966046919bbf19eca
|
cec1602d23034a8f6372c019e5770773f893a5f0
|
/sources/com/inuker/bluetooth/library/connect/listener/WriteDescriptorListener.java
|
161dbe19319fc1ed6614ffd557a5f68c8db745c5
|
[] |
no_license
|
sengeiou/zeroner_app
|
77fc7daa04c652a5cacaa0cb161edd338bfe2b52
|
e95ae1d7cfbab5ca1606ec9913416dadf7d29250
|
refs/heads/master
| 2022-03-31T06:55:26.896963
| 2020-01-24T09:20:37
| 2020-01-24T09:20:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 265
|
java
|
package com.inuker.bluetooth.library.connect.listener;
import android.bluetooth.BluetoothGattDescriptor;
public interface WriteDescriptorListener extends GattResponseListener {
void onDescriptorWrite(BluetoothGattDescriptor bluetoothGattDescriptor, int i);
}
|
[
"johan@sellstrom.me"
] |
johan@sellstrom.me
|
e9f79ef67aeb7f8b45f773b142799b6e475e76ce
|
88ae531edae050cf8a2400ccaa0618e35a9fa0fa
|
/OptionalsEvaluation/ExerciseValidation/src/test/java/academy/everyonecodes/validation/ArtworksEndpointTest.java
|
55098fe10620f2794198ddcebc8f3ab72b858058
|
[] |
no_license
|
Atlantisland/backend-module
|
442f25de001d88206ce40f8bb95fbc2966b8085f
|
b038f0d6f88eab3512b6218e9a41b2a702c0bc8b
|
refs/heads/master
| 2022-12-24T19:29:04.189942
| 2020-09-28T07:01:22
| 2020-09-28T07:01:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,066
|
java
|
package academy.everyonecodes.validation;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.boot.test.web.client.TestRestTemplate;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.Mockito.verify;
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
class ArtworksEndpointTest {
@Autowired
TestRestTemplate testRestTemplate;
@MockBean
TextService service;
String url ="/artworks";
@Test
void post(){
Rating rating = new Rating(2);
Artwork artwork = new Artwork("name", rating);
testRestTemplate.postForObject(url, artwork, Artwork.class);
verify(service).returnSameText(artwork.getName());
}
}
// I think that I should have created a repository class as well and to use it here...but no I am running out of time now
// So I just let it like this
|
[
"egkougko@gmail.com"
] |
egkougko@gmail.com
|
ec1f67d7e9628221d62a8f4f5ad83c22f98053f4
|
23d21d575da06d8a0f0c3a266915df321b5154eb
|
/java/designpattern/src/main/java/designpattern/gof_builder/sample03/NutrionCreator.java
|
819fc13e592d5551200d4e8446bba821ca411f5e
|
[] |
no_license
|
keepinmindsh/sample
|
180431ce7fce20808e65d885eab1ca3dca4a76a9
|
4169918f432e9008b4715f59967f3c0bd619d3e6
|
refs/heads/master
| 2023-04-30T19:26:44.510319
| 2023-04-23T12:43:43
| 2023-04-23T12:43:43
| 248,352,910
| 4
| 0
| null | 2023-03-05T23:20:43
| 2020-03-18T22:03:16
|
Java
|
UTF-8
|
Java
| false
| false
| 240
|
java
|
package designpattern.gof_builder.sample03;
public class NutrionCreator {
public static void main(String[] args) {
NutrionFacts.Builder builder = new NutrionFacts.Builder(20, 1);
builder.calories(20).Build();
}
}
|
[
"keepinmindsh@gmail.com"
] |
keepinmindsh@gmail.com
|
72b0d4921566ef353c4e5d13f7300bc0e819f6c0
|
255ff79057c0ff14d0b760fc2d6da1165f1806c8
|
/02JavaStep02/04Ja-va基础教程-小白的福音资料/day02(计算机基础知识$java语言基础)/day2_code/讲师代码/5_赋值运算符/Test1_Operator.java
|
9cb0096b95c2cff1645c73f26bbf278aa1d6532f
|
[] |
no_license
|
wjphappy90/Resource
|
7f1f817d323db5adae06d26da17dfc09ee5f9d3a
|
6574c8399f3cdfb6d6b39cd64dc9507e784a2549
|
refs/heads/master
| 2022-07-30T03:33:59.869345
| 2020-08-10T02:31:35
| 2020-08-10T02:31:35
| 285,701,650
| 2
| 6
| null | null | null | null |
GB18030
|
Java
| false
| false
| 368
|
java
|
class Test1_Operator {
public static void main(String[] args) {
// 面试题:看下面的程序是否有问题,如果有问题,请指出并说明理由。
//short s=1;s = s+1; //当short与int进行运算的时候,会提升为int类型,两个int类型相加的结果也是int类型
short s=1;s+=1; //s = (short)(s + 1);
System.out.println(s);
}
}
|
[
"981146457@qq.com"
] |
981146457@qq.com
|
603483c0ed1fbef17a78ed5271c06c5806dcfd25
|
f62e813cd0486ebe4ae66bc98a9ca1a5cc84cb16
|
/im/src/main/java/com/android/im/imeventbus/IMDeleteRecentEvent.java
|
500bf0abc6fecd97db442582415471587069ba8b
|
[] |
no_license
|
loading103/im_master
|
f61fe6b51d7b1f414525482b4faf5b163ecbf05b
|
478fcdee3c346945b5998c19532f1d90909a87d5
|
refs/heads/master
| 2022-11-04T03:05:16.286749
| 2020-06-21T02:57:00
| 2020-06-21T02:57:00
| 273,819,994
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 379
|
java
|
package com.android.im.imeventbus;
public class IMDeleteRecentEvent {
private int position;
public IMDeleteRecentEvent() {
}
public IMDeleteRecentEvent(int position) {
this.position = position;
}
public int getPosition() {
return position;
}
public void setPosition(int position) {
this.position = position;
}
}
|
[
"951686695@qq.com"
] |
951686695@qq.com
|
767201054a3e7d415282f257e0e52047e511c772
|
eb9f655206c43c12b497c667ba56a0d358b6bc3a
|
/java/java-tests/testData/refactoring/extractMethodNew/SuggestChangeSignatureOneParamMultipleTimesInside.java
|
a345233a9c3705694a86f7a99b5450af1ae0e0a9
|
[
"Apache-2.0"
] |
permissive
|
JetBrains/intellij-community
|
2ed226e200ecc17c037dcddd4a006de56cd43941
|
05dbd4575d01a213f3f4d69aa4968473f2536142
|
refs/heads/master
| 2023-09-03T17:06:37.560889
| 2023-09-03T11:51:00
| 2023-09-03T12:12:27
| 2,489,216
| 16,288
| 6,635
|
Apache-2.0
| 2023-09-12T07:41:58
| 2011-09-30T13:33:05
| null |
UTF-8
|
Java
| false
| false
| 279
|
java
|
public class Test {
{
int x = 0;
<selection>System.out.println("foo");
System.out.println("foo");
System.out.println(x);</selection>
System.out.println("bar");
System.out.println("bar");
System.out.println(x);
}
}
|
[
"intellij-monorepo-bot-no-reply@jetbrains.com"
] |
intellij-monorepo-bot-no-reply@jetbrains.com
|
dad043de6514aee5468ae9c85a2e3adc0f80d08a
|
e032dab934c4fa3ff55da94de2f15d246a4aed8c
|
/nio-and-netty/src/main/java/wr1ttenyu/f1nal/study/netty/httpserver/NettyHttpServer.java
|
190d9446c514a583976c0d7e1242d5e177e0865c
|
[] |
no_license
|
wr1ttenyu/f1nal
|
9d21aeb1ae14505fc2e9add9220f81719840f37f
|
fd27d32d2f877ea98c19d892d13df36a99059a46
|
refs/heads/master
| 2022-07-07T02:15:25.931532
| 2020-06-11T01:19:16
| 2020-06-11T01:19:16
| 207,061,707
| 0
| 0
| null | 2022-01-12T23:05:07
| 2019-09-08T04:31:27
|
Java
|
UTF-8
|
Java
| false
| false
| 1,006
|
java
|
package wr1ttenyu.f1nal.study.netty.httpserver;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel;
public class NettyHttpServer {
public static void main(String[] args) {
EventLoopGroup bossGroup = new NioEventLoopGroup(1);
EventLoopGroup workerGroup = new NioEventLoopGroup();
try {
ServerBootstrap server = new ServerBootstrap();
server.group(bossGroup, workerGroup)
.channel(NioServerSocketChannel.class)
.childHandler(new ServerChannelInitializer());
ChannelFuture bindCf = server.bind(8955).sync();
ChannelFuture closeCf = bindCf.channel().closeFuture().sync();
} catch (Exception e) {
bossGroup.shutdownGracefully();
workerGroup.shutdownGracefully();
}
}
}
|
[
"xingyu.zhao@bangdao-tech.com"
] |
xingyu.zhao@bangdao-tech.com
|
6c17d68b2fac0519a20ab5ec3c40203e00b82f9d
|
a7b868c8c81984dbcb17c1acc09c0f0ab8e36c59
|
/src/main/java/com/alipay/api/response/AlipayOpenInstantdeliveryMerchantshopBatchqueryResponse.java
|
d98ef9cd747586c5dc047c56ec2d20e21993ef10
|
[
"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
| 1,538
|
java
|
package com.alipay.api.response;
import java.util.List;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
import com.alipay.api.domain.MerchantShopDTO;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.open.instantdelivery.merchantshop.batchquery response.
*
* @author auto create
* @since 1.0, 2021-02-01 11:10:43
*/
public class AlipayOpenInstantdeliveryMerchantshopBatchqueryResponse extends AlipayResponse {
private static final long serialVersionUID = 3237124317278791138L;
/**
* 当前页码
*/
@ApiField("page_no")
private Long pageNo;
/**
* 分页数量, 最大50。
*/
@ApiField("page_size")
private Long pageSize;
/**
* 门店列表数据。
*/
@ApiListField("records")
@ApiField("merchant_shop_d_t_o")
private List<MerchantShopDTO> records;
/**
* 总数量
*/
@ApiField("total_no")
private Long totalNo;
public void setPageNo(Long pageNo) {
this.pageNo = pageNo;
}
public Long getPageNo( ) {
return this.pageNo;
}
public void setPageSize(Long pageSize) {
this.pageSize = pageSize;
}
public Long getPageSize( ) {
return this.pageSize;
}
public void setRecords(List<MerchantShopDTO> records) {
this.records = records;
}
public List<MerchantShopDTO> getRecords( ) {
return this.records;
}
public void setTotalNo(Long totalNo) {
this.totalNo = totalNo;
}
public Long getTotalNo( ) {
return this.totalNo;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.