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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c809548fe9e676499089cb72c71c0452394b7fdc | Java | igoryavk/web333 | /src/main/java/web/Config.java | UTF-8 | 643 | 2.078125 | 2 | [] | no_license | package web;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.datasource.DriverManagerDataSource;
import javax.sql.DataSource;
@Configuration
public class Config {
@Bean
public DataSource getDataSource(){
... | true |
8ace73f1b25be27da2823398ff22b872f2aba753 | Java | tobega/tailspin-v0 | /src/tailspin/matchers/composer/CaptureSubComposer.java | UTF-8 | 1,186 | 2.4375 | 2 | [
"MIT"
] | permissive | package tailspin.matchers.composer;
import tailspin.control.Value;
import tailspin.interpreter.Scope;
public class CaptureSubComposer implements SubComposer {
private final String identifier;
private final Scope scope;
private final SubComposer subComposer;
private boolean satisfied = false;
CaptureSubComp... | true |
ac6d9860f0cc226414311f5b21c8c0062388f029 | Java | SXiang/JUnitWebTest | /selenium-wd/tests/surveyor/dataaccess/source/StoredProcComplianceGetGaps.java | UTF-8 | 5,741 | 2.125 | 2 | [] | no_license | package surveyor.dataaccess.source;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.sql.CallableStatement;
import common.source.Log;
public class StoredProcComplianceGetGaps extends BaseEntity {
private String rowNumber;
private String colA;
private String colB;
pr... | true |
bbc9ee08b3dbc00589f2a0659defa999706c6015 | Java | JianpingZeng/clank | /modules/org.llvm.ir/extra_members/MetadataExtraMembers.java | UTF-8 | 446 | 1.601563 | 2 | [] | no_license | protected Metadata() {
}
protected Metadata(Metadata $Prm0) {
this.Storage = $Prm0.Storage;
this.SubclassID = $Prm0.SubclassID;
this.SubclassData16 = $Prm0.SubclassData16;
this.SubclassData32 = $Prm0.SubclassData32;
}
protected Metadata(JD$Move _dparam, Metadata $Prm0) {
this.Storage = $Prm0.Storage;
this... | true |
94a153526e3af8ea6c7e14c920420c3f4f793828 | Java | charanshetty/Dev | /MemAllocTechniq_1/src/Buddy_Animation.java | UTF-8 | 1,896 | 2.84375 | 3 | [] | no_license | import java.awt.Color;
import java.awt.Graphics;
import java.util.ArrayList;
import javax.swing.JPanel;
public class Buddy_Animation extends JPanel{
ArrayList<Process_Detail> p=new ArrayList<Process_Detail>();
int mem_size;
public void paintComponent(Graphics g)
{
//j.setText("hello");
//g.setC... | true |
b37269a0b89260ede319f31e1736941e1d6239e7 | Java | xitmxnwz/laboratory | /src/spring/backendSpring/CDPlayer.java | UTF-8 | 645 | 1.992188 | 2 | [] | no_license | package spring.backendSpring;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
@Component
public class CDPlayer {
@Autowired
private CompactDisc cd;
// @Bean
// public Compac... | true |
022466307a7fa2565c0eeb2f034868e294428c5c | Java | niuskamora/Proyectos | /prueba/src/java/com/pangea/prueba/servicio/pruebaservicio.java | UTF-8 | 6,473 | 2.15625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.pangea.prueba.servicio;
import com.pangea.prueba.control.modelo.entidad.Cargo;
import com.pangea.prueba.control.modelo.entidad.Departamento;
import com.pangea.prueba.control.modelo.entidad.Empleado;
import c... | true |
106e17f18d4ec54559d5dc7f2e8573194e5d0bca | Java | Pwb-Ben/programLearning | /src/main/java/com/programlearning/learning/IO/SocketAIO.java | UTF-8 | 2,230 | 3.265625 | 3 | [] | no_license | package com.programlearning.learning.IO;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.AsynchronousServerSocketChannel;
import java.nio.channels.AsynchronousSocketChannel;
import java.nio.channels.CompletionHandler;
import java.util.concurrent.Future;
public class SocketAIO {... | true |
3d5b2579b13f4003ee309094c4cb0cbf6c222812 | Java | ChunWai279321/QUIZZES | /Quiz/src/Quiz2.java | UTF-8 | 1,145 | 3.515625 | 4 | [] | no_license | package Quiz2;
public class Quiz2 {
public static void main(String[] args) {
Question1();
Question2();
Question3();
Question4();
}
public static void Question1() {
System.out.println("Question 1: ");
int n=1;
while (n<=5) {
System.out.println(n);
n++;
} System.out.println()... | true |
1868a49cfee1ac4f8013902b8dd950e0129547e3 | Java | thcha907/mini | /src/main/java/com/thcha/mini/repository/CompanyCustomerRepository.java | UTF-8 | 1,810 | 2.25 | 2 | [] | no_license | package com.thcha.mini.repository;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import com.thcha.mini.entity.CompanyCustomer;
import org.springframework.stereotype.Repository;
import lombok.RequiredArgsConstructor;
@Repository
@RequiredArgsConstructor... | true |
c068241ba85689fc02d39f1f86244f60db1a67bb | Java | ashru344/java-projects | /user-onboarding/src/main/java/com/carrernet/app/exception/UserAlreadyRegisteredException.java | UTF-8 | 313 | 1.960938 | 2 | [] | no_license | package com.carrernet.app.exception;
public class UserAlreadyRegisteredException extends BaseException {
private static final long serialVersionUID = 5932067407679034332L;
public UserAlreadyRegisteredException() {
super();
}
public UserAlreadyRegisteredException(String message) {
super(message);
}
} | true |
6392ed009f3a7a9ab82899a3b8d5227d83db7d12 | Java | deanclark/DeanFly | /src/java/WorldItem.java | UTF-8 | 2,215 | 2.40625 | 2 | [] | no_license | import java.awt.Color;
import java.awt.Polygon;
/**
*
* @author dean.clark
*
*/
class WorldItem {
final Color fixedColor = new Color(250, 220, 100);
public final static int OBJECT_POINTS = 5000; // max number of points per object
public final static int POLYS = 5000; // max number of polygo... | true |
c80283489a21aea698a7b5b4d3c31f3fb62d29bf | Java | ravenscroftj/ADM | /src/com/funkymonkeysoftware/adm/download/ADMDownloader.java | UTF-8 | 1,463 | 3.125 | 3 | [] | no_license | package com.funkymonkeysoftware.adm.download;
import java.util.LinkedList;
/**
* Abstract implementation of the IDownloader interface with event dispatch
*
* @author James Ravenscroft
*
*/
public abstract class ADMDownloader implements IDownloader {
protected LinkedList<IDownloadListener> listeners;
public... | true |
b6396b2ac86091d97b46cfd97e3574ff06d5e31d | Java | mikka22pl/glossa-backend | /src/main/java/org/ulv/pro/langen/model/SentenceStructure.java | UTF-8 | 823 | 2.015625 | 2 | [] | no_license | package org.ulv.pro.langen.model;
public class SentenceStructure extends BaseEntity {
private static final long serialVersionUID = 3302033152422268722L;
private Integer structureId;
private Integer ordering;
private LexerLang functionWord;
private Integer type;
public Integer getStructureId() {
return struc... | true |
560d2582f492dbff72f539484f8ba64719a22a4f | Java | nicopatoco/designPatterns-java | /src/com/company/patterns/pokemonStrategy/HydroPumpAttackStrategy.java | UTF-8 | 253 | 2.703125 | 3 | [] | no_license | package com.company.patterns.pokemonStrategy;
public class HydroPumpAttackStrategy implements Attack {
@Override
public void executeAttack(Pokemon firstPokemon, Pokemon secondPokemon) {
System.out.println("Hydro Pump Attack!");
}
}
| true |
4b78f65d6ba9df3591d786cae835f7357ca0dac2 | Java | lvhill/pro | /base-web/src/main/java/cn/sky/test/webservice/client/scws/dto/ScWsService.java | UTF-8 | 2,641 | 1.921875 | 2 | [] | no_license |
package cn.sky.test.webservice.client.scws.dto;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceFeatu... | true |
bc07b12db21afdb5d7fd3c390adcb4c267de6c6a | Java | CS2103-Aug2015-w15-4j/main | /test/GuiShortcutTest.java | UTF-8 | 3,609 | 2.484375 | 2 | [] | no_license | package test;
import static org.junit.Assert.*;
import org.junit.Test;
import gui.ShortcutManager;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import gui.ShortcutManager.CommandType;
//@@author A0122534R
public class GuiShortcutTest {
boolean isShiftDown = false;
boolean isControlDown ... | true |
703cc3f488ef8426dfc53809bd6212919b25467d | Java | jiep/SM | /Metaheurísticas/Práctica III/codigo/Práctica3/src/es/urjc/phub/InstanciaPHub.java | ISO-8859-1 | 2,144 | 3.078125 | 3 | [] | no_license | package es.urjc.phub;
import java.util.Random;
public class InstanciaPHub {
/*
* Nmero de nodos de la instancia
*/
private int nodos;
/*
* Nmero total de servidores
*/
private int servidores;
/*
* Matriz de distancias entre todos los nodos aplicando la distancia
* eucldea
*/
private double[][] ... | true |
d4d04c7f5f03f731b7c85723a0b09a26091bd6fb | Java | DhruvGala/Cryptography_sample_codes | /MyDES.java | UTF-8 | 13,521 | 3.109375 | 3 | [] | no_license | import java.util.Scanner;
/*
* filename: MyDES.java
*
* version: 1.0 10/06/2015
* 1.1 10/07/2015
*
* Log: <version 1.0>
* implemented the S-box logic along with f function logic
* and IP and inverse IP logic involved in DES.
* Now working on developing the entire runs that will call f-function
* ... | true |
6e67edd9c820667ef8defc53c1d33f62f1655534 | Java | aliyun/aliyun-openapi-java-sdk | /aliyun-java-sdk-mpserverless/src/main/java/com/aliyuncs/mpserverless/model/v20190615/ListFunctionDeploymentResponse.java | UTF-8 | 4,979 | 1.609375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | true |
c2a86e2752c41a239e1fc1112494d871ca138ade | Java | Kiamambo/CIRdemo | /CIRdemoApp/src/CIRMS/Database/DatabaseHandler.java | UTF-8 | 47,359 | 2.421875 | 2 | [] | no_license | package CIRMS.Database;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JOptionPane;
import CIRMS.Components.CompBProperty... | true |
0d3d00f2f1e958a2f4fbe3921e57291429b0618b | Java | shanekirwan1/RMPClient | /test/com/rmp/rmpclient/controller/politician/profile/PoliticianProfileTest.java | UTF-8 | 931 | 2.546875 | 3 | [] | no_license | package com.rmp.rmpclient.controller.politician.profile;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.junit.Before;
import org.junit.Test;
import com.rmp.rmpclient.politician.Image;
import com.rmp.rmpclient.politician.Politician;
public class PoliticianProfil... | true |
2b9dce3af22579768ffb2f2beb423f600d620e17 | Java | mohamed-bourkha/Gestion-de-Commande | /src/main/java/org/sid/demo/dao/impl/LigneVenteDaoImpl.java | UTF-8 | 212 | 1.523438 | 2 | [] | no_license | package org.sid.demo.dao.impl;
import org.sid.demo.dao.ILigneVenteDao;
import org.sid.demo.entities.LigneVente;
public class LigneVenteDaoImpl extends GenericDaoImpl<LigneVente> implements ILigneVenteDao {
}
| true |
4706af5f23df7c3e20b264756ca5d1e9a568dcd8 | Java | Baresse/corpmanager | /src/main/java/eve/corp/manager/common/dto/Connection.java | UTF-8 | 3,720 | 2.84375 | 3 | [
"MIT"
] | permissive | package eve.corp.manager.common.dto;
import eve.corp.manager.common.enums.ConnectionOrigin;
import eve.corp.manager.common.model.AuditedCharacter;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* The class is used to keep a track of any connection found in the EV... | true |
269548e8eff05df43f12aa6bcfdc37c262fbdf4b | Java | ALEJANDRAPONCE2116/APDM_U1 | /EVA3_1_HILOS/app/src/main/java/com/example/eva3_1_multitarea/MainActivity.java | UTF-8 | 1,174 | 3.09375 | 3 | [] | no_license | package com.example.eva3_1_multitarea;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... | true |
bc8c626fe6784fb3b3a3c132140a9e45e2a3b21b | Java | saymon83/api-restful-demo | /src/main/java/com/demoapp/ptg/repositories/UserRepository.java | UTF-8 | 701 | 2.140625 | 2 | [] | no_license | package com.demoapp.ptg.repositories;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import com.demoapp.ptg.models.User;
public interface UserRepository extends Jp... | true |
d66a2631f306fc1aa74001ef8962a424b9a2ecca | Java | nozuonodienobb/dragger2Test | /app/src/main/java/me/xiaobai/test/dragger/ui/base/BaseActivityPresenter.java | UTF-8 | 647 | 2.1875 | 2 | [] | no_license | package me.xiaobai.test.dragger.ui.base;
import android.content.Context;
import android.util.Log;
import javax.inject.Inject;
/**
* Created by tianqing on 2018/3/1.
*/
public class BaseActivityPresenter<V extends BaseActivity> {
protected V view;
// public BaseActivityPresenter(Context context) {
// ... | true |
b5a7169c36c02a1684b80a40dde959b2dd023597 | Java | DongtaiS/CCCSolutions | /S2020_4.java | UTF-8 | 3,361 | 3.09375 | 3 | [] | no_license | package cccpractice;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class S2020_4
{
public static void main (String[] args) throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
... | true |
361d74e66b0780651bcdf2ed0d49c3c68112bbce | Java | lgringo/dokuJClient | /src/main/java/dw/cli/commands/Searcher.java | UTF-8 | 1,818 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package dw.cli.commands;
import java.util.List;
import com.martiansoftware.jsap.JSAP;
import com.martiansoftware.jsap.JSAPException;
import com.martiansoftware.jsap.Switch;
import com.martiansoftware.jsap.UnflaggedOption;
import dw.xmlrpc.DokuJClient;
import dw.xmlrpc.SearchResult;
import dw.xmlrpc.exception.DokuExc... | true |
d378f84117335023d9ac54e83a66f048797c0ff0 | Java | Abrar051/ArrayList | /ArrayList-master/MultipleInterface/Interface1.java | UTF-8 | 115 | 2.46875 | 2 | [] | no_license | package MultipleInterface;
interface Interface1 {
public void printInfo1 ();
public void printInfo2 ();
}
| true |
5b1899d27cda6620dcad780b667628a810afbf95 | Java | yogitamagar/SPOS | /A1_AssemblerPassOne/src/Pass1.java | UTF-8 | 4,940 | 2.84375 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map.Entry;
class Pass1{
int LC;
String[][] opcode= new String[100][4] ;
HashMap<String, String> Symbol;
HashMap<String, String> lit_table;
ArrayList<Integer>pool_table;
ArrayList<Str... | true |
559c7c7a32495cb5ee34986c30e7d3edb0a4ef38 | Java | Yarin78/advent-of-code | /src/year2015/Day17.java | UTF-8 | 1,028 | 2.765625 | 3 | [] | no_license | package year2015;
import lib.AoCBase;
import lib.Kattio;
public class Day17 extends AoCBase {
public static void main(String[] args) {
// new Day17().runStdin();
// new Day17().runSample();
// new Day17().runSampleUntilEOF();
new Day17().runTestcase();
}
public void run(Katti... | true |
d26215f9489a82170ee1f196a6ffbca6bdb6e99f | Java | seasarorg/s2directory | /s2directory/s2-directory/src/main/java/org/seasar/directory/NamingEnumerationHandler.java | UTF-8 | 1,256 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2005-2014 the Seasar Foundation and the Others.
*
* 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 requir... | true |
5887b6abac45e103a338e2d91e76b0997db9104e | Java | DLozanoNavas/ObjectOrientedUB | /GeometricShapes_1/src/LOGICA/cuadrado.java | UTF-8 | 680 | 2.796875 | 3 | [] | no_license | package LOGICA;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class cuadrado {
static BufferedReader entrada=new BufferedReader(new InputStreamReader(System.in));
private int lado;
public cuadrado () {
}
public int getLado () {
... | true |
876e277d7b99738b4768c606240cbcc5cc69d256 | Java | ShahmanTeh/MiFit-Java | /cn/com/smartdevices/bracelet/shoes/ui/C0659p.java | UTF-8 | 386 | 1.617188 | 2 | [] | no_license | package cn.com.smartdevices.bracelet.shoes.ui;
import android.view.View;
import android.view.View.OnClickListener;
class C0659p implements OnClickListener {
final /* synthetic */ ShoesBindTestActivity a;
C0659p(ShoesBindTestActivity shoesBindTestActivity) {
this.a = shoesBindTestActivity;
}
... | true |
636bfbcf581dcab0560ae25769fb1b933fc24bf1 | Java | acostarodrigo/iop-blockchain-premining | /src/org/fermat/transaction/Utils.java | UTF-8 | 3,117 | 2.71875 | 3 | [
"MIT"
] | permissive | package org.fermat.transaction;
import com.google.common.base.Preconditions;
import org.fermat.Main;
import org.fermatj.core.*;
/**
* Created by rodrigo on 7/25/16.
*/
public class Utils {
public static final long preminedAmount = 2100000;
public static void validateGenesisTransaction(Transaction tx) throw... | true |
ec2e3d3570c10f404106a0b358466328143cf71a | Java | chanyaz/ewe-android-hack | /project/src/main/java/com/expedia/bookings/data/trips/ItineraryManager.java | UTF-8 | 64,227 | 1.703125 | 2 | [] | no_license | package com.expedia.bookings.data.trips;
import java.io.File;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSe... | true |
f838dd648c28b6d3fa5bfa9176ec138998421f78 | Java | supercoeus/Fawns | /app/src/main/java/com/fawns/app/ui/base/BaseActivity.java | UTF-8 | 3,149 | 2.015625 | 2 | [] | no_license | package com.fawns.app.ui.base;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import com.fawns.app.GlobalApplication;
import com.fawns.app.R;
import com.fawns.app.view.base.BaseView... | true |
60febdbc67aa9f7330d8e910603401df099fa5da | Java | bambuser/react-native-bambuser-player | /android/src/main/java/com/bambuserplayer/BambuserPlayerView.java | UTF-8 | 9,801 | 1.867188 | 2 | [] | no_license | package com.bambuserplayer;
import android.content.Context;
import android.graphics.Color;
import android.os.Handler;
import android.os.Looper;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
import com.bambuser.broadcaster.BroadcastPlayer;
import com.bambuser.broadcaster.PlayerState;
import c... | true |
aa7bc5036349412f292a6835b802ab66f634d9e5 | Java | binduak/Transformers-service | /TW-Bootcamp/src/main/java/com/tw/dao/impl/CategoryDAOImpl.java | UTF-8 | 2,654 | 2.3125 | 2 | [] | no_license | package com.tw.dao.impl;
import java.util.List;
import javax.persistence.NoResultException;
import javax.persistence.Query;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;
import com.tw.dao.ICategoryDAO;
import com.tw.entity.Category;
import com.tw.exception.DAO... | true |
80aded4b2f1254585a6a8124b3f3e890fbce2005 | Java | sgraband/cmmn-editor | /server/resources.tests/src/org/eclipse/emfcloud/metamodel/CMMN/tests/DecoratorTest.java | UTF-8 | 1,428 | 1.90625 | 2 | [] | no_license | /**
*/
package org.eclipse.emfcloud.metamodel.CMMN.tests;
import junit.textui.TestRunner;
import org.eclipse.emfcloud.metamodel.CMMN.CMMNFactory;
import org.eclipse.emfcloud.metamodel.CMMN.Decorator;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Decorator</b></em>'.
* <!-- end-user-doc... | true |
63a51ac016a02eded40536d0e9ee161d4d63c78f | Java | furkansefademirci/JavaCamp | /hrms/src/main/java/com/fsd/hrms/dataAccess/abstracts/UserDao.java | UTF-8 | 301 | 1.953125 | 2 | [] | no_license | package com.fsd.hrms.dataAccess.abstracts;
import com.fsd.hrms.entities.concretes.Users;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
public interface UserDao extends JpaRepository<Users,Integer> {
List<Users> findUsersByEmail(String email);
}
| true |
8b4500eb3d8a1aa0781ac77cebd223416eb4e595 | Java | HakimB/tamago | /TamagoCC/source/tamagocc/api/TState.java | UTF-8 | 394 | 2.15625 | 2 | [] | no_license | package tamagocc.api;
import java.util.Iterator;
/**
* This interface represents a state in the service behavior
* @author Hakim BELHAOUARI
*/
public interface TState {
/**
* @return Return the name of the state
*/
String getState();
/**
* @return Return an iterator w... | true |
b1a7a971f0333f1bc893a29af5833bdba45b383a | Java | ZiyingShao/cw1 | /ImproperHeightException.java | UTF-8 | 131 | 2.140625 | 2 | [] | no_license | public class ImproperHeightException extends Exception
{
public ImproperHeightException(String message)
{
super(message);
}
}
| true |
5ec059c88eb2579de96d4a53a0db5148ee1fb302 | Java | AlexandraDI/Connections | /src/java/dao/definitions/UserDAO.java | UTF-8 | 527 | 2.21875 | 2 | [] | no_license | package dao.definitions;
import java.util.List;
import model.User;
public interface UserDAO {
public User find(String email);
public User find(Integer id);
public List<User> list();
public void create(User user);
public void update(Integer id, User user);
pub... | true |
a0ca48bec388dd61469563a813c6c97c3b3cd31e | Java | TangZhiTing666/Javaweb | /Hibernate/hibernateDemo2/src/com/Demo2/test/more2one.java | GB18030 | 1,941 | 2.8125 | 3 | [] | no_license | package com.Demo2.test;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import org.hibernate.service.ServiceRegistry;
import org.hibernate.service.ServiceRegistryBuilder;
import org.junit.After;
import org.junit.Before;
import... | true |
ceab627465aace2119e77c3c6ab807ac7b96475c | Java | Jeko13/Porfolio | /portfolio/src/main/java/fr/cedricmoulard/photostore/model/bean/CartItem.java | UTF-8 | 714 | 2.875 | 3 | [] | no_license | package fr.cedricmoulard.photostore.model.bean;
/**
* @author zkessentials store
*
* This class provides a representation of a {@code CartItem}
*
*/
public class CartItem {
private Product product;
private Photo photo;
private int amount;
public CartItem(Photo photo,Product product) {
super();
... | true |
8f146a33941ae8f75abf2e120d990b5e7b8f8fa4 | Java | kia1349/Med-Manager-1 | /app/src/main/java/com/nwagu/medmanager/Constants.java | UTF-8 | 563 | 1.632813 | 2 | [] | no_license | package com.nwagu.medmanager;
interface Constants {
String EXTRA_MED_INDEX = "med index";
String EXTRA_MED_NAME = "med name";
String EXTRA_MED_DESC = "med desc";
String EXTRA_MED_FREQ = "med freq";
String EXTRA_MED_START = "med start";
String EXTRA_MED_END = "med end";
String EXTRA_MED_LAST... | true |
2146312c01e63fe93c81607531a18d3939f8d651 | Java | arnieel/mango | /src/main/java/com/tgp/view/stage/MainStage.java | UTF-8 | 531 | 2.328125 | 2 | [] | no_license | package com.tgp.view.stage;
import com.tgp.view.scene.MainScene;
import javafx.application.Platform;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class MainStage extends Stage {
public MainStage() {
Scene mainScene = new MainScene();
setTitle(TITLE);
setScene(mainScene);
... | true |
ed610fe9ce1e5514cee2383e96c989e505117c8b | Java | tmillsclare/zk | /zk/src/org/zkoss/zk/ui/Executions.java | UTF-8 | 41,430 | 2.109375 | 2 | [] | no_license | /* Executions.java
Purpose:
Description:
History:
Fri Jun 3 17:55:08 2005, Created by tomyeh
Copyright (C) 2005 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
This program is distributed under LGPL Version 2.1 in the hope that
it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
package o... | true |
89af903a41fecc96bd430741739a7c95fa2bdcee | Java | uk-gov-dft/bluebadge-payment-service | /src/main/java/uk/gov/dft/bluebadge/service/payment/service/GovPayProfile.java | UTF-8 | 363 | 1.578125 | 2 | [
"MIT"
] | permissive | package uk.gov.dft.bluebadge.service.payment.service;
import javax.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;
@Builder
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ToString
class GovPayProf... | true |
56aaee3f5a9947c331289c855f1ab19ea8bcb0b6 | Java | bronwen-cassidy/talent-evolution | /talent-studio-views/src/test/java/com/zynap/talentstudio/web/security/area/TestAreaValidator.java | UTF-8 | 1,061 | 1.953125 | 2 | [] | no_license | package com.zynap.talentstudio.web.security.area;
/**
* User: amark
* Date: 20-Mar-2005
* Time: 11:38:32
*/
import com.zynap.talentstudio.security.areas.Area;
import com.zynap.talentstudio.security.areas.AreaElement;
import junit.framework.TestCase;
import org.springframework.validation.BindException;
import ja... | true |
97a9d1db46bc8ffb8e5c106b0a0f7ca6a45285a3 | Java | akaravi/Ntk.Android.CustomerClub | /app/src/main/java/ntk/android/customerclub/activity/Class1.java | UTF-8 | 3,712 | 2.03125 | 2 | [] | no_license | package ntk.android.customerclub.activity;
import android.os.Bundle;
import android.widget.AutoCompleteTextView;
import android.widget.TextView;
import androidx.annotation.Nullable;
import com.google.android.material.textfield.TextInputEditText;
import es.dmoral.toasty.Toasty;
import io.reactivex.annotations.NonNul... | true |
65de535338ec87c35259c736b3fa882285e661e0 | Java | Dinox869/betika_ui | /app/src/main/java/com/example/betika_ui/adapter/Bets.java | UTF-8 | 1,864 | 2.4375 | 2 | [] | no_license | package com.example.betika_ui.adapter;
public class Bets {
private String one,two,title,title2,title3,button1,button2,button3,button4;
public String getButton1() {
return button1;
}
public void setButton1(String button1) {
this.button1 = button1;
}
public String getOne() {
... | true |
561ebf2ea9ae61700ff8996ce923f3b9cce0f74c | Java | ehabibov/jagger | /webclient/src/main/java/com/griddynamics/jagger/webclient/client/trends/TrendsPlace.java | UTF-8 | 3,340 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package com.griddynamics.jagger.webclient.client.trends;
import com.griddynamics.jagger.webclient.client.mvp.AbstractPlaceHistoryMapper;
import com.griddynamics.jagger.webclient.client.mvp.PlaceWithParameters;
import java.util.*;
/**
* @author "Artem Kirillov" (akirillov@griddynamics.com)
* @since 6/20/12
*/
publ... | true |
0fa3e49b7ece979780fa557c9427772c26df25a5 | Java | timjansen/actorsguild | /src/org/actorsguildframework/internal/Controller.java | UTF-8 | 3,300 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2008 Tim Jansen
*
* 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 la... | true |
d2edcda2cbc5dc5c74005bb1694f4de45caa9292 | Java | chaluja7/fixitapp | /src/main/java/cz/cvut/jee/service/InvalidIncidentReferenceService.java | UTF-8 | 1,095 | 2.21875 | 2 | [] | no_license | package cz.cvut.jee.service;
import cz.cvut.jee.dao.wrappers.InvalidIncidentStatisticItem;
import cz.cvut.jee.entity.InvalidIncidentReference;
import javax.ejb.Local;
import java.util.List;
/**
* Service for Invalid incident reference.
*
* @author jakubchalupa
* @since 29.01.14
*/
@Local
public interface Invali... | true |
138a1b7b997e6901982775eb2865cffcec8cb57c | Java | xeon-ye/spring-boot | /mybatis/src/main/java/com/example/mybatis/MyApplicationRunner.java | UTF-8 | 1,149 | 2.109375 | 2 | [] | no_license | package com.example.mybatis;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.jdbc.ScriptRunner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.io.Reso... | true |
525e76f4f711d0b9f05d76aa46cafaf5ec3c1f29 | Java | alancnet/artifactory | /web/application/src/main/java/org/artifactory/webapp/wicket/application/ArtifactoryWebSession.java | UTF-8 | 10,706 | 1.539063 | 2 | [
"Apache-2.0"
] | permissive | /*
* Artifactory is a binaries repository manager.
* Copyright (C) 2012 JFrog Ltd.
*
* Artifactory is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your o... | true |
9756ec066f666958206276b3a35fe666ccfad461 | Java | nguyenducbinh96/tkclock | /alarmclock/src/com/tkclock/voice/user_interaction/TkVoiceRecognizerCtrl.java | UTF-8 | 2,988 | 2.265625 | 2 | [] | no_license | package com.tkclock.voice.user_interaction;
import android.content.Context;
import android.content.Intent;
import android.speech.RecognizerIntent;
import android.speech.SpeechRecognizer;
import android.util.Log;
import android.widget.Toast;
import com.tkclock.models.TkTextToSpeech;
import static com.tkclock.models.T... | true |
f2b1a4eccb6fcfbe223aa45eac7254f24f573b4e | Java | tomdev2008/zxzshop-parent | /WMb2b-bizshop/src/main/java/com/wangmeng/common/web/filter/AuthorityFilter.java | UTF-8 | 2,682 | 2.203125 | 2 | [] | no_license | package com.wangmeng.common.web.filter;
import com.wangmeng.common.utils.LoginUtil;
import com.wangmeng.service.api.UserInfoService;
import com.wangmeng.service.bean.User;
import com.wangmeng.spring.ApplicationContextHolderSingleton;
import org.apache.log4j.Logger;
import javax.servlet.*;
import javax.servlet.http.Ht... | true |
1540c7ba9b6e6b57ca3b885ee7ac6e416faf7a0f | Java | runnerdave/oca-8-prac | /chapter3/StringPrac.java | UTF-8 | 1,738 | 3.765625 | 4 | [] | no_license | import java.util.*;
public class StringPrac{
public static void main(String[] args){
String myString = "unoSeLaCala";
String myString2 = "\t\n y dos ";
String myString3 = myString2.trim().concat(myString);
System.out.println(myString);
System.out.println("largo de myString:" + myString.length());
char c =... | true |
5ca513f73302b2a8b5d18264b79f0b026d490aa5 | Java | wintermute766/code_practice | /src/main/java/test/my/Main.java | UTF-8 | 4,118 | 3.3125 | 3 | [] | no_license | package test.my;
import java.util.*;
import java.util.stream.Collectors;
class Main {
static String findNumberOfReplacements(String input) {
String[] arr = input.split("\n");
int birthdays = Integer.parseInt(arr[0]);
String[] result = new String[birthdays];
for (int i = 1; i < b... | true |
a7cb7768aa2ce6b2530b1e036e9b6262a1ca0739 | Java | CostelloLab/GSEARerank | /.metadata/.plugins/org.eclipse.core.resources/.history/6a/c03fdfe1466e001714e6eab34308208c.java | UTF-8 | 1,255 | 1.882813 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2003-2016 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved.
*******************************************************************************/
p... | true |
620e9c716b7d62915402f0630d0838497cacc271 | Java | jetoze/gunga | /src/main/java/jetoze/gunga/selection/SelectionAction.java | UTF-8 | 1,178 | 2.640625 | 3 | [] | no_license | package jetoze.gunga.selection;
import static java.util.Objects.*;
import java.awt.event.ActionEvent;
import java.util.function.Consumer;
import javax.annotation.Nullable;
import javax.swing.Action;
import jetoze.gunga.UiThread;
public interface SelectionAction<T> extends Action {
void setSelectionSource(Sele... | true |
84c0ac1211cb652d19bfa9608c4bde390517476b | Java | ZhouYangGaoGao/MT | /maTao/src/main/java/com/matao/adapter/XttzAdapter.java | UTF-8 | 1,848 | 2.046875 | 2 | [] | no_license | package com.matao.adapter;
import java.util.List;
import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import com.matao.activity.HomeActivity;
import com.matao.bean.HeadAdList;
import com.matao.matao.R;
import com.matao.utils.Logger;
import com.matao.utils.ViewHolder;
... | true |
ee0cae894b7e6daede61f3358875bbd8f4f2ed1a | Java | mstane/cloud-app-watch | /cloudappwatch/src/main/java/io/github/ms/cloudappwatch/repository/AppRepository.java | UTF-8 | 390 | 1.773438 | 2 | [
"MIT"
] | permissive | package io.github.ms.cloudappwatch.repository;
import io.github.ms.cloudappwatch.domain.App;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;
/**
* Spring Data repository for the App entity.
*/
@SuppressWarnings("unused")
@Repository
public interface AppRepository... | true |
8d939c9955ec0c54973a58b5d0f077e9a7892aa1 | Java | congphuong1703/order-banquet | /src/main/java/com/btl/dattiec/SecurityConfig.java | UTF-8 | 1,012 | 2.125 | 2 | [] | no_license | package com.btl.dattiec;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.... | true |
390abddcd56ee15390994817c87674f39750a5a9 | Java | cometman/Scheduler | /Scheduler/src/test/java/com/imedical/data/TestLogger.java | UTF-8 | 392 | 1.921875 | 2 | [] | no_license | package com.imedical.data;
import static org.junit.Assert.*;
import java.io.IOException;
import java.util.logging.Level;
import org.junit.Test;
import com.imedical.common.LogUtil;
public class TestLogger {
@Test
public void LogTester() {
LogUtil.writeMessage("Here is a test");
LogUtil.write... | true |
f9c45d39b1881a918779c890f9e7062cff1d96e8 | Java | WAPProject/CyclingEvent | /Ride/src/main/java/com/cs/servlet/LoginFilter.java | UTF-8 | 3,182 | 2.53125 | 3 | [] | no_license | package com.cs.servlet;
import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
/**
* Created by tao on 2017/4/6 0006.
*/
@WebFilter(filterName="... | true |
011e510dd3a5e753a203b3980a6faf7352fce931 | Java | 732275239/nfc | /app/src/main/java/com/chuyu/nfc/bean/UserBean.java | UTF-8 | 308 | 2.046875 | 2 | [] | no_license | package com.chuyu.nfc.bean;
/**
* 名称:登录获取用户信息
*/
public class UserBean {
/**
* token : 28051dcad9802db9ad53a245611e4695
*/
private String token;
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
}
| true |
e16ca7b558a5f42dcc29e9c2b2e4b04407db80b4 | Java | MeenakshiSundaram-93/nmsrepo | /src/test/java/testcases/HomePageTestCases.java | UTF-8 | 1,000 | 2.265625 | 2 | [] | no_license | package testcases;
import org.testng.annotations.Test;
import basetest.BaseTest;
import pages.HomePage;
import pages.SearchPage;
public class HomePageTestCases extends BaseTest {
@Test(priority = 1)
public void validateEnteringWrongValuesInMandateFields() {
test = extent.createTest("Validate the Homepage by ent... | true |
1eaa8578529097763a07891f852c24337cc546fc | Java | washhy/trony | /src/main/java/com/hunantv/bigdata/troy/statistics/StatisticsUtils.java | UTF-8 | 3,622 | 2.359375 | 2 | [] | no_license | package com.hunantv.bigdata.troy.statistics;
import com.google.common.base.Strings;
import com.google.common.collect.Maps;
import com.hunantv.bigdata.troy.Lifecycle;
import com.hunantv.bigdata.troy.configure.AbstractConfigManager;
import com.hunantv.bigdata.troy.configure.LogConfig;
import com.hunantv.bigdata.troy.ent... | true |
fda989851f481b407ef564ebcf1155bbf7125df7 | Java | petercsengodi/games | /AMediaEditorCollection/src/main/java/hu/csega/editors/common/lens/EditorLensPipeline.java | UTF-8 | 2,181 | 2.609375 | 3 | [] | no_license | package hu.csega.editors.common.lens;
public class EditorLensPipeline {
private EditorLensTranslateImpl translate = new EditorLensTranslateImpl();
private EditorLensScaleImpl scale = new EditorLensScaleImpl();
public void setScale(double scaling) {
EditorPoint current = scale.getScaling();
current.setX(scalin... | true |
440fd03966f9691d4171ae7c18d6fac3268b08ed | Java | liangshanhero/energyDeviceManage | /cmi/cn/edu/scau/cmi/service/WhstrategyService.java | UTF-8 | 1,037 | 1.929688 | 2 | [] | no_license | package cn.edu.scau.cmi.service;
import java.util.List;
import java.util.Set;
import cn.edu.scau.cmi.domain.*;
public interface WhstrategyService {
public void saveWhstrategy(Whstrategy whstrategy);
public Whstrategy saveWhstrategyWhdevice(Integer id, Whdevice related_whdevice);
public Whstrategy ... | true |
3116a3e1c748dc66c2109cbbb604d2eefa182486 | Java | r-asano/java_experience | /src/java_experience/Cf7_4.java | UTF-8 | 1,293 | 3.328125 | 3 | [] | no_license | package java_experience;
// XML形式のデータを読み込む
import java.io.FileInputStream;
import java.io.InputStream;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
public class Cf7_4 {
public static void main(String[] args) throws Exception... | true |
b423c658219a0ef2ad67f24b29cbee961071811b | Java | lukerowley101/farmer2market | /src/main/java/com/mastek/farmertomarket/dao/itemJPADAO.java | UTF-8 | 219 | 1.585938 | 2 | [] | no_license | package com.mastek.farmertomarket.dao;
import org.springframework.data.repository.CrudRepository;
import com.mastek.farmertomarket.entities.item;
public interface itemJPADAO extends CrudRepository<item, Integer>{
}
| true |
13e8abceb7bbc205d1a64cc1202489b3811529d6 | Java | NickOwhadi/java-practice | /src/day27_main/CopyArrayWholeOrSome.java | UTF-8 | 680 | 3.171875 | 3 | [] | no_license | package day27_main;
import java.util.*;
public class CopyArrayWholeOrSome {
public static void main(String[] args) {
// TODO Auto-generated method stub
double[] d1 = { 2.3, 4.5, 12.4 };
double[] d2 = d1;
System.out.println(Arrays.toString(d1));
System.out.println(Arrays.toString(d2));
d1[0] = 1000.2;
... | true |
386b87459548b90b7e28a33afd1d07efc6484540 | Java | MathiasMonstrey/fosil_decompiled | /com/portfolio/platform/data/source/remote/NotificationRemoteDataSource.java | UTF-8 | 3,489 | 1.5625 | 2 | [] | no_license | package com.portfolio.platform.data.source.remote;
import android.util.SparseArray;
import com.fossil.wearables.fsl.appfilter.AppFilter;
import com.fossil.wearables.fsl.contact.Contact;
import com.fossil.wearables.fsl.contact.ContactGroup;
import com.fossil.wearables.fsl.contact.EmailAddress;
import com.fossil.wearabl... | true |
f5850529c0642f37b8e9f36eab721e6eed788335 | Java | raghavmysari/egen-be-challenge | /src/main/java/Company.java | UTF-8 | 337 | 2.59375 | 3 | [] | no_license | import lombok.Data;
@Data
public class Company implements IsValid{
String name, website;
public Company(String name, String website) {
this.name = name;
this.website = website;
}
public boolean valid() {
return name != null && website !=null && !name.equals("") && website.equ... | true |
e3598b96684a6d879396d36501f98bf45b8cbb92 | Java | zendawg/org.w3c.atom | /src/main/java/org/hl7/fhir/impl/ConformanceImplementationImpl.java | UTF-8 | 3,501 | 1.984375 | 2 | [] | no_license | /*
* XML Type: Conformance.Implementation
* Namespace: http://hl7.org/fhir
* Java type: org.hl7.fhir.ConformanceImplementation
*
* Automatically generated - do not modify.
*/
package org.hl7.fhir.impl;
/**
* An XML Conformance.Implementation(@http://hl7.org/fhir).
*
* This is a complex type.
*/
public class ... | true |
8be621828bd4732f9e393d9d38064e97b8805159 | Java | Lawrence982/NC_2grp_2016 | /eav/src/main/java/web/ChatController.java | UTF-8 | 3,137 | 2.21875 | 2 | [] | no_license | package web;
/**
* Created by Hroniko on 11.05.2017.
*/
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import service.chat.ChatManager;
import service.chat.ChatRequest;
import service.chat.ChatResponse;
import java.lang.reflect.InvocationTargetEx... | true |
181b034a5626c615f43a8fcdf1499629ecc67ba6 | Java | exsolvi/maven-eclipse-configurator-plugin | /src/main/java/se/exsolvi/maven/plugin/eclipseconfigurator/mojo/MojoParameter.java | UTF-8 | 1,662 | 2.515625 | 3 | [] | no_license | package se.exsolvi.maven.plugin.eclipseconfigurator.mojo;
public class MojoParameter {
private final String name;
private final String value;
private boolean mandatory = false;
private Class<? extends MojoParameterValidator> validator;
public MojoParameter(String name, String value, bool... | true |
39d5755d8692821af44194e84487bc4e2a6d797b | Java | goxr3plus/JTouchBar | /src/test/java/com/thizzer/jtouchbar/swt/JTouchBarSWTTest.java | UTF-8 | 1,208 | 2.328125 | 2 | [
"MIT"
] | permissive | /**
* JTouchBar
*
* Copyright (c) 2018 thizzer.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*
* @author M. ten Veldhuis
*/
package com.thizzer.jtouchbar.swt;
import static org.junit.Assert.assertNotNull;
import org.eclipse.sw... | true |
548cf2ae7477ee7b1e3a99f0fbcaf7db693c8929 | Java | Fitria01/BouquetApp | /app/src/main/java/com/example/project/PemesananActivity.java | UTF-8 | 8,712 | 1.960938 | 2 | [] | no_license | package com.example.project;
import androidx.appcompat.app.AppCompatActivity;
import android.app.DatePickerDialog;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import andr... | true |
e094a8ef7f9e10838d20f0013e0a345b38de1b27 | Java | clfbai/heoll | /user-center/src/main/java/com/boyu/erp/platform/usercenter/service/system/SpecService.java | UTF-8 | 1,548 | 1.929688 | 2 | [] | no_license | package com.boyu.erp.platform.usercenter.service.system;
import com.boyu.erp.platform.usercenter.entity.Spec;
import com.boyu.erp.platform.usercenter.exception.ServiceException;
import com.boyu.erp.platform.usercenter.vo.goods.ProductVo;
import com.github.pagehelper.PageInfo;
import java.util.List;
import java.util.S... | true |
65934abbcc9b7228177be81ba0071a1c79d07cfc | Java | MatthieuDJ/api_training | /src/main/java/fr/esiea/ex4A/FakeTinder/Sexes.java | UTF-8 | 77 | 1.875 | 2 | [] | no_license | package fr.esiea.ex4A.FakeTinder;
public enum Sexes {
M,
F,
O
}
| true |
b4d819e65d843d8e1be7ae127eeefe303a8c5a80 | Java | lehmansarahm/PrivacyManager | /EnvironmentalAccessControl/eac/src/main/java/edu/temple/eac/utils/DialogManager.java | UTF-8 | 1,477 | 2.453125 | 2 | [] | no_license | package edu.temple.eac.utils;
import android.app.Activity;
import android.app.ProgressDialog;
/**
*
*/
public class DialogManager {
private static ProgressDialog dialog;
/**
*
* @param title
* @param message
*/
public static void show(final Activity currentActivity, final String ti... | true |
e0ae4911dfccf2a301c67e4db9b575c5bc87efcc | Java | blue-for-dragon/LearningProject | /spring-boot-learn/src/main/java/com/lyl/service/EmployeeService.java | UTF-8 | 2,584 | 3.109375 | 3 | [] | no_license | package com.lyl.service;
import com.lyl.Bean.Employee;
import com.lyl.mapper.EmployeeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.*;
import org.springframework.stereotype.Service;
//可以再类上指定cache的全局规则
@CacheConfig(cacheNames = "emp")
@Service
publi... | true |
425669b6187fe4fe399caf3765b8b21d4b98fcb6 | Java | fill24/ERP | /test/java/tests/silktoselenium/SchedulerCalendarRecurrenceTest3883.java | UTF-8 | 4,559 | 2.03125 | 2 | [] | no_license | package tests.silktoselenium;
import data.InputControls;
import data.JobStatus;
import framework.data.PropertiesReader;
import framework.reporter.TestLog;
import helpers.FindIn;
import helpers.LoginAndNavigationHelper;
import helpers.scheduler.RecurrenceCalendarModel;
import helpers.scheduler.ScheduledJobCreator;
impo... | true |
6523b4f92a26ae26b8283f6c5314f0a59a88a478 | Java | rafadelnero/alura | /alura/design-patterns/design-patterns-ii/src/memento/Programa.java | UTF-8 | 610 | 2.640625 | 3 | [] | no_license | package memento;
import java.util.Date;
public class Programa {
public static void main(String[] args) {
HistoricoContrato historicoContrato = new HistoricoContrato();
Contrato contrato = new Contrato(new Date(), "Josefo", Tipo.NOVO);
historicoContrato.adiciona(contrato.salvaEstado());
contrato.avan... | true |
bbb5fdab7d0476a0d719b4c4b15fac799d1d2507 | Java | baiymfkese/jedis | /src/main/java/com/dawning/gridview/app/gridview/webapp/jedis/cxf/client/WebServiceClient.java | UTF-8 | 1,598 | 2.296875 | 2 | [] | no_license | package com.dawning.gridview.app.gridview.webapp.jedis.cxf.client;
import org.apache.cxf.endpoint.Client;
import org.apache.cxf.frontend.ClientProxy;
import org.apache.cxf.frontend.ClientProxyFactoryBean;
import org.apache.cxf.transport.http.HTTPConduit;
import org.apache.cxf.transports.http.configuration.HTTPClientPo... | true |
ad7dc507b98de4c2093352bee4103380220a237d | Java | MicaVsr/taller-web | /src/main/java/ar/edu/unlam/tallerweb1/modelo/Puntaje.java | UTF-8 | 1,592 | 2.328125 | 2 | [] | no_license | package ar.edu.unlam.tallerweb1.modelo;
import javax.persistence.*;
import java.util.Date;
@Entity
public class Puntaje {
public Puntaje(){}
public Puntaje(Publicacion publicacion, Integer valor, String comentario, Usuario usuario){
this.setFecha(new Date());
this.setPublicacion(publicacion);... | true |
368ddc33c0864047e3edfbd33017d8b1986ec250 | Java | luwang951753/Spring | /spring01_IOC&&DI/src/test/java/com/feng/spring/IOCTest4.java | UTF-8 | 924 | 2.578125 | 3 | [] | no_license | package com.feng.spring;
import com.feng.spring2.Service.BookService;
import com.feng.spring2.Servlet.BookServlet;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class IOCTest4 {
private ApplicationCon... | true |
0194ea5b2d511f7146c88de553279367ca177c2c | Java | gibalo/fuenflix-api | /src/main/java/es/cesfuencarral/fuenflixapi/persistence/entity/Content.java | UTF-8 | 3,330 | 2.390625 | 2 | [] | no_license | package es.cesfuencarral.fuenflixapi.persistence.entity;
import javax.persistence.*;
import es.cesfuencarral.fuenflixapi.controller.request.ContentRequest;
import java.io.Serializable;
import java.util.Set;
@Entity
@Table(name = "content")
@NamedQueries({
@NamedQuery(name = "Content.findByFilter", que... | true |
437bb623756013f0e899de8b3451b90585c31bf1 | Java | lxqxsyu/SheJiMoShi | /src/观察者模式/ObserverClass1.java | GB18030 | 238 | 3.125 | 3 | [] | no_license | package ۲ģʽ;
public class ObserverClass1 implements SuperObsever{
@Override
public void update(Object data) {
String str = (String) data;
System.out.println("ǹ۲1֪ͨҵ: " + str);
}
}
| true |
255b7663e3c232e41997670aadd37287f636f0d1 | Java | JungDayoon/DBproject_team6 | /resourcesharing/src/main/java/com/dbteam6/resourcesharing/controller/MainController.java | UTF-8 | 723 | 1.875 | 2 | [] | no_license | package com.dbteam6.resourcesharing.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class MainController {
@GetMapping("/")
public String Index() {
... | true |
b8a0f78f6d2c27f499d7e9a11ca664991ea4c9b8 | Java | AndrewBaliushin/Learning-Java | /src/eckel/interfaces/FactoryMethodExercise.java | UTF-8 | 1,472 | 3.921875 | 4 | [] | no_license | /*
* /interfaces/exercise 13
* from Eckel.
*
* Create a framework using Factory Methods that performs both coin tossing and dice tossing.
*
* 19.10.14
*
* By Andrew Baliushin
*/
import java.util.Random;
interface Tosser {
String getTossResult();
}
interface TosserFactory {
Tosser getTosser();
}
cl... | true |
aed3e859e8a4ab45e1be317e69c182af45a0a7a7 | Java | avertocle/mediacenter | /src/main/java/mc/gui/library/TableCollection.java | UTF-8 | 1,511 | 2.4375 | 2 | [] | no_license | package mc.gui.library;
import java.awt.Component;
import java.awt.Dimension;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;
import javax.swing.table.TableCellRenderer;
import mc.gui.ColorConsts;
public class TableCollection extends JTable {
private static final long serialVersionUID = 1L;
Ta... | true |
6f667b31fbff9ea6cdfbd493ffb347b4dbbde147 | Java | fajarnugraha37/aem-demo-machine | /java/core/src/main/java/com/adobe/aem/demomachine/gui/AemDemoConstants.java | UTF-8 | 4,320 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* Copyright 2016 Adobe Systems Incorporated.
*
* 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
*
* ... | true |