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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
73730dc1b8eb9c3a781cfea08a7ea4d47d425134 | Java | kkrushnyakov/natera | /src/test/java/ru/krushnyakov/natera/GraphTest.java | UTF-8 | 8,335 | 2.65625 | 3 | [] | no_license | package ru.krushnyakov.natera;
import static org.junit.Assert.assertEquals;
import java.util.Arrays;
import java.util.HashSet;
import org.junit.Test;
import ru.krushnyakov.natera.lib.DirectedEdge;
import ru.krushnyakov.natera.lib.Graph;
import ru.krushnyakov.natera.lib.SimpleGraphLib;
import ru.krushnya... | true |
0ab26442f4aa58aa786c1af42c2454a3daad3130 | Java | joshuaapp/Swen222GroupProject | /items/Chest.java | UTF-8 | 852 | 3.3125 | 3 | [] | no_license | package items;
import java.util.ArrayList;
import java.util.List;
public class Chest implements StorageItem, InteractableItem{
private List<Item> contents;
public Chest(){
contents = new ArrayList<Item>();
}
public Chest(List<Item> contents){
this.contents = new ArrayList<Item>();
this.contents.addAll(... | true |
59feadec86bb9eec112f876cb4cad72f43c15b0c | Java | faSUro/Gordon-s-Cards | /src/it/fasuro/gordonscards/Launcher.java | UTF-8 | 1,108 | 2.875 | 3 | [] | no_license | package it.fasuro.gordonscards;
import java.io.IOException;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import it.fasuro.gordonscards.utilities.IOTools;
/**
* This class allows to start the entire program.
* This is an application for the "flashcard" study method; it
* allow... | true |
7aadc4ae889aac63b5fbef16e9d8f7d92c0e0676 | Java | belgren/Survey | /test/TestDatabase.java | UTF-8 | 2,457 | 3.078125 | 3 | [] | no_license | import static org.junit.Assert.*;
import java.sql.SQLException;
import org.junit.Test;
import org.junit.Before;
import java.util.HashMap;
public class TestDatabase {
private Database db;
private HashMap<Integer, String> questionTableContents;
private HashMap<String, Integer> answerTableContents;
@Before
public... | true |
304a74a6bb7e802ece3e6a3f400d6451d217f823 | Java | luancsl/GrowApp | /android/app/src/main/java/com/uname/growapp/EventTimeController.java | UTF-8 | 871 | 1.804688 | 2 | [] | no_license | package com.uname.growapp;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.Nullable;
import android.widget.Toast;
import android.content.Context;
import com.facebook.react.HeadlessJsTaskService;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.jstasks.HeadlessJ... | true |
1fd86d33e18b8fff1dd07135a159e31d4c672761 | Java | bbusching/CSC431 | /java/ast/VoidType.java | UTF-8 | 373 | 2.578125 | 3 | [] | no_license | package ast;
public class VoidType
implements Type
{
public static final String TYPE = "void";
public String toTypeString() {
return TYPE;
}
public String toString() {
return "VoidType";
}
@Override
public String toLlvmType() {
return TYPE;
}
public boolean equals(Ob... | true |
6e3fda5be3828c26e2f3f363c267af3b9439ec44 | Java | Oriolgresa/grouptalk-project | /service/src/main/java/edu/upc/eetac/dsa/grouptalk/dao/ThemeDAOQuery.java | UTF-8 | 1,463 | 2.15625 | 2 | [] | no_license | package edu.upc.eetac.dsa.grouptalk.dao;
/**
* Created by Oriol on 29/03/16.
*/
public interface ThemeDAOQuery {
public final static String UUID = "select REPLACE(UUID(),'-','')";
public final static String CREATE_THEME = "insert into themes (id, userid, groupid, subject, content) values (unhex(?), unhex(?),... | true |
face7ed23ffc93f6cc3d789f2382e5ec0d417184 | Java | mauricio-cantu/map-recognizer | /IMapa.java | UTF-8 | 256 | 2.15625 | 2 | [] | no_license | package br.com.unisinos.trabga;
import java.io.File;
import java.io.IOException;
public interface IMapa {
public void carregar(File file) throws IOException;
public void reconhecer();
public void exibirMatriz();
public void exibirElementos();
}
| true |
028990d63b8ec2e1221fbb3e92035f6f1a2fbf82 | Java | iidioter/xueqiu | /classes/com/sleepycat/b/l/a/e.java | UTF-8 | 1,360 | 1.859375 | 2 | [] | no_license | package com.sleepycat.b.l.a;
import com.sleepycat.b.aa;
import com.sleepycat.b.c.h;
import com.sleepycat.b.g.ar;
import com.sleepycat.b.g.at;
import com.sleepycat.b.l.w;
import java.nio.ByteBuffer;
public class e
implements at
{
private long a;
private byte[] b;
private final h c = new h();
public final ... | true |
293817a3a0e0653700b9ee0a2553efb6ce07c30d | Java | yangxuechen/LeetCode-algorithm | /LeetCode1/LeetCode690.java | UTF-8 | 1,081 | 3.21875 | 3 | [] | no_license | package leetCode2;
import java.util.ArrayDeque;
import java.util.HashMap;
import java.util.List;
/*
// Employee info
class Employee {
// It's the unique id of each node;
// unique id of this employee
public int id;
// the importance value of this employee
public int importance;
// the id of d... | true |
056c784de9b5ab64795d7a46997482c3610516e7 | Java | montaro/PLAY-websockets-server | /app/utils/Metrics.java | UTF-8 | 4,491 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package utils;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.text.DecimalF... | true |
61af42e7cca6b31fca25eed21851aa63bfcdd1b8 | Java | LHZBryant/firstdemo | /src/main/java/com/tsinghua/edu/model/Neighbor.java | UTF-8 | 755 | 2.390625 | 2 | [] | no_license | package com.tsinghua.edu.model;
/**
* Created by lhz_bryant on 2017/1/16.
*/
public class Neighbor {
private int node_id;
private float rssi;
private float lqi;
private int etx;
Neighbor(){
}
Neighbor(int node_id,float rssi,float lqi,int etx){
this.node_id=node_id;
this.... | true |
00291a55970fe9413eee40b6daea2cb3200610ad | Java | Dennis-Koch/ambeth | /jambeth/jambeth-persistence-jdbc/src/main/java/com/koch/ambeth/persistence/jdbc/connection/AbstractConnectionFactory.java | UTF-8 | 4,819 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package com.koch.ambeth.persistence.jdbc.connection;
/*-
* #%L
* jambeth-persistence-jdbc
* %%
* Copyright (C) 2017 Koch Softwaredevelopment
* %%
* 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... | true |
b5af2554596f2dd3f87282598908272748887209 | Java | codelipenghui/blobit | /blobit-core/src/main/java/org/blobit/core/api/BucketHandle.java | UTF-8 | 6,119 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | /*
Licensed to Diennea S.r.l. under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. Diennea S.r.l. licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except ... | true |
f517cac2ed8ef6c29d900bdb8f96d854faec2b9f | Java | QYZX/SaltedFishDaily | /app/src/main/java/com/nns/saltedfishdaily/view/SplashActivity.java | UTF-8 | 1,736 | 2.171875 | 2 | [] | no_license | package com.nns.saltedfishdaily.view;
import android.content.Intent;
import android.os.Bundle;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.nns.saltedfishdaily.R;
import com.nns.saltedfishdaily.base.BaseActivity;
import... | true |
8b838794df92ff7eee8c93795455a4bdd7f74387 | Java | winzawcool/spring-mvc-demo2 | /src/main/java/com/solt/jdc/springmvcdemo2/controller/ArticleController.java | UTF-8 | 1,163 | 2.203125 | 2 | [] | no_license | package com.solt.jdc.springmvcdemo2.controller;
import com.solt.jdc.springmvcdemo2.dao.ArticleDao;
import com.solt.jdc.springmvcdemo2.model.Article;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springfra... | true |
6e70115382980978ad00dab3e0405d4edf283e5c | Java | sengeiou/mygit | /ttdollmachine_android/l4_clean/src/main/java/com/beanu/l4_clean/adapter/IMMessageAdapter.java | UTF-8 | 1,550 | 2.453125 | 2 | [] | no_license | package com.beanu.l4_clean.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.beanu.l4_clean.R;
import com.beanu.l4_clean.model.bean.IMMessage;
import java.util.List;
import butte... | true |
909737956bb72aa8b6efbe6268894ef37aa49194 | Java | BackupTheBerlios/isisoap | /soap/src/java/soap/ui/SoapMembersTable.java | UTF-8 | 1,815 | 2.28125 | 2 | [] | no_license | /*
* SOAP Supervising, Observing, Analysing Projects
* Copyright (C) 2003-2004 SoapTeam
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or any later v... | true |
b0042bbf7e0b97edef7aa5060d83367fe8708f06 | Java | weilaidb/PythonExample | /regularexpress/home/weilaidb/work/app/hadoop-2.7.3-src/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirSymlinkOp.java | UTF-8 | 585 | 1.570313 | 2 | [] | no_license | package org.apache.hadoop.hdfs.server.namenode;
import org.apache.hadoop.fs.InvalidPathException;
import org.apache.hadoop.fs.UnresolvedLinkException;
import org.apache.hadoop.fs.permission.FsAction;
import org.apache.hadoop.fs.permission.FsPermission;
import org.apache.hadoop.fs.permission.PermissionStatus;
import org... | true |
2fd4a29ce61a441b32bf052985e0f85dc409474b | Java | burakware/Skidcy-injector | /src/main/java/spicy/transformers/ConnectTransformer.java | UTF-8 | 11,239 | 2.296875 | 2 | [
"MIT"
] | permissive | package spicy.transformers;
import java.util.List;
import spicy.ClassNames;
import spicy.Injector;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.ClassNode;
import org.objectweb.asm.tree.FieldInsnNode;
import org.objectweb.asm.tree.InsnLis... | true |
be17d3235310179607dedcadc77dc6e0a694402e | Java | exceljava/com4j | /runtime/src/main/java/com4j/DefaultMethod.java | UTF-8 | 481 | 2.34375 | 2 | [
"BSD-2-Clause"
] | permissive | package com4j;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
/**
* Marks a "default property" method.
*
* <p>
* This is used in conjunction with {@link ReturnValue#defaultPropertyThrough()}
* to mar... | true |
0f6489337666e0bccb98f39243d415af0b47d633 | Java | Hpmason/Rota | /src/main/Button.java | UTF-8 | 387 | 3.0625 | 3 | [] | no_license | package main;
import java.util.Vector;
public class Button {
Vector<Integer> bounds;
public Button(int w, int h, int xbound1,int ybound1, int xbound2, int ybound2) {
this.bounds = new Vector<Integer>();
this.bounds.add(xbound1);
this.bounds.add(ybound1);
this.bounds.add(xbound2);
this.bounds.add(yboun... | true |
12a4bd00cce9e4762e7c83e532d0acde28cc6aa2 | Java | dmosen/wiki-analysis | /jgralab/src/de/uni_koblenz/jgralab/greql2/funlib/strings/CapitalizeFirst.java | UTF-8 | 440 | 3.140625 | 3 | [] | no_license | package de.uni_koblenz.jgralab.greql2.funlib.strings;
import de.uni_koblenz.jgralab.greql2.funlib.Function;
public class CapitalizeFirst extends Function {
public CapitalizeFirst() {
super(
"Returns the given string with the first character made uppercase.",
Category.STRINGS);
}
public String evaluate(S... | true |
b212685d351d71520616e130e3e5c401d4f7b33a | Java | themoderngeek/speaking-clock | /src/main/java/uk/co/themoderngeek/quartz/speakingclock/job/SpeakingClockJob.java | UTF-8 | 966 | 3.1875 | 3 | [] | no_license | package uk.co.themoderngeek.quartz.speakingclock.job;
import org.joda.time.DateTime;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
public class SpeakingClockJob implements Job {
private static final String text = "At the third stroke, the time from BT will... | true |
7d1311365583ab57d63b0119207a7f1a9f4d89e5 | Java | MargiSantoki/2021_Java_Practice | /src/techno/technocredits1/collectionFramework/hashMapClass/HashMapExample4.java | UTF-8 | 505 | 2.78125 | 3 | [] | no_license | package techno.technocredits1.collectionFramework.hashMapClass;
import java.util.HashMap;
import java.util.Map;
public class HashMapExample4 {
public static void main(String[] args) {
Map<String, Integer> map1 = new HashMap();
// map1.put("bhakti", 1);
// map1.put("margi", 2);
// map1.put("chirag", 3);
/... | true |
1691d38128123cc3042497a2c87df41ed533be0b | Java | dreteddy/Quizz | /app/src/main/java/deptinfo/ubfc/quizz/activities/ManageQuiz/AddAnswer/AddAnswerActivity.java | UTF-8 | 4,679 | 2.421875 | 2 | [] | no_license | package deptinfo.ubfc.quizz.activities.ManageQuiz.AddAnswer;
import android.content.Intent;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.view.View;
import ... | true |
c80f7bd15f8883a257b88368297dbaa1dea49afd | Java | coli-saar/am-tools | /src/main/java/de/saar/coli/amrtagging/formalisms/amr/tools/DependencyExtractor.java | UTF-8 | 12,703 | 1.859375 | 2 | [] | 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 de.saar.coli.amrtagging.formalisms.amr.tools;
import static de.saar.coli.amrtagging.AlignmentTrackingAutomaton.SEPARATOR;
impo... | true |
510e0ee44f0213250ab25557fecd98cd8369705f | Java | korniltsev/tchalange | /app/src/main/java/ru/korniltsev/telegram/auth/name/EnterNameView.java | UTF-8 | 2,557 | 2.109375 | 2 | [] | no_license | package ru.korniltsev.telegram.auth.name;
import android.content.Context;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.inputmethod.EditorInfo;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import mortar.dagger1support.ObjectGr... | true |
db66adb616cf341709712819a48e704754a71692 | Java | HerwinPradana/gg | /GetGood/app/src/main/java/dimas/herwin/latif/com/getgood/fragments/lists/MemberList.java | UTF-8 | 1,159 | 2.578125 | 3 | [] | no_license | package dimas.herwin.latif.com.getgood.fragments.lists;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import dimas.herwin.latif.com.getgood.fragments.it... | true |
858f130a3c93c3b0285e0f80539e1bfea83ce15a | Java | haewoni/workspace-spring-tool-suite-4-4.8.0.RELEASE | /springMavenApp/src/main/java/com/itwill1/bean/create/CreateBean2.java | UTF-8 | 250 | 2.4375 | 2 | [] | no_license | package com.itwill1.bean.create;
public class CreateBean2 {
public CreateBean2() {
System.out.println("### CreateBean2() 기본 생성자");
}
public void method1() {
System.out.println("### CreateBean2().method1()메소드 호출");
}
}
| true |
1f62921dd2cbbde669a84271165517dca9833349 | Java | zww308/Test-RPC | /Test-RPC-server/src/test/java/com/zww/testrpc/server/TestClass.java | UTF-8 | 181 | 1.578125 | 2 | [] | no_license | package com.zww.testrpc.server;
/**
* @author zww
* @date 2021/2/21 13:19
*/
public class TestClass implements TestInterface {
@Override
public void hello() {
}
}
| true |
e8bd667ae3e9c10258dcfcff00d2bc858e9e8b20 | Java | ankurp/JavaPlayTodoList | /app/controllers/TodoController.java | UTF-8 | 819 | 2.21875 | 2 | [
"MIT"
] | permissive | package controllers;
import models.TodoItem;
import play.data.Form;
import play.db.ebean.Model;
import play.mvc.*;
import views.html.*;
import java.util.List;
import static play.libs.Json.toJson;
/**
* Created by ankur on 2/25/14.
*/
public class TodoController extends Controller {
public static Result inde... | true |
ba797fcb3008260bd133a7c46d5c4f36892ac70c | Java | uk-gov-mirror/UKGovernmentBEIS.PRS-Exemptions-Register | /NdsBeisEsb/src/main/java/com/northgateps/nds/beis/esb/purgedocuments/PurgeDocumentsPersistenceAdapter.java | UTF-8 | 3,283 | 2.109375 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | package com.northgateps.nds.beis.esb.purgedocuments;
import java.time.Duration;
import java.time.ZonedDateTime;
import java.time.temporal.ChronoUnit;
import org.apache.camel.TypeConverter;
import com.northgateps.nds.platform.esb.adapter.NdsSoapRequestAdapterExchangeProxy;
import com.northgateps.nds.platform.esb.adap... | true |
6e6eaa4bbedc885ee0a8c2d532309e98c492d2c2 | Java | dladanyi/bitgirder-main | /platform/java/demo/src/com/bitgirder/demo/process/ComputePoolDemo.java | UTF-8 | 6,689 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | package com.bitgirder.demo.process;
import com.bitgirder.process.AbstractProcess;
import com.bitgirder.process.AbstractVoidProcess;
import com.bitgirder.process.AbstractPulse;
import com.bitgirder.process.ProcessExit;
import com.bitgirder.process.ComputePool;
import com.bitgirder.process.ProcessRpcClient;
import com.b... | true |
b01d587e153b33a043dc7bcfcf6981f27ec30747 | Java | laolongs/Maints | /app/src/main/java/cn/tties/maint/enums/VoltageLevelType.java | UTF-8 | 2,682 | 2.734375 | 3 | [] | no_license | package cn.tties.maint.enums;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
public enum VoltageLevelType {
LS_1_TO_10_KV(1, PowerUtilizationNatureType.LARGE_SCALE_INDUSTRY, "1-10千伏"),
LS_20_KV(2, PowerUtilizationNatureType.LARGE_SCALE_INDUSTRY, "20千伏"),
LS_35_KV(3, PowerUtilizationNatur... | true |
a593fbfec63d5efe2193ddf9ebf2339625ecac44 | Java | spemer/study_java | /TOEIC990/src/univ/inu/Child.java | UHC | 837 | 3.875 | 4 | [] | no_license | package univ.inu;
public class Child extends Parent //Ŭ Parent
{
public Child()
{
a = 10; //θκ , (public)
b = 100; // (protected)
c = 400; // (defalut )
//d = 50; //θԴ Ұ (private)
System.out.println("I am Child");
}
public void showChild()
{
this.showSum(); //ڱ ڽ Ŭ showSum
super.s... | true |
df1e518862476c22de99642cc31f0c324a6bb8cf | Java | xulimessage/datas | /src/main/java/com/leo/datas/domain/Gmsfzh.java | UTF-8 | 2,225 | 2.03125 | 2 | [] | no_license | package com.leo.datas.domain;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
@Entity
@DynamicUpdate
@Table(name = "all_people")
public class Gmsfzh {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int id;
private String XM;
private String SFZHM;
priva... | true |
e3a685d5ce3bea43604bd0f25152c7b49defc886 | Java | kiegroup/droolsjbpm-contributed-experiments | /machinelearning/4.0.x/drools-solver/drools-solver-core/src/main/java/org/drools/solver/core/localsearch/decider/accepter/CompositeAccepter.java | UTF-8 | 1,978 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | package org.drools.solver.core.localsearch.decider.accepter;
import java.util.List;
import org.drools.solver.core.localsearch.LocalSearchSolver;
import org.drools.solver.core.move.Move;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author Geoffrey De Smet
*/
public class CompositeAccepter extends... | true |
29121e50ac2f2b3a9840e9f8ea72786ad28437a7 | Java | abusalam/Project-AIO | /app/src/main/java/com/github/abusalam/android/projectaio/LoginActivity.java | UTF-8 | 24,584 | 1.765625 | 2 | [] | no_license | package com.github.abusalam.android.projectaio;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Vibrator;
import android.support.a... | true |
0afd1bfa0cccb2ba66965acd92d75cedf3e10d1d | Java | phouthasak/CheckInApp | /app/src/main/java/checkinapp/ljff/com/checkinapp/fragment/SearchFragment.java | UTF-8 | 8,600 | 2.453125 | 2 | [] | no_license | package checkinapp.ljff.com.checkinapp.fragment;
import android.arch.persistence.room.Room;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widg... | true |
d3d6470a4cb72da42be021a411901edd48cb41fb | Java | Becool-tuto/java-refactored-happiness | /interface-java8/src/main/java/ParentClass.java | UTF-8 | 118 | 1.992188 | 2 | [] | no_license | public class ParentClass {
public void show(){
System.out.println(":: showing Parent class ::");
}
}
| true |
ec53025a0465712d2d0fda5ef8c08a7724c54c50 | Java | zhang-djh/zhang | /src/main/java/com/example/demo/repository/AssessContentRepository.java | UTF-8 | 700 | 1.929688 | 2 | [] | no_license | package com.example.demo.repository;
import com.example.demo.Domain.AssessContent;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository... | true |
d098366b4fb622b9d7fd75b0faf3f587187ce2ba | Java | LaiJinwen/gdeduccp | /src/main/java/edu/gd/ccp/controller/MessageUserController.java | UTF-8 | 14,586 | 1.90625 | 2 | [] | no_license | package edu.gd.ccp.controller;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
impor... | true |
6ba9f8886f8cdab166dacffdd7c5a9a6ccdcf78e | Java | soareslucas/SysConf | /src/main/java/ufg/inf/pw/model/Peca.java | UTF-8 | 1,203 | 2.03125 | 2 | [] | no_license | package ufg.inf.pw.model;
// Generated Jul 9, 2015 7:28:52 PM by Hibernate Tools 4.3.1
import java.util.HashSet;
import java.util.Set;
/**
* Peca generated by hbm2java
*/
public class Peca implements java.io.Serializable {
private Integer idpeca;
private Modelo modelo;
private Integer quantidad... | true |
9e2cb833923a708ca858bb5180e34d64e7a918e1 | Java | nasanjargal-b/bis | /src/main/java/com/monsource/bis/blank/exception/QuestionCodeNotMatchException.java | UTF-8 | 297 | 1.929688 | 2 | [] | no_license | package com.monsource.bis.blank.exception;
import com.monsource.bis.core.exception.BaseException;
/**
* Created by nasanjargal on 7/4/14.
*/
public class QuestionCodeNotMatchException extends BaseException {
public QuestionCodeNotMatchException(String code) {
super(code);
}
}
| true |
3cd4597e584096ae19398c72beb9c9f1b595f9a6 | Java | Nimra-Sharnez/Hardware-Rentail-Store | /HardwareStoreSimulation/Customer.java | UTF-8 | 214 | 2.46875 | 2 | [] | no_license | package HardwareStoreSimulation;
public class Customer {
public String getCustomerName() {
return this.name;
}
public String getCustomerType() {
return this.type;
}
}
| true |
b2f8fa765bb69ae84ab3d72a39070d6daad0a925 | Java | WishSlayer/Homeworks | /src/HomeWork1/ThirdTask.java | UTF-8 | 514 | 3.3125 | 3 | [] | no_license | package HomeWork1;
/*
Создайте программу, выводящую на экран все
неотрицательные элементы последовательности 90 85 80 75 70 65 60 ….
*/
public class ThirdTask {
public static void main(String[] Args) {
System.out.println("Все неотрицательные элементы последовательности 90 85 80 75 70 65 60 … :");
f... | true |
5095ccf51cbb6fbeb494d3615d0a4be67615ebcc | Java | vywa/bobo | /src/main/java/com/bobo/service/impl/operation/LikeOperationServiceImpl.java | UTF-8 | 789 | 2.09375 | 2 | [] | no_license | package com.bobo.service.impl.operation;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.bobo.dao.operation.LikeOperationDao;
import com.bobo.domain.operation.LikeOperation;
import com.bobo.service.operation.LikeOperationService;
/**
* @author bob E-mail:panbaoan@thealth.... | true |
cec5312bd15c15b82f3876d378c1a56e02394496 | Java | sascha68/org.openntf.domino | /org.openntf.formula/src/org/openntf/formula/impl/DateTimeImpl.java | UTF-8 | 5,381 | 2.453125 | 2 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"ICU",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.openntf.formula.impl;
import static com.ibm.icu.util.Calendar.DAY_OF_MONTH;
import static com.ibm.icu.util.Calendar.HOUR_OF_DAY;
import static com.ibm.icu.util.Calendar.MILLISECOND;
import static com.ibm.icu.util.Calendar.MINUTE;
import static com.ibm.icu.util.Calendar.MONTH;
import static com.ibm.icu.util... | true |
504643059048baf132043ddeacae602b9a9ac1d1 | Java | slemonide/sstg | /src/ui/Main.java | UTF-8 | 2,588 | 3.078125 | 3 | [
"Unlicense"
] | permissive | package ui;
import javafx.animation.AnimationTimer;
import javafx.animation.Timeline;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.geometry.Point2D;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsCont... | true |
226f77411f1aae6d959380739b2bf637b54e906b | Java | thor12022/HardcoreWither | /src/main/java/thor12022/hardcorewither/entity/EntitySkeletonMinion.java | UTF-8 | 1,968 | 2.03125 | 2 | [
"BSD-3-Clause"
] | permissive | package thor12022.hardcorewither.entity;
import thor12022.hardcorewither.ModInformation;
import net.minecraft.entity.EnumCreatureAttribute;
import net.minecraft.entity.IEntityLivingData;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
import net.minecraft.en... | true |
98d36d44da77825efbc00350185c1f1613e790b3 | Java | yawkat/brainfuck-bukkit | /src/main/java/at/yawk/brainfuckloader/Lambda.java | UTF-8 | 234 | 1.757813 | 2 | [] | no_license | package at.yawk.brainfuckloader;
import java.util.function.Function;
import lombok.Value;
/**
* @author yawkat
*/
@Value
class Lambda {
private final Function<Object[], Object> function;
private final int argumentCount;
}
| true |
5335d35f6e354db9ba717287cc176de08f2e5a41 | Java | FehrHassan/Book-Listing-App | /app/src/main/java/com/nanodegree/fehr/booklisting/QueryUtils.java | UTF-8 | 5,208 | 2.421875 | 2 | [] | no_license | package com.nanodegree.fehr.booklisting;
import android.app.Activity;
import android.text.TextUtils;
import android.util.Log;
import android.widget.Toast;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.In... | true |
9bba74e42a78c596d5ea2533f2ce8daafdd68ebc | Java | jungmin95/kitri_study | /JAVA STUDY/20200701 (클래스, 상속, 장바구니, 속도가스체크, Callby, starcraft)/arrayClass/Drama.java | UTF-8 | 312 | 2.640625 | 3 | [] | no_license | package arrayClass;
public class Drama {
private String director;
private String title;
private String actor;
private String actress;
Drama(String director, String title, String actor, String actress) {
this.director = director;
this.title = title;
this.actor = actor;
this.actor = actress;
}
}
| true |
cf48300c4bb22e89744cf17746b06402b43ccab7 | Java | lidongjing1213/leetcode-demo | /src/main/java/leetcode/oneToTwoHundred/Leetcode169.java | UTF-8 | 726 | 3.25 | 3 | [] | no_license | package leetcode.oneToTwoHundred;
/**
* 〈一句话功能简述〉<br>
* 〈功能详细描述〉
*
* @author ldj
* @Date: 2021/9/26 9:35
* @see [相关类/方法](可选)
* @since [产品/模块版本] (可选)
*/
public class Leetcode169 {
public static void main(String[] args) {
int[] nums=new int[]{3,3,4};
System.out.println(majorityElement(nums));... | true |
8a0b563b603419d71bc8ed4269f6b5e373aad452 | Java | moutainhigh/jkzx1 | /core/src/main/java/tech/tongyu/bct/dev/LogUtils.java | UTF-8 | 475 | 2.15625 | 2 | [] | no_license | package tech.tongyu.bct.dev;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LogUtils {
private static Logger logger = LoggerFactory.getLogger(LogUtils.class);
private static Boolean debug = true;
public static void info(String message){
if(debug) logger.info(message);
... | true |
c17377b012fecc7fc1d2d72f80f8e854ad03d69c | Java | TunnJ/Week6Assessment | /src/controller/JerseyHelper.java | UTF-8 | 1,444 | 2.5 | 2 | [] | no_license | package controller;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.TypedQuery;
import model.Jersey;
public class JerseyHelper {
static EntityManagerFactory emfactory = Persistence.createEnt... | true |
7645bc137df5c9b9545c08d66d8b9c7f037bb463 | Java | irina-andreevna-ivanova/ivanova_p01 | /tests/test-jms-spring-integration/test-jms-spring-integration/src/main/java/ro/bmocanu/test/jms/standalone/ResponseQueueMessageListener.java | UTF-8 | 1,795 | 2.03125 | 2 | [] | no_license | /*-
* Copyright Bogdan Mocanu, 2010
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* This program ... | true |
ea05780e3a9bffd8369b04cb510b4ec637753de0 | Java | eduardocoelholima/605e05 | /src/A.java | UTF-8 | 176 | 2.296875 | 2 | [] | no_license | /**
* This file is used by B.java
*/
public class A
{
protected int value = 1;
public A() { methodOne(); }
public void methodOne() { System.out.print("A"); }
}
| true |
3f44fbdd5bcaaf358e8077961b2394bfd1c70988 | Java | ShamsBinSohrab/spring-boot-crud-mysql | /src/main/java/com/shams/spring/springbootcrudmysql/springbootcrudmysql/repository/IStudentRepository.java | UTF-8 | 357 | 1.835938 | 2 | [] | no_license | package com.shams.spring.springbootcrudmysql.springbootcrudmysql.repository;
import com.shams.spring.springbootcrudmysql.springbootcrudmysql.model.Student;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface IStudentRepository exten... | true |
49afca2dc496d165b18fbd3941e4e6590feff6fa | Java | xuzhangtian/leetcode | /src/main/java/com/xuzhangtian/leetcode/algorithm/easy/Reverse.java | UTF-8 | 1,006 | 4.03125 | 4 | [] | no_license | package com.xuzhangtian.leetcode.algorithm.easy;
/**
* Created xzt.
* Date : 2018/8/23
* Time : 下午3:14
*/
/**
* 7. 反转整数
*
* 给定一个 32 位有符号整数,将整数中的数字进行反转。
* <p>
* 示例 1:
* <p>
* 输入: 123
* 输出: 321
* 示例 2:
* <p>
* 输入: -123
* 输出: -321
* 示例 3:
* <p>
* 输入: 120
* 输出: 21
* 注意:
* <p>
* 假设我们的环境只能存储 32 位有符号整... | true |
a9ac555dfc74df495ec6022d992c92511a7b6bbe | Java | raror3/Decoders | /src/main/java/com/decoders/repository/JourneySummaryRepository.java | UTF-8 | 388 | 1.726563 | 2 | [] | no_license | /**
*
*/
package com.decoders.repository;
import java.util.List;
import org.springframework.data.mongodb.repository.MongoRepository;
import com.decoders.bean.SummaryPageBean;
/**
* @author raror3
*
*/
public interface JourneySummaryRepository extends MongoRepository<SummaryPageBean, String> {
public List<Su... | true |
23a06e7fdc00b7bbd4a44ed166f445d3594fa437 | Java | cha63506/CompSecurity | /nbc_source/src/com/nbcsports/liveextra/library/core/SimplePollingSubscriber$PollingCallback.java | UTF-8 | 514 | 1.5625 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.nbcsports.liveextra.library.core;
import android.util.Pair;
// Referenced classes of package com.nbcsports.liveextra.library.core:
... | true |
c36d0b0b1c4510f317bee3922c52c7e67b178640 | Java | Project-Coalesce/Core | /core/src/main/java/com/coalesce/chat/CoFormatter.java | UTF-8 | 3,263 | 3.1875 | 3 | [] | no_license | package com.coalesce.chat;
import com.coalesce.plugin.CoPlugin;
import org.bukkit.ChatColor;
import static org.bukkit.ChatColor.*;
public final class CoFormatter {
private String prefix;
//Constants
private final static int CENTER_PX = 154;
public CoFormatter() {
this.prefix = GRAY + "[" + ... | true |
2f95000f23c733b3a372a94b3dc220225e600894 | Java | VictorSilk/aGuessingGame | /Guesser.java | UTF-8 | 1,188 | 4.03125 | 4 | [] | no_license | import java.util.Scanner;
public class Guesser{
public static void main(String[] args){
System.out.println("Think of a whole number betwen 1 and 1000.");
System.out.println("When you're ready, press enter.");
Scanner scanner = new Scanner(System.in);
scanner.nextLine();
int min = 1;
... | true |
f9c20a701f473200b953fdb4b158779f7361ebf1 | Java | softsquared-summer/netfilx-mock-android-lena | /app/src/main/java/com/example/netflix_project/src/main/home/Adapter/MoviesAdapter.java | UTF-8 | 2,887 | 2.265625 | 2 | [] | no_license | package com.example.netflix_project.src.main.home.Adapter;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx.recyclerview.widget.RecyclerView;
import com.bumptech... | true |
4f41361bd2b0ecfe7d747b2fc7b348f81881d7bb | Java | WebTestDev/MaterialServer | /src/com/thingword/alphonso/dao/impl/UnLoadingInfoDaoImpl.java | UTF-8 | 4,872 | 2.265625 | 2 | [] | no_license | package com.thingword.alphonso.dao.impl;
import java.util.HashSet;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import com.thingword.alphonso.bean.LoadingInfo;
import com.thingword.alphonso.bean.ProductionInfo;... | true |
7113d87b380cceff357d914683acd2ccac6d4ca2 | Java | danilomartinssilva/disciplina-arquitetura-2019 | /SOLID003/src/correto/AveNaoVoadora.java | UTF-8 | 388 | 2.015625 | 2 | [] | 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 correto;
/**
*
* @author Danilo
*/
public abstract class AveNaoVoadora extends Ave {
public void naoVoa(){
... | true |
e4641abfb01aa14ed622e136a385daa100443cc3 | Java | B4rdu/Libra | /src/main/java/it/unisa/libra/model/jpa/PresidenteJpa.java | UTF-8 | 217 | 1.585938 | 2 | [] | no_license | package it.unisa.libra.model.jpa;
import it.unisa.libra.bean.Presidente;
import it.unisa.libra.model.dao.IPresidenteDao;
public class PresidenteJpa extends GenericJpa<Presidente, Long> implements IPresidenteDao {
}
| true |
17df39486f694c4b4a2d73f03cf1ab84382e11d0 | Java | TimothyRHuertas/Answer | /src/com/google/challenges/Answer.java | UTF-8 | 5,393 | 3.390625 | 3 | [] | no_license | package com.google.challenges;
import java.util.*;
//full disclosure. i needed an implementation of
//interval search in java
//i took what i needed from here
//https://github.com/kevinjdolan/intervaltree
public class Answer {
public static void main(String[] args) {
int[][] meetings4 = {{0, 1}, {1, 2}, ... | true |
dedbdcfd079f578032f22ffe3bba466ae80a3853 | Java | joshuadavis/yajul | /yajul-core-se/src/main/java/org/yajul/util/ReflectionUtil.java | UTF-8 | 14,239 | 2.390625 | 2 | [] | no_license | /*******************************************************************************
* $Id$
* $Author$
* $Date$
*
* Copyright 2002-2003 YAJUL Developers, Joshua Davis, Kent Vogel.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files ... | true |
5a51b93dbdc9b530e14d278f4c7c2f151cb5febe | Java | 15041973/apply-service-api | /apply-service-api/src/main/java/com/myph/apply/dto/ApplyProgressDto.java | UTF-8 | 443 | 1.609375 | 2 | [] | no_license | package com.myph.apply.dto;
import java.util.Date;
import com.myph.common.bean.BaseInfo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class ApplyProgressDto extends BaseInfo {
private static final long s... | true |
d04b15aee3ff3637c3d40ab57e0b8a94be68a61e | Java | kmtankqa/AER.FMDP | /FMDP/src/au/com/FMDP/live/pageObjects/settings/customfields/CustomFieldEntityTypePO.java | UTF-8 | 1,493 | 2.15625 | 2 | [] | no_license | package au.com.shortcuts.live.pageObjects.settings.customfields;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.pagefactory.AjaxElementLocatorFactory;
imp... | true |
27e260027e1f6328d6de3578b5d756f65165aeae | Java | Alex-notfound/DAGSS | /DAGSS_3/Ejercicio3_1/src/NominaApp.java | UTF-8 | 1,389 | 3.25 | 3 | [] | no_license | import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class NominaApp {
public static void main(String[] args) {
try (Scanner scanner = new Scanner(new File("nomina.txt"))) {
String name;
Nomina nomina;
while (scanner.hasNextLine()) {
String line = scanner.next... | true |
6558c88ad66392ffc4f21361f005dd09d04de12b | Java | JosafatDeveloper/DeveloperMotoAppBeta1.3 | /app/src/main/java/mx/onlinesellers/developermotoappbeta13/RecorridosActivity.java | UTF-8 | 1,737 | 1.898438 | 2 | [] | no_license | package mx.onlinesellers.developermotoappbeta13;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.SimpleCursorAdapter;
pu... | true |
9991826143ee2aa75bcd93e36d5a9a2341460ecb | Java | srtaPinheiro/ProjetoCinema | /src/cinema/RealidadeVirtual.java | UTF-8 | 870 | 2.390625 | 2 | [] | 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 cinema;
/**
*
* @author User
*/
public class RealidadeVirtual extends Filmes{
private int fones;
private int oculos... | true |
1bb0007cb5a40edb848afd2a9d3bfadba888363b | Java | HolyCrazy/DaysWithYou | /app/src/main/java/com/liduo/dayswithyou/dialog/CommonDialog.java | UTF-8 | 4,027 | 2.140625 | 2 | [] | no_license | package com.liduo.dayswithyou.dialog;
import android.os.Bundle;
import android.support.annotation.ColorRes;
import android.support.annotation.Nullable;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.v... | true |
2f4904ee42e200fe71918713bd436d3c24c310b7 | Java | Neo87z/Fast-Fix-Mobile-App | /app/src/main/java/com/example/madfinal/Models/TechOffers.java | UTF-8 | 1,117 | 2.28125 | 2 | [] | no_license | package com.example.madfinal.Models;
public class TechOffers {
private String OfferID;
private String CustomerName;
private String TechName;
private String Issue;
private String skip;
private String Cnum;
public TechOffers() {
}
public String getOfferID() {
return OfferID... | true |
f5491b9a8ac6d33e7a917a09e030869b1e7b6a36 | Java | haifeiforwork/ehr-moo | /ikep4-approval/src/main/java/com/lgcns/ikep4/approval/work/dao/impl/ApprWorkDocDaoImpl.java | UTF-8 | 6,473 | 1.921875 | 2 | [] | no_license | /*
* Copyright (C) 2011 LG CNS Inc.
* All rights reserved.
*
* 모든 권한은 LG CNS(http://www.lgcns.com)에 있으며,
* LG CNS의 허락없이 소스 및 이진형식으로 재배포, 사용하는 행위를 금지합니다.
*/
package com.lgcns.ikep4.approval.work.dao.impl;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.... | true |
24a196779f9e85a5c0d0cd729cf5410200080f22 | Java | yanglin0883/leetcode | /507/Solution.java | UTF-8 | 479 | 2.8125 | 3 | [] | no_license | class Solution {
public boolean checkPerfectNumber(int num) {
if(num<6) return false;
List<Integer> div = new ArrayList<>();
double temp = Math.sqrt(num);
for(int i=2;i<temp;i++){
if(num%i==0){
div.add(i);
div.add(num/i);
}
... | true |
eed48f7cf9a61e46f14b9a1726a11d0163daf2e3 | Java | wangyasen2048/ListDecoding | /src/main/java/com/ListDecoding/tools/asn1ber_model/Asn1BerParser_FIX_MDR.java | UTF-8 | 967 | 1.992188 | 2 | [] | no_license | package com.ListDecoding.tools.asn1ber_model;
public class Asn1BerParser_FIX_MDR extends Asn1BerParser_ALL_MODEL{
public static Asn1BerParser_FIX_MDR instance = new Asn1BerParser_FIX_MDR();
//对字段解码方式进行判断
public boolean isString(int s) {
return (s==Tag.TIMESTAMP || s==Tag.MSISDN || s==Tag.SMSCID
|| s==Tag.OTH... | true |
3cae2b2d62bc202507560e8c785fbf4262b19473 | Java | nilymar/Quiz-app | /thebeatlesquiz_arraylist_layouts/MainActivity.java | UTF-8 | 1,411 | 2.5625 | 3 | [] | no_license | package com.example.android.thebeatlesquiz_arraylist_layouts;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
// class to display the opening screen
public class MainActivity extends AppCompatAc... | true |
ff271a168b35a2f41173694c4594622d536ba736 | Java | PetersonMashni/AppMinhasContasEmDia | /app/src/main/java/br/com/petersonmashni/minhascontasemdia/dao/DAO.java | UTF-8 | 603 | 2.21875 | 2 | [] | no_license | package br.com.petersonmashni.minhascontasemdia.dao;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
public class DAO {
static public DatabaseReference getColecao(String nomeColecao) {
DatabaseRefere... | true |
d3ada691757a5fac87524dbe53947326cc431197 | Java | Acomy/admin-service | /src/main/java/com/bossien/adminservice/mapper/RoleMapper.java | UTF-8 | 574 | 1.765625 | 2 | [] | no_license | package com.bossien.adminservice.mapper;
import com.bossien.common.model.basics.Role;
import com.bossien.common.util.SearchEntity;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
public interface RoleMapper {
int deleteByPrimaryKey(Long id);
int insert(Role record);
i... | true |
bab49cd95ae9d036ff9d6d1b6be336f24a93bc66 | Java | suntianji123/qian-test | /qiandi-mapper/src/main/java/com/qiandi/mapper/ContactMapper.java | UTF-8 | 193 | 1.609375 | 2 | [] | no_license | package com.qiandi.mapper;
import java.util.List;
import com.qiandi.pojo.Contact;
public interface ContactMapper extends IMapper<Contact>
{
List<Contact> selectItem(Long menberUserId);
}
| true |
7b140f74778a201827fa337a583d993210ea8d6c | Java | ystory/ehcache-core-2.6.11 | /src/main/java/net/sf/ehcache/search/attribute/JavaBeanAttributeExtractor.java | UTF-8 | 5,321 | 2.484375 | 2 | [] | no_license | /**
* Copyright Terracotta, 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 agr... | true |
122e17c0e01d984f799492643ff7e9316a784398 | Java | mansonase/PracticeAlgorithm | /src/main/java/old/Coins.java | UTF-8 | 1,938 | 3.578125 | 4 | [] | no_license | package old;
interface Fake{
void doAction(int index, boolean isBigger);
}
public class Coins {
public static void compare(int[] coins, int i, int j, int k, Fake fake){
if (coins[i]>coins[k]){
fake.doAction(i+1,true);
}else {
fake.doAction(j+1,false);
}
}
... | true |
fa69886a10c2ee5550b39ae624e21b9a61fbd491 | Java | VladaSem/gs-rest-hateoas | /src/main/java/service/assemblers/AttendeeAssembler.java | UTF-8 | 1,975 | 2.125 | 2 | [] | no_license | package service.assemblers;
import service.controllers.AttendeeController;
import service.controllers.EventsController;
import service.domain.Attendee;
import service.resources.AttendeeResource;
import service.resources.EventResource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfram... | true |
098680b3fb7c8b5de78157f3ac881ee6a560cfa5 | Java | arustamov/serenity-cucumber-ebay-test-sample | /src/main/java/ebay/page/HomePage.java | UTF-8 | 1,780 | 2.3125 | 2 | [] | no_license | package ebay.page;
import java.time.Duration;
import net.serenitybdd.core.pages.PageObject;
import net.thucydides.core.annotations.DefaultUrl;
import net.thucydides.core.annotations.WhenPageOpens;
import org.openqa.selenium.By;
@DefaultUrl("page:home.page")
public class HomePage extends PageObject {
private stat... | true |
ab1280422f037f1892c24e38d8349a6f9297e0ad | Java | TheNguyenTri/ModelProject1 | /app/src/main/java/trithe/modelproject/activity/MainActivity.java | UTF-8 | 11,719 | 1.8125 | 2 | [] | no_license | package trithe.modelproject.activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.design.widget.FloatingActionButton;
import android.support.... | true |
49b16a8dfaf58f8478cf4a07cf8949fbe58014bb | Java | guaju/WYNews | /app/src/main/java/com/guaju/wynews/presenter/impl/HomePresenter.java | UTF-8 | 2,956 | 2.203125 | 2 | [] | no_license | package com.guaju.wynews.presenter.impl;
import android.content.Context;
import com.guaju.wynews.presenter.HomePresenterI;
import com.guaju.wynews.ui.adapter.HomeRecAdapter;
import com.guaju.wynews.view.BaseFragmentViewI;
import com.guaju.wynews.view.HomeViewI;
import java.util.ArrayList;
import java.util.HashMap;
... | true |
6f9ef5b86042fa04a3a6f809b9038185896f49b3 | Java | xieJingHua/mall | /mall-user/src/main/java/com/xiejh/user/dao/MemberCollectSubjectDao.java | UTF-8 | 397 | 1.515625 | 2 | [
"Apache-2.0"
] | permissive | package com.xiejh.user.dao;
import com.xiejh.user.entity.MemberCollectSubjectEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 会员收藏的专题活动
*
* @author xiejh
* @email 645236648@qq.com
* @date 2020-10-31 09:27:49
*/
@Mapper
public interface MemberCol... | true |
8388f5a7df015fc1b7ff7bca2acb5a70de45d0ac | Java | ARiDa/qef-ld | /src/main/java/ch/epfl/codimsd/qeef/trajectory/control/Eddy.java | UTF-8 | 35,320 | 2.453125 | 2 | [] | no_license | package ch.epfl.codimsd.qeef.trajectory.control;
import java.util.Properties;
import org.apache.log4j.Logger;
import ch.epfl.codimsd.qeef.AsyncControlOperator;
import ch.epfl.codimsd.qeef.BlackBoard;
import ch.epfl.codimsd.qeef.DataUnit;
import ch.epfl.codimsd.qeef.Metadata;
import ch.epfl.codimsd.qeef.Ope... | true |
24de695b22bc07d046aa6f161d39082b783953df | Java | Himanshu9873/CollectionFramerwork | /TreeSetDemo.java | UTF-8 | 1,546 | 3.421875 | 3 | [] | no_license | import java.util.SortedSet;
import java.util.TreeSet;
import java.util.Iterator;
class Employee2 implements Comparable
{
int id;
String name,address;
Employee2(int id, String name, String address)
{
this.name=name;
this.id=id;
this.address=address;
}
@Override
public String toString()
{
... | true |
13421e979ce0dcdb6780756bdacfbe37ddda5270 | Java | TomLao/javaPractise | /src/Experiment04/BankWindow.java | GB18030 | 1,467 | 3.109375 | 3 | [
"MIT"
] | permissive | package Experiment04;
//й̨
public class BankWindow extends Thread {
private Ticket ticket = null;
String thName;
public void run() {
while (true) {
synchronized (this) {
// û
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
... | true |
c4e992a56ffe40509285a694d56d2829e25518e0 | Java | SantoroJoestar/listaEventos | /src/main/java/com/santoro/controllers/EventoController.java | UTF-8 | 3,840 | 2.359375 | 2 | [] | no_license | package com.santoro.controllers;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.... | true |
7b45768d9b027e6a6cd665d4e73636edad19ce76 | Java | GSIL-Monitor/QunarProjectsStave | /fintech-admin/src/main/java/com/qunar/fintech/plat/admin/query/service/UserProductInfoService.java | UTF-8 | 521 | 1.78125 | 2 | [] | no_license | package com.qunar.fintech.plat.admin.query.service;
import com.qunar.fintech.plat.admin.query.entity.UserProductInfo;
import java.util.List;
/**
* @author dw.wang
* @since 2016-12-12
*/
public interface UserProductInfoService {
/**
* 根据身份证号、产品编号和userId获取个人信息
*/
List<UserProductInfo> queryUserPr... | true |
bce12b7b1275c92ea4edc640927e41ab905f6fa2 | Java | krishnanand/spring-jpa-gradle | /src/main/java/com/iheartmedia/IHeartMedia.java | UTF-8 | 581 | 1.765625 | 2 | [] | no_license | // Copyright 2018 Kartik Krishnanand. All Rights Reserved.
package com.iheartmedia;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
/**
* Represents the entry point to... | true |
8cde0d5b73180ef9db4a1e3186fd26f1c0fc10de | Java | adeila-adomas/JavaMokymai | /group121/src/group121/Lenktynes.java | UTF-8 | 2,273 | 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 group121;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
class SortCarsByDistance implem... | true |
a971cd55345dbfae8e65f953028367250de6a02c | Java | remixknighx/DataStructure | /src/main/java/com/leetcode/easy/PascalTriangle.java | UTF-8 | 1,577 | 3.671875 | 4 | [] | no_license | package com.leetcode.easy;
import java.util.LinkedList;
import java.util.List;
/**
* 118. Pascal's Triangle
* @link https://leetcode.com/problems/pascals-triangle/#/description
*
* @author wangjf
* @date 2017/7/14.
*/
public class PascalTriangle {
public static void main(String[] args) {
List<List<... | true |