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
8,869
2.234375
2
[]
no_license
package VPI.InsightClasses; import VPI.MyCredentials; import VPI.PDClasses.*; import VPI.PDClasses.Contacts.util.ContactDetail; import VPI.PDClasses.Contacts.PDContactReceived; import VPI.PDClasses.Contacts.PDContactSend; import VPI.PDClasses.Organisations.PDOrganisationReceived; import VPI.PDClasses.Organisations.PDO...
Shell
UTF-8
1,059
3.34375
3
[]
no_license
#!/bin/bash # Get your app version number VERSION="0.0.1" # make autorun script exec chmod +x ./appfolder/setup.sh # Usage: ./makeself.sh [params] archive_dir file_name label [startup_script] [args] # --gzip : Compress using gzip (default if detected) # --bzip2 : Compress using bzip2 instead o...
JavaScript
UTF-8
568
3.59375
4
[]
no_license
// Promise 的目标:增强在使用JavaScript语言进行异步编程的编程体验 // 1.执行流程问题 // setTimeout(() => console.log('A'), 0) // setTimeout(() => console.log('B'), 1000) // Promise.resolve().then(() => { // setTimeout(() => console.log('C'), 0) // setTimeout(() => console.log('D'), 1000) // console.log('E') // Promise.resolve().then(() => console....
Java
UTF-8
280
1.78125
2
[]
no_license
package com.xiecj.cloud.auth.service; import com.xiecj.cloud.auth.bean.ClientInfo; import java.util.List; public interface ClientService { public ClientInfo apply(String clientId, String secret); public List<String> getAllowedClient(String serviceId, String secret); }
Python
UTF-8
5,757
3.546875
4
[]
no_license
""" The player gets to search for a specific keyword in a chosen language (Swedish/English) and guess whether the the 1000 most recent tweets associated with that keyword has a positive or negative sentiment. If the player guess right, the active Pokemon gets rewarded an attack bonus. If the guess is wrong, the pokemon...
Java
UTF-8
805
2.140625
2
[]
no_license
package com.example.demo.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.example.demo.model.User; import com.example.demo.repository.UMapper; @Service public class UService { @Autowired UMapper mapper;...
PHP
UTF-8
3,036
2.765625
3
[ "MIT" ]
permissive
<?php namespace Propel\Generator\Builder\Om\Component\Object; use Propel\Generator\Builder\Om\Component\BuildComponent; use Propel\Generator\Builder\Om\Component\NamingTrait; use Propel\Generator\Model\Field; /** * Adds all setter methods for all entity fields. Excludes fields marked as implementationDetail. * * ...
Java
UTF-8
1,252
2.453125
2
[ "MIT" ]
permissive
package web.controller.member; import entity.Member; import service.AddressService; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOEx...
Python
UTF-8
1,889
2.96875
3
[]
no_license
import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression import statsmodels.api as sm from sklearn.metrics import mean_squared_error import mlxtend from mlxtend.feature_selection import SequentialFeatureSelector as sfs data = pd.rea...
Markdown
UTF-8
2,909
3.140625
3
[]
no_license
# Market-Segmentation---Clustering # Introduction CRISA wanted to segment the market based on two key sets of variables more directly related to the purchase process and to brand loyalty: 1. Purchase behavior (volume, frequency, susceptibility to discounts, and brand loyalty) 2. Basis of purchase (price, selling propos...
JavaScript
UTF-8
1,985
2.578125
3
[]
no_license
function camelize(str) { const tokens = str.split('-'); for (let i = 1; i < tokens.length; i++) { tokens[i] = tokens[i][0].toUpperCase() + tokens[i].substr(1); } return tokens.join(''); } function changeActiveBtn(elemId) { $(`#${elemId}`).addClass('active').siblings().removeClass('active'); } function o...
Markdown
UTF-8
799
2.96875
3
[]
no_license
# Disneyland with No Children ## by Nick Bostrom, Scott Alexander and Daniel Speyer But even after we have thrown away science, art, love, and philosophy, there’s still one thing left to lose. One final sacrifice runaway competitive pressure might demand of us: being anyone at all. To quote Nick Bostrom: > We could...
C++
UTF-8
1,063
3.96875
4
[]
no_license
//union and intersection of the array #include<iostream> using namespace std ; void unionarr(int arr1[],int n, int arr2[],int m) {int i=0,j=0; cout<<"\nunion of arrays are "; while(i!=n&&j!=m) { if(arr1[i]<arr2[j]) { cout<<arr1[i]<<" "; i++; } else if(arr1[i]>arr2[j]) { ...
Java
UTF-8
3,236
2.140625
2
[ "Apache-2.0" ]
permissive
package tech.huqi.quicknote.ui.activity; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.SearchView; import android.support.v7.widget.RecyclerView; import android.view.Menu; import android.view.MenuItem; impor...
C++
WINDOWS-1251
1,702
3.078125
3
[]
no_license
#pragma once #include <algorithm> typedef unsigned int TELEM; const size_t blockSize = sizeof(TELEM); const size_t bitsNum = blockSize * 8; class BitField { private: const size_t LenLimit{ 1048576 };// TELEM *Mem; // size_t MemLen;// - - . size_t numOfBlocks;// BFMult TELEM BYTE =...
Markdown
UTF-8
1,117
3
3
[]
no_license
# 创建Service 网络请求返回接口数据的同时,往往可能出现很多异常情况,比如断网、服务器宕、请求参数错误、请求超时等问题。而每一个请求都要面临上述的问题,所以我们需要创建一个服务去统一处理。 ```typescript import { HttpService } from '@redux-model/web'; export const $api = new HttpService({ baseUrl: 'http://example.com', headers: () => { return {}; }, onRespondError: (response, transf...
Python
UTF-8
2,936
3.453125
3
[]
no_license
import pickle,shelve # print('Открываю и закрываю файл') # text_file = open("read_it.txt", "r") # text_file.close() # print('\nЧитаю файл посимвольно') # text_file = open('read_it.txt','r') # print(text_file.read(1)) # print(text_file.read(5)) # text_file.close() # print('\nЧитаю файл целиком') # text_file = open("rea...
PHP
UTF-8
10,512
2.53125
3
[]
no_license
<?php require_once "./get_clmn.php"; $objPHPExcel->setActiveSheetIndex(0); $sheet = $objPHPExcel->getActiveSheet(); $date=$start_date;// = "20{$_GET['startdate']}"; //$end_date = "20{$_GET['enddate']}"; $sdate = explode("-",$start_date); $edate = explode("-",$end_date); $start_day = date("w"...
C++
UTF-8
2,877
3.9375
4
[ "MIT" ]
permissive
/* Count Number of Teams There are n soldiers standing in a line. Each soldier is assigned a unique rating value. You have to form a team of 3 soldiers amongst them under the following rules: Choose 3 soldiers with index (i, j, k) with rating (rating[i], rating[j], rating[k]). A team is valid if: (rating[i] < ratin...
Java
UTF-8
1,239
2.140625
2
[]
no_license
package com.licc.btc.chbtcapi.res.account; /** * * @author lichangchao * @version 1.0.0 * @date 2017/5/19 10:10 * @see */ public class AccountBase { private Boolean auth_google_enabled; // 是否开通谷歌验证 private Boolean auth_mobile_enabled; // 是否开通手机验证 private Boolean trade_password_enabled;// 是否开通交易密码...
PHP
UTF-8
1,140
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Symplify\EasyCodingStandard\Bootstrap; use Symplify\EasyCodingStandard\Set\Set; final class ConfigResolver { /** * @var SetOptionResolver */ private $setOptionResolver; /** * @var SetsResolver */ private $setsResolver; public function...
Java
UTF-8
235
2.34375
2
[]
no_license
package com.ncku.iir.computex.ALS; /* 當ALS server 回傳response 用 implements 這個interface的類別 call onALSResponse的method做更新的動作 */ public interface IALSCallback { public void onALSResponse(String s); }
C
UTF-8
8,952
3.109375
3
[]
no_license
#include <stdio.h> #include <stdlib.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <memory.h> #include <errno.h> #include "common.h" /* *** Server process is running at this port number. Client has to send data to this port number *** */ #define SERVER_PORT 2000 test_struct_t test_st...
Java
UTF-8
556
2.0625
2
[]
no_license
package com.starbucks.locator.model.dataaccess; import java.sql.Connection; import java.util.List; import java.util.Set; import com.starbucks.locator.model.dto.Location; import com.starbucks.locator.model.runtime.StarbucksLocatorException; public interface LocationsManager { Location getLocation(String address, C...
Java
UTF-8
4,485
4.03125
4
[]
no_license
package com.myleetcode.breadth_first_search.nested_list_weight_sum; import com.myleetcode.utils.nested_integer.NestedInteger; import java.util.ArrayDeque; import java.util.Deque; import java.util.List; /** * // This is the interface that allows for creating nested lists. * // You should not implement it, or specul...
Java
UTF-8
794
3.421875
3
[ "MIT" ]
permissive
package com.ithinksky.java.n01base.reference; import java.lang.ref.WeakReference; /** * 弱引用 WeakReference * 弱引用是一种比软引用生命周期更短的引用。 * 他的生命周期很短,不论当前内存是否充足, * 都只能存活到下一次垃圾收集之前。 * vm:-Xmx2m -Xms2m * * 生命周期很短的对象,例如ThreadLocal中的Key * * @author tengpeng.gao * @since 2019-02-26 */ public class Reference003WeakReferen...
JavaScript
UTF-8
2,023
2.6875
3
[]
no_license
import { compareStrings, groupBy } from './utils.js' import { entryType } from './EntryTypes.js' export { transformJsonToD3, transformJsonToD3Zipped } function transformJsonToD3(data, label) { const dataset = groupBy(data, d => d.label) .sort((a, b) => compareStrings(a[0].label, b[0].label)) .map(...
Java
UTF-8
3,433
1.929688
2
[]
no_license
package com.yescnc.core.role.controller; import java.util.HashMap; import java.util.List; import java.util.Map; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annot...
C#
UTF-8
4,547
3.21875
3
[ "Apache-2.0" ]
permissive
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace RTSEngine.Algorithms { public abstract class ACBudgetedTask { // This Should Not Be Modified By The Task public int CurrentBin { get; set; } // This Is How Tasks...
C#
UTF-8
556
2.859375
3
[]
no_license
using UserManagement; namespace GameLogic { public class Turn { private ActionType _action; private Chip _chipsUsedInRound; private Player _player; public enum ActionType { Fold, Check, AllIn, Call, Raise ...
JavaScript
UTF-8
11,893
2.734375
3
[]
no_license
// start functions function validate_title(){ var guide_title = document.guide_update.title.value; if (guide_title == "X") { inlineMsg('title', 'Please select your title.', 2); /*$('#member_update').submit(function (evt) { evt.preventDefault(); });*/ retur...
JavaScript
UTF-8
1,331
2.765625
3
[]
no_license
document.addEventListener("DOMContentLoaded", ()=>{ window.onscroll = function(){scrollEvent()}; }) function scrollEvent() { let height = window.pageYOffset; let el1 = document.querySelector("#row1"); let el2 = document.querySelector("#row2"); let el3 = document.querySelector("#row3"); let el4 = document....
PHP
UTF-8
280
2.90625
3
[]
no_license
<?php $c = curl_init('http://numbersapi.com/09/27'); // cURL이 응답을 가져와 바로 출력하지 않고 // 문자열로 가져오도록 설정한다. curl_setopt($c, CURLOPT_RETURNTRANSFER, true); // 요청 실행 $fact = curl_exec($c); ?> Did you know that <?= $fact ?>
Python
UTF-8
4,371
2.53125
3
[]
no_license
import unittest from models.test_base import BaseTestCase import json class TestUserGetQuestion(BaseTestCase): """test user can post a question""" def test_get_a_question(self): request = {"email": "alovegakevin@gmail.com", "username": "alwa", "password": "LUG4Z1V4"} res = self.client.post("/...
Python
UTF-8
182
2.96875
3
[]
no_license
def returnKLargest(input, k): input.sort(reverse=True) return input[:3] if __name__ == '__main__': input = [1, 23, 12, 9, 30, 2, 50] print returnKLargest(input, 3)
JavaScript
UTF-8
839
3.328125
3
[]
no_license
const API_KEY = "1c5528ad01d516f681ab4a37495d45d3"; const weather = document.querySelector(".js-weather"); function getWeather(lat, lng) { fetch( `https://api.openweathermap.org/data/2.5/weather?lat=${lat}&lon=${lng}&appid=${API_KEY}&units=metric` ) .then(function (response) { return response.json()...
Markdown
UTF-8
1,531
2.796875
3
[ "MIT" ]
permissive
# image-ipreview 一款基于vue的桌面端轻量图片预览插件。 1.欢迎大家使用~,觉得还行的,恳请给个star,谢谢! 2.如有问题,请提issue,我会持续迭代。 ### 特性 1.支持缩放,旋转,下载 2.支持鼠标滚轮缩放 3.自带节流机制,兼顾性能 ### 安装 ```javascript npm install image-ipreview ``` ### 用法 ```javascript import ImageIpreview from 'image-ipreview'; import 'image-ipreview/lib/image-ipreview.css'; ...
PHP
UTF-8
7,470
3.09375
3
[]
no_license
<?php $servername = 'localhost'; $dbname = 'auto'; $username = 'Auto'; $password = 'LabaiSlaptas123'; //create connection $connection = new mysqli($servername, $username, $password, $dbname); //check connection if($connection->connect_error) { die('Connection failed: ' . $c...
C
UTF-8
875
3.4375
3
[]
no_license
//Author: Lily Jim //Credits: Lab Instructor helped with steps needed //UO CIS 314 Fall 2018 #include <stdio.h> //x=12345678, y=0xABCDEF00 //z=1234EF00, bytes 3 and 2 from x and bytes 1 and 0 from y //want x = 0x12340000 and y = 0x0000EF00 //x = 0001 0010 0011 0100 0101 0110 0111 1000 //mask = 1111 1111 1111 1111 ...
C++
UTF-8
3,459
3.046875
3
[]
no_license
/***************************************** ** File: Reversi.cpp ** Project: CMSC 202 Project 4, Sprig 2014 ** Author: Christopher Stephen Sidell ** Date: 4/19/2014 ** Section: 11 / 15 ** E-mail: csidell1@umbc.edu ** * This file contains all the rules and definitions for the game * of reversi. ** ******...
PHP
UTF-8
8,819
2.828125
3
[]
no_license
<?php class ResourceType { /** * @var string */ public $id; /** * @var string */ public $title; /** * Тип ресурса * bonuce - дающий + к добыче клетки * luxury - роскошь * mineral - полезное ископаемое * @var string */ public $type = 'bonu...
Python
UTF-8
11,258
3.1875
3
[]
no_license
from enum import Enum import random import re import queue random.seed(3) class Action(Enum): Forward = 1, Turn_Left = 2, Turn_Right = 3, Grab_Gold = 4, Shoot = 5, Climb = 6 class Tile: def __init__(self, x, y): self.posX = x self.posY = y self.pit = False ...
Java
UTF-8
1,631
2.484375
2
[]
no_license
package com.murano500k.test.beegame.model; import android.os.Parcel; import android.os.Parcelable; import android.support.annotation.NonNull; import android.util.Log; import static android.content.ContentValues.TAG; /** * Created by artem on 1/16/17. */ public class Bee implements Parcelable { private String nam...
C++
UTF-8
4,016
2.921875
3
[]
no_license
#include "pch.h" #include "Composite.h" #include <sstream> #include <algorithm> /* ---------Component defenitions--------- */ int Component::id_setter = 0; Component::Component() : dataName{ "" }, data{ "" }, parentPtr{}, isLastComponent{ true }, id{ id_setter++ } {} Component::~Component() {} C...
Python
UTF-8
2,769
2.890625
3
[]
no_license
import csv import spotipy from spotipy.oauth2 import SpotifyClientCredentials import json import numpy as np import pandas as pd from csv import writer from pandas import DataFrame # Spotify developer login credentials. Credentials are specific to each user and generally shouldn't be shared, # but if you make your own...
Markdown
UTF-8
3,954
2.84375
3
[ "Apache-2.0" ]
permissive
Controlio ========= This is an Android app which communicates with a server on a desktop to issue commands to it by speech or touch input. These commands can be configured in a properties file on the server. The device which hosts this app needs to be on a network to talk to this server. Once started, the app needs th...
PHP
UTF-8
8,141
3
3
[ "MIT" ]
permissive
<?php /////////////////////////////////////////////////////////////////////////////// // // DATABASE INTERFACE // // Copyright (c) 2006 Joe Leslie-Hurd, distributed under the MIT license // /////////////////////////////////////////////////////////////////////////////// require_once 'global.php'; require_once 'error.p...
SQL
UTF-8
22,866
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 26, 2017 at 08:34 AM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.0.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
Java
UTF-8
5,963
3.265625
3
[]
no_license
package pda.datas.datasDames; /**La classe Coup décrit le mouvement d'une piece : coordonnées d'arrivée, piecePrise. *Un pion peut effectuer plusieurs coup pendant un tour s'il peut effectuer plusieurs prises. *<BR>Elle permet aussi d'évaluer la qualité du coup d'un point de vue stratégique avec un système de ...
C#
UTF-8
4,657
2.875
3
[]
no_license
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Diagnostics; using System.IO; namespace MultiLaunch { class Processes { List<Tuple<Process, ProcessButton...
Java
UTF-8
281
1.59375
2
[]
no_license
package com.ethiorise.i2e.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.ethiorise.i2e.model.Airport; @Repository public interface AirportRepository extends JpaRepository<Airport, Long>{ }
Java
UTF-8
115
1.648438
2
[]
no_license
package ru.itmo.roguelike.items; public class MedKitMedium extends MedKit { { bonusSize = 50; } }
C++
UTF-8
1,665
2.625
3
[]
no_license
#ifndef __NEON_H #define __NEON_H #include "vertex.h" #include "face.h" // ---------------------------------------------- // class CNeon // // This class handle the 4 neons needed to illuminate a car // // ---------------------------------------------- namespace Lib3D { class TTexture; class CLib3D;...
Python
UTF-8
1,042
3.796875
4
[]
no_license
cars = 100 #start an integer variable with one value of 100 space_in_a_car = 4.0 #start a double variable with one value of 4.0, it´s mean the people capacity in the car drivers = 30 #the driver are 30, this is a new variable passengers = 90 #the passengers are 90, again this is a new variable cars_not_...
Python
UTF-8
372
2.59375
3
[]
no_license
import urllib2 import random from time import sleep random.seed(); last_line = 'blah' list_of_files = ['what_exists2.txt'] for filename_to_open in list_of_files: with open(filename_to_open) as fp: for line in fp: if 'exists' in line: print(last_line) ...
Java
UTF-8
5,961
2.203125
2
[]
no_license
package com.onefamily.mall.service.sms.impl; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.onefamily.common.redis.RedisPool; import com.onefamily.mall.service.sms.ISmsService; import com.onefamily.platform.dataformat.ResultVO; import org.apache.commons.lang3.RandomUtils; imp...
Python
UTF-8
716
3.265625
3
[]
no_license
seat= input() number= int(seat[:-1]) letter= seat[-1] time=0 pair="first or second" if number%2 == 0: Q=number/2 if Q%2==0: pair="second" else: pair="first" else: Q=int(number/2 - 0.5) if Q%2==0: pair="first" else: pair="second" if pair == "first": time+= 6...
Java
UTF-8
7,535
1.828125
2
[]
no_license
package com.teammetallurgy.aquaculture.client.renderer.entity; import com.mojang.blaze3d.matrix.MatrixStack; import com.teammetallurgy.aquaculture.Aquaculture; import com.teammetallurgy.aquaculture.entity.AquaFishEntity; import com.teammetallurgy.aquaculture.entity.FishMountEntity; import com.teammetallurgy.aquacultur...
Markdown
UTF-8
4,457
2.5625
3
[]
no_license
--- title: "Software Design" --- ## Software Metrics - [ABC Software Metric](https://en.wikipedia.org/wiki/ABC_Software_Metric) — an ABC score as a triplet of values that represent the size of a set of source code statements. - Bugs per line of code — self-explanatory - [Code coverage](https://en.wikipedia.org/wiki/C...
Java
UTF-8
2,247
2.875
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 groupgenerator; import java.io.File; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.Scanne...
Markdown
UTF-8
637
3.34375
3
[]
no_license
--- layout: post title: JS中的逻辑与和逻辑或 date: 2017-06-02 18:22 image: /images/posts/aside/1.jpg tags: JS知识点 --- <br /> 几乎所有的语言中\|\|及&&都遵循“短路”原理,如&&中第一个表达式为假,就不会去处理第二个表达式,而\|\|正好相反。 JS也遵循上述原则。 当\|\|时,找到为true的分项就停止处理,并返回该分项的值,否则执行完,并返回最后分项的值。 当&&时,找到false的分项就停止处理,并返回该分项的值。 ```python var a = "" || null || 3 || 4;...
Markdown
UTF-8
1,040
2.90625
3
[]
no_license
# Index Array Equilibrium This project shows an interface to interact with the _Index Array Equilibrium API_. It's available at https://paulo9mv.github.io/sum_array_front ## To execute This tutorial supposes that you have _yarn_ installed. If you don't have it, follow the instructions at the [official page](https://c...
Shell
UTF-8
856
3.375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash if [ -z "$1" ]; then DEBUG=0 else set -x DEBUG=1 fi if [ -z "$PLAY_CMD" ]; then PLAY_CMD="$HOME/src/play-2.0.3/play"; fi if [ $DEBUG -eq 0 ]; then rm -rf targed/staged $PLAY_CMD clean compile stage fi cd target CONF_DIR="collins/conf" rm -rf collins for dir in collins collins/lib c...
Java
UTF-8
15,029
1.8125
2
[]
no_license
package smilegate.blackpants.univscanner; import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.constraint.ConstraintLayout; import android.support.v7.app.AppCompatActivity; import android.text.Editable; import android.text.TextUtils; import android....
Python
UTF-8
1,155
3.625
4
[ "MIT" ]
permissive
# 1109. Corporate Flight Bookings # Weekly Contest 144 # Time: O(len(n)) # Space: O(n) class Solution: def corpFlightBookings(self, bookings: List[List[int]], n: int) -> List[int]: """ Shorter solution: """ res = [0]*(n+1) for i,j,k in bookings: res[i-1]+=k ...
Python
UTF-8
82
3.015625
3
[]
no_license
input= input() l=input.split(',') t=tuple(l) print('list:',l) print('tuples:',t)
Java
UTF-8
1,040
2.25
2
[]
no_license
package com.lahtinen.jaakko.Bookstore; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest; import org.springframework.test.context.junit4.SpringRunner; import com.lahtinen.jaakko....
Java
UTF-8
11,184
2.75
3
[]
no_license
package ExtendedModeler; import com.jogamp.opengl.GL2; import com.jogamp.opengl.GLAutoDrawable; import smTrace.SmTrace; // This class is the basis for bounded oriented objects. public class EMBox3D { ///private boolean isEmpty = true; public static final Vector3D xaxis = new Vector3D(1,0,0); public s...
Python
UTF-8
1,989
2.9375
3
[ "BSD-2-Clause" ]
permissive
# coding: utf-8 # # Cloud-tracking algorithm # # There has been some major changes to the cloud-tracking algorithm. I have now push most of the changes to the main repository (https://github.com/lorenghoh/loh_tracker), which uses HDF5 for data storage. We have since then moved to Parquet, and I will eventually modif...
Shell
UTF-8
1,815
3.53125
4
[]
no_license
#!/bin/sh # # make the control files for the 6 hour gdas quick look # v1.1 2/99 set -xa bdate=$1 edate=$2 disk=$3 cycle=$4 type=$5 hour=`echo $edate | cut -c9-10` date0=$bdate date1=$edate #date0=`find $disk -name "${cycle}_${type}_stas.????????${hour}" -print | sort \ # | head -n 1 | sed "s/^.*${cycle}_${type}_s...
C#
UTF-8
566
2.765625
3
[]
no_license
using System.Collections.Generic; namespace Multiverse { public class Map { public int MinX { get; init; } public int MaxX { get; init; } public int MinY { get; init; } public int MaxY { get; init; } public List<MapPlace> Places { get; init; } ...
JavaScript
UTF-8
1,410
3.265625
3
[]
no_license
function main(z = 16) { for (let x = 0; x < z; x++) { var divContain = document.createElement("div"); divContain.id = "miniDiv" + x; divContain.className = "paddingDiv"; document.getElementById('squares').append(divContain); for (let y = 0; y < z; y++) { var divEl...
C++
UTF-8
3,076
3.46875
3
[ "MIT" ]
permissive
// // Created by Xiyun on 2016/10/21. // #include <iostream> #include <vector> #include <string> using namespace std; ///Users/X/Git_Repo/CppPrimer5thAnswer/Cpp_Primer_5E_Learning/Chapter10/E10.20.cpp:22:42: error: call to deleted constructor of 'basic_ostream<char, std::__1::char_traits<char> >' void test(vector<s...
Ruby
UTF-8
374
2.78125
3
[ "MIT" ]
permissive
n = gets.to_i li = [] (1..n).each do x, y = gets.split.collect{|i| i.to_i} li.push([[x],[y]]) end for i in (n-1).downto(0) for j in 0...i unless (li[j][0]&li[i][0]).empty? and (li[j][1]&li[i][1]).empty? li[j][0] |= li[i][0] li[j][1] |= li[i][1] li.delete_at(i) ...
Ruby
UTF-8
589
2.9375
3
[]
no_license
class WineBatch include ActiveRecord::Validations attr_accessor :wines def initialize() @wines = [] end def cups @wines.map { |wine| wine.cup } end def << (wine) cups.include?(wine.cup) ? self[wine.cup].quantite += 1 : @wines << wine self end def [](cup) @wines.find { |...
Python
UTF-8
3,946
2.515625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
import time import math import sys import os import time from subprocess import Popen, PIPE, check_call import signal one_letter_codes={} one_letter_codes['ALA']='A' one_letter_codes['CYS']='C' one_letter_codes['ASP']='D' one_letter_codes['GLU']='E' one_letter_codes['PHE']='F' one_letter_codes['GLY']='G' one_letter_co...
Markdown
UTF-8
4,332
2.828125
3
[ "MIT" ]
permissive
# Class: Game_Followers ## Game_Followers () #### new Game_Followers () 隊列の並びなどを管理する。[Game_Follower](Game_Follower.md) を配列として定義したクラス。 [Game_Player#followers](Game_Player.html#followers) メソッドで得られる。 ##### Properties: | Name | Type | Description | | --- | --- | --- | | `_visible` | Boolean | | | `_gathering` | Bool...
C
UTF-8
2,329
2.8125
3
[]
no_license
/* Some Defs are shamelessly stolen by OLK delise@online-club.de The type of an value that fits in an MMX register (note that long long constant values MUST be suffixed by LL and unsigned long long values by ULL, lest they be truncated by the compiler) */ #include <math.h> typedef union { long long q; /* Q...
Markdown
UTF-8
6,536
3
3
[ "MIT", "Apache-2.0" ]
permissive
--- layout: post title: "年度总结 | 愿未来平凡的每一天都有值得回忆的瞬间" subtitle: "年度总结" date: 2019-02-20 24:00:00 author: "Lyle" header-img: "img/post-bg-ndzj.jpg" header-mask: 0.5 catalog: true tags: - 总结 - RSS - 写作 - 设计 - 学习 --- ## 2018年年终总结 2018年,仔细想想可能是无所事事而又很丧的一年。有些选择...
Markdown
UTF-8
2,022
2.875
3
[ "MIT" ]
permissive
--- pageTitle: About layout: markdown --- # About Me ## Professional life Howdy! My name is Dustin. I'm a Design Technologist working on the Design System at [Indeed] where we like to say - We help people get jobs! Before finding design systems, I was a [Drupalist] working on Very Large Websites™ for media brands an...
JavaScript
UTF-8
3,032
4.59375
5
[]
no_license
/* https://www.codewars.com/kata/520b9d2ad5c005041100000f * * Move the first letter of each word to the end of it, then add "ay" to the end of the word. Leave punctuation marks * untouched. */ // INPUT(S) // - String, consisting of words to convert to Pig Latin // - Pig Latin: Taking a word, moving its first l...
C++
UTF-8
12,311
2.859375
3
[]
no_license
#pragma once ///////////////////////////////////////////////////////////////////// // DbCore.h - Implements NoSql database prototype // // ver 1.0 // // Jim Fawcett, CSE687 - Object Oriented Design, Spring 2018 // ///////////////////////////...
Java
BIG5
1,413
3.71875
4
[]
no_license
/* Ĥ@ܼƹB */ public class TestVar{ public static void main(String args[]){ // //byte -128~127 byte b = 10; byte ByteMin = Byte.MIN_VALUE; byte ByteMax = Byte.MAX_VALUE; //short -32758~32767 short s = 20; short ShortMin = Short.MIN_VALUE; short ShortMax = Short.MAX_VALUE; //int Integer.MIN_VAL...
SQL
UTF-8
1,818
3.625
4
[]
no_license
/*데이터 조회 명령 select [all distinct distinctrow] 칼럼명 from 테이블 where 조건문 group by 그룹명 having 그룹조건 order by asc[오름차순] desc[내림차순] */ select lno, titl, mrno from lect where mrno is null order by titl asc; /* 비교연산자 */ select lno, titl, mrno from lect where mrno = 32; select lno, titl, mrno from lect where mrno...
Python
UTF-8
2,150
2.859375
3
[ "MIT" ]
permissive
from evolutionary_search import EvolutionaryAlgorithmSearchCV, maximize import sklearn.datasets import numpy as np from sklearn.model_selection import StratifiedKFold from sklearn.svm import SVC import unittest import random def func(x, y, m=1.0, z=False): return m * (np.exp(-(x ** 2 + y ** 2)) + float(z)) def ...
Java
UTF-8
6,458
1.828125
2
[]
no_license
//教育機能の目次 package com.example.dneshiboshiken; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.TextView; ...
Java
UTF-8
813
2.40625
2
[]
no_license
package com.lakeqiu.store.domain; /** * 分页信息类 * @author lakeqiu */ public class Category { /** * 分类编号 */ private String cid; /** * 分类名字 */ private String cname; public String getCid() { return cid; } public void setCid(String cid) { this.cid = cid; ...
Python
UTF-8
2,003
2.921875
3
[]
no_license
import pandas as pd import AppConfig import plotly.express as px import numpy as np import seaborn as sns import matplotlib import matplotlib.pyplot as plt import boto3 import argparse import happiness import temperature class Analysis: def __init__(self): self.temp_df = temperature.Temperature().df ...
Python
UTF-8
1,715
2.765625
3
[]
no_license
import telebot import digest import pickle bot = telebot.TeleBot('<Your API key') @bot.message_handler(commands=['view']) def view_post_message(message): view = digest.view_posts() bot.send_message(message.chat.id, "*Постов по вашим хабам: {}".format(len(view)) + '*\n' + "\n".join(view),...
Shell
UTF-8
2,466
3.359375
3
[]
no_license
#!/bin/bash # Devops Project -- 2016 kansukse@gmail.com # BuildBot Master süreçlerini ayarlar çalışır hale getirir. Debian Jessie üstünde çalışır. # Fix for python3 2020 buildbotdir=/BUILDBOT mastername=master builddir=$buildbotdir/sandbox gitdir=$buildbotdir/git tmpdir=$buildbotdir/tmp base="$( cd "$( dirname "${BASH...
Markdown
UTF-8
15,062
2.578125
3
[ "CC-BY-4.0", "MIT" ]
permissive
--- title: Ingestování telemetrie z IoT Hubu titleSuffix: Azure Digital Twins description: Podívejte se, jak ingestovat zprávy telemetrie zařízení z IoT Hub. author: cschormann ms.author: cschorm ms.date: 3/17/2020 ms.topic: how-to ms.service: digital-twins ms.openlocfilehash: 7c73f007f85a963a09de4e05222082fd52f784c0 m...
Markdown
UTF-8
1,609
2.765625
3
[]
no_license
--- title: Monsters Weekly 200b - Conversations with Julie Lerman layout: post tags: - ASP.NET Core authorId: monsters date: 2020-12-21 08:00:00 categories: - Monsters Weekly permalink: monsters-weekly\ep200b --- Over the last decade as Monsters we've been so fortunate to connect with so many great...
Python
UTF-8
4,392
2.78125
3
[]
no_license
from pydub import AudioSegment from os.path import splitext from pyaudio import PyAudio import _thread as thread from pydub.utils import make_chunks from enum import Enum class MusicPlayerState(Enum): #No Song Loaded Initialized = 0 #Song Loading Loading = 1 #Song Loading Loaded = 2 #Song P...
Markdown
UTF-8
1,497
3.15625
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Twilio Voice Transcription Tryout ===== A simple Rails app that lets you try out Twilio's voice transcription capabilities. Note on Cost --- Twilio costs money! Make sure you check the cost of things before using. As of June 2013, the rates are roughly $1/month to reserve a phone number, 1 cent per call per minute,...
Java
UTF-8
3,170
3.109375
3
[]
no_license
import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.OutputStream; import java.net.Socket; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Random; /** * This thread connects to one of the ...
Java
ISO-8859-1
1,291
3.109375
3
[]
no_license
package view; import javax.swing.JOptionPane; import model.Aluno; public class Questao1Teste { public static void main(String[] args) { Aluno aluno1 = new Aluno("Lucas Lins", "53001", "Rua Joo oliveira", "331.123.443-8"); Aluno aluno2 = new Aluno("Thalyson Rocha", "55009", "Rua Projetada", "121.313.933-1"); ...
Java
UTF-8
2,071
2.15625
2
[ "Apache-2.0" ]
permissive
/* * AsymSecureFile * https://ablog.jc-lab.net/186 * * This software may be modified and distributed under the terms * of the Apache License 2.0. See the LICENSE file for details. */ package kr.jclab.javautils.asymsecurefile.internal.jasf4.asn; import kr.jclab.javautils.asymsecurefile.internal.jasf4.ChunkRes...
Java
UTF-8
1,038
2.171875
2
[]
no_license
package com.click4care.thinkhealth.core.dto; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for typeOfDetermination. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpl...
Java
UTF-8
521
3.28125
3
[]
no_license
/* * 마이너스한도, 인출한다를 수정해야함. */ package kr.co.job.chap6; public class MinusAccount extends Account { int creditLine; public MinusAccount(String name, String accNo, int balance, int creditLine) { super(name,accNo,balance); this.creditLine = creditLine; } // 인출한다를 수정함 => 메소드 오버라이딩 @Override in...
Python
UTF-8
3,840
2.921875
3
[]
no_license
from enum import Enum, auto from typing import Dict, Union import re import typing class BlockStatus(Enum): NOTIN = auto(), BLOCKSTART = auto(), BLOCKEND = auto(), INBLOCK = auto() UNSET = auto() class Line: def __init__(self, text: str, is_first: bool=False): self.__is_first = is_fi...