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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
2dc426edea4a29f3912122836421959e03a8670c | Java | rokon12/Simple-User-management-System | /UserManagement/src/com/rokonoid/apps/util/crypt/MD5Implementation.java | UTF-8 | 590 | 2.921875 | 3 | [] | no_license | package com.rokonoid.apps.util.crypt;
import java.security.NoSuchAlgorithmException;
public class MD5Implementation extends CryptStringAdapter implements
CryptString {
@Override
public String createPassPhrase(String userGivenPass) {
String passPhrase = null;
try {
passPhrase = MD5.do_checksum(u... | true |
74a36822a0252dbd863306c99a138241c81a3f76 | Java | grosol/gof | /src/command/simple/devices/GarageDoor.java | UTF-8 | 311 | 2.578125 | 3 | [] | no_license | package command.simple.devices;
public class GarageDoor {
public void up () {
System.out.println("The door is opening");
}
public void down () {
System.out.println("The door is closing");
}
public void stop () {
System.out.println("The door is stopped");
}
}
| true |
ff1d7edcaf7a3ec20aa1a85560dbc5f31f558051 | Java | cancerberoSgx/yuigwt | /yuigwt/src/org/sgx/yuigwt/yui/yql/api/weather/forecast/WheatherForecastResult.java | UTF-8 | 493 | 1.875 | 2 | [] | no_license | package org.sgx.yuigwt.yui.yql.api.weather.forecast;
import org.sgx.yuigwt.yui.util.JsObject;
public class WheatherForecastResult extends JsObject /*implements YQLQueryResult*/ {
protected WheatherForecastResult(){}
/**
*
* @return
*/
public native final Channel channel() /*-{
return this.channel;
}-*/;
/**
... | true |
6d54e94061c8e48dd8ccb97946adc15889628dda | Java | ysl09240/springboot-security-vue-server | /src/main/java/com/sykean/hmhc/mapper/DeptMapper.java | UTF-8 | 1,156 | 2.03125 | 2 | [] | no_license | package com.sykean.hmhc.mapper;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.sykean.hmhc.entity.Dept;
import com.sykean.hmhc.req.DictData.DictDataReq;
import com.sykean.hmhc.res.dept.DeptListRes;
import com.sykean.hmhc.res.dept.DeptTreeRes;
import org.apache.ibatis.annotations.Param;
import java.uti... | true |
aef7f71b92688b1c1e2fdf9c2212b29a49d74a78 | Java | gusqudgh980904/HBH2 | /src/day0304/Work2.java | UHC | 2,379 | 3 | 3 | [] | no_license | package day0304;
import java.awt.FileDialog;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.I... | true |
491d8ee7467fc97cdf372f9df6266fc8e80a8dbc | Java | shelsonjava/Synx | /WakfuClientSources/srcx/class_3413_bfo.java | UTF-8 | 348 | 1.75 | 2 | [] | no_license | import java.util.ArrayList;
final class bfo
implements bPA
{
bfo(blx paramblx)
{
}
public boolean a(int paramInt, aCc paramaCc)
{
cII localcII = new cII();
localcII.iGB.bPw = paramInt;
localcII.iGB.min = paramaCc.getMin();
localcII.iGB.max = paramaCc.getMax();
this.fsJ.aRC.VR.add(local... | true |
3fdccd5e98218dbb67e82662ed4fbe01176cbd7b | Java | KotofeyG/Task3 | /src/main/java/com/kotov/shape/factory/TetrahedronFactory.java | UTF-8 | 3,222 | 3.046875 | 3 | [] | no_license | package com.kotov.shape.factory;
import com.kotov.shape.entity.Point;
import com.kotov.shape.entity.Tetrahedron;
import com.kotov.shape.exception.TetrahedronException;
import com.kotov.shape.validator.TetrahedronValidator;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.ap... | true |
a761a69e014bb0fb0a3606fd49eb42febf5452ca | Java | razandrei18/Android-Application | /app/src/main/java/com/example/mytown/objectives/mytown/MuzeuFragment.java | UTF-8 | 1,260 | 1.984375 | 2 | [] | no_license | package com.example.mytown.objectives.mytown;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.viewpager.widget.ViewPager;
import android.view.LayoutInflate... | true |
f5d6efa70ce2c9a42e37b8df0d4a0a32c7251551 | Java | Di1997/ModBot_Public | /modular_bot/src/main/java/classes/Tools.java | UTF-8 | 4,988 | 2.84375 | 3 | [] | no_license | package classes;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.events.message.guild.GuildMessageReceivedEvent;
import javax.annotation.CheckForNull;
import java.util.ArrayList;
import java.... | true |
e57d764788b1bd2944fb1286dbf328d7691e98ba | Java | JarikDev/JL365bestPractice | /src/overridingClone/OverridingClone.java | UTF-8 | 1,130 | 3.3125 | 3 | [] | no_license | package overridingClone;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class OverridingClone implements Cloneable {
int i;
Object[]objects;
private Date creationTime;
public OverridingClone(OverridingClone overridingClone){
this.i=overridingClone.i;
... | true |
27ea3dee3cb5416fe3ae63acc5b6c323dd526736 | Java | sxshanxin/bishe | /Auction/src/com/dx/entity/SalerandGood.java | WINDOWS-1252 | 970 | 2.703125 | 3 | [] | no_license | package com.dx.entity;
import java.io.Serializable;
@SuppressWarnings("serial")
public class SalerandGood implements Serializable{
/*
* ̼ңƷ
*/
private Integer sgid;
private Saler saler;
private Good good;
public SalerandGood() {
this.sgid=0;
}
public SalerandGood(Saler saler, Good good) {
this();
thi... | true |
ae80530206b1a564e22fd8369a58629586407ee4 | Java | Sayumi-n/CICCC_WMAD_java | /SelectionSort.java | UTF-8 | 656 | 3.53125 | 4 | [] | no_license | package wmad202;
public class SelectionSort {
public static void main(String[] args) {
int [] numbers = {4,7,2,5,1,8,0,6,3,9};
printArray(numbers);
sort(numbers);
printArray(numbers);
}
private static void sort(int[] numbers) {
for(int i = 0; i <= numbers.length; i++) {
int index = i;
for(int j =... | true |
07c57e2726f694caf3c6f54ff2e7fe1b55dda099 | Java | snunz19/AdvancedJava | /calculator/src/testt.java | UTF-8 | 346 | 2.734375 | 3 | [] | no_license | import java.util.Scanner;
public class testt {
/**
* @param args
*/
public static void main(String[] args) {
Calculator calc = new Calculator();
Scanner keyboard = new Scanner(System.in);
while(true)
{
System.out.print(" > ");
String input = keyboard.nextLine();
System.out.println( " > " + calc.cal... | true |
f20101a01b84dc5bf607e2b0a21634b4f093a2df | Java | Strixik/xtrellowebproject | /src/main/Java/lms/dao/entity/User.java | UTF-8 | 6,423 | 2.375 | 2 | [] | no_license | package lms.dao.entity;
public class User {
private long id;
private String login;
private String password;
private String email;
private String dateOfRegistration;
private String sex;
private String dateOfBirth;
private String userStatus;
private String firstName;
private Strin... | true |
8daf7932bbe53faa248dbb6b6af343e393fe6502 | Java | Domainsun/PraireFire | /app/src/main/java/com/praire/fire/order/bean/OrderListBean.java | UTF-8 | 10,062 | 1.914063 | 2 | [] | no_license | package com.praire.fire.order.bean;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.ArrayList;
import java.util.List;
/**
* Created by lyp on 2018/1/19.
*/
public class OrderListBean {
/**
* code : 1
* p : 1
*/
private int code;
private int... | true |
b95a61dff0ad0a1b1d9926fa1caad63e6f1231ee | Java | msingh23/JavaEssentials | /src/main/java/ctci/chap8/XpowerN.java | UTF-8 | 293 | 3 | 3 | [] | no_license | package ctci.chap8;
public class XpowerN {
public int power(int x , int n)
{
if(n ==0)
{
return 1;
}
if(n == 1)
{
return x;
}
int halfPower = n >>1;
int half = power(x, halfPower);
if(n % 2 ==1)
{
return half * half * x;
}
return half * half;
}
}
| true |
e49138165efb7ec5b843231129ad494af5b3a243 | Java | maxdeviant/degree | /csc331/assignment_2/problem_1/src/FindMaximum.java | UTF-8 | 493 | 3.1875 | 3 | [
"MIT"
] | permissive | /**
* @author Marshall Bowers
*/
public class FindMaximum implements Runnable {
private int[] x;
private int[] w;
public FindMaximum(int[] x, int[] w) {
this.x = x;
this.w = w;
}
@Override
public void run() {
for (int i = 0; i < w.length; i++) {
if (w[i] ... | true |
cdae668b83c287569532b15703bb7984ec7cbce0 | Java | r99r99r99/springmvc | /src/com/sdocean/beach/model/BeachGroupModel.java | UTF-8 | 659 | 2.1875 | 2 | [] | no_license | package com.sdocean.beach.model;
import java.util.List;
public class BeachGroupModel {
private int id;
private String name;
private String orderCode;
private List<BeachCodeModel> codes;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return nam... | true |
0c7414267942c1a32d80eecef0d203e646261b29 | Java | frankzhf/dream | /yangtes/yangtes-zkc/src/test/java/com/shengtong/smartlamppost/commons/mapper/DeviceRfidTaskUserMapper.java | UTF-8 | 663 | 1.734375 | 2 | [] | no_license | package com.shengtong.smartlamppost.commons.mapper;
import com.shengtong.smartlamppost.commons.entity.DeviceRfidTaskUser;
import com.shengtong.smartlamppost.commons.entity.DeviceRfidTaskUserExample;
import java.util.List;
public interface DeviceRfidTaskUserMapper {
int deleteByPrimaryKey(String id);
int inse... | true |
4791acb3ddc6be9f3f69b37e6e9e94a422af9a57 | Java | Sknictik/thinking-in-java | /src/main/java/thinkinginjava/block1/exercise11/AllTheColorsOfTheRainbowExercise.java | UTF-8 | 961 | 3.625 | 4 | [] | no_license | package thinkinginjava.block1.exercise11;
import thinkinginjava.Exercise;
public class AllTheColorsOfTheRainbowExercise extends Exercise {
@Override
public String getId() {
return "11";
}
@Override
public String getName() {
return "All the colors of the rainbow exercise";
}
... | true |
bef2461bf287ab0def69089e8a510f36b8a04746 | Java | sec00/osee-4 | /plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/callable/PurgeAttributesDatabaseTxCallable.java | UTF-8 | 3,344 | 1.8125 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2015 Boeing.
* 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, and is available at
* http:... | true |
c48e92c534314a13f68a64696fd5a288c5a427d9 | Java | RDimon2912/snython | /src/strategy/Point.java | UTF-8 | 926 | 3.0625 | 3 | [] | no_license | package strategy;
import java.awt.*;
import java.io.Serializable;
public class Point implements Cloneable, Serializable {
private int x;
private int y;
private LoaderStrategy loaderStrategy;
public Point(int x, int y, LoaderStrategy loaderStrategy) {
this.x = x;
this.y = y;
th... | true |
90be0b29ee38515516f10c3737fe9240abe6acfb | Java | PeaceAndLove1337/PetProject_-FavorableRate | /src/main/java/data/parsing/bankparsers/CbParsing.java | UTF-8 | 1,702 | 2.578125 | 3 | [] | no_license | package data.parsing.bankparsers;
import BankResponseModels.CbResponseModel;
import BankResponseModels.CurrencyResponseModel;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import data.Bank;
import org.json.XML;
import java.io.IOException;
import java.util.ArrayLis... | true |
d53f4a258fd7afd209068a44a4d400993010dc6a | Java | mrampiah/CS-3733 | /HealthApp - Project/src/view/LoginController.java | UTF-8 | 1,701 | 2.53125 | 3 | [] | no_license | package view;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javafx.scene.layout.AnchorPane;
import model.AbsUser;
import model.Administrator;
import model.MainApp;
import model.Patient;
import utils.DBHandler;
public cl... | true |
2f441f1be5b4aa5ebf7e1e4860619ddf4e076d70 | Java | ealvarezpereira/PROG_EJEMPLOS_2EV | /EjemploArraysObjetos/src/ejemploarraysobjetos/Persona.java | UTF-8 | 1,189 | 3.046875 | 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 ejemploarraysobjetos;
/**
*
* @author quique
*/
public class Persona implements Comparable {
private Stri... | true |
3b49509e92dc8bca8007ae5e5d8997bb112df56b | Java | ceeyangwen/mytest | /My_Daily_Project/src/com/netty/EchoClientHandler.java | UTF-8 | 1,907 | 3.015625 | 3 | [] | no_license | package com.netty;
import io.netty.channel.ChannelHandlerAdapter;
import io.netty.channel.ChannelHandlerContext;
public class EchoClientHandler extends ChannelHandlerAdapter {
private int counter = 0;
private int sendNumber;
private static final String ECHO_REQ = "Hello World.$_";
public EchoClientHandler... | true |
d1460d7fd4ceea38aa9048589e82904be11504c2 | Java | leitana/MyBase | /common/src/main/java/lx_base/mybase/common/base/BaseActionBarActivity.java | UTF-8 | 15,587 | 1.898438 | 2 | [] | no_license | package lx_base.mybase.common.base;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.provider.Settings;
import android.support.a... | true |
ac1474160ed8c1a01ffe6c74a48d53771b47d0f1 | Java | xdc0209/java-code | /basicKnowledge/src/com/xdc/basic/algorithm/sword4offer/question35/Solution.java | UTF-8 | 5,697 | 3.921875 | 4 | [] | no_license | package com.xdc.basic.algorithm.sword4offer.question35;
import java.util.HashMap;
import java.util.Map;
public class Solution
{
/**
* 面试题35:复杂链表的复制。时间复杂度O(n^2),空间复杂度O(1)。
*/
public static RandomListNode Clone(RandomListNode head)
{
if (head == null)
{
return null;
... | true |
a2349a8261ae3f18b3aca2bbe629b411020cfe84 | Java | jmbargallo/PictureShop | /src/main/java/com/PictureShop/Domain/Shop.java | UTF-8 | 681 | 2.65625 | 3 | [] | no_license | package com.PictureShop.Domain;
import com.PictureShop.Application.DTO.ShopDTO;
public class Shop {
private Integer id;
private String name;
private Integer capacity;
private static int COUNTER=1;
public Shop(ShopDTO shop) throws Exception {
if (shop.getName().equals("") || shop.getCapac... | true |
d02301a542081e0a30654c2e65142581a16b4330 | Java | etp622/uberfire | /uberfire-showcase/uberfire-webapp/src/main/java/org/uberfire/client/screens/charts/GenericChart.java | UTF-8 | 2,554 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | package org.uberfire.client.screens.charts;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Widget;
import com.googlecode.gchart.client.GChart;
import java.util.HashMap;
import java.util.Map;
public class GenericChart implements IsWidget {
private int position = 1;
priva... | true |
9452ed6d45bb883db9067a046ffa81090f772191 | Java | Raghav-Pal/TXAutomate | /cucumber-java-template/src/test/java/utilities/LogUtil.java | UTF-8 | 6,174 | 2.34375 | 2 | [] | no_license | package utilities;
import java.io.IOException;
import org.apache.log4j.ConsoleAppender;
import org.apache.log4j.FileAppender;
import org.apache.log4j.HTMLLayout;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.PatternLayout;
import org.apache.log4j.RollingFileAppender;... | true |
6250021ded550d27c7d425969fb6ca7c8b5a9d14 | Java | MeganCodeNote/JsonSocket | /JavaJson/src/Client.java | UTF-8 | 1,606 | 3.46875 | 3 | [] | no_license | /* Created by meganlee on 11/19/14.*/
import java.net.Socket;
public class Client {
private Socket socket;
private int port;
private String host;
public Client(String host, int port) {
try {
socket = new Socket(host, port);
} catch (Exception e) {
System.out.pr... | true |
22282b9fa7ae595f928e0b212354bfd6122b19ee | Java | khjini3/test | /git_itsm/src/main/java/com/yescnc/project/itsm/entity/db/EmailVO.java | UTF-8 | 735 | 1.515625 | 2 | [] | no_license | package com.yescnc.project.itsm.entity.db;
import java.io.Serializable;
import lombok.Data;
@Data
public class EmailVO implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private int mailId;
private String cmdId;
private String cmdType;
private String fromT... | true |
b1148e0cd680e6ee2d5d70c58c0fbf31231b633a | Java | supreet-kaur93/ADI | /BST/MinValueNode.java | UTF-8 | 531 | 3.3125 | 3 | [] | no_license | class MinValueNode {
int FindMin(BST.Node root) {
BST.Node temp = root;
while(temp.left != null) {
temp = temp.left;
}
return (Integer)temp.data;
}
public static void main(String[] args) {
MinValueNode obj = new MinValueNode();
BST<Integer> bst =... | true |
68957d0f954e6928a7dc57036b0105c814478d29 | Java | davidcai/vel | /Baby/src/baby/pages/info/AppointmentReminderNotif.java | UTF-8 | 3,116 | 2.265625 | 2 | [] | no_license | package baby.pages.info;
import java.text.DateFormat;
import samoyan.core.DateFormatEx;
import samoyan.core.ParameterMap;
import samoyan.core.XCoShortenUrl;
import samoyan.database.Server;
import samoyan.database.ServerStore;
import samoyan.servlet.Setup;
import samoyan.servlet.exc.PageNotFoundException;
import samoy... | true |
fc015a77b09bbab1b1069294038090ebc1620c87 | Java | alexandretriggolabs/crux-samples-showcase | /cross-device-showcase/src/main/java/org/cruxframework/crossdeviceshowcase/client/controller/samples/staledpanel/StyledPanelController.java | UTF-8 | 1,286 | 2.109375 | 2 | [] | no_license | package org.cruxframework.crossdeviceshowcase.client.controller.samples.staledpanel;
import org.cruxframework.crossdeviceshowcase.shared.messages.DescriptionMessages;
import org.cruxframework.crux.core.client.controller.Controller;
import org.cruxframework.crux.core.client.controller.Expose;
import org.cruxframework.c... | true |
932c46ffd703270bcd726fc1f64fbd2d59073175 | Java | TheRealFakeness/thing-processor | /src/ui/Lab1.java | UTF-8 | 13,205 | 4.25 | 4 | [] | no_license | import java.util.Scanner;
/** Allows the user to perform different operations on a set of values, entered by the user, whose data type is also chosen by the user.
* @author Juan José Bohórquez Jaramillo
* @author juanjo312003@gmail.com
* @version 1.0
*/
public class Lab1 {
private static Scanner sc = new Scanner(... | true |
2bb5d90399db6a8e5a0a45d2a8a09856415cfbed | Java | lferreiro/TP_UIS_2017_LF | /Dominio_CarmenSanDiego/src/main/generated-sources/xtend/model/ocupante/SeniasYHobbies.java | UTF-8 | 746 | 2.21875 | 2 | [] | no_license | package model.ocupante;
import java.util.List;
import org.eclipse.xtend.lib.annotations.Accessors;
import org.eclipse.xtext.xbase.lib.Pure;
@Accessors
@SuppressWarnings("all")
public class SeniasYHobbies {
private List<String> senias;
private List<String> hobbies;
public SeniasYHobbies(final List<String> ... | true |
6904426722a6a7868bd8e9283b476b13edd5ffb3 | Java | oddeo/erm | /src/java/erm/business/manager/AuthorMgr.java | UTF-8 | 357 | 2.09375 | 2 | [] | no_license | package erm.business.manager;
import erm.domain.Author;
import java.util.List;
/**
* @version 1.0
* @author danieljones
*/
public interface AuthorMgr {
public Author create(Author author);
public Author read(int id);
public List<Author> readAll();
public Author update(Author author);
publi... | true |
6dc101da44a50fe748f543d5a713982074b5559d | Java | ogaemma2017/Attendance_Marker_1 | /src/main/ui/controller/AdminPageController.java | UTF-8 | 9,395 | 2.125 | 2 | [] | no_license | package main.ui.controller;
import com.jfoenix.controls.JFXListView;
import com.jfoenix.controls.JFXTextField;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.Ac... | true |
6d9daa64b79f3a857bd7d8294b6ef896ef1e4556 | Java | Mercyware/FPP_Labs | /src/fpp/lab8/lab8_3/SalaryComparator.java | UTF-8 | 377 | 3.171875 | 3 | [] | no_license | package fpp.lab8.lab8_3;
import java.util.Comparator;
/**
* Created by segun on 3/16/2018.
*/
public class SalaryComparator implements Comparator<Employee> {
public int compare(Employee e1, Employee e2) {
if(e1.getSalary() > e2.getSalary())
return 1;
else if(e1.getSalary() < e2.getSa... | true |
df47d623f3be5cc3d86d58f0c7743fee60038dcb | Java | qujian2019/laoschool | /src/com/hngsxy/web/bean/edm/FileFolder.java | UTF-8 | 3,441 | 2.078125 | 2 | [] | no_license | package com.hngsxy.web.bean.edm;
import java.io.Serializable;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
/**
* 文件管理 文件夹实体类
* @author 屈健
*
*/
@Component("fileFolder")
@Scope("prototype")
public class FileFolder implements Serializable{
/**
*
*/
pri... | true |
2ba327298beca88ac962c07c196a4359019d3527 | Java | mominbuet/smc_genome_clients | /src/main/java/Functions/EditDistance.java | UTF-8 | 8,609 | 2.65625 | 3 | [] | no_license | /*
* Md. Momin Al Aziz momin.aziz.cse @ gmail.com
* http://www.mominalaziz.com
*/
package Functions;
import Database.QueryDB;
import Database.Words;
import OPE.RegularOPE;
import Utilities.Paillier;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
impor... | true |
0b93962887860f744b2c3cf9a38988a2e341ac4f | Java | nikelin/SMSi | /console/src/main/java/ru/nikita/platform/sms/console/data/records/ProcessorModel.java | UTF-8 | 1,548 | 2.25 | 2 | [] | no_license | package ru.nikita.platform.sms.console.data.records;
import com.redshape.ui.data.AbstractModelType;
import com.redshape.ui.data.IModelData;
/**
* Created by IntelliJ IDEA.
* User: cyril
* Date: 12/12/11
* Time: 2:59 PM
* To change this template use File | Settings | File Templates.
*/
public class ProcessorMode... | true |
4dbd43f92170e75a874801535c1751edb464ed31 | Java | hadargr/MyPets | /src/main/java/beans/CurrentUserBean.java | UTF-8 | 1,391 | 2.421875 | 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 beans;
import entities.Customer;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.Ses... | true |
4e9a6759862b88f5bd9eb57877e1c24313324cd1 | Java | xl8or/- | /projs./apk/com.facebook.katana-1.7.2/src/com/novell/sasl/client/DigestMD5SaslClient.java | UTF-8 | 15,678 | 1.773438 | 2 | [] | no_license | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: DigestMD5SaslClient.java
package com.novell.sasl.client;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.sec... | true |
0b8fbb39d107ba8daabcaadfaee56c4cc67fec2e | Java | Revanth-R/Playground | /Automated Dictation Evaluation I/Main.java | UTF-8 | 309 | 2.46875 | 2 | [] | no_license | #include<iostream>
using namespace std;
int main()
{
char a[50], b[50];
cin>>a>>b;
int n, count=0;
while (a[count])
count++;
for (int i=0; i<count; i++){
if(a[i]==b[i])
n=1;
else{
n=0;
break;}
}
if (n==1)
cout<<"It is correct";
else
cout<<"It is wrong";
} | true |
3fbd7f4961497c183aabb9eea25c5a89dc795923 | Java | posl/jProphet | /src/main/java/jp/posl/jprophet/test/exporter/PatchDiffExporter.java | UTF-8 | 1,955 | 2.359375 | 2 | [
"MIT"
] | permissive | package jp.posl.jprophet.test.exporter;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.apache.commons.io.FileUtils;
import jp.posl.jprop... | true |
cfe6ca16bdcc3089405a910c0b9c6f7e91ab033a | Java | ShebinR/SimpleDitributedFileSystem | /src/main/java/utilization/UtilizationInitializer.java | UTF-8 | 1,188 | 2.65625 | 3 | [] | no_license | package utilization;
import service.NamespaceStateMachine;
public class UtilizationInitializer implements Runnable {
NamespaceStateMachine nsm;
ClusterUtilization util;
public UtilizationInitializer(NamespaceStateMachine nsm, ClusterUtilization util) {
this.nsm = nsm;
this.util = util;
... | true |
d803de7da6fae81b198003e6f52792ac8ac2aa16 | Java | chaucks/utilities | /src/main/java/com/xcoder/utilities/common/MixedUtensil.java | UTF-8 | 10,285 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package com.xcoder.utilities.common;
import com.xcoder.utilities.IUniversal;
import org.apache.commons.lang3.StringUtils;
import javax.servlet.http.HttpServletRequest;
import java.io.*;
import java.net.URLEncoder;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Collection;
... | true |
60335cb62e1dde01dcd7a658df911bfbca1d7ebf | Java | v1xiii/C196-Student-App | /app/src/main/java/wgu/lschol1/c196/database/CourseEntity.java | UTF-8 | 1,809 | 2.640625 | 3 | [] | no_license | package wgu.lschol1.c196.database;
import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
import java.io.Serializable;
// this thing is basically just a regular object that simultaneously defines a database table
@Entity(tableName = "courses")
public class CourseEntity impl... | true |
cda75500084e8d8429252168aa2255368ffc2bc1 | Java | sonxauxi/OPP | /hackathon/bai1.java | UTF-8 | 1,047 | 3.15625 | 3 | [] | no_license | package buoi11.hakathon2;
import java.util.Scanner;
import java.util.TreeSet;
public class bai1 {
public static void main(String[] args) throws Exception {
TreeSet<Character> arr2 = new TreeSet<>();
Scanner scanner = new Scanner(System.in);
System.out.println("Nhập bất kì để kiểm tra\nHoặc... | true |
d0aa62f64b4d7bf8e312e87898c8f47546966e7b | Java | toxicray/2019-7-3 | /src/test/java/com/pattern/strategy/PromotionStrategy.java | UTF-8 | 196 | 2.078125 | 2 | [] | no_license | package com.pattern.strategy;
/**
* Package:com.pattern.strategy
* *Author:ray
* *version:...
* *Created in 2019/12/31 0:34
**/
public interface PromotionStrategy {
void doPromotion();
}
| true |
1a0f579d185735f5bc1cf66aac6195ca8f65aa34 | Java | mor1/dataware.twitter | /src/dataware/twitter/servlets/ConnectServlet.java | UTF-8 | 5,437 | 2.28125 | 2 | [] | no_license | package dataware.twitter.servlets;
import java.io.IOException;
import java.util.List;
import java.util.logging.Logger;
import javax.jdo.JDOObjectNotFoundException;
import javax.jdo.PersistenceManager;
import javax.jdo.Query;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest... | true |
35246b63eb275fb23c7bd27c4737189271ce6e86 | Java | migueldgoncalves/DSS_practicas | /practica2/src/interfaz/Cliente.java | UTF-8 | 728 | 2.390625 | 2 | [] | no_license | package interfaz;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Cliente {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String resumen;
private String descri... | true |
6d3a2894365a211cd0db5e07407c80b227e7b42c | Java | MeezyProductions/Virtue857-Client | /source/Interface34.java | UTF-8 | 3,537 | 1.703125 | 2 | [] | no_license | /* Interface34 - Decompiled by JODE
* Visit http://jode.sourceforge.net/
*/
public interface Interface34 extends Interface38
{
public void method206(int i, int i_0_, int i_1_, int i_2_, int[] is,
int[] is_3_, int i_4_);
public int method68();
public float method207(float f);
... | true |
69d3a8dbb52d9aa11d0e01a0b6c2f80060bede40 | Java | Losstarot09/Java-Classwork | /src/com/rcs/Classwork/Day22/Book.java | UTF-8 | 786 | 3.359375 | 3 | [] | no_license | package com.rcs.Classwork.Day22;
import java.util.Arrays;
public class Book {
private String name;
private Author[] authors;
public Book(String name, Author[] authors) {
this.name = name;
this.authors = authors;
}
public String getName() {
return this.name;
}
pu... | true |
ee3fbd99facc92241fedf6dd9f5b0b4b3db3d47c | Java | Nimodou2/changer | /app/src/main/java/com/maibo/lvyongsheng/xianhui/view/OnRefreshListener.java | UTF-8 | 261 | 1.617188 | 2 | [] | no_license | package com.maibo.lvyongsheng.xianhui.view;
/**
* Created by LYS on 2016/10/28.
*/
public interface OnRefreshListener {
/**
* 下拉刷新
*/
void onDownPullRefresh();
/**
* 上拉加载更多
*/
void onLoadingMore();
}
| true |
ffd76f7f7557e0cd6e8d2c3ac4d9cb18759b2e7a | Java | techvasishtha/bankapplication | /src/main/java/com/canada/bankdashboard/repository/AccountInfoRepository.java | UTF-8 | 674 | 1.898438 | 2 | [] | no_license | package com.canada.bankdashboard.repository;
import com.canada.bankdashboard.entity.AccountInfo;
import com.canada.bankdashboard.entity.AccountTransaction;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.reposit... | true |
30f1388e2e88ac51a52bd8a94c61ae7e3544061e | Java | weifengtang/ClassDemo | /src/com/twf/class_10/Demo_10.java | UTF-8 | 782 | 3.53125 | 4 | [] | no_license | package com.twf.class_10;
public class Demo_10 {
public static void main(String[] args) {
Father base = new Son();
//base.doTest(); // 调用父静态方法
base.notStatic();// 调用子类非静态方法
}
}
class Father {// 父类静态方法
public static void doTest() {
System.out.println("我是父类静态方法");
}
public void notStatic() { // 父类非静态方法... | true |
820a81ec1b86bac6fc5bcfa67d774f3e687fefe5 | Java | nguyenhoangvannha/ESFileExplorerClone | /app/src/main/java/com/example/nhvn/esfileexplorerclone/controler/MyFileControler.java | UTF-8 | 3,122 | 2.515625 | 3 | [] | no_license | package com.example.nhvn.esfileexplorerclone.controler;
import android.content.Context;
import android.support.v4.content.ContextCompat;
import com.example.nhvn.esfileexplorerclone.model.MyFile;
import java.io.File;
import java.io.FileFilter;
import java.util.ArrayList;
/**
* Created by nguye on 2/3/2018.
*/
pub... | true |
3aee95e30653932d2c601e1ebc36784410db5141 | Java | raulportela/PiIIIEstagiarios | /src/main/java/br/senac/tads/pi3a/livrariatades/servico/pessoa/funcionario/AlterarExcluirFuncionario.java | UTF-8 | 5,786 | 2.03125 | 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.senac.tads.pi3a.livrariatades.servico.pessoa.funcionario;
import br.senac.tads.pi3a.livrariatades.db.dao.pessoa.DaoP... | true |
f67176bc6fc3aa7e54ccb4a6aacdf6eabad07e42 | Java | rayanaprata/uc-padroes-de-projeto-de-software | /provaPratica1/src/SimpleMethodCompression.java | UTF-8 | 482 | 3.4375 | 3 | [] | no_license |
public class SimpleMethodCompression implements CompressionAlgorithm {
public String compress(String string) {
StringBuffer stringBuffer = new StringBuffer();
for (int i = 0; i < string.length(); i++) {
int count = 1;
while (i + 1 < string.length() && string.charAt(i) == string.charAt(i + 1)) {
count... | true |
e08b76e66a07f0f70a57c0740eef78d78469cc93 | Java | yasiragirbas/java | /src/com/class19/yunus.java | UTF-8 | 287 | 2.4375 | 2 | [] | no_license | package com.class19;
public class yunus {
static int a = 10;
public static void main(String[] args) {
yunus obj1 = new yunus();
obj1.a = 15;
System.out.println(obj1.a);
yunus obj2 = new yunus();
System.out.println(obj2.a);
}
}
| true |
47bc87390d88053a0b8dd04ca13d2c2f3e044eb8 | Java | BestJex/fedlearn | /client/src/test/java/com/jdt/fedlearn/client/db/DbTest.java | UTF-8 | 2,189 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package com.jdt.fedlearn.client.db;
import com.jdt.fedlearn.client.dao.MysqlReader;
import com.jdt.fedlearn.client.entity.source.DbSourceConfig;
import com.jdt.fedlearn.client.util.ConfigUtil;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.concurrent.ExecutorServi... | true |
27ffc1a454c2143bef1ae14a1817b9ba7e99f05a | Java | derekzhang79/saas-1 | /client/src/client/app/sections/gui/def/GUIDeleteSection.java | UTF-8 | 262 | 1.523438 | 2 | [
"MIT"
] | permissive | package client.app.sections.gui.def;
import share.core.constants.Constants;
public class GUIDeleteSection
{
public static final String PATH = Constants.GUI_BASE_PATH + "sections/gui/xml/delete_section";
public enum Literals
{
ASK_DELETE
}
} | true |
e19e2bac1ec02c2b14f82c523cce20ac033ccb95 | Java | codehaus/sysunit | /sysunit-old/src/java/org/sysunit/util/Barrier.java | UTF-8 | 479 | 2.734375 | 3 | [
"BSD-2-Clause"
] | permissive | package org.sysunit.util;
public class Barrier {
private int numThreads;
private int numBlocked;
public Barrier(int numThreads) {
this.numThreads = numThreads;
}
public int getNumThreads() {
return this.numThreads;
}
public synchronized void block()
throws Interr... | true |
10f05a618777fee58d02f9480d650a763d2643f0 | Java | hypadilla/NominaEquipo | /NominaEquipo/src/Modelo/Repositorio/JugadoresRepositorio.java | UTF-8 | 2,487 | 2.375 | 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 Modelo.Repositorio;
import Modelo.Entidades.JugadoresEntity;
import Modelo.Entidades.UsuarioEntity;
import java.sql.C... | true |
03d6f75595f99b290c259c66a2da12d6e7cc7faf | Java | aidotproduct/hacker-rank | /src/test/java/leetCode/tree/TreeTest.java | UTF-8 | 1,225 | 3.25 | 3 | [] | no_license | package leetCode.tree;
import leetCode.model.TreeNode;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
class TreeTest {
@Test
void maxDepthTest(){
Tree t = new Tree();
Integer[] rootArray = new Integer[] {3,9,20,null,null,15,7};
assertEquals(3,t.m... | true |
78dd3066e3a3547fe9f8e6041e04153d68bad472 | Java | ProgrammingExperiment/reservations | /src/main/java/com/api/controllers/MembershipController.java | UTF-8 | 2,271 | 2.796875 | 3 | [] | no_license | package com.api.controllers;
import java.util.ArrayList;
import java.util.List;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframe... | true |
fb29df3db90691c123f196df042485ad74b4f0ca | Java | BAI-HANK/educational-platform | /courses/application/src/main/java/com/educational/platform/courses/course/create/CreateCurriculumItemCommand.java | UTF-8 | 299 | 1.789063 | 2 | [
"MIT"
] | permissive | package com.educational.platform.courses.course.create;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public abstract class CreateCurriculumItemCommand {
private final String title;
private final String description;
private final Integer serialNumber;
}
| true |
bf179dc5127bafe39450a87cdf7fd5759aad9aee | Java | Abdul007Malik/Conversa | /app/src/main/java/buddy/conversa/ContactListActivity.java | UTF-8 | 1,855 | 1.992188 | 2 | [] | no_license | package buddy.conversa;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
imp... | true |
b422b245719499ae7a66b5f6dc4ac3b8d1930135 | Java | Rydlis/Kalkulacka | /src/sample/Controller.java | UTF-8 | 10,468 | 2.453125 | 2 | [] | no_license | package sample;
import javafx.event.ActionEvent;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
public class Controller {
public TextField display;
public Button MC;
public Button MR;
public Button MCplus;
public Button M... | true |
5d1783f9ff0557634c273d0fc8af21e6b8b18dc3 | Java | xinsec/SSH | /HelloWeb/day28/src/com/reborn/proxy/Demo3/ProxyFactory.java | UTF-8 | 1,636 | 2.828125 | 3 | [] | no_license | package com.reborn.proxy.Demo3;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
/**
* Created by Reborn。 on 2017/6/1.
*/
public class ProxyFactory {
private Object targetObject;
private BeforeAdvice beforeAdvice;
private AfterAdvice afterAdvic... | true |
a34bdb05b1efd73f8aad8617e7ff56f5442bcb6a | Java | wuyk/LogisticsSystem | /src/main/java/cdu/logistics/service/impl/CarsSupplyServiceImpl.java | UTF-8 | 1,904 | 2.03125 | 2 | [] | no_license | package cdu.logistics.service.impl;
import cdu.logistics.bean.CarsSupply;
import cdu.logistics.bean.GoodsSupply;
import cdu.logistics.dao.CarsSupplyDao;
import cdu.logistics.service.CarsSupplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
... | true |
073070723185e1612fdb178921c57265b8fc526b | Java | xiedongmingming/maven-test | /guice/src/main/java/org/xiem/com/guice/HelloWorldSubImpl.java | UTF-8 | 169 | 2 | 2 | [] | no_license | package org.xiem.com.guice;
public class HelloWorldSubImpl extends HelloWorldImpl {
@Override
public String sayHello() {
return "hello world subimpl";
}
}
| true |
5019bf7ff547952d95e9af80394fbb4929f77964 | Java | janickic/RMI-Clock-Synchronization | /DefaultSystemTime.java | UTF-8 | 393 | 3.09375 | 3 | [] | no_license | import java.time.Instant;
// Implementing the remote interface
public class DefaultSystemTime implements SystemTime {
// Implementing the interface method
public long getSystemTime() {
// Calculating Epoch time on server
long time = Instant.now().toEpochMilli();
System.out.println("This i... | true |
71f02596a2109e69adbd8f340a8dae3544f5ec6d | Java | jiangzhenjian/FineReport | /plugin-vancharts/src/com/fr/plugin/chart/pie/VanChartPiePlotGlyph.java | GB18030 | 33,483 | 1.984375 | 2 | [] | no_license | package com.fr.plugin.chart.pie;
import com.fr.base.background.ColorBackground;
import com.fr.chart.base.*;
import com.fr.chart.chartglyph.*;
import com.fr.data.condition.Result;
import com.fr.general.ComparatorUtils;
import com.fr.json.JSONException;
import com.fr.json.JSONObject;
import com.fr.plugin.chart.attr.VanC... | true |
0b643a046714d8ef89d032591f6241b0d938e4cf | Java | aheadlcx/analyzeApk | /zuiyou/sources/javax/validation/ConstraintDeclarationException.java | UTF-8 | 370 | 2.234375 | 2 | [] | no_license | package javax.validation;
public class ConstraintDeclarationException extends ValidationException {
public ConstraintDeclarationException(String str) {
super(str);
}
public ConstraintDeclarationException(String str, Throwable th) {
super(str, th);
}
public ConstraintDeclarationExc... | true |
b87df6bb3060ea94372fd05d189524446d0a6155 | Java | Srchavier/academia-daryoku | /src/main/java/br/com/academiaDaryoku/respository/PresencaRepository.java | UTF-8 | 382 | 1.875 | 2 | [] | no_license | package br.com.academiaDaryoku.respository;
import java.io.Serializable;
import br.com.academiaDaryoku.model.TbPresenca;
public class PresencaRepository extends RepositoryImpl<TbPresenca> implements Serializable{
private static final long serialVersionUID = -2795482879946374047L;
public void name()... | true |
874d7ef00433087af204e5903b770517fabb351b | Java | java110/MicroCommunity | /service-store/src/main/java/com/java110/store/cmd/resourceStoreType/DeleteResourceStoreTypeCmd.java | UTF-8 | 2,820 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package com.java110.store.cmd.resourceStoreType;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.annotation.Java110Cmd;
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.Cmd;
import com.java110.core.event.cmd.CmdEvent;
import com.java110.dto.resourceStoreType.Resour... | true |
bec36112aed219643280f1b9b652a422788cbd31 | Java | zyuanxi20141221/coordinators | /coordinators/src/main/java/com/squareup/coordinators/Binding.java | UTF-8 | 1,971 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2016 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | true |
1e4c37754c0297817e66c5f51b97d133755cf072 | Java | tienbt93/QuanlyChungcu | /src/Model/Canho.java | UTF-8 | 3,357 | 2.265625 | 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 Model;
import java.util.Vector;
import utils.Common;
/**
*
* @author PTIT
*/
public class Canho {
private int idCanho... | true |
4f4765296c61d8605c956088732dbc4fc7a2013f | Java | aaajain/SOLID | /ISP/src/Bad/NotifyUser.java | UTF-8 | 209 | 1.992188 | 2 | [] | no_license | package Bad;
public class NotifyUser {
public User getUser()
{
return new User();
}
public void setUser(User user)
{
}
public static void notifyUser(String message)
{
}
}
| true |
c162dcd0b24808fd139ac9485e048455c50bde12 | Java | apache/jena | /jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPTreeRangeIterator.java | UTF-8 | 5,000 | 2.078125 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
e703ee37e67a6d115ff5dd03171f8aa1f2ccb55b | Java | falgunrangani21/VisitorManagement | /VisitorManagement/src/main/java/com/efive/VisitorManagement/master/repository/VisitorCompanyRepository.java | UTF-8 | 1,466 | 1.945313 | 2 | [] | no_license | package com.efive.VisitorManagement.master.repository;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframewor... | true |
87375d1e37bbc0a737d52064c6ef41fd3c658700 | Java | bungleon/test | /src/main/java/com/test/component/ScheduledTask.java | UTF-8 | 4,256 | 2.625 | 3 | [] | no_license | package com.test.component;
import com.google.gson.Gson;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;
import com.test.Async.AsyncTask;
import com.test.lambdaexpressions.LambdaTest;
import com.test.model.response.EuroParity;
import org.json.JSONObject;
import org.springframewor... | true |
8cb3723f41574acfc81d9abdae85520466ff75e3 | Java | juliorgm/SchoolArt | /app/src/main/java/br/senac/schoolart/dao/AlunoDAO.java | UTF-8 | 3,260 | 2.71875 | 3 | [] | no_license | package br.senac.schoolart.dao;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.ArrayList;
import java.util.List;
import br.senac.schoolart.model.Alun... | true |
5f9b62bf431eb9151193d366e0809a63ecef22b9 | Java | sameerchandekar/myfinalyearproject | /bookStor/src/database/DBConnect.java | UTF-8 | 354 | 2.5625 | 3 | [] | no_license | package database;
import java.sql.Connection;
import java.sql.DriverManager;
public class DBConnect
{
static Connection con=null;
public static Connection getConnected()
{
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:bookStore");
}
catch (Exception e... | true |
0349bc3daeebe6c079ed11d41004fabf638f9c32 | Java | wxrighttoleft/xkjexam | /SOURCE/CRM_30129/src/com/xiongkaijie/entity/EmployeeZ.java | UTF-8 | 1,830 | 1.890625 | 2 | [] | no_license | package com.xiongkaijie.entity;
import java.util.Date;
public class EmployeeZ {
private int id;
private String empLoginName;
private String empLoginPwd;
private String empName;
private int empSex;
private Date empBirthday;
private String empAddress;
private String empTel;
private String empMobel... | true |
acd0aa14f0cbfe324a9f4e400493058c31828faf | Java | BedirT/JavaClass_Momentum_2019 | /PREP/Class3/forLoopExercises.java | UTF-8 | 278 | 2.8125 | 3 | [] | no_license | // 3rd Class 2nd Part
public class forLoopExercises {
public static void main(String[] args) {
// Print I'm here!" 10 times
// Create a loop that counts from 7 to 1
// Print 2's powers from 1 to 32 as result
// 1 - 2 - 4 - 8 - 16 - 32
}
}
| true |
1e57dfb1d88e022b865b441439f17a21a1171374 | Java | zagart/rent | /src/main/rent/model/services/impl/CustomerService.java | UTF-8 | 320 | 1.539063 | 2 | [
"Apache-2.0"
] | permissive | package rent.model.services.impl;
import rent.model.dao.impl.CustomerDao;
import rent.model.entities.Customer;
import rent.model.services.AbstractService;
/**
* Service implementation for {@link Customer}.
*
* @author zagart
*/
public class CustomerService extends AbstractService<Customer, Long, CustomerDao> {
}
| true |
2b8ba09b6587c9be7db2bd3feb92822896ba9d2a | Java | Pastew/ISEngineerExam | /app/src/main/java/com/pastew/isexam/FinalStrings.java | UTF-8 | 467 | 1.53125 | 2 | [] | no_license | package com.pastew.isexam;
/**
* Created by Pastew on 2015-12-28.
*/
public class FinalStrings {
public static final String SCORES = "SCORE";
public static final String CURRENT_QUESTION = "CURRENT_QUESTION";
public static final String ONLINE_SHARED_PREFERENCES = "ONLINE_SHARED_PREFERENCES";
public st... | true |
fb9566232cb4b11ba4e34746be1691777ee55a95 | Java | juberpatel/BioinfoUtils | /src/org/mskcc/juber/util/CustomCaptureException.java | UTF-8 | 206 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | /**
*
*/
package org.mskcc.juber.util;
/**
* @author Juber Patel
*
*
*/
public class CustomCaptureException extends Exception
{
public CustomCaptureException(String message)
{
super(message);
}
}
| true |
5e3501a7f34a2bae4cdf8e7afd14d833f6f815dd | Java | kceun/algorithm-study | /src/algorithm/swea/D4/no2819.java | UTF-8 | 1,109 | 3.0625 | 3 | [] | no_license | package algorithm.swea.D4;
import java.util.HashSet;
import java.util.Scanner;
public class no2819 {
public static int T;
public static int map[][];
public static HashSet<String> set = new HashSet<>();
public static int dx[] = {0,1,0,-1};
public static int dy[] = {1,0,-1,0};
public static void main(String[] a... | true |
459f2e27582dd8b59173bc8a31113319f930fff9 | Java | BradleyWood/Raven-Lang | /raven-compiler/src/main/java/org/raven/antlr/ast/Expression.java | UTF-8 | 1,138 | 3.234375 | 3 | [
"MIT"
] | permissive | package org.raven.antlr.ast;
import java.util.Objects;
public class Expression extends Statement {
private boolean pop = false;
@Override
public void accept(final TreeVisitor visitor) {
throw new RuntimeException("Invalid Expression Node");
}
/**
* Sometimes the return value is not... | true |
b8b26c77ffbf0841462e638249ca2b3b5cded83c | Java | adrianomorgon/Projeto-final-Conta-POO | /src/entities/Program.java | UTF-8 | 3,533 | 3.671875 | 4 | [] | no_license | package entities;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Program {
public static void main(String[] args) {
List<Conta> contas = new ArrayList<>();
List<Cliente> clientes = ne... | true |
997278c34b81cb9bc141c6ca41a472cde4f71576 | Java | manfeel/android_vendor_lewa | /packages/apps/Phone/src/com/tencent/tmsecure/aresengine/dao/SmsDao.java | UTF-8 | 1,725 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.tencent.tmsecure.aresengine.dao;
import java.util.ArrayList;
import java.util.List;
import com.tencent.tmsecure.module.aresengine.FilterResult;
import com.tencent.tmsecure.module.aresengine.ISmsDao;
import com.tencent.tmsecure.module.aresengine.SmsEntity;
public class SmsDao implements ISmsDao<S... | true |
da44dfac192b8a3fc942177f035726d1dc51543d | Java | Serede/ramen | /src/jp/ramen/LocalMessage.java | UTF-8 | 886 | 3.390625 | 3 | [] | no_license | package jp.ramen;
/**
* This module implements the LocalMessage as main structure of the inbox
* @author Sergio Fuentes de Uña "sergio.fuentesd@estudiante.uam.es"
* @author Daniel Perdices Burrero "daniel.perdices@estudiante.uam.es"
*/
public class LocalMessage {
private boolean read;
private Message reference;
... | true |
44271eb60ba0dbc67ce92af04716b4752f4bf93c | Java | OFRF/BladeRush | /gameserver/src/main/java/ru/l2/gameserver/network/lineage2/components/IncomingPackets.java | UTF-8 | 8,595 | 1.710938 | 2 | [] | no_license | package ru.l2.gameserver.network.lineage2.components;
import java.util.Arrays;
/**
* Created by JunkyFunky
* on 16.01.2018 22:25
* group j2dev
*/
public enum IncomingPackets {
Action(0x04),
AnswerJoinPartyRoom(0xD0, 0x15),
AnswerTradeRequest(0x44),
BypassUserCmd(0xAA),
CanNotMoveAnymore(0x36)... | true |