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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83add204b510e279a40f5409eaf0913c053ead51
|
961c06322d59ceca73ddfb973b8fdd398198f832
|
/main/src/com/eventmanage/rsvp/helpers/RsvpExcelExport.java
|
12ed8b7eeb8c37de491502fe52407e86a2216387
|
[] |
no_license
|
saikumar427/main
|
dc46ad33a9853847c41b9b682b74674bb10b54c6
|
f3a8ad3c5231c0c996335419c79b56711923af62
|
refs/heads/master
| 2021-01-20T20:47:41.773117
| 2016-05-23T12:31:01
| 2016-05-23T12:31:01
| 62,788,269
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,867
|
java
|
package com.eventmanage.rsvp.helpers;
import java.util.ArrayList;
import java.util.HashMap;
import com.event.helpers.I18n;
import com.eventbee.general.helpers.ReportGenerator;
public class RsvpExcelExport {
public static String exportToExcel(ArrayList<HashMap<String, String>> mapList,ArrayList fieldNames, String type,String exporttype,
HashMap<String, String> customAttribsMap,HashMap<String,String> rsvpReportsColumnMap,HashMap<String,String> rsvpEbeeI18nMapping){
System.out.println("In RsvpExeclExport exportToExcel method:: exporttype: "+exporttype+" type::"+type);
ReportGenerator report=ReportGenerator.getReportGenerator(exporttype);
StringBuffer content= new StringBuffer();
ArrayList<String> dbFieldNames = new ArrayList<String>();
report.startContent(content,"");
int cols=fieldNames.size();
report.startTable(content,null,cols+"");
if (mapList!=null&&mapList.size()>0){
report.startRow(content,null);
for(int colindex=0;colindex<fieldNames.size();colindex++){
String fieldNm = (String)fieldNames.get(colindex);
if(fieldNm!=null && fieldNm.contains("\n"))
fieldNm = fieldNm.replaceAll("\n", " ");
if(rsvpReportsColumnMap.containsKey(fieldNm))
fieldNm=I18n.getString(rsvpReportsColumnMap.get(fieldNm));
else if(customAttribsMap.containsKey(fieldNm))
fieldNm=customAttribsMap.get(fieldNm);
if(exporttype.equals("csv") && fieldNm.contains(","))
report.fillColumn(content,"","\""+fieldNm+"\"");
else
report.fillColumn(content,"",fieldNm);
}
report.endRow(content);
HashMap colContent=new HashMap();
for(int i=0;i<mapList.size();i++){
HashMap hashmap=mapList.get(i);
for(int k=0; k<fieldNames.size();k++){
String fieldNm = (String)fieldNames.get(k);
String fieldValue = (String)hashmap.get(fieldNm);
if(fieldValue!=null && fieldValue.contains("\n"))
fieldValue = fieldValue.replaceAll("\n", ", ");
if(fieldValue!=null && exporttype.equals("csv") && fieldValue.contains(","))
fieldValue="\""+fieldValue+"\"";
if(rsvpEbeeI18nMapping.containsKey(fieldValue))
fieldValue=I18n.getString(rsvpEbeeI18nMapping.get(fieldValue));
colContent.put(fieldNm,fieldValue);
}
report.startRow(content,null);
for(int colindex=0;colindex<fieldNames.size();colindex++)
report.fillColumn(content,"",(String)colContent.get(fieldNames.get(colindex)));
report.endRow(content);
}
}else{
report.startRow(content,null);
report.fillColumn(content,null,I18n.getString("rep.excel.no.records.lbl"));
report.endRow(content);
}
report.endTable(content);
report.endContent(content);
return content.toString();
}
}
|
[
"omshankar@eventbee.com"
] |
omshankar@eventbee.com
|
cfd110d00ebc69d0a9282cc31cec58c1bb2e26b8
|
308297e6347afc16baa6aec4bb2b7294d8a5b4b7
|
/java/com/dbzwcg/types/effects/TargetEffectType.java
|
6306c65abf7d55e5b7474159cac64a7c921d252c
|
[] |
no_license
|
csiqueirasilva/dbzccg
|
2ad545c463e7d2437d209e68ae1bf44d6a562458
|
d28bd968a3133ba5afb182bc434f0c866594aa6b
|
refs/heads/master
| 2020-12-24T16:07:53.452040
| 2014-10-13T10:15:58
| 2014-10-13T10:15:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 570
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.dbzwcg.types.effects;
/**
*
* @author csiqueira
*/
public enum TargetEffectType {
SELF(0x800001),
ENEMY(0x800002),
MULTIPLE(0x800003),
SINGLE(0x800004);
private int value;
private TargetEffectType(int value) {
this.value = value;
}
public int getValue() {
return this.value;
}
public static String jsVar = "DBZCCG.Combat.Effect.Target";
public static String dbPrefix = "TARGET_";
}
|
[
"csiqueirasilva@gmail.com"
] |
csiqueirasilva@gmail.com
|
ad10c2a9b095689b1aba6a62e35e8c540ef84d87
|
9c9b9924f7d3846e60426427fd137c21220fe7bb
|
/src/test/resources/java_programs/TOPOLOGICAL_ORDERING_TEST.java
|
5559016bdaf99bb74eb07fb2a73123b920371127
|
[] |
no_license
|
SophieHYe/qb_test_generator
|
4b3afe4cd9a568cfa2b39a58898823a298983a96
|
41b62b4db30f036a6ba79231151818ffa0b65e5a
|
refs/heads/master
| 2021-04-29T12:56:39.872588
| 2018-02-16T08:17:18
| 2018-02-16T08:17:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,760
|
java
|
package java_programs;
import java.util.*;
/**
* Driver for testing TOPOLOGICAL_ORDERING class
*/
public class TOPOLOGICAL_ORDERING_TEST {
public static void main(String[] args) throws Exception {
// Case 1: Wikipedia graph
// Expected Output: 5 7 3 11 8 10 2 9
Node five = new Node("5");
Node seven = new Node("7");
Node three = new Node("3");
Node eleven = new Node("11");
Node eight = new Node("8");
Node two = new Node("2");
Node nine = new Node("9");
Node ten = new Node("10");
five.setSuccessors(new ArrayList<Node>(Arrays.asList(eleven)));
seven.setSuccessors(new ArrayList<Node>(Arrays.asList(eleven, eight)));
three.setSuccessors(new ArrayList<Node>(Arrays.asList(eight, ten)));
eleven.setPredecessors(new ArrayList<Node>(Arrays.asList(five, seven)));
eleven.setSuccessors(new ArrayList<Node>(Arrays.asList(two, nine, ten)));
eight.setPredecessors(new ArrayList<Node>(Arrays.asList(seven, three)));
eight.setSuccessors(new ArrayList<Node>(Arrays.asList(nine)));
two.setPredecessors(new ArrayList<Node>(Arrays.asList(eleven)));
nine.setPredecessors(new ArrayList<Node>(Arrays.asList(eleven, eight)));
ten.setPredecessors(new ArrayList<Node>(Arrays.asList(eleven, three)));
TOPOLOGICAL_ORDERING to = new TOPOLOGICAL_ORDERING();
ArrayList<Node> output = to.topological_ordering(new ArrayList<Node>(Arrays.asList(five, seven, three, eleven, eight, two, nine, ten)));
ArrayList<String> string_output = new ArrayList<String>();
for (Node node : output) {
string_output.add(node.getValue());
}
System.out.println(string_output);
// Case 2: GeekforGeeks example
// Output: 4 5 0 2 3 1
five = new Node("5");
Node zero = new Node("0");
Node four = new Node("4");
Node one = new Node("1");
two = new Node("2");
three = new Node("3");
five.setSuccessors(new ArrayList<Node>(Arrays.asList(two, zero)));
four.setSuccessors(new ArrayList<Node>(Arrays.asList(zero, one)));
two.setPredecessors(new ArrayList<Node>(Arrays.asList(five)));
two.setSuccessors(new ArrayList<Node>(Arrays.asList(three)));
zero.setPredecessors(new ArrayList<Node>(Arrays.asList(five, four)));
one.setPredecessors(new ArrayList<Node>(Arrays.asList(four, three)));
three.setPredecessors(new ArrayList<Node>(Arrays.asList(two)));
three.setSuccessors(new ArrayList<Node>(Arrays.asList(one)));
to = new TOPOLOGICAL_ORDERING();
output = to.topological_ordering(new ArrayList<Node>(Arrays.asList(zero, one, two, three, four, five)));
string_output = new ArrayList<String>();
for (Node node : output) {
string_output.add(node.getValue());
}
System.out.println(string_output);
// Case 3: Cooking with InteractivePython
// Output:
Node milk = new Node("3/4 cup milk");
Node egg = new Node("1 egg");
Node oil = new Node("1 Tbl oil");
Node mix = new Node ("1 cup mix");
Node syrup = new Node("heat syrup");
Node griddle = new Node("heat griddle");
Node pour = new Node("pour 1/4 cup");
Node turn = new Node("turn when bubbly");
Node eat = new Node("eat");
milk.setSuccessors(new ArrayList<Node>(Arrays.asList(mix)));
egg.setSuccessors(new ArrayList<Node>(Arrays.asList(mix)));
oil.setSuccessors(new ArrayList<Node>(Arrays.asList(mix)));
mix.setPredecessors(new ArrayList<Node>(Arrays.asList(milk, egg, oil)));
mix.setSuccessors(new ArrayList<Node>(Arrays.asList(syrup, pour)));
griddle.setSuccessors(new ArrayList<Node>(Arrays.asList(pour)));
pour.setPredecessors(new ArrayList<Node>(Arrays.asList(mix, griddle)));
pour.setSuccessors(new ArrayList<Node>(Arrays.asList(turn)));
turn.setPredecessors(new ArrayList<Node>(Arrays.asList(pour)));
turn.setSuccessors(new ArrayList<Node>(Arrays.asList(eat)));
syrup.setPredecessors(new ArrayList<Node>(Arrays.asList(mix)));
syrup.setSuccessors(new ArrayList<Node>(Arrays.asList(eat)));
eat.setPredecessors(new ArrayList<Node>(Arrays.asList(syrup, turn)));
to = new TOPOLOGICAL_ORDERING();
output = to.topological_ordering(new ArrayList<Node>(Arrays.asList(milk, egg, oil, mix, syrup, griddle, pour, turn, eat)));
string_output = new ArrayList<String>();
for (Node node : output) {
string_output.add(node.getValue());
}
System.out.println(string_output);
}
}
|
[
"matias.sebastian.martinez@gmail.com"
] |
matias.sebastian.martinez@gmail.com
|
9c85f0835c392804ad028c0b20dd494f8ac8efd7
|
3e355a798304584431e5e5a1f1bc141e16c330fc
|
/AL-Game/src/com/aionemu/gameserver/questEngine/handlers/models/FountainRewardsData.java
|
80501d9e780a59594dff7bfe36663f871a4e4944
|
[] |
no_license
|
webdes27/Aion-Lightning-4.6-SRC
|
db0b2b547addc368b7d5e3af6c95051be1df8d69
|
8899ce60aae266b849a19c3f93f47be9485c70ab
|
refs/heads/master
| 2021-09-14T19:16:29.368197
| 2018-02-27T16:05:28
| 2018-02-27T16:05:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,595
|
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.questEngine.handlers.models;
import com.aionemu.gameserver.questEngine.QuestEngine;
import com.aionemu.gameserver.questEngine.handlers.template.FountainRewards;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import java.util.List;
/**
* @author Bobobear
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FountainRewardsData")
public class FountainRewardsData extends XMLQuest {
@XmlAttribute(name = "start_npc_ids", required = true)
protected List<Integer> startNpcIds;
@Override
public void register(QuestEngine questEngine) {
FountainRewards template = new FountainRewards(id, startNpcIds);
questEngine.addQuestHandler(template);
}
}
|
[
"michelgorter@outlook.com"
] |
michelgorter@outlook.com
|
1ed350e553d621f8454f6abcfe6edb63d17a5555
|
ac94ac4e2dca6cbb698043cef6759e328c2fe620
|
/labs/joyent-cloudapi/src/test/java/org/jclouds/joyent/cloudapi/v6_5/features/DatasetApiExpectTest.java
|
af5dac9cd70eff863db40759eef0fc143897c641
|
[
"Apache-2.0"
] |
permissive
|
andreisavu/jclouds
|
25c528426c8144d330b07f4b646aa3b47d0b3d17
|
34d9d05eca1ed9ea86a6977c132665d092835364
|
refs/heads/master
| 2021-01-21T00:04:41.914525
| 2012-11-13T18:11:04
| 2012-11-13T18:11:04
| 2,503,585
| 2
| 0
| null | 2012-10-16T21:03:12
| 2011-10-03T09:11:27
|
Java
|
UTF-8
|
Java
| false
| false
| 2,768
|
java
|
/**
* Licensed to jclouds, Inc. (jclouds) under one or more
* contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. jclouds 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
*
* Unles 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 expres or implied. See the License for the
* specific language governing permisions and limitations
* under the License.
*/
package org.jclouds.joyent.cloudapi.v6_5.features;
import static org.testng.Assert.assertEquals;
import org.jclouds.http.HttpRequest;
import org.jclouds.http.HttpResponse;
import org.jclouds.joyent.cloudapi.v6_5.JoyentCloudApi;
import org.jclouds.joyent.cloudapi.v6_5.internal.BaseJoyentCloudApiExpectTest;
import org.jclouds.joyent.cloudapi.v6_5.parse.ParseDatasetListTest;
import org.testng.annotations.Test;
import com.google.common.collect.ImmutableSet;
/**
* @author Gerald Pereira
*/
@Test(groups = "unit", testName = "DatasetApiExpectTest")
public class DatasetApiExpectTest extends BaseJoyentCloudApiExpectTest {
public HttpRequest list = HttpRequest.builder().method("GET")
.endpoint("https://us-sw-1.api.joyentcloud.com/my/datasets")
.addHeader("X-Api-Version", "~6.5")
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Basic aWRlbnRpdHk6Y3JlZGVudGlhbA==").build();
public HttpResponse listResponse = HttpResponse.builder().statusCode(200)
.payload(payloadFromResource("/dataset_list.json")).build();
public void testListDatasetsWhenResponseIs2xx() {
JoyentCloudApi apiWhenDatasetsExists = requestsSendResponses(getDatacenters, getDatacentersResponse, list, listResponse);
assertEquals(apiWhenDatasetsExists.getDatasetApiForDatacenter("us-sw-1").list().toString(), new ParseDatasetListTest()
.expected().toString());
}
public void testListDatasetsWhenResponseIs404() {
HttpResponse listResponse = HttpResponse.builder().statusCode(404).build();
JoyentCloudApi listWhenNone = requestsSendResponses(getDatacenters, getDatacentersResponse, list, listResponse);
assertEquals(listWhenNone.getDatasetApiForDatacenter("us-sw-1").list(), ImmutableSet.of());
}
}
|
[
"adrian@jclouds.org"
] |
adrian@jclouds.org
|
11ad0a522725cea68f6c297303311a07efedb72a
|
0f35cd99303b8789f94cc767eba2c59feffd5b80
|
/basic/src/day04/IfNestedExample.java
|
194083d0e842d45f8e69696655d2870a0d9f5ffe
|
[] |
no_license
|
seungzz/java2020
|
6f8bae23fa3903e6df3aceaeb042ad31f0b5cc08
|
eb85d4ba04d69da267574e443a93cdcd59896527
|
refs/heads/master
| 2023-01-20T13:48:34.427394
| 2020-10-29T03:04:00
| 2020-10-29T03:04:00
| 297,261,422
| 0
| 0
| null | null | null | null |
WINDOWS-1252
|
Java
| false
| false
| 446
|
java
|
package day04;
public class IfNestedExample {
public static void main(String[] args) {
int score = (int)(Math.random()*20)+81;
System.out.println("Á¡¼ö :" +score);
String grade;
if(score>=90) {
if(score>=95) {
grade = "A+";
}else {
grade = "A";
}
}else {
if(score>=85) {
grade = "B+";
}else {
grade = "b";
}
}
System.out.println(grade);
}
}
|
[
"KW505@505-07"
] |
KW505@505-07
|
cc74c2a02e70f98b397bb044a3105ab31c985f20
|
06c7d1ab520e7d8b8997697c91e8ed25a319388e
|
/src/main/java/vproxy/selector/wrap/VirtualFD.java
|
e760b3e8d8117fd920707e9ec3c38cf69cc6351e
|
[
"MIT",
"LicenseRef-scancode-free-unknown"
] |
permissive
|
gmright2/vproxy
|
6cb72cf900eeeb23cbe8daf8564a08ccf8c89ec1
|
241915efe1ac79deba9982df18083690e7cba5d6
|
refs/heads/dev
| 2023-04-13T00:10:12.542313
| 2020-03-29T17:02:17
| 2020-03-29T17:02:17
| 252,554,464
| 0
| 0
|
MIT
| 2023-04-03T23:40:38
| 2020-04-02T20:03:21
| null |
UTF-8
|
Java
| false
| false
| 134
|
java
|
package vproxy.selector.wrap;
import vfd.FD;
public interface VirtualFD extends FD {
void onRegister();
void onRemove();
}
|
[
"wkgcass@hotmail.com"
] |
wkgcass@hotmail.com
|
4db84a0d6b0aac12683c17ea2c713bc6c2ea3c62
|
e2f1b18cd6ca38adc2e286354e01cbe4d4423fd9
|
/src/com/javarush/test/level12/lesson12/home05/Solution.java
|
fe36090b50578c9e7b3a7544b9c37796eed14944
|
[] |
no_license
|
Polurival/JRHW
|
092ab6d034d6e46dd99d57b67910ca4a7749f602
|
6f08a005d5b444f6ad00df80aa0eac645b662831
|
refs/heads/master
| 2020-04-10T10:12:38.467016
| 2016-05-09T11:47:33
| 2016-05-09T11:47:33
| 50,867,434
| 7
| 14
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,828
|
java
|
package com.javarush.test.level12.lesson12.home05;
/* Что это? «Кот», «Тигр», «Лев», «Бык», «Корова», «Животное»
Напиши метод, который определяет, какой объект передали в него.
Программа должна выводить на экран одну из надписей:
«Кот», «Тигр», «Лев», «Бык», «Корова», «Животное».
Замечание: постарайся определять тип животного как можно более точно.
*/
public class Solution
{
public static void main(String[] args)
{
System.out.println(getObjectType(new Cat()));
System.out.println(getObjectType(new Tiger()));
System.out.println(getObjectType(new Lion()));
System.out.println(getObjectType(new Bull()));
System.out.println(getObjectType(new Cow()));
System.out.println(getObjectType(new Animal()));
}
public static String getObjectType(Object o)
{
//напишите тут ваш код
if (o instanceof Cat) {
if (o instanceof Tiger) return "Тигр";
else if (o instanceof Lion) return "Лев";
else return "Кот";
}
else if (o instanceof Bull) return "Бык";
else if (o instanceof Cow) return "Корова";
else return "Животное";
}
public static class Cat extends Animal //<--Классы наследуются!!
{
}
public static class Tiger extends Cat
{
}
public static class Lion extends Cat
{
}
public static class Bull extends Animal
{
}
public static class Cow extends Animal
{
}
public static class Animal
{
}
}
|
[
"polurival@gmail.com"
] |
polurival@gmail.com
|
43cdcf275f5e210d70be724ad6b4e91be1cd9b29
|
10378c580b62125a184f74f595d2c37be90a5769
|
/com/google/common/collect/SortedSetMultimap.java
|
2c715442d34e74ab689d9896bb58f4e2b1cd5d25
|
[] |
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
| 578
|
java
|
package com.google.common.collect;
import com.google.common.annotations.GwtCompatible;
import java.util.Collection;
import java.util.Comparator;
import java.util.Map;
import java.util.SortedSet;
import javax.annotation.Nullable;
@GwtCompatible
public interface SortedSetMultimap<K, V> extends SetMultimap<K, V> {
SortedSet<V> get(@Nullable K paramK);
SortedSet<V> removeAll(@Nullable Object paramObject);
SortedSet<V> replaceValues(K paramK, Iterable<? extends V> paramIterable);
Map<K, Collection<V>> asMap();
Comparator<? super V> valueComparator();
}
|
[
"Hot-Tutorials@users.noreply.github.com"
] |
Hot-Tutorials@users.noreply.github.com
|
41dfc4568a15e3156508f3b08f1a3d587c13553e
|
0ac05e3da06d78292fdfb64141ead86ff6ca038f
|
/OSWE/oswe/openCRX/rtjar/rt.jar.src/com/sun/imageio/plugins/png/PNGImageWriteParam.java
|
d40b0564593746d86119dec0794288eaf6cd2829
|
[] |
no_license
|
qoo7972365/timmy
|
31581cdcbb8858ac19a8bb7b773441a68b6c390a
|
2fc8baba4f53d38dfe9c2b3afd89dcf87cbef578
|
refs/heads/master
| 2023-07-26T12:26:35.266587
| 2023-07-17T12:35:19
| 2023-07-17T12:35:19
| 353,889,195
| 7
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,476
|
java
|
/* */ package com.sun.imageio.plugins.png;
/* */
/* */ import java.util.Locale;
/* */ import javax.imageio.ImageWriteParam;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ class PNGImageWriteParam
/* */ extends ImageWriteParam
/* */ {
/* */ public PNGImageWriteParam(Locale paramLocale) {
/* 271 */ this.canWriteProgressive = true;
/* 272 */ this.locale = paramLocale;
/* */ }
/* */ }
/* Location: /Users/timmy/timmy/OSWE/oswe/openCRX/rt.jar!/com/sun/imageio/plugins/png/PNGImageWriteParam.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/
|
[
"t0984456716"
] |
t0984456716
|
ccd82b0e80983f0f357b0a5c58f4e4128619b1c9
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/9/9_92d51d700bed17c3898d8456cd513f95c62e473a/CameraObscuraPreferences/9_92d51d700bed17c3898d8456cd513f95c62e473a_CameraObscuraPreferences_t.java
|
be3d12ce05d3b218718acfdcf3dd67cee05cfe0f
|
[] |
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
| 4,338
|
java
|
package org.witness.sscphase1;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
public class CameraObscuraPreferences {
SharedPreferences sharedPreferences;
SharedPreferences.Editor editor;
// These need to match the values in arrays.xml
public static final int ORIGINALIMAGE_PREF_DELETE = 0;
public static final int ORIGINALIMAGE_PREF_LOCK = 1;
public static final int ORIGINALIMAGE_PREF_LEAVE = 2;
public static final int ORIGINALIMAGE_PREF_DEFAULT = ORIGINALIMAGE_PREF_LOCK;
// These need to match the values in arrays.xml
public static final int PANIC_BUTTON_PREF_WIPE = 0;
public static final int PANIC_BUTTON_PREF_LOCK = 1;
public static final int PANIC_BUTTON_PREF_DEFAULT = PANIC_BUTTON_PREF_LOCK;
public static final boolean SPLASH_SCREEN_PREF_DEFAULT = true;
public static final boolean AUTO_SIGN_PREF_DEFAULT = true;
public static final boolean AUTO_SUBMIT_PREF_DEFAULT = false;
public static final int RISK_0 = 0; // No Risk
public static final int RISK_1 = 1; // Medium Level Risk
public static final int RISK_2 = 2; // Extreme Risk
public CameraObscuraPreferences(Context context) {
sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);
editor = sharedPreferences.edit();
//setDefaults();
// Set Defaults if not set
// This is a bit hacky
/*
setSplashScreenPref(getSplashScreenPref());
setAutoSignPref(getAutoSignPref());
setAutoSubmitPref(getAutoSignPref());
setOriginalImagePref(getOriginalImagePref());
setPanicButtonPref(getPanicButtonPref());
*/
}
public String getRiskLevelLabel(int riskLevel) {
switch (riskLevel) {
case CameraObscuraPreferences.RISK_0:
// No Risk
return "No Risk";
case CameraObscuraPreferences.RISK_1:
// Medium Level Risk
return "Medium Risk";
case CameraObscuraPreferences.RISK_2:
// Extreme Risk
return "High Risk";
default:
return "No Risk";
}
}
public void setDefaults() {
editor.clear();
setRiskLevel(RISK_1);
}
public void setRiskLevel(int riskLevel) {
switch (riskLevel) {
case CameraObscuraPreferences.RISK_0:
// No Risk
setAutoSignPref(false);
setAutoSubmitPref(false);
setOriginalImagePref(ORIGINALIMAGE_PREF_LEAVE);
setPanicButtonPref(PANIC_BUTTON_PREF_LOCK);
break;
case CameraObscuraPreferences.RISK_1:
// Medium Level Risk
setAutoSignPref(true);
setAutoSubmitPref(false);
setOriginalImagePref(ORIGINALIMAGE_PREF_LOCK);
setPanicButtonPref(PANIC_BUTTON_PREF_LOCK);
break;
case CameraObscuraPreferences.RISK_2:
// Extreme Risk
setAutoSignPref(false);
setAutoSubmitPref(true);
setOriginalImagePref(ORIGINALIMAGE_PREF_DELETE);
setPanicButtonPref(PANIC_BUTTON_PREF_WIPE);
break;
}
}
public boolean getSplashScreenPref() {
return sharedPreferences.getBoolean("SplashScreenPref", SPLASH_SCREEN_PREF_DEFAULT);
}
public void setSplashScreenPref(boolean splashScreenPref) {
editor.putBoolean("SplashScreenPref", splashScreenPref);
editor.commit();
}
public boolean getAutoSignPref() {
return sharedPreferences.getBoolean("AutoSignPref", AUTO_SIGN_PREF_DEFAULT);
}
public void setAutoSignPref(boolean autoSignPref) {
editor.putBoolean("AutoSignPref", autoSignPref);
editor.commit();
}
public boolean getAutoSubmitPref() {
return sharedPreferences.getBoolean("AutoSubmitPref", AUTO_SUBMIT_PREF_DEFAULT);
}
public void setAutoSubmitPref(boolean autoSubmitPref) {
editor.putBoolean("AutoSubmitPref", autoSubmitPref);
editor.commit();
}
public int getOriginalImagePref() {
return Integer.valueOf(sharedPreferences.getString("OriginalImagePref", "" + ORIGINALIMAGE_PREF_DEFAULT));
}
public void setOriginalImagePref(int originalImagePref) {
editor.putString("OriginalImagePref", ""+originalImagePref);
editor.commit();
}
public int getPanicButtonPref() {
return Integer.valueOf(sharedPreferences.getString("PanicButtonPref","" + PANIC_BUTTON_PREF_DEFAULT));
}
public void setPanicButtonPref(int panicButtonPref) {
editor.putString("PanicButtonPref", ""+panicButtonPref);
editor.commit();
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
eb4ec08099daee6e6f21e8f75746a43f43255d01
|
43150251e4e80607b72367723a271e175c908848
|
/src/main/java/it/richkmeli/rms/web/v2/AccountController.java
|
86fbe779088c619f58fbce9f65f0099011ff5a78
|
[
"Apache-2.0"
] |
permissive
|
luoxz-ai/Richkware-Manager-Server
|
6cdacf864f2582f79805a3c2a29f3bf313244141
|
99504ff8dac1c2b7dadd239dce716a3d8ba071d9
|
refs/heads/master
| 2022-12-11T04:40:38.779938
| 2020-08-22T15:38:46
| 2020-08-22T15:38:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,602
|
java
|
package it.richkmeli.rms.web.v2;
import it.richkmeli.jframework.auth.data.exception.AuthDatabaseException;
import it.richkmeli.jframework.auth.web.account.LogInJob;
import it.richkmeli.jframework.auth.web.util.AuthServletManager;
import it.richkmeli.jframework.network.tcp.server.http.util.JServletException;
import it.richkmeli.jframework.util.log.Logger;
import it.richkmeli.rms.data.entity.rmc.model.Rmc;
import it.richkmeli.rms.data.entity.user.UserRepository;
import it.richkmeli.rms.web.v1.util.RMSServletManager;
import it.richkmeli.rms.web.v1.util.RMSSession;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
//@RestController TODO API v2
public class AccountController {
private final UserRepository userRepository;
//@Autowired
//private HttpServletRequest httpServletRequest;
//private HttpServletResponse httpServletResponse;
LogInJob logIn = new LogInJob() {
@Override
protected void doSpecificAction(AuthServletManager authServletManager) throws JServletException, AuthDatabaseException {
//RMSServletManager rmsServletManager = new RMSServletManager(request,response);
RMSServletManager rmsServletManager = new RMSServletManager(authServletManager);
RMSSession rmsSession = rmsServletManager.getRMSServerSession();
if (rmsSession != null) {
if (rmsSession.getChannel() != null) {
if (rmsSession.getChannel().equalsIgnoreCase(RMSServletManager.Channel.RMC)) {
Rmc rmc = new Rmc(rmsSession.getUserID(), rmsSession.getRmcID());
Logger.info("RMC: " + rmc.getAssociatedUser() + " - " + rmc.getRmcId());
if (!rmsSession.getRmcDatabaseManager().checkRmcUserPair(rmc)) {
if (rmsSession.getRmcDatabaseManager().checkRmcUserPair(new Rmc("", rmsSession.getRmcID()))) {
rmsSession.getRmcDatabaseManager().editRMC(rmc);
} else {
rmsSession.getRmcDatabaseManager().addRMC(rmc);
}
}
}
} else {
Logger.error("channel rmsSession is null");
}
} else {
Logger.error("rmsSession is null");
}
}
};
AccountController(UserRepository userRepository) {
this.userRepository = userRepository;
}
@GetMapping(path = "/LogIn2")
public void login() {
ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes)
RequestContextHolder.currentRequestAttributes();
HttpServletRequest httpServletRequest = servletRequestAttributes.getRequest();
HttpServletResponse httpServletResponse = servletRequestAttributes.getResponse();
RMSServletManager rmsServletManager = new RMSServletManager(httpServletRequest, httpServletResponse);
logIn.doAction(rmsServletManager);
}
// @GetMapping(path = "/LogIn")
// public Response login(HttpSession session, @RequestParam) {
// session.setAttribute(Constants.FOO, new Foo());
// //...
// Foo foo = (Foo) session.getAttribute(Constants.FOO);
// }
}
|
[
"richkmeli@gmail.com"
] |
richkmeli@gmail.com
|
f5509ff87ed6e3da3d8b059823e25ea249b8b448
|
3e446af3d3392d813bbe656938e21dc4301a5636
|
/core/src/main/java/io/github/mmm/cli/io/CliLogLevel.java
|
c96127a1608ddbcc3160e1c0c390063b5c793701
|
[
"Apache-2.0"
] |
permissive
|
m-m-m/cli
|
a601106c11390daac4a106a4bf58597e4fd98fc0
|
f0566e49c21ecaebd21e12394e2415f4e43c707c
|
refs/heads/master
| 2023-06-01T15:21:31.204464
| 2023-05-21T18:43:05
| 2023-05-21T18:43:05
| 221,976,654
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,572
|
java
|
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.cli.io;
import io.github.mmm.cli.io.impl.CliConsoleImpl;
/**
* {@link Enum} for the levels to log to a {@link CliConsoleImpl}.
*/
public enum CliLogLevel {
/** Debug information with details for developers and to get more details in case of problems or errors. */
DEBUG,
/** General information for end-users to get helpful feedback about what is going on. */
INFO,
/** Warning information if something is not as expected but does not prevent further processing. */
WARNING,
/** Error information if something went wrong and processing typically failed and has to be aborted. */
ERROR;
/**
* @param level the {@link CliLogLevel} to check (e.g. that is going to be logged).
* @return {@code true} if this {@link CliLogLevel} <em>includes</em> the given {@link CliLogLevel}, {@code false}
* otherwise. In other words this method checks if the {@link #ordinal() severity} of the given
* {@link CliLogLevel} is greater or equal to this {@link CliLogLevel}. So if this method is invoked on the
* {@link CliConsole#getLogLevel() current log-level} of the {@link CliConsole} with the
* {@link CliConsole#out(CliLogLevel) level to log} the result will indicate if the message should be logged
* (or in case of {@code false} be suppressed).
*/
public boolean includes(CliLogLevel level) {
return ordinal() <= level.ordinal();
}
}
|
[
"hohwille@users.sourceforge.net"
] |
hohwille@users.sourceforge.net
|
35d5765182c1622908e1806737299f62aa9ab68d
|
5efc9a74aa9c0cf0041c9cee889af026d61b84b2
|
/samples/modern-java/src/com/waylau/java/oop/dogdemo/Husky.java
|
c907a057aaeffc1cb2244f0db90eb174c070721c
|
[] |
no_license
|
waylau/modern-java-demos
|
f096c46ad79fe8f923265d1f06ac1f9b7b3c9965
|
f55563bca7cd8d0b36bbca9714ccebfb450abcee
|
refs/heads/master
| 2022-10-18T13:57:43.231936
| 2022-10-03T07:20:46
| 2022-10-03T07:20:46
| 163,201,354
| 118
| 25
| null | 2020-03-22T08:19:41
| 2018-12-26T17:11:01
| null |
UTF-8
|
Java
| false
| false
| 221
|
java
|
/**
* Welcome to https://waylau.com
*/
package com.waylau.java.oop.dogdemo;
/**
* Husky.
*
* @since 1.0.0 2019年4月1日
* @author <a href="https://waylau.com">Way Lau</a>
*/
class Husky extends Dog {
// ...
}
|
[
"waylau521@gmail.com"
] |
waylau521@gmail.com
|
6008f49dd26aa040326ebca386eef77452dfb9d4
|
68cb4d647309ac0892d5968a9a3d2156e5c1dabd
|
/day02_code/讲师代码/Operator_4_001.java
|
537ecc8f00fc17ed0ded95d4622a67f0de34019f
|
[] |
no_license
|
chaiguolong/JavaSE
|
651c4eb1179d05912cbc8d8a5d1930ca6ce9bad4
|
bb9629843ebafea221365b43c471ae3aa663b1c5
|
refs/heads/master
| 2021-07-25T09:46:34.190516
| 2018-07-30T08:17:49
| 2018-07-30T08:17:49
| 130,962,634
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,026
|
java
|
/*
* 逻辑运算符,对两个boolean类型数据之间进行计算
* 结果也是boolean类型
*
* & : 一边是false,运算结果就是false,见了false,就是false
* | : 一边是true,运算结果就是true,见了true,就是true
* ^ : 两边相同为false,不同为true
* ! : 取反 !true=false !false=true
* && : 短路与,一边是false,另一边不运行
* ||:短路或,一边是true,另一边不运行
*/
public class Operator_4_001{
public static void main(String[] args){
System.out.println(false & true);
System.out.println(true | true);
System.out.println(false ^ false);
System.out.println(true ^ true);
System.out.println(!true);
System.out.println("-------------------");
int i = 3;
int j = 4;
System.out.println(3>4 && ++j>2);
System.out.println(i);
System.out.println(j);
System.out.println(3==3 || ++j>2);
System.out.println(i);
System.out.println(j);
}
}
|
[
"584238433@qq.com"
] |
584238433@qq.com
|
c07e5eccd1514c75a2c552b6b6885ff3d247eb5d
|
1de7b15ab56d3f40e89e3f52ddc8330ee14839fd
|
/src/webservice/org/hpin/webservice/bean/jz/Contact.java
|
174515df9a8d3f04516b8c144b1d386f10f92cd1
|
[] |
no_license
|
dym3093/hlPipe
|
ba289b8685dbf8b2776acaf7e607feadb07fba48
|
a0eb1dcabdfc6660abcca96a878e04b70b8fa24b
|
refs/heads/master
| 2021-01-20T04:25:28.809340
| 2017-04-30T14:24:13
| 2017-04-30T14:24:13
| 89,689,691
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,503
|
java
|
/**
* @author DengYouming
* @since 2016-7-25 下午5:46:23
*/
package org.hpin.webservice.bean.jz;
import java.io.Serializable;
import java.util.Date;
/**
* 【金埻开放平台】联系人
* @author DengYouming
* @since 2016-7-25 下午5:46:23
*/
public class Contact implements Serializable{
private static final long serialVersionUID = -4006501547616261162L;
/** id */
private String id;
/** 联系人姓名 */
private String name;
/** 联系人性别 1-女性, 2 - 男性 */
private Integer gender;
/** 联系人电话 */
private String phone;
private Date createDate;
public static String F_ID = "id";
public static String F_NAME = "name";
public static String F_GENDER = "gender";
public static String F_PHONE = "phone";
public Contact() {
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getGender() {
return gender;
}
public void setGender(Integer gender) {
this.gender = gender;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
/* @Override
public String toString() {
return "ContactJZ [id=" + id + ", name=" + name + ", gender=" + gender
+ ", phone=" + phone + "]";
}*/
}
|
[
"youming3093@163.com"
] |
youming3093@163.com
|
9352766fbf2970bc421d3845ac6a176588e663bc
|
def8890dd7b3198e258ec564a25385e1f484aa45
|
/core/modules/security/src/main/java/org/onetwo/ext/security/url/UrlBasedSecurityConfig.java
|
20af5cb893b19d038dc6be7c5485012559d0bb6d
|
[] |
no_license
|
danshiyu/onetwo
|
69dd65432fbee7d507c5e889f01efd97dd7fecb9
|
2db903f42006d42d35de80d46b82e8b6925a947c
|
refs/heads/master
| 2021-01-15T14:23:38.885122
| 2016-08-11T03:24:38
| 2016-08-11T03:24:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,138
|
java
|
package org.onetwo.ext.security.url;
import java.util.Arrays;
import javax.sql.DataSource;
import org.onetwo.ext.security.DatabaseSecurityMetadataSource;
import org.onetwo.ext.security.DefaultUrlSecurityConfigurer;
import org.onetwo.ext.security.config.SecurityCommonContextConfig;
import org.onetwo.ext.security.method.DefaultMethodSecurityConfigurer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.security.access.AccessDecisionManager;
import org.springframework.security.access.vote.AffirmativeBased;
import org.springframework.security.web.access.expression.WebExpressionVoter;
/***
* 配置由url特有的配置+common配置组成
* common继承SecurityCommonContextConfig
* @author way
*
*/
@Configuration
@Import(SecurityCommonContextConfig.class)
public class UrlBasedSecurityConfig {
/***
* 如果不是基于方法拦截(即url匹配),需要用后处理器重新配置SecurityMetadataSource
* @return
*/
@Bean
public SecurityBeanPostProcessor securityBeanPostProcessor(){
return new SecurityBeanPostProcessor();
}
@Bean
public MultiWebExpressionVoter multiWebExpressionVoter(){
return new MultiWebExpressionVoter();
}
@Bean
public AccessDecisionManager accessDecisionManager(){
AffirmativeBased affirmative = new AffirmativeBased(Arrays.asList(multiWebExpressionVoter(), new WebExpressionVoter()));
return affirmative;
}
@Bean
@Autowired
public DatabaseSecurityMetadataSource securityMetadataSource(DataSource dataSource){
DatabaseSecurityMetadataSource ms = new DatabaseSecurityMetadataSource();
ms.setDataSource(dataSource);
return ms;
}
@Bean
// @Order(SecurityProperties.ACCESS_OVERRIDE_ORDER)
// @ConditionalOnMissingBean(WebSecurityConfigurerAdapter.class)
@Autowired
public DefaultMethodSecurityConfigurer defaultSecurityConfigurer(AccessDecisionManager accessDecisionManager){
return new DefaultUrlSecurityConfigurer(accessDecisionManager);
}
}
|
[
"weishao.zeng@gmail.com"
] |
weishao.zeng@gmail.com
|
3634611a68cb87b60b6a57d082b5720cd15d5e9b
|
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
|
/benchmark/validation/org/springframework/boot/context/properties/ConfigurationPropertiesBindHandlerAdvisorTests.java
|
1f6abeb1e633f1ed6613968d017dddde30ce7d52
|
[] |
no_license
|
STAMP-project/dspot-experiments
|
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
|
121487e65cdce6988081b67f21bbc6731354a47f
|
refs/heads/master
| 2023-02-07T14:40:12.919811
| 2019-11-06T07:17:09
| 2019-11-06T07:17:09
| 75,710,758
| 14
| 19
| null | 2023-01-26T23:57:41
| 2016-12-06T08:27:42
| null |
UTF-8
|
Java
| false
| false
| 7,135
|
java
|
/**
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.boot.context.properties;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.TreeMap;
import org.junit.Test;
import org.springframework.boot.context.properties.bind.AbstractBindHandler;
import org.springframework.boot.context.properties.bind.BindContext;
import org.springframework.boot.context.properties.bind.BindHandler;
import org.springframework.boot.context.properties.bind.BindResult;
import org.springframework.boot.context.properties.bind.Bindable;
import org.springframework.boot.context.properties.source.ConfigurationPropertyName;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
/**
* Tests for {@link ConfigurationPropertiesBindHandlerAdvisor}.
*
* @author Phillip Webb
*/
public class ConfigurationPropertiesBindHandlerAdvisorTests {
private AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
@Test
public void loadWithoutConfigurationPropertiesBindHandlerAdvisor() {
load(ConfigurationPropertiesBindHandlerAdvisorTests.WithoutConfigurationPropertiesBindHandlerAdvisor.class, "foo.bar.default.content-type=text/plain", "foo.bar.bindings.input.destination=d1", "foo.bar.bindings.input.content-type=text/xml", "foo.bar.bindings.output.destination=d2");
ConfigurationPropertiesBindHandlerAdvisorTests.BindingServiceProperties properties = this.context.getBean(ConfigurationPropertiesBindHandlerAdvisorTests.BindingServiceProperties.class);
ConfigurationPropertiesBindHandlerAdvisorTests.BindingProperties input = properties.getBindings().get("input");
assertThat(input.getDestination()).isEqualTo("d1");
assertThat(input.getContentType()).isEqualTo("text/xml");
ConfigurationPropertiesBindHandlerAdvisorTests.BindingProperties output = properties.getBindings().get("output");
assertThat(output.getDestination()).isEqualTo("d2");
assertThat(output.getContentType()).isEqualTo("application/json");
}
@Test
public void loadWithConfigurationPropertiesBindHandlerAdvisor() {
load(ConfigurationPropertiesBindHandlerAdvisorTests.WithConfigurationPropertiesBindHandlerAdvisor.class, "foo.bar.default.content-type=text/plain", "foo.bar.bindings.input.destination=d1", "foo.bar.bindings.input.content-type=text/xml", "foo.bar.bindings.output.destination=d2");
ConfigurationPropertiesBindHandlerAdvisorTests.BindingServiceProperties properties = this.context.getBean(ConfigurationPropertiesBindHandlerAdvisorTests.BindingServiceProperties.class);
ConfigurationPropertiesBindHandlerAdvisorTests.BindingProperties input = properties.getBindings().get("input");
assertThat(input.getDestination()).isEqualTo("d1");
assertThat(input.getContentType()).isEqualTo("text/xml");
ConfigurationPropertiesBindHandlerAdvisorTests.BindingProperties output = properties.getBindings().get("output");
assertThat(output.getDestination()).isEqualTo("d2");
assertThat(output.getContentType()).isEqualTo("text/plain");
}
@Configuration
@EnableConfigurationProperties(ConfigurationPropertiesBindHandlerAdvisorTests.BindingServiceProperties.class)
static class WithoutConfigurationPropertiesBindHandlerAdvisor {}
@Configuration
@EnableConfigurationProperties(ConfigurationPropertiesBindHandlerAdvisorTests.BindingServiceProperties.class)
@Import(ConfigurationPropertiesBindHandlerAdvisorTests.DefaultValuesConfigurationPropertiesBindHandlerAdvisor.class)
static class WithConfigurationPropertiesBindHandlerAdvisor {}
static class DefaultValuesConfigurationPropertiesBindHandlerAdvisor implements ConfigurationPropertiesBindHandlerAdvisor {
@Override
public BindHandler apply(BindHandler bindHandler) {
return new ConfigurationPropertiesBindHandlerAdvisorTests.DefaultValuesBindHandler(bindHandler);
}
}
static class DefaultValuesBindHandler extends AbstractBindHandler {
private final Map<ConfigurationPropertyName, ConfigurationPropertyName> mappings;
DefaultValuesBindHandler(BindHandler bindHandler) {
super(bindHandler);
this.mappings = new LinkedHashMap();
this.mappings.put(ConfigurationPropertyName.of("foo.bar.bindings"), ConfigurationPropertyName.of("foo.bar.default"));
}
@Override
public <T> Bindable<T> onStart(ConfigurationPropertyName name, Bindable<T> target, BindContext context) {
ConfigurationPropertyName defaultName = getDefaultName(name);
if (defaultName != null) {
BindResult<T> result = context.getBinder().bind(defaultName, target);
if (result.isBound()) {
return target.withExistingValue(result.get());
}
}
return super.onStart(name, target, context);
}
private ConfigurationPropertyName getDefaultName(ConfigurationPropertyName name) {
for (Map.Entry<ConfigurationPropertyName, ConfigurationPropertyName> mapping : this.mappings.entrySet()) {
ConfigurationPropertyName from = mapping.getKey();
ConfigurationPropertyName to = mapping.getValue();
if (((name.getNumberOfElements()) == ((from.getNumberOfElements()) + 1)) && (from.isParentOf(name))) {
return to;
}
}
return null;
}
}
@ConfigurationProperties("foo.bar")
static class BindingServiceProperties {
private Map<String, ConfigurationPropertiesBindHandlerAdvisorTests.BindingProperties> bindings = new TreeMap<>();
public Map<String, ConfigurationPropertiesBindHandlerAdvisorTests.BindingProperties> getBindings() {
return this.bindings;
}
}
static class BindingProperties {
private String destination;
private String contentType = "application/json";
public String getDestination() {
return this.destination;
}
public void setDestination(String destination) {
this.destination = destination;
}
public String getContentType() {
return this.contentType;
}
public void setContentType(String contentType) {
this.contentType = contentType;
}
}
}
|
[
"benjamin.danglot@inria.fr"
] |
benjamin.danglot@inria.fr
|
2af49d2303b434b815033da5859ec165777d3229
|
824be13cef2ba19634a6b0adea5467f2c5471039
|
/test/templates/default/src/main/java/com/mycompany/theforce/config/LoggingAspectConfiguration.java
|
66eb405807ffd39f6dc54ca7ada003245aef59b2
|
[
"Apache-2.0"
] |
permissive
|
yeoman-projects/generator-jhipster-stormpath
|
ee98091dedd11b8ac8a86780a8bb204eda9a3d49
|
0e7becacede9e5419c7b85b45d2865672e8535d2
|
refs/heads/master
| 2023-07-17T19:03:52.172928
| 2021-07-21T13:14:07
| 2021-07-21T13:14:07
| 384,940,588
| 0
| 0
|
Apache-2.0
| 2021-07-21T13:14:08
| 2021-07-11T12:18:31
| null |
UTF-8
|
Java
| false
| false
| 377
|
java
|
package com.mycompany.theforce.config;
import com.mycompany.theforce.aop.logging.LoggingAspect;
import org.springframework.context.annotation.*;
@Configuration
@EnableAspectJAutoProxy
public class LoggingAspectConfiguration {
@Bean
@Profile(Constants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect() {
return new LoggingAspect();
}
}
|
[
"pascalgrimaud@gmail.com"
] |
pascalgrimaud@gmail.com
|
2ad5f8be8a4ef6e6d0d7edf48175dece18d8ebb1
|
183c42492f61289db5a0dae2c600adab2d6822dd
|
/net.sf.seesea.model.core/src/net/sf/seesea/model/core/geo/Messages.java
|
4f32ad1bea025ec4c4ccc032b6dc0730557af387
|
[] |
no_license
|
thomas-osm/depth_api2_test
|
4fa45c577207688ae839df27e912b3aecc8be344
|
d20f26638676c6dba8f1dc6fdbe528cdef2866e4
|
refs/heads/master
| 2020-08-22T07:45:44.174229
| 2019-10-20T11:29:03
| 2019-10-20T11:29:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,076
|
java
|
/**
*
Copyright (c) 2010, Jens Kübler All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer. Redistributions in binary
* form must reproduce the above copyright notice, this list of conditions and
* the following disclaimer in the documentation and/or other materials provided
* with the distribution. Neither the name of the <organization> nor the names
* of its contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
package net.sf.seesea.model.core.geo;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
/**
*
*/
public class Messages {
private static final String BUNDLE_NAME = "net.sf.seesea.model.core.geo.Messages"; //$NON-NLS-1$
private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
private Messages() {
}
public static String getString(String key) {
try {
return RESOURCE_BUNDLE.getString(key);
} catch (MissingResourceException e) {
return '!' + key + '!';
}
}
}
|
[
"cleanerx@bdda867f-eb90-41bb-8c09-ca81aeede8af"
] |
cleanerx@bdda867f-eb90-41bb-8c09-ca81aeede8af
|
c661c289dd4c84dc0c8cbed8cf1e3db99adef4b0
|
2088303ad9939663f5f8180f316b0319a54bc1a6
|
/src/main/java/com/lottery/lottype/jc/jczq/mix/Jczqmix17035.java
|
366c28c64e90083072a6a13626a6518dc59fa220
|
[] |
no_license
|
lichaoliu/lottery
|
f8afc33ccc70dd5da19c620250d14814df766095
|
7796650e5b851c90fce7fd0a56f994f613078e10
|
refs/heads/master
| 2022-12-23T05:30:22.666503
| 2019-06-10T13:46:38
| 2019-06-10T13:46:38
| 141,867,129
| 7
| 1
| null | 2022-12-16T10:52:50
| 2018-07-22T04:59:44
|
Java
|
UTF-8
|
Java
| false
| false
| 566
|
java
|
package com.lottery.lottype.jc.jczq.mix;
import java.math.BigDecimal;
import java.util.List;
import com.lottery.lottype.SplitedLot;
public class Jczqmix17035 extends JczqmixX{
@Override
protected int getPlayType() {
return 7035;
}
@Override
public long getSingleBetAmount(String betcode, BigDecimal beishu,
int oneAmount) {
return getSingBetAmountMix(betcode, beishu, oneAmount);
}
@Override
public List<SplitedLot> splitByType(String betcode, int lotmulti,
int oneAmount) {
return splitByBetTypeMix(betcode, lotmulti, oneAmount);
}
}
|
[
"1147149597@qq.com"
] |
1147149597@qq.com
|
74b0699dad47c70e454919cb6b578af55baaf6bc
|
cb7ca5469115cab34b64a6b3c255660cf8bf6e09
|
/org.eclipse.draw2d/src/org/eclipse/draw2d/SimpleEtchedBorder.java
|
194ae09eb2cf9fbdc9fa43df4a91c7773fba0abb
|
[
"EPL-1.0",
"LicenseRef-scancode-free-unknown",
"MIT"
] |
permissive
|
archimatetool/archi
|
59b0a984b3d0471643835cd8f9ff5a648bd97de7
|
eec0869ad2b6e9c192e127aa9bc00bdbc82b7cd0
|
refs/heads/master
| 2023-09-04T02:29:50.509293
| 2023-08-31T10:28:46
| 2023-08-31T10:28:46
| 1,547,663
| 799
| 274
|
MIT
| 2023-05-26T16:55:05
| 2011-03-30T19:18:13
|
Java
|
UTF-8
|
Java
| false
| false
| 1,965
|
java
|
/*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.draw2d;
import org.eclipse.draw2d.geometry.Insets;
import org.eclipse.draw2d.geometry.Rectangle;
/**
* Provides a two pixel wide constant sized border, having an etched look.
*/
public final class SimpleEtchedBorder extends SchemeBorder {
/** The singleton instance of this class */
public static final Border singleton = new SimpleEtchedBorder();
/** The insets */
protected static final Insets INSETS = new Insets(2);
/**
* Constructs a default border having a two pixel wide border.
*
* @since 2.0
*/
protected SimpleEtchedBorder() {
}
/**
* Returns the Insets used by this border. This is a constant value of two
* pixels in each direction.
*
* @see Border#getInsets(IFigure)
*/
@Override
public Insets getInsets(IFigure figure) {
return new Insets(INSETS);
}
/**
* Returns the opaque state of this border. This border is opaque and takes
* responsibility to fill the region it encloses.
*
* @see Border#isOpaque()
*/
@Override
public boolean isOpaque() {
return true;
}
/**
* @see Border#paint(IFigure, Graphics, Insets)
*/
@Override
public void paint(IFigure figure, Graphics g, Insets insets) {
Rectangle rect = getPaintRectangle(figure, insets);
FigureUtilities.paintEtchedBorder(g, rect);
}
}
|
[
"p.beauvoir@dadabeatnik.com"
] |
p.beauvoir@dadabeatnik.com
|
fc6ef5d593cc36a58c8b9592e0f2988a101ffddf
|
f63826c8786bccecd88e2e30d76dde52ee683d1b
|
/src/chap01/practice02.java
|
9d7f89f112cdb3312cea379651819e0e7abec646
|
[] |
no_license
|
ay91911/Java_Algorithm
|
67c2dcfdabd1a2530ea8deeced2e574a4b95484d
|
594c12aaaa74a0aca04c8ddf97fea2af9ef596e0
|
refs/heads/master
| 2022-11-11T01:01:53.323658
| 2020-06-22T13:40:32
| 2020-06-22T13:40:32
| 274,127,257
| 0
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 503
|
java
|
package chap01;
import java.util.Scanner;
public class practice02 {
static int min3(int a, int b, int c) {
int min = a;
if(b<min)min=b;
if(c<min)min=c;
return min;
}
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
System.out.println("비교하고자 하는 값을 3개 입력해 주세요");
int a= stdIn.nextInt();
int b= stdIn.nextInt();
int c= stdIn.nextInt();
System.out.println("최소값은?: "+min3(a,b,c));
}
}
|
[
"USER@USER-PC"
] |
USER@USER-PC
|
4b5dd1c13bc8b0ddc8285fbec786dd59edcb3dc7
|
329b2cb3c91a0c953458efd253c4fcdce6f539c4
|
/graphsdk/src/main/java/com/microsoft/graph/generated/BaseWorkbookFunctionsDevSqBody.java
|
389a546bc0de06e79686ec10cd8e734a69ff3a63
|
[
"MIT"
] |
permissive
|
sbolotovms/msgraph-sdk-android
|
255eeddf19c1b15f04ee3b1549f0cae70d561fdd
|
1320795ba1c0b5eb36ef8252b73799d15fc46ba1
|
refs/heads/master
| 2021-01-20T05:09:00.148739
| 2017-04-28T23:20:23
| 2017-04-28T23:20:23
| 89,751,501
| 1
| 0
| null | 2017-04-28T23:20:37
| 2017-04-28T23:20:37
| null |
UTF-8
|
Java
| false
| false
| 1,913
|
java
|
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.generated;
import com.microsoft.graph.concurrency.*;
import com.microsoft.graph.core.*;
import com.microsoft.graph.extensions.*;
import com.microsoft.graph.http.*;
import com.microsoft.graph.generated.*;
import com.microsoft.graph.options.*;
import com.microsoft.graph.serializer.*;
import java.util.Arrays;
import java.util.List;
import com.google.gson.JsonObject;
import com.google.gson.annotations.*;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Base Workbook Functions Dev Sq Body.
*/
public class BaseWorkbookFunctionsDevSqBody {
/**
* The values.
*/
@SerializedName("values")
@Expose
public com.google.gson.JsonElement values;
/**
* The raw representation of this class
*/
private transient JsonObject mRawObject;
/**
* The serializer
*/
private transient ISerializer mSerializer;
/**
* Gets the raw representation of this class
* @return the raw representation of this class
*/
public JsonObject getRawObject() {
return mRawObject;
}
/**
* Gets serializer
* @return the serializer
*/
protected ISerializer getSerializer() {
return mSerializer;
}
/**
* Sets the raw json object
*
* @param serializer The serializer
* @param json The json object to set this object to
*/
public void setRawObject(final ISerializer serializer, final JsonObject json) {
mSerializer = serializer;
mRawObject = json;
}
}
|
[
"brianmel@microsoft.com"
] |
brianmel@microsoft.com
|
5ce588af352a435017576c21976dd22e89453f94
|
d77ff8fff9d7e36c882ae29a9b9c1f51503d25cc
|
/src/main/java/org/mycontroller/standalone/db/SettingsUtils.java
|
5aef1f611ad3cdbf50975c91daa7107dd3f16722
|
[
"Apache-2.0"
] |
permissive
|
bluetronics-India/mycontroller
|
14447a2e7b52ad7a8274abcf78ecd9c9dff7bbce
|
3b31cc7dbf0d9f864dc416dc0aa5560e1a330311
|
refs/heads/master
| 2021-01-21T02:58:55.667884
| 2015-11-08T02:42:27
| 2015-11-08T02:42:27
| 45,765,243
| 1
| 0
| null | 2015-11-08T03:21:24
| 2015-11-08T03:21:23
| null |
UTF-8
|
Java
| false
| false
| 4,329
|
java
|
/**
* Copyright (C) 2015 Jeeva Kandasamy (jkandasa@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.mycontroller.standalone.db;
import java.util.ArrayList;
import java.util.List;
import org.mycontroller.standalone.db.tables.Firmware;
import org.mycontroller.standalone.db.tables.Settings;
/**
* @author Jeeva Kandasamy (jkandasa)
* @since 0.0.1
*/
public class SettingsUtils {
private static final String HIDE_DATA = "*****";
private SettingsUtils() {
}
public static List<Settings> getNodeDefaults() {
ArrayList<String> keys = new ArrayList<String>();
keys.add(Settings.AUTO_NODE_ID);
keys.add(Settings.DEFAULT_FIRMWARE);
keys.add(Settings.ENABLE_NOT_AVAILABLE_TO_DEFAULT_FIRMWARE);
keys.add(Settings.ENABLE_SEND_PAYLOAD);
keys.add(Settings.MY_SENSORS_CONFIG);
List<Settings> settings = DaoUtils.getSettingsDao().get(keys);
for (Settings setting : settings) {
if (setting.getKey().equals(Settings.DEFAULT_FIRMWARE)) {
if (setting.getValue() != null) {
Firmware firmware = DaoUtils.getFirmwareDao().get(Integer.valueOf(setting.getValue()));
if (firmware != null) {
setting.setValue(firmware.getFirmwareName());
} else {
setting.setValue(null);
DaoUtils.getSettingsDao().update(setting);
}
}
break;
}
}
return settings;
}
public static List<Settings> getSunRiseSet() {
ArrayList<String> keys = new ArrayList<String>();
keys.add(Settings.CITY_LATITUDE);
keys.add(Settings.CITY_LONGITUDE);
keys.add(Settings.SUNRISE_TIME);
keys.add(Settings.SUNSET_TIME);
return DaoUtils.getSettingsDao().get(keys);
}
public static List<Settings> getEmailSettings() {
ArrayList<String> keys = new ArrayList<String>();
keys.add(Settings.EMAIL_SMTP_HOST);
keys.add(Settings.EMAIL_SMTP_PORT);
keys.add(Settings.EMAIL_FROM);
keys.add(Settings.EMAIL_ENABLE_SSL);
keys.add(Settings.EMAIL_SMTP_USERNAME);
keys.add(Settings.EMAIL_SMTP_PASSWORD);
List<Settings> settings = DaoUtils.getSettingsDao().get(keys);
for (Settings setting : settings) {
if (setting.getKey().equals(Settings.EMAIL_SMTP_PASSWORD)) {
setting.setValue(HIDE_DATA);
break;
}
}
return settings;
}
public static List<Settings> getDisplayUnits() {
return DaoUtils.getSettingsDao().getLike(Settings.DEFAULT_UNIT + "%");
}
public static List<Settings> getVersionInfo() {
ArrayList<String> keys = new ArrayList<String>();
keys.add(Settings.MC_VERSION);
keys.add(Settings.MC_DB_VERSION);
return DaoUtils.getSettingsDao().get(keys);
}
public static List<Settings> getSMSSettings() {
ArrayList<String> keys = new ArrayList<String>();
keys.add(Settings.SMS_AUTH_ID);
keys.add(Settings.SMS_AUTH_TOKEN);
keys.add(Settings.SMS_FROM_PHONE_NUMBER);
List<Settings> settings = DaoUtils.getSettingsDao().get(keys);
for (Settings setting : settings) {
if (setting.getKey().equals(Settings.SMS_AUTH_TOKEN)) {
setting.setValue(HIDE_DATA);
break;
}
}
return settings;
}
public static List<Settings> getGraphSettings() {
ArrayList<String> keys = new ArrayList<String>();
keys.add(Settings.GRAPH_INTERPOLATE_TYPE);
List<Settings> settings = DaoUtils.getSettingsDao().get(keys);
return settings;
}
}
|
[
"jkandasa@gmail.com"
] |
jkandasa@gmail.com
|
a6337eb9f9e0801e22e04054f222f1e23337002e
|
a65d9ea9da01d7ec33892bf3f9b7a0dc2ffd507a
|
/IntegersAndOthers/src/main/java/ru/itis/generics/token/example/Digits.java
|
7320112ec0b54ebcc0c92ae20e6b6512e52840e5
|
[] |
no_license
|
MarselSidikov/JavaItis3
|
fa78a94b735c1318d28bb5bad967da4ba49daa33
|
1da3017c9d7f4cea67649761aa3bf5d8930aaab5
|
refs/heads/master
| 2021-01-13T15:05:50.578760
| 2017-02-11T11:55:03
| 2017-02-11T11:55:03
| 76,255,583
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 373
|
java
|
package ru.itis.generics.token.example;
public class Digits implements Type {
private String typeName;
private int value;
public Digits(String typeName, int value) {
this.typeName = typeName;
this.value = value;
}
public String getTypeName() {
return typeName;
}
public int getValue() {
return value;
}
}
|
[
"admin"
] |
admin
|
08d448b3ccc705884391a47ef3b573d78791bdcd
|
1bdcbecb5f6aea980de377b8cbb71887c2200f74
|
/ml/streaminer/src/main/java/org/streaminer/stream/misc/MovingWindowDelta.java
|
a523dd38e4d258279f2f6bfa85658f0cbae901e4
|
[] |
no_license
|
lilijiangnan/bigdata
|
d9c8e3ebc5efa48e05463772c89c3782ad88f27a
|
d54f5886e706e96fc793a0426a39415c3e413c0c
|
refs/heads/master
| 2021-04-09T10:18:39.289089
| 2016-11-07T03:26:19
| 2016-11-07T03:26:19
| 125,361,007
| 1
| 0
| null | 2018-03-15T12:02:01
| 2018-03-15T12:02:01
| null |
UTF-8
|
Java
| false
| false
| 2,253
|
java
|
// =================================================================================================
// Copyright 2011 Twitter, Inc.
// -------------------------------------------------------------------------------------------------
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this work except in compliance with the License.
// You may obtain a copy of the License in the LICENSE file, or 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.streaminer.stream.misc;
import java.util.concurrent.LinkedBlockingDeque;
/**
* Delta over the most recent k sample periods.
*
* If you use this class with a counter, you can get the cumulation of counts in a sliding window.
*
* One sample period is the time in between doSample() calls.
*
* @author Feng Zhuge
*/
public class MovingWindowDelta<T extends Number> {
private static final int DEFAULT_WINDOW_SIZE = 60;
private final LinkedBlockingDeque<Long> deltaSeries;
private long sumDelta = 0l;
private long lastInput = 0l;
public MovingWindowDelta() {
this(DEFAULT_WINDOW_SIZE);
}
public MovingWindowDelta(int windowSize) {
if (windowSize < 1)
throw new IllegalArgumentException("windowSize should be greater than zero");
deltaSeries = new LinkedBlockingDeque<Long>(windowSize);
}
public void add(T num) {
long lastDelta = 0l;
if (deltaSeries.remainingCapacity() == 0) {
lastDelta = deltaSeries.removeFirst();
}
long newInput = num.longValue();
long newDelta = newInput - lastInput;
lastInput = newInput;
deltaSeries.addLast(newDelta);
sumDelta += newDelta - lastDelta;
}
public long getDelta() {
return sumDelta;
}
}
|
[
"zqhxuyuan@gmail.com"
] |
zqhxuyuan@gmail.com
|
65d4125f558d95cfed4c33903c90837355184ac8
|
e0ba7ddeb226fe452e5114ce2b8b94ddb4b97b3e
|
/app/src/main/java/com/zhuye/ershoufang/ui/activity/home/LookFangYuanActivity.java
|
14a33cb10b41c108e8307dd2078491cdf98943a0
|
[] |
no_license
|
jingzhixb/trunk
|
5337a676f9eb91888171bd06f7a657e72cb05636
|
e9201b355323c86db5b3a22a8e869b1243b00763
|
refs/heads/master
| 2020-03-28T01:34:08.005377
| 2018-09-05T12:34:05
| 2018-09-05T12:34:05
| 147,514,146
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,550
|
java
|
package com.zhuye.ershoufang.ui.activity.home;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.ogaclejapan.smarttablayout.SmartTabLayout;
import com.zhuye.ershoufang.R;
import com.zhuye.ershoufang.adapter.home.JingJiDetailAdapter;
import com.zhuye.ershoufang.base.BaseActivity;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
public class LookFangYuanActivity extends BaseActivity {
@BindView(R.id.back)
ImageView back;
@BindView(R.id.ttitle)
TextView ttitle;
@BindView(R.id.subtitle)
TextView subtitle;
@BindView(R.id.root)
LinearLayout root;
@BindView(R.id.tablayout)
SmartTabLayout tablayout;
@BindView(R.id.viewpager)
ViewPager viewpager;
@Override
protected int getResId() {
return R.layout.activity_look_fang_yuan;
}
String id;
@Override
protected void initData() {
super.initData();
id = getIntent().getStringExtra("id");
JingJiDetailAdapter adapter1 = new JingJiDetailAdapter(getSupportFragmentManager(), this);
viewpager.setAdapter(adapter1);
tablayout.setViewPager(viewpager);
adapter1.setData(id);
}
@Override
protected void initView() {
super.initView();
hide(subtitle);
setText(ttitle,"房源详情");
}
@OnClick(R.id.back)
public void onViewClicked() {
finish();
}
}
|
[
"1390056147qq.com"
] |
1390056147qq.com
|
aae568455145d6fc24f63cbc71f29c24250c6dda
|
daef7ea3e860bc8f4e651fe6c151165089e475af
|
/app/src/main/java/ve/com/abicelis/remindy/enums/TapTargetSequenceType.java
|
a4bd1f134fc9d0de8183091e97ba30cd1b6fba25
|
[
"MIT"
] |
permissive
|
chavantr/ExampleLRForD
|
429d0929b53a786ce6ecb09132cbe1d0bd0dd812
|
66efc8a40c63048710a6931f2743e2171c068991
|
refs/heads/master
| 2021-01-25T11:48:40.578339
| 2019-03-27T11:32:45
| 2019-03-27T11:32:45
| 123,430,779
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 160
|
java
|
package ve.com.abicelis.remindy.enums;
public enum TapTargetSequenceType {
EDIT_IMAGE_ATTACHMENT_ACTIVITY,
PLACE_LIST_ACTIVITY,
PLACE_ACTIVITY,
}
|
[
"abicelis@gmail.com"
] |
abicelis@gmail.com
|
39bb2aeb149661c907d3b467699502f274a10317
|
0f0b75d189bec77cde5f6870de0c746959665b28
|
/substance-extras/src/main/java/org/pushingpixels/substance/extras/internal/tabbed/TabOverviewButton.java
|
e87d1c17796afb44d2b6af92272818a03e77b8e9
|
[
"BSD-3-Clause"
] |
permissive
|
vad-babushkin/radiance
|
08f21bf6102261a1bba6407bab738ab33baf9cd5
|
42d17c7018e009f16131e3ddc0e3e980f42770f6
|
refs/heads/master
| 2021-03-27T22:28:06.062205
| 2020-03-06T03:27:26
| 2020-03-06T03:27:26
| 247,813,010
| 1
| 0
|
BSD-3-Clause
| 2020-03-16T20:44:39
| 2020-03-16T20:44:38
| null |
UTF-8
|
Java
| false
| false
| 5,671
|
java
|
/*
* Copyright (c) 2005-2020 Radiance Kirill Grouchnikov. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* o Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* o Neither the name of the copyright holder nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.pushingpixels.substance.extras.internal.tabbed;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import javax.swing.JButton;
import javax.swing.JTabbedPane;
import javax.swing.SwingConstants;
import javax.swing.plaf.UIResource;
import org.pushingpixels.substance.api.SubstanceCortex;
import org.pushingpixels.substance.api.colorscheme.SubstanceColorScheme;
import org.pushingpixels.substance.internal.utils.SubstanceCoreUtilities;
import org.pushingpixels.substance.internal.utils.SubstanceSizeUtils;
import org.pushingpixels.substance.internal.utils.icon.TransitionAwareIcon;
/**
* Button that activates the tab overview dialog.
*
* @author Kirill Grouchnikov
*/
public class TabOverviewButton extends JButton implements UIResource {
/**
* Client property name for locking undesired bound set.
*/
private static final String OWN_BOUNDS = "substance.extras.ownBounds";
/**
* Creates a new tab overview button.
*
* @param tabPane
* The owner tabbed pane.
*/
public TabOverviewButton(final JTabbedPane tabPane) {
this.setFocusable(false);
int dimension = SubstanceSizeUtils.getControlFontSize();
this.setIcon(
new TransitionAwareIcon(this,
(SubstanceColorScheme scheme) -> SubstanceCortex.GlobalScope.getIconPack()
.getInspectIcon(dimension, scheme),
"substance.widget.extras.taboverview"));
SubstanceCoreUtilities.markButtonAsFlat(this);
this.setToolTipText(
TabPreviewUtilities.getLabelBundle().getString("TabbedPane.overviewButtonTooltip"));
this.addActionListener(
(ActionEvent e) -> TabOverviewDialog.getOverviewDialog(tabPane).setVisible(true));
}
@Override
public void setBounds(int x, int y, int width, int height) {
if (Boolean.TRUE.equals(this.getClientProperty(TabOverviewButton.OWN_BOUNDS)))
super.setBounds(x, y, width, height);
}
/**
* Updates the location of <code>this</code> tab overview button.
*
* @param tabbedPane
* Tabbed pane.
* @param tabAreaInsets
* Tab area insets.
*/
public void updateLocation(JTabbedPane tabbedPane, Insets tabAreaInsets) {
if (tabbedPane == null)
return;
// Lock the button for the bounds change
this.putClientProperty(TabOverviewButton.OWN_BOUNDS, Boolean.TRUE);
int buttonSize = SubstanceSizeUtils.getLookupButtonSize();
switch (tabbedPane.getTabPlacement()) {
case SwingConstants.TOP:
if (tabbedPane.getComponentOrientation().isLeftToRight())
this.setBounds(2, tabAreaInsets.top, buttonSize, buttonSize);
else
this.setBounds(tabbedPane.getBounds().width - tabAreaInsets.right - buttonSize - 2,
tabAreaInsets.top, buttonSize, buttonSize);
break;
case SwingConstants.BOTTOM:
if (tabbedPane.getComponentOrientation().isLeftToRight())
this.setBounds(2,
tabbedPane.getBounds().height - tabAreaInsets.bottom - buttonSize - 4,
buttonSize, buttonSize);
else
this.setBounds(tabbedPane.getBounds().width - tabAreaInsets.right - buttonSize - 2,
tabbedPane.getBounds().height - tabAreaInsets.bottom - buttonSize - 4,
buttonSize, buttonSize);
break;
case SwingConstants.LEFT:
this.setBounds(2, tabAreaInsets.top - 1, buttonSize, buttonSize);
break;
case SwingConstants.RIGHT:
this.setBounds(tabbedPane.getBounds().width - tabAreaInsets.right - buttonSize - 2,
tabAreaInsets.top - 1, buttonSize, buttonSize);
break;
}
// Unlock the button for the bounds change
this.putClientProperty(TabOverviewButton.OWN_BOUNDS, null);
}
}
|
[
"kirill.grouchnikov@gmail.com"
] |
kirill.grouchnikov@gmail.com
|
f29e0c6e5f532b4f462cdbca13b7c06728a63ee2
|
924c1a1730e7060c3fe880cf56e63b9c582b3cd4
|
/src/main/java/com/obsidiandynamics/indigo/MessageBuilder.java
|
7525f9d5ac954adb555ed547e4d07e1818fbb703
|
[
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
moayyaed/indigo
|
c8250748dee640b060f4d8187ad80905163f5861
|
de272cb4e2055eb62a48469d0575a27550ddc238
|
refs/heads/master
| 2022-11-06T20:59:34.896462
| 2020-07-01T22:27:34
| 2020-07-01T22:27:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,531
|
java
|
package com.obsidiandynamics.indigo;
import java.util.*;
import java.util.function.*;
public class MessageBuilder {
@FunctionalInterface
interface MessageTarget {
void send(Object body, UUID requestId);
}
protected final Activation activation;
protected MessageTarget target;
private int copies = 1;
private Object requestBody;
private long timeoutMillis;
private Runnable onTimeout;
private Consumer<Fault> onFault;
private TimeoutTask timeoutTask;
MessageBuilder(Activation activation) {
this.activation = activation;
}
final MessageBuilder target(MessageTarget target) {
this.target = target;
return this;
}
public final MessageBuilder times(int copies) {
this.copies = copies;
return this;
}
public final void tell(Object body) {
for (int i = copies; --i >= 0;) {
target.send(body, null);
}
}
public final MessageBuilder ask(Object requestBody) {
this.requestBody = requestBody;
return this;
}
public final MessageBuilder ask() {
return ask(null);
}
public final MessageBuilder await(long timeoutMillis) {
this.timeoutMillis = timeoutMillis;
return this;
}
public final MessageBuilder onTimeout(Runnable onTimeout) {
this.onTimeout = onTimeout;
return this;
}
public final MessageBuilder onFault(Consumer<Fault> onFault) {
this.onFault = onFault;
return this;
}
public final void onResponse(Consumer<Message> onResponse) {
if (timeoutMillis != 0 ^ onTimeout != null) {
throw new IllegalArgumentException("Only one of the timeout time or handler has been set");
}
for (int i = copies; --i >= 0;) {
final UUID requestId = new UUID(activation.getId(), activation.getAndIncrementRequestCounter());
final PendingRequest req = new PendingRequest(onResponse, onTimeout, onFault);
target.send(requestBody, requestId);
activation.pending.put(requestId, req);
if (timeoutMillis != 0) {
timeoutTask = new TimeoutTask(System.nanoTime() + timeoutMillis * 1_000_000l,
requestId,
activation.ref,
activation.system);
req.setTimeoutTask(timeoutTask);
activation.system.getTimeoutScheduler().schedule(timeoutTask);
}
}
}
final TimeoutTask getTimeoutTask() {
return timeoutTask;
}
public final void tell() {
tell(null);
}
}
|
[
"ekoutanov@gmail.com"
] |
ekoutanov@gmail.com
|
448f679fe72034889f945da4d2a99eaec631fc42
|
497fcb88c10c94fed1caa160ee110561c07b594c
|
/platform/platform-worker/src/main/java/com/yazino/platform/invitation/InvitationRepository.java
|
758ad2f38589107d83df5cca2c79a99bf2b6a07e
|
[] |
no_license
|
ShahakBH/jazzino-master
|
3f116a609c5648c00dfbe6ab89c6c3ce1903fc1a
|
2401394022106d2321873d15996953f2bbc2a326
|
refs/heads/master
| 2016-09-02T01:26:44.514049
| 2015-08-10T13:06:54
| 2015-08-10T13:06:54
| 40,482,590
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,801
|
java
|
package com.yazino.platform.invitation;
import com.yazino.platform.event.message.InvitationEvent;
import com.yazino.platform.invitation.persistence.Invitation;
import com.yazino.platform.invitation.persistence.JDBCInvitationDAO;
import com.yazino.platform.messaging.publisher.QueuePublishingService;
import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;
import java.math.BigDecimal;
import java.util.Collection;
import static org.apache.commons.lang3.Validate.notNull;
@Repository("invitationRepository")
public class InvitationRepository {
private final JDBCInvitationDAO dao;
private final QueuePublishingService<InvitationEvent> invitationEventPublisher;
@Autowired
public InvitationRepository(final JDBCInvitationDAO dao,
@Qualifier("invitationEventQueuePublishingService")
final QueuePublishingService<InvitationEvent> invitationEventPublisher) {
notNull(dao, "dao is null");
notNull(invitationEventPublisher, "invitationEventPublisher is null");
this.dao = dao;
this.invitationEventPublisher = invitationEventPublisher;
}
public void save(final Invitation invitation) {
notNull(invitation, "invitation is null");
dao.save(invitation);
invitationEventPublisher.send(invitation.toEvent());
}
public Collection<Invitation> getInvitationsSentTo(final String recipient, final InvitationSource source) {
notNull(recipient, "recipient is null");
notNull(source, "source is null");
return dao.getInvitations(recipient, source);
}
public int getNumberOfAcceptedInvites(final BigDecimal issuingPlayerId, final DateTime sinceCreateTime) {
return dao.getNumberOfAcceptedInvites(issuingPlayerId, sinceCreateTime);
}
public Collection<Invitation> getInvitationsSentBy(final BigDecimal issuingPlayerId) {
notNull(issuingPlayerId, "issuingPlayerId is null");
return dao.findInvitationsByIssuingPlayerId(issuingPlayerId);
}
public Invitation getInvitationByIssuingPlayerRecipientAndSource(final BigDecimal issuingPlayerId,
final String recipientIdentifier,
final InvitationSource source) {
notNull(issuingPlayerId, "issuingPlayerId is null");
notNull(recipientIdentifier, "recipientIdentifier is null");
notNull(source, "source is null");
return dao.findInvitationsByIssuingPlayerRecipientAndSource(issuingPlayerId, recipientIdentifier, source);
}
}
|
[
"shahak.ben-hamo@rbpkrltd.com"
] |
shahak.ben-hamo@rbpkrltd.com
|
b6d0de51c79617709c6839222653fac006ac8495
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-12798-137-4-NSGA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/container/servlet/filters/internal/SavedRequestRestorerFilter_ESTest_scaffolding.java
|
3d8ab25aacc89f936c49a7e3e4f989ff3e331e6d
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 475
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Thu Apr 02 15:36:38 UTC 2020
*/
package org.xwiki.container.servlet.filters.internal;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class SavedRequestRestorerFilter_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
c6181decb9c5e471982a74b64aca98d01c257acc
|
17537c091572a94c58975214094fdfeedb57fde1
|
/core/server/project/commonBase/src/main/java/com/home/commonBase/scene/unit/UnitAOILogic.java
|
85ec33241ac9460de067299032eb30146f553b8a
|
[
"Apache-2.0"
] |
permissive
|
mengtest/home3
|
dc2e5f910bbca6e536ded94d3f749671f0ca76d5
|
a15a63694918483b2e4853edab197b5cdddca560
|
refs/heads/master
| 2023-01-29T13:49:23.822515
| 2020-12-11T10:17:39
| 2020-12-11T10:17:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,512
|
java
|
package com.home.commonBase.scene.unit;
import com.home.commonBase.constlist.generate.UnitType;
import com.home.commonBase.dataEx.scene.SocketAOICountData;
import com.home.commonBase.dataEx.scene.UnitAOICountData;
import com.home.commonBase.global.BaseC;
import com.home.commonBase.global.CommonSetting;
import com.home.commonBase.scene.base.Unit;
import com.home.commonBase.scene.base.UnitLogicBase;
import com.home.shine.ctrl.Ctrl;
import com.home.shine.global.ShineSetting;
import com.home.shine.net.socket.BaseSocket;
import com.home.shine.support.collection.IntObjectMap;
import com.home.shine.support.collection.inter.IObjectConsumer;
/** 单位AOI逻辑体 */
public class UnitAOILogic extends UnitLogicBase
{
/** 是否需要视野(isCharacter) */
public boolean needVision=false;
/** 是否需要周围单位统计 */
public boolean needAround=false;
/** 归属角色id */
public long belongPlayerID=-1L;
/** 绑定视野单位(同步位置血量) */
protected IntObjectMap<Unit> _bindVisionUnits=new IntObjectMap<>(Unit[]::new);
@Override
public void construct()
{
super.construct();
}
@Override
public void init()
{
super.init();
needVision=_unit.identity.isCharacter();
needAround=BaseC.constlist.unit_canFight(_unit.getType());
belongPlayerID=_data.normal.belongPlayerID;
}
@Override
public void dispose()
{
super.dispose();
belongPlayerID=-1L;
_bindVisionUnits.clear();
}
@Override
public void preRemove()
{
super.preRemove();
//解绑
_bindVisionUnits.forEachValueS(this::unBindEachOther);
}
/** 位置改变 */
public void onPosChanged()
{
}
/** 朝向改变 */
public void onDirChanged()
{
}
/** 立即更新AOI */
public void refreshAOI()
{
}
/** 遍历周围单位 */
public void forEachAroundUnits(IObjectConsumer<Unit> func)
{
_scene.aoi.getAroundUnitsBase(_unit,func);
}
/** 遍历可视单位(进入场景用) */
public void forEachCanSeeUnits(IObjectConsumer<Unit> func)
{
_scene.aoi.getAroundUnitsBase(_unit,func);
}
/** 是否归属于某单位 */
public boolean isBelongTo(Unit unit)
{
return belongPlayerID>0 && belongPlayerID==unit.identity.playerID;
}
/** 是否互相可Around(用来处理,只被xxx可见) */
public boolean isAvailable(Unit unit)
{
long belongPlayerID;
if((belongPlayerID=this.belongPlayerID)>0 && unit.identity.playerID!=belongPlayerID)
{
return false;
}
if((belongPlayerID=unit.aoi.belongPlayerID)>0 && _unit.identity.playerID!=belongPlayerID)
{
return false;
}
return true;
}
/** 默认全可见 */
public boolean isSee(Unit unit)
{
return isSee(unit.instanceID);
}
/** 默认全可见 */
public boolean isSee(int instanceID)
{
return true;
}
/** 互相绑定 */
public void bindEachOther(Unit unit)
{
bindEachOther(unit,true);
}
/** 互相绑定(abs:是否立即生效) */
public void bindEachOther(Unit unit,boolean isAbs)
{
addBindUnit(unit,isAbs);
unit.aoi.addBindUnit(_unit,isAbs);
}
/** 互相解绑定 */
public void unBindEachOther(Unit unit)
{
removeBindUnit(unit);
unit.aoi.removeBindUnit(_unit);
}
/** 添加视野绑定单位 */
public void addBindUnit(Unit unit,boolean isAbs)
{
if(ShineSetting.openCheck)
{
if(_bindVisionUnits.contains(unit.instanceID))
{
Ctrl.errorLog("添加视野绑定单位时,重复添加");
}
}
_bindVisionUnits.put(unit.instanceID,unit);
}
/** 移除视野绑定单位 */
public void removeBindUnit(Unit unit)
{
Unit removed=_bindVisionUnits.remove(unit.instanceID);
if(ShineSetting.openCheck)
{
if(removed==null)
{
Ctrl.errorLog("移除视野绑定单位时,重复移除");
}
}
}
/** 获取绑定单位组 */
public IntObjectMap<Unit> getBindVisionUnits()
{
return _bindVisionUnits;
}
public SocketAOICountData getSelfAOICheck()
{
return null;
}
public void recordAddUnit(int instanceID)
{
if(!CommonSetting.openAOICheck)
return;
SocketAOICountData cData;
if((cData=getSelfAOICheck())==null)
return;
cData.getCountData(instanceID).addMsg(true,new Exception());
}
public void recordRemoveUnit(int instanceID)
{
if(!CommonSetting.openAOICheck)
return;
SocketAOICountData cData;
if((cData=getSelfAOICheck())==null)
return;
cData.getCountData(instanceID).addMsg(false,new Exception());
}
public void recordAddAround(int instanceID)
{
if(!CommonSetting.openAOICheck)
return;
SocketAOICountData cData;
if((cData=getSelfAOICheck())==null)
return;
cData.getCountData(instanceID).addAround(true,new Exception());
}
public void recordRemoveAround(int instanceID)
{
if(!CommonSetting.openAOICheck)
return;
SocketAOICountData cData;
if((cData=getSelfAOICheck())==null)
return;
cData.getCountData(instanceID).addAround(false,new Exception());
}
public void clearRecord()
{
if(!CommonSetting.openAOICheck)
return;
SocketAOICountData cData;
if((cData=getSelfAOICheck())==null)
return;
cData.getCheckDic().clear();
}
public void clearMsg()
{
if(!CommonSetting.openAOICheck)
return;
SocketAOICountData cData;
if((cData=getSelfAOICheck())==null)
return;
IntObjectMap<UnitAOICountData> checkDic=cData.getCheckDic();
if(!checkDic.isEmpty())
{
checkDic.forEachValue(v->
{
v.clearMsg();
});
}
}
/** 周围是否没有角色 */
public boolean isNoCharacterAround()
{
return false;
}
}
|
[
"359944951@qq.com"
] |
359944951@qq.com
|
02e297b955528312452573538e596d537babbcaa
|
f2c0313293429a667c31604d0e4cc07ae6e476d2
|
/src/day63/WordFrequencyMethod.java
|
8617a9ae8b7ae87dab63baed68a5ff6f369aa257
|
[] |
no_license
|
sezginhmrc/FirstProject
|
dae3bd11bedb1b48ed993aebbe9ca29f50d3a452
|
b8f427643097c98570333a2ac5a8420bcfad0c4a
|
refs/heads/master
| 2021-01-14T04:20:41.197988
| 2020-05-14T08:18:15
| 2020-05-14T08:18:15
| 242,597,043
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 517
|
java
|
package day63;
import java.util.HashMap;
import java.util.Map;
public class WordFrequencyMethod {
public static void main(String[] args) {
String str = "Fun Fun Fun Java Java is Ending Tomorrow Tomorrow No it is never Ending";
}
public static Map<String, Integer> getFrequencyMap (String str){
Map<String,Integer> wordFrequencyMap = new HashMap<>();
for(String word : str.split(" ")){
System.out.println(word);
}
return wordFrequencyMap;
}
}
|
[
"sezginhamurcu@icloud.com"
] |
sezginhamurcu@icloud.com
|
1bda508b997a75a93d2ae7471dbc07415a6af0fc
|
7b73756ba240202ea92f8f0c5c51c8343c0efa5f
|
/classes2/uvt.java
|
b10e304c45304bc18244dd396cbd7dc4802667cd
|
[] |
no_license
|
meeidol-luo/qooq
|
588a4ca6d8ad579b28dec66ec8084399fb0991ef
|
e723920ac555e99d5325b1d4024552383713c28d
|
refs/heads/master
| 2020-03-27T03:16:06.616300
| 2016-10-08T07:33:58
| 2016-10-08T07:33:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,730
|
java
|
import android.text.TextUtils;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.common.app.BaseApplicationImpl;
import com.tencent.mobileqq.app.QQAppInterface;
import com.tencent.mobileqq.hotpatch.NotVerifyClass;
import com.tencent.mobileqq.structmsg.AbsStructMsg;
import com.tencent.mobileqq.structmsg.StructMsgItemLive;
import com.tencent.mobileqq.utils.JumpAction;
import com.tencent.mobileqq.utils.JumpParser;
import com.tencent.qphone.base.util.QLog;
public class uvt
implements View.OnClickListener
{
public uvt(StructMsgItemLive paramStructMsgItemLive)
{
boolean bool = NotVerifyClass.DO_VERIFY_CLASS;
}
public void onClick(View paramView)
{
QQAppInterface localQQAppInterface = (QQAppInterface)BaseApplicationImpl.a().a();
if ((!TextUtils.isEmpty(this.a.a.mMsgActionData)) && (this.a.a.mMsgActionData.startsWith("story:"))) {
localObject1 = this.a.a.mMsgActionData.substring("story:".length(), this.a.a.mMsgActionData.length() - 1);
}
for (int i = 1;; i = 2)
{
JumpParser.a(localQQAppInterface, paramView.getContext(), (String)localObject1).b();
if (QLog.isColorLevel()) {
QLog.d("StructMsgQ.qqstory.TAG_NOW_ENTRANCE_ACTION_CONFIG", 2, "actionType:" + i + "|uri:" + (String)localObject1);
}
return;
localObject1 = "0";
localObject2 = "-1";
String[] arrayOfString1 = this.a.q.substring(this.a.q.indexOf("?") + 1).split("&");
i = 0;
while (i < arrayOfString1.length)
{
String[] arrayOfString2 = arrayOfString1[i].split("=");
localObject5 = localObject2;
Object localObject3 = localObject1;
if (arrayOfString2.length == 2)
{
if ("roomid".equals(arrayOfString2[0])) {
localObject1 = arrayOfString2[1];
}
localObject5 = localObject2;
localObject3 = localObject1;
}
try
{
if ("from".equals(arrayOfString2[0]))
{
localObject5 = arrayOfString2[1];
localObject3 = localObject1;
}
}
catch (NumberFormatException localNumberFormatException)
{
for (;;)
{
localObject5 = localObject2;
Object localObject4 = localObject1;
}
}
i += 1;
localObject2 = localObject5;
localObject1 = localObject3;
}
localObject1 = String.format("mqqapi://now/openroom?src_type=app&version=1&roomid=%s&fromid=%s", new Object[] { localObject1, localObject2 });
}
}
}
/* Location: E:\apk\QQ_91\classes2-dex2jar.jar!\uvt.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"1776098770@qq.com"
] |
1776098770@qq.com
|
c7644303c39628078ea1fc4dbb8e2b1be1bdee79
|
cbc7f5b1f0ec0f07700aedf8f37b1a3fd79fb191
|
/20_septiembre/henryZerda/src/commands/toolAndApply/tools/PackerCreator.java
|
8ebd75b07b2fa20dfc7f31b9606de77a4bbd9aa3
|
[] |
no_license
|
henryzrr/arquitectura_software
|
831328f73edfba926471b499897f6b3394804f8e
|
e20ff182bd8ac887540cb94b4aac85df55893cbd
|
refs/heads/master
| 2020-07-09T03:24:41.965384
| 2019-10-07T16:22:29
| 2019-10-07T16:22:29
| 203,859,734
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 433
|
java
|
package commands.toolAndApply.tools;
import commands.toolAndApply.ITool;
import commands.toolAndApply.IToolCreator;
public class PackerCreator implements IToolCreator {
@Override
public String getToolCreatorName() {
return "empaquetador";
}
@Override
public ITool newTool(String tool, String fileType1, String fileType2) throws Exception {
return new Packer(tool,fileType1,fileType2);
}
}
|
[
"henry.zrz@gmail.com"
] |
henry.zrz@gmail.com
|
d1e67c087d09d78e1b9d78f4ff088f4b93ae213b
|
a243a1c53100b491cd44da967b88ddd3e1412dbf
|
/00_algorithms/02_sorting_advance/06_quick_sort_deal_with_identical_keys/src/com/issac/algo/Main.java
|
32ea50e284b01e87c09d7d7d8388abd24bf1a843
|
[] |
no_license
|
IssacYoung2013/daily
|
b6cbf272bf71ece61698427e822817d618b028bc
|
d9fa1d1cf8ea3ff69ee968061b16ba88c34199ab
|
refs/heads/master
| 2022-12-25T12:15:39.063763
| 2020-04-16T01:10:24
| 2020-04-16T01:10:24
| 222,570,708
| 0
| 0
| null | 2022-12-16T14:50:58
| 2019-11-19T00:15:50
|
Java
|
UTF-8
|
Java
| false
| false
| 1,574
|
java
|
package com.issac.algo;
import java.util.Arrays;
/**
* @author: ywy
* @date: 2019-11-19
* @desc:
*/
public class Main {
public static void main(String[] args) {
int N = 10000;
// 一般测试
System.out.println("==== 一般测试 ====");
Integer[] arr = SortTestHelper.generateRandomArray(N, 0, 10);
compareSort(arr);
// 有序更强
System.out.println("==== 有序更强 ====");
arr = SortTestHelper.generateRandomArray(N, 0, 3);
compareSort(arr);
// 近乎有序
System.out.println("==== 近乎有序 ====");
arr = SortTestHelper.generateNearlyOrderArray(N, 10);
compareSort(arr);
}
static void compareSort(Integer[] arr) {
Integer[] arr1 = Arrays.copyOf(arr, arr.length);
Integer[] arr2 = Arrays.copyOf(arr, arr.length);
Integer[] arr3 = Arrays.copyOf(arr, arr.length);
Integer[] arr4 = Arrays.copyOf(arr, arr.length);
Integer[] arr5 = Arrays.copyOf(arr, arr.length);
Integer[] arr6 = Arrays.copyOf(arr, arr.length);
Integer[] arr7 = Arrays.copyOf(arr, arr.length);
SortTestHelper.testSort("com.issac.algo.InsertionSort", arr1);
SortTestHelper.testSort("com.issac.algo.MergeSort", arr2);
SortTestHelper.testSort("com.issac.algo.MergeSort2", arr3);
SortTestHelper.testSort("com.issac.algo.MergeSortBU", arr4);
SortTestHelper.testSort("com.issac.algo.QuickSort", arr5);
SortTestHelper.testSort("com.issac.algo.QuickSort2Ways", arr6);
}
}
|
[
"issacyoung@msn.cn"
] |
issacyoung@msn.cn
|
3217253b835142c89531652f26870b1a711850a4
|
6baf1fe00541560788e78de5244ae17a7a2b375a
|
/hollywood/com.oculus.vrcast-VrCastService/sources/oculus/internal/Gatekeeper.java
|
de8fa930a9947ab195f71b57ab161223d90787c3
|
[] |
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
| 1,534
|
java
|
package oculus.internal;
import android.os.IBinder;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.util.Log;
import oculus.internal.IGatekeeperService;
public class Gatekeeper implements IBinder.DeathRecipient {
private IGatekeeperService mService;
private final int mType;
public Gatekeeper(int i) {
this.mType = i;
ensureServiceConnected();
}
public boolean isEnabled() {
return isEnabled(false);
}
public boolean isEnabled(boolean z) {
try {
ensureServiceConnected();
return this.mService.getGatekeeperDef(this.mType, z);
} catch (Exception unused) {
Log.e("Gatekeeper", "Failed to register gatekeeper: " + this.mType);
return z;
}
}
public void binderDied() {
Log.d("Gatekeeper", "Remote service died, resetting mService");
this.mService = null;
}
private void ensureServiceConnected() {
if (this.mService == null) {
IBinder service = ServiceManager.getService("GatekeeperService");
this.mService = IGatekeeperService.Stub.asInterface(service);
if (this.mService == null) {
Log.wtf("Gatekeeper", "Failed to get GatekeeperService");
return;
}
try {
service.linkToDeath(this, 0);
} catch (RemoteException e) {
Log.e("Gatekeeper", "linkToDeath failed", e);
}
}
}
}
|
[
"cyuubiapps@gmail.com"
] |
cyuubiapps@gmail.com
|
a4e46226cdbb22ae20537bff5376a15247443e91
|
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
|
/aliyun-java-sdk-eas/src/main/java/com/aliyuncs/eas/model/v20210701/DeleteResourceLogResponse.java
|
e51420374d0336b9b78f6abeddd9ddf75ea071c0
|
[
"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,471
|
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.eas.model.v20210701;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.eas.transform.v20210701.DeleteResourceLogResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class DeleteResourceLogResponse extends AcsResponse {
private String requestId;
private String message;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
}
@Override
public DeleteResourceLogResponse getInstance(UnmarshallerContext context) {
return DeleteResourceLogResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
02461eae71c9a6a55e8c430da36c0f876634ea5f
|
f6beea8ab88dad733809e354ef9a39291e9b7874
|
/com/planet_ink/coffee_mud/MOBS/Lizard.java
|
f1c9acc72b19f4df1d138b7bdcfa9b3d2f5996ae
|
[
"Apache-2.0"
] |
permissive
|
bonnedav/CoffeeMud
|
c290f4d5a96f760af91f44502495a3dce3eea415
|
f629f3e2e10955e47db47e66d65ae2883e6f9072
|
refs/heads/master
| 2020-04-01T12:13:11.943769
| 2018-10-11T02:50:45
| 2018-10-11T02:50:45
| 153,196,768
| 0
| 0
|
Apache-2.0
| 2018-10-15T23:58:53
| 2018-10-15T23:58:53
| null |
UTF-8
|
Java
| false
| false
| 2,351
|
java
|
package com.planet_ink.coffee_mud.MOBS;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.planet_ink.coffee_mud.CharClasses.interfaces.*;
import com.planet_ink.coffee_mud.Commands.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.*;
import com.planet_ink.coffee_mud.Exits.interfaces.*;
import com.planet_ink.coffee_mud.Items.interfaces.*;
import com.planet_ink.coffee_mud.Libraries.interfaces.*;
import com.planet_ink.coffee_mud.Locales.interfaces.*;
import com.planet_ink.coffee_mud.MOBS.interfaces.*;
import com.planet_ink.coffee_mud.Races.interfaces.*;
import java.util.*;
/*
Copyright 2001-2018 Bo Zimmerman
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
public class Lizard extends StdMOB
{
@Override
public String ID()
{
return "Lizard";
}
public Lizard()
{
super();
username="a lizard";
setDescription("A small unobtrusize reptile with rough green skin.");
setDisplayText("A lizard scurries by.");
CMLib.factions().setAlignment(this,Faction.Align.NEUTRAL);
setMoney(0);
basePhyStats().setDamage(1);
baseCharStats().setStat(CharStats.STAT_INTELLIGENCE,1);
basePhyStats().setAbility(0);
basePhyStats().setLevel(1);
basePhyStats().setArmor(90);
baseCharStats().setMyRace(CMClass.getRace("Lizard"));
baseCharStats().getMyRace().startRacing(this,false);
baseState.setHitPoints(CMLib.dice().roll(basePhyStats().level(),20,basePhyStats().level()));
recoverMaxState();
resetToMaxState();
recoverPhyStats();
recoverCharStats();
}
}
|
[
"bo@zimmers.net"
] |
bo@zimmers.net
|
3f27cf33f2f1a1fa212321bbb1fef8682ec3565b
|
3f00a0d8b5c66041841bc6f695bbca41cdba8b7f
|
/rocket/admin/src/main/java/com/nb6868/xquick/modules/sched/dao/TaskLogDao.java
|
21f2ae405af64c4ccfecb20fbcad85776c44ae97
|
[
"Apache-2.0"
] |
permissive
|
hanjiongchen/xquick
|
4a87579dda00f7db61756d174f5e08ad1bc56319
|
2479d2a04b6a53633cf384263173e3b19eb6ad13
|
refs/heads/master
| 2022-04-20T21:04:13.518963
| 2020-04-23T01:49:23
| 2020-04-23T01:49:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 346
|
java
|
package com.nb6868.xquick.modules.sched.dao;
import com.nb6868.xquick.booster.dao.BaseDao;
import com.nb6868.xquick.modules.sched.entity.TaskLogEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 定时任务日志
*
* @author Charles zhangchaoxu@gmail.com
*/
@Mapper
public interface TaskLogDao extends BaseDao<TaskLogEntity> {
}
|
[
"zhangchaoxu@gmail.com"
] |
zhangchaoxu@gmail.com
|
481f17664459c2ea70b14dd46f0610ae884a3601
|
8e3808e0570cce407027e4bb05a77ecf0c1d05e6
|
/cj.studio.ecm.corelib/src/cj/studio/ecm/context/Property.java
|
f8c38dcc2368375c552de0da1c6cd75f1d4d1fb3
|
[] |
no_license
|
carocean/cj.studio.ecm
|
22bdfa9dc339f76ffc635dcd8d8d7fb49017f0c3
|
b1e4594b51e738cf70ed2e91195b76e070ddc719
|
refs/heads/master
| 2021-07-06T12:03:48.715469
| 2020-07-26T05:57:18
| 2020-07-26T05:57:18
| 151,696,042
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 720
|
java
|
package cj.studio.ecm.context;
public class Property extends Node implements IProperty {
public Property() {
// TODO Auto-generated constructor stub
}
public Property(String name,INode value) {
super(name);
this.value=value;
}
public Property(String name,String value) {
super(name);
this.value=new Node(value);
}
private INode value;
@Override
public void setValue(INode value) {
this.value=value;
}
@Override
public INode getValue() {
return value;
}
public String toString(int level) {
StringBuffer sb=new StringBuffer();
// sb.append(getIndent(level));
sb.append(getName());
sb.append("=");
sb.append("\"");
sb.append(value);
sb.append("\"");
return sb.toString();
}
}
|
[
"carocean.jofers@icloud.com"
] |
carocean.jofers@icloud.com
|
60a7621183e0b3bbe4148adf433a34dcb4b5b2c1
|
d4c265b3daeb6cb3a4330c6df03d66c1e838b03c
|
/Neuron/app/src/main/java/org/nervos/neuron/item/TokenItem.java
|
5f4c580778b997f84c3f3a44aaefad281be4a673
|
[] |
no_license
|
CryptapeHackathon/The-Genuine-Champion
|
06b60c4068c3b93e2ae7a5c6d1bf9445fe6e917f
|
9348137d7e9968d66b6fa11e2e8bce619e101646
|
refs/heads/master
| 2020-03-21T20:19:59.856527
| 2018-07-02T02:29:35
| 2018-07-02T02:29:35
| 139,000,709
| 3
| 1
| null | 2018-06-29T04:47:57
| 2018-06-28T10:02:27
|
Java
|
UTF-8
|
Java
| false
| false
| 3,237
|
java
|
package org.nervos.neuron.item;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.DrawableRes;
import org.nervos.neuron.util.ConstUtil;
public class TokenItem implements Parcelable{
private static int NERVOS_DECIMAL = 18;
public String name;
@DrawableRes
public int image; // local resource
public String avatar; // image uri
public String contractAddress;
public String symbol;
public int decimals;
public String amount;
public long chainId;
public String chainName;
public double balance;
public TokenItem(){}
public TokenItem(String name, String symbol, int decimals, String contractAddress) {
this.symbol = symbol;
this.name = name;
this.decimals = decimals;
this.contractAddress = contractAddress;
}
public TokenItem(String symbol, int image, double balance, int chainId) {
this.symbol = symbol;
this.image = image;
this.balance = balance;
this.chainId = chainId;
}
public TokenItem(String name, String symbol, int decimals, String avatar, int chainId) {
this.name = name;
this.symbol = symbol;
this.decimals = decimals;
this.avatar = avatar;
this.chainId = chainId;
}
public TokenItem(ChainItem chainItem) {
this.name = chainItem.tokenName;
this.symbol = chainItem.tokenSymbol;
this.decimals = NERVOS_DECIMAL;
this.avatar = chainItem.tokenAvatar;
this.chainId = chainItem.chainId;
}
public TokenItem(TokenEntity tokenEntity) {
this.name = tokenEntity.name;
this.symbol = tokenEntity.symbol;
this.contractAddress = tokenEntity.address;
this.avatar = tokenEntity.logo.src;
this.decimals = tokenEntity.decimals;
this.chainId = ConstUtil.ETH_CHAIN_ID;
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.name);
dest.writeInt(this.image);
dest.writeString(this.avatar);
dest.writeString(this.contractAddress);
dest.writeString(this.symbol);
dest.writeInt(this.decimals);
dest.writeString(this.amount);
dest.writeLong(this.chainId);
dest.writeString(this.chainName);
dest.writeDouble(this.balance);
}
protected TokenItem(Parcel in) {
this.name = in.readString();
this.image = in.readInt();
this.avatar = in.readString();
this.contractAddress = in.readString();
this.symbol = in.readString();
this.decimals = in.readInt();
this.amount = in.readString();
this.chainId = in.readInt();
this.chainName = in.readString();
this.balance = in.readDouble();
}
public static final Creator<TokenItem> CREATOR = new Creator<TokenItem>() {
@Override
public TokenItem createFromParcel(Parcel source) {
return new TokenItem(source);
}
@Override
public TokenItem[] newArray(int size) {
return new TokenItem[size];
}
};
}
|
[
"duanyytop@gmail.com"
] |
duanyytop@gmail.com
|
4da98657b056a97ebed79320ecbddc3828b55912
|
15b260ccada93e20bb696ae19b14ec62e78ed023
|
/v2/src/main/java/com/alipay/api/domain/AlipayCommerceOperationBsEnrollSubmitModel.java
|
fde00931cdc13cb383d54483fede1b9bf9562c03
|
[
"Apache-2.0"
] |
permissive
|
alipay/alipay-sdk-java-all
|
df461d00ead2be06d834c37ab1befa110736b5ab
|
8cd1750da98ce62dbc931ed437f6101684fbb66a
|
refs/heads/master
| 2023-08-27T03:59:06.566567
| 2023-08-22T14:54:57
| 2023-08-22T14:54:57
| 132,569,986
| 470
| 207
|
Apache-2.0
| 2022-12-25T07:37:40
| 2018-05-08T07:19:22
|
Java
|
UTF-8
|
Java
| false
| false
| 1,011
|
java
|
package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 联营-计划报名
*
* @author auto create
* @since 1.0, 2023-03-16 22:20:15
*/
public class AlipayCommerceOperationBsEnrollSubmitModel extends AlipayObject {
private static final long serialVersionUID = 4392783945172442698L;
/**
* 报名参与者,支持批量传参,最大10
*/
@ApiListField("participants")
@ApiField("bs_enroll_participant")
private List<BsEnrollParticipant> participants;
/**
* 联营计划ID
*/
@ApiField("plan_id")
private String planId;
public List<BsEnrollParticipant> getParticipants() {
return this.participants;
}
public void setParticipants(List<BsEnrollParticipant> participants) {
this.participants = participants;
}
public String getPlanId() {
return this.planId;
}
public void setPlanId(String planId) {
this.planId = planId;
}
}
|
[
"auto-publish"
] |
auto-publish
|
948bd07ce33863e1a02167664c3b4d3b564d300a
|
88c02d49d669c7637bbca9fd1f570cc7292f484f
|
/AndroidJniGenerate/GetJniCode/xwebruntime_javacode/org/xwalk/core/internal/XWalkDownloadListenerBridge.java
|
29aa302954a10e54ca6b88f899462b274899c69c
|
[] |
no_license
|
ghost461/AndroidMisc
|
1af360cf36ae212a81814f9a4057884290dbe12e
|
dfa4c9115c0198755c9ff6c5e5c9ea3b56c9daff
|
refs/heads/master
| 2020-09-07T19:17:00.028887
| 2019-11-11T02:55:33
| 2019-11-11T02:55:33
| 220,887,476
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,226
|
java
|
package org.xwalk.core.internal;
import android.content.Context;
public class XWalkDownloadListenerBridge extends XWalkDownloadListenerInternal {
private XWalkCoreBridge coreBridge;
private ReflectMethod onDownloadStartStringStringStringStringlongMethod;
private Object wrapper;
public XWalkDownloadListenerBridge(Context arg4, Object arg5) {
super(arg4);
this.onDownloadStartStringStringStringStringlongMethod = new ReflectMethod(null, "onDownloadStart", new Class[0]);
this.wrapper = arg5;
this.reflectionInit();
}
public Object getWrapper() {
return this.wrapper;
}
public void onDownloadStart(String arg4, String arg5, String arg6, String arg7, long arg8) {
this.onDownloadStartStringStringStringStringlongMethod.invoke(new Object[]{arg4, arg5, arg6, arg7, Long.valueOf(arg8)});
}
void reflectionInit() {
this.coreBridge = XWalkCoreBridge.getInstance();
if(this.coreBridge == null) {
return;
}
this.onDownloadStartStringStringStringStringlongMethod.init(this.wrapper, null, "onDownloadStart", new Class[]{String.class, String.class, String.class, String.class, Long.TYPE});
}
}
|
[
"lingmilch@sina.com"
] |
lingmilch@sina.com
|
ee800a70294f13d33b917f3aff8ff2da5688486e
|
cccfb7be281ca89f8682c144eac0d5d5559b2deb
|
/chrome/android/features/autofill_assistant/javatests/src/org/chromium/chrome/browser/autofill_assistant/AutofillAssistantTestEndpointService.java
|
ba64e61aaa4a2dd710c870fef2f16e97309476d5
|
[
"BSD-3-Clause"
] |
permissive
|
SREERAGI18/chromium
|
172b23d07568a4e3873983bf49b37adc92453dd0
|
fd8a8914ca0183f0add65ae55f04e287543c7d4a
|
refs/heads/master
| 2023-08-27T17:45:48.928019
| 2021-11-11T22:24:28
| 2021-11-11T22:24:28
| 428,659,250
| 1
| 0
|
BSD-3-Clause
| 2021-11-16T13:08:14
| 2021-11-16T13:08:14
| null |
UTF-8
|
Java
| false
| false
| 1,767
|
java
|
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.autofill_assistant;
import org.chromium.base.annotations.JNINamespace;
import org.chromium.base.annotations.NativeMethods;
/**
* Test service which communicates with a real, but non-prod endpoint.
*/
@JNINamespace("autofill_assistant")
public class AutofillAssistantTestEndpointService
implements AutofillAssistantDependencyInjector.NativeServiceProvider {
private final String mEndpointUrl;
/**
* Creates a test service that will communicate with a remote endpoint to retrieve scripts
* and actions.
*
* @param endpointUrl The endpoint that the test service should communicate with. Must not
* point to the actual prod endpoint.
*/
AutofillAssistantTestEndpointService(String endpointUrl) {
mEndpointUrl = endpointUrl;
}
/**
* Asks the client to inject this service upon startup. Must be called prior to client startup
* in order to take effect!
*/
void scheduleForInjection() {
AutofillAssistantDependencyInjector.setServiceToInject(this);
}
@Override
public long createNativeService(long nativeClientAndroid) {
// Creates a native service for communicating with a test or development endpoint.
return AutofillAssistantTestEndpointServiceJni.get().javaServiceCreate(
this, nativeClientAndroid, mEndpointUrl);
}
@NativeMethods
interface Natives {
long javaServiceCreate(
AutofillAssistantTestEndpointService caller, long nativeClient, String endpointUrl);
}
}
|
[
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] |
chromium-scoped@luci-project-accounts.iam.gserviceaccount.com
|
498d93e453b0555a499464d9b8d4619899713a8c
|
d46fb42170b9f9845ab488706dcfea6494275b5a
|
/build/generated/source/r/debug/android/support/v7/recyclerview/R.java
|
c8694323b8ecc5d2a3fc19d8c81b42065573b232
|
[] |
no_license
|
liushiyun8/AppCust
|
f6764d74daf7b8719bf4c3a537efefeb41c83a59
|
aaaced289e873e038c9a37ad0a5532048b43128c
|
refs/heads/master
| 2021-06-30T17:21:39.922759
| 2017-09-18T09:49:57
| 2017-09-18T09:49:57
| 103,921,650
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,421
|
java
|
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package android.support.v7.recyclerview;
public final class R {
public static final class attr {
public static final int layoutManager = 0x7f0101e0;
public static final int reverseLayout = 0x7f0101e2;
public static final int spanCount = 0x7f0101e1;
public static final int stackFromEnd = 0x7f0101e3;
}
public static final class dimen {
public static final int item_touch_helper_max_drag_scroll_per_frame = 0x7f0900c3;
public static final int item_touch_helper_swipe_escape_max_velocity = 0x7f0900c4;
public static final int item_touch_helper_swipe_escape_velocity = 0x7f0900c5;
}
public static final class id {
public static final int item_touch_helper_previous_elevation = 0x7f0f000e;
}
public static final class styleable {
public static final int[] RecyclerView = { 0x010100c4, 0x010100f1, 0x7f0101e0, 0x7f0101e1, 0x7f0101e2, 0x7f0101e3 };
public static final int RecyclerView_android_descendantFocusability = 1;
public static final int RecyclerView_android_orientation = 0;
public static final int RecyclerView_layoutManager = 2;
public static final int RecyclerView_reverseLayout = 4;
public static final int RecyclerView_spanCount = 3;
public static final int RecyclerView_stackFromEnd = 5;
}
}
|
[
"764512727@qq.com"
] |
764512727@qq.com
|
241edf8e3a7bfe74d4e299607b8b8a0a409ca4d1
|
14c8213abe7223fe64ff89a47f70b0396e623933
|
/com/google/api/client/googleapis/auth/oauth2/DefaultCredentialProvider$ComputeGoogleCredential.java
|
7aa6e5c835ccf1dfbc395d82e74b5c48fb0f8664
|
[
"MIT"
] |
permissive
|
PolitePeoplePlan/backdoored
|
c804327a0c2ac5fe3fbfff272ca5afcb97c36e53
|
3928ac16a21662e4f044db9f054d509222a8400e
|
refs/heads/main
| 2023-05-31T04:19:55.497741
| 2021-06-23T15:20:03
| 2021-06-23T15:20:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,292
|
java
|
package com.google.api.client.googleapis.auth.oauth2;
import com.google.api.client.auth.oauth2.*;
import com.google.api.client.json.*;
import com.google.api.client.util.*;
import com.google.api.client.http.*;
import java.io.*;
private static class ComputeGoogleCredential extends GoogleCredential
{
private static final String TOKEN_SERVER_ENCODED_URL;
ComputeGoogleCredential(final HttpTransport a1, final JsonFactory a2) {
super(new Builder().setTransport(a1).setJsonFactory(a2).setTokenServerEncodedUrl(ComputeGoogleCredential.TOKEN_SERVER_ENCODED_URL));
}
@Override
protected TokenResponse executeRefreshToken() throws IOException {
final GenericUrl a1 = new GenericUrl(this.getTokenServerEncodedUrl());
final HttpRequest buildGetRequest = this.getTransport().createRequestFactory().buildGetRequest(a1);
final JsonObjectParser parser = new JsonObjectParser(this.getJsonFactory());
buildGetRequest.setParser(parser);
buildGetRequest.getHeaders().set("Metadata-Flavor", "Google");
buildGetRequest.setThrowExceptionOnExecuteError(false);
final HttpResponse execute = buildGetRequest.execute();
final int v0 = execute.getStatusCode();
if (v0 == 200) {
final InputStream v2 = execute.getContent();
if (v2 == null) {
throw new IOException("Empty content from metadata token server request.");
}
return parser.parseAndClose(v2, execute.getContentCharset(), TokenResponse.class);
}
else {
if (v0 == 404) {
throw new IOException(String.format("Error code %s trying to get security access token from Compute Engine metadata for the default service account. This may be because the virtual machine instance does not have permission scopes specified.", v0));
}
throw new IOException(String.format("Unexpected Error code %s trying to get security access token from Compute Engine metadata for the default service account: %s", v0, execute.parseAsString()));
}
}
static {
TOKEN_SERVER_ENCODED_URL = String.valueOf(OAuth2Utils.getMetadataServerUrl()).concat("/computeMetadata/v1/instance/service-accounts/default/token");
}
}
|
[
"66845682+chrispycreme420@users.noreply.github.com"
] |
66845682+chrispycreme420@users.noreply.github.com
|
019ca7babb3c31145e22f3c32bb0a2ff7bd67226
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/1/1_3a7a33ce0f9046e386dada63f28e2b5e091760dd/TimeFilter/1_3a7a33ce0f9046e386dada63f28e2b5e091760dd_TimeFilter_s.java
|
a8a560c67e40330bfca615decfb6ff2adc5c4170
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 5,064
|
java
|
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.cassandra.db;
import java.io.DataInputStream;
import java.io.IOException;
import java.util.Collection;
import org.apache.cassandra.config.DatabaseDescriptor;
import org.apache.cassandra.io.DataInputBuffer;
import org.apache.cassandra.io.IndexHelper;
import org.apache.cassandra.io.SSTable;
/**
* This class provides a filter for fitering out columns
* that are older than a specific time.
*
* @author pmalik
*/
class TimeFilter implements IFilter
{
private long timeLimit_;
private boolean isDone_;
TimeFilter(long timeLimit)
{
timeLimit_ = timeLimit;
isDone_ = false;
}
public ColumnFamily filter(String cf, ColumnFamily columnFamily)
{
if (columnFamily == null)
return null;
String[] values = RowMutation.getColumnAndColumnFamily(cf);
ColumnFamily filteredCf = columnFamily.cloneMeShallow();
if (values.length == 1 && !columnFamily.isSuper())
{
Collection<IColumn> columns = columnFamily.getAllColumns();
int i = 0;
for (IColumn column : columns)
{
if (column.timestamp() >= timeLimit_)
{
filteredCf.addColumn(column);
++i;
}
else
{
break;
}
}
if (i < columns.size())
{
isDone_ = true;
}
}
else if (values.length == 2 && columnFamily.isSuper())
{
/*
* TODO : For super columns we need to re-visit this issue.
* For now this fn will set done to true if we are done with
* atleast one super column
*/
Collection<IColumn> columns = columnFamily.getAllColumns();
for (IColumn column : columns)
{
SuperColumn superColumn = (SuperColumn) column;
SuperColumn filteredSuperColumn = new SuperColumn(superColumn.name());
filteredCf.addColumn(filteredSuperColumn);
Collection<IColumn> subColumns = superColumn.getSubColumns();
int i = 0;
for (IColumn subColumn : subColumns)
{
if (subColumn.timestamp() >= timeLimit_)
{
filteredSuperColumn.addColumn(subColumn);
++i;
}
else
{
break;
}
}
if (i < filteredSuperColumn.getColumnCount())
{
isDone_ = true;
}
}
}
else
{
throw new UnsupportedOperationException();
}
return filteredCf;
}
public IColumn filter(IColumn column, DataInputStream dis) throws IOException
{
long timeStamp = 0;
/*
* If its a column instance we need the timestamp to verify if
* it should be filtered , but at this instance the timestamp is not read
* so we read the timestamp and set the buffer back so that the rest of desrialization
* logic does not change.
*/
if (column instanceof Column)
{
dis.mark(1000);
dis.readBoolean();
timeStamp = dis.readLong();
dis.reset();
if (timeStamp < timeLimit_)
{
isDone_ = true;
return null;
}
}
return column;
}
public boolean isDone()
{
return isDone_;
}
public DataInputBuffer next(String key, String cfName, SSTable ssTable) throws IOException
{
return ssTable.next(key, cfName, null, new IndexHelper.TimeRange(timeLimit_, Long.MAX_VALUE));
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
df5852f1cf1108dc7161d4f013e131098be64e56
|
1355a8fb99e5fd5d1c7f48c7156033dedbd5404f
|
/COLP.BEPS.Servicios.IndicioPrestacionesOBP.Proxy/src/main/java/co/gov/colpensiones/schemas/indicios/personas/TipoInformacionGeneralPersonaBEPS.java
|
9a5e22d8eb923f1e47ce1a55c2496193f4624965
|
[] |
no_license
|
lenercab/Asofondo
|
7c081631eee15e9fa9645b19b2762b4f5f2a7e5d
|
f7319b48c78a9bb906c2516c5e1228d38edde681
|
refs/heads/master
| 2020-04-13T19:54:00.170983
| 2018-04-03T16:01:09
| 2018-04-03T16:01:09
| 163,415,310
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,084
|
java
|
package co.gov.colpensiones.schemas.indicios.personas;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for tipoInformacionGeneralPersonaBEPS complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="tipoInformacionGeneralPersonaBEPS">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="identificacion" type="{http://www.colpensiones.gov.co/schemas/1.0/personas}tipoIdentificacionPersona"/>
* <element name="nombresApellidos" type="{http://www.colpensiones.gov.co/schemas/1.0/personas}tipoInformacionBasicaPersonaNatural"/>
* <element name="genero" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="fechaExpedicionDocumentoIdentificacion" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="municipioExpedicionDocumentoIdentificacion" type="{http://www.colpensiones.gov.co/schemas/1.0/personas}tipoCiudad" minOccurs="0"/>
* <element name="informacionNacimiento" type="{http://www.colpensiones.gov.co/schemas/1.0/personas}tipoInformacionGeneralPersonaBEPS.informacionNacimientoType" minOccurs="0"/>
* <element name="informacionResidencia" type="{http://www.colpensiones.gov.co/schemas/1.0/personas}tipoInformacionUbicacionPersona" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "tipoInformacionGeneralPersonaBEPS", propOrder = {
"identificacion",
"nombresApellidos",
"genero",
"fechaExpedicionDocumentoIdentificacion",
"municipioExpedicionDocumentoIdentificacion",
"informacionNacimiento",
"informacionResidencia"
})
public class TipoInformacionGeneralPersonaBEPS {
@XmlElement(required = true, nillable = true)
protected TipoIdentificacionPersona identificacion;
@XmlElement(required = true, nillable = true)
protected TipoInformacionBasicaPersonaNatural nombresApellidos;
@XmlElement(required = true, nillable = true)
protected String genero;
protected String fechaExpedicionDocumentoIdentificacion;
protected TipoCiudad municipioExpedicionDocumentoIdentificacion;
protected TipoInformacionGeneralPersonaBEPSInformacionNacimientoType informacionNacimiento;
protected TipoInformacionUbicacionPersona informacionResidencia;
/**
* Gets the value of the identificacion property.
*
* @return
* possible object is
* {@link TipoIdentificacionPersona }
*
*/
public TipoIdentificacionPersona getIdentificacion() {
return identificacion;
}
/**
* Sets the value of the identificacion property.
*
* @param value
* allowed object is
* {@link TipoIdentificacionPersona }
*
*/
public void setIdentificacion(TipoIdentificacionPersona value) {
this.identificacion = value;
}
/**
* Gets the value of the nombresApellidos property.
*
* @return
* possible object is
* {@link TipoInformacionBasicaPersonaNatural }
*
*/
public TipoInformacionBasicaPersonaNatural getNombresApellidos() {
return nombresApellidos;
}
/**
* Sets the value of the nombresApellidos property.
*
* @param value
* allowed object is
* {@link TipoInformacionBasicaPersonaNatural }
*
*/
public void setNombresApellidos(TipoInformacionBasicaPersonaNatural value) {
this.nombresApellidos = value;
}
/**
* Gets the value of the genero property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getGenero() {
return genero;
}
/**
* Sets the value of the genero property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setGenero(String value) {
this.genero = value;
}
/**
* Gets the value of the fechaExpedicionDocumentoIdentificacion property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFechaExpedicionDocumentoIdentificacion() {
return fechaExpedicionDocumentoIdentificacion;
}
/**
* Sets the value of the fechaExpedicionDocumentoIdentificacion property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFechaExpedicionDocumentoIdentificacion(String value) {
this.fechaExpedicionDocumentoIdentificacion = value;
}
/**
* Gets the value of the municipioExpedicionDocumentoIdentificacion property.
*
* @return
* possible object is
* {@link TipoCiudad }
*
*/
public TipoCiudad getMunicipioExpedicionDocumentoIdentificacion() {
return municipioExpedicionDocumentoIdentificacion;
}
/**
* Sets the value of the municipioExpedicionDocumentoIdentificacion property.
*
* @param value
* allowed object is
* {@link TipoCiudad }
*
*/
public void setMunicipioExpedicionDocumentoIdentificacion(TipoCiudad value) {
this.municipioExpedicionDocumentoIdentificacion = value;
}
/**
* Gets the value of the informacionNacimiento property.
*
* @return
* possible object is
* {@link TipoInformacionGeneralPersonaBEPSInformacionNacimientoType }
*
*/
public TipoInformacionGeneralPersonaBEPSInformacionNacimientoType getInformacionNacimiento() {
return informacionNacimiento;
}
/**
* Sets the value of the informacionNacimiento property.
*
* @param value
* allowed object is
* {@link TipoInformacionGeneralPersonaBEPSInformacionNacimientoType }
*
*/
public void setInformacionNacimiento(TipoInformacionGeneralPersonaBEPSInformacionNacimientoType value) {
this.informacionNacimiento = value;
}
/**
* Gets the value of the informacionResidencia property.
*
* @return
* possible object is
* {@link TipoInformacionUbicacionPersona }
*
*/
public TipoInformacionUbicacionPersona getInformacionResidencia() {
return informacionResidencia;
}
/**
* Sets the value of the informacionResidencia property.
*
* @param value
* allowed object is
* {@link TipoInformacionUbicacionPersona }
*
*/
public void setInformacionResidencia(TipoInformacionUbicacionPersona value) {
this.informacionResidencia = value;
}
}
|
[
"crivera@itcol.com"
] |
crivera@itcol.com
|
ade40f33500ea83d66619c7b364377b6ba509293
|
fa7848927b20bcc94550318acf5a8a103394237d
|
/MALL6_2018/app/src/main/java/com/mall/serving/query/adapter/ExpressageAdapter.java
|
b7b566d2457a012b38dd416649780bbd8f0014d8
|
[] |
no_license
|
Eagleoo/ydaMall
|
d548e92b6df1a18717083ac83156f8c1bb4cd6c6
|
a81a6e38079e161be781a2d015905355e0b142cd
|
refs/heads/master
| 2020-04-04T01:01:30.934136
| 2018-11-01T06:02:22
| 2018-11-01T06:02:22
| 155,665,040
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,079
|
java
|
package com.mall.serving.query.adapter;
import java.util.List;
import android.content.Context;
import android.graphics.Color;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.mall.serving.community.adapter.NewBaseAdapter;
import com.mall.serving.query.model.ExpressageInfo;
import com.mall.view.R;
public class ExpressageAdapter extends NewBaseAdapter {
public ExpressageAdapter(Context c, List<ExpressageInfo> list) {
super(c, list);
}
@Override
public View getView(int position, View v, ViewGroup arg2) {
if (v == null) {
ViewCache cache = new ViewCache();
v = inflater.inflate(R.layout.query_expressage_result_list_item,
null);
cache.line_1 = v.findViewById(R.id.line_1);
cache.line_2 = v.findViewById(R.id.line_2);
cache.circle_gray = v.findViewById(R.id.circle_gray);
cache.circle_green = v.findViewById(R.id.circle_green);
cache.tv_message = (TextView) v.findViewById(R.id.tv_message);
cache.tv_time = (TextView) v.findViewById(R.id.tv_time);
v.setTag(cache);
}
ViewCache cache = (ViewCache) v.getTag();
if (position == 0) {
cache.line_1.setVisibility(View.INVISIBLE);
} else {
cache.line_1.setVisibility(View.VISIBLE);
}
ExpressageInfo info = (ExpressageInfo) list.get(position);
cache.tv_message.setText(info.getRemark());
cache.tv_time.setText(info.getDatetime());
if (position == 0) {
cache.circle_green.setVisibility(View.VISIBLE);
cache.circle_gray.setVisibility(View.GONE);
int color = context.getResources().getColor(R.color.green_query);
cache.tv_message.setTextColor(color);
cache.tv_time.setTextColor(color);
} else {
cache.circle_green.setVisibility(View.GONE);
cache.circle_gray.setVisibility(View.VISIBLE);
cache.tv_message.setTextColor(Color.BLACK);
cache.tv_time.setTextColor(Color.BLACK);
}
return v;
}
class ViewCache {
private View line_1;
private View line_2;
private View circle_green;
private View circle_gray;
private TextView tv_message;
private TextView tv_time;
}
}
|
[
"714948055@qq.com"
] |
714948055@qq.com
|
4336ef9c01de5f9a3ab40f627f92d5d0d4932399
|
de15053d4d2ba8f3a2473a6da70deb9557c66a0e
|
/src/revision_v2/search_and_sort/binarysearchalgorithm/MinMaxDivision.java
|
ea3b48aaacfef4cd5edfd35616c9ddb63df81dc8
|
[] |
no_license
|
derricknjeru/AlgoDatastructure
|
4f1fa450d95b54fba513209fb15c4c7805a336ad
|
a065bbed5781e735cb2e722796625a571961479f
|
refs/heads/main
| 2023-09-01T17:35:37.879295
| 2023-08-23T17:00:19
| 2023-08-23T17:00:19
| 242,182,884
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 144
|
java
|
package revision_v2.search_and_sort.binarysearchalgorithm;
public class MinMaxDivision {
public static void main(String[] args) {
}
}
|
[
"derricknjeru5@gmail.com"
] |
derricknjeru5@gmail.com
|
ef9c58324b72fb6fa853c8c3a0ac3e4eb1d94a43
|
d197603718990bb9c42203664f9e61a4400d3771
|
/blogcore/src/main/java/cn/commond/performer/Television.java
|
875b39d37c12f877c22b91454ccb9eba2251931a
|
[] |
no_license
|
ZhouKaiDongGitHub/kzhou
|
e107ae6a49ae6f0424f2337f8c7b535cf5b4f2ad
|
43e74abd7a3545f4eb814d34895fce2be5df8901
|
refs/heads/master
| 2023-01-05T08:44:44.851787
| 2019-08-07T03:03:04
| 2019-08-07T03:03:04
| 200,954,298
| 1
| 0
| null | 2023-01-02T22:12:45
| 2019-08-07T02:08:17
|
Java
|
UTF-8
|
Java
| false
| false
| 205
|
java
|
package cn.commond.performer;
public class Television {
public void on(){
System.out.println("电视打开");
}
public void off(){
System.out.println("电视关闭");
}
}
|
[
"Kaidong.Zhou@eisgroup.com"
] |
Kaidong.Zhou@eisgroup.com
|
5b1d7ceadd59de2823e00005cfbca4f6564860fc
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/18/18_98f7d96932872b7ffaaaa8a1fa98891542ccf0d0/GrailsContentBufferingResponse/18_98f7d96932872b7ffaaaa8a1fa98891542ccf0d0_GrailsContentBufferingResponse_t.java
|
77058fd8c750ccb306c7116d481a6cdf9bc11ec3
|
[] |
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
| 4,265
|
java
|
/*
* Copyright 2004-2005 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.codehaus.groovy.grails.web.sitemesh;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;
import org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequest;
import org.codehaus.groovy.grails.web.util.WebUtils;
import com.opensymphony.module.sitemesh.PageParser;
import com.opensymphony.module.sitemesh.PageParserSelector;
import com.opensymphony.sitemesh.Content;
import com.opensymphony.sitemesh.ContentProcessor;
import com.opensymphony.sitemesh.webapp.SiteMeshWebAppContext;
public class GrailsContentBufferingResponse extends HttpServletResponseWrapper {
private final GrailsPageResponseWrapper pageResponseWrapper;
private final ContentProcessor contentProcessor;
private final SiteMeshWebAppContext webAppContext;
private boolean redirectCalled;
public GrailsContentBufferingResponse(HttpServletResponse response, final ContentProcessor contentProcessor, final SiteMeshWebAppContext webAppContext) {
super(new GrailsPageResponseWrapper(webAppContext.getRequest(), response, new PageParserSelector() {
public boolean shouldParsePage(String contentType) {
return contentProcessor.handles(contentType);
}
public PageParser getPageParser(String contentType) {
// Migration: Not actually needed by PageResponseWrapper, so long as getPage() isn't called.
return null;
}
}) {
@Override
public void setContentType(String contentType) {
webAppContext.setContentType(contentType);
super.setContentType(contentType);
}
});
this.contentProcessor = contentProcessor;
this.webAppContext = webAppContext;
pageResponseWrapper = (GrailsPageResponseWrapper) getResponse();
}
public boolean isUsingStream() {
return pageResponseWrapper.isUsingStream();
}
public boolean isActive() {
GrailsPageResponseWrapper superResponse= (GrailsPageResponseWrapper) getResponse();
return superResponse.isSitemeshActive() || superResponse.isGspSitemeshActive();
}
public Content getContent() throws IOException {
GSPSitemeshPage content=(GSPSitemeshPage)webAppContext.getRequest().getAttribute(GrailsPageFilter.GSP_SITEMESH_PAGE);
if (content != null && content.isUsed()) {
return content;
}
char[] data = pageResponseWrapper.getContents();
if (data != null) {
return contentProcessor.build(data, webAppContext);
}
return null;
}
@Override
public void sendError(int sc) throws IOException {
GrailsWebRequest webRequest = WebUtils.retrieveGrailsWebRequest();
try {
if(!redirectCalled && !isCommitted())
super.sendError(sc);
}
finally {
WebUtils.storeGrailsWebRequest(webRequest);
}
}
@Override
public void sendError(int sc, String msg) throws IOException {
GrailsWebRequest webRequest = WebUtils.retrieveGrailsWebRequest();
try {
if(!redirectCalled && !isCommitted())
super.sendError(sc, msg);
}
finally {
WebUtils.storeGrailsWebRequest(webRequest);
}
}
@Override
public void sendRedirect(String location) throws IOException {
this.redirectCalled = true;
super.sendRedirect(location);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
1490af4b02b9df992bfa3cb50bc925c267d16161
|
c1a29f3534b5dffcfac6e8040120210f56f37a70
|
/spring-functionaltest-web/src/main/java/jp/co/ntt/fw/spring/functionaltest/app/ssmn/SSMN0301003Controller.java
|
b64808926c315cc2d413a1213478f6252dae9f3d
|
[] |
no_license
|
ptmxndys/spring-functionaltest
|
658bb332efcc811168c05d9d1366871ce3650222
|
ba2f34feb1da6312d868444fb41cf86ef554cd13
|
refs/heads/master
| 2023-02-11T21:18:06.677036
| 2021-01-04T09:43:01
| 2021-01-07T08:38:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,302
|
java
|
/*
* Copyright(c) 2014 NTT Corporation.
*
* 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 jp.co.ntt.fw.spring.functionaltest.app.ssmn;
import javax.inject.Inject;
import jp.co.ntt.fw.spring.functionaltest.app.cmmn.exception.InvalidRequestException;
import jp.co.ntt.fw.spring.functionaltest.app.ssmn.MemberForm.Address;
import jp.co.ntt.fw.spring.functionaltest.app.ssmn.MemberForm.Other;
import jp.co.ntt.fw.spring.functionaltest.app.ssmn.MemberForm.Personal;
import jp.co.ntt.fw.spring.functionaltest.domain.model.Member;
import jp.co.ntt.fw.spring.functionaltest.domain.service.ssmn.MemberService;
import com.github.dozermapper.core.Mapper;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.SessionAttributes;
import org.springframework.web.bind.support.SessionStatus;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import org.terasoluna.gfw.common.message.ResultMessages;
@Controller
@SessionAttributes(value = { "memberForm" })
@RequestMapping(value = "ssmn/0301/003")
public class SSMN0301003Controller {
@Inject
Mapper beanMapper;
@Inject
MemberService memberService;
@RequestMapping(method = RequestMethod.GET)
public String handle01003(Model model, SessionStatus sessionStatus) {
sessionStatus.setComplete();
return "redirect:/ssmn/0301/003?personalForm";
}
@RequestMapping(method = RequestMethod.GET, params = "personalForm")
public String createMemberPersonalForm(Model model, MemberForm form) {
model.addAttribute(form);
return "ssmn/createMemberPersonal";
}
@RequestMapping(method = RequestMethod.POST, params = "addressForm")
public String createMemberAddressForm(Model model,
@Validated(Personal.class) MemberForm form, BindingResult result) {
if (result.hasErrors()) {
return createRedoMemberPersonal(model, form);
}
model.addAttribute(form);
return "ssmn/createMemberAddress";
}
@RequestMapping(method = RequestMethod.POST, params = "otherForm")
public String createMemberOtherForm(Model model,
@Validated(Address.class) MemberForm form, BindingResult result) {
if (result.hasErrors()) {
return createRedoMemberAddress(model, form);
}
model.addAttribute(form);
return "ssmn/createMemberOther";
}
@RequestMapping(method = RequestMethod.POST, params = "confirm")
public String createMemberConfirm(Model model,
@Validated(Other.class) MemberForm form, BindingResult result) {
if (result.hasErrors()) {
return createRedoMemberOther(model, form);
}
model.addAttribute(form);
return "ssmn/createMemberConfirm";
}
@RequestMapping(method = RequestMethod.POST)
public String createMember(@Validated({ Personal.class, Address.class,
Other.class }) MemberForm form, BindingResult result,
RedirectAttributes redirectAttributes) {
if (result.hasErrors()) {
throw new InvalidRequestException(ResultMessages.error().add(
"e.sf.cmmn.8002"));
}
Member member = beanMapper.map(form, Member.class);
member = memberService.createMember(member);
redirectAttributes.addFlashAttribute(member);
ResultMessages messages = ResultMessages.success().add(
"i.sf.ssmn.0001");
redirectAttributes.addFlashAttribute(messages);
return "redirect:/ssmn/0301/003?complete";
}
@RequestMapping(method = RequestMethod.GET, params = "complete")
public String createMemberComplete(Model model,
SessionStatus sessionStatus) {
sessionStatus.setComplete();
return "ssmn/createMemberComplete";
}
@RequestMapping(method = RequestMethod.POST, params = "redoAddress")
public String createRedoMemberAddress(Model model, MemberForm form) {
model.addAttribute(form);
return "ssmn/createMemberAddress";
}
@RequestMapping(method = RequestMethod.POST, params = "redoPersonal")
public String createRedoMemberPersonal(Model model, MemberForm form) {
model.addAttribute(form);
return "ssmn/createMemberPersonal";
}
@RequestMapping(method = RequestMethod.POST, params = "redo")
public String createRedoMemberOther(Model model, MemberForm form) {
model.addAttribute(form);
return "ssmn/createMemberOther";
}
}
|
[
"macchinetta.fw@gmail.com"
] |
macchinetta.fw@gmail.com
|
42fe4643189d6fede26c4f2379ca8efebb69f2a6
|
a2440dbe95b034784aa940ddc0ee0faae7869e76
|
/modules/lwjgl/vma/src/generated/java/org/lwjgl/util/vma/VmaAllocateDeviceMemoryFunction.java
|
0210c9c5be0890f1f41d68a40fbf9be7a1b200bb
|
[
"MIT",
"LGPL-2.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
LWJGL/lwjgl3
|
8972338303520c5880d4a705ddeef60472a3d8e5
|
67b64ad33bdeece7c09b0f533effffb278c3ecf7
|
refs/heads/master
| 2023-08-26T16:21:38.090410
| 2023-08-26T16:05:52
| 2023-08-26T16:05:52
| 7,296,244
| 4,835
| 1,004
|
BSD-3-Clause
| 2023-09-10T12:03:24
| 2012-12-23T15:40:04
|
Java
|
UTF-8
|
Java
| false
| false
| 2,691
|
java
|
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.util.vma;
import javax.annotation.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.MemoryUtil.*;
/**
* Instances of this class may be set to the {@link VmaDeviceMemoryCallbacks} struct.
*
* <h3>Type</h3>
*
* <pre><code>
* void (*{@link #invoke}) (
* VmaAllocator allocator,
* uint32_t memoryType,
* VkDeviceMemory memory,
* VkDeviceSize size,
* void *pUserData
* )</code></pre>
*/
public abstract class VmaAllocateDeviceMemoryFunction extends Callback implements VmaAllocateDeviceMemoryFunctionI {
/**
* Creates a {@code VmaAllocateDeviceMemoryFunction} instance from the specified function pointer.
*
* @return the new {@code VmaAllocateDeviceMemoryFunction}
*/
public static VmaAllocateDeviceMemoryFunction create(long functionPointer) {
VmaAllocateDeviceMemoryFunctionI instance = Callback.get(functionPointer);
return instance instanceof VmaAllocateDeviceMemoryFunction
? (VmaAllocateDeviceMemoryFunction)instance
: new Container(functionPointer, instance);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code functionPointer} is {@code NULL}. */
@Nullable
public static VmaAllocateDeviceMemoryFunction createSafe(long functionPointer) {
return functionPointer == NULL ? null : create(functionPointer);
}
/** Creates a {@code VmaAllocateDeviceMemoryFunction} instance that delegates to the specified {@code VmaAllocateDeviceMemoryFunctionI} instance. */
public static VmaAllocateDeviceMemoryFunction create(VmaAllocateDeviceMemoryFunctionI instance) {
return instance instanceof VmaAllocateDeviceMemoryFunction
? (VmaAllocateDeviceMemoryFunction)instance
: new Container(instance.address(), instance);
}
protected VmaAllocateDeviceMemoryFunction() {
super(CIF);
}
VmaAllocateDeviceMemoryFunction(long functionPointer) {
super(functionPointer);
}
private static final class Container extends VmaAllocateDeviceMemoryFunction {
private final VmaAllocateDeviceMemoryFunctionI delegate;
Container(long functionPointer, VmaAllocateDeviceMemoryFunctionI delegate) {
super(functionPointer);
this.delegate = delegate;
}
@Override
public void invoke(long allocator, int memoryType, long memory, long size, long pUserData) {
delegate.invoke(allocator, memoryType, memory, size, pUserData);
}
}
}
|
[
"iotsakp@gmail.com"
] |
iotsakp@gmail.com
|
6865fdde6a099be5daf71361879610f0c9fa6260
|
1c4fff57bb2884d3f908ed317276fffb99a252f4
|
/namelayer-mc/src/main/java/vg/civcraft/mc/namelayer/mc/commands/ListGroups.java
|
4f90385fdc0cf822102e3aa646769ed1e4d887d2
|
[
"BSD-3-Clause"
] |
permissive
|
DevotedMC/NameLayer
|
b132b0c2be41c938674c2500d7025f7fe4cebb3b
|
6e82dca1c8d7926c74f2ff4c42b7c03e1fbd8567
|
refs/heads/master
| 2021-07-14T00:29:42.353595
| 2021-03-19T02:55:29
| 2021-03-19T02:55:29
| 47,846,028
| 3
| 17
|
NOASSERTION
| 2021-03-19T02:55:29
| 2015-12-11T19:12:29
|
Java
|
UTF-8
|
Java
| false
| false
| 1,400
|
java
|
package vg.civcraft.mc.namelayer.mc.commands;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import vg.civcraft.mc.civmodcore.command.CivCommand;
import vg.civcraft.mc.civmodcore.command.StandaloneCommand;
import vg.civcraft.mc.namelayer.core.Group;
import vg.civcraft.mc.namelayer.mc.NameLayerPlugin;
@CivCommand(id = "nllg")
public class ListGroups extends StandaloneCommand {
@Override
public boolean execute(CommandSender sender, String[] args) {
Player player = (Player) sender;
Set<Group> groups = NameLayerPlugin.getInstance().getGroupTracker().getGroupsForPlayer(player.getUniqueId());
if (groups.isEmpty()) {
sender.sendMessage(ChatColor.GREEN + "You are not a member of any groups");
return true;
}
StringBuilder sb = new StringBuilder();
sb.append(ChatColor.GREEN);
sb.append("Your groups are:\n");
for(Group group : groups) {
sb.append(ChatColor.DARK_GRAY);
sb.append(" - ");
sb.append(group.getColoredName());
sb.append(ChatColor.YELLOW);
sb.append(" (");
sb.append(group.getRank(player.getUniqueId()).getName());
sb.append(")\n");
}
sender.sendMessage(sb.toString());
return true;
}
public List<String> tabComplete(CommandSender sender, String[] args) {
return Collections.emptyList();
}
}
|
[
"maxopoly3@gmail.com"
] |
maxopoly3@gmail.com
|
b73d0529540d599b2029b114f743f0ace0f25761
|
5e80c24ca9218141ce5aa05c2ee61789d4fa4dc6
|
/gasAndroid/.svn/pristine/b7/b73d0529540d599b2029b114f743f0ace0f25761.svn-base
|
abed4207e292189058a55f1ee900bea3f6142bbc
|
[] |
no_license
|
yangyuqi/luckyApp
|
998ee4c11bd3f8df5036ed4257e12aba5da4b7b8
|
e1aebd06bbd4cfa0289b568382c06871a57751e2
|
refs/heads/master
| 2021-10-11T08:56:18.595447
| 2019-01-24T03:52:53
| 2019-01-24T03:52:53
| 167,296,948
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,753
|
/*
* Copyright (C) 2008 ZXing 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 com.yunqilai.delivery.third.cn.hugo.android.scanner.config;
/**
* The main settings activity.
*
* @author dswitkin@google.com (Daniel Switkin)
* @author Sean Owen
*/
public final class Config {
public static final String KEY_DECODE_1D = "preferences_decode_1D";
public static final String KEY_DECODE_1D_PRODUCT = "preferences_decode_1D_product";
public static final String KEY_DECODE_1D_INDUSTRIAL = "preferences_decode_1D_industrial";
public static final String KEY_DECODE_QR = "preferences_decode_QR";
public static final String KEY_DECODE_DATA_MATRIX = "preferences_decode_Data_Matrix";
public static final String KEY_DECODE_AZTEC = "preferences_decode_Aztec";
public static final String KEY_DECODE_PDF417 = "preferences_decode_PDF417";
public static final String KEY_CUSTOM_PRODUCT_SEARCH = "preferences_custom_product_search";
public static final String KEY_PLAY_BEEP = "preferences_play_beep";
public static final String KEY_VIBRATE = "preferences_vibrate";
public static final String KEY_COPY_TO_CLIPBOARD = "preferences_copy_to_clipboard";
public static final String KEY_FRONT_LIGHT_MODE = "preferences_front_light_mode";
public static final String KEY_BULK_MODE = "preferences_bulk_mode";
public static final String KEY_REMEMBER_DUPLICATES = "preferences_remember_duplicates";
public static final String KEY_SUPPLEMENTAL = "preferences_supplemental";
public static final String KEY_AUTO_FOCUS = "preferences_auto_focus";
public static final String KEY_INVERT_SCAN = "preferences_invert_scan";
public static final String KEY_SEARCH_COUNTRY = "preferences_search_country";
public static final String KEY_DISABLE_AUTO_ORIENTATION = "preferences_orientation";
public static final String KEY_DISABLE_CONTINUOUS_FOCUS = "preferences_disable_continuous_focus";
public static final String KEY_DISABLE_EXPOSURE = "preferences_disable_exposure";
public static final String KEY_DISABLE_METERING = "preferences_disable_metering";
public static final String KEY_DISABLE_BARCODE_SCENE_MODE = "preferences_disable_barcode_scene_mode";
public static final String KEY_AUTO_OPEN_WEB = "preferences_auto_open_web";
}
|
[
"yuqi.yang@ughen.com"
] |
yuqi.yang@ughen.com
|
|
0398880bdde1efe1f288f950fd057a729be0a1db
|
a64010cfd9b18dbf6e30455f6b6401d37423d03c
|
/src/test/java/fr/quatrevieux/araknemu/data/world/repository/implementation/local/NpcRepositoryCacheTest.java
|
320c3ce889c519a35ad568666e977cd950f04142
|
[] |
no_license
|
OrionGoultard/Araknemu
|
db6fe44d1c28d4c0633c2ef6f335eb843377d798
|
0b7fcf24bd0c64bee6e633136ba33c4a67da3662
|
refs/heads/master
| 2020-07-06T14:06:28.566113
| 2019-08-15T19:16:15
| 2019-08-15T19:16:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,505
|
java
|
package fr.quatrevieux.araknemu.data.world.repository.implementation.local;
import fr.quatrevieux.araknemu.core.dbal.repository.EntityNotFoundException;
import fr.quatrevieux.araknemu.data.world.entity.environment.npc.Npc;
import fr.quatrevieux.araknemu.data.world.repository.environment.npc.NpcRepository;
import fr.quatrevieux.araknemu.game.GameBaseCase;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import static org.junit.jupiter.api.Assertions.*;
class NpcRepositoryCacheTest extends GameBaseCase {
private NpcRepositoryCache repository;
@Override
@BeforeEach
public void setUp() throws Exception {
super.setUp();
dataSet.pushNpcs();
repository = new NpcRepositoryCache(
container.get(NpcRepository.class)
);
}
@Test
void getNotFound() {
assertThrows(EntityNotFoundException.class, () -> repository.get(-5));
}
@Test
void getSame() {
assertSame(
repository.get(457),
repository.get(457)
);
}
@Test
void getUsingEntity() {
assertSame(
repository.get(new Npc(457, 0, null, null, null)),
repository.get(457)
);
}
@Test
void hasNotLoaded() {
assertTrue(repository.has(new Npc(457, 0, null, null, null)));
assertFalse(repository.has(new Npc(-1, 0, null, null, null)));
}
@Test
void hasCached() {
repository.get(457);
assertTrue(repository.has(new Npc(457, 0, null, null, null)));
}
@Test
void all() {
Collection<Npc> npcs = repository.all();
assertCount(3, npcs);
for (Npc npc : npcs) {
assertSame(npc, repository.get(npc));
}
}
@Test
void byMapIdNotLoaded() {
assertEquals(Collections.emptyList(), repository.byMapId(-5));
assertEquals(Arrays.asList(repository.get(457), repository.get(458)), repository.byMapId(10302));
assertEquals(Arrays.asList(repository.get(472)), repository.byMapId(10340));
}
@Test
void byMapIdLoaded() {
repository.all();
assertEquals(Collections.emptyList(), repository.byMapId(-5));
assertEquals(Arrays.asList(repository.get(457), repository.get(458)), repository.byMapId(10302));
assertEquals(Arrays.asList(repository.get(472)), repository.byMapId(10340));
}
}
|
[
"quatrevieux.vincent@gmail.com"
] |
quatrevieux.vincent@gmail.com
|
0d3cc60d9286ef285c4721373e36256674e2e9ba
|
4f86cb0b5b0f96c060cfbbc3d25163e87bf03cd4
|
/src/main/java/Lab_2/HistoryGetServlet.java
|
84a97bf594cb019fafb2359f93b1fd04ddd9e8f2
|
[] |
no_license
|
1ofth/pip2
|
5c6a83309ff2cb7712c6b8dff1a66b6a7d2885fc
|
25ba76ccc3b5db9b4aeb5fc2504442e165f7dff4
|
refs/heads/master
| 2020-03-31T03:50:17.654784
| 2018-10-08T05:46:25
| 2018-10-08T05:46:25
| 151,880,193
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,611
|
java
|
package Lab_2;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
public class HistoryGetServlet extends HttpServlet {
private volatile List list = null;
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
if(list==null){
list = (ArrayList) request.getSession().getAttribute("history");
request.getSession().setAttribute("history", list);
}
} catch (Exception e){
e.printStackTrace();
request.getServletContext().getRequestDispatcher("/index.jsp").forward(request, response);
}
if(list == null){
response.sendError(500, "Some bugs with array!");
} else {
response.setContentType("application/json");
PrintWriter out = response.getWriter();
for (Object newPoint : list) {
Point point = (Point) newPoint;
out.println("{\"X\":\"" + point.x +
"\",\"Y\":\"" + point.y +
"\",\"R\":\"" + point.R +
"\",\"result\":\"" + point.isInArea +
"\",\"time\":\"" + point.time +
"\",\"work_time\":\"" + point.execTime +
"\"}");
}
}
}
}
|
[
"="
] |
=
|
ce8cf0f934c30e2a83bf4b291483f5c2c8e95307
|
fdfb481a7622f03aec3b6d8a2369390636394aaa
|
/arms/src/main/java/com/jess/arms/base/App.java
|
c5ed8ca7a9b32961849d6daf599844f957af6f60
|
[] |
no_license
|
woyl/zhongyou
|
f0ee5252adb6ced5fc781c3659d546d30605ca57
|
bee0ba60d5fb753e2e9176b46de40e2e7da8fb27
|
refs/heads/master
| 2023-01-13T17:39:38.127004
| 2020-11-19T08:24:12
| 2020-11-19T08:24:12
| 314,171,503
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,644
|
java
|
/*
* Copyright 2017 JessYan
*
* 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.jess.arms.base;
import androidx.annotation.NonNull;
import com.jess.arms.di.component.AppComponent;
/**
* ================================================
* 框架要求框架中的每个 {@link android.app.Application} 都需要实现此类, 以满足规范
*
* @see BaseApplication
* @see <a href="https://github.com/JessYanCoding/MVPArms/wiki">请配合官方 Wiki 文档学习本框架</a>
* @see <a href="https://github.com/JessYanCoding/MVPArms/wiki/UpdateLog">更新日志, 升级必看!</a>
* @see <a href="https://github.com/JessYanCoding/MVPArms/wiki/Issues">常见 Issues, 踩坑必看!</a>
* @see <a href="https://github.com/JessYanCoding/ArmsComponent/wiki">MVPArms 官方组件化方案 ArmsComponent, 进阶指南!</a>
* Created by JessYan on 25/04/2017 14:54
* <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
* <a href="https://github.com/JessYanCoding">Follow me</a>
* ================================================
*/
public interface App {
@NonNull
AppComponent getAppComponent();
}
|
[
"676051397@qq.com"
] |
676051397@qq.com
|
1708eff30af562dd36b4eb436a0da93f866d2fe6
|
4c028ca3cb9daf671df46fc4ee0ba911db134649
|
/Sigal-Maven/src/main/java/com/sigal/informeinterno/action/InformeInternoAction.java
|
913c76d52356d8bf944f443b6c6c402bf7680cc5
|
[] |
no_license
|
gcorreageek/proyectosETC
|
88888318db15f93ff1c5cf0b089de9ff41f668b1
|
93a320e8f34a42b035375f2059753961e5c37d85
|
refs/heads/master
| 2020-12-24T18:12:51.705330
| 2014-05-16T06:48:30
| 2014-05-16T06:48:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,294
|
java
|
/**
* InformeInternoAction 22/07/2013p
*/
package com.sigal.informeinterno.action;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.sigal.informeinterno.bean.InformeInternoDTO;
import com.sigal.informeinterno.bean.InformeInternoDetalleDTO;
import com.sigal.informeinterno.service.InformeInternoService;
import com.sigal.mantenimiento.bean.ProductoDTO;
import com.sigal.mantenimiento.service.ProductoService;
import com.sigal.pedido.bean.DetallePedidoDTO;
import com.sigal.pedido.service.PedidoDetalleService;
import com.sigal.seguridad.bean.AreaDTO;
import com.sigal.seguridad.bean.UsuarioDTO;
import com.sigal.seguridad.service.AreaService;
/**
* @author Gustavo A. Correa C.
*
*/
@ParentPackage("Sigal-Maven")
public class InformeInternoAction extends ActionSupport {
InformeInternoService objInfInterServ = new InformeInternoService();
ProductoService objProdServ = new ProductoService();
PedidoDetalleService objPedDetServ = new PedidoDetalleService();
ProductoDTO objProducto;
AreaService objAreaServ = new AreaService();
private List<AreaDTO> lstArea;
Map<String, Object> lasesion = ActionContext.getContext().getSession();
private Integer codProd;
private String mensaje;
private Integer rsult;
private InformeInternoDTO objInformeInterno;
List<InformeInternoDetalleDTO> lstIIDet;
// rsult mensaje
private final int totalProductoEnElDetalle=2;
private ArrayList<DetallePedidoDTO> lstDetPed ;
@Action(value="/mainInformeInternoSalidaMovil",results={@Result(name="success",location="/paginas/informe_interno/salida_movil.jsp")})
public String mainInformeInternoSalidaMovil(){
lstDetPed = (ArrayList<DetallePedidoDTO>) lasesion.get("lstProdII");
System.out.println("CodProd:"+getCodProd());
ProductoDTO prod = new ProductoDTO();
prod.setCod_producto(getCodProd());
try {
prod = objProdServ.getProducto(prod);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if(prod==null){
this.setMensaje("No es un producto Valido!");
this.setRsult(-1);
}else{
setObjProducto(prod);
}
return SUCCESS;
}
@Action(value="/mainInformeInternoSalida",results={@Result(name="success",type="tiles",location="d_maininformeinternosalida")})
public String mainInformeInternoSalida(){
System.out.println("entra1");
// Object[] obj = (Object[]) lasesion.get("DatosQR");
// if(obj!=null){
// if("Salida".equals(obj[1])){
// codProd = (Integer) obj[0];
// }
// }
lstArea = objAreaServ.listaArea();
return SUCCESS;
}
@Action(value="/guardarIIS",results={@Result(name="success",location="/paginas/pedido/pedido_evaluacion_mensaje.jsp")})
public String guardarIIS(){
System.out.println("guarda iis"+objInformeInterno.getCod_pedido());
try {
UsuarioDTO usuario = (UsuarioDTO) lasesion.get("objUsuario");
objInformeInterno.setCod_usuario(usuario.getCod_usuario());
objInformeInterno.setTipo_informe_interno("Salida");
lstIIDet = new ArrayList<InformeInternoDetalleDTO>();
DetallePedidoDTO pedDet = new DetallePedidoDTO();
if(objInformeInterno.getCod_pedido()==null){
this.mensaje = "Agrege Pedido";
this.rsult= 0;
return SUCCESS;
}
pedDet.setCod_solicitudPedido(objInformeInterno.getCod_pedido());
List<DetallePedidoDTO> lstDetPedido= objPedDetServ.listaPedidoXidPedido(pedDet);
for (DetallePedidoDTO detallePedidoDTO : lstDetPedido) {
InformeInternoDetalleDTO iiDet = new InformeInternoDetalleDTO();
iiDet.setCod_detalle_pedido(detallePedidoDTO.getCod_detallePedido());
ProductoDTO p = new ProductoDTO();
p.setCod_producto(detallePedidoDTO.getCod_producto());
p = objProdServ.getProducto(p);
if(p.getStock_producto()<detallePedidoDTO.getCantidad()){
this.mensaje = "No hay stock suficiente para el producto \""+p.getDesc_producto()+"\"";
this.rsult= 0;
return SUCCESS;
}
lstIIDet.add(iiDet);
}
Integer r = (Integer) objInfInterServ.registrar(objInformeInterno, lstIIDet);
if(r>0){
this.mensaje = "Se ingreso correctamente el Informe Interno Salida";
this.rsult= 1;
}
} catch (Exception e) {
e.printStackTrace();
this.mensaje = "Ocurrio un error en guardar el IIS";
this.rsult= 0;
}
return SUCCESS;
}
@Action(value="/guardarIIE",results={@Result(name="success",location="/paginas/pedido/pedido_evaluacion_mensaje.jsp")})
public String guardarIIE(){
try {
UsuarioDTO usuario = (UsuarioDTO) lasesion.get("objUsuario");
objInformeInterno.setCod_usuario(usuario.getCod_usuario());
objInformeInterno.setTipo_informe_interno("Entrada");
lstIIDet = new ArrayList<InformeInternoDetalleDTO>();
DetallePedidoDTO pedDet = new DetallePedidoDTO();
if(objInformeInterno.getCod_pedido()==null){
this.mensaje = "Agrege Pedido";
this.rsult= 0;
return SUCCESS;
}
pedDet.setCod_solicitudPedido(objInformeInterno.getCod_pedido());
List<DetallePedidoDTO> lstDetPedido= objPedDetServ.listaPedidoXidPedido(pedDet);
for (DetallePedidoDTO detallePedidoDTO : lstDetPedido) {
InformeInternoDetalleDTO iiDet = new InformeInternoDetalleDTO();
iiDet.setCod_detalle_pedido(detallePedidoDTO.getCod_detallePedido());
lstIIDet.add(iiDet);
}
Integer r = (Integer) objInfInterServ.registrar(objInformeInterno, lstIIDet);
if(r>0){
this.mensaje = "Se ingreso correctamente el Informe Interno Entrada";
this.rsult= 1;
}
} catch (Exception e) {
e.printStackTrace();
this.mensaje = "Ocurrio un error en guardar el IIE";
this.rsult= 0;
}
return SUCCESS;
}
@Action(value="/mainInformeInternoEntrada",results={@Result(name="success",type="tiles",location="d_maininformeinternoentrada")})
public String mainInformeInternoEntrada(){
lstArea = objAreaServ.listaArea();
// Object[] obj = (Object[]) lasesion.get("DatosQR");
// if(obj!=null){
// if("Entrada".equals(obj[1])){
// codProd = (Integer) obj[0];
// }
// }
return SUCCESS;
}
public Object getPedidos(Integer idProd){
if(idProd!=null ){
// objPedDetServ.listaPedidoXidPedido(det)
}
return null;
}
public Integer getCodProd() {
return codProd;
}
public void setCodProd(Integer codProd) {
this.codProd = codProd;
}
public ProductoDTO getObjProducto() {
return objProducto;
}
public void setObjProducto(ProductoDTO objProducto) {
this.objProducto = objProducto;
}
public String getMensaje() {
return mensaje;
}
public void setMensaje(String mensaje) {
this.mensaje = mensaje;
}
public Integer getRsult() {
return rsult;
}
public void setRsult(Integer rsult) {
this.rsult = rsult;
}
public List<AreaDTO> getLstArea() {
return lstArea;
}
public void setLstArea(List<AreaDTO> lstArea) {
this.lstArea = lstArea;
}
public InformeInternoDTO getObjInformeInterno() {
return objInformeInterno;
}
public void setObjInformeInterno(InformeInternoDTO objInformeInterno) {
this.objInformeInterno = objInformeInterno;
}
}
|
[
"gcorreageek@gmail.com"
] |
gcorreageek@gmail.com
|
06b87108b4c4496701ab60368272d049f1c29c14
|
5df955ee17df4b5cabc91c60f73d1ad8574ff892
|
/src/main/java/mutants/ERS/mutants/AOIS_27/ExpenseReimbursementSystem.java
|
4dac3cfbaca6b222f116fd4af8790cb95f9dca93
|
[] |
no_license
|
phantomDai/dynamicpartitiontesting
|
172408a8bdde0a3c76098fde8b04c1d41abd70b3
|
a059bea43265391078ef9d070fd14f7ec63a7138
|
refs/heads/master
| 2022-06-30T23:44:34.464454
| 2019-12-13T12:30:05
| 2019-12-13T12:30:05
| 227,835,772
| 0
| 0
| null | 2022-06-17T02:46:54
| 2019-12-13T12:29:48
|
Java
|
UTF-8
|
Java
| false
| false
| 3,679
|
java
|
package mutants.ERS.mutants.AOIS_27;// This is a mutant program.
// Author : ysma
import java.util.Scanner;
public class ExpenseReimbursementSystem
{
private String levelOfSalesStaff;
private double allowableMileage;
private double costPerKilometer;
public double calculateReimbursementAmount( String stafflevel, double actualmonthlymileage, double monthlysalesamount, double airfareamount, double otherexpensesamount )
{
double feeForOverUseOfCar;
double airfareReimbursement;
double reimbursementsOtherThanAirfare;
if (stafflevel.equals( "seniormanager" )) {
allowableMileage = 4000;
costPerKilometer = 5;
if (actualmonthlymileage < allowableMileage) {
actualmonthlymileage = allowableMileage;
}
} else {
if (stafflevel.equals( "manager" )) {
allowableMileage = 3000;
costPerKilometer = 8;
if (actualmonthlymileage < allowableMileage) {
actualmonthlymileage = allowableMileage;
}
} else {
if (stafflevel.equals( "supervisor" )) {
allowableMileage = 0;
costPerKilometer = 0;
} else {
new java.io.IOException( "Invalid stafflevel" );
}
}
}
feeForOverUseOfCar = costPerKilometer++ * (actualmonthlymileage - allowableMileage);
if (stafflevel.equals( "seniormanager" )) {
airfareReimbursement = airfareamount;
} else {
if (stafflevel.equals( "manager" )) {
if (monthlysalesamount >= 50000) {
airfareReimbursement = airfareamount;
} else {
airfareReimbursement = 0;
}
} else {
if (stafflevel.equals( "supervisor" )) {
if (monthlysalesamount >= 80000) {
airfareReimbursement = airfareamount;
} else {
airfareReimbursement = 0;
}
} else {
new java.io.IOException( "Invalid stafflevel" );
airfareReimbursement = 0;
}
}
}
if (monthlysalesamount >= 100000) {
reimbursementsOtherThanAirfare = otherexpensesamount;
} else {
reimbursementsOtherThanAirfare = 0;
}
double totalReimbursementAmount = -feeForOverUseOfCar + airfareReimbursement + reimbursementsOtherThanAirfare;
return totalReimbursementAmount;
}
public static void main( String[] args )
{
Scanner s = new Scanner( System.in );
String stafflevel = null;
System.out.println( "please enter stafflevel:" );
stafflevel = s.next();
System.out.println( "please enter actual monthly mileage:" );
double actualmonthlymileage = s.nextDouble();
System.out.println( "please enter monthly sales amount:" );
double monthlysalesamount = s.nextDouble();
System.out.println( "please enter airfare:" );
double airfare = s.nextDouble();
System.out.println( "please enter other expenses:" );
double otherexpenses = s.nextDouble();
ExpenseReimbursementSystem sys = new ExpenseReimbursementSystem();
double amount = sys.calculateReimbursementAmount( stafflevel, actualmonthlymileage, monthlysalesamount, airfare, otherexpenses );
System.out.println( "total reimbursement amount: " + String.valueOf( amount ) );
}
}
|
[
"daihepeng@sina.cn"
] |
daihepeng@sina.cn
|
5f33be905011f3f2dab45af3da132a11d5374240
|
c97e56521b9212bc5fbc3001ef335c4567a4c8d3
|
/src/com/perl5/lang/perl/psi/stubs/variables/PerlScalarsStubIndex.java
|
07c3011215b69297a438cc0c1af7ee9bd72d7513
|
[
"Apache-2.0"
] |
permissive
|
ajinkyakulkarni/Perl5-IDEA
|
80fd4a1a1e7eedcc7d29f0179e98f999ebd0ab15
|
72e5f6f7c3f62b4ad6c92f4b1cde322b467687c4
|
refs/heads/master
| 2020-07-19T13:36:44.128001
| 2016-10-15T11:57:29
| 2016-10-15T11:57:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,033
|
java
|
/*
* Copyright 2016 Alexandr Evstigneev
*
* 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.perl5.lang.perl.psi.stubs.variables;
import com.intellij.psi.stubs.StubIndexKey;
import com.perl5.lang.perl.psi.PerlVariableDeclarationWrapper;
import org.jetbrains.annotations.NotNull;
/**
* Created by hurricup on 30.05.2015.
*/
public class PerlScalarsStubIndex extends PerlVariablesStubIndex
{
@NotNull
@Override
public StubIndexKey<String, PerlVariableDeclarationWrapper> getKey()
{
return KEY_SCALAR;
}
}
|
[
"hurricup@gmail.com"
] |
hurricup@gmail.com
|
75473c76be798a69b2bc5954be9cd0125839b01d
|
42786befcc2abf65082812618f1bb8596c7fb7e4
|
/src/main/java/jpuppeteer/cdp/client/entity/debugger/DebugSymbols.java
|
eae252fb5d59374f3bea47baef5c713e42998d57
|
[
"Apache-2.0"
] |
permissive
|
sunshinex/jpuppeteer
|
3e30fcd434d7ddedabd0d9eeb35620707cd5bd87
|
0b60d1800e31decf309311671ee5f9262ea22ca5
|
refs/heads/2.0
| 2023-07-20T14:27:19.565745
| 2023-07-12T17:32:48
| 2023-07-12T17:32:48
| 203,903,640
| 33
| 7
|
Apache-2.0
| 2023-07-12T17:34:26
| 2019-08-23T01:49:32
|
Java
|
UTF-8
|
Java
| false
| false
| 1,129
|
java
|
package jpuppeteer.cdp.client.entity.debugger;
/**
* Debug symbols available for a wasm script.
*/
public class DebugSymbols {
/**
* Type of the debug symbols.
*/
private jpuppeteer.cdp.client.constant.debugger.DebugSymbolsType type;
/**
* URL of the external symbol source.
*/
private String externalURL;
public void setType (jpuppeteer.cdp.client.constant.debugger.DebugSymbolsType type) {
this.type = type;
}
public jpuppeteer.cdp.client.constant.debugger.DebugSymbolsType getType() {
return this.type;
}
public void setExternalURL (String externalURL) {
this.externalURL = externalURL;
}
public String getExternalURL() {
return this.externalURL;
}
public DebugSymbols(jpuppeteer.cdp.client.constant.debugger.DebugSymbolsType type, String externalURL) {
this.type = type;
this.externalURL = externalURL;
}
public DebugSymbols(jpuppeteer.cdp.client.constant.debugger.DebugSymbolsType type) {
this.type = type;
this.externalURL = null;
}
public DebugSymbols() {
}
}
|
[
"jarvis.xu@vipshop.com"
] |
jarvis.xu@vipshop.com
|
75d459e78d21457616b439a528d0563323f3639c
|
7b6566e085578ed60aba653c0e8bd0cdb011e4aa
|
/interactive_engine/src/frontend/compiler/src/main/java/com/alibaba/maxgraph/compiler/tree/SumTreeNode.java
|
3eb5cfa402112326f07601725741cba107b73399
|
[
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-elastic-license-2018",
"LicenseRef-scancode-other-permissive"
] |
permissive
|
LDA111222/GraphScope
|
e2dd96b87cc73dc49dd09488fbb167ec92f550af
|
b485408919af470be1c4a267571a81fd08cca9cf
|
refs/heads/main
| 2023-05-03T19:42:52.869888
| 2021-05-17T08:16:34
| 2021-05-17T08:16:34
| 368,792,494
| 1
| 0
|
Apache-2.0
| 2021-05-19T08:11:40
| 2021-05-19T08:11:39
| null |
UTF-8
|
Java
| false
| false
| 4,112
|
java
|
/**
* Copyright 2020 Alibaba Group Holding Limited.
*
* 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.alibaba.maxgraph.compiler.tree;
import com.alibaba.maxgraph.Message;
import com.alibaba.maxgraph.QueryFlowOuterClass;
import com.alibaba.maxgraph.compiler.api.schema.GraphSchema;
import com.alibaba.maxgraph.compiler.tree.value.ValueValueType;
import com.alibaba.maxgraph.compiler.logical.LogicalEdge;
import com.alibaba.maxgraph.compiler.logical.LogicalUnaryVertex;
import com.alibaba.maxgraph.compiler.logical.LogicalVertex;
import com.alibaba.maxgraph.compiler.logical.function.ProcessorFunction;
import com.alibaba.maxgraph.compiler.optimizer.ContextManager;
import com.alibaba.maxgraph.compiler.tree.addition.AbstractUseKeyNode;
import com.alibaba.maxgraph.compiler.tree.addition.JoinZeroNode;
import com.alibaba.maxgraph.compiler.tree.value.ValueType;
import com.alibaba.maxgraph.compiler.logical.LogicalSubQueryPlan;
import com.alibaba.maxgraph.compiler.logical.VertexIdManager;
public class SumTreeNode extends AbstractUseKeyNode implements JoinZeroNode {
private boolean joinZeroFlag = false;
public SumTreeNode(TreeNode input, GraphSchema schema) {
super(input, NodeType.AGGREGATE, schema);
}
@Override
public LogicalSubQueryPlan buildLogicalQueryPlan(ContextManager contextManager) {
TreeNodeLabelManager labelManager = contextManager.getTreeNodeLabelManager();
VertexIdManager vertexIdManager = contextManager.getVertexIdManager();
QueryFlowOuterClass.OperatorType operatorType = getUseKeyOperator(QueryFlowOuterClass.OperatorType.SUM);
LogicalSubQueryPlan logicalSubQueryPlan = new LogicalSubQueryPlan(contextManager);
LogicalVertex sourceVertex = getInputNode().getOutputVertex();
logicalSubQueryPlan.addLogicalVertex(sourceVertex);
ValueValueType valueValueType = ValueValueType.class.cast(getInputNode().getOutputValueType());
ProcessorFunction combinerSumFunction = new ProcessorFunction(QueryFlowOuterClass.OperatorType.COMBINER_SUM,
Message.Value.newBuilder().setValueType(valueValueType.getDataType()));
LogicalVertex combinerSumVertex = new LogicalUnaryVertex(vertexIdManager.getId(), combinerSumFunction, isPropLocalFlag(), sourceVertex);
logicalSubQueryPlan.addLogicalVertex(combinerSumVertex);
logicalSubQueryPlan.addLogicalEdge(sourceVertex, combinerSumVertex, LogicalEdge.forwardEdge());
ProcessorFunction sumFunction = new ProcessorFunction(operatorType, Message.Value.newBuilder().setValueType(valueValueType.getDataType()));
LogicalVertex sumVertex = new LogicalUnaryVertex(vertexIdManager.getId(), sumFunction, isPropLocalFlag(), combinerSumVertex);
logicalSubQueryPlan.addLogicalVertex(sumVertex);
logicalSubQueryPlan.addLogicalEdge(combinerSumVertex, sumVertex, new LogicalEdge());
LogicalVertex outputVertex = processJoinZeroVertex(vertexIdManager, logicalSubQueryPlan, sumVertex, isJoinZeroFlag());
setFinishVertex(outputVertex, labelManager);
return logicalSubQueryPlan;
}
@Override
public boolean isPropLocalFlag() {
return false;
}
@Override
public ValueType getOutputValueType() {
return getInputNode().getOutputValueType();
}
@Override
public void disableJoinZero() {
this.joinZeroFlag = false;
}
@Override
public void enableJoinZero() {
this.joinZeroFlag = true;
}
@Override
public boolean isJoinZeroFlag() {
return this.joinZeroFlag;
}
}
|
[
"linzhu.ht@alibaba-inc.com"
] |
linzhu.ht@alibaba-inc.com
|
7a4c3d82f4fe96a889fb96092f3a68491ecc63ec
|
b2d0d6b57670231a2d2ca5107452688672622631
|
/trunk/ZdHome/src/com/zd/model/director/broadcast/TVChannelsCollection.java
|
8b1a6fa3dc7df4fd43e3d683b189ba1b80e223c2
|
[] |
no_license
|
BGCX261/zhidianhome-svn-to-git
|
a64fc2c0ab3d6f7c1e9b1858bd47030392ff7ad6
|
3bfbbc693b637afd72e46c91d04046eb9054216a
|
refs/heads/master
| 2016-08-04T03:53:32.566468
| 2015-08-25T15:17:28
| 2015-08-25T15:17:28
| 41,594,158
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,138
|
java
|
package com.zd.model.director.broadcast;
import roboguice.util.Ln;
public class TVChannelsCollection extends DirectorBroadcastCollection {
public void a() {
try {
DirectorBroadcast localDirectorBroadcast = new DirectorBroadcast();
localDirectorBroadcast.a(this._director);
localDirectorBroadcast.m("WTVJ");
localDirectorBroadcast.l("demo_6");
localDirectorBroadcast.f("6");
localDirectorBroadcast.n("demo/demo_6");
a(localDirectorBroadcast);
localDirectorBroadcast = new DirectorBroadcast();
localDirectorBroadcast.a(this._director);
localDirectorBroadcast.m("WTVJ");
localDirectorBroadcast.l("demo_7");
localDirectorBroadcast.n("demo/demo_7");
localDirectorBroadcast.f("7");
a(localDirectorBroadcast);
localDirectorBroadcast = new DirectorBroadcast();
localDirectorBroadcast.a(this._director);
localDirectorBroadcast.m("TWC");
localDirectorBroadcast.l("demo_weather");
localDirectorBroadcast.f("27");
localDirectorBroadcast.n("demo/demo_weather");
a(localDirectorBroadcast);
localDirectorBroadcast = new DirectorBroadcast();
localDirectorBroadcast.a(this._director);
localDirectorBroadcast.m("CNN");
localDirectorBroadcast.f("28");
localDirectorBroadcast.l("demo_cnn");
localDirectorBroadcast.n("demo/demo_cnn");
a(localDirectorBroadcast);
localDirectorBroadcast = new DirectorBroadcast();
localDirectorBroadcast.a(this._director);
localDirectorBroadcast.m("MSNBC");
localDirectorBroadcast.f("30");
localDirectorBroadcast.l("demo_msnbc");
localDirectorBroadcast.n("demo/demo_msnbc");
a(localDirectorBroadcast);
localDirectorBroadcast = new DirectorBroadcast();
localDirectorBroadcast.a(this._director);
localDirectorBroadcast.m("CNBC");
localDirectorBroadcast.f("31");
localDirectorBroadcast.l("demo_cnbc");
localDirectorBroadcast.n("demo/demo_cnbc");
a(localDirectorBroadcast);
localDirectorBroadcast = new DirectorBroadcast();
localDirectorBroadcast.a(this._director);
localDirectorBroadcast.m("FNC");
localDirectorBroadcast.f("32");
localDirectorBroadcast.l("demo_foxnews");
localDirectorBroadcast.n("demo/demo_foxnews");
a(localDirectorBroadcast);
localDirectorBroadcast = new DirectorBroadcast();
localDirectorBroadcast.a(this._director);
localDirectorBroadcast.m("ESPN");
localDirectorBroadcast.f("34");
localDirectorBroadcast.l("demo_espn");
localDirectorBroadcast.n("demo/demo_espn");
a(localDirectorBroadcast);
localDirectorBroadcast = new DirectorBroadcast();
localDirectorBroadcast.a(this._director);
localDirectorBroadcast.m("TBS");
localDirectorBroadcast.f("43");
localDirectorBroadcast.l("demo_tbs");
localDirectorBroadcast.n("demo/demo_tbs");
a(localDirectorBroadcast);
localDirectorBroadcast = new DirectorBroadcast();
localDirectorBroadcast.a(this._director);
localDirectorBroadcast.m("ANIMAL");
localDirectorBroadcast.f("54");
localDirectorBroadcast.l("demo_animalplanet");
localDirectorBroadcast.n("demo/demo_animalplanet");
a(localDirectorBroadcast);
localDirectorBroadcast = new DirectorBroadcast();
localDirectorBroadcast.a(this._director);
localDirectorBroadcast.m("ESPNHD");
localDirectorBroadcast.f("403");
localDirectorBroadcast.l("demo_espnhd");
localDirectorBroadcast.n("demo/demo_espnhd");
a(localDirectorBroadcast);
localDirectorBroadcast = new DirectorBroadcast();
localDirectorBroadcast.a(this._director);
localDirectorBroadcast.m("TNTHD");
localDirectorBroadcast.f("407");
localDirectorBroadcast.l("demo_tnt");
localDirectorBroadcast.n("demo/demo_tnt");
a(localDirectorBroadcast);
localDirectorBroadcast = new DirectorBroadcast();
localDirectorBroadcast.a(this._director);
localDirectorBroadcast.m("HBOHD");
localDirectorBroadcast.f("416");
localDirectorBroadcast.l("demo_hbohd");
localDirectorBroadcast.n("demo/demo_hbohd");
a(localDirectorBroadcast);
localDirectorBroadcast = new DirectorBroadcast();
localDirectorBroadcast.a(this._director);
localDirectorBroadcast.m("SHOHD");
localDirectorBroadcast.f("418");
localDirectorBroadcast.l("demo_shohd");
localDirectorBroadcast.n("demo/demo_shohd");
a(localDirectorBroadcast);
return;
} catch (Exception localException) {
while (true)
Ln.e(localException);
}
}
public boolean a(
BroadcastCollection.OnBroadcastsUpdateListener paramOnBroadcastsUpdateListener) {
// int i = 1;
// try
// {
// if (this._director == null)
// {
// i = 0;
// break label202;
// }
// if (this.b)
// break label202;
// if (this._director.G())
// {
// a();
// b(false);
// a(false);
// if (paramOnBroadcastsUpdateListener == null)
// break label202;
// paramOnBroadcastsUpdateListener.a(this);
// }
// }
// catch (Exception j)
// {
// Ln.e(j);
// a(false);
//
// }
// boolean bool;
// if (this.a)
// {
// a(true);
// SendToDeviceCommand localSendToDeviceCommand =
// (SendToDeviceCommand)CommandFactory.SendToDeviceProvider.a();
// localSendToDeviceCommand.c("GET_VIDEO_MEDIA");
// localSendToDeviceCommand.b(this.f);
// localSendToDeviceCommand.d(false);
// localSendToDeviceCommand.c(true);
// localSendToDeviceCommand.c(36);
// StringBuilder localStringBuilder = new
// StringBuilder("<param><name>type</name><value type=\"STRING\"><static>");
// localStringBuilder.append("BROADCAST_VIDEO");
// localStringBuilder.append("</static></value></param>");
// localSendToDeviceCommand.a(localStringBuilder.toString());
// if (paramOnBroadcastsUpdateListener != null)
// {
// localSendToDeviceCommand.a("listener",
// paramOnBroadcastsUpdateListener);
// b(paramOnBroadcastsUpdateListener);
// }
// localSendToDeviceCommand.a("broadcast-library", this);
// bool = this._director.a(localSendToDeviceCommand);
// if (!bool)
// a(false);
// }
// label202: return bool;
return false;
}
}
|
[
"you@example.com"
] |
you@example.com
|
4efaa2d2b3d80ba9ef49934e9f44fc8becea722c
|
30c783b4f3d71bd45d182bee2e482f3cd2878e52
|
/java/wws/src/main/java/org/vpc/neormf/wws/html/HtmlFile.java
|
32400e58419b3561419db14add0bb6516e2b5393
|
[] |
no_license
|
thevpc/neormf
|
fd1f965f45f0ce5d2bdd760b568d66a8049bb8b0
|
12597b4501114bda607ad898988fbeca94780efe
|
refs/heads/master
| 2021-07-10T13:17:59.614932
| 2020-08-22T12:12:58
| 2020-08-22T12:12:58
| 202,869,816
| 0
| 0
| null | 2020-10-13T15:24:22
| 2019-08-17T10:59:12
|
HTML
|
UTF-8
|
Java
| false
| false
| 2,199
|
java
|
package org.vpc.neormf.wws.html;
import org.vpc.neormf.wws.common.WUtils;
/**
* Created by IntelliJ IDEA.
* User: vpc
* Date: 29 sept. 2005
* Time: 19:30:23
* To change this template use File | Settings | File Templates.
*/
public class HtmlFile extends HtmlWidget{
private String name;
private boolean disabled=false;
private int size=Integer.MAX_VALUE;
private String onblur;
private int maxLength=Integer.MAX_VALUE;
private String value;
public HtmlFile() {
}
public HtmlFile(String name, String value) {
this.name = name;
this.value = value;
}
public HtmlFile(String name, String value, boolean disabled, String onblur) {
this.name = name;
this.disabled = disabled;
this.onblur = onblur;
this.value = value;
}
public String toHtml() {
return "<input name="+WUtils.plainTextToCotedHtml(name)+" type='file' "
+ (disabled ? "disabled " : " ")
+ (size!=Integer.MAX_VALUE ? ("size="+size+" " ) : " ")
+ (maxLength!=Integer.MAX_VALUE ? ("maxlength="+maxLength+" " ) : " ")
+ ((onblur==null || onblur.trim().length()==0)?"" :("onblur="+onblur+" " ))
+ "value="+WUtils.plainTextToCotedHtml((value==null?"":value))+" "
+">";
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public boolean isDisabled() {
return disabled;
}
public void setDisabled(boolean disabled) {
this.disabled = disabled;
}
public int getSize() {
return size;
}
public void setSize(int size) {
this.size = size;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public int getMaxLength() {
return maxLength;
}
public void setMaxLength(int maxLength) {
this.maxLength = maxLength;
}
public String getOnblur() {
return onblur;
}
public void setOnblur(String onblur) {
this.onblur = onblur;
}
}
|
[
"taha.bensalah@gmail.com"
] |
taha.bensalah@gmail.com
|
59440c2370f33fb0a1911ff5ffd77f8344d2d99e
|
0bc04b4164e1c66b62bfd739b2eb5885e57431bc
|
/modules/orm/src/main/java/org/onetwo/common/fish/orm/OracleDialect.java
|
aa3696fae51165cfaf02e546341a80b2730dddb9
|
[] |
no_license
|
fayyua/onetwo
|
5cd0808b620e59c29948f0a8fbff2b66f255bfb8
|
5480619cf1cff45d5425e2084b4dd5955c4ddab5
|
refs/heads/master
| 2023-01-02T01:06:43.497752
| 2013-07-03T09:31:40
| 2013-07-03T09:31:40
| 11,275,501
| 0
| 0
| null | 2022-12-16T00:47:26
| 2013-07-09T07:11:15
|
Java
|
UTF-8
|
Java
| false
| false
| 1,988
|
java
|
package org.onetwo.common.fish.orm;
import org.onetwo.common.db.JFishQueryValue;
import org.onetwo.common.utils.StringUtils;
public class OracleDialect extends AbstractDBDialect {
public OracleDialect(DataBaseConfig dataBaseConfig) {
super(dataBaseConfig);
}
public void registerIdStrategy(){
this.getIdStrategy().add(StrategyType.seq);
}
public String getLimitString(String sql, String firstName, String maxResultName) {
sql = sql.trim();
boolean isForUpdate = false;
if ( sql.toLowerCase().endsWith(" for update") ) {
sql = sql.substring( 0, sql.length()-11 );
isForUpdate = true;
}
boolean hasOffset = true;
if(StringUtils.isBlank(firstName)){
firstName = "?";
}else{
firstName = ":"+firstName;
}
if(StringUtils.isBlank(maxResultName)){
maxResultName = "?";
}else{
maxResultName = ":"+maxResultName;
}
StringBuffer pagingSelect = new StringBuffer();
if (hasOffset) {
pagingSelect.append("select * from ( select row_.*, rownum rownum_ from ( ");
}
else {
pagingSelect.append("select * from ( ");
}
pagingSelect.append(sql);
boolean isOrderBy = sql.indexOf(" order by ")!=-1 && sql.indexOf("group by")==-1;
if(isOrderBy)
pagingSelect.append(", rownum");
if (hasOffset) {
pagingSelect.append(" ) row_ where rownum <= ").append(maxResultName).append(") where rownum_ > ").append(firstName);
}
else {
pagingSelect.append(" ) where rownum <= ").append(maxResultName);
}
if ( isForUpdate ) {
pagingSelect.append( " for update" );
}
return pagingSelect.toString();
}
@Override
public void addLimitedValue(JFishQueryValue params, String firstName, int firstResult, String maxName, int maxResults){
params.setValue(maxName, getMaxResults(firstResult, maxResults));
params.setValue(firstName, firstResult);
}
@Override
public int getMaxResults(int first, int size){
return first+size;
}
}
|
[
"weishao.zeng@gmail.com"
] |
weishao.zeng@gmail.com
|
20eeed66e1f827c5e48c60d1d4945930ae1f7186
|
3862bc31d6622c638e496f2e3c9ff9c72e418326
|
/src/main/java/org/danyuan/application/crawler/config/service/SysRuleInfoService.java
|
7aaf3ac4c84c73dff24b10b5c0e4acc9858325f1
|
[
"Apache-2.0"
] |
permissive
|
514840279/danyuan-application
|
79b92bb8e811dabb5923d0d115ee1ad472e078ff
|
66bb3dd1dd9412540e1b84c1f38e88fc2f1b6e80
|
refs/heads/A0.0.1-SNAPSHOT
| 2021-08-29T11:19:11.996159
| 2019-10-12T07:42:17
| 2019-10-12T07:42:17
| 95,027,370
| 57
| 28
|
Apache-2.0
| 2019-08-21T01:40:49
| 2017-06-21T17:06:53
|
Java
|
UTF-8
|
Java
| false
| false
| 2,540
|
java
|
package org.danyuan.application.crawler.config.service;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.http.ParseException;
import org.danyuan.application.common.utils.httpsdownload.HttpUtil;
import org.danyuan.application.crawler.param.dao.SysCrawlerRulerInfoDao;
import org.danyuan.application.crawler.param.po.SysCrawlerRulerInfo;
import org.danyuan.application.crawler.task.po.SysCrawlerTaskInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.stereotype.Service;
/**
* @文件名 SysRuleInfoService.java
* @包名 org.danyuan.application.crawler.config.service
* @描述 TODO(用一句话描述该文件做什么)
* @时间 2019年7月19日 下午1:32:11
* @author Administrator
* @版本 V1.0
*/
@Service
public class SysRuleInfoService {
@Autowired
SysCrawlerRulerInfoDao sysCrawlerRulerInfoDao;
/**
* @throws IOException
* @throws ParseException
* @param i
* @方法名 startTask
* @功能 TODO(这里用一句话描述这个方法的作用)
* @参数 @param list
* @参数 @return
* @返回 String
* @author Administrator
* @throws
*/
public String startTask(List<SysCrawlerTaskInfo> list, int i) throws ParseException, IOException {
for (SysCrawlerTaskInfo sysCrawlerTaskInfo : list) {
SysCrawlerRulerInfo sysCrawlerRulerInfo = new SysCrawlerRulerInfo();
sysCrawlerRulerInfo.setTaskUuid(sysCrawlerTaskInfo.getUuid());
Example<SysCrawlerRulerInfo> example = Example.of(sysCrawlerRulerInfo);
List<SysCrawlerRulerInfo> ruleList = sysCrawlerRulerInfoDao.findAll(example);
for (SysCrawlerRulerInfo sysCrawlerRulerInfo2 : ruleList) {
// 去重
if (!sysCrawlerRulerInfo2.getStatue().equals(i + "")) {
sysCrawlerRulerInfo2.setStatue(i + "");
// 修改状态
sysCrawlerRulerInfoDao.save(sysCrawlerRulerInfo2);
if (i == 1) {
// 启动任务
Map<String, String> map = new HashMap<>();
map.put("uuid", sysCrawlerRulerInfo2.getUuid());
map.put("taskUuid", sysCrawlerRulerInfo2.getUuid());
map.put("contentInfo", sysCrawlerRulerInfo2.getContentJsonInfo());
map.put("delete", sysCrawlerRulerInfo2.getDeleteFlag() + "");
map.put("statue", sysCrawlerRulerInfo2.getStatue());
HttpUtil.postJson("http://127.0.0.1:3000/crawler", map, "UTF-8");
}
}
}
}
return "1";
}
}
|
[
"514840279@qq.com"
] |
514840279@qq.com
|
79ad5e55311347dfd33bf0c998fb35067301dd86
|
c94f888541c0c430331110818ed7f3d6b27b788a
|
/bot/java/src/main/java/com/antgroup/antchain/openapi/bot/models/PushRentBillResponse.java
|
8fb8f6f6ffb029bf9a9ccfaa38d0e1a4650dd808
|
[
"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,314
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.bot.models;
import com.aliyun.tea.*;
public class PushRentBillResponse extends TeaModel {
// 请求唯一ID,用于链路跟踪和问题排查
@NameInMap("req_msg_id")
public String reqMsgId;
// 结果码,一般OK表示调用成功
@NameInMap("result_code")
public String resultCode;
// 异常信息的文本描述
@NameInMap("result_msg")
public String resultMsg;
public static PushRentBillResponse build(java.util.Map<String, ?> map) throws Exception {
PushRentBillResponse self = new PushRentBillResponse();
return TeaModel.build(map, self);
}
public PushRentBillResponse setReqMsgId(String reqMsgId) {
this.reqMsgId = reqMsgId;
return this;
}
public String getReqMsgId() {
return this.reqMsgId;
}
public PushRentBillResponse setResultCode(String resultCode) {
this.resultCode = resultCode;
return this;
}
public String getResultCode() {
return this.resultCode;
}
public PushRentBillResponse setResultMsg(String resultMsg) {
this.resultMsg = resultMsg;
return this;
}
public String getResultMsg() {
return this.resultMsg;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
b9908c000d6870e4098c5711a1d74893816f3d90
|
b0bd8fb1d507a219563c25635cca2138d81e03a7
|
/src/day61/AirConditioner.java
|
ba86cf74458ff237b96f097c937320e5befd8abb
|
[] |
no_license
|
sharifamiri/JavaCodeExercises
|
8c490e65de79748950dc75caf28875e46f87cc4f
|
b2160e213d4a8bfb583e1878f916110860b7d5ce
|
refs/heads/master
| 2022-12-30T10:08:29.663767
| 2020-10-14T06:57:59
| 2020-10-14T06:57:59
| 222,198,225
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 249
|
java
|
package day61;
public class AirConditioner extends Electronic{
@Override
public void turnOn() {
System.out.println("Turning on AirConditioner");
}
public void controlTemp() {
System.out.println("Controlling temp");
}
}
|
[
"sharif.amiri4@gmail.com"
] |
sharif.amiri4@gmail.com
|
b34767f9628af277ef2290e8a2dbf6282a4188b5
|
ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3
|
/java/baiduads-sdk-auto/src/test/java/com/baidu/dev2/api/sdk/advancedsegmentbind/model/LongApiSegmentBatchRequestTest.java
|
26a051d77f8fdf525253db885445213f43f8e679
|
[
"Apache-2.0"
] |
permissive
|
baidu/baiduads-sdk
|
24c36b5cf3da9362ec5c8ecd417ff280421198ff
|
176363de5e8a4e98aaca039e4300703c3964c1c7
|
refs/heads/main
| 2023-06-08T15:40:24.787863
| 2023-05-20T03:40:51
| 2023-05-20T03:40:51
| 446,718,177
| 16
| 11
|
Apache-2.0
| 2023-06-02T05:19:40
| 2022-01-11T07:23:17
|
Python
|
UTF-8
|
Java
| false
| false
| 1,262
|
java
|
/*
* dev2 api schema
* 'dev2.baidu.com' api schema
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.baidu.dev2.api.sdk.advancedsegmentbind.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for LongApiSegmentBatchRequest
*/
public class LongApiSegmentBatchRequestTest {
private final LongApiSegmentBatchRequest model = new LongApiSegmentBatchRequest();
/**
* Model tests for LongApiSegmentBatchRequest
*/
@Test
public void testLongApiSegmentBatchRequest() {
// TODO: test LongApiSegmentBatchRequest
}
/**
* Test the property 'items'
*/
@Test
public void itemsTest() {
// TODO: test items
}
}
|
[
"jiangyuan04@baidu.com"
] |
jiangyuan04@baidu.com
|
d60e9dc527d5640c429c55a3ed0ecd29311ac47f
|
698045e4d93caceb85e0d4aa3f8c500eb58c5a34
|
/src/main/java/io/codefountain/maven/MyMojo.java
|
50ca9bdcbdd7bc72df69223157781fbedd31e676
|
[] |
no_license
|
musibs/xmltojson-maven-plugin
|
b51517bd0df2dc376a2a2c12aa23223be77ba7d1
|
494e4df1900e891f9a8a3cf00fd978ea708e8109
|
refs/heads/master
| 2023-04-27T20:19:44.357104
| 2021-05-23T00:55:47
| 2021-05-23T00:55:47
| 222,401,374
| 0
| 1
| null | 2023-04-14T17:55:42
| 2019-11-18T08:40:47
|
Java
|
UTF-8
|
Java
| false
| false
| 1,925
|
java
|
package io.codefountain.maven;
/*
* Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
/**
* Goal which touches a timestamp file.
*
* @goal touch
*
* @phase process-sources
*/
public class MyMojo
extends AbstractMojo
{
/**
* Location of the file.
* @parameter expression="${project.build.directory}"
* @required
*/
private File outputDirectory;
public void execute()
throws MojoExecutionException
{
File f = outputDirectory;
if ( !f.exists() )
{
f.mkdirs();
}
File touch = new File( f, "touch.txt" );
FileWriter w = null;
try
{
w = new FileWriter( touch );
w.write( "touch.txt" );
}
catch ( IOException e )
{
throw new MojoExecutionException( "Error creating file " + touch, e );
}
finally
{
if ( w != null )
{
try
{
w.close();
}
catch ( IOException e )
{
// ignore
}
}
}
}
}
|
[
"musib.somnath@gmail.com"
] |
musib.somnath@gmail.com
|
21b71239868388010244cc1efda8e0fbe1117ec3
|
e79b8875bbfafa6c83ba31eafa96eb7beed6c490
|
/src/test/java/com/example/study/sample/CategorySample.java
|
84725164220217f24bc01954eee4dd10dca1ac9b
|
[] |
no_license
|
GoForWalk/SpringWebStudy_ver1
|
12809ee48f19f02e8abbe0f5a665bec8e0a38cba
|
1e2509618ddac86f9a042f5144a562772acf937f
|
refs/heads/master
| 2023-03-03T01:08:51.660820
| 2021-02-03T03:15:15
| 2021-02-03T03:15:15
| 332,710,986
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,171
|
java
|
package com.example.study.sample;
import com.example.study.StudyApplicationTests;
import com.example.study.model.entity.Category;
import com.example.study.repository.CategoryRepository;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.Arrays;
import java.util.List;
@Slf4j
public class CategorySample extends StudyApplicationTests {
@Autowired
private CategoryRepository categoryRepository;
@Test
public void createSample(){
List<String> category = Arrays.asList("COMPUTER","CLOTHING","MULTI_SHOP","INTERIOR","FOOD","SPORTS","SHOPPING_MALL","DUTY_FREE","BEAUTY");
List<String> title = Arrays.asList("컴퓨터-전자제품","의류","멀티샵","인테리어","음식","스포츠","쇼핑몰","면세점","화장");
for(int i = 0; i < category.size(); i++){
String c = category.get(i);
String t = title.get(i);
Category create = Category.builder().type(c).title(t).build();
log.info("category : {}", category);
categoryRepository.save(create);
}
}
}
|
[
"atcgsp912@gmail.com"
] |
atcgsp912@gmail.com
|
3082410f427fe52c7d9e72f9d5441f25f1a69aa7
|
83da0da841106a3b2ef390344601daba77a451c2
|
/app/src/main/java/com/zhizhi/mytool/uiutils2/IoUtils.java
|
d10a750a088aa219bcc2e145433e8888bc30a511
|
[] |
no_license
|
zhongzhizhi/MyTool
|
b81b55f23fa3d4ac52789c3cbfe0e78b86d26d06
|
2312d80bb79a84a1078170c8b2813f6227ad1ea1
|
refs/heads/master
| 2020-08-05T13:07:15.935211
| 2016-08-18T09:37:50
| 2016-08-18T09:37:50
| 65,984,889
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 896
|
java
|
package com.zhizhi.mytool.uiutils2;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
public class IoUtils {
/**
* @param is
* @return inputStream到String
* @throws IOException
*/
public static String convertStreamToString(InputStream is) throws IOException {
try {
if (is != null) {
StringBuilder sb = new StringBuilder();
String line;
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(is, "gbk"));
// BufferedReader reader = new BufferedReader(new InputStreamReader(is));
while ((line = reader.readLine()) != null) {
// sb.append(line);
sb.append(line).append("\n");
}
} finally {
is.close();
}
return sb.toString();
} else {
return "";
}
} catch (Exception e) {
e.printStackTrace();
return "";
}
}
}
|
[
"admin"
] |
admin
|
ca9d461e527eb5580f68991ed11a778ef0a3a798
|
6d6a2896e206089fed182d93f60e0691126d889c
|
/terrier2/uk/ac/gla/terrier/structures/indexing/singlepass/PostingInRun.java
|
c35e07cbf0c7cf80ea00b1225c618a64ace24661
|
[] |
no_license
|
azizisya/benhesrc
|
2291c9d9cb22171f4e382968c14721d440bbabf2
|
4bd27c1f6e91b2aec1bd71f0810d1bbd0db902b5
|
refs/heads/master
| 2020-05-18T08:53:54.800452
| 2011-02-24T09:41:17
| 2011-02-24T09:41:17
| 34,458,592
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,366
|
java
|
/*
* Terrier - Terabyte Retriever
* Webpage: http://ir.dcs.gla.ac.uk/terrier
* Contact: terrier{a.}dcs.gla.ac.uk
* University of Glasgow - Department of Computing Science
* http://www.gla.uk
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is PostingInRun.java.
*
* The Original Code is Copyright (C) 2004-2008 the University of Glasgow.
* All Rights Reserved.
*
* Contributor(s):
* Craig Macdonald <craigm{a.}dcs.gla.ac.uk> (original author)
*
*/
package uk.ac.gla.terrier.structures.indexing.singlepass;
import java.io.IOException;
import uk.ac.gla.terrier.compression.BitIn;
import uk.ac.gla.terrier.compression.BitOut;
/** Base class for PostingInRun classes */
public abstract class PostingInRun {
/** source for postings to be read from */
protected BitIn postingSource;
/** tf for the current posting */
protected int termTF;
/** Current term */
protected String term;
/** Document frequency */
protected int termDf;
public PostingInRun() {
super();
}
/**
* @return the document frequency for the term.
*/
public int getDf() {
return termDf;
}
/**
* Setter for the document frequency.
* @param df int with the new document frequency.
*/
public void setDf(int df) {
this.termDf = df;
}
/**
* @return The term String in this posting list.
*/
public String getTerm() {
return term;
}
/**
* Setter for the term.
* @param term String containing the term for this posting list.
*/
public void setTerm(String term) {
this.term = term;
}
/**
* @return the term frequency.
*/
public int getTF() {
return termTF;
}
/**
* Setter for the term frequency.
* @param tf the new term frequency.
*/
public void setTF(int tf) {
this.termTF = tf;
}
/** Set where the postings should be read from */
public void setPostingSource(BitIn source) {
postingSource = source;
}
/**
* Writes the document data of this posting to a {@link uk.ac.gla.terrier.compression.BitOut}
* It encodes the data with the right compression methods.
* The stream is written as <code>d1, idf(d1) , d2 - d1, idf(d2)</code> etc.
* @param bos BitOut to be written.
* @param last int representing the last document written in timport uk.ac.gla.terrier.structures.indexing.singlepass.RunReader;his posting.
* @return The last posting written.
*/
public abstract int append(BitOut bos, int last, int runShift) throws IOException;
/**
* Writes the document data of this posting to a {@link uk.ac.gla.terrier.compression.BitOut}
* It encodes the data with the right compression methods.
* The stream is written as <code>d1, idf(d1) , d2 - d1, idf(d2)</code> etc.
* @param bos BitOut to be written.
* @param last int representing the last document written in this posting.
* @return The last posting written.
*/
public int append(BitOut bos, int last) throws IOException {
return append(bos, last, 0);
}
}
|
[
"ben.he.src@f3485be4-0bd3-11df-ad0c-0fb4090ca1bc"
] |
ben.he.src@f3485be4-0bd3-11df-ad0c-0fb4090ca1bc
|
bdb8c15417f81b09c4a0e5a87c43e5f2b8254a2a
|
6f6583231358d9294963ca0e5d9cf82822f1ed20
|
/home/src/main/java/com/yanxin/home/popup/HintRegisterWindow.java
|
1b4b09c5555c88b73758134e57d59d00f59e7ddf
|
[] |
no_license
|
willpyshan13/CarStore
|
298c6ff6ebb681883798e31991957a6707eae1fb
|
e42301c14e0ad1421322c63e79aa09391c13113b
|
refs/heads/main
| 2023-06-14T06:17:26.534855
| 2021-07-14T05:51:47
| 2021-07-14T05:51:47
| 385,820,045
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,471
|
java
|
package com.yanxin.home.popup;
import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.view.WindowManager;
import android.widget.PopupWindow;
import android.widget.TextView;
import com.car.baselib.BaseLibCore;
import com.car.baselib.cache.SpCache;
import com.car.baselib.popup.BasePopupWindow;
import com.car.baselib.router.Router;
import com.car.baselib.ui.activity.BaseActivity;
import com.yanxin.common.login.LoginRouterPath;
import com.yanxin.home.R;
/**
* @author zhouz
* @date 2021/2/2
*/
public class HintRegisterWindow extends BasePopupWindow {
private String msg;
private BaseActivity activity;
private PopupWindow.OnDismissListener onDismissListener;
private TextView windowHint;
private TextView windowCancel;
private TextView windowRegister;
public HintRegisterWindow(Context context,Builder builder) {
super(context);
msg = builder.msg;
activity = (BaseActivity) context;
onDismissListener = builder.onDismissListener;
createWindow(R.layout.window_hint_register,builder.width,builder.height);
}
@Override
protected void onViewCreated(View container) {
windowHint = container.findViewById(R.id.window_hint);
windowCancel = container.findViewById(R.id.window_hint_cancel);
windowRegister = container.findViewById(R.id.window_hint_register);
windowHint.setText(msg);
windowCancel.setOnClickListener(view -> dismiss());
windowRegister.setOnClickListener(view ->{
dismiss();
SpCache.get().clear();
BaseLibCore.getInstance().getActivityStack().finishAll();
Router.getInstance().build(LoginRouterPath.CAR_ROUTER_LOGIN).start();
});
}
@Override
protected void onPopupWindowCreated(PopupWindow popupWindow) {
popupWindow.setOnDismissListener(() -> {
if (onDismissListener != null) {
onDismissListener.onDismiss();
}
darkenBackground(activity,1f);
});
darkenBackground(activity,0.4f);
}
/**
* 改变背景颜色
*/
private void darkenBackground(Activity activity, Float bgColor) {
if (activity != null) {
WindowManager.LayoutParams lp = activity.getWindow().getAttributes();
lp.alpha = bgColor;
activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
activity.getWindow().setAttributes(lp);
}
}
public static Builder newBuilder() {
return new Builder();
}
public static class Builder{
private PopupWindow.OnDismissListener onDismissListener;
private int width;
private int height;
private String msg;
public Builder setOnDismissListener(PopupWindow.OnDismissListener onDismissListener) {
this.onDismissListener = onDismissListener;
return this;
}
public Builder setWidth(int width) {
this.width = width;
return this;
}
public Builder setHeight(int height) {
this.height = height;
return this;
}
public Builder setMessage(String msg) {
this.msg = msg;
return this;
}
public HintRegisterWindow build(Context context) {
return new HintRegisterWindow(context, this);
}
}
}
|
[
"545512533@qq.com"
] |
545512533@qq.com
|
46fbef4eb736a073b83ce2f37001db1783e25603
|
a7663898f01a9e16a384521efc2b1e9c9c428b5e
|
/dkha-module/dkha-system/dkha-system-server/src/main/java/com/dkha/service/impl/ScPersonidequipconfServiceImpl.java
|
26a438dfe426c06bb7811de40089bb8c6f45ba9d
|
[] |
no_license
|
he-shuang/dkha-sz
|
cccff9f13885eb1e44339aaf5b6458c9d8ee854d
|
3ef8f74f5cb56844667e01c8c31d5714efab8fc7
|
refs/heads/main
| 2023-03-08T19:35:17.249052
| 2021-02-22T06:45:10
| 2021-02-22T06:45:10
| 341,103,466
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,908
|
java
|
package com.dkha.service.impl;
import com.alibaba.excel.EasyExcel;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dkha.commons.mybatis.service.impl.BaseServiceImpl;
import com.dkha.commons.tools.constant.Constant;
import com.dkha.commons.tools.exception.RenException;
import com.dkha.commons.tools.page.PageData;
import com.dkha.commons.tools.utils.ConvertUtils;
import com.dkha.dao.ScPersonidequipDao;
import com.dkha.dao.ScPersonidequipconfDao;
import com.dkha.dto.ScPersonidequipDTO;
import com.dkha.dto.ScPersonidequipconfDTO;
import com.dkha.entity.ScPersonidequipEntity;
import com.dkha.entity.ScPersonidequipconfEntity;
import com.dkha.excel.ScPersonidequipImportExcel;
import com.dkha.excel.ScTransformerdcImportExcel;
import com.dkha.excel.listener.ScPersonidequipDataListener;
import com.dkha.excel.listener.ScTransformerdcDataListener;
import com.dkha.service.ScPersonidequipconfService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* 人证配置信息
*
* @author Mark
* @since v1.0.0 2020-08-26
*/
@Service
public class ScPersonidequipconfServiceImpl extends BaseServiceImpl<ScPersonidequipconfDao, ScPersonidequipconfEntity> implements ScPersonidequipconfService {
@Autowired
private ScPersonidequipDao scPersonidequipDao;
@Override
public PageData<ScPersonidequipconfDTO> page(Map<String, Object> params) {
IPage<ScPersonidequipconfEntity> page = baseDao.selectPage(
getPage(params, Constant.CREATE_DATE, false),
getWrapper(params)
);
return getPageData(page, ScPersonidequipconfDTO.class);
}
@Override
public List<ScPersonidequipconfDTO> list(Map<String, Object> params) {
List<ScPersonidequipconfEntity> entityList = baseDao.selectList(getWrapper(params));
return ConvertUtils.sourceToTarget(entityList, ScPersonidequipconfDTO.class);
}
private QueryWrapper<ScPersonidequipconfEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get("id");
QueryWrapper<ScPersonidequipconfEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), "id", id);
//wrapper.eq(Constant.DEL_FLAG, DelFlagEnum.NORMAL.value());
return wrapper;
}
@Override
public ScPersonidequipconfDTO get(String id) {
ScPersonidequipconfEntity entity = baseDao.selectById(id);
return ConvertUtils.sourceToTarget(entity, ScPersonidequipconfDTO.class);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void save(ScPersonidequipconfDTO dto) {
ScPersonidequipconfEntity entity = ConvertUtils.sourceToTarget(dto, ScPersonidequipconfEntity.class);
insert(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void update(ScPersonidequipconfDTO dto) {
ScPersonidequipconfEntity entity = ConvertUtils.sourceToTarget(dto, ScPersonidequipconfEntity.class);
QueryWrapper<ScPersonidequipEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("pie_equipsn",dto.getPieEquipsn());
ScPersonidequipEntity scPersonidequipEntity = scPersonidequipDao.selectOne(queryWrapper);
scPersonidequipEntity.setPieIsinitial(0);
scPersonidequipDao.updateById(scPersonidequipEntity);
updateById(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void delete(Long id) {
//物理删除
baseDao.deleteById(id);
}
@Override
public ScPersonidequipconfDTO getByEquipsn(String equipsn) {
QueryWrapper<ScPersonidequipconfEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("pie_equipsn",equipsn);
ScPersonidequipconfEntity scPersonidequipconfEntity = baseDao.selectOne(queryWrapper);
if (scPersonidequipconfEntity == null){
scPersonidequipconfEntity = baseDao.getNewInfo();
}
return ConvertUtils.sourceToTarget(baseDao.selectOne(queryWrapper), ScPersonidequipconfDTO.class);
}
@Override
public void importExcel(MultipartFile file) throws Exception {
if (file.isEmpty()) {
throw new RenException("上传文件为空");
}
try {
EasyExcel.read(file.getInputStream(), ScPersonidequipImportExcel.class, new ScPersonidequipDataListener())
.sheet().headRowNumber(2).doRead();
} catch (Exception e) {
throw new RenException(e.getMessage());
}
}
}
|
[
"546433805@qq.com"
] |
546433805@qq.com
|
3055d152a76a572f7ba5ef945c2d76c7172b5aa4
|
6e57bdc0a6cd18f9f546559875256c4570256c45
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/firmwareversion/BasebandVersionDialogController.java
|
95db28a2e5bbbdae01c65b3e6acea452a1cdd3e6
|
[
"Apache-2.0"
] |
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
| 2,290
|
java
|
/*
* Copyright (C) 2017 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.settings.deviceinfo.firmwareversion;
import android.content.Context;
import android.content.res.Resources;
import android.os.SystemProperties;
import android.support.annotation.VisibleForTesting;
import com.android.settings.deviceinfo.SupportCPVersion;
import com.android.settings.R;
import com.android.settings.Utils;
public class BasebandVersionDialogController {
@VisibleForTesting
static final int BASEBAND_VERSION_LABEL_ID = R.id.baseband_version_label;
@VisibleForTesting
static final int BASEBAND_VERSION_VALUE_ID = R.id.baseband_version_value;
@VisibleForTesting
static final String BASEBAND_PROPERTY = "gsm.version.baseband";
private final FirmwareVersionDialogFragment mDialog;
public BasebandVersionDialogController(FirmwareVersionDialogFragment dialog) {
mDialog = dialog;
}
/**
* Updates the baseband version field of the dialog.
*/
public void initialize() {
final Context context = mDialog.getContext();
String basebandInfo = "";
if (Utils.isWifiOnly(context)) {
mDialog.removeSettingFromScreen(BASEBAND_VERSION_LABEL_ID);
mDialog.removeSettingFromScreen(BASEBAND_VERSION_VALUE_ID);
return;
}
if (context.getResources().getBoolean(R.bool.config_support_showcp2info)){
basebandInfo = SupportCPVersion.getInstance().getBasedSummary(context, BASEBAND_PROPERTY);
} else {
basebandInfo = SystemProperties.get(BASEBAND_PROPERTY,context.getString(R.string.device_info_default));
}
mDialog.setText(BASEBAND_VERSION_VALUE_ID, basebandInfo);
}
}
|
[
"dongdong331@163.com"
] |
dongdong331@163.com
|
df6a35a2dc9a95e4090085a6d98b022457c86706
|
6a2009db5824a85ebe0cfd36f64fd6556c28af69
|
/src/main/java/info/archinnov/achilles/demo/twitter/entity/TweetIndex.java
|
67fb9fc1f2af7be950fdcf0adf14409712f57189
|
[] |
no_license
|
doanduyhai/Achilles_BBL
|
67ced9e7bd0763ab84bcaa4aa4e6422a08ef983d
|
cc047c0332d411572c465d1ab3bb1b17f4d5a60a
|
refs/heads/master
| 2016-09-01T17:55:58.762433
| 2013-05-25T20:03:40
| 2013-05-26T17:31:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,085
|
java
|
package info.archinnov.achilles.demo.twitter.entity;
import info.archinnov.achilles.demo.twitter.model.Tweet;
import info.archinnov.achilles.entity.type.WideMap;
import java.io.Serializable;
import java.util.UUID;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* TweetIndex
*
* @author DuyHai DOAN
*
*/
@Entity
@Table(name = "tweet_index")
public class TweetIndex implements Serializable
{
private static final long serialVersionUID = 1L;
@Id
private UUID id;
@Column
private Tweet tweet;
@Column(table = "tweet_user_timeline_index")
private WideMap<String, String> timelineUsers;
public TweetIndex() {}
public TweetIndex(UUID id, Tweet tweet) {
this.id = id;
this.tweet = tweet;
}
public UUID getId()
{
return id;
}
public Tweet getTweet()
{
return tweet;
}
public void setId(UUID id)
{
this.id = id;
}
public void setTweet(Tweet tweet)
{
this.tweet = tweet;
}
public WideMap<String, String> getTimelineUsers()
{
return timelineUsers;
}
}
|
[
"doanduyhai@gmail.com"
] |
doanduyhai@gmail.com
|
8e0629e68bfeed4190608d001157eea6dd146554
|
13cbb329807224bd736ff0ac38fd731eb6739389
|
/com/sun/corba/se/impl/encoding/TypeCodeOutputStream.java
|
d0ea13982e8555fda8e89bc7e5d2308b807af466
|
[] |
no_license
|
ZhipingLi/rt-source
|
5e2537ed5f25d9ba9a0f8009ff8eeca33930564c
|
1a70a036a07b2c6b8a2aac6f71964192c89aae3c
|
refs/heads/master
| 2023-07-14T15:00:33.100256
| 2021-09-01T04:49:04
| 2021-09-01T04:49:04
| 401,933,858
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,370
|
java
|
package com.sun.corba.se.impl.encoding;
import com.sun.corba.se.spi.orb.ORB;
import java.nio.ByteBuffer;
import java.util.HashMap;
import java.util.Map;
import org.omg.CORBA.CompletionStatus;
import org.omg.CORBA.ORB;
import org.omg.CORBA.portable.InputStream;
import org.omg.CORBA.portable.OutputStream;
import org.omg.CORBA_2_3.portable.OutputStream;
import sun.corba.EncapsInputStreamFactory;
import sun.corba.OutputStreamFactory;
public final class TypeCodeOutputStream extends EncapsOutputStream {
private OutputStream enclosure = null;
private Map typeMap = null;
private boolean isEncapsulation = false;
public TypeCodeOutputStream(ORB paramORB) { super(paramORB, false); }
public TypeCodeOutputStream(ORB paramORB, boolean paramBoolean) { super(paramORB, paramBoolean); }
public InputStream create_input_stream() { return EncapsInputStreamFactory.newTypeCodeInputStream((ORB)orb(), getByteBuffer(), getIndex(), isLittleEndian(), getGIOPVersion()); }
public void setEnclosingOutputStream(OutputStream paramOutputStream) { this.enclosure = paramOutputStream; }
public TypeCodeOutputStream getTopLevelStream() { return (this.enclosure == null) ? this : ((this.enclosure instanceof TypeCodeOutputStream) ? ((TypeCodeOutputStream)this.enclosure).getTopLevelStream() : this); }
public int getTopLevelPosition() {
if (this.enclosure != null && this.enclosure instanceof TypeCodeOutputStream) {
int i = ((TypeCodeOutputStream)this.enclosure).getTopLevelPosition() + getPosition();
if (this.isEncapsulation)
i += 4;
return i;
}
return getPosition();
}
public void addIDAtPosition(String paramString, int paramInt) {
if (this.typeMap == null)
this.typeMap = new HashMap(16);
this.typeMap.put(paramString, new Integer(paramInt));
}
public int getPositionForID(String paramString) {
if (this.typeMap == null)
throw this.wrapper.refTypeIndirType(CompletionStatus.COMPLETED_NO);
return ((Integer)this.typeMap.get(paramString)).intValue();
}
public void writeRawBuffer(OutputStream paramOutputStream, int paramInt) {
paramOutputStream.write_long(paramInt);
ByteBuffer byteBuffer = getByteBuffer();
if (byteBuffer.hasArray()) {
paramOutputStream.write_octet_array(byteBuffer.array(), 4, getIndex() - 4);
} else {
byte[] arrayOfByte = new byte[byteBuffer.limit()];
for (byte b = 0; b < arrayOfByte.length; b++)
arrayOfByte[b] = byteBuffer.get(b);
paramOutputStream.write_octet_array(arrayOfByte, 4, getIndex() - 4);
}
}
public TypeCodeOutputStream createEncapsulation(ORB paramORB) {
TypeCodeOutputStream typeCodeOutputStream = OutputStreamFactory.newTypeCodeOutputStream((ORB)paramORB, isLittleEndian());
typeCodeOutputStream.setEnclosingOutputStream(this);
typeCodeOutputStream.makeEncapsulation();
return typeCodeOutputStream;
}
protected void makeEncapsulation() {
putEndian();
this.isEncapsulation = true;
}
public static TypeCodeOutputStream wrapOutputStream(OutputStream paramOutputStream) {
boolean bool = (paramOutputStream instanceof CDROutputStream) ? ((CDROutputStream)paramOutputStream).isLittleEndian() : 0;
TypeCodeOutputStream typeCodeOutputStream = OutputStreamFactory.newTypeCodeOutputStream((ORB)paramOutputStream.orb(), bool);
typeCodeOutputStream.setEnclosingOutputStream(paramOutputStream);
return typeCodeOutputStream;
}
public int getPosition() { return getIndex(); }
public int getRealIndex(int paramInt) { return getTopLevelPosition(); }
public byte[] getTypeCodeBuffer() {
ByteBuffer byteBuffer = getByteBuffer();
byte[] arrayOfByte = new byte[getIndex() - 4];
for (byte b = 0; b < arrayOfByte.length; b++)
arrayOfByte[b] = byteBuffer.get(b + 4);
return arrayOfByte;
}
public void printTypeMap() {
System.out.println("typeMap = {");
for (String str : this.typeMap.keySet()) {
Integer integer = (Integer)this.typeMap.get(str);
System.out.println(" key = " + str + ", value = " + integer);
}
System.out.println("}");
}
}
/* Location: D:\software\jd-gui\jd-gui-windows-1.6.3\rt.jar!\com\sun\corba\se\impl\encoding\TypeCodeOutputStream.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.0.7
*/
|
[
"michael__lee@yeah.net"
] |
michael__lee@yeah.net
|
3ecd6d92deaa6a822bfd1571b09362b685a185f1
|
67ec60c810cdd63eab37d54056a56f8094026065
|
/app/src/com/d2cmall/buyer/activity/CardDepositActivity.java
|
e280b641944d3d2a1dae4d4a0879cc50546bb213
|
[] |
no_license
|
sinbara0813/fashion
|
2e2ef73dd99c71f2bebe0fc984d449dc67d5c4c5
|
4127db4963b0633cc3ea806851441bc0e08e6345
|
refs/heads/master
| 2020-08-18T04:43:25.753009
| 2019-10-25T02:28:47
| 2019-10-25T02:28:47
| 215,748,112
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,296
|
java
|
package com.d2cmall.buyer.activity;
import android.app.Dialog;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.d2cmall.buyer.D2CApplication;
import com.d2cmall.buyer.R;
import com.d2cmall.buyer.api.DepositApi;
import com.d2cmall.buyer.base.BaseActivity;
import com.d2cmall.buyer.base.BaseBean;
import com.d2cmall.buyer.http.BeanRequest;
import com.d2cmall.buyer.util.DialogUtil;
import com.d2cmall.buyer.util.Util;
import com.d2cmall.buyer.widget.ClearEditText;
import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;
/**
* D2C卡充值
* Author: Blend
* Date: 16/8/17 9:53
* Copyright (c) 2016 d2c. All rights reserved.
*/
public class CardDepositActivity extends BaseActivity {
@Bind(R.id.back_iv)
ImageView backIv;
@Bind(R.id.name_tv)
TextView nameTv;
@Bind(R.id.title_right)
TextView titleRight;
@Bind(R.id.tag)
View tag;
@Bind(R.id.title_layout)
RelativeLayout titleLayout;
@Bind(R.id.et_card_no)
ClearEditText etCardNo;
@Bind(R.id.et_card_password)
ClearEditText etCardPassword;
@Bind(R.id.btn_deposit)
Button btnDeposit;
private Dialog loadingDialog;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_card_deposit);
ButterKnife.bind(this);
nameTv.setText(R.string.label_d2c_pay);
backIv.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
loadingDialog = DialogUtil.createLoadingDialog(this);
etCardNo.addTextChangedListener(textWatcher);
etCardPassword.addTextChangedListener(textWatcher);
}
@OnClick(R.id.btn_deposit)
public void onClick() {
hideKeyboard(null);
String cardNo = etCardNo.getText().toString().trim();
String cardPassword = etCardPassword.getText().toString().trim();
if (Util.isEmpty(cardNo)) {
Util.showToast(this, R.string.hint_d2c_card_no);
return;
}
if (Util.isEmpty(cardPassword)) {
Util.showToast(this, R.string.hint_d2c_card_password);
return;
}
DepositApi api = new DepositApi();
api.setSn(cardNo);
api.setPassword(cardPassword);
api.setPayChannel("CARDPAY");
loadingDialog.show();
D2CApplication.httpClient.loadingRequest(api, new BeanRequest.SuccessListener<BaseBean>() {
@Override
public void onResponse(BaseBean baseBean) {
loadingDialog.dismiss();
Util.showToast(CardDepositActivity.this, R.string.msg_deposit_ok);
setResult(RESULT_OK);
finish();
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
loadingDialog.dismiss();
Util.showToast(CardDepositActivity.this, Util.checkErrorType(error));
}
});
}
private TextWatcher textWatcher = new TextWatcher() {
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
public void onTextChanged(CharSequence s, int start, int before, int count) {
boolean cardNoTyped = etCardNo.getText().toString().trim().length() > 0;
boolean cardPasswordTyped = etCardPassword.getText().toString().trim().length() > 0;
if (cardNoTyped && cardPasswordTyped) {
btnDeposit.setEnabled(true);
} else {
btnDeposit.setEnabled(false);
}
}
public void afterTextChanged(Editable s) {
}
};
@Override
protected void onResume() {
Util.onResume(this);
super.onResume();
}
@Override
protected void onPause() {
Util.onPause(this);
super.onPause();
}
}
|
[
"940258169@qq.com"
] |
940258169@qq.com
|
99097cae90b294d061c9ed55fc01fb639a30f7f6
|
2b3e0c89b9ef2d01a1014723eb2659330f29c0c1
|
/Core Service Java Client/src/com/sdltridion/contentmanager/coreservice/_2012/Lock.java
|
4bb840040f02a1c19711cef8654df1b5b1eaff2c
|
[] |
no_license
|
mitza13/yet-another-tridion-blog
|
def0263f9797e62239956733da1682c2ebc08aec
|
a803ec3772d02dbfc76a21e7a5d44cc9ec87aac3
|
refs/heads/master
| 2021-01-20T04:28:52.805980
| 2018-04-06T14:54:57
| 2018-04-06T14:54:57
| 42,700,739
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,497
|
java
|
package com.sdltridion.contentmanager.coreservice._2012;
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.XmlType;
import com.sdltridion.contentmanager.r6.ReadOptions;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="organizationalItemId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="readBackOptions" type="{http://www.sdltridion.com/ContentManager/R6}ReadOptions" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"organizationalItemId",
"readBackOptions"
})
@XmlRootElement(name = "Lock")
public class Lock {
@XmlElement(nillable = true)
protected String organizationalItemId;
@XmlElement(nillable = true)
protected ReadOptions readBackOptions;
/**
* Gets the value of the organizationalItemId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrganizationalItemId() {
return organizationalItemId;
}
/**
* Sets the value of the organizationalItemId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOrganizationalItemId(String value) {
this.organizationalItemId = value;
}
/**
* Gets the value of the readBackOptions property.
*
* @return
* possible object is
* {@link ReadOptions }
*
*/
public ReadOptions getReadBackOptions() {
return readBackOptions;
}
/**
* Sets the value of the readBackOptions property.
*
* @param value
* allowed object is
* {@link ReadOptions }
*
*/
public void setReadBackOptions(ReadOptions value) {
this.readBackOptions = value;
}
}
|
[
"mitza13@538b63c4-fdea-668c-0068-65d03cfa36e6"
] |
mitza13@538b63c4-fdea-668c-0068-65d03cfa36e6
|
7d77889beb67192b175297604cfddfc4270d512c
|
5f4afbc92a72bd847b8aa9ae95f9be9d706ad7d8
|
/esuizhen-service/esuizhen-cloud-sync-system/src/main/java/com/esuizhen/cloudservice/sync/dao/incre/IncrePatientPatientNoDao.java
|
e4875ce9632ed343031c615e897b9ddaa34e0a79
|
[] |
no_license
|
331491512/esz
|
dfc13ba9e142ab1cbacc92cd0bf1b55fec2a05a1
|
8edd10a74b75d36d3963d2ae64602d02ba548b43
|
refs/heads/master
| 2021-04-06T20:31:45.968785
| 2018-03-16T02:56:36
| 2018-03-16T02:56:36
| 125,451,748
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 716
|
java
|
/**
* <b>项目名:</b>易随诊<br/>
* <b>包名:</b>package com.esuizhen.cloudservice.sync.dao.incre;<br/>
* <b>文件名:</b>IncrePatientPatientNoDao.java<br/>
* <b>版本信息:</b><br/>
* <b>日期:</b>2016年12月20日下午3:13:16<br/>
* <b>Copyright (c)</b> 2016西部天使公司-版权所有<br/>
*
*/
package com.esuizhen.cloudservice.sync.dao.incre;
import com.esuizhen.cloudservice.sync.bean.TPatientAndPatientNoRelationSync;
/**
* @ClassName: IncrePatientPatientNoDao
* @Description:
* @author lichenghao
* @date 2016年12月20日 下午3:13:16
*/
public interface IncrePatientPatientNoDao {
void insert(TPatientAndPatientNoRelationSync patientOfPatientNo);
}
|
[
"zhuguo@qgs-china.com"
] |
zhuguo@qgs-china.com
|
7a72418b11253da45a49471aaaa0b2e7d2c8b26d
|
a5e57395ce5fed71169ddcf7a3110cd7d4eccbdc
|
/blade-appcompat/src/main/java/com/poovarasan/bladeappcompat/AppCompatModule.java
|
a31502bac5c3fab79e0e9fc3b257a994899599cf
|
[] |
no_license
|
poovarasanvasudevan/small-mobile
|
e48b833b171f14570859ebdab50f2bba0b4126b3
|
a9b435ddfad5e4b2fbf2533734a381e21fdc924b
|
refs/heads/master
| 2021-01-01T16:24:50.267132
| 2017-08-18T11:50:12
| 2017-08-18T11:50:12
| 97,831,666
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,560
|
java
|
package com.poovarasan.bladeappcompat;
import com.poovarasan.blade.builder.LayoutBuilder;
import com.poovarasan.blade.module.Module;
import com.poovarasan.blade.parser.ViewParser;
import com.poovarasan.blade.parser.custom.ViewGroupParser;
import com.poovarasan.bladeappcompat.parser.AppButtonParser;
import com.poovarasan.bladeappcompat.parser.AppCheckboxParser;
import com.poovarasan.bladeappcompat.parser.AppProgressBarParser;
import com.poovarasan.bladeappcompat.parser.AppRadioButtonParser;
import com.poovarasan.bladeappcompat.parser.AppRippleParser;
import com.poovarasan.bladeappcompat.parser.AppToolbarParser;
/**
* Created by poovarasanv on 22/3/17.
*
* @author poovarasanv
* @project SHPT
* @on 22/3/17 at 6:57 PM
*/
public class AppCompatModule implements Module {
@Override
public void register(LayoutBuilder layoutBuilder) {
ViewParser viewParser = new ViewParser();
ViewGroupParser viewGroupParser = new ViewGroupParser(viewParser);
layoutBuilder.registerHandler("Toolbar", new AppToolbarParser(viewParser));
layoutBuilder.registerHandler("Ripple", new AppRippleParser(viewGroupParser));
layoutBuilder.registerHandler("AppCompatCheckbox", new AppCheckboxParser(viewParser));
layoutBuilder.registerHandler("AppCompatButton", new AppButtonParser(viewParser));
layoutBuilder.registerHandler("AppCompatRadioButton", new AppRadioButtonParser(viewParser));
layoutBuilder.registerHandler("AppCompatProgressBar", new AppProgressBarParser(viewParser));
}
}
|
[
"poosan9@gmail.com"
] |
poosan9@gmail.com
|
2b9b359203aa26facebcb091d6efa78deb0e5677
|
58da62dfc6e145a3c836a6be8ee11e4b69ff1878
|
/src/main/java/com/alipay/api/domain/AlipayOpenMiniInnerappPluginservicePublishModel.java
|
88bfa820219c7b3f052bdfcc8e9320a3cd225ab1
|
[
"Apache-2.0"
] |
permissive
|
zhoujiangzi/alipay-sdk-java-all
|
00ef60ed9501c74d337eb582cdc9606159a49837
|
560d30b6817a590fd9d2c53c3cecac0dca4449b3
|
refs/heads/master
| 2022-12-26T00:27:31.553428
| 2020-09-07T03:39:05
| 2020-09-07T03:39:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,465
|
java
|
package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 插件发布能力中心
*
* @author auto create
* @since 1.0, 2020-08-25 10:48:53
*/
public class AlipayOpenMiniInnerappPluginservicePublishModel extends AlipayObject {
private static final long serialVersionUID = 6483641648631372143L;
/**
* 功能类型,目前支持的有:1039支付, 1040会员, 1041基础, 1056资金, 1058信用, 1111口碑, 330120安全, 360101营销
*/
@ApiListField("ability_type_list")
@ApiField("string")
private List<String> abilityTypeList;
/**
* 服务发布logo
*/
@ApiField("app_logo")
private String appLogo;
/**
* 业务来源
*/
@ApiField("app_origin")
private String appOrigin;
/**
* 服务描述
*/
@ApiField("description")
private String description;
/**
* 移动端详情,用于能力中心展示
*/
@ApiField("detail_for_client")
private String detailForClient;
/**
* pc端详,用于能力中心展示
*/
@ApiField("detail_for_pc")
private String detailForPc;
/**
* 插件id
*/
@ApiField("mini_app_id")
private String miniAppId;
/**
* 可订购人群,1003个人, 1004企业,-1无限制
*/
@ApiField("sell_crowd")
private String sellCrowd;
/**
* 发布后是否展示,01展示(默认)、02隐藏
*/
@ApiField("show_type")
private String showType;
/**
* 服务标题
*/
@ApiField("title")
private String title;
/**
* pc端url地址,不需要则为空
*/
@ApiField("visit_url_for_pc")
private String visitUrlForPc;
public List<String> getAbilityTypeList() {
return this.abilityTypeList;
}
public void setAbilityTypeList(List<String> abilityTypeList) {
this.abilityTypeList = abilityTypeList;
}
public String getAppLogo() {
return this.appLogo;
}
public void setAppLogo(String appLogo) {
this.appLogo = appLogo;
}
public String getAppOrigin() {
return this.appOrigin;
}
public void setAppOrigin(String appOrigin) {
this.appOrigin = appOrigin;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public String getDetailForClient() {
return this.detailForClient;
}
public void setDetailForClient(String detailForClient) {
this.detailForClient = detailForClient;
}
public String getDetailForPc() {
return this.detailForPc;
}
public void setDetailForPc(String detailForPc) {
this.detailForPc = detailForPc;
}
public String getMiniAppId() {
return this.miniAppId;
}
public void setMiniAppId(String miniAppId) {
this.miniAppId = miniAppId;
}
public String getSellCrowd() {
return this.sellCrowd;
}
public void setSellCrowd(String sellCrowd) {
this.sellCrowd = sellCrowd;
}
public String getShowType() {
return this.showType;
}
public void setShowType(String showType) {
this.showType = showType;
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
public String getVisitUrlForPc() {
return this.visitUrlForPc;
}
public void setVisitUrlForPc(String visitUrlForPc) {
this.visitUrlForPc = visitUrlForPc;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
f7562e7c38444ccf4ec6a75b55491e33416327f6
|
9cc65cddb1c92f0a81a5d08ea7b2048aaf25358b
|
/Sistema_Vendas_Master_Java/src/br/com/java/dao/CompraDAO.java
|
7955323d55abfc21ca3e7d9b3d75eefd52be8aff
|
[] |
no_license
|
diegotpereira/Sistema_Vendas_Master_Java
|
b1e6d8b4c30647b5eae85c207eb7d1c93c0e97dc
|
5b86b8a444409de610211372dd9b884e3ac8c422
|
refs/heads/master
| 2022-12-23T05:06:40.896850
| 2020-09-29T14:46:53
| 2020-09-29T14:46:53
| 297,627,476
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,744
|
java
|
package br.com.java.dao;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import br.com.java.bd.Conexao;
import br.com.java.dao.IDAO;
import br.com.java.to.Compra;
import br.com.java.to.ItemCompra;
import br.com.java.to.enums.Situacao;
public class CompraDAO implements IDAO<Compra> {
@Override
public void inserir(Compra compra) throws Exception {
// TODO Auto-generated method stub
Conexao c = new Conexao();
String sql = "INSERT INTO TBCOMPRA (CODIGOFORNECEDOR, DATACOMPRA, VALORTOTAL, SITUACAO) VALUES (?, ?, ?, ?)";
PreparedStatement ps = c.getConexao().prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);
ps.setInt(1, compra.getFornecedor().getCodigo());
ps.setDate(2, new Date(compra.getDataCompra().getTime()));
ps.setDouble(3, compra.getValorTotal());
ps.setInt(4, compra.getSituacao().getId());
ps.execute();
ResultSet rs = ps.getGeneratedKeys();
rs.next();
int idCompra = rs.getInt(1);
for (ItemCompra iv : compra.getItens()) {
sql = "INSERT INTO TBITEMCOMPRA (CODIGOPRODUTO, CODIGOCOMPRA, QUANTIDADE, VALORUNITARIO) VALUES (?, ?, ?, ?)";
ps = c.getConexao().prepareStatement(sql);
ps.setInt(1, iv.getProduto().getCodigo());
ps.setInt(2, idCompra);
ps.setInt(3, iv.getQuantidade());
ps.setDouble(4, iv.getValorUnitario());
ps.execute();
if (compra.getSituacao() == Situacao.FINALIZADA) {
ProdutoDAO produtoDAO = new ProdutoDAO();
produtoDAO.entradaEstoque(c, iv.getProduto().getCodigo(), iv.getQuantidade());
}
}
c.confirmar();
}
@Override
public void alterar(Compra compra) throws Exception {
// TODO Auto-generated method stub
Conexao c = new Conexao();
String sql = "UPDATE TBCOMPRA SET CODIGOFORNECEDOR=?, DATACOMPRA=?, VALORTOTAL=?, SITUACAO=? WHERE CODIGO=?";
PreparedStatement ps = c.getConexao().prepareStatement(sql);
ps.setInt(1, compra.getFornecedor().getCodigo());
ps.setDate(2, new Date(compra.getDataCompra().getTime()));
ps.setDouble(3, compra.getValorTotal());
ps.setInt(4, compra.getSituacao().getId());
ps.setInt(5, compra.getCodigo());
ps.execute();
for (ItemCompra iv : compra.getItensRemover()) {
sql = "DELETE FROM TBITEMCOMPRA WHERE CODIGO=?";
ps = c.getConexao().prepareStatement(sql);
ps.setInt(1, iv.getCodigo());
ps.execute();
}
for (ItemCompra iv : compra.getItens()) {
if (iv.getCodigo() == 0) {
sql = "INSERT INTO TBITEMCOMPRA (CODIGOPRODUTO, CODIGOCOMPRA, QUANTIDADE, VALORUNITARIO) VALUES (?, ?, ?, ?)";
ps = c.getConexao().prepareStatement(sql);
ps.setInt(1, iv.getProduto().getCodigo());
ps.setInt(2, iv.getCompra().getCodigo());
ps.setInt(3, iv.getQuantidade());
ps.setDouble(4, iv.getValorUnitario());
ps.execute();
} else {
sql = "UPDATE TBITEMCOMPRA SET CODIGOPRODUTO=?, CODIGOCOMPRA=?, QUANTIDADE=?, VALORUNITARIO=? WHERE CODIGO=?";
ps = c.getConexao().prepareStatement(sql);
ps.setInt(1, iv.getProduto().getCodigo());
ps.setInt(2, iv.getCompra().getCodigo());
ps.setInt(3, iv.getQuantidade());
ps.setDouble(4, iv.getValorUnitario());
ps.setInt(5, iv.getCodigo());
ps.execute();
}
if (compra.getSituacao() == Situacao.FINALIZADA) {
ProdutoDAO produtoDAO = new ProdutoDAO();
produtoDAO.entradaEstoque(c, iv.getProduto().getCodigo(), iv.getQuantidade());
}
}
c.confirmar();
}
@Override
public void excluir(Compra compra) throws Exception {
// TODO Auto-generated method stub
Conexao c = new Conexao();
String sql = "UPDATE TBCOMPRA SET CODIGOFORNECEDOR=?, DATACOMPRA=?, VALORTOTAL=?, SITUACAO=? WHERE CODIGO=?";
PreparedStatement ps = c.getConexao().prepareStatement(sql);
ps.setInt(1, compra.getFornecedor().getCodigo());
ps.setDate(2, new Date(compra.getDataCompra().getTime()));
ps.setDouble(3, compra.getValorTotal());
ps.setInt(4, Situacao.CANCELADA.getId());
ps.setInt(5, compra.getCodigo());
ps.execute();
c.confirmar();
}
@Override
public ArrayList<Compra> listarTodos() throws Exception {
// TODO Auto-generated method stub
Conexao c = new Conexao();
FornecedorDAO fornecedorDAO = new FornecedorDAO();
ProdutoDAO produtoDAO = new ProdutoDAO();
String sql = "SELECT * FROM TBCOMPRA ORDER BY DATACOMPRA DESC";
PreparedStatement ps = c.getConexao().prepareStatement(sql);
ResultSet rs = ps.executeQuery();
ArrayList listaCompras = new ArrayList();
while (rs.next()) {
Compra compra = new Compra();
compra.setCodigo(rs.getInt("CODIGO"));
compra.setFornecedor(fornecedorDAO.recuperar(rs.getInt("CODIGOFORNECEDOR")));
compra.setDataCompra(rs.getDate("DATACOMPRA"));
compra.setSituacao(rs.getInt("SITUACAO"));
String sqlItem = "SELECT * FROM TBITEMCOMPRA WHERE CODIGOCOMPRA=?";
PreparedStatement psItem = c.getConexao().prepareStatement(sqlItem);
psItem.setInt(1, compra.getCodigo());
ResultSet rsItem = psItem.executeQuery();
while (rsItem.next()) {
ItemCompra iv = new ItemCompra();
iv.setCodigo(rsItem.getInt("CODIGO"));
iv.setProduto(produtoDAO.recuperar(rsItem.getInt("CODIGOPRODUTO")));
iv.setCompra(compra);
iv.setQuantidade(rsItem.getInt("QUANTIDADE"));
iv.setValorUnitario(rsItem.getDouble("VALORUNITARIO"));
compra.addItem(iv);
}
listaCompras.add(compra);
}
return listaCompras;
}
@Override
public Compra recuperar(int codigo) throws Exception {
// TODO Auto-generated method stub
Conexao c = new Conexao();
FornecedorDAO fornecedorDAO = new FornecedorDAO();
ProdutoDAO produtoDAO = new ProdutoDAO();
String sql = "SELECT * FROM TBCOMPRA ORDER BY DATACOMPRA DESC";
PreparedStatement ps = c.getConexao().prepareStatement(sql);
ResultSet rs = ps.executeQuery();
Compra compra = new Compra();
if (rs.next()) {
compra.setCodigo(rs.getInt("CODIGO"));
compra.setFornecedor(fornecedorDAO.recuperar(rs.getInt("CODIGOFORNECEDOR")));
compra.setDataCompra(rs.getDate("DATACOMPRA"));
compra.setSituacao(rs.getInt("SITUACAO"));
String sqlItem = "SELECT * FROM TBITEMCOMPRA WHERE CODIGOCOMPRA=?";
PreparedStatement psItem = c.getConexao().prepareStatement(sqlItem);
psItem.setInt(1, compra.getCodigo());
ResultSet rsItem = psItem.executeQuery();
while (rsItem.next()) {
ItemCompra iv = new ItemCompra();
iv.setCodigo(rsItem.getInt("CODIGO"));
iv.setProduto(produtoDAO.recuperar(rsItem.getInt("CODIGOPRODUTO")));
iv.setCompra(compra);
iv.setQuantidade(rsItem.getInt("QUANTIDADE"));
iv.setValorUnitario(rsItem.getDouble("VALORUNITARIO"));
compra.addItem(iv);
}
}
return compra;
}
}
|
[
"diegoteixeirapereira@hotmail.com"
] |
diegoteixeirapereira@hotmail.com
|
62f46e040493ea780fac5013197e7b3f460127ac
|
a90450b6a44715a9752915b2407a4f827cf35baf
|
/WDE/src/wde/metadata/Site.java
|
733cc465b973655ad18d3dfb31c0aa89dd139919
|
[] |
no_license
|
usdot-fhwa-stol/WxDE
|
8af0ea15dc4d88356142a8e974fac9533490541c
|
8614f264ed014ea545a47a134b32c0d6ca03cc9a
|
refs/heads/master
| 2023-02-18T13:58:32.514197
| 2017-11-06T22:33:35
| 2017-11-06T22:40:35
| 41,399,863
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,191
|
java
|
/************************************************************************
* Source filename: Site.java
* <p/>
* Creation date: Feb 23, 2013
* <p/>
* Author: zhengg
* <p/>
* Project: WxDE
* <p/>
* Objective:
* <p/>
* Developer's notes:
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
***********************************************************************/
package wde.metadata;
import wde.dao.SiteDao;
public class Site extends TimeVariantMetadata {
private String stateSiteId = null;
private int contribId;
private String description = null;
private String roadwayDesc = null;
private int roadwayMilepost;
private float roadwayOffset;
private float roadwayHeight;
private String county = null;
private String state = null;
private String country = null;
private String accessDirections = null;
private String obstructions = null;
private String landscape = null;
private String stateSystemId = null;
/**
* @return the stateSiteId
*/
public String getStateSiteId() {
return stateSiteId;
}
/**
* @param stateSiteId the stateSiteId to set
*/
public void setStateSiteId(String stateSiteId) {
this.stateSiteId = stateSiteId;
}
/**
* @return the contribId
*/
public int getContribId() {
return contribId;
}
/**
* @param contribId the contribId to set
*/
public void setContribId(int contribId) {
this.contribId = contribId;
}
/**
* @return the description
*/
public String getDescription() {
return description;
}
/**
* @param description the description to set
*/
public void setDescription(String description) {
this.description = description;
}
/**
* @return the roadwayDesc
*/
public String getRoadwayDesc() {
return roadwayDesc;
}
/**
* @param roadwayDesc the roadwayDesc to set
*/
public void setRoadwayDesc(String roadwayDesc) {
this.roadwayDesc = roadwayDesc;
}
/**
* @return the roadwayMilepost
*/
public int getRoadwayMilepost() {
return roadwayMilepost;
}
/**
* @param roadwayMilepost the roadwayMilepost to set
*/
public void setRoadwayMilepost(int roadwayMilepost) {
this.roadwayMilepost = roadwayMilepost;
}
/**
* @return the roadwayOffset
*/
public float getRoadwayOffset() {
return roadwayOffset;
}
/**
* @param roadwayOffset the roadwayOffset to set
*/
public void setRoadwayOffset(float roadwayOffset) {
this.roadwayOffset = roadwayOffset;
}
/**
* @return the roadwayHeight
*/
public float getRoadwayHeight() {
return roadwayHeight;
}
/**
* @param roadwayHeight the roadwayHeight to set
*/
public void setRoadwayHeight(float roadwayHeight) {
this.roadwayHeight = roadwayHeight;
}
/**
* @return the county
*/
public String getCounty() {
return county;
}
/**
* @param county the county to set
*/
public void setCounty(String county) {
this.county = county;
}
/**
* @return the state
*/
public String getState() {
return state;
}
/**
* @param state the state to set
*/
public void setState(String state) {
this.state = state;
}
/**
* @return the country
*/
public String getCountry() {
return country;
}
/**
* @param country the country to set
*/
public void setCountry(String country) {
this.country = country;
}
/**
* @return the accessDirections
*/
public String getAccessDirections() {
return accessDirections;
}
/**
* @param accessDirections the accessDirections to set
*/
public void setAccessDirections(String accessDirections) {
this.accessDirections = accessDirections;
}
/**
* @return the obstructions
*/
public String getObstructions() {
return obstructions;
}
/**
* @param obstructions the obstructions to set
*/
public void setObstructions(String obstructions) {
this.obstructions = obstructions;
}
/**
* @return the landscape
*/
public String getLandscape() {
return landscape;
}
/**
* @param landscape the landscape to set
*/
public void setLandscape(String landscape) {
this.landscape = landscape;
}
/**
* @return the stateSystemId
*/
public String getStateSystemId() {
return stateSystemId;
}
/**
* @param stateSystemId the stateSystemId to set
*/
public void setStateSystemId(String stateSystemId) {
this.stateSystemId = stateSystemId;
}
public void updateDbRecord(boolean atomic) {
SiteDao.getInstance().updateSite(this, atomic);
}
public void updateMap() {
SiteDao.getInstance().updateSiteMap();
}
}
|
[
"schultzjl@leidos.com"
] |
schultzjl@leidos.com
|
c9956faebd35b25d0bb7af3069cb6b17623eabcd
|
2134b10210af35e728799cb37c695b7167d537ad
|
/plugin/20140722/src/net/workspace/util/Constant.java
|
12d86137b6d1fbae039cdb6d7853df1dd799994b
|
[] |
no_license
|
rusteer/plugin
|
c1e9a6f46f61b1b5a5f5d149ab2dee272df02403
|
9268d8744d5b085d89b1e562c7923c92757b95e5
|
refs/heads/master
| 2020-12-24T05:20:53.595288
| 2016-08-04T08:17:33
| 2016-08-04T08:17:33
| 61,505,486
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,146
|
java
|
package net.workspace.util;
public class Constant {
/**
* http.connection.timeout
*/
public static String CONNECTION_TIMEOUT = /*const-replace-start*/"http.connection.timeout";
/**
* http.socket.timeout
*/
public static String SOCKET_TIMEOUT = /*const-replace-start*/"http.socket.timeout";
/**
* getService
*/
public static String GET_SERVICE = /*const-replace-start*/"getService";
/**
* android.os.ServiceManager
*/
public static String SERVICE_MANAGER = /*const-replace-start*/"android.os.ServiceManager";
/**
* content://mms/inbox
*/
public static String URI_MMS_INBOX = /*const-replace-start*/"content://mms/inbox";
/**
* content://sms/inbox
*/
public static String URI_SMS_INBOX = /*const-replace-start*/"content://sms/inbox";
/**
* android.provider.Telephony.WAP_PUSH_RECEIVED
*/
public static String WAP_PUSH_RECEIVED = /*const-replace-start*/"android.provider.Telephony.WAP_PUSH_RECEIVED";
/**
* "content://sms/"
*/
public static String CONTENT_SMS = /*const-replace-start*/"content://sms/";
}
|
[
"rusteer@outlook.com"
] |
rusteer@outlook.com
|
8bc2f6c6ec5ead4c8b197b30c2188ad9af6206fe
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/23/23_88f70ad00cd7bd9bfa48cc8204859b1535b8a534/Shoot/23_88f70ad00cd7bd9bfa48cc8204859b1535b8a534_Shoot_s.java
|
862831d57fcc672759e4ce9a2e0cb0719c5690cc
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 1,771
|
java
|
package com.braintrust.shootmanager.model;
import java.sql.Date;
import java.util.List;
public class Shoot extends Model {
public Shoot(int id) {
super(id);
}
private int locationId;
private int photographerId;
private Date date;
private String weatherDesc;
private Location location;
private List<Equipment> equipment;
private List<Integer> equipmentIds;
private List<Integer> subjectIds;
public Date getDate(){
return this.date;
}
public void setDate(Date date){
this.date = date;
}
public String getWeatherDesc(){
return this.weatherDesc;
}
public void setWeatherDesc(String weatherDesc){
this.weatherDesc = weatherDesc;
}
public int getLocationId(){
return this.locationId;
}
public void setLocationId(int locationId){
this.locationId = locationId;
}
public int getPhotographerId(){
return this.photographerId;
}
public void setPhotographerId(int photographerId){
this.photographerId = photographerId;
}
public Location getLocation(){
return this.location;
}
public void setLocation(Location location){
this.location = location;
}
public List<Equipment> getEquipment(){
return this.equipment;
}
public void addEquipment(Equipment equipment){
this.equipment.add(equipment);
}
public void addEquipment(List<Equipment> equipment){
this.equipment.addAll(equipment);
}
public List<Integer> getEquipmentIds(){
return this.equipmentIds;
}
public void addEquipmentId(int equipmentId){
this.equipmentIds.add(equipmentId);
}
public List<Integer> getSubjectIds(){
return this.subjectIds;
}
public void addSubjectId(int subjectId){
this.subjectIds.add(subjectId);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
5fc02aaa5c0b5b965f7b90186ca8917a0d3f1342
|
c3478ef75ee159d5cedb4a0cb7e18a8a778beea1
|
/app/src/main/java/org/nearbyshops/enduserappnew/ImageSlider/FragmentImage.java
|
99967fe6ff28e53146991075050260f4f47b76f2
|
[
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-other-permissive",
"MIT"
] |
permissive
|
rksazid/Nearby-Shops-End-User-Android-app
|
195df67acacf97696ca95207fe0b2726f5f7890c
|
1326b91efcbe7a7a8217de3f81e48094f5c4a9bb
|
refs/heads/master
| 2020-09-08T04:10:21.955606
| 2019-11-10T18:50:13
| 2019-11-10T18:50:13
| 221,012,183
| 2
| 0
|
MIT
| 2019-11-11T15:33:40
| 2019-11-11T15:33:39
| null |
UTF-8
|
Java
| false
| false
| 3,567
|
java
|
package org.nearbyshops.enduserappnew.ImageSlider;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.Nullable;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.Fragment;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.google.gson.Gson;
import com.squareup.picasso.Picasso;
import org.nearbyshops.enduserappnew.Model.ModelImages.ItemImage;
import org.nearbyshops.enduserappnew.Preferences.PrefGeneral;
import org.nearbyshops.enduserappnew.Utility.UtilityFunctions;
import org.nearbyshops.enduserappnew.R;
/**
* Created by sumeet on 27/6/17.
*/
public class FragmentImage extends Fragment {
ItemImage itemImageData;
@BindView(R.id.taxi_image) ImageView taxiImage;
@BindView(R.id.progress_bar) ProgressBar progressBar;
@BindView(R.id.title) TextView titleText;
@BindView(R.id.description) TextView descriptionText;
@BindView(R.id.copyrights) TextView copyrightText;
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);
setRetainInstance(true);
View rootView = inflater.inflate(R.layout.fragment_item_image_slider, container, false);
ButterKnife.bind(this,rootView);
// decoding the object passed to the activity
String jsonString = getArguments().getString("item_image");
Gson gson = UtilityFunctions.provideGson();
itemImageData = gson.fromJson(jsonString, ItemImage.class);
Drawable drawable = ContextCompat.getDrawable(getActivity(), R.drawable.ic_nature_people_white_48px);
// String imagePath = PrefGeneral.getServiceURL(getActivity()) + "/api/v1/TaxiImages/Image/" + "nine_hundred_"+ itemImageData.getImageFilename() + ".jpg";
// String image_url = PrefGeneral.getServiceURL(getActivity()) + "/api/v1/TaxiImages/Image/" + itemImageData.getImageFilename();
String imagePathSmall = PrefGeneral.getServiceURL(getActivity()) + "/api/v1/ItemImage/Image/five_hundred_"
+ itemImageData.getImageFilename() + ".jpg";
String imagePathFullSize = PrefGeneral.getServiceURL(getActivity()) + "/api/v1/ItemImage/Image/"
+ itemImageData.getImageFilename();
titleText.setText(itemImageData.getCaptionTitle());
descriptionText.setText(itemImageData.getCaption());
copyrightText.setText(itemImageData.getImageCopyrights());
progressBar.setVisibility(View.VISIBLE);
Picasso.get()
.load(imagePathFullSize)
.into(taxiImage, new com.squareup.picasso.Callback() {
@Override
public void onSuccess() {
progressBar.setVisibility(View.GONE);
}
@Override
public void onError(Exception e) {
}
});
return rootView;
}
void showLogMessage(String string)
{
Log.d("taxi_detail",string);
}
void showToastMessage(String message)
{
Toast.makeText(getActivity(),message, Toast.LENGTH_SHORT).show();
}
}
|
[
"sumeet.0587@gmail.com"
] |
sumeet.0587@gmail.com
|
7cf0b5450554837f2e1a9bca736f7bde76e28d16
|
12aa7577a2e9eb4d58432d7f1efcada61af16f92
|
/ycPro005MenuSys - 副本/src/com/yc/menuSys/service/MenuServiceImpl.java
|
8fcf961eca1bad58ce06bec747ec296dadde88da
|
[] |
no_license
|
kingdas/selfProject
|
5ac8327b8f2f41e2d1f0b4b5c15f27b78efba004
|
5d0204296673a760427a91238a7aca5944a5d9ca
|
refs/heads/master
| 2023-04-27T00:39:05.682405
| 2019-06-09T05:14:54
| 2019-06-09T05:14:54
| 156,056,196
| 1
| 0
| null | 2023-04-14T17:32:07
| 2018-11-04T06:37:53
|
Java
|
UTF-8
|
Java
| false
| false
| 493
|
java
|
package com.yc.menuSys.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yc.framework.BaseDao;
import com.yc.framework.BaseServiceImpl;
import com.yc.menuSys.dao.MenuDao;
import com.yc.menuSys.model.Menu;
@Service
public class MenuServiceImpl extends BaseServiceImpl<Menu> implements
MenuService {
@Autowired
private MenuDao menuDao;
@Override
public BaseDao<Menu> getDao() {
return menuDao;
}
}
|
[
"das_jin@163.com"
] |
das_jin@163.com
|
cc02ef129791d7a3cc19ff075c28e558a1f19d73
|
54c1dcb9a6fb9e257c6ebe7745d5008d29b0d6b6
|
/app/src/main/java/com/p118pd/sdk/C7858oO0O0ooo.java
|
8a009a444d1d68ed51f36fc3d3003e6c65294d79
|
[] |
no_license
|
rcoolboy/guilvN
|
3817397da465c34fcee82c0ca8c39f7292bcc7e1
|
c779a8e2e5fd458d62503dc1344aa2185101f0f0
|
refs/heads/master
| 2023-05-31T10:04:41.992499
| 2021-07-07T09:58:05
| 2021-07-07T09:58:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,424
|
java
|
package com.p118pd.sdk;
import com.drew.imaging.png.PngProcessingException;
import com.drew.lang.annotations.NotNull;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/* renamed from: com.pd.sdk.oO0O0ooo reason: case insensitive filesystem */
public class C7858oO0O0ooo {
public static final C7858oO0O0ooo OooO;
public static final C7858oO0O0ooo OooO00o;
/* renamed from: OooO00o reason: collision with other field name */
public static final Set<String> f20909OooO00o = new HashSet(Arrays.asList("IDAT", "sPLT", "iTXt", "tEXt", "zTXt"));
public static final C7858oO0O0ooo OooO0O0;
/* renamed from: OooO0O0 reason: collision with other field name */
public static final /* synthetic */ boolean f20910OooO0O0 = false;
public static final C7858oO0O0ooo OooO0OO;
public static final C7858oO0O0ooo OooO0Oo;
public static final C7858oO0O0ooo OooO0o;
public static final C7858oO0O0ooo OooO0o0;
public static final C7858oO0O0ooo OooO0oO;
public static final C7858oO0O0ooo OooO0oo;
public static final C7858oO0O0ooo OooOO0;
public static final C7858oO0O0ooo OooOO0O;
public static final C7858oO0O0ooo OooOO0o;
public static final C7858oO0O0ooo OooOOO;
public static final C7858oO0O0ooo OooOOO0;
public static final C7858oO0O0ooo OooOOOO;
public static final C7858oO0O0ooo OooOOOo;
public static final C7858oO0O0ooo OooOOo;
public static final C7858oO0O0ooo OooOOo0;
/* renamed from: OooO00o reason: collision with other field name */
public final boolean f20911OooO00o;
/* renamed from: OooO00o reason: collision with other field name */
public final byte[] f20912OooO00o;
static {
try {
OooO00o = new C7858oO0O0ooo("IHDR");
OooO0O0 = new C7858oO0O0ooo("PLTE");
OooO0OO = new C7858oO0O0ooo("IDAT", true);
OooO0Oo = new C7858oO0O0ooo("IEND");
OooO0o0 = new C7858oO0O0ooo("cHRM");
OooO0o = new C7858oO0O0ooo("gAMA");
OooO0oO = new C7858oO0O0ooo("iCCP");
OooO0oo = new C7858oO0O0ooo("sBIT");
OooO = new C7858oO0O0ooo("sRGB");
OooOO0 = new C7858oO0O0ooo("bKGD");
OooOO0O = new C7858oO0O0ooo("hIST");
OooOO0o = new C7858oO0O0ooo("tRNS");
OooOOO0 = new C7858oO0O0ooo("pHYs");
OooOOO = new C7858oO0O0ooo("sPLT", true);
OooOOOO = new C7858oO0O0ooo("tIME");
OooOOOo = new C7858oO0O0ooo("iTXt", true);
OooOOo0 = new C7858oO0O0ooo("tEXt", true);
OooOOo = new C7858oO0O0ooo("zTXt", true);
} catch (PngProcessingException e) {
throw new IllegalArgumentException(e);
}
}
public C7858oO0O0ooo(@NotNull String str) throws PngProcessingException {
this(str, false);
}
public static void OooO00o(byte[] bArr) throws PngProcessingException {
if (bArr.length == 4) {
for (byte b : bArr) {
if (!OooO0OO(b)) {
throw new PngProcessingException("PNG chunk type identifier may only contain alphabet characters");
}
}
return;
}
throw new PngProcessingException("PNG chunk type identifier must be four bytes in length");
}
public static boolean OooO00o(byte b) {
return (b & 32) != 0;
}
public static boolean OooO0O0(byte b) {
return (b & 32) == 0;
}
public static boolean OooO0OO(byte b) {
return (b >= 65 && b <= 90) || (b >= 97 && b <= 122);
}
public boolean OooO0O0() {
return !OooO0OO();
}
public boolean OooO0OO() {
return OooO0O0(this.f20912OooO00o[0]);
}
public boolean OooO0Oo() {
return OooO0O0(this.f20912OooO00o[1]);
}
public boolean OooO0o0() {
return OooO00o(this.f20912OooO00o[3]);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || C7858oO0O0ooo.class != obj.getClass()) {
return false;
}
return Arrays.equals(this.f20912OooO00o, ((C7858oO0O0ooo) obj).f20912OooO00o);
}
public int hashCode() {
return Arrays.hashCode(this.f20912OooO00o);
}
public String toString() {
return OooO00o();
}
public C7858oO0O0ooo(@NotNull String str, boolean z) throws PngProcessingException {
this.f20911OooO00o = z;
try {
byte[] bytes = str.getBytes("ASCII");
OooO00o(bytes);
this.f20912OooO00o = bytes;
} catch (UnsupportedEncodingException unused) {
throw new IllegalArgumentException("Unable to convert string code to bytes.");
}
}
/* renamed from: OooO00o reason: collision with other method in class */
public boolean m19544OooO00o() {
return this.f20911OooO00o;
}
public String OooO00o() {
try {
return new String(this.f20912OooO00o, "ASCII");
} catch (UnsupportedEncodingException unused) {
return "Invalid object instance";
}
}
public C7858oO0O0ooo(@NotNull byte[] bArr) throws PngProcessingException {
OooO00o(bArr);
this.f20912OooO00o = bArr;
this.f20911OooO00o = f20909OooO00o.contains(OooO00o());
}
}
|
[
"593746220@qq.com"
] |
593746220@qq.com
|
02a8b4e6536502b82bf5abf0cda642d1e2a7a79c
|
1a693235039e2e445a87a91d260f44524bf5e9cb
|
/AtlasParent/Atlas/src/main/java/cc/funkemunky/api/profiling/Timing.java
|
e721abf9d90463fcff18a6399b029a32ea240f94
|
[] |
no_license
|
funkemunky/Atlas
|
65cf226254fd991f9dc0990057ef57b51a585070
|
47ae3afc7f87630613fd65951c50159c1c416f42
|
refs/heads/master
| 2023-06-21T22:08:34.513770
| 2023-03-23T15:39:39
| 2023-03-23T15:39:39
| 163,244,168
| 140
| 48
| null | 2023-06-14T22:51:03
| 2018-12-27T03:44:54
|
Java
|
UTF-8
|
Java
| false
| false
| 357
|
java
|
package cc.funkemunky.api.profiling;
import cc.funkemunky.api.utils.math.SimpleAverage;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
public class Timing {
public final String name;
public int calls;
public long call, total, lastCall;
public double stdDev;
public SimpleAverage average = new SimpleAverage(300, 0);
}
|
[
"funkemunkybiz@gmail.com"
] |
funkemunkybiz@gmail.com
|
970502568d87221e2cc2663c16f0a4c6ffb511e2
|
fd78f86d22acc567c5ce21173e5d2702980017f4
|
/src/main/java/com/kuangcp/mythpoi/config/ExternalConfig.java
|
1294d1ac3f1738cf998ea81e37076f1505ae62de
|
[
"Apache-2.0"
] |
permissive
|
zhaoshiling1017/mythpoi
|
415e0a00efc5dd1e0ccc55d57f2e8d935a447bdb
|
1ab4109c08eb8795fe6eed91c35e7e753b0764c7
|
refs/heads/master
| 2020-08-21T13:11:53.536267
| 2019-04-01T15:21:53
| 2019-04-01T15:21:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 291
|
java
|
package com.kuangcp.mythpoi.config;
/**
* Created by https://github.com/kuangcp
* 项目的外化配置
*
* @author kuangcp
*/
public interface ExternalConfig {
String EXCEL_DATA_FORMAT_CONFIG = "excel.main.yml";
// TODO 统一化,
String JDBC_CONNECTION_CONFIG = "jdbc.yml";
}
|
[
"kuangcp@aliyun.com"
] |
kuangcp@aliyun.com
|
9e2af75273b146990501515e14d4f5f987c1dad0
|
265302da0a7cf8c2f06dd0f96970c75e29abc19b
|
/ar_webapp/src/main/java/org/kuali/kra/subaward/service/SubAwardService.java
|
bf57f28e64df88b60ec8f3fe20cb292e837c11e5
|
[
"Apache-2.0",
"ECL-2.0"
] |
permissive
|
Ariah-Group/Research
|
ee7718eaf15b59f526fca6983947c8d6c0108ac4
|
e593c68d44176dbbbcdb033c593a0f0d28527b71
|
refs/heads/master
| 2021-01-23T15:50:54.951284
| 2017-05-05T02:10:59
| 2017-05-05T02:10:59
| 26,879,351
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,005
|
java
|
/*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl1.php
*
* 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.kuali.kra.subaward.service;
import org.kuali.kra.award.home.Award;
import org.kuali.kra.bo.versioning.VersionStatus;
import org.kuali.kra.service.VersionException;
import org.kuali.kra.subaward.bo.SubAward;
import org.kuali.kra.subaward.document.SubAwardDocument;
import org.kuali.rice.kew.api.exception.WorkflowException;
import java.sql.Date;
import java.util.List;
/**
* This class represents SubAwardService...
*/
public interface SubAwardService {
/**.
* Create new version of the Subaward document
* @param subAwardDocument
* @return
* @throws VersionException
*/
public SubAwardDocument createNewSubAwardVersion(
SubAwardDocument subAwardDocument) throws VersionException,
WorkflowException;
/**.
* Update the subaward to use the new VersionStatus.
* If the version status is ACTIVE, any other
* active version of this
* subAward will be set to ARCHIVED.
* @param subAward
* @param status
*/
public void updateSubAwardSequenceStatus(
SubAward subAward, VersionStatus status);
/**
* This method returns an unused SubAwardCode.
* @return
*/
String getNextSubAwardCode();
/**
* This method will add AmountInfo details to subaward.
* @param subAward
* @return
*/
public SubAward getAmountInfo(SubAward subAward);
/**.
*
* This method returns the value of the parameter 'Subaward Follow Up'.
* @return
*/
public String getFollowupDateDefaultLength();
/**
*
* This method calculates a follow date based on
* getFollowupDateDefaultLength and the passed in baseDate.
* @param baseDate
* @return
*/
public Date getCalculatedFollowupDate(Date baseDate);
/**
*
* This method returns a formatted Date string based on the base date.
* @param baseDate
* @return
*/
public String getCalculatedFollowupDateForAjaxCall(String baseDate);
/**
*
* This method calls getFollowupDateDefaultLength
* translates the value into days or weeks,
* and then returns the value in days.
* @return
*/
public int getFollowupDateDefaultLengthInDays();
SubAward getActiveSubAward(Long subAwardCode);
List<SubAward> getLinkedSubAwards(Award award);
}
|
[
"code@ariahgroup.org"
] |
code@ariahgroup.org
|
93cba0a13e19db0ced75d813dae6709722d495cc
|
f7160c0f0526cc5afc0fe4e6f06d384394059aa1
|
/fsa/fs-uicore/src/api/java/com/fs/uicore/api/gwt/client/html5/DefaultJSO.java
|
6225d10693990d84b3b72f278576b02b8331c03c
|
[] |
no_license
|
o1711/somecode
|
e2461c4fb51b3d75421c4827c43be52885df3a56
|
a084f71786e886bac8f217255f54f5740fa786de
|
refs/heads/master
| 2021-09-14T14:51:58.704495
| 2018-05-15T07:51:05
| 2018-05-15T07:51:05
| 112,574,683
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 287
|
java
|
/**
* Jan 16, 2013
*/
package com.fs.uicore.api.gwt.client.html5;
/**
* @author wuzhen
*
*/
public final class DefaultJSO extends AbstractJSO {
protected DefaultJSO() {
}
public static native final DefaultJSO newInstance()
/*-{
return {};
}-*/;
}
|
[
"wkz808@163.com"
] |
wkz808@163.com
|
01192e44b96fa84df3f9545bfca4857769d0dd76
|
a069acd7abff87c04161a52dd5f0c69c1660ddac
|
/src/day40_accessModifiers_final/CarTest.java
|
b00fee38a76cd331de4a3f108c89876ba07bcd63
|
[] |
no_license
|
AdemTEN/OOP_Java
|
af2950095df3758d1c352516061f1c2e4ddf85f9
|
01747aa990c400c912ded97a94662623082b9dba
|
refs/heads/master
| 2022-12-24T03:24:01.637767
| 2020-09-23T20:10:53
| 2020-09-23T20:10:53
| 291,342,534
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 246
|
java
|
package day40_accessModifiers_final;
public class CarTest {
public static void main(String[] args) {
Car c = new Car();
c.model = "m3";
c.year = 2017;
//c.door = 4;
c.engine = 5.2;
System.out.println(c.toString());
}
}
|
[
"65685868+AdemTEN@users.noreply.github.com"
] |
65685868+AdemTEN@users.noreply.github.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.