blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
410
content_id
stringlengths
40
40
detected_licenses
listlengths
0
51
license_type
stringclasses
2 values
repo_name
stringlengths
5
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
80
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
684M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
132 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
9.45M
extension
stringclasses
28 values
content
stringlengths
3
9.45M
authors
listlengths
1
1
author_id
stringlengths
0
352
a0f435b47c67df7a413b872a3bd63ac3a2e92323
9dd16bfed09451fed2d520a58be65c651507ef08
/build/generated/jax-wsCache/AdministradorRSA/co/gov/banrep/s3/ObjectFactory.java
4e2bb435508fc7285ac97ab55a00d0ad166043ce
[]
no_license
mariourquia23/SSO_GAS-JSP
b8336433e0ac628905a6c888e8f3f07aa655b8fb
33821906d1ede39b646719be75784c82b9a105bc
refs/heads/master
2020-04-05T07:46:12.362033
2016-01-22T02:06:49
2016-01-22T02:06:49
25,603,969
0
1
null
null
null
null
UTF-8
Java
false
false
3,904
java
package co.gov.banrep.s3; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlElementDecl; import javax.xml.bind.annotation.XmlRegistry; import javax.xml.namespace.QName; /** * This object contains factory methods for each * Java content interface and Java element interface * generated in the co.gov.banrep.s3 package. * <p>An ObjectFactory allows you to programatically * construct new instances of the Java representation * for XML content. The Java representation of XML * content can consist of schema derived interfaces * and classes representing the binding of schema * type definitions, element declarations and model * groups. Factory methods for each of these are * provided in this class. * */ @XmlRegistry public class ObjectFactory { private final static QName _AdministradorRSAException_QNAME = new QName("http://banrep.gov.co/s3", "AdministradorRSAException"); private final static QName _AutenticarRSA_QNAME = new QName("http://banrep.gov.co/s3", "autenticarRSA"); private final static QName _AutenticarRSAResponse_QNAME = new QName("http://banrep.gov.co/s3", "autenticarRSAResponse"); /** * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: co.gov.banrep.s3 * */ public ObjectFactory() { } /** * Create an instance of {@link AutenticarRSAResponse } * */ public AutenticarRSAResponse createAutenticarRSAResponse() { return new AutenticarRSAResponse(); } /** * Create an instance of {@link AutenticarRSA } * */ public AutenticarRSA createAutenticarRSA() { return new AutenticarRSA(); } /** * Create an instance of {@link AdministradorRSAException } * */ public AdministradorRSAException createAdministradorRSAException() { return new AdministradorRSAException(); } /** * Create an instance of {@link MensajeBase } * */ public MensajeBase createMensajeBase() { return new MensajeBase(); } /** * Create an instance of {@link PeticionWSAutenticarUsuarioRSA } * */ public PeticionWSAutenticarUsuarioRSA createPeticionWSAutenticarUsuarioRSA() { return new PeticionWSAutenticarUsuarioRSA(); } /** * Create an instance of {@link RespuestaWSAutenticarUsuarioRSA } * */ public RespuestaWSAutenticarUsuarioRSA createRespuestaWSAutenticarUsuarioRSA() { return new RespuestaWSAutenticarUsuarioRSA(); } /** * Create an instance of {@link JAXBElement }{@code <}{@link AdministradorRSAException }{@code >}} * */ @XmlElementDecl(namespace = "http://banrep.gov.co/s3", name = "AdministradorRSAException") public JAXBElement<AdministradorRSAException> createAdministradorRSAException(AdministradorRSAException value) { return new JAXBElement<AdministradorRSAException>(_AdministradorRSAException_QNAME, AdministradorRSAException.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link AutenticarRSA }{@code >}} * */ @XmlElementDecl(namespace = "http://banrep.gov.co/s3", name = "autenticarRSA") public JAXBElement<AutenticarRSA> createAutenticarRSA(AutenticarRSA value) { return new JAXBElement<AutenticarRSA>(_AutenticarRSA_QNAME, AutenticarRSA.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link AutenticarRSAResponse }{@code >}} * */ @XmlElementDecl(namespace = "http://banrep.gov.co/s3", name = "autenticarRSAResponse") public JAXBElement<AutenticarRSAResponse> createAutenticarRSAResponse(AutenticarRSAResponse value) { return new JAXBElement<AutenticarRSAResponse>(_AutenticarRSAResponse_QNAME, AutenticarRSAResponse.class, null, value); } }
[ "mariourquia@outlook.com" ]
mariourquia@outlook.com
1a708ee05d80095f6191865f33fb9d653a81bcee
e28fda7a644c68996afe73a979ba030d56cac73a
/src/org/mesa/xml/b2mml/CreateDateType.java
4e416f6842f4bbb96d086213c9548c362732e2b0
[ "MIT" ]
permissive
jpdillingham/B2MML4j
78b3947b323d7693f4b00886fa3504785c06c3fe
8ba8019e1b997c6109adcd895f2f9aefc7aa0bdb
refs/heads/master
2021-01-11T15:10:08.365551
2017-03-25T22:56:13
2017-03-25T22:56:13
80,306,470
5
3
null
null
null
null
UTF-8
Java
false
false
1,060
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2017.01.28 at 02:10:24 PM CST // package org.mesa.xml.b2mml; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for CreateDateType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="CreateDateType"> * &lt;simpleContent> * &lt;restriction base="&lt;http://www.mesa.org/xml/B2MML-V0600>DateTimeType"> * &lt;/restriction> * &lt;/simpleContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CreateDateType") public class CreateDateType extends DateTimeType { }
[ "jpdillingham@gmail.com" ]
jpdillingham@gmail.com
f26ede9db47ed1eb178c465f7bc2a9d05e37f7cb
8c6fe2aff925e9e0480b77da94405de889e898a1
/数据结构/src/binarysorttree/BinarySortTreeDemo.java
8b8aab03fbeb62bbc9f3888516f09f33f420d091
[]
no_license
yinjinsong/java-
da89cf63721cadf5519b29deddb984bcad753e79
2460e448339bc1ba3836a6d5a08333d20ac5d06d
refs/heads/master
2022-12-03T01:35:56.590644
2020-08-19T01:58:37
2020-08-19T01:58:37
283,743,943
0
0
null
null
null
null
UTF-8
Java
false
false
7,284
java
package binarysorttree; public class BinarySortTreeDemo { public static void main(String[] args) { int[] arr = {7, 3, 10, 12, 5, 1, 9, 2}; BinarySortTree binarySortTree = new BinarySortTree(); for (int i = 0; i < arr.length; i++) { binarySortTree.add(new Node(arr[i])); } binarySortTree.delNode(10); binarySortTree.delNode(3); binarySortTree.delNode(7); binarySortTree.infixOrder(); } } class BinarySortTree { private Node root; public Node getRoot() { return root; } /** * * @param node 传入的结点(当做二叉排序树的根结点) * @return 返回的 以node 为根结点的二叉排序树的最小结点的值 */ public int delRightTreeMin(Node node) { Node target = node; while (target.left != null) { target = target.left; } delNode(target.value); return target.value; } public int delLeftTreeMax(Node node) { Node targrt = node; while (targrt.right != null) { targrt = targrt.right; } delNode(targrt.value); return targrt.value; } /** * 删除节点 * @param value */ public void delNode(int value) { if (root == null) { return; } else { //1.需求先去找到要删除的结点 targetNode Node targetNode = search(value); if (targetNode == null) { return; } //如果我们发现当前这颗二叉排序树只有一个根结点 if (root.left == null && root.right == null) { root = null; return; } //去找到targetNode的父结点 Node parent = searchParent(value); //如果要删除的结点是叶子结点 if (targetNode.left == null && targetNode.right == null) { //判断targetNode 是父结点的左子结点,还是右子结点 if (parent.left != null && parent.left.value == value) { parent.left = null; } else if (parent.right != null && parent.right.value == value) { parent.right = null; } } //删除有两颗子树的节点 else if (targetNode.right != null && targetNode.left != null) { //删除右子树最小的节点,并将当前结点置为最小 int minVal = delLeftTreeMax(targetNode.left); targetNode.value = minVal; } // 删除只有一颗子树的结点 else { //如果要删除的结点有左子结点 if (targetNode.left != null) { if (parent != null) { //如果 targetNode 是 parent 的左子结点 if (parent.left.value == targetNode.value) { parent.left = targetNode.left; } else { parent.right = targetNode.left; } } else { //parent为null,则删除的结点是根节点 root = targetNode.left; } } else { //如果要删除的结点有右子结点 if (parent != null) { //如果 targetNode 是 parent 的左子结点 if (parent.left.value == value) { parent.left = targetNode.right; } else { parent.right = targetNode.right; } } else { root = targetNode.right; } } } } } //查找父结点 public Node searchParent(int value) { if(root == null) { return null; } else { return root.searchParent(value); } } //查找要删除的结点 public Node search(int value) { if(root == null) { return null; } else { return root.search(value); } } /** * 二叉排序树添加结点 * @param node */ public void add(Node node) { if (root == null) { root = node; } else { root.add(node); } } /** * 中序遍历 */ public void infixOrder() { if (root == null) { System.out.println("二叉排序树为空,不能遍历"); } else { root.infixOrder(); } } } class Node { int value; Node left; Node right; public Node(int value) { this.value = value; } @Override public String toString() { return "Node{" + "value=" + value + '}'; } /** * * @param value 要找到的结点的值 * @return 返回的是要删除的结点的父结点,如果没有就返回null */ public Node searchParent(int value) { //当前结点就是targetNode的父结点 if ((this.left != null && this.left.value == value) || (this.right != null && this.right.value == value)) { return this; } else { //如果查找的值小于当前结点的值, 并且当前结点的左子结点不为空 if (value < this.value && this.left != null) { return this.left.searchParent(value); } else if (value >= this.value && this.right != null) { return this.right.searchParent(value); } else { return null; } } } /** * 查找要删除的结点 * @param value * @return 如果找到返回该结点,否则返回null */ public Node search(int value) { if (value == this.value) { return this; } else if (value < this.value) { if (this.left != null) { return this.left.search(value); } else { return null; } } else { if (this.right != null) { return this.right.search(value); } else { return null; } } } /** * 二叉排序树添加结点,小的在左结点,大的在右结点 * @param node */ public void add(Node node) { if (node == null) { return; } if (node.value < this.value) { if (this.left == null) { this.left = node; } else { this.left.add(node); } } else { if (this.right == null) { this.right = node; } else { this.right.add(node); } } } //中序遍历 public void infixOrder() { if (this.left != null) { this.left.infixOrder(); } System.out.println(this); if (this.right != null) { this.right.infixOrder(); } } }
[ "909078462@qq.com" ]
909078462@qq.com
c448e7292b2da6c4d812d63400bf6187179f3f26
c4b5dcd19d6d994e2b0db325f7bcfd3bbf39bc23
/src/main/java/mobiquityinc/packer/exception/APIException.java
654e473299177a121f58ba553dae97922ad2cbe3
[]
no_license
slychops/thing-packer
70e6599bc6ad920b682a8a6c74fdb67c55ad1708
caa14fd3343e614c242349aeeead92a1385948ab
refs/heads/master
2020-08-01T22:52:49.134450
2019-09-27T14:00:58
2019-09-27T14:00:58
211,145,183
0
0
null
null
null
null
UTF-8
Java
false
false
403
java
package mobiquityinc.packer.exception; public class APIException extends RuntimeException{ public APIException(String message) { super(message); } public APIException(String message, Throwable cause) { super(message, cause); } public static void checkCondition(boolean condition, String message) { if (!condition) throw new APIException(message); } }
[ "richies75@gmail.com" ]
richies75@gmail.com
db3cf7f158d18880474cc02ad2808e532c47ab73
427d9bcc1fd79b4eee7ed4f9f56a4d74bf94c949
/src/edu/arhs/team1100/ultimateascent/commands/shooter/CameraTiltShooterCommand.java
601142e8ebbbffa193db0dbb1941e8d566adfc19
[]
no_license
Team1100/UltimateAscent
6c73e297958b13345f1dfaa2686b3f0045a327d6
92908c4f8f5d43db9adf661a5a42dcb128842f7a
refs/heads/master
2021-01-22T02:43:13.055714
2015-05-02T00:27:43
2015-05-02T00:27:43
34,929,916
1
0
null
null
null
null
UTF-8
Java
false
false
1,916
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.arhs.team1100.ultimateascent.commands.shooter; import edu.arhs.team1100.ultimateascent.commands.CommandBase; import edu.arhs.team1100.ultimateascent.input.Camera; import edu.arhs.team1100.ultimateascent.subsystems.ShooterTiltSubsystem; import edu.arhs.team1100.ultimateascent.util.*; /** * * @author Team 1100 */ public class CameraTiltShooterCommand extends CommandBase { private final double OFFSET = 0.0; private final double RATIO = .50; private boolean tracking; public CameraTiltShooterCommand() { requires(ShooterTiltSubsystem.getInstance()); } // Called just before this Command runs the first time protected void initialize() { ShooterTiltSubsystem.getInstance().disable(); ShooterTiltSubsystem.getInstance().stop(); tracking = true; } // Called repeatedly when this Command is scheduled to run protected void execute() { if (!tracking) { ShooterTiltSubsystem.getInstance().stop(); return; } double y = Camera.getInstance().getCenterY(); double error = y - OFFSET; error = Math.min(1.0, Math.max(-1.0, error)); //DSLog.log(5, "Err*rat: " + error * RATIO); ShooterTiltSubsystem.getInstance().tilt(error * RATIO); } public void stopTracking() { tracking = false; } // Make this return true when this Command no longer needs to run execute() protected boolean isFinished() { return false; } // Called once after isFinished returns true protected void end() { } // Called when another command which requires one or more of the same // subsystems is scheduled to run protected void interrupted() { } }
[ "empyne16@gmail.com" ]
empyne16@gmail.com
8fe6a6112eca5e806e94c3cf29f2ecc43d5de8c4
ad0391faad8c4ea4890ca5807b914b2df68aa7fa
/src/main/java/de/sanandrew/mods/claysoldiers/api/entity/soldier/effect/ISoldierEffectInst.java
bc2f8772d6a1da0435c5045ae0e84151c34c51ce
[]
no_license
Jorch72/ClaySoldiersMod
fab82edc0d32b9926aad1f408fde8a2140237bec
9fe0cc6f07a8e913ea2c63f66f8390eaa5dcb332
refs/heads/master
2020-03-27T19:11:17.140354
2018-07-27T11:58:29
2018-07-27T11:58:29
146,970,803
0
1
null
null
null
null
UTF-8
Java
false
false
810
java
/* ****************************************************************************************************************** * Authors: SanAndreasP * Copyright: SanAndreasP * License: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International * http://creativecommons.org/licenses/by-nc-sa/4.0/ *******************************************************************************************************************/ package de.sanandrew.mods.claysoldiers.api.entity.soldier.effect; import net.minecraft.nbt.NBTTagCompound; public interface ISoldierEffectInst { NBTTagCompound getNbtData(); void setNbtData(NBTTagCompound compound); ISoldierEffect getEffect(); int getDurationLeft(); void decreaseDuration(int amount); boolean stillActive(); }
[ "1294@live.de" ]
1294@live.de
9d11b795704c9ce9b0bcdda2ea0d7ca19d319b40
3734505728a672c04475a82bd95c656c46fcceb2
/upload/src/java/Servlet1.java
87ac8144af7061ec834cd01bd88b7cfd17d4912f
[]
no_license
YacineFerhat/JEE
744474e569004b3b2186eb8ae6b5bc5dca17d54a
3f1625499273afe5a35ca3ef607a5c9d724d771d
refs/heads/master
2020-06-05T08:33:27.500717
2019-06-17T15:56:41
2019-06-17T15:56:41
192,377,741
0
0
null
null
null
null
UTF-8
Java
false
false
819
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. */ import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.oreilly.servlet.MultipartRequest; /** * * @author Ferhat Yacine */ public class Servlet1 extends HttpServlet { protected void doPost(HttpServletRequest r, HttpServletResponse s) throws IOException, ServletException{ MultipartRequest m= new MultipartRequest (r,"F:"); PrintWriter p= s.getWriter(); p.print(m.getParameter("file")); } }
[ "Yacine.frhat@gmail.com" ]
Yacine.frhat@gmail.com
685df484f7402cde54f7fa2fcdbc3baa7d437fe6
5ca3901b424539c2cf0d3dda52d8d7ba2ed91773
/src_cfr/com/google/security/zynamics/bindiff/gui/tabpanels/projecttabpanel/treenodepanels/charts/InstructionMatchesPie3dPanel$InternalFlowgraphCachedCountsListener.java
54c003e231c4e269507e3818bb8a1e5550c9088c
[]
no_license
fjh658/bindiff
c98c9c24b0d904be852182ecbf4f81926ce67fb4
2a31859b4638404cdc915d7ed6be19937d762743
refs/heads/master
2021-01-20T06:43:12.134977
2016-06-29T17:09:03
2016-06-29T17:09:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,225
java
/* * Decompiled with CFR 0_115. */ package com.google.security.zynamics.bindiff.gui.tabpanels.projecttabpanel.treenodepanels.charts; import com.google.security.zynamics.bindiff.gui.tabpanels.projecttabpanel.treenodepanels.charts.InstructionMatchesPie3dPanel; import com.google.security.zynamics.bindiff.gui.tabpanels.projecttabpanel.treenodepanels.charts.InstructionMatchesPie3dPanel$1; import com.google.security.zynamics.bindiff.project.diff.DiffChangeAdapter; class InstructionMatchesPie3dPanel$InternalFlowgraphCachedCountsListener extends DiffChangeAdapter { final /* synthetic */ InstructionMatchesPie3dPanel this$0; private InstructionMatchesPie3dPanel$InternalFlowgraphCachedCountsListener(InstructionMatchesPie3dPanel instructionMatchesPie3dPanel) { this.this$0 = instructionMatchesPie3dPanel; } @Override public void instructionsCountsChanged() { InstructionMatchesPie3dPanel.access$1000(this.this$0); } /* synthetic */ InstructionMatchesPie3dPanel$InternalFlowgraphCachedCountsListener(InstructionMatchesPie3dPanel instructionMatchesPie3dPanel, InstructionMatchesPie3dPanel$1 instructionMatchesPie3dPanel$1) { this(instructionMatchesPie3dPanel); } }
[ "manouchehri@riseup.net" ]
manouchehri@riseup.net
8c78767a513bd8bc2e0541a88d67808037686c37
1eaaf8cabfc2fd7f7f562cc6d9ca168bb80e6b54
/app/src/main/java/com/hippo/ehviewer/client/data/FavListUrlBuilder.java
519b06c3d231ece349c077d9302eb270b5e8fea2
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "MIT", "OFL-1.1", "LicenseRef-scancode-unknown-license-reference", "IJG", "Zlib", "EPL-1.0", "Libpng", "BSD-3-Clause" ]
permissive
onlymash/EhViewer
9036365b0fb94251817cfde15f7b9a5c24154e20
49c51d001f7c048ae52e75854624fee4c6ac8063
refs/heads/master
2021-09-16T05:59:35.384177
2018-05-14T14:16:26
2018-05-14T14:16:26
121,543,695
18
1
Apache-2.0
2018-03-27T11:05:13
2018-02-14T18:07:09
Java
UTF-8
Java
false
false
3,318
java
/* * Copyright 2016 Hippo Seven * * 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.hippo.ehviewer.client.data; import android.os.Parcel; import android.os.Parcelable; import android.text.TextUtils; import android.util.Log; import com.hippo.ehviewer.client.EhUrl; import com.hippo.network.UrlBuilder; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; public class FavListUrlBuilder implements Parcelable { private static final String TAG = FavListUrlBuilder.class.getSimpleName(); public static final int FAV_CAT_ALL = -1; public static final int FAV_CAT_LOCAL = -2; private int mIndex; private String mKeyword; private int mFavCat = FAV_CAT_ALL; public void setIndex(int index) { mIndex = index; } public void setKeyword(String keyword) { mKeyword = keyword; } public void setFavCat(int favCat) { mFavCat = favCat; } public String getKeyword() { return mKeyword; } public int getFavCat() { return mFavCat; } public static boolean isValidFavCat(int favCat) { return favCat >= 0 && favCat <= 9; } public boolean isLocalFavCat() { return mFavCat == FAV_CAT_LOCAL; } public String build() { UrlBuilder ub = new UrlBuilder(EhUrl.getFavoritesUrl()); if (isValidFavCat(mFavCat)) { ub.addQuery("favcat", Integer.toString(mFavCat)); } if (!TextUtils.isEmpty(mKeyword)) { try { ub.addQuery("f_search", URLEncoder.encode(mKeyword, "UTF-8")); ub.addQuery("f_apply", "Search+Favorites"); } catch (UnsupportedEncodingException e) { Log.e(TAG, "Can't URLEncoder.encode " + mKeyword); } } if (mIndex > 0) { ub.addQuery("page", Integer.toString(mIndex)); } return ub.build(); } @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(this.mIndex); dest.writeString(this.mKeyword); dest.writeInt(this.mFavCat); } public FavListUrlBuilder() { } protected FavListUrlBuilder(Parcel in) { this.mIndex = in.readInt(); this.mKeyword = in.readString(); this.mFavCat = in.readInt(); } public static final Parcelable.Creator<FavListUrlBuilder> CREATOR = new Parcelable.Creator<FavListUrlBuilder>() { @Override public FavListUrlBuilder createFromParcel(Parcel source) { return new FavListUrlBuilder(source); } @Override public FavListUrlBuilder[] newArray(int size) { return new FavListUrlBuilder[size]; } }; }
[ "seven332@163.com" ]
seven332@163.com
40cb7f07274f84751c50f693fbaa7602a0d53b06
8510169054c24a64a73013663a9aefa41c7f3047
/app/src/main/java/com/abcew/model/isp/lession2/IGreatTemperamentGirl.java
258721545d61ee69435e1c28e43c454dceede78e
[]
no_license
joyoyao/Model
f06fb1006784072ff5fc3ad2b69f701d90b1586e
16b153bdd8013b487384058c4ed6f5a94ecef108
refs/heads/master
2020-03-22T10:10:03.469309
2016-12-04T08:30:31
2016-12-04T08:30:31
74,377,041
0
0
null
null
null
null
UTF-8
Java
false
false
178
java
package com.abcew.model.isp.lession2; /** * Created by laputan on 16/11/26. */ public interface IGreatTemperamentGirl { //要有气质 public void greatTemperament(); }
[ "zaiyongs@gmail.com" ]
zaiyongs@gmail.com
bb70354aacc10253674b332745ab8c76978b4306
0309145a7e7b547797ee12ed4616bbfb4fec93d9
/product-workspace/com.loadtrend.app.mobile/src/com/loadtrend/app/mobile/action/ShowNewSMSDialogAction.java
9317ea84a3a95437aca33e95e1334716b0c3e1f0
[]
no_license
ghosertEclipse/EclipseProject
1bb2c69c2163fec173fb27d8366b868015fef58a
7f4fdaf430e07bf910564a1b1723daad312aa6f7
refs/heads/master
2021-01-01T05:40:21.886745
2012-11-14T12:15:18
2012-11-14T12:15:18
643,838
1
0
null
null
null
null
UTF-8
Java
false
false
556
java
package com.loadtrend.app.mobile.action; import com.loadtrend.app.mobile.dialog.NewSMSDialog; public class ShowNewSMSDialogAction extends WorkbenchWindowAction { public void run() { NewSMSDialog dialog = new NewSMSDialog( super.window.getShell() ); dialog.create(); if ( !dialog.getTxtReceiver().getText().equals( "" ) ) { dialog.getTxtContent().setFocus(); dialog.getTxtContent().setSelection( dialog.getTxtContent().getText().length() ); } dialog.open(); } }
[ "ghosert@gmail.com" ]
ghosert@gmail.com
5e9ba52a70ce4e5ba93d147e7bf387d625b433ab
bb4bdd71c588e13d8b63980ea4f7252ad301d433
/samples/essential-java-demos/src/com/waylau/essentialjava/concurrency/HelloThread.java
20bdcf3ff5a977357d8422e2881c2f0056df7acc
[ "MIT" ]
permissive
hakukata/essential-java
0ff63e7d728986f700ff0e9efd7cbdf34a47ad89
91433d643c3e6c48d107a7c8d49d62a19b45c98b
refs/heads/master
2021-09-04T21:52:03.329192
2018-01-22T13:39:07
2018-01-22T13:39:07
115,195,327
1
0
null
2017-12-23T12:52:45
2017-12-23T12:52:45
null
UTF-8
Java
false
false
378
java
/** * */ package com.waylau.essentialjava.concurrency; /** * @author <a href="http://www.waylau.com">waylau.com</a> * @date 2016年1月21日 */ public class HelloThread extends Thread { public void run() { System.out.println("Hello from a thread!"); } /** * @param args */ public static void main(String[] args) { (new HelloThread()).start(); } }
[ "waylau521@gmail.com" ]
waylau521@gmail.com
5ea5c150db28cc4ac5cd80eeeea7adbfce96d6bf
f8ee9cd75f671b9aaedc2c8d7706e7dc1de9c08c
/ene-jun-2019/maria castro torres/practicaa_4/Merge.java
0fed44c70c19019b5cddc3d331c5673c05a92e88
[]
no_license
mariacastrotorres/AlgoritmosSistemas
6cd0f96c361b28550011de2cd75622ff6f750e62
8c24b856f1580cc2a47d0d3f4ffffa50a6ff2dd7
refs/heads/master
2020-04-17T20:27:35.406941
2019-05-06T21:18:49
2019-05-06T21:18:49
166,906,115
0
0
null
2019-01-22T01:32:35
2019-01-22T01:32:35
null
UTF-8
Java
false
false
1,835
java
package practicas; import java.util.Arrays; import java.util.Scanner; public class Merge { public static void main (String[]args) { Scanner s=new Scanner(System.in); int tam, i=0; System.out.println("CUANTOS NOMBRES SON:"); tam = s.nextInt(); String[] palabra= new String[tam]; System.out.println("INGRESA LOS NOMBRES: "); for( i=0; i<palabra.length; i++) { palabra[i] = s.next(); } System.out.println("PALABRAS ORDENADAS ALFABETICAMENTE:"+ "\n"+ Arrays.toString(merge(palabra))); for( i=0; i<palabra.length; i++) { palabra[i]=s.next(); } } public static String[] merge(String[] arr) { if(arr.length > 1) { int x = arr.length/2; String[] der = Arrays.copyOfRange(arr, 0, x); String[] izq = Arrays.copyOfRange(arr, x, arr.length); return mergesort(merge(der), merge(izq)); } return arr; } public static String[] mergesort(String[]der, String[]izq) { String[] arr = new String[(der.length + izq.length)]; int i = 0, j = 0, k = 0; while(i< der.length && j < izq.length) { if(der[i].compareTo(izq[j]) <= 0) { arr[k] = der[i]; i++; } else { arr[k] = izq[j]; j++; } k++; } while(i < der.length) { arr[k] = der[i]; i++; k++; } while(j < izq.length) { arr[k] = izq[j]; j++; k++; } return arr; } }
[ "mariacastrotorres@uadec.edu.mx" ]
mariacastrotorres@uadec.edu.mx
3d0115e2f896dffc371dfaa14423739c2d938cf5
9e6b745d3e7c7f140148fbe34ba9c9ceae584528
/src/mediator/User.java
35a3e9b90530bb40b50ec30f0f280a13b5174a46
[]
no_license
Kylombek/builder_pattern_se
3066d86faab8be243a678689938d476a9d8729ab
5de9704f018689f76f44d0e28e77c7c199762fa2
refs/heads/master
2020-04-05T21:40:46.983309
2018-11-12T15:20:10
2018-11-12T15:20:10
157,228,912
0
0
null
null
null
null
UTF-8
Java
false
false
300
java
package mediator; import composite.Component; import composite.Order; public abstract class User { protected String name; public User(String name){ this.name=name; } public String getName() { return name; } public abstract void receive(Component ord); }
[ "kylombek@mail.ru" ]
kylombek@mail.ru
9a69fbcda9844356b9cf7fc87eba28298e1bba9c
e95acea5b542c9988065753784f539189f5c1224
/orientacao-objetos/src/relacionamentos_composicoes_herancas/escritorio/Telefone.java
37ce715741a4600ce24495342150b322daff0e8e
[ "MIT" ]
permissive
regisg495/orientacao-a-objetos
50cc2aaef6f22816518887f3fb7dbb7732bd73e7
8cfd62682fc21a6708001b8a53fbe9767ec11e98
refs/heads/master
2022-11-11T20:22:45.367806
2020-06-27T21:01:24
2020-06-27T21:01:24
274,762,774
0
0
null
null
null
null
UTF-8
Java
false
false
212
java
package relacionamentos_composicoes_herancas.escritorio; public class Telefone { private String telefone; Telefone(String a){ this.telefone = a; } public String toString() { return this.telefone; } }
[ "regis@DESKTOP-LCRE26J" ]
regis@DESKTOP-LCRE26J
89aeb4f67cc52af5796202d74c9d6cfe649588de
503d3a17712aa4a5c25dd4e32a4d3cee6bbc99ce
/src/leetcode/editor/cn/P91DecodeWays.java
6c23231965c1182363d115637a39b4d01c4c5875
[]
no_license
kotopsycho/leetcode
c6c30bd958049d4eb800a2a24ec9a334caa403ba
4f29a1854a5f53589531430220fddf7abee11bbf
refs/heads/main
2023-04-14T01:44:22.764175
2021-04-28T15:56:09
2021-04-28T15:56:09
359,384,552
0
0
null
null
null
null
UTF-8
Java
false
false
2,579
java
//一条包含字母 A-Z 的消息通过以下映射进行了 编码 : // // //'A' -> 1 //'B' -> 2 //... //'Z' -> 26 // // // 要 解码 已编码的消息,所有数字必须基于上述映射的方法,反向映射回字母(可能有多种方法)。例如,"11106" 可以映射为: // // // "AAJF" ,将消息分组为 (1 1 10 6) // "KJF" ,将消息分组为 (11 10 6) // // // 注意,消息不能分组为 (1 11 06) ,因为 "06" 不能映射为 "F" ,这是由于 "6" 和 "06" 在映射中并不等价。 // // 给你一个只含数字的 非空 字符串 s ,请计算并返回 解码 方法的 总数 。 // // 题目数据保证答案肯定是一个 32 位 的整数。 // // // // 示例 1: // // //输入:s = "12" //输出:2 //解释:它可以解码为 "AB"(1 2)或者 "L"(12)。 // // // 示例 2: // // //输入:s = "226" //输出:3 //解释:它可以解码为 "BZ" (2 26), "VF" (22 6), 或者 "BBF" (2 2 6) 。 // // // 示例 3: // // //输入:s = "0" //输出:0 //解释:没有字符映射到以 0 开头的数字。 //含有 0 的有效映射是 'J' -> "10" 和 'T'-> "20" 。 //由于没有字符,因此没有有效的方法对此进行解码,因为所有数字都需要映射。 // // // 示例 4: // // //输入:s = "06" //输出:0 //解释:"06" 不能映射到 "F" ,因为字符串含有前导 0("6" 和 "06" 在映射中并不等价)。 // // // // 提示: // // // 1 <= s.length <= 100 // s 只包含数字,并且可能包含前导零。 // // Related Topics 字符串 动态规划 // 👍 687 👎 0 package leetcode.editor.cn; //Java:解码方法 public class P91DecodeWays{ public static void main(String[] args) { Solution solution = new P91DecodeWays().new Solution(); // TO TEST } //leetcode submit region begin(Prohibit modification and deletion) class Solution { public int numDecodings(String s) { if(s == null) return 0; if(s.charAt(0) == '0') return 0; if(s.length() < 2) return 1; int lasttwo = 1,last = 1,now; for(int i = 1; i < s.length(); i++){ char c = s.charAt(i); char a = s.charAt(i - 1); now = 0; if(c != '0'){ now += last; } if(a == '1' || (c < '7' && a == '2')){ now += lasttwo; } lasttwo = last; last = now; } return last; } } //leetcode submit region end(Prohibit modification and deletion) }
[ "1368737220@qq.com" ]
1368737220@qq.com
77293e275ceb69fa0aab42a50f9b92217e0e1835
d3a464ca92d6c9f071c8b858b4f711402ca01731
/bnp/com/bnp/src/main/java/com/bnp/produto/ProdutoService.java
a155dee9d61c61f1559b87b1292d47bdfaee0f1f
[]
no_license
luisnascimentoDS/projeto-BNP
db2696f43c24de5f9f2323f3dbdf08c6d9ccc00b
bc3a90cf5ca95037bfc4adc6371e0282bbf66a0a
refs/heads/master
2023-07-24T11:23:39.098109
2021-09-01T15:28:20
2021-09-01T15:28:20
399,675,567
0
0
null
null
null
null
UTF-8
Java
false
false
188
java
package com.bnp.produto; import java.util.List; public interface ProdutoService { List<Produto> getAllProdutos() throws Exception; Produto save(Produto produto) throws Exception; }
[ "luis.nascimento@abramus.org.br" ]
luis.nascimento@abramus.org.br
a6dfef2f17fd3ba8ed33362767002b3d0b508a32
1f44ecfac3f57ca91cb3a6f71e01159f265e9558
/app/src/main/java/com/cynovo/kivvi/demo/ui/view/progressdialog/AnimatedView.java
f65af5dfddf0f2a92855b2e958211042898476f6
[]
no_license
mahi1108/Loophole_SDK
5714ad46b51665b949e83c5664c2d7bd3940ed82
ff1d3235ee7897287d02d191a5157bc76285cc30
refs/heads/master
2020-04-03T18:20:13.547335
2018-10-31T11:53:36
2018-10-31T11:53:36
155,479,609
0
0
null
null
null
null
UTF-8
Java
false
false
628
java
package com.cynovo.kivvi.demo.ui.view.progressdialog; import android.content.Context; import android.view.View; /** * Created by Maxim Dybarsky | maxim.dybarskyy@gmail.com * on 13.01.15 at 14:17 */ class AnimatedView extends View { private int target; public AnimatedView(Context context) { super(context); } public float getXFactor() { return getX() / target; } public void setXFactor(float xFactor) { setX(target * xFactor); } public void setTarget(int target) { this.target = target; } public int getTarget() { return target; } }
[ "mahesh.cubex@gmail.com" ]
mahesh.cubex@gmail.com
307e57b9ceb441e006c98ef05da91b3176820616
56456387c8a2ff1062f34780b471712cc2a49b71
/com/google/android/gms/games/internal/game/Acls$OnGameplayAclUpdatedCallback.java
737e4d5a9f8543e96b7d744c24939e1d69e65ba7
[]
no_license
nendraharyo/presensimahasiswa-sourcecode
55d4b8e9f6968eaf71a2ea002e0e7f08d16c5a50
890fc86782e9b2b4748bdb9f3db946bfb830b252
refs/heads/master
2020-05-21T11:21:55.143420
2019-05-10T19:03:56
2019-05-10T19:03:56
186,022,425
1
0
null
null
null
null
UTF-8
Java
false
false
359
java
package com.google.android.gms.games.internal.game; public abstract interface Acls$OnGameplayAclUpdatedCallback {} /* Location: C:\Users\haryo\Desktop\enjarify-master\presensi-enjarify.jar!\com\google\android\gms\games\internal\game\Acls$OnGameplayAclUpdatedCallback.class * Java compiler version: 5 (49.0) * JD-Core Version: 0.7.1 */
[ "haryo.nendra@gmail.com" ]
haryo.nendra@gmail.com
28cc5de22f51102894daeb0e0edb327be1178c62
dfb33b070c373bcc2cf3cbaead1bcdc34d952673
/src/main/java/fr/maileva/siclv2/invoice/cabestan/impl/EmailTrackingServiceImpl.java
3eae1ffd46f46fd978c11736947df29b35d81a54
[]
no_license
webcaisse/scheduler-invoice
2e3e081b0b7a00bac42d35efd7d5bcb0766f1460
da38069b909ced3064b0067dc330b609800b3413
refs/heads/master
2021-09-01T18:54:11.730662
2017-12-28T09:54:16
2017-12-28T09:54:16
115,610,183
0
0
null
null
null
null
UTF-8
Java
false
false
10,433
java
package fr.maileva.siclv2.invoice.cabestan.impl; import static fr.maileva.siclv2.invoice.cabestan.CabestanConfiguration.CABESTAN_FTP_OUT_DIR; import static fr.maileva.siclv2.invoice.cabestan.CabestanConfiguration.CABESTAN_IN_DIR; import static fr.maileva.siclv2.invoice.cabestan.CabestanConfiguration.CABESTAN_TRACKING_RANGE; import static fr.maileva.siclv2.invoice.cabestan.CabestanConfiguration.ENV_NAME; import static fr.maileva.siclv2.invoice.cabestan.CabestanConfiguration.FTP_HOST; import static fr.maileva.siclv2.invoice.cabestan.CabestanConfiguration.FTP_PASSWORD; import static fr.maileva.siclv2.invoice.cabestan.CabestanConfiguration.FTP_PORT; import static fr.maileva.siclv2.invoice.cabestan.CabestanConfiguration.FTP_PROXY_ADRESS; import static fr.maileva.siclv2.invoice.cabestan.CabestanConfiguration.FTP_PROXY_PORT; import static fr.maileva.siclv2.invoice.cabestan.CabestanConfiguration.FTP_USERNAME; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; import java.util.Properties; import javax.annotation.PostConstruct; import javax.ejb.EJB; import javax.ejb.Stateless; import javax.jms.Connection; import javax.jms.ConnectionFactory; import javax.jms.JMSException; import javax.jms.MessageProducer; import javax.jms.Queue; import javax.jms.Session; import javax.jms.TextMessage; import javax.naming.Context; import javax.naming.InitialContext; import org.apache.log4j.Logger; import com.docapostdps.utils.common.Collections; import com.docapostdps.utils.common.remotefs.ConnectionInfo; import com.docapostdps.utils.common.remotefs.FilenameFilter; import com.docapostdps.utils.common.remotefs.HostInfo; import com.docapostdps.utils.common.remotefs.ProxyInfo; import com.docapostdps.utils.common.remotefs.ProxyType; import com.docapostdps.utils.common.remotefs.RemoteEntry; import com.docapostdps.utils.common.remotefs.RemoteFsClient; import com.docapostdps.utils.common.remotefs.RemoteFsProtocol; import com.docapostdps.utils.common.remotefs.impl.RemoteFsClientFactory; import com.google.common.base.Joiner; import fr.maileva.siclv2.business.dao.IBatchCategoryPaperDao; import fr.maileva.siclv2.business.dao.IBatchDao; import fr.maileva.siclv2.business.dao.IRequestPaperDao; import fr.maileva.siclv2.business.entities.RequestPaper; import fr.maileva.siclv2.business.entities.batch.Batch; import fr.maileva.siclv2.business.entities.batch.Batch.BatchState; import fr.maileva.siclv2.business.entities.batch.BatchCategory; import fr.maileva.siclv2.business.entities.batch.BatchCategoryEnum; import fr.maileva.siclv2.business.enums.Partner; import fr.maileva.siclv2.business.managers.api.IProcessEngineHelper; import fr.maileva.siclv2.common.utils.ProcessEngineUtils.ProcessEngineCommand; import fr.maileva.siclv2.common.utils.ServiceLocator; import fr.maileva.siclv2.common.utils.exception.TechnicalErrorCode; import fr.maileva.siclv2.common.utils.exception.TechnicalException; import fr.maileva.siclv2.invoice.cabestan.IEmailTrackingService; /** * Created by htaghbalout on 29/05/2017. Service that treat cabestan tracking * status */ @Stateless public class EmailTrackingServiceImpl implements IEmailTrackingService { /** * Logger */ private static final Logger LOGGER = Logger.getLogger(EmailTrackingServiceImpl.class); private RemoteFsClient client; @EJB private IBatchCategoryPaperDao batchCategoryPaperDao; @EJB private IBatchDao batchDao; @EJB private IRequestPaperDao requestPaperDao; @EJB private IProcessEngineHelper processEngineHelper; @PostConstruct public void init() { // Connection parameters ConnectionInfo connectionInfo = new ConnectionInfo(); connectionInfo.setProtocol(RemoteFsProtocol.FTP); connectionInfo.setUsername(FTP_USERNAME); connectionInfo.setPassword(FTP_PASSWORD); HostInfo server = new HostInfo(); server.setHostname(FTP_HOST); server.setPort(new Integer(FTP_PORT)); connectionInfo.setServer(server); if (FTP_PROXY_ADRESS != null) { LOGGER.debug("FTP PROXY ADRESS USED :" + FTP_PROXY_ADRESS); ProxyInfo proxyInfo = new ProxyInfo(); HostInfo proxyHost = new HostInfo(); proxyHost.setHostname(FTP_PROXY_ADRESS); proxyHost.setPort(new Integer(FTP_PROXY_PORT)); proxyInfo.setHost(proxyHost); proxyInfo.setType(ProxyType.FTP); connectionInfo.setProxyInfo(proxyInfo); } client = RemoteFsClientFactory.createClient(connectionInfo); LOGGER.debug("Connexion established to Serrver FTP Cabestan"); } @Override public void getFtpTrackingFiles() { LOGGER.info("get Ftp file from cabestan ftp"); try { client.connect(); LOGGER.info("UserFileTransferAccountSendingService : start send "); List<RemoteEntry> ftpFilesLst = getFiltredFilesList(); RemoteEntry[] ftpFiles = ftpFilesLst .toArray(new RemoteEntry[ftpFilesLst.size()]); LOGGER.debug("we have found " + ftpFiles.length + " ftp files found to treat"); if (ftpFiles.length > 0) { int range = Integer.parseInt(CABESTAN_TRACKING_RANGE); double size = ftpFiles.length * 1.0 / range; LOGGER.debug("ftpFiles size " + size); if (size <= 1) { treatFiles(ftpFiles); } else { // ranges for (int i = 0; i < ((int) size) * range; i = i + range) { RemoteEntry[] rangeFtpFiles = Arrays.copyOfRange( ftpFiles, i, i + range); LOGGER.debug("rangeFtpFiles " + rangeFtpFiles); treatFiles(rangeFtpFiles); } // The rest RemoteEntry[] rangeFtpFiles = Arrays.copyOfRange(ftpFiles, ((int) size) * range, ftpFiles.length); treatFiles(rangeFtpFiles); } } } catch (TechnicalException e) { LOGGER.error(TechnicalErrorCode.GENERAL, e); } catch (IOException e) { LOGGER.error(TechnicalErrorCode.FILE_TRANSFER_ERROR, e); } finally { client.disconnect(); } } @SuppressWarnings("rawtypes") @Override public void checkReports() { try { BatchCategory<RequestPaper> batchCategoryInvoice = batchCategoryPaperDao.getBatchCategory(BatchCategoryEnum.ELECTRONIC_INVOICE, Partner.MAILEVA); List<Batch> batchsPaper = batchDao.loadBatchesByCategoryAndState(batchCategoryInvoice, BatchState.SENT); if (!Collections.isEmpty(batchsPaper)){ for (Batch batchEntity : batchsPaper) { for (RequestPaper requestPaper : requestPaperDao.loadRequestsForBatch(batchEntity.getId())) { Integer result = requestPaperDao.updateRequestStatusToProducedWhenAllEnvelopesStatusProduced(requestPaper.getId()); LOGGER.debug("Updating request "+requestPaper.getId()+" - set status to PRODUCED (if all envelopes PRODUCED) => number of updated rows = "+result); if (result > 0) { // the batch is produced batchEntity.setCurrentState(BatchState.PRODUCED); batchDao.save(batchEntity); LOGGER.info("Reloading process engine for request "+requestPaper.getId()); processEngineHelper.executeRequestProcess(requestPaper, ProcessEngineCommand.SIGNAL_EXISTING_PROCESS); } } } } } catch (TechnicalException e) { LOGGER.error(TechnicalErrorCode.GENERAL, e); } } private void treatFiles(RemoteEntry[] ftpFiles) throws TechnicalException { try { List<String> listNames = new ArrayList<String>(); for (RemoteEntry ftpFile : ftpFiles) { LOGGER.debug("ftpFile.getName() " + ftpFile.getBasename()); String locName = CABESTAN_IN_DIR + ftpFile.getBasename(); LOGGER.debug("cabestan file name " + locName); File file = new File(locName); client.download(CABESTAN_FTP_OUT_DIR + ftpFile.getBasename(), file); listNames.add(ftpFile.getBasename()); client.delete(ftpFile.getPath()); } LOGGER.debug("list file to track are " + listNames.size()); sendJMSMessage(listNames); } catch (Exception e) { throw new TechnicalException(e, TechnicalErrorCode.FILE_TRANSFER_ERROR); } } public void sendJMSMessage(Collection<?> listNames) throws TechnicalException { if (!listNames.isEmpty()) { String names = Joiner.on(";").join(listNames); LOGGER.debug("Send JMS message for files : " + names); InitialContext initialContext = null; ConnectionFactory connectionFactory; Connection connection = null; Queue destination = null; Session session = null; MessageProducer producer = null; try { initialContext = new InitialContext(properties); connectionFactory = (ConnectionFactory) ServiceLocator.getService( initialContext, "ConnectionFactory"); connection = connectionFactory.createConnection(); session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); destination = (Queue) ServiceLocator.getService(initialContext, "queue/cabestanReturnedFilesQueue"); producer = session.createProducer(destination); TextMessage message = session.createTextMessage(); message.setStringProperty("names", names); producer.send(message); } catch (Exception e) { LOGGER.error(e.getMessage(), e); throw new TechnicalException(e, TechnicalErrorCode.JMS_MESSAGE_SENDING); } finally { // close queue sender if (producer != null) { try { producer.close(); } catch (JMSException e) { LOGGER.error(e.getMessage(), e); } } if (session != null) { try { session.close(); } catch (JMSException e) { LOGGER.error(e.getMessage(), e); } } if (connection != null) { try { connection.close(); } catch (JMSException e) { LOGGER.error(e.getMessage(), e); } } } } } private List<RemoteEntry> getFiltredFilesList() throws IOException { if (ENV_NAME != null) { return client.listFilesWithFilter(CABESTAN_FTP_OUT_DIR, new FilenameFilter() { @Override public boolean accept(String filename) { return filename.contains(ENV_NAME); } }); } else { return java.util.Collections.emptyList(); } } private static Properties properties = new Properties(); static { properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); properties.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces"); String partitionName = System.getProperty("jboss.partition.name", "DefaultPartition"); properties.put("jnp.partitionName", partitionName); } }
[ "abdessalem.belhadj@docapost.fr" ]
abdessalem.belhadj@docapost.fr
29088340c010112b08eedc9bd3848c9ddcdeb63b
dffc9972cf86d93ed938b0bf5438fcd76936a586
/src/kz/yenbekbay/Wordie/Box/GameObject.java
2c1fde514769b6b56c09b75a8db7a278d9c31f34
[ "MIT" ]
permissive
yenbekbay/wordie
7e295e2f7603861b3fff49fa7735d661486a18ac
e2981d71a08b181bb0c010fbdd551ec28d2b1fab
refs/heads/master
2021-01-01T06:34:02.190275
2018-04-11T18:14:20
2018-04-12T15:54:01
34,235,734
2
1
null
null
null
null
UTF-8
Java
false
false
1,589
java
package kz.yenbekbay.Wordie.Box; import org.dyn4j.dynamics.Body; import org.dyn4j.dynamics.BodyFixture; import org.dyn4j.geometry.Convex; import java.awt.*; import java.awt.geom.AffineTransform; public class GameObject extends Body { /** The scale SCALE pixels per meter */ public static final double SCALE = 45.0; /** The color of the object */ public Color color; /** * Default constructor. */ public GameObject() { color = new Color(0, 0, 0, 0); } /** * Constructor with color setting. */ public GameObject(Color objectColor) { color = objectColor; } /** * Draws the body. * Only coded for polygons and circles. * @param g the graphics object to render to */ public void draw(Graphics2D g) { // save the original transform AffineTransform ot = g.getTransform(); // transform the coordinate system from world coordinates to local coordinates AffineTransform lt = new AffineTransform(); lt.translate(this.transform.getTranslationX() * SCALE, this.transform.getTranslationY() * SCALE); lt.rotate(this.transform.getRotation()); // apply the transform g.transform(lt); // loop over all the body fixtures for this body for (BodyFixture fixture : this.fixtures) { // get the shape on the fixture Convex convex = fixture.getShape(); Graphics2DRenderer.render(g, convex, SCALE, color); } // set the original transform g.setTransform(ot); } }
[ "ayan.yenb@gmail.com" ]
ayan.yenb@gmail.com
0a3da0a452110e7b7a8758b5f372f5c0487be329
0e990e71d5263914f9f53f438bb983619d36f36b
/de.dzimmermann.rcp.basicplatform/src/de/dzimmermann/rcp/basicplatform/util/UninterruptableUIJob.java
b24dacef68c075693a54595886caa5e21bccf35e
[]
no_license
bgmf/basic-platform
0cd6563272796a74f7454cb5e2a34bd3b4942582
37843d75e02f9fdff6b21112f98edab919e62ddc
refs/heads/master
2016-08-05T23:12:20.172734
2012-06-21T10:57:57
2012-06-21T10:57:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
346
java
package de.dzimmermann.rcp.basicplatform.util; import org.eclipse.swt.widgets.Display; import org.eclipse.ui.progress.UIJob; public abstract class UninterruptableUIJob extends UIJob { public UninterruptableUIJob(Display jobDisplay, String name) { super(jobDisplay, name); } public UninterruptableUIJob(String name) { super(name); } }
[ "daniel.zimmermann@ipoque.com" ]
daniel.zimmermann@ipoque.com
974d0faf29dac942e569284550867d9b1e30cfde
508daa2513df51a472a2c5edb023c71cf830f18b
/monolito/src/main/java/br/com/spark/monolito/domain/repository/CartRepository.java
212abfe62c0a133ee174f0154703017955440c6d
[]
no_license
fabriciolfj/microservices_ddd
c699e86ad2d0ebb2ce48b47ff6a2c561b8489415
b7114c4bb81ce897387fc98c3d1d6b41fded3933
refs/heads/master
2022-11-13T13:46:04.218334
2020-05-24T01:44:49
2020-05-24T01:44:49
264,552,237
0
0
null
null
null
null
UTF-8
Java
false
false
442
java
package br.com.spark.monolito.domain.repository; import br.com.spark.monolito.domain.model.Cart; import br.com.spark.monolito.domain.model.enuns.CartStatus; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; public interface CartRepository extends JpaRepository<Cart, Long> { List<Cart> findByStatus(CartStatus status); List<Cart> findByStatusAndCustomerId(CartStatus status, Long customerId); }
[ "fabricio.jacob@outlook.com" ]
fabricio.jacob@outlook.com
4b4e43425f482b821d302b9f413f453662cf0bc3
0af8b92686a58eb0b64e319b22411432aca7a8f3
/single-large-project/src/test/java/org/gradle/test/performancenull_483/Testnull_48202.java
8354475dc6ddba8841c12ba52abcc278d16c172e
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
308
java
package org.gradle.test.performancenull_483; import static org.junit.Assert.*; public class Testnull_48202 { private final Productionnull_48202 production = new Productionnull_48202("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
9919604f1d6619062a485b9f32f2add8baa6b80e
17e8438486cb3e3073966ca2c14956d3ba9209ea
/dso/tags/4.1.2/dso-l2/src/main/java/com/tc/objectserver/persistence/ObjectIDSetMaintainer.java
868edafaaf16022f37a5c95cbfb36e2ee710835c
[]
no_license
sirinath/Terracotta
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
00a7662b9cf530dfdb43f2dd821fa559e998c892
refs/heads/master
2021-01-23T05:41:52.414211
2015-07-02T15:21:54
2015-07-02T15:21:54
38,613,711
1
0
null
null
null
null
UTF-8
Java
false
false
2,360
java
package com.tc.objectserver.persistence; import com.tc.logging.TCLogger; import com.tc.logging.TCLogging; import com.tc.object.ObjectID; import com.tc.properties.TCPropertiesConsts; import com.tc.properties.TCPropertiesImpl; import com.tc.util.ObjectIDSet; import org.terracotta.corestorage.KeyValueStorageMutationListener; import org.terracotta.corestorage.Retriever; /** * @author tim */ public class ObjectIDSetMaintainer implements KeyValueStorageMutationListener<Long, byte[]> { private static final TCLogger logger = TCLogging.getLogger(ObjectIDSetMaintainer.class); private final ObjectIDSet evictableObjectIDSet = new ObjectIDSet(); private final ObjectIDSet noReferencesObjectIDSet; private final ObjectIDSet referencesObjectIDSet = new ObjectIDSet(); public ObjectIDSetMaintainer() { String type = TCPropertiesImpl.getProperties().getProperty(TCPropertiesConsts.L2_OBJECTMANAGER_OIDSET_TYPE, true); if (type == null) { noReferencesObjectIDSet = new ObjectIDSet(ObjectIDSet.ObjectIDSetType.BITSET_BASED_SET); } else { noReferencesObjectIDSet = new ObjectIDSet(ObjectIDSet.ObjectIDSetType.valueOf(type)); logger.info("Using object id set of type " + type); } } public synchronized ObjectIDSet objectIDSnapshot() { ObjectIDSet oids = new ObjectIDSet(noReferencesObjectIDSet); oids.addAll(referencesObjectIDSet); return oids; } public synchronized ObjectIDSet evictableObjectIDSetSnapshot() { return new ObjectIDSet(evictableObjectIDSet); } public synchronized boolean hasNoReferences(ObjectID id) { return noReferencesObjectIDSet.contains(id); } @Override public synchronized void added(Retriever<? extends Long> key, Retriever<? extends byte[]> value, byte metadata) { ObjectID k = new ObjectID(key.retrieve()); if (PersistentCollectionsUtil.isEvictableMapType(metadata)) { evictableObjectIDSet.add(k); } if (PersistentCollectionsUtil.isNoReferenceObjectType(metadata)) { noReferencesObjectIDSet.add(k); } else { referencesObjectIDSet.add(k); } } @Override public synchronized void removed(Retriever<? extends Long> key) { ObjectID oid = new ObjectID(key.retrieve()); evictableObjectIDSet.remove(oid); if (!noReferencesObjectIDSet.remove(oid)) { referencesObjectIDSet.remove(oid); } } }
[ "cruise@7fc7bbf3-cf45-46d4-be06-341739edd864" ]
cruise@7fc7bbf3-cf45-46d4-be06-341739edd864
19fbe6f5ca3480e566df79dfe4550d630599ebbd
307d8d3ff8b897486c1f5e40d85d2a1b3254121c
/app/src/androidTest/java/com/example/sarovar/medauth/ExampleInstrumentedTest.java
bb01adbc6f459e34cc2fe31370ad4e29af692ed5
[]
no_license
sarovar123456/Login_app_using_Firebase
810a7deb994ba8e4375a8b05b5054e94d8b3f04d
65d8c009eed1e36d3cfe8030797c0dade20bf506
refs/heads/master
2020-03-10T12:05:03.900344
2018-04-13T19:11:53
2018-04-13T19:11:53
129,369,778
0
0
null
null
null
null
UTF-8
Java
false
false
781
java
package com.example.sarovar.medauth; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.example.sarovar.medauth", appContext.getPackageName()); } }
[ "sarovarmnnit@gmail.com" ]
sarovarmnnit@gmail.com
586b7abe5b515a800c45b2f9760df3812a7ac164
dabf3915c3bfc0beb23ab6bc7f976d00d8f75c6a
/sportsbetting-web/src/main/java/com/epam/training/sportsbetting/web/transformers/OutcomeEntityTranformer.java
e342e3211ad2d215d9c9ccf5e9c6fa06908c58a0
[]
no_license
peterveres2/sportsbetting-elte
feebbb6011341bbb4f401d4af48cd3f0a2496e28
1e7e592a9f2acd0567cd63bdca747c3ac05e85e4
refs/heads/master
2020-03-28T01:43:10.354152
2018-09-10T07:42:42
2018-09-10T07:42:42
147,525,816
0
0
null
null
null
null
UTF-8
Java
false
false
887
java
package com.epam.training.sportsbetting.web.transformers; import java.util.ArrayList; import org.springframework.beans.factory.annotation.Autowired; import com.epam.training.sportsbetting.domain.Outcome; import com.epam.training.sportsbetting.domain.OutcomeOdd; import com.epam.training.sportsbetting.web.forms.OutcomeForm; public class OutcomeEntityTranformer extends AbstractTransformer<OutcomeForm, Outcome> { @Autowired private OddEntityTransformer oddEntityTransformer; @Override public Outcome transform(OutcomeForm outcomeForm) { String value = outcomeForm.getDescription(); OutcomeOdd odd = oddEntityTransformer.transform(outcomeForm.getOdd()); ArrayList<OutcomeOdd> odds = new ArrayList<>(); odds.add(odd); Outcome outcome = new Outcome(value, odds); odd.setOutcome(outcome); return outcome; } }
[ "Peter_Veres2@epam.com" ]
Peter_Veres2@epam.com
6ea4aabb028f36c96760845738edce220046a6e4
e110a8aa29bbd748b8e38af59f007e4a02d44dd7
/HelloWorld/src/HW.java
da11038dd9999ee0d6e9c8a1871ecf579bfb9f52
[]
no_license
hidepon22/backup
ff21a22917b4e27d1a80ad8bb7ab62d93ef36d33
57a717a9ebbd21d4f2d5f1aa168b6f8e589c2504
refs/heads/master
2021-09-05T22:07:52.015127
2018-01-31T08:22:09
2018-01-31T08:22:09
114,217,587
0
0
null
null
null
null
UTF-8
Java
false
false
508
java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * */ /** * @author internousdev * */ public class HW { /** * @param args * @throws IOException */ public static void main(String[] args) throws IOException { // TODO 自動生成されたメソッド・スタブ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.print("入力してください"); String t= br.readLine(); System.out.print(t); } }
[ "uh22.love.acm@gmail.com" ]
uh22.love.acm@gmail.com
cad01409aebe8bbc2cc47edaf54609b220c7643e
65c569e22247aa0afb16e5f7a8b24d72e81368c7
/app/src/main/java/com/lidroid/xutils/http/client/multipart/content/FileBody.java
7af69d0b3ab24c48567af710aaf8ceb9e5c30695
[]
no_license
miagosen/market
7ae27a1ca67e205b94dc76f4140c203cc1d17943
a67855fb6204d2547c9966cb922178cf5f5c4c7f
refs/heads/master
2021-01-15T23:36:38.996918
2015-07-22T13:14:51
2015-07-22T13:14:51
39,390,805
0
0
null
null
null
null
UTF-8
Java
false
false
3,047
java
/* * Copyright (c) 2013. wyouflf (wyouflf@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.lidroid.xutils.http.client.multipart.content; import com.lidroid.xutils.http.client.multipart.MIME; import com.lidroid.xutils.util.IOUtils; import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InterruptedIOException; import java.io.OutputStream; /** * @since 4.0 */ public class FileBody extends AbstractContentBody { private final File file; private final String filename; private final String charset; /** * @since 4.1 */ public FileBody (final File file, final String filename, final String mimeType, final String charset) { super(mimeType); if (file == null) { throw new IllegalArgumentException("File may not be null"); } this.file = file; if (filename != null) { this.filename = filename; } else { this.filename = file.getName(); } this.charset = charset; } /** * @since 4.1 */ public FileBody (final File file, final String mimeType, final String charset) { this(file, null, mimeType, charset); } public FileBody (final File file, final String mimeType) { this(file, null, mimeType, null); } public FileBody (final File file) { this(file, null, "application/octet-stream", null); } public InputStream getInputStream () throws IOException { return new FileInputStream(this.file); } public void writeTo (final OutputStream out) throws IOException { if (out == null) { throw new IllegalArgumentException("Output stream may not be null"); } BufferedInputStream in = null; try { in = new BufferedInputStream(new FileInputStream(this.file)); byte[] tmp = new byte[4096]; int l; while ((l = in.read(tmp)) != -1) { out.write(tmp, 0, l); callBackInfo.pos += l; if (!callBackInfo.doCallBack(false)) { throw new InterruptedIOException("cancel"); } } out.flush(); } finally { IOUtils.closeQuietly(in); } } public String getTransferEncoding () { return MIME.ENC_BINARY; } public String getCharset () { return charset; } public long getContentLength () { return this.file.length(); } public String getFilename () { return filename; } public File getFile () { return this.file; } }
[ "miagosen@gmail.com" ]
miagosen@gmail.com
398179e73e95baadcb734c9a0613aaf7327f6501
0fa5fa38cb8f9319dc17f955513218d1e8d18fe7
/src/main/java/com/bootdo/blog/dao/BCommentsMapper.java
5aea99765b703be0689e81eb5ecd02b6ce172532
[ "Apache-2.0" ]
permissive
BrendaHub/bootdo
238855a2833ffe4912377d183b875b6293679e99
946a978ca97a0fdb753e71f753fbb6fedbef98df
refs/heads/master
2021-09-25T16:59:28.224902
2018-10-24T09:28:22
2018-10-24T09:28:22
104,845,202
1
0
null
null
null
null
UTF-8
Java
false
false
5,902
java
package com.bootdo.blog.dao; import com.bootdo.blog.domain.BCommentsDO; import java.util.List; import java.util.Map; import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Update; /** * * * @author chglee * @email 1992lcg@163.com * @date 2017-09-10 19:27:42 */ @Mapper public interface BCommentsMapper { @Select("select `id`, `created`, `title`, `author`, `author_id`, `owner_id`, `email`, `url`, `ip`, `agent`, `content`, `type`, `status`, `parent` from b_comments where id = #{id}") BCommentsDO get(Long id); @Select("<script>" + "select * from b_comments " + "<where>" + "<if test=\"id != null and id != ''\">"+ "and id = #{id} " + "</if>" + "<if test=\"created != null and created != ''\">"+ "and created = #{created} " + "</if>" + "<if test=\"title != null and title != ''\">"+ "and title = #{title} " + "</if>" + "<if test=\"author != null and author != ''\">"+ "and author = #{author} " + "</if>" + "<if test=\"authorId != null and authorId != ''\">"+ "and author_id = #{authorId} " + "</if>" + "<if test=\"ownerId != null and ownerId != ''\">"+ "and owner_id = #{ownerId} " + "</if>" + "<if test=\"email != null and email != ''\">"+ "and email = #{email} " + "</if>" + "<if test=\"url != null and url != ''\">"+ "and url = #{url} " + "</if>" + "<if test=\"ip != null and ip != ''\">"+ "and ip = #{ip} " + "</if>" + "<if test=\"agent != null and agent != ''\">"+ "and agent = #{agent} " + "</if>" + "<if test=\"content != null and content != ''\">"+ "and content = #{content} " + "</if>" + "<if test=\"type != null and type != ''\">"+ "and type = #{type} " + "</if>" + "<if test=\"status != null and status != ''\">"+ "and status = #{status} " + "</if>" + "<if test=\"parent != null and parent != ''\">"+ "and parent = #{parent} " + "</if>" + "</where>"+ " <choose>" + "<when test=\"sort != null and sort.trim() != ''\">" + "order by ${sort} ${order}" + "</when>" + "<otherwise>" + "order by id desc" + "</otherwise>" + "</choose>"+ "<if test=\"offset != null and limit != null\">"+ "limit #{offset}, #{limit}" + "</if>"+ "</script>") List<BCommentsDO> list(Map<String,Object> map); @Select("<script>" + "select count(*) from b_comments " + "<where>" + "<if test=\"id != null and id != ''\">"+ "and id = #{id} " + "</if>" + "<if test=\"created != null and created != ''\">"+ "and created = #{created} " + "</if>" + "<if test=\"title != null and title != ''\">"+ "and title = #{title} " + "</if>" + "<if test=\"author != null and author != ''\">"+ "and author = #{author} " + "</if>" + "<if test=\"authorId != null and authorId != ''\">"+ "and author_id = #{authorId} " + "</if>" + "<if test=\"ownerId != null and ownerId != ''\">"+ "and owner_id = #{ownerId} " + "</if>" + "<if test=\"email != null and email != ''\">"+ "and email = #{email} " + "</if>" + "<if test=\"url != null and url != ''\">"+ "and url = #{url} " + "</if>" + "<if test=\"ip != null and ip != ''\">"+ "and ip = #{ip} " + "</if>" + "<if test=\"agent != null and agent != ''\">"+ "and agent = #{agent} " + "</if>" + "<if test=\"content != null and content != ''\">"+ "and content = #{content} " + "</if>" + "<if test=\"type != null and type != ''\">"+ "and type = #{type} " + "</if>" + "<if test=\"status != null and status != ''\">"+ "and status = #{status} " + "</if>" + "<if test=\"parent != null and parent != ''\">"+ "and parent = #{parent} " + "</if>" + "</where>"+ "</script>") int count(Map<String,Object> map); @Insert("insert into b_comments (`created`, `title`, `author`, `author_id`, `owner_id`, `email`, `url`, `ip`, `agent`, `content`, `type`, `status`, `parent`)" + "values (#{created}, #{title}, #{author}, #{authorId}, #{ownerId}, #{email}, #{url}, #{ip}, #{agent}, #{content}, #{type}, #{status}, #{parent})") int save(BCommentsDO bComments); @Update("<script>"+ "update b_comments " + "<set>" + "<if test=\"id != null\">`id` = #{id}, </if>" + "<if test=\"created != null\">`created` = #{created}, </if>" + "<if test=\"title != null\">`title` = #{title}, </if>" + "<if test=\"author != null\">`author` = #{author}, </if>" + "<if test=\"authorId != null\">`author_id` = #{authorId}, </if>" + "<if test=\"ownerId != null\">`owner_id` = #{ownerId}, </if>" + "<if test=\"email != null\">`email` = #{email}, </if>" + "<if test=\"url != null\">`url` = #{url}, </if>" + "<if test=\"ip != null\">`ip` = #{ip}, </if>" + "<if test=\"agent != null\">`agent` = #{agent}, </if>" + "<if test=\"content != null\">`content` = #{content}, </if>" + "<if test=\"type != null\">`type` = #{type}, </if>" + "<if test=\"status != null\">`status` = #{status}, </if>" + "<if test=\"parent != null\">`parent` = #{parent}, </if>" + "</set>" + "where id = #{id}"+ "</script>") int update(BCommentsDO bComments); @Delete("delete from b_comments where id =#{id}") int remove(Integer id); @Delete("<script>"+ "delete from b_comments where id in " + "<foreach item=\"id\" collection=\"array\" open=\"(\" separator=\",\" close=\")\">" + "#{id}" + "</foreach>"+ "</script>") int batchRemove(Integer[] ids); }
[ "chenhongjian@binggou.com" ]
chenhongjian@binggou.com
228b328e64b9431e8b4ca8af05f6d0da1ac49ea3
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.mm/classes.jar/com/tencent/mm/autogen/a/ado.java
f9d697ddcf74b163f61c17b55e4a2d0b7b49f7ab
[]
no_license
tsuzcx/qq_apk
0d5e792c3c7351ab781957bac465c55c505caf61
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
refs/heads/main
2022-07-02T10:32:11.651957
2022-02-01T12:41:38
2022-02-01T12:41:38
453,860,108
36
9
null
2022-01-31T09:46:26
2022-01-31T02:43:22
Java
UTF-8
Java
false
false
953
java
package com.tencent.mm.autogen.a; import android.content.Context; import android.database.Cursor; import android.net.Uri; import com.tencent.matrix.trace.core.AppMethodBeat; import com.tencent.mm.sdk.event.IEvent; public final class ado extends IEvent { public a ihJ; public b ihK; public ado() { this((byte)0); } private ado(byte paramByte) { AppMethodBeat.i(19848); this.ihJ = new a(); this.ihK = new b(); this.order = false; this.callback = null; AppMethodBeat.o(19848); } public static final class a { public Context context; public int hGz = 0; public String ihL; public Uri uri; } public static final class b { public Cursor hGA; } } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes10.jar * Qualified Name: com.tencent.mm.autogen.a.ado * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
714c21a39fb510467081aec17c437d320f9a3f68
c800aefa78c525f25b014b176e48aeab9181d27d
/src/java/it/csi/portril/portrilweb/business/ws/BilancioWsInterfaceImpl.java
a884fcaace1334b5589d406fa0e56bf016f58ff5
[]
no_license
regione-piemonte/portrilev-portrilweb
6cfe0771c408bc9efad902b20d896341f55e821c
4567e729d9975ec1a91d3e60b3dbd69c7eb55b8d
refs/heads/master
2023-01-03T22:33:08.137380
2020-11-02T13:54:09
2020-11-02T13:54:09
307,353,326
0
1
null
null
null
null
UTF-8
Java
false
false
23,459
java
/* *SPDX-FileCopyrightText: Copyright 2020 | Regione Piemonte *SPDX-License-Identifier: EUPL-1.2 */ /** * Please modify this class to meet your needs * This class is not complete */ package it.csi.portril.portrilweb.business.ws; import it.csi.portril.portrilweb.util.LogUtil; import java.util.logging.Logger; /** * This class was generated by Apache CXF 2.7.7 * 2014-10-09T15:41:33.442+02:00 * Generated source version: 2.7.7 * */ @javax.jws.WebService( serviceName = "BilancioWsService", portName = "BilancioWsPort", targetNamespace = "http://cxf.bilancio.interfacecxf.cmpsrvrp.bilsrvrp.csi.it/", wsdlLocation = "classpath:wsdl/BilancioWs.wsdl", //wsdlLocation = "file:/D:/myworkspace/PORTALE%20RILEVAZIONI/portrilweb/src/resources/wsdl/BilancioWs.wsdl", endpointInterface = "it.csi.portril.portrilweb.business.ws.BilancioWsInterface") public class BilancioWsInterfaceImpl implements BilancioWsInterface { //private static final Logger LOG = Logger.getLogger(BilancioWsInterfaceImpl.class.getName()); LogUtil log = new LogUtil(getClass()); /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaLiquidazioniByAtto(it.csi.portril.portrilweb.business.ws.ConsultaLiquidazioniByAttoDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaLiquidazioniByAttoDTO consultaLiquidazioniByAtto(it.csi.portril.portrilweb.business.ws.ConsultaLiquidazioniByAttoDTO arg0) throws CSIException_Exception { String methodName = "consultaLiquidazioniByAtto"; try { it.csi.portril.portrilweb.business.ws.ConsultaLiquidazioniByAttoDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaCapitoliXImpegni(it.csi.portril.portrilweb.business.ws.ConsultaCapitoliXImpegniDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaCapitoliXImpegniDTO consultaCapitoliXImpegni(it.csi.portril.portrilweb.business.ws.ConsultaCapitoliXImpegniDTO arg0) throws CSIException_Exception { String methodName = "ConsultaCapitoliXImpegniDTO"; try { it.csi.portril.portrilweb.business.ws.ConsultaCapitoliXImpegniDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."; } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaDirezioniAll(it.csi.portril.portrilweb.business.ws.ConsultaDirezioniAllDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaDirezioniAllDTO consultaDirezioniAll(it.csi.portril.portrilweb.business.ws.ConsultaDirezioniAllDTO arg0) throws CSIException_Exception { String methodName = "consultaDirezioniAll"; ////System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaDirezioniAllDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaCodiciGestionaliAll(it.csi.portril.portrilweb.business.ws.ConsultaCodiciGestionaliAllDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaCodiciGestionaliAllDTO consultaCodiciGestionaliAll(it.csi.portril.portrilweb.business.ws.ConsultaCodiciGestionaliAllDTO arg0) throws CSIException_Exception { String methodName = "consultaCodiciGestionaliAll"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaCodiciGestionaliAllDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaFornitoriAll(it.csi.portril.portrilweb.business.ws.ConsultaFornitoriAllDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaFornitoriAllDTO consultaFornitoriAll(it.csi.portril.portrilweb.business.ws.ConsultaFornitoriAllDTO arg0) throws CSIException_Exception { String methodName = "consultaFornitoriAll"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaFornitoriAllDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#determinaByCodice(it.csi.portril.portrilweb.business.ws.DeterminaByCodiceDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.DeterminaByCodiceDTO determinaByCodice(it.csi.portril.portrilweb.business.ws.DeterminaByCodiceDTO arg0) throws CSIException_Exception { String methodName = "determinaByCodice"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.DeterminaByCodiceDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaMandatiCodGestAll(it.csi.portril.portrilweb.business.ws.ConsultaMandatiCodGestAllDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaMandatiCodGestAllDTO consultaMandatiCodGestAll(it.csi.portril.portrilweb.business.ws.ConsultaMandatiCodGestAllDTO arg0) throws CSIException_Exception { String methodName = "consultaMandatiCodGestAll"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaMandatiCodGestAllDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaImpegniAmmAperta(it.csi.portril.portrilweb.business.ws.ConsultaImpegniAmmApertaDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaImpegniAmmApertaDTO consultaImpegniAmmAperta(it.csi.portril.portrilweb.business.ws.ConsultaImpegniAmmApertaDTO arg0) throws CSIException_Exception { String methodName = "consultaImpegniAmmAperta"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaImpegniAmmApertaDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaCapitoliAll(it.csi.portril.portrilweb.business.ws.ConsultaCapitoliAllDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaCapitoliAllDTO consultaCapitoliAll(it.csi.portril.portrilweb.business.ws.ConsultaCapitoliAllDTO arg0) throws CSIException_Exception { String methodName = "consultaCapitoliAll"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaCapitoliAllDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaAttoLiquidazione(it.csi.portril.portrilweb.business.ws.ConsultaAttoLiquidazioneDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaAttoLiquidazioneDTO consultaAttoLiquidazione(it.csi.portril.portrilweb.business.ws.ConsultaAttoLiquidazioneDTO arg0) throws CSIException_Exception { String methodName = "consultaAttoLiquidazione"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaAttoLiquidazioneDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaMandatiByAtto(it.csi.portril.portrilweb.business.ws.ConsultaMandatiByAttoDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaMandatiByAttoDTO consultaMandatiByAtto(it.csi.portril.portrilweb.business.ws.ConsultaMandatiByAttoDTO arg0) throws CSIException_Exception { String methodName = "consultaMandatiByAtto"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaMandatiByAttoDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaDetermineXImpegni(it.csi.portril.portrilweb.business.ws.ConsultaDetermineXImpegniDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaDetermineXImpegniDTO consultaDetermineXImpegni(it.csi.portril.portrilweb.business.ws.ConsultaDetermineXImpegniDTO arg0) throws CSIException_Exception { String methodName = "consultaDetermineXImpegni"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaDetermineXImpegniDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaImpegniByAnnoEsercizio(it.csi.portril.portrilweb.business.ws.ConsultaImpegniByAnnoEsercizioDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaImpegniByAnnoEsercizioDTO consultaImpegniByAnnoEsercizio(it.csi.portril.portrilweb.business.ws.ConsultaImpegniByAnnoEsercizioDTO arg0) throws CSIException_Exception { String methodName = "consultaImpegniByAnnoEsercizio"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaImpegniByAnnoEsercizioDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaDelibereXImpegni(it.csi.portril.portrilweb.business.ws.ConsultaDelibereXImpegniDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaDelibereXImpegniDTO consultaDelibereXImpegni(it.csi.portril.portrilweb.business.ws.ConsultaDelibereXImpegniDTO arg0) throws CSIException_Exception { String methodName = "consultaDelibereXImpegni"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaDelibereXImpegniDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaAttiLiquidazione(it.csi.portril.portrilweb.business.ws.ConsultaAttiLiquidazioneDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaAttiLiquidazioneDTO consultaAttiLiquidazione(it.csi.portril.portrilweb.business.ws.ConsultaAttiLiquidazioneDTO arg0) throws CSIException_Exception { String methodName = "consultaAttiLiquidazione"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaAttiLiquidazioneDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaMandatiAll(it.csi.portril.portrilweb.business.ws.ConsultaMandatiAllDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaMandatiAllDTO consultaMandatiAll(it.csi.portril.portrilweb.business.ws.ConsultaMandatiAllDTO arg0) throws CSIException_Exception { String methodName = "consultaMandatiAll"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaMandatiAllDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#verificaMandatiByAtto(it.csi.portril.portrilweb.business.ws.VerificaMandatiByAttoDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.VerificaMandatiByAttoDTO verificaMandatiByAtto(it.csi.portril.portrilweb.business.ws.VerificaMandatiByAttoDTO arg0) throws CSIException_Exception { String methodName = "verificaMandatiByAtto"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.VerificaMandatiByAttoDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaFornitoriXImpegni(it.csi.portril.portrilweb.business.ws.ConsultaFornitoriXImpegniDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaFornitoriXImpegniDTO consultaFornitoriXImpegni(it.csi.portril.portrilweb.business.ws.ConsultaFornitoriXImpegniDTO arg0) throws CSIException_Exception { String methodName = "consultaFornitoriXImpegni"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaFornitoriXImpegniDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#deliberaByCodice(it.csi.portril.portrilweb.business.ws.DeliberaByCodiceDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.DeliberaByCodiceDTO deliberaByCodice(it.csi.portril.portrilweb.business.ws.DeliberaByCodiceDTO arg0) throws CSIException_Exception { String methodName = "deliberaByCodice"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.DeliberaByCodiceDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaDirezioniXImpegni(it.csi.portril.portrilweb.business.ws.ConsultaDirezioniXImpegniDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaDirezioniXImpegniDTO consultaDirezioniXImpegni(it.csi.portril.portrilweb.business.ws.ConsultaDirezioniXImpegniDTO arg0) throws CSIException_Exception { String methodName = "consultaDirezioniXImpegni"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaDirezioniXImpegniDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#inserisciAttoLiquidazione(it.csi.portril.portrilweb.business.ws.InserisciAttoLiquidazioneDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.InserisciAttoLiquidazioneDTO inserisciAttoLiquidazione(it.csi.portril.portrilweb.business.ws.InserisciAttoLiquidazioneDTO arg0) throws CSIException_Exception { String methodName = "inserisciAttoLiquidazione"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.InserisciAttoLiquidazioneDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaImpegniAll(it.csi.portril.portrilweb.business.ws.ConsultaImpegniAllDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaImpegniAllDTO consultaImpegniAll(it.csi.portril.portrilweb.business.ws.ConsultaImpegniAllDTO arg0) throws CSIException_Exception { String methodName = "consultaImpegniAll"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaImpegniAllDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaLiquidazioniAll(it.csi.portril.portrilweb.business.ws.ConsultaLiquidazioniAllDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaLiquidazioniAllDTO consultaLiquidazioniAll(it.csi.portril.portrilweb.business.ws.ConsultaLiquidazioniAllDTO arg0) throws CSIException_Exception { String methodName = "consultaLiquidazioniAll"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaLiquidazioniAllDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaImpegni(it.csi.portril.portrilweb.business.ws.ConsultaImpegniDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaImpegniDTO consultaImpegni(it.csi.portril.portrilweb.business.ws.ConsultaImpegniDTO arg0) throws CSIException_Exception { String methodName = "consultaImpegni"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaImpegniDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaMandatiXImpegni(it.csi.portril.portrilweb.business.ws.ConsultaMandatiXImpegniDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaMandatiXImpegniDTO consultaMandatiXImpegni(it.csi.portril.portrilweb.business.ws.ConsultaMandatiXImpegniDTO arg0) throws CSIException_Exception { String methodName = "consultaMandatiXImpegni"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaMandatiXImpegniDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#verificaMandati(it.csi.portril.portrilweb.business.ws.VerificaMandatiDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.VerificaMandatiDTO verificaMandati(it.csi.portril.portrilweb.business.ws.VerificaMandatiDTO arg0) throws CSIException_Exception { String methodName = "verificaMandati"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.VerificaMandatiDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } /* (non-Javadoc) * @see it.csi.portril.portrilweb.business.ws.BilancioWsInterface#consultaBeneficiari(it.csi.portril.portrilweb.business.ws.ConsultaBeneficiariDTO arg0 )* */ public it.csi.portril.portrilweb.business.ws.ConsultaBeneficiariDTO consultaBeneficiari(it.csi.portril.portrilweb.business.ws.ConsultaBeneficiariDTO arg0) throws CSIException_Exception { String methodName = "consultaBeneficiari"; //System.out.println(arg0); try { it.csi.portril.portrilweb.business.ws.ConsultaBeneficiariDTO _return = null; return _return; } catch (java.lang.Exception ex) { log.error(methodName, ex); throw new RuntimeException(ex); } //throw new CSIException_Exception("CSIException..."); } }
[ "michele.perdono@csi.it" ]
michele.perdono@csi.it
e0bc5f2b77704ea87db98abe0274058d48739826
3fc503bed9e8ba2f8c49ebf7783bcdaa78951ba8
/TRAVACC_R5/ndcfacades/src/de/hybris/platform/ndcfacades/ndc/Qualifier.java
42b68c914cc5574a64b1273abf69f387e3f64cab
[]
no_license
RabeS/model-T
3e64b2dfcbcf638bc872ae443e2cdfeef4378e29
bee93c489e3a2034b83ba331e874ccf2c5ff10a9
refs/heads/master
2021-07-01T02:13:15.818439
2020-09-05T08:33:43
2020-09-05T08:33:43
147,307,585
0
0
null
null
null
null
UTF-8
Java
false
false
10,498
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2017.02.07 at 04:46:04 PM GMT // package de.hybris.platform.ndcfacades.ndc; 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.XmlSchemaType; 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> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element ref="{http://www.iata.org/IATA/EDIST}BaggagePricingQualifier" minOccurs="0"/> * &lt;element ref="{http://www.iata.org/IATA/EDIST}ExistingOrderQualifier" minOccurs="0"/> * &lt;element ref="{http://www.iata.org/IATA/EDIST}PaymentCardQualifiers" minOccurs="0"/> * &lt;element ref="{http://www.iata.org/IATA/EDIST}ProgramQualifiers" minOccurs="0"/> * &lt;element ref="{http://www.iata.org/IATA/EDIST}PromotionQualifiers" minOccurs="0"/> * &lt;element ref="{http://www.iata.org/IATA/EDIST}SeatQualifier" minOccurs="0"/> * &lt;element ref="{http://www.iata.org/IATA/EDIST}ServiceQualifier" minOccurs="0"/> * &lt;element ref="{http://www.iata.org/IATA/EDIST}SocialMediaQualifiers" minOccurs="0"/> * &lt;element ref="{http://www.iata.org/IATA/EDIST}SpecialFareQualifiers" minOccurs="0"/> * &lt;element ref="{http://www.iata.org/IATA/EDIST}SpecialNeedQualifiers" minOccurs="0"/> * &lt;element ref="{http://www.iata.org/IATA/EDIST}TripPurposeQualifier" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "baggagePricingQualifier", "existingOrderQualifier", "paymentCardQualifiers", "programQualifiers", "promotionQualifiers", "seatQualifier", "serviceQualifier", "socialMediaQualifiers", "specialFareQualifiers", "specialNeedQualifiers", "tripPurposeQualifier" }) @XmlRootElement(name = "Qualifier") public class Qualifier { @XmlElement(name = "BaggagePricingQualifier") protected BaggagePricingQualifierType baggagePricingQualifier; @XmlElement(name = "ExistingOrderQualifier") protected ExistingOrderQualifier existingOrderQualifier; @XmlElement(name = "PaymentCardQualifiers") protected CardQualifierType paymentCardQualifiers; @XmlElement(name = "ProgramQualifiers") protected ProgramQualifiers programQualifiers; @XmlElement(name = "PromotionQualifiers") protected PromotionQualifiers promotionQualifiers; @XmlElement(name = "SeatQualifier") protected SeatQualifier seatQualifier; @XmlElement(name = "ServiceQualifier") protected ServiceQualifierPriceType serviceQualifier; @XmlElement(name = "SocialMediaQualifiers") protected SocialQualiferType socialMediaQualifiers; @XmlElement(name = "SpecialFareQualifiers") protected FareQualifierType specialFareQualifiers; @XmlElement(name = "SpecialNeedQualifiers") protected SpecialQualiferType specialNeedQualifiers; @XmlElement(name = "TripPurposeQualifier") @XmlSchemaType(name = "string") protected TripPurposeListType tripPurposeQualifier; /** * Gets the value of the baggagePricingQualifier property. * * @return * possible object is * {@link BaggagePricingQualifierType } * */ public BaggagePricingQualifierType getBaggagePricingQualifier() { return baggagePricingQualifier; } /** * Sets the value of the baggagePricingQualifier property. * * @param value * allowed object is * {@link BaggagePricingQualifierType } * */ public void setBaggagePricingQualifier(BaggagePricingQualifierType value) { this.baggagePricingQualifier = value; } /** * Gets the value of the existingOrderQualifier property. * * @return * possible object is * {@link ExistingOrderQualifier } * */ public ExistingOrderQualifier getExistingOrderQualifier() { return existingOrderQualifier; } /** * Sets the value of the existingOrderQualifier property. * * @param value * allowed object is * {@link ExistingOrderQualifier } * */ public void setExistingOrderQualifier(ExistingOrderQualifier value) { this.existingOrderQualifier = value; } /** * Contains card type, and Issuer Identification Number. * * @return * possible object is * {@link CardQualifierType } * */ public CardQualifierType getPaymentCardQualifiers() { return paymentCardQualifiers; } /** * Sets the value of the paymentCardQualifiers property. * * @param value * allowed object is * {@link CardQualifierType } * */ public void setPaymentCardQualifiers(CardQualifierType value) { this.paymentCardQualifiers = value; } /** * Gets the value of the programQualifiers property. * * @return * possible object is * {@link ProgramQualifiers } * */ public ProgramQualifiers getProgramQualifiers() { return programQualifiers; } /** * Sets the value of the programQualifiers property. * * @param value * allowed object is * {@link ProgramQualifiers } * */ public void setProgramQualifiers(ProgramQualifiers value) { this.programQualifiers = value; } /** * Gets the value of the promotionQualifiers property. * * @return * possible object is * {@link PromotionQualifiers } * */ public PromotionQualifiers getPromotionQualifiers() { return promotionQualifiers; } /** * Sets the value of the promotionQualifiers property. * * @param value * allowed object is * {@link PromotionQualifiers } * */ public void setPromotionQualifiers(PromotionQualifiers value) { this.promotionQualifiers = value; } /** * Gets the value of the seatQualifier property. * * @return * possible object is * {@link SeatQualifier } * */ public SeatQualifier getSeatQualifier() { return seatQualifier; } /** * Sets the value of the seatQualifier property. * * @param value * allowed object is * {@link SeatQualifier } * */ public void setSeatQualifier(SeatQualifier value) { this.seatQualifier = value; } /** * Gets the value of the serviceQualifier property. * * @return * possible object is * {@link ServiceQualifierPriceType } * */ public ServiceQualifierPriceType getServiceQualifier() { return serviceQualifier; } /** * Sets the value of the serviceQualifier property. * * @param value * allowed object is * {@link ServiceQualifierPriceType } * */ public void setServiceQualifier(ServiceQualifierPriceType value) { this.serviceQualifier = value; } /** * Gets the value of the socialMediaQualifiers property. * * @return * possible object is * {@link SocialQualiferType } * */ public SocialQualiferType getSocialMediaQualifiers() { return socialMediaQualifiers; } /** * Sets the value of the socialMediaQualifiers property. * * @param value * allowed object is * {@link SocialQualiferType } * */ public void setSocialMediaQualifiers(SocialQualiferType value) { this.socialMediaQualifiers = value; } /** * Contains elements identifying eligibility for special pricing, which may be private or negotiated. * * Notes: * 1. Supports pricing discounts and/ or other benefits for Travelers affiliated with companies with private fare and/ or negotiated rate contracts. * * 2. Private Fares apply to ALL Travelers. * * @return * possible object is * {@link FareQualifierType } * */ public FareQualifierType getSpecialFareQualifiers() { return specialFareQualifiers; } /** * Sets the value of the specialFareQualifiers property. * * @param value * allowed object is * {@link FareQualifierType } * */ public void setSpecialFareQualifiers(FareQualifierType value) { this.specialFareQualifiers = value; } /** * Gets the value of the specialNeedQualifiers property. * * @return * possible object is * {@link SpecialQualiferType } * */ public SpecialQualiferType getSpecialNeedQualifiers() { return specialNeedQualifiers; } /** * Sets the value of the specialNeedQualifiers property. * * @param value * allowed object is * {@link SpecialQualiferType } * */ public void setSpecialNeedQualifiers(SpecialQualiferType value) { this.specialNeedQualifiers = value; } /** * Gets the value of the tripPurposeQualifier property. * * @return * possible object is * {@link TripPurposeListType } * */ public TripPurposeListType getTripPurposeQualifier() { return tripPurposeQualifier; } /** * Sets the value of the tripPurposeQualifier property. * * @param value * allowed object is * {@link TripPurposeListType } * */ public void setTripPurposeQualifier(TripPurposeListType value) { this.tripPurposeQualifier = value; } }
[ "sebastian.rulik@gmail.com" ]
sebastian.rulik@gmail.com
4343b50e888c5a558d0a402897383bc57adc132a
03d6250718f7647dba005e7169b8a4b43d780ff7
/src/java/talentum/escenic/plugins/authenticator/ReminderException.java
cda64a5e32c21379f5871de89023bb76061b72e9
[]
no_license
rkvpolarcape/authenticator-plugin
7d19d92ac39f910011b2ec83a633c18df9220ad2
4a34e975b3c4448bb73a2987d04a945c54dd96dd
refs/heads/master
2021-05-04T23:34:09.261985
2015-03-09T09:51:19
2015-03-09T09:51:19
119,381,241
0
0
null
2018-01-29T12:44:46
2018-01-29T12:44:46
null
UTF-8
Java
false
false
365
java
package talentum.escenic.plugins.authenticator; /** * Indicates that something went wrong when trying to send password reminder. * * @author stefan.norman */ public class ReminderException extends Exception { public ReminderException(String message) { super(message); } public ReminderException(String message, Exception e) { super(message, e); } }
[ "stefan.norman@ccec6eda-18fc-447e-8b29-203d4591b618" ]
stefan.norman@ccec6eda-18fc-447e-8b29-203d4591b618
e99c3df9c3272ea60dd2cb4fff3a4ee316bde006
062e3037a2c0a0c1c6f892e1f09e4af69238a93f
/app/src/androidTest/java/com/htd/learndbms/ExampleInstrumentedTest.java
66ad8f0e1d3676852b4f1cf514cd30bc9bcdc44a
[]
no_license
hatuandung/LearnDBMS
f9dfdb29d815a4d494135e159fcd51d3ad29bbed
8004cd42f17f92e499acbab29faacaa485509ce0
refs/heads/master
2022-11-15T14:11:35.452664
2020-07-09T04:43:54
2020-07-09T04:43:54
277,712,080
0
0
null
null
null
null
UTF-8
Java
false
false
748
java
package com.htd.learndbms; import android.content.Context; import androidx.test.platform.app.InstrumentationRegistry; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); assertEquals("com.htd.learndbms", appContext.getPackageName()); } }
[ "ha.dung792@gmail.com" ]
ha.dung792@gmail.com
b5ec3dc2fb2b825d6f9ff417092c41746d76b6eb
db56dc7604b67e6e02284d42b23adaabdf2f6dd4
/practicas/Entrega/src/visitor/Visitor.java
d5fde9e315ae0134014e80b04e43877df326e322
[ "MIT" ]
permissive
SantiMA10/DLP
b1a5c6c356bdeaf735e31fdaca504ff5e3311dc8
b2c3ae8da1d36f0e509a1459e7ebfc82f751ac4a
refs/heads/master
2021-05-01T00:12:26.039675
2018-01-28T11:58:39
2018-01-28T11:58:39
51,198,013
1
3
null
null
null
null
UTF-8
Java
false
false
1,477
java
/** * @generated VGen 1.3.3 */ package visitor; import ast.*; public interface Visitor { public Object visit(Programa node, Object param); public Object visit(DefVar node, Object param); public Object visit(Struct node, Object param); public Object visit(Funcion node, Object param); public Object visit(IntType node, Object param); public Object visit(RealType node, Object param); public Object visit(CharType node, Object param); public Object visit(StructType node, Object param); public Object visit(ArrayType node, Object param); public Object visit(Parametro node, Object param); public Object visit(If node, Object param); public Object visit(While node, Object param); public Object visit(Print node, Object param); public Object visit(Read node, Object param); public Object visit(Asignacion node, Object param); public Object visit(Invocacion node, Object param); public Object visit(Return node, Object param); public Object visit(ExpresionLogica node, Object param); public Object visit(ExpresionNumerica node, Object param); public Object visit(AccesoArray node, Object param); public Object visit(OperacionUnaria node, Object param); public Object visit(AccesoStruct node, Object param); public Object visit(Lintent node, Object param); public Object visit(Lintreal node, Object param); public Object visit(Lintchar node, Object param); public Object visit(Cast node, Object param); public Object visit(Var node, Object param); }
[ "santiagomartinagra@gmail.com" ]
santiagomartinagra@gmail.com
b65f994ee9bb89c63d5dabf962f0030e37142763
280e4a7c05c1d6d70dc30e9d3b487cffc871778e
/src/main/java/org/rest/quest/service/UserService.java
53a7a485e04a6998e905324cd4e3b8f41c616178
[]
no_license
Roman-Uholnikov/rest-quest-samples
19c87e2459f6415d563cd0e51e07e79bfb009c5c
03ab0479d8f585823255e8558275ca933636efb2
refs/heads/master
2021-01-10T15:28:37.464777
2016-08-30T06:38:54
2016-08-30T06:38:54
54,817,966
0
3
null
null
null
null
UTF-8
Java
false
false
436
java
package org.rest.quest.service; import org.rest.quest.domain.User; import java.util.Map; import java.util.logging.Logger; /** * @author Roman Uholnikov */ public class UserService { public static final Logger logger = Logger.getLogger(UserService.class.getSimpleName()); public static final int KEY_WORD_CHARACTER_COUNT = 4; public String calculateKeyWord(Map<String, User> users) { return null; } }
[ "ugolnikovroman@gmail.com" ]
ugolnikovroman@gmail.com
9034e5ba0baacedce2c90e2edfe107777cddc979
f66e2ad3fc0f8c88278c0997b156f5c6c8f77f28
/DataStructure/Play-with-Data-Structures/src/main/java/structures/linked_recursion/Solution.java
891a035cba581c840200894329b89f1a711e76cc
[ "Apache-2.0" ]
permissive
flyfire/Programming-Notes-Code
3b51b45f8760309013c3c0cc748311d33951a044
4b1bdd74c1ba0c007c504834e4508ec39f01cd94
refs/heads/master
2020-05-07T18:00:49.757509
2019-04-10T11:15:13
2019-04-10T11:15:13
180,750,568
1
0
Apache-2.0
2019-04-11T08:40:38
2019-04-11T08:40:38
null
UTF-8
Java
false
false
177
java
package structures.linked_recursion; /** * @author ztiany * Email: ztiany3@gmail.com */ public interface Solution { ListNode removeElements(ListNode head, int val); }
[ "ztiany3@gmail.com" ]
ztiany3@gmail.com
85ec9ed90eecc89f68a9fb75fa2fbfc686cbdd2a
86d128ea44944fac9740405457be172463de5e18
/app/src/test/java/com/roderus/app/listviewdemo/ExampleUnitTest.java
c52dd98486219dc183cfea45181add59529e55bb
[]
no_license
mukmaster/ListViewDemo
fcb5b846fbeb9d96d8c89f0030cfd13a23115406
e6b4eff420fa05df01178f17ea4e46eaf7f79e3b
refs/heads/master
2021-10-10T06:50:12.080146
2019-01-07T20:02:57
2019-01-07T20:02:57
164,486,734
0
0
null
null
null
null
UTF-8
Java
false
false
389
java
package com.roderus.app.listviewdemo; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addition_isCorrect() { assertEquals(4, 2 + 2); } }
[ "helmut.roderus@hs-ansbach.de" ]
helmut.roderus@hs-ansbach.de
d08b81376234ed587553aa723948b9626abbd6bc
a8495765df13473af3aa76d8c08cf0704a39f2e0
/src/main/java/com/ireader/ml/optimize/Impl/testJieba.java
f81111d108917f84011ba1436035258339966d1d
[]
no_license
zxsted/machineLearningToolBox
9808950ae07de6e71a1a9e7a77c91a6571d7e8c5
6d552340b623201c98298ab7460c6879cea4acb7
refs/heads/master
2021-04-30T16:01:12.046427
2015-11-05T01:32:35
2015-11-05T01:32:35
40,524,790
0
1
null
null
null
null
UTF-8
Java
false
false
1,054
java
package com.ireader.ml.optimize.Impl; import com.huaban.analysis.jieba.JiebaSegmenter; import com.huaban.analysis.jieba.SegToken; import java.util.List; /** * Created by zxsted on 15-9-20. */ public class testJieba { public static void main(String[] args) { JiebaSegmenter segmenter = new JiebaSegmenter(); String[] sentences = new String[] {"这是一个伸手不见五指的黑夜。我叫孙悟空,我爱北京,我爱Python和C++。", "我不喜欢日本和服。", "雷猴回归人间。", "工信处女干事每月经过下属科室都要亲口交代24口交换机等技术性器件的安装工作", "结果婚的和尚未结过婚的"}; for (String sentence : sentences) { List<SegToken> list = segmenter.process(sentence , JiebaSegmenter.SegMode.SEARCH ); for(SegToken token : list) { System.out.print(token.word + "\t"); } System.out.println(); } } }
[ "zxsted@zxsted-ThinkPad-Edge-E430c.(none)" ]
zxsted@zxsted-ThinkPad-Edge-E430c.(none)
a14a522c3f0c64332fff325ef6a7fbb89293a1c0
8a435c491b3b11f279a2eadecb0c2fa3176d7601
/src/main/java/core/sort/util/vector/Vector3f.java
64c62e521558a539856d1ee436b6f31ae8b4983a
[]
no_license
bear43/sortings
1547544ffa3559b3ce4f0be59925a16cf2c58d19
06a1f9eaef68c5192985f525775a37cc2985b09c
refs/heads/master
2022-11-17T20:26:58.717579
2020-07-12T21:04:14
2020-07-12T21:04:14
276,465,804
0
0
null
null
null
null
UTF-8
Java
false
false
966
java
package core.sort.util.vector; import lombok.AllArgsConstructor; @AllArgsConstructor public class Vector3f implements IVectorNf<Vector3f> { public float x; public float y; public float z; public Vector3f() { } @Override public float getComponent(VectorComponent component) { switch (component) { case X: return x; case Y: return y; case Z: return z; default: throw new UnsupportedOperationException("Unknown component"); } } @Override public float setComponent(VectorComponent component, float value) { switch (component) { case X: x = value; case Y: y = value; case Z: z = value; default: throw new UnsupportedOperationException("Unknown component"); } } }
[ "bigwilly4307@gmail.com" ]
bigwilly4307@gmail.com
6ddbbb9a8dfc167282aa97f2e0d40e22281c10b3
5fdeb4d266a8c13776bfb139e5d10723dee94f2f
/src/test/java/com/poc/resttemplate/rest_client/AppTest.java
fc4ea608dbebe4d484c6fc69097ce665d52d99bd
[]
no_license
venkataraju-nandam/SpringbootRestTemplateClient
01f387a4e70ac5613839e95b1b69971bb0f45d72
e917861cfcff53817cd1130525b4e53ed992b0b6
refs/heads/master
2021-06-30T12:22:18.789706
2020-01-29T17:10:20
2020-01-29T17:10:20
237,038,107
0
0
null
2021-06-04T02:26:48
2020-01-29T17:08:20
Java
UTF-8
Java
false
false
716
java
package com.poc.resttemplate.rest_client; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple RestClientApplication. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( AppTest.class ); } /** * Rigourous Test :-) */ public void testApp() { assertTrue( true ); } }
[ "venkatarajunandam.infy@gmail.com" ]
venkatarajunandam.infy@gmail.com
2d6f7b944b0d8cae3c5539b740eb2cbfef7c0f3f
42cb498cdd3368422ae087ac21f197fd4f93442b
/Algorithms/BinarySearch/SearchRange.java
2d360385abf63f18434f9331ec74f2f8c98dc30e
[]
no_license
wayne12/StudyFolder
9e5a8d8847e016fa6382d89a3bd5f88cfbcac81e
321a3555beeda31ecf3c290ed1a3444282db5fa5
refs/heads/master
2021-01-21T13:03:11.748168
2016-05-04T05:57:33
2016-05-04T05:57:33
51,728,366
0
0
null
null
null
null
UTF-8
Java
false
false
2,940
java
import java.util.*; public class SearchRange { public static void main(String [] args){ SearchRange obj = new SearchRange(); try{ int ret = obj.searchRange(new int []{1}, 0); System.out.println(ret); } catch(Exception ex){ } } // binary search first. then search range (which cause time complexity may greater than O(lgn) ) public int[] searchRange(int[] nums, int target) { if(nums == null || (nums.length == 1 && nums[0] != target)) return new int [] {-1, -1}; int s = 0, end = nums.length-1; int pos = 0, mid; if(nums[s] == target){ pos = s; s = end; } else if(nums[end] == target){ pos = end; end = s; } while(s+1 < end){ // using s+1 instead of s to prevent infinit loop mid = s + (end-s)/2; //instead of mid = (s+end)/2 to prevent overflow if(nums[mid] == target){ pos = mid; break; } else if(nums[mid] > target) end = mid; else s = mid; } int cnt = 0; if(nums[pos] == target){ cnt++; } int rcnt = 0, lcnt = 0; while(pos-1-lcnt >= 0 && nums[pos-1-lcnt] == target){ lcnt++; } while(pos+1+rcnt < nums.length && nums[pos+1+rcnt] == target){ rcnt++; } return cnt==0? new int []{-1,-1}: new int []{pos-lcnt, pos+lcnt}; } //this is another method using binary search, which improved time complexity in method 1 public int[] searchRange2(int[] nums, int target) { if(nums == null || (nums.length == 1 && nums[0] != target)) return new int [] {-1, -1}; int s = 0, e = nums.length-1; int mid; if(nums[s] != target){ // find lower bound while(s < e){ mid = s + (e-s)/2; if(nums[mid] >= target) e = mid; else s = mid+1; } } int low = s; e = nums.length-1; if(nums[e] != target){ // find upper bound while(s < e){ mid = s + (e-s+1)/2; // same as ceiling of (s + (e-s)/2); using it to prevent infinit loop if(nums[mid] <= target) s = mid; else e = mid-1; } } return s >= nums.length || nums[s] != target ? new int []{-1,-1} : new int []{s,e}; } //comment: /* 1. (s+e)/2 is actually Math.floor((s+e)/2); (s+e+1)/2 is actually Math.ceil((s+e)/2); 2. time complexity in Method1 is actually not O(lgn), it is (number of target)+O(lgn); So the worest case could be O(n) (e.g. [2,2,2,2,...] 2) */ }
[ "Wayne Lu" ]
Wayne Lu
f334578e4e29c40e40eedb58c2cef44f39feb18c
cba83af48d7d681882b64eac7b91bd6807e89db3
/spring-boot-file/src/main/java/com/lance/file/service/impl/TFileServiceImpl.java
c3c7ac1ed157ec3292ec2a9b3cb19ba0fc6b4c83
[]
no_license
JustTheSame/spring-boot-example
12a7c9e610c5ccd772d98c19865edbef01b57397
d63704351c8aad4ad1e7dcc6aa810b0246a43984
refs/heads/master
2021-06-05T14:56:52.296729
2020-03-30T08:16:15
2020-03-30T08:16:15
164,994,701
1
0
null
2021-06-04T02:33:24
2019-01-10T05:17:23
Java
UTF-8
Java
false
false
3,945
java
package com.lance.file.service.impl; import com.lance.file.entity.TFile; import com.lance.file.dao.TFileDao; import com.lance.file.service.TFileService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.web.multipart.MultipartFile; import javax.annotation.Resource; import java.io.File; import java.net.InetAddress; import java.net.UnknownHostException; import java.sql.Date; import java.time.Instant; import java.time.LocalDate; import java.util.List; import java.util.Random; /** * @Description: * @author: zhaotian * @date: 2020/3/30 */ @Service("tFileService") public class TFileServiceImpl implements TFileService { private static final Logger LOGGER = LoggerFactory.getLogger(TFileServiceImpl.class); @Value("${file.rootPath}") private String ROOT_PATH; @Value("${file.sonPath}") private String SON_PATH; @Value("${server.port}") private String PORT; @Resource private TFileDao tFileDao; /** * 通过ID查询单条数据 * * @param id 主键 * @return 实例对象 */ @Override public TFile queryById(Integer id) { return this.tFileDao.queryById(id); } /** * 查询多条数据 * * @param offset 查询起始位置 * @param limit 查询条数 * @return 对象列表 */ @Override public List<TFile> queryAllByLimit(int offset, int limit) { return this.tFileDao.queryAllByLimit(offset, limit); } /** * 新增数据 * * @param tFile 实例对象 * @return 实例对象 */ @Override public TFile insert(TFile tFile) { this.tFileDao.insert(tFile); return tFile; } /** * 修改数据 * * @param tFile 实例对象 * @return 实例对象 */ @Override public TFile update(TFile tFile) { this.tFileDao.update(tFile); return this.queryById(tFile.getId()); } /** * 通过主键删除数据 * * @param id 主键 * @return 是否成功 */ @Override public boolean deleteById(Integer id) { return this.tFileDao.deleteById(id) > 0; } @Override public String getUploadFilePath(MultipartFile file) { if (file.isEmpty()) { throw new NullPointerException("文件为空"); } String filePath = ROOT_PATH + SON_PATH; LOGGER.info(filePath); String suffix = file.getOriginalFilename(); String prefix = suffix.substring(suffix.lastIndexOf(".") + 1); Random random = new Random(); Integer randomFileName = random.nextInt(1000); String filename = randomFileName + "." + prefix; File dest = new File(filePath + filename); if (!dest.getParentFile().exists()) { dest.getParentFile().mkdirs(); } try { file.transferTo(dest); String filePathNew = SON_PATH + filename; String profilePhoto = saveUploadFile(filePathNew); System.out.println(profilePhoto); return profilePhoto; } catch (Exception e) { return dest.toString(); } } private String saveUploadFile(String filePathNew) { String host = null; try { host = InetAddress.getLocalHost().getHostAddress(); } catch (UnknownHostException e) { e.printStackTrace(); } TFile file = new TFile(); file.setCreateTime(Date.from(Instant.now())); file.setUpdateTime(Date.from(Instant.now())); file.setProfilePhoto(host + ":" + PORT + filePathNew); Integer result = tFileDao.insert(file); LOGGER.info("insert " + result + " data"); LOGGER.info("url: " + file.getProfilePhoto()); return file.getProfilePhoto(); } }
[ "tian.zhao@siemens.com" ]
tian.zhao@siemens.com
39136489bc75590eb667b638b8178871a48e7a00
08a46d882b8e69efd5090555915f39583cb0067a
/src/secp256k1/src/java/org/bitcoinold/NativeSecp256k1Util.java
657389ca981620ae14913aa868f98feea85464bd
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
Bitcoin-OLD/Bitcoin-OLD
3a7d36ce9d7ba6c238b5e67443290172318c09d0
16627f390aa418a99103843f9d94c48931fad826
refs/heads/master
2020-04-16T21:00:10.631744
2019-01-15T19:39:39
2019-01-15T19:39:39
165,907,352
0
0
null
null
null
null
UTF-8
Java
false
false
1,546
java
/* * Copyright 2014-2016 the libsecp256k1 contributors * * 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.bitcoinold; public class NativeSecp256k1Util{ public static void assertEquals( int val, int val2, String message ) throws AssertFailException{ if( val != val2 ) throw new AssertFailException("FAIL: " + message); } public static void assertEquals( boolean val, boolean val2, String message ) throws AssertFailException{ if( val != val2 ) throw new AssertFailException("FAIL: " + message); else System.out.println("PASS: " + message); } public static void assertEquals( String val, String val2, String message ) throws AssertFailException{ if( !val.equals(val2) ) throw new AssertFailException("FAIL: " + message); else System.out.println("PASS: " + message); } public static class AssertFailException extends Exception { public AssertFailException(String message) { super( message ); } } }
[ "bitcoinold@protonmail.com" ]
bitcoinold@protonmail.com
4ee12d151205fd8f989e839059ee8ec13a7ddabd
17af0e21028783a84d8dec061e19c28268ef0a16
/pgql-lang/src/test/java/oracle/pgql/lang/completions/AbstractCompletionsTest.java
54f9924ca4e379ea8a461193c278a6a0b62854a5
[ "UPL-1.0", "Apache-2.0" ]
permissive
DGalstyan/pgql-lang
b859c5158e666b4336f9e462a9040b404b151670
a139b60d91ab68982d3b9c3452ba214a72a3a7c6
refs/heads/master
2021-07-04T08:43:16.457520
2017-09-21T03:12:45
2017-09-21T03:12:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,184
java
/** * Copyright (C) 2013 - 2017 Oracle and/or its affiliates. All rights reserved. */ package oracle.pgql.lang.completions; import static org.junit.Assert.assertEquals; import java.util.List; import java.util.stream.Collectors; import org.junit.BeforeClass; import oracle.pgql.lang.Pgql; public abstract class AbstractCompletionsTest { protected static Pgql pgql; @BeforeClass public static void setUp() throws Exception { pgql = new Pgql(); } protected abstract PgqlCompletionContext getCompletionContext(); protected void checkResult(String query, List<PgqlCompletion> expected) throws Exception { int cursor = query.indexOf("???"); query = query.replaceAll("\\?\\?\\?", ""); List<PgqlCompletion> actual = pgql.generateCompletions(query, cursor, getCompletionContext()); String expectedAsString = expected.stream().map(c -> c.toString()).collect(Collectors.joining("\n")); String actualAsString = actual.stream().map(c -> c.toString()).collect(Collectors.joining("\n")); String errorMessage = "\nexpected\n\n" + expectedAsString + "\n\nactual\n\n" + actualAsString + "\n"; assertEquals(errorMessage, expected, actual); } }
[ "oskar.van.rest@oracle.com" ]
oskar.van.rest@oracle.com
7db46d69097b2bce53a31ff1937fd22ea3ee680d
82ada8f2b9753c7d97d720b396c6bda044fdf988
/base-framework/src/main/java/com/dingtai/android/library/video/model/VodProgramModel.java
5ca75d24ff26cb7c9d01cc5a9e69e352944fc0b0
[]
no_license
xyyou123/dingtai-base-framework
f0dc377647b92df15c0d3f66942c5582eaefe506
c983c4d9c4e8456c5dec9681ee347f0f2cfb484c
refs/heads/master
2022-04-23T16:03:40.978218
2020-04-19T19:43:42
2020-04-19T19:44:12
257,085,196
0
0
null
null
null
null
UTF-8
Java
false
false
6,686
java
package com.dingtai.android.library.video.model; import android.os.Parcel; import android.os.Parcelable; import org.greenrobot.greendao.annotation.Entity; import org.greenrobot.greendao.annotation.Generated; import org.greenrobot.greendao.annotation.Id; /** * author:lnr * date:2018/8/29 * 点播节目对象 */ @Entity public class VodProgramModel implements Parcelable { @Id private Long _id; private String ID; private String CreateTime; private String ProgramContentName; private String ProgramContentUrl; private String ProgramDate; private String ProgramContentLogo; private String ProgramCommentNum; private String VODName; private String VODType; private String GoodPoint; private String VODCPID; private String Status; private String ReMark; private String ReadNo; private String authenticationflag; public String getAuthenticationflag() { return authenticationflag; } public void setAuthenticationflag(String authenticationflag) { this.authenticationflag = authenticationflag; } @Generated(hash = 1787680320) public VodProgramModel(Long _id, String ID, String CreateTime, String ProgramContentName, String ProgramContentUrl, String ProgramDate, String ProgramContentLogo, String ProgramCommentNum, String VODName, String VODType, String GoodPoint, String VODCPID, String Status, String ReMark, String ReadNo, String authenticationflag) { this._id = _id; this.ID = ID; this.CreateTime = CreateTime; this.ProgramContentName = ProgramContentName; this.ProgramContentUrl = ProgramContentUrl; this.ProgramDate = ProgramDate; this.ProgramContentLogo = ProgramContentLogo; this.ProgramCommentNum = ProgramCommentNum; this.VODName = VODName; this.VODType = VODType; this.GoodPoint = GoodPoint; this.VODCPID = VODCPID; this.Status = Status; this.ReMark = ReMark; this.ReadNo = ReadNo; this.authenticationflag = authenticationflag; } @Generated(hash = 1412841882) public VodProgramModel() { } public String getProgramCommentNum() { return ProgramCommentNum; } public void setProgramCommentNum(String programCommentNum) { ProgramCommentNum = programCommentNum; } public String getVODName() { return VODName; } public void setVODName(String VODName) { this.VODName = VODName; } public String getVODType() { return VODType; } public void setVODType(String VODType) { this.VODType = VODType; } public String getGoodPoint() { return GoodPoint; } public void setGoodPoint(String goodPoint) { GoodPoint = goodPoint; } public Long get_id() { return this._id; } public void set_id(Long _id) { this._id = _id; } public String getID() { return this.ID; } public void setID(String ID) { this.ID = ID; } public String getCreateTime() { return this.CreateTime; } public void setCreateTime(String CreateTime) { this.CreateTime = CreateTime; } public String getProgramContentName() { return this.ProgramContentName; } public void setProgramContentName(String ProgramContentName) { this.ProgramContentName = ProgramContentName; } public String getProgramContentUrl() { return this.ProgramContentUrl; } public void setProgramContentUrl(String ProgramContentUrl) { this.ProgramContentUrl = ProgramContentUrl; } public String getProgramDate() { return this.ProgramDate; } public void setProgramDate(String ProgramDate) { this.ProgramDate = ProgramDate; } public String getProgramContentLogo() { return this.ProgramContentLogo; } public void setProgramContentLogo(String ProgramContentLogo) { this.ProgramContentLogo = ProgramContentLogo; } public String getVODCPID() { return this.VODCPID; } public void setVODCPID(String VODCPID) { this.VODCPID = VODCPID; } public String getStatus() { return this.Status; } public void setStatus(String Status) { this.Status = Status; } public String getReMark() { return this.ReMark; } public void setReMark(String ReMark) { this.ReMark = ReMark; } public String getReadNo() { return this.ReadNo; } public void setReadNo(String ReadNo) { this.ReadNo = ReadNo; } @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel dest, int flags) { dest.writeValue(this._id); dest.writeString(this.ID); dest.writeString(this.CreateTime); dest.writeString(this.ProgramContentName); dest.writeString(this.ProgramContentUrl); dest.writeString(this.ProgramDate); dest.writeString(this.ProgramContentLogo); dest.writeString(this.ProgramCommentNum); dest.writeString(this.VODName); dest.writeString(this.VODType); dest.writeString(this.GoodPoint); dest.writeString(this.VODCPID); dest.writeString(this.Status); dest.writeString(this.ReMark); dest.writeString(this.ReadNo); dest.writeString(this.authenticationflag); } protected VodProgramModel(Parcel in) { this._id = (Long) in.readValue(Long.class.getClassLoader()); this.ID = in.readString(); this.CreateTime = in.readString(); this.ProgramContentName = in.readString(); this.ProgramContentUrl = in.readString(); this.ProgramDate = in.readString(); this.ProgramContentLogo = in.readString(); this.ProgramCommentNum = in.readString(); this.VODName = in.readString(); this.VODType = in.readString(); this.GoodPoint = in.readString(); this.VODCPID = in.readString(); this.Status = in.readString(); this.ReMark = in.readString(); this.ReadNo = in.readString(); this.authenticationflag = in.readString(); } public static final Creator<VodProgramModel> CREATOR = new Creator<VodProgramModel>() { @Override public VodProgramModel createFromParcel(Parcel source) { return new VodProgramModel(source); } @Override public VodProgramModel[] newArray(int size) { return new VodProgramModel[size]; } }; }
[ "zndx0502050105@163.com" ]
zndx0502050105@163.com
5ba59b1ae0795155688f03ae6560a885cdac9c32
8f78619aac5c07249a355c81d42acdf599a877ee
/app/src/main/java/com/example/administrator/ykz/hot/model/idodel/IAdverModel.java
ead90d8b9ec22dabda8deb7fbc50869d9ed07d2a
[]
no_license
onetoones/Ykz
b6ed8b7a8c823c9233cdecd7dd7805427a0643a5
78f4c87b27e8d3dd29780b0b5310de457ef696ba
refs/heads/master
2020-03-21T07:42:33.769110
2018-06-22T01:02:16
2018-06-22T01:02:16
138,170,684
0
0
null
null
null
null
UTF-8
Java
false
false
449
java
package com.example.administrator.ykz.hot.model.idodel; import com.example.administrator.ykz.hot.bean.AdvertisementBean; import com.example.administrator.ykz.hot.bean.HotBean; import com.example.administrator.ykz.net.OnNetListner; public interface IAdverModel { void getAdver(OnNetListner<AdvertisementBean> onNetListner); void getVideo(String page, String source, String token, String appVersion, OnNetListner<HotBean> onNetListner); }
[ "1515372878@qq.com" ]
1515372878@qq.com
d59266c199d083a57328ceb4cbd55ce2042e2fd2
ae6301b12c9103707551f40e3597841bc6719d4b
/app/src/main/java/cn/example/mobilesafe/activities/AntivirusActivity.java
26b84d5b0ac75511b0afe434d9f3d86eebb876da
[]
no_license
wangxujun678/MobileSafe
4cad4832173521aa882752f9f7f24a1b4ca29d47
d411094b41afe2ef1175cb01d8c1312516b16247
refs/heads/master
2020-12-24T18:41:50.305722
2016-05-16T02:06:35
2016-05-16T02:06:35
56,141,629
0
0
null
null
null
null
UTF-8
Java
false
false
5,813
java
package cn.example.mobilesafe.activities; import android.app.Activity; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.graphics.Color; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.os.SystemClock; import android.view.animation.Animation; import android.view.animation.RotateAnimation; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.ProgressBar; import android.widget.ScrollView; import android.widget.TextView; import java.util.List; import cn.example.mobilesafe.db.dao.AntivirusDao; import cn.example.mobilesafe.utils.MD5Utils; public class AntivirusActivity extends Activity { private static final int BEGIN = 1; private static final int SCANNING = 2; private static final int FINISH = 3; private ImageView ivScanning; private TextView tvInitVirus; private ProgressBar pb; private LinearLayout llContent; private ScrollView scrollView; private Message message; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_antivirus); initUI(); initData(); } Handler handler = new Handler() { @Override public void handleMessage(Message msg) { super.handleMessage(msg); int unsafeApp = 0; switch (msg.what) { case BEGIN: break; case SCANNING: TextView child = new TextView(AntivirusActivity.this); ScanInfo scanInfo = (ScanInfo) message.obj; if (scanInfo != null) { if (scanInfo.desc) { child.setText(scanInfo.appName + "有病毒"); child.setTextColor(Color.RED); unsafeApp++; } else { child.setText(scanInfo.appName + "扫描安全"); } } llContent.addView(child, 0); //自动滚动 scrollView.post(new Runnable() { @Override public void run() { //一直往下面进行滚动 scrollView.fullScroll(scrollView.FOCUS_DOWN); } }); break; case FINISH: // 当扫描结束的时候。停止动画 ivScanning.clearAnimation(); if (unsafeApp == 0) { tvInitVirus.setText("没有发现病毒软件"); } else if (unsafeApp > 0) { tvInitVirus.setText("共发现" + unsafeApp + "个病毒软件"); } break; default: break; } } }; private void initData() { new Thread() { @Override public void run() { super.run(); message = Message.obtain(); message.what = BEGIN; handler.sendMessage(message); PackageManager packageManager = getPackageManager(); List<PackageInfo> installedPackages = packageManager.getInstalledPackages(0); int size = installedPackages.size(); pb.setMax(size); int progress = 0; for (PackageInfo packageInfo : installedPackages) { ScanInfo scanInfo = new ScanInfo(); String appName = (String) packageInfo.applicationInfo.loadLabel(packageManager); scanInfo.appName = appName; String packageName = packageInfo.applicationInfo.packageName; scanInfo.packageName = packageName; // 首先需要获取到每个应用程序的目录 String sourceDir = packageInfo.applicationInfo.sourceDir; // 获取到文件的md5 String md5 = MD5Utils.getFileMd5(sourceDir); String desc = AntivirusDao.checkFileVirus(md5); if (desc == null) { scanInfo.desc = false; } else { scanInfo.desc = true; } progress++; SystemClock.sleep(100); pb.setProgress(progress); message = Message.obtain(); message.what = SCANNING; message.obj = scanInfo; handler.sendMessage(message); } message = Message.obtain(); message.what = FINISH; handler.sendMessage(message); } }.start(); } static class ScanInfo { boolean desc; String appName; String packageName; } private void initUI() { ivScanning = (ImageView) findViewById(R.id.iv_scanning); tvInitVirus = (TextView) findViewById(R.id.tv_init_virus); pb = (ProgressBar) findViewById(R.id.progressBar1); llContent = (LinearLayout) findViewById(R.id.ll_content); scrollView = (ScrollView) findViewById(R.id.scrollView); RotateAnimation rotateAnimation = new RotateAnimation(0, 360, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); rotateAnimation.setDuration(4000); rotateAnimation.setRepeatCount(Animation.INFINITE); ivScanning.startAnimation(rotateAnimation); } }
[ "xjwang678@163.com" ]
xjwang678@163.com
82ee627b22c97a34ab9acc311c432aa0d552e9a9
ab89085cc7c24b945dd44f3c01d320df01113a94
/a005_image/src/main/java/com/lec/android/a005_image/Main2Activity.java
d51ded6ef288eeb385099a4dbb24adb599bee285
[]
no_license
0212kr/MyAndroidWork
6b5900a719d1d6e5434ec7d6823c34ceae0d806d
09ccb3546147b5e78181e94890b8af775a30185f
refs/heads/master
2022-06-13T01:41:20.158639
2020-05-06T02:45:53
2020-05-06T02:45:53
255,477,893
1
0
null
null
null
null
UTF-8
Java
false
false
1,406
java
package com.lec.android.a005_image; import androidx.appcompat.app.AppCompatActivity; import androidx.core.content.ContextCompat; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.widget.ImageView; public class Main2Activity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main2); ImageView iv1 = findViewById(R.id.iv1); ImageView iv2 = findViewById(R.id.iv2); ImageView iv3 = findViewById(R.id.iv3); // 방법1. 프로젝트 내의 res/drawable 폴더에 있는 파일을 보여주는 방법 iv1.setImageResource(R.drawable.a2); // 방법2. Drawable 객체를 이용해서 보여주는 방법 // Drawable drawable = getResources().getDrawable(R.drawable.a3); // deprecated 됨. Drawable drawable = ContextCompat.getDrawable(getApplicationContext(),R.drawable.a3); //ContextCompat : API23부터 추가된것 iv2.setImageDrawable(drawable); // 방법3 bitmap 객체를 이용해서 보여주는 방법 Bitmap bm = BitmapFactory.decodeResource(getResources(),R.drawable.a4); iv3.setImageBitmap(bm); }// END ONCREATE }// END CLASS
[ "0212kr@gmail.com" ]
0212kr@gmail.com
3dd90f9d3f72971cbba7ba11df6571eac3a4c027
4fbb8855485c9c6993fdc9365c6bf6865b881d5e
/Horn, Brandon - shared (CP)/chapter03/passByValueExample/PassByValueExample.java
65ba493f197c37edc1c00898081a901c269935f1
[]
no_license
utinj/mrhorn_sharedCp
a5ec0622d756c6890e5f5ec56cd05ca84174a53c
5ce6ceb25145441edd619d15e5b7a678431bdb28
refs/heads/master
2020-07-27T12:20:11.823547
2019-06-03T14:49:53
2019-06-03T14:49:53
209,087,842
0
0
null
null
null
null
UTF-8
Java
false
false
482
java
package passByValueExample; public class PassByValueExample { public static void main(String[] args) { int val = 7; System.out.println("val (before method call): " + val); mystery(val); System.out.println("val (after method call): " + val); } public static void mystery(int num) { System.out.println("num (before set): " + num); num = 11; System.out.println("num (after set): " + num); } }
[ "bhorn@mlschools.org" ]
bhorn@mlschools.org
b376f809a3e6171eef0520be3fa1f489ebee458a
9208ba403c8902b1374444a895ef2438a029ed5c
/sources/com/google/android/gms/cast/zzbc.java
88317f5bd35b29591248d5942cfd3b4e46fbd801
[]
no_license
MewX/kantv-decompiled-v3.1.2
3e68b7046cebd8810e4f852601b1ee6a60d050a8
d70dfaedf66cdde267d99ad22d0089505a355aa1
refs/heads/main
2023-02-27T05:32:32.517948
2021-02-02T13:38:05
2021-02-02T13:44:31
335,299,807
0
0
null
null
null
null
UTF-8
Java
false
false
5,491
java
package com.google.android.gms.cast; import android.os.RemoteException; import com.google.android.gms.common.api.Api.AnyClient; import com.google.android.gms.common.api.GoogleApiClient; import com.google.android.gms.internal.cast.zzcn; import org.json.JSONObject; final class zzbc extends zzb { private final /* synthetic */ int val$repeatMode; private final /* synthetic */ RemoteMediaPlayer zzfd; private final /* synthetic */ GoogleApiClient zzfe; private final /* synthetic */ JSONObject zzfk; zzbc(RemoteMediaPlayer remoteMediaPlayer, GoogleApiClient googleApiClient, GoogleApiClient googleApiClient2, int i, JSONObject jSONObject) { this.zzfd = remoteMediaPlayer; this.zzfe = googleApiClient2; this.val$repeatMode = i; this.zzfk = jSONObject; super(googleApiClient); } /* access modifiers changed from: protected */ /* JADX WARNING: Can't wrap try/catch for region: R(4:10|11|12|13) */ /* JADX WARNING: Code restructure failed: missing block: B:11:?, code lost: setResult((com.google.android.gms.cast.RemoteMediaPlayer.MediaChannelResult) createFailedResult(new com.google.android.gms.common.api.Status(2100))); */ /* JADX WARNING: Code restructure failed: missing block: B:16:0x0052, code lost: r11.zzfd.zzey.zza(null); */ /* JADX WARNING: Code restructure failed: missing block: B:17:0x005b, code lost: throw r1; */ /* JADX WARNING: Code restructure failed: missing block: B:9:0x0035, code lost: r1 = move-exception; */ /* JADX WARNING: Failed to process nested try/catch */ /* JADX WARNING: Missing exception handler attribute for start block: B:10:0x0037 */ /* Code decompiled incorrectly, please refer to instructions dump. */ public final void zza(com.google.android.gms.internal.cast.zzcn r12) { /* r11 = this; com.google.android.gms.cast.RemoteMediaPlayer r12 = r11.zzfd java.lang.Object r12 = r12.lock monitor-enter(r12) com.google.android.gms.cast.RemoteMediaPlayer r0 = r11.zzfd // Catch:{ all -> 0x005c } com.google.android.gms.cast.RemoteMediaPlayer$zza r0 = r0.zzey // Catch:{ all -> 0x005c } com.google.android.gms.common.api.GoogleApiClient r1 = r11.zzfe // Catch:{ all -> 0x005c } r0.zza(r1) // Catch:{ all -> 0x005c } r0 = 0 com.google.android.gms.cast.RemoteMediaPlayer r1 = r11.zzfd // Catch:{ zzdk | IllegalStateException -> 0x0037 } com.google.android.gms.internal.cast.zzdh r2 = r1.zzex // Catch:{ zzdk | IllegalStateException -> 0x0037 } com.google.android.gms.internal.cast.zzdm r3 = r11.zzgd // Catch:{ zzdk | IllegalStateException -> 0x0037 } r4 = 0 r5 = -1 r7 = 0 r8 = 0 int r1 = r11.val$repeatMode // Catch:{ zzdk | IllegalStateException -> 0x0037 } java.lang.Integer r9 = java.lang.Integer.valueOf(r1) // Catch:{ zzdk | IllegalStateException -> 0x0037 } org.json.JSONObject r10 = r11.zzfk // Catch:{ zzdk | IllegalStateException -> 0x0037 } r2.zza(r3, r4, r5, r7, r8, r9, r10) // Catch:{ zzdk | IllegalStateException -> 0x0037 } com.google.android.gms.cast.RemoteMediaPlayer r1 = r11.zzfd // Catch:{ all -> 0x005c } com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x005c } r1.zza(r0) // Catch:{ all -> 0x005c } goto L_0x0050 L_0x0035: r1 = move-exception goto L_0x0052 L_0x0037: com.google.android.gms.common.api.Status r1 = new com.google.android.gms.common.api.Status // Catch:{ all -> 0x0035 } r2 = 2100(0x834, float:2.943E-42) r1.<init>(r2) // Catch:{ all -> 0x0035 } com.google.android.gms.common.api.Result r1 = r11.createFailedResult(r1) // Catch:{ all -> 0x0035 } com.google.android.gms.cast.RemoteMediaPlayer$MediaChannelResult r1 = (com.google.android.gms.cast.RemoteMediaPlayer.MediaChannelResult) r1 // Catch:{ all -> 0x0035 } r11.setResult(r1) // Catch:{ all -> 0x0035 } com.google.android.gms.cast.RemoteMediaPlayer r1 = r11.zzfd // Catch:{ all -> 0x005c } com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x005c } r1.zza(r0) // Catch:{ all -> 0x005c } L_0x0050: monitor-exit(r12) // Catch:{ all -> 0x005c } return L_0x0052: com.google.android.gms.cast.RemoteMediaPlayer r2 = r11.zzfd // Catch:{ all -> 0x005c } com.google.android.gms.cast.RemoteMediaPlayer$zza r2 = r2.zzey // Catch:{ all -> 0x005c } r2.zza(r0) // Catch:{ all -> 0x005c } throw r1 // Catch:{ all -> 0x005c } L_0x005c: r0 = move-exception monitor-exit(r12) // Catch:{ all -> 0x005c } throw r0 */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.cast.zzbc.zza(com.google.android.gms.internal.cast.zzcn):void"); } /* access modifiers changed from: protected */ public final /* synthetic */ void doExecute(AnyClient anyClient) throws RemoteException { doExecute((zzcn) anyClient); } }
[ "xiayuanzhong@gmail.com" ]
xiayuanzhong@gmail.com
fb4b79f5eecdb133c2ab99097a6c442c8c219008
735b961be4beac90c5081b4aad0782eda22b7bf1
/mioa-authserver/src/main/java/com/mjkj/authserver/service/CustomUserService.java
22e3d9c8aefc1a3f1c8b86be2a66a53f35d8a7df
[]
no_license
luofs/mioa
231e86debd9ba3d9b3d7aa4a89ae8e2196a0cdf8
5c5e9aaca9a1a85b34f052a112a519215bb0c24f
refs/heads/master
2021-01-22T21:18:20.825634
2018-02-13T10:00:46
2018-02-13T10:00:46
100,659,359
1
0
null
null
null
null
UTF-8
Java
false
false
1,431
java
/** * Project Name:mioa-web * File Name:CustomUserService.java * Package Name:com.mjkj.mioa.web.security.service * Date:2017年11月10日下午11:15:46 * Copyright (c) 2017, 597668255@qq.com All Rights Reserved. * */ package com.mjkj.authserver.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.core.userdetails.UsernameNotFoundException; import com.mjkj.authserver.entry.SecurityUser; import com.mjkj.mioa.org.dao.OrgUserRepository; import com.mjkj.mioa.org.entity.TOrgUser; /** * ClassName:CustomUserService <br/> * Function: TODO ADD FUNCTION. <br/> * Reason: TODO ADD REASON. <br/> * Date: 2017年11月10日 下午11:15:46 <br/> * @author Administrator * @version * @since JDK 1.7.0_67 * @see */ public class CustomUserService implements UserDetailsService { @Autowired OrgUserRepository orgUserRepository; @Override public UserDetails loadUserByUsername(String userName) throws UsernameNotFoundException { TOrgUser user = orgUserRepository.findByName(userName); if(user == null) { throw new UsernameNotFoundException("用户名不存在"); } return new SecurityUser(user); } }
[ "597668255@qq.com" ]
597668255@qq.com
a8254664f47218155fefa196a24fd0d9e81aead3
c885ef92397be9d54b87741f01557f61d3f794f3
/tests-without-trycatch/JacksonDatabind-111/com.fasterxml.jackson.databind.deser.impl.FieldProperty/BBC-F0-opt-70/9/com/fasterxml/jackson/databind/deser/impl/FieldProperty_ESTest.java
4007165c842f588d38f68a095bbfb62374060723
[ "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
1,192
java
/* * This file was automatically generated by EvoSuite * Thu Oct 14 06:21:34 GMT 2021 */ package com.fasterxml.jackson.databind.deser.impl; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import com.fasterxml.jackson.databind.deser.impl.FieldProperty; 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 FieldProperty_ESTest extends FieldProperty_ESTest_scaffolding { @Test(timeout = 4000) public void test0() throws Throwable { FieldProperty fieldProperty0 = null; // try { fieldProperty0 = new FieldProperty((FieldProperty) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase", e); // } } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
ebd4b1a4ee90d08e1e747391e77990fcf241c550
58f641225ef3df0637a96be015c5d5a7d0e164b4
/src/main/java/br/com/gerrep/validator/PasswordValidator.java
07a8f5b74ca1d9bd6266d26db4c9b856318bea03
[]
no_license
diegosilvasanchez/gerrep
2103d6181d54e43ddf5a98160f3473140feb3e47
6547f45c708d7e7039607b7d2f056173749d21ca
refs/heads/master
2022-12-25T06:48:07.553310
2020-02-04T21:15:58
2020-02-04T21:15:58
236,856,185
0
0
null
2022-12-15T23:46:34
2020-01-28T22:26:39
Java
UTF-8
Java
false
false
3,071
java
package br.com.gerrep.validator; import javax.faces.application.FacesMessage; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.validator.FacesValidator; import javax.faces.validator.Validator; import javax.faces.validator.ValidatorException; /** Validador responsável por garantir que a senha escolhida * contenha números, caracteres especiais, letras e que * tenha no mínimo 7 e no máximo 22 caracteres */ @FacesValidator(value="passwordValidator") public class PasswordValidator implements Validator { int num = 0; int carac = 0; //Define um array de caracteres especiais char[] caracteresEspeciais={'=','|','!','@','#','$','%','^','&','*','(',')','{','}','[',']',';',':','.',',','<','>','?','~','+','-','_','\'','"'}; @Override public void validate(FacesContext context,UIComponent component, Object value) throws ValidatorException { if (value == null) { return; } String password = (String)value; /*Monta um array de caracteres com o conteúdo da senha * e percorre-o contando quantos numeros a senha possui*/ for(int i=0;i<password.length();i++) { if(password.charAt(i)>=48 && password.charAt(i)<=57) { num++; } } System.out.println("Foram encontrados "+num+" numeros na senha!"); /*Monta um array de caracteres com o conteúdo da senha * e percorre-o contando quantos caracteres especias a senha possui*/ for(int i=0;i<password.length();i++) { for(int j=0;j<caracteresEspeciais.length;j++) { if(password.charAt(i)==caracteresEspeciais[j]) { carac++; } } } System.out.println("Foram encontrados "+carac+" caracteres especias na senha!"); //Verifica se a senha não é vazia if(password == null || password.equals("")){ throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "A senha não pode ser nula!", "")); //Verifica se foi encontrado pelo menos um número e um caracter especial } else if(!(carac > 0)|| !(num > 0)){ throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "A senha deve conter números, caracteres especiais e letras!", "")); //Verifica se a senha possui pelo menos 7 caracteres e no máximo 22 } else if(password.length() < 7){ throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "A senha deve ter no mínimo 7 caracteres!", "")); } else if(password.length() >= 22){ throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "A senha deve ter no máximo 22 caracteres!!!", "")); } } }
[ "diego.sanchez@koin.com.br" ]
diego.sanchez@koin.com.br
923b54d927391b69ce6b2e65097bfa4aa376ee34
8f19815aa143bfa2c1240583217443307e1308ad
/src/test/java/com/walletHub/assignment/cucumber/model/walletHub/testInsuranceCompany/HomePage.java
8cd567f2839b971ae097c44f26020ca087418c1e
[]
no_license
PrakashKris/WalletHub
0edde2e4513ce43b9f7cb88da8e3dd20012b6c48
5f79a261462f2d767c2266e7780bee38bce9dc12
refs/heads/main
2023-07-11T21:29:05.362333
2021-08-18T04:38:54
2021-08-18T04:38:54
397,470,282
0
0
null
null
null
null
UTF-8
Java
false
false
652
java
package com.walletHub.assignment.cucumber.model.walletHub.testInsuranceCompany; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; public class HomePage { public HomePage(WebDriver driver){ PageFactory.initElements(driver, this); } @FindBy(css="button[class='btn blue-brds']") private WebElement writeAReviewButton; public WebElement getWriteAReviewButton() { return writeAReviewButton; } public void setWriteAReviewButton(WebElement writeAReviewButton) { this.writeAReviewButton = writeAReviewButton; } }
[ "prakashkris09@gmail.com" ]
prakashkris09@gmail.com
51064db33d5e635e36360829b4179ca5b0ae9b00
7b63c9e2ab009629ce4915e419ec08e7513cf282
/AOP2-Prog-MethodBeforeAdvice/src/main/java/com/aop/security/SecurityManager.java
e5255c8bfa22b3c3e67f8d9a28fc14f176c1959d
[]
no_license
Azhar-Ansari/Spring
a781b2a7784b2875372a99fc0447427eaedfd995
acd61d6e6c1febe474f8537875213de3a5c2afd9
refs/heads/master
2020-04-09T09:26:10.951231
2018-12-26T10:30:04
2018-12-26T10:30:04
159,812,631
0
0
null
null
null
null
UTF-8
Java
false
false
793
java
package com.aop.security; import java.util.ArrayList; import java.util.List; public class SecurityManager { private ThreadLocal<User> user = new ThreadLocal<>(); private List<User> authorisedUsers = new ArrayList<>(); private static SecurityManager instance; private SecurityManager() {} public static synchronized SecurityManager getInstance(){ if(instance == null){ instance = new SecurityManager(); } return instance; } public boolean isAuthenticated(User user){ return this.authorisedUsers.contains(user); } public void login(User usr){ this.authorisedUsers.add(usr); this.user.set(usr); } public User getCurrentUser(){ return this.user.get(); } public void logout(){ this.authorisedUsers.remove(this.user.get()); this.user.remove(); } }
[ "azhar.ansari@pervacio.com" ]
azhar.ansari@pervacio.com
c8521cec82842498c17a935f57da9359704a1dba
9751b90eb9359b12d6e2d01f38f0d22ed09dc544
/webproject_shopping,mall/store2018/src/com/itheima/web/servlet/AdminCategoryServlet.java
bceea32548290ead714b0a7c15f50f8693242d40
[]
no_license
ZHI-QI/webCode
3c33d784da3e3b647563b92c0c9505380b98def6
1ba45800f89deee97016a11949ba8591566c9460
refs/heads/master
2021-04-09T03:55:00.451709
2018-05-28T10:49:08
2018-05-28T10:49:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,147
java
package com.itheima.web.servlet; import java.io.IOException; import java.sql.SQLException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.itheima.bean.Category; import com.itheima.bean.Order; import com.itheima.bean.OrderItem; import com.itheima.bean.PageBean; import com.itheima.bean.Product; import com.itheima.constant.Constant; import com.itheima.dao.InDao; import com.itheima.dao.impl.AountDao; import com.itheima.service.AdminCategoryService; import com.itheima.service.impl.AdminCategoryImpl; import com.itheima.utils.JsonUtil; import com.itheima.utils.UUIDUtils; import net.sf.json.JSONArray; import net.sf.json.JsonConfig; /** * Servlet implementation class AdminCategoryServlet */ public class AdminCategoryServlet extends BaseServlet { /* * 商品后台分类 展示 */ public String findAll ( HttpServletRequest request, HttpServletResponse response ) { try { //调用业务 AdminCategoryService categ = new AdminCategoryImpl(); List<Category> list = categ.findAll(); //存储到会话中 request.getSession().setAttribute("list", list); return "/admin/category/list.jsp"; } catch (SQLException e) { e.printStackTrace(); return null; } } /* * 后台-添加分类 * */ public String addUI( HttpServletRequest request, HttpServletResponse response ) { try { //获取输入值 String cname = request.getParameter("cname"); String id = UUIDUtils.getId(); //调用业务 AdminCategoryService categ = new AdminCategoryImpl(); categ.addUI(id,cname); //转发到查询分类里面 response.sendRedirect(request.getContextPath()+"/adminCategoryServlet?method=findAll"); return null; } catch (Exception e) { e.printStackTrace(); return null; } } /** * 后台-分类商品删除 * @param request * @param response * @return */ public String deleteaddUI(HttpServletRequest request, HttpServletResponse response) { try { String cid = request.getParameter("cid"); //调用业务 AdminCategoryService categ = new AdminCategoryImpl(); categ.deleteaddUI(cid); //转发到查询分类里面 response.sendRedirect(request.getContextPath()+"/adminCategoryServlet?method=findAll"); return null; } catch (Exception e) { e.printStackTrace(); return null; } } /** * 商品全部展示 * @param request * @param response * @return */ public String findAll02 ( HttpServletRequest request, HttpServletResponse response ) { try { //调用业务 AdminCategoryService categ = new AdminCategoryImpl(); List<Product> list = categ.findAll02(); //存储到公共会话里面 request.getSession().setAttribute("listAll", list); return "/admin/product/list.jsp"; } catch (Exception e) { e.printStackTrace(); return null; } } /** * 后台-查询全部订单 * @param request * @param response * @return */ public String findByState (HttpServletRequest request, HttpServletResponse response ){ try { int state = Integer.valueOf( request.getParameter("state")); int curPage = Integer.valueOf( request.getParameter("curPage")); //1.调用业务,根据状态获得订单List<Order> list AdminCategoryService cate = new AdminCategoryImpl(); PageBean<Order> pageBean = cate.findByState(state,curPage); //2.把list存到域里面 request.getSession().setAttribute("pageBean", pageBean); //3.转发到 /admin//order/list.jsp return "/admin/order/list.jsp"; } catch (SQLException e) { e.printStackTrace(); request.setAttribute("msg", "查询全部点单失败"); return "/jsp/msg.jsp"; } } /** * 后台-点击点单详情 * @param request * @param response * @return */ public String findByOid (HttpServletRequest request, HttpServletResponse response){ try { // 获取参数 String oid = request.getParameter("oid"); // 调用业务 AdminCategoryService cate = new AdminCategoryImpl(); Order findByOid = cate.findByOid(oid); // 拿出Order中的list<Product>集合 List<OrderItem> list = findByOid.getItems(); // 装换为jsno String list2json = JsonUtil.list2json(list); response.getWriter().print(list2json); return null; } catch (Exception e) { e.printStackTrace(); return null; } } public String updateState (HttpServletRequest request, HttpServletResponse response){ try { // 获取参数 String oid = request.getParameter("oid"); System.out.println(oid); // 调用业务,获得orders对象 AdminCategoryService cate = new AdminCategoryImpl(); Order order = cate.findByOid(oid); order.setState(Constant.YES_DELIVER_CARGO); cate.updateState(order); response.sendRedirect(request.getServletPath()+"${pageContext.request.contextPath}/adminCategoryServlet?method=findByState&state=2&curPage=1"); return null; } catch (Exception e) { e.printStackTrace(); return null; } } }
[ "wangzhiqi0512@163.com" ]
wangzhiqi0512@163.com
f3a9722355a26ee6164b5d86121943ff86e743f6
e86546dee09284c0f8dd27916b51b52899ee1e92
/Codigo/MyTree/src/com/mytree/business/dataaccess/impl/RepositoryBase.java
8cec6fb12585ae659de236b8cfdf02555ff0f28e
[]
no_license
santidiaz/IS2_Obligatorio
9744f6ab2c9d3e34fa474382fc3d91f73437fb23
e494a62def37d351030529758e4f6079768515fb
refs/heads/master
2022-01-10T21:44:25.733609
2019-06-24T16:09:11
2019-06-24T16:09:11
177,701,500
0
0
null
null
null
null
UTF-8
Java
false
false
513
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.mytree.business.dataaccess.impl; public abstract class RepositoryBase<TDataSource> { private final TDataSource dataSource; public RepositoryBase(final TDataSource dataSource) { this.dataSource = dataSource; } public final TDataSource getDataSource() { return dataSource; } }
[ "santidiaz.uy@gmail.com" ]
santidiaz.uy@gmail.com
e34534e703b0e38f53b8f52d2aa5553ddfb71200
b4259fbb1853495cbf20f1a89c8f9b0e356faa20
/src/com/jensdriller/zeeboxzonechooser/handlers/SettingsHandler.java
d0950011163c21c7cb79b00ee74447ad48a3efd5
[]
no_license
jenzz/ZeeboxZoneChooser
968ba167cc1d75993c5bce32ab7393c65c757b71
61dedaa80d9b9f05b277516352f6b8ef9e3d6060
refs/heads/master
2021-01-15T16:29:05.481015
2013-06-30T23:13:55
2013-06-30T23:13:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,881
java
package com.jensdriller.zeeboxzonechooser.handlers; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; import org.eclipse.core.runtime.preferences.InstanceScope; import org.eclipse.jface.dialogs.IDialogConstants; import org.eclipse.ui.PlatformUI; import org.eclipse.ui.dialogs.ElementTreeSelectionDialog; import org.eclipse.ui.dialogs.ISelectionStatusValidator; import org.eclipse.ui.model.BaseWorkbenchContentProvider; import org.eclipse.ui.model.WorkbenchLabelProvider; import org.osgi.service.prefs.BackingStoreException; import org.osgi.service.prefs.Preferences; import com.jensdriller.zeeboxzonechooser.Activator; public class SettingsHandler extends AbstractHandler { private static final String KEY = "path"; public SettingsHandler() { } public Object execute(ExecutionEvent event) throws ExecutionException { String path = getBuildConstantsPathViaDialog(); if (path != null) { saveBuildConstantsPath(path); } return null; } private String getBuildConstantsPathViaDialog() { ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog( PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), new WorkbenchLabelProvider(), new BaseWorkbenchContentProvider()); dialog.setInput(ResourcesPlugin.getWorkspace().getRoot()); dialog.setTitle("Zeebox Zone Chooser - Settings"); dialog.setMessage("Select the BuildConstants.java file from your zeebox project:"); dialog.setValidator(new ISelectionStatusValidator() { public IStatus validate(Object[] selection) { if (selection.length == 0) { return new Status(IStatus.ERROR, Activator.PLUGIN_ID, 0, "", null); } if (selection.length == 1 && !(selection[0] instanceof IFile)) { return new Status(IStatus.ERROR, Activator.PLUGIN_ID, 0, "Please select a file!", null); } return new Status(IStatus.OK, Activator.PLUGIN_ID, 0, "", null); } }); int buttonId = dialog.open(); if (buttonId == IDialogConstants.OK_ID) { IResource resource = (IResource) dialog.getFirstResult(); if (resource.isAccessible()) { return resource.getRawLocation().toString(); } } return null; } private void saveBuildConstantsPath(String path) { Preferences prefs = InstanceScope.INSTANCE.getNode(Activator.PLUGIN_ID); prefs.put(KEY, path); try { prefs.flush(); } catch (BackingStoreException e) { e.printStackTrace(); } } public static String loadBuildConstantsPath() { Preferences prefs = InstanceScope.INSTANCE.getNode(Activator.PLUGIN_ID); return prefs.get(KEY, null); } }
[ "jens@jensdriller.com" ]
jens@jensdriller.com
cbcbf22079ea3b0b4c32f4efe2e7adbd48f38340
2ef1e30b9d0ccdccc29296d4c0f891b81f37d0e1
/integration-test/src/test/java/com/klaytn/caver/generated/PostDeliveryCrowdsale.java
111048b62e55beffb182ffe8831946dab8d79fab
[ "Apache-2.0" ]
permissive
ehnuje/caver-java-1
d0c56ec9c9188a723f5df2117e0903cc0ad67539
43624077cc14ca74875565335ce77a428b1d8ecc
refs/heads/master
2020-06-11T18:56:14.886702
2019-06-27T07:31:41
2019-06-27T07:31:41
194,053,795
0
0
Apache-2.0
2019-06-27T08:21:18
2019-06-27T08:21:18
null
UTF-8
Java
false
false
10,015
java
package com.klaytn.caver.generated; import com.klaytn.caver.Caver; import com.klaytn.caver.crpyto.KlayCredentials; import com.klaytn.caver.methods.response.KlayLogs; import com.klaytn.caver.methods.response.KlayTransactionReceipt; import com.klaytn.caver.tx.SmartContract; import com.klaytn.caver.tx.manager.TransactionManager; import java.math.BigInteger; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import org.web3j.abi.TypeReference; import org.web3j.abi.datatypes.Address; import org.web3j.abi.datatypes.Bool; import org.web3j.abi.datatypes.Event; import org.web3j.abi.datatypes.Function; import org.web3j.abi.datatypes.Type; import org.web3j.abi.datatypes.generated.Uint256; import org.web3j.protocol.core.RemoteCall; import org.web3j.tx.gas.ContractGasProvider; /** * <p>Auto generated smart contract code. * <p><strong>Do not modify!</strong> */ public class PostDeliveryCrowdsale extends SmartContract { private static final String BINARY = ""; public static final String FUNC_HASCLOSED = "hasClosed"; public static final String FUNC_RATE = "rate"; public static final String FUNC_WEIRAISED = "weiRaised"; public static final String FUNC_ISOPEN = "isOpen"; public static final String FUNC_WITHDRAWTOKENS = "withdrawTokens"; public static final String FUNC_CLOSINGTIME = "closingTime"; public static final String FUNC_WALLET = "wallet"; public static final String FUNC_BALANCEOF = "balanceOf"; public static final String FUNC_OPENINGTIME = "openingTime"; public static final String FUNC_BUYTOKENS = "buyTokens"; public static final String FUNC_TOKEN = "token"; public static final Event TIMEDCROWDSALEEXTENDED_EVENT = new Event("TimedCrowdsaleExtended", Arrays.<TypeReference<?>>asList(new TypeReference<Uint256>() {}, new TypeReference<Uint256>() {})); ; public static final Event TOKENSPURCHASED_EVENT = new Event("TokensPurchased", Arrays.<TypeReference<?>>asList(new TypeReference<Address>(true) {}, new TypeReference<Address>(true) {}, new TypeReference<Uint256>() {}, new TypeReference<Uint256>() {})); ; protected PostDeliveryCrowdsale(String contractAddress, Caver caver, KlayCredentials credentials, int chainId, ContractGasProvider contractGasProvider) { super(BINARY, contractAddress, caver, credentials, chainId, contractGasProvider); } protected PostDeliveryCrowdsale(String contractAddress, Caver caver, TransactionManager transactionManager, ContractGasProvider contractGasProvider) { super(BINARY, contractAddress, caver, transactionManager, contractGasProvider); } public RemoteCall<Boolean> hasClosed() { final Function function = new Function(FUNC_HASCLOSED, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Bool>() {})); return executeRemoteCallSingleValueReturn(function, Boolean.class); } public RemoteCall<BigInteger> rate() { final Function function = new Function(FUNC_RATE, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Uint256>() {})); return executeRemoteCallSingleValueReturn(function, BigInteger.class); } public RemoteCall<BigInteger> weiRaised() { final Function function = new Function(FUNC_WEIRAISED, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Uint256>() {})); return executeRemoteCallSingleValueReturn(function, BigInteger.class); } public RemoteCall<Boolean> isOpen() { final Function function = new Function(FUNC_ISOPEN, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Bool>() {})); return executeRemoteCallSingleValueReturn(function, Boolean.class); } public RemoteCall<KlayTransactionReceipt.TransactionReceipt> withdrawTokens(String beneficiary) { final Function function = new Function( FUNC_WITHDRAWTOKENS, Arrays.<Type>asList(new org.web3j.abi.datatypes.Address(beneficiary)), Collections.<TypeReference<?>>emptyList()); return executeRemoteCallTransaction(function); } public RemoteCall<BigInteger> closingTime() { final Function function = new Function(FUNC_CLOSINGTIME, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Uint256>() {})); return executeRemoteCallSingleValueReturn(function, BigInteger.class); } public RemoteCall<String> wallet() { final Function function = new Function(FUNC_WALLET, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Address>() {})); return executeRemoteCallSingleValueReturn(function, String.class); } public RemoteCall<BigInteger> balanceOf(String account) { final Function function = new Function(FUNC_BALANCEOF, Arrays.<Type>asList(new org.web3j.abi.datatypes.Address(account)), Arrays.<TypeReference<?>>asList(new TypeReference<Uint256>() {})); return executeRemoteCallSingleValueReturn(function, BigInteger.class); } public RemoteCall<BigInteger> openingTime() { final Function function = new Function(FUNC_OPENINGTIME, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Uint256>() {})); return executeRemoteCallSingleValueReturn(function, BigInteger.class); } public RemoteCall<KlayTransactionReceipt.TransactionReceipt> buyTokens(String beneficiary, BigInteger pebValue) { final Function function = new Function( FUNC_BUYTOKENS, Arrays.<Type>asList(new org.web3j.abi.datatypes.Address(beneficiary)), Collections.<TypeReference<?>>emptyList()); return executeRemoteCallTransaction(function, pebValue); } public RemoteCall<String> token() { final Function function = new Function(FUNC_TOKEN, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Address>() {})); return executeRemoteCallSingleValueReturn(function, String.class); } public List<TimedCrowdsaleExtendedEventResponse> getTimedCrowdsaleExtendedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt) { List<SmartContract.EventValuesWithLog> valueList = extractEventParametersWithLog(TIMEDCROWDSALEEXTENDED_EVENT, transactionReceipt); ArrayList<TimedCrowdsaleExtendedEventResponse> responses = new ArrayList<TimedCrowdsaleExtendedEventResponse>(valueList.size()); for (SmartContract.EventValuesWithLog eventValues : valueList) { TimedCrowdsaleExtendedEventResponse typedResponse = new TimedCrowdsaleExtendedEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.prevClosingTime = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue(); typedResponse.newClosingTime = (BigInteger) eventValues.getNonIndexedValues().get(1).getValue(); responses.add(typedResponse); } return responses; } public List<TokensPurchasedEventResponse> getTokensPurchasedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt) { List<SmartContract.EventValuesWithLog> valueList = extractEventParametersWithLog(TOKENSPURCHASED_EVENT, transactionReceipt); ArrayList<TokensPurchasedEventResponse> responses = new ArrayList<TokensPurchasedEventResponse>(valueList.size()); for (SmartContract.EventValuesWithLog eventValues : valueList) { TokensPurchasedEventResponse typedResponse = new TokensPurchasedEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.purchaser = (String) eventValues.getIndexedValues().get(0).getValue(); typedResponse.beneficiary = (String) eventValues.getIndexedValues().get(1).getValue(); typedResponse.value = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue(); typedResponse.amount = (BigInteger) eventValues.getNonIndexedValues().get(1).getValue(); responses.add(typedResponse); } return responses; } public static PostDeliveryCrowdsale load(String contractAddress, Caver caver, KlayCredentials credentials, int chainId, ContractGasProvider contractGasProvider) { return new PostDeliveryCrowdsale(contractAddress, caver, credentials, chainId, contractGasProvider); } public static PostDeliveryCrowdsale load(String contractAddress, Caver caver, TransactionManager transactionManager, ContractGasProvider contractGasProvider) { return new PostDeliveryCrowdsale(contractAddress, caver, transactionManager, contractGasProvider); } public static RemoteCall<PostDeliveryCrowdsale> deploy(Caver caver, KlayCredentials credentials, int chainId, ContractGasProvider contractGasProvider) { return deployRemoteCall(PostDeliveryCrowdsale.class, caver, credentials, chainId, contractGasProvider, BINARY, ""); } public static RemoteCall<PostDeliveryCrowdsale> deploy(Caver caver, TransactionManager transactionManager, ContractGasProvider contractGasProvider) { return deployRemoteCall(PostDeliveryCrowdsale.class, caver, transactionManager, contractGasProvider, BINARY, ""); } public static class TimedCrowdsaleExtendedEventResponse { public KlayLogs.Log log; public BigInteger prevClosingTime; public BigInteger newClosingTime; } public static class TokensPurchasedEventResponse { public KlayLogs.Log log; public String purchaser; public String beneficiary; public BigInteger value; public BigInteger amount; } }
[ "developer@klaytn.com" ]
developer@klaytn.com
db3937cd138008db4e93ac0db5f10914576eb4be
67cd0baf1f1e53b2992c4be2fa9afd66d5d074e2
/assign1/src/assign1/girl.java
e07172514d58ffac4d61e4aa31c98f8412a62f77
[]
no_license
PPL-IIITA/ppl-assignment-anudeep207
a30e3b495d48626dc675d27dd454f14d64c429fb
466ec2b8dd2e32d6f4596dc694a151667275b1e5
refs/heads/master
2021-01-21T06:24:11.727829
2017-02-26T20:32:24
2017-02-26T20:32:24
83,222,480
0
0
null
null
null
null
UTF-8
Java
false
false
350
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 assign1; /** * * @author Deepu */ public class girl { int budget; int attraction; int intelligence; String name; String type; }
[ "anudeep.anjaneyulu@gmail.com" ]
anudeep.anjaneyulu@gmail.com
a069cf0fb0bd7bcfea35076fcab003403a31a034
e19700ff71584a358705e2d0e6ac3167e9b7df77
/src/java/com/estate/servlet/tools/fcf/FcfToolServlet.java
22b734dda49c8ec9ec33c5ff3d2e18b61ba61a3b
[]
no_license
paulstay/APN
a01a2f16ea0f4daafc42d8faf5944405c3eccd0b
d165d1addc7a998dc083dc87719099bfbf2c2236
refs/heads/master
2016-09-05T17:34:16.780146
2010-02-15T17:49:04
2010-02-15T17:49:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,739
java
package com.estate.servlet.tools.fcf; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import com.estate.servlet.Utils; import com.teag.estate.FCFTool; public class FcfToolServlet extends HttpServlet { /** * */ private static final long serialVersionUID = -8730316099081849058L; /** * Constructor of the object. */ public FcfToolServlet() { super(); } /** * Destruction of the servlet. <br> */ @Override public void destroy() { super.destroy(); // Just puts "destroy" string in log // Put your code here } /** * The doGet method of the servlet. <br> * * This method is called when a form has its tag value method equals to get. * * @param request the request send by the client to the server * @param response the response send by the server to the client * @throws ServletException if an error occurred * @throws IOException if an error occurred */ @Override public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request,response); } /** * The doPost method of the servlet. <br> * * This method is called when a form has its tag value method equals to post. * * @param request the request send by the client to the server * @param response the response send by the server to the client * @throws ServletException if an error occurred * @throws IOException if an error occurred */ @Override public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); String path = "/WEB-INF/jsp/estatetools/fcf/tool.jsp"; FCFTool fcf = (FCFTool) session.getAttribute("fcf"); String pageView = request.getParameter("pageView"); if(pageView!=null && pageView.equalsIgnoreCase("process")){ String orgType = Utils.getStringParameter(request, "orgType", "D"); fcf.setType(orgType); } RequestDispatcher dispatch = request.getRequestDispatcher(path); dispatch.forward(request, response); } /** * Returns information about the servlet, such as * author, version, and copyright. * * @return String information about this servlet */ @Override public String getServletInfo() { return "This is my default servlet created by Eclipse"; } /** * Initialization of the servlet. <br> * * @throws ServletException if an error occurs */ @Override public void init() throws ServletException { // Put your code here } }
[ "paul.stay@gmail.com" ]
paul.stay@gmail.com
3adc0ecb50787842fa5961dfa477444e66e81649
038c9564713053df0c2531d95c60e6f1760422bc
/Homework/Lesson3/src/Pre_intermediate_level/Fibonacci.java
36ccba4eb77bec81faaf0159365a742d4e5697ce
[]
no_license
ipalis/MyTestProject
4ecf8ee9d6ff1353096c0685a7289076841223e2
06b8262d546377b95cee5c16960fe63e3fa926b4
refs/heads/master
2020-04-06T07:01:44.612169
2016-08-30T21:09:52
2016-08-30T21:09:52
54,509,370
0
1
null
null
null
null
UTF-8
Java
false
false
743
java
package Pre_intermediate_level; public class Fibonacci { public Fibonacci(){ } // function of fibonacci sequence public int fibonacci(int n) { int a = 0; int b = 1; for (int i = 0; i < n; i++) { int temp = a; a = b; b = temp + b; } return a; } // function that calculates sum of 100 odd elements public long sum(){ int i = 0; int oddNumber = 0; long result = 0; while (oddNumber <= 100) { i++; int x = fibonacci(i); if (x % 2 ==0){ result += x; oddNumber++; } } return result; } //function that prints result public void printResult(){ System.out.println("Sum of first 100 odd elements of Fibonacci sequence: " + sum()); } }
[ "ivanpalis@gmail.com" ]
ivanpalis@gmail.com
0d42a2f80ce7788a703f024ed3f49c206eeb7e05
71ce384346445cbe129bcfd3b1d1789727a5cbb7
/src/PatternFactory/CleanerCompany.java
60de872410eed70c95bf2120e27420393c3da9f2
[]
no_license
Kerk90/Lessons
e1545e345b7e30e287e3bbb788842d39f9c19179
1205d84e9abcdb61fb96865a3a2d24ae6c7d3e6e
refs/heads/master
2020-04-21T02:59:23.774699
2019-03-15T17:45:38
2019-03-15T17:45:38
169,271,038
0
0
null
null
null
null
UTF-8
Java
false
false
681
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 PatternFactory; /** * * @author User */ public class CleanerCompany extends Company{ @Override Employee[] getEmployee(){ System.out.println(""); System.out.println("Sarting company cleanering "+CleanerCompany.class.getSimpleName()+"\n"); Employee[] employee = new Employee[4]; employee[0] = new Cleaner(); employee[1] = new Cleaner(); employee[2] = new Cleaner(); employee[3] = new Manager(); return employee; } }
[ "artjommol001@gmail.com" ]
artjommol001@gmail.com
8bc8376a9f2d0d5851faeff415f21ec182a8881b
6ea0a83bfff14c3bb1d9e2d04797ba09e7948bef
/src/main/java/com/example/identitymanagement/config/ModelMapperConfig.java
fe42c220ab623f69a7b9f169025eb8a335b7f4f9
[]
no_license
muhammedsedef/identity-management
31bfacc4c5e16ca42f9ec32311412885294094a7
b3db00f3a77c46a15473995aab6eb945d968bbee
refs/heads/master
2023-07-13T05:39:28.227201
2021-08-22T07:42:40
2021-08-22T07:42:40
395,558,599
0
0
null
null
null
null
UTF-8
Java
false
false
503
java
package com.example.identitymanagement.config; import org.modelmapper.ModelMapper; import org.modelmapper.convention.MatchingStrategies; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class ModelMapperConfig { @Bean public ModelMapper getModelMapper() { ModelMapper modelMapper = new ModelMapper(); modelMapper.getConfiguration().setMatchingStrategy(MatchingStrategies.STRICT); return modelMapper; } }
[ "muhammetsedef34@gmail.com" ]
muhammetsedef34@gmail.com
09635f887412fbb5a898356b70cb4d9d259586a2
e468e3650c9c04820943a0b1c29678976a7dfbf3
/src/com/shi/pojo/Page.java
d0fdb8862a3b91041e2f5429dec134ef26b69da4
[]
no_license
qianwensea/BookStore
8ddbf2b255eeb90b7a8bb827aebefb332ab3baf9
ff1d02c6b7211d1db2dd9e7d80a295bcbc3371c0
refs/heads/master
2022-12-14T09:02:49.839916
2020-09-18T00:56:08
2020-09-18T00:56:08
264,637,417
0
0
null
null
null
null
UTF-8
Java
false
false
2,046
java
package com.shi.pojo; import java.util.List; /** * page是分页的模型对象 * @param <T> 是具体的模块的javaBean类 * @author 千文sea * @create 2020-04-26 17:57 */ public class Page<T> { public static final Integer PAGE_SIZE = 4; //当前页码 private Integer pageNo; //总页码 private Integer pageTotal; //当前页码显示数量 private Integer pageSize = PAGE_SIZE; //总记录数 private Integer pageTotalCount; //当前页数据 private List<T> items; //分页条的请求地址 private String url; public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public Integer getPageNo() { return pageNo; } public void setPageNo(Integer pageNo) { /* 数据边界的有效检查 */ if (pageNo < 1){ pageNo = 1; }else if (pageNo > pageTotal){ pageNo = pageTotal; } this.pageNo = pageNo; } public Integer getPageTotal() { return pageTotal; } public void setPageTotal(Integer pageTotal) { this.pageTotal = pageTotal; } public Integer getPageSize() { return pageSize; } public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } public Integer getPageTotalCount() { return pageTotalCount; } public void setPageTotalCount(Integer pageTotalCount) { this.pageTotalCount = pageTotalCount; } public List<T> getItems() { return items; } public void setItems(List<T> items) { this.items = items; } @Override public String toString() { return "Page{" + "pageNo=" + pageNo + ", pageTotal=" + pageTotal + ", pageSize=" + pageSize + ", pageTotalCount=" + pageTotalCount + ", items=" + items + ", url='" + url + '\'' + '}'; } }
[ "1280973473@qq.com" ]
1280973473@qq.com
279becb48da13374d572bee9acb1fec3dfb0830a
efec138ee07ca3cccd9740af06294b15c9a12884
/taotao-common/src/main/java/com/taotao/common/mapper/TbItemCatMapper.java
cbb0f4c05ef77670216975bc48e838a8efb17b79
[]
no_license
minatoyukina/taotao-springboot
868db8e623e8e078463ffb8f0cc8b93cd4c95e47
bb22e4bb215d65250facc3caa1f1bf99d49a3281
refs/heads/master
2020-04-07T22:52:08.450283
2019-04-01T05:49:51
2019-04-01T05:49:51
158,788,341
1
0
null
null
null
null
UTF-8
Java
false
false
879
java
package com.taotao.common.mapper; import com.taotao.common.pojo.TbItemCat; import com.taotao.common.pojo.TbItemCatExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface TbItemCatMapper { int countByExample(TbItemCatExample example); int deleteByExample(TbItemCatExample example); int deleteByPrimaryKey(Long id); int insert(TbItemCat record); int insertSelective(TbItemCat record); List<TbItemCat> selectByExample(TbItemCatExample example); TbItemCat selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") TbItemCat record, @Param("example") TbItemCatExample example); int updateByExample(@Param("record") TbItemCat record, @Param("example") TbItemCatExample example); int updateByPrimaryKeySelective(TbItemCat record); int updateByPrimaryKey(TbItemCat record); }
[ "109645518@qq.com" ]
109645518@qq.com
99310e3a4df999dc85d4f6cce5217d0eb3a168ad
aed6e40440341e6cde6ba87414f1c6ac33bf0ef0
/src/main/java/com/android/ql/lf/electronicbusiness/utils/im/GlobalOnItemClickManagerUtils.java
ead7be3ff46e648ba84f5d34c95ce9ba4675e26c
[]
no_license
qqxliufeng/electronicbusiness
2d274368c181768d254ad13b1cdfccc1fc11ff50
bafd519d4910f239868eec1acecabd1c45b770a0
refs/heads/master
2021-09-06T01:46:28.577259
2018-02-01T11:18:59
2018-02-01T11:18:59
112,688,631
0
0
null
null
null
null
UTF-8
Java
false
false
2,806
java
package com.android.ql.lf.electronicbusiness.utils.im; import android.content.Context; import android.view.KeyEvent; import android.view.View; import android.widget.AdapterView; import android.widget.EditText; import com.android.ql.lf.electronicbusiness.ui.adapters.im.EmotionGridViewAdapter; /** * 作者:Rance on 2016/11/29 10:47 * 邮箱:rance935@163.com * 点击表情的全局监听管理类 */ public class GlobalOnItemClickManagerUtils { private static GlobalOnItemClickManagerUtils instance; private EditText mEditText;//输入框 private static Context mContext; public static GlobalOnItemClickManagerUtils getInstance(Context context) { mContext = context; if (instance == null) { synchronized (GlobalOnItemClickManagerUtils.class) { if (instance == null) { instance = new GlobalOnItemClickManagerUtils(); } } } return instance; } public void attachToEditText(EditText editText) { mEditText = editText; } public AdapterView.OnItemClickListener getOnItemClickListener() { return new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Object itemAdapter = parent.getAdapter(); if (itemAdapter instanceof EmotionGridViewAdapter) { // 点击的是表情 EmotionGridViewAdapter emotionGvAdapter = (EmotionGridViewAdapter) itemAdapter; if (position == emotionGvAdapter.getCount() - 1) { // 如果点击了最后一个回退按钮,则调用删除键事件 mEditText.dispatchKeyEvent(new KeyEvent( KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL)); } else { // 如果点击了表情,则添加到输入框中 String emotionName = emotionGvAdapter.getItem(position); // 获取当前光标位置,在指定位置上添加表情图片文本 int curPosition = mEditText.getSelectionStart(); StringBuilder sb = new StringBuilder(mEditText.getText().toString()); sb.insert(curPosition, emotionName); // 特殊文字处理,将表情等转换一下 mEditText.setText(Utils.getEmotionContent(mContext, mEditText, sb.toString())); // 将光标设置到新增完表情的右侧 mEditText.setSelection(curPosition + emotionName.length()); } } } }; } }
[ "596484713@qq.com" ]
596484713@qq.com
c7b2b04417ed406bf13f9be3064a60d3a482dd66
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/MATH-81b-3-1-SPEA2-WeightedSum:TestLen:CallDiversity/org/apache/commons/math/linear/EigenDecompositionImpl_ESTest.java
68bc15f0642be3558dca6b36d408f1d4b5b0bbd1
[]
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
1,021
java
/* * This file was automatically generated by EvoSuite * Sun Apr 05 20:47:00 UTC 2020 */ package org.apache.commons.math.linear; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import org.apache.commons.math.linear.EigenDecompositionImpl; 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 EigenDecompositionImpl_ESTest extends EigenDecompositionImpl_ESTest_scaffolding { @Test(timeout = 4000) public void test0() throws Throwable { double[] doubleArray0 = new double[5]; double[] doubleArray1 = new double[4]; doubleArray1[0] = 24.900885576135753; doubleArray1[1] = 2360.224331756; doubleArray1[2] = 1924.200222535494; EigenDecompositionImpl eigenDecompositionImpl0 = new EigenDecompositionImpl(doubleArray0, doubleArray1, 1924.200222535494); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
a6a27ff414cb31ea7400e3e226ddf2ac03d378fc
027d849a6f090b871df143f119b8ae13f8f61ed7
/src/Tools/RemoveLong.java
8a86376e19490fdb845b826ceb0af80b821e0e32
[]
no_license
OliverWales/weather-app
5c0723bbdac0fcd1e7c5a69392240904d505b5f1
b2a909cfbd90e7eac2d2c8ebdd553303c14039e1
refs/heads/master
2022-01-06T08:23:50.768498
2019-05-21T21:13:38
2019-05-21T21:13:38
185,804,017
1
0
null
null
null
null
UTF-8
Java
false
false
1,008
java
package Tools; import java.io.*; // Only include city names < 13 characters long in citylistShortened.txt in order to // decrease the size of our search bar and spped up load time. public class RemoveLong { public static void main(String[] args) throws FileNotFoundException { File fout = new File("/home/archie/Documents/weather-app/data/citylistShortened.txt"); FileOutputStream fos = new FileOutputStream(fout); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(fos)); BufferedReader reader; try { reader = new BufferedReader(new FileReader("/home/archie/Documents/weather-app/data/citylist.txt")); String line = reader.readLine(); while (line != null) { if (line.length() < 13) bw.write(line + "\n"); line = reader.readLine(); } reader.close(); bw.close(); } catch (IOException e) { e.printStackTrace(); } } }
[ "archwheeler@gmail.com" ]
archwheeler@gmail.com
059ad22b6091967cd3858d583bf12ee27a08e3fd
32155e5a4910c5d17615b3f291bbdc3c625cc4f9
/senpure-permission/src/main/java/com/senpure/demo/service/ClazzService.java
3096b90336e3c5e642b57b38921091a6082f1d74
[]
no_license
senpure/senpure4
3c588a6615708f0444da5f1b5ce4afc7d92bc95c
e3a007320c7923b6bd59c769bc9b9d2b13338ab8
refs/heads/master
2020-03-21T05:15:12.371086
2018-06-21T09:52:45
2018-06-21T09:52:45
107,912,311
0
0
null
null
null
null
UTF-8
Java
false
false
7,297
java
package com.senpure.demo.service; import com.senpure.demo.model.Clazz; import com.senpure.demo.criteria.ClazzCriteria; import com.senpure.demo.mapper.ClazzMapper; import com.senpure.base.exception.OptimisticLockingFailureException; import com.senpure.base.service.BaseService; import com.senpure.base.result.ResultMap; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.List; import java.util.ArrayList; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; /** * 该类对 [Clazz]的增删查改有本地缓存,只缓存主键,不缓存查询缓存 * <li>find(Long id):按主键缓存</li> * <li>findAll():按主键缓存</li> * <li>delete(Long id):按主键清除缓存</li> * <li>delete(ClazzCriteria criteria):清除<strong>所有</strong>Clazz缓存</li> * <li>update(Clazz clazz):按主键清除缓存</li> * <li>update(ClazzCriteria criteria):有主键时按主键移除缓存,没有主键时清除<strong>所有</strong>Clazz缓存 </li> * * @author senpure-generator * @version 2018-6-6 15:27:45 */ @Service public class ClazzService extends BaseService { private ConcurrentMap<String, Clazz> localCache = new ConcurrentHashMap(128); @Autowired private ClazzMapper clazzMapper; private String cacheKey(Long id) { return "clazz:" + id; } public void clearCache(Long id) { localCache.remove(cacheKey(id)); } public void clearCache() { localCache.clear(); } /** * 按主键本地缓存 * * @return */ public Clazz find(Long id) { String cacheKey = cacheKey(id); Clazz clazz = localCache.get(cacheKey); if (clazz == null) { clazz = clazzMapper.find(id); if (clazz != null) { localCache.putIfAbsent(cacheKey, clazz); return localCache.get(cacheKey); } } return clazz; } public Clazz findOnlyCache(Long id) { return localCache.get(cacheKey(id)); } public Clazz findSkipCache(Long id) { return clazzMapper.find(id); } public int count() { return clazzMapper.count(); } /** * 每一个结果会按主键本地缓存 * * @return */ public List<Clazz> findAll() { List<Clazz> clazzs = clazzMapper.findAll(); for (Clazz clazz : clazzs) { localCache.put(cacheKey(clazz.getId()), clazz); } return clazzs; } /** * 按主键清除本地缓存 * * @return */ @Transactional(rollbackFor = Exception.class) public boolean delete(Long id) { localCache.remove(cacheKey(id)); int result = clazzMapper.delete(id); return result == 1; } /** * 会清除<strong>所有<strong>Clazz缓存 * * @return */ @Transactional(rollbackFor = Exception.class) public int delete(ClazzCriteria criteria) { int result = clazzMapper.deleteByCriteria(criteria); if (result > 0) { clearCache(); } return result; } @Transactional(rollbackFor = Exception.class) public boolean save(Clazz clazz) { clazz.setId(idGenerator.nextId()); int result = clazzMapper.save(clazz); return result == 1; } @Transactional(rollbackFor = Exception.class) public int save(List<Clazz> clazzs) { if (clazzs == null || clazzs.size() == 0) { return 0; } for (Clazz clazz : clazzs) { clazz.setId(idGenerator.nextId()); } int size = clazzMapper.saveBatch(clazzs); return size; } @Transactional(rollbackFor = Exception.class) public boolean save(ClazzCriteria criteria) { criteria.setId(idGenerator.nextId()); int result = clazzMapper.save(criteria.toClazz()); return result == 1; } /** * 按主键移除缓存<br> * 更新失败会抛出OptimisticLockingFailureException * * @return */ @Transactional(rollbackFor = Exception.class) public boolean update(Clazz clazz) { localCache.remove(cacheKey(clazz.getId())); int updateCount = clazzMapper.update(clazz); if (updateCount == 0) { throw new OptimisticLockingFailureException(clazz.getClass() + ",[" + clazz.getId() + "],版本号冲突,版本号[" + clazz.getVersion() + "]"); } return true; } /** * 有主键时按主键移除缓存,没有主键时清空<strong>所有</strong>Clazz缓存<br> * 当版本号,和主键不为空时,更新失败会抛出OptimisticLockingFailureException * * @return */ @Transactional(rollbackFor = Exception.class) public int update(ClazzCriteria criteria) { if (criteria.getId() != null) { localCache.remove(cacheKey(criteria.getId())); } int updateCount = clazzMapper.updateByCriteria(criteria); if (updateCount == 0 && criteria.getVersion() != null && criteria.getId() != null) { throw new OptimisticLockingFailureException(criteria.getClass() + ",[" + criteria.getId() + "],版本号冲突,版本号[" + criteria.getVersion() + "]"); } if (criteria.getId() != null && updateCount > 0) { localCache.clear(); } return updateCount; } @Transactional(readOnly = true) public ResultMap findPage(ClazzCriteria criteria) { ResultMap resultMap = ResultMap.success(); //是否是主键查找 if (criteria.getId() != null) { Clazz clazz = clazzMapper.find(criteria.getId()); if (clazz != null) { List<Clazz> clazzs = new ArrayList<>(16); clazzs.add(clazz); resultMap.putTotal(1); resultMap.putItems(clazzs); } else { resultMap.putTotal(0); } return resultMap; } int total = clazzMapper.countByCriteria(criteria); resultMap.putTotal(total); if (total == 0) { return resultMap; } //检查页数是否合法 checkPage(criteria, total); List<Clazz> clazzs = clazzMapper.findByCriteria(criteria); resultMap.putItems(clazzs); return resultMap; } public List<Clazz> find(ClazzCriteria criteria) { //是否是主键查找 if (criteria.getId() != null) { List<Clazz> clazzs = new ArrayList<>(16); Clazz clazz = clazzMapper.find(criteria.getId()); if (clazz != null) { clazzs.add(clazz); } return clazzs; } return clazzMapper.findByCriteria(criteria); } public Clazz findOne(ClazzCriteria criteria) { //是否是主键查找 if (criteria.getId() != null) { return clazzMapper.find(criteria.getId()); } List<Clazz> clazzs = clazzMapper.findByCriteria(criteria); if (clazzs.size() == 0) { return null; } return clazzs.get(0); } }
[ "senpure@senpure.com" ]
senpure@senpure.com
2cd6d88df441be585755aae38ee06f40c1a463b6
1a52ab38f6673c449e8bef070ef844790f85d3bb
/Commuting Application/src/sample/IUsers.java
d4e224fc38fd1b4a5a389386818aadd6873221eb
[]
no_license
youssefhusseinn/commuting-application
ecab8a33cc29ee98b9605fffa6c19a446d36efff
9193b3f290350aa92c898b81d19ccf899a84c807
refs/heads/master
2021-01-05T09:33:39.801705
2020-02-16T20:24:18
2020-02-16T20:24:18
240,974,738
0
0
null
null
null
null
UTF-8
Java
false
false
175
java
package sample; public interface IUsers { String getUserName(); String getPassword(); String getEmail(); String getFirstName(); String getLastName(); }
[ "youssef.hussein42@gmail.com" ]
youssef.hussein42@gmail.com
cbbe178bd0bf5db4a9dbfce937a1f1a85699ca36
f0748b2c3c5ad68d006b084efc228ac5e6169763
/src/main/java/com/test/learn/hystrix/GetStockServiceCommoand.java
28b6b663676bf3c5e124e68740e7ba4e7313a49e
[]
no_license
zengzw/spring-demo
f21d406e1499a29a1b43802cac697f952c3c0869
71441d793fa71c685c346ce542d867aada97d2eb
refs/heads/master
2022-12-21T23:41:29.214081
2019-06-05T07:27:22
2019-06-05T07:27:22
73,140,784
3
0
null
2022-12-16T06:03:25
2016-11-08T02:23:39
Java
UTF-8
Java
false
false
3,329
java
/* * @Project Name: springmvcdemo * @File Name: GetStockServiceCommoand.java * @Package Name: com.test.learn.hystrix * @Date: 2017年11月29日下午2:21:49 * @Creator: zengzw-1220 * @line------------------------------ * @修改人: * @修改时间: * @修改内容: */ package com.test.learn.hystrix; import com.netflix.hystrix.HystrixCommand; import com.netflix.hystrix.HystrixCommandGroupKey; import com.netflix.hystrix.HystrixCommandKey; import com.netflix.hystrix.HystrixCommandProperties; import com.netflix.hystrix.HystrixThreadPoolKey; import com.netflix.hystrix.HystrixThreadPoolProperties; import com.test.base.exception.BusinessRuntimeException; import com.test.learn.hystrix.service.StockService; /** * * 一般实践中,我们将一个接口中的所有方法都用不同的命令key区分,组key采用类名,线程池则根据需要选择性的采用共享线程池或独立线程池。 * * @author zengzw-1220 * @date 2017年11月29日下午2:21:49 * @see */ public class GetStockServiceCommoand extends HystrixCommand<String>{ //测试 private StockService service = new StockService(); protected GetStockServiceCommoand() { super(getSetter()); } private static Setter getSetter(){ //服务分组。相同分组的服务会聚集在一起 HystrixCommandGroupKey groupKey = HystrixCommandGroupKey.Factory.asKey("stock"); //服务标识 HystrixCommandKey commandKey = HystrixCommandKey.Factory.asKey("getStock"); //线程池名称。相同线程池名称的线程池是同一个。 HystrixThreadPoolKey threadPoolKey = HystrixThreadPoolKey.Factory.asKey("sotck-pool"); //线程池配置。 HystrixThreadPoolProperties.Setter threadPoolProperties = HystrixThreadPoolProperties.Setter() .withCoreSize(10)// 核心线程池大小和线程池最大大小 .withKeepAliveTimeMinutes(5) //线程池空闲线程生存时间。 .withMaxQueueSize(Integer.MAX_VALUE) //配置线程池最大大小 .withQueueSizeRejectionThreshold(2000); //当等待队列多大的时候,将会执行决绝策略 //命令属性配置。使用线程池隔离 HystrixCommandProperties.Setter commandProperties = HystrixCommandProperties.Setter() .withExecutionIsolationStrategy(HystrixCommandProperties.ExecutionIsolationStrategy.THREAD); //信号量隔离。 /*HystrixCommandProperties.Setter commandSemaphoreProperties = HystrixCommandProperties.Setter() .withExecutionIsolationStrategy(HystrixCommandProperties.ExecutionIsolationStrategy.SEMAPHORE) .withExecutionIsolationSemaphoreMaxConcurrentRequests(50); //限制并发总数 */ return HystrixCommand.Setter.withGroupKey(groupKey) .andCommandKey(commandKey) .andThreadPoolKey(threadPoolKey) .andThreadPoolPropertiesDefaults(threadPoolProperties) .andCommandPropertiesDefaults(commandProperties); } @Override protected String run() throws Exception { /* * 模拟服务异常,不可用。此时,会调用getFallback的返回 */ /* if(true) throw new BusinessRuntimeException("", "");*/ Thread.sleep(1000); return service.getStock(); } /** * * 降级方式,快速失败 * @see com.netflix.hystrix.HystrixCommand#getFallback() */ @Override protected String getFallback() { return "{success:0,content:[]}"; } }
[ "zengzw1220@13322ty.com" ]
zengzw1220@13322ty.com
25af80192b8a7d94557d1d5b51f0c79e0e9d6494
80a6b8d1efa66efbb94f0df684eedb81a5cc552c
/assertj-core/src/test/java/org/assertj/core/internal/paths/Paths_assertIsExecutable_Test.java
2986c10f2affbd8cc6e467787a2e39f5b972093e
[ "Apache-2.0" ]
permissive
AlHasan89/System_Re-engineering
43f232e90f65adc940af3bfa2b4d584d25ce076c
b80e6d372d038fd246f946e41590e07afddfc6d7
refs/heads/master
2020-03-27T05:08:26.156072
2019-01-06T17:54:59
2019-01-06T17:54:59
145,996,692
0
1
Apache-2.0
2019-01-06T17:55:00
2018-08-24T13:43:31
Java
UTF-8
Java
false
false
2,204
java
/** * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * * Copyright 2012-2017 the original author or authors. */ package org.assertj.core.internal.paths; import static org.assertj.core.error.ShouldBeExecutable.shouldBeExecutable; import static org.assertj.core.error.ShouldExist.shouldExist; import static org.assertj.core.test.TestFailures.wasExpectingAssertionError; import static org.assertj.core.util.FailureMessages.actualIsNull; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import org.junit.Test; public class Paths_assertIsExecutable_Test extends MockPathsBaseTest { @Test public void should_fail_if_actual_is_null() { thrown.expectAssertionError(actualIsNull()); paths.assertIsExecutable(info, null); } @Test public void should_fail_with_should_exist_error_if_actual_does_not_exist() { try { when(nioFilesWrapper.exists(actual)).thenReturn(false); paths.assertIsExecutable(info, actual); wasExpectingAssertionError(); } catch (AssertionError e) { verify(failures).failure(info, shouldExist(actual)); } } @Test public void should_fail_if_actual_exists_but_is_not_executable() { try { when(nioFilesWrapper.exists(actual)).thenReturn(true); when(nioFilesWrapper.isExecutable(actual)).thenReturn(false); paths.assertIsExecutable(info, actual); wasExpectingAssertionError(); } catch (AssertionError e) { verify(failures).failure(info, shouldBeExecutable(actual)); } } @Test public void should_succeed_if_actual_exist_and_is_executable() { when(nioFilesWrapper.exists(actual)).thenReturn(true); when(nioFilesWrapper.isExecutable(actual)).thenReturn(true); paths.assertIsExecutable(info, actual); } }
[ "nw91@le.ac.uk" ]
nw91@le.ac.uk
e91a383c23ec9ed4bbbb67d4d0d8bc3312889bb2
1d52be1919ffe83c102eab7d10e16f6dcbd2aa06
/src/main/java/de/idyl/winzipaes/impl/ExtRandomAccessFile.java
074c869d69fc431a840395c5b05aedd4be7edfdb
[]
no_license
david-lshift/winzipaes
86353aa7ebf48ca507cf2656f7632ae9cc908461
5dbb481b2d9cecbc6e0b0f996fbd67c434a328c4
refs/heads/master
2016-08-11T13:03:46.383359
2015-10-15T13:45:19
2015-10-15T13:45:19
44,310,453
0
0
null
null
null
null
UTF-8
Java
false
false
3,507
java
package de.idyl.winzipaes.impl; import static de.idyl.winzipaes.impl.ByteArrayHelper.toInt; import static de.idyl.winzipaes.impl.ByteArrayHelper.toLong; import static de.idyl.winzipaes.impl.ByteArrayHelper.toShort; import java.io.File; import java.io.IOException; import java.io.RandomAccessFile; import java.util.Arrays; /** * direct access methods accepting position + type of data to read as args * * @author olaf@merkert.de */ public class ExtRandomAccessFile { protected RandomAccessFile file; public ExtRandomAccessFile(File zipFile) throws IOException { this.file = new RandomAccessFile(zipFile, "r"); } public void close() throws IOException { file.close(); } // -------------------------------------------------------------------------- public int readByteArray(byte[] buffer, int len) throws IOException { int read = file.read(buffer, 0, len); return read; } public byte[] readByteArray(long pos, int length) throws IOException { byte[] out = new byte[length]; file.seek(pos); file.read(out, 0, length); return out; } public long readLong() throws IOException { byte[] b = new byte[8]; file.read(b, 0, 8); long out = toLong(b); return out; } public long readLong(long pos) throws IOException { file.seek(pos); return readLong(); } public int readInt() throws IOException { byte[] b = new byte[4]; file.read(b, 0, 4); int out = toInt(b); return out; } public int readInt(long pos) throws IOException { file.seek(pos); return readInt(); } public short readShort() throws IOException { byte[] b = new byte[2]; file.read(b, 0, 2); short out = toShort(b); return out; } public short readShort(long pos) throws IOException { file.seek(pos); return readShort(); } public byte readByte() throws IOException { byte[] b = new byte[1]; file.read(b, 0, 1); return b[0]; } public byte readByte(long pos) throws IOException { file.seek(pos); return readByte(); } // -------------------------------------------------------------------------- public void seek(long pos) throws IOException { file.seek(pos); } public long getFilePointer() throws IOException { return file.getFilePointer(); } // -------------------------------------------------------------------------- // TODO implement a buffered version public long lastPosOf(byte[] bytesToFind) throws IOException { long out = -1; for( long seekPos=file.length()-1-bytesToFind.length; seekPos>3 && out==-1; seekPos-- ) { byte[] buffer = readByteArray(seekPos,bytesToFind.length); if( Arrays.equals(bytesToFind,buffer) ) { out = seekPos; } } return out; } }
[ "david@lshift.net" ]
david@lshift.net
c432aaa1e3b83a7c8690555e490392d3aaf9dd3b
9038d56f6d95314706b0168fd835655218d7e606
/app/src/main/java/com/example/streak/technospandan/fragment/NotificationsFragment.java
b45b758959628b79aa3745914dd51b31a77d3091
[]
no_license
rahulXs/TechnoSpandan18
5f28bfeb0bb44465edccb24465c2e5eea37a901f
a15c0e13b1398239e17740a7529d7e48f74ddb19
refs/heads/master
2021-05-12T12:07:33.527341
2018-03-19T06:14:53
2018-03-19T06:14:53
117,404,019
5
3
null
2018-03-14T19:35:14
2018-01-14T05:20:14
Java
UTF-8
Java
false
false
2,679
java
package com.example.streak.technospandan.fragment; /** * Created by streak on 19/1/18. */ import android.app.Activity; import android.app.Fragment; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.support.annotation.Nullable; import android.support.v4.view.ViewPager; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import android.widget.Toast; import com.example.streak.technospandan.R; import com.example.streak.technospandan.model.Update; import com.example.streak.technospandan.utils.ViewPagerAdapter; import com.example.streak.technospandan.viewholder.UpdateViewholder; import com.firebase.ui.database.FirebaseRecyclerAdapter; import com.google.firebase.database.DatabaseReference; import com.google.firebase.database.FirebaseDatabase; import com.google.firebase.database.Query; public class NotificationsFragment extends Fragment { static int flag=0; //to make app not to crash int currentPage = 0; ViewPager viewPager; RecyclerView recyclerView; private static final String EXTRA_TEXT = "text"; public static void setFlag(int f){ flag = f; } public static NotificationsFragment createFor(String text) { NotificationsFragment fragment = new NotificationsFragment(); Bundle args = new Bundle(); args.putString(EXTRA_TEXT, text); fragment.setArguments(args); return fragment; } @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { getActivity().setTitle("Notifications"); View v = inflater.inflate(R.layout.fragment_updates, container, false); recyclerView = v.findViewById(R.id.recyclerView); DatabaseReference ref = FirebaseDatabase.getInstance().getReference("updates"); Query query = ref; FirebaseRecyclerAdapter adapter = new FirebaseRecyclerAdapter<Update,UpdateViewholder>( Update.class, R.layout.update_card, UpdateViewholder.class, query ) { @Override protected void populateViewHolder(UpdateViewholder viewHolder, final Update model, int position) { viewHolder.setData(model); } }; recyclerView.setLayoutManager(new LinearLayoutManager(getContext())); recyclerView.setAdapter(adapter); return v; } }
[ "rahulsharmaacn@gmail.com" ]
rahulsharmaacn@gmail.com
6a2926ba796d2884fa47aa48fd70116d90d1a8a7
d1fe34ef05e194c4ed38a4213f99b62a528176c7
/src/com/foodcoop/controller/HttpExceptionHandler.java
546350c5842a2b632b6399f3fe81aaf8295cca80
[]
no_license
sarahbe/-SWE573-SoftwarePractice
b8653fb34958383d6ca785238d6b2eed6d3841e5
5b8e6a93b64faf542621d5f88dfa6084dd0978f6
refs/heads/master
2021-01-21T13:21:02.459859
2016-05-24T13:28:41
2016-05-24T13:28:41
51,458,387
1
0
null
2016-04-11T07:40:07
2016-02-10T17:36:21
null
UTF-8
Java
false
false
470
java
package com.foodcoop.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; @Controller public class HttpExceptionHandler { @RequestMapping("/404") public ModelAndView NotFoundexception() { return new ModelAndView("404"); } @RequestMapping("/500") public ModelAndView DatabaseException() { return new ModelAndView("exception"); } }
[ "sarah.beirkdar@gmail.com" ]
sarah.beirkdar@gmail.com
6112596214f9f602b6e4e2f01f9889074b05894a
dc13f503702f3f60eb75976006b8877646d5dc13
/src/main/java/com/jianbo/platform/dao/ReplayDao.java
49b1c3da7cd45a127734596a20ff87a9d3f27626
[]
no_license
yangpejjie/yangpj
d552f324d90609d85f3b715b20ddeaa2d185dacf
7ce1a218c9a8ece3d61fe9a641e0c72b8f5cd3b4
refs/heads/master
2020-04-01T06:38:44.066373
2018-10-15T08:28:21
2018-10-15T08:28:21
152,957,203
0
0
null
null
null
null
UTF-8
Java
false
false
222
java
package com.jianbo.platform.dao; import com.jianbo.platform.entity.Replay; import com.baomidou.mybatisplus.mapper.BaseMapper; /** * 回复表 Mapper 接口 */ public interface ReplayDao extends BaseMapper<Replay> { }
[ "jason@192.168.0.107" ]
jason@192.168.0.107
30fec0a59bfaf0bec139676dcd049459ea691f1b
72acaac377fa67a74bbf19c0e8648eb9474e6001
/mgc/mf/filtre/TexturaTemperatura.java
031cae68ba2b0c2bdaffb89d2f66847bb038939b
[]
no_license
drpicox/mons-fractals
b091b37125c35180eff68803422ab15fb1cbea64
21edcfa46fad89823e8c9be7301ce67e2bf44304
refs/heads/master
2021-01-22T20:08:48.107375
2017-01-17T14:36:42
2017-01-17T14:36:42
9,244,435
0
0
null
null
null
null
UTF-8
Java
false
false
4,529
java
package mgc.mf.filtre; import java.awt.Color; import java.util.Enumeration; import java.util.Random; import java.util.Vector; import mgc.mf.*; /** * Filtre que coloritza un objecte. */ public class TexturaTemperatura extends FiltreNul { private static final Color glac = new Color ( 217, 249, 255 ); private static final Color pedraFosca = new Color ( 47, 47, 28 ); private static final Color pedraClara = new Color ( 177, 160, 143 ); private static final Color boscFosc = new Color ( 67, 88, 37 ); private static final Color boscMig = new Color ( 79, 172, 51 ); private static final Color boscClar = new Color ( 163, 231, 61 ); private static final Color boscMarro = new Color ( 169, 160, 54 ); private static final Color vermellMart = new Color ( 252, 64, 10 ); private static final Color magmaFred = new Color ( 90, 12, 12 ); private static final Color magmaNormal = new Color ( 222, 73, 10 ); private static final Color magmaCalent = new Color ( 231, 203, 5 ); private static final Color blancGrogos = new Color ( 254, 247, 194 ); private static final Color blancBlavos = new Color ( 194, 254, 231 ); private static final Color blanc = new Color ( 255, 255, 255 ); private static final Color sorra = new Color ( 218, 190, 80 ); private transient Random random; private static transient Color[][] colors = { { glac, pedraFosca, sorra }, // 220 { sorra, glac, pedraFosca }, // 273 { boscMig, boscFosc, pedraFosca }, // 283 { boscClar, boscMig, pedraFosca }, // 293 { boscMarro, boscClar, sorra }, // 303 { boscClar, boscMarro, sorra }, // 323 { pedraFosca, sorra, boscMarro }, // 373 { sorra, pedraClara, vermellMart }, // 473 { pedraFosca, pedraClara, sorra }, // 1000 { magmaNormal, magmaFred, pedraFosca }, // 2000 { magmaCalent, magmaNormal, magmaFred }, // 2500 { magmaNormal, magmaCalent, magmaFred }, // 5000 { magmaCalent, blancGrogos, magmaCalent }, // 5500 { blancGrogos, blancBlavos, blanc } // oo }; public TexturaTemperatura() { super(); } public Objecte filtrar(Objecte objecte) { Vertex vertex; Enumeration enumVertexs; Textura textura; Color color; Sistema.sPrintln("Aplicant filtre coloritzar per temperatura"); enumVertexs = objecte.getVertexs(); while (enumVertexs.hasMoreElements()) { vertex = (Vertex)enumVertexs.nextElement(); textura = vertex.getTextura ( ); color = aleatoritzarColor ( textura.getTemperatura(), textura.getTipusSuperficie() ); textura.setColor(color); } // while return objecte; } protected Color aleatoritzarColor ( int dTemp, double dSup ) { Color color; int cTemp, cSup; int r, g, b; char max; cTemp = indexTemperatura ( dTemp ); cSup = indexTS ( dSup ); color = colors[cTemp][cSup]; r = color.getRed ( ); g = color.getGreen ( ); b = color.getBlue ( ); max = maxim ( r, g, b ); switch ( max ) { case 'r': r = r + (int)( Math.min ( r, 255 - r ) * dSup / 5 ); g = g - (int)( Math.min ( g, 255 - g ) * dSup / 5 ); b = b - (int)( Math.min ( b, 255 - b ) * dSup / 5 ); break; case 'g': r = r - (int)( Math.min ( r, 255 - r ) * dSup / 5 ); g = g + (int)( Math.min ( g, 255 - g ) * dSup / 5 ); b = b - (int)( Math.min ( b, 255 - b ) * dSup / 5 ); break; case 'b': r = r - (int)( Math.min ( r, 255 - r ) * dSup / 5 ); g = g - (int)( Math.min ( g, 255 - g ) * dSup / 5 ); b = b + (int)( Math.min ( b, 255 - b ) * dSup / 5 ); break; } color = new Color ( r, g, b ); return color; } protected int indexTS ( double ts ) { if ( ts < 0.3 ) return 0; if ( ts > 0.8 ) return 2; return 1; } protected int indexTemperatura ( int tmp ) { int[] taula = { 220, 273, 283, 293, 303, 323, 373, 473, 1000, 2000, 2500, 5000, 5500 }; int i; i = 0; for (; i < taula.length; i++) if (tmp < taula[i]) return i; return i; } protected char maxim ( int r, int g, int b ) { if ( r >= g && r >= b ) return 'r'; if ( g >= r && g >= b ) return 'g'; return 'b'; } }
[ "davidrodenas+fb@gmail.com" ]
davidrodenas+fb@gmail.com
ec9fda717fd7113b660df34661ba23254aa50f07
1357eb3856e334fdfdfa94c0cac08fa1b07f6cab
/ezyfox-server-core/src/test/java/com/tvd12/ezyfoxserver/testing/EzyZonesStarterTest.java
39d7acc3169848e3ab1a3d4134b7378be03768fb
[ "Apache-2.0" ]
permissive
brock12121996/ezyfox-server
a22dc58884f68c94b6619688cd7f581527defa8e
e8d1ca08cd36a050d6fe310212e7e1ef4a2c7ab6
refs/heads/master
2021-05-17T02:20:00.363552
2020-03-14T17:38:14
2020-03-14T17:38:14
250,573,240
1
0
Apache-2.0
2020-03-27T15:37:29
2020-03-27T15:37:29
null
UTF-8
Java
false
false
4,663
java
package com.tvd12.ezyfoxserver.testing; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import java.io.File; import java.util.HashMap; import java.util.Map; import org.testng.annotations.Test; import com.tvd12.ezyfoxserver.EzySimpleApplication; import com.tvd12.ezyfoxserver.EzySimplePlugin; import com.tvd12.ezyfoxserver.EzySimpleServer; import com.tvd12.ezyfoxserver.EzySimpleZone; import com.tvd12.ezyfoxserver.EzyZonesStarter; import com.tvd12.ezyfoxserver.ccl.EzyAppClassLoader; import com.tvd12.ezyfoxserver.context.EzyAppContext; import com.tvd12.ezyfoxserver.context.EzyPluginContext; import com.tvd12.ezyfoxserver.context.EzyServerContext; import com.tvd12.ezyfoxserver.context.EzyZoneContext; import com.tvd12.ezyfoxserver.ext.EzyAppEntry; import com.tvd12.ezyfoxserver.ext.EzyAppEntryLoader; import com.tvd12.ezyfoxserver.ext.EzyPluginEntry; import com.tvd12.ezyfoxserver.ext.EzyPluginEntryLoader; import com.tvd12.ezyfoxserver.setting.EzySimpleAppSetting; import com.tvd12.ezyfoxserver.setting.EzySimpleAppsSetting; import com.tvd12.ezyfoxserver.setting.EzySimplePluginSetting; import com.tvd12.ezyfoxserver.setting.EzySimplePluginsSetting; import com.tvd12.ezyfoxserver.setting.EzySimpleSettings; import com.tvd12.ezyfoxserver.setting.EzySimpleZoneSetting; import com.tvd12.ezyfoxserver.setting.EzySimpleZonesSetting; import com.tvd12.test.base.BaseTest; public class EzyZonesStarterTest extends BaseTest { @Test public void normalCaseTest() { EzySimpleSettings settings = new EzySimpleSettings(); EzySimpleZonesSetting zonesSetting = settings.getZones(); EzySimpleZoneSetting zoneSetting = new EzySimpleZoneSetting(); zoneSetting.setName("test"); zonesSetting.setItem(zoneSetting); EzySimpleAppsSetting appsSetting = new EzySimpleAppsSetting(); EzySimpleAppSetting appSetting = new EzySimpleAppSetting(); appSetting.setName("apps"); appSetting.setFolder("apps"); appSetting.setEntryLoader(ExEntryLoader.class.getName()); appsSetting.setItem(appSetting); zoneSetting.setApplications(appsSetting); EzySimplePluginsSetting pluginsSetting = new EzySimplePluginsSetting(); EzySimplePluginSetting pluginSetting = new EzySimplePluginSetting(); pluginSetting.setName("plugins"); pluginSetting.setFolder("plugins"); pluginSetting.setEntryLoader(ExPluginEntryLoader.class.getName()); pluginsSetting.setItem(pluginSetting); zoneSetting.setPlugins(pluginsSetting); EzySimpleServer server = new EzySimpleServer(); server.setSettings(settings); EzyServerContext serverContext = mock(EzyServerContext.class); when(serverContext.getServer()).thenReturn(server); EzySimpleZone zone = new EzySimpleZone(); zone.setSetting(zoneSetting); EzyZoneContext zoneContext = mock(EzyZoneContext.class); when(zoneContext.getZone()).thenReturn(zone); when(serverContext.getZoneContext("test")).thenReturn(zoneContext); EzySimpleApplication app = new EzySimpleApplication(); app.setSetting(appSetting); EzyAppContext appContext = mock(EzyAppContext.class); when(appContext.getApp()).thenReturn(app); when(zoneContext.getAppContext("apps")).thenReturn(appContext); EzySimplePlugin plugin = new EzySimplePlugin(); plugin.setSetting(pluginSetting); EzyPluginContext pluginContext = mock(EzyPluginContext.class); when(pluginContext.getPlugin()).thenReturn(plugin); when(zoneContext.getPluginContext("plugins")).thenReturn(pluginContext); Map<String, EzyAppClassLoader> appClassLoaders = new HashMap<>(); appClassLoaders.put("apps", new EzyAppClassLoader(new File("test-data"), getClass().getClassLoader())); server.setAppClassLoaders(appClassLoaders); EzyZonesStarter starter = EzyZonesStarter.builder() .serverContext(serverContext) .build(); starter.start(); } public static class ExEntryLoader implements EzyAppEntryLoader { @Override public EzyAppEntry load() throws Exception { EzyAppEntry enry = mock(EzyAppEntry.class); return enry; } } public static class ExPluginEntryLoader implements EzyPluginEntryLoader { @Override public EzyPluginEntry load() throws Exception { EzyPluginEntry entry = mock(EzyPluginEntry.class); return entry; } } }
[ "itprono3@gmail.com" ]
itprono3@gmail.com
483be788fe3211dae62427268faa80e3e6d5d875
ea3b7d1754a355a9ea980118c3ab6f48e215f9c0
/src/cn/itcast/dormitory/order/servlet/findByWid.java
3b1069da951d88bbf6da36b1782fd2d33ec02541
[]
no_license
Fulemei/dormitory
6432505213d59e9159a46b38463ee27054efe965
209cd7979570102e9aa75b6f1a3e52e063bc9074
refs/heads/master
2020-04-24T19:24:02.093654
2019-07-08T01:45:52
2019-07-08T01:45:52
172,210,376
0
0
null
null
null
null
UTF-8
Java
false
false
2,834
java
package cn.itcast.dormitory.order.servlet; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import cn.itcast.dormitory.order.entity.Order; import cn.itcast.dormitory.order.service.OrderService; import cn.itcast.dormitory.order.service.OrderServiceImpl; import cn.itcast.dormitory.pager.PageBean; /** * Servlet implementation class findByWid */ public class findByWid extends HttpServlet { private static final long serialVersionUID = 1L; private OrderService orderService = new OrderServiceImpl(); /** * 获取当前页码 * * @param req * @return */ private int getPc(HttpServletRequest req) { int pc = 1; String param = req.getParameter("pc"); if (param != null && !param.trim().isEmpty()) { try { pc = Integer.parseInt(param); } catch (RuntimeException e) { } } return pc; } /** * 截取url,页面中的分页导航中需要使用它做为超链接的目标! * * @param req * @return */ /* * http://localhost:8080/goods/BookServlet?methed=findByCategory&cid=xxx&pc=3 * /goods/BookServlet + methed=findByCategory&cid=xxx&pc=3 */ private String getUrl(HttpServletRequest req) { String url = req.getRequestURI() + "?" + req.getQueryString(); /* * 如果url中存在pc参数,截取掉,如果不存在那就不用截取。 */ int index = url.lastIndexOf("&pc="); if (index != -1) { url = url.substring(0, index); } return url; } /** * @see HttpServlet#HttpServlet() */ public findByWid() { super(); // TODO Auto-generated constructor stub } /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse * response) */ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { /* * 1. 得到pc:如果页面传递,使用页面的,如果没传,pc=1 */ int pc = getPc(req); /* * 2. 得到url:... */ String url = getUrl(req); /* * 4. 调用service */ String wid = req.getParameter("wid"); PageBean<Order> pb = orderService.findByWorker(wid, pc); /* * 5. 给PageBean设置url,保存PageBean,转发到/jsps/book/list.jsp */ pb.setUrl(url); req.setAttribute("pb", pb); req.getRequestDispatcher("repairAllList.jsp").forward(req, resp); } /** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse * response) */ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub doGet(request, response); } }
[ "13314903613@163.com" ]
13314903613@163.com
609f7801918f369f870c6f22d2aa48d54841015f
b981ec1f47604c0e3964fa0f2e257fb40c161aad
/src/com/chee/service/BusinessService.java
e94d68992d72edb21434c7993837f8be9f8a62a2
[]
no_license
ddong32/cheefull
78cad892f9b2332088c961b2597aea264da3ea7f
4e7dff7acd1d15ca65b5ae4e4354bc9b3ee71d30
refs/heads/master
2021-09-10T05:20:27.093081
2018-02-11T09:11:06
2018-02-11T09:11:06
109,226,933
0
0
null
null
null
null
UTF-8
Java
false
false
952
java
package com.chee.service; import com.chee.common.Page; import com.chee.entity.Business; import java.util.Date; import java.util.List; public abstract interface BusinessService extends BaseService<Business, Integer> { public abstract Page<Business> findBusinessPage(Page<Business> paramPage, Business paramBusiness); public abstract List<Business> findBusinessListTotal(Business paramBusiness); public abstract int updateBusinessStat(Integer paramInteger, String paramString); public abstract Business findBusinessRecountJe(String paramString); public abstract long noGenerate(); public abstract List<String> getcfsjorderid(Date paramDate); public abstract void updateOrderId(Business paramBusiness) throws Exception; } /* Location: C:\Users\asus\Desktop\full\WEB-INF\classes\ * Qualified Name: com.chee.service.BusinessService * JD-Core Version: 0.7.0.1 */
[ "qin@DESKTOP-2I26VIR" ]
qin@DESKTOP-2I26VIR
14b80c6f67e2489b51d6f25e007d3eaf0825b98b
06a41d3cffdacea1ee0d907fa346c854e01ab738
/src/main/java/com/yjfshop123/live/live/live/common/widget/gift/view/GiftPageViewPager.java
e2f3c0aea6c23adea0e355eb881559893b5950ce
[]
no_license
yanbingyanjing/Demo
9c7c600295f9dc4996da5ff6e0803cfae0cfbdc2
dbe9b9f51c9e55038da849caf1322bfb1d546583
refs/heads/master
2023-04-08T18:11:08.182347
2021-04-21T07:20:04
2021-04-21T07:20:04
360,068,907
0
0
null
null
null
null
UTF-8
Java
false
false
852
java
package com.yjfshop123.live.live.live.common.widget.gift.view; import android.content.Context; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.view.ViewPager; import android.util.AttributeSet; public class GiftPageViewPager extends ViewPager { public GiftPageViewPager(@NonNull Context context) { this(context, null); } public GiftPageViewPager(@NonNull Context context, @Nullable AttributeSet attrs) { super(context, attrs); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int widthSize = MeasureSpec.getSize(widthMeasureSpec); heightMeasureSpec = MeasureSpec.makeMeasureSpec(widthSize / 2, MeasureSpec.EXACTLY); super.onMeasure(widthMeasureSpec, heightMeasureSpec); } }
[ "yanbingyanjing@163.com" ]
yanbingyanjing@163.com
3662cd64da94027d128c1f2dc550275d02c0f996
d4c3659ac9ddb5e3c0010b326f3bcc7e33ce0bed
/ren-regression/src/main/java/com/exigen/dxp/employee/providertab/FindProviderPage.java
b81693a642491c73bf01c2474469403dbaf01810
[]
no_license
NandiniDR29/regression-test
cbfdae60e8b462cf32485afb3df0d9504200d0e1
c4acbc3488195217f9d6a780130d2e5dfe01d6e5
refs/heads/master
2023-07-03T14:35:40.673146
2021-08-11T07:03:13
2021-08-11T07:03:13
369,527,619
0
0
null
null
null
null
UTF-8
Java
false
false
1,465
java
package com.exigen.dxp.employee.providertab; import com.exigen.dxp.DxpCommonMethods; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import java.io.IOException; import java.util.ArrayList; import static com.exigen.dxp.DXPBaseTest.driver; import static com.exigen.dxp.DXPBaseTest.highLighterMethod; public class FindProviderPage { String parentTab; @FindBy(xpath = "//a[text()='FIND PROVIDER']") private WebElement findProvider; public FindProviderPage(WebDriver driver) { PageFactory.initElements(driver,this); } public void clickOnFindProvider(){ highLighterMethod(findProvider); parentTab = driver.getWindowHandle(); findProvider.click(); } public void verifyPageTitle() throws IOException { ArrayList<String> tabs = new ArrayList<>(driver.getWindowHandles()); tabs.remove(parentTab); for (String tab:tabs) { driver.switchTo().window(tab); String url = driver.getCurrentUrl(); if (url.contains("https://www.myrenproviders.com/")){ DxpCommonMethods.informationPrint("Navigated to : " +url); } else { DxpCommonMethods.toFailScenarios(url+"not Matching"); } driver.close(); } driver.switchTo().window(parentTab); } }
[ "Nramachandra@previseit.com" ]
Nramachandra@previseit.com
7c1157903fa7e02265499f2a9ad1c59e4f56e9cd
81e9550014d1ec5cc48aa28f05520d34cd7508e0
/src/main/java/module-info.java
3d7fd62e23c0e24b423e6696d16a4847e2769df5
[]
no_license
hlf0319/repro-openjdk-jfx-637
48d1fbd7bc67dceb3178e7b1b99511e3aedd0139
25db997b567ea8ebf1f67a5acd8cc9f9c2b21179
refs/heads/master
2022-12-12T07:02:29.805918
2020-08-26T09:47:03
2020-08-26T09:47:03
290,457,403
0
0
null
null
null
null
UTF-8
Java
false
false
145
java
module shuttle { requires javafx.controls; requires javafx.fxml; requires java.sql; opens org to javafx.fxml; exports org; }
[ "lhuang@confluent.io" ]
lhuang@confluent.io
9fdbdffbd5b032115f49f92cd121645bceb273af
95d4021d530cfa2fa6c35be3eef2738140bdb18c
/src/main/java/com/esurovskiy/TelescopeBuilder.java
e40cafea1085691fa2bc86e391b06c7ab1cfcfe5
[]
no_license
hacker13ua/may10
5bb198de108285506f9229fea816951cb6d35506
4230ecfe19901b1d5e0b4ac6011d256b1cc9835a
refs/heads/master
2020-05-23T17:04:30.743177
2019-05-17T15:40:05
2019-05-17T15:40:05
186,860,865
0
0
null
null
null
null
UTF-8
Java
false
false
847
java
package com.esurovskiy; public class TelescopeBuilder { private int a; private int b; private int c; private int d; private int e; private int f; public TelescopeObject build() { return new TelescopeObject(a, b, c, d, e, f); } public TelescopeBuilder setA(final int a) { this.a = a; return this; } public TelescopeBuilder setB(final int b) { this.b = b; return this; } public TelescopeBuilder setC(final int c) { this.c = c; return this; } public TelescopeBuilder setD(final int d) { this.d = d; return this; } public TelescopeBuilder setE(final int e) { this.e = e; return this; } public TelescopeBuilder setF(final int f) { this.f = f; return this; } }
[ "surovskiy@trafficdna.com" ]
surovskiy@trafficdna.com
17fd533ca5724270f0313bf9c218d1607bb4a773
40d5b69e825c4606093dcba3630cfa2abbe6d79e
/src/com/sleepycat/je/tree/dupConvert/DupCountLN.java
03ae1b2eccb1dfc86046c4143c7b51294a6112a6
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bantudb/je
75776f51ee8642f5deea510b1028e0918038186d
bf2710344e74f07a54e7b5fa05531c031b0ddaed
refs/heads/master
2021-01-19T23:49:29.480509
2017-04-22T01:14:01
2017-04-22T01:14:01
89,035,623
1
0
null
null
null
null
UTF-8
Java
false
false
4,333
java
/*- * Copyright (C) 2002, 2017, Oracle and/or its affiliates. All rights reserved. * * This file was distributed by Oracle as part of a version of Oracle Berkeley * DB Java Edition made available at: * * http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html * * Please see the LICENSE file included in the top-level directory of the * appropriate version of Oracle Berkeley DB Java Edition for a copy of the * license and additional information. */ package com.sleepycat.je.tree.dupConvert; import java.nio.ByteBuffer; import com.sleepycat.je.EnvironmentFailureException; import com.sleepycat.je.dbi.MemoryBudget; import com.sleepycat.je.log.LogEntryType; import com.sleepycat.je.log.LogUtils; import com.sleepycat.je.log.Loggable; import com.sleepycat.je.tree.LN; import com.sleepycat.je.tree.TreeUtils; /** * A DupCountLN represents the transactional part of the root of a * duplicate tree, specifically the count of dupes in the tree. * * Obsolete in log version 8, only used by DupConvert and some log readers. */ public final class DupCountLN extends LN { private static final String BEGIN_TAG = "<dupCountLN>"; private static final String END_TAG = "</dupCountLN>"; private int dupCount; /** * Create an empty DupCountLN, to be filled in from the log. */ public DupCountLN() { super(); dupCount = 0; } public int getDupCount() { return dupCount; } /** * @return true if this node is a duplicate-bearing node type, false * if otherwise. */ @Override public boolean containsDuplicates() { return true; } @Override public boolean isDeleted() { return false; } /** * Compute the approximate size of this node in memory for evictor * invocation purposes. */ @Override public long getMemorySizeIncludedByParent() { return MemoryBudget.DUPCOUNTLN_OVERHEAD; } /* * Dumping */ @Override public String toString() { return dumpString(0, true); } @Override public String beginTag() { return BEGIN_TAG; } @Override public String endTag() { return END_TAG; } @Override public String dumpString(int nSpaces, boolean dumpTags) { StringBuilder sb = new StringBuilder(); if (dumpTags) { sb.append(TreeUtils.indent(nSpaces)); sb.append(beginTag()); sb.append('\n'); } sb.append(TreeUtils.indent(nSpaces+2)); sb.append("<count v=\"").append(dupCount).append("\"/>").append('\n'); sb.append(super.dumpString(nSpaces, false)); if (dumpTags) { sb.append(TreeUtils.indent(nSpaces)); sb.append(endTag()); } return sb.toString(); } /* * Logging */ /** * Return the correct log entry type for a DupCountLN depends on whether * it's transactional. */ @Override protected LogEntryType getLogType(boolean isInsert, boolean isTransactional) { return isTransactional ? LogEntryType.LOG_DUPCOUNTLN_TRANSACTIONAL : LogEntryType.LOG_DUPCOUNTLN; } /** * @see LN#getLogSize */ @Override public int getLogSize() { throw EnvironmentFailureException.unexpectedState(); } /** * @see LN#writeToLog */ @Override public void writeToLog(ByteBuffer logBuffer) { throw EnvironmentFailureException.unexpectedState(); } /** * @see LN#readFromLog */ @Override public void readFromLog(ByteBuffer itemBuffer, int entryVersion) { super.readFromLog(itemBuffer, entryVersion); dupCount = LogUtils.readInt(itemBuffer, (entryVersion < 6)); } /** * @see Loggable#logicalEquals * DupCountLNs are never replicated. */ @Override public boolean logicalEquals(Loggable other) { return false; } /** * Dump additional fields */ @Override protected void dumpLogAdditional(StringBuilder sb, boolean verbose) { super.dumpLogAdditional(sb, verbose); sb.append("<count v=\"").append(dupCount).append("\"/>"); } }
[ "gburd@onshape.com" ]
gburd@onshape.com
6783dfe8131077fe422b2e9642f8111d95cf43df
59288d05ddda940ee9426fea44e4ab18a3565538
/Many To Many/src/OrderItem/TsetOrderItem.java
3d87cc749f85e828948ea812b0960f7438cbab3b
[]
no_license
Takshmalviya1995/Hibernate
9b3f1d42394cf45a7e76d7578737cd6d6a9812fc
e412e71b44aca8e4f55c8e3a81a506a86e1ef8a9
refs/heads/master
2020-03-25T22:50:56.579693
2018-08-10T07:06:22
2018-08-10T07:06:22
144,245,798
0
0
null
null
null
null
UTF-8
Java
false
false
180
java
package OrderItem; public class TsetOrderItem { public static void main(String[] args) { LogicOrderItem oi = new LogicOrderItem(); //oi.insert1(); oi.updateRec(); } }
[ "takshmalviya23@gmail.com" ]
takshmalviya23@gmail.com
4144c0d7b29bcd327f2453712c64276644699560
82f5c588445572a575fd37e4209d3459c8ce5b79
/src/main/java/com/nuvve/iotecha/protocolgateway/domains/DispatchValues.java
d5def3172ee8f1df3a4bf4ddc3fd9ebedca8fe19
[]
no_license
DeadmanAgus/IPG
6ed2121a100e96a99a8858868daeb0ff15307952
3906c2e979cbc422d0f8732b41b8b6bec80b629b
refs/heads/master
2022-12-04T10:11:57.642349
2020-08-16T23:33:24
2020-08-16T23:33:24
287,301,802
0
0
null
null
null
null
UTF-8
Java
false
false
1,144
java
package com.nuvve.iotecha.protocolgateway.domains; import java.time.LocalDateTime; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import lombok.Getter; import lombok.Setter; @Getter @Setter @Entity public class DispatchValues extends CoreDomain<Long> { private static final long serialVersionUID = 1L; @Column(nullable = false) private long transactionId; @Column(nullable = false) private String authorizationResult; @Column(nullable = false) private String mode; @Column(nullable = false) private long setpointId; @Column(nullable = false) private int setpoint; @Column(nullable = false) private int validity; @Column(nullable = false) private String defaultProfile; @Column(nullable = false) private LocalDateTime timeStamp; @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "evseId", referencedColumnName = "id") private Evse evse; public DispatchValues() { super(); } }
[ "agustinhv@hotmail.com" ]
agustinhv@hotmail.com
801ec6cbbc311adfb33fde8367f18b4bf74be496
17ff9c49660ae5be4fc047908719c3ac65ab22b5
/app/src/main/java/info/androidhive/gameviet/fragment/SettingsFragment.java
ad2852e3ebc6ec25a2e3db04349b471b4bca9774
[]
no_license
lalazen92/FileXXXCARO
898aaacb550dd8ed812fe41c8bd6d65e5ca66752
765f7e7e3bbf2c5a2c15e51a53ecb1068a19ff95
refs/heads/master
2021-01-13T17:02:18.639505
2016-12-15T15:26:02
2016-12-15T15:26:02
76,568,282
0
0
null
null
null
null
UTF-8
Java
false
false
3,710
java
package info.androidhive.gameviet.fragment; import android.content.Context; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import info.androidhive.gameviet.R; /** * A simple {@link Fragment} subclass. * Activities that contain this fragment must implement the * {@link SettingsFragment.OnFragmentInteractionListener} interface * to handle interaction events. * Use the {@link SettingsFragment#newInstance} factory method to * create an instance of this fragment. */ public class SettingsFragment extends Fragment { // TODO: Rename parameter arguments, choose names that match // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER private static final String ARG_PARAM1 = "param1"; private static final String ARG_PARAM2 = "param2"; // TODO: Rename and change types of parameters private String mParam1; private String mParam2; private OnFragmentInteractionListener mListener; public SettingsFragment() { // Required empty public constructor } /** * Use this factory method to create a new instance of * this fragment using the provided parameters. * * @param param1 Parameter 1. * @param param2 Parameter 2. * @return A new instance of fragment SettingsFragment. */ // TODO: Rename and change types and number of parameters public static SettingsFragment newInstance(String param1, String param2) { SettingsFragment fragment = new SettingsFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments() != null) { mParam1 = getArguments().getString(ARG_PARAM1); mParam2 = getArguments().getString(ARG_PARAM2); } } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment return inflater.inflate(R.layout.fragment_settings, container, false); } // TODO: Rename method, update argument and hook method into UI event public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onFragmentInteraction(uri); } } @Override public void onAttach(Context context) { super.onAttach(context); // if (context instanceof OnFragmentInteractionListener) { // mListener = (OnFragmentInteractionListener) context; // } else { // throw new RuntimeException(context.toString() // + " must implement OnFragmentInteractionListener"); // } } @Override public void onDetach() { super.onDetach(); mListener = null; } /** * This interface must be implemented by activities that contain this * fragment to allow an interaction in this fragment to be communicated * to the activity and potentially other fragments contained in that * activity. * <p> * See the Android Training lesson <a href= * "http://developer.android.com/training/basics/fragments/communicating.html" * >Communicating with Other Fragments</a> for more information. */ public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); } }
[ "lalazen92@gmail.com" ]
lalazen92@gmail.com
47f6755f91739679f936410a65c3eb826f97d0cb
421f0a75a6b62c5af62f89595be61f406328113b
/generated_tests/model_seeding/92_jcvi-javacommon-org.jcvi.jillion.trace.sff.SffUtil-0.5-6/org/jcvi/jillion/trace/sff/SffUtil_ESTest.java
d2f6ca0fa3a40986beda90fb8732989a51a043d7
[]
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
646
java
/* * This file was automatically generated by EvoSuite * Tue Oct 29 14:33:29 GMT 2019 */ package org.jcvi.jillion.trace.sff; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true) public class SffUtil_ESTest extends SffUtil_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pderakhshanfar@bsr01.win.tue.nl" ]
pderakhshanfar@bsr01.win.tue.nl
3021a9fabd4b64d707f78e8d7568f8fbfe3491a5
f6200f45b413af0b98953904451b0b9098860912
/src/main/java/jeep/post/controller/Board2Controller.java
7d7ae63f932a4d841022b051975fac558b37f0d4
[]
no_license
liamchoi943/post_
55c4e15ed050971183bf7613dad58dcc33c2b9fb
f2ce20505a5c053645f048fd776bf9e3783c3c37
refs/heads/master
2023-06-15T04:51:34.081347
2021-07-10T03:38:28
2021-07-10T03:38:28
383,139,992
0
0
null
null
null
null
UTF-8
Java
false
false
3,450
java
package jeep.post.controller; import jeep.post.domain.AjaxResponse; import jeep.post.domain.Board; import jeep.post.domain.Board2; import jeep.post.domain.Reply; import jeep.post.service.Board2Service; import jeep.post.service.BoardService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.multipart.MultipartFile; import javax.servlet.http.HttpServletRequest; import java.io.File; import java.io.IOException; import java.util.List; @Controller public class Board2Controller { @Autowired private Board2Service board2Service; @RequestMapping(value="/index2", method=RequestMethod.GET) public String index() { return "index2"; } @RequestMapping(value="/board2", method=RequestMethod.GET) public String board() { return "board2"; } @RequestMapping(value="/board2List", method=RequestMethod.GET) @ResponseBody public AjaxResponse boardList(@RequestParam(value = "page", required = false, defaultValue = "1") int page, @RequestParam(value = "perPage", required = false, defaultValue = "10") int perPage) { int start =(page-1)*perPage; List<Board2> board2 = board2Service.getBoard2(start, perPage); return AjaxResponse.builder() .recordsTotal(300) .draw(5) .recordsFiltered(300) .data(board2) .build(); } @RequestMapping(value="/write2", method=RequestMethod.GET) public String write() { return "write2"; } @RequestMapping(value="/writeAction2", method=RequestMethod.POST) public String writeAction( HttpServletRequest req, @RequestParam("file") MultipartFile file, @RequestParam("title")String title, @RequestParam("contents")String contents) throws IllegalStateException, IOException { String PATH = req.getSession().getServletContext().getRealPath("/") + "resources/"; if (!file.getOriginalFilename().isEmpty()) { file.transferTo(new File(PATH + file.getOriginalFilename())); } board2Service.addBoard2(new Board2(0, title, contents, file.getOriginalFilename())); return "board2"; } @RequestMapping(value="/view2", method=RequestMethod.GET) public String view() { return "view2"; } @RequestMapping(value="/board2View", method=RequestMethod.GET) @ResponseBody public Board2 boardList(@RequestParam("idx")int idx){ return board2Service.getBoard2One(idx); } @RequestMapping(value="/replyList2", method=RequestMethod.GET) @ResponseBody public List<Reply> replyList(@RequestParam("idx")int boardIdx){ return board2Service.getReply(boardIdx); } @RequestMapping(value="/writeReply2", method=RequestMethod.POST) public String writeReply( @RequestParam("idx")int idx, @RequestParam("replyIdx")int replyIdx, @RequestParam("contents")String contents) { board2Service.addReply(new Reply(0, idx,replyIdx, contents)); return "redirect:view2?idx=" + idx; } }
[ "fabinacciseries9" ]
fabinacciseries9
3130338d392bdba14f1a4d88be246cfbf0ff849e
37f481ad718f28cd57d4271fdc8ece0df741ef71
/FinalProject/Fun/app/build/generated/source/r/debug/android/support/fragment/R.java
0d43aab70e64b3c047832aae67c8e5044c90aaf8
[]
no_license
nnichols2013/Android-Music-Player
091b5ec1754455784735c06abf9e74fc60cc1be6
914c95c3c9897af3d4028551451e9bb5cf541aac
refs/heads/main
2023-04-06T15:14:41.954825
2021-04-12T17:47:45
2021-04-12T17:47:45
336,213,746
0
0
null
null
null
null
UTF-8
Java
false
false
12,112
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package android.support.fragment; public final class R { public static final class attr { public static final int alpha = 0x7f020028; public static final int coordinatorLayoutStyle = 0x7f020067; public static final int font = 0x7f02007d; public static final int fontProviderAuthority = 0x7f02007f; public static final int fontProviderCerts = 0x7f020080; public static final int fontProviderFetchStrategy = 0x7f020081; public static final int fontProviderFetchTimeout = 0x7f020082; public static final int fontProviderPackage = 0x7f020083; public static final int fontProviderQuery = 0x7f020084; public static final int fontStyle = 0x7f020085; public static final int fontVariationSettings = 0x7f020086; public static final int fontWeight = 0x7f020087; public static final int keylines = 0x7f020097; public static final int layout_anchor = 0x7f02009a; public static final int layout_anchorGravity = 0x7f02009b; public static final int layout_behavior = 0x7f02009c; public static final int layout_dodgeInsetEdges = 0x7f0200c9; public static final int layout_insetEdge = 0x7f0200d3; public static final int layout_keyline = 0x7f0200d4; public static final int statusBarBackground = 0x7f020116; public static final int ttcIndex = 0x7f020149; } public static final class color { public static final int notification_action_color_filter = 0x7f04003f; public static final int notification_icon_bg_color = 0x7f040040; public static final int ripple_material_light = 0x7f04004a; public static final int secondary_text_default_material_light = 0x7f04004c; } public static final class dimen { public static final int compat_button_inset_horizontal_material = 0x7f05004b; public static final int compat_button_inset_vertical_material = 0x7f05004c; public static final int compat_button_padding_horizontal_material = 0x7f05004d; public static final int compat_button_padding_vertical_material = 0x7f05004e; public static final int compat_control_corner_material = 0x7f05004f; public static final int compat_notification_large_icon_max_height = 0x7f050050; public static final int compat_notification_large_icon_max_width = 0x7f050051; public static final int notification_action_icon_size = 0x7f05005c; public static final int notification_action_text_size = 0x7f05005d; public static final int notification_big_circle_margin = 0x7f05005e; public static final int notification_content_margin_start = 0x7f05005f; public static final int notification_large_icon_height = 0x7f050060; public static final int notification_large_icon_width = 0x7f050061; public static final int notification_main_column_padding_top = 0x7f050062; public static final int notification_media_narrow_margin = 0x7f050063; public static final int notification_right_icon_size = 0x7f050064; public static final int notification_right_side_padding_top = 0x7f050065; public static final int notification_small_icon_background_padding = 0x7f050066; public static final int notification_small_icon_size_as_large = 0x7f050067; public static final int notification_subtext_size = 0x7f050068; public static final int notification_top_pad = 0x7f050069; public static final int notification_top_pad_large_text = 0x7f05006a; } public static final class drawable { public static final int notification_action_background = 0x7f060058; public static final int notification_bg = 0x7f060059; public static final int notification_bg_low = 0x7f06005a; public static final int notification_bg_low_normal = 0x7f06005b; public static final int notification_bg_low_pressed = 0x7f06005c; public static final int notification_bg_normal = 0x7f06005d; public static final int notification_bg_normal_pressed = 0x7f06005e; public static final int notification_icon_background = 0x7f06005f; public static final int notification_template_icon_bg = 0x7f060060; public static final int notification_template_icon_low_bg = 0x7f060061; public static final int notification_tile_bg = 0x7f060062; public static final int notify_panel_notification_icon_bg = 0x7f060063; } public static final class id { public static final int action_container = 0x7f07000d; public static final int action_divider = 0x7f07000f; public static final int action_image = 0x7f070010; public static final int action_text = 0x7f070016; public static final int actions = 0x7f070017; public static final int async = 0x7f07001f; public static final int blocking = 0x7f070022; public static final int bottom = 0x7f070023; public static final int chronometer = 0x7f07002a; public static final int end = 0x7f070038; public static final int forever = 0x7f07003f; public static final int icon = 0x7f070046; public static final int icon_group = 0x7f070047; public static final int info = 0x7f07004c; public static final int italic = 0x7f07004e; public static final int left = 0x7f07004f; public static final int line1 = 0x7f070050; public static final int line3 = 0x7f070051; public static final int none = 0x7f070058; public static final int normal = 0x7f070059; public static final int notification_background = 0x7f07005a; public static final int notification_main_column = 0x7f07005b; public static final int notification_main_column_container = 0x7f07005c; public static final int right = 0x7f070066; public static final int right_icon = 0x7f070067; public static final int right_side = 0x7f070068; public static final int start = 0x7f070084; public static final int tag_transition_group = 0x7f070088; public static final int tag_unhandled_key_event_manager = 0x7f070089; public static final int tag_unhandled_key_listeners = 0x7f07008a; public static final int text = 0x7f07008b; public static final int text2 = 0x7f07008c; public static final int time = 0x7f070091; public static final int title = 0x7f070092; public static final int top = 0x7f070095; } public static final class integer { public static final int status_bar_notification_info_maxnum = 0x7f080004; } public static final class layout { public static final int notification_action = 0x7f09001d; public static final int notification_action_tombstone = 0x7f09001e; public static final int notification_template_custom_big = 0x7f09001f; public static final int notification_template_icon_group = 0x7f090020; public static final int notification_template_part_chronometer = 0x7f090021; public static final int notification_template_part_time = 0x7f090022; } public static final class string { public static final int status_bar_notification_info_overflow = 0x7f0b002b; } public static final class style { public static final int TextAppearance_Compat_Notification = 0x7f0c00ec; public static final int TextAppearance_Compat_Notification_Info = 0x7f0c00ed; public static final int TextAppearance_Compat_Notification_Line2 = 0x7f0c00ee; public static final int TextAppearance_Compat_Notification_Time = 0x7f0c00ef; public static final int TextAppearance_Compat_Notification_Title = 0x7f0c00f0; public static final int Widget_Compat_NotificationActionContainer = 0x7f0c0158; public static final int Widget_Compat_NotificationActionText = 0x7f0c0159; public static final int Widget_Support_CoordinatorLayout = 0x7f0c015a; } public static final class styleable { public static final int[] ColorStateListItem = { 0x010101a5, 0x0101031f, 0x7f020028 }; public static final int ColorStateListItem_android_color = 0; public static final int ColorStateListItem_android_alpha = 1; public static final int ColorStateListItem_alpha = 2; public static final int[] CoordinatorLayout = { 0x7f020097, 0x7f020116 }; public static final int CoordinatorLayout_keylines = 0; public static final int CoordinatorLayout_statusBarBackground = 1; public static final int[] CoordinatorLayout_Layout = { 0x010100b3, 0x7f02009a, 0x7f02009b, 0x7f02009c, 0x7f0200c9, 0x7f0200d3, 0x7f0200d4 }; public static final int CoordinatorLayout_Layout_android_layout_gravity = 0; public static final int CoordinatorLayout_Layout_layout_anchor = 1; public static final int CoordinatorLayout_Layout_layout_anchorGravity = 2; public static final int CoordinatorLayout_Layout_layout_behavior = 3; public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 4; public static final int CoordinatorLayout_Layout_layout_insetEdge = 5; public static final int CoordinatorLayout_Layout_layout_keyline = 6; public static final int[] FontFamily = { 0x7f02007f, 0x7f020080, 0x7f020081, 0x7f020082, 0x7f020083, 0x7f020084 }; public static final int FontFamily_fontProviderAuthority = 0; public static final int FontFamily_fontProviderCerts = 1; public static final int FontFamily_fontProviderFetchStrategy = 2; public static final int FontFamily_fontProviderFetchTimeout = 3; public static final int FontFamily_fontProviderPackage = 4; public static final int FontFamily_fontProviderQuery = 5; public static final int[] FontFamilyFont = { 0x01010532, 0x01010533, 0x0101053f, 0x0101056f, 0x01010570, 0x7f02007d, 0x7f020085, 0x7f020086, 0x7f020087, 0x7f020149 }; public static final int FontFamilyFont_android_font = 0; public static final int FontFamilyFont_android_fontWeight = 1; public static final int FontFamilyFont_android_fontStyle = 2; public static final int FontFamilyFont_android_ttcIndex = 3; public static final int FontFamilyFont_android_fontVariationSettings = 4; public static final int FontFamilyFont_font = 5; public static final int FontFamilyFont_fontStyle = 6; public static final int FontFamilyFont_fontVariationSettings = 7; public static final int FontFamilyFont_fontWeight = 8; public static final int FontFamilyFont_ttcIndex = 9; public static final int[] GradientColor = { 0x0101019d, 0x0101019e, 0x010101a1, 0x010101a2, 0x010101a3, 0x010101a4, 0x01010201, 0x0101020b, 0x01010510, 0x01010511, 0x01010512, 0x01010513 }; public static final int GradientColor_android_startColor = 0; public static final int GradientColor_android_endColor = 1; public static final int GradientColor_android_type = 2; public static final int GradientColor_android_centerX = 3; public static final int GradientColor_android_centerY = 4; public static final int GradientColor_android_gradientRadius = 5; public static final int GradientColor_android_tileMode = 6; public static final int GradientColor_android_centerColor = 7; public static final int GradientColor_android_startX = 8; public static final int GradientColor_android_startY = 9; public static final int GradientColor_android_endX = 10; public static final int GradientColor_android_endY = 11; public static final int[] GradientColorItem = { 0x010101a5, 0x01010514 }; public static final int GradientColorItem_android_color = 0; public static final int GradientColorItem_android_offset = 1; } }
[ "nnichols2013@gmail.com" ]
nnichols2013@gmail.com
6580e31e2f3541a80de3e9cff8f3979e87aa2d04
801d6147780bf0e83ba1662478ce3e21f65addb1
/jira_project/src/main/java/com/eduard/service/ProjectServiceImpl.java
016e45280f8b353b9878eca2c92b9a574b02170e
[]
no_license
edward199/jira_project
ed7ff71d5545c755b8bad8e369b97fe2743cb3f8
a4d1d2bcdbc8d9b36eaacce92218d5d0172915cf
refs/heads/master
2022-12-26T04:01:53.554700
2019-06-28T12:44:27
2019-06-28T12:44:27
190,390,616
1
0
null
2022-12-16T00:35:51
2019-06-05T12:30:04
Java
UTF-8
Java
false
false
1,383
java
package com.eduard.service; import java.util.ArrayList; import java.util.List; import javax.transaction.Transactional; import org.dozer.DozerBeanMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.eduard.entity.Project; import com.eduard.entity.dto.ProjectDTO; import com.eduard.repository.ProjectRepository; @Service public class ProjectServiceImpl implements ProjectService { private ProjectRepository projectRepository; @Autowired public ProjectServiceImpl(ProjectRepository projectRepository) { this.projectRepository = projectRepository; } @Transactional @Override public ProjectDTO addProject(ProjectDTO projectDTO) { Project project = new DozerBeanMapper().map(projectDTO, Project.class); projectRepository.addProject(project); return projectDTO; } @Override public List<ProjectDTO> getProjects() { List<Project> projects = projectRepository.getProjects(); List<ProjectDTO> projectsDTO = new ArrayList<>(); for (Project project : projects) { projectsDTO.add(new DozerBeanMapper().map(project, ProjectDTO.class)); } return projectsDTO; } @Override public ProjectDTO getProjectByProjectKey(String projectKey) { Project project = projectRepository.getProjectByProjectKey(projectKey); return new DozerBeanMapper().map(project, ProjectDTO.class); } }
[ "eduard.venghiac@fortech.ro" ]
eduard.venghiac@fortech.ro
40f0bddc7c1f9fbcf159486c723b1cb249a0e61a
f67631102a9ace0156e09fad524ee4a61b1a6967
/spring-boot-quartz-demo/src/main/java/cn/raysonblog/quartz/config/druid/DruidConfig.java
ba6449797ad0e3abd772f45ca3b7ff6c97248d0c
[ "Apache-2.0" ]
permissive
g-smll/spring-boot-demo-all
04f0d474631c80c5a411cf678bcac7066a9be7af
4d4c00eededecad414e2b0b0b0ff5fd88e53334e
refs/heads/master
2022-04-02T06:57:40.979814
2020-01-20T09:31:56
2020-01-20T09:31:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,363
java
package cn.raysonblog.quartz.config.druid; import java.util.HashMap; import java.util.Map; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.boot.web.servlet.ServletRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.transaction.annotation.EnableTransactionManagement; import com.alibaba.druid.pool.DruidDataSource; import com.alibaba.druid.support.http.StatViewServlet; import com.alibaba.druid.support.http.WebStatFilter; import com.alibaba.druid.support.spring.stat.BeanTypeAutoProxyCreator; import com.alibaba.druid.support.spring.stat.DruidStatInterceptor; /** * Druid的DataResource配置类 * 凡是被Spring管理的类,实现接口 EnvironmentAware 重写方法 setEnvironment 可以在工程启动时, * 获取到系统环境变量和application配置文件中的变量。 还有一种方式是采用注解的方式获取 @value("${变量的key值}") * 获取application配置文件中的变量。 这里采用第一种要方便些 * <p>Title: DruidConfig</p> * <p>Description: </p> * <p>Company: </p> * * @author rayson * @version 1.0 * @date 2018-06-07 11:54 */ @Configuration public class DruidConfig { @Bean public ServletRegistrationBean druidServlet() { ServletRegistrationBean servletRegistrationBean = new ServletRegistrationBean(); servletRegistrationBean.setServlet(new StatViewServlet()); servletRegistrationBean.addUrlMappings("/druid/*"); Map<String, String> initParameters = new HashMap<String, String>(); // initParameters.put("loginUsername", "druid");// 用户名 // initParameters.put("loginPassword", "druid");// 密码 initParameters.put("resetEnable", "false");// 禁用HTML页面上的“Reset All”功能 initParameters.put("allow", "127.0.0.1"); // IP白名单 (没有配置或者为空,则允许所有访问) // initParameters.put("deny", "192.168.20.38");// IP黑名单 // (存在共同时,deny优先于allow) servletRegistrationBean.setInitParameters(initParameters); return servletRegistrationBean; } @Bean public FilterRegistrationBean filterRegistrationBean() { FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean(); filterRegistrationBean.setFilter(new WebStatFilter()); filterRegistrationBean.addUrlPatterns("/*"); filterRegistrationBean.addInitParameter("exclusions", "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*"); return filterRegistrationBean; } // 按照BeanId来拦截配置 用来bean的监控 @Bean(value = "druid-stat-interceptor") public DruidStatInterceptor DruidStatInterceptor() { DruidStatInterceptor druidStatInterceptor = new DruidStatInterceptor(); return druidStatInterceptor; } /** * druid数据库连接池监控 */ @Bean public BeanTypeAutoProxyCreator beanTypeAutoProxyCreator() { BeanTypeAutoProxyCreator beanTypeAutoProxyCreator = new BeanTypeAutoProxyCreator(); beanTypeAutoProxyCreator.setTargetBeanType(DruidDataSource.class); beanTypeAutoProxyCreator.setInterceptorNames("druid-stat-interceptor"); return beanTypeAutoProxyCreator; } }
[ "793514387@qq.com" ]
793514387@qq.com
e7cf65af27fd57ec34d2622c6bd16bfbc8cb66fb
c49f9acbc5eeaa033586e481c42aed38151fc237
/src/IODades/DataSource.java
8864f0868220de63c8f8fbc69ae014aeecf887ab
[]
no_license
Failon/gig
4507f2280c4b5eeaebd149a640a4ba08c83b7c79
2e41e74804d6d533631e14b72dff9b9602827be8
refs/heads/master
2020-03-31T02:28:38.782217
2015-05-13T20:13:13
2015-05-13T20:13:13
32,092,902
0
0
null
null
null
null
UTF-8
Java
false
false
294
java
package IODades; import java.util.ArrayList; public interface DataSource { public int open ( String source, int mode ); public int close ( String source ); public int importdades ( ArrayList dades, String source ); public int exportdades ( ArrayList dades, String source, int mode ); }
[ "Amador.676@gmail.com" ]
Amador.676@gmail.com
6497cf39f1eb7ce9e80b2834d004888ad7475e85
b8532c6ba04dd9f87fc21000b912c3b980f5e8c5
/app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r/com/bumptech/glide/R.java
73309ae73feee97d34de9e19c967fd24984e50bc
[]
no_license
Devisma/devisma
2f88ae44d007946a366aea6293cd114c4853c021
918d45745ba08da79c0c40f18ad9d6736afa06c5
refs/heads/master
2020-04-03T14:18:20.132088
2018-10-30T03:12:59
2018-10-30T03:12:59
155,317,263
0
0
null
null
null
null
UTF-8
Java
false
false
10,595
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package com.bumptech.glide; public final class R { private R() {} public static final class attr { private attr() {} public static final int coordinatorLayoutStyle = 0x7f0300a4; public static final int font = 0x7f0300d7; public static final int fontProviderAuthority = 0x7f0300d9; public static final int fontProviderCerts = 0x7f0300da; public static final int fontProviderFetchStrategy = 0x7f0300db; public static final int fontProviderFetchTimeout = 0x7f0300dc; public static final int fontProviderPackage = 0x7f0300dd; public static final int fontProviderQuery = 0x7f0300de; public static final int fontStyle = 0x7f0300df; public static final int fontWeight = 0x7f0300e1; public static final int keylines = 0x7f03010d; public static final int layout_anchor = 0x7f030112; public static final int layout_anchorGravity = 0x7f030113; public static final int layout_behavior = 0x7f030114; public static final int layout_dodgeInsetEdges = 0x7f030140; public static final int layout_insetEdge = 0x7f030149; public static final int layout_keyline = 0x7f03014a; public static final int statusBarBackground = 0x7f0301a6; } public static final class bool { private bool() {} public static final int abc_action_bar_embed_tabs = 0x7f040000; } public static final class color { private color() {} public static final int notification_action_color_filter = 0x7f05006a; public static final int notification_icon_bg_color = 0x7f05006b; public static final int ripple_material_light = 0x7f050075; public static final int secondary_text_default_material_light = 0x7f050077; } public static final class dimen { private dimen() {} public static final int compat_button_inset_horizontal_material = 0x7f06004e; public static final int compat_button_inset_vertical_material = 0x7f06004f; public static final int compat_button_padding_horizontal_material = 0x7f060050; public static final int compat_button_padding_vertical_material = 0x7f060051; public static final int compat_control_corner_material = 0x7f060052; public static final int notification_action_icon_size = 0x7f0600c0; public static final int notification_action_text_size = 0x7f0600c1; public static final int notification_big_circle_margin = 0x7f0600c2; public static final int notification_content_margin_start = 0x7f0600c3; public static final int notification_large_icon_height = 0x7f0600c4; public static final int notification_large_icon_width = 0x7f0600c5; public static final int notification_main_column_padding_top = 0x7f0600c6; public static final int notification_media_narrow_margin = 0x7f0600c7; public static final int notification_right_icon_size = 0x7f0600c8; public static final int notification_right_side_padding_top = 0x7f0600c9; public static final int notification_small_icon_background_padding = 0x7f0600ca; public static final int notification_small_icon_size_as_large = 0x7f0600cb; public static final int notification_subtext_size = 0x7f0600cc; public static final int notification_top_pad = 0x7f0600cd; public static final int notification_top_pad_large_text = 0x7f0600ce; } public static final class drawable { private drawable() {} public static final int notification_action_background = 0x7f070070; public static final int notification_bg = 0x7f070071; public static final int notification_bg_low = 0x7f070072; public static final int notification_bg_low_normal = 0x7f070073; public static final int notification_bg_low_pressed = 0x7f070074; public static final int notification_bg_normal = 0x7f070075; public static final int notification_bg_normal_pressed = 0x7f070076; public static final int notification_icon_background = 0x7f070077; public static final int notification_template_icon_bg = 0x7f070078; public static final int notification_template_icon_low_bg = 0x7f070079; public static final int notification_tile_bg = 0x7f07007a; public static final int notify_panel_notification_icon_bg = 0x7f07007b; } public static final class id { private id() {} public static final int action_container = 0x7f08000d; public static final int action_divider = 0x7f08000f; public static final int action_image = 0x7f080010; public static final int action_text = 0x7f080016; public static final int actions = 0x7f080017; public static final int async = 0x7f08001d; public static final int blocking = 0x7f080021; public static final int bottom = 0x7f080022; public static final int chronometer = 0x7f08002d; public static final int end = 0x7f080042; public static final int forever = 0x7f08004d; public static final int glide_custom_view_target_tag = 0x7f08004f; public static final int icon = 0x7f080055; public static final int icon_group = 0x7f080056; public static final int info = 0x7f08005b; public static final int italic = 0x7f08005d; public static final int left = 0x7f080061; public static final int line1 = 0x7f080062; public static final int line3 = 0x7f080063; public static final int none = 0x7f08006f; public static final int normal = 0x7f080070; public static final int notification_background = 0x7f080071; public static final int notification_main_column = 0x7f080072; public static final int notification_main_column_container = 0x7f080073; public static final int right = 0x7f080080; public static final int right_icon = 0x7f080081; public static final int right_side = 0x7f080082; public static final int start = 0x7f0800a9; public static final int tag_transition_group = 0x7f0800ae; public static final int text = 0x7f0800b1; public static final int text2 = 0x7f0800b2; public static final int time = 0x7f0800bb; public static final int title = 0x7f0800bc; public static final int top = 0x7f0800bf; } public static final class integer { private integer() {} public static final int status_bar_notification_info_maxnum = 0x7f09000e; } public static final class layout { private layout() {} public static final int notification_action = 0x7f0b002f; public static final int notification_action_tombstone = 0x7f0b0030; public static final int notification_template_custom_big = 0x7f0b0031; public static final int notification_template_icon_group = 0x7f0b0032; public static final int notification_template_part_chronometer = 0x7f0b0033; public static final int notification_template_part_time = 0x7f0b0034; } public static final class string { private string() {} public static final int status_bar_notification_info_overflow = 0x7f0d0036; } public static final class style { private style() {} public static final int TextAppearance_Compat_Notification = 0x7f0e0115; public static final int TextAppearance_Compat_Notification_Info = 0x7f0e0116; public static final int TextAppearance_Compat_Notification_Line2 = 0x7f0e0117; public static final int TextAppearance_Compat_Notification_Time = 0x7f0e0118; public static final int TextAppearance_Compat_Notification_Title = 0x7f0e0119; public static final int Widget_Compat_NotificationActionContainer = 0x7f0e01bf; public static final int Widget_Compat_NotificationActionText = 0x7f0e01c0; public static final int Widget_Support_CoordinatorLayout = 0x7f0e01ef; } public static final class styleable { private styleable() {} public static final int[] CoordinatorLayout = { 0x7f03010d, 0x7f0301a6 }; public static final int CoordinatorLayout_keylines = 0; public static final int CoordinatorLayout_statusBarBackground = 1; public static final int[] CoordinatorLayout_Layout = { 0x10100b3, 0x7f030112, 0x7f030113, 0x7f030114, 0x7f030140, 0x7f030149, 0x7f03014a }; public static final int CoordinatorLayout_Layout_android_layout_gravity = 0; public static final int CoordinatorLayout_Layout_layout_anchor = 1; public static final int CoordinatorLayout_Layout_layout_anchorGravity = 2; public static final int CoordinatorLayout_Layout_layout_behavior = 3; public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 4; public static final int CoordinatorLayout_Layout_layout_insetEdge = 5; public static final int CoordinatorLayout_Layout_layout_keyline = 6; public static final int[] FontFamily = { 0x7f0300d9, 0x7f0300da, 0x7f0300db, 0x7f0300dc, 0x7f0300dd, 0x7f0300de }; public static final int FontFamily_fontProviderAuthority = 0; public static final int FontFamily_fontProviderCerts = 1; public static final int FontFamily_fontProviderFetchStrategy = 2; public static final int FontFamily_fontProviderFetchTimeout = 3; public static final int FontFamily_fontProviderPackage = 4; public static final int FontFamily_fontProviderQuery = 5; public static final int[] FontFamilyFont = { 0x1010532, 0x1010533, 0x101053f, 0x101056f, 0x1010570, 0x7f0300d7, 0x7f0300df, 0x7f0300e0, 0x7f0300e1, 0x7f030208 }; public static final int FontFamilyFont_android_font = 0; public static final int FontFamilyFont_android_fontWeight = 1; public static final int FontFamilyFont_android_fontStyle = 2; public static final int FontFamilyFont_android_ttcIndex = 3; public static final int FontFamilyFont_android_fontVariationSettings = 4; public static final int FontFamilyFont_font = 5; public static final int FontFamilyFont_fontStyle = 6; public static final int FontFamilyFont_fontVariationSettings = 7; public static final int FontFamilyFont_fontWeight = 8; public static final int FontFamilyFont_ttcIndex = 9; } }
[ "devisma.fitriana@students.amikom.ac.id" ]
devisma.fitriana@students.amikom.ac.id
bb5c516c9c680185332aab81307d3b7723348560
74ff74f653f5780171160c5551552f2017f175e7
/p12-springboot-muti-jdbcTemplate/src/main/java/com/yanger/jdbcTemplate/util/JdbcTemplateConfig.java
2ef9bc39ce10a312559f80931c2a075f888466ff
[]
no_license
guopengen/springboot-project
648b6e99f66c904823ca7eb90d10754e6f6e4429
094dec0020a81c6b8d941c9b2ee5674a2729ee1b
refs/heads/master
2020-11-28T15:27:28.267499
2019-12-31T02:21:55
2019-12-31T02:21:55
229,856,984
0
1
null
2019-12-24T02:39:08
2019-12-24T02:39:08
null
UTF-8
Java
false
false
1,271
java
package com.yanger.jdbcTemplate.util; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.datasource.DataSourceTransactionManager; import org.springframework.transaction.PlatformTransactionManager; import javax.sql.DataSource; @Configuration public class JdbcTemplateConfig { @Bean JdbcTemplate masterJdbcTemplate(@Qualifier("masterDataSource")DataSource masterDataSource){ return new JdbcTemplate(masterDataSource); } @Bean JdbcTemplate slaveJdbcTemplate(@Qualifier("slaveDataSource")DataSource slaveDataSource){ return new JdbcTemplate(slaveDataSource); } // 事务管理器 @Bean public PlatformTransactionManager masterTransactionManager(@Qualifier("masterDataSource")DataSource masterDataSource) { return new DataSourceTransactionManager(masterDataSource); } // 事务管理器 @Bean public PlatformTransactionManager slaveTransactionManager(@Qualifier("slaveDataSource")DataSource slaveDataSource) { return new DataSourceTransactionManager(slaveDataSource); } }
[ "550799932@qq.com" ]
550799932@qq.com
2ca1b291f27910a0519e629d9cfc789f51e8bdc2
a390f9a26470beca7f0e17f58ab3df7fa6f1f0ef
/rabbitmq-basics/consumer/src/main/java/com/youdushufang/rabbitmq/consumer/DelayedConsumer.java
a5c0b93889380af728eee897095a0138b33a5349
[]
no_license
yiwanzhutourou/learning
f2a53573ea57d929f71b75e7d29e049a276d08e0
e5ba245cf494a68bfd98988516611db00bcec536
refs/heads/master
2022-11-19T03:15:04.504642
2019-12-23T06:19:01
2019-12-23T06:19:01
217,690,281
0
0
null
2022-11-15T23:34:23
2019-10-26T10:06:19
Java
UTF-8
Java
false
false
3,963
java
package com.youdushufang.rabbitmq.consumer; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.ConnectionFactory; import com.rabbitmq.client.DeliverCallback; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeoutException; class DelayedConsumer { // producer 实际发送消息的 exchange private static final String DELAYED_EXCHANGE_NAME = "delayed_exchange_10_s"; // 绑定到 delayed_exchange 的队列,没有任何消费者,设置 message-ttl private static final String DELAYED_QUEUE_NAME = "delayed_queue_10_s"; // delayed_queue 设置的 DLX,本身是一个 topic exchange private static final String DLX_NAME = "some_topic_exchange"; // 最终保存消息的 queue,绑定到 DLX private static final String REAL_QUEUE_NAME = "some_topic_queue"; private static volatile DelayedConsumer instance; private DelayedConsumer() { } static DelayedConsumer getInstance() { if (instance == null) { synchronized (DelayedConsumer.class) { if (instance == null) { instance = new DelayedConsumer(); } } } return instance; } void consume() throws IOException, TimeoutException { ConnectionFactory factory = new ConnectionFactory(); factory.setHost("localhost"); Connection connection = factory.newConnection(); Channel channel = connection.createChannel(); // 申明一个 direct exchange,该 exchange 唯一绑定了一个设置了 message-ttl 的 queue // 这里似乎也可以直接利用 RabbitMQ 服务自带的无名 exchange channel.exchangeDeclare(DELAYED_EXCHANGE_NAME, "direct"); // 申明 DLX 为一个 topic exchange channel.exchangeDeclare(DLX_NAME, "topic"); // 队列的 TTL 可以通过两种方法设置: // 1. 设置 policy,message-ttl 属性 // 2. 申明队列时设置 x-message-ttl 属性 // 官网文档推荐的是第一种方法,好处是不需要删除对应的队列就可以修改其应用的策略 // 采用申明的方法申明队列的 TTL,一旦业务需要修改 TTL 的值,就不得不删除原有 // 队列,且需要修改业务代码(队列不可以重复申明不同的属性) // 这里为了方便采用的是第二种方法,直接在代码里申明队列的 TTL 为 10 秒 Map<String, Object> args = new HashMap<>(); args.put("x-message-ttl", 10000); args.put("x-dead-letter-exchange", DLX_NAME); // 设置 x-dead-letter-routing-key,否则消息进入 DLX 将仍按照消息自身的 routing key 路由 // 这里感觉有点不灵活 args.put("x-dead-letter-routing-key", "some.animal.group"); channel.queueDeclare(DELAYED_QUEUE_NAME, false, false, false, args); // 将队列绑定到 exchange,routing key 直接用队列的名字 channel.queueBind(DELAYED_QUEUE_NAME, DELAYED_EXCHANGE_NAME, DELAYED_QUEUE_NAME); // 申明实际存放消息的"延时队列",并绑定到 DLX channel.queueDeclare(REAL_QUEUE_NAME, true, false, false, null); System.out.println(" [*] Waiting for messages. To exit press CTRL+C"); // 一个 topic 为 *.animal.* 的 queue channel.queueBind(REAL_QUEUE_NAME, DLX_NAME, "*.animal.*"); DeliverCallback deliverCallback = (consumerTag, delivery) -> { String message = new String(delivery.getBody(), StandardCharsets.UTF_8); System.out.println(" [x] Received '" + message + "', time: " + System.currentTimeMillis() / 1000L); }; channel.basicConsume(REAL_QUEUE_NAME, true, deliverCallback, consumerTag -> { }); } }
[ "cuiyis@163.com" ]
cuiyis@163.com