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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
618f6160448d39149008d4199457512fb8d9a6dd | Java | llpyyz/Java_Sedgewick_Wayne_I | /Ch1/ForLoopTests1.java | UTF-8 | 742 | 3.5625 | 4 | [] | no_license | public class ForLoopTests1{
public static void main(String[] args){
int i,j;
for(i = 0, j = 0; i < 10; ++i) j += i; //final value of j = 45
System.out.println("Final val of j = " + j + "\n\n");
for(i = 0, j = 1; i < 10; ++i) j +=j; //final value of j = 2^9 = 1024
System.out.println("Final val of j = " + j ... | true |
b66b8160de1e207b204231e7c20fda9c9695f70b | Java | Toshihiro2010/DiaryCar | /app/src/main/java/com/stecon/patipan_on/diarycar/TripStartActivity.java | UTF-8 | 19,790 | 1.671875 | 2 | [] | no_license | package com.stecon.patipan_on.diarycar;
import android.app.TimePickerDialog;
import android.content.ContentValues;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import an... | true |
7d1ee56b35a9760d83481cdf2c9fab1d4221b8c4 | Java | naz22/Music-Metadata-Extractor | /JsonToolkit/src/test/java/ku/piii/marshalling/JacksonJSONMarshallerComponentTest.java | UTF-8 | 1,052 | 2.390625 | 2 | [] | no_license | package ku.piii.marshalling;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Ignore;
import org.junit.Test;
public class JacksonJSONMarshallerComponentTest {
@Test
public void canMarshal() {
final TestItem testItem ... | true |
4d51032422aff92ee934b2553fc9125aec3e9030 | Java | FabricioYambay/ejercicioBanco | /ejercicioBanco/src/ejerciciobanco/rnegocio/implementacion/CuentaAhorroImpl.java | UTF-8 | 4,634 | 2.5 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ejerciciobanco.rnegocio.implementacion;
import ejerciciobanco.accesodatos.Conexion;
import ejerciciobanco.accesodatos.... | true |
6d880f21c009304c83f77f33112576c1aafec4a7 | Java | jenkinsci/vmanager-plugin | /src/main/java/org/jenkinsci/plugins/vmanager/VMGRBuildArchiver.java | UTF-8 | 14,373 | 1.632813 | 2 | [
"MIT"
] | permissive | /*
* The MIT License
*
* Copyright 2017 Cadence.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify,... | true |
f18703206f96a92bd724859cd2f64f625da296c0 | Java | superwingcool/ddd-learning | /src/main/java/parkinglot/ParkingLotBoy.java | UTF-8 | 1,538 | 3 | 3 | [] | no_license | package parkinglot;
import parkinglot.exception.ErrorParkingLotException;
import parkinglot.exception.ParkingLotFullException;
import java.util.TreeSet;
public class ParkingLotBoy {
private static TreeSet<ParkingLot> parkingLots = new TreeSet<>();
static {
ParkingLot parkingLot1 = new ParkingLot(1,... | true |
39a7459b1f0332dada13c3e7b4415d74c3fb0cc4 | Java | hejiawang/soLove-service-parent | /soLove-service-imp/src/main/java/com/wang/so/love/service/imp/SoLoveHobbyServiceImp.java | UTF-8 | 9,516 | 2.328125 | 2 | [] | no_license | package com.wang.so.love.service.imp;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;
import com.wang.... | true |
111a4bc2b793d7712529f3387fbc1f9bc6f8838c | Java | AyrtonSouza/Preciata | /src/main/java/com/inb/projeto/model/entity/Categoria.java | UTF-8 | 2,174 | 2.46875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.inb.projeto.model.entity;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
im... | true |
95c5f5a9626d6a2951d851d1bea31e85e55b602d | Java | seqre/battleships | /src/main/java/seqre/battleships/network/NetUtils.java | UTF-8 | 576 | 2.609375 | 3 | [] | no_license | package seqre.battleships.network;
import java.net.*;
public class NetUtils {
public static InetAddress findAddress() throws NetBSException {
try {
NetworkInterface en0 = NetworkInterface.getByName("en0");
return en0.inetAddresses()
.filter(a -> a instanceof In... | true |
4a32961c830e1bcb22f6c6bea611b559c3d8af56 | Java | iregraure/manageYourHotel | /Backend/src/main/java/com/manageYourHotel/model/dto/RoomDto.java | UTF-8 | 1,783 | 2.546875 | 3 | [] | no_license | package com.manageYourHotel.model.dto;
public class RoomDto
{
// Attributes
private int number;
private String type;
private double price;
private boolean smoker;
private boolean tv;
private boolean airConditioning;
private boolean breakfast;
private int floorNumber;
private String buildingName;
... | true |
3a916a93964d7ffa3607f6103b229cfe5f4b2372 | Java | AnthonyTepach/ComputerForms | /src/main/java/com/anthonytepach/beans/Contacto.java | UTF-8 | 429 | 2.1875 | 2 | [] | no_license |
package com.anthonytepach.beans;
/**
*
* @author Anthony Tepach
*/
public class Contacto {
private String num_movil, email;
public String getNum_movil() {
return num_movil;
}
public void setNum_movil(String num_movil) {
this.num_movil = num_movil;
}
public String getE... | true |
10c5b899e6471c539d0c02fd34ef3a9d87052e04 | Java | ChiHungLam/soundtrack-db | /SoundtrackDB/src/dev/sdb/server/db/impl/AbstractDatabase.java | UTF-8 | 13,788 | 2.109375 | 2 | [] | no_license | package dev.sdb.server.db.impl;
import java.io.IOException;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import java.util.Vector;
import com.google.gwt.view.client.Range;
import dev.sdb.server.db.Database;
import dev.sdb.server.db.SqlManager;
impo... | true |
137333906f351323863c6b465f03d9ac01d9efbc | Java | hchanenator/MySimpleTest | /src/main/java/org/herb/MySimpleTest/repository/PersonRepository.java | UTF-8 | 301 | 1.8125 | 2 | [] | no_license | /**
*
*/
package org.herb.MySimpleTest.repository;
import org.herb.MySimpleTest.domain.Person;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* @author herb
*
*/
public interface PersonRepository extends JpaRepository<Person, Long> {
Person findByAlias(String alias);
}
| true |
dd95dda97e539f0bda1b8cb52fdba463b4d988ad | Java | shiver-me-timbers/multi-invoker-maven-plugin-parent | /multi-invoker-maven-plugin/src/main/java/shiver/me/timbers/plugins/invoker/multi/DefaultMultiInvokerLogger.java | UTF-8 | 1,090 | 2 | 2 | [
"Apache-2.0"
] | permissive | package shiver.me.timbers.plugins.invoker.multi;
import org.apache.maven.shared.invoker.InvocationRequest;
import org.codehaus.plexus.component.annotations.Component;
import org.codehaus.plexus.component.annotations.Requirement;
import static java.lang.String.format;
/**
* @author Karl Bennett
*/
@Component(role =... | true |
a5d3cc36bf45e616e9a47be6e37b620532b6778b | Java | shaanzie/QuickRef | /Theory Concepts/Heterogenous Parallelism/Code Examples/JavaConcurrency/Exercise6.java | UTF-8 | 2,945 | 3.75 | 4 | [] | no_license | import java.util.Random;
public class Exercise6{
private static int account = 0;
public static class Withdrawer implements Runnable {
public void run() {
Random rand = new Random();
synchronized (Exercise6.class) {
if(account < 1000) {
... | true |
5d6c3c151653fcba8ced50b57b87902740bbe30b | Java | pmaslankowski/java-contracts | /compiler-commons/src/main/java/pl/compiler/commons/invocation/MethodInvocationBuilder.java | UTF-8 | 1,870 | 2.296875 | 2 | [] | no_license | package pl.compiler.commons.invocation;
import javax.inject.Inject;
import com.sun.tools.javac.tree.JCTree.JCExpression;
import com.sun.tools.javac.tree.JCTree.JCIdent;
import com.sun.tools.javac.tree.JCTree.JCMethodInvocation;
import com.sun.tools.javac.tree.TreeMaker;
import com.sun.tools.javac.util.List;
public c... | true |
87595a212b28b7b5ef932646e34f2d02b3f2582e | Java | ossgang/ossgang-commons | /src/test/java/org/ossgang/commons/observables/ObservableValueDebounceTest.java | UTF-8 | 2,738 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | /*
* @formatter:off
* Copyright (c) 2008-2020, CERN. All rights reserved.
*
* 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
*
* Unle... | true |
4e80e16c5de92412e6b3ce2765efbafd389f0f6c | Java | jamestri/Runescape-Calculator-Mobile | /app/src/main/java/com/example/runescapecalculator/SkillItem.java | UTF-8 | 1,736 | 3.546875 | 4 | [] | no_license | package com.example.runescapecalculator;
/**********************************************************************
* Object class to hold the skill item, which holds the data for which
* skill it is in the list of items.
*********************************************************************/
public class SkillItem {
... | true |
cae5db2a229424f9fde177ba906a4ec4f91e20cb | Java | sowmyakgowda25/TY_CG_HTD_BangaloreNovember_JFS_SowmyaK | /FMS_PROJECT/fms_springboot/src/main/java/com/capgemini/fms_springboot/services/ContractServices.java | UTF-8 | 301 | 2.015625 | 2 | [] | no_license | package com.capgemini.fms_springboot.services;
import java.util.List;
import com.capgemini.fms_springboot.dto.ContractBean;
public interface ContractServices {
boolean addContractor(ContractBean bean);
boolean deleteContractor(int contractNo);
public List<ContractBean> getAllContractor();
}
| true |
2d7bf51457e7a827ceccbad175e57ed51af78b23 | Java | jayzhou125/leetcode-questions | /Java solutions/98. Validate Binary Search Tree.java | UTF-8 | 1,443 | 3.640625 | 4 | [] | no_license | /**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode() {}
* TreeNode(int val) { this.val = val; }
* TreeNode(int val, TreeNode left, TreeNode right) {
* this.val = val;
* this.left = left;
* ... | true |
0cbc94ac22386c88420a482bfe65985de442de21 | Java | elpidioneto/Codigo-fonte-Projeto-Integrador | /src/br/iesb/meuprograma/apresentacao/JDialogSindico_PesquisaPessoa.java | UTF-8 | 22,636 | 2.0625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.iesb.meuprograma.apresentacao;
import br.iesb.meuprograma.entidades.Pessoa;
import br.iesb.meuprograma.negocio.NegocioExcep... | true |
831eb09ff1f41ae86cdcec345acddb9f9979213c | Java | chaitalipatel92/Assessment | /src/assessment/Assessment.java | UTF-8 | 617 | 3.03125 | 3 | [] | no_license | package assessment;
public class Assessment {
public static void main(String[] args) {
Assessment as = new Assessment();
as.permut("abc");
}
public void permut(String str) {
permut("", str);
}
private void permut(String prefix, String str) {
int len = str.length()... | true |
f1c2ee5c0bd5b33fd0b9b937a4447cbcb5ec3df5 | Java | Javier-Larroca/Ejercicios.Lab.Comp.IV | /AppConsola2/src/dominio/ArticuloGimnasio.java | UTF-8 | 596 | 3.015625 | 3 | [] | no_license | package dominio;
public class ArticuloGimnasio extends Articulo{
private int peso;
private static final int gramos = 1000;
//Metodo
public int devuelvePesoEnGr() {
return peso * gramos;
}
//Constructores
public ArticuloGimnasio(){
super();
}
public ArticuloGimnasio(String nombre, int peso) {
s... | true |
ab619274d9059c40a2899c7d9338bf72ed2fbd02 | Java | theyashpatel/WouldYouRatherWebService | /src/main/java/Application/Configuration/PropertyUtils.java | UTF-8 | 1,009 | 2.859375 | 3 | [] | no_license | package Application.Configuration;
import Application.Database.DBConnection;
import java.sql.*;
import java.util.HashMap;
import java.util.Map;
public class PropertyUtils {
private final String GET_VALUE = "select * from properties";
private Map<String, String> keyMap = new HashMap<>();
public Propert... | true |
287db21063c4157014a1c8871f0f0af568a4f83a | Java | unaidelao/Java-Exercises | /java2-SchaumSeries/cap03/CadenasEj3.java | UTF-8 | 496 | 3.984375 | 4 | [] | no_license | /**
* Programación en Java 2 - Serie Schaum
*
* Ejercicio 3.12
*
* Haga un programa que contenga la cadena "Juan Sotillo Soto". El programa ha
* de imprimir por pantalla ambas cadenas con todos los caracteres en minúscula
* y luego en mayúscula.
*
* @author Unai de la O
*/
class CadenasEj3 {
public stati... | true |
77b748f78095987f4d4ce30156614dd898b0586e | Java | alipay/alipay-sdk-java-all | /v2/src/main/java/com/alipay/api/domain/AlipayBossProdContractDownloadModel.java | UTF-8 | 1,235 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 文件下载
*
* @author auto create
* @since 1.0, 2021-11-12 14:32:56
*/
public class AlipayBossProdContractDownloadModel extends AlipayObject {
private static final long serialVersionUID = 518419... | true |
b129f39d3fa6b10825b5c332149d3985858bd1cd | Java | evansantos/immunit-java | /src/java/br/immunit/controller/UserExcluiControl.java | UTF-8 | 1,322 | 2.40625 | 2 | [] | no_license | package br.immunit.controller;
import br.immunit.dao.UserDAO;
import java.sql.SQLException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.swing.JOptionPane;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.... | true |
9b4d04fd57d867e55182b330b37d2d3e62690362 | Java | RangareddyJulakanti/spring-boot-okta | /src/main/java/com/ranga/okta/developer/demo/DemoApplication.java | UTF-8 | 719 | 2.03125 | 2 | [] | no_license | package com.ranga.okta.developer.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso;
import org.springframework.web.bind.annotation.GetMapping;
import org.spri... | true |
a60645e4622dfeb311a209263773843e79bddc11 | Java | Aresong/MyDemo | /crm/src/com/s5/crm/service/UserService.java | UTF-8 | 226 | 1.960938 | 2 | [] | no_license | package com.s5.crm.service;
import com.s5.crm.entity.User;
/**
* @author Aresong
* 用户管理的Service的接口
*/
public interface UserService {
public void regist(User user);
public User login(User user);
}
| true |
7c951d997a96847bf26912d80f9b094af85999bc | Java | yulin6/FishGame-Codebase3 | /Fish/Player/src/player/Strategy.java | UTF-8 | 10,384 | 3.34375 | 3 | [] | no_license | package player;
import java.util.ArrayList;
import java.util.HashMap;
import game.model.Action;
import game.model.Move;
import game.model.Pass;
import game.model.BoardPosition;
import game.model.GameState;
import game.model.GameTreeNode;
import game.model.IBoard;
import game.model.Penguin;
/**
* A Strategy contains... | true |
478a931f6e211740dfb5b07c8d750cce102c7e98 | Java | huangxiaowei08/muteki | /springboot/src/main/java/com/weiziplus/muteki/core/pc/system/mapper/UserLoginLogMapper.java | UTF-8 | 523 | 1.726563 | 2 | [
"MIT"
] | permissive | package com.weiziplus.muteki.core.pc.system.mapper;
import com.weiziplus.muteki.common.models.UserLogin;
import com.weiziplus.muteki.core.pc.system.dto.UserLoginLogQueryDto;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* @author wanglongwei
* @date 2020/08/20 10/34
*/
@Mapper
public int... | true |
20a6cc6dfd9faac80b0ebe45beb6863fdf875ac2 | Java | yinyanru/qhmytest | /qhmy-admin/src/main/java/com/fh/service/system/role/impl/RoleService.java | UTF-8 | 8,963 | 1.90625 | 2 | [] | no_license | package com.fh.service.system.role.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.fh.dao.DaoSupport;
import com.fh.entity.Page;
import com.fh.entity.system.Department;
import com.fh.entity.system.MenuButtonVo;
import com.fh.entity.system.Role... | true |
ef6dbc9ce2c0441563c71dd579a8d68d967f3803 | Java | cqhxzy/java35 | /jdbc/jdbc01/src/main/java/demo02/Demo02.java | UTF-8 | 2,765 | 3.015625 | 3 | [] | no_license | package demo02;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.sql.*;
import java.util.Arrays;
public class Demo02 {
private static final String DRIVER = "com.mysql.cj.jdbc.Driver";
private static final String URL = "jdbc:mysql://192.168.91.188:3306/wulin?useUnicode=true&characterEncodi... | true |
f924a0127ec2ac44503de93f0311955baf924a74 | Java | sumit-sardar/GitMigrationRepo01 | /web-testdelivery/src/com/ctb/web/util/TMSConstants.java | UTF-8 | 2,051 | 2.109375 | 2 | [] | no_license | package com.ctb.web.util;
import noNamespace.EntryType;
import noNamespace.StereotypeType;
import noNamespace.TmssvcResponseDocument.TmssvcResponse.LoginResponse.Manifest.Sco.ScoUnitType;
import noNamespace.TmssvcResponseDocument.TmssvcResponse.LoginResponse.Status.StatusCode;
public class TMSConstants
{
... | true |
95e02d71ac98c36c32515cb2936c98a1a07fd7e5 | Java | kheraharman/RetrofitImageView | /app/src/main/java/com/test/mindvalley/pojo/Example.java | UTF-8 | 1,190 | 1.640625 | 2 | [] | no_license |
package com.test.mindvalley.pojo;
import java.util.List;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Example {
@SerializedName("id")
@Expose
public String id;
@SerializedName("created_at")
@Expose
public String createdAt;
@Se... | true |
d31153974e9c90318580ffb3d3f30d67d5c89e90 | Java | VentaApps/BeaconControl_Android_sample_app | /app/src/main/java/io/upnext/beaconcontrol/app/actions/BeaconActionsLogsStore.java | UTF-8 | 3,919 | 2.328125 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* Copyright (c) 2016, Upnext Technologies Sp. z o.o.
* All rights reserved.
*
* This source code is licensed under the BSD 3-Clause License found in the
* LICENSE.txt file in the root directory of this source tree.
*/
package io.upnext.beaconcontrol.app.actions;
import android.content.Context;
import android... | true |
f88bd3217db6df812c19b427b437b261bb21da05 | Java | abdulwaz/rusefi | /java_console/ui/src/com/rusefi/ui/livedocs/ActionPanel.java | UTF-8 | 1,106 | 2.390625 | 2 | [] | no_license | package com.rusefi.ui.livedocs;
import net.miginfocom.swing.MigLayout;
import javax.swing.*;
import java.awt.*;
import java.util.ArrayList;
import java.util.List;
public class ActionPanel {
List<RefreshActions> actionsList = new ArrayList<>();
private final JPanel panel = new JPanel(new MigLayout());
pri... | true |
0f10485c65acc6674bf32a75c48d845552d9cab1 | Java | infiniteoo/night_show_producer | /src/producerdemo/AudioConcat.java | UTF-8 | 9,826 | 2.0625 | 2 | [
"MIT"
] | permissive | /*
* AudioConcat.java
*
* This file is part of jsresources.org
*/
/*
* Copyright (c) 1999 - 2001 by Matthias Pfisterer
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistr... | true |
30943ece7e1fcbbeb305efbbf8aa4b51198459aa | Java | nidi3/languager | /languager-maven-plugin/src/main/java/guru/nidi/languager/maven/AbstractLoggingMojo.java | UTF-8 | 2,862 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2014 Stefan Niederhauser (nidin@gmx.ch)
*
* 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 ... | true |
e3ff057753a973b80a0a6d1c036eb215ddd931c8 | Java | tamal2401/Java-Series | /Spring-Kafka-Streams/Kafka_Order_Confirmation/src/main/java/com/kafka/subscriber/order/confirmation/util/LoggUtil.java | UTF-8 | 248 | 1.695313 | 2 | [] | no_license | package com.kafka.subscriber.order.confirmation.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LoggUtil {
public static Logger getLogger(Class cls){
return LoggerFactory.getLogger(cls.getName());
}
}
| true |
13faea8b6f2f3d409a4dca445ede7d1b74be0b8d | Java | urgelcx/Learn_JAVA | /BaseDao/src/dao/UserDao.java | UTF-8 | 447 | 1.898438 | 2 | [] | no_license | package dao;
import base.BaseDao;
import entity.User;
import java.sql.SQLException;
import java.util.List;
public interface UserDao extends BaseDao<User> {
}
// public List<User> findAll() throws SQLException;
//
// public User findById(int id) throws SQLException;
//
// public int Add(User user) throws SQ... | true |
dbc9fb0b2a55046bd400eeaf4aec70b556d675ca | Java | katkavokrinkova/Community-App_Android_Final | /app/src/main/java/net/impacthub/app/ui/features/home/companies/CompaniesFragment.java | UTF-8 | 4,974 | 1.929688 | 2 | [] | no_license | /*
* Copyright (c) 2017 Lightful. All Rights Reserved.
*
* Save to the extent permitted by law, you may not use, copy, modify,
* distribute or create derivative works of this material or any part
* of it without the prior written consent of Lightful.
*
* The above copyright notice and this permission notice shal... | true |
8a3f52a31ac57909c1b8fc94854da7125761333e | Java | fjh658/bindiff | /src_procyon/com/google/security/zynamics/bindiff/gui/tabpanels/viewtabpanel/graphnodetree/treenodes/single/flowgraph/SingleFlowGraphBaseTreeNode$InternalMatchesChangeListener.java | UTF-8 | 2,360 | 1.804688 | 2 | [] | no_license | package com.google.security.zynamics.bindiff.gui.tabpanels.viewtabpanel.graphnodetree.treenodes.single.flowgraph;
import com.google.security.zynamics.bindiff.project.matches.*;
import com.google.security.zynamics.zylib.disassembly.*;
import com.google.security.zynamics.bindiff.graph.nodes.*;
import com.google.security... | true |
797e1b82cb7f91bd23d63025a32de5ea833297e1 | Java | svir2818/StartGradle | /src/test/java/ComputerRepairRequestTest.java | UTF-8 | 348 | 1.8125 | 2 | [] | no_license | import model.ComputerRepairRequest;
import org.junit.Assert;
import org.junit.Test;
public class ComputerRepairRequestTest {
@Test
public void testExample(){
ComputerRepairRequest crr= new ComputerRepairRequest();
Assert.assertEquals("",crr.getOwnerName());
//Assert.assertEquals("",crr.g... | true |
bba2073213ccd468a6d882d213e125a4d0d0584f | Java | nguyenanhkute/web-java-jsp- | /src/java/Controller/CustomerServlet.java | UTF-8 | 2,490 | 2.25 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package controller;
import DAO.CustomerDAO;
import connect.SQLConnection;
import java.io.IOException;
import java.io.PrintWriter;
impo... | true |
34cce1ccd509d215c6ab11bf3fe4b6906cd24ad9 | Java | germondc/ignite-interop-test | /src/main/java/test/clyde/ignite_interop_test/App.java | UTF-8 | 3,016 | 2.875 | 3 | [] | no_license | package test.clyde.ignite_interop_test;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import org.apache.ignite.Ignite;
import org.apache.ignite.IgniteCache;
import org.apache.ignite.IgniteException;
import org.apache.ignite.Ignition;
import org.apache.ig... | true |
c49949150e3ebf5842b6dda1be1c67970d05994d | Java | devlab0110/design-patterns-java-examples | /src/com/devlab/decorator/example_christmas_tree/Test.java | UTF-8 | 1,001 | 3.140625 | 3 | [] | no_license | package com.devlab.decorator.example_christmas_tree;
public class Test {
public static void main(String[] args) {
System.out.println("------------------");
System.out.println("tree1:");
System.out.println("- ChristmasTreeImpl");
System.out.println("- Garland");
Christmas... | true |
7afb586173bdc1c977a0ab0e170e1e1e4a5976a5 | Java | sengeiou/SuoyiServer | /app/src/main/java/com/ilanchuang/xiaoi/suoyiserver/mvpbe/presenter/MainPresenter.java | UTF-8 | 2,943 | 1.90625 | 2 | [] | no_license | package com.ilanchuang.xiaoi.suoyiserver.mvpbe.presenter;
import com.ilanchuang.xiaoi.suoyiserver.MainActivity;
import com.ilanchuang.xiaoi.suoyiserver.mvpbe.SYServer;
import com.ilanchuang.xiaoi.suoyiserver.mvpbe.bean.AppDownLoadBean;
import com.ilanchuang.xiaoi.suoyiserver.mvpbe.bean.TypeNumBean;
import com.ilanchua... | true |
aff85b20d67d07e98c56cfb026122532cd41e6d6 | Java | dumasart/database-management-project | /src/Model/DataTransfertObject/SpectacleDAOSQL.java | UTF-8 | 4,519 | 2.703125 | 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 Model.DataTransfertObject;
import DataAccessLayer.ConnectionSQL;
import DataAccessLayer.Getter;
import Model.Numero;
import Mo... | true |
93f378afb2bd7cadf26fdf7649835fc8da8cb637 | Java | LinLiuLY/twu-introductory-exercises-linliu | /src/com/twu/exercises/Triangle.java | UTF-8 | 913 | 3.703125 | 4 | [
"Apache-2.0"
] | permissive | package com.twu.exercises;
/**
* Created by linliu on 2/21/15.
*/
public class Triangle {
private int number;
private String type;
public Triangle(int number, String type) {
this.number = number;
this.type = type;
}
public void drawTriangle() {
if (type == "rightTriangle... | true |
62d6930ef1d246f77f2c950679f01263c7e3c77f | Java | Rhalex/SIWRenotes | /src/main/java/it/unical/ingsw/siw/renotes/controller/AddNewPaymentMethod.java | UTF-8 | 1,945 | 2.421875 | 2 | [] | no_license | package it.unical.ingsw.siw.renotes.controller;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSe... | true |
7d03024091ab0f3bc4c35e3822f83fae1419181c | Java | AndreMelo2019/psjava | /src/main/java/org/psjava/ds/graph/SimpleFlowNetworkEdge.java | UTF-8 | 1,639 | 2.84375 | 3 | [
"MIT"
] | permissive | package org.psjava.ds.graph;
import org.psjava.util.Assertion;
public class SimpleFlowNetworkEdge<V, F> {
public static <V, F, E> FlowNetworkEdge<V, F, E> create(final V from, final V to, final FlowStatus<F> flowStatus, final E originalEdgeOfNonSymmetryOrNull) {
return new FlowNetworkEdge<V, F, E>() {
... | true |
27729cda2b35d8dfd3d2011e88f76a5916e4a65d | Java | zyb2013/Warriors | /src/com/yayo/warriors/module/dungeon/rule/HighRichDungeonRule.java | UTF-8 | 799 | 2.453125 | 2 | [] | no_license | package com.yayo.warriors.module.dungeon.rule;
import org.springframework.stereotype.Component;
import com.yayo.warriors.module.dungeon.model.Dungeon;
import com.yayo.warriors.module.dungeon.types.DungeonState;
import com.yayo.warriors.module.dungeon.types.DungeonType;
/**
* 高富帅
* @author liuyuhua
*/
@Component
p... | true |
7b60e84b74db25bc38a8719a21c09131e29368d5 | Java | giri4it/datakernel | /core-promise/src/test/java/io/datakernel/async/AsyncSuppliersTest.java | UTF-8 | 2,125 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package io.datakernel.async;
import io.datakernel.eventloop.Eventloop;
import io.datakernel.stream.processor.DatakernelRunner;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.concurrent.atomic.AtomicInteger;
import static org.junit.Assert.assertEquals;
@RunWith(DatakernelRunner.class)
publi... | true |
e47a211ad7441233d86a2b7b834bf7cfa45a5115 | Java | alejoab12/Taller1.4-ModeloyValidacion | /Bank-Orchestration/src/main/java/com/bank/abc/rest/model/AgreementModel.java | UTF-8 | 156 | 1.5 | 2 | [] | no_license | package com.bank.abc.rest.model;
import lombok.Data;
@Data
public class AgreementModel {
private String agreement;
private String url;
}
| true |
0f41e6097696284ab53dff9c023899cf04ff49a0 | Java | dreameddeath/couchbase-testing | /core/core-java-utils/src/test/java/com/dreameddeath/core/java/utils/ClassUtilsTest.java | UTF-8 | 3,308 | 2.421875 | 2 | [] | no_license | /*
* Copyright Christophe Jeunesse
*
* 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 i... | true |
cd68d4af38cfba1218b4b890a5672e7a1fab436f | Java | 000GEV744/Spring | /spring_form_taglib_6thAug_19/src/main/java/comm/example/controller/Student.java | UTF-8 | 2,111 | 2.6875 | 3 | [] | no_license | package comm.example.controller;
import java.util.LinkedHashMap;
import java.util.Map;
public class Student {
private String firstName;
private String lastName;
private String email;
private String country;
private LinkedHashMap<String,String> countryOptions;
private String favoriteLanguage;
private String[] ... | true |
f3ca72f14652d84d39a9b35387fc9273739c27d5 | Java | andyancn/coupon | /code/coupon/src/main/java/com/coupon/api/service/CouponService.java | UTF-8 | 609 | 1.84375 | 2 | [] | no_license | package com.coupon.api.service;
import com.coupon.api.dto.CouponDTO;
import com.coupon.api.entity.CouponDO;
import com.coupon.api.utils.Result;
import java.util.List;
import java.util.Map;
public interface CouponService {
int save(CouponDO couponDO);
int update(CouponDO couponDO);
int queryCount(CouponDO... | true |
2e33f2586b738f84f18e7615744e791e55a3dfed | Java | muune/busapp | /src/teamdoppelganger/smarterbus/SBWidgetActivity.java | UTF-8 | 26,088 | 1.625 | 2 | [] | no_license | package teamdoppelganger.smarterbus;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.HashMap;
import teamdoppelganger.smarterbus.SBFavoriteFragment.SBFavoriteFragmentListener;
import team... | true |
2237d0532668e777c209b944ef95a8d982724f8b | Java | SKhodko711/MyCode | /src/Main.java | UTF-8 | 2,739 | 3.234375 | 3 | [] | no_license | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
String s;
BufferedReader BuffRead = new BufferedReader(new FileReader("src\\input.txt"));
BufferedWriter BuffRead1 = new BufferedWriter(new FileWriter("src\\output1.t... | true |
999edd03556e4797d858d187fd49f5414e6efe7d | Java | SOBotics/CheckYerFlags | /src/main/java/ch/philnet/checkyerflags/commands/SayCommand.java | UTF-8 | 923 | 2.578125 | 3 | [
"MIT"
] | permissive | package ch.philnet.checkyerflags.commands;
import org.sobotics.chatexchange.chat.Message;
import org.sobotics.chatexchange.chat.Room;
import org.sobotics.chatexchange.chat.event.PingMessageEvent;
import ch.philnet.checkyerflags.utils.MessageHandler;
public class SayCommand extends Command {
public SayCommand(Ro... | true |
e29a48d4444fb27c063816f6ac45451c3e416dde | Java | Expressionless/Aether | /src/data/enums/MobType.java | UTF-8 | 516 | 2.640625 | 3 | [] | no_license | package data.enums;
import data.entity.Mob;
public enum MobType {
Zombie("entity/zombie/zombie64", false, Mob.MOB_WIDTH, Mob.MOB_HEIGHT, 0.5f);
//Speed: Tiles/Second
public String textureName;
public int width, height;
public boolean passive;
public float speed;
// General Mob data
MobType(String textu... | true |
125e408671e6240ee6f82808c4793780aa0f592f | Java | quarckster/policies-engine | /api/src/main/java/org/hawkular/alerts/api/model/export/Definitions.java | UTF-8 | 4,159 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package org.hawkular.alerts.api.model.export;
import static com.fasterxml.jackson.annotation.JsonInclude.Include;
import java.util.List;
import org.hawkular.alerts.api.doc.DocModel;
import org.hawkular.alerts.api.doc.DocModelProperty;
import org.hawkular.alerts.api.json.GroupMemberInfo;
import org.hawkular.alerts.ap... | true |
38cd2929b02387477f65ed80df3e3a5905b0aa56 | Java | iCrany/ExtendLoveJ | /Extend_loveJ(test)/src/com/icrany/pojo/Attach.java | UTF-8 | 705 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package com.icrany.pojo;
/**
* 一个属于附件的类
* @author Administrator
*
*/
public class Attach {
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getArticleId() {
return articleId;
}
public void setArticleId(int articleId) {
this.articleId = articleId;
}
publi... | true |
4c290501aed458d3d278c3b15c113da2854a9b29 | Java | juniornc/HomeWorkWeekNov2018 | /homeworweeknov2018/src/pizza.java | UTF-8 | 245 | 2.890625 | 3 | [] | no_license | public class pizza {int price;
pizza cheese = new pizza(10);
public pizza(int price){
this.price= price;
}
public static void main(String[] args){
System.out.println("New york pizza is great $" + 10);
}
}
| true |
7ea640edf9f9d1b3adc68e942a8bc7333fdc85c4 | Java | SebastianBogado/fi-ormula3 | /src/test/modelotest/Lin64Test.java | UTF-8 | 765 | 2.609375 | 3 | [] | no_license | package test.modelotest;
import junit.framework.TestCase;
import modelo.Lin64;
import org.junit.Before;
import org.junit.Test;
public class Lin64Test extends TestCase {
private Lin64 motor;
@Override
@Before
public void setUp() throws Exception {
motor = new Lin64();
}
@Test
public void ... | true |
1f41b8c34beb54b60385637906a8b78a1ed2c421 | Java | dongbuihuu/Y2017JC79DB | /Y2017JC79PRO/src/BUIHUUDONG/demo/Demo.java | UTF-8 | 1,075 | 3.203125 | 3 | [] | no_license | package BUIHUUDONG.demo;
public class Demo {
public static void main(String[] args) throws InterruptedException {
// AExtendsThread A1 = new AExtendsThread();
// Thread A2 = new Thread(new AImplementsRunnable());
// A1.start();
// A2.start();
// A1.run();
// A2.run();
AImplementsRunnable ur ... | true |
04c82bc5867244e934e316ffa2a62a03e38a576a | Java | JeremyWCS/SouthPark | /app/src/main/java/fr/wildcodeschool/southpark/MainActivity.java | UTF-8 | 2,114 | 2.640625 | 3 | [] | no_license | package fr.wildcodeschool.southpark;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import java.util.ArrayList;
import java.util.HashMap;
pu... | true |
1f094ea332af7a2e54600ef23459e9e3e13f7a6a | Java | ShwetaKhatri/OOD_Labs | /Labs/com/ood/lab5/tempConverter/TempConverter.java | UTF-8 | 3,857 | 3.3125 | 3 | [] | no_license | package com.ood.lab5.tempConverter;
import java.awt.BorderLayout;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.sw... | true |
86af4b370078d6e50d3f9093d81de51d1c22d5d2 | Java | FBurakY/JavaSE_OOP | /JavaSEWeek04/src/_03/coupling_cohesion/Notes.java | UTF-8 | 927 | 2.75 | 3 | [] | no_license | package _03.coupling_cohesion;
public class Notes {
}
// istenen durum ;
// loose coupling (gevsek baglanti)
// high cohesion
// istenmeyen durum;
// tight coupling
// low cohesion
// coupling -> bir sinif diger sinifi ne kadar biliyor ve sinif uyelerine nasil erisiyor.
// X ---> Y sinifinin instance degiskenle... | true |
8d26a35ced30e82bf4b36854728c1f13b0bbba1a | Java | JurenIvan/Java-courses | /hw17-0036505483-2/src/main/java/hr/fer/zemris/java/hw17/jvdraw/JDrawingCanvas.java | UTF-8 | 2,419 | 3.1875 | 3 | [] | no_license | package hr.fer.zemris.java.hw17.jvdraw;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;
import java.util.function.Supplier;
import javax.swing.JComponent;
import hr.fer.zemris.java.hw17.jvdraw.drawin... | true |
7e232e52ccfdde130a8ade65b089b9eef4c6e5ab | Java | JC-Aguiar/MeCommercePostgreSQL | /src/main/java/br/com/jcaguiar/ecommerce/projection/UsuarioGET.java | UTF-8 | 240 | 1.539063 | 2 | [] | no_license | package br.com.jcaguiar.ecommerce.projection;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter @Setter @NoArgsConstructor
final public class UsuarioGET implements MasterGET {
private String email;
}
| true |
4588314cdcb96b492cda98d52b483c7ad8edabfb | Java | Yoiger/forum | /src/main/java/com/chen/service/impl/User_RoleServiceImpl.java | UTF-8 | 683 | 2.015625 | 2 | [] | no_license | package com.chen.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.chen.dao.UserRoleDao;
import com.chen.entity.UserRole;
import com.chen.service.User_RoleService;
@Service
public class User_RoleServiceImpl implements User_RoleServi... | true |
e90d1c72d494d0df0eb667c16c51d8f4e110444f | Java | 1139195320/leetcode-study | /src/com/jack/algorithm/problem/midium/LeetCode0102.java | UTF-8 | 2,992 | 3.484375 | 3 | [] | no_license | package com.jack.algorithm.problem.midium;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
/**
* @author jack
*/
public class LeetCode0102 {
private static class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(i... | true |
c0fc6d3ec738397d148b73b1739fb3e3cac080e9 | Java | afalko/zipkin-storage-kafka | /zipkin-autoconfigure-storage-kafka/src/main/java/zipkin/autoconfigure/storage/kafka/ZipkinKafkaStorageProperties.java | UTF-8 | 2,322 | 1.882813 | 2 | [] | no_license | /*
* Copyright 2015-2018 The OpenZipkin Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | true |
b7f33973e89bc0160f788b12d19debe223b53787 | Java | Arp-G/MyPrograms | /Arpan's Programs/src/ChallengePrograms/MissionariesAndCannibals.java | UTF-8 | 9,706 | 3.484375 | 3 | [] | no_license | package ChallengePrograms;
// MissionariesAndCannibals Problem Solver designed by ARP
import java.util.*;
public class MissionariesAndCannibals
{
static List<Sol> solSet=new ArrayList<>();
static int limit=20; // max Recursion depth (Solutions having steps more than this limit will be ignored)
public st... | true |
22c69c72d2b5b79927bd652ead54bdbfeac99c1b | Java | ishantk/GW2018A | /Session2/src/Conditions.java | UTF-8 | 2,220 | 3.21875 | 3 | [] | no_license |
public class Conditions {
public static void main(String[] args) {
int a = 10;
int b = 20;
System.out.println(a < b);
if(a > b){
System.out.println("a is greater than b");
}else{
System.out.println("b is greater than a");
}
boolean isInternetEnabled = true;
boolean isGPSEnabled = fals... | true |
a8ec9c4be145df0a97b6432ea9a75bd587e155e5 | Java | MosesMNZ/Avaj-Launcher | /src/weather/WeatherTower.java | UTF-8 | 239 | 2.3125 | 2 | [] | no_license | package weather;
import aircraft.Coordinates;
public class WeatherTower extends Tower{
public String getWeather(Coordinates coordinates){
return (WeatherProvider.getWeatherProvider().getCurrentWeather(coordinates));
}
}
| true |
ca091e65dfd63899e8f181e693cd5b6b4f991082 | Java | ivamn/AgendaSQL | /app/src/main/java/com/danito/p_agendaavanzada/AccionContacto.java | UTF-8 | 7,752 | 1.796875 | 2 | [] | no_license | package com.danito.p_agendaavanzada;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.view.LayoutInflater;
import android.v... | true |
9335f116286b80e50f60dfed1dbee9e56bfd7d4a | Java | Jinseop95/Club-Management-Platform | /hallym_club/src/exam/jdbc/JDBC_studentDAO.java | UTF-8 | 5,016 | 2.515625 | 3 | [] | no_license | package exam.jdbc;
import java.net.Inet4Address;
import java.net.UnknownHostException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import Stude... | true |
a6e774d6218b5eb7a2a08e34f4306c13a1d9ae8e | Java | javaworkshop333/training | /src/javaTutorial/chapter17/TestCollection.java | UTF-8 | 255 | 2.234375 | 2 | [] | no_license | package javaTutorial.chapter17;
import java.util.ArrayList;
public class TestCollection {
public static void main(String args[])
{
ArrayList<String> b=new ArrayList<>();
b.add("asd");
b.add("asda");
b.add("asdq");
b.add("asde");
}
}
| true |
7acde8d035fb4baf958f11e1a42b31edbba08f9f | Java | yangxiaohan57/-The-Craps-Game-Project-Deliverble-2 | /CrapsGameSecondDeliver/src/crapsgame/ModelGameEngine.java | UTF-8 | 2,737 | 3.734375 | 4 | [] | no_license | package crapsgame;
import java.util.Random;
/**
* Craps Game - Second Deliverable
* This is one of the Models for MVC framework.
* This class is the game engine.
* @author Xiaohan Yang 03/26/19
*/
public class ModelGameEngine {
private static final Random randomNumbers = new Random();
private int die1, ... | true |
a373cfa56b7d61c6225abac1f44adf29dd7d7a54 | Java | ankushg/abcplayer | /src/tests/NoteTest.java | UTF-8 | 2,768 | 3.125 | 3 | [] | no_license | package tests;
import static org.junit.Assert.assertEquals;
import music.Fraction;
import music.Note;
import org.junit.Test;
import sound.Pitch;
/**
* Tests notes of varying lengths, tests notes with both sharps and flats, and
* tests notes with unapplied accidentals.
*
*/
public class NoteTest {
public st... | true |
2d6d3191ff7da2717fb2ffe4a1092000943d3b76 | Java | nbokmans/ASDAlliumClient | /commonclient/src/main/java/nl/han/asd/project/client/commonclient/utility/Validation.java | UTF-8 | 3,640 | 3.3125 | 3 | [] | no_license | package nl.han.asd.project.client.commonclient.utility;
import static org.apache.http.conn.util.InetAddressUtils.*;
/**
* Provides validation methods.
*
* @version 1.0
*/
public final class Validation {
private static final String REGEX_ALPHANUMERIC = "[a-zA-Z0-9_-]*";
/**
* Private constructor to ... | true |
cd7edb3007047b08ee790c354b42b1283b9b1742 | Java | efbiz/efbiz-service | /product-service/src/main/java/org/efbiz/product/config/model/ProductConfigOption.java | UTF-8 | 1,237 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package org.efbiz.product.config.model;
import com.google.gson.Gson;
import java.io.Serializable;
import java.math.BigDecimal;
import org.efbiz.product.config.model.ProductConfigOptionKey;
public class ProductConfigOption extends ProductConfigOptionKey implements Serializable {
private String configOption... | true |
e45fd0f983cb92465510e98ee46866a2fb9f0f5c | Java | andresmilanesi/Dashboard | /src/test/java/pages/pageLogin.java | UTF-8 | 1,608 | 2.390625 | 2 | [] | no_license | package pages;
import dataProviders.configFileReader;
import helpers.helpers;
import org.openqa.selenium.By;
import org.openqa.selenium.Cookie;
import org.openqa.selenium.WebDriver;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
public class pageLogin {
private WebDriver driver;
pri... | true |
749100157bc565718b8cc830996e9ad76f1ed46a | Java | binlee1990/Entitas-Java | /entitas-gdx/src/main/java/ilargia/egdx/api/ChangeStateCommand.java | UTF-8 | 182 | 1.898438 | 2 | [
"MIT"
] | permissive | package ilargia.egdx.api;
@FunctionalInterface
public interface ChangeStateCommand<G extends Game> extends GameEvent {
public void change(final String nameState, G game);
} | true |
20c658d3d517d7f0a1353f4c6a2864e5e9fae00b | Java | QristManukyan/project_repository | /DeviceMeneger/src/com/project/devicemanager/AddDialogFragment.java | UTF-8 | 3,711 | 2.390625 | 2 | [] | no_license | package com.project.devicemanager;
import java.util.Random;
import com.project.devicemanager.R;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.... | true |
ee38ff098c0f1ea78b40bd3ab5e86dd49909536a | Java | neokeld/JavaFXDesign | /src/main/java/design/Main.java | UTF-8 | 987 | 2.671875 | 3 | [
"MIT"
] | permissive | package design;
import java.io.IOException;
import design.resize.ResizeHelper;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
public class Main extends Application {
@Override... | true |
181fbd55492a9832bd5444ac5c5346cce6eed297 | Java | batach31/Teaching-HEIGVD-AMT-2019-Project-One | /src/main/java/ch/heigvd/amt/projectone/presentation/LoginServlet.java | UTF-8 | 1,689 | 2.28125 | 2 | [
"MIT"
] | permissive | package ch.heigvd.amt.projectone.presentation;
import ch.heigvd.amt.projectone.dao.CustomerManager;
import ch.heigvd.amt.projectone.model.Customer;
import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.... | true |
2517468b62f3c2c747bc62c4b3bfa14f33d7bf8c | Java | cckmit/salescomm | /src/main/java/com/bdaim/order/dao/OrderDao.java | UTF-8 | 647 | 2.140625 | 2 | [] | no_license | package com.bdaim.order.dao;
import com.bdaim.common.dao.SimpleHibernateDao;
import com.bdaim.customgroup.entity.CustomGroup;
import com.bdaim.order.entity.OrderDO;
import org.springframework.stereotype.Component;
import java.io.Serializable;
import java.util.List;
@Component
public class OrderDao extends SimpleHibe... | true |
4358d79c53fcdae322c70e60e5afcd1dd268fd78 | Java | yammyshep/injurycounter | /src/main/java/com/jbuelow/injurycounter/api/power/DisplayPowerController.java | UTF-8 | 728 | 2.375 | 2 | [] | no_license | package com.jbuelow.injurycounter.api.power;
import com.jbuelow.injurycounter.hardware.cec.CECInterface;
import java.io.IOException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
... | true |
e6728504dd205160d4c4e476889321ad50e0ace5 | Java | kohii/s3-gradle-build-cache-plugin | /src/main/java/com/github/kohii/gradle/build_cache/s3/S3BuildCacheService.java | UTF-8 | 4,529 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 kohii
*
* 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, s... | true |
4eb4d444c0002b05a331c041f27366907371c745 | Java | 5l1v3r1/sony-headphones-hack | /base-dex2jar.jar.src--files/com/sony/songpal/ishinlib/b/e.java | UTF-8 | 2,573 | 1.773438 | 2 | [] | no_license | package com.sony.songpal.ishinlib.b;
import com.sony.songpal.ishinlib.c.b;
import com.sony.songpal.ishinlib.sensingmanager.b;
import com.sony.songpal.ishinlib.sensingmanager.c;
import com.sony.songpal.ishinlib.sensingmanager.d;
import com.sony.songpal.ishinlib.sensingmanager.h;
import java.text.SimpleDateFormat;
impor... | true |
5d2d1ee816d319f2fda76f8f471ca4f0ae5f7582 | Java | shelimingming/springmvc-demo | /src/main/java/com/sheliming/springmvc/controller/ItemController.java | UTF-8 | 1,904 | 2.875 | 3 | [] | no_license | package com.sheliming.springmvc.controller;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import com.sheliming.springmvc.po.Item;
/***
* 处理器的开发方... | true |
ad979bdde33aaee4bca4943c70b02c7ea16d533b | Java | py-chat/NullChat_android | /src/com/NullChat/Network/NullChatClient.java | UTF-8 | 4,349 | 2.421875 | 2 | [] | no_license | package com.NullChat.Network;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.Socket;
import java.net.URL;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.NullChat.Activities.ChatActivity... | true |
3182cd74c0f25347ed9512c15db8c0b0373cd75b | Java | LiuG521/taoshopping | /src/main/java/com/cssl/pojo/user.java | UTF-8 | 768 | 2.09375 | 2 | [] | no_license | package com.cssl.pojo;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
import java.util.Timer;
import java.util.TimerTask;
/**
* @program: taoshopping
* @Date: 2018/9/10 18:26
* @Author: misliu
* @Description:
*/
/**
* 用户表
*/
@Getter
@Setter
public class user implements Serializable ... | true |
286505735bc2b482ec6a72878506d44648965042 | Java | softprog2807/TheRepository | /jdbcweb/src/main/com/learnjdbc/jdbcweb/dataccess/model/EmployeeDataAccess.java | UTF-8 | 192 | 1.945313 | 2 | [] | no_license | package com.learnjdbc.jdbcweb.dataccess.model;
import java.util.List;
import com.learnjdbc.jdbcweb.model.Employee;
public interface EmployeeDataAccess{
List <Employee> getAllEmployees();
}
| true |
fa7af065e03ff0c1f79b70facf012279864f4053 | Java | glenworsley/tech_testQ2 | /src/main/java/com/glenworsley/techtestQ2/TechtestQ2Application.java | UTF-8 | 327 | 1.578125 | 2 | [
"MIT"
] | permissive | package com.glenworsley.techtestQ2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class TechtestQ2Application {
public static void main(String[] args) {
SpringApplication.run(TechtestQ2Application.class, args);... | true |
f9d1691f5e946f6cb6375075ca6454f561ad7903 | Java | egeorgiev1/Doppelganger | /client-side/doppelganger-client-TEST/model/src/main/java/com/group17/model/entities/Message.java | UTF-8 | 528 | 1.984375 | 2 | [] | no_license | package com.group17.model.entities;
import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
@Entity
public class Message {
@PrimaryKey(autoGenerate = true)
public int id;
@ColumnInfo(name = "sender_id")
public int ... | true |