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
347cd523fc7b078a7076d01445ba8fca5f07531c
54555ce8351e37b06aae657c45c27d03a6015621
/src/com/javarush/test/level08/lesson03/task01/Solution.java
19d9aec1ea5ae4a46119b1505f3a27b2265a4abd
[]
no_license
gorobec/JavaRush
ba8692fd6055816246a10148403b4187774d2e6b
447b2c5fd1e66f9933f0c5d83def263d77604295
refs/heads/master
2021-01-10T10:55:05.760224
2016-12-30T08:28:24
2016-12-30T08:28:24
54,196,552
0
2
null
null
null
null
UTF-8
Java
false
false
1,256
java
package com.javarush.test.level08.lesson03.task01; /* HashSet из растений Создать коллекцию HashSet с типом элементов String. Добавить в неё 10 строк: арбуз, банан, вишня, груша, дыня, ежевика, жень-шень, земляника, ирис, картофель. Вывести содержимое коллекции на экран, каждый элемент с новой строки. Посмотреть, как изменился порядок добавленных элементов. */ import java.util.HashSet; import java.util.Set; public class Solution { public static void main(String[] args) throws Exception { HashSet<String> plants = new HashSet<String>(); plants.add("арбуз"); plants.add("банан"); plants.add("вишня"); plants.add("груша"); plants.add("дыня"); plants.add("ежевика"); plants.add("жень-шень"); plants.add("земляника"); plants.add("ирис"); plants.add("картофель"); for (String s : plants) System.out.println(s); } }
[ "yevhenijvorobiei@gmail.com" ]
yevhenijvorobiei@gmail.com
ba5fcf121a6afbed01fb6b431b65cfad7cdf0faf
be8cbaa432ce5720bd6beab6302eb5d578319a01
/src/main/java/com/naya/polimorphism/Cat.java
7a1fefdab9367fb584ce0fb1d3d264aa36fbeb89
[]
no_license
Jeka1978/javaexamples
6280cbe073d6cb874ed7363bf6e08ff6b9c517d6
13e7586b91d76e049c57bff3532b50de1e3338f3
refs/heads/master
2020-04-27T12:27:14.244721
2019-03-28T11:34:27
2019-03-28T11:34:27
174,332,060
0
1
null
null
null
null
UTF-8
Java
false
false
196
java
package com.naya.polimorphism; /** * @author Evgeny Borisov */ public class Cat implements Animal { @Override public void makeVoice() { System.out.println("mau mau"); } }
[ "kit2009" ]
kit2009
6f3155fc21b658cc492a4a010d1f2a54486e8ed0
5c47ecb4549223481b7907b74ce7d1041271ac42
/as_code/app/src/main/java/com/ahdi/wallet/app/schemas/RnaTypeSchema.java
8a26505823082ad26ef3ded98759f043d37fcc78
[]
no_license
eddy151310/VVVV
e0eaa7257ea59e7c81621791e919847b643b6777
20ea13bc581bfe84453cf2921bde26df834cb1c4
refs/heads/master
2020-07-10T05:21:36.972130
2019-08-29T12:05:23
2019-08-29T12:05:23
204,171,847
0
0
null
null
null
null
UTF-8
Java
false
false
1,064
java
package com.ahdi.wallet.app.schemas; import com.ahdi.wallet.network.framwork.ABSIO; import org.json.JSONException; import org.json.JSONObject; /** * @author zhaohe */ public class RnaTypeSchema extends ABSIO { // 字段名 重要性 属性 描述 // Abbr 必须 String 简称 // FullName 必须 String 全称 // 实名认证类型: // KTP,印尼身份证; // Passport,护照; // KITAS,印尼临时居留证 /** * 简称 */ private String abbr; /** * 全称 */ private String fullName; @Override public void readFrom(JSONObject json) throws JSONException { if (json == null) { return; } abbr = json.optString("Abbr"); fullName = json.optString("FullName"); } @Override public JSONObject writeTo(JSONObject json) throws JSONException { return json; } public String getAbbr() { return abbr; } public String getFullName() { return fullName; } }
[ "258131820@qq.com" ]
258131820@qq.com
6dd22d5ce7138d43aab18ba7082b61c3819b6b66
1c47c4f834ec5f5a89d2262768486da8054d7544
/src/main/java/mekanism/common/integration/projecte/mappers/ChemicalCrystallizerRecipeMapper.java
0916136066b8565dfbfe9a52f474bde5acb79963
[ "MIT" ]
permissive
Sinmis077/Meka-Guide
d4443cd1ae48929aa6ff5f811e2d00d7caf3ba17
c42191d9d5a4e8add654a6cf8720abc8af2896c3
refs/heads/main
2023-08-07T19:45:42.813342
2021-09-26T21:55:10
2021-09-26T21:55:10
383,550,665
1
1
MIT
2021-09-26T21:55:11
2021-07-06T17:34:34
Java
UTF-8
Java
false
false
2,192
java
package mekanism.common.integration.projecte.mappers; import mekanism.api.chemical.ChemicalStack; import mekanism.api.chemical.merged.BoxedChemicalStack; import mekanism.api.recipes.ChemicalCrystallizerRecipe; import mekanism.common.integration.projecte.IngredientHelper; import mekanism.common.recipe.MekanismRecipeType; import moze_intel.projecte.api.mapper.collector.IMappingCollector; import moze_intel.projecte.api.mapper.recipe.INSSFakeGroupManager; import moze_intel.projecte.api.mapper.recipe.IRecipeTypeMapper; import moze_intel.projecte.api.mapper.recipe.RecipeTypeMapper; import moze_intel.projecte.api.nss.NormalizedSimpleStack; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.IRecipe; import net.minecraft.item.crafting.IRecipeType; @RecipeTypeMapper public class ChemicalCrystallizerRecipeMapper implements IRecipeTypeMapper { @Override public String getName() { return "MekChemicalCrystallizer"; } @Override public String getDescription() { return "Maps Mekanism crystallizing recipes."; } @Override public boolean canHandle(IRecipeType<?> recipeType) { return recipeType == MekanismRecipeType.CRYSTALLIZING; } @Override public boolean handleRecipe(IMappingCollector<NormalizedSimpleStack, Long> mapper, IRecipe<?> iRecipe, INSSFakeGroupManager groupManager) { if (!(iRecipe instanceof ChemicalCrystallizerRecipe)) { //Double check that we have a type of recipe we know how to handle return false; } boolean handled = false; ChemicalCrystallizerRecipe recipe = (ChemicalCrystallizerRecipe) iRecipe; for (ChemicalStack<?> representation : recipe.getInput().getRepresentations()) { ItemStack output = recipe.getOutput(BoxedChemicalStack.box(representation)); if (!output.isEmpty()) { IngredientHelper ingredientHelper = new IngredientHelper(mapper); ingredientHelper.put(representation); if (ingredientHelper.addAsConversion(output)) { handled = true; } } } return handled; } }
[ "llelga8@gmail.com" ]
llelga8@gmail.com
c9f2a4b2e6f3d73d3313049ed292e75772ef55c7
0af8b92686a58eb0b64e319b22411432aca7a8f3
/single-large-project/src/test/java/org/gradle/test/performancenull_433/Testnull_43223.java
d612cd694cb0364acc7a07ddb453712cd2564e2f
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
308
java
package org.gradle.test.performancenull_433; import static org.junit.Assert.*; public class Testnull_43223 { private final Productionnull_43223 production = new Productionnull_43223("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
ca3c5ef69eee373b2668bf914d64900230db5bbf
b2a3210ea197e86967e9d57d1390fd0f804b2a36
/on-java8/src/main/java/com/ericaShy/java8/equalshashcode/Equality.java
50ca5c3873238b714562729f2f57d9d33b0e8435
[]
no_license
547358880/javatutorials
5b97781755c7b00064e078228120cf8e8775aa67
c4f698805e437a30ffd9d4804284c84327d8693b
refs/heads/master
2021-06-26T19:28:17.101859
2020-01-02T00:49:07
2020-01-02T00:49:07
220,178,290
0
0
null
2021-03-31T21:38:17
2019-11-07T07:37:28
Java
UTF-8
Java
false
false
1,769
java
package com.ericaShy.java8.equalshashcode; import java.util.Objects; public class Equality { protected int i; protected String s; protected double d; public Equality(int i, String s, double d) { this.i = i; this.s = s; this.d = d; System.out.println("made 'Equality'"); } @Override public boolean equals(Object rval) { if (rval == null) return false; if (rval == this) return true; if (!(rval instanceof Equality)) return false; Equality other = (Equality) rval; if (!Objects.equals(i, other.i)) return false; if (!Objects.equals(s, other.s)) return false; if (!Objects.equals(d, other.d)) return false; return true; } public void test(String descr, String expected, Object rval) { System.out.format("-- Testing %s --%n" + "%s instanceof Equality: %s%n" + "Expected %s, got %s%n", descr, descr, rval instanceof Equality, expected, equals(rval)); } public static void testAll(EqualityFactory eqf) { Equality e = eqf.make(1, "Monty", 3.14), eq = eqf.make(1, "Monty", 3.14), neq = eqf.make(99, "Bob", 1.618); e.test("null", "false", null); e.test("same object", "true", e); e.test("different type", "false", Integer.valueOf(99)); e.test("same values", "true", eq); e.test("different values", "false", neq); } public static void main(String[] args) { // false System.out.println(null instanceof Equality); testAll((i, s, d) -> new Equality(i, s, d)); } }
[ "547358880@qq.com" ]
547358880@qq.com
832ea0cc4f0cd0a4c98992f8575b73cfa09e08e8
4e872ded48306d236388af720f718c4d6d1d3250
/src/main/java/com/healthmarketscience/sqlbuilder/ValidationContext.java
a01cc637c780a3419718e6366d0e42ac6d088c87
[ "Apache-2.0" ]
permissive
sffej/sqlbuilder
609c8c357ab3b257dbe8c1c1118927e82b2f5937
206ca3f7a298cbd33d473054094e92afb72ffd53
refs/heads/master
2020-04-10T01:44:14.208428
2018-07-29T01:50:03
2018-07-29T01:50:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,895
java
/* Copyright (c) 2008 Health Market Science, Inc. 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.healthmarketscience.sqlbuilder; import java.util.Collection; import java.util.HashSet; import com.healthmarketscience.common.util.Tuple2; import com.healthmarketscience.sqlbuilder.dbspec.Column; import com.healthmarketscience.sqlbuilder.dbspec.Table; import java.util.ArrayList; /** * Object used to accummulate state during query validation. * * @author james */ public class ValidationContext { public static final boolean DEFAULT_LOCAL_ONLY = false; private final ValidationContext _parent; private Collection<Column> _columns; private Collection<Table> _tables; /** whether or not collection/validation should proceed into nested subqueries */ private boolean _localOnly; private Collection<Tuple2<ValidationContext,? extends Verifiable<?>>> _verifiables; public ValidationContext() { this(null, null, null, DEFAULT_LOCAL_ONLY); } public ValidationContext(ValidationContext parent) { this(parent, null, null, DEFAULT_LOCAL_ONLY); } public ValidationContext(boolean localOnly) { this(null, null, null, localOnly); } public ValidationContext(Collection<Table> tables, Collection<Column> columns) { this(null, tables, columns, DEFAULT_LOCAL_ONLY); } public ValidationContext(ValidationContext parent, Collection<Table> tables, Collection<Column> columns, boolean localOnly) { _parent = parent; _tables = ((tables != null) ? tables : new HashSet<Table>()); _columns = ((columns != null) ? columns : new HashSet<Column>()); _localOnly = localOnly; _verifiables = ((_parent != null) ? _parent._verifiables : new ArrayList<Tuple2<ValidationContext,? extends Verifiable<?>>>(2)); } public ValidationContext getParent() { return _parent; } public Collection<Table> getTables() { return _tables; } public void setTables(Collection<Table> newTables) { _tables = newTables; } public void addTable(Table table) { _tables.add(table); } public Collection<Column> getColumns() { return _columns; } public void setColumns(Collection<Column> newColumns) { _columns = newColumns; } public void addColumn(Column column) { _columns.add(column); } public boolean isLocalOnly() { return _localOnly; } public void setLocalOnly(boolean newLocalOnly) { _localOnly = newLocalOnly; } public void addVerifiable(Verifiable<?> verifiable) { if(verifiable == null) { throw new IllegalArgumentException("verifiable was null"); } _verifiables.add(Tuple2.create(this, verifiable)); } public void validateAll() throws ValidationException { for(Tuple2<ValidationContext,? extends Verifiable<?>> verifiable : _verifiables) { try { verifiable.get1().validate(verifiable.get0()); } catch(ValidationException e) { e.setFailedVerifiable(verifiable); throw e; } } } /** * Handles schema object collection for nested queries. */ public void collectNestedQuerySchemaObjects(SqlObject nestedQuery) { // we do not collect into the subquery if this a "local only" collection if((nestedQuery != null) && !isLocalOnly()) { // subqueries need a nested validation context because their schema // objects *do not* affect the outer query, but the outer query's // schema objects *do* affect their query nestedQuery.collectSchemaObjects(new ValidationContext(this)); } } /** * Retrieves the tables referenced by the column objects. * * @return a new columnTables collection */ protected Collection<Table> getColumnTables() { return getColumnTables(null); } /** * Retrieves the tables referenced by the column objects. * * @param columnTables (out) all tables referenced by the given columns * @return the given columnTables collection */ protected Collection<Table> getColumnTables(Collection<Table> columnTables) { if(columnTables == null) { columnTables = new HashSet<Table>(); } // get the tables from the columns referenced for(Column column : _columns) { columnTables.add(column.getTable()); } return columnTables; } }
[ "jtahlborn@yahoo.com" ]
jtahlborn@yahoo.com
4cfb17c40ac6e60ad93e9bbc4006ff3f81ae0585
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
/crash-reproduction-new-fitness/results/XWIKI-14599-7-20-Single_Objective_GGA-IntegrationSingleObjective-BasicBlockCoverage/org/xwiki/extension/jar/internal/handler/JarExtensionJobFinishingListener_ESTest.java
965bb64f2c6df3d5e06b9a707b44100d28ae62a5
[ "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
611
java
/* * This file was automatically generated by EvoSuite * Mon May 18 14:47:54 UTC 2020 */ package org.xwiki.extension.jar.internal.handler; 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 JarExtensionJobFinishingListener_ESTest extends JarExtensionJobFinishingListener_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
a69a677353cbceff8b8c89c92cf8f7828b6b3af5
ba7186462952fddd730ef1933bb86f1fa99dc902
/app/src/main/java/com/znz/news/event/EventRefresh.java
191401d3fa0a92a841686449dcbddcdc8e0e03ce
[]
no_license
PSuiyi/news
7b904e9e551f56da0969cd95db31e69513a18c52
e44f2f6de3c72b48e8999afea066375afcb4399d
refs/heads/master
2021-09-03T06:14:16.123602
2018-01-06T07:34:35
2018-01-06T07:34:35
114,313,021
0
0
null
null
null
null
UTF-8
Java
false
false
1,535
java
package com.znz.news.event; import com.znz.compass.znzlibray.eventbus.BaseEvent; /** * Date: 2017/1/18 2017 * User: PSuiyi * Description: */ public class EventRefresh<T> extends BaseEvent { private String value; private String type; private String id; private T bean; public EventRefresh(int flag) { super(flag); } public EventRefresh(int flag, T bean) { super(flag); this.bean = bean; } public EventRefresh(int flag, T bean, String value) { super(flag); this.bean = bean; this.value = value; } public EventRefresh(int flag, String value) { super(flag); this.value = value; } public EventRefresh(int flag, String value, String type) { super(flag); this.value = value; this.type = type; } public EventRefresh(int flag, String value, String type, String id) { super(flag); this.value = value; this.type = type; this.id = id; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } public String getId() { return id; } public void setId(String id) { this.id = id; } public T getBean() { return bean; } public void setBean(T bean) { this.bean = bean; } public String getType() { return type; } public void setType(String type) { this.type = type; } }
[ "497555328@qq.com" ]
497555328@qq.com
387dd37136038334e9961869df1ca25a24b6e417
fbcab1d1b2748cb619bea233a7b4482eced36623
/src/main/java/net/cpollet/games/fiar/rules/victory/VerticalVictoryRule.java
84065b4096ee49d49fe66ad992808f9b95cb2727
[]
no_license
cpollet/four-in-a-row
4788ea0ddf80ef27f35716af2f4202e8a52eba85
1ce01ccb5210a7a8409a08e2f29b62a3b69e3601
refs/heads/master
2020-05-07T12:00:22.456436
2015-01-18T16:18:13
2015-01-18T16:18:13
29,431,877
0
0
null
2019-04-16T22:06:52
2015-01-18T16:17:27
Java
UTF-8
Java
false
false
1,522
java
/* * Copyright 2015 Christophe Pollet * * 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 net.cpollet.games.fiar.rules.victory; import net.cpollet.games.fiar.rules.Board; import net.cpollet.games.fiar.rules.Player; /** * @author Christophe Pollet */ public class VerticalVictoryRule implements VictoryRule { @Override public boolean hasWon(Player player, Player[][] matrix) { int counter; for (int column = 0; column < Board.WIDTH; column++) { counter = 0; for (int row = 0; row < Board.HEIGHT - 4; row++) { if (matrix[row][column] == player) { counter++; } else { counter = 0; } if (counter == 4) { System.out.println("Horizontal verified from row:" + (row - 3) + "; column: " + column); return true; } } } return false; } }
[ "cpollet@users.noreply.github.com" ]
cpollet@users.noreply.github.com
23b5f022dba85835caa8c03dbae36e2b5da3ce3d
44424301f8fc2c1a9b677f0050bf191e8973f011
/plugins/mtwilson-auto-refresh-trust/src/main/java/com/intel/mtwilson/plugin/AutoRefreshTrustLoader.java
dd6634adbc46f2b40809f9d5cbd4b869b65574bf
[ "BSD-3-Clause" ]
permissive
start621/opencit
6713aee8bc92d84e1768645f4589e5da5fa937f4
e6f8714b60c3a2d8ca80623780e6eccba207acd6
refs/heads/master
2020-12-30T16:16:14.267848
2016-04-20T21:27:00
2016-04-20T21:27:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,374
java
/* * Copyright (C) 2013 Intel Corporation * All rights reserved. */ package com.intel.mtwilson.plugin; import com.intel.mountwilson.as.common.ASConfig; import com.intel.mountwilson.as.common.ASException; import com.intel.mtwilson.My; import com.intel.mtwilson.as.business.trust.BulkHostTrustBO; import com.intel.mtwilson.as.controller.TblSamlAssertionJpaController; import com.intel.mtwilson.i18n.ErrorCode; import com.intel.mtwilson.plugin.api.Plugin; import com.intel.mtwilson.plugin.api.PluginLoader; import java.io.IOException; import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.TimeUnit; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * * @author jbuhacoff */ public class AutoRefreshTrustLoader implements PluginLoader { private transient static Logger log = LoggerFactory.getLogger(AutoRefreshTrustLoader.class); private static final ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(1); @Override public Plugin loadPlugin() { try { AutoRefreshTrust plugin = new AutoRefreshTrust(); plugin.setEnabled(true); plugin.setMaxCacheDuration(5); plugin.setMaxCacheDurationUnits(TimeUnit.MINUTES); plugin.setTimeout(60); plugin.setTimeoutUnits(TimeUnit.SECONDS); TblSamlAssertionJpaController samlJpa = My.jpa().mwSamlAssertion(); plugin.setTblSamlAssertionJpaController(samlJpa); BulkHostTrustBO bulkHostTrustBO = new BulkHostTrustBO((int)TimeUnit.SECONDS.convert(60, TimeUnit.SECONDS)); plugin.setBulkHostTrustBO(bulkHostTrustBO); // before we load the plugin, make sure that we start the background task long interval = ASConfig.getConfiguration().getInt("mtwilson.auto.refresh.trust.interval", (int)TimeUnit.SECONDS.convert(30, TimeUnit.MINUTES)); log.debug("Scheduling auto refresh plugin every {} seconds", interval); executor.scheduleAtFixedRate(plugin, interval, interval, TimeUnit.SECONDS); return plugin; } catch (IOException ex) { log.error("Error in auto refresh trust plugin", ex); throw new ASException(ErrorCode.SYSTEM_ERROR, ex.getClass().getSimpleName()); } } }
[ "zahedi.aquino@intel.com" ]
zahedi.aquino@intel.com
fa4fb5ffe47dce80221fe6a2306a3af95a2bfcf4
aba0b76b59c49d2868b45e7776326ad6694bd63b
/src/lec13_java_oop_abstraction_03/Mercedes.java
cd720c77d002a5b5c55af0c6dfcee8edefb2db98
[]
no_license
mnihussain/CoreJavaJune2021Final
dc6058b9a85cbf9b294bace504734624d1183c3e
e4a74e0ac05d1798a8a7b6870095bf8bc332e282
refs/heads/master
2023-08-12T13:19:39.623003
2021-10-01T02:38:24
2021-10-01T02:38:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
145
java
package lec13_java_oop_abstraction_03; public class Mercedes { public void mercedezInfo() { System.out.println("Invented in Germany"); } }
[ "tofaelkabir@gmail.com" ]
tofaelkabir@gmail.com
95a32c1ea0f639fb81aa7cee2562fbd481405d62
2bff5a9a88d8be94b9eeadaed932a793f301e7a5
/snowflake8/projects/snowflake-context/src/main/java/com/boluozhai/snowflake/context/support/ChildContextBuilderFactory.java
4449ff3955682b8e5d3ecb9d2c1d409c236aab76
[ "MIT" ]
permissive
boluozhai/snowflake
2f05702d5c046e478fce7784db5a633a9f03f99f
9e3b2938cff9be058a356e8693c6af10d25d16f9
refs/heads/master
2020-07-06T10:01:41.363506
2016-10-26T09:46:06
2016-10-26T09:46:06
68,101,085
2
0
null
null
null
null
UTF-8
Java
false
false
813
java
package com.boluozhai.snowflake.context.support; import com.boluozhai.snowflake.context.ContextBuilder; import com.boluozhai.snowflake.context.SnowflakeContext; import com.boluozhai.snowflake.context.base.AbstractContextBuilder; import com.boluozhai.snowflake.context.base.AbstractContextBuilderFactory; public class ChildContextBuilderFactory extends AbstractContextBuilderFactory { @Override public ContextBuilder newBuilder() { return this.get_builder(null); } @Override public ContextBuilder newBuilder(SnowflakeContext parent) { return this.get_builder(parent); } private ContextBuilder get_builder(SnowflakeContext parent) { return new Builder(parent); } private class Builder extends AbstractContextBuilder { protected Builder(SnowflakeContext parent) { super(parent); } } }
[ "xukun17@sina.com" ]
xukun17@sina.com
ded9d936b310e5b5a72993a25be257c335fe6df8
7329206bf4ba983f14c6f9d954404dc15c29d170
/dist/game/data/scripts/hellbound/AI/NPC/Quarry/Quarry.java
7b933057bc4cc3d43585e61dbb73f2fc964419e1
[]
no_license
polis77/polis_datapack_h5
4d5335a5ecf5f1f7aee6379256416cd4919cb6bb
d262c5c8baaf5748cbbcdb12857e38508a524ef0
refs/heads/master
2021-01-23T21:53:33.264509
2017-02-25T07:52:12
2017-02-25T07:52:12
83,112,906
0
0
null
null
null
null
UTF-8
Java
false
false
5,188
java
/* * Copyright (C) 2004-2014 L2J DataPack * * This file is part of L2J DataPack. * * L2J DataPack 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. * * L2J DataPack 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 hellbound.AI.NPC.Quarry; import ai.npc.AbstractNpcAI; import com.polis.Config; import com.polis.gameserver.ai.CtrlIntention; import com.polis.gameserver.instancemanager.ZoneManager; import com.polis.gameserver.model.actor.L2Attackable; import com.polis.gameserver.model.actor.L2Character; import com.polis.gameserver.model.actor.L2Npc; import com.polis.gameserver.model.actor.instance.L2PcInstance; import com.polis.gameserver.model.actor.instance.L2QuestGuardInstance; import com.polis.gameserver.model.holders.ItemChanceHolder; import com.polis.gameserver.model.zone.L2ZoneType; import com.polis.gameserver.network.NpcStringId; import com.polis.gameserver.network.clientpackets.Say2; import hellbound.HellboundEngine; /** * Quarry AI. * @author DS, GKR */ public final class Quarry extends AbstractNpcAI { // NPCs private static final int SLAVE = 32299; // Items protected static final ItemChanceHolder[] DROP_LIST = { new ItemChanceHolder(9628, 261), // Leonard new ItemChanceHolder(9630, 175), // Orichalcum new ItemChanceHolder(9629, 145), // Adamantine new ItemChanceHolder(1876, 6667), // Mithril ore new ItemChanceHolder(1877, 1333), // Adamantine nugget new ItemChanceHolder(1874, 2222), // Oriharukon ore }; // Zone private static final int ZONE = 40107; // Misc private static final int TRUST = 50; public Quarry() { super(Quarry.class.getSimpleName(), "hellbound/AI/NPC"); addSpawnId(SLAVE); addFirstTalkId(SLAVE); addStartNpc(SLAVE); addTalkId(SLAVE); addKillId(SLAVE); addEnterZoneId(ZONE); } @Override public final String onAdvEvent(String event, L2Npc npc, L2PcInstance player) { String htmltext = null; switch (event) { case "FollowMe": { npc.getAI().setIntention(CtrlIntention.AI_INTENTION_FOLLOW, player); npc.setTarget(player); npc.setAutoAttackable(true); npc.setRHandId(9136); npc.setWalking(); if (getQuestTimer("TIME_LIMIT", npc, null) == null) { startQuestTimer("TIME_LIMIT", 900000, npc, null); // 15 min limit for save } htmltext = "32299-02.htm"; break; } case "TIME_LIMIT": { for (L2ZoneType zone : ZoneManager.getInstance().getZones(npc)) { if (zone.getId() == 40108) { npc.setTarget(null); npc.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE); npc.setAutoAttackable(false); npc.setRHandId(0); npc.teleToLocation(npc.getSpawn().getLocation()); return null; } } broadcastNpcSay(npc, Say2.NPC_ALL, NpcStringId.HUN_HUNGRY); npc.doDie(npc); break; } case "DECAY": { if ((npc != null) && !npc.isDead()) { if (npc.getTarget().isPlayer()) { for (ItemChanceHolder item : DROP_LIST) { if (getRandom(10000) < item.getChance()) { npc.dropItem((L2PcInstance) npc.getTarget(), item.getId(), (int) (item.getCount() * Config.RATE_QUEST_DROP)); break; } } } npc.setAutoAttackable(false); npc.deleteMe(); npc.getSpawn().decreaseCount(npc); HellboundEngine.getInstance().updateTrust(TRUST, true); } } } return htmltext; } @Override public final String onSpawn(L2Npc npc) { npc.setAutoAttackable(false); if (npc instanceof L2QuestGuardInstance) { ((L2QuestGuardInstance) npc).setPassive(true); } return super.onSpawn(npc); } @Override public final String onFirstTalk(L2Npc npc, L2PcInstance player) { if (HellboundEngine.getInstance().getLevel() != 5) { return "32299.htm"; } return "32299-01.htm"; } @Override public final String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon) { npc.setAutoAttackable(false); return super.onKill(npc, killer, isSummon); } @Override public final String onEnterZone(L2Character character, L2ZoneType zone) { if (character.isAttackable()) { final L2Attackable npc = (L2Attackable) character; if (npc.getId() == SLAVE) { if (!npc.isDead() && !npc.isDecayed() && (npc.getAI().getIntention() == CtrlIntention.AI_INTENTION_FOLLOW)) { if (HellboundEngine.getInstance().getLevel() == 5) { startQuestTimer("DECAY", 1000, npc, null); try { broadcastNpcSay(npc, Say2.NPC_ALL, NpcStringId.THANK_YOU_FOR_THE_RESCUE_ITS_A_SMALL_GIFT); } catch (Exception e) { // } } } } } return super.onEnterZone(character, zone); } }
[ "policelazo@gmail.com" ]
policelazo@gmail.com
95c7f547957c3c482e8a6cd85184df38f6027be3
c827bfebbde82906e6b14a3f77d8f17830ea35da
/Development3.0/TeevraServer/platform/businessobject/src/main/java/com/headstrong/teevra_fixml_1_0/DerivativeInstrumentAttributeBlockT.java
d00a94b7d1545622645781636df8c24b6bb3f438
[]
no_license
GiovanniPucariello/TeevraCore
13ccf7995c116267de5c403b962f1dc524ac1af7
9d755cc9ca91fb3ebc5b227d9de6bcf98a02c7b7
refs/heads/master
2021-05-29T18:12:29.174279
2013-04-22T07:44:28
2013-04-22T07:44:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,134
java
package com.headstrong.teevra_fixml_1_0; import java.math.BigInteger; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for DerivativeInstrumentAttribute_Block_t complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="DerivativeInstrumentAttribute_Block_t"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;group ref="{http://www.headstrong.com/TEEVRA-FIXML-1-0}DerivativeInstrumentAttributeElements"/> * &lt;/sequence> * &lt;attGroup ref="{http://www.headstrong.com/TEEVRA-FIXML-1-0}DerivativeInstrumentAttributeAttributes"/> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DerivativeInstrumentAttribute_Block_t") public class DerivativeInstrumentAttributeBlockT { @XmlAttribute(name = "Typ") protected BigInteger typ; @XmlAttribute(name = "Val") protected String val; /** * Gets the value of the typ property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getTyp() { return typ; } /** * Sets the value of the typ property. * * @param value * allowed object is * {@link BigInteger } * */ public void setTyp(BigInteger value) { this.typ = value; } /** * Gets the value of the val property. * * @return * possible object is * {@link String } * */ public String getVal() { return val; } /** * Sets the value of the val property. * * @param value * allowed object is * {@link String } * */ public void setVal(String value) { this.val = value; } }
[ "ritwik.bose@headstrong.com" ]
ritwik.bose@headstrong.com
b6a20561c02a11dfafbdade9e55521b832699d28
363c936f4a89b7d3f5f4fb588e8ca20c527f6022
/AL-Game/src/com/aionemu/gameserver/network/aion/serverpackets/SM_STATUPDATE_HP.java
e02c6cc88c237f0fd128a4d4166299ebba477cf2
[]
no_license
G-Robson26/AionServer-4.9F
d628ccb4307aa0589a70b293b311422019088858
3376c78b8d90bd4d859a7cfc25c5edc775e51cbf
refs/heads/master
2023-09-04T00:46:47.954822
2017-08-09T13:23:03
2017-08-09T13:23:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,509
java
/** * This file is part of Aion-Lightning <aion-lightning.org>. * * Aion-Lightning 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. * * Aion-Lightning 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 Aion-Lightning. * If not, see <http://www.gnu.org/licenses/>. */ package com.aionemu.gameserver.network.aion.serverpackets; import com.aionemu.gameserver.network.aion.AionConnection; import com.aionemu.gameserver.network.aion.AionServerPacket; /** * This packet is used to update current hp and max hp values. * * @author Luno */ public class SM_STATUPDATE_HP extends AionServerPacket { private int currentHp; private int maxHp; /** * @param currentHp * @param maxHp */ public SM_STATUPDATE_HP(int currentHp, int maxHp) { this.currentHp = currentHp; this.maxHp = maxHp; } /** * {@inheritDoc} */ @Override protected void writeImpl(AionConnection con) { writeD(currentHp); writeD(maxHp); } }
[ "falke34@a70f7278-c47d-401d-a0e4-c9401b7f63ed" ]
falke34@a70f7278-c47d-401d-a0e4-c9401b7f63ed
100a65a8431ab33c0211d50c891576fc90c311a8
1627f39bdce9c3fe5bfa34e68c276faa4568bc35
/src/minimumcost_spanning_tree/Boj10661.java
2e40cb8e8bc1c0c442ba3b60618623f11baf416d
[ "Apache-2.0" ]
permissive
minuk8932/Algorithm_BaekJoon
9ebb556f5055b89a5e5c8d885b77738f1e660e4d
a4a46b5e22e0ed0bb1b23bf1e63b78d542aa5557
refs/heads/master
2022-10-23T20:08:19.968211
2022-10-02T06:55:53
2022-10-02T06:55:53
84,549,122
3
3
null
null
null
null
UTF-8
Java
false
false
2,364
java
package minimumcost_spanning_tree; import common.Node; import java.io.*; import java.util.*; /** * * @author exponential-e * 백준 10661번: Median Tree * * @see https://www.acmicpc.net/problem/10661 * */ public class Boj10661 { private static final String NEW_LINE = "\n"; private static PriorityQueue<Node<Integer, Integer>> pq; private static int[] parent; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); while(true) { StringTokenizer st = new StringTokenizer(br.readLine()); int n = Integer.parseInt(st.nextToken()); int m = Integer.parseInt(st.nextToken()); if(n == 0 && m == 0) break; init(n); pq = new PriorityQueue<>(Comparator.comparingInt(Node::getCost)); while(m-- > 0) { st = new StringTokenizer(br.readLine()); int s = Integer.parseInt(st.nextToken()) - 1; int t = Integer.parseInt(st.nextToken()) - 1; int c = Integer.parseInt(st.nextToken()); pq.offer(new Node.Builder<Integer, Integer>(s).another(t).cost(c).build()); } sb.append(kruskal()).append(NEW_LINE); } System.out.println(sb); } private static int kruskal() { ArrayList<Integer> costs = new ArrayList<>(); while(!pq.isEmpty()) { Node<Integer, Integer> current = pq.poll(); if(merged(current.getNode(), current.getAnother())) continue; costs.add(current.getCost()); } int size = costs.size(); return costs.get(size >> 1); } private static void init(int n) { parent = new int[n]; Arrays.fill(parent, -1); } private static int find(int x) { if (parent[x] < 0) return x; return parent[x] = find(parent[x]); } private static boolean merged(int x, int y) { x = find(x); y = find(y); if(x == y) return true; if (parent[x] < parent[y]) { parent[x] += parent[y]; parent[y] = x; } else { parent[y] += parent[x]; parent[x] = y; } return false; } }
[ "minuk8932@naver.com" ]
minuk8932@naver.com
9e4f629ef0f68830f0974d48bcc1a4d9d1411808
eace11a5735cfec1f9560e41a9ee30a1a133c5a9
/CMT/cptiscas/程序变异体的backup/改名前/SkipQueue/skipQueue100/SkipQueue.java
10d213c3b31d9c6720a411334e1aa081f00a5500
[]
no_license
phantomDai/mypapers
eb2fc0fac5945c5efd303e0206aa93d6ac0624d0
e1aa1236bbad5d6d3b634a846cb8076a1951485a
refs/heads/master
2021-07-06T18:27:48.620826
2020-08-19T12:17:03
2020-08-19T12:17:03
162,563,422
0
1
null
null
null
null
UTF-8
Java
false
false
1,087
java
/* * SkipQueue.java * * Created on 10 Aug 2007, 5:05PM * * From "Multiprocessor Synchronization and Concurrent Data Structures", * by Maurice Herlihy and Nir Shavit. * Copyright 2007 Elsevier Inc. All rights reserved. */ package mutants.SkipQueue.skipQueue100; import mutants.SkipQueue.skipQueue100.PrioritySkipList.Node; /** * * @param T item type * @author __USER__ */ public class SkipQueue<T> { PrioritySkipList<T> skiplist; public SkipQueue() { skiplist = new PrioritySkipList<T>(); } /** * Add an item to the priority queue * @param item add this item * @param priority * @return true iff queue was modified */ public boolean add(T item, int priority) { Node<T> node = (Node<T>)new Node(item, priority); return skiplist.add(node); } /** * remove and return item with least priority * @return item with least priority */ public T removeMin() { Node<T> node = skiplist.findAndMarkMin(); if (node != null) { skiplist.remove(node); return node.item; } else{ return null; } } }
[ "daihepeng@sina.cn" ]
daihepeng@sina.cn
1d8c5f879a600308ec61c5748e9d2bcb02274028
4d6c00789d5eb8118e6df6fc5bcd0f671bbcdd2d
/src/main/java/com/alipay/api/domain/NewsfeedMediaLinkInfo.java
30cf71e43cc741606323e616f0564afd371830f5
[ "Apache-2.0" ]
permissive
weizai118/payment-alipay
042898e172ce7f1162a69c1dc445e69e53a1899c
e3c1ad17d96524e5f1c4ba6d0af5b9e8fce97ac1
refs/heads/master
2020-04-05T06:29:57.113650
2018-11-06T11:03:05
2018-11-06T11:03:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,874
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 链接信息数据结构 * * @author auto create * @since 1.0, 2016-10-26 17:43:37 */ public class NewsfeedMediaLinkInfo extends AlipayObject { private static final long serialVersionUID = 5231258353159377249L; /** * 资源ID */ @ApiField("content_id") private String contentId; /** * 资源的来源 */ @ApiField("content_source") private String contentSource; /** * 资源类型 */ @ApiField("content_type") private String contentType; /** * 描述 */ @ApiField("desc") private String desc; /** * 链接的缩略图 */ @ApiField("thumb") private String thumb; /** * 标题 */ @ApiField("title") private String title; /** * linkurl */ @ApiField("url") private String url; /** * Gets content id. * * @return the content id */ public String getContentId() { return this.contentId; } /** * Sets content id. * * @param contentId the content id */ public void setContentId(String contentId) { this.contentId = contentId; } /** * Gets content source. * * @return the content source */ public String getContentSource() { return this.contentSource; } /** * Sets content source. * * @param contentSource the content source */ public void setContentSource(String contentSource) { this.contentSource = contentSource; } /** * Gets content type. * * @return the content type */ public String getContentType() { return this.contentType; } /** * Sets content type. * * @param contentType the content type */ public void setContentType(String contentType) { this.contentType = contentType; } /** * Gets desc. * * @return the desc */ public String getDesc() { return this.desc; } /** * Sets desc. * * @param desc the desc */ public void setDesc(String desc) { this.desc = desc; } /** * Gets thumb. * * @return the thumb */ public String getThumb() { return this.thumb; } /** * Sets thumb. * * @param thumb the thumb */ public void setThumb(String thumb) { this.thumb = thumb; } /** * Gets title. * * @return the title */ public String getTitle() { return this.title; } /** * Sets title. * * @param title the title */ public void setTitle(String title) { this.title = title; } /** * Gets url. * * @return the url */ public String getUrl() { return this.url; } /** * Sets url. * * @param url the url */ public void setUrl(String url) { this.url = url; } }
[ "hanley@thlws.com" ]
hanley@thlws.com
a29be034cae90e42c841fd7a601a6f929c36244e
7b40d383ff3c5d51c6bebf4d327c3c564eb81801
/src/com/parse/OfflineStore$36.java
2fcb0e7a0acd3a9b51e42c8aef3050dacaee3023
[]
no_license
reverseengineeringer/com.yik.yak
d5de3a0aea7763b43fd5e735d34759f956667990
76717e41dab0b179aa27f423fc559bbfb70e5311
refs/heads/master
2021-01-20T09:41:04.877038
2015-07-16T16:44:44
2015-07-16T16:44:44
38,577,543
2
0
null
null
null
null
UTF-8
Java
false
false
620
java
package com.parse; import L; import M; import N; class OfflineStore$36 implements M<String, N<Void>> { OfflineStore$36(OfflineStore paramOfflineStore, L paramL1, ParseSQLiteDatabase paramParseSQLiteDatabase, L paramL2, ParseObject paramParseObject) {} public N<Void> then(N<String> paramN) { val$uuid.a(paramN.e()); paramN = new OfflineStore.OfflineEncodingStrategy(this$0, val$db); val$jsonObject.a(val$object.toRest(paramN)); return paramN.whenFinished(); } } /* Location: * Qualified Name: com.parse.OfflineStore.36 * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
68a9da575b3c17e626e8ac6f859f1e8424b82fc5
eb2690583fc03c0d9096389e1c07ebfb80e7f8d5
/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00863.java
1584698bb8957e43df02ad02cefbcf98e26f13fb
[]
no_license
leroy-habberstad/java-benchmark
126671f074f81bd7ab339654ed1b2d5d85be85dd
bce2a30bbed61a7f717a9251ca2cbb38b9e6a732
refs/heads/main
2023-03-15T03:02:42.714614
2021-03-23T00:03:36
2021-03-23T00:03:36
350,495,796
0
0
null
null
null
null
UTF-8
Java
false
false
2,311
java
/** * OWASP Benchmark Project v1.2 * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see * <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>. * * The OWASP Benchmark 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, version 2. * * The OWASP Benchmark 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. * * @author Nick Sanidas <a href="https://www.aspectsecurity.com">Aspect Security</a> * @created 2015 */ package org.owasp.benchmark.testcode; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebServlet(value="/pathtraver-00/BenchmarkTest00863") public class BenchmarkTest00863 extends HttpServlet { private static final long serialVersionUID = 1L; @Override public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); } @Override public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); org.owasp.benchmark.helpers.SeparateClassRequest scr = new org.owasp.benchmark.helpers.SeparateClassRequest( request ); String param = scr.getTheValue("BenchmarkTest00863"); org.owasp.benchmark.helpers.ThingInterface thing = org.owasp.benchmark.helpers.ThingFactory.createThing(); String bar = thing.doSomething(param); java.io.File fileTarget = new java.io.File(bar, "/Test.txt"); response.getWriter().println( "Access to file: '" + org.owasp.esapi.ESAPI.encoder().encodeForHTML(fileTarget.toString()) + "' created." ); if (fileTarget.exists()) { response.getWriter().println( " And file already exists." ); } else { response.getWriter().println( " But file doesn't exist yet." ); } } }
[ "jjohnson@gitlab.com" ]
jjohnson@gitlab.com
b52195449b1ae07d8960cc82ed1052f6aecbd838
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
/aliyun-java-sdk-iot/src/main/java/com/aliyuncs/iot/transform/v20180120/DeleteOTAFirmwareResponseUnmarshaller.java
d1f729ae3d45f279f7dc18b93e381406a6ea1811
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-java-sdk
a263fa08e261f12d45586d1b3ad8a6609bba0e91
e19239808ad2298d32dda77db29a6d809e4f7add
refs/heads/master
2023-09-03T12:28:09.765286
2023-09-01T09:03:00
2023-09-01T09:03:00
39,555,898
1,542
1,317
NOASSERTION
2023-09-14T07:27:05
2015-07-23T08:41:13
Java
UTF-8
Java
false
false
1,354
java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.aliyuncs.iot.transform.v20180120; import com.aliyuncs.iot.model.v20180120.DeleteOTAFirmwareResponse; import com.aliyuncs.transform.UnmarshallerContext; public class DeleteOTAFirmwareResponseUnmarshaller { public static DeleteOTAFirmwareResponse unmarshall(DeleteOTAFirmwareResponse deleteOTAFirmwareResponse, UnmarshallerContext _ctx) { deleteOTAFirmwareResponse.setRequestId(_ctx.stringValue("DeleteOTAFirmwareResponse.RequestId")); deleteOTAFirmwareResponse.setSuccess(_ctx.booleanValue("DeleteOTAFirmwareResponse.Success")); deleteOTAFirmwareResponse.setCode(_ctx.stringValue("DeleteOTAFirmwareResponse.Code")); deleteOTAFirmwareResponse.setErrorMessage(_ctx.stringValue("DeleteOTAFirmwareResponse.ErrorMessage")); return deleteOTAFirmwareResponse; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
05bef7bd9afdceeeceb5f20b60a553b8ca10f427
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/26/26_161b84c0b05310783eae25f3621523453e7f759a/Subject/26_161b84c0b05310783eae25f3621523453e7f759a_Subject_t.java
9b2b81eaec66c20eb467ea251b0a78cb95002a88
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
7,832
java
package no.niths.domain.school; import java.util.ArrayList; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.JoinTable; import javax.persistence.ManyToMany; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Table; import javax.persistence.Transient; import javax.validation.constraints.Pattern; import javax.validation.constraints.Size; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlTransient; import no.niths.common.constants.DomainConstantNames; import no.niths.common.constants.ValidationConstants; import no.niths.domain.Domain; import no.niths.domain.location.Room; import no.niths.domain.school.constants.Weekday; import org.codehaus.jackson.annotate.JsonIgnore; import org.codehaus.jackson.map.annotate.JsonSerialize; import org.hibernate.annotations.Cascade; import org.hibernate.annotations.CascadeType; /** * Domain class for Subject * * <p> * Subject has these variables: * name = example Java programmering 1 (must be unique), * subjectCode = example PG2100 (must be unique), * description = example innføring i Java, * weekday = example monday, * startTime = example 10:00, * endTime = example 11:00 * </p> * <p> * And relations too: * Student (as tutor), * Room, * Course, * Exam * </p> */ @XmlRootElement @Entity @Table(name = DomainConstantNames.SUBJECTS) @JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL) @XmlAccessorType(XmlAccessType.FIELD) public class Subject implements Domain { @Transient private static final long serialVersionUID = 3477975219659800316L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(unique = true) @Pattern( regexp = ValidationConstants.REGULAR, message = "Invalid name (should be 2 - 80 alphanumeric letters)") private String name; @Column(unique = true, name = "subject_code") @Pattern( regexp = ValidationConstants.REGULAR, message = "Invalid name (should be 2 - 80 alphanumeric letters)") @XmlElement(name="sibjectcode") private String subjectCode; @Column @Pattern( regexp = ValidationConstants.LARGE, message = "Invalid name (should be 2 - 500 alphanumeric letters)") private String description; @Column @Enumerated(EnumType.STRING) private Weekday weekday; @JsonSerialize(as = Room.class) @ManyToOne(fetch = FetchType.LAZY) @JoinTable( name = "subjects_room", joinColumns = @JoinColumn(name = "subjects_id"), inverseJoinColumns = @JoinColumn(name = "room_id")) private Room room; @Column(name = "start_time") @Pattern( regexp = "(^$)|([0-2]{1}[0-9]{1}:[0-9]{2})", message = "Not a valid time") @XmlElement(name = "starttime") private String startTime; @Column(name = "end_time") @Pattern( regexp = "(^$)|([0-2]{1}[0-9]{1}:[0-9]{2})", message = "Not a valid time") @XmlElement(name = "endtime") private String endTime; @JsonIgnore @XmlTransient @ManyToMany(fetch = FetchType.LAZY, targetEntity = Course.class) @JoinTable( name = "courses_subjects", joinColumns = @JoinColumn(name = "subjects_id"), inverseJoinColumns = @JoinColumn(name = "courses_id")) @Cascade(CascadeType.ALL) private List<Course> courses = new ArrayList<Course>(); @JsonIgnore @XmlTransient @OneToMany(fetch = FetchType.LAZY, targetEntity= Exam.class) @JoinTable( name = "exam_subjects", joinColumns = @JoinColumn(name = "subjects_id"), inverseJoinColumns = @JoinColumn(name = "exams_id")) @Cascade(CascadeType.ALL) private List<Exam> exams = new ArrayList<Exam>(); @ManyToMany(fetch = FetchType.LAZY, targetEntity= Student.class) @JoinTable( name = "subjects_tutors", joinColumns = @JoinColumn(name = "subjects_id"), inverseJoinColumns = @JoinColumn(name = "tutors_id")) @Cascade(CascadeType.ALL) private List<Student> tutors = new ArrayList<Student>(); public Subject(){ this(null, null, null, null, null); setExams(null); setCourses(null); setTutors(null); } public Subject(String name){ this(name,null, null, null,null); } public Subject(String name, String topicCode, String description, String startTime, String endTime){ setName(name); setSubjectCode(topicCode); setDescription(description); setStartTime(startTime); setEndTime(endTime); } public Subject(Long subjectId) { setId(subjectId); } @Override public String toString() { return String.format("[%s][%s][%s]", id, name, description); } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getSubjectCode() { return subjectCode; } public void setSubjectCode(String code) { this.subjectCode = code; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Weekday getWeekday() { return weekday; } public void setWeekday(Weekday weekday) { this.weekday = weekday; } public String getStartTime() { return startTime; } public void setStartTime(String startTime) { this.startTime = startTime; } public String getEndTime() { return endTime; } public void setEndTime(String endTime) { this.endTime = endTime; } public List<Course> getCourses() { return courses; } public void setCourses(List<Course> courses) { this.courses = courses; } public List<Exam> getExams() { return exams; } public void setExams(List<Exam> exams) { this.exams = exams; } public List<Student> getTutors() { return tutors; } public void setTutors(List<Student> tutors) { this.tutors = tutors; } public Room getRoom() { return room; } public void setRoom(Room room) { this.room = room; } @Override public boolean equals(Object that) { if(!(that instanceof Subject)) return false; Subject sub = (Subject) that; return sub == this ? true : sub.getId() == id ? true : false; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
7da1f46057d86fa2ffdae57d9b0e463a2a9c5284
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Math/52/org/apache/commons/math/ode/nonstiff/RungeKuttaStepInterpolator_readExternal_155.java
93c02ec1b8c1e8103ca2e772029e1ab290e72cc9
[]
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
836
java
org apach common math od nonstiff repres interpol step od integr rung kutta embed rung kutta integr rung kutta integr rungekuttaintegr embed rung kutta integr embeddedrungekuttaintegr version rung kutta step interpol rungekuttastepinterpol inherit doc inheritdoc overrid read extern readextern object input objectinput except ioexcept read base read base extern readbaseextern read local attribut current state currentst current state currentst length max kmax read int readint dot ydotk max kmax max kmax max kmax dot ydotk dot ydotk read doubl readdoubl integr current state currentst set interpol time state set interpol time setinterpolatedtim interpol time interpolatedtim
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
96187a6f1a4c23a1726eff5c5e1c8cc1e9119316
19ba8f487f1bc8965b6155469acae4d5059c77c5
/src/main/java/mx/tiendas3b/tdexpress/repository/ProveedorRepository.java
7d2be57017e05c8f70defcaed52a675318256270
[]
no_license
opelayoa/tdexpress
a7c8460159786b3a7ee2f40912788fd62c17cb07
d917858db7dcbce94d42c7e2d940af80c72ea11f
refs/heads/master
2020-04-26T14:31:52.936070
2019-06-10T02:11:55
2019-06-10T02:11:55
173,617,629
0
0
null
null
null
null
UTF-8
Java
false
false
240
java
package mx.tiendas3b.tdexpress.repository; import org.springframework.data.repository.CrudRepository; import mx.tiendas3b.tdexpress.entities.Proveedor; public interface ProveedorRepository extends CrudRepository<Proveedor, Integer> { }
[ "od.pelayo@gmail.com" ]
od.pelayo@gmail.com
831e8a112d8a050279b8baea45505291afedd966
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
/Code Snippet Repository/Hibernate/Hibernate3889.java
6fcac755b3844dc4d823485d1b2e46cd6358eccb
[]
no_license
saber13812002/DeepCRM
3336a244d4852a364800af3181e03e868cf6f9f5
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
refs/heads/master
2023-03-16T00:08:06.473699
2018-04-18T05:29:50
2018-04-18T05:29:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
347
java
public String sqlConstraintString(Dialect dialect) { StringBuilder buf = new StringBuilder( " index (" ); Iterator iter = getColumnIterator(); while ( iter.hasNext() ) { buf.append( ( (Column) iter.next() ).getQuotedName( dialect ) ); if ( iter.hasNext() ) { buf.append( ", " ); } } return buf.append( ')' ).toString(); }
[ "Qing.Mi@my.cityu.edu.hk" ]
Qing.Mi@my.cityu.edu.hk
2a4cae4783ef391c018d838136bf056feaf4f88a
0721305fd9b1c643a7687b6382dccc56a82a2dad
/src/app.zenly.locator_4.8.0_base_source_from_JADX/sources/p389io/reactivex/functions/Function3.java
d0c48a7c820a8bd58aeb181dd3a8992dd1dfe948
[]
no_license
a2en/Zenly_re
09c635ad886c8285f70a8292ae4f74167a4ad620
f87af0c2dd0bc14fd772c69d5bc70cd8aa727516
refs/heads/master
2020-12-13T17:07:11.442473
2020-01-17T04:32:44
2020-01-17T04:32:44
234,470,083
1
0
null
null
null
null
UTF-8
Java
false
false
187
java
package p389io.reactivex.functions; /* renamed from: io.reactivex.functions.Function3 */ public interface Function3<T1, T2, T3, R> { R apply(T1 t1, T2 t2, T3 t3) throws Exception; }
[ "developer@appzoc.com" ]
developer@appzoc.com
16260d6a31197345ea952add24f82a0232f85d29
6259a830a3d9e735e6779e41a678a71b4c27feb2
/anchor-plugin-onnx/src/test/java/org/anchoranalysis/plugin/onnx/bean/object/segment/decode/instance/SegmentTextFromONNXTest.java
312e8a904b58080e9b36546efb27afc8f0f9e773
[ "MIT", "Apache-2.0" ]
permissive
anchoranalysis/anchor-plugins
103168052419b1072d0f8cd0201dabfb7dc84f15
5817d595d171b8598ab9c0195586c5d1f83ad92e
refs/heads/master
2023-07-24T02:38:11.667846
2023-07-18T07:51:10
2023-07-18T07:51:10
240,064,307
2
0
MIT
2023-07-18T07:51:12
2020-02-12T16:48:04
Java
UTF-8
Java
false
false
3,659
java
/*- * #%L * anchor-plugin-onnx * %% * Copyright (C) 2010 - 2022 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche * %% * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * #L% */ package org.anchoranalysis.plugin.onnx.bean.object.segment.decode.instance; import org.anchoranalysis.bean.primitive.DoubleList; import org.anchoranalysis.image.bean.spatial.ScaleCalculator; import org.anchoranalysis.image.bean.spatial.SizeXY; import org.anchoranalysis.image.inference.bean.segment.instance.SegmentStackIntoObjectsPooled; import org.anchoranalysis.image.inference.bean.segment.instance.SuppressNonMaximum; import org.anchoranalysis.io.imagej.bean.interpolator.ImageJ; import org.anchoranalysis.plugin.image.bean.object.segment.reduce.ThresholdConfidence; import org.anchoranalysis.plugin.image.bean.scale.FitTo; import org.anchoranalysis.plugin.onnx.bean.object.segment.decode.instance.text.DecodeEAST; import org.anchoranalysis.plugin.onnx.bean.object.segment.stack.SegmentObjectsFromONNXModel; import org.anchoranalysis.spatial.box.BoundingBox; import org.anchoranalysis.spatial.box.BoundingBoxFactory; import org.anchoranalysis.test.image.io.BeanInstanceMapFixture; import org.anchoranalysis.test.image.segment.InstanceSegmentationTestBase; /** * Tests {@link SegmentObjectsFromONNXModel} together with {@link DecodeEAST}. * * @author Owen Feehan */ class SegmentTextFromONNXTest extends InstanceSegmentationTestBase { @Override protected BoundingBox targetBox() { return BoundingBoxFactory.at(307, 310, 208, 46); } @Override protected SegmentStackIntoObjectsPooled<?> createSegmenter() { SegmentObjectsFromONNXModel segment = new SegmentObjectsFromONNXModel(); segment.setDecode(new DecodeEAST()); segment.setModelPath("east_text_detection.onnx"); segment.setScaleInput(createScaleInput()); segment.setSubtractMean(new DoubleList(123.68, 116.78, 103.94)); segment.setInputName("input_images:0"); segment.setIncludeBatchDimension(true); segment.setInterleaveChannels(true); segment.setReadFromResources(true); BeanInstanceMapFixture.ensureInterpolator(new ImageJ()); BeanInstanceMapFixture.ensureStackDisplayer(); BeanInstanceMapFixture.check(segment); return new SuppressNonMaximum<>(segment, new ThresholdConfidence(), false); } private ScaleCalculator createScaleInput() { FitTo largestMultiple = new FitTo(); largestMultiple.setTargetSize(new SizeXY(1280, 720)); largestMultiple.setMultipleOf(32); return largestMultiple; } }
[ "owenfeehan@users.noreply.github.com" ]
owenfeehan@users.noreply.github.com
9c459a310c75b60f6d2956ff777edf9ba0713927
bca3c2f244016c41d29e0b1ca839f47d1b16fb01
/hadoopman/src/main/java/com/github/thushear/bigdata/transformer/model/dim/base/PlatformDimension.java
52f7a1eeeb18dfb9aa76e1771b3088542740e882
[]
no_license
yanghongfeng/ArchitectureOfBigData
35206a3d5959733b28570fb9f61d87facf6b6ce1
30be01a75bf6d52bb9f5a5d10910ec2c0e26bbc9
refs/heads/master
2021-01-01T16:15:32.963428
2017-03-10T00:08:34
2017-03-10T00:08:34
97,799,054
1
0
null
2017-07-20T06:33:12
2017-07-20T06:33:12
null
UTF-8
Java
false
false
3,194
java
package com.github.thushear.bigdata.transformer.model.dim.base; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import java.util.ArrayList; import java.util.List; import com.github.thushear.bigdata.common.GlobalConstants; import org.apache.commons.lang.StringUtils; /** * 平台维度类 * * @author gerry * */ public class PlatformDimension extends BaseDimension { private int id; private String platformName; public PlatformDimension() { super(); } public PlatformDimension(String platformName) { super(); this.platformName = platformName; } public PlatformDimension(int id, String platformName) { super(); this.id = id; this.platformName = platformName; } public static List<PlatformDimension> buildList(String platformName) { if (StringUtils.isBlank(platformName)) { platformName = GlobalConstants.DEFAULT_VALUE; } List<PlatformDimension> list = new ArrayList<PlatformDimension>(); list.add(new PlatformDimension(GlobalConstants.VALUE_OF_ALL)); list.add(new PlatformDimension(platformName)); return list; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getPlatformName() { return platformName; } public void setPlatformName(String platformName) { this.platformName = platformName; } @Override public void write(DataOutput out) throws IOException { out.writeInt(this.id); out.writeUTF(this.platformName); } @Override public void readFields(DataInput in) throws IOException { this.id = in.readInt(); this.platformName = in.readUTF(); } @Override public int compareTo(BaseDimension o) { if (this == o) { return 0; } PlatformDimension other = (PlatformDimension) o; int tmp = Integer.compare(this.id, other.id); if (tmp != 0) { return tmp; } tmp = this.platformName.compareTo(other.platformName); return tmp; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + id; result = prime * result + ((platformName == null) ? 0 : platformName.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; PlatformDimension other = (PlatformDimension) obj; if (id != other.id) return false; if (platformName == null) { if (other.platformName != null) return false; } else if (!platformName.equals(other.platformName)) return false; return true; } @Override public String toString() { return "PlatformDimension{" + "id=" + id + ", platformName='" + platformName + '\'' + '}'; } }
[ "kongming@jd.com" ]
kongming@jd.com
644d6a0314de386ca89ba4a2b2153750322232ff
f4311a54600634fe22647595c7985aa658c85838
/src/net/generalised/genedit/model/gn/Characteristic.java
40b4cb3b116496fc30753c25d57bbde7699f5ed0
[ "MIT" ]
permissive
generalized-nets-team/gn-ide
c0013f1971ad1f17d65e02b0eb542378d20ff139
c9a1a765c1694029cb976a023395271da8dc364b
refs/heads/master
2021-01-16T21:05:48.589332
2018-12-15T17:37:28
2018-12-15T17:37:28
60,630,323
0
0
null
null
null
null
UTF-8
Java
false
false
2,610
java
package net.generalised.genedit.model.gn; import java.util.List; import net.generalised.genedit.baseapp.StringUtil; import net.generalised.genedit.model.common.IntegerInf; public class Characteristic extends GnObjectWithId implements Cloneable { private String type;//TODO: String or enum? private CharacteristicHistory historyValues; public static final String DEFAULT = "Default"; public String getName() { return getId(); } public void setName(String name) { setId(name); } public String getType() { return type; } public void setType(String type) { if (! this.type.equals(type)) { historyValues = new CharacteristicHistory(historyValues.getCapacity()); //TODO: or throw exception, if during simulation? this.type = type; } } public CharacteristicHistory getHistoryValues() { return historyValues;// TODO: return immutable! } // public void setHistoryValues(CharacteristicHistory values) { // if (values == null) { // throw new NullPointerException(); // } // this.historyValues = values; // } public Characteristic(String type, IntegerInf history) { //this.name = DEFAULT; setId(DEFAULT); StringUtil.assertNotEmpty(type, "characteristic type"); this.type = type; this.historyValues = new CharacteristicHistory(history); } public Characteristic(String type, int history) { this(type, new IntegerInf(history)); } public String getValue() { List<String> values = historyValues.getValues(); if (values.size() > 0) return values.get(values.size() - 1); return ""; } public void setValue(String value) {//TODO: if we call set, do we need keeping history at all? why not delete all old values? historyValues.setTopValue(value); } public void pushValue(String value) { historyValues.add(value); } public IntegerInf getHistory() { return historyValues.getCapacity(); } public void setHistory(IntegerInf value) { this.historyValues = new CharacteristicHistory(value); //TODO: da pazim li starite stoinosti? } @Override public Object clone() throws CloneNotSupportedException { Characteristic result = (Characteristic) super.clone(); result.historyValues = (CharacteristicHistory) this.historyValues.clone(); return result; } // public Characteristic clone() { // Characteristic characteristic = new Characteristic(this.type, this.historyValues.getCapacity()); // characteristic.name = this.name; // characteristic.historyValues = this.historyValues.clone(); // return characteristic; // } }
[ "@" ]
@
c98903c2542522eb0003b1e632b96be6b97fed6c
c885ef92397be9d54b87741f01557f61d3f794f3
/results/JacksonCore-25/com.fasterxml.jackson.core.json.ReaderBasedJsonParser/BBC-F0-opt-60/tests/14/com/fasterxml/jackson/core/json/ReaderBasedJsonParser_ESTest_scaffolding.java
1008c7c1a809c2139a53effe30ad7eff3ed00779
[ "CC-BY-4.0", "MIT" ]
permissive
pderakhshanfar/EMSE-BBC-experiment
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
fea1a92c2e7ba7080b8529e2052259c9b697bbda
refs/heads/main
2022-11-25T00:39:58.983828
2022-04-12T16:04:26
2022-04-12T16:04:26
309,335,889
0
1
null
2021-11-05T11:18:43
2020-11-02T10:30:38
null
UTF-8
Java
false
false
8,041
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Thu Oct 21 03:52:08 GMT 2021 */ package com.fasterxml.jackson.core.json; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; import org.junit.AfterClass; import org.evosuite.runtime.sandbox.Sandbox; import org.evosuite.runtime.sandbox.Sandbox.SandboxMode; import static org.evosuite.shaded.org.mockito.Mockito.*; @EvoSuiteClassExclude public class ReaderBasedJsonParser_ESTest_scaffolding { @org.junit.Rule public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule(); private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone(); private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000); @BeforeClass public static void initEvoSuiteFramework() { org.evosuite.runtime.RuntimeSettings.className = "com.fasterxml.jackson.core.json.ReaderBasedJsonParser"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100; org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED; org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT(); org.evosuite.runtime.classhandling.JDKClassResetter.init(); setSystemProperties(); initializeClasses(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); try { initMocksToAvoidTimeoutsInTheTests(); } catch(ClassNotFoundException e) {} } @AfterClass public static void clearEvoSuiteFramework(){ Sandbox.resetDefaultSecurityManager(); java.lang.System.setProperties((java.util.Properties) defaultProperties.clone()); } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler(); org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode(); setSystemProperties(); org.evosuite.runtime.GuiSupport.setHeadless(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); org.evosuite.runtime.agent.InstrumentingAgent.activate(); } @After public void doneWithTestCase(){ threadStopper.killAndJoinClientThreads(); org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks(); org.evosuite.runtime.classhandling.JDKClassResetter.reset(); resetClasses(); org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode(); org.evosuite.runtime.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } public static void setSystemProperties() { java.lang.System.setProperties((java.util.Properties) defaultProperties.clone()); java.lang.System.setProperty("user.dir", "/experiment"); } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(ReaderBasedJsonParser_ESTest_scaffolding.class.getClassLoader() , "com.fasterxml.jackson.core.io.JsonEOFException", "com.fasterxml.jackson.core.JsonParser$NumberType", "com.fasterxml.jackson.core.json.ReaderBasedJsonParser", "com.fasterxml.jackson.core.io.CharTypes", "com.fasterxml.jackson.core.JsonLocation", "com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer", "com.fasterxml.jackson.core.JsonGenerator", "com.fasterxml.jackson.core.SerializableString", "com.fasterxml.jackson.core.Versioned", "com.fasterxml.jackson.core.ObjectCodec", "com.fasterxml.jackson.core.json.JsonReadContext", "com.fasterxml.jackson.core.type.ResolvedType", "com.fasterxml.jackson.core.JsonFactory$Feature", "com.fasterxml.jackson.core.util.InternCache", "com.fasterxml.jackson.core.JsonParser$Feature", "com.fasterxml.jackson.core.io.SerializedString", "com.fasterxml.jackson.core.JsonEncoding", "com.fasterxml.jackson.core.util.RequestPayload", "com.fasterxml.jackson.core.json.DupDetector", "com.fasterxml.jackson.core.JsonToken", "com.fasterxml.jackson.core.type.TypeReference", "com.fasterxml.jackson.core.JsonParseException", "com.fasterxml.jackson.core.util.BufferRecycler", "com.fasterxml.jackson.core.TreeNode", "com.fasterxml.jackson.core.TreeCodec", "com.fasterxml.jackson.core.JsonParser", "com.fasterxml.jackson.core.Version", "com.fasterxml.jackson.core.JsonProcessingException", "com.fasterxml.jackson.core.JsonStreamContext", "com.fasterxml.jackson.core.util.TextBuffer", "com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer$Bucket", "com.fasterxml.jackson.core.Base64Variant", "com.fasterxml.jackson.core.Base64Variants", "com.fasterxml.jackson.core.JsonFactory", "com.fasterxml.jackson.core.base.ParserMinimalBase", "com.fasterxml.jackson.core.io.NumberInput", "com.fasterxml.jackson.core.util.ByteArrayBuilder", "com.fasterxml.jackson.core.io.IOContext", "com.fasterxml.jackson.core.FormatSchema", "com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer$TableInfo", "com.fasterxml.jackson.core.base.ParserBase", "com.fasterxml.jackson.core.async.NonBlockingInputFeeder" ); } private static void initMocksToAvoidTimeoutsInTheTests() throws ClassNotFoundException { mock(Class.forName("com.fasterxml.jackson.core.ObjectCodec", false, ReaderBasedJsonParser_ESTest_scaffolding.class.getClassLoader())); } private static void resetClasses() { org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(ReaderBasedJsonParser_ESTest_scaffolding.class.getClassLoader()); org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses( "com.fasterxml.jackson.core.JsonParser", "com.fasterxml.jackson.core.base.ParserMinimalBase", "com.fasterxml.jackson.core.base.ParserBase", "com.fasterxml.jackson.core.JsonParser$Feature", "com.fasterxml.jackson.core.io.CharTypes", "com.fasterxml.jackson.core.json.ReaderBasedJsonParser", "com.fasterxml.jackson.core.JsonToken", "com.fasterxml.jackson.core.util.BufferRecycler", "com.fasterxml.jackson.core.io.IOContext", "com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer", "com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer$TableInfo", "com.fasterxml.jackson.core.JsonStreamContext", "com.fasterxml.jackson.core.json.JsonReadContext", "com.fasterxml.jackson.core.TreeCodec", "com.fasterxml.jackson.core.ObjectCodec", "com.fasterxml.jackson.core.JsonFactory$Feature", "com.fasterxml.jackson.core.util.TextBuffer", "com.fasterxml.jackson.core.Base64Variant", "com.fasterxml.jackson.core.json.DupDetector", "com.fasterxml.jackson.core.JsonProcessingException", "com.fasterxml.jackson.core.JsonParseException", "com.fasterxml.jackson.core.JsonLocation", "com.fasterxml.jackson.core.io.SerializedString", "com.fasterxml.jackson.core.io.JsonEOFException", "com.fasterxml.jackson.core.util.BufferRecyclers", "com.fasterxml.jackson.core.io.JsonStringEncoder", "com.fasterxml.jackson.core.type.TypeReference", "com.fasterxml.jackson.core.Base64Variants", "com.fasterxml.jackson.core.util.RequestPayload", "com.fasterxml.jackson.core.util.ByteArrayBuilder", "com.fasterxml.jackson.core.util.InternCache", "com.fasterxml.jackson.core.io.NumberInput" ); } }
[ "pderakhshanfar@serg2.ewi.tudelft.nl" ]
pderakhshanfar@serg2.ewi.tudelft.nl
7662d7b402e86e5ce447130ef4e326d2f18d85fb
64ffa74d119ff4a4a9d76765fa0bd5413f499189
/src/cn/labsoft/labos/business/samtest/entity/LabSamTest.java
fc0b2264cb6db9158f3ba63fe372cae743e786ee
[]
no_license
zongweiyang/eLims
9d10c6929c242c67870781d571621609a7e70116
ba9d663153ace634fd987e07541022af0d33f19f
refs/heads/master
2021-01-13T01:31:05.609832
2015-07-19T03:44:49
2015-07-19T03:44:49
34,788,558
1
0
null
null
null
null
UTF-8
Java
false
false
7,256
java
package cn.labsoft.labos.business.samtest.entity; import cn.labsoft.labos.framework.common.po.AbstractBasePo; import javax.persistence.Column; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Transient; import javax.persistence.Entity; @Entity public class LabSamTest extends AbstractBasePo { private static final long serialVersionUID = 1L; private String name;//样品名称 private String labSamId; private String labSamName; private String sampCode; private String labSamTypeId; private String labSamTypeName; private String methodId;//检测方法Id private String methodName;//检测方法名称 private String itemId; //分析项目ID private String itemName; //分析项目名称 private String standardId;//检测标准Id private String standardName;//检测标准名称 private String describeWri;//标准下对应的标准值描述 private String describeFormula;//标准下标准值范围 private String orgId;//检测ID private String orgName;//检测室名称 private String finishDate;//截止日期 private String taskId; //任务ID private String taskNo; //任务编号 private String taskType; //检测类别 private String isSued; //是否下达 private String isTask; //是否分配 private String isTest; //是否检验 private String isCheck; //是否校验 private String isBack; //是否退回 private String testManId;//检测人ID private String testManName;//检测人姓名 private String testTime; //检测日期 private String checkManId;//检验人ID private String checkManName;//检验人姓名 private String temperature;//温度 private String humidity;//湿度 private String startDate;//开始时间 private String endDate;//结束时间 private String value; //检测结果 private String result;//判定结果 private LabSamTestBeatch labSamTestBeatch; @ManyToOne @JoinColumn(name="beatch_id") public LabSamTestBeatch getLabSamTestBeatch() { return labSamTestBeatch; } public void setLabSamTestBeatch(LabSamTestBeatch labSamTestBeatch) { this.labSamTestBeatch = labSamTestBeatch; } public String getOrgId() { return orgId; } public void setOrgId(String orgId) { this.orgId = orgId; } public String getOrgName() { return orgName; } public void setOrgName(String orgName) { this.orgName = orgName; } public String getTaskId() { return taskId; } public void setTaskId(String taskId) { this.taskId = taskId; } public String getName() { return this.name; } public void setName(String name) { this.name = name; } public String getMethodId() { return this.methodId; } public void setMethodId(String methodId) { this.methodId = methodId; } public String getMethodName() { return this.methodName; } public void setMethodName(String methodName) { this.methodName = methodName; } public String getStandardId() { return this.standardId; } public void setStandardId(String standardId) { this.standardId = standardId; } public String getStandardName() { return this.standardName; } public void setStandardName(String standardName) { this.standardName = standardName; } @Transient @Override public String getModelName() { return "检测管理"; } @Transient @Override public String getTableName() { return "检测样品数据"; } public String getItemId() { return itemId; } public void setItemId(String itemId) { this.itemId = itemId; } public String getItemName() { return itemName; } public void setItemName(String itemName) { this.itemName = itemName; } @Column(name="sam_id") public String getLabSamId() { return labSamId; } public void setLabSamId(String labSamId) { this.labSamId = labSamId; } @Column(name="sam_name") public String getLabSamName() { return labSamName; } public void setLabSamName(String labSamName) { this.labSamName = labSamName; } public String getSampCode() { return sampCode; } public void setSampCode(String sampCode) { this.sampCode = sampCode; } @Column(name="sam_type_id") public String getLabSamTypeId() { return labSamTypeId; } public void setLabSamTypeId(String labSamTypeId) { this.labSamTypeId = labSamTypeId; } @Column(name="sam_type_name") public String getLabSamTypeName() { return labSamTypeName; } public void setLabSamTypeName(String labSamTypeName) { this.labSamTypeName = labSamTypeName; } public String getTaskNo() { return taskNo; } public void setTaskNo(String taskNo) { this.taskNo = taskNo; } public String getTaskType() { return taskType; } public void setTaskType(String taskType) { this.taskType = taskType; } public String getFinishDate() { return finishDate; } public void setFinishDate(String finishDate) { this.finishDate = finishDate; } public String getIsTask() { return isTask; } public void setIsTask(String isTask) { this.isTask = isTask; } public String getTestManId() { return testManId; } public void setTestManId(String testManId) { this.testManId = testManId; } public String getTestManName() { return testManName; } public void setTestManName(String testManName) { this.testManName = testManName; } public String getCheckManId() { return checkManId; } public void setCheckManId(String checkManId) { this.checkManId = checkManId; } public String getCheckManName() { return checkManName; } public void setCheckManName(String checkManName) { this.checkManName = checkManName; } public String getDescribeWri() { return describeWri; } public void setDescribeWri(String describeWri) { this.describeWri = describeWri; } public String getDescribeFormula() { return describeFormula; } public void setDescribeFormula(String describeFormula) { this.describeFormula = describeFormula; } 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 getValue() { return value; } public void setValue(String value) { this.value = value; } public String getIsSued() { return isSued; } public void setIsSued(String isSued) { this.isSued = isSued; } public String getIsBack() { return isBack; } public void setIsBack(String isBack) { this.isBack = isBack; } public String getIsTest() { return isTest; } public void setIsTest(String isTest) { this.isTest = isTest; } public String getIsCheck() { return isCheck; } public void setIsCheck(String isCheck) { this.isCheck = isCheck; } public String getTestTime() { return testTime; } public void setTestTime(String testTime) { this.testTime = testTime; } public String getResult() { return result; } public void setResult(String result) { this.result = result; } public String getStartDate() { return startDate; } public void setStartDate(String startDate) { this.startDate = startDate; } public String getEndDate() { return endDate; } public void setEndDate(String endDate) { this.endDate = endDate; } }
[ "yzwok@sina.cn" ]
yzwok@sina.cn
11e5f7279613aaa4b3363a522af081b85a8421e2
ef6ae671580eff7107cd528b58b7d729d9d4f6a8
/src/main/java/org/snpeff/interval/codonChange/CodonChangeInterval.java
c40bc0be4d3e3fc63d607fc62e965ad8b7589855
[ "MIT" ]
permissive
pcingola/SnpEff
2f0e81209478cc109f50e35f77641acbbb0706cf
f1d6aaa22e753368a78ca287dbf476dc8ed56810
refs/heads/master
2023-09-04T04:45:18.356606
2023-08-19T19:50:31
2023-08-19T19:50:31
16,422,517
194
83
NOASSERTION
2023-06-20T14:10:58
2014-01-31T22:22:33
Java
UTF-8
Java
false
false
726
java
package org.snpeff.interval.codonChange; import org.snpeff.interval.Exon; import org.snpeff.interval.Transcript; import org.snpeff.interval.Variant; import org.snpeff.snpEffect.VariantEffects; /** * Calculate codon changes produced by a Interval * * Note: An interval does not produce any effect. * * @author pcingola */ public class CodonChangeInterval extends CodonChange { public CodonChangeInterval(Variant variant, Transcript transcript, VariantEffects varEffects) { super(variant, transcript, varEffects); returnNow = false; // An interval may affect more than one exon } /** * Interval is not a variant, nothing to do */ @Override protected boolean codonChange(Exon exon) { return false; } }
[ "pablo.e.cingolani@gmail.com" ]
pablo.e.cingolani@gmail.com
4e61e936e0e23ce9ad6bbd99c9b1d622e3bd6a0d
e1e5bd6b116e71a60040ec1e1642289217d527b0
/H5/L2_Scripts_com/L2_Scripts_Revision_20720_2268/dist/gameserver/data/scripts/ai/boxes/TreasureBox33.java
a490b1e223787876455cf9137e3cc785b5a5035b
[]
no_license
serk123/L2jOpenSource
6d6e1988a421763a9467bba0e4ac1fe3796b34b3
603e784e5f58f7fd07b01f6282218e8492f7090b
refs/heads/master
2023-03-18T01:51:23.867273
2020-04-23T10:44:41
2020-04-23T10:44:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,685
java
package ai.boxes; import l2s.commons.util.Rnd; import l2s.gameserver.ai.Fighter; import l2s.gameserver.model.Creature; import l2s.gameserver.model.Player; import l2s.gameserver.model.instances.NpcInstance; /** * @author: rage * @date: 19.12.11 20:58 */ public class TreasureBox33 extends Fighter { public TreasureBox33(NpcInstance actor) { super(actor); } @Override protected void onEvtDead(Creature killer) { super.onEvtDead(killer); if(killer == null) return; Player player = killer.getPlayer(); if(player == null) return; int i0 = Rnd.get(10000); if( i0 < 5010 ) { getActor().dropItem(player, 736, 7); } i0 = Rnd.get(10000); if( i0 < 4383 ) { getActor().dropItem(player, 1061, 4); } i0 = Rnd.get(10000); if( i0 < 7013 ) { getActor().dropItem(player, 737, 4); } i0 = Rnd.get(10000); if( i0 < 2104 ) { getActor().dropItem(player, 10260, 1); } i0 = Rnd.get(10000); if( i0 < 2104 ) { getActor().dropItem(player, 10261, 1); } i0 = Rnd.get(10000); if( i0 < 2104 ) { getActor().dropItem(player, 10262, 1); } i0 = Rnd.get(10000); if( i0 < 2104 ) { getActor().dropItem(player, 10263, 1); } i0 = Rnd.get(10000); if( i0 < 2104 ) { getActor().dropItem(player, 10264, 1); } i0 = Rnd.get(10000); if( i0 < 2104 ) { getActor().dropItem(player, 10265, 1); } i0 = Rnd.get(10000); if( i0 < 2104 ) { getActor().dropItem(player, 10266, 1); } i0 = Rnd.get(10000); if( i0 < 2104 ) { getActor().dropItem(player, 10267, 1); } i0 = Rnd.get(10000); if( i0 < 2104 ) { getActor().dropItem(player, 10268, 1); } i0 = Rnd.get(10000); if( i0 < 4383 ) { getActor().dropItem(player, 5593, 6); } i0 = Rnd.get(10000); if( i0 < 2104 ) { getActor().dropItem(player, 5594, 1); } i0 = Rnd.get(10000); if( i0 < 2104 ) { getActor().dropItem(player, 10269, 1); } i0 = Rnd.get(10000); if( i0 < 6078 ) { getActor().dropItem(player, 10134, 1); } i0 = Rnd.get(10000); if( i0 < 6078 ) { getActor().dropItem(player, 10135, 1); } i0 = Rnd.get(10000); if( i0 < 6078 ) { getActor().dropItem(player, 10136, 1); } i0 = Rnd.get(10000); if( i0 < 6078 ) { getActor().dropItem(player, 1538, 1); } i0 = Rnd.get(10000); if( i0 < 2280 ) { getActor().dropItem(player, 3936, 1); } i0 = Rnd.get(10000); if( i0 < 1840 ) { getActor().dropItem(player, 69, 1); } i0 = Rnd.get(10000); if( i0 < 593 ) { getActor().dropItem(player, 21747, 1); } } }
[ "64197706+L2jOpenSource@users.noreply.github.com" ]
64197706+L2jOpenSource@users.noreply.github.com
caa74abd073c08ce1ef8d9c0dfae904210e536d2
532c9e29048ef644f561a0c3bc6647347364abae
/src/main/java/com/fortex/quickRing/rest/pojo/InitiatorLog.java
093f6b2a3a2776f9078231503f1088ec96a1cb3e
[]
no_license
fortexjava/quickRingRest
f2317135ffdb46b42663ea2fbf20aeba442ad831
b95daf93ad60a0a537b36702e3f131413944c3a3
refs/heads/master
2021-01-20T08:08:05.232570
2017-05-03T03:51:53
2017-05-03T03:51:53
90,105,337
0
0
null
null
null
null
UTF-8
Java
false
false
975
java
/**<p>Description</p> * @author Ivan Huo */ package com.fortex.quickRing.rest.pojo; /** * @author Administrator * */ public class InitiatorLog { private String logIncomingMsg; private String logOutgoingMsg; private String logHeartBeatMsg; private String logAdminMsg; public String getLogIncomingMsg() { return logIncomingMsg; } public void setLogIncomingMsg(String logIncomingMsg) { this.logIncomingMsg = logIncomingMsg; } public String getLogHeartBeatMsg() { return logHeartBeatMsg; } public void setLogHeartBeatMsg(String logHeartBeatMsg) { this.logHeartBeatMsg = logHeartBeatMsg; } public String getLogAdminMsg() { return logAdminMsg; } public void setLogAdminMsg(String logAdminMsg) { this.logAdminMsg = logAdminMsg; } public String getLogOutgoingMsg() { return logOutgoingMsg; } public void setLogOutgoingMsg(String logOutgoingMsg) { this.logOutgoingMsg = logOutgoingMsg; } }
[ "22345195@qq.com" ]
22345195@qq.com
58b1caeda13616b3aa2c944378eb6820c39c0357
85720de1b78e09c53d0b113e08d91e30b2ce0f0f
/car/src/com/paySystem/ic/bean/order/Order.java
b6c385b486fe5bb29a5dfb179f8bb11001d741e4
[]
no_license
supermanxkq/projects
4f2696708f15d82d6b8aa8e6d6025163e52d0f76
19925f26935f66bd196abe4831d40a47b92b4e6d
refs/heads/master
2020-06-18T23:48:07.576254
2016-11-28T08:44:15
2016-11-28T08:44:15
74,933,844
0
1
null
null
null
null
UTF-8
Java
false
false
1,406
java
package com.paySystem.ic.bean.order; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "t_order") public class Order { private Integer id; private String customer; private Integer status; private Date createTime; private String customerPhoneNumber; private String orderDesc; @Column public Date getCreateTime() { return createTime; } @Column public String getCustomer() { return customer; } @Column public String getCustomerPhoneNumber() { return customerPhoneNumber; } @Id @GeneratedValue(strategy = GenerationType.AUTO) public Integer getId() { return id; } @Column public String getOrderDesc() { return orderDesc; } @Column public Integer getStatus() { return status; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public void setCustomer(String customer) { this.customer = customer; } public void setCustomerPhoneNumber(String customerPhoneNumber) { this.customerPhoneNumber = customerPhoneNumber; } public void setId(Integer id) { this.id = id; } public void setOrderDesc(String orderDesc) { this.orderDesc = orderDesc; } public void setStatus(Integer status) { this.status = status; } }
[ "994028591@qq.com" ]
994028591@qq.com
ae8316ac315ba208772bccb34a8f37a7859133d1
5709371244aefd5ed14ddd9cfe36b7d047e99b7b
/app/src/main/java/com/bjypt/vipcard/net/MultiPartStringRequest.java
f6fedaba24076e8d3ddfda59a632b769210738bc
[]
no_license
zhangshenzhen/VipCard
e922970ccdc8b01677d74ef5800db32f9ee84647
763c794eb218c2cc23b90d206b4649f208e240af
refs/heads/master
2020-04-07T04:15:28.921154
2018-11-22T04:31:52
2018-11-22T04:31:52
158,047,337
1
0
null
null
null
null
UTF-8
Java
false
false
3,279
java
/** * Copyright 2013 Mani Selvaraj * * 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.bjypt.vipcard.net; import java.io.File; import java.io.UnsupportedEncodingException; import java.util.HashMap; import java.util.Map; import com.android.volley.NetworkResponse; import com.android.volley.Request; import com.android.volley.Response; import com.android.volley.Response.ErrorListener; import com.android.volley.Response.Listener; import com.android.volley.toolbox.HttpHeaderParser; /** * for image upload * MultipartRequest - To handle the large file uploads. * Extended from JSONRequest. You might want to change to StringRequest based on your response type. * @author Mani Selvaraj * */ public class MultiPartStringRequest extends Request<String> implements MultiPartRequest{ private final Listener<String> mListener; /* To hold the parameter name and the File to upload */ private Map<String,File> fileUploads = new HashMap<String,File>(); /* To hold the parameter name and the string content to upload */ private Map<String,String> stringUploads = new HashMap<String,String>(); /** * Creates a new request with the given method. * * @param method the request {@link Method} to use * @param url URL to fetch the string at * @param listener Listener to receive the String response * @param errorListener Error listener, or null to ignore errors */ public MultiPartStringRequest(int method, String url, Listener<String> listener, ErrorListener errorListener) { super(method, url, errorListener); mListener = listener; } public void addFileUpload(String param,File file) { fileUploads.put(param,file); } public void addStringUpload(String param,String content) { stringUploads.put(param,content); } /** * 要上传的文件 */ public Map<String,File> getFileUploads() { return fileUploads; } /** * 要上传的参数 */ public Map<String,String> getStringUploads() { return stringUploads; } @Override protected Response<String> parseNetworkResponse(NetworkResponse response) { String parsed; try { parsed = new String(response.data, HttpHeaderParser.parseCharset(response.headers)); } catch (UnsupportedEncodingException e) { parsed = new String(response.data); } return Response.success(parsed, HttpHeaderParser.parseCacheHeaders(response)); } @Override protected void deliverResponse(String response) { if(mListener != null) { mListener.onResponse(response); } } /** * 空表示不上传 */ public String getBodyContentType() { return null; } }
[ "ahuiwanglei@126.com" ]
ahuiwanglei@126.com
8b1e300e5f175bac434244ca1fff04410b2d7dc6
6bac1a560bf008cb2d898438050d720653ce628a
/telekom/Siebel/build/src/atg/siebel/configurator/command/GetProductPromotionCommandResult.java
eb1ea21e14688d0212522253043247c9668027c0
[]
no_license
vkscorpio3/TelekomPOC
8ff40774bbbfc6868b4a3f84a971d972b9dc9ab7
c437ef7c30e93ea24c1d8acc0110b985401d049b
refs/heads/master
2020-03-08T16:54:42.639312
2017-08-26T22:25:25
2017-08-26T22:25:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,836
java
/*<ORACLECOPYRIGHT> * Copyright (C) 1994, 2015, Oracle and/or its affiliates. All rights reserved. * Oracle and Java are registered trademarks of Oracle and/or its affiliates. * Other names may be trademarks of their respective owners. * UNIX is a registered trademark of The Open Group. * * This software and related documentation are provided under a license agreement * containing restrictions on use and disclosure and are protected by intellectual property laws. * Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, * reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, * or display any part, in any form, or by any means. Reverse engineering, disassembly, * or decompilation of this software, unless required by law for interoperability, is prohibited. * * The information contained herein is subject to change without notice and is not warranted to be error-free. * If you find any errors, please report them to us in writing. * * U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. * Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable * Federal Acquisition Regulation and agency-specific supplemental regulations. * As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and * license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the * Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License * (December 2007). Oracle America, Inc., 500 Oracle Parkway, Redwood City, CA 94065. * * This software or hardware is developed for general use in a variety of information management applications. * It is not developed or intended for use in any inherently dangerous applications, including applications that * may create a risk of personal injury. If you use this software or hardware in dangerous applications, * then you shall be responsible to take all appropriate fail-safe, backup, redundancy, * and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any * damages caused by use of this software or hardware in dangerous applications. * * This software or hardware and documentation may provide access to or information on content, * products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and * expressly disclaim all warranties of any kind with respect to third-party content, products, and services. * Oracle Corporation and its affiliates will not be responsible for any loss, costs, * or damages incurred due to your access to or use of third-party content, products, or services. </ORACLECOPYRIGHT>*/ package atg.siebel.configurator.command; import java.util.List; import atg.siebel.configurator.PromotionRootCPRelationship; import com.siebel.ordermanagement.promotion.GetProductPromotionDefinitionOutput; /** * @author bbrady * */ public class GetProductPromotionCommandResult extends CommandResult{ //------------------------------------- /** Class version string */ public static final String CLASS_VERSION = "$Id: //product/Siebel/version/11.2/src/atg/siebel/configurator/command/GetProductPromotionCommandResult.java#2 $$Change: 1194813 $"; //------------------------------------- // Constants //------------------------------------- //------------------------------------- // Member variables //------------------------------------- //------------------------------------- // Properties //------------------------------------- GetProductPromotionDefinitionOutput mOutput; public GetProductPromotionDefinitionOutput getOutput() { return mOutput; } public void setOutput(GetProductPromotionDefinitionOutput pOutput) { mOutput = pOutput; } List<PromotionRootCPRelationship> mRootProducts; public List<PromotionRootCPRelationship> getRootProducts() { return mRootProducts; } public void setRootProducts(List<PromotionRootCPRelationship> pRootProducts) { this.mRootProducts = pRootProducts; } //------------------------------------- // property: SomeProperty //------------------------------------- // Constructors //------------------------------------- //------------------------------------- /** * Constructs a GetProductPromotionCmdResult. * @param pOutput */ public GetProductPromotionCommandResult(GetProductPromotionDefinitionOutput pOutput) { mOutput = pOutput; } @Override public String toString() { return "GetProductPromotionCmdResult [mOutput=" + mOutput + ", mRootProducts=" + mRootProducts + "]"; } }
[ "vivek.singh4@techmahindra.com" ]
vivek.singh4@techmahindra.com
6ac2dde8a08419006fde31a0ebf81e0a174b5660
e1183423b55191e4e261bb9237b42d74f6be38cf
/testsuite/integration-arquillian/tests/other/console/src/main/java/org/keycloak/testsuite/console/page/clients/clientscopes/ClientScopesEvaluateForm.java
2a426520eb38ebf8042e4cf131f0fdb5172fd47c
[ "Apache-2.0" ]
permissive
abdullah-shiwani/keycloak
a96667fec41cf11facbf570ad1f047725457c054
fa57ff94949a9faceeb39c20e8d1e3360d19099f
refs/heads/master
2020-12-15T22:06:28.764634
2020-01-21T07:18:24
2020-01-21T07:18:24
235,265,860
0
0
NOASSERTION
2020-01-21T05:50:09
2020-01-21T05:50:08
null
UTF-8
Java
false
false
5,014
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.console.page.clients.clientscopes; import java.util.Collection; import java.util.List; import java.util.Set; import java.util.stream.Collectors; import org.keycloak.testsuite.console.page.fragment.DataTable; import org.keycloak.testsuite.page.Form; import org.keycloak.testsuite.util.WaitUtils; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.ui.Select; /** * @author <a href="mailto:mposolda@redhat.com">Marek Posolda</a> */ public class ClientScopesEvaluateForm extends Form { @FindBy(id = "scopeParam") private WebElement scopeParamInput; @FindBy(id = "available") protected Select availableClientScopesSelect; @FindBy(id = "assigned") protected Select assignedClientScopesSelect; @FindBy(id = "effective") protected Select effectiveClientScopesSelect; @FindBy(css = "button[ng-click*='addAppliedClientScope']") protected WebElement addAppliedClientScopesButton; @FindBy(css = "button[ng-click*='deleteAppliedClientScope']") protected WebElement deleteAppliedClientScopesButton; @FindBy(css = "button[data-ng-click*='sendEvaluationRequest']") protected WebElement evaluateButton; // Bottom part of the page (stuff shown after "Evaluate" button clicked) @FindBy(css = "li[data-ng-click*='showTab(1)']") protected WebElement showProtocolMappersLink; @FindBy(css = "li[data-ng-click*='showTab(2)']") protected WebElement showRolesLink; @FindBy(css = "li[data-ng-click*='showTab(3)']") protected WebElement showTokenLink; @FindBy(css = "table[data-ng-show*='protocolMappersShown']") protected DataTable protocolMappersTable; @FindBy(id = "available-realm-roles") protected Select notGrantedRealmRolesSelect; @FindBy(id = "realm-composite") protected Select grantedRealmRolesSelect; @FindBy(tagName = "textarea") private WebElement accessTokenTextArea; public Set<String> getAvailableClientScopes() { return ClientScopesSetupForm.getSelectValues(availableClientScopesSelect); } public Set<String> getAssignedClientScopes() { return ClientScopesSetupForm.getSelectValues(assignedClientScopesSelect); } public Set<String> getEffectiveClientScopes() { return ClientScopesSetupForm.getSelectValues(effectiveClientScopesSelect); } public void setAssignedClientScopes(Collection<String> scopes) { ClientScopesSetupForm.removeRedundantScopes(assignedClientScopesSelect, deleteAppliedClientScopesButton, scopes); ClientScopesSetupForm.addMissingScopes(availableClientScopesSelect, addAppliedClientScopesButton, scopes); } public void selectUser(String username) { // TODO: Should be probably better way how to work with the "ui-select2" component driver.findElement(By.id("select2-chosen-1")).click(); driver.findElement(By.className("select2-input")).sendKeys(username); driver.findElement(By.className("select2-result-label")).click(); } public void evaluate() { evaluateButton.click(); WaitUtils.waitForPageToLoad(); } public void showProtocolMappers() { showProtocolMappersLink.click(); WaitUtils.waitForPageToLoad(); } public void showRoles() { showRolesLink.click(); WaitUtils.waitForPageToLoad(); } public void showToken() { showTokenLink.click(); WaitUtils.waitForPageToLoad(); } // Bottom part of the page (stuff shown after "Evaluate" button clicked) public Set<String> getEffectiveProtocolMapperNames() { List<WebElement> rows = protocolMappersTable.rows(); Set<String> names = rows.stream().map((WebElement row) -> { return row.findElement(By.xpath("td[1]")).getText(); }).collect(Collectors.toSet()); return names; } public Set<String> getGrantedRealmRoles() { return ClientScopesSetupForm.getSelectValues(grantedRealmRolesSelect); } public Set<String> getNotGrantedRealmRoles() { return ClientScopesSetupForm.getSelectValues(notGrantedRealmRolesSelect); } public String getAccessToken() { return accessTokenTextArea.getText(); } }
[ "mposolda@gmail.com" ]
mposolda@gmail.com
e15c8d68081b6934812bb6ac75639bd2c3bada0f
ed5159d056e98d6715357d0d14a9b3f20b764f89
/src/irvine/oeis/a046/A046049.java
4ca4c8140efc92601977c89a8020992925e40786
[]
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
394
java
package irvine.oeis.a046; import irvine.oeis.FiniteSequence; /** * A046049 Sum of 18 but no fewer nonzero fourth powers. * @author Georg Fischer */ public class A046049 extends FiniteSequence { /** Construct the sequence. */ public A046049() { super(63, 78, 143, 158, 223, 238, 303, 318, 383, 398, 463, 478, 543, 558, 623, 703, 783, 863, 943, 1008, 1023, 1103, 1183, 1248); } }
[ "sean.irvine@realtimegenomics.com" ]
sean.irvine@realtimegenomics.com
c2deeb0a0aeddf367b4f4045ecebcb8317a1e1e9
1b9f89641dcdb4dad766c4eaefac83d2ff9c5d9d
/src/.gradle/wrapper/dists/gradle-3.3-all/2pjhuu3pz1dpi6vcvf3301a8j/gradle-3.3/src/tooling-api/org/gradle/tooling/model/eclipse/EclipseBuildCommand.java
8d8f424b389282fa7f8d0b49d1dd39f6f6ded1cc
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT", "LGPL-2.1-only", "CPL-1.0" ]
permissive
saurabhhere/sugarizer-apkbuilder
b2cbcf21ee3286d0333b8812b02721474e4bf79c
fea9a07f5aff668f3a1622145c90f0fa9b17d57c
refs/heads/master
2023-03-23T19:09:20.300251
2021-03-21T10:25:43
2021-03-21T10:25:43
349,963,558
0
0
Apache-2.0
2021-03-21T10:23:51
2021-03-21T10:23:50
null
UTF-8
Java
false
false
2,042
java
/* * Copyright 2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.tooling.model.eclipse; import org.gradle.api.Incubating; import java.util.Map; /** * An Eclipse build command is a reference to a project builder object which automatically executes whenever a resource * in the associate project changes. * * @since 2.9 */ @Incubating public interface EclipseBuildCommand { /** * Returns the name of the build command. * <p> * Corresponds to the {@code org.eclipse.core.resources.ICommand#getBuilderName()} method in the Eclipse platform API. * @see <a href="http://help.eclipse.org/mars/topic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/ICommand.html#getBuilderName--">Definition of ICommand#getBuilderName() in the Eclipse documentation</a> * * @return The name of the build command. Does not return null. */ String getName(); /** * The arguments supplied for the build command. * <p> * Corresponds to the {@code org.eclipse.core.resources.ICommand#getBuilderName()} method in the Eclipse platform API. * @see <a href="http://help.eclipse.org/mars/topic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/ICommand.html#getArguments--">Definition of ICommand#getArguments() in the Eclipse documentation</a> * * @return The arguments map. If no arguments supplied then returns an empty map. */ Map<String, String> getArguments(); }
[ "llaske@c2s.fr" ]
llaske@c2s.fr
cc2f582d628bce6ec03371fd45d33d51f6d331bd
516ce71685ea714ff648a21e0689628cc8f73297
/ZB0420/src/com/mobile/meishang/core/request/CategoryListRequest.java
d494997254e9e6e72ceeeb643a3845f53fc5a363
[]
no_license
qq466455592/HelloWord
dcbef820ebc3593bff03f27a34e61f7b5d9e9eb3
e9b7d089011cc2d9dd31c99c91a6d40c38780730
refs/heads/master
2020-06-03T19:44:27.436829
2015-04-21T03:58:21
2015-04-21T03:58:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,977
java
package com.mobile.meishang.core.request; import java.util.List; import android.os.Bundle; import android.support.v4.app.LoaderManager; import android.support.v4.content.Loader; import com.mobile.meishang.MActivity; import com.mobile.meishang.MApplication; import com.mobile.meishang.MFragment; import com.mobile.meishang.core.content.CategoryLoader; import com.mobile.meishang.core.network.DefaultNetworkRequest; import com.mobile.meishang.model.RequestDistribute; import com.mobile.meishang.model.bean.Category; public class CategoryListRequest implements LoaderManager.LoaderCallbacks<List<Category>> { private MActivity mLeShiHuiActivity; private MFragment mLeShiHuiFragment; public CategoryListRequest(MActivity leShiHuiActivity) { this.mLeShiHuiActivity = leShiHuiActivity; } public CategoryListRequest(MFragment leShiHuiFragment) { this.mLeShiHuiFragment = leShiHuiFragment; mLeShiHuiActivity = (MActivity) leShiHuiFragment.getActivity(); } @Override public Loader<List<Category>> onCreateLoader(int arg0, Bundle arg1) { StringBuffer urlString = new StringBuffer(MApplication .getInstance().getmConfig().urlRootApi); urlString.append("?op=category&act=list"); DefaultNetworkRequest mHttpRequest = new DefaultNetworkRequest( urlString.toString()); CategoryLoader loader = new CategoryLoader(mLeShiHuiActivity, mHttpRequest); if (mLeShiHuiFragment == null) { loader.setExceptionHandler(mLeShiHuiActivity); } else { loader.setExceptionHandler(mLeShiHuiFragment); } loader.setIdentit(RequestDistribute.CATEGORY); return loader; } @Override public void onLoadFinished(Loader<List<Category>> arg0, List<Category> arg1) { if (arg1 != null) { if (mLeShiHuiFragment == null) { mLeShiHuiActivity.updateUI(RequestDistribute.CATEGORY, arg1); } else { mLeShiHuiFragment.updateUI(RequestDistribute.CATEGORY, arg1); } } } @Override public void onLoaderReset(Loader<List<Category>> arg0) { } }
[ "zhangbin131421@163.com" ]
zhangbin131421@163.com
57b4d0975bf9d06604cbbb3b23c4dd2838e4931e
a48266b312c9d50a2cc3188e7c4fd06f477f5637
/src/main/java/com/sun/media/jai/opimage/PiecewiseCRIF.java
de5e72d893d7902f4cad45a62e8405b07705aaed
[]
no_license
ktgw0316/jai-lightzone
5aebc66cac8e7a5130c1f438844782c30dbe3bae
672eb167ffad9d5f93332ab6640513b1d94040e4
refs/heads/master
2021-05-04T11:35:31.079350
2020-09-10T09:16:41
2020-09-10T09:16:41
52,137,768
1
1
null
null
null
null
UTF-8
Java
false
false
1,466
java
/* * $RCSfile: PiecewiseCRIF.java,v $ * * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved. * * Use is subject to license terms. * * $Revision: 1.1 $ * $Date: 2005/02/11 04:56:40 $ * $State: Exp $ */ package com.sun.media.jai.opimage; import java.awt.RenderingHints; import java.awt.image.RenderedImage; import java.awt.image.renderable.ParameterBlock; import javax.media.jai.CRIFImpl; import javax.media.jai.ImageLayout; import javax.media.jai.operator.PiecewiseDescriptor; /** * A <code>CRIF</code> supporting the "Piecewise" operation in the rendered * and renderable image layers. * * @see PiecewiseDescriptor * @see PiecewiseOpImage * * * @since EA4 */ public class PiecewiseCRIF extends CRIFImpl { /** Constructor. */ public PiecewiseCRIF() { super("piecewise"); } /** * Creates a new instance of <code>PiecewiseOpImage</code> in the * rendered layer. * * @param args The source image and the breakpoints. * @param hints Optionally contains destination image layout. */ public RenderedImage create(ParameterBlock args, RenderingHints renderHints) { // Get ImageLayout from renderHints if any. ImageLayout layout = RIFUtil.getImageLayoutHint(renderHints); return new PiecewiseOpImage(args.getRenderedSource(0), renderHints, layout, (float[][][])args.getObjectParameter(0)); } }
[ "arctica0316@gmail.com" ]
arctica0316@gmail.com
419607d227cd9f3250f6bf035a976cf41ca45170
69dd974d9cf50393164edfcfe8cf28a81eba21be
/src/main/java/pro/buildmysoftware/oop/OopInJavaApplication.java
14a05ef1acf1d12a1ccffe23efc0a4f1e718faa3
[]
no_license
PiotrPrzybylak/oop-in-java
bd5375997f8398e06b28595950b9df705bc6f97e
e7ba5d53c27b8c87a1036799b84844d3a34a2afc
refs/heads/master
2022-02-14T20:27:11.108339
2019-06-13T12:21:05
2019-06-13T12:21:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
322
java
package pro.buildmysoftware.oop; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class OopInJavaApplication { public static void main(String[] args) { SpringApplication.run(OopInJavaApplication.class, args); } }
[ "mike@buildmysoftware.pro" ]
mike@buildmysoftware.pro
6ef305435c4997da623f6664e1d25d3dc9058872
097df92ce1bfc8a354680725c7d10f0d109b5b7d
/com/amazon/ws/emr/hadoop/fs/shaded/org/apache/http/impl/cookie/LaxExpiresHandler.java
08721bd9a7281202149bea77b6b7ed7d31e32c18
[]
no_license
cozos/emrfs-hadoop
7a1a1221ffc3aa8c25b1067cf07d3b46e39ab47f
ba5dfa631029cb5baac2f2972d2fdaca18dac422
refs/heads/master
2022-10-14T15:03:51.500050
2022-10-06T05:38:49
2022-10-06T05:38:49
233,979,996
2
2
null
2022-10-06T05:41:46
2020-01-15T02:24:16
Java
UTF-8
Java
false
false
6,438
java
package com.amazon.ws.emr.hadoop.fs.shaded.org.apache.http.impl.cookie; import com.amazon.ws.emr.hadoop.fs.shaded.org.apache.http.annotation.Contract; import com.amazon.ws.emr.hadoop.fs.shaded.org.apache.http.annotation.ThreadingBehavior; import com.amazon.ws.emr.hadoop.fs.shaded.org.apache.http.cookie.CommonCookieAttributeHandler; import com.amazon.ws.emr.hadoop.fs.shaded.org.apache.http.cookie.MalformedCookieException; import com.amazon.ws.emr.hadoop.fs.shaded.org.apache.http.cookie.SetCookie; import com.amazon.ws.emr.hadoop.fs.shaded.org.apache.http.message.ParserCursor; import com.amazon.ws.emr.hadoop.fs.shaded.org.apache.http.util.Args; import java.util.BitSet; import java.util.Calendar; import java.util.Locale; import java.util.Map; import java.util.TimeZone; import java.util.concurrent.ConcurrentHashMap; import java.util.regex.Matcher; import java.util.regex.Pattern; @Contract(threading=ThreadingBehavior.IMMUTABLE) public class LaxExpiresHandler extends AbstractCookieAttributeHandler implements CommonCookieAttributeHandler { static final TimeZone UTC = TimeZone.getTimeZone("UTC"); private static final BitSet DELIMS; private static final Map<String, Integer> MONTHS; static { BitSet bitSet = new BitSet(); bitSet.set(9); for (int b = 32; b <= 47; b++) { bitSet.set(b); } for (int b = 59; b <= 64; b++) { bitSet.set(b); } for (int b = 91; b <= 96; b++) { bitSet.set(b); } for (int b = 123; b <= 126; b++) { bitSet.set(b); } DELIMS = bitSet; ConcurrentHashMap<String, Integer> map = new ConcurrentHashMap(12); map.put("jan", Integer.valueOf(0)); map.put("feb", Integer.valueOf(1)); map.put("mar", Integer.valueOf(2)); map.put("apr", Integer.valueOf(3)); map.put("may", Integer.valueOf(4)); map.put("jun", Integer.valueOf(5)); map.put("jul", Integer.valueOf(6)); map.put("aug", Integer.valueOf(7)); map.put("sep", Integer.valueOf(8)); map.put("oct", Integer.valueOf(9)); map.put("nov", Integer.valueOf(10)); map.put("dec", Integer.valueOf(11)); MONTHS = map; } private static final Pattern TIME_PATTERN = Pattern.compile("^([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})([^0-9].*)?$"); private static final Pattern DAY_OF_MONTH_PATTERN = Pattern.compile("^([0-9]{1,2})([^0-9].*)?$"); private static final Pattern MONTH_PATTERN = Pattern.compile("^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)(.*)?$", 2); private static final Pattern YEAR_PATTERN = Pattern.compile("^([0-9]{2,4})([^0-9].*)?$"); public void parse(SetCookie cookie, String value) throws MalformedCookieException { Args.notNull(cookie, "Cookie"); ParserCursor cursor = new ParserCursor(0, value.length()); StringBuilder content = new StringBuilder(); int second = 0;int minute = 0;int hour = 0;int day = 0;int month = 0;int year = 0; boolean foundTime = false;boolean foundDayOfMonth = false;boolean foundMonth = false;boolean foundYear = false; try { while (!cursor.atEnd()) { skipDelims(value, cursor); content.setLength(0); copyContent(value, cursor, content); if (content.length() == 0) { break; } if (!foundTime) { Matcher matcher = TIME_PATTERN.matcher(content); if (matcher.matches()) { foundTime = true; hour = Integer.parseInt(matcher.group(1)); minute = Integer.parseInt(matcher.group(2)); second = Integer.parseInt(matcher.group(3)); continue; } } if (!foundDayOfMonth) { Matcher matcher = DAY_OF_MONTH_PATTERN.matcher(content); if (matcher.matches()) { foundDayOfMonth = true; day = Integer.parseInt(matcher.group(1)); continue; } } if (!foundMonth) { Matcher matcher = MONTH_PATTERN.matcher(content); if (matcher.matches()) { foundMonth = true; month = ((Integer)MONTHS.get(matcher.group(1).toLowerCase(Locale.ROOT))).intValue(); continue; } } if (!foundYear) { Matcher matcher = YEAR_PATTERN.matcher(content); if (matcher.matches()) { foundYear = true; year = Integer.parseInt(matcher.group(1)); } } } } catch (NumberFormatException ignore) { throw new MalformedCookieException("Invalid 'expires' attribute: " + value); } if ((!foundTime) || (!foundDayOfMonth) || (!foundMonth) || (!foundYear)) { throw new MalformedCookieException("Invalid 'expires' attribute: " + value); } if ((year >= 70) && (year <= 99)) { year = 1900 + year; } if ((year >= 0) && (year <= 69)) { year = 2000 + year; } if ((day < 1) || (day > 31) || (year < 1601) || (hour > 23) || (minute > 59) || (second > 59)) { throw new MalformedCookieException("Invalid 'expires' attribute: " + value); } Calendar c = Calendar.getInstance(); c.setTimeZone(UTC); c.setTimeInMillis(0L); c.set(13, second); c.set(12, minute); c.set(11, hour); c.set(5, day); c.set(2, month); c.set(1, year); cookie.setExpiryDate(c.getTime()); } private void skipDelims(CharSequence buf, ParserCursor cursor) { int pos = cursor.getPos(); int indexFrom = cursor.getPos(); int indexTo = cursor.getUpperBound(); for (int i = indexFrom; i < indexTo; i++) { char current = buf.charAt(i); if (!DELIMS.get(current)) { break; } pos++; } cursor.updatePos(pos); } private void copyContent(CharSequence buf, ParserCursor cursor, StringBuilder dst) { int pos = cursor.getPos(); int indexFrom = cursor.getPos(); int indexTo = cursor.getUpperBound(); for (int i = indexFrom; i < indexTo; i++) { char current = buf.charAt(i); if (DELIMS.get(current)) { break; } pos++; dst.append(current); } cursor.updatePos(pos); } public String getAttributeName() { return "expires"; } } /* Location: * Qualified Name: com.amazon.ws.emr.hadoop.fs.shaded.org.apache.http.impl.cookie.LaxExpiresHandler * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "Arwin.tio@adroll.com" ]
Arwin.tio@adroll.com
e7d3827477d7efa543bdefbea530900ba6dc4685
6e57bdc0a6cd18f9f546559875256c4570256c45
/external/robolectric-shadows/processor/src/test/java/org/robolectric/annotation/processing/validator/RealObjectValidatorTest.java
38dd39f5b5946246a76092f8844553af1f17ac95
[ "MIT" ]
permissive
dongdong331/test
969d6e945f7f21a5819cd1d5f536d12c552e825c
2ba7bcea4f9d9715cbb1c4e69271f7b185a0786e
refs/heads/master
2023-03-07T06:56:55.210503
2020-12-07T04:15:33
2020-12-07T04:15:33
134,398,935
2
1
null
2022-11-21T07:53:41
2018-05-22T10:26:42
null
UTF-8
Java
false
false
5,206
java
package org.robolectric.annotation.processing.validator; import static com.google.common.truth.Truth.assertAbout; import static com.google.testing.compile.JavaFileObjects.forResource; import static com.google.testing.compile.JavaSourcesSubjectFactory.javaSources; import static org.robolectric.annotation.processing.RobolectricProcessorTest.DEFAULT_OPTS; import static org.robolectric.annotation.processing.validator.SingleClassSubject.singleClass; import static org.robolectric.annotation.processing.validator.Utils.SHADOW_EXTRACTOR_SOURCE; import com.google.common.collect.ImmutableList; import org.junit.Test; import org.robolectric.annotation.processing.RobolectricProcessor; public class RealObjectValidatorTest { @Test public void realObjectWithoutImplements_shouldNotCompile() { final String testClass = "org.robolectric.annotation.processing.shadows.ShadowRealObjectWithoutImplements"; assertAbout(singleClass()) .that(testClass) .failsToCompile() .withErrorContaining("@RealObject without @Implements") .onLine(7); } @Test public void realObjectParameterizedMissingParameters_shouldNotCompile() { final String testClass = "org.robolectric.annotation.processing.shadows.ShadowRealObjectParameterizedMissingParameters"; assertAbout(singleClass()) .that(testClass) .failsToCompile() .withErrorContaining("@RealObject is missing type parameters") .onLine(11); } @Test public void realObjectParameterizedMismatch_shouldNotCompile() { final String testClass = "org.robolectric.annotation.processing.shadows.ShadowRealObjectParameterizedMismatch"; assertAbout(singleClass()) .that(testClass) .failsToCompile() .withErrorContaining("Parameter type mismatch: expecting <T,S>, was <S,T>") .onLine(11); } @Test public void realObjectWithEmptyImplements_shouldNotRaiseOwnError() { final String testClass = "org.robolectric.annotation.processing.shadows.ShadowRealObjectWithEmptyImplements"; assertAbout(singleClass()) .that(testClass) .failsToCompile() .withNoErrorContaining("@RealObject"); } @Test public void realObjectWithMissingClassName_shouldNotRaiseOwnError() { final String testClass = "org.robolectric.annotation.processing.shadows.ShadowRealObjectWithMissingClassName"; assertAbout(singleClass()) .that(testClass) .failsToCompile() .withNoErrorContaining("@RealObject"); } @Test public void realObjectWithEmptyClassNameNoAnything_shouldNotRaiseOwnError() { final String testClass = "org.robolectric.annotation.processing.shadows.ShadowRealObjectWithEmptyClassNameNoAnything"; assertAbout(singleClass()) .that(testClass) .failsToCompile() .withNoErrorContaining("@RealObject"); } @Test public void realObjectWithTypeMismatch_shouldNotCompile() { final String testClass = "org.robolectric.annotation.processing.shadows.ShadowRealObjectWithWrongType"; assertAbout(singleClass()) .that(testClass) .failsToCompile() .withErrorContaining("@RealObject with type <com.example.objects.UniqueDummy>; expected <com.example.objects.Dummy>") .onLine(11); } @Test public void realObjectWithClassName_typeMismatch_shouldNotCompile() { final String testClass = "org.robolectric.annotation.processing.shadows.ShadowRealObjectWithIncorrectClassName"; assertAbout(singleClass()) .that(testClass) .failsToCompile() .withErrorContaining("@RealObject with type <com.example.objects.UniqueDummy>; expected <com.example.objects.Dummy>") .onLine(10); } @Test public void realObjectWithCorrectType_shouldCompile() { final String testClass = "org.robolectric.annotation.processing.shadows.ShadowRealObjectWithCorrectType"; assertAbout(singleClass()) .that(testClass) .compilesWithoutError(); } @Test public void realObjectWithCorrectType_withoutAnything_shouldCompile() { assertAbout(javaSources()) .that(ImmutableList.of( SHADOW_EXTRACTOR_SOURCE, forResource("org/robolectric/annotation/processing/shadows/ShadowRealObjectWithCorrectType.java"))) .processedWith(new RobolectricProcessor(DEFAULT_OPTS)) .compilesWithoutError(); } @Test public void realObjectWithCorrectAnything_shouldCompile() { final String testClass = "org.robolectric.annotation.processing.shadows.ShadowRealObjectWithCorrectAnything"; assertAbout(singleClass()) .that(testClass) .compilesWithoutError(); } @Test public void realObjectWithCorrectClassName_shouldCompile() { assertAbout(javaSources()) .that(ImmutableList.of( SHADOW_EXTRACTOR_SOURCE, forResource("org/robolectric/annotation/processing/shadows/ShadowRealObjectWithCorrectClassName.java"))) .processedWith(new RobolectricProcessor(DEFAULT_OPTS)) .compilesWithoutError(); } @Test public void realObjectWithNestedClassName_shouldCompile() { final String testClass = "org.robolectric.annotation.processing.shadows.ShadowRealObjectWithNestedClassName"; assertAbout(singleClass()) .that(testClass) .compilesWithoutError(); } }
[ "dongdong331@163.com" ]
dongdong331@163.com
9bc5044ee93374d966d71ee2ca1b7920df539fbc
868bf400c0143e6a13c9dc2804726449816e4b68
/LintCode-master/Java/145. Binary Tree Postorder Traversal.java
847474ebde4e11b98ac30a8df71d45194e6c822c
[]
no_license
EngrDevDom/Java-Codes
7d39efd8fc7f5d9589c34f98adaa71fc923308b9
ab6934cbe5a3e0330b64cca53738180675a1f74a
refs/heads/master
2022-12-02T08:14:58.380076
2020-08-11T16:02:18
2020-08-11T16:02:18
286,783,520
1
0
null
null
null
null
UTF-8
Java
false
false
3,877
java
M tags: Stack, Two Stacks, Tree time: O(n) space: O(n) 如题, POST-ORDER traversal. LeetCode给了hard, 应该是觉得stack的做法比较难想到. #### Method1: DFS, Recursive - trivial, 先加left recursively, 再加right recursively, 然后组成头部. - Option1 w/o helper; option2 with dfs helper. #### Method2, Iterative, Stack - Option1: reversely add to list - 双stack的思想, 需要在图纸上画一画 - 原本需要的顺序是: 先leftChild, rightChild, currNode. - 营造一个stack, reversely process: 先currNode, 再rightChild, 再leftChild - 这样出来的结果是reverse的, 那么翻转一下就可以了. - reverse add: `list.add(0, x)`; - 利用stack的特点 - 每次加element进stack的时候, 想要在 bottom/后process的, 先加 - 想要下一轮立刻process的, 最后push进stack. - Option2: regular sequence add to stack: add curr, right, left - Use set to contain the processed children - only process curr if its children is processed ``` /* Binary Tree Postorder Traversal Given a binary tree, return the postorder traversal of its nodes' values. Example Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [3,2,1]. Challenge Can you do it without recursion? Tags Expand Binary Tree */ // Method1, Option1: dfs w/o helper. always add left, add right, then add middle class Solution { public List<Integer> postorderTraversal(TreeNode root) { List<Integer> rst = new ArrayList<>(); if (root == null) return rst; rst.addAll(postorderTraversal(root.left)); rst.addAll(postorderTraversal(root.right)); rst.add(root.val); return rst; } } // Method1, Option2: recursive with dfs helper public class Solution { public List<Integer> postorderTraversal(TreeNode root) { List<Integer> rst = new ArrayList<>(); dfs(rst, root); return rst; } public void dfs(List<Integer>rst, TreeNode node) { if (node == null) return; dfs(rst, node.left); dfs(rst, node.right); rst.add(node.val); } } // Simpler version, add to begining of list. // V2 class Solution { public List<Integer> postorderTraversal(TreeNode root) { List<Integer> rst = new ArrayList<>(); if (root == null) return rst; Stack<TreeNode> stack = new Stack<>(); stack.push(root); while (!stack.isEmpty()) { TreeNode node = stack.pop(); rst.add(0, node.val); if (node.left != null) stack.push(node.left); if (node.right != null) stack.push(node.right); } return rst; } } // Method2, Iterative, Option2: regular sequence add to stack: add curr, right, left // only process curr if its children is processed class Solution { public List<Integer> postorderTraversal(TreeNode root) { List<Integer> rst = new ArrayList<>(); if (root == null) return rst; Stack<TreeNode> stack = new Stack<>(); Set<TreeNode> set = new HashSet<>(); stack.push(root); while (!stack.isEmpty()) { TreeNode node = stack.peek(); if (validate(set, node)) { stack.pop(); rst.add(node.val); set.add(node); continue; } if (node.right != null) stack.push(node.right); if (node.left != null) stack.push(node.left); } return rst; } private boolean validate(Set<TreeNode> set, TreeNode node) { if(node.left == null && node.right == null) return true; boolean left = set.contains(node.left), right = set.contains(node.right); if (left && right) return true; if ((node.left == null && right) || (node.right == null && left)) return true; return false; } } ```
[ "60880034+EngrDevDom@users.noreply.github.com" ]
60880034+EngrDevDom@users.noreply.github.com
3d858a8c27a2d7bae11aa627c2d31cb74bc70c3f
5bbe8bf7a04e4f8b82d73f982979db6219d5fcb4
/src/test/java/com/test/soprano/security/SecurityUtilsUnitTest.java
b49ad4fde915ceb215cffbf3c968269127c19b77
[]
no_license
redacorp/soprano
555a092f693ac321afb5269ab345377bd56e9760
447f2e802a7fc36fd88fab63cb6d09172316b3de
refs/heads/master
2022-12-24T23:54:28.893957
2019-12-17T12:51:19
2019-12-17T12:51:19
228,615,854
0
0
null
2022-12-16T04:42:23
2019-12-17T12:51:11
Java
UTF-8
Java
false
false
3,198
java
package com.test.soprano.security; import org.junit.jupiter.api.Test; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.security.core.context.SecurityContext; import org.springframework.security.core.context.SecurityContextHolder; import java.util.ArrayList; import java.util.Collection; import java.util.Optional; import static org.assertj.core.api.Assertions.assertThat; /** * Test class for the {@link SecurityUtils} utility class. */ public class SecurityUtilsUnitTest { @Test public void testGetCurrentUserLogin() { SecurityContext securityContext = SecurityContextHolder.createEmptyContext(); securityContext.setAuthentication(new UsernamePasswordAuthenticationToken("admin", "admin")); SecurityContextHolder.setContext(securityContext); Optional<String> login = SecurityUtils.getCurrentUserLogin(); assertThat(login).contains("admin"); } @Test public void testgetCurrentUserJWT() { SecurityContext securityContext = SecurityContextHolder.createEmptyContext(); securityContext.setAuthentication(new UsernamePasswordAuthenticationToken("admin", "token")); SecurityContextHolder.setContext(securityContext); Optional<String> jwt = SecurityUtils.getCurrentUserJWT(); assertThat(jwt).contains("token"); } @Test public void testIsAuthenticated() { SecurityContext securityContext = SecurityContextHolder.createEmptyContext(); securityContext.setAuthentication(new UsernamePasswordAuthenticationToken("admin", "admin")); SecurityContextHolder.setContext(securityContext); boolean isAuthenticated = SecurityUtils.isAuthenticated(); assertThat(isAuthenticated).isTrue(); } @Test public void testAnonymousIsNotAuthenticated() { SecurityContext securityContext = SecurityContextHolder.createEmptyContext(); Collection<GrantedAuthority> authorities = new ArrayList<>(); authorities.add(new SimpleGrantedAuthority(AuthoritiesConstants.ANONYMOUS)); securityContext.setAuthentication(new UsernamePasswordAuthenticationToken("anonymous", "anonymous", authorities)); SecurityContextHolder.setContext(securityContext); boolean isAuthenticated = SecurityUtils.isAuthenticated(); assertThat(isAuthenticated).isFalse(); } @Test public void testIsCurrentUserInRole() { SecurityContext securityContext = SecurityContextHolder.createEmptyContext(); Collection<GrantedAuthority> authorities = new ArrayList<>(); authorities.add(new SimpleGrantedAuthority(AuthoritiesConstants.USER)); securityContext.setAuthentication(new UsernamePasswordAuthenticationToken("user", "user", authorities)); SecurityContextHolder.setContext(securityContext); assertThat(SecurityUtils.isCurrentUserInRole(AuthoritiesConstants.USER)).isTrue(); assertThat(SecurityUtils.isCurrentUserInRole(AuthoritiesConstants.ADMIN)).isFalse(); } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
c7842f7be348f0976ba66ef4e790e2c1fcecba20
0e0dae718251c31cbe9181ccabf01d2b791bc2c2
/SCT2/tags/M_SCT2_09_1/plugins/org.yakindu.sct.generator.genmodel.ui/src/org/yakindu/sct/generator/genmodel/ui/wizard/SGenNewFileWizard.java
c3dc758d9a5857dc60a9822a7dc29cf6c84006eb
[]
no_license
huybuidac20593/yakindu
377fb9100d7db6f4bb33a3caa78776c4a4b03773
304fb02b9c166f340f521f5e4c41d970268f28e9
refs/heads/master
2021-05-29T14:46:43.225721
2015-05-28T11:54:07
2015-05-28T11:54:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,436
java
/** * Copyright (c) 2011 committers of YAKINDU and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * Contributors: * committers of YAKINDU - initial API and implementation * */ package org.yakindu.sct.generator.genmodel.ui.wizard; import java.io.IOException; import java.util.Collections; import java.util.List; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.emf.common.util.URI; import org.eclipse.emf.ecore.resource.Resource; import org.eclipse.emf.ecore.resource.ResourceSet; import org.eclipse.jface.operation.IRunnableWithProgress; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.wizard.Wizard; import org.eclipse.ui.INewWizard; import org.eclipse.ui.IWorkbench; import org.eclipse.ui.actions.WorkspaceModifyOperation; import org.yakindu.sct.model.sgen.GeneratorModel; import org.yakindu.sct.model.sgraph.Statechart; import com.google.inject.Inject; /** * * @author andreas muelder - Initial contribution and API * */ public class SGenNewFileWizard extends Wizard implements INewWizard { public static final String ID = "org.yakindu.sct.generator.genmodel.ui.SGenNewFileWizard"; protected SGenWizardPage1 modelFilePage; private IStructuredSelection selection; protected SGenWizardPage2 generatorConfigPage; @Inject private ResourceSet resourceSet; public void init(IWorkbench workbench, IStructuredSelection selection) { this.selection = selection; setWindowTitle("New Yakindu SGen Model"); setNeedsProgressMonitor(true); } @Override public void addPages() { modelFilePage = new SGenWizardPage1("fileName", selection, "sgen"); modelFilePage.setTitle("YAKINDU Statechart Generator Model"); modelFilePage .setDescription("Create a new YAKINDU Statechart Generator Model"); addPage(modelFilePage); generatorConfigPage = new SGenWizardPage2("Statecharts", modelFilePage); generatorConfigPage .setTitle("YAKINDU Statechart Generator Model Configuration"); generatorConfigPage .setDescription("Select the Statecharts and the Generator type"); addPage(generatorConfigPage); } @Override public boolean performFinish() { IRunnableWithProgress op = new WorkspaceModifyOperation(null) { @Override protected void execute(IProgressMonitor monitor) throws CoreException, InterruptedException { createDefaultModel(modelFilePage.getURI()); } }; try { getContainer().run(false, true, op); } catch (Exception e) { e.printStackTrace(); return false; } return true; } private void createDefaultModel(URI uri) { List<Statechart> statecharts = generatorConfigPage.getStatecharts(); String generatorId = generatorConfigPage.getGeneratorId(); ModelCreator creator = new ModelCreator(generatorId, statecharts); GeneratorModel model = creator.create(); Resource resource = resourceSet.createResource(uri); resource.getContents().add(model); try { resource.save(Collections.EMPTY_MAP); } catch (IOException e) { e.printStackTrace(); } } public IStructuredSelection getSelection() { return selection; } public void setSelection(IStructuredSelection selection) { this.selection = selection; } }
[ "terfloth@itemis.de" ]
terfloth@itemis.de
f270accbd61ceb21fdf0837107057308b2be4193
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/10/10_e945de1968402ca1ad1a5509e40c9d6db74e9df0/AttributeValueTest/10_e945de1968402ca1ad1a5509e40c9d6db74e9df0_AttributeValueTest_t.java
a0599b7afd6b7d6772d6af0739d520bb954ad2e0
[]
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,347
java
/******************************************************************************* * Copyright (c) 2011 Formal Mind GmbH and University of Dusseldorf. * 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: * Michael Jastram - initial API and implementation ******************************************************************************/ package org.eclipse.rmf.reqif10.provider; import static org.junit.Assert.*; import java.net.URISyntaxException; import java.util.GregorianCalendar; import org.eclipse.rmf.reqif10.AttributeValue; import org.eclipse.rmf.reqif10.ReqIF; import org.eclipse.rmf.reqif10.SpecObject; import org.eclipse.rmf.reqif10.pror.testframework.AbstractItemProviderTest; import org.eclipse.rmf.reqif10.pror.util.ProrUtil; import org.junit.Test; /** * A test case for the model object '<em><b>Attribute Value</b></em>'. */ public abstract class AttributeValueTest extends AbstractItemProviderTest { /** * The fixture for this Attribute Value test case. */ protected AttributeValue fixture = null; /** * Returns the fixture for this Attribute Value test case. */ protected AttributeValue getFixture() { return fixture; } /** * Sets the fixture for this Attribute Value test case. */ protected void setFixture(AttributeValue fixture) { this.fixture = fixture; } /** * We make sure that a {@link SpecObject} containing this AttributeValue is * notified. By providing this abstract test, we ensure that this test is * executed for all subclasses of {@link AttributeValue}. We also have a * corresponding test * {@link SpecElementWithAttributesTest#testSpecElementNotificationValueChanged()} * that tests all subclasses of SpecElement. */ @Test public void testEnclosingSpecObjectIsNotified() throws URISyntaxException { ReqIF reqif = getTestReqif("simple.reqif"); SpecObject specObject = reqif.getCoreContent().getSpecObjects().get(0); specObject.getValues().add(getFixture()); ProrUtil.getItemProvider(adapterFactory, specObject).addListener(listener); ProrUtil.setTheValue(getFixture(), getValueObject(), editingDomain); assertEquals(2, notifications.size()); assertEquals(specObject, notifications.get(0).getNotifier()); } @Test public void testSetLasChangedEnclosingSpecObject() throws URISyntaxException { ReqIF reqif = getTestReqif("simple.reqif"); SpecObject specObject = reqif.getCoreContent().getSpecObjects().get(0); specObject.getValues().add(getFixture()); GregorianCalendar lastChangeBefore = specObject.getLastChange(); ProrUtil.setTheValue(getFixture(), getValueObject(), editingDomain); GregorianCalendar lastChangeAfter = specObject.getLastChange(); assertTrue(lastChangeAfter != lastChangeBefore); } /** * Returns a Value Object of the correct type for the given * {@link AttributeValue}. The content doesn't really matter for testing. * * @return */ public abstract Object getValueObject(); } // AttributeValueTest
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
3923d03b883bc7d009f881f0a7bc18e9d7fe330e
22f5dd9dfbdf990ea43570c623602646706b0867
/nd4j-backends/nd4j-backend-impls/nd4j-cuda-7.5/src/main/java/org/nd4j/linalg/jcublas/ops/executioner/kernels/factory/impl/ScalarKernelCallFactory.java
6bcc75c0f464c4248182d43036147698983f50df
[ "Apache-2.0" ]
permissive
guangwei/nd4j
7919c10bb60e2734f37ad5586acd6a24708870cc
893d7898ef526acae2766f2d6df6360575d7ccf5
refs/heads/master
2021-01-24T23:35:09.835519
2016-03-05T08:38:38
2016-03-05T08:38:38
53,326,775
0
0
null
2016-03-07T13:15:20
2016-03-07T13:15:20
null
UTF-8
Java
false
false
591
java
package org.nd4j.linalg.jcublas.ops.executioner.kernels.factory.impl; import org.nd4j.linalg.api.ops.Op; import org.nd4j.linalg.jcublas.ops.executioner.kernels.GpuKernelCall; import org.nd4j.linalg.jcublas.ops.executioner.kernels.GpuKernelCallFactory; import org.nd4j.linalg.jcublas.ops.executioner.kernels.impl.ScalarKernelCall; /** * Creates a scalar kernel call * @author Adam Gibson */ public class ScalarKernelCallFactory implements GpuKernelCallFactory { @Override public GpuKernelCall create(Op op, Object... otherArgs) { return new ScalarKernelCall(op); } }
[ "adam@skymind.io" ]
adam@skymind.io
1f476d8a9b33be3fc984721aa0f038cc70019700
74cfe03426f96bc769f2ff8f50839e8398c8a2cc
/app/src/main/java/com/futuretongfu/ui/adapter/ShangQuanGoodsAdapter.java
be1244483cc50f4d91799dea2137936ad4e47b02
[]
no_license
KqSMea8/ShouDuFu
c39b3cf59a8f86a0aee1182de73762ed363a6e5a
2ae031cbb90e946935334f14dd5f03414afcdb18
refs/heads/master
2020-05-30T10:42:26.086711
2019-06-01T01:42:56
2019-06-01T01:42:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,358
java
package com.futuretongfu.ui.adapter; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.text.TextUtils; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.futuretongfu.R; import com.futuretongfu.bean.StoreBean; import com.futuretongfu.utils.GlideLoad; import java.util.List; import butterknife.Bind; import butterknife.ButterKnife; /** * Created by Android on 2017/2/17. */ public class ShangQuanGoodsAdapter extends RecyclerView.Adapter<ShangQuanGoodsAdapter.ViewHolder> { private Context mContext; private List<StoreBean> mList; public ShangQuanGoodsAdapter(Context mContext) { this.mContext = mContext; } public void setList(List<StoreBean> list) { this.mList = list; notifyDataSetChanged(); } public void addList(List<StoreBean> list) { this.mList.addAll(list); notifyDataSetChanged(); } public List<StoreBean> getData() { return this.mList; } public void clear() { mList.clear(); notifyDataSetChanged(); } @Override public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View convertView = View.inflate(mContext, R.layout.item_recycleview_shangquanstore, null); ViewHolder holder = new ViewHolder(convertView); return holder; } @Override public void onBindViewHolder(ViewHolder holder, final int position) { holder.tvShangquanName.setText(mList.get(position).storeName); if (!TextUtils.isEmpty(mList.get(position).logoUrl)) { GlideLoad.loadImage(mList.get(position).logoUrl, holder.imgShangquanImage); } holder.itemView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { } }); } @Override public int getItemCount() { return mList == null ? 0 : mList.size(); } static class ViewHolder extends RecyclerView.ViewHolder { @Bind(R.id.img_shangquan_image) ImageView imgShangquanImage; @Bind(R.id.tv_shangquan_name) TextView tvShangquanName; ViewHolder(View view) { super(view); ButterKnife.bind(this, view); } } }
[ "you@example.com" ]
you@example.com
bfb96a75c76fbf4d9acf76c1051977bd491f229a
6baf1fe00541560788e78de5244ae17a7a2b375a
/hollywood/com.oculus.socialplatform-base/sources/com/oculus/http/core/endpoint/String_com_oculus_http_core_annotations_FacebookApiEndpointMethodAutoProvider.java
8f581074a89570d449493fe5d017f6f3599c0cc2
[]
no_license
phwd/quest-tracker
286e605644fc05f00f4904e51f73d77444a78003
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
refs/heads/main
2023-03-29T20:33:10.959529
2021-04-10T22:14:11
2021-04-10T22:14:11
357,185,040
4
2
null
2021-04-12T12:28:09
2021-04-12T12:28:08
null
UTF-8
Java
false
false
364
java
package com.oculus.http.core.endpoint; import X.AnonymousClass0VG; import com.facebook.annotations.Generated; @Generated({"By: InjectorProcessor"}) public class String_com_oculus_http_core_annotations_FacebookApiEndpointMethodAutoProvider extends AnonymousClass0VG<String> { public String get() { return EndpointModule.API_ENDPOINT_FACEBOOK; } }
[ "cyuubiapps@gmail.com" ]
cyuubiapps@gmail.com
b8bcf81658ccae42883f740d8eb8f578382223b2
ccc313911e660761308a00f5463c8ede21254f6c
/src/main/java/evilcraft/block/EntangledChaliceItem.java
7312bd2c6b259fc8568e3729e147dcb14c6e4fd6
[ "CC-BY-4.0" ]
permissive
mymagadsl/EvilCraft
cbe41deb5bc0331c65412714fda3eceda382e365
530a956c1979f942c5118b13086fd746d1ba3d10
refs/heads/master-1.7
2021-01-15T11:02:20.964361
2015-11-03T16:51:00
2015-11-03T16:51:00
45,507,638
0
0
null
2015-11-04T01:39:53
2015-11-04T01:39:53
null
UTF-8
Java
false
false
3,641
java
package evilcraft.block; import evilcraft.core.PlayerExtendedInventoryIterator; import evilcraft.core.helper.ItemHelpers; import evilcraft.core.world.GlobalCounter; import net.minecraft.block.Block; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; import net.minecraftforge.fluids.FluidStack; import evilcraft.core.fluid.WorldSharedTank; import evilcraft.core.fluid.WorldSharedTankCache; import evilcraft.core.item.ItemBlockFluidContainer; import net.minecraftforge.fluids.IFluidContainerItem; import java.util.Iterator; /** * Specialized item for the {@link EntangledChalice} block. * @author rubensworks */ public class EntangledChaliceItem extends ItemBlockFluidContainer { /** * Make a new instance. * @param block The block instance. */ public EntangledChaliceItem(Block block) { super(block); } /** * Get the tank id from the container. * @param container The chalice item container. * @return The tank id. */ public String getTankID(ItemStack container) { String key = getBlockTank().getTankNBTName(); if(container.stackTagCompound == null || !container.stackTagCompound.hasKey(key)) { // In this case, the tank is invalid! container.stackTagCompound = new NBTTagCompound(); container.stackTagCompound.setTag(key, new NBTTagCompound()); container.stackTagCompound.getCompoundTag(key).setString(WorldSharedTank.NBT_TANKID, "invalid"); } return container.stackTagCompound.getCompoundTag(key).getString(WorldSharedTank.NBT_TANKID); } /** * Set the tank id for the container. * @param container The chalice item container. * @param tankID The tank id. */ public void setTankID(ItemStack container, String tankID) { String key = getBlockTank().getTankNBTName(); if(container.stackTagCompound == null) { container.stackTagCompound = new NBTTagCompound(); } if(!container.stackTagCompound.hasKey(key)) { container.stackTagCompound.setTag(key, new NBTTagCompound()); } container.stackTagCompound.getCompoundTag(key).setString(WorldSharedTank.NBT_TANKID, tankID); } /** * Set a new unique tank id for the container. * @param container The chalice item container. */ public void setNextTankID(ItemStack container) { setTankID(container, Integer.toString(GlobalCounter.getInstance().getNext("EntangledChalice"))); } @Override public FluidStack getFluid(ItemStack container) { return WorldSharedTankCache.getInstance().getTankContent(getTankID(container)); } @Override protected void setFluid(ItemStack container, FluidStack fluidStack) { WorldSharedTankCache.getInstance().setTankContent(getTankID(container), fluidStack); } protected void autofill(IFluidContainerItem item, ItemStack itemStack, World world, Entity entity) { if(entity instanceof EntityPlayer && !world.isRemote) { EntityPlayer player = (EntityPlayer) entity; FluidStack tickFluid; Iterator<ItemStack> it = new PlayerExtendedInventoryIterator(player); do { tickFluid = item.getFluid(itemStack); ItemStack toFill = it.next(); ItemHelpers.tryFillContainerForPlayer(item, itemStack, toFill, tickFluid, player); } while(tickFluid != null && tickFluid.amount > 0 && it.hasNext()); } } }
[ "rubensworks@gmail.com" ]
rubensworks@gmail.com
ed7f3833275a07b35d99a04cead66bd8ab526e2e
29ec6e13ba5c8e208c2f733b2844a110c3ab4895
/bs-cs-ufal-brazil/lab-open-source/cryptonline/lib/persistence/antigo/AbstractUseCase.java
cd8f74cdca3f7a048a771353f5903685fdf74495
[]
no_license
marcellodesales/my-cs-research
8fff0d991835adb8b0e694ebb02d08777b5c5df5
b5ffa1ec730038496f0d414e4d5887081042c05c
refs/heads/master
2021-12-14T14:37:17.439455
2021-12-04T19:13:31
2021-12-04T19:13:31
24,648,369
0
0
null
null
null
null
UTF-8
Java
false
false
1,119
java
package br.com.aulaweb.persistence.antigo; import org.odmg.Implementation; import java.io.BufferedReader; import java.io.InputStreamReader; /** * Insert the type's description here. * Creation date: (04.03.2001 11:31:41) * @author: Administrator */ public abstract class AbstractUseCase implements UseCase { protected Implementation odmg; /** * AbstractUseCase constructor comment. */ public AbstractUseCase(Implementation odmg) { this.odmg = odmg; } /** perform this use case*/ public abstract void apply(); /** get descriptive information on use case*/ public abstract String getDescription(); /** * read a single line from stdin and return as String */ protected String readLineWithMessage(String message) { System.out.print(message + " "); try { BufferedReader rin = new BufferedReader(new InputStreamReader(System.in)); return rin.readLine(); } catch (Exception e) { return ""; } } }
[ "marcellodesales@gmail.com" ]
marcellodesales@gmail.com
b3aa190ca6112e5bf0f5943121fdc67138d2a6f2
312cd6b9fba3ede2202008e47842f16025c33ec7
/src/labs_examples/play_area/play.java
b0ffb08fc080183be49c24347310fbb73074e311
[]
no_license
kuddleman/java-fundamentals-labs
abf8c4ec533de92545aaaa97dd2eac70d2e911fe
35e3b98749e46ebc8e9d83e6741437c1e0afc688
refs/heads/master
2022-09-25T18:19:57.751037
2020-05-31T22:40:58
2020-05-31T22:40:58
257,392,318
0
0
null
null
null
null
UTF-8
Java
false
false
571
java
package labs_examples.play_area; public class play { public static void main(String[] args) { System.out.println(printOut()); } public static String printOut() { return "printOut() called!"; } } class Main { public static void main(String[] args) { AccessMod obj = new AccessMod(); // try to set each instance var on the "obj" object // hint - only two will work } } class AccessMod { public String publicVar; protected String protectedVar; private String privateVar; }
[ "edl1155@gmail.com" ]
edl1155@gmail.com
fd341452b9c2d22f53871013489576a0529c3ebf
7ab26d4bc788b5d437cb69992ea94b56a4899b6c
/jPSICS/src/org/catacomb/druid/swing/dnd/RegionStore.java
34f99b210cc305b8296f038479c81abb95dc2d6d
[]
no_license
MattNolanLab/PSICS
d8e777d9a18e332231de244c23431b34c655cfa5
68b4f17e9aef2e6c7ca3c23da2a175eeaeb7251f
refs/heads/master
2021-05-27T02:01:24.747112
2014-05-13T16:19:21
2014-05-13T16:19:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,030
java
package org.catacomb.druid.swing.dnd; public class RegionStore { int[][] regs; Object[] refs; String[] tags; int[] actions; int nreg; Object active; int[] activeLims; String activeTag; Region dragOverRegion; Region hoverOverRegion; Region pressRegion; public RegionStore() { regs = new int[20][4]; refs = new Object[20]; tags = new String[20]; actions = new int[20]; } public void clear() { nreg = 0; } public void addRegion(int[] xywh, Object obj, String s, int acts) { addRegion(xywh[0], xywh[1], xywh[2], xywh[3], obj, s, acts); } public void addLengthenedRegion(int[] xywh, Object obj) { addRegion(xywh[0] - 6, xywh[1], xywh[2] + 12, xywh[3], obj, null, Region.CLICK); } public void addRegion(int x, int y, int w, int h, Object obj, String flav, int acts) { if (nreg == regs.length) { int nn = (3 * nreg) / 2; int[][] newregs = new int[nn][4]; Object[] newrefs = new Object[nn]; String[] newtags = new String[nn]; int[] newactions = new int[nn]; // keep memory together - any advantage? for (int i = 0; i < nreg; i++) { for (int j = 0; j < 4; j++) { newregs[i][j] = regs[i][j]; } newrefs[i] = refs[i]; newtags[i] = tags[i]; newactions[i] = actions[i]; } regs = newregs; refs = newrefs; tags = newtags; actions = newactions; } regs[nreg][0] = x; regs[nreg][1] = x + w; regs[nreg][2] = y - h; regs[nreg][3] = y; refs[nreg] = obj; tags[nreg] = flav; actions[nreg] = acts; nreg++; } public Object activeRegion(int x, int y) { if (active != null && within(x, y, activeLims)) { // same as before; } else { active = null; for (int i = 0; i < nreg; i++) { if (within(x, y, regs[i])) { active = refs[i]; activeLims = regs[i]; activeTag = tags[i]; break; } } } return active; } public int[] getActiveLimits() { return activeLims; } public String getActiveTag() { return activeTag; } private final boolean within(int x, int y, int[] rr) { return (x > rr[0] && x < rr[1] && y > rr[2] && y < rr[3]); } public Object getActive() { return active; } public boolean hasActive() { return (active != null); } public void clearActive() { active = null; } public void dragOver(int x, int y) { if (dragOverRegion != null && dragOverRegion.contains(x, y)) { // same as before; } else { dragOverRegion = null; for (int i = 0; i < nreg; i++) { if (within(x, y, regs[i])) { dragOverRegion = new Region(regs[i], tags[i], refs[i], actions[i]); break; } } } } public Region getDragOverRegion() { return dragOverRegion; } public void hoverOver(int x, int y) { if (hoverOverRegion != null && hoverOverRegion.contains(x, y)) { // same as before; } else { hoverOverRegion = null; for (int i = 0; i < nreg; i++) { if (within(x, y, regs[i]) && Region.canPress(actions[i])) { hoverOverRegion = new Region(regs[i], tags[i], refs[i], actions[i]); break; } } } } public Region getHoverRegion() { return hoverOverRegion; } public void press(int x, int y) { pressRegion = null; for (int i = 0; i < nreg; i++) { if (within(x, y, regs[i])) { pressRegion = new Region(regs[i], tags[i], refs[i], actions[i]); break; } } } public Region getPressRegion() { return pressRegion; } }
[ "robert@textensor.com" ]
robert@textensor.com
08e211e104715639b24ef5a4cad854affc14346c
d5913dce4c84cc2e311146f928d0d64126f64370
/src/main/java/ru/vyarus/dropwizard/guice/GuiceyOptions.java
f9caa189b029f764db7461e5236feae6f0df129d
[ "MIT" ]
permissive
amr/dropwizard-guicey
dcc51f68df8828cdd03da87b2524b3c800e17837
182d15b6f00c566dbb67e80e3ca40f427e477b2c
refs/heads/master
2020-05-16T03:44:36.878554
2019-01-26T09:39:27
2019-01-26T09:39:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,740
java
package ru.vyarus.dropwizard.guice; import com.google.inject.Stage; import ru.vyarus.dropwizard.guice.module.context.option.Option; import javax.servlet.DispatcherType; import java.util.EnumSet; /** * Guicey core options. In most cases, direct option definition is not required because all options are covered * with shortcut method in {@link ru.vyarus.dropwizard.guice.GuiceBundle.Builder}. Direct option definition * may be useful when option is dynamically resolved and so shortcut methods can't be used (will require builder * flow interruption and additional if statements). * <p> * Normally options are mostly useful for runtime configuration values access (e.g. check in some 3rd party * bundle what packages are configured for classpath scan). * <p> * Generally options are not limited to this enum and custom option enums may be used by 3rd party bundles. * * @author Vyacheslav Rusakov * @see Option for details * @see ru.vyarus.dropwizard.guice.module.context.option.Options for usage in guice services * @see ru.vyarus.dropwizard.guice.module.context.option.OptionsInfo for reporting * @since 09.08.2016 */ public enum GuiceyOptions implements Option { /** * Packages for classpath scan. Not empty value indicates auto scan mode enabled. * Empty by default. * * @see GuiceBundle.Builder#enableAutoConfig(String...) */ ScanPackages(String[].class, new String[0]), /** * Enables commands search in classpath and dynamic installation. Requires auto scan mode. * Disabled by default. * * @see GuiceBundle.Builder#searchCommands() */ SearchCommands(Boolean.class, false), /** * Automatic {@linkplain ru.vyarus.dropwizard.guice.module.installer.CoreInstallersBundle core installers} * installation. * Enabled by default. * * @see GuiceBundle.Builder#noDefaultInstallers() */ UseCoreInstallers(Boolean.class, true), /** * Recognize {@link ru.vyarus.dropwizard.guice.module.installer.bundle.GuiceyBundle} from installed * dropwizard bundles. * Disabled by default. * * @see GuiceBundle.Builder#configureFromDropwizardBundles() */ ConfigureFromDropwizardBundles(Boolean.class, false), /** * Bind all direct interfaces implemented by configuration objects to configuration instance in guice context. * Disabled by default. * <p> * Note: interfaces are always bound with qualifier: {@code @Inject @Config ConfInterface config}. * Option only controls if extra binding must be done without qualifier. * * @see GuiceBundle.Builder#bindConfigurationInterfaces() * @deprecated remains for compatibility, instead bind configuration interfaces with {@code @Config} qualifier */ @Deprecated BindConfigurationInterfaces(Boolean.class, false), /** * Introspect configuration object (using jackson serialization) and bind all internal values by path * ({@code @Inject @Config("path.to.value") Integer value}). Recognize unique sub configuration objects * for direct binding ({@code @Inject @Config SubConfig conf}). Enabled by default. * <p> * Note that path could be hidden using {@link com.fasterxml.jackson.annotation.JsonIgnore} on property getter. * <p> * Option exists only for edge cases when introspection fails and prevents application startup (should be * impossible) or due to project specific reasons (when internal bindings are not desirable). When * disabled, only configuration object itself would be bound (by all classes in hierarchy and interfaces). * Note that {@link ru.vyarus.dropwizard.guice.module.yaml.ConfigurationTree} will also not contain paths - option * disables entire introspection process. * * @see ru.vyarus.dropwizard.guice.module.yaml.ConfigTreeBuilder * @see ru.vyarus.dropwizard.guice.module.yaml.ConfigurationTree * @see ru.vyarus.dropwizard.guice.module.yaml.bind.ConfigBindingModule */ BindConfigurationByPath(Boolean.class, true), /** * Guice injector stage used for injector creation. * Production by default. * * @see GuiceBundle.Builder#build(Stage) */ InjectorStage(Stage.class, Stage.PRODUCTION), /** * GuiceFilter registered for both contexts (application and admin) to provide guice * {@link com.google.inject.servlet.ServletModule} support and allow using request and session scopes. * By default, filter is registered only for direct requests. * Declare other types if required (but note that GuiceFilter does not support ASYNC!). * <p> * To disable guice filter installation use empty set: {@code EnumSet.noneOf(DispatcherType.class)}. * This will completely disable guice servlet modules support because without guice filter, guice web support * is useless (all filters and servlets registered in servlet module are dispatched by guice filter). * <p> * Note that even without guice servlet modules support HttpServletRequest and HttpServletResponse objects will be * still available for injection in resources (through HK2 bridging). Also, note that guice servlets initialization * took some time and application starts faster without it (~50ms). Use * {@link ru.vyarus.dropwizard.guice.module.installer.WebInstallersBundle} to register guice manged servlets * and filters. * IMPORTANT: after disabling guice filter, servlet and request scopes will no longer be available and * installation of guice ServletModule will be impossible (will fail on duplicate binding). * Also it will not be possible to use http request and response injections under filter and servlets * (it will work only with resources). */ GuiceFilterRegistration(EnumSet.class, EnumSet.of(DispatcherType.REQUEST)), /** * Enables guice bridge for HK2 to allow HK2 services to see guice beans. This is not often required and * so disabled by default. For example, it could be required if * {@link ru.vyarus.dropwizard.guice.module.installer.feature.jersey.HK2Managed} used to properly instantiate * service by HK2 when it also depends on guice services. * <p> * IMPORTANT: requires extra dependency on HK2 guice-bridge: 'org.glassfish.hk2:guice-bridge:2.5.0-b32' */ UseHkBridge(Boolean.class, false); private Class<?> type; private Object value; <T> GuiceyOptions(final Class<T> type, final T value) { this.type = type; this.value = value; } @Override public Class<?> getType() { return type; } @Override public Object getDefaultValue() { return value; } }
[ "vyarus@gmail.com" ]
vyarus@gmail.com
6687a5c947e62329c0172d5d4560ec0588720f65
9a6ea6087367965359d644665b8d244982d1b8b6
/src/main/java/X/AnonymousClass1Q1.java
36d732fa7bc59b06ed03b7bc30579928119ebc33
[]
no_license
technocode/com.wa_2.21.2
a3dd842758ff54f207f1640531374d3da132b1d2
3c4b6f3c7bdef7c1523c06d5bd9a90b83acc80f9
refs/heads/master
2023-02-12T11:20:28.666116
2021-01-14T10:22:21
2021-01-14T10:22:21
329,578,591
2
1
null
null
null
null
UTF-8
Java
false
false
1,997
java
package X; import android.os.Handler; import android.os.Looper; import android.os.Message; import com.google.android.search.verification.client.R; import com.whatsapp.authentication.VerifyTwoFactorAuthCodeDialogFragment; /* renamed from: X.1Q1 reason: invalid class name */ public class AnonymousClass1Q1 extends Handler { public final /* synthetic */ VerifyTwoFactorAuthCodeDialogFragment A00; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass1Q1(VerifyTwoFactorAuthCodeDialogFragment verifyTwoFactorAuthCodeDialogFragment, Looper looper) { super(looper); this.A00 = verifyTwoFactorAuthCodeDialogFragment; } public void handleMessage(Message message) { if (message.what == 0) { VerifyTwoFactorAuthCodeDialogFragment verifyTwoFactorAuthCodeDialogFragment = this.A00; if (verifyTwoFactorAuthCodeDialogFragment.A00 == 0) { Object obj = message.obj; C04530Ks r2 = verifyTwoFactorAuthCodeDialogFragment.A07; if (r2.A00.getString("two_factor_auth_code", "").equals(obj)) { verifyTwoFactorAuthCodeDialogFragment.A00 = 2; r2.A03(true); verifyTwoFactorAuthCodeDialogFragment.A0y(); return; } r2.A03(false); verifyTwoFactorAuthCodeDialogFragment.A02.setText(verifyTwoFactorAuthCodeDialogFragment.A06.A06(R.string.two_factor_auth_wrong_code_message)); verifyTwoFactorAuthCodeDialogFragment.A03.setCode(""); verifyTwoFactorAuthCodeDialogFragment.A03.setEnabled(true); verifyTwoFactorAuthCodeDialogFragment.A01.setProgress(100); AnonymousClass02M r22 = verifyTwoFactorAuthCodeDialogFragment.A05; r22.A02.post(new RunnableEBaseShape7S0100000_I1_2(verifyTwoFactorAuthCodeDialogFragment, 3)); } } } }
[ "madeinborneo@gmail.com" ]
madeinborneo@gmail.com
b981f718fab6185a35f49b33cd792a1e229c42b4
d016d046eb2af59f8a438326c6dfa03ae083e659
/models/contracts-mock/src/main/java/org/venuspj/studio/generic/model/ppt/party/PartiesMock.java
f866a30fda2fe4b480f2779c66ca6779c55cfcc5
[]
no_license
mizo432/studio
dcab5736c44e4aecfe518f4bdbd59c66a03e1099
730111885adbd47df01938c72533342a25dc6bd1
refs/heads/master
2021-05-01T17:21:55.002284
2017-12-15T07:22:48
2017-12-15T07:22:48
79,422,901
0
0
null
2017-09-14T04:55:08
2017-01-19T06:30:12
HTML
UTF-8
Java
false
false
2,409
java
package org.venuspj.studio.generic.model.ppt.party; import java.util.List; import static org.venuspj.util.collect.Lists2.*; public class PartiesMock { public static Parties create(MockType aMockType) { List<Party> result = newArrayList(); for (PartyMock.MockType partyMockType : aMockType.getPartyMockTypes()) result.add(PartyMock.createMock(partyMockType)); return new Parties(result); } public enum MockType { ALL { @Override public PartyMock.MockType[] getPartyMockTypes() { return PartyMock.MockType.values(); } }, PLAYERS { @Override public PartyMock.MockType[] getPartyMockTypes() { return new PartyMock.MockType[]{PartyMock.MockType.DEEJEY1, PartyMock.MockType.DEEJEY2, PartyMock.MockType.DEEJEY3, PartyMock.MockType.SOUND1, PartyMock.MockType.SOUND2, }; } }, STUDIO_PLAYERS { @Override public PartyMock.MockType[] getPartyMockTypes() { return new PartyMock.MockType[]{PartyMock.MockType.DEEJEY1, PartyMock.MockType.DEEJEY2, PartyMock.MockType.DEEJEY3, PartyMock.MockType.SOUND1, PartyMock.MockType.SOUND2, }; } }, ALL_PLAYERS { @Override public PartyMock.MockType[] getPartyMockTypes() { return new PartyMock.MockType[]{PartyMock.MockType.DEEJEY1, PartyMock.MockType.DEEJEY2, PartyMock.MockType.DEEJEY3, PartyMock.MockType.DEEJEY4_OUTER, PartyMock.MockType.SOUND1, PartyMock.MockType.SOUND2, PartyMock.MockType.SOUND3_OUTER }; } }, OUTER_PLAYERS { @Override public PartyMock.MockType[] getPartyMockTypes() { return new PartyMock.MockType[]{ PartyMock.MockType.DEEJEY4_OUTER, PartyMock.MockType.SOUND3_OUTER }; } }; public abstract PartyMock.MockType[] getPartyMockTypes(); } }
[ "hachirouuemon.mizoguchi@gmail.com" ]
hachirouuemon.mizoguchi@gmail.com
f2c99e67f9e32e27eac58e9576e98ede64154d88
923a5ab7796db4460a3d93d078438740717aa9c8
/src/main/java/com/java/study/ch19_enumerated/TrafficLight.java
2b7221ab339221ab1457de4ed802b1b65d9d045d
[]
no_license
maowenl/thinkInJavaMvn
fbc9d331ba2fdb7a448f9507961560b5fb5beba0
23bac57fe10a8545299710941af2982c154238f4
refs/heads/master
2021-03-31T01:54:46.773129
2018-04-28T09:26:48
2018-04-28T09:26:48
124,513,143
0
0
null
null
null
null
UTF-8
Java
false
false
1,045
java
package com.java.study.ch19_enumerated;//: enumerated/TrafficLight.java // Enums in switch statements. import static net.mindview.util.Print.*; // Define an enum type: enum Signal { GREEN, YELLOW, RED, } public class TrafficLight { Signal color = Signal.RED; public void change() { switch(color) { // Note that you don't have to say Signal.RED // in the case statement: case RED: color = Signal.GREEN; break; case GREEN: color = Signal.YELLOW; break; case YELLOW: color = Signal.RED; break; } } public String toString() { return "The traffic light is " + color; } public static void main(String[] args) { TrafficLight t = new TrafficLight(); for(int i = 0; i < 7; i++) { print(t); t.change(); } } } /* Output: The traffic light is RED The traffic light is GREEN The traffic light is YELLOW The traffic light is RED The traffic light is GREEN The traffic light is YELLOW The traffic light is RED *///:~
[ "maowen.li@citrix.com" ]
maowen.li@citrix.com
c0e5b1f2935a0eb900ade1b20f50d686c3bb78df
5024b73f6bbef072679e5dc82df93de82ffeb3ed
/.build/vector/generated/source/kapt/appDebug/ms/messageapp/activity/FallbackAuthenticationActivity_ViewBinding.java
cbddebb8bae7337bc4a279011124594dbafe3065
[ "Apache-2.0" ]
permissive
WafaaHarbJame/riot-android-develop
0c8e8f813b906b225ffe42c5655307c5433bf7c4
05f572d76811486ed2564d0cdcf744bdf36f82b1
refs/heads/master
2020-05-05T00:36:23.861668
2019-04-04T22:29:53
2019-04-04T22:29:53
179,575,049
0
0
null
null
null
null
UTF-8
Java
false
false
1,211
java
// Generated code from Butter Knife. Do not modify! package ms.messageapp.activity; import android.support.annotation.UiThread; import android.view.View; import android.webkit.WebView; import butterknife.internal.Utils; import java.lang.IllegalStateException; import java.lang.Override; import ms.messageapp.R; public final class FallbackAuthenticationActivity_ViewBinding extends VectorAppCompatActivity_ViewBinding { private FallbackAuthenticationActivity target; @UiThread public FallbackAuthenticationActivity_ViewBinding(FallbackAuthenticationActivity target) { this(target, target.getWindow().getDecorView()); } @UiThread public FallbackAuthenticationActivity_ViewBinding(FallbackAuthenticationActivity target, View source) { super(target, source); this.target = target; target.mWebView = Utils.findRequiredViewAsType(source, R.id.fallback_authentication_webview, "field 'mWebView'", WebView.class); } @Override public void unbind() { FallbackAuthenticationActivity target = this.target; if (target == null) throw new IllegalStateException("Bindings already cleared."); this.target = null; target.mWebView = null; super.unbind(); } }
[ "you@example.com" ]
you@example.com
c48f95a541e41d95cdec3865fe254d8ddab641ec
790cecc9a26dc52b515615100931452ea5faafc6
/src/com/interview/algorithms/general/C1_51_AllPermutation.java
347dc4629b3b39a66a37c560c82586114d1cbdf1
[]
no_license
rioshen/interview
33b55d9ff1bcd1f794c9d37c3678177afdf66d9f
02eb5ef8b9ad0c98c0315b383ccdd449c05402d4
refs/heads/master
2020-12-26T02:59:38.797166
2015-01-21T13:05:55
2015-01-21T13:05:55
29,694,448
2
2
null
2015-01-22T18:55:58
2015-01-22T18:55:57
null
UTF-8
Java
false
false
1,410
java
package com.interview.algorithms.general; import com.interview.basics.sort.QuickSorter; import com.interview.utils.ArrayUtil; import com.interview.utils.ConsoleWriter; /** * Created with IntelliJ IDEA. * User: stefanie * Date: 8/28/14 * Time: 3:45 PM */ public class C1_51_AllPermutation { static QuickSorter<Character> SORTER = new QuickSorter<>(); public static void printRecursive(Character[] chars){ printRecursive("", chars); } private static void printRecursive(String prefix, Character[] chars){ if(prefix.length() == chars.length) { System.out.println(prefix); return; } for(char ch : chars){ if(!prefix.contains(ch+"")) printRecursive(prefix + ch, chars); } } public static void printDicSort(Character[] chars){ SORTER.sort(chars); ConsoleWriter.printCharacterArray(chars); while(true){ int i; for (i = chars.length - 2; i >= 0; --i) { if (chars[i] < chars[i + 1]) break; } if (i < 0) break; int k; for (k = chars.length - 1; k > i; --k) { if (chars[k] > chars[i]) break; } ArrayUtil.swap(chars, i, k); ArrayUtil.reverse(chars, i + 1, chars.length - 1); ConsoleWriter.printCharacterArray(chars); } } }
[ "zhaochenting@gmail.com" ]
zhaochenting@gmail.com
1059968ce17826eec6021435d565ed5198793c61
34f8e2642180102f3d14aa16037c84ea8c45b725
/02. Exams/01. Football Exam/src/main/java/softuni/exam/util/ValidatorUtilImpl.java
719ec40e9482c3ae96a0fc12903fb56201924b9a
[]
no_license
AndreyKost/Java-Spring-Data
bef267b6ab1f941835ac218078b29a91e1a71d27
ab5e3e52b51ed366daee093fafc50c4a673ef3d0
refs/heads/master
2022-12-19T01:54:11.799820
2020-09-26T07:56:33
2020-09-26T07:56:33
298,609,696
0
0
null
null
null
null
UTF-8
Java
false
false
655
java
package softuni.exam.util; import javax.validation.ConstraintViolation; import javax.validation.Validation; import javax.validation.Validator; import java.util.Set; public class ValidatorUtilImpl implements ValidatorUtil { private final Validator validator; public ValidatorUtilImpl() { this.validator = Validation.buildDefaultValidatorFactory() .getValidator(); } @Override public <E> boolean isValid(E entity) { return validator.validate(entity).isEmpty(); } @Override public <E> Set<ConstraintViolation<E>> violations(E entity) { return validator.validate(entity); } }
[ "anddy8@gmail.com" ]
anddy8@gmail.com
2406bc312129f012f209b945aa5ea5cd546fd07a
28dc7b42bad7327b4b5ef1bdf83c2e68a6e3b793
/src/johnny/gamestore/servlet/beans/Console.java
b44c3645de753839f4a98b273fb6c6f3c851508c
[ "MIT" ]
permissive
tanbinh123/game-store-servlet
b96e7a26c2621da8dd96c9c01dbe50b90433e847
f2d6388afc88c5c4401b4cf713ce6b707eff0a4e
refs/heads/master
2023-03-17T18:17:00.145422
2020-07-25T19:55:05
2020-07-25T19:55:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,304
java
package johnny.gamestore.servlet.beans; import java.util.HashMap; public class Console { private String key; private String manufacturer; private String name; private double price; private String image; private String retailer; private String condition; private double discount; private HashMap<String,Accessory> accessories = new HashMap<String,Accessory>(); public Console(String key, String manufacturer, String name, double price, String image, String retailer,String condition,double discount, HashMap<String,Accessory> accessories){ this.key = key; this.manufacturer = manufacturer; this.name = name; this.price = price; this.image = image; this.retailer = retailer; this.condition = condition; this.discount = discount; this.setAccessories(accessories); } public Console(){ } public String getKey() { return key; } public String getManufacturer() { return manufacturer; } public void setManufacturer(String manufacturer) { this.manufacturer = manufacturer; } public String getName() { return name; } public void setName(String name) { this.name = name; } public double getPrice() { return price; } public void setPrice(double price) { this.price = price; } public String getImage() { return image; } public void setImage(String image) { this.image = image; } public String getRetailer() { return retailer; } public void setRetailer(String retailer) { this.retailer = retailer; } public String getCondition() { return condition; } public void setCondition(String condition) { this.condition = condition; } public double getDiscount() { return discount; } public void setDiscount(double discount) { this.discount = discount; } public double getDiscountedPrice() { return price * (100 - discount) / 100; } public HashMap<String,Accessory> getAccessories() { return accessories; } public void setAccessories(HashMap<String,Accessory> accessories) { this.accessories = accessories; } }
[ "jojozhuang@gmail.com" ]
jojozhuang@gmail.com
ab1bdf848072b126d20a06f9475df46fc8daa283
139960e2d7d55e71c15e6a63acb6609e142a2ace
/mobile_app1/module588/src/main/java/module588packageJava0/Foo120.java
99c9149d4ad47fea78ef6e2cac0ec6636ec189ec
[ "Apache-2.0" ]
permissive
uber-common/android-build-eval
448bfe141b6911ad8a99268378c75217d431766f
7723bfd0b9b1056892cef1fef02314b435b086f2
refs/heads/master
2023-02-18T22:25:15.121902
2023-02-06T19:35:34
2023-02-06T19:35:34
294,831,672
83
7
Apache-2.0
2021-09-24T08:55:30
2020-09-11T23:27:37
Java
UTF-8
Java
false
false
431
java
package module588packageJava0; import java.lang.Integer; public class Foo120 { Integer int0; Integer int1; public void foo0() { new module588packageJava0.Foo119().foo6(); } public void foo1() { foo0(); } public void foo2() { foo1(); } public void foo3() { foo2(); } public void foo4() { foo3(); } public void foo5() { foo4(); } public void foo6() { foo5(); } }
[ "oliviern@uber.com" ]
oliviern@uber.com
5fcd73e06c5a3f8bd8d4190a9dde2d7ee8b209a2
deb7ff05475f9c1bacbefcb493e23f7f081f48c1
/src/OCA2020Modify223qNewQuestions/Q105/Bird.java
fed638846346c80317a6f35beff15ca79a3681e5
[]
no_license
Bayramgul/OCA_certificate
c93bb913f9e192fba1560e664326e86a3781f6f1
e12dbc0a0e4363aa279379b7e8e27f3be15113d9
refs/heads/master
2022-12-20T10:39:42.451149
2020-09-16T16:56:44
2020-09-16T16:56:44
296,094,705
0
0
null
null
null
null
UTF-8
Java
false
false
131
java
package OCA2020Modify223qNewQuestions.Q105; public class Bird { public void fly(){ System.out.println("Fly."); } }
[ "atageldiyevab@gmail.com" ]
atageldiyevab@gmail.com
0c81073980e864d205329b37f70ec4ae732720f2
10378c580b62125a184f74f595d2c37be90a5769
/net/minecraft/client/audio/SoundCategory.java
c7fc66b3944cdf773daef6955b2be9c9e48d4345
[]
no_license
ClientPlayground/Melon-Client
4299d7f3e8f2446ae9f225c0d7fcc770d4d48ecb
afc9b11493e15745b78dec1c2b62bb9e01573c3d
refs/heads/beta-v2
2023-04-05T20:17:00.521159
2021-03-14T19:13:31
2021-03-14T19:13:31
347,509,882
33
19
null
2021-03-14T19:13:32
2021-03-14T00:27:40
null
UTF-8
Java
false
false
1,484
java
package net.minecraft.client.audio; import com.google.common.collect.Maps; import java.util.Map; public enum SoundCategory { MASTER("master", 0), MUSIC("music", 1), RECORDS("record", 2), WEATHER("weather", 3), BLOCKS("block", 4), MOBS("hostile", 5), ANIMALS("neutral", 6), PLAYERS("player", 7), AMBIENT("ambient", 8); private static final Map<String, SoundCategory> NAME_CATEGORY_MAP; private static final Map<Integer, SoundCategory> ID_CATEGORY_MAP; private final String categoryName; private final int categoryId; static { NAME_CATEGORY_MAP = Maps.newHashMap(); ID_CATEGORY_MAP = Maps.newHashMap(); for (SoundCategory soundcategory : values()) { if (NAME_CATEGORY_MAP.containsKey(soundcategory.getCategoryName()) || ID_CATEGORY_MAP.containsKey(Integer.valueOf(soundcategory.getCategoryId()))) throw new Error("Clash in Sound Category ID & Name pools! Cannot insert " + soundcategory); NAME_CATEGORY_MAP.put(soundcategory.getCategoryName(), soundcategory); ID_CATEGORY_MAP.put(Integer.valueOf(soundcategory.getCategoryId()), soundcategory); } } SoundCategory(String name, int id) { this.categoryName = name; this.categoryId = id; } public String getCategoryName() { return this.categoryName; } public int getCategoryId() { return this.categoryId; } public static SoundCategory getCategory(String name) { return NAME_CATEGORY_MAP.get(name); } }
[ "Hot-Tutorials@users.noreply.github.com" ]
Hot-Tutorials@users.noreply.github.com
e7e360b69962dc1ab50915032af895775f426445
180e78725121de49801e34de358c32cf7148b0a2
/dataset/protocol1/java-design-patterns/testing/143/WeatherTest.java
feb9da8c74d8e0b97fe305ccdc83bfe0ea56f8c2
[]
no_license
ASSERT-KTH/synthetic-checkstyle-error-dataset
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
40c057e1669584bfc6fecf789b5b2854660222f3
refs/heads/master
2023-03-18T12:50:55.410343
2019-01-25T09:54:39
2019-01-25T09:54:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,346
java
/** * The MIT License * Copyright (c) 2014-2016 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package com.iluwatar.observer; import com.iluwatar.observer.utils.InMemoryAppender; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.InOrder; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.mockito.Mockito.inOrder; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.verifyNoMoreInteractions; import static org.mockito.Mockito.verifyZeroInteractions; /** * Date: 12/27/15 - 11:08 AM * * @author Jeroen Meulemeester */ public class WeatherTest { private InMemoryAppender appender; @BeforeEach public void setUp() { appender = new InMemoryAppender(Weather.class); } @AfterEach public void tearDown() { appender.stop(); } /** * Add a {@link WeatherObserver}, verify if it gets notified of a weather change, remove the * observer again and verify that there are no more notifications. */ @Test public void testAddRemoveObserver() { final WeatherObserver observer = mock(WeatherObserver.class); final Weather weather = new Weather(); weather.addObserver(observer); verifyZeroInteractions(observer); weather.timePasses(); assertEquals("The weather changed to rainy.", appender.getLastMessage()); verify(observer).update(WeatherType.RAINY); weather.removeObserver(observer); weather.timePasses(); assertEquals("The weather changed to windy.", appender.getLastMessage()); verifyNoMoreInteractions(observer); assertEquals(2, appender.getLogSize()); } /** * Verify if the weather passes in the order of the {@link WeatherType}s */ @Test public void testTimePasses() { final WeatherObserver observer = mock(WeatherObserver.class); final Weather weather = new Weather(); weather.addObserver(observer); final InOrder inOrder = inOrder(observer); final WeatherType[] weatherTypes = WeatherType.values(); for (int i = 1; i < 20; i++) { weather.timePasses(); inOrder.verify(observer).update(weatherTypes[i % weatherTypes.length]); } verifyNoMoreInteractions(observer); } }
[ "bloriot97@gmail.com" ]
bloriot97@gmail.com
edd6dbbaf55edfc551c418aa96f191e5876743b7
4c18c54ccb786ab6cb6f531f875a4d38a1f18aef
/jgl-core/src/test/java/org/jgl/opengl/test/T013SpiralSphere.java
9a60117576e012bfdb7dac0445e8b8ae0c285175
[]
no_license
xranby/jgl
60bdfae6553ca16578435ec4095d4ba4165dc98e
7dc3e562e5fce2854482b0ceed79ee44514586c8
refs/heads/master
2021-01-09T20:54:02.725094
2013-07-10T08:24:50
2013-07-10T08:24:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,299
java
package org.jgl.opengl.test; import static javax.media.opengl.GL.*; import static org.jgl.opengl.util.GLSLUtils.*; import static org.jgl.opengl.GLBufferFactory.*; import static org.jgl.math.matrix.Matrix4OpsCam.*; import static org.jgl.math.matrix.Matrix4OpsPersp.*; import static org.jgl.math.angle.AngleOps.*; import javax.media.opengl.GL3; import org.jgl.geom.solid.Sphere; import org.jgl.geom.transform.ModelTransform; import org.jgl.math.angle.Angle; import org.jgl.math.matrix.io.BufferedMatrix4; import org.jgl.math.vector.Vector3; import org.jgl.opengl.*; import org.jgl.opengl.glsl.GLProgram; import org.jgl.opengl.glsl.attribute.GLUFloatMat4; import org.jgl.opengl.util.GLViewSize; import org.jgl.time.util.ExecutionState; public class T013SpiralSphere extends GL3EventListener { private Sphere sphere = new Sphere(); private GLBuffer sphereIndices; private GLProgram p; private GLVertexArray sphereVao = new GLVertexArray(); private BufferedMatrix4 projMat = new BufferedMatrix4(); private BufferedMatrix4 cameraMat = new BufferedMatrix4(); private ModelTransform modelTransform = new ModelTransform(); private GLUFloatMat4 uCameraMatrix, uModelMatrix, uProjectionMatrix; private Angle fov = new Angle(); private Vector3 eye = new Vector3(2.5, 3.5, 2.5); private Vector3 target = new Vector3(); @Override protected void doInit(GL3 gl) throws Exception { GLBuffer sphereVertices = buffer(sphere.getVertices(), gl, GL_ARRAY_BUFFER, GL_STATIC_DRAW); GLBuffer sphereTexCoords = buffer(sphere.getTexCoords(), gl, GL_ARRAY_BUFFER, GL_STATIC_DRAW); sphereIndices = buffer(sphere.getIndices(), gl, GL_ELEMENT_ARRAY_BUFFER, GL_STATIC_DRAW); p = loadProgram("./src/test/resources/org/jgl/glsl/test/t013SpiralSphere/spiralSphere.vs", "./src/test/resources/org/jgl/glsl/test/t013SpiralSphere/spiralSphere.fs", gl); sphereVao.init(gl); p.bind(); p.getStageAttribute("Position").set(sphereVao, sphereVertices, false, 0).enable(); p.getStageAttribute("TexCoord").set(sphereVao, sphereTexCoords, false, 0).enable(); uCameraMatrix = p.getMat4("CameraMatrix"); uModelMatrix = p.getMat4("ModelMatrix"); uProjectionMatrix = p.getMat4("ProjectionMatrix"); gl.glClearColor(0.8f, 0.8f, 0.7f, 0.0f); gl.glClearDepth(1.0f); gl.glEnable(GL_DEPTH_TEST); } @Override protected void doRender(GL3 gl, ExecutionState currentState) throws Exception { getDrawHelper().glClearColor().glClearDepth(); sphereVao.bind(); getDrawHelper().glIndexedDraw(GL_TRIANGLE_STRIP, sphereIndices); sphereVao.unbind(); } @Override protected void doUpdate(GL3 gl, ExecutionState currentState) throws Exception { double time = currentState.getElapsedTimeSeconds(); lookAt(cameraMat, eye, target); uCameraMatrix.set(cameraMat); modelTransform.getTranslation().setY(Math.sqrt(1 + sineWave(time / 2.0))); modelTransform.getRotationY().setDegrees(time * 180); uModelMatrix.set(modelTransform.getModelMatrix()); } @Override protected void onResize(GL3 gl, GLViewSize newViewport) { getDrawHelper().glViewPort(newViewport); perspectiveX(projMat, fov.setDegrees(70), newViewport.width / newViewport.height, 1, 70); uProjectionMatrix.set(projMat); } }
[ "jjzazuet@gmail.com" ]
jjzazuet@gmail.com
c241df64d34ac5bd353f129537cdb9f1772f3ed4
1d676636493e907bc9885aeacc47f674059bdc76
/gradle-core/src/main/java/com/android/build/gradle/internal/dsl/JackOptions.java
7e0369bf5735ddb01f522c3db79f61a6f711ed1f
[ "Apache-2.0" ]
permissive
huafresh/studio-3.0-build-system
f895d05426936f833b3eefe18599c3dc6717915d
42eb79bb520bf1fa428426ef31575b450eb1255d
refs/heads/master
2023-04-01T09:13:42.953418
2021-04-09T08:49:35
2021-04-09T08:49:35
356,198,659
0
0
null
null
null
null
UTF-8
Java
false
false
5,135
java
/* * Copyright (C) 2016 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.build.gradle.internal.dsl; import com.android.annotations.NonNull; import com.android.annotations.Nullable; import com.android.builder.core.ErrorReporter; import com.android.builder.model.SyncIssue; import com.google.common.base.MoreObjects; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import java.util.Collections; import java.util.List; import java.util.Map; /** * The Jack toolchain is <em>deprecated</em>. * * <p>If you want to use Java 8 language features, use the improved support included in the default * toolchain. To learn more, read <a * href="https://developer.android.com/studio/write/java8-support.html">Use Java 8 language * features</a>. * * @deprecated For more information, read <a * href="https://developer.android.com/studio/write/java8-support.html">Use Java 8 language * features</a>. */ @Deprecated @SuppressWarnings("UnnecessaryInheritDoc") public class JackOptions implements CoreJackOptions { static final String DEPRECATION_WARNING = "The Jack toolchain is deprecated and will not run. " + "To enable support for Java 8 language features " + "built into the plugin, remove 'jackOptions { ... }' from your " + "build.gradle file, and add\n\n" + "android.compileOptions.sourceCompatibility 1.8\n" + "android.compileOptions.targetCompatibility 1.8\n\n" + "Future versions of the plugin will not support usage of 'jackOptions' " + "in build.gradle.\n" + "To learn more, go to " + "https://d.android.com/r/tools/java-8-support-message.html\n"; @Nullable private Boolean isEnabledFlag; @Nullable private Boolean isJackInProcessFlag; @NonNull private Map<String, String> additionalParameters = Maps.newHashMap(); @NonNull private List<String> pluginNames = Lists.newArrayList(); @NonNull private final ErrorReporter errorReporter; public JackOptions(@NonNull ErrorReporter errorReporter) { this.errorReporter = errorReporter; } void _initWith(CoreJackOptions that) { isEnabledFlag = that.isEnabled(); isJackInProcessFlag = that.isJackInProcess(); additionalParameters = Maps.newHashMap(that.getAdditionalParameters()); pluginNames = Lists.newArrayList(that.getPluginNames()); } /** {@inheritDoc} */ @Deprecated @Override @Nullable public Boolean isEnabled() { // Jack toolchain has been deprecated return null; } public void setEnabled(@Nullable Boolean enabled) { errorReporter.handleSyncWarning(null, SyncIssue.TYPE_GENERIC, DEPRECATION_WARNING); } /** {@inheritDoc} */ @Deprecated @Override @Nullable public Boolean isJackInProcess() { return isJackInProcessFlag; } public void setJackInProcess(@Nullable Boolean jackInProcess) { isJackInProcessFlag = jackInProcess; } /** {@inheritDoc} */ @Deprecated @Override @NonNull public Map<String, String> getAdditionalParameters() { return additionalParameters; } public void setAdditionalParameters(@NonNull Map<String, String> additionalParameters) { this.additionalParameters.clear(); this.additionalParameters.putAll(additionalParameters); } public void additionalParameters(@NonNull Map<String, String> additionalParameters) { this.additionalParameters.putAll(additionalParameters); } /** Sets the plugin names list to the specified one. */ public void setPluginNames(@NonNull List<String> pluginNames) { this.pluginNames = Lists.newArrayList(pluginNames); } /** Adds the specified plugin names to the existing list of plugin names. */ public void pluginNames(@NonNull String... pluginNames) { Collections.addAll(this.pluginNames, pluginNames); } /** {@inheritDoc} */ @Deprecated @Override @NonNull public List<String> getPluginNames() { return pluginNames; } @Override public String toString() { return MoreObjects.toStringHelper(this) .add("isEnabled", isEnabledFlag) .add("isJackInProcess", isJackInProcessFlag) .add("additionalParameters", isJackInProcessFlag) .add("pluginNames", pluginNames) .toString(); } }
[ "clydeazhang@tencent.com" ]
clydeazhang@tencent.com
f1c7676df4a0cb6290a06fbfcb7ff4075b96143f
8cd01526f0e84cf36bc27515876eda9bcc52f49a
/code/vim_android/office/src/main/java/com/wxiwei/office/fc/hssf/record/ProtectRecord.java
4038775fb127a482fa0b8417bb90ca05ea0c71f7
[]
no_license
liyawei7711/shenlun
a0baa859cec59b9d46825c8b1797173bd56d4d3f
602b103d90df98c100ce55efee132596b0100445
refs/heads/master
2021-01-09T12:52:18.359146
2020-06-29T08:21:20
2020-06-29T08:21:20
242,304,879
1
0
null
null
null
null
UTF-8
Java
false
false
3,105
java
/* ==================================================================== Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==================================================================== */ package com.wxiwei.office.fc.hssf.record; import com.wxiwei.office.fc.util.BitField; import com.wxiwei.office.fc.util.BitFieldFactory; import com.wxiwei.office.fc.util.HexDump; import com.wxiwei.office.fc.util.LittleEndianOutput; /** * Title: Protect Record (0x0012) <p/> * Description: defines whether a sheet or workbook is protected (HSSF DOES NOT SUPPORT ENCRYPTION)<p/> * HSSF now supports the simple "protected" sheets (where they are not encrypted and open office et al * ignore the password record entirely). * REFERENCE: PG 373 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)<p/> * @author Andrew C. Oliver (acoliver at apache dot org) */ public final class ProtectRecord extends StandardRecord { public final static short sid = 0x0012; private static final BitField protectFlag = BitFieldFactory.getInstance(0x0001); private int _options; private ProtectRecord(int options) { _options = options; } public ProtectRecord(boolean isProtected) { this(0); setProtect(isProtected); } public ProtectRecord(RecordInputStream in) { this(in.readShort()); } /** * set whether the sheet is protected or not * @param protect whether to protect the sheet or not */ public void setProtect(boolean protect) { _options = protectFlag.setBoolean(_options, protect); } /** * get whether the sheet is protected or not * @return whether to protect the sheet or not */ public boolean getProtect() { return protectFlag.isSet(_options); } public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append("[PROTECT]\n"); buffer.append(" .options = ").append(HexDump.shortToHex(_options)).append("\n"); buffer.append("[/PROTECT]\n"); return buffer.toString(); } public void serialize(LittleEndianOutput out) { out.writeShort(_options); } protected int getDataSize() { return 2; } public short getSid() { return sid; } public Object clone() { return new ProtectRecord(_options); } }
[ "751804582@qq.com" ]
751804582@qq.com
48f95574d3eb031f9e7a49704e5d9bcbae9a0364
7df40f6ea2209b7d48979465fd8081ec2ad198cc
/TOOLS/server/com/sun/xml/xsom/impl/parser/Messages.java
3cf31b691c7f55e125f32204f7d8f50948595cf0
[ "IJG" ]
permissive
warchiefmarkus/WurmServerModLauncher-0.43
d513810045c7f9aebbf2ec3ee38fc94ccdadd6db
3e9d624577178cd4a5c159e8f61a1dd33d9463f6
refs/heads/master
2021-09-27T10:11:56.037815
2021-09-19T16:23:45
2021-09-19T16:23:45
252,689,028
0
0
null
2021-09-19T16:53:10
2020-04-03T09:33:50
Java
UTF-8
Java
false
false
1,980
java
/* */ package com.sun.xml.xsom.impl.parser; /* */ /* */ import java.text.MessageFormat; /* */ import java.util.ResourceBundle; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class Messages /* */ { /* */ public static final String ERR_UNDEFINED_SIMPLETYPE = "UndefinedSimpleType"; /* */ public static final String ERR_UNDEFINED_COMPLEXTYPE = "UndefinedCompplexType"; /* */ public static final String ERR_UNDEFINED_TYPE = "UndefinedType"; /* */ public static final String ERR_UNDEFINED_ELEMENT = "UndefinedElement"; /* */ public static final String ERR_UNDEFINED_MODELGROUP = "UndefinedModelGroup"; /* */ public static final String ERR_UNDEFINED_ATTRIBUTE = "UndefinedAttribute"; /* */ public static final String ERR_UNDEFINED_ATTRIBUTEGROUP = "UndefinedAttributeGroup"; /* */ public static final String ERR_UNDEFINED_IDENTITY_CONSTRAINT = "UndefinedIdentityConstraint"; /* */ public static final String ERR_UNDEFINED_PREFIX = "UndefinedPrefix"; /* */ public static final String ERR_DOUBLE_DEFINITION = "DoubleDefinition"; /* */ public static final String ERR_DOUBLE_DEFINITION_ORIGINAL = "DoubleDefinition.Original"; /* */ public static final String ERR_MISSING_SCHEMALOCATION = "MissingSchemaLocation"; /* */ public static final String ERR_ENTITY_RESOLUTION_FAILURE = "EntityResolutionFailure"; /* */ public static final String ERR_SIMPLE_CONTENT_EXPECTED = "SimpleContentExpected"; /* */ /* */ public static String format(String property, Object... args) { /* 32 */ String text = ResourceBundle.getBundle(Messages.class.getName()).getString(property); /* */ /* 34 */ return MessageFormat.format(text, args); /* */ } /* */ } /* Location: C:\Users\leo\Desktop\server.jar!\com\sun\xml\xsom\impl\parser\Messages.class * Java compiler version: 5 (49.0) * JD-Core Version: 1.1.3 */
[ "warchiefmarkus@gmail.com" ]
warchiefmarkus@gmail.com
222d198f8e46a5234f1b85dd1af35bc7a108d752
f766baf255197dd4c1561ae6858a67ad23dcda68
/app/src/main/java/com/google/android/exoplayer2/c/a/c.java
5d244d16c2afeb701458089e5cabbad4f5d646a2
[]
no_license
jianghan200/wxsrc6.6.7
d83f3fbbb77235c7f2c8bc945fa3f09d9bac3849
eb6c56587cfca596f8c7095b0854cbbc78254178
refs/heads/master
2020-03-19T23:40:49.532494
2018-06-12T06:00:50
2018-06-12T06:00:50
137,015,278
4
2
null
null
null
null
UTF-8
Java
false
false
759
java
package com.google.android.exoplayer2.c.a; final class c implements b.a { private final long aet; private final long[] aiA; private final long[] ajj; c(long[] paramArrayOfLong1, long[] paramArrayOfLong2, long paramLong) { this.aiA = paramArrayOfLong1; this.ajj = paramArrayOfLong2; this.aet = paramLong; } public final long C(long paramLong) { return this.aiA[com.google.android.exoplayer2.i.t.a(this.ajj, paramLong, true)]; } public final boolean jR() { return true; } } /* Location: /Users/Han/Desktop/wxall/微信反编译/反编译 6.6.7/dex2jar-2.0/classes5-dex2jar.jar!/com/google/android/exoplayer2/c/a/c.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "526687570@qq.com" ]
526687570@qq.com
73e023620999288033f35a50b7ae96461c3f1e8d
31ba1d7a1b52cd15816721c6425d139159d49ab3
/imooc-security-demo/src/main/java/com/imooc/security/DemoConnectionSignUp.java
6941de6989b4f124c89ca021322f959453a99c1d
[]
no_license
requestandresponse/p1o6vt
0346f4c11ec27b3c8523e368e860fec62e0db5b6
eb058ad5be21a221cf49dd692812a552079f52a3
refs/heads/master
2020-04-30T14:10:31.542993
2019-03-21T06:53:42
2019-03-21T06:53:42
176,882,357
0
0
null
2019-03-21T06:53:43
2019-03-21T06:20:51
Java
UTF-8
Java
false
false
660
java
/** * */ package com.imooc.security; import org.springframework.social.connect.Connection; import org.springframework.social.connect.ConnectionSignUp; import org.springframework.stereotype.Component; /** * @author zhailiang */ //@Component public class DemoConnectionSignUp implements ConnectionSignUp { /* (non-Javadoc) * @see org.springframework.social.connect.ConnectionSignUp#execute(org.springframework.social.connect.Connection) */ @Override public String execute(Connection<?> connection) { //根据社交用户信息默认创建用户并返回用户唯一标识 return connection.getDisplayName(); } }
[ "admin" ]
admin
afad77f09ee76f737bc23cd754630dd6cd1cddaa
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/java/java-tests/testData/inspection/redundantCast/generics/RawCast1.java
6f302ded273202cc2a1d49e305c8e084ef27f4b1
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Java
false
false
262
java
class Test { { class TypedQuery<T> {} class TemporalDataDTO<K> {} class FOLDER_ID {} TypedQuery<TemporalDataDTO> h = null; TypedQuery<TemporalDataDTO<FOLDER_ID>> typedQuery = (TypedQuery<TemporalDataDTO<FOLDER_ID>>) (TypedQuery<?>)h; } }
[ "Tagir.Valeev@jetbrains.com" ]
Tagir.Valeev@jetbrains.com
f290742dbec25ea0f202f7168e7134ed26e99505
c94f888541c0c430331110818ed7f3d6b27b788a
/ak_12efccd8bd334687a38543f32758eba0/java/src/main/java/com/antgroup/antchain/openapi/ak_12efccd8bd334687a38543f32758eba0/models/ExecAntchainBbpContractReconciliationRequest.java
06b096473a6031c7e8b38bdd21bca6959552cdda
[ "MIT", "Apache-2.0" ]
permissive
alipay/antchain-openapi-prod-sdk
48534eb78878bd708a0c05f2fe280ba9c41d09ad
5269b1f55f1fc19cf0584dc3ceea821d3f8f8632
refs/heads/master
2023-09-03T07:12:04.166131
2023-09-01T08:56:15
2023-09-01T08:56:15
275,521,177
9
10
MIT
2021-03-25T02:35:20
2020-06-28T06:22:14
PHP
UTF-8
Java
false
false
1,846
java
// This file is auto-generated, don't edit it. Thanks. package com.antgroup.antchain.openapi.ak_12efccd8bd334687a38543f32758eba0.models; import com.aliyun.tea.*; public class ExecAntchainBbpContractReconciliationRequest extends TeaModel { // OAuth模式下的授权token @NameInMap("auth_token") public String authToken; @NameInMap("product_instance_id") public String productInstanceId; // 供应商 @NameInMap("sup_code") @Validation(required = true) public String supCode; // 结算时间 @NameInMap("score_date") @Validation(required = true) public String scoreDate; public static ExecAntchainBbpContractReconciliationRequest build(java.util.Map<String, ?> map) throws Exception { ExecAntchainBbpContractReconciliationRequest self = new ExecAntchainBbpContractReconciliationRequest(); return TeaModel.build(map, self); } public ExecAntchainBbpContractReconciliationRequest setAuthToken(String authToken) { this.authToken = authToken; return this; } public String getAuthToken() { return this.authToken; } public ExecAntchainBbpContractReconciliationRequest setProductInstanceId(String productInstanceId) { this.productInstanceId = productInstanceId; return this; } public String getProductInstanceId() { return this.productInstanceId; } public ExecAntchainBbpContractReconciliationRequest setSupCode(String supCode) { this.supCode = supCode; return this; } public String getSupCode() { return this.supCode; } public ExecAntchainBbpContractReconciliationRequest setScoreDate(String scoreDate) { this.scoreDate = scoreDate; return this; } public String getScoreDate() { return this.scoreDate; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
116d7fc9b29be1538438e30e80a7edce3c16c68e
7b82d70ba5fef677d83879dfeab859d17f4809aa
/f/_LeetCode/xgame-code_server/game_part/src/main/java/com/game/part/io/IIoOperProc.java
22ce4f5980b2d7f93642a4060a2daf97aac3d244
[ "Apache-2.0" ]
permissive
apollowesley/jun_test
fb962a28b6384c4097c7a8087a53878188db2ebc
c7a4600c3f0e1b045280eaf3464b64e908d2f0a2
refs/heads/main
2022-12-30T20:47:36.637165
2020-10-13T18:10:46
2020-10-13T18:10:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
239
java
package com.game.part.io; /** * IO 工作过程接口 * * @author haijiang * */ interface IIoOperProc<TIoOper extends IIoOper> { /** * 开始工作 * * @param oper * */ void execute(TIoOper oper); }
[ "wujun728@hotmail.com" ]
wujun728@hotmail.com
4f61cad3fefc4041273b5e6649eb0333c3385b33
f56ffec6bd5908d948862888121ada7e79e710ff
/io7m-r2-filters/src/main/java/com/io7m/r2/filters/R2FilterFXAAQuality.java
7240762bd3dfd78253153607b81ba237d9fbc8b7
[ "ISC" ]
permissive
michaeljclark/r2
10b56461096b00de4a02bdc91c98bb0f0776697f
6f74d34bb8c24909ca09c7d3356eae99e51dd6b8
refs/heads/master
2021-10-14T08:37:48.334747
2017-01-02T13:39:42
2017-01-02T13:39:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,780
java
/* * Copyright © 2016 <code@io7m.com> http://io7m.com * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ package com.io7m.r2.filters; /** * A specification of which FXAA preset to use, based on the desired quality * level. */ public enum R2FilterFXAAQuality { /** * Medium dithering, lowest quality, fastest possible processing. */ R2_FXAA_QUALITY_10(10), /** * Medium dithering, better quality than {@link #R2_FXAA_QUALITY_10}, fast * processing. */ R2_FXAA_QUALITY_15(15), /** * Low dithering, fastest/lowest quality. */ R2_FXAA_QUALITY_20(20), /** * Low dithering, better quality than {@link #R2_FXAA_QUALITY_20}. */ R2_FXAA_QUALITY_25(25), /** * Low dithering, better quality than {@link #R2_FXAA_QUALITY_25}. */ R2_FXAA_QUALITY_29(29), /** * No dithering, expensive processing. */ R2_FXAA_QUALITY_39(39); private final int preset; R2FilterFXAAQuality(final int p) { this.preset = p; } /** * @return The FXAA preset number */ public int getPreset() { return this.preset; } }
[ "code@io7m.com" ]
code@io7m.com
7f1bb896e096ef2c6b5e875e685a0b356bc45030
4c32f2e91f2c4a2199c09e97c6109a70b301e804
/src/main/java/generated/PartnerTypeListType.java
c4512381f68b9662662dacf16e6aaa56b1341928
[]
no_license
ejohnsonw/ndc-xsd-162
47f7b130b88d5af550a093529fa13a573ec628e0
76d0099233aad0c3d8663cc6e1c2cbf2435986f6
refs/heads/master
2020-12-30T13:28:16.667965
2017-05-14T02:56:01
2017-05-14T02:56:01
91,215,700
0
0
null
2017-05-14T02:47:21
2017-05-14T02:47:21
null
UTF-8
Java
false
false
1,944
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 // 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: 2017.05.13 at 10:55:06 PM EDT // package generated; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for PartnerTypeListType. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name="PartnerTypeListType"> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;enumeration value="AirPassProgramHolder"/> * &lt;enumeration value="Merchandise"/> * &lt;enumeration value="ServiceFulfillment"/> * &lt;enumeration value="ServiceProvider"/> * &lt;enumeration value="Other"/> * &lt;/restriction> * &lt;/simpleType> * </pre> * */ @XmlType(name = "PartnerTypeListType") @XmlEnum public enum PartnerTypeListType { @XmlEnumValue("AirPassProgramHolder") AIR_PASS_PROGRAM_HOLDER("AirPassProgramHolder"), @XmlEnumValue("Merchandise") MERCHANDISE("Merchandise"), @XmlEnumValue("ServiceFulfillment") SERVICE_FULFILLMENT("ServiceFulfillment"), @XmlEnumValue("ServiceProvider") SERVICE_PROVIDER("ServiceProvider"), @XmlEnumValue("Other") OTHER("Other"); private final String value; PartnerTypeListType(String v) { value = v; } public String value() { return value; } public static PartnerTypeListType fromValue(String v) { for (PartnerTypeListType c: PartnerTypeListType.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } }
[ "ejohnson@ngeosone.com" ]
ejohnson@ngeosone.com
bfbf8d67cb20212a0c122b7453acc4abe2b160fa
f08191da262305786287bd1a4a41671a1c1960f7
/MiuiSystemUI/umi/systemui/statusbar/phone/SignalDrawable.java
de05519e166fafe96035ec3272a22daeee8f5ba0
[]
no_license
lmjssjj/arsc_compare
f75acb947d890503defb9189e78e7019cb9b58e4
bf5ce3bb50f6b1595d373cd159f83b6b800dff37
refs/heads/master
2022-11-11T02:42:10.896103
2020-07-08T00:46:54
2020-07-08T00:46:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
589
java
package com.android.systemui.statusbar.phone; import android.graphics.drawable.Drawable; public class SignalDrawable extends Drawable { public static int getAirplaneModeState(int i) { return (i << 8) | 262144; } public static int getCarrierChangeState(int i) { return (i << 8) | 196608; } public static int getEmptyState(int i) { return (i << 8) | 65536; } public static int getState(int i, int i2, boolean z) { return i | (i2 << 8) | ((z ? 2 : 0) << 16); } static { Math.tan(0.39269908169872414d); } }
[ "viiplycn@gmail.com" ]
viiplycn@gmail.com
66500904f4b3e6e3ac2a28b729e5f40f3aeed901
29197bee635164ef2e4584abddd67211f1a21759
/spring-security-jwt/src/main/java/com/asa/demo/spring/security/jwt/bean/JwtRequest.java
dcd4c07a3e40a2cda1a0d3d5dd4da00affebd4ac
[]
no_license
GitHubsteven/spring-in-action2.0
7bbd8ac92c03800131aacb58a8f60c98b9ebf750
606901dfa0a26123eef2999313122597cc1c04e2
refs/heads/master
2023-08-09T19:42:12.229329
2023-08-03T08:07:31
2023-08-03T08:07:31
204,603,363
0
0
null
2023-08-03T08:08:08
2019-08-27T02:32:31
Java
UTF-8
Java
false
false
701
java
package com.asa.demo.spring.security.jwt.bean; import lombok.Getter; import lombok.Setter; import java.io.Serializable; /** * @version 1.0.0 COPYRIGHT © 2001 - 2018 VOYAGE ONE GROUP INC. ALL RIGHTS RESERVED. * @Author jet.xie * @Description: * @date: Created at 10:13 2019/8/30. */ @Setter @Getter public class JwtRequest implements Serializable { private static final long serialVersionUID = 5926468583005150707L; private String username; private String password; //need default constructor for JSON Parsing public JwtRequest() { } public JwtRequest(String username, String password) { this.username = username; this.password = password; } }
[ "rongbin.xie@voyageone.cn" ]
rongbin.xie@voyageone.cn
9360046f7d69bb0a3bd78dbdf8e016ea378776a4
40491eccb020f4b47cc6ec8bdfeff93499ba8e77
/wmmoney-api/src/main/java/br/com/wm/wmmoney/api/config/token/CustomTokenEnhancer.java
d3bd203710b73641bec8904a60fa680b059a0feb
[]
no_license
williammian/wmmoney
067148c77427906f5728a489c3c244474b19be3d
90be9aac41a5e60721b55688a758cef84ecba6da
refs/heads/master
2023-01-06T19:30:32.663585
2020-04-25T18:16:38
2020-04-25T18:16:38
203,237,126
2
2
null
2023-01-01T16:34:30
2019-08-19T19:30:40
Java
UTF-8
Java
false
false
989
java
package br.com.wm.wmmoney.api.config.token; import java.util.HashMap; import java.util.Map; import org.springframework.security.oauth2.common.DefaultOAuth2AccessToken; import org.springframework.security.oauth2.common.OAuth2AccessToken; import org.springframework.security.oauth2.provider.OAuth2Authentication; import org.springframework.security.oauth2.provider.token.TokenEnhancer; import br.com.wm.wmmoney.api.security.UsuarioSistema; public class CustomTokenEnhancer implements TokenEnhancer { @Override public OAuth2AccessToken enhance(OAuth2AccessToken accessToken, OAuth2Authentication authentication) { UsuarioSistema usuarioSistema = (UsuarioSistema) authentication.getPrincipal(); //Adicionando informações no Token Map<String, Object> addInfo = new HashMap<>(); addInfo.put("nome", usuarioSistema.getUsuario().getNome()); ((DefaultOAuth2AccessToken) accessToken).setAdditionalInformation(addInfo); return accessToken; } }
[ "william_mian@yahoo.com.br" ]
william_mian@yahoo.com.br
c91d6f7322d8fe06a95d7bea68c266a63fcfb30b
52b948436b826df8164565ffe69e73a92eb92cda
/Tests/RGTTests/bears/patches/traccar-traccar_195128524-195455832/Arja/229/patch/IgnitionEventHandler.java
174dff7edce653879463166c94d0480606fbd1bd
[]
no_license
tdurieux/ODSExperiment
910365f1388bc684e9916f46f407d36226a2b70b
3881ef06d6b8d5efb751860811def973cb0220eb
refs/heads/main
2023-07-05T21:30:30.099605
2021-08-18T15:56:56
2021-08-18T15:56:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,703
java
/* * Copyright 2016 Anton Tananaev (anton@traccar.org) * Copyright 2016 Andrey Kunitsyn (andrey@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.traccar.events; import java.util.Collection; import java.util.Collections; import org.traccar.BaseEventHandler; import org.traccar.Context; import org.traccar.model.Device; import org.traccar.model.Event; import org.traccar.model.Position; public class IgnitionEventHandler extends BaseEventHandler { @Override protected Collection<Event> analyzePosition(Position position) { Device device = Context.getIdentityManager().getDeviceById(position.getDeviceId()); if (!Context.getIdentityManager().isLatestPosition(position) || !position.getValid()) { return null; } Collection<Event> result = null; boolean ignition = position.getBoolean(Position.KEY_IGNITION); boolean oldIgnition = false; Position lastPosition = Context.getIdentityManager().getLastPosition(position.getDeviceId()); if (lastPosition != null) { oldIgnition = lastPosition.getBoolean(Position.KEY_IGNITION); } return result; } }
[ "he_ye_90s@hotmail.com" ]
he_ye_90s@hotmail.com
669048cb5e5ed3a48a5d731871df5f79c6778b52
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
/eclipseswt_cluster/12879/tar_0.java
874cd3e73e5bd059359ca2db47a17c2ec1b367bc
[]
no_license
martinezmatias/GenPat-data-C3
63cfe27efee2946831139747e6c20cf952f1d6f6
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
refs/heads/master
2022-04-25T17:59:03.905613
2020-04-15T14:41:34
2020-04-15T14:41:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,819
java
package org.eclipse.swt.widgets; /* * Copyright (c) 2000, 2002 IBM Corp. All rights reserved. * This file is made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html */ import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.carbon.OS; /** * Instances of this class represent a selectable user interface object * corresponding to a tab for a page in a tab folder. * <dl> * <dt><b>Styles:</b></dt> * <dd>(none)</dd> * <dt><b>Events:</b></dt> * <dd>(none)</dd> * </dl> * <p> * IMPORTANT: This class is <em>not</em> intended to be subclassed. * </p> */ public class TabItem extends Item { TabFolder parent; Control control; String toolTipText; /** * Constructs a new instance of this class given its parent * (which must be a <code>TabFolder</code>) and a style value * describing its behavior and appearance. The item is added * to the end of the items maintained by its parent. * <p> * The style value is either one of the style constants defined in * class <code>SWT</code> which is applicable to instances of this * class, or must be built by <em>bitwise OR</em>'ing together * (that is, using the <code>int</code> "|" operator) two or more * of those <code>SWT</code> style constants. The class description * lists the style constants that are applicable to the class. * Style bits are also inherited from superclasses. * </p> * * @param parent a composite control which will be the parent of the new instance (cannot be null) * @param style the style of control to construct * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the parent is null</li> * </ul> * @exception SWTException <ul> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li> * <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li> * </ul> * * @see SWT * @see Widget#checkSubclass * @see Widget#getStyle */ public TabItem (TabFolder parent, int style) { super (parent, style); this.parent = parent; parent.createItem (this, parent.getItemCount ()); } /** * Constructs a new instance of this class given its parent * (which must be a <code>TabFolder</code>), a style value * describing its behavior and appearance, and the index * at which to place it in the items maintained by its parent. * <p> * The style value is either one of the style constants defined in * class <code>SWT</code> which is applicable to instances of this * class, or must be built by <em>bitwise OR</em>'ing together * (that is, using the <code>int</code> "|" operator) two or more * of those <code>SWT</code> style constants. The class description * lists the style constants that are applicable to the class. * Style bits are also inherited from superclasses. * </p> * * @param parent a composite control which will be the parent of the new instance (cannot be null) * @param style the style of control to construct * @param index the index to store the receiver in its parent * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the parent is null</li> * </ul> * @exception SWTException <ul> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li> * <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li> * </ul> * * @see SWT * @see Widget#checkSubclass * @see Widget#getStyle */ public TabItem (TabFolder parent, int style, int index) { super (parent, style); this.parent = parent; parent.createItem (this, index); } protected void checkSubclass () { if (!isValidSubclass ()) error (SWT.ERROR_INVALID_SUBCLASS); } /** * Returns the control that is used to fill the client area of * the tab folder when the user selects the tab item. If no * control has been set, return <code>null</code>. * <p> * @return the control * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ public Control getControl () { checkWidget(); return control; } public Display getDisplay () { TabFolder parent = this.parent; if (parent == null) error (SWT.ERROR_WIDGET_DISPOSED); return parent.getDisplay (); } /** * Returns the receiver's parent, which must be a <code>TabFolder</code>. * * @return the receiver's parent * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ public TabFolder getParent () { checkWidget(); return parent; } /** * Returns the receiver's tool tip text, or null if it has * not been set. * * @return the receiver's tool tip text * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ public String getToolTipText () { checkWidget(); return toolTipText; } void releaseChild () { super.releaseChild (); int index = parent.indexOf (this); if (index == parent.getSelectionIndex ()) { if (control != null) control.setVisible (false); } parent.destroyItem (this); } void releaseWidget () { super.releaseWidget (); control = null; parent = null; } /** * Sets the control that is used to fill the client area of * the tab folder when the user selects the tab item. * <p> * @param control the new control (or null) * * @exception IllegalArgumentException <ul> * <li>ERROR_INVALID_ARGUMENT - if the control has been disposed</li> * <li>ERROR_INVALID_PARENT - if the control is not in the same widget tree</li> * </ul> * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ public void setControl (Control control) { checkWidget(); if (control != null) { if (control.isDisposed()) error (SWT.ERROR_INVALID_ARGUMENT); if (control.parent != parent) error (SWT.ERROR_INVALID_PARENT); } if (this.control != null && this.control.isDisposed ()) { this.control = null; } Control oldControl = this.control, newControl = control; this.control = control; int index = parent.indexOf (this); if (index != parent.getSelectionIndex ()) { if (newControl != null) newControl.setVisible (false); return; } if (newControl != null) { newControl.setBounds (parent.getClientArea ()); newControl.setVisible (true); } if (oldControl != null) oldControl.setVisible (false); } public void setImage (Image image) { checkWidget(); int index = parent.indexOf (this); if (index == -1) return; super.setImage (image); getParent().setTabImage(index, image); } public void setText (String string) { checkWidget(); if (string == null) error (SWT.ERROR_NULL_ARGUMENT); int index = parent.indexOf (this); if (index == -1) return; super.setText (string); //getParent().updateCarbon(index); getParent().setTabText(index, string); } /** * Sets the receiver's tool tip text to the argument, which * may be null indicating that no tool tip text should be shown. * * @param string the new tool tip text (or null) * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ public void setToolTipText (String string) { checkWidget(); toolTipText = string; } }
[ "375833274@qq.com" ]
375833274@qq.com
e70ed2383e3c11465cb17f8910e99a6d21b90385
0af8b92686a58eb0b64e319b22411432aca7a8f3
/api-vs-impl-small/utils/src/main/java/org/gradle/testutils/performancenull_43/Productionnull_4278.java
015ebc2d69a5236f62d3964ff555019a5afac4ed
[]
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
590
java
package org.gradle.testutils.performancenull_43; public class Productionnull_4278 { private final String property; public Productionnull_4278(String param) { this.property = param; } public String getProperty() { return property; } private String prop0; public String getProp0() { return prop0; } public void setProp0(String value) { prop0 = value; } private String prop1; public String getProp1() { return prop1; } public void setProp1(String value) { prop1 = value; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
b726cb7eed60fe19e15498669f9b108ee2d6ca77
d6ee99f643b3ee500ddaa54364d72af6c845c954
/src/ontology/effects/TimeEffect.java
87249807f89c7e530016e7b5f9349acf30ad9aab
[]
no_license
GAIGResearch/GameEvaluationMetricsAtDagstuhl
112f5a73e45efd1ea5608062b9ad7b3a61f83df9
a6729c740dff5db5152a778c915821072caedc17
refs/heads/master
2021-05-11T15:10:32.426282
2017-11-22T21:57:06
2017-11-22T21:57:06
117,716,319
2
0
null
null
null
null
UTF-8
Java
false
false
4,158
java
package ontology.effects; import core.vgdl.VGDLRegistry; import core.vgdl.VGDLSprite; import core.content.InteractionContent; import core.game.Game; /** * Created with IntelliJ IDEA. * User: Diego * Date: 23/10/13 * Time: 15:20 * This is a Java port from Tom Schaul's VGDL - https://github.com/schaul/py-vgdl */ public class TimeEffect extends Effect implements Comparable<TimeEffect> { /** * timer for the effect, -1 by default. * Indicates every how many steps this effects is triggered. * Set in VGDL. */ public int timer = -1; /** * Indicates the next time step when this effect will be automatically triggered without collisions. * It is set by planExecution(). */ public int nextExecution = -1; /** * Indicates if the effect should be repeated periodically ad infinitum */ public boolean repeating = false; /** * itype of the sprite that suffers the effects of the delegated Effect. */ public int itype; /** * True if this is a time effect defined in VGDL using TIME. * False if this is defined by an AddTimer effect */ public boolean isNative = true; /** * The effect itself, that is triggered by this. * it's a unary effect (the second sprite is always TIME). */ public Effect delegate; public TimeEffect() { } public TimeEffect(InteractionContent ic, Effect delegate) { this.parseParameters(ic); this.delegate = delegate; if (ic.object1.equalsIgnoreCase("TIME")) //Depends on where TIME is in the effect. this.itype = VGDLRegistry.GetInstance().getRegisteredSpriteValue(ic.object2[0]); else this.itype = VGDLRegistry.GetInstance().getRegisteredSpriteValue(ic.object1); if (nextExecution != -1) planExecution(null); } public TimeEffect(Effect delegate) { this.delegate = delegate; this.itype = -1; if (nextExecution != -1) planExecution(null); } /** * Executes the effect * * @param sprite1 first sprite of the collision * @param sprite2 second sprite of the collision * @param game reference to the game object with the current state. */ protected void execute(VGDLSprite sprite1, VGDLSprite sprite2, Game game) { //If the time effect is not native, we cannot guarantee that the sprite will be there. delegate.execute(sprite1, sprite2, game); if (repeating) planExecution(game); } public void planExecution(Game game) { int base = game == null ? 0 : game.getGameTick(); nextExecution = base + timer; } @Override public int compareTo(TimeEffect o) { if (this == o) return 0; if (this.nextExecution < o.nextExecution) return -1; //'this' executes first. if (this.nextExecution > o.nextExecution) return 1; //'this' executes second. return -1; //by default, with the same ordering. } public TimeEffect copy() { TimeEffect tef = new TimeEffect(); tef.is_kill_effect = this.is_kill_effect; tef.is_stochastic = this.is_stochastic; tef.scoreChange = this.scoreChange; tef.prob = this.prob; tef.applyScore = this.applyScore; tef.repeat = this.repeat; tef.timer = this.timer; tef.nextExecution = this.nextExecution; tef.itype = this.itype; tef.repeating = this.repeating; tef.delegate = this.delegate; tef.isNative = this.isNative; tef.enabled = this.enabled; return tef; } public void copyTo(TimeEffect tef) { tef.is_kill_effect = this.is_kill_effect; tef.is_stochastic = this.is_stochastic; tef.scoreChange = this.scoreChange; tef.prob = this.prob; tef.applyScore = this.applyScore; tef.repeat = this.repeat; tef.timer = this.timer; tef.nextExecution = this.nextExecution; tef.itype = this.itype; tef.repeating = this.repeating; tef.enabled = this.enabled; } }
[ "email@example.com" ]
email@example.com
759aeed4784e7a71b1df08b13ee6dccf465ec266
647eef4da03aaaac9872c8b210e4fc24485e49dc
/TestMemory/admobapk/src/main/java/com/google/android/gms/ads/internal/request/s.java
1833f3875ae57c43842168091e2426336564ae99
[]
no_license
AlbertSnow/git_workspace
f2d3c68a7b6e62f41c1edcd7744f110e2bf7f021
a0b2cd83cfa6576182f440a44d957a9b9a6bda2e
refs/heads/master
2021-01-22T17:57:16.169136
2016-12-05T15:59:46
2016-12-05T15:59:46
28,154,580
1
1
null
null
null
null
UTF-8
Java
false
false
634
java
package com.google.android.gms.ads.internal.request; import com.google.android.gms.ads.internal.report.client.a; import java.lang.ref.WeakReference; @a public final class s extends aa { private final WeakReference a; public s(i parami) { this.a = new WeakReference(parami); } public final void a(AdResponseParcel paramAdResponseParcel) { i locali = (i)this.a.get(); if (locali != null) locali.a(paramAdResponseParcel); } } /* Location: C:\Program Files\APK反编译\classes_dex2jar.jar * Qualified Name: com.google.android.gms.ads.internal.request.s * JD-Core Version: 0.6.0 */
[ "zhaojialiang@conew.com" ]
zhaojialiang@conew.com
9ca0258760b110af146567acc6589353a990e4d2
15ff5ab048ba88e3630560fa3a8b401a23b0cb5d
/src/android/support/v7/app/WindowDecorActionBar$1.java
f8d2313bbfc14958a0dc4d4ce8dc1c75d222812e
[]
no_license
TinyTechGirl/JustJava
08695e27992ceeea0f6a532ef0b2a28c61c86ff7
8a1d1175b79df5d50e9ecfd08580b9b995dd6641
refs/heads/master
2020-03-19T18:57:07.304602
2018-06-10T18:02:53
2018-06-10T18:02:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,205
java
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package android.support.v7.app; import android.support.v4.view.ViewCompat; import android.support.v4.view.ViewPropertyAnimatorListenerAdapter; import android.support.v7.widget.ActionBarContainer; import android.view.View; // Referenced classes of package android.support.v7.app: // WindowDecorActionBar class stenerAdapter extends ViewPropertyAnimatorListenerAdapter { final WindowDecorActionBar this$0; public void onAnimationEnd(View view) { if (mContentAnimations && mContentView != null) { mContentView.setTranslationY(0.0F); mContainerView.setTranslationY(0.0F); } mContainerView.setVisibility(8); mContainerView.setTransitioning(false); mCurrentShowAnim = null; completeDeferredDestroyActionMode(); if (mOverlayLayout != null) { ViewCompat.requestApplyInsets(mOverlayLayout); } } stenerAdapter() { this$0 = WindowDecorActionBar.this; super(); } }
[ "39646332+Daisy98Faith@users.noreply.github.com" ]
39646332+Daisy98Faith@users.noreply.github.com
217086d9ad98ecc4867a2159e444409414a5aa47
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
/Code Snippet Repository/Jetty/Jetty887.java
9483e126118b21877e950170717c37a7925bce8f
[]
no_license
saber13812002/DeepCRM
3336a244d4852a364800af3181e03e868cf6f9f5
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
refs/heads/master
2023-03-16T00:08:06.473699
2018-04-18T05:29:50
2018-04-18T05:29:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,348
java
protected void customizeFastCGIHeaders(Request proxyRequest, HttpFields fastCGIHeaders) { fastCGIHeaders.remove("HTTP_PROXY"); fastCGIHeaders.put(FCGI.Headers.REMOTE_ADDR, (String)proxyRequest.getAttributes().get(REMOTE_ADDR_ATTRIBUTE)); fastCGIHeaders.put(FCGI.Headers.REMOTE_PORT, (String)proxyRequest.getAttributes().get(REMOTE_PORT_ATTRIBUTE)); fastCGIHeaders.put(FCGI.Headers.SERVER_NAME, (String)proxyRequest.getAttributes().get(SERVER_NAME_ATTRIBUTE)); fastCGIHeaders.put(FCGI.Headers.SERVER_ADDR, (String)proxyRequest.getAttributes().get(SERVER_ADDR_ATTRIBUTE)); fastCGIHeaders.put(FCGI.Headers.SERVER_PORT, (String)proxyRequest.getAttributes().get(SERVER_PORT_ATTRIBUTE)); if (fcgiHTTPS || HttpScheme.HTTPS.is((String)proxyRequest.getAttributes().get(SCHEME_ATTRIBUTE))) fastCGIHeaders.put(FCGI.Headers.HTTPS, "on"); URI proxyRequestURI = proxyRequest.getURI(); String rawPath = proxyRequestURI == null ? proxyRequest.getPath() : proxyRequestURI.getRawPath(); String rawQuery = proxyRequestURI == null ? null : proxyRequestURI.getRawQuery(); String requestURI = (String)proxyRequest.getAttributes().get(REQUEST_URI_ATTRIBUTE); if (requestURI == null) { requestURI = rawPath; if (rawQuery != null) requestURI += "?" + rawQuery; } fastCGIHeaders.put(FCGI.Headers.REQUEST_URI, requestURI); String requestQuery = (String)proxyRequest.getAttributes().get(REQUEST_QUERY_ATTRIBUTE); if (requestQuery != null) fastCGIHeaders.put(FCGI.Headers.QUERY_STRING, requestQuery); String scriptName = rawPath; Matcher matcher = scriptPattern.matcher(rawPath); if (matcher.matches()) { // Expect at least one group in the regular expression. scriptName = matcher.group(1); // If there is a second group, map it to PATH_INFO. if (matcher.groupCount() > 1) fastCGIHeaders.put(FCGI.Headers.PATH_INFO, matcher.group(2)); } fastCGIHeaders.put(FCGI.Headers.SCRIPT_NAME, scriptName); String root = fastCGIHeaders.get(FCGI.Headers.DOCUMENT_ROOT); fastCGIHeaders.put(FCGI.Headers.SCRIPT_FILENAME, root + scriptName); }
[ "Qing.Mi@my.cityu.edu.hk" ]
Qing.Mi@my.cityu.edu.hk
724d09c4b64291de42e4288c675c0a0f60f5423a
16b2a55c8d0a3b5557d940cebc5ae21c3002d5ec
/tradingplatform-admin/tradingplatform-admin-controller/src/main/java/com/secondhand/tradingplatformadmincontroller/config/WebConfig.java
306899a7608bbb38a8f7c8389d50258237f93c4f
[]
no_license
810797860/tradingplatform
c89c866d0112caa3371e8e192678ee5b3eeafc57
1b5405fd6aed809adbb0c4e091799c982081e409
refs/heads/master
2022-10-18T19:30:55.069579
2020-08-06T01:54:20
2020-08-06T01:54:20
149,142,081
0
0
null
2022-10-12T20:18:54
2018-09-17T14:55:18
JavaScript
UTF-8
Java
false
false
1,125
java
package com.secondhand.tradingplatformadmincontroller.config; import com.secondhand.tradingplatformadmincontroller.handler.ShiroOriginFilter; import com.secondhand.tradingplatformcommon.util.ApplicationContextHolder; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * 用于注入子模块的bean * * @author 81079 */ @Configuration public class WebConfig { @Bean public ApplicationContextHolder applicationContextHolder() { return new ApplicationContextHolder(); } /** * 解决跨域问题 * * @return */ @Bean public FilterRegistrationBean filterRegistration() { FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean(); filterRegistrationBean.setFilter(new ShiroOriginFilter()); filterRegistrationBean.addUrlPatterns("/*"); filterRegistrationBean.addInitParameter("exclusions", "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"); return filterRegistrationBean; } }
[ "810797860@qq.com" ]
810797860@qq.com
a53ef6deba39111c56e4e0cf8c6a7f6f2130e7a1
fce7ae51d3cc7d24d2e6e488e7cf029e58c59b22
/src/com/database/elements/JdbcDriver.java
b413dd66cada32ca556869039ab55d124416f676
[]
no_license
mziernik/fra
085ae7bba60ac73b71587f303bc939a5e0ecf4b5
10bfccf3272de63fb883615d6f69f80a15e553f7
refs/heads/master
2021-01-20T17:27:26.599356
2017-10-01T20:44:36
2017-10-01T20:44:36
90,874,102
0
0
null
null
null
null
UTF-8
Java
false
false
244
java
package com.database.elements; import java.lang.annotation.*; /** * Miłosz Ziernik 2014/06/20 */ @Target(value = {ElementType.TYPE}) @Retention(value = RetentionPolicy.RUNTIME) public @interface JdbcDriver { public String value(); }
[ "mziernik@gmail.com" ]
mziernik@gmail.com
f6d54ca33e9f9ab9f872b3f24eee4f2c44f1bd30
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/32/32_b9871652502c1bb8b197f7a303ab8a4866c2cc7b/TestFrontendUsage/32_b9871652502c1bb8b197f7a303ab8a4866c2cc7b_TestFrontendUsage_s.java
bd4d1ed38da4598500fb8fd6db0436a130e3a85d
[]
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
6,658
java
package com.jakeapp.core.services; import java.io.File; import java.util.HashMap; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import com.jakeapp.TestingConstants; import com.jakeapp.core.domain.Project; import com.jakeapp.core.domain.ProtocolType; import com.jakeapp.core.domain.ServiceCredentials; import com.jakeapp.jake.ics.impl.xmpp.XmppUserId; import com.jakeapp.jake.test.FSTestCommons; import com.jakeapp.jake.test.TmpdirEnabledTestCase; public class TestFrontendUsage extends TmpdirEnabledTestCase { private IFrontendService frontend; private String sessionId; private IProjectsManagingService pms; private static final String id = "testuser1@my.provider"; private static final String password = "mypasswd"; @Override @Before public void setup() throws Exception { super.setup(); FSTestCommons.recursiveDelete(new File(".jake")); ApplicationContext applicationContext = new ClassPathXmlApplicationContext( new String[] { "/com/jakeapp/core/applicationContext.xml" }); frontend = (IFrontendService) applicationContext.getBean("frontendService"); sessionId = frontend.authenticate(new HashMap<String, String>(), null); pms = frontend.getProjectsManagingService(sessionId); } @Test public void testCreateProject() throws Exception { ServiceCredentials cred = new ServiceCredentials(id, password, ProtocolType.XMPP); MsgService msg = frontend.addAccount(sessionId, cred); Project project = pms.createProject(tmpdir.getName(), tmpdir.getAbsolutePath(), msg); Assert.assertNotNull(project.getMessageService()); Assert.assertNotNull(project.getUserId()); Assert.assertEquals(1, pms.getProjectUsers(project).size()); Assert.assertEquals(project.getUserId().getUserId(), pms.getProjectUsers(project) .get(0).getUserId()); Assert.assertEquals(msg.getUserId(), project.getUserId()); } /* * should not work any more (and should throw a IllegalArgumentException), * since creating a project must always include setting a correct * MsgService. */ @Test(timeout = TestingConstants.UNITTESTTIME, expected = IllegalArgumentException.class) public void testCreateAndAssignAfterwards() throws Exception { Project project = pms.createProject(tmpdir.getName(), tmpdir.getAbsolutePath(), null); Assert.assertNull(project.getMessageService()); ServiceCredentials cred = new ServiceCredentials(id, password, ProtocolType.XMPP); MsgService msg = frontend.addAccount(sessionId, cred); project.setMessageService(msg); Assert.assertNotNull(project.getMessageService()); Assert.assertNotNull(project.getUserId()); Assert.assertEquals(1, pms.getProjectUsers(project).size()); Assert.assertEquals(project.getUserId().getUserId(), pms.getProjectUsers(project) .get(0).getUserId()); Assert.assertEquals(msg.getUserId(), project.getUserId()); } @Test public void testCreateProjectWorkaround() throws Exception { ServiceCredentials cred = new ServiceCredentials(id, password, ProtocolType.XMPP); MsgService msg = frontend.addAccount(sessionId, cred); Project project = pms.createProject(tmpdir.getName(), tmpdir.getAbsolutePath(), msg); Assert.assertNotNull(project.getMessageService()); Assert.assertNotNull(project.getUserId()); Assert.assertEquals(1, pms.getProjectUsers(project).size()); Assert.assertEquals(project.getUserId().getUserId(), pms.getProjectUsers(project) .get(0).getUserId()); Assert.assertEquals(msg.getUserId(), project.getUserId()); } @Test public void testProjectRoundtrip() throws Exception { ServiceCredentials cred = new ServiceCredentials(id, password, ProtocolType.XMPP); MsgService msg = frontend.addAccount(sessionId, cred); int projectCount; Assert.assertNotNull(msg); Assert.assertEquals(cred, msg.getServiceCredentials()); projectCount = pms.getProjectList().size(); Project project = pms.createProject(tmpdir.getName(), tmpdir.getAbsolutePath(), msg); Assert.assertNotNull(project.getMessageService()); Assert.assertNotNull(project.getUserId()); Assert.assertEquals(1, pms.getProjectUsers(project).size()); Assert.assertEquals(project.getUserId().getUserId(), pms.getProjectUsers(project) .get(0).getUserId()); Assert.assertEquals(msg.getUserId(), project.getUserId()); Assert.assertEquals(projectCount + 1, pms.getProjectList().size()); // Assert.assertEquals(project, pms.openProject(project)); Assert.assertTrue(pms.getProjectList().contains(project)); pms.closeProject(project); Assert.assertFalse(pms.getProjectList().contains(project)); Assert.assertEquals(project, pms.openProject(project)); Assert.assertTrue(pms.getProjectList().contains(project)); Assert.assertTrue(pms.deleteProject(project, true)); Assert.assertFalse(pms.getProjectList().contains(project)); } @Test public void testIncomingInviteMessage() throws Exception { ServiceCredentials cred = new ServiceCredentials(id, password, ProtocolType.XMPP); MsgService msg = frontend.addAccount(sessionId, cred); ProjectInvitationHandler pih = new ProjectInvitationHandler(msg); pih.setInvitationListener((IProjectInvitationListener) pms); pih.receivedMessage(new XmppUserId( "testuser1@localhost/8a488840-cbdc-43d2-9c52-3bca07bcead2"), "<invite/>8a488840-cbdc-43d2-9c52-3bca07bcead2testproject1"); } @Test public void testIncomingAcceptMessage() throws Exception { ServiceCredentials cred = new ServiceCredentials(id, password, ProtocolType.XMPP); MsgService msg = frontend.addAccount(sessionId, cred); ProjectInvitationHandler pih = new ProjectInvitationHandler(msg); pih.setInvitationListener((IProjectInvitationListener) pms); pih.receivedMessage(new XmppUserId( "testuser1@localhost/8a488840-cbdc-43d2-9c52-3bca07bcead2"), "<accept/>8a488840-cbdc-43d2-9c52-3bca07bcead2testproject1"); } @Test public void testIncomingRejectMessage() throws Exception { ServiceCredentials cred = new ServiceCredentials(id, password, ProtocolType.XMPP); MsgService msg = frontend.addAccount(sessionId, cred); ProjectInvitationHandler pih = new ProjectInvitationHandler(msg); pih.setInvitationListener((IProjectInvitationListener) pms); pih.receivedMessage(new XmppUserId( "testuser1@localhost/8a488840-cbdc-43d2-9c52-3bca07bcead2"), "<reject/>8a488840-cbdc-43d2-9c52-3bca07bcead2testproject1"); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
de093152468e945189710866bdd297a1c73b47c4
5bd0ea54c3c1b6b79d33bbe92e1a6fc034a0f985
/projects/stage-1/middleware-frameworks/my-configuration/src/main/java/org/geektimes/configuration/microprofile/config/source/ConfigSources.java
2ba86b13d4defd0989aacf7d5081310cd985bc54
[ "Apache-2.0" ]
permissive
Zacharyye/geekbang-lessons
8a0bafa3043462a7d6cf724c9aa1e46a5855bb54
26b9c946c8fc3b0c0120d85cabc77d9b2c100ac6
refs/heads/master
2023-07-04T23:30:41.787829
2021-07-19T08:12:52
2021-07-19T08:12:52
378,118,305
0
0
Apache-2.0
2021-08-25T03:41:49
2021-06-18T10:42:14
Java
UTF-8
Java
false
false
2,782
java
package org.geektimes.configuration.microprofile.config.source; import org.eclipse.microprofile.config.spi.ConfigSource; import java.util.Arrays; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import static java.util.Collections.sort; import static java.util.ServiceLoader.load; import static java.util.stream.Stream.of; public class ConfigSources implements Iterable<ConfigSource> { private boolean addedDefaultConfigSources; private boolean addedDiscoveredConfigSources; private List<ConfigSource> configSources = new LinkedList<>(); private ClassLoader classLoader; public ConfigSources(ClassLoader classLoader) { this.classLoader = classLoader; } public void setClassLoader(ClassLoader classLoader) { this.classLoader = classLoader; } public void addDefaultSources() { if (addedDefaultConfigSources) { return; } addConfigSources(JavaSystemPropertiesConfigSource.class, OperationSystemEnvironmentVariablesConfigSource.class, DefaultResourceConfigSources.class ); addedDefaultConfigSources = true; } public void addDiscoveredSources() { if (addedDiscoveredConfigSources) { return; } addConfigSources(load(ConfigSource.class, classLoader)); addedDiscoveredConfigSources = true; } public void addConfigSources(Class<? extends ConfigSource>... configSourceClasses) { addConfigSources( of(configSourceClasses) .map(this::newInstance) .toArray(ConfigSource[]::new) ); } public void addConfigSources(ConfigSource... configSources) { addConfigSources(Arrays.asList(configSources)); } public void addConfigSources(Iterable<ConfigSource> configSources) { configSources.forEach(this.configSources::add); sort(this.configSources, ConfigSourceOrdinalComparator.INSTANCE); } private ConfigSource newInstance(Class<? extends ConfigSource> configSourceClass) { ConfigSource instance = null; try { instance = configSourceClass.newInstance(); } catch (InstantiationException | IllegalAccessException e) { throw new IllegalStateException(e); } return instance; } @Override public Iterator<ConfigSource> iterator() { return configSources.iterator(); } public boolean isAddedDefaultConfigSources() { return addedDefaultConfigSources; } public boolean isAddedDiscoveredConfigSources() { return addedDiscoveredConfigSources; } public ClassLoader getClassLoader() { return classLoader; } }
[ "mercyblitz@gmail.com" ]
mercyblitz@gmail.com
952b6321b2517cb66e39904a7d6930cae435f1e7
32fa3294ed1b2180f8b3142b02149761e2c073b8
/ui/src/main/java/top/andnux/ui/wrap/WrapGridView.java
9182b8d54749c291cec826171bbb355abd942d45
[]
no_license
andnux/sdk
31ac71bda40019bed6b49a10ff15f26c14779155
020aff49eafcc93a39a733930c383655ac8b2916
refs/heads/master
2020-07-14T02:20:18.927122
2020-05-07T01:46:28
2020-05-07T01:46:28
205,211,265
0
0
null
null
null
null
UTF-8
Java
false
false
750
java
package top.andnux.ui.wrap; import android.content.Context; import android.util.AttributeSet; import android.widget.GridView; public class WrapGridView extends GridView { public WrapGridView(Context context) { super(context); } public WrapGridView(Context context, AttributeSet attrs) { super(context, attrs); } public WrapGridView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int expandSpec = MeasureSpec.makeMeasureSpec( Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); } }
[ "1018827187@qq.com" ]
1018827187@qq.com
0e27ec316df76c2d4e42e5c293fe08aa8d30a735
e2d1ad7bfd684f4d49469130e166efd6f47b59af
/design_pattern/src/main/java/com/study/book/state/example3/NormalVoteState.java
13094586df2ffc42ce81ce85504cc3a1c1851ce1
[]
no_license
snowbuffer/jdk-java-basic
8545aef243c2d0a2749ea888dbe92bec9b49751c
2414167f93569d878b2d802b9c70af906b605c7a
refs/heads/master
2022-12-22T22:10:11.575240
2021-07-06T06:13:38
2021-07-06T06:13:38
172,832,856
0
1
null
2022-12-16T04:40:12
2019-02-27T03:04:57
Java
GB18030
Java
false
false
343
java
package com.study.book.state.example3; public class NormalVoteState implements VoteState { public void vote(String user, String voteItem, VoteManager voteManager) { //正常投票 //记录到投票记录中 voteManager.getMapVote().put(user, voteItem); System.out.println("恭喜你投票成功"); } }
[ "timmydargon@sina.com" ]
timmydargon@sina.com
be0c2515d5c72204647d6be977a163a8f2056a19
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project38/src/main/java/org/gradle/test/performance38_1/Production38_42.java
ff84ad269d8ff4c0d8a6367c3a645171171b1e30
[]
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
302
java
package org.gradle.test.performance38_1; public class Production38_42 extends org.gradle.test.performance13_1.Production13_42 { private final String property; public Production38_42() { this.property = "foo"; } public String getProperty() { return property; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
0e050e981b469a2be2b16efbbd456d4635afa2fb
96342d1091241ac93d2d59366b873c8fedce8137
/java/com/l2jolivia/gameserver/network/clientpackets/commission/RequestCommissionRegister.java
a67efd1cc7d1c6c2e40ff0e70e52dc05f76e10db
[]
no_license
soultobe/L2JOlivia_EpicEdition
c97ac7d232e429fa6f91d21bb9360cf347c7ee33
6f9b3de9f63d70fa2e281b49d139738e02d97cd6
refs/heads/master
2021-01-10T03:42:04.091432
2016-03-09T06:55:59
2016-03-09T06:55:59
53,468,281
0
1
null
null
null
null
UTF-8
Java
false
false
2,288
java
/* * This file is part of the L2J Olivia project. * * 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 com.l2jolivia.gameserver.network.clientpackets.commission; import com.l2jolivia.gameserver.instancemanager.CommissionManager; import com.l2jolivia.gameserver.model.actor.instance.L2PcInstance; import com.l2jolivia.gameserver.network.clientpackets.L2GameClientPacket; import com.l2jolivia.gameserver.network.serverpackets.commission.ExCloseCommission; /** * @author NosBit */ public class RequestCommissionRegister extends L2GameClientPacket { private int _itemObjectId; private long _pricePerUnit; private long _itemCount; private int _durationType; // -1 = None, 0 = 1 Day, 1 = 3 Days, 2 = 5 Days, 3 = 7 Days @Override protected void readImpl() { _itemObjectId = readD(); readS(); // Item Name they use it for search we will use server side available names. _pricePerUnit = readQ(); _itemCount = readQ(); _durationType = readD(); // readD(); // Unknown // readD(); // Unknown } @Override protected void runImpl() { final L2PcInstance player = getActiveChar(); if (player == null) { return; } if ((_durationType < 0) || (_durationType > 3)) { _log.warning("Player " + player + " sent incorrect commission duration type: " + _durationType + "."); return; } if (!CommissionManager.isPlayerAllowedToInteract(player)) { player.sendPacket(ExCloseCommission.STATIC_PACKET); return; } CommissionManager.getInstance().registerItem(player, _itemObjectId, _itemCount, _pricePerUnit, (byte) ((_durationType * 2) + 1)); } @Override public String getType() { return getClass().getSimpleName(); } }
[ "kim@tsnet-j.co.jp" ]
kim@tsnet-j.co.jp
9c5eee1d7443ac36cdab019a71a4938b00754d96
40665051fadf3fb75e5a8f655362126c1a2a3af6
/Adyen-adyen-java-api-library/8f1196cd2362598109092530a6c51cf41ec1861c/201/CharacterHeightEnumeration.java
d484c7020af5abbbd05ef35d15f787c61c6b47e1
[]
no_license
fermadeiral/StyleErrors
6f44379207e8490ba618365c54bdfef554fc4fde
d1a6149d9526eb757cf053bc971dbd92b2bfcdf1
refs/heads/master
2020-07-15T12:55:10.564494
2019-10-24T02:30:45
2019-10-24T02:30:45
205,546,543
2
0
null
null
null
null
UTF-8
Java
false
false
1,403
java
package com.adyen.model.nexo; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for CharacterHeightEnumeration. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name="CharacterHeightEnumeration"> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;enumeration value="SingleHeight"/> * &lt;enumeration value="DoubleHeight"/> * &lt;enumeration value="HalfHeight"/> * &lt;/restriction> * &lt;/simpleType> * </pre> * */ @XmlType(name = "CharacterHeightEnumeration") @XmlEnum public enum CharacterHeightEnumeration { @XmlEnumValue("SingleHeight") SINGLE_HEIGHT("SingleHeight"), @XmlEnumValue("DoubleHeight") DOUBLE_HEIGHT("DoubleHeight"), @XmlEnumValue("HalfHeight") HALF_HEIGHT("HalfHeight"); private final String value; CharacterHeightEnumeration(String v) { value = v; } public String value() { return value; } public static CharacterHeightEnumeration fromValue(String v) { for (CharacterHeightEnumeration c: CharacterHeightEnumeration.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } }
[ "fer.madeiral@gmail.com" ]
fer.madeiral@gmail.com
bbadae5bd084b0c8e365c322e260a381375005a1
c14dd8eb767636ad9430705547753d07eb43afdc
/src/main/java/com/lee/springbootdemo/service/PcCponaRegulationService.java
65955d48c002e0799f11a2f30678ad861f3fd28d
[]
no_license
lideqiang01/springboot-demo
badf20b148fbcb3889fc2228312d1ad9695dd14f
ec7ef1dc04fd54336dd8a949a89b2f64ce7c990f
refs/heads/master
2022-06-25T10:40:09.203223
2019-09-21T01:16:27
2019-09-21T01:16:27
209,905,677
0
0
null
2022-06-21T01:54:34
2019-09-21T01:13:04
Java
UTF-8
Java
false
false
340
java
package com.lee.springbootdemo.service; import com.lee.springbootdemo.entity.PcCponaRegulation; import com.baomidou.mybatisplus.extension.service.IService; /** * <p> * v2_工作制度规定 服务类 * </p> * * @author admin * @since 2019-09-20 */ public interface PcCponaRegulationService extends IService<PcCponaRegulation> { }
[ "lideqiang0909@163.com" ]
lideqiang0909@163.com