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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
df04b67d777287e1900b9db3e6698ab1f1b0e15c | Java | Amberllo/TuCamera | /app/src/com/mixcolours/photoshare/custom/ui/CuterFragment.java | UTF-8 | 5,994 | 1.828125 | 2 | [] | no_license | package com.mixcolours.photoshare.custom.ui;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import com.mixcolours.photoshare.R;
import org.lasque.tusdk.core.TuSdkContext;
import org.lasque.tusdk.core.seles.tusdk.FilterImageViewI... | true |
bfb0df156e5f7e998c730cd1b027d75d318e4d24 | Java | nikclayton/android-squeezer | /Squeezer/src/main/java/uk/org/ngo/squeezer/download/DownloadDatabase.java | UTF-8 | 10,667 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2014 Kurt Aaholst <kaaholst@gmail.com>
*
* 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 a... | true |
d0d112f11c6e1599787e573e54c988cba95705b0 | Java | sidan001/jkd8 | /src/main/java/com/chou/functional_interface/TestFunctionalInterface.java | UTF-8 | 527 | 2.90625 | 3 | [] | no_license | package com.chou.functional_interface;
import java.util.Objects;
import java.util.function.Consumer;
/**
* Created by Administrator on 2016/12/19.
*/
@FunctionalInterface
public interface TestFunctionalInterface<T> {
void test(T t);
boolean equals(Object obj);
String toString();
default void def... | true |
3fe091ffaf0d390b6d0a981c512f0f39b81d3245 | Java | augustoerico/pcsos | /PCSOS/src/epusp/pcs/os/shared/model/attribute/Category.java | UTF-8 | 783 | 2.4375 | 2 | [] | no_license | package epusp.pcs.os.shared.model.attribute;
import java.io.Serializable;
import com.google.gwt.core.client.GWT;
import epusp.pcs.os.shared.client.constants.CommonWorkspaceConstants;
public enum Category implements Serializable{
GeneralInfo, PhysicalProfile, MedicalData, PersonalVehicle;
public St... | true |
f802b1cf562c802c30e5b1efe50ba1d9a5a79522 | Java | gluo7777/Utility-Applications | /src/main/java/org/william/apps/utils/JsonUtil.java | UTF-8 | 1,256 | 2.71875 | 3 | [] | no_license | package org.william.apps.utils;
import java.util.Map.Entry;
import org.william.apps.utils.pojo.TestPojo;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
public enum JsonUtil {
INSTANCE;
private final JsonParser parser = new J... | true |
180f619ccbf811f7526b8a5a9ecefb7aaaec6ab3 | Java | yangjiahao199853/demo | /src/main/java/com/example/demo/entity/Book.java | UTF-8 | 845 | 2.015625 | 2 | [] | no_license | package com.example.demo.entity;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
... | true |
8db7320f0a3b1df83f88b3a779d26216ddd2486d | Java | anamn/APS-2.0 | /Aps-2.0/src/br/com/aps/consequencia/DesperdicioDeAgua.java | ISO-8859-1 | 990 | 2.875 | 3 | [] | no_license | package br.com.aps.consequencia;
public class DesperdicioDeAgua extends Consequencias {
public String escovarOsDentes() {
return "\nSe voc escovar os dentes 3 vezes ao dia como recomandado fechando sua toneira gastaria cerca de 1.5l, e caso no feche a torneira gastaria 36l.\nEconomize feche escove aps as refeies e... | true |
26c3335960a811c5850b78e0d5bf4f7e526f059b | Java | NationalFortune/thisguys614 | /src/main/java/com/pro/controller/ProductsDetails.java | UTF-8 | 3,861 | 2.21875 | 2 | [] | no_license | package com.pro.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.... | true |
b805581fc8e1a1c2a7e118f744798a502b80c01b | Java | PPFei5Zhou/base | /src/main/java/com/easy/base/config/security/CustomAuthenticationProvider.java | UTF-8 | 2,214 | 2.28125 | 2 | [
"MIT"
] | permissive | package com.easy.base.config.security;
import com.easy.base.service.impl.user.UserService;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.security.authentication.DisabledException;
import... | true |
fb0b079dedae545cb78989f32ca060f14279b603 | Java | ivanaborisavljevic/servlet-zadatak | /src/main/java/engineering/it/web/servletzadatak/model/Manufacturer.java | UTF-8 | 2,290 | 2.6875 | 3 | [] | no_license | package engineering.it.web.servletzadatak.model;
public class Manufacturer {
private long PIB;
private long companyNumber;
private String name;
private String address;
private City city;
public Manufacturer() {
// TODO Auto-generated constructor stub
}
public Manufacturer(long PIB, String address, long companyNumber,... | true |
ed4e2189e92647e3ed373667c6b1a60f7c7d4a09 | Java | Julien-PRD/L3 | /Semestre 2/Java/TP3/MotDansLeTitre.java | UTF-8 | 652 | 3.078125 | 3 | [] | no_license | /**
* @author LeNomDeLEtudiant
* @version 0.1 : Date : Tue Jan 19 10:46:05 CET 2021
*
*/
public class MotDansLeTitre implements Selectionneur {
private String mot = new String();
/**
* Constructeur qui permet de rentrer un mot sous forme de chaine
* de caratère
* @param Une chaine de caractère
*/
public M... | true |
6a02a331753aa34e5dfd6a90e405cab59b97c0fb | Java | soldiers1989/comsui | /bridgewater-deduct/src/test/java/com/suidifu/bridgewater/controller/post/BaseApiTestPost.java | UTF-8 | 1,729 | 1.859375 | 2 | [] | no_license | package com.suidifu.bridgewater.controller.post;
import java.util.HashMap;
import java.util.Map;
import com.suidifu.bridgewater.api.util.ApiSignUtils;
/**
* 贷后接口测试用
* @author zhanghongbing
*
*/
public class BaseApiTestPost {
private static final String TEST_MERCHANT_CREATE_SQL = "INSERT INTO `t_merchant_confi... | true |
0fbe9ea15c14ebb5b3144c7dd5e421fbed73214e | Java | rameshanupati/Latest_Scripts | /SampleGit/src/Sample.java | UTF-8 | 396 | 1.648438 | 2 | [] | no_license | /**
*
*/
/**
* @author aramesh
*
*/
public class Sample {
/**
* @param args
*
*
*/
public void temp()
{
}
private void display(){
// TODO Auto-generated method stub
}
private void hello() {
// TODO Auto-generated method stub
}
public static v... | true |
bd99fe435d5e892e9ac87c657c201d3560018bca | Java | 97jorx/java-practicas | /TAREAS/T096-BOLETIN/src/Cifraca.java | UTF-8 | 1,531 | 3.015625 | 3 | [] | no_license | public class Cifraca {
private String s1;
private String s2;
private String s3;
private String s4;
private String s5;
private int numero;
public Cifraca(int numero){
}
public String numero(int n) {
switch(n){
case 0:
s... | true |
957c3afef89c6b6adadba7366017ec954d0f311c | Java | sycoumba/tpspringbootsenforage | /src/main/java/sn/senforage/dao/IUser.java | UTF-8 | 595 | 1.976563 | 2 | [] | no_license | package sn.senforage.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import sn.senforage.entities.Roles;
import sn.senforage.entities.User;... | true |
546221a98124428a98e1e186313546293c7995c7 | Java | Drakesdrs/Gavhack | /src/main/java/me/gavin/gavhack/setting/BooleanSetting.java | UTF-8 | 222 | 2.171875 | 2 | [] | no_license | package me.gavin.gavhack.setting;
public class BooleanSetting extends Setting {
public boolean value;
public BooleanSetting(String name, boolean value) {
super(name);
this.value = value;
}
}
| true |
2363eae8e3dc46adee4d2c2a8692f60534bdc783 | Java | alvinjo/AccountProject | /src/main/java/business/Service.java | UTF-8 | 715 | 2 | 2 | [] | no_license | package business;
import persistence.repository.AccountDBRepo;
import persistence.repository.IAccountDB;
import javax.inject.Inject;
public class Service {
@Inject
private IAccountDB repo;
public Service(){
}
public String getAllAccounts(){
return repo.getAllAccounts();
}
pu... | true |
22a84d4db0e87cf6b58ee4baac04e74aa9029568 | Java | Kast0rTr0y/ao-plugin | /activeobjects-dbex/src/main/java/com/atlassian/dbexporter/node/NodeStreamReader.java | UTF-8 | 915 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package com.atlassian.dbexporter.node;
import java.io.Closeable;
/**
* Provides streaming read access to a node graph.
*
* @author Erik van Zijst
*/
public interface NodeStreamReader extends Closeable {
/**
* Returns the root node of the object tree. The method can only be invoked
* once. Subsequen... | true |
fca0d3e3a776aad1ee14cb5de9364f1366721450 | Java | marcos-s1/Estrutura-de-dados | /Clube_da_luta/src/clube_da_luta/Pessoa.java | UTF-8 | 1,364 | 2.59375 | 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 clube_da_luta;
/**
*
* @author manto
*/
public abstract class Pessoa {
private String titulo;
private ... | true |
5289211eb089fbbce3899e60590d24a8d94f65c2 | Java | yliang138/MyProjects | /MyJsonParser/src/com/example/myjsonparser/MainActivity.java | UTF-8 | 2,481 | 2.1875 | 2 | [] | no_license | package com.example.myjsonparser;
import java.util.List;
import android.app.ListActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.wid... | true |
c5e3561190eb2c5286d6f7dd1becf5da9eef1f84 | Java | mrKyleWang/leetcode_practice | /src/map/RegionsCutBySlashes.java | UTF-8 | 3,831 | 3.71875 | 4 | [] | no_license | package map;
import org.junit.Assert;
import org.junit.Test;
/**
* 959. 由斜杠划分区域
* @author KyleWang
* @version 1.0
* @date 2021年01月25日
*/
public class RegionsCutBySlashes {
/*
在由 1 x 1 方格组成的 N x N 网格 grid 中,每个 1 x 1 方块由 /、\ 或空格构成。这些字符会将方块划分为一些共边的区域。
(请注意,反斜杠字符是转义的,因此 \ 用 "\\" 表示。)。
返回... | true |
badd6494d5f184be3aa2a4024cd5aafa5862ea1e | Java | Master-for-Rapscal/health1 | /src/main/java/com/aaa/health/service/emerg/EmerGenciesServiceImpl.java | UTF-8 | 1,296 | 1.992188 | 2 | [] | no_license | package com.aaa.health.service.emerg;
import com.aaa.health.entity.area.Area;
import com.aaa.health.entity.emerg.EmerGencies;
import com.aaa.health.mapper.emerg.EmerGenciesMapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@Service
pub... | true |
8e754e43d2e193b77fe3ffc53f3320b536de2c34 | Java | oublalmed/StockFst | /src/projetfst/Produit.java | UTF-8 | 27,849 | 1.984375 | 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 projetfst;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.Resul... | true |
ad73cf1936e0c68692f471cff374aeb76e6108be | Java | FairWindCo/SCDCommunication | /src/ua/pp/fairwind/communications/devices/hardwaredevices/dp5/DPSpectrumValueChanel.java | UTF-8 | 1,066 | 2.390625 | 2 | [] | no_license | package ua.pp.fairwind.communications.devices.hardwaredevices.dp5;
import ua.pp.fairwind.communications.propertyes.abstraction.ValueProperty;
import ua.pp.fairwind.communications.propertyes.groups.GroupProperty;
import ua.pp.fairwind.communications.propertyes.software.SoftIntegerProperty;
/**
* Created by Сергей on ... | true |
3efc5ac819a37bc0e874625d40007d77ed18bcfc | Java | dovilemika/laboratorinis2 | /app/src/main/java/com/example/corona/Validation.java | UTF-8 | 2,433 | 2.65625 | 3 | [] | no_license | package com.example.corona;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Validation {
public static final String USERNAME_REGEX_PATTERN = "^[a-zA-Z0-9]{3,20}$"; //per static prieina; public turi buti, o ne private; ir final turi buti - final galutinis, nebekeicia; tai globalus kin... | true |
7c7cb6aa4bed5ada48a2d3cbdec99d565fa2cdd3 | Java | hasDevang/FRS-KNN-Spark | /uwt/knn/InMemoryKnnRows.java | UTF-8 | 1,543 | 2.75 | 3 | [] | no_license | package uwt.knn;
import java.util.Arrays;
import java.util.List;
public class InMemoryKnnRows {
double[] numericAttrs;
//double[][] attributes;
int rowCount = 0;
KnnRow[] trainingSet;
int numOfRows = 0;
int[] rowIds, foldNo;
String[] labels;
public InMemoryKnnRows(KnnRow[] trainingSet) {
this.trainingSet = ... | true |
356c1a7e0c4a3bb88ea78fbb13e2673ea6701119 | Java | zhouyuan93/leetcode | /src/main/java/v1/t700/T715.java | UTF-8 | 2,552 | 3.015625 | 3 | [] | no_license | package v1.t700;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* 线段树
*/
public class T715 {
static class RangeModule {
public RangeModule() {
}
public void addRange(int left, int right) {
update(root, 1, N, left,... | true |
2c897a8cd95a60ef9efeda5f55456114a106ffd7 | Java | PedroHCT/Wild-Cats-Codes | /wild_cats_banco_de_dados/src/main/java/com/wildcats/project/ProjectApplication.java | UTF-8 | 1,538 | 2.09375 | 2 | [] | no_license | package com.wildcats.project;
import com.wildcats.project.entity.User;
import com.wildcats.project.request.UserRequest;
import com.wildcats.project.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplicati... | true |
81cd3866e70396008b6085f5a8cfa789e3133d40 | Java | Ilya-Shemanuev/code_exmpl | /src/main/java/steps/WebAsserts.java | UTF-8 | 556 | 2.09375 | 2 | [] | no_license | package steps;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.Wait;
import org.openqa.selenium.support.ui.WebDriverWait;
import pages.ExoElement;
import static util.Utility.getDriver;
public class WebAsserts {
public static f... | true |
c7ff980b5c7a9d10282177768286132f56caec25 | Java | JackFish/book-storage-practice | /apps/backend/security/src/main/java/kr/bookstorage/security/filter/StatelessLoginFilter.java | UTF-8 | 4,285 | 2.28125 | 2 | [] | no_license | package kr.bookstorage.security.filter;
import com.fasterxml.jackson.databind.ObjectMapper;
import kr.bookstorage.domain.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.authentication.UsernamePasswordAuthenticationTo... | true |
272f0e95fc2810d67b47501d34a851c04b5ce4be | Java | chanwoong528/codingTestPrep | /src/backtracking/Main9663.java | UTF-8 | 1,484 | 3.125 | 3 | [] | no_license | package backtracking;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main9663 {
public static int count;
public static int n;
public static boolean[][] board;
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedR... | true |
f816f1d79be5cd6da7a2993dd139def837dde101 | Java | Ariah-Group/Continuity | /src/test/java/org/kuali/continuity/admin/dao/GenericAdminDAOTest.java | UTF-8 | 2,339 | 1.898438 | 2 | [
"LGPL-2.0-or-later",
"ICU",
"CPL-1.0",
"MPL-2.0",
"Apache-2.0",
"Plexus",
"CDDL-1.0",
"ECL-2.0"
] | permissive | //
// Copyright 2011 Kuali Foundation, Inc. Licensed under the
// Educational Community 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.opensource.org/licenses/ecl2.php
//
// Unless required ... | true |
44bcb2c3b27f525d8cee67284b6331b536e6dba5 | Java | hugezp/LaiHuiChuXingApi | /src/main/java/com/lhcx/model/PayActionType.java | UTF-8 | 393 | 2.40625 | 2 | [] | no_license | package com.lhcx.model;
public enum PayActionType {
spending(0,"转出 "),income(1,"转入"),refund(2,"退款"),withdrawal(3,"提现");
private Integer value;
private String message;
private PayActionType(Integer value, String message) {
this.value = value;
this.message = message;
}
public Integer value() {
return val... | true |
e26f01e69a83b0ff324d5b8ab70056e67a724026 | Java | rohan-jha/DS_ALGO_PROBLEMS | /jha/ds/arrays/rotation/problems/HackerRankPerfTestTOBE_DEL_LATER.java | UTF-8 | 1,299 | 3.171875 | 3 | [
"MIT"
] | permissive | package ds.arrays.rotation.problems;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class HackerRankPerfTestTOBE_DEL_LATER {
public static void main(String[] args) throws Exception{
File f = new File("C:\\Users\\jharohan\\Desktop\\input.txt");
/* ... | true |
6d220b6b572b16b71ca22ae6ef715cda0a754517 | Java | iantal/AndroidPermissions | /apks/playstore_apps/com_ubercab/source/com/ubercab/motionstash/realtime/model/BarometerEventBufferInfo.java | UTF-8 | 1,401 | 2.09375 | 2 | [
"Apache-2.0",
"GPL-1.0-or-later"
] | permissive | package com.ubercab.motionstash.realtime.model;
import com.ubercab.shape.Shape;
@Shape
public abstract class BarometerEventBufferInfo
implements MotionStashEventBufferInfo
{
public BarometerEventBufferInfo() {}
public static BarometerEventBufferInfo create(int paramInt1, int paramInt2, double paramDouble1, d... | true |
fa2f56246beddf4c3396803749ada2a347f231c9 | Java | QuadFlask/caffeineoverflow | /src/main/flask/utils/FlaskUtil.java | UTF-8 | 26,909 | 2.78125 | 3 | [] | no_license | package main.flask.utils;
import java.awt.*;
import java.util.ArrayList;
import java.util.Arrays;
/**
*
* @author Flask
*
*/
public final class FlaskUtil {
public final static double RAD = 180 / Math.PI;
public final static double inverseRAD = Math.PI / 180;
public final static Vec2D Zpoint = new Vec2D(0, ... | true |
8532398d6fea7cf9924319979a11b79c38e829ff | Java | kadySoum/React_project | /THEPROJECT/src/bd/Mongo.java | UTF-8 | 908 | 2.375 | 2 | [] | no_license | package bd;
import org.bson.Document;
import com.mongodb.MongoClient;
import com.mongodb.MongoException;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoCursor;
import com.mongodb.client.MongoDatabase;
public class Mongo {
public static void main(String[] args) {
try {
MongoClient... | true |
742e1b65b380b9762da8b96058868a13d263440b | Java | wikier/asciitable | /src/main/java/de/vandermeer/asciitable/v2/themes/AbstractRowTheme.java | UTF-8 | 2,978 | 2.59375 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | /* Copyright 2014 Sven van der Meer <vdmeer.sven@mykolab.com>
*
* 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 |
5181a223071c784c5d18ee45c22d48d73f6f571d | Java | jmrequioma/Mini-Statistical-Package | /Mini SP/src/main/MainFields3.java | UTF-8 | 1,135 | 2.515625 | 3 | [] | no_license | package main;
import java.util.ArrayList;
import java.util.List;
public class MainFields3 {
private static String samplingTechnique;
private static int populationSize;
private static List<Data> samplingFrame = new ArrayList<Data>();
private static String dataType;
public static String getSampling... | true |
63794611ef04a043d4029166a7c5043ef0618d7b | Java | felipecamatta/republica-spring | /src/main/java/com/dev/republica/repository/MoradorRepository.java | UTF-8 | 544 | 1.914063 | 2 | [] | no_license | package com.dev.republica.repository;
import com.dev.republica.model.Morador;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface Morad... | true |
61053d04a4ea498359813b3f4b5656616dba7672 | Java | Kovaleski/workspace | /GUIChallenge/src/challengeGUI/Align.java | UTF-8 | 2,186 | 2.8125 | 3 | [] | no_license | package challengeGUI;
// Christopher Kovaleski
// Challenge part 2
// COP 3330
// Due December 6, 2013
import java.awt.*;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class Align extends JFrame {
private static final l... | true |
da72453dcc620a61523b35c6020d7878e79ad221 | Java | codermaan/HashMap | /CharFrequencyByHashMap.java | UTF-8 | 938 | 3.515625 | 4 | [] | no_license | package hashMap;
import java.util.HashMap;
//import java.util.Map;
import java.util.Scanner;
public class CharFrequencyByHashMap {
static void findFrequency(String str) {
HashMap<Character, Integer> hmap = new HashMap<>();
char arr[] = str.toCharArray();
for(char val : arr) {
if(hmap.containsKey(val)) {
... | true |
cdf6bf892e6e1031961aa52b79b66919ce0cf016 | Java | CruxMDQ/diy | /DIYExercise/src/org/globant/emilglober/diy/db/DBHelper.java | UTF-8 | 3,049 | 2.3125 | 2 | [] | no_license | package org.globant.emilglober.diy.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
public class DBHelper extends SQLiteOpenHelper {
priv... | true |
9b15dab03276efad022200a31e2bc24b19a426fc | Java | authrus/database | /authrus-database-engine/src/main/java/com/authrus/database/engine/index/ClusterIterator.java | UTF-8 | 1,790 | 2.609375 | 3 | [] | no_license | package com.authrus.database.engine.index;
import java.util.Collections;
import java.util.Iterator;
import java.util.Set;
import com.authrus.database.engine.Row;
public class ClusterIterator implements Iterator<Row> {
private Iterator<Cluster> clusters;
private Iterator<Row> tuples;
private Set<Cluster>... | true |
136168623d357ca09ea12bebdec9487a873f4bb7 | Java | CS2103AUG2017-F11-B1/main | /src/test/java/seedu/address/logic/parser/SortCommandParserTest.java | UTF-8 | 1,705 | 2.5625 | 3 | [
"MIT"
] | permissive | package seedu.address.logic.parser;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.logic.parser.CliSyntax.PREFIX_ADDRESS;
import static seedu.address.logic.parser.CliSyntax.PREFIX_EMAIL;
import static seedu.address.logic.parser.CliSyntax.PREFIX_GROUP;
impo... | true |
2ce48e1bcab08c2f39259d18f88c37cb167e29c3 | Java | Jcateye/wechatreader | /src/main/java/com/jxlg/haoqi/wechatreader/pojo/ReadLog.java | UTF-8 | 1,148 | 2.015625 | 2 | [] | no_license | package com.jxlg.haoqi.wechatreader.pojo;
import java.io.Serializable;
import java.util.Date;
public class ReadLog implements Serializable {
private String id;
private String chapterId;
private Integer length;
private Date createTime;
private Date updateTime;
private static final long ser... | true |
7ff59c3d7ec78ead23747d394db09fe46ae7ee1b | Java | RaghavInfoTech/springboot | /SpringBootIgnitePoc/src/main/java/com/info/springboot/crud/service/BookService.java | UTF-8 | 1,215 | 2.515625 | 3 | [] | no_license | package com.info.springboot.crud.service;
import java.util.List;
import org.apache.ignite.IgniteSpringBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import com.info.springboot.crud.entity.Book;
im... | true |
3010f1259866be446c80fe776266993fa34f6978 | Java | TigerChain/designpattern_javademo | /src/template/examination_page/Test.java | UTF-8 | 373 | 2.15625 | 2 | [] | no_license | package template.examination_page;
/**
* Created by TigerChain
*/
public class Test {
public static void main(String args[]){
ExaminationPage xiaoMing = new XiaoMing() ;
xiaoMing.zuoTi();
System.out.println("==========华丽的分隔线==========") ;
ExaminationPage xiaoZhang = new XiaoZhan... | true |
7b0bba4c98494d3036d986feb90ded1cbe339e31 | Java | newstar123/RxJava-Android-Booking-App | /app/src/main/java/app/delivering/mvp/main/photo/facebook/presenter/RestoreFBPhotoPresenter.java | UTF-8 | 718 | 1.960938 | 2 | [] | no_license | package app.delivering.mvp.main.photo.facebook.presenter;
import android.graphics.Bitmap;
import app.core.facebook.profile.interactor.RestoreFBPhotoInteractor;
import app.delivering.component.BaseActivity;
import app.delivering.mvp.BaseOutputPresenter;
import rx.Observable;
public class RestoreFBPhotoPresenter exten... | true |
e5dfe47d54aef20c3d2e1871d0a7adddf54e3ef8 | Java | Harium/database-core | /src/main/java/com/harium/database/module/DatabaseModule.java | UTF-8 | 265 | 1.914063 | 2 | [] | no_license | package com.harium.database.module;
import com.harium.database.model.BaseDAO;
public interface DatabaseModule<T> {
void init(boolean clearDatabase);
void register(BaseDAO<?, T> dao);
void clear() throws Exception;
BaseDAO getDAO(Class klass);
} | true |
b5ae13e139d454c33febd1501617ff0f0b6ff549 | Java | BackupTheBerlios/unice | /sclipse/src/sclipse/toplevel/SchemeToplevelEventFilter.java | UTF-8 | 2,058 | 2.640625 | 3 | [] | no_license | package sclipse.toplevel;
/*
* (c) Brent Fulgham <bfulgham@debian.org>, 2002
* All Rights Reserved.
*
* This software is based on examples and the source for Eclipse, which
* are all copyright IBM, 2000, 2001 under the terms of the "Common
* Public License Version 0.5 (CPL)".
*
* This package of software is al... | true |
77d287ecf9966b76fa9914fca78da528a46f4987 | Java | astra-zhao/softswitch-gateway | /freeswitch-xml-curl/src/main/java/com/atomscat/freeswitch/xml/constant/ConfName.java | UTF-8 | 449 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | package com.atomscat.freeswitch.xml.constant;
/**
* @author th158
*/
public enum ConfName {
IVR("ivr.conf", "menus")
;
public String confName;
public String listName;
public String getConfName() {
return confName;
}
public String getListName() {
return listName;
... | true |
70cf8014f988e79221c7eb1f6805f967f8dc4dea | Java | shb695/LChart | /app/src/main/java/com/linheimx/app/lchart/MultiLineActivity.java | UTF-8 | 5,271 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package com.linheimx.app.lchart;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.SeekBar;
import android.widget.TextView;
import android.widget.Toast;
import com.linhei... | true |
82e8efd1436ef48d4078ea4507a34be1eb730c08 | Java | AmberWein/Arkanoid | /src/management/CountdownAnimation.java | UTF-8 | 1,960 | 3.109375 | 3 | [] | no_license | //author 208783522
package management;
import biuoop.DrawSurface;
import biuoop.Sleeper;
import java.awt.Color;
/**
* The type Countdown animation.
* The CountdownAnimation will display the given gameScreen,
* for numOfSeconds seconds, and on top of them it will show
* a countdown from countFrom back to 1, wher... | true |
3718bb797ffedf2906072cf11c0559254513d1b8 | Java | zcc888/Java9Source | /javafx.graphics/javafx/css/StyleClass.java | UTF-8 | 843 | 2.046875 | 2 | [] | no_license | /*
* Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package javafx.css;
/**
*
* @since 9
*/
public final class StyleClass {
public StyleClass(Strin... | true |
2e36f7078db539061b64d5fd44350eddd022243e | Java | parushisu/BatchTest | /src/jp/co/test/batch/main/BatchTest06.java | UTF-8 | 476 | 2.1875 | 2 | [] | no_license | package jp.co.test.batch.main;
import jp.co.hello.batch.main.HelloBatchMain;
import jp.co.hello.batch.utils.HelloBatchLog;
public class BatchTest06 extends HelloBatchMain {
public int execute() {
HelloBatchLog log = HelloBatchLog.getInstance();
log.debug("debug!!!");
log.info("info {}!!!", "情報");
... | true |
0683c91e080feb8af420a9d6de00c502329ddf44 | Java | Mibizina/Java | /src/Chapitre9/TstStB.java | UTF-8 | 692 | 2.859375 | 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 Chapitre9;
/**
* TEST STRINGBUFFER
* @author Mihary
*/
public class TstStB {
public static void main (String args[])
... | true |
4c0bd1f42938262b89959aba736b2cf77c9854b1 | Java | Mapoet/AWIPS-Test | /com.raytheon.uf.common.datadelivery.event/src/com/raytheon/uf/common/datadelivery/event/retrieval/SubscriptionRequestEvent.java | UTF-8 | 2,899 | 1.90625 | 2 | [] | no_license | /**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
... | true |
ab490b4483bac54a6d0b5d33b80d4214d4e1ef8d | Java | MichaelFedora/FedorasEconomy | /src/main/java/io/github/michaelfedora/fedoraseconomy/cmdexecutors/fedoraseconomy/user/FeUserResetExecutor.java | UTF-8 | 3,017 | 2.328125 | 2 | [
"MIT"
] | permissive | package io.github.michaelfedora.fedoraseconomy.cmdexecutors.fedoraseconomy.user;
import io.github.michaelfedora.fedoraseconomy.PluginInfo;
import io.github.michaelfedora.fedoraseconomy.cmdexecutors.FeExecutorBase;
import io.github.michaelfedora.fedoraseconomy.economy.account.FeUniqueAccount;
import org.spongepowered.a... | true |
2ecc4f72251b141c70c30f7f92d29285b2208963 | Java | msaifa/kasir-laundry | /src/main/java/com/komputerkit/kasirlaundry/Model/TblProduk.java | UTF-8 | 1,509 | 2.078125 | 2 | [] | no_license | package com.komputerkit.kasirlaundry.Model;
/**
* Created by msaifa on 20/01/2018.
*/
public class TblProduk {
String idproduk,produk,kategori,harga,jumlah,keterangan,flagAktif ;
public TblProduk(String idproduk, String produk, String kategori, String harga) {
this.idproduk = idproduk;
this... | true |
045ba974c3ae9a4c6c1c3b80056646c1ec1b59d9 | Java | lostufpi/recover | /src/testeJson/InfoMunicipios.java | UTF-8 | 406 | 2.515625 | 3 | [] | no_license | package testeJson;
public class InfoMunicipios {
private String UF;
private String cidade;
public InfoMunicipios(String uF, String cidade) {
super();
UF = uF;
this.cidade = cidade;
}
public String getUF() {
return UF;
}
public void setUF(String uF) {
UF = uF;
}
public String getCidade() {
ret... | true |
f28a626302817fb485ec385183441d28f2085746 | Java | miguelfoko/TimeTableCalendar | /recruitment/src/test/java/recruitment/EventTimeTableTest.java | UTF-8 | 3,796 | 2.34375 | 2 | [] | no_license | package recruitment;
import static org.junit.Assert.*;
import java.io.File;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import org.junit.Test;
import com.afrinic.recruitment.EventTimeTable;
public class EventTimeTableTest {
EventTimeTable ett=new EventTimeTable();
// @Test
public... | true |
fd97de684d50d91e4b0caadeecea2976ecb1d117 | Java | SaiferGit/Consumable-Management-System | /src/com/cms/controller/ArtController.java | UTF-8 | 1,607 | 2.78125 | 3 | [] | no_license | package com.cms.controller;
import com.cms.model.Art;
import com.cms.view.ArtView;
public class ArtController {
private Art art;
private ArtView artView;
public ArtController(Art art, ArtView artView) {
this.art = art;
this.artView = artView;
}
public String getArtType(){
... | true |
1b0d4dad5b0efcfc5528725e28efd26e60457f74 | Java | MarcBrejner/PokemonBattle | /src/main/java/com/mycompany/pokemonBattle/Profile.java | UTF-8 | 1,791 | 2.921875 | 3 | [] | no_license | package com.mycompany.pokemonBattle;
import java.util.ArrayList;
import java.util.List;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
public class Profile {
public int id;
private String username;
private List<Pokemon> pokemons = new ArrayList<Pokemon>();
private List<Item> items = new Array... | true |
a87558e311dc5f90b435ab0fc61488055710e228 | Java | flashscope/next-chessgame | /src/util/exceptions/EmptyPositionException.java | UTF-8 | 545 | 2.578125 | 3 | [] | no_license | package util.exceptions;
public class EmptyPositionException extends RuntimeException {
private static final long serialVersionUID = -3536523914470825348L;
/**
* Constructs a {@code EmptyPositionException} with no detail message.
*/
public EmptyPositionException() {
super();
}
/**
... | true |
8539e5d93e3326d4290a3e3661ffdbda4c7ffa49 | Java | 369857519/javaExerciseSet | /src/main/java/C_ADT/CircularLinkedList.java | UTF-8 | 2,259 | 3.28125 | 3 | [] | no_license | package C_ADT;
import java.util.ConcurrentModificationException;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.NoSuchElementException;
/**
* Created by qilianshan on 17/8/14.
*/
public class CircularLinkedList<T> extends B_LinkedList{
private int theSize;
private int modCount=0;
... | true |
8f8564b5983948cb46d819b880df6fea01d255e1 | Java | vegetaz/OOP-QLDSV | /Java_Project_OOP_QLD_02/src/ltu13b/nhom05/oop/object/SinhVien.java | UTF-8 | 1,208 | 2.6875 | 3 | [] | no_license | package ltu13b.nhom05.oop.object;
import java.io.Serializable;
import java.util.Date;
/**
* Created by Heart Of Dead on 5/19/2017.
*/
public class SinhVien extends ConNguoi{
private String maSinhVien;
private String lop;
private String khoa;
public SinhVien(String ten, Date ngaySinh, boolean gioiTi... | true |
95d2a2111cf03dd3c366ca8a9e1881fe2d5104ab | Java | jianbingfang/xhf | /src/main/java/com/xthena/gcgl/web/PjRyController.java | UTF-8 | 10,592 | 1.632813 | 2 | [
"Apache-2.0"
] | permissive | package com.xthena.gcgl.web;
import com.xthena.api.user.UserConnector;
import com.xthena.core.hibernate.PropertyFilter;
import com.xthena.core.mapper.BeanMapper;
import com.xthena.core.page.Page;
import com.xthena.core.spring.MessageHelper;
import com.xthena.ext.export.Exportor;
import com.xthena.ext.export.TableModel... | true |
840524d9bbc4bf84a1fb0eecf320ca9774205d32 | Java | EvilCodes/ShunJianMeiManager | /src/com/wenyuankeji/spring/dao/IBaseSuggestionDao.java | UTF-8 | 899 | 2.171875 | 2 | [] | no_license | package com.wenyuankeji.spring.dao;
import java.util.List;
import com.wenyuankeji.spring.model.BaseSuggestionModel;
import com.wenyuankeji.spring.util.BaseException;
public interface IBaseSuggestionDao {
/**
* 根据商户id查询建议信息
* @param sid
* @return
* @throws BaseException
*/
public BaseSuggestionModel sear... | true |
eb19153fbb2996a187680f930ff46b7247e9d7ac | Java | MioProject/StargazerCloudSystem | /BusResources/com/stargazerproject/bus/resources/EventBusIPublicationErrorHandler.java | UTF-8 | 1,426 | 2.1875 | 2 | [] | no_license | package com.stargazerproject.bus.resources;
import com.stargazerproject.log.LogMethod;
import net.engio.mbassy.bus.error.IPublicationErrorHandler;
import net.engio.mbassy.bus.error.PublicationError;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Quali... | true |
ac8d486931314cc3fc4d75f7e46cd27044416d33 | Java | Hester1937/practice-it | /chapter-16/split.java | UTF-8 | 601 | 3.328125 | 3 | [] | no_license | /*
* Write a method split that rearranges the elements of a list so that all
* of the negative values appear before all of the non-negatives.
*/
public void split() {
ListNode current = front;
if (current != null) {
while (current.next != null) {
if (current.next.data < ... | true |
7e796abceba58cafaf97a101a4c30115bcafbfa4 | Java | zhmaylovv/java_first_dump | /src/Hash.java | UTF-8 | 566 | 3.296875 | 3 | [] | no_license | import java.util.*;
public class Hash {
public static void main(String[] args) {
HashMap<String, String> hm = new HashMap();
hm.put("Заря", "Солнце");
hm.put("Приливы", "Луна");
hm.put("Динозавры", "Астероид");
hm.put("Атланты", "Геродот");
System.out.println(hm);
for (... | true |
dd807801c093fd0a1920e45ae4b3adb272429d8d | Java | EdotJ/crappybudget | /api/src/main/java/com/budgeteer/api/controllers/ReceiptHandlingController.java | UTF-8 | 2,701 | 2.140625 | 2 | [] | no_license | package com.budgeteer.api.controllers;
import com.budgeteer.api.dto.receipts.ReceiptParseResponse;
import com.budgeteer.api.exception.ServiceDisabledException;
import com.budgeteer.api.receipts.OnlineReceiptParser;
import com.budgeteer.api.receipts.gcp.model.response.ApiResponse;
import io.micronaut.context.annotation... | true |
553d88bd169954d02e1a618f9af4d82a78ea15bd | Java | Xenia444/QA28_XeniaK_ILCarro_v1.0 | /src/main/java/application/UserHelper.java | UTF-8 | 1,952 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | package application;
import models.User;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
public class UserHelper extends HelperBase{
public UserHelper(WebDriver wd) {
super(wd);
}
public void openLoginFrom() {
click(By.xp... | true |
1fb1de25adc612a03d8e01ec3c1db1b4920d817f | Java | sionguo/SyncFile | /src/main/java/cn/guoxy/SyncRunnable.java | UTF-8 | 2,800 | 2.703125 | 3 | [] | no_license | package cn.guoxy;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;
import java.io.File;
import java.util.Objects;
/**
* @author Guo Xiaoyong
*/
public class SyncRunnable implements Runnable {
private static final Log log = LogFact... | true |
fde6f62553a777810833e63ea91be21559e0c07f | Java | fgarcia1401/control-password | /app/src/main/java/br/com/fernando/control_password/ui/activities/RegisterActivity.java | UTF-8 | 2,815 | 1.96875 | 2 | [] | no_license | package br.com.fernando.control_password.ui.activities;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;
import android.view.inputmethod.InputMethodM... | true |
1a4d23b6dc14e9ab24326fad90c0d69d8fc98e17 | Java | mikeleonida/QueryParser | /QueryParameter.java | UTF-8 | 4,878 | 2.796875 | 3 | [] | no_license | package com.stackroute.datamunger.query.parser;
import java.util.ArrayList;
import java.util.List;
/*
* This class will contain the elements of the parsed Query String such as conditions,
* logical operators,aggregate functions, file name, fields group by fields, order by
* fields, Query Type
* */
public class ... | true |
d63667d9c9f0905bf9ec5fe3e14d7c6b74bfa602 | Java | lor6/tutorials | /persistence-modules/spring-data-couchbase-2/src/main/java/com/baeldung/spring/data/couchbase2b/repos/PersonRepository.java | UTF-8 | 373 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.baeldung.spring.data.couchbase2b.repos;
import java.util.List;
import com.baeldung.spring.data.couchbase.model.Person;
import org.springframework.data.repository.CrudRepository;
public interface PersonRepository extends CrudRepository<Person, String> {
List<Person> findByFirstName(String firstName);
... | true |
466fff8da11a452f1a9811779e44371915bceab1 | Java | RoyalLachinov/ACTO_Assignment_Brandon | /app/src/main/java/com/project/acto_assignment_brandon/Activities_Adapters/PhotoActivity.java | UTF-8 | 3,332 | 2.1875 | 2 | [] | no_license | package com.project.acto_assignment_brandon.Activities_Adapters;
import android.arch.lifecycle.Observer;
import android.arch.lifecycle.ViewModelProviders;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.support.annotation.... | true |
dbaa3af346b3e7f3569d52f5441a1cd93a68e4a9 | Java | Mm12341234/Demo | /generator/src/main/java/com/example/entity/ColumnInfo.java | UTF-8 | 696 | 2.28125 | 2 | [] | no_license | package com.example.entity;
import com.example.utils.StringUtil;
import lombok.Data;
import java.io.Serializable;
/**
* @Author Liumq
* @Date 2019/05/23
*/
@Data
public class ColumnInfo implements Serializable {
private String columnName; // 列名
private int type; // 类型代码
private String propertyName; ... | true |
df02e3d1814420a1ceeacf36624613379501f1ff | Java | pptik/Android-RabbitMQ-Client-Test | /app/src/main/java/pptik/org/rabbitmqclienttest/MainActivity.java | UTF-8 | 3,212 | 2.0625 | 2 | [] | no_license | package pptik.org.rabbitmqclienttest;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.v4.content.LocalBroadcastManager;
import android.support.v7.app.AppCompatActivity;
import ... | true |
9b2df806f3a746ad512669580d72ca5c1c2807f0 | Java | rpm-house/OnlineUML | /src/main/java/org/infosys/biz/CallHierarchyVO.java | UTF-8 | 596 | 2.34375 | 2 | [] | no_license | package org.infosys.biz;
import java.util.List;
public class CallHierarchyVO {
String methodName;
List<String> methodInvokes;
public String getMethodName() {
return methodName;
}
public void setMethodName(String methodName) {
this.methodName = methodName;
}
public List<String> getMethodI... | true |
4a7855112be1e2b4eca010a983e2d961198631b0 | Java | qinmeng110/001 | /最大公约数和最小公倍数.java | GB18030 | 923 | 3.328125 | 3 | [] | no_license | package javaϰ;
import java.util.Scanner;
public class ԼС {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);//ʼ
int x=in.nextInt();
int y=in.nextInt();
if(x>y){int temp; temp=x;x=y;y=temp;}
int m=x;
int n=y;
int i;
while(true){
... | true |
7c66bf5c86fca2d370d676af41df874de1f5da2d | Java | Arun-George-Zachariah/TorcDB | /src/main/java/net/ellitron/torc/util/MeasurementClient.java | UTF-8 | 19,929 | 1.65625 | 2 | [
"Apache-2.0",
"ISC"
] | permissive | /* Copyright (c) 2015-2019 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(... | true |
1cb141efb83b81805e6c5a61375d6c2f48a71fac | Java | NullEmpty/CarlDemo | /bwgallerylibrary/src/main/java/com/royole/bwgallery/AbsGalleryLinearLayout.java | UTF-8 | 2,350 | 2.140625 | 2 | [] | no_license | package com.royole.bwgallery;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PaintFlagsDrawFilter;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.widget.LinearLayout;
/**
* Created by pcxu on 2016/2/26.... | true |
8d4a3d9f31d1004bcf3746c11218b2ce838f962c | Java | Sylwester12351/Weather-App | /src/main/java/service/Properties.java | UTF-8 | 311 | 1.765625 | 2 | [] | no_license | package service;
public class Properties {
public static final String DB_DRIVER = "org.postgresql.Driver";
public static final String DB_URL = "jdbc:postgresql://localhost:5432/postgres";
public static final String DB_USER = "postgres";
public static final String DB_PASSWORD = "root";
}
| true |
79fcd2b9fd80cb157937782959a22e870771de4f | Java | chinaliuweijie/qmdoctors | /app/src/main/java/com/qingmiao/qmdoctor/global/JSObject.java | UTF-8 | 3,722 | 2.15625 | 2 | [] | no_license | package com.qingmiao.qmdoctor.global;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.webkit.JavascriptInterface;
import android.widget.Toast;
import com.qingmiao.qmdoctor.activity.WebCommentActivity;
import com.qingmiao.qmdoctor.activity.WebViewCircleActivit... | true |
ee6e55e16079f29b0d91031258673785b622f498 | Java | evrimulgen/Blog-Project-Files | /JAX-RS/0004-com.enesbyc-RESTful-JAXB/src/com/enesbyc/service/ProductService.java | ISO-8859-2 | 679 | 2.390625 | 2 | [] | no_license | package com.enesbyc.service;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import com.enesbyc.model.Product;
//Url kismina /rest/product geldiginde yapilacaklari belirtiyoruz.
@Path("product")
public class ProductService {
//Url kismi... | true |
4ec51b0ba4d06f3bc70862e0d1fc7b0f6d9868b1 | Java | inavangen/Clustering | /Euclidean.java | UTF-8 | 429 | 3.40625 | 3 | [] | no_license | public class Euclidean implements DistanceMeasure {
public double calculateDistance(Unit unit1, Unit unit2){
int numOfVariables = unit1.getNumOfVariables();
double sum = 0;
double unit1_var = 0;
double unit2_var = 0;
for (int i = 0; i < numOfVariables; i++){
unit1_var = unit1.getValue(i);
unit2_v... | true |
37f3eb4e71da8435778ad89ef0a3a251d521ccff | Java | gyjnoodle/Ioc | /src/main/java/com/gyj/ioc/annotations/MyAutowired.java | UTF-8 | 261 | 1.945313 | 2 | [] | no_license | package com.gyj.ioc.annotations;
import java.lang.annotation.*;
/**
* @Author noodle
* @Description 自定义服务的依赖注入
*/
@Documented
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface MyAutowired {
} | true |
60592234e4386eca3e606055f61f7860f764a1b4 | Java | denis-v-s/CSE148-HW05 | /src/Person.java | UTF-8 | 2,177 | 3.90625 | 4 | [] | no_license | /**
* Person
*/
public class Person {
private String name;
private String address;
private int age;
private String phoneNumber;
private String gender;
public Person() {}
public Person(String name, String address, int age, String phoneNumber, String gender) {
this.name = name;
this.address = add... | true |
fe612442a390a8f726a0887e6e470a873ca3463e | Java | Falldays/wsccode | /coding/src/main/java/com/qst/ssm/controller/UserController.java | UTF-8 | 4,925 | 2.328125 | 2 | [] | no_license | package com.qst.ssm.controller;
import com.qst.ssm.entity.User;
import com.qst.ssm.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Control... | true |
d60b32e5141eb5084eaceb3762b88ca16d28cd3f | Java | nckmml/ANXGallery | /src/ANXGallery/sources/com/miui/gallery/loader/ProcessingMediaLoader.java | UTF-8 | 3,316 | 2.046875 | 2 | [] | no_license | package com.miui.gallery.loader;
import android.content.AsyncTaskLoader;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Loader;
import android.database.ContentObserver;
import com.miui.gallery.photosapi.PhotosOemApi;
import com.miui.gallery.provider.ProcessingMedia;
impo... | true |
eb183525899530cad97e6c8d73cd91e8495d27cd | Java | KevinMTO/ing-sw-2018-lanzillotta-marazzi-mato | /src/main/java/it/polimi/se2018/server/events/responses/SuccessColor.java | UTF-8 | 576 | 2.609375 | 3 | [] | no_license | package it.polimi.se2018.server.events.responses;
import it.polimi.se2018.server.events.tool_mex.Activate;
/**
* Evento laciato per indicare un successo di attivazione di una carta utensile multi fase che richieda il ripescaggio di un dado.
* La classe possiede un getter per ogni attributo.
* @author Kevin Mato
*/... | true |
2254d510c2f7fdeb72914073b4b3a1fe8ba097ed | Java | VadimKhom/TaskJava_TheBank | /Files/src/main/java/by/itclass/Bank/bank/value/Prices.java | UTF-8 | 1,291 | 3.171875 | 3 | [] | no_license | package by.itclass.Bank.bank.value;
import java.util.HashMap;
public class Prices {
private HashMap<String, Double> priceStocks = new HashMap<>();
private HashMap<Metals, Double> priceMetals = new HashMap<>();
private HashMap<Currency, Double> priceMoney = new HashMap<>();
public Prices() {
... | true |
5f0b21217dcaebcd6854795fa5b168c9f505715d | Java | ds0704/YZR-Search | /project/src/main/java/net/nigne/yzrproject/persistence/ActorDAOImpl.java | UHC | 896 | 1.671875 | 2 | [] | no_license | /**
*
*/
package net.nigne.yzrproject.persistence;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persist... | true |
01760035187313eb7504a9f24d4ae808b31caca7 | Java | UPIC/sutuo | /upic-web-lucene/src/main/java/com/upic/lucene/utils/MySameAnalyzer.java | UTF-8 | 1,152 | 2.359375 | 2 | [] | no_license | package com.upic.lucene.utils;
import java.io.Reader;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
import com.chenlb.mmseg4j.Dictionary;
import com.chenlb.mmseg4j.MaxWordSeg;
import com.chenlb.mmseg4j.Seg;
public class MySameAnalyzer extends Analyzer {
private Sameword... | true |
f9b83ff6086b4a17dab35fcafb78d791d7cd3710 | Java | jiangjb/smarthome | /src/main/java/com/smarthome/imcp/util/StaticUtils.java | UTF-8 | 1,680 | 1.71875 | 2 | [] | no_license | /* */ package com.smarthome.imcp.util;
/* */
/* */ import java.util.HashMap;
/* */ import java.util.Map;
/* */
/* */ public class StaticUtils
/* */ {
/* 12 */ public static Map<String, String[]> dIdByName = new HashMap();
/* */
/* 16 */ public static Map<String, String[]> drik = ... | true |
048476afa5a010a10a33246881c95418565d0aa8 | Java | nowodoo/MyProject | /bytecode/src/main/java/com/zach/bytecode/cglib/interf/IAnimal.java | UTF-8 | 98 | 1.828125 | 2 | [] | no_license | package com.zach.bytecode.cglib.interf;
public interface IAnimal {
Object see(String see);
}
| true |
9ef74b8dc270e5fb2a223d1d08f87fe4e6a19e01 | Java | harsheelshah/Lease-Management-System | /src/lease_management_system/ManagerHome.java | UTF-8 | 892 | 2.171875 | 2 | [] | no_license | package lease_management_system;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.s... | true |