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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0c5ab9db2e9594ee22f0119111b698fd88261750 | Java | EdyKnopfler/ep2-compmovel | /app/src/main/java/br/usp/ime/aet/opengl3/Bloco.java | UTF-8 | 695 | 2.484375 | 2 | [] | no_license | package br.usp.ime.aet.opengl3;
public class Bloco extends Sprite {
public static final float LARG_BLOCO = 0.2f;
public static final float ALT_BLOCO = 0.1f;
public static final float PAD_RAPIDO = 1;
public static final float RESET_EFEITO = 2;
public static final float BOLA_LENTA = 3;
private ... | true |
1676b39866b239b5e7765d7bf95e7f0339f9dda1 | Java | aitong233/dsa | /spadea-android/module_room/src/main/java/com/qpyy/room/contacts/SystemNewsContacts.java | UTF-8 | 744 | 1.804688 | 2 | [] | no_license | package com.qpyy.room.contacts;
import android.app.Activity;
import android.support.v4.app.FragmentActivity;
import com.qpyy.libcommon.base.IPresenter;
import com.qpyy.libcommon.base.IView;
import com.qpyy.room.bean.NewsListBean;
import java.util.List;
/**
* 项目名称 qipao-android
* 包名:com.qpyy.room.contacts
* 创建人 黄... | true |
8c62edead3ab64294b7bb22122a65d97a968c2ac | Java | amdtelecom/jsmpp | /jsmpp/src/test/java/org/jsmpp/bean/SimpleDataCodingTest.java | UTF-8 | 4,633 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distri... | true |
c84030cbaefc94aad91fdf3d31a09ed3b222a979 | Java | kaczmarek-mw/orderbooks | /src/main/java/com/mk/orderbooks/domain/FinancialInstrument.java | UTF-8 | 105 | 1.742188 | 2 | [] | no_license | package com.mk.orderbooks.domain;
public enum FinancialInstrument {
BTC, USD, CHF, GOOGLE, NESTLE
}
| true |
34b80d074c85c43ac4c2c77f5faed55854dd9b7e | Java | NathanBorchelt/2021material | /CSA/Unit2/Section1/LoopSP.java | UTF-8 | 3,194 | 3.625 | 4 | [] | no_license | import java.util.Scanner;
public class LoopSP {
public static void main(String[] args) {
//howMany();
//reverse();
//removeEveryOther();
removeVowels();
//removeDoubleSpace();
//dyslexia();
//duplicateChars();
//anagrams();
}
public static void... | true |
85ea9f165e23e976fd18ee3146b0f335b47ce186 | Java | nightwolf93/Wakxy-Core-Decompiled | /1_39_120042/com/ankamagames/framework/graphics/engine/particleSystem/ParticleSystemLoader.java | UTF-8 | 6,095 | 2.40625 | 2 | [] | no_license | package com.ankamagames.framework.graphics.engine.particleSystem;
import org.apache.log4j.*;
import com.ankamagames.framework.fileFormat.io.*;
import com.ankamagames.framework.graphics.engine.particleSystem.lightColorHelper.*;
import com.ankamagames.framework.graphics.engine.states.*;
import java.io.*;
import com.anka... | true |
ef2625cc553df5ce48527d2baba2c657b7e6a447 | Java | moutainhigh/collection-platform | /collection-service/src/main/java/com/br/collection/service/intellect/impl/RobotCallDetailServiceImpl.java | UTF-8 | 1,240 | 1.765625 | 2 | [] | no_license | package com.br.collection.service.intellect.impl;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.br.collection.entity.intellect.RobotCallDetail;
import com.br.collection.mapper.intellect.RobotCallDetailMapper;
import com.br.collection.service.intellect.RobotCallDetailService;
import org.springfra... | true |
ccbb19a5cb2c27623004976285b8fd8ca60254c0 | Java | ankuriitg/cloudbreak | /integration-test/src/main/java/com/sequenceiq/it/cloudbreak/newway/client/RecipeTestClient.java | UTF-8 | 954 | 1.65625 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"ANTLR-PD",
"CDDL-1.0",
"bzip2-1.0.6",
"Zlib",
"BSD-3-Clause",
"MIT",
"EPL-1.0",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-jdbm-1.00",
"Apache-2.0"
] | permissive | package com.sequenceiq.it.cloudbreak.newway.client;
import org.springframework.stereotype.Service;
import com.sequenceiq.it.cloudbreak.newway.action.Action;
import com.sequenceiq.it.cloudbreak.newway.action.v4.recipe.RecipeCreateAction;
import com.sequenceiq.it.cloudbreak.newway.action.v4.recipe.RecipeDeleteAction;
i... | true |
ae9b38072366355885e72bba7b311eda21f9baed | Java | pavanhp001/Spring-boot-proct | /Spring-proctice/src/SCenter/ACDC-Checkout-static/src/main/java/com/all/service/BackButtonService.java | UTF-8 | 2,382 | 2.078125 | 2 | [] | no_license | package com.AL.service;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Service;
import com.AL.ui.InstallationVO;
import com.AL.ui.ProductVO;
import com.AL.ui.QualificationVO;
import com.AL.ui.domain.DigitalCacheKeys;
import com.AL.ui.domain.SessionKeys;
import com.AL.u... | true |
9d6085af5468fccf6c546aef4e814194ab911f2a | Java | iamvo1d/JavaTraining | /MultiD.java | UTF-8 | 714 | 3.703125 | 4 | [] | no_license |
public class MultiD {
//multidimensional array is an array of arrays
// 3D(2D is similar with two [])
String[][][] data = new String[3][4][2];
}
// uncomment and comment above class. :)
/*
class MultiD {
public static void main(String[] args) {
// created a 2d array
... | true |
d4db797b43857c8c0f921bcf3580b5b2a4702015 | Java | lutfi99/Android-AplikasiPhoto | /src/com/example/studio/Timeline.java | UTF-8 | 4,083 | 2.109375 | 2 | [] | no_license | package com.example.studio;
import java.util.ArrayList;
import java.util.List;
import android.annotation.SuppressLint;
import android.app.ListActivity;
import android.database.Cursor;
import android.os.Bundle;
import android.util.Log;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
@S... | true |
bba9aa46ded1ea34d75337f2e1b6dc5c21b3f9a7 | Java | OlegStotsky/Pascal-Compiler | /parser/node/NodeBoolConst.java | UTF-8 | 551 | 2.625 | 3 | [] | no_license | package parser.node;
import parser.Utils;
import parser.symbol.*;
/**
* Created by olegstotsky on 16.04.17.
*/
public class NodeBoolConst extends Node {
public Boolean val;
public NodeBoolConst() {
this.val = null;
}
public NodeBoolConst(Boolean val) {
this.val = val;
}
pu... | true |
633ae577ccc19e636accfe9431e21ec1328bb2b8 | Java | ArpanAdhikary/labs | /Labs/src/lab13/exercise2/TimerApp.java | UTF-8 | 718 | 3.453125 | 3 | [] | no_license | package lab13.exercise2;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
class TimerThread implements Runnable{
@Override
public void run() {
while(true)
{
try {
Date date = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("hh:mm:ss");
... | true |
abec9f5c3bb9c848b60e3166e58afad1ee34d777 | Java | ZRupp/climbing-app | /src/OutdoorRoute.java | UTF-8 | 509 | 2.640625 | 3 | [] | no_license | public class OutdoorRoute extends OutdoorClimb {
private int numberOfPitches;
OutdoorRoute(String name, Face faceType, Grade gradeOfficial, Grade gradeFeel, boolean sent, int attempts,
String rockType, String location, int numberOfPitches){
super(name, faceType, gradeOfficial, g... | true |
e12fa28cd44dde15bcea981219a1668eb8e929a8 | Java | origalin/teamwork | /CMASS/src/edu/nju/businesslogic/collectionbl/MoocCollectionbl.java | GB18030 | 872 | 2.25 | 2 | [] | no_license | package edu.nju.businesslogic.collectionbl;
import java.rmi.RemoteException;
import java.util.ArrayList;
import edu.nju.po.SendDocPO;
public class MoocCollectionbl extends Collectionbl{
public MoocCollectionbl(String institutionID, String staffID) throws RemoteException {
super( staffID);
// TODO ԶɵĹ캯
}
Strin... | true |
92f213c81a92c62fc9191070b9d84f4a1ff7f615 | Java | decheng-zhang/GCRC_new_feature | /nunaliit2-couch-onUpload/src/main/java/ca/carleton/gcrc/couch/onUpload/inReach/InReachConfiguration.java | UTF-8 | 337 | 1.867188 | 2 | [
"BSD-3-Clause"
] | permissive | package ca.carleton.gcrc.couch.onUpload.inReach;
public class InReachConfiguration {
static private InReachSettings g_settings = new InReachSettingsNone();
static public InReachSettings getInReachSettings() {
return g_settings;
}
static public void setInReachSettings(InReachSettings settings) {
g_settings ... | true |
50b0eb027b311598b063842af1cb6aa553c8697b | Java | bhismalab/START | /START_frontend/Sources/StartApp/test_coloring/src/main/java/com/reading/start/tests/test_coloring/data/ColouringTestModule.java | UTF-8 | 525 | 1.5 | 2 | [
"Apache-2.0"
] | permissive | package com.reading.start.tests.test_coloring.data;
import com.reading.start.tests.test_coloring.domain.entity.ColoringTestContent;
import com.reading.start.tests.test_coloring.domain.entity.ColoringTestSurveyAttachments;
import com.reading.start.tests.test_coloring.domain.entity.ColoringTestSurveyResult;
import io.r... | true |
57e7207176698e99b56f59dbade8614544c6d24d | Java | waitforyouwtt/taobao | /src/main/java/com/yidiandian/vo/LocalSpecialtyInfoVO.java | UTF-8 | 341 | 1.625 | 2 | [] | no_license | package com.yidiandian.vo;
import com.yidiandian.entity.LocalSpecialtyInfo;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;
/**
* @author 凤凰小哥哥
* @date 2020-10-22
*/
@Data
public class LocalSpecialtyInfoVO extends LocalSpecialtyInfo {
/**
* 主图地址
*/
MultipartFile main;... | true |
3e6af896d0d022195bf8911056df4041cd69d8c7 | Java | hankavtech/UniGroups | /app/src/main/java/com/example/myapplication/MainActivity2.java | UTF-8 | 8,707 | 1.851563 | 2 | [] | no_license | package com.example.myapplication;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
im... | true |
e37b7a2765a55b748fc526645090665b75a3e89d | Java | slivkamiro/SIN | /src/cz/fit/vutbr/SIN/agents/CrossRoadAgent.java | UTF-8 | 13,814 | 2.515625 | 3 | [] | no_license | package cz.fit.vutbr.SIN.agents;
import jade.core.AID;
import jade.core.Agent;
import jade.core.behaviours.CyclicBehaviour;
import jade.domain.DFService;
import jade.domain.FIPAException;
import jade.domain.FIPAAgentManagement.DFAgentDescription;
import jade.domain.FIPAAgentManagement.ServiceDescription;
impo... | true |
4f72044045e66891e6b4e956ce3d37b6f5160805 | Java | huangxiaoguo1/hxgmvp | /lib_mvp/src/main/java/tsou/cn/lib_mvp/fragment/HxgFragmentMvpDelegateImpl.java | UTF-8 | 1,786 | 2.15625 | 2 | [] | no_license | package tsou.cn.lib_mvp.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import tsou.cn.lib_mvp.BaseView;
import tsou.cn.lib_mvp.callback.HxgMvpCallBack;
import tsou.cn.lib_mvp.presenter.HxgMvpPresenter;
import tsou.cn.lib_mvp.proxy.HxgMvpCallbackProxy;
/**
... | true |
937b1a55f5f695a70abd9637ea16386280c4b9bc | Java | AppDemoOrg/WebViewSample | /app/src/main/java/com/abt/webview/JSBridge.java | UTF-8 | 904 | 2.546875 | 3 | [] | no_license | package com.abt.webview;
import android.webkit.JavascriptInterface;
public class JSBridge {
private static final String TAG = "JSBridge";
@JavascriptInterface
public void setValue(String value) {
Log.d(TAG, "JS setValue: " + value);
}
@JavascriptInterface
public String getValue() {
... | true |
73e7e348032e0a3a8d5a8bbe0413037db5ce7cc2 | Java | GregoryC44/ProjetBilletterie | /src/modele/dao/LieuDao.java | UTF-8 | 1,296 | 2.65625 | 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 modele.dao;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import modele.metier.L... | true |
ec8efc329dfe4688c17e3053fa3f6f9959c018f4 | Java | yava-ua/zorroid | /src/main/java/com/yava/zorroid/utils/Utils.java | UTF-8 | 252 | 2.203125 | 2 | [] | no_license | package com.yava.zorroid.utils;
import java.util.Random;
public class Utils {
public static int[] random(int limit, int quantity) {
Random randomizer = new Random();
return randomizer.ints(quantity, 0, limit).toArray();
}
}
| true |
7c37f42cfa7a345e654bb78bcf68547b58993fdf | Java | apache/struts | /plugins/spring/src/test/java/com/opensymphony/xwork2/ognl/SecurityMemberAccessProxyTest.java | UTF-8 | 2,626 | 1.65625 | 2 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
5b53f6dcaac54788a1dd9a52447a9fa97a5ff105 | Java | tonmoyroy/ToyRobotSimulator | /src/main/java/simulator/ToyRobotImpl.java | UTF-8 | 623 | 2.765625 | 3 | [] | no_license | package simulator;
import commandpattern.Command;
import interfaces.Robot;
import model.CommandInput;
import model.Place;
public class ToyRobotImpl implements Robot {
private final CommandFactory factory;
private Place current;
public ToyRobotImpl() {
this.factory = new CommandFactory();
}
... | true |
a0c601c1d8e7f7482c84fab8526d95112fd4b773 | Java | sumitchoudhari0210/core-java | /polymorphism/src/Overriding/Test.java | UTF-8 | 110 | 1.515625 | 2 | [] | no_license | package Overriding;
public class Test {
public static void main(String[] args) {
B a= new B();
a.m1();
}
}
| true |
a25b4acee815de19e1897a9c0c4caaab8415489b | Java | alexkazantsev/code-samples | /java/java-rest-example/sponsors/src/main/java/com/spring_rest/sponsors/domain/GuestGroup.java | UTF-8 | 268 | 1.84375 | 2 | [] | no_license | package com.spring_rest.sponsors.domain;
import javax.validation.constraints.NotNull;
import lombok.Data;
@Data
public class GuestGroup {
private Integer id;
private String groupName;
private String groupDescription;
@NotNull
private Integer orgid;
}
| true |
2b47d868af352495bdcf52f8677fc9b67259bd15 | Java | igor-rogachev/athenaeum001 | /src/main/java/com/igorrogachev/athenaeum/controller/GenreController.java | UTF-8 | 2,363 | 2.21875 | 2 | [] | no_license | package com.igorrogachev.athenaeum.controller;
import com.igorrogachev.athenaeum.businessDomain.GenreTrans;
import com.igorrogachev.athenaeum.service.GenreService;
import com.igorrogachev.athenaeum.utils.constants.MapInOutConstants;
import com.igorrogachev.athenaeum.utils.constants.ModelAttributeNameConstants;
import ... | true |
fa3a6259dc070b8c7129aff913c5dd4888da09cd | Java | code2Vici/Silicon-Solutions-CS-480 | /gradebook/src/cs480/gradebook/Category.java | UTF-8 | 596 | 2.875 | 3 | [] | no_license | package cs480.gradebook;
import java.io.Serializable;
@SuppressWarnings("serial")
public class Category implements Serializable{
private String categoryName;
private double weight;
public Category(String categoryName, double weight){
this.categoryName = categoryName;
this.weight = weight;
}
... | true |
4cc3057f809151f2f9f0d80d1477a9db6150c313 | Java | nguyentrisinh/IChat | /app/src/main/java/com/direct/ichat/Adapter/OtherUserAdapter.java | UTF-8 | 11,616 | 1.898438 | 2 | [] | no_license | package com.direct.ichat.Adapter;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.PopupMenu;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.... | true |
4cda1b2cef18a4898f06ac9bde489acb9b399655 | Java | nassimbg/Problems | /src/main/java/InsertDeleteGetRandomDuplicatesAllowed.java | UTF-8 | 2,234 | 3.640625 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.Set;
public class InsertDeleteGetRandomDuplicatesAllowed {
static class RandomizedCollection {
Map<Integer, Set<In... | true |
de38abe3e7560568fd505621e961381146870460 | Java | DimitriDewaele/FeesBoekWar | /src/main/java/be/feesboek/event/PaymentEvent.java | UTF-8 | 1,204 | 2.671875 | 3 | [] | no_license | package be.feesboek.event;
import be.feesboek.interceptor.Logged;
import java.util.Date;
/**
*
* @author dimitridw
*/
@Logged
public class PaymentEvent {
private int amount;
private String type;
private Date datetime;
/**
* Creates a new instance of PaymentBean
*/
public Payment... | true |
e363a6584bc69a8556cf0d4081f7af15994ac053 | Java | Peptidase/Java_Game | /Java_Game/src/Listeners/KeyListener.java | UTF-8 | 217 | 1.984375 | 2 | [] | no_license | package Listeners;
import org.lwjgl.glfw.GLFWKeyCallback;
public class KeyListener extends GLFWKeyCallback {
@Override
public void invoke(long window, int key, int scancode, int action, int mods) {
}
}
| true |
274aa8c3fc57b41a951707b8b950ae90a1684218 | Java | padigender/SimpleDatabase | /src/TreeDatabase.java | UTF-8 | 793 | 2.65625 | 3 | [] | no_license | /**
* Created by pkyasaram on 10/19/15.
*/
import java.util.*;
public class TreeDatabase extends DataBase {
TreeDatabase(){
nameIndex = new TreeMap<String,String>();
valueIndex = new TreeMap<String,Integer>();
}
public TreeMap<String, String> getNameIndex() {
return nameIndex;
... | true |
dc27d5bb023742c51de59decbc5a0b81829b49d8 | Java | drabiter/magnet | /src/com/coffeefury/magnet/screens/LevelScreen.java | UTF-8 | 2,060 | 2.4375 | 2 | [] | no_license | package com.coffeefury.magnet.screens;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.ui.Align;
import com.badlogic.gdx.scenes.scene2d.ui.ClickListener;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
import com.badlogic.gdx.scenes.scene2d.ui.tablelayout.Table;
import com.... | true |
d7ff37d1e91ac4e2e9688361d239452cfb4cf33b | Java | rajanim/problemsolving | /src/main/java/basics/generics/generics_2/SecondLocker.java | UTF-8 | 618 | 3.390625 | 3 | [] | no_license | package basics.generics.generics_2;
/**
* Created by rajani.maski on 7/17/17.
*/
public class SecondLocker<T1, T2> {
private T1 content1;
private T2 content2;
public SecondLocker() {
this(null, null);
}
public SecondLocker(T1 item1, T2 item2) {
storeItemOne(item1);
sto... | true |
c40afe4a2bd46d1fff6d26c7c662640ced3c8bc2 | Java | regit66/serverinz | /src/MenuFactory.java | UTF-8 | 322 | 2.265625 | 2 | [] | no_license | public class MenuFactory {
/**
* @param editorFrame
* @return help menu
*/
public HelpMenu getHelpMenu(GuiApp editorFrame) {
if (this.helpMenu == null) {
this.helpMenu = new HelpMenu(editorFrame);
}
return this.helpMenu;
}
private HelpMenu helpMenu;
... | true |
fac5f4735caf45d2443f9aaa51f4330e6d8fab35 | Java | phuonghuynh/dtools | /src/main/java/com/vnw/data/jooq/tables/pojos/TrackResumeView.java | UTF-8 | 4,096 | 1.75 | 2 | [] | no_license | /**
* This class is generated by jOOQ
*/
package com.vnw.data.jooq.tables.pojos;
import java.io.Serializable;
import java.sql.Timestamp;
import javax.annotation.Generated;
import org.jooq.types.UByte;
import org.jooq.types.UInteger;
import org.jooq.types.ULong;
/**
* This class is generated by jOOQ.
*/
@Gener... | true |
24aa488d8923c1a4348dfa1d815a9fa6a85ac3df | Java | sahilalipuria/Prep | /src/avlTree/AVLTree.java | UTF-8 | 5,184 | 3.984375 | 4 | [] | no_license | /**
*
*/
package avlTree;
/**
* @author salipuri
*
* AVL tree is widely known as self-balancing binary search tree. It is named after its creator (Georgy Adelson-Velsky and Landis’ tree). In AVL Tree, the heights of child subtrees at any node differ by at most 1. At anytime if height difference becomes greater ... | true |
4a348c5c67a34a5e860ebbef359de6d7ca222b46 | Java | ancel/test | /src/main/java/com/ancel/test/Enum/Gender2Test.java | UTF-8 | 157 | 1.90625 | 2 | [] | no_license | package com.ancel.test.Enum;
public class Gender2Test {
public static void main(String[] args) {
System.out.println(Gender2.MALE.getName());
}
}
| true |
bb29adb8375a008ee44ec105aec82b6115c54b0a | Java | flowstone/Base-Java | /day1001/src/org/xueyao/homework06/Test9.java | GB18030 | 1,419 | 4.0625 | 4 | [] | no_license | package org.xueyao.homework06;
/**
* ô: 18ŷϴһɫLiNingƵ·
* ÷
Ϊʵʲ
Ϊ
* @author Yao Xue
* @date Jul 18, 2017 9:46:23 PM
*/
public class Test9 {
public static void main(String[] args) {
new Person("ŷ", 18).wash(new Cloth("LiNing", "ɫ"));
}
}
/*
* Person
* Աage,name
* Աwash(Cloth c)
*
*... | true |
1255b5ffdb33bd05e158440795c599b7a9082b06 | Java | DeepakTiwari13/Stored_Procedure_Performance_with_parameterization | /src/Utils/DBFunction.java | UTF-8 | 3,637 | 2.984375 | 3 | [] | no_license | package Utils;
import java.sql.SQLException;
import org.apache.log4j.Logger;
import Connection_DB.Connection_Parameter;
public class DBFunction extends Connection_Parameter {
/* This class is responsible for fetching various details from database like Database Version,
* Number of connections per database,Number... | true |
19fa5089b26a8b715f0502750b4a9c67861328b8 | Java | vanhaahr/OOP-Opgaver-2018 | /Modul 9/src/modul/pkg9/Nonfoodproduct.java | UTF-8 | 1,210 | 3.46875 | 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 modul.pkg9;
import java.util.Arrays;
/**
*
* @author Kenneth Haahr
*/
public class Nonfoodproduct extends Product {
/... | true |
85afda161525b8dff27371f45c50be5f337361f5 | Java | codeforpakistan/Met-Pollen | /app/src/main/java/com/cfp/metpollen/view/adapters/LocationSpinnerAdapter.java | UTF-8 | 1,733 | 2.40625 | 2 | [
"MIT"
] | permissive | package com.cfp.metpollen.view.adapters;
import android.app.Activity;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.cfp.metpollen.R;
import com.cfp.metpollen.data... | true |
94006aab777db474675adc42efc75304397ded8e | Java | GitHubZJY/JYJPlayer | /app/src/main/java/com/jyj/video/jyjplayer/module/setting/language/LanguageActivity.java | UTF-8 | 4,001 | 1.875 | 2 | [] | no_license | package com.jyj.video.jyjplayer.module.setting.language;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.view.Menu;
import android.view.MenuItem;
import ... | true |
bf0198ff5f17ccb12cd832b912b62f23676a8c4e | Java | devsong/basic_arch | /basic-arch-log/basic-arch-log-dubbo/src/main/java/com/gzs/learn/log/util/LogSystemUtil.java | UTF-8 | 1,515 | 2.421875 | 2 | [] | no_license | package com.gzs.learn.log.util;
import static com.gzs.learn.log.ILogConstant.DEFAULT_DATA_DURATION;
import java.util.Date;
import org.apache.commons.lang3.time.DateUtils;
import com.gzs.learn.log.inf.search.PageSearchRequestDto;
/**
* 默认时间查询范围工具类
* @author guanzhisong
*
*/
public class LogSystemUtil {
/**
... | true |
9a57c4ad45534252003b14b340391651a4023296 | Java | ldqcomon/kafka | /kafka-demo/src/test/java/com/it/ldq/kafkademo/singleLeton/SingleLetonTest.java | UTF-8 | 1,272 | 2.984375 | 3 | [] | no_license | package com.it.ldq.kafkademo.singleLeton;
import lombok.extern.slf4j.Slf4j;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
/**
* @Auther: ldq
* @Date: 2020/3/10
* @Description:
* @Version: 1.0
*/
@Slf4j
public class SingleLetonTest {//懒汉式创建单实例对象
private static vola... | true |
3782cb9ada6cc77137433e0ce54b96a7c865541b | Java | Lotharing/AlgorithmicLearning | /src/top/lothar/interview/ReverseSinglyList.java | GB18030 | 1,047 | 3.6875 | 4 | [] | no_license | package top.lothar.interview;
/**
* ת
* @author ·ͨ
*
*/
public class ReverseSinglyList extends BaseLinkedListExample{
public static void main(String[] args) {
// TODO Auto-generated method stub
SinglyList list = reverseSinglyList(createSinglyList());
while(list!=null) {
System.out.println(lis... | true |
dba79e11a844010621521d114ee4bac3f572be09 | Java | ShemPadi/Students-TeachersFX | /src/project/tools/students/StudentController.java | UTF-8 | 27,937 | 1.867188 | 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 project.tools.students;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXComboBox;
import com.jf... | true |
db8302ba1a21c3b574dce0b3d5d42d0df85ef461 | Java | crockct/GNRS-DOS | /DMap/mf/tools/android/TestGNRS/src/main/java/edu/rutgers/winlab/mfirst/MainActivity.java | UTF-8 | 11,294 | 2.171875 | 2 | [] | no_license | package edu.rutgers.winlab.mfirst;
import android.content.Intent;
import android.os.AsyncTask;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import ... | true |
62b2add527998e58eb92f519e017f68454187cec | Java | Nandan5891/SeleniumCode | /src/KEY_DRIVEN_FOR_LOGIN/ExcelReader.java | UTF-8 | 702 | 2.484375 | 2 | [] | no_license | package KEY_DRIVEN_FOR_LOGIN;
import java.io.File;
import java.io.FileInputStream;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
public class ExcelReader {
static XSSFWorkbook wb;
static XSSFSheet sheet;
public static void exceldata(String path)
{
try
{... | true |
981dfbbd4438c6610932ad5e19ff199fac651e5a | Java | clouse/gamedemo | /GameDemo/src/com/atet/tvmarket/control/mygame/UpdateGameService.java | UTF-8 | 1,540 | 1.976563 | 2 | [] | no_license | package com.atet.tvmarket.control.mygame;
import com.atet.tvmarket.app.BaseApplication;
import com.atet.tvmarket.control.mygame.utils.ImplUtils;
import com.atet.tvmarket.model.net.http.download.InterceptInputApp;
import android.app.Service;
import android.content.Intent;
import android.os.Handler;
import android.os.IB... | true |
2b4c94049c6e37de7904bea32ed2aca0734340fa | Java | diegoalbertorhoden/lab060922 | /lab060922/src/main/java/br/diego/classes/Venda.java | UTF-8 | 979 | 2.328125 | 2 | [] | no_license | package br.diego.classes;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
public class Venda implements Serializable{
private static final long serialVersionUID = 1L;
private int idVenda;
private String cliente;
private BigDecimal total;
private List<String> list... | true |
0deed525a0c1cb29ff765d985cbf786c1d8a0a77 | Java | AGlyzin/java-a-to-z | /generic/src/main/java/ru/kovladimir/generic/AbstractStore.java | UTF-8 | 1,860 | 3.3125 | 3 | [] | no_license | package ru.kovladimir.generic;
/**
* Abstract store.
* @param <T>
*/
public abstract class AbstractStore<T extends Base> implements Store<T>{
/**
* Array.
*/
private SimpleArray<T> array = new SimpleArray<>();
/**
* {@inheritDoc}
* @param value T.
*/
@Override
public v... | true |
838d49c93c4e42de9fec647e9676cfc380d03b90 | Java | cgeo/cgeo | /main/src/main/java/cgeo/geocaching/ui/recyclerview/AbstractRecyclerViewHolder.java | UTF-8 | 413 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package cgeo.geocaching.ui.recyclerview;
import android.view.View;
import androidx.recyclerview.widget.RecyclerView;
/**
* Abstract super class for all view holders. It is responsible for the invocation of the view injection code.
*/
public abstract class AbstractRecyclerViewHolder extends RecyclerView.ViewHolder ... | true |
eea1f95c91fbf1971c933ad5505deb5eccd024b2 | Java | EnochStar/leetcode_study | /src/main/java/com/bjx/tree/AverageofLevelsinBinaryTree.java | UTF-8 | 1,560 | 3.8125 | 4 | [] | no_license | package com.bjx.tree;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
/**
* @author FL8000
* 给定一个非空二叉树, 返回一个由每层节点平均值组成的数组。
*
*
*
* 示例 1:
*
* 输入:
* 3
* / \
* 9 20
* / \
* 15 7
* 输出:[3, 14.5, 11]
* 解释:
* 第 0 层的平均值是 3 , 第1层是 14.5 , 第2层是 11 。因此返回 [3, 14... | true |
a8fd1683ccedbcc3f0b1d6a764ca86b9a21c5c84 | Java | pengan1990/proxy | /src/main/java/parse/ast/fragment/tableref/TableReference.java | UTF-8 | 848 | 2.109375 | 2 | [] | no_license | /**
* (created at 2011-5-10)
*/
package parse.ast.fragment.tableref;
import parse.ast.ASTNode;
import parse.ast.expression.Expression;
/**
*/
public interface TableReference extends ASTNode {
int PRECEDENCE_REFS = 0;
int PRECEDENCE_JOIN = 1;
int PRECEDENCE_FACTOR = 2;
/**
* ... | true |
2c3674ae77b8e3faa3cdd855a3f1ea172224aafc | Java | zhangxinli/leetcode | /dp/BestTimeSellStock4.java | UTF-8 | 1,270 | 3.609375 | 4 | [] | no_license | package com.zxl.dp;
public class BestTimeSellStock4 {
/**
* 给定一个数组,代表股票的价格,最多买卖k次,每天不能进行重复交易
* 思路:用一个二维数组,表示进行在第i天,进行第k个交易
* 条件转换为 dp[k][i] = max(dp[k][i-1],p[i]-p[j]+dp[k-1][j-1])
* 唯一需要考虑的是次数k太多,超过prices的一般,就尅考虑i小于i+1就可以交易
* @param prices
* @return
*/
public int maxProfit(int count, int[] prices) ... | true |
e143c95addb66d056a7b80da97b16366cd27f370 | Java | yisonyang/tencent | /src/main/java/com/tencent/tencent/domain/Card.java | UTF-8 | 1,220 | 2.03125 | 2 | [] | no_license | package com.tencent.tencent.domain;
import org.springframework.data.annotation.TypeAlias;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.sql.Date;
@Entity
@Ta... | true |
65d074c372184b8d54fd820f99a99c7ed707593d | Java | bwliu62/code | /src/CrossExercise4/MaximumValuesOfSizeKSlidingWindows.java | UTF-8 | 3,055 | 4.21875 | 4 | [
"Apache-2.0"
] | permissive | package CrossExercise4;
import java.util.*;
/**
* Given an integer array A and a sliding window of size K, find the maximum value of each window as it slides from left to right.
* <p>
* Assumptions
* <p>
* The given array is not null and is not empty
* <p>
* K >= 1, K <= A.length
* <p>
* Examples
* <p>
* A... | true |
f50ffcaaf38411632e4b3e388cf53ef9e9ec6e5a | Java | wangtianming/android-PathAnim | /simple/src/main/java/org/sun/simple/MainActivity.java | UTF-8 | 2,694 | 1.914063 | 2 | [] | no_license | package org.sun.simple;
import android.content.Intent;
import android.graphics.Path;
import android.graphics.PathMeasure;
import android.graphics.PointF;
import android.support.v4.view.ViewCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Vi... | true |
4b0b28a62f0017a101f4a03443ce1179d7a97ba9 | Java | itsolutionscorp/AutoStyle-Clustering | /assignments/java/proj0/src/203/Board.java | UTF-8 | 9,728 | 3.234375 | 3 | [] | no_license | public class Board{
private Piece[][] pieces;
private boolean firePlayer = true;
private int initialPieceX;
private int initialPieceY;
private boolean selected = false;
private boolean moved = false;
private boolean flag = false;
public Board(boolean shouldBeEmpty){
int N = 8;
pieces = new Piece[N][N];
i... | true |
0b792b2e8c0b9cc02af69baf5f7a82b17f2b9542 | Java | azemZejnil/ListingPictures | /app/src/main/java/com/example/azem/listingpictures/ListPicturesActivity.java | UTF-8 | 3,468 | 2.203125 | 2 | [] | no_license | package com.example.azem.listingpictures;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerVie... | true |
e814c0ead50431122e414d1ba28cfb2070c8f3c8 | Java | Zavaski/DesignPatterns | /FactoryMethod/src/EmissorJMS.java | UTF-8 | 196 | 2.4375 | 2 | [] | no_license |
public class EmissorJMS implements Emissor{
@Override
public void envia(String mensagem) {
System.out.println("Enviando JMS a mensagem: ");
System.out.println(mensagem);
}
}
| true |
d2c72d3f8626e11d046debc28d80623766102097 | Java | zhang1998/browser | /second/quark/src/main/java/com/taobao/weex/ui/view/refresh/core/d.java | UTF-8 | 415 | 1.632813 | 2 | [] | no_license | package com.taobao.weex.ui.view.refresh.core;
import android.animation.Animator;
/* compiled from: ProGuard */
final class d extends n {
final /* synthetic */ WXSwipeLayout a;
d(WXSwipeLayout wXSwipeLayout) {
this.a = wXSwipeLayout;
}
public final void onAnimationEnd(Animator animator) {
... | true |
67a41fac94d670a7282e46ff8dc03e402487f08b | Java | zhyib/InsuranceBackEnd | /src/main/java/com/insurance/model/AutomobileInvoice.java | UTF-8 | 1,477 | 2.28125 | 2 | [] | no_license | package com.insurance.model;
import javax.persistence.*;
import java.util.Date;
@Entity
@Table(name = "automobile_invoice")
public class AutomobileInvoice {
@Id
//@GeneratedValue(strategy= GenerationType.IDENTITY)
private int invoiceId;
private Date date;
private Date paymentDueDate;
privat... | true |
bf8c273d1ca991409f2f0fadeea409226eadeced | Java | crowdin/crowdin-cli | /src/main/java/com/crowdin/cli/client/EmptyFileException.java | UTF-8 | 174 | 1.765625 | 2 | [
"MIT"
] | permissive | package com.crowdin.cli.client;
public class EmptyFileException extends ResponseException {
public EmptyFileException(String message) {
super(message);
}
}
| true |
bc3a6e5acdd12ea722e969a90deb04a898185597 | Java | RandyChou/springBootDemo | /src/main/java/com/suishipen/springbootDemo/enums/Sex.java | UTF-8 | 455 | 3.015625 | 3 | [] | no_license | package com.suishipen.springbootDemo.enums;
public enum Sex {
NONE(0), MALE(1), FEMALE(2);
private final int code;
private Sex(int code) {
this.code = code;
}
public static Sex fromCode(int code) {
if (code == 1) {
return MALE;
} else if (code == 2) {
r... | true |
01e7de5ef05fad771a8c39d1ff4611583e69577a | Java | wjddmswn55/StudyJavaByEclipse | /KoreaITAcademy/LottoAndHighLow/src/lecture/example/classEx/advanced/LottoWinTest.java | UTF-8 | 2,674 | 3.640625 | 4 | [] | no_license | package lecture.example.classEx.advanced;
import java.text.DecimalFormat;
public class LottoWinTest {
public static void main(String[] args) {
DecimalFormat decimalFormat = new DecimalFormat("###,###,###,###"); //천단위 구분자 지정
int testCount = 100;
long[] result = new long[testCount];
for (int loopCount =... | true |
afe946f775a56eed86eade4983d537fe76f24b68 | Java | kritarth1107/FoodGenee | /app/src/main/java/com/foodgeene/preoder/preordermodel/PreOrderModel.java | UTF-8 | 4,226 | 1.734375 | 2 | [] | no_license | package com.foodgeene.preoder.preordermodel;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class PreOrderModel {
@SerializedName("status")
@Expose
private Integer status;
@SerializedName("id")
@Expose
private Stri... | true |
85f4a8d760dc6959eaa823ab485e63944096c66b | Java | hanakiho/GEEKJOB-Challenge | /CampChallenge_java/018.DB操作/db2.java | UTF-8 | 1,646 | 2.703125 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package newJavaパッケージ;
import java.sql.DriverManager;
import java.sql.*;
/**
*
* @author hanakimisato
*/
public class db2 {
publ... | true |
14d857a8b6b3485f70b6ba7bd549a08e5d938d49 | Java | Zhubun/Spring-Boot_cache | /src/test/java/com/zhubun/spring_cache/SpringCacheApplicationTests.java | UTF-8 | 1,622 | 2.21875 | 2 | [] | no_license | package com.zhubun.spring_cache;
import com.zhubun.spring_cache.mapper.EmployeeMapper;
import com.zhubun.spring_cache.pojo.Employee;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.junit.jupiter.api.Test;
import org.mybatis.spring.SqlSessionFactoryBean;
impor... | true |
2887a0eda50dd7939adc60db1e13634627f93beb | Java | goodwin332/extension-push | /extension-push/src/java/com/defold/push/PushDispatchActivity.java | UTF-8 | 2,306 | 2.578125 | 3 | [
"MIT"
] | permissive | package com.defold.push;
import java.io.PrintStream;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
public class PushDispatchActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedI... | true |
eea8c12f3081603ee3a669dd80ad4b9967ff8750 | Java | rain9155/LeetCodeSolution | /src/medium/leetcode373/Solution.java | UTF-8 | 1,988 | 3.84375 | 4 | [
"Apache-2.0"
] | permissive | package medium.leetcode373;
import java.util.*;
/**
* 查找和最小的K对数字:
* 给定两个以升序排列的整形数组 nums1 和 nums2, 以及一个整数 k。
* 定义一对值 (u,v),其中第一个元素来自 nums1,第二个元素来自 nums2。
* 找到和最小的 k 对数字 (u1,v1), (u2,v2) ... (uk,vk)。
*
* 示例 1:
* 输入: nums1 = [1,7,11], nums2 = [2,4,6], k = 3
* 输出: [1,2],[1,4],[1,6]
* 解释: 返回序列中的前 3 对数:
* [1... | true |
b08ad0a3525e8a2096c5e07106d3a27c40368cde | Java | nckmml/ANXGallery | /src/ANXGallery/sources/com/miui/gallery/cloud/SyncOwnerFromLocal.java | UTF-8 | 21,350 | 1.539063 | 2 | [] | no_license | package com.miui.gallery.cloud;
import android.accounts.Account;
import android.content.Context;
import android.database.Cursor;
import android.database.DatabaseUtils;
import android.net.Uri;
import android.text.TextUtils;
import com.google.common.collect.Lists;
import com.miui.gallery.cloud.base.GalleryExtendedAuthTo... | true |
2d29c4bc96561ab49f184e0a7f3caf53f23f41b1 | Java | shitiger/util | /src/main/java/enumTest/NestEnum.java | UTF-8 | 884 | 2.65625 | 3 | [] | no_license | package enumTest;
import com.sun.scenario.effect.impl.prism.PrImage;
import static enumTest.NestEnum.TypeEnum.TYPE_ANIMAL1;
/**
* @author stone tiger
* @Description:
* @date 2019/10/8
*/
public enum NestEnum {
DOG(1,"dog",TypeEnum.TYPE_ANIMAL1),
CAT(2,"CAT",TypeEnum.TYPE_ANIMAL2),
PIG(3,"pig",TypeEn... | true |
9053f262387701e17052743461988f7dc7891d6b | Java | vishalchopra790/JsonJava | /src/test/java/JsonToJava.java | UTF-8 | 2,465 | 2.765625 | 3 | [] | no_license | import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import org.apache.commons.text.StringEscapeUtils;
import org.json.simple.JSONObject;
import java.io.File;
import java.io.FileWriter;
import java.sql.*;
import java.util.ArrayList;
public class JsonToJava... | true |
25bd53a66da195fd4c859ce2fc5fb79ae3bea33e | Java | taehyeong224/algorithm-study | /kth/A4447.java | UTF-8 | 962 | 3.328125 | 3 | [] | no_license | package kth;
import java.io.*;
public class A4447 {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
int N = Integer.parseInt(br.... | true |
ff5b06503adce5963b120ca4e6cb6ef975d208b5 | Java | Ma-zhengyang/BeautyCam | /app/src/main/java/com/android/mazhengyang/beautycam/ui/widget/GalleryButton.java | UTF-8 | 4,000 | 2.265625 | 2 | [] | no_license | package com.android.mazhengyang.beautycam.ui.widget;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.os.Environment;
import android.support.v4.app.ActivityCompat;
import android.util.AttributeSet;
import android.util.Log;... | true |
1f29ca1069cacdd5cbe6f7752ded6e7231bb5cf8 | Java | dstmath/OppoR15 | /app/src/main/java/java/sql/BatchUpdateException.java | UTF-8 | 2,105 | 2.40625 | 2 | [] | no_license | package java.sql;
import java.util.Arrays;
public class BatchUpdateException extends SQLException {
private static final long serialVersionUID = 5977529877145521757L;
private final int[] updateCounts;
public BatchUpdateException(String reason, String SQLState, int vendorCode, int[] updateCounts) {
... | true |
79597fd05eb21f7238798b5ce9419c44f14325c1 | Java | hmcts/sscs-common | /src/main/java/uk/gov/hmcts/reform/sscs/model/client/JudicialMemberAuthorisations.java | UTF-8 | 888 | 1.695313 | 2 | [
"MIT"
] | permissive | package uk.gov.hmcts.reform.sscs.model.client;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDateTime;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.N... | true |
1aca204f35562ace4901e5c83e4db6ca5bc664bc | Java | Hugo-DECOUTY/ULR-Projects | /Projet Modelisation Contrôle noté/DECOUTY_Hugo/src/decorateurZoo/DecorateurIHMDirection.java | UTF-8 | 609 | 3.0625 | 3 | [] | no_license | package decorateurZoo;
public class DecorateurIHMDirection extends DecorateurIHM{
public DecorateurIHMDirection(AbstractionIHM abstraction) {
super(abstraction);
}
@Override
public void afficherMenu()
{
this.abstraction.afficherMenu();
System.out.println("1 - G... | true |
1cd2f9b2436009024de51ce6ea1ef8438ab07229 | Java | duyunqiang/mysteam | /coupon/api/src/main/java/com/akkafun/coupon/api/events/AskUseCoupon.java | UTF-8 | 1,424 | 2.109375 | 2 | [] | no_license | package com.akkafun.coupon.api.events;
import com.akkafun.base.event.constants.EventType;
import com.akkafun.base.event.domain.AskEvent;
import com.akkafun.base.event.domain.Revokable;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/*... | true |
45cdf0e33ec10683df255e969f5b7f43c80d0f2b | Java | wallaby/qualification | /app/src/main/java/net/gojimo/toth/qualification/QualificationListFragment.java | UTF-8 | 4,199 | 2.15625 | 2 | [] | no_license | package net.gojimo.toth.qualification;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
import andr... | true |
cb569c9ed016b6969649487afa5b4d16d3ec8f9b | Java | rmnblm/WineScore | /app/src/main/java/ch/hsr/winescore/ui/wine/WineRecyclerViewAdapter.java | UTF-8 | 1,359 | 2.46875 | 2 | [
"MIT"
] | permissive | package ch.hsr.winescore.ui.wine;
import android.arch.paging.PagedListAdapter;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import ch.hsr.winescore.R;
import ch.hsr.winescore.domain.models.Wine;
import ch.hsr.winescore.ui.utils... | true |
372d7d520246514ebf15b8256a08f708865ac020 | Java | DavidS1106/PAE | /pae/src/main/java/be/ipl/pae/dal/UtilisateurDaoImpl.java | UTF-8 | 9,206 | 2.546875 | 3 | [] | no_license | package be.ipl.pae.dal;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.logging.Level;
import be.ipl.pae.mobilite.FactoryMobilite;
import be.ipl.pae.utilisateur.FactoryUtilisateur;
import be.ipl.pae.utilisateur.UtilisateurDto;
imp... | true |
e388c186dbe8770cab75da9b2a01ad59e7bcafe2 | Java | zhao-qc/zstack | /plugin/applianceVm/src/main/java/org/zstack/appliancevm/ApplianceVmFirewallProtocol.java | UTF-8 | 112 | 1.5625 | 2 | [
"Apache-2.0"
] | permissive | package org.zstack.appliancevm;
/**
*/
public enum ApplianceVmFirewallProtocol {
udp,
tcp,
all,
}
| true |
907274e9a21cc0817cc6518414a7c68b917fe814 | Java | venkat-developer/FeetVTS | /prj/src/java/com/i10n/fleet/util/EnvironmentInfo.java | UTF-8 | 5,503 | 2.390625 | 2 | [] | no_license | package com.i10n.fleet.util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.net.InetAddress;
import java.net.UnknownHostException;
... | true |
1183457dabaf8a5d1cd7fc010d1c3bb584f923f3 | Java | skkuse-adv/2019Fall_team2 | /analysis/reverse-engineering/decompile-fitts-20191031-2200/sources/kotlin/text/StringsKt__StringNumberConversionsJVMKt.java | UTF-8 | 3,166 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package kotlin.text;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.MathContext;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
class StringsKt__StringNumberConversionsJVMKt extends StringsKt__StringBuild... | true |
fd1dcb36bc0afbff758c3d6fd969c8acfed11154 | Java | sacevesc/EscalaAppV2 | /app/src/main/java/mx/iteso/escalaapp/beans/Competition.java | UTF-8 | 2,941 | 2.359375 | 2 | [] | no_license | package mx.iteso.escalaapp.beans;
/**
* Created by aceve on 04/03/2018.
*/
public class Competition {
private String name;
private String gym;
private String description;
private String image;
private String thumb;
private String no_rounds, no_categorys;
// public String [] categories;
... | true |
cba997858e20e899a00257913698b5500f05a8e8 | Java | Silwings-git/quick-transform | /src/main/java/com/silwings/transform/utils/TransformUtils.java | UTF-8 | 1,158 | 2.53125 | 3 | [
"LicenseRef-scancode-mulanpsl-2.0-en",
"MulanPSL-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.silwings.transform.utils;
import com.silwings.transform.advice.TransformBackups;
/**
* @ClassName TransformUtils
* @Description
* @Author 崔益翔
* @Date 2020/12/19 16:22
* @Version V1.0
**/
public class TransformUtils {
/**
* description: 使用当前数据获取备份数据
* version: 1.0
* date: 2020/12/1... | true |
acce9a219eb43bec9097f5b7ad1c0f3f2c47041c | Java | eCoreGo/Team-Building | /src/main/java/com/core/service/TeamService.java | UTF-8 | 4,467 | 2.296875 | 2 | [] | no_license | package com.core.service;
import com.core.bean.Member;
import com.core.bean.Team;
import com.core.mapper.TeamMapper;
import com.core.mapper.TeamMemberMapper;
import com.core.util.GetSqlSessionFactory;
import org.apache.ibatis.session.SqlSession;
import java.util.List;
public class TeamService {
@SuppressWarning... | true |
37f5905ee3349bdf09aed09da86935ef890b7c26 | Java | pho-moment/moment-organization | /src/main/java/com/moment/comment/service/CommentServiceImp.java | UTF-8 | 2,143 | 2.234375 | 2 | [] | no_license | package com.moment.comment.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.moment.comment.dao.CommentVOMapper;
import com.moment.comment.d... | true |
5c7a29913975de5e23e1a5a16730edd332b086c9 | Java | ipe369/Vector | /Vector/src/game/vector/PlayerBullet.java | UTF-8 | 572 | 3.1875 | 3 | [] | no_license | package game.vector;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Point;
public class PlayerBullet extends Bullet implements Updates
{
private Point prevPoint;
public PlayerBullet(int _x, int _y, int _xSpeed, int _ySpeed)
{
super(_x, _y, _xSpeed, _ySpeed);
prevPoint = new Point(_x,_y);
... | true |
f1a5230f6ab01a6489fc01a977c7691772e9176d | Java | Zalarox/Routine | /app/src/main/java/com/siddhant/routine/fragments/CourseListFragment.java | UTF-8 | 3,037 | 2.265625 | 2 | [] | no_license | package com.siddhant.routine.fragments;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7... | true |
763fc8d66f712ce9658cdca268934d35f9be4cb3 | Java | sunnyfnc/cayenne | /cayenne-server/src/main/java/org/apache/cayenne/dba/openbase/OpenBaseJoinStack.java | UTF-8 | 3,567 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | /*****************************************************************
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* ... | true |
401006623d67d5d4816710b2efcc400994184fae | Java | kansasSamurai/java-in-jails | /src/main/java/org/jails/validation/client/AbstractClientConstraintInfo.java | UTF-8 | 1,988 | 2.171875 | 2 | [] | no_license | package org.jails.validation.client;
import org.jails.validation.ValidationUtil;
import org.jails.validation.client.jsr303.Jsr303ClientConstraintInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Map;
public abstract class AbstractClientConstraintInfo<T,V>
implements ClientConstraintIn... | true |
d380246cb12277f477915872cd3a1ee8124fe374 | Java | jolignier/sudoku | /src/Sudoku.java | UTF-8 | 1,217 | 2.921875 | 3 | [] | no_license | import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
/**
* Date 18/04/2020 <br>
* Main application of the Sudoku who launch the main window
* Designed with an MVC pattern
*/
public c... | true |
117b81d9892bc50120a413911810759d05d3b8fa | Java | ampdolinski/intelliJ_kolekcje | /src/main/java/write/zad4/Main.java | UTF-8 | 1,642 | 3.6875 | 4 | [] | no_license | package write.zad4;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Podaj adres do sprawdzen... | true |