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 |
|---|---|---|---|---|---|---|---|
JavaScript | UTF-8 | 1,329 | 2.53125 | 3 | [] | no_license | import * as types from '../constants/ActionTypes.js'
import undoable, { distinctState } from 'redux-undo'
const chartInfo = {
top:0,
left:0,
legend:false
};
const ChartReducer = (state = chartInfo, action) => {
switch (action.type) {
case types.SET_LEGEND_VISIBILITY:
return Object.assign({}, state, {
... |
Markdown | UTF-8 | 9,748 | 3.40625 | 3 | [] | no_license | # 实例方法 - 交互
## addTo
- `addTo(container, delay)`
- 参数:
- `{String|HTMLElement} container` HTMLElement对象的ID值、HTMLElement对象
- `{ Number } delay` 延迟时间,单位为毫秒 `ms`
- 返回值: `{ Object }` popo实例
将实例添加到指定容器
```js
P.init(options).addTo('container');
```
## update
- `update(options)`
- 参数:
- `{Array | Object} options`... |
Python | UTF-8 | 696 | 4.46875 | 4 | [] | no_license | #06-(07)
#키보드로 정수 수치를 입력받아 짝수인지 홀수 인지 판별하는 코드를 작성하세요
#입력받은 수치가 숫자인지도 판별하여 숫자가 아닌경우 "숫자가 아닙니다."라고 출력합니다.
num=int(input("수를 입력하세요"))
while num.isdigit():
if num % 2 == 0:
print("짝수")
elif num % 2 == 1:
print("홀수")
else:
print('숫자가 아닙니다.')
# try:
# num = input("수를 입력하세요:")
# i... |
Python | UTF-8 | 910 | 4.78125 | 5 | [] | no_license | """
Python provides a number of ways to perform printing. Research
how to print using the printf operator, the `format` string
method, and by using f-strings.
"""
x = 10
y = 2.24552
z = "I like turtles!"
# Using the printf operator (%), print the following feeding in the values of x,
# y, and z:
# x is 10, y is 2.25... |
SQL | UTF-8 | 12,351 | 3.25 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Apr 17, 2021 at 07:23 PM
-- Server version: 8.0.17
-- PHP Version: 7.3.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACT... |
C# | UTF-8 | 2,273 | 2.703125 | 3 | [] | no_license | using System;
using System.Collections.Generic;
namespace LPS.ToolScript.Parser
{
public class EvaluatedAttributeList : Dictionary<string, EvaluatedAttribute>, IExpression, ICloneable
{
public EvaluatedAttributeList()
{
}
public void Run (IExecutionContext context)
{
Eval(context);
}
public object... |
C# | UTF-8 | 2,168 | 3.265625 | 3 | [] | no_license | using System;
using System.Security.Cryptography.X509Certificates;
namespace Lab6
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Введите путь каталога: ");
string path = Console.ReadLine();
DOCType doc = new DOCType(path);
... |
Java | UTF-8 | 281 | 1.851563 | 2 | [] | no_license | package com.caring.wxrs.rest.request;
/**
*
* @author james
*/
public class AudioUploadRequest {
private String mediaId;
public String getMediaId() {
return mediaId;
}
public void setMediaId(String mediaId) {
this.mediaId = mediaId;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.