id
stringlengths 36
36
| meta
stringlengths 429
697
| url
stringlengths 27
109
| tokens
int64 137
584
| domain_prefix
stringlengths 16
106
| score
float64 0.16
0.3
| code_content
stringlengths 960
1.25k
|
|---|---|---|---|---|---|---|
11bb06f9-6f53-4e9a-9c65-ce40fd8a7217
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-29 08:20:12", "repo_name": "fanqi1909/csreview", "sub_path": "/leet-code/src/main/java/org/jace/cs/review/lc/multithread/p1115/Tester.java", "file_name": "Tester.java", "file_ext": "java", "file_size_in_byte": 1039, "line_count": 38, "lang": "en", "doc_type": "code", "blob_id": "2b7cd26d3017dff2bd79ffc066e1f87a2b2b4ebf", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/fanqi1909/csreview
| 202
|
FILENAME: Tester.java
| 0.288569
|
package org.jace.cs.review.lc.multithread.p1115;
public class Tester {
private static void testSolution(Solution solution) throws InterruptedException {
ContentPrinter fp = new ContentPrinter("foo");
ContentPrinter bp = new ContentPrinter("bar");
Thread fooThread = new Thread(() -> {
try {
solution.foo(fp);
} catch (Exception e) {
e.printStackTrace();
}
});
Thread barThread = new Thread(() -> {
try {
solution.bar(bp);
} catch (Exception e) {
e.printStackTrace();
}
});
fooThread.start();
barThread.start();
fooThread.join();
barThread.join();
}
public static void main(String[] args) throws Exception{
Solution solution1 = new Solution1(30);
Solution solution2 = new Solution2(30);
testSolution(solution1);
System.out.println();
testSolution(solution2);
}
}
|
7d1ac71a-c2fe-47b2-8381-194ef5efe3da
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-01 12:56:55", "repo_name": "azmedien/kolibri-android", "sub_path": "/prototype/src/main/java/ch/yanova/kolibri/prototype/ProrotypeSplashActivity.java", "file_name": "ProrotypeSplashActivity.java", "file_ext": "java", "file_size_in_byte": 1119, "line_count": 41, "lang": "en", "doc_type": "code", "blob_id": "9d37d6b07439a2ccacefc850ecb74f337be6540b", "star_events_count": 1, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/azmedien/kolibri-android
| 240
|
FILENAME: ProrotypeSplashActivity.java
| 0.284576
|
package ch.yanova.kolibri.prototype;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import ch.yanova.kolibri.Kolibri;
import ch.yanova.kolibri.KolibriSplashActivity;
import ch.yanova.kolibri.RuntimeConfig;
/**
* Created by lekov on 2.10.17.
*/
public final class ProrotypeSplashActivity extends KolibriSplashActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setSplashImage(R.drawable.splash);
}
@Override
protected void onSplashTimedOut() {
final RuntimeConfig config = Kolibri.getInstance(this).getRuntime();
final Class activity = Boolean.TRUE.toString().equals(config.getString("native-navigation").toLowerCase().trim()) ? PrototypeNavigationActivity.class : PrototypeActivity.class;
Intent i = new Intent(ProrotypeSplashActivity.this, activity);
final Intent intent = getIntent();
if (intent != null && intent.hasExtra("url")) {
i.addCategory("notification");
i.putExtras(intent);
}
startActivity(i);
finish();
}
}
|
f6036957-2230-4f56-add5-2bfdabcbb15f
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-03-10 05:24:40", "repo_name": "sonalsharma96/Toolbar", "sub_path": "/app/src/main/java/com/example/sureshkumar/toolbar/Homepage.java", "file_name": "Homepage.java", "file_ext": "java", "file_size_in_byte": 1203, "line_count": 42, "lang": "en", "doc_type": "code", "blob_id": "d7db98e5da81d63256a82aa69d952803056281d1", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/sonalsharma96/Toolbar
| 223
|
FILENAME: Homepage.java
| 0.240775
|
package com.example.sureshkumar.toolbar;
import android.content.Intent;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.EditText;
import static android.R.attr.value;
/**
* Created by SURESH KUMAR on 3/9/2017.
*/
public class Homepage extends AppCompatActivity {
Toolbar toolbar;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.homepage);
toolbar = (Toolbar) findViewById(R.id.bar);
EditText text = (EditText) findViewById(R.id.text);
text.setVisibility(View.INVISIBLE);
}
public void database(View v){
Intent intent=new Intent(this,MainActivity.class);
startActivity(intent);
}
public void camera(View v){
Intent intent=new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT,value);
intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY,1);
startActivity(intent);
}
}
|
871f1967-1a09-4bd0-8483-1e477a1f0086
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-08-26 08:44:30", "repo_name": "qq378488249/VkaGetOrder", "sub_path": "/app/src/main/java/cc/chenghong/vkagetorder/activity/ProgressActivity.java", "file_name": "ProgressActivity.java", "file_ext": "java", "file_size_in_byte": 1169, "line_count": 51, "lang": "en", "doc_type": "code", "blob_id": "df8ce2b4fefad78ef5be494076179e74b8373460", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/qq378488249/VkaGetOrder
| 246
|
FILENAME: ProgressActivity.java
| 0.213377
|
package cc.chenghong.vkagetorder.activity;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import cc.chenghong.vkagetorder.R;
import cc.chenghong.vkagetorder.dialog.ProgressDialog;
/**
* 进度条Activity
* hcl 2016-6-24
*/
public class ProgressActivity extends FragmentActivity {
ProgressDialog progressDialog;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_progress);
progressDialog = new ProgressDialog(this);
// startActivityForResult(new Intent(),1);
}
/**
* 显示进度弹窗
* @param message 弹窗文字
*/
public void progress(String message){
if (progressDialog != null) {
progressDialog.show(message);
}
}
/**
* 显示进度弹窗
*/
public void progress(){
if (progressDialog != null) {
progressDialog.show("");
}
}
/**
* 隐藏进度弹窗
*/
public void hideProgress(){
if (progressDialog != null) {
progressDialog.dismiss();
}
}
}
|
9d3e6423-799f-44f4-9822-20b446d7aae5
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-11 17:01:57", "repo_name": "davidtrom/Maven.Spring-BeansLearnerLab", "sub_path": "/demo/src/main/java/Entities/People.java", "file_name": "People.java", "file_ext": "java", "file_size_in_byte": 1118, "line_count": 44, "lang": "en", "doc_type": "code", "blob_id": "c9c599cff2f059c59f27cd764b58ddfa79589d82", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/davidtrom/Maven.Spring-BeansLearnerLab
| 239
|
FILENAME: People.java
| 0.286968
|
package Entities;
import java.util.List;
public abstract class People <PersonType extends Person> implements Iterable<PersonType> {
List<PersonType> personList;
public People () {}
public void add (PersonType person){
this.personList.add(person);
}
public void remove (PersonType person){
this.personList.remove(person);
}
public Integer size (List<PersonType> personList){
return this.personList.size();
}
public void clear (List<PersonType> personList) {
this.personList.clear();
}
public List<PersonType> addAll (List<PersonType> personList, Iterable<PersonType> people){
for(PersonType person : people){
personList.add(person);
}
return personList;
}
public PersonType findById (List<PersonType> personList, long id) {
for (int i = 0; i < personList.size(); i++) {
if(personList.get(i).getId().equals(id));
return personList.get(i);
}
return null;
}
public List<PersonType> findAll (){
return this.personList;
}
}
|
f60f0d8a-86d0-4e3c-b3be-d9c993df4ad7
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-10 08:51:08", "repo_name": "17891691876/SeleniumDemo", "sub_path": "/src/main/java/Page/LoginPage.java", "file_name": "LoginPage.java", "file_ext": "java", "file_size_in_byte": 1194, "line_count": 44, "lang": "en", "doc_type": "code", "blob_id": "f2658553d59b87b6e2f6e0709937d6f0ab6855ad", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/17891691876/SeleniumDemo
| 241
|
FILENAME: LoginPage.java
| 0.276691
|
package Page;
import Base.BasePageAction;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
public class LoginPage extends BasePageAction {
public LoginPage(WebDriver driver){
super(driver);
}
//页面相关数据
public static final String url ="https://ad.hupu.com/#/";
// 元素定位方式
public static final By Username = By.id("account");
public static final By Password = By.id("password");
public static final By loginbutton = By.xpath("//*[@type='submit']");
//public static final By failtoast = By.cssSelector("span[text='用户名或密码错误']");
//页面相关操作
//登陆操作
public void doLogin(String username,String password ){
enterPage(url);
sendKeysInput(Username,username);
sendKeysInput(Password,password);
clickButton(loginbutton);
}
//登陆成功
public HomePage login(String username,String password){
doLogin(username,password);
return new HomePage(driver);
}
//登陆失败
public LoginPage loginFail(String username,String password){
doLogin(username,password);
return this;
}
}
|
0e6e5d4a-7b84-438a-8d54-8493471452a7
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-10 22:56:46", "repo_name": "SergeyChere/two-servers-and-queue", "sub_path": "/server-handler/src/MonoThreadClientHandler.java", "file_name": "MonoThreadClientHandler.java", "file_ext": "java", "file_size_in_byte": 1203, "line_count": 39, "lang": "en", "doc_type": "code", "blob_id": "96791ade15602e0f89701f78e6729369aa87fbf2", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/SergeyChere/two-servers-and-queue
| 199
|
FILENAME: MonoThreadClientHandler.java
| 0.243642
|
import java.io.DataInputStream;
import java.io.IOException;
import java.net.Socket;
public class MonoThreadClientHandler implements Runnable {
private static Socket clientDialog;
private Storage storage = Storage.getInstance();
public MonoThreadClientHandler(Socket client) {
MonoThreadClientHandler.clientDialog = client;
}
@Override
public void run() {
try {
DataInputStream in = new DataInputStream(clientDialog.getInputStream());
System.out.println("DataInputStream created");
System.out.println("Server reading from channel");
while (!clientDialog.isClosed()) {
while (in.available()>0) {
try {
Integer entry = in.readInt();
System.out.println("Produce -> "+entry);
storage.produce(entry);
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
in.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
|
d66aa4d7-79a7-46bc-9b1e-5440101c9513
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-21 17:56:30", "repo_name": "SJX516/DuchenProject", "sub_path": "/template/src/main/java/com/duchen/template/component/request/error/ErrorBase.java", "file_name": "ErrorBase.java", "file_ext": "java", "file_size_in_byte": 1063, "line_count": 49, "lang": "en", "doc_type": "code", "blob_id": "978aa9f260e1ac2c0bce6bd0e6234db7fe212a48", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/SJX516/DuchenProject
| 219
|
FILENAME: ErrorBase.java
| 0.23793
|
package com.duchen.template.component.request.error;
import com.android.volley.VolleyError;
import com.google.gson.JsonElement;
public class ErrorBase extends VolleyError {
private int mSequence = -1;
private String mUrl = "";
private int mErrorCode;
private JsonElement results;
public ErrorBase(int sequence, String url, String exceptionMessage, int errorCode, JsonElement results) {
super(exceptionMessage);
setSequence(sequence);
setUrl(url);
setErrorCode(errorCode);
this.results = results;
}
public int getSequence() {
return mSequence;
}
public String getUrl() {
return mUrl;
}
public void setSequence(int sequence) {
mSequence = sequence;
}
public void setUrl(String url) {
mUrl = url;
}
public int getErrorCode() {
return mErrorCode;
}
public void setErrorCode(int errorCode) {
this.mErrorCode = errorCode;
}
public JsonElement getJsonResults() {
return results;
}
}
|
90d916e2-391b-453c-91f6-c8406cff39eb
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-10-25 15:42:26", "repo_name": "alvieira/springpostgresql", "sub_path": "/src/main/java/com/example/springpostgresql/SpringpostgresqlApplication.java", "file_name": "SpringpostgresqlApplication.java", "file_ext": "java", "file_size_in_byte": 1203, "line_count": 35, "lang": "en", "doc_type": "code", "blob_id": "ecd7450904202a6594f836687aebc64109f9c77f", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/alvieira/springpostgresql
| 201
|
FILENAME: SpringpostgresqlApplication.java
| 0.261331
|
package com.example.springpostgresql;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.example.springpostgresql.domain.ApplicationMeta;
import com.example.springpostgresql.repository.ApplicationMetaRepository;
@SpringBootApplication
public class SpringpostgresqlApplication implements CommandLineRunner {
@Autowired
private ApplicationMetaRepository applicationMetaRepository;
public static void main(String[] args) {
SpringApplication.run(SpringpostgresqlApplication.class, args);
}
@Override
public void run(String... args) throws Exception {
ApplicationMeta applicationMeta = new ApplicationMeta();
applicationMeta.setName("MyNewApp");
applicationMeta.setDescription("This is a completely new application");
applicationMetaRepository.save(applicationMeta);
ApplicationMeta applicationMeta1 = new ApplicationMeta();
applicationMeta1.setName("CoolApp");
applicationMeta1.setDescription("This is cool application!");
applicationMetaRepository.save(applicationMeta1);
}
}
|
57aa4b49-2320-4d2d-a654-17659b964048
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-04 16:53:05", "repo_name": "Kuangcp/java-wheel", "sub_path": "/spring/src/main/java/com/github/kuangcp/spring/beans/factory/annotation/InjectionMetadata.java", "file_name": "InjectionMetadata.java", "file_ext": "java", "file_size_in_byte": 1092, "line_count": 42, "lang": "en", "doc_type": "code", "blob_id": "b6f1e4d848f8182989a4b4ebfe3284359867a1c6", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/Kuangcp/java-wheel
| 253
|
FILENAME: InjectionMetadata.java
| 0.286968
|
package com.github.kuangcp.spring.beans.factory.annotation;
import java.util.Collection;
import java.util.List;
/**
* @author https://github.com/kuangcp on 2019-12-18 08:03
*/
public class InjectionMetadata {
private final Class<?> targetClass;
/**
* 需要被注入的成员属性的Bean
*/
private Collection<InjectionElement> injectionElements;
public InjectionMetadata(Class<?> targetClass, List<InjectionElement> injectionElements) {
this.targetClass = targetClass;
this.injectionElements = injectionElements;
}
public Collection<InjectionElement> getInjectionElements() {
return injectionElements;
}
/**
* 通过 target 成员属性 找到是否有已经注册的 InjectionElement
* 并利用 InjectionElement内factory属性解析实例化Bean 实现反射注入
*
* @param target 被注入属性的对象
*/
public void inject(Object target) {
if (injectionElements == null || injectionElements.isEmpty()) {
return;
}
for (InjectionElement ele : injectionElements) {
ele.inject(target);
}
}
}
|
c70812d4-9d21-48d0-9db8-cf2ceafd86b4
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-07 03:33:28", "repo_name": "mangxiao2018/Netty-Learning", "sub_path": "/NettyCodeSamples/src/main/java/com/netty/mangxiao/netty/codec/ClientHandler.java", "file_name": "ClientHandler.java", "file_ext": "java", "file_size_in_byte": 1159, "line_count": 34, "lang": "en", "doc_type": "code", "blob_id": "05169aa65d097944abc716acbc56cd7fad560a6a", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/mangxiao2018/Netty-Learning
| 256
|
FILENAME: ClientHandler.java
| 0.220007
|
package com.netty.mangxiao.netty.codec;
import com.netty.mangxiao.nio.ChannelInboundHandlerAdapter;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.util.CharsetUtil;
/**
* @description:handler of protobuf client of google example
* @author:mangxiao2018@126.com
* @date:2021-3-26
*/
public class ClientHandler extends ChannelInboundHandlerAdapter {
@Override
public void channelActive(ChannelHandlerContext ctx) throws Exception {
StudentPOJO.Student student = StudentPOJO.Student
.newBuilder().setId(4).setName("芒硝 张艳青").build();
ctx.writeAndFlush(student);
}
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
ByteBuf buf = (ByteBuf) msg;
System.out.println("服务器回复的消息:" + buf.toString(CharsetUtil.UTF_8));
System.out.println("服务器的地址:" + ctx.channel().remoteAddress());
}
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
cause.printStackTrace();
ctx.close();
}
}
|
f7685fa9-72f1-4ec7-b9e1-9c5c54143215
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-08 13:46:35", "repo_name": "SouvikDasgupta/Anno", "sub_path": "/app/src/main/java/com/aahho/anno/model/NotificationResponseData.java", "file_name": "NotificationResponseData.java", "file_ext": "java", "file_size_in_byte": 981, "line_count": 49, "lang": "en", "doc_type": "code", "blob_id": "bd3bb5a237701c6dcaf147dbdb1c304ab34d29be", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/SouvikDasgupta/Anno
| 220
|
FILENAME: NotificationResponseData.java
| 0.212069
|
package com.aahho.anno.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
/**
* Created by souvikdas on 30/10/17.
*/
public class NotificationResponseData {
@SerializedName("canonical_ids")
@Expose
private int canonicalIds;
@SerializedName("failure")
private int failure;
@SerializedName("multicast_ids")
@Expose
private ArrayList<String> multicatIds;
public int getCanonicalIds() {
return canonicalIds;
}
public void setCanonicalIds(int canonicalIds) {
this.canonicalIds = canonicalIds;
}
public int getFailure() {
return failure;
}
public void setFailure(int failure) {
this.failure = failure;
}
public ArrayList<String> getMulticatIds() {
return multicatIds;
}
public void setMulticatIds(ArrayList<String> multicatIds) {
this.multicatIds = multicatIds;
}
}
|
0fa174f4-6c0d-466b-a50b-e549443c4b90
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-10-04 21:40:04", "repo_name": "lyoumi/PracticeProjectRepo", "sub_path": "/Training/RPG/classes/abilities/buffs/buffs/ArchersBuff.java", "file_name": "ArchersBuff.java", "file_ext": "java", "file_size_in_byte": 1064, "line_count": 56, "lang": "en", "doc_type": "code", "blob_id": "28d5085bb2a9ea8cfa73232e82c00ade006b5bcc", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/lyoumi/PracticeProjectRepo
| 254
|
FILENAME: ArchersBuff.java
| 0.278257
|
package RPG.classes.abilities.buffs.buffs;
import RPG.classes.Characters.Human;
import RPG.classes.abilities.Magic;
import RPG.classes.abilities.MagicClasses;
import RPG.classes.abilities.buffs.BuffMagic;
/**
* Created by pikachu on 18.07.17.
*/
public class ArchersBuff implements BuffMagic {
private Human human;
private int agility = 20;
private int power = 8;
private int intelligence = 4;
private ArchersBuff(Human human){
this.human = human;
}
@Override
public int getAgility() {
return agility;
}
@Override
public int getPower() {
return power;
}
@Override
public int getIntelligence() {
return intelligence;
}
@Override
public int getLevel() {
return human.getLevel();
}
@Override
public int getManaCost() {
return 0;
}
@Override
public MagicClasses getMagicClass() {
return MagicClasses.BUFF;
}
public static Magic getMagic(Human human) {
return new ArchersBuff(human);
}
}
|
5508ddfd-7db9-4054-812e-a4901e8146bd
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-08-28T20:45:00", "repo_name": "cloudera/hue", "sub_path": "/tools/kubernetes/helm/website/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1099, "line_count": 32, "lang": "en", "doc_type": "text", "blob_id": "38e9fce06185487069c4e7ce3d5d72c3e9bddcab", "star_events_count": 5655, "fork_events_count": 2244, "src_encoding": "UTF-8"}
|
https://github.com/cloudera/hue
| 304
|
FILENAME: README.md
| 0.218669
|
# Hue Website Chart
This is an Helm chart to easily manage the Hue websites, gethue, docs, cdn, forum.
## Install
cd tools/kubernetes/helm/website
View the configuration [values.yaml](values.yaml), edit if needed and run:
helm install website website --namespace gethue
[values.yaml](values.yaml) contains the most important parameters in the `hue` section with for example which database to use. The `ini`
section let you add any extra [regular parameter](https://docs.gethue.com//administrator/configuration/server/).
Then follow-up the instructions printed on the screen for getting the URL to connect to the sites.
kubectl get pods -ngethue
NAME READY STATUS RESTARTS AGE
docs-5d6485d457-l6j95 1/1 Running 0 67s
website-5c6fbf8f4b-glh9v 1/1 Running 0 67s
website-jp-964f9cc57-2x68f 1/1 Running 0 67s
## Uninstall
helm delete website --purge --namespace gethue
## Domain name
See the NGINX section in the [Hue chart README](tools/kubernetes/helm/hue/README.md).
|
64b207ff-f5e3-46ed-b4ae-6849fca934f0
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-26 00:57:14", "repo_name": "zhanght86/plm-hmcf", "sub_path": "/trunk/src/plm-hmcf/src/main/java/com/sinitek/sirm/web/plm/legaldocument/LegalDocumentAppendAttachmentAction.java", "file_name": "LegalDocumentAppendAttachmentAction.java", "file_ext": "java", "file_size_in_byte": 1037, "line_count": 28, "lang": "en", "doc_type": "code", "blob_id": "b3ce72f073a2a41cb493b093e7a81fdeda4b06e6", "star_events_count": 0, "fork_events_count": 2, "src_encoding": "UTF-8"}
|
https://github.com/zhanght86/plm-hmcf
| 240
|
FILENAME: LegalDocumentAppendAttachmentAction.java
| 0.264358
|
package com.sinitek.sirm.web.plm.legaldocument;
import com.sinitek.sirm.busin.plm.service.PLMServiceFactory;
import com.sinitek.sirm.common.web.SirmAction;
import com.sinitek.spirit.webcontrol.table.ITableAware;
import org.apache.commons.lang.StringUtils;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;
/**
* 法律文件补充附件列表。
* User: li.xu
* Date: 2015/6/15
* Time: 14:21
* To change this template use File | Settings | File Templates.
*/
public class LegalDocumentAppendAttachmentAction extends SirmAction implements ITableAware {
@Override public Object getResult(Map<String, String> map, HttpServletRequest httpServletRequest) throws Exception {
String attachmentids = map.get("attachmentids");
return PLMServiceFactory.getPLMLegalDocumentLogService().queryAttachmentids(attachmentids);
}
@Override public String setDefaultOrderBy(Map<String, String> map, HttpServletRequest httpServletRequest) throws Exception {
return " t.createtimestamp desc ";
}
}
|
5a1b5811-d0b5-4309-a6d8-fb27558bbab4
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-18 09:24:22", "repo_name": "adultyoung/store", "sub_path": "/back/src/main/java/by/ffefi/store/domain/Item.java", "file_name": "Item.java", "file_ext": "java", "file_size_in_byte": 1063, "line_count": 51, "lang": "en", "doc_type": "code", "blob_id": "74aab9a635495bf5e3bd871ea7deeb580ff61063", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/adultyoung/store
| 223
|
FILENAME: Item.java
| 0.240775
|
package by.ffefi.store.domain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.*;
import java.util.Set;
@EqualsAndHashCode(of = {"id"})
@Data
@Entity
public class Item {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String pet;
private String title;
private String description;
@ColumnDefault(value = "true")
private boolean inStock;
private String price;
private String type;
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name = "item_size", joinColumns = @JoinColumn(name = "item_id"))
private Set<Size> sizes;
@ElementCollection(fetch = FetchType.LAZY)
@CollectionTable(name = "item_description", joinColumns = @JoinColumn(name = "item_id"))
private Set<Description> fullDescription;
private String company;
private String size;
private String age;
@ColumnDefault(value ="1")
private int quantity = 1;
private String sizeOfItem;
}
|
03b020fb-4747-465b-9cbb-b1bab8b29cda
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-04-12T13:56:00", "repo_name": "sokooltools/MsiFileReport", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 983, "line_count": 22, "lang": "en", "doc_type": "text", "blob_id": "6b99fc08b7d0b647ac32a818ff08e1899f6053d7", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/sokooltools/MsiFileReport
| 204
|
FILENAME: README.md
| 0.246533
|
# MsiFileReport
This is a Microsoft Window's mini-application that when launched creates an html file consisting of
data related to all of the MSI files currently installed on the local computer.
For example:

While the file is being generated (which can often take a minute or more), a window
such as the following is displayed temporarily on the screen:

The resultant html file is automatically opened on the PC using the default web browser following
successful creation.
NOTE: The generated html file is written to the user's %TEMP% folder, but you can obviously
save it to a permanent location elsewhere on disk for viewing at a later time.
Clicking a hyperlink (shown in '<span style="color:blue;">blue</span>') inside a column of the table launches the corresponding msi file.
Do note that this action only works when using 'Microsoft Internet Explorer' and then only after acknowledging
security concerns.
|
adc02d64-3117-45da-9d1d-4238bd0d7a08
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-19 15:56:30", "repo_name": "sudheendras/moviebooking", "sub_path": "/moviebooking-booking/src/main/java/com/example/demo/MovieEntity.java", "file_name": "MovieEntity.java", "file_ext": "java", "file_size_in_byte": 1119, "line_count": 55, "lang": "en", "doc_type": "code", "blob_id": "78de74f0166232a09f587c83542057b6a72046dd", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/sudheendras/moviebooking
| 290
|
FILENAME: MovieEntity.java
| 0.288569
|
package com.example.demo;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="movie")
public class MovieEntity {
@Id
@Column(name="sno")
private int sno;
@Column(name="moviename")
private String moviename;
@Column(name="cityname")
private String cityname;
@Column(name="theatername")
private String theatername;
@Column(name="nooftickets")
private int nooftickets;
public int getSno() {
return sno;
}
public void setSno(int sno) {
this.sno = sno;
}
public String getMoviename() {
return moviename;
}
public void setMoviename(String moviename) {
this.moviename = moviename;
}
public String getCityname() {
return cityname;
}
public void setCityname(String cityname) {
this.cityname = cityname;
}
public String getTheatername() {
return theatername;
}
public void setTheatername(String theatername) {
this.theatername = theatername;
}
public int getNooftickets() {
return nooftickets;
}
public void setNooftickets(int nooftickets) {
this.nooftickets = nooftickets;
}
}
|
cf83d965-ee7e-4839-bb34-c3607434f8d0
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-21 19:52:50", "repo_name": "Usevalad/HyperFax", "sub_path": "/app/src/main/java/com/vsevolod/swipe/addphoto/model/query/AuthModel.java", "file_name": "AuthModel.java", "file_ext": "java", "file_size_in_byte": 1203, "line_count": 46, "lang": "en", "doc_type": "code", "blob_id": "b9bcae0f1d655d7bd31280a7f92fb5457765b3fa", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/Usevalad/HyperFax
| 253
|
FILENAME: AuthModel.java
| 0.252384
|
package com.vsevolod.swipe.addphoto.model.query;
import android.util.Log;
import com.google.gson.annotations.SerializedName;
import com.vsevolod.swipe.addphoto.config.MyApplication;
import java.util.HashMap;
/**
* Created by vsevolod on 07.04.17.
*/
public class AuthModel {
@SerializedName("version")
final String version;
@SerializedName("release")
final String release;
@SerializedName("phone")
final String phone;
@SerializedName("password")
final String password;
@SerializedName("android")
final HashMap<String, String> android;
public AuthModel(String phone, String password) {
this.phone = phone;
this.password = password;
this.android = new HashMap<>();
this.version = String.valueOf(MyApplication.getAppVersionCode());
this.release = MyApplication.getBuildDate();
this.android.put("build", String.valueOf(MyApplication.getBuildVersion()));
this.android.put("model", MyApplication.getDeviceModel());
Log.e("AuthModel", toString());
}
@Override
public String toString() {
return "phone: " + phone + "\n" +
"password: " + password;
}
}
|
b6415ab1-9d5a-4d74-b0b4-cf14bf0a56dd
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-07-22 12:46:21", "repo_name": "lishuai13/Java-8", "sub_path": "/src/main/java/entity/Album.java", "file_name": "Album.java", "file_ext": "java", "file_size_in_byte": 1233, "line_count": 62, "lang": "en", "doc_type": "code", "blob_id": "6142db631455fc44d97b508863d2a4e87ae2c9a5", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/lishuai13/Java-8
| 263
|
FILENAME: Album.java
| 0.246533
|
package entity;
import java.util.List;
public class Album {
private String name;
private String tracks;
private List<String> musicians;
private int TrackList;
public Album() {
}
public Album(String name, String tracks, int trackList) {
this.name = name;
this.tracks = tracks;
TrackList = trackList;
}
public int getTrackList() {
return TrackList;
}
public void setTrackList(int trackList) {
TrackList = trackList;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getTracks() {
return tracks;
}
public void setTracks(String tracks) {
this.tracks = tracks;
}
public List<String> getMusicians() {
return musicians;
}
public void setMusicians(List<String> musicians) {
this.musicians = musicians;
}
@Override
public String toString() {
return "Album{" +
"name='" + name + '\'' +
", tracks='" + tracks + '\'' +
", musicians=" + musicians +
", TrackList=" + TrackList +
'}';
}
}
|
9db62a14-91f5-4e97-b61f-95c21e295969
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-12-27 16:03:17", "repo_name": "sganeshbel/uni", "sub_path": "/Orders/src/main/java/com/company/app/Entity/OrdersEntity.java", "file_name": "OrdersEntity.java", "file_ext": "java", "file_size_in_byte": 1050, "line_count": 56, "lang": "en", "doc_type": "code", "blob_id": "771bfef27e892c1493dc10e1d888ec5493967432", "star_events_count": 1, "fork_events_count": 1, "src_encoding": "UTF-8"}
|
https://github.com/sganeshbel/uni
| 233
|
FILENAME: OrdersEntity.java
| 0.290176
|
package com.company.app.Entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="orders")
public class OrdersEntity implements Serializable{
@Id
@Column(name="email")
private String email;
@Column(name="item")
private String item;
@Column(name="noOfItems")
private String noOfItems;
public OrdersEntity() {
System.out.println(this.getClass().getName());
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getItem() {
return item;
}
public void setItem(String item) {
this.item = item;
}
public String getNoOfItems() {
return noOfItems;
}
public void setNoOfItems(String noOfItems) {
this.noOfItems = noOfItems;
}
@Override
public String toString() {
return "OrdersEntity [email=" + email + ", item=" + item + ", noOfItems=" + noOfItems + "]";
}
}
|
248815b7-fdf2-4bec-ac08-0c92c067afbe
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-08-06 03:01:57", "repo_name": "mmgame/cwa2_1099util", "sub_path": "/src/com/cwa/util/priorityqueue/QueueCell.java", "file_name": "QueueCell.java", "file_ext": "java", "file_size_in_byte": 1120, "line_count": 62, "lang": "en", "doc_type": "code", "blob_id": "778adc94b6ccdcc5206631bad6bd6539121e6a38", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/mmgame/cwa2_1099util
| 289
|
FILENAME: QueueCell.java
| 0.29584
|
package com.cwa.util.priorityqueue;
public class QueueCell {
private long time;
private String key;
private Object obj;
public long getTime() {
return time;
}
public void setTime(long time) {
this.time = time;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public Object getObj() {
return obj;
}
public void setObj(Object obj) {
this.obj = obj;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((key == null) ? 0 : key.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
QueueCell other = (QueueCell) obj;
if (key == null) {
if (other.key != null)
return false;
} else if (!key.equals(other.key))
return false;
return true;
}
@Override
public String toString() {
return "QueueCell [time=" + time + ", key=" + key + ", obj=" + obj + "]";
}
}
|
612e2c8d-697a-4a09-bf83-7ada022f67eb
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-20 19:13:20", "repo_name": "Siril-O/RecruitmentSystem", "sub_path": "/src/main/java/ua/recruitment/system/web/controller/position/dto/GetPositionApplicationsRequest.java", "file_name": "GetPositionApplicationsRequest.java", "file_ext": "java", "file_size_in_byte": 1012, "line_count": 40, "lang": "en", "doc_type": "code", "blob_id": "a370413b35836437fe5e0c6855adc98523953900", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/Siril-O/RecruitmentSystem
| 214
|
FILENAME: GetPositionApplicationsRequest.java
| 0.235108
|
package ua.recruitment.system.web.controller.position.dto;
import ua.recruitment.system.domain.PositionApplicationStatus;
import java.util.List;
/**
* Created by Kyrylo_Kovalchuk on 11/9/2016.
*/
public class GetPositionApplicationsRequest {
private List<String> positionCodes;
private List<String> applicantEmails;
private List<PositionApplicationStatus> statuses;
public List<String> getPositionCodes() {
return positionCodes;
}
public void setPositionCodes(final List<String> positionCodes) {
this.positionCodes = positionCodes;
}
public List<String> getApplicantEmails() {
return applicantEmails;
}
public void setApplicantEmails(final List<String> applicantEmails) {
this.applicantEmails = applicantEmails;
}
public List<PositionApplicationStatus> getStatuses() {
return statuses;
}
public void setStatuses(final List<PositionApplicationStatus> statuses) {
this.statuses = statuses;
}
}
|
36902933-8a83-470f-966b-4f504a1dbcc1
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-07-02T23:47:31", "repo_name": "virlie/secondHomeWork", "sub_path": "/README.MD", "file_name": "README.MD", "file_ext": "md", "file_size_in_byte": 1010, "line_count": 20, "lang": "en", "doc_type": "text", "blob_id": "9580f76a9ee512e077b340d9a5a1f0d11f3d84de", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/virlie/secondHomeWork
| 239
|
FILENAME: README.MD
| 0.282196
|
**Ping Pong Converter**
Intro to Programming Independent Project for Epicodus - 24th June 2018
By Virlie Joy Paglinawan
**Description**
A webpage (using HTML, CSS, Bootstrap, JavaScript, and jQuery) that asks users to input a number that is then counted up to starting at 1 and that count is converted into a list, translating certain values to ping, pong, or pingpong. If the number is divisible by 3, it becomes "ping". If it is divisible by 5, it becomes "pong". If divisible by both 3 and 5, it becomes "pingpong".
**Setup/Installation Requirements**
Clone this repository onto your desktop. This will place the all files and folders in onto your computer.
Click on the index.html file in the browser. This will allow you to view the file in your browser. If this does not open in your browser, navigate to project folder via your command line and type "open index.html".
Specifications
alt tag
**Technology Used To Create Portfolio**
HTML, CSS, JavaScript, and jQuery.
License
2018 Virlie Paglinawan
|
17e62692-f330-494c-b1d0-1f62b202415e
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-06-08 15:14:10", "repo_name": "MengChao-joker/Ordinary-Day", "sub_path": "/doExercise/src/May/java_5_19/ThreadPoolDemo10.java", "file_name": "ThreadPoolDemo10.java", "file_ext": "java", "file_size_in_byte": 1228, "line_count": 34, "lang": "en", "doc_type": "code", "blob_id": "7cc7db60aed194069484d1cea92e13bbff0372ca", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/MengChao-joker/Ordinary-Day
| 222
|
FILENAME: ThreadPoolDemo10.java
| 0.287768
|
package May.java_5_19;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.PriorityBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class ThreadPoolDemo10 {
public static void main(String[] args) {
ThreadPoolExecutor threadPoolExecutor =
new ThreadPoolExecutor(10, 20, 3, TimeUnit.SECONDS, new PriorityBlockingQueue<>());
System.out.println(threadPoolExecutor.getPoolSize());
System.out.println(threadPoolExecutor.getActiveCount());
for (int i = 0; i < 25; i++) {
threadPoolExecutor.execute(new Runnable() {
@Override
public void run() {
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println(Thread.currentThread().getName());
System.out.println("线程池大小:"+threadPoolExecutor.getPoolSize());
System.out.println("活跃线程数:"+threadPoolExecutor.getActiveCount());
}
});
}
}
}
|
1bf1c9de-9779-4698-be2b-27b46c7e4ed7
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-03-01 21:12:14", "repo_name": "evgean/jandrejevs", "sub_path": "/chapter_002/src/main/java/tracker/Item.java", "file_name": "Item.java", "file_ext": "java", "file_size_in_byte": 982, "line_count": 49, "lang": "en", "doc_type": "code", "blob_id": "661c3bbafa11567f20b643a598b8f5698680c8e9", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/evgean/jandrejevs
| 199
|
FILENAME: Item.java
| 0.23092
|
package tracker;
public class Item {
private String id;
private String name;
private String description;
private long created;
private String[] comments;
private int commentPosition = 0;
public Item(String name, String description, long created) {
this.name = name;
this.description = description;
this.created = created;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return this.description;
}
public void setDescription(String desc) {
this.description = desc;
}
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String[] getComments() {
return this.comments;
}
public void setComment(String comment) {
this.comments[commentPosition++] = comment;
}
}
|
b737f890-3b23-48b9-a620-9ec6f0960cd9
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-24 04:31:32", "repo_name": "Agencer4382/Selenium", "sub_path": "/src/com/Class03/AbsoluteXpath.java", "file_name": "AbsoluteXpath.java", "file_ext": "java", "file_size_in_byte": 1017, "line_count": 35, "lang": "en", "doc_type": "code", "blob_id": "d65009fcd576e48abcf705c331f88a8cd60c432a", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/Agencer4382/Selenium
| 231
|
FILENAME: AbsoluteXpath.java
| 0.294215
|
package com.Class03;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class AbsoluteXpath {
WebDriver driver;
public static void main(String[] args) {
AbsoluteXpath obj=new AbsoluteXpath();
obj.invokeBrowser();
}
public void invokeBrowser() {
System.setProperty("webdriver.chrome.driver", "C:\\Users\\Samsung\\Selenium\\chromedriver.exe");
driver = new ChromeDriver();
getXpath();
}
public void getXpath() {
driver.get("https://www.saucedemo.com/");
// driver.findElement(By.xpath("html/body/div/div[5]/div/div/div/div/div/div/div/div[2]/div/form/fieldset/div[8]/input[@name='firstname']")).sendKeys("name");
driver.findElement(By.xpath("//input[@data-test='username']")).sendKeys("standard_user");
driver.findElement(By.xpath("//input[@data-test='password']")).sendKeys("secret_sauce");
driver.findElement(By.xpath("//input[@value='LOGIN']")).click();
}
}
|
cb61017d-4095-41a5-99c5-0416c7e7e0aa
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-07-22 08:51:55", "repo_name": "zamonitorom/Letsgo", "sub_path": "/letsgo/src/main/java/com/letsgoapp/Models/SocketMessage.java", "file_name": "SocketMessage.java", "file_ext": "java", "file_size_in_byte": 1203, "line_count": 65, "lang": "en", "doc_type": "code", "blob_id": "2620de0863b164c85eb10aa3cf195859aa02729a", "star_events_count": 0, "fork_events_count": 1, "src_encoding": "UTF-8"}
|
https://github.com/zamonitorom/Letsgo
| 268
|
FILENAME: SocketMessage.java
| 0.214691
|
package com.letsgoapp.Models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class SocketMessage {
@SerializedName("is_my")
@Expose
private Boolean isMy;
@SerializedName("avatar")
@Expose
private String avatar;
@SerializedName("author_name")
@Expose
private String authorName;
@SerializedName("text")
@Expose
private String text;
@SerializedName("href")
@Expose
private String href;
public Boolean getIsMy() {
return isMy;
}
public void setIsMy(Boolean isMy) {
this.isMy = isMy;
}
public String getAvatar() {
return avatar;
}
public void setAvatar(String avatar) {
this.avatar = avatar;
}
public String getAuthorName() {
return authorName;
}
public void setAuthorName(String authorName) {
this.authorName = authorName;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public String getHref() {
return href;
}
public void setHref(String href) {
this.href = href;
}
}
|
d1f9c151-0546-4c6f-9f9a-f92538f6f3bd
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-14 01:19:43", "repo_name": "fePremazzi/br.com.lp2.vendedor.app", "sub_path": "/src/br/com/lp2/vendedor/app/estados/EstadoConsoleBemVindo.java", "file_name": "EstadoConsoleBemVindo.java", "file_ext": "java", "file_size_in_byte": 1002, "line_count": 37, "lang": "en", "doc_type": "code", "blob_id": "cb38aa1970c3d76243aea09f53e7caaba26e03fe", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "ISO-8859-1"}
|
https://github.com/fePremazzi/br.com.lp2.vendedor.app
| 218
|
FILENAME: EstadoConsoleBemVindo.java
| 0.286169
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.lp2.vendedor.app.estados;
import java.util.Scanner;
import br.com.lp2.vendedor.app.App;
public class EstadoConsoleBemVindo extends MaquinaEstadoConsole{
@Override
public boolean Executa() {
boolean sair = false;
System.out.println("Bem-vindo!");
System.out.println("Indique a opção desejada!");
System.out.println("1 - Login");
System.out.println("0 - Sair");
System.out.println("Opção: ");
Scanner scan = new Scanner(System.in);
int opcao = scan.nextInt();
switch (opcao)
{
case 0:
sair = true;
break;
case 1:
App.estadoConsole = EnumEstadoConsole.LOGIN.getEstadoMaquina();
break;
}
return sair;
}
}
|
079ba75b-315b-4804-bf11-f6c59923dbe4
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-28 10:33:43", "repo_name": "blog-demos/simple-java-demos", "sub_path": "/src/test/java/pers/hai/simple/Log4jTest.java", "file_name": "Log4jTest.java", "file_ext": "java", "file_size_in_byte": 1114, "line_count": 54, "lang": "en", "doc_type": "code", "blob_id": "fbb63d81ba570de0eda6bf5d62ca2354c2df8578", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/blog-demos/simple-java-demos
| 310
|
FILENAME: Log4jTest.java
| 0.267408
|
package pers.hai.simple;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.net.SyslogAppender;
import org.junit.Test;
import pers.hai.simple.log4j.CustomLogLevel;
/**
* @Author: Q-WHai
* @Date: Created in 10:34 2019/05/06
*/
public class Log4jTest {
private final Logger logger = Logger.getLogger(Log4jTest.class);
@Test
public void test1() {
logger.setLevel(Level.INFO);
logger.info("测试[INFO]日志");
}
@Test
public void test2() {
logger.warn("测试[WARN]日志");
}
@Test
public void test3() {
logger.debug("测试[DEBUG]日志");
}
@Test
public void test4() {
logger.error("测试[ERROR]日志");
}
@Test
public void test5() {
logger.trace("测试[TRACE]日志");
}
@Test
public void test6() {
logger.fatal("测试[FATAL]日志");
}
@Test
public void test7() {
Level level = new CustomLogLevel(60000, "CUSTOMER", SyslogAppender.LOG_LOCAL0);
logger.log(level, "测试自定义等级日志");
}
}
|
1cccba72-04f2-4e10-9e0e-b5ede141bba1
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-05 06:53:31", "repo_name": "harpreetkaurGitHub/SpringDemo", "sub_path": "/src/com/Spring/AnnotationsXMLConfigScan/TennisCoach.java", "file_name": "TennisCoach.java", "file_ext": "java", "file_size_in_byte": 991, "line_count": 32, "lang": "en", "doc_type": "code", "blob_id": "c836362bc07e2ad91d1990761274202fd319ecdf", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/harpreetkaurGitHub/SpringDemo
| 190
|
FILENAME: TennisCoach.java
| 0.246533
|
package com.Spring.AnnotationsXMLConfigScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
@Component("tennisCoach")
@Scope("prototype")
public class TennisCoach implements Coach {
// @Autowired //field injection no need for setter methods
private FortuneService theFortuneService;
// used when field injection is in used
TennisCoach() {
System.out.println("field injection is in used");
}
// @Autowired //@Qualifier used when there are multiple implementations....
// public TennisCoach(FortuneService fortuneService) {
// fortuneService = theFortuneService;
// }
@Override
public String getDailyWorkout() {
return "Practice your backend volley";
}
public String addToMyStartUpStuff(){
return "Hey I am THe lucky who stared at first";
}
}
|
2220361b-7e2b-4e72-b30d-5d382629b2b1
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-23 17:34:25", "repo_name": "whakey/discordBot", "sub_path": "/src/main/java/com/discord/bot/Emote.java", "file_name": "Emote.java", "file_ext": "java", "file_size_in_byte": 1230, "line_count": 73, "lang": "en", "doc_type": "code", "blob_id": "f94062012850f4cb689978ccd83ab895d22f0a1a", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/whakey/discordBot
| 270
|
FILENAME: Emote.java
| 0.220007
|
package com.discord.bot;
public class Emote
{
private String code;
private String id;
private String imagetype;
private boolean downloaded;
private boolean largeDownloaded;
public Emote(String code, String id, String imagetype, boolean downloaded)
{
this.code = code;
this.id = id;
this.imagetype = imagetype;
this.downloaded = downloaded;
}
public void setCode(String code)
{
this.code = code;
}
public void setId(String id)
{
this.id = id;
}
public void setImagetype(String imagetype)
{
this.imagetype = imagetype;
}
public void setDownloaded(boolean downloaded)
{
this.downloaded = downloaded;
}
public void setLargeDownloaded(boolean largeDownloaded)
{
this.largeDownloaded = largeDownloaded;
}
public String getCode()
{
return code;
}
public String getId()
{
return id;
}
public String getImagetype()
{
return imagetype;
}
public boolean isDownloaded()
{
return downloaded;
}
public boolean isLargeDownloaded()
{
return largeDownloaded;
}
}
|
4ebdc150-182d-4a83-88d0-5fad7fd7d989
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-07-05 15:30:56", "repo_name": "RevenantEverest/Acirhia", "sub_path": "/users-api/src/main/java/com/example/usersapi/models/Character.java", "file_name": "Character.java", "file_ext": "java", "file_size_in_byte": 1203, "line_count": 53, "lang": "en", "doc_type": "code", "blob_id": "3858b861c86bfd0304a9be224672b4cb9bfc116d", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/RevenantEverest/Acirhia
| 279
|
FILENAME: Character.java
| 0.286169
|
package com.example.usersapi.models;
import lombok.*;
import javax.persistence.*;
@Data
@AllArgsConstructor @NoArgsConstructor @Getter @Setter
@Entity @Table(name = "CHARACTERS")
public class Character {
public Character(Long userId, String characterName, int classId, int health, int attack, int defense, int exp, int lvl, int gold) {
this.userId = userId;
this.characterName = characterName;
this.classId = classId;
this.health = health;
this.attack = attack;
this.defense = defense;
this.exp = exp;
this.lvl = lvl;
this.gold = gold;
}
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "USER_ID")
private Long userId;
@Column(name = "CHARACTER_NAME")
private String characterName;
@Column(name = "CLASS_ID")
private int classId;
@Column(name = "HEALTH")
private int health;
@Column(name = "ATTACK")
private int attack;
@Column(name = "DEFENSE")
private int defense;
@Column(name = "EXP")
private int exp;
@Column(name = "LVL")
private int lvl;
@Column(name = "GOLD")
private int gold;
}
|
448b45fb-5ceb-41eb-8b1a-176ec77325c2
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-08-08 23:37:22", "repo_name": "kchamp45/resume-builder", "sub_path": "/src/main/java/Job.java", "file_name": "Job.java", "file_ext": "java", "file_size_in_byte": 970, "line_count": 51, "lang": "en", "doc_type": "code", "blob_id": "cbbb2c5055783fab1190bab0d4d4755ad2fa43c4", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/kchamp45/resume-builder
| 195
|
FILENAME: Job.java
| 0.229535
|
import java.util.ArrayList;
public class Job {
private final String jobName;
private final String company;
private final String date;
private final String description;
private static ArrayList<Job> jobArray = new ArrayList<>();
public Job(String jobName, String company, String date, String description){
this.jobName = jobName;
this.company = company;
this.date = date;
this.description = description;
jobArray.add(this);
}
public String getValue() {
return jobName;
}
public static ArrayList<Job> getAll() {
return jobArray;
}
public String getJobName() {
return jobName;
}
public String getCompany() {
return company;
}
public String getDate() {
return date;
}
public String getDescription() {
return description;
}
public static void clearAllJobs(){
jobArray.clear();
}
}
|
a9fc228c-5031-4d89-85ca-2da8a151ad0c
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-03 02:59:21", "repo_name": "xin-Dream/Android_workspace", "sub_path": "/InfoManage2/app/src/main/java/com/dream/infomanage/UserInfoActivity.java", "file_name": "UserInfoActivity.java", "file_ext": "java", "file_size_in_byte": 1048, "line_count": 39, "lang": "en", "doc_type": "code", "blob_id": "29da752765a0c414ee7d1768bb72b2373541fdc2", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/xin-Dream/Android_workspace
| 182
|
FILENAME: UserInfoActivity.java
| 0.189521
|
package com.dream.infomanage;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class UserInfoActivity extends AppCompatActivity {
private TextView tv_back;
private TextView tv_main_title;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_user_info);
tv_back=(TextView)findViewById(R.id.tv_back);
tv_main_title=(TextView)findViewById(R.id.tv_main_title);
tv_main_title.setText("个人信息");
tv_back.setVisibility(View.VISIBLE);
tv_back.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
jump2main();
}
});
}
private void jump2main(){
Intent intent=new Intent(this, com.dream.infomanage.MyInfoActivity.class);
startActivity(intent);
}
}
|
4e7e1307-724b-4da4-85e7-8c877452e415
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-09-09 04:36:39", "repo_name": "fateezgo/Fateezgo", "sub_path": "/app/src/main/java/tw/com/fateezgo/ModifyMemberActivity.java", "file_name": "ModifyMemberActivity.java", "file_ext": "java", "file_size_in_byte": 986, "line_count": 41, "lang": "en", "doc_type": "code", "blob_id": "caa3f6eeb9c2e4b605c7130c6f000136a04a67b3", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/fateezgo/Fateezgo
| 213
|
FILENAME: ModifyMemberActivity.java
| 0.204342
|
package tw.com.fateezgo;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
public class ModifyMemberActivity extends BasicActivity {
private EditText edtname;
private EditText edtphone;
private EditText edtpw;
private EditText edtmail;
DbTask lt = new DbTask();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_modify_member);
edtname = (EditText) findViewById(R.id.edtmemname);
edtphone = (EditText) findViewById(R.id.edtmemphone);
edtpw = (EditText) findViewById(R.id.edtmempw);
edtmail = (EditText) findViewById(R.id.edtmememail);
//lt.execute("getmaster?qtype=\"+requestType");
}
void ok(View v) {
finish();
}
void cancel(View v) {
finish();
}
@Override
void doViews() {
}
}
|
94d9a9d5-825f-49c8-abc5-d2c175530d8c
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-02-15T17:32:24", "repo_name": "xavierloos/RideTheDuck", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1050, "line_count": 49, "lang": "en", "doc_type": "text", "blob_id": "18dc12ca2545e2b53bab0f3f7ec74f6e5bf29452", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/xavierloos/RideTheDuck
| 277
|
FILENAME: README.md
| 0.282988
|
## 🦆 Ride The Ducks 🦆
### Your all in one traveller app.
=================================
### Product Description
An all-in-one traveller app that provides useful information for the destination.
### Product Features
* Currency Converter
* Local News
* Weather
* GoogleMap/Destination-Restaurant reviews (TripAdvisor)
* Translator
### User Stories
#### MVP
```
As a user,
So that I can create a new journey,
I need to be able to select a default origin.
```
```
As a user,
So that I can create a new journey,
I need to be able to select a destination.
```
```
As a user,
So that I know how much things cost,
I need to be able to check the exchange rate.
```
```
As a user,
So that I know what is happening where I am,
I need to be able to check the current news stories.
```
### Tech Stack
* MongoDB - Database
* ExpressJS - Server
* ReactJS - Front end
* NodeJS - Back end
* Jasmine - TDD
### Wireframe
<img src="https://github.com/xavierloos/RideTheDuck/blob/main/New%20Wireframe%201.png" alt="Wireframe" width="50%">
|
3b4324c2-775d-499f-a6df-15082632f377
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-26 14:38:41", "repo_name": "jmoisespg/androidwebapiclient", "sub_path": "/webapiclient/src/main/java/net/system/http/BadRequest.java", "file_name": "BadRequest.java", "file_ext": "java", "file_size_in_byte": 1046, "line_count": 50, "lang": "en", "doc_type": "code", "blob_id": "ae9376d7be29a1730b799172238505b9678c2b9b", "star_events_count": 3, "fork_events_count": 1, "src_encoding": "UTF-8"}
|
https://github.com/jmoisespg/androidwebapiclient
| 218
|
FILENAME: BadRequest.java
| 0.229535
|
package net.system.http;
import com.google.gson.annotations.SerializedName;
import java.util.Map;
/***
* Generic badrequest of a failed http request.
*/
public class BadRequest {
@SerializedName("Message")
private String message;
@SerializedName("ModelState")
private Map<String, String[]> modelState;
/***
* Retrieves the base message of failure request.
* @return
*/
public String getMessage() {
return message;
}
/***
* Changes the message of failed request.
* @param message
*/
public void setMessage(String message) {
this.message = message;
}
/***
* Retrieves the ModelStateDictionary containing key/valued pairs error messages.
*
* @return
*/
public Map<String, String[]> getModelState() {
return modelState;
}
/***
* Sets the ModelStateDictionary.
* @param modelState
*/
public void setModelState(Map<String, String[]> modelState) {
this.modelState = modelState;
}
}
|
7ae6280d-8022-4b95-bba2-ad2b5f9f9759
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2014-06-30T03:26:05", "repo_name": "Denisov21/brackets-html-skeleton", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1117, "line_count": 30, "lang": "en", "doc_type": "text", "blob_id": "cde9d22dc703e4096ca20e2d7ccc68c5de5570d1", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/Denisov21/brackets-html-skeleton
| 283
|
FILENAME: README.md
| 0.229535
|
# HTML Skeleton #
A [Brackets](http://brackets.io) extension that allows you to add various HTML elements straight into your document, freeing you from typing it yourself.
# Installation #
Method 1: Open the Brackets Extension Manager and search for "skeleton"
Method 2: Download directly from GitHub using either the [latest revision](https://github.com/le717/brackets-html-skeleton/archive/master.zip) or [tagged release](https://github.com/le717/brackets-html-skeleton/releases) and install the contents to `extensions/user/le717.html-skeleton` folder
# Usage #
1. Place your cursor in the location you want to insert the elements
2. Open the dialog by going to `Edit > Insert HTML Elements`
3. Select the desired elements, and press Done
4. Fill in all blank attributes as needed

# News #
See [NEWS.md](NEWS.md) for all changes.
# License #
[The MIT License](LICENSE.md)
Created 2014 [Triangle717](http://le717.github.io)
Logo created by [**@rioforce**](https://github.com/rioforce) ([http://rioforce.wordpress.com](http://rioforce.WordPress.com)).
|
43a96510-bd95-4b8d-b4df-8b12cb3f95aa
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-11-01 01:08:42", "repo_name": "hoiama/test_softplan", "sub_path": "/Sienge/src/main/java/br/com/softplan/sienge/controller/ChargeController.java", "file_name": "ChargeController.java", "file_ext": "java", "file_size_in_byte": 997, "line_count": 32, "lang": "en", "doc_type": "code", "blob_id": "bafd7b5a19e3bfcae862aaf3fb4dfabbbbe10b8e", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/hoiama/test_softplan
| 193
|
FILENAME: ChargeController.java
| 0.293404
|
package br.com.softplan.sienge.controller;
import br.com.softplan.sienge.entity.ChargeEntity;
import br.com.softplan.sienge.service.ServiceCost;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
@RequestMapping("charge")
@RestController
public class ChargeController {
@Autowired
ServiceCost serviceCost;
/**
* Get the cost about the charge transported in street
* @return double value os the cost
*/
@GetMapping(path = "")
@ResponseBody
public ResponseEntity getVehicleCost(
@RequestParam(value = "weight", required=true) int weight, ChargeEntity charge,
@RequestParam(value = "kilometer", required=true) double kilometer){
double cost = serviceCost.getCostKilometerWithWeight(charge, kilometer);
return new ResponseEntity<>(cost, HttpStatus.OK);
}
}
|
5c457ac1-cad9-41d9-9f89-ddd9fbb0a332
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-26 12:50:34", "repo_name": "r25ta/ir-radar-torre-controle", "sub_path": "/src/main/java/br/com/pamcary/infolog/radarveiculosviagem/dao/mapper/ReferenciaMapper.java", "file_name": "ReferenciaMapper.java", "file_ext": "java", "file_size_in_byte": 1024, "line_count": 30, "lang": "en", "doc_type": "code", "blob_id": "a91f9b096600b3e5e7bb5ee18051a3a035134e9a", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/r25ta/ir-radar-torre-controle
| 273
|
FILENAME: ReferenciaMapper.java
| 0.26588
|
package br.com.pamcary.infolog.radarveiculosviagem.dao.mapper;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import br.com.pamcary.infolog.radarveiculosviagem.dao.model.ReferenciaModel;
public class ReferenciaMapper implements RowMapper<ReferenciaModel> {
@Override
public ReferenciaModel mapRow(ResultSet rs, int rowNum) throws SQLException {
ReferenciaModel oReferencia = new ReferenciaModel();
oReferencia.setCodAtivi(rs.getInt("COD_ATIVI"));
oReferencia.setDesAtivi(rs.getString("DES_ATIVI"));
oReferencia.setCtlVincd(rs.getLong("CTL_VINCD"));
oReferencia.setNomVincd(rs.getString("NOM_VINCD"));
oReferencia.setNumLatit(rs.getDouble("NUM_LATIT"));
oReferencia.setNumLongi(rs.getDouble("NUM_LONGI"));
oReferencia.setDesEnder(rs.getString("DES_ENDER"));
oReferencia.setDesBairrEnd(rs.getString("DES_BAIRR_END"));
oReferencia.setDesPraca(rs.getString("PRACA"));
oReferencia.setSigUf(rs.getString("UF"));
return oReferencia;
}
}
|
f48f9343-39b5-4000-b726-7dedf04f88e0
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-08-19 20:35:54", "repo_name": "only-us-app/UDONG_SERVER", "sub_path": "/src/main/java/solux/woodong/web/service/WebClientService.java", "file_name": "WebClientService.java", "file_ext": "java", "file_size_in_byte": 1229, "line_count": 35, "lang": "en", "doc_type": "code", "blob_id": "ec80f1f9928664860b0cae676e3f1bbe56769b6f", "star_events_count": 0, "fork_events_count": 1, "src_encoding": "UTF-8"}
|
https://github.com/only-us-app/UDONG_SERVER
| 215
|
FILENAME: WebClientService.java
| 0.245085
|
package solux.woodong.web.service;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClient;
import reactor.core.publisher.Mono;
import java.nio.charset.Charset;
//@RequiredArgsConstructor
@Service
public class WebClientService {
private final WebClient webClient;
public WebClientService(WebClient.Builder webClientBuilder) {
this.webClient = webClientBuilder
.baseUrl("https://oauth2.googleapis.com")
.defaultHeader(HttpHeaders.CONTENT_TYPE,MediaType.APPLICATION_JSON_UTF8_VALUE)
.build();
}
public String getUser(String idToken) {
String response =
this.webClient.get().uri(uriBuilder -> uriBuilder.path("/tokeninfo")
.queryParam("id_token", idToken).build())
.accept(MediaType.APPLICATION_JSON_UTF8)
.acceptCharset(Charset.forName("UTF-8"))
.retrieve().bodyToMono(String.class)
.block();
return response;
}
}
|
8eda254b-17be-4d69-8807-e0f80cfa711b
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2012-08-27 12:00:14", "repo_name": "ibeauvais/TestSpringDataJpaJerseyJquery", "sub_path": "/src/main/java/com/perso/projectTest1/web/controller/EtablissementController.java", "file_name": "EtablissementController.java", "file_ext": "java", "file_size_in_byte": 1204, "line_count": 40, "lang": "en", "doc_type": "code", "blob_id": "2da3c2d23070d0e4fb85a68414c0384e15e18d06", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/ibeauvais/TestSpringDataJpaJerseyJquery
| 239
|
FILENAME: EtablissementController.java
| 0.262842
|
package com.perso.projectTest1.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.perso.projectTest1.model.Etablissement;
import com.perso.projectTest1.repositories.EtablissementDao;
@Controller
public class EtablissementController {
@Autowired
private EtablissementDao etablissementDao;
@RequestMapping("/etablissement/list.do")
public ModelAndView list() {
List<Etablissement> etablissements = etablissementDao.findAll();
ModelAndView mav = new ModelAndView();
mav.addObject("etablissements", etablissements);
mav.setViewName("etablissement/list");
return mav;
}
@RequestMapping("/etablissement/create.do")
public ModelAndView creationPage() {
List<Etablissement> etablissements = etablissementDao.findAll();
ModelAndView mav = new ModelAndView();
mav.addObject("etablissements", etablissements);
mav.setViewName("etablissement/list");
return mav;
}
}
|
925be2b5-f0d9-41d9-8ea8-0aeea526559f
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-03-08T20:44:04", "repo_name": "SatarShirzai/Udacity_Projects", "sub_path": "/React-would-you-rather/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1057, "line_count": 30, "lang": "en", "doc_type": "text", "blob_id": "6a75cc6c5a75b27f127a6957c197091a443e3e88", "star_events_count": 1, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/SatarShirzai/Udacity_Projects
| 271
|
FILENAME: README.md
| 0.292595
|
# Udacity Would You Rathre
The 'Would you rather' is a ReactJS app that allows users to login, ask and answer different poll questions. It will also show a leaderboard based on the number of questions each user has asked and answered.
## Prerequisites
To run this application, you will need the following:
* latest version of [Nodejs](https://nodejs.org/en/download/)
* latest version of [npm](https://www.npmjs.com/)
## Installation
[1] First of all You need to [download](https://github.com/SatarShirzai/Udacity_Projects/archive/master.zip)or [Clone](https://github.com/SatarShirzai/Udacity_Projects.git) the repo and:
[2] Access the projects folder
[3] run `npm install` from the command line to install the dependencies.
[4] Once installed run the command `npm start` to load application on [local host 3000](http://localhost:3000/)
## Screenshot of the main page and search page
### Main page

### Dashboard page

### Leaderboard page

|
88379ce5-b020-4839-853c-7e69045a439f
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2023-08-15T18:23:07", "repo_name": "HomeDing/homeding.github.io", "sub_path": "/examples/rfbridge.md", "file_name": "rfbridge.md", "file_ext": "md", "file_size_in_byte": 1227, "line_count": 42, "lang": "en", "doc_type": "text", "blob_id": "167153cc0e6aaf1f46a34b3bb9ce5dcc9450347f", "star_events_count": 0, "fork_events_count": 1, "src_encoding": "UTF-8"}
|
https://github.com/HomeDing/homeding.github.io
| 281
|
FILENAME: rfbridge.md
| 0.245085
|
---
title: RF Bridge Example
tags: ["Example", "WIP"]
layout: "page.njk"
description: --
excerpt: >
This example has a local RFCodes Element to send and receive RF Signals using 433 MHz
transmitters and receivers with the <a href="https://github.com/mathertel/rfcodes">RFCodes
library</a>. Some more Elements help to automate light and switch processes.
---
The [RFCodes Element] depends on the [RFCodes library](https://github.com/mathertel/rfcodes)
that you can find also through the Arduino library manager. Be sure to install it before
compiling/verifying/uploading.
* 2 new elements
* not in standard as only used for a gateway
* can receive and send
* needs xxxx library to be installed
* proprietary RF singals can be added
## RF sending device
This example shows how to combine the Elements RFSend and Schedule to build a device that you can use to replace a RF sender
and also includes some basic scheduling features.
In this example you can also find a nice web UI for controlling the configured elements.
## RF probing
include input, UI
## RF receiving
MAP
## configure a command
<!-- reference to rfsend library -->
[RFCodes Element](/elements/rfcodes.md)
|
6073a8c7-1abf-4cf6-8549-e2e009501ad8
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-05-27 10:20:13", "repo_name": "tng016/BankStatementReader", "sub_path": "/src/tests/Transactions/DBSCreditTransactionExtractorTest.java", "file_name": "DBSCreditTransactionExtractorTest.java", "file_ext": "java", "file_size_in_byte": 1062, "line_count": 49, "lang": "en", "doc_type": "code", "blob_id": "273230345ec5e69c047648d809aa3d677d11ff4a", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/tng016/BankStatementReader
| 229
|
FILENAME: DBSCreditTransactionExtractorTest.java
| 0.268941
|
package Transactions;
import PDFBox.ReadPDF;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
import static org.junit.Assert.*;
/**
* Created by tzeyangng on 24/5/17.
*/
public class DBSCreditTransactionExtractorTest {
@Test
public void extract() throws Exception {
File f = new File("Testing Folder/dbsctest.pdf");
String pdfString = "";
try {
pdfString = ReadPDF.readPDF(f.getPath());
System.out.println("Successfully decoded pdf file...");
} catch (IOException e) {
System.out.println(e.getMessage());
//e.printStackTrace();
}
String[] a = pdfString.split("\n");
for (String b:a){
System.out.println(b);
}
//DBSCreditTransactionExtractor DBSC = new DBSCreditTransactionExtractor(pdfString);
}
@Test
public void getMonth() throws Exception {
}
@Test
public void getYear() throws Exception {
}
@Test
public void getBank() throws Exception {
}
}
|
18adc201-f39e-4f9f-a193-3a0cdfaf90a7
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-02-10T23:08:40", "repo_name": "Nudin/wikidata-imports", "sub_path": "/openhub/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1006, "line_count": 30, "lang": "en", "doc_type": "text", "blob_id": "5d47f33f14e1434de64bdfef6ca02f96d2cb92fb", "star_events_count": 1, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/Nudin/wikidata-imports
| 217
|
FILENAME: README.md
| 0.189521
|
Query Open Hub for data for Wikidata
====================================
access.py
Read all items with an Open Hub identifier and search Open Hub for information.
Currently the following informations get imported:
- Code repository
- license
- main programing language
match.py
Search for items missing an Open Hub identifier. Match items when theire
names and websited match.
TODO:
- Log failed API calls
- match:
- Write Game-API for matches with different URLs https://bitbucket.org/magnusmanske/wikidata-game/src/master/public_html/distributed/?at=master
- Improve Query to match all potential items
- Also match on repo-url
- Check different urls for redirects
- access:
- If one of the two API calls fails, don't skip it the item entirely
- Count added repos
- Handle multiple licenses
- Handle multiple repositories
- Add Issue Trackers, Forum, etc.
- Handle cases when data on wikidata and open hub disagrees
|
458b9678-bb66-40d1-ba46-10ef41c6afba
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-02 09:31:49", "repo_name": "GPC-debug/UdShare", "sub_path": "/app/src/main/java/com/ud/share/ui/proxy/ProxyAdapter.java", "file_name": "ProxyAdapter.java", "file_ext": "java", "file_size_in_byte": 1077, "line_count": 34, "lang": "en", "doc_type": "code", "blob_id": "e3358ca5a24c894f4136f85b545b5832759752eb", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/GPC-debug/UdShare
| 235
|
FILENAME: ProxyAdapter.java
| 0.262842
|
package com.ud.share.ui.proxy;
import android.widget.ImageView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ud.share.R;
import com.ud.share.compoents.SegmentView;
import com.ud.share.data.ProxyListBean;
import com.ud.share.databinding.GlideUtils;
import java.util.List;
import androidx.annotation.Nullable;
/**
* Created by PP on 2019-12-10.
*/
public class ProxyAdapter extends BaseQuickAdapter<ProxyListBean.ListBean, BaseViewHolder> {
public ProxyAdapter( @Nullable List<ProxyListBean.ListBean> data) {
super(R.layout.adapter_proxy, data);
}
@Override
protected void convert(BaseViewHolder helper, ProxyListBean.ListBean item) {
helper.setText(R.id.t1,item.name)
.setText(R.id.t2,item.phone)
.setText(R.id.name,item.agent_name);
SegmentView segmentView=helper.getView(R.id.segment);
segmentView.setText(item.level+"级");
GlideUtils.setImage(mContext,item.img_url,(ImageView) helper.getView(R.id.iv));
}
}
|
6b9ba4c3-0673-41d7-8fc0-a2457105e42d
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-26 09:54:55", "repo_name": "nycrera91/data-structures-and-algorithms", "sub_path": "/src/com/nycrera/stack/StackByArray.java", "file_name": "StackByArray.java", "file_ext": "java", "file_size_in_byte": 978, "line_count": 47, "lang": "en", "doc_type": "code", "blob_id": "73739da83227279ce9a58288d99d744e890dcbfa", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/nycrera91/data-structures-and-algorithms
| 243
|
FILENAME: StackByArray.java
| 0.256832
|
package com.nycrera.stack;
/**
* Created by Alperen Asa
* Date: 26.05.2020
* Time: 11:29
* Project Name: data-structures-and-algorithms
*/
public class StackByArray {
private int[] arr;
private int topOfStack; //keeps track of the cell which is last occupied in Array, this will help in insertion/deletion
public StackByArray(int size) {
this.arr = new int[size];
topOfStack = -1;
System.out.println("Successfully created an empty Stack pf size: " + size);
}
public void push(int value) {
}
public void pop() {
}
public boolean isEmptyStack() {
if(topOfStack == -1) {
System.out.println("Stack is empty!");
return true;
} else
return false;
}
public boolean isFullStack() {
if(topOfStack == arr.length - 1) {
System.out.println("Stack is full!");
return true;
} else
return false;
}
}
|
d2c5e4bc-3473-4bbb-a945-7a94dbe08e2c
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-05-14T01:22:49", "repo_name": "thestar-faiz/microexpression", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1228, "line_count": 19, "lang": "en", "doc_type": "text", "blob_id": "98bcd2cbcfa41105426ee7779e8a74117eb43e9b", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/thestar-faiz/microexpression
| 284
|
FILENAME: README.md
| 0.261331
|
# microexpression
Detecting Micro-Expression Emotion in Real Time
Live at https://affectiva-web.surge.sh/
To see the app in action, just open the above link in web browser from your mobile phone. Have fun!
Based on https://github.com/Affectiva/js-sdk-sample-apps and https://jsfiddle.net/affectiva/opyh5e8d/show/
Idea behind this is to use Affectiva SDK to detect users emotions real time. We choose to implement this as Progressive Web App (PWA), keeping note of its increasing support and compatibility nowadays, and also since our use case only needs camera feature. Nothing else, no GPS, no mic whatsoever. Keeping things simple, this decision allows us to have a single codebase, and it will run on multiple platforms: web, android, ios.
For now, we are only interested in emotions of joy and surprise.
Why? Because good things happens when we have these emotions. Imagine a user tries a sample of ice-cream,
and to his/her surprise, likes it. This data is really important for us to plan our future ice-cream flavors :)
Known issues:
Not quite PWA yet, missing the manifest file and app icon
Not quite working on iOS phones, though https://caniuse.com/#feat=serviceworkers says otherwise?
Older phones seems lagging
|
8b4b86ea-4f88-4e63-b3ba-53594ac48db9
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-13 11:32:10", "repo_name": "EasyArch-ls/Concurrent", "sub_path": "/src/main/java/Test/myReentrantLock/MyTest2.java", "file_name": "MyTest2.java", "file_ext": "java", "file_size_in_byte": 1230, "line_count": 39, "lang": "en", "doc_type": "code", "blob_id": "5ae091fede2a9cec93838972a730c66ee82b8874", "star_events_count": 1, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/EasyArch-ls/Concurrent
| 251
|
FILENAME: MyTest2.java
| 0.264358
|
package Test.myReentrantLock;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.ReentrantLock;
/***
* @Author: lisheng
* @Date: 2020/6/10
* @Time: 下午5:13
* @Description:公平锁与非平锁
***/
public class MyTest2 {
public static void main(String[] args) throws InterruptedException {
ReentrantLock reentrantLock=new ReentrantLock(false);
reentrantLock.lock();
for (int i = 0; i <5000 ; i++) {
new Thread(() -> {
reentrantLock.lock();
try {
System.out.println(Thread.currentThread().getName() + "Running");
} finally {
reentrantLock.unlock();
}
}, "t" + i).start();
}
TimeUnit.SECONDS.sleep(1);
new Thread(()->{
System.out.println(Thread.currentThread().getName()+"start");
reentrantLock.lock();
try {
System.out.println(Thread.currentThread().getName()+"Running");
}finally {
reentrantLock.unlock();
}
},"强行插入").start();
reentrantLock.unlock();
}
}
|
97479bcc-19cd-4c72-8983-729b799e8a2c
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-06-06 17:46:17", "repo_name": "Yuushaa/Final", "sub_path": "/proyecto1.1/src/ver1_1/Conexion.java", "file_name": "Conexion.java", "file_ext": "java", "file_size_in_byte": 1115, "line_count": 40, "lang": "en", "doc_type": "code", "blob_id": "1fffa8cd5b862d5441dee0270f4f2581cccf956f", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/Yuushaa/Final
| 216
|
FILENAME: Conexion.java
| 0.242206
|
package ver1_1;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
/**
*
* @author Victor
*/
public class Conexion
{
static String nombre="listafin";
static String user="root";
static String pass="pincelin111";
static String url="jdbc:mysql://localhost/"+nombre;
Connection conexion = null;
public Conexion()
{
try {
Class.forName("com.mysql.jdbc.Driver");
conexion=DriverManager.getConnection(url, user, pass);
if(conexion!=null)
{
System.out.println("Conexion exitosa");
}
} catch (SQLException e) {
System.out.println("Error "+e.getMessage());
} catch (ClassNotFoundException e) {
System.out.println("Error "+e.getMessage());
} catch (Exception e) {
System.out.println("Error "+e.getMessage());
}
}
public Connection getConnection() {
return conexion;
}
public void desconectar() {
conexion = null;
}
}
|
6aed7d72-cd71-42f9-97a2-29af3cce4042
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-01-24 04:26:28", "repo_name": "agrandea/Dead_Meme", "sub_path": "/Main Clicker Concept/TestUpper.java", "file_name": "TestUpper.java", "file_ext": "java", "file_size_in_byte": 1061, "line_count": 39, "lang": "en", "doc_type": "code", "blob_id": "8a449accb387562164ffc43cc5382db6391c4132", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/agrandea/Dead_Meme
| 233
|
FILENAME: TestUpper.java
| 0.262842
|
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
//test to see how HarabmeResearchers or any other passive click can add buttons
//to a seperate JFrame
public class TestUpper extends JFrame
{
private final long serialVersionUID = 1L;
protected JFrame MainJF;
protected JPanel MainJP;
public TestUpper()
{
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
javax.swing.SwingUtilities.invokeLater(new Runnable()
{
public void run() {
createAndShowGUI();
}
});
}
private void createAndShowGUI() {
/*
MainJF = new JFrame();
MainJF.setExtendedState(JFrame.MAXIMIZED_BOTH);
MainJF.setUndecorated(true);
MainJF.setVisible(true);
MainJF.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
*/
MainJP = new JPanel();
setSize(1600,1000);
setDefaultCloseOperation(EXIT_ON_CLOSE);
add(MainJP);
setVisible(true);
}
}
|
5ef4b589-2375-4efe-b1b5-73b33fc22bba
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-02-02 15:18:37", "repo_name": "Hotown/mail-backup", "sub_path": "/src/main/java/com/neuqer/mail/model/MobileGroup.java", "file_name": "MobileGroup.java", "file_ext": "java", "file_size_in_byte": 1065, "line_count": 56, "lang": "en", "doc_type": "code", "blob_id": "2288a0cdfae229ca580ec353bd5e2bdde27f3fa7", "star_events_count": 1, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/Hotown/mail-backup
| 239
|
FILENAME: MobileGroup.java
| 0.212069
|
package com.neuqer.mail.model;
import javax.persistence.Column;
import javax.persistence.Table;
/**
* Created by Hotown on 17/5/22.
*/
@Table(name = "mobile_group")
public class MobileGroup implements BaseModel {
@Column(name = "mobile_id")
private Long mobileId;
@Column(name = "group_id")
private Long groupId;
/**
* 备注
*/
private String remark;
public Long getMobileId() {
return mobileId;
}
public void setMobileId(Long mobileId) {
this.mobileId = mobileId;
}
public Long getGroupId() {
return groupId;
}
public void setGroupId(Long groupId) {
this.groupId = groupId;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
@Override
public String toString() {
return "MobileGroup{" +
"mobileId=" + mobileId +
", groupId=" + groupId +
", remark='" + remark + '\'' +
'}';
}
}
|
5328baaa-a620-4b97-a2f2-ec5a3ebe30ef
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2014-08-02 08:20:03", "repo_name": "pinireznik/antitude", "sub_path": "/agents/skynet/MitosisTest/src/FunctionalAgent.java", "file_name": "FunctionalAgent.java", "file_ext": "java", "file_size_in_byte": 1203, "line_count": 53, "lang": "en", "doc_type": "code", "blob_id": "b87d0c265639a6c6fb0c45a8a1de3b3a99d70f6d", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/pinireznik/antitude
| 274
|
FILENAME: FunctionalAgent.java
| 0.278257
|
import java.util.StringTokenizer;
public class FunctionalAgent implements Comparable<FunctionalAgent> {
private String id;
private String ip;
private String role;
public FunctionalAgent(String id, String port, String role) {
this.id = id;
int index = port.indexOf(':');
this.ip = port.substring(0, index);
this.role = role;
}
public FunctionalAgent(String line) {
StringTokenizer tokenizer = new StringTokenizer(line);
id = tokenizer.nextToken();
ip = tokenizer.nextToken();
int index = ip.indexOf(':');
this.ip = ip.substring(0, index);
tokenizer.nextToken();
role = tokenizer.nextToken();
if(!role.endsWith("functional_agent"))
throw new NotFunctionalAgentException();
}
@Override
public String toString() {
return "FunctionalAgent [id=" + id + ", ip=" + ip + ", role="
+ role + "]";
}
@Override
public boolean equals(Object obj)
{
FunctionalAgent other = (FunctionalAgent)obj;
return id.equals(other.id) && ip.equals(other.ip) && role.equals(other.role);
}
public boolean ip(String ip) {
return this.ip.equals(ip);
}
public int compareTo(FunctionalAgent functionalAgent) {
return this.ip.compareTo(functionalAgent.ip);
}
}
|
6e230c33-9daa-430b-b7a2-14df78afd92f
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-12-12 23:06:15", "repo_name": "guadaran/mateu-mdd", "sub_path": "/mdd-vaadin/src/test/java/io/mateu/mdd/tester/model/wizards/Wizard1Page1.java", "file_name": "Wizard1Page1.java", "file_ext": "java", "file_size_in_byte": 1031, "line_count": 56, "lang": "en", "doc_type": "code", "blob_id": "89167ddb7fbf6083df74984de26490e419ed3fb2", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/guadaran/mateu-mdd
| 235
|
FILENAME: Wizard1Page1.java
| 0.264358
|
package io.mateu.mdd.tester.model.wizards;
import com.google.common.base.Strings;
import io.mateu.mdd.core.annotations.Action;
import io.mateu.mdd.core.annotations.Output;
import io.mateu.mdd.core.interfaces.WizardPage;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import javax.validation.constraints.NotEmpty;
@Getter@Setter@ToString
public class Wizard1Page1 implements WizardPage {
@NotEmpty
private String name;
private int age;
@Output
private int friends;
@Action
public void setRandomName() {
this.name = "Mateu";
}
@Action
public void askForFriends(int numberOfFriends) {
setFriends(numberOfFriends);
}
@Override
public WizardPage getPrevious() {
return null;
}
@Override
public boolean hasNext() {
return true;
}
@Override
public WizardPage getNext() {
return new Wizard1Page2(this);
}
@Override
public boolean isValid() {
return age > 10;
}
}
|
7e749707-9957-4ca3-ad41-93fee8912a5f
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-26 14:44:26", "repo_name": "ClaudioShk/UnderSound", "sub_path": "/app/src/main/java/com/example/shioka/navigationdrawer/Splash/SplashActivity.java", "file_name": "SplashActivity.java", "file_ext": "java", "file_size_in_byte": 1114, "line_count": 33, "lang": "en", "doc_type": "code", "blob_id": "4e3502cf06bbd7dabad3b9402f3ee68b7481bea5", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/ClaudioShk/UnderSound
| 191
|
FILENAME: SplashActivity.java
| 0.228156
|
package com.example.shioka.navigationdrawer.Splash;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import com.example.shioka.navigationdrawer.Activities.LoginActivity;
import com.example.shioka.navigationdrawer.Activities.MainActivity;
import com.example.shioka.navigationdrawer.Utils.Util;
public class SplashActivity extends AppCompatActivity {
private SharedPreferences prefs;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
prefs=getSharedPreferences("Preferences", Context.MODE_PRIVATE);
Intent iLogin = new Intent(this,LoginActivity.class);
Intent iMain = new Intent(this,MainActivity.class);
if(!TextUtils.isEmpty(Util.getUserMailPrefs(prefs)) &&
!TextUtils.isEmpty(Util.getUserPassPrefs(prefs))){
startActivity(iMain);
}else {
startActivity(iLogin);
}
finish();
}
}
|
1e282bf5-42b2-4de3-aa6e-e33cf7699a72
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-05-07 14:41:33", "repo_name": "MarceloFourquet/ThreadBasics", "sub_path": "/src/main/java/com/me/jms/Producer.java", "file_name": "Producer.java", "file_ext": "java", "file_size_in_byte": 1119, "line_count": 43, "lang": "en", "doc_type": "code", "blob_id": "ac97397f04181409511519abc5d27df695117176", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/MarceloFourquet/ThreadBasics
| 213
|
FILENAME: Producer.java
| 0.271252
|
package com.me.jms;
import javax.jms.*;
import org.apache.activemq.ActiveMQConnection;
import org.apache.activemq.ActiveMQConnectionFactory;
public class Producer{
private Connection connection;
private Session session;
private MessageProducer messageProducer;
public void create (String destinationName) throws JMSException{
ConnectionFactory connectionFactory;
Destination destination;
final String brokerURL = ActiveMQConnection.DEFAULT_BROKER_URL;
final int autoAcknowledge = Session.AUTO_ACKNOWLEDGE;
connectionFactory = new ActiveMQConnectionFactory(brokerURL);
connection = connectionFactory.createConnection();
session = connection.createSession(false, autoAcknowledge);
destination = session.createQueue(destinationName);
messageProducer = session.createProducer(destination);
}
public void close() throws JMSException{
connection.close();
}
public void send (String customer) throws JMSException{
TextMessage textMessage = session.createTextMessage(customer);
messageProducer.send(textMessage);
}
}
|
ccc151e2-0164-4876-97e4-38e91a8d2b05
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-07-26 09:20:45", "repo_name": "matheomiquel/RPG-GAME", "sub_path": "/main.java", "file_name": "main.java", "file_ext": "java", "file_size_in_byte": 1094, "line_count": 52, "lang": "en", "doc_type": "code", "blob_id": "f8af9ee5bb0dee749bd8a008c99e5ed7bb4c15c7", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/matheomiquel/RPG-GAME
| 281
|
FILENAME: main.java
| 0.295027
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
public class main{
private String name;
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public static void main(String[] args) {
truc();
}
public static void truc(){
int nbCol = 20;
int nbLig = 20;
cleaner.clean();
Personnage perso = new Personnage();
Map worldMap = new Map(nbCol, nbLig);
Scanner sc1 = new Scanner(System.in);
while(true){
cleaner.clean();
System.out.println("Bougez avec z,q,s,d!");
System.out.println();
worldMap.actualiser();
worldMap.placer(perso.getXPerso(), perso.getYPerso(), 'P');
worldMap.afficher();
System.out.println("vous avez: " + perso.getHp() + "hp");
if(perso.getHp() == 0)
System.out.println("Vous n'avez plus d'HP");
String move = sc1.nextLine();
perso.deplacerPersonnage(move, nbCol, nbLig);
}
}
}
|
40807972-d023-4cb7-8a8f-b5e611e16a52
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-12-14 19:06:37", "repo_name": "idrisssakhi/android-app", "sub_path": "/app/src/main/java/com/example/said/villefuteeips2017/HomeActivity.java", "file_name": "HomeActivity.java", "file_ext": "java", "file_size_in_byte": 1204, "line_count": 34, "lang": "en", "doc_type": "code", "blob_id": "3d60b84b07714182e2923a4a88deeaba575e8e50", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/idrisssakhi/android-app
| 214
|
FILENAME: HomeActivity.java
| 0.228156
|
package com.example.said.villefuteeips2017;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class HomeActivity extends AppCompatActivity {
String emailStored ="";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_home);
SharedPreferences pref = getSharedPreferences("loginData", MODE_PRIVATE);
emailStored = pref.getString("mailAdress", null);
if (emailStored != null){
Toast.makeText(getApplicationContext(), "Bienvenue"+pref.getString(" userName", null), Toast.LENGTH_SHORT).show();
}
Button mapButton= (Button) findViewById(R.id.map_home_button);
mapButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent mapIntent = new Intent(HomeActivity.this, MapHomeActivity.class);
startActivity(mapIntent);
}
});
}
}
|
a5d2776d-493b-4e27-82b3-96cddc8d441d
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-29 15:40:13", "repo_name": "MohammedReda90/section2", "sub_path": "/address.java", "file_name": "address.java", "file_ext": "java", "file_size_in_byte": 986, "line_count": 51, "lang": "en", "doc_type": "code", "blob_id": "a46cb97c106309fc683fa35effa4617a6dd4623a", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/MohammedReda90/section2
| 209
|
FILENAME: address.java
| 0.20947
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package student_inf;
/**
*
* @author hp
*/
public class address {
int StreetNO;
String city;
String country;
public address() {
}
public address(int StreetNO, String city, String country) {
this.StreetNO = StreetNO;
this.city = city;
this.country = country;
}
public int getStreetNO() {
return StreetNO;
}
public void setStreetNO(int StreetNO) {
this.StreetNO = StreetNO;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
}
|
d6ebd812-aa33-4451-9311-58bdbf5bf3b7
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-11-07 08:18:32", "repo_name": "honj51/tn_abt", "sub_path": "/vla-base/src/main/java/com/tuniu/vla/base/tsp/TspErrorCodeException.java", "file_name": "TspErrorCodeException.java", "file_ext": "java", "file_size_in_byte": 1241, "line_count": 50, "lang": "en", "doc_type": "code", "blob_id": "703d96a1a134637c5e171a30083026437ae322ac", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/honj51/tn_abt
| 269
|
FILENAME: TspErrorCodeException.java
| 0.285372
|
package com.tuniu.vla.base.tsp;
/**
* TSP接口返回false异常
*
* @copyright(C) 2006-2012 Tuniu All rights reserved
* @author xiehui
*/
class TspErrorCodeException extends RuntimeException {
private static final long serialVersionUID = -7026557876228668588L;
private String errorCode;
public TspErrorCodeException(String errorCode) {
this.errorCode = errorCode;
}
public TspErrorCodeException(String errorCode, String message) {
super(message);
this.errorCode = errorCode;
}
public TspErrorCodeException(String errorCode, String message, Throwable cause) {
super(message, cause);
this.errorCode = errorCode;
}
public TspErrorCodeException(Throwable cause, String errorCode) {
super(cause);
this.errorCode = errorCode;
}
public String getErrorCode() {
return errorCode;
}
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
@Override
public String getLocalizedMessage() {
StringBuilder buffer = new StringBuilder();
buffer.append(errorCode).append("-");
buffer.append(super.getLocalizedMessage());
return buffer.toString();
}
}
|
dff1a448-7992-4d9f-b193-954d385d02ad
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-21 09:07:58", "repo_name": "hugoYe/JavaLearn", "sub_path": "/app/src/main/java/com/system/business/operation/form/OperationQueryForm.java", "file_name": "OperationQueryForm.java", "file_ext": "java", "file_size_in_byte": 985, "line_count": 45, "lang": "en", "doc_type": "code", "blob_id": "e59e067bba8d058ce1b09f60d87f0c20f9d6f689", "star_events_count": 0, "fork_events_count": 2, "src_encoding": "UTF-8"}
|
https://github.com/hugoYe/JavaLearn
| 208
|
FILENAME: OperationQueryForm.java
| 0.214691
|
package com.system.business.operation.form;
import com.system.common.form.PageForm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
@ApiModel
public class OperationQueryForm extends PageForm {
@ApiModelProperty(value = "用户id列表")
private List<Integer> userIds;
@ApiModelProperty(value = "渠道id列表")
private List<String> channelIds;
@ApiModelProperty(value = "日期")
private List<String> date;
public List<Integer> getUserIds() {
return userIds;
}
public void setUserIds(List<Integer> userIds) {
this.userIds = userIds;
}
public List<String> getChannelIds() {
return channelIds;
}
public void setChannelIds(List<String> channelIds) {
this.channelIds = channelIds;
}
public List<String> getDate() {
return date;
}
public void setDate(List<String> date) {
this.date = date;
}
}
|
9c7915c1-ffd5-4c4e-bb8f-f86b811d8cbf
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-08-10 11:53:58", "repo_name": "gentics/mesh", "sub_path": "/rest-model/src/main/java/com/gentics/mesh/core/rest/common/Permission.java", "file_name": "Permission.java", "file_ext": "java", "file_size_in_byte": 1066, "line_count": 65, "lang": "en", "doc_type": "code", "blob_id": "a1d5f131f05d3542b9a86159064ba7f7ecc64aed", "star_events_count": 601, "fork_events_count": 136, "src_encoding": "UTF-8"}
|
https://github.com/gentics/mesh
| 264
|
FILENAME: Permission.java
| 0.286169
|
package com.gentics.mesh.core.rest.common;
/**
* REST model for permissions.
*/
public enum Permission {
CREATE("create"),
READ("read"),
UPDATE("update"),
DELETE("delete"),
READ_PUBLISHED("readpublished"),
PUBLISH("publish");
private String name;
/**
* Create a new permission
*
* @param name
* human readable name
*/
Permission(String name) {
this.name = name;
}
/**
* Return the human readable name of the permission.
*
* @return
*/
public String getName() {
return name;
}
/**
* Convert the human readable permission name back into a graph permission object.
*
* @param name
* @return
*/
public static Permission valueOfName(String name) {
for (Permission p : Permission.values()) {
if (name.equals(p.getName())) {
return p;
}
}
return null;
}
/**
* Return the array with common permissions (excluding special content permissions).
*
* @return
*/
public static Permission[] basicPermissions() {
return new Permission[] { CREATE, READ, UPDATE, DELETE };
}
}
|
56bb7bd5-ae25-46e0-a314-bc38955fdeeb
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-06 20:15:37", "repo_name": "meeta0311/Assessment", "sub_path": "/src/main/java/com/example/demo/entity/User.java", "file_name": "User.java", "file_ext": "java", "file_size_in_byte": 1067, "line_count": 57, "lang": "en", "doc_type": "code", "blob_id": "19e2e7efc4a18e8645f64d707685f0a96f07ce40", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/meeta0311/Assessment
| 238
|
FILENAME: User.java
| 0.252384
|
package com.example.demo.entity;
import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
/**
* Created by Meeta on 05/10/19.
*/
@Entity
public class User implements Serializable{
private static final long serialVersionUID = 0x62A6DA99AABDA8A8L;
@Column
@GeneratedValue(strategy = GenerationType.AUTO)
@Id
private Integer userId;
@Column
private String userName;
@Column
private ViewData viewData;
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public User() {
}
public User(String userName, ViewData viewData) {
this.userName = userName;
this.viewData = viewData;
}
public ViewData getViewData() {
return viewData;
}
public void setViewData(ViewData viewData) {
this.viewData = viewData;
}
}
|
10735624-1af6-47e7-baee-71a31989eb9a
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-29 03:00:17", "repo_name": "Linklmm/thinkInJava", "sub_path": "/src/main/java/com/test/MyInvocationHandler.java", "file_name": "MyInvocationHandler.java", "file_ext": "java", "file_size_in_byte": 1222, "line_count": 44, "lang": "en", "doc_type": "code", "blob_id": "ebc3c06856e5b6be4f8aefa69c93df8720df5655", "star_events_count": 1, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/Linklmm/thinkInJava
| 262
|
FILENAME: MyInvocationHandler.java
| 0.291787
|
package com.test;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
/**
* 版权声明:Copyright(c) 2019
*
* @program: thinkInJava
* @Author myFlowerYourGrass
* @Date 2019-08-05 08:58
* @Version 1.0
* @Description jdk动态代理
*/
public class MyInvocationHandler implements InvocationHandler {
private Object target;
public MyInvocationHandler(Object target) {
super();
this.target = target;
}
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
System.out.println("======begin======");
Object result = method.invoke(target,args);
System.out.println("=======end========");
return result;
}
public Object getProxy(){
return Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader()
,target.getClass().getInterfaces(),this);
}
public static void main(String[] args) {
UserService service = new UserServiceImpl();
MyInvocationHandler handler = new MyInvocationHandler(service);
UserService proxy = (UserService) handler.getProxy();
proxy.add();
}
}
|
471e5d0b-930c-42b4-a3be-6d4904de20e9
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-10-15 13:17:26", "repo_name": "chrishaining/Stereo", "sub_path": "/src/main/java/stereo/Stereo.java", "file_name": "Stereo.java", "file_ext": "java", "file_size_in_byte": 1229, "line_count": 52, "lang": "en", "doc_type": "code", "blob_id": "39f6ae085e304ee2a6d2fd8a8696bfee6926800a", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/chrishaining/Stereo
| 274
|
FILENAME: Stereo.java
| 0.282196
|
package stereo;
import components.CassetteDeck;
import components.Component;
import components.Radio;
public class Stereo {
private String name;
private CassetteDeck cassetteDeck;
private Radio radio;
// private String model;
// private String make;
public Stereo(String name, CassetteDeck cassetteDeck, Radio radio) {
this.name = name;
// this.cassetteDeck = new CassetteDeck(model, make);
// this.radio = new Radio(String model, String make);
}
public String getName() {
return name;
}
public void addCassetteDeck(CassetteDeck cassetteDeck) {
this.cassetteDeck = cassetteDeck;
}
public String getCassetteDeckModel() {
return this.cassetteDeck.getModel();
}
public void addRadio(Radio radio) {
this.radio = radio;
}
public String getRadioModel() {
return this.radio.getModel();
}
public String playCassetteDeck(String song) {
if (this.cassetteDeck != null) {
return this.cassetteDeck.play(song);
}
return "Cassette Deck is not connected.";
}
// public String checkRadioWorks(String station) {
// return this.radio.tune(station);
// }
}
|
f4ff1307-10cd-42d5-84ac-bcff388d385f
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-04-09 03:27:14", "repo_name": "hweiyu/mybatis-component", "sub_path": "/src/main/java/hwy/handle/factory/DaoFactory.java", "file_name": "DaoFactory.java", "file_ext": "java", "file_size_in_byte": 975, "line_count": 34, "lang": "en", "doc_type": "code", "blob_id": "4075360c77c23fbe8ee4c8a3ea287124a3e46e76", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/hweiyu/mybatis-component
| 197
|
FILENAME: DaoFactory.java
| 0.23092
|
package hwy.handle.factory;
import hwy.constant.TemplateCons;
import hwy.handle.AbstractFactory;
import hwy.model.Bean;
import hwy.model.DaoBean;
import hwy.model.param.ConfigParam;
import hwy.util.StringUtil;
/**
* dao工厂
*/
public class DaoFactory extends AbstractFactory {
private ConfigParam config;
public DaoFactory(ConfigParam config) {
this.config = config;
}
@Override
public Bean getBean() {
DaoBean bean = new DaoBean();
String table = config.getConnect().getTable();
bean.setTable(table);
bean.setPackagePath(String.format(TemplateCons.DAO_PACKAGE_TEMPLATE, config.getPackagePath()));
String className = StringUtil.toHumpFormatWithFirstUpper(table);
bean.setClassName(className);
bean.setModelParam(StringUtil.toHumpFormat(className));
bean.setModelPath(String.format(TemplateCons.MODEL_PACKAGE_TEMPLATE, config.getPackagePath()));
return bean;
}
}
|
0e509f1b-9dfb-47e2-9488-1130b82c8644
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-01-30 09:29:54", "repo_name": "daggeto/Canals", "sub_path": "/src/main/java/com/daggeto/canals/domain/GraphNode.java", "file_name": "GraphNode.java", "file_ext": "java", "file_size_in_byte": 1002, "line_count": 58, "lang": "en", "doc_type": "code", "blob_id": "69aff41d9c8e3c303ef5aad354fb82b79f62b72d", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/daggeto/Canals
| 235
|
FILENAME: GraphNode.java
| 0.276691
|
package com.daggeto.canals.domain;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* Graph Node entity
*/
public class GraphNode {
/**
* Unique name of node
*/
private String name;
/**
* Adjacent nodes mapped with distances
*/
private Map<GraphNode, Integer> adjacentNodes;
public GraphNode(String name) {
this.name = name;
this.adjacentNodes = new LinkedHashMap<>();
}
public void addAdjacentNode(GraphNode node, Integer weight) {
adjacentNodes.put(node, weight);
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Map<GraphNode, Integer> getAdjacentNodes() {
return adjacentNodes;
}
@Override
public boolean equals(Object obj) {
if (!(obj instanceof GraphNode)) {
return false;
}
GraphNode compNode = (GraphNode) obj;
return name.equals(compNode.getName());
}
@Override
public String toString() {
return getName();
}
}
|
fa1fc2d6-a07b-4e53-aa46-9fa24ecf4ff2
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-16 01:46:18", "repo_name": "hzr958/myProjects", "sub_path": "/scmv6/web-file/src/main/java/com/smate/web/file/dao/ShareStatisticsQueryDao.java", "file_name": "ShareStatisticsQueryDao.java", "file_ext": "java", "file_size_in_byte": 1150, "line_count": 39, "lang": "zh", "doc_type": "code", "blob_id": "b3412647561b7e7d51bf8c30c5fe695a52c779aa", "star_events_count": 2, "fork_events_count": 3, "src_encoding": "UTF-8"}
|
https://github.com/hzr958/myProjects
| 318
|
FILENAME: ShareStatisticsQueryDao.java
| 0.290981
|
package com.smate.web.file.dao;
import org.springframework.stereotype.Repository;
import com.smate.core.base.utils.data.SnsHibernateDao;
import com.smate.web.file.model.ShareStatisticsQuery;
/**
* 共享统计模块Dao
*
* @author zk
*
*/
@Repository
public class ShareStatisticsQueryDao extends SnsHibernateDao<ShareStatisticsQuery, Long> {
/**
* 判断当前用户是否被成果所有者分享指定的成果
*
* @author houchuanjie
* @date 2017年12月22日 下午8:14:38
* @param currPsnId 当前用户
* @param pubOwnerId 成果所有者
* @param pubId 成果id
* @return
*/
public boolean isPubBeingShared(Long currPsnId, Long pubOwnerId, Long pubId) {
String sql =
"select DISTINCT 1 from share_statistics t where t.action_type in(1,2) and t.action_key = :pubId and t.share_psn_id = :sharePsnId and t.psn_id = :pubOwnerId";
Object o = getSession().createSQLQuery(sql).setParameter("pubOwnerId", pubOwnerId).setParameter("pubId", pubId)
.setParameter("sharePsnId", currPsnId).uniqueResult();
if (o != null) {
return true;
} else {
return false;
}
}
}
|
a5cfa9b5-27ab-40a8-95f1-14c1e4d4bda7
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2023-07-10 07:54:37", "repo_name": "tigerguixh/DailyDemo", "sub_path": "/app/src/main/java/tiger/com/lp/dailydemo/designpatterns/command/day1/Client.java", "file_name": "Client.java", "file_ext": "java", "file_size_in_byte": 989, "line_count": 37, "lang": "en", "doc_type": "code", "blob_id": "cbc8dc230c9f31a702a2d63e1f07a91703abdc78", "star_events_count": 2, "fork_events_count": 1, "src_encoding": "UTF-8"}
|
https://github.com/tigerguixh/DailyDemo
| 216
|
FILENAME: Client.java
| 0.291787
|
package tiger.com.lp.dailydemo.designpatterns.command.day1;
/**
* @author gxh
* @email xunhu.gui@ds365.com
* @date 2018/3/14 0014
* @description
*/
public class Client {
public static void main(String[] args) {
Tv tv = new Tv();
CommandOn commandOn = new CommandOn();
commandOn.setTv(tv);
CommandOff commandOff = new CommandOff();
commandOff.setTv(tv);
CommandChangeChannel commandChangeChannel = new CommandChangeChannel();
commandChangeChannel.setTv(tv);
commandChangeChannel.setChannel(1);
MacroCommand macroCommand = new MacroTvCommand();
macroCommand.add(commandOn);
macroCommand.add(commandOff);
Controller controller = new Controller(commandOn, commandOff, commandChangeChannel);
controller.setMarcoCommand(macroCommand);
controller.turnChangeChannel();
controller.turnOn();
controller.turnOff();
controller.turnMarco();
}
}
|
67cd061d-9443-41e3-b6b6-770a8badd7ab
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-09-24 10:01:08", "repo_name": "1574582016/web-project-finance", "sub_path": "/web-project-web/src/main/java/com/sky/scheduler/StockCodeScheduler.java", "file_name": "StockCodeScheduler.java", "file_ext": "java", "file_size_in_byte": 1212, "line_count": 37, "lang": "en", "doc_type": "code", "blob_id": "2b2bd9e4fb4613a28de92c850d591abbd616717e", "star_events_count": 0, "fork_events_count": 2, "src_encoding": "UTF-8"}
|
https://github.com/1574582016/web-project-finance
| 250
|
FILENAME: StockCodeScheduler.java
| 0.273574
|
package com.sky.scheduler;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.sky.model.StockMarketClass;
import com.sky.service.StockCodeService;
import com.sky.service.StockMarketClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* Created by ThinkPad on 2019/9/16.
*/
//@Component
@EnableScheduling
public class StockCodeScheduler {
@Autowired
private StockMarketClassService stockMarketClassService ;
@Autowired
private StockCodeService stockCodeService ;
@Scheduled(fixedRate = 1000 * 60 * 120 )
public void processStockCode(){
EntityWrapper<StockMarketClass> entityWrapper = new EntityWrapper();
entityWrapper.where("class_type = '行业板块'");
List<StockMarketClass> codeList = stockMarketClassService.selectList(entityWrapper);
for(StockMarketClass marketClass : codeList){
stockCodeService.spiderStockCode(marketClass.getClassCode() ,marketClass.getClassName());
}
}
}
|
b1809130-3abb-4ae6-9e08-fc335eba9477
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-06-16 19:09:54", "repo_name": "s19971014y/mytaotao", "sub_path": "/taotao-common/src/main/java/com/taotao/utils/JedisGetUtils.java", "file_name": "JedisGetUtils.java", "file_ext": "java", "file_size_in_byte": 1263, "line_count": 44, "lang": "en", "doc_type": "code", "blob_id": "74ded75264f3d83e29fc1859274d00ab94827b91", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/s19971014y/mytaotao
| 402
|
FILENAME: JedisGetUtils.java
| 0.249447
|
package com.taotao.utils;
import redis.clients.jedis.*;
import java.util.HashSet;
import java.util.Set;
public class JedisGetUtils {
static{
//单机版
JedisPoolConfig config = new JedisPoolConfig();
config.setMaxWaitMillis(100000);
config.setMaxTotal(50);
jedisPool = new JedisPool(config,"47.101.212.18",7000);
//集群版
Set<HostAndPort> set = new HashSet<>();
set.add(new HostAndPort("47.101.212.18",7001));
set.add(new HostAndPort("47.101.212.18",7002));
set.add(new HostAndPort("47.101.212.18",7003));
set.add(new HostAndPort("47.101.212.18",7004));
set.add(new HostAndPort("47.101.212.18",7005));
set.add(new HostAndPort("47.101.212.18",7006));
jedisCluster = new JedisCluster(set);
}
//集群版Jedis
private static JedisCluster jedisCluster;
//单机版的Jedis池
private static JedisPool jedisPool;
//单机的Jedis
private static Jedis jedis = jedisPool.getResource();
public static Jedis getJedis() {
return jedis;
}
public static JedisCluster getJedisCluster() {
return jedisCluster;
}
public static JedisPool getJedisPool() {
return jedisPool;
}
}
|
71bb4ee3-8b35-4f78-abea-a0b5ff93bff3
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-12-08 14:02:16", "repo_name": "GavynZhang/MVPZhihuDaily", "sub_path": "/app/src/main/java/com/gavynzhang/mvpzhihudaily/utils/convertArticle/LatestToArticleIndices.java", "file_name": "LatestToArticleIndices.java", "file_ext": "java", "file_size_in_byte": 1041, "line_count": 29, "lang": "en", "doc_type": "code", "blob_id": "a09883344b8adb2fa5fb4e95fef132016430afb1", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/GavynZhang/MVPZhihuDaily
| 236
|
FILENAME: LatestToArticleIndices.java
| 0.29584
|
package com.gavynzhang.mvpzhihudaily.utils.convertArticle;
import com.gavynzhang.mvpzhihudaily.model.entities.ArticleIndex;
import com.gavynzhang.mvpzhihudaily.model.entities.latest.Latest;
import java.util.ArrayList;
import java.util.List;
/**
* Created by GavynZhang on 2016/11/25 1:42.
*/
public class LatestToArticleIndices {
public static List<ArticleIndex> convertToArticleIndices(Latest latest){
List<ArticleIndex> articleIndices = new ArrayList<>();
int size = latest.getStories().size();
String date = latest.getDate();
for(int i = 0; i < size; i++){
ArticleIndex articleIndex = new ArticleIndex();
articleIndex.setDate(date);
articleIndex.setId(String.valueOf(latest.getStories().get(i).getId()));
articleIndex.setImage_url(latest.getStories().get(i).getImages().get(0));
articleIndex.setTitle(latest.getStories().get(i).getTitle());
articleIndices.add(articleIndex);
}
return articleIndices;
}
}
|
29e40ded-2046-444d-a5db-7f954f9c21f6
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-11-01 12:55:11", "repo_name": "Ville-VeikkoN/gymdiary", "sub_path": "/app/src/main/java/fi/tuni/gymdiary/mygymdiary/exercise/ConfirmDeleteDialog.java", "file_name": "ConfirmDeleteDialog.java", "file_ext": "java", "file_size_in_byte": 1203, "line_count": 33, "lang": "en", "doc_type": "code", "blob_id": "0802b93953639f1f653251ae2bfcdf873506c2bc", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/Ville-VeikkoN/gymdiary
| 183
|
FILENAME: ConfirmDeleteDialog.java
| 0.23092
|
package fi.tuni.gymdiary.mygymdiary.exercise;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
public class ConfirmDeleteDialog extends DialogFragment {
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
final int setId = getArguments().getInt("setId");
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
builder.setMessage("Confirm delete")
.setPositiveButton("Delete", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
ExerciseActivity exerciseActivity = (ExerciseActivity) getActivity();
exerciseActivity.deleteSet(setId);
dismiss();
}
})
.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dismiss();
}
});
return builder.create();
}
}
|
04d51652-8dbc-4622-88c0-4cae0ec0ab6b
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-10-13 06:39:14", "repo_name": "AnkitZemoso/SolidPrinciples", "sub_path": "/src/ankit/soliddemo/withsolid/WithSolid.java", "file_name": "WithSolid.java", "file_ext": "java", "file_size_in_byte": 1063, "line_count": 29, "lang": "en", "doc_type": "code", "blob_id": "37ccbaf4196f2ed39a1fbed9d56bba012a3109eb", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/AnkitZemoso/SolidPrinciples
| 195
|
FILENAME: WithSolid.java
| 0.29584
|
package ankit.soliddemo.withsolid;
public class WithSolid {
public static void main(String[] args) {
System.out.println("This follows Single responsibility Principle.");
PrinterService printerService=new PrinterService();
printerService.printPassbook();
System.out.println("This follows open-closed Principle.");
NotificationService notificationService=new WhatsAppNotificationService();
notificationService.sendNotification();
System.out.println("This follows Liskov-substitution Principle.");
System.out.println("This follows Interface Segregation Principle.");
UPIPayments upiPayments=new GooglePay();
UPIPayments paytm=new Paytm();
paytm.getScratchCard();
upiPayments.getScratchCard();
System.out.println("This follows Dependency inversion Principle.");
BankCard bankCard=new CreditCard();
ShoppingMall shoppingMall=new ShoppingMall(bankCard);
shoppingMall.doPurchaseSomething(5000);
}
}
|
c8764ca5-507e-4085-afa2-00f788fe6585
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-14 22:48:26", "repo_name": "ravil1234/TechWork", "sub_path": "/app/src/main/java/com/example/techwork/CategoryAdapter.java", "file_name": "CategoryAdapter.java", "file_ext": "java", "file_size_in_byte": 1070, "line_count": 44, "lang": "en", "doc_type": "code", "blob_id": "6416af9d5a4ad0c82478621a915a32d227f36792", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/ravil1234/TechWork
| 199
|
FILENAME: CategoryAdapter.java
| 0.261331
|
package com.example.techwork;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;
@SuppressWarnings("ALL")
public class CategoryAdapter extends FragmentPagerAdapter {
Context context;
public CategoryAdapter(@NonNull FragmentManager fm, Context c) {
super(fm);
context=c;
}
@NonNull
@Override
public Fragment getItem(int position) {
if(position==0)
return new Upcoming_Workshop();
else
return new Archives();
}
@Override
public int getCount() {
return 2;
}
@Override
public CharSequence getPageTitle(int position) {
// Generate title based on item position
if(position==0)
{
return context.getString(R.string.upcoming_work);
}
else
{
return context.getString(R.string.archives);
}
}
}
|
bb334d73-8cb2-40e1-8016-262baa9cc094
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-05-28 15:52:25", "repo_name": "thuyltm3/firstcucumber_v2", "sub_path": "/src/test/java/firstcucumber/pageobjects/POM_LoginPage.java", "file_name": "POM_LoginPage.java", "file_ext": "java", "file_size_in_byte": 1230, "line_count": 49, "lang": "en", "doc_type": "code", "blob_id": "7de962304ed0a95ea3c065aec15e970392114dbf", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/thuyltm3/firstcucumber_v2
| 245
|
FILENAME: POM_LoginPage.java
| 0.282988
|
package firstcucumber.pageobjects;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class POM_LoginPage {
/*
* Với kiểu Page Object, Sẽ chứa 2 phần:
* - Các định nghĩa locator
* - Các method để tương tác với các locator này
* */
WebDriver driver;
public POM_LoginPage(WebDriver driver) {
this.driver = driver;
}
// Define locator
By usernameLoc = By.cssSelector("input[type=\"Email\"]");
By passwordLoc = By.cssSelector("input[type=\"password\"]");
By btnLoginLoc = By.cssSelector("button.btn-login");
// Define method
public void InputUserName(String username){
WebElement txtUsername = this.driver.findElement(usernameLoc);
txtUsername.clear();
txtUsername.sendKeys(username);
}
public void InputPassword(String password){
WebElement txtPassword = this.driver.findElement(passwordLoc);
txtPassword.clear();
txtPassword.sendKeys(password);
}
public void Login(){
this.driver.findElement(btnLoginLoc).click();
}
public void getUserName(){
}
public void getMessage(){
}
}
|
b424405e-9019-44a2-b43a-84ff0507b143
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-11-27 03:12:21", "repo_name": "Marlysonn/MoraisLibrary", "sub_path": "/src/main/java/TesteBanco/UpdateDB.java", "file_name": "UpdateDB.java", "file_ext": "java", "file_size_in_byte": 1228, "line_count": 45, "lang": "en", "doc_type": "code", "blob_id": "577c9c85a9d72c8acf33502e4fe1dba047842ddd", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/Marlysonn/MoraisLibrary
| 215
|
FILENAME: UpdateDB.java
| 0.276691
|
package TesteBanco;
import conexoes.ConexaoSQLite;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class UpdateDB {
public static void main(String[] args) {
ConexaoSQLite conexaoSQLite = new ConexaoSQLite();
conexaoSQLite.conectar();
PreparedStatement preparedStatement = null;
String sql = "UPDATE tbl_pessoa"
+ " SET "
+ " nome = ?,"
+ " idade = ?,"
+ " WHERE id = ?";
try{
preparedStatement = conexaoSQLite.criarPreparedStatement(sql);
preparedStatement.setString(1, "Marlyson");
preparedStatement.setInt(2, 30);
preparedStatement.setInt(3, 1);
preparedStatement.executeUpdate();
System.out.println("PESSOA ATUALIZADA");
}catch(SQLException e){
e.printStackTrace();
}finally{
try{
preparedStatement.close();
conexaoSQLite.desconectar();
}catch(SQLException ex){
ex.printStackTrace();
}
}
}
}
|
70072d99-bfc7-4083-be12-ece50cca8b36
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2016-01-27 20:42:06", "repo_name": "AlbertoMApps/finalProject", "sub_path": "/app/src/main/java/com/example/tae_user0/finalprojectapp1/dbModel/Favourites.java", "file_name": "Favourites.java", "file_ext": "java", "file_size_in_byte": 1118, "line_count": 47, "lang": "en", "doc_type": "code", "blob_id": "ed6243f089023ba727ef337c337fef8078d4fbf0", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/AlbertoMApps/finalProject
| 245
|
FILENAME: Favourites.java
| 0.220007
|
package com.example.tae_user0.finalprojectapp1.dbModel;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
/**
* Created by TAE_user0 on 21/01/2016.
*/
@DatabaseTable
public class Favourites {
public static final String ID = "id";
public static final String RESTNAME = "restName";
public static final String STREET = "street";
@DatabaseField(generatedId = true, columnName = ID)
private int id;
@DatabaseField(columnName = RESTNAME)
private String restName;
@DatabaseField(columnName = STREET)
private String street;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getRestName() {
return this.restName;
}
public void setRestName(String name) {
this.restName = name;
}
public String getStreet() {
return this.street;
}
public void setStreet(String street) {
this.street = street;
}
}
|
4cce1dda-4566-4734-a3c1-7a2c264a29fb
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2018-12-17T02:20:09", "repo_name": "KyleHutchinson/demo", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 984, "line_count": 27, "lang": "en", "doc_type": "text", "blob_id": "280ffc9e9aaef990dc137dd1351a74dc651854d4", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/KyleHutchinson/demo
| 211
|
FILENAME: README.md
| 0.264358
|
# demo
A demo project from Kids Can Code
'''
Curious, Creative, Tenacious(requires hopefulness)
**********Gameplay ideas:
Jump on enemy head to create jump boost using power up code
Randomize jump sound
Add fake platforms that don't allow you to land on them.
Add a cactus that will kill the player if he collides with it
Change the mobs from the flying machines to the female bunny
**********Bugs
when you get launched by powerup or head jump player sometimes snaps to platform abruptly
happens when hitting jump during power up boostd
Sometimes the real platforms get hidden behind the fake platforms so you can't actually tell if there is a platform there or not.
**********Gameplay fixes
Platform randomness leaves player in limbo for extended periods
Lower spawn location so player can get out of random stuck situations
**********Features
Powerup that lets you jump higher when you collide with the powerup
Fake platforms that don't allow you to actually land on them
'''
|
ce44ca0c-aa0e-4663-942a-6422c5fc878f
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-11-06 17:10:43", "repo_name": "szalaimihaly/worshipsearcher", "sub_path": "/app/src/main/java/szalaimihaly/hu/worshipsearcher/WorshipListActivity.java", "file_name": "WorshipListActivity.java", "file_ext": "java", "file_size_in_byte": 977, "line_count": 35, "lang": "en", "doc_type": "code", "blob_id": "e1bb1cfa36404d4548d63fdda82ff2afc8ed6862", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/szalaimihaly/worshipsearcher
| 200
|
FILENAME: WorshipListActivity.java
| 0.233706
|
package szalaimihaly.hu.worshipsearcher;
/**
* Created by Mihaly on 2015.04.24..
*/
import android.app.ListActivity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import java.util.ArrayList;
public class WorshipListActivity extends ListActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = getIntent();
Bundle bundle = intent.getExtras();
MainActivity.getDbl().open();
ArrayList<Worship> worshipList =
MainActivity.getDbl().getWorshipByChurch(bundle.getInt("churchid"));
WorshipAdapter worshipAdapter =
new WorshipAdapter(getApplicationContext(),worshipList);
setListAdapter(worshipAdapter);
MainActivity.getDbl().close();
getListView().setBackgroundColor(Color.rgb(58, 139, 189));
}
}
|
4b9689cd-6c06-4f91-aa42-c97e5a75202c
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2020-07-08T18:07:36", "repo_name": "Sanchit-Trivedi/Unix-Shell", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1095, "line_count": 19, "lang": "en", "doc_type": "text", "blob_id": "e9416657b7accffdb1559e3ca219b47df29755bc", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/Sanchit-Trivedi/Unix-Shell
| 240
|
FILENAME: README.md
| 0.281406
|
# Unix-Shell
A basic Shell written in C that can handle I/O redirection and pipes.<br>
<br>
### The shell can handle the commands like this example <br/>
`/bin/ls | /bin/sort | /bin/uniq | /usr/bin/wc -l 2>&1 1>output.txt`
### The following functionalities are supported : - <br>
Syntax | Meaning
------------ | -------------
command | executes the command and waits for the command to finish, prints error message if the command is invalid
command>filename | redirect stdout to file filename. If the file does not exist create one, otherwise, overwrite the existing file
command >> filename | If the filename already exists append the stdout output, otherwise, create a new file
1>filename | redirect stdout to filename
2>filename | redirect stderr to filename
2>&1 | redirect stderr to stdout
command<filename | use file descriptor 0 (stdin) for filename. If command tries to read from stdin, effectively it will read from filename.
\| | pipe command
exit | exit from the shell program
|
2e3aace4-fabf-400e-b6e0-dc49023ad21a
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-02 10:19:18", "repo_name": "psinfo07/OCCS", "sub_path": "/src/main/java/com/cusat/hackathon/servlets/Logout.java", "file_name": "Logout.java", "file_ext": "java", "file_size_in_byte": 985, "line_count": 37, "lang": "en", "doc_type": "code", "blob_id": "b71b5e95ac009816abfa682a10c225c1eddaae6c", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/psinfo07/OCCS
| 156
|
FILENAME: Logout.java
| 0.246533
|
package com.cusat.hackathon.servlets;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
*
* @author lenovo
*
*/
public class Logout extends HttpServlet {
private static final long serialVersionUID = 1L;
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/html");
request.setAttribute("key","You are logged out successfully !!!");
request.getRequestDispatcher("index.jsp").include(request, response);
HttpSession session=request.getSession();
if(session != null){
session.removeAttribute("user");
session.invalidate();
}
}
}
|
4f6a87cc-aaef-4623-882a-1fc0709dcda2
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-05-19 13:33:47", "repo_name": "MeiyouSunny/Metron", "sub_path": "/app/src/main/java/com/metron/xiaoming/ui/dialog/DialogNoEncryptedWallet.java", "file_name": "DialogNoEncryptedWallet.java", "file_ext": "java", "file_size_in_byte": 989, "line_count": 42, "lang": "en", "doc_type": "code", "blob_id": "f6ce698ac816cd54242a30f48ba05d6a5546d750", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/MeiyouSunny/Metron
| 206
|
FILENAME: DialogNoEncryptedWallet.java
| 0.214691
|
package com.metron.xiaoming.ui.dialog;
import android.view.View;
import com.metron.xiaoming.R;
import com.metron.xiaoming.base.BaseDialogHolder;
import com.metron.xiaoming.databinding.DialogNoEncryptedWalletBinding;
/**
* 未设置加密钱包
*/
public class DialogNoEncryptedWallet extends BaseDialogHolder<DialogNoEncryptedWalletBinding> {
private OnSetWalletListener mListener;
public DialogNoEncryptedWallet(OnSetWalletListener listener) {
super(R.layout.dialog_no_encrypted_wallet);
mListener = listener;
}
@Override
public void onViewCreated(View view) {
super.onViewCreated(view);
}
@Override
public void click(View view) {
switch (view.getId()) {
case R.id.goSet:
if (mListener != null)
mListener.onSetWallet();
dismiss();
break;
}
}
public interface OnSetWalletListener {
void onSetWallet();
}
}
|
7c775b4e-64db-4514-a540-81a58b7bbe20
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2015-08-23 06:51:43", "repo_name": "BGCX262/zsey-svn-to-git", "sub_path": "/trunk/ducrm/src/cn/com/kington/bean/basic/CategorySO.java", "file_name": "CategorySO.java", "file_ext": "java", "file_size_in_byte": 1137, "line_count": 64, "lang": "en", "doc_type": "code", "blob_id": "fce252bf46757fd5c69494f89a7d3fe7271b136c", "star_events_count": 1, "fork_events_count": 1, "src_encoding": "GB18030"}
|
https://github.com/BGCX262/zsey-svn-to-git
| 279
|
FILENAME: CategorySO.java
| 0.267408
|
package cn.com.kington.bean.basic;
import cn.com.kington.common.SOSupport;
import cn.com.kington.common.PublicType.Sort;
/**
* 分类种类
*
* @author 杜永生
*
*/
public class CategorySO extends SOSupport {
private static final long serialVersionUID = 3351166509064178967L;
private String code;// 编号
private String name;// 名称
private Category category;// 所属分类
private Sort sort;// 分类
public CategorySO() {
super();
}
public CategorySO(String code, String name, Category category, Sort sort) {
super();
this.code = code;
this.name = name;
this.category = category;
this.sort = sort;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Category getCategory() {
return category;
}
public void setCategory(Category category) {
this.category = category;
}
public Sort getSort() {
return sort;
}
public void setSort(Sort sort) {
this.sort = sort;
}
}
|
50208443-4411-4af8-a596-f5bb7128b419
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2017-04-05 01:56:58", "repo_name": "getonecode/mvcx", "sub_path": "/core/src/main/java/guda/mvcx/core/ext/freemarker/EnumToMapDirective.java", "file_name": "EnumToMapDirective.java", "file_ext": "java", "file_size_in_byte": 1204, "line_count": 33, "lang": "en", "doc_type": "code", "blob_id": "2f95fd374d22316de5e1f77ec90af295deff6249", "star_events_count": 10, "fork_events_count": 4, "src_encoding": "UTF-8"}
|
https://github.com/getonecode/mvcx
| 259
|
FILENAME: EnumToMapDirective.java
| 0.287768
|
package guda.mvcx.core.ext.freemarker;
import freemarker.core.Environment;
import freemarker.template.TemplateDirectiveBody;
import freemarker.template.TemplateDirectiveModel;
import freemarker.template.TemplateException;
import freemarker.template.TemplateModel;
import guda.mvcx.core.util.EnumUtil;
import java.io.IOException;
import java.util.Map;
/**
* Created by well on 2017/3/24.
*/
public class EnumToMapDirective implements TemplateDirectiveModel {
@Override
public void execute(Environment env, Map params, TemplateModel[] loopVars, TemplateDirectiveBody body) throws TemplateException, IOException {
if (params == null || params.size() == 0) {
throw new TemplateException("params can not be empty", env);
}
String clazz= params.get("class").toString();
String keyMethod= params.get("keyMethod").toString();
String valueMethod= params.get("valueMethod").toString();
Map<Object, Object> objectObjectMap = EnumUtil.toMap(clazz, keyMethod, valueMethod);
env.setVariable("inner_map", env.getObjectWrapper().wrap(objectObjectMap));
if (body != null) {
body.render(env.getOut());
}
}
}
|
74c47e21-07ed-41a8-a66b-5a4d940ade95
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2010-05-20 11:10:18", "repo_name": "nelsonjchen/RedMenu", "sub_path": "/src/com/mindflakes/TeamRED/server/MealMenuFeedRouter.java", "file_name": "MealMenuFeedRouter.java", "file_ext": "java", "file_size_in_byte": 1041, "line_count": 37, "lang": "en", "doc_type": "code", "blob_id": "ed8e08aad1d92323ed1b38c093067535ea9c3064", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/nelsonjchen/RedMenu
| 215
|
FILENAME: MealMenuFeedRouter.java
| 0.284576
|
package com.mindflakes.TeamRED.server;
import java.io.IOException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.apphosting.utils.remoteapi.RemoteApiPb.Request;
@SuppressWarnings("serial")
public class MealMenuFeedRouter extends HttpServlet{
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException, ServletException{
final String path = req.getPathInfo();
Pattern MEAL_COMMON_PATTERN = Pattern.compile("/(\\w+)");
Matcher m = null;
m = MEAL_COMMON_PATTERN.matcher(path);
resp.getWriter().print("current path: " + path + "\n");
if (m.matches()) {
final String common = m.group(1);
req.setAttribute("common", common);
getServletContext()
.getNamedDispatcher("MealMenuUpcomingFeedServlet")
.forward(req, resp);
} else {
resp.getWriter().print("Common not matched.");
}
}
}
|
eae398b4-bf98-41c6-8fd4-398608e8c7a4
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-04-24 15:40:37", "repo_name": "smehta344/All-Notes", "sub_path": "/MailController.java", "file_name": "MailController.java", "file_ext": "java", "file_size_in_byte": 1205, "line_count": 36, "lang": "en", "doc_type": "code", "blob_id": "99cbebe8c112b3e6d59b91f44e5db516c997c47c", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/smehta344/All-Notes
| 212
|
FILENAME: MailController.java
| 0.243642
|
package com.altimetrik.bcp.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
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.RestController;
import com.altimetrik.bcp.mail.MailService;
import com.altimetrik.bcp.model.Mail;
@RestController
@CrossOrigin
@RequestMapping("/mail")
public class MailController {
private static final Logger logger = LoggerFactory.getLogger(MailController.class);
@Autowired
MailService mailService;
@PostMapping(value = "/sendEmail")
public ResponseEntity<String> createDailyStatus(@RequestBody Mail mail) {
mailService.sendEmail(mail);
logger.info("Email sent successfully " + mailService.toString());
// CustomLogging.asyncLogger("Email sent successfully ", mailService,
// MailController.class);
return ResponseEntity.ok().body("success");
}
}
|
36eee2a4-2bb6-4472-8108-ee111413d4a7
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-06-29 19:10:37", "repo_name": "pmroz1995/product-api", "sub_path": "/PiotrMrózZadanieRekrutacyjne/sellions/src/main/java/com/example/sellions/controller/ParameterController.java", "file_name": "ParameterController.java", "file_ext": "java", "file_size_in_byte": 1055, "line_count": 35, "lang": "en", "doc_type": "code", "blob_id": "c5e21fef77a7ab7b054c9a0ad4d394174ddc70c9", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/pmroz1995/product-api
| 170
|
FILENAME: ParameterController.java
| 0.290176
|
package com.example.sellions.controller;
import com.example.sellions.Exceptions.SupportingRuntimeError;
import com.example.sellions.dao.entity.Parameter;
import com.example.sellions.service.ParameterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import static com.example.sellions.Exceptions.ExceptionMessagesLibrary.YOU_SHOULD_POINT_NAME;
@RestController
@RequestMapping("/sellionsParameter")
public class ParameterController {
private ParameterService parameterService;
@Autowired
public ParameterController(ParameterService parameterService){
this.parameterService = parameterService;
}
@PostMapping("/postParameter/{index}")
public void addParameter(@PathVariable long index,@RequestBody Parameter parameter){
try {
parameterService.save(index,parameter);
}catch(RuntimeException ex){
throw new SupportingRuntimeError(YOU_SHOULD_POINT_NAME);
}
}
}
|
2eac741b-d31b-4da6-82a1-17e333ef3d1b
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-10-25T13:57:12", "repo_name": "GSLabDev/gslabdev.github.io", "sub_path": "/_posts/project/2018-04-12-mulesoftdockerconnector.markdown", "file_name": "2018-04-12-mulesoftdockerconnector.markdown", "file_ext": "markdown", "file_size_in_byte": 1011, "line_count": 28, "lang": "en", "doc_type": "text", "blob_id": "bea5c995040af864c1dbc0541bba9a51845077fe", "star_events_count": 0, "fork_events_count": 1, "src_encoding": "UTF-8"}
|
https://github.com/GSLabDev/gslabdev.github.io
| 249
|
FILENAME: 2018-04-12-mulesoftdockerconnector.markdown
| 0.252384
|
---
layout: project
title: "Mulesoft Docker connector"
date: 2018-04-12 16:54:46
author: Nagnath Sawant, Niranjan Joshi
categories:
- project
img: dockerconnector.png
thumb: thumb02.jpg
carousel:
- dockerconnector.png
client: https://github.com/GSLabDev/docker-connector
website: https://www.mulesoft.com/exchange/org.mule.modules/docker-connector/1.0.0/
---
#### Docker Connector for Mulesoft
The Anypoint Connector for Docker, built using Docker Java API client, is a communication tool that provides seamless integration with the Docker engine from a mule flow. It exposes Docker operations by executing API calls as per configuration. It supports HTTP and HTTPS connections and can be used as an inbound or as an outbound connector from the mule flow.
Docker connector helps a user to
1. Execute operations on a Containers, Images and Volumes
2. Connect with Docker engine running on HTTP as well as HTTPS connection
3. Interact with Docker registry
#### Our Contributions
New Connector, bug fixes
|
e206e286-a2a4-4416-9ea2-322e844a6882
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2016-03-02T07:39:18", "repo_name": "athlum/warden", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1118, "line_count": 16, "lang": "en", "doc_type": "text", "blob_id": "d682c725fc8f8af117c5c1f20281451e66ed9f2c", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/athlum/warden
| 270
|
FILENAME: README.md
| 0.247987
|
# Warden [](https://travis-ci.org/athlum/warden)
<!--
create time: 2016-01-18 22:54:02
Author: Athlum
-->
Warden is a service discovery tool for [docker](https://www.docker.com/) + [mesos](http://mesos.apache.org/).
Warden uses [zookeeper](http://zookeeper.apache.org/) to store service network data(ip address and port). Tasks launched in container would be took by warden agent and registered after pass the user-defined health check. Agent will keep watching on those containers and unregister any container failed in health check.
There are three modules in warden project.
* **warden-agent** - Warden agent watches on docker daemon and take created containers as ephemeral node on zookeeper. Agent do the health check periodically to guarantee all watched containers are healthy.
* **warden-guardian** - Warden guardian is a service running on your HAProxy/Nginx server that provide the upstream automatically, as soon as any watched app znode updated.
* **warden-template** - It's a commandline upstream/frontend render tool for service registration.
|
b5ffee50-4880-44d4-999f-9065414a5ecf
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-01-07 10:54:02", "repo_name": "dlsyaim/EQIMSERVER", "sub_path": "/src/main/java/com/gisinfo/sand/queryGeographyInfo/geographyData/bean/Rock.java", "file_name": "Rock.java", "file_ext": "java", "file_size_in_byte": 1254, "line_count": 60, "lang": "en", "doc_type": "code", "blob_id": "83d86857b29fc8c513f98ba5225d8a0c40ab26eb", "star_events_count": 1, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/dlsyaim/EQIMSERVER
| 274
|
FILENAME: Rock.java
| 0.23092
|
package com.gisinfo.sand.queryGeographyInfo.geographyData.bean;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.ibatis.annotations.Mapper;
import javax.persistence.Id;
//查询岩体相关数据实体类
@Mapper
@TableName("ROCK")
public class Rock {
//主键
@Id
@TableField("OBJECTID")
private Integer objectId;
//岩体名称
@TableField("UNITNAME")
private String unitName;
//岩体符号
@TableField("SYMBOL")
private String symbol;
//岩体描述
@TableField("CHARACTER_")
private String character;
public Integer getObjectId() {
return objectId;
}
public void setObjectId(Integer objectId) {
this.objectId = objectId;
}
public String getUnitName() {
return unitName;
}
public void setUnitName(String unitName) {
this.unitName = unitName;
}
public String getSymbol() {
return symbol;
}
public void setSymbol(String symbol) {
this.symbol = symbol;
}
public String getCharacter() {
return character;
}
public void setCharacter(String character) {
this.character = character;
}
}
|
e603b478-1337-4585-bb13-381246fa7da1
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2019-05-20T08:58:02", "repo_name": "willysteinbach/roiimageapi", "sub_path": "/README.md", "file_name": "README.md", "file_ext": "md", "file_size_in_byte": 1043, "line_count": 25, "lang": "en", "doc_type": "text", "blob_id": "9f94c32c39ec5a88afd662ef51522ab8f946514c", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/willysteinbach/roiimageapi
| 233
|
FILENAME: README.md
| 0.253861
|
# roiimageapi
## Description
This standalone API can process all availabe .tif images for a given polygon with its coordinates as .geojson in background. Those images are then availabe by a simply download link.
## Usage
### Setup Database
Create a Prostgres DB and a user with superuser privileges or at least the privilege to create new databases.
### Setup Config File
Set the config with:
1) the database user,
2) the rootdirectory of the api (here all products will be saved temporary and the all finished images will be found here),
3) the SCI account credentials,
4) the ammount of downloads that can be run at the same time (SCI allows at maximum two per user at the same time,
in some cases even 1 download is more efficient than one)
### Run the API
When everything is set up you can simply run the api by starting it as a background process.
```
setsid python3 api.py
```
It will automatically create the database if it is not instanciated now and then the api description can be found on
the configurated port
|
da61ab62-d0b6-4886-829f-2629fabf6d31
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2018-06-12 03:07:26", "repo_name": "haejun0317/partyplanner", "sub_path": "/PartyPlanner/src/test/java/kr/co/partyplanner/EventDAOTest.java", "file_name": "EventDAOTest.java", "file_ext": "java", "file_size_in_byte": 1164, "line_count": 47, "lang": "en", "doc_type": "code", "blob_id": "a34d881ddd1b585e4397eb017aa41863974aee58", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/haejun0317/partyplanner
| 257
|
FILENAME: EventDAOTest.java
| 0.280616
|
package kr.co.partyplanner;
import java.util.List;
import javax.inject.Inject;
import org.apache.log4j.Logger;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import kr.co.partyplanner.event.dao.EventDAO;
import kr.co.partyplanner.event.dao.EventScheduleDAO;
import kr.co.partyplanner.event.domain.Event;
import kr.co.partyplanner.event.domain.EventSchedule;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "file:src/main/webapp/WEB-INF/spring/root-context.xml" })
public class EventDAOTest {
Logger logger = Logger.getLogger(EventDAOTest.class);
@Inject
private EventDAO dao;
/** 이벤트 리스트 테스트 */
// @Test
public void testListAll() throws Exception {
List<Event> list = dao.listAll();
for (Event event : list) {
logger.info(event);
}
}
/** num 해당 이벤트 정보 테스트 */
@Test
public void testRead() throws Exception{
Event event = dao.read("결혼식");
logger.info(event);
}
}
|
908ca8c9-41f8-499b-b19a-d4e2e21c077a
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2020-03-05 03:57:19", "repo_name": "sut62/team08", "sub_path": "/server/src/main/java/com/example/server/FinancialInfo/controller/LevelofUseController.java", "file_name": "LevelofUseController.java", "file_ext": "java", "file_size_in_byte": 987, "line_count": 29, "lang": "en", "doc_type": "code", "blob_id": "bd28026571e2cd23401d47e3f0d1c00911750b64", "star_events_count": 3, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/sut62/team08
| 189
|
FILENAME: LevelofUseController.java
| 0.249447
|
package com.example.server.FinancialInfo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Collection;
import java.util.stream.Collectors;
import com.example.server.FinancialInfo.entity.LevelofUse;
import com.example.server.FinancialInfo.repository.LevelofUseRepository;
import org.springframework.web.bind.annotation.CrossOrigin;
@CrossOrigin(origins = "http://localhost:8081")
@RestController
public class LevelofUseController {
@Autowired
private LevelofUseRepository levelofuseRepository;
public LevelofUseController(LevelofUseRepository levelofuseRepository) {
this.levelofuseRepository = levelofuseRepository;
}
@GetMapping("/levelofuses")
public Collection<LevelofUse> LevelofUses() {
return levelofuseRepository.findAll().stream().collect(Collectors.toList());
}
}
|
ff644eaf-4572-44b6-8689-97f40ecf2071
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2021-09-14 01:02:06", "repo_name": "jxczz1/JavaMicroservices", "sub_path": "/services-bookings/src/main/java/co/com/poli/bookings/entities/Booking.java", "file_name": "Booking.java", "file_ext": "java", "file_size_in_byte": 1200, "line_count": 59, "lang": "en", "doc_type": "code", "blob_id": "9b885e77426a56f3e9577ea7dd903d1c68ae9ac8", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/jxczz1/JavaMicroservices
| 268
|
FILENAME: Booking.java
| 0.290176
|
package co.com.poli.bookings.entities;
import co.com.poli.bookings.model.Movie;
import co.com.poli.bookings.model.ShowTime;
import co.com.poli.bookings.model.User;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
@Getter
@Setter
@Entity
@Table(name = "bookings")
public class Booking {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;
@NonNull
@Column(name="user_id", nullable = false)
private long userId;
@NonNull
@Column(name="showtime_id", nullable = false)
private long showTimeId;
private ArrayList<Long> movies = new ArrayList<Long>();
@Transient
private List<Movie> moviesInfo;;
@Transient
private User userInfo;
@Transient
private ShowTime showTime;
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Booking booking = (Booking) o;
return id == booking.id;
}
@Override
public int hashCode() {
return Objects.hash(id);
}
}
|
f8547b9c-684a-4c88-a715-bafa8f3156d2
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-09-13 13:24:39", "repo_name": "SRMichas/Aplicacion-Burritos", "sub_path": "/app/src/main/java/com/sorezel/burritos/ConfiguracionActivity.java", "file_name": "ConfiguracionActivity.java", "file_ext": "java", "file_size_in_byte": 1071, "line_count": 34, "lang": "en", "doc_type": "code", "blob_id": "15f0ab8eeb9e401acf4555c614e211fd8edde9e0", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/SRMichas/Aplicacion-Burritos
| 164
|
FILENAME: ConfiguracionActivity.java
| 0.198064
|
package com.sorezel.burritos;
import android.os.Bundle;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.preference.PreferenceFragmentCompat;
public class ConfiguracionActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.settings_activity);
Toolbar tb = findViewById(R.id.tool_config);
setSupportActionBar(tb);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportFragmentManager()
.beginTransaction()
.replace(R.id.cont_config, new ConfiguracionFragment())
.commit();
}
public class ConfiguracionFragment extends PreferenceFragmentCompat{
@Override
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
setPreferencesFromResource(R.xml.root_preferences, rootKey);
}
}
}
|
01b0774a-a522-406d-990c-b967f0a3d874
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "markdown", "committer_date": "2021-05-25T15:06:50", "repo_name": "Monali-Khandelwal/Spring-Boot-Practice", "sub_path": "/src/Readme.md", "file_name": "Readme.md", "file_ext": "md", "file_size_in_byte": 1023, "line_count": 16, "lang": "en", "doc_type": "text", "blob_id": "85ddb54d4f1780977d38a782fd9055946ac15fe8", "star_events_count": 0, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/Monali-Khandelwal/Spring-Boot-Practice
| 214
|
FILENAME: Readme.md
| 0.26588
|
# Spring Boot Course and Topic
### Set up a Spring Boot application
* Using a Spring initializr create a Spring boot project - Course management system. This has two model classes topic and course. Each course belong to a topic
### Spring MVC
* By using the Spring MVC tier create the REST api end points and map it to business logic
* create a simple api for the topic service
### Spring data JPA
* Connect to embedded Apache derby db using JPA.
* Map objects and classes to the database tables using object relational mapping including JPA annotations and have it work with the Spring data JPA framework
### App execution
* Package and execute the Spring Boot application
* Spring Boot Actuator: A tool which lets you create and manage matrix and observe the state of the application.
* Actuator endpoints allow you to monitor and interact with the application.
* Run up a basic application and look at /actuator/health and /actuator/info in Postman.
* Enable all the actuators other than the default
|
1ca0f514-7b71-4e36-acde-e1d50d321f2c
|
{"source": "refinecode", "ori_score": "", "domain": "code", "program_lang": "java", "committer_date": "2019-08-20 04:34:29", "repo_name": "moraleAK/spring-boot-intergration", "sub_path": "/src/main/java/com/canno/spring/boot/integration/entity/Order.java", "file_name": "Order.java", "file_ext": "java", "file_size_in_byte": 1037, "line_count": 55, "lang": "en", "doc_type": "code", "blob_id": "b32678d9ef8f0643b0c2a7c2685515fbca07ddbc", "star_events_count": 1, "fork_events_count": 0, "src_encoding": "UTF-8"}
|
https://github.com/moraleAK/spring-boot-intergration
| 243
|
FILENAME: Order.java
| 0.228156
|
package com.canno.spring.boot.integration.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @author Canno
* @since 2018/6/28 14:27
*/
@Entity
@Table(name = "t_order")
public class Order extends BaseEntity {
@Column(name = "order_no")
private String orderNo;
@Column(name = "amount")
private long amount;
@Column(name = "status")
private int status;
@Column(name = "type")
private int type;
public String getOrderNo() {
return orderNo;
}
public void setOrderNo(String orderNo) {
this.orderNo = orderNo;
}
public long getAmount() {
return amount;
}
public void setAmount(long amount) {
this.amount = amount;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.