language
stringclasses
15 values
src_encoding
stringclasses
34 values
length_bytes
int64
6
7.85M
score
float64
1.5
5.69
int_score
int64
2
5
detected_licenses
listlengths
0
160
license_type
stringclasses
2 values
text
stringlengths
9
7.85M
Java
UTF-8
3,122
2.34375
2
[]
no_license
package com.hzp.client; import com.hzp.RegisterCenter.RegisterCenter; import com.hzp.server.RpcRequest; import com.hzp.server.RpcResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.stereotype.Component; i...
Java
UTF-8
1,430
2.21875
2
[]
no_license
package com.example.springbootshiro.service.impl; import com.example.springbootshiro.entity.Role; import com.example.springbootshiro.entity.UserRoleRef; import com.example.springbootshiro.mapper.RoleMapper; import com.example.springbootshiro.mapper.UserRoleRefMapper; import com.example.springbootshiro.service.RoleServ...
Java
UTF-8
2,983
2.109375
2
[]
no_license
package com.example.akash.therightstep; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.V...
PHP
UTF-8
7,080
3.03125
3
[ "MIT" ]
permissive
<?php class Redisengine { /** * Redis是一个开源的使用ANSI C语言编写 * 支持网络、可基于内存 * 亦可持久化的日志型、Key-Value数据库,并提供多种语言的API。 * */ //1-简单字符串缓存(Simple string cache) public function sscache(){ $redis = new Redis(); $redis->connect('127.0.0.1', 6379); $strCacheK...
Java
UTF-8
5,390
2.578125
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 GUI; import javafx.application.Platform; import javafx.beans.value.ChangeListener; import javafx.beans.value.Observab...
Java
UTF-8
6,469
1.90625
2
[]
no_license
package com.atguigu.shoppingmall.community.adapter; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Color; import android.view.Gravity; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageButton; import android.w...
Java
UTF-8
435
1.953125
2
[]
no_license
package cn.lmx.flow.dao.task; import org.springframework.stereotype.Repository; import cn.lmx.flow.dao.flow.BaseDao; import cn.lmx.flow.entity.task.TaskProcessHistory; @Repository("TaskProcessHistoryDao") public class TaskProcessHistoryDao extends BaseDao { /** * 取得所有的执行任务 * @return * @throws Exception */ p...
C++
UTF-8
1,922
3.578125
4
[]
no_license
#include <string> #include <map> #include <vector> #include <iostream> using namespace std; void NewBus (map<string, vector<string>>& buses, map<string, vector<string>>& stops, string bus, int stopCount) { for (int i = 0; i < stopCount; ++i) { string stop; cin >> stop; buses[bus].push_back(stop); stops[stop]....
Python
UTF-8
585
3.40625
3
[]
no_license
# Wczytanie bibliotek. from sklearn.linear_model import LogisticRegression from sklearn import datasets from sklearn.preprocessing import StandardScaler # Wczytanie danych zawierających tylko dwie klasy. iris = datasets.load_iris() features = iris.data[:100,:] target = iris.target[:100] # Standaryzowanie cech. scaler...
Markdown
UTF-8
743
2.859375
3
[]
no_license
# Udacity Adventure Game Text-based space adventure game # Table of Contents * Intruduction * Installations * Library Files * Result # Intruduction:- Text-based adventure games (also known as IF or Interactive Fiction) is a classic genre where all the interaction takes place through on-screen words, an...
Python
UTF-8
3,154
2.515625
3
[ "MIT" ]
permissive
""" Authorization/authentication components for Falcon apps. """ import logging import jwt import falcon from . import get_uaa_key, UserOrgAccessChecker, NoOrgAccessError, PermissionServiceError class JwtMiddleware: """ JWT middleware for Falcon. """ # TODO should be more complex, see https://too...
Java
UTF-8
1,059
2.171875
2
[]
no_license
package com.cvte.vo; import com.cvte.po.ApiResponseParameter; import java.io.Serializable; /** * @author pinnuli * @date 2019/6/25 */ public class ApiResponseParameterVo implements Serializable { private static final long serialVersionUID = -8997958286156196856L; private String name; private String...
Ruby
UTF-8
610
3.859375
4
[]
no_license
class Anagram attr_reader :word def initialize(word) @word = word end def match(candidates) candidates.select { |candidate| anagram?(candidate) } end private def anagram?(candidate) has_same_characters?(candidate) && is_different_word?(candidate) end def has_same_characters?(candidat...
C#
UTF-8
2,163
2.6875
3
[]
no_license
using Microsoft.EntityFrameworkCore; namespace WebAppProject.Models { public class AplicationContext : DbContext { public DbSet<User> Users { get; set; } public DbSet<Position> Positions { get; set; } public AplicationContext(DbContextOptions<AplicationContext> options) : base(options)...
C++
UTF-8
1,050
2.546875
3
[]
no_license
#pragma once #include "CObj.h" class CGameWorld; class CCamera2D : public CObj { public: CCamera2D(CGameWorld& _rGameWorld, CObj* _pOwner = nullptr, float _fX = 0.f, float _fY = 0.f); ~CCamera2D(); public: virtual void Ready(void) {}; virtual int Update(float _fDeltaTime); virtual void LateUpdate(void) {}; vi...
C#
UTF-8
295
2.75
3
[ "MIT" ]
permissive
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class Action { public int iVal; public Action(int i) { iVal = i; } public static implicit operator Action(Direction d) { return new Action((int)d); } }
Java
UTF-8
842
2.53125
3
[]
no_license
package Presentation.View; import javax.swing.*; import java.awt.*; /** * Created by LG on 2018-03-31. */ public class MyModelDefault extends JTabbedPane { MyModelPanel myModelPanel=new MyModelPanel(); TemplatePanel templatePanel=new TemplatePanel(); ResultPanel resultPanel=new ResultPanel(); publi...
C++
UTF-8
4,117
2.96875
3
[]
no_license
#include <iostream> #include <cstring> #include <queue> #include <set> #include <sstream> #include <algorithm> #include <map> #include <vector> #define mp make_pair #define pb push_back #define sqr(x) ((x)*(x)) #define foreach(it,c) for(auto it=(c).begin(); it != (c).end(); ++it) using namespace std; typedef vector<...
SQL
UTF-8
4,589
4.125
4
[]
no_license
----Contar las HIstorias CLinicas Select Edad, [Masculino],[Femenino] from (Select Edad, Sexo , COUNT(DISTINCT Historia) Historia from (Select Case when SUBSTRING(Edad,1,CHARINDEX(' ', Edad)) Between 0 and 2 then ' 0- 2' when SUBSTRING(Edad,1,CHARINDEX(' ', Edad)) Between 3 and 4 then ' 3- 4' when SUBSTRING(Eda...
C++
UTF-8
1,009
3.1875
3
[]
no_license
// cohort global declarations #ifndef COHORT_H #define COHORT_H #include "IEnum.h" // class Age, providing type safety for actual age values using // incremental enumerated type. age values returned from objects of // this class are equivalent to actual fish ages in years. enum AgeEnum { AGE1=1, MIN_AGE=AGE1, AGE2...
Java
UTF-8
4,122
3.40625
3
[]
no_license
import java.io.*; import java.util.*; public class Main { public static void spiralDisplay(int[][] arr) { int n = arr.length, m = arr[0].length; int rmin = 0, cmin = 0, rmax = n - 1, cmax = m - 1; int count = n * m; while (count > 0) { for (int c = cmin; c <= cmax &&...
JavaScript
UTF-8
758
2.921875
3
[]
no_license
import React, { useState, useEffect } from 'react' function Clock() { const [NowDay, setNowDay] = useState('') const [NowDate, setNowDate] = useState('') const [NowTime, setNowTime] = useState('') useEffect(() => { setInterval(() => { let today = new Date(); let dateStr...
C#
UTF-8
1,255
3.21875
3
[]
no_license
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ZDFixService.Utility { public class StopwatchHelper { public static StopwatchHelper Instance { get; } public Stopwatch Stopwatch { get; set; }...
C++
UTF-8
3,657
2.734375
3
[ "MIT" ]
permissive
// // Created by ARJ on 11/19/15. // #ifndef USIG_UFRP3_H #define USIG_UFRP3_H #include <memory> #include "usig.h" namespace ufrp { using std::shared_ptr; using namespace usig; template <typename VAL_T> struct Expr { public: typedef VAL_T value_type; virtual ~Expr() {} virtual value_type operator()() const = ...
C#
UTF-8
3,210
2.59375
3
[ "Apache-2.0" ]
permissive
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using LightningBug.Polly.Providers.Attributes; namespace Microsoft.Extensions.DependencyInjection { internal static class TypeExtensions { public static IEnumerable<Type> GetTypeHeirarchy(this Type type) ...
Markdown
UTF-8
367
2.859375
3
[]
no_license
# iOS Momentum Scrolling If you are creating a site that contains scrolling overflow elements, iOS doesn't nativly add momentum scrolling to those elements. Simplying adding `-webkit-overflow-scrolling: touch;` to the element will restore that functionality. A helpful CSS-Tricks post: http://css-tricks.com/snippets/c...
C#
UTF-8
3,814
3.0625
3
[]
no_license
using System; using Lecture9; using NUnit.Framework; namespace Tests.AccountsTests { [TestFixture] public class AccountsAddFundsTests { [Test] public void AddCheepFounds() { SavingAccount testAccount = new SavingAccount(1, "Test1", 100.1, false); testAccoun...
PHP
UTF-8
2,759
3.0625
3
[]
no_license
<?php require_once("players.php");//подключение рас define('COUNT_PLAYERS', 10); //количество игроков в команде class Team{ public $name_team; // public $unit = ''; public $races = array('Human_Warrior', 'Human_Archer', 'Human_Rider', ...
C++
UTF-8
3,094
2.8125
3
[]
no_license
// // Created by fengguang on 10/14/21. // #ifndef TEST_PAIRING_HEAP_H #define TEST_PAIRING_HEAP_H #include <cassert> #include <iostream> #include <string> #include <vector> #include "Eecs281PQ.h" #include "BinaryPQ.h" #include "UnorderedPQ.h" #include "PairingPQ.h" #include "SortedPQ.h" #include <time.h> #include...
C
UTF-8
572
2.734375
3
[]
no_license
#ifndef LL_H #define LL_H struct node { char *word; struct node *next; }; struct linkedList { int count; int min_length; struct node *head; struct node *tail; }; #include "stdbool.h" typedef struct node node; typedef struct linkedList linkedList; linkedList *linked_init(); void linked_push(linkedList ...
Java
UTF-8
1,461
2.5
2
[ "MIT" ]
permissive
package it.pwned.telegram.bot.api.type; import com.fasterxml.jackson.annotation.JsonProperty; /** * This class represents a venue. * */ public class Venue { private final static String JSON_FIELD_LOCATION = "location"; private final static String JSON_FIELD_TITLE = "title"; private final static String JSON_FI...
Python
UTF-8
208
3.1875
3
[]
no_license
#compute the value of n+nn+nnn when input is n+nn+nnn n=input("enter the value of n :") nn=str(n)+str(n) nnn=nn+str(n) r=n+int(nn)+int(nnn) print "result is :%d"%r r=raw_input("press any key tp exit")
Java
UTF-8
1,140
2.34375
2
[]
no_license
package com.example.minutesofmeeting.api.modelmessage; import com.example.minutesofmeeting.api.model.Content; import com.example.minutesofmeeting.api.model.SubContent; public class SubContentResponse extends BaseResponse { private Integer subContentId; private String subContentTitle; private Content content; ...
Markdown
UTF-8
8,462
2.59375
3
[]
no_license
# 金融企业安全体系建设 > 内容来自:https://www.freebuf.com/articles/es/258300.html 金融企业数字化转型过程中,会遇到诸如:数据中心迁移、数据丢失、遭受网络攻击等问题。企业会希望构建完整的安全体系,并要求有流程、实施规划和时间计划、并阐明如何落地、框架导向、参照标准、对标情况等。 ## 安全体系建设框架图 <img src="images/金融企业安全建设/安全体系框架图.png"> 上图是一家安全咨询专家提出的“安全体系规划 –安全建设体系咨询落地模块”图,目的是引导客户理解体系规划过程。但还没有与金融行业结合,没有落地。 分为几点: - 安全...
PHP
UTF-8
682
3.3125
3
[]
no_license
<?php class file_input_stream { private $file = null; public function __construct( $file ){ $this->file = $file; } public function get_file(){ return $this->file; } public function __destruct(){ } function read_int() { $data = fread($this->file, 4); ...
Java
UTF-8
1,121
1.734375
2
[]
no_license
package com.example.zhengai.service.impl; import java.util.List; import com.example.zhengai.dao.YzControllerDao; import com.example.zhengai.model.YzController; import com.example.zhengai.service.YzControllerService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.S...
Swift
UTF-8
1,369
3.03125
3
[ "MIT" ]
permissive
// // BloomFilterTests.swift // Buckets // // Created by Mauricio Santos on 4/11/15. // Copyright (c) 2015 Mauricio Santos. All rights reserved. // import Foundation import XCTest import Buckets class BloomFilterTests: XCTestCase { struct TestData { static let FPP: Double = 0.09 static let Li...
Python
UTF-8
172
3.5625
4
[]
no_license
#leap_year program yr=int(input("enter the year")) print(yr) if(yr%4==0 and yr%100!=0 or yr%400==5): print("Leap Year") else: print("not leap year")
C++
GB18030
3,679
3.40625
3
[]
no_license
/*************************************************************************************************************************************************** Problem Description Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes from Irrever...
Java
UTF-8
261
1.640625
2
[ "Apache-2.0" ]
permissive
package com.linkb.jstx.bean; import java.io.Serializable; public class Location implements Serializable { private transient static final long serialVersionUID = 1L; public double latitude; public double longitude; public String location; }
Python
UTF-8
3,807
3.515625
4
[]
no_license
#! /usr/bin/env python """ USAGE: summarizeData.py <mean_output_file> <stdDev_output_file> <all_input_files> EXAMPLE: summarizeData.py mean.dat dev.dat data_*.dat This script takes a list of files <all_input_files> that must all have the same shape and headers starting with '#' (or no headers) and compute the aver...
Python
UTF-8
637
2.953125
3
[]
no_license
# coding=UTF-8 import banques_db class BanquesMain: def __init__(self): self.database = banques_db.DataBase() def start(self): while True: print('1.修改数据') print('2.查询数据') print('3.关闭连接') flag = int(input('请选择操作 -->')) if flag == 1: ...
Rust
UTF-8
1,425
3.703125
4
[]
no_license
// // EPITECH PROJECT, 2018 // rust-talk // File description: // 2-types // // Here are some Rust types in action. fn main() { // This is a '&str' let static_str = "ℵ ∑ ½ ౽ ⅋ ! 🚀 🚀"; println!("&str:\t\t\t{:?}", static_str); // This is an allocated 'String' let owned_str = String::from("The 💻 s...
Java
UTF-8
2,741
2.390625
2
[]
no_license
package bootup.assignment.inventory.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.annotation.CacheConfig; import org.springframework.cache.annotation.Cacheable; import org.springframework.stereotype.Service; import org.springfra...
Java
UTF-8
281
1.5625
2
[]
no_license
package com.virtusa.view; public class AdminView { public void mainAdminView() { System.out.println("=======Admin View======"); } public void showLoginFailure() { // TODO Auto-generated method stub System.out.println("password or adminId incorrect"); } }
Markdown
UTF-8
1,816
2.78125
3
[]
no_license
## Why did you do this? Frustrated with manually creating a devstack deployment each day, I figured I'd invest a little time now to save a lot later. This is the fruit of my labor. ### Assumptions You have a DigitalOcean account with an [auth Token](https://cloud.digitalocean.com/settings/applications) handy. You hav...
PHP
UTF-8
5,010
2.796875
3
[ "MIT", "GPL-2.0-or-later", "GPL-1.0-or-later", "GPL-2.0-only" ]
permissive
<?php /** * Abstracts information about a file into a view parameter object. */ class Loco_mvc_FileParams extends Loco_mvc_ViewParams { /** * File reference from which to take live properties. * @var Loco_fs_File */ private $file; /** * Print property as a number of byte...
Markdown
UTF-8
27,506
2.546875
3
[]
no_license
### Useful shortcuts Use `Cmd-N` in gradle file to search for dependency first and then add. ### Kotlin with Gradle https://www.youtube.com/watch?v=KN-_q3ss4l0 ### Key classes/Interfaces: 1. Script Interace - represents the `build.gradle` file instance (https://docs.gradle.org/current/dsl/org.gradle.api.Script.ht...
Java
UTF-8
2,863
1.835938
2
[]
no_license
package org.wf.dp.dniprorada.engine.task; import java.util.ArrayList; import java.util.List; import org.activiti.engine.ActivitiException; import org.activiti.engine.delegate.DelegateExecution; import org.activiti.engine.delegate.JavaDelegate; import org.activiti.engine.form.StartFormData; import org.activiti.redis.m...
Java
UTF-8
909
3.21875
3
[]
no_license
import java.util.Random; public class Asteroid extends SpaceObject implements Destroy { private char classOfAsteroid; public char getClassOfAsteroid() { return classOfAsteroid; } public void setClassOfAsteroid(char classOfAsteroid) { this.classOfAsteroid = classOfAsteroid; } ...
Java
UTF-8
24,355
2.203125
2
[]
no_license
package com.yzh.smartsmoking.activity; /** * Created by appadmin on 2017/8/30. * 设置页面 */ //public class SettingActivity extends BaseActivity implements View.OnClickListener { // private HeaderRightImageView header_activity_setting; // private LinearLayout ll_setting_power, ll_daily_mouth; // private TextV...
Python
UTF-8
151
3.90625
4
[]
no_license
num=int(input("Enter the number ")) reverse=0 while num>0: remainder=num%10 reverse=(reverse*10)+remainder num=num//10 print(str(reverse))
PHP
UTF-8
2,422
2.890625
3
[]
no_license
<?php /** * Trans Class * Created by Warner Infinity * Author Jules Warner */ class WILang { function __construct() { $this->WIdb = WIdb::getInstance(); } public static function all($jsonEncode = true) { // determine lanuage $language = self::getLanguage(); //echo $language; ...
C#
UTF-8
2,261
2.53125
3
[]
no_license
using System.Collections; using System.Collections.Generic; using UnityEngine; /* Used to define the type of node */ public enum NodeType { movie = 0, budget = 1, genre = 2, productionCompany = 3, data = 4, homepage = 5, id = 6, keywords = 7, originalLanguage = 8, originalTitle...
C#
UTF-8
9,101
3.046875
3
[]
no_license
using System; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Numerics; namespace FFTTools { /// <summary> /// FFT((f,g)) = FFT(fxg') = FFT(f)*FFT(g)' = FFT(f)*BFT(g) /// (a*f+b*g,h) = a*(f,h)+b*(g,h) /// (f,g)=(g,f)' /// </summary> public class Scal...
PHP
UTF-8
331
2.8125
3
[]
no_license
<?php class Celsus_Data_Formatter_Json implements Celsus_Data_Formatter_Interface { /** * Returns the data formatted as Json. * * @param Celsus_Data_Interface $object * @return string */ public static function format(Celsus_Data_Interface $object) { return Zend_Json::encode($object->toArray...
Java
UTF-8
1,693
1.875
2
[]
no_license
/* * Copyright (c) 2022. Bernard Bou */ package org.sqlunet.browser; import android.view.View; import org.hamcrest.Matcher; import androidx.annotation.IdRes; import androidx.annotation.NonNull; import androidx.test.espresso.IdlingRegistry; import androidx.test.espresso.IdlingResource; import androidx.test.espress...
JavaScript
UTF-8
17,452
2.640625
3
[]
no_license
/* Coded with love by Igloo team. */ $(".toast").toast(); ////////// Server URL ////////// var server_url = "http://localhost:8080"; var search_url = server_url + "/api/invoice/get?"; ////////// Global VARs ////////// var currentPageGlobal = 1; // Current invoices page var selectedInvoiceId; // Selected invoice var sel...
C++
UTF-8
1,708
2.796875
3
[]
no_license
#include "OffsetGenerator.h" #include "TwoArray.h" #include <benchmark/benchmark.h> #include <algorithm> #include <cstdint> #include <iostream> #include <random> #include <vector> template <int32_t S, typename G> void TwoArray(benchmark::State& state) { using value_type = typename Codility::TwoArray<S>::value_typ...
Python
UTF-8
151
2.546875
3
[]
no_license
a=int(input()) b=int(input()) c=int(input()) x=str(a*b*c) L=[0]*10 print(x) for i in range (len(x)): L[ int(x[i]) ]+=1 #150 266 427 3102000200
C
UTF-8
5,221
2.90625
3
[]
no_license
#include "libtests.h" int test_count = 0, failcount = 0, check_type = 0; void set_check_type (int type) { assert ((type == SOFT_CHECK) || (type == HARD_CHECK)); check_type = type; } bool is_well_formatted (char * line) { regex_t regex; size_t s = 0; regmatch_t * r = NULL; if (regcomp (&regex,...
TypeScript
UTF-8
1,168
2.703125
3
[ "MIT" ]
permissive
/** * @fileOverview cookie-based storage, 依赖js-cookie, 支持JSON对象直接存储 * @author Max **/ import Cookies = require('cookies'); const INITIAL_DATA_NAMESPACE = 'initialData'; export default { ['$set'](key: string, obj: any) { let initialDataObj = Cookies.getJSON(INITIAL_DATA_NAMESPACE) || {}; ...
C++
GB18030
3,187
2.625
3
[]
no_license
#include "DataAnalysis.h" #include <QJsonArray> #include <QJsonObject> #include <QJsonValue> #include <QJsonDocument> QJsonObject DataAnalysis::objectFromMsginfo(MsgInfo & msg) { QJsonObject msgJson; msgJson.insert("address", msg.address); msgJson.insert("from", msg.from); msgJson.insert("msg", msg.msg...
C++
UTF-8
4,179
3.234375
3
[]
no_license
// // InputParser.cpp // Group 9 // // #include "InputParser.hpp" InputParser::InputParser() { } bool InputParser::isRule(string factOrRule) { char nextChar; std::string st; unsigned int i = 0; while(i < factOrRule.length()) { nextChar = factOrRule[i++]; if(nextChar == '(...
C++
UTF-8
2,357
2.5625
3
[ "MIT" ]
permissive
/******************************************************************** created: 2014/08/21 filename: ApkFileStream.h author: Crazii purpose: *********************************************************************/ #ifndef __Blade_ApkFileStream_h__ #define __Blade_ApkFileStream_h__ #include <BladePlatform.h> #if B...
Ruby
UTF-8
849
2.53125
3
[ "BSD-3-Clause" ]
permissive
OptionValue.class_eval do validates_numericality_of :price, :allow_nil => true validates_numericality_of :weight, :allow_nil => true validates_numericality_of :width, :allow_nil => true validates_numericality_of :height, :allow_nil => true validates_numericality_of :depth, :allow_nil => true after_...
Python
UTF-8
2,583
2.8125
3
[]
no_license
# Boosting parse output from matplotlib import pyplot as plt import numpy as np #diabetes title='\nBoosting Diabetes Dataset\n' print 'Plotting ' + title # min num 2 min2_validation = [.690875, .707635, .713222, .718808, .731844, .722533, .724395, .72067] # min2_training = [.862197, .862197, .862197, .862197, .862197...
Java
UTF-8
17,652
1.953125
2
[]
no_license
package com.cnfantasia.server.domainbase.revenueApply.entity; /* import java.io.Serializable;*/ import java.math.BigInteger; import java.lang.String; import java.lang.Integer; import java.lang.Double; import com.cnfantasia.server.domain.pub.BaseEntity; /** * 描述:(提款申请记录) 实体类 * * @version 1.00 * @author null * ...
Java
UTF-8
5,575
1.953125
2
[]
no_license
package com.prettyyes.user.api.netXutils; import com.alibaba.fastjson.JSON; import com.hornen.logger.Logger; import com.prettyyes.user.api.NetReqCallback; import com.prettyyes.user.app.account.ACache; import com.prettyyes.user.app.base.BaseApplication; import com.prettyyes.user.core.utils.AppUtil; import com.prettyyes...
Java
UTF-8
1,712
2.796875
3
[ "MIT" ]
permissive
package com.arinerron.forux.core; import java.util.Iterator; import java.util.HashMap; import org.json.JSONObject; public class Settings { private Game game = null; private JSONObject settings = null; protected Settings(Game game) { this.game = game; this.loadDefaults(); } ...
PHP
UTF-8
7,437
2.734375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Domain\Models; use App\Repositories\CompanyRepository; use App\Services\DomainCollection; final class Company extends DomainModel { /** @var int */ private $id; /** @var string */ private $name; /** @var string */ private $kana; /** @var PostalC...
Markdown
UTF-8
8,981
2.78125
3
[ "MIT" ]
permissive
--- id: 589 title: Open Source Education date: 2010-04-08T08:14:59+00:00 author: Miles Berry layout: post comments: true guid: http://milesberry.net/?p=589 permalink: /2010/04/open-source-education/ image: feature: 100315.jpg categories: - Curriculum - Open Source --- <p class="rteindent1" style="padding-left: 3...
Python
UTF-8
9,270
2.59375
3
[]
no_license
import numpy as np from aux import Generic def fit_h(xs, y, wdws_d, order, method, params, return_model=False): if method == 'built-in': # sklearn built-in method model = params['model'] wdw_lens = [wdws_d[x_name][1] - wdws_d[x_name][0] for x_name in order] x_xtd =...
JavaScript
UTF-8
1,164
2.703125
3
[]
no_license
module.exports = { getDagTotal: function(dag_begin, dag_eind, pauze) { dag_begin = this.trim(dag_begin); dag_eind = this.trim(dag_eind); pauze = this.trim(pauze); var dateBegin = new Date("01/01/2017 " + dag_begin); var dateEind = new Date("01/01/2017 " + dag_eind...
Python
UTF-8
2,956
2.59375
3
[]
no_license
from __future__ import absolute_import from __future__ import division from __future__ import print_function import itertools import os get_ipython().magic('matplotlib inline') import matplotlib.pyplot as plt import numpy as np import pandas as pd import tensorflow as tf from sklearn.preprocessing import LabelBina...
Java
ISO-8859-1
1,315
2.71875
3
[]
no_license
package cartes.effets; import partie.autres.personnage.Personnage; import partie.partie.Partie; public class Degats_heros_adverse extends Degats { /** * Classe reprsentant l'effet dgts_hros_adverse qui inflige des dgats au hros dont ce n'est pas * le tour * Hrite de dgats. * * @author GRESSET Nathan ...
Java
UTF-8
2,716
2.265625
2
[]
no_license
package com.example.subhadiproy.imageslider; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ImageView; import android.widget.Toast; import com.smarteist.autoimageslider.DefaultSlide...
Markdown
UTF-8
701
2.515625
3
[ "BSD-3-Clause" ]
permissive
Configuration script ===================== This script enable the creation of a zip archive containing the pages of the volume/chapter being feed to it. The script can either handle a single archive in the current active directory, or several of them by considering any directory in the active directory as containing a...
C++
UTF-8
1,255
2.859375
3
[]
no_license
#include "Inventory.h" #include "GameObject.h" #include <iostream> #include "KeyActivator.h" #include "KeyTarget.h" #include "FixedKeyTarget.h" Inventory::Inventory() { } Inventory::~Inventory() { } bool Inventory::hasKey() { return key != nullptr; } GameObject * Inventory::getKey() { return key; } void Invento...
Java
UTF-8
1,844
2.875
3
[]
no_license
/* * This class is part of the book "iText in Action - 2nd Edition" * written by Bruno Lowagie (ISBN: 9781935182610) * For more info, go to: http://itextpdf.com/examples/ * This example only works with the AGPL version of iText. */ package part1.chapter05; import java.io.FileOutputStream; import java.io.IOExcept...
Python
UTF-8
482
3.984375
4
[]
no_license
#全局作用域 #全局变量:函数外部定义的变量,叫做全局变量 #局部变量:在函数内部定义的变量,仅限函数内部可以使用,函数外部无法使用 def add(a,b): #局部作用域 c=a+b return c #不能直接使用c #TODO:局部变量不能在全局作用域获取 c=add(4,5) print(c) #TODO:局部作用域可以使用全局变量 C=6 def minus(a,b): d=a+b print(d-c) return d-c minus(3,7)
Swift
UTF-8
2,351
2.734375
3
[]
no_license
// // SampleViewController.swift // hackGSU // // Created by Viraj Shah on 10/3/16. // Copyright © 2016 hackGSU. All rights reserved. // import UIKit class SampleViewController: UITableViewController{ override func viewDidLoad() { super.viewDidLoad() projects.append(["Project 1: ...
JavaScript
UTF-8
1,302
2.546875
3
[]
no_license
function render() { // Additional params including the callback, the rest of the params will // come from the page-level configuration. var additionalParams = { 'callback': signinCallback }; // Attach a click listener to a button to trigger the flow. var signinButton = document.getElem...
C++
UTF-8
1,412
3.515625
4
[]
no_license
// // complexConstructorClass.cpp // c++new // // Created by 彭涧 on 2021/4/24. // #include "complexConstructorClass.hpp" // 结论:调用构造函数和析构函数时按相反的顺序执行 // 函数参数使用对象的引用不产生副本,推荐使用引用 // 复制构造函数 PointC::PointC(const PointC& b) { x = b.x; y = b.y; cout << "PointC Copy Initializing: " << x << " , " << y << endl; }...
SQL
UTF-8
1,367
2.6875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50612 Source Host : localhost:3306 Source Database : shop_1808 Target Server Type : MYSQL Target Server Version : 50612 File Encoding : 65001 Date: 2018-09-29 16:37:23 */ SET FOREIGN_KEY_CHECKS=0...
Markdown
UTF-8
2,896
3.21875
3
[]
no_license
# hawkfly-domain-dockerfiles Docker images and docker-compose files for some basic scenarios in which the hawkular is used for monitoring the WildFly servers managed as a domain. You may want to use the simple CLI tool called [hawkinit](https://github.com/Jiri-Kremser/hawkinit) to spawn the containers. [![Build Statu...
SQL
UTF-8
1,402
3.671875
4
[]
no_license
/* This is the old artifact */ /* Create adequate documentation starting here */ /* Make new database for Arkham Horror: The Board Game Third Edition, make timeouts */ USE messaging; INSERT INTO person(person_id,first_name,last_name) VALUES (20, "Clara", "Kellermann-Bryant"); /* Make new tabl...
Java
UTF-8
307
1.570313
2
[]
no_license
/* * The copyright of this file belongs to Koninklijke Philips N.V., 2019. */ package com.philips.casestudy2.springalertingsystem.service; import com.philips.casestudy2.springalertingsystem.domain.PatientVitals; public interface VitalValidationServiceForErrors { String validateVitalsData(PatientVitals[] sample);...
Markdown
UTF-8
889
2.78125
3
[]
no_license
# 100daysofpython ## 100 days of code: Focusing on Python The goal is to do 100 days of Python code to level up from novice +. Starting by using Automate the Boring Stuff as a starting guide and then integrating projects. ## Things I'd like to learn: 1. Get better with loops 2. Work with more dicts/lists do more adva...
Python
UTF-8
1,613
2.875
3
[]
no_license
import json map_list = dict({1: "缺少招生群助手", 2: "缺少话术助手", 4: "机器人心跳不正常", 8: "近似满员", 32: "群二维码过期", 64: "满员", 128: "二维码分享者中不在群中"}) map_json = json.dump(map_list, fp=(',', ":")) print(map_json) def state_explode_list(a): a_explore = [] for n, _one in enumerate(str(bin(a)).replace('0b', '')): if _one == '1...
Markdown
UTF-8
4,979
2.5625
3
[]
no_license
# Article L322-6 Lorsque l'objet de l'association foncière urbaine autorisée ou constituée d'office porte sur des travaux spécifiés au 1° et au 6° de l'article L. 322-2, l'association : a) Détermine les bâtiments ou les ouvrages dont le remembrement nécessite soit la destruction soit le changement de l'usage éventue...
Python
UTF-8
261
3.375
3
[]
no_license
# Program that calculate the sales prediction # 12 June 2017 # CTI-110 M2T1 - Sales Prediction # Radhames Flete Perez sales = int(input("Enter the projected amount of total sales.\n")) Aprofit = sales*0.23 print("The Profict made from :",sales,"are:",Aprofit)
Java
UHC
1,308
2.6875
3
[]
no_license
package OneToOneWIthBidirectional; import java.util.Date; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.cfg.Configuration; public class TestOneToOneBidirectional { private static SessionFactory sessionFactory; public static vo...
Ruby
UTF-8
1,541
4.25
4
[ "MIT" ]
permissive
# Smallest Integer # I worked on this challenge [by myself]. # smallest_integer is a method that takes an array of integers as its input # and returns the smallest integer in the array # # +list_of_nums+ is an array of integers # smallest_integer(list_of_nums) should return the smallest integer in +list_of_nums+ # # ...
Java
UTF-8
3,959
2.15625
2
[]
no_license
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.proyectoCFIP.controller; import com.proyectoCFIP.entities.TipoMaquinaConfecciones; import com.proyectoCFIP.sessions.TipoMa...
PHP
UTF-8
778
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; use DB; class BlankCart { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle(Request $request, Closure...
Java
UTF-8
1,497
3.234375
3
[]
no_license
// Rory Sweeney - 18342673 package CT417_Assignment1; import java.util.ArrayList; import java.util.List; public class Module { // Class Attributes private String name, moduleID; public List<Student> moduleStudents = new ArrayList<Student>(); public List<Course> moduleCourses = new ArrayList<Course>(); pub...
Python
UTF-8
11,392
3.1875
3
[]
no_license
import characters import objects import fights import random import copy """from a dictionnary, let's initialize the instances foes, attacks and objects using from 0 to all arguments""" def create_foe(foe_name,level=None): caracterisation_foe=copy.deepcopy(characters.foes[foe_name]) if level!=None: if level<cara...
Java
UTF-8
16,269
1.914063
2
[]
no_license
package com.courseracapstone.android.accountsetup; import java.net.SocketTimeoutException; import org.apache.http.conn.ConnectTimeoutException; import android.accounts.Account; import android.accounts.AccountAuthenticatorActivity; import android.accounts.AccountManager; import android.content.Intent; import android....
C++
UTF-8
2,511
3.75
4
[]
no_license
/** 一、构造函数和析构函数的构造规则 1、派生类可以不定义构造函数的情况 当具有下述情况之一时,派生类可以不定义构造函数。 基类没有定义任何 构造函数。 基类具有缺省参数的构造函数。 基类具有无参构造函数。 2、派生类必须定义构造函数的情况 当 基类或成员对象所属类只含有带参数的构造函数时,即使派生类本身没有数据成员要初始化,它也必须定义构造 函数,并以构造函数初始化列表的方式向基类和成员对象的构造函数传递参数,以实现基类子对象和成员对象的 初始化。 3、派生类的构造函数只负责直接基类的初始化 C++语言标准有一条规则:如果派生类的基类同时也是另外一个类的派生类,则每个派生类只负责它的直接基类的 构造函数调用。 这条规则表明...