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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
21bb319e5dcbf4fccf01cfc7421beee6d98ad9dd | Java | surf7978/After210218 | /review/src/jdbc/JdbcUtil.java | UTF-8 | 1,098 | 2.875 | 3 | [] | no_license | package jdbc;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class JdbcUtil {
static String dbdriver = "oracle.jdbc.OracleDriver";
static String dburl = "jdbc:oracle:thin:@localhost:1521:xe";
static String user = "hr";
static ... | true |
bde32cce7e6aadeb5e4c687eb4e92a68763febcf | Java | FaridAsgarov/Medieval_Army_simulator | /src/com/company/weapons/ranged/Bow.java | UTF-8 | 946 | 2.859375 | 3 | [] | no_license | package com.company.weapons.ranged;
import com.company.base.DistanceWeapon;
import java.util.Random;
public class Bow extends DistanceWeapon {
public Bow() {
super(1,
2.26,
156,
3,
30,
5
);
}
@Overr... | true |
787fe6a4145cc7e9c1529d7739abf29878a5a97e | Java | v4545kim/PocketGym | /src/main/java/dao/MailDao.java | UTF-8 | 1,828 | 2.203125 | 2 | [] | no_license | package dao;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.RowBounds;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import vo.Mail;
@Component("ml... | true |
251f432ca41d4d458157e73ea04a3cdcf616cd49 | Java | shadow12/IntelliJ-JUnit-Test-Plugin | /JUnitTestPlugin/src/org/intellij/plugins/junit/actions/EditorHelper.java | UTF-8 | 2,942 | 1.8125 | 2 | [] | no_license | /*
* $Header: /cvsroot/junitideas/JUnitTestPlugin/src/org/intellij/plugins/junit/actions/EditorHelper.java,v 1.3 2005/08/20 09:54:26 shadow12 Exp $
* $Revision: 1.3 $
* $Date: 2005/08/20 09:54:26 $
*
* Copyright (c) 1999-2004 Jacques Morel. All rights reserved.
* Released under the Apache Software License, Versi... | true |
190e9125a1859831eee628e52f89c0b419bef4f0 | Java | jatin96/Fluid-Mechanics-Fluid-Power-App | /FMFP4/app/src/main/java/com/example/jatin/fmfp/ContactActivity.java | UTF-8 | 1,153 | 1.976563 | 2 | [] | no_license | package com.example.jatin.fmfp;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Paint;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;
public class ContactActivity extends Activity {
... | true |
25469e966b252bbe83e7fb03f781b037d708593c | Java | Matevitsky/timetracking | /src/main/java/com/matevitsky/controller/command/AdminRemoveActivityCommand.java | UTF-8 | 2,472 | 2.125 | 2 | [] | no_license | package com.matevitsky.controller.command;
import com.matevitsky.entity.Activity;
import com.matevitsky.entity.User;
import com.matevitsky.entity.dto.FinishedActivity;
import com.matevitsky.service.ActivityService;
import com.matevitsky.service.UserService;
import org.apache.log4j.Logger;
import javax.servlet.http.Ht... | true |
bfd19b4f21bdbeda504da4049a78ace0681db41c | Java | prestodb/presto | /presto-function-namespace-managers/src/main/java/com/facebook/presto/functionNamespace/testing/InMemoryFunctionNamespaceManager.java | UTF-8 | 6,847 | 1.546875 | 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
* distribut... | true |
faabf22d9ec6a6415fe36badc3f009dbef86e651 | Java | jargaw12/PZ_projekt | /src/main/java/weatherModel/WeatherModel.java | UTF-8 | 807 | 2.4375 | 2 | [] | no_license | package weatherModel;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonProperty;
public class WeatherModel implements Serializable {
private static final long serialVersionUID = 1L;
@JsonProperty
private Location location;
@JsonProperty
private Current current;
@Js... | true |
e862308004ccd4a7ad833f7738d8f100ce9a4bba | Java | SurfGitHub/BLIZZARD-Replication-Package-ESEC-FSE2018 | /Corpus/eclipse.pde.ui/5333.java | UTF-8 | 2,077 | 2.09375 | 2 | [
"MIT"
] | permissive | /*******************************************************************************
* Copyright (c) 2000, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | true |
59b12068cf4852bef75c8380c318fd19015569dc | Java | hejiantao2020/manager | /src/main/java/com/athjt/mapper/CourseMapper.java | UTF-8 | 448 | 1.570313 | 2 | [] | no_license | /* https://github.com/orange1438 */
package com.athjt.mapper;
import com.athjt.entity.Course;
import com.athjt.util.MyMapper;
import tk.mybatis.mapper.common.BaseMapper;
/**
* 本文件由 https://github.com/orange1438/mybatis-generator-core-chinese-annotation1.3.5-chinese-annotation 自动生成
* @author orange1438 code generat... | true |
d9376ea192f3170b455a1ed9e9ed06cd93637902 | Java | spk1999/task | /src/main/java/com/sujan/task/service/serviceImpl/UserServiceImpl.java | UTF-8 | 1,342 | 2.296875 | 2 | [] | no_license | package com.sujan.task.service.serviceImpl;
import com.sujan.task.dto.UserDto;
import com.sujan.task.model.User;
import com.sujan.task.repo.UserRepo;
import com.sujan.task.service.UserService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfr... | true |
43bfa309059e07f18a462441819e738b88863a17 | Java | fillzero/test-ha | /src/binpack/Host.java | UTF-8 | 569 | 3.03125 | 3 | [] | no_license | package binpack;
import java.util.ArrayList;
import java.util.List;
public class Host {
public String name;
int size;
int left_size;
List<VM> vmList;
List<VM> vmPlaceList;
public Host(String name, int size) {
this.name = name;
this.size = size;
left_size = size;
vmList = new ArrayList<VM>();
vmPlaceLi... | true |
9e9de00e79213d3b77971921ff85a497e99ba7e4 | Java | xiesuichao/WSComponent | /image/src/main/java/com/wanshare/wscomponent/image/ImageOptions.java | UTF-8 | 1,610 | 2.125 | 2 | [] | no_license | package com.wanshare.wscomponent.image;
import android.graphics.drawable.Drawable;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.request.RequestOptions;
/**
* Created by xiesuichao on 2018/8/7.
*/
public class ImageOptions implements LoadOption {
private RequestOptions op... | true |
d2ab3adc611b13fb3741262b8b2129df254a2b1f | Java | Reton2/Jsh | /src/main/java/uk/ac/ucl/jsh/model/Model.java | UTF-8 | 1,511 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | package uk.ac.ucl.jsh.model;
import java.io.*;
import java.util.ArrayList;
public class Model {
private String currentDirectory;
private OutputStream stdOutput;
public Model()
{
currentDirectory = System.getProperty("user.dir");
}
private void runCommands(ArrayList<String> rawComman... | true |
b39186a69b3da787ce0047b809a83da1d6e5336f | Java | kmsoileau/Saffron | /src/naturalnumbers/lists/NaturalNumberListDeranger.java | UTF-8 | 2,024 | 3.046875 | 3 | [] | no_license | package naturalnumbers.lists;
import bits.Conjunction;
import bits.INaturalNumber;
import bits.IProblem;
import bits.Problem;
import naturalnumbers.NaturalNumberUnequalizer;
import naturalnumbers.lists.exceptions.NaturalNumberListDerangerException;
/*
* NaturalNumberListDeranger.java 1.0 09/05/21
*
* C... | true |
931c0cdc20b2604de216b29c9197bcd2f6fb64f2 | Java | yuricavalcantedev/SIGHub-backend | /src/main/java/br/com/yuri/cavalcante/tcc/domain/Catalog.java | UTF-8 | 4,280 | 2.21875 | 2 | [] | no_license | package br.com.yuri.cavalcante.tcc.domain;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.... | true |
273b9ee569adc997434d995302a2f39c16e2c887 | Java | xyMDMStudioxy/Mill-projectwork | /src/de/projectwork/game/Player.java | ISO-8859-1 | 1,259 | 3.75 | 4 | [] | no_license | package de.projectwork.game;
import javax.swing.JLabel;
/**
* Reprsentiert einen Spieler.
*/
public class Player {
private int counterGamestone;
private boolean white;
private final Gamestone gamestone[] = new Gamestone[9];
public Player(boolean white) {
this.white = white;
this.counterGamestone = 9;
... | true |
b1a1da2fed0cdef457c36a99da533974317f50ca | Java | dhbw-horb/forgetIT | /forgetIT/src/forgetit/gui/views/ViewDate.java | UTF-8 | 2,903 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2011 DHBW Stuttgart Campus Horb
*
* 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 |
ade83a0be7b7a0455ab7624dc9c3ee49c707d38d | Java | cryption-network/alpha-wallet-android | /app/src/main/java/com/alphawallet/app/ui/HelpActivity.java | UTF-8 | 6,950 | 1.859375 | 2 | [
"LicenseRef-scancode-proprietary-license",
"MIT",
"GPL-3.0-only"
] | permissive | package com.alphawallet.app.ui;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.annotation.RawRes;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.util.Log;
im... | true |
cb1549be82507d55b2596f29ebaf5e409e155d8c | Java | EvelynJone/component | /distributed-lock/src/main/java/com/evelyn/base/dlock/exception/CannotAcquireLockException.java | UTF-8 | 321 | 1.984375 | 2 | [] | no_license | package com.evelyn.base.dlock.exception;
/**
* 功能说明:TODO
*
* @auther by zhaoxl
* @return <br/>
* 修改历史:<br/>
* 1.[2018年06月21日上午11:37]
*/
public class CannotAcquireLockException extends RuntimeException {
public CannotAcquireLockException(Exception e) {
super(e);
}
}
| true |
6caa4cf92f6c76fd84a62014a4e9298518155385 | Java | Tatsinnit/P | /Src/PRuntimes/PSymbolicRuntime/src/main/java/psymbolic/runtime/machine/eventhandlers/DeferEventHandler.java | UTF-8 | 688 | 2.21875 | 2 | [
"MIT"
] | permissive | package psymbolic.runtime.machine.eventhandlers;
import psymbolic.runtime.Event;
import psymbolic.runtime.machine.Machine;
import psymbolic.runtime.Message;
import psymbolic.valuesummary.Guard;
import psymbolic.valuesummary.PrimitiveVS;
import psymbolic.valuesummary.UnionVS;
public class DeferEventHandler extends Eve... | true |
f721d13c0bd9e7e540731d4d023596ad430171a4 | Java | geojoseph90/simple_atm | /simple_atm/src/satm/exception/InvalidActionException.java | UTF-8 | 217 | 2.453125 | 2 | [] | no_license | package satm.exception;
public class InvalidActionException extends Exception{
public InvalidActionException(){
super("System encountered an error. Activity not permitted at this time");
}
}
| true |
cf198e0683416d3fc33fa5d85cfb5103cfe7ac35 | Java | wangchengMainData/FactoryKit | /CoreService/app/src/main/java/com/gosuncn/zfyfw/apn/GSResult.java | UTF-8 | 208 | 1.515625 | 2 | [] | no_license | package com.gosuncn.zfyfw.apn;
/**
* @author: Administrator
* @date: 2020/7/24
*/
public class GSResult<T> {
public GSResult( int type,String t){
}
public GSResult( T setdata ){
}
}
| true |
a9b37d9141e27eed4a2fb91f53ae529ea8687346 | Java | ymadrazovalladares/java | /Arbol/src/Contenedor/Nodo.java | UTF-8 | 1,678 | 2.96875 | 3 | [] | no_license | package Contenedor;
public class Nodo {
private int valor;
private Nodo siguiente;
private Nodo anterior;
private Nodo padre;
private Nodo hojaIzquierda;
private Nodo hojaDerecha;
public Nodo getSiguiente()
{
return siguiente;
}
public void setSiguiente(Nodo siguien... | true |
4a2a433349efa29b700e5d63cd918dd32e23eab9 | Java | cengizgoren/facebook_apk_crack | /utils/com/facebook/bookmark/FetchBookmarksResult$1.java | UTF-8 | 604 | 1.71875 | 2 | [] | no_license | package com.facebook.bookmark;
import android.os.Parcel;
import android.os.Parcelable.Creator;
final class FetchBookmarksResult$1
implements Parcelable.Creator<FetchBookmarksResult>
{
public FetchBookmarksResult a(Parcel paramParcel)
{
return new FetchBookmarksResult(paramParcel, null);
}
public FetchB... | true |
75d94c93cbab4399e57672e2e4d5bbf7301e4b69 | Java | lararesuela1/SistemasInteligentes | /SistemasInteligentes/src/Problema/Nodo.java | UTF-8 | 946 | 3.015625 | 3 | [] | no_license | package Problema;
public class Nodo implements Comparable<Nodo> {
Estado e;
int costo;
String accion;
int valor;
public Nodo(Estado e, int costo, String accion, int valor) {
super();
this.e = e;
this.costo = costo;
this.accion = accion;
this.valor = valor;
}
public Estado getE() {
... | true |
fbaaf14ce3beab3ef0ac50f1a42dec7209a983ce | Java | renatofenrir/rancher-jenkins-plugin | /src/main/java/br/com/basis/jenkins/rancher/pipeline/build/EnvironmentFilterBuild.java | UTF-8 | 542 | 2.078125 | 2 | [] | no_license | package br.com.basis.jenkins.rancher.pipeline.build;
import io.rancher.base.Filters;
public class EnvironmentFilterBuild implements FilterBuild{
private Filters filters;
public EnvironmentFilterBuild(){
filters = new Filters();
}
public EnvironmentFilterBuild withName(String name){
... | true |
3ad20a2232ee852e3c49c936b51013548e5c9c20 | Java | rekavihari/ierhf | /java/ConsolePanel.java | UTF-8 | 964 | 2.796875 | 3 | [] | no_license | import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.UIManager;
import javax.swing.border.TitledBorder;
public class ConsolePanel extends JPanel {
private JTextArea console;
public ... | true |
48a80e6ea94d39f4c079d2c4c61faebd6a904ea6 | Java | javaito/HolandaCatalinaFw | /src/main/java/org/hcjf/layers/query/model/QueryReturnParameter.java | UTF-8 | 216 | 1.703125 | 2 | [
"Apache-2.0"
] | permissive | package org.hcjf.layers.query.model;
public interface QueryReturnParameter extends QueryComponent {
/**
* Return the field alias, can be null.
* @return Field alias.
*/
String getAlias();
}
| true |
f86890277223a6ae22e5e98d4bc7317c57eab530 | Java | wolny/Fitness-Deterioration | /src/main/java/ki/edu/agh/evolutionary/reproduction/ReproductionAlgorithm.java | UTF-8 | 188 | 1.851563 | 2 | [
"MIT"
] | permissive | package ki.edu.agh.evolutionary.reproduction;
import ki.edu.agh.population.Population;
public interface ReproductionAlgorithm {
Population reproducePopulation(Population population);
}
| true |
1106815f50c0a8adb88502a00cd2581bbeb0b31c | Java | RuslanYanyuk/chat | /src/main/java/com/chat/services/UserService.java | UTF-8 | 4,402 | 2.453125 | 2 | [] | no_license | package com.chat.services;
import com.chat.exceptions.AccessDeniedException;
import com.chat.models.ChatRoom;
import com.chat.models.User;
import com.chat.repositories.ChatRoomRepository;
import com.chat.repositories.UserRepository;
import com.chat.utils.KafkaAdminUtils;
import org.hibernate.Hibernate;
import org.spri... | true |
f648376167e9ce93e60e5e82f85f9f79c15b6180 | Java | rla03/raac-bootcamp-code | /Assignment1/src/collections/List/_4CreateArrayListFromCollections.java | UTF-8 | 1,242 | 3.65625 | 4 | [] | no_license | package collections.List;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class _4CreateArrayListFromCollections {
public static void main(String[] args) {
List<Integer> firstFivePrimeNumbers = new ArrayList<>();
firstFivePrimeNumbers.add(2... | true |
89ef55ca400e0aee03e494dc7afc3d087b4b5b09 | Java | sergey-kulak/acme-system | /pp-service/src/main/java/com/acme/ppsrv/publicpoint/exception/PlanTableLimitExceededException.java | UTF-8 | 417 | 2.171875 | 2 | [] | no_license | package com.acme.ppsrv.publicpoint.exception;
import reactor.core.publisher.Mono;
public class PlanTableLimitExceededException extends RuntimeException {
private static final String MESSAGE = "Plan table limit exceeded";
public PlanTableLimitExceededException() {
super(MESSAGE);
}
public sta... | true |
3654bee9d3cb7b0bd638aff70f3df2e42119c406 | Java | RadwaHamdi/ChatProjectJava | /javaprojectserverside/src/common/ServicesInterface.java | UTF-8 | 1,928 | 1.953125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package common;
import java.io.File;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.Vector;
/**
*
* @author Alaa
*/
public interface ServicesInterface extends... | true |
1b259822cb89d31638c32033a6ca074d2ed2e93a | Java | zw231212/log-analytics | /api/src/main/java/cn/org/escience/log/api/model/ErrorsKey.java | UTF-8 | 808 | 2.28125 | 2 | [
"LicenseRef-scancode-mulanpsl-1.0-en"
] | permissive | /*
*
* ErrorsKey.java
* Copyright(C) 2017-2020 http://www.escience.org.cn
* @date 2018-10-02
*/
package cn.org.escience.log.api.model;
public class ErrorsKey {
/**
*
*/
private String yearMonth;
/**
*
*/
private String code;
/**
*
* @return year_month
*/
... | true |
dbe3e34b1ff1009186cdaeaab81cfdeb41f1eb10 | Java | hardel99/CodingChallenges | /CurvesTable.java | UTF-8 | 2,667 | 3.15625 | 3 | [] | no_license | float angle = 0;
float boxWidth = 100;
float diameter = boxWidth - 10;
Curve[][] curves;
void setup() {
size(1200, 700);
curves = new Curve[(int)(height / boxWidth) - 1][(int)(width / boxWidth) - 1];
for(int j = 0; j < (height / boxWidth) - 1; j++) {
for(int i = 0; i < (width / boxWidth) - 1; i++) {
... | true |
d208b670d9c6542043a135b129a9ae02ff3e0b89 | Java | cengizgoren/facebook_apk_crack | /app/com/facebook/orca/notify/FailedToSendMessageNotification.java | UTF-8 | 460 | 1.828125 | 2 | [] | no_license | package com.facebook.orca.notify;
public class FailedToSendMessageNotification
{
private final String a;
public FailedToSendMessageNotification(String paramString)
{
this.a = paramString;
}
public String a()
{
return this.a;
}
}
/* Location: /data1/software/jd-gui/com.facebook.katana... | true |
f44bd1436fe18d10a5a34aa59e4df6baddd1f319 | Java | Rafasystec/MVN | /MVN-Core-System/src/main/java/br/com/barcadero/core/db/util/HibernateHelper.java | UTF-8 | 791 | 2.4375 | 2 | [] | no_license | package br.com.barcadero.core.db.util;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
public class HibernateHelper {
private static final SessionFactory sessionFac = builcSessionFactory();
private static SessionFactory builcSessionFactory() {
try {
... | true |
ffa653d05e4de5d74856d06b38a0b5670bb560b4 | Java | lzhongzhang/CS6378 | /Project1/src/main/java/conn/Conn.java | UTF-8 | 3,642 | 3.171875 | 3 | [
"MIT"
] | permissive | package conn;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentLinkedQueue;
public class Conn {
private ConcurrentHashMap<Integ... | true |
35f5beda56f386acc17fc0d854da7afc3c90c2aa | Java | matt-l-morgan/music_editing_project- | /src/cs3500/music/view/GuiViewFrame.java | UTF-8 | 5,461 | 3.0625 | 3 | [] | no_license | package cs3500.music.view;
import cs3500.music.model.IMusicEditorModel;
import cs3500.music.model.MusicEditorModel;
import cs3500.music.model.Pitch;
import java.awt.*;
import java.awt.event.KeyListener;
import java.awt.event.MouseListener; // Possibly of interest for handling mouse events
import javax.swing.*;
/**
... | true |
4c16e6f65ddfb8e479aa936a57d594ba7d94297c | Java | MaeSosto/TalApp | /Old/TalApp65/app/src/main/java/com/example/talapp/Terapie/TerapieListAdapter.java | UTF-8 | 6,867 | 1.90625 | 2 | [] | no_license | package com.example.talapp.Terapie;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.cardview.widget.CardView;
import androidx.navig... | true |
a2b27f7278ab3cac21c6969705b3ea2078182846 | Java | HydraOne/pilipili | /pilipili-fileProcess/src/main/java/cn/geny/pilipili/service/FileTmpService.java | UTF-8 | 1,069 | 1.867188 | 2 | [] | no_license | package cn.geny.pilipili.service;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.s... | true |
c78ff0098faf79181d2b34ce32ef9f31f9791dc4 | Java | jiemakel/seco-lexicalanalysis | /core/src/test/java/fi/seco/lexical/combined/TestCombinedLexicalAnalysisService.java | UTF-8 | 6,701 | 2.5625 | 3 | [
"MIT"
] | permissive | package fi.seco.lexical.combined;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import java.util.Optional;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static org.junit.Assert.*;
import org.junit.Test;
import fi.seco.lexical.hfst.HFSTLexicalAnalysisServic... | true |
ae82152ce82c42663ca92765575eec99f88fdb96 | Java | jshubhi/WeHelp | /app/src/main/java/com/example/wehelp/signuppage.java | UTF-8 | 5,834 | 2.15625 | 2 | [] | no_license | package com.example.wehelp;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.text.TextUtils;
import android.text.method.HideReturnsTransformationMethod;
import android.text.method.PasswordTransformationMethod;... | true |
03a318a8783b4483cd537f5ac2be74d721066592 | Java | peidong-hu/spring-boot2-aws | /src/main/java/org/its/rest/controller/AwsFleetController.java | UTF-8 | 4,991 | 2.125 | 2 | [] | no_license | package org.its.rest.controller;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors;
import javax.validation.Valid;
import org.its.model.FleetParam;
import org.its.rest.control... | true |
71d07f9f74782ad98ba20e267a801caae6e31c95 | Java | gregturn/spring-metrics | /src/main/java/org/springframework/metrics/RabbitMetricsPublisher.java | UTF-8 | 503 | 2.1875 | 2 | [] | no_license | package org.springframework.metrics;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
public class RabbitMetricsPublisher implements MetricsPublisher {
private RabbitTemplate rabbitTemplate;
public RabbitMetricsPublisher(RabbitTemplate rabbitTemplate) {
this.rabbitTemplate = rabbitTemplat... | true |
7a2910d2f94699091ac60c6a83968ae0f0ff0721 | Java | godshang/leetcode | /algorithms/java/src/main/java/q29_divide_two_integers/Solution.java | UTF-8 | 1,088 | 3.515625 | 4 | [] | no_license | package q29_divide_two_integers;
public class Solution {
public int divide(int dividend, int divisor) {
boolean negative = (dividend < 0 && divisor > 0) || (dividend > 0 && divisor < 0);
long result = divide(Math.abs((long) dividend), Math.abs((long) divisor));
if (result > Inte... | true |
aa201929d32d3e057a0250a3f59f3e0f2234e68e | Java | mukesh249/GrocitoSeller | /app/src/main/java/in/wingstud/grocitoseller/adapter/SearchItemAdapter.java | UTF-8 | 2,528 | 2 | 2 | [] | no_license | package in.wingstud.grocitoseller.adapter;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.databinding.DataBindingUtil;
import androi... | true |
b321c0ddbc27929161c837fc87787149b9593c7b | Java | ravishberi/Java-Programs | /prepost.java | UTF-8 | 393 | 2.921875 | 3 | [] | no_license | class prepost
{
// program to see the o/P of pre and post operator
public static void main (String args[])
{
int a=2;
int b=a++ + a++;
System.out.println("a="+a);
System.out.println("b="+b);
a=2;
b=++a + ++a;
System.out.println("a="+a);
System.out.println("b="+b);
a=2;
b=a++ + ++a;... | true |
fef7a47e9bafdff4a0393a47b7c7e8d4d5ac032d | Java | itsoulos/phoneapptest | /app/src/main/java/ai/datawise/snapserve/AdminService.java | UTF-8 | 20,964 | 1.554688 | 2 | [] | no_license | package ai.datawise.snapserve;
import android.app.AlertDialog;
import android.app.IntentService;
import android.content.AbstractThreadedSyncAdapter;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.Context;
import android.graphics.Color;
import android.graphics.PixelFormat;... | true |
c081bc6ea7c2b4f65c77bd7b76e027760b7871f7 | Java | 2017030989/2017030989 | /2017030989 BombaMVC/src/Controlador/MVCBomba.java | UTF-8 | 495 | 2.21875 | 2 | [] | no_license | package Controlador;
import Modelo.Bomba;
import Modelo.Gasolina;
import Vista.vistaBomba;
import javax.swing.JFrame;
/**
*
* @author 2017030989
*/
public class MVCBomba
{
public static void main(String[] args)
{
Bomba bomba = new Bomba();
Gasolina gasolina = new Gasolina();
... | true |
9b21bd8b36ebfe225abfed43fe4db840135f8c00 | Java | uddinmazhar465/eManager-MongoDB | /src/main/java/com/mzr/qrcode/QRCodeUtils.java | UTF-8 | 994 | 2.453125 | 2 | [] | no_license | package com.mzr.qrcode;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Base64;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.WriterException;
import com.google.zxing.client.j2se.MatrixToImageWriter;
import com.google.zxing.common.BitMatrix;
import com.google.zxing.... | true |
8985304f1b051f0949df621bff3d473374458882 | Java | Bitcoin-com/carouselview-thin | /carouselview/src/main/java/com/jama/carouselview/CarouselViewAdapter.java | UTF-8 | 2,036 | 2.46875 | 2 | [
"MIT"
] | permissive | package com.jama.carouselview;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
public class CarouselViewAdapter extends RecyclerView.Adapter<CarouselViewAdapter.CarouselAdapterViewHolder... | true |
21718150fcdc1da158270d76eb84ec9d79bb061e | Java | CurtisNewbie/Jackson_Tut | /src/main/java/treemodel/TreeModelExample.java | UTF-8 | 2,642 | 3.671875 | 4 | [] | no_license | package treemodel;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.util.Iterator;
/**
* Using Tree Model - Tree Model prepares a in-memory tree
* representation of the JSON document. ObjectMapper build
* tree of JsonNode n... | true |
daab7a42b173e86de3237c1abb14f984c219bb74 | Java | forcedotcom/SalesforceMobileSDK-Android | /native/NativeSampleApps/MobileSyncExplorer/src/com/salesforce/samples/mobilesyncexplorer/ui/DetailActivity.java | UTF-8 | 11,120 | 1.59375 | 2 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2014-present, salesforce.com, inc.
* All rights reserved.
* Redistribution and use of this software in source and binary forms, with or
* without modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright noti... | true |
de21d0a14d2fad99f5e169341ed98f5e4f62996a | Java | belgiancuber/Niviel | /app/src/main/java/com/adrastel/niviel/models/writeable/BufferHistory.java | UTF-8 | 787 | 2.140625 | 2 | [] | no_license | package com.adrastel.niviel.models.writeable;
import com.adrastel.niviel.models.readable.history.History;
public class BufferHistory extends History {
public BufferHistory() {
}
public void setEvent(String event) {
this.event = event;
}
public void setCompetition(String competition) {
... | true |
bcba599f71d746dce01895075388a1b5ebcd641c | Java | WoN-Hackathon-2019/won-parking | /src/main/java/won/bot/skeleton/action/MatcherExtensionAtomCreatedAction.java | UTF-8 | 8,851 | 1.726563 | 2 | [
"Apache-2.0"
] | permissive | package won.bot.skeleton.action;
import org.apache.jena.datatypes.xsd.XSDDateTime;
import org.apache.jena.rdf.model.*;
import org.apache.jena.vocabulary.DC;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import won.bot.framework.eventbot.EventListenerContext;
import won.bot.framework.eventbot.action.BaseEven... | true |
bb3560a2674732e56da48e5f4c78266aa0a31dfe | Java | dhis2/dhis2-core | /dhis-2/dhis-test-web-api/src/test/java/org/hisp/dhis/webapi/controller/GistFieldsControllerTest.java | UTF-8 | 8,911 | 1.710938 | 2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | /*
* Copyright (c) 2004-2022, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of cond... | true |
e06417c5ae5b2cd63abb6f94233679ced98e2c9d | Java | chicobentojr/estrutura-de-dados-nao-lineares | /estruturas/src/Labirinto/Main.java | UTF-8 | 7,903 | 3 | 3 | [
"MIT"
] | permissive | package Labirinto;
import Grafo.Grafo;
import Grafo.Vertice;
import java.util.ArrayList;
import java.util.List;
public class Main {
private static final int INFINITY = 9999;
private static String[][] getLabirinto(String data) throws InvalidMaze {
String rows[] = data.split("\n");
i... | true |
e594f1e9ed71afd98b0432ff2bcff717ec34e6b7 | Java | JackLinD/Talk2Stranger | /服务端/JackLinServer/JackLinServer/src/com/jacklin/location/GetLocationServlet.java | UTF-8 | 2,520 | 2.40625 | 2 | [] | no_license | package com.jacklin.location;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSON... | true |
a0b451e7bf0535b715c84f6ad56e1864d43e2c8d | Java | nafeu/oavp | /src/libraries/beads/src/beads_main/net/beadsproject/beads/ugens/ZeroCross.java | UTF-8 | 1,693 | 2.90625 | 3 | [
"MIT"
] | permissive | /*
* This file is part of Beads. See http://www.beadsproject.net for all information.
*/
package net.beadsproject.beads.ugens;
import net.beadsproject.beads.core.AudioContext;
import net.beadsproject.beads.core.UGen;
/**
* Counts and outputs as a signal the number of zero crossings in its input
* signal... | true |
f96c0c70f8293a1099b1cf61b58bcddc9d9f3a6e | Java | Jay-Jiang/SpringBoot-demo | /spring-boot-web-hello/src/main/java/com/demo/springboot/controller/LoginController.java | UTF-8 | 1,934 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package com.demo.springboot.controller;
import com.demo.springboot.component.UserNotExistException;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
i... | true |
9b7c1cb696a55a798e3cd4041dc37647f9ed69d6 | Java | fpGHwd/Analyse | /AnalysisProtocal/src/common/ControlCode.java | UTF-8 | 993 | 2.15625 | 2 | [] | no_license | package common;
import java.io.Serializable;
/**
* @author Suzumiya
* @version Nov 20, 2018 10:37:29 AM
*
*/
public abstract class ControlCode implements Serializable {
private static final long serialVersionUID = 1L;
// STARTING CODE
private static final byte[] SOH = { 0x7e, 0x7e };
// STAR... | true |
93d90c39f2603aafd535761283cf4a7fb6c71830 | Java | jiangtao7913/hy-wf | /wf-admin/src/main/java/com/hy/wf/admin/modules/controller/InvitationDetailController.java | UTF-8 | 2,637 | 1.984375 | 2 | [] | no_license | package com.hy.wf.admin.modules.controller;
import com.hy.wf.admin.common.annotation.SysLog;
import com.hy.wf.admin.modules.service.InvitationDetailService;
import com.hy.wf.admin.modules.sys.controller.AbstractController;
import com.hy.wf.common.util.PageUtils;
import com.hy.wf.common.util.R;
import com.hy.wf.common.... | true |
b728038492791b45b5d922fc5b808e6eb3f4a376 | Java | etang93/CS338 | /TripTracker/src/FlightMenu.java | UTF-8 | 208 | 1.859375 | 2 | [] | no_license | /*
* Eddie Tang
* et354@drexel.edu
* CS338:GUI, Assignment [2], Program [1]
*/
import javax.swing.JComponent;
public class FlightMenu extends Menu{
public FlightMenu(){
super();
}
}
| true |
2d927f5d57d3d3628e42551eb65e1543e4901807 | Java | yfyf510/T01_AV_SDKDEMO | /lytest/src/main/java/com/lingyi/autiovideo/test/activity/MeetingGroupMemberActivity.java | UTF-8 | 4,861 | 1.523438 | 2 | [
"Apache-2.0"
] | permissive | package com.lingyi.autiovideo.test.activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerV... | true |
c771571d8a94f1bdf39ae20a1f6140214112a683 | Java | JEvamberto/PadraoDAO | /DaoAgenda/src/connection/ConnectionFactory.java | UTF-8 | 1,998 | 2.96875 | 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 connection;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.Resu... | true |
64cd56e28aa345b4e13d9b7a3c442016e0a7526e | Java | abhinavdhamaniya/StockExchange | /src/main/java/com/abhinav/dhamaniya/StockExchange/entities/CompanyStockExchangeJoin.java | UTF-8 | 443 | 1.96875 | 2 | [] | no_license | package com.abhinav.dhamaniya.StockExchange.entities;
import lombok.AllArgsConstructor;
import javax.persistence.*;
@Entity
@Table(name = "COMPANY_STOCK_EXCHANGE_JOIN")
@AllArgsConstructor
public class CompanyStockExchangeJoin {
@Id
@GeneratedValue
@Column(name = "ID")
private int id;
@Column(n... | true |
2ab8e17933e0037b53b2d1b7bad48f46546a5ff9 | Java | id-jinxiaoming/gongchengpingtai | /fish-api/src/main/java/com/ff/ad/model/RotationChart.java | UTF-8 | 1,454 | 1.945313 | 2 | [] | no_license | package com.ff.ad.model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.ff.common.base.BaseModel;
@TableName("tb_rotation_chart")
public class ... | true |
ed749fcf8cfba5464b292735f10f1c0189edc010 | Java | gonzalorey/ITBA_pod2010-gorey | / pod2010-gorey/TPE-POD/src/main/java/ar/edu/itba/pod/legajo47126/simul/coordinator/NewNodeCoordinator.java | UTF-8 | 6,114 | 2.53125 | 3 | [] | no_license | package ar.edu.itba.pod.legajo47126.simul.coordinator;
import java.rmi.RemoteException;
import java.util.concurrent.ConcurrentLinkedQueue;
import org.apache.log4j.Logger;
import ar.edu.itba.pod.legajo47126.communication.message.MessageFactory;
import ar.edu.itba.pod.legajo47126.node.NodeManagement;
import ar.edu.itb... | true |
e70e05d43e7fb75455fd44a22021c9a64aa8f6d4 | Java | Flo890/oev | /src/main/java/oev/ioservices/threads/Engine.java | UTF-8 | 2,412 | 2.859375 | 3 | [] | no_license | package oev.ioservices.threads;
import oev.colorprocessing.*;
import oev.model.ColorFunction;
import java.awt.image.BufferedImage;
import java.awt.image.Raster;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.Function;
public class Engine {
private final int width;
private final in... | true |
7dec7426b4341e3954ada1d198df7e81fde3b0d0 | Java | 11Karl11/hello-reactive-web | /src/main/java/com/example/demo/utils/Util1.java | UTF-8 | 282 | 2.34375 | 2 | [] | no_license | package com.example.demo.utils;
/**
* @author karl xie
* Created on 2020-11-30 16:00
*/
public class Util1 {
public static void println(Object value) {
String name = Thread.currentThread().getName();
System.out.printf("[线程:%s]%s\n", name, value);
}
} | true |
3f29298a53a0b4f5d40e852a2a19438102ca1b2a | Java | 13549842799/Basic-Code | /src/main/java/com/cyz/basic/config/security/access/event/AbstractAuthorizationEvent.java | UTF-8 | 714 | 2.3125 | 2 | [] | no_license | package com.cyz.basic.config.security.access.event;
import org.springframework.context.ApplicationEvent;
/**
* Abstract superclass for all security interception related events.
*
* @author Ben Alex
*/
public abstract class AbstractAuthorizationEvent extends ApplicationEvent {
// ~ Constructors
// =============... | true |
03abc55aac8bcf431d9e07b8f34259f9700b3c85 | Java | besttandong/topsun-1 | /com.topsun.posclient.datamodel/src/com/topsun/posclient/datamodel/CashierModel.java | UTF-8 | 738 | 2.25 | 2 | [] | no_license | package com.topsun.posclient.datamodel;
import java.io.Serializable;
/**
* 结算方式
* @author Dong
*
*/
public class CashierModel implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private int id;//主键 Primary Key
private String typeName;//结算方式名称
pr... | true |
e7ea9dcfa77ee41d6f4df1a7653e318adcce8a70 | Java | jesslynowen7/LatihanMVC | /src/controller/Controller.java | UTF-8 | 1,034 | 2.796875 | 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 controller;
import java.util.ArrayList;
import model.*;
/**
*
* @author hanschristian
*/
public class Controller {
... | true |
31521af158b93747020d62bbe1b9700044d12f6a | Java | muyuxizi/cafe_internet | /src/main/java/com/csust/InternetCafe/common/service/AppointmentService.java | UTF-8 | 445 | 1.523438 | 2 | [] | no_license | package com.csust.InternetCafe.common.service;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.csust.InternetCafe.common.entity.Appointment;
import com.csust.InternetCafe.common.mapper.AppointmentMapper;
import org.springframework.stereotype.Service;
/**
* @Author: 小凯神
* @Date: 2019-02-27 10:13... | true |
7418f7d4d36baa11deec2b166bfdd35d0ec78e1b | Java | harsgit/files3 | /src/com/book/bean/Customer.java | UTF-8 | 1,040 | 2.28125 | 2 | [] | no_license | package com.book.bean;
public class Customer {
String customerId;
String customerName;
String phno;
String emailid;
String address;
public String getCustomerId() {
return customerId;
}
public void setCustomerId(String customerId) {
this.customerId = customerId;
}
public String getCustome... | true |
d115caedf201bca23aa301e393c6106779304040 | Java | j7arsen/PW | /app/src/main/java/com/j7arsen/pw/ui/transaction/detail/TransactionDetailFragment.java | UTF-8 | 4,446 | 1.804688 | 2 | [] | no_license | package com.j7arsen.pw.ui.transaction.detail;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.arellomobile.mvp.presenter.InjectPresenter;
import com.arellomobile.mvp.pr... | true |
3d9ff501874afdad567dae200984098122cd1395 | Java | aahlad2000/learnings | /src/august_22_2021/multi_threading/ThreadSample.java | UTF-8 | 764 | 3.75 | 4 | [] | no_license | package august_22_2021.multi_threading;
public class ThreadSample {
public static void main(String[] args) throws InterruptedException {
System.out.println("Main thread: " + Thread.currentThread().getName());
//
System.out.println("One");
Thread.sleep(2000);
System.out.pri... | true |
6591c685500b31f827b54e8b7cd718f77dfd8bd3 | Java | TasneemMohammad/RecyclerViewV228 | /app/src/main/java/com/example/recyclerviewv228/RecyclerViewAdapter.java | UTF-8 | 2,339 | 2.578125 | 3 | [] | no_license | package com.example.recyclerviewv228;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
public... | true |
225c65f3e59da82257ed858471bb03a9be38cb25 | Java | srbarton43/FlightgearPFD | /src/com/rodriguez/saul/flightgearpfd/PlaneA330.java | UTF-8 | 31,772 | 2.03125 | 2 | [] | no_license | package com.rodriguez.saul.flightgearpfd;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.DashPathEffect;
import android.graphics.Matrix;
import android.graphics.Paint;
import a... | true |
63ad5242f4123996ad441e8612dd32a15fe1788a | Java | Dajamante/Kattis-Java | /Old projects/ACM_game.java | UTF-8 | 1,655 | 3.203125 | 3 | [] | no_license | import java.util.HashMap;
public class Main {
public static void main(String[] args) throws java.io.IOException {
InputReader in = new InputReader();
String[] logStringArray;
HashMap<String, Integer> scores = new HashMap<>();
int solvedProblems = 0;
int finalScore = 0;
... | true |
544f7b660f3491cec2e1e1bb98b4346a85151e97 | Java | YU-Anthony/Frogger | /src/element/End.java | UTF-8 | 838 | 3.21875 | 3 | [] | no_license | package element;
import javafx.scene.image.Image;
/**
* This Class inherit from {@link Actor} to define all attributes and action of {@code End Point}.
*/
public class End extends Actor {
private boolean activated = false;
/**
* Act.
*
* @param now the now
*/
@Override
public void act(long now) {
}
... | true |
f3de14850ccc273206244d525096d56750c7823f | Java | cescoffier/fluid | /fluid/src/test/java/me/escoffier/fluid/constant/ConstantMessageExpressionTest.java | UTF-8 | 675 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package me.escoffier.fluid.constant;
import org.junit.Test;
import static me.escoffier.fluid.impl.DataExpressionFactories.requiredEventExpression;
import static org.assertj.core.api.Assertions.assertThat;
public class ConstantMessageExpressionTest {
@Test
public void shouldEvaluateNullConstantExpression() {... | true |
d2bab3fc730f7fa135e9c9a0368b517145b3582a | Java | hasandk/vapeCenter | /src/main/java/com/vapecenter/demo/models/ShipingMethod.java | UTF-8 | 1,070 | 2.828125 | 3 | [] | no_license | package com.vapecenter.demo.models;
public class ShipingMethod {
int shippingId;
String companyName;
double price;
public ShipingMethod() {
}
public ShipingMethod(int shippingId, String companyName, double price) {
this.shippingId = shippingId;
this.companyName = companyName;
... | true |
476bb503336ee82e5c4d2e424d2c95514d7fcbf3 | Java | victorchaan/OldMacDonald | /Chick.java | UTF-8 | 474 | 3.390625 | 3 | [] | no_license | class Chick implements Animal {
private String myType;
private String mySound;
private String mySoundAlt;
public Chick(String type, String sound, String soundAlt) {
myType = type;
if ((int)Math.random() * 2 > 0)
mySound = sound;
else
... | true |
fb379dae5e6cc1aa4346689fbc36f41dc034390b | Java | tamahouse/project3ds | /src/test/java/threedsON/PS_gateway_corel_p2_3_embarcadero1.java | UTF-8 | 2,397 | 1.539063 | 2 | [] | no_license | package threedsON;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import org.openqa.selenium.Keys;
import org.openqa.selenium.interactions.Actions;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import automation.project3ds.AnnotationPa... | true |
98ec544be38e0d659d61678e594623b3cbbb91ab | Java | Azerom/Snake | /src/fr/display/SMap.java | UTF-8 | 257 | 2.0625 | 2 | [] | no_license | package fr.display;
import java.awt.event.KeyEvent;
import java.util.ArrayList;
public interface SMap {
public ArrayList<GraphicalElement> getGraphicalElementList();
public int getWidth();
public int getHeight();
public void reactTo(KeyEvent e);
}
| true |
f1aadf55321f9d0ec2536e5bb62d3775292688f0 | Java | SkanderMansouriDev/insat-platform | /src/main/java/insat/company/platform/service/exceptions/JoinRequestNotPendingException.java | UTF-8 | 227 | 2.09375 | 2 | [] | no_license | package insat.company.platform.service.exceptions;
public class JoinRequestNotPendingException extends RuntimeException {
public JoinRequestNotPendingException() {
super("the join request is not pending");
}
}
| true |
04eb6e59aa09aeb79b66010716ad1d16f3af698b | Java | OrlovDiga/anonapp-api | /src/main/java/anonapp/api/controller/CheckTokenController.java | UTF-8 | 860 | 2.390625 | 2 | [
"MIT"
] | permissive | package anonapp.api.controller;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestContro... | true |
dc6160f194591e04e1c29239c59a4f9d85638dd5 | Java | paullewallencom/java-978-1-8471-9560-9 | /_src/Chapter06/glassfish/lab7/src/ejb30/session/BankServiceBean.java | UTF-8 | 3,314 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | package ejb30.session;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import ejb30.entity.Customer;
import ejb30.entity.Referee;
import ejb30.entity.Account;
import ejb30.entity.Address;
import javax.persistence.PersistenceContext;
import java.util.ArrayList;
import java.util.*;
@Stat... | true |
20ecb3d014d4dcb2ad8f7259e95865bb21ccc1ae | Java | tbille/sheraf | /app/src/main/java/com/m2dl/sheraf/sensors/LightSensor.java | UTF-8 | 964 | 2.53125 | 3 | [] | no_license | package com.m2dl.sheraf.sensors;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.util.FloatMath;
public class LightSensor implements SensorEventListener {
private SensorManager mSensorManager;
... | true |
a466005743f606208905df998effe7327b75caec | Java | Jekmetz/CustomJavaDatabase | /src/main/java/driver/DShow.java | UTF-8 | 1,495 | 2.84375 | 3 | [] | no_license | package driver;
import java.util.List;
import java.util.ArrayList;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import adt.Database;
import adt.Response;
import adt.Row;
import adt.Table;
public class DShow implements Driver{
//Initialize Variables
private static final Patt... | true |
216cee3575722b5a772632d27c0e7c3ef321e7bd | Java | matyshevsky/MobilePost | /src/main/java/com/example/model/mDelivery.java | UTF-8 | 5,505 | 2.171875 | 2 | [] | no_license | package com.example.model;
import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.util.Date;
/**
* Created by Karol on 24.12.2016.
*/
@Entity(name = "delivery")
@SequenceGenerator(initialValue = 1, name = ... | true |
a2ce36b681561f9ec4226c148a0fa677926e893f | Java | benfortuna/toolbag | /ui_toolbag/source/net/fortuna/toolbag/ui/table/TableView.java | UTF-8 | 2,223 | 2.4375 | 2 | [] | no_license | /*
* Created on 16/11/2004
*
* $Id$
*
* Copyright (c) 2004, Ben Fortuna
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* ... | true |
cb960bd6f4149183b4bb3d1f8898df0db5150295 | Java | dotCMS/plugin-seeds | /com.dotcms.actionlet/src/main/java/com/dotmarketing/osgi/actionlet/MyActionlet.java | UTF-8 | 1,064 | 2.078125 | 2 | [] | no_license | package com.dotmarketing.osgi.actionlet;
import com.dotmarketing.portlets.workflows.actionlet.WorkFlowActionlet;
import com.dotmarketing.portlets.workflows.model.WorkflowActionClassParameter;
import com.dotmarketing.portlets.workflows.model.WorkflowActionFailureException;
import com.dotmarketing.portlets.workflows.mod... | true |
598bba0d4edf47d92d01a0a91c4e74a922038bf3 | Java | zyx-sea/JavaEE | /Spring/Day_01/DI_01/src/main/java/inject/CarInfo.java | UTF-8 | 184 | 1.976563 | 2 | [] | no_license | package inject;
/**
* SPEL表达式注入<br>
* create:2016-12-23 15:02
*
* @author zhou
*/
public class CarInfo {
public String getName(){
return "宝马";
}
}
| true |
ac1a698e03fdc9114f420b22d098fbae0264e934 | Java | gunner14/old_rr_code | /java_workplace/renren_web_framework/lab/xoa/xoa-api/xiaonei-xoa-protocol.old/trunk/src/main/java/com/renren/xoa/Test.java | UTF-8 | 217 | 1.859375 | 2 | [] | no_license | package com.renren.xoa;
import java.net.URI;
public class Test {
public static void main(String[] args) throws Exception {
URI uri = new URI("a.com/haha?1=2");
System.out.println(uri.toString());
}
}
| true |
84c301a6f1d1762040379505e19c10f967cbff79 | Java | gaeun917/studyCafe_SAP | /studyCafe/src/main/java/com/studycafe/controller/HomeController.java | UTF-8 | 3,037 | 2.234375 | 2 | [] | no_license | package com.studycafe.controller;
import com.studycafe.model.dto.Board;
import com.studycafe.model.dto.BoardMember;
import com.studycafe.model.dto.Page;
import com.studycafe.model.service.BoardService;
import com.studycafe.model.service.MemberService;
import com.studycafe.model.service.PageService;
import org.springfr... | true |
f2de36bbff14d8f33c8a5d6821652f7b1fde6d6a | Java | danieltrinh/MPP | /MPP_Son/src/lesson8/labs/prob3/Solution.java | UTF-8 | 168 | 2.1875 | 2 | [] | no_license | package lesson8.labs.prob3;
public class Solution {
public static void main(String[] args) {
System.out.println(LambdaLibrary.BI_FUNC.apply(2.0, 3.0));
}
}
| true |