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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7f69cad997c02cd7c09771d0244559a56507ca9e | Java | whatafree/JCoffee | /benchmark/bigclonebenchdata_completed/10596393.java | UTF-8 | 3,473 | 2.78125 | 3 | [] | no_license |
class c10596393 {
public static MyHelperClass Replace(String o0, String o1){ return null; }
//public MyHelperClass Replace(String o0, String o1){ return null; }
public static String BaiKe(String unknown) {
String encodeurl = "";
long sTime = System.currentTimeMillis();
long eTime;
... | true |
434080d56089cfa018d0b7e973e9c7f0caebc4a1 | Java | geek-Xie/MyLeetCode | /34SearchRange(Med)/src/Solution.java | UTF-8 | 1,771 | 3.90625 | 4 | [] | no_license | /**
* 34. 在排序数组中查找元素的第一个和最后一个位置
*
* 给定一个按照升序排列的整数数组 nums,和一个目标值 target。找出给定目标值在数组中的开始位置和结束位置。
*
* 你的算法时间复杂度必须是O(log n) 级别。
*
* 如果数组中不存在目标值,返回[-1, -1]。
*
* 示例 1:
* 输入: nums = [5,7,7,8,8,10], target = 8
* 输出: [3,4]
*
*
* 示例2:
* 输入: nums = [5,7,7,8,8,10], target = 6
* 输出: [-1,-1]
*/
public class Solution... | true |
2729a197cfdda231f560230604cd0fc4660f1a58 | Java | JUNSEYOUNG/javaStudy | /day0929/Exam05.java | UHC | 1,575 | 4.09375 | 4 | [] | no_license | // && || ) л ̸, , , Է¹
// 90 ̻̰ 90 ̸̻ ">~̰ϱ &&϶°ų?"
//б Ϸ
//б θ Ǻϴ α ۼ
import java.util.Scanner;
class Exam05
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
String name;
System.out.println("л ̸ Էϼ.");
name = sc.next();
int kor, eng, math, sum; //... | true |
55333d894ece912c07a6aa9fca4278adae261348 | Java | googleapis/google-cloud-java | /java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RawEncryptResponse.java | UTF-8 | 90,264 | 1.84375 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | /*
* Copyright 2023 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | true |
c8c28e29732a9b795af08960c98f99672f842440 | Java | xrealm/tiktok-src | /sources/com/p280ss/android/ugc/aweme/profile/edit/C35758f.java | UTF-8 | 531 | 1.898438 | 2 | [] | no_license | package com.p280ss.android.ugc.aweme.profile.edit;
/* renamed from: com.ss.android.ugc.aweme.profile.edit.f */
final /* synthetic */ class C35758f implements Runnable {
/* renamed from: a */
private final InstagramPresenter f93726a;
/* renamed from: b */
private final String f93727b;
C35758f(Ins... | true |
c90b7b3875fb4ed7efe50d59db34859545f6baea | Java | JosePatricio/heavy-cargo-management-system | /PROYECTOS/TAS-ON-WEB/tas_on_web/tas-on-web-services/src/main/java/ec/net/redcode/tas/on/rest/processor/PublicServiceProcessor.java | UTF-8 | 9,282 | 1.96875 | 2 | [] | no_license | package ec.net.redcode.tas.on.rest.processor;
import ec.net.redcode.tas.on.common.Constant;
import ec.net.redcode.tas.on.common.MethodConstant;
import ec.net.redcode.tas.on.common.dto.Company;
import ec.net.redcode.tas.on.common.exception.TasOnException;
import ec.net.redcode.tas.on.persistence.entities.*;
import ec.n... | true |
2689234e96d80ccb7c22b6bb8c59681f05226b1c | Java | Anber2/Home_Plus | /app/src/main/java/com/mawaqaa/homepluskw_new/data/ConstructionInnerData.java | UTF-8 | 1,702 | 2.328125 | 2 | [] | no_license | package com.mawaqaa.homepluskw_new.data;
/**
* Created by JijoCJ on 11/14/2016.
*/
public class ConstructionInnerData {
private String id;
private String name;
private String averageRating;
private String personsRated;
private String profilePhotoUrl;
private String location;
... | true |
1fe35ad0769470a6759a41bc7b74be62a90b2b94 | Java | hyperledger/besu | /ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/results/NetworkResult.java | UTF-8 | 1,643 | 2.171875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | /*
* Copyright ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing... | true |
84ef5a5c88c96763ef8c8722ca334388699601c4 | Java | XClouded/avp | /.svn/pristine/84/84ef5a5c88c96763ef8c8722ca334388699601c4.svn-base | UTF-8 | 1,777 | 2.375 | 2 | [] | no_license | package com.lvsint.abp.markettype.factory;
import com.lvsint.abp.MarketType;
import uk.co.abp.MarketTypeStyle;
import com.lvsint.abp.markettype.MarketTypeInstance;
import com.lvsint.abp.markettype.Period;
import com.lvsint.abp.markettype.bean.MethodOfDismissalModel;
import com.lvsint.abp.markettype.processor.... | true |
5d4cbf0906a760f554bac625f5b065dd128cddc3 | Java | pujianggh/my-APPEChuang_tianyuanhao | /src/com/echuang/tianyuanhao/model/CornerModel.java | UTF-8 | 1,075 | 2.46875 | 2 | [] | no_license | package com.echuang.tianyuanhao.model;
/**
* 数据配置
*
* @ClassName: TopCornerModel
* @Description: TODO
* @author 蒲江
* @date 2016-9-1 上午11:35:58
*/
public class CornerModel {
private String content = "";
private String id = "";
private int flag = 0;// 标记升序或者降序 默认0:降序 1:升序
public CornerModel... | true |
b496aa7ce1bdf0d02ebfb8cca467929b27b8933b | Java | RohanNagar/lightning | /application/src/main/java/com/sanction/lightning/authentication/LightningAuthenticator.java | UTF-8 | 941 | 2.515625 | 3 | [
"MIT"
] | permissive | package com.sanction.lightning.authentication;
import com.sanction.lightning.LightningConfiguration;
import io.dropwizard.auth.AuthenticationException;
import io.dropwizard.auth.Authenticator;
import io.dropwizard.auth.basic.BasicCredentials;
import java.util.List;
import java.util.Optional;
public class LightningA... | true |
0df37e9749d2c4aac04dd7aa6122389645b455e2 | Java | klausklemens/sudoku-chimp | /SudokuField.java | UTF-8 | 2,793 | 3.125 | 3 | [] | no_license | import java.util.Iterator;
import java.util.Random;
import java.util.Scanner;
public class SudokuField {
private Pice[][] field;
private Scanner input;
public SudokuField() {
this.input = new Scanner(System.in);
this.field = new Pice[9][9];
Random rng = new Random();
for (int row = 0; row < this.field.le... | true |
a8350461a4335a298e30825106636977fc130b49 | Java | boosty-jp/backend | /src/main/java/jp/boosty/backend/domain/service/datafetchers/UserDataFetcher.java | UTF-8 | 5,895 | 2.109375 | 2 | [] | no_license | package jp.boosty.backend.domain.service.datafetchers;
import jp.boosty.backend.application.converter.requester.RequesterConverter;
import jp.boosty.backend.application.converter.user.AccountResponseConverter;
import jp.boosty.backend.application.converter.user.UserInputConverter;
import jp.boosty.backend.application.... | true |
d19738303bdffea8cbc3bae35bdd46d7ae7197b8 | Java | wuchen1234/bom | /src/main/java/zhth/bom/management/bom/service/serivceImpl/BomMaterialItemServiceImpl.java | UTF-8 | 2,581 | 2.203125 | 2 | [] | no_license | package zhth.bom.management.bom.service.serivceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import zhth.bom.management.bom.domian.BomMaterialItem;
import zhth.bom.management.bom.domia... | true |
317bb5f4492b1b4b23d4f2aea1e3642ce08f93ca | Java | AraiNylaz/origins-forge | /src/main/java/io/github/apace100/origins/power/Powers.java | UTF-8 | 12,072 | 1.515625 | 2 | [
"MIT"
] | permissive | package io.github.apace100.origins.power;
import java.util.HashMap;
import java.util.UUID;
import java.util.stream.Stream;
import io.github.apace100.origins.OriginsMod;
import io.github.apace100.origins.api.RegisterPowerIMC;
import io.github.apace100.origins.power.bird.HighBedPower;
import io.github.apace100.origins.... | true |
3260df4a3748c60add4d3d77febbd4dd0b44a7a4 | Java | FabrizzioRuiz/java-practice | /src/main/java/java8/lambda/EjemploFunction.java | UTF-8 | 990 | 3.53125 | 4 | [] | no_license | package java8.lambda;
import java.util.Locale;
import java.util.function.BiFunction;
import java.util.function.Function;
public class EjemploFunction {
public static void main(String[] args) {
Function<String, String> f1 = param -> "Hola que tal " + param;
String resultado = f1.apply("Fabrizzio");... | true |
77c7a80ba47e1575bdd878227736fe9505b61aea | Java | GabrielVicente-GT/HojaDeTrabajoNo.2 | /Version 1/Main.java | UTF-8 | 1,067 | 3.125 | 3 | [] | no_license | public class Main {
public static void main(String[] args){
Calculadora calculator = new Calculadora();
lector a = new lector();
String operation = a.archivo("cerrito.txt");
String[] SplitOperation;
SplitOperation = operation.split(" ");
for (int i = 0; i < Split... | true |
5c645955def080790d0158087e2ee0ea0ef8ffa8 | Java | sanopi/my-atcoder-log | /abc2/abc27/abc270/ABC270C.java | UTF-8 | 2,513 | 3.375 | 3 | [] | no_license | import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class ABC270C {
private static List<Integer>[] tree;
private static int x;
private static int y;
public static void main(String[] args) {
int n = nextInt();
x = nextInt()-1;... | true |
9dcf0b7df55efbcc83dde01313bdd7936d9064d6 | Java | kgabbasova/java-learner | /Simple/src/PascalTriangle.java | UTF-8 | 1,475 | 3.53125 | 4 | [] | no_license | import java.util.ArrayList;
public class PascalTriangle {
public static void printPascalTriangleWithArr(int n) {
//create rows
int[][] triangleMatrix = new int[n][];
//initialize
for (int i = 0; i < n; i++) {
triangleMatrix[i] = new int[i + 1];
for (int j ... | true |
3795566c814f483f1e0b808b57384169cf29ea77 | Java | RoyKiran/Cost-to-Go-Android-App | /Cost-based-navigation/Cost-to-Go/app/src/main/java/com/bakmaps/cost_to_go/maps/HttpURLs.java | UTF-8 | 509 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | package com.bakmaps.cost_to_go.maps;
import java.util.TreeMap;
/**
* Created by WORK with FUN on 03-02-2016.
*/
public class HttpURLs {
private String url="https://maps.googleapis.com/maps/api/";
private String API_KEY = "" ;
/* void getDistance(TreeMap<>){
*//** URL:- https://maps.googleapis.com... | true |
2c4661a0eec0743232a0e035a9bc2ee57164c735 | Java | VitalyOrochko/EpamCourses | /task1/src/com/epam/geometry/exception/PointCreateException.java | UTF-8 | 602 | 2.234375 | 2 | [] | no_license | package com.epam.geometry.exception;
public class PointCreateException extends Exception {
public PointCreateException() {
}
public PointCreateException(String message) {
super(message);
}
public PointCreateException(String message, Throwable cause) {
super(message, cause);
}... | true |
764073b88ac94d366712ed7f426294a6f33d52f1 | Java | mhp13345/MemberManagementSystem | /src/com/rjjs/member/dao/BaseDao.java | UTF-8 | 759 | 2.53125 | 3 | [] | no_license | package com.rjjs.member.dao;
import java.sql.*;
public class BaseDao {
String driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
String url = "jdbc:sqlserver://localhost:1433;DatabaseName=member";
String user = "sa";
String pwd = "123456";
public Connection getConn() {
Connection conn = null;
try {
C... | true |
a46c054f9807269cc11248cfe6f81feeffa35c69 | Java | RongChoii/kakaopay | /src/main/java/com/kakaopay/finance/util/FileReaderUtil.java | UTF-8 | 934 | 2.515625 | 3 | [] | no_license | package com.kakaopay.finance.util;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class FileReaderUtil {
public static List<String> getCsvfileInfo(String path){
List<String> result = new ArrayList<... | true |
61d29ff619b46c05441f6f2ff2d82f869804f7ee | Java | AJAX-UP/ajax_project | /configclient2/src/main/java/com/configclient2/configclient2/unitl/ConfigUtils.java | UTF-8 | 571 | 1.601563 | 2 | [] | no_license | package com.configclient2.configclient2.unitl;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
/**
* @author guangjiechen
* @createD... | true |
8bbe190b21f1cb61a43679e4fcf59359190c51cd | Java | FarhadShariatzadeh/RecursivePolynomials | /src/main/java/RecursivePolynomialStatements/IPolynomial.java | UTF-8 | 2,219 | 3.84375 | 4 | [] | no_license | package RecursivePolynomialStatements;
public interface IPolynomial {
/**
* A method addTerm, that takes a term (have a coefficient and a power), and
* adds the resulting term to the polynomial
* @param coefficient adding coefficient to the polynomial
* @param power adding power to the polynomial
* @... | true |
6405ee82820a2f2858386f47a84e982eadcc65a9 | Java | maxiaobu1999/malong_service | /src/test/java/com/norman/TestMovie.java | UTF-8 | 3,717 | 2.265625 | 2 | [] | no_license | package com.norman;
import com.norman.moive.repository.IMovieDao;
import com.norman.moive.repository.IPlayAddressDao;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import... | true |
c4726e27c47bb60c4d379bc717c100431dd745fb | Java | jsdumas/java-training | /java-best-of/src/main/java/io/jsd/training/designpattern/book/chap1/voyages/VolLuxe.java | UTF-8 | 204 | 2.34375 | 2 | [] | no_license | package io.jsd.training.designpattern.book.chap1.voyages;
public class VolLuxe implements PartieVoyageLuxe {
public void affiche() {
System.out.println("Vol en première classe");
}
}
| true |
5c2ebb0e12806dc3b3a4cbc007ebcef8d0f6bac4 | Java | cuiods/DataRepository | /Homework1/src/main/java/com/cuiods/datamining/h1/filter/AccountFilter.java | UTF-8 | 818 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package com.cuiods.datamining.h1.filter;
import com.cuiods.datamining.h1.rules.AccountDateRule;
import com.cuiods.datamining.h1.rules.FrequencyEnumRule;
import com.cuiods.datamining.h1.rules.IdRule;
import com.cuiods.datamining.h1.rules.Rule;
import java.util.ArrayList;
import java.util.List;
public class AccountFil... | true |
ca6c94bbfb15b9ca7b8b4111d997cc83a9b27de4 | Java | thalissonoliveira/estrutdados20201 | /src/br/edu/fadam/estruturadedados/aula2/Funcionario.java | UTF-8 | 378 | 2.5 | 2 | [] | no_license | package br.edu.fadam.estruturadedados.aula2;
public class Funcionario implements Pagavel {
private String nome;
private String numeroDocumento;
private double salarioBase;
public double calculaSalario(){
return 0.0;
}
public double getSalarioBase() {
return salarioBase;
}
public void setSalarioBase (dou... | true |
d54f63c9c0dbba138ad9051e79c0d8fe2f608d07 | Java | xiyionxiong/framwork | /src/com/flyong/others/applet/BasicApplet.java | UTF-8 | 1,123 | 3 | 3 | [] | no_license | package com.flyong.others.applet;
import java.applet.*;
import java.awt.*;
/**
* Applet的基础框架。
*
*
*
*/
public class BasicApplet extends Applet {
/**
*
*/
private static final long serialVersionUID = 3363561144082703501L;
// This method is called once by the browser when it start... | true |
a63dd8c004c39bc3429ac9bc4c5332b136d276af | Java | MateuszHupa/Online_Voting | /Backend/src/main/java/com/wybory/pai/models/DatesOfVoting.java | UTF-8 | 736 | 2.359375 | 2 | [] | no_license | package com.wybory.pai.models;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import javax.persistence.*;
import java.util.Date;
@Entity
@Table(name = "DATES_OF_VOTING")
@EnableAutoConfiguration
public class DatesOfVoting{
@Id
@GeneratedValue(strategy = GenerationType.... | true |
a3a8c6306bdb3613ebf03b33d1a064a867bb53ee | Java | VinnyLin72/MKS22X | /07/Merge.java | UTF-8 | 805 | 3.34375 | 3 | [] | no_license | import java.util.*;
import java.io.*;
public class Merge {
public static void mergesort(int[] data) {
int[] temp = new int[data.length];
msort(data, temp, 0, data.length - 1);
}
public static void msort(int[] data, int[] temp, int lo, int hi) {
if (lo < hi){
for (int i = lo; i < hi + 1; i ++){
... | true |
fa736f83e59ec46b868d965af349ab5f29d3e697 | Java | bhanu2308/Training | /Training/src/stringbased/CharArrayToString.java | UTF-8 | 359 | 3.03125 | 3 | [] | no_license | package stringbased;
public class CharArrayToString {
public static void main(String args[])
{
char[] chars = {'T', 'e', 'c', 'h', 'i', 'e', ' ',
'D', 'e', 'l', 'i', 'g', 'h', 't'};
StringBuilder sb = new StringBuilder();
for (char ch: chars) {
sb.append(ch);
}
String string = sb.toString();
S... | true |
d1b260513c7a28934cfccb5565afd47460a7216e | Java | CrumblingAway/School-Projects | /OOP (Java)/ex5/filesprocessing/filters/Filter.java | UTF-8 | 312 | 2.859375 | 3 | [] | no_license | package filesprocessing.filters;
import java.io.File;
/**
* Interface for all filters
*/
public interface Filter
{
/**
* Run the filter on the requested file
* @param file file
* @return true if file meets the filter's requirement, otherwise false
*/
boolean filter(File file);
}
| true |
cd6d1f1451f7471588da24d3acb4d9b22e2ffe8c | Java | mahdiazizProjects/InstaStars | /src/com/robin/instastars/classes/Search.java | UTF-8 | 1,225 | 2.765625 | 3 | [] | no_license | package com.robin.instastars.classes;
import java.util.ArrayList;
public class Search {
private String keyword;
private boolean result;
private ArrayList<Actor_Class>actors;
public ArrayList<Actor_Class> getActors() {
return actors;
}
public void setActors(ArrayList<Actor_Class> actors) {
this.actors = acto... | true |
2cd8707ed8aa6d4c6f9d70335cd9babf81fecbd1 | Java | SergySanJj/MultitaskingManager | /MultitaskingManager/src/com/university/StrFunc.java | UTF-8 | 803 | 3.109375 | 3 | [] | no_license | package com.university;
import static java.lang.Character.*;
public class StrFunc {
public static String getFirstNumber(String str) {
StringBuilder res = new StringBuilder();
for (int i = 0; i < str.length(); i++) {
if (isDigit(str.charAt(i)) || str.charAt(i) == '.' || str.charAt(i) ==... | true |
923fd46dddfbbd6f06196fd87c43e7296bb5cb27 | Java | rafadmlima/RegistroPresenca | /app/src/main/java/com/example/rafael/registropresenca/dao/RegistroDao.java | UTF-8 | 3,849 | 2.59375 | 3 | [] | no_license | package com.example.rafael.registropresenca.dao;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.example.rafael.registropresenca.model.Registro;
import com.example.rafael.registropresenca.util.DBHelper;
im... | true |
ff2bc67cc6344748f2b03a73d857b63251fe04ce | Java | qmwu2000/frameworks | /type-converter/src/test/java/org/unidal/converter/TypeUtilTest.java | UTF-8 | 1,315 | 2.328125 | 2 | [] | no_license | package org.unidal.converter;
import org.unidal.converter.TypeUtil;
import junit.framework.TestCase;
public class TypeUtilTest extends TestCase {
public void testUserDefinedClass() {
assertEquals(false, TypeUtil.isUserDefinedClass(int.class));
assertEquals(false, TypeUtil.isUserDefinedClass... | true |
c312d9901fcf0e47bf2838d3dc6f7031473fa63a | Java | AugGroup/AugSystem | /aug-db/src/main/java/com/aug/db/services/LoginServiceImpl.java | UTF-8 | 1,161 | 2.359375 | 2 | [] | no_license | package com.aug.db.services;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.aug.db.dto.LoginDTO;
import com.aug.db.entities.Login;
import com.aug.db.reposi... | true |
832fe7cfc49299aac0c86e90bf87bff957bb7cc3 | Java | Wangyuf/JAVA-01 | /Week_04/lesson7/src/main/java/com/example/lesson7/Method8.java | UTF-8 | 1,207 | 3.171875 | 3 | [] | no_license | package com.example.lesson7;
import com.example.lesson7.util.CommonUtil;
import lombok.extern.slf4j.Slf4j;
import java.util.concurrent.*;
import java.util.concurrent.atomic.AtomicReference;
/**
* @program: lesson7 Method7.java
* @description: 在 main 函数启动一个新线程,运行一个方法,拿到这个方法的返回值后,退出主线程
* @author: cc
* @create: 202... | true |
3edfe24009ccce791b0ab9c37940772f1263319b | Java | climbtop/EC_PAYMENT | /src/com/trendy/ow/portal/payment/bean/PayItemBean.java | UTF-8 | 2,332 | 1.914063 | 2 | [] | no_license | package com.trendy.ow.portal.payment.bean;
import java.sql.Timestamp;
public class PayItemBean {
private int payItemId = 0;
private int payId = 0;
private int companyId = 0;
private int channelId = 0;
private String payNumber = "";
private String currency = "";
private double payAmount = 0;
privat... | true |
ffbf4550aa2e1744116ed93900be2286c9054c89 | Java | lichuandi/springboot2021 | /src/main/java/com/lichuandi/springboot2021/controller/TestController.java | UTF-8 | 804 | 2.203125 | 2 | [] | no_license | package com.lichuandi.springboot2021.controller;
import com.lichuandi.springboot2021.configBean.ConfigBean;
import com.lichuandi.springboot2021.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.spring... | true |
b2cf60a6d2eef30e4c38169ea9d2b77b2e8609fb | Java | luosen26/CustomerInformationManage | /src/com/luosen/demo/dao/PhoneDao.java | UTF-8 | 445 | 2.09375 | 2 | [] | no_license | package com.luosen.demo.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.luosen.demo.domain.Phone;
public interface PhoneDao {
public List<Phone> find(@Param("u_id")int u_id,@Param("p_id")int p_id,@Param("p_name")String p_name);
public Phone findByName(@Param("u_id")int u_id,@Para... | true |
42a56706ad9a1a0d3b12971c6716f632c4d43100 | Java | michaelmccabe/vaadin-spring-projects | /coins/src/main/java/com/mic/springvaadin/dao/impl/CoinsDaoImpl.java | UTF-8 | 848 | 2.1875 | 2 | [] | no_license | package com.mic.springvaadin.dao.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mic.springvaadin.dao.CoinsDao;
import com.mic.springvaadin.dao.model.Coin;
import com.mic.springvaadin.dao.model.CoinRepository;
@Ser... | true |
919986068ec90c8672794f644628f634f2800a58 | Java | alexlimatds/rlAPI | /src/test/java/org/rlapi/StateActionValueTableTest.java | UTF-8 | 4,351 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | package org.rlapi;
import java.util.List;
import java.util.Set;
import org.junit.Assert;
import org.junit.Test;
/**
*
* @author Alexandre
*/
public class StateActionValueTableTest {
@Test
public void testGetStates(){
ActionValueTableInMemory table = new ActionValueTableInMemory(... | true |
2e9726ca8a4548f71bb078ed01524d6473f5971f | Java | ronnnnnn/happy-help | /src/main/java/com/zyfz/dao/RoleResourceMapper.java | UTF-8 | 245 | 1.65625 | 2 | [] | no_license | package com.zyfz.dao;
import com.zyfz.domain.RoleResourceKey;
public interface RoleResourceMapper {
int deleteByPrimaryKey(RoleResourceKey key);
int insert(RoleResourceKey record);
int insertSelective(RoleResourceKey record);
} | true |
1bcd8780eccd2befa069ad2e52bffbfc7d5bddda | Java | narusas/sinsege | /AceAuction/src2/net/narusas/si/auction/converters/건물현황_층형Converter.java | UTF-8 | 830 | 2.671875 | 3 | [] | no_license | /*
*
*/
package net.narusas.si.auction.converters;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
// TODO: Auto-generated Javadoc
/**
* The Class 건물현황_층형Converter.
*/
public class 건물현황_층형Converter {
/** The p. */
static Pattern p = Pattern.compile("(\\d+\\s*층)");
/** The ... | true |
e98954002cf12782dfb4761ced35ec8d6e4a98c3 | Java | Xinhuix/SpringCloud | /SpringCloud-visionvera/visionvera-operation/src/main/java/com/visionvera/util/MysqlJdbc.java | UTF-8 | 2,326 | 2.734375 | 3 | [] | no_license | package com.visionvera.util;
import java.io.IOException;
import java.io.InputStream;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import com.mysql.jdbc.Connection;
import com.mysql.jdbc.Statement... | true |
c3146b0b7ad40e4105fbb8198ef54c419281c3de | Java | Teratech2018/Teratech | /keren-erp/core-components/service-components/service-impl/src/main/java/com/core/views/KabanRecordRSImpl.java | UTF-8 | 1,107 | 1.96875 | 2 | [] | no_license |
package com.core.views;
import javax.ws.rs.Path;
import com.bekosoftware.genericmanagerlayer.core.ifaces.GenericManager;
import com.megatimgroup.generic.jax.rs.layer.annot.Manager;
import com.megatimgroup.generic.jax.rs.layer.impl.AbstractGenericService;
/**
* Classe d'implementation du Web Service JAX-R... | true |
0b6d86c41d940baecf985a20513731eac87d08d5 | Java | nguyendinhduc/FirstProjectVMO | /src/com/vmodev/hieplnc/first/MyArray.java | UTF-8 | 3,507 | 3.578125 | 4 | [] | no_license | package com.vmodev.hieplnc.first;
import java.lang.annotation.Target;
import java.util.ArrayList;
import java.lang.Math;
import java.util.Arrays;
public class MyArray {
//============================================//
// variable
ArrayList<Integer> array = null;
//===================================... | true |
d468bc4a19ab17822d6bacf858906320ad0aa3ee | Java | LadyToledo/Pacman-2.0 | /Juego.java | UTF-8 | 9,157 | 2.390625 | 2 | [] | no_license | /**
*
*/
package pacman;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Event;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt... | true |
cf6172677fb94969c2d612d1f90512e1edf1e81d | Java | zoluu/Round-Up-For-Savings | /RoundUpTest.java | UTF-8 | 6,390 | 3.21875 | 3 | [] | no_license | package com.starlingbank;
import org.junit.Test;
import java.math.BigInteger;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import java.util.NoSuchElementException;
import static org.junit.Assert.*;
public class RoundUpTest {
/**... | true |
a3472bcca88d0b9d432386b773630b7d7806e445 | Java | M-andra/NETGURU | /src/test/java/Tests/Login2test.java | UTF-8 | 796 | 1.992188 | 2 | [] | no_license | package Tests;
import Base.BaseTest;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
public class Login2test extends BaseTest {
@Test
public void Login2(){
//test will validate correct email address and incorrect password will not be accepted and user wil... | true |
ea393861e55f8ddb2d9b2f2d6b142dc51968aef4 | Java | milanmanvar/CNAndroidApp-Milan | /CNAndroidApp/src/main/java/com/thecn/app/activities/post/PostActivity.java | UTF-8 | 7,026 | 2.375 | 2 | [] | no_license | package com.thecn.app.activities.post;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import com.thecn.app.AppSession;
import com.thecn.app.R;
import com.thecn.app.activities.navigation.NavigationActivity;
import com.thecn.app.models.content.Post;
import com.thecn.app.stores.PostStore;
import com.t... | true |
ff8a5fba8aade1fca7b947ae47af9ccca8855a87 | Java | Jaludi/restapp | /app/src/main/java/com/example/android/restapp/restPack/ResultAdapter.java | UTF-8 | 2,038 | 2.46875 | 2 | [] | no_license | package com.example.android.restapp.restPack;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.example.android.restapp.R;
import java.util.ArrayList;
/**
* Creat... | true |
645ef384c08cf76f3a5697ca3424b0b4277e33be | Java | 1792507768/etl-visual | /code/model/com/iisquare/jwframe/service/ResourceService.java | UTF-8 | 5,660 | 2 | 2 | [] | no_license | package com.iisquare.jwframe.service;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.sp... | true |
27a15b7c98ba676b3864ce2b3a14d2b5d17d0789 | Java | rohitravishankar/Year-1 | /CSCI-605/HomeWork9/NoBlockingIO.java | UTF-8 | 5,225 | 3.671875 | 4 | [] | no_license | package HomeWork9;
/*
* NoBlockingIO.java
*
* Version: NoBlockingIO.java, v 1.0 2017/04/11
*
* Revisions:
* Revision 1.0 2017/04/11 08:07:05
* Initial Revision
*
*/
import java.io.*;
/**
* This class demonstrates the understanding of Thread Synchronization
*
* @author Rohit Ravishank... | true |
b1a5f4232203ad2b73c5f35866ed5e13d841e8ff | Java | aQuaNice/ClientMaster | /src/main/java/com/andana/Model/MenuHeader.java | UTF-8 | 1,364 | 2.15625 | 2 | [] | no_license | package com.andana.Model;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.per... | true |
6846ba98779b2f492a3e61f34098cb8378b8fcc6 | Java | Tio304/12prog | /src/pkg12prog/calculator.java | UTF-8 | 3,833 | 3.25 | 3 | [] | no_license | /*
* 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 pkg12prog;
import java.util.Scanner;
import static pkg12prog.Main.hitung;
/**
*
* @author H4NS
*/
public class calculator ... | true |
ea8d4b7ede9efba79244a2d79563a9e48bc2b015 | Java | apache/sirona | /plugins/hazelcast/agent/src/main/java/org/apache/sirona/plugin/hazelcast/agent/HazelcastGaugeFactory.java | UTF-8 | 3,208 | 2.078125 | 2 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0",
"CC-BY-3.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
af917e2eed630eca6835bf053136d07f509cb8b6 | Java | radufurculesteanu/JavaDocs | /JDBC/Code/JDBCApp/src/main/java/ro/teamnet/zth/api/em/EmployeeManager.java | UTF-8 | 2,347 | 2.78125 | 3 | [] | no_license | package ro.teamnet.zth.api.em;
import ro.teamnet.zth.api.database.DBManager;
import ro.teamnet.zth.appl.domain.Employee;
import javax.swing.plaf.nimbus.State;
import java.lang.reflect.Field;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.uti... | true |
40e204ca22fd40d78c5ccc4844b3ab6404e36bf7 | Java | thushear/solr1 | /src/org/apache/solr/request/SimpleFacets.java | UTF-8 | 10,650 | 1.96875 | 2 | [] | no_license | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | true |
8857640d4d01defd4b983fa948a8506efe888f2b | Java | rdayton/stockparser | /src/test/java/pages/StockPage.java | UTF-8 | 4,898 | 2.671875 | 3 | [] | no_license | package pages;
import cucumber.api.java.an.E;
import org.openqa.selenium.*;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import tests.TestRunner;
public class StockPage {
private String url;
private static WebDriver driver;
private Double ... | true |
011046656095f17f6e5e92b30f4214fb2778850a | Java | onyas/leetcode | /src/main/java/com/onyas/leetcode/P027RemoveElement.java | UTF-8 | 593 | 3.375 | 3 | [] | no_license | package com.onyas.leetcode;
/**
* Given an array and a value, remove all instances of that value in place and return the new length.
* The order of elements can be changed. It doesn't matter what you leave beyond the new length.
* <p/>
* Created by IntelliJ IDEA
* User: zhenglinlin
* Date: 15/11/5
* Time: 上午10:... | true |
6a5d13ab77430accfd395163a0969d3416982656 | Java | reggiej/TA_ICE_Dlittle | /ta_ice/lib/toplink-src/oracle/toplink/ox/mappings/nullpolicy/IsSetNullPolicy.java | UTF-8 | 7,145 | 2.140625 | 2 | [] | no_license | // Copyright (c) 1998, 2007, Oracle. All rights reserved.
package oracle.toplink.ox.mappings.nullpolicy;
import java.lang.reflect.Method;
import oracle.toplink.internal.ox.NillableNodeValue;
import oracle.toplink.internal.ox.NodeValue;
import oracle.toplink.internal.ox.NullCapableValue;
import oracle.toplink.intern... | true |
82edc2f00ede8112cd8dc8207cdf08dadfe31302 | Java | easy-develop/core-utils | /src/test/java/com/easy/core/utils/StringsUtilTest.java | UTF-8 | 385 | 2.28125 | 2 | [
"MIT"
] | permissive | package com.easy.core.utils;
import org.junit.Test;
import static org.junit.Assert.*;
public class StringsUtilTest {
@Test
public void canNormalizeWhitespace(){
String text = "This contains some whitespaces ";
assertEquals("Cannot normalize whitespaces", "This contains some ... | true |
bc0daa8b11deab59ce780f3bef511717541565e6 | Java | livinglh/leetcode_record | /src/笔试题/广联达7_29/Main.java | UTF-8 | 649 | 2.953125 | 3 | [] | no_license | package 笔试题.广联达7_29;
import java.util.PriorityQueue;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int x = sc.nextInt();
PriorityQueue<Integer> minheap... | true |
95831c120209ecd73252ab475e25d3e76ed307c8 | Java | chenmingang/dubbo-tx | /txTest11/src/test/java/tx/ProviderServiceTest.java | UTF-8 | 1,400 | 2.25 | 2 | [] | no_license | package tx;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import java.util.concurrent.ExecutorService;
import j... | true |
c07d7d8e5b85432f5e18893e837c89d18aab84ad | Java | dzy-713/ssm-demo | /src/main/java/com/rl/mes/pojo/PickData.java | UTF-8 | 669 | 2.125 | 2 | [] | no_license | package com.rl.mes.pojo;
/**
*/
public class PickData {
private static final long serialVersionUID = 1L;
/**
* 类型
*/
String type;
/**
* 条码
*/
String barcode;
/**
* 汇总数量
*/
Integer qty;
public String getType() {
return type;
}
public voi... | true |
04f8d16670a4b6fef08eadcfe8b34af2c15f2a18 | Java | thatnerd2/Algorithms-Data-Structures | /algos/src/dp/MaxValueContigSeq.java | UTF-8 | 981 | 4 | 4 | [] | no_license | package dp;
public class MaxValueContigSeq {
public static void main (String [] args) {
/*
* Problem: Find subsequence of consecutive numbers that have maximized sum
*
* Success!
*/
int[] in = {1, 2, 3, 5, 6, 7};
int ans = solve(in);
System.out.println("Answer: " + ans);
}
... | true |
ca784645210da86d207b65fd1b08306c7e3ce9d9 | Java | CrackerCat/XiaomiFramework | /mi2s_securitycenter_miui12/src/main/java/androidx/appcompat/app/C0084f.java | UTF-8 | 776 | 1.828125 | 2 | [] | no_license | package androidx.appcompat.app;
import android.view.View;
/* renamed from: androidx.appcompat.app.f reason: case insensitive filesystem */
class C0084f implements Runnable {
/* renamed from: a reason: collision with root package name */
final /* synthetic */ View f300a;
/* renamed from: b reason: col... | true |
0d120fd90cb17ff14fc06fa61042ee03fcc0d3a8 | Java | seamus-zou/ideal-flume | /src/main/java/com/ideal/flume/io/BucketWriter.java | UTF-8 | 13,580 | 2.21875 | 2 | [] | no_license | package com.ideal.flume.io;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.Callable;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import java.util.conc... | true |
3ce5d4838555b9c4871351d428b3b5be38f3e82c | Java | tomeks86/c0dility-training | /test/edu/tseidler/countingelements/MaxCountersTest.java | UTF-8 | 808 | 2.453125 | 2 | [] | no_license | package edu.tseidler.countingelements;
import junitparams.JUnitParamsRunner;
import junitparams.Parameters;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.assertArrayEquals;
@RunWith(JUnitParamsRunner.class)
public class MaxCountersTest {
private MaxCounters maxCounters = ... | true |
a9d065cfe8ebd574ab1116152ab3fe0a5d4b1d71 | Java | yuki-mtmr/myApp | /src/main/java/com/example/myApp/dao/UserSkillMapper.java | UTF-8 | 318 | 1.96875 | 2 | [] | no_license | package com.example.myApp.dao;
import com.example.myApp.model.UserSkill;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface UserSkillMapper {
List<UserSkill> selectAllSkillByUser(int user_id);
int insert(UserSkill userSkill);
int update(UserSkill userSkill);
}
| true |
cc988e1b6bb2f5a3b554da0ddd34b96622b4f648 | Java | ITFakultetet/JavaGrunnkurs | /Scanner/src/no/itfakultetet/java/TripPlanner.java | UTF-8 | 2,602 | 3.5 | 4 | [] | no_license | package no.itfakultetet.java;
import java.util.Scanner;
public class TripPlanner {
public static void main(String[] args) {
intro();
budget();
time();
}
public static void intro() {
Scanner input = new Scanner(System.in);
System.out.println("Velkommen til ferie... | true |
e76c1c8ff91ba15ccfd559bb4cd76dd9849334d4 | Java | unnch/spell-sat | /spell/branches/1.5/spel-dev/org.python.pydev/src_completions/org/python/pydev/editor/codecompletion/PyCodeCompletionInitializer.java | UTF-8 | 2,058 | 1.8125 | 2 | [] | no_license | /*
* Created on 20/08/2005
*/
package org.python.pydev.editor.codecompletion;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.core.runtime.preferences.DefaultScope;
import org.osgi.service.prefs.Preferences;
import org.python.pydev.logging.PyLoggingPreferencesPag... | true |
e89d138f7c5c2c15945a932eb2f9b37d6a2f61bd | Java | JaneMoskalenko/CourseProjectApp | /app/src/main/java/com/example/admin/courseproject/Model/image/ImageManager.java | UTF-8 | 3,137 | 2.3125 | 2 | [] | no_license | package com.example.admin.courseproject.Model.image;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Environment;
import android.provider.MediaStore;
import an... | true |
ef26c086e5ce2d45112c6cca95a44f944f113854 | Java | Rita-Bernstein/Gensokyo | /src/main/java/Gensokyo/cards/UrbanLegend/Kunekune.java | UTF-8 | 1,608 | 2.28125 | 2 | [] | no_license | package Gensokyo.cards.UrbanLegend;
import Gensokyo.GensokyoMod;
import Gensokyo.powers.act1.LunacyPower;
import Gensokyo.tags.Tags;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import c... | true |
a4b052745211172034f688f05f5a894273532d13 | Java | AnupKumarPanwar/RightFlick | /app/src/main/java/com/rightflick/dating/social/FullScreenImage.java | UTF-8 | 1,328 | 1.945313 | 2 | [] | no_license | package com.rightflick.dating.social;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;
import com.jsibbold.zoomage.ZoomageView;
import com.squareup.picasso.Picasso;
import com.squareup.picasso.Tar... | true |
bfd6d313775afc6b088c09372393f3f42b18ee10 | Java | yankaic/Paxos | /src/messages/TableLine.java | UTF-8 | 1,040 | 2.46875 | 2 | [] | no_license | package messages;
import com.google.gson.Gson;
import java.io.Serializable;
import jdk.nashorn.internal.parser.JSONParser;
import jdk.nashorn.internal.runtime.JSONFunctions;
/**
*
* @author Yan Kaic
*/
public class TableLine implements Serializable {
protected String target;
protected String lin... | true |
d5caa0ac1e8f2f77dc850967108ddc777f99bc53 | Java | gogym/gogym-oss | /commonModule/src/main/java/pres/gogym/common/Constants.java | UTF-8 | 1,352 | 1.617188 | 2 | [] | no_license | package pres.gogym.common;
public class Constants {
// 上传头像大小
public static final int UPLOAD_HEAD_PORTRAIT_SIZE = 2097152;
// token有效时间
public static final int TOKEN_VALID_TIME = 48 * 60 * 60 * 1000;// 48小时
public static final int TOKEN_REDIS_TIME = 2 * 60 * 60;// 24小时(单位:s)
// 推送URL
public sta... | true |
99b565015bd58fa2e8340268086338916579502d | Java | lfallo1/ScheduleGenerator | /src/com/lancefallon/schedulegenerator/service/AnalyzerService.java | UTF-8 | 559 | 2.640625 | 3 | [] | no_license | package com.lancefallon.schedulegenerator.service;
import com.lancefallon.schedulegenerator.model.Team;
public class AnalyzerService {
public double getGameRating(Team team1, Team team2){
double rating = 0.0;
rating += team1.getPreviousSeasonWins() + team2.getPreviousSeasonWins();
if(team1.getDivision().equa... | true |
53de2393e7dee495ec793355874c9d218a4b7ce7 | Java | ds21h/LightControl | /app/src/main/java/jb/light/control/ManageSwitchListAdapter.java | UTF-8 | 3,858 | 2.21875 | 2 | [] | no_license | package jb.light.control;
import android.app.Activity;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.CheckBox;
import android.widget.Linear... | true |
ff761c74bff83188d872e3672d129ccf4937bbd4 | Java | hkj141421/StudyDemo | /SSMDemo/src/main/java/com/knight/Dao/XHostSummaryByFileIoTypeMapper.java | UTF-8 | 2,355 | 1.742188 | 2 | [] | no_license | package com.knight.Dao;
import com.knight.Bean.XHostSummaryByFileIoType;
import com.knight.Bean.XHostSummaryByFileIoTypeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface XHostSummaryByFileIoTypeMapper {
/**
* This method was generated by MyBatis Generator.
* Th... | true |
acdc45166e921bf7dbcd61ad2a9a54f0b5a057c6 | Java | SaharHany/EventHubUser | /EventHubUser/app/src/main/java/com/iti/eventhubuser/screens/loginscreen/fragments/ForgetPasswordFragment.java | UTF-8 | 599 | 1.8125 | 2 | [] | no_license | package com.iti.eventhubuser.screens.loginscreen.fragments;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import com.iti.eventhubuser.R;
public class ForgetPasswordFragment extends Fragment {
publi... | true |
7259eac68606af6a0d6e01bf2678a95d8b93c8b9 | Java | vacaly/Alink | /core/src/main/java/com/alibaba/alink/pipeline/feature/ScorecardModel.java | UTF-8 | 675 | 1.773438 | 2 | [
"Apache-2.0"
] | permissive | package com.alibaba.alink.pipeline.feature;
import org.apache.flink.ml.api.misc.param.Params;
import com.alibaba.alink.common.annotation.NameCn;
import com.alibaba.alink.operator.common.finance.ScorecardModelMapper;
import com.alibaba.alink.params.finance.ScorecardPredictParams;
import com.alibaba.alink.pipeline.MapM... | true |
c15df68c8d6b7e5bcdb8868fc718fa0adb381b20 | Java | YaqianQi/Algorithm-and-Data-Structure | /Java/Math/_5343_ConstructTargetArrayWithMultipleSums.java | UTF-8 | 1,088 | 3.625 | 4 | [] | no_license | import java.util.*;
public class _5343_ConstructTargetArrayWithMultipleSums {
public boolean isPossible(int[] target) {
PriorityQueue<Integer> q = new PriorityQueue<>((a,b)->(b-a));
int sum = 0;
int n = target.length;
for (int num : target) {
q.offer(num);
sum+= num;
}
while(sum > n) {
int val = q... | true |
2c9a1861b60a3e1d87d1e5d2b08f184dbd266612 | Java | smoenssen/MyGroceryList | /app/src/main/java/com/smoftware/mygrocerylist/EditCategoryListActivity.java | UTF-8 | 12,625 | 2.09375 | 2 | [] | no_license | package com.smoftware.mygrocerylist;
import android.app.Dialog;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.os.Bundle;
import android.support.design.widget.FloatingA... | true |
fd151ded52dda4fe322cc20ac03ff4a6b9f9b87f | Java | yqhuang1/VideoApplication | /app/src/main/java/com/li/videoapplication/utils/HttpUtils.java | UTF-8 | 45,974 | 1.953125 | 2 | [] | no_license | package com.li.videoapplication.utils;
import android.content.Context;
import android.util.Log;
import com.li.videoapplication.activity.ExApplication;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFo... | true |
479b49cdd713ff7d18705d429488d19612086e45 | Java | jtong-kata/pos-net-shell-only | /java/maven/src/main/java/GotoBar2ZipCommand.java | UTF-8 | 353 | 2.21875 | 2 | [] | no_license | import java.util.Map;
public class GotoBar2ZipCommand implements Command {
private Map<String, Command> newMapping;
public GotoBar2ZipCommand(Map<String, Command> newMapping) {
this.newMapping = newMapping;
}
public Result invoke(String input) {
return new Result("Please input bar cod... | true |
81ea3922daa0f80ca0c707737b2e3175dd51235a | Java | thanhlam1211/JAVALAB_J1.L.P0021 | /LAB21/src/Validation.java | UTF-8 | 4,257 | 3.046875 | 3 | [] | no_license | import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;
import java.util.ArrayList;
import java.util.Scanner;
public class Validation {
public static final Scanner sc = new Scanner(System.in);
public static int checkInputLimit(int min, int max) {
while (true) {
try{
... | true |
39aabf9757bf1e92dd961a61447e2b055c6c9658 | Java | ppetko98/proyecto | /JSE-SWING-JDBC-PROYECTO-CASA/src/modelo/entidades/Nomenclatura.java | UTF-8 | 1,809 | 2.75 | 3 | [] | no_license | package modelo.entidades;
public class Nomenclatura {
private int especie, dominio, filo, clase, orden, familia, genero;
public Nomenclatura(int especie, int genero, int clase, int filo, int orden, int familia, int dominio) {
this.especie = especie;
this.genero = genero;
this.clase = ... | true |
24df879d5a4d6dd0b9ecf830267b4c5fe2fbc0c2 | Java | Witold101/camecoGoods | /src/by/vistar/comeco/services/ServiceMain.java | UTF-8 | 711 | 2.40625 | 2 | [] | no_license | package by.vistar.comeco.services;
import java.sql.Connection;
import java.sql.SQLException;
public class ServiceMain {
Connection connection;
public ServiceMain(Connection connection) {
this.connection = connection;
}
public void startTransaction() {
try {
this.connecti... | true |
32d55a60274b781bac1b8c416b6577ffbbd3d9fc | Java | jango2015/RetailerAndroid | /app/src/main/java/com/neighbor/retailer_android/ui/activity/shopcart/OrderDetailActivity.java | UTF-8 | 3,966 | 2.328125 | 2 | [] | no_license | package com.neighbor.retailer_android.ui.activity.shopcart;
import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.ImageButton;
import android.widget.ListView;
import androi... | true |
68ee02204632cc242a193da9d51e22b1ecede9c9 | Java | Khushi-185/nstermwork | /19_KhushaliPanchal/Practicals/PasswordEncryption/Client.java | UTF-8 | 1,060 | 3.265625 | 3 | [] | no_license | package Assign2.que1;
import java.net.*;
import java.io.*;
import java.util.Scanner;
class Client{
public static void main(String args[]) throws Exception{
Socket s=new Socket("127.0.0.1",1234);
Scanner sc=new Scanner(System.in);
System.out.println("Enter Password : ");
String msg=sc.nextLine();
... | true |
a6dd92d24e65adceb924b2c06ae5df10c75c0dba | Java | dzboy2k/fpl_java1 | /Bài 04 - Lớp và Đối tượng/Slide_04/src/slide_04/SinhVien.java | UTF-8 | 834 | 3.09375 | 3 | [] | no_license | /*
* 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 slide_04;
/**
*
* @author dzboy
*/
public class SinhVien {
private String hoTen;
private double diem;
public ... | true |
11216087f49069d09f5ccdcfaa14ba1c665caa89 | Java | seongmin-kwon/Java_Basic_Pratice | /Method_02.java | UTF-8 | 1,081 | 4 | 4 | [] | no_license | package days08;
public class Method_02 {
// 매배변수 메서드 호풀시 메서드가 필요로하는 데이터를 전달해주는 매개역할의 변수
public static void myPrint() {
System.out.println("나의 출력 메서드");
}
public static void main(String[] args) {
myPrint();
myPrintWith2Int(10,20); // 10 20 은 전달인자이다.
}
//public: 공용의 의미 누구나 사용 가능 메서드 앞에 표기
//... | true |
1da895f497ed4fa403b7a5afe99bf084a9617f0c | Java | PhilMacGregor/xoxobot | /src/ai/MapResolver.java | UTF-8 | 152 | 1.96875 | 2 | [] | no_license | package ai;
import java.awt.Dimension;
public interface MapResolver {
public Player getFieldAt(int x, int y);
public Dimension getMapSize();
}
| true |
1dfad14f31c8d771bb104a686aac0109b932ccc1 | Java | haoduor/GuChatRoom | /src/main/java/com/gu/chatroom/model/Message.java | UTF-8 | 1,838 | 2.1875 | 2 | [] | no_license | package com.gu.chatroom.model;
import java.io.Serializable;
import java.util.Date;
public class Message implements Serializable {
private Integer id;
private Integer sender;
private Integer receiver;
private Integer chatroom;
private Integer channel;
private String message;
private D... | true |
c15bef761fa7b964f62a84f8215e2a1917ac8970 | Java | tonsr/project | /comm-stage/comm-db/src/main/java/com/demo/dbconnector/DataSourceProperty.java | UTF-8 | 1,423 | 2.421875 | 2 | [] | no_license | package com.demo.dbconnector;
import org.springframework.util.StringUtils;
public class DataSourceProperty {
public DataSourceProperty(String name) {
this.name = name;
}
public String getName() {
return name;
}
private String name;
private String url;
private String password;
private String username... | true |