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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
785efc8402d8b285839b096dae33256d995d4bb3 | 035c5461a88dac6e075bb62b484bddc93031f3b9 | /src/com/server/bean/DynamicWorkshop.java | b03f77942f3ab0c13fb0ee80b2083892a8a1c909 | [] | no_license | simonxu14/workshop2 | a764efd1786ffc45ac1ecd0bc79308e10dfe63ec | 953bfc79283f9e7081ca5124b79ce0e845340ded | refs/heads/master | 2021-01-01T19:21:19.687376 | 2015-05-01T05:30:27 | 2015-05-01T05:30:27 | 34,890,908 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,305 | java | package com.server.bean;
import org.springframework.stereotype.Component;
import com.thoughtworks.xstream.annotations.XStreamAlias;
@Component("dynamicWorkshop")
@XStreamAlias("dynamicWorkshopData")
public class DynamicWorkshop {
private String ID;
private String workshopID;
private String temperature;
private String humidity;
private String noise;
public DynamicWorkshop(){}
public DynamicWorkshop(String ID,String workshopID,String temperature,String humidity,String noise){
this.ID = ID;
this.workshopID = workshopID;
this.temperature = temperature;
this.humidity = humidity;
this.noise = noise;
}
public String getID() {
return ID;
}
public void setID(String iD) {
ID = iD;
}
public String getWorkshopID() {
return workshopID;
}
public void setWorkshopID(String workshopID) {
this.workshopID = workshopID;
}
public String getTemperature() {
return temperature;
}
public void setTemperature(String temperature) {
this.temperature = temperature;
}
public String getHumidity() {
return humidity;
}
public void setHumidity(String humidity) {
this.humidity = humidity;
}
public String getNoise() {
return noise;
}
public void setNoise(String noise) {
this.noise = noise;
}
}
| [
"simonxu14@gmail.com"
] | simonxu14@gmail.com |
f7d0f0579d45306c30f7c2de038f03a7c5fee6c6 | 03f05a9e40d3ae9d4439b5ab492d163771cf5416 | /src/com/o2o/maileseller/network/volley/toolbox/RequestFuture.java | 2cbe1f99fce33b4e6cd28ae1ecf52c13ef512480 | [] | no_license | xiguofeng/MaiLeSeller | aa681659204a4d87a8cee02b16a28cec83867b04 | b913b02b2b566c36b5d9babe5087b10214eaa76a | refs/heads/master | 2016-09-06T13:03:39.572899 | 2015-06-03T01:50:00 | 2015-06-03T01:50:00 | 35,148,205 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,737 | java | /*
* Copyright (C) 2011 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 com.o2o.maileseller.network.volley.toolbox;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import com.o2o.maileseller.network.volley.Request;
import com.o2o.maileseller.network.volley.Response;
import com.o2o.maileseller.network.volley.VolleyError;
/**
* A Future that represents a Volley request.
*
* Used by providing as your response and error listeners. For example:
*
* <pre>
* RequestFuture<JSONObject> future = RequestFuture.newFuture();
* MyRequest request = new MyRequest(URL, future, future);
*
* // If you want to be able to cancel the request:
* future.setRequest(requestQueue.add(request));
*
* // Otherwise:
* requestQueue.add(request);
*
* try {
* JSONObject response = future.get();
* // do something with response
* } catch (InterruptedException e) {
* // handle the error
* } catch (ExecutionException e) {
* // handle the error
* }
* </pre>
*
* @param <T>
* The type of parsed response this future expects.
*/
public class RequestFuture<T> implements Future<T>, Response.Listener<T>,
Response.ErrorListener {
private Request<?> mRequest;
private boolean mResultReceived = false;
private T mResult;
private VolleyError mException;
public static <E> RequestFuture<E> newFuture() {
return new RequestFuture<E>();
}
private RequestFuture() {
}
public void setRequest(Request<?> request) {
mRequest = request;
}
@Override
public synchronized boolean cancel(boolean mayInterruptIfRunning) {
if (mRequest == null) {
return false;
}
if (!isDone()) {
mRequest.cancel();
return true;
} else {
return false;
}
}
@Override
public T get() throws InterruptedException, ExecutionException {
try {
return doGet(null);
} catch (TimeoutException e) {
throw new AssertionError(e);
}
}
@Override
public T get(long timeout, TimeUnit unit) throws InterruptedException,
ExecutionException, TimeoutException {
return doGet(TimeUnit.MILLISECONDS.convert(timeout, unit));
}
private synchronized T doGet(Long timeoutMs) throws InterruptedException,
ExecutionException, TimeoutException {
if (mException != null) {
throw new ExecutionException(mException);
}
if (mResultReceived) {
return mResult;
}
if (timeoutMs == null) {
wait(0);
} else if (timeoutMs > 0) {
wait(timeoutMs);
}
if (mException != null) {
throw new ExecutionException(mException);
}
if (!mResultReceived) {
throw new TimeoutException();
}
return mResult;
}
@Override
public boolean isCancelled() {
if (mRequest == null) {
return false;
}
return mRequest.isCanceled();
}
@Override
public synchronized boolean isDone() {
return mResultReceived || mException != null || isCancelled();
}
@Override
public synchronized void onResponse(T response) {
mResultReceived = true;
mResult = response;
notifyAll();
}
@Override
public synchronized void onErrorResponse(VolleyError error) {
mException = error;
notifyAll();
}
}
| [
"king.xgf@gmail.com"
] | king.xgf@gmail.com |
d8dc95ed524359b60623c06fa6bfd6099fc9b8d9 | f55149a6e5f9b10b022ba58d53bdc8fa29ad7a2c | /java/mockito/src/main/java/com/mtsmda/mockito/service/VoidReturnTypeService.java | 59b0bedb5363ebdfe7a6c261b71e4752a0c70bcb | [] | no_license | akbars95/study_250117 | fe15e08a25f41032362aedfc4efddcac6dfc2cd8 | fdbfd9d5aa060983f457df49b484a264f566ee93 | refs/heads/master | 2021-01-11T16:07:39.462548 | 2017-03-30T08:15:14 | 2017-03-30T08:15:14 | 80,009,798 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 155 | java | package com.mtsmda.mockito.service;
/**
* Created by dminzat on 12/27/2016.
*/
public interface VoidReturnTypeService {
void print(String text);
} | [
"mynzat.dmitrii@gmail.com"
] | mynzat.dmitrii@gmail.com |
fe3e915f22386de3035afbba38bf1afb76d1dd5a | 97476101f2504837ba690353246df421b4835232 | /jcache/src/main/java/com/github/benmanes/caffeine/jcache/LoadingCacheProxy.java | 8d0c53ce7bdf6895d6f1c74b1200abc773a7e71b | [
"Apache-2.0"
] | permissive | pugong/caffeine | 144bf088df4051f2afa75f893e8e9b22ae525f4f | 5b454b2bc856c114c67905bd4a2ebde5eef9dae5 | refs/heads/master | 2020-04-06T05:24:42.543339 | 2015-12-15T18:11:04 | 2015-12-15T18:20:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,461 | java | /*
* Copyright 2015 Ben Manes. 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.github.benmanes.caffeine.jcache;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.Executor;
import java.util.stream.Collectors;
import javax.cache.Cache;
import javax.cache.CacheException;
import javax.cache.CacheManager;
import javax.cache.expiry.ExpiryPolicy;
import javax.cache.integration.CacheLoader;
import javax.cache.integration.CompletionListener;
import com.github.benmanes.caffeine.cache.LoadingCache;
import com.github.benmanes.caffeine.cache.Ticker;
import com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration;
import com.github.benmanes.caffeine.jcache.event.EventDispatcher;
import com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean;
/**
* An implementation of JSR-107 {@link Cache} backed by a Caffeine loading cache.
*
* @author ben.manes@gmail.com (Ben Manes)
*/
public final class LoadingCacheProxy<K, V> extends CacheProxy<K, V> {
private final LoadingCache<K, Expirable<V>> cache;
@SuppressWarnings("PMD.ExcessiveParameterList")
public LoadingCacheProxy(String name, Executor executor, CacheManager cacheManager,
CaffeineConfiguration<K, V> configuration, LoadingCache<K, Expirable<V>> cache,
EventDispatcher<K, V> dispatcher, CacheLoader<K, V> cacheLoader,
ExpiryPolicy expiry, Ticker ticker, JCacheStatisticsMXBean statistics) {
super(name, executor, cacheManager, configuration, cache, dispatcher,
Optional.of(cacheLoader), expiry, ticker, statistics);
this.cache = cache;
}
@Override
@SuppressWarnings("PMD.AvoidCatchingNPE")
public V get(K key) {
requireNotClosed();
try {
return getOrLoad(key);
} catch (NullPointerException | IllegalStateException | ClassCastException | CacheException e) {
throw e;
} catch (RuntimeException e) {
throw new CacheException(e);
} finally {
dispatcher.awaitSynchronous();
}
}
/** Retrieves the value from the cache, loading it if necessary. */
private V getOrLoad(K key) {
long start = ticker.read();
long millis = nanosToMillis(start);
Expirable<V> expirable = cache.getIfPresent(key);
if ((expirable != null) && expirable.hasExpired(millis)) {
if (cache.asMap().remove(key, expirable)) {
dispatcher.publishExpired(this, key, expirable.get());
statistics.recordEvictions(1);
}
expirable = null;
}
if (expirable == null) {
expirable = cache.get(key);
statistics.recordMisses(1L);
} else {
statistics.recordHits(1L);
}
V value = null;
if (expirable != null) {
setAccessExpirationTime(expirable, millis);
value = copyValue(expirable);
}
statistics.recordGetTime(ticker.read() - start);
return value;
}
@Override
public Map<K, V> getAll(Set<? extends K> keys) {
return getAll(keys, true);
}
/** Returns the entries, loading if necessary, and optionally updates their access expiry time. */
@SuppressWarnings("PMD.AvoidCatchingNPE")
private Map<K, V> getAll(Set<? extends K> keys, boolean updateAccessTime) {
requireNotClosed();
long now = ticker.read();
try {
Map<K, Expirable<V>> entries = getAndFilterExpiredEntries(keys, updateAccessTime);
if (entries.size() != keys.size()) {
List<K> keysToLoad = keys.stream()
.filter(key -> !entries.containsKey(key))
.collect(Collectors.<K>toList());
entries.putAll(cache.getAll(keysToLoad));
}
Map<K, V> result = copyMap(entries);
statistics.recordGetTime(ticker.read() - now);
return result;
} catch (NullPointerException | IllegalStateException | ClassCastException | CacheException e) {
throw e;
} catch (RuntimeException e) {
throw new CacheException(e);
} finally {
dispatcher.awaitSynchronous();
}
}
@Override
public void loadAll(Set<? extends K> keys, boolean replaceExistingValues,
CompletionListener completionListener) {
requireNotClosed();
keys.forEach(Objects::requireNonNull);
CompletionListener listener = (completionListener == null)
? NullCompletionListener.INSTANCE
: completionListener;
executor.execute(() -> {
try {
if (replaceExistingValues) {
int[] ignored = { 0 };
Map<K, V> loaded = cacheLoader.get().loadAll(keys);
for (Map.Entry<? extends K, ? extends V> entry : loaded.entrySet()) {
putNoCopyOrAwait(entry.getKey(), entry.getValue(), false, ignored);
}
} else {
getAll(keys, false);
}
listener.onCompletion();
} catch (Exception e) {
listener.onException(e);
} finally {
dispatcher.ignoreSynchronous();
}
});
}
}
| [
"ben.manes@gmail.com"
] | ben.manes@gmail.com |
2b7e900cdde01b2d93e07073f00ba4c22af4b6ab | 52ff7aed026e85fff071f1d341433afc3ef2d1f5 | /arltr-mask/src/main/java/com/neusoft/arltr/mask/repository/MaskRepository.java | eba0e21e5c0192ce91d27bb44a6735b18708ae53 | [] | no_license | yuhaihui3435/arltr | 5d2c6f94528e066b4de9d770d9c492da3e0f5d9b | 0beb80bdab8ac2fc490a295b3d0cba30127b6ff6 | refs/heads/master | 2020-03-26T11:20:01.826766 | 2018-09-19T02:28:27 | 2018-09-19T02:28:28 | 144,838,446 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 480 | java |
package com.neusoft.arltr.mask.repository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import com.neusoft.arltr.common.entity.mask.MaskWord;
/**
* 类功能描述:
* @author 作者:
* @version 创建时间:2017年6月22日 下午2:24:15
*
*/
public interface MaskRepository extends PagingAndSortingRepository<MaskWord, Integer>,JpaSpecificationExecutor<MaskWord> {
}
| [
"125227112@qq.com"
] | 125227112@qq.com |
0435f7435cc5db6e144c14fc7800b3b0fe68366e | cb601c9b503d43d5dea2c54e777ecd115222a16a | /src/org/pepstock/charba/client/events/AxisEnterEventHandler.java | 303c71fd05f876d4896e71f50dc0886864fe4fc3 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"MIT"
] | permissive | pepstock-org/Charba | cdd98c47081cb3cf52a939c8c3489a80fa9451fd | 32e1807325b646918f595b3043e4990dccb112b4 | refs/heads/master | 2023-09-01T11:43:20.143296 | 2023-08-28T19:49:14 | 2023-08-28T19:49:14 | 106,569,586 | 55 | 7 | Apache-2.0 | 2023-08-28T19:37:21 | 2017-10-11T15:03:37 | Java | UTF-8 | Java | false | false | 1,180 | 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.pepstock.charba.client.events;
/**
* Event handler for entering on the chart axis.
*
* @author Andrea "Stock" Stocchero
*/
public interface AxisEnterEventHandler extends ChartEventHandler {
/**
* Invoked when the user is entering on the chart axis.
*
* @param event axis enter event
*/
void onEnter(AxisEnterEvent event);
} | [
"stocki.nail@gmail.com"
] | stocki.nail@gmail.com |
119844f4b1da415b1234f762ddbef73bd74f14f1 | 5406b571ec62797d183bacc9e4214d1040ff6634 | /app/src/main/java/com/edocent/movieapp/adapters/TrailerAdapter.java | bfa670a24ff6fe774e8a26da69e3e0f4bafbb3c9 | [] | no_license | ankur-srivastava/HindiMovieBuff | c5eb2245079047962ce496c87148839cddb3cf5d | 0b7999b665b5295847efddb0acc926839f4566ea | refs/heads/master | 2021-01-10T13:54:43.324113 | 2015-11-10T04:59:01 | 2015-11-10T04:59:01 | 45,517,164 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,864 | java | package com.edocent.movieapp.adapters;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.edocent.movieapp.R;
import com.edocent.movieapp.model.Trailer;
import java.util.List;
/**
* Created by SRIVASTAVAA on 10/20/2015.
*/
public class TrailerAdapter extends ArrayAdapter<Trailer> {
static final String TAG = TrailerAdapter.class.getSimpleName();
Context mContext;
int resource;
List<Trailer> mTrailerList;
public TrailerAdapter(Context context, int resource, List<Trailer> mTrailerList) {
super(context, resource, mTrailerList);
this.mContext = context;
this.resource = resource;
this.mTrailerList = mTrailerList;
}
/*
* http://api.themoviedb.org/3/movie/movie_id/videos?api_key=2488d2824d22372dac5e1c8f6e779c5f
* */
@Override
public View getView(int position, View convertView, ViewGroup viewGroup){
ViewHolderItem viewHolderItem;
Trailer trailer = mTrailerList.get(position);
if(convertView == null){
LayoutInflater inflater = ((Activity)mContext).getLayoutInflater();
convertView = inflater.inflate(resource, viewGroup, false);
viewHolderItem = new ViewHolderItem();
viewHolderItem.trailerTitle = (TextView) convertView.findViewById(R.id.trailerTitleId);
convertView.setTag(viewHolderItem);
}else{
viewHolderItem = (ViewHolderItem) convertView.getTag();
}
viewHolderItem.trailerTitle.setText(trailer.getTrailerName());
return convertView;
}
/*Added to use ViewHolder pattern*/
static class ViewHolderItem{
TextView trailerTitle;
}
}
| [
"ankurlkw@gmail.com"
] | ankurlkw@gmail.com |
148560820051c3b3443d440eabf2c142f8cae539 | 06b2eb7f520f9fc092d4e71b633f5206cd45d69a | /basex-core/src/main/java/org/basex/query/expr/path/Axis.java | df5ffe02a10e11119b17336b34f554006dd64964 | [
"BSD-3-Clause"
] | permissive | dkanda/basex | 1cfd7ca46202e867115c5e71495768f052d5b462 | 86fe69fbf75d26fef835f836a770d1fccfa45e73 | refs/heads/master | 2020-04-05T14:32:21.113355 | 2018-11-10T00:55:38 | 2018-11-10T00:55:38 | 156,934,200 | 0 | 0 | NOASSERTION | 2018-11-10T00:53:07 | 2018-11-10T00:53:07 | null | UTF-8 | Java | false | false | 3,592 | java | package org.basex.query.expr.path;
import org.basex.query.iter.*;
import org.basex.query.value.node.*;
import org.basex.util.*;
/**
* XPath axes.
*
* @author BaseX Team 2005-18, BSD License
* @author Christian Gruen
*/
public enum Axis {
// ...order is important here for parsing the Query;
// axes with longer names are parsed first
/** Ancestor-or-self axis. */
ANCESTOR_OR_SELF("ancestor-or-self", false) {
@Override
BasicNodeIter iter(final ANode n) {
return n.ancestorOrSelf();
}
},
/** Ancestor axis. */
ANCESTOR("ancestor", false) {
@Override
BasicNodeIter iter(final ANode n) {
return n.ancestor();
}
},
/** Attribute axis. */
ATTRIBUTE("attribute", true) {
@Override
BasicNodeIter iter(final ANode n) {
return n.attributes();
}
},
/** Child Axis. */
CHILD("child", true) {
@Override
BasicNodeIter iter(final ANode n) {
return n.children();
}
},
/** Descendant-or-self axis. */
DESCENDANT_OR_SELF("descendant-or-self", true) {
@Override
BasicNodeIter iter(final ANode n) {
return n.descendantOrSelf();
}
},
/** Descendant axis. */
DESCENDANT("descendant", true) {
@Override
BasicNodeIter iter(final ANode n) {
return n.descendant();
}
},
/** Following-Sibling axis. */
FOLLOWING_SIBLING("following-sibling", false) {
@Override
BasicNodeIter iter(final ANode n) {
return n.followingSibling();
}
},
/** Following axis. */
FOLLOWING("following", false) {
@Override
BasicNodeIter iter(final ANode n) {
return n.following();
}
},
/** Parent axis. */
PARENT("parent", false) {
@Override
BasicNodeIter iter(final ANode n) {
return n.parentIter();
}
},
/** Preceding-Sibling axis. */
PRECEDING_SIBLING("preceding-sibling", false) {
@Override
BasicNodeIter iter(final ANode n) {
return n.precedingSibling();
}
},
/** Preceding axis. */
PRECEDING("preceding", false) {
@Override
BasicNodeIter iter(final ANode n) {
return n.preceding();
}
},
/** Step axis. */
SELF("self", true) {
@Override
BasicNodeIter iter(final ANode n) {
return n.self();
}
};
/** Cached enums (faster). */
public static final Axis[] VALUES = values();
/** Axis string. */
public final String name;
/** Descendant axis flag. */
public final boolean down;
/**
* Constructor.
* @param name axis string
* @param down descendant flag
*/
Axis(final String name, final boolean down) {
this.name = name;
this.down = down;
}
/**
* Returns a node iterator.
* @param n input node
* @return node iterator
*/
abstract BasicNodeIter iter(ANode n);
@Override
public String toString() {
return name;
}
/**
* Inverts the axis.
* @return inverted axis
*/
final Axis invert() {
switch(this) {
case ANCESTOR: return DESCENDANT;
case ANCESTOR_OR_SELF: return DESCENDANT_OR_SELF;
case ATTRIBUTE:
case CHILD: return PARENT;
case DESCENDANT: return ANCESTOR;
case DESCENDANT_OR_SELF: return ANCESTOR_OR_SELF;
case FOLLOWING_SIBLING: return PRECEDING_SIBLING;
case FOLLOWING: return PRECEDING;
case PARENT: return CHILD;
case PRECEDING_SIBLING: return FOLLOWING_SIBLING;
case PRECEDING: return FOLLOWING;
case SELF: return SELF;
default: throw Util.notExpected();
}
}
}
| [
"christian.gruen@gmail.com"
] | christian.gruen@gmail.com |
6210750b7d1f9d7a190c7fab034011d42912c05a | aa1ecf1c150d9011b5ac9df513a5ab0232e03a0d | /source/main/java/ru/itaros/chemlab/addon/nei/NEIChemLabConfig.java | b91509e1b0bb3a06f979d1af1fc0e97f568bf28a | [] | no_license | Itaros/chemlab | d48e89333ca5d92f5c3db1fa76803ab6cc3c849d | cd01e4b9637347579204fc78c6d782b00ec6b606 | refs/heads/master | 2021-01-17T19:09:57.133164 | 2015-04-08T21:40:43 | 2015-04-08T21:40:43 | 18,167,731 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 663 | java | package ru.itaros.chemlab.addon.nei;
import ru.itaros.chemlab.ChemLab;
import ru.itaros.hoe.recipes.Recipe;
import static codechicken.nei.api.API.*;
import codechicken.nei.api.IConfigureNEI;
public class NEIChemLabConfig implements IConfigureNEI {
@Override
public String getName() {
return "ChemLab";
}
@Override
public String getVersion() {
return ChemLab.getPublicVersionNotation();
}
@Override
public void loadConfig() {
MachineCrafterRecipes generalCrafting = new MachineCrafterRecipes();
generalCrafting.initiateCache(Recipe.getRecipeRegistry());
registerRecipeHandler(generalCrafting);
registerUsageHandler(generalCrafting);
}
}
| [
"me@sg-studio.ru"
] | me@sg-studio.ru |
6e7a0fa15fb0c39f1941bf0eef0c635c4bd311db | 92c1674aacda6c550402a52a96281ff17cfe5cff | /module22/module11/module5/src/main/java/com/android/example/module22_module11_module5/ClassAAE.java | a6a9de53e3594c60f03190ee1fe2f8176488304e | [] | no_license | bingranl/android-benchmark-project | 2815c926df6a377895bd02ad894455c8b8c6d4d5 | 28738e2a94406bd212c5f74a79179424dd72722a | refs/heads/main | 2023-03-18T20:29:59.335650 | 2021-03-12T11:47:03 | 2021-03-12T11:47:03 | 336,009,838 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,608 | java | package com.android.example.module22_module11_module5;
public class ClassAAE {
private com.android.example.module14_module2.ClassAAD instance_var_1_0 = new com.android.example.module14_module2.ClassAAD();
private com.android.example.module22_module11_module2.ClassAAD instance_var_1_1 = new com.android.example.module22_module11_module2.ClassAAD();
private com.android.example.module22_module11_module2.ClassAAH instance_var_1_2 = new com.android.example.module22_module11_module2.ClassAAH();
private com.android.example.module03_module12_module1_module1.ClassAAJ instance_var_1_3 = new com.android.example.module03_module12_module1_module1.ClassAAJ();
public void method0(
com.android.example.module22_module11_module2.ClassAAC param0,
com.android.example.module22_module11_module2.ClassAAB param1,
com.android.example.module14_module2.ClassAAE param2,
com.android.example.module22_module07_module24.ClassAAJ param3) throws Throwable {
if (new java.lang.Object().equals(new java.lang.Object())) {
param0.method0(new com.android.example.module14_module1.ClassAAD(), new com.android.example.module06_module185_module7.ClassAAJ(), new com.android.example.module06_module147_module4_module4.ClassAAJ());
} else {
if (new java.lang.Object().equals(new java.lang.Object())) {
com.android.example.module15_module54_module1.ClassAAI local_var_4_0 = new com.android.example.module15_module54_module1.ClassAAI();
local_var_4_0.method1("SomeString", "SomeString");
} else {
com.android.example.module07_module59_module16_module3.ClassAAA local_var_4_0 = new com.android.example.module07_module59_module16_module3.ClassAAA();
local_var_4_0.method1(new com.android.example.module07_module59_module11_module1.ClassAAE(), new com.android.example.module07_module59_module11_module1.ClassAAC(), new com.android.example.module07_module59_module11_module1.ClassAAJ(), new com.android.example.module07_module59_module11_module1.ClassAAJ());
}
}
}
public void method1(
com.android.example.module03_module12_module1_module1.ClassAAE param0,
com.android.example.module22_module07_module24.ClassAAH param1,
com.android.example.module06_module123_module2.ClassAAB param2,
com.android.example.module22_module07_module24.ClassAAG param3) throws Throwable {
com.android.example.module05_module01_module02_module5.ClassAAC local_var_2_4 = new com.android.example.module05_module01_module02_module5.ClassAAC();
local_var_2_4.method1(new com.android.example.module06_module276_module1.ClassAAA(), new com.android.example.module06_module276_module1.ClassAAC());
}
}
| [
"bingran@google.com"
] | bingran@google.com |
3b49d87e57c878c26858f6a2512503c3b62dc7ee | 3a5985651d77a31437cfdac25e594087c27e93d6 | /ojc-core/component-common/wsdl4j/src/javax/wsdl/extensions/soap12/SOAP12Address.java | a45dad1bba8b04ba9a75f3ccd65370d2359e7bf6 | [] | no_license | vitalif/openesb-components | a37d62133d81edb3fdc091abd5c1d72dbe2fc736 | 560910d2a1fdf31879e3d76825edf079f76812c7 | refs/heads/master | 2023-09-04T14:40:55.665415 | 2016-01-25T13:12:22 | 2016-01-25T13:12:33 | 48,222,841 | 0 | 5 | null | null | null | null | UTF-8 | Java | false | false | 1,462 | java | /*
* BEGIN_HEADER - DO NOT EDIT
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the "License"). You may not use this file except
* in compliance with the License.
*
* You can obtain a copy of the license at
* https://open-jbi-components.dev.java.net/public/CDDLv1.0.html.
* See the License for the specific language governing
* permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* HEADER in each file and include the License file at
* https://open-jbi-components.dev.java.net/public/CDDLv1.0.html.
* If applicable add the following below this CDDL HEADER,
* with the fields enclosed by brackets "[]" replaced with
* your own identifying information: Portions Copyright
* [year] [name of copyright owner]
*/
/*
* @(#)SOAP12Address.java
*
* Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
*
* END_HEADER - DO NOT EDIT
*/
package javax.wsdl.extensions.soap12;
import javax.wsdl.extensions.*;
/**
* Copied from javax.wsdl.extensions.soap.SOAPAddress.
*/
public interface SOAP12Address extends ExtensibilityElement, java.io.Serializable
{
/**
* Set the location URI for this SOAP address.
*
* @param locationURI the desired location URI
*/
public void setLocationURI(String locationURI);
/**
* Get the location URI for this SOAP address.
*/
public String getLocationURI();
}
| [
"bitbucket@bitbucket02.private.bitbucket.org"
] | bitbucket@bitbucket02.private.bitbucket.org |
863b70175a6e4b84809c80b38af2130725e91f83 | a29a154fc62fae117af872fe3ce6f4e0f6bca056 | /src/main/java/org/xenei/bloompaper/index/hamming/BFHamming.java | 5d02cdd004d3c52f31abee2c5dbb84bf8bcd0653 | [] | no_license | Claudenw/BloomTest | 05d7e1dbe9dde32b2e3e59bca183e7976e96868d | 35c57ef7a72c2a46084570774d3262d33e07e5a0 | refs/heads/main | 2022-12-10T07:48:57.578604 | 2022-12-02T21:32:44 | 2022-12-02T21:32:44 | 29,236,287 | 1 | 0 | null | 2022-12-02T16:56:09 | 2015-01-14T09:12:01 | Java | UTF-8 | Java | false | false | 2,559 | java | package org.xenei.bloompaper.index.hamming;
import java.util.List;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.function.Consumer;
import org.apache.commons.collections4.bloomfilter.BloomFilter;
import org.apache.commons.collections4.bloomfilter.Shape;
import org.xenei.bloompaper.index.BloomIndex;
import org.xenei.bloompaper.index.FrozenBloomFilter;
/**
* Implementation that uses hamming based index.
*
* As set of lists is created based on hamming value. The lists are sorted by
* estimated Log value.
*/
public class BFHamming {
private TreeSet<Node> index = new TreeSet<Node>();
public List<FrozenBloomFilter> found;
public BFHamming(Shape shape) {
Node.setEmpty(shape);
}
public void add(BloomFilter filter) {
Node node = new Node(filter);
SortedSet<Node> tailSet = index.tailSet(node);
if (tailSet.isEmpty() || !node.equals(tailSet.first())) {
tailSet.add(node);
} else {
tailSet.first().increment();
}
}
public boolean delete(BloomFilter filter) {
Node node = new Node(filter);
SortedSet<Node> tailSet = index.tailSet(node);
if (!tailSet.isEmpty() && node.equals(tailSet.first())) {
if (tailSet.first().decrement()) {
tailSet.remove(tailSet.first());
}
return true;
}
return false;
}
/**
* Finds the matching nodes
* @param result
* @param filter
* @return
*/
public void search(Consumer<BloomFilter> result, BloomFilter filter) {
Node node = new Node(filter);
// int retval = 0;
SortedSet<Node> tailSet = index.tailSet(node);
if (tailSet.isEmpty()) {
return;
}
if (node.equals(tailSet.first())) {
tailSet.first().getCount(result);
}
Node lowerLimit = node.lowerLimitNode();
Node upperLimit;
while (lowerLimit.compareTo(index.last()) <= 0) {
upperLimit = lowerLimit.upperLimitNode();
tailSet.tailSet(lowerLimit).headSet(upperLimit).stream().filter(n -> n.getFilter().contains(filter))
.forEach((n) -> n.getCount(result));
lowerLimit = upperLimit.lowerLimitNode();
}
}
public int scan(BloomFilter bf) {
BloomIndex.Incrementer incr = new BloomIndex.Incrementer();
index.stream().map((n) -> n.getFilter()).filter((f) -> f.contains(bf)).forEach(incr);
return incr.count;
}
}
| [
"claude@xenei.com"
] | claude@xenei.com |
ac7851a7d546da0892dce56e91bf110c9e177335 | c3e391e3cc9184028fa26ceba3a15ed5832669f1 | /src/test/java/org/apache/ibatis/submitted/nestedresulthandler/Person.java | d9456920dceb418ce1430f9c7c32682c6255b705 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MybeautifulSunShine/mybatis-3-master | 80e5a56a03608363a06293ba43e2985bfc097782 | 0c911eca653fa61002ace5dd5850d24c6aadcffe | refs/heads/master | 2023-03-23T11:43:31.872326 | 2021-03-11T07:28:22 | 2021-03-11T07:28:22 | 327,171,618 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,626 | java | /**
* Copyright 2009-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ibatis.submitted.nestedresulthandler;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class Person {
private Integer id;
private String name;
private List<Item> items=new ArrayList<Item>();
public String toString(){
return new StringBuilder()
.append("Person(")
.append(id)
.append(", ")
.append(name)
.append(", ")
.append(items)
.append(" )")
.toString();
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Collection<Item> getItems() {
return items;
}
public boolean owns(String name) {
for (Item item : getItems()) {
if (item.getName().equals(name))
return true;
}
return false;
}
}
| [
"m18234818170@163.com"
] | m18234818170@163.com |
7fc6d0a4d70aafc1685c2a81067b841ebbba6f02 | c159f53e6cf8f1b12625b61c2a5cc7d891cc9ca2 | /src/main/java/de/uni/bielefeld/sc/hterhors/psink/obie/projects/scio/ontology/interfaces/IArylsulfataseB.java | bcfb69ba1eaa987f1c14bc0f5801bc3b3ecc9bcd | [
"Apache-2.0"
] | permissive | ag-sc/SpinalCordInjuryOBIE | 42b778eee39a0bd57e2b75616436b4553ac1a530 | 7745c73b6ddc66c921fbc5de8ca55cb045e0c195 | refs/heads/master | 2022-10-03T21:59:54.827880 | 2019-03-29T11:16:38 | 2019-03-29T11:16:38 | 156,360,172 | 1 | 1 | Apache-2.0 | 2022-09-01T22:59:29 | 2018-11-06T09:38:56 | Java | UTF-8 | Java | false | false | 1,561 | java | package de.uni.bielefeld.sc.hterhors.psink.obie.projects.scio.ontology.interfaces;
import de.hterhors.obie.core.ontology.AbstractIndividual;
import de.hterhors.obie.core.ontology.IndividualFactory;
import de.hterhors.obie.core.ontology.annotations.AssignableSubClasses;
import de.hterhors.obie.core.ontology.annotations.AssignableSubInterfaces;
import de.hterhors.obie.core.ontology.annotations.DatatypeProperty;
import de.hterhors.obie.core.ontology.annotations.DirectInterface;
import de.hterhors.obie.core.ontology.annotations.DirectSiblings;
import de.hterhors.obie.core.ontology.annotations.ImplementationClass;
import de.hterhors.obie.core.ontology.annotations.OntologyModelContent;
import de.hterhors.obie.core.ontology.annotations.RelationTypeCollection;
import de.hterhors.obie.core.ontology.annotations.SuperRootClasses;
import de.hterhors.obie.core.ontology.annotations.TextMention;
import de.hterhors.obie.core.ontology.interfaces.IDatatype;
import de.hterhors.obie.core.ontology.interfaces.IOBIEThing;
import de.uni.bielefeld.sc.hterhors.psink.obie.projects.scio.ontology.classes.*;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;
/**
<p><b>rdfs:label</b>
<p>arylsulfatase b
<p>
<p><b>rdfs:description</b>
<p>Arylsulfatase B is an enzyme which breaks down dermatan sulfate and chondroitin sulfate proteoglycans side chains.
<p>
*
* @author hterhors
*
*
*Mar 19, 2019
*/
@AssignableSubInterfaces(get={})
@ImplementationClass(get=ArylsulfataseB.class)
public interface IArylsulfataseB
extends IEnzyme{
}
| [
"hterhors@techfak.uni-bielefeld.de"
] | hterhors@techfak.uni-bielefeld.de |
031175951eff25a88991b478f116c273f9386d9a | 7bbea063b44d212f82eff499d8291aaaca85daa1 | /Ftm2Html/src/ws/daley/genealogy/gedcom/event/family/GcFamilyMarriageLicenseEvent.java | 4affe7365ee2228b5a0239311e4bbf4245685fa6 | [] | no_license | AixNPanes/genealogy | d6bfc02c67d04341ea6faed501ffd9474cc4e408 | 111e89209852a8d48b3b6002bc0bbf2c2b7289cb | refs/heads/master | 2022-05-26T20:00:31.342782 | 2021-07-20T21:27:41 | 2021-07-20T21:27:41 | 62,721,459 | 0 | 0 | null | 2022-05-20T20:49:27 | 2016-07-06T13:04:08 | Java | UTF-8 | Java | false | false | 6,319 | java | package ws.daley.genealogy.gedcom.event.family;
import java.util.Vector;
import ws.daley.genealogy.gedcom.object.GcBaseElement;
/**
* used in FAM_RECORD:=
*
* FAMILY_EVENT_STRUCTURE:=
* [
* n [ ANUL | CENS | DIV | DIVF ] [Y|<NULL>] {1:1}
* +1 <<EVENT_DETAIL>> {0:1}
* +2 HUSB {0:1} +3 AGE <AGE_AT_EVENT> {1:1}
* +2 WIFE {0:1} +3 AGE <AGE_AT_EVENT> {1:1}
* |
* n [ ENGA | MARR | MARB | MARC ] [Y|<NULL>] {1:1}
* +1 <<EVENT_DETAIL>> {0:1}
* +2 HUSB {0:1} +3 AGE <AGE_AT_EVENT> {1:1}
* +2 WIFE {0:1} +3 AGE <AGE_AT_EVENT> {1:1}
* |
* n [ MARL | MARS ] [Y|<NULL>] {1:1}
* +1 <<EVENT_DETAIL>> {0:1}
* +2 HUSB {0:1} +3 AGE <AGE_AT_EVENT> {1:1}
* +2 WIFE {0:1} +3 AGE <AGE_AT_EVENT> {1:1}
* |
* n EVEN {1:1}
* +1 <<EVENT_DETAIL>> {0:1}
* +2 HUSB {0:1} +3 AGE <AGE_AT_EVENT> {1:1}
* +2 WIFE {0:1} +3 AGE <AGE_AT_EVENT> {1:1}
* ]
*
* EVENT_DETAIL:=
* n TYPE <EVENT_DESCRIPTOR> {0:1}
* n DATE <DATE_VALUE> {0:1}
* n <<PLACE_STRUCTURE>> {0:1}
* n <<ADDRESS_STRUCTURE>> {0:1}
* n AGE <AGE_AT_EVENT> {0:1}
* n AGNC <RESPONSIBLE_AGENCY> {0:1}
* n CAUS <CAUSE_OF_EVENT> {0:1}
* n <<SOURCE_CITATION>> {0:M}
* n <<MULTIMEDIA_LINK>> {0:M}
* n <<NOTE_STRUCTURE>> {0:M}
*
* PLACE_STRUCTURE:=
* n PLAC <PLACE_VALUE> {1:1}
* +1 FORM <PLACE_HIERARCHY> {0:1}
* +1 <<SOURCE_CITATION>> {0:M}
* +1 <<NOTE_STRUCTURE>> {0:M}
*
* ADDRESS_STRUCTURE:=
* n ADDR <ADDRESS_LINE> {0:1}
* +1 CONT <ADDRESS_LINE> {0:M}
* +1 ADR1 <ADDRESS_LINE1> {0:1}
* +1 ADR2 <ADDRESS_LINE2> {0:1}
* +1 CITY <ADDRESS_CITY> {0:1}
* +1 STAE <ADDRESS_STATE> {0:1}
* +1 POST <ADDRESS_POSTAL_CODE> {0:1}
* +1 CTRY <ADDRESS_COUNTRY> {0:1}
*
* SOURCE_CITATION:=
* [
* n SOUR @<XREF:SOUR>@ {1:1} p.57 // pointer to source record
* +1 PAGE <WHERE_WITHIN_SOURCE> {0:1} p.57
* +1 EVEN <EVENT_TYPE_CITED_FROM> {0:1} p.46
* +2 ROLE <ROLE_IN_EVENT> {0:1} p.54
* +1 DATA {0:1}
* +2 DATE <ENTRY_RECORDING_DATE> {0:1} p.46
* +2 TEXT <TEXT_FROM_SOURCE> {0:M} p.56
* +3 [ CONC | CONT ] <TEXT_FROM_SOURCE> {0:M}
* +1 QUAY <CERTAINTY_ASSESSMENT> {0:1} p.42
* +1 <<MULTIMEDIA_LINK>> {0:M} p.36,29
* +1 <<NOTE_STRUCTURE>> {0:M} p.37
* | // Systems not using source records
* n SOUR <SOURCE_DESCRIPTION> {1:1} p.55
* +1 [ CONC | CONT ] <SOURCE_DESCRIPTION> {0:M}
* +1 TEXT <TEXT_FROM_SOURCE> {0:M} p.56
* +2 [CONC | CONT ] <TEXT_FROM_SOURCE> {0:M}
* +1 <<NOTE_STRUCTURE>> {0:M} p.37
* ]
* The data provided in the <<SOURCE_CITATION>> structure is source-related
* information specific to the data being cited. (See GEDCOM examples starting
* on page 61.) Systems that do not use SOURCE_RECORDS must use the second
* SOURce citation structure option. When systems which support SOURCE_RECORD
* structures encounter source citations which do not contain pointers to source
* records, that system will need to create a SOURCE_RECORD and store the
* <SOURCE_DESCRIPTION> information found in the non-structured source citation
* in either the title area of that SOURCE_RECORD, or if the title field is not
* large enough, place a "(See Notes)" text in the title area, and place the
* unstructured source description in the source record's note field.
*
* The information intended to be placed in the citation structure includes:
* ! A pointer to the SOURCE_RECORD, which contains a more general description
* of the source.
*
* ! Information, such as a page number, on how to find the cited data within
* the source.
*
* ! Actual text from the source that was used in making assertions, for example
* a date phrase as actually recorded or an applicable sentence from a letter,
* would be appropriate.
*
* ! Data that allows an assessment of the relative value of one source over
* another for making the recorded assertions (primary or secondary source, etc.).
* Data needed for this assessment is how much time from the asserted fact and
* when the source event was recorded, what type of event was cited, and what
* was the role of this person in the cited event.
*
* - Date when the entry was recorded in source document, ".SOUR.DATA.DATE."
* - Event that initiated the recording, ".SOUR.EVEN."
* - Role of this person in the event, ".SOUR.EVEN.ROLE".
*
* MULTIMEDIA_LINK:=
*
* [
* // embedded form
* n OBJE @<XREF:OBJE>@ {1:1}
* |
* // linked form
* n OBJE {1:1}
* +1 FORM <MULTIMEDIA_FORMAT> {1:1}
* +1 TITL <DESCRIPTIVE_TITLE> {0:1}
* +1 FILE <MULTIMEDIA_FILE_REFERENCE> {1:1}
* +1 <<NOTE_STRUCTURE>> {0:M}
* |
* n @XREF:OBJE@ OBJE {1:1}
* +1 FORM <MULTIMEDIA_FORMAT> {1:1)
* +1 TITL <DESCRIPTIVE_TITLE> {0:1}
* +1 <<NOTE_STRUCTURE>> {0:M}
* +1 BLOB {1:1}
* +2 CONT <ENCODED_MULTIMEDIA_LINE> {1:M}
* +1 OBJE @<XREF:OBJE>@ {0:1} // chain to continued object
* +1 REFN <USER_REFERENCE_NUMBER> {0:M}
* +2 TYPE <USER_REFERENCE_TYPE> {0:1}
* +1 RIN <AUTOMATED_RECORD_ID> {0:1}
* +1 <<CHANGE_DATE>> {0:1}
* ]
*
* Large whole multimedia objects embedded in a GEDCOM file would
* break some systems. For this purpose, large multimedia files
* should be divided into smaller multimedia records by using the
* subordinate OBJE tag to chain to the next <MULTIMEDIA_RECORD>
* fragment. This will allow GEDCOM records to be maintained below
* the 32K limit for use in systems with limited resources.
*
* NOTE_STRUCTURE:=
* [
* n NOTE @<XREF:NOTE>@ {1:1}
* +1 <<SOURCE_CITATION>> {0:M}
* |
* n NOTE [SUBMITTER_TEXT> | <NULL>] {1:1}
* +1 [ CONC | CONT ] <SUBMITTER_TEXT> {0:M}
* +1 <<SOURCE_CITATION>> {0:M}
* ]
*/
public class GcFamilyMarriageLicenseEvent extends Gc_FamilyEventStructureEvent
{
public GcFamilyMarriageLicenseEvent(GcBaseElement e, Vector<GcBaseElement> _vector)
{
super(e, "MARL", null, null, _vector);
}
}
| [
"tim.daley@cru.org"
] | tim.daley@cru.org |
43376a9949c54fb0d06af47bb70a576b160faeaf | 0dcd633de13f79941bb3f67e2b72a856ff944011 | /RelationalQuery-关联关系查询/src/main/java/org/lint/Entity/City.java | 103bfa64e51b4674044170c566f6b2305477e1e6 | [] | no_license | lintsGitHub/StudyMyBatisExample | 07666f4a94c05cfb9e92af790d9eefff25e50ced | d160472cc481e3843183647086e9e956643f9c9e | refs/heads/master | 2020-04-05T02:12:51.335275 | 2019-02-17T06:14:46 | 2019-02-17T06:14:46 | 156,468,204 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 776 | java | package org.lint.Entity;
public class City {
private int cid;
private String cname;
// 关联属性
private Province province;
@Override
public String toString() {
return "City{" +
"cid=" + cid +
", cname='" + cname + '\'' +
", province=" + province +
'}';
}
public Province getProvince() {
return province;
}
public void setProvince(Province province) {
this.province = province;
}
public int getCid() {
return cid;
}
public void setCid(int cid) {
this.cid = cid;
}
public String getCname() {
return cname;
}
public void setCname(String cname) {
this.cname = cname;
}
}
| [
"2145604059@qq.com"
] | 2145604059@qq.com |
b0d6d3e6cd5b1c64090378ec93f22e3cb9ada2a1 | 0039dc07de2e539748e40db7b060367f0f2a3d99 | /CreditAnalytics/2.3/src/org/drip/quant/common/DateUtil.java | 814abd7461e4e4ab6d4125ea5a4c29ff6bf0cee3 | [
"Apache-2.0"
] | permissive | tech2bg/creditanalytics | a4318518e42a557ffb3396be9350a367d3a208b3 | b24196a76f98b1c104f251d74ac22a213ae920cf | refs/heads/master | 2020-04-05T23:46:29.529999 | 2015-05-07T01:40:52 | 2015-05-07T01:40:52 | 35,299,804 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 4,704 | java |
package org.drip.quant.common;
/*
* -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*/
/*!
* Copyright (C) 2014 Lakshmi Krishnamurthy
* Copyright (C) 2013 Lakshmi Krishnamurthy
* Copyright (C) 2012 Lakshmi Krishnamurthy
*
* This file is part of DRIP, a free-software/open-source library for fixed income analysts and developers -
* http://www.credit-trader.org/Begin.html
*
* DRIP is a free, full featured, fixed income rates, credit, and FX analytics library with a focus towards
* pricing/valuation, risk, and market making.
*
* 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.
*/
/**
* DateUtil implements date utility functions those are extraneous to the JulianDate implementation. It
* exposes the following functionality:
* - Retrieve Day, Month, and Year From Java Date
* - Switch between multiple date formats (Oracle Date, BBG Date, different string representations etc).
*
* @author Lakshmi Krishnamurthy
*/
public class DateUtil {
/**
* Returns the date corresponding to the input java.util.Date
*
* @param dt java.util.Date Input
*
* @return Date
*
* @throws java.lang.Exception Thrown if input date is invalid
*/
public static final int GetDate (
final java.util.Date dt)
throws java.lang.Exception
{
if (null == dt) throw new java.lang.Exception ("DateUtil::GetDate => Invalid Date");
java.util.Calendar cal = java.util.Calendar.getInstance();
cal.setTime (dt);
return cal.get (java.util.Calendar.DATE);
}
/**
* Returns the month corresponding to the input java.util.Date. 1 => January, and 12 => December
*
* @param dt java.util.Date Input
*
* @return Month
*
* @throws java.lang.Exception Thrown if input date is invalid
*/
public static final int GetMonth (
final java.util.Date dt)
throws java.lang.Exception
{
if (null == dt) throw new java.lang.Exception ("DateUtil::GetMonth => Invalid Date");
java.util.Calendar cal = java.util.Calendar.getInstance();
cal.setTime (dt);
return cal.get (java.util.Calendar.MONTH) + 1;
}
/**
* Returns the year corresponding to the input java.util.Date.
*
* @param dt java.util.Date Input
*
* @return Year
*
* @throws java.lang.Exception Thrown if input date is invalid
*/
public static final int GetYear (
final java.util.Date dt)
throws java.lang.Exception
{
if (null == dt) throw new java.lang.Exception ("DateUtil::GetYear => Invalid Date");
java.util.Calendar cal = java.util.Calendar.getInstance();
cal.setTime (dt);
return cal.get (java.util.Calendar.YEAR);
}
/**
* Creates an Oracle date trigram from a YYYYMMDD string
*
* @param strYYYYMMDD Date string in the YYYYMMDD format.
*
* @return Oracle date trigram string
*/
public static java.lang.String MakeOracleDateFromYYYYMMDD (
final java.lang.String strYYYYMMDD)
{
if (null == strYYYYMMDD || strYYYYMMDD.isEmpty()) return null;
try {
return strYYYYMMDD.substring (6) + "-" + org.drip.analytics.date.JulianDate.getMonthOracleChar
((new java.lang.Integer (strYYYYMMDD.substring (4, 6))).intValue()) + "-" +
strYYYYMMDD.substring (0, 4);
} catch (java.lang.Exception e) {
e.printStackTrace();
}
return null;
}
/**
* Create an Oracle date trigram from a Bloomberg date string
*
* @param strBBGDate Bloomberg date string
*
* @return Oracle date trigram string
*/
public static java.lang.String MakeOracleDateFromBBGDate (
final java.lang.String strBBGDate)
{
if (null == strBBGDate || strBBGDate.isEmpty()) return null;
java.util.StringTokenizer st = new java.util.StringTokenizer (strBBGDate, "/");
try {
java.lang.String strMonth = org.drip.analytics.date.JulianDate.getMonthOracleChar ((new
java.lang.Integer (st.nextToken())).intValue());
if (null == strMonth) return null;
return st.nextToken() + "-" + strMonth + "-" + st.nextToken();
} catch (java.lang.Exception e) {
e.printStackTrace();
}
return null;
}
}
| [
"OpenCredit@DRIP"
] | OpenCredit@DRIP |
0007e165f7f28b8b6a97d5f2a14d0e6de697facf | 371e307924d8b812a58b7351180043ac40cc891b | /raoa-viewer/src/main/java/ch/bergturbenthal/raoa/viewer/interfaces/graphql/model/AddKeywordMutation.java | 9bbd5b711c8437dfa52ba929b58e2c8daf50451a | [] | no_license | koa/raoa2 | 63d9e2757731e4f8efa8ff2c53fcbcc76222a5fb | ce0c2342dea0ecf94a1a6452d27e8e46277219d8 | refs/heads/master | 2023-09-03T12:18:42.675969 | 2023-06-25T04:40:05 | 2023-08-27T07:06:32 | 200,363,105 | 2 | 0 | null | 2023-07-03T07:20:37 | 2019-08-03T10:36:40 | Java | UTF-8 | Java | false | false | 210 | java | package ch.bergturbenthal.raoa.viewer.interfaces.graphql.model;
import java.util.UUID;
import lombok.Value;
@Value
public class AddKeywordMutation {
UUID albumId;
String albumEntryId;
String keyword;
}
| [
"andreas.koenig@berg-turbenthal.ch"
] | andreas.koenig@berg-turbenthal.ch |
62103d2ca0b19b637a28e0a54fb6380ad0c0d90e | e75be673baeeddee986ece49ef6e1c718a8e7a5d | /submissions/blizzard/Corpus/eclipse.pde.ui/72.java | 5f37644ce3f36e2d14c5064386ab74bc5222056e | [
"MIT"
] | permissive | zhendong2050/fse18 | edbea132be9122b57e272a20c20fae2bb949e63e | f0f016140489961c9e3c2e837577f698c2d4cf44 | refs/heads/master | 2020-12-21T11:31:53.800358 | 2018-07-23T10:10:57 | 2018-07-23T10:10:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 628 | java | /*******************************************************************************
* Copyright (c) 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package a.interfaces.members;
/**
*
*/
public interface RemoveMethodNoReference {
}
| [
"tim.menzies@gmail.com"
] | tim.menzies@gmail.com |
d810842dfd6f636c5b5961c313193b8f78becf34 | 421f0a75a6b62c5af62f89595be61f406328113b | /generated_tests/no_seeding/89_jiggler-jigl.image.types.InterpolatedGrayImage-1.0-7/jigl/image/types/InterpolatedGrayImage_ESTest.java | 7c439ff52dc5cccc8a5e5168cda87f5148e0ee91 | [] | 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 | 664 | java | /*
* This file was automatically generated by EvoSuite
* Mon Oct 28 21:21:36 GMT 2019
*/
package jigl.image.types;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true)
public class InterpolatedGrayImage_ESTest extends InterpolatedGrayImage_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
| [
"pderakhshanfar@bsr01.win.tue.nl"
] | pderakhshanfar@bsr01.win.tue.nl |
9f75bf505d0bf2cee0162b418f303015d4301f84 | 09be72f1c3639f8f809b1e169970acc96f289bd7 | /src/feinno-app-engine/src/feinno-app-engine/src/test/java/test/com/feinno/appengine/RemoteAppBeanSample.java | 5c685768fd794b4dd0eddd172b7397bb0eae5c51 | [] | no_license | philiahe/angel | ffdfbad0a1ac29280bad209e2cd662654cd7fe81 | 18eac04bd61144fb882c8581719d4eb86b5a8923 | refs/heads/master | 2020-04-12T13:59:46.454878 | 2015-01-20T07:10:56 | 2015-01-20T07:10:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,994 | java | /*
* FAE, Feinno App Engine
*
* Create by gaolei 2011-3-8
*
* Copyright (c) 2011 北京新媒传信科技有限公司
*/
package test.com.feinno.appengine;
import test.com.feinno.appengine.RemoteAppBeanSample.Entity;
import com.feinno.appengine.annotation.AppName;
import com.feinno.appengine.context.SessionContext;
import com.feinno.appengine.rpc.RemoteAppBean;
import com.feinno.appengine.rpc.RemoteAppTx;
import com.feinno.serialization.protobuf.ProtoEntity;
import com.feinno.serialization.protobuf.ProtoMember;
/**
* {在这里补充类的功能说明}
*
* @author 高磊 gaolei@feinno.com
*/
@AppName(category="sample",name="sample")
//HttpPrefix("/Sample.do")
public class RemoteAppBeanSample extends RemoteAppBean<Entity, Entity, SessionContext>
{
/*
* @see com.feinno.appengine.rpc.RemoteAppBean#run(com.feinno.appengine.rpc.RemoteAppTx)
*/
/**
* {在这里补充功能说明}
* @param tx
*/
@Override
public void process(RemoteAppTx<Entity, Entity, SessionContext> tx)
{
Entity e = tx.args();
e.a = e.a + e.b;
tx.end(e);
}
/*
* @see com.feinno.appengine.AppBean#setup()
*/
/**
* {在这里补充功能说明}
*/
@Override
public void setup()
{
}
/*
* @see com.feinno.appengine.AppBean#load()
*/
/**
* {在这里补充功能说明}
*/
@Override
public void load() throws Exception
{
getInjector().addBeforeHandler(AppBeanHandlerSample.class);
}
/*
* @see com.feinno.appengine.AppBean#unload()
*/
/**
* {在这里补充功能说明}
*/
@Override
public void unload()
{
}
public static class Entity extends ProtoEntity
{
public int getA()
{
return a;
}
public int getB()
{
return b;
}
public void setA(int a)
{
this.a = a;
}
public void setB(int b)
{
this.b = b;
}
@ProtoMember(1)
private int a;
@ProtoMember(2)
private int b;
}
}
| [
"honghao@feinno.com"
] | honghao@feinno.com |
c2952a8642bc9ac6b81d367e15ae2c2cd3a88dfc | a3e9de23131f569c1632c40e215c78e55a78289a | /alipay/alipay_sdk/src/main/java/com/alipay/api/domain/AlipayOpenServicemarketCommodityShopOnlineModel.java | c7f361c48096c03740cdfcc70e0b2aef0f39cf0f | [] | no_license | P79N6A/java_practice | 80886700ffd7c33c2e9f4b202af7bb29931bf03d | 4c7abb4cde75262a60e7b6d270206ee42bb57888 | refs/heads/master | 2020-04-14T19:55:52.365544 | 2019-01-04T07:39:40 | 2019-01-04T07:39:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 795 | java | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 门店上架处理
*
* @author auto create
* @since 1.0, 2017-10-24 10:39:17
*/
public class AlipayOpenServicemarketCommodityShopOnlineModel extends AlipayObject {
private static final long serialVersionUID = 6219891751653489516L;
/**
* 服务插件ID
*/
@ApiField("commodity_id")
private String commodityId;
/**
* 店铺ID
*/
@ApiField("shop_id")
private String shopId;
public String getCommodityId() {
return this.commodityId;
}
public void setCommodityId(String commodityId) {
this.commodityId = commodityId;
}
public String getShopId() {
return this.shopId;
}
public void setShopId(String shopId) {
this.shopId = shopId;
}
}
| [
"jiaojianjun1991@gmail.com"
] | jiaojianjun1991@gmail.com |
f9b43d32354513e158aa93767e310c49f9da7991 | 0b24cf99612ce74f354f2af5274888fc32b47e7b | /springboot-httpclient/src/main/java/com/github/lybgeek/common/util/BeanMapperUtils.java | e5d15196a32e719d59fd08910c7a0cbe92be855a | [] | no_license | lyb-geek/springboot-learning | 9c90706ffe4af8f14485d043c52bbb795f366bc0 | d441036b5969a8023b92b4c40b8a915cf524dba6 | refs/heads/master | 2023-07-25T13:43:46.685581 | 2023-07-22T12:41:42 | 2023-07-22T12:41:42 | 195,616,981 | 544 | 395 | null | 2023-03-11T02:17:31 | 2019-07-07T06:13:03 | Java | UTF-8 | Java | false | false | 960 | java | package com.github.lybgeek.common.util;
import com.github.dozermapper.core.DozerBeanMapperBuilder;
import com.github.dozermapper.core.Mapper;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class BeanMapperUtils {
private static Mapper mapper = DozerBeanMapperBuilder.buildDefault();
public static <T> T map(Object source, Class<T> destinationClass) {
if (source == null) {
return null;
}
return mapper.map(source, destinationClass);
}
public static void map(Object source, Object destination) {
mapper.map(source, destination);
}
public static <T> List<T> mapList(Collection sourceList, Class<T> destinationClass) {
List<T> destinationList = new ArrayList<>();
for (Object sourceObject : sourceList) {
destinationList.add(mapper.map(sourceObject, destinationClass));
}
return destinationList;
}
}
| [
"410480180@qq.com"
] | 410480180@qq.com |
125b296bcb9fd0835b3c6759e928aaace8103abc | 96f8d42c474f8dd42ecc6811b6e555363f168d3e | /budejie/sources/com/microquation/linkedme/android/g/f.java | 77f777e930f582d94a31f9af2cb367212f22a99d | [] | no_license | aheadlcx/analyzeApk | 050b261595cecc85790558a02d79739a789ae3a3 | 25cecc394dde4ed7d4971baf0e9504dcb7fabaca | refs/heads/master | 2020-03-10T10:24:49.773318 | 2018-04-13T09:44:45 | 2018-04-13T09:44:45 | 129,332,351 | 6 | 2 | null | null | null | null | UTF-8 | Java | false | false | 1,168 | java | package com.microquation.linkedme.android.g;
import android.content.SharedPreferences.Editor;
import android.os.Build.VERSION;
import android.support.annotation.NonNull;
public final class f {
public static final class a {
private static a a;
private final c b;
private interface c {
void a(@NonNull Editor editor);
}
private static class a implements c {
private a() {
}
public void a(@NonNull Editor editor) {
d.a(editor);
}
}
private static class b implements c {
private b() {
}
public void a(@NonNull Editor editor) {
editor.commit();
}
}
private a() {
if (VERSION.SDK_INT >= 9) {
this.b = new a();
} else {
this.b = new b();
}
}
public static a a() {
if (a == null) {
a = new a();
}
return a;
}
public void a(@NonNull Editor editor) {
this.b.a(editor);
}
}
}
| [
"aheadlcxzhang@gmail.com"
] | aheadlcxzhang@gmail.com |
34a989c8ab47378025bfb8707556a9b5fb7fb56b | cfe71d800f6585a2f54a1d932c961c1e43e9e08a | /src/main/java/leetcode/easy/P100SameTree.java | 2f3cc6b83c17c0197f67364c99e6a1e8e1ae353e | [] | no_license | sharubhat/piij-cci | 4eebe6d575a4e09ae2b93b1af41b46223d31836c | 4705d0a654596431470b7d0bd9dba7f57eccdb3a | refs/heads/master | 2022-06-04T21:48:39.260642 | 2021-02-21T07:06:29 | 2021-02-21T07:06:29 | 70,663,296 | 1 | 0 | null | 2021-02-21T06:24:43 | 2016-10-12T04:39:18 | Java | UTF-8 | Java | false | false | 410 | java | package leetcode.easy;
import leetcode.TreeNode;
/**
* https://leetcode.com/problems/same-tree/description/
*/
public class P100SameTree {
public boolean isSameTree(TreeNode p, TreeNode q) {
if (p == null && q == null) {
return true;
}
if (p == null ^ q == null) {
return false;
}
return p.val == q.val && isSameTree(p.left, q.left) && isSameTree(p.right, q.right);
}
}
| [
"sharubhat@gmail.com"
] | sharubhat@gmail.com |
b97c75c77328f69fbf31d86c064f8f55ddeaafad | 119bed75d0cf7361a2ba65a9b2a239200b743c12 | /bluetooth/src/main/java/com/shon/connector/call/write/controlclass/DoNotDisturbModeSwitchCall.java | 20d9e9ee4d98aafad17db375e1aba10f8f176727 | [] | no_license | klzhong69/XinglianSDK | c94c4cad3601259be3ba07ff91eb9ec4016e97ab | 8871af246f0c6c50f159fec2d309f5b7fb3870ba | refs/heads/master | 2023-08-14T06:06:58.887894 | 2021-09-17T19:07:25 | 2021-09-17T19:07:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,407 | java | package com.shon.connector.call.write.controlclass;
import com.example.xingliansdk.utils.ShowToast;
import com.shon.bluetooth.util.ByteUtil;
import com.shon.connector.BleWrite;
import com.shon.connector.Config;
import com.shon.connector.call.CmdUtil;
import com.shon.connector.bean.TimeBean;
import com.shon.bluetooth.core.callback.WriteCallback;
import com.shon.connector.utils.TLog;
/**
* 3.3.9
* 设备勿扰模式开关
*/
public class DoNotDisturbModeSwitchCall extends WriteCallback {
TimeBean mTimeBean;
BleWrite.DoNotDisturbModeSwitchCallInterface mInterface;
public DoNotDisturbModeSwitchCall(String address) {
super(address);
}
public DoNotDisturbModeSwitchCall(String address, TimeBean mTimeBean, BleWrite.DoNotDisturbModeSwitchCallInterface mInterface) {
super(address);
this.mTimeBean=mTimeBean;
this.mInterface=mInterface;
TLog.Companion.error("进入勿扰");
}
@Override
public byte[] getSendData() {
byte payload[] = {0x01,0x09,(byte) mTimeBean.getSwitch(), (byte) mTimeBean.getOpenHour(), (byte) mTimeBean.getOpenMin(), (byte) mTimeBean.getCloseHour(), (byte) mTimeBean.getCloseMin()};
// TLog.Companion.error("勿扰==="+ ByteUtil.getHexString(CmdUtil.getFullPackage(payload)));
return CmdUtil.getFullPackage(payload);
}
@Override
public boolean process(String address, byte[] result,String uuid) {
if(!uuid.equalsIgnoreCase(Config.readCharacter))
return false;
TLog.Companion.error("勿扰==+"+ByteUtil.getHexString(result));
if (result[8] == 0x07 && result[9] == Config.DEVICE_KEY_ACK) {
TLog.Companion.error("");
switch (result[10]) {
case 0x01:
TLog.Companion.error("已经返回了");
return true;
// break;
case 0x02:
case 0x03:
BleWrite.writeDoNotDisturbModeSwitchCall(mTimeBean,mInterface); //重新发送的操作
break;
case 0x04:
ShowToast.INSTANCE.showToastLong("设备不支持当前协议");
break;
}
return true;
}
return false;
}
@Override
public void onTimeout() {
}
}
| [
"758378737@qq.com"
] | 758378737@qq.com |
56a15539f2cc665ff8cb68a7a53b0b30334b030b | 34d9d1dbd41b2781f5d1839367942728ee199c2c | /VectorGraphics/src/org/freehep/graphicsio/emf/Polygon16.java | ecfb83fc4790c66bff2f904b5354cdd80dee3393 | [] | no_license | Intrinsarc/intrinsarc-evolve | 4808c0698776252ac07bfb5ed2afddbc087d5e21 | 4492433668893500ebc78045b6be24f8b3725feb | refs/heads/master | 2020-05-23T08:14:14.532184 | 2015-09-08T23:07:35 | 2015-09-08T23:07:35 | 70,294,516 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,143 | java | // Copyright 2002, FreeHEP.
package org.freehep.graphicsio.emf;
import java.awt.*;
import java.io.*;
/**
* Polygon16 TAG.
*
* @author Mark Donszelmann
* @version $Id: Polygon16.java,v 1.1 2009-03-04 22:46:50 andrew Exp $
*/
public class Polygon16 extends EMFTag
{
private Rectangle bounds;
private int numberOfPoints;
private Point[] points;
Polygon16()
{
super(86, 1);
}
public Polygon16(Rectangle bounds, int numberOfPoints, Point[] points)
{
this();
this.bounds = bounds;
this.numberOfPoints = numberOfPoints;
this.points = points;
}
public EMFTag read(int tagID, EMFInputStream emf, int len) throws IOException
{
Rectangle r = emf.readRECTL();
int n = emf.readDWORD();
Polygon16 tag = new Polygon16(r, n, emf.readPOINTS(n));
return tag;
}
public void write(int tagID, EMFOutputStream emf) throws IOException
{
emf.writeRECTL(bounds);
emf.writeDWORD(numberOfPoints);
emf.writePOINTS(numberOfPoints, points);
}
public String toString()
{
return super.toString() + "\n" + " bounds: " + bounds + "\n" + " #points: " + numberOfPoints;
}
}
| [
"devnull@localhost"
] | devnull@localhost |
3b5d15be3aa93e30c63c3a3de7f976b1d3bdf53a | ed5159d056e98d6715357d0d14a9b3f20b764f89 | /src/irvine/oeis/a170/A170519.java | a502c21c3a78e91669ea147d2c3a803b5174c54f | [] | no_license | flywind2/joeis | c5753169cf562939b04dd246f8a2958e97f74558 | e5efd6971a0062ac99f4fae21a7c78c9f9e74fea | refs/heads/master | 2020-09-13T18:34:35.080552 | 2019-11-19T05:40:55 | 2019-11-19T05:40:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 443 | java | package irvine.oeis.a170;
// Generated by gen_pattern.pl - DO NOT EDIT here!
import irvine.oeis.CoxeterSequence;
/**
* A170519 Number of reduced words of length n in Coxeter group on 30 generators <code>S_i</code> with relations <code>(S_i)^2 = (S_i S_j)^46 =</code> I.
* @author Georg Fischer
*/
public class A170519 extends CoxeterSequence {
/** Construct the sequence. */
public A170519() {
super(
46,
30);
}
}
| [
"sean.irvine@realtimegenomics.com"
] | sean.irvine@realtimegenomics.com |
2b75ab309a4947bb1edc469de3245cba956744d2 | 698e2e259c13acf75c7c81809688c83b0f17a1ea | /.svn/pristine/1d/1d335b3ba54fc231ca25ec96bae66700e784ef45.svn-base | 06849ec3f931d4eee0ad3e192a3fb3708a6825e9 | [] | no_license | Ganeshmurthy1/TravelApiResource | 50789e80ccaf23be924e6de45e2b2d380fe1e09e | 83e4b1a79dba9607d768c56cb364cdace7e05bb6 | refs/heads/master | 2021-08-23T20:47:14.635194 | 2017-12-06T13:10:09 | 2017-12-06T13:10:09 | 113,316,827 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,960 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.08.09 at 04:51:51 PM IST
//
package com.tayyarah.api.hotel.travelguru.model;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for CompanyNamePrefType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="CompanyNamePrefType">
* <simpleContent>
* <extension base="<http://www.opentravel.org/OTA/2003/05>CompanyNameType">
* <attribute name="PreferLevel" type="{http://www.opentravel.org/OTA/2003/05}preferLevelType" />
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CompanyNamePrefType")
public class CompanyNamePrefType
extends CompanyNameType
implements Serializable
{
private final static long serialVersionUID = -1L;
@XmlAttribute(name = "PreferLevel")
protected PreferLevelType preferLevel;
/**
* Gets the value of the preferLevel property.
*
* @return
* possible object is
* {@link PreferLevelType }
*
*/
public PreferLevelType getPreferLevel() {
return preferLevel;
}
/**
* Sets the value of the preferLevel property.
*
* @param value
* allowed object is
* {@link PreferLevelType }
*
*/
public void setPreferLevel(PreferLevelType value) {
this.preferLevel = value;
}
}
| [
"ganeshmurthy.p@gmail.com"
] | ganeshmurthy.p@gmail.com | |
74c5c4566b06303160a255589a42c27fedb09830 | be73270af6be0a811bca4f1710dc6a038e4a8fd2 | /crash-reproduction-moho/results/XRENDERING-422-5-12-NSGA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/rendering/listener/chaining/AbstractChainingListener_ESTest.java | 3a305249966245d4b2cc80eeca083b651cfe82f5 | [] | no_license | STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application | cf118b23ecb87a8bf59643e42f7556b521d1f754 | 3bb39683f9c343b8ec94890a00b8f260d158dfe3 | refs/heads/master | 2022-07-29T14:44:00.774547 | 2020-08-10T15:14:49 | 2020-08-10T15:14:49 | 285,804,495 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 592 | java | /*
* This file was automatically generated by EvoSuite
* Thu Apr 02 13:44:17 UTC 2020
*/
package org.xwiki.rendering.listener.chaining;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class AbstractChainingListener_ESTest extends AbstractChainingListener_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
| [
"pouria.derakhshanfar@gmail.com"
] | pouria.derakhshanfar@gmail.com |
838fdc89b9b48b9e70d520c3dae84fd7ce7cbfe5 | c84088fed6a7b4f392810bb166e66dbfe3df4286 | /wp/src/main/java/com/github/wp/business/dao/custom/ContactDao.java | 76264d1cadfabaabc16ea5e71fa76b974609f860 | [] | no_license | 1Will/Work1 | 4c419b9013d2989c4bbe6721c155de609e5ce9b5 | 16e707588da13e9dede5f7de97ca53e15a7d5a78 | refs/heads/master | 2020-05-22T16:52:56.501596 | 2018-03-20T01:21:01 | 2018-03-20T01:21:01 | 84,697,600 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,052 | java | package com.github.wp.business.dao.custom;
import com.github.wp.business.pojo.custom.Bcontactarchives;
import com.github.wp.system.util.common.Pager;
import com.github.wp.system.util.common.Pagination;
/**
* <p>
* 联系人管理的dao层:杜鹏
* <p>
* Date: 08-03-16
* <p>
* Version: 1.0
*/
public interface ContactDao {
/**
* 查询分页数据
* @param Bcontactarchives
* @return
* @author 杜鹏
* @since 08-03-16
*/
public Pager<Bcontactarchives> findPage(Bcontactarchives contact, Pagination pagination);
/**
* @param id
* @return Bcontactarchives 部门
* @author dupeng
* @since 08-08-16
*/
public Bcontactarchives findOne(Long id);
/**
* @param Bcontactarchives
* @return Bcontactarchives 保存或新增
* @author dupeng
* @since 08-08-16
*/
public void saveOrUpdate(Bcontactarchives contact);
/**
* @param id
* @author 杜鹏
* @since 08-08-16
* 根据id得到Bcontactarchives对象,改变状态为D,保存,假删除
*/
public void deleteOne(Long[] ids);
}
| [
"287463504@qq.com"
] | 287463504@qq.com |
b530fa6be6475a1cf463ee30cc19e0ab7b68eaf8 | c188234d137d534a84b229c5e0e6009073a7a4ec | /ezyfox-server-core/src/main/java/com/tvd12/ezyfoxserver/request/EzySimpleAccessAppParams.java | dd461467174dde2bb5f800471aff1875cd464404 | [
"Apache-2.0"
] | permissive | youngmonkeys/ezyfox-server | c32c3104eaa5fdf629794467d4fb9f7a8f099423 | 4745bf71f8c2f29ef9ebbdc0572b42d9f870d650 | refs/heads/master | 2023-08-28T05:50:31.749559 | 2023-08-23T14:17:51 | 2023-08-23T14:17:51 | 81,928,197 | 476 | 87 | Apache-2.0 | 2023-08-23T14:17:53 | 2017-02-14T09:25:49 | Java | UTF-8 | Java | false | false | 655 | java | package com.tvd12.ezyfoxserver.request;
import com.tvd12.ezyfox.entity.EzyArray;
import com.tvd12.ezyfox.entity.EzyData;
import lombok.Getter;
@Getter
public class EzySimpleAccessAppParams
extends EzySimpleRequestParams
implements EzyAccessAppParams {
private static final long serialVersionUID = 2608977146720735187L;
protected String appName;
protected EzyData data;
@Override
public void deserialize(EzyArray t) {
this.appName = t.get(0, String.class);
this.data = t.get(1, EzyData.class, null);
}
@Override
public void release() {
super.release();
this.data = null;
}
}
| [
"itprono3@gmail.com"
] | itprono3@gmail.com |
c1f22f112900a51103d1c5f7cb583c94dce621bf | 57cdfcfdc7d4ff04c62754e684206185ac29c756 | /src/com/osp/ide/resource/model/ListControl.java | 2b45e5849ec35261aaa95b691df6167df4dc48b1 | [] | no_license | romanm11/bada-SDK-1.0.0-com.osp.ide.resource | 93eef3acb1584cd5c3d777b4bdd493cee6110fdd | c6d17b60ff13b3ac9312199c8068fe463bcebcb7 | refs/heads/master | 2021-01-01T05:47:58.675720 | 2010-10-27T18:58:28 | 2010-10-27T18:58:28 | 1,132,317 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,748 | java | package com.osp.ide.resource.model;
import com.osp.ide.resource.resinfo.LIST_INFO;
import com.osp.ide.resource.resinfo.Layout;
public class ListControl extends FrameNode {
public static final int LIST_DEFAULT_WIDTH = 300;
public static final int LIST_DEFAULT_HEIGHT = 90;
public static final int LIST_MIN_WIDTH = 81;
public static final int LIST_MIN_HEIGHT = 81;
public ListControl() {
super();
item = new LIST_INFO();
}
public ListControl(String name, LIST_INFO item) {
super(name, item);
}
public ListControl(Object scene, int mode) {
super(scene, mode);
item = new LIST_INFO();
}
public void setItem(LIST_INFO item) {
this.item = item;
}
public void setListItemFormat(int index) {
String oldText = ((LIST_INFO) item).ListItemFormat;
((LIST_INFO) item).ListItemFormat = cszListItemFormat[index];
firePropertyChange(PROPERTY_LISTITEMFORMAT, oldText,
cszListItemFormat[index]);
}
public void setLine1Height(int height) {
int oldHeight = ((LIST_INFO) item).line1Height;
((LIST_INFO) item).line1Height = height;
firePropertyChange(PROPERTY_LINE1HEIGHT, oldHeight,
height);
}
public int getLine1Height() {
return ((LIST_INFO) item).line1Height;
}
public void setLine2Height(int value) {
int oldHeight = ((LIST_INFO) item).line2Height;
((LIST_INFO) item).line2Height = value;
firePropertyChange(PROPERTY_LINE2HEIGHT, oldHeight,
value);
}
public int getLine2Height() {
return ((LIST_INFO) item).line2Height;
}
public void setColume1Width(int width) {
int oldWidth = ((LIST_INFO) item).colume1Width;
((LIST_INFO) item).colume1Width = width;
firePropertyChange(PROPERTY_COLUME1WIDTH, oldWidth,
width);
}
public int getColume1Width() {
return ((LIST_INFO) item).colume1Width;
}
public void setColume2Width(int value) {
int oldWidth = ((LIST_INFO) item).colume2Width;
((LIST_INFO) item).colume2Width = value;
firePropertyChange(PROPERTY_COLUME2WIDTH, oldWidth,
value);
}
public int getColume2Width() {
return ((LIST_INFO) item).colume2Width;
}
public void setTextColor(String textColor) {
String oldColor = ((LIST_INFO) item).colorOfEmptyListText;
((LIST_INFO) item).colorOfEmptyListText = textColor;
firePropertyChange(PROPERTY_COLOROFEMPTYLISTTEXT, oldColor,
textColor);
}
/**
* @return
*/
public String getTextColor() {
return ((LIST_INFO) item).colorOfEmptyListText;
}
public void setTextOfEmptyList(String text) {
String oldText = ((LIST_INFO) item).textOfEmptyList;
((LIST_INFO) item).textOfEmptyList = text;
firePropertyChange(PROPERTY_TEXTOFEMPTYLIST, oldText, text);
}
public String getTextOfEmptyList() {
return ((LIST_INFO) item).textOfEmptyList;
}
public void setListItemFormat(String ListItemFormat) {
String oldText = ((LIST_INFO) item).ListItemFormat;
((LIST_INFO) item).ListItemFormat = ListItemFormat;
firePropertyChange(PROPERTY_LISTITEMFORMAT, oldText,
ListItemFormat);
}
public String getListItemFormat() {
return ((LIST_INFO) item).ListItemFormat;
}
public LIST_INFO getItem() {
return (LIST_INFO) this.item;
}
@Override
public Object clone() throws CloneNotSupportedException {
int mode = getModeIndex();
ListControl listctl = new ListControl(getParent().getDocuments(), mode);
listctl.parent = getParent();
listctl.setCopyItem((LIST_INFO) this.item);
return listctl;
}
@Override
public void setLayout(Layout newLayout) {
newLayout = getSuitableLayout(newLayout);
if(newLayout != null)
super.setLayout(newLayout);
}
}
| [
"rom@garay.(none)"
] | rom@garay.(none) |
b5adefe53b74b3d0977f69df8261ffd13bde4bd8 | 1074bab9d2c1d74653ae42fe0acaaf727f3173d7 | /src/main/java/org/artags/android/app/tv/ui/fastlane/DetailsDescriptionPresenter.java | 74c574543520bd0f9b008e71d2f553521aeaaa40 | [] | no_license | ARTags/artags-android-tv | b2402c86eee20e6b86c4259bbcfc7e4e37b62f60 | c4e54518f4cffefde701f420f0b37b1f4d8ae55c | refs/heads/master | 2021-01-21T21:47:14.302316 | 2015-11-22T22:44:07 | 2015-11-22T22:44:07 | 45,803,117 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,008 | java | /* Copyright (c) 2010-2015 ARTags Project owners (see http://www.artags.org)
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.artags.android.app.tv.ui.fastlane;
import android.content.Context;
import android.support.v17.leanback.widget.AbstractDetailsDescriptionPresenter;
import android.util.Log;
import org.artags.android.app.tv.R;
import org.artags.android.app.tv.model.Tag;
/**
* DetailsDescriptionPresenter
*/
public class DetailsDescriptionPresenter extends AbstractDetailsDescriptionPresenter {
private final Context mContext;
private DetailsDescriptionPresenter() {
super();
this.mContext = null;
}
public DetailsDescriptionPresenter(Context ctx) {
super();
this.mContext = ctx;
}
@Override
protected void onBindDescription(ViewHolder viewHolder, Object item) {
Tag tag = (Tag) item;
if (tag != null) {
Log.d("DetailsDescriptionPresenter", String.format("%s, %s, %s", tag.getTitle(), tag.getThumbUrl(), tag.getDescription()));
viewHolder.getTitle().setText(tag.getTitle());
viewHolder.getSubtitle().setText( mContext.getString(R.string.rating) + ": "
+ tag.getRating() + " - " + mContext.getString(R.string.date) +": " + tag.getDate() );
viewHolder.getBody().setText(tag.getDescription());
}
}
}
| [
"pierrelevy@users.noreply.github.com"
] | pierrelevy@users.noreply.github.com |
00bddbd3bdec4a042917190b6b43192cc5409267 | 8f39e073261112e6e3047fbdb34a6a210487780e | /hzz_core/src/main/java/com/saili/hzz/demo/entity/JformOrderMainEntity.java | 0297dd69b62a962ea14445ab32d0d2151f2bff13 | [] | no_license | fisher-hub/hzz | 4c88846a8d6168027c490331c94a686ccfe08b46 | 0be1569e517c865cf265d6ff0908cf8e1b1b6973 | refs/heads/master | 2020-12-10T06:49:48.892278 | 2019-11-05T01:10:18 | 2019-11-05T01:10:18 | 233,527,357 | 1 | 1 | null | 2020-01-13T06:32:55 | 2020-01-13T06:32:54 | null | UTF-8 | Java | false | false | 3,493 | java | package com.saili.hzz.demo.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
* @Title: Entity
* @Description: 订单主信息
* @author onlineGenerator
* @date 2017-09-17 11:49:08
* @version V1.0
*
*/
@Entity
@Table(name = "jform_order_main", schema = "")
@SuppressWarnings("serial")
public class JformOrderMainEntity implements java.io.Serializable {
/**主键*/
private java.lang.String id;
/**订单号*/
@Excel(name="订单号",width=15)
private java.lang.String orderCode;
/**订单日期*/
@Excel(name="订单日期",width=15,format = "yyyy-MM-dd")
private java.util.Date orderDate;
/**订单金额*/
@Excel(name="订单金额",width=15)
private java.lang.Double orderMoney;
/**备注*/
@Excel(name="备注",width=15)
private java.lang.String content;
/**订单扫描件*/
@Excel(name="订单扫描件",width=15,dicCode="sex")
private java.lang.String ctype;
/**
*方法: 取得java.lang.String
*@return: java.lang.String 主键
*/
@Id
@GeneratedValue(generator = "paymentableGenerator")
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
@Column(name ="ID",nullable=false,length=36)
public java.lang.String getId(){
return this.id;
}
/**
*方法: 设置java.lang.String
*@param: java.lang.String 主键
*/
public void setId(java.lang.String id){
this.id = id;
}
/**
*方法: 取得java.lang.String
*@return: java.lang.String 订单号
*/
@Column(name ="ORDER_CODE",nullable=true,length=50)
public java.lang.String getOrderCode(){
return this.orderCode;
}
/**
*方法: 设置java.lang.String
*@param: java.lang.String 订单号
*/
public void setOrderCode(java.lang.String orderCode){
this.orderCode = orderCode;
}
/**
*方法: 取得java.util.Date
*@return: java.util.Date 订单日期
*/
@Column(name ="ORDER_DATE",nullable=true,length=20)
public java.util.Date getOrderDate(){
return this.orderDate;
}
/**
*方法: 设置java.util.Date
*@param: java.util.Date 订单日期
*/
public void setOrderDate(java.util.Date orderDate){
this.orderDate = orderDate;
}
/**
*方法: 取得java.lang.Double
*@return: java.lang.Double 订单金额
*/
@Column(name ="ORDER_MONEY",nullable=true,scale=3,length=10)
public java.lang.Double getOrderMoney(){
return this.orderMoney;
}
/**
*方法: 设置java.lang.Double
*@param: java.lang.Double 订单金额
*/
public void setOrderMoney(java.lang.Double orderMoney){
this.orderMoney = orderMoney;
}
/**
*方法: 取得java.lang.String
*@return: java.lang.String 备注
*/
@Column(name ="CONTENT",nullable=true,length=500)
public java.lang.String getContent(){
return this.content;
}
/**
*方法: 设置java.lang.String
*@param: java.lang.String 备注
*/
public void setContent(java.lang.String content){
this.content = content;
}
/**
*方法: 取得java.lang.String
*@return: java.lang.String 订单扫描件
*/
@Column(name ="CTYPE",nullable=true,length=500)
public java.lang.String getCtype(){
return this.ctype;
}
/**
*方法: 设置java.lang.String
*@param: java.lang.String 订单扫描件
*/
public void setCtype(java.lang.String ctype){
this.ctype = ctype;
}
}
| [
"whuab_mc@163.com"
] | whuab_mc@163.com |
edce02a45bffa844703f031fee30fba464e3ffe2 | a4f1a8877c721c4275cb4d945abeb5da508792e3 | /utterVoiceCommandsBETA_source_from_JADX/org/ispeech/core/ASREngine.java | 7a31beebf304e5e5f511fddc7d983d0755dc04fa | [] | no_license | coolchirag/androidRepez | 36e686d0b2349fa823d810323034a20e58c75e6a | 8d133ed7c523bf15670535dc8ba52556add130d9 | refs/heads/master | 2020-03-19T14:23:46.698124 | 2018-06-13T14:01:34 | 2018-06-13T14:01:34 | 136,620,480 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,985 | java | package org.ispeech.core;
import android.util.Log;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpUriRequest;
import org.apache.http.entity.ByteArrayEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;
import org.ispeech.tools.HttpUtils;
import org.ispeech.tools.SerializableHashTable;
import org.ispeech.tools.Utilities;
public class ASREngine {
private static final String TAG = ASREngine.class.getSimpleName();
private static volatile ASREngine instance;
private String apikey;
private SerializableHashTable meta = new SerializableHashTable();
private String url;
private String voiceType;
public enum AudioType {
AMR("audio/amr"),
MPEG("audio/mpeg");
private final String contentType;
private AudioType(String str) {
this.contentType = str;
}
public final String getContentType() {
return this.contentType;
}
}
private ASREngine(String str, String str2) {
this.apikey = str2;
this.url = str;
}
public static ASREngine getInstance(String str, String str2) {
if (instance == null) {
instance = new ASREngine(str, str2);
}
return instance;
}
public void addMeta(String str, String str2) {
this.meta.put(str, str2);
}
public String recognize(byte[] bArr, AudioType audioType) {
List copyOnWriteArrayList = new CopyOnWriteArrayList();
copyOnWriteArrayList.add(new BasicNameValuePair(HttpRequestParams.APIKEY, this.apikey));
copyOnWriteArrayList.add(new BasicNameValuePair(HttpRequestParams.CONTENTTYPE, audioType.getContentType()));
copyOnWriteArrayList.add(new BasicNameValuePair(HttpRequestParams.DEVICE, HttpRequestParams.DEVICE_ANDROID));
copyOnWriteArrayList.add(new BasicNameValuePair(HttpRequestParams.ACTION, HttpRequestParams.ACTION_RECOGNIZE));
if (this.voiceType != null) {
copyOnWriteArrayList.add(new BasicNameValuePair(HttpRequestParams.VOICE, this.voiceType));
}
if (this.meta != null) {
copyOnWriteArrayList.add(new BasicNameValuePair(HttpRequestParams.META, new String(Utilities.encodeBase64(this.meta.serialize()))));
}
String addParamsToUrl = HttpUtils.addParamsToUrl(this.url, copyOnWriteArrayList);
Log.d(TAG, addParamsToUrl);
HttpClient defaultHttpClient = new DefaultHttpClient();
HttpUriRequest httpPost = new HttpPost(addParamsToUrl);
httpPost.setEntity(new ByteArrayEntity(bArr));
return (String) HttpUtils.parseNameValuePairEntity(defaultHttpClient.execute(httpPost).getEntity()).get("result");
}
public void setVoice(String str) {
this.voiceType = str;
}
}
| [
"j.chirag5555@gmail.com"
] | j.chirag5555@gmail.com |
88c3dc4e5d04ed83183533e01e72640b36b1e527 | 6a0fdba1c7ee86ba4290c1cacaf31a9a23ad1b41 | /corgi-proxy-api/src/test/java/com/github/test/registry/corgi/client/CorgiFrameworkTest.java | c495532c742b7add2300884b53fd53377d841b45 | [
"Apache-2.0"
] | permissive | yangziwen/corgi-proxy | bdb516cf9f69a49da08200132da2431b251c9f3b | cfb55b1037ed62ea7c5c071f7a6bc4dd13d8f94e | refs/heads/master | 2022-10-22T21:35:33.651263 | 2019-08-31T12:39:46 | 2019-08-31T12:39:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,204 | java | /*
* Copyright 2019-2119 gao_xianglong@sina.com
*
* 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.github.test.registry.corgi.client;
import com.github.registry.corgi.client.CorgiCommands;
import com.github.registry.corgi.client.CorgiFramework;
import com.github.registry.corgi.client.HostAndPort;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.concurrent.atomic.AtomicInteger;
/**
* @author gao_xianglong@sina.com
* @version 0.1-SNAPSHOT
* @date created in 2019-06-18 00:42
*/
public class CorgiFrameworkTest {
private Logger log = LoggerFactory.getLogger(CorgiFrameworkTest.class);
@Test
public void testConnection() {
AtomicInteger num = new AtomicInteger();
// CorgiFramework framework = new CorgiFramework.Builder(Arrays.asList(new HostAndPort("127.0.0.1", 9376), new HostAndPort("127.0.0.1", 9378), new HostAndPort("127.0.0.1", 9377))).
// serialization(CorgiFramework.SerializationType.FST).isBatch(true).pullTimeOut(5000).pullSize(10).builder().init();
CorgiFramework framework = new CorgiFramework.Builder(new HostAndPort("127.0.0.1", 9376)).
serialization(CorgiFramework.SerializationType.FST).pullTimeOut(5000).pullSize(2).builder().init();
for (int i = 0; i < 20; i++) {
log.info("result:{}", framework.register("/dubbo/com.gxl.test.service.user.UserService/providers",
String.valueOf(num.incrementAndGet())));
}
// new Thread(() -> {
// while (true) {
// try {
// CorgiCommands.NodeBo nodeBo = framework.subscribe("/dubbo/com.github.registry.corgi.service.ServiceB/providers");
// if (null != nodeBo) {
// log.info("a:{}", nodeBo.toString());
// }
// } catch (Exception e) {
// //...
// }
// }
// }).start();
new Thread(() -> {
while (true) {
try {
CorgiCommands.NodeBo nodeBo = framework.subscribe("/dubbo/com.gxl.test.service.user.UserService/providers");
if (null == nodeBo || (null == nodeBo.getPlusNodes() && null == nodeBo.getReducesNodes())) {
continue;
}
log.info("b:{}", nodeBo.toString());
} catch (Exception e) {
//...
}
}
}).start();
try {
System.in.read();
} catch (Exception e) {
e.printStackTrace();
}
//framework.close();
}
}
| [
"gao_xianglong@sina.com"
] | gao_xianglong@sina.com |
efc5a32fded9582ed720c0fbe24cbc172a1ff6f2 | 317cb53f7429e128c2c9fcdce2d61624ed231b64 | /weixin4j-mp/src/test/java/com/foxinmy/weixin4j/mp/test/QRTest.java | 7495100e5de37e032ffcc6c9608e2db0af2351f5 | [
"MIT"
] | permissive | feiyu2016/weixin4j | e16302379abc040b9a13570c4d9512d71e7b3e27 | 0427716348c1aa522742375f4e7a5fa1bfae8f92 | refs/heads/master | 2021-05-28T17:55:28.883248 | 2014-10-27T13:19:49 | 2014-10-27T13:19:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,063 | java | package com.foxinmy.weixin4j.mp.test;
import java.io.File;
import java.io.IOException;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.foxinmy.weixin4j.exception.WeixinException;
import com.foxinmy.weixin4j.mp.api.QrApi;
import com.foxinmy.weixin4j.mp.model.QRParameter;
import com.foxinmy.weixin4j.mp.model.QRParameter.QRType;
/**
* 二维码相关测试
*
* @className QRTest
* @author jy.hu
* @date 2014年4月10日
* @since JDK 1.7
*/
public class QRTest extends TokenTest {
private QrApi qrApi;
@Before
public void init() {
qrApi = new QrApi(tokenApi);
}
@Test
public void temp_qr() throws WeixinException, IOException {
QRParameter qr = new QRParameter(1200, QRType.TEMPORARY, 2);
File file = qrApi.getQR(qr);
Assert.assertTrue(file.exists());
}
@Test
public void forever_qr() throws WeixinException, IOException {
QRParameter qr = new QRParameter(QRType.PERMANENCE, 1);
File file = qrApi.getQR(qr);
Assert.assertTrue(file.exists());
}
}
| [
"foxinmy@gmail.com"
] | foxinmy@gmail.com |
69c7f5b037583e3c310cdab6def963dd907563b5 | 7a2544ccc3e3e07a7a2f55e5ca51633d06a29f0c | /src/main/java/edu/uiowa/slis/BIBFRAME/NotatedMusic/NotatedMusicAccompanies.java | 491a237e9569a0a58f8b8efc9c169e62ef6817ce | [] | no_license | eichmann/BIBFRAMETagLib | bf3ddf103e1010dab4acdb034f7d037fa0419f9d | 816e96a0e55e5f67688ba238e623e13daba92d61 | refs/heads/master | 2021-12-28T00:04:14.171163 | 2020-01-20T17:44:33 | 2020-01-20T17:44:33 | 135,755,642 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,026 | java | package edu.uiowa.slis.BIBFRAME.NotatedMusic;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
@SuppressWarnings("serial")
public class NotatedMusicAccompanies extends edu.uiowa.slis.BIBFRAME.TagLibSupport {
static NotatedMusicAccompanies currentInstance = null;
private static final Log log = LogFactory.getLog(NotatedMusicAccompanies.class);
// object property
public int doStartTag() throws JspException {
try {
NotatedMusicAccompaniesIterator theNotatedMusicAccompaniesIterator = (NotatedMusicAccompaniesIterator)findAncestorWithClass(this, NotatedMusicAccompaniesIterator.class);
pageContext.getOut().print(theNotatedMusicAccompaniesIterator.getAccompanies());
} catch (Exception e) {
log.error("Can't find enclosing NotatedMusic for accompanies tag ", e);
throw new JspTagException("Error: Can't find enclosing NotatedMusic for accompanies tag ");
}
return SKIP_BODY;
}
}
| [
"david-eichmann@uiowa.edu"
] | david-eichmann@uiowa.edu |
186c1caa5350056f5ac45f9dae9fd6fdb1e48cf3 | 69011b4a6233db48e56db40bc8a140f0dd721d62 | /src/com/jshx/zybfb/dao/JshxZybfbDao.java | 94624c7c6d81915783b9276ac5a18d9b78463452 | [] | no_license | gechenrun/scysuper | bc5397e5220ee42dae5012a0efd23397c8c5cda0 | e706d287700ff11d289c16f118ce7e47f7f9b154 | refs/heads/master | 2020-03-23T19:06:43.185061 | 2018-06-10T07:51:18 | 2018-06-10T07:51:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,132 | java | package com.jshx.zybfb.dao;
import java.util.List;
import java.util.Map;
import com.jshx.core.base.dao.BaseDao;
import com.jshx.core.base.vo.Pagination;
import com.jshx.zybfb.entity.JshxZybfb;
public interface JshxZybfbDao extends BaseDao
{
/**
* 分页查询
* @param page 分页信息
* @param paraMap 查询条件信息
* @return 分页信息
*/
public Pagination findByPage(Pagination page, Map<String, Object> paraMap);
/**
* 查询所有记录
* @param page 分页信息
* @param paraMap 查询条件信息
* @return 分页信息
*/
public List findJshxZybfb(Map<String, Object> paraMap);
/**
* 根据主键ID查询信息
* @param id 主键ID
* @return 主键ID对应的信息
*/
public JshxZybfb getById(String id);
/**
* 保存信息
* @param model 信息
*/
public void save(JshxZybfb model);
/**
* 修改信息
* @param model 信息
*/
public void update(JshxZybfb model);
/**
* 物理删除信息
* @param ids 主键ID
*/
public void delete(String id);
/**
* 逻辑删除信息
* @param ids 主键ID
*/
public void deleteWithFlag(String id);
}
| [
"shellchange@sina.com"
] | shellchange@sina.com |
4d9edbac5766be21aadb6b99f1737a287cbb261e | c4a8a89aca8a50cbb81c2255c8e33215827e5d55 | /backup/egakat-integration-config/src/main/java/com/egakat/integration/config/archivos/service/impl/TipoArchivoCrudServiceImpl.java | bfa02e05edec3843a92fe02730e5580c75f1540b | [] | no_license | github-ek/egakat-integration | 5dba020e97d2530471152e3580418e0f6d2d2f62 | d451bf5da61c15d89df71d36a7af7dd8167b6ee9 | refs/heads/master | 2022-07-13T13:43:21.010260 | 2019-09-23T04:00:29 | 2019-09-23T04:00:29 | 136,370,505 | 1 | 1 | null | 2022-06-28T15:22:36 | 2018-06-06T18:31:59 | Java | UTF-8 | Java | false | false | 3,718 | java | package com.egakat.integration.config.archivos.service.impl;
import static java.util.stream.Collectors.toList;
import java.util.Comparator;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.egakat.core.services.crud.impl.CrudServiceImpl;
import com.egakat.integration.config.archivos.domain.TipoArchivo;
import com.egakat.integration.config.archivos.dto.TipoArchivoDto;
import com.egakat.integration.config.archivos.repository.GrupoTipoArchivoRepository;
import com.egakat.integration.config.archivos.repository.TipoArchivoRepository;
import com.egakat.integration.config.archivos.service.api.TipoArchivoCrudService;
import lombok.val;
@Service
public class TipoArchivoCrudServiceImpl extends CrudServiceImpl<TipoArchivo, TipoArchivoDto, Long>
implements TipoArchivoCrudService {
@Autowired
private TipoArchivoRepository repository;
@Autowired
private GrupoTipoArchivoRepository grupoTipoArchivorepository;
@Override
protected TipoArchivoRepository getRepository() {
return repository;
}
@Override
protected TipoArchivoDto asModel(TipoArchivo entity) {
val result = newModel();
mapModel(entity, result);
result.setIdGrupoTipoArchivo(entity.getGrupoTipoArchivo().getId());
result.setCodigo(entity.getCodigo());
result.setNombre(entity.getNombre());
result.setDescripcion(entity.getDescripcion());
result.setSeparadorRegistros(entity.getSeparadorRegistros());
result.setSeparadorCampos(entity.getSeparadorCampos());
result.setAplicacion(entity.getAplicacion());
result.setOrdinal(entity.getOrdinal());
result.setActivo(entity.isActivo());
return result;
}
@Override
protected TipoArchivoDto newModel() {
return new TipoArchivoDto();
}
@Override
protected TipoArchivo mergeEntity(TipoArchivoDto model, TipoArchivo entity) {
val grupoTipoArchivo = grupoTipoArchivorepository.getOne(model.getIdGrupoTipoArchivo());
entity.setGrupoTipoArchivo(grupoTipoArchivo);
entity.setCodigo(model.getCodigo());
entity.setNombre(model.getNombre());
entity.setDescripcion(model.getDescripcion());
entity.setSeparadorRegistros(model.getSeparadorRegistros());
entity.setSeparadorCampos(model.getSeparadorCampos());
entity.setAplicacion(model.getAplicacion());
entity.setOrdinal(model.getOrdinal());
entity.setActivo(model.isActivo());
return entity;
}
@Override
protected TipoArchivo newEntity() {
return new TipoArchivo();
}
// -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@Override
public Optional<TipoArchivoDto> findByCodigo(String codigo) {
val optional = getRepository().findByCodigo(codigo);
val result = asModel(optional);
return result;
}
@Override
public List<TipoArchivoDto> findAllByGrupoTipoArchivoId(long grupoTipoArchivo) {
val entities = getRepository().findAllByGrupoTipoArchivoId(grupoTipoArchivo);
val result = asModels(entities);
return result;
}
// -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@Override
public List<TipoArchivoDto> findAllByAplicacion(String aplicacion) {
val comparator = Comparator.comparing(TipoArchivoDto::getIdGrupoTipoArchivo)
.thenComparing(TipoArchivoDto::getCodigo);
val entities = getRepository().findAllByAplicacionAndActivo(aplicacion, true);
val result = asModels(entities).stream().sorted(comparator).collect(toList());
return result;
}
}
| [
"esb.ega.kat@gmail.com"
] | esb.ega.kat@gmail.com |
5994cc3bdf77190f1c5042f1094b468d4b918b64 | 5d5cf83245936993f0f84321774fcf683957aed6 | /jbpm-services/executor-services/src/test/java/org/jbpm/executor/NoCDIWithFactorySimpleExecutorTest.java | 77f368a572ea7704d5fcc7a1667dddc23dd4eff0 | [] | no_license | Agilone/jbpm | 92d6c1a9adcba399aef48203c66e10678bfcd113 | 6f81d8eea5027aca84a2dcd7b8dc273d4de2ecb1 | refs/heads/master | 2021-01-15T19:27:29.056525 | 2013-03-25T11:44:52 | 2013-03-25T11:44:52 | 9,004,922 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,755 | java | /*
* Copyright 2013 JBoss by Red Hat.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jbpm.executor;
import java.util.logging.LogManager;
import java.util.logging.Logger;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import org.jbpm.executor.events.listeners.DefaultExecutorEventListener;
import org.junit.After;
import org.junit.Before;
/**
*
* @author salaboy
*/
public class NoCDIWithFactorySimpleExecutorTest extends BasicExecutorBaseTest{
public NoCDIWithFactorySimpleExecutorTest() {
}
@Before
public void setUp() {
EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.executor");
Logger logger = LogManager.getLogManager().getLogger("");
ExecutorServiceFactory.setEmf(emf);
executorService = ExecutorServiceFactory.newExecutorService();
DefaultExecutorEventListener eventListener = new DefaultExecutorEventListener();
eventListener.setLogger(logger);
executorService.registerExecutorEventListener(eventListener);
super.setUp();
}
@After
public void tearDown() {
super.tearDown();
}
} | [
"salaboy@gmail.com"
] | salaboy@gmail.com |
188b322e6e73f6f8df9073ab6b1bbfaee83fc0ce | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/4/4_e84933c27a4a43e05e66262585a1df190e0eb88d/R/4_e84933c27a4a43e05e66262585a1df190e0eb88d_R_t.java | fb0ec2e1bbb46a4444a28c8dd2a19494de705410 | [] | 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,564 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package edu.caltech.cs141b.hw5.android;
public final class R {
public static final class attr {
}
public static final class drawable {
public static final int dialog_full_dark=0x7f020000;
public static final int ic_launcher=0x7f020001;
public static final int ic_menu_refresh=0x7f020002;
}
public static final class id {
public static final int content=0x7f060001;
public static final int docList=0x7f060005;
public static final int lockDoc=0x7f060006;
public static final int newDoc=0x7f060002;
public static final int refresh=0x7f060007;
public static final int refreshList=0x7f060003;
public static final int saveDoc=0x7f060004;
public static final int title=0x7f060000;
}
public static final class layout {
public static final int listgui=0x7f030000;
public static final int main=0x7f030001;
}
public static final class menu {
public static final int listmenu=0x7f050000;
public static final int lockedmenu=0x7f050001;
public static final int unlockedmenu=0x7f050002;
}
public static final class string {
public static final int Title=0x7f040002;
public static final int app_name=0x7f040001;
public static final int hello=0x7f040000;
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
fca805f6e153a0bd6269bd04f0b5819f54ab8d6e | 40d0b695cbd08d882c42d38f30d0ddaab21f0252 | /wk-framework/src/main/java/cn/wizzer/framework/shiro/pam/AnySuccessfulStrategy.java | 6b4bf34e0cf8a58cc6d088772167f8c46457f78b | [
"Apache-2.0"
] | permissive | JoeQiao666/medical_waste_server | 51e88fd07445b576ddbff3dd0db7f718a471686f | 212a45fbdcf680ce866a090196ee00f0e1e6e1ef | refs/heads/master | 2022-11-26T05:27:57.743097 | 2019-09-25T14:10:31 | 2019-09-25T14:10:31 | 209,322,430 | 1 | 2 | Apache-2.0 | 2022-11-16T06:54:56 | 2019-09-18T13:58:54 | JavaScript | UTF-8 | Java | false | false | 3,920 | 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 cn.wizzer.framework.shiro.pam;
import cn.wizzer.framework.shiro.exception.CaptchaEmptyException;
import cn.wizzer.framework.shiro.exception.CaptchaIncorrectException;
import org.apache.shiro.authc.*;
import org.apache.shiro.authc.pam.AbstractAuthenticationStrategy;
import org.apache.shiro.realm.Realm;
import org.nutz.lang.Lang;
import java.util.Collection;
public class AnySuccessfulStrategy extends AbstractAuthenticationStrategy {
/**
* Returns {@code null} immediately, relying on this class's {@link #merge
* merge} implementation to return only the first {@code info} object it
* encounters, ignoring all subsequent ones.
*/
public AuthenticationInfo beforeAllAttempts(Collection<? extends Realm> realms, AuthenticationToken token) throws AuthenticationException {
return null;
}
/**
* Returns the specified {@code aggregate} instance if is non null and valid
* (that is, has principals and they are not empty) immediately, or, if it
* is null or not valid, the {@code info} argument is returned instead.
* <p/>
* This logic ensures that the first valid info encountered is the one
* retained and all subsequent ones are ignored, since this strategy
* mandates that only the info from the first successfully authenticated
* realm be used.
*/
protected AuthenticationInfo merge(AuthenticationInfo info, AuthenticationInfo aggregate) {
if (aggregate != null && !Lang.isEmpty(aggregate.getPrincipals())) {
return aggregate;
}
return info != null ? info : aggregate;
}
@Override
public AuthenticationInfo afterAttempt(Realm realm, AuthenticationToken token, AuthenticationInfo singleRealmInfo, AuthenticationInfo aggregateInfo, Throwable t) throws AuthenticationException {
if (singleRealmInfo == null) {
if (t.getClass().isAssignableFrom(CaptchaIncorrectException.class)) {
throw Lang.makeThrow(CaptchaIncorrectException.class, t.getMessage());
} else if (t.getClass().isAssignableFrom(CaptchaEmptyException.class)) {
throw Lang.makeThrow(CaptchaEmptyException.class, t.getMessage());
} else if (t.getClass().isAssignableFrom(LockedAccountException.class)) {
throw Lang.makeThrow(LockedAccountException.class, t.getMessage());
} else if (t.getClass().isAssignableFrom(UnknownAccountException.class)) {
throw Lang.makeThrow(UnknownAccountException.class, t.getMessage());
} else if (t.getClass().isAssignableFrom(IncorrectCredentialsException.class)) {
throw Lang.makeThrow(IncorrectCredentialsException.class, t.getMessage());
} else if (t.getClass().isAssignableFrom(ExcessiveAttemptsException.class)) {
throw Lang.makeThrow(ExcessiveAttemptsException.class, t.getMessage());
}
throw Lang.makeThrow(AuthenticationException.class, t.getMessage());
}
return super.afterAttempt(realm, token, singleRealmInfo, aggregateInfo, t);
}
}
| [
"chenlingzhi39@gmail.com"
] | chenlingzhi39@gmail.com |
b706ef8a72f1ed176894f4dfc04d66b54889d315 | bcd4762b1961dfa3cdebe8d24ab20760eb1a9732 | /phloc-appbasics/src/main/java/com/phloc/appbasics/auth/token/IAuthToken.java | 4c465c5c0a77c35f75f4e1846288a982b1dc37c9 | [] | no_license | phlocbg/phloc-webbasics | 4d7d773f7d8fc90349432982e647d66aa2b322b8 | c1a4c5ffab91c89abf27e080601b509061e9cf47 | refs/heads/master | 2023-07-20T01:39:32.772637 | 2023-07-14T16:23:00 | 2023-07-14T16:23:00 | 41,255,519 | 0 | 0 | null | 2022-12-06T00:05:48 | 2015-08-23T15:42:00 | Java | UTF-8 | Java | false | false | 1,939 | java | /**
* Copyright (C) 2006-2014 phloc systems
* http://www.phloc.com
* office[at]phloc[dot]com
*
* 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.phloc.appbasics.auth.token;
import javax.annotation.Nonnull;
import org.joda.time.DateTime;
import com.phloc.appbasics.auth.identify.IAuthIdentification;
import com.phloc.commons.id.IHasID;
/**
* Interface for an auth token.
*
* @author Philip Helger
*/
public interface IAuthToken extends IHasID <String>
{
/**
* @return The secret key token representing a session of a subject. Never
* <code>null</code>.
*/
@Nonnull
String getID ();
/**
* @return The underlying identification object. Never <code>null</code>.
*/
@Nonnull
IAuthIdentification getIdentification ();
/**
* @return The date and time when the token was created. Never
* <code>null</code>.
*/
@Nonnull
DateTime getCreationDate ();
/**
* @return The date and time when the token was last accessed. If the token
* was never accessed before, the creation date time is returned.
* Never <code>null</code>.
*/
@Nonnull
DateTime getLastAccessDate ();
/**
* Check if the token is expired. Expired tokens are considered invalid.
*
* @return <code>true</code> if the token is already expired.
*/
boolean isExpired ();
}
| [
"ph@phloc.com@224af017-8982-1a56-601f-39e8d6e75726"
] | ph@phloc.com@224af017-8982-1a56-601f-39e8d6e75726 |
b33917881da7344286815551508c25d84d488d11 | 68a109ab86010021871a62d69c9c009987488d05 | /packages_and_access_levels/app3/src/aptech/I.java | 360bb91c1a7e37132c3df9989e8ddf29bdbb842f | [] | no_license | Vijay-Ky/8BFSD | c881ea60f179ebb7f4c79f6da931003af379904a | 6d6f6c3e63d92c6234006d24af3bf5682ee36712 | refs/heads/main | 2023-06-23T19:16:42.379675 | 2021-07-26T16:08:22 | 2021-07-26T16:08:22 | 342,541,161 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 153 | java | package aptech;
class I extends H
{
public static void main(String[] args)
{
I i1 = new I();
i1.test1();
System.out.println("Hello World!");
}
} | [
"vijayky007@gmail.com"
] | vijayky007@gmail.com |
dc1b1df89fde2fbe07fd2c929d95ab2f8bef41a0 | 460db6d94ccb7a3946ea5587d0cf1f593f6c0c19 | /JANE_DebugService/lu/uni/jane/debug/gui/PackageFilterTablePane.java | a2b6e84e774c143f82a69426741696386f75d7f5 | [] | no_license | tobiaskalmes/MobileComputingJANE | 60d7cba55097ea9ba918039192c8ecde713bbc63 | 54cb6b6fc14a37b6822efaf856f7812870ddec5e | refs/heads/master | 2021-01-20T11:40:55.461841 | 2013-08-10T20:14:12 | 2013-08-10T20:14:12 | 11,000,185 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,680 | java | /**
*
*/
package lu.uni.jane.debug.gui;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.util.Vector;
import javax.swing.JPanel;
import javax.swing.JScrollBar;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;
import javax.swing.table.TableColumn;
import lu.uni.jane.debug.service.DebugGlobalService;
import lu.uni.jane.debug.util.DebugMessage;
import lu.uni.jane.debug.util.FilterItem;
/**
* @author adrian.andronache
*
*/
public class PackageFilterTablePane extends JPanel
{
protected JScrollPane scrollPane;
protected JTable table;
protected PackageFilterTableModel model;
protected DebugGlobalService debugService;
public PackageFilterTablePane( DebugGlobalService debugService, ClassFilterTableModel classmodel )
{
super( false );
this.debugService = debugService;
model = new PackageFilterTableModel( debugService, classmodel );
table = new JTable( model );
model.addTableModelListener( table );
// set the columns width
TableColumn column = null;
// index
column = table.getColumnModel().getColumn( 0 );
column.setPreferredWidth( 50 );
// class name
column = table.getColumnModel().getColumn( 1 );
column.setPreferredWidth( 550 );
scrollPane = new JScrollPane( table );
// set the pane size = sum(colums.size)
scrollPane.setPreferredSize( new Dimension( 600, 150 ) );
//Add the scroll pane to this panel.
setLayout( new GridLayout(1, 0) );
add( scrollPane );
}
// used to notify the model that an row was added
public void addedRow( int index )
{
model.addedRow( index );
}
}
| [
"tobiaskalmes@gmail.com"
] | tobiaskalmes@gmail.com |
01dab04903067ee6d9695d84b75ff883c88a432c | 447520f40e82a060368a0802a391697bc00be96f | /apks/playstore_apps/com_ubercab/source/flk.java | e0ffad034e0e9bf65ee4b78ea7855640df0ebe30 | [
"Apache-2.0",
"GPL-1.0-or-later"
] | permissive | iantal/AndroidPermissions | 7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465 | d623b732734243590b5f004d167e542e2e2ae249 | refs/heads/master | 2023-07-19T01:29:26.689186 | 2019-09-30T19:01:42 | 2019-09-30T19:01:42 | 107,239,248 | 0 | 0 | Apache-2.0 | 2023-07-16T07:41:38 | 2017-10-17T08:22:57 | null | UTF-8 | Java | false | false | 1,521 | java | import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
public abstract class flk
extends eul
implements flj
{
public flk()
{
attachInterface(this, "com.google.android.gms.ads.internal.formats.client.IOnContentAdLoadedListener");
}
public static flj a(IBinder paramIBinder)
{
if (paramIBinder == null) {
return null;
}
IInterface localIInterface = paramIBinder.queryLocalInterface("com.google.android.gms.ads.internal.formats.client.IOnContentAdLoadedListener");
if ((localIInterface instanceof flj)) {
return (flj)localIInterface;
}
return new fll(paramIBinder);
}
public boolean onTransact(int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2)
throws RemoteException
{
if (a(paramInt1, paramParcel1, paramParcel2, paramInt2)) {
return true;
}
if (paramInt1 == 1)
{
paramParcel1 = paramParcel1.readStrongBinder();
if (paramParcel1 == null)
{
paramParcel1 = null;
}
else
{
IInterface localIInterface = paramParcel1.queryLocalInterface("com.google.android.gms.ads.internal.formats.client.INativeContentAd");
if ((localIInterface instanceof fky)) {
paramParcel1 = (fky)localIInterface;
} else {
paramParcel1 = new fla(paramParcel1);
}
}
a(paramParcel1);
paramParcel2.writeNoException();
return true;
}
return false;
}
}
| [
"antal.micky@yahoo.com"
] | antal.micky@yahoo.com |
e5cb83351f4520e08d9fc6278c2dfd1f6b42954e | 8a22690873a0a449a855d25f1c6c0fc70a5e4bb2 | /app/src/main/java/com/xiandao/android/httptask/ConfirmWorkOrderFinishTask.java | 214a7e57eec66424cb84aa3ac94c4a2cf7f9426a | [] | no_license | cfsc-android/CFL-Old | a595b6efeaf61e9f413cfd99985eb3a63427f4dc | bf24fbc996089d38cb6c09d584aa5d0fd9bd83a5 | refs/heads/master | 2022-04-15T23:56:54.473896 | 2020-03-31T04:40:44 | 2020-03-31T04:40:44 | 245,079,056 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,055 | java | package com.xiandao.android.httptask;
import android.content.Context;
import android.util.Log;
import com.google.gson.reflect.TypeToken;
import com.xiandao.android.entity.ConfirmWorkOrderFinishResultEntity;
import com.xiandao.android.utils.Tools;
import org.json.JSONException;
import java.lang.reflect.Type;
/**
* 此类描述的是:判断是跳转到支付还是评价界面task
*
* @author TanYong
* create at 2017/5/2 10:45
*/
public class ConfirmWorkOrderFinishTask extends BaseTask {
@Override
public Object parseJSON(Context context, String str) throws JSONException {
super.parseJSON(context, str);
Log.e("ConfirmWorkOrderFinishTask=", str);
if (!Tools.isEmpty(str)) {
Type type = new TypeToken<ConfirmWorkOrderFinishResultEntity>() {
}.getType();
ConfirmWorkOrderFinishResultEntity confirmWorkOrderFinishResultEntity = gson.fromJson(str, type);
return confirmWorkOrderFinishResultEntity;
} else {
return null;
}
}
}
| [
"zengxiaolong@chanfine.com"
] | zengxiaolong@chanfine.com |
4fba38eec25cd4e72f05cdab32768fd516f90c29 | 8c2150d1fe5ca118bc65b618a421ac53d77e8962 | /SWB4/swb/SWBModel/src/org/semanticwb/model/PFlow.java | 32d5cbf83f834b09c6cf69675623a93a42fb327e | [] | no_license | haxdai/SemanticWebBuilder | b3d7b7d872e014a52bf493f613d145eb1e87b2e6 | dad201959b3429adaf46caa2990cc5ca6bd448e7 | refs/heads/master | 2021-01-20T10:49:55.948762 | 2017-01-26T18:01:17 | 2017-01-26T18:01:17 | 62,407,043 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,121 | java | /*
* SemanticWebBuilder es una plataforma para el desarrollo de portales y aplicaciones de integración,
* colaboración y conocimiento, que gracias al uso de tecnología semántica puede generar contextos de
* información alrededor de algún tema de interés o bien integrar información y aplicaciones de diferentes
* fuentes, donde a la información se le asigna un significado, de forma que pueda ser interpretada y
* procesada por personas y/o sistemas, es una creación original del Fondo de Información y Documentación
* para la Industria INFOTEC, cuyo registro se encuentra actualmente en trámite.
*
* INFOTEC pone a su disposición la herramienta SemanticWebBuilder a través de su licenciamiento abierto al público (‘open source’),
* en virtud del cual, usted podrá usarlo en las mismas condiciones con que INFOTEC lo ha diseñado y puesto a su disposición;
* aprender de él; distribuirlo a terceros; acceder a su código fuente y modificarlo, y combinarlo o enlazarlo con otro software,
* todo ello de conformidad con los términos y condiciones de la LICENCIA ABIERTA AL PÚBLICO que otorga INFOTEC para la utilización
* del SemanticWebBuilder 4.0.
*
* INFOTEC no otorga garantía sobre SemanticWebBuilder, de ninguna especie y naturaleza, ni implícita ni explícita,
* siendo usted completamente responsable de la utilización que le dé y asumiendo la totalidad de los riesgos que puedan derivar
* de la misma.
*
* Si usted tiene cualquier duda o comentario sobre SemanticWebBuilder, INFOTEC pone a su disposición la siguiente
* dirección electrónica:
* http://www.semanticwebbuilder.org
*/
package org.semanticwb.model;
//~--- non-JDK imports --------------------------------------------------------
import org.semanticwb.model.base.*;
import org.semanticwb.platform.SemanticObject;
// TODO: Auto-generated Javadoc
/**
* The Class PFlow.
*/
public class PFlow extends PFlowBase {
/**
* Instantiates a new p flow.
*
* @param base the base
*/
public PFlow(SemanticObject base) {
super(base);
}
}
| [
"softjei@gmail.com"
] | softjei@gmail.com |
7fc5ce69885cee07a2efa3997c2c360c09e860d5 | 8191bea395f0e97835735d1ab6e859db3a7f8a99 | /com.antutu.ABenchMark_source_from_JADX/p023b/p024a/az.java | 00e411d35cf1c43764b8bc0be16ef4ffa67ae629 | [] | no_license | msmtmsmt123/jadx-1 | 5e5aea319e094b5d09c66e0fdb31f10a3238346c | b9458bb1a49a8a7fba8b9f9a6fb6f54438ce03a2 | refs/heads/master | 2021-05-08T19:21:27.870459 | 2017-01-28T04:19:54 | 2017-01-28T04:19:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,740 | java | package p023b.p024a;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
import com.xiaomi.pushsdk.BuildConfig;
/* renamed from: b.a.az */
class az extends SQLiteOpenHelper {
private static Context f2728b;
private String f2729a;
/* renamed from: b.a.az.a */
private static class C0840a {
private static final az f2727a;
static {
f2727a = new az(br.m3618a(az.f2728b), "cc.db", null, 1, null);
}
}
private az(Context context, String str, CursorFactory cursorFactory, int i) {
if (str == null || str.equals(BuildConfig.FLAVOR)) {
str = "cc.db";
}
super(context, str, cursorFactory, i);
m3473b();
}
private az(Context context, String str, String str2, CursorFactory cursorFactory, int i) {
this(new cc(context, str), str2, cursorFactory, i);
}
public static synchronized az m3471a(Context context) {
az a;
synchronized (az.class) {
f2728b = context;
a = C0840a.f2727a;
}
return a;
}
private boolean m3472a(SQLiteDatabase sQLiteDatabase) {
try {
this.f2729a = "create table if not exists limitedck(Id INTEGER primary key autoincrement, ck TEXT unique)";
sQLiteDatabase.execSQL(this.f2729a);
return true;
} catch (SQLException e) {
ap.m3391d("create reference table error!");
return false;
}
}
private void m3473b() {
try {
SQLiteDatabase writableDatabase = getWritableDatabase();
if (!(m3476a("aggregated", writableDatabase) && m3476a("aggregated_cache", writableDatabase))) {
m3475c(writableDatabase);
}
if (!m3476a("system", writableDatabase)) {
m3474b(writableDatabase);
}
if (!m3476a("limitedck", writableDatabase)) {
m3472a(writableDatabase);
}
} catch (Exception e) {
}
}
private boolean m3474b(SQLiteDatabase sQLiteDatabase) {
try {
this.f2729a = "create table if not exists system(Id INTEGER primary key autoincrement, key TEXT, timeStamp INTEGER, count INTEGER)";
sQLiteDatabase.execSQL(this.f2729a);
return true;
} catch (SQLException e) {
ap.m3391d("create system table error!");
return false;
}
}
private boolean m3475c(SQLiteDatabase sQLiteDatabase) {
try {
this.f2729a = "create table if not exists aggregated_cache(Id INTEGER primary key autoincrement, key TEXT, totalTimestamp TEXT, value INTEGER, count INTEGER, label TEXT, timeWindowNum TEXT)";
sQLiteDatabase.execSQL(this.f2729a);
this.f2729a = "create table if not exists aggregated(Id INTEGER primary key autoincrement, key TEXT, totalTimestamp TEXT, value INTEGER, count INTEGER, label TEXT, timeWindowNum TEXT)";
sQLiteDatabase.execSQL(this.f2729a);
return true;
} catch (SQLException e) {
ap.m3391d("create aggregated table error!");
return false;
}
}
public boolean m3476a(String str, SQLiteDatabase sQLiteDatabase) {
Cursor cursor = null;
boolean z = false;
if (str != null) {
try {
cursor = sQLiteDatabase.rawQuery("select count(*) as c from sqlite_master where type ='table' and name ='" + str.trim() + "' ", null);
if (cursor.moveToNext() && cursor.getInt(0) > 0) {
z = true;
}
if (cursor != null) {
cursor.close();
}
} catch (Exception e) {
if (cursor != null) {
cursor.close();
}
} catch (Throwable th) {
if (cursor != null) {
cursor.close();
}
}
}
return z;
}
public void onCreate(SQLiteDatabase sQLiteDatabase) {
try {
sQLiteDatabase.beginTransaction();
m3475c(sQLiteDatabase);
m3474b(sQLiteDatabase);
m3472a(sQLiteDatabase);
sQLiteDatabase.setTransactionSuccessful();
} catch (Exception e) {
e.printStackTrace();
} finally {
sQLiteDatabase.endTransaction();
}
}
public void onUpgrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
}
}
| [
"eggfly@qq.com"
] | eggfly@qq.com |
afd0745cbe06962c09f891dddb0aa592f3c067e7 | b8b7a699565c6b94b3fd0434756c3de35aab042e | /chapter2/RestaurantBill.java | 7278a379374a4e298b57960406bb23ae0b25bc3f | [] | no_license | contactjw/java-gaddis | 27ac9ad99a5a59343bbf7442f6941137f1215e6d | 59052cafb11e396b486d80315698166b9ddf8d06 | refs/heads/master | 2020-09-10T21:48:13.464596 | 2020-01-15T00:54:54 | 2020-01-15T00:54:54 | 221,843,778 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 717 | java | package chapter2;
import javax.swing.JOptionPane;
public class RestaurantBill {
public static void main(String[] args) {
final double TAX = 0.0675;
final double TIP = 0.20;
double mealPrice, totalBill, totalTax, totalTip;
String input;
input = JOptionPane.showInputDialog("Enter the price of the bill: $");
mealPrice = Double.parseDouble(input);
totalTax = mealPrice * TAX;
totalTip = (totalTax + mealPrice) * TIP;
totalBill = mealPrice + totalTax + totalTip;
JOptionPane.showMessageDialog(null, "Meal Price: $" + mealPrice +
"\nTax Amount: $" + totalTax +
"\nTip Amount: $" + totalTip +
"\nTotal Meal Charge: $" + totalBill);
System.exit(0);
}
}
| [
"contactjohnwest@gmail.com"
] | contactjohnwest@gmail.com |
6afb11a679ddc90c595062455d2f46d5f7d2b610 | 499faea013ee326417e5725ac80eb1a54ef6e802 | /wf-base/src/main/java/org/igov/model/core/BaseEntityDao.java | 9e1a223b213b645bd2f47884e5130a62952374ec | [] | no_license | dolinets/iDoc | 03ff38313f137d440e7568b214a8dc6ebf50fc59 | 9d0383c00149af94441cc62692aad1204395be87 | refs/heads/master | 2021-04-28T20:48:48.062254 | 2018-02-24T12:15:44 | 2018-02-24T12:15:44 | 121,933,992 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,958 | java | package org.igov.model.core;
import org.igov.service.exception.EntityNotFoundException;
import org.apache.commons.beanutils.PropertyUtils;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import java.beans.PropertyDescriptor;
import java.io.Serializable;
import java.util.List;
/**
* P - type of primary key of entity
* Убрать полностью не получилось
* <p/>
* use {@link GenericEntityDao} instead if possible
*/
@Repository
public class BaseEntityDao<P extends Serializable> {
private SessionFactory sessionFactory;
private Session getSession() {
return sessionFactory.getCurrentSession();
}
@Autowired
public void setSessionFactory(SessionFactory sessionFactory) {
this.sessionFactory = sessionFactory;
}
@SuppressWarnings("unchecked")
public <T extends Entity<P>> T findById(Class<T> entityType, P id) {
T entity = (T) getSession().get(entityType, id);
if (entity == null) {
throw new EntityNotFoundException(id);
}
return entity;
}
private <T extends Entity<P>> boolean hasOrderField(Class<T> entityClass, String fieldName) {
PropertyDescriptor[] propertyDescriptors = PropertyUtils.getPropertyDescriptors(entityClass);
boolean res = false;
for (PropertyDescriptor pd : propertyDescriptors) {
if (pd.getName().equals(fieldName)) {
res = true;
break;
}
}
return res;
}
@SuppressWarnings("unchecked")
public <T extends Entity<P>> List<T> findAll(Class<T> entityType) {
DetachedCriteria criteria = DetachedCriteria.forClass(entityType);
final String orderFieldName = "order";
if (hasOrderField(entityType, orderFieldName)) {
criteria.addOrder(Order.asc(orderFieldName));
}
return criteria.getExecutableCriteria(getSession()).list();
}
@SuppressWarnings("unchecked")
public <T extends Entity<P>> List<T> findAll(Class<T> entityType, String orderFieldName) {
DetachedCriteria criteria = DetachedCriteria.forClass(entityType);
if (hasOrderField(entityType, orderFieldName)) {
criteria.addOrder(Order.asc(orderFieldName));
}
return criteria.getExecutableCriteria(getSession()).list();
}
public <T extends Entity<P>> void delete(T entity) {
getSession().delete(entity);
}
public <T extends Entity<P>> T saveOrUpdate(T entity) {
getSession().saveOrUpdate(entity);
return entity;
}
public <T extends Entity<P>> void saveOrUpdate(T[] entities) {
for (T e : entities) {
saveOrUpdate(e);
}
}
}
| [
"dolinets123@gmail.com"
] | dolinets123@gmail.com |
354893b19eada987a457631d7fadec63e301c830 | dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9 | /data_defect4j/preprossed_method_corpus/Math/29/org/apache/commons/math3/ode/sampling/StepInterpolator_getInterpolatedDerivatives_102.java | 78342c666017f6af40f44cb3fa7ecae294ba69a1 | [] | no_license | hvdthong/NetML | dca6cf4d34c5799b400d718e0a6cd2e0b167297d | 9bb103da21327912e5a29cbf9be9ff4d058731a5 | refs/heads/master | 2021-06-30T15:03:52.618255 | 2020-10-07T01:58:48 | 2020-10-07T01:58:48 | 150,383,588 | 1 | 1 | null | 2018-09-26T07:08:45 | 2018-09-26T07:08:44 | null | UTF-8 | Java | false | false | 987 | java |
org apach common math3 od sampl
repres interpol step
od integr
od integr provid object implement
step handler object custom
object tightli bound integr intern algorithm
handler object retriev state vector
intermedi time previou current grid point
featur call dens output
import thing note step handler
tightli bound integr share intern
state arrai impli direct
refer step interpol step handler
futur thread aris
step interpol copi dedic
link copi method
org apach common math3 od order integr firstorderintegr
org apach common math3 od order integr secondorderintegr
step handler stephandl
version
step interpol stepinterpol externaliz
deriv state vector interpol point
return vector refer reus arrai
modifi copi
preserv call
deriv state vector time link interpol time getinterpolatedtim
interpol state getinterpolatedst
interpol deriv getinterpolatedderiv
| [
"hvdthong@gmail.com"
] | hvdthong@gmail.com |
2184ea3b0dc463b1f042080c824a54a8b574aeae | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/10/10_1e9d1ac666d49645a2a7c7b8ad9244bd7e0530dd/FactoriesTransformer/10_1e9d1ac666d49645a2a7c7b8ad9244bd7e0530dd_FactoriesTransformer_t.java | 059056e858503d35ea4f9253edf0093b1b0a31e3 | [] | 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 | 3,383 | java | /*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This 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 software 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 software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.capedwarf.bytecode;
import java.lang.instrument.ClassFileTransformer;
import java.lang.instrument.IllegalClassFormatException;
import java.security.ProtectionDomain;
import java.util.HashMap;
import java.util.Map;
/**
* @author <a href="mailto:ales.justin@jboss.org">Ales Justin</a>
* @author <a href="mailto:marko.luksa@gmail.com">Marko Luksa</a>
*/
public class FactoriesTransformer implements ClassFileTransformer {
private static Map<String, ClassFileTransformer> transformers = new HashMap<String, ClassFileTransformer>();
// -- Keep lexicographical order --
static {
transformers.put("com.google.appengine.api.blobstore.BlobstoreServiceFactory", new BlobstoreServiceFactoryTransformer());
transformers.put("com.google.appengine.api.datastore.DatastoreServiceFactory", new DatastoreServiceFactoryTransformer());
transformers.put("com.google.appengine.api.datastore.DatastoreApiHelper", new DatastoreApiHelperTransformer());
transformers.put("com.google.appengine.api.datastore.Entity", new EntityTransformer());
transformers.put("com.google.appengine.api.datastore.Key", new KeyTransformer());
transformers.put("com.google.appengine.api.files.FileServiceFactory", new FileServiceFactoryTransformer());
transformers.put("com.google.appengine.api.images.ImagesServiceFactory", new ImagesServiceFactoryTransformer());
transformers.put("com.google.appengine.api.mail.MailServiceFactory", new MailServiceFactoryTransformer());
transformers.put("com.google.appengine.api.urlfetch.URLFetchServiceFactory", new URLFetchServiceFactoryTransformer());
transformers.put("com.google.appengine.api.users.UserServiceFactory", new UserServiceFactoryTransformer());
transformers.put("com.google.apphosting.api.ApiProxy", new ApiProxyTransformer());
}
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException {
ClassFileTransformer cft = transformers.get(className);
if (cft != null)
return cft.transform(loader, className, classBeingRedefined, protectionDomain, classfileBuffer);
return classfileBuffer;
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
4f58627d383c7cdae4e8414fbfe03ba2b8093676 | 2f426b608611db7b18c5d09e719102688e012f36 | /Test/Assignment1/src/test/java/RomanNumberTest.java | 3b255bfce47d15ebe3f66c7cea0e447d2af999d7 | [] | no_license | Emil-Skovbo/SoftFall2021 | 2dc2a2c8e8b10b913eef64032c0ff9676051217e | 944f3f951becc21622ae81762dcceca9d4b3492d | refs/heads/master | 2023-08-25T08:44:04.327402 | 2021-10-14T07:00:22 | 2021-10-14T07:00:22 | 404,114,233 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 397 | java | import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class RomanNumberTest {
@Test
public void RomanNumberTest(){
RomanNumber rn = new RomanNumber();
assertEquals("I",rn.toRoman(1));
assertEquals("C",rn.toRoman(100));
assertEquals("M",rn.toRoman(1000));
assertEquals("X",rn.toRoman(10));
}
}
| [
"myemail"
] | myemail |
22d061578e7c8c1e8ae4edb099a3fa803593fa19 | 97fd02f71b45aa235f917e79dd68b61c62b56c1c | /src/main/java/com/tencentcloudapi/tcss/v20201101/models/DescribeRiskSyscallDetailRequest.java | 710030372bf10f4bd59edfce9887e4a8c9db3c9b | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-java | 7df922f7c5826732e35edeab3320035e0cdfba05 | 09fa672d75e5ca33319a23fcd8b9ca3d2afab1ec | refs/heads/master | 2023-09-04T10:51:57.854153 | 2023-09-01T03:21:09 | 2023-09-01T03:21:09 | 129,837,505 | 537 | 317 | Apache-2.0 | 2023-09-13T02:42:03 | 2018-04-17T02:58:16 | Java | UTF-8 | Java | false | false | 2,033 | 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.tcss.v20201101.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeRiskSyscallDetailRequest extends AbstractModel{
/**
* 事件唯一id
*/
@SerializedName("EventId")
@Expose
private String EventId;
/**
* Get 事件唯一id
* @return EventId 事件唯一id
*/
public String getEventId() {
return this.EventId;
}
/**
* Set 事件唯一id
* @param EventId 事件唯一id
*/
public void setEventId(String EventId) {
this.EventId = EventId;
}
public DescribeRiskSyscallDetailRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public DescribeRiskSyscallDetailRequest(DescribeRiskSyscallDetailRequest source) {
if (source.EventId != null) {
this.EventId = new String(source.EventId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap<String, String> map, String prefix) {
this.setParamSimple(map, prefix + "EventId", this.EventId);
}
}
| [
"tencentcloudapi@tencent.com"
] | tencentcloudapi@tencent.com |
d12e2ee9dcbe20fca04bc19d0237ee161df0353e | 45cc5a2442678a06d3137bc771ab60f2b2b7da18 | /BorsaJava/src/com/training/borsa/thread/callable/Main.java | e40ad8d30de082b5691f534a70fef237b3a70b39 | [] | no_license | osmanyoy/borsa | 8afaa4151a82c88d732bc982e25ecb029b06ac6d | a292aa862415a13827fc08e5e8983326351d6daf | refs/heads/master | 2020-06-05T19:18:50.979951 | 2019-06-21T13:36:34 | 2019-06-21T13:36:34 | 192,522,947 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 678 | java | package com.training.borsa.thread.callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
public class Main {
public static void main(String[] args) {
ExecutorService newCachedThreadPool = Executors.newCachedThreadPool();
MyCallable callable = new MyCallable();
Future<String> result = newCachedThreadPool.submit(callable);
try {
String string = result.get();
System.out.println("Main Thread : " + string);
} catch (InterruptedException e) {
e.printStackTrace();
} catch (ExecutionException e) {
e.printStackTrace();
}
}
}
| [
"osman.yaycioglu@gmail.com"
] | osman.yaycioglu@gmail.com |
0e45631da437c002e63bede5e3504c36e917cb1d | 480d76232ca7293194c69ba57a5039c6507d5bc7 | /mcp811 1.6.4/temp/src/minecraft/net/minecraft/src/CallableGLInfo.java | d447605b3272c94ccd5fbd605366d5dac4f05ea3 | [] | no_license | interactivenyc/Minecraft_SRC_MOD | bee868e7adf9c548ddafd8549a55a759cfa237ce | 4b311f43fd312521c1df39010b0ae34ed81bc406 | refs/heads/master | 2016-09-07T18:33:22.494356 | 2014-01-27T19:10:47 | 2014-01-27T19:10:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 576 | java | package net.minecraft.src;
import java.util.concurrent.Callable;
import net.minecraft.src.Minecraft;
import org.lwjgl.opengl.GL11;
class CallableGLInfo implements Callable {
// $FF: synthetic field
final Minecraft field_79002_a;
CallableGLInfo(Minecraft p_i1011_1_) {
this.field_79002_a = p_i1011_1_;
}
public String func_79001_a() {
return GL11.glGetString(7937) + " GL version " + GL11.glGetString(7938) + ", " + GL11.glGetString(7936);
}
// $FF: synthetic method
public Object call() {
return this.func_79001_a();
}
}
| [
"steve@speakaboos.com"
] | steve@speakaboos.com |
bf5aee914c0ce753067b68c5a94502cbf9fb6503 | 72d33a08bff9f17582c3ddc695b535eb2c000f56 | /src/main/java/grondag/canvas/material/state/RenderStateData.java | c4de060f12d65741131c19c04a59ced3aace6767 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | CMaster1987/canvas | afaf519feb17ccdb69f1dced9be4308559f01b52 | 0358a9fe01cf801868520f4a422d9ef01d76c112 | refs/heads/one | 2023-03-03T16:10:20.462611 | 2020-11-20T17:41:59 | 2020-11-20T17:41:59 | 314,671,751 | 0 | 0 | Apache-2.0 | 2020-12-31T06:29:33 | 2020-11-20T21:18:39 | null | UTF-8 | Java | false | false | 919 | java | /*
* Copyright 2019, 2020 grondag
*
* 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 grondag.canvas.material.state;
public class RenderStateData {
private RenderStateData() { }
public static final int HURT_OVERLAY_FLAG = (int) (AbstractRenderStateView.HURT_OVERLAY_FLAG << 24);
public static final int FLASH_OVERLAY_FLAG = (int) (AbstractRenderStateView.FLASH_OVERLAY_FLAG << 24);
}
| [
"grondag@gmail.com"
] | grondag@gmail.com |
8bc22ab34d70a69fd8018fc67b6af704e202b098 | 12a99ab3fe76e5c7c05609c0e76d1855bd051bbb | /src/main/java/com/alipay/api/domain/AlipayEcoEduKtSchoolinfoModifyModel.java | 8e21040e27bcd047e68090c303041710e90a57ad | [
"Apache-2.0"
] | permissive | WindLee05-17/alipay-sdk-java-all | ce2415cfab2416d2e0ae67c625b6a000231a8cfc | 19ccb203268316b346ead9c36ff8aa5f1eac6c77 | refs/heads/master | 2022-11-30T18:42:42.077288 | 2020-08-17T05:57:47 | 2020-08-17T05:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,793 | java | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 教育缴费学校信息录入接口
*
* @author auto create
* @since 1.0, 2019-09-17 22:53:49
*/
public class AlipayEcoEduKtSchoolinfoModifyModel extends AlipayObject {
private static final long serialVersionUID = 6881182362973685665L;
/**
* 与浙江网商交易见证平台有交互ISV输入网商交易异步通知回调URL,教育缴费同步账单信息给网商,网商会回调此url,ISV即可获取网商相关的参数,根据教育缴费平台账单发送接口返回的 order_no和网商返回的outer_trade_no来对应账单信息。
*/
@ApiField("bank_notify_url")
private String bankNotifyUrl;
/**
* 与浙江网商交易见证平台有交互的ISV,由交易见证平台分配给合作方业务平台 签约唯一ID ,由网商分配给ISV的渠道参数
*/
@ApiField("bank_partner_id")
private String bankPartnerId;
/**
* 与浙江网商交易见证平台有交互的ISV在创建账户时的uid,也就是ISV平台上的用户ID(字母或数字)
*/
@ApiField("bank_uid")
private String bankUid;
/**
* 对应集团到卡模式的银行编号.学校与支付宝后台签约时,由学校提交给支付宝的编号
*/
@ApiField("bankcard_no")
private String bankcardNo;
/**
* 集团收单模式:分账批次号,支付宝配置后提供的银行卡批次号
*/
@ApiField("batch_no")
private String batchNo;
/**
* 学校开通直付通卡编号,smid与card_alias_no必须同时填写
*/
@ApiField("card_alias_no")
private String cardAliasNo;
/**
* 城市的国家编码(国家统计局出版的行政区划代码 http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/)
*/
@ApiField("city_code")
private String cityCode;
/**
* 城市名称
*/
@ApiField("city_name")
private String cityName;
/**
* 集团收单模式:BD批量上传银行卡信息后,支付宝系统分配给ISV的每个卡分配的唯一标识
*/
@ApiField("corporate_branch_pid")
private String corporateBranchPid;
/**
* 区县的国家编码(国家统计局出版的行政区划代码 http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/)
*/
@ApiField("district_code")
private String districtCode;
/**
* 区县名称
*/
@ApiField("district_name")
private String districtName;
/**
* ISV公司名称 , 会在账单详情页面展示给用户
*/
@ApiField("isv_name")
private String isvName;
/**
* 注意:本参数从1.3版本开始已经废弃,不再需要传递。
由支付宝提供的给已经签约的isv的编码,业务上一般直接采用isv的支付宝PID。
*/
@ApiField("isv_no")
private String isvNo;
/**
* 此通知地址是为了保持教育缴费平台与ISV商户支付状态一致性。用户支付成功后,支付宝会根据本isv_notify_url(异步通知说明https://docs.open.alipay.com/203/105286/),通过POST请求的形式将支付结果作为参数通知到商户系统,ISV商户可以根据返回的参数更新账单状态。
*/
@ApiField("isv_notify_url")
private String isvNotifyUrl;
/**
* ISV的联系方式 , 会在账单详情页面展示给用户,用户有问题可以直接联系此电话获取帮助
*/
@ApiField("isv_phone")
private String isvPhone;
/**
* 填写已经签约教育缴费的isv的支付宝PID
*/
@ApiField("isv_pid")
private String isvPid;
/**
* 省份的国家编码(国家统计局出版的行政区划代码 http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/)
*/
@ApiField("province_code")
private String provinceCode;
/**
* 省名称
*/
@ApiField("province_name")
private String provinceName;
/**
* 学校的校徽或logo,在学校展示页面作为学校的标识。该字段为图片的链接地址,只支持png或jpg图片格式,图片高度为108,宽度为108 ,不大于20k。
注意:此链接要求公网可以访问,否则无法正常展示。
*/
@ApiField("school_icon")
private String schoolIcon;
/**
* 如果填写了school_icon参数,则此字段不能为空。目前只支持png和jpg两种格式
*/
@ApiField("school_icon_type")
private String schoolIconType;
/**
* 学校名称
*/
@ApiField("school_name")
private String schoolName;
/**
* 学校签约支付宝教育缴费支付宝pid,如果是直付通学校,填写直付通返回的smid
*/
@ApiField("school_pid")
private String schoolPid;
/**
* 学校(机构)标识码(由教育部按照国家标准及编码规则编制,可以在教育局官网查询)
*/
@ApiField("school_stdcode")
private String schoolStdcode;
/**
* 学校的类型:
1:代表托儿所; 2:代表幼儿园;3:代表小学;4:代表初中;5:代表高中。
如果学校兼有多种属性,可以连写,比如:
45:代表兼有初中部高中部;34:代表兼有小学部初中部
*/
@ApiField("school_type")
private String schoolType;
/**
* 学校开通直付通返回的二级商户id,smid与card_alias_no必须同时填写
*/
@ApiField("smid")
private String smid;
/**
* 集团收单模式:分账批次号,支付宝配置后提供的银行卡批次号
*/
@ApiField("trans_in")
private String transIn;
/**
* 与浙江网商交易见证平台有交互的ISV,由网商分配给ISV的渠道参数
*/
@ApiField("white_channel_code")
private String whiteChannelCode;
public String getBankNotifyUrl() {
return this.bankNotifyUrl;
}
public void setBankNotifyUrl(String bankNotifyUrl) {
this.bankNotifyUrl = bankNotifyUrl;
}
public String getBankPartnerId() {
return this.bankPartnerId;
}
public void setBankPartnerId(String bankPartnerId) {
this.bankPartnerId = bankPartnerId;
}
public String getBankUid() {
return this.bankUid;
}
public void setBankUid(String bankUid) {
this.bankUid = bankUid;
}
public String getBankcardNo() {
return this.bankcardNo;
}
public void setBankcardNo(String bankcardNo) {
this.bankcardNo = bankcardNo;
}
public String getBatchNo() {
return this.batchNo;
}
public void setBatchNo(String batchNo) {
this.batchNo = batchNo;
}
public String getCardAliasNo() {
return this.cardAliasNo;
}
public void setCardAliasNo(String cardAliasNo) {
this.cardAliasNo = cardAliasNo;
}
public String getCityCode() {
return this.cityCode;
}
public void setCityCode(String cityCode) {
this.cityCode = cityCode;
}
public String getCityName() {
return this.cityName;
}
public void setCityName(String cityName) {
this.cityName = cityName;
}
public String getCorporateBranchPid() {
return this.corporateBranchPid;
}
public void setCorporateBranchPid(String corporateBranchPid) {
this.corporateBranchPid = corporateBranchPid;
}
public String getDistrictCode() {
return this.districtCode;
}
public void setDistrictCode(String districtCode) {
this.districtCode = districtCode;
}
public String getDistrictName() {
return this.districtName;
}
public void setDistrictName(String districtName) {
this.districtName = districtName;
}
public String getIsvName() {
return this.isvName;
}
public void setIsvName(String isvName) {
this.isvName = isvName;
}
public String getIsvNo() {
return this.isvNo;
}
public void setIsvNo(String isvNo) {
this.isvNo = isvNo;
}
public String getIsvNotifyUrl() {
return this.isvNotifyUrl;
}
public void setIsvNotifyUrl(String isvNotifyUrl) {
this.isvNotifyUrl = isvNotifyUrl;
}
public String getIsvPhone() {
return this.isvPhone;
}
public void setIsvPhone(String isvPhone) {
this.isvPhone = isvPhone;
}
public String getIsvPid() {
return this.isvPid;
}
public void setIsvPid(String isvPid) {
this.isvPid = isvPid;
}
public String getProvinceCode() {
return this.provinceCode;
}
public void setProvinceCode(String provinceCode) {
this.provinceCode = provinceCode;
}
public String getProvinceName() {
return this.provinceName;
}
public void setProvinceName(String provinceName) {
this.provinceName = provinceName;
}
public String getSchoolIcon() {
return this.schoolIcon;
}
public void setSchoolIcon(String schoolIcon) {
this.schoolIcon = schoolIcon;
}
public String getSchoolIconType() {
return this.schoolIconType;
}
public void setSchoolIconType(String schoolIconType) {
this.schoolIconType = schoolIconType;
}
public String getSchoolName() {
return this.schoolName;
}
public void setSchoolName(String schoolName) {
this.schoolName = schoolName;
}
public String getSchoolPid() {
return this.schoolPid;
}
public void setSchoolPid(String schoolPid) {
this.schoolPid = schoolPid;
}
public String getSchoolStdcode() {
return this.schoolStdcode;
}
public void setSchoolStdcode(String schoolStdcode) {
this.schoolStdcode = schoolStdcode;
}
public String getSchoolType() {
return this.schoolType;
}
public void setSchoolType(String schoolType) {
this.schoolType = schoolType;
}
public String getSmid() {
return this.smid;
}
public void setSmid(String smid) {
this.smid = smid;
}
public String getTransIn() {
return this.transIn;
}
public void setTransIn(String transIn) {
this.transIn = transIn;
}
public String getWhiteChannelCode() {
return this.whiteChannelCode;
}
public void setWhiteChannelCode(String whiteChannelCode) {
this.whiteChannelCode = whiteChannelCode;
}
}
| [
"ben.zy@antfin.com"
] | ben.zy@antfin.com |
9e62a071dcc03a7c0a4e8bce9df52f569a052743 | 4b8b83e997c046771c2ba8949d1f8744958e36e9 | /app/src/main/java/org/jf/dexlib2/dexbacked/raw/AnnotationDirectoryItem.java | b69cbc234d2186707c43407ce89071f1ddddcdbf | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | vaginessa/show-java | 978fcf3cfc5e875e3f5f81ad9e47ceb2d60b2dc2 | 31f540fb9e13a74e0a0ead27715888f022bff14c | refs/heads/master | 2021-01-18T04:09:53.521444 | 2015-12-09T20:58:32 | 2015-12-09T20:58:32 | 42,273,420 | 0 | 0 | Apache-2.0 | 2019-01-18T07:06:51 | 2015-09-10T22:12:08 | Java | UTF-8 | Java | false | false | 5,852 | java | /*
* Copyright 2013, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * 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.
* * Neither the name of Google Inc. 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
* OWNER 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 org.jf.dexlib2.dexbacked.raw;
import org.jf.dexlib2.dexbacked.raw.util.DexAnnotator;
import org.jf.dexlib2.util.AnnotatedBytes;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public class AnnotationDirectoryItem {
public static final int CLASS_ANNOTATIONS_OFFSET = 0;
public static final int FIELD_SIZE_OFFSET = 4;
public static final int ANNOTATED_METHOD_SIZE_OFFSET = 8;
public static final int ANNOTATED_PARAMETERS_SIZE = 12;
@Nonnull
public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem mapItem) {
return new SectionAnnotator(annotator, mapItem) {
@Nonnull
@Override
public String getItemName() {
return "annotation_directory_item";
}
@Override
public int getItemAlignment() {
return 4;
}
@Override
protected void annotateItem(@Nonnull AnnotatedBytes out, int itemIndex, @Nullable String itemIdentity) {
int classAnnotationsOffset = dexFile.readSmallUint(out.getCursor());
out.annotate(4, "class_annotations_off = %s",
AnnotationSetItem.getReferenceAnnotation(dexFile, classAnnotationsOffset));
int fieldsSize = dexFile.readSmallUint(out.getCursor());
out.annotate(4, "fields_size = %d", fieldsSize);
int annotatedMethodsSize = dexFile.readSmallUint(out.getCursor());
out.annotate(4, "annotated_methods_size = %d", annotatedMethodsSize);
int annotatedParameterSize = dexFile.readSmallUint(out.getCursor());
out.annotate(4, "annotated_parameters_size = %d", annotatedParameterSize);
if (fieldsSize > 0) {
out.annotate(0, "field_annotations:");
out.indent();
for (int i = 0; i < fieldsSize; i++) {
out.annotate(0, "field_annotation[%d]", i);
out.indent();
int fieldIndex = dexFile.readSmallUint(out.getCursor());
out.annotate(4, "%s", FieldIdItem.getReferenceAnnotation(dexFile, fieldIndex));
int annotationOffset = dexFile.readSmallUint(out.getCursor());
out.annotate(4, "%s", AnnotationSetItem.getReferenceAnnotation(dexFile, annotationOffset));
out.deindent();
}
out.deindent();
}
if (annotatedMethodsSize > 0) {
out.annotate(0, "method_annotations:");
out.indent();
for (int i = 0; i < annotatedMethodsSize; i++) {
out.annotate(0, "method_annotation[%d]", i);
out.indent();
int methodIndex = dexFile.readSmallUint(out.getCursor());
out.annotate(4, "%s", MethodIdItem.getReferenceAnnotation(dexFile, methodIndex));
int annotationOffset = dexFile.readSmallUint(out.getCursor());
out.annotate(4, "%s", AnnotationSetItem.getReferenceAnnotation(dexFile, annotationOffset));
out.deindent();
}
out.deindent();
}
if (annotatedParameterSize > 0) {
out.annotate(0, "parameter_annotations:");
out.indent();
for (int i = 0; i < annotatedParameterSize; i++) {
out.annotate(0, "parameter_annotation[%d]", i);
out.indent();
int methodIndex = dexFile.readSmallUint(out.getCursor());
out.annotate(4, "%s", MethodIdItem.getReferenceAnnotation(dexFile, methodIndex));
int annotationOffset = dexFile.readSmallUint(out.getCursor());
out.annotate(4, "%s", AnnotationSetRefList.getReferenceAnnotation(dexFile, annotationOffset));
out.deindent();
}
out.deindent();
}
}
};
}
}
| [
"niranjan94@yahoo.com"
] | niranjan94@yahoo.com |
75b01ab8ec056209b447112745b16960ece43dcf | 9410ef0fbb317ace552b6f0a91e0b847a9a841da | /src/main/java/com/tencentcloudapi/tcr/v20190924/models/ModifySecurityPolicyResponse.java | 75a313362e0fb4e9e5726e79407399a73c9fa615 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-java-intl-en | 274de822748bdb9b4077e3b796413834b05f1713 | 6ca868a8de6803a6c9f51af7293d5e6dad575db6 | refs/heads/master | 2023-09-04T05:18:35.048202 | 2023-09-01T04:04:14 | 2023-09-01T04:04:14 | 230,567,388 | 7 | 4 | Apache-2.0 | 2022-05-25T06:54:45 | 2019-12-28T06:13:51 | Java | UTF-8 | Java | false | false | 3,118 | 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.tcr.v20190924.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ModifySecurityPolicyResponse extends AbstractModel{
/**
* Instance ID
*/
@SerializedName("RegistryId")
@Expose
private String RegistryId;
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
*/
@SerializedName("RequestId")
@Expose
private String RequestId;
/**
* Get Instance ID
* @return RegistryId Instance ID
*/
public String getRegistryId() {
return this.RegistryId;
}
/**
* Set Instance ID
* @param RegistryId Instance ID
*/
public void setRegistryId(String RegistryId) {
this.RegistryId = RegistryId;
}
/**
* Get The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @return RequestId The unique request ID, which is returned for each request. RequestId is required for locating a problem.
*/
public String getRequestId() {
return this.RequestId;
}
/**
* Set The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @param RequestId The unique request ID, which is returned for each request. RequestId is required for locating a problem.
*/
public void setRequestId(String RequestId) {
this.RequestId = RequestId;
}
public ModifySecurityPolicyResponse() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public ModifySecurityPolicyResponse(ModifySecurityPolicyResponse source) {
if (source.RegistryId != null) {
this.RegistryId = new String(source.RegistryId);
}
if (source.RequestId != null) {
this.RequestId = new String(source.RequestId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap<String, String> map, String prefix) {
this.setParamSimple(map, prefix + "RegistryId", this.RegistryId);
this.setParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
| [
"tencentcloudapi@tencent.com"
] | tencentcloudapi@tencent.com |
856bc05c9775b11827d44fd2ad83adb893405e0f | d6629b3a69f3f360583ee3ae04ba12857d77cabc | /com/android/camera/ui/GLOptionHeader.java | c702943ab671017d19ff4ea77dac531ed1378d63 | [] | no_license | AndroidSDKSources/android-sdk-sources-for-api-level-9 | 5cbb5d655e2e3e9de798bdeceb00fc4061c4db71 | 1ec9ed9c2714d0d1425f5784a31cf87e18eb9425 | refs/heads/master | 2021-01-23T03:13:30.277856 | 2015-07-03T10:19:21 | 2015-07-03T10:19:21 | 38,486,795 | 4 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,653 | java | /*
* Copyright (C) 2010 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 com.android.camera.ui;
import static com.android.camera.ui.GLRootView.dpToPixel;
import android.content.Context;
import android.graphics.Rect;
import javax.microedition.khronos.opengles.GL11;
class GLOptionHeader extends GLView {
private static final int FONT_COLOR = 0xFF979797;
private static final float FONT_SIZE = 12;
private static final int HORIZONTAL_PADDINGS = 4;
private static final int VERTICAL_PADDINGS = 2;
private static final int COLOR_OPTION_HEADER = 0xFF2B2B2B;
private static int sHorizontalPaddings = -1;
private static int sVerticalPaddings;
private final StringTexture mTitle;
private Texture mBackground;
private static void initializeStaticVariables(Context context) {
if (sHorizontalPaddings >= 0) return;
sHorizontalPaddings = dpToPixel(context, HORIZONTAL_PADDINGS);
sVerticalPaddings = dpToPixel(context, VERTICAL_PADDINGS);
}
public GLOptionHeader(Context context, String title) {
initializeStaticVariables(context);
float fontSize = GLRootView.dpToPixel(context, FONT_SIZE);
mTitle = StringTexture.newInstance(title, fontSize, FONT_COLOR);
setBackground(new ColorTexture(COLOR_OPTION_HEADER));
setPaddings(sHorizontalPaddings,
sVerticalPaddings, sHorizontalPaddings, sVerticalPaddings);
}
public void setBackground(Texture background) {
if (mBackground == background) return;
mBackground = background;
invalidate();
}
@Override
protected void onMeasure(int widthSpec, int heightSpec) {
new MeasureHelper(this)
.setPreferredContentSize(mTitle.getWidth(), mTitle.getHeight())
.measure(widthSpec, heightSpec);
}
@Override
protected void render(GLRootView root, GL11 gl) {
if (mBackground != null) {
mBackground.draw(root, 0, 0, getWidth(), getHeight());
}
Rect p = mPaddings;
mTitle.draw(root, p.left, p.top);
}
}
| [
"root@ifeegoo.com"
] | root@ifeegoo.com |
203f22ea82883a14d8a4470352bd1317ab87c3f6 | 3cf7d36e3170894c945f57ea745f9529678fffcf | /cloudfoundry-client-reactor/src/main/java/org/cloudfoundry/reactor/client/v2/servicekeys/ReactorServiceKeys.java | d8bdeb6eceb6b0f4d98d217e28a4df02d85ff8d4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | leachbj/cf-java-client | 685741be338b23745605628b64f99df1faa35590 | 1dcd5ea050e36519aaad78c9e729ba4a3deb8a7d | refs/heads/master | 2020-06-28T23:04:34.002704 | 2016-11-18T17:54:01 | 2016-11-18T17:54:01 | 74,463,234 | 0 | 0 | null | 2016-11-22T10:52:21 | 2016-11-22T10:52:21 | null | UTF-8 | Java | false | false | 3,113 | java | /*
* Copyright 2013-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.cloudfoundry.reactor.client.v2.servicekeys;
import org.cloudfoundry.client.v2.serviceinstances.ServiceInstances;
import org.cloudfoundry.client.v2.servicekeys.CreateServiceKeyRequest;
import org.cloudfoundry.client.v2.servicekeys.CreateServiceKeyResponse;
import org.cloudfoundry.client.v2.servicekeys.DeleteServiceKeyRequest;
import org.cloudfoundry.client.v2.servicekeys.GetServiceKeyRequest;
import org.cloudfoundry.client.v2.servicekeys.GetServiceKeyResponse;
import org.cloudfoundry.client.v2.servicekeys.ListServiceKeysRequest;
import org.cloudfoundry.client.v2.servicekeys.ListServiceKeysResponse;
import org.cloudfoundry.client.v2.servicekeys.ServiceKeys;
import org.cloudfoundry.reactor.ConnectionContext;
import org.cloudfoundry.reactor.TokenProvider;
import org.cloudfoundry.reactor.client.v2.AbstractClientV2Operations;
import reactor.core.publisher.Mono;
/**
* The Reactor-based implementation of {@link ServiceInstances}
*/
public final class ReactorServiceKeys extends AbstractClientV2Operations implements ServiceKeys {
/**
* Creates an instance
*
* @param connectionContext the {@link ConnectionContext} to use when communicating with the server
* @param root the root URI of the server. Typically something like {@code https://api.run.pivotal.io}.
* @param tokenProvider the {@link TokenProvider} to use when communicating with the server
*/
public ReactorServiceKeys(ConnectionContext connectionContext, Mono<String> root, TokenProvider tokenProvider) {
super(connectionContext, root, tokenProvider);
}
@Override
public Mono<CreateServiceKeyResponse> create(CreateServiceKeyRequest request) {
return post(request, CreateServiceKeyResponse.class, builder -> builder.pathSegment("v2", "service_keys"));
}
@Override
public Mono<Void> delete(DeleteServiceKeyRequest request) {
return delete(request, Void.class, builder -> builder.pathSegment("v2", "service_keys", request.getServiceKeyId()));
}
@Override
public Mono<GetServiceKeyResponse> get(GetServiceKeyRequest request) {
return get(request, GetServiceKeyResponse.class, builder -> builder.pathSegment("v2", "service_keys", request.getServiceKeyId()));
}
@Override
public Mono<ListServiceKeysResponse> list(ListServiceKeysRequest request) {
return get(request, ListServiceKeysResponse.class, builder -> builder.pathSegment("v2", "service_keys"));
}
}
| [
"bhale@pivotal.io"
] | bhale@pivotal.io |
b091d158396fa8a8ac774c2248a522a7413bddda | 3db45557aef8a45f41c0f8dd706beeea8b1dea9f | /coolf/src/main/java/cool/lifted94.java | 1703cba217dd5d373d2e53f35b74f742f69187c4 | [] | no_license | OpenUniversity/AOP-Awesome | 7847f63ca88c9781ca0c2bcdcd8b0cd2e8c7ed56 | b2dcbe3ee1369717dd2cf193503c632ade7d28ad | refs/heads/master | 2020-04-05T00:29:22.270200 | 2018-12-21T17:04:28 | 2018-12-21T17:04:28 | 17,806,949 | 0 | 0 | null | 2014-03-22T14:39:49 | 2014-03-16T19:15:22 | Java | UTF-8 | Java | false | false | 996 | java | package cool;
import org.strategoxt.stratego_lib.*;
import org.strategoxt.java_front.*;
import org.strategoxt.stratego_gpp.*;
import org.strategoxt.stratego_sglr.*;
import org.strategoxt.lang.*;
import org.spoofax.interpreter.terms.*;
import static org.strategoxt.lang.Term.*;
import org.spoofax.interpreter.library.AbstractPrimitive;
import java.util.ArrayList;
import java.lang.ref.WeakReference;
@SuppressWarnings("all") final class lifted94 extends Strategy
{
TermReference e_34;
@Override public IStrategoTerm invoke(Context context, IStrategoTerm term)
{
Fail271:
{
if(term.getTermType() != IStrategoTerm.APPL || transform._consRightShift_2 != ((IStrategoAppl)term).getConstructor())
break Fail271;
if(e_34.value == null)
e_34.value = term.getSubterm(0);
else
if(e_34.value != term.getSubterm(0) && !e_34.value.match(term.getSubterm(0)))
break Fail271;
if(true)
return term;
}
return null;
}
} | [
"arik.hadas@openu.ac.il"
] | arik.hadas@openu.ac.il |
c828a632410b57fc02f365c52bb3158f9de752cb | 8ab2e48bfe1e4be6f2bb9edcdb7dd9cc27284291 | /testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/x509/CRLRule.java | 05af98fc4d56c840ce4ad617161a448080623a5c | [
"Apache-2.0"
] | permissive | hypermine-bc/keycloak | d3c97f43ffca4f3fefca56ccafc104aecf45b1a3 | 726fb2382a5a4da707ec38e3cad2e2af5ab4b305 | refs/heads/master | 2021-11-05T14:17:56.324085 | 2019-06-08T09:35:00 | 2019-06-08T09:35:00 | 183,739,178 | 0 | 3 | NOASSERTION | 2019-06-15T08:52:38 | 2019-04-27T06:52:56 | Java | UTF-8 | Java | false | false | 3,842 | java | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.keycloak.testsuite.x509;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.nio.ByteBuffer;
import io.undertow.Undertow;
import io.undertow.io.Sender;
import io.undertow.server.HttpHandler;
import io.undertow.server.HttpServerExchange;
import io.undertow.server.handlers.BlockingHandler;
import io.undertow.server.handlers.PathHandler;
import io.undertow.util.HeaderMap;
import io.undertow.util.Headers;
import org.apache.commons.io.IOUtils;
import org.jboss.logging.Logger;
import org.junit.rules.ExternalResource;
/**
* Starts/stops embedded undertow server before/after the test class.
* The server will serve some predefined CRL lists under URL like "http://localhost:8889/empty.crl"
*
* @author <a href="mailto:mposolda@redhat.com">Marek Posolda</a>
*/
public class CRLRule extends ExternalResource {
protected static final Logger log = Logger.getLogger(CRLRule.class);
private static final String CRL_RESPONDER_HOST = "localhost";
private static final int CRL_RESPONDER_PORT = 8889;
public static final String CRL_RESPONDER_ORIGIN = "http://" + CRL_RESPONDER_HOST + ":" + CRL_RESPONDER_PORT;
private Undertow crlResponder;
@Override
protected void before() throws Throwable {
log.info("Starting CRL Responder");
PathHandler pathHandler = new PathHandler();
pathHandler.addExactPath(AbstractX509AuthenticationTest.EMPTY_CRL_PATH, new CRLHandler(AbstractX509AuthenticationTest.EMPTY_CRL_PATH));
pathHandler.addExactPath(AbstractX509AuthenticationTest.INTERMEDIATE_CA_CRL_PATH, new CRLHandler(AbstractX509AuthenticationTest.INTERMEDIATE_CA_CRL_PATH));
crlResponder = Undertow.builder().addHttpListener(CRL_RESPONDER_PORT, CRL_RESPONDER_HOST)
.setHandler(
new BlockingHandler(pathHandler)
).build();
crlResponder.start();
}
@Override
protected void after() {
log.info("Stoping CRL Responder");
crlResponder.stop();
}
private class CRLHandler implements HttpHandler {
private String crlFileName;
public CRLHandler(String crlFileName) {
this.crlFileName = crlFileName;
}
@Override
public void handleRequest(HttpServerExchange exchange) throws Exception {
if (exchange.isInIoThread()) {
exchange.dispatch(this);
return;
}
String fullFile = AbstractX509AuthenticationTest.getAuthServerHome() + File.separator + crlFileName;
InputStream is = new FileInputStream(new File(fullFile));
final byte[] responseBytes = IOUtils.toByteArray(is);
final HeaderMap responseHeaders = exchange.getResponseHeaders();
responseHeaders.put(Headers.CONTENT_TYPE, "application/pkix-crl");
// TODO: Add caching support? CRLs provided by well-known CA usually adds them
final Sender responseSender = exchange.getResponseSender();
responseSender.send(ByteBuffer.wrap(responseBytes));
exchange.endExchange();
}
}
}
| [
"mposolda@gmail.com"
] | mposolda@gmail.com |
725c40888c9cdd6b5aa4704e6d8d84298bf31591 | d19dc7e85ccddd789add06e741e8e0865fce9a76 | /shuangyuan/01_API/src/com/itheima/demo04/Calendar/Demo02Calendar.java | 66507e5f72b3658ae744a3bb3946a3e3eb13626e | [] | no_license | sjtuwyf/java-basic-code | 6cd7b812cf1e221077c551368b3260ea6d2c9ae2 | 51047c659f66099937e095597c7e71cf726f1ff0 | refs/heads/main | 2023-03-31T13:32:59.573720 | 2021-04-04T04:07:41 | 2021-04-04T04:07:41 | 342,221,770 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,889 | java | package com.itheima.demo04.Calendar;
import java.util.Calendar;
import java.util.Date;
public class Demo02Calendar {
public static void main(String[] args) {
demo01();
demo02();
demo03();
demo04();
}
private static void demo04() {
Calendar c = Calendar.getInstance();
Date date1 = c.getTime();
System.out.println(date1);
int year = c.get(Calendar.YEAR);
System.out.println(year);
int month = c.get(Calendar.MONTH);
System.out.println(month);
int date = c.get(Calendar.DAY_OF_MONTH);
System.out.println(date);
}
private static void demo03() {
Calendar c = Calendar.getInstance();
c.add(Calendar.YEAR,2);
c.add(Calendar.MONTH,-3);
c.add(Calendar.DATE,2);
int year = c.get(Calendar.YEAR);
System.out.println(year);
int month = c.get(Calendar.MONTH);
System.out.println(month);
int date = c.get(Calendar.DAY_OF_MONTH);
System.out.println(date);
}
private static void demo02() {
Calendar c = Calendar.getInstance();
c.set(Calendar.YEAR,9999);
c.set(Calendar.MONTH,9);
c.set(Calendar.DATE,9);
c.set(3454,4,4);
c.set(234,234,243);
int year = c.get(Calendar.YEAR);
System.out.println(year);
int month = c.get(Calendar.MONTH);
System.out.println(month);
int date = c.get(Calendar.DAY_OF_MONTH);
System.out.println(date);
}
private static void demo01() {
Calendar c = Calendar.getInstance();
int year = c.get(Calendar.YEAR);
System.out.println(year);
int month = c.get(Calendar.MONTH);
System.out.println(month);
int date = c.get(Calendar.DAY_OF_MONTH);
System.out.println(date);
}
}
| [
"sjtuwyf@126.com"
] | sjtuwyf@126.com |
407484575d58c2234832892b4b05053277bfcb78 | 25d76cb9beb05c3ae0fc9b3d6f17b0ab92a024b7 | /Controlcenter/src/main/java/eu/vicci/ecosystem/standalone/controlcenter/android/processview/OnStartClickListener.java | eba04f4633d8dc12fa458dfb267f2078558a6868 | [] | no_license | IoTUDresden/smartcps | 2a8d92f0a97039a8dfe243599a313a48bc4856fc | 478b3b23ed3269f167d02dee637cae0db747381e | refs/heads/master | 2021-01-12T13:57:44.286936 | 2018-12-14T12:36:27 | 2018-12-14T12:36:27 | 69,253,044 | 0 | 0 | null | 2018-12-14T10:39:01 | 2016-09-26T13:31:00 | Java | UTF-8 | Java | false | false | 2,417 | java | package eu.vicci.ecosystem.standalone.controlcenter.android.processview;
import android.app.Activity;
import android.app.FragmentManager;
import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import eu.vicci.process.client.android.ProcessEngineClient;
import eu.vicci.process.kpseus.connect.handlers.AbstractClientHandler;
import eu.vicci.process.kpseus.connect.handlers.HandlerFinishedListener;
import eu.vicci.process.kpseus.connect.handlers.ProcessInfosHandler;
import eu.vicci.process.kpseus.connect.handlers.ProcessInstanceInfosHandler;
import eu.vicci.process.kpseus.connect.handlers.ResumeInstanceHandler;
import eu.vicci.process.model.sofia.Process;
import eu.vicci.process.model.sofiainstance.ProcessInstance;
public class OnStartClickListener implements OnClickListener, HandlerFinishedListener {
private String id;
private Context mContext;
private Process process;
private ProcessInfosHandler pih;
private ProcessInstanceInfosHandler piih;
private Button bPause;
private Button bStop;
private boolean isInstance;
private ProcessInstance processInstance;
public OnStartClickListener(String id, Context mContext, Button buttonPause, Button buttonStop, boolean isInstance) {
super();
this.id = id;
this.isInstance = isInstance;
this.mContext = mContext;
bPause = buttonPause;
bStop = buttonStop;
}
@Override
public void onClick(View v) {
if (isInstance) {
piih = new ProcessInstanceInfosHandler(id);
piih.addHandlerFinishedListener(this);
ProcessEngineClient.getInstance().getProcessInstanceInfos(piih);
} else {
pih = new ProcessInfosHandler(id);
pih.addHandlerFinishedListener(this);
ProcessEngineClient.getInstance().getProcessInfos(pih);
}
}
@Override
public void onHandlerFinished(AbstractClientHandler handler, Object arg) {
if (handler instanceof ProcessInfosHandler) {
process = pih.getProcess();
ProcessEngineClient.getInstance().getLocalProcesses().put(process.getId(), process);
StartDialog dialogFragment = new StartDialog();
FragmentManager fm = ((Activity) mContext).getFragmentManager();
dialogFragment.show(fm, id);
}
if(handler instanceof ProcessInstanceInfosHandler){
processInstance = piih.getProcessInstance();
ProcessEngineClient.getInstance().resumeProcessInstance(new ResumeInstanceHandler(processInstance));
}
}
}
| [
"andre.kuehnie@gmail.com"
] | andre.kuehnie@gmail.com |
438dce5a708d303562c18d213b6967babbaa4754 | 7af9a322cbbab1eac9c70ade4b1be266c3392665 | /src/test/java/week10d02/MaxTravelTest.java | b00b61f816637884dbaa59a353a4df4dd8688425 | [] | no_license | henimia/training-solutions | 3ac8335120f5fa0b8979997bb29933a0683ded12 | 6fdbfd49baac584266b86c9dc35a9f6a7d1826eb | refs/heads/master | 2023-03-25T04:25:14.148219 | 2021-03-16T10:01:15 | 2021-03-16T10:01:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 305 | java | package week10d02;
import org.junit.jupiter.api.Test;
import java.util.List;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class MaxTravelTest {
@Test
void getMaxIndex() {
assertEquals(3,new MaxTravel().getMaxIndex(List.of(12,12,0,3,3,3,3,3,4,4,12)));
}
}
| [
"66733574+manikola@users.noreply.github.com"
] | 66733574+manikola@users.noreply.github.com |
ce93200258f9adcb150e13b1a1bd671c5b1c791d | 3f169749adceb8a84803c561467e391ef381d7d0 | /workspace/studySystem/src/view/objects/ModuleManager.java | dc6e5dfa236280b6df5effc0476eb656bb42fa9a | [] | no_license | Cryzas/FHDW2 | 969619012ad05f455d04dce0f3413f53cedd9351 | 8bc31d4072cc9ed7ddf86154cdf08f0f9a55454b | refs/heads/master | 2021-01-23T05:25:00.249669 | 2017-10-11T06:24:17 | 2017-10-11T06:24:17 | 86,296,546 | 3 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,675 | java |
package view.objects;
import view.*;
import view.visitor.*;
/* Additional import section end */
public class ModuleManager extends ViewObject implements ModuleManagerView{
protected java.util.Vector<ModuleAbstractView> modules;
public ModuleManager(java.util.Vector<ModuleAbstractView> modules,long id, long classId) {
/* Shall not be used. Objects are created on the server only */
super(id, classId);
this.modules = modules;
}
static public long getTypeId() {
return 145;
}
public long getClassId() {
return getTypeId();
}
public java.util.Vector<ModuleAbstractView> getModules()throws ModelException{
return this.modules;
}
public void setModules(java.util.Vector<ModuleAbstractView> newValue) throws ModelException {
this.modules = newValue;
}
public void accept(AnythingVisitor visitor) throws ModelException {
visitor.handleModuleManager(this);
}
public <R> R accept(AnythingReturnVisitor<R> visitor) throws ModelException {
return visitor.handleModuleManager(this);
}
public <E extends view.UserException> void accept(AnythingExceptionVisitor<E> visitor) throws ModelException, E {
visitor.handleModuleManager(this);
}
public <R, E extends view.UserException> R accept(AnythingReturnExceptionVisitor<R, E> visitor) throws ModelException, E {
return visitor.handleModuleManager(this);
}
public void resolveProxies(java.util.HashMap<String,Object> resultTable) throws ModelException {
java.util.Vector<?> modules = this.getModules();
if (modules != null) {
ViewObject.resolveVectorProxies(modules, resultTable);
}
}
public void sortSetValuedFields() throws ModelException {
}
public ViewObjectInTree getChild(int originalIndex) throws ModelException{
int index = originalIndex;
if(index < this.getModules().size()) return new ModulesModuleManagerWrapper(this, originalIndex, (ViewRoot)this.getModules().get(index));
index = index - this.getModules().size();
return null;
}
public int getChildCount() throws ModelException {
return 0
+ (this.getModules().size());
}
public boolean isLeaf() throws ModelException {
return true
&& (this.getModules().size() == 0);
}
public int getIndexOfChild(Object child) throws ModelException {
int result = 0;
java.util.Iterator<?> getModulesIterator = this.getModules().iterator();
while(getModulesIterator.hasNext()){
if(getModulesIterator.next().equals(child)) return result;
result = result + 1;
}
return -1;
}
public int getRowCount(){
return 0 ;
}
public Object getValueAt(int rowIndex, int columnIndex){
try {
if(columnIndex == 0){
} else {
}
throw new ModelException("Table index out of bounds!", -1);
} catch (ModelException e){
return e.getMessage();
}
}
public boolean isRowEditable(int index){
return true;
}
public void setValueAt(String newValue, int rowIndex) throws Exception {
}
public boolean hasTransientFields(){
return false;
}
/* Start of protected part that is not overridden by persistence generator */
public javafx.scene.image.Image getImage() {
return super.getImage();
}
/* End of protected part that is not overridden by persistence generator */
}
| [
"jensburczyk96@gmail.com"
] | jensburczyk96@gmail.com |
a82e5c0cbc9a4a785b020986dab028dadc88b8bf | e5f9de773b00f5f02925d146feff7ec8e1217038 | /src/main/java/org/eel/kitchen/jsonschema/validator/ObjectValidator.java | 6f7f08ab1f584d08866df869b16428b4ef16676c | [] | no_license | kedar031/json-schema-validator | 49a70ced60f4d926d0847387af9d29199134958b | 980f3985ee40e4b596b2824d6bb37171a88a45e1 | refs/heads/master | 2021-01-17T22:27:08.266828 | 2013-01-03T22:24:15 | 2013-01-03T22:24:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,427 | java | /*
* Copyright (c) 2012, Francis Galiegue <fgaliegue@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Lesser GNU General Public License as
* published by the Free Software Foundation, either version 3 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
* Lesser GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.eel.kitchen.jsonschema.validator;
import com.fasterxml.jackson.databind.JsonNode;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Sets;
import org.eel.kitchen.jsonschema.ref.JsonPointer;
import org.eel.kitchen.jsonschema.report.ValidationReport;
import org.eel.kitchen.jsonschema.util.RhinoHelper;
import org.eel.kitchen.jsonschema.util.jackson.CustomJsonNodeFactory;
import org.eel.kitchen.jsonschema.util.jackson.JacksonUtils;
import java.util.Map;
import java.util.Set;
/**
* Validator called for object instance children
*
* <p>Unlike what happens with arrays, a same child/value instance of an object
* may have to satisfy more than one schema. For a given property name, the list
* of schemas is constructed as follows:</p>
*
* <ul>
* <li>if the property name has an exact match in {@code properties},
* the corresponding schema is added to the list;</li>
* <li>for all regexes in {@code patternProperties}, if the property name
* matches the regex, the corresponding schema is added to the list;</li>
* <li>if, at this point, the list is empty, then the contents of
* {@code additionalProperties} is added to the list (an empty schema if
* {@code additionalProperties} is either {@code true} or nonexistent).</li>
* </ul>
*
*/
final class ObjectValidator
implements JsonValidator
{
private final JsonNode additionalProperties;
private final Map<String, JsonNode> properties;
private final Map<String, JsonNode> patternProperties;
ObjectValidator(final JsonNode schema)
{
JsonNode node;
node = schema.path("additionalProperties");
additionalProperties = node.isObject() ? node
: CustomJsonNodeFactory.emptyObject();
node = schema.path("properties");
properties = JacksonUtils.asMap(node);
node = schema.path("patternProperties");
patternProperties = JacksonUtils.asMap(node);
}
@Override
public void validate(final ValidationContext context,
final ValidationReport report, final JsonNode instance)
{
final JsonPointer pwd = report.getPath();
final Map<String, JsonNode> map = JacksonUtils.asMap(instance);
for (final Map.Entry<String, JsonNode> entry: map.entrySet()) {
report.setPath(pwd.append(entry.getKey()));
if (!validateOne(context, report, entry))
break;
}
report.setPath(pwd);
}
private boolean validateOne(final ValidationContext context,
final ValidationReport report, final Map.Entry<String, JsonNode> entry)
{
final String key = entry.getKey();
final JsonNode value = entry.getValue();
final Set<JsonNode> subSchemas = getSchemas(key);
JsonValidator validator;
for (final JsonNode subSchema: subSchemas) {
validator = context.newValidator(subSchema);
validator.validate(context, report, value);
if (report.hasFatalError())
return false;
}
return true;
}
@VisibleForTesting
Set<JsonNode> getSchemas(final String key)
{
final Set<JsonNode> ret = Sets.newHashSet();
if (properties.containsKey(key))
ret.add(properties.get(key));
for (final Map.Entry<String, JsonNode> entry:
patternProperties.entrySet())
if (RhinoHelper.regMatch(entry.getKey(), key))
ret.add(entry.getValue());
if (ret.isEmpty())
ret.add(additionalProperties);
return ImmutableSet.copyOf(ret);
}
}
| [
"fgaliegue@gmail.com"
] | fgaliegue@gmail.com |
87ba5db5d612395cd4c798166d9110d359dfc609 | d4516611e08afbcd9382a2dd1ecf418f55e18f44 | /market/src/com/market/domain/Member.java | f19aab22e1f4ed60800fcd2b5a203eb39409bfb1 | [] | no_license | LimJaegyun/market | 1b8784decefdf9b801a048aa066987e2f9f5bb81 | 147590ffe2c03e7037bdd2686396960dc5ebed6c | refs/heads/master | 2020-03-25T22:33:39.458702 | 2018-08-28T01:35:22 | 2018-08-28T01:35:22 | 144,229,055 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,061 | java | package com.market.domain;
import java.io.Serializable;
public class Member implements Serializable {
private int memberSeq;
private String id;
private String password;
private String nick;
private int profileSeq;
private int saleItem;
private int saleCount;
private int visit;
private int store;
public Member() {
}
public Member(int memberSeq, String id, String password, String nick, int profileSeq, int saleItem, int saleCount,
int visit, int store) {
this.memberSeq = memberSeq;
this.id = id;
this.password = password;
this.nick = nick;
this.profileSeq = profileSeq;
this.saleItem = saleItem;
this.saleCount = saleCount;
this.visit = visit;
this.store = store;
}
public int getMemberSeq() {
return memberSeq;
}
public void setMemberSeq(int memberSeq) {
this.memberSeq = memberSeq;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getNick() {
return nick;
}
public void setNick(String nick) {
this.nick = nick;
}
public int getProfileSeq() {
return profileSeq;
}
public void setProfileSeq(int profileSeq) {
this.profileSeq = profileSeq;
}
public int getSaleItem() {
return saleItem;
}
public void setSaleItem(int saleItem) {
this.saleItem = saleItem;
}
public int getSaleCount() {
return saleCount;
}
public void setSaleCount(int saleCount) {
this.saleCount = saleCount;
}
public int getVisit() {
return visit;
}
public void setVisit(int visit) {
this.visit = visit;
}
public int getStore() {
return store;
}
public void setStore(int store) {
this.store = store;
}
@Override
public String toString() {
return "Member [memberSeq=" + memberSeq + ", id=" + id + ", password=" + password + ", nick=" + nick
+ ", profileSeq=" + profileSeq + ", saleItem=" + saleItem + ", saleCount=" + saleCount + ", visit=" + visit
+ ", store=" + store + "]";
}
}
| [
"admin@example.com"
] | admin@example.com |
2b2ab299465d4dcbe769bf7274ce2c3f717b0ba1 | f13e2382359691b6245f8574573fd3126c2f0a90 | /hst/commons/src/main/java/org/hippoecm/hst/core/jcr/EventListenerItemImpl.java | 17b4d8bb0d803504080b7d265d286bd427c5dced | [
"Apache-2.0"
] | permissive | CapeSepias/hippo-1 | cd8cbbf2b0f6cd89806a3861c0214d72ac5ee80f | 3a7a97ec2740d0e3745859f7067666fdafe58a64 | refs/heads/master | 2023-04-27T21:04:19.976319 | 2013-12-13T13:01:51 | 2013-12-13T13:01:51 | 306,922,672 | 0 | 0 | NOASSERTION | 2023-04-17T17:42:23 | 2020-10-24T16:17:22 | null | UTF-8 | Java | false | false | 5,154 | java | /*
* Copyright 2008-2013 Hippo B.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.hippoecm.hst.core.jcr;
import javax.jcr.observation.Event;
import javax.jcr.observation.EventListener;
public class EventListenerItemImpl implements EventListenerItem {
protected int eventTypes;
protected String absolutePath;
protected boolean deep;
protected String [] uuids;
protected String [] nodeTypeNames;
protected boolean noLocal;
protected EventListener eventListener;
public int getEventTypes() {
return eventTypes;
}
public void setEventTypes(int eventTypes) {
this.eventTypes = eventTypes;
}
public boolean isNodeAddedEnabled() {
return (Event.NODE_ADDED == (Event.NODE_ADDED & this.eventTypes));
}
public void setNodeAddedEnabled(boolean nodeAddedEnabled) {
if(nodeAddedEnabled) {
this.eventTypes |= Event.NODE_ADDED;
} else {
// flip the bit
this.eventTypes &= (0xFF^Event.NODE_ADDED);
}
}
public boolean isNodeRemovedEnabled() {
return (Event.NODE_REMOVED == (Event.NODE_REMOVED & this.eventTypes));
}
public void setNodeRemovedEnabled(boolean nodeRemovedEnabled) {
if(nodeRemovedEnabled) {
this.eventTypes |= Event.NODE_REMOVED;
} else {
// flip the bit
this.eventTypes &= (0xFF^Event.NODE_REMOVED);
}
}
public boolean isPropertyAddedEnabled() {
return (Event.PROPERTY_ADDED == (Event.PROPERTY_ADDED & this.eventTypes));
}
public void setPropertyAddedEnabled(boolean propertyAddedEnabled) {
if(propertyAddedEnabled) {
this.eventTypes |= Event.PROPERTY_ADDED;
} else {
// flip the bit
this.eventTypes &= (0xFF^Event.PROPERTY_ADDED);
}
}
public boolean isPropertyChangedEnabled() {
return (Event.PROPERTY_CHANGED == (Event.PROPERTY_CHANGED & this.eventTypes));
}
public void setPropertyChangedEnabled(boolean propertyChangedEnabled) {
if(propertyChangedEnabled) {
this.eventTypes |= Event.PROPERTY_CHANGED;
} else {
// flip the bit
this.eventTypes &= (0xFF^Event.PROPERTY_CHANGED);
}
}
public boolean isPropertyRemovedEnabled() {
return (Event.PROPERTY_REMOVED == (Event.PROPERTY_REMOVED & this.eventTypes));
}
public void setPropertyRemovedEnabled(boolean propertyRemovedEnabled) {
if(propertyRemovedEnabled) {
this.eventTypes |= Event.PROPERTY_REMOVED;
} else {
// flip the bit
this.eventTypes &= (0xFF^Event.PROPERTY_REMOVED);
}
}
public String getAbsolutePath() {
return absolutePath;
}
public void setAbsolutePath(String absolutePath) {
this.absolutePath = absolutePath;
}
public boolean isDeep() {
return deep;
}
public void setDeep(boolean deep) {
this.deep = deep;
}
public String[] getUuids() {
if (uuids == null) {
return null;
}
String [] cloned = new String[uuids.length];
System.arraycopy(uuids, 0, cloned, 0, uuids.length);
return cloned;
}
public void setUuids(String[] uuids) {
if (uuids == null) {
this.uuids = null;
} else {
this.uuids = new String[uuids.length];
System.arraycopy(uuids, 0, this.uuids, 0, uuids.length);
}
}
public String[] getNodeTypeNames() {
if (nodeTypeNames == null) {
return null;
}
String [] cloned = new String[nodeTypeNames.length];
System.arraycopy(nodeTypeNames, 0, cloned, 0, nodeTypeNames.length);
return cloned;
}
public void setNodeTypeNames(String[] nodeTypeNames) {
if (nodeTypeNames == null) {
this.nodeTypeNames = null;
} else {
this.nodeTypeNames = new String[nodeTypeNames.length];
System.arraycopy(nodeTypeNames, 0, this.nodeTypeNames, 0, nodeTypeNames.length);
}
}
public boolean isNoLocal() {
return noLocal;
}
public void setNoLocal(boolean noLocal) {
this.noLocal = noLocal;
}
public EventListener getEventListener() {
return eventListener;
}
public void setEventListener(EventListener eventListener) {
this.eventListener = eventListener;
}
}
| [
"m.denburger@onehippo.com"
] | m.denburger@onehippo.com |
4d21de97a38c2347ed9328dc4179b27611d86119 | aed0236a359c0a603566cf56ba7dca975eba2311 | /dop/group-01/release-3/fixed-date-manage-category/src/reminder/fixeddatemanagecategory/br/unb/cic/reminders/model/Reminder.java | 1446b4f5ace0d504434a5f01d8972c457bd68d8e | [] | no_license | Reminder-App/reminder-tests | e1fde7bbd262e1e6161b979a2a69f9af62cc06d7 | 8497ac2317f174eb229fb85ae66f1086ce0e0e4d | refs/heads/master | 2020-03-21T05:43:08.928315 | 2018-07-01T20:16:09 | 2018-07-01T20:16:09 | 138,175,840 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,277 | java | package reminder.fixeddatemanagecategory.br.unb.cic.reminders.model;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import reminder.fixeddatemanagecategory.util.Patterns;
import
reminder.fixeddatemanagecategory.br.unb.cic.framework.persistence.DBTypes;
import
reminder.fixeddatemanagecategory.br.unb.cic.framework.persistence.annotations.Column;
import
reminder.fixeddatemanagecategory.br.unb.cic.framework.persistence.annotations.Entity;
import
reminder.fixeddatemanagecategory.br.unb.cic.framework.persistence.annotations.ForeignKey;
import
reminder.fixeddatemanagecategory.br.unb.cic.reminders.view.InvalidHourException;
/*** added by dManageReminder* modified by dStaticCategory
*/
@Entity(table = "REMINDER")
public class Reminder {
@Column(column = "PK", primaryKey = true, type = DBTypes.LONG)
private Long id;
@Column(column = "TEXT", type = DBTypes.TEXT)
private String text;
@Column(column = "DETAILS", type = DBTypes.TEXT)
private String details;
@Column(column = "DATE", type = DBTypes.TEXT)
private String date;
@Column(column = "HOUR", type = DBTypes.TEXT)
private String hour;
@Column(column = "DONE", type = DBTypes.INT)
private boolean done;
public Reminder() {
}
public Reminder(Long id, String text) {
this.id = id;
this.text = text;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getText() {
return text;
}
public void setText(String text) {
if(text == null || text.trim().equals("")) {
throw new InvalidTextException(text);
}
this.text = text;
}
public String getDetails() {
return details;
}
public void setDetails(String details) {
if(details == null || details.trim().equals("")) {
this.details = null;
}
else {
this.details = details;
}
}
public String getDate() {
return date;
}
public void setDate(String date) {
if(!(date == null || date.equals("")) && ! checkFormat(date,
Patterns.DATE_PATTERN)) {
throw new InvalidDateException(date);
}
this.date = date;
}
public String getHour() {
return hour;
}
public void setHour(String hour) {
if(!(hour == null || hour.equals("")) && ! checkFormat(hour,
Patterns.HOUR_PATTERN)) {
throw new InvalidHourException(hour);
}
this.hour = hour;
}
private boolean checkFormat(String date, String pattern) {
Pattern p = Pattern.compile(pattern);
Matcher m = p.matcher(date);
return m.matches();
}
/*** modified by dStaticCategory
*/
public boolean isValid() {
return(category != null && isValid_original0());
}
public boolean isDone() {
return done;
}
public void setDone(boolean done) {
this.done = done;
}
public int getDone() {
return done ? 1 : 0;
}
public void setDone(int done) {
this.done =(done == 0 ? false : true);
}
/*** added by dStaticCategory
*/
@Column(column = "FK_CATEGORY", type = DBTypes.LONG)
@ForeignKey(mappedBy = "id")
private Category category;
/*** added by dStaticCategory
*/
public Category getCategory() {
return category;
}
/*** added by dStaticCategory
*/
public void setCategory(Category category) {
this.category = category;
}
/*** modified by dStaticCategory
*/
public boolean isValid_original0() {
return(text != null && date != null && hour != null);
}
} | [
"leomarcamargodesouza@gmail.com"
] | leomarcamargodesouza@gmail.com |
4985ec38d8a55788e28710be6ba3162455a063a1 | 793c62c2034119829bf18e801ee1912a8b7905a7 | /pattern/src/main/java/com/luolei/pattern/chain/ch2/Congress.java | 9ceba1031cf54a8466ccc3e6d09085e446e591fb | [] | no_license | askluolei/practice | 5b087a40535b5fb038fb9aa25831d884476d27c9 | 044b13781bc876fd2472d7dfc3e709544d26c546 | refs/heads/master | 2021-09-10T15:15:58.199101 | 2018-03-28T09:17:57 | 2018-03-28T09:17:57 | 108,428,724 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 534 | java | package com.luolei.pattern.chain.ch2;
/**
* 董事会类:具体处理者
*
* @author luolei
* @date 2017-03-30 15:45
*/
public class Congress extends Approver {
public Congress(String name) {
super(name);
}
//具体请求处理方法
public void processRequest(PurchaseRequest request) {
System.out.println("召开董事会审批采购单:" + request.getNumber() + ",金额:" + request.getAmount() + "元,采购目的:" + request.getPurpose() + "。"); //处理请求
}
}
| [
"askluolei@gmail.com"
] | askluolei@gmail.com |
0c96485635fd55905b26cd92936b379a38fed52d | 5122a4619b344c36bfc969283076c12419f198ea | /src/test/java/com/snapwiz/selenium/tests/staf/learningspaces/testcases/anonymous/InsLSPostedADisscussion.java | 2c3c17f366d2ce392779e20d26f6448ae2cad964 | [] | no_license | mukesh89m/automation | 0c1e8ff4e38e8e371cc121e64aacc6dc91915d3a | a0b4c939204af946cf7ca7954097660b2a0dfa8d | refs/heads/master | 2020-05-18T15:30:22.681006 | 2018-06-09T15:14:11 | 2018-06-09T15:14:11 | 32,666,214 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,835 | java | package com.snapwiz.selenium.tests.staf.learningspaces.testcases.anonymous;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.openqa.selenium.By;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.Test;
import com.snapwiz.selenium.tests.staf.learningspaces.Driver;
import com.snapwiz.selenium.tests.staf.learningspaces.apphelper.LoginUsingLTI;
import com.snapwiz.selenium.tests.staf.learningspaces.apphelper.Navigator;
import com.snapwiz.selenium.tests.staf.learningspaces.apphelper.PostMessage;
import com.snapwiz.selenium.tests.staf.learningspaces.apphelper.PostMessageValidate;
import com.snapwiz.selenium.tests.staf.learningspaces.apphelper.RandomString;
public class InsLSPostedADisscussion extends Driver {
private static Logger logger=Logger.getLogger("com.snapwiz.selenium.tests.staf.learningspaces.testcases.anonymous.InsLSPostedADisscussion");
/*
* 204-
*/
@Test(priority=1,enabled=true)
public void defaultMessage()
{
try
{
new LoginUsingLTI().ltiLogin("204_R24");
new Navigator().NavigateTo("Course Stream");
driver.findElement(By.className("ls-post-tab")).click();
String labelNodeText = driver.switchTo().frame("iframe-user-text-input-div").findElement(By.xpath("/html/body/font")).getText();
System.out.println("labelNodeText: "+labelNodeText);
driver.switchTo().defaultContent();
if(labelNodeText.equals("Share your knowledge or seek answers..."))
{
logger.log(Level.INFO,"Testcase DefaultMessage Pass");
}
else
{
logger.log(Level.INFO,"Testcase DefaultMessage Fail");
Assert.fail("Text box say by default:Share your knowledge or seek answers not shown");
}
}
catch(Exception e)
{
Assert.fail("Exception in testcase defaultMessage in class InsLSPostedADisscussion",e);
}
}
@Test(priority=2,enabled=true)
public void postedDiscussionAddedInStream()
{
try
{
new LoginUsingLTI().ltiLogin("204_R24");
new Navigator().NavigateTo("Course Stream");
String randomtext = new RandomString().randomstring(6);
new PostMessage().postmessage(randomtext);
boolean poststatus = new PostMessageValidate().postMessageValidateForInstructor(randomtext);
if(poststatus == false)
{
Assert.fail("Post NOT posted in course stream successfully");
}
}
catch(Exception e)
{
Assert.fail("Exception in testcase postedDiscussionAddedInStream in class InsLSPostedADisscussion",e);
}
}
}
| [
"mukesh.mandal@github.com"
] | mukesh.mandal@github.com |
94959c85f242d7b29c25432d0322196e9535f56b | 8b82369d50b41495d46f3403dc1051a7bdcb9c70 | /mprolog.resource.pl/src-gen/mprolog/resource/pl/mopp/PlScannerlessParser.java | 8668f4c51948d408f69e9ad8415bf9f726270235 | [] | no_license | githubbrunob/DSLTransGIT | 7dd106ffdddbd0eeda4642c931c41d2ceb4961c2 | efbbb5dacc02d5cb3365422a46cf00805baab13e | refs/heads/master | 2020-04-07T03:53:43.455696 | 2017-04-30T20:44:23 | 2017-04-30T20:44:23 | 12,057,373 | 1 | 1 | null | 2017-09-12T13:43:19 | 2013-08-12T14:08:05 | Java | UTF-8 | Java | false | false | 190 | java | /**
* <copyright>
* </copyright>
*
*
*/
package mprolog.resource.pl.mopp;
/**
* This empty class was generated to overwrite exiting classes.
*/
public class PlScannerlessParser {
}
| [
"mailbrunob@gmail.com"
] | mailbrunob@gmail.com |
e6469e144598059dfe2ffdad2a86855d83996020 | c827a8b6af4228e50a5977c69920de95a8927903 | /zxy-game-server/src/com/jtang/gameserver/module/extapp/invite/helper/InvitePushHelper.java | b2a5b34fda93f3ac8991ad4e21370b5767f38a78 | [] | no_license | tyler-he/wkzj | 15012bf29082d941cfbe2bb725db1de54390d410 | 5e43b83a85e11414c12962d368c2dfdf3cb23d25 | refs/heads/master | 2023-03-20T03:47:18.275196 | 2019-03-07T09:42:13 | 2019-03-07T09:42:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,617 | java | package com.jtang.gameserver.module.extapp.invite.helper;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.jiatang.common.ModuleName;
import com.jtang.core.protocol.Response;
import com.jtang.core.result.ObjectReference;
import com.jtang.gameserver.dbproxy.entity.Invite;
import com.jtang.gameserver.module.extapp.invite.handler.InviteCmd;
import com.jtang.gameserver.module.extapp.invite.handler.response.InviteResponse;
import com.jtang.gameserver.module.extapp.invite.type.ReceiveStatusType;
import com.jtang.gameserver.server.session.PlayerSession;
@Component
public class InvitePushHelper {
@Autowired
PlayerSession playerSession;
private static ObjectReference<InvitePushHelper> ref = new ObjectReference<InvitePushHelper>();
@PostConstruct
protected void init() {
ref.set(this);
}
private static InvitePushHelper getInstance() {
return ref.get();
}
/**
*
* @param invite 邀请着
* @param inviteName 被邀请者名字
*/
public static void pushInviteReward(Invite invite, String inviteName){
InviteResponse response = new InviteResponse();
response.inviteCode = invite.inviteCode;
response.inviteName = inviteName;
response.isInvite = invite.targetInvite == 0L? ReceiveStatusType.DID_NOT_RECEIVE.getType() : ReceiveStatusType.CAN_RECEIVE.getType();
response.rewardMap = invite.rewardMap;
Response rsp = Response.valueOf(ModuleName.INVITE, InviteCmd.PUSH_REWARD, response.getBytes());
getInstance().playerSession.push(invite.actorId, rsp);
}
}
| [
"ityuany@126.com"
] | ityuany@126.com |
68b9d0632ab7c70225862727294419f72d690530 | c4623aa95fb8cdd0ee1bc68962711c33af44604e | /src/com/yelp/android/database/savedsearch/f.java | a2731c1c5b780f4823963247e569cdff74900458 | [] | 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 | 567 | java | package com.yelp.android.database.savedsearch;
import android.database.sqlite.SQLiteDatabase;
import com.yelp.android.database.v;
import com.yelp.android.database.z;
class f
implements v
{
f(c paramc) {}
public Object a(SQLiteDatabase paramSQLiteDatabase)
{
new z(c.a(a), paramSQLiteDatabase).a();
new z(c.c(a), paramSQLiteDatabase).a();
new z(c.b(a), paramSQLiteDatabase).a();
return null;
}
}
/* Location:
* Qualified Name: com.yelp.android.database.savedsearch.f
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/ | [
"reverseengineeringer@hackeradmin.com"
] | reverseengineeringer@hackeradmin.com |
f08c26870d0288b40a6fa9cc836b49005444b3fc | e12af772256dccc4f44224f68b7a3124673d9ced | /jitsi/src/net/java/sip/communicator/util/swing/SipCommFileFilter.java | a016a9c5424889529aec3d768dc55e34753ea2f1 | [] | no_license | leshikus/dataved | bc2f17d9d5304b3d7c82ccb0f0f58c7abcd25b2a | 6c43ab61acd08a25b21ed70432cd0294a5db2360 | refs/heads/master | 2021-01-22T02:33:58.915867 | 2016-11-03T08:35:22 | 2016-11-03T08:35:22 | 32,135,163 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,717 | java | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.util.swing;
import java.io.File;
import javax.swing.filechooser.FileFilter;
import java.io.FilenameFilter;
/**
* The purpose of this interface is to provide an generic file filter type for
* the SipCommFileChooser, which is used either as an AWT FileDialog, either as
* a Swing JFileChooser.
*
* Both of these dialogs use their own filter type, FileFilter (class) for
* JFileChooser and FilenameFilter (interface) for FileDialog.
*
* SipCommFileFilter acts as both an implementation and an heritage from these
* two filters. To use a your own file filter with a SipCommFileChooser, you
* just have to extend from SipCommFileFilter and redefine at least the method
* 'public boolean accept(File f)' which is described in the Java FileFilter
* class.
*
* You won't have to redefine 'public boolean accept(File dir, String name)'
* from the Java FilenameFilter interface since it's done here: the method is
* transfered toward the accept method of Java FileFilter class.
*
* @author Valentin Martinet
*/
public abstract class SipCommFileFilter
extends FileFilter
implements FilenameFilter
{
/**
* Avoid to be obliged to implement
* 'public boolean accept(File dir, String name)'
* in your own file filter.
*
* @param dir file's parent directory
* @param name file's name
* @return boolean if the file is accepted or not
*/
public boolean accept(File dir, String name)
{
return accept(new File(dir.getAbsolutePath(), name));
}
}
| [
"alexei.fedotov@917aa43a-1baf-11df-844d-27937797d2d2"
] | alexei.fedotov@917aa43a-1baf-11df-844d-27937797d2d2 |
a7ce1a06969d7857792ec6a5b78d93d7eca44f70 | 6dc260a47e95f339e13fb1479f877879273912f3 | /app/src/main/java/com/example/parking/activities/MainActivity.java | 5f02373fe4049364ef882400906eb1e839599e92 | [] | no_license | ahmedelmoselhy98/Parking | e3908a863299baa46922c8976ed264d3d824538c | 6ba59efe249d243249a71a81b626ddaee8da2f52 | refs/heads/master | 2020-04-21T20:40:55.991758 | 2019-02-09T10:08:01 | 2019-02-09T10:08:01 | 169,853,777 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 374 | java | package com.example.parking.activities;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.example.parking.R;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
| [
"ahmedelmoselhy98@gmail.com"
] | ahmedelmoselhy98@gmail.com |
2a149de0995438cb76564c83fad72790f9a0cc9f | fa8d29ec1ad7898df59db9988feed99a5c178398 | /org.miso.wizard.instantiate.modular.pattern/src/org/miso/wizard/instantiate/modular/pattern/content/provider/GraphContentProvider.java | 2c33cbbf1c7eb38c133a19eed638e71f99e92fda | [] | no_license | antoniogarmendia/EMF-Splitter | d40aa2ee1d70638c0637d0520946815b80a61e86 | ceb33e26b964407b11f4ec80b7161bfec2f95d83 | refs/heads/master | 2021-04-06T12:23:28.791083 | 2018-05-17T17:08:40 | 2018-05-17T17:08:40 | 42,922,455 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 5,266 | java | package org.miso.wizard.instantiate.modular.pattern.content.provider;
import java.util.Iterator;
import org.eclipse.emf.common.util.BasicEList;
import org.eclipse.emf.common.util.EList;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.swt.widgets.Widget;
import MetaModelGraph.Composition;
import MetaModelGraph.Node;
import MetaModelGraph.Relation;
import MetaModelGraph.SubClass;
import MetaModelGraph.SubGraph;
public class GraphContentProvider implements ITreeContentProvider{
private TreeViewer eTreeViewer;
public GraphContentProvider(TreeViewer pTreeViewer) {
super();
this.eTreeViewer = pTreeViewer;
}
@Override
public Object[] getElements(Object inputElement) {
return (Object[])inputElement;
}
@Override
public Object[] getChildren(Object parentElement) {
if(parentElement instanceof Relation){
Node node = null;
if(parentElement instanceof Composition)
node = ((Composition) parentElement).getTarget();
else if (parentElement instanceof SubClass)
node = ((SubClass) parentElement).getTarget();
EList<Relation> eListNodes = new BasicEList<Relation>();
eListNodes.addAll(getCompositions(node));
eListNodes.addAll(getCompositionsSubClasses(node));
return eListNodes.toArray();
}
return null;
}
@Override
public Object getParent(Object element) {
return null;
}
@Override
public boolean hasChildren(Object element) {
Widget widget = this.eTreeViewer.testFindItem(element);
if(widget instanceof TreeItem){
TreeItem treeItem = (TreeItem) widget;
boolean expanded = treeItem.getExpanded();
if(expanded==false){
if(isVisible(element) == true)
return false;
}
}
if(element instanceof Relation){
Node node = null;
if(element instanceof Composition)
node = ((Composition) element).getTarget();
else if(element instanceof SubClass)
node = ((SubClass) element).getTarget();
SubGraph subGraph = (SubGraph) node.eContainer();
if(subGraph.getRoot().getEClass().equals(node.getEClass()))
return false;
if(node.getCompositions().size()!=0){
boolean checkComposition = checkCompositions(node);
if(checkComposition == true)
return true;
}
if(node.getDirectSubclasses().size()!=0)
return true;
}
return false;
}
public boolean checkCompositions(Node node){
Iterator<Composition> itCompositions = node.getCompositions().iterator();
while (itCompositions.hasNext()) {
Composition composition = (Composition) itCompositions.next();
if(!composition.getTarget().equals(node))
return true;
}
return false;
}
public boolean checkSubClasses(Node node){
Iterator<SubClass> itSubClasses = node.getSubClasses().iterator();
while (itSubClasses.hasNext()) {
SubClass subClass = (SubClass) itSubClasses.next();
Iterator<Composition> itCompositions = subClass.getTarget().getCompositions().iterator();
while (itCompositions.hasNext()) {
Composition composition = (Composition) itCompositions.next();
if(!composition.getTarget().equals(node))
return true;
}
}
return false;
}
public EList<Composition> getCompositions(Node node){
EList<Composition> eListNodes = new BasicEList<Composition>();
Iterator<Composition> itCompositions = node.getCompositions().iterator();
while (itCompositions.hasNext()) {
Composition composition = (Composition) itCompositions.next();
if(!composition.getTarget().equals(node))
eListNodes.add(composition);
}
return eListNodes;
}
public EList<SubClass> getCompositionsSubClasses(Node node){
EList<SubClass> eListSubClasses = new BasicEList<SubClass>();
Iterator<SubClass> itSubClasses = node.getDirectSubclasses().iterator();
while (itSubClasses.hasNext()) {
SubClass subClass = (SubClass) itSubClasses.next();
eListSubClasses.add(subClass);
}
return eListSubClasses;
}
private boolean isVisible(Object element){
if(element instanceof Composition)
return isVisibleComposition((Composition) element);
else if(element instanceof SubClass)
return isVisibleSubClass((SubClass) element);
return false;
}
private boolean isVisibleComposition(Composition element) {
Composition composition = null;
Object[] arrayExpandedElements = eTreeViewer.getExpandedElements();
for (Object object : arrayExpandedElements) {
if(object instanceof Composition){
composition = (Composition)object;
if(element.getTarget().getEClass().getName().equals(composition.getTarget().getEClass().getName()))
{
if(element.getEReference().getName().equals(composition.getEReference().getName()))
return true;
}
}
}
return false;
}
private boolean isVisibleSubClass(SubClass element){
SubClass subClass = null;
Object[] arrayExpandedElements = eTreeViewer.getExpandedElements();
for (Object object : arrayExpandedElements) {
if(object instanceof SubClass){
subClass = (SubClass)object;
if(element.getTarget().getEClass().getName().equals(subClass.getTarget().getEClass().getName()))
return true;
}
}
return false;
}
}
| [
"antonio.agj@gmail.com"
] | antonio.agj@gmail.com |
fb54c02caaef6bf2d637e63a52e37e04829a6858 | 4f1c62ef3a74bba8aeadef8d5df49dc4ce8ce198 | /src/main/java/com/randioo/race_server/module/fight/component/rule/AbstractRule.java | 0d5d9dc90b512da9b6a4d4cde8a00c53f0c28e1e | [] | no_license | wcyfd/race-server | 449171542e05fd527561bf5eacaaf88dcc1f0f27 | 0432bbfad80d027be53b2af9f3be535275160650 | refs/heads/master | 2021-01-22T04:56:57.811550 | 2017-09-03T15:27:40 | 2017-09-03T15:27:40 | 102,272,993 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 266 | java | package com.randioo.race_server.module.fight.component.rule;
import com.randioo.race_server.entity.bo.Game;
/**
* 抽象规则
*
* @author wcy 2017年8月11日
*
*/
public abstract class AbstractRule {
protected abstract boolean readConfig(Game game);
}
| [
"1101697681@qq.com"
] | 1101697681@qq.com |
bf9651519421f75850061d8d9f0626421ec6a754 | dede6aaca13e69cb944986fa3f9485f894444cf0 | /media-soa/media-soa-provider/src/main/java/com/dangdang/digital/service/IVolumeService.java | 501c734966bc770d8ade2c42b947aa52a88c8948 | [] | no_license | summerxhf/dang | c0d1e7c2c9436a7c7e7f9c8ef4e547279ec5d441 | f1b459937d235637000fb433919a7859dcd77aba | refs/heads/master | 2020-03-27T08:32:33.743260 | 2015-06-03T08:12:45 | 2015-06-03T08:12:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 154 | java | package com.dangdang.digital.service;
import com.dangdang.digital.model.Volume;
public interface IVolumeService extends IBaseService<Volume, Long> {
}
| [
"maqiang@dangdang.com"
] | maqiang@dangdang.com |
2e2a8dafb15a4b8b0c5858ff253d9675a0ab2195 | 1006d2754c0fd1383efa8247dea71383b43066c4 | /core/api/src/test/java/io/novaordis/gld/api/jms/operation/ReceiveTest.java | c0a361378e74574c07eb6da12ca6e4c0c7480388 | [
"Apache-2.0"
] | permissive | ovidiuf/gld | b1658988cb35a604d8dbd1bf49d9a01822ee52ce | 1366e9e8149704b71df4db85e29040afa0549f6f | refs/heads/master | 2021-09-04T18:52:11.470159 | 2018-01-21T09:39:51 | 2018-01-21T09:39:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,130 | java | /*
* Copyright (c) 2017 Nova Ordis LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.novaordis.gld.api.jms.operation;
import io.novaordis.gld.api.configuration.MockLoadConfiguration;
import io.novaordis.gld.api.jms.MockJMSService;
import io.novaordis.gld.api.jms.MockJMSServiceConfiguration;
import io.novaordis.gld.api.jms.Queue;
import io.novaordis.gld.api.jms.embedded.EmbeddedQueue;
import io.novaordis.gld.api.jms.embedded.EmbeddedTextMessage;
import io.novaordis.gld.api.jms.load.ConnectionPolicy;
import io.novaordis.gld.api.jms.load.MockJMSLoadStrategy;
import io.novaordis.gld.api.jms.load.MockReceiveLoadStrategy;
import io.novaordis.gld.api.jms.load.ReceiveLoadStrategy;
import io.novaordis.gld.api.jms.load.SessionPolicy;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
/**
* @author Ovidiu Feodorov <ovidiu@novaordis.com>
* @since 1/23/17
*/
public class ReceiveTest extends JmsOperationTest {
// Constants -------------------------------------------------------------------------------------------------------
// Static ----------------------------------------------------------------------------------------------------------
// Attributes ------------------------------------------------------------------------------------------------------
// Constructors ----------------------------------------------------------------------------------------------------
// Public ----------------------------------------------------------------------------------------------------------
// Tests -----------------------------------------------------------------------------------------------------------
@Test
public void perform_NoTimeout() throws Exception {
ReceiveLoadStrategy ls = new ReceiveLoadStrategy();
MockJMSServiceConfiguration msc = new MockJMSServiceConfiguration();
assertEquals("/jms/test-queue", msc.getQueueName());
msc.setLoadStrategyName(ls.getName());
ls.init(msc, new MockLoadConfiguration());
Receive receive = ls.next(null, null, false);
MockJMSService service = new MockJMSService();
service.setConnectionPolicy(ConnectionPolicy.CONNECTION_PER_RUN);
service.setSessionPolicy(SessionPolicy.SESSION_PER_OPERATION);
service.setLoadStrategy(new MockJMSLoadStrategy());
service.start();
EmbeddedQueue q = (EmbeddedQueue)service.resolveDestination(new Queue("/jms/test-queue"));
q.add(new EmbeddedTextMessage("b3snB3"));
receive.perform(service);
String s = receive.getPayload();
assertEquals("b3snB3", s);
}
@Test
public void perform_WithTimeout() throws Exception {
long timeout = 10L;
ReceiveLoadStrategy ls = new ReceiveLoadStrategy();
ls.setTimeoutMs(timeout);
MockJMSServiceConfiguration msc = new MockJMSServiceConfiguration();
assertEquals("/jms/test-queue", msc.getQueueName());
msc.setLoadStrategyName(ls.getName());
ls.init(msc, new MockLoadConfiguration());
Receive receive = ls.next(null, null, false);
MockJMSService service = new MockJMSService();
service.setConnectionPolicy(ConnectionPolicy.CONNECTION_PER_RUN);
service.setSessionPolicy(SessionPolicy.SESSION_PER_OPERATION);
service.setLoadStrategy(new MockJMSLoadStrategy());
service.start();
EmbeddedQueue q = (EmbeddedQueue)service.resolveDestination(new Queue("/jms/test-queue"));
assertTrue(q.isEmpty());
long t0 = System.currentTimeMillis();
receive.perform(service);
long t1 = System.currentTimeMillis();
String s = receive.getPayload();
assertNull(s);
assertTrue(t1 - t0 >= timeout);
}
// Package protected -----------------------------------------------------------------------------------------------
// Protected -------------------------------------------------------------------------------------------------------
@Override
protected Receive getOperationToTest(String key) throws Exception {
MockReceiveLoadStrategy ms = new MockReceiveLoadStrategy();
Receive r = new Receive(ms);
r.setId(key);
return r;
}
// Private ---------------------------------------------------------------------------------------------------------
// Inner classes ---------------------------------------------------------------------------------------------------
}
| [
"ovidiu@novaordis.com"
] | ovidiu@novaordis.com |
987f56d2fffbc3efdf6ddbcc868f73165393dfba | 0592f165cb20e4f809920549a7090e8efe08c4da | /src/main/java/com/github/tukenuke/tuske/events/customevent/AnvilCombineEvent.java | 3c69294f557541e4f2e017526212e7454118b2f8 | [] | no_license | Tuke-Nuke/TuSKe | 1f33c4e51b859433a3530f228550c41eaf3fe06a | 41ef394cfd99352220fa08293edfe6ec4530fe31 | refs/heads/master | 2022-02-09T22:56:56.942900 | 2022-01-26T14:28:20 | 2022-01-26T14:28:20 | 67,299,518 | 26 | 64 | null | 2017-12-30T05:19:19 | 2016-09-03T16:14:05 | Java | UTF-8 | Java | false | false | 882 | java | package com.github.tukenuke.tuske.events.customevent;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import org.bukkit.inventory.Inventory;
public class AnvilCombineEvent extends Event implements Cancellable{
private static final HandlerList handlers = new HandlerList();
private Inventory inv;
private Player p;
private boolean cancelled;
public AnvilCombineEvent(Player p, Inventory inv) {
this.inv = inv;
this.p = p;
}
public Inventory getInventory() {
return inv;
}
public Player getPlayer(){
return p;
}
public boolean isCancelled() {
return cancelled;
}
public void setCancelled(boolean cancel) {
cancelled = cancel;
}
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
} | [
"leandro.p.alencar@gmail.com"
] | leandro.p.alencar@gmail.com |
d6cf6e04cbf66b9b14c68af7431e4dc7a99e7a41 | 7e697aeba519adbd2fb89a3751e8d236af0a5f3e | /src/main/java/com/ivoronline/springboot_db_query_jpql_named_repository_projections_dto/repositories/PersonRepository.java | c43c5ecc916efb1c750f76fab857a13bb7df6333 | [] | no_license | ivoronline/springboot_db_query_jpql_named_repository_projections_dto | b5c2fd24678df24aff3b4bea8112702fb71093fc | 952a0b841c9683150bd4d07a95ba09ad4e51e379 | refs/heads/master | 2023-07-29T12:41:38.754700 | 2021-09-09T11:47:21 | 2021-09-09T11:47:21 | 404,701,331 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 369 | java | package com.ivoronline.springboot_db_query_jpql_named_repository_projections_dto.repositories;
import com.ivoronline.springboot_db_query_jpql_named_repository_projections_dto.entities.Person;
import org.springframework.data.repository.CrudRepository;
public interface PersonRepository extends CrudRepository<Person, Integer> {
Object selectPerson(String name);
}
| [
"ivoronline@gmail.com"
] | ivoronline@gmail.com |
f236a4bb6fcd79daa3a7bd5628567d87635c8f9d | c90d1cd2a0af90a97a022f6b6bdd9ec72507c898 | /src/jd/plugins/hoster/FileHorstDe.java | 57b9ea677d22f0a6483a02452ec8c2e91aa27602 | [] | no_license | Irbidan/jdownloader | a966066524c5fe3910c57ec65b0707458e84a8c5 | cd15e56568a19c06eb503c5e4c4f8f4f5f84ff5b | refs/heads/master | 2020-04-13T22:00:40.288281 | 2015-07-27T13:42:42 | 2015-07-27T13:42:42 | 40,154,440 | 1 | 1 | null | 2015-08-04T00:23:32 | 2015-08-04T00:23:32 | null | UTF-8 | Java | false | false | 6,915 | java | //jDownloader - Downloadmanager
//Copyright (C) 2010 JD-Team support@jdownloader.org
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation, either version 3 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 General Public License for more details.
//
//You should have received a copy of the GNU General Public License
//along with this program. If not, see <http://www.gnu.org/licenses/>.
package jd.plugins.hoster;
import java.io.IOException;
import jd.PluginWrapper;
import jd.config.Property;
import jd.http.Browser;
import jd.http.URLConnectionAdapter;
import jd.nutils.encoding.Encoding;
import jd.parser.Regex;
import jd.plugins.DownloadLink;
import jd.plugins.DownloadLink.AvailableStatus;
import jd.plugins.HostPlugin;
import jd.plugins.LinkStatus;
import jd.plugins.PluginException;
import jd.plugins.PluginForHost;
import org.appwork.utils.formatter.SizeFormatter;
@HostPlugin(revision = "$Revision$", interfaceVersion = 2, names = { "filehorst.de" }, urls = { "http://(www\\.)?filehorst\\.de/d/[A-Za-z0-9]+" }, flags = { 0 })
public class FileHorstDe extends PluginForHost {
public FileHorstDe(PluginWrapper wrapper) {
super(wrapper);
}
@Override
public String getAGBLink() {
return "http://filehorst.de/agb.php";
}
@Override
public AvailableStatus requestFileInformation(final DownloadLink link) throws IOException, PluginException {
this.setBrowserExclusive();
br.setFollowRedirects(true);
br.getPage(link.getDownloadURL());
if (br.containsHTML("Fehler: Die angegebene Datei wurde nicht gefunden")) {
throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);
}
String filename = br.getRegex("<td>Dateiname:</td><td>([^<>\"]*?)</td></tr>").getMatch(0);
String filesize = br.getRegex("<td>Dateigröße:</td><td>([^<>\"]*?)</td></tr>").getMatch(0);
final String md5 = br.getRegex("<td>MD5:</td><td>([^<>\"]*?)</td></tr>").getMatch(0);
if (filename == null || filesize == null) {
throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);
}
/* Server sometimes sends crippled/encoded filenames */
link.setFinalFileName(encodeUnicode(Encoding.htmlDecode(filename.trim())));
link.setDownloadSize(SizeFormatter.getSize(filesize));
if (md5 != null) {
link.setMD5Hash(md5);
}
return AvailableStatus.TRUE;
}
@SuppressWarnings("deprecation")
@Override
public void handleFree(final DownloadLink downloadLink) throws Exception, PluginException {
requestFileInformation(downloadLink);
String dllink = checkDirectLink(downloadLink, "directlink");
if (dllink == null) {
final String fid = new Regex(downloadLink.getDownloadURL(), "([A-Za-z0-9]+)$").getMatch(0);
final Regex wait_id = br.getRegex(">downloadWait\\((\\d+), \"([^<>\"]*?)\"\\)<");
final String waittime = wait_id.getMatch(0);
final String id = wait_id.getMatch(1);
if (waittime == null || id == null) {
throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);
}
this.sleep(Integer.parseInt(waittime) * 1001l, downloadLink);
br.getPage("http://filehorst.de/downloadQueue.php?file=" + fid + "&fhuid=" + id);
if (br.containsHTML(">Bitte versuche es nochmal")) {
throw new PluginException(LinkStatus.ERROR_TEMPORARILY_UNAVAILABLE, "Server error", 5 * 60 * 1000l);
}
dllink = br.getRegex("\"(downloadNow[^<>\"]*?)\"").getMatch(0);
if (dllink == null) {
throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);
}
dllink = "http://filehorst.de/" + dllink.replace("&", "&");
} else {
/* Wait some time before we can access link again */
this.sleep(5 * 1000l, downloadLink);
}
dl = jd.plugins.BrowserAdapter.openDownload(br, downloadLink, dllink, true, 1);
/* Should never happen */
if (dl.getConnection().getResponseCode() == 503) {
throw new PluginException(LinkStatus.ERROR_HOSTER_TEMPORARILY_UNAVAILABLE, "Wait before starting new downloads", 3 * 60 * 1000l);
}
if (dl.getConnection().getContentType().contains("html")) {
br.followConnection();
if (br.containsHTML("Dein Download konnte nicht gefunden werden")) {
throw new PluginException(LinkStatus.ERROR_TEMPORARILY_UNAVAILABLE, "Unknown server error", 5 * 60 * 1000l);
}
throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);
}
downloadLink.setProperty("directlink", dllink);
dl.startDownload();
}
private String checkDirectLink(final DownloadLink downloadLink, final String property) {
String dllink = downloadLink.getStringProperty(property);
if (dllink != null) {
try {
final Browser br2 = br.cloneBrowser();
URLConnectionAdapter con = br2.openGetConnection(dllink);
if (con.getContentType().contains("html") || con.getLongContentLength() == -1) {
downloadLink.setProperty(property, Property.NULL);
dllink = null;
}
con.disconnect();
} catch (final Exception e) {
downloadLink.setProperty(property, Property.NULL);
dllink = null;
}
}
return dllink;
}
/* Avoid chars which are not allowed in filenames under certain OS' */
private static String encodeUnicode(final String input) {
String output = input;
output = output.replace(":", ";");
output = output.replace("|", "¦");
output = output.replace("<", "[");
output = output.replace(">", "]");
output = output.replace("/", "⁄");
output = output.replace("\\", "∖");
output = output.replace("*", "#");
output = output.replace("?", "¿");
output = output.replace("!", "¡");
output = output.replace("\"", "'");
return output;
}
@Override
public void reset() {
}
@Override
public int getMaxSimultanFreeDownloadNum() {
return 1;
}
@Override
public void resetDownloadlink(final DownloadLink link) {
}
} | [
"psp@ebf7c1c2-ba36-0410-9fe8-c592906822b4"
] | psp@ebf7c1c2-ba36-0410-9fe8-c592906822b4 |
0400a4df689d2a33f7e2abad6cb002f8e9b97643 | 13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3 | /crash-reproduction-new-fitness/results/MATH-100b-1-5-Single_Objective_GGA-WeightedSum-BasicBlockCoverage/org/apache/commons/math/estimation/AbstractEstimator_ESTest.java | 420863a270aaf2a55e80b1e54d783b2ca443de47 | [
"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 | 1,628 | java | /*
* This file was automatically generated by EvoSuite
* Thu May 14 11:39:09 UTC 2020
*/
package org.apache.commons.math.estimation;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.apache.commons.math.estimation.EstimatedParameter;
import org.apache.commons.math.estimation.GaussNewtonEstimator;
import org.apache.commons.math.estimation.SimpleEstimationProblem;
import org.apache.commons.math.estimation.WeightedMeasurement;
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 AbstractEstimator_ESTest extends AbstractEstimator_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
GaussNewtonEstimator gaussNewtonEstimator0 = new GaussNewtonEstimator(2437, 2437, 1.7853723965756338);
SimpleEstimationProblem simpleEstimationProblem0 = new SimpleEstimationProblem();
gaussNewtonEstimator0.initializeEstimate(simpleEstimationProblem0);
gaussNewtonEstimator0.incrementJacobianEvaluationsCounter();
simpleEstimationProblem0.addMeasurement((WeightedMeasurement) null);
EstimatedParameter estimatedParameter0 = new EstimatedParameter("cost relative tolerance is too small ({0}), no further reduction in the sum of squares is possible", 926.4620985);
simpleEstimationProblem0.addParameter(estimatedParameter0);
// Undeclared exception!
gaussNewtonEstimator0.getCovariances(simpleEstimationProblem0);
}
}
| [
"pouria.derakhshanfar@gmail.com"
] | pouria.derakhshanfar@gmail.com |
7913a85d4beef44f34ff3c83a3e2b4638f189359 | 20591524b55c1ce671fd325cbe41bd9958fc6bbd | /common/src/main/java/com/rongdu/common/persistence/interceptor/PaginationInterceptor.java | bffcb67aa2bb83d91e33c6d3ad8d436f426988d8 | [] | no_license | ybak/loans-suniu | 7659387eab42612fce7c0fa80181f2a2106db6e1 | b8ab9bfa5ad8be38dc42c0e02b73179b11a491d5 | refs/heads/master | 2021-03-24T01:00:17.702884 | 2019-09-25T15:28:35 | 2019-09-25T15:28:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,196 | java | /**
*Copyright 2014-2017 www.suniushuke.com All rights reserved.
*/
package com.rongdu.common.persistence.interceptor;
import java.util.Properties;
import org.apache.ibatis.executor.Executor;
import org.apache.ibatis.mapping.BoundSql;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.mapping.SqlSource;
import org.apache.ibatis.plugin.Intercepts;
import org.apache.ibatis.plugin.Invocation;
import org.apache.ibatis.plugin.Plugin;
import org.apache.ibatis.plugin.Signature;
import org.apache.ibatis.reflection.MetaObject;
import org.apache.ibatis.session.ResultHandler;
import org.apache.ibatis.session.RowBounds;
import com.rongdu.common.persistence.Page;
import com.rongdu.common.reflection.Reflections;
import com.rongdu.common.utils.StringUtils;
/**
* 数据库分页插件,只拦截查询语句.
*
* @author poplar.yfyang / thinkgem
* @version 2013-8-28
*/
@Intercepts({ @Signature(type = Executor.class, method = "query", args = { MappedStatement.class, Object.class,
RowBounds.class, ResultHandler.class }) })
public class PaginationInterceptor extends BaseInterceptor {
private static final long serialVersionUID = 1L;
@Override
public Object intercept(Invocation invocation) throws Throwable {
final MappedStatement mappedStatement = (MappedStatement) invocation.getArgs()[0];
Object parameter = invocation.getArgs()[1];
BoundSql boundSql = mappedStatement.getBoundSql(parameter);
Object parameterObject = boundSql.getParameterObject();
// 获取分页参数对象
Page<Object> page = null;
if (parameterObject != null) {
page = convertParameter(parameterObject, page);
}
// 如果设置了分页对象,则进行分页
if (page != null && page.getPageSize() != -1) {
if (page.getPageSize() > 500) {
page.setPageSize(500);
}
if (StringUtils.isBlank(boundSql.getSql())) {
return null;
}
String originalSql = boundSql.getSql().trim();
// 得到总记录数
page.setCount(SQLHelper.getCount(originalSql, null, mappedStatement, parameterObject, boundSql, log));
// 分页查询 本地化对象 修改数据库注意修改实现
String pageSql = SQLHelper.generatePageSql(originalSql, page, DIALECT);
invocation.getArgs()[2] = new RowBounds(RowBounds.NO_ROW_OFFSET, RowBounds.NO_ROW_LIMIT);
BoundSql newBoundSql = new BoundSql(mappedStatement.getConfiguration(), pageSql,
boundSql.getParameterMappings(), boundSql.getParameterObject());
// 解决MyBatis 分页foreach 参数失效 start
if (Reflections.getFieldValue(boundSql, "metaParameters") != null) {
MetaObject mo = (MetaObject) Reflections.getFieldValue(boundSql, "metaParameters");
Reflections.setFieldValue(newBoundSql, "metaParameters", mo);
}
// 解决MyBatis 分页foreach 参数失效 end
MappedStatement newMs = copyFromMappedStatement(mappedStatement, new BoundSqlSqlSource(newBoundSql));
invocation.getArgs()[0] = newMs;
}
return invocation.proceed();
}
@Override
public Object plugin(Object target) {
return Plugin.wrap(target, this);
}
@Override
public void setProperties(Properties properties) {
super.initProperties(properties);
}
private MappedStatement copyFromMappedStatement(MappedStatement ms, SqlSource newSqlSource) {
MappedStatement.Builder builder = new MappedStatement.Builder(ms.getConfiguration(), ms.getId(), newSqlSource,
ms.getSqlCommandType());
builder.resource(ms.getResource());
builder.fetchSize(ms.getFetchSize());
builder.statementType(ms.getStatementType());
builder.keyGenerator(ms.getKeyGenerator());
if (ms.getKeyProperties() != null) {
for (String keyProperty : ms.getKeyProperties()) {
builder.keyProperty(keyProperty);
}
}
builder.timeout(ms.getTimeout());
builder.parameterMap(ms.getParameterMap());
builder.resultMaps(ms.getResultMaps());
builder.cache(ms.getCache());
builder.useCache(ms.isUseCache());
return builder.build();
}
public static class BoundSqlSqlSource implements SqlSource {
BoundSql boundSql;
public BoundSqlSqlSource(BoundSql boundSql) {
this.boundSql = boundSql;
}
public BoundSql getBoundSql(Object parameterObject) {
return boundSql;
}
}
}
| [
"tiramisuy18@163.com"
] | tiramisuy18@163.com |
a006a3f003358ffd40c504b8cbb37ffcbaa704b2 | 671edde022a6522cfd436c4eb53b34f8de757157 | /importer/src/main/java/com/gentics/mesh/musetech/AudioGeneratorRunner.java | 631cf564c85e6bc3fef9c4c949e840fe39f82096 | [
"MIT"
] | permissive | gentics/mesh-musetech-example | dd34d5299f775fd8c22bca5e4c71f02d5dc1dda1 | 680bb1fa6ee1c8b900a30540a5037383a72eaf48 | refs/heads/master | 2021-07-10T21:17:53.906489 | 2020-04-12T11:56:21 | 2020-04-12T11:56:21 | 204,985,096 | 3 | 3 | null | 2020-10-13T16:38:57 | 2019-08-28T17:18:25 | Java | UTF-8 | Java | false | false | 907 | java | package com.gentics.mesh.musetech;
import java.io.File;
import java.io.IOException;
import com.gentics.mesh.musetech.model.exhibit.Exhibit;
import com.gentics.mesh.musetech.model.exhibit.ExhibitList;
import com.gentics.mesh.musetech.text2speech.AudioGenerator;
public class AudioGeneratorRunner {
private static final String TOKEN = "TOKEN";
public static void main(String[] args) throws IOException {
AudioGenerator gen = new AudioGenerator(TOKEN);
ExhibitList list = ExhibitList.load();
for (Exhibit ex : list.getExhibits()) {
File gbFile = new File("data/audio/" + ex.getPublicNumber() + "_gb.wav");
if (!gbFile.exists()) {
gen.text2speech(ex.getEnglish().getDescription(), "gb", gbFile);
}
File deFile = new File("data/audio/" + ex.getPublicNumber() + "_de.wav");
if (!deFile.exists()) {
gen.text2speech(ex.getGerman().getDescription(), "de", deFile);
}
}
}
}
| [
"j.schueth@gentics.com"
] | j.schueth@gentics.com |
c6e77fb8ba988a328f19ea7964997f14d9f97e1d | 3ed18d25cc3596eb1e96b4f3bdd3225ed74311dc | /src/main/java/io/github/nucleuspowered/nucleus/modules/commandspy/config/CommandSpyConfig.java | 2c49e2b7c893b25687ab1cfd6ea12bf2fc832850 | [
"MIT",
"Apache-2.0"
] | permissive | Tollainmear/Nucleus | ab197b89b4465aaa9121a8d92174ab7c58df3568 | dfd88cb3b2ab6923548518765a712c190259557b | refs/heads/sponge-api/7 | 2021-01-25T15:04:23.678553 | 2018-08-19T14:03:46 | 2018-08-19T14:03:46 | 123,745,847 | 0 | 3 | MIT | 2018-10-08T05:55:23 | 2018-03-04T01:19:42 | Java | UTF-8 | Java | false | false | 1,617 | java | /*
* This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file
* at the root of this project for more details.
*/
package io.github.nucleuspowered.nucleus.modules.commandspy.config;
import io.github.nucleuspowered.neutrino.annotations.Default;
import io.github.nucleuspowered.neutrino.annotations.ProcessSetting;
import io.github.nucleuspowered.neutrino.settingprocessor.RemoveFirstSlashIfExistsSettingProcessor;
import io.github.nucleuspowered.nucleus.internal.text.NucleusTextTemplateImpl;
import ninja.leaping.configurate.objectmapping.Setting;
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
import java.util.ArrayList;
import java.util.List;
@ConfigSerializable
public class CommandSpyConfig {
@Setting(comment = "config.commandspy.template")
@Default(value = "&7[CS: {{name}}]: ", saveDefaultIfNull = true)
private NucleusTextTemplateImpl prefix;
// use-whitelist
@Setting(value = "filter-is-whitelist", comment = "config.commandspy.usewhitelist")
private boolean useWhitelist = true;
// Was whitelisted-commands-to-spy-on
// Removes the first "/" if it exists.
@ProcessSetting(RemoveFirstSlashIfExistsSettingProcessor.class)
@Setting(value = "command-filter", comment = "config.commandspy.filter")
private List<String> commands = new ArrayList<>();
public NucleusTextTemplateImpl getTemplate() {
return this.prefix;
}
public List<String> getCommands() {
return this.commands;
}
public boolean isUseWhitelist() {
return this.useWhitelist;
}
}
| [
"git@drnaylor.co.uk"
] | git@drnaylor.co.uk |
e23032aa278351818c76263894328913c67b80f9 | 9aa82fc68d338226eff91af0554042335c3bb856 | /src/main/java/com/jhang/service/UsernameAlreadyUsedException.java | 43cfd682609dc36de8c6e7462dc18ac9e54c0802 | [] | no_license | ororkerob/jhang | 1cb810db70f28eb1e99de3912633a65e71da2e14 | 9acf83559ce1fd0a145f2c8dd6665e881dcfb30d | refs/heads/main | 2023-07-31T11:07:52.915441 | 2021-09-07T14:29:37 | 2021-09-07T14:29:37 | 404,009,733 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 247 | java | package com.jhang.service;
public class UsernameAlreadyUsedException extends RuntimeException {
private static final long serialVersionUID = 1L;
public UsernameAlreadyUsedException() {
super("Login name already used!");
}
}
| [
"jhipster-bot@jhipster.tech"
] | jhipster-bot@jhipster.tech |
3648d2979c2618be3f6ec0fab18abfe54744e956 | 5cefafafa516d374fd600caa54956a1de7e4ce7d | /oasis/web/ePolicy/PM/src/dti/pm/policymgr/validationmgr/ResponseTypeEnum.java | 69b99a75dffbae0bf1ecdb69eed2f5f27cb16230 | [] | no_license | TrellixVulnTeam/demo_L223 | 18c641c1d842c5c6a47e949595b5f507daa4aa55 | 87c9ece01ebdd918343ff0c119e9c462ad069a81 | refs/heads/master | 2023-03-16T00:32:08.023444 | 2019-04-08T15:46:48 | 2019-04-08T15:46:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 653 | java | package dti.pm.policymgr.validationmgr;
/**
* <p>(C) 2003 Delphi Technology, inc. (dti)</p>
* Date: 12/16/2016
*
* @author tzeng
*/
/*
*
* Revision Date Revised By Description
* ---------------------------------------------------
* 12/16/2016 tzeng 166929 - Initial version.
* ---------------------------------------------------
*/
public enum ResponseTypeEnum {
USER("User"),
SYSYTEM_DEFAULT("System Default");
private String value;
ResponseTypeEnum (String value) {
this.value = value;
}
public String getResponseTypeValue() {
return value;
}
}
| [
"athidevwork@gmail.com"
] | athidevwork@gmail.com |
b37402e57317adcfb2ee744b01319100a24f5983 | c31aed7414dd4a463c8e6cec1d176bb666c2ec6e | /src/main/java/cn/com/wtrj/jx/web/portal/service/dictItem/IDictItemService.java | a6a19ec59c42855763dc81808d660386e128b93c | [] | no_license | zmiraclej/service | 770790d77b2f4669f8b9c66cc12094f55a1f954e | 9fe6464b251d57fa9f9208665e745fb5541b2d6a | refs/heads/master | 2021-05-05T11:56:45.971548 | 2018-01-20T09:12:00 | 2018-01-20T09:25:33 | 118,227,279 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 281 | java | package cn.com.wtrj.jx.web.portal.service.dictItem;
import cn.com.wtrj.jx.web.portal.model.entities.WtrjDictItem;
public interface IDictItemService {
/**
* 在字典项目表中按code查询记录
*
* @param code
* @return
*/
WtrjDictItem findByCode(String code);
}
| [
"3507373533@qq.com"
] | 3507373533@qq.com |
fa48336977e1e8bd845199d4fc85d51d12809805 | 0af8b92686a58eb0b64e319b22411432aca7a8f3 | /large-multiproject/project78/src/test/java/org/gradle/test/performance78_3/Test78_243.java | 5b5f02a7a10033a1c248f0e9129b540859d07018 | [] | no_license | gradle/performance-comparisons | b0d38db37c326e0ce271abebdb3c91769b860799 | e53dc7182fafcf9fedf07920cbbea8b40ee4eef4 | refs/heads/master | 2023-08-14T19:24:39.164276 | 2022-11-24T05:18:33 | 2022-11-24T05:18:33 | 80,121,268 | 17 | 15 | null | 2022-09-30T08:04:35 | 2017-01-26T14:25:33 | null | UTF-8 | Java | false | false | 292 | java | package org.gradle.test.performance78_3;
import static org.junit.Assert.*;
public class Test78_243 {
private final Production78_243 production = new Production78_243("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
} | [
"cedric.champeau@gmail.com"
] | cedric.champeau@gmail.com |
2bcdf5432562bf6122aac3874c88f3ee4e5a3c7f | a08ff306758d125264c9f7ce7f365316be8e172a | /app/src/main/java/com/cnews/guji/smart/view/widget/LoveHeart.java | 7db4545201e70316f99ddcc5ab3e9f7a82ed40e0 | [
"Apache-2.0"
] | permissive | xiamulo/GuJiNews_DayHot_2.0 | bbbced3e1776e16ec44d1b00989ec8e588c5e113 | 4e0c748bc62db8112163d01013c0e524ea20c294 | refs/heads/master | 2023-07-11T04:09:09.449241 | 2021-08-25T06:25:45 | 2021-08-25T06:25:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,945 | java | package com.cnews.guji.smart.view.widget;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.TimeInterpolator;
import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.view.animation.LinearInterpolator;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import com.cnews.guji.smart.R;
import java.util.Random;
/**
* 仿抖音点赞功能
*/
public class LoveHeart extends RelativeLayout {
private Context mContext;
float[] num = {-30, -20, 0, 20, 30};//随机心形图片角度
public LoveHeart(Context context) {
super(context);
initView(context);
}
public LoveHeart(Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
initView(context);
}
public LoveHeart(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
initView(context);
}
private void initView(Context context) {
mContext = context;
}
@Override
public boolean onTouchEvent(MotionEvent event) {
final ImageView imageView = new ImageView(mContext);
LayoutParams params = new LayoutParams(300, 300);
params.leftMargin = (int) event.getX() - 150;
params.topMargin = (int) event.getY() - 300;
imageView.setImageDrawable(getResources().getDrawable(R.mipmap.icon_home_like_after));
imageView.setLayoutParams(params);
addView(imageView);
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.play(scale(imageView, "scaleX", 2f, 0.9f, 100, 0))
.with(scale(imageView, "scaleY", 2f, 0.9f, 100, 0))
.with(rotation(imageView, 0, 0, num[new Random().nextInt(4)]))
.with(alpha(imageView, 0, 1, 100, 0))
.with(scale(imageView, "scaleX", 0.9f, 1, 50, 150))
.with(scale(imageView, "scaleY", 0.9f, 1, 50, 150))
.with(translationY(imageView, 0, -600, 800, 400))
.with(alpha(imageView, 1, 0, 300, 400))
.with(scale(imageView, "scaleX", 1, 3f, 700, 400))
.with(scale(imageView, "scaleY", 1, 3f, 700, 400));
animatorSet.start();
animatorSet.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
removeViewInLayout(imageView);
}
});
return super.onTouchEvent(event);
}
public static ObjectAnimator scale(View view, String propertyName, float from, float to, long time, long delayTime) {
ObjectAnimator translation = ObjectAnimator.ofFloat(view
, propertyName
, from, to);
translation.setInterpolator(new LinearInterpolator());
translation.setStartDelay(delayTime);
translation.setDuration(time);
return translation;
}
public static ObjectAnimator translationX(View view, float from, float to, long time, long delayTime) {
ObjectAnimator translation = ObjectAnimator.ofFloat(view
, "translationX"
, from, to);
translation.setInterpolator(new LinearInterpolator());
translation.setStartDelay(delayTime);
translation.setDuration(time);
return translation;
}
public static ObjectAnimator translationY(View view, float from, float to, long time, long delayTime) {
ObjectAnimator translation = ObjectAnimator.ofFloat(view
, "translationY"
, from, to);
translation.setInterpolator(new LinearInterpolator());
translation.setStartDelay(delayTime);
translation.setDuration(time);
return translation;
}
public static ObjectAnimator alpha(View view, float from, float to, long time, long delayTime) {
ObjectAnimator translation = ObjectAnimator.ofFloat(view
, "alpha"
, from, to);
translation.setInterpolator(new LinearInterpolator());
translation.setStartDelay(delayTime);
translation.setDuration(time);
return translation;
}
public static ObjectAnimator rotation(View view, long time, long delayTime, float... values) {
ObjectAnimator rotation = ObjectAnimator.ofFloat(view, "rotation", values);
rotation.setDuration(time);
rotation.setStartDelay(delayTime);
rotation.setInterpolator(new TimeInterpolator() {
@Override
public float getInterpolation(float input) {
return input;
}
});
return rotation;
}
}
| [
"dincl@jsyl.com.cn"
] | dincl@jsyl.com.cn |
de6196e06334906d992126dddfa94f5295c0365d | 426040f19e4ab0abb5977e8557451cfd94bf6c2d | /apks/aldi/src/org/joda/time/Instant.java | c868c13fb2311b9d65ec3ec65cfe845d44bd3c56 | [] | no_license | kmille/android-pwning | 0e340965f4c27dfc9df6ecadddd124448e6cec65 | e82b96d484e618fe8b2c3f8ff663e74f793541b8 | refs/heads/master | 2020-05-09T17:22:54.876992 | 2020-04-06T18:04:16 | 2020-04-06T18:04:16 | 181,300,145 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,404 | java | package org.joda.time;
import java.io.Serializable;
import org.joda.convert.FromString;
import org.joda.time.base.AbstractInstant;
import org.joda.time.chrono.ISOChronology;
import org.joda.time.convert.ConverterManager;
import org.joda.time.convert.InstantConverter;
import org.joda.time.format.DateTimeFormatter;
import org.joda.time.format.ISODateTimeFormat;
public final class Instant
extends AbstractInstant
implements Serializable, ReadableInstant
{
private static final long serialVersionUID = 3299096530934209741L;
private final long iMillis;
public Instant()
{
this.iMillis = DateTimeUtils.currentTimeMillis();
}
public Instant(long paramLong)
{
this.iMillis = paramLong;
}
public Instant(Object paramObject)
{
this.iMillis = ConverterManager.getInstance().getInstantConverter(paramObject).getInstantMillis(paramObject, ISOChronology.getInstanceUTC());
}
public static Instant now()
{
return new Instant();
}
@FromString
public static Instant parse(String paramString)
{
return parse(paramString, ISODateTimeFormat.dateTimeParser());
}
public static Instant parse(String paramString, DateTimeFormatter paramDateTimeFormatter)
{
return paramDateTimeFormatter.parseDateTime(paramString).toInstant();
}
public final Chronology getChronology()
{
return ISOChronology.getInstanceUTC();
}
public final long getMillis()
{
return this.iMillis;
}
public final Instant minus(long paramLong)
{
return withDurationAdded(paramLong, -1);
}
public final Instant minus(ReadableDuration paramReadableDuration)
{
return withDurationAdded(paramReadableDuration, -1);
}
public final Instant plus(long paramLong)
{
return withDurationAdded(paramLong, 1);
}
public final Instant plus(ReadableDuration paramReadableDuration)
{
return withDurationAdded(paramReadableDuration, 1);
}
public final DateTime toDateTime()
{
return new DateTime(getMillis(), ISOChronology.getInstance());
}
@Deprecated
public final DateTime toDateTimeISO()
{
return toDateTime();
}
public final Instant toInstant()
{
return this;
}
public final MutableDateTime toMutableDateTime()
{
return new MutableDateTime(getMillis(), ISOChronology.getInstance());
}
@Deprecated
public final MutableDateTime toMutableDateTimeISO()
{
return toMutableDateTime();
}
public final Instant withDurationAdded(long paramLong, int paramInt)
{
if (paramLong != 0L)
{
if (paramInt == 0) {
return this;
}
return withMillis(getChronology().add(getMillis(), paramLong, paramInt));
}
return this;
}
public final Instant withDurationAdded(ReadableDuration paramReadableDuration, int paramInt)
{
if (paramReadableDuration != null)
{
if (paramInt == 0) {
return this;
}
return withDurationAdded(paramReadableDuration.getMillis(), paramInt);
}
return this;
}
public final Instant withMillis(long paramLong)
{
if (paramLong == this.iMillis) {
return this;
}
return new Instant(paramLong);
}
}
/* Location: /home/kmille/projects/android-pwning/apks/aldi/ALDI TALK_v6.2.1_apkpure.com-dex2jar.jar!/org/joda/time/Instant.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/ | [
"christian.schneider@androidloves.me"
] | christian.schneider@androidloves.me |
5edd417547fe1b331a71e18c5ccd897902f3e0d6 | a2b31130b46c0dabb4a158c32138d156feb69674 | /src/main/java/com/github/fge/jsonschema/walk/SchemaWalkerProvider.java | 7ae5ae5afdd5b91b1d5168cf55eb7efa8c776772 | [] | no_license | JohnDong123/json-schema-core | 46c93897d523a467e7443bded35c48c078930cd2 | 082d378fc477eadfd17f3e13e007ca63fbe6bb09 | refs/heads/master | 2021-01-18T03:29:45.293838 | 2013-05-27T16:39:31 | 2013-05-27T16:39:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,001 | java | /*
* Copyright (c) 2013, Francis Galiegue <fgaliegue@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Lesser GNU General Public License as
* published by the Free Software Foundation, either version 3 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
* Lesser GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.github.fge.jsonschema.walk;
import com.github.fge.jsonschema.tree.SchemaTree;
/**
* Interface for a schema walker provider
*
* @see SchemaWalkerProcessor
*/
public interface SchemaWalkerProvider
{
SchemaWalker newWalker(final SchemaTree tree);
}
| [
"fgaliegue@gmail.com"
] | fgaliegue@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.