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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
91584883290b227386c88184d9aebe4a8ab16306
|
478106dd8b16402cc17cc39b8d65f6cd4e445042
|
/l2junity-gameserver/src/main/java/org/l2junity/gameserver/enums/MatchingRoomType.java
|
2c92c8d7a7a753a590a735dc8d56af0e82582c56
|
[] |
no_license
|
czekay22/L2JUnderGround
|
9f014cf87ddc10d7db97a2810cc5e49d74e26cdf
|
1597b28eab6ec4babbf333c11f6abbc1518b6393
|
refs/heads/master
| 2020-12-30T16:58:50.979574
| 2018-09-28T13:38:02
| 2018-09-28T13:38:02
| 91,043,466
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 848
|
java
|
/*
* Copyright (C) 2004-2015 L2J Unity
*
* This file is part of L2J Unity.
*
* L2J Unity is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* L2J Unity is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.l2junity.gameserver.enums;
/**
* @author Sdw
*/
public enum MatchingRoomType
{
PARTY,
COMMAND_CHANNEL
}
|
[
"unafraid89@gmail.com"
] |
unafraid89@gmail.com
|
afa139f9de6cd7214a5a74ec302038061cf81e78
|
7fa9c6b0fa1d0726ae1cda0199716c811a1ea01b
|
/Crawler/data/MyFunctionalInterface.java
|
2575330d8bc04a8eaea1170a5dcb7c94bd7c6664
|
[] |
no_license
|
NayrozD/DD2476-Project
|
b0ca75799793d8ced8d4d3ba3c43c79bb84a72c0
|
94dfb3c0a470527b069e2e0fd9ee375787ee5532
|
refs/heads/master
| 2023-03-18T04:04:59.111664
| 2021-03-10T15:03:07
| 2021-03-10T15:03:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 852
|
java
|
2
https://raw.githubusercontent.com/liuminchao123/JavaWeb_Learning/master/02.%20java/Java/%E9%BB%91%E9%A9%AC%E6%95%99%E7%A8%8B/23.%E3%80%90%E5%87%BD%E6%95%B0%E5%BC%8F%E6%8E%A5%E5%8F%A3%E3%80%91-%E7%AC%94%E8%AE%B0/code/12_FunctionalInterface/src/com/itheima/demo01/FunctionalInterface/MyFunctionalInterface.java
package com.itheima.demo01.FunctionalInterface;
/*
函数式接口:有且只有一个抽象方法的接口,称之为函数式接口
当然接口中可以包含其他的方法(默认,静态,私有)
@FunctionalInterface注解
作用:可以检测接口是否是一个函数式接口
是:编译成功
否:编译失败(接口中没有抽象方法抽象方法的个数多余1个)
*/
@FunctionalInterface
public interface MyFunctionalInterface {
//定义一个抽象方法
public abstract void method();
}
|
[
"veronika.cucorova@gmail.com"
] |
veronika.cucorova@gmail.com
|
cc19dfd6f8190f4026239efc6f173d66ca7b3356
|
1b996fd16eb93c63341a9de377bfeb5cfae4d21e
|
/src/leetcodeProblems/medium/ZigzagTraversal103.java
|
4a3cb01013c272473b2442bb08eb36dbf1584050
|
[] |
no_license
|
nikhilagrwl07/Leetcode-Java-Solutions
|
8d5fd3a28afdf27b51c1e638cbe0283967f73224
|
28d97dd96d3faa93d6cac975518c08143be53ebe
|
refs/heads/master
| 2021-06-15T06:08:04.860423
| 2021-05-03T15:20:53
| 2021-05-03T15:20:53
| 192,016,779
| 1
| 1
| null | 2021-04-19T13:26:06
| 2019-06-14T23:39:53
|
Java
|
UTF-8
|
Java
| false
| false
| 2,406
|
java
|
package leetcodeProblems.medium;
import java.util.*;
public class ZigzagTraversal103 {
public static void main(String[] args) {
ZigzagTraversal103 ob = new ZigzagTraversal103();
TreeNode treeNode = ob.buildTree();
List<List<Integer>> lists = ob.zigzagLevelOrder(treeNode);
System.out.println(lists);
}
private TreeNode buildTree() {
TreeNode root = new TreeNode(3);
TreeNode nine = new TreeNode(9);
TreeNode tweenty = new TreeNode(20);
TreeNode fifteen = new TreeNode(15);
TreeNode seven = new TreeNode(7);
root.left = nine;
root.right = tweenty;
tweenty.left = fifteen;
tweenty.right = seven;
return root;
}
public List<List<Integer>> zigzagLevelOrder(TreeNode root) {
if (root == null)
return new ArrayList<>();
List<List<Integer>> result = new ArrayList<>();
Queue<TreeNode> q = new LinkedList<>();
q.add(root);
q.add(null);
boolean flip = false;
LinkedList<Integer> levelNode = new LinkedList<>();
Stack<Integer> stack = new Stack<>();
while (!q.isEmpty()) {
TreeNode poll = q.poll();
// System.out.println(poll);
if (poll == null) {
if (flip) {
List<Integer> tmp = new ArrayList<>();
while (!stack.isEmpty()){
tmp.add(stack.pop());
}
result.add(tmp);
stack.clear();
} else {
result.add(new ArrayList<>(levelNode));
levelNode.clear();
}
flip = !flip;
if (q.peek() == null)
break;
q.add(null);
} else {
if (flip) {
stack.push(poll.val);
} else {
levelNode.add(poll.val);
}
if (poll.left != null)
q.offer(poll.left);
if (poll.right != null)
q.offer(poll.right);
}
}
return result;
}
static class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int val) {
this.val = val;
}
}
}
|
[
"nikhil.agrwl07@gmail.com"
] |
nikhil.agrwl07@gmail.com
|
58460814e54aa211129d50bb918123aa7a32651d
|
1be3c58802588e168d02fd40600c996699abaed4
|
/test/plugin/scenarios/jedis-scenario/src/main/java/org/apache/skywalking/apm/testcase/jedis/controller/CaseController.java
|
e38b2b2a311bd6279e6072616e66de6d747d3c91
|
[
"Apache-2.0",
"BSD-3-Clause"
] |
permissive
|
zhentaoJin/skywalking
|
e73a4dd612e01d93981345444a462c47096d6ab5
|
dbce5f5cce2cd8ed26ce6d662f2bd6d5a0886bc1
|
refs/heads/master
| 2021-04-09T23:40:19.407603
| 2020-11-05T15:13:29
| 2020-11-05T15:13:29
| 305,288,772
| 6
| 0
|
Apache-2.0
| 2020-10-19T06:48:38
| 2020-10-19T06:48:38
| null |
UTF-8
|
Java
| false
| false
| 1,952
|
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.skywalking.apm.testcase.jedis.controller;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/case")
public class CaseController {
private static final String SUCCESS = "Success";
@Value("${redis.host:127.0.0.1}")
private String redisHost;
@Value("${redis.port:6379}")
private Integer redisPort;
@RequestMapping("/jedis-scenario")
@ResponseBody
public String testcase() throws Exception {
try (RedisCommandExecutor command = new RedisCommandExecutor(redisHost, redisPort)) {
command.set("a", "a");
command.get("a");
command.del("a");
}
return SUCCESS;
}
@RequestMapping("/healthCheck")
@ResponseBody
public String healthCheck() throws Exception {
try (RedisCommandExecutor command = new RedisCommandExecutor(redisHost, redisPort)) {
}
return SUCCESS;
}
}
|
[
"wu.sheng@foxmail.com"
] |
wu.sheng@foxmail.com
|
de265969c1f0d139c9c9ab0ab9227adc242860f9
|
421f0a75a6b62c5af62f89595be61f406328113b
|
/generated_tests/model_seeding/22_byuic-com.yahoo.platform.yui.compressor.JarClassLoader-1.0-10/com/yahoo/platform/yui/compressor/JarClassLoader_ESTest_scaffolding.java
|
e792a1e10bfc0e70ef771285ba672807437e6c62
|
[] |
no_license
|
tigerqiu712/evosuite-model-seeding-empirical-evaluation
|
c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6
|
11a920b8213d9855082d3946233731c843baf7bc
|
refs/heads/master
| 2020-12-23T21:04:12.152289
| 2019-10-30T08:02:29
| 2019-10-30T08:02:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 554
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sat Oct 26 01:42:40 GMT 2019
*/
package com.yahoo.platform.yui.compressor;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class JarClassLoader_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pderakhshanfar@bsr01.win.tue.nl"
] |
pderakhshanfar@bsr01.win.tue.nl
|
680a7440a40e73362230cf5190d93519dc85ed6c
|
e315c2bb2ea17cd8388a39aa0587e47cb417af0a
|
/backoffice/tn/com/smartsoft/backoffice/referentiel/saison/presentation/model/SaisonsModel.java
|
1fe5f1aff9e9f4ee6a5b9ef33dc998ce66a96a48
|
[] |
no_license
|
wissem007/badges
|
000536a40e34e20592fe6e4cb2684d93604c44c9
|
2064bd07b52141cf3cff0892e628cc62b4f94fdc
|
refs/heads/master
| 2020-12-26T14:06:11.693609
| 2020-01-31T23:40:07
| 2020-01-31T23:40:07
| 237,530,008
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 277
|
java
|
package tn.com.smartsoft.backoffice.referentiel.saison.presentation.model;
import tn.com.smartsoft.framework.presentation.model.GenericEntiteModel;
public class SaisonsModel extends GenericEntiteModel {
/**
*
*/
private static final long serialVersionUID = 1L;
}
|
[
"alouiwiss@gmail.com"
] |
alouiwiss@gmail.com
|
66a4c570d5b4ec463329a7b987d8c491f21f1c30
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/8/8_5fc9d09e386a298265876b8a331f735c5b47333b/HashingUtils/8_5fc9d09e386a298265876b8a331f735c5b47333b_HashingUtils_t.java
|
ad07b92eae26ce71b84596c9df9e917244cce8b7
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,101
|
java
|
/*
Copyright 2011 Monits
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.monits.commons;
import java.io.ByteArrayInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/**
* Hashing utilities.
*
* @author Franco Zeoli <fzeoli@monits.com>
* @copyright 2011 Monits
* @license Apache 2.0 License
* @version Release: 1.0.0
* @link http://www.monits.com/
* @since 1.0.0
*/
public class HashingUtils {
/**
* Retrieves the file hashed by the given hashing algorithm.
* @param filename The path to the file to hash.
* @param algorithm Which hashing algorithm to use.
* @return The resulting hash
* @throws FileNotFoundException
*/
public static String getFileHash(String filename, HashingAlgorithm algorithm) throws FileNotFoundException {
return getHash(new FileInputStream(filename), algorithm);
}
/**
* Retrieves the given input string hashed with the given hashing algorithm.
* @param input The string to hash.
* @param algorithm Which hashing algorithm to use.
* @return The resulting hash
*/
public static String getHash(String input, HashingAlgorithm algorithm) {
return getHash(new ByteArrayInputStream(input.getBytes()), algorithm);
}
/**
* Retrieves the given input string hashed with the given hashing algorithm.
* @param input The source from which to read the input to hash.
* @param algorithm Which hashing algorithm to use.
* @return The resulting hash
*/
public static String getHash(InputStream input, HashingAlgorithm algorithm) {
byte[] buffer = new byte[1024];
try {
MessageDigest algo = MessageDigest.getInstance(algorithm.getName());
int readBytes;
do {
readBytes = input.read(buffer);
algo.update(buffer, 0, readBytes);
} while (readBytes == buffer.length);
byte messageDigest[] = algo.digest();
StringBuffer hexString = new StringBuffer();
for (int i = 0; i < messageDigest.length; i++) {
String token = Integer.toHexString(0xFF & messageDigest[i]);
// Make sure each is exactly 2 chars long
if (token.length() < 2) {
hexString.append("0");
}
hexString.append(token);
}
return hexString.toString();
} catch (IOException e) {
throw new RuntimeException(e);
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException(e);
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
c097fa2d106081e3550fa5e540ceb9ebbf5081eb
|
cd9d753ecb5bd98e5e1381bc7bd2ffbd1eacc04d
|
/src/main/java/leecode/dfs/Solution39.java
|
87dd6b124063c8bc17353211d49839d1b5c886f3
|
[] |
no_license
|
never123450/aDailyTopic
|
ea1bcdec840274442efa1223bf6ed33c0a394d3d
|
9b17d34197a3ef2a9f95e8b717cbf7904c8dcfe4
|
refs/heads/master
| 2022-08-06T15:49:25.317366
| 2022-07-24T13:47:07
| 2022-07-24T13:47:07
| 178,113,303
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,457
|
java
|
package leecode.dfs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* @description: https://leetcode-cn.com/problems/combination-sum/
* 组合总和
* @author: xwy
* @create: 2021年08月12日16:42:26
**/
public class Solution39 {
public List<List<Integer>> combinationSum(int[] candidates, int target) {
if (candidates == null || candidates.length == 0) return null;
List<List<Integer>> lists = new ArrayList<>();
List<Integer> nums = new ArrayList<>();
// 配合 begin 用于去重,保证数字是有小到大的顺序选择的
Arrays.sort(candidates);
dfs(0, target, candidates, nums, lists);
return lists;
}
/**
* @param begin 从哪个位置的数开始选取(用于去重,保证数字是有小到大的顺序选择的)
* @param remain 还剩多少凑够 target
* @param candidates
* @param nums
* @param lists
*/
private void dfs(int begin, int remain, int[] candidates, List<Integer> nums, List<List<Integer>> lists) {
if (remain == 0) {
lists.add(new ArrayList<>(nums));
return;
}
for (int i = begin; i < candidates.length; i++) {
if (remain < candidates[i]) return;
nums.add(candidates[i]);
dfs(i, remain - candidates[i], candidates, nums, lists);
nums.remove(nums.size() - 1);
}
}
}
|
[
"845619585@qq.com"
] |
845619585@qq.com
|
f2224442ec162bd2508f4a13ca6a8527f7ea0e92
|
61385e624304cd1a38903d7ee60ca27196f0a984
|
/3D Game(GDX Lib)/core/src/com/project/managers/EnemyAnimations.java
|
15748ee5256b52c7085e4333027c923f7adf5a65
|
[] |
no_license
|
markoknezevic/Personal_projects
|
a8590e9a29432a7aaaf12f7ca3dbbc0029b46574
|
e3427ee5371902eb9ea3f6b2ee45a58925e48e7c
|
refs/heads/master
| 2020-04-16T08:56:08.122755
| 2019-07-23T21:56:19
| 2019-07-23T21:56:19
| 165,444,238
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,221
|
java
|
package com.project.managers;
public class EnemyAnimations
{
public static final String [] __ATTACK_ANIMATION__ = new String[]
{
"Armature|attack1_l",
"Armature|attack1_r",
"Armature|attack2",
"Armature|attack3"
};
public static final String [] __DEAD_ANIMATION__ = new String[]
{
"Armature|dead1",
"Armature|dead2",
"Armature|dead3"
};
public static final String [] __HURT_ANIMATION__ = new String[]
{
"Armature|hurt",
"Armature|hurt_b",
"Armature|hurt_head",
"Armature|hurt_l",
"Armature|hurt_r"
};
public static final String [] __WALK_ANIMATION__ = new String[]
{
"Armature|walk",
"Armature|walk2"
};
public static final String __IDLE_ANIMATION__ = "Armature|idle";
public static final String __RUN_ANIMATION__ = "Armature|run";
public static final String __ENTER_ANIMATION__ = "Armature|enter_side";
}
|
[
"you@example.com"
] |
you@example.com
|
d8a829b6a315a8cc2c533e455bc4093fc808b04e
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/serge-rider--dbeaver/1d991820142f8df66b9f9fde2d28c2bbb603a84a/after/MySQLDialect.java
|
911b2085bc1f922463c2e794fd1f2f0bf8785c5f
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003
| 2018-11-30T13:00:57
| 2018-11-30T13:00:57
| 87,353,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,899
|
java
|
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jkiss.dbeaver.ext.mysql.model;
import org.jkiss.code.NotNull;
import org.jkiss.code.Nullable;
import org.jkiss.dbeaver.model.exec.jdbc.JDBCDatabaseMetaData;
import org.jkiss.dbeaver.model.impl.jdbc.JDBCDataSource;
import org.jkiss.dbeaver.model.impl.jdbc.JDBCSQLDialect;
import org.jkiss.dbeaver.model.impl.sql.BasicSQLDialect;
import org.jkiss.utils.ArrayUtils;
import org.jkiss.utils.CommonUtils;
import java.util.Arrays;
import java.util.Collections;
/**
* MySQL dialect
*/
class MySQLDialect extends JDBCSQLDialect {
public static final String[] MYSQL_NON_TRANSACTIONAL_KEYWORDS = ArrayUtils.concatArrays(
BasicSQLDialect.NON_TRANSACTIONAL_KEYWORDS,
new String[]{
"USE", "SHOW",
"CREATE", "ALTER", "DROP",
"EXPLAIN", "DESCRIBE", "DESC" }
);
public MySQLDialect() {
super("MySQL");
}
public void initDriverSettings(JDBCDataSource dataSource, JDBCDatabaseMetaData metaData) {
super.initDriverSettings(dataSource, metaData);
//addSQLKeyword("STATISTICS");
Collections.addAll(tableQueryWords, "EXPLAIN", "DESCRIBE", "DESC");
addFunctions(Arrays.asList("SLEEP"));
}
@Nullable
@Override
public String getScriptDelimiterRedefiner() {
return "DELIMITER";
}
@NotNull
@Override
public String escapeString(String string) {
return string.replace("'", "''").replace("\\", "\\\\");
}
@NotNull
@Override
public String unEscapeString(String string) {
return string.replace("''", "'").replace("\\\\", "\\");
}
@NotNull
@Override
public MultiValueInsertMode getMultiValueInsertMode() {
return MultiValueInsertMode.GROUP_ROWS;
}
@Override
public boolean supportsAliasInSelect() {
return true;
}
@Override
public boolean supportsCommentQuery() {
return true;
}
@Override
public String[] getSingleLineComments() {
return new String[] { "-- ", "#" };
}
@Override
public String getTestSQL() {
return "SELECT 1";
}
@NotNull
protected String[] getNonTransactionKeywords() {
return MYSQL_NON_TRANSACTIONAL_KEYWORDS;
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
830873c5a4d31008f02474ad11f377bd4dc6d4e5
|
180e78725121de49801e34de358c32cf7148b0a2
|
/dataset/protocol1/repairnator/learning/5092/NopolStatus.java
|
455c00775c0c600ce0939c94123bc84a0eeab936
|
[] |
no_license
|
ASSERT-KTH/synthetic-checkstyle-error-dataset
|
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
|
40c057e1669584bfc6fecf789b5b2854660222f3
|
refs/heads/master
| 2023-03-18T12:50:55.410343
| 2019-01-25T09:54:39
| 2019-01-25T09:54:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 185
|
java
|
package fr.inria.spirals.repairnator.process.nopol;
/**
* Created by urli on 16/02/2017.
*/
public enum NopolStatus {
NOTLAUNCHED, RUNNING, NOPATCH, TIMEOUT, PATCH, EXCEPTION
}
|
[
"bloriot97@gmail.com"
] |
bloriot97@gmail.com
|
6d520d7c5d27670579f4b3b6e7f6f2d0d5b490e3
|
2fbfa1a2755ffa379c880f8f9d784a445ef79133
|
/src/main/java/com/saving/myapp/config/JacksonConfiguration.java
|
50716aed3cd4e6595556e76017228104378b60cb
|
[] |
no_license
|
yogenmah04/friendsSaving
|
c96cdec1019a70996b8e61a134d0d99f8172ab0e
|
c6d76d939ba5520c8eedbf7c9fd35300d4aa8a1b
|
refs/heads/master
| 2022-04-18T03:21:54.711921
| 2020-04-14T03:14:07
| 2020-04-14T03:14:07
| 255,498,452
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,642
|
java
|
package com.saving.myapp.config;
import com.fasterxml.jackson.datatype.hibernate5.Hibernate5Module;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.fasterxml.jackson.module.afterburner.AfterburnerModule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.zalando.problem.ProblemModule;
import org.zalando.problem.violations.ConstraintViolationProblemModule;
@Configuration
public class JacksonConfiguration {
/**
* Support for Java date and time API.
* @return the corresponding Jackson module.
*/
@Bean
public JavaTimeModule javaTimeModule() {
return new JavaTimeModule();
}
@Bean
public Jdk8Module jdk8TimeModule() {
return new Jdk8Module();
}
/*
* Support for Hibernate types in Jackson.
*/
@Bean
public Hibernate5Module hibernate5Module() {
return new Hibernate5Module();
}
/*
* Jackson Afterburner module to speed up serialization/deserialization.
*/
@Bean
public AfterburnerModule afterburnerModule() {
return new AfterburnerModule();
}
/*
* Module for serialization/deserialization of RFC7807 Problem.
*/
@Bean
ProblemModule problemModule() {
return new ProblemModule();
}
/*
* Module for serialization/deserialization of ConstraintViolationProblem.
*/
@Bean
ConstraintViolationProblemModule constraintViolationProblemModule() {
return new ConstraintViolationProblemModule();
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
aa61c8954f571d8823d81252dc9a56c5769258d2
|
752d91d350aecb70e9cbf7dd0218ca034af652fa
|
/Winjit Deployment/Backend Source Code/src/main/java/com/fullerton/olp/wsdao/SoapLoggingInterceptor.java
|
d5a8c5c26b24787aff70466739ac1a7e1b80ee82
|
[] |
no_license
|
mnjdby/TEST
|
5d0c25cf42eb4212f87cd4d23d1386633922f67e
|
cc2278c069e1711d4bd3f0a42eb360ea7417a6e7
|
refs/heads/master
| 2020-03-11T08:51:52.533185
| 2018-04-17T11:31:46
| 2018-04-17T11:31:46
| 129,894,682
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,653
|
java
|
package com.fullerton.olp.wsdao;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.ws.client.WebServiceClientException;
import org.springframework.ws.client.support.interceptor.ClientInterceptorAdapter;
import org.springframework.ws.context.MessageContext;
public class SoapLoggingInterceptor extends ClientInterceptorAdapter {
final static Logger log = LoggerFactory.getLogger(SoapLoggingInterceptor.class);
@Override
public boolean handleRequest(MessageContext messageContext) throws WebServiceClientException {
System.out.println("Request :");
try {
messageContext.getRequest().writeTo(System.out);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return true;
}
@Override
public boolean handleResponse(MessageContext messageContext) throws WebServiceClientException {
System.out.println("\nResponse : ");
try {
messageContext.getResponse().writeTo(System.out);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return true;
}
@Override
public boolean handleFault(MessageContext messageContext) throws WebServiceClientException {
try {
messageContext.getResponse().writeTo(System.out);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return true;
}
@Override
public void afterCompletion(MessageContext messageContext, Exception ex) throws WebServiceClientException {
log.info("=========================API CALL COMPLETED=========================");
}
}
|
[
"165016@fullertonindia.local"
] |
165016@fullertonindia.local
|
9e8abcdaec13ddfec0c03a0fbabc323187c53180
|
12a99ab3fe76e5c7c05609c0e76d1855bd051bbb
|
/src/main/java/com/alipay/api/domain/DisplayConfig.java
|
85fa4fd5e441553a652a4fa1c6abf694a892eff9
|
[
"Apache-2.0"
] |
permissive
|
WindLee05-17/alipay-sdk-java-all
|
ce2415cfab2416d2e0ae67c625b6a000231a8cfc
|
19ccb203268316b346ead9c36ff8aa5f1eac6c77
|
refs/heads/master
| 2022-11-30T18:42:42.077288
| 2020-08-17T05:57:47
| 2020-08-17T05:57:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 977
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 券的描述信息
*
* @author auto create
* @since 1.0, 2017-06-05 11:25:25
*/
public class DisplayConfig extends AlipayObject {
private static final long serialVersionUID = 3448669554245311969L;
/**
* 券的宣传语
含圈人的直领活动,且投放渠道选择了支付成功页或店铺的情况下必填
*/
@ApiField("slogan")
private String slogan;
/**
* 券的宣传图片文件ID
含圈人的直领活动,且投放渠道选择了店铺的情况下必填
*/
@ApiField("slogan_img")
private String sloganImg;
public String getSlogan() {
return this.slogan;
}
public void setSlogan(String slogan) {
this.slogan = slogan;
}
public String getSloganImg() {
return this.sloganImg;
}
public void setSloganImg(String sloganImg) {
this.sloganImg = sloganImg;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
db66227045d438c2e857c876a265730cd776cefa
|
4e1171126b279c65da624092fd49b0713d26f596
|
/src/test/java/com/ashwin/java/SwaggerDemoApplicationTests.java
|
85a1438fccc554b5016765dcda2a92db048a1860
|
[] |
no_license
|
ashwindmk/springboot_swagger_demo
|
8ba794502acd62c1d2c8130a5ecd0776f96dc446
|
0edf43ea676c65d3455bf7d2b22e70ce532ed265
|
refs/heads/master
| 2022-12-24T08:51:18.198541
| 2020-09-26T09:19:02
| 2020-09-26T09:19:02
| 298,774,569
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 212
|
java
|
package com.ashwin.java;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class SwaggerDemoApplicationTests {
@Test
void contextLoads() {
}
}
|
[
"ashwin.dinesh01@gmail.com"
] |
ashwin.dinesh01@gmail.com
|
c9bb8c38eaf286580957b83ebadc5ca48a621a61
|
96838da3527b4d8bf3b4c6f3916f8a8995a91b53
|
/src/main/java/com/selectica/Base/eclm/definitions/CNDABO/CNDASignature/scripts/SetIntSignerEmail.java
|
2ea11ddb64230b7affd7f46ed21584f053fdf12d
|
[] |
no_license
|
LeoSigal/Phil
|
b5d2c50a07774a93f58a60ccdba6845f4577edc9
|
2e71214fcde15202c52efdcc7ebdfcc418d1730d
|
refs/heads/master
| 2021-01-10T18:38:52.007604
| 2019-04-19T03:59:31
| 2019-04-19T03:59:31
| 36,754,970
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,876
|
java
|
package com.selectica.Base.eclm.definitions.CNDABO.CNDASignature.scripts;
import com.selectica.Base.stubs.ContractInfoComponent;
import com.selectica.config.Config;
import com.selectica.config.ConfigKeys;
import com.selectica.rcfscripts.AbstractDataWriteScript;
import com.selectica.rcfutils.RCFUserWrapper;
/**
* Created by vshilkin on 27.04.2015.
*/
public class SetIntSignerEmail extends AbstractDataWriteScript<String> {
/*
<![CDATA[
result = "";
var ndaIsStandardContract = thisBundle.getParameterValueObjectFromAnyComponent("ReqCNDADetails", "isStandardContract");
var useEsign = Packages.com.selectica.config.Config.getPropertyAsBoolean(Packages.com.selectica.config.ConfigKeys.ESIGNATURE_ENABLED);
if (useEsign != null && ndaIsStandardContract != null &&
(useEsign.toString().equalsIgnoreCase("true") || useEsign.toString().equalsIgnoreCase("yes")) &&
"yes".equalsIgnoreCase(ndaIsStandardContract.toString())) {
result = root.getValue("user").getUserWrapper().getEmail();
}
]]>
*/
@Override
public String process() throws Exception {
String useEsignProp = Config.getProperty(ConfigKeys.ESIGNATURE_ENABLED); //@todo move to RCFHelper !
boolean useEsign = "true".equalsIgnoreCase(useEsignProp);
ContractInfoComponent info = getHelper().getInfoComponentStub();
boolean isStandardContract = "yes".equalsIgnoreCase(info.getIsStandardContract());
if (useEsign && isStandardContract) {
String cpName = info.getCpName();
if (cpName != null && !cpName.isEmpty()) {
RCFUserWrapper userWrapper = getHelper().getRCFUserWrapper();
return userWrapper.getEmail();
}
}
return null;
}
}
|
[
"user@rcfproj.aws.selectica.net"
] |
user@rcfproj.aws.selectica.net
|
ed5e2993fe9f89d16e0dd5ff487fe4da28432934
|
78b6e133c361d4277b4073c94fe205f92b83ca98
|
/src/main/java/com/xiaoshu/dao/MessageTempleMapper.java
|
00ad1013ebc88412bd1b0a2e96ec48bb853df229
|
[] |
no_license
|
barrysandy/rabbitmq
|
375763a78e5c35d7a75780ef4893f8279c089bbb
|
d4482d74c26c32aeaaedf7c83f4b8cafcb94b951
|
refs/heads/master
| 2020-03-16T04:42:39.145664
| 2018-09-05T22:40:03
| 2018-09-05T22:40:03
| 132,517,379
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,513
|
java
|
package com.xiaoshu.dao;
import com.xiaoshu.entity.MessageTemple;
import org.apache.ibatis.annotations.*;
import java.util.List;
/** 标准版 */
public interface MessageTempleMapper {
/** save one */
@Insert("INSERT INTO message_temple (ID,COMMODITY_ID,TEMPLE_NAME, TEMPLE_ID,TEMPLE_TYPE, CREATE_TIME, UPDATE_TIME, DESC_M, STATUS ,SIGN) " +
"VALUES(#{id},#{commodityId},#{templeName},#{templeId},#{templeType},#{createTime},#{updateTime},#{descM},#{status},#{sign} )")
Integer save(MessageTemple bean);
/** update templeId */
@Update("UPDATE message_temple SET TEMPLE_ID=#{templeId},UPDATE_TIME=#{updateTime} where ID = #{id}")
Integer updateCodeStateAndCreateTimeById(@Param("templeId") Integer templeId ,@Param("updateTime") String updateTime, @Param("id") String id);
/** update all */
@Update("UPDATE message_temple SET COMMODITY_ID=#{commodityId},TEMPLE_NAME=#{templeName},TEMPLE_ID=#{templeId},TEMPLE_TYPE=#{templeType},CREATE_TIME=#{createTime},UPDATE_TIME=#{updateTime},DESC_M=#{descM}," +
"STATUS=#{status},SIGN=#{sign} WHERE ID=#{id} ")
Integer updateAll(MessageTemple bean);
/** delete ById */
@Delete("DELETE FROM message_temple WHERE ID=#{id}")
Integer deleteById(@Param("id") String id);
/** 按照 商品 id 查询 短信模板集合 */
@Select("SELECT * FROM message_temple WHERE COMMODITY_ID = #{commodityId}")
List<MessageTemple> listByCommodityId(@Param("commodityId") Integer commodityId);
/** select ByID */
@Select("SELECT * FROM message_temple WHERE ID = #{id}")
MessageTemple getById(@Param("id") String id);
/**
* 查询列表
* @param index 分页开始
* @param pageSize 分页每页最大数
* @param key 关键字
* @return 返回订单集合
* @throws Exception 抛出异常
*/
List<MessageTemple> listByKey(@Param("index") int index, @Param("pageSize") int pageSize, @Param("key") String key,@Param("status") Integer status, @Param("commodityId") Integer commodityId);
/**
* 统计
* @param key 关键字
* @return 返回数量
* @throws Exception 抛出异常
*/
Integer countByKey(@Param("key") String key,@Param("status") Integer status, @Param("commodityId") Integer commodityId);
/** 按照模板类型和商品ID统计模板数 用于查询某个类型的模板是否存在 */
@Select("SELECT COUNT(ID) FROM message_temple WHERE TEMPLE_TYPE = #{templeType} AND COMMODITY_ID = #{commodityId}")
Integer countByTTypeAndCId(@Param("templeType") String templeType, @Param("commodityId") Integer commodityId);
}
|
[
"865815412@qq.com"
] |
865815412@qq.com
|
0bc4d11544ec98e3c2c2e3112e9fda8bf57c1e56
|
09bf3a76211471818bf3fc7f43ac9fada06ab5e6
|
/hackathon/catalog/src/main/java/com/hackathon/catalog/utils/exception/InvalidPaginationException.java
|
1a2556012cd47489fe7e82eaffc4597a93255784
|
[] |
no_license
|
AmanMoglix/moglixGroup
|
e76febb085af390fb9a76f416b3c602f7eeee186
|
0993801dcbd5a2c6d4476a7cf3b1c7d5af0aa6c2
|
refs/heads/master
| 2023-08-31T00:55:47.026305
| 2021-10-17T06:35:13
| 2021-10-17T06:35:13
| 408,688,399
| 1
| 6
| null | 2021-09-30T13:34:18
| 2021-09-21T04:35:48
|
Java
|
UTF-8
|
Java
| false
| false
| 495
|
java
|
package com.hackathon.catalog.utils.exception;
public class InvalidPaginationException extends RuntimeException {
private static final long serialVersionUID = 5861310537366163L;
public InvalidPaginationException(final String message, final Throwable cause) {
super(message, cause);
}
public InvalidPaginationException(final String message) {
super(message);
}
public InvalidPaginationException(final Throwable cause) {
super(cause);
}
}
|
[
"aman.katiyar@moglix.com"
] |
aman.katiyar@moglix.com
|
e73545d31c8abd2d6300cda3b286c6bce0051d04
|
2eb5604c0ba311a9a6910576474c747e9ad86313
|
/chado-pg-orm/src/org/irri/iric/chado/so/MonocistronicHome.java
|
85b25802800a62ec07328553816fb976c0a31571
|
[] |
no_license
|
iric-irri/portal
|
5385c6a4e4fd3e569f5334e541d4b852edc46bc1
|
b2d3cd64be8d9d80b52d21566f329eeae46d9749
|
refs/heads/master
| 2021-01-16T00:28:30.272064
| 2014-05-26T05:46:30
| 2014-05-26T05:46:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,580
|
java
|
package org.irri.iric.chado.so;
// Generated 05 26, 14 1:32:32 PM by Hibernate Tools 3.4.0.CR1
import java.util.List;
import javax.naming.InitialContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Example;
/**
* Home object for domain model class Monocistronic.
* @see org.irri.iric.chado.so.Monocistronic
* @author Hibernate Tools
*/
public class MonocistronicHome {
private static final Log log = LogFactory.getLog(MonocistronicHome.class);
private final SessionFactory sessionFactory = getSessionFactory();
protected SessionFactory getSessionFactory() {
try {
return (SessionFactory) new InitialContext()
.lookup("SessionFactory");
} catch (Exception e) {
log.error("Could not locate SessionFactory in JNDI", e);
throw new IllegalStateException(
"Could not locate SessionFactory in JNDI");
}
}
public void persist(Monocistronic transientInstance) {
log.debug("persisting Monocistronic instance");
try {
sessionFactory.getCurrentSession().persist(transientInstance);
log.debug("persist successful");
} catch (RuntimeException re) {
log.error("persist failed", re);
throw re;
}
}
public void attachDirty(Monocistronic instance) {
log.debug("attaching dirty Monocistronic instance");
try {
sessionFactory.getCurrentSession().saveOrUpdate(instance);
log.debug("attach successful");
} catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(Monocistronic instance) {
log.debug("attaching clean Monocistronic instance");
try {
sessionFactory.getCurrentSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
} catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(Monocistronic persistentInstance) {
log.debug("deleting Monocistronic instance");
try {
sessionFactory.getCurrentSession().delete(persistentInstance);
log.debug("delete successful");
} catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public Monocistronic merge(Monocistronic detachedInstance) {
log.debug("merging Monocistronic instance");
try {
Monocistronic result = (Monocistronic) sessionFactory
.getCurrentSession().merge(detachedInstance);
log.debug("merge successful");
return result;
} catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public Monocistronic findById(org.irri.iric.chado.so.MonocistronicId id) {
log.debug("getting Monocistronic instance with id: " + id);
try {
Monocistronic instance = (Monocistronic) sessionFactory
.getCurrentSession().get(
"org.irri.iric.chado.so.Monocistronic", id);
if (instance == null) {
log.debug("get successful, no instance found");
} else {
log.debug("get successful, instance found");
}
return instance;
} catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
}
public List findByExample(Monocistronic instance) {
log.debug("finding Monocistronic instance by example");
try {
List results = sessionFactory.getCurrentSession()
.createCriteria("org.irri.iric.chado.so.Monocistronic")
.add(Example.create(instance)).list();
log.debug("find by example successful, result size: "
+ results.size());
return results;
} catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
}
}
|
[
"locem@berting-debian.ourwebserver.no-ip.biz"
] |
locem@berting-debian.ourwebserver.no-ip.biz
|
4a8028f179c276c0fec9d00b2970d8c3ee688d0a
|
3a53421aabee5ae306f69b9f6dfcd23a9d501d63
|
/communication/assignment3/A3-Android-App/src/vandy/mooc/model/services/WeatherServiceBase.java
|
59b45b3f37b2556e5e695d314dad0cb41111d422
|
[] |
no_license
|
MarcoFarrier/POSA-16
|
a9e8b525d65f99271c6b39b216bcf172fd8d9987
|
0ebc4174b97383eb3971bd7b4910ab266fe232b3
|
refs/heads/master
| 2020-12-14T09:58:10.950202
| 2016-04-28T01:11:51
| 2016-04-28T01:11:51
| 53,460,706
| 1
| 0
| null | 2016-03-09T02:13:01
| 2016-03-09T02:13:01
| null |
UTF-8
|
Java
| false
| false
| 5,271
|
java
|
package vandy.mooc.model.services;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URI;
import java.net.URL;
import java.util.List;
import vandy.mooc.common.ExecutorServiceTimeoutCache;
import vandy.mooc.common.GenericSingleton;
import vandy.mooc.common.LifecycleLoggingService;
import vandy.mooc.model.aidl.WeatherData;
import vandy.mooc.model.aidl.WeatherDataJsonParser;
import android.util.Log;
/**
* This is the super class for both WeatherServiceSync and
* WeatherServiceAsync. It factors out fields and methods that are
* shared by both Service implementations.
*/
public class WeatherServiceBase
extends LifecycleLoggingService {
/**
* Appid needed to access the service. TODO -- fill in with your Appid.
*/
private final String mAppid = "";
/**
* URL to the Weather Service web service.
*/
private String mWeatherServiceURL =
"http://api.openweathermap.org/data/2.5/weather?&APPID="
+ mAppid + "&q=";
/**
* Default timeout is 10 seconds, after which the Cache data
* expires. In a production app this value should be much higher
* (e.g., 10 minutes) - we keep it small here to help with
* testing.
*/
private int DEFAULT_CACHE_TIMEOUT = 10;
/**
* Define a class that will cache the WeatherData since it doesn't
* change rapidly. This class is passed to the
* GenericSingleton.instance() method to retrieve the one and only
* instance of the WeatherCache.
*/
public static class WeatherCache
extends ExecutorServiceTimeoutCache<String, List<WeatherData>> {}
/**
* Hook method called when the Service is created.
*/
@Override
public void onCreate() {
super.onCreate();
// TODO -- you fill in here.
}
/**
* Hook method called when the last client unbinds from the
* Service.
*/
@Override
public void onDestroy() {
super.onDestroy();
// TODO -- you fill in here.
}
/**
* Contitionally queries the Weather Service web service to obtain
* a List of WeatherData corresponding to the @a location if it's
* been more than 10 seconds since the last query to the Weather
* Service. Otherwise, simply return the cached results.
*/
protected List<WeatherData> getWeatherResults(String location) {
Log.d(TAG,
"Looking up results in the cache for "
+ location);
// TODO -- you fill in here.
}
/**
* Actually query the Weather Service web service to get the
* current WeatherData. Usually only returns a single element in
* the List, but can return multiple elements if they are sent
* back from the Weather Service.
*/
private List<WeatherData> getResultsFromWeatherService(String location) {
// Create a List that will return the WeatherData obtained
// from the Weather Service web service.
List<WeatherData> returnList = null;
try {
// Create a URL that points to desired location the
// Weather Service.
URL url =
new URL(mWeatherServiceURL + Uri.encode(location));
final URI uri = new URI(url.getProtocol(),
url.getUserInfo(),
url.getHost(),
url.getPort(),
url.getPath(),
url.getQuery(),
url.getRef());
url = uri.toURL();
// Opens a connection to the Weather Service.
HttpURLConnection urlConnection =
(HttpURLConnection) url.openConnection();
// Sends the GET request and returns a stream containing
// the Json results.
try (InputStream in =
new BufferedInputStream(urlConnection.getInputStream())) {
// Create the parser.
final WeatherDataJsonParser parser =
new WeatherDataJsonParser();
// Parse the Json results and create List of
// WeatherData objects.
returnList = parser.parseJsonStream(in);
} finally {
urlConnection.disconnect();
}
} catch (Exception e) {
e.printStackTrace();
return null;
}
// See if we parsed any valid data.
if (returnList == null
|| returnList.size() == 0) {
Log.d(TAG,
"unable to get information about \""
+ location
+ "\"");
return null;
} else if (returnList.get(0).getMessage() != null) {
// The Weather Service returned an error message.
Log.d(TAG,
returnList.get(0).getMessage()
+ " \""
+ location
+ "\"");
return null;
} else
// Return the List of WeatherData.
return returnList;
}
}
|
[
"d.schmidt@vanderbilt.edu"
] |
d.schmidt@vanderbilt.edu
|
39ad403d7b2ff0d7d1598d869d7b96abeee7a537
|
db37c937b7aa01491ab6d0bbca369e7c24dc9638
|
/geotracker/server/src/main/java/ch/rasc/geotracker/GeoController.java
|
553e880af360b6034485f6d7068affeda1ef03fd
|
[
"MIT"
] |
permissive
|
ralscha/blog
|
a7fc489ec7f09d2f566873262690364c0ea05b19
|
42b117db20a5a654d7d76e11912304dcdca8fe3d
|
refs/heads/master
| 2023-08-03T10:58:09.694000
| 2023-07-31T18:42:35
| 2023-07-31T18:42:35
| 78,191,118
| 242
| 308
|
MIT
| 2022-11-19T17:09:51
| 2017-01-06T08:59:53
|
TypeScript
|
UTF-8
|
Java
| false
| false
| 2,731
|
java
|
package ch.rasc.geotracker;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import ch.rasc.sse.eventbus.SseEvent;
import ch.rasc.sse.eventbus.SseEventBus;
import jakarta.servlet.http.HttpServletResponse;
@RestController
@CrossOrigin
public class GeoController {
private final ApplicationEventPublisher publisher;
private final List<Position> positions;
private final ObjectMapper objectMapper;
private final SseEventBus eventBus;
public GeoController(ApplicationEventPublisher publisher, ObjectMapper objectMapper,
SseEventBus eventBus) {
this.publisher = publisher;
this.positions = new ArrayList<>();
this.objectMapper = objectMapper;
this.eventBus = eventBus;
}
@GetMapping("/positions")
public List<Position> fetchPositions() {
return this.positions;
}
@GetMapping("/register/{id}")
public SseEmitter eventbus(@PathVariable("id") String id,
HttpServletResponse response) {
response.setHeader("Cache-Control", "no-store");
return this.eventBus.createSseEmitter(id, "pos", "clear");
}
@DeleteMapping(path = "/clear")
@ResponseStatus(value = HttpStatus.NO_CONTENT)
public void clear() {
this.positions.clear();
this.publisher.publishEvent(SseEvent.ofEvent("clear"));
}
@PostMapping(path = "/pos")
@ResponseStatus(value = HttpStatus.NO_CONTENT)
public void handleLocation(@RequestBody Position position)
throws JsonProcessingException {
SseEvent event = SseEvent.of("pos",
this.objectMapper.writeValueAsString(Collections.singleton(position)));
this.publisher.publishEvent(event);
this.positions.add(position);
if (this.positions.size() > 100) {
this.positions.remove(0);
}
}
@PostMapping(path = "/clienterror")
@ResponseStatus(value = HttpStatus.NO_CONTENT)
public void handleError(@RequestBody String errorMessage) {
Application.logger.error(errorMessage);
}
}
|
[
"ralphschaer@gmail.com"
] |
ralphschaer@gmail.com
|
ee6b3256261580d3e9c69b1f58f60b1febc603d9
|
eec9aa71fca1d12cfeda08affdb8c5ef032f5c39
|
/app/src/main/java/com/pinkump3/musiconline/adapter/FragmentAdapter.java
|
4978dc6514eaa1229f1b0e65cd744a0806eb4878
|
[] |
no_license
|
fandofastest/yopylagi
|
5ba4ba581613fc52497093ac53f2dec99e787255
|
257c57740b3cd54240f3d2be438e588ba1ab5205
|
refs/heads/master
| 2020-11-30T04:58:20.155481
| 2019-12-28T07:34:57
| 2019-12-28T07:34:57
| 230,306,195
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 988
|
java
|
package com.pinkump3.musiconline.adapter;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;
import java.util.ArrayList;
import java.util.List;
public class FragmentAdapter extends FragmentPagerAdapter {
private final List<Fragment> mFragmentList = new ArrayList<>();
private final List<String> mFragmentTitleList = new ArrayList<>();
public FragmentAdapter(FragmentManager fragment) {
super(fragment);
}
@Override
public Fragment getItem(int position) {
return mFragmentList.get(position);
}
@Override
public int getCount() {
return mFragmentList.size();
}
public void addFragment(Fragment fragment, String title) {
mFragmentList.add(fragment);
mFragmentTitleList.add(title);
}
@Override
public CharSequence getPageTitle(int position) {
return mFragmentTitleList.get(position);
}
}
|
[
"fandofast@gmail.com"
] |
fandofast@gmail.com
|
9647eb752f12577e12b2b7a773e34b52dff24f99
|
65a09e9f4450c6133e6de337dbba373a5510160f
|
/leanCrm/src/main/java/co/simasoft/view/ActivitiesTypesBean.java
|
d2d34413499c5c9c478b09e864b5c25bdb521406
|
[] |
no_license
|
nelsonjava/simasoft
|
c0136cdf0c208a5e8d01ab72080330e4a15b1261
|
be83eb8ef67758be82bbd811b672572eff1910ee
|
refs/heads/master
| 2021-01-23T15:21:01.981277
| 2017-04-27T12:46:16
| 2017-04-27T12:46:16
| 27,980,384
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,876
|
java
|
package co.simasoft.view;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import javax.ejb.SessionContext;
import javax.ejb.Stateful;
import javax.enterprise.context.Conversation;
import javax.enterprise.context.ConversationScoped;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.inject.Inject;
import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.PersistenceContextType;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import co.simasoft.models.ActivitiesTypes;
import co.simasoft.models.Activities;
import java.util.Iterator;
/**
* Backing bean for ActivitiesTypes entities.
* <p/>
* This class provides CRUD functionality for all ActivitiesTypes entities. It
* focuses purely on Java EE 6 standards (e.g. <tt>@ConversationScoped</tt>
* for state management, <tt>PersistenceContext</tt> for persistence,
* <tt>CriteriaBuilder</tt> for searches) rather than introducing a CRUD
* framework or custom base class.
*/
@Named
@Stateful
@ConversationScoped
public class ActivitiesTypesBean implements Serializable {
private static final long serialVersionUID = 1L;
/*
* Support creating and retrieving ActivitiesTypes entities
*/
private Long id;
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
private ActivitiesTypes activitiesTypes;
public ActivitiesTypes getActivitiesTypes() {
return this.activitiesTypes;
}
public void setActivitiesTypes(ActivitiesTypes activitiesTypes) {
this.activitiesTypes = activitiesTypes;
}
@Inject
private Conversation conversation;
@PersistenceContext(unitName = "leanCrmPU-JTA", type = PersistenceContextType.EXTENDED)
private EntityManager entityManager;
public String create() {
this.conversation.begin();
this.conversation.setTimeout(1800000L);
return "create?faces-redirect=true";
}
public void retrieve() {
if (FacesContext.getCurrentInstance().isPostback()) {
return;
}
if (this.conversation.isTransient()) {
this.conversation.begin();
this.conversation.setTimeout(1800000L);
}
if (this.id == null) {
this.activitiesTypes = this.example;
} else {
this.activitiesTypes = findById(getId());
}
}
public ActivitiesTypes findById(Long id) {
return this.entityManager.find(ActivitiesTypes.class, id);
}
/*
* Support updating and deleting ActivitiesTypes entities
*/
public String update() {
this.conversation.end();
try {
if (this.id == null) {
this.entityManager.persist(this.activitiesTypes);
return "search?faces-redirect=true";
} else {
this.entityManager.merge(this.activitiesTypes);
return "view?faces-redirect=true&id="
+ this.activitiesTypes.getId();
}
} catch (Exception e) {
FacesContext.getCurrentInstance().addMessage(null,
new FacesMessage(e.getMessage()));
return null;
}
}
public String delete() {
this.conversation.end();
try {
ActivitiesTypes deletableEntity = findById(getId());
Iterator<Activities> iterActivities = deletableEntity
.getActivities().iterator();
for (; iterActivities.hasNext();) {
Activities nextInActivities = iterActivities.next();
nextInActivities.setActivitiesTypes(null);
iterActivities.remove();
this.entityManager.merge(nextInActivities);
}
this.entityManager.remove(deletableEntity);
this.entityManager.flush();
return "search?faces-redirect=true";
} catch (Exception e) {
FacesContext.getCurrentInstance().addMessage(null,
new FacesMessage(e.getMessage()));
return null;
}
}
/*
* Support searching ActivitiesTypes entities with pagination
*/
private int page;
private long count;
private List<ActivitiesTypes> pageItems;
private ActivitiesTypes example = new ActivitiesTypes();
public int getPage() {
return this.page;
}
public void setPage(int page) {
this.page = page;
}
public int getPageSize() {
return 10;
}
public ActivitiesTypes getExample() {
return this.example;
}
public void setExample(ActivitiesTypes example) {
this.example = example;
}
public String search() {
this.page = 0;
return null;
}
public void paginate() {
CriteriaBuilder builder = this.entityManager.getCriteriaBuilder();
// Populate this.count
CriteriaQuery<Long> countCriteria = builder.createQuery(Long.class);
Root<ActivitiesTypes> root = countCriteria.from(ActivitiesTypes.class);
countCriteria = countCriteria.select(builder.count(root)).where(
getSearchPredicates(root));
this.count = this.entityManager.createQuery(countCriteria)
.getSingleResult();
// Populate this.pageItems
CriteriaQuery<ActivitiesTypes> criteria = builder
.createQuery(ActivitiesTypes.class);
root = criteria.from(ActivitiesTypes.class);
TypedQuery<ActivitiesTypes> query = this.entityManager
.createQuery(criteria.select(root).where(
getSearchPredicates(root)));
query.setFirstResult(this.page * getPageSize()).setMaxResults(
getPageSize());
this.pageItems = query.getResultList();
}
private Predicate[] getSearchPredicates(Root<ActivitiesTypes> root) {
CriteriaBuilder builder = this.entityManager.getCriteriaBuilder();
List<Predicate> predicatesList = new ArrayList<Predicate>();
String alias = this.example.getAlias();
if (alias != null && !"".equals(alias)) {
predicatesList.add(builder.like(
builder.lower(root.<String> get("alias")),
'%' + alias.toLowerCase() + '%'));
}
String observations = this.example.getObservations();
if (observations != null && !"".equals(observations)) {
predicatesList.add(builder.like(
builder.lower(root.<String> get("observations")),
'%' + observations.toLowerCase() + '%'));
}
String name = this.example.getName();
if (name != null && !"".equals(name)) {
predicatesList.add(builder.like(
builder.lower(root.<String> get("name")),
'%' + name.toLowerCase() + '%'));
}
return predicatesList.toArray(new Predicate[predicatesList.size()]);
}
public List<ActivitiesTypes> getPageItems() {
return this.pageItems;
}
public long getCount() {
return this.count;
}
/*
* Support listing and POSTing back ActivitiesTypes entities (e.g. from
* inside an HtmlSelectOneMenu)
*/
public List<ActivitiesTypes> getAll() {
CriteriaQuery<ActivitiesTypes> criteria = this.entityManager
.getCriteriaBuilder().createQuery(ActivitiesTypes.class);
return this.entityManager.createQuery(
criteria.select(criteria.from(ActivitiesTypes.class)))
.getResultList();
}
@Resource
private SessionContext sessionContext;
public Converter getConverter() {
final ActivitiesTypesBean ejbProxy = this.sessionContext
.getBusinessObject(ActivitiesTypesBean.class);
return new Converter() {
@Override
public Object getAsObject(FacesContext context,
UIComponent component, String value) {
return ejbProxy.findById(Long.valueOf(value));
}
@Override
public String getAsString(FacesContext context,
UIComponent component, Object value) {
if (value == null) {
return "";
}
return String.valueOf(((ActivitiesTypes) value).getId());
}
};
}
/*
* Support adding children to bidirectional, one-to-many tables
*/
private ActivitiesTypes add = new ActivitiesTypes();
public ActivitiesTypes getAdd() {
return this.add;
}
public ActivitiesTypes getAdded() {
ActivitiesTypes added = this.add;
this.add = new ActivitiesTypes();
return added;
}
}
|
[
"nelsonjava@gmail.com"
] |
nelsonjava@gmail.com
|
29463bc249042abea43959bf2751238070330b6c
|
62517f9cc72c594784c583b21ab93e060eed4e60
|
/app/src/main/java/cn/com/tcsl/mvptest/ui/down/DownPresenter.java
|
594da623cd989a7bac7565f727535d8839d82c89
|
[] |
no_license
|
kailaisi/MVPTest
|
5833f050582d34c0a783c1880965bc5ef52e929f
|
995653da87deb7bc5c9ab2a9860950f473531054
|
refs/heads/master
| 2023-05-02T17:48:55.824146
| 2016-08-01T10:47:40
| 2016-08-01T10:47:40
| 63,403,411
| 0
| 0
| null | 2023-04-15T12:35:09
| 2016-07-15T08:02:19
|
Java
|
UTF-8
|
Java
| false
| false
| 1,591
|
java
|
package cn.com.tcsl.mvptest.ui.down;
import java.io.File;
import cn.com.tcsl.mvptest.http.RetrofitHttpUtils;
import cn.com.tcsl.mvptest.http.interfaces.DownProgressListener;
import okhttp3.ResponseBody;
import rx.Subscriber;
/**
* Created by wjx on 2016/7/23.
*/
public class DownPresenter implements DownContract.Presenter {
DownContract.View view;
DownContract.Model model;
public DownPresenter(DownContract.View view) {
this.view = view;
model=new DownModel();
}
@Override
public void downLoad(String url) {
view.showProgress();
DownProgressListener mListeren=new DownProgressListener() {
@Override
public void update(long current, long total, boolean isCompleted) {
view.updateProgress((int)(100l*current/total));
}
};
Subscriber<ResponseBody> subscriber=new Subscriber<ResponseBody>() {
@Override
public void onCompleted() {
}
@Override
public void onError(Throwable e) {
}
@Override
public void onNext(ResponseBody responseBody) {
view.dismisProgress();
File file=model.writeToSD(responseBody.byteStream());
view.intallAPK(file);
}
};
RetrofitHttpUtils.getDownInstance(mListeren).downLoad(subscriber,"http://hengdawb-app.oss-cn-hangzhou.aliyuncs.com/app-debug.apk");
}
@Override
public void start() {
}
@Override
public void onDestroy() {
}
}
|
[
"541018378@qq.com"
] |
541018378@qq.com
|
4a9807b71deea2324cb57801fd6c29ffa21f1e85
|
5e12a12323d3401578ea2a7e4e101503d700b397
|
/branches/fitnesse/src/main/java/fitnesse/slimTables/HtmlTableScanner.java
|
a8f329deba71f5a2989ef77daefd4ab1a0aafe55
|
[] |
no_license
|
xiangyong/jtester
|
369d4b689e4e66f25c7217242b835d1965da3ef8
|
5f4b3948cd8d43d3e8fea9bc34e5bd7667f4def9
|
refs/heads/master
| 2021-01-18T21:02:05.493497
| 2013-10-08T01:48:18
| 2013-10-08T01:48:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,783
|
java
|
// Copyright (C) 2003-2009 by Object Mentor, Inc. All rights reserved.
// Released under the terms of the CPL Common Public License version 1.0.
package fitnesse.slimTables;
import org.htmlparser.Node;
import org.htmlparser.Parser;
import org.htmlparser.lexer.Lexer;
import org.htmlparser.lexer.Page;
import org.htmlparser.tags.TableTag;
import org.htmlparser.util.NodeList;
import org.htmlparser.util.ParserException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
public class HtmlTableScanner implements TableScanner {
private List<Table> tables = new ArrayList<Table>();
private NodeList htmlTree;
public HtmlTableScanner(String page) throws ParserException {
if (page == null || page.equals(""))
page = "<i>This page intentionally left blank.</i>";
Parser parser = new Parser(new Lexer(new Page(page)));
htmlTree = parser.parse(null);
scanForTables(htmlTree);
}
private void scanForTables(NodeList nodes) {
for (int i = 0; i < nodes.size(); i++) {
Node node = nodes.elementAt(i);
if (node instanceof TableTag) {
TableTag tableTag = (TableTag) node;
guaranteeThatAllTablesAreUnique(tableTag);
tables.add(new HtmlTable(tableTag));
} else {
NodeList children = node.getChildren();
if (children != null)
scanForTables(children);
}
}
}
private void guaranteeThatAllTablesAreUnique(TableTag tagTable) {
tagTable.setAttribute("_TABLENUMBER", "" + Math.abs((new Random()).nextLong()));
}
public int getTableCount() {
return tables.size();
}
public Table getTable(int i) {
return tables.get(i);
}
public Iterator<Table> iterator() {
return tables.iterator();
}
public String toWikiText() {
StringBuffer b = new StringBuffer();
for (Table t : tables) {
b.append("\n");
for (int row = 0; row < t.getRowCount(); row++) {
b.append("|");
if (t.getColumnCountInRow(row) == 0)
b.append("|");
for (int col = 0; col < t.getColumnCountInRow(row); col++) {
b.append(t.getCellContents(col, row));
b.append("|");
}
b.append("\n");
}
}
return b.toString();
}
public String toHtml(Table startTable, Table endBeforeTable) {
String allHtml = htmlTree.toHtml();
int startIndex = 0;
int endIndex = allHtml.length();
if (startTable != null) {
String startText = startTable.toHtml();
int nodeIndex = allHtml.indexOf(startText);
if (nodeIndex > 0) {
startIndex = nodeIndex;
}
}
if (endBeforeTable != null) {
String stopText = endBeforeTable.toHtml();
int nodeIndex = allHtml.indexOf(stopText);
if (nodeIndex > 0) {
endIndex = nodeIndex;
}
}
return htmlTree.toHtml().substring(startIndex, endIndex);
}
public String toHtml() {
return htmlTree.toHtml();
}
}
|
[
"darui.wu@9ac485da-fb45-aad8-5227-9c360d3c5fad"
] |
darui.wu@9ac485da-fb45-aad8-5227-9c360d3c5fad
|
eee8f8a626d50ab986a7ada3a11188fa15480e39
|
b82dd1df2ae52e66766cea189efab7ecd5585ac3
|
/achilles-core/src/main/java/info/archinnov/achilles/internals/codegen/meta/EntityMetaColumnsForFunctionsCodeGen.java
|
f1cf5f6738f4495fc3868d824144b7224565fa04
|
[
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
romolodevito/Achilles
|
34ce40fbcdcc7ebfedf74935f4569c18cb08e136
|
8b04609f42f2b7c83c48a69b55773f3b4bc3411a
|
refs/heads/master
| 2020-04-10T13:18:43.069016
| 2018-12-09T14:36:57
| 2018-12-09T14:36:57
| 155,694,647
| 0
| 0
|
Apache-2.0
| 2018-11-01T09:53:11
| 2018-11-01T09:53:11
| null |
UTF-8
|
Java
| false
| false
| 3,592
|
java
|
/*
* Copyright (C) 2012-2018 DuyHai DOAN
*
* 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 info.archinnov.achilles.internals.codegen.meta;
import static info.archinnov.achilles.internals.parser.TypeUtils.*;
import java.util.List;
import javax.lang.model.element.Modifier;
import com.squareup.javapoet.CodeBlock;
import com.squareup.javapoet.FieldSpec;
import com.squareup.javapoet.TypeName;
import com.squareup.javapoet.TypeSpec;
import info.archinnov.achilles.internals.metamodel.columns.ColumnType;
import info.archinnov.achilles.internals.parser.FieldParser.FieldMetaSignature;
import info.archinnov.achilles.internals.parser.TypeUtils;
import info.archinnov.achilles.internals.strategy.naming.SnakeCaseNaming;
public class EntityMetaColumnsForFunctionsCodeGen {
private static final SnakeCaseNaming SNAKE_CASE_NAMING = new SnakeCaseNaming();
public static final TypeSpec createColumnsClassForFunctionParam(List<FieldMetaSignature> parsingResults) {
final TypeSpec.Builder builder = TypeSpec.classBuilder(COLUMNS_FOR_FUNCTIONS_CLASS)
.addJavadoc("Utility class to expose all fields with their CQL type for function call")
.addModifiers(Modifier.PUBLIC, Modifier.STATIC, Modifier.FINAL);
parsingResults
.stream()
.filter(x -> x.context.columnType != ColumnType.COMPUTED)
.forEach(parsingResult -> builder.addField(buildField(parsingResult)));
return builder.build();
}
private static final FieldSpec buildField(FieldMetaSignature fieldMetaSignature) {
final TypeName typeNameForFunctionParam = TypeUtils.determineTypeForFunctionParam(fieldMetaSignature.sourceType);
final String fieldName = SNAKE_CASE_NAMING.apply(fieldMetaSignature.context.fieldName).toUpperCase();
final String cqlColumn = fieldMetaSignature.context.quotedCqlColumn;
return FieldSpec.builder(typeNameForFunctionParam, fieldName, Modifier.PUBLIC, Modifier.FINAL)
.addJavadoc("<br/>\n")
.addJavadoc("Field to be used for <em>manager.dsl().select().function(...)</em> call\n")
.addJavadoc("<br/>\n")
.addJavadoc("This is an alias for the field <strong>$S</strong>", fieldMetaSignature.context.fieldName)
.initializer(CodeBlock
.builder()
.add("new $T($T.empty()){\n", typeNameForFunctionParam, OPTIONAL)
.add(" @$T\n", OVERRIDE_ANNOTATION)
.beginControlFlow(" protected String cqlColumn()")
.addStatement(" return $S", cqlColumn)
.endControlFlow()
.add(" @$T\n", OVERRIDE_ANNOTATION)
.beginControlFlow(" public boolean isFunctionCall()")
.addStatement(" return false")
.endControlFlow()
.add(" }\n")
.build()
)
.build();
}
}
|
[
"doanduyhai@gmail.com"
] |
doanduyhai@gmail.com
|
e27c0809cb3924bc42f380522948fce165a660f3
|
9873d41fb45ddc470d9471e40981694838b8d0b0
|
/app/src/main/java/com/mj/gpsclient/adapter/DeviceAdapter.java
|
5067ff4a69b2ef6d80fb1e28e53b14e228bb0de9
|
[] |
no_license
|
al0ng/gpsclient
|
de10a1fa515f50795a648a1b4cb7b1d18eeae3e7
|
2385b25c2dcc12554a624289a0e0c572195a7f9c
|
refs/heads/master
| 2020-12-30T02:13:10.206744
| 2018-01-18T06:47:51
| 2018-01-18T06:47:51
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,024
|
java
|
package com.mj.gpsclient.adapter;
import android.content.Context;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Filter;
import android.widget.Filterable;
import android.widget.ImageView;
import android.widget.TextView;
import com.mj.gpsclient.Activity.PubUtil;
import com.mj.gpsclient.R;
import com.mj.gpsclient.Utils.PublicUtils;
import com.mj.gpsclient.global.DebugLog;
import com.mj.gpsclient.model.Devices;
import java.util.ArrayList;
import java.util.List;
public class DeviceAdapter extends BaseAdapter implements Filterable {
public List<Devices> array;
public List<Devices> devicelist;
public Context context;
private LayoutInflater mLayoutInfalater;
private MyFilter mFilter;
private boolean selected;// 是否需要将iv_item_device控件显示
private String Tag = "DeviceAdapter";
public DeviceAdapter(Context Context) {
this.context = Context;
mLayoutInfalater = LayoutInflater.from(Context);
}
public void setOriginalData(List<Devices> List) {
devicelist = List;
}
public void setData(List<Devices> List) {
array = List;
notifyDataSetChanged();
}
public void setLayout(boolean selected) {
this.selected = selected;
}
@Override
public int getCount() {
DebugLog.e("sgsfgdfgdf=");
return array == null ? 0 : array.size();
}
@Override
public Object getItem(int arg0) {
// TODO Auto-generated method stub
return array.get(arg0);
}
@Override
public long getItemId(int arg0) {
// TODO Auto-generated method stub
return arg0;
}
@Override
public View getView(int arg0, View convertView, ViewGroup arg2) {
ViewHolder viewHolder = null;
final Devices bean = array.get(arg0);
if (convertView == null) {
convertView = mLayoutInfalater.inflate(R.layout.item_list_devices,
null);
viewHolder = new ViewHolder(convertView);
convertView.setTag(viewHolder);
} else {
viewHolder = (ViewHolder) convertView.getTag();
}
final ImageView iv_item_device = (ImageView) convertView
.findViewById(R.id.iv_item_device);
if (selected) {// select为true,表示进入编辑状态
// 跟踪列表选择编辑状态
iv_item_device.setVisibility(View.VISIBLE);
iv_item_device.setBackgroundResource(R.drawable.check);
} else {
iv_item_device.setVisibility(View.GONE);
iv_item_device.setBackgroundResource(R.drawable.check);
}
if (!PubUtil.followHash.isEmpty()) {
if (PubUtil.followHash.containsKey(bean.getIMEI())) {
iv_item_device.setBackgroundResource(R.drawable.checked);
} else {
iv_item_device.setBackgroundResource(R.drawable.check);
}
}
if (!PubUtil.split_sHash.isEmpty()) {
if (PubUtil.split_sHash.containsKey(bean.getIMEI())) {
iv_item_device.setBackgroundResource(R.drawable.checked);
} else {
iv_item_device.setBackgroundResource(R.drawable.check);
}
}
if (!PubUtil.followHash2.isEmpty()) {
if (PubUtil.followHash2.containsKey(bean.getIMEI())) {
iv_item_device.setBackgroundResource(R.drawable.checked);
} else {
iv_item_device.setBackgroundResource(R.drawable.check);
}
}
if (!PubUtil.split_sHash2.isEmpty()) {
if (PubUtil.split_sHash2.containsKey(bean.getIMEI())) {
iv_item_device.setBackgroundResource(R.drawable.checked);
} else {
iv_item_device.setBackgroundResource(R.drawable.check);
}
}
Devices devices = array.get(arg0);
if (devices != null) {
viewHolder.mTextName.setText(devices.getName());
if (devices.getLineStatus().equals("离线")) {
viewHolder.mOnoffline.setText("离线");
viewHolder.mHeard.setImageDrawable(context.getResources()
.getDrawable(R.drawable.carofflineimage));
} else {
viewHolder.mOnoffline.setText("在线");
viewHolder.mHeard.setImageDrawable(context.getResources()
.getDrawable(R.drawable.carstaticimage));
}
}
return convertView;
}
static class ViewHolder {
TextView mTextName;
ImageView mHeard;
TextView mOnoffline;
ViewHolder(View view) {
mTextName = (TextView) view.findViewById(R.id.device_name);
mHeard = (ImageView) view.findViewById(R.id.heard_icon);
mOnoffline = (TextView) view.findViewById(R.id.devices_onoffline);
}
}
@Override
public Filter getFilter() {
if (null == mFilter) {
mFilter = new MyFilter();
}
return mFilter;
}
// 自定义Filter类
class MyFilter extends Filter {
@Override
// 该方法在子线程中执行
// 自定义过滤规则
protected FilterResults performFiltering(CharSequence constraint) {
FilterResults results = new FilterResults();
DebugLog.e("performFiltering=" + constraint);
List<Devices> newValues = new ArrayList<Devices>();
String filterString = constraint.toString().trim().toLowerCase();
Log.i(Tag, filterString + "++++++++++++");
newValues.clear();
// 如果搜索框内容为空,就恢复原始数据
if (TextUtils.isEmpty(filterString)) {
newValues.addAll(devicelist);
Log.i(Tag, devicelist.size() + "---------------");
} else {
// 过滤出新数据
for (Devices devices : devicelist) {
// DebugLog.e("devices.getName()=" + devices.getName());
if (-1 != devices.getName().trim().toLowerCase()
.indexOf(filterString)) {
newValues.add(devices);
}
}
}
results.values = newValues;
results.count = newValues.size();
return results;
}
@Override
protected void publishResults(CharSequence constraint,
FilterResults results) {
// devicesList = (List<Devices>) results.values;
array.clear();
array.addAll((List<Devices>) results.values);
array = PublicUtils.SetOrderForDevices(array);
DebugLog.e("publishResults=" + results.count);
notifyDataSetChanged();
}
}
}
|
[
"18701403668@163.com"
] |
18701403668@163.com
|
1b88748a949aa6712ddc4253ce7f22526cf8a76d
|
52abb3f9d6f5747ba9a7abeda455767f524a0898
|
/sp/src/main/java/com/sp/web/alexa/coachme/AbstractIntentHander.java
|
c0d8246c374a7d28bbae8d6df168fc8df7b22776
|
[] |
no_license
|
srayapatipolarits/ECSandCFN
|
251e474be9e76126bdd9244a480087eb9e28c039
|
1c16f7eebc6856afc47ad712fe7c1d160ffd3e84
|
refs/heads/master
| 2020-03-17T06:32:43.155453
| 2018-05-01T13:19:34
| 2018-05-01T13:19:34
| 133,360,061
| 1
| 0
| null | 2018-05-14T12:51:34
| 2018-05-14T12:51:34
| null |
UTF-8
|
Java
| false
| false
| 7,639
|
java
|
package com.sp.web.alexa.coachme;
import com.amazon.speech.slu.Slot;
import com.amazon.speech.speechlet.IntentRequest;
import com.amazon.speech.speechlet.Session;
import com.amazon.speech.speechlet.SpeechletResponse;
import com.amazon.speech.ui.PlainTextOutputSpeech;
import com.amazon.speech.ui.Reprompt;
import com.amazon.speech.ui.SimpleCard;
import com.sp.web.alexa.AlexaIntentHandler;
import com.sp.web.alexa.AlexaIntentType;
import com.sp.web.alexa.SPIntentRequest;
import com.sp.web.alexa.insights.InsightsSteps;
import com.sp.web.model.User;
import com.sp.web.user.UserFactory;
import com.sp.web.utils.MessagesHelper;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import java.util.List;
public abstract class AbstractIntentHander implements AlexaIntentHandler {
private static final Logger log = Logger.getLogger(AbstractIntentHander.class);
@Override
public SpeechletResponse execute(SPIntentRequest intentRequest) {
Session session = intentRequest.getSession();
// validate intent
switch (intentRequest.getAlexaIntentType()) {
case No:
case Yes:
Slot slot = intentRequest.getIntentRequest().getIntent().getSlot("Literal");
String value = slot.getValue();
if (StringUtils.isEmpty(value)
|| !(StringUtils.containsIgnoreCase(value, "absolutely")
|| StringUtils.containsIgnoreCase(value, "of course")
|| StringUtils.containsIgnoreCase(value, "not now")
|| StringUtils.containsIgnoreCase(value, "no thank you")
|| StringUtils.containsIgnoreCase(value, "nope")
|| StringUtils.containsIgnoreCase(value, "no")
|| StringUtils.containsIgnoreCase(value, "yup")
|| StringUtils.containsIgnoreCase(value, "I don't know")
|| StringUtils.containsIgnoreCase(value, "yup")
|| StringUtils.containsIgnoreCase(value, "please") || StringUtils.containsIgnoreCase(
value, "yes"))) {
log.info("Invalid , yes or no intent , slot value " + value);
String speechText = MessagesHelper.getMessage("alexa.yes.no.validate", intentRequest
.getUser().getFirstName());
// Create reprompt
PlainTextOutputSpeech speech = new PlainTextOutputSpeech();
speech.setText(speechText);
Reprompt reprompt = new Reprompt();
reprompt.setOutputSpeech(speech);
return SpeechletResponse.newAskResponse(speech, reprompt);
}
break;
case AskName:
/* check if correct intent is requsted */
switch (intentRequest.getActionType()) {
case CoachMe:
String stepString = (String) session.getAttribute("nextStep");
CoacheMeSteps step;
if (stepString == null) {
step = CoacheMeSteps.WelcomeStep;
session.setAttribute("nextStep", step.toString());
} else {
step = CoacheMeSteps.valueOf(stepString);
}
AlexaIntentType[] intentInocation = step.getIntentInocation();
if (!ArrayUtils.contains(intentInocation, AlexaIntentType.AskName)) {
String speechText = MessagesHelper.getMessage("alexa.yes.no.validate", intentRequest
.getUser().getFirstName());
// Create reprompt
PlainTextOutputSpeech speech = new PlainTextOutputSpeech();
speech.setText(speechText);
Reprompt reprompt = new Reprompt();
reprompt.setOutputSpeech(speech);
return SpeechletResponse.newAskResponse(speech, reprompt);
}
break;
case Insights:
String stepInsightsString = (String) session.getAttribute("nextStep");
InsightsSteps insightStep;
if (stepInsightsString == null) {
insightStep = InsightsSteps.WelcomeStep;
session.setAttribute("nextStep", insightStep.toString());
} else {
insightStep = InsightsSteps.valueOf(stepInsightsString);
}
AlexaIntentType[] intentInsightsInocation = insightStep.getAlexaIntentTypes();
if (!ArrayUtils.contains(intentInsightsInocation, AlexaIntentType.AskName)) {
String speechText = MessagesHelper.getMessage("alexa.yes.no.validate", intentRequest
.getUser().getFirstName());
// Create reprompt
PlainTextOutputSpeech speech = new PlainTextOutputSpeech();
speech.setText(speechText);
Reprompt reprompt = new Reprompt();
reprompt.setOutputSpeech(speech);
return SpeechletResponse.newAskResponse(speech, reprompt);
}
default:
break;
}
default:
break;
}
// Validate correct request.
return executeHandler(intentRequest);
}
/**
* Creates a {@code SpeechletResponse} for the help intent.
*
* @return SpeechletResponse spoken and visual response for the given intent
*/
protected SpeechletResponse getAskCollegueName(Session session, User user) {
String collegeAskCountString = (String) session.getAttribute("nameAskCount");
int collegeAskCount;
if (collegeAskCountString == null) {
collegeAskCount = 1;
} else {
collegeAskCount = Integer.valueOf(collegeAskCountString);
}
String key = "alexa.relationship.welcome.nointent." + collegeAskCount;
if (collegeAskCount < 3) {
collegeAskCount += 1;
}
session.setAttribute("nameAskCount", String.valueOf(collegeAskCount));
String speechText = MessagesHelper.getMessage(key, user.getFirstName());
// Create the Simple card content.
SimpleCard card = new SimpleCard();
card.setTitle("Ask College Name ");
card.setContent(speechText);
// Create the plain text output.
PlainTextOutputSpeech speech = new PlainTextOutputSpeech();
speech.setText(speechText);
// Create reprompt
Reprompt reprompt = new Reprompt();
reprompt.setOutputSpeech(speech);
return SpeechletResponse.newAskResponse(speech, reprompt, card);
}
/**
* isFullOrPartialEvent method tells whether the intent is full or partial intent.
*
* @param user
* logged in user.
* @param request
* alexa request.
* @param alexaIntentType
* alexaIntent type.
* @param session
* session.
* @return true or false;
*/
protected boolean isFullOrPartialEvent(User user, final IntentRequest request,
AlexaIntentType alexaIntentType, Session session, UserFactory userFactory) {
switch (alexaIntentType) {
case CoachMe:
case Insights:
case AskName:
Slot slot = request.getIntent().getSlot("Name");
if (slot != null) {
String value = slot.getValue();
if (value == null) {
return false;
}
log.info("check value " + value);
List<User> users = userFactory.findUserByName(value, user.getCompanyId());
log.info("Total users" + users + ",: user " + user.getCompanyId());
if (CollectionUtils.isEmpty(users)) {
return false;
} else if (users.size() > 1) {
return false;
} else {
User user2 = users.get(0);
session.setAttribute("userid", user2.getId());
return true;
}
} else {
return false;
}
default:
return false;
}
}
protected abstract SpeechletResponse executeHandler(SPIntentRequest intentRequest);
}
|
[
"root@ip-10-0-1-253.ec2.internal"
] |
root@ip-10-0-1-253.ec2.internal
|
802214ec36af498ff5f9656f9dc46b92e8bd356d
|
34f8d4ba30242a7045c689768c3472b7af80909c
|
/JDK10-Java SE Development Kit 10/src/jdk.localedata/sun/util/resources/cldr/ext/CurrencyNames_seh.java
|
b5a4743a8c8d3ecaf04ada7400f8d66fb69dc76a
|
[
"Apache-2.0"
] |
permissive
|
lovelycheng/JDK
|
5b4cc07546f0dbfad15c46d427cae06ef282ef79
|
19a6c71e52f3ecd74e4a66be5d0d552ce7175531
|
refs/heads/master
| 2023-04-08T11:36:22.073953
| 2022-09-04T01:53:09
| 2022-09-04T01:53:09
| 227,544,567
| 0
| 0
| null | 2019-12-12T07:18:30
| 2019-12-12T07:18:29
| null |
UTF-8
|
Java
| false
| false
| 6,305
|
java
|
/*
* Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* COPYRIGHT AND PERMISSION NOTICE
*
* Copyright (C) 1991-2016 Unicode, Inc. All rights reserved.
* Distributed under the Terms of Use in
* http://www.unicode.org/copyright.html.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of the Unicode data files and any associated documentation
* (the "Data Files") or Unicode software and any associated documentation
* (the "Software") to deal in the Data Files or Software
* without restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, and/or sell copies of
* the Data Files or Software, and to permit persons to whom the Data Files
* or Software are furnished to do so, provided that
* (a) this copyright and permission notice appear with all copies
* of the Data Files or Software,
* (b) this copyright and permission notice appear in associated
* documentation, and
* (c) there is clear notice in each modified Data File or in the Software
* as well as in the documentation associated with the Data File(s) or
* Software that the data or software has been modified.
*
* THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF
* ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT OF THIRD PARTY RIGHTS.
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS
* NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL
* DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THE DATA FILES OR SOFTWARE.
*
* Except as contained in this notice, the name of a copyright holder
* shall not be used in advertising or otherwise to promote the sale,
* use or other dealings in these Data Files or Software without prior
* written authorization of the copyright holder.
*/
package sun.util.resources.cldr.ext;
import sun.util.resources.OpenListResourceBundle;
public class CurrencyNames_seh extends OpenListResourceBundle {
@Override
protected final Object[][] getContents() {
final Object[][] data = new Object[][] {
{ "MZN", "MTn" },
{ "aed", "Dir\u00e9m dos Emirados \u00c1rabes Unidos" },
{ "aoa", "Cuanza angolano" },
{ "aud", "D\u00f3lar australiano" },
{ "bhd", "Dinar bareinita" },
{ "bif", "Franco do Burundi" },
{ "bwp", "Pula botsuanesa" },
{ "cad", "D\u00f3lar canadense" },
{ "cdf", "Franco congol\u00eas" },
{ "chf", "Franco su\u00ed\u00e7o" },
{ "cny", "Yuan Renminbi chin\u00eas" },
{ "cve", "Escudo cabo-verdiano" },
{ "djf", "Franco do Djibuti" },
{ "dzd", "Dinar argelino" },
{ "egp", "Libra eg\u00edpcia" },
{ "ern", "Nakfa da Eritr\u00e9ia" },
{ "etb", "Birr et\u00edope" },
{ "eur", "Euro" },
{ "gbp", "Libra brit\u00e2nica" },
{ "ghc", "Cedi de Gana (1979\u20132007)" },
{ "gmd", "Dalasi de G\u00e2mbia" },
{ "gns", "Syli da Guin\u00e9" },
{ "inr", "R\u00fapia indiana" },
{ "jpy", "Iene japon\u00eas" },
{ "kes", "Xelim queniano" },
{ "kmf", "Franco de Comores" },
{ "lrd", "D\u00f3lar liberiano" },
{ "lsl", "Loti do Lesoto" },
{ "lyd", "Dinar l\u00edbio" },
{ "mad", "Dir\u00e9m marroquino" },
{ "mga", "Franco de Madagascar" },
{ "mro", "Ouguiya da Maurit\u00e2nia" },
{ "mur", "Rupia de Maur\u00edcio" },
{ "mwk", "Cuacha do Mal\u00e1ui" },
{ "mzm", "Metical antigo de Mo\u00e7ambique" },
{ "mzn", "Metical de Mo\u00e7ambique" },
{ "nad", "D\u00f3lar da Nam\u00edbia" },
{ "ngn", "Naira nigeriana" },
{ "rwf", "Franco ruand\u00eas" },
{ "sar", "Rial saudita" },
{ "scr", "Rupia das Seychelles" },
{ "sdg", "Dinar sudan\u00eas" },
{ "sdp", "Libra sudanesa antiga" },
{ "shp", "Libra de Santa Helena" },
{ "sll", "Leone de Serra Leoa" },
{ "sos", "Xelim somali" },
{ "std", "Dobra de S\u00e3o Tom\u00e9 e Pr\u00edncipe" },
{ "szl", "Lilangeni da Suazil\u00e2ndia" },
{ "tnd", "Dinar tunisiano" },
{ "tzs", "Xelim da Tanz\u00e2nia" },
{ "ugx", "Xelim ugandense (1966\u20131987)" },
{ "usd", "D\u00f3lar norte-americano" },
{ "xaf", "Franco CFA BEAC" },
{ "xof", "Franco CFA BCEAO" },
{ "zar", "Rand sul-africano" },
{ "zmk", "Cuacha zambiano (1968\u20132012)" },
{ "zmw", "Cuacha zambiano" },
{ "zwd", "D\u00f3lar do Zimb\u00e1bue" },
};
return data;
}
}
|
[
"zeng-dream@live.com"
] |
zeng-dream@live.com
|
94f46c5eac0b511ceab34615df417468181c8959
|
30a619d2ccfd60d44f8aa8f52be02e1fb98a184c
|
/Qualyzer_2.0/main/ca.mcgill.cs.swevo.qualyzer/src/ca/mcgill/cs/swevo/qualyzer/providers/CodeBarChart.java
|
9a311ff526c38d164cfecea36b64e6fbd703f826
|
[] |
no_license
|
hchuphal/Javac
|
84ce9bd2a73ec3f6247d9c3ebc29636671b73251
|
130ef558d3f16c6fa7390ef7c2d616fe73bca7fa
|
refs/heads/master
| 2020-09-06T16:26:42.476456
| 2019-12-18T21:46:09
| 2019-12-18T21:46:09
| 220,478,324
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,766
|
java
|
package ca.mcgill.cs.swevo.qualyzer.providers;
import ca.mcgill.cs.swevo.qualyzer.editors.MarkTextAction;
import ca.mcgill.cs.swevo.qualyzer.editors.RTFSourceViewer;
import ca.mcgill.cs.swevo.qualyzer.editors.inputs.CodeEditorInput;
import ca.mcgill.cs.swevo.qualyzer.editors.inputs.CodeTableInput;
import ca.mcgill.cs.swevo.qualyzer.editors.inputs.CodeTableInput.CodeTableRow;
import ca.mcgill.cs.swevo.qualyzer.model.Code;
import ca.mcgill.cs.swevo.qualyzer.model.PersistenceManager;
import ca.mcgill.cs.swevo.qualyzer.model.Project;
import ca.mcgill.cs.swevo.qualyzer.providers.Barchart;
import java.awt.*;
import javax.swing.*;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.forms.editor.FormEditor;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.awt.event.*;
public class CodeBarChart {
public CodeBarChart(Project project, CodeTableRow[] row) {
JFrame frame = new JFrame();
frame.setSize(600, 500);
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
frame.setLocation(dim.width/2-frame.getSize().width/2, dim.height/2-frame.getSize().height/2);
double[] codeFrequency = new double[row.length];
String[] codeName = new String[row.length];
Color[] color = new Color [row.length];
//Random random = new Random();
for (int i = 0; i < row.length; i++) {
codeFrequency[i] = row[i].getFrequency();
codeName[i] = row[i].getName();
//float r = random.nextFloat();
//float g = random.nextFloat();
//float b = random.nextFloat();
Code currentCode = row[i].getCode();
ArrayList<Integer> codeColour = RTFSourceViewer.getCodes().get(currentCode);
//Color randomColor = new Color(r, g, b);
//color[i] = randomColor;
if (codeColour != null) {
System.out.println("Not null");
float fR = codeColour.get(0) / 255.0F;
float fG = codeColour.get(1) / 255.0F;
float fB = codeColour.get(2) / 255.0F;
Color randomColor = new Color(fR, fG, fB);
color[i] = randomColor;
} else {
System.out.println("Null");
Color randomColor = new Color(1, 0, 0);
color[i] = randomColor;
}
}
frame.getContentPane().add(new Barchart(codeFrequency, codeName, color, "Code Barchart"));
WindowListener winListener = new WindowAdapter() {
public void windowClosing(WindowEvent event) {
}
};
frame.addWindowListener(winListener);
frame.setVisible(true);
}
}
|
[
"himanshu.chuphal07@gmail.com"
] |
himanshu.chuphal07@gmail.com
|
cef42d6a4a35ddc73954ae589bb7d927a402ad4d
|
5937ebcce79ee1ce937967597a3e884a27cd7ddd
|
/src/info/photoorganizer/database/xml/elementhandlers/DatabaseHandler.java
|
bb79781464bc2a9c4f70c997a8e55521f3f3b158
|
[] |
no_license
|
mikaelsvensson/photoorganizer-core
|
97cf323d6203a74a35c5863257459ff6b404733f
|
462471f7ecb95ee9e6a5df6e5ae35c7edbf5bf91
|
refs/heads/master
| 2020-12-25T19:03:45.577597
| 2011-10-01T20:03:15
| 2011-10-01T20:03:15
| 1,772,899
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,774
|
java
|
package info.photoorganizer.database.xml.elementhandlers;
import info.photoorganizer.database.Database;
import info.photoorganizer.database.DatabaseStorageException;
import info.photoorganizer.database.xml.StorageContext;
import info.photoorganizer.database.xml.XMLDatabaseStorageStrategy;
import info.photoorganizer.util.XMLUtilities;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
public class DatabaseHandler extends DatabaseObjectHandler<Database>
{
private static final String ATTRIBUTENAME_NAME = "name";
public static final String ELEMENTNAME_TAGDEFINITIONS = "TagDefinitions";
public static final String ELEMENTNAME_PHOTOS = "Photos";
public static final String ELEMENTNAME_INDEXINGCONFIGURATIONS = "IndexingConfigurations";
public DatabaseHandler(StorageContext context)
{
super(Database.class, context);
}
@Override
public void readElement(Database o, Element el)
{
o.setName(XMLUtilities.getTextAttribute(el, ATTRIBUTENAME_NAME, "untitled"));
// readTagDefinitionElements(o, el);
// readImageElements(o, el);
// Iterator<KeywordTagDefinition> keywords = _converter.fromElementChildren(el, KeywordTagDefinition.class).iterator();
// if (keywords.hasNext())
// {
// o.setRootKeyword(keywords.next());
// }
super.readElement(o, el);
}
// private void readTagDefinitionElements(Database o, Element el)
// {
// Iterator<TagDefinition> i = _converter.fromElementChildren(XMLUtilities.getNamedChild(el, ELEMENTNAME_TAGDEFINITIONS), TagDefinition.class).iterator();
// while (i.hasNext())
// {
// o.getTagDefinitions().add(i.next());
// }
// }
// private void readImageElements(Database o, Element el)
// {
// Iterator<Image> i = _converter.fromElementChildren(XMLUtilities.getNamedChild(el, ELEMENTNAME_IMAGES), Image.class).iterator();
// while (i.hasNext())
// {
// o.getImages().add(i.next());
// }
// }
@Override
public void writeElement(Database o, Element el)
{
XMLDatabaseStorageStrategy.setUUIDAttribute(el, ATTRIBUTENAME_NAME, o.getId());
Document owner = el.getOwnerDocument();
Element tagDefinitionsEl = createElement(ELEMENTNAME_TAGDEFINITIONS, owner);
el.appendChild(tagDefinitionsEl);
XMLUtilities.appendChildren(tagDefinitionsEl, _context.toElements(o.getTagDefinitions()));
Element keywordTranslatorsEl = createElement(ELEMENTNAME_INDEXINGCONFIGURATIONS, owner);
el.appendChild(keywordTranslatorsEl);
XMLUtilities.appendChildren(keywordTranslatorsEl, _context.toElements(o.getIndexingConfigurations()));
Element imagesEl = createElement(ELEMENTNAME_PHOTOS, owner);
el.appendChild(imagesEl);
XMLUtilities.appendChildren(imagesEl, _context.toElements(o.getPhotos()));
// KeywordTagDefinition rootKeyword = o.getRootKeyword();
// if (null != rootKeyword)
// {
// el.appendChild(_converter.toElement(owner, rootKeyword));
// }
super.writeElement(o, el);
}
@Override
public Database createObject(Element el)
{
return new Database(_context.getStrategy());
}
@Override
public void storeElement(Database o) throws DatabaseStorageException
{
throw new DatabaseStorageException("Feature to store database not implemented. Store each database item, such as keyword definitions and images, separately.");
}
}
|
[
"github@mikaelsvensson.info"
] |
github@mikaelsvensson.info
|
a2c6635470e2912cf6e4ae46b6d51f3ecab57a6e
|
1f90f71802f67bd789d161a352c172d7a81aa9a8
|
/lib-app-volley/src/main/java/com/android/volley/toolbox/OkHttpStack.java
|
75c96b68c65a5e83f9a1f9925150ab050c688cc1
|
[] |
no_license
|
hayukleung/app
|
c4fd75c6932df6d58eb4d0a4cdade2cd1ae8d4ce
|
a15962a984d00b712090eac47ddd965c8faa55ff
|
refs/heads/master
| 2021-01-14T02:29:52.201441
| 2017-03-30T09:57:48
| 2017-03-30T09:57:48
| 41,923,161
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,286
|
java
|
package com.android.volley.toolbox;
import com.android.volley.AuthFailureError;
import com.android.volley.NetworkTask;
import com.android.volley.http.HttpEntityEnclosingRequest;
import com.android.volley.http.HttpRequestBase;
import com.android.volley.http.HttpResponse;
import com.android.volley.http.entity.Header;
import com.android.volley.http.entity.HttpEntity;
import com.android.volley.http.entity.InputStreamEntity;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.OkUrlFactory;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.util.HashMap;
import java.util.Map;
public class OkHttpStack implements HttpStack {
private OkUrlFactory mUrlFactory;
public OkHttpStack() {
mUrlFactory = new OkUrlFactory(new OkHttpClient());
}
@Override
public HttpResponse performRequest(NetworkTask httprequest, Map<String, String> additionalHeaders)
throws IOException, AuthFailureError {
HttpRequestBase request = httprequest.getRequest();
HttpURLConnection connection = mUrlFactory.open(request.getURL());
int timeoutMs = httprequest.getTimeoutMs();
connection.setConnectTimeout(timeoutMs);
connection.setReadTimeout(timeoutMs);
HashMap<String, String> map = new HashMap<String, String>();
map.putAll(additionalHeaders);
map.putAll(httprequest.getHeaders());
for (String headerName : map.keySet()) {
connection.addRequestProperty(headerName, map.get(headerName));
}
connection.setRequestMethod(request.getMethod());
for (Header header : request.getAllHeaders()) {
connection.addRequestProperty(header.getName(), header.getValue());
}
// Stream the request body.
if (request instanceof HttpEntityEnclosingRequest) {
HttpEntity entity = ((HttpEntityEnclosingRequest) request).getEntity();
if (entity != null) {
connection.setDoOutput(true);
Header type = entity.getContentType();
if (type != null) {
connection.addRequestProperty(type.getName(), type.getValue());
}
Header encoding = entity.getContentEncoding();
if (encoding != null) {
connection.addRequestProperty(encoding.getName(), encoding.getValue());
}
if (entity.getContentLength() < 0) {
connection.setChunkedStreamingMode(0);
} else if (entity.getContentLength() <= 8192) {
// Buffer short, fixed-length request bodies. This costs memory, but permits the request
// to be transparently retried if there is a connection failure.
connection.addRequestProperty("Content-Length", Long.toString(entity.getContentLength()));
} else {
connection.setFixedLengthStreamingMode((int) entity.getContentLength());
}
entity.writeTo(connection.getOutputStream());
}
}
// Read the response headers.
int responseCode = connection.getResponseCode();
String message = connection.getResponseMessage();
HttpResponse response = new HttpResponse(responseCode, message);
// Get the response body ready to stream.
InputStream responseBody = responseCode < HttpURLConnection.HTTP_BAD_REQUEST ? connection.getInputStream()
: connection.getErrorStream();
InputStreamEntity entity = new InputStreamEntity(responseBody, connection.getContentLength());
for (int i = 0; true; i++) {
String name = connection.getHeaderFieldKey(i);
if (name == null) {
break;
}
Header header = new Header(name, connection.getHeaderField(i));
response.addHeader(header);
if (name.equalsIgnoreCase("Content-Type")) {
entity.setContentType(header);
} else if (name.equalsIgnoreCase("Content-Encoding")) {
entity.setContentEncoding(header);
}
}
response.setEntity(entity);
return response;
}
}
|
[
"hayukleung@gmail.com"
] |
hayukleung@gmail.com
|
9e9ef4adeaa6746df97489711c5c32ce9f97c38b
|
6732796da80d70456091ec1c3cc1ee9748b97cc5
|
/TS/jackson-databind/src/test/java/com/fasterxml/jackson/databind/util/ByteBufferUtilsTest.java
|
bb713b2875c822874f4d072cf8e6e4a646a8d252
|
[
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] |
permissive
|
nharrand/argo
|
f88c13a1fb759f44fab6dbc6614de3c0c0554549
|
c09fccba668e222a1b349b95d34177b5964e78e1
|
refs/heads/main
| 2023-08-13T10:39:48.526694
| 2021-10-13T09:40:19
| 2021-10-13T09:40:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,024
|
java
|
package com.fasterxml.jackson.databind.util;
import java.nio.ByteBuffer;
import com.fasterxml.jackson.databind.BaseMapTest;
public class ByteBufferUtilsTest extends BaseMapTest
{
public void testByteBufferInput() throws Exception {
byte[] input = new byte[] { 1, 2, 3 };
ByteBufferBackedInputStream wrapped = new ByteBufferBackedInputStream(ByteBuffer.wrap(input));
//ARGO_PLACEBO
assertEquals(3, wrapped.available());
//ARGO_PLACEBO
assertEquals(1, wrapped.read());
byte[] buffer = new byte[10];
//ARGO_PLACEBO
assertEquals(2, wrapped.read(buffer, 0, 5));
wrapped.close();
}
public void testByteBufferOutput() throws Exception {
ByteBuffer b = ByteBuffer.wrap(new byte[10]);
ByteBufferBackedOutputStream wrappedOut = new ByteBufferBackedOutputStream(b);
wrappedOut.write(1);
wrappedOut.write(new byte[] { 2, 3 });
//ARGO_PLACEBO
assertEquals(3, b.position());
//ARGO_PLACEBO
assertEquals(7, b.remaining());
wrappedOut.close();
}
}
|
[
"nicolas.harrand@gmail.com"
] |
nicolas.harrand@gmail.com
|
1a3cf3bd1f4adfd23cc68dd16fdd395c2586f052
|
07405736e7393e446cc99c9744eb14fcd5f3dfe9
|
/src/main/java/org/aeonbits/owner/Reloadable.java
|
b0555ff7a9b5be598c438f4e2f88223e685e6ae5
|
[
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
mikeChampagne/owner
|
7e15bfe64e6f4b38a40105db8d21a8e39e57d127
|
70216f401e6df54455d224e280c043e80bd43055
|
refs/heads/master
| 2021-01-18T16:40:20.483873
| 2013-09-18T21:42:26
| 2013-09-18T23:14:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,889
|
java
|
/*
* Copyright (c) 2013, Luigi R. Viggiano
* All rights reserved.
*
* This software is distributable under the BSD license.
* See the terms of the BSD license in the documentation provided with this software.
*/
package org.aeonbits.owner;
import org.aeonbits.owner.event.ReloadListener;
/**
* <p>Allows a <tt>Config</tt> object to implement the reloading of the properties at runtime.</p>
*
* <p>Example:</p>
*
* <pre>
* public interface MyConfig extends Config, Reloadable {
* int someProperty();
* }
*
* public void doSomething() {
*
* // loads the properties from the files for the first time.
* MyConfig cfg = ConfigFactory.create(MyConfig.class);
* int before = cfg.someProperty();
*
* // after changing the local files...
* cfg.reload();
* int after = cfg.someProperty();
*
* // before and after may differ now.
* if (before != after) { ... }
* }
* </pre>
*
* <p>The reload method will reload the properties using the same sources used when it was instantiated the first time.
* This can be useful to programmatically reload the configuration after the configuration files were changed.</p>
*
* @author Luigi R. Viggiano
* @since 1.0.4
*/
public interface Reloadable extends Config {
/**
* Reloads the properties using the same logic as when the object was instantiated by {@link
* ConfigFactory#create(Class, java.util.Map[])}.
*
* @since 1.0.4
*/
void reload();
/**
* Add a ReloadListener.
* @param listener the listener to be added
*
* @since 1.0.4
*/
void addReloadListener(ReloadListener listener);
/**
* Remove a ReloadListener.
* @param listener the listener to be removed
*
* @since 1.0.4
*/
void removeReloadListener(ReloadListener listener);
}
|
[
"luigi.viggiano@newinstance.it"
] |
luigi.viggiano@newinstance.it
|
fa23b02948c706f2385f0232b22b0ed260b8aa1e
|
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
|
/java/scribejava/2017/12/DefaultApi10a.java
|
b7167a86e722e0826064b0de653b7f7b6fad3533
|
[] |
no_license
|
rosoareslv/SED99
|
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
|
a062c118f12b93172e31e8ca115ce3f871b64461
|
refs/heads/main
| 2023-02-22T21:59:02.703005
| 2021-01-28T19:40:51
| 2021-01-28T19:40:51
| 306,497,459
| 1
| 1
| null | 2020-11-24T20:56:18
| 2020-10-23T01:18:07
| null |
UTF-8
|
Java
| false
| false
| 4,780
|
java
|
package com.github.scribejava.core.builder.api;
import com.github.scribejava.core.extractors.BaseStringExtractor;
import com.github.scribejava.core.extractors.BaseStringExtractorImpl;
import com.github.scribejava.core.extractors.HeaderExtractor;
import com.github.scribejava.core.extractors.HeaderExtractorImpl;
import com.github.scribejava.core.extractors.OAuth1AccessTokenExtractor;
import com.github.scribejava.core.extractors.OAuth1RequestTokenExtractor;
import com.github.scribejava.core.model.OAuthConfig;
import com.github.scribejava.core.model.Verb;
import com.github.scribejava.core.oauth.OAuth10aService;
import com.github.scribejava.core.services.HMACSha1SignatureService;
import com.github.scribejava.core.services.SignatureService;
import com.github.scribejava.core.services.TimestampService;
import com.github.scribejava.core.services.TimestampServiceImpl;
import com.github.scribejava.core.extractors.TokenExtractor;
import com.github.scribejava.core.model.OAuth1AccessToken;
import com.github.scribejava.core.model.OAuth1RequestToken;
/**
* Default implementation of the OAuth protocol, version 1.0a
*
* This class is meant to be extended by concrete implementations of the API, providing the endpoints and
* endpoint-http-verbs.
*
* If your Api adheres to the 1.0a protocol correctly, you just need to extend this class and define the getters for
* your endpoints.
*
* If your Api does something a bit different, you can override the different extractors or services, in order to
* fine-tune the process. Please read the javadocs of the interfaces to get an idea of what to do.
*
*/
public abstract class DefaultApi10a implements BaseApi<OAuth10aService> {
/**
* Returns the access token extractor.
*
* @return access token extractor
*/
public TokenExtractor<OAuth1AccessToken> getAccessTokenExtractor() {
return OAuth1AccessTokenExtractor.instance();
}
/**
* Returns the base string extractor.
*
* @return base string extractor
*/
public BaseStringExtractor getBaseStringExtractor() {
return new BaseStringExtractorImpl();
}
/**
* Returns the header extractor.
*
* @return header extractor
*/
public HeaderExtractor getHeaderExtractor() {
return new HeaderExtractorImpl();
}
/**
* Returns the request token extractor.
*
* @return request token extractor
*/
public TokenExtractor<OAuth1RequestToken> getRequestTokenExtractor() {
return OAuth1RequestTokenExtractor.instance();
}
/**
* Returns the signature service.
*
* @return signature service
*/
public SignatureService getSignatureService() {
return new HMACSha1SignatureService();
}
/**
* @return the signature type, choose between header, querystring, etc. Defaults to Header
*/
public OAuth1SignatureType getSignatureType() {
return OAuth1SignatureType.Header;
}
/**
* Returns the timestamp service.
*
* @return timestamp service
*/
public TimestampService getTimestampService() {
return new TimestampServiceImpl();
}
/**
* Returns the verb for the access token endpoint (defaults to POST)
*
* @return access token endpoint verb
*/
public Verb getAccessTokenVerb() {
return Verb.POST;
}
/**
* Returns the verb for the request token endpoint (defaults to POST)
*
* @return request token endpoint verb
*/
public Verb getRequestTokenVerb() {
return Verb.POST;
}
/**
* Returns the URL that receives the request token requests.
*
* @return request token URL
*/
public abstract String getRequestTokenEndpoint();
/**
* Returns the URL that receives the access token requests.
*
* @return access token URL
*/
public abstract String getAccessTokenEndpoint();
/**
* Returns the URL where you should redirect your users to authenticate your application.
*
* @param requestToken the request token you need to authorize
* @return the URL where you should redirect your users
*/
public abstract String getAuthorizationUrl(OAuth1RequestToken requestToken);
@Override
public OAuth10aService createService(OAuthConfig config) {
return new OAuth10aService(this, config);
}
/**
* http://tools.ietf.org/html/rfc5849 says that "The client MAY omit the empty "oauth_token" protocol parameter from
* the request", but not all oauth servers are good boys.
*
* @return whether to inlcude empty oauth_token param to the request
*/
public boolean isEmptyOAuthTokenParamIsRequired() {
return false;
}
}
|
[
"rodrigosoaresilva@gmail.com"
] |
rodrigosoaresilva@gmail.com
|
3f43be48a00bcccbce7599f85e2e9a208889d003
|
694d574b989e75282326153d51bd85cb8b83fb9f
|
/google-ads/src/main/java/com/google/ads/googleads/v2/enums/FeedMappingCriterionTypeEnumOrBuilder.java
|
b423d8eda454ddab81aadc23e109bb70a0c7453f
|
[
"Apache-2.0"
] |
permissive
|
tikivn/google-ads-java
|
99201ef20efd52f884d651755eb5a3634e951e9b
|
1456d890e5c6efc5fad6bd276b4a3cd877175418
|
refs/heads/master
| 2023-08-03T13:02:40.730269
| 2020-07-17T16:33:40
| 2020-07-17T16:33:40
| 280,845,720
| 0
| 0
|
Apache-2.0
| 2023-07-23T23:39:26
| 2020-07-19T10:51:35
| null |
UTF-8
|
Java
| false
| true
| 398
|
java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v2/enums/feed_mapping_criterion_type.proto
package com.google.ads.googleads.v2.enums;
public interface FeedMappingCriterionTypeEnumOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v2.enums.FeedMappingCriterionTypeEnum)
com.google.protobuf.MessageOrBuilder {
}
|
[
"devchas@google.com"
] |
devchas@google.com
|
6e7c5074ed3a4764890005c936297572372a33a9
|
4fdb8a52a5251c3757fa3b739c9b36138d7f9302
|
/CodingStudy/src/Chapter7/Question9/CircularArray.java
|
e989db02c433453f6d5f7bace7e9b37a886ad7d6
|
[] |
no_license
|
dkyou7/CodingStudy
|
b9cca607a143430490e4496a439302a332a6e023
|
b4708b0877d92c1195339553b18b720d031b0853
|
refs/heads/master
| 2021-10-10T00:29:43.751342
| 2018-12-09T09:35:30
| 2018-12-09T09:35:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,216
|
java
|
package Chapter7.Question9;
import java.util.Iterator;
public class CircularArray<T> implements Iterable<T>{
private T[] items;
private int head =0;
public CircularArray(int size) {
items = (T[])new Object[size];
}
private int convert(int index) {
if(index < 0) {
index += items.length;
}
return (head + index) % items.length;
}
public void rotate(int shiftRight) {
head = convert(shiftRight);
}
public T get(int i) {
if(i < 0 || i >= items.length) {
throw new java.lang.IndexOutOfBoundsException("Index " + i + " is out of bounds");
}
return items[convert(i)];
}
public void set(int i, T item) {
items[convert(i)] = item;
}
public Iterator<T> iterator() {
return new CircularArrayIterator();
}
private class CircularArrayIterator implements Iterator<T>{
private int _current = -1;
public CircularArrayIterator() {}
@Override
public boolean hasNext() {
return _current < items.length -1;
}
@Override
public T next() {
_current++;
return (T)items[convert(_current)];
}
@Override
public void remove() {
throw new UnsupportedOperationException("Remove is not supported by CircularArray");
}
}
}
|
[
"koola97620@nate.com"
] |
koola97620@nate.com
|
fb299df94b8bb8e1da6e05e0d6cef9f514aaa206
|
bdc69e64a6ef7a843a819fdb315eb4928dc77ce9
|
/library/src/main/java/com/eqdd/library/base/CommonActivity.java
|
f3060da23b5ba51a5e64ac2f0161d02dc75d132b
|
[] |
no_license
|
lvzhihao100/Project
|
f1d3f0d535ceae42db9415b368b6fe9aa7ee6200
|
9d7fe365c92cc7500b89e2febcfd4c7a666d251a
|
refs/heads/master
| 2021-01-25T08:13:35.673848
| 2017-06-08T10:18:22
| 2017-06-08T10:18:22
| 93,736,138
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 651
|
java
|
package com.eqdd.library.base;
import android.os.Bundle;
import com.eqdd.common.base.BaseActivity;
import com.eqdd.library.bean.User;
import com.eqdd.library.utils.GreenDaoUtil;
/**
* Created by lvzhihao on 17-5-30.
*/
public abstract class CommonActivity extends BaseActivity {
public User user;
private Bundle savedInstanceState;
@Override
protected void onCreate(Bundle savedInstanceState) {
user = GreenDaoUtil.getUser();
this.savedInstanceState = savedInstanceState;
super.onCreate(savedInstanceState);
}
public Bundle getSavedInstanceState() {
return savedInstanceState;
}
}
|
[
"1030753080@qq.com"
] |
1030753080@qq.com
|
a9d47502c9819fd412b40fbd416f65d755800d61
|
27e5eb73bafde21167cd66b61a91ff27e39c639b
|
/src/main/java/org/fergonco/music/mjargon/model/SongLine.java
|
f7aed1d9379c29ae7c1a028952b27469ce53fe41
|
[] |
no_license
|
fergonco/MusicJargon
|
1ef1a2010dd89004a135dcf6db7d402ade4b79a0
|
c5de7d5e5ba078570c58bb7108b49e32cff0f3b5
|
refs/heads/master
| 2021-01-20T11:47:51.983436
| 2019-04-14T20:15:47
| 2019-04-14T20:15:47
| 101,690,324
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 365
|
java
|
package org.fergonco.music.mjargon.model;
import org.fergonco.music.midi.Dynamic;
public interface SongLine {
boolean isBarline();
Bar[] getBars();
boolean isTempo();
double getTempo();
boolean isRepeat();
int getTarget();
boolean isDynamics();
Dynamic[] getDynamics();
void validate(Model model, int songlineIndex) throws SemanticException;
}
|
[
"fernando.gonzalez@geomati.co"
] |
fernando.gonzalez@geomati.co
|
6c2585af490b4f5fc2585ff2e0f55adb92b14896
|
0b93651bf4c4be26f820702985bd41089026e681
|
/modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201802/ContentMetadataTargetingErrorReason.java
|
5394f361a5a96278065b3b4c7d3de2ccd06cd15b
|
[
"Apache-2.0"
] |
permissive
|
cmcewen-postmedia/googleads-java-lib
|
adf36ccaf717ab486e982b09d69922ddd09183e1
|
75724b4a363dff96e3cc57b7ffc443f9897a9da9
|
refs/heads/master
| 2021-10-08T16:50:38.364367
| 2018-12-14T22:10:58
| 2018-12-14T22:10:58
| 106,611,378
| 0
| 0
|
Apache-2.0
| 2018-12-14T22:10:59
| 2017-10-11T21:26:49
|
Java
|
UTF-8
|
Java
| false
| false
| 1,986
|
java
|
// Copyright 2018 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.ads.dfp.jaxws.v201802;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ContentMetadataTargetingError.Reason.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="ContentMetadataTargetingError.Reason">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="VALUES_DO_NOT_BELONG_TO_A_HIERARCHY"/>
* <enumeration value="UNKNOWN"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "ContentMetadataTargetingError.Reason")
@XmlEnum
public enum ContentMetadataTargetingErrorReason {
/**
*
* One or more of the values specified in a {@code ContentMetadataHierarchyTargeting}
* do not belong to the keys defined in any of the hierarchies on the network.
*
*
*/
VALUES_DO_NOT_BELONG_TO_A_HIERARCHY,
/**
*
* The value returned if the actual value is not exposed by the requested API version.
*
*
*/
UNKNOWN;
public String value() {
return name();
}
public static ContentMetadataTargetingErrorReason fromValue(String v) {
return valueOf(v);
}
}
|
[
"api.cseeley@gmail.com"
] |
api.cseeley@gmail.com
|
e9c818e643c6a63ecd95f651d8c88a321ba4a6fe
|
078fa13d52ccbbb8aade6dbd5206078cfff50003
|
/deweyHis/src/com/dewey/his/param/dao/ChargeRuleSettingDAO.java
|
fa88b6252567e70792a627c56bab27dff65da643
|
[] |
no_license
|
kevonz/dewey
|
c30e18c118bf0d27b385f0d25e042c76ea53b458
|
b7155b96a28d5354651a8f88b0bd68ed3e1212a9
|
refs/heads/master
| 2021-01-18T08:55:34.894327
| 2012-10-27T08:59:10
| 2012-10-27T08:59:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 633
|
java
|
package com.dewey.his.param.dao;
import org.hibernate.Query;
import org.springframework.stereotype.Repository;
import com.dewey.his.param.model.ChargeRuleSetting;
import common.base.dao.hibernate3.Hibernate3Dao;
@Repository("chargeRuleSettingDAO")
public class ChargeRuleSettingDAO extends Hibernate3Dao{
public ChargeRuleSetting getByMerId(long merId) {
String queryString = "from ChargeRuleSetting as model where model.mer.id= ?";
Query queryObject = this.getSessionFactory().getCurrentSession().createQuery(queryString);
queryObject.setParameter(0, merId);
return (ChargeRuleSetting)queryObject.uniqueResult();
}
}
|
[
"kevonz@live.com"
] |
kevonz@live.com
|
539f5c93c6a0ee46079a2ba9bbebf8076694b19f
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-14227-4-12-NSGA_II-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/store/migration/AbstractDataMigrationManager_ESTest.java
|
e4e3327e0084785f50b9587875b895c60cdee49b
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 592
|
java
|
/*
* This file was automatically generated by EvoSuite
* Sat Jan 18 18:29:39 UTC 2020
*/
package com.xpn.xwiki.store.migration;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class AbstractDataMigrationManager_ESTest extends AbstractDataMigrationManager_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
442f9b40a7d711bbd96253c2b30c4509a1c6782a
|
ca8843436b3151ed6de8053fb577446a7ae2e424
|
/src/main/java/org/healthship/jira/client/model/ContainerForRegisteredWebhooks.java
|
9618ec17d4768523a2ca46b402909b02db0a49dd
|
[] |
no_license
|
HealthSHIP/hs-os
|
f69c08e4af1dac68464eecbdefb000c4fda806b3
|
a00c64940076437f3d110d5d8ac8b6316d4a79c7
|
refs/heads/master
| 2022-12-28T02:35:04.714619
| 2020-10-16T13:02:39
| 2020-10-16T13:02:39
| 304,629,073
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,290
|
java
|
/*
* Copyright (c) 2020 Ronald MacDonald <ronald@rmacd.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.
*/
/*
* The Jira Cloud platform REST API
* Jira Cloud platform REST API documentation
*
* The version of the OpenAPI document: 1001.0.0-SNAPSHOT
* Contact: ecosystem@atlassian.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.healthship.jira.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* Container for a list of registered webhooks. Webhook details are returned in the same order as the request.
*/
@ApiModel(description = "Container for a list of registered webhooks. Webhook details are returned in the same order as the request.")
@JsonPropertyOrder({
ContainerForRegisteredWebhooks.JSON_PROPERTY_WEBHOOK_REGISTRATION_RESULT
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-03-29T15:40:13.931673+01:00[Europe/London]")
public class ContainerForRegisteredWebhooks {
public static final String JSON_PROPERTY_WEBHOOK_REGISTRATION_RESULT = "webhookRegistrationResult";
private List<RegisteredWebhook> webhookRegistrationResult = null;
public ContainerForRegisteredWebhooks webhookRegistrationResult(List<RegisteredWebhook> webhookRegistrationResult) {
this.webhookRegistrationResult = webhookRegistrationResult;
return this;
}
public ContainerForRegisteredWebhooks addWebhookRegistrationResultItem(RegisteredWebhook webhookRegistrationResultItem) {
if (this.webhookRegistrationResult == null) {
this.webhookRegistrationResult = new ArrayList<>();
}
this.webhookRegistrationResult.add(webhookRegistrationResultItem);
return this;
}
/**
* A list of registered webhooks.
* @return webhookRegistrationResult
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A list of registered webhooks.")
@JsonProperty(JSON_PROPERTY_WEBHOOK_REGISTRATION_RESULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<RegisteredWebhook> getWebhookRegistrationResult() {
return webhookRegistrationResult;
}
public void setWebhookRegistrationResult(List<RegisteredWebhook> webhookRegistrationResult) {
this.webhookRegistrationResult = webhookRegistrationResult;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ContainerForRegisteredWebhooks containerForRegisteredWebhooks = (ContainerForRegisteredWebhooks) o;
return Objects.equals(this.webhookRegistrationResult, containerForRegisteredWebhooks.webhookRegistrationResult);
}
@Override
public int hashCode() {
return Objects.hash(webhookRegistrationResult);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ContainerForRegisteredWebhooks {\n");
sb.append(" webhookRegistrationResult: ").append(toIndentedString(webhookRegistrationResult)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
|
[
"ronald@rm-mba.local"
] |
ronald@rm-mba.local
|
8297f115791bec08dee79fd792e4688359a9e649
|
c885ef92397be9d54b87741f01557f61d3f794f3
|
/results/Gson-16/com.google.gson.internal.$Gson$Types/BBC-F0-opt-70/tests/27/com/google/gson/internal/$Gson$Types_ESTest.java
|
73b81795572fde6821b337b02ebac12898581ef6
|
[
"CC-BY-4.0",
"MIT"
] |
permissive
|
pderakhshanfar/EMSE-BBC-experiment
|
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
|
fea1a92c2e7ba7080b8529e2052259c9b697bbda
|
refs/heads/main
| 2022-11-25T00:39:58.983828
| 2022-04-12T16:04:26
| 2022-04-12T16:04:26
| 309,335,889
| 0
| 1
| null | 2021-11-05T11:18:43
| 2020-11-02T10:30:38
| null |
UTF-8
|
Java
| false
| false
| 637
|
java
|
/*
* This file was automatically generated by EvoSuite
* Sat Oct 23 04:58:28 GMT 2021
*/
package com.google.gson.internal;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true)
public class $Gson$Types_ESTest extends $Gson$Types_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pderakhshanfar@serg2.ewi.tudelft.nl"
] |
pderakhshanfar@serg2.ewi.tudelft.nl
|
2ec50bf8350840b39d47e66b549e57272103a60b
|
6baa09045c69b0231c35c22b06cdf69a8ce227d6
|
/modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201603/cm/AdCustomizerFeedServiceInterfaceget.java
|
b1c9212cdf0f2708cf551c741fe13f6f2dbea6d2
|
[
"Apache-2.0"
] |
permissive
|
remotejob/googleads-java-lib
|
f603b47117522104f7df2a72d2c96ae8c1ea011d
|
a330df0799de8d8de0dcdddf4c317d6b0cd2fe10
|
refs/heads/master
| 2020-12-11T01:36:29.506854
| 2016-07-28T22:13:24
| 2016-07-28T22:13:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,920
|
java
|
package com.google.api.ads.adwords.jaxws.v201603.cm;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
*
* Returns a list of AdCustomizerFeeds that meet the selector criteria.
*
* @param selector Determines which AdCustomizerFeeds to return. If empty, all AdCustomizerFeeds
* are returned.
* @return The list of AdCustomizerFeeds.
* @throws ApiException Indicates a problem with the request.
*
*
* <p>Java class for get element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="get">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="selector" type="{https://adwords.google.com/api/adwords/cm/v201603}Selector" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"selector"
})
@XmlRootElement(name = "get")
public class AdCustomizerFeedServiceInterfaceget {
protected Selector selector;
/**
* Gets the value of the selector property.
*
* @return
* possible object is
* {@link Selector }
*
*/
public Selector getSelector() {
return selector;
}
/**
* Sets the value of the selector property.
*
* @param value
* allowed object is
* {@link Selector }
*
*/
public void setSelector(Selector value) {
this.selector = value;
}
}
|
[
"jradcliff@users.noreply.github.com"
] |
jradcliff@users.noreply.github.com
|
43eed3bf2da6fc703657d19521c9fca9d6a75460
|
02ea43c90973437de5e9776b48e0ecbd5e54d790
|
/src/DecoratorPattern/Decorator.java
|
df5be83e6e0a5ab71e28e008f78874928be625bb
|
[] |
no_license
|
glumes/DesignPattern
|
bdc68ed2620e79dc0c63611ad65456a5e8a09644
|
5af79a2aa92b3fac247aa80db2a7290b8ed965c5
|
refs/heads/master
| 2021-01-12T12:16:20.277141
| 2017-01-18T03:04:07
| 2017-01-18T03:04:07
| 72,402,820
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 334
|
java
|
package DecoratorPattern;
/**
* Created by zhaoying on 2016/12/16.
*/
public abstract class Decorator implements Component{
private Component mComponent ;
public Decorator(Component mComponent) {
this.mComponent = mComponent;
}
@Override
public void operate() {
mComponent.operate();
}
}
|
[
"zhaoying9402@gmail.com"
] |
zhaoying9402@gmail.com
|
ef9f5dce3bb64710005b491a61755e6165d444f5
|
814169b683b88f1b7498f1edf530a8d1bec2971f
|
/mall-search/src/main/java/com/bootx/mall/config/ElasticSearchConfig.java
|
3352bddef2a99219af39d31d557d5bf2b42c034b
|
[] |
no_license
|
springwindyike/mall-auth
|
fe7f216c7241d8fd9247344e40503f7bc79fe494
|
3995d258955ecc3efbccbb22ef4204d148ec3206
|
refs/heads/master
| 2022-10-20T15:12:19.329363
| 2020-07-05T13:04:29
| 2020-07-05T13:04:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 833
|
java
|
package com.bootx.mall.config;
import org.apache.http.HttpHost;
import org.elasticsearch.client.RequestOptions;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class ElasticSearchConfig {
public static final RequestOptions COMMON_OPTIONS;
static {
RequestOptions.Builder builder = RequestOptions.DEFAULT.toBuilder();
COMMON_OPTIONS = builder.build();
}
@Bean
public RestHighLevelClient restHighLevelClient(){
RestHighLevelClient client = new RestHighLevelClient(
RestClient.builder(
new HttpHost("localhost", 9200, "http")));
return client;
}
}
|
[
"a12345678"
] |
a12345678
|
9cd4378f909362bf2d78c2443bbfeeefb113a02b
|
896cca57024190fc3fbb62f2bd0188fff24b24c8
|
/2.7.x/choicemaker-cm/choicemaker-modeling/com.choicemaker.cm.matching.en.us.train/src/main/java/com/choicemaker/cm/matching/en/us/train/name/NameGrammarTrainer.java
|
27f0ffbdb61b4227ff349e8e9fe7f2e56138e195
|
[] |
no_license
|
fgregg/cm
|
0d4f50f92fde2a0bed465f2bec8eb7f2fad8362c
|
c0ab489285938f14cdf0a6ed64bbda9ac4d04532
|
refs/heads/master
| 2021-01-10T11:27:00.663407
| 2015-08-11T19:35:00
| 2015-08-11T19:35:00
| 55,807,163
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,937
|
java
|
/*
* Copyright (c) 2001, 2009 ChoiceMaker Technologies, Inc. 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:
* ChoiceMaker Technologies, Inc. - initial API and implementation
*/
package com.choicemaker.cm.matching.en.us.train.name;
import java.io.FileInputStream;
import com.choicemaker.cm.core.util.CommandLineArguments;
import com.choicemaker.cm.matching.cfg.ContextFreeGrammar;
import com.choicemaker.cm.matching.cfg.SymbolFactory;
import com.choicemaker.cm.matching.cfg.train.GrammarTrainer;
import com.choicemaker.cm.matching.cfg.train.ParsedDataReader;
import com.choicemaker.cm.matching.cfg.xmlconf.ContextFreeGrammarXmlConf;
import com.choicemaker.cm.matching.en.us.name.NameSymbolFactory;
import com.choicemaker.e2.CMPlatformRunnable;
/**
* .
*
* @author Adam Winkel
* @version $Revision: 1.1.1.1 $ $Date: 2009/05/03 16:03:04 $
*/
public class NameGrammarTrainer implements CMPlatformRunnable {
public Object run(Object argObj) throws Exception {
String[] args = CommandLineArguments.eclipseArgsMapper(argObj);
if (args.length < 2) {
System.err.println("Need at least two arguments: grammar file and parsed data file(s)");
System.exit(1);
}
String grammarFileName = args[0];
SymbolFactory factory = new NameSymbolFactory();
ContextFreeGrammar grammar = ContextFreeGrammarXmlConf.readFromFile(grammarFileName, factory);
GrammarTrainer trainer = new GrammarTrainer(grammar);
for (int i = 1; i < args.length; i++) {
FileInputStream is = new FileInputStream(args[i]);
ParsedDataReader rdr = new ParsedDataReader(is, factory, grammar);
trainer.readParseTrees(rdr);
is.close();
}
trainer.writeAll();
return null;
}
}
|
[
"rick@rphall.com"
] |
rick@rphall.com
|
a9809ed622a07eeb0678a1d8fa75046171920c6b
|
c97dffb0478522877f1a1c188a823296c75e1b87
|
/self_spring_read_demo/src/main/java/com/learn/springread/springevent/UserRegisterEvent.java
|
41ab06fefe96651da10d6291c4abf0e229d0656e
|
[] |
no_license
|
zoro000/2021_learn_project
|
1e728a30b381dc3af104631d90e5466abc665962
|
464c58e19fddaa1860880f3c0cfc3e8086fd9b4d
|
refs/heads/master
| 2023-07-14T00:55:52.997305
| 2021-08-21T13:18:55
| 2021-08-21T13:18:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 509
|
java
|
package com.learn.springread.springevent;
import org.springframework.context.ApplicationEvent;
/**
* autor:liman
* createtime:2021/6/6
* comment:
*/
public class UserRegisterEvent extends ApplicationEvent {
/**
* Create a new {@code ApplicationEvent}.
*
* @param source the object on which the event initially occurred or with
* which the event is associated (never {@code null})
*/
public UserRegisterEvent(Object source) {
super(source);
}
}
|
[
"657271181@qq.com"
] |
657271181@qq.com
|
35383cad7f684d9b5e3150c610899e939159d5ef
|
69072dc8587d053542783dcf594118a07ae97f4a
|
/ancun-data-subscribe-mybatis/src/main/java/com/ancun/common/persistence/mapper/dx/EntUserInfoMapper.java
|
cd745ed7fa7ad5fd25a5329df1589b4888c06af8
|
[] |
no_license
|
hejunling/boss-dts
|
f5dac435796b95ada7e965b60b586eb9a45f14b9
|
fa4f6caef355805938412e503d15f1f10cda4efd
|
refs/heads/master
| 2022-12-20T12:35:41.683426
| 2019-05-23T12:21:15
| 2019-05-23T12:21:15
| 94,403,799
| 1
| 2
| null | 2022-12-16T03:42:19
| 2017-06-15T05:40:09
|
Java
|
UTF-8
|
Java
| false
| false
| 1,101
|
java
|
package com.ancun.common.persistence.mapper.dx;
import com.ancun.common.persistence.model.dx.EntUserInfo;
import com.ancun.common.persistence.model.master.BizTimerConfig;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
public interface EntUserInfoMapper extends Mapper<EntUserInfo> {
/**
* 查询企业用户,与汇工作兼容
*
* @param userNo
* @param userTel
* @param rpCode
* @return
*/
List<EntUserInfo> selectEntUserInfos(@Param("userNo") String userNo, @Param("userTel") String userTel, @Param("rpCode") String rpCode);
/**
* 更新,退订时间清空
*
* @param entUserInfo
*/
void updateSelective(EntUserInfo entUserInfo);
/**
* 查询 所有rpcode
*
* @param config
* @return
*/
List<String> selectAllEntRpcodes(BizTimerConfig config);
/**
* 查询 所有数量
*
* @param config
* @return
*/
int selectAllEntCount(BizTimerConfig config);
}
|
[
"hechuan@ancun.com"
] |
hechuan@ancun.com
|
ce0b5ecc20203703a180bbf45dcd33e6f8bd24a9
|
f18ecaea4fded21e5c6be80289c87d99838b65a7
|
/os-pm-main/src/main/java/com/jukusoft/os/pm/main/Application.java
|
2bf75caf902e7d3f0462b450eaa1e55fe43c06e5
|
[
"Apache-2.0"
] |
permissive
|
JuKu/os-pm-tool
|
30b12b64b0e24787a844c49660f7f1875e45e58f
|
689f7cd1c898648493b4f50876b1b93a87f43551
|
refs/heads/master
| 2020-06-20T07:31:44.981546
| 2019-07-15T18:09:35
| 2019-07-15T18:09:35
| 197,044,081
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 477
|
java
|
package com.jukusoft.os.pm.main;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
@SpringBootApplication(scanBasePackages = "com.jukusoft.os.pm")
public class Application extends SpringBootServletInitializer {
public static void main (String[] args) {
SpringApplication.run(Application.class, args);
}
}
|
[
"kuenzel.justin@t-online.de"
] |
kuenzel.justin@t-online.de
|
9b7011c9f7f1f720d6469d4f0870a32d72a6cd6b
|
a85740bfb7def38be54ed1425b7a4a06f9bdcf6a
|
/mybatis-generator-systests-ibatis2-java5/target/generated-sources/mybatis-generator/mbg/test/ib2j5/generated/hierarchical/dao/PkfieldsblobsDAO.java
|
eca0df3fb1c094b3d9e24ee1a9217503ef9247d0
|
[
"Apache-2.0"
] |
permissive
|
tianbohao1010/generator-mybatis-generator-1.3.2
|
148841025fa9d52bcda4d529227092892ff2ee89
|
f917b1ae550850b76e7ac0c967da60dc87fc6eb5
|
refs/heads/master
| 2020-03-19T07:18:35.135680
| 2018-06-05T01:41:21
| 2018-06-05T01:41:21
| 136,103,685
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,081
|
java
|
package mbg.test.ib2j5.generated.hierarchical.dao;
import java.util.List;
import mbg.test.ib2j5.generated.hierarchical.model.Pkfieldsblobs;
import mbg.test.ib2j5.generated.hierarchical.model.PkfieldsblobsExample;
import mbg.test.ib2j5.generated.hierarchical.model.PkfieldsblobsKey;
import mbg.test.ib2j5.generated.hierarchical.model.PkfieldsblobsWithBLOBs;
public interface PkfieldsblobsDAO {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table PKFIELDSBLOBS
*
* @mbggenerated Thu Dec 21 14:43:57 CST 2017
*/
int countByExample(PkfieldsblobsExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table PKFIELDSBLOBS
*
* @mbggenerated Thu Dec 21 14:43:57 CST 2017
*/
int deleteByExample(PkfieldsblobsExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table PKFIELDSBLOBS
*
* @mbggenerated Thu Dec 21 14:43:57 CST 2017
*/
int deleteByPrimaryKey(PkfieldsblobsKey _key);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table PKFIELDSBLOBS
*
* @mbggenerated Thu Dec 21 14:43:57 CST 2017
*/
void insert(PkfieldsblobsWithBLOBs record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table PKFIELDSBLOBS
*
* @mbggenerated Thu Dec 21 14:43:57 CST 2017
*/
void insertSelective(PkfieldsblobsWithBLOBs record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table PKFIELDSBLOBS
*
* @mbggenerated Thu Dec 21 14:43:57 CST 2017
*/
List<PkfieldsblobsWithBLOBs> selectByExampleWithBLOBs(PkfieldsblobsExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table PKFIELDSBLOBS
*
* @mbggenerated Thu Dec 21 14:43:57 CST 2017
*/
List<Pkfieldsblobs> selectByExampleWithoutBLOBs(PkfieldsblobsExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table PKFIELDSBLOBS
*
* @mbggenerated Thu Dec 21 14:43:57 CST 2017
*/
PkfieldsblobsWithBLOBs selectByPrimaryKey(PkfieldsblobsKey _key);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table PKFIELDSBLOBS
*
* @mbggenerated Thu Dec 21 14:43:57 CST 2017
*/
int updateByExampleSelective(PkfieldsblobsWithBLOBs record, PkfieldsblobsExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table PKFIELDSBLOBS
*
* @mbggenerated Thu Dec 21 14:43:57 CST 2017
*/
int updateByExample(PkfieldsblobsWithBLOBs record, PkfieldsblobsExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table PKFIELDSBLOBS
*
* @mbggenerated Thu Dec 21 14:43:57 CST 2017
*/
int updateByExample(Pkfieldsblobs record, PkfieldsblobsExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table PKFIELDSBLOBS
*
* @mbggenerated Thu Dec 21 14:43:57 CST 2017
*/
int updateByPrimaryKeySelective(PkfieldsblobsWithBLOBs record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table PKFIELDSBLOBS
*
* @mbggenerated Thu Dec 21 14:43:57 CST 2017
*/
int updateByPrimaryKey(PkfieldsblobsWithBLOBs record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table PKFIELDSBLOBS
*
* @mbggenerated Thu Dec 21 14:43:57 CST 2017
*/
int updateByPrimaryKey(Pkfieldsblobs record);
}
|
[
"unicode1027@163.com"
] |
unicode1027@163.com
|
e376c8fde483898bda14e4bd992050fb17c0d6f4
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/JetBrains--intellij-community/d79b719bc730f529a522c83fe8bcb0e243faa76d/after/PyParameterListImpl.java
|
94e7d9dcaf048befc050978bc544725fbc07122d
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003
| 2018-11-30T13:00:57
| 2018-11-30T13:00:57
| 87,353,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,085
|
java
|
package com.jetbrains.python.psi.impl;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.jetbrains.python.PyElementTypes;
import com.jetbrains.python.psi.*;
import com.jetbrains.python.psi.stubs.PyParameterListStub;
import com.jetbrains.python.toolbox.ArrayIterable;
import org.jetbrains.annotations.NotNull;
/**
* @author yole
*/
public class PyParameterListImpl extends PyBaseElementImpl<PyParameterListStub> implements PyParameterList {
public PyParameterListImpl(ASTNode astNode) {
super(astNode);
}
public PyParameterListImpl(final PyParameterListStub stub) {
super(stub, PyElementTypes.PARAMETER_LIST);
}
@Override
protected void acceptPyVisitor(PyElementVisitor pyVisitor) {
pyVisitor.visitPyParameterList(this);
}
public PyParameter[] getParameters() {
return getStubOrPsiChildren(PyElementTypes.PARAMETERS, new PyParameter[0]);
}
public void addParameter(final PyNamedParameter param) {
PsiElement paren = getLastChild();
if (paren != null && ")".equals(paren.getText())) {
PyUtil.ensureWritable(this);
ASTNode beforeWhat = paren.getNode(); // the closing paren will be this
PyParameter[] params = getParameters();
PyUtil.addListNode(this, param, beforeWhat, true, params.length == 0);
}
}
public boolean hasPositionalContainer() {
for (PyParameter parameter: getParameters()) {
if (parameter instanceof PyNamedParameter && ((PyNamedParameter) parameter).isPositionalContainer()) {
return true;
}
}
return false;
}
public boolean hasKeywordContainer() {
for (PyParameter parameter: getParameters()) {
if (parameter instanceof PyNamedParameter && ((PyNamedParameter) parameter).isKeywordContainer()) {
return true;
}
}
return false;
}
public boolean isCompatibleTo(@NotNull PyParameterList another) {
PyParameter[] parameters = getParameters();
final PyParameter[] anotherParameters = another.getParameters();
final int parametersLength = parameters.length;
final int anotherParametersLength = anotherParameters.length;
if (parametersLength == anotherParametersLength) {
if (hasPositionalContainer() == another.hasPositionalContainer() && hasKeywordContainer() == another.hasKeywordContainer()) {
return true;
}
}
int i = 0;
int j = 0;
while (i < parametersLength && j < anotherParametersLength) {
PyParameter parameter = parameters[i];
PyParameter anotherParameter = anotherParameters[j];
if (parameter instanceof PyNamedParameter && anotherParameter instanceof PyNamedParameter) {
PyNamedParameter namedParameter = (PyNamedParameter)parameter;
PyNamedParameter anotherNamedParameter = (PyNamedParameter)anotherParameter;
if (namedParameter.isPositionalContainer()) {
while (j < anotherParametersLength
&& !anotherNamedParameter.isPositionalContainer()
&& !anotherNamedParameter.isKeywordContainer()) {
anotherParameter = anotherParameters[j++];
anotherNamedParameter = (PyNamedParameter) anotherParameter;
}
++i;
continue;
}
if (anotherNamedParameter.isPositionalContainer()) {
while (i < parametersLength
&& !namedParameter.isPositionalContainer()
&& !namedParameter.isKeywordContainer()) {
parameter = parameters[i++];
namedParameter = (PyNamedParameter) parameter;
}
++j;
continue;
}
if (namedParameter.isKeywordContainer() || anotherNamedParameter.isKeywordContainer()) {
break;
}
}
// both are simple parameters
++i;
++j;
}
if (i < parametersLength) {
if (parameters[i] instanceof PyNamedParameter) {
if (((PyNamedParameter) parameters[i]).isKeywordContainer()) {
++i;
}
}
}
if (j < anotherParametersLength) {
if (anotherParameters[j] instanceof PyNamedParameter) {
if (((PyNamedParameter) anotherParameters[j]).isKeywordContainer()) {
++j;
}
}
}
return (i >= parametersLength) && (j >= anotherParametersLength);
//
//if (weHaveStarred && parameters.length - 1 <= anotherParameters.length) {
// if (weHaveDoubleStarred == anotherHasDoubleStarred) {
// return true;
// }
//}
//if ((anotherHasDoubleStarred && parameters.length == anotherParameters.length - 1)
// || (weHaveDoubleStarred && parameters.length == anotherParameters.length + 1)) {
// return true;
//}
//return false;
}
@NotNull
public Iterable<PyElement> iterateNames() {
return new ArrayIterable<PyElement>(getParameters());
}
public PyElement getElementNamed(final String the_name) {
return IterHelper.findName(iterateNames(), the_name);
}
public boolean mustResolveOutside() {
return false; // we don't exactly have children to resolve, but if we did...
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
0b603b413a0c3cc64c376f74ea6bab1c9c2cb01a
|
cd63684aed7c31493c5c14bc7cef0d0508048dac
|
/server/src/main/java/com/thoughtworks/go/server/service/JobResolverService.java
|
d48029f3d9ba6170189613befd0297fe5b5f22d3
|
[
"MIT",
"Apache-2.0"
] |
permissive
|
zzz222zzz/gocd
|
cb1765d16840d96c991b8a9308c01cb37eb3ea7c
|
280175df42d13e6cd94386a7af6fdac966b2e875
|
refs/heads/master
| 2020-05-09T20:25:48.079858
| 2019-04-15T02:53:33
| 2019-04-15T02:53:33
| 181,407,372
| 1
| 0
|
Apache-2.0
| 2019-04-15T03:41:28
| 2019-04-15T03:41:26
| null |
UTF-8
|
Java
| false
| false
| 1,445
|
java
|
/*************************GO-LICENSE-START*********************************
* Copyright 2014 ThoughtWorks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*************************GO-LICENSE-END***********************************/
package com.thoughtworks.go.server.service;
import com.thoughtworks.go.domain.JobIdentifier;
import com.thoughtworks.go.server.dao.JobInstanceDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @understands resolving actual job in case of copy-for-rerun
*/
@Service
public class JobResolverService {
private final JobInstanceDao jobDao;
@Autowired
public JobResolverService(JobInstanceDao jobDao) {
this.jobDao = jobDao;
}
public JobIdentifier actualJobIdentifier(JobIdentifier oldId) {
return jobDao.findOriginalJobIdentifier(oldId.getStageIdentifier(), oldId.getBuildName());
}
}
|
[
"godev@thoughtworks.com"
] |
godev@thoughtworks.com
|
51777346195e20431019a51a4495afe94aa5e575
|
2fbd01a415130b738726b00817f236df46e0c52b
|
/MDPnPBloodPump/src/main/java/rosetta/MDC_DIM_MICRO_G_PER_M_SQ_PER_MIN.java
|
c7d0bb096e755560ea35335ae219941de39442e4
|
[] |
no_license
|
DylanBagshaw/CPM
|
e60c34716e6fcbccaab831ba58368485d472492f
|
c00ad41f46dae40800fa97de4279876c8861fbba
|
refs/heads/master
| 2020-03-11T20:05:47.618502
| 2018-09-13T16:08:35
| 2018-09-13T16:08:35
| 130,227,287
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 450
|
java
|
/*
WARNING: THIS FILE IS AUTO-GENERATED. DO NOT MODIFY.
This file was generated from .idl using "rtiddsgen".
The rtiddsgen tool is part of the RTI Connext distribution.
For more information, type 'rtiddsgen -help' at a command shell
or consult the RTI Connext manual.
*/
package rosetta;
public class MDC_DIM_MICRO_G_PER_M_SQ_PER_MIN {
public static final String VALUE = "MDC_DIM_MICRO_G_PER_M_SQ_PER_MIN";
}
|
[
"dmbagshaw@yahoo.com"
] |
dmbagshaw@yahoo.com
|
86ae2c831384508cd677041ffee71e97dde8b72d
|
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
|
/eclipsejdt_cluster/15815/tar_0.java
|
0f1bf48b2a34124dbe91afe11e29396705792314
|
[] |
no_license
|
martinezmatias/GenPat-data-C3
|
63cfe27efee2946831139747e6c20cf952f1d6f6
|
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
|
refs/heads/master
| 2022-04-25T17:59:03.905613
| 2020-04-15T14:41:34
| 2020-04-15T14:41:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,406
|
java
|
package org.eclipse.jdt.internal.core.search.indexing;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.internal.compiler.*;
import org.eclipse.jdt.internal.core.index.*;
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
import org.eclipse.jdt.internal.compiler.parser.InvalidInputException;
import org.eclipse.jdt.internal.compiler.parser.Scanner;
import org.eclipse.jdt.internal.compiler.parser.TerminalSymbols;
import org.eclipse.jdt.internal.compiler.problem.*;
import org.eclipse.jdt.internal.core.jdom.CompilationUnit;
import java.io.*;
import java.util.*;
/**
* A SourceIndexer indexes java files using a java parser. The following items are indexed:
* Declarations of:
* - Classes<br>
* - Interfaces; <br>
* - Methods;<br>
* - Fields;<br>
* References to:
* - Methods (with number of arguments); <br>
* - Fields;<br>
* - Types;<br>
* - Constructors.
*/
public class SourceIndexer extends AbstractIndexer {
public static final String[] FILE_TYPES= new String[] {"java"}; //$NON-NLS-1$
protected DefaultProblemFactory problemFactory= new DefaultProblemFactory(Locale.getDefault());
/**
* Returns the file types the <code>IIndexer</code> handles.
*/
public String[] getFileTypes(){
return FILE_TYPES;
}
protected void indexFile(IDocument document) throws IOException {
// Add the name of the file to the index
output.addDocument(document);
// Create a new Parser
SourceIndexerRequestor requestor = new SourceIndexerRequestor(this, document);
SourceElementParser parser = new SourceElementParser(requestor, problemFactory, new CompilerOptions(JavaCore.getOptions()), true); // index local declarations
// Launch the parser
char[] source = null;
char[] name = null;
try {
source = document.getCharContent();
name = document.getName().toCharArray();
} catch(Exception e){
}
if (source == null || name == null) return; // could not retrieve document info (e.g. resource was discarded)
CompilationUnit compilationUnit = new CompilationUnit(source, name);
try {
parser.parseCompilationUnit(compilationUnit, true);
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* Sets the document types the <code>IIndexer</code> handles.
*/
public void setFileTypes(String[] fileTypes){}
}
|
[
"375833274@qq.com"
] |
375833274@qq.com
|
e979dd55c61731334feea623ba6083e56a33ec03
|
98f43214d6056c6687673a84f6aee4c0898c9f88
|
/trunk/f1-distribuito/src/log/java/Driver.java
|
5816204e4d714c4a43a6f62ed37966acc3599294
|
[] |
no_license
|
BGCX067/f1sim-scd-svn-to-git
|
cfb226c467c4bb93f6d27b7fce0c6bafa62366f0
|
07adf304b9ed2972be6b4fe0d25aaa4e51ab8123
|
refs/heads/master
| 2016-09-01T08:52:31.912713
| 2015-12-28T14:15:56
| 2015-12-28T14:15:56
| 48,833,928
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,951
|
java
|
import java.util.Date;
/**
*
* @author daniele
*/
public class Driver implements Comparable{
private String name;
private short id;
private String team;
private short position;
private short currentLap;
private int currentSegment;
private float maxSpeed;
private float Speed = 0;
private long lastEndLap = 0;
private long bestLap = Integer.MAX_VALUE;
private long lastLap = 0;
/* Possible states:<br>
* 0: running<br>
* 1: at box<br>
* 2: race finished<br>
* -1: out<br>
* -2: not started yet<br>
*/
private short state = -2;
private long difference = 0;
private long totalTime = 0;
public Driver(String name, short id, String team, short position, short currentSegment) {
this.name = name;
this.id = id;
this.team = team;
this.position = position;
this.currentSegment = currentSegment;
this.currentLap = 0;
this.maxSpeed = 0;
}
public void setCurrentSegment(int Segment) {
currentSegment = Segment;
}
public void updateMaxSpeed(float Speed) {
this.Speed = Speed;
if(Speed > maxSpeed){
maxSpeed = Speed;
}
}
void setStartTime(long startTime){
this.lastEndLap = startTime;
}
public void setLastEndLap(long lastEndLap) {
if(this.lastEndLap != 0){
lastLap = lastEndLap - this.lastEndLap;
totalTime = totalTime + lastLap;
if(lastLap < bestLap){
bestLap = lastLap;
}
}
this.lastEndLap = lastEndLap;
}
public void setCurrentLap(short currentLap) {
this.currentLap = currentLap;
}
public void setPosition(short position) {
this.position = position;
}
public short getCurrentLap() {
return currentLap;
}
public long getBestLap() {
return bestLap;
}
public long getCurrentSegment() {
return currentSegment;
}
public short getId() {
return id;
}
/** Possible states:<br>
* 0: running<br>
* 1: at box<br>
* 2: race finished<br>
* -1: out<br>
* -2: not started yet<br>
*
* @return current state
*/
public short getState() {
return state;
}
public float getTopSpeed() {
return Math.round(maxSpeed*100)/100;
}
public String getName() {
return name;
}
public short getPosition() {
return position;
}
public String getTeam() {
return team;
}
long getDifference() {
return difference;
}
long getLastLap() {
return lastLap;
}
long getTotalTime() {
return totalTime;
}
public float getSpeed() {
return Math.round(Speed*100)/100;
}
public long getLastEndLap() {
return lastEndLap;
}
/** Possible states:<br>
* 0: running<br>
* 1: at box<br>
* 2: race finished<br>
* -1: out<br>
* -2: not started yet<br>
*
*/
public void setState(short s) {
state = s;
//out
if(state == -1){
this.Speed = (float) 0.0;
totalTime = new Date().getTime() - lastEndLap + totalTime;
}
//race finished
if(state == 2){
updateMaxSpeed((float) 0.0);
}
}
void updateDifference(long firstDriversTime) {
this.difference = this.lastEndLap - firstDriversTime;
}
boolean precede(Driver other){
if(currentLap > other.currentLap
|| (currentLap == other.currentLap && currentSegment > other.currentSegment)){
return true;
}
return false;
}
public int compareTo(Object o) {
if(this.precede((Driver) o)){
return -1;
}
else {
return 1;
}
}
}
|
[
"you@example.com"
] |
you@example.com
|
0f4300156a3037e5ab3310857a0034524dfec1d1
|
40cd4da5514eb920e6a6889e82590e48720c3d38
|
/desktop/applis/apps/bean/bean_games/pokemonbean/src/main/java/aiki/beans/abilities/AbilityBeanMultEvtRateSecEffectOwnerGet.java
|
a089a2e8b5c9aba259618b7c8369e4fde90ae017
|
[] |
no_license
|
Cardman/projects
|
02704237e81868f8cb614abb37468cebb4ef4b31
|
23a9477dd736795c3af10bccccb3cdfa10c8123c
|
refs/heads/master
| 2023-08-17T11:27:41.999350
| 2023-08-15T07:09:28
| 2023-08-15T07:09:28
| 34,724,613
| 4
| 0
| null | 2020-10-13T08:08:38
| 2015-04-28T10:39:03
|
Java
|
UTF-8
|
Java
| false
| false
| 409
|
java
|
package aiki.beans.abilities;
import aiki.beans.PokemonBeanStruct;
import code.bean.nat.*;
import code.bean.nat.RtSt;
import code.bean.nat.*;
public class AbilityBeanMultEvtRateSecEffectOwnerGet implements NatCaller{
@Override
public NaSt re(NaSt _instance, NaSt[] _args){
return new RtSt(( (AbilityBean) ((PokemonBeanStruct)_instance).getInstance()).getMultEvtRateSecEffectOwner());
}
}
|
[
"f.desrochettes@gmail.com"
] |
f.desrochettes@gmail.com
|
28c8162acb6e7359a82e2d854464873eced804f1
|
d7c5121237c705b5847e374974b39f47fae13e10
|
/airspan.netspan/src/main/java/Netspan/NBI_17_5/Inventory/NodeResetForcedColdFactoryResponse.java
|
5b3085dcccca0f19b883c2161c6d5db77582dcfa
|
[] |
no_license
|
AirspanNetworks/SWITModules
|
8ae768e0b864fa57dcb17168d015f6585d4455aa
|
7089a4b6456621a3abd601cc4592d4b52a948b57
|
refs/heads/master
| 2022-11-24T11:20:29.041478
| 2020-08-09T07:20:03
| 2020-08-09T07:20:03
| 184,545,627
| 1
| 0
| null | 2022-11-16T12:35:12
| 2019-05-02T08:21:55
|
Java
|
UTF-8
|
Java
| false
| false
| 1,926
|
java
|
package Netspan.NBI_17_5.Inventory;
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;
/**
* <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="NodeResetForcedColdFactoryResult" type="{http://Airspan.Netspan.WebServices}NodeActionResult" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"nodeResetForcedColdFactoryResult"
})
@XmlRootElement(name = "NodeResetForcedColdFactoryResponse")
public class NodeResetForcedColdFactoryResponse {
@XmlElement(name = "NodeResetForcedColdFactoryResult")
protected NodeActionResult nodeResetForcedColdFactoryResult;
/**
* Gets the value of the nodeResetForcedColdFactoryResult property.
*
* @return
* possible object is
* {@link NodeActionResult }
*
*/
public NodeActionResult getNodeResetForcedColdFactoryResult() {
return nodeResetForcedColdFactoryResult;
}
/**
* Sets the value of the nodeResetForcedColdFactoryResult property.
*
* @param value
* allowed object is
* {@link NodeActionResult }
*
*/
public void setNodeResetForcedColdFactoryResult(NodeActionResult value) {
this.nodeResetForcedColdFactoryResult = value;
}
}
|
[
"ggrunwald@airspan.com"
] |
ggrunwald@airspan.com
|
1945834c8dc5374833e469a5f484077aa3f82c2b
|
2935dbf542f4798e6046d460f093bd83a4579deb
|
/src/net/ion/radon/cload/problems/CompilationProblem.java
|
570137cb732b70a8298b9121a329d8d672a0c111
|
[] |
no_license
|
bleujin/aradon311
|
2a3d8c8d89956a34d2ce0ca322d14da0dde2ac0b
|
0d94113b398d5e70379068ef533479f09d7c1778
|
refs/heads/master
| 2020-04-12T03:09:56.589488
| 2017-02-17T05:41:02
| 2017-02-17T05:41:02
| 22,242,059
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,882
|
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 net.ion.radon.cload.problems;
/**
* An abstract definition of a compilation problem
*
* @author tcurdt
*/
public interface CompilationProblem {
/**
* is the problem an error and compilation cannot continue
* or just a warning and compilation can proceed
*
* @return true if the problem is an error
*/
boolean isError();
/**
* name of the file where the problem occurred
*
* @return name of the file where the problem occurred
*/
String getFileName();
/**
* position of where the problem starts in the source code
*
* @return position of where the problem starts in the source code
*/
int getStartLine();
int getStartColumn();
/**
* position of where the problem stops in the source code
*
* @return position of where the problem stops in the source code
*/
int getEndLine();
int getEndColumn();
/**
* the description of the problem
*
* @return the description of the problem
*/
String getMessage();
}
|
[
"bleujin@gmail.com"
] |
bleujin@gmail.com
|
5ea3826b40b35ab691be6bf7037e3133a93741a6
|
32b72e1dc8b6ee1be2e80bb70a03a021c83db550
|
/ast_results/zxing_zxing/core/src/main/java/com/google/zxing/ResultPoint.java
|
8b26fd132c620eac19341926de7a40c6b48fddca
|
[] |
no_license
|
cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning
|
d90c41a17e88fcd99d543124eeb6e93f9133cb4a
|
0564143d92f8024ff5fa6b659c2baebf827582b1
|
refs/heads/master
| 2020-07-13T13:53:40.297493
| 2019-01-11T11:51:18
| 2019-01-11T11:51:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,521
|
java
|
// isComment
package com.google.zxing;
import com.google.zxing.common.detector.MathUtils;
/**
* isComment
*/
public class isClassOrIsInterface {
private final float isVariable;
private final float isVariable;
public isConstructor(float isParameter, float isParameter) {
this.isFieldAccessExpr = isNameExpr;
this.isFieldAccessExpr = isNameExpr;
}
public final float isMethod() {
return isNameExpr;
}
public final float isMethod() {
return isNameExpr;
}
@Override
public final boolean isMethod(Object isParameter) {
if (isNameExpr instanceof ResultPoint) {
ResultPoint isVariable = (ResultPoint) isNameExpr;
return isNameExpr == isNameExpr.isFieldAccessExpr && isNameExpr == isNameExpr.isFieldAccessExpr;
}
return true;
}
@Override
public final int isMethod() {
return isIntegerConstant * isNameExpr.isMethod(isNameExpr) + isNameExpr.isMethod(isNameExpr);
}
@Override
public final String isMethod() {
return "isStringConstant" + isNameExpr + 'isStringConstant' + isNameExpr + 'isStringConstant';
}
/**
* isComment
*/
public static void isMethod(ResultPoint[] isParameter) {
// isComment
float isVariable = isMethod(isNameExpr[isIntegerConstant], isNameExpr[isIntegerConstant]);
float isVariable = isMethod(isNameExpr[isIntegerConstant], isNameExpr[isIntegerConstant]);
float isVariable = isMethod(isNameExpr[isIntegerConstant], isNameExpr[isIntegerConstant]);
ResultPoint isVariable;
ResultPoint isVariable;
ResultPoint isVariable;
// isComment
if (isNameExpr >= isNameExpr && isNameExpr >= isNameExpr) {
isNameExpr = isNameExpr[isIntegerConstant];
isNameExpr = isNameExpr[isIntegerConstant];
isNameExpr = isNameExpr[isIntegerConstant];
} else if (isNameExpr >= isNameExpr && isNameExpr >= isNameExpr) {
isNameExpr = isNameExpr[isIntegerConstant];
isNameExpr = isNameExpr[isIntegerConstant];
isNameExpr = isNameExpr[isIntegerConstant];
} else {
isNameExpr = isNameExpr[isIntegerConstant];
isNameExpr = isNameExpr[isIntegerConstant];
isNameExpr = isNameExpr[isIntegerConstant];
}
// isComment
if (isMethod(isNameExpr, isNameExpr, isNameExpr) < isDoubleConstant) {
ResultPoint isVariable = isNameExpr;
isNameExpr = isNameExpr;
isNameExpr = isNameExpr;
}
isNameExpr[isIntegerConstant] = isNameExpr;
isNameExpr[isIntegerConstant] = isNameExpr;
isNameExpr[isIntegerConstant] = isNameExpr;
}
/**
* isComment
*/
public static float isMethod(ResultPoint isParameter, ResultPoint isParameter) {
return isNameExpr.isMethod(isNameExpr.isFieldAccessExpr, isNameExpr.isFieldAccessExpr, isNameExpr.isFieldAccessExpr, isNameExpr.isFieldAccessExpr);
}
/**
* isComment
*/
private static float isMethod(ResultPoint isParameter, ResultPoint isParameter, ResultPoint isParameter) {
float isVariable = isNameExpr.isFieldAccessExpr;
float isVariable = isNameExpr.isFieldAccessExpr;
return ((isNameExpr.isFieldAccessExpr - isNameExpr) * (isNameExpr.isFieldAccessExpr - isNameExpr)) - ((isNameExpr.isFieldAccessExpr - isNameExpr) * (isNameExpr.isFieldAccessExpr - isNameExpr));
}
}
|
[
"matheus@melsolucoes.net"
] |
matheus@melsolucoes.net
|
eaa7e87b17f87f52b0d6586d01eacbaa36d7f4ea
|
2b675fd33d8481c88409b2dcaff55500d86efaaa
|
/infinispan/core/src/test/java/org/infinispan/distribution/DistSyncCacheStoreNotSharedNotConcurrentTest.java
|
c352a41471a892a7d05cac6929da8202e83fd6a9
|
[
"LGPL-2.0-or-later",
"Apache-2.0"
] |
permissive
|
nmldiegues/stibt
|
d3d761464aaf97e41dcc9cc1d43f0e3234a1269b
|
1ee662b7d4ed1f80e6092c22e235a3c994d1d393
|
refs/heads/master
| 2022-12-21T23:08:11.452962
| 2015-09-30T16:01:43
| 2015-09-30T16:01:43
| 42,459,902
| 0
| 2
|
Apache-2.0
| 2022-12-13T19:15:31
| 2015-09-14T16:02:52
|
Java
|
UTF-8
|
Java
| false
| false
| 1,472
|
java
|
/*
* JBoss, Home of Professional Open Source
* Copyright 2012 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @author tags. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU Lesser General Public License, v. 2.1.
* This program is distributed in the hope that it will be useful, but WITHOUT A
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License,
* v.2.1 along with this distribution; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
package org.infinispan.distribution;
import org.testng.annotations.Test;
@Test(groups = "functional", testName = "distribution.DistSyncCacheStoreNotSharedNotConcurrentTest")
public class DistSyncCacheStoreNotSharedNotConcurrentTest extends DistSyncCacheStoreNotSharedTest {
public DistSyncCacheStoreNotSharedNotConcurrentTest() {
supportConcurrentWrites = false;
}
public void testExpectedConfig() {
assert !c1.getCacheConfiguration().locking().supportsConcurrentUpdates();
}
}
|
[
"nmld@ist.utl.pt"
] |
nmld@ist.utl.pt
|
414e4af4ba9f1ebbd12515c182297e8122f719db
|
54a24781a7a09311456cb685f63f0e6d2bab4bab
|
/src/l1j/server/server/clientpackets/C_TaxRate.java
|
667c4f3f3417d70e5644e68eca75fa365982ebd1
|
[] |
no_license
|
crazyidol9/L1J-KR_3.80
|
b1c2d849a0daad99fd12166611e82b6804d2b26d
|
43c5da32e1986082be6f1205887ffc4538baa2c6
|
refs/heads/master
| 2021-08-16T13:50:50.570172
| 2017-11-20T01:20:52
| 2017-11-20T01:20:52
| 111,041,969
| 0
| 0
| null | 2017-11-17T01:24:24
| 2017-11-17T01:24:24
| null |
UHC
|
Java
| false
| false
| 2,024
|
java
|
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
package l1j.server.server.clientpackets;
import server.LineageClient;
import l1j.server.server.model.L1Clan;
import l1j.server.server.model.L1World;
import l1j.server.server.model.Instance.L1PcInstance;
import l1j.server.server.serverpackets.S_SystemMessage;
// Referenced classes of package l1j.server.server.clientpackets:
// ClientBasePacket
public class C_TaxRate extends ClientBasePacket {
private static final String C_TAX_RATE = "[C] C_TaxRate";
public C_TaxRate(byte abyte0[], LineageClient clientthread)
throws Exception {
super(abyte0);
int i = readD();
int j = readC();
L1PcInstance player = clientthread.getActiveChar();
if (player == null) {
return;
}
if (i == player.getId()) {
L1Clan clan = L1World.getInstance().getClan(player.getClanname());
if (clan != null) {
int castle_id = clan.getCastleId();
if (castle_id != 0) {
player.sendPackets(new S_SystemMessage("세금 조정을 할수없습니다."));
//L1Castle l1castle = CastleTable.getInstance()
// .getCastleTable(castle_id);
//if (j >= 10 && j <= 50) {
//l1castle.setTaxRate(j);
//CastleTable.getInstance().updateCastle(l1castle);
//}
}
}
}
}
@Override
public String getType() {
return C_TAX_RATE;
}
}
|
[
"wantedgaming.net@gmail.com"
] |
wantedgaming.net@gmail.com
|
62df924ca94683969fc47e4ed0b88fbf8e0c4f31
|
e9a6574e6ec50c39a6923ade3743da1401776f6f
|
/Training/src/Threads/ThreadsBasics/Problem.java
|
781163616db92064499dd10552d54d02936c1dad
|
[] |
no_license
|
bardas-oleksandr/Homeworks_All
|
bc1a6658c5c70aca94c5a5345ba42f00caf9de40
|
bf24021afcb4d0287469762761fdfff1d816a329
|
refs/heads/master
| 2020-04-28T06:47:36.046027
| 2019-03-11T19:34:51
| 2019-03-11T19:34:51
| 175,071,275
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 901
|
java
|
package Threads.ThreadsBasics;
import Interfaces.IProblem;
public class Problem implements IProblem {
@Override
public void solve() {
System.out.println("EXAMPLE #1");
Thread thread = Thread.currentThread();
System.out.println(thread);
thread.setName("My thread");
thread.setPriority(Thread.NORM_PRIORITY + 5);
System.out.println(thread);
try {
for (int n = 5; n > 0; n--) {
System.out.println(n);
Thread.sleep(1000);
}
}
catch (InterruptedException е){
System.out. println( "Глaвный поток исполнения прерван");
}
//Пример по синхронизации
Q q = new Q();
new Producer(q);
new Consumer(q);
System.out.println("Press Control-C to stop.");
}
}
|
[
"iskander0119@gmail.com"
] |
iskander0119@gmail.com
|
8ee78b38b275efd10b7421de8861fca5d07600f7
|
55787868f10d29caf64dede77ce5499a94c9cad8
|
/java/springbootvue/official/chapter09/rediscache/src/main/java/org/sang/rediscache/Book.java
|
86fc74e8c240abddc88f3fd71dbede6fed399ea0
|
[] |
no_license
|
JavaAIer/NotesAndCodes
|
d4d14c9809c871142af6a6eec79b61ea760d15fb
|
83ebbc0ee75d06ead6cb60ec7850989ee796ba6f
|
refs/heads/master
| 2022-12-13T02:27:01.960050
| 2019-12-24T01:57:10
| 2019-12-24T01:57:10
| 158,776,818
| 3
| 1
| null | 2022-12-09T10:11:57
| 2018-11-23T03:32:43
|
Java
|
UTF-8
|
Java
| false
| false
| 791
|
java
|
package org.sang.rediscache;
import java.io.Serializable;
public class Book implements Serializable {
private Integer id;
private String name;
private String author;
@Override
public String toString() {
return "Book{" +
"id=" + id +
", name='" + name + '\'' +
", author='" + author + '\'' +
'}';
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
}
|
[
"cuteui@qq.com"
] |
cuteui@qq.com
|
447ceb0cd3eb19b3b843f0b848bd0b4a93a5e684
|
34e55a7531813c219c191f084196ebfe0d3d0b4c
|
/level07/lesson04/task04/Solution.java
|
67eb9d27fa5b21f1cd75b52a536f4fdd584433df
|
[] |
no_license
|
bezobid/javarush
|
c5b8f09e78bc7020c00810ea4a82267ea30dab9f
|
20a8b7e90a14a406b4fa02fc1b75707297d06428
|
refs/heads/master
| 2021-01-21T06:53:33.411811
| 2017-05-17T15:16:28
| 2017-05-17T15:16:28
| 91,590,091
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,061
|
java
|
package com.javarush.test.level07.lesson04.task04;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/* Массив из чисел в обратном порядке
1. Создать массив на 10 чисел.
2. Ввести с клавиатуры 10 чисел и записать их в массив.
3. Расположить элементы массива в обратном порядке.
4. Вывести результат на экран, каждое значение выводить с новой строки.
*/
public class Solution
{
public static void main(String[] args) throws Exception
{
int[] ar = new int[10];
BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
for (int a = 0; a < ar.length; a++){
ar[a] = Integer.parseInt(read.readLine());
}
int[] ar1 = new int [10];
for (int a = 0; a < ar.length; a++){
ar1[a] = ar[ar.length - 1 - a];
System.out.println(ar1[a]);
}
}
}
|
[
"sugubo@gmail.com"
] |
sugubo@gmail.com
|
c247de930a5655c0db83046b28675364b12e212a
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-14227-10-22-NSGA_II-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/store/migration/AbstractDataMigrationManager_ESTest.java
|
f56dc66621094b643df23fe99c6df7608be571a6
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 592
|
java
|
/*
* This file was automatically generated by EvoSuite
* Sat Jan 18 19:13:13 UTC 2020
*/
package com.xpn.xwiki.store.migration;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class AbstractDataMigrationManager_ESTest extends AbstractDataMigrationManager_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
2cc24201073516e83d600d40d0e13dbc770cf10d
|
cc16a38859a219a0688ef179babd31160ff0fcd4
|
/src/shortest_word_distance_3/Solution.java
|
83456a37b644b0d700c41c630d1c81f2dd9eaafb
|
[] |
no_license
|
harperjiang/LeetCode
|
f1ab4ee796b3de1b2f0ec03ceb443908c20e68b1
|
83edba731e0070ab175e5cb42ea4ac3c0b1a90c8
|
refs/heads/master
| 2023-06-12T20:19:24.988389
| 2023-06-01T13:47:22
| 2023-06-01T13:47:22
| 94,937,003
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,789
|
java
|
package shortest_word_distance_3;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Solution {
public int shortestWordDistance(String[] wordsDict, String word1, String word2) {
int min = Integer.MAX_VALUE;
if (word1.compareTo(word2) == 0) {
int lastpos = -1;
for (int i = 0; i < wordsDict.length; i++) {
String word = wordsDict[i];
if (word.compareTo(word1) == 0) {
if (lastpos == -1) {
lastpos = i;
} else {
min = Math.min(min, i - lastpos);
lastpos = i;
}
}
}
} else {
int lastpos1 = -1;
int lastpos2 = -1;
for (int i = 0; i < wordsDict.length; i++) {
String word = wordsDict[i];
if (word.compareTo(word1) == 0) {
if (lastpos1 == -1) {
lastpos1 = i;
}
if (lastpos2 != -1) {
min = Integer.min(Math.abs(i - lastpos2), min);
}
lastpos1 = i;
}
if (word.compareTo(word2) == 0) {
if (lastpos2 == -1) {
lastpos2 = i;
}
if (lastpos1 != -1) {
min = Integer.min(Math.abs(i - lastpos1), min);
}
lastpos2 = i;
}
}
}
return min;
}
public static void main(String[] args) {
new Solution().shortestWordDistance(new String[]{"a", "c", "a", "b"}, "a", "b");
}
}
|
[
"harperjiang@msn.com"
] |
harperjiang@msn.com
|
a76368851d3ccd5d5daa260cb7a522e52d5b0558
|
75edf9c7d5d1e666135ab0d797a292f9781790b6
|
/sld_enterprise_app/release/pagecompile/ish/cartridges/sld_005fenterprise_005fapp/default_/widget/WidgetPlaceholder_jsp.java
|
aef24d4dbeae719d28f3d04adfeae0c563397641
|
[] |
no_license
|
arthurAddamsSiebert/cartridges
|
7808f484de6b06c98c59be49f816164dba21366e
|
cc1141019a601f76ad15727af442718f1f6bb6cb
|
refs/heads/master
| 2020-06-11T08:58:02.419907
| 2019-06-26T12:16:31
| 2019-06-26T12:16:31
| 193,898,014
| 0
| 1
| null | 2019-11-02T23:33:49
| 2019-06-26T12:15:29
|
Java
|
UTF-8
|
Java
| false
| false
| 4,270
|
java
|
/*
* Generated by the Jasper component of Apache Tomcat
* Version: JspCServletContext/1.0
* Generated at: 2019-02-13 15:29:26 UTC
* Note: The last modified time of this file was set to
* the last modified time of the source file after
* generation to assist with modification tracking.
*/
package ish.cartridges.sld_005fenterprise_005fapp.default_.widget;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import java.io.*;
import com.intershop.beehive.core.internal.template.*;
import com.intershop.beehive.core.internal.template.isml.*;
import com.intershop.beehive.core.capi.log.*;
import com.intershop.beehive.core.capi.resource.*;
import com.intershop.beehive.core.capi.util.UUIDMgr;
import com.intershop.beehive.core.capi.util.XMLHelper;
import com.intershop.beehive.foundation.util.*;
import com.intershop.beehive.core.internal.url.*;
import com.intershop.beehive.core.internal.resource.*;
import com.intershop.beehive.core.internal.wsrp.*;
import com.intershop.beehive.core.capi.pipeline.PipelineDictionary;
import com.intershop.beehive.core.capi.naming.NamingMgr;
import com.intershop.beehive.core.capi.pagecache.PageCacheMgr;
import com.intershop.beehive.core.capi.request.SessionMgr;
import com.intershop.beehive.core.internal.request.SessionMgrImpl;
import com.intershop.beehive.core.pipelet.PipelineConstants;
public final class WidgetPlaceholder_jsp extends com.intershop.beehive.core.internal.template.AbstractTemplate
implements org.apache.jasper.runtime.JspSourceDependent {
private static final javax.servlet.jsp.JspFactory _jspxFactory =
javax.servlet.jsp.JspFactory.getDefaultFactory();
private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.tomcat.InstanceManager _jsp_instancemanager;
public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
}
public void _jspDestroy() {
}
public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response)
throws java.io.IOException, javax.servlet.ServletException {
final javax.servlet.jsp.PageContext pageContext;
javax.servlet.http.HttpSession session = null;
final javax.servlet.ServletContext application;
final javax.servlet.ServletConfig config;
javax.servlet.jsp.JspWriter out = null;
final java.lang.Object page = this;
javax.servlet.jsp.JspWriter _jspx_out = null;
javax.servlet.jsp.PageContext _jspx_page_context = null;
try {
response.setContentType("text/html;charset=utf-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 0, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
boolean _boolean_result=false;
TemplateExecutionConfig context = getTemplateExecutionConfig();
createTemplatePageConfig(context.getServletRequest());
printHeader(out);
setEncodingType("text/html");
out.write("<div class=\"content\">");
{out.write(localizeISText("widgettype.placeholder.ThisWidgetTypeIsNotAvailableAnymore.content","",null,null,null,null,null,null,null,null,null,null,null));}
out.write("</div>");
printFooter(out);
} catch (java.lang.Throwable t) {
if (!(t instanceof javax.servlet.jsp.SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
else throw new ServletException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
|
[
"root@Inteshoppa1v11.yyrtatjsacuefh5ihlz5gkzqpd.ax.internal.cloudapp.net"
] |
root@Inteshoppa1v11.yyrtatjsacuefh5ihlz5gkzqpd.ax.internal.cloudapp.net
|
9b625c96d5afcdd41f8cc11f49e6e19c1245b5ea
|
4cad9552db3f55bc56e21c6b17efbafa2fae984e
|
/src/main/java/sample/zuul/ZuulSampleApplication.java
|
3f021f82f1ec3f560ab4b5e56ebe384dd46eaa58
|
[] |
no_license
|
3shaka92/zuul-sample
|
ee020be62cb14352fdffce14dd9f4a652d28cb49
|
d8139298de85375c237f997257cde1314f5a415d
|
refs/heads/master
| 2020-03-29T08:52:22.909369
| 2018-05-01T03:07:43
| 2018-05-01T03:07:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,850
|
java
|
package sample.zuul;
import io.micrometer.core.instrument.MeterRegistry;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryCustomizer;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.ServerProperties;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.netflix.zuul.filters.RouteLocator;
import org.springframework.cloud.netflix.zuul.filters.ZuulProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.core.annotation.Order;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;
@SpringBootApplication
@EnableZuulProxy
public class ZuulSampleApplication {
public static void main(String[] args) {
SpringApplication.run(ZuulSampleApplication.class, args);
}
@Bean
public MeterRegistryCustomizer<MeterRegistry> commonTags() {
return registry ->
registry.config()
.commonTags("application", "zuul-sample");
}
@Bean
public CorsFilter corsFilter() {
UrlBasedCorsConfigurationSource corsConfigurationSource = new UrlBasedCorsConfigurationSource();
CorsConfiguration corsConfiguration = new CorsConfiguration();
corsConfigurationSource.registerCorsConfiguration("/**", corsConfiguration);
return new CorsFilter(corsConfigurationSource);
}
@Bean
@Order(-1)
public RouteLocator customRouteLocator(ServerProperties server, ZuulProperties zuulProperties) {
return new PrefixStrippingRouteLocator(server.getServlet().getServletPrefix(), zuulProperties);
}
}
|
[
"biju.kunjummen@gmail.com"
] |
biju.kunjummen@gmail.com
|
93092563f7ec0b083d0c9986e16dd3c666bb75e8
|
c79a207f5efdc03a2eecea3832b248ca8c385785
|
/com.googlecode.jinahya/ocap-api/1.0.1/src/main/java/org/davic/net/ca/Enquiry.java
|
ed702683d0875e0fea5ca6537902769eecba7e20
|
[] |
no_license
|
jinahya/jinahya
|
977e51ac2ad0af7b7c8bcd825ca3a576408f18b8
|
5aef255b49da46ae62fb97bffc0c51beae40b8a4
|
refs/heads/master
| 2023-07-26T19:08:55.170759
| 2015-12-02T07:32:18
| 2015-12-02T07:32:18
| 32,245,127
| 2
| 1
| null | 2023-07-12T19:42:46
| 2015-03-15T04:34:19
|
Java
|
UTF-8
|
Java
| false
| false
| 847
|
java
|
package org.davic.net.ca;
/** Class representing an enquiry MMI object.
*/
public class Enquiry extends Text {
/* For javadoc to hide the non-public constructor */
Enquiry() {}
/**
* @return true if the answer should not be visible while being entered, otherwise false
*/
public boolean getBlindAnswer() {
return false;
}
/**
* @return the expected length of the answer in characters
*/
public short getAnswerLength() {
return (short) 0;
}
/** Submits the answer.
* @param answer The answer string. If null, it means that the user
* aborted the dialogue.
* @exception InvalidSetException raised if the application calls
* this method with an invalid value or more than once
*/
final public void setAnswer(String answer) throws CAException {
}
}
|
[
"onacit@e3df469a-503a-0410-a62b-eff8d5f2b914"
] |
onacit@e3df469a-503a-0410-a62b-eff8d5f2b914
|
25f6996360240b4128d4f684f86f6adb0172e3e2
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/15/15_f62f8277c2abbfe2b95ca05e3d0c8259a1c5322f/LogEntry/15_f62f8277c2abbfe2b95ca05e3d0c8259a1c5322f_LogEntry_s.java
|
3ddc05a9172c91ed2771f7d3376ccdc381565114
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 6,510
|
java
|
package main;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import GUI.Driver;
import com.mongodb.BasicDBList;
import com.mongodb.BasicDBObject;
import com.mongodb.DB;
import com.mongodb.DBCollection;
import com.mongodb.DBCursor;
import com.mongodb.DBObject;
public class LogEntry {
private int ID;
private String cwid;
private User user;
private ArrayList<Machine> machinesUsed;
private ArrayList<Tool> toolsCheckedOut;
private Date timeOut;
private Date timeIn;
private ArrayList<Tool> toolsReturned;
private Calendar calendar;
private DB database;
public LogEntry() {
calendar = Calendar.getInstance();
timeOut = null;
database = Driver.getAccessTracker().getDatabase();
}
public LogEntry(int iD, String cwid, ArrayList<Machine> machinesUsed,
ArrayList<Tool> toolsCheckedOut, Date timeOut, Date timeIn,
ArrayList<Tool> toolsReturned) {
super();
ID = iD;
this.cwid = cwid;
this.machinesUsed = machinesUsed;
this.toolsCheckedOut = toolsCheckedOut;
this.timeOut = timeOut;
this.timeIn = timeIn;
this.toolsReturned = toolsReturned;
calendar = Calendar.getInstance();
database = Driver.getAccessTracker().getDatabase();
}
// FOR TESTING PURPOSES ONLY
public void startEntry(User user, ArrayList<Machine> machinesUsed, ArrayList<Tool> toolsCheckedOut, ArrayList<Tool> toolsReturned) {
// AUTO-GENERATE ID
this.ID = Log.getNumEntries();
this.timeIn = calendar.getTime();
this.user = user;
cwid = user.getCWID();
this.machinesUsed = new ArrayList<Machine>();
this.toolsCheckedOut = new ArrayList<Tool>();
this.toolsReturned = new ArrayList<Tool>();
Log.incrementNumEntries();
user.setCurrentEntry(this);
BasicDBObject logEntry = new BasicDBObject();
logEntry.put("ID", ID);
logEntry.put("timeIn", timeIn);
logEntry.put("userCWID", user.getCWID());
DBCollection logEntries = database.getCollection("LogEntries");
logEntries.insert(logEntry);
addMachinesUsed(machinesUsed);
addToolsCheckedOut(toolsCheckedOut);
addToolsReturned(toolsReturned);
}
public void startEntry(User user) {
// AUTO-GENERATE ID
this.ID = Log.getNumEntries();
this.timeIn = calendar.getTime();
this.user = user;
cwid = user.getCWID();
this.machinesUsed = new ArrayList<Machine>();
this.toolsCheckedOut = new ArrayList<Tool>();
this.toolsReturned = new ArrayList<Tool>();
Log.incrementNumEntries();
this.user.setCurrentEntry(this);
BasicDBObject logEntry = new BasicDBObject();
logEntry.put("ID", ID);
logEntry.put("timeIn", timeIn);
logEntry.put("userCWID", user.getCWID());
DBCollection logEntries = database.getCollection("LogEntries");
logEntries.insert(logEntry);
}
public String getCwid() {
return cwid;
}
public void addMachinesUsed(ArrayList<Machine> used) {
for (Machine m : used){
machinesUsed.add(m);
}
DBCollection logEntries = database.getCollection("LogEntries");
DBCursor cursor = logEntries.find(new BasicDBObject("ID", ID));
DBObject result = cursor.next();
BasicDBList machines = new BasicDBList();
for(Machine m : machinesUsed) {
machines.add(new BasicDBObject("id", m.getID()));
}
result.put("machinesUsed", machines);
logEntries.update(new BasicDBObject("ID", ID), result);
}
public void addToolsCheckedOut(ArrayList<Tool> checkedOut) {
for (Tool t : checkedOut){
toolsCheckedOut.add(t);
}
DBCollection logEntries = database.getCollection("LogEntries");
DBCursor cursor = logEntries.find(new BasicDBObject("ID", ID));
DBObject result = cursor.next();
BasicDBList tools = new BasicDBList();
for(Tool t : toolsCheckedOut) {
tools.add(new BasicDBObject("upc", t.getUPC()));
}
result.put("toolsCheckedOut", tools);
logEntries.update(new BasicDBObject("ID", ID), result);
}
public void addToolsReturned( ArrayList<Tool> returned) {
for (Tool t : returned){
toolsReturned.add(t);
}
DBCollection logEntries = database.getCollection("LogEntries");
DBCursor cursor = logEntries.find(new BasicDBObject("ID", ID));
DBObject result = cursor.next();
BasicDBList tools = new BasicDBList();
for(Tool t : toolsReturned) {
tools.add(new BasicDBObject("upc", t.getUPC()));
}
result.put("toolsReturned", tools);
logEntries.update(new BasicDBObject("ID", ID), result);
}
public void finishEntry() {
this.timeOut = calendar.getTime();
DBCollection logEntries = database.getCollection("LogEntries");
DBCursor cursor = logEntries.find(new BasicDBObject("ID", ID));
DBObject result = cursor.next();
result.put("timeOut", timeOut);
logEntries.update(new BasicDBObject("ID", ID), result);
}
public Date getTimeIn() {
return timeIn;
}
public Date getTimeOut() {
return timeOut;
}
public void setTimeOut(Date timeOut) {
this.timeOut = timeOut;
}
@Override
public boolean equals(Object o) {
if (!(o instanceof LogEntry))
return false;
LogEntry obj = (LogEntry) o;
return (this.ID == obj.getID());
}
public int getID() {
return ID;
}
public void print() {
System.out.println("Log Entry: " + ID);
System.out.println("User: " + user);
System.out.println("Time In: " + timeIn);
System.out.println("Time Out: " + timeOut);
System.out.println("Machines Used: " + machinesUsed);
System.out.println("Tools Checked Out: " + toolsCheckedOut);
System.out.println("Tools Returned: " + toolsReturned);
}
public User getUser() {
return user;
}
public ArrayList<Machine> getMachinesUsed() {
return machinesUsed;
}
public ArrayList<Tool> getToolsCheckedOut() {
return toolsCheckedOut;
}
public ArrayList<Tool> getToolsReturned() {
return toolsReturned;
}
public String toString() {
return String.format("%5d%20s%30s%30s%30s%30s%30s", ID, user, timeIn, timeOut, machinesUsed, toolsCheckedOut, toolsReturned);
}
public void printTable() {
System.out.format("%5d%20s%30s%30s%30s%30s%30s", ID, user, timeIn, timeOut, machinesUsed, toolsCheckedOut, toolsReturned);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
d61b68111f66e6f10937f7d2f63c6adc1a7dc929
|
0782e865b9c436cf4b1b075d666bcef577e8feca
|
/core/src/main/java/org/mariotaku/uniqr/Canvas.java
|
4dc644dacda57c76f8908fa9df6af8adbbc06747
|
[
"Apache-2.0"
] |
permissive
|
mariotaku/UniqR
|
38414066ca232472deeb0de0e705ab1828ca872d
|
d3ac6209978ae8aad5b5c494bba9a63f11c57c0c
|
refs/heads/master
| 2021-01-19T09:32:52.790103
| 2018-03-15T08:23:20
| 2018-03-15T08:23:20
| 87,766,188
| 27
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 301
|
java
|
package org.mariotaku.uniqr;
import org.jetbrains.annotations.NotNull;
/**
* Created by mariotaku on 2017/4/10.
*/
public interface Canvas<T> {
int getWidth();
int getHeight();
void drawDot(int l, int t, int size, int color);
@NotNull
T produceResult();
void free();
}
|
[
"mariotaku.lee@gmail.com"
] |
mariotaku.lee@gmail.com
|
f6926d47fe0da42cf241138d05a8d7c5ab47e449
|
d74ae31c66c8493260e4dbf8b3cc87581337174c
|
/src/main/java/hello/service/Customer1730Service.java
|
58374e7a2ebaf9d7b3c6d6ba85757bccba6fda9e
|
[] |
no_license
|
scratches/spring-data-gazillions
|
72e36c78a327f263f0de46fcee991473aa9fb92c
|
858183c99841c869d688cdbc4f2aa0f431953925
|
refs/heads/main
| 2021-06-07T13:20:08.279099
| 2018-08-16T12:13:37
| 2018-08-16T12:13:37
| 144,152,360
| 0
| 0
| null | 2021-04-26T17:19:34
| 2018-08-09T12:53:18
|
Java
|
UTF-8
|
Java
| false
| false
| 223
|
java
|
package hello.service;
import org.springframework.stereotype.Service;
import hello.repo.Customer1730Repository;
@Service
public class Customer1730Service {
public Customer1730Service(Customer1730Repository repo) {
}
}
|
[
"dsyer@pivotal.io"
] |
dsyer@pivotal.io
|
7ace2502b4a7fe8994e67b51708524b0857764d7
|
6b23d8ae464de075ad006c204bd7e946971b0570
|
/WEB-INF/plugin/common/src/jp/groupsession/v2/cmn/cmn170/Cmn170Model.java
|
1e2184df6858a08a327b2ca92ffc673c75964803
|
[] |
no_license
|
kosuke8/gsession
|
a259c71857ed36811bd8eeac19c456aa8f96c61e
|
edd22517a22d1fb2c9339fc7f2a52e4122fc1992
|
refs/heads/master
| 2021-08-20T05:43:09.431268
| 2017-11-28T07:10:08
| 2017-11-28T07:10:08
| 112,293,459
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,384
|
java
|
package jp.groupsession.v2.cmn.cmn170;
import java.io.Serializable;
import jp.co.sjts.util.NullDefault;
/**
* <br>[機 能] テーマ情報(画面表示用)を格納するModelクラス
* <br>[解 説]
* <br>[備 考]
*
* @author JTS
*/
public class Cmn170Model implements Serializable {
/** CTM_SID mapping */
private int ctmSid__;
/** CTM_PATH_IMG mapping */
private String ctmPathImg__;
/** CTM_NAME mapping */
private String ctmName__;
/** 登録人数 */
private int ctmPerCount__;
/**
* <p>Default Constructor
*/
public Cmn170Model() {
}
/**
* <p>get CTM_SID value
* @return CTM_SID value
*/
public int getCtmSid() {
return ctmSid__;
}
/**
* <p>set CTM_SID value
* @param ctmSid CTM_SID value
*/
public void setCtmSid(int ctmSid) {
ctmSid__ = ctmSid;
}
/**
* <p>get CTM_PATH_IMG value
* @return CTM_PATH_IMG value
*/
public String getCtmPathImg() {
return ctmPathImg__;
}
/**
* <p>set CTM_PATH_IMG value
* @param ctmPathImg CTM_PATH_IMG value
*/
public void setCtmPathImg(String ctmPathImg) {
ctmPathImg__ = ctmPathImg;
}
/**
* <p>get CTM_NAME value
* @return CTM_NAME value
*/
public String getCtmName() {
return ctmName__;
}
/**
* <p>set CTM_NAME value
* @param ctmName CTM_NAME value
*/
public void setCtmName(String ctmName) {
ctmName__ = ctmName;
}
/**
* <p>get ctmPerCount value
* @return ctmPerCount value
*/
public int getCtmPerCount() {
return ctmPerCount__;
}
/**
* <p>set ctmPerCount value
* @param ctmPerCount ctmPerCount value
*/
public void setCtmPerCount(int ctmPerCount) {
ctmPerCount__ = ctmPerCount;
}
/**
* <p>to Csv String
* @return Csv String
*/
public String toCsvString() {
StringBuilder buf = new StringBuilder();
buf.append(ctmSid__);
buf.append(",");
buf.append(NullDefault.getString(ctmPathImg__, ""));
buf.append(",");
buf.append(NullDefault.getString(ctmName__, ""));
return buf.toString();
}
}
|
[
"PK140601-29@PK140601-29"
] |
PK140601-29@PK140601-29
|
8597844c7fb493d2403daf2452fb872dcc5e4031
|
22a4d49f9bbfe9cd09f3c8bdcb55e5715a65e3a3
|
/chapter_001/src/main/java/ru/job4j/max/Max.java
|
7a20da213f8196d1848805a618a298bd2f93d43b
|
[
"Apache-2.0"
] |
permissive
|
dpopkov/job4j
|
47b0511818a0a2539dc9e977036a6cc0bf0ed973
|
b96f49f7b9ccd0469bf059663d81b3bde739363c
|
refs/heads/master
| 2022-09-23T06:38:57.900348
| 2021-04-27T20:10:59
| 2021-04-27T20:10:59
| 145,213,360
| 1
| 2
|
Apache-2.0
| 2022-09-01T23:13:35
| 2018-08-18T11:08:19
|
Java
|
UTF-8
|
Java
| false
| false
| 722
|
java
|
package ru.job4j.max;
/**
* Contains methods for finding the maximum value.
*/
public class Max {
/**
* Finds maximum value of two integer numbers.
* @param first first number
* @param second second number
* @return maximum value
*/
@SuppressWarnings("ManualMinMaxCalculation")
public int max(int first, int second) {
return first > second ? first : second;
}
/**
* Finds maximum value of three integer numbers.
* @param first first number
* @param second second number
* @param third third number
* @return maximum value
*/
public int max(int first, int second, int third) {
return max(max(first, second), third);
}
}
|
[
"pkvdenis@gmail.com"
] |
pkvdenis@gmail.com
|
e29875f0d4cc76f0747a1c8319a4a4586c75db2b
|
e9d4fc15c616e3861b7df783bdea702f305c13c7
|
/otranse-os/samples/pss/src/main/java/com/lanyotech/pps/service/IOrderInfoService.java
|
46bea2bd0e9de0d845a53882d8fd2e2df790fdc8
|
[] |
no_license
|
lingxfeng/myproject
|
00ef0ebae258f1d5d187bf0be23dac653fcead23
|
1b14f47208cc456b68e2cb811a2a71c302be23d9
|
refs/heads/master
| 2021-01-13T05:02:00.200042
| 2017-02-07T08:01:51
| 2017-02-07T08:01:51
| 81,179,980
| 0
| 4
| null | 2020-03-14T10:57:39
| 2017-02-07T07:33:06
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 1,480
|
java
|
package com.lanyotech.pps.service;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import cn.disco.core.support.query.IQueryObject;
import cn.disco.web.tools.IPageList;
import com.lanyotech.pps.domain.OrderInfo;
import com.lanyotech.pps.query.OrderInfoItemQuery;
/**
* OrderInfoService
* @author Disco Framework
*/
public interface IOrderInfoService {
/**
* 保存一个OrderInfo,如果保存成功返回该对象的id,否则返回null
*
* @param instance
* @return 保存成功的对象的Id
*/
Long addOrderInfo(OrderInfo instance);
/**
* 根据一个ID得到OrderInfo
*
* @param id
* @return
*/
OrderInfo getOrderInfo(Long id);
/**
* 删除一个OrderInfo
* @param id
* @return
*/
boolean delOrderInfo(Long id);
/**
* 批量删除OrderInfo
* @param ids
* @return
*/
boolean batchDelOrderInfos(List<Serializable> ids);
/**
* 通过一个查询对象得到OrderInfo
*
* @param properties
* @return
*/
IPageList getOrderInfoBy(IQueryObject queryObject);
/**
* 更新一个OrderInfo
* @param id 需要更新的OrderInfo的id
* @param dir 需要更新的OrderInfo
*/
boolean updateOrderInfo(Long id,OrderInfo instance);
/**
* 删除订单明细条目
* @param id
* @return
*/
boolean delOrderInfoItem(Long id);
/**
* 销售统计
* @param query
* @param groupBy
* @return
*/
List<Map> statistics(OrderInfoItemQuery query,String groupBy);
}
|
[
"991736913@qq.com"
] |
991736913@qq.com
|
0b1950a9598c26a9a6855e1d39f3fae3ea2c0492
|
d67f6450b24fb08f2f61b74dcdecce3025ee3efc
|
/gemp-swccg-cards/src/main/java/com/gempukku/swccgo/cards/set9/light/Card9_079.java
|
4f3d67a1dfed1ce830d71882da66e2397628bdb2
|
[
"MIT"
] |
permissive
|
cburyta/gemp-swccg-public
|
00a974d042195e69d3c104e61e9ee5bd48728f9a
|
05529086de91ecb03807fda820d98ec8a1465246
|
refs/heads/master
| 2023-01-09T12:45:33.347296
| 2020-10-26T14:39:28
| 2020-10-26T14:39:28
| 309,400,711
| 0
| 0
|
MIT
| 2020-11-07T04:57:04
| 2020-11-02T14:47:59
| null |
UTF-8
|
Java
| false
| false
| 1,979
|
java
|
package com.gempukku.swccgo.cards.set9.light;
import com.gempukku.swccgo.cards.AbstractCapitalStarship;
import com.gempukku.swccgo.cards.AbstractPermanentAboard;
import com.gempukku.swccgo.cards.AbstractPermanentPilot;
import com.gempukku.swccgo.common.Icon;
import com.gempukku.swccgo.common.ModelType;
import com.gempukku.swccgo.common.PlayCardOptionId;
import com.gempukku.swccgo.common.Side;
import com.gempukku.swccgo.filters.Filter;
import com.gempukku.swccgo.filters.Filters;
import com.gempukku.swccgo.game.PhysicalCard;
import com.gempukku.swccgo.game.SwccgGame;
import java.util.Collections;
import java.util.List;
/**
* Set: Death Star II
* Type: Starship
* Subtype: Capital
* Title: Mon Calamari Star Cruiser
*/
public class Card9_079 extends AbstractCapitalStarship {
public Card9_079() {
super(Side.LIGHT, 1, 8, 7, 5, null, 3, 9, "Mon Calamari Star Cruiser");
setLore("Mon Cal MC80 cruiser. Originally a civilian ship. Converted to military use following the liberation of Mon Calamari from the Empire.");
setGameText("Deploys only at Mon Calamari or any Rebel Base. May add 5 pilots, 6 passengers, 1 vehicle and 3 starfighters. Has ship-docking capability. Permanent pilot aboard provides ability of 2.");
addIcons(Icon.DEATH_STAR_II, Icon.PILOT, Icon.NAV_COMPUTER, Icon.SCOMP_LINK);
addModelType(ModelType.MON_CALAMARI_STAR_CRUISER);
setPilotCapacity(5);
setPassengerCapacity(6);
setVehicleCapacity(1);
setStarfighterCapacity(3);
}
@Override
protected Filter getGameTextValidDeployTargetFilter(SwccgGame game, PhysicalCard self, PlayCardOptionId playCardOptionId, boolean asReact) {
return Filters.or(Filters.Deploys_at_Mon_Calamari, Filters.Deploys_at_Rebel_Base);
}
@Override
protected List<? extends AbstractPermanentAboard> getGameTextPermanentsAboard() {
return Collections.singletonList(new AbstractPermanentPilot(2) {});
}
}
|
[
"andrew@bender.io"
] |
andrew@bender.io
|
ff6d08b649f7f2752fd31a73416089d6a41bd8c0
|
6e4594667da81670bcaf8f763ea03ef692728490
|
/yourong-core/src/test/java/com/yourong/core/OverdueRepayLogManageTest.java
|
0e09e948877d3449a4210c58c53db4d6ca5e8b05
|
[] |
no_license
|
cenbow/Daisy
|
d669db7e80677f9dc6162e78b1b150d31e649d56
|
29a83841acefbe55631b32c51f1f8af723bea20d
|
refs/heads/master
| 2021-01-20T08:31:54.755391
| 2017-04-28T09:40:28
| 2017-04-28T09:40:28
| 90,162,687
| 0
| 1
| null | 2017-05-03T15:11:00
| 2017-05-03T15:11:00
| null |
UTF-8
|
Java
| false
| false
| 1,398
|
java
|
package com.yourong.core;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.annotation.Rollback;
import com.yourong.common.exception.ManagerException;
import com.yourong.core.fin.manager.OverdueRepayLogManager;
import com.yourong.core.fin.manager.UnderwriteLogManager;
import com.yourong.core.ic.model.ProjectInterestBiz;
/**
*
* @desc 逾期还款记录测试用例
* @author chaisen
* 2016年3月14日上午11:02:33
*/
public class OverdueRepayLogManageTest extends BaseTest {
@Autowired
private OverdueRepayLogManager overdueRepayLogManager;
@Autowired
private UnderwriteLogManager underwriteLogManager;
/**
*
* @Description:保存逾期还款记录
* @return
* @throws ManagerException
* @author: chaisen
* @time:2016年3月14日 上午11:07:57
*/
//@Test
@Rollback(false)
public int saveOverdueRepayLogTest() throws ManagerException{
ProjectInterestBiz biz=new ProjectInterestBiz();
int i=overdueRepayLogManager.saveOverdueRepayLog(biz);
return i;
}
/**
*
* @return 统计逾期记录数
* @throws ManagerException
*/
@Test
@Rollback(false)
public int countOverdueRepayLogByProjectIdTest() throws ManagerException{
int i=overdueRepayLogManager.countOverdueRepayLogByProjectId(984509394L);
return i;
}
}
|
[
"zheng.qiujun@yrw.com"
] |
zheng.qiujun@yrw.com
|
aaa94d5dc67b2dd5a330a12dd342800e497f9b8f
|
269bce0bf0e23f5e5f7b5d31167c8a804b62ae52
|
/comparator-tools/modagame/MODAGAME_hppc_0.6.1/src.main.java/com/carrotsearch/hppc/DoubleShortAssociativeContainer.java
|
59bc87d1210542493c8d58ef8c79e69bea133506
|
[] |
no_license
|
acapulco-spl/acapulco_replication_package
|
5c4378b7662d6aa10f11f52a9fa8793107b34d6d
|
7de4d9a96c11977f0cd73d761a4f8af1e0e064e0
|
refs/heads/master
| 2023-04-15T17:40:14.003166
| 2022-04-13T08:37:11
| 2022-04-13T08:37:11
| 306,005,002
| 3
| 1
| null | 2022-04-11T17:35:06
| 2020-10-21T11:39:59
|
Java
|
UTF-8
|
Java
| false
| false
| 4,171
|
java
|
package com.carrotsearch.hppc;
import java.util.Iterator;
import com.carrotsearch.hppc.cursors.*;
import com.carrotsearch.hppc.predicates.*;
import com.carrotsearch.hppc.procedures.*;
/**
* An associative container (alias: map, dictionary) from keys to (one or possibly more) values.
* Object keys must fulfill the contract of {@link Object#hashCode()} and {@link Object#equals(Object)}.
*
* <p>Note that certain associative containers (like multimaps) may return the same key-value pair
* multiple times from iterators.</p>
*
* @see DoubleContainer
*/
@javax.annotation.Generated(date = "2014-09-08T10:42:29+0200", value = "HPPC generated from: DoubleShortAssociativeContainer.java")
public interface DoubleShortAssociativeContainer
extends Iterable<DoubleShortCursor>
{
/**
* Returns a cursor over the entries (key-value pairs) in this map. The iterator is
* implemented as a cursor and it returns <b>the same cursor instance</b> on every
* call to {@link Iterator#next()}. To read the current key and value use the cursor's
* public fields. An example is shown below.
* <pre>
* for (IntShortCursor c : intShortMap)
* {
* System.out.println("index=" + c.index
* + " key=" + c.key
* + " value=" + c.value);
* }
* </pre>
*
* <p>The <code>index</code> field inside the cursor gives the internal index inside
* the container's implementation. The interpretation of this index depends on
* to the container.
*/
@Override
public Iterator<DoubleShortCursor> iterator();
/**
* Returns <code>true</code> if this container has an association to a value for
* the given key.
*/
public boolean containsKey(double key);
/**
* @return Returns the current size (number of assigned keys) in the container.
*/
public int size();
/**
* @return Return <code>true</code> if this hash map contains no assigned keys.
*/
public boolean isEmpty();
/**
* Removes all keys (and associated values) present in a given container. An alias to:
* <pre>
* keys().removeAll(container)
* </pre>
* but with no additional overhead.
*
* @return Returns the number of elements actually removed as a result of this call.
*/
public int removeAll(DoubleContainer container);
/**
* Removes all keys (and associated values) for which the predicate returns <code>true</code>.
* An alias to:
* <pre>
* keys().removeAll(container)
* </pre>
* but with no additional overhead.
*
* @return Returns the number of elements actually removed as a result of this call.
*/
public int removeAll(DoublePredicate predicate);
/**
* Applies a given procedure to all keys-value pairs in this container. Returns the argument (any
* subclass of {@link DoubleShortProcedure}. This lets the caller to call methods of the argument
* by chaining the call (even if the argument is an anonymous type) to retrieve computed values,
* for example.
*/
public <T extends DoubleShortProcedure> T forEach(T procedure);
/**
* Clear all keys and values in the container.
*/
public void clear();
/**
* Returns a collection of keys of this container. The returned collection is a view
* over the key set and any modifications (if allowed) introduced to the collection will
* propagate to the associative container immediately.
*/
public DoubleCollection keys();
/**
* Returns a container view of all values present in this container. The returned collection is a view
* over the key set and any modifications (if allowed) introduced to the collection will
* propagate to the associative container immediately.
*/
public ShortContainer values();
}
|
[
"daniel_str@gmx.de"
] |
daniel_str@gmx.de
|
cbad3fba91992a112f3a4913a374a2d5d5d49bfb
|
82b839181fbddf77af2489541a6600667af44b28
|
/app/src/main/java/sudo/nasaspaceapps/cryosphere/restBlogger/model/Blog.java
|
bc5b1050f759bf179d8c4d0a8488007a34e79cdf
|
[] |
no_license
|
Kapil706/cryosphere
|
e971f87990b85f294dc7f82f46c0b16123c12ebe
|
4e80ad022a335d1a26d2f98f00302d42f852f603
|
refs/heads/master
| 2020-04-02T03:39:52.982807
| 2018-10-21T05:46:56
| 2018-10-21T05:46:56
| 153,977,491
| 1
| 0
| null | 2018-10-21T05:46:01
| 2018-10-21T05:46:01
| null |
UTF-8
|
Java
| false
| false
| 357
|
java
|
package sudo.nasaspaceapps.cryosphere.restBlogger.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Blog {
@SerializedName("id")
@Expose
private String id;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
[
"sankalpchauhan.me@gmail.com"
] |
sankalpchauhan.me@gmail.com
|
165200c897af4c2318e74738428f04d4802826bc
|
a4f94f4701a59cafc7407aed2d525b2dff985c95
|
/core/typesystemIntegration/source/jetbrains/mps/typesystem/checking/FakeEditorContext.java
|
37e526190fe8183ff450ba401293c4b63973aad8
|
[] |
no_license
|
jamice/code-orchestra-core
|
ffda62860f5b117386aa6455f4fdf61661abbe9e
|
b2bbf8362be2e2173864c294c635badb2e27ecc6
|
refs/heads/master
| 2021-01-15T13:24:53.517854
| 2013-05-09T21:39:28
| 2013-05-09T21:39:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 728
|
java
|
package jetbrains.mps.typesystem.checking;
import codeOrchestra.actionscript.parsing.FakeEditorComponent;
import jetbrains.mps.nodeEditor.EditorComponent;
import jetbrains.mps.nodeEditor.EditorContext;
import jetbrains.mps.smodel.IOperationContext;
import jetbrains.mps.smodel.SModel;
import jetbrains.mps.smodel.SNode;
/**
* @author Alexander Eliseyev
*/
public class FakeEditorContext extends EditorContext {
private static final SNode FAKE_NODE = new SNode(null, "null", false);
public FakeEditorContext(SModel model, IOperationContext operationContext) {
super(new FakeEditorComponent(operationContext), model, operationContext);
}
@Override
public SNode getSelectedNode() {
return FAKE_NODE;
}
}
|
[
"a.a.eliseyev@gmail.com"
] |
a.a.eliseyev@gmail.com
|
6b80a0575f36dd21640d3ba127067cbbf74fe9ab
|
e63363389e72c0822a171e450a41c094c0c1a49c
|
/Mate20_9_0_0/src/main/java/com/android/server/hidata/histream/HwHistreamCHRMachineInfo.java
|
11e81173349796d8d6dda21d8e15fcbed4429cde
|
[] |
no_license
|
solartcc/HwFrameWorkSource
|
fc23ca63bcf17865e99b607cc85d89e16ec1b177
|
5b92ed0f1ccb4bafc0fdb08b6fc4d98447b754ad
|
refs/heads/master
| 2022-12-04T21:14:37.581438
| 2020-08-25T04:30:43
| 2020-08-25T04:30:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,663
|
java
|
package com.android.server.hidata.histream;
import com.android.server.hidata.appqoe.HwAPPQoEUtils;
public class HwHistreamCHRMachineInfo {
public String mApkName = HwAPPQoEUtils.INVALID_STRING_VALUE;
public int mCellQuality = -1;
public int mCellSig = -1;
public int mCellSinr = -1;
public int mChLoad = -1;
public int mNetDlTup = -1;
public int mNetRtt = -1;
public int mRAT = -1;
public int mRxTup1Bef = -1;
public int mRxTup2Bef = -1;
public int mScenario = -1;
public int mStreamQoe = -1;
public int mTxFail1Bef = -1;
public int mTxFail2Bef = -1;
public int mWechatVideoQoe = -1;
public int mWifiRssi = -1;
public int mWifiSnr = -1;
public void printCHRMachineInfo() {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append("printCHRMachineInfo mApkName = ");
stringBuilder.append(this.mApkName);
stringBuilder.append(" mScenario = ");
stringBuilder.append(this.mScenario);
stringBuilder.append(" mRxTup1Bef = ");
stringBuilder.append(this.mRxTup1Bef);
stringBuilder.append(" mRxTup2Bef = ");
stringBuilder.append(this.mRxTup2Bef);
stringBuilder.append(" mScenario = ");
stringBuilder.append(this.mScenario);
stringBuilder.append(" mChLoad = ");
stringBuilder.append(this.mChLoad);
stringBuilder.append(" mTxFail1Bef = ");
stringBuilder.append(this.mTxFail1Bef);
stringBuilder.append(" mTxFail2Bef = ");
stringBuilder.append(this.mTxFail2Bef);
stringBuilder.append(" mStreamQoe = ");
stringBuilder.append(this.mStreamQoe);
stringBuilder.append(" mWechatVideoQoe = ");
stringBuilder.append(this.mWechatVideoQoe);
stringBuilder.append(" mRAT = ");
stringBuilder.append(this.mRAT);
stringBuilder.append(" mWifiRssi = ");
stringBuilder.append(this.mWifiRssi);
stringBuilder.append(" mWifiSnr = ");
stringBuilder.append(this.mWifiSnr);
stringBuilder.append(" mWifiSnr = ");
stringBuilder.append(this.mWifiSnr);
stringBuilder.append(" mCellSig = ");
stringBuilder.append(this.mCellSig);
stringBuilder.append(" mCellQuality = ");
stringBuilder.append(this.mCellQuality);
stringBuilder.append(" mCellSinr = ");
stringBuilder.append(this.mCellSinr);
stringBuilder.append(" mNetDlTup = ");
stringBuilder.append(this.mNetDlTup);
stringBuilder.append(" mNetRtt = ");
stringBuilder.append(this.mNetRtt);
HwHiStreamUtils.logD(stringBuilder.toString());
}
}
|
[
"lygforbs0@mail.com"
] |
lygforbs0@mail.com
|
7d0f043ae9b781411f52d409b19d4ecc1ecc4900
|
211ec31a7f09435b4c5d491139a2831c98e0f69c
|
/BestarProject/Widget/src/com/huoqiu/widget/db/DownloadFileDB.java
|
0ac36fac6ae54b04cc492bd9929ea42f619beee3
|
[
"Apache-2.0"
] |
permissive
|
bestarandyan/ShoppingMall
|
6e8ac0ee3a5ae7a91541d04b1fba8d2d1496875c
|
ee93b393b982bdfe77d26182a2317f2c439c12fc
|
refs/heads/master
| 2021-01-01T05:49:52.010094
| 2015-01-23T10:29:59
| 2015-01-23T10:29:59
| 29,727,539
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,105
|
java
|
package com.huoqiu.widget.db;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
/**
* 数据库中文件下载记录的操作,包括:插入,删除,更�?
*
* @author shenyamin
*
*/
public class DownloadFileDB {
// 数据库字�?path, thid, done
public static final String COL_PATH = "File_Path";
public static final String COL_THID = "File_Thid";
public static final String COL_DONE = "File_Done";
public static final String TABLE_NAME = "DownloadFileRecord";// 数据表名
private static DatabaseUtil helper;
public DownloadFileDB(Context context) {
helper = new DatabaseUtil(context);
}
/**
* 插入数据
*
* @param model
* DownLoadFileModel实体�?
*/
public boolean insert(DownloadFileModel model) {
try {
SQLiteDatabase db = helper.getWritableDatabase();
db.execSQL(
"INSERT INTO " + TABLE_NAME + "(" + COL_PATH + ", "
+ COL_THID + ", " + COL_DONE + ") VALUES(?, ?, ?)",
new Object[] { model.getPath(), model.getThid(),
model.getDone() });
return true;
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return false;
}
}
/**
* 删除记录
*
* @param path
* URL路径
* @param thid
* 线程id
*/
// public void delete(String path, int thid) {
// SQLiteDatabase db = helper.getWritableDatabase();
// db.execSQL("DELETE FROM " + TABLE_NAME
// + " WHERE " + COL_PATH + "=? AND " + COL_THID + "=?", new Object[] {
// path, thid });
// }
/**
* 更新记录
*
* @param model
* DownLoadFileModel实体�?
*/
public boolean update(DownloadFileModel model) {
try {
SQLiteDatabase db = helper.getWritableDatabase();
db.execSQL(
"UPDATE " + TABLE_NAME + " SET " + COL_DONE + "=? WHERE "
+ COL_PATH + "=? AND " + COL_THID + "=?",
new Object[] { model.getDone(), model.getPath(),
model.getThid() });
return true;
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return false;
}
}
/**
* 查询表中的某�?��记录
*
* @param path
* URL路径
* @param thid
* 线程Id
* @return
*/
public DownloadFileModel query(String path, int thid) {
DownloadFileModel model = null;
Cursor c = null;
try {
SQLiteDatabase db = helper.getWritableDatabase();
String sql = "SELECT " + COL_PATH + ", " + COL_THID + ", "
+ COL_DONE + " FROM " + TABLE_NAME + " WHERE " + COL_PATH
+ "=? AND " + COL_THID + "=?";
c = db.rawQuery(sql, new String[] { path, String.valueOf(thid) });
if (c.moveToNext()) {
model = new DownloadFileModel(c.getString(0), c.getInt(1),
c.getInt(2));
return model;
}
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
return null;
} finally {
if (c != null) {
c.close();
}
}
return null;
}
/**
* 查询APK下载是否完成
*
* @param path
* URL路径
* @param thid
* 线程Id
* @return
*/
// public int queryDownloadOver(String path) {
// Cursor c = null;
// try {
// SQLiteDatabase db = helper.getWritableDatabase();
// String sql = "SELECT " + COL_DONE + " FROM " + TABLE_NAME
// + " WHERE " + COL_PATH + "=? AND " + COL_THID + " = -9999";// -9999已经下载完成的标�?
// c = db.rawQuery(sql, new String[] { path });
// if (c.moveToNext()) {
// return c.getInt(0);
// }
// } catch (Exception e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// return 0;
// } finally {
// if (c != null)
// c.close();
// }
//
// return 0;
// }
/**
* 删除下载记录
*
* @param path
* 文件路径
* @param len
*/
public boolean deleteAll(String path, int len) {
Cursor c = null;
try {
SQLiteDatabase db = helper.getWritableDatabase();
String sel = "SELECT SUM(" + COL_DONE + ") FROM " + TABLE_NAME
+ " WHERE " + COL_PATH + "=?";
c = db.rawQuery(sel, new String[] { path });
if (c.moveToNext()) {
int result = c.getInt(0);
if (result == len) {
db.execSQL("DELETE FROM " + TABLE_NAME + " WHERE "
+ COL_PATH + "=? ", new Object[] { path });
// 删除下载记录后,插入�?��新的记录包含本次下载的url,apk的大小,-9999作为标识以便下次提取这条记录
// insert(new DownloadFileModel(path, -9999, len));
return true;
}
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return false;
} finally {
if (c != null) {
c.close();
}
}
return false;
}
/**
* 删除�?��路径为path的下载记�?
*
* @param path
* 文件路径
*/
public boolean deleteDownloadRecord(String path) {
Cursor c = null;
try {
SQLiteDatabase db = helper.getWritableDatabase();
String sel = "SELECT 1 FROM " + TABLE_NAME + " WHERE " + COL_PATH
+ "=? ";// + COL_THID +"= -9999"
c = db.rawQuery(sel, new String[] { path });
if (c.moveToNext()) {
db.execSQL("DELETE FROM " + TABLE_NAME + " WHERE " + COL_PATH
+ "=? ", new Object[] { path });// AND "+ COL_THID +"=
// -9999"
return true;
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return false;
} finally {
if (c != null) {
c.close();
}
}
return false;
}
/**
* 查询是否有未完成的记�?
* �?true;没有:false;
* @param path
* @return
*/
public boolean queryUndone(String path) {
Cursor c = null;
try {
SQLiteDatabase db = helper.getWritableDatabase();
String undo = "SELECT " + COL_PATH + " FROM " + TABLE_NAME + " WHERE "+ COL_PATH +" = '"+ path +"'";//+ COL_THID +"=-9999
c = db.rawQuery(undo, null);
if(c.moveToNext()){
return true;
}
} catch (Exception e) {
e.printStackTrace();
return false;
} finally{
if(c != null){
c.close();
}
}
return false;
}
}
|
[
"2238985517@qq.com"
] |
2238985517@qq.com
|
9f2aa89ea2418e7b86a89a3a72fdd48533a251c5
|
6c1c18f95d0bfe3e300c775ecacd296cb0ec176e
|
/commlib/src/main/java/com/android/banana/commlib/view/MyGridView.java
|
ab4efba5f3c8fda34bc896aa38658bbf18cc8aac
|
[] |
no_license
|
winnxiegang/save
|
a7ea6a3dcee7a9ebda8c6ad89957ae0e4d3c430d
|
16ad3a98e8b6ab5d17acacce322dfc5e51ab3330
|
refs/heads/master
| 2020-03-13T04:27:26.650719
| 2018-04-26T01:18:59
| 2018-04-26T01:18:59
| 130,963,368
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 796
|
java
|
package com.android.banana.commlib.view;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;
/**
*
*
* @author leslie
*
* @version $Id: MyGridView.java, v 0.1 2014年9月11日 下午1:50:21 leslie Exp $
*/
public class MyGridView extends GridView {
public MyGridView(Context context) {
super(context);
}
public MyGridView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public MyGridView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
@Override
public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
super.onMeasure(widthMeasureSpec, expandSpec);
}
}
|
[
"1272108979@qq.com"
] |
1272108979@qq.com
|
c01d55905edfd5431260f87fba886beee47222c8
|
807e4dab8b862e7b03c3ab2b0530e193184b3c97
|
/baseio-codec/src/main/java/com/generallycloud/nio/codec/http2/future/HeaderTable.java
|
c8dbd85e4e0d99d3a62ec167bca87f3ef3455dfc
|
[
"Apache-2.0"
] |
permissive
|
zc1249274251/baseio
|
6ffaff77e23f51d637717ec72edb1ab2b9534f2e
|
e1a923147894af8b68dc7722cff1be03a99b5a11
|
refs/heads/master
| 2021-01-20T11:51:20.548255
| 2017-02-21T04:06:46
| 2017-02-21T04:06:46
| 82,634,725
| 1
| 0
| null | 2017-02-21T04:07:56
| 2017-02-21T04:07:55
| null |
UTF-8
|
Java
| false
| false
| 5,806
|
java
|
/*
* Copyright 2015-2017 GenerallyCloud.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.generallycloud.nio.codec.http2.future;
import java.util.ArrayList;
import java.util.List;
public class HeaderTable {
private List<Http2Header> headers;
public Http2Header getHeader(int index) {
return headers.get(index);
}
public String getHeaderValue(int index) {
return getHeader(index).getValue();
}
public HeaderTable(int size) {
this.headers = new ArrayList<Http2Header>(size);
}
public HeaderTable() {
this.headers = new ArrayList<Http2Header>();
}
public void addHeader(Http2Header header) {
headers.add(header.getIndex(), header);
}
public List<Http2Header> getHeaders() {
return headers;
}
public static HeaderTable STATIC_HEADER_TABLE = new HeaderTable(62);
static {
STATIC_HEADER_TABLE.addHeader(new Http2Header(1, ":authority", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(2, ":method", "GET"));
STATIC_HEADER_TABLE.addHeader(new Http2Header(3, ":method", "POST"));
STATIC_HEADER_TABLE.addHeader(new Http2Header(4, ":path", "/"));
STATIC_HEADER_TABLE.addHeader(new Http2Header(5, ":path", "/index.html"));
STATIC_HEADER_TABLE.addHeader(new Http2Header(6, ":scheme", "http"));
STATIC_HEADER_TABLE.addHeader(new Http2Header(7, ":scheme", "https"));
STATIC_HEADER_TABLE.addHeader(new Http2Header(8, ":status", "200"));
STATIC_HEADER_TABLE.addHeader(new Http2Header(9, ":status", "204"));
STATIC_HEADER_TABLE.addHeader(new Http2Header(10, ":status", "206"));
STATIC_HEADER_TABLE.addHeader(new Http2Header(11, ":status", "304"));
STATIC_HEADER_TABLE.addHeader(new Http2Header(12, ":status", "400"));
STATIC_HEADER_TABLE.addHeader(new Http2Header(13, ":status", "404"));
STATIC_HEADER_TABLE.addHeader(new Http2Header(14, ":status", "500"));
STATIC_HEADER_TABLE.addHeader(new Http2Header(15, "accept-charset", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(16, "accept-encoding", "gzip, deflate"));
STATIC_HEADER_TABLE.addHeader(new Http2Header(17, "accept-language", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(18, "accept-ranges", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(19, "accept", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(20, "access-control-allow-origin", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(21, "age", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(22, "allow", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(23, "authorization", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(24, "cache-control", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(25, "content-disposition", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(26, "content-encoding", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(27, "content-language", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(28, "content-length", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(29, "content-location", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(30, "content-range", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(31, "content-type", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(32, "cookie", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(33, "date", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(34, "etag", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(35, "expect", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(36, "expires", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(37, "from", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(38, "host", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(39, "if-match", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(40, "if-modified-since", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(41, "if-none-match", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(42, "if-range", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(43, "if-unmodified-since", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(44, "last-modified", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(45, "link", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(46, "location", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(47, "max-forwards", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(48, "proxy-authenticate", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(49, "proxy-authorization", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(50, "range", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(51, "referer", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(52, "refresh", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(53, "retry-after", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(54, "server", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(55, "set-cookie", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(56, "strict-transport-security", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(57, "transfer-encoding", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(58, "user-agent", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(59, "vary", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(60, "via", ""));
STATIC_HEADER_TABLE.addHeader(new Http2Header(61, "www-authenticate", ""));
}
}
|
[
"8738115@qq.com"
] |
8738115@qq.com
|
de85773e7fe556e95f1d7ac08ca45137879bba2b
|
a715e8312a90d099b72c24e5b7da1372c9fe67fb
|
/android/android/src/com/android/tools/idea/editors/navigation/model/Locator.java
|
0600a8beea9ab43cc026cc5c125201be250d7a36
|
[
"Apache-2.0"
] |
permissive
|
wiltonlazary/bugvm-studio
|
ff98c1beca1f890013aa05ecd67f137a14a70c32
|
5861389424a51181c58178576c78cf35c0ceb1b5
|
refs/heads/master
| 2021-01-24T20:58:41.730805
| 2015-12-18T19:34:14
| 2015-12-18T19:34:14
| 56,322,614
| 2
| 1
| null | 2016-04-15T13:34:56
| 2016-04-15T13:34:56
| null |
UTF-8
|
Java
| false
| false
| 2,659
|
java
|
/*
* Copyright (C) 2013 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.tools.idea.editors.navigation.model;
import com.android.annotations.NonNull;
import com.android.annotations.Nullable;
public class Locator {
@NonNull
private final State state;
@Nullable
private final String fragmentClassName;
@Nullable
private final String viewId;
private Locator(@NonNull State state, @Nullable String fragmentClassName, @Nullable String viewId) {
this.state = state;
this.fragmentClassName = fragmentClassName;
this.viewId = viewId;
}
public static Locator of(@NonNull State state) {
return new Locator(state, null, null);
}
public static Locator of(@NonNull State state, @Nullable String viewName) {
return new Locator(state, null, viewName);
}
public static Locator of(@NonNull State state, @Nullable String fragmentClassName, @Nullable String viewName) {
return new Locator(state, fragmentClassName, viewName);
}
@NonNull
public State getState() {
return state;
}
@Nullable
public String getFragmentClassName() {
return fragmentClassName;
}
@Nullable
public String getViewId() {
return viewId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Locator locator = (Locator)o;
if (fragmentClassName != null ? !fragmentClassName.equals(locator.fragmentClassName) : locator.fragmentClassName != null) return false;
if (!state.equals(locator.state)) return false;
if (viewId != null ? !viewId.equals(locator.viewId) : locator.viewId != null) return false;
return true;
}
@Override
public int hashCode() {
int result = state.hashCode();
result = 31 * result + (fragmentClassName != null ? fragmentClassName.hashCode() : 0);
result = 31 * result + (viewId != null ? viewId.hashCode() : 0);
return result;
}
@Override
public String toString() {
return "Locator{" +
"state=" + state +
", viewName='" + viewId + '\'' +
'}';
}
}
|
[
"github@ibinti.com"
] |
github@ibinti.com
|
c648befdc60719edb8a3d2e1c3a71299208b7869
|
076b8e079f885488d74ad9209429c6ed964bd171
|
/corejavateacher/src/com/tz/day13/StudentComparator.java
|
fea621d2df7a4cc4d700324e36b092bbaa261aa7
|
[] |
no_license
|
jinrenyu/JavaEE
|
b987cddb53ee9cf9f58de60aa15c7fa5053579bd
|
6d6d4bd62160958d55167e59103e9768cc172396
|
refs/heads/master
| 2020-03-20T09:12:46.597602
| 2018-06-14T08:56:31
| 2018-06-14T08:56:31
| 137,331,180
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 422
|
java
|
/**
*
*/
package com.tz.day13;
import java.util.Comparator;
import com.tz.day11.Student;
/**本类用来演示 学生比较器
* @author 吴老师
*
* 2017年3月16日下午4:37:52
*/
public class StudentComparator implements Comparator<Student>
{
@Override
public int compare(Student o1, Student o2) {
System.out.println(">>> invoked...");
//定义比较的逻辑
return o1.getAge() - o2.getAge();
}
}
|
[
"1526118253@qq.com"
] |
1526118253@qq.com
|
363238fddaedcd4e97347370874c88252b049a0d
|
e91f2c87a930a33a23c8896e47fa782daba80eed
|
/src/main/java/com/company/flint/States.java
|
abd8bf7f5b8259dd82bf64d42c1ebb1bbd220ef1
|
[
"MIT"
] |
permissive
|
jakobehmsen/flint
|
3f23cb2d09a255264f8a032afcbf666fc305886b
|
d0e91543c0e43cd3ce354afe1142467fb92a324e
|
refs/heads/master
| 2020-06-13T17:00:26.377248
| 2019-08-30T15:44:10
| 2019-08-30T15:44:10
| 194,723,214
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,866
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.company.flint;
/**
*
* @author jakob
*/
public class States {
public static State finish = new State() {
@Override
public State nextState(Evaluator evaluator) {
evaluator.stop();
return this;
}
@Override
public String toString() {
return "finish";
}
};
public static State invoke(State.Callable c, State.Continuation continuation) {
return new State() {
@Override
public State nextState(Evaluator evaluator) {
return c.invoke(evaluator, continuation);
}
@Override
public String toString() {
return "invoke " + c + " for " + continuation;
}
};
}
public static State continueWith(Object result, State.Continuation continuation) {
return new State() {
@Override
public State nextState(Evaluator evaluator) {
return continuation.nextState(evaluator, result);
}
@Override
public String toString() {
return "continue-with " + (result != null ? result + " for " : "") + continuation;
}
};
}
public static State.Continuation always(State state) {
return new State.Continuation() {
@Override
public State nextState(Evaluator evaluator, Object result) {
return state;
}
@Override
public String toString() {
return "" + state;
}
};
}
public static State.Callable respond(State.Callable expr) {
return new State.Callable() {
@Override
public State invoke(Evaluator evaluator, State.Continuation continuation) {
return States.invoke(expr, new State.Continuation() {
@Override
public State nextState(Evaluator evaluator, Object result) {
evaluator.getFrame().push(result);
evaluator.getFrame().respondWith(evaluator);
return continueWith(result, continuation);
}
});
}
};
}
public static State.Callable push(State.Callable expr) {
return new State.Callable() {
@Override
public State invoke(Evaluator evaluator, State.Continuation continuation) {
return States.invoke(expr, new State.Continuation() {
@Override
public State nextState(Evaluator evaluator, Object result) {
evaluator.getFrame().push(result);
return continueWith(null, continuation);
}
@Override
public String toString() {
return "push";
}
});
}
@Override
public String toString() {
return "push " + expr;
}
};
}
public static State.Callable exprs() {
return null;
}
public static State.Callable expr() {
return new State.Callable() {
@Override
public State invoke(Evaluator evaluator, State.Continuation continuation) {
if(evaluator.getFrame().getMessageStream().peek() instanceof Long) {
if(evaluator.getFrame().getMessageStream().peekEquals(1, evaluator.getSymbolTable().getSymbolCodeFromString("<-"))) {
Long name = (Long) evaluator.getFrame().getMessageStream().consume();
evaluator.getFrame().getMessageStream().consume();
return States.invoke(expr(), new State.Continuation() {
@Override
public State nextState(Evaluator evaluator, Object result) {
evaluator.getFrame().push(result);
evaluator.getFrame().store(name);
return continueWith(result, continuation);
}
@Override
public String toString() {
return "expr";
}
});
}
}
return States.invoke(expr1(), continuation);
}
@Override
public String toString() {
return "expr";
}
};
}
public static State.Callable expr1() {
return new State.Callable() {
@Override
public State invoke(Evaluator evaluator, State.Continuation continuation) {
Object obj = evaluator.getFrame().getMessageStream().consume();
return continueWith(obj, continuation);
}
@Override
public String toString() {
return "expr1";
}
};
}
public static State.Callable consume() {
return new State.Callable() {
@Override
public State invoke(Evaluator evaluator, State.Continuation continuation) {
Object obj = evaluator.getFrame().getMessageStream().consume();
return continueWith(obj, continuation);
}
@Override
public String toString() {
return "consume";
}
};
}
}
|
[
"jakobehmsen.github@gmail.com"
] |
jakobehmsen.github@gmail.com
|
802e49a3a86da18090bffd5d6d55d768fba96191
|
ec5fe8f20dfe82b479cea3da24c78190f768e086
|
/cas-4.1.0/cas-server-extension-clearpass/src/test/java/org/jasig/cas/extension/clearpass/EncryptedMapDecoratorTests.java
|
f4cb2edb44484a5256021ed45813088124902445
|
[
"BSD-3-Clause",
"CDDL-1.1",
"LGPL-2.0-or-later",
"W3C",
"WTFPL",
"SAX-PD",
"CDDL-1.0",
"MIT",
"MPL-1.1",
"LicenseRef-scancode-jsr-107-jcache-spec-2013",
"EPL-1.0",
"Classpath-exception-2.0",
"LGPL-2.1-only",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown"
] |
permissive
|
hsj-xiaokang/springboot-shiro-cas-mybatis
|
b4cf76dc2994d63f771da0549cf711ea674e53bf
|
3673a9a9b279dd1e624c1a7a953182301f707997
|
refs/heads/master
| 2022-06-26T15:28:49.854390
| 2020-12-06T04:43:13
| 2020-12-06T04:43:13
| 103,009,179
| 42
| 24
|
MIT
| 2022-06-25T07:27:42
| 2017-09-10T06:35:28
|
Java
|
UTF-8
|
Java
| false
| false
| 3,677
|
java
|
/*
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo 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 the following location:
*
* 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.jasig.cas.extension.clearpass;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.fail;
import java.util.Map;
import net.sf.ehcache.Cache;
import net.sf.ehcache.CacheManager;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* @author Scott Battaglia
* @since 1.0.6
*/
public class EncryptedMapDecoratorTests {
private Map<String, String> map;
private EncryptedMapDecorator decorator;
private CacheManager cacheManager;
@Before
public void setUp() throws Exception {
try {
this.cacheManager = new CacheManager(this.getClass().getClassLoader()
.getResourceAsStream("ehcacheClearPass.xml"));
final Cache cache = this.cacheManager.getCache("clearPassCache");
this.map = new EhcacheBackedMap(cache);
this.decorator = new EncryptedMapDecorator(map);
} catch (final Exception e) {
fail(e.getMessage());
}
}
@After
public void tearDown() throws Exception {
this.cacheManager.removalAll();
this.cacheManager.shutdown();
}
@Test
public void addItem() {
final String key = "MY_KEY";
final String value = "MY_VALUE";
this.decorator.put(key, value);
assertEquals(value, this.decorator.get(key));
assertNull(this.map.get(key));
}
@Test
public void addManyItems() {
final int totalItems = 100;
for (int i = 0; i < totalItems; i++) {
this.decorator.put("key" + i, "value" + i);
}
assertEquals(this.decorator.size(), totalItems);
for (int i = 0; i < totalItems; i++) {
assertNull(this.map.get("key" + i));
assertEquals("value" + i, this.decorator.get("key" + i));
}
}
@Test
public void addAndRemoveItem() {
final String key1 = "MY_REALLY_KEY";
final String value1 = "MY_VALUE";
final String key2 = "MY_KEY2";
final String value2 = "MY_VALUE2";
this.decorator.put(key1, value1);
this.decorator.put(key2, value2);
assertEquals(value1, this.decorator.get(key1));
assertEquals(value2, this.decorator.get(key2));
assertNull(this.map.get(key1));
assertNull(this.map.get(key2));
assertEquals(value1, this.decorator.remove(key1));
assertEquals(value2, this.decorator.remove(key2));
assertNull(this.decorator.get(key1));
assertNull(this.decorator.get(key2));
}
@Test
public void addNullKeyAndValue() {
this.decorator.put(null, null);
assertNull(this.decorator.get(null));
}
@Test
public void addNullValue() {
this.decorator.put("hello", null);
assertNull(this.decorator.get("hello"));
}
}
|
[
"2356899074@qq.com"
] |
2356899074@qq.com
|
bf48ea70d6d23f1864bc81723eecb2a4d112ac9f
|
f7160c0f0526cc5afc0fe4e6f06d384394059aa1
|
/cellang/cl-webc/src/main/java/org/cellang/webc/main/client/handler/headeritem/CreateTableHeaderItemHandler.java
|
93089fbda08b138b25e43e2832acbdb4ea1ee2a4
|
[] |
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
| 710
|
java
|
package org.cellang.webc.main.client.handler.headeritem;
import org.cellang.clwt.commons.client.frwk.HeaderItemEvent;
import org.cellang.clwt.core.client.Container;
import org.cellang.clwt.core.client.event.Event.EventHandlerI;
import org.cellang.webc.main.client.MainControlI;
import org.cellang.webc.main.client.handler.WebcHandlerSupport;
public class CreateTableHeaderItemHandler extends WebcHandlerSupport implements EventHandlerI<HeaderItemEvent> {
public CreateTableHeaderItemHandler(Container c) {
super(c);
}
@Override
public void handle(HeaderItemEvent t) {
MainControlI mc = this.getControl(MainControlI.class, true);
mc.openCreateTableView(true);//
}
}
|
[
"wkz808@163.com"
] |
wkz808@163.com
|
4be2fe196d271422e309740af13018300dd97714
|
a7140b9ef65530b99903ffd9b53e6bd32d41ed10
|
/yule-mongo/src/main/java/com/yule/mongo/company/query/BalanceQuery.java
|
c6948f27e274b522dd7d73ef343f955ee7cfc034
|
[] |
no_license
|
FantasybabyChange/yule_workspace
|
0c0b2c5cd59f866b70d24ac7c1f9a12df24b9f9d
|
5125a39ac04378a4f6c6225dd85fcc46939f4451
|
refs/heads/master
| 2023-07-21T01:13:22.917184
| 2021-08-17T13:23:06
| 2021-08-17T13:23:06
| 397,264,689
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 880
|
java
|
package com.yule.mongo.company.query;
import java.io.Serializable;
public class BalanceQuery implements Serializable {
/**
*
*/
private static final long serialVersionUID = 3193977797295790434L;
private String month;
private String start_time;
private String end_time;
private String company_id;
public String getStart_time() {
return start_time;
}
public void setStart_time(String start_time) {
this.start_time = start_time;
}
public String getEnd_time() {
return end_time;
}
public void setEnd_time(String end_time) {
this.end_time = end_time;
}
public String getCompany_id() {
return company_id;
}
public void setCompany_id(String company_id) {
this.company_id = company_id;
}
public String getMonth() {
return month;
}
public void setMonth(String month) {
this.month = month;
}
public BalanceQuery() {
super();
}
}
|
[
"625353861@qq.com"
] |
625353861@qq.com
|
fa9b0e74665a7dfecaaba25b37ec1c344262b5a5
|
ed604b012ff7040db218efd1b9b49c514e15e14c
|
/src/main/java/com/desgreen/education/siapp/app_email/EmailService.java
|
9162821064a44edd3e1c549de21ffec1fdebc9dc
|
[
"Unlicense"
] |
permissive
|
bagus-stimata/siapp
|
2f2edf0be9c00c629faffa050bf060ccd3d3c0c7
|
67f6ddde5efcf01959100f084da402453d7a419d
|
refs/heads/master
| 2022-12-25T09:05:36.261606
| 2020-10-11T11:28:03
| 2020-10-11T11:28:03
| 284,419,437
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,739
|
java
|
package com.desgreen.education.siapp.app_email;
import com.desgreen.education.siapp.AppPublicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.mail.javamail.JavaMailSenderImpl;
import org.springframework.mail.javamail.MimeMessageHelper;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import javax.mail.internet.MimeMessage;
import java.util.Properties;
@Service
public class EmailService {
@Autowired
public JavaMailSender mailSender;
public JavaMailSenderImpl javaMailSender = new JavaMailSenderImpl();
public EmailService(){
try {
// javaMailSender.setUsername("helpdesk1@des-green.com");
javaMailSender.setUsername("ponpesldii@ponpesdahlanikhsan.com");
javaMailSender.setPassword("Welcome123456789");
Properties properties = new Properties();
properties.put("mail.transport.protocol", "smtp");
properties.put("mail.smtp.ssl.enable", "true");
properties.put("mail.smtp.auth", "true");
properties.put("mail.debug", "true");
properties.put("mail.smtp.connectiontimeout", 6000);
// properties.put("mail.smtp.timeout", 6000); //sellau bikin error: Jangan pakai ini
// properties.put("mail.smtp.starttls.enable", "true");
javaMailSender.setJavaMailProperties(properties);
// javaMailSender.setHost("mail.des-green.com");
javaMailSender.setHost("mail.ponpesdahlanikhsan.com");
javaMailSender.setPort(465);
// mailSender.setPort(587); //Not SSL
}catch (Exception ex) {}
}
@Async
public void sendSimpleMessage(String to, String subject, String textMesage) {
SimpleMailMessage msg = new SimpleMailMessage();
msg.setFrom(AppPublicService.PUBLIC_HOST_EMAIL); //Dummy aslinya ada di setting: Tapi harus ada
// msg.setTo("bagus.stimata@gmail.com", "des.jatim1@gmail.com", "helpdesk1@des-green.com");
msg.setTo(to);
msg.setSubject(subject);
// msg.setText("Hello World \n Spring Boot Email ari mas bagus winanro");
msg.setText(textMesage);
mailSender.send(msg);
}
@Async
public void sendSimpleHtmlMessage(String to, String subject, String htmlContent){
MimeMessage mimeMessage = this.mailSender.createMimeMessage();
MimeMessageHelper message = new MimeMessageHelper(mimeMessage, "UTF-8");
try {
message.setFrom(AppPublicService.PUBLIC_HOST_EMAIL); //Dummy aslinya ada di setting: Tapi harus ada
message.setTo(to);
message.setSubject(subject);
message.setText(htmlContent, true);
}catch (Exception ex){}
mailSender.send(mimeMessage);
}
@Async
public void sendSimpleMessageManual(String to, String subject, String textMesage) throws Exception {
SimpleMailMessage msg = new SimpleMailMessage();
msg.setFrom(AppPublicService.PUBLIC_HOST_EMAIL); //Dummy aslinya ada di setting: Tapi harus ada
// msg.setFrom("bagus.stimata@gmail.com");
// msg.setTo("bagus.stimata@gmail.com", "des.jatim1@gmail.com", "helpdesk1@des-green.com");
msg.setTo(to);
msg.setSubject(subject);
// msg.setText("Hello World \n Spring Boot Email Boss");
msg.setText(textMesage);
javaMailSender.send(msg);
}
@Bean
public void testImplement(){
System.out.println("hello oke ini");
}
}
|
[
"bagus.stimata@gmail.com"
] |
bagus.stimata@gmail.com
|
e2165ee5cd761ae37a71f08a8690cb648a82a78b
|
cfe621e8c36e6ac5053a2c4f7129a13ea9f9f66b
|
/AndroidApplications/com.zeptolab.ctr.ads-912244/src/com/google/ads/mediation/jsadapter/JavascriptServerParameters.java
|
032b8e55ef1416ad93e194124c685f8e11ca3877
|
[] |
no_license
|
linux86/AndoirdSecurity
|
3165de73b37f53070cd6b435e180a2cb58d6f672
|
1e72a3c1f7a72ea9cd12048d9874a8651e0aede7
|
refs/heads/master
| 2021-01-11T01:20:58.986651
| 2016-04-05T17:14:26
| 2016-04-05T17:14:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 526
|
java
|
package com.google.ads.mediation.jsadapter;
import com.google.ads.mediation.MediationServerParameters;
public class JavascriptServerParameters extends MediationServerParameters {
@Parameter(name = "adxtym_height", required = false)
public Integer height;
@Parameter(name = "adxtym_html", required = true)
public String htmlScript;
@Parameter(name = "adxtym_passback_url", required = false)
public String passBackUrl;
@Parameter(name = "adxtym_width", required = false)
public Integer width;
}
|
[
"jack.luo@mail.utoronto.ca"
] |
jack.luo@mail.utoronto.ca
|
48a131601be7149a19f7bedf7c8e813754864d35
|
760e696ab78d9347b62381ce395c9023b05c28a6
|
/jtsapp/src/main/java/com/vividsolutions/jtstest/testbuilder/geom/EnvelopeUtil.java
|
0f656c38f0088c3aea727e371359a650ff56fd00
|
[] |
no_license
|
hastebrot/jts-topo-suite
|
0c532641147d3880b91312dff375d9226585b0d1
|
8f0bd55cb7c837799c6b356af16d1a23b2114c29
|
refs/heads/master
| 2016-09-05T22:54:04.073815
| 2015-06-02T05:15:19
| 2015-06-02T05:15:19
| 37,997,834
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 444
|
java
|
package com.vividsolutions.jtstest.testbuilder.geom;
import com.vividsolutions.jts.geom.Envelope;
public class EnvelopeUtil
{
public static double minExtent(Envelope env)
{
double w = env.getWidth();
double h = env.getHeight();
if (w < h) return w;
return h;
}
public static double maxExtent(Envelope env)
{
double w = env.getWidth();
double h = env.getHeight();
if (w > h) return w;
return h;
}
}
|
[
"dr_jts@3b1963ad-ff86-43ac-bf88-fa91f6ade54d"
] |
dr_jts@3b1963ad-ff86-43ac-bf88-fa91f6ade54d
|
3cbe73f1f99b2971fa5353e03cf30c942822ccc1
|
de3cc32c392bda4cbc33903259f99194c78bf4d7
|
/src/main/java/io/github/jhipster/application/service/mapper/ListTeeTypeMapper.java
|
7afc6d95349aa3cebe70e93a36dbf35b668187fa
|
[] |
no_license
|
Orvas/jhipster-sample-application
|
526d4a05098dd508ee66d478b2e419f9b65af96d
|
86da109ed1f76fc89370d9d3428d5cbc09ace482
|
refs/heads/master
| 2022-12-22T21:07:49.001252
| 2019-05-31T14:25:34
| 2019-05-31T14:25:34
| 189,054,767
| 1
| 0
| null | 2022-12-16T04:52:31
| 2019-05-28T15:24:59
|
Java
|
UTF-8
|
Java
| false
| false
| 750
|
java
|
package io.github.jhipster.application.service.mapper;
import io.github.jhipster.application.domain.*;
import io.github.jhipster.application.service.dto.ListTeeTypeDTO;
import org.mapstruct.*;
/**
* Mapper for the entity {@link ListTeeType} and its DTO {@link ListTeeTypeDTO}.
*/
@Mapper(componentModel = "spring", uses = {})
public interface ListTeeTypeMapper extends EntityMapper<ListTeeTypeDTO, ListTeeType> {
@Mapping(target = "teeHists", ignore = true)
ListTeeType toEntity(ListTeeTypeDTO listTeeTypeDTO);
default ListTeeType fromId(Long id) {
if (id == null) {
return null;
}
ListTeeType listTeeType = new ListTeeType();
listTeeType.setId(id);
return listTeeType;
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
97655161363ec04096984c9f9f60f7cb0be5e420
|
a7bff68f0adfc377c97777534f780d9ed4ed62a4
|
/code/2009-9-1/src/com/umt/runnable/TestJoin.java
|
1cd7cb5d9196208e467d6302e8f462431674ef07
|
[] |
no_license
|
salingers/Jee
|
0a683715c62fd1e7c2d16d29f1c311506a23ed3b
|
c6ba53bdc87c60740a7f3a284518b9dd2c3f8d9e
|
refs/heads/master
| 2021-01-11T05:42:08.078111
| 2016-11-22T05:09:55
| 2016-11-22T05:09:55
| 71,548,561
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 501
|
java
|
package com.umt.runnable;
public class TestJoin extends Thread{
public void run() {
for(int i = 0; i < 100; i++){
System.out.println(this.getName() + "_____" + i);
}
}
/**
* @param args
*/
public static void main(String[] args) {
TestJoin tj1 = new TestJoin();
tj1.setName("tj1");
tj1.start();
try {
tj1.join();
} catch (InterruptedException e1) {
e1.printStackTrace();
}
TestJoin tj2 = new TestJoin();
tj2.setName("tj2");
tj2.start();
}
}
|
[
"salingersms@msn.com"
] |
salingersms@msn.com
|
3250864dc4b45a054631299a4656d31f8af45fc9
|
191a88918b1427cd9a6a298d01338ba015290536
|
/karate-core/src/main/java/com/intuit/karate/http/HttpBody.java
|
719df74ab9e014a42fdea05920ce775f26b94a28
|
[
"MIT"
] |
permissive
|
venkatramanareddy/karate
|
8f47947cbca4a93e54a7a81407986aaa42f4d7aa
|
b02ba80ea6c3186cc938421a68ad0e17f25731cf
|
refs/heads/master
| 2021-01-20T23:11:29.007515
| 2017-08-31T17:28:52
| 2017-08-31T17:28:52
| 101,843,148
| 0
| 0
| null | 2017-08-30T05:55:37
| 2017-08-30T05:55:37
| null |
UTF-8
|
Java
| false
| false
| 4,298
|
java
|
/*
* The MIT License
*
* Copyright 2017 Intuit Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.intuit.karate.http;
import java.io.InputStream;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.io.IOUtils;
/**
*
* @author pthomas3
*/
public class HttpBody {
private final byte[] bytes;
private final InputStream stream;
private final MultiValuedMap fields;
private final List<MultiPartItem> parts;
private final String contentType;
public boolean isStream() {
return stream != null;
}
public boolean isUrlEncoded() {
return fields != null;
}
public boolean isMultiPart() {
return parts != null;
}
public byte[] getBytes() {
if (isStream()) {
try {
return IOUtils.toByteArray(stream);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
return bytes;
}
public InputStream getStream() {
return stream;
}
public String getContentType() {
return contentType;
}
public List<MultiPartItem> getParts() {
return parts;
}
public Map<String, String[]> getParameters() {
if (fields == null) {
return Collections.EMPTY_MAP;
}
Map<String, String[]> map = new LinkedHashMap<>(fields.size());
for (Map.Entry<String, List> entry : fields.entrySet()) {
List list = entry.getValue();
String[] values = new String[list.size()];
for (int i = 0; i < values.length; i++) {
values[i] = list.get(i) + "";
}
map.put(entry.getKey(), values);
}
return map;
}
private HttpBody(byte[] bytes, InputStream stream, String contentType) {
this.bytes = bytes;
this.stream = stream;
this.contentType = contentType;
this.fields = null;
this.parts = null;
}
private HttpBody(MultiValuedMap fields, String contentType) {
this.bytes = null;
this.stream = null;
this.contentType = contentType;
this.fields = fields;
this.parts = null;
}
private HttpBody(List<MultiPartItem> parts, String contentType) {
this.bytes = null;
this.stream = null;
this.contentType = contentType;
this.fields = null;
this.parts = parts;
}
public static HttpBody string(String value, String contentType) {
return new HttpBody(value.getBytes(), null, contentType);
}
public static HttpBody stream(InputStream stream, String contentType) {
return new HttpBody(null, stream, contentType);
}
public static HttpBody bytes(byte[] bytes, String contentType) {
return new HttpBody(bytes, null, contentType);
}
public static HttpBody formFields(MultiValuedMap fields, String contentType) {
return new HttpBody(fields, contentType);
}
public static HttpBody multiPart(List<MultiPartItem> parts, String contentType) {
return new HttpBody(parts, contentType);
}
}
|
[
"peter_thomas@intuit.com"
] |
peter_thomas@intuit.com
|
aafc8e4e79c04f30f28561a590fc358e4eff889a
|
b43ee67db8c74a1f6efdac9ad833fbdb425eb1a0
|
/src/main/java/net/atos/spring_webapp/model/Permission.java
|
7ef3e563e0f3eaf42f6c87438539cc9db7b80fc9
|
[] |
no_license
|
MikiKru/spring_app
|
3b71b282a38573473c0397c90dfe41e5009d7fd9
|
9895e118769cbe18ebb783f523e4c3f2ac0425fe
|
refs/heads/master
| 2020-09-13T19:02:00.893377
| 2019-11-22T13:41:33
| 2019-11-22T13:41:33
| 222,876,184
| 0
| 0
| null | 2019-11-22T13:33:56
| 2019-11-20T07:24:52
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 375
|
java
|
package net.atos.spring_webapp.model;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
@NoArgsConstructor
@Data
@Entity
public class Permission {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "permission_id")
private Byte permissionId;
@Column(name = "role_name")
private String roleName;
}
|
[
"michal_kruczkowski@o2.pl"
] |
michal_kruczkowski@o2.pl
|
511cc8fcb72f8656288bf136e2f40d2bd6f1bde4
|
324fea83bc8135ab591f222f4cefa19b43d30944
|
/src/main/java/ru/lanbilling/webservice/wsdl/BlkVgroup.java
|
f94181198dc48e3a2ae6ad0fd1b055b11fda47f8
|
[
"MIT"
] |
permissive
|
kanonirov/lanb-client
|
2c14fac4d583c1c9f524634fa15e0f7279b8542d
|
bfe333cf41998e806f9c74ad257c6f2d7e013ba1
|
refs/heads/master
| 2021-01-10T08:47:46.996645
| 2015-10-26T07:51:35
| 2015-10-26T07:51:35
| 44,953,384
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,705
|
java
|
package ru.lanbilling.webservice.wsdl;
import javax.annotation.Generated;
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;
/**
* <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="id" type="{http://www.w3.org/2001/XMLSchema}long"/>
* <element name="state" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"id",
"state"
})
@XmlRootElement(name = "blkVgroup")
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11")
public class BlkVgroup {
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11")
protected long id;
@XmlElement(defaultValue = "")
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11")
protected String state;
/**
* Gets the value of the id property.
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11")
public long getId() {
return id;
}
/**
* Sets the value of the id property.
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11")
public void setId(long value) {
this.id = value;
}
/**
* Gets the value of the state property.
*
* @return
* possible object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11")
public String getState() {
return state;
}
/**
* Sets the value of the state property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11")
public void setState(String value) {
this.state = value;
}
}
|
[
"kio@iteratia.com"
] |
kio@iteratia.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.