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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7256dfd5540f469dc5f82ae971bacfc09707c7ef | Java | ncguobiao/SocketMVP | /app/src/main/java/com/gb/socket1/data/domain/DeviceInfo.java | UTF-8 | 10,048 | 1.828125 | 2 | [] | no_license | package com.gb.socket1.data.domain;
/**
* Created by guobiao on 2018/8/8.
*/
public class DeviceInfo {
/**
* address :
* admin :
* adminName :
* alias :
* beginDate :
* belonger :
* companyId :
* createDate : 2018-5-04 16:16:51
* createUser :
* deviceName : CD... | true |
f2413560c93e96bc3469e7f93685feecb959b9dd | Java | AndrejJurkin/udacity-popular-movies-mvp-dagger-rxjava | /app/src/main/java/jurkin/popularmovies/data/model/MovieReview.java | UTF-8 | 2,152 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 Andrej Jurkin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | true |
2ff589ed3b885c5f4a721364030b3438dd4d70f8 | Java | heenachitkara/PHEDRS | /src/main/java/edu/uab/registry/dao/impl/RegistryConfigPatientAttributesDaoImpl.java | UTF-8 | 3,455 | 2.28125 | 2 | [] | no_license | package edu.uab.registry.dao.impl;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import javax.sql.DataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.... | true |
474ebec4fe8552f0b78e9cadfdc873abe5f51e28 | Java | TheRajI/newlecJSP20170116 | /src/oop/inherit/ui/ChartPanel.java | UHC | 1,176 | 2.75 | 3 | [] | no_license | package oop.inherit.ui;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Panel;
public class ChartPanel extends Panel {
@Override
public void paint(Graphics g) {
super.paint(g);
String peop[]={"10","8","6","4","2"};
String relat[]={"100","80","60","40","20"};
g.se... | true |
f93b40457df258e12ce048551e25b63f36cac2ad | Java | Anita-Naragund98/iprimed | /assignment/src/com/prodapt/ass/example1/TimeAndDate.java | UTF-8 | 447 | 3 | 3 | [] | no_license | package com.prodapt.ass.example1;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
public class TimeAndDate {
public static void main(String[] args) {
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("d-MMM-yyyy");
String date = "23-Aug-2020";
LocalDate localDate = L... | true |
422f7dd8d72d5c893a255062ea34dffc7b038d6f | Java | yunlong1951/easy-springboot2 | /src/java/com/example/boot/common/utils/DateUtils.java | UTF-8 | 6,759 | 3.046875 | 3 | [
"Apache-2.0"
] | permissive | package com.example.boot.common.utils;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import org.apache.commons.lang3.StringUtils;
/**
*
* 项目名称:boot
* 类名称:DateUtils
* 类描述... | true |
d20df1a9a7bfe558c6b8314d699557446087f183 | Java | Xiaa520/WenZhouPeople | /app/src/main/java/com/exz/wenzhoupeople/entity/SearchEntity.java | UTF-8 | 924 | 1.9375 | 2 | [] | no_license | package com.exz.wenzhoupeople.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import java.util.Date;
/**
* Created by 史忠文
* on 2017/5/5.
*/
@Entity
public class SearchEntity {
private String searchCont... | true |
10ce649805a9fa2c965c480cbbf7d8f4b50388c7 | Java | chuyun923/algorithmguide | /src/github/chuyun923/algorithm/sorting/HeapSort.java | UTF-8 | 3,341 | 3.796875 | 4 | [] | no_license | package github.chuyun923.algorithm.sorting;
import static github.chuyun923.algorithm.Utils.log2;
import static github.chuyun923.algorithm.sorting.HeapHelper.*;
/**
* Created by pengliang on 15-8-18.
*
* 堆排序 时间复杂度 n(lgn)
*
* 先按照输入的内容构造大顶堆 或者小顶堆
*
* 根元素必然是当前的最值 每次取出堆顶元素 调整剩下的堆到稳定结构 继续递归
*/
public class HeapSor... | true |
db1f7e7361b456cda0d9abddace416ab3e5e7086 | Java | bobying/distribution | /src/main/java/com/cloud/distribution/domain/Order.java | UTF-8 | 4,932 | 1.976563 | 2 | [] | no_license | package com.cloud.distribution.domain;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import java.io.Serializable;
import java.time.ZonedDateTime;
import java.util.Object... | true |
07b9158dce66fc052d7d39574276b8e6c11da6a8 | Java | Moon-00/calculadora | /src/calculadora/Calculadora.java | UTF-8 | 1,055 | 2.3125 | 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 calculadora;
/**
*
* @author 1cfgs
*/
public class Calculadora {
public String getOperador1() {
return operado... | true |
3b9a5441c98b23999aa53074d3468a2c8567d119 | Java | 1larity/MyEpicLife | /Code/desktop/src/com/digitale/myepiclife/desktop/TexturePack.java | UTF-8 | 1,078 | 2.140625 | 2 | [] | no_license | package com.digitale.myepiclife.desktop;
//pack textures for ui
import com.badlogic.gdx.tools.texturepacker.TexturePacker;
public class TexturePack {
public static void main(String[] args) throws Exception {
//holo skin
TexturePacker.process(
"assets-raw/skin/holo",
"..... | true |
ecab8af2b304b4559fd86667b8acc1612038f6be | Java | Ilerii/Rating-App | /Rating-App/app/src/androidTest/java/com/example/servicenovigradproject/AccountDeletionTest.java | UTF-8 | 4,689 | 2.421875 | 2 | [] | no_license | package com.example.servicenovigradproject;
import org.junit.Rule;
import org.junit.Test;
import androidx.annotation.NonNull;
import androidx.test.core.app.ActivityScenario;
import androidx.test.ext.junit.rules.ActivityScenarioRule;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.databa... | true |
949793c8946ff70b3b6de59d83f0ef4c711fefb3 | Java | encodingForBetterWorld/OnlineVsPlatform | /client/src/soft/chess/client/GameHall/HallClock.java | UTF-8 | 1,513 | 2.984375 | 3 | [] | no_license | package soft.chess.client.GameHall;
import java.awt.*;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import javax.swing.*;
public class HallClock extends JPanel implements Runnable{ //the black clock
Thread timer;
Calendar cal=Calendar.getInstance();
int h1=0;
int m1=0;
int ... | true |
50753d8b45235d445ab02fc79dab98135a317ca3 | Java | zeus-dengliang/zeus | /.svn/pristine/b8/b835e2b5fe23a91bab7d3c40b296b2e94e0e2bd1.svn-base | UTF-8 | 3,193 | 2.125 | 2 | [] | no_license | package com.dengliang.zeus.framework.jdbc.mapping;
import com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr;
import com.alibaba.druid.sql.ast.statement.SQLExprTableSource;
import com.alibaba.druid.sql.ast.statement.SQLTableSource;
import com.dengliang.zeus.framework.jdbc.druid.mapping.Entity;
import com.dengliang.zeus.... | true |
73e32d4cc79b7f6e1a8ce53822204bdb8d7cfd73 | Java | qasimnawaz94/oauth-security-services | /src/main/java/com/security/services/repository/RolePrivilegeRepository.java | UTF-8 | 308 | 1.679688 | 2 | [] | no_license | package com.security.services.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.security.services.model.RolePrivilege;
@Repository
public interface RolePrivilegeRepository extends JpaRepository<RolePrivilege, Long> {
}
| true |
761ba6e5e8763364b15888d052dd6836026ce6de | Java | bn22/Hermes | /Hermes/app/src/main/java/com/example/iguest/hermes/MainActivity.java | UTF-8 | 7,385 | 1.929688 | 2 | [] | no_license | package com.example.iguest.hermes;
import android.app.ActionBar;
import android.app.DialogFragment;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.app.FragmentManager;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.support.de... | true |
c18678d9c6772d6b8229e0dba0d2ceb2ffc0645c | Java | elkana911/TaxiAirport-WebService | /src/main/java/com/ppu/taxi/ws/service/request/pnr/LoginRequest.java | UTF-8 | 1,075 | 2.046875 | 2 | [] | no_license | package com.ppu.taxi.ws.service.request.pnr;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import org.codehaus.jackson.annotate.JsonProperty;
import com.ppu.taxi.ws.servic... | true |
64a9742ddbd3702d064cf163085a7b1aa097859a | Java | tomdseo/Calculator-Order-Of-Operations | /src/com/tommy/calculator2/CalculatorTest.java | UTF-8 | 433 | 2.90625 | 3 | [] | no_license | package com.tommy.calculator2;
public class CalculatorTest {
public static void main(String[] args) {
Calculator calculation1 = new Calculator();
calculation1.performOperation(10.5);
calculation1.performOperation("+");
calculation1.performOperation(5.2);
calculation1.performOperation("*");
calculation1.p... | true |
f1037336b01fda7385dac0eb3c15cea817da4ce6 | Java | prodigasistemas/gsan-cagepa | /src/gcom/gui/relatorio/micromedicao/GerarRelatorioQuadroHidrometrosSituacaoAction.java | MacCentralEurope | 2,587 | 1.929688 | 2 | [] | no_license | package gcom.gui.relatorio.micromedicao;
import gcom.fachada.Fachada;
import gcom.gui.ActionServletException;
import gcom.relatorio.ExibidorProcessamentoTarefaRelatorio;
import gcom.relatorio.micromedicao.RelatorioQuadroHidrometrosSituacao;
import gcom.seguranca.acesso.usuario.Usuario;
import gcom.tarefa.TarefaRelator... | true |
240cf84a7d5225a4b35acc9dc396bdaa779d7a37 | Java | DanielVillota16/Sanna | /app/src/main/java/com/sanna_app/sanna/product/recycler/ProductAdapter.java | UTF-8 | 3,066 | 2.1875 | 2 | [] | no_license | package com.sanna_app.sanna.product.recycler;
import android.content.Intent;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.constraintlayout.widge... | true |
aca076bb2ef1daabbce4d91c788c7d02bc4995f0 | Java | vojtoshik/tc-disrupt-berlin-2017 | /src/main/java/com/tc/hoodwatch/model/foursquare/Category.java | UTF-8 | 418 | 1.742188 | 2 | [] | no_license | package com.tc.hoodwatch.model.foursquare;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class Category extends AbstractJson {
@XmlElement
public String id;
@XmlElement
public String name;
@XmlElement
public String pluralName;
@XmlElement
... | true |
a910c2bbb2ab118d24f59785f60c8682b3be5f95 | Java | wyh-1/fanzhuanketang | /src/com/fanzhuanketang/controller/MainPage.java | UTF-8 | 694 | 2.09375 | 2 | [] | no_license | package com.fanzhuanketang.controller;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class MainPage {
@RequestMapping("/mainPage.action")
public String mainPage(HttpSession session) {
In... | true |
ff2746b371daa4d3f26027f67d890b8ce8821bb6 | Java | crispykenil/linkalma_git | /src/main/java/com/linkalma/utils/SqlManager.java | UTF-8 | 7,672 | 2.65625 | 3 | [] | no_license | package com.linkalma.utils;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
... | true |
3ff86ac598e2ea008f05c748397043a1f9d405b4 | Java | audenaert/AFED | /src/org/idch/afed/impl/jpa/legacy/JPAFacsimileDelegate.java | UTF-8 | 12,025 | 1.953125 | 2 | [
"MIT"
] | permissive | /**
*
*/
package org.idch.afed.impl.jpa.legacy;
import java.io.InputStream;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
import java... | true |
0b92b067cc2e0e6f59fb3804d178d866df6f195c | Java | JohannesCox/GOApp_Server | /src/main/java/requestHandler/commands/DownloadEventImageCommand.java | UTF-8 | 1,320 | 2.921875 | 3 | [
"MIT"
] | permissive | package requestHandler.commands;
import com.google.gson.JsonObject;
import Database.EventHandler;
/**
* The command to get the image of a certain event.
*/
public class DownloadEventImageCommand extends Command {
private String userId;
private String eventId;
private EventHandler eventHandler;
... | true |
7178bbb270ddf14de57db2ac72cd9787bbd82c10 | Java | StarRamadhan/Lat3-AKB11-10116482-MochStarRamadhan | /app/src/main/java/com/akb/myselfapps/fragment/CustomDialog.java | UTF-8 | 1,042 | 2.328125 | 2 | [] | no_license | package com.akb.myselfapps.fragment;
import android.app.Activity;
import android.app.Dialog;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;
import com.akb.myselfapps.R;
/**
* Latihan 3
* Nim : 10116482
* Nama : Moch. Star Ramadhan
* Kelas : AKB... | true |
1b0de51332545ccb552451f26fde4e054b6f7074 | Java | fansofpal/DesignPatternAndAlgorithm | /designPattern/src/main/java/com/hdw/builder/House.java | UTF-8 | 1,140 | 3.15625 | 3 | [] | no_license | package com.hdw.builder;
/**
* user:hudawei1
* date:2018/2/8
* time:9:37
*/
public class House {
private String door;
private String window;
private String wall;
public House(String door,String window,String wall){
this.door = door;
this.window = window;
this.wall = wall;
... | true |
6de7a79dc666d84fd6dc39276af89eec0d953256 | Java | AlpizarGregory/JavaExceptions | /Exceptions/src/cr/estudiantec/throwexception/AgeVerification.java | UTF-8 | 633 | 3.328125 | 3 | [] | no_license | package cr.estudiantec.throwexception;
// This class takes the user's age and verify is it's underage or not
public class AgeVerification {
public void buyTickets(int age){
if (age >= 18)
System.out.println("Your transaction was completed successfully!!");
else if (age < 18)
... | true |
eddab706c97a082bd3d5c60ca6e36a1fdcfc3fbd | Java | Ma5k/communityforweak | /communityforweak/src/main/java/com/hbue/communityforweak/controller/testController.java | UTF-8 | 2,594 | 1.828125 | 2 | [] | no_license | package com.hbue.communityforweak.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframewo... | true |
45d052fd717a8f086c0bf159b7c9fb5d54c394cd | Java | MAriSaputra/TugasBesar | /src/AnalysisLingkungan.java | UTF-8 | 1,102 | 2.59375 | 3 | [] | no_license |
public class AnalysisLingkungan extends Lingkungan{
public void data(){
Insert();
}
@Override
String AnalysisLantai() {
if(Lantai.equals("baik")){
return "Sudah Sesuai Standard ";
}
else {
return "Belum Sesuai Standard";
}
}
@Override
Strin... | true |
f89682d34d3ebc2b59e959833b6ba47c15011fbd | Java | Tifaniew/TEnmo-API-Capstone-Project | /UserTest.java | UTF-8 | 954 | 2.453125 | 2 | [] | no_license | import com.techelevator.tenmo.model.Authority;
import com.techelevator.tenmo.model.User;
import org.junit.Assert;
import org.junit.Test;
import java.util.HashSet;
import java.util.Set;
public class UserTest {
User user = new User();
@Test
public void username_is_correct() {
user.setUse... | true |
ba4698e9970156b457690f8cd23187011f824a3b | Java | manelfg24/RekindleFrontend | /app/src/main/java/com/example/usuario/rekindlefrontend/view/menu/login/Login.java | UTF-8 | 10,871 | 1.898438 | 2 | [] | no_license | package com.example.usuario.rekindlefrontend.view.menu.login;
import static com.example.usuario.rekindlefrontend.data.pusher.Comm.connectPusher;
import static com.example.usuario.rekindlefrontend.data.pusher.Comm
.setAllChannelsNotificationsChats;
import static com.example.usuario.rekindlefrontend.data.pusher.... | true |
6efb7e554e13be7ba91e382293a2074490468349 | Java | wangdeng1213/server | /src/com/linksus/service/impl/LinksusGovStructureServiceImpl.java | GB18030 | 1,733 | 2.0625 | 2 | [] | no_license | package com.linksus.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.linksus.dao.LinksusGovStructureMapper;
import com.linksus.entity.LinksusGovStructure;
import com.linksus.service.LinksusGovStructu... | true |
5c5b4c4ec9687ab77c60047c347f095591db8e5c | Java | Toan1660625/SpringQLHS | /src/main/java/com/example/repository/StudentRepository.java | UTF-8 | 2,092 | 2.296875 | 2 | [] | no_license | package com.example.repository;
import java.io.Serializable;
import java.util.List;
import java.util.Optional;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Quer... | true |
fb266e35ab1049960e07e36d0875808b0ebc74b9 | Java | chanmenlung/AutoChessRPG | /app/src/main/java/com/longtail360/autochessrpg/utils/Logger.java | UTF-8 | 431 | 2.15625 | 2 | [] | no_license | package com.longtail360.autochessrpg.utils;
import android.content.Context;
import android.util.Log;
import android.widget.Toast;
public class Logger {
public static void log(String tag, String str) {
Log.d(tag, str);
}
public static void toast(String str, Context context){
Toast toast = T... | true |
91c63dd189c044b164661a3dc57c088983e78ea2 | Java | arms029/ExDesignPatternsJava | /src/main/java/br/com/arms/testes/TestaChancesInvestimento.java | UTF-8 | 928 | 2.28125 | 2 | [] | no_license | package br.com.arms.testes;
import br.com.arms.investimentos.Arrojado;
import br.com.arms.investimentos.Investimento;
import br.com.arms.investimentos.Moderado;
import br.com.arms.modelos.conta.Conta;
import br.com.arms.testes.cria_objetos.CriaConta;
import br.com.arms.utilidades.RealizadorDeInvestimentos;
public cla... | true |
61d7e089205f0c20f8a9850b2307833fd70cc439 | Java | Gornashevich/qa-automation | /src/main/java/com/qaprosoft/carina/automation/gui/pages/BestSellersPage.java | UTF-8 | 758 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.qaprosoft.carina.automation.gui.pages;
import com.qaprosoft.carina.core.foundation.webdriver.decorator.ExtendedWebElement;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.FindBy;
import java.util.List;
public class BestSellersPage extends BasePage{
@FindBy(xpath = "//h5[@ite... | true |
13d00407ffd50508b9fb465dbf8ea46ce2e0aa68 | Java | dehannhs/batch3 | /TestFramework/src/test/java/com/hp/pageObject/HomePage.java | UTF-8 | 651 | 1.773438 | 2 | [] | no_license | package com.hp.pageObject;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class HomePage extends BasePage {
public HomePage() {
PageFactory.initElements(driver, this);
}
@FindBy(linkText="Input Forms")
public W... | true |
43bc956c47bc53bd0d7aaa37b7520a6730b8a174 | Java | amyfan/Coacheller | /Coacheller-AppEngine/src/com/ratethisfest/client/FestivalService.java | UTF-8 | 1,540 | 1.921875 | 2 | [] | no_license | package com.ratethisfest.client;
import java.util.List;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.ratethisfest.data.FestivalEnum;
import com.ratethisfest.shared.DayEnum;
import com.ratethisfest.shared.RatingGwt;
import com... | true |
d4bc23fe27111a2c91869a9e404320ba993268e4 | Java | hugebdu/ex3 | /jdt-ex3/src/test/java/idc/cgeom/ex3/CsvExporter.java | UTF-8 | 1,317 | 2.34375 | 2 | [] | no_license | package idc.cgeom.ex3;
import com.google.common.collect.ImmutableCollection;
import delaunay_triangulation.Delaunay_Triangulation;
import delaunay_triangulation.Point_dt;
import java.io.FileWriter;
import java.io.PrintWriter;
import static idc.cgeom.ex3.IOHelper.*;
import static java.util.Arrays.asList;
/**
* Crea... | true |
2826b09a8e4065dfcdc622551683c26d364a6b34 | Java | siddharth27121997/Coding-Ninja_Java | /Recursion/src/String/Susequences_of_a_String.java | UTF-8 | 829 | 3.0625 | 3 | [] | no_license | package String;
public class Susequences_of_a_String {
public static String[] findsubsequnces(String str)
{
return findsubsequnces(str,0);
}
private static String[] findsubsequnces(String str,int start)
{
if(start>=str.length())
{
String ans[]= {""};
return ans;
}
String small_Ans[]= findsu... | true |
1c114d6420c817aabc6c0099a557dc58fceff84d | Java | ChenTanyi/autorest.java | /generated/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/implementation/DomainOwnershipIdentifierImpl.java | UTF-8 | 5,067 | 1.734375 | 2 | [
"LicenseRef-scancode-generic-cla"
] | no_license | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.appservice.generated.implementation;
import com.azure.core.util.Context;
import com.azure.resourcemanager.appservice.generated.f... | true |
849dfdfc3f89a76c53225ec501264e7044efb3c7 | Java | lorandvaida/shop | /src/main/java/ro/msg/learning/shop/mapper/Element.java | UTF-8 | 293 | 1.726563 | 2 | [] | no_license | package ro.msg.learning.shop.mapper;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.*;
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown=true)
public class Element {
private Distance distance;
private Duration duration;
}
| true |
59ebda2efb30ce0ef7a8ffaae435d23634f545a8 | Java | riccardosamperna/GtfsParser | /src/pojo/FeedInfo.java | UTF-8 | 1,344 | 2.453125 | 2 | [] | no_license | package pojo;
import com.googlecode.jcsv.annotations.MapToColumn;
public class FeedInfo {
@MapToColumn(column=0)
private String publisher_name;
@MapToColumn(column=1)
private String publisher_url;
@MapToColumn(column=2)
private String lang;
@MapToColumn(column=3)
private String start_date;
@MapToColumn(colum... | true |
1c5a751c6d0782ce223196b4c8a424f2c9a0eb41 | Java | samarou/crm | /src/business-services/src/main/java/com/itechart/security/business/model/persistent/Telephone.java | UTF-8 | 930 | 2.203125 | 2 | [] | no_license | package com.itechart.security.business.model.persistent;
import com.itechart.security.business.model.enums.TelephoneType;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.util.Date;
@Entity
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
public... | true |
58fefcb97d7469f073dc5eb66bf53e335089f25c | Java | dax105/geometryTD | /src/cz/dat/geometrytd/manager/TextureManager.java | UTF-8 | 4,043 | 2.546875 | 3 | [] | no_license | package cz.dat.geometrytd.manager;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URISyntaxException;
import java.nio.ByteBuffer;
import java.util.HashMap;
import java.util.Map;
import org.lwjgl.util.Rectangle;
import org.lwjgl.util.vector.... | true |
b27bafdcf97b7a88436857b0dbacb359ecb08890 | Java | caiqiufu/unieap-esb | /src/main/java/com/huawei/ocs55/arservices/QueryOCSBalanceRequest.java | UTF-8 | 4,850 | 1.9375 | 2 | [] | no_license |
package com.huawei.ocs55.arservices;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for QueryOCSBalanceRequest complex type.
*
* <p>The follow... | true |
de296475a8dd7b977fc6fa2728eaaab13e8da97c | Java | lsimons/phloc-schematron-standalone | /phloc-schematron/jing/src/main/java/com/thaiopensource/xml/dtd/om/DefaultValue.java | UTF-8 | 534 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package com.thaiopensource.xml.dtd.om;
public class DefaultValue extends AttributeDefault
{
private final String value;
public DefaultValue (final String value)
{
this.value = value;
}
@Override
public int getType ()
{
return DEFAULT_VALUE;
}
public String getValue ()
{
return value;... | true |
a2c96be2b56050ae3538704aeb5e000108a20fb7 | Java | nnarv/Learning | /CoreJava/src/com/basic/Search/HolidaySeason.java | UTF-8 | 1,418 | 3.40625 | 3 | [] | no_license | /**
* You have a string x of length N, which consists of small English letters.
* You have to find the number of indexes a, b, c and d, such that 1<=a<b<c<d<=N and x(a)==x(c) , as well as x(b)==x(d).
* Input format
The first line contains the number N - the length of a string x. The second line contains the string... | true |
54e8c632d6d1a0691dfc0b0709d5d45440758ffa | Java | ezekielcalayag/MyRepository | /Project/src/com/pcm/entity/Employee.java | UTF-8 | 4,427 | 2.359375 | 2 | [] | no_license | package com.pcm.entity;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persi... | true |
f214d4b4b5c33cf003fe7b0f58994d1d1d3534d8 | Java | lamaIsm/GildedRose-Refactoring-Kata | /Java/src/main/java/myGildedRose/ItemUpdateVisitor.java | UTF-8 | 1,317 | 2.828125 | 3 | [
"MIT"
] | permissive | package myGildedRose;
import com.gildedrose.Item;
public class ItemUpdateVisitor implements IUpdateVisitor {
@Override
public void update(CheeseItem item) {
if(item.sellIn < 0) {
incrementQuality(item);
}
incrementQuality(item);
decrementSellIn(item);
}
@Override
public void up... | true |
1507028c0bf3190673e86c37cd14e9fbbd2e2be0 | Java | Aceysx/pairGame | /src/main/java/com/pairGame/Board.java | UTF-8 | 691 | 2.953125 | 3 | [] | no_license | package com.pairGame;
/**
* Created by acey on 17-6-3.
*/
public class Board {
private int length = 0;
private int width = 0;
private int[][] currBoard;
public Board(int length, int width) {
this.length = length;
this.width = width;
currBoard = new int[length + 2][width + 2];... | true |
4b8057895df972f40df7747b7762b5284540e5a2 | Java | azrindipu/send-email-AWS-SES | /src/main/java/com/azrin/email/controller/HeartBeatController.java | UTF-8 | 2,273 | 2.15625 | 2 | [] | no_license | package com.azrin.email.controller;
import com.azrin.email.utils.ApiVersion;
import com.azrin.email.utils.Constants;
import com.azrin.email.utils.SwaggerConstants;
import io.swagger.annotations.*;
import org.json.simple.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.bea... | true |
52fed50e4ca74487833cc41e4b69d05d7eb79581 | Java | shrutikhungar/JavaPracticals | /05-aboutConditions/src/com/k2js/aboutconditions/practise/MathRandomVowelGood.java | UTF-8 | 527 | 3.390625 | 3 | [] | no_license | //Requirement: To generate math random number pass through a method and return vowel or consonent
package com.k2js.aboutconditions.practise;
class MathRandomIfGood{
static String goodIfVowelOrNot(char c){
if(c=='A' || c=='A' || c=='A' || c=='A' || c=='A')
return ("Vowel: "+c);
else
return ("Consonant: "... | true |
98d4ee9259b215749a9a332ccc57463e26f89fd6 | Java | seokju2ng/gyetol_study | /src/socket2/Server.java | UTF-8 | 1,470 | 3.15625 | 3 | [] | no_license | package socket2;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.Scanner;
public class Server {
public static void main(String[] args) {
Scanner sc... | true |
77f3e84db0d6d52d6389e2944013e61003c3d3ff | Java | NikolajWeise/FootballManagerWeb | /src/de/weise/fm/web/model/Users.java | UTF-8 | 8,484 | 2.703125 | 3 | [] | no_license | package de.weise.fm.web.model;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.vaadin.server.VaadinSession;
import de.weise.fm.web.model.play.Formation;
import de.weise.fm.web.model.play.Position;
... | true |
6c3ae9b410108b39c0bebe3e72b1affaec03f087 | Java | marcerozek/111mil | /modulo_01/ejercicios/Eje06.java | UTF-8 | 937 | 4.0625 | 4 | [] | no_license | /*
Diseñar un algoritmo que muestre por
pantalla la tabla de multiplicación
del número que ingrese el usuario.
Para definir hasta que número desea
que muestre la tabla de multiplicación
el usuario también deberá ingresar
este valor. La tabla de multiplicación
a mostrar debe empezar en la
multiplicación... | true |
d7aefb05ddf61bab5be937340b3ab75da9e717cb | Java | yongzheng7/atom-api | /atom-compiler/src/main/java/com/atom/compiler/codegen/Context.java | UTF-8 | 2,906 | 2.09375 | 2 | [] | no_license | package com.atom.compiler.codegen;
import com.atom.compiler.utils.Consts;
import com.atom.compiler.utils.Logger;
import org.apache.commons.collections4.MapUtils;
import org.apache.commons.lang3.StringUtils;
import java.text.SimpleDateFormat;
import java.util.Collection;
import java.util.HashSet;
import java.util.Ma... | true |
a16210dbed0a4e8349cf8a4b6638a381859a9272 | Java | helospark/kube-editor | /src/com/helospark/kubeeditor/KubeEditSourceViewerConfiguration.java | UTF-8 | 1,108 | 1.789063 | 2 | [] | no_license | package com.helospark.kubeeditor;
import org.dadacoalition.yedit.editor.YEditSourceViewerConfiguration;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.ITextHover;
import org.eclipse.jface.text.contentassist.ContentAssistant;
import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
i... | true |
8aae4cbbbade8c5c67772a2360ac8e890a71bd4c | Java | kantega/Flyt-cms | /modules/core/src/main/java/no/kantega/publishing/jobs/systemstatus/SystemStatusJob.java | UTF-8 | 3,993 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2009 Kantega AS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | true |
99aa290af5acb4574fbc788bb0b329f851f49d6e | Java | MoHisham211/NewsApp | /app/src/main/java/com/example/newsbanhafullapp/SplashActivity.java | UTF-8 | 1,828 | 2.171875 | 2 | [] | no_license | package com.example.newsbanhafullapp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import com.daimajia.androidanimations.library.Techniques;
import com.viksaa.sssplash.lib.activity.AwesomeSplash;
import com.viksaa.sssplash.lib.cnst.Flags;
import com.viksaa.sssplash.lib.model.Conf... | true |
a0982651a0305d6f3a34bb492264353362f96ea4 | Java | SunnnyChan/algorithms-collection | /src/main/java/me/sunny/demo/algos/lc/medium/NumberOfIslands.java | UTF-8 | 686 | 3.171875 | 3 | [] | no_license | package me.sunny.demo.algos.lc.medium;
/**
* 200. 岛屿数量
*
* 给你一个由 '1'(陆地)和 '0'(水)组成的的二维网格,请你计算网格中岛屿的数量。
*
* 岛屿总是被水包围,并且每座岛屿只能由水平方向或竖直方向上相邻的陆地连接形成。
*
* 此外,你可以假设该网格的四条边均被水包围。
*
* 示例 1:
*
* 输入:
* 11110
* 11010
* 11000
* 00000
* 输出: 1
* 示例 2:
*
* 输入:
* 11000
* 11000
* 00100
* 00011
* 输出: 3
* 解释: 每座岛... | true |
8f0d46d33f3ac062f588dd0aa739ae3b1303012b | Java | ISS-Boy/ElasticSearchApi | /src/main/java/com/iss/bigdata/health/elasticsearch/entity/Encounter.java | UTF-8 | 2,541 | 2.015625 | 2 | [] | no_license | /**
* Copyright 2018 bejson.com
*/
package com.iss.bigdata.health.elasticsearch.entity;
import java.util.Date;
/**
* Auto-generated: 2018-01-03 12:40:27
*
* @author dujijun
*/
public class Encounter {
private long timestamp;
private String user_id;
private Date date;
private String code;
pri... | true |
cbbecef2fb30f5f23ecf73bdc85707d3e9ad9fe1 | Java | SuzyWu2014/coprhd-controller | /vipr-portal/com.iwave.isa.content/src/java/com/emc/sa/service/linux/tasks/MountPath.java | UTF-8 | 517 | 2.328125 | 2 | [] | no_license | /*
* Copyright (c) 2012-2015 iWave Software LLC
* All Rights Reserved
*/
package com.emc.sa.service.linux.tasks;
import com.iwave.ext.linux.command.MountCommand;
public class MountPath extends LinuxExecutionTask<Void> {
private String path;
public MountPath(String path) {
this.path = path;
}
... | true |
3c49de340db2e672c9491c0be78b505abf28e3ff | Java | MaaaaaaaarouaS/pattern | /FactoryMethod/src/VehiculeFactory/VehiculeFactory.java | UTF-8 | 303 | 2.8125 | 3 | [] | no_license | package VehiculeFactory;
public abstract class VehiculeFactory {
public Vehicule CreerVehicule(String modele, String marque, int puissance) {
return FabricateVehicule( modele, marque, puissance);
}
protected abstract Vehicule FabricateVehicule(String modele, String marque, int puissance);
}
| true |
ecad7f3d34d0e4537eed8fbf500f36bb45d01c21 | Java | cosim/fuzuli | /JFuzuli/JFuzuli/test/Interpreter/ThilinguaParserTest.java | UTF-8 | 1,161 | 2.8125 | 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 Interpreter;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.Before... | true |
8ac5543381f76dcde6a72ea8930cd10779611333 | Java | beihuxiansheng/elasticsearch-token | /core/src/main/java/org/elasticsearch/common/recycler/ConcurrentDequeRecycler.java | UTF-8 | 4,174 | 2 | 2 | [
"Apache-2.0"
] | permissive | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you u... | true |
18329115f6a1d4c7dd3a92cb7a488fe7e55163b9 | Java | sridharavinash/TeamTrafficLights | /src/com/sridharavinash/teamtrafficlights/TCDataHandler.java | UTF-8 | 1,342 | 2.421875 | 2 | [] | no_license | package com.sridharavinash.teamtrafficlights;
import java.util.ArrayList;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
/** DataHandler for XML parsing */
class TCDataHandler extends DefaultHandler implements IDataInterface{
private StringB... | true |
3dd161db14d48cb36e971153919623ad8c89ba02 | Java | mrigankaayant/zuul_project | /zuul_stock_project_workspace/candidate-service/src/main/java/com/candidateservice/app/model/Candidate.java | UTF-8 | 1,314 | 2.234375 | 2 | [] | no_license | package com.candidateservice.app.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "candidate", catalog = "zuul_testing")
public c... | true |
e7a608b506fa43a71a57a6bd68e04cdfbb312e36 | Java | WerAndres/pruebAPP | /app/src/main/java/pruebaap/werinc/co/com/pruebapp/principal/Apps.java | UTF-8 | 21,153 | 1.6875 | 2 | [] | no_license | package pruebaap.werinc.co.com.pruebapp.principal;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.ActivityOptionsCompat... | true |
635edcaef300cdd318919745fb059a631a9372d3 | Java | shivamece121/Traning | /CarTask/src/HondaGearBox.java | UTF-8 | 334 | 2.875 | 3 | [] | no_license | public class HondaGearBox implements Gearbox {
@Override
public String operate(Car c) {
double topSpeed = 180;
double AvgMilage = 50;
String carEngine= c.getEngine();
return "top speed of car engine "+carEngine+" with Honda gear box is "+topSpeed+"and milage is "+AvgMilag... | true |
d8134a0cbf66a416a7c3fa089de6085ea321f99d | Java | mikearson/todoMVCBackend | /todoMVCBackend/src/main/java/com/project/todoMVCBackend/Controller.java | UTF-8 | 1,874 | 2.390625 | 2 | [] | no_license | package com.project.todoMVCBackend;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.spri... | true |
3aeb11570f91fe3131d478cde022674e4f6467f3 | Java | verzano/monospaced-rss | /src/main/java/dev/verzano/monospaced/rss/source/gui/EditSourceFloater.java | UTF-8 | 4,278 | 2.125 | 2 | [] | no_license | package dev.verzano.monospaced.rss.source.gui;
import dev.verzano.monospaced.core.ansi.sgr.Attribute;
import dev.verzano.monospaced.core.ansi.sgr.Background;
import dev.verzano.monospaced.core.ansi.sgr.Foreground;
import dev.verzano.monospaced.core.ansi.sgr.SgrFormat;
import dev.verzano.monospaced.core.constant.Positi... | true |
dcc391a2d9a03a72a2833561ba10eeabc8465b45 | Java | indevMioss/YesEvilProject | /core/src/com/interdev/game/screens/game/hud/gui/AmmoVisual.java | UTF-8 | 4,460 | 2.328125 | 2 | [] | no_license | package com.interdev.game.screens.game.hud.gui;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.ParticleEmitter;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.Group;
import com.badlogic.gdx.utils.ObjectMap;
import com.... | true |
a18ffd3b742c5ceab4751f5ba825491b418a5963 | Java | pieterhijma/cashmere | /src/main/java/ibis/cashmere/constellation/KernelLaunch.java | UTF-8 | 5,153 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 Vrije Universiteit Amsterdam, The Netherlands
*
* 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 |
7a687cff19153be5171c9ee787281b37aef08908 | Java | gabcamilo/orange-talents-04-template-proposta | /src/main/java/br/com/zupacademy/gabriela/proposal/creditCard/travelAlert/CreditCardTravelAlertRequest.java | UTF-8 | 962 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package br.com.zupacademy.gabriela.proposal.creditCard.travelAlert;
import br.com.zupacademy.gabriela.proposal.creditCard.CreditCard;
import br.com.zupacademy.gabriela.proposal.creditCard.travelAlert.CreditCardTravelAlert;
import javax.validation.constraints.Future;
import javax.validation.constraints.NotBlank;
impor... | true |
c23f3f4f6e2378f3281d81181435ea27826cc9b8 | Java | Saphyra/skyxplore2_1 | /src/test/java/com/github/saphyra/skyxplore/platform/redirection/CharacterNotSelectedFilterSettingTest.java | UTF-8 | 2,917 | 1.734375 | 2 | [] | no_license | package com.github.saphyra.skyxplore.platform.redirection;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.BDDMockito.given;
import java.util.Optional;
import javax.servlet.http.HttpServletRequest;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
i... | true |
d53a1c1c1022d9815509095c4414cc25b829a23f | Java | zcolin/ZUILib | /libGui/src/main/java/com/zcolin/gui/ZDialog.java | UTF-8 | 6,567 | 2.25 | 2 | [] | no_license | package com.zcolin.gui;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.ContextWrapper;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.os.SystemClock;
import android.util.SparseArray;
import android.view.View;
... | true |
8d9ffce3c827de24df1ec26e9fa14ff1d81d1b0f | Java | bcskill/eostart | /Android/app/src/main/java/wannabit/io/eoswallet/dialog/DialogTradeRamKb.java | UTF-8 | 3,486 | 1.984375 | 2 | [
"MIT",
"Apache-2.0"
] | permissive | package wannabit.io.eoswallet.dialog;
import android.app.Dialog;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v7.app.AlertDialog;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View... | true |
d3c2478dc03ddf8c6857c298600087b562fa797d | Java | otkp/23-REG-SERVICES | /epragati-reg-services/src/main/java/org/epragati/master/service/impl/StagingRegistrationDetailsSerivceImpl.java | UTF-8 | 15,901 | 1.734375 | 2 | [] | no_license | package org.epragati.master.service.impl;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.epragati.common.dto.FlowDTO;
import org.epragati.constants.OwnerTypeEnum;
import org.epragati.elastic.vo.Rt... | true |
03976597c337382e132e1b784af69f3e442ceb65 | Java | JustinLau1/base_training | /app/src/main/java/com/bsw/base_training/leetcode/leetcode_771.java | UTF-8 | 1,737 | 3.1875 | 3 | [] | no_license | package com.bsw.base_training.leetcode;
import android.os.Build;
import androidx.annotation.RequiresApi;
import java.util.HashMap;
import java.util.Map;
/**
* 给定字符串J 代表石头中宝石的类型,和字符串 S代表你拥有的石头。 S 中每个字符代表了一种你拥有的石头的类型,你想知道你拥有的石头中有多少是宝石。
* <p>
* J 中的字母不重复,J 和 S中的所有字符都是字母。字母区分大小写,因此"a"和"A"是不同类型的石头。
* <p>
* 示例 1:
... | true |
e4b2848ed8f9644da1cb760843f6cfbbeabf1115 | Java | Principe92/Desktop-Chat-Application | /ChatClient/src/main/App.java | UTF-8 | 7,025 | 2.453125 | 2 | [] | no_license | package main;
import gui.LoginWindow;
import gui.gui;
import listener.AccountListener;
import listener.IChatListener;
import listener.IGuiListener;
import model.*;
import type.IChat;
import type.ILogger;
import type.IMessage;
import type.ISocketProtocol;
import javax.swing.*;
import java.io.IOException;
public class... | true |
4fe2d675ddba5ed95efc04c8b3de0f9986c76032 | Java | GrazielaRO/sistema-gerenciamento-prefeitura | /src/main/java/br/com/zup/estrelas/prefeitura/enums/AreaAtuacao.java | UTF-8 | 310 | 1.929688 | 2 | [
"MIT"
] | permissive | package br.com.zup.estrelas.prefeitura.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;
@Getter
@AllArgsConstructor
@ToString
public enum AreaAtuacao {
SAUDE("saude"), TRANSITO ("transito"), TRANSPORTE("transporte"), EDUCACAO("EDUCACAO");
private String value;
}
| true |
40276923f17104883566fba99a9f869144e149f6 | Java | wangrongfei13625/sxcx-api | /member-api/src/main/java/com/huaxin/member/service/impl/HxUserRoleServiceImpl.java | UTF-8 | 1,726 | 1.953125 | 2 | [] | no_license | package com.huaxin.member.service.impl;
import com.github.pagehelper.PageInfo;
import com.huaxin.member.mapper.HxUserRoleMapper;
import com.huaxin.member.model.HxUserRole;
import com.huaxin.member.service.HxUserRoleService;
import com.huaxin.member.util.PageUtils;
import org.springframework.beans.factory.annotation.Au... | true |
2fbb1227371a2cc6f0fb9baa6251764394a009bd | Java | arasaran/Myparallelproject | /DatabaseSystem/src/main/java/com/flp/fms/dao/ActorDaoImpl.java | UTF-8 | 2,824 | 2.5 | 2 | [] | no_license | package com.flp.fms.dao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.TypedQuery;
import com.flp.ems.domain.Actor;
import com.flp.ems.domain.Film;
import com.flp.fms.exception.Em... | true |
59bac2a0d5972ece527ae4a7b85a356f9c6b7a39 | Java | yue980009351/Study | /src/Test/multiplication.java | UTF-8 | 359 | 2.96875 | 3 | [] | no_license | package Test;
/**
*@Date 2018/7/18 17:55
**/
public class multiplication {
public static void main(String[] args) {
int a = 9;
for (int i = 1; i <= a; i++) {
for (int j = 1; j <= i; j++) {
System.out.print(j + "*" + i + "=" + (i * j) + "\t");
}
S... | true |
4a69176a77b36d5162cbb5ac11fa0aeb8a4dd25e | Java | xande89/aquariando | /Aquariando/src/main/java/org/aquariando/model/vo/AbstractVO.java | UTF-8 | 295 | 2.109375 | 2 | [] | no_license | package org.aquariando.model.vo;
import javax.persistence.Column;
public abstract class AbstractVO
{
@Column(name="STATUS")
private String status;
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
}
| true |
47efca6dca97d3a632265d6dbb7cbda6bcb750d9 | Java | nguyenquanghungktmt/Notes | /product_notes/app/src/main/java/com/example/product_notes/SingleNoteWidget.java | UTF-8 | 2,349 | 2.296875 | 2 | [] | no_license | package com.example.product_notes;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.util.Log;
import android.widget.RemoteViews... | true |
5749acb0b6b0b3d7e9f5a189a9e33634e3539b48 | Java | bongoStudios/supreme-octo-garbanzo | /tpLauti/src/main/java/proyecto/ej1/Perro.java | UTF-8 | 323 | 2.359375 | 2 | [
"MIT"
] | permissive | package proyecto.ej1;
public class Perro extends MascotaMasComunicativa {
public Perro() {
super("guau");;
}
public Perro(String newNombre, String newDueno) {
super(newNombre, newDueno, "guau");
}
public String es() {
return "perro";
}... | true |
18cc0e6af8d5e20f1b6b05279cc3f118a4d06c81 | Java | longluo/leetcode | /Java/src/com/longluo/offer_ii/Offer2_004_singleNumber.java | UTF-8 | 2,231 | 4.03125 | 4 | [
"MIT"
] | permissive | package com.longluo.offer_ii;
import java.util.HashMap;
import java.util.Map;
/**
* 剑指 Offer II 004. 只出现一次的数字
* <p>
* 给你一个整数数组 nums ,除某个元素仅出现 一次 外,其余每个元素都恰出现 三次 。请你找出并返回那个只出现了一次的元素。
* <p>
* 示例 1:
* 输入:nums = [2,2,3,2]
* 输出:3
* <p>
* 示例 2:
* 输入:nums = [0,1,0,1,0,1,100]
* 输出:100
* <p>
* 提示:
* 1 <= nums.le... | true |
2233949f547172d6d357b97231120ed8864a1d69 | Java | eshazdza/ProjetBI2 | /src/entities/phase/Phase.java | UTF-8 | 1,478 | 2.96875 | 3 | [] | no_license | package entities.phase;
import controllers.direction.DirectionController;
import entities.direction.Direction;
import java.util.ArrayList;
public class Phase {
private ArrayList<Direction> directions = new ArrayList<>();
private String name;
private ArrayList<DirectionController> directionControllers = n... | true |
b4b8d3ca81d5f7a9e789598e5af780571ab21619 | Java | marijacurcic7/tim14 | /Projekat/src/View/StavkaNarudzbeniceView.java | UTF-8 | 7,221 | 2.53125 | 3 | [] | no_license | package View;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Image;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.G... | true |
2e7b89e5db6157f852b18ceb04e550fb95b6dd48 | Java | chuhuilove/marshal | /marshal-client/src/main/java/com/chuhui/marshal/client/network/NettyClientContextFactory.java | UTF-8 | 3,520 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package com.chuhui.marshal.client.network;
import com.chuhui.marshal.framework.utils.Constant.CLIENT_REMOTE_REQUEST_FLAG;
import com.chuhui.marshal.framework.utils.ServerFactoryUtils;
import io.netty.bootstrap.Bootstrap;
import io.netty.buffer.ByteBuf;
import io.netty.channel.*;
import io.netty.channel.socket.S... | true |
ad146267a924a6bc5bed87ed0e99c4031ba41508 | Java | zhuxiuwei/algo | /src/LeetCode/round1/medium/P419_BattleshipsInABoard.java | UTF-8 | 3,260 | 4.15625 | 4 | [] | no_license | package LeetCode.round1.medium;
/**
* 161117
Given an 2D board, count how many different battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. You may assume the following rules:
You receive a valid board, made of only battleships or empty slots.
Battleships can only... | true |
68923cf559e5328ec4ed51312580c7a1c50e29d3 | Java | opencolor/instrumentation | /manual/src/main/java/my/opencolor/spectro/drivers/manual/ReflectionReader.java | UTF-8 | 2,466 | 2.375 | 2 | [] | no_license | /*
* Copyright 2009 Niclas Hedhman.
*
* 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 applicabl... | true |
4d51419e0672bbe16154121142350b57b21148d0 | Java | BellaDati/belladati-sdk-java | /src/main/java/com/belladati/sdk/form/impl/FormElementImpl.java | UTF-8 | 1,630 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | package com.belladati.sdk.form.impl;
import java.util.ArrayList;
import java.util.List;
import com.belladati.sdk.form.FormElement;
import com.belladati.sdk.form.FormElementType;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
public class FormElementImpl implemen... | true |
fa22cb572147a083258dfd080d9f5f40a44d7e29 | Java | RainyXY/ssh | /src/pers/lisiyan/relestate/controller/UserFrontController.java | UTF-8 | 1,929 | 2.0625 | 2 | [] | no_license | package pers.lisiyan.relestate.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import com.opensymphony.xwork2.ActionContext;
import Util.LogUtil;
import pers.lisiyan.relestate.model.UserModel;
import pers.... | true |
62d7e49216f0d08ebcdba56a7edb0228daac07e7 | Java | pradeeprthd/logistica-base | /logistica/logistica_jar/src/main/java/logistica/query/SucursalCotoQuery.java | UTF-8 | 659 | 2.421875 | 2 | [] | no_license | package logistica.query;
public class SucursalCotoQuery extends BaseQuery {
private String nombre;
private Long numeroSucursal;
public SucursalCotoQuery(Long id, String nombre, Long numeroSucursal) {
super(id);
this.nombre = nombre;
this.numeroSucursal = numeroSucursal;
}
public SucursalCotoQu... | true |
61f50da9daa651fa3495b98ffa75ea5cdb364644 | Java | Chrish0r/AlgorithmsAndDataStructuresCourse | /Practice/src/lecture/sortierAlgorithmen/repetition/BubbleSort.java | UTF-8 | 1,357 | 4 | 4 | [] | no_license | package lecture.sortierAlgorithmen.repetition;
public class BubbleSort {
public static void main(String[] args) {
int[] array = {34, 45, 12, 34, 23, 18, 38, 17, 43, 51};
// bubbleSort(array, array.length);
bubbleSortMax(array, array.length);
for(int i = 0; i < array.length; i++) {
... | true |
d30ab0df040e3810fc0a28306e4f3cb4af28ab4c | Java | ZJUT/PassportCenter | /src/main/java/rugal/center/core/dao/impl/PassportDaoImpl.java | UTF-8 | 2,062 | 2.21875 | 2 | [] | no_license | package rugal.center.core.dao.impl;
import java.util.List;
import ml.rugal.sshcommon.hibernate.HibernateBaseDao;
import ml.rugal.sshcommon.page.Pagination;
import org.hibernate.Criteria;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import ru... | true |