blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 5 132 | path stringlengths 2 382 | src_encoding stringclasses 34
values | length_bytes int64 9 3.8M | score float64 1.5 4.94 | int_score int64 2 5 | detected_licenses listlengths 0 142 | license_type stringclasses 2
values | text stringlengths 9 3.8M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
c7ad53c463b9cd28e1806dd42ad2ff98a7baff96 | Java | KevinGuancheDarias/owge | /business/src/main/java/com/kevinguanchedarias/owgejava/business/mission/processor/ConquestMissionProcessor.java | UTF-8 | 6,920 | 1.773438 | 2 | [] | no_license | package com.kevinguanchedarias.owgejava.business.mission.processor;
import com.kevinguanchedarias.owgejava.builder.UnitMissionReportBuilder;
import com.kevinguanchedarias.owgejava.business.PlanetBo;
import com.kevinguanchedarias.owgejava.business.RequirementBo;
import com.kevinguanchedarias.owgejava.business.mission.M... | true |
e0fe6ae5b08a36e978aa5503c10b0ddb89f88a8e | Java | naughtyDog7/head-first-design-patterns | /src/main/java/org/example/ch10_state/machine/GumballMachine.java | UTF-8 | 1,692 | 3 | 3 | [] | no_license | package org.example.ch10_state.machine;
import lombok.Data;
import lombok.Setter;
import lombok.ToString;
import org.example.ch10_state.state.State;
import org.example.ch10_state.state.impl.*;
import static lombok.AccessLevel.NONE;
@ToString
@Data
public class GumballMachine {
@Setter(NONE)
private int numO... | true |
7002b03f408921947d57712550adc1bdd36c8575 | Java | P79N6A/icse_20_user_study | /methods/Method_3311.java | UTF-8 | 70 | 1.671875 | 2 | [] | no_license | public String yname(int i){
return feature_index_.getY_().get(i);
}
| true |
dba01ce5d605565e93af7deee37f0deaa7e6bf59 | Java | Satya-roy/Java | /dataTypes/DataTypesTutorial.java | UTF-8 | 258 | 2.546875 | 3 | [] | no_license | package dataTypes;
public class DataTypesTutorial {
public static void main(String[] args) {
// TODO Auto-generated method stub
byte x = 2;
int age = 10;
float rateOfInterest = 2.3f;
double rate = 3.1428571;
System.out.println(rate);
}
}
| true |
41704cbbbb5854f12795539aa51ee663d8dfc215 | Java | flywind2/joeis | /src/irvine/oeis/a001/A001520.java | UTF-8 | 341 | 2.609375 | 3 | [] | no_license | package irvine.oeis.a001;
import irvine.math.z.Z;
import irvine.oeis.Sequence;
/**
* A001520 <code>(6n+1)(6n+3)(6n+5)</code>.
* @author Sean A. Irvine
*/
public class A001520 implements Sequence {
private Z mN = Z.valueOf(-5);
@Override
public Z next() {
mN = mN.add(6);
return mN.multiply(mN.add(2)... | true |
3e1d316bb1d81105b3a8c057d14f143b59f34aca | Java | kaihavice/mynote | /mynote-android/app/src/main/java/com/xuyazhou/mynote/vp/home/HomePresenter.java | UTF-8 | 7,532 | 1.835938 | 2 | [] | no_license | package com.xuyazhou.mynote.vp.home;
import android.Manifest;
import android.app.Activity;
import com.google.gson.Gson;
import com.tbruyelle.rxpermissions2.RxPermissions;
import com.xuyazhou.mynote.R;
import com.xuyazhou.mynote.common.config.Constant;
import com.xuyazhou.mynote.common.utils.ActivityUtil;
import com.... | true |
1709a4a960db7cabb2362b9bc33b91676daac228 | Java | emilstepanian/JustHandworker | /app/src/main/java/com/example/emilstepanian/justhandworker/jobowner/ui/JobOwnerHomeContainerFragment.java | UTF-8 | 1,310 | 1.71875 | 2 | [] | no_license | package com.example.emilstepanian.justhandworker.jobowner.ui;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android... | true |
b4f425169d16a593d8944f2fae14a6d48ea18b79 | Java | Iceberry-qdd/JavaProblem | /Basis/Day5/Test7/src/com/qdd/Test7/Test7.java | UTF-8 | 895 | 3.359375 | 3 | [] | no_license | package com.qdd.Test7;
public class Test7 {
public static void main(String[] args){
int[] a={1,2,3,4,3,2,1};
int[] b={1,2,3,4,3,2,1};
/*System.out.print("[");
for(int i=0;i<a.length;i++)
System.out.print(a[i]+" ");
System.out.println("]");
System.out.prin... | true |
ef9648bda44c9315cbb20c867f2c18ba8ec6448a | Java | ivanfranco502/ETN3-LaboJava | /Trimestre 3/Algoritmos/src/algoritmos/Principal.java | UTF-8 | 5,228 | 3.078125 | 3 | [] | no_license | /*
* Principal.java
*
* Created on 15 de octubre de 2008, 15:30
*/
package algoritmos;
import java.util.Vector;
import java.awt.event.KeyEvent;
/**
*
* @author 32a08
*/
public class Principal extends javax.swing.JFrame {
Vector datos;
int numero;
Vector cantidad,valores;
/** Creates new form P... | true |
d0e858ab31fd31842ae7e7143707380dbbebb6a5 | Java | LevyForchh/codeless | /codeless_core/src/main/java/com/tmobile/ct/codeless/core/datastructure/Value.java | UTF-8 | 1,671 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* * Copyright 2018 T Mobile, Inc. or its affiliates. All Rights Reserved.
* *
* * Licensed under the Apache License, Version 2.0 (the "License"); you may not
* * use this file except in compliance with the License. You may obtain a... | true |
813acf2cdfe8d0129bf4aa2ce07bae66b7d59b7c | Java | pentaho/pentaho-kettle | /engine/src/test/java/org/pentaho/di/trans/TransTestingUtil.java | UTF-8 | 3,537 | 2.15625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | true |
99b2f0d8e2c2e0e7bf0d621be708e3963c2a0060 | Java | tigerlw/IO | /src/main/java/com/ucloudlink/redis/CacheDataDao.java | UTF-8 | 2,712 | 2.53125 | 3 | [] | no_license | package com.ucloudlink.redis;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* 缓存服务接口
* @author liuwei
*
* @param <T>
*/
public interface CacheDataDao
{
public <T> T getDataByOneKey(String primKey,Class<T> entityClass);
public <T> void setDataByOneKey(String primKey,T cacheData);
... | true |
42df9452499b5495a4e5ead234ef857d5fda0b4b | Java | m310n/ShiroExp | /src/main/java/cn/safe6/core/jobs/Job.java | UTF-8 | 693 | 2.484375 | 2 | [] | no_license | package cn.safe6.core.jobs;
import java.util.concurrent.Callable;
/**
* demo 请勿删除
*/
public class Job implements Callable<String> {
private String target;
private String cve;
public Job(String target, String cve) {
this.target = target;
this.cve = cve;
}
@Override
publi... | true |
b6466fc698acb2839633f908169e2b1f529193f3 | Java | JeffPetitFreresWM/TargetDateFundAnalyzer | /src/WebScraper/Controller.java | UTF-8 | 11,370 | 2.28125 | 2 | [] | no_license | package WebScraper;
import java.awt.*;
import java.net.URL;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.ResourceBundle;
import javafx.beans.binding.ObjectExpression;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty... | true |
027df58a069c9e00f3289295aaf7a44a6e37518e | Java | 08mamba24/ordering | /src/main/java/cn/edu/njust/main/model/Setting.java | UTF-8 | 1,132 | 2.125 | 2 | [] | no_license | package cn.edu.njust.main.model;
public class Setting {
private Integer id;
private Integer tableNumber;
private Integer todayLatestReserveTime;
private Integer reserveSpan;
private Integer personPerTable;
public Integer getId() {
return id;
}
public void setId(Integer id)... | true |
41fe5c0d3205f0dbacc29fad2f7fc09b959cce84 | Java | sparcs/fangorn | /src/java/au/edu/unimelb/csse/analyser/FastStringLexer.java | UTF-8 | 2,291 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* Copyright 2011 The fangorn project
*
* Author: Sumukh Ghodke
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed... | true |
6f2e39dec45b2b9514ca69d1fc3e19d3769bbe43 | Java | JunChen22/LeetCode-Solution | /solutions/637. Average of Levels in Binary Tree.java | UTF-8 | 1,079 | 3.515625 | 4 | [] | no_license | /**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
class Solution {
//iterative , BFS
public List<Double> averageOfLevels(TreeNode root) {
List<Double> avges = new ArrayList<>();
... | true |
6d45bde9c42bd0d9429d52345f18722acea2d6b2 | Java | mrkrizic/FIABTurntable | /src/main/java/msg/notifications/ClientHandshakeEndpointStatusNotification.java | UTF-8 | 513 | 1.828125 | 2 | [] | no_license | package msg.notifications;
import c2akka.c2messages.C2Notification;
import fiab.handshake.actor.LocalEndpointStatus;
public class ClientHandshakeEndpointStatusNotification extends C2Notification {
private LocalEndpointStatus.LocalClientEndpointStatus status;
public ClientHandshakeEndpointStatusNotification(L... | true |
06d506a3cead146eb3061549b87330826b4aa6fc | Java | ChairmanHe/MyPhoneShow | /app/src/main/java/com/hjt/phoneshow/ui/presenter/IDetailActivityPresenter.java | UTF-8 | 278 | 1.6875 | 2 | [] | no_license | package com.hjt.phoneshow.ui.presenter;
/**
* Created by Administrator on 2016/11/22.
*/
public interface IDetailActivityPresenter {
/**
* 获取手机秀详细信息的参数列表
* @param id 模型id值
*/
public void getDetailData(String id);
}
| true |
49000500292b55aad5bf54f6d105c1b64f5204a3 | Java | rylon96/AbstractionsHW | /src/abstractionshw/Abs6/Wizard.java | UTF-8 | 140 | 1.726563 | 2 | [] | no_license | package abstractionshw.Abs6;
public abstract class Wizard extends MagicalBeing {
public abstract void getMagicType();
}
| true |
6ffaa50eec58c567e97f724213276f76ba2b5ea2 | Java | ProfBird/AndroidAppExamples-Java | /RockPaperScissors-SingleActivity-Menu+Settings/app/src/main/java/edu/uoregon/bbird/rockpaperscissors/MainActivity.java | UTF-8 | 4,789 | 2.6875 | 3 | [
"MIT"
] | permissive | package edu.uoregon.bbird.rockpaperscissors;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.Men... | true |
0817ee9c1dd66cefc48bba7bf69fc3d9ca8ea8a6 | Java | kochangkwon/effectiveJava | /src/main/java/Chapter4/Day24/NestedNonStaticEx.java | UTF-8 | 195 | 2 | 2 | [] | no_license | package Chapter4.Day24;
public class NestedNonStaticEx {
public static void main(String[] args) {
NestedNonStatic n = new NestedNonStatic();
n.createInnerInstance();
}
}
| true |
5e5758d1f5556a3e0d75b6c20f58dd2e0ba469e3 | Java | BharathPalanivelu/repotest | /src/main/java/com/shopee/app/a/k.java | UTF-8 | 772 | 1.789063 | 2 | [] | no_license | package com.shopee.app.a;
import b.a.b;
import b.a.c;
import com.shopee.app.network.http.a.f;
import f.n;
import javax.inject.Provider;
public final class k implements b<f> {
/* renamed from: a reason: collision with root package name */
private final b f15770a;
/* renamed from: b reason: collision wi... | true |
c44e23da1cdf8ebde2f705f42955441f575e956e | Java | nadar71/FreddyFridge | /app/src/androidTest/java/eu/indiewalkabout/fridgemanager/db_test/FoodDbDao_test.java | UTF-8 | 15,518 | 2.34375 | 2 | [] | no_license | package eu.indiewalkabout.fridgemanager.db_test;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.Observer;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.i... | true |
7a43ca326798e83fbd754698918b5f4fb7fd824b | Java | fagerholm/GridDemo | /grid-demo-client/src/main/java/no/jaf/demo/grid/client/HazelcastGridClient.java | UTF-8 | 1,370 | 2.625 | 3 | [] | no_license | package no.jaf.demo.grid.client;
import com.hazelcast.client.ClientConfig;
import com.hazelcast.client.HazelcastClient;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IMap;
import no.jaf.demo.grid.domain.Person;
import no.jaf.demo.grid.domain.SocialSecurityNumber;
public class HazelcastGridCli... | true |
00c76b4df40e02920400d096b2131b5a3299cbff | Java | ps19900306/MyGitDemoApp | /app/src/main/java/com/ningwenqiang/glory/mygitdemoapp/ui_function/anylayer/AnylayerActivity.java | UTF-8 | 1,473 | 1.78125 | 2 | [] | no_license | package com.ningwenqiang.glory.mygitdemoapp.ui_function.anylayer;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import androidx.appcompat.app.AppCompatActivity;
import com.ningwenqiang.glory.mygitdemoapp.R;
import com.ningwenqiang.glory.mygitdemoap... | true |
9d7c1e6667829c1e463531fa6e17468b7d450d5f | Java | bryanvargas/Repo_TP | /Repo_TP/src/com/repo/tp/Poligono.java | UTF-8 | 428 | 2.59375 | 3 | [] | no_license | package com.repo.tp;
public class Poligono extends Figura{
public Poligono(String nombre) {
super(nombre);
this.setCaras(1000000);
}
@Override
public double area(){
return 1.0;
}
@Override
public double perimetro() {
double perim =0;
for(int i=0;i<this.parametros.parame... | true |
ee45c7d9c8a7fe5a9488a654629aca329e452924 | Java | BDLin/android.explorer_layout | /src/nkfust/selab/android/explorer/layout/processer/SetScreenSize.java | UTF-8 | 4,152 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | /* Copyright (C) 2014 Zi-Xiang Lin <bdl9437@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | true |
91670801bc65bd9dde28c29c59581fa877cc9d9d | Java | ctianlong/MyBatis | /src/main/java/cn/tongjilab/mybatis/entity/Author.java | UTF-8 | 1,422 | 2.484375 | 2 | [] | no_license | package cn.tongjilab.mybatis.entity;
import java.time.LocalDate;
import java.time.LocalDateTime;
public class Author {
private Integer id;
private String username;
private String nickname;
private LocalDate birthday;
private LocalDateTime registerTime;
public Author() {
}
public Author(St... | true |
d53548b8c822a3683799fb575a6e207045546cf9 | Java | Tasssadar/lorris_mobile | /app/src/main/java/com/tassadar/lorrismobile/programmer/Page.java | UTF-8 | 117 | 1.625 | 2 | [] | no_license | package com.tassadar.lorrismobile.programmer;
public class Page {
public int address;
public byte[] data;
}
| true |
0833dade5c8b0567c0b24f6784b099f113977447 | Java | deusanyjunior/s2dg | /s2dg/src/action/org/ufpb/s2dg/session/util/CalendarAlunoDataModelItemImpl.java | UTF-8 | 1,531 | 2.15625 | 2 | [] | no_license | package org.ufpb.s2dg.session.util;
import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.Name;
import org.richfaces.model.CalendarDataModelItem;
import org.ufpb.s2dg.session.util.ItemDeCalendario.TipoData;
@Name("calendarAlunoDataModelItem")
@AutoCreate
public class CalendarAlunoDa... | true |
ed0d5154e0a70107226677e8b98e5393ce128ccb | Java | The-Knights-of-Ni/FTC-2015-2016 | /FtcRobotController/decompiled libs/com/qualcomm/hardware/hitechnic/HiTechnicNxtLightSensor.java | UTF-8 | 1,896 | 1.90625 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* Decompiled with CFR 0_101.
*
* Could not load the following classes:
* com.qualcomm.robotcore.hardware.LightSensor
* com.qualcomm.robotcore.util.Range
* com.qualcomm.robotcore.util.SerialNumber
* com.qualcomm.robotcore.util.TypeConversion
*/
package com.qualcomm.hardware.hitechnic;
import com.qualcom... | true |
7959deb36bcf25449cb346057fde22fb128c9ca1 | Java | jshuk/Appium | /src/base.java | UTF-8 | 1,095 | 2.171875 | 2 | [] | no_license | import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.remote.DesiredCapabilities;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.remote.MobileCapabil... | true |
87027265a22c67b1fadea917cbb288fb76e21714 | Java | teja0594/TranningRepo | /corejavatranning/src/com/vm/tranning/java/assignments/Assignment25.java | UTF-8 | 575 | 3.625 | 4 | [] | no_license | package com.vm.tranning.java.assignments;
import java.util.Scanner;
interface AdvancedArithmetic {
int divisor_sum(int n);
}
class MyCalculator implements AdvancedArithmetic {
@Override
public int divisor_sum(int n) {
int sum=0;
for(int i=1;i<=n;i++)
{
if(n%i==0)
{
sum=sum+i;
}
}
retu... | true |
81e8a0ba15062c18d515ce35a5a9ed348b8b4cd3 | Java | MC-U-Team/Halloween-Luckyblocks | /src/main/java/info/u_team/halloween_luckyblock/entity/model/ModelVampire.java | UTF-8 | 4,066 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package info.u_team.halloween_luckyblock.entity.model;
import info.u_team.halloween_luckyblock.entity.EntityVampire;
import net.minecraft.client.model.HierarchicalModel;
import net.minecraft.client.model.geom.ModelPart;
import net.minecraft.client.model.geom.PartPose;
import net.minecraft.client.model.geom.build... | true |
1aadaa05d3cd05a57e66fdfe090f503e02bd1d3c | Java | Pewdiecal/autoAttend | /app/src/main/java/com/caltech/autoattend/ClassSession.java | UTF-8 | 319 | 2.03125 | 2 | [] | no_license | package com.caltech.autoattend;
import androidx.annotation.NonNull;
import androidx.room.Entity;
@Entity(tableName = "Class_session", primaryKeys = {"sub_id", "sub_name"})
public class ClassSession {
@NonNull
public String sub_id;
@NonNull
public String sub_name;
public String class_session;
}
| true |
9b003364cf045cb5c51ce1238c9b9fdabadd297f | Java | linusHche/Simple-Calculator | /app/src/main/java/com/example/lda/simple_calculator/Function.java | UTF-8 | 102 | 1.820313 | 2 | [] | no_license | package com.example.lda.simple_calculator;
public enum Function {
NON, ADD, SUB, MUL, DIV, REM
}
| true |
4cb591fd341ebf4f3029594ff88c550a25e76f69 | Java | Jeff-jp98/testeEcommerce | /src/main/java/br/com/loja/models/TipoPagamento.java | UTF-8 | 242 | 2.46875 | 2 | [] | no_license | package br.com.loja.models;
public enum TipoPagamento {
BOLETO ("Boleto"),
CREDITO ("Credito"),
PIX ("Pix");
private String tipo;
TipoPagamento(String tipo) {
this.tipo = tipo;
}
public String getTipo() {
return tipo;
}
}
| true |
564f22e60b5503f4a29fa7b6c265eaccb5da4462 | Java | weberfhaien/aqa-rd-perfomance-testing | /ClientSidePerformanceTesting/src/main/java/pages/SubcategoryPage.java | UTF-8 | 567 | 2.03125 | 2 | [] | no_license | package pages;
import navigationtiming.PerformanceNavigationTiming;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import java.util.List;
public class SubcategoryPage extends BasePage {
@FindBy(xpath = "//div[@class='item-grid']/div")
private List<WebElement> itemList;
... | true |
3bf6a5b989893488afb767251c09cbcc9314b198 | Java | skyaaaamode/leecode | /src/main/java/medium/Q03.java | UTF-8 | 657 | 3.234375 | 3 | [] | no_license | package medium;
/**
* 给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。
* 输入: "abcabcbb"
* 输出: 3
* 解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。
*
*
* 输入: "bbbbb"
* 输出: 1
* 解释: 因为无重复字符的最长子串是 "b",所以其长度为 1。
*
*
* 输入: "pwwkew"
* 输出: 3
* 解释: 因为无重复字符的最长子串是 "wke",所以其长度为 3。
* 请注意,你的答案必须是 子串 的长度,"pwke" 是一个子序列,不是子
*/
public class Q03 ... | true |
ba0f4ea1fff61123401626ed3ec67b5b887a798b | Java | Intpict/data-structure | /src/main/java/algorithm/Title46.java | UTF-8 | 1,156 | 3.828125 | 4 | [] | no_license | package algorithm;
/**
* User: linsen
* Date: 18/5/8
* Time: 上午12:54
* Description:
*/
import java.util.Arrays;
/**
* 从扑克中抽五张牌,看是否为顺子。大小王为可以代替任意数字
* 大小王认为是0
*/
public class Title46 {
public boolean isContinuous(int[] numbers) {
if (numbers == null || numbers.length == 0)
return false... | true |
a862e39e8f72c05b2c50eb1ed8ea80467bcbdec6 | Java | 11Karl11/hello-jdk8 | /src/main/java/hello/work/ProtocolTest.java | UTF-8 | 3,544 | 2.828125 | 3 | [] | no_license | package hello.work;
import lombok.extern.slf4j.Slf4j;
import org.springframework.util.StringUtils;
import java.io.*;
import java.net.Socket;
/**
* @author karl xie
* Created on 2020-03-25 15:17
*/
@Slf4j
public class ProtocolTest {
public static void main(String[] args) throws IOException {
Integer ... | true |
f36a49d980c4f0586dfe40e76b2465b200a45958 | Java | hunter123321000/dynamicChangeIcon | /app/src/main/java/sxkeji/net/aliasdemo/MainActivity.java | UTF-8 | 1,058 | 2.03125 | 2 | [] | no_license | package sxkeji.net.aliasdemo;
import android.app.Activity;
import android.content.ComponentName;
import android.content.pm.PackageManager;
import android.os.Bundle;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(... | true |
56544303c2e861f209d0639b30b9869b635e0e33 | Java | fgalluzzo/projetosgalluzzo | /emprestalivros/src/bean/UsuarioBean.java | UTF-8 | 1,890 | 2.09375 | 2 | [] | no_license | package bean;
import java.util.Date;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import j... | true |
7e2870fac51e99ea3e2e73c86ca9d0a712df8fd8 | Java | zhiji6/mih | /MED-CLOUD/med-service/src/main/java/nta/med/service/ihis/handler/ocsi/OCS6010U10PopupTAgrdOCS2016Handler.java | UTF-8 | 2,298 | 1.898438 | 2 | [] | no_license | package nta.med.service.ihis.handler.ocsi;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
imp... | true |
3adffd53e1dfcea84eb0d1da347c343ac049a3e2 | Java | TorstenW/storage-webservice | /src/main/java/net/wmann/cloud/storage/webservice/Application.java | UTF-8 | 701 | 1.9375 | 2 | [] | no_license | package net.wmann.cloud.storage.webservice;
import org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@SpringBootApplicat... | true |
b69b686bfd186452cf5087b328b8646bf0bfc2e0 | Java | wayne214/DeviceAdapte | /app/src/main/java/com/wayne/deviceadapte/DemoView.java | UTF-8 | 1,152 | 2.40625 | 2 | [] | no_license | package com.wayne.deviceadapte;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.text.TextPaint;
import android.util.AttributeSet;
import android.view.View;
/**
* Project:DeviceAdapte
* Author:wayne
* Date:2016/5/26... | true |
8f4bb1fe704cfdbf06c6996116dd6435e3cef9b6 | Java | pedrosan7os/bennu-renderers | /bennu-renderers/src/main/java/pt/ist/fenixWebFramework/rendererExtensions/factories/FenixSchemaFactory.java | UTF-8 | 3,368 | 2.390625 | 2 | [] | no_license | package pt.ist.fenixWebFramework.rendererExtensions.factories;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import pt.ist.fenixWebFramework.renderers.model.SchemaFactory;
import pt.ist.fenixWebFramework.renderers.schemas.Schema... | true |
7031b335336f1390195c1fdd30a41e0b8d62760f | Java | hwee1115/Java | /src/ch06homework/ch13/Calculator.java | UTF-8 | 202 | 2.390625 | 2 | [] | no_license | package ch06homework.ch13;
public class Calculator {
double areaReactangle(double width) {
return width*width;
}
double areaReactangle(double width, double height) {
return width*height;
}
}
| true |
c53a5a1609e56261ac33c1b3b475f04b2edab8e2 | Java | tsmart-date/nasac-2017-demo | /confu-master/benchmarks/xalan/original_source_from_jdcore/org/apache/bcel/generic/FCMPL.java | UTF-8 | 506 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package org.apache.bcel.generic;
public class FCMPL
extends Instruction
implements TypedInstruction, StackProducer, StackConsumer
{
public FCMPL()
{
super((short)149, (short)1);
}
public Type getType(ConstantPoolGen cp)
{
return Type.F... | true |
a9a27e1e301adb3ab551f3f42f19bfa12fa609cd | Java | keeponZhang/Dagger2Analyse | /app/src/main/java/com/demo/lizejun/dagger2sample/chapter4_2/fragment/ScopeFragmentComponent.java | UTF-8 | 593 | 2.1875 | 2 | [] | no_license | package com.demo.lizejun.dagger2sample.chapter4_2.fragment;
import dagger.Subcomponent;
@Subcomponent(modules = {ScopeFragmentModule.class})
@PerScopeFragment
//在组织关系中,如果父Component的@Scope不为@Singleton,那么子Component的@Scope可以为@Singleton,但是这里不行
//在依赖关系中,需要依赖的Component的@Scope不可以为@Singleton
//@Singleton
//在组织关系中,子Component... | true |
4c4b3998b58629cad48c0b16076b722886c3c026 | Java | NeesonD/neeson | /manager/common-spring-boot-starter/src/main/java/com/neeson/common/filter/JwtContextFilter.java | UTF-8 | 1,362 | 1.945313 | 2 | [] | no_license | package com.neeson.common.filter;
import com.neeson.common.auth.AuthConstant;
import com.neeson.common.constant.FilterOrderConstant;
import com.neeson.common.context.jwt.JwtContext;
import com.neeson.common.context.jwt.JwtContextHolder;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotat... | true |
565fddf8593b034a54778d9a6bc6648db774b863 | Java | superJack2222/work-credit | /anjbo-credit-order/src/main/java/com/anjbo/dao/OrderModelMapper.java | UTF-8 | 180 | 1.664063 | 2 | [] | no_license | package com.anjbo.dao;
import java.util.List;
import com.anjbo.bean.BaseItemDto;
public interface OrderModelMapper {
List<BaseItemDto> selectBaseItemList(String pageType);
} | true |
3f523c8deb3963377df0ee4c809025ad28995024 | Java | bleujin/ISearcher | /test/net/ion/bleujin/lucene/FunctionTest.java | UTF-8 | 453 | 1.875 | 2 | [] | no_license | package net.ion.bleujin.lucene;
import junit.framework.TestCase;
import net.ion.framework.util.Debug;
import net.ion.framework.util.RandomUtil;
import org.apache.http.impl.cookie.DateUtils;
public class FunctionTest extends TestCase {
public void testRandomCalendar() throws Exception {
for (int i = 0;... | true |
78bfa7bfabe36decfb93b7f4ee58cf37d9a189fa | Java | yhoo0094/firstProject | /firstProject/src/com/yedam/inherit/Child.java | UTF-8 | 395 | 3.09375 | 3 | [] | no_license | package com.yedam.inherit;
public class Child extends Parent {
private int grade;
public Child(String name, int age) {
super(name, age); //부모클래스의 생성자를 가져옴
}
public Child(String name, int age, int grade) {
super(name, age);
this.grade = grade;
}
public int getGrade() {
return grade;
}
public void se... | true |
cce3b6b637b622e342a851d90ac0c2a8f25cefc1 | Java | NeilTorrero/Data-Structures | /src/main/java/Data/User.java | UTF-8 | 599 | 2.328125 | 2 | [] | no_license | package Data;
import com.google.gson.annotations.SerializedName;
public class User {
public String username;
public long creation;
@SerializedName("to_follow")
public String[] toFollow;
public User(String username, long creation) {
this.username = username;
this.creation = creatio... | true |
bf96035099008805ec20eee9ad6553c87af1a9b7 | Java | Marcoo09/Universidad-Programacion-1 | /Practico4/Ej3.java | UTF-8 | 809 | 3.828125 | 4 | [] | no_license | import java.util.*;
/*
Sean las variables enteras: largo=18 y ancho=3 y la variable double altura = 2.25.
Indicar el valor de:
a. largo / ancho d. ancho % altura
b. largo / altura e. largo * ancho + altura
c. largo % ancho f. largo + ancho * altura
*/
public class Ej3{
public static void main(String ... | true |
03963235bd04c7aefaf6e4e61236c084a68e8288 | Java | onaicu/TourGuide-2.0 | /TourGuide/app/src/main/java/mobi/storedot/tourguide/TouristInfo.java | UTF-8 | 2,528 | 3.0625 | 3 | [] | no_license | package mobi.storedot.tourguide;
/**
* {@link TouristInfo} represents a tourist information that the user is interested in.
* It contains resource IDs for the attraction name, attraction description e.g. ranking, available parking places
* optional image file for public places
*/
public class TouristInfo {
... | true |
0889b8cb1c9fcc74a74bac81b9e85c4415b4ddf7 | Java | aarishramesh/movie-rental-app | /src/main/java/com/rental/app/service/MovieRentalService.java | UTF-8 | 6,982 | 2.328125 | 2 | [] | no_license | package com.rental.app.service;
import static spark.Spark.delete;
import static spark.Spark.get;
import static spark.Spark.port;
import static spark.Spark.post;
import static spark.Spark.put;
import java.util.Timer;
import java.util.TimerTask;
import com.google.gson.Gson;
import com.rental.app.handler.MovieRentalHan... | true |
77c0900bc44bc0266029d827618cbdbde7b5846e | Java | bellmit/scm-order | /scm-order-service/src/main/java/com/lyf/scm/core/remote/stock/dto/RealWarehouseWmsConfig.java | UTF-8 | 647 | 2.09375 | 2 | [] | no_license | package com.lyf.scm.core.remote.stock.dto;
import lombok.Data;
/**
* 实仓与wms配置
*/
@Data
public class RealWarehouseWmsConfig {
/**
* 唯一主键
*/
private Long id;
/**
* 实体仓库id
*/
private Long realWarehouseId;
/**
* 实体仓库编码
*/
private String realWarehouseCode;
/**
* 工厂编码
*/
private Strin... | true |
5865d803541c54cb31c1ca4e3436c2217164e4a4 | Java | oliveiraop/poo | /Incremental72/src/Assinante.java | UTF-8 | 2,126 | 2.921875 | 3 | [] | no_license | import java.util.ArrayList;
public class Assinante {
private String cpf;
private String nome;
private String endereco;
private String telefone;
private ArrayList<Anuncio> anuncios;
public Assinante(String cpf, String nome, String endereco, String telefone, ArrayList<Anuncio> anuncios)... | true |
f31f6a4da697fc4b036ecc0b0786d5e1c3814e45 | Java | loveofyou1/workLearning | /parentTest/src/main/java/com/main/learn/threads/concurrencyPractice/chapter4/VisualComponent.java | UTF-8 | 1,005 | 3.0625 | 3 | [] | no_license | package com.main.learn.threads.concurrencyPractice.chapter4;
import java.awt.event.KeyListener;
import java.awt.event.MouseListener;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
/**
* 鼠标事件列表和键盘事件列表是彼此独立的,线程的安全性委托给多个状态变量
* @author sunlei19
* @create 2018-03-16 21:10
*/
public class Visu... | true |
1ab13316d3a5af0ab910236b0c524e4b18a8178f | Java | ankitsharm877/spring-framework-workspace | /spring-in-depth/src/main/java/com/spring/framework/basics/springindepth/springframework/BinarySearchImpl.java | UTF-8 | 711 | 2.6875 | 3 | [] | no_license | package com.spring.framework.basics.springindepth.springframework;
import java.util.Arrays;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class BinarySearchImpl {
@Autowired
private SortAlgorithm sortAlgorithm;
// public Binary... | true |
3d06faaecac85602cd070dbac24b5fc6f13bb12c | Java | jjelement/FinalProject | /build/generated-sources/ap-source-output/Project/model/Wishlist_.java | UTF-8 | 672 | 1.828125 | 2 | [] | no_license | package Project.model;
import Project.model.Product;
import Project.model.User;
import java.util.Date;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value="EclipseLink-2.5.2.v20140319-rNA", date="2018-11-28T21:58... | true |
888932b6db697009509fd54f094a0ce29bdbb2a8 | Java | maxskorr/iShop | /src/root/db/model/Cart.java | UTF-8 | 2,411 | 2.6875 | 3 | [] | no_license | package root.db.model;
import root.utils.CurrencyProvider;
import root.utils.Utils;
import java.io.Serializable;
import java.util.*;
/**
* Created by Max on 9/28/2014.
*/
public class Cart implements Serializable {
private Map<Long, Product> products;
private double totalPrice;
private String currentLo... | true |
dc8fe7d512b4c5c858533930c142249b6eec171a | Java | rafabene/optaplanner | /optaplanner-core/src/main/java/org/optaplanner/core/impl/score/buildin/hardmediumsoftlong/HardMediumSoftLongScoreDefinition.java | UTF-8 | 6,521 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | true |
d673e4466e46887511d7dd65b46dda8a7ef19d7c | Java | aakashptl325/GRUHAM | /SpringGruham/Gruham/src/main/java/com/example/demo/controller/ServiceProviderController.java | UTF-8 | 1,983 | 2.21875 | 2 | [] | no_license | package com.example.demo.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import o... | true |
ef97c8314a5b61839fc5aa3739122cda9ac92644 | Java | ainaxiaomei/hongbao | /red-packet/src/main/java/com/sun/DefaultPacket.java | UTF-8 | 1,831 | 3.109375 | 3 | [] | no_license | package com.sun;
import java.util.LinkedList;
import java.util.Random;
/**
* 红包分成的个数可以大于抢红包的人数也可以小于抢红包的人数
*
* @author Administrator
*
*/
public class DefaultPacket extends AbstractPacket {
private IPacketGenerator gen;
/**
* 默认红包实现构造函数
*
* @param sum
* 红包总金额
* @para... | true |
7fce0fc335207f94e96e698362d1fc8324069459 | Java | treviets/BIM | /5.implementation/redsun-service/src/main/java/com/redsun/service/entities/Clients.java | UTF-8 | 3,530 | 1.992188 | 2 | [] | no_license | package com.redsun.service.entities;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import java.math.BigDecimal;
/**
* Clients entity
*/
@Component
@Scope("prototype")
public class Clients extends AbstractEntity {
// name
private String name;
// descriptio... | true |
fe1c70ddcb962a0c697df2c24771806fe96fd64b | Java | jesuino/droolsjbpm-integration | /kie-server-parent/kie-server-controller/kie-server-controller-websocket/src/test/java/org/kie/server/controller/websocket/notification/WebSocketNotificationSessionManagerTest.java | UTF-8 | 3,736 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | true |
42535ec6bb68ab657dc15214250469abf417a78c | Java | tim13gr/2nd_Coding_Bootcamp | /Inheritance/insuranceExtend2/Health.java | UTF-8 | 1,113 | 3 | 3 | [] | no_license | package insuranceExtend2;
public class Health extends Insurance {
private int medExp;
private static int countHealth = 0;
private static int sumMedExp;
public int getMedExp() {
return medExp;
}
public static int getSumMedExp() {
return sumMedExp;
}
public static void setSumMedExp(int sumMedExp) {
Heal... | true |
4a16dc633d9bcf1cedf3b6b2c307bca4ef6f3db3 | Java | NerdCats/SwatKat | /app/src/main/java/co/gobd/tracker/ui/activity/JobDetailsActivity.java | UTF-8 | 3,714 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package co.gobd.tracker.ui.activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.CardView;
import android.support.v7.widget.Toolbar;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widg... | true |
45a5827314cace4bd012e6b5d0e608ca7e989754 | Java | Chronotron/chaos-beast | /CS219/src/ParkerPaulUnit3.java | UTF-8 | 2,042 | 4.15625 | 4 | [
"MIT"
] | permissive | import java.util.Scanner;
/***************************************************
* ParkerPaulUnit3.java
* Paul Parker
* <p>
* Gets user input and outputs each character as
* various types
****************************************************/
public class ParkerPaulUnit3 {
public static void main(String[] args)... | true |
f40e42fea7cfe8bd5b1290466bfe8961c5f05e39 | Java | BugBattle/Android-SDK | /gleap/src/main/java/gleap/io/gleap/GleapBug.java | UTF-8 | 5,831 | 2.0625 | 2 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | package gleap.io.gleap;
import android.app.Application;
import android.graphics.Bitmap;
import androidx.annotation.Nullable;
import org.json.JSONArray;
import org.json.JSONObject;
import java.text.ParseException;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
import static gleap.io.glea... | true |
bde01910a76f20f6e71bd15df2b6a16df563b8ce | Java | hudaming1/rest-http | /src/main/java/org/hum/resthttp/transport/jdktcp/HttpResponse.java | UTF-8 | 1,092 | 2.890625 | 3 | [] | no_license | package org.hum.resthttp.transport.jdktcp;
import org.hum.resthttp.transport.enumtype.HttpStatusEnum;
/**
* 由于我只打算实现一个简单的Http容器,我就抛弃了复杂的字段,仅保存我需要的内容。
* <pre>
* HTTP规范响应结构:
* 1.响应行
* 2.响应头
* 3.空行
* 4.响应报文
* </pre>
*/
public class HttpResponse {
private String protocolVersion;
private HttpStatusEnum cod... | true |
6ddbec4657b3a6150415f76a01a1b09ffcec3749 | Java | lappsgrid-incubator/bioMine | /biomine-index/src/main/java/com/engine/biomine/docparsing/literature/BioentityExtractor.java | UTF-8 | 1,982 | 2.21875 | 2 | [
"MIT"
] | permissive | package com.engine.biomine.docparsing.literature;
import annotator.EntityAnnotator;
import common.Annotation;
import com.engine.biomine.common.Configs;
import extractor.EntityExtractor;
import com.engine.biomine.common.doc.EntityDoc;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import javax.xml.xpath.XPathC... | true |
565ca93bbb74a3687a7c27f2821fc155db17c238 | Java | magicgis/cnit | /YoYo-Server/YoYo-Item-Server/src/main/java/com/cnit/yoyo/dao/car/CarMapper.java | UTF-8 | 4,454 | 1.914063 | 2 | [] | no_license | package com.cnit.yoyo.dao.car;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import com.cnit.yoyo.autohome.model.AutohomeCarInfoDTO;
import com.cnit.yoyo.model.car.Car;
import com.cnit.yoyo.model.car.dto.CarDeptDTO;
import com.cnit.yoyo.model.car.dto.CarTypeConfigDTO;
impor... | true |
ca582966c6a3db7eb3a953450161831ece88ca03 | Java | markusin/Isochrones | /webMineX/src/main/java/isochrones/web/utils/PGUtil.java | UTF-8 | 1,690 | 2.296875 | 2 | [] | no_license | /**
*
*/
package isochrones.web.utils;
import isochrones.web.coverage.IsoEdge;
import isochrones.web.geometry.PGLineString;
import isochrones.web.geometry.Point;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* <p>
* The <code>PGUtil</code> class
* </p>
* <p>
* Copyright: 2006 - 2... | true |
41a490c88ad0ccfb16d6ec4c31833a26593c89fe | Java | Jarekszu2/Gda_19_Write_Read_Timestamp | /src/main/java/packZad1/MainZad1.java | UTF-8 | 556 | 2.984375 | 3 | [] | no_license | package packZad1;
/*
Zapis1. Napisz aplikację która otwiera plik 'output_1.txt', zapisuje do niego "Hello World!" anastępnie zamyka plik.
*/
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
public class MainZad1 {
public static void main(String[] args) {
System.out.pri... | true |
5f32b398453c8ab81e1f40c48d33be3249ff86b5 | Java | RizalPrashant/test | /CS361P1P2/fa/nfa/NFA.java | UTF-8 | 5,223 | 3.015625 | 3 | [] | no_license | package fa.nfa;
import fa.FAInterface;
import fa.State;
import fa.dfa.DFA;
import java.util.*;
/**
* NFA class
* @author prashantrizal
*
*/
public class NFA implements FAInterface, NFAInterface {
private Set<NFAState> set_of_states;
private NFAState start_state;
private Set<Character> setAbc;
/... | true |
e7491d6deb5882bd2231a89ad21dd7f1a08c4590 | Java | gcase/gbin | /test/models/BinTest.java | UTF-8 | 727 | 1.875 | 2 | [] | no_license | package models;
import org.junit.Test;
import static org.fest.assertions.Assertions.assertThat;
import static play.test.Helpers.fakeApplication;
import static play.test.Helpers.running;
public class BinTest {
@Test
public void create() {
running(fakeApplication(), new Runnable() {
... | true |
5c5bab3f321feee707d132bfe49d74f08be41a50 | Java | yiann0s/UniversityThesis | /app/src/main/java/com/yannis/thesis/movierecommendationapp/activities/LoginSignupActivity.java | UTF-8 | 1,009 | 1.835938 | 2 | [] | no_license | package com.yannis.thesis.movierecommendationapp.activities;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.support.design.widget.TabLayout;
import com.yannis.thesis.movierecommendationapp.adapters.LoginSig... | true |
9d5d0c9eae149afa933627b4b25a04d88c819f9d | Java | qiuchili/ggnn_graph_classification | /program_data/JavaProgramData/22/292.java | UTF-8 | 933 | 2.71875 | 3 | [
"MIT"
] | permissive | package <missing>;
public class GlobalMembers
{
public static void Main()
{
int x;
int j = 0;
int i = 0;
int k = 0;
int p;
int[] n = new int[305];
String str = new String(new char[10000]);
str = new Scanner(System.in).nextLine();
for (i = 0;;i++)
{
if (str.charAt(i) == ',' || str.charAt(i) == ... | true |
8a1b199dfa2fc25758a6f759a08e9b86216497f7 | Java | orionlily/mp2020 | /mp-quickstart9001/src/test/java/QuickStart9001MainTest.java | UTF-8 | 1,977 | 2.171875 | 2 | [] | no_license | import com.orion.mp.Quickstart9001Main;
import com.orion.mp.entities.User;
import com.orion.mp.enums.StatusEnum;
import com.orion.mp.mapper.UserMapper;
import com.orion.mp.service.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org... | true |
b85e2a04307646d83b6cfcfc8ce8383d7238bfc5 | Java | rogelio171/spring-application | /data-model/src/main/java/com/roger/spring/model/Category.java | UTF-8 | 1,888 | 2.578125 | 3 | [] | no_license | package com.roger.spring.model;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Gen... | true |
9c39f8c4674b494188ad0e4064e53af152145690 | Java | Alan666156/security | /security-service/src/main/java/com/security/service/ClientDetailsService.java | UTF-8 | 2,142 | 2.125 | 2 | [] | no_license | package com.security.service;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import org.apache.commons.lang3.StringUtils;
import... | true |
3fa1810799564ffaba98186f48d8439ed5df552c | Java | unica-open/siacboapp | /src/main/java/it/csi/siac/siacboapp/frontend/ui/action/setprogetti/SetProgettiAction.java | UTF-8 | 3,678 | 1.773438 | 2 | [] | no_license | /*
*SPDX-FileCopyrightText: Copyright 2020 | CSI Piemonte
*SPDX-License-Identifier: EUPL-1.2
*/
package it.csi.siac.siacboapp.frontend.ui.action.setprogetti;
import java.util.Date;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.con... | true |
946b307757e3c43a37a7810caa123833b294ca87 | Java | Emanlui/UniversityProjects | /VueJsWithSpring/proyecto_diseno/src/main/java/com/example/proyecto/Controllers/UserController.java | UTF-8 | 1,389 | 2.25 | 2 | [] | no_license | package com.example.proyecto.Controllers;
import com.example.proyecto.modelo.Conexion;
import com.example.proyecto.modelo.ImageHotel;
import com.example.proyecto.modelo.User;
import com.example.proyecto.services.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http... | true |
4c6cd77446a9c9853b731f8ee4476e4f958a2907 | Java | jainshivani99/MP7 | /PlayWar.java | UTF-8 | 1,997 | 3.90625 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.Scanner;
public class PlayWar {
private static final int TOTAL_NUM_CARDS = Deck.TOTAL_NUM_CARDS;
public static Player determineWinner(Player p1, Player p2){
if (p1.getCount() == TOTAL_NUM_CARDS || p2.getCount() == 0) {
return p1;
} else if (p2.getCount() == TOT... | true |
505f08cb73e87047579f803fb17e0e813d8ea509 | Java | moldovanAndrei/spring-kafka | /spring-kafka-parent/spring-kafka-consumer/src/main/java/com/andrei/kafka/consumer/core/CustomMessage.java | UTF-8 | 806 | 2.59375 | 3 | [] | no_license | package com.andrei.kafka.consumer.core;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Kafka producer message object.
*
* @author Andrei Moldovan
* @since 30.01.2018
*/
public class CustomMessage {
private Strin... | true |
3e41935bddfbfbf64b6f3d1d3b042859ad717ab3 | Java | fedorchuck/remote-logger | /src/main/java/com/github/fedorchuck/remote_logger/commont/model/ResponseWrapper.java | UTF-8 | 875 | 2.078125 | 2 | [] | no_license | package com.github.fedorchuck.remote_logger.commont.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.fedorchuck.remote_lo... | true |
bca1aec9f225edee1c59577771168bd1409e9df5 | Java | BuiltBrokenModding/WatchYourStep | /src/main/java/com/builtbroken/watchyourstep/api/ITrapContainer.java | UTF-8 | 529 | 2.484375 | 2 | [
"MIT"
] | permissive | package com.builtbroken.watchyourstep.api;
import java.util.List;
/**
* Applied to objects that act as trap containers
*
* @see <a href="https://github.com/BuiltBrokenModding/VoltzEngine/blob/development/license.md">License</a> for what you can and can't do with the code.
* Created by Dark(DarkGuardsman, Robert) ... | true |
c507dc1bdc662a922769b4ad50eed307ee45991d | Java | caihonghaoCYF/gree_project_manage_admin | /mall-mbg/src/main/java/com/macro/mall/model/GreePmPlan.java | UTF-8 | 3,130 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | package com.macro.mall.model;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
public class GreePmPlan implements Serializable {
private Integer id;
@ApiModelProperty(value = "计划名称")
private String planName;
@ApiModelProperty(value = "计划详情")
pri... | true |
442dd3a27e3a08dab8fda391cd9bef18b8916da5 | Java | bellmit/shop-mall | /designcenter/core/src/main/java/com/kariqu/designcenter/service/TemplateService.java | UTF-8 | 4,758 | 2.359375 | 2 | [] | no_license | package com.kariqu.designcenter.service;
import com.kariqu.common.pagenavigator.Page;
import com.kariqu.designcenter.domain.model.prototype.*;
import java.util.List;
/**
* 模板服务,封装了操作模板页,模板模块,资源,风格的所有方法
* @author Tiger
* @version 1.0.0
* @since 2011-4-11 下午10:23:51
*/
public interface TemplateService {
/**
... | true |
f86dce461016f8d2af0a6a767c1997376d060111 | Java | Amimul1234/BackEnd | /src/main/java/com/neocyber/NeoCyberApplication.java | UTF-8 | 398 | 1.578125 | 2 | [
"Apache-2.0"
] | permissive | package com.neocyber;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
@SpringBootApplication
@EnableAsync
public class NeoCyberApplication {
public static void main( String[] args... | true |
837f2c4a05199880456b97e8fb30e81b48651a95 | Java | ShinMyunggeun/Receipt | /영수증 수정 - Database.java | UTF-8 | 122 | 1.929688 | 2 | [
"MIT"
] | permissive | package standard4;
public class DataClass {
String goodsName = null;
int goodsCount = 0;
int goodsPrice = 0;
}
| true |
963be9e9ad0958d7a67e07fb6e1bb7a89fc8a62a | Java | sooglejay/CodeNote | /src/leetCode/ShellSort.java | UTF-8 | 2,221 | 3.65625 | 4 | [] | no_license | package leetCode;
/**
* Created by sooglejay on 16/1/16.
*/
public class ShellSort {
public static void main(String[] args) {
int a[] = new int[]{9, 1, 2, 3, 1, 5, 6};
// leetCode.Print.print(insertSort(a));
// int a[8] = {3,1,5,7,2,4,9,6};
ShellInsertSort(a, a.length, 1); //直接插入排序... | true |
f4f171d991b89f16497a4c84326e302b1d4312a0 | Java | jotilalli/RateMyVendorApp | /app/src/main/java/com/example/ratemyvendorapp/AdminLoginPage.java | UTF-8 | 898 | 1.710938 | 2 | [] | no_license | package com.example.ratemyvendorapp;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class AdminLoginPage extends AppCompatActivity {
private Button btnAdminLogin;
private void eventHand... | true |
800fc38f1a58707c9eeeec4c096a7d841639c45c | Java | octario23/Capstone-Project- | /app/src/main/java/mx/com/broadcastv/util/BroadcastvSQLUtil.java | UTF-8 | 5,981 | 2.28125 | 2 | [] | no_license | package mx.com.broadcastv.util;
import android.app.Activity;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import java.util.List;
import java.util.Vector;
import mx.com.broadcastv.data.ServicesContract;
import mx.com.broadcastv.model.Ch... | true |
a2490ea025b0eac07432cab8d356c2249a1877c5 | Java | testmandy/NativeAdLibrary-master | /library/src/main/java/me/dt/nativeadlibary/view/producer/AdMobViewProducer.java | UTF-8 | 5,848 | 1.796875 | 2 | [] | no_license | package me.dt.nativeadlibary.view.producer;
import android.content.Context;
import android.support.annotation.LayoutRes;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.android.gms.ads.forma... | true |