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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
95bbf2beee5aef7622309ac45ae0e42056d4865c
|
659f2dfa9e5efcb6619aa5bdc087ed127f8c93e4
|
/sources/libraries/config/model/src/main/java/com/minsait/onesait/platform/config/model/GadgetMeasure.java
|
7ee94ad63c9e8a4d80331ca620dc7b368765ce5b
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
onesaitplatform/onesaitplatform-revolution-the-minspait-crowd
|
cdb806cbcf5d38d9301a955a88b1e6f540f1be05
|
09937b4df0317013c2dfd0416cfe1c45090486f8
|
refs/heads/master
| 2021-06-17T10:53:26.819575
| 2019-10-09T14:58:20
| 2019-10-09T14:58:20
| 210,382,466
| 2
| 1
|
NOASSERTION
| 2021-06-04T02:20:29
| 2019-09-23T14:55:26
|
Java
|
UTF-8
|
Java
| false
| false
| 1,918
|
java
|
/**
* Copyright Indra Soluciones Tecnologías de la Información, S.L.U.
* 2013-2019 SPAIN
*
* 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.minsait.onesait.platform.config.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction;
import org.hibernate.annotations.Type;
import org.springframework.beans.factory.annotation.Configurable;
import com.minsait.onesait.platform.config.model.base.AuditableEntityWithUUID;
import lombok.Getter;
import lombok.Setter;
@Configurable
@Entity
@Table(name = "GADGET_MEASURE")
public class GadgetMeasure extends AuditableEntityWithUUID {
private static final long serialVersionUID = 1L;
@ManyToOne
@JoinColumn(name = "GADGET_ID", referencedColumnName = "ID")
@OnDelete(action = OnDeleteAction.CASCADE)
@Getter
@Setter
private Gadget gadget;
@ManyToOne
@JoinColumn(name = "DATASOURCE_ID", referencedColumnName = "ID")
@OnDelete(action = OnDeleteAction.CASCADE)
@Getter
@Setter
private GadgetDatasource datasource;
@Column(name = "CONFIG")
@Lob
@Type(type = "org.hibernate.type.TextType")
@Getter
@Setter
private String config;
}
|
[
"danzig6661@gmail.com"
] |
danzig6661@gmail.com
|
c1a57d53aa0b8dc2b0f0c5fb565689bbea396577
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/8/8_4dbe8ad3a815a74abaa780b40298793a5401da69/ExportProjectSetMainPage/8_4dbe8ad3a815a74abaa780b40298793a5401da69_ExportProjectSetMainPage_s.java
|
7d4087b1f1cc5c24241277b0602a02aa6a8531eb
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 6,519
|
java
|
/*******************************************************************************
* Copyright (c) 2002 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v05.html
*
* Contributors:
* IBM - Initial API and implementation
******************************************************************************/
package org.eclipse.team.internal.ui;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.CheckStateChangedEvent;
import org.eclipse.jface.viewers.CheckboxTableViewer;
import org.eclipse.jface.viewers.ICheckStateListener;
import org.eclipse.jface.viewers.TableLayout;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.FileDialog;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.Text;
import org.eclipse.team.core.RepositoryProvider;
import org.eclipse.ui.model.WorkbenchContentProvider;
import org.eclipse.ui.model.WorkbenchLabelProvider;
public class ExportProjectSetMainPage extends TeamWizardPage {
Text fileText;
String file = ""; //$NON-NLS-1$
Button browseButton;
List selectedProjects = new ArrayList();
CheckboxTableViewer tableViewer;
Table table;
class ProjectContentProvider extends WorkbenchContentProvider {
public Object[] getElements(Object element) {
if (element instanceof IProject[]) return (IProject[]) element;
return null;
}
};
public ExportProjectSetMainPage(String pageName, String title, ImageDescriptor titleImage) {
super(pageName, title, titleImage);
}
/*
* @see IDialogPage#createControl(Composite)
*/
public void createControl(Composite parent) {
Composite composite = createComposite(parent, 1);
initializeDialogUnits(composite);
createLabel(composite, Policy.bind("ExportProjectSetMainPage.Select_the_projects_to_include_in_the_project_set__2")); //$NON-NLS-1$
table = new Table(composite, SWT.CHECK);
tableViewer = new CheckboxTableViewer(table);
table.setLayout(new TableLayout());
table.setLayoutData(new GridData(GridData.FILL_BOTH));
tableViewer.setContentProvider(new ProjectContentProvider());
tableViewer.setLabelProvider(new WorkbenchLabelProvider());
tableViewer.addCheckStateListener(new ICheckStateListener() {
public void checkStateChanged(CheckStateChangedEvent event) {
IProject project = (IProject)event.getElement();
if (event.getChecked()) {
selectedProjects.add(project);
} else {
selectedProjects.remove(project);
}
}
});
createLabel(composite, Policy.bind("ExportProjectSetMainPage.Project_Set_File_Name__3")); //$NON-NLS-1$
Composite inner = new Composite(composite, SWT.NULL);
inner.setLayoutData(new GridData(GridData.FILL_BOTH));
GridLayout layout = new GridLayout();
layout.numColumns = 2;
layout.marginHeight = 0;
layout.marginWidth = 0;
inner.setLayout(layout);
fileText = createTextField(inner);
if (file != null) fileText.setText(file);
fileText.addListener(SWT.Modify, new Listener() {
public void handleEvent(Event event) {
file = fileText.getText();
updateEnablement();
}
});
browseButton = new Button(inner, SWT.PUSH);
browseButton.setText(Policy.bind("ExportProjectSetMainPage.Browse_4")); //$NON-NLS-1$
GridData data = new GridData();
data.horizontalAlignment = GridData.FILL;
data.heightHint = convertVerticalDLUsToPixels(IDialogConstants.BUTTON_HEIGHT);
int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
data.widthHint = Math.max(widthHint, browseButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
browseButton.setLayoutData(data);
browseButton.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event event) {
FileDialog d = new FileDialog(getShell());
d.setFilterExtensions(new String[] {Policy.bind("ExportProjectSetMainPage.*.psf_2")}); //$NON-NLS-1$
d.setFilterNames(new String[] {Policy.bind("ExportProjectSetMainPage.Project_Set_Files_3")}); //$NON-NLS-1$
String f = d.open();
if (f != null) {
fileText.setText(f);
file = f;
}
}
});
initializeProjects();
setControl(composite);
updateEnablement();
}
private void initializeProjects() {
List projectList = new ArrayList();
IProject[] workspaceProjects = ResourcesPlugin.getWorkspace().getRoot().getProjects();
for (int i = 0; i < workspaceProjects.length; i++) {
if (RepositoryProvider.getProvider(workspaceProjects[i]) != null) {
projectList.add(workspaceProjects[i]);
}
}
tableViewer.setInput((IProject[]) projectList.toArray(new IProject[projectList.size()]));
// Check any necessary projects
if (selectedProjects != null) {
tableViewer.setCheckedElements((IProject[])selectedProjects.toArray(new IProject[selectedProjects.size()]));
}
}
private void updateEnablement() {
boolean complete;
if (file.length() == 0) {
setMessage(null);
complete = false;
} else {
File f = new File(file);
if (f.isDirectory()) {
setMessage(Policy.bind("ExportProjectSetMainPage.You_have_specified_a_folder_5"), ERROR); //$NON-NLS-1$
complete = false;
} else {
complete = true;
}
}
if (complete) {
setMessage(null);
}
setPageComplete(complete);
}
public String getFileName() {
return file;
}
public void setFileName(String file) {
if (file != null) {
this.file = file;
}
}
public IProject[] getSelectedProjects() {
return (IProject[])selectedProjects.toArray(new IProject[selectedProjects.size()]);
}
public void setSelectedProjects(IProject[] selectedProjects) {
this.selectedProjects.addAll(Arrays.asList(selectedProjects));
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
a9d0b0d8eaadee50c44dcd1b44db8555bbc37421
|
a5b7853f5cce068f8da48e607e02449c7e6d722f
|
/src/test/java/com/bbg/beacon/web/rest/AuditResourceIntTest.java
|
3f96e6f19593afeca3811e703ca4fa9b58064de0
|
[] |
no_license
|
miketregan/beacon
|
cd52be3b118af63d1e9acff21af67981c89c52f2
|
0f08a6057d803c5f90f2f38c819514420e6a2899
|
refs/heads/master
| 2021-01-25T12:36:56.635794
| 2018-03-01T20:00:30
| 2018-03-01T20:00:30
| 123,485,785
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,939
|
java
|
package com.bbg.beacon.web.rest;
import com.bbg.beacon.BeaconApp;
import com.bbg.beacon.config.audit.AuditEventConverter;
import com.bbg.beacon.domain.PersistentAuditEvent;
import com.bbg.beacon.repository.PersistenceAuditEventRepository;
import com.bbg.beacon.service.AuditEventService;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.MockitoAnnotations;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.web.PageableHandlerMethodArgumentResolver;
import org.springframework.format.support.FormattingConversionService;
import org.springframework.http.MediaType;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import org.springframework.transaction.annotation.Transactional;
import java.time.Instant;
import java.time.format.DateTimeFormatter;
import static org.hamcrest.Matchers.hasItem;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
/**
* Test class for the AuditResource REST controller.
*
* @see AuditResource
*/
@RunWith(SpringRunner.class)
@SpringBootTest(classes = BeaconApp.class)
@Transactional
public class AuditResourceIntTest {
private static final String SAMPLE_PRINCIPAL = "SAMPLE_PRINCIPAL";
private static final String SAMPLE_TYPE = "SAMPLE_TYPE";
private static final Instant SAMPLE_TIMESTAMP = Instant.parse("2015-08-04T10:11:30Z");
private static final long SECONDS_PER_DAY = 60 * 60 * 24;
@Autowired
private PersistenceAuditEventRepository auditEventRepository;
@Autowired
private AuditEventConverter auditEventConverter;
@Autowired
private MappingJackson2HttpMessageConverter jacksonMessageConverter;
@Autowired
private FormattingConversionService formattingConversionService;
@Autowired
private PageableHandlerMethodArgumentResolver pageableArgumentResolver;
private PersistentAuditEvent auditEvent;
private MockMvc restAuditMockMvc;
@Before
public void setup() {
MockitoAnnotations.initMocks(this);
AuditEventService auditEventService =
new AuditEventService(auditEventRepository, auditEventConverter);
AuditResource auditResource = new AuditResource(auditEventService);
this.restAuditMockMvc = MockMvcBuilders.standaloneSetup(auditResource)
.setCustomArgumentResolvers(pageableArgumentResolver)
.setConversionService(formattingConversionService)
.setMessageConverters(jacksonMessageConverter).build();
}
@Before
public void initTest() {
auditEventRepository.deleteAll();
auditEvent = new PersistentAuditEvent();
auditEvent.setAuditEventType(SAMPLE_TYPE);
auditEvent.setPrincipal(SAMPLE_PRINCIPAL);
auditEvent.setAuditEventDate(SAMPLE_TIMESTAMP);
}
@Test
public void getAllAudits() throws Exception {
// Initialize the database
auditEventRepository.save(auditEvent);
// Get all the audits
restAuditMockMvc.perform(get("/management/audits"))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))
.andExpect(jsonPath("$.[*].principal").value(hasItem(SAMPLE_PRINCIPAL)));
}
@Test
public void getAudit() throws Exception {
// Initialize the database
auditEventRepository.save(auditEvent);
// Get the audit
restAuditMockMvc.perform(get("/management/audits/{id}", auditEvent.getId()))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))
.andExpect(jsonPath("$.principal").value(SAMPLE_PRINCIPAL));
}
@Test
public void getAuditsByDate() throws Exception {
// Initialize the database
auditEventRepository.save(auditEvent);
// Generate dates for selecting audits by date, making sure the period will contain the audit
String fromDate = SAMPLE_TIMESTAMP.minusSeconds(SECONDS_PER_DAY).toString().substring(0,10);
String toDate = SAMPLE_TIMESTAMP.plusSeconds(SECONDS_PER_DAY).toString().substring(0,10);
// Get the audit
restAuditMockMvc.perform(get("/management/audits?fromDate="+fromDate+"&toDate="+toDate))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))
.andExpect(jsonPath("$.[*].principal").value(hasItem(SAMPLE_PRINCIPAL)));
}
@Test
public void getNonExistingAuditsByDate() throws Exception {
// Initialize the database
auditEventRepository.save(auditEvent);
// Generate dates for selecting audits by date, making sure the period will not contain the sample audit
String fromDate = SAMPLE_TIMESTAMP.minusSeconds(2*SECONDS_PER_DAY).toString().substring(0,10);
String toDate = SAMPLE_TIMESTAMP.minusSeconds(SECONDS_PER_DAY).toString().substring(0,10);
// Query audits but expect no results
restAuditMockMvc.perform(get("/management/audits?fromDate=" + fromDate + "&toDate=" + toDate))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))
.andExpect(header().string("X-Total-Count", "0"));
}
@Test
public void getNonExistingAudit() throws Exception {
// Get the audit
restAuditMockMvc.perform(get("/management/audits/{id}", Long.MAX_VALUE))
.andExpect(status().isNotFound());
}
}
|
[
"jhipster-bot@users.noreply.github.com"
] |
jhipster-bot@users.noreply.github.com
|
8d3616916a18f8edb6362e086d8995e13e8bfeb9
|
3df715c046ce3d96680b3df88ca26a048fb3c71d
|
/src/문제집/backjoon/부분합/Main.java
|
c071814cd68b644cb784983c7d8bb5a122f5e18d
|
[] |
no_license
|
camel-man-ims/algorithm-collection
|
79163d0f0681b4e682ed14b3ac3cc499e832204d
|
225473c41f206337de9c97a33ea92414f2793c37
|
refs/heads/main
| 2022-12-27T04:52:59.505738
| 2022-11-16T15:23:14
| 2022-11-16T15:23:14
| 303,552,853
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,261
|
java
|
package 문제집.backjoon.부분합;
import java.io.*;
import java.util.StringTokenizer;
public class Main {
static int N,S;
static int[] arr;
static int answer;
public static void main(String[] args) throws IOException {
System.setIn(new FileInputStream("./src/backjoon/부분합/input.txt"));
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
StringTokenizer st = new StringTokenizer(br.readLine()," ");
N = Integer.parseInt(st.nextToken());
S = Integer.parseInt(st.nextToken());
arr = new int[N];
st = new StringTokenizer(br.readLine()," ");
for(int i=0;i<N;i++){
arr[i] = Integer.parseInt(st.nextToken());
}
int left=0,right = 0;
int sum = 0;
answer = Integer.MAX_VALUE;
while(true){
if(sum>=S){
answer = Math.min(answer,right-left);
sum -= arr[left++];
}else if(right == N){
break;
}else{
sum += arr[right++];
}
}
System.out.println(answer == Integer.MAX_VALUE ? 0 : answer);
}
}
|
[
"gudwnsrh@gmail.com"
] |
gudwnsrh@gmail.com
|
17eba676d6faee292dbefebfbf2dab23810edd5b
|
70a7bb238a9d4395a2a660b4a907b95672f4a052
|
/app/src/test/java/com/anwesh/uiprojects/linkedxtoyballview/ExampleUnitTest.java
|
6f6c224cee5319caffc9a21df3920d6669c78273
|
[] |
no_license
|
Anwesh43/LinkedXTOYBallView
|
01fe2d2a4b697605ec6c2d9afc22e1f28f2b5034
|
34efa54d96d3c0f024246af6ef60e17c155312e3
|
refs/heads/master
| 2020-03-24T01:52:32.926933
| 2018-07-26T04:45:16
| 2018-07-26T04:45:16
| 142,354,977
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 418
|
java
|
package com.anwesh.uiprojects.linkedxtoyballview;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
}
|
[
"anweshthecool0@gmail.com"
] |
anweshthecool0@gmail.com
|
d1b74fcf3d9e432ec9e59602cec72283a0090412
|
0ae199a25f8e0959734f11071a282ee7a0169e2d
|
/core/api/src/main/java/org/onosproject/net/EdgeLink.java
|
914d6a41b79a7f109f91d9c8842f64df46362073
|
[
"Apache-2.0"
] |
permissive
|
lishuai12/onosfw-L3
|
314d2bc79424d09dcd8f46a4c467bd36cfa9bf1b
|
e60902ba8da7de3816f6b999492bec2d51dd677d
|
refs/heads/master
| 2021-01-10T08:09:56.279267
| 2015-11-06T02:49:00
| 2015-11-06T02:49:00
| 45,652,234
| 0
| 1
| null | 2016-03-10T22:30:45
| 2015-11-06T01:49:10
|
Java
|
UTF-8
|
Java
| false
| false
| 1,164
|
java
|
/*
* Copyright 2014 Open Networking Laboratory
*
* 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.onosproject.net;
/**
* Abstraction of a link between an end-station host and the network
* infrastructure.
*/
public interface EdgeLink extends Link {
/**
* Returns the host identification.
*
* @return host identifier
*/
HostId hostId();
/**
* Returns the connection point where the host attaches to the
* network infrastructure.
*
* @return host location point
*/
HostLocation hostLocation();
}
|
[
"lishuai12@huawei.com"
] |
lishuai12@huawei.com
|
cd3502ed266f8951e44272f344bf34ecc3e05d7e
|
c634236c7fb442dde4913c665f89a46a5703583b
|
/EemBlue/libs/src/main/java/com/souja/lib/base/AdapterWithFooter.java
|
14b36fa535d89f8d9f7572ab2773eafc5824efd0
|
[] |
no_license
|
souja/EEM
|
117850a4089e1bf95ee7a6d7e813bc0775503bf4
|
5f875eb0045260cd7bc0366c2ff0cb72e6a89fe7
|
refs/heads/master
| 2020-05-03T02:02:01.711413
| 2019-09-24T02:27:17
| 2019-09-24T02:27:17
| 178,355,871
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,428
|
java
|
package com.souja.lib.base;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import com.souja.lib.tools.ViewHolderCommon;
import com.souja.lib.R;
import java.util.List;
/**
* 咩有分页but有Footer
* Created by Ydz on 2017/6/12 0012.
*/
public abstract class AdapterWithFooter<T> extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
protected Context mContext;
protected List<T> mList;
private final int COMMON = 1, EMPTY = 2, FOOTER = 3;
public AdapterWithFooter(Context context, List<T> list) {
mContext = context;
mList = list;
}
public RecyclerView.ViewHolder getEmptyView(ViewGroup parent) {
return new ViewHolderEmpty(LayoutInflater.from(mContext).inflate(
R.layout.item_empty, parent, false));
}
public RecyclerView.ViewHolder getFooterView(ViewGroup parent) {
return new ViewHolderCommon(LayoutInflater.from(mContext).inflate(
R.layout.item_header_footer, parent, false));
}
public abstract RecyclerView.ViewHolder onCreateView(ViewGroup parent);
public abstract void onBindView(RecyclerView.ViewHolder holder, int position);
protected void bindEmpty(RecyclerView.ViewHolder holder) {
}
protected void bindFooter(RecyclerView.ViewHolder holder) {
}
@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
if (viewType == EMPTY)
return getEmptyView(parent);
else if (viewType == FOOTER)
return getFooterView(parent);
else
return onCreateView(parent);
}
@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
if (position == mList.size()) {
bindFooter(holder);
} else {
if (mList.size() == 0) bindEmpty(holder);
else {
onBindView(holder, position);
}
}
}
@Override
public int getItemViewType(int position) {
if (position == mList.size()) {
return FOOTER;
} else {
if (mList.size() == 0) {
return EMPTY;
} else {
return COMMON;
}
}
}
@Override
public int getItemCount() {
return mList.size() + 1;
}
}
|
[
"782579195@qq.com"
] |
782579195@qq.com
|
09937be8e27b717e1afc64d05e71491f6fd7b574
|
b37726900ee16a5b72a6cd7b2a2d72814fffe924
|
/src/main/java/vn/com/vndirect/web/struts2/home/help/ReleaseNoteAction.java
|
3e0c1598bb27e583e85adb7760d8578879f39f4b
|
[] |
no_license
|
UnsungHero0/portal
|
6b9cfd7271f2b1d587a6f311de49c67e8dd8ff9f
|
32325d3e1732d900ee3f874c55890afc8f347700
|
refs/heads/master
| 2021-01-20T06:18:01.548033
| 2014-11-12T10:27:43
| 2014-11-12T10:27:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,844
|
java
|
package vn.com.vndirect.web.struts2.home.help;
import java.util.ArrayList;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import vn.com.vndirect.business.INewsInfoManager;
import vn.com.vndirect.domain.IfoNews;
import vn.com.vndirect.domain.struts2.newsinfo.NewsModel;
import vn.com.web.commons.exception.FunctionalException;
import vn.com.web.commons.exception.SystemException;
import vn.com.web.commons.utility.Utilities;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
public class ReleaseNoteAction extends ActionSupport implements ModelDriven<NewsModel> {
private static Logger logger = Logger.getLogger(ReleaseNoteAction.class);
protected static final String DISCLOSURE_NEWSTYPE = "Disclousure";
private String newsURL;
@Autowired
private INewsInfoManager newsInfoManager;
private NewsModel model = new NewsModel();
@Override
public NewsModel getModel() {
return model;
}
public String releaseNoteDetails() throws FunctionalException, SystemException{
final String LOCATION = "release note details";
if (logger.isDebugEnabled()) {
logger.debug(LOCATION + "::BEGIN");
}
try {
if (StringUtils.isNotEmpty(newsURL)) {
final IfoNews inputIfoNews = model.getIfoNews() == null ? new IfoNews() : model.getIfoNews();
final String newsId = newsURL.substring(newsURL.lastIndexOf("-") + 1, newsURL.length());
inputIfoNews.setNewsId(Long.parseLong(newsId));
inputIfoNews.setNewsType(model.getNewsType());
final IfoNews ifoNews = newsInfoManager.getIfoNewsById(inputIfoNews);
model.setIfoNews(ifoNews);
// SEO
model.setPageTitle(this.getText("releaseNote.page.title"));
model.setPageDescription(this.getText("releaseNote.page.desc"));
model.setPageKeywords(this.getText("releaseNote.page.keys"));
// breadcrumbs
ArrayList<String> breadcrumbs = new ArrayList<String>();
breadcrumbs.add(this.getText("br.help.releaseNote2"));
breadcrumbs.add(this.getText("br.vnd"));
breadcrumbs.add("ttvndRoot");
breadcrumbs.add(this.getText("br.help"));
breadcrumbs.add("/tro-giup/hoi-dap-huong-dan.shtml");
model.setBreadcrumbs(breadcrumbs);
}
if (logger.isDebugEnabled()) {
logger.debug(LOCATION + "::END");
}
} catch (Exception e) {
logger.error(LOCATION + ":: Exception: " + e);
Utilities.processErrors(this, e);
}
return SUCCESS;
}
/*
* GETTERS AND SETTERS
*/
public INewsInfoManager getNewsInfoManager() {
return newsInfoManager;
}
public void setNewsInfoManager(INewsInfoManager newsInfoManager) {
this.newsInfoManager = newsInfoManager;
}
public String getNewsURL() {
return newsURL;
}
public void setNewsURL(String newsURL) {
this.newsURL = newsURL;
}
}
|
[
"minh.nguyen@vndirect.com.vn"
] |
minh.nguyen@vndirect.com.vn
|
25e8a032fde8cefc0f5304c5b2483bc54b6c6107
|
48c98c47b78670301d634fbc8ad99e2fdc86d1f7
|
/simulator-core/src/main/java/org/jetlinks/simulator/core/network/udp/UDPClient.java
|
e1d1909de04c216cb3bb251b4e5638968c424038
|
[
"Apache-2.0"
] |
permissive
|
jetlinks/device-simulator
|
3c94385443dc02c9e766fd8930da3993b7dfc9f4
|
6184408f59b096696d6ba6509b9cc8bfc37b99c0
|
refs/heads/master
| 2023-04-13T04:58:03.782611
| 2023-04-10T02:57:26
| 2023-04-10T02:57:26
| 176,395,531
| 57
| 63
|
Apache-2.0
| 2023-08-25T10:35:55
| 2019-03-19T01:05:15
|
Java
|
UTF-8
|
Java
| false
| false
| 4,116
|
java
|
package org.jetlinks.simulator.core.network.udp;
import io.netty.buffer.ByteBuf;
import io.netty.util.ReferenceCountUtil;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.datagram.DatagramPacket;
import io.vertx.core.datagram.DatagramSocket;
import org.jetlinks.simulator.core.Global;
import org.jetlinks.simulator.core.network.*;
import reactor.core.Disposable;
import reactor.core.publisher.Mono;
import java.net.InetSocketAddress;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.function.Consumer;
public class UDPClient extends AbstractConnection {
private final String id;
private final DatagramSocket socket;
private final InetSocketAddress remote;
private final Address address;
private final List<Consumer<DatagramPacket>> handlers = new CopyOnWriteArrayList<>();
public UDPClient(String id,
DatagramSocket socket,
InetSocketAddress remote,
Address address) {
this.id = id;
this.socket = socket;
this.remote = remote;
this.address = address;
changeState(State.connected);
socket.handler(packet -> {
received(packet.data().length());
for (Consumer<DatagramPacket> handler : handlers) {
handler.accept(packet);
}
});
}
public InetSocketAddress getRemote() {
return remote;
}
public InetSocketAddress getLocal() {
return InetSocketAddress.createUnresolved(
socket.localAddress().host(),
socket.localAddress().port()
);
}
public static Mono<UDPClient> create(UDPOptions options) {
Address address = AddressManager.global().takeAddress(options.getLocalAddress());
options.setLocalAddress(address.getAddress().getHostAddress());
return Mono.fromCompletionStage(() -> {
options.setReusePort(true);
return Global
.vertx()
.createDatagramSocket(options)
.listen(0, options.getLocalAddress())
.map(socket -> new UDPClient(options.getId(),
socket,
InetSocketAddress.createUnresolved(options.getHost(), options.getPort()),
address))
.toCompletionStage();
});
}
@Override
public String getId() {
return id;
}
public void send(Object packet) {
sendAsync(packet)
.subscribe();
}
public Disposable handlePayload(Consumer<Buffer> buffer) {
return handle(packet -> {
buffer.accept(packet.data());
});
}
public Disposable handle(Consumer<DatagramPacket> consumer) {
this.handlers.add(consumer);
return () -> this.handlers.remove(consumer);
}
@Override
public void reset() {
super.reset();
this.handlers.clear();
}
public Mono<Void> sendAsync(String host, int port, Object packet) {
ByteBuf buf = NetworkUtils.castToByteBuf(packet);
Buffer buffer = Buffer.buffer(buf);
int len = buffer.length();
return Mono.fromCompletionStage(() -> socket
.send(Buffer.buffer(buf), port, host)
.toCompletionStage())
.doAfterTerminate(() -> {
sent(len);
ReferenceCountUtil.safeRelease(buf);
})
.doOnError(this::error);
}
public Mono<Void> sendAsync(Object packet) {
return sendAsync(remote.getHostString(), remote.getPort(), packet);
}
@Override
protected void doDisposed() {
address.release();
socket.close();
super.doDisposed();
}
@Override
public NetworkType getType() {
return NetworkType.udp_client;
}
@Override
public boolean isAlive() {
return true;
}
}
|
[
"zh.sqy@qq.com"
] |
zh.sqy@qq.com
|
47595bff7829f10270508fa788ca9ad341f5901f
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mm/classes.jar/com/tencent/mm/autogen/mmdata/rpt/cf.java
|
20b9bea47e74d4d9508475e2271d93697ea7caef
|
[] |
no_license
|
tsuzcx/qq_apk
|
0d5e792c3c7351ab781957bac465c55c505caf61
|
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
|
refs/heads/main
| 2022-07-02T10:32:11.651957
| 2022-02-01T12:41:38
| 2022-02-01T12:41:38
| 453,860,108
| 36
| 9
| null | 2022-01-31T09:46:26
| 2022-01-31T02:43:22
|
Java
|
UTF-8
|
Java
| false
| false
| 4,606
|
java
|
package com.tencent.mm.autogen.mmdata.rpt;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.report.a;
public final class cf
extends a
{
public int ivK = -1;
public long ivm;
public long ivn;
public long ivo;
public int ivp;
public int ivq;
public int ivr;
public int ivs;
public long ivt;
public long ivu;
public long ivv;
private String ivw = "";
private String ivx = "";
public int ivy;
public final String aIE()
{
AppMethodBeat.i(368237);
Object localObject = new StringBuffer();
((StringBuffer)localObject).append(this.ivm);
((StringBuffer)localObject).append(",");
((StringBuffer)localObject).append(this.ivn);
((StringBuffer)localObject).append(",");
((StringBuffer)localObject).append(this.ivo);
((StringBuffer)localObject).append(",");
((StringBuffer)localObject).append(this.ivp);
((StringBuffer)localObject).append(",");
((StringBuffer)localObject).append(this.ivq);
((StringBuffer)localObject).append(",");
((StringBuffer)localObject).append(this.ivr);
((StringBuffer)localObject).append(",");
((StringBuffer)localObject).append(this.ivs);
((StringBuffer)localObject).append(",");
((StringBuffer)localObject).append(this.ivt);
((StringBuffer)localObject).append(",");
((StringBuffer)localObject).append(this.ivu);
((StringBuffer)localObject).append(",");
((StringBuffer)localObject).append(this.ivv);
((StringBuffer)localObject).append(",");
((StringBuffer)localObject).append(this.ivw);
((StringBuffer)localObject).append(",");
((StringBuffer)localObject).append(this.ivx);
((StringBuffer)localObject).append(",");
((StringBuffer)localObject).append(this.ivy);
((StringBuffer)localObject).append(",");
((StringBuffer)localObject).append(this.ivK);
localObject = ((StringBuffer)localObject).toString();
aUm((String)localObject);
AppMethodBeat.o(368237);
return localObject;
}
public final String aIF()
{
AppMethodBeat.i(368247);
Object localObject = new StringBuffer();
((StringBuffer)localObject).append("ResultCode:").append(this.ivm);
((StringBuffer)localObject).append("\r\n");
((StringBuffer)localObject).append("AliveType:").append(this.ivn);
((StringBuffer)localObject).append("\r\n");
((StringBuffer)localObject).append("FinalState:").append(this.ivo);
((StringBuffer)localObject).append("\r\n");
((StringBuffer)localObject).append("PrepareCgiErrorCode:").append(this.ivp);
((StringBuffer)localObject).append("\r\n");
((StringBuffer)localObject).append("ConfigCgiErrorCode:").append(this.ivq);
((StringBuffer)localObject).append("\r\n");
((StringBuffer)localObject).append("CdnErrorCode:").append(this.ivr);
((StringBuffer)localObject).append("\r\n");
((StringBuffer)localObject).append("VerifyCgiErrorCode:").append(this.ivs);
((StringBuffer)localObject).append("\r\n");
((StringBuffer)localObject).append("CdnCost:").append(this.ivt);
((StringBuffer)localObject).append("\r\n");
((StringBuffer)localObject).append("LivenessCost:").append(this.ivu);
((StringBuffer)localObject).append("\r\n");
((StringBuffer)localObject).append("ResetCount:").append(this.ivv);
((StringBuffer)localObject).append("\r\n");
((StringBuffer)localObject).append("StateRecord:").append(this.ivw);
((StringBuffer)localObject).append("\r\n");
((StringBuffer)localObject).append("AndroidStateRecord:").append(this.ivx);
((StringBuffer)localObject).append("\r\n");
((StringBuffer)localObject).append("FaceReset:").append(this.ivy);
((StringBuffer)localObject).append("\r\n");
((StringBuffer)localObject).append("ErrorType:").append(this.ivK);
localObject = ((StringBuffer)localObject).toString();
AppMethodBeat.o(368247);
return localObject;
}
public final int getId()
{
return 21131;
}
public final cf lx(String paramString)
{
AppMethodBeat.i(368217);
this.ivw = F("StateRecord", paramString, true);
AppMethodBeat.o(368217);
return this;
}
public final cf ly(String paramString)
{
AppMethodBeat.i(368225);
this.ivx = F("AndroidStateRecord", paramString, true);
AppMethodBeat.o(368225);
return this;
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes9.jar
* Qualified Name: com.tencent.mm.autogen.mmdata.rpt.cf
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
ec0f9086b0b223e416e52d0e539a645ace63cdd9
|
47eb6589828461e109675e8257238b49da89a0b4
|
/OA/target/classes/com/OuSoft/system/service/Telegant/TelegantService.java
|
682cba842e61985e17ffab7399a87cb592ea5aff
|
[] |
no_license
|
wgc199509231270/repo5
|
f5e6e9749273717dddda6ea0bb2e4852e2d656a5
|
f673b1f687452a4797522bd29932724e86dc659f
|
refs/heads/master
| 2020-05-16T14:58:20.128881
| 2019-04-23T14:57:14
| 2019-04-23T14:57:14
| 183,116,843
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 674
|
java
|
package com.OuSoft.system.service.Telegant;
import com.OuSoft.system.entity.ResponseModel;
import com.OuSoft.system.entity.Tactivity;
import com.OuSoft.system.entity.Telegant;
import java.util.List;
public interface TelegantService {
//查询岗位信息
List<Telegant> queryElegantService(Telegant telegant);
//新增岗位信息
ResponseModel insertElegantService(Telegant telegant);
//删除用户岗位信息
ResponseModel deleteElegantByidService(Telegant telegant);
//修改用户岗位信息
ResponseModel updateElegantByidService(Telegant telegant);
List<Telegant> queryDzTelegantuserRequestService(Telegant telegant);
}
|
[
"zhangsan@itcast.cn"
] |
zhangsan@itcast.cn
|
64182519323e1a29f20dc57161bb561032095fbf
|
29c9d7f947bdc85f58d1a3d2fe64b302a969496c
|
/codes/oop/src/main/java/io/github/dunwu/javacore/object/ClassDemo01.java
|
dc9b7beb8893d926f57cf1c3f31aa44303c30cca
|
[
"MIT"
] |
permissive
|
zwkzwk/javacore
|
80a6c5058df45a8a22ce23cdeffbd2df16fc6238
|
b97ed0f44001d8c79855f68fc603eb5eedda8605
|
refs/heads/master
| 2020-06-06T20:14:13.709575
| 2019-08-26T08:08:35
| 2019-08-26T08:08:35
| 192,842,859
| 0
| 0
|
MIT
| 2019-08-26T08:08:37
| 2019-06-20T03:34:19
|
Java
|
UTF-8
|
Java
| false
| false
| 301
|
java
|
package io.github.dunwu.javacore.object;
public class ClassDemo01 {
public static void main(String[] args) {
// 创建并实例化对象
Person person1 = new Person();
// 先声明再实例化对象
Person person2 = null;
person2 = new Person();
}
};
|
[
"forbreak@163.com"
] |
forbreak@163.com
|
067087274bdae9ffc41c6832c9444953b04f5a3e
|
e23ef528f8e127553b3a714c4d5cad2550bc52f2
|
/Cloud-Netty/src/main/java/com/cloud/staff/netty/echo/EchoServiceHandler.java
|
c5d998a2afe7c707166c75d6f9aff887bbe84c9a
|
[] |
no_license
|
liuqianxi/Spring-Cloud
|
4b96935e5d2c5e44784d759087de7bfd2c00657b
|
e3c418ce8adb6a58ae16308e792de52c3c6bbd3a
|
refs/heads/master
| 2023-03-15T20:09:42.963441
| 2021-03-03T03:35:35
| 2021-03-03T03:35:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,488
|
java
|
package com.cloud.staff.netty.echo;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import java.nio.ByteBuffer;
/**
* @ClassName EchoService
* @Description : 功能说明
*
* ChannelRead() -对于每个传入消息都要调用
*
* ChannelReadComplete() -通知ChannelInboundHandler最后一次对channelRead()的调用是当前批量读取中的最后一条消息
*
* exceptionCaught()—在读取操作期间,有异常抛出时会调用
*
* @Author : 赵参谋
* @Date : 2020/8/3 0:41
*/
@ChannelHandler.Sharable
public class EchoServiceHandler extends ChannelInboundHandlerAdapter {
/**
* 接收消息
* @param ctx
* @param msg
* @throws Exception
*/
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
// ByteBuffer in = (ByteBuffer) msg;
System.out.println("Service recived:"+msg);
ctx.write(msg);
}
/**
*
* @param ctx
*/
@Override
public void channelReadComplete(ChannelHandlerContext ctx) {
ctx.writeAndFlush(Unpooled.EMPTY_BUFFER)
.addListener(ChannelFutureListener.CLOSE);
}
@Override
public void exceptionCaught(ChannelHandlerContext ctx,Throwable cause) {
cause.printStackTrace();
ctx.close();
}
}
|
[
"15196332744@163.com"
] |
15196332744@163.com
|
fbacc939c6007ae8b3ef24e1344282570f6ede2e
|
4f35bbec64e19d981356e91a2b13a34a63572bf5
|
/clippyrotimage/src/test/java/com/anwesome/ui/clippyrotimage/ExampleUnitTest.java
|
31aa6b7a2494c6de3eeb924ad9de1a172e19c7e1
|
[] |
no_license
|
Anwesh43/ClippyRotImage
|
d2a8fc740a7eb5d2dc262a3d1ccd0499f8f24496
|
cea36aad3d070d5aa67e7dce9557f43f97fed5c5
|
refs/heads/master
| 2021-01-23T04:40:45.310513
| 2017-01-29T20:34:08
| 2017-01-29T20:34:08
| 80,370,317
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 323
|
java
|
package com.anwesome.ui.clippyrotimage;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
}
|
[
"anweshthecool0@gmail.com"
] |
anweshthecool0@gmail.com
|
df6df9aa01cd548e90fd7593696bc699c4b54caa
|
749746b2cfc20b2b71ee44fe869ad4367c754e0b
|
/HRServer/src/main/java/com/example/demo/controller/HRLoginController.java
|
6f3c7d9610096dd0afc9c94cce96985c6883b3fc
|
[] |
no_license
|
kavya-amin/Project
|
90153909f6430498627fa05d4b2b068d1890a5eb
|
29e5fddac0507ad155bd60c3b8f503fbc7b21b8e
|
refs/heads/master
| 2020-09-06T23:46:24.324045
| 2019-12-16T05:40:31
| 2019-12-16T05:40:31
| 220,592,234
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,071
|
java
|
package com.example.demo.controller;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mail.MailException;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.example.demo.component.User;
import com.example.demo.entity.HR;
import com.example.demo.service.HRLoginService;
import com.example.demo.service.MailService;
@CrossOrigin(origins = "http://localhost:4200")
@RestController
@RequestMapping(value= "/api/**", method=RequestMethod.OPTIONS)
public class HRLoginController
{
@Autowired
HRLoginService service;
@Autowired
private MailService notificationService;
public void corsHeaders(HttpServletResponse response) {
response.addHeader("Access-Control-Allow-Origin", "*");
response.addHeader("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS");
response.addHeader("Access-Control-Allow-Headers", "origin, content-type, accept, x-requested-with");
response.addHeader("Access-Control-Max-Age", "3600");
}
@PostMapping("/create-hr")
public HR createHr(@RequestBody HR hr) {
return service.createHR(hr);
}
@RequestMapping("/send-mail")
public String send(@RequestBody HR hr)
{
System.out.println("controller called");
//user.setEmailAddress(hr.getUseremail()); //Receiver's email address
try {
notificationService.sendEmail(hr);
} catch (MailException mailException) {
System.out.println(mailException);
}
return "Congratulations! Mail has been send to the given mail id to reset password.";
}
@RequestMapping("/send-mail-user")
public String sendToUser(@RequestBody User user)
{
try {
notificationService.sendEmailTo(user.getEmailAddress());
}catch (MailException mailException) {
System.out.println(mailException);
}
return "Congratulations! Your mail has been send to the user.";
}
@RequestMapping(method = RequestMethod.POST, value = "/login")
HR verifyUser(@RequestBody HR hr ) {
System.out.println("entered controller");
return service.verifyUser(hr.getUserEmail(),hr.getUserPassword());
}
@GetMapping(path="/hrDetails/all")
public @ResponseBody Iterable<HR> getAllHR() {
System.out.println("url hit for all");
return service.getAllHR();
}
@RequestMapping(method = RequestMethod.PUT, value = "/updateHR")
void updateHR(@RequestBody HR hr)
{
System.out.println(hr);
service.updateHR(hr);
}
}
|
[
"b8ibmjava19@iiht.tech"
] |
b8ibmjava19@iiht.tech
|
51024cc23d648777dc46fdc44d2636cb0d190a3c
|
dc2cd532798e8b3f1477ae17fd363a04a680a710
|
/docx4j-openxml-objects/src/main/java/org/docx4j/com/microsoft/schemas/office/drawing/x2014/chartex/CTPageSetup.java
|
9ae905749ee6014b07737ffc619221c5965c9de1
|
[
"Apache-2.0"
] |
permissive
|
aammar79/docx4j
|
4715a6924f742e6e921b08c009cb556e1c42e284
|
0eec2587ab38db5265ce66c12423849c1bea2c60
|
refs/heads/master
| 2022-09-15T07:27:19.545649
| 2022-02-24T22:18:53
| 2022-02-24T22:18:53
| 175,789,215
| 0
| 0
| null | 2019-03-15T09:27:09
| 2019-03-15T09:27:07
| null |
UTF-8
|
Java
| false
| false
| 7,894
|
java
|
package org.docx4j.com.microsoft.schemas.office.drawing.x2014.chartex;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for CT_PageSetup complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="CT_PageSetup">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="paperSize" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
* <attribute name="firstPageNumber" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
* <attribute name="orientation" type="{http://schemas.microsoft.com/office/drawing/2014/chartex}ST_PageOrientation" default="default" />
* <attribute name="blackAndWhite" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* <attribute name="draft" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* <attribute name="useFirstPageNumber" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* <attribute name="horizontalDpi" type="{http://www.w3.org/2001/XMLSchema}int" default="600" />
* <attribute name="verticalDpi" type="{http://www.w3.org/2001/XMLSchema}int" default="600" />
* <attribute name="copies" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_PageSetup")
public class CTPageSetup {
@XmlAttribute(name = "paperSize")
@XmlSchemaType(name = "unsignedInt")
protected Long paperSize;
@XmlAttribute(name = "firstPageNumber")
@XmlSchemaType(name = "unsignedInt")
protected Long firstPageNumber;
@XmlAttribute(name = "orientation")
protected STPageOrientation orientation;
@XmlAttribute(name = "blackAndWhite")
protected Boolean blackAndWhite;
@XmlAttribute(name = "draft")
protected Boolean draft;
@XmlAttribute(name = "useFirstPageNumber")
protected Boolean useFirstPageNumber;
@XmlAttribute(name = "horizontalDpi")
protected Integer horizontalDpi;
@XmlAttribute(name = "verticalDpi")
protected Integer verticalDpi;
@XmlAttribute(name = "copies")
@XmlSchemaType(name = "unsignedInt")
protected Long copies;
/**
* Gets the value of the paperSize property.
*
* @return
* possible object is
* {@link Long }
*
*/
public long getPaperSize() {
if (paperSize == null) {
return 1L;
} else {
return paperSize;
}
}
/**
* Sets the value of the paperSize property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setPaperSize(Long value) {
this.paperSize = value;
}
/**
* Gets the value of the firstPageNumber property.
*
* @return
* possible object is
* {@link Long }
*
*/
public long getFirstPageNumber() {
if (firstPageNumber == null) {
return 1L;
} else {
return firstPageNumber;
}
}
/**
* Sets the value of the firstPageNumber property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setFirstPageNumber(Long value) {
this.firstPageNumber = value;
}
/**
* Gets the value of the orientation property.
*
* @return
* possible object is
* {@link STPageOrientation }
*
*/
public STPageOrientation getOrientation() {
if (orientation == null) {
return STPageOrientation.DEFAULT;
} else {
return orientation;
}
}
/**
* Sets the value of the orientation property.
*
* @param value
* allowed object is
* {@link STPageOrientation }
*
*/
public void setOrientation(STPageOrientation value) {
this.orientation = value;
}
/**
* Gets the value of the blackAndWhite property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isBlackAndWhite() {
if (blackAndWhite == null) {
return false;
} else {
return blackAndWhite;
}
}
/**
* Sets the value of the blackAndWhite property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setBlackAndWhite(Boolean value) {
this.blackAndWhite = value;
}
/**
* Gets the value of the draft property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isDraft() {
if (draft == null) {
return false;
} else {
return draft;
}
}
/**
* Sets the value of the draft property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setDraft(Boolean value) {
this.draft = value;
}
/**
* Gets the value of the useFirstPageNumber property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isUseFirstPageNumber() {
if (useFirstPageNumber == null) {
return false;
} else {
return useFirstPageNumber;
}
}
/**
* Sets the value of the useFirstPageNumber property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setUseFirstPageNumber(Boolean value) {
this.useFirstPageNumber = value;
}
/**
* Gets the value of the horizontalDpi property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public int getHorizontalDpi() {
if (horizontalDpi == null) {
return 600;
} else {
return horizontalDpi;
}
}
/**
* Sets the value of the horizontalDpi property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setHorizontalDpi(Integer value) {
this.horizontalDpi = value;
}
/**
* Gets the value of the verticalDpi property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public int getVerticalDpi() {
if (verticalDpi == null) {
return 600;
} else {
return verticalDpi;
}
}
/**
* Sets the value of the verticalDpi property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setVerticalDpi(Integer value) {
this.verticalDpi = value;
}
/**
* Gets the value of the copies property.
*
* @return
* possible object is
* {@link Long }
*
*/
public long getCopies() {
if (copies == null) {
return 1L;
} else {
return copies;
}
}
/**
* Sets the value of the copies property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setCopies(Long value) {
this.copies = value;
}
}
|
[
"jason@plutext.org"
] |
jason@plutext.org
|
5040a2ceaa98613e2057e9fa7f3adb9b875e89cd
|
5b55305194be294611d44af04d143424c60c2cc6
|
/src/main/java/org/swrlapi/core/xsd/XSDDuration.java
|
e81b0d661014f3db5ec0756b00533038f5e7c1b8
|
[] |
no_license
|
JoaoOrlando/swrlapi
|
9cd7535229d4bfca40b2eb94a3250b2db450c196
|
bce8e1fa05ff40ddb9ea6ab623b6ae3effb0435a
|
refs/heads/master
| 2021-01-18T19:09:36.559923
| 2014-11-08T23:11:36
| 2014-11-08T23:11:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,284
|
java
|
package org.swrlapi.core.xsd;
import org.semanticweb.owlapi.vocab.XSDVocabulary;
public class XSDDuration extends XSDType<XSDDuration>
{
private final org.apache.axis.types.Duration duration;
public XSDDuration(String content)
{
super(content);
this.duration = XSDTimeUtil.xsdDurationString2AxisDuration(getContent());
setURI(XSDVocabulary.DURATION.getIRI());
}
@Override
protected void validate()
{
if (getContent() == null)
throw new IllegalArgumentException("null content for XSD:duration literal");
if (!XSDTimeUtil.isValidXSDDuration(getContent()))
throw new IllegalArgumentException("invalid xsd:Duration: " + getContent());
}
@Override
public boolean equals(Object o)
{
if (this == o)
return true;
if (!(o instanceof XSDDuration))
return false;
XSDDuration otherDuration = (XSDDuration)o;
return this.duration != null && otherDuration.duration != null && this.duration.equals(otherDuration.duration);
}
@Override
public int hashCode()
{
int code = 34;
code += this.duration.hashCode();
return code;
}
@Override
public int compareTo(XSDDuration o)
{
if (this == o)
return 0;
return XSDTimeUtil.compareDurations(this.duration, o.duration);
}
}
|
[
"martin@zippyrate.com"
] |
martin@zippyrate.com
|
02a77229f1c8cd9da32ab20ab475be8e12c0094e
|
be568882c7ffa242b8a65e977cc2a501314c9796
|
/goodsOwner/src/main/java/com/gpw/app/view/BaseRefreshHeader.java
|
8a29d3c7830749a37f60027878ec086777662360
|
[] |
no_license
|
LFengYe/WorkProject
|
9a112b14e3039e78eea2e408e9981dd5bb3d499d
|
0bbc2b99211643368d2c661c1cd96ff1b707f043
|
refs/heads/master
| 2020-11-29T12:09:58.069527
| 2017-04-07T02:45:01
| 2017-04-07T02:45:01
| 87,494,404
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 281
|
java
|
package com.gpw.app.view;
interface BaseRefreshHeader {
int STATE_NORMAL = 0;
int STATE_RELEASE_TO_REFRESH = 1;
int STATE_REFRESHING = 2;
int STATE_DONE = 3;
void onMove(float delta);
boolean releaseAction();
void refreshComplete(String state);
}
|
[
"xiaofengcanyue2009@163.com"
] |
xiaofengcanyue2009@163.com
|
22ecff8949ff17c3129c9a46c00c3832be6c917a
|
1078c29205fd520514131545271dd95e881f01c1
|
/src/main/java/com/prostate/assessmen/mapper/pra/read/PatientAssessmentReadMapper.java
|
f95a66538fc0667280801330c6959971f944be13
|
[] |
no_license
|
ProstateRehabilitationAlliance/AssessmenServer
|
43ed94e4494d8532f80e14627dbf1004fd77d12e
|
d81998c343a02d4d11718e86d2335b9cceed37c5
|
refs/heads/master
| 2020-03-11T13:45:05.669729
| 2018-08-14T09:55:59
| 2018-08-14T09:55:59
| 130,033,838
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 513
|
java
|
package com.prostate.assessmen.mapper.pra.read;
import com.prostate.assessmen.entity.PatientAssessment;
import com.prostate.assessmen.mapper.BaseReadMapper;
import java.util.List;
public interface PatientAssessmentReadMapper extends BaseReadMapper<PatientAssessment> {
PatientAssessment selectById(PatientAssessment patientAssessment);
List<PatientAssessment> selectByPatientId(PatientAssessment patientAssessment);
PatientAssessment selectLastByPatientId(PatientAssessment patientAssessment);
}
|
[
"MaxCoderCh@users.noreply.github.com"
] |
MaxCoderCh@users.noreply.github.com
|
3417b420c2edf5eb108b43a271ac870ac46b7169
|
5d6c374a2518d469d674a1327d21d8e0cf2b54f7
|
/modules/ogc/net.opengis.wcs/src/net/opengis/gml/validation/GridTypeValidator.java
|
95a16dc409f272cebbe5dad275bbcce49572951e
|
[] |
no_license
|
HGitMaster/geotools-osgi
|
648ebd9343db99a1e2688d9aefad857f6521898d
|
09f6e327fb797c7e0451e3629794a3db2c55c32b
|
refs/heads/osgi
| 2021-01-19T08:33:56.014532
| 2014-03-19T18:04:03
| 2014-03-19T18:04:03
| 4,750,321
| 3
| 0
| null | 2014-03-19T13:50:54
| 2012-06-22T11:21:01
|
Java
|
UTF-8
|
Java
| false
| false
| 808
|
java
|
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package net.opengis.gml.validation;
import java.math.BigInteger;
import net.opengis.gml.GridLimitsType;
import org.eclipse.emf.common.util.EList;
/**
* A sample validator interface for {@link net.opengis.gml.GridType}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface GridTypeValidator {
boolean validate();
boolean validateLimits(GridLimitsType value);
boolean validateAxisName(EList value);
boolean validateDimension(BigInteger value);
}
|
[
"devnull@localhost"
] |
devnull@localhost
|
f51ee1d25507db5b3c5bf044aa9055dd4ab2dc68
|
4e660ecd8dfea06ba2f530eb4589bf6bed669c0c
|
/src/org/tempuri/Gf_updateEpsmJyjlInsertRegistResponse.java
|
5ca7b8c70a9129b573ec49108197c641386487e2
|
[] |
no_license
|
zhangity/SANMEN
|
58820279f6ae2316d972c1c463ede671b1b2b468
|
3f5f7f48709ae8e53d66b30f9123aed3bcc598de
|
refs/heads/master
| 2020-03-07T14:16:23.069709
| 2018-03-31T15:17:50
| 2018-03-31T15:17:50
| 127,522,589
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,548
|
java
|
/**
* Gf_updateEpsmJyjlInsertRegistResponse.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package org.tempuri;
public class Gf_updateEpsmJyjlInsertRegistResponse implements java.io.Serializable {
private org.tempuri.ReturnExComm gf_updateEpsmJyjlInsertRegistResult;
public Gf_updateEpsmJyjlInsertRegistResponse() {
}
public Gf_updateEpsmJyjlInsertRegistResponse(
org.tempuri.ReturnExComm gf_updateEpsmJyjlInsertRegistResult) {
this.gf_updateEpsmJyjlInsertRegistResult = gf_updateEpsmJyjlInsertRegistResult;
}
/**
* Gets the gf_updateEpsmJyjlInsertRegistResult value for this Gf_updateEpsmJyjlInsertRegistResponse.
*
* @return gf_updateEpsmJyjlInsertRegistResult
*/
public org.tempuri.ReturnExComm getGf_updateEpsmJyjlInsertRegistResult() {
return gf_updateEpsmJyjlInsertRegistResult;
}
/**
* Sets the gf_updateEpsmJyjlInsertRegistResult value for this Gf_updateEpsmJyjlInsertRegistResponse.
*
* @param gf_updateEpsmJyjlInsertRegistResult
*/
public void setGf_updateEpsmJyjlInsertRegistResult(org.tempuri.ReturnExComm gf_updateEpsmJyjlInsertRegistResult) {
this.gf_updateEpsmJyjlInsertRegistResult = gf_updateEpsmJyjlInsertRegistResult;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof Gf_updateEpsmJyjlInsertRegistResponse)) return false;
Gf_updateEpsmJyjlInsertRegistResponse other = (Gf_updateEpsmJyjlInsertRegistResponse) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.gf_updateEpsmJyjlInsertRegistResult==null && other.getGf_updateEpsmJyjlInsertRegistResult()==null) ||
(this.gf_updateEpsmJyjlInsertRegistResult!=null &&
this.gf_updateEpsmJyjlInsertRegistResult.equals(other.getGf_updateEpsmJyjlInsertRegistResult())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getGf_updateEpsmJyjlInsertRegistResult() != null) {
_hashCode += getGf_updateEpsmJyjlInsertRegistResult().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(Gf_updateEpsmJyjlInsertRegistResponse.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://tempuri.org/", ">gf_updateEpsmJyjlInsertRegistResponse"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("gf_updateEpsmJyjlInsertRegistResult");
elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "gf_updateEpsmJyjlInsertRegistResult"));
elemField.setXmlType(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnExComm"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
|
[
"dzyuting@163.com"
] |
dzyuting@163.com
|
365f2f022db54142793598e313e31eb37b1ec24c
|
b6339eaecb41f2aae5feccc18f3e1158b0005d0b
|
/engine/src/main/java/dev/game/spacechaos/engine/entity/priority/EntityUpdateOrderChangedListener.java
|
cdef78c7737521070202f28e5a40286bfafda71b
|
[
"Apache-2.0"
] |
permissive
|
opensourcegamedev/SpaceChaos
|
93ff2e733c334e10adda7913f842f782125f5cf3
|
af36875cfee5af6d2debb7eaeb6b91c2df757001
|
refs/heads/master
| 2021-01-23T06:26:18.417624
| 2018-03-25T21:23:51
| 2018-03-25T21:23:51
| 86,369,859
| 15
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 199
|
java
|
package dev.game.spacechaos.engine.entity.priority;
/**
* Created by Justin on 10.02.2017.
*/
public interface EntityUpdateOrderChangedListener {
public void onEntityUpdateOrderChanged();
}
|
[
"kuenzel.justin@t-online.de"
] |
kuenzel.justin@t-online.de
|
27858c3c72a34a1be44a9e121af18686a52859eb
|
c603787a736afc48ac76c0272012a5c5193659db
|
/src/main/java/com/leetcode/snippets/a993cousinsinbinarytree/Solution.java
|
2e6887c099ccdad73db2c633dcf3752be55dfc98
|
[] |
permissive
|
huajianmao/leetcode
|
b2a518ed68bbd637f6d6a0d9a0001d34d34606cf
|
cbde65aa275d6586af7e160a7e36c3fe19664d74
|
refs/heads/master
| 2021-01-11T20:54:40.123297
| 2019-11-04T08:55:40
| 2019-11-04T08:55:40
| 202,490,718
| 0
| 1
|
Apache-2.0
| 2019-08-24T09:06:27
| 2019-08-15T06:59:22
| null |
UTF-8
|
Java
| false
| false
| 1,181
|
java
|
package com.leetcode.snippets.a993cousinsinbinarytree;
import cn.hjmao.utils.tree.TreeNode;
/**
* Created by hjmao.
*
* URL:
* =====
* https://leetcode.com/problems/cousins-in-binary-tree/
*
* Desc:
* =====
* In a binary tree, the root node is at depth 0, and children of each depth k node are at depth k+1.
*
* Two nodes of a binary tree are cousins if they have the same depth, but have different parents.
*
* We are given the root of a binary tree with unique values,
* and the values x and y of two different nodes in the tree.
*
* Return true if and only if the nodes corresponding to the values x and y are cousins.
*
*
*
* Example 1:
* Input: root = [1,2,3,4], x = 4, y = 3
* Output: false
*
* Example 2:
* Input: root = [1,2,3,null,4,null,5], x = 5, y = 4
* Output: true
*
* Example 3:
* Input: root = [1,2,3,null,4], x = 2, y = 3
* Output: false
*
*
* Note:
* The number of nodes in the tree will be between 2 and 100.
* Each node has a unique integer value from 1 to 100.}
*/
class Solution {
protected static final boolean SOLUTION_DONE = false;
public boolean isCousins(TreeNode root, int x, int y) {
return false;
}
}
|
[
"huajianmao@gmail.com"
] |
huajianmao@gmail.com
|
83b767d2d3bfd2906a6f8c8510e3143a47103cd0
|
2548d35c32b63d1b1c813702a8a739c7f0ef657e
|
/src/main/java/org/intellij/xquery/settings/XQueryConfigurable.java
|
5a186c171f6cc332aa5bb2ce12d785c9024956a0
|
[
"Apache-2.0"
] |
permissive
|
overstory/marklogic-intellij-plugin
|
5a0da9e0e2f3771fa2444e56af4e24991fd3e077
|
82a07f36b7ac79fa0b701d3caaa67846d9dce896
|
refs/heads/master
| 2022-05-11T07:55:04.498910
| 2020-02-20T09:37:01
| 2020-02-20T09:37:01
| 84,892,241
| 12
| 2
|
Apache-2.0
| 2022-05-04T12:11:09
| 2017-03-14T01:38:44
|
Java
|
UTF-8
|
Java
| false
| false
| 2,836
|
java
|
/*
* Copyright 2013-2015 Grzegorz Ligas <ligasgr@gmail.com> and other contributors
* (see the CONTRIBUTORS file).
*
* 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.intellij.xquery.settings;
import com.intellij.openapi.options.Configurable;
import com.intellij.openapi.options.ConfigurationException;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
public class XQueryConfigurable implements Configurable {
public static final String CONFIGURABLE_NAME = "XQuery";
private final XQuerySettingsFormFactory settingsFormFactory = getSettingsFormFactory();
private final Project project;
private XQuerySettingsForm settingsForm;
public XQueryConfigurable(Project project) {
this.project = project;
}
@Nls
@Override
public String getDisplayName() {
return CONFIGURABLE_NAME;
}
@Nullable
@Override
public String getHelpTopic() {
return null;
}
@Nullable
@Override
public JComponent createComponent() {
if (settingsForm == null) {
settingsForm = settingsFormFactory.getSettingsForm();
}
return settingsForm.getFormComponent();
}
@Override
public boolean isModified() {
if (settingsForm != null) {
return settingsForm.isModified();
}
return false;
}
@Override
public void apply() throws ConfigurationException {
if (settingsForm != null) {
boolean restartAnnotations = false;
if (isModified()) {
restartAnnotations = true;
}
getSettings().loadState(settingsForm.getSettings());
if (restartAnnotations) {
UIUtils.restartDaemons();
}
}
}
@Override
public void reset() {
if (settingsForm != null) {
settingsForm.setSettings(getSettings());
}
}
@Override
public void disposeUIResources() {
settingsForm = null;
}
protected XQuerySettings getSettings() {
return XQuerySettings.getInstance(project);
}
protected XQuerySettingsFormFactory getSettingsFormFactory() {
return new XQuerySettingsFormFactory();
}
}
|
[
"ligasgr@gmail.com"
] |
ligasgr@gmail.com
|
3b45b43e6f53b69c7f3a90befc5dd4a548460fb2
|
8f5f96c0c3381b675ee921713ad6f1c85fe82b72
|
/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPaySandboxSignKeyResult.java
|
6326f694d38d0e390a970f7b2df42d7a70f99175
|
[
"Apache-2.0"
] |
permissive
|
IdoFree/java-wx-tools
|
eb900d4b095570ea1a646c4a726e0b4eb1fa4c2b
|
c6f7656e3aaf7f07d234a38ab1eb315fd24207dc
|
refs/heads/master
| 2020-12-02T06:27:57.343824
| 2017-07-11T01:52:33
| 2017-07-11T01:52:33
| 96,837,900
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 724
|
java
|
package com.github.binarywang.wxpay.bean.result;
import com.thoughtworks.xstream.annotations.XStreamAlias;
/**
* <pre>
* Created by BinaryWang on 2017/6/18.
* </pre>
*
* @author <a href="https://github.com/binarywang">Binary Wang</a>
*/
@XStreamAlias("xml")
public class WxPaySandboxSignKeyResult extends WxPayBaseResult {
/**
* <pre>
* 沙箱密钥
* sandbox_signkey
* 否
* 013467007045764
* String(32)
* 返回的沙箱密钥
* </pre>
*/
@XStreamAlias("sandbox_signkey")
private String sandboxSignKey;
public String getSandboxSignKey() {
return sandboxSignKey;
}
public void setSandboxSignKey(String sandboxSignKey) {
this.sandboxSignKey = sandboxSignKey;
}
}
|
[
"binarywang@gmail.com"
] |
binarywang@gmail.com
|
916d829b1d2a6b11bb0bcc7dccbbf5ce250c9bbd
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Time/13/org/joda/time/LocalDateTime_getValue_563.java
|
32c1f7d6367bb73cf3e17dc63bb66c1c7dc2e7b6
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 3,703
|
java
|
org joda time
local date time localdatetim unmodifi datetim repres
datetim time zone
local date time localdatetim link readabl partial readableparti
method focu kei field year month year monthofyear
dai year dayofyear milli dai millisofdai
field fact queri
intern local date time localdatetim singl millisecond base
repres local datetim intern
expos applic
calcul local date time localdatetim perform link chronolog
chronolog set intern utc time zone
calcul
individu field queri wai
code hour dai gethourofdai code
code hour dai hourofdai code
techniqu access method
field
numer
text
text
maximum minimum valu
add subtract
set
round
local date time localdatetim thread safe immut provid chronolog
standard chronolog class suppli thread safe immut
author stephen colebourn
local date time localdatetim
field specif index
method requir support code readabl partial readableparti code
support field year month dai monthofdai dai month dayofmonth milli dai millisofdai
param index index
index bound except indexoutofboundsexcept index invalid
getvalu index
index
year
chronolog getchronolog year local milli getlocalmilli
month year
chronolog getchronolog month year monthofyear local milli getlocalmilli
dai month
chronolog getchronolog dai month dayofmonth local milli getlocalmilli
milli dai
chronolog getchronolog milli dai millisofdai local milli getlocalmilli
index bound except indexoutofboundsexcept invalid index index
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
24bba30151c5aa59481e7337d6f9b95d2245a7e0
|
208ba847cec642cdf7b77cff26bdc4f30a97e795
|
/l/src/androidTest/java/org.wp.l/FactoryUtils.java
|
afa8296ae6e3cbc0378e25139f357d500ef3fef5
|
[] |
no_license
|
kageiit/perf-android-large
|
ec7c291de9cde2f813ed6573f706a8593be7ac88
|
2cbd6e74837a14ae87c1c4d1d62ac3c35df9e6f8
|
refs/heads/master
| 2021-01-12T14:00:19.468063
| 2016-09-27T13:10:42
| 2016-09-27T13:10:42
| 69,685,305
| 0
| 0
| null | 2016-09-30T16:59:49
| 2016-09-30T16:59:48
| null |
UTF-8
|
Java
| false
| false
| 1,802
|
java
|
package org.wp.l;
import org.wp.l.mocks.OAuthAuthenticatorFactoryTest;
import org.wp.l.mocks.RestClientFactoryTest;
import org.wp.l.mocks.SystemServiceFactoryTest;
import org.wp.l.mocks.XMLRPCFactoryTest;
import org.wp.l.networking.OAuthAuthenticatorFactory;
import org.wp.l.networking.RestClientFactory;
import org.wp.l.util.AppLog;
import org.wp.l.util.AppLog.T;
import org.wp.l.util.SystemServiceFactory;
import org.xmlrpc.l.XMLRPCFactory;
import java.lang.reflect.Field;
public class FactoryUtils {
public static void clearFactories() {
// clear factories
forceFactoryInjection(XMLRPCFactory.class, null);
forceFactoryInjection(RestClientFactory.class, null);
forceFactoryInjection(OAuthAuthenticatorFactory.class, null);
forceFactoryInjection(SystemServiceFactory.class, null);
AppLog.v(T.TESTS, "Null factories set");
}
public static void initWithTestFactories() {
// create test factories
forceFactoryInjection(XMLRPCFactory.class, new XMLRPCFactoryTest());
forceFactoryInjection(RestClientFactory.class, new RestClientFactoryTest());
forceFactoryInjection(OAuthAuthenticatorFactory.class, new OAuthAuthenticatorFactoryTest());
forceFactoryInjection(SystemServiceFactory.class, new SystemServiceFactoryTest());
AppLog.v(T.TESTS, "Mocks factories instantiated");
}
private static void forceFactoryInjection(Class klass, Object factory) {
try {
Field field = klass.getDeclaredField("sFactory");
field.setAccessible(true);
field.set(null, factory);
AppLog.v(T.TESTS, "Factory " + klass + " injected");
} catch (Exception e) {
AppLog.e(T.TESTS, "Can't inject test factory " + klass);
}
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
4f7d061ce947b8b4118b3d9ecb8bd158b744d176
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-new-fitness/results/XWIKI-13196-1-19-Single_Objective_GGA-IntegrationSingleObjective-/org/xwiki/model/reference/EntityReference_ESTest_scaffolding.java
|
077c8e6efc9773befedb508e48c632a2de2f5c96
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,078
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Mon May 18 01:17:39 UTC 2020
*/
package org.xwiki.model.reference;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class EntityReference_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.xwiki.model.reference.EntityReference";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(EntityReference_ESTest_scaffolding.class.getClassLoader() ,
"org.xwiki.model.internal.reference.LocalizedStringEntityReferenceSerializer",
"org.xwiki.model.internal.reference.StringReferenceSeparators$3",
"org.xwiki.model.internal.reference.AbstractStringEntityReferenceSerializer",
"org.xwiki.stability.Unstable",
"org.xwiki.model.internal.reference.StringReferenceSeparators$4",
"org.xwiki.component.annotation.Component",
"org.xwiki.model.reference.EntityReference",
"org.xwiki.model.internal.reference.StringReferenceSeparators",
"org.xwiki.model.internal.reference.StringReferenceSeparators$1",
"org.xwiki.text.StringUtils",
"org.xwiki.model.internal.reference.StringReferenceSeparators$2",
"org.apache.commons.lang3.StringUtils",
"org.xwiki.model.internal.reference.DefaultStringEntityReferenceSerializer",
"org.apache.commons.lang3.Validate",
"org.xwiki.model.reference.DocumentReference",
"org.xwiki.model.reference.LocalDocumentReference",
"org.apache.commons.lang3.builder.Builder",
"org.apache.commons.lang3.builder.HashCodeBuilder",
"org.xwiki.model.EntityType",
"org.xwiki.model.reference.EntityReferenceSerializer"
);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
888c839847cceb105ca08f5cb6a8c58376cf8671
|
279bffecb84102ab7a91726607a5e4c1d18e961f
|
/publicservice/publicservice-web/src/main/java/com/qcloud/component/publicservice/web/controller/CommonQuestionController.java
|
3edcba8103e474bf26dfc9499353aeb372cbb0ff
|
[] |
no_license
|
ChiRains/forest
|
8b71de51c477f66a134d9b515b58039a8c94c2ee
|
cf0b41ff83e4cee281078afe338bba792de05052
|
refs/heads/master
| 2021-01-19T07:13:19.597344
| 2016-08-18T01:35:54
| 2016-08-18T01:35:54
| 65,869,894
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,937
|
java
|
package com.qcloud.component.publicservice.web.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import com.qcloud.component.publicservice.model.CommonQuestion;
import com.qcloud.component.publicservice.service.CommonQuestionService;
import com.qcloud.component.publicservice.web.handler.CommonQuestionHandler;
import com.qcloud.component.publicservice.web.vo.CommonQuestionVO;
import com.qcloud.pirates.data.Page;
import com.qcloud.pirates.mvc.FrontAjaxView;
import com.qcloud.pirates.web.page.PPage;
import com.qcloud.pirates.web.security.annotation.NoReferer;
@Controller
@RequestMapping(value = CommonQuestionController.DIR)
public class CommonQuestionController {
public static final String DIR = "/commonQuestion";
@Autowired
private CommonQuestionService commonQuestionService;
@Autowired
private CommonQuestionHandler commonQuestionHandler;
@RequestMapping
@NoReferer
public FrontAjaxView listCommonQuestion(PPage page) {
Page<CommonQuestion> pageInfo = commonQuestionService.page(page.getPageStart(), page.getPageSize());
List<CommonQuestion> list = pageInfo.getData();
List<CommonQuestionVO> voList = commonQuestionHandler.toVOList(list);
FrontAjaxView view = new FrontAjaxView();
view.addObject("list", voList);
return view;
}
@RequestMapping
@NoReferer
public ModelAndView getCommonQuestion(Long id) {
CommonQuestion item = commonQuestionService.get(id);
CommonQuestionVO voItem = commonQuestionHandler.toVO(item);
FrontAjaxView view = new FrontAjaxView();
view.addObject("result", voItem);
return view;
}
}
|
[
"dengfei@ed19df75-bd51-b445-9863-9e54940520a8"
] |
dengfei@ed19df75-bd51-b445-9863-9e54940520a8
|
ce4a4f2c0facce4f8d2530eb0b45927770106110
|
843f7294952036cfc9ce93662bbb346ed9471440
|
/bboss-elasticsearch-rest-entity/src/main/java/org/frameworkset/elasticsearch/entity/ESIndice.java
|
8d5c9fcd153f80738fc7c94c93ea3f848b9067cb
|
[
"Apache-2.0"
] |
permissive
|
bbossgroups/bboss-elasticsearch
|
16046e471fd965dde50998154a2422a2860ae6fa
|
985c7001cdfe465f658a4c754a778098c8aee181
|
refs/heads/master
| 2023-09-04T03:19:00.593284
| 2023-09-03T08:27:37
| 2023-09-03T08:27:37
| 104,154,908
| 478
| 128
|
Apache-2.0
| 2020-06-18T03:14:17
| 2017-09-20T02:27:12
|
Java
|
UTF-8
|
Java
| false
| false
| 3,290
|
java
|
package org.frameworkset.elasticsearch.entity;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
* yellow open twitter u8FNjxh8Rfy_awN11oDKYQ 1 1 1200 0 88.1kb 88.1kb
* green open twitter2 nYFWZEO7TUiOjLQXBaYJpA 5 0 0 0 260b 260b
* .watcher-history-3-2017.07.02
*/
public class ESIndice {
/**
* 分表策略:
* yyyy 年 3
* yyyy.MM 月 2
* yyyy.MM.dd 天 1
* 未知 -1或者null
*/
private Integer indiceSplitPolicy ;
private String health;
private String status ;
private String index;
private String uuid ;
private int pri ;
private int rep ;
@JsonProperty("docs.count")
private long docsCcount;
@JsonProperty("docs.deleted")
private long docsDeleted ;
@JsonProperty("store.size")
private String storeSize ;
@JsonProperty("pri.store.size")
private String priStoreSize;
private Date genDate;
private Map<String,String> otherDatas;
public String getHealth() {
return health;
}
public void setHealth(String health) {
this.health = health;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getIndex() {
return index;
}
public void setIndex(String index) {
this.index = index;
}
public String getUuid() {
return uuid;
}
public void setUuid(String uuid) {
this.uuid = uuid;
}
public int getPri() {
return pri;
}
public void setPri(int pri) {
this.pri = pri;
}
public int getRep() {
return rep;
}
public void setRep(int rep) {
this.rep = rep;
}
public long getDocsCcount() {
return docsCcount;
}
public void setDocsCcount(long docsCcount) {
this.docsCcount = docsCcount;
}
public long getDocsDeleted() {
return docsDeleted;
}
public void setDocsDeleted(long docsDeleted) {
this.docsDeleted = docsDeleted;
}
public String getStoreSize() {
return storeSize;
}
public void setStoreSize(String storeSize) {
this.storeSize = storeSize;
}
public String getPriStoreSize() {
return priStoreSize;
}
public void setPriStoreSize(String priStoreSize) {
this.priStoreSize = priStoreSize;
}
public Date getGenDate() {
return genDate;
}
public void setGenDate(Date genDate) {
this.genDate = genDate;
}
public void addOtherData(String name,String value){
if(otherDatas == null)
otherDatas = new HashMap<String, String>();
otherDatas.put(name,value);
}
public Map<String, String> getOtherDatas() {
return otherDatas;
}
public Integer getIndiceSplitPolicy() {
return indiceSplitPolicy;
}
public void setIndiceSplitPolicy(Integer indiceSplitPolicy) {
this.indiceSplitPolicy = indiceSplitPolicy;
}
}
|
[
"yin-bp@163.com"
] |
yin-bp@163.com
|
94943219837b5bb720830f3baf2b0cdcfbb8f1e9
|
37cf55c0ea34cc16f376960af412bf12027e607f
|
/src/main/java/io/github/jhipster/hoolidays/service/mapper/UserMapper.java
|
a7ec971d4bc11c3d5310969a7a32cceb84e1127a
|
[] |
no_license
|
BulkSecurityGeneratorProject/Hoolydays
|
f924f8a301523565c4ab4325e9539d014e0900c1
|
6cf62dcab7d2550c6245897f4bd9ded90a5878ed
|
refs/heads/master
| 2022-12-17T09:30:55.470689
| 2017-11-20T16:14:16
| 2017-11-20T16:14:16
| 296,573,991
| 0
| 0
| null | 2020-09-18T09:20:38
| 2020-09-18T09:20:37
| null |
UTF-8
|
Java
| false
| false
| 2,361
|
java
|
package io.github.jhipster.hoolidays.service.mapper;
import io.github.jhipster.hoolidays.domain.Authority;
import io.github.jhipster.hoolidays.domain.User;
import io.github.jhipster.hoolidays.service.dto.UserDTO;
import org.springframework.stereotype.Service;
import java.util.*;
import java.util.stream.Collectors;
/**
* Mapper for the entity User and its DTO called UserDTO.
*
* Normal mappers are generated using MapStruct, this one is hand-coded as MapStruct
* support is still in beta, and requires a manual step with an IDE.
*/
@Service
public class UserMapper {
public UserDTO userToUserDTO(User user) {
return new UserDTO(user);
}
public List<UserDTO> usersToUserDTOs(List<User> users) {
return users.stream()
.filter(Objects::nonNull)
.map(this::userToUserDTO)
.collect(Collectors.toList());
}
public User userDTOToUser(UserDTO userDTO) {
if (userDTO == null) {
return null;
} else {
User user = new User();
user.setId(userDTO.getId());
user.setLogin(userDTO.getLogin());
user.setFirstName(userDTO.getFirstName());
user.setLastName(userDTO.getLastName());
user.setEmail(userDTO.getEmail());
user.setImageUrl(userDTO.getImageUrl());
user.setActivated(userDTO.isActivated());
user.setLangKey(userDTO.getLangKey());
Set<Authority> authorities = this.authoritiesFromStrings(userDTO.getAuthorities());
if(authorities != null) {
user.setAuthorities(authorities);
}
return user;
}
}
public List<User> userDTOsToUsers(List<UserDTO> userDTOs) {
return userDTOs.stream()
.filter(Objects::nonNull)
.map(this::userDTOToUser)
.collect(Collectors.toList());
}
public User userFromId(Long id) {
if (id == null) {
return null;
}
User user = new User();
user.setId(id);
return user;
}
public Set<Authority> authoritiesFromStrings(Set<String> strings) {
return strings.stream().map(string -> {
Authority auth = new Authority();
auth.setName(string);
return auth;
}).collect(Collectors.toSet());
}
}
|
[
"jhipster-bot@users.noreply.github.com"
] |
jhipster-bot@users.noreply.github.com
|
f6a764158b3023f3bffdc82986da943289f69217
|
6153f22ccad5e550ec60e6465d77bd7088174144
|
/demo/src/main/java/com/tuowazi/demo/java8_new/src/stream/execise/execise2.java
|
e48200bb475a679290c7965f764e22f841a66588
|
[
"MIT",
"LicenseRef-scancode-other-permissive"
] |
permissive
|
zwxbest/Demo
|
a5093d4e82b269d200d23a7a390e299334301917
|
16ce40b63907d52d65ad93fba6a793847911d216
|
refs/heads/master
| 2023-06-08T17:15:27.688512
| 2022-03-03T03:53:31
| 2022-03-03T03:53:31
| 123,203,277
| 1
| 7
|
MIT
| 2023-05-26T22:15:03
| 2018-02-27T23:52:55
|
Roff
|
UTF-8
|
Java
| false
| false
| 487
|
java
|
package com.tuowazi.demo.java8_new.src.stream.execise;
import static java.util.stream.Collectors.toSet;
/**
* Created by zwxbest on 2018/7/30.
* 交易员都在哪些不同的城市工作过
*/
public class execise2 {
public static void main(String[] args) {
Transactions.transactions.stream().map(x->x.getTrader().getCity()).distinct().forEach(System.out::println);
Transactions.transactions.stream().map(x->x.getTrader().getCity()).collect(toSet());
}
}
|
[
"zhangweixiao@live.com"
] |
zhangweixiao@live.com
|
e4fb2f70e6a6fa23a139b5be08c3afc5842d6963
|
f43d5de70d14179639192e091c923ccd27112faa
|
/src/com/codeHeap/generics/genericArray/arrayImpl2/GenericArray.java
|
aa7d8af3d8640f86b0e3ba68fdc375988568b2b3
|
[] |
no_license
|
basumatarau/trainingJavaCore
|
2c80d02d539fc6e2e599f6e9240e8f6543ef1bdf
|
1efc944b77b1ac7aea44bee89b84daa843670630
|
refs/heads/master
| 2020-04-04T23:13:47.929352
| 2019-01-09T09:51:35
| 2019-01-09T09:51:35
| 156,351,368
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 583
|
java
|
package com.codeHeap.generics.genericArray.arrayImpl2;
public class GenericArray<T> {
private T[] array;
public GenericArray(int size){
array = (T[]) new Object[size];
}
public void put(int index, T item){
array[index] = item;
}
public T get(int index){
return array[index];
}
public T[] represent(){
return array;
}
public static void main(String[] args) {
GenericArray<Integer> gai = new GenericArray<>(10);
Integer[] a = gai.represent();
Object[] b = gai.represent();
}
}
|
[
"basumatarau@gmail.com"
] |
basumatarau@gmail.com
|
da6c427d40231ee7b0e862aa5c8d14fc92d5ad7a
|
a49cef4f6d1711405891f2b64c916ef48a8efb1b
|
/Code/FACES/src/java/core/gov/opm/scrd/entities/lookup/CalculationEndDateCalculationType.java
|
d7019a1a62b3c84f14d60c9645f94281db62df02
|
[
"Apache-2.0"
] |
permissive
|
govtmirror/CoECI-OPM-Service-Credit-Redeposit-Deposit-Application
|
0e4c8f2c6b6ef70a3cc0ab13c2c790c3a0c78e0e
|
569d063b7df4b2a9e9054bea37edaa6455f1293e
|
refs/heads/master
| 2021-01-12T07:47:26.029408
| 2014-07-30T22:44:15
| 2014-07-30T22:44:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,663
|
java
|
/*
Copyright 2014 OPM.gov
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 gov.opm.scrd.entities.lookup;
/**
* <p>
* Represents the enumeration specifying the type of the chart to use for calculating the end date in chart calculation.
* It is used in AccountService.calculateEndDate method.
* </p>
*
* <p>
* <strong>Thread Safety: </strong> This enumeration is immutable and thread safe.
* </p>
*
* @author faeton, sparemax
* @version 1.0
*/
public enum CalculationEndDateCalculationType {
/**
* Represents HOUR_2000 type of the calculation chart.
*/
HOUR_2000,
/**
* Represents HOUR_2008 type of the calculation chart.
*/
HOUR_2008,
/**
* Represents HOUR_2016 type of the calculation chart.
*/
HOUR_2016,
/**
* Represents HOUR_2024 type of the calculation chart.
*/
HOUR_2024,
/**
* Represents HOUR_2080 type of the calculation chart.
*/
HOUR_2080,
/**
* Represents HOUR_2087 type of the calculation chart.
*/
HOUR_2087,
/**
* Represents DAY_260 type of the calculation chart.
*/
DAY_260
}
|
[
"rashidsial@gmail.com"
] |
rashidsial@gmail.com
|
1a2eca053f599ad7e06c39655a7dca7a49140a23
|
398ef9e2f6d5e5a9fd727af8c08c68bac66900dd
|
/app/src/main/java/com/mooc/ppjoke/ui/binding_adpter/CommonBindingAdapter.java
|
1abea7a902a3e3618048128c49843f332d520933
|
[] |
no_license
|
riomarksafk/Jetpack-MVVM-PPJoke
|
165b83ab910d4b9bd0a623885e79ea7686deb941
|
36e2f2fd622e6953399270433cc45a13f40145de
|
refs/heads/master
| 2023-05-21T15:03:22.648828
| 2021-06-08T07:39:43
| 2021-06-08T07:39:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,652
|
java
|
package com.mooc.ppjoke.ui.binding_adpter;
import android.content.Context;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.ImageView;
import androidx.appcompat.widget.AppCompatEditText;
import androidx.databinding.BindingAdapter;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewpager2.widget.ViewPager2;
import com.bumptech.glide.Glide;
import com.github.chrisbanes.photoview.PhotoView;
import com.google.android.exoplayer2.SimpleExoPlayer;
import com.google.android.exoplayer2.ui.PlayerView;
import com.google.android.material.appbar.AppBarLayout;
import com.mooc.libarchitecture.utils.ClickUtils;
import com.mooc.libarchitecture.utils.Utils;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.scwang.smartrefresh.layout.listener.OnLoadMoreListener;
import com.scwang.smartrefresh.layout.listener.OnRefreshListener;
public class CommonBindingAdapter {
@BindingAdapter(value = {"imageUrl"}, requireAll = false)
public static void setImageUrl(PhotoView photoView, String imageUrl) {
Glide.with(photoView.getContext()).load(imageUrl).into(photoView);
}
@BindingAdapter(value = {"player"}, requireAll = false)
public static void setPlayer(PlayerView playerview, SimpleExoPlayer player) {
playerview.setPlayer(player);
}
@BindingAdapter(value = {"offsetChangeListener"}, requireAll = false)
public static void setOffsetChangeListener(AppBarLayout appBarLayout, AppBarLayout.OnOffsetChangedListener offsetChangeListener) {
appBarLayout.addOnOffsetChangedListener(offsetChangeListener);
}
@BindingAdapter(value = {"onRefreshListener"}, requireAll = false)
public static void setOffsetChangeListener(SmartRefreshLayout refreshLayout, OnRefreshListener listener) {
refreshLayout.setOnRefreshListener(listener);
}
@BindingAdapter(value = {"onLoadMoreListener"}, requireAll = false)
public static void setOnLoadMoreListener(SmartRefreshLayout refreshLayout, OnLoadMoreListener listener) {
refreshLayout.setOnLoadMoreListener(listener);
}
@BindingAdapter(value = {"currentItem"}, requireAll = false)
public static void bindCurrentItem(ViewPager2 viewPager2, int currentItem) {
viewPager2.setCurrentItem(currentItem, true);
}
@BindingAdapter(value = {"onClickWithDebouncing"}, requireAll = false)
public static void onClickWithDebouncing(View view, View.OnClickListener clickListener) {
ClickUtils.applySingleDebouncing(view, clickListener);
}
@BindingAdapter(value = "showSoftInputMethod")
public static void showSoftInputMethod(AppCompatEditText editText, boolean show) {
if (show) {
editText.setFocusable(true);
editText.setFocusableInTouchMode(true);
//请求获得焦点
editText.requestFocus();
InputMethodManager manager = (InputMethodManager) Utils.getApp().getApplicationContext().getSystemService(Context.INPUT_METHOD_SERVICE);
manager.showSoftInput(editText, 0);
}
}
@BindingAdapter(value = {"alpha"}, requireAll = false)
public static void setImageRes(ImageView imageView, int alpha) {
imageView.setAlpha(alpha);
}
@BindingAdapter(value = {"enabled"}, requireAll = false)
public static void setImageRes(ImageView imageView, boolean enabled) {
imageView.setEnabled(enabled);
}
@BindingAdapter(value = {"removedItemDecoration"}, requireAll = false)
public static void removeItemDecorationAt(RecyclerView recyclerView, int item) {
recyclerView.removeItemDecorationAt(item);
}
@BindingAdapter(value = {"scrollToPosition"}, requireAll = false)
public static void scrollToPosition(RecyclerView recyclerView, int position) {
recyclerView.scrollToPosition(position);
}
}
|
[
"1025618933@qq,com"
] |
1025618933@qq,com
|
fb5dedba47a676f839a7a65f76a3f4f6406a1dd4
|
45f05c515e311d16eb48094b6d6617d6b6987397
|
/lucihunt-lucene4.10/src/main/java/org/apache/lucene/search/similarities/DFRSimilarity.java
|
29a616132c3032931e751c3f83b5d3dbca45eedf
|
[
"Apache-2.0"
] |
permissive
|
lemonJun/LuciHunt
|
5328dd270e891e302bf985a1a2517dcaa95def9d
|
08c71f80be580e5ebcbb519eb2aff1f3cfee55a8
|
refs/heads/master
| 2021-01-18T19:32:47.065466
| 2017-05-03T09:52:13
| 2017-05-03T09:52:13
| 86,899,911
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,264
|
java
|
package org.apache.lucene.search.similarities;
/*
* 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.
*/
import org.apache.lucene.search.Explanation;
import org.apache.lucene.search.similarities.AfterEffect.NoAfterEffect;
import org.apache.lucene.search.similarities.Normalization.NoNormalization;
/**
* Implements the <em>divergence from randomness (DFR)</em> framework
* introduced in Gianni Amati and Cornelis Joost Van Rijsbergen. 2002.
* Probabilistic models of information retrieval based on measuring the
* divergence from randomness. ACM Trans. Inf. Syst. 20, 4 (October 2002),
* 357-389.
* <p>The DFR scoring formula is composed of three separate components: the
* <em>basic model</em>, the <em>aftereffect</em> and an additional
* <em>normalization</em> component, represented by the classes
* {@code BasicModel}, {@code AfterEffect} and {@code Normalization},
* respectively. The names of these classes were chosen to match the names of
* their counterparts in the Terrier IR engine.</p>
* <p>To construct a DFRSimilarity, you must specify the implementations for
* all three components of DFR:
* <ol>
* <li>{@link BasicModel}: Basic model of information content:
* <ul>
* <li>{@link BasicModelBE}: Limiting form of Bose-Einstein
* <li>{@link BasicModelG}: Geometric approximation of Bose-Einstein
* <li>{@link BasicModelP}: Poisson approximation of the Binomial
* <li>{@link BasicModelD}: Divergence approximation of the Binomial
* <li>{@link BasicModelIn}: Inverse document frequency
* <li>{@link BasicModelIne}: Inverse expected document
* frequency [mixture of Poisson and IDF]
* <li>{@link BasicModelIF}: Inverse term frequency
* [approximation of I(ne)]
* </ul>
* <li>{@link AfterEffect}: First normalization of information
* gain:
* <ul>
* <li>{@link AfterEffectL}: Laplace's law of succession
* <li>{@link AfterEffectB}: Ratio of two Bernoulli processes
* <li>{@link NoAfterEffect}: no first normalization
* </ul>
* <li>{@link Normalization}: Second (length) normalization:
* <ul>
* <li>{@link NormalizationH1}: Uniform distribution of term
* frequency
* <li>{@link NormalizationH2}: term frequency density inversely
* related to length
* <li>{@link NormalizationH3}: term frequency normalization
* provided by Dirichlet prior
* <li>{@link NormalizationZ}: term frequency normalization provided
* by a Zipfian relation
* <li>{@link NoNormalization}: no second normalization
* </ul>
* </ol>
* <p>Note that <em>qtf</em>, the multiplicity of term-occurrence in the query,
* is not handled by this implementation.</p>
* @see BasicModel
* @see AfterEffect
* @see Normalization
* @lucene.experimental
*/
public class DFRSimilarity extends SimilarityBase {
/** The basic model for information content. */
protected final BasicModel basicModel;
/** The first normalization of the information content. */
protected final AfterEffect afterEffect;
/** The term frequency normalization. */
protected final Normalization normalization;
/**
* Creates DFRSimilarity from the three components.
* <p>
* Note that <code>null</code> values are not allowed:
* if you want no normalization or after-effect, instead pass
* {@link NoNormalization} or {@link NoAfterEffect} respectively.
* @param basicModel Basic model of information content
* @param afterEffect First normalization of information gain
* @param normalization Second (length) normalization
*/
public DFRSimilarity(BasicModel basicModel, AfterEffect afterEffect, Normalization normalization) {
if (basicModel == null || afterEffect == null || normalization == null) {
throw new NullPointerException("null parameters not allowed.");
}
this.basicModel = basicModel;
this.afterEffect = afterEffect;
this.normalization = normalization;
}
@Override
protected float score(BasicStats stats, float freq, float docLen) {
float tfn = normalization.tfn(stats, freq, docLen);
return stats.getTotalBoost() * basicModel.score(stats, tfn) * afterEffect.score(stats, tfn);
}
@Override
protected void explain(Explanation expl, BasicStats stats, int doc, float freq, float docLen) {
if (stats.getTotalBoost() != 1.0f) {
expl.addDetail(new Explanation(stats.getTotalBoost(), "boost"));
}
Explanation normExpl = normalization.explain(stats, freq, docLen);
float tfn = normExpl.getValue();
expl.addDetail(normExpl);
expl.addDetail(basicModel.explain(stats, tfn));
expl.addDetail(afterEffect.explain(stats, tfn));
}
@Override
public String toString() {
return "DFR " + basicModel.toString() + afterEffect.toString() + normalization.toString();
}
/**
* Returns the basic model of information content
*/
public BasicModel getBasicModel() {
return basicModel;
}
/**
* Returns the first normalization
*/
public AfterEffect getAfterEffect() {
return afterEffect;
}
/**
* Returns the second normalization
*/
public Normalization getNormalization() {
return normalization;
}
}
|
[
"506526593@qq.com"
] |
506526593@qq.com
|
c2f219b2cb78c1ac74d0d35e711c202fbdb8ecc5
|
60dccf85afb1a2331e1a7ef6dcbd770b5cec079f
|
/app/src/main/java/com/weiping/InteProperty/trademark/activity/TradeMarkIntegratedResultListActivity.java
|
fb5137108fe2df9f1022ada99c1d6e7a064ede26
|
[] |
no_license
|
HZSF/WQAndroid
|
69f1c62e67166dc8226bb22f576f3e956e1e720a
|
cc301d75e5f3c4ac4a9ebbe40c91c9023d47afdb
|
refs/heads/master
| 2021-01-18T19:30:48.457958
| 2017-04-01T09:01:37
| 2017-04-01T09:01:37
| 86,895,874
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,381
|
java
|
package com.weiping.InteProperty.trademark.activity;
import android.app.ActionBar;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.TextView;
import com.weiping.InteProperty.trademark.adapters.TrademarkIntegratedResultListAdapter;
import com.weiping.InteProperty.trademark.base.TrademarkIntegratedResultItem;
import com.weiping.InteProperty.trademark.core.Constants;
import java.util.ArrayList;
import platform.tyk.weping.com.weipingplatform.R;
public class TradeMarkIntegratedResultListActivity extends Activity {
private ArrayList<TrademarkIntegratedResultItem> itemArrayList;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ActionBar actionBar = getActionBar();
actionBar.setDisplayShowCustomEnabled(true);
actionBar.setDisplayShowHomeEnabled(false);
actionBar.setDisplayShowTitleEnabled(false);
actionBar.setCustomView(R.layout.actionbar_common);
((TextView)actionBar.getCustomView().findViewById(R.id.textView_screen_title)).setText(getString(R.string.title_activity_trade_mark_integrated_result_list));
actionBar.getCustomView().findViewById(R.id.linearLayout_actionbar_back).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
setContentView(R.layout.activity_trade_mark_integrated_result_list);
itemArrayList = (ArrayList<TrademarkIntegratedResultItem>)getIntent().getSerializableExtra("result_list");
final String sort_result_num = getIntent().getStringExtra("result_sort_num");
final String search_by = getIntent().getStringExtra("search_by");
TrademarkIntegratedResultListAdapter adapter = new TrademarkIntegratedResultListAdapter(this, itemArrayList);
ListView listView = (ListView)findViewById(R.id.listView_trademark_integrated_result);
listView.setAdapter(adapter);
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
ArrayList<TrademarkIntegratedResultItem> trademarkList = ((TrademarkIntegratedResultListAdapter)parent.getAdapter()).getItemArrayList();
String categoryNum = trademarkList.get(position).getCategoryNum();
String name = trademarkList.get(position).getName();
String link = trademarkList.get(position).getLink();
Intent intent = new Intent(getBaseContext(), TradeMarkIntegratedPrecisionResultListActivity.class);
intent.putExtra(Constants.SUBMIT_DATA_CATEGORYNUM, categoryNum);
intent.putExtra(Constants.SUBMIT_DATA_SEARCHCONTENT, name);
intent.putExtra(Constants.SUBMIT_DATA_RESULT_SORT_NUM, sort_result_num);
intent.putExtra(Constants.SUBMIT_DATA_SEARCHMETHOD, search_by);
intent.putExtra(Constants.SUBMIT_DATA_LINK, link);
startActivity(intent);
}
});
}
public void onClickActionBarBack(View view){
onBackPressed();
}
}
|
[
"tyingkai@gmail.com"
] |
tyingkai@gmail.com
|
451af2496143caf4c5dee356f56537d7948ca544
|
bfcd3c3d2349a5a1ce67b307463f73dbd2f82364
|
/leanengine/src/main/java/cn/leancloud/EngineHook.java
|
ed3ce345e2a53fc826a9d5286b66f55391d51225
|
[
"Apache-2.0"
] |
permissive
|
leancloud/java-unified-sdk
|
02bf727fdcde33d9172a2eac46976f8dd5e71f62
|
4dee5b1ff167493a001052b56fd817c8865fdd2b
|
refs/heads/master
| 2023-06-26T05:10:08.906059
| 2023-06-14T08:04:54
| 2023-06-14T08:04:54
| 121,136,295
| 51
| 27
|
Apache-2.0
| 2023-06-14T08:01:37
| 2018-02-11T15:20:02
|
Java
|
UTF-8
|
Java
| false
| false
| 330
|
java
|
package cn.leancloud;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface EngineHook {
String className();
EngineHookType type();
}
|
[
"jwfing@gmail.com"
] |
jwfing@gmail.com
|
d2f6ade3955e837726faa9f38418be2488c0634a
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/34/34_f36c15ff02d4e3ef77a711ddcc96fb2a8aff4f99/Example/34_f36c15ff02d4e3ef77a711ddcc96fb2a8aff4f99_Example_s.java
|
daa4235eb03b86a5b69850997e9da7cde285062e
|
[] |
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
| 240
|
java
|
package dummyclasses;
public class Example {
private int entero1 = 0;
private Integer entero2 = new Integer(0);
public static void test1(int a, int b, String c) {}
public int test2() {
return entero1 + entero2;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
b9fec7e214666f602097449d8550e98e378f9275
|
4dc162bcc8d834865746063531e6298b2a18bf20
|
/yflLibrary/src/main/java/com/backpacker/yflLibrary/java/asyn/SingleAsyncTask.java
|
b9796c14c8fac39af4e39a8b00975ffb7c5a6b6e
|
[] |
no_license
|
yufeilong92/yfl
|
3cf1017196667e842470510f79afe39bd9ca101e
|
c0f122fb9d76f982e425a1cfca81ad327b4522d9
|
refs/heads/master
| 2021-06-12T19:58:24.851850
| 2020-12-08T08:27:05
| 2020-12-08T08:27:05
| 254,385,526
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,136
|
java
|
package com.backpacker.yflLibrary.java.asyn;
import android.os.Binder;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import androidx.annotation.MainThread;
import androidx.annotation.WorkerThread;
import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;
import java.util.concurrent.atomic.AtomicBoolean;
/**
* @Author : YFL is Creating a porject in My Application
* @Package com.example.myapplication.asynctaskscheduler
* @Email : yufeilong92@163.com
* @Time :2020/11/10 16:16
* @Purpose : 异步线程
*/
public abstract class SingleAsyncTask<Progress,Result> {
private final AtomicBoolean mIsCancelled = new AtomicBoolean();
private final static Handler sUIHandler = new InternalHandler();
private static final int SINGLE_TASK_EXECUTED_RESULT = 0x1;
private static final int SINGLE_TASK_EXECUTED_PROGRESS = 0x2;
private FutureTask<Result> mFutureResult;
protected SingleAsyncTask() {
Callable<Result> taskCallable = new Callable<Result>() {
@Override
public Result call() throws Exception {
Binder.flushPendingCommands();
return doInBackground();
}
};
mFutureResult = new FutureTask<Result>(taskCallable) {
@Override
protected void done() {
super.done();
try {
postResult(get());
} catch (Exception e) {
onExecuteFailed(e);
}
}
};
}
public void executeSingle() {
Thread workThread= new Thread(mFutureResult);
workThread.start();
}
private void postResult(Result result) {
if(mIsCancelled.get()) {
return;
}
sUIHandler.obtainMessage(SINGLE_TASK_EXECUTED_RESULT,new AsyncTaskResult<Result>(this,result)).sendToTarget();
}
FutureTask<Result> getFutureTask() {
return mFutureResult;
}
@WorkerThread
protected abstract Result doInBackground();
@MainThread
protected void onProgressUpdate(Progress values) {
}
@MainThread
protected void onExecuteSucceed(Result result){
}
@WorkerThread
protected void onExecuteFailed(Exception exception){
}
@MainThread
protected void onExecuteCancelled(Result result){
}
@WorkerThread
protected final void publishProgress(Progress values) {
if (!isCancelled()) {
sUIHandler.obtainMessage(SINGLE_TASK_EXECUTED_PROGRESS,
new AsyncTaskResult<Progress>(this, values)).sendToTarget();
}
}
private void finish(Result result) {
if (isCancelled()) {
onExecuteCancelled(result);
} else {
onExecuteSucceed(result);
}
}
public final boolean cancel(boolean mayInterruptIfRunning) {
mIsCancelled.set(true);
return mFutureResult.cancel(mayInterruptIfRunning);
}
public boolean isCancelled() {
return mIsCancelled.get();
}
private static class AsyncTaskResult<Data> {
final SingleAsyncTask mSingleAsyncTask;
final Data mData;
AsyncTaskResult(SingleAsyncTask singleAsyncTask, Data data) {
mSingleAsyncTask = singleAsyncTask;
mData = data;
}
}
private static class InternalHandler extends Handler {
InternalHandler() {
super(Looper.getMainLooper());
}
@SuppressWarnings({"unchecked", "RawUseOfParameterizedType"})
@Override
public void handleMessage(Message msg) {
AsyncTaskResult<?> asyncTaskResult = (AsyncTaskResult<?>) msg.obj;
switch (msg.what) {
case SINGLE_TASK_EXECUTED_RESULT:
asyncTaskResult.mSingleAsyncTask.finish(asyncTaskResult.mData);
break;
case SINGLE_TASK_EXECUTED_PROGRESS:
asyncTaskResult.mSingleAsyncTask.onProgressUpdate(asyncTaskResult.mData);
break;
}
}
}
}
|
[
"931697478@qq.com"
] |
931697478@qq.com
|
78cdba42f1e700c4ba84e796d05ea024d923ab4e
|
8afb5afd38548c631f6f9536846039ef6cb297b9
|
/_REPO/APRESS/jsp-examples-best-practices/SourceCode/JavaCode/jspbook/framework/request/Action.java
|
da1e41aad64b64eb5b7f1d8677090324139bd6ac
|
[
"MIT"
] |
permissive
|
bgoonz/UsefulResourceRepo2.0
|
d87588ffd668bb498f7787b896cc7b20d83ce0ad
|
2cb4b45dd14a230aa0e800042e893f8dfb23beda
|
refs/heads/master
| 2023-03-17T01:22:05.254751
| 2022-08-11T03:18:22
| 2022-08-11T03:18:22
| 382,628,698
| 10
| 12
|
MIT
| 2022-10-10T14:13:54
| 2021-07-03T13:58:52
| null |
UTF-8
|
Java
| false
| false
| 839
|
java
|
package jspbook.framework.request;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.sql.*;
/**
* Interface for Action objects
*
* <p>This interface is used to provide a generic
* interface to Action objects, which are used to
* implement a request action.</p>
*
* @version 1.0
* @author Andrew Patzer
* @since JDK 1.3
*/
public interface Action {
/**
* Set local database connection
*/
public void setDatabase(Connection _db);
/**
* Execute business logic
*/
public boolean execute(HttpServletRequest _req, HttpServletResponse _res)
throws ServletException, IOException;
/**
* Return the page name (and path) to display the view
*/
public String getView();
/**
* Return a JavaBean containing the model (data)
*/
public Object getModel();
}
|
[
"bryan.guner@gmail.com"
] |
bryan.guner@gmail.com
|
a28f67cc007a9b073b8edd42c2993988b5ab73bb
|
6a649709010f35916b58ad639eb24dc9d7452344
|
/AL-Game/src/com/aionemu/gameserver/model/templates/item/actions/RemodelAction.java
|
3d18b72291f6f9151c68998ec5b74fe541979a4e
|
[] |
no_license
|
soulxj/aion-cn
|
807860611e746d8d4c456a769a36d3274405fd7e
|
8a0a53cf8f99233cbee82f341f2b5c33be0364fa
|
refs/heads/master
| 2016-09-11T01:12:19.660692
| 2014-08-11T14:59:38
| 2014-08-11T14:59:38
| 41,342,802
| 2
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,525
|
java
|
/*
* This file is part of aion-lightning <aion-lightning.com>.
*
* aion-lightning is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* aion-lightning is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aion-lightning. If not, see <http://www.gnu.org/licenses/>.
*/
package com.aionemu.gameserver.model.templates.item.actions;
import javax.xml.bind.annotation.XmlAttribute;
import com.aionemu.gameserver.model.gameobjects.Item;
import com.aionemu.gameserver.model.gameobjects.player.Player;
/**
* @author Rolandas
*/
public class RemodelAction extends AbstractItemAction {
@XmlAttribute(name = "type")
private int extractType;
@XmlAttribute(name = "minutes")
private int expireMinutes;
@Override
public boolean canAct(Player player, Item parentItem, Item targetItem) {
return false;
}
@Override
public void act(Player player, Item parentItem, Item targetItem) {
}
public int getExpireMinutes() {
return expireMinutes;
}
public int getExtractType() {
return extractType;
}
}
|
[
"feidebugao@gmail.com"
] |
feidebugao@gmail.com
|
42d7145d101f995be4d44fec13818262237782f2
|
da889968b2cc15fc27f974e30254c7103dc4c67e
|
/Optimization Algorithm_GUI/src/Algorithm_Carpool/NSDE_POP/U_Individual.java
|
95bc2c3f699370988616c953472e0a5269aeb9ff
|
[] |
no_license
|
say88888/My_Project_thesis
|
fcd4d96b34de8627fa054146eb6164b7c3636344
|
04908ea3ed6b7a9c1939a5d8e16dfc65d66437f4
|
refs/heads/master
| 2020-04-10T08:32:37.106239
| 2018-12-08T05:52:44
| 2018-12-08T05:52:44
| 160,908,221
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,000
|
java
|
package Algorithm_Carpool.NSDE_POP;
import java.util.Random;
public class U_Individual extends NSDE_POP{
static int defaultGeneLengthX = Xsize;
private double[] Ux = new double[defaultGeneLengthX];
private int[] binaryUx = new int[defaultGeneLengthX];
static int defaultGeneLengthY = Ysize;
private double[] Uy = new double[defaultGeneLengthY];
private int[] binaryUy = new int[defaultGeneLengthY];
// Cache
private double fitness = 0;
private double fitness1 = 0;
Random ran = new Random();
public void XglobalIndividual() {
defaultGeneLengthX = Xsize;
Ux = new double[defaultGeneLengthX];
binaryUx = new int[defaultGeneLengthX];
for (int i = 0; i < Uxsize(); i++) {
Ux[i] = DE_Read_Write_txt.random_generate_or_read4(Execution_Mode);
double rsid = DE_Read_Write_txt
.random_generate_or_read1(Execution_Mode);
if (rsid < 1 / (1 + Math.exp(-lamda * Ux[i]))) {
binaryUx[i] = 1;
} else {
binaryUx[i] = 0;
}
}
}
public void YglobalIndividual() {
defaultGeneLengthY = Ysize;
Uy = new double[defaultGeneLengthY];
binaryUy = new int[defaultGeneLengthY];
for (int i = 0; i < Uysize(); i++) {
Uy[i] = DE_Read_Write_txt.random_generate_or_read4(Execution_Mode);
double rsid = DE_Read_Write_txt
.random_generate_or_read1(Execution_Mode);
if (rsid < 1 / (1 + Math.exp(-lamda * Uy[i]))) {
binaryUy[i] = 1;
} else {
binaryUy[i] = 0;
}
}
}
/* Getters and setters */
// Use this if you want to create individuals with different gene lengths
// 如果你想創建具有不同基因的長度個體使用本
public static void setDefaultGeneLengthX(int length) {
defaultGeneLengthX = length;
}
public static void setDefaultGeneLengthY(int length) {
defaultGeneLengthY = length;
}
public double getUx(int index) {
return Ux[index];
}
public double getUy(int index) {
return Uy[index];
}
public void setUx(int index, double value) {
Ux[index] = value;
fitness = 0;
fitness1 = 0;
}
public void setUy(int index, double value) {
Uy[index] = value;
fitness = 0;
fitness1 = 0;
}
public int getbinaryUx(int index) {
return binaryUx[index];
}
public int getbinaryUy(int index) {
return binaryUy[index];
}
public void setbinaryUx(int index, int value) {
binaryUx[index] = value;
fitness = 0;
fitness1 = 0;
}
public void setbinaryUy(int index, int value) {
binaryUy[index] = value;
fitness = 0;
fitness1 = 0;
}
/* Public methods */
public int Uxsize() {
return Ux.length;
}
public int Uysize() {
return Uy.length;
}
public double getFitness1() {
if (fitness == 0) {
fitness = FitnessCalc.getUFitness(this);
}
return fitness;
}
public void setfitness() {
fitness = 0;
}
// Cache
@Override
public String toString() {
String geneString = "";
for (int i = 0; i < Uysize(); i++) {
geneString += getUy(i);
}
geneString += ",";
for (int i = 0; i < Uxsize(); i++) {
geneString += getUx(i);
}
return geneString;
}
}
|
[
"gtvsta99@gmail.com"
] |
gtvsta99@gmail.com
|
b5eef3e0e20182c0dcd206244bf8e5215f8c2315
|
d63baac4f7548a1eb7dad8d9ac924f28ea8e63b9
|
/src/it/algos/vaadbio/liste/ListaAntroponimo.java
|
d6936b4ba3e38347ebbf6add0695aa240e884fcf
|
[] |
no_license
|
GuidoCeresa/vaadbio
|
1ec023555ad069825c81cf661426d74fb56c8b56
|
0286830c0bd49367d7757027c6628afef773bd4a
|
refs/heads/master
| 2020-04-16T23:45:29.259482
| 2018-02-08T12:40:23
| 2018-02-08T12:40:23
| 46,733,460
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,449
|
java
|
package it.algos.vaadbio.liste;
import it.algos.vaadbio.bio.Bio;
import it.algos.vaadbio.lib.CostBio;
import it.algos.vaadbio.lib.LibBio;
import it.algos.webbase.domain.pref.Pref;
/**
* Created by gac on 31 ott 2016.
* <p>
* Crea la lista antroponima
* <p>
* Crea la lista dei nomi e la carica sul server wiki
* Crea la lista dei cognomi e la carica sul server wiki
*/
public abstract class ListaAntroponimo extends ListaBio {
/**
* Costruttore senza parametri
*/
protected ListaAntroponimo() {
}// fine del costruttore
/**
* Costruttore completo
*/
public ListaAntroponimo(Object oggetto) {
super(oggetto);
}// fine del costruttore
/**
* Regola alcuni (eventuali) parametri specifici della sottoclasse
* <p>
* Nelle sottoclassi va SEMPRE richiamata la superclasse PRIMA di regolare localmente le variabili <br>
* Sovrascritto
*/
@Override
protected void elaboraParametri() {
super.elaboraParametri();
// head
usaHeadTocIndice = true;
usaHeadIncipit = true;
tagHeadTemplateProgetto = "antroponimi";
// body
usaSuddivisioneParagrafi = true;
usaBodyRigheMultiple = false;
usaBodyDoppiaColonna = false;
usaSottopagine = true;
usaTitoloParagrafoConLink = true;
usaTaglioVociPagina = true;
maxVociPagina = Pref.getInt(CostBio.TAGLIO_NOMI_PAGINA, 100);
// footer
usaFooterPortale = Pref.getBool(CostBio.USA_FOOTER_PORTALE_NOMI, true);
if (Pref.getBool(CostBio.USA_DEBUG, false)) {
usaFooterCategorie = false;
} else {
usaFooterCategorie = Pref.getBool(CostBio.USA_FOOTER_CATEGORIE_NOMI, true);
}// end of if/else cycle
}// fine del metodo
/**
* Costruisce la chiave del paragrafo
* Sovrascritto
*/
@Override
protected String getChiave(Bio bio) {
return LibBio.getChiavePerAttivita(bio, tagParagrafoNullo);
}// fine del metodo
/**
* Piede della pagina
* Sovrascritto
*/
@Override
protected String elaboraFooter() {
String text = CostBio.VUOTO;
boolean usaInclude = usaFooterPortale || usaFooterCategorie;
if (usaFooterPortale) {
text += CostBio.A_CAPO;
text += "{{Portale|antroponimi}}";
}// end of if cycle
if (usaFooterCategorie) {
text += CostBio.A_CAPO;
text += elaboraCategorie();
}// end of if cycle
if (usaInclude) {
text = CostBio.A_CAPO + LibBio.setNoIncludeMultiRiga(text);
}// end of if cycle
return text;
}// fine del metodo
/**
* Categorie al piede della pagina
* Sovrascritto
*/
protected String elaboraCategorie() {
return "";
}// fine del metodo
/**
* Controlla che la modifica sia sostanziale
* Se il flag è false, registra sempre
* Se il flag è vero, controlla la differenza del testo
* Sovrascritto
*/
@Override
protected boolean checkPossoRegistrare(String titolo, String testo) {
if (Pref.getBool(CostBio.USA_REGISTRA_SEMPRE_PERSONA, false)) {
return true;
} else {
return LibBio.checkModificaSostanziale(titolo, testo, tagHeadTemplateAvviso, "}}");
}// end of if/else cycle
}// fine del metodo
}// fine della classe
|
[
"gac@algos.it"
] |
gac@algos.it
|
197343b04befd3cdc068894221b0a0e8fb58cc6f
|
c6a265de454037535828cbb57730391982117c38
|
/Canting/src/main/java/cn/caimatou/canting/utils/GLEditTextUtil.java
|
d8337517afbc9ae723bc7919f2704329c3d26cf3
|
[] |
no_license
|
huluhaziqi/Canting
|
0c418c98b8bd64c58683217d9e2fbd62ea696e13
|
cf6ee129e3b59477a244c56c247a66a99de1ae56
|
refs/heads/master
| 2016-09-06T01:16:02.837402
| 2015-09-10T12:22:46
| 2015-09-10T12:22:46
| 42,242,802
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,028
|
java
|
package cn.caimatou.canting.utils;
import android.widget.EditText;
import cn.caimatou.canting.common.GLConst;
/**
* Description:
* <br/><br/>Created by Fausgoal on 15/9/8.
* <br/><br/>
*/
public class GLEditTextUtil {
private GLEditTextUtil() {
}
/**
* 将光标移动到指定的EditText中
*
* @param editText editText
* @param isSetEmpty true 并将editText设置为空
*/
public static void setEditTextFocus(final EditText editText, final boolean isSetEmpty) {
if (null == editText) {
return;
}
if (isSetEmpty)
editText.setText("");
// 设置光标到指定文本框内
editText.setFocusable(true);
editText.setFocusableInTouchMode(true);
editText.requestFocus();
editText.requestFocusFromTouch();
if (editText.getText().length() != GLConst.NONE) {
editText.setSelection(editText.getText().length()); // 将光标移动到输入内容的最后
}
}
}
|
[
"huluhaziqi@gmail.com"
] |
huluhaziqi@gmail.com
|
4f3744ea17c96d2ee36e22605c72e5c6875e751c
|
4bae3208f7365cea15acf3fb359207226d1f64bb
|
/modeshape-jcr/src/main/java/org/modeshape/jcr/TimeoutException.java
|
de22467975203c83648587cec78e2135cef03f7c
|
[
"Apache-2.0"
] |
permissive
|
teiid/teiid-modeshape
|
ad4c7622d4c7f8297684600177334ef8af66c397
|
8dffe84d2cc7d8b7e48f84efc49a1b0a5e46faa6
|
refs/heads/master
| 2023-09-01T07:34:07.609074
| 2019-07-26T16:57:25
| 2019-07-26T16:57:25
| 114,037,491
| 0
| 6
|
Apache-2.0
| 2022-06-21T01:23:43
| 2017-12-12T20:46:38
|
Java
|
UTF-8
|
Java
| false
| false
| 1,550
|
java
|
/*
* ModeShape (http://www.modeshape.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.modeshape.jcr;
/**
* An exception that signals a timeout has occurred.
*/
public class TimeoutException extends RuntimeException {
private static final long serialVersionUID = 1L;
/**
* Create a new timeout exception with the specified message and cause.
*
* @param message the message
* @param rootCause the cause
*/
public TimeoutException( String message,
Throwable rootCause ) {
super(message, rootCause);
}
/**
* Create a new timeout exception with the specified message and cause.
*
* @param message the message
*/
public TimeoutException( String message ) {
super(message);
}
/**
* Create a new timeout exception with the specified message and cause.
*
* @param rootCause the cause
*/
public TimeoutException( Throwable rootCause ) {
super(rootCause);
}
}
|
[
"shawkins@redhat.com"
] |
shawkins@redhat.com
|
1dc5c8031c97b07f9e8acfa921e7b66f9e6820f2
|
0205c7a1e9d64cea74b8d9308a42a73bff30d9d2
|
/COCOON-2217/cocoon-2.2.0/pipeline-impl/src/org/apache/cocoon/reading/ServiceableReader.java
|
39a983313102f8c52446b0ba00ba80fe0e983adc
|
[
"Apache-2.0"
] |
permissive
|
ZhuofuChen/Apache_Contribution
|
329de187c3a9ed0b158f7b06da0b2b4174aaabb2
|
cedf844b4df218cbf0519972ab2d2902f3945f4a
|
refs/heads/master
| 2021-08-26T06:40:45.363568
| 2017-11-21T23:25:16
| 2017-11-21T23:25:16
| 110,313,367
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,676
|
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.cocoon.reading;
import org.apache.avalon.framework.service.ServiceException;
import org.apache.avalon.framework.service.ServiceManager;
import org.apache.avalon.framework.service.Serviceable;
/**
* The serviceable reader will allow any {@link Reader} implementation that
* extends this to access other Avalon components.
*
* @version $Id: ServiceableReader.java 587751 2007-10-24 02:41:36Z vgritsenko $
*/
public abstract class ServiceableReader
extends AbstractReader
implements Serviceable {
protected ServiceManager manager;
/**
* @see org.apache.avalon.framework.service.Serviceable#service(org.apache.avalon.framework.service.ServiceManager)
*/
public void service(ServiceManager manager)
throws ServiceException {
this.manager = manager;
}
}
|
[
"chenzhuofusean@gmail.com"
] |
chenzhuofusean@gmail.com
|
36bc3659d920309c3b47fce0f8a50a1a13b3137c
|
81941ad872aa450aaa0d9e5cec5b84bafa931129
|
/lib_utils/src/main/java/com/mb/android/utils/NetworkHelper.java
|
9a86a411629da4aa31144d71c70d8d4a3aaad528
|
[] |
no_license
|
cgy529387306/AiShangYi
|
b6fc5c1c62e89813916399fdffa5aeaeb11a35be
|
6363540293b67b84f640698a51196d899b9cc1e0
|
refs/heads/master
| 2020-04-26T03:17:06.607710
| 2019-04-01T11:21:24
| 2019-04-01T11:21:24
| 173,262,143
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,173
|
java
|
package com.mb.android.utils;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
import android.provider.Settings;
import java.net.Inet4Address;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Enumeration;
public class NetworkHelper {
private static final String TAG = NetworkHelper.class.getSimpleName();
/**
* KEY:网络传输用,user-agent1
*/
public static final String NETWORK_KEY_USER_AGENT1 = "User-Agent1";
public static final short TYPE_IP_V4 = 4;
public static final short TYPE_IP_V6 = 6;
/**
* 检查网络连接是否可用
*
* @param context
* 上下文
*
* @return
*/
public static boolean isNetworkAvailable(Context context) {
ConnectivityManager cm = (ConnectivityManager) context
.getSystemService(Context.CONNECTIVITY_SERVICE);
if (cm == null) {
return false;
}
NetworkInfo[] netinfo = cm.getAllNetworkInfo();
if (netinfo == null) {
return false;
}
for (int i = 0; i < netinfo.length; i++) {
if (netinfo[i].isConnected()) {
return true;
}
}
return false;
}
/**
* 判断是否是wifi连接
*/
public static boolean isWifi(Context context)
{
ConnectivityManager cm = (ConnectivityManager) context
.getSystemService(Context.CONNECTIVITY_SERVICE);
if (cm == null)
return false;
return cm.getActiveNetworkInfo().getType() == ConnectivityManager.TYPE_WIFI;
}
/**
* 打开网络设置界面
*/
public static void openSetting(Activity activity)
{
Intent intent = null;
if (Build.VERSION.SDK_INT>10){
intent = new Intent(Settings.ACTION_WIRELESS_SETTINGS);
}else{
intent = new Intent();
ComponentName cm = new ComponentName("com.android.settings",
"com.android.settings.WirelessSettings");
intent.setComponent(cm);
intent.setAction("android.intent.action.VIEW");
}
activity.startActivity(intent);
}
/**
* 获取当前ip
* @param ipType ipv4或者ipv6,请使用{@link #TYPE_IP_V4}或者{@link #TYPE_IP_V6}
* @return 当前ip
*/
public static String getLocalIpAddress(short ipType) {
try {
for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces();
en.hasMoreElements();) {
NetworkInterface intf = en.nextElement();
for (Enumeration<InetAddress> enumIpAddr = intf.getInetAddresses();
enumIpAddr.hasMoreElements();) {
InetAddress inetAddress = enumIpAddr.nextElement();
if (!inetAddress.isLoopbackAddress()) {
switch (ipType) {
case TYPE_IP_V4:
if (inetAddress instanceof Inet4Address) {
return inetAddress.getHostAddress().toString();
}
break;
case TYPE_IP_V6:
if (inetAddress instanceof Inet6Address) {
return inetAddress.getHostAddress().toString();
}
break;
default:
break;
}
}
}
}
} catch (SocketException ex) {
ex.printStackTrace();
}
return null;
}
}
|
[
"661005@nd.com"
] |
661005@nd.com
|
6bad389233a522f4d52b957e1ece24623ebf592e
|
139960e2d7d55e71c15e6a63acb6609e142a2ace
|
/mobile_app1/module1063/src/main/java/module1063packageJava0/Foo4.java
|
16a9f8d5c1d9488e3cd8af807b9ddfb56d16d38f
|
[
"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
| 549
|
java
|
package module1063packageJava0;
import java.lang.Integer;
public class Foo4 {
Integer int0;
Integer int1;
public void foo0() {
new module1063packageJava0.Foo3().foo9();
}
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();
}
}
|
[
"oliviern@uber.com"
] |
oliviern@uber.com
|
f9ee0e6798dca3839114283f95b283e0f0b37c1d
|
a24ebf6e2f750266ed16203be384d105c11fcf3c
|
/gori-sys/src/main/java/cn/gori/service/impl/SysRoleMenuServiceImpl.java
|
b1f6d34037d5108faacadd39b24f633871e447e1
|
[] |
no_license
|
chuckma/gori
|
b548a5acde419b501940aaf92a76124fda4b20f3
|
0f8277f54dbc0a62c52052948d8eaef690cfdf2f
|
refs/heads/master
| 2020-04-13T10:40:50.445613
| 2018-12-26T09:15:35
| 2018-12-26T09:15:35
| 163,148,954
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 481
|
java
|
package cn.gori.service.impl;
import cn.gori.entity.SysRoleMenu;
import cn.gori.mapper.SysRoleMenuMapper;
import cn.gori.service.ISysRoleMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author Ma
* @since 2018-12-26
*/
@Service
public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRoleMenu> implements ISysRoleMenuService {
}
|
[
"robbincen@163.com"
] |
robbincen@163.com
|
b3d7663c9eb9d2a7261aca6b165b1ec8556803c0
|
dc1071c0e8b3f4cdd02eb2fd440844429f9f530b
|
/appLian/src/main/java/com/skynet/lian/models/NotificationFCM.java
|
baf554c63c33fa2fbd655d27a8d49666792e88d8
|
[] |
no_license
|
duongnv1996/lian-chat-implement
|
d6f5f4e658f5f18c46dac6760dd13d647cb5c607
|
62f915a242b82aed6877681240be9f9892fda1d9
|
refs/heads/master
| 2020-04-29T12:20:30.103539
| 2019-04-08T07:19:15
| 2019-04-08T07:19:15
| 176,133,283
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,766
|
java
|
package com.skynet.lian.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class NotificationFCM {
@Expose
@SerializedName("type_noti")
private int type;
@Expose
@SerializedName("object")
private Message object;
@Expose
@SerializedName("content")
private String content;
@Expose
@SerializedName("title")
private String title;
@SerializedName("room_id")
String roomID;
@SerializedName("user_id")
String idUserRequestFriend;
@SerializedName("user_name")
String nameUserRequestFriend;
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public String getIdUserRequestFriend() {
return idUserRequestFriend;
}
public void setIdUserRequestFriend(String idUserRequestFriend) {
this.idUserRequestFriend = idUserRequestFriend;
}
public String getNameUserRequestFriend() {
return nameUserRequestFriend;
}
public void setNameUserRequestFriend(String nameUserRequestFriend) {
this.nameUserRequestFriend = nameUserRequestFriend;
}
public String getRoomID() {
return roomID;
}
public void setRoomID(String roomID) {
this.roomID = roomID;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getTitle() {
return title;
}
public Message getObject() {
return object;
}
public void setObject(Message object) {
this.object = object;
}
public void setTitle(String title) {
this.title = title;
}
}
|
[
"duongnv1996@gmail.com"
] |
duongnv1996@gmail.com
|
438a282fc697ab9b82b3fbda42b46f9d00f30a6d
|
d5f09c7b0e954cd20dd613af600afd91b039c48a
|
/sources/kotlin/jvm/internal/ArrayIteratorKt.java
|
3ac49f0f7c76facff193304be7d7ba8f7a936712
|
[] |
no_license
|
t0HiiBwn/CoolapkRelease
|
af5e00c701bf82c4e90b1033f5c5f9dc8526f4b3
|
a6a2b03e32cde0e5163016e0078391271a8d33ab
|
refs/heads/main
| 2022-07-29T23:28:35.867734
| 2021-03-26T11:41:18
| 2021-03-26T11:41:18
| 345,290,891
| 5
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 767
|
java
|
package kotlin.jvm.internal;
import java.util.Iterator;
import kotlin.Metadata;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0012\n\u0000\n\u0002\u0010(\n\u0002\b\u0002\n\u0002\u0010\u0011\n\u0002\b\u0002\u001a%\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0004¢\u0006\u0002\u0010\u0005¨\u0006\u0006"}, d2 = {"iterator", "", "T", "array", "", "([Ljava/lang/Object;)Ljava/util/Iterator;", "kotlin-stdlib"}, k = 2, mv = {1, 4, 1})
/* compiled from: ArrayIterator.kt */
public final class ArrayIteratorKt {
public static final <T> Iterator<T> iterator(T[] tArr) {
Intrinsics.checkNotNullParameter(tArr, "array");
return new ArrayIterator(tArr);
}
}
|
[
"test@gmail.com"
] |
test@gmail.com
|
dd9d42eaa4cd5a25b56199554872d8b2e7b20d32
|
5c29d6f509ef0f87f288afeb312cd1f126277457
|
/src/java/nio/channels/spi/AbstractSelectionKey.java
|
3cc7ee016a69319d64ac1e6d0553a2565df93d26
|
[
"Apache-2.0"
] |
permissive
|
Golde-nchow/jdk-1.7-annotated
|
d1c30cebbc0b968873b60e0a9cca3e1e85d17d42
|
726f675973e8498ea4afca13393f692e95255b94
|
refs/heads/master
| 2021-07-14T15:25:05.610358
| 2020-11-02T16:03:08
| 2020-11-02T16:03:08
| 221,722,100
| 0
| 0
|
Apache-2.0
| 2019-11-14T14:53:58
| 2019-11-14T14:53:55
| null |
UTF-8
|
Java
| false
| false
| 1,515
|
java
|
/*
* Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.nio.channels.spi;
import java.nio.channels.*;
/**
* Base implementation class for selection keys.
*
* <p> This class tracks the validity of the key and implements cancellation.
*
* @author Mark Reinhold
* @author JSR-51 Expert Group
* @since 1.4
*/
public abstract class AbstractSelectionKey
extends SelectionKey
{
/**
* Initializes a new instance of this class. </p>
*/
protected AbstractSelectionKey() { }
private volatile boolean valid = true;
public final boolean isValid() {
return valid;
}
void invalidate() { // package-private
valid = false;
}
/**
* Cancels this key.
*
* <p> If this key has not yet been cancelled then it is added to its
* selector's cancelled-key set while synchronized on that set. </p>
*/
public final void cancel() {
// Synchronizing "this" to prevent this key from getting canceled
// multiple times by different threads, which might cause race
// condition between selector's select() and channel's close().
synchronized (this) {
if (valid) {
valid = false;
((AbstractSelector)selector()).cancel(this);
}
}
}
}
|
[
"zhaoxina@gmail.com"
] |
zhaoxina@gmail.com
|
2e8300c46b7a0e349b1caf0f3bb459e8a82409df
|
df1f980603fece6e8553261ba1d15cafbc39aff9
|
/ndtp-user/src/main/java/ndtp/support/URLSupport.java
|
f477d63afa800eaef7406414f046b4009d0b24d0
|
[] |
no_license
|
chasimyeong/ndtp
|
045e18f91bb2825e0a5d2293c224de34733c1e9d
|
afffc01b1e02f072982056a97083f05330dfa887
|
refs/heads/master
| 2021-04-10T19:00:37.131554
| 2020-02-04T08:42:52
| 2020-02-04T08:42:52
| 248,956,330
| 1
| 0
| null | 2020-03-21T10:50:02
| 2020-03-21T10:50:02
| null |
UTF-8
|
Java
| false
| false
| 960
|
java
|
package ndtp.support;
public class URLSupport {
public static final String SIGNIN_URL = "/sign/signin";
public static final String POPUP_SIGNIN_URL = "/sign/popup-signin";
public static final String POPUP_URL = "popup";
// login 의 경우 통과
public static final String[] EXCEPTION_URI = { "error", "sign", "/api/", "swagger" };
public static final String[] USER_STATUS_EXCEPTION_URI = { "/sign/signin", "/sign/process-signin", "/user/modify-password", "/user/update-password"};
// 로그 예외 URL, 사용이력, 이중화, 메인 위젯(main, ajax, widget 이건 너무 많아서 키워드로 Filter)
public static final String[] LOG_EXCEPTION_URI = { "error", "access/list", "accesses" };
// 파일 업로딩 URL
public static final String[] MULTIPART_REQUEST_URI = { "/layers/" };
// public static final Pattern STATIC_RESOURCES = Pattern.compile("(^/js/.*)|(^/css/.*)|(^/images/.*)|(^/externlib/.*)|(/favicon.ico)");
}
|
[
"jdcheon@gaia3d.com"
] |
jdcheon@gaia3d.com
|
c6287030ef3056c2f400fbf1a7442bfcbfa71f29
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-new-fitness/results/MATH-40b-5-29-Single_Objective_GGA-IntegrationSingleObjective-BasicBlockCoverage/org/apache/commons/math/analysis/solvers/BracketingNthOrderBrentSolver_ESTest.java
|
b869e30cea5307a6c135a8ae6a9aafd7f477adf6
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,699
|
java
|
/*
* This file was automatically generated by EvoSuite
* Mon May 18 02:36:31 UTC 2020
*/
package org.apache.commons.math.analysis.solvers;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.apache.commons.math.analysis.SinFunction;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.solvers.AllowedSolution;
import org.apache.commons.math.analysis.solvers.BracketingNthOrderBrentSolver;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.ViolatedAssumptionAnswer;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class BracketingNthOrderBrentSolver_ESTest extends BracketingNthOrderBrentSolver_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
BracketingNthOrderBrentSolver bracketingNthOrderBrentSolver0 = new BracketingNthOrderBrentSolver();
UnivariateFunction univariateFunction0 = mock(UnivariateFunction.class, new ViolatedAssumptionAnswer());
doReturn(0.0).when(univariateFunction0).value(anyDouble());
AllowedSolution allowedSolution0 = AllowedSolution.ANY_SIDE;
bracketingNthOrderBrentSolver0.solve(4, univariateFunction0, 0.0, 2978.3892590729897, 1.0, allowedSolution0);
SinFunction sinFunction0 = new SinFunction();
// Undeclared exception!
bracketingNthOrderBrentSolver0.solve(4, (UnivariateFunction) sinFunction0, (-2420.00283869027), 2978.3892590729897, 1.0, allowedSolution0);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
ea183e3489c84a08c4c0dd81b2a63787f19e9326
|
551fb905f53ea32909cadafad81e46ec1c87bc89
|
/app/src/main/java/details/hotel/app/fitiam/UI/Fragments/UpcomingBookingFragment.java
|
8b50ae8ec7e48f14f4ba1e6acf031943a04be1c3
|
[] |
no_license
|
nisharzingo/Gyms
|
f254724c7838b5190f302d47cbe137a199d6b1f7
|
ff89e868406b685a7daf4017042e1a02e127be45
|
refs/heads/master
| 2020-05-29T13:19:29.469216
| 2019-05-29T07:13:49
| 2019-05-29T07:13:49
| 189,157,222
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,618
|
java
|
package details.hotel.app.fitiam.UI.Fragments;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import details.hotel.app.fitiam.Adapter.BookingRecyclerViewAdapter;
import details.hotel.app.fitiam.Model.RoomBookings;
import details.hotel.app.fitiam.Model.Traveller;
import details.hotel.app.fitiam.R;
import details.hotel.app.fitiam.Utils.PreferenceHandler;
import details.hotel.app.fitiam.Utils.ThreadExecuter;
import details.hotel.app.fitiam.Utils.Util;
import details.hotel.app.fitiam.WebAPI.RoomBookingAPI;
import details.hotel.app.fitiam.WebAPI.TravellerAPI;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
public class UpcomingBookingFragment extends Fragment {
RecyclerView recyclerView;
View empty;
ArrayList<Traveller> travellerArrayList;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
//return inflater.inflate(R.layout.fragment_upcoming_booking, container, false);
try {
View view = inflater.inflate(R.layout.fragment_upcoming_booking, container, false);
recyclerView = (RecyclerView) view.findViewById(R.id.upcoming_bookings_list);
empty = (View)view.findViewById(R.id.empty);
getBookings();
return view;
}catch (Exception e){
e.printStackTrace();
Toast.makeText(getActivity(), "UI not Supporting", Toast.LENGTH_SHORT).show();
return null;
}
}
private void getBookings() {
final ProgressDialog dialog = new ProgressDialog(getActivity());
dialog.setTitle(R.string.loader_message);
dialog.setCancelable(false);
dialog.show();
new ThreadExecuter().execute(new Runnable() {
@Override
public void run() {
RoomBookingAPI bookingApi = Util.getClient().create(RoomBookingAPI.class);
String authenticationString = Util.getToken(getActivity());
final Call<ArrayList<RoomBookings>> getAllBookings = bookingApi.getBookingsByProfileId(authenticationString, PreferenceHandler.getInstance(getActivity()).getTravellerId());
getAllBookings.enqueue(new Callback<ArrayList<RoomBookings>>() {
@Override
public void onResponse(Call<ArrayList<RoomBookings>> call, Response<ArrayList<RoomBookings>> response) {
if(dialog != null)
{
dialog.dismiss();
}
if(response.code() == 200)
{
if(response.body() != null)
{
ArrayList<RoomBookings> bookings1ArrayList = response.body();
ArrayList<RoomBookings> arrayList = new ArrayList<>();
for (int i=0;i<bookings1ArrayList.size();i++)
{
if(bookings1ArrayList.get(i).getBookingStatus() != null &&
bookings1ArrayList.get(i).getBookingStatus().equals("Quick"))
{
RoomBookings bookings1 = bookings1ArrayList.get(i);
arrayList.add(bookings1);
}
}
if(arrayList.size() != 0)
{
Collections.sort(bookings1ArrayList, new Comparator<RoomBookings>() {
@Override
public int compare(RoomBookings o1, RoomBookings o2) {
return o2.getCheckInDate().compareTo(o1.getCheckInDate());
}
});
getTravellers(arrayList);
}
else
{
empty.setVisibility(View.VISIBLE);
}
}else{
empty.setVisibility(View.VISIBLE);
}
}else{
empty.setVisibility(View.VISIBLE);
}
}
@Override
public void onFailure(Call<ArrayList<RoomBookings>> call, Throwable t) {
if(dialog != null)
{
dialog.dismiss();
}
empty.setVisibility(View.VISIBLE);
}
});
}
});
}
private void getTravellers(final ArrayList<RoomBookings> body) {
travellerArrayList = new ArrayList<>();
if(body.size() != 0)
{
final ProgressDialog dialog = new ProgressDialog(getActivity());
dialog.setTitle(R.string.loader_message);
dialog.setCancelable(false);
dialog.show();
for (int i = 0;i<body.size();i++)
{
String auth_string = Util.getToken(getActivity());//"Basic " + Base64.encodeToString(authentication.getBytes(), Base64.NO_WRAP);
TravellerAPI travellerApi = Util.getClient().create(TravellerAPI.class);
Call<Traveller> getTraveller = travellerApi.getTravellerDetails(auth_string,body.get(i).getTravellerId());
getTraveller.enqueue(new Callback<Traveller>() {
@Override
public void onResponse(Call<Traveller> call, Response<Traveller> response) {
if(response.code() == 200)
{
if(response.body() != null)
{
travellerArrayList.add(response.body());
if(body.size() == travellerArrayList.size())
{
empty.setVisibility(View.GONE);
BookingRecyclerViewAdapter bookingRecyclerViewAdapter = new BookingRecyclerViewAdapter(getActivity(),body,travellerArrayList);
recyclerView.setAdapter(bookingRecyclerViewAdapter);
}
}
}
else
{
Toast.makeText(getActivity(),"Please try after some time",Toast.LENGTH_SHORT).show();
}
}
@Override
public void onFailure(Call<Traveller> call, Throwable t) {
}
});
}
if(dialog != null)
{
dialog.dismiss();
}
}
else
{
}
}
}
|
[
"nishar@zingohotels.com"
] |
nishar@zingohotels.com
|
ece6c30cc12ffcc9833ffa50b7946bdc4b4c52b4
|
bd61f679b114c128f8b7c12d1e72f4f38d92c71e
|
/src/main/java/io/ebean/typequery/PFloat.java
|
29f41a32e36f8c6d0c91ab14051a6eda55751220
|
[
"Apache-2.0"
] |
permissive
|
tobias-/ebean-querybean
|
6e626e19576be1252ad98a1272d442d87ae4f176
|
2e12ff95a6259daa20c527f033d503aca19c6d2d
|
refs/heads/master
| 2022-12-25T05:46:02.113122
| 2020-09-17T12:12:15
| 2020-09-17T12:12:15
| 301,950,023
| 0
| 0
|
Apache-2.0
| 2020-10-07T12:21:59
| 2020-10-07T06:45:53
| null |
UTF-8
|
Java
| false
| false
| 517
|
java
|
package io.ebean.typequery;
/**
* Float property.
*
* @param <R> the root query bean type
*/
public class PFloat<R> extends PBaseNumber<R,Float> {
/**
* Construct with a property name and root instance.
*
* @param name property name
* @param root the root query bean instance
*/
public PFloat(String name, R root) {
super(name, root);
}
/**
* Construct with additional path prefix.
*/
public PFloat(String name, R root, String prefix) {
super(name, root, prefix);
}
}
|
[
"robin.bygrave@gmail.com"
] |
robin.bygrave@gmail.com
|
82de3b57b703b7f7dafc8af82089c24f521af4e4
|
f20a338b4eb35f7351545198300424e8973f740f
|
/src/main/java/com/timer/ISpokesmanOfGod.java
|
90dbfbd3302a3d4c3ee1f56e44008f84b3163790
|
[] |
no_license
|
Ariescat/common-timer
|
09ba68092e93dc3f190815088f0b994633942a63
|
1f31f1145e573236cc464e37c9d9afe65ee465e7
|
refs/heads/master
| 2023-06-19T06:48:27.952226
| 2021-07-18T13:50:08
| 2021-07-18T13:50:08
| 219,464,195
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 511
|
java
|
/*****************************
* Copyright 2018 360游戏艺术*
* **************************/
package com.timer;
/***
* 神的代言人,我是来接受上帝的委托,执行任务的
*
*/
public interface ISpokesmanOfGod extends Runnable {
/** 停止运行 */
public void stop();
/** 是否还在运行 */
public boolean isRunning();
/** 是否是常驻服务 */
public boolean isService();
/** 服务名字 */
public String getName();
/** 执行前的初始化 */
public void init();
}
|
[
"1275563227@qq.com"
] |
1275563227@qq.com
|
0c6a5b9bb7a5524812cd126ca9bc32e59ae13032
|
be2880dc353bb3cd3426cf057583dbac8f6728b7
|
/org.nullbool.osgi.shell.api/src/main/java/org/nullbool/osgi/shell/api/ICommandHandler.java
|
9f4c726b9a202978385dbc2338f7c0717b7201b4
|
[] |
no_license
|
t81lal/pi-rs-osgi
|
db9c412732cc57b07150ced1d1da16f3568d9775
|
1b68cca1aab10406e05fee494e2c497be4ac7904
|
refs/heads/master
| 2020-11-27T13:51:44.390125
| 2015-08-09T13:15:55
| 2015-08-09T13:15:55
| 229,470,161
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,806
|
java
|
/************************************************************************************
* pi rs - a generic framework for loading Java Applets in a contained environment. *
* Copyright (C) 2015 NullBool *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
************************************************************************************/
package org.nullbool.osgi.shell.api;
import java.io.InputStream;
import java.io.PrintStream;
/**
* @author Bibl (don't ban me pls)
* @created 14 Jun 2015 00:01:26
*/
public abstract interface ICommandHandler {
public abstract void execute(Shell shell, String args, InputStream in, PrintStream out, PrintStream err) throws Throwable;
}
|
[
"GenerallyCool@hotmail.com"
] |
GenerallyCool@hotmail.com
|
5712f3f641328c011fafca77c03dbd344228d6c8
|
e9045e5fa2457a301fa0401d040b0aafb218f9ad
|
/src/edu/stanford/smi/protegex/owl/model/event/ProtegeClsListener.java
|
17a268761b8fd7fe804c7c9bb9c4b8bd468c5897
|
[] |
no_license
|
ubbdst/protege-owl-plugin
|
8441c5b3c04b37d6e76227c206a4ce9953d65992
|
55bf58bbeea18349581aae8883da25587b0adb6a
|
refs/heads/master
| 2021-06-05T11:38:14.123125
| 2019-04-03T10:59:21
| 2019-04-03T10:59:21
| 83,047,190
| 1
| 0
| null | 2019-04-03T10:47:48
| 2017-02-24T14:04:41
|
Java
|
UTF-8
|
Java
| false
| false
| 2,990
|
java
|
/*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific language governing rights and limitations under the License.
*
* The Original Code is Protege-2000.
*
* The Initial Developer of the Original Code is Stanford University. Portions
* created by Stanford University are Copyright (C) 2007. All Rights Reserved.
*
* Protege was developed by Stanford Medical Informatics
* (http://www.smi.stanford.edu) at the Stanford University School of Medicine
* with support from the National Library of Medicine, the National Science
* Foundation, and the Defense Advanced Research Projects Agency. Current
* information about Protege can be obtained at http://protege.stanford.edu.
*
*/
package edu.stanford.smi.protegex.owl.model.event;
import edu.stanford.smi.protege.event.ClsEvent;
import edu.stanford.smi.protege.event.ClsListener;
/**
* @author Holger Knublauch <holger@knublauch.com>
*/
public interface ProtegeClsListener extends ClsListener {
/**
* @see ClassListener#instanceAdded
* @deprecated
*/
void directInstanceAdded(ClsEvent event);
/**
* @see ClassListener#instanceRemoved
* @deprecated
*/
void directInstanceRemoved(ClsEvent event);
/**
* @see ClassListener#subclassAdded
* @deprecated
*/
void directSubclassAdded(ClsEvent event);
/**
* @deprecated not supported by OWL
*/
void directSubclassMoved(ClsEvent event);
/**
* @see ClassListener#subclassRemoved
* @deprecated
*/
void directSubclassRemoved(ClsEvent event);
/**
* @see ClassListener#superclassAdded
* @deprecated
*/
void directSuperclassAdded(ClsEvent event);
/**
* @see ClassListener#subclassRemoved
* @deprecated
*/
void directSuperclassRemoved(ClsEvent event);
/**
* @deprecated no OWL equivalent
*/
void templateFacetAdded(ClsEvent event);
/**
* @deprecated no OWL equivalent
*/
void templateFacetRemoved(ClsEvent event);
/**
* @deprecated no OWL equivalent
*/
void templateFacetValueChanged(ClsEvent event);
/**
* @see ClassListener#addedToUnionDomainOf
* @deprecated
*/
void templateSlotAdded(ClsEvent event);
/**
* @see ClassListener#removedFromUnionDomainOf
* @deprecated
*/
void templateSlotRemoved(ClsEvent event);
/**
* @deprecated no OWL equivalent
*/
void templateSlotValueChanged(ClsEvent event);
}
|
[
"hru066@ubbhf0225453.klientdrift.uib.no"
] |
hru066@ubbhf0225453.klientdrift.uib.no
|
2d3c5ebefee11e004ed53aa16dbebfb3508006f0
|
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
|
/google/cloud/datalabeling/v1beta1/google-cloud-datalabeling-v1beta1-java/proto-google-cloud-datalabeling-v1beta1-java/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java
|
a959b823ac352125bc37166cb853129553cbe095
|
[
"Apache-2.0"
] |
permissive
|
oltoco/googleapis-gen
|
bf40cfad61b4217aca07068bd4922a86e3bbd2d5
|
00ca50bdde80906d6f62314ef4f7630b8cdb6e15
|
refs/heads/master
| 2023-07-17T22:11:47.848185
| 2021-08-29T20:39:47
| 2021-08-29T20:39:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| true
| 852
|
java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/datalabeling/v1beta1/dataset.proto
package com.google.cloud.datalabeling.v1beta1;
public interface GcsFolderDestinationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GcsFolderDestination)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Required. Cloud Storage directory to export data to.
* </pre>
*
* <code>string output_folder_uri = 1;</code>
* @return The outputFolderUri.
*/
java.lang.String getOutputFolderUri();
/**
* <pre>
* Required. Cloud Storage directory to export data to.
* </pre>
*
* <code>string output_folder_uri = 1;</code>
* @return The bytes for outputFolderUri.
*/
com.google.protobuf.ByteString
getOutputFolderUriBytes();
}
|
[
"bazel-bot-development[bot]@users.noreply.github.com"
] |
bazel-bot-development[bot]@users.noreply.github.com
|
35ba5949aaeb0bc9a703f95ceae8a5f464689b39
|
6cd22ce8aadd4d58af83db29c15946baf1ffebf8
|
/src/main/java/com/shubham/algorithms/problems/ExpressionAddOperators.java
|
c155f2bf1b162d5ae3ad8590ab34e4b58ae684b4
|
[] |
no_license
|
shubhm-agrwl/dataStructures-algorithms
|
b095ab3a297f565c27fdb12af5d8c468384ef09d
|
726631159746d79a54e72a19c8cccd49e64fc821
|
refs/heads/master
| 2021-06-23T09:28:51.828025
| 2021-06-15T23:04:53
| 2021-06-15T23:04:53
| 225,211,919
| 1
| 0
| null | 2020-10-13T17:53:17
| 2019-12-01T18:53:23
|
Java
|
UTF-8
|
Java
| false
| false
| 2,349
|
java
|
package com.shubham.algorithms.problems;
import java.util.ArrayList;
import java.util.List;
public class ExpressionAddOperators {
public ArrayList<String> answer;
public String digits;
public long target;
public void recurse(
int index, long previousOperand, long currentOperand, long value, ArrayList<String> ops) {
String nums = this.digits;
// Done processing all the digits in num
if (index == nums.length()) {
// If the final value == target expected AND
// no operand is left unprocessed
if (value == this.target && currentOperand == 0) {
StringBuilder sb = new StringBuilder();
ops.subList(1, ops.size()).forEach(v -> sb.append(v));
this.answer.add(sb.toString());
}
return;
}
// Extending the current operand by one digit
currentOperand = currentOperand * 10 + Character.getNumericValue(nums.charAt(index));
String current_val_rep = Long.toString(currentOperand);
int length = nums.length();
// To avoid cases where we have 1 + 05 or 1 * 05 since 05 won't be a
// valid operand. Hence this check
if (currentOperand > 0) {
// NO OP recursion
recurse(index + 1, previousOperand, currentOperand, value, ops);
}
// ADDITION
ops.add("+");
ops.add(current_val_rep);
recurse(index + 1, currentOperand, 0, value + currentOperand, ops);
ops.remove(ops.size() - 1);
ops.remove(ops.size() - 1);
if (ops.size() > 0) {
// SUBTRACTION
ops.add("-");
ops.add(current_val_rep);
recurse(index + 1, -currentOperand, 0, value - currentOperand, ops);
ops.remove(ops.size() - 1);
ops.remove(ops.size() - 1);
// MULTIPLICATION
ops.add("*");
ops.add(current_val_rep);
recurse(
index + 1,
currentOperand * previousOperand,
0,
value - previousOperand + (currentOperand * previousOperand),
ops);
ops.remove(ops.size() - 1);
ops.remove(ops.size() - 1);
}
}
public List<String> addOperators(String num, int target) {
if (num.length() == 0) {
return new ArrayList<String>();
}
this.target = target;
this.digits = num;
this.answer = new ArrayList<String>();
this.recurse(0, 0, 0, 0, new ArrayList<String>());
return this.answer;
}
}
|
[
"agrawalshubham1103@gmail.com"
] |
agrawalshubham1103@gmail.com
|
e1bb4abd337c3370a58415bbd3c67fcc90759c47
|
98613747055b7259b10396db5598886f4b643697
|
/org/bouncycastle/asn1/BERTags.java
|
6ecc3a6c569a6a94d69e56a1d864a7dd425f9f8c
|
[] |
no_license
|
welljsjs/jap_source
|
951104e2de49498cecf3029066e139658647a7b4
|
502ace868c62ed0ead9fd798f1bfe7bbdcdfeb82
|
refs/heads/master
| 2023-03-20T21:46:03.715948
| 2021-03-12T11:04:30
| 2021-03-12T11:13:52
| 347,038,436
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,372
|
java
|
/*
* Decompiled with CFR 0.150.
*/
package org.bouncycastle.asn1;
public interface BERTags {
public static final int BOOLEAN = 1;
public static final int INTEGER = 2;
public static final int BIT_STRING = 3;
public static final int OCTET_STRING = 4;
public static final int NULL = 5;
public static final int OBJECT_IDENTIFIER = 6;
public static final int EXTERNAL = 8;
public static final int ENUMERATED = 10;
public static final int SEQUENCE = 16;
public static final int SEQUENCE_OF = 16;
public static final int SET = 17;
public static final int SET_OF = 17;
public static final int NUMERIC_STRING = 18;
public static final int PRINTABLE_STRING = 19;
public static final int T61_STRING = 20;
public static final int VIDEOTEX_STRING = 21;
public static final int IA5_STRING = 22;
public static final int UTC_TIME = 23;
public static final int GENERALIZED_TIME = 24;
public static final int GRAPHIC_STRING = 25;
public static final int VISIBLE_STRING = 26;
public static final int GENERAL_STRING = 27;
public static final int UNIVERSAL_STRING = 28;
public static final int BMP_STRING = 30;
public static final int UTF8_STRING = 12;
public static final int CONSTRUCTED = 32;
public static final int APPLICATION = 64;
public static final int TAGGED = 128;
}
|
[
"25301977+welljsjs@users.noreply.github.com"
] |
25301977+welljsjs@users.noreply.github.com
|
e27a013828f5137f6eec9921318e6742f990e471
|
1f6005ea4629810ae1da30e39f1f23034f58a9f9
|
/02_adapter/2/PrintBanner.java
|
db669787f75e5380c495b38adc029194ae1d978d
|
[] |
no_license
|
KimiyukiYamauchi/DesignPattern.2018
|
78aefb509f2241b3c422515579b570258f42b5a6
|
7a68534f505edbf3f21b2c43cef346043bbb66bb
|
refs/heads/master
| 2020-04-01T20:32:37.878687
| 2019-07-17T08:13:42
| 2019-07-17T08:13:42
| 153,608,593
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 323
|
java
|
public class PrintBanner extends Print{
private Banner banner;
public PrintBanner(String string) {
this.banner = new Banner(string);
}
@Override
public void printWeak() {
banner.showWithParen();
}
@Override
public void printStrong() {
banner.showWithAster();
}
}
|
[
"yamauchi@std.it-college.ac.jp"
] |
yamauchi@std.it-college.ac.jp
|
b19ba36df7bf9bcdfd8aa57b16b17fb33da81fff
|
23d114389ed0e3d0b9f1dec7e61c8a745e744e5b
|
/jwr/src/com/wr4/service/IPnApplyAccepService.java
|
9a723b66075d1f42e38cd12422a162b379a6619e
|
[] |
no_license
|
shanghaif/jwr
|
3c6c7b01e7a1ab56129055735aba6e8ac9811138
|
355db3d25e15a17606842221fa67bdd1471b21cc
|
refs/heads/master
| 2023-03-16T01:36:24.243834
| 2019-05-26T10:00:51
| 2019-05-26T10:00:51
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 366
|
java
|
package com.wr4.service;
import java.util.List;
import java.util.Map;
public interface IPnApplyAccepService {
public abstract List pnApplyAccept(String sqlId, Map map) throws Exception;
public List pnApplyAccept(String sqlId,Map map,int offset,int limit) throws Exception;
public abstract List applyAcceptGetTrain(String string, Map map) throws Exception;
}
|
[
"864867103@qq.com"
] |
864867103@qq.com
|
fb348d077d2f8489b6ae5a32d1b05d4fa26daf75
|
c8688db388a2c5ac494447bac90d44b34fa4132c
|
/sources/com/google/android/gms/measurement/internal/C3170z7.java
|
f38778a205b6d18a697e0e910261436d775ce648
|
[] |
no_license
|
mred312/apk-source
|
98dacfda41848e508a0c9db2c395fec1ae33afa1
|
d3ca7c46cb8bf701703468ddc88f25ba4fb9d975
|
refs/heads/master
| 2023-03-06T05:53:50.863721
| 2021-02-23T13:34:20
| 2021-02-23T13:34:20
| 341,481,669
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,006
|
java
|
package com.google.android.gms.measurement.internal;
import com.google.android.gms.internal.measurement.zzw;
/* renamed from: com.google.android.gms.measurement.internal.z7 */
/* compiled from: com.google.android.gms:play-services-measurement-sdk@@17.6.0 */
final class C3170z7 implements Runnable {
/* renamed from: a */
private final /* synthetic */ zzw f18484a;
/* renamed from: b */
private final /* synthetic */ String f18485b;
/* renamed from: c */
private final /* synthetic */ String f18486c;
/* renamed from: d */
private final /* synthetic */ AppMeasurementDynamiteService f18487d;
C3170z7(AppMeasurementDynamiteService appMeasurementDynamiteService, zzw zzw, String str, String str2) {
this.f18487d = appMeasurementDynamiteService;
this.f18484a = zzw;
this.f18485b = str;
this.f18486c = str2;
}
public final void run() {
this.f18487d.f17925a.zzv().zza(this.f18484a, this.f18485b, this.f18486c);
}
}
|
[
"mred312@gmail.com"
] |
mred312@gmail.com
|
ee9575231332de5b1e69c4776ce11e3ee63c26fd
|
08ba9223323660c36913696d32f15497e50f06de
|
/src/core-metadata/src/test/java/org/apache/kylin/metadata/cube/cuboid/CuboidSchedulerTest.java
|
23c32c1abe63a216fbc7a5e7099b085d63fcaa30
|
[
"Apache-2.0"
] |
permissive
|
hit-lacus/kylin
|
9d50478e38829dd99dcc7d5c4fb54c05b6ec1385
|
ceea0e04320f933bbc391e29a6c5f0c7a3449abb
|
refs/heads/kylin5
| 2023-08-07T17:17:20.722924
| 2022-09-06T08:27:33
| 2022-09-06T08:27:33
| 149,539,687
| 2
| 2
|
Apache-2.0
| 2023-04-21T20:47:29
| 2018-09-20T02:28:18
|
Java
|
UTF-8
|
Java
| false
| false
| 6,358
|
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.kylin.metadata.cube.cuboid;
import java.io.IOException;
import org.apache.kylin.common.util.JsonUtil;
import org.apache.kylin.common.util.NLocalFileMetadataTestCase;
import org.apache.kylin.metadata.cube.model.IndexEntity;
import org.apache.kylin.metadata.cube.model.IndexPlan;
import org.apache.kylin.metadata.cube.model.NIndexPlanManager;
import org.apache.kylin.metadata.cube.model.RuleBasedIndex;
import org.apache.kylin.metadata.model.NDataModelManager;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.google.common.collect.Lists;
import lombok.val;
public class CuboidSchedulerTest extends NLocalFileMetadataTestCase {
public static final String DEFAULT_PROJECT = "default";
@Before
public void setUp() throws Exception {
this.createTestMetadata();
}
@After
public void after() throws Exception {
this.cleanupTestMetadata();
}
@Test
public void test2403_dimCap3() throws IOException {
IndexPlan cube = utCube("2.1.0.20403", 3);
{
NAggregationGroup agg = cube.getRuleBasedIndex().getAggregationGroups().get(0);
val set = cube.getRuleBasedIndex().getCuboidScheduler().calculateCuboidsForAggGroup(agg);
//KapCuboidScheduler2403.debugPrint(set, "agg1 result");
Assert.assertEquals(19, set.size());
}
{
NAggregationGroup agg = cube.getRuleBasedIndex().getAggregationGroups().get(1);
val set = cube.getRuleBasedIndex().getCuboidScheduler().calculateCuboidsForAggGroup(agg);
//KapCuboidScheduler2403.debugPrint(set, "agg2 result");
Assert.assertEquals(15, set.size());
}
{
val set = cube.getRuleBasedIndex().getCuboidScheduler().getAllColOrders();
//KapCuboidScheduler2403.debugPrint(set, "all result");
Assert.assertEquals(31, set.size());
}
}
@Test
public void test2403_dimCap2() throws IOException {
IndexPlan cube = utCube("2.1.0.20403", 2);
{
NAggregationGroup agg = cube.getRuleBasedIndex().getAggregationGroups().get(0);
val set = cube.getRuleBasedIndex().getCuboidScheduler().calculateCuboidsForAggGroup(agg);
//KapCuboidScheduler2403.debugPrint(set, "agg1 result");
Assert.assertEquals(15, set.size());
}
{
NAggregationGroup agg = cube.getRuleBasedIndex().getAggregationGroups().get(1);
val set = cube.getRuleBasedIndex().getCuboidScheduler().calculateCuboidsForAggGroup(agg);
//KapCuboidScheduler2403.debugPrint(set, "agg2 result");
Assert.assertEquals(11, set.size());
}
{
val set = cube.getRuleBasedIndex().getCuboidScheduler().getAllColOrders();
//KapCuboidScheduler2403.debugPrint(set, "all result");
Assert.assertEquals(24, set.size());
}
}
@Test
public void test2403_dimCap1() throws IOException {
IndexPlan cube = utCube("2.1.0.20403", 1);
{
NAggregationGroup agg = cube.getRuleBasedIndex().getAggregationGroups().get(0);
val set = cube.getRuleBasedIndex().getCuboidScheduler().calculateCuboidsForAggGroup(agg);
//KapCuboidScheduler2403.debugPrint(set, "agg1 result");
Assert.assertEquals(6, set.size());
}
{
NAggregationGroup agg = cube.getRuleBasedIndex().getAggregationGroups().get(1);
val set = cube.getRuleBasedIndex().getCuboidScheduler().calculateCuboidsForAggGroup(agg);
//KapCuboidScheduler2403.debugPrint(set, "agg2 result");
Assert.assertEquals(5, set.size());
}
{
val set = cube.getRuleBasedIndex().getCuboidScheduler().getAllColOrders();
//KapCuboidScheduler2403.debugPrint(set, "all result");
Assert.assertEquals(11, set.size());
}
}
@Test
public void testMaskIsZero() throws IOException {
val mgr = NIndexPlanManager.getInstance(getTestConfig(), DEFAULT_PROJECT);
val modelMgr = NDataModelManager.getInstance(getTestConfig(), DEFAULT_PROJECT);
IndexPlan cube = mgr.getIndexPlan("82fa7671-a935-45f5-8779-85703601f49a");
cube = JsonUtil.deepCopy(cube, IndexPlan.class);
cube.setIndexes(Lists.<IndexEntity> newArrayList());
cube.initAfterReload(getTestConfig(), DEFAULT_PROJECT);
val rule = new RuleBasedIndex();
rule.setDimensions(Lists.<Integer> newArrayList());
rule.setMeasures(Lists.<Integer> newArrayList());
rule.setIndexPlan(cube);
cube.setRuleBasedIndex(rule);
val scheduler = (KECuboidSchedulerV1) cube.getRuleBasedIndex().getCuboidScheduler();
Assert.assertEquals(0, scheduler.getAllColOrders().size());
}
private IndexPlan utCube(String resetVer, Integer resetDimCap) throws IOException {
NIndexPlanManager mgr = NIndexPlanManager.getInstance(getTestConfig(), DEFAULT_PROJECT);
IndexPlan cube = mgr.getIndexPlan("82fa7671-a935-45f5-8779-85703601f49a");
cube = JsonUtil.deepCopy(cube, IndexPlan.class);
cube.setVersion(resetVer);
if (resetDimCap != null) {
for (NAggregationGroup g : cube.getRuleBasedIndex().getAggregationGroups())
g.getSelectRule().dimCap = resetDimCap;
}
cube.initAfterReload(getTestConfig(), DEFAULT_PROJECT);
return cube;
}
}
|
[
"xxyu@apache.org"
] |
xxyu@apache.org
|
94475afe539a8bf3a7d72eac50ff2529e16595d1
|
d92a84e690532743553d358271e49ec9a2f58b40
|
/internet-core/src/main/java/com/internet/cms/model/search/DocRecord.java
|
982b184da6481d84b9f619f9f3fcfb2a3e5dabab
|
[] |
no_license
|
zengzebin/radar
|
cc49ec01c273ad388d9d964afe1c8cbb77823a8e
|
f8787061619cff65e4a73dbec749fefff8baba4c
|
refs/heads/master
| 2020-03-17T16:25:36.214902
| 2018-05-17T02:47:26
| 2018-05-17T02:47:26
| 133,748,183
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 700
|
java
|
package com.internet.cms.model.search;
/**
* 文档实体类
*
* @author Administrator
*
*/
public class DocRecord {
private int id;
private String fileName;
private String docType;
private long lastModify;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public String getDocType() {
return docType;
}
public void setDocType(String docType) {
this.docType = docType;
}
public long getLastModify() {
return lastModify;
}
public void setLastModify(long lastModify) {
this.lastModify = lastModify;
}
}
|
[
"328272526@qq.com"
] |
328272526@qq.com
|
620504c77d64717b9681a9992dcdf093de0e1d57
|
da8f8a78810748e007cc04ab508a0b6918f8e958
|
/app/src/main/java/com/game/helper/net/task/CgametypelistTask.java
|
e8626ce366f914e945cf609f4ed49f06f0188f88
|
[] |
no_license
|
252319634/boluogamespay
|
a803c0d3e81e840c0e3c9c44ad18167dd6e9ea62
|
4c7e4b60703ca3bafd7062fed6e8b3e59732ff28
|
refs/heads/master
| 2021-07-11T04:54:15.311564
| 2017-10-12T18:15:40
| 2017-10-12T18:19:51
| 104,739,840
| 1
| 0
| null | 2017-09-25T11:08:46
| 2017-09-25T11:08:46
| null |
UTF-8
|
Java
| false
| false
| 1,161
|
java
|
package com.game.helper.net.task;
import com.game.helper.net.base.BaseBBXTask;
import com.game.helper.sdk.model.comm.CgametypelistBuild;
import com.game.helper.sdk.net.comm.CgametypelistNet;
import android.content.Context;
/**
* @Description
* @Path com.game.helper.net.task.CgametypelistTask.java
* @Author lbb
* @Date 2016年10月8日 上午10:49:29
* @Company
*/
public class CgametypelistTask extends BaseBBXTask{
CgametypelistBuild build;
public CgametypelistTask(Context context,Back back) {
super(context,false);
this.back=back;
build=new CgametypelistBuild(context, API_cgametypelist_Url);
}
@Override
public void onSuccess(Object object, String msg) {
// TODO Auto-generated method stub
if(back!=null){
back.success(object,msg);
}
}
@Override
public void onFailed(String status, String msg, Object result) {
// TODO Auto-generated method stub
super.onFailed(status, msg, result);
if(back!=null){
back.fail(status, msg, result);
}
}
@Override
protected Object doInBackground(Object... params) {
// TODO Auto-generated method stub
return new CgametypelistNet(context, build.toJson1());
}
}
|
[
"rysq008@gmail.com"
] |
rysq008@gmail.com
|
79b024c2bb7d09abb5a918ec290936379f2f4de8
|
cd802154bdb20c898ca28e8e3545d5719c97672a
|
/src/com/ven/leetcode/june2021/challenge/MinimumNumberofRefuelingStops.java
|
6150c1df487d6125fc3014900117e30bfcdab05f
|
[] |
no_license
|
VenkateshManohar27/Leetcode
|
8aee4476dca5b41dbfc075ba6632d5771a72da26
|
83f1cf8d2949187c6ffc9eb16d56e9446451ceec
|
refs/heads/master
| 2022-02-19T15:21:38.798127
| 2022-02-12T09:36:01
| 2022-02-12T09:36:01
| 200,264,288
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,638
|
java
|
package com.ven.leetcode.june2021.challenge;
import java.util.Comparator;
import java.util.PriorityQueue;
/**
* A car travels from a starting position to a destination which is target miles
* east of the starting position.
*
* Along the way, there are gas stations. Each station[i] represents a gas
* station that is station[i][0] miles east of the starting position, and has
* station[i][1] liters of gas.
*
* The car starts with an infinite tank of gas, which initially has startFuel
* liters of fuel in it. It uses 1 liter of gas per 1 mile that it drives.
*
* When the car reaches a gas station, it may stop and refuel, transferring all
* the gas from the station into the car.
*
* What is the least number of refueling stops the car must make in order to
* reach its destination? If it cannot reach the destination, return -1.
*
* Note that if the car reaches a gas station with 0 fuel left, the car can
* still refuel there. If the car reaches the destination with 0 fuel left, it
* is still considered to have arrived.
*
* Example 1:
*
* Input: target = 1, startFuel = 1, stations = [] Output: 0 Explanation: We can
* reach the target without refueling. Example 2:
*
* Input: target = 100, startFuel = 1, stations = [[10,100]] Output: -1
* Explanation: We can't reach the target (or even the first gas station).
* Example 3:
*
* Input: target = 100, startFuel = 10, stations =
* [[10,60],[20,30],[30,30],[60,40]] Output: 2 Explanation: We start with 10
* liters of fuel. We drive to position 10, expending 10 liters of fuel. We
* refuel from 0 liters to 60 liters of gas. Then, we drive from position 10 to
* position 60 (expending 50 liters of fuel), and refuel from 10 liters to 50
* liters of gas. We then drive to and reach the target. We made 2 refueling
* stops along the way, so we return 2.
*
*
* Note:
*
* 1 <= target, startFuel, stations[i][1] <= 10^9 0 <= stations.length <= 500 0
* < stations[0][0] < stations[1][0] < ... < stations[stations.length-1][0] <
* target
*
* @author Venkatesh Manohar
*
*/
public class MinimumNumberofRefuelingStops {
public int minRefuelStops(int target, int startFuel, int[][] stations) {
PriorityQueue<Integer> pq = new PriorityQueue<>(Comparator.reverseOrder());
int dist = startFuel;
int res = 0;
int i = 0;
while (true) {
while (i < stations.length && stations[i][0] <= dist) {
pq.add(stations[i][1]);
i++;
}
if (dist >= target)
return res;
if (pq.isEmpty())
return -1;
dist += pq.poll();
res++;
}
}
}
|
[
"venkatesh.manohar@gmail.com"
] |
venkatesh.manohar@gmail.com
|
515f3543f5a08efded3e2e60c68efe4b8ca0c3b4
|
756a071626c715a9f9a7381fddf7d28d17105d15
|
/core/src/main/java/hudson/util/io/ReopenableFileOutputStream.java
|
27d53bcfa691278ef614e6d69ba0db84bcd01e2c
|
[
"MIT"
] |
permissive
|
aeris/jenkins
|
11fa1eaabaa580adb4e6fae17b5f1faea58cfb1c
|
c9e3f4fa528c805aa35604e70684a2b8ccfd41f8
|
refs/heads/master
| 2021-01-17T06:57:46.033448
| 2011-03-26T23:02:31
| 2011-03-26T23:03:35
| 1,531,045
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,015
|
java
|
/*
* The MIT License
*
* Copyright (c) 2010, CloudBees, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package hudson.util.io;
import hudson.util.IOException2;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
/**
* {@link OutputStream} that writes to a file.
*
* <p>
* Unlike regular {@link FileOutputStream}, this implementation allows the caller to close,
* and then keep writing.
*
* @author Kohsuke Kawaguchi
*/
public class ReopenableFileOutputStream extends OutputStream {
private final File out;
private OutputStream current;
private boolean appendOnNextOpen = false;
public ReopenableFileOutputStream(File out) {
this.out = out;
}
private synchronized OutputStream current() throws IOException {
if (current==null)
try {
current = new FileOutputStream(out,appendOnNextOpen);
} catch (FileNotFoundException e) {
throw new IOException2("Failed to open "+out,e);
}
return current;
}
@Override
public void write(int b) throws IOException {
current().write(b);
}
@Override
public void write(byte[] b) throws IOException {
current().write(b);
}
@Override
public void write(byte[] b, int off, int len) throws IOException {
current().write(b, off, len);
}
@Override
public void flush() throws IOException {
current().flush();
}
@Override
public synchronized void close() throws IOException {
if (current!=null) {
current.close();
appendOnNextOpen = true;
current = null;
}
}
/**
* In addition to close, ensure that the next "open" would truncate the file.
*/
public synchronized void rewind() throws IOException {
close();
appendOnNextOpen = false;
}
}
|
[
"kk@kohsuke.org"
] |
kk@kohsuke.org
|
081e595ba9977dd64488bf6ff7560df18e4fd0af
|
f86b2e5aec4235de0b1e619c71ed542a2f306483
|
/zuzhili/src/com/zuzhili/model/Item.java
|
05bf74e4d091872e1d869ca8866e60beb95021e1
|
[] |
no_license
|
goo4it/zuzhili_android
|
1ba381eb82ab8f7c4c35fdc6e4c48ce565da8812
|
c8e2f0538bc960f1634598a8da01041d3e381420
|
refs/heads/master
| 2020-12-28T23:16:00.196341
| 2015-03-02T23:28:08
| 2015-03-02T23:28:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 206
|
java
|
package com.zuzhili.model;
public class Item {
public String mTitle;
public int mIconRes;
public Item(String title, int iconRes) {
mTitle = title;
mIconRes = iconRes;
}
}
|
[
"yytodou123@gmail.com"
] |
yytodou123@gmail.com
|
d417941054c38572467a67523538a0783c8979ca
|
ec2b811cf4c24f8412eb0b65e43bc44e315015ef
|
/core/src/main/java/com/dtolabs/rundeck/plugins/jobs/JobChangeListener.java
|
1ff0c7cf3e0bdd2edafe071dd7b69ef70b4f7447
|
[
"Apache-2.0"
] |
permissive
|
cjpetrus/rundeck
|
e6cd2e3f374bcc6af871a9a071b96c5b632494af
|
4df51911cdde6f8393b82073eddb183dde768f1b
|
refs/heads/master
| 2020-05-26T00:38:17.217612
| 2016-07-10T04:41:32
| 2016-07-10T04:41:32
| 62,974,110
| 1
| 0
| null | 2016-07-10T04:41:34
| 2016-07-10T00:04:04
|
Groovy
|
UTF-8
|
Java
| false
| false
| 341
|
java
|
package com.dtolabs.rundeck.plugins.jobs;
import com.dtolabs.rundeck.plugins.scm.JobChangeEvent;
import com.dtolabs.rundeck.plugins.scm.JobSerializer;
/**
* Created by greg on 4/28/15.
*/
public interface JobChangeListener {
public void jobChangeEvent(
JobChangeEvent event,
JobSerializer serializer
);
}
|
[
"greg.schueler@gmail.com"
] |
greg.schueler@gmail.com
|
4f66b0e43b9b8ba0d9fdf70b4d50e17bd0de941e
|
d81829789fcdca5d930cab48aa024a0720e43c88
|
/GameDemo/src/com/atet/tvmarket/entity/GameInfoResp.java
|
8e5b27c724ed2eca43b1c255d267e5b7dba6d94e
|
[] |
no_license
|
clouse/gamedemo
|
e420cd2fc3138628ba31af779893e6f852a8ba21
|
e54a32a6441e9d8b973e40b1b262bf7c6b333468
|
refs/heads/master
| 2021-01-10T13:10:26.880391
| 2015-12-17T06:33:52
| 2015-12-17T06:33:52
| 48,152,894
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 685
|
java
|
package com.atet.tvmarket.entity;
import java.util.List;
import com.atet.tvmarket.entity.dao.GameInfo;
public class GameInfoResp implements AutoType {
private int code;
private int total;
private List<GameInfo> data;
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public List<GameInfo> getData() {
return data;
}
public void setData(List<GameInfo> data) {
this.data = data;
}
public int getTotal() {
return total;
}
public void setTotal(int total) {
this.total = total;
}
@Override
public String toString() {
return "GameInfoResp [code=" + code + ", total=" + total + ", data="
+ data + "]";
}
}
|
[
"clouse@yeah.net"
] |
clouse@yeah.net
|
6664650fda4ec9ada878b4dc22576c204b8224f6
|
f0349ce9bc4b14ec3f21251163b4c2a404959ddf
|
/game2048/src/main/java/leavesc/hello/game2048/activity/MainActivity.java
|
a29f32424099e303cea966667426e87b0b075811
|
[] |
no_license
|
lgq2015/SmallApp
|
6103bd653c5b31f555bb216889f6292f4afa2fc7
|
9b0264ef76d4f5d4649f50c42b4286c927228752
|
refs/heads/master
| 2021-01-15T06:16:27.345124
| 2019-04-04T06:09:18
| 2019-04-04T06:09:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,160
|
java
|
package leavesc.hello.game2048.activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Toast;
import leavesc.hello.game2048.R;
public class MainActivity extends AppCompatActivity {
// 游戏记录
private SharedPreferences gameRecord;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
gameRecord = getSharedPreferences("GameRecord", Context.MODE_PRIVATE);
}
//软件说明
public void explain(View view) {
Intent intent = new Intent(MainActivity.this, ExplainActivity.class);
startActivity(intent);
}
// 4乘4
public void fourRow(View view) {
startActivity(4);
}
// 5乘5
public void fiveRow(View view) {
startActivity(5);
}
// 6乘6
public void sixRow(View view) {
startActivity(6);
}
private void startActivity(int row) {
Intent intent = new Intent(MainActivity.this, GameActivity.class);
intent.putExtra("Row", row);
startActivity(intent);
}
//恢复游戏
public void recoverGame(View view) {
if (gameRecord.contains("Row")) {
Intent intent = new Intent(MainActivity.this, GameActivity.class);
int row = gameRecord.getInt("Row", 4);
if (row == 4) {
intent.putExtra("Row", 4);
} else if (row == 5) {
intent.putExtra("Row", 5);
} else {
intent.putExtra("Row", 6);
}
intent.putExtra("RecoverGame", true);
startActivity(intent);
} else {
Toast.makeText(MainActivity.this, "没有保存记录,来一局新游戏吧", Toast.LENGTH_SHORT).show();
}
}
//设置
public void settings(View view) {
Intent intent = new Intent(MainActivity.this, SettingsActivity.class);
startActivity(intent);
}
}
|
[
"1990724437@qq.com"
] |
1990724437@qq.com
|
51a16c34a05c89d5145998c600772abd145a2d52
|
e977c424543422f49a25695665eb85bfc0700784
|
/benchmark/icse15/956763/buggy-version/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/upgradeTests/Changes10_7.java
|
552c3af53ea5535720b5bfa1aaadd4925c21e7a4
|
[] |
no_license
|
amir9979/pattern-detector-experiment
|
17fcb8934cef379fb96002450d11fac62e002dd3
|
db67691e536e1550245e76d7d1c8dced181df496
|
refs/heads/master
| 2022-02-18T10:24:32.235975
| 2019-09-13T15:42:55
| 2019-09-13T15:42:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,077
|
java
|
/*
Derby - Class org.apache.derbyTesting.functionTests.tests.upgradeTests.Changes10_7
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.derbyTesting.functionTests.tests.upgradeTests;
import org.apache.derbyTesting.junit.SupportFilesSetup;
import org.apache.derbyTesting.junit.JDBCDataSource;
import java.lang.reflect.Method;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Connection;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.sql.DataSource;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.derby.catalog.types.RoutineAliasInfo;
import org.apache.derby.catalog.TypeDescriptor;
import org.apache.derbyTesting.junit.JDBC;
/**
* Upgrade test cases for 10.7.
* If the old version is 10.7 or later then these tests
* will not be run.
* <BR>
10.7 Upgrade issues
<UL>
<LI>BOOLEAN data type support expanded.</LI>
</UL>
*/
public class Changes10_7 extends UpgradeChange
{
///////////////////////////////////////////////////////////////////////////////////
//
// CONSTANTS
//
///////////////////////////////////////////////////////////////////////////////////
private static final String SYNTAX_ERROR = "42X01";
private static final String UPGRADE_REQUIRED = "XCL47";
private static final String GRANT_REVOKE_WITH_LEGACY_ACCESS = "42Z60";
///////////////////////////////////////////////////////////////////////////////////
//
// STATE
//
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
//
// CONSTRUCTOR
//
///////////////////////////////////////////////////////////////////////////////////
public Changes10_7(String name)
{
super(name);
}
///////////////////////////////////////////////////////////////////////////////////
//
// JUnit BEHAVIOR
//
///////////////////////////////////////////////////////////////////////////////////
/**
* Return the suite of tests to test the changes made in 10.7.
* @param phase an integer that indicates the current phase in
* the upgrade test.
* @return the test suite created.
*/
public static Test suite(int phase) {
TestSuite suite = new TestSuite("Upgrade test for 10.7");
suite.addTestSuite(Changes10_7.class);
return new SupportFilesSetup((Test) suite);
}
///////////////////////////////////////////////////////////////////////////////////
//
// TESTS
//
///////////////////////////////////////////////////////////////////////////////////
/**
* Make sure that that database is at level 10.7 in order to enjoy
* extended support for the BOOLEAN datatype.
*/
public void testBoolean() throws SQLException
{
String booleanValuedFunction =
"create function f_4655( a varchar( 100 ) ) returns boolean\n" +
"language java parameter style java no sql deterministic\n" +
"external name 'Z.getBooleanValue'\n";
Statement s = createStatement();
switch ( getPhase() )
{
case PH_CREATE: // create with old version
case PH_POST_SOFT_UPGRADE: // soft-downgrade: boot with old version after soft-upgrade
assertStatementError( SYNTAX_ERROR, s, booleanValuedFunction );
break;
case PH_SOFT_UPGRADE: // boot with new version and soft-upgrade
assertStatementError( UPGRADE_REQUIRED, s, booleanValuedFunction );
break;
case PH_HARD_UPGRADE: // boot with new version and hard-upgrade
s.execute( booleanValuedFunction );
break;
}
s.close();
}
/**
* Make sure that that database is at level 10.7 in order to enjoy
* routines with specified EXTERNAL SECURITY INVOKER or DEFINER.
*/
public void testExternalSecuritySpecification() throws SQLException
{
String functionWithDefinersRights =
"create function f_4551( a varchar( 100 ) ) returns int\n" +
"language java parameter style java reads sql data\n" +
"external security definer\n" +
"external name 'Z.getIntValue'\n";
Statement s = createStatement();
switch ( getPhase() )
{
case PH_CREATE: // create with old version
case PH_POST_SOFT_UPGRADE:
// soft-downgrade: boot with old version after soft-upgrade
assertStatementError(
SYNTAX_ERROR, s, functionWithDefinersRights );
break;
case PH_SOFT_UPGRADE: // boot with new version and soft-upgrade
assertStatementError(
UPGRADE_REQUIRED, s, functionWithDefinersRights );
break;
case PH_HARD_UPGRADE: // boot with new version and hard-upgrade.
// Syntax now accepted and dictionary level ok, but
// sqlAuthorization not enabled (a priori) - expected.
assertStatementError(GRANT_REVOKE_WITH_LEGACY_ACCESS,
s, functionWithDefinersRights );
break;
}
s.close();
}
}
|
[
"durieuxthomas@hotmail.com"
] |
durieuxthomas@hotmail.com
|
2823da34ee37b07ad9667532d508aba90d7fb706
|
76699b4cdaf7ee20bfa7bed558981a6af956209f
|
/server/src/com/qeweb/demo/load/fc/bop/DemoImageBOP_1.java
|
f2e74284addad65a31b64d4d15d5a8a3e46d5460
|
[] |
no_license
|
jdepend/ILF
|
dcc64d01f0d196074b8474ce765c919e292f4c3e
|
20fe443863aadaf5bec958355ca101ef893496a2
|
refs/heads/master
| 2021-01-10T09:02:12.849266
| 2016-04-25T09:02:22
| 2016-04-25T09:02:22
| 51,197,659
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 386
|
java
|
package com.qeweb.demo.load.fc.bop;
import com.qeweb.framework.bc.sysbop.ImageBOP;
public class DemoImageBOP_1 extends ImageBOP {
/**
*
*/
private static final long serialVersionUID = -2443126191152488652L;
@Override
public void init() {
super.init();
setWidth("80");
setHeight("80");
setValue("http://www.baidu.com/img/baidu_sylogo1.gif");
}
}
|
[
"wangdg@neusoft.com"
] |
wangdg@neusoft.com
|
9a36a3af240ec449dc966611cf6e6b19de3a3209
|
21490055641f5c93f6d88e60c00f35157b8b9707
|
/jeonghaejwo/src/main/java/com/jeong/haejwo/Exam.java
|
7f68a9ea34b13e2fc9148809ed0ac64fe6c82049
|
[] |
no_license
|
thingki/thegoodteamproject
|
2106b41d3d02cb775d79a560693dc885e7538425
|
8f04b7b5a60340ec903321715dbf00ddf7ab9dcf
|
refs/heads/master
| 2020-03-13T20:20:42.773636
| 2018-04-27T09:02:23
| 2018-04-27T09:02:23
| 131,272,065
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,586
|
java
|
package com.jeong.haejwo;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import com.google.gson.Gson;
public class Exam {
Gson gson=new Gson();
static String u= "http://api.visitkorea.or.kr/openapi/service/rest/KorService/locationBasedList?serviceKey=peWkmeOBUcoT4b1Oqd7%2FotBYLzAO%2BWBymO82ftCMolY%2Bs9AI1ppnNVO4U9a%2Blhohtj1X38Iy4ENC1ReL1aHKWg%3D%3D&numOfRoews=10&pageNo=1&startPage=1&MobileOS=ETC&MobileApp=AppTest&arrange=A&contenttypeId=15&mapX=127.028900&mapY=37.496243&radius=500&listYN=Y";
public static void main(String[] args) {
URL url = null;
HttpURLConnection conn = null;
String jsonData = "";
BufferedReader br = null;
StringBuffer sb = null;
String returnText = "";
try {
url = new URL(u);
conn = (HttpURLConnection) url.openConnection();
conn.setRequestProperty("Accept", "application/json");
conn.setRequestMethod("GET");
conn.connect();
br = new BufferedReader(new InputStreamReader(conn.getInputStream(), "UTF-8"));
sb = new StringBuffer();
while ((jsonData = br.readLine()) != null) {
sb.append(jsonData);
}
returnText = sb.toString();
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
if (br != null) br.close();
} catch (IOException e) {
e.printStackTrace();
}
}
System.out.println(returnText);
}
}
|
[
"DJA@DJA-PC"
] |
DJA@DJA-PC
|
22664dc3c3d7656be41c65622272e533f1a3974d
|
baee3ef7cc98badf8a87e9f74ddd1a6d70b096b0
|
/.urionlinejudge/src/BEGINNER/Salary.java
|
be102a332c94fe5e4f389afe2e1f7aba67a666fa
|
[] |
no_license
|
groverinho/Java
|
eb4863737888d552ac313e23f0e7e2fd2dc45aa7
|
0b0c612eb03cf27b8310448bcf72da4565be0af6
|
refs/heads/master
| 2021-12-25T11:32:46.222179
| 2021-09-10T22:48:14
| 2021-09-10T22:48:14
| 47,481,887
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 461
|
java
|
package BEGINNER;
import java.util.Scanner;
public class Salary
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
int num = in.nextInt();
int horas = in.nextInt();
double money = in.nextDouble();
double total = horas*money;
/*System.out.println("NUMBER = "+num);
System.out.printf ("SALARY = R$ %.2f", total);*/
System.out.printf("NUMBER = "+num);
System.out.printf("\nSALARY = U$ %.2f\n",total);
}
}
|
[
"grover_ariel@hotmail.com"
] |
grover_ariel@hotmail.com
|
db541f91d8fef6ab26c79b259a6fb8ce33f9ac69
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/3/org/apache/commons/math3/stat/descriptive/moment/VectorialCovariance_getResult_83.java
|
b21dbf9d418fff16f3ced60531f54168e5dbea67
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 575
|
java
|
org apach common math3 stat descript moment
return covari matrix vector
version
vectori covari vectorialcovari serializ
covari matrix
covari matrix
real matrix realmatrix result getresult
dimens sum length
real matrix realmatrix result matrix util matrixutil creat real matrix createrealmatrix dimens dimens
bia correct isbiascorrect
dimens
product sum productssum sum sum
result set entri setentri
result set entri setentri
result
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
315782c66725a348630a4850d37416b66f6b1824
|
896fabf7f0f4a754ad11f816a853f31b4e776927
|
/opera-mini-handler-dex2jar.jar/com/opera/mini/android/notifications/o.java
|
5629a85040cf786da026199e3f232d35f56a0075
|
[] |
no_license
|
messarju/operamin-decompile
|
f7b803daf80620ec476b354d6aaabddb509bc6da
|
418f008602f0d0988cf7ebe2ac1741333ba3df83
|
refs/heads/main
| 2023-07-04T04:48:46.770740
| 2021-08-09T12:13:17
| 2021-08-09T12:04:45
| 394,273,979
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,322
|
java
|
//
// Decompiled by Procyon v0.6-prerelease
//
package com.opera.mini.android.notifications;
import com.opera.mini.android.Browser;
import android.content.Context;
import android.app.NotificationManager;
import android.content.SharedPreferences$Editor;
import com.opera.mini.android.x;
import com.opera.mini.android.events.EventDispatcher;
import android.content.SharedPreferences;
public abstract class o
{
private String B;
private byte C;
private int Code;
protected String I;
protected g J;
protected SharedPreferences Z;
public o(final g j, final SharedPreferences z, final String i, final int code, final String b, final byte c) {
this.Code = code;
this.J = j;
this.Z = z;
this.I = i;
this.B = b;
this.C = c;
EventDispatcher.Z(new p(this, (byte)0));
}
public final byte B() {
return this.C;
}
public final String C() {
return this.I;
}
protected abstract long Code();
protected final void Code(final boolean b) {
x.Code(this.Z.edit().putBoolean(this.I + ":enabled", b));
}
protected void I() {
new StringBuilder("SystemNotification.send(): ").append(this.I);
final Context i = this.J.I();
((NotificationManager)i.getSystemService("notification")).notify(this.I.hashCode(), q.Code(i, "com.opera.mini.android.ACTION_NOTIFICATION:" + this.I, i.getResources().getString(2130968583), i.getResources().getString(this.Code)));
x.Code(this.Z.edit().putInt(this.I + ":PENDING_IMPRESSIONS", this.c() + 1));
if (x.s()) {
this.J.C().Code(this.I, this.J.c());
}
}
public final void a() {
x.Code(this.Z.edit().putInt(this.I + ":PENDING_CLICKS", this.d() + 1));
if (x.s()) {
this.J.C().I(this.I, this.J.c());
}
Browser.Z.Code(this.B);
}
protected final boolean b() {
return this.Z.getBoolean(this.I + ":enabled", false);
}
public final int c() {
return this.Z.getInt(this.I + ":PENDING_IMPRESSIONS", 0);
}
public final int d() {
return this.Z.getInt(this.I + ":PENDING_CLICKS", 0);
}
public final boolean e() {
return this.c() + this.d() > 0;
}
}
|
[
"commit+ghdevapi.up@users.noreply.github.com"
] |
commit+ghdevapi.up@users.noreply.github.com
|
b61d9116d8045ca017bc8a51cf9aabbc2284b053
|
95e944448000c08dd3d6915abb468767c9f29d3c
|
/sources/com/p280ss/android/ugc/aweme/awemeservice/C23137d.java
|
1c76574a3feda4a849ecb823b033b145ce521b29
|
[] |
no_license
|
xrealm/tiktok-src
|
261b1faaf7b39d64bb7cb4106dc1a35963bd6868
|
90f305b5f981d39cfb313d75ab231326c9fca597
|
refs/heads/master
| 2022-11-12T06:43:07.401661
| 2020-07-04T20:21:12
| 2020-07-04T20:21:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,847
|
java
|
package com.p280ss.android.ugc.aweme.awemeservice;
import com.bytedance.jedi.model.p599a.C11750c;
import com.bytedance.jedi.model.p601c.C11786e;
import com.p280ss.android.ugc.aweme.awemeservice.api.IAwemeService;
import com.p280ss.android.ugc.aweme.awemeservice.p1047b.C23134a;
import com.p280ss.android.ugc.aweme.awemeservice.p1047b.C23135b;
import com.p280ss.android.ugc.aweme.feed.model.Aweme;
import java.util.List;
import kotlin.Pair;
import p346io.reactivex.C7492s;
/* renamed from: com.ss.android.ugc.aweme.awemeservice.d */
public final class C23137d implements IAwemeService {
public final C11750c<String, Aweme> getAwemeCache() {
return C23134a.f61064a;
}
public final void clearCache() {
C23133b.m76028a().mo60277b();
}
public final C7492s<List<Pair<String, Aweme>>> observeAwemes() {
return C23135b.m76054b();
}
public final void increaseCommentCount(String str) {
C23133b.m76028a().mo60280c(str);
}
public final C7492s<C11786e<Aweme>> observeAwemeById(String str) {
return C23135b.m76052a(str);
}
public final void setFeedCount(long j) {
C23133b.m76028a().mo60274a(j);
}
public final Aweme getAwemeById(String str) {
return C23133b.m76028a().mo60276b(str);
}
public final Aweme getProfileSelfSeeAweme(String str) {
return C23133b.m76028a().mo60272a(str);
}
public final Aweme getRawAdAwemeByAdId(String str) {
return C23114a.m75956a().mo60229b(str);
}
public final Aweme getRawAdAwemeById(String str) {
return C23114a.m75956a().mo60227a(str);
}
public final Aweme updateAweme(Aweme aweme) {
return C23133b.m76028a().mo60270a(aweme);
}
public final Aweme updateRawAdAweme(Aweme aweme) {
return C23114a.m75956a().mo60226a(aweme);
}
public final void updateCollectStatus(String str, int i) {
C23133b.m76028a().mo60282d(str, i);
}
public final void updateCommentCount(String str, int i) {
C23133b.m76028a().mo60278b(str, i);
}
public final void updateCommentSetting(Aweme aweme, int i) {
C23133b.m76028a();
C23133b.m76030b(aweme, i);
}
public final void updatePreventDownloadType(Aweme aweme, int i) {
C23133b.m76028a();
C23133b.m76032c(aweme, i);
}
public final void updatePublishAwemePromotions(String str, String str2) {
C23133b.m76028a().mo60275a(str, str2);
}
public final void updateUserDigg(String str, int i) {
C23133b.m76028a().mo60281c(str, i);
}
public final Aweme updateProfileSelfSeeAweme(Aweme aweme, int i) {
return C23133b.m76028a().mo60271a(aweme, i);
}
public final Aweme getProfileSelfSeeAweme(String str, int i) {
return C23133b.m76028a().mo60273a(str, i);
}
}
|
[
"65450641+Xyzdesk@users.noreply.github.com"
] |
65450641+Xyzdesk@users.noreply.github.com
|
8c2cef1d31b95a946feea5a6a29915204753c0ad
|
f88937f0954d1f4c5f3bd1b298d54e1d326b1c9a
|
/java/com/baiyi/jj/app/entity/VideoMedieInfo.java
|
c5b3ea78ce84f475c82866bc439d50a0f032d8ac
|
[] |
no_license
|
sixdoor123/mx
|
ff431223d473515f2bf2c24743346deaecec61fd
|
49fe9a1d0ffa7b00351f44753484d8d624b44635
|
refs/heads/master
| 2020-04-23T10:59:55.865339
| 2019-02-22T00:23:37
| 2019-02-22T00:23:37
| 171,121,186
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,999
|
java
|
package com.baiyi.jj.app.entity;
import com.baiyi.core.database.AbstractBaseModel;
public class VideoMedieInfo extends AbstractBaseModel{
private boolean wifi;
private String media_backup_path;
private String cover_img_url;
private String media_remark;
private String media_path;
private String media_type;
private String media_codec;
private int media_width;
private int media_height;
private double media_duration;
public String getMedia_codec() {
return media_codec;
}
public void setMedia_codec(String media_codec) {
this.media_codec = media_codec;
}
public int getMedia_width() {
return media_width;
}
public void setMedia_width(int media_width) {
this.media_width = media_width;
}
public int getMedia_height() {
return media_height;
}
public void setMedia_height(int media_height) {
this.media_height = media_height;
}
public double getMedia_duration() {
return media_duration;
}
public void setMedia_duration(double media_duration) {
this.media_duration = media_duration;
}
public boolean isWifi() {
return wifi;
}
public void setWifi(boolean wifi) {
this.wifi = wifi;
}
public String getMedia_backup_path() {
return media_backup_path;
}
public void setMedia_backup_path(String media_backup_path) {
this.media_backup_path = media_backup_path;
}
public String getCover_img_url() {
return cover_img_url;
}
public void setCover_img_url(String cover_img_url) {
this.cover_img_url = cover_img_url;
}
public String getMedia_remark() {
return media_remark;
}
public void setMedia_remark(String media_remark) {
this.media_remark = media_remark;
}
public String getMedia_path() {
return media_path;
}
public void setMedia_path(String media_path) {
this.media_path = media_path;
}
public String getMedia_type() {
return media_type;
}
public void setMedia_type(String media_type) {
this.media_type = media_type;
}
}
|
[
"sixdoor123"
] |
sixdoor123
|
7ceb92dacf9cb8d85adc4ebaf72af4045b741cca
|
1105eed0dfd8caaf29a3c479d2b910c9738eed1d
|
/ren-automation-tests/src/test/java/com/exigen/ren/modules/policy/gb_dn/master/TestAddNetworkArrangement.java
|
0c16d35e4b8c94c882dde9268e3128a523f1a42d
|
[] |
no_license
|
NandiniDR29/123
|
3123d04b44f2b6c74b6c5c3c1c9c271a8028e520
|
22138c8dd8267270aca05d67a7ae8cec791abb81
|
refs/heads/master
| 2022-12-09T15:01:34.815286
| 2020-09-22T05:26:56
| 2020-09-22T05:26:56
| 297,538,529
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,379
|
java
|
package com.exigen.ren.modules.policy.gb_dn.master;
import com.exigen.istf.data.TestData;
import com.exigen.istf.utils.TestInfo;
import com.exigen.ren.common.enums.NavigationEnum;
import com.exigen.ren.common.pages.NavigationPage;
import com.exigen.ren.main.modules.caseprofile.CaseProfileContext;
import com.exigen.ren.main.modules.customer.CustomerContext;
import com.exigen.ren.main.modules.policy.gb_dn.masterpolicy.GroupDentalMasterPolicyContext;
import com.exigen.ren.main.modules.policy.gb_dn.masterpolicy.metadata.PlanDefinitionTabMetaData;
import com.exigen.ren.modules.BaseTest;
import com.google.common.collect.ImmutableList;
import org.testng.annotations.Test;
import static com.exigen.istf.verification.CustomSoftAssertions.assertSoftly;
import static com.exigen.ren.main.enums.PolicyConstants.PlanDental.ALACARTE;
import static com.exigen.ren.main.enums.PolicyConstants.PlanDental.ASO;
import static com.exigen.ren.main.enums.ValueConstants.VALUE_NO;
import static com.exigen.ren.main.enums.ValueConstants.VALUE_YES;
import static com.exigen.ren.main.modules.policy.gb_dn.masterpolicy.metadata.PlanDefinitionTabMetaData.CO_INSURANCE;
import static com.exigen.ren.main.modules.policy.gb_dn.masterpolicy.metadata.PlanDefinitionTabMetaData.CoInsuranceMetaData.NETWORK_ARRANGEMENT;
import static com.exigen.ren.main.modules.policy.gb_dn.masterpolicy.metadata.PlanDefinitionTabMetaData.CoInsuranceMetaData.UC_PERCENTILE_LEVEL;
import static com.exigen.ren.main.modules.policy.gb_dn.masterpolicy.metadata.PlanDefinitionTabMetaData.PPO_EPO_PLAN;
import static com.exigen.ren.main.modules.policy.gb_dn.masterpolicy.metadata.PolicyInformationTabMetaData.ASO_PLAN;
import static com.exigen.ren.main.modules.policy.gb_dn.masterpolicy.metadata.PolicyInformationTabMetaData.SITUS_STATE;
import static com.exigen.ren.utils.components.Components.POLICY_GROUPBENEFITS;
import static com.exigen.ren.utils.groups.Groups.*;
public class TestAddNetworkArrangement extends BaseTest implements CustomerContext, CaseProfileContext, GroupDentalMasterPolicyContext {
@Test(groups = {GB, GB_PRECONFIGURED, GB_DN, WITHOUT_TS, REGRESSION})
@TestInfo(testCaseId = {"REN-21560", "REN-22484", "REN-22486"}, component = POLICY_GROUPBENEFITS)
public void testAddNetworkArrangement() {
mainApp().open();
createDefaultNonIndividualCustomer();
createDefaultCaseProfile(groupDentalMasterPolicy.getType());
groupDentalMasterPolicy.initiate(getDefaultDNMasterPolicyData());
LOGGER.info("REN-21560 step 01 setting Situs State");
groupDentalMasterPolicy.getDefaultWorkspace().fillUpTo(getDefaultDNMasterPolicyData()
.adjust(TestData.makeKeyPath(policyInformationTab.getClass().getSimpleName(), SITUS_STATE.getLabel()), "NV"), planDefinitionTab.getClass());
assertSoftly(softly -> {
LOGGER.info("REN-21560 step 2 and step 3");
planDefinitionTab.getAssetList().getAsset(PlanDefinitionTabMetaData.PLAN).setValue(ImmutableList.of(ALACARTE));
LOGGER.info("REN-21560 step 4");
softly.assertThat(planDefinitionTab.getAssetList().getAsset(CO_INSURANCE).getAsset(NETWORK_ARRANGEMENT)).isPresent().isDisabled();
LOGGER.info("REN-21560 step 6 and REN-22486 step 1 and step 2");
softly.assertThat(planDefinitionTab.getAssetList().getAsset(PPO_EPO_PLAN)).isPresent().isEnabled().hasValue(VALUE_NO);
planDefinitionTab.getAssetList().getAsset(PlanDefinitionTabMetaData.PPO_EPO_PLAN).setValue(VALUE_YES);
planDefinitionTab.getAssetList().getAsset(CO_INSURANCE).getAsset(UC_PERCENTILE_LEVEL).setValue("PPO Schedule");
softly.assertThat(planDefinitionTab.getAssetList().getAsset(CO_INSURANCE).getAsset(NETWORK_ARRANGEMENT)).hasValue("Renaissance NV Elite MAC Ren OON");
LOGGER.info("REN-21560 step 7");
NavigationPage.toLeftMenuTab(NavigationEnum.GroupBenefitsTab.POLICY_INFORMATION.get());
policyInformationTab.getAssetList().getAsset(SITUS_STATE).setValue("WV");
NavigationPage.PolicyNavigation.leftMenu(NavigationEnum.GroupBenefitsTab.PLAN_DEFINITION.get());
planDefinitionTab.getAssetList().getAsset(PlanDefinitionTabMetaData.PLAN).setValue(ImmutableList.of(ALACARTE));
planDefinitionTab.getAssetList().getAsset(PPO_EPO_PLAN).setValue(VALUE_NO);
planDefinitionTab.getAssetList().getAsset(CO_INSURANCE).getAsset(UC_PERCENTILE_LEVEL).setValue("REN 80th");
softly.assertThat(planDefinitionTab.getAssetList().getAsset(CO_INSURANCE).getAsset(NETWORK_ARRANGEMENT)).hasValue("Renaissance PPO Plus WV (2015)");
LOGGER.info("REN-22484 step 1");
NavigationPage.toLeftMenuTab(NavigationEnum.GroupBenefitsTab.POLICY_INFORMATION.get());
policyInformationTab.getAssetList().getAsset(SITUS_STATE).setValue("AK");
policyInformationTab.getAssetList().getAsset(ASO_PLAN).setValue(VALUE_YES);
LOGGER.info("REN-22484 step 2");
NavigationPage.toLeftMenuTab(NavigationEnum.GroupBenefitsTab.PLAN_DEFINITION.get());
planDefinitionTab.getAssetList().getAsset(PlanDefinitionTabMetaData.PLAN).setValue(ImmutableList.of(ASO));
softly.assertThat(planDefinitionTab.getAssetList().getAsset(PPO_EPO_PLAN)).isDisabled().hasValue(VALUE_NO);
});
}
}
|
[
"NRamachandra@previseit.com"
] |
NRamachandra@previseit.com
|
90985be3117b754e556ca845430fa1ac29bb3f45
|
e36cd1a1ed2b64212e76b03f958ec22eef8cf026
|
/src/thread/shareData/AddRunnable.java
|
6d7cdb99801f1fcea5317f38189328d7399b2b46
|
[
"Apache-2.0"
] |
permissive
|
JDawnF/learning
|
89e9e9679ab81fdd5617501863661ceea93820cc
|
f441127813c7172120b7f25cd7a5a30dbec589e5
|
refs/heads/master
| 2021-06-16T07:42:52.993673
| 2021-03-03T15:17:41
| 2021-03-03T15:17:41
| 167,142,271
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 261
|
java
|
package thread.shareData;
/**
* @program: learning
* @author: baichen
**/
public class AddRunnable implements Runnable {
MyData data;
public AddRunnable(MyData data){
this.data=data;
}
public void run() {
data.add();
}
}
|
[
"335825732@qq.com"
] |
335825732@qq.com
|
0a556cf0a4bb4721d7373d59590305b002a41108
|
ad5b11ce6186ca76bf4098852d34b4a806906b1f
|
/zhao_sheng/src/main/java/com/yfy/app/notice/bean/ContactsGroup.java
|
e1c6e023dc3a08e0121465f14687cfcab042719f
|
[] |
no_license
|
Zhaoxianxv/zhao_sheng1
|
700666c2589529aee9a25597f63cc6a07dcfe78c
|
9fdd9512bf38fcfe4ccbe197034a006a3d053c66
|
refs/heads/master
| 2022-12-14T03:07:48.096666
| 2020-09-06T03:36:17
| 2020-09-06T03:36:17
| 291,885,920
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,867
|
java
|
package com.yfy.app.notice.bean;
import android.os.Parcel;
import android.os.Parcelable;
import com.yfy.final_tag.TagFinal;
import java.util.ArrayList;
import java.util.List;
public class ContactsGroup implements Parcelable {
/**
* depid : 6
* depname : 行政部
*/
private String depid;
private String depname;
private String departid;
private String departname;
private String selectuser;
private List<ChildBean> userinfob;
private List<ChildBean> userinfo;
public String getDepartid() {
return departid;
}
public void setDepartid(String departid) {
this.departid = departid;
}
public String getDepartname() {
return departname;
}
public void setDepartname(String departname) {
this.departname = departname;
}
public String getSelectuser() {
return selectuser;
}
public void setSelectuser(String selectuser) {
this.selectuser = selectuser;
}
public List<ChildBean> getUserinfo() {
return userinfo;
}
public void setUserinfo(List<ChildBean> userinfo) {
this.userinfo = userinfo;
}
public String getDepid() {
return depid;
}
public void setDepid(String depid) {
this.depid = depid;
}
public String getDepname() {
return depname;
}
public void setDepname(String depname) {
this.depname = depname;
}
public List<ChildBean> getUserinfob() {
return userinfob;
}
public void setUserinfob(List<ChildBean> userinfob) {
this.userinfob = userinfob;
}
public ContactsGroup() {
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.depid);
dest.writeString(this.depname);
dest.writeString(this.departid);
dest.writeString(this.departname);
dest.writeString(this.selectuser);
dest.writeTypedList(this.userinfob);
dest.writeTypedList(this.userinfo);
}
protected ContactsGroup(Parcel in) {
this.depid = in.readString();
this.depname = in.readString();
this.departid = in.readString();
this.departname = in.readString();
this.selectuser = in.readString();
this.userinfob = in.createTypedArrayList(ChildBean.CREATOR);
this.userinfo = in.createTypedArrayList(ChildBean.CREATOR);
}
public static final Creator<ContactsGroup> CREATOR = new Creator<ContactsGroup>() {
@Override
public ContactsGroup createFromParcel(Parcel source) {
return new ContactsGroup(source);
}
@Override
public ContactsGroup[] newArray(int size) {
return new ContactsGroup[size];
}
};
}
|
[
"1006584058@qq.com"
] |
1006584058@qq.com
|
10918ccab73d5f06df75229258e98e497b2ccc91
|
b2bca179e41fd4eb20941f85563ab22f417a4fc6
|
/_/examples/pizzamodel/src/main/java/com/packt/masterjbpm6/pizza/model/OrderBOM.java
|
fefa6c1483da546a15491c0666996adb6c548f3c
|
[
"Apache-2.0"
] |
permissive
|
paullewallencom/jbpm6-978-1-7832-8957-8
|
4585078bd04366aee8335f1fa7e3645047a459fa
|
cde5636a2679b3d9522e5cd1993a8d8df894d271
|
refs/heads/main
| 2023-02-05T19:26:57.932792
| 2020-12-30T09:55:52
| 2020-12-30T09:55:52
| 319,479,699
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 550
|
java
|
package com.packt.masterjbpm6.pizza.model;
import java.util.List;
public class OrderBOM extends BoM {
private static final long serialVersionUID = -7299344970651808160L;
private String orderRef = null;
public OrderBOM(String orderRef) {
this.orderRef = orderRef;
}
public void calcBom(List<Pizza> pizzas) {
for (Pizza pizza : pizzas) {
for (Material material : pizza.getType().getAllIngredients()) {
super.addMaterial(material, 1.0);
}
}
}
public String getOrderRef() {
return orderRef;
}
}
|
[
"paullewallencom@users.noreply.github.com"
] |
paullewallencom@users.noreply.github.com
|
c9c995c46776fa0ee36ca20f1a542b93419b97ea
|
8d9293642d3c12f81cc5f930e0147a9d65bd6efb
|
/src/main/java/net/minecraft/client/resources/SkinManager.java
|
fcf40f1e9e30d8055a9670dd22cf09ec293f989c
|
[] |
no_license
|
NicholasBlackburn1/Blackburn-1.17
|
7c086591ac77cf433af248435026cf9275223daa
|
fd960b995b33df75ce61865ba119274d9b0e4704
|
refs/heads/main
| 2022-07-28T03:27:14.736924
| 2021-09-23T15:55:53
| 2021-09-23T15:55:53
| 399,960,376
| 5
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,050
|
java
|
package net.minecraft.client.resources;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Iterables;
import com.google.common.collect.Maps;
import com.google.common.hash.Hashing;
import com.mojang.authlib.GameProfile;
import com.mojang.authlib.minecraft.InsecureTextureException;
import com.mojang.authlib.minecraft.MinecraftProfileTexture;
import com.mojang.authlib.minecraft.MinecraftSessionService;
import com.mojang.authlib.minecraft.MinecraftProfileTexture.Type;
import com.mojang.authlib.properties.Property;
import com.mojang.blaze3d.systems.RenderSystem;
import java.io.File;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.TimeUnit;
import javax.annotation.Nullable;
import net.minecraft.Util;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.texture.AbstractTexture;
import net.minecraft.client.renderer.texture.HttpTexture;
import net.minecraft.client.renderer.texture.MissingTextureAtlasSprite;
import net.minecraft.client.renderer.texture.TextureManager;
import net.minecraft.resources.ResourceLocation;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
@OnlyIn(Dist.CLIENT)
public class SkinManager {
public static final String PROPERTY_TEXTURES = "textures";
private final TextureManager textureManager;
private final File skinsDirectory;
private final MinecraftSessionService sessionService;
private final LoadingCache<String, Map<Type, MinecraftProfileTexture>> insecureSkinCache;
public SkinManager(TextureManager p_118812_, File p_118813_, final MinecraftSessionService p_118814_) {
this.textureManager = p_118812_;
this.skinsDirectory = p_118813_;
this.sessionService = p_118814_;
this.insecureSkinCache = CacheBuilder.newBuilder().expireAfterAccess(15L, TimeUnit.SECONDS).build(new CacheLoader<String, Map<Type, MinecraftProfileTexture>>() {
public Map<Type, MinecraftProfileTexture> load(String p_118853_) {
GameProfile gameprofile = new GameProfile((UUID)null, "dummy_mcdummyface");
gameprofile.getProperties().put("textures", new Property("textures", p_118853_, ""));
try {
return p_118814_.getTextures(gameprofile, false);
} catch (Throwable throwable) {
return ImmutableMap.of();
}
}
});
}
public ResourceLocation registerTexture(MinecraftProfileTexture p_118826_, Type p_118827_) {
return this.registerTexture(p_118826_, p_118827_, (SkinManager.SkinTextureCallback)null);
}
private ResourceLocation registerTexture(MinecraftProfileTexture p_118829_, Type p_118830_, @Nullable SkinManager.SkinTextureCallback p_118831_) {
String s = Hashing.sha1().hashUnencodedChars(p_118829_.getHash()).toString();
ResourceLocation resourcelocation = new ResourceLocation("skins/" + s);
AbstractTexture abstracttexture = this.textureManager.getTexture(resourcelocation, MissingTextureAtlasSprite.getTexture());
if (abstracttexture == MissingTextureAtlasSprite.getTexture()) {
File file1 = new File(this.skinsDirectory, s.length() > 2 ? s.substring(0, 2) : "xx");
File file2 = new File(file1, s);
HttpTexture httptexture = new HttpTexture(file2, p_118829_.getUrl(), DefaultPlayerSkin.getDefaultSkin(), p_118830_ == Type.SKIN, () -> {
if (p_118831_ != null) {
p_118831_.onSkinTextureAvailable(p_118830_, resourcelocation, p_118829_);
}
});
this.textureManager.register(resourcelocation, httptexture);
} else if (p_118831_ != null) {
p_118831_.onSkinTextureAvailable(p_118830_, resourcelocation, p_118829_);
}
return resourcelocation;
}
public void registerSkins(GameProfile p_118818_, SkinManager.SkinTextureCallback p_118819_, boolean p_118820_) {
Runnable runnable = () -> {
Map<Type, MinecraftProfileTexture> map = Maps.newHashMap();
try {
map.putAll(this.sessionService.getTextures(p_118818_, p_118820_));
} catch (InsecureTextureException insecuretextureexception1) {
}
if (map.isEmpty()) {
p_118818_.getProperties().clear();
if (p_118818_.getId().equals(Minecraft.getInstance().getUser().getGameProfile().getId())) {
p_118818_.getProperties().putAll(Minecraft.getInstance().getProfileProperties());
map.putAll(this.sessionService.getTextures(p_118818_, false));
} else {
this.sessionService.fillProfileProperties(p_118818_, p_118820_);
try {
map.putAll(this.sessionService.getTextures(p_118818_, p_118820_));
} catch (InsecureTextureException insecuretextureexception) {
}
}
}
Minecraft.getInstance().execute(() -> {
RenderSystem.recordRenderCall(() -> {
ImmutableList.of(Type.SKIN, Type.CAPE).forEach((p_174848_) -> {
if (map.containsKey(p_174848_)) {
this.registerTexture(map.get(p_174848_), p_174848_, p_118819_);
}
});
});
});
};
Util.backgroundExecutor().execute(runnable);
}
public Map<Type, MinecraftProfileTexture> getInsecureSkinInformation(GameProfile p_118816_) {
Property property = Iterables.getFirst(p_118816_.getProperties().get("textures"), (Property)null);
return (Map<Type, MinecraftProfileTexture>)(property == null ? ImmutableMap.of() : this.insecureSkinCache.getUnchecked(property.getValue()));
}
@OnlyIn(Dist.CLIENT)
public interface SkinTextureCallback {
void onSkinTextureAvailable(Type p_118857_, ResourceLocation p_118858_, MinecraftProfileTexture p_118859_);
}
}
|
[
"nickblackburn02@gmail.com"
] |
nickblackburn02@gmail.com
|
7a34663ff7f251d6e0d905f4c614a9e64e54d94e
|
8ec78e6ae1b611fd6e7d795fb0234f8c282d593e
|
/Engine-EJB/src/test/java/ru/simplgroupp/dao/impl/TestDebtDAO.java
|
cd1c607387c893f882082bb4710285e7d7d4d83c
|
[] |
no_license
|
vo0doO/microcredit
|
96678f7afddd2899ea127281168202e36ee739c0
|
5d16e73674685d32196af33982d922ba0c9a8a59
|
refs/heads/master
| 2021-01-18T22:23:25.182233
| 2016-11-25T09:04:36
| 2016-11-25T09:04:36
| 87,050,783
| 0
| 2
| null | 2017-04-03T07:55:10
| 2017-04-03T07:55:10
| null |
UTF-8
|
Java
| false
| false
| 1,035
|
java
|
package ru.simplgroupp.dao.impl;
import static org.junit.Assert.*;
import java.util.Properties;
import javax.ejb.EJB;
import javax.ejb.embeddable.EJBContainer;
import javax.naming.Context;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import ru.simplgroupp.dao.interfaces.DebtDao;
import ru.simplgroupp.persistence.DebtEntity;
import ru.simplgroupp.util.DatesUtils;
public class TestDebtDAO {
@EJB
DebtDao debtDao;
@Before
public void setUp() throws Exception {
System.setProperty("javax.xml.bind.JAXBContext","com.sun.xml.internal.bind.v2.ContextFactory");
final Properties p = new Properties();
p.load(this.getClass().getResourceAsStream("/test.properties"));
final Context context = EJBContainer.createEJBContainer(p).getContext();
context.bind("inject", this);
}
@Test
public void testFindDebt() {
DebtEntity debt=debtDao.findDebt(13808, 13, new Double(202), 2, DatesUtils.makeDate(2014, 12, 5));
Assert.assertNotNull(debt);
}
}
|
[
"juhnowski@gmail.com"
] |
juhnowski@gmail.com
|
80cce3b428fde7e698f348fa70e5467a30d92df5
|
ff2683777d02413e973ee6af2d71ac1a1cac92d3
|
/src/main/java/com/alipay/api/response/AlipayEcoEduKtBillingSendResponse.java
|
43dca31011d1772230ebae20975f3fbec7d58662
|
[
"Apache-2.0"
] |
permissive
|
weizai118/alipay-sdk-java-all
|
c30407fec93e0b2e780b4870b3a71e9d7c55ed86
|
ec977bf06276e8b16c4b41e4c970caeaf21e100b
|
refs/heads/master
| 2020-05-31T21:01:16.495008
| 2019-05-28T13:14:39
| 2019-05-28T13:14:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 665
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.eco.edu.kt.billing.send response.
*
* @author auto create
* @since 1.0, 2019-03-17 14:44:13
*/
public class AlipayEcoEduKtBillingSendResponse extends AlipayResponse {
private static final long serialVersionUID = 2448178369843275388L;
/**
* 支付宝-中小学-教育缴费的账单号
*/
@ApiField("order_no")
private String orderNo;
public void setOrderNo(String orderNo) {
this.orderNo = orderNo;
}
public String getOrderNo( ) {
return this.orderNo;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
c37bfa0a38c73c93a5ecf29531c50b8b09a8c963
|
a744882fb7cf18944bd6719408e5a9f2f0d6c0dd
|
/sourcecode8/src/java/security/cert/CertificateException.java
|
9b42ad750ebb81944f8cc71d98f082db53e73cd8
|
[
"Apache-2.0"
] |
permissive
|
hanekawasann/learn
|
a39b8d17fd50fa8438baaa5b41fdbe8bd299ab33
|
eef678f1b8e14b7aab966e79a8b5a777cfc7ab14
|
refs/heads/master
| 2022-09-13T02:18:07.127489
| 2020-04-26T07:58:35
| 2020-04-26T07:58:35
| 176,686,231
| 0
| 0
|
Apache-2.0
| 2022-09-01T23:21:38
| 2019-03-20T08:16:05
|
Java
|
UTF-8
|
Java
| false
| false
| 3,297
|
java
|
/*
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package java.security.cert;
import java.security.GeneralSecurityException;
/**
* This exception indicates one of a variety of certificate problems.
*
* @author Hemma Prafullchandra
* @see Certificate
*/
public class CertificateException extends GeneralSecurityException {
private static final long serialVersionUID = 3192535253797119798L;
/**
* Constructs a certificate exception with no detail message. A detail
* message is a String that describes this particular exception.
*/
public CertificateException() {
super();
}
/**
* Constructs a certificate exception with the given detail
* message. A detail message is a String that describes this
* particular exception.
*
* @param msg the detail message.
*/
public CertificateException(String msg) {
super(msg);
}
/**
* Creates a {@code CertificateException} with the specified
* detail message and cause.
*
* @param message the detail message (which is saved for later retrieval
* by the {@link #getMessage()} method).
* @param cause the cause (which is saved for later retrieval by the
* {@link #getCause()} method). (A {@code null} value is permitted,
* and indicates that the cause is nonexistent or unknown.)
* @since 1.5
*/
public CertificateException(String message, Throwable cause) {
super(message, cause);
}
/**
* Creates a {@code CertificateException} with the specified cause
* and a detail message of {@code (cause==null ? null : cause.toString())}
* (which typically contains the class and detail message of
* {@code cause}).
*
* @param cause the cause (which is saved for later retrieval by the
* {@link #getCause()} method). (A {@code null} value is permitted,
* and indicates that the cause is nonexistent or unknown.)
* @since 1.5
*/
public CertificateException(Throwable cause) {
super(cause);
}
}
|
[
"763803382@qq.com"
] |
763803382@qq.com
|
37c0189b358c19fc1da1902f1be39e17dbbd57b2
|
7a4e0dd2c311d636b4a4e020786790929c30085d
|
/BugBuster/app/src/main/java/jp/android/bugsbuster/Number.java
|
ff56b4c4bb7b296259644adefa46e8063a3760bd
|
[] |
no_license
|
Reyurnible/BugBuster
|
439da0c3782b85eb253d95f4d04a9ecb1cd559bf
|
cfefd4ea103f6d854904f1f7d40f159241ffdba6
|
refs/heads/master
| 2020-12-07T15:19:08.521440
| 2015-01-14T07:59:53
| 2015-01-14T07:59:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,834
|
java
|
/**
* �ԍ��̃e�L�X�g�N���X
* @author WISITKARD WILASINEE
* @data 2013/10/10
* @update 22013/10/10 8:00
* WISITKARD WILASINEE
* �K���ɂ������
*/
package jp.android.bugsbuster;
import javax.microedition.khronos.opengles.GL10;
import android.content.Context;
import jp.android.bugsbuster.processing.PImage;
public class Number {
private static final float MAX_FRAME = 16.0f;
private int max_num = 0;
private PImage mNumPolygon[];
private int mPosX = 0;
private int mPosY = 0;
private int mWidth = 0;
private int mHeight = 0;
public Number(int digit)
{
mNumPolygon = new PImage[digit];
max_num = digit;
for(int i=0; i<max_num;i++)
{
mNumPolygon[i] = new PImage();
};
setNumber(0);
setPosition(0,0);
}
public void init(int value, int x, int y)
{
mPosX = x;
mPosY = y;
mWidth = 100;
mHeight = 200;
for(int i=0;i<max_num;i++)
{
mNumPolygon[i].init(0, 0, mWidth, mHeight);
}
setNumber(value);
setPosition(x, y);
}
public void setNumber(int value)
{
float tile = 1/MAX_FRAME;
int digit = 1;
for(int i=max_num-1;i>=0;i--)
{
int num = ( value / digit) % 10;
mNumPolygon[i].image.setTile(tile, 1, num*tile, 0);
digit *= 10;
}
}
public void setPosition(int x, int y)
{
mPosX = x;
mPosY = y;
int offset = (max_num/2)*mWidth;
for(int i=0; i<max_num;i++)
{
mNumPolygon[i].setPosition(mPosX-offset+(i*mWidth), mPosY);
}
}
public void update()
{
}
public void draw(GL10 gl)
{
}
public void loadTexture(GL10 gl, Context context, int id) {
for(int i=0;i<max_num;i++)
{
mNumPolygon[i].loadTexture(gl, context, id);
}
}
}
|
[
"reyurnible@gmail.com"
] |
reyurnible@gmail.com
|
cee19a6e998ac958f5576fa5ef0e97ea09bd2a49
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_981fc2dc0b734ce912f52663d7132adf5949843b/SuperSearch/2_981fc2dc0b734ce912f52663d7132adf5949843b_SuperSearch_s.java
|
1a817b693f40924f82837ac50141d6b369fa7d13
|
[] |
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,532
|
java
|
package org.lvlv.supersearch;
import static android.provider.BaseColumns._ID;
import static org.lvlv.supersearch.Constants.*;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.database.Cursor;
import android.database.sqlite.SQLiteCursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnKeyListener;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.EditText;
import android.widget.SimpleCursorAdapter;
import android.widget.Spinner;
import android.widget.AdapterView.OnItemSelectedListener;
public class SuperSearch extends Activity implements OnClickListener,OnKeyListener, OnItemSelectedListener
{
private Button goButton;
private Spinner location;
private EditText inputText;
private SearchesData searches;
private SharedPreferences settings;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
goButton = (Button) findViewById(R.id.go_button);
location = (Spinner) findViewById(R.id.search_location);
inputText = (EditText) findViewById(R.id.search_input);
goButton.setOnClickListener(this);
location.setOnKeyListener(this);
inputText.setOnKeyListener(this);
location.setOnItemSelectedListener(this);
searches = new SearchesData(this);
SharedPreferences preferences = getSharedPreferences(PREFS_NAME, 0);
if (true){ //!preferences.getBoolean(FIRST_RUN, true)) {
this.startActivityForResult(new Intent(this, WizardActivity.class), REQUEST_EULA);
}
populateFields();
}
@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
}
@Override
protected void onRestoreInstanceState(Bundle inState) {
super.onRestoreInstanceState(inState);
}
@Override
protected void onResume() {
super.onResume();
}
@Override
protected void onStart() {
super.onStart();
setupSearches();
}
private void setupSearches() {
try {
Cursor cursor = getSearches();
String[] from = new String[] { Constants.NAME, Constants.URL };
int[] to = new int[] { R.id.name, R.id.url };
SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.spinnerrow, cursor, from, to );
adapter.setDropDownViewResource(R.layout.spinnerrow);
location.setAdapter(adapter);
} finally {
searches.close();
}
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
MenuItem help = menu.add(R.string.list_menu_help);
help.setIcon(android.R.drawable.ic_menu_help);
help.setIntent(new Intent(SuperSearch.this, HelpActivity.class));
MenuItem settings = menu.add(R.string.manage_label);
settings.setIcon(android.R.drawable.ic_menu_preferences);
settings.setIntent(new Intent(SuperSearch.this, ModifySearches.class));
return true;
}
public void onItemSelected(AdapterView<?> adapterView, View view, int arg2,
long arg3) {
populateFields();
}
private void populateFields() {
SQLiteCursor selection = (SQLiteCursor) location.getSelectedItem();
if (selection != null) {
goButton.setText(selection.getString(3));
}
}
private void doSearch() {
SQLiteCursor selection = (SQLiteCursor) location.getSelectedItem();
if (selection != null) {
Uri uri = Uri.parse(selection.getString(2).replaceAll("%s",
inputText.getText().toString()));
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
}
}
public final static int REQUEST_EULA = 1;
private static String[] FROM = { _ID, NAME, URL, TERM};
private static String ORDER_BY = NAME + " ASC" ;
private Cursor getSearches() {
SQLiteDatabase db = searches.getReadableDatabase();
Cursor cursor = db.query(TABLE_NAME, FROM, null, null, null,
null, ORDER_BY);
startManagingCursor(cursor);
return cursor;
}
public void onClick(View v) {
doSearch();
}
public boolean onKey(View v, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_ENTER) {
doSearch();
return true;
}
return false;
}
public void onNothingSelected(AdapterView<?> arg0) {
// TODO Auto-generated method stub
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
switch(requestCode) {
case REQUEST_EULA:
if(resultCode == Activity.RESULT_OK) {
// yay they agreed, so store that info
searches.addSearch("Answers.com", "http://answers.com/%s", "Search");
searches.addSearch("Google", "http://google.com/search?q=%s", "Search");
searches.addSearch("Wikipedia", "http://en.wikipedia.org/wiki/Special:Search?search=%s", "Search");
searches.addSearch("Merriam-Webster", "http://www.merriam-webster.com/dictionary/%s", "Define");
settings = getSharedPreferences(PREFS_NAME, 0);
SharedPreferences.Editor editor = settings.edit();
editor.putBoolean(FIRST_RUN, false);
editor.commit();
} else {
// user didnt agree, so close
this.finish();
}
break;
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
381add6967b7016338aaf5ab662ec52f907e9483
|
139960e2d7d55e71c15e6a63acb6609e142a2ace
|
/mobile_app1/module1170/src/main/java/module1170packageJava0/Foo155.java
|
38eb0b4f8f5da2ca9a5a2d0abdb25609b6857fce
|
[
"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
| 353
|
java
|
package module1170packageJava0;
import java.lang.Integer;
public class Foo155 {
Integer int0;
Integer int1;
public void foo0() {
new module1170packageJava0.Foo154().foo4();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
}
|
[
"oliviern@uber.com"
] |
oliviern@uber.com
|
73da4fc82c74ac641d2c8a5bb93dfe4f9a5454d8
|
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
|
/aliyun-java-sdk-retailbot/src/main/java/com/aliyuncs/retailbot/model/v20210224/ProcessMessageResponse.java
|
3a7074052f7bec5ca257e8343a0d5c20287ddbba
|
[
"Apache-2.0"
] |
permissive
|
aliyun/aliyun-openapi-java-sdk
|
a263fa08e261f12d45586d1b3ad8a6609bba0e91
|
e19239808ad2298d32dda77db29a6d809e4f7add
|
refs/heads/master
| 2023-09-03T12:28:09.765286
| 2023-09-01T09:03:00
| 2023-09-01T09:03:00
| 39,555,898
| 1,542
| 1,317
|
NOASSERTION
| 2023-09-14T07:27:05
| 2015-07-23T08:41:13
|
Java
|
UTF-8
|
Java
| false
| false
| 1,927
|
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.retailbot.model.v20210224;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.retailbot.transform.v20210224.ProcessMessageResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class ProcessMessageResponse extends AcsResponse {
private String requestId;
private String data;
private Boolean success;
private String code;
private String message;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public String getData() {
return this.data;
}
public void setData(String data) {
this.data = data;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getCode() {
return this.code;
}
public void setCode(String code) {
this.code = code;
}
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
}
@Override
public ProcessMessageResponse getInstance(UnmarshallerContext context) {
return ProcessMessageResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
5088d4283b322a1c7201464d024bf5844ed67293
|
79179e47118e56b0ff13f0a98ab644b59e75c8ea
|
/com/gtu/centraltechfest/workshopEntry/WorkshopFee.java
|
4d2e9d4ca3137fb26530b3c26f86254f5ee3aefd
|
[] |
no_license
|
niketpatel2525/GTU-TechFest
|
7d95f41a2365ef73c13f339d0b6e296bbb1f3cbd
|
3f135e5f2abb44a34f024919dbe4bd0a70d0dfab
|
refs/heads/master
| 2021-01-21T08:08:40.965260
| 2017-02-27T17:55:38
| 2017-02-27T17:55:38
| 83,338,374
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 464
|
java
|
package com.gtu.centraltechfest.workshopEntry;
public class WorkshopFee {
public static final String home_fees_work = "Registration Fees per Participant:Rs. 750";
public static final String mobilemaking_fees_work = "Registration Fees per Participant:Rs. 800";
public static final String oracle_fees_work = "Registration Fees per Participant:Free";
public static final String tallbuilding_fees_work = "Registration Fees per Participant:Rs. 950";
}
|
[
"niketpatel2525@gmail.com"
] |
niketpatel2525@gmail.com
|
6e25b351742969742d333f48a108c7ebff73d98a
|
58da62dfc6e145a3c836a6be8ee11e4b69ff1878
|
/src/main/java/com/alipay/api/response/AlipayBossFncSubaccountBalanceFreezeResponse.java
|
7c0b740f93eb7e00a3ef5c6cb0e05c93eb5cb653
|
[
"Apache-2.0"
] |
permissive
|
zhoujiangzi/alipay-sdk-java-all
|
00ef60ed9501c74d337eb582cdc9606159a49837
|
560d30b6817a590fd9d2c53c3cecac0dca4449b3
|
refs/heads/master
| 2022-12-26T00:27:31.553428
| 2020-09-07T03:39:05
| 2020-09-07T03:39:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 875
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.domain.SubAccountBalanceFreezeResultOpenApiDTO;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.boss.fnc.subaccount.balance.freeze response.
*
* @author auto create
* @since 1.0, 2020-08-31 19:45:14
*/
public class AlipayBossFncSubaccountBalanceFreezeResponse extends AlipayResponse {
private static final long serialVersionUID = 8321813951391639324L;
/**
* 子户余额冻结结果open api数据传输对象
*/
@ApiField("result_set")
private SubAccountBalanceFreezeResultOpenApiDTO resultSet;
public void setResultSet(SubAccountBalanceFreezeResultOpenApiDTO resultSet) {
this.resultSet = resultSet;
}
public SubAccountBalanceFreezeResultOpenApiDTO getResultSet( ) {
return this.resultSet;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
182aef8128e88d624469b6681aade7d5885a9fb9
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithoutLambdasApi21/applicationModule/src/main/java/applicationModulepackageJava14/Foo302.java
|
f9e429f0cd6176d67ba81c95d034b5a60df22c96
|
[] |
no_license
|
NikitaKozlov/generated-project-for-desugaring
|
0bc1443ab3ddc84cd289331c726761585766aea7
|
81506b3711004185070ca4bb9a93482b70011d36
|
refs/heads/master
| 2020-03-20T00:35:06.996525
| 2018-06-12T09:30:37
| 2018-06-12T09:30:37
| 137,049,317
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 348
|
java
|
package applicationModulepackageJava14;
public class Foo302 {
public void foo0() {
new applicationModulepackageJava14.Foo301().foo5();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
d88d099c8a8bee3ebbcb9626dba392ede1e1b6a7
|
7c0d4bbeb65a58e2ae80191258c76960de691390
|
/poc/SpaceWeatherSWD/SpaceWeatherSWD/SpaceWeatherSWD-Backend-Ejb/src/main/java/br/inpe/climaespacial/swd/indexes/BIndexScheduler.java
|
ea2bac59bbd9586fbd2b39b7db0d977c5d79aebf
|
[] |
no_license
|
guilhermebotossi/upmexmples
|
92d53f2a04d4fe53cc0bf8ead0788983d7c28a0a
|
77d90477c85456b223c21e4e9a77f761be4fa861
|
refs/heads/master
| 2022-12-07T12:25:32.599139
| 2019-11-26T23:45:48
| 2019-11-26T23:45:48
| 35,224,927
| 0
| 0
| null | 2022-11-24T09:17:43
| 2015-05-07T14:31:30
|
Java
|
UTF-8
|
Java
| false
| false
| 667
|
java
|
package br.inpe.climaespacial.swd.indexes;
import java.util.concurrent.TimeUnit;
import javax.ejb.AccessTimeout;
import javax.ejb.DependsOn;
import javax.ejb.Schedule;
import javax.ejb.Singleton;
import javax.ejb.Startup;
import javax.inject.Inject;
import br.inpe.climaespacial.swd.indexes.b.services.BIndexService;
@Startup
@Singleton
@DependsOn("DefaultTimeZone")
public class BIndexScheduler {
@Inject
private BIndexService bIndexService;
@AccessTimeout(value = 5, unit = TimeUnit.MINUTES)
@Schedule(hour = "*", minute = "*", second = "20", persistent = false)
public void bIndexCalculate() {
bIndexService.calculate();
}
}
|
[
"guilhermebotossi@gmail.com"
] |
guilhermebotossi@gmail.com
|
84a58b5ea04c34594ddfca46a88920aa0053f584
|
c33b8307aa456d65184173e0fb1113a50f40dbd4
|
/java/testDate/src/cn/bjsxt/test/TestDate.java
|
47101f46e580c316faa58622b475327c3bd7eaec
|
[] |
no_license
|
h5codefans/urlresource
|
9ed1d40fcafa616f7dabbd2424a5206738458b3c
|
163c843c5827f5a236c1f98b97b0c6fd85c79e17
|
refs/heads/master
| 2023-03-26T21:43:51.138430
| 2021-03-28T09:00:55
| 2021-03-28T09:00:55
| 302,877,949
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 493
|
java
|
package cn.bjsxt.test;
import java.util.Date;
/**
* 测试Date的用法
* @author Administrator
*
*/
public class TestDate {
public static void main(String[] args){
Date d=new Date();
long t=System.currentTimeMillis();
System.out.println(t);
Date d2=new Date(1000);
System.out.println(d2.toGMTString()); //不建议使用
d2.setTime(20000);
System.out.println(d2.getTime());
System.out.println(d.getTime()<d2.getTime());
}
}
|
[
"yucx1818@sina.com"
] |
yucx1818@sina.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.