blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 7
390
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
35
| license_type
stringclasses 2
values | repo_name
stringlengths 6
132
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringclasses 539
values | visit_date
timestamp[us]date 2016-08-02 21:09:20
2023-09-06 10:10:07
| revision_date
timestamp[us]date 1990-01-30 01:55:47
2023-09-05 21:45:37
| committer_date
timestamp[us]date 2003-07-12 18:48:29
2023-09-05 21:45:37
| github_id
int64 7.28k
684M
⌀ | star_events_count
int64 0
77.7k
| fork_events_count
int64 0
48k
| gha_license_id
stringclasses 13
values | gha_event_created_at
timestamp[us]date 2012-06-11 04:05:37
2023-09-14 21:59:18
⌀ | gha_created_at
timestamp[us]date 2008-05-22 07:58:19
2023-08-28 02:39:21
⌀ | gha_language
stringclasses 62
values | src_encoding
stringclasses 26
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 2
classes | length_bytes
int64 128
12.8k
| extension
stringclasses 11
values | content
stringlengths 128
8.19k
| authors
listlengths 1
1
| author_id
stringlengths 1
79
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
245aaa38546f571cd46d86deafcb21ca3d4606c3
|
d585701909027e3a1d33c303986675ca3dfcd954
|
/src/main/java/org/jugbd/meetup/config/WebConfigurer.java
|
d5c867ab7f8964a83850e7bff7a6b54a012c7446
|
[] |
no_license
|
rokon12/jhipsterSampleApplication
|
b363ad061cb84558946e2fbe554ea587179496d6
|
bec9e3a549430c06f3af6352884e7ffd24fd8235
|
refs/heads/master
| 2021-07-07T04:19:00.392751
| 2017-10-05T16:10:16
| 2017-10-05T16:10:16
| 105,911,731
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,954
|
java
|
package org.jugbd.meetup.config;
import io.github.jhipster.config.JHipsterConstants;
import io.github.jhipster.config.JHipsterProperties;
import io.github.jhipster.web.filter.CachingHttpHeadersFilter;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.servlet.InstrumentedFilter;
import com.codahale.metrics.servlets.MetricsServlet;
import com.hazelcast.core.HazelcastInstance;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.embedded.*;
import org.springframework.boot.context.embedded.undertow.UndertowEmbeddedServletContainerFactory;
import io.undertow.UndertowOptions;
import org.springframework.boot.web.servlet.ServletContextInitializer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;
import java.io.File;
import java.nio.file.Paths;
import java.util.*;
import javax.servlet.*;
/**
* Configuration of web application with Servlet 3.0 APIs.
*/
@Configuration
public class WebConfigurer implements ServletContextInitializer, EmbeddedServletContainerCustomizer {
private final Logger log = LoggerFactory.getLogger(WebConfigurer.class);
private final Environment env;
private final JHipsterProperties jHipsterProperties;
private final HazelcastInstance hazelcastInstance;
private MetricRegistry metricRegistry;
public WebConfigurer(Environment env, JHipsterProperties jHipsterProperties, HazelcastInstance hazelcastInstance) {
this.env = env;
this.jHipsterProperties = jHipsterProperties;
this.hazelcastInstance = hazelcastInstance;
}
@Override
public void onStartup(ServletContext servletContext) throws ServletException {
if (env.getActiveProfiles().length != 0) {
log.info("Web application configuration, using profiles: {}", (Object[]) env.getActiveProfiles());
}
EnumSet<DispatcherType> disps = EnumSet.of(DispatcherType.REQUEST, DispatcherType.FORWARD, DispatcherType.ASYNC);
initMetrics(servletContext, disps);
if (env.acceptsProfiles(JHipsterConstants.SPRING_PROFILE_PRODUCTION)) {
initCachingHttpHeadersFilter(servletContext, disps);
}
if (env.acceptsProfiles(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)) {
initH2Console(servletContext);
}
log.info("Web application fully configured");
}
/**
* Customize the Servlet engine: Mime types, the document root, the cache.
*/
@Override
public void customize(ConfigurableEmbeddedServletContainer container) {
MimeMappings mappings = new MimeMappings(MimeMappings.DEFAULT);
// IE issue, see https://github.com/jhipster/generator-jhipster/pull/711
mappings.add("html", "text/html;charset=utf-8");
// CloudFoundry issue, see https://github.com/cloudfoundry/gorouter/issues/64
mappings.add("json", "text/html;charset=utf-8");
container.setMimeMappings(mappings);
// When running in an IDE or with ./gradlew bootRun, set location of the static web assets.
setLocationForStaticAssets(container);
/*
* Enable HTTP/2 for Undertow - https://twitter.com/ankinson/status/829256167700492288
* HTTP/2 requires HTTPS, so HTTP requests will fallback to HTTP/1.1.
* See the JHipsterProperties class and your application-*.yml configuration files
* for more information.
*/
if (jHipsterProperties.getHttp().getVersion().equals(JHipsterProperties.Http.Version.V_2_0) &&
container instanceof UndertowEmbeddedServletContainerFactory) {
((UndertowEmbeddedServletContainerFactory) container)
.addBuilderCustomizers(builder ->
builder.setServerOption(UndertowOptions.ENABLE_HTTP2, true));
}
}
private void setLocationForStaticAssets(ConfigurableEmbeddedServletContainer container) {
File root;
String prefixPath = resolvePathPrefix();
root = new File(prefixPath + "build/www/");
if (root.exists() && root.isDirectory()) {
container.setDocumentRoot(root);
}
}
/**
* Resolve path prefix to static resources.
*/
private String resolvePathPrefix() {
String fullExecutablePath = this.getClass().getResource("").getPath();
String rootPath = Paths.get(".").toUri().normalize().getPath();
String extractedPath = fullExecutablePath.replace(rootPath, "");
int extractionEndIndex = extractedPath.indexOf("build/");
if(extractionEndIndex <= 0) {
return "";
}
return extractedPath.substring(0, extractionEndIndex);
}
/**
* Initializes the caching HTTP Headers Filter.
*/
private void initCachingHttpHeadersFilter(ServletContext servletContext,
EnumSet<DispatcherType> disps) {
log.debug("Registering Caching HTTP Headers Filter");
FilterRegistration.Dynamic cachingHttpHeadersFilter =
servletContext.addFilter("cachingHttpHeadersFilter",
new CachingHttpHeadersFilter(jHipsterProperties));
cachingHttpHeadersFilter.addMappingForUrlPatterns(disps, true, "/content/*");
cachingHttpHeadersFilter.addMappingForUrlPatterns(disps, true, "/app/*");
cachingHttpHeadersFilter.setAsyncSupported(true);
}
/**
* Initializes Metrics.
*/
private void initMetrics(ServletContext servletContext, EnumSet<DispatcherType> disps) {
log.debug("Initializing Metrics registries");
servletContext.setAttribute(InstrumentedFilter.REGISTRY_ATTRIBUTE,
metricRegistry);
servletContext.setAttribute(MetricsServlet.METRICS_REGISTRY,
metricRegistry);
log.debug("Registering Metrics Filter");
FilterRegistration.Dynamic metricsFilter = servletContext.addFilter("webappMetricsFilter",
new InstrumentedFilter());
metricsFilter.addMappingForUrlPatterns(disps, true, "/*");
metricsFilter.setAsyncSupported(true);
log.debug("Registering Metrics Servlet");
ServletRegistration.Dynamic metricsAdminServlet =
servletContext.addServlet("metricsServlet", new MetricsServlet());
metricsAdminServlet.addMapping("/management/metrics/*");
metricsAdminServlet.setAsyncSupported(true);
metricsAdminServlet.setLoadOnStartup(2);
}
@Bean
public CorsFilter corsFilter() {
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
CorsConfiguration config = jHipsterProperties.getCors();
if (config.getAllowedOrigins() != null && !config.getAllowedOrigins().isEmpty()) {
log.debug("Registering CORS filter");
source.registerCorsConfiguration("/api/**", config);
source.registerCorsConfiguration("/v2/api-docs", config);
}
return new CorsFilter(source);
}
/**
* Initializes H2 console.
*/
private void initH2Console(ServletContext servletContext) {
log.debug("Initialize H2 console");
ServletRegistration.Dynamic h2ConsoleServlet = servletContext.addServlet("H2Console", new org.h2.server.web.WebServlet());
h2ConsoleServlet.addMapping("/h2-console/*");
h2ConsoleServlet.setInitParameter("-properties", "src/main/resources/");
h2ConsoleServlet.setLoadOnStartup(1);
}
@Autowired(required = false)
public void setMetricRegistry(MetricRegistry metricRegistry) {
this.metricRegistry = metricRegistry;
}
}
|
[
"jhipster-bot@users.noreply.github.com"
] |
jhipster-bot@users.noreply.github.com
|
c61eb7aeb8053a69fd1d7ee567d88b194a52941e
|
9f68540857f4233e06b9a9bdaa2f6a186cf4f583
|
/tests/robotests/src/com/android/settings/support/SupportPreferenceControllerTest.java
|
fd084486fc584d1499f6885da490f4f2a3a1efda
|
[
"Apache-2.0"
] |
permissive
|
Ankits-lab/packages_apps_Settings
|
142dc865ff5ba0a5502b36fc4176f096231c3181
|
82cbefb9817e5b244bb50fdaffbe0f90381f269c
|
refs/heads/main
| 2023-01-12T04:07:58.863359
| 2020-11-14T09:36:09
| 2020-11-14T09:36:09
| 312,785,971
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,751
|
java
|
/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.settings.support;
import static com.android.settings.core.BasePreferenceController.AVAILABLE;
import static com.android.settings.core.BasePreferenceController.UNSUPPORTED_ON_DEVICE;
import static com.google.common.truth.Truth.assertThat;
import static org.mockito.Mockito.verify;
import android.app.Activity;
import androidx.preference.Preference;
import com.android.settings.testutils.FakeFeatureFactory;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.Robolectric;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.util.ReflectionHelpers;
@RunWith(RobolectricTestRunner.class)
public class SupportPreferenceControllerTest {
private Activity mActivity;
private FakeFeatureFactory mFeatureFactory;
private Preference mPreference;
@Before
public void setUp() {
mActivity = Robolectric.setupActivity(Activity.class);
mFeatureFactory = FakeFeatureFactory.setupForTest();
mPreference = new Preference(mActivity);
mPreference.setKey("test_key");
}
@Test
public void getAvailability_noSupport_unavailable() {
ReflectionHelpers.setField(mFeatureFactory, "supportFeatureProvider", null);
assertThat(new SupportPreferenceController(mActivity, "test_key").getAvailabilityStatus())
.isEqualTo(UNSUPPORTED_ON_DEVICE);
}
@Test
public void getAvailability_hasSupport_available() {
assertThat(new SupportPreferenceController(mActivity, "test_key").getAvailabilityStatus())
.isEqualTo(AVAILABLE);
}
@Test
public void handlePreferenceTreeClick_shouldLaunchSupport() {
final SupportPreferenceController controller = new SupportPreferenceController(mActivity,
mPreference.getKey());
controller.setActivity(mActivity);
assertThat(controller.handlePreferenceTreeClick(mPreference)).isTrue();
verify(mFeatureFactory.supportFeatureProvider).startSupport(mActivity);
}
}
|
[
"keneankit01@gmail.com"
] |
keneankit01@gmail.com
|
e2202f59631a18dbd737df6f9e13096c20613df8
|
2e743d39b9928e352f1a8c7ecc33bf7c9f7481fb
|
/AE-Chat/src/org/typezero/chatserver/network/aion/ClientPacketHandler.java
|
855aa137f3c7bae8a4d708ecb46b9e4f8cd6ce13
|
[] |
no_license
|
webdes27/AionTypeZero
|
40461b3b99ae7ca229735889277e62eed4c5db7e
|
ff234a0a515c1155f18e61e5b5ba2afad7dfd8c9
|
refs/heads/master
| 2021-05-30T12:14:08.672390
| 2016-01-29T13:54:32
| 2016-01-29T13:54:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,229
|
java
|
/**
* This file is part of Aion-Lightning <aion-lightning.org>.
* <p/>
* Aion-Lightning is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
* <p/>
* Aion-Lightning is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. *
* <p/>
* You should have received a copy of the GNU General Public License
* along with Aion-Lightning.
* If not, see <http://www.gnu.org/licenses/>.
* <p/>
* <p/>
* Credits goes to all Open Source Core Developer Groups listed below
* Please do not change here something, ragarding the developer credits, except the "developed by XXXX".
* Even if you edit a lot of files in this source, you still have no rights to call it as "your Core".
* Everybody knows that this Emulator Core was developed by Aion Lightning
*
* @-Aion-Unique-
* @-Aion-Lightning
* @Aion-Engine
* @Aion-Extreme
* @Aion-NextGen
* @Aion-Core Dev.
*/
package org.typezero.chatserver.network.aion;
import org.jboss.netty.buffer.ChannelBuffer;
import org.typezero.chatserver.common.netty.AbstractPacketHandler;
import org.typezero.chatserver.network.aion.clientpackets.CM_CHANNEL_MESSAGE;
import org.typezero.chatserver.network.aion.clientpackets.CM_CHANNEL_REQUEST;
import org.typezero.chatserver.network.aion.clientpackets.CM_CHAT_INI;
import org.typezero.chatserver.network.aion.clientpackets.CM_PLAYER_AUTH;
import org.typezero.chatserver.network.netty.handler.ClientChannelHandler;
import org.typezero.chatserver.network.netty.handler.ClientChannelHandler.State;
import org.typezero.chatserver.service.BroadcastService;
import org.typezero.chatserver.service.ChatService;
/**
* @author ATracer
*/
public class ClientPacketHandler extends AbstractPacketHandler {
private BroadcastService broadcastService = BroadcastService.getInstance();
private ChatService chatService = ChatService.getInstance();
/**
* Reads one packet from ChannelBuffer
*
* @param buf
* @param channelHandler
* @return AbstractClientPacket
*/
public AbstractClientPacket handle(ChannelBuffer buf, ClientChannelHandler channelHandler) {
byte opCode = buf.readByte();
State state = channelHandler.getState();
AbstractClientPacket clientPacket = null;
switch (state) {
case CONNECTED:
switch (opCode) {
case 0x30:
clientPacket = new CM_CHAT_INI(buf, channelHandler, chatService);
break;
case 0x05:
clientPacket = new CM_PLAYER_AUTH(buf, channelHandler, chatService);
break;
default:
// unknownPacket(opCode, state.toString());
}
break;
case AUTHED:
switch (opCode) {
case 0x10:
clientPacket = new CM_CHANNEL_REQUEST(buf, channelHandler, chatService);
break;
case 0x18:
clientPacket = new CM_CHANNEL_MESSAGE(buf, channelHandler, broadcastService);
default:
// unknownPacket(opCode, state.toString());
}
break;
}
return clientPacket;
}
}
|
[
"game.fanpage@gmail.com"
] |
game.fanpage@gmail.com
|
564069658cbfe1ff665bb4bf717a36488f1dec50
|
7d6a09a6bcaac234a44620f837b443bcaffe2125
|
/src/oop/abstraction/Car.java
|
37f878a1eee688e4c0d4c51da16cfd4863f0d333
|
[] |
no_license
|
DeepCodingAI/June2020CoreJavaOOP
|
9d8fa15df09d61ea00c4b18f5e4a34aabc11a04a
|
f81a7fd5b5d4a02a0189f09b903bc3974b8329e0
|
refs/heads/master
| 2022-11-06T01:44:12.038544
| 2020-06-19T02:42:36
| 2020-06-19T02:42:36
| 272,735,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 203
|
java
|
package oop.abstraction;
public interface Car {
public abstract void shape();
public void start();
public void stop();
public static void wheel() {
System.out.println("run on 4 wheel");
}
}
|
[
"rahmanww@gmail.com"
] |
rahmanww@gmail.com
|
4ffe872a5d617eec09a6631c26dc5c1d004b1f04
|
377e5e05fb9c6c8ed90ad9980565c00605f2542b
|
/bin/ext-addon/commerceorgsamplesaddon/src/de/hybris/platform/commerceorgsamplesaddon/CommerceorgsamplesaddonStandalone.java
|
ad4d7dab4d5cfbb96e667bf51b51ce9afbf49237
|
[] |
no_license
|
automaticinfotech/HybrisProject
|
c22b13db7863e1e80ccc29774f43e5c32e41e519
|
fc12e2890c569e45b97974d2f20a8cbe92b6d97f
|
refs/heads/master
| 2021-07-20T18:41:04.727081
| 2017-10-30T13:24:11
| 2017-10-30T13:24:11
| 108,957,448
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,854
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 SAP SE or an SAP affiliate company.
* All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with SAP.
*/
package de.hybris.platform.commerceorgsamplesaddon;
import de.hybris.platform.core.Registry;
import de.hybris.platform.jalo.JaloSession;
import de.hybris.platform.util.RedeployUtilities;
import de.hybris.platform.util.Utilities;
/**
* Demonstration of how to write a standalone application that can be run directly from within eclipse or from the
* commandline.<br>
* To run this from commandline, just use the following command:<br>
* <code>
* java -jar bootstrap/bin/ybootstrap.jar "new de.hybris.platform.commerceorgsamplesaddon.CommerceorgsamplesaddonStandalone().run();"
* </code> From eclipse, just run as Java Application. Note that you maybe need to add all other projects like
* ext-commerce, ext-pim to the Launch configuration classpath.
*/
public class CommerceorgsamplesaddonStandalone
{
/**
* Main class to be able to run it directly as a java program.
*
* @param args
* the arguments from commandline
*/
public static void main(final String[] args)
{
new CommerceorgsamplesaddonStandalone().run();
}
public void run()
{
Registry.activateStandaloneMode();
Registry.activateMasterTenant();
final JaloSession jaloSession = JaloSession.getCurrentSession();
System.out.println("Session ID: " + jaloSession.getSessionID()); //NOPMD
System.out.println("User: " + jaloSession.getUser()); //NOPMD
Utilities.printAppInfo();
RedeployUtilities.shutdown();
}
}
|
[
"santosh.kshirsagar@automaticinfotech.com"
] |
santosh.kshirsagar@automaticinfotech.com
|
acfcf958f1c882d85da707312875e229e75d1ce0
|
b4814bfedb86a4b6c636b2e801e396c1da0f81c7
|
/mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/mp/TestMissionExport.java
|
384ec54ce9211de6c32e6ce308f36f9b729839d1
|
[
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
sofwerx/OSUS-R
|
424dec40db77c58c84ed2f077310c097fae3430f
|
2be47821355573149842e1dd0d8bbd75326da8a7
|
refs/heads/master
| 2020-04-09T00:38:55.382392
| 2018-12-10T18:58:29
| 2018-12-10T18:58:29
| 159,875,746
| 0
| 0
|
NOASSERTION
| 2018-11-30T20:34:45
| 2018-11-30T20:34:45
| null |
UTF-8
|
Java
| false
| false
| 2,934
|
java
|
//==============================================================================
// This software is part of the Open Standard for Unattended Sensors (OSUS)
// reference implementation (OSUS-R).
//
// To the extent possible under law, the author(s) have dedicated all copyright
// and related and neighboring rights to this software to the public domain
// worldwide. This software is distributed without any warranty.
//
// You should have received a copy of the CC0 Public Domain Dedication along
// with this software. If not, see
// <http://creativecommons.org/publicdomain/zero/1.0/>.
//==============================================================================
package mil.dod.th.ose.gui.webapp.mp;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.mockito.Mockito.*;
import java.io.IOException;
import java.io.InputStream;
import javax.xml.bind.MarshalException;
import org.junit.Before;
import org.junit.Test;
import mil.dod.th.core.mp.TemplateProgramManager;
import mil.dod.th.core.mp.model.MissionProgramTemplate;
import mil.dod.th.core.xml.XmlMarshalService;
/**
* Test class for {@link MissionExport}.
*
* @author cweisenborn
*/
public class TestMissionExport
{
private MissionExport m_SUT;
private TemplateProgramManager m_TemplateProgramManager;
private XmlMarshalService m_XMLMarshalService;
@Before
public void setup()
{
m_TemplateProgramManager = mock(TemplateProgramManager.class);
m_XMLMarshalService = mock(XmlMarshalService.class);
m_SUT = new MissionExport();
m_SUT.setTemplateProgramManager(m_TemplateProgramManager);
m_SUT.setXMLMarshalService(m_XMLMarshalService);
}
/**
* Test the handleMissionExport method.
* Verify that the information stored within the download file is correct after being set by the handleMissionExport
* method.
*/
@Test
public void testHandleMissionExport() throws MarshalException, IOException
{
String missionName = "TestMission";
byte[] testArr = {100, 101, 102};
MissionProgramTemplate testTemp = mock(MissionProgramTemplate.class);
when(m_TemplateProgramManager.getTemplate(missionName)).thenReturn(testTemp);
when(m_XMLMarshalService.createXmlByteArray(testTemp, true)).thenReturn(testArr);
m_SUT.handleExportMission(missionName);
//Verify that the exporting mission's name is correct.
assertThat(m_SUT.getDownloadFile().getName(), is(missionName + ".xml"));
int readNum;
int index = 0;
InputStream is = m_SUT.getDownloadFile().getStream();
//Verify the information stored within the streamed content is correct.
while ((readNum = is.read()) != -1)
{
assertThat(testArr[index], is((byte)readNum));
index++;
}
}
}
|
[
"darren.landoll@udri.udayton.edu"
] |
darren.landoll@udri.udayton.edu
|
c56cc57c007b695b77db9b0aae0bceca1d46320c
|
5c80d72f68458dfc06f694d5ab6ccdc2f6ea8d71
|
/drools-wb-screens/drools-wb-test-scenario-editor/drools-wb-test-scenario-editor-client/src/test/java/org/drools/workbench/screens/testscenario/client/firedrules/FiredRulesPanelTest.java
|
64ad7037b5dc1ef5eae73e5c8d72d59f853610c5
|
[
"Apache-2.0"
] |
permissive
|
lanceleverich/drools-wb
|
cc7b9b86167ba17ba064a39075a0506c688ef30e
|
959cca871499dc1584047f33b8189601ca4f3f8c
|
refs/heads/master
| 2021-01-22T03:49:53.403529
| 2018-01-18T11:09:31
| 2018-01-18T11:09:31
| 92,407,910
| 0
| 0
| null | 2017-05-25T13:49:31
| 2017-05-25T13:49:31
| null |
UTF-8
|
Java
| false
| false
| 2,108
|
java
|
/*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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.drools.workbench.screens.testscenario.client.firedrules;
import com.google.gwtmockito.GwtMockitoTestRunner;
import org.drools.workbench.models.testscenarios.shared.ExecutionTrace;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.verify;
@RunWith(GwtMockitoTestRunner.class)
public class FiredRulesPanelTest {
@Mock
private ExecutionTrace executionTrace;
@Mock
private FiredRulesTable table;
@Mock
private ShowFiredRulesButton showFiredRulesButton;
@Mock
private HideFiredRulesButton hideFiredRulesButton;
private FiredRulesPanel panel;
@Before
public void setUp() throws Exception {
panel = spy(new FiredRulesPanel(executionTrace));
}
@Test
public void testInit() throws Exception {
doReturn(table).when(panel).firedRulesTable();
doReturn(showFiredRulesButton).when(panel).showFiredRulesButton();
doReturn(hideFiredRulesButton).when(panel).hideFiredRulesButton();
panel.init();
verify(table).init();
verify(showFiredRulesButton).init(table, hideFiredRulesButton);
verify(hideFiredRulesButton).init(table, showFiredRulesButton);
verify(panel).add(table);
verify(panel).add(showFiredRulesButton);
verify(panel).add(hideFiredRulesButton);
}
}
|
[
"manstis@users.noreply.github.com"
] |
manstis@users.noreply.github.com
|
3bd12b2dc33ecfdc54b2048aa0f5efce50d9a2c4
|
2c2111795aea2ee8d864e7a4dbb4e008b800260b
|
/rulai-support/src/main/java/com/unicdata/conditon/RebateProjectCondition.java
|
05192ed099519c593fd5ebba2fede165be21031e
|
[] |
no_license
|
zhai926/rulai
|
bd9f3f01534e174c882ca3e09e34f84f6a7213b5
|
4863cfcd99a29379a0781f148f6fd03a71b1c475
|
refs/heads/master
| 2020-04-26T21:53:50.611788
| 2019-03-05T02:27:28
| 2019-03-05T02:28:23
| 173,855,085
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,378
|
java
|
package com.unicdata.conditon;
import com.unicdata.entity.BaseEntity;
import com.unicdata.entity.policy.ArriveBillList;
import com.unicdata.entity.policy.ProofreaderList;
import com.unicdata.entity.policy.RebateProject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
/**
* Created by myMsi on 2018/6/21.
*/
@ApiModel("返利项目详情")
public class RebateProjectCondition extends BaseEntity{
@ApiModelProperty("核对单明细")
List<ProofreaderList> proofreaderLists;
@ApiModelProperty("到账单明细")
List<ArriveBillList> arriveBillLists;
@ApiModelProperty("调整明细")
List<RebateProject> rebateProject;
public List<ProofreaderList> getProofreaderLists() {
return proofreaderLists;
}
public void setProofreaderLists(List<ProofreaderList> proofreaderLists) {
this.proofreaderLists = proofreaderLists;
}
public List<ArriveBillList> getArriveBillLists() {
return arriveBillLists;
}
public void setArriveBillLists(List<ArriveBillList> arriveBillLists) {
this.arriveBillLists = arriveBillLists;
}
public List<RebateProject> getRebateProject() {
return rebateProject;
}
public void setRebateProject(List<RebateProject> rebateProject) {
this.rebateProject = rebateProject;
}
}
|
[
"17317900836@163.com"
] |
17317900836@163.com
|
f99153c4b103437752c9563ae611aa7b92cec4a5
|
ef2aaf0c359a9487f269d792c53472e4b41689a6
|
/documentation/design/essn/SubjectRegistry/edu/duke/cabig/c3pr/webservice/subjectregistry/InvalidSiteExceptionFaultMessage.java
|
0da67f6fb23f25b09d472318bfd1c7b48b9ac418
|
[] |
no_license
|
NCIP/c3pr-docs
|
eec40451ac30fb5fee55bb2d22c10c6ae400845e
|
5adca8c04fcb47adecbb4c045be98fcced6ceaee
|
refs/heads/master
| 2016-09-05T22:56:44.805679
| 2013-03-08T19:59:03
| 2013-03-08T19:59:03
| 7,276,330
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,286
|
java
|
package edu.duke.cabig.c3pr.webservice.subjectregistry;
import javax.xml.ws.WebFault;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.1.1-b03-
* Generated source version: 2.1
*
*/
@WebFault(name = "InvalidSiteExceptionFault", targetNamespace = "http://enterpriseservices.nci.nih.gov/SubjectRegistryService")
public class InvalidSiteExceptionFaultMessage
extends Exception
{
/**
* Java type that goes as soapenv:Fault detail element.
*
*/
private InvalidSiteExceptionFault faultInfo;
/**
*
* @param faultInfo
* @param message
*/
public InvalidSiteExceptionFaultMessage(String message, InvalidSiteExceptionFault faultInfo) {
super(message);
this.faultInfo = faultInfo;
}
/**
*
* @param faultInfo
* @param message
* @param cause
*/
public InvalidSiteExceptionFaultMessage(String message, InvalidSiteExceptionFault faultInfo, Throwable cause) {
super(message, cause);
this.faultInfo = faultInfo;
}
/**
*
* @return
* returns fault bean: edu.duke.cabig.c3pr.webservice.subjectregistry.InvalidSiteExceptionFault
*/
public InvalidSiteExceptionFault getFaultInfo() {
return faultInfo;
}
}
|
[
"kruttikagarwal@gmail.com"
] |
kruttikagarwal@gmail.com
|
968decc964e842554b6e92cf66721aaef0088920
|
55048b3ab517ac8bf1bb2f2426385f961a5748da
|
/StrategyCase1/src/illustration/ConcreteStrategyB.java
|
61f6a25fd955530f1932f7f3980f61620a599b1b
|
[] |
no_license
|
kelfan/Java-Learning
|
82dc1a02fea54735abc360403b381d1daf76fe2b
|
47cfaebfe62dcb52462c46fd5f63dfa79e226fe3
|
refs/heads/master
| 2021-09-23T20:12:52.443292
| 2018-09-27T08:22:01
| 2018-09-27T08:22:01
| 123,842,279
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 232
|
java
|
package illustration;
public class ConcreteStrategyB implements Strategy {
@Override
public void strategyInterface() {
//相关的业务
System.out.print("inside concrete illustration.Strategy B");
}
}
|
[
"zchaofan08@gmail.com"
] |
zchaofan08@gmail.com
|
62f603b17ac2c30ee7c88fcaa0996cf97c0e21d1
|
0ea271177f5c42920ac53cd7f01f053dba5c14e4
|
/5.3.5/sources/com/h6ah4i/android/widget/advrecyclerview/utils/BaseWrapperAdapter.java
|
797d960bb4ccc20807120a3a3c283f1697eeb052
|
[] |
no_license
|
alireza-ebrahimi/telegram-talaeii
|
367a81a77f9bc447e729b2ca339f9512a4c2860e
|
68a67e6f104ab8a0888e63c605e8bbad12c4a20e
|
refs/heads/master
| 2020-03-21T13:44:29.008002
| 2018-12-09T10:30:29
| 2018-12-09T10:30:29
| 138,622,926
| 12
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 426
|
java
|
package com.h6ah4i.android.widget.advrecyclerview.utils;
import android.support.v7.widget.RecyclerView.Adapter;
import android.support.v7.widget.RecyclerView.ViewHolder;
import com.h6ah4i.android.widget.advrecyclerview.adapter.SimpleWrapperAdapter;
public class BaseWrapperAdapter<VH extends ViewHolder> extends SimpleWrapperAdapter<VH> {
public BaseWrapperAdapter(Adapter<VH> adapter) {
super(adapter);
}
}
|
[
"alireza.ebrahimi2006@gmail.com"
] |
alireza.ebrahimi2006@gmail.com
|
ec38653bdc677e9031bc0853626ddb8a5af6620c
|
17526f7e97f5bf477887b433bfc6d554f9f96a10
|
/src/main/java/ch15exception/BodyException.java
|
49c3c72d21eb76e581bb71064ab2d6dcf46bf204
|
[] |
no_license
|
CoryJia/OnJava8-ThinkingInJava5th
|
f29a041c9867be48431e54badbbd623b997e143d
|
8e321225e2de049862ae2a4c2114be976151bdc2
|
refs/heads/master
| 2021-01-09T19:52:35.022402
| 2020-04-11T16:40:48
| 2020-04-11T16:40:48
| 242,437,396
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 810
|
java
|
package ch15exception;// exceptions/BodyException.java
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
class Third extends Reporter {
}
public class BodyException {
public static void main(String[] args) {
try (
First f = new First();
Second s2 = new Second()
) {
System.out.println("In body");
Third t = new Third();
new SecondExcept();
System.out.println("End of body");
} catch (CE e) {
System.out.println("Caught: " + e);
}
}
}
/* Output:
Creating First
Creating Second
In body
Creating Third
Creating SecondExcept
Closing Second
Closing First
Caught: CE
*/
|
[
"jianbojia@Jianbos-iMac.local"
] |
jianbojia@Jianbos-iMac.local
|
1e80eff4dd5d5af636e954d0daabc7dd87ce3fd1
|
40d47ec34254891b428638c7f979702e4f8ec9e7
|
/src/main/java/com/amazonaws/mws/samples/GetOrderAsyncSample.java
|
fa824729e8db1e423d803792ed9d00f7495f37db
|
[
"Apache-2.0"
] |
permissive
|
glip80/mws-sdk
|
d335f4a594038ebceb99228a0534d18aa4a52a65
|
25b778acf7b7f3d81a10d011f2958d1594b9daf7
|
refs/heads/master
| 2021-05-26T22:38:00.744161
| 2012-08-22T01:44:25
| 2012-08-22T01:44:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,013
|
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://aws.amazon.com/apache2.0
* This file 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.
* *****************************************************************************
* __ _ _ ___
* ( )( \/\/ )/ __)
* /__\ \ / \__ \
* (_)(_) \/\/ (___/
*
* Marketplace Web Service Orders Java Library
* API Version: 2011-01-01
* Generated: Sun Feb 06 00:05:37 UTC 2011
*
*/
package com.amazonaws.mws.samples;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import com.amazonaws.mws.MarketplaceWebServiceOrdersAsync;
import com.amazonaws.mws.MarketplaceWebServiceOrdersAsyncClient;
import com.amazonaws.mws.MarketplaceWebServiceOrdersException;
import com.amazonaws.mws.model.orders.GetOrderRequest;
import com.amazonaws.mws.model.orders.GetOrderResponse;
/**
*
* Get Order Samples
*
*
*/
public class GetOrderAsyncSample {
/**
* Just add few required parameters, and try the service Get Order
* functionality
*
* @param args
* unused
*/
public static void main(String... args) {
/*
* Add required parameters in OrdersSampleConfig.java before trying out
* this sample.
*/
/************************************************************************
* Instantiate Http Client Implementation of Marketplace Web Service
* Orders
*
* Important! Number of threads in executor should match number of
* connections for http client.
*
***********************************************************************/
OrdersSampleConfig.config.setMaxConnections(100);
ExecutorService executor = Executors.newFixedThreadPool(100);
MarketplaceWebServiceOrdersAsync service = new MarketplaceWebServiceOrdersAsyncClient(
OrdersSampleConfig.accessKeyId,
OrdersSampleConfig.secretAccessKey,
OrdersSampleConfig.applicationName,
OrdersSampleConfig.applicationVersion,
OrdersSampleConfig.config, executor);
/************************************************************************
* Setup requests parameters and invoke parallel processing. Of course
* in real world application, there will be much more than a couple of
* requests to process.
***********************************************************************/
GetOrderRequest requestOne = new GetOrderRequest();
// @TODO: set request parameters here
requestOne.setSellerId(OrdersSampleConfig.sellerId);
GetOrderRequest requestTwo = new GetOrderRequest();
// @TODO: set second request parameters here
requestTwo.setSellerId(OrdersSampleConfig.sellerId);
List<GetOrderRequest> requests = new ArrayList<GetOrderRequest>();
requests.add(requestOne);
requests.add(requestTwo);
invokeGetOrder(service, requests);
executor.shutdown();
}
/**
* Get Order request sample This operation takes up to 50 order ids and
* returns the corresponding orders.
*
* @param service
* instance of MarketplaceWebServiceOrders service
* @param requests
* list of requests to process
*/
public static void invokeGetOrder(MarketplaceWebServiceOrdersAsync service,
List<GetOrderRequest> requests) {
List<Future<GetOrderResponse>> responses = new ArrayList<Future<GetOrderResponse>>();
for (GetOrderRequest request : requests) {
responses.add(service.getOrderAsync(request));
}
for (Future<GetOrderResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
GetOrderResponse response = future.get();
// Original request corresponding to this response, if needed:
GetOrderRequest originalRequest = requests.get(responses
.indexOf(future));
System.out.println("Response request id: "
+ response.getResponseMetadata().getRequestId());
} catch (Exception e) {
if (e.getCause() instanceof MarketplaceWebServiceOrdersException) {
MarketplaceWebServiceOrdersException exception = MarketplaceWebServiceOrdersException.class
.cast(e.getCause());
System.out.println("Caught Exception: "
+ exception.getMessage());
System.out.println("Response Status Code: "
+ exception.getStatusCode());
System.out.println("Error Code: "
+ exception.getErrorCode());
System.out.println("Error Type: "
+ exception.getErrorType());
System.out.println("Request ID: "
+ exception.getRequestId());
System.out.print("XML: " + exception.getXML());
} else {
e.printStackTrace();
}
}
}
}
}
|
[
"bill.speirs@gmail.com"
] |
bill.speirs@gmail.com
|
685ec2c4ce04e0e30f684d46dd21100738063085
|
3221b6bc93eea51d46d9baec8b76ac6f24b90313
|
/Studio/plugins/com.wizzer.mle.studio.dwp/src/java/com/wizzer/mle/studio/dwp/attribute/DwpSourceFileAttribute.java
|
2f9c6767919eb7cc1dc6f35d70335aaddb75a281
|
[
"MIT"
] |
permissive
|
magic-lantern-studio/mle-studio
|
67224f61d0ba8542b39c4a6ed6bd65b60beab15d
|
06520cbff5b052b98c7280f51f25e528b1c98b64
|
refs/heads/master
| 2022-01-12T04:11:56.033265
| 2022-01-06T23:40:11
| 2022-01-06T23:40:11
| 128,479,137
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,565
|
java
|
/*
* DwpSourceFileAttribute.java
*/
// COPYRIGHT_BEGIN
//
// The MIT License (MIT)
//
// Copyright (c) 2000-2020 Wizzer Works
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
// COPYRIGHT_END
// Declare package.
package com.wizzer.mle.studio.dwp.attribute;
// Import Wizzer Works Framework packages.
import com.wizzer.mle.studio.framework.attribute.Attribute;
/**
* This class implements an <code>Attribute</code> for a Magic Lantern Digital Workprint
* Source File item.
*
* @author Mark S. Millard
*/
public class DwpSourceFileAttribute extends DwpNameAttribute
{
/**
* A constructor that initializes the value of the DWP Source File Attribute.
*
* @param name The name of the DWP source file.
* @param isReadOnly A flag indicating whether the attribute should be read-only or not.
*/
public DwpSourceFileAttribute(String name, boolean isReadOnly)
{
super("SourceFile", name, isReadOnly);
}
/**
* Get the <code>Attribute</code> type.
*
* @return <b>TYPE_DWP_SOURCEFILE</b> is always returned.
*/
public String getType()
{
return DwpItemAttribute.TYPE_DWP_SOURCEFILE;
}
/**
* Get a copy the contents of the <code>DwpSourceFileAttribute</code>.
*
* @return A shallow copy of the <code>DwpSourceFileAttribute</code> is returned.
* The children of the <code>DwpSourceFileAttribute</code> are <b>not</b> copied.
*/
public Attribute copy()
{
DwpSourceFileAttribute attr = new DwpSourceFileAttribute((String)m_value,getReadOnly());
this.copyTags(attr);
return attr;
}
}
|
[
"msm@wizzerworks.com"
] |
msm@wizzerworks.com
|
13d2d0702754d503009198ddcbcc0d114c499007
|
2a191e1bdf8d02f0ec774f59e73f18706b003dca
|
/jOOQ/src/main/java/org/jooq/SelectField.java
|
95f2fe2ec8dd4f305aaf514c95cf6f0041879e2c
|
[
"Apache-2.0"
] |
permissive
|
hengboy/jOOQ
|
80a2a2e31e700b2a3f07573a4b100468b9fbae58
|
fa9422521fb7d454c1651791a47b51f2c6e94756
|
refs/heads/master
| 2020-05-16T08:38:35.955099
| 2019-04-18T16:01:12
| 2019-04-18T16:01:12
| 182,920,385
| 0
| 2
|
NOASSERTION
| 2019-04-23T03:20:37
| 2019-04-23T03:20:36
| null |
UTF-8
|
Java
| false
| false
| 2,165
|
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.
*
* Other licenses:
* -----------------------------------------------------------------------------
* Commercial licenses for this work are available. These replace the above
* ASL 2.0 and offer limited warranties, support, maintenance, and commercial
* database integrations.
*
* For more information, please visit: http://www.jooq.org/licenses
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.jooq;
/**
* A <code>QueryPart</code> to be used exclusively in <code>SELECT</code>
* clauses.
* <p>
* Instances of this type cannot be created directly, only of its subtypes.
*
* @author Lukas Eder
*/
public interface SelectField<T> extends SelectFieldOrAsterisk, Named {
// ------------------------------------------------------------------------
// API
// ------------------------------------------------------------------------
/**
* The field's underlying {@link Converter}.
* <p>
* By default, all fields reference an identity-converter
* <code>Converter<T, T></code>. Custom data types may be obtained by a
* custom {@link Converter} placed on the generated {@link TableField}.
*/
Converter<?, T> getConverter();
/**
* The field's underlying {@link Binding}.
*/
Binding<?, T> getBinding();
/**
* The Java type of the field.
*/
Class<T> getType();
/**
* The type of this field (might not be dialect-specific).
*/
DataType<T> getDataType();
/**
* The dialect-specific type of this field.
*/
DataType<T> getDataType(Configuration configuration);
}
|
[
"lukas.eder@gmail.com"
] |
lukas.eder@gmail.com
|
ef99112f793b464301af3d0a7303540ea5b0c17b
|
20799081ff7f4c345db5fe1cc3ea5292eec47f85
|
/src/main/java/com/subway/preMaintPlan/PreMaintPlanController.java
|
4fed0fc0957b78ab7fd7b63ac99742869c4b0011
|
[] |
no_license
|
HuangMichael/xystudio
|
569176a7625f640d3cb91a3a63f48e83be47c6f6
|
61ee03721701490ed59d2e6639fdcd39346dabf1
|
refs/heads/master
| 2021-04-06T02:12:25.545032
| 2018-03-28T08:39:05
| 2018-03-28T08:39:05
| 124,897,655
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,353
|
java
|
package com.subway.preMaintPlan;
import com.subway.controller.common.BaseController;
import com.subway.domain.app.MyPage;
import com.subway.service.app.ResourceService;
import com.subway.utils.PageUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import com.subway.object.ReturnObject;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;
/**
* 预防性维护计划
*
* @author huangbin
* @generate by autoCode
* @Date 2018-3-15
*/
@Controller
@EnableAutoConfiguration
@RequestMapping("/preMaintPlan")
public class PreMaintPlanController extends BaseController {
@Autowired
ResourceService resourceService;
@Autowired
PreMaintPlanService preMaintPlanService;
@Autowired
PreMaintPlanSearchService preMaintPlanSearchService;
@RequestMapping(value = "/data", method = RequestMethod.POST)
@ResponseBody
public MyPage data(HttpSession session, HttpServletRequest request, @RequestParam(value = "current", defaultValue = "0") int current, @RequestParam(value = "rowCount", defaultValue = "10") Long rowCount, @RequestParam(value = "searchPhrase", required = false) String searchPhrase) {
Map<String, String[]> parameterMap = request.getParameterMap();
Pageable pageable = new PageRequest(current - 1, rowCount.intValue(), super.getSort(parameterMap));
return new PageUtils().searchBySortService(preMaintPlanSearchService, searchPhrase, 2, current, rowCount, pageable);
}
@RequestMapping(value = "/findById/{id}", method = RequestMethod.GET)
@ResponseBody
public PreMaintPlan findById(@PathVariable("id") Long id) {
return preMaintPlanService.findById(id);
}
/**
* @param id
* @return 删除信息
*/
@RequestMapping(value = "/delete/{id}", method = RequestMethod.GET)
@ResponseBody
public ReturnObject delete(@PathVariable("id") Long id) {
return preMaintPlanService.delete(id);
}
/**
* @param preMaintPlan 信息
* @return 保存信息
*/
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ResponseBody
public ReturnObject save(PreMaintPlan preMaintPlan) {
return preMaintPlanService.save(preMaintPlan);
}
/**
* @param request
* @param response
* @param param
* @param docName
* @param titles
* @param colNames
*/
@ResponseBody
@RequestMapping(value = "/exportExcel", method = RequestMethod.GET)
public void exportExcel(HttpServletRequest request, HttpServletResponse response, @RequestParam("param") String param, @RequestParam("docName") String docName, @RequestParam("titles") String titles[], @RequestParam("colNames") String[] colNames) {
List<PreMaintPlan> dataList = preMaintPlanSearchService.findByConditions(param, 2);
preMaintPlanService.setDataList(dataList);
preMaintPlanService.exportExcel(request, response, docName, titles, colNames);
}
}
|
[
"876301469@qq.com"
] |
876301469@qq.com
|
fc60abbefda7fb1961273f7a19f28bf8f44c76b1
|
fe711416301bdc8fcd798a5c20d7a02f37f61362
|
/WEB14/src/com/itheima/header/Servlet1_002.java
|
6f60bedbcedbb1bacce3c9fde92a323c2139d142
|
[] |
no_license
|
chaiguolong/javaweb_step1
|
e9175521485813c40e763a95629c1ef929405010
|
e9e8d3e70fd5d9495b6675c60e35d8ca12eefdc2
|
refs/heads/master
| 2022-07-07T18:10:59.431906
| 2020-04-28T05:41:51
| 2020-04-28T05:41:51
| 143,223,415
| 1
| 0
| null | 2022-06-21T00:55:31
| 2018-08-02T00:53:40
|
Java
|
UTF-8
|
Java
| false
| false
| 915
|
java
|
package com.itheima.header;
import java.io.IOException;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class Servlet1_002 extends HttpServlet{
private static final long serialVersionUID = -23324535345L;
protected void doGet(HttpServletRequest request ,HttpServletResponse response) throws ServletException ,IOException{
//没有响应 告知客户端去重定向到Servlet2
//1.设置状态码302
// response.setStatus(302);
// response.setHeader("Location","/WEB14/servlet2");
//封装成一个重定向的方法sendRedirect(url)
response.sendRedirect("/WEB14/servlet2");
}
protected void doPost(HttpServletRequest request,HttpServletResponse response)throws ServletException ,IOException{
doGet(request,response);
}
}
|
[
"584238433@qq.com"
] |
584238433@qq.com
|
44e3107f0e89d2b135a7ca7ad2295a8a7b7b4639
|
e58a8e0fb0cfc7b9a05f43e38f1d01a4d8d8cf1f
|
/RuleMazer/src/com/puttysoftware/rulemazer/objects/GhostArrow.java
|
4d697fe75b97ce9428ea62fbe2eec7f210662ef1
|
[
"Unlicense"
] |
permissive
|
retropipes/older-java-games
|
777574e222f30a1dffe7936ed08c8bfeb23a21ba
|
786b0c165d800c49ab9977a34ec17286797c4589
|
refs/heads/master
| 2023-04-12T14:28:25.525259
| 2021-05-15T13:03:54
| 2021-05-15T13:03:54
| 235,693,016
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 420
|
java
|
/* RuleMazer: A Maze-Solving Game
Copyright (C) 2008-2010 Eric Ahnell
Any questions should be directed to the author via email at: rulemazer@puttysoftware.com
*/
package com.puttysoftware.rulemazer.objects;
import com.puttysoftware.rulemazer.generic.GenericTransientObject;
public class GhostArrow extends GenericTransientObject {
// Constructors
public GhostArrow() {
super("Ghost Arrow");
}
}
|
[
"eric.ahnell@puttysoftware.com"
] |
eric.ahnell@puttysoftware.com
|
1bd24f1094090d0575534858bcf08ae2986c19f1
|
df48dc6e07cdf202518b41924444635f30d60893
|
/jinx-com4j/src/main/java/com/exceljava/com4j/vbide/VBE.java
|
cf247685833ebec746c38ce0ff33d92d0bd138c5
|
[
"MIT"
] |
permissive
|
ashwanikaggarwal/jinx-com4j
|
efc38cc2dc576eec214dc847cd97d52234ec96b3
|
41a3eaf71c073f1282c2ab57a1c91986ed92e140
|
refs/heads/master
| 2022-03-29T12:04:48.926303
| 2020-01-10T14:11:17
| 2020-01-10T14:11:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,153
|
java
|
package com.exceljava.com4j.vbide ;
import com4j.*;
@IID("{0002E166-0000-0000-C000-000000000046}")
public interface VBE extends com.exceljava.com4j.vbide.Application {
// Methods:
/**
* <p>
* Getter method for the COM property "VBProjects"
* </p>
* @return Returns a value of type com.exceljava.com4j.vbide._VBProjects
*/
@DISPID(107) //= 0x6b. The runtime will prefer the VTID if present
@VTID(8)
com.exceljava.com4j.vbide._VBProjects getVBProjects();
/**
* <p>
* Getter method for the COM property "CommandBars"
* </p>
* @return Returns a value of type com.exceljava.com4j.office._CommandBars
*/
@DISPID(108) //= 0x6c. The runtime will prefer the VTID if present
@VTID(9)
com.exceljava.com4j.office._CommandBars getCommandBars();
/**
* <p>
* Getter method for the COM property "CodePanes"
* </p>
* @return Returns a value of type com.exceljava.com4j.vbide._CodePanes
*/
@DISPID(109) //= 0x6d. The runtime will prefer the VTID if present
@VTID(10)
com.exceljava.com4j.vbide._CodePanes getCodePanes();
/**
* <p>
* Getter method for the COM property "Windows"
* </p>
* @return Returns a value of type com.exceljava.com4j.vbide._Windows
*/
@DISPID(110) //= 0x6e. The runtime will prefer the VTID if present
@VTID(11)
com.exceljava.com4j.vbide._Windows getWindows();
/**
* <p>
* Getter method for the COM property "Events"
* </p>
* @return Returns a value of type com.exceljava.com4j.vbide.Events
*/
@DISPID(111) //= 0x6f. The runtime will prefer the VTID if present
@VTID(12)
com.exceljava.com4j.vbide.Events getEvents();
/**
* <p>
* Getter method for the COM property "ActiveVBProject"
* </p>
* @return Returns a value of type com.exceljava.com4j.vbide._VBProject
*/
@DISPID(201) //= 0xc9. The runtime will prefer the VTID if present
@VTID(13)
com.exceljava.com4j.vbide._VBProject getActiveVBProject();
/**
* <p>
* Setter method for the COM property "ActiveVBProject"
* </p>
* @param lppptReturn Mandatory com.exceljava.com4j.vbide._VBProject parameter.
*/
@DISPID(201) //= 0xc9. The runtime will prefer the VTID if present
@VTID(14)
void setActiveVBProject(
com.exceljava.com4j.vbide._VBProject lppptReturn);
/**
* <p>
* Getter method for the COM property "SelectedVBComponent"
* </p>
* @return Returns a value of type com.exceljava.com4j.vbide._VBComponent
*/
@DISPID(202) //= 0xca. The runtime will prefer the VTID if present
@VTID(15)
com.exceljava.com4j.vbide._VBComponent getSelectedVBComponent();
/**
* <p>
* Getter method for the COM property "MainWindow"
* </p>
* @return Returns a value of type com.exceljava.com4j.vbide.Window
*/
@DISPID(204) //= 0xcc. The runtime will prefer the VTID if present
@VTID(16)
com.exceljava.com4j.vbide.Window getMainWindow();
/**
* <p>
* Getter method for the COM property "ActiveWindow"
* </p>
* @return Returns a value of type com.exceljava.com4j.vbide.Window
*/
@DISPID(205) //= 0xcd. The runtime will prefer the VTID if present
@VTID(17)
com.exceljava.com4j.vbide.Window getActiveWindow();
/**
* <p>
* Getter method for the COM property "ActiveCodePane"
* </p>
* @return Returns a value of type com.exceljava.com4j.vbide._CodePane
*/
@DISPID(206) //= 0xce. The runtime will prefer the VTID if present
@VTID(18)
com.exceljava.com4j.vbide._CodePane getActiveCodePane();
/**
* <p>
* Setter method for the COM property "ActiveCodePane"
* </p>
* @param ppCodePane Mandatory com.exceljava.com4j.vbide._CodePane parameter.
*/
@DISPID(206) //= 0xce. The runtime will prefer the VTID if present
@VTID(19)
void setActiveCodePane(
com.exceljava.com4j.vbide._CodePane ppCodePane);
/**
* <p>
* Getter method for the COM property "Addins"
* </p>
* @return Returns a value of type com.exceljava.com4j.vbide._AddIns
*/
@DISPID(209) //= 0xd1. The runtime will prefer the VTID if present
@VTID(20)
com.exceljava.com4j.vbide._AddIns getAddins();
// Properties:
}
|
[
"tony@pyxll.com"
] |
tony@pyxll.com
|
7abef308859a4aa140eaed298de4b97e573506e0
|
782831d070d5233db071fde183a45244de3b4106
|
/src/newtimes/basic/shipmark/ShipmarkDataFactory.java
|
2542a1e743fa636e8055bd44cc5957e9a0cd431d
|
[] |
no_license
|
leetungchi/AS_newtimesApp
|
d71c83f2488d57305b835f7196db77bbdb57bd91
|
359168c78c293f900a393847b04f8caf812a2eef
|
refs/heads/master
| 2020-03-23T21:38:21.763324
| 2018-07-24T07:56:07
| 2018-07-24T07:56:07
| 142,121,479
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,904
|
java
|
package newtimes.basic.shipmark;
import exgui.ultratable.PagedDataFactory;
import java.util.Vector;
import database.datatype.Record;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/
public class ShipmarkDataFactory implements PagedDataFactory {
java.util.HashMap hm4shmk = null;
public ShipmarkDataFactory(java.util.HashMap hm) {
hm4shmk = hm;
}
public Vector getRecords(int startPosition, int rowCounts) throws Exception {
Vector vData = exgui2.CONST.BASIC_MAIN_EJB.getShipmarkList(startPosition, rowCounts, hm4shmk);
return vData;
}
public void deleteRecord(Record rec2delete) throws Exception {
/**@todo Implement this exgui.ultratable.PagedDataFactory method*/
throw new java.lang.UnsupportedOperationException("Method deleteRecord() not yet implemented.");
}
public void restoreRecord(Record rec2restore) throws Exception {
/**@todo Implement this exgui.ultratable.PagedDataFactory method*/
throw new java.lang.UnsupportedOperationException("Method restoreRecord() not yet implemented.");
}
public Record addRecord(Record rec2add) throws Exception {
/**@todo Implement this exgui.ultratable.PagedDataFactory method*/
throw new java.lang.UnsupportedOperationException("Method addRecord() not yet implemented.");
}
public Record getBlankRecord() throws Exception {
/**@todo Implement this exgui.ultratable.PagedDataFactory method*/
throw new java.lang.UnsupportedOperationException("Method getBlankRecord() not yet implemented.");
}
public void updateRecords(Vector recs2update) throws Exception {
}
public boolean listforRestore() {
/**@todo Implement this exgui.ultratable.PagedDataFactory method*/
throw new java.lang.UnsupportedOperationException("Method listforRestore() not yet implemented.");
}
}
|
[
"lee@User-PC"
] |
lee@User-PC
|
032a5c004ee9f3d569dc2a8f80be420f3dd96271
|
000e9ddd9b77e93ccb8f1e38c1822951bba84fa9
|
/java/classes2/com/ziroom/ziroomcustomer/main/find/rent/b.java
|
245747cb3faf9b5a92f6fdf35f763005681cd5d4
|
[
"Apache-2.0"
] |
permissive
|
Paladin1412/house
|
2bb7d591990c58bd7e8a9bf933481eb46901b3ed
|
b9e63db1a4975b614c422fed3b5b33ee57ea23fd
|
refs/heads/master
| 2021-09-17T03:37:48.576781
| 2018-06-27T12:39:38
| 2018-06-27T12:41:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,555
|
java
|
package com.ziroom.ziroomcustomer.main.find.rent;
import com.ziroom.ziroomcustomer.model.rent.FilterCondition;
import com.ziroom.ziroomcustomer.model.rent.RentCheckInDateCondition;
import com.ziroom.ziroomcustomer.model.rent.RentConditionItem;
import com.ziroom.ziroomcustomer.model.rent.RentTypeConditionItem;
import java.lang.ref.WeakReference;
import java.util.List;
public class b
implements a.a
{
WeakReference<a.b> a;
public b(a.b paramb)
{
this.a = new WeakReference(paramb);
paramb = getView();
if (paramb != null) {
paramb.setPresenter(this);
}
}
public void detachView()
{
if (this.a != null)
{
this.a.clear();
this.a = null;
}
}
public FilterCondition getAllCondition()
{
return null;
}
public a.b getView()
{
if (this.a != null) {
return (a.b)this.a.get();
}
return null;
}
public void start() {}
public void updateAllCondition() {}
public void updateFilterCondition() {}
public void updateLocationCondition() {}
public void updateOtherCondition() {}
public void updateSortCondition(RentConditionItem paramRentConditionItem) {}
public void updateTimeCondition(RentCheckInDateCondition paramRentCheckInDateCondition) {}
public void updateTypeCondition(List<RentTypeConditionItem> paramList) {}
}
/* Location: /Users/gaoht/Downloads/zirom/classes2-dex2jar.jar!/com/ziroom/ziroomcustomer/main/find/rent/b.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"ght163988@autonavi.com"
] |
ght163988@autonavi.com
|
81fec7238aa28cb274f974aef170856086e40646
|
643d1d9269a8eb87924ac142aac7c890cac4f405
|
/src/main/java/ncis/dsb/stts/rsrcuse/dao/InsttRsrcUseStteDao.java
|
ed9eb5c257c8b2a610e62d2a5c9fe60f4f906746
|
[] |
no_license
|
jobbs/example
|
e090c1d9233e76e6a928801473e9f2a7c83ca725
|
874be10b39c02081ce2b899b91d1ba7851c4ff23
|
refs/heads/master
| 2020-04-07T08:32:16.566777
| 2018-11-19T12:34:07
| 2018-11-19T12:34:07
| 158,218,294
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,131
|
java
|
/**
* copyright 2016 NCIS Cloud Portal System
* @description
* <pre></pre>
*
* InsttRsrcUseStteDao.java
*
* @author 양정순
* @lastmodifier 양정순
* @created 2016. 10. 10
* @lastmodified2016. 10. 10
*
* @history
* -----------------------------------------------------------
* Date author ver Description
* -----------------------------------------------------------
* 2016. 10. 10 양정순 v1.0 최초생성
*
*/
package ncis.dsb.stts.rsrcuse.dao;
import java.util.List;
import ncis.dsb.stts.rsrcuse.vo.InsttRsrcRxAsgnVo;
import ncis.dsb.stts.rsrcuse.vo.InsttRsrcRxMaxVo;
import ncis.dsb.stts.rsrcuse.vo.InsttRsrcUseStteSearchVo;
import ncis.dsb.stts.rsrcuse.vo.InsttRsrcUseStteAsgnVo;
import ncis.dsb.stts.rsrcuse.vo.InsttRsrcUseStteMaxVo;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
@Repository("insttRsrcUseStteDao")
public class InsttRsrcUseStteDao {
@Autowired SqlSessionTemplate sqlSession;
/**
* 논리자원 할당량 목록 조회
* */
public List<InsttRsrcUseStteAsgnVo> selecInsttRsrcUseStteAsgnList(InsttRsrcUseStteSearchVo searchVo){
return sqlSession.selectList("ncis.sql.dsb.stts.insttRsrcUseStte.selecInsttRsrcUseStteAsgnList",searchVo);
}
/**
* 가상서버 최빈시 자원 사용률 목록 조회
* */
public List<InsttRsrcUseStteMaxVo> selecInsttRsrcUseStteMaxList(InsttRsrcUseStteSearchVo searchVo){
return sqlSession.selectList("ncis.sql.dsb.stts.insttRsrcUseStte.selecInsttRsrcUseStteMaxList",searchVo);
}
/**
* 자동확장 할당량 목록
* */
public List<InsttRsrcRxAsgnVo> selectRxAsgnList(InsttRsrcUseStteSearchVo searchVo) {
return sqlSession.selectList("ncis.sql.dsb.stts.insttRsrcUseStte.selectRxAsgnList",searchVo);
}
/**
* 자동확장 최빈시 자원 사용률 목록
* */
public List<InsttRsrcRxMaxVo> selectRxMaxList(InsttRsrcUseStteSearchVo searchVo) {
return sqlSession.selectList("ncis.sql.dsb.stts.insttRsrcUseStte.selectRxMaxList",searchVo);
}
}
|
[
"jobbs@selim.co.kr"
] |
jobbs@selim.co.kr
|
99c5ddd674d68b17d59929d84ff3d2f0649f42fa
|
ed0e9bfa93c1077b1e4af2fd0ed452bebb596afc
|
/p2p/core/src/main/java/com/jxau/p2p/base/util/MD5.java
|
7fd0cc8e9e2ea373c6c4fef654e86aeae7b86038
|
[] |
no_license
|
wzyyxx/springboot_shiro
|
fa4c1b4fa4a9bfba0ef045a5365bb011b8df5fce
|
826c4bf203209700e4c1cb1c2cba8418e90ccea8
|
refs/heads/master
| 2023-04-22T09:19:35.317149
| 2019-11-20T03:17:16
| 2019-11-20T03:17:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,844
|
java
|
package com.jxau.p2p.base.util;
public class MD5 {
static final int S11 = 7;
static final int S12 = 12;
static final int S13 = 17;
static final int S14 = 22;
static final int S21 = 5;
static final int S22 = 9;
static final int S23 = 14;
static final int S24 = 20;
static final int S31 = 4;
static final int S32 = 11;
static final int S33 = 16;
static final int S34 = 23;
static final int S41 = 6;
static final int S42 = 10;
static final int S43 = 15;
static final int S44 = 21;
static final byte PADDING[] = { -128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0 };
public static long b2iu(byte b) {
return (b >= 0 ? b : b & 0xff);
}
public static String byteHEX(byte ib) {
char Digit[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A',
'B', 'C', 'D', 'E', 'F' };
char ob[] = new char[2];
ob[0] = Digit[ib >>> 4 & 0xf];
ob[1] = Digit[ib & 0xf];
String s = new String(ob);
return s;
}
public static String encode(String s) {
MD5 m = new MD5();
return m.getMD5ofStr(s);
}
private long state[];
private long count[];
private byte buffer[];
public String digestHexStr;
private byte digest[];
public MD5() {
state = new long[4];
count = new long[2];
buffer = new byte[64];
digest = new byte[16];
md5Init();
}
private void Decode(long output[], byte input[], int len) {
int i = 0;
for (int j = 0; j < len; j += 4) {
output[i] = b2iu(input[j]) | b2iu(input[j + 1]) << 8
| b2iu(input[j + 2]) << 16 | b2iu(input[j + 3]) << 24;
i++;
}
}
private void Encode(byte output[], long input[], int len) {
int i = 0;
for (int j = 0; j < len; j += 4) {
output[j] = (byte) (int) (input[i] & 255L);
output[j + 1] = (byte) (int) (input[i] >>> 8 & 255L);
output[j + 2] = (byte) (int) (input[i] >>> 16 & 255L);
output[j + 3] = (byte) (int) (input[i] >>> 24 & 255L);
i++;
}
}
private long F(long x, long y, long z) {
return x & y | (x ^ 0L - 1L) & z;
}
private long FF(long a, long b, long c, long d, long x, long s, long ac) {
a += F(b, c, d) + x + ac;
a = (int) a << (int) s | (int) a >>> (int) (32 - s);
a += b;
return a;
}
private long G(long x, long y, long z) {
return x & z | y & (z ^ 0L - 1L);
}
public String getMD5ofStr(String inbuf) {
md5Init();
md5Update(inbuf.getBytes(), inbuf.length());
md5Final();
digestHexStr = "";
for (int i = 0; i < 16; i++)
digestHexStr = String.valueOf(digestHexStr)
+ String.valueOf(byteHEX(digest[i]));
return digestHexStr;
}
private long GG(long a, long b, long c, long d, long x, long s, long ac) {
a += G(b, c, d) + x + ac;
a = (int) a << (int) s | (int) a >>> (int) (32 - s);
a += b;
return a;
}
private long H(long x, long y, long z) {
return x ^ y ^ z;
}
private long HH(long a, long b, long c, long d, long x, long s, long ac) {
a += H(b, c, d) + x + ac;
a = (int) a << (int) s | (int) a >>> (int) (32 - s);
a += b;
return a;
}
private long I(long x, long y, long z) {
return y ^ (x | z ^ 0L - 1L);
}
private long II(long a, long b, long c, long d, long x, long s, long ac) {
a += I(b, c, d) + x + ac;
a = (int) a << (int) s | (int) a >>> (int) (32 - s);
a += b;
return a;
}
private void md5Final() {
byte bits[] = new byte[8];
Encode(bits, count, 8);
int index = (int) (count[0] >>> 3) & 0x3f;
int padLen = index >= 56 ? 120 - index : 56 - index;
md5Update(PADDING, padLen);
md5Update(bits, 8);
Encode(digest, state, 16);
}
private void md5Init() {
count[0] = 0L;
count[1] = 0L;
state[0] = 0x67452301L;
state[1] = 0xefcdab89L;
state[2] = 0x98badcfeL;
state[3] = 0x10325476L;
}
private void md5Memcpy(byte output[], byte input[], int outpos, int inpos,
int len) {
for (int i = 0; i < len; i++)
output[outpos + i] = input[inpos + i];
}
private void md5Transform(byte block[]) {
long a = state[0];
long b = state[1];
long c = state[2];
long d = state[3];
long x[] = new long[16];
Decode(x, block, 64);
a = FF(a, b, c, d, x[0], 7L, 0xd76aa478L);
d = FF(d, a, b, c, x[1], 12L, 0xe8c7b756L);
c = FF(c, d, a, b, x[2], 17L, 0x242070dbL);
b = FF(b, c, d, a, x[3], 22L, 0xc1bdceeeL);
a = FF(a, b, c, d, x[4], 7L, 0xf57c0fafL);
d = FF(d, a, b, c, x[5], 12L, 0x4787c62aL);
c = FF(c, d, a, b, x[6], 17L, 0xa8304613L);
b = FF(b, c, d, a, x[7], 22L, 0xfd469501L);
a = FF(a, b, c, d, x[8], 7L, 0x698098d8L);
d = FF(d, a, b, c, x[9], 12L, 0x8b44f7afL);
c = FF(c, d, a, b, x[10], 17L, 0xffff5bb1L);
b = FF(b, c, d, a, x[11], 22L, 0x895cd7beL);
a = FF(a, b, c, d, x[12], 7L, 0x6b901122L);
d = FF(d, a, b, c, x[13], 12L, 0xfd987193L);
c = FF(c, d, a, b, x[14], 17L, 0xa679438eL);
b = FF(b, c, d, a, x[15], 22L, 0x49b40821L);
a = GG(a, b, c, d, x[1], 5L, 0xf61e2562L);
d = GG(d, a, b, c, x[6], 9L, 0xc040b340L);
c = GG(c, d, a, b, x[11], 14L, 0x265e5a51L);
b = GG(b, c, d, a, x[0], 20L, 0xe9b6c7aaL);
a = GG(a, b, c, d, x[5], 5L, 0xd62f105dL);
d = GG(d, a, b, c, x[10], 9L, 0x2441453L);
c = GG(c, d, a, b, x[15], 14L, 0xd8a1e681L);
b = GG(b, c, d, a, x[4], 20L, 0xe7d3fbc8L);
a = GG(a, b, c, d, x[9], 5L, 0x21e1cde6L);
d = GG(d, a, b, c, x[14], 9L, 0xc33707d6L);
c = GG(c, d, a, b, x[3], 14L, 0xf4d50d87L);
b = GG(b, c, d, a, x[8], 20L, 0x455a14edL);
a = GG(a, b, c, d, x[13], 5L, 0xa9e3e905L);
d = GG(d, a, b, c, x[2], 9L, 0xfcefa3f8L);
c = GG(c, d, a, b, x[7], 14L, 0x676f02d9L);
b = GG(b, c, d, a, x[12], 20L, 0x8d2a4c8aL);
a = HH(a, b, c, d, x[5], 4L, 0xfffa3942L);
d = HH(d, a, b, c, x[8], 11L, 0x8771f681L);
c = HH(c, d, a, b, x[11], 16L, 0x6d9d6122L);
b = HH(b, c, d, a, x[14], 23L, 0xfde5380cL);
a = HH(a, b, c, d, x[1], 4L, 0xa4beea44L);
d = HH(d, a, b, c, x[4], 11L, 0x4bdecfa9L);
c = HH(c, d, a, b, x[7], 16L, 0xf6bb4b60L);
b = HH(b, c, d, a, x[10], 23L, 0xbebfbc70L);
a = HH(a, b, c, d, x[13], 4L, 0x289b7ec6L);
d = HH(d, a, b, c, x[0], 11L, 0xeaa127faL);
c = HH(c, d, a, b, x[3], 16L, 0xd4ef3085L);
b = HH(b, c, d, a, x[6], 23L, 0x4881d05L);
a = HH(a, b, c, d, x[9], 4L, 0xd9d4d039L);
d = HH(d, a, b, c, x[12], 11L, 0xe6db99e5L);
c = HH(c, d, a, b, x[15], 16L, 0x1fa27cf8L);
b = HH(b, c, d, a, x[2], 23L, 0xc4ac5665L);
a = II(a, b, c, d, x[0], 6L, 0xf4292244L);
d = II(d, a, b, c, x[7], 10L, 0x432aff97L);
c = II(c, d, a, b, x[14], 15L, 0xab9423a7L);
b = II(b, c, d, a, x[5], 21L, 0xfc93a039L);
a = II(a, b, c, d, x[12], 6L, 0x655b59c3L);
d = II(d, a, b, c, x[3], 10L, 0x8f0ccc92L);
c = II(c, d, a, b, x[10], 15L, 0xffeff47dL);
b = II(b, c, d, a, x[1], 21L, 0x85845dd1L);
a = II(a, b, c, d, x[8], 6L, 0x6fa87e4fL);
d = II(d, a, b, c, x[15], 10L, 0xfe2ce6e0L);
c = II(c, d, a, b, x[6], 15L, 0xa3014314L);
b = II(b, c, d, a, x[13], 21L, 0x4e0811a1L);
a = II(a, b, c, d, x[4], 6L, 0xf7537e82L);
d = II(d, a, b, c, x[11], 10L, 0xbd3af235L);
c = II(c, d, a, b, x[2], 15L, 0x2ad7d2bbL);
b = II(b, c, d, a, x[9], 21L, 0xeb86d391L);
state[0] += a;
state[1] += b;
state[2] += c;
state[3] += d;
}
private void md5Update(byte inbuf[], int inputLen) {
byte block[] = new byte[64];
int index = (int) (count[0] >>> 3) & 0x3f;
if ((count[0] += inputLen << 3) < (inputLen << 3))
count[1]++;
count[1] += inputLen >>> 29;
int partLen = 64 - index;
int i;
if (inputLen >= partLen) {
md5Memcpy(buffer, inbuf, index, 0, partLen);
md5Transform(buffer);
for (i = partLen; i + 63 < inputLen; i += 64) {
md5Memcpy(block, inbuf, 0, i, 64);
md5Transform(block);
}
index = 0;
} else
i = 0;
md5Memcpy(buffer, inbuf, index, i, inputLen - i);
}
public static void main(String[] args) {
System.out.println(MD5.encode("1"));
}
}
|
[
"admin@163.com"
] |
admin@163.com
|
fbdc62ce916e0dacac7bcebb176a4231c25a4948
|
c08e45462ababbcab4cd26d72e8629afd0a447ca
|
/WaitersHelper/CommonTransfer/src/main/java/transferFiles/exceptions/UserAccessException.java
|
e7d01c6e3a545cdabd6ad117e821d73fb6c5779f
|
[] |
no_license
|
AlexandrBrytskyi/WaitersHelperProject
|
ba2391001ee429fc21b7acbf0076dcfa887276f3
|
01ea5c3344263c118c0b9cff59336a7d8a232c5f
|
refs/heads/master
| 2021-06-14T23:27:24.406428
| 2017-01-18T14:32:13
| 2017-01-18T14:32:13
| 49,665,616
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 166
|
java
|
package transferFiles.exceptions;
public class UserAccessException extends Exception {
public UserAccessException(String s) {
super(s);
}
}
|
[
"brytskyi@mail.ua"
] |
brytskyi@mail.ua
|
121faa7e56ec49def05d1b6e9745842a1173fefb
|
8bb91e0b162a80eec1af1aea43f8600ff924277a
|
/src/test/java/com/lun/easy/BinaryTreeTiltTest.java
|
85363628f049758e6fd6d0402c05bafdb8243a1d
|
[] |
no_license
|
JallenKwong/LeetCode
|
39d47d40812938f46a06bbf0be1d1b92f14f1c05
|
75ce2f14c20edde29271355dd52c34b5b463ec50
|
refs/heads/master
| 2021-06-10T12:33:37.667434
| 2021-03-24T13:31:49
| 2021-03-24T13:31:49
| 133,792,420
| 0
| 0
| null | 2020-10-12T21:31:46
| 2018-05-17T09:42:07
|
Java
|
UTF-8
|
Java
| false
| false
| 489
|
java
|
package com.lun.easy;
import static org.junit.Assert.*;
import org.junit.Test;
import com.lun.util.BinaryTree;
public class BinaryTreeTiltTest {
@Test
public void test() {
BinaryTreeTilt obj = new BinaryTreeTilt();
assertEquals(1, obj.findTilt(BinaryTree.integers2BinaryTree(1, 2, 3)));
assertEquals(15, obj.findTilt(BinaryTree.integers2BinaryTree(4, 2, 9, 3, 5, null, 7)));
assertEquals(9, obj.findTilt(BinaryTree.integers2BinaryTree(21, 7, 14, 1, 1, 2, 2, 3, 3)));
}
}
|
[
"jallenkwong@163.com"
] |
jallenkwong@163.com
|
01d61b9448ae255f67609e0d7b96250554122c50
|
d6d1ff952b4ffdb11a6c571326c81d28487f7778
|
/src/main/java/info/loenwind/enderioaddons/common/GuiIds.java
|
c82758f108daa4313537ec570dfd0c0fa9ddaaf5
|
[
"CC0-1.0",
"LicenseRef-scancode-public-domain",
"Unlicense"
] |
permissive
|
HenryLoenwind/EnderIOAddons
|
7e6eb09bed132a2b0619e81cbb7e73855c1e38fb
|
cbbaae9e797dcf2a44a7d375d5c2b827e8c85ea8
|
refs/heads/master
| 2020-04-12T08:08:09.528934
| 2017-04-17T22:25:06
| 2017-04-17T22:25:06
| 40,996,754
| 25
| 16
| null | 2016-01-20T19:43:44
| 2015-08-18T20:47:34
|
Java
|
UTF-8
|
Java
| false
| false
| 1,546
|
java
|
package info.loenwind.enderioaddons.common;
import java.lang.reflect.Field;
import java.util.Map;
import cpw.mods.fml.common.network.IGuiHandler;
import crazypants.enderio.EnderIO;
public class GuiIds {
public static int GUI_ID_DRAIN = 0;
public static int GUI_ID_COBBLEWORKS = 0;
public static int GUI_ID_WATERWORKS = 0;
public static int GUI_ID_IHOPPER = 0;
public static int GUI_ID_NIARD = 0;
public static int GUI_ID_VOIDTANK = 0;
public static int GUI_ID_PMON = 0;
public static int GUI_ID_TCOM = 0;
public static int GUI_ID_MAGCHARGER = 0;
public static int GUI_ID_AFARM = 0;
private GuiIds() {
}
public static void compute_GUI_IDs() {
GUI_ID_DRAIN = nextID();
GUI_ID_COBBLEWORKS = nextID();
GUI_ID_WATERWORKS = nextID();
GUI_ID_IHOPPER = nextID();
GUI_ID_NIARD = nextID();
GUI_ID_VOIDTANK = nextID();
GUI_ID_PMON = nextID();
GUI_ID_TCOM = nextID();
GUI_ID_MAGCHARGER = nextID();
GUI_ID_AFARM = nextID();
}
private static int lastId = crazypants.enderio.GuiHandler.GUI_ID_CAP_BANK;
static private int nextID() {
try {
Field field = EnderIO.guiHandler.getClass().getDeclaredField("guiHandlers");
field.setAccessible(true);
Map<Integer, IGuiHandler> guiHandlers = (Map<Integer, IGuiHandler>) field.get(EnderIO.guiHandler);
while (++lastId > 0) {
if (!guiHandlers.containsKey(lastId)) {
return lastId;
}
}
} catch (Exception e) {
throw new RuntimeException(e);
}
return -1;
}
}
|
[
"henry@loenwind.info"
] |
henry@loenwind.info
|
9466eec91b80f6851015ea583487d20e87cd02f7
|
b09f56919e3baac6aff3cc7a590505b21efd72eb
|
/src/main/java/com/zorm/annotations/reflection/TypeEnvironmentFactory.java
|
222b8761550eb188261ab002d07fd6f5f79956ff
|
[] |
no_license
|
SHENJIAYUN/zorm
|
51d2d2674dfb98bf77203e3de35f7f5191148180
|
fe849f55d5523bd24d5069e8f54678108a9de162
|
refs/heads/master
| 2021-01-18T21:50:28.686984
| 2016-05-19T14:52:39
| 2016-05-19T14:52:39
| 52,928,318
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,790
|
java
|
package com.zorm.annotations.reflection;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
public class TypeEnvironmentFactory {
/**
* @return Returns a type environment suitable for resolving types occurring
* in subclasses of the context class.
*/
public TypeEnvironment getEnvironment(Class context) {
if ( context == null ) {
return IdentityTypeEnvironment.INSTANCE;
}
return createEnvironment( context );
}
public TypeEnvironment getEnvironment(Type context) {
if ( context == null ) {
return IdentityTypeEnvironment.INSTANCE;
}
return createEnvironment( context );
}
public TypeEnvironment getEnvironment(Type t, TypeEnvironment context) {
return CompoundTypeEnvironment.create( getEnvironment(t), context );
}
public TypeEnvironment toApproximatingEnvironment(TypeEnvironment context) {
return CompoundTypeEnvironment.create( new ApproximatingTypeEnvironment(), context );
}
private TypeEnvironment createEnvironment(Type context) {
return new TypeSwitch<TypeEnvironment>() {
@Override
public TypeEnvironment caseClass(Class classType) {
return CompoundTypeEnvironment.create(
createSuperTypeEnvironment( classType ),
getEnvironment( classType.getSuperclass() )
);
}
@Override
public TypeEnvironment caseParameterizedType(ParameterizedType parameterizedType) {
return createEnvironment( parameterizedType );
}
@Override
public TypeEnvironment defaultCase(Type t) {
throw new IllegalArgumentException( "Invalid type for generating environment: " + t );
}
}.doSwitch( context );
}
private TypeEnvironment createSuperTypeEnvironment(Class clazz) {
Class superclass = clazz.getSuperclass();
if ( superclass == null ) {
return IdentityTypeEnvironment.INSTANCE;
}
Type[] formalArgs = superclass.getTypeParameters();
Type genericSuperclass = clazz.getGenericSuperclass();
if ( genericSuperclass instanceof Class ) {
return IdentityTypeEnvironment.INSTANCE;
}
if ( genericSuperclass instanceof ParameterizedType ) {
Type[] actualArgs = ( (ParameterizedType) genericSuperclass ).getActualTypeArguments();
return new SimpleTypeEnvironment( formalArgs, actualArgs );
}
throw new AssertionError( "Should be unreachable" );
}
private TypeEnvironment createEnvironment(ParameterizedType t) {
Type[] tactuals = t.getActualTypeArguments();
Type rawType = t.getRawType();
if ( rawType instanceof Class ) {
TypeVariable[] tparms = ( (Class) rawType ).getTypeParameters();
return new SimpleTypeEnvironment( tparms, tactuals );
}
return IdentityTypeEnvironment.INSTANCE;
}
}
|
[
"1096392316@qq.com"
] |
1096392316@qq.com
|
c2007387ccf150b68a66c54ef9d666a44d377dd2
|
272ecbf30d2f7561c7924fff4f852d004f96270e
|
/chzy-job/job-admin/src/main/java/com/xxl/job/admin/JobAdminApplication.java
|
3aea41acdd53aefee2ee1b37d56da53c6150cdc6
|
[
"Apache-2.0"
] |
permissive
|
liguangyue/chzy
|
10be54bde6a2ca7c6d7ace185a4e850625b36e28
|
4a8523ea989da49eb3a46f97d248c5662186c4ed
|
refs/heads/master
| 2022-06-26T13:36:55.576677
| 2019-11-06T08:47:24
| 2019-11-06T08:47:24
| 219,940,889
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 330
|
java
|
package com.xxl.job.admin;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
*
*/
@SpringBootApplication
public class JobAdminApplication {
public static void main(String[] args) {
SpringApplication.run(JobAdminApplication.class, args);
}
}
|
[
"liy7@asiainfo.com"
] |
liy7@asiainfo.com
|
2135265810e6f8c1e09af96ccc3359ee4ef39d9a
|
70f7a06017ece67137586e1567726579206d71c7
|
/alimama/src/main/java/com/taobao/android/protodb/R.java
|
7db43a1290166c2ccfb9e2312a61b4fc03153a65
|
[] |
no_license
|
liepeiming/xposed_chatbot
|
5a3842bd07250bafaffa9f468562021cfc38ca25
|
0be08fc3e1a95028f8c074f02ca9714dc3c4dc31
|
refs/heads/master
| 2022-12-20T16:48:21.747036
| 2020-10-14T02:37:49
| 2020-10-14T02:37:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 225
|
java
|
package com.taobao.android.protodb;
public final class R {
private R() {
}
public static final class string {
public static final int app_name = 2131296331;
private string() {
}
}
}
|
[
"zhangquan@snqu.com"
] |
zhangquan@snqu.com
|
0474cfc08e9b044784323a7c0e8be4720b7d778a
|
11ac64cb15306316cd09dfce8c3898eff42dbfe0
|
/src/main/java/lesson9/Student.java
|
3ed471217d60a712f924152b5bd5b8c9f8314aac
|
[] |
no_license
|
baur100/JavaCore7
|
4eb8dc0ed019071c90663662a687689a95fc9bf3
|
bec18c64dacc3e774efed34a93ebb17aa33a57e6
|
refs/heads/master
| 2023-02-25T08:25:09.243209
| 2020-11-28T03:30:47
| 2020-11-28T03:30:47
| 298,727,623
| 0
| 1
| null | 2020-11-24T03:23:27
| 2020-09-26T03:13:38
|
Java
|
UTF-8
|
Java
| false
| false
| 150
|
java
|
package lesson9;
public class Student {
public String name;
public String lastName;
public String[] subjects;
public String major;
}
|
[
"baurzhan.zh@gmail.com"
] |
baurzhan.zh@gmail.com
|
31477ac684393f75e441c70f36f882883d9cbb5c
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/cc5g-20220314/src/main/java/com/aliyun/cc5g20220314/models/UpdateWirelessCloudConnectorResponseBody.java
|
a5677f2a7cf6862f55b3d036dcd2205c243420d0
|
[
"Apache-2.0"
] |
permissive
|
aliyun/alibabacloud-java-sdk
|
83a6036a33c7278bca6f1bafccb0180940d58b0b
|
008923f156adf2e4f4785a0419f60640273854ec
|
refs/heads/master
| 2023-09-01T04:10:33.640756
| 2023-09-01T02:40:45
| 2023-09-01T02:40:45
| 288,968,318
| 40
| 45
| null | 2023-06-13T02:47:13
| 2020-08-20T09:51:08
|
Java
|
UTF-8
|
Java
| false
| false
| 743
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.cc5g20220314.models;
import com.aliyun.tea.*;
public class UpdateWirelessCloudConnectorResponseBody extends TeaModel {
@NameInMap("RequestId")
public String requestId;
public static UpdateWirelessCloudConnectorResponseBody build(java.util.Map<String, ?> map) throws Exception {
UpdateWirelessCloudConnectorResponseBody self = new UpdateWirelessCloudConnectorResponseBody();
return TeaModel.build(map, self);
}
public UpdateWirelessCloudConnectorResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
c88784d798d9ec47fcf476c4a2a67fcc6d0023ab
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/5/5_b7cfd128787366f2bc0473c73df723f58cb82495/Event/5_b7cfd128787366f2bc0473c73df723f58cb82495_Event_t.java
|
1f3835bce67e3acd9c57fd976bf74cd34b9a88bb
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,139
|
java
|
/*
* Scriptographer
*
* This file is part of Scriptographer, a Plugin for Adobe Illustrator.
*
* Copyright (c) 2002-2008 Juerg Lehni, http://www.scratchdisk.com.
* All rights reserved.
*
* Please visit http://scriptographer.com/ for updates and contact.
*
* -- GPL LICENSE NOTICE --
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* -- GPL LICENSE NOTICE --
*
* File created on 21.12.2004.
*
* $Id$
*/
package com.scriptographer.ai;
/**
* @author lehni
*/
public class Event {
private Point position;
private Point lastPosition;
private Point delta;
private int count;
private double pressure;
protected Event() {
// Start with valid values, for mouse move events before the first mouse up.
setValues(0, 0, 0, 0, true);
}
protected boolean setValues(float x, float y, int pressure,
float deltaThreshold, boolean start) {
if (deltaThreshold == 0 || position.getDistance(x, y) >= deltaThreshold) {
if (start) {
lastPosition = null;
delta.set(0, 0);
count = 0;
} else {
lastPosition = position;
delta.set(x - position.x, y - position.y);
count++;
}
position = new Point(x, y);
this.pressure = pressure / 255.0;
return true;
}
return false;
}
public String toString() {
StringBuffer buf = new StringBuffer(16);
buf.append("{ point: ").append(position.toString());
buf.append(", pressure: ").append(pressure);
buf.append(" }");
return buf.toString();
}
/**
* @deprecated
*/
public Point getPoint() {
return new Point(position);
}
public Point getPosition() {
return new Point(position);
}
public Point getLastPosition() {
return new Point(lastPosition);
}
public Point getDelta() {
return new Point(delta);
}
public double getPressure() {
return pressure;
}
public int getCount() {
return count;
}
// TODO: Consider adding these, present since CS2
/**
* For graphic tablets, tangential pressure on the finger wheel of the
* airbrush tool.
*/
// AIToolPressure stylusWheel;
/*
* How the tool is angled, also called altitude or elevation.
*/
// AIToolAngle tilt;
/*
* The direction of tilt, measured clockwise in degrees around the Z axis,
* also called azimuth,
*/
// AIToolAngle bearing;
/*
* Rotation of the tool, measured clockwise in degrees around the tool's
* barrel.
*/
// AIToolAngle rotation;
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
d01d61f77da244eec8a698d97431badd07285087
|
4e6d64f5d1bdf98916abcc55e0b09ab65f0f5a09
|
/src/main/java/com/avinash/spring/secuirty/example/BecryptTest.java
|
031ba3dee6835c8b1d62245ca17329e0db606d24
|
[] |
no_license
|
AvinashTiwari/JavaSecuritySample1
|
db423a8d4d10300827b56261836c2b17cca56afd
|
e592247da970e10b50280dabaef249ce9bac538c
|
refs/heads/master
| 2021-08-30T12:13:36.086023
| 2017-12-17T21:44:14
| 2017-12-17T21:44:14
| 114,497,250
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 336
|
java
|
package com.avinash.spring.secuirty.example;
import org.junit.Test;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
public class BecryptTest {
@Test
public void beCrypTest() {
BCryptPasswordEncoder nw = new BCryptPasswordEncoder();
String str = nw.encode("test");
System.out.println(str);
}
}
|
[
"qwe123kids@gmail.com"
] |
qwe123kids@gmail.com
|
2128450582b50d20b7bb01572024b71c69e169e7
|
4aa90348abcb2119011728dc067afd501f275374
|
/app/src/main/java/com/tencent/mm/ag/g.java
|
20f600bce31c1f06828b4335d84b6d753ba31fc0
|
[] |
no_license
|
jambestwick/HackWechat
|
0d4ceb2d79ccddb45004ca667e9a6a984a80f0f6
|
6a34899c8bfd50d19e5a5ec36a58218598172a6b
|
refs/heads/master
| 2022-01-27T12:48:43.446804
| 2021-12-29T10:36:30
| 2021-12-29T10:36:30
| 249,366,791
| 0
| 0
| null | 2020-03-23T07:48:32
| 2020-03-23T07:48:32
| null |
UTF-8
|
Java
| false
| false
| 1,868
|
java
|
package com.tencent.mm.ag;
import com.tencent.mm.g.b.z;
import com.tencent.mm.sdk.e.c.a;
import java.lang.reflect.Field;
public final class g extends z {
protected static a gJc;
static {
a aVar = new a();
aVar.hSY = new Field[6];
aVar.columns = new String[7];
StringBuilder stringBuilder = new StringBuilder();
aVar.columns[0] = "openId";
aVar.xjA.put("openId", "TEXT PRIMARY KEY ");
stringBuilder.append(" openId TEXT PRIMARY KEY ");
stringBuilder.append(", ");
aVar.xjz = "openId";
aVar.columns[1] = "brandUsername";
aVar.xjA.put("brandUsername", "TEXT default '' ");
stringBuilder.append(" brandUsername TEXT default '' ");
stringBuilder.append(", ");
aVar.columns[2] = "headImgUrl";
aVar.xjA.put("headImgUrl", "TEXT");
stringBuilder.append(" headImgUrl TEXT");
stringBuilder.append(", ");
aVar.columns[3] = "nickname";
aVar.xjA.put("nickname", "TEXT");
stringBuilder.append(" nickname TEXT");
stringBuilder.append(", ");
aVar.columns[4] = "kfType";
aVar.xjA.put("kfType", "INTEGER");
stringBuilder.append(" kfType INTEGER");
stringBuilder.append(", ");
aVar.columns[5] = "updateTime";
aVar.xjA.put("updateTime", "LONG");
stringBuilder.append(" updateTime LONG");
aVar.columns[6] = "rowid";
aVar.xjB = stringBuilder.toString();
gJc = aVar;
}
protected final a Ac() {
return gJc;
}
public g(String str, String str2, String str3, String str4, int i, long j) {
this.field_openId = str;
this.field_brandUsername = str2;
this.field_headImgUrl = str3;
this.field_nickname = str4;
this.field_kfType = i;
this.field_updateTime = j;
}
}
|
[
"malin.myemail@163.com"
] |
malin.myemail@163.com
|
3e396d839d3a838ae89fa2a78d2b8f2e550e51a3
|
346698242d16e1380ecc03d70e8281f576f6c4c8
|
/Building/src/com/e1858/building/upload/AlbumHelper.java
|
33926641b33071959b0ddc0047aba0451b098fb0
|
[] |
no_license
|
wangzhongli/building
|
100544995b353b6b621ce52afabf6e4b2a33fd4c
|
eb6367c3f9a0c7c7406c60c70e5a2b0927d073e1
|
refs/heads/master
| 2020-05-07T05:52:39.676658
| 2015-03-30T02:16:05
| 2015-03-30T02:16:05
| 33,098,517
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,333
|
java
|
package com.e1858.building.upload;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.provider.MediaStore.Audio.Albums;
import android.provider.MediaStore.Images.Media;
import android.provider.MediaStore.Images.Thumbnails;
import android.util.Log;
/**
* 专辑帮助类
*
* @author Administrator
*
*/
public class AlbumHelper {
final String TAG = getClass().getSimpleName();
Context context;
ContentResolver cr;
// 缩略图列表
HashMap<String, String> thumbnailList = new HashMap<String, String>();
// 专辑列表
List<HashMap<String, String>> albumList = new ArrayList<HashMap<String, String>>();
HashMap<String, ImageBucket> bucketList = new HashMap<String, ImageBucket>();
private static AlbumHelper instance;
private AlbumHelper() {
}
public static AlbumHelper getHelper() {
if (instance == null) {
instance = new AlbumHelper();
}
return instance;
}
/**
* 初始化
*
* @param context
*/
public void init(Context context) {
if (this.context == null) {
this.context = context;
cr = context.getContentResolver();
}
}
/**
* 得到缩略图
*/
private void getThumbnail() {
String[] projection = { Thumbnails._ID, Thumbnails.IMAGE_ID,
Thumbnails.DATA };
Cursor cursor = cr.query(Thumbnails.EXTERNAL_CONTENT_URI, projection,
null, null, null);
getThumbnailColumnData(cursor);
}
/**
* 从数据库中得到缩略图
*
* @param cur
*/
private void getThumbnailColumnData(Cursor cur) {
if (cur.moveToFirst()) {
int _id;
int image_id;
String image_path;
int _idColumn = cur.getColumnIndex(Thumbnails._ID);
int image_idColumn = cur.getColumnIndex(Thumbnails.IMAGE_ID);
int dataColumn = cur.getColumnIndex(Thumbnails.DATA);
do {
// Get the field values
_id = cur.getInt(_idColumn);
image_id = cur.getInt(image_idColumn);
image_path = cur.getString(dataColumn);
// Do something with the values.
// Log.i(TAG, _id + " image_id:" + image_id + " path:"
// + image_path + "---");
// HashMap<String, String> hash = new HashMap<String, String>();
// hash.put("image_id", image_id + "");
// hash.put("path", image_path);
// thumbnailList.add(hash);
thumbnailList.put("" + image_id, image_path);
} while (cur.moveToNext());
}
}
/**
* 得到原图
*/
void getAlbum() {
String[] projection = { Albums._ID, Albums.ALBUM, Albums.ALBUM_ART,
Albums.ALBUM_KEY, Albums.ARTIST, Albums.NUMBER_OF_SONGS };
Cursor cursor = cr.query(Albums.EXTERNAL_CONTENT_URI, projection, null,
null, null);
getAlbumColumnData(cursor);
}
/**
* 从本地数据库中得到原图
*
* @param cur
*/
private void getAlbumColumnData(Cursor cur) {
if (cur.moveToFirst()) {
int _id;
String album;
String albumArt;
String albumKey;
String artist;
int numOfSongs;
int _idColumn = cur.getColumnIndex(Albums._ID);
int albumColumn = cur.getColumnIndex(Albums.ALBUM);
int albumArtColumn = cur.getColumnIndex(Albums.ALBUM_ART);
int albumKeyColumn = cur.getColumnIndex(Albums.ALBUM_KEY);
int artistColumn = cur.getColumnIndex(Albums.ARTIST);
int numOfSongsColumn = cur.getColumnIndex(Albums.NUMBER_OF_SONGS);
do {
// Get the field values
_id = cur.getInt(_idColumn);
album = cur.getString(albumColumn);
albumArt = cur.getString(albumArtColumn);
albumKey = cur.getString(albumKeyColumn);
artist = cur.getString(artistColumn);
numOfSongs = cur.getInt(numOfSongsColumn);
// Do something with the values.
Log.i(TAG, _id + " album:" + album + " albumArt:" + albumArt
+ "albumKey: " + albumKey + " artist: " + artist
+ " numOfSongs: " + numOfSongs + "---");
HashMap<String, String> hash = new HashMap<String, String>();
hash.put("_id", _id + "");
hash.put("album", album);
hash.put("albumArt", albumArt);
hash.put("albumKey", albumKey);
hash.put("artist", artist);
hash.put("numOfSongs", numOfSongs + "");
albumList.add(hash);
} while (cur.moveToNext());
}
}
/**
* 是否创建了图片集
*/
boolean hasBuildImagesBucketList = false;
/**
* 得到图片集
*/
void buildImagesBucketList() {
long startTime = System.currentTimeMillis();
// 构造缩略图索引
getThumbnail();
// 构造相册索引
String columns[] = new String[] { Media._ID, Media.BUCKET_ID,
Media.PICASA_ID, Media.DATA, Media.DISPLAY_NAME, Media.TITLE,
Media.SIZE, Media.BUCKET_DISPLAY_NAME };
// 得到一个游标
Cursor cur = cr.query(Media.EXTERNAL_CONTENT_URI, columns, null, null,
null);
if (cur.moveToFirst()) {
// 获取指定列的索引
int photoIDIndex = cur.getColumnIndexOrThrow(Media._ID);
int photoPathIndex = cur.getColumnIndexOrThrow(Media.DATA);
int photoNameIndex = cur.getColumnIndexOrThrow(Media.DISPLAY_NAME);
int photoTitleIndex = cur.getColumnIndexOrThrow(Media.TITLE);
int photoSizeIndex = cur.getColumnIndexOrThrow(Media.SIZE);
int bucketDisplayNameIndex = cur
.getColumnIndexOrThrow(Media.BUCKET_DISPLAY_NAME);
int bucketIdIndex = cur.getColumnIndexOrThrow(Media.BUCKET_ID);
int picasaIdIndex = cur.getColumnIndexOrThrow(Media.PICASA_ID);
// 获取图片总数
int totalNum = cur.getCount();
do {
String _id = cur.getString(photoIDIndex);
String name = cur.getString(photoNameIndex);
String path = cur.getString(photoPathIndex);
String title = cur.getString(photoTitleIndex);
String size = cur.getString(photoSizeIndex);
String bucketName = cur.getString(bucketDisplayNameIndex);
String bucketId = cur.getString(bucketIdIndex);
String picasaId = cur.getString(picasaIdIndex);
Log.i(TAG, _id + ", bucketId: " + bucketId + ", picasaId: "
+ picasaId + " name:" + name + " path:" + path
+ " title: " + title + " size: " + size + " bucket: "
+ bucketName + "---");
ImageBucket bucket = bucketList.get(bucketId);
if (bucket == null) {
bucket = new ImageBucket();
bucketList.put(bucketId, bucket);
bucket.imageList = new ArrayList<ImageItem>();
bucket.bucketName = bucketName;
}
bucket.count++;
ImageItem imageItem = new ImageItem();
imageItem.imageId = _id;
imageItem.imagePath = path;
imageItem.thumbnailPath = thumbnailList.get(_id);
bucket.imageList.add(imageItem);
} while (cur.moveToNext());
}
Iterator<Entry<String, ImageBucket>> itr = bucketList.entrySet()
.iterator();
while (itr.hasNext()) {
Map.Entry<String, ImageBucket> entry = (Map.Entry<String, ImageBucket>) itr
.next();
ImageBucket bucket = entry.getValue();
Log.d(TAG, entry.getKey() + ", " + bucket.bucketName + ", "
+ bucket.count + " ---------- ");
for (int i = 0; i < bucket.imageList.size(); ++i) {
ImageItem image = bucket.imageList.get(i);
Log.d(TAG, "----- " + image.imageId + ", " + image.imagePath
+ ", " + image.thumbnailPath);
}
}
hasBuildImagesBucketList = true;
long endTime = System.currentTimeMillis();
Log.d(TAG, "use time: " + (endTime - startTime) + " ms");
}
/**
* 得到图片集
*
* @param refresh
* @return
*/
public List<ImageBucket> getImagesBucketList(boolean refresh) {
if (refresh || (!refresh && !hasBuildImagesBucketList)) {
buildImagesBucketList();
}
List<ImageBucket> tmpList = new ArrayList<ImageBucket>();
Iterator<Entry<String, ImageBucket>> itr = bucketList.entrySet()
.iterator();
while (itr.hasNext()) {
Map.Entry<String, ImageBucket> entry = (Map.Entry<String, ImageBucket>) itr
.next();
tmpList.add(entry.getValue());
}
return tmpList;
}
/**
* 得到原始图像路径
*
* @param image_id
* @return
*/
String getOriginalImagePath(String image_id) {
String path = null;
Log.i(TAG, "---(^o^)----" + image_id);
String[] projection = { Media._ID, Media.DATA };
Cursor cursor = cr.query(Media.EXTERNAL_CONTENT_URI, projection,
Media._ID + "=" + image_id, null, null);
if (cursor != null) {
cursor.moveToFirst();
path = cursor.getString(cursor.getColumnIndex(Media.DATA));
}
return path;
}
}
|
[
"wangzhongli@gmail.com"
] |
wangzhongli@gmail.com
|
01a2f1152b886695b0449a5649f98d6905be50c5
|
9d4f77f7dd470a4583a946e284646f2782964a79
|
/src/main/java/com/czyh/czyhweb/util/publicImage/storage/UploadManager.java
|
5a31136865c2d6156491807df6991b24eef0b935
|
[] |
no_license
|
qinkangkang/czyh
|
442fb9288607c8f50b586ce2d5e780d7566e35b3
|
7cd40bd2782ba9fc8ba92850639a74607738faa8
|
refs/heads/master
| 2021-07-24T22:47:40.460441
| 2017-11-07T08:20:13
| 2017-11-07T08:20:13
| 109,805,958
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,136
|
java
|
package com.czyh.czyhweb.util.publicImage.storage;
import java.io.File;
import java.io.IOException;
import com.czyh.czyhweb.util.publicImage.common.QiniuException;
import com.czyh.czyhweb.util.publicImage.http.Client;
import com.czyh.czyhweb.util.publicImage.http.Response;
import com.czyh.czyhweb.util.publicImage.util.StringMap;
/**
* 七牛文件上传管理器
* <p/>
* 一般默认可以使用这个类的方法来上传数据和文件。这个类自动检测文件的大小,
* 只要超过了{@link com.qiniu.common.Config#PUT_THRESHOLD}
*/
public final class UploadManager {
private final Client client;
private final Recorder recorder;
private final RecordKeyGenerator keyGen;
public UploadManager() {
this(null, null);
}
/**
* 断点上传记录。只针对 文件分块上传。
* 分块上传中,将每一块上传的记录保存下来。上传中断后可在上一次断点记录基础上上传剩余部分。
*
* @param recorder 断点记录者
*/
public UploadManager(Recorder recorder) {
this(recorder, new RecordKeyGenerator() {
@Override
public String gen(String key, File file) {
return key + "_._" + file.getAbsolutePath();
}
});
}
/**
* 断点上传记录。只针对 文件分块上传。
* 分块上传中,将每一块上传的记录保存下来。上传中断后可在上一次断点记录基础上上传剩余部分。
*
* @param recorder 断点记录者
* @param keyGen 生成文件的断点记录标示,根据生成的标示,可找到断点记录的内容
*/
public UploadManager(Recorder recorder, RecordKeyGenerator keyGen) {
client = new Client();
this.recorder = recorder;
this.keyGen = keyGen;
}
private static void checkArgs(final String key, byte[] data, File f, String token) {
String message = null;
if (f == null && data == null) {
message = "no input data";
} else if (token == null || token.equals("")) {
message = "no token";
}
if (message != null) {
throw new IllegalArgumentException(message);
}
}
/**
* 过滤用户自定义参数,只有参数名以<code>x:</code>开头的参数才会被使用
*
* @param params 待过滤的用户自定义参数
* @return 过滤后的用户自定义参数
*/
private static StringMap filterParam(StringMap params) {
final StringMap ret = new StringMap();
if (params == null) {
return ret;
}
params.forEach(new StringMap.Consumer() {
@Override
public void accept(String key, Object value) {
if (value == null) {
return;
}
String val = value.toString();
if (key.startsWith("x:") && !val.equals("")) {
ret.put(key, val);
}
}
});
return ret;
}
/**
* 上传数据
*
* @param data 上传的数据
* @param key 上传数据保存的文件名
* @param token 上传凭证
*/
public Response put(final byte[] data, final String key, final String token) throws QiniuException {
return put(data, key, token, null, null, false);
}
/**
* 上传数据
*
* @param data 上传的数据
* @param key 上传数据保存的文件名
* @param token 上传凭证
* @param params 自定义参数,如 params.put("x:foo", "foo")
* @param mime 指定文件mimetype
* @param checkCrc 是否验证crc32
* @return
* @throws QiniuException
*/
public Response put(final byte[] data, final String key, final String token, StringMap params,
String mime, boolean checkCrc) throws QiniuException {
checkArgs(key, data, null, token);
if (mime == null) {
mime = Client.DefaultMime;
}
params = filterParam(params);
return new FormUploader(client, token, key, data, params, mime, checkCrc).upload();
}
/**
* 上传文件
*
* @param filePath 上传的文件路径
* @param key 上传文件保存的文件名
* @param token 上传凭证
*/
public Response put(String filePath, String key, String token) throws QiniuException {
return put(filePath, key, token, null, null, false);
}
/**
* 上传文件
*
* @param filePath 上传的文件路径
* @param key 上传文件保存的文件名
* @param token 上传凭证
* @param params 自定义参数,如 params.put("x:foo", "foo")
* @param mime 指定文件mimetype
* @param checkCrc 是否验证crc32
*/
public Response put(String filePath, String key, String token, StringMap params,
String mime, boolean checkCrc) throws QiniuException {
return put(new File(filePath), key, token, params, mime, checkCrc);
}
/**
* 上传文件
*
* @param file 上传的文件对象
* @param key 上传文件保存的文件名
* @param token 上传凭证
*/
public Response put(File file, String key, String token) throws QiniuException {
return put(file, key, token, null, null, false);
}
/**
* 上传文件
*
* @param file 上传的文件对象
* @param key 上传文件保存的文件名
* @param token 上传凭证
* @param mime 指定文件mimetype
* @param checkCrc 是否验证crc32
*/
public Response put(File file, String key, String token, StringMap params,
String mime, boolean checkCrc) throws QiniuException {
checkArgs(key, null, file, token);
if (mime == null) {
mime = Client.DefaultMime;
}
params = filterParam(params);
// long size = file.length();//此处判断是否启用断点续传 如果传入的图片大小大于 4M启用断点上传 此处会导致http411错误
// if (size <= Config.PUT_THRESHOLD) {
// return new FormUploader(client, token, key, file, params, mime, checkCrc).upload();
// }
String recorderKey = key;
if (keyGen != null) {
recorderKey = keyGen.gen(key, file);
}
ResumeUploader uploader = new ResumeUploader(client, token, key, file,
params, mime, recorder, recorderKey);
return uploader.upload();
}
public void asyncPut(final byte[] data, final String key, final String token, StringMap params,
String mime, boolean checkCrc, UpCompletionHandler handler) throws IOException {
checkArgs(key, data, null, token);
if (mime == null) {
mime = Client.DefaultMime;
}
params = filterParam(params);
new FormUploader(client, token, key, data, params, mime, checkCrc).asyncUpload(handler);
}
}
|
[
"shemar.qin@sdeals.me"
] |
shemar.qin@sdeals.me
|
94ba20a7139eac9cabee30a16b2f93304709e177
|
e70abc02efbb8a7637eb3655f287b0a409cfa23b
|
/hyjf-admin/src/main/java/com/hyjf/admin/manager/plan/raise/PlanRaiseService.java
|
e10db98d85724ee28ed5c698b3df8c9cebd19a8d
|
[] |
no_license
|
WangYouzheng1994/hyjf
|
ecb221560460e30439f6915574251266c1a49042
|
6cbc76c109675bb1f120737f29a786fea69852fc
|
refs/heads/master
| 2023-05-12T03:29:02.563411
| 2020-05-19T13:49:56
| 2020-05-19T13:49:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 656
|
java
|
package com.hyjf.admin.manager.plan.raise;
import java.util.List;
import com.hyjf.admin.BaseService;
import com.hyjf.mybatis.model.auto.DebtPlan;
/**
* 计划募集Service
*
* @ClassName PlanRaiseService
* @author liuyang
* @date 2016年9月26日 下午3:02:12
*/
public interface PlanRaiseService extends BaseService {
/**
* 检索募集中计划的数量
*
* @Title countPlanRaise
* @param form
* @return
*/
public int countPlanRaise(PlanRaiseBean form);
/**
* 检索募集中计划列表
*
* @Title selectPlanRaiseList
* @param form
* @return
*/
public List<DebtPlan> selectPlanRaiseList(PlanRaiseBean form);
}
|
[
"heshuying@hyjf.com"
] |
heshuying@hyjf.com
|
dfe8ef943aeb7f64da40fa7f8187e48afc739d47
|
5b925d0e0a11e873dbec1d2a7f5ee1a106823bd5
|
/CoreJava/src/com/testyantra/javaapp/abstraction/Gdrive.java
|
d1544a17f40bc78e9b06489d58f2ff13829c885f
|
[] |
no_license
|
MohibHello/ELF-06June19-Testyantra-Mohib.k
|
a3a07048df9c45ccd2b7936326842851654ef968
|
b7a7594e7431987254aa08287269cf115a26ca11
|
refs/heads/master
| 2022-12-29T12:05:44.336518
| 2019-09-13T16:52:08
| 2019-09-13T16:52:08
| 192,527,313
| 0
| 0
| null | 2020-10-13T15:17:14
| 2019-06-18T11:32:01
|
Rich Text Format
|
UTF-8
|
Java
| false
| false
| 152
|
java
|
package com.testyantra.javaapp.abstraction;
public class Gdrive extends Google {
void sharedoc() {
System.out.println("share Gdive info");
}
}
|
[
"www.muhibkhan@gmail.com"
] |
www.muhibkhan@gmail.com
|
daefeaaee2e013ae52895d9c5ce44c2a7e57d496
|
194ef52b7d20eaa211881179ed94846bfc532efe
|
/tensorflow-core/tensorflow-core-api/src/test/java/org/tensorflow/AutoCloseableList.java
|
330a40bae6b722dba07fcd4659dfb06342b9d205
|
[
"Apache-2.0"
] |
permissive
|
chenkelmann/java
|
f037f5a1dc07547531043059add9b6b8021441a3
|
8282569c98cd933985bea807ad43501fed5b6911
|
refs/heads/master
| 2022-09-09T20:06:44.965876
| 2020-05-29T09:23:59
| 2020-05-29T09:23:59
| 267,619,881
| 2
| 0
|
Apache-2.0
| 2020-05-28T15:00:18
| 2020-05-28T15:00:17
| null |
UTF-8
|
Java
| false
| false
| 552
|
java
|
package org.tensorflow;
import java.util.ArrayList;
import java.util.Collection;
public final class AutoCloseableList<E extends AutoCloseable> extends ArrayList<E>
implements AutoCloseable {
public AutoCloseableList(Collection<? extends E> c) {
super(c);
}
@Override
public void close() {
Exception toThrow = null;
for (AutoCloseable c : this) {
try {
c.close();
} catch (Exception e) {
toThrow = e;
}
}
if (toThrow != null) {
throw new RuntimeException(toThrow);
}
}
}
|
[
"karl.lessard@gmail.com"
] |
karl.lessard@gmail.com
|
7163b8837961e62993d4ec7975873170d4713006
|
049c1a79c64b2ffb23b9e694ec5660486d2fc0f6
|
/src/ChooseYourOwnAdventure.java
|
01903e0b18dc0ae5d165277659a9c5208a622c41
|
[] |
no_license
|
jcornick05/Jonathan-Cornick-level0
|
3cd89d7a0136d18f5d148a9b2ab5fd7aee6c861d
|
723961139be26785643f72083e4774fa40ddd90d
|
refs/heads/master
| 2021-01-21T15:44:17.939333
| 2017-10-21T00:04:57
| 2017-10-21T00:04:57
| 91,853,862
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,928
|
java
|
import java.util.Scanner;
public class ChooseYourOwnAdventure {
public static void main(String[] args) {
System.out.println("around you is space. You have only enough fuel for one hour or sixty minutes. "
+ "What do you want to do?");
Scanner kb = new Scanner(System.in);
String ans = kb.nextLine();
if (ans.equals("look north")) {
System.out.println("To the north is a planet uninhabited with no resources or life");
ans = kb.nextLine();
}
if (ans.equals("go north")) {
System.out.println(
"You go to the planet and get stranded because you're ship runs out of fuel. And there are no resources or shops to get fuel. ");
System.exit(0);
}
if (ans.equals("look south")) {
System.out.println(
"To the south is a corrupt planet with an unstable core that is abundant with resources on the inside but it could explode any second.");
ans = kb.nextLine();
}
if (ans.equals("go south")) {
System.out.println("The planet explodes while you're gathering resources and you die.");
System.exit(0);
ans = kb.nextLine();
}
if (ans.equals("look east")) {
System.out.println(
"To the east is a planet contolled by a dictator. it is very populated and full of resources but the dictator does'nt like outsiders.");
ans = kb.nextLine();
}
if (ans.equals("go east")) {
System.out.println("You succesfully sneak onto the planet and stock up on resources");
ans = kb.nextLine();
if (ans.equals("go north")) {
System.out.println("you walk north. "
+ "You stumble into the gallows where the government is executing foreingers, you disagree with there government on this matter."
+ "If you want to save the prisoners enter a, if not enter b");
ans = kb.nextLine();
if (ans.equals("a")) {
System.out.println("You where caught freeing prisoners and sentenced to life in jail.");
System.exit(0);
}
}
}
}
}
|
[
"league@WTS5.attlocal.net"
] |
league@WTS5.attlocal.net
|
ac40d83e0290c71db02dca00e0ef90a1ecda7b90
|
0adcb787c2d7b3bbf81f066526b49653f9c8db40
|
/src/main/java/com/alipay/api/response/AlipayInsAutoUserPointQueryResponse.java
|
97d3f5a40864a14faf837f8d3a318195cc8e13be
|
[
"Apache-2.0"
] |
permissive
|
yikey/alipay-sdk-java-all
|
1cdca570c1184778c6f3cad16fe0bcb6e02d2484
|
91d84898512c5a4b29c707b0d8d0cd972610b79b
|
refs/heads/master
| 2020-05-22T13:40:11.064476
| 2019-04-11T14:11:02
| 2019-04-11T14:11:02
| 186,365,665
| 1
| 0
| null | 2019-05-13T07:16:09
| 2019-05-13T07:16:08
| null |
UTF-8
|
Java
| false
| false
| 2,764
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.ins.auto.user.point.query response.
*
* @author auto create
* @since 1.0, 2019-01-07 20:51:15
*/
public class AlipayInsAutoUserPointQueryResponse extends AlipayResponse {
private static final long serialVersionUID = 6764972124835665343L;
/**
* 用户当前积分是否可兑换
*/
@ApiField("can_exchange")
private Boolean canExchange;
/**
* 用户可用于兑换的积分值
攒油活动则表示用户可提取油量,单位为ml,例如可提取500ml
*/
@ApiField("can_exchange_amount")
private Long canExchangeAmount;
/**
* 用户剩余积分额度,可继续积攒的值
攒油活动则表示用户油桶剩余大小,单位为ml
*/
@ApiField("can_save_amount")
private Long canSaveAmount;
/**
* 用户有效积分。
攒油活动则表示可以使用的用户有效油量,单位为ml
*/
@ApiField("can_use_amount")
private Long canUseAmount;
/**
* 是否推荐用户兑换
*/
@ApiField("recommend_exchange")
private Boolean recommendExchange;
/**
* 用户积分总额度
攒油活动则表示用户油桶总大小,单位为ml,例如3000ml
*/
@ApiField("total_limit")
private Long totalLimit;
/**
* 用户总共积攒量。
攒油活动则表示积攒油量,单位为ml,例如2000ml
*/
@ApiField("total_save_amount")
private Long totalSaveAmount;
public void setCanExchange(Boolean canExchange) {
this.canExchange = canExchange;
}
public Boolean getCanExchange( ) {
return this.canExchange;
}
public void setCanExchangeAmount(Long canExchangeAmount) {
this.canExchangeAmount = canExchangeAmount;
}
public Long getCanExchangeAmount( ) {
return this.canExchangeAmount;
}
public void setCanSaveAmount(Long canSaveAmount) {
this.canSaveAmount = canSaveAmount;
}
public Long getCanSaveAmount( ) {
return this.canSaveAmount;
}
public void setCanUseAmount(Long canUseAmount) {
this.canUseAmount = canUseAmount;
}
public Long getCanUseAmount( ) {
return this.canUseAmount;
}
public void setRecommendExchange(Boolean recommendExchange) {
this.recommendExchange = recommendExchange;
}
public Boolean getRecommendExchange( ) {
return this.recommendExchange;
}
public void setTotalLimit(Long totalLimit) {
this.totalLimit = totalLimit;
}
public Long getTotalLimit( ) {
return this.totalLimit;
}
public void setTotalSaveAmount(Long totalSaveAmount) {
this.totalSaveAmount = totalSaveAmount;
}
public Long getTotalSaveAmount( ) {
return this.totalSaveAmount;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
2b607cf1fff2e38859e6ac9b81733976138034bd
|
f0d3fe0ac281c8e4c35fc9f52a17174e47999288
|
/lion-api/src/main/java/com/lancq/lion/api/push/PushMsg.java
|
d0c4b3851fa544085287f20cd93b91da35a9d514
|
[] |
no_license
|
lanchunqiu/lion
|
fc03f6dfa956ff7d2def069ea8a3a854dabbc5c1
|
69e24657fd64a0048ce864f3856765ad440cae9c
|
refs/heads/master
| 2020-04-18T18:59:45.322672
| 2019-01-28T01:25:02
| 2019-01-28T01:25:02
| 167,700,804
| 2
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,354
|
java
|
package com.lancq.lion.api.push;
/**
* @Author lancq
* @Description
* @Date 2019/1/27
*
* msgId、msgType 必填
* msgType=1 :nofication,提醒。
* 必填:title,content。没有title,则为应用名称。
* 非必填。nid 通知id,主要用于聚合通知。
* content 为push message。附加的一些业务属性,都在里边。json格式
* msgType=2 :非通知消息。不在通知栏展示。
* 必填:content。
* msgType=3 :消息+提醒
* 作为一个push消息过去。和jpush不一样。jpush的消息和提醒是分开发送的。
**/
public final class PushMsg {
private final MsgType msgType; //type
private String msgId; //返回使用
private String content; //content
public PushMsg(MsgType msgType) {
this.msgType = msgType;
}
public static PushMsg build(MsgType msgType, String content) {
PushMsg pushMessage = new PushMsg(msgType);
pushMessage.setContent(content);
return pushMessage;
}
public String getMsgId() {
return msgId;
}
public int getMsgType() {
return msgType.getValue();
}
public void setMsgId(String msgId) {
this.msgId = msgId;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
}
|
[
"1046582540@qq.com"
] |
1046582540@qq.com
|
15c1294f19f5b7438566d11675a825a824c67432
|
0365904960c1b09e3ad21f9807507009085bf522
|
/trees-provider/src/test/java/com/mattunderscore/trees/impl/TreeSelectorFactorImplTest.java
|
893132d1814d6ecd03389c7a5bb8f9b9c3451755
|
[
"BSD-3-Clause"
] |
permissive
|
mattunderscorechampion/tree-root
|
885f8c482af462c8b0bd4597943f3103155349e2
|
216fcc65044a451296a9881012443733515f58fd
|
refs/heads/master
| 2023-03-16T18:04:22.976498
| 2016-10-04T20:47:32
| 2016-10-04T20:47:32
| 21,217,047
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,062
|
java
|
/* Copyright © 2014 Matthew Champion
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of mattunderscore.com nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL MATTHEW CHAMPION BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
package com.mattunderscore.trees.impl;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import java.util.Iterator;
import org.junit.BeforeClass;
import org.junit.Test;
import com.mattunderscore.trees.Trees;
import com.mattunderscore.trees.construction.BottomUpTreeBuilder;
import com.mattunderscore.trees.linked.tree.LinkedTree;
import com.mattunderscore.trees.matchers.AlwaysMatcher;
import com.mattunderscore.trees.mutable.MutableSettableStructuredNode;
import com.mattunderscore.trees.selection.TreeSelector;
import com.mattunderscore.trees.selection.TreeSelectorFactory;
import com.mattunderscore.trees.tree.Tree;
/**
* Unit tests for TreeSelectorFactoryImpl.
* @author Matt Champion on 20/12/14
*/
public final class TreeSelectorFactorImplTest {
private static TreeSelectorFactory factory;
private static Tree<String, MutableSettableStructuredNode<String>> tree;
@BeforeClass
public static void setUpClass() {
final Trees trees = Trees.get();
factory = trees.treeSelectors();
final BottomUpTreeBuilder<String, MutableSettableStructuredNode<String>> builder = trees.treeBuilders().bottomUpBuilder();
tree = builder.create("a",
builder.create("b"),
builder.create("c"))
.build(LinkedTree.typeKey());
}
@Test
public void selectorFromMatcher() {
final TreeSelector<String> selector = factory.newSelector(new AlwaysMatcher<>());
final Iterator<Tree<String, MutableSettableStructuredNode<String>>> iterator = selector.select(tree);
final Tree<String, MutableSettableStructuredNode<String>> selectedTree = iterator.next();
assertEquals("a", selectedTree.getRoot().getElement());
assertFalse(iterator.hasNext());
}
@Test
public void selectorFromSelectorAndMatcher() {
final TreeSelector<String> selector0 = factory.newSelector(new AlwaysMatcher<String>());
final TreeSelector<String> selector1 = factory.newSelector(selector0, new AlwaysMatcher<String>());
final Iterator<Tree<String, MutableSettableStructuredNode<String>>> iterator = selector1.select(tree);
final Tree<String, MutableSettableStructuredNode<String>> selectedTree0 = iterator.next();
assertEquals("b", selectedTree0.getRoot().getElement());
final Tree<String, MutableSettableStructuredNode<String>> selectedTree1 = iterator.next();
assertEquals("c", selectedTree1.getRoot().getElement());
assertFalse(iterator.hasNext());
}
}
|
[
"mattunderscorechampion@gmail.com"
] |
mattunderscorechampion@gmail.com
|
8477a806bdac1a34ce423188bf07ea39d903791e
|
eb3707aca229ee832a4302dc3bc7486b33876d16
|
/core/test/src/org/jfantasy/file/service/FileServiceTest.java
|
33a870184e4f891d551aa0a9d2ec96710e56b1ea
|
[
"MIT"
] |
permissive
|
limaofeng/jfantasy
|
2f3a3f7e529c454bb3a982809f0cfeaef8ffafc4
|
847f789175bfe3f251c497b9926db0db04c7cf4f
|
refs/heads/master
| 2021-01-19T04:50:14.451725
| 2017-07-08T03:44:56
| 2017-07-08T03:44:56
| 44,217,781
| 12
| 12
| null | 2016-01-06T08:36:45
| 2015-10-14T02:00:07
|
Java
|
UTF-8
|
Java
| false
| false
| 5,506
|
java
|
package org.jfantasy.file.service;
import org.jfantasy.file.bean.FileDetailKey;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;
@RunWith(SpringJUnit4ClassRunner.class)
@WebAppConfiguration
@ContextConfiguration(locations = {"classpath:spring/applicationContext.xml"})
public class FileServiceTest {
private final static Log logger = LogFactory.getLog(FileServiceTest.class);
@Autowired
private FileService fileService;
@Autowired
private FileUploadService fileUploadService;
@Autowired
private DirectoryService directoryService;
//测试数据
private FileDetailKey fileDetailKey;
@Before
public void setUp() throws Exception {
/*
try {
File file = new File(FileServiceTest.class.getResource("files/t5.jpg").getFile());
String mimeType = FileUtil.getMimeType(file);
FileDetail fileDetail = fileUploadService.upload(file, mimeType, file.getName(), "test");
this.fileDetailKey = FileDetailKey.newInstance(fileDetail.getAbsolutePath(), fileDetail.getFileManagerId());
File[] files = new File(FileServiceTest.class.getResource("files/").getFile()).listFiles();
if(files == null){
return;
}
for (File _file : files) {
fileUploadService.upload(_file, FileUtil.getMimeType(_file), _file.getName(), "test");
}
} catch (FileNotFoundException e) {
logger.error(e.getMessage(), e);
} catch (IOException e) {
logger.error(e.getMessage(), e);
}*/
}
@After
public void tearDown() throws Exception {
/*
Directory directory = directoryService.get("test");
for(FileDetail fileDetail : fileService.findFileDetail(Restrictions.eq("fileManagerId",directory.getFileManager().getId()),Restrictions.like("folder.absolutePath",directory.getDirPath(), MatchMode.START))){
this.fileService.delete(FileDetailKey.newInstance(fileDetail.getAbsolutePath(), fileDetail.getFileManagerId()));
}*/
}
@Test
public void testUpdate() throws Exception {
/*
FileDetail fileDetail = this.fileService.get(fileDetailKey);
fileDetail.setFileName("替换原生的文件名");
this.fileService.update(fileDetail);
Assert.assertEquals("替换原生的文件名", this.fileService.get(fileDetailKey).getFileName());
*/
}
@Test
public void testGetFolder() throws Exception {
/*
Folder folder = this.fileService.getFolder("/", "haolue-upload");
Assert.assertNotNull(folder);
*/
}
@Test
public void testDelete() throws Exception {
}
@Test
public void testCreateFolder() throws Exception {
}
@Test
public void testFindUniqueByMd5() throws Exception {
}
@Test
public void testFindUnique() throws Exception {
}
@Test
public void testGetFileDetail() throws Exception {
}
@Test
public void testFindFileDetailPager() throws Exception {
/*
logger.debug("> Dao findPager 方法缓存测试");
long min, max, total = 0;
long start = System.currentTimeMillis();
logger.debug(" 开始第一次查 >> ");
Pager<FileDetail> pager = this.fileService.findFileDetailPager(new Pager<FileDetail>(15), new ArrayList<PropertyFilter>());
long _temp = System.currentTimeMillis() - start;
total += _temp;
max = min = _temp;
logger.debug(" 第一次查询耗时:" + _temp + "ms");
for (int i = 2; i < 250; i++) {
start = System.currentTimeMillis();
logger.debug(" 开始第" + NumberUtil.toChinese(i) + "次查 >> ");
Pager<FileDetail> _pager = this.fileService.findFileDetailPager(new Pager<FileDetail>(15), new ArrayList<PropertyFilter>());
Assert.assertEquals(pager.getTotalCount(), _pager.getTotalCount());
Assert.assertEquals(pager.getPageItems().size(), _pager.getPageItems().size());
_temp = System.currentTimeMillis() - start;
total += _temp;
if (_temp >= max) {
max = _temp;
}
if (_temp <= min) {
min = _temp;
}
logger.debug(" 第" + NumberUtil.toChinese(i) + "次查询耗时:" + _temp + "ms");
}
logger.debug("查询耗共耗时:" + total + "ms\t平均:" + total / 250 + "ms\t最大:" + max + "ms\t最小:" + min + "ms");
*/
}
@Test
public void testListFolder() throws Exception {
// this.fileService.listFolder("/", fileDetailKey.getFileManagerId(), "absolutePath");
}
@Test
public void testListFileDetail() throws Exception {
}
@Test
public void testGetFileDetailByMd5() throws Exception {
}
@Test
public void testLocalization() throws Exception {
}
@Test
public void testGetDirectory() throws Exception {
}
@Test
public void testGetAbsolutePath() throws Exception {
}
}
|
[
"limaofeng@msn.com"
] |
limaofeng@msn.com
|
fd6724e6e36c201c0ebe2ab91b3c498f7b4651db
|
a63fc4e4e120a90bacec9a0d8ac6f29ad201196f
|
/scene/src/playn/scene/Interaction.java
|
a4b6af56f1d5838db69f1764e69cbca70836b282
|
[
"Apache-2.0"
] |
permissive
|
dyorgio/playn-1
|
e478a07e6f390ecb016b3d27b7d8a7829c9c7870
|
deeadef43e04a7256390cebe1ef661d3be12b833
|
refs/heads/master
| 2021-01-15T12:48:58.215296
| 2015-05-04T18:33:09
| 2015-05-04T18:33:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,169
|
java
|
/**
* Copyright 2010-2015 The PlayN Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing permissions and
* limitations under the License.
*/
package playn.scene;
import playn.core.Event;
import pythagoras.f.Point;
import pythagoras.f.XY;
/**
* Contains information about the interaction of which an event is a part.
*/
public abstract class Interaction<E extends Event.XY> implements XY {
private final boolean bubble;
private boolean canceled;
private Layer dispatchLayer;
private Layer capturingLayer;
/** The layer that was hit at the start of this interaction. */
public final Layer hitLayer;
/** The current event's location, translated into the hit layer's coordinate space. */
public final Point local = new Point();
/** The event currently being dispatched in this interaction. */
public E event;
/** Returns {@link #event}'s x coordinate, for convenience. */
public float x () { return event.x; }
/** Returns {@link #event}'s y coordinate, for convenience. */
public float y () { return event.y; }
/** Returns whether this interaction is captured. */
public boolean captured () {
return capturingLayer != null;
}
/** Captures this interaction. This causes subsequent events in this interaction to go only to
* the layer which is currently handling the interaction. Other layers in the interaction will
* receive a cancellation event and nothing further. */
public void capture () {
assert dispatchLayer != null;
if (canceled) throw new IllegalStateException("Cannot capture canceled interaction.");
if (capturingLayer != dispatchLayer && captured()) throw new IllegalStateException(
"Interaction already captured by " + capturingLayer);
capturingLayer = dispatchLayer;
notifyCancel(capturingLayer, event);
}
/** Cancels this interaction. All layers which normally participate in the action will be
* notified of the cancellation. */
public void cancel () {
if (!canceled) {
notifyCancel(null, event);
canceled = true;
}
}
public Interaction (Layer hitLayer, boolean bubble) {
assert hitLayer != null;
this.hitLayer = hitLayer;
this.bubble = bubble;
}
void dispatch (E event) {
// if this interaction has been manually canceled, ignore further dispatch requests
if (canceled) return;
assert event != null;
LayerUtil.screenToLayer(hitLayer, local.set(event.x, event.y), local);
this.event = event;
try {
if (bubble) {
for (Layer target = hitLayer; target != null; target = target.parent()) {
if (capturingLayer != null && target != capturingLayer) continue;
if (target.hasEventListeners()) dispatch(target);
}
} else {
if (hitLayer.hasEventListeners()) dispatch(hitLayer);
}
} finally { this.event = null; }
local.set(0, 0);
}
void dispatch (Layer layer) {
dispatchLayer = layer;
try { layer.events().emit(this); }
finally { dispatchLayer = null; }
}
/** Creates a cancel event using data from {@code source} if available. {@code source} will be
* null if this cancellation was initiated outside normal event dispatch. */
protected abstract E newCancelEvent (E source);
private void notifyCancel (Layer except, E source) {
E oldEvent = event;
event = newCancelEvent(source);
try {
if (bubble) {
for (Layer target = hitLayer; target != null; target = target.parent()) {
if (target != except && target.hasEventListeners()) dispatch(target);
}
} else {
if (hitLayer != except && hitLayer.hasEventListeners()) dispatch(hitLayer);
}
} finally { this.event = oldEvent; }
}
}
|
[
"mdb@samskivert.com"
] |
mdb@samskivert.com
|
2938c835cbc0f9e94432b2976fcca653c29f04ea
|
5b925d0e0a11e873dbec1d2a7f5ee1a106823bd5
|
/CoreJava/src/com/testyantra/javaapp/predicate/DemoPreOdd.java
|
b3bcb885be638f93a162989295961386b5c80bbc
|
[] |
no_license
|
MohibHello/ELF-06June19-Testyantra-Mohib.k
|
a3a07048df9c45ccd2b7936326842851654ef968
|
b7a7594e7431987254aa08287269cf115a26ca11
|
refs/heads/master
| 2022-12-29T12:05:44.336518
| 2019-09-13T16:52:08
| 2019-09-13T16:52:08
| 192,527,313
| 0
| 0
| null | 2020-10-13T15:17:14
| 2019-06-18T11:32:01
|
Rich Text Format
|
UTF-8
|
Java
| false
| false
| 363
|
java
|
package com.testyantra.javaapp.predicate;
import java.util.function.Predicate;
import lombok.extern.java.Log;
@Log
public class DemoPreOdd {
public static void main(String[] args) {
Predicate<Integer> p = a -> a > 4;
int[] b = { 2, 5, 9, 6, 4, 3 };
for (int i = 0; i < b.length; i++) {
if (p.test(b[i])) {
log.info("" + b[i]);
}
}
}
}
|
[
"www.muhibkhan@gmail.com"
] |
www.muhibkhan@gmail.com
|
de3171fe9d293cbbe7266511930888d9af6e2ce0
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/22/22_59f22fd3930597d3ad9fb850ce8df897ec0f7958/MockCapability/22_59f22fd3930597d3ad9fb850ce8df897ec0f7958_MockCapability_t.java
|
e26744307fb1cb5aa43ec64be457d6e87b979a68
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 1,282
|
java
|
package org.opennaas.core.resources.mock;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.opennaas.core.resources.action.IAction;
import org.opennaas.core.resources.action.IActionSet;
import org.opennaas.core.resources.capability.AbstractCapability;
import org.opennaas.core.resources.capability.CapabilityException;
import org.opennaas.core.resources.descriptor.CapabilityDescriptor;
public class MockCapability extends AbstractCapability {
public boolean sentStartUp = false;
public boolean sentMessage = false;
public MockCapability(CapabilityDescriptor descriptor) {
super(descriptor);
// TODO Auto-generated constructor stub
}
Log log = LogFactory.getLog(MockCapability.class);
@Override
public IActionSet getActionSet() throws CapabilityException {
return super.actionSet;
}
public void setActionSet(IActionSet actionSet) {
super.actionSet = actionSet;
}
public void sendRefreshActions() {
sentStartUp = true;
}
@Override
public void queueAction(IAction action) throws CapabilityException {
log.info("MOCK CAPABILITY: queued action!!");
sentMessage = true;
}
@Override
public String getCapabilityName() {
return "mockCapability";
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
7390f2c3a73dab3634604df124b455cecb7de47b
|
89c87c54a2cfaf67f5736376123699a5a401f67d
|
/java/ru/myx/ae2/indexing/ComparatorComparableDescending.java
|
4d5411b0cc4b9308ccd7e532580d62f053c6f32c
|
[] |
no_license
|
acmcms/acm-base-api
|
2a84b4f1370aa5130ae4eb4007e66893123eeca5
|
5f43b617f3a0f836b5e48cbf154d1205c6dc67ec
|
refs/heads/master
| 2023-04-02T00:10:05.830383
| 2023-03-22T22:41:34
| 2023-03-22T22:41:34
| 140,326,221
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 572
|
java
|
package ru.myx.ae2.indexing;
import java.util.Comparator;
import java.util.Map;
/**
* @author myx
*
*/
public final class ComparatorComparableDescending implements Comparator<Map.Entry<String, Comparable<Object>>> {
@Override
public final int compare(
final Map.Entry<String, Comparable<Object>> o1,
final Map.Entry<String, Comparable<Object>> o2) {
try {
return o2.getValue().compareTo( o1.getValue() );
} catch (final ClassCastException e) {
throw new IllegalArgumentException( "Not Comparable: " + o1.getValue().getClass().getName() );
}
}
}
|
[
"myx@myx.co.nz"
] |
myx@myx.co.nz
|
b2ca7973b7d468e69a9dc07551a6f08a85f2729f
|
651cfec1a9b96587206afcf65746e32040d51611
|
/AndroidProject06_Fragment/app/src/main/java/com/mycompany/myapplication/content/ReviewList.java
|
f4a762b2665a15d279020bcc352ffb1ccca166fd
|
[] |
no_license
|
Jdongju/TestRepository
|
143967fc13e70cf3e69dc0ba31ddc4577fb1f664
|
f659ba3b39d044b7addbc7ac3ea258ed9ab528e2
|
refs/heads/master
| 2021-01-20T00:47:25.514692
| 2017-07-20T01:17:49
| 2017-07-20T01:17:49
| 89,189,022
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,643
|
java
|
package com.mycompany.myapplication.content;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
import com.mycompany.myapplication.dto.Review;
import com.mycompany.myapplication.R;
import java.util.ArrayList;
import java.util.List;
public class ReviewList extends LinearLayout{
private static final String TAG=ReviewList.class.getSimpleName();
private ListView listView;
private List<Review> list=new ArrayList<>();
private ItemAdapter itemAdapter;
public ReviewList(Context context) {
super(context);
//ListView 생성
LayoutInflater inflater= LayoutInflater.from(context);
// content1의 레이아웃을 읽고, content1의 root태그를 listView에 저장..
listView=(ListView) inflater.inflate(R.layout.review_list,null);
listView.setAdapter(itemAdapter);
//listVIew를 내용으로 추가
addView(listView);
//listView 이벤트 처리
}
private AdapterView.OnItemClickListener itemClickListener= new AdapterView.OnItemClickListener(){
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Review review= (Review)itemAdapter.getItem(position);
Log.i(TAG,review.getTitle());
Log.i(TAG,review.getContent());
}
};
class ItemAdapter extends BaseAdapter{
@Override
public int getCount() {
return list.size();
}
@Override
public Object getItem(int position) {
return null;
}
@Override
public long getItemId(int position) {
return 0;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
// Item UI 객체 생성(Inflation)
// super()에서 context를 넘겼기 때문에 getContext로 얻을 수 있다.
LayoutInflater inflater= LayoutInflater.from(getContext());
//content1_item의 루트태그가 LinearLayout이기 떄문에 LinearLayout으로 받는다. 하지만 View로 받아도 상관 없음
convertView= inflater.inflate(R.layout.review_item,null);
//데이터세팅
//View가 들어간 이유는 이 item 하나 안에서 찾아야 하기 때문
ImageView photo=(ImageView) convertView.findViewById(R.id.photo);
TextView title=(TextView) convertView.findViewById(R.id.title);
ImageView star=(ImageView) convertView.findViewById(R.id.star);
TextView content=(TextView) convertView.findViewById(R.id.content);
Review item=list.get(position);
photo.setImageResource(item.getPhoto());
title.setText(item.getTitle());
star.setImageResource(item.getStar());
content.setText(item.getContent());
//convertView : 화면내에서 사라지는 아이템은 안보이는 곳으로 내려갔다가 다시 올라와서 재사용한다.
return convertView;
}
}
// 추가제거시 어댑터에게 통보한다.
public void addItem(Review item){
list.add(item);
itemAdapter.notifyDataSetChanged();
}
public void removeItem(Review item){
list.remove(item);
itemAdapter.notifyDataSetChanged();
}
}
|
[
"dj9110@naver.com"
] |
dj9110@naver.com
|
c4c23bff19028a0a83453a8f32b3cc7168ba6612
|
48d67530484b3c0cd891cc812c34949686822948
|
/src/search/repositories/Repository.java
|
c1cb6650235f647e1182c5cd956fb7c5ae10d50e
|
[] |
no_license
|
Art1985ss/Simple_Search_Engine
|
336840102c45ad25db4d214e5cff67b9a37d3dca
|
7f0b758eccf18d2730eb0514cee15b309c330123
|
refs/heads/master
| 2022-11-26T19:11:04.909981
| 2020-07-24T18:45:08
| 2020-07-24T18:45:08
| 282,292,766
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,186
|
java
|
package search.repositories;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
public class Repository<T> {
private final List<T> list = new ArrayList<>();
public boolean add(T item) {
if (item == null) {
return false;
}
return list.add(item);
}
public boolean addAll(List<T> items) {
return list.addAll(items);
}
public boolean remove(T item) {
return list.remove(item);
}
public T remove(int index) {
return list.remove(index);
}
public List<T> getAll() {
return list;
}
public int size() {
return list.size();
}
public boolean isEmpty() {
return list.isEmpty();
}
public Repository<T> getByIndexes(Set<Integer> indexes) {
Repository<T> repository = new Repository<>();
for (int i : indexes) {
repository.add(list.get(i));
}
return repository;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
for (T t : list) {
sb.append(t).append("\n");
}
return sb.toString();
}
}
|
[
"art_1985@inbox.lv"
] |
art_1985@inbox.lv
|
0daa4ea81ec614e58d4bce2b738863430b876a4a
|
e2a3ec0f62b4e0d4e2a4f5fb27b85d5d6d490dd3
|
/minegame159/minegame159/meteorclient/systems/modules/render/EntityOwner.java
|
d5514c255a029f76ed19b04929556bb53bc0eff5
|
[] |
no_license
|
3000IQPlay/crystal-client-src
|
0511ee8f6c5460097b309a668f827ac2c48e6243
|
82fc71ca0c516b8d579404afda6588746794fe5d
|
refs/heads/main
| 2023-07-28T07:39:10.709471
| 2021-09-12T06:53:27
| 2021-09-12T06:53:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,593
|
java
|
/*
* Decompiled with CFR 0.151.
*/
package minegame159.meteorclient.systems.modules.render;
import com.google.common.reflect.TypeToken;
import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import meteordevelopment.orbit.EventHandler;
import minegame159.meteorclient.events.render.Render2DEvent;
import minegame159.meteorclient.mixin.ProjectileEntityAccessor;
import minegame159.meteorclient.rendering.DrawMode;
import minegame159.meteorclient.rendering.MeshBuilder;
import minegame159.meteorclient.rendering.text.TextRenderer;
import minegame159.meteorclient.settings.BoolSetting;
import minegame159.meteorclient.settings.DoubleSetting;
import minegame159.meteorclient.settings.Setting;
import minegame159.meteorclient.settings.SettingGroup;
import minegame159.meteorclient.systems.modules.Categories;
import minegame159.meteorclient.systems.modules.Module;
import minegame159.meteorclient.utils.misc.Vec3;
import minegame159.meteorclient.utils.network.HttpUtils;
import minegame159.meteorclient.utils.network.MeteorExecutor;
import minegame159.meteorclient.utils.network.UuidNameHistoryResponseItem;
import minegame159.meteorclient.utils.render.NametagUtils;
import minegame159.meteorclient.utils.render.color.Color;
import net.minecraft.class_1297;
import net.minecraft.class_1321;
import net.minecraft.class_1496;
import net.minecraft.class_1657;
import net.minecraft.class_1676;
import net.minecraft.class_290;
public class EntityOwner
extends Module {
private final Setting<Boolean> projectiles;
private static final Color TEXT;
private final SettingGroup sgGeneral;
private final Map<UUID, String> uuidToName;
private static final MeshBuilder MB;
private final Vec3 pos;
private final Setting<Double> scale;
private static final Type RESPONSE_TYPE;
private static final Color BACKGROUND;
static {
MB = new MeshBuilder(128);
BACKGROUND = new Color(0, 0, 0, 75);
TEXT = new Color(255, 255, 255);
RESPONSE_TYPE = new TypeToken<List<UuidNameHistoryResponseItem>>(){}.getType();
}
@Override
public void onDeactivate() {
this.uuidToName.clear();
}
private void renderNametag(String string) {
TextRenderer textRenderer = TextRenderer.get();
NametagUtils.begin(this.pos);
textRenderer.beginBig();
double d = textRenderer.getWidth(string);
double d2 = -d / 2.0;
double d3 = -textRenderer.getHeight();
MB.begin(null, DrawMode.Triangles, class_290.field_1576);
MB.quad(d2 - 1.0, d3 - 1.0, d + 2.0, textRenderer.getHeight() + 2.0, BACKGROUND);
MB.end();
textRenderer.render(string, d2, d3, TEXT);
textRenderer.end();
NametagUtils.end();
}
private String getOwnerName(UUID uUID) {
class_1657 class_16572 = this.mc.field_1687.method_18470(uUID);
if (class_16572 != null) {
return class_16572.method_7334().getName();
}
String string = this.uuidToName.get(uUID);
if (string != null) {
return string;
}
MeteorExecutor.execute(() -> this.lambda$getOwnerName$0(uUID));
string = "Retrieving";
this.uuidToName.put(uUID, string);
return string;
}
public EntityOwner() {
super(Categories.Render, "entity-owner", "Displays the name of the player who owns the entity you're looking at.");
this.sgGeneral = this.settings.getDefaultGroup();
this.scale = this.sgGeneral.add(new DoubleSetting.Builder().name("scale").description("The scale of the text.").defaultValue(1.0).min(0.0).build());
this.projectiles = this.sgGeneral.add(new BoolSetting.Builder().name("projectiles").description("Display owner names of projectiles.").defaultValue(false).build());
this.pos = new Vec3();
this.uuidToName = new HashMap<UUID, String>();
}
private void lambda$getOwnerName$0(UUID uUID) {
if (this.isActive()) {
List list = (List)HttpUtils.get(String.valueOf(new StringBuilder().append("https://api.mojang.com/user/profiles/").append(uUID.toString().replace("-", "")).append("/names")), RESPONSE_TYPE);
if (this.isActive()) {
if (list == null || list.size() <= 0) {
this.uuidToName.put(uUID, "Failed to get name");
} else {
this.uuidToName.put(uUID, ((UuidNameHistoryResponseItem)list.get((int)(list.size() - 1))).name);
}
}
}
}
@EventHandler
private void onRender2D(Render2DEvent render2DEvent) {
for (class_1297 class_12972 : this.mc.field_1687.method_18112()) {
UUID uUID;
if (class_12972 instanceof class_1321) {
uUID = ((class_1321)class_12972).method_6139();
} else if (class_12972 instanceof class_1496) {
uUID = ((class_1496)class_12972).method_6768();
} else {
if (!(class_12972 instanceof class_1676) || !this.projectiles.get().booleanValue()) continue;
uUID = ((ProjectileEntityAccessor)class_12972).getOwnerUuid();
}
if (uUID == null) continue;
this.pos.set(class_12972, render2DEvent.tickDelta);
this.pos.add(0.0, (double)class_12972.method_18381(class_12972.method_18376()) + 0.75, 0.0);
if (!NametagUtils.to2D(this.pos, this.scale.get())) continue;
this.renderNametag(this.getOwnerName(uUID));
}
}
}
|
[
"65968863+notperry1234567890@users.noreply.github.com"
] |
65968863+notperry1234567890@users.noreply.github.com
|
aaf120f45a95522568d3063bb84a4c207abea7e3
|
a3bbeb443f4ed66c94f9019df060bf7ae2c44c7f
|
/test/java/src/org/omg/DynamicAny/DynValueBoxOperations.java
|
117fb9aacf6f04ca7042b32d1ab49387b42cd26c
|
[] |
no_license
|
FLC-project/ebison
|
d2bbab99a1b17800cb64e513d6bb2811e5ddb070
|
69da710bdd63a5d83af9f67a3d1fb9ba44524173
|
refs/heads/master
| 2021-08-29T05:36:39.118743
| 2021-08-22T09:45:51
| 2021-08-22T09:45:51
| 34,455,631
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,291
|
java
|
package org.omg.DynamicAny;
/**
* org/omg/DynamicAny/DynValueBoxOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.1"
* from ../../../../src/share/classes/org/omg/DynamicAny/DynamicAny.idl
* Monday, September 30, 2002 8:39:04 AM GMT
*/
/**
* DynValueBox objects support the manipulation of IDL boxed value types.
* The DynValueBox interface can represent both null and non-null value types.
* For a DynValueBox representing a non-null value type, the DynValueBox has a single component
* of the boxed type. A DynValueBox representing a null value type has no components
* and a current position of -1.
*/
public interface DynValueBoxOperations extends org.omg.DynamicAny.DynValueCommonOperations
{
/**
* Returns the boxed value as an Any.
*
* @exception InvalidValue if this object represents a null value box type
*/
org.omg.CORBA.Any get_boxed_value () throws org.omg.DynamicAny.DynAnyPackage.InvalidValue;
/**
* Replaces the boxed value with the specified value.
* If the DynBoxedValue represents a null valuetype, it is converted to a non-null value.
*
* @exception TypeMismatch if this object represents a non-null value box type and the type
* of the parameter is not matching the current boxed value type.
*/
void set_boxed_value (org.omg.CORBA.Any boxed) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch;
/**
* Returns the boxed value as a DynAny.
*
* @exception InvalidValue if this object represents a null value box type
*/
org.omg.DynamicAny.DynAny get_boxed_value_as_dyn_any () throws org.omg.DynamicAny.DynAnyPackage.InvalidValue;
/**
* Replaces the boxed value with the value contained in the parameter.
* If the DynBoxedValue represents a null valuetype, it is converted to a non-null value.
*
* @exception TypeMismatch if this object represents a non-null value box type and the type
* of the parameter is not matching the current boxed value type.
*/
void set_boxed_value_as_dyn_any (org.omg.DynamicAny.DynAny boxed) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch;
} // interface DynValueBoxOperations
|
[
"luca.breveglieri@polimi.it"
] |
luca.breveglieri@polimi.it
|
4c0c189917c4461cb5050b9e15ebaf0a8c043173
|
d0f5e1f47d0c99142b5b1932acb230a6d6db768b
|
/src/main/java/org/codenarc/idea/inspections/naming/ParameterNameInspectionTool.java
|
61ea39dff237cdd6644b0a782ea112aacda11c66
|
[] |
no_license
|
melix/codenarc-idea
|
f1e3c11c444eb05a23ce29a407e1b84ba12d20f7
|
567cb81cae1495a3d008fc4e4ab543c22ce6b204
|
refs/heads/master
| 2023-08-03T11:10:33.385264
| 2023-07-31T07:30:32
| 2023-07-31T07:30:32
| 1,278,732
| 10
| 11
| null | 2023-07-31T07:30:33
| 2011-01-21T15:03:47
|
Java
|
UTF-8
|
Java
| false
| false
| 2,064
|
java
|
package org.codenarc.idea.inspections.naming;
import com.intellij.codeInspection.LocalQuickFix;
import com.intellij.psi.PsiElement;
import java.util.Collection;
import java.util.Collections;
import javax.annotation.Generated;
import org.codenarc.idea.CodeNarcInspectionTool;
import org.codenarc.rule.Violation;
import org.codenarc.rule.naming.ParameterNameRule;
import org.jetbrains.annotations.NotNull;
@Generated("You can customize this class at the end of the file or remove this annotation to skip regeneration completely")
public class ParameterNameInspectionTool extends CodeNarcInspectionTool<ParameterNameRule> {
// this code has been generated from org.codenarc.rule.naming.ParameterNameRule
public static final String GROUP = "Naming";
public ParameterNameInspectionTool() {
super(new ParameterNameRule());
applyDefaultConfiguration(getRule());
}
@Override
public String getRuleset() {
return GROUP;
}
public void setApplyToClassNames(String value) {
getRule().setApplyToClassNames(value);
}
public String getApplyToClassNames() {
return getRule().getApplyToClassNames();
}
public void setDoNotApplyToClassNames(String value) {
getRule().setDoNotApplyToClassNames(value);
}
public String getDoNotApplyToClassNames() {
return getRule().getDoNotApplyToClassNames();
}
public void setIgnoreParameterNames(String value) {
getRule().setIgnoreParameterNames(value);
}
public String getIgnoreParameterNames() {
return getRule().getIgnoreParameterNames();
}
public void setRegex(String value) {
getRule().setRegex(value);
}
public String getRegex() {
return getRule().getRegex();
}
// custom code can be written after this line and it will be preserved during the regeneration
@Override
protected @NotNull Collection<LocalQuickFix> getQuickFixesFor(Violation violation, PsiElement violatingElement) {
return Collections.emptyList();
}
}
|
[
"vladimir@orany.cz"
] |
vladimir@orany.cz
|
a0de3239b2e3d9e9baf2ea6a2bdb9b5fd641f390
|
52e2f11ac2eb3b53925aceab273e59233454d86d
|
/src/org/ironrhino/core/remoting/InvocationWarning.java
|
6b08050519e9b6b03d8abac71c4ee5ea50f5fea8
|
[] |
no_license
|
changmingivy/ironrhino
|
6b6f87573f9096bdb9899ffafa1677bbbe890140
|
f0217826df841d2b02533195701bc8d33cbc6597
|
refs/heads/master
| 2020-06-25T04:23:35.619902
| 2017-06-30T01:19:29
| 2017-06-30T01:19:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,721
|
java
|
package org.ironrhino.core.remoting;
import java.io.Serializable;
import java.util.Date;
import org.ironrhino.core.util.DateUtils;
public class InvocationWarning implements Serializable {
private static final long serialVersionUID = -7375531820015503869L;
private String source;
private String target;
private String service;
private long time;
private boolean failed;
private Date date = new Date();
public InvocationWarning() {
}
public InvocationWarning(String source, String target, String service, long time, boolean failed) {
this.source = source;
this.target = target;
this.service = service;
this.time = time;
this.failed = failed;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public String getTarget() {
return target;
}
public void setTarget(String target) {
this.target = target;
}
public String getService() {
return service;
}
public void setService(String service) {
this.service = service;
}
public long getTime() {
return time;
}
public void setTime(long time) {
this.time = time;
}
public boolean isFailed() {
return failed;
}
public void setFailed(boolean failed) {
this.failed = failed;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("Invoke ").append(service).append(" from ").append(source).append(" to ").append(target)
.append(" tooks ").append(time).append(" ms").append(" at ").append(DateUtils.formatDatetime(date));
if (failed)
sb.append(", and failed");
return sb.toString();
}
}
|
[
"zhouyanming@gmail.com"
] |
zhouyanming@gmail.com
|
b06bdbf6e9343a565af7f32b5a2f74efb54b0284
|
78f7fd54a94c334ec56f27451688858662e1495e
|
/newsmodule/src/test/java/com/itgrids/partyanalyst/dao/hibernate/CategoryDAOHibernateTest.java
|
42be447b9e036d959fd3654a230ed6b83c182c2b
|
[] |
no_license
|
hymanath/PA
|
2e8f2ef9e1d3ed99df496761a7b72ec50d25e7ef
|
d166bf434601f0fbe45af02064c94954f6326fd7
|
refs/heads/master
| 2021-09-12T09:06:37.814523
| 2018-04-13T20:13:59
| 2018-04-13T20:13:59
| 129,496,146
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,191
|
java
|
package com.itgrids.partyanalyst.dao.hibernate;
import java.util.List;
import org.appfuse.dao.BaseDaoTestCase;
import com.itgrids.partyanalyst.dao.IUserNewsCategoryDAO;
public class CategoryDAOHibernateTest extends BaseDaoTestCase{
private IUserNewsCategoryDAO userNewsCategoryDAO;
public void setUserNewsCategoryDAO(IUserNewsCategoryDAO userNewsCategoryDAO) {
this.userNewsCategoryDAO = userNewsCategoryDAO;
}
/*public void test()
{
userNewsCategoryDAO.getAll();
}*/
/*public void testUpdateCategory(){
int res=userNewsCategoryDAO.updateCategory(1l, 10l, "sasi", "true");
System.out.println(res);
}*/
/*public void testUpdateCategory(){
int res=userNewsCategoryDAO.updateCategoryName(1l, 10l, "sasi");
System.out.println(res);
}*/
/*public void testUpdateCategory(){
int res=userNewsCategoryDAO.updateCategoryStatus(1l, 10l, "true");
System.out.println("deleted:"+res);
}*/
/*public void testgetAllCategories()
{
List<Object[]> list = categoryDAO.getAllCategories();
System.out.println(list.size());
for(Object[] params:list)
System.out.println(params[0]+" "+params[1]);
}*/
}
|
[
"itgrids@b17b186f-d863-de11-8533-00e0815b4126"
] |
itgrids@b17b186f-d863-de11-8533-00e0815b4126
|
29010894a98a5c0b07116e1d2e4d81cf18377d2c
|
a1e0706bf1bc83919654b4517730c9aed6499355
|
/protobuf/protoeditor-core/gen/com/intellij/protobuf/lang/psi/PbStringValue.java
|
f4745f6bafa97161767a5cb00954a536bf8ff509
|
[] |
no_license
|
JetBrains/intellij-plugins
|
af734c74c10e124011679e3c7307b63d794da76d
|
f6723228208bfbdd49df463046055ea20659b519
|
refs/heads/master
| 2023-08-23T02:59:46.681310
| 2023-08-22T13:35:06
| 2023-08-22T15:23:46
| 5,453,324
| 2,018
| 1,202
| null | 2023-09-13T10:51:36
| 2012-08-17T14:31:20
|
Java
|
UTF-8
|
Java
| false
| true
| 333
|
java
|
// This is a generated file. Not intended for manual editing.
package com.intellij.protobuf.lang.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface PbStringValue extends PbLiteral, PbElement, ProtoStringValue {
@NotNull
List<PbStringPart> getStringParts();
}
|
[
"intellij-monorepo-bot-no-reply@jetbrains.com"
] |
intellij-monorepo-bot-no-reply@jetbrains.com
|
d9646d77cd6bdb14b1c4fbb088b28c26fbc82078
|
f4876059e6fade07d6c746407995f12470a39670
|
/Trovit/src/main/java/org/openestate/io/trovit/xml/Pictures.java
|
74d9290abe51c3d52fe36816296be10dee374b75
|
[
"Apache-2.0"
] |
permissive
|
shkelqimbehluli/OpenEstate-IO
|
c77c63e80aa1ec5f8f5cc9ebdf31dcc260f05ff3
|
a414cd927108e83807833dd1e683d48e0d37136a
|
refs/heads/master
| 2020-05-20T15:09:29.857859
| 2016-03-11T17:52:55
| 2016-03-11T17:52:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,276
|
java
|
package org.openestate.io.trovit.xml;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.CopyStrategy2;
import org.jvnet.jaxb2_commons.lang.CopyTo2;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBCopyStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{}picture" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"picture"
})
@XmlRootElement(name = "pictures")
public class Pictures implements Cloneable, CopyTo2, Equals2, ToString2
{
protected List<Picture> picture;
/**
* Gets the value of the picture property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the picture property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getPicture().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Picture }
*
*
*/
public List<Picture> getPicture() {
if (picture == null) {
picture = new ArrayList<Picture>();
}
return this.picture;
}
public String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
{
List<Picture> thePicture;
thePicture = (((this.picture!= null)&&(!this.picture.isEmpty()))?this.getPicture():null);
strategy.appendField(locator, this, "picture", buffer, thePicture, ((this.picture!= null)&&(!this.picture.isEmpty())));
}
return buffer;
}
public Object clone() {
return copyTo(createNewInstance());
}
public Object copyTo(Object target) {
final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE;
return copyTo(null, target, strategy);
}
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof Pictures) {
final Pictures copy = ((Pictures) draftCopy);
{
Boolean pictureShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.picture!= null)&&(!this.picture.isEmpty())));
if (pictureShouldBeCopiedAndSet == Boolean.TRUE) {
List<Picture> sourcePicture;
sourcePicture = (((this.picture!= null)&&(!this.picture.isEmpty()))?this.getPicture():null);
@SuppressWarnings("unchecked")
List<Picture> copyPicture = ((List<Picture> ) strategy.copy(LocatorUtils.property(locator, "picture", sourcePicture), sourcePicture, ((this.picture!= null)&&(!this.picture.isEmpty()))));
copy.picture = null;
if (copyPicture!= null) {
List<Picture> uniquePicturel = copy.getPicture();
uniquePicturel.addAll(copyPicture);
}
} else {
if (pictureShouldBeCopiedAndSet == Boolean.FALSE) {
copy.picture = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new Pictures();
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
final Pictures that = ((Pictures) object);
{
List<Picture> lhsPicture;
lhsPicture = (((this.picture!= null)&&(!this.picture.isEmpty()))?this.getPicture():null);
List<Picture> rhsPicture;
rhsPicture = (((that.picture!= null)&&(!that.picture.isEmpty()))?that.getPicture():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "picture", lhsPicture), LocatorUtils.property(thatLocator, "picture", rhsPicture), lhsPicture, rhsPicture, ((this.picture!= null)&&(!this.picture.isEmpty())), ((that.picture!= null)&&(!that.picture.isEmpty())))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}
|
[
"andy@openindex.de"
] |
andy@openindex.de
|
14022796fc9fabc76cfaf84554cdae4c730c9888
|
354ed8b713c775382b1e2c4d91706eeb1671398b
|
/spring-context/src/test/java/org/springframework/jmx/export/assembler/MethodExclusionMBeanInfoAssemblerComboTests.java
|
7f4a31f64630367ecb03582345cdc7f84aefd1b6
|
[] |
no_license
|
JessenPan/spring-framework
|
8c7cc66252c2c0e8517774d81a083664e1ad4369
|
c0c588454a71f8245ec1d6c12f209f95d3d807ea
|
refs/heads/master
| 2021-06-30T00:54:08.230154
| 2019-10-08T10:20:25
| 2019-10-08T10:20:25
| 91,221,166
| 2
| 0
| null | 2017-05-14T05:01:43
| 2017-05-14T05:01:42
| null |
UTF-8
|
Java
| false
| false
| 2,785
|
java
|
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.jmx.export.assembler;
import org.junit.Test;
import javax.management.MBeanAttributeInfo;
import javax.management.modelmbean.ModelMBeanAttributeInfo;
import javax.management.modelmbean.ModelMBeanInfo;
import java.util.Properties;
import static org.junit.Assert.*;
/**
* @author Juergen Hoeller
* @author Rob Harrop
* @author Chris Beams
*/
public class MethodExclusionMBeanInfoAssemblerComboTests extends AbstractJmxAssemblerTests {
protected static final String OBJECT_NAME = "bean:name=testBean4";
@Test
public void testGetAgeIsReadOnly() throws Exception {
ModelMBeanInfo info = getMBeanInfoFromAssembler();
ModelMBeanAttributeInfo attr = info.getAttribute(AGE_ATTRIBUTE);
assertTrue("Age is not readable", attr.isReadable());
assertFalse("Age is not writable", attr.isWritable());
}
@Test
public void testNickNameIsExposed() throws Exception {
ModelMBeanInfo inf = (ModelMBeanInfo) getMBeanInfo();
MBeanAttributeInfo attr = inf.getAttribute("NickName");
assertNotNull("Nick Name should not be null", attr);
assertTrue("Nick Name should be writable", attr.isWritable());
assertTrue("Nick Name should be readable", attr.isReadable());
}
@Override
protected String getObjectName() {
return OBJECT_NAME;
}
@Override
protected int getExpectedOperationCount() {
return 7;
}
@Override
protected int getExpectedAttributeCount() {
return 3;
}
@Override
protected String getApplicationContextPath() {
return "org/springframework/jmx/export/assembler/methodExclusionAssemblerCombo.xml";
}
@Override
protected MBeanInfoAssembler getAssembler() throws Exception {
MethodExclusionMBeanInfoAssembler assembler = new MethodExclusionMBeanInfoAssembler();
Properties props = new Properties();
props.setProperty(OBJECT_NAME, "setAge,isSuperman,setSuperman,dontExposeMe");
assembler.setIgnoredMethodMappings(props);
assembler.setIgnoredMethods(new String[]{"someMethod"});
return assembler;
}
}
|
[
"jessenpan@qq.com"
] |
jessenpan@qq.com
|
d80b5c30653a9ee1dea9a927ec4258d05275a415
|
6395a4761617ad37e0fadfad4ee2d98caf05eb97
|
/.history/src/main/java/frc/robot/commands/cmdJoystickElevator_20191113161557.java
|
94d60f52003391f18213e268911dd83ac1bdfdd6
|
[] |
no_license
|
iNicole5/Cheesy_Drive
|
78383e3664cf0aeca42fe14d583ee4a8af65c1a1
|
80e1593512a92dbbb53ede8a8af968cc1efa99c5
|
refs/heads/master
| 2020-09-22T06:38:04.415411
| 2019-12-01T00:50:53
| 2019-12-01T00:50:53
| 225,088,973
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,675
|
java
|
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
package frc.robot.commands;
import edu.wpi.first.wpilibj.command.Command;
import frc.robot.Robot;
public class cmdJoystickElevator extends Command {
public cmdJoystickElevator()
{
requires(Robot.sub_elevator);
}
// Called just before this Command runs the first time
@Override
protected void initialize()
{
Robot.sub_elevator.PIDMode = false;
System.out.print("Joystick Command");
Robot.sub_elevator.stop();
}
// Called repeatedly when this Command is scheduled to run
@Override
protected void execute()
{
double power = Robot.oi.Operator.getRawAxis(1);
Robot.sub_elevator.elevatorBrake(Robot.oi.Operator);
Robot.sub_elevator.elevatorDrive(power, power);
}
// Make this return true when this Command no longer needs to run execute()
@Override
protected boolean isFinished()
{
return false;
}
// Called once after isFinished returns true
@Override
protected void end()
{
Robot.sub_elevator.stop();
}
// Called when another command which requires one or more of the same
// subsystems is scheduled to run
@Override
protected void interrupted()
{
//Robot.sub_elevator.stop();
}
}
|
[
"40499551+iNicole5@users.noreply.github.com"
] |
40499551+iNicole5@users.noreply.github.com
|
683a31348adb11b78703fb91a3c13ae5cc07b915
|
7b82d70ba5fef677d83879dfeab859d17f4809aa
|
/tmp/util/utils_hutool2/0000/src/main/java/com/jun/plugin/core/utils/db/ds/druid/DruidDSFactory.java
|
391bb05905b67a602c5d4612a5dad20400f210ea
|
[
"Apache-2.0"
] |
permissive
|
apollowesley/jun_test
|
fb962a28b6384c4097c7a8087a53878188db2ebc
|
c7a4600c3f0e1b045280eaf3464b64e908d2f0a2
|
refs/heads/main
| 2022-12-30T20:47:36.637165
| 2020-10-13T18:10:46
| 2020-10-13T18:10:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,298
|
java
|
package com.jun.plugin.core.utils.db.ds.druid;
import java.util.Collection;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Properties;
import java.util.concurrent.ConcurrentHashMap;
import javax.sql.DataSource;
import com.alibaba.druid.pool.DruidDataSource;
import com.jun.plugin.core.utils.convert.Convert;
import com.jun.plugin.core.utils.db.DbRuntimeException;
import com.jun.plugin.core.utils.db.ds.DSFactory;
import com.jun.plugin.core.utils.io.IoUtil;
import com.jun.plugin.core.utils.setting.Setting;
import com.jun.plugin.core.utils.util.CollectionUtil;
import com.jun.plugin.core.utils.util.StrUtil;
/**
* Druid数据源工厂类
* @author Looly
*
*/
public class DruidDSFactory extends DSFactory {
private Setting setting;
/** 数据源池 */
private Map<String, DruidDataSource> dsMap;
public DruidDSFactory() {
this(null);
}
public DruidDSFactory(Setting setting) {
super("Druid");
checkCPExist(DruidDataSource.class);
if(null == setting){
setting = new Setting(DEFAULT_DB_SETTING_PATH, true);
}
this.setting = setting;
this.dsMap = new ConcurrentHashMap<>();
}
@Override
public DataSource getDataSource(String group) {
if (group == null) {
group = StrUtil.EMPTY;
}
// 如果已经存在已有数据源(连接池)直接返回
final DruidDataSource existedDataSource = dsMap.get(group);
if (existedDataSource != null) {
return existedDataSource;
}
DruidDataSource ds = createDataSource(group);
// 添加到数据源池中,以备下次使用
dsMap.put(group, ds);
return ds;
}
@Override
public void close(String group) {
if (group == null) {
group = StrUtil.EMPTY;
}
DruidDataSource dds = dsMap.get(group);
if (dds != null) {
IoUtil.close(dds);
dsMap.remove(group);
}
}
@Override
public void destroy() {
if(CollectionUtil.isNotEmpty(dsMap)){
Collection<DruidDataSource> values = dsMap.values();
for (DruidDataSource dds : values) {
IoUtil.close(dds);
}
dsMap.clear();
dsMap = null;
}
}
/**
* 创建数据源
* @param group 分组
* @return Druid数据源 {@link DruidDataSource}
*/
private DruidDataSource createDataSource(String group){
final Properties config = setting.getProperties(group);
if(CollectionUtil.isEmpty(config)){
throw new DbRuntimeException("No Druid config for group: [{}]", group);
}
final DruidDataSource ds = new DruidDataSource();
//基本信息
ds.setUrl(config.getProperty("url"));
config.remove("url");
ds.setUsername(config.getProperty("username", config.getProperty("user")));
config.remove("username");
config.remove("user");
ds.setPassword(config.getProperty("password", config.getProperty("pass")));
config.remove("password");
config.remove("pass");
final String driver = config.getProperty("driver");
if(StrUtil.isNotBlank(driver)){
config.remove("driver");
ds.setDriverClassName(config.getProperty("driver"));
}
//规范化属性名
Properties config2 = new Properties();
String keyStr;
for (Entry<Object, Object> entry : config.entrySet()) {
keyStr = StrUtil.addPrefixIfNot(Convert.toStr(entry.getKey()), "druid.");
config2.put(keyStr, entry.getValue());
}
//连接池信息
ds.configFromPropety(config2);
return ds;
}
}
|
[
"wujun728@hotmail.com"
] |
wujun728@hotmail.com
|
7c3406f23c78647b28d24df8840e1579d828f8ba
|
1cc037b19a154941fd1fdc7d9d1c02702794b975
|
/core-customize/custom/spar/sparstorefront/web/src/com/spar/hcl/storefront/web/wrappers/UrlEncodeHttpRequestWrapper.java
|
2c3e6a87b7431b86a7b5331de4e84522685038e1
|
[] |
no_license
|
demo-solution/solution
|
b557dea73d613ec8bb722e2d9a63a338f0b9cf8d
|
e342fd77084703d43122a17d7184803ea72ae5c2
|
refs/heads/master
| 2022-07-16T05:41:35.541144
| 2020-05-19T14:51:59
| 2020-05-19T14:51:59
| 259,383,771
| 0
| 0
| null | 2020-05-19T14:54:38
| 2020-04-27T16:07:54
|
Java
|
UTF-8
|
Java
| false
| false
| 2,778
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2015 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with hybris.
*
*
*/
package com.spar.hcl.storefront.web.wrappers;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import org.apache.commons.lang.StringUtils;
/**
* HttpServletRequestWrapper class to override the value of the context path that contains the encoding attributes. This
* makes sure that we don't have encoded attributes for ServletPath.
*/
public class UrlEncodeHttpRequestWrapper extends HttpServletRequestWrapper
{
private final String pattern;
public UrlEncodeHttpRequestWrapper(final HttpServletRequest request, final String pattern)
{
super(request);
this.pattern = pattern;
}
@Override
public String getContextPath()
{
return super.getContextPath() + "/" + pattern;
}
@Override
public String getRequestURI()
{
final String originalRequestURI = super.getRequestURI();
final String originalContextPath = super.getContextPath();
final String contextPath = this.getContextPath();
final String originalRequestUriMinusAnyContextPath;
if (StringUtils.startsWith(originalRequestURI, contextPath))
{
originalRequestUriMinusAnyContextPath = StringUtils.remove(originalRequestURI, contextPath);
}
else if (StringUtils.startsWith(originalRequestURI, originalContextPath))
{
originalRequestUriMinusAnyContextPath = StringUtils.remove(originalRequestURI, originalContextPath);
}
else
{
originalRequestUriMinusAnyContextPath = originalRequestURI;
}
return getContextPath() + originalRequestUriMinusAnyContextPath;
}
@Override
public String getServletPath()
{
final String originalServletPath = super.getServletPath();
if (("/").equals(originalServletPath) || ("/" + pattern).equals(originalServletPath)
|| ("/" + pattern + "/").equals(originalServletPath))
{
return "";
}
else if (urlPatternChecker(originalServletPath, pattern))
{
return StringUtils.replace(originalServletPath, "/" + pattern + "/", "/");
}
return originalServletPath;
}
protected boolean urlPatternChecker(final String urlToBeChecked, final String pattern)
{
boolean containsPattern = StringUtils.contains(urlToBeChecked, "/" + pattern + "/");
if (!containsPattern)
{
final String[] splitUrl = urlToBeChecked.split("/");
final String last = splitUrl[splitUrl.length - 1];
if (last.equalsIgnoreCase(pattern))
{
containsPattern = true;
}
}
return containsPattern;
}
}
|
[
"ruchi_g@hcl.com"
] |
ruchi_g@hcl.com
|
e7d4f5d811f144f8f013e42651a10fce544f341f
|
cde4358da2cbef4d8ca7caeb4b90939ca3f1f1ef
|
/java/quantserver/snmpagent/src/main/java/deltix/snmp/smi/SMIPrimitiveNodeImpl.java
|
615d04727d0b6f16507ab613a8d36435704d1b8a
|
[
"Apache-2.0"
] |
permissive
|
ptuyo/TimeBase
|
e17a33e0bfedcbbafd3618189e4de45416ec7259
|
812e178b814a604740da3c15cc64e42c57d69036
|
refs/heads/master
| 2022-12-18T19:41:46.084759
| 2020-09-29T11:03:50
| 2020-09-29T11:03:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 856
|
java
|
package deltix.snmp.smi;
/**
*
*/
class SMIPrimitiveNodeImpl
extends SMINodeImpl <SMIPrimitiveContainerImpl>
implements SMIPrimitive
{
private final SMIType type;
private final SMIAccess access;
SMIPrimitiveNodeImpl (
SMIPrimitiveContainerImpl parent,
SMIOID oid,
String name,
SMIType type,
SMIAccess access,
String description
)
{
super (parent, oid, name, description);
this.type = type;
this.access = access;
}
@Override
public SMIAccess getAccess () {
return access;
}
@Override
public SMIType getType () {
return type;
}
}
|
[
"akarpovich@deltixlab.com"
] |
akarpovich@deltixlab.com
|
9eb8cedb4cfcac1ee1a6bcaf33799fcda7d6f66a
|
447432c019ce7810f98fb1ddc497bb2bc273ff2b
|
/com.citi.mobile.co/Sources/com/konylabs/ffi/N_RSA.java
|
b4a7b2ff914870033518667e7bf54cf089df1373
|
[
"MIT"
] |
permissive
|
wpelaez55/ExposingIndustryMediocrity
|
271cc8d49287ce2ff57cbeb1fac64bae2d51ccd5
|
6811904f3993da106237c5b50259ecb2b5ef1d2a
|
refs/heads/master
| 2021-01-12T10:27:39.804397
| 2016-12-12T11:38:06
| 2016-12-12T11:38:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,493
|
java
|
package com.konylabs.ffi;
import com.konylabs.libintf.JSLibrary;
import com.konylabs.libintf.Library;
import com.rsa.mobilesdk.sdk.RSA;
public class N_RSA extends JSLibrary {
public static final String collectInfo = "collectInfo";
Library[] libs;
String[] methods;
public Library[] getClasses() {
this.libs = new Library[0];
return this.libs;
}
public N_RSA() {
this.methods = new String[]{collectInfo};
this.libs = null;
}
/* JADX WARNING: inconsistent code. */
/* Code decompiled incorrectly, please refer to instructions dump. */
public java.lang.Object[] execute(int r13, java.lang.Object[] r14) {
/*
r12 = this;
r11 = 2;
r10 = 1;
r7 = 0;
r3 = 0;
r2 = r14.length; Catch:{ Exception -> 0x0020 }
r1 = 1;
switch(r13) {
case 0: goto L_0x000b;
default: goto L_0x0009;
}; Catch:{ Exception -> 0x0020 }
L_0x0009:
r4 = r3;
L_0x000a:
return r4;
L_0x000b:
if (r2 == 0) goto L_0x003d;
L_0x000d:
r4 = 2;
r4 = new java.lang.Object[r4]; Catch:{ Exception -> 0x0020 }
r5 = 0;
r6 = new java.lang.Double; Catch:{ Exception -> 0x0020 }
r8 = 4636737291354636288; // 0x4059000000000000 float:0.0 double:100.0;
r6.<init>(r8); Catch:{ Exception -> 0x0020 }
r4[r5] = r6; Catch:{ Exception -> 0x0020 }
r5 = 1;
r6 = "Invalid Params";
r4[r5] = r6; Catch:{ Exception -> 0x0020 }
goto L_0x000a;
L_0x0020:
r0 = move-exception;
r4 = 3;
r3 = new java.lang.Object[r4];
r4 = r0.getMessage();
r3[r7] = r4;
r4 = new java.lang.Double;
r6 = 4636807660098813952; // 0x4059400000000000 float:0.0 double:101.0;
r4.<init>(r6);
r3[r10] = r4;
r4 = r0.getMessage();
r3[r11] = r4;
goto L_0x0009;
L_0x003d:
r3 = r12.collectInfo(); Catch:{ Exception -> 0x0020 }
goto L_0x0009;
*/
throw new UnsupportedOperationException("Method not decompiled: com.konylabs.ffi.N_RSA.execute(int, java.lang.Object[]):java.lang.Object[]");
}
public String[] getMethods() {
return this.methods;
}
public String getNameSpace() {
return "RSA";
}
public final Object[] collectInfo() {
return new Object[]{RSA.collectRSAInfo(), new Double(0.0d)};
}
}
|
[
"jheto.xekri@gmail.com"
] |
jheto.xekri@gmail.com
|
846e8266698d8874d20c4451b02c38b29b6e9fb3
|
74f1d9c4cecd58262888ffed02101c1b6bedfe13
|
/src/main/java/com/chinaxiaopu/xiaopuMobi/dto/EventPublishDto.java
|
ca3e11e3a868214b3b39851906cf24689f0ce1e6
|
[] |
no_license
|
wwm0104/xiaopu
|
341da3f711c0682d3bc650ac62179935330c27b2
|
ddb1b57c84cc6e6fdfdd82c2e998eea341749c87
|
refs/heads/master
| 2021-01-01T04:38:42.376033
| 2017-07-13T15:44:19
| 2017-07-13T15:44:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,340
|
java
|
package com.chinaxiaopu.xiaopuMobi.dto;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
/**
* 应用在:
*
* @author Wang
*/
public
@Data
class EventPublishDto extends ContextDto {
private Integer eventId;//活动ID,用于活动修改
private Integer creatorId;//社长ID
private Integer organizeId;//社团ID
private String organizeName;//社团名称
private Integer schoolId;//学校ID
private String schoolName;//学校名称
private String subject;//活动主题
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd HH:mm", timezone = "GMT+8")
private Date startTime;//开始时间
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd HH:mm", timezone = "GMT+8")
private Date endTime;//结束时间
private String address;//活动地址
private Integer joinType;//活动参与类型
private String description;//活动介绍
private String qrcode;//二维码base64编码
private String smallPosterImg;
private String posterImg;//活动海报
private String[] contentImgs;//活动图片
private String further;//活动图片的宽高
private Integer ticket;//是否需要门票,1需要,0不需要
private Integer ticketCnt;//需要时,填写的门票数量
}
|
[
"ellien"
] |
ellien
|
e50e633aad0aad787fb81658c90ab67a8af278b5
|
ddc6a947c1e56465e89d9275ae16d0bad048cb67
|
/client/SynaptixSwing/src/main/java/com/synaptix/swing/plaf/SyTableLinesUI.java
|
deb8e463ec36eb8ce136fb31520bdfd72e3fbbb4
|
[] |
no_license
|
TalanLabs/SynaptixLibs
|
15ad37af6fd575f6e366deda761ba650d9e18237
|
cbff7279e1f2428754fce3d83fcec5a834898747
|
refs/heads/master
| 2020-03-22T16:08:53.617289
| 2018-03-07T16:07:22
| 2018-03-07T16:07:22
| 140,306,435
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 133
|
java
|
package com.synaptix.swing.plaf;
import javax.swing.plaf.ComponentUI;
public abstract class SyTableLinesUI extends ComponentUI {
}
|
[
"gabriel.allaigre@synaptix-labs.com"
] |
gabriel.allaigre@synaptix-labs.com
|
261c48e987a1861d3dffe2ee16c9ea45124f93c0
|
139960e2d7d55e71c15e6a63acb6609e142a2ace
|
/mobile_app1/module906/src/main/java/module906packageJava0/Foo13.java
|
4413ac7ce4607d44c5c24c6d5ce3ef75fabde54e
|
[
"Apache-2.0"
] |
permissive
|
uber-common/android-build-eval
|
448bfe141b6911ad8a99268378c75217d431766f
|
7723bfd0b9b1056892cef1fef02314b435b086f2
|
refs/heads/master
| 2023-02-18T22:25:15.121902
| 2023-02-06T19:35:34
| 2023-02-06T19:35:34
| 294,831,672
| 83
| 7
|
Apache-2.0
| 2021-09-24T08:55:30
| 2020-09-11T23:27:37
|
Java
|
UTF-8
|
Java
| false
| false
| 826
|
java
|
package module906packageJava0;
import java.lang.Integer;
public class Foo13 {
Integer int0;
public void foo0() {
new module906packageJava0.Foo12().foo16();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
public void foo6() {
foo5();
}
public void foo7() {
foo6();
}
public void foo8() {
foo7();
}
public void foo9() {
foo8();
}
public void foo10() {
foo9();
}
public void foo11() {
foo10();
}
public void foo12() {
foo11();
}
public void foo13() {
foo12();
}
public void foo14() {
foo13();
}
public void foo15() {
foo14();
}
public void foo16() {
foo15();
}
}
|
[
"oliviern@uber.com"
] |
oliviern@uber.com
|
6e74866a304b977daac455622622430ca9259326
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/5/5_f7f306c31855c41e288afb2e5b431d2bbf50ac99/ClassLoaderJavaClassDescription/5_f7f306c31855c41e288afb2e5b431d2bbf50ac99_ClassLoaderJavaClassDescription_t.java
|
2b833b6f5f87234719abd33cfa51f23fd18f2b1f
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 7,346
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.felix.scrplugin.tags.cl;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.felix.scrplugin.Constants;
import org.apache.felix.scrplugin.om.Component;
import org.apache.felix.scrplugin.om.Reference;
import org.apache.felix.scrplugin.tags.JavaClassDescription;
import org.apache.felix.scrplugin.tags.JavaClassDescriptorManager;
import org.apache.felix.scrplugin.tags.JavaField;
import org.apache.felix.scrplugin.tags.JavaMethod;
import org.apache.felix.scrplugin.tags.JavaTag;
import org.apache.maven.plugin.MojoExecutionException;
/**
* <code>ClassLoaderJavaClassDescription.java</code>...
*
*/
public class ClassLoaderJavaClassDescription implements JavaClassDescription {
protected static final JavaTag[] EMPTY_TAGS = new JavaTag[0];
protected final Class clazz;
protected final JavaClassDescriptorManager manager;
protected final Component component;
public ClassLoaderJavaClassDescription(Class c, Component comp, JavaClassDescriptorManager m) {
this.clazz = c;
this.manager = m;
this.component = comp;
}
public JavaField[] getFields() {
// TODO Auto-generated method stub
return new JavaField[0];
}
public JavaClassDescription[] getImplementedInterfaces() throws MojoExecutionException {
Class[] implemented = clazz.getInterfaces();
if (implemented == null || implemented.length == 0) {
return null;
}
JavaClassDescription[] jcd = new JavaClassDescription[implemented.length];
for (int i=0; i < jcd.length; i++) {
jcd[i] = manager.getJavaClassDescription(implemented[i].getName());
}
return jcd;
}
/**
* @see org.apache.felix.sandbox.scrplugin.tags.JavaClassDescription#getMethodBySignature(java.lang.String, java.lang.String[])
*/
public JavaMethod getMethodBySignature(String name, String[] parameters) {
Class[] classParameters = null;
if ( parameters != null ) {
classParameters = new Class[parameters.length];
for(int i=0; i<parameters.length; i++) {
try {
classParameters[i] = this.manager.getClassLoader().loadClass(parameters[i]);
} catch (ClassNotFoundException cnfe) {
return null;
}
}
}
Method m = null;
try {
m = this.clazz.getDeclaredMethod(name, classParameters);
} catch (NoSuchMethodException e) {
// ignore this
}
if ( m != null ) {
return new ClassLoaderJavaMethod(m);
}
return null;
}
public JavaMethod[] getMethods() {
// TODO Auto-generated method stub
return null;
}
/**
* @see org.apache.felix.sandbox.scrplugin.tags.JavaClassDescription#getName()
*/
public String getName() {
return this.clazz.getName();
}
/**
* @see org.apache.felix.sandbox.scrplugin.tags.JavaClassDescription#getSuperClass()
*/
public JavaClassDescription getSuperClass() throws MojoExecutionException {
if ( this.clazz.getSuperclass() != null ) {
return this.manager.getJavaClassDescription(this.clazz.getSuperclass().getName());
}
return null;
}
/**
* @see org.apache.felix.sandbox.scrplugin.tags.JavaClassDescription#getTagByName(java.lang.String)
*/
public JavaTag getTagByName(String name) {
// TODO Auto-generated method stub
return null;
}
/**
* @see org.apache.felix.sandbox.scrplugin.tags.JavaClassDescription#getTagsByName(java.lang.String, boolean)
*/
public JavaTag[] getTagsByName(String name, boolean inherited)
throws MojoExecutionException {
JavaTag[] javaTags = EMPTY_TAGS;
if ( this.component != null ) {
if ( Constants.SERVICE.equals(name) ) {
} else if ( Constants.PROPERTY.equals(name) ) {
} else if ( Constants.REFERENCE.equals(name) ) {
if ( this.component.getReferences().size() > 0 ) {
javaTags = new JavaTag[this.component.getReferences().size()];
for(int i=0; i<this.component.getReferences().size(); i++) {
javaTags[i] = new ClassLoaderJavaTag(this, (Reference)this.component.getReferences().get(i));
}
}
}
}
if ( inherited && this.getSuperClass() != null ) {
final JavaTag[] superTags = this.getSuperClass().getTagsByName(name, inherited);
if ( superTags.length > 0 ) {
final List list = new ArrayList(Arrays.asList(javaTags));
list.addAll(Arrays.asList(superTags));
javaTags = (JavaTag[]) list.toArray(new JavaTag[list.size()]);
}
}
return javaTags;
}
/**
* @see org.apache.felix.sandbox.scrplugin.tags.JavaClassDescription#isA(java.lang.String)
*/
public boolean isA(String type) {
if ( this.clazz.getName().equals(type) ) {
return true;
}
return this.testClass(this.clazz, type);
}
protected boolean testClass(Class c, String type) {
final Class[] interfaces = c.getInterfaces();
for(int i=0; i<interfaces.length; i++) {
if ( interfaces[i].getName().equals(type) ) {
return true;
}
if ( this.testClass(interfaces[i], type) ) {
return true;
}
}
return false;
}
/**
* @see org.apache.felix.sandbox.scrplugin.tags.JavaClassDescription#isAbstract()
*/
public boolean isAbstract() {
return Modifier.isAbstract(this.clazz.getModifiers());
}
/**
* @see org.apache.felix.sandbox.scrplugin.tags.JavaClassDescription#isInterface()
*/
public boolean isInterface() {
return Modifier.isInterface(this.clazz.getModifiers());
}
/**
* @see org.apache.felix.sandbox.scrplugin.tags.JavaClassDescription#isPublic()
*/
public boolean isPublic() {
return Modifier.isPublic(this.clazz.getModifiers());
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
5f2a5b587eb1a4de9305b169b38794e68ff92687
|
4f968460ec8337c1fbdec0b7846cae6f9d3b747f
|
/HX_Mpos/src/com/lk/td/pay/utils/AppUpdateUtil.java
|
1d3ec2954164848344d8de3c68b483f5bdd8c48c
|
[] |
no_license
|
lisycn/Pay
|
7e52ea7b602582c116110d1b5b98099ec28faa3b
|
b09098cfab865ea7d40e0458bd8ebb3515de0de8
|
refs/heads/master
| 2020-03-20T05:14:16.685939
| 2018-02-04T13:21:34
| 2018-02-04T13:21:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,919
|
java
|
package com.lk.td.pay.utils;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Environment;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.Toast;
import com.hx.view.widget.CustomDialog;
import com.lk.td.pay.golbal.MApplication;
import com.td.app.pay.hx.R;
public class AppUpdateUtil {
private Context context;
private ProgressBar mProgress;
private Dialog downloadDialog;
private String apkUrl;
private int progress;
private static final int DOWN_UPDATE = 1;
private static final int DOWN_OVER = 2;
private static final String APK_NAME = "td_pay.apk";
private Handler mHandler = new Handler() {
public void handleMessage(android.os.Message msg) {
switch (msg.what) {
case DOWN_UPDATE:
mProgress.setProgress(progress);
break;
case DOWN_OVER:
Toast.makeText(context, "下载完毕", 2000).show();
downloadDialog.dismiss();
installApk();
break;
default:
break;
}
};
};
public AppUpdateUtil(Context context, String apkUrl) {
this.context = context;
this.apkUrl = apkUrl;
}
public void showUpdateNoticeDialog(String apknote) {
try {
CustomDialog.Builder builder = new CustomDialog.Builder(context);
builder.setTitle("发现新版本");
builder.setMessage(apknote);
builder.setOkBtn("立即更新",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
showDownloadDialog();
// con???
}
});
builder.setCancelBtn("稍后再说",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
}
});
builder.create().show();
} catch (Exception e) {
e.printStackTrace();
}
}
public void showUpdateNoticeDialog(String apknote, boolean calcle) {
try {
CustomDialog.Builder builder = new CustomDialog.Builder(context);
builder.setTitle("发现新版本");
builder.setMessage(apknote);
builder.setOkBtn("立即更新",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
showDownloadDialog();
}
});
CustomDialog dialog = builder.create();
dialog.show();
if (!calcle){
dialog.setCanceledOnTouchOutside(false);
dialog.setCancelable(false);
}
} catch (Exception e) {
e.printStackTrace();
}
}
private void showDownloadDialog() {
context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(apkUrl)));
}
private void downloadApk() {
Thread downLoadThread = new Thread(mdownApk);
downLoadThread.start();
}
private Runnable mdownApk = new Runnable() {
@Override
public void run() {
HttpClient client = new DefaultHttpClient();
// params[0]代表连接的url
HttpGet get = new HttpGet(apkUrl);
HttpResponse response;
try {
response = client.execute(get);
HttpEntity entity = response.getEntity();
long length = entity.getContentLength();
InputStream is = entity.getContent();
FileOutputStream fileOutputStream = null;
if (is != null) {
File file = new File(
Environment.getExternalStorageDirectory(), APK_NAME);
fileOutputStream = new FileOutputStream(file);
byte[] buf = new byte[1024];
int ch = -1;
int count = 0;
while ((ch = is.read(buf)) != -1) {
fileOutputStream.write(buf, 0, ch);
count += ch;
progress = (int) (((float) count / length) * 100);
// 更新进展
if (mProgress.getProgress() < progress) {
mHandler.sendEmptyMessage(DOWN_UPDATE);
}
}
}
fileOutputStream.flush();
if (fileOutputStream != null) {
fileOutputStream.close();
}
mHandler.sendEmptyMessage(DOWN_OVER);
} catch (ClientProtocolException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
};
private void installApk() {
Intent i = new Intent(Intent.ACTION_VIEW);
i.setDataAndType(Uri.fromFile(new File("/sdcard/" + APK_NAME)),
"application/vnd.android.package-archive");
context.startActivity(i);
// MApplication.getInstance().start
}
}
|
[
"w1037704496@163.com"
] |
w1037704496@163.com
|
49941e96ca0d5c49d9f6f01def5df35f59e91afd
|
ed5159d056e98d6715357d0d14a9b3f20b764f89
|
/test/irvine/oeis/a000/A000283Test.java
|
5fe0bb9af59843ec9c98f515b27a9a9ede9c329d
|
[] |
no_license
|
flywind2/joeis
|
c5753169cf562939b04dd246f8a2958e97f74558
|
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
|
refs/heads/master
| 2020-09-13T18:34:35.080552
| 2019-11-19T05:40:55
| 2019-11-19T05:40:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 195
|
java
|
package irvine.oeis.a000;
import irvine.oeis.AbstractSequenceTest;
/**
* Tests the corresponding class.
* @author Sean A. Irvine
*/
public class A000283Test extends AbstractSequenceTest {
}
|
[
"sairvin@gmail.com"
] |
sairvin@gmail.com
|
acef859f91509d6aeca2675877c5fe899b838208
|
6b2a8dd202fdce77c971c412717e305e1caaac51
|
/solutions_1595491_0/java/Restless/DancingGooglers.java
|
de6dc9cfaf3ac7d2769e7b47c865ab2c5dc21f50
|
[] |
no_license
|
alexandraback/datacollection
|
0bc67a9ace00abbc843f4912562f3a064992e0e9
|
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
|
refs/heads/master
| 2021-01-24T18:27:24.417992
| 2017-05-23T09:23:38
| 2017-05-23T09:23:38
| 84,313,442
| 2
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,516
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package dancinggooglers;
import java.io.File;
import java.io.PrintWriter;
import java.util.Scanner;
/**
*
* @author administrator
*/
public class DancingGooglers {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
String input = "c:\\input.in";
String output = "c:\\output.txt";
System.out.println("Hello World");
DancingGooglers code1 = new DancingGooglers();
File in = new File(input);
File out = new File(output);
code1.processOutput(in, out, "UTF-8");
}
public void processOutput(File input, File output, String charSet) {
String temp = "";
try {
Scanner scanner = new Scanner(input, charSet);
PrintWriter out = new PrintWriter(output);
int count = 0;
int test_case = 0;
while (scanner.hasNext()) {
String test = scanner.nextLine();
int noOfGooglers;
int surprising_triplets;
int P;
int t[];
int surprises_left;
int result;
if (count == 0) {
test_case = Integer.parseInt(test);
count++;
} else {
String[] line_data = test.split("\\s");
noOfGooglers = Integer.parseInt(line_data[0]);
surprising_triplets = Integer.parseInt(line_data[1]);
P = Integer.parseInt(line_data[2]);
t = new int[noOfGooglers];
result = 0;
surprises_left = surprising_triplets;
for (int i = 0; i < noOfGooglers; i++) {
t[i] = Integer.parseInt(line_data[i + 3]);
}
for (int i = 0; i < noOfGooglers; i++) {
if (isTGreaterThanP(t[i], P)) {
result++;
} else {
if (surprises_left > 0 && isTGreaterPSurprises(t[i], P)) {
result++;
surprises_left--;
}
}
}
System.out.println("Case #" + count + ": " + result);
if (count == test_case) {
out.print("Case #" + count + ": " + result);
} else {
out.println("Case #" + count + ": " + result);
}
count++;
}
temp = temp + "\n" + test;
}
out.close();
scanner.close();
} catch (Exception e) {
System.out.println("File read/write error");
return;
}
}
private boolean isTGreaterThanP(int total, int P) {
int max = (total + 2) / 3;
if (max >= P) {
return true;
}
return false;
}
private boolean isTGreaterPSurprises(int total, int P) {
int max = (total + 4) / 3;
if (max >= 10) {
max = 10;
}
if (total == 1) {
max = 1;
} else if (total == 0) {
max = 0;
}
if (max >= P) {
return true;
}
return false;
}
}
|
[
"eewestman@gmail.com"
] |
eewestman@gmail.com
|
ceab59301b6f2677aedca237a2b6d7a2bafc58c6
|
f378ddd47c8b7de6e9cf1d4228c84f73e9dc59f1
|
/projetos/gs-tool/src/org/graphstream/tool/i18n/I18n.java
|
31fa41822bdfcc974be73229cbdeaa346d3cb90c
|
[] |
no_license
|
charles-marques/dataset-375
|
29e2f99ac1ba323f8cb78bf80107963fc180487c
|
51583daaf58d5669c69d8208b8c4ed4e009001a5
|
refs/heads/master
| 2023-01-20T07:23:09.445693
| 2020-11-27T22:35:49
| 2020-11-27T22:35:49
| 283,315,149
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,337
|
java
|
/*
* Copyright 2006 - 2011
* Stefan Balev <stefan.balev@graphstream-project.org>
* Julien Baudry <julien.baudry@graphstream-project.org>
* Antoine Dutot <antoine.dutot@graphstream-project.org>
* Yoann Pigné <yoann.pigne@graphstream-project.org>
* Guilhelm Savin <guilhelm.savin@graphstream-project.org>
*
* This file is part of GraphStream <http://graphstream-project.org>.
*
* GraphStream is a library whose purpose is to handle static or dynamic
* graph, create them from scratch, file or any source and display them.
*
* This program is free software distributed under the terms of two licenses, the
* CeCILL-C license that fits European law, and the GNU Lesser General Public
* License. You can use, modify and/ or redistribute the software under the terms
* of the CeCILL-C license as circulated by CEA, CNRS and INRIA at the following
* URL <http://www.cecill.info> or under the terms of the GNU LGPL as published by
* the Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* The fact that you are presently reading this means that you have had
* knowledge of the CeCILL-C and LGPL licenses and that you accept their terms.
*/
package org.graphstream.tool.i18n;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.util.Arrays;
import java.util.Enumeration;
import java.util.List;
import java.util.Locale;
import java.util.Properties;
import java.util.ResourceBundle;
/**
* Internationalization tool for GraphStream. Internationalization (i18n) is a
* main step to provide to users the best ergonomics using a software. i18n
* leads to a better understanding of what is happening in a human to machine
* interface.
*
* We use here xml file to make a mapping key/values. Key are an unique
* identifiant to a string in the program. The associated value is an human
* understandable string in the language of the current locale.
*
* @author Guilhelm Savin
*
*/
public class I18n {
/**
* Get the resource bundle for an object supporting i18n. Default locale is
* used to determine language.
*
* @param i18nObject
* @return
*/
public static ResourceBundle load(I18nSupport i18nObject) {
return load(i18nObject.getDomain(), i18nObject.getLocale());
}
/**
* Get the resource bundle for a domain. Default locale is used to determine
* language.
*
* @param domain
* base name of the bundle
* @return a bundle
*/
public static ResourceBundle load(String domain) {
return load(domain, Locale.getDefault());
}
/**
* Get the resource bundle for a domain. Default locale is used to determine
* language.
*
* @param domain
* base name of the bundle
* @param locale
* the locale to use
* @return a bundle
*/
public static ResourceBundle load(String domain, Locale locale) {
return ResourceBundle.getBundle(domain, locale, new Controler());
}
/**
* Get and format a string for a given key. Objects are inserted in the
* {index+1} location. For example, if we have the association "mykey" to
* "this example is really {1}", calling
* <code>_(bundle, "mykey", "fun")</code> will produce
* "this test is really fun".
*
* @param i18nBundle
* the bundle
* @param key
* the key of the string
* @param objects
* objects to insert in the string if any
* @return a formatted string modeling key
*/
public static String _(ResourceBundle i18nBundle, String key,
String... objects) {
String string = i18nBundle.getString(key);
if (objects != null) {
for (int i = 0; i < objects.length; i++)
string = string.replace(String.format("{%d}", i + 1),
objects[i]);
}
return string.replace("\n", " ").replace("\\n", "\n")
.replaceAll("\\s{2,}", " ");
}
// --- Private start here --------------
private static class Controler extends ResourceBundle.Control {
public List<String> getFormats(String baseName) {
if (baseName == null)
throw new NullPointerException();
return Arrays.asList("xml");
}
public ResourceBundle newBundle(String baseName, Locale locale,
String format, ClassLoader loader, boolean reload)
throws IllegalAccessException, InstantiationException,
IOException {
if (baseName == null || locale == null || format == null
|| loader == null)
throw new NullPointerException();
ResourceBundle bundle = null;
if (format.equals("xml")) {
String bundleName = toBundleName(baseName, locale);
String resourceName = toResourceName(bundleName, format);
InputStream stream = null;
if (reload) {
URL url = loader.getResource(resourceName);
if (url != null) {
URLConnection connection = url.openConnection();
if (connection != null) {
// Disable caches to get fresh data for
// reloading.
connection.setUseCaches(false);
stream = connection.getInputStream();
}
}
} else {
stream = loader.getResourceAsStream(resourceName);
}
if (stream != null) {
BufferedInputStream bis = new BufferedInputStream(stream);
bundle = new XMLResourceBundle(bis);
bis.close();
}
}
return bundle;
}
}
private static class XMLResourceBundle extends ResourceBundle {
private Properties props;
XMLResourceBundle(InputStream stream) throws IOException {
props = new Properties();
props.loadFromXML(stream);
if (props.containsKey("__parent__"))
setParent(ResourceBundle.getBundle(
props.getProperty("__parent__"), new Controler()));
}
protected Object handleGetObject(String key) {
return props.getProperty(key);
}
@SuppressWarnings("unchecked")
public Enumeration<String> getKeys() {
return (Enumeration<String>) props.propertyNames();
}
}
}
|
[
"suporte@localhost.localdomain"
] |
suporte@localhost.localdomain
|
ce9798e4a7e7aaa9b91fba367739151b23f79fa0
|
13762f22cf7f2f47609d94e9c362f464e569df11
|
/src/test/java/com/j256/testcheckpublisher/plugin/gitcontext/TravisCiGitContextFinderTest.java
|
3b7150b3488ecdddb05ab21865a9ade2c95be34b
|
[
"ISC"
] |
permissive
|
j256/test-check-publisher-maven-plugin
|
cd729402b6f2e1bacd12582b669852378d729c67
|
1c468b0d3ce7790b1bd3e59cb9adf9f2ee0c3ccd
|
refs/heads/master
| 2023-03-06T23:09:39.430947
| 2021-02-17T05:08:35
| 2021-02-17T05:08:35
| 328,548,777
| 1
| 0
|
ISC
| 2021-02-18T19:19:59
| 2021-01-11T04:32:08
|
Java
|
UTF-8
|
Java
| false
| false
| 513
|
java
|
package com.j256.testcheckpublisher.plugin.gitcontext;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import org.junit.Test;
import com.j256.testcheckpublisher.plugin.gitcontext.GitContextFinder.GitContext;
public class TravisCiGitContextFinderTest {
@Test
public void testStuff() {
TravisCiGitContextFinder travis = new TravisCiGitContextFinder();
assertFalse(travis.isRunning());
GitContext gitContext = travis.findContext();
assertNull(gitContext);
}
}
|
[
"gray.github@mailnull.com"
] |
gray.github@mailnull.com
|
3df9088dbcbfe83956abe69585feb83919906019
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_fa7937eff3f3c4921ed60a553f16c74c357bed62/ObjectWrapper/2_fa7937eff3f3c4921ed60a553f16c74c357bed62_ObjectWrapper_t.java
|
b767026a410c7e5207707b2b891848aaff440fae
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 1,845
|
java
|
/*
* jFCPlib - UserObject.java -
* Copyright © 2009 David Roden
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
package net.pterodactylus.util.thread;
/**
* Wrapper around an object that can be set and retrieved. Its primary use is as
* a container for return values from anonymous classes.
*
* <pre>
* final ObjectWrapper<Object> objectWrapper = new ObjectWrapper<Object>();
* new Runnable() {
* public void run() {
* ...
* objectWrapper.set(someResult);
* }
* }.run();
* Object result = objectWrapper.get();
* </pre>
*
* @param <T>
* The type of the wrapped object
* @author David ‘Bombe’ Roden <bombe@pterodactylus.net>
*/
public class ObjectWrapper<T> {
/** The wrapped object. */
private volatile T wrappedObject;
/**
* Returns the wrapped object.
*
* @return The wrapped object
*/
public T get() {
return wrappedObject;
}
/**
* Sets the wrapped object.
*
* @param wrappedObject
* The wrapped object
*/
public void set(T wrappedObject) {
this.wrappedObject = wrappedObject;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
2e907109f7452949702ddd9063739f02e05b91b2
|
9dfdc3b6b32e1f89614b03e28cbb673d18bbf782
|
/trunk/factura-te/visor-factura/src/org/sig/visorfactura/FacturasChildFactory.java
|
0d20ec79cedbcb90037d688c2d0d86ddb8b72256
|
[] |
no_license
|
BGCX067/factura-te-svn-to-git
|
8d34bb709762cbbcf6a5d61906913318bef258ed
|
95f885228ca91ac1df63c8838a034e45a876a3f4
|
refs/heads/master
| 2016-09-01T08:55:03.932163
| 2015-12-28T14:14:28
| 2015-12-28T14:14:28
| 48,752,374
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 692
|
java
|
package org.sig.visorfactura;
import java.util.List;
import org.openide.nodes.ChildFactory;
import org.openide.nodes.Node;
import org.sig.derbyclient.dto.FacturaDto;
public class FacturasChildFactory extends ChildFactory<FacturaDto> {
private List<FacturaDto> resultList;
public FacturasChildFactory(List<FacturaDto> resultList) {
this.resultList = resultList;
}
@Override
protected boolean createKeys(List<FacturaDto> list) {
for (FacturaDto FacturaDto : resultList) {
list.add(FacturaDto);
}
return true;
}
@Override
protected Node createNodeForKey(FacturaDto c) {
return new FacturaNode(c);
}
}
|
[
"you@example.com"
] |
you@example.com
|
d49d28d98674590146ce3c31c8ef09a90db04b32
|
bbb855358d3a7b9243205aed4644f7d0b95c5fe6
|
/JavaProject/hyc/hyc-product/product-api/src/main/java/com/hyc/shop/product/bo/ProductAttrValueDetailBO.java
|
a93da2ab2541e3d1325b3bbfa1a1976d36aab45b
|
[] |
no_license
|
39179219huangtao/HuangTaoBlog
|
94fd813360c1deb896633dfa926ab01f24f4c9db
|
afb572a28ea46033cc521c05c3b1360369cee65f
|
refs/heads/master
| 2022-12-06T22:29:22.617431
| 2019-10-31T08:13:09
| 2019-10-31T08:13:09
| 186,969,085
| 2
| 0
| null | 2022-11-21T22:37:36
| 2019-05-16T06:51:44
|
TSQL
|
UTF-8
|
Java
| false
| false
| 522
|
java
|
package com.hyc.shop.product.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* 商品规格值 VO
*/
@Data
@Accessors(chain = true)
public class ProductAttrValueDetailBO implements Serializable {
/**
* 规格值编号
*/
private Integer id;
/**
* 规格值名
*/
private String name;
/**
* 状态
*/
private Integer status;
/**
* 创建时间
*/
private Date createTime;
}
|
[
"huangtao@icsoc.net"
] |
huangtao@icsoc.net
|
eaf973bb4552494911b753c89cd3a4e415e08687
|
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
|
/aliyun-java-sdk-codeup/src/main/java/com/aliyuncs/codeup/model/v20200414/UpdateMergeRequestCommentResponse.java
|
e0c6e02aefbf3aac3f139fb5849d4c379c773782
|
[
"Apache-2.0"
] |
permissive
|
aliyun/aliyun-openapi-java-sdk
|
a263fa08e261f12d45586d1b3ad8a6609bba0e91
|
e19239808ad2298d32dda77db29a6d809e4f7add
|
refs/heads/master
| 2023-09-03T12:28:09.765286
| 2023-09-01T09:03:00
| 2023-09-01T09:03:00
| 39,555,898
| 1,542
| 1,317
|
NOASSERTION
| 2023-09-14T07:27:05
| 2015-07-23T08:41:13
|
Java
|
UTF-8
|
Java
| false
| false
| 2,254
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.codeup.model.v20200414;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.codeup.transform.v20200414.UpdateMergeRequestCommentResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class UpdateMergeRequestCommentResponse extends AcsResponse {
private String errorCode;
private String errorMessage;
private String requestId;
private Boolean success;
private Result result;
public String getErrorCode() {
return this.errorCode;
}
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
public String getErrorMessage() {
return this.errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public Result getResult() {
return this.result;
}
public void setResult(Result result) {
this.result = result;
}
public static class Result {
private Boolean result;
public Boolean getResult() {
return this.result;
}
public void setResult(Boolean result) {
this.result = result;
}
}
@Override
public UpdateMergeRequestCommentResponse getInstance(UnmarshallerContext context) {
return UpdateMergeRequestCommentResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
eb65ec570810408a975064469074caa7f558f9e7
|
0e59288abac180bf23e2227d1e10722cdbafc06d
|
/src/main/java/com/revenat/iblog/infrastructure/service/SocialService.java
|
00ea2005ab794a51c9316b6807665c0118726dbb
|
[] |
no_license
|
VitaliyDragun1990/ib
|
b5ed8bf0f58a18d0e556394606b0f735d4ba61db
|
fcaf14aafd41be054c6b7e2c5cdfd2d91fca099a
|
refs/heads/master
| 2022-09-26T12:37:15.448873
| 2019-05-24T11:39:11
| 2019-05-24T11:39:11
| 188,411,989
| 0
| 0
| null | 2022-09-08T01:00:35
| 2019-05-24T11:41:44
|
Java
|
UTF-8
|
Java
| false
| false
| 1,009
|
java
|
package com.revenat.iblog.infrastructure.service;
import com.revenat.iblog.infrastructure.exception.AuthenticationException;
/**
* This interface represents component responsible for getting access to user's
* account from some sort of social network.
*
* @author Vitaly Dragun
*
*/
public interface SocialService {
/**
* Gets {@link SocialAccount} of authenticated social network user using
* provided {@code authToken} parameter.
*
* @param authToken authentication token that will be used to get user's account
* in social network.
* @return {@link SocialAccount} instance that represents user's social network
* account
* @throws AuthenticationException if error occurs while getting information
* about client's social network account or
* there is no account for given
* {@code authToken}.
*/
SocialAccount getSocialAccount(String authToken);
}
|
[
"vdrag00n90@gmail.com"
] |
vdrag00n90@gmail.com
|
eea3679153de4f879d9d377e9dd4cce3e1e550ca
|
392e624ea2d6886bf8e37167ebbda0387e7e4a9a
|
/uxcrm-ofbiz/generated-entity/src/main/java/org/apache/ofbiz/party/party/RoleTypeAttr.java
|
ad98591274c6a04644f013647332349c996c6296
|
[
"Apache-2.0"
] |
permissive
|
yuri0x7c1/uxcrm
|
11eee75f3a9cffaea4e97dedc8bc46d8d92bee58
|
1a0bf4649bee0a3a62e486a9d6de26f1d25d540f
|
refs/heads/master
| 2018-10-30T07:29:54.123270
| 2018-08-26T18:25:35
| 2018-08-26T18:25:35
| 104,251,350
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,895
|
java
|
package org.apache.ofbiz.party.party;
import lombok.experimental.FieldNameConstants;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import java.sql.Timestamp;
import org.apache.ofbiz.entity.GenericValue;
import java.util.List;
import java.util.ArrayList;
/**
* Role Type Attr
*/
@FieldNameConstants
public class RoleTypeAttr implements Serializable {
public static final long serialVersionUID = 309380986687912960L;
public static final String NAME = "RoleTypeAttr";
/**
* Role Type Id
*/
@Getter
@Setter
private String roleTypeId;
/**
* Attr Name
*/
@Getter
@Setter
private String attrName;
/**
* Description
*/
@Getter
@Setter
private String description;
/**
* Last Updated Stamp
*/
@Getter
@Setter
private Timestamp lastUpdatedStamp;
/**
* Last Updated Tx Stamp
*/
@Getter
@Setter
private Timestamp lastUpdatedTxStamp;
/**
* Created Stamp
*/
@Getter
@Setter
private Timestamp createdStamp;
/**
* Created Tx Stamp
*/
@Getter
@Setter
private Timestamp createdTxStamp;
public RoleTypeAttr(GenericValue value) {
roleTypeId = (String) value.get(FIELD_ROLE_TYPE_ID);
attrName = (String) value.get(FIELD_ATTR_NAME);
description = (String) value.get(FIELD_DESCRIPTION);
lastUpdatedStamp = (Timestamp) value.get(FIELD_LAST_UPDATED_STAMP);
lastUpdatedTxStamp = (Timestamp) value.get(FIELD_LAST_UPDATED_TX_STAMP);
createdStamp = (Timestamp) value.get(FIELD_CREATED_STAMP);
createdTxStamp = (Timestamp) value.get(FIELD_CREATED_TX_STAMP);
}
public static RoleTypeAttr fromValue(
org.apache.ofbiz.entity.GenericValue value) {
return new RoleTypeAttr(value);
}
public static List<RoleTypeAttr> fromValues(List<GenericValue> values) {
List<RoleTypeAttr> entities = new ArrayList<>();
for (GenericValue value : values) {
entities.add(new RoleTypeAttr(value));
}
return entities;
}
}
|
[
"yuri0x7c1@gmail.com"
] |
yuri0x7c1@gmail.com
|
b2baf6decc5d6a60be466fd4dd7c695c5c5f4c9a
|
e1a4acf1d41b152a0f811e82c27ad261315399cc
|
/lang_interface/java/com/intel/daal/algorithms/neural_networks/layers/lrn/LrnBatch.java
|
de943a07f7378b238e12e6ccb41c1b966766e81d
|
[
"Apache-2.0",
"Intel"
] |
permissive
|
ValeryiE/daal
|
e7572f16e692785db1e17bed23b6ab709db4e705
|
d326bdc5291612bc9e090d95da65aa579588b81e
|
refs/heads/master
| 2020-08-29T11:37:16.157315
| 2019-10-25T13:11:01
| 2019-10-25T13:11:01
| 218,020,419
| 0
| 0
|
Apache-2.0
| 2019-10-28T10:22:19
| 2019-10-28T10:22:19
| null |
UTF-8
|
Java
| false
| false
| 3,998
|
java
|
/* file: LrnBatch.java */
/*******************************************************************************
* Copyright 2014-2019 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
/**
* @defgroup lrn Local Response Normalization Layer
* @brief Contains classes for local response normalization layer
* @ingroup layers
* @{
*/
/**
* @brief Contains classes of the local response normalization layer
*/
package com.intel.daal.algorithms.neural_networks.layers.lrn;
import com.intel.daal.utils.*;
import com.intel.daal.algorithms.neural_networks.layers.ForwardLayer;
import com.intel.daal.algorithms.neural_networks.layers.BackwardLayer;
import com.intel.daal.algorithms.Precision;
import com.intel.daal.algorithms.ComputeMode;
import com.intel.daal.services.DaalContext;
/**
* <a name="DAAL-CLASS-ALGORITHMS__NEURAL_NETWORKS__LAYERS__LRN__LRNBATCH"></a>
* @brief Provides methods for the local response normalization layer in the batch processing mode
* <!-- \n<a href="DAAL-REF-LRNFORWARD-ALGORITHM">Forward lrn layer description and usage models</a> -->
* <!-- \n<a href="DAAL-REF-LRNBACKWARD-ALGORITHM">Backward lrn layer description and usage models</a> -->
*
* @par References
* - @ref LrnForwardBatch class
* - @ref LrnBackwardBatch class
*/
public class LrnBatch extends com.intel.daal.algorithms.neural_networks.layers.LayerIface {
public LrnMethod method; /*!< Computation method for the layer */
public LrnParameter parameter; /*!< lrn layer parameters */
protected Precision prec; /*!< Data type to use in intermediate computations for the layer */
/** @private */
static {
LibUtils.loadLibrary();
}
/**
* Constructs the local response normalization layer
* @param context Context to manage the local response normalization layer
* @param cls Data type to use in intermediate computations for the layer, Double.class or Float.class
* @param method The layer computation method, @ref LrnMethod
*/
public LrnBatch(DaalContext context, Class<? extends Number> cls, LrnMethod method) {
super(context);
this.method = method;
if (method != LrnMethod.defaultDense) {
throw new IllegalArgumentException("method unsupported");
}
if (cls != Double.class && cls != Float.class) {
throw new IllegalArgumentException("type unsupported");
}
if (cls == Double.class) {
prec = Precision.doublePrecision;
}
else {
prec = Precision.singlePrecision;
}
this.cObject = cInit(prec.getValue(), method.getValue());
parameter = new LrnParameter(context, cInitParameter(cObject, prec.getValue(), method.getValue()));
forwardLayer = (ForwardLayer)(new LrnForwardBatch(context, cls, method, cGetForwardLayer(cObject, prec.getValue(), method.getValue())));
backwardLayer = (BackwardLayer)(new LrnBackwardBatch(context, cls, method, cGetBackwardLayer(cObject, prec.getValue(), method.getValue())));
}
private native long cInit(int prec, int method);
private native long cInitParameter(long cAlgorithm, int prec, int method);
private native long cGetForwardLayer(long cAlgorithm, int prec, int method);
private native long cGetBackwardLayer(long cAlgorithm, int prec, int method);
}
/** @} */
|
[
"nikolay.a.petrov@intel.com"
] |
nikolay.a.petrov@intel.com
|
22419b4843357cf366f1c4b1567fc7c89172adaf
|
8bf0b120be7ddb0cf55269b3f2413b26ab590309
|
/src/test/java/io/argoproj/workflow/models/OwnerReferenceTest.java
|
9900108899da6dcc028e451fc56d4c7c7447bfb3
|
[] |
no_license
|
animeshpal-invimatic/argo-client-java
|
704d32e355adfb4823ad0fd2dc39e5081128d917
|
69dbd29f8a5a95a1514fecb4fbd6bd89b044c7c5
|
refs/heads/master
| 2022-12-15T05:09:41.766322
| 2020-09-14T17:52:09
| 2020-09-14T17:52:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,783
|
java
|
/*
* Argo
* Argo
*
* The version of the OpenAPI document: v2.10.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.argoproj.workflow.models;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for OwnerReference
*/
public class OwnerReferenceTest {
private final OwnerReference model = new OwnerReference();
/**
* Model tests for OwnerReference
*/
@Test
public void testOwnerReference() {
// TODO: test OwnerReference
}
/**
* Test the property 'apiVersion'
*/
@Test
public void apiVersionTest() {
// TODO: test apiVersion
}
/**
* Test the property 'blockOwnerDeletion'
*/
@Test
public void blockOwnerDeletionTest() {
// TODO: test blockOwnerDeletion
}
/**
* Test the property 'controller'
*/
@Test
public void controllerTest() {
// TODO: test controller
}
/**
* Test the property 'kind'
*/
@Test
public void kindTest() {
// TODO: test kind
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
/**
* Test the property 'uid'
*/
@Test
public void uidTest() {
// TODO: test uid
}
}
|
[
"alex_collins@intuit.com"
] |
alex_collins@intuit.com
|
8c2c20c9bfa051cf9ea76393606c77ed986a3444
|
129f58086770fc74c171e9c1edfd63b4257210f3
|
/src/testcases/CWE134_Uncontrolled_Format_String/CWE134_Uncontrolled_Format_String__Property_printf_22a.java
|
5ffb3bba579ddf57d146fbd0ba9ed91f9ac48b2c
|
[] |
no_license
|
glopezGitHub/Android23
|
1bd0b6a6c7ce3c7439a74f1e4dcef2c4c0fac4ba
|
6215d0684c4fbdc7217ccfbedfccfca69824cc5e
|
refs/heads/master
| 2023-03-07T15:14:59.447795
| 2023-02-06T13:59:49
| 2023-02-06T13:59:49
| 6,856,387
| 0
| 3
| null | 2023-02-06T18:38:17
| 2012-11-25T22:04:23
|
Java
|
UTF-8
|
Java
| false
| false
| 3,635
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE134_Uncontrolled_Format_String__Property_printf_22a.java
Label Definition File: CWE134_Uncontrolled_Format_String.label.xml
Template File: sources-sinks-22a.tmpl.java
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadSource: Property Read data from a system property
* GoodSource: A hardcoded string
* Sinks: printf
* GoodSink: dynamic printf format with string defined
* BadSink : dynamic printf without validation
* Flow Variant: 22 Control flow: Flow controlled by value of a public static variable. Sink functions are in a separate file from sources.
*
* */
package testcases.CWE134_Uncontrolled_Format_String;
import testcasesupport.*;
public class CWE134_Uncontrolled_Format_String__Property_printf_22a extends AbstractTestCase
{
/* The public static variable below is used to drive control flow in the sink function.
The public static variable mimics a global variable in the C/C++ language family. */
public static boolean bad_public_static = false;
public void bad() throws Throwable
{
String data;
/* get system property user.home */
/* POTENTIAL FLAW: Read data from a system property */
data = System.getProperty("user.home");
bad_public_static = true;
(new CWE134_Uncontrolled_Format_String__Property_printf_22b()).bad_sink(data );
}
/* The public static variables below are used to drive control flow in the sink functions.
The public static variable mimics a global variable in the C/C++ language family. */
public static boolean goodB2G1_public_static = false;
public static boolean goodB2G2_public_static = false;
public static boolean goodG2B_public_static = false;
public void good() throws Throwable
{
goodB2G1();
goodB2G2();
goodG2B();
}
/* goodB2G1() - use badsource and goodsink by setting the static variable to false instead of true */
private void goodB2G1() throws Throwable
{
String data;
/* get system property user.home */
/* POTENTIAL FLAW: Read data from a system property */
data = System.getProperty("user.home");
goodB2G1_public_static = false;
(new CWE134_Uncontrolled_Format_String__Property_printf_22b()).goodB2G1_sink(data );
}
/* goodB2G2() - use badsource and goodsink by reversing the blocks in the if in the sink function */
private void goodB2G2() throws Throwable
{
String data;
/* get system property user.home */
/* POTENTIAL FLAW: Read data from a system property */
data = System.getProperty("user.home");
goodB2G2_public_static = true;
(new CWE134_Uncontrolled_Format_String__Property_printf_22b()).goodB2G2_sink(data );
}
/* goodG2B() - use goodsource and badsink */
private void goodG2B() throws Throwable
{
String data;
/* FIX: Use a hardcoded string */
data = "foo";
goodG2B_public_static = true;
(new CWE134_Uncontrolled_Format_String__Property_printf_22b()).goodG2B_sink(data );
}
/* Below is the main(). It is only used when building this testcase on
its own for testing or for building a binary to use in testing binary
analysis tools. It is not used when compiling all the testcases as one
application, which is how source code analysis tools are tested. */
public static void main(String[] args) throws ClassNotFoundException,
InstantiationException, IllegalAccessException
{
mainFromParent(args);
}
}
|
[
"guillermo.pando@gmail.com"
] |
guillermo.pando@gmail.com
|
4a601fae0241961295af2d0e0f5698a3fdf5bb04
|
129f58086770fc74c171e9c1edfd63b4257210f3
|
/src/testcases/CWE476_NULL_Pointer_Dereference/CWE476_NULL_Pointer_Dereference__Integer_53b.java
|
31d098127d05a7df0e414504331c87d82e992a76
|
[] |
no_license
|
glopezGitHub/Android23
|
1bd0b6a6c7ce3c7439a74f1e4dcef2c4c0fac4ba
|
6215d0684c4fbdc7217ccfbedfccfca69824cc5e
|
refs/heads/master
| 2023-03-07T15:14:59.447795
| 2023-02-06T13:59:49
| 2023-02-06T13:59:49
| 6,856,387
| 0
| 3
| null | 2023-02-06T18:38:17
| 2012-11-25T22:04:23
|
Java
|
UTF-8
|
Java
| false
| false
| 1,345
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE476_NULL_Pointer_Dereference__Integer_53b.java
Label Definition File: CWE476_NULL_Pointer_Dereference.label.xml
Template File: sources-sinks-53b.tmpl.java
*/
/*
* @description
* CWE: 476 Null Pointer Dereference
* BadSource: Set data to null
* GoodSource: Set data to a non-null value
* Sinks:
* GoodSink: add check to prevent possibility of null dereference
* BadSink : possibility of null dereference
* Flow Variant: 53 Data flow: data passed as an argument from one method through two others to a fourth; all four functions are in different classes in the same package
*
* */
package testcases.CWE476_NULL_Pointer_Dereference;
import testcasesupport.*;
public class CWE476_NULL_Pointer_Dereference__Integer_53b
{
public void bad_sink(Integer data ) throws Throwable
{
(new CWE476_NULL_Pointer_Dereference__Integer_53c()).bad_sink(data );
}
/* goodG2B() - use goodsource and badsink */
public void goodG2B_sink(Integer data ) throws Throwable
{
(new CWE476_NULL_Pointer_Dereference__Integer_53c()).goodG2B_sink(data );
}
/* goodB2G() - use badsource and goodsink */
public void goodB2G_sink(Integer data ) throws Throwable
{
(new CWE476_NULL_Pointer_Dereference__Integer_53c()).goodB2G_sink(data );
}
}
|
[
"guillermo.pando@gmail.com"
] |
guillermo.pando@gmail.com
|
9477f48013dfe9a5a97e35b089cc1b9bfcd09f60
|
8fb066359f21081b61a0c227ea2914fb5308cbb1
|
/src/main/java/pe/com/empresa/rk/security/auth/jwt/verifier/TokenVerifier.java
|
a49207535d100ac6ebd385406be7abb256b06efe
|
[] |
no_license
|
JANCARLO123/rkbackend
|
d5c2b13c052bb7291d975955eee0681ea06e9e2d
|
ad93734ec806a269986b1f009d1106de786826f1
|
refs/heads/master
| 2021-01-19T10:11:46.142794
| 2017-04-01T02:36:43
| 2017-04-01T02:36:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 175
|
java
|
package pe.com.empresa.rk.security.auth.jwt.verifier;
/**
* Created by josediaz on 23/11/2016.
*/
public interface TokenVerifier {
public boolean verify(String jti);
}
|
[
"josediaz@tss.com.pe"
] |
josediaz@tss.com.pe
|
0951361b40d0b45f44e8531d6e112b37e71e1ebc
|
7034b8c445d2c6ec34b6ae2d7c4ea0a9ce7f2b36
|
/src/main/java/tasks/NumberOfWaysWhereSquareOfNumberIsEqualToProductOfTwoNumbers.java
|
6fdfd0b25e87667a440fd9f05efb4084f71d4274
|
[] |
no_license
|
RakhmedovRS/LeetCode
|
1e0da62cf6fab90575e061aae27afb22cc849181
|
da4368374eead2f2ce2300c3dfdc941430e717ca
|
refs/heads/master
| 2023-08-31T01:03:59.047473
| 2023-08-27T04:52:15
| 2023-08-27T04:52:15
| 238,749,044
| 14
| 8
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,295
|
java
|
package tasks;
import common.LeetCode;
import java.util.*;
/**
* @author RakhmedovRS
* @created 06-Sep-20
*/
@LeetCode(id = 1577, name = "Number of Ways Where Square of Number Is Equal to Product of Two Numbers", url = "https://leetcode.com/problems/number-of-ways-where-square-of-number-is-equal-to-product-of-two-numbers/")
public class NumberOfWaysWhereSquareOfNumberIsEqualToProductOfTwoNumbers
{
public int numTriplets(int[] nums1, int[] nums2)
{
Map<Long, List<Integer>> map = new HashMap<>();
for (int i = 0; i < nums2.length; i++)
{
map.putIfAbsent((long) nums2[i] * nums2[i], new ArrayList<>());
map.get((long) nums2[i] * nums2[i]).add(i);
}
int count = 0;
for (int i = 0; i < nums1.length; i++)
{
for (int j = i + 1; j < nums1.length; j++)
{
count += map.getOrDefault((long) nums1[i] * nums1[j], Collections.emptyList()).size();
}
}
map = new HashMap<>();
for (int i = 0; i < nums1.length; i++)
{
map.putIfAbsent((long) nums1[i] * nums1[i], new ArrayList<>());
map.get((long) nums1[i] * nums1[i]).add(i);
}
for (int i = 0; i < nums2.length; i++)
{
for (int j = i + 1; j < nums2.length; j++)
{
count += map.getOrDefault((long) nums2[i] * nums2[j], Collections.emptyList()).size();
}
}
return count;
}
}
|
[
"rakhmedovrs@gmail.com"
] |
rakhmedovrs@gmail.com
|
cc6d06fade573703c5bf086a2bbb900094402896
|
ff687b3d1f70a318a9eb25c74cebdc5140770aa2
|
/src/main/java/com/tomkasp/jhipster/web/rest/errors/InternalServerErrorException.java
|
8a35d39737496818c426dbb83b7c1f0472e3330a
|
[] |
no_license
|
tomkasp/jhipster-5-playground
|
aba940d273c3b74e18a6c6260a33c0248e6fc207
|
23c6f9b6927c59ab57c647bf07232e1c7b689fd6
|
refs/heads/master
| 2020-04-10T01:12:43.025794
| 2018-12-22T22:42:50
| 2018-12-22T22:42:50
| 160,709,203
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 505
|
java
|
package com.tomkasp.jhipster.web.rest.errors;
import org.zalando.problem.AbstractThrowableProblem;
import org.zalando.problem.Status;
/**
* Simple exception with a message, that returns an Internal Server Error code.
*/
public class InternalServerErrorException extends AbstractThrowableProblem {
private static final long serialVersionUID = 1L;
public InternalServerErrorException(String message) {
super(ErrorConstants.DEFAULT_TYPE, message, Status.INTERNAL_SERVER_ERROR);
}
}
|
[
"tomkasp@gmail.com"
] |
tomkasp@gmail.com
|
8bc2036ded0f95969909ff731bfaac69b3264415
|
f662526b79170f8eeee8a78840dd454b1ea8048c
|
/io/netty/channel/ChannelInboundInvoker.java
|
8137e7668f2334bafa64d747b2486b99ff53a212
|
[] |
no_license
|
jason920612/Minecraft
|
5d3cd1eb90726efda60a61e8ff9e057059f9a484
|
5bd5fb4dac36e23a2c16576118da15c4890a2dff
|
refs/heads/master
| 2023-01-12T17:04:25.208957
| 2020-11-26T08:51:21
| 2020-11-26T08:51:21
| 316,170,984
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 781
|
java
|
package io.netty.channel;
public interface ChannelInboundInvoker {
ChannelInboundInvoker fireChannelRegistered();
ChannelInboundInvoker fireChannelUnregistered();
ChannelInboundInvoker fireChannelActive();
ChannelInboundInvoker fireChannelInactive();
ChannelInboundInvoker fireExceptionCaught(Throwable paramThrowable);
ChannelInboundInvoker fireUserEventTriggered(Object paramObject);
ChannelInboundInvoker fireChannelRead(Object paramObject);
ChannelInboundInvoker fireChannelReadComplete();
ChannelInboundInvoker fireChannelWritabilityChanged();
}
/* Location: F:\dw\server.jar!\io\netty\channel\ChannelInboundInvoker.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 1.1.3
*/
|
[
"jasonya2206@gmail.com"
] |
jasonya2206@gmail.com
|
8ee3535018e7e0ab8d67f83e4e40eb638b87559e
|
fce3e138ad89dc4e299cee7b69ad31d83e7bf2dc
|
/base/src/main/java/com/miss/base/utils/HexUtil.java
|
c9e102c61d425294a2e132e8c420b320e6050536
|
[] |
no_license
|
bingoloves/mvc-frame
|
59b0b5a5b8aa623fe53c60cbb1f050362c5c5a13
|
850edeadf306ed3d250f6e754e505757026f4e16
|
refs/heads/master
| 2022-04-25T21:43:42.175199
| 2020-04-27T04:25:31
| 2020-04-27T04:25:31
| 259,191,855
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,656
|
java
|
package com.miss.base.utils;
public class HexUtil {
private static final char[] DIGITS_LOWER = { '0', '1', '2', '3', '4', '5',
'6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
private static final char[] DIGITS_UPPER = { '0', '1', '2', '3', '4', '5',
'6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
/**
* 16进制转byte数组
* @param data 16进制字符串
* @return byte数组
* @throws Exception 转化失败的异常
*/
public static byte[] hex2Bytes(final String data) throws Exception {
final int len = data.length();
if ((len & 0x01) != 0) {
throw new Exception("Odd number of characters.");
}
final byte[] out = new byte[len >> 1];
// two characters form the hex value.
for (int i = 0, j = 0; j < len; i++) {
int f = toDigit(data.charAt(j), j) << 4;
j++;
f = f | toDigit(data.charAt(j), j);
j++;
out[i] = (byte) (f & 0xFF);
}
return out;
}
/**
* bytes数组转16进制String
* @param data bytes数组
* @return 转化结果
*/
public static String bytes2Hex(final byte[] data) {
return bytes2Hex(data, true);
}
/**
* bytes数组转16进制String
* @param data bytes数组
* @param toLowerCase 是否小写
* @return 转化结果
*/
public static String bytes2Hex(final byte[] data, final boolean toLowerCase) {
return bytes2Hex(data, toLowerCase ? DIGITS_LOWER : DIGITS_UPPER);
}
/**
* bytes数组转16进制String
* @param data bytes数组
* @param toDigits DIGITS_LOWER或DIGITS_UPPER
* @return 转化结果
*/
private static String bytes2Hex(final byte[] data, final char[] toDigits) {
final int l = data.length;
final char[] out = new char[l << 1];
// two characters form the hex value.
for (int i = 0, j = 0; i < l; i++) {
out[j++] = toDigits[(0xF0 & data[i]) >>> 4];
out[j++] = toDigits[0x0F & data[i]];
}
return new String(out);
}
/**
* 16转化为数字
* @param ch 16进制
* @param index 索引
* @return 转化结果
* @throws Exception 转化失败异常
*/
private static int toDigit(final char ch, final int index)
throws Exception {
final int digit = Character.digit(ch, 16);
if (digit == -1) {
throw new Exception("Illegal hexadecimal character " + ch
+ " at index " + index);
}
return digit;
}
}
|
[
"657952166@qq.com"
] |
657952166@qq.com
|
ec8dc191336d7f1c30623a59f29a677524eb721e
|
3c3d3bed89fba4f5263166ebd78ca736c8e1ace5
|
/Weather Station/weather/test/Timer.java
|
1e0a3fdc28327ece4db93af2cf46f77afcb2acdf
|
[
"Apache-2.0"
] |
permissive
|
GeekChao/Agile-Software-Development
|
91314c1b52a62d4d613998b59616f534d1ef71b0
|
69591fc4caeabbb8dd304375575c229dbe5e5588
|
refs/heads/master
| 2020-09-24T11:00:10.939047
| 2017-11-08T03:11:55
| 2017-11-08T03:11:57
| 225,744,833
| 1
| 0
|
Apache-2.0
| 2019-12-04T00:35:27
| 2019-12-04T00:35:26
| null |
UTF-8
|
Java
| false
| false
| 451
|
java
|
package test;
import api.ClockListener;
public class Timer extends Thread
{
private ClockListener listener;
private long delay;
Timer(long aDelay, ClockListener alistener)
{
listener = alistener;
delay = aDelay; // 10ms by convention
}
public void run()
{
try
{
for(;;)
{
listener.tic();
sleep(delay);
}
}
catch (InterruptedException ie)
{
return;
}
}
}
|
[
"863475209@qq.com"
] |
863475209@qq.com
|
4ea5b25363cb47aaba06494de9c3466965d31933
|
90570a88d374ccb8954a439c6bae53b251cf3dd3
|
/src/test/java/edu/cmu/cs/mvelezce/taint/programs/todo/Sleep14.java
|
2cd98a67a97bfa9ba32247d8884a78644d4a5651
|
[] |
no_license
|
miguelvelezmj25/taintflow
|
4ccc8ee9d8e1a9b3afe92a539698d3dbe39e9d65
|
6f9738a58e04a7469e75e377b432ae33d1b87d68
|
refs/heads/master
| 2021-09-22T08:08:58.553073
| 2018-03-21T12:43:02
| 2018-03-21T12:43:02
| 99,247,509
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,010
|
java
|
package edu.cmu.cs.mvelezce.taint.programs.todo;
import edu.cmu.cs.mvelezce.analysis.option.Source;
/**
* Created by mvelezce on 6/16/17.
*/
public class Sleep14 {
public static final String FILENAME = Sleep14.class.getCanonicalName();
public static final String PACKAGE = Sleep14.class.getPackage().getName();
public static final String CLASS = Sleep14.class.getSimpleName();
public static final String MAIN_METHOD = "main";
public static boolean A = false;
public static boolean B = false;
public static boolean C = false;
public static void main(String[] args) throws InterruptedException {
System.out.println("main");
// boolean a = SourceFormatter.getOption// boolean a(Boolean.valueOf(args[0]));
// int ia = SourceFormatter.getOption// int ia(Boolean.valueOf(args[4]));
// double da = SourceFormatter.getOption// double da(Boolean.valueOf(args[5]));
A = Source.getOptionA(Boolean.valueOf(args[0]));
B = Source.getOptionB(Boolean.valueOf(args[4]));
C = Source.getOptionC(Boolean.valueOf(args[5]));
boolean a;
int b;
double c;
if(A) {
a = true;
}
else {
a = false;
}
if(B) {
b = 0;
}
else {
b = 5;
}
if(C) {
c = 0;
}
else {
c = 5;
}
integer(2);
Thread.sleep(100);
double d = 0;
if(a) {
Thread.sleep(200);
d = 1;
}
else if(b > 4 && c > 2) {
integer(1);
Thread.sleep(300);
}
doubleNumber(d);
}
private static void doubleNumber(double d) throws InterruptedException {
if(d > 0) {
Thread.sleep(400);
}
}
private static void integer(int i) throws InterruptedException {
if(i > 0) {
Thread.sleep(500);
}
}
}
|
[
"miguelvelez@mijecu25.com"
] |
miguelvelez@mijecu25.com
|
68f08c63dac75bf2a0be8b2b864f0e8ccbf313bd
|
46d46854555824bdde8348d145eee826651635d6
|
/app/src/main/java/com/example/androidhrd/mvp_demo/app/di/module/ActivityModule.java
|
27579ab522071ddcc514f04663ef99132feed4f6
|
[] |
no_license
|
1st-short-course/MVP-daggeer-2
|
b3c116746372fdb54764e6c0fbb327b30ba306bc
|
69062d231ad4ed6c4e406cd303fb9ee975f67cb2
|
refs/heads/master
| 2020-03-28T18:35:25.551806
| 2018-09-15T10:58:13
| 2018-09-15T10:58:13
| 148,894,078
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 715
|
java
|
package com.example.androidhrd.mvp_demo.app.di.module;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import com.example.androidhrd.mvp_demo.app.di.component.ApplicationComponent;
import com.example.androidhrd.mvp_demo.app.di.scope.PerActivity;
import dagger.Module;
import dagger.Provides;
@Module
public class ActivityModule {
private AppCompatActivity activity;
public ActivityModule(AppCompatActivity activity){
this.activity=activity;
}
@PerActivity
@Provides
public Context provideContext(){
return this.activity;
}
@Provides
@PerActivity
String getBaseUrl(){
return "http://110.74.194.125:1500";
}
}
|
[
"rathanavoy07@gmail.com"
] |
rathanavoy07@gmail.com
|
f46644b833d46b45ee8afa7451e93fc39472f23a
|
3a94e2beee1f4d2289b1abbe459b1dad18b60168
|
/src/main/java/org/lhqz/demo/thinkinginjava/access/Lunch.java
|
f178cbaa24d32d3cd1ce6e38c90725dc2b8eb27a
|
[] |
no_license
|
leihenqingze/demo-thinkinjava
|
320b0292589dd52d02cad013558b8c45d5ba5a57
|
6735c807fad1963aaec2c755aae5f525304361ad
|
refs/heads/master
| 2020-03-28T19:49:11.915175
| 2018-10-14T08:02:12
| 2018-10-14T08:02:12
| 149,012,487
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 662
|
java
|
package org.lhqz.demo.thinkinginjava.access;
//: access/Lunch.java
class Soup1 {
private Soup1() {
}
public static Soup1 makeSoup() {
return new Soup1();
}
}
class Soup2 {
private Soup2() {
}
private static Soup2 ps1 = new Soup2();
//单例模式
public static Soup2 access() {
return ps1;
}
public void f() {
}
}
public class Lunch {
void testPrivate() {
// 不能创建private构造器类的对象
//! Soup1 soup = new Soup1();
}
void testStatic() {
Soup1 soup = Soup1.makeSoup();
}
void testSingleton() {
Soup2.access().f();
}
}
|
[
"leihenqingze@sina.com"
] |
leihenqingze@sina.com
|
053737bfdba0723d01185e2f13b01b96429f0984
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/14/14_6bb15c79d8ebe5f9d31d734d2a92cfbc43fee166/TopKRank/14_6bb15c79d8ebe5f9d31d734d2a92cfbc43fee166_TopKRank_s.java
|
99718f7f22fdc9802f44076e0d5f02f69ffc5852
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 5,891
|
java
|
package code;
import java.sql.*;
import javax.sql.*;
import java.io.*;
import java.util.*;
import java.util.regex.*;
import org.netezza.*;
import org.netezza.util.*;
//import org.jdom.*;
//import org.jdom.output.*;
//import org.jdom.xpath.* ;
//import org.jdom.input.SAXBuilder;
import org.apache.commons.dbcp.*;
import org.apache.commons.pool.*;
import org.apache.commons.pool.impl.*;
public class TopKRank {
private Object monitor;
Connection c = null;
public static void main (String args[]) {
String f = "";
try {
new TopKRank(args, f);
} catch (Exception e) {
e.printStackTrace();
}
}
public TopKRank ()
{
c = null;
}
public TopKRank (String args[], String file)
{
try
{
String jdbcUrl = new String ("jdbc:netezza://192.168.1.56/graphs?user=admin&password=password");
String jdbcClass = new String ("org.netezza.Driver");
// Load the driver for this database
Class.forName(jdbcClass).newInstance();
int connectionPoolSize = (5 * 2) + 1;
ObjectPool connectionPool;
connectionPool = new GenericObjectPool(null, // factory
connectionPoolSize, // maxActive
GenericObjectPool.WHEN_EXHAUSTED_BLOCK, // whenExhaustedAction
-1, // maxWait
connectionPoolSize, // maxidle
1, // minIdle
true, // testOnBorrow
false, // testOnReturn
3600000, // timeBetweenEvictionRunMillis
3, // numTestsPerEvictionRun
1800000, // minEvictableIdleTimeMillis
true); // testWhileIdle
ConnectionFactory connectionFactory = new DriverManagerConnectionFactory(jdbcUrl, null);
PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(connectionFactory, // connFactory
connectionPool, // pool
null, // stmtPoolFactory
"select 1", // validationQuery
false, // defaultReadOnly
true); // defaultAutoCommit
DataSource dataSource = new PoolingDataSource(connectionPool);
c = dataSource.getConnection();
String name = "test_collection";
int range = 0;
int lifetime = 0;
// read in queries from query file
// while (queryIn)
// {
// results << runQuery(query)
// query = newQuery()
// }
//c.close();
}
catch (SQLException sqle)
{
sqle.printStackTrace();
}
catch (ClassNotFoundException cnfe)
{
cnfe.printStackTrace();
}
catch (InstantiationException ie) {
ie.printStackTrace();
}
catch (IllegalAccessException iae)
{
iae.printStackTrace();
}
}
private void runQuery(ArrayList query)
{
int NUM_SUBGRAPHS = 15;
}
public class Subgraph {
private class SubgraphComparator implements Comparator {
public int compare(Object obj1, Object obj2)
{
Subgraph s1 = (Subgraph) obj1;
Subgraph s2 = (Subgraph) obj2;
int ret = -1;
// isomorph score is used after isomorph sub-graph is found.
// it is the official rank
if (s1.getIsomorphScore() > s2.getIsomorphScore())
ret = 1;
else if (s1.getIsomorphScore() > s2.getIsomorphScore())
ret = -1;
else // if the isomorphs are the same, they probably haven't been set
// so we want to order by upScore
{
if (s1.getUpScore() > s2.getUpScore())
ret = 1;
else if (s1.getUpScore() > s2.getUpScore())
ret = -1;
else
ret = 0;
}
return ret;
}
}
private LinkedList<String> query;
private final SubgraphComparator comp = new SubgraphComparator();
private int subgraph;
private double upScore;
private double isomorphScore;
public Subgraph(LinkedList<String> query, int subgraph)
{
this.query = query;
this.subgraph = subgraph;
this.isomorphScore = -1.0;
this.upScore = calcUpScore();
}
/**
* Runs each query in query against the subgraph. If the particular
* vertex_1 ---edge_type---> vertex_2 exists, we increment our upScore
*/
private double calcUpScore()
{
double ret = 0.0;
int numResults = 0;
try
{
PreparedStatement ps = c.prepareStatement(UPSCORE_QUERY);
String attrValue;
String vertex1;
String vertex2;
while (!query.isEmpty())
{
attrValue = query.removeFirst();
vertex1 = query.removeFirst();
vertex2 = query.removeFirst();
ps.setInt(1, subgraph);
ps.setString(2, vertex1);
ps.setString(3, vertex2);
ps.setString(4, attrValue);
System.err.println("Subgraph: " + subgraph);
System.err.println("Query: " + ps.toString() + "\n");
if (ps.execute())
{
System.out.println("Query success!");
// we're just incrementing now, eventually
// we need to normalize it based on something
// or other
ret++;
}
else
{
System.out.println("Query failure!");
}
}
}
catch (SQLException sqle)
{
sqle.printStackTrace();
}
return ret;
}
public double getUpScore()
{
return upScore;
}
public double getIsomorphScore()
{
return isomorphScore;
}
public Comparator getComparator()
{
return comp;
}
}
// The table selected depends on the naming scheme you use for the goddamn subgraphs. Remember that shit.
private static String UPSCORE_QUERY = "SELECT * FROM SUBGRAPHS_2 WHERE SUBGRAPH = ? AND VERTEX_1='?' AND VERTEX_2='?' AND ATTR_VALUE='?'";
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
561add5292ce77f8c30d7cd6196f01c61843e990
|
13f8de23ea9ad4ee9e91d215c62eaf5ffeb09239
|
/src/main/java/com/demo/alg/util/ArrayUtils.java
|
abf6534b5aea8fb3cab783d28346b60d9485b229
|
[] |
no_license
|
yhb2010/alg_demo
|
b0b50d17c0321fd935dbdef90c6964661ebc97ec
|
0c0aa27939a4f4f57c5f139b7d0e4a2794688206
|
refs/heads/master
| 2020-04-09T22:08:19.853052
| 2018-12-08T07:08:31
| 2018-12-08T07:08:31
| 160,620,930
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 791
|
java
|
package com.demo.alg.util;
public class ArrayUtils {
public static void printArray(int[] array) {
System.out.print("{");
for (int i = 0; i < array.length; i++) {
System.out.print(array[i]);
if (i < array.length - 1) {
System.out.print(", ");
}
}
System.out.println("}");
}
public static void printArray(int[] array, int start, int end) {
System.out.print("{");
for (int i = start; i <= end; i++) {
if (end <= array.length - 1) {
System.out.print(array[i]);
if (i < end) {
System.out.print(", ");
}
}
}
System.out.println("}");
}
public static void exchangeElements(int[] array, int index1, int index2) {
int temp = array[index1];
array[index1] = array[index2];
array[index2] = temp;
}
}
|
[
"youtong82@163.com"
] |
youtong82@163.com
|
6f7ead97ca98e2c25d10a2981676d43b687db45a
|
c474b03758be154e43758220e47b3403eb7fc1fc
|
/apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/leanplum/p069a/bb.java
|
1107e989a0ef2a20d341366332700a6db51b5fbe
|
[] |
no_license
|
EstebanDalelR/tinderAnalysis
|
f80fe1f43b3b9dba283b5db1781189a0dd592c24
|
941e2c634c40e5dbf5585c6876ef33f2a578b65c
|
refs/heads/master
| 2020-04-04T09:03:32.659099
| 2018-11-23T20:41:28
| 2018-11-23T20:41:28
| 155,805,042
| 0
| 0
| null | 2018-11-18T16:02:45
| 2018-11-02T02:44:34
| null |
UTF-8
|
Java
| false
| false
| 597
|
java
|
package com.leanplum.p069a;
import java.util.Map;
/* renamed from: com.leanplum.a.bb */
public final class bb {
/* renamed from: a */
private static bb f7981a;
/* renamed from: a */
public static synchronized bb m9588a() {
bb bbVar;
synchronized (bb.class) {
if (f7981a == null) {
f7981a = new bb();
}
bbVar = f7981a;
}
return bbVar;
}
/* renamed from: a */
public static aw m9587a(String str, String str2, Map<String, Object> map) {
return new aw(str, str2, map);
}
}
|
[
"jdguzmans@hotmail.com"
] |
jdguzmans@hotmail.com
|
a350fef180c54bc218882c88a50b4252b4e1a0a9
|
94e641d91df0b7223a7d21cb0b1cef740e42542e
|
/server/src/test/java/io/crate/expression/scalar/timestamp/CurrentTimeFunctionTest.java
|
180e9c54d02d75e1c68324ead6afe373dddc5d73
|
[
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] |
permissive
|
matriv/crate
|
1ab2ca139584c1b169247d67667f23fa13b2ef65
|
6a4f5ed0fde340ca7d81070e6c4bcda7e03cfaa8
|
refs/heads/master
| 2022-06-20T09:59:56.624647
| 2022-06-08T13:31:32
| 2022-06-08T20:22:26
| 488,165,839
| 1
| 0
|
Apache-2.0
| 2022-05-03T10:32:46
| 2022-05-03T10:32:45
| null |
UTF-8
|
Java
| false
| false
| 3,022
|
java
|
/*
* Licensed to Crate.io GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may
* obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* However, if you have executed another commercial license agreement
* with Crate these terms will supersede the license and you may use the
* software solely pursuant to the terms of the relevant commercial agreement.
*/
package io.crate.expression.scalar.timestamp;
import io.crate.expression.scalar.ScalarTestCase;
import io.crate.expression.symbol.Literal;
import io.crate.metadata.SystemClock;
import io.crate.types.TimeTZ;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import static org.hamcrest.Matchers.instanceOf;
public class CurrentTimeFunctionTest extends ScalarTestCase {
private static final long CURRENT_TIME_MILLIS = (10 * 3600 + 57 * 60 + 12) * 1000L; // 10:57:12 UTC
@Before
public void prepare() {
SystemClock.setCurrentMillisFixedUTC(CURRENT_TIME_MILLIS);
}
@After
public void cleanUp() {
SystemClock.setCurrentMillisSystemUTC();
}
private static TimeTZ microsFromMidnightUTC(Instant i) {
long dateTimeMicros = (i.getEpochSecond() * 1000_000_000L + i.getNano()) / 1000L;
long dateMicros = i.truncatedTo(ChronoUnit.DAYS).toEpochMilli() * 1000L;
return new TimeTZ(dateTimeMicros - dateMicros, 0);
}
@Test
public void time_is_created_correctly() {
TimeTZ expected = microsFromMidnightUTC(txnCtx.currentInstant());
assertEvaluate("current_time", expected);
assertEvaluate("current_time(6)", expected);
}
@Test
public void test_calls_within_statement_are_idempotent() {
assertEvaluate("current_time = current_time", true);
}
@Test
public void time_zero_precission() {
assertEvaluate("current_time(0)", microsFromMidnightUTC(txnCtx.currentInstant()));
}
@Test
public void precision_larger_than_6_raises_exception() {
expectedException.expect(IllegalArgumentException.class);
expectedException.expectMessage("precision must be between [0..6]");
assertEvaluate("current_time(14)", null);
}
@Test
public void integerIsNormalizedToLiteral() {
assertNormalize("current_time(1)", instanceOf(Literal.class));
}
}
|
[
"37929162+mergify[bot]@users.noreply.github.com"
] |
37929162+mergify[bot]@users.noreply.github.com
|
fbad24dde0a0b37b3fa89659dd12cf1d3ce62e5d
|
5d43c7696516481ce7a0a174bf8b9095576b9f37
|
/jeometry/src/test/java/org/jeometry/Triangle2FTest.java
|
f475cd8accf2f4f88302b21878f997a96b6dee55
|
[] |
no_license
|
dlubarov/jeometry
|
e1c225a40c708dfca23afe41fef92629d99e5f7d
|
c53a31e29143816be2945f2902f786e1a1840c89
|
refs/heads/master
| 2020-06-07T13:15:15.459358
| 2014-10-24T00:05:46
| 2014-10-24T00:05:46
| 24,551,087
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 723
|
java
|
package org.jeometry;
import org.assertj.core.data.Offset;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.offset;
public class Triangle2FTest {
private static final Offset<Float> EPSILON = offset(0.01f);
@Test
public void testGetBoundingBox() {
Triangle2F triangle = new Triangle2F(Vector2F.UNIT_X, Vector2F.UNIT_Y, Vector2F.ZERO);
AxisAlignedBox2F boundingBox = triangle.getBoundingBox();
assertThat(boundingBox.min.x).isEqualTo(0, EPSILON);
assertThat(boundingBox.min.y).isEqualTo(0, EPSILON);
assertThat(boundingBox.max.x).isEqualTo(1, EPSILON);
assertThat(boundingBox.max.y).isEqualTo(1, EPSILON);
}
}
|
[
"daniel@lubarov.com"
] |
daniel@lubarov.com
|
379a7012248961759755098c49b8df41de1c8827
|
a4a4d88779d981efcb6f5725e589f97008535f02
|
/src/main/java/vaccinationproject/mainfunctions/VaccinationMain.java
|
b97b9f204387729b668279dee7be09148fc1692d
|
[] |
no_license
|
kincza1971/training-solutions
|
1ba7bba4c90099c4a8d01c7382a8a4b6d0aed027
|
87e0e37a2acaff96f21df6014177d9f5496081b2
|
refs/heads/master
| 2023-03-23T22:40:15.720490
| 2021-03-24T13:38:25
| 2021-03-24T13:38:25
| 309,034,906
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 303
|
java
|
package vaccinationproject.mainfunctions;
import java.util.Scanner;
public class VaccinationMain {
public static void main(String[] args) {
Scanner scr = new Scanner(System.in);
VaccinationController covid = new VaccinationController(scr);
covid.controllerMain();
}
}
|
[
"kincza@gmail.com"
] |
kincza@gmail.com
|
5ab3132275fbeebd554a26b02697e417d2959ad8
|
34898f50dba5a6d822179641220e6fab1ba76264
|
/we-web-parent/web-template/src/main/java/com/xiaoka/template/admin/login/service/impl/LoginServiceImpl.java
|
55c32abb4d74c7ef6ae621281875a6ee96204ca2
|
[] |
no_license
|
zhilien-tech/zhiliren-we
|
c54fbf774a79d57ddaa2302634d8f116b8002ce3
|
2df7ed63a530c8546d9d901ff13a980d2df42ba7
|
refs/heads/dev
| 2020-07-05T20:23:23.643277
| 2017-12-09T09:02:34
| 2017-12-09T09:02:34
| 73,982,139
| 0
| 7
| null | 2017-12-09T09:02:35
| 2016-11-17T02:29:54
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 4,243
|
java
|
package com.xiaoka.template.admin.login.service.impl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import com.uxuexi.core.common.util.Util;
import com.uxuexi.core.web.base.service.BaseService;
import com.xiaoka.template.admin.authority.functionmanage.entity.FunctionEntity;
import com.xiaoka.template.admin.authority.usermanage.entity.UserEntity;
import com.xiaoka.template.admin.authority.usermanage.service.UserService;
import com.xiaoka.template.admin.log.service.SLogService;
import com.xiaoka.template.admin.login.form.LoginForm;
import com.xiaoka.template.admin.login.service.LoginService;
import com.xiaoka.template.common.access.AccessConfig;
import com.xiaoka.template.common.access.sign.MD5;
import com.xiaoka.template.common.constants.CommonConstants;
import com.xiaoka.template.common.util.IpUtil;
@IocBean(name = "loginService")
public class LoginServiceImpl extends BaseService<UserEntity> implements LoginService {
@Inject
private UserService userService;
@Inject
private SLogService sLogService;
@Override
public boolean login(final LoginForm form, final HttpSession session, final HttpServletRequest req) {
String recode = (String) session.getAttribute(CommonConstants.CONFIRMCODE);
String vCode = form.getValidateCode();
if (Util.isEmpty(vCode) || !recode.equalsIgnoreCase(vCode)) {
form.setErrMsg("验证码不正确");
return false;
}
String passwd = MD5.sign(form.getPassword(), AccessConfig.password_secret, AccessConfig.INPUT_CHARSET);
UserEntity user = userService.findUser(form.getLoginName(), passwd);
if (user == null) {
form.setErrMsg("用户名或密码错误");
return false;
} else {
if (CommonConstants.DATA_STATUS_VALID != user.getStatus()) {
form.setErrMsg("账号未激活");
return false;
}
addLoginlog(user, req);
List<FunctionEntity> allUserFunction = userService.findUserFunctions(user.getId());
//1级菜单
List<FunctionEntity> menus = new ArrayList<FunctionEntity>();
//根据菜单取功能的map
Map<Long, List<FunctionEntity>> functionMap = new HashMap<Long, List<FunctionEntity>>();
for (FunctionEntity f : allUserFunction) {
if (1 == f.getLevel()) {
menus.add(f);
}
if (2 == f.getLevel()) {
List<FunctionEntity> subList = functionMap.get(f.getParentId());
if (null == subList) {
subList = new ArrayList<FunctionEntity>();
subList.add(f);
functionMap.put(f.getParentId(), subList);
} else {
subList.add(f);
}
}
}
//排序functionMap
Set<Long> keySet = functionMap.keySet();
for (Long key : keySet) {
List<FunctionEntity> list = functionMap.get(key);
if (!Util.isEmpty(list)) {
Collections.sort(list, new Comparator<FunctionEntity>() {
@Override
public int compare(FunctionEntity o1, FunctionEntity o2) {
if (null == o1 || null == o1.getSort()) {
return 0;
}
return o1.getSort().compareTo(o2.getSort());
}
});
}
}
//将用户权限保存到session中
session.setAttribute(FUNCTION_MAP_KEY, functionMap); //功能
session.setAttribute(MENU_KEY, menus); //菜单
session.setAttribute(AUTHS_KEY, allUserFunction); //所有功能
session.setAttribute(LOGINUSER, user);
session.setAttribute(IS_LOGIN_KEY, true);
}
return true;
}
@Override
public void logout(HttpSession session) {
session.removeAttribute(AUTHS_KEY);
session.removeAttribute(IS_LOGIN_KEY);
session.invalidate();
}
@Override
public Boolean isLogin(HttpSession session) {
return !Util.isEmpty(session.getAttribute(IS_LOGIN_KEY));
}
/**添加登录日志*/
private void addLoginlog(UserEntity user, HttpServletRequest req) {
FunctionEntity function = new FunctionEntity();
function.setId(-1);
function.setName("登录");
function.setUrl("/login.html");
String ip = IpUtil.getIpAddr(req);
sLogService.addSyslog(function, user, ip);
}
}
|
[
"Richardcjb@163.com"
] |
Richardcjb@163.com
|
0a05cf417c84c66c2dabd995808d1baa6aa52ad3
|
7a21ff93edba001bef328a1e927699104bc046e5
|
/project-pipe-parent/module-parent/service-module-parent/data-receiver-service/src/main/java/com/dotop/pipe/data/receiver/api/service/IDevicePropertyLogService.java
|
aaa097abd4523f3354684fae4db1c519038cdf05
|
[] |
no_license
|
150719873/zhdt
|
6ea1ca94b83e6db2012080f53060d4abaeaf12f5
|
c755dacdd76b71fd14aba5e475a5862a8d92c1f6
|
refs/heads/master
| 2022-12-16T06:59:28.373153
| 2020-09-14T06:57:16
| 2020-09-14T06:57:16
| 299,157,259
| 1
| 0
| null | 2020-09-28T01:45:10
| 2020-09-28T01:45:10
| null |
UTF-8
|
Java
| false
| false
| 785
|
java
|
package com.dotop.pipe.data.receiver.api.service;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.alibaba.fastjson.JSONObject;
import com.dotop.pipe.core.vo.device.DevicePropertyLogVo;
public interface IDevicePropertyLogService {
void add(String deviceId, String deviceCode, String field, String tag, String name, String unit, String val,
Date devSendDate, Date serReceDate, Date curr, String userBy, String enterpriseId);
List<DevicePropertyLogVo> list(Date startDate, Date endDate);
/**
* 动态插入数据接口
* @param originalData
* @param deviceId
* @param enterpriseId
*
* @param propertyMap
*/
void addProperty(Map<String, Object> propertyLogMap, String enterpriseId, String deviceId, JSONObject originalData);
}
|
[
"2216502193@qq.com"
] |
2216502193@qq.com
|
5fb52042ba7fce040c45cff05dda0e11b2539d31
|
dae349f5fe3aedb2aa5a052b992bd020208d0008
|
/src/main/java/org/docksidestage/howto/dbflute/cbean/cq/ProductStatusCQ.java
|
ae0e9056d40b25a3a1007a0bf6ab9c5450d3d7f2
|
[
"Apache-2.0"
] |
permissive
|
dbflute/dbflute-howto
|
4dc56e2e603b7681664b03b38f05b5c03e6a6539
|
b9ec1bbc8b78b1db009fcc0fbd47bdbb4045db68
|
refs/heads/master
| 2023-07-24T11:56:35.704500
| 2023-07-19T18:45:43
| 2023-07-19T18:45:43
| 28,403,418
| 0
| 4
|
Apache-2.0
| 2023-07-07T21:45:50
| 2014-12-23T14:55:18
|
Java
|
UTF-8
|
Java
| false
| false
| 2,315
|
java
|
/*
* Copyright 2014-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
package org.docksidestage.howto.dbflute.cbean.cq;
import org.dbflute.cbean.ConditionQuery;
import org.dbflute.cbean.sqlclause.SqlClause;
import org.docksidestage.howto.dbflute.cbean.cq.bs.BsProductStatusCQ;
/**
* The condition-query of PRODUCT_STATUS.
* <p>
* You can implement your original methods here.
* This class remains when re-generating.
* </p>
* @author DBFlute(AutoGenerator)
*/
public class ProductStatusCQ extends BsProductStatusCQ {
// ===================================================================================
// Constructor
// ===========
// You should NOT touch with this constructor.
/**
* Constructor.
* @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query)
* @param sqlClause The instance of SQL clause. (NotNull)
* @param aliasName The alias name for this query. (NotNull)
* @param nestLevel The nest level of this query. (If zero, this is base query)
*/
public ProductStatusCQ(ConditionQuery referrerQuery, SqlClause sqlClause, String aliasName, int nestLevel) {
super(referrerQuery, sqlClause, aliasName, nestLevel);
}
// ===================================================================================
// Arrange Query
// =============
// You can make your arranged query methods here.
//public void arrangeXxx() {
// ...
//}
}
|
[
"dbflute@gmail.com"
] |
dbflute@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.