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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
cc22058d60611d33c7de9ac02e695f4853cbb86c | Java | ericjin07/LeetCode | /src/linkedList/rotateList/RotateList.java | UTF-8 | 815 | 3.15625 | 3 | [] | no_license | package linkedList.rotateList;
public class RotateList {
public ListNode rotateRight(ListNode head, int k) {
if (head == null || head.next == null) return head;
int cnt = 1;
ListNode cur = head;
while (cur.next != null) {
cnt++;
cur = cur.next;
}
... | true |
d520125c59a94e8faef51fe9100f4484660405df | Java | T-A-R/CP | /app/src/main/java/irongate/checkpot/view/screens/player/advantage/AdvantageCardFragment.java | UTF-8 | 1,430 | 2.375 | 2 | [] | no_license | package irongate.checkpot.view.screens.player.advantage;
import android.graphics.Bitmap;
import android.widget.ImageView;
import android.widget.TextView;
import irongate.checkpot.R;
import irongate.checkpot.utils.ImageUtils;
import irongate.checkpot.view.Fonts;
import irongate.checkpot.view.SmartFragment;
public cla... | true |
ae37abd651844016e48811c270d8bb2db7972ee2 | Java | JordanD-CSP/TeamBit_ZombieGame_CSC422 | /ZombieGame/src/main/java/zombiegame/app/character/Soldier.java | UTF-8 | 420 | 2.359375 | 2 | [] | no_license | package zombiegame.app.character;
/**
* Soldier Subclass of Character for ZombieGame project
*/
/**
* Team Project - ZombieGame
* Concordia St. Paul - CSC 422
* Team Bit
* @author Amanda Perrine
* @author Elise Frigoli
* @author Jordan Duesterhoeft
* @author Steven Wiltse
*
* Created 06/08/2021
*/
publi... | true |
e11de4eeefc59a443493b2f166e32078c8ba479d | Java | skbkontur/extern-java-sdk | /extern-api-java-sdk-common/src/main/java/ru/kontur/extern_api/sdk/model/TaskResultLink.java | UTF-8 | 1,071 | 2.03125 | 2 | [
"MIT"
] | permissive | package ru.kontur.extern_api.sdk.model;
public class TaskResultLink {
private String href;
private String rel;
private String name;
private String title;
private String profile;
private String templateId;
public String getHref() {
return href;
}
public void setHref(St... | true |
5272e100703b9a67eec725b626cd26be034466c6 | Java | sliman2017/MiwokApp | /app/src/main/java/com/hamdaouislimanedevand/android/miwokapp/MainActivity.java | UTF-8 | 1,873 | 2.109375 | 2 | [] | no_license | package com.hamdaouislimanedevand.android.miwokapp;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle... | true |
0c5b5a315e08f3178e03a867e3ffa2e8b8e6e52e | Java | vasuthakker/NCI_Android | /app/src/main/java/com/example/epuser/pickcontacts/interfaces/URLProvider.java | UTF-8 | 169 | 1.875 | 2 | [] | no_license | package com.example.epuser.pickcontacts.interfaces;
/**
* Created by Viral on 25-05-2017.
*/
public interface URLProvider {
String generateURL(String endPoint);
} | true |
73500644eedf9d8bf1560bc719ba50d476248f55 | Java | yangsongbai/bootique | /bootique/src/main/java/io/bootique/meta/MetadataNode.java | UTF-8 | 184 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | package io.bootique.meta;
/**
* A base superclass of metadata tree nodes.
*
* @since 0.21
*/
public interface MetadataNode {
String getName();
String getDescription();
}
| true |
e71f20ac25362c72af78e163b4621aba55cee4d3 | Java | SoftwareSing/OOSE-teamwork-106_2-group2 | /Teamwork2/src/widget/skin/WidgetSkin.java | UTF-8 | 289 | 1.984375 | 2 | [] | no_license | package widget.skin;
import widget.widget.*;
public interface WidgetSkin {
public abstract void skinSetting(Button button);
public abstract void skinSetting(Label label);
public abstract void skinSetting(MenuBar menuBar);
public abstract void skinSetting(Panel panel);
}
| true |
8e591ab1844bf6c0b628aacd260a02e197d163af | Java | budlinville/EECS_168 | /Lab5/Linville-2819130-Lab-5/MethodPractice.java | UTF-8 | 1,758 | 4.125 | 4 | [] | no_license | /* Bud Linville
* 2819130
*/
import java.util.Scanner;
public class MethodPractice {
public static void main(String[] args){
int num1, num2, max = 0;
double radius, area = 0;
String userWord = "";
int timesToPrint = 0;
Scanner input = new Scanner(System.in);
System.out.println("Input two numbers... | true |
4e94b35a460fb4edb309cfe5afdcee5eca5c895c | Java | openknowledge/keycloak-admin-client-adapter | /src/main/java/de/openknowledge/authentication/domain/role/RoleType.java | UTF-8 | 95 | 1.625 | 2 | [
"Apache-2.0"
] | permissive | package de.openknowledge.authentication.domain.role;
public enum RoleType {
CLIENT, REALM
}
| true |
9f2956abd0c130358b0493d0bdd4168b580f2f93 | Java | gftherds/project-ui | /app/src/main/java/com/example/therdsak/yeutsen/broadcast/YeutSenBootBroadcast.java | UTF-8 | 848 | 1.9375 | 2 | [] | no_license | package com.example.therdsak.yeutsen.broadcast;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.example.therdsak.yeutsen.service.YeutSenService;
import com.example.therdsak.yeutsen.sharedpreference.YeutSenPreference;
import ... | true |
d7c4250e1df1bef4dee99e774d1f64a33e42b933 | Java | orion-analytics/dryselmagic | /src/main/java/com/orchestral/automation/dryselmagic/model/TestItem.java | UTF-8 | 1,579 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) Orchestral Developments Ltd and the Orion Health group of companies (2001 - 2017).
* Author: Kuldeep Sinh Chauhan (@KuldeepSinhC)
* emails: kuldeeps@orionhealth.com, chauhan.kuldeep.sinh@gmail.com
*
* This file is provided to you under the Apache License, Version 2.0 (the "License"); you may not... | true |
4f7d819d613cfdd32c4e12f3f2f257c8fb8a6a9a | Java | LY-HelloWorld/WorkSend | /app/src/main/java/com/a51zhipaiwang/worksend/Enterprise/Adapter/JianLiAdapter.java | UTF-8 | 6,607 | 1.898438 | 2 | [] | no_license | package com.a51zhipaiwang.worksend.Enterprise.Adapter;
import android.annotation.SuppressLint;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.ImageView;
i... | true |
93e99fc3292722e18b0fff61ef80ba53d6fcd083 | Java | fran04/Age-of-Exile | /src/main/java/com/robertx22/age_of_exile/database/data/stats/types/special/SpecialStats.java | UTF-8 | 6,960 | 2.140625 | 2 | [] | no_license | package com.robertx22.age_of_exile.database.data.stats.types.special;
import com.robertx22.age_of_exile.aoe_data.database.exile_effects.adders.NegativeEffects;
import com.robertx22.age_of_exile.database.data.exile_effects.ExileEffectsManager;
import com.robertx22.age_of_exile.database.data.stats.Stat;
import com.rober... | true |
161918943eb7a102304c1d396c208d46111fc9a5 | Java | ColinYu25/yhpc | /src/main/java/com/safetys/nbyhpc/domain/persistence/iface/DepartmentPersistenceIface.java | UTF-8 | 412 | 1.867188 | 2 | [] | no_license | package com.safetys.nbyhpc.domain.persistence.iface;
import com.safetys.framework.exception.ApplicationAccessException;
import com.safetys.framework.orm.hibernate3.criterion.DetachedCriteriaProxy;
import com.safetys.nbyhpc.domain.model.Department;
public interface DepartmentPersistenceIface {
public Department load... | true |
815060df5a10f89f77ddce23f5d3a114dae3be90 | Java | AlexeiRubin/CDAC_ACTS | /JAVA/006_17_AUG_2020/src/com/app/org/Manager.java | UTF-8 | 892 | 3.015625 | 3 | [] | no_license | package com.app.org;
public class Manager extends Employee {
private double managerPerformanceBonus;
public double getManagerPerformanceBonus() {
return managerPerformanceBonus;
}
public void setManagerPerformanceBonus(double managerPerformanceBonus) {
this.managerPerformanceBonus = managerPerfor... | true |
1a66abe1722968a0d981b6dafff78631bba0f8a6 | Java | xtutran/grad-projects | /img-search/src/main/java/features/HSV166Histogram.java | UTF-8 | 15,570 | 2.625 | 3 | [
"BSD-3-Clause"
] | permissive | package features;
import net.semanticmetadata.lire.imageanalysis.HSVColorHistogram.HistogramType;
import net.semanticmetadata.lire.imageanalysis.LireFeature;
import net.semanticmetadata.lire.utils.SerializationUtils;
import java.awt.color.ColorSpace;
import java.awt.image.BufferedImage;
import java.awt.image.... | true |
76904d3981d7069de57fc708c93ed030d320b80d | Java | asolis90/nanodegree-project-stockhawk | /app/src/main/java/com/sam_chordas/android/stockhawk/receiver/StockBroadcastReceiver.java | UTF-8 | 528 | 1.984375 | 2 | [] | no_license | package com.sam_chordas.android.stockhawk.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;
import com.sam_chordas.android.stockhawk.R;
/**
* Created by angelsolis on 10/9/16.
*/
public class StockBroadcastReceiver exten... | true |
1c5cd6112339e610eaa10369d25990b13e75e0d7 | Java | nacho270/GTL | /CoreGestionTextilLevel/src/ar/com/textillevel/modulos/odt/entidades/maquinas/formulas/estampado/FormulaEstampadoCliente.java | UTF-8 | 2,469 | 1.921875 | 2 | [] | no_license | package ar.com.textillevel.modulos.odt.entidades.maquinas.formulas.estampado;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import... | true |
b63c3562bf1dd477339cc455fa73c085c866c835 | Java | FedeMontenegro/Codo-a-Codo | /Paradigmas de Programacion/Unidad 4/u4e1/src/u4e1/U4e1.java | UTF-8 | 476 | 3.234375 | 3 | [] | no_license | package u4e1;
import java.util.Scanner;
import java.math.*;
public class U4e1 {
public static void main(String[] args) {
Scanner entrada =new Scanner (System.in);
int area;
int perimetro;
System.out.println("Ingrese área:");
area = entrada.nextInt... | true |
61da79e8da0e2a610405b00b406313ef50001747 | Java | JuanyongZhang/websphere-portal-plugin | /src/main/java/com/googlecode/websphere/AbstractXMLAccessMojo.java | UTF-8 | 4,923 | 1.90625 | 2 | [] | no_license | package com.googlecode.websphere;
import static com.googlecode.websphere.utils.Constants.XMLACCESS_CLI_UNIX;
import static com.googlecode.websphere.utils.Constants.XMLACCESS_CLI_WIN;
import static com.googlecode.websphere.utils.Constants.XMLACCESS_EXECUTABLE;
import java.io.File;
import java.io.FileInputStream;
impor... | true |
f223d54a332db7e9d17a501e5dd32f911b792ac2 | Java | PlayBoxjre/common-web | /kongsupports/src/main/java/com/kong/support/resources/imps/ResourceBundle.java | UTF-8 | 3,354 | 2.25 | 2 | [] | no_license | package com.kong.support.resources.imps;
import com.kong.support.exceptions.common.ResourceAccessException;
import com.kong.support.resources.defines.ByteLoader;
import com.kong.support.resources.defines.LoadSelector;
import com.kong.support.resources.defines.RealByteLoader;
import com.kong.support.resources.defines.R... | true |
ae27358a5853add2d75f4ffc6bf044f690db5746 | Java | yeungeek/AndroidRoad | /BasicDaggerSample/app/src/main/java/com/yeungeek/dagger/di/MapComponent.java | UTF-8 | 408 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | package com.yeungeek.dagger.di;
import com.yeungeek.dagger.ui.MapActivity;
import com.yeungeek.dagger.vo.SetUser;
import java.util.Map;
import dagger.Component;
/**
* @author yangjian
* @date 2018/03/08
*/
@Component(modules = MapModule.class)
public interface MapComponent {
void inject(MapActivity activity)... | true |
d5c52c3dd224dd8ddc16a76d22d294bac180544c | Java | guardianempresa/GuardianParents | /app/src/main/java/com/controlderuta/guardianpadres/NewRouteActivity.java | UTF-8 | 8,341 | 2.046875 | 2 | [] | no_license | package com.controlderuta.guardianpadres;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.content.ContextCo... | true |
dfab5c63fb9a3a02fd171ea7fec7014b34573fb1 | Java | aashisharya/library-service | /library-service/src/main/java/com/omniwyse/library/bo/BookFlagBO.java | UTF-8 | 792 | 2.15625 | 2 | [] | no_license | package com.omniwyse.library.bo;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@E... | true |
54b06a1bee70a2296d55c14b7e67d651e6b09776 | Java | JanosSarkoezi/manipulator | /src/main/java/com/mycompany/manipulator/remover/NormalAnnotationRemover.java | UTF-8 | 3,346 | 2.875 | 3 | [] | no_license | package com.mycompany.manipulator.remover;
import com.github.javaparser.ast.CompilationUnit;
import com.github.javaparser.ast.expr.NormalAnnotationExpr;
import com.mycompany.manipulator.remover.mediator.annotation.NormalAnnotationAttributeMediator;
import com.mycompany.manipulator.remover.mediator.interfaces.Annotatio... | true |
4223147df1648feec317074231b4744812fb62b4 | Java | MarceloSilvarolla/Batalha-de-Robos | /compilador/Instrução.java | UTF-8 | 9,547 | 3.4375 | 3 | [] | no_license | // Instrução genérica, não faz nada.
class Instrução {
Empilhável val;
Instrução(Empilhável v) {val = v;}
Instrução() {val = null;}
int Exec(Computador C) {return 1;} // retorna o incremento do ip
String Show() {
String res = "\t\t\tnew " + this.toString().replaceFirst("@.+","");
if (val != null)
res += ... | true |
879ceb5e1dcaabe1274a9b8e4bfd99ac747de27d | Java | davidcGIThub/familyMap | /app/src/main/java/com/example/david/familymap/MapActivity.java | UTF-8 | 1,965 | 1.882813 | 2 | [] | no_license | package com.example.david.familymap;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android... | true |
a405b6a52028a649e1754f06618cdf835151ae61 | Java | diabolusss/rtu | /5.term/Programming Language Java/2012/lekcijas/how to read xml files/readxml.java | UTF-8 | 437 | 2.859375 | 3 | [] | no_license | public static void main(String[] args) throws FileNotFoundException, IOExeption{
//reading properties file in Java exmpl
Properties props = new Properties();
FileInputStream fis = new FileInputStream("readxmlproperties.xml");
//loading properties from file
props.loadFromXML(fis);
//reading them
... | true |
bfa869ddb9b53a0401837347775f66edd9dbb981 | Java | mrcrozier/RxCoaster | /app/src/main/java/com/example/laptor/rxcoaster/utils/BlueteethDeviceActivity.java | UTF-8 | 6,927 | 2 | 2 | [] | no_license | package com.example.laptor.rxcoaster.utils;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.Button;
import android.widget.ScrollView;
import android.widget.TextView;
import com.example.laptor.rxcoaster.Blueteeth.BlueteethManager;
imp... | true |
a5a67d96efd734421d4db20d921b74b7f4d2767e | Java | ezhr/MSc-SoftwareWorkshops | /05/Ex2/src/WaffleTest.java | UTF-8 | 2,216 | 2.890625 | 3 | [] | no_license | import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
/**
* @author Izhaar Dharsee IMD961
* @version 02/12/2019
*/
class WaffleTest {
Expenditure[] expenditures = new Expenditure[10];
@BeforeEach
void setup () {
for (int... | true |
595352dedc8042639e477e14941c3d1713e4b016 | Java | Faded1996/simple_blog | /src/main/java/com/bogdanmazur/simple_blog/services/PostService.java | UTF-8 | 297 | 1.859375 | 2 | [] | no_license | package com.bogdanmazur.simple_blog.services;
import com.bogdanmazur.simple_blog.entity.Post;
import java.util.List;
public interface PostService {
List<Post> getAllPosts();
void saveNewPost(Post post);
Post getPostById(Long id);
void deletePost(Long id);
}
| true |
027415e0a717c605c8e2cfb1c6465a10b0a5a5ea | Java | LuciferTM/springMVC | /src/main/java/example/controller/c2/User1Controller.java | UTF-8 | 1,383 | 2.515625 | 3 | [] | no_license | package example.controller.c2;
import example.pojo.User;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.... | true |
36915e20350482c728227a5664f557ed45e7318f | Java | Pro-Solucoes/escola-musica | /src/main/java/br/com/pro/escolamusica/modelo/TipoCurso.java | UTF-8 | 671 | 2.40625 | 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 br.com.pro.escolamusica.modelo;
/**
*
* @author paulo
*/
public enum TipoCurso {
CORDAS("Cordas"),
... | true |
fbccfe22025c131c10bd756eac46af8723f9373b | Java | LuccaMarcelino/Lista-exercicio-primeira-fase | /src/br/com/satc/exercicios/Exercicio3.java | UTF-8 | 404 | 3.328125 | 3 | [] | no_license | package br.com.satc.exercicios;
import java.util.Scanner;
public class Exercicio3 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Qual a temperatura (em graus Celsius)? ");
float temp = input.nextFloat();
System.out.... | true |
93609a9df1838064eeb39fce0896d0f559bf3ac0 | Java | JustinRoesner/EclipseProjects | /eclipseworkspace/MapIntroduction/src/com/justin/maps/Student.java | UTF-8 | 687 | 3.15625 | 3 | [] | no_license | package com.justin.maps;
public class Student implements Eatable{
String name;
int grade;
Laptop laptop;
public Student(String name, int grade) {
this.name = name;
this.grade = grade;
}
public Student(String name, int grade, Laptop laptop) {
this.name = name;
this.grade = grade;
this.laptop = laptop;... | true |
c2f0102b90546a8779ab2b3f0f004588d8be9c40 | Java | onesubone/NativeHook | /demo/src/main/java/eap/com/demo/MainActivity.java | UTF-8 | 1,676 | 1.828125 | 2 | [
"Apache-2.0"
] | permissive | package eap.com.demo;
import android.app.Activity;
import android.os.Bundle;
import com.eap.nh.lib.NativeHook;
import org.chromium.net.CronetException;
import org.chromium.net.UrlRequest;
import org.chromium.net.UrlResponseInfo;
public class MainActivity extends Activity {
static {
System.loadLibrary("... | true |
c3bff94635b828c9da4b4792d37d26a8b2058335 | Java | briansjavablog/linkerd-poc-services | /BankingService/src/main/java/com/briansdevblog/linkerd/banking/model/CurrentAccountList.java | UTF-8 | 443 | 1.921875 | 2 | [] | no_license | package com.briansdevblog.linkerd.banking.model;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.util.ArrayList;
import java.util.List;
@Setter
@Getter
@AllArgsConstructor
//@NoArgsConstructor
public class CurrentAccountList {
private Li... | true |
e25f82574c6f6f8a76dfd00aca1cae3f5f096e7c | Java | githubgobi/NITHYA | /mygift/giftbackend/src/main/java/com/niit/giftbackend/dao/CartDao.java | UTF-8 | 216 | 1.96875 | 2 | [] | no_license | package com.niit.giftbackend.dao;
import com.niit.giftbackend.model.Cart;
public interface CartDao {
void add(Cart cart);
void update(Cart cart);
Cart getById(int cartId);
Cart getByUserId(int userId);
} | true |
b2a7bd3d25b57f4e459e89f63c30a55a69b92bfe | Java | infsci2560fa16/full-stack-web-project-victorsterling1 | /src/main/java/com/cupid/dao/UserDAO.java | UTF-8 | 2,729 | 2.375 | 2 | [
"MIT"
] | permissive | package com.cupid.dao;
import com.cupid.dataObjects.User;
import com.cupid.mappers.UserMapper1;
import com.cupid.mappers.UserMapper2;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* Created by victorzhao on 11/4/16.
*/
@Repository
p... | true |
2bf8b7e3df8fd35b69852836a4d1b01425bfe735 | Java | andymiaomiao/tc-manage | /src/main/java/com/weiqisen/tc/service/impl/DiskFileServiceImpl.java | UTF-8 | 3,634 | 2.03125 | 2 | [] | no_license | package com.weiqisen.tc.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
import com.weiqisen.tc.entit... | true |
d7e2c1fa54639da55a1ed25e0f4094de25306a06 | Java | qingtingduizhang77/aiot | /base/main/java/com/cityiot/guanxin/workOrder/chargingPileStation/service/ChargingPileStationService.java | UTF-8 | 704 | 1.78125 | 2 | [] | no_license | package com.cityiot.guanxin.workOrder.chargingPileStation.service;
import com.cityiot.guanxin.workOrder.chargingPileStation.entity.ChargingPileStation;
import com.cityiot.guanxin.workOrder.chargingPileStation.repository.ChargingPileStationRepository;
import org.springframework.stereotype.Service;
import swallow.frame... | true |
10345e1ebb413fc4b88aa5aedbd916c18734189d | Java | TheGreyGhost/dragonmounts2-1.12.2 | /src/main/java/com/TheRPGAdventurer/ROTD/inventory/ContainerDragonShulker.java | UTF-8 | 2,851 | 2.6875 | 3 | [] | no_license | package com.TheRPGAdventurer.ROTD.inventory;
import com.TheRPGAdventurer.ROTD.objects.tileentities.TileEntityDragonShulker;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.Slot;
import net.min... | true |
50a54f7b6a06b71615a362166a123183337aa795 | Java | sohyunwriter/coding_interview_study | /programmers/Best_Album/hyejoo.java | UTF-8 | 1,408 | 2.96875 | 3 | [] | no_license | import java.util.*;
class Solution {
public int[] solution(String[] genres, int[] plays) {
int[] answer = {};
ArrayList<Integer> result = new ArrayList<>();
HashMap<String, Integer> map = new HashMap<>();
for (int i = 0; i < genres.length; i++) {
if (map.isEmpty()) {
map.put(... | true |
23acdc9bc8fbee00692be86816bc5d5b1255de55 | Java | 1078715125/survey02_service | /src/main/java/com/atguigu/survey/component/dao/impl/BagDaoImpl.java | UTF-8 | 1,316 | 2.03125 | 2 | [] | no_license | package com.atguigu.survey.component.dao.impl;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.atguigu.survey.base.impl.BaseDaoImpl;
import com.atguigu.survey.component.dao.BagDao;
import com.atguigu.survey.entity.guest.Bag;
@Repository
public class BagDaoImpl extends ... | true |
443faef2b79e72cdaa779f4855f209a93df5ba13 | Java | Cibernet83/MinestuckUniverse | /src/main/java/com/cibernet/minestuckuniverse/blocks/BlockDungeonDoor.java | UTF-8 | 2,157 | 2.390625 | 2 | [] | no_license | package com.cibernet.minestuckuniverse.blocks;
import com.cibernet.minestuckuniverse.items.MinestuckUniverseItems;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemS... | true |
a08a0e80eb726d872f9daa06dbccb0007da69900 | Java | jerry5213/eai | /is/src/main/java/com/zxtech/is/ui/home/adpter/AppMenuAdapter.java | UTF-8 | 4,188 | 1.8125 | 2 | [] | no_license | package com.zxtech.is.ui.home.adpter;
import android.content.Context;
import android.content.Intent;
import android.graphics.Point;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.zhy.adapter.recyclerview.CommonAdapter;
import com... | true |
b46ac2b8891bcd39970b06ca1677d398d918cbb9 | Java | KotlyarovV/yandex_clean_architecture | /app/src/main/java/com/github/arch/domain/RepoInformation.java | UTF-8 | 1,876 | 2.1875 | 2 | [] | no_license | package com.github.arch.domain;
import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Embedded;
import android.arch.persistence.room.Entity;
import android.support.annotation.NonNull;
import com.github.arch.data.locale.RepoInformationDAO;
import com.google.gson.annotations.SerializedNa... | true |
943f86f1bb42ddd95657baf8648fd3ad5c948763 | Java | minhminh230998/C1020G1_NguyenLongPhin | /module3/case_study/src/main/java/model/service/CustomerService.java | UTF-8 | 543 | 2.09375 | 2 | [] | no_license | package model.service;
import model.bean.customer.Customer;
import model.bean.customer.CustomerType;
import java.util.List;
public interface CustomerService {
void save(Customer customer);
List<Customer> findAll(int page);
List<CustomerType> findAllCustomerType();
CustomerType findCustomerType(int id... | true |
5b5a4e77f3c087a383c83753a38a1d414307720a | Java | Zot201/OnlySilver | /src/main/java/zotmc/onlysilver/OnlySilver.java | UTF-8 | 4,557 | 1.546875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Zot201
*
* 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 wr... | true |
1ca0c2c23f69d8d59e48809cd5a34edd5c52f489 | Java | tianchen92/flink | /flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/plan/nodes/resource/batch/parallelism/BatchFinalParallelismSetter.java | UTF-8 | 4,296 | 1.84375 | 2 | [
"Apache-2.0",
"CC-BY-2.5",
"OFL-1.1",
"AGPL-3.0-only",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-jdom",
"GCC-exception-3.1",
"MIT-0",
"MPL-2.0-no-copyleft-exception",
"CDDL-1.1",
"CDDL-1.0",
"MIT",
"CC0-1.0",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"CC... | 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 ... | true |
0106535a979d94ae4f1f3616b10636f1c894e2c9 | Java | U731/semester-3-exam-rest | /src/main/java/com/group3/sem3exam/logic/images/ImageThumbnailerException.java | UTF-8 | 418 | 2.25 | 2 | [] | no_license | package com.group3.sem3exam.logic.images;
import com.group3.sem3exam.logic.FacadeException;
public class ImageThumbnailerException extends FacadeException
{
public ImageThumbnailerException(String errorMessage)
{
this(errorMessage, null);
}
public ImageThumbnailerException(String errorMessag... | true |
fd2620e82a4caa4ae3e1c5081394e7fd00fa65e1 | Java | thecodevillageorg/hostel-reserve-android | /app/src/main/java/com/thecodevillage/hostelreserveapp/MainActivity.java | UTF-8 | 6,843 | 2.203125 | 2 | [] | no_license | package com.thecodevillage.hostelreserveapp;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.LinearLa... | true |
1134556229837b5200358e277f0bb4d4bb0d1216 | Java | xiaoaxe/xiao-spring-messup | /schedule-tasks/src/test/java/me/xiao/springlearn/ScheduleApplicationTest.java | UTF-8 | 598 | 1.703125 | 2 | [] | no_license | package me.xiao.springlearn;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import static org.assertj.core.api.Assertions.assertThat;
/**
*
*
... | true |
306558d2830dcab8a19444395a98de858882332a | Java | yyj7952/wincom | /src/main/java/kr/co/wincom/imcs/api/getFXReposited/GetFXRepositedDao.java | UTF-8 | 895 | 1.75 | 2 | [] | no_license | package kr.co.wincom.imcs.api.getFXReposited;
import java.util.List;
import kr.co.wincom.imcs.common.vo.AlbumInfoVO;
import kr.co.wincom.imcs.common.vo.CateInfoVO;
import kr.co.wincom.imcs.common.vo.StillImageVO;
import org.springframework.stereotype.Repository;
@Repository
public interface GetFXRepositedDao{
// ... | true |
b3c87c4ae4ca4e0adc67b8da7d499345076220ee | Java | CookAndHerb/herb | /herb/src/main/java/com/kh/herb/notice/model/dao/NoticeDAO.java | UTF-8 | 1,575 | 2.15625 | 2 | [] | no_license | package com.kh.herb.notice.model.dao;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.kh.herb.notice.model.vo.Notice;
import com.kh.herb.notice.model.vo.NoticePage;
@Reposi... | true |
f71d6546e2892a9176baa987af9305283665aac0 | Java | sanjib1994/mcc | /app/src/main/java/com/salk/mycircadianclock/camera/GFitStepCount.java | UTF-8 | 847 | 1.960938 | 2 | [] | no_license | package com.salk.mycircadianclock.camera;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
@Entity
public class GFitStepCount {
@PrimaryKey(autoGenerate = true)
private int id;
long starttime =0L;
long endtime = 0L;
int step_count =0;
public int getId() {
return id;
}... | true |
32b2d49454d408512de3f107b088ae445ac8af25 | Java | strcpy123/palotry | /palo/src/Util/DateUtil.java | UTF-8 | 450 | 2.921875 | 3 | [] | no_license | package Util;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateUtil {
public static Date convertToDate(String date){
SimpleDateFormat simpleDateFormat = null;
Date dateObj=null;
try{
simpleDateFormat = new SimpleDateFormat("dd/MM/yyyy");
... | true |
56ea0e5b6896e143d639f02a52b5b4860d8dabee | Java | misalen/MisalenSpring | /misalen-spring-parent/misalen-spring-db-jpa/src/main/java/org/misalen/db/jpa/base/domain/MysqlUUID.java | UTF-8 | 843 | 2.328125 | 2 | [] | no_license | package org.misalen.db.jpa.base.domain;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import org.hibernate.annotations.GenericGenerator;
import org.misalen.common.annotations.ModelComment;
/**
* Mysql数据库的主... | true |
4d70716286b430e9a57edc72f86e950715743d21 | Java | hotaka-ikhodi/scumm-bistro | /step 2/scumm-bdd-test/src/test/java/com/scumm/bdd/GlobalHooks.java | UTF-8 | 818 | 1.804688 | 2 | [] | no_license | package com.scumm.bdd;
import cucumber.api.java.Before;
import java.net.URISyntaxException;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
public class GlobalHooks {
private static boolean dunit = false;
@Before
public void beforeAll() {
if(!dunit) {
... | true |
15cc9147dd40cc0c1aaaeb97337609f3814ffbea | Java | kakawaa/test-case-app | /test-case/src/main/java/com/zto/testcase/service/impl/FileUploadServiceImpl.java | UTF-8 | 16,178 | 1.96875 | 2 | [
"MIT"
] | permissive | package com.zto.testcase.service.impl;
import com.zto.testcase.dto.TcFileDto;
import com.zto.testcase.dto.TcPlanCaseListDTO;
import com.zto.testcase.enums.TestCasePriorityEnum;
import com.zto.testcase.mapper.testcase.TcFileMapper;
import com.zto.testcase.mapper.testcase.TcPlanCaseResultMapper;
import com.zto.testcase.... | true |
a065b8e78cc7a3c0bfae0eda30c656f603a4b3b6 | Java | rawat-divyanshu/ERPManagementCodeplanet | /ErpManagement/src/main/java/in/co/codeplanet/dao/StudentRegistrationDao.java | UTF-8 | 272 | 2.03125 | 2 | [] | no_license | package in.co.codeplanet.dao;
import in.co.codeplanet.model.EnrollStudent;
import in.co.codeplanet.model.StudentDetails;
public interface StudentRegistrationDao {
int registerStudent(StudentDetails studentDetails);
int enrollStudent(EnrollStudent enrollStudent);
}
| true |
9f3cea326753725fbd5dd9507b4a502d23c61c8d | Java | pitchpoint-solutions/sfs | /sfs-server/src/main/java/org/sfs/block/RecyclingAllocator.java | UTF-8 | 8,392 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 The Simple File Server Authors
*
* 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 applicabl... | true |
d42877bc0e92294299477b9e605dc516ce79f648 | Java | juliojr/api_testeinners_spring_postgres | /testeInner/src/main/java/br/com/innerjoin/testes/models/PersonModel.java | UTF-8 | 2,097 | 2.53125 | 3 | [] | no_license | package br.com.innerjoin.testes.models;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.p... | true |
5b2a8d7afe7b3e427eca8f0c254da0cb2aa93cbb | Java | chenqilin70/idera_workspace | /es17_demo/src/main/java/com/kylin/demo/forbgt/Main4Bgt.java | UTF-8 | 5,931 | 2.125 | 2 | [] | no_license | package com.kylin.demo.forbgt;
import com.kylin.demo.enums.DataType;
import com.kylin.demo.util.CatcherRecursiveTask;
import com.kylin.demo.util.ESClient;
import org.apache.commons.lang3.StringUtils;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.action.search.SearchType;
import org.el... | true |
91d32d5e86baa4a910c67f13f36888efcf60a14f | Java | LucyCo/java-exercises | /src/main/java/lucyexercises/codility/ex12/Ex12.java | UTF-8 | 1,662 | 3.578125 | 4 | [] | no_license | package lucyexercises.codility.ex12;
import java.util.HashMap;
import java.util.Map;
public class Ex12 {
public int solution(String S) {
if (S.length() < 6) {
return 0;
}
Map<String, Integer> letterCounter = new HashMap<>();
letterCounter.put("B", 0);
letterCoun... | true |
454ae7553e3da4b88c5df1bee4aa17c616b38326 | Java | shnayla71/Spring2020B18_Java1 | /src/day21_MultiDimential/Lorgest_ShortestWord.java | UTF-8 | 837 | 3.15625 | 3 | [] | no_license | package day21_MultiDimential;
import java.util.Arrays;
public class Lorgest_ShortestWord {
public static void main(String[] args) {
String[] names={"ana","reem","omer","muhtar","muhammed"};
int maxLength=names[0].length();// burasi 0 old icin asagi 1 den basladi
int minLength=names[0].len... | true |
5dd77ed691f1bdf78af3b0f9be46a77d955e2d51 | Java | kwkin/rt-fx | /source/mil/af/eglin/ccf/rt/fx/control/skins/RtCheckBoxSkin.java | UTF-8 | 12,926 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | package mil.af.eglin.ccf.rt.fx.control.skins;
import com.sun.javafx.scene.control.behavior.ButtonBehavior;
import com.sun.javafx.scene.control.skin.LabeledSkinBase;
import javafx.animation.Interpolator;
import javafx.geometry.Insets;
import javafx.scene.layout.Background;
import javafx.scene.layout.BackgroundFill;
im... | true |
19cc27c109d8663f601da0a70e3ddb239e142037 | Java | kongbushijian999/APP | /IServer/src/com/example/iserver/XXXActivity.java | GB18030 | 308 | 1.734375 | 2 | [] | no_license | package com.example.iserver;
import android.app.Activity;
import android.os.Bundle;
public class XXXActivity extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Զɵķ
super.onCreate(savedInstanceState);
setContentView(R.layout.xxx);
}
}
| true |
3aea599a77c7965b1ed5d95a2f758f0a338dc253 | Java | Skrzetuski/WebCrawlerBooks | /src/main/java/webcrawler/books/book/BookFilter.java | UTF-8 | 685 | 2.84375 | 3 | [] | no_license | package webcrawler.books.book;
import java.util.ArrayList;
import java.util.List;
public class BookFilter {
public List<Book> newListBooksForGift(List<Book> listBooksWanted, List<Book> listBooksOwned) {
List<Book> newList = new ArrayList<>();
Boolean flag = false;
for (Book bookWanted :... | true |
f9f654b5e6b84028506232ce81775b367dd205d6 | Java | natashad/compilers-project | /A5/src/compiler488/ast/expn/NotExpn.java | UTF-8 | 927 | 2.9375 | 3 | [] | no_license | package compiler488.ast.expn;
import compiler488.ast.type.BooleanType;
import compiler488.ast.type.IntegerType;
import compiler488.ast.type.Type;
import compiler488.semantics.SemanticError;
import compiler488.semantics.Semantics;
/**
* Represents the boolean negation of an expression.
*/
public class NotExpn extend... | true |
7d7ce002176afa38165f6201a5bd959ad262f531 | Java | ayushdayal/javaAssigmnet | /src/q5/Bingo.java | UTF-8 | 1,000 | 3.8125 | 4 | [] | no_license | package q5;
import java.util.concurrent.ThreadLocalRandom;
public class Bingo {
static int[] arr = new int[5];
public static void main(String[] args) {
for(int i=0;i<5;i++){
int randomNum = ThreadLocalRandom.current().nextInt(1, 41);
arr[i] = randomNum;
}
... | true |
526cb2beeccb955340469cf75811f85c1a95d4e5 | Java | prakashjha18/problem-solving-DSA | /Trees/BuildTree.java | UTF-8 | 2,443 | 3.609375 | 4 | [] | no_license | // Given 2 Arrays of Inorder and preorder traversal. Construct a tree and print the Postorder traversal.
// Input:
// First line consists of T test cases. First line of every test case consists of N , denoting the number of elements in array. Second and Third line of every test case consists of Inorder and preOrder t... | true |
e8e571d15b21ffba8ab1464a1cd43997379ab291 | Java | aemreunal/KillingFrenzy | /src/serverSide/gamemechanics/Game.java | UTF-8 | 2,289 | 2.71875 | 3 | [] | no_license | package serverSide.gamemechanics;
import global.PacketType;
import packets.Packet;
import serverSide.client.Client;
import serverSide.packethandlers.*;
import serverSide.server.Server;
import java.util.EnumMap;
import java.util.Iterator;
import java.util.concurrent.CopyOnWriteArrayList;
/*
* This code ... | true |
bbaaeb0d87fe23a4eb2a0c0a7cc9e314154f0919 | Java | happy6eve/Market-backend | /market-backend-web/src/main/java/com/qinyadan/brick/exception/ArgumentValidException.java | UTF-8 | 858 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | package com.qinyadan.brick.exception;
import org.springframework.validation.BindingResult;
import org.springframework.validation.ObjectError;
public class ArgumentValidException extends Exception {
private final BindingResult bindingResult;
public ArgumentValidException(BindingResult bindingResult) {
... | true |
35bf8237676e9349166ba14468713a142a4fed07 | Java | codebaobao/gym | /src/main/java/com/portal/utils/log/ILogger.java | UTF-8 | 340 | 1.8125 | 2 | [] | no_license | package com.portal.utils.log;
public interface ILogger
{
public void info(String msg);
public void error(String error);
public void error(String error, Throwable ex);
public void warn(String warning);
public void warn(String warning, Throwable ex);
public void debug(String msg);
public boolean idDe... | true |
3ee7d4e9103ddb32ccba972b9f18bfd5f76f60e2 | Java | evertonguimaraes/POO | /CodeProjects/src/br/unifor/poo/aulas/aula07/collections/autoboxing/Autoboxing.java | UTF-8 | 1,107 | 3.984375 | 4 | [] | no_license | package br.unifor.poo.aulas.aula07.collections.autoboxing;
import java.util.Arrays;
import java.util.List;
/**
* Created by evertonguimaraes on 02/05/17.
*/
public class Autoboxing {
public static void main(String[] args) {
// Criação de um vetor de Integers
Integer arrayInteger [] = new Int... | true |
59c170b59dec381655fb80e6b79b193a90c69f6f | Java | 2XL/Chess | /Chess/src/chess/model/King.java | UTF-8 | 3,254 | 2.875 | 3 | [] | no_license | package chess.model;
import java.awt.Point;
/**
* piece family specific piece king
* @author Xiang
*
*/
public class King extends AbstractPiece {
boolean checked;
/**
* this generates a new king piece
* @param id
* @param posInit
* @param pos
* @param visible
* @param firstMove
* @param iconLe... | true |
1dcdbf7fccea7c59572ecbe903e63932ab9afaca | Java | anuchandy/azure-sdk-for-java | /applicationinsights/resource-manager/v2015_05_01/src/main/java/com/microsoft/azure/management/applicationinsights/v2015_05_01/WebTest.java | UTF-8 | 9,162 | 1.59375 | 2 | [
"MIT"
] | permissive | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.applicationinsights.v2015_05_01;
import com.micr... | true |
383489dd15c3eb26ec4da7c9c0b92a7773f17da2 | Java | hashstacs-inc/stacs-native-dapp | /drs-service/src/main/java/io/stacs/nav/drs/service/dao/TxRequestDao.java | UTF-8 | 1,472 | 2.015625 | 2 | [] | no_license | package io.stacs.nav.drs.service.dao;
import io.stacs.nav.drs.service.dao.po.TxRequestPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* tx request
*
* @author liuyu
*/
@Mapper public interface TxRequestDao {
/**
* save po
*
... | true |
ec838381067886ebfe8bc72137fd6f2f415af4e7 | Java | mileshenrichs/quifft-examples | /src/main/java/yourfirstfft/YourFirstFFT.java | UTF-8 | 2,279 | 3.296875 | 3 | [] | no_license | package yourfirstfft;
import org.quifft.QuiFFT;
import org.quifft.output.FFTFrame;
import org.quifft.output.FFTResult;
import org.quifft.output.FrequencyBin;
import javax.sound.sampled.UnsupportedAudioFileException;
import java.io.File;
import java.io.IOException;
public class YourFirstFFT {
private File sineWa... | true |
baff3f9277fba50094b07e3ccb7799120782ffc2 | Java | inhwanK/washing_manager | /src/main/java/washing_manager/dao/ConsumerDao.java | UTF-8 | 474 | 1.96875 | 2 | [] | no_license | package washing_manager.dao;
import java.util.List;
import washing_manager.dto.Consumer;
public interface ConsumerDao {
public List<Consumer> selectConsumerByAll(); // 고객정보 모두 불러오기
public List<Consumer> selectConsumerByName(String conName); //고객이름으로 검색 (동명이인이 있을 수 있음) 따라서 List
public Consumer se... | true |
625ea7d63002d6fc72b0c1113ef3e0b5813b38e2 | Java | oops/jungol | /src/main/java/com/test/Solution2.java | UTF-8 | 884 | 3.28125 | 3 | [] | no_license | package com.test;
/**
* Created by oops on 2016. 12. 28..
*/
public class Solution2 {
public int solution(String S) {
// write your code in Java SE 8
int openCount= 0;
int closeCount = 0;
int openIndex = 0;
int closeIndex = S.length()-1;
while( openIndex <= closeI... | true |
a33af0aabf818e0b38e33676738ef0bcc9565a02 | Java | KonstaL/SimpleDrawingGame | /src/Player.java | UTF-8 | 1,821 | 3.859375 | 4 | [] | no_license | /**
* Class Player, used to represent individual players,
* and their in game attributes.
*/
public class Player {
private String name;
private String guess;
private int points = 0;
/**
* Constructor method for class Player.
*
* @param String variable used to init player name
*/
... | true |
ab3d61632401b02a76acdf6706d35380b5b35266 | Java | abc123me/ScientificCalculator | /src/net/net16/jeremiahlowe/scicalc/cartesian_plane/CoordinatePlane.java | UTF-8 | 13,921 | 2.578125 | 3 | [
"MIT"
] | permissive | package net.net16.jeremiahlowe.scicalc.cartesian_plane;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import java.awt.image.BufferedImage;
import java.awt.image.ColorModel;
import java.io.File;
import java.util.ArrayList;
import java.util... | true |
36d3fb3eff899a5c52fdc45afcb198b1e5cd11e9 | Java | FaithMandela/QuestionThree | /projects/tamshi/src/BVirtualMin.java | UTF-8 | 2,813 | 2.421875 | 2 | [] | no_license | import java.io.InputStreamReader;
import java.io.Reader;
import java.io.IOException;
import java.net.URL;
import java.net.URLConnection;
import java.net.MalformedURLException;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSessio... | true |
1dfd0aa65a627b66ab98e56f127b033384f4acf7 | Java | ybw977709134/DaXiangCCe | /DaXiangCe/daXiangCe/src/main/java/com/daxiangce123/android/data/UploadImage.java | UTF-8 | 3,349 | 2.203125 | 2 | [] | no_license | package com.daxiangce123.android.data;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import com.daxiangce123.android.App;
import com.daxiangce123.android.util.FileUtil;
import com.daxiangce123.android.util.LogUtil;
import com.google.gson.Gson;
public class Upl... | true |
24a17852c53dab3ffc901ca956500d2b9d26d6e5 | Java | sunray0620/rd2g-java | /src/LeetCode/Sqrtx.java | UTF-8 | 376 | 3.25 | 3 | [] | no_license | package LeetCode;
public final class Sqrtx {
/*
* Implement int sqrt(int x).
* Compute and return the square root of x.
*/
public int sqrt(int x) {
int maxResult = 46341;
int minResult = 0;
while (minResult < maxResult - 1) {
int m = (maxResult + minResult) / 2;
if (m * m <= x)
minResult = m;
... | true |
68638066ae98b2cfe74d831f6e6a81e9f4c3bf05 | Java | Derek-yzh/Taxi-online | /service-sms/src/test/java/com/mashibing/servicesms/ServiceSmsApplicationTests.java | UTF-8 | 410 | 1.789063 | 2 | [] | no_license | package com.mashibing.servicesms;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import java.math.BigDecimal;
//@SpringBootTest
class ServiceSmsApplicationTests {
@Test
void contextLoads() {
System.out.println(new BigDecimal(2.5));
System.out.... | true |
9f9d2b913b7768ec33ca50098304482529f7a572 | Java | uzxin/90foodmall | /src/main/java/com/cuit/foodmall/user/controller/SecurityController.java | UTF-8 | 6,536 | 2.03125 | 2 | [] | no_license | package com.cuit.foodmall.user.controller;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.conditions.update.Upd... | true |
43d28d79bda7b16e91647e53b0ce0e14c7067187 | Java | ManikandaprabhuGunasekaran/Mani_Sel | /src/test/java/pages_cucumberIntegration/MyHome1.java | UTF-8 | 950 | 1.820313 | 2 | [] | no_license | package pages_cucumberIntegration;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.events.EventFiringWebDriver;
import com.aventstack.extentreports.ExtentTest;
import cucumber.api.java.en.Giv... | true |
09f8a8ed4e50edb3061c64e7622c133050bf88eb | Java | evrytrainingbatch01/Indrajit_Hibernate_Anno_Inheritance_Demo | /Hibernate_Anno_TPC/src/main/java/com/Evry/Hibernate_Anno_TPC/RegularCustomer.java | UTF-8 | 874 | 2.515625 | 3 | [] | no_license | package com.Evry.Hibernate_Anno_TPC;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name="regularCustomer_02")
@Attr... | true |
9dfb147fbaa4351ebc280bad0a0c0de24c7c2ce9 | Java | XeonLyfe/Backdoored-1.7-Deobf-Source-Leak | /org/spongepowered/asm/mixin/injection/invoke/RedirectInjector$RedirectedInvoke.java | UTF-8 | 840 | 1.71875 | 2 | [
"MIT"
] | permissive | package org.spongepowered.asm.mixin.injection.invoke;
import com.google.common.collect.ObjectArrays;
import org.spongepowered.asm.lib.Type;
import org.spongepowered.asm.lib.tree.MethodInsnNode;
import org.spongepowered.asm.mixin.injection.struct.Target;
class RedirectInjector$RedirectedInvoke {
final Target target... | true |
a542f71e29173e25027d9b9a42d46af3da28aa55 | Java | carolinagunnesdal/TDT4100 | /oving9/ForeldreSpar.java | WINDOWS-1252 | 612 | 2.90625 | 3 | [] | no_license | package oving9;
public class ForeldreSpar extends SavingsAccount{
protected int maks, uttakigjen;
ForeldreSpar(double rente, int uttakstak) {
super(rente);
this.maks = uttakstak;
this.uttakigjen = uttakstak;
}
public void withdraw(double amount){
if(uttakigjen>0){
super.withdraw(amount... | true |
a88c2618fe7d485e47e1daa4b0e20413a5f61f30 | Java | 00127417/ReinoClase | /reinosClase/src/reinosclase/orco/BestiaMayor.java | UTF-8 | 443 | 2.625 | 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 reinosclase.orco;
/**
*
* @author Oscar Lovato
*/
public class BestiaMayor implements orco{
@Override
... | true |
eff88f0d93ad464a7e6fc30861a20db4825ff752 | Java | JuergenHaug/FXDiagram | /de.fxdiagram.examples/xtend-gen/de/fxdiagram/examples/java/JavaProperty.java | UTF-8 | 1,601 | 2.53125 | 3 | [] | no_license | package de.fxdiagram.examples.java;
import org.eclipse.xtend.lib.annotations.Data;
import org.eclipse.xtext.xbase.lib.Pure;
import org.eclipse.xtext.xbase.lib.util.ToStringBuilder;
@Data
@SuppressWarnings("all")
public class JavaProperty {
private final String name;
private final Class<?> type;
public Jav... | true |
0aeba041264db337c21bc7f137324fd117e6e58d | Java | gunner14/old_rr_code | /java_workplace/renren_web_framework/webapp/xiaonei-login-bgm/trunk/src/main/java/sns/renren/chong/services/CommunicationService.java | UTF-8 | 476 | 2.140625 | 2 | [] | no_license | package sns.renren.chong.services;
import sns.renren.chong.beans.ApplicantBean;
import sns.renren.chong.beans.UserBean;
/**
* 该接口的实现类将提供通信相关服务,目前主要是发送邮件
*
* @author wenhong.mo@renren-inc.com
*/
public interface CommunicationService {
int sendNewRegisterMailToSuperUser(UserBean registerUser);
int s... | true |
67c614842adf1f6688f25ea482e546c1d2bce866 | Java | wangh142007/learn-security | /src/main/java/com/hao/learnsecurity/service/SysUserService.java | UTF-8 | 317 | 1.507813 | 2 | [] | no_license | package com.hao.learnsecurity.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hao.learnsecurity.entity.SysUser;
/**
* 系统用户表(SysUser)表服务实现类
*
* @author makejava
* @since 2021-05-10 13:57:15
*/
public interface SysUserService extends IService<SysUser> {
}
| true |
7b6838707ad05b7cd3d7ca622c7149c27224d8ee | Java | nebulae2us/stardust | /src/main/java/org/nebulae2us/stardust/translate/domain/LogicalTranslator.java | UTF-8 | 2,248 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2012 the original author or authors.
*
* 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 applica... | true |
b8c95d3ba7667abc950ba5b31c1afdddcbbe7e36 | Java | valdar/fabric8 | /patch/patch-management/src/main/java/io/fabric8/patch/management/EnvType.java | UTF-8 | 2,203 | 1.929688 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2005-2016 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version
* 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | true |