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
C#
UTF-8
8,240
2.53125
3
[ "MIT" ]
permissive
namespace Instagreat.Tests.Services { using System; using System.Threading.Tasks; using Data; using Data.Models; using Instagreat.Services.Implementation; using Microsoft.EntityFrameworkCore; using Xunit; using AutoMapper; using Web.Infrastructure.Mapping; using System.Collectio...
Ruby
UTF-8
9,461
2.640625
3
[ "MIT" ]
permissive
path = File.dirname(__FILE__) require "#{path}/tools" ########################################################################### # Author: Coleton Pierson # # Company: Praetorian # # Date: ...
Ruby
UTF-8
534
2.625
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
# This module holds funtions for network URI's module Puppet::Network::Uri # Mask credentials in given URI or address as string. Resulting string will # contain '***' in place of password. It will only be replaced if actual # password is given. # # @param uri [URI|String] an uri or address to be masked # @r...
Java
UTF-8
845
3.046875
3
[]
no_license
/*** * GameHelper.java * 19-Jan-2014 : 12:00:11 am * */ package head.first.java.chapter06; import java.io.*; /** * @author ubuntu * @packageName = head.first.java.chapter05:GameHelper.java * @createdOn: 19-Jan-2014 : 12:00:11 am * * This is a file for my practice and notes of "Head First * Java, 2nd editio...
C#
UTF-8
4,429
2.671875
3
[]
no_license
namespace WayGUI.CustomControls { using System.Drawing; using System.Windows.Forms; public class ThreadSafeRichTextBox : RichTextBox { public override string Text { get { return GetText(); } set { if(InvokeRequired) Invoke(new MethodInvoke...
PHP
UTF-8
204
2.703125
3
[]
no_license
<?php // イヌ科 class Canidae extends Mammalian{ public function __construct($nameJP, $nameEN, $img){ parent::__construct($nameJP, $nameEN, $img, 'イヌ科', 'Canidae'); } } ?>
Rust
UTF-8
4,587
3.046875
3
[]
no_license
use glifparser::*; extern crate xmlwriter; use xmlwriter::*; fn point_type_to_string(ptype: PointType) -> Option<String> { return match ptype{ PointType::Undefined => None, PointType::OffCurve => None, PointType::QClose => None, // should probably be removed from PointType PointType...
Python
UTF-8
1,199
2.703125
3
[]
no_license
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Project :auto_test_interface # File :test_logout.py # IDE :PyCharm # Author :Runner # Date :2021/1/26 16:22 from testcases.base_test_case import BaseCase from page_objects.app.navigation_page import NavigationPage from page_objects.app.my_page import MyPage f...
Java
UTF-8
1,395
2.25
2
[]
no_license
package iswc.test; import org.openrdf.query.MalformedQueryException; import org.openrdf.query.algebra.TupleExpr; import org.openrdf.query.parser.ParsedQuery; import org.openrdf.query.parser.sparql.SPARQLParser; public class MatView { private String query; private int number; private int cost; private String name;...
Java
UTF-8
2,290
2.28125
2
[ "MIT" ]
permissive
package pl.t32.newmathtools.ap; import android.os.Bundle; import android.app.Fragment; import android.support.design.widget.Snackbar; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.EditText; import android.widget.Switch; import android.widget.TextVie...
C#
UTF-8
829
2.546875
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DO { public class Person { public string Id { get; set; } public IdTypes IdType { get; set; } public Status Status { get; set; } public string Password ...
Python
UTF-8
5,886
2.5625
3
[]
no_license
# -*- encoding: utf-8 -*- import binascii import socket import struct import sys def arp_parser(packet): arp_length = 28 # fixed arp = struct.unpack("!2s2s1s1s2s6s4s6s4s", packet[0:arp_length]) print ("ARP Header :") print (" |_ SHA: {0} -> THA: {1}".format(binascii.hexlify(arp[5]), binascii.hexl...
C++
UTF-8
9,290
2.734375
3
[]
no_license
#include "Lexer.h" Lexer::Lexer(std::string JSONpath) { source.setJSON(JSONpath); } Lexer::Lexer() { } Lexer::~Lexer() { } void Lexer::setJSON(std::string JSONpath) { source.setJSON(JSONpath); } void Lexer::goToBegin() { source.goToBegin(); } void Lexer::skipWhitespaces() { wh...
Shell
UTF-8
445
3.640625
4
[]
no_license
#!/bin/bash obs=$1 if [ ! $1 ]; then echo "No observation ID given." exit 1 fi project_id=$(get_projid.py -o $obs) if [ project_id ]; then if [ $project_id != "G0009" ] && [ $project_id != "G0010" ]; then echo "Project ID for obs: $obs, does not match either G0009 nor G0010" exit 1 else ...
Markdown
UTF-8
2,123
2.59375
3
[ "MIT" ]
permissive
--- id: 48 title: 'Check Mysql user&#8217;s privileges' date: 2016-11-02T22:55:41+00:00 author: Navy Su layout: post --- Show root user&#8217;s privileges: ~~~shell mysql> SHOW GRANTS FOR 'root'@'localhost'; +---------------------------------------------------------------------+ | Grants for root@localhost ...
Python
UTF-8
2,432
2.625
3
[]
no_license
import logging, os, shutil, json, time def weiboLogin(driver, username, password): driver.get('https://www.weibo.com/Login.php') driver.find_element_by_id('loginname').send_keys(username) driver.find_element_by_xpath('/html/body/div[1]/div[1]/div/div[2]/div[1]/div[2]/div/div[2]/div[1]/div[2]/div[1]/div/div...
C
UTF-8
1,179
2.625
3
[]
no_license
#include <linux/module.h> #include <linux/kernel.h> #include <linux/proc_fs.h> #include <linux/sched.h> #include <linux/slab.h> #include <linux/uaccess.h> //author : afang //comment: what a nice day, isn't it?! //linux kernel module template int len, temp; char *msg; int read_proc(struct file *filep, char *buf, siz...
PHP
UTF-8
996
2.640625
3
[]
no_license
<?php namespace SnowIO\Magento2DataModel\Command; use SnowIO\Magento2DataModel\Inventory\SourceItemDataSet; class SaveSourceItemsCommand extends Command { public static function of(SourceItemDataSet $sourceItemDataSet): self { $result = new self; $result->sourceItems = $sourceItemDataSet; ...
Swift
UTF-8
508
2.546875
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
// Created by Tyler Hedrick on 9/12/19. // Copyright © 2019 Airbnb Inc. All rights reserved. import UIKit /// A view that responds to being highlighted within a `CollectionView`. public protocol HighlightableView: UIView { /// Implement this method on your view to react to highlight events. Do NOT use this method t...
Java
UTF-8
2,292
2.84375
3
[]
no_license
package com.Utilities; import java.io.File; import java.io.FileInputStream; import java.util.Properties; public class ReadConfig { // Properties Class Properties pro; // Constructor public ReadConfig() { File src = new File("./Configuration/config.properties"); // Creating File object tr...
PHP
UTF-8
1,241
2.8125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>Minichat amélioré</title> </head> <body> <?php try { // Pour fonctionner, ce script doit d'abord être "initialisé" avec le fichier sql contenant notamment la création de la base et les infos user comme ci-dessous : // create database minich...
C++
UTF-8
1,746
3.15625
3
[]
no_license
// // Created by djf on 2016/12/21 0021. // #ifndef INC_03_SINGLELINKEDCIRCULARLIST_DOUBLELINKEDLIST_DOUBLELINKEDLIST_H #define INC_03_SINGLELINKEDCIRCULARLIST_DOUBLELINKEDLIST_DOUBLELINKEDLIST_H #include "LinearList.h" using namespace std; template <typename T> struct doubleChainNode{ T element; ...
JavaScript
UTF-8
7,266
2.59375
3
[ "MIT" ]
permissive
const const_url = "http://localhost:5984" const const_colecao = "projetocrud" var jsonAluno = {} var jsonResultSearch = {} var i=0; var nretorno = -1; function couchRest(pmetodo, ptype, pchavedoc){ // Responsável para comunicação do REST com JavaScript. // JavaScript + AJAX. var curl = "" if(pmetodo == ""){ ...
Java
UTF-8
2,458
2.375
2
[]
no_license
package com.example.rajan.myfirstandroidapp; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.FragmentTransaction; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Toast; publi...
Python
UTF-8
274
2.78125
3
[]
no_license
from sklearn.svm import LinearSVR # 조미 체소 -> 규제 파라미터 c = 1이 가장 좋은 성능 def linear_svr(X, y, epsilon=1.5, random_state=42): linear_svr = LinearSVR(epsilon=epsilon, random_state=random_state) linear_svr.fit(X, y) return linear_svr
Java
UTF-8
4,715
2.140625
2
[]
no_license
package ite.kmitl.project.fragment; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.LinearLayoutManager; import android.support.v...
Java
UTF-8
8,750
1.960938
2
[]
no_license
package br.com.pointstore.util; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.AdapterView; import...
Markdown
UTF-8
3,239
2.65625
3
[]
no_license
# CTGU图书馆预约位置 本脚本实现了自动预约图书馆位置,配合定时任务,每天定时预约。 ~~后续将推出云函数版本,方便各位无服务器同学部署到云端。~~ 已推出云函数版本,可自行部署至云端! ## :memo:Updated recently **!!!每次更新后请务必重新获取并部署代码,防止影响以后预约。** ### 10.31更新公告: * 暂时解决服务器反爬虫机制问题。 * 新增微信通知,登录失败或是预约座位失败可以收到通知。 ### 11.02更新公告: * 修复云函数时区不一致的问题。 ## :sparkles:Can do what? 1.考研党不用每天在卡卡的系统里着急的选常去位置了,将脚本设置...
Markdown
UTF-8
1,747
3.25
3
[ "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-other-permissive", "Apache-2.0", "BSD-3-Clause", "MIT", "OFL-1.1" ]
permissive
# Angular Style Guide Kibana is written in Angular, and uses several utility methods to make using Angular easier. ## Defining modules Angular modules are defined using a custom require module named `ui/modules`. It is used as follows: ```js const app = require('ui/modules').get('app/namespace'); ``` `app` above i...
Python
UTF-8
394
3.109375
3
[]
no_license
def solution(numbers): answer = [] while len(numbers)>=1: a=numbers.pop(0) for i in range(len(numbers)): answer.append(a+numbers[i]) for k in range(len(answer)): b=answer.pop(0) for l in range(len(answer)): if(b==answer[l]): break ...
Java
UTF-8
5,675
2.359375
2
[]
no_license
package cn.lmjia.market.dealer.service; import cn.lmjia.market.core.entity.Login; import cn.lmjia.market.core.entity.MainOrder; import cn.lmjia.market.core.entity.cache.LoginRelation; import cn.lmjia.market.core.entity.deal.AgentLevel; import cn.lmjia.market.core.entity.deal.AgentSystem; import cn.lmjia.market.core.re...
TypeScript
UTF-8
347
2.5625
3
[]
no_license
import TokenManager, { TokenRefreshResponse } from "./TokenManager"; export default class NonRefreshingTokenManager implements TokenManager { constructor(accessTokenFunc: () => string | null); readonly getAccessToken: () => string | null; supportsRefresh: boolean; refreshAccessToken: () => Promise<...
JavaScript
UTF-8
313
2.71875
3
[]
no_license
function XHRrx() { var xhr = new XMLHttpRequest(); xhr.open("GET","http://__localhost__/user_info.html",false); xhr.send(); if( xhr.status != 200) { alert(xhr.status + ': ' + xhr.statusText); } else { var userdata = document.getElementById('userinfo'); userdata.innerHTML = xhr.responseText; } }
Java
UTF-8
1,607
1.96875
2
[]
no_license
package com.example.xiamuyao.sumtopnews.constant; /** * ================================================ * 作 者:夏沐尧 Github地址:https://github.com/XiaMuYaoDQX * 版 本:1.0 * 创建日期: 2018/11/12 * 描 述: * 修订历史: * ================================================ */ public class XConstant { /** * ui解析的xml...
Swift
UTF-8
1,472
2.5625
3
[]
no_license
// // ViewController.swift // CallNumberApp // // Created by Yurii Vients on 8/2/17. // Copyright © 2017 Yurii Vients. All rights reserved. // import UIKit import MessageUI class ViewController: UIViewController , MFMailComposeViewControllerDelegate{ override func viewDidLoad() { super.viewDidLoa...
Python
UTF-8
516
2.6875
3
[ "CC-BY-SA-4.0", "CC-BY-SA-3.0", "CC-BY-NC-SA-4.0", "Python-2.0", "Apache-2.0" ]
permissive
from typing import Optional from torch import Tensor, linspace from torch import device as torch_device def thresholds_between_min_and_max( preds: Tensor, num_thresholds: int = 100, device: Optional[torch_device] = None ) -> Tensor: return linspace(start=preds.min(), end=preds.max(), steps=num_thresholds, de...
Java
UTF-8
584
1.84375
2
[]
no_license
package ua.springboot.web.domain.user; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import org.springframework.web.multipart.MultipartFile; import ua.springboot.web.entity.enumeration.UserRole; @NoArgsConstructor @Getter @Setter public class EditUserRequest { private int id; ...
C#
UTF-8
611
2.640625
3
[]
no_license
using Abc.Core.Entities; using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Text; namespace Abc.Core.DataAccess { public interface IEntityRepository<T> where T:class , IEntity,new() //Generic olacak o yüzden T. { T Get(Expression<Func<T,bool>> filter=null); //G...
Java
UTF-8
463
2.34375
2
[]
no_license
package art_gallery_simpler; class edge { Point strt; Point nd; Point cutoff = null; public edge(Point p1,Point p2) { strt = p1; nd = p2; } public edge(Point p1,Point p2,Point cut) { strt = p1; nd = p2; cutoff = cut; } Point getCutPnt...
JavaScript
UTF-8
439
2.84375
3
[]
no_license
// jQuery zawsze podlaczaj najpierw, dopiero ponizej podlaczaj skrypty ktore korzystaja z jquery // A tak sie podlacza ja: // <script src="/js/jquery-2.2.1.js"></script> // zeby sprawdzi czy jest jQuery, wystarczy w consol.lo wpisac doalra console.log($); // $ i obiekt jQuery TO DOKLADNIE TO SAMO !! : console.log(j...
Java
UTF-8
1,081
3.390625
3
[]
no_license
package ol.leet.Strings.ReverseInteger; public class Solution { public int reverse(int x) { if (Integer.MAX_VALUE <= x || Integer.MIN_VALUE >= x) { return 0; } int result = 0; if (Integer.MAX_VALUE / 10 >= x && Integer.MIN_VALUE / 10 <= x) { while (x != 0) ...
SQL
UTF-8
527
3.328125
3
[]
no_license
CREATE OR REPLACE FORCE VIEW V_GETBUYORDERINFO_BY_SYMBOL AS ( SELECT SEACCTNO, SUM(RECEIVING) SERECEIVING FROM ( SELECT OD.SEACCTNO, EXECQTTY RECEIVING FROM ODMAST OD, ODTYPE TYP, SYSVAR SY WHERE OD.STSSTATUS IN ('N','C') AND OD.EXECTYPE IN ('NB', 'BC') and sy.grname='SYSTEM' and sy.varn...
C++
UTF-8
758
2.9375
3
[]
no_license
#include<iostream> #include<algorithm> using namespace std; int main(){ int i,j,k,m,n,sign; int a[10]; while(cin >> a[0] >> a[1] >> a[2]){ if(a[0] <= 0 || a[1] <= 0 || a[2] <= 0){ cout << "invalid\n"; continue; } sign = 0; if(a[0] + a[1] <=...
Markdown
UTF-8
646
3.15625
3
[]
no_license
Contribution Guide Lines * __NSFW images aren't allowed due to [Github Site Policy](https://docs.github.com/en/site-policy);__ * Pictures can't be related to cryptocurrency or its technologies; * Images must have descriptive file names in the following format (The file doesn't have to be "png" format, this is just a...
PHP
UTF-8
1,821
2.5625
3
[]
no_license
<?php namespace Modules\finance\Entity; use core\CoreClasses\services\EntityClass; use core\CoreClasses\services\FieldInfo; use core\CoreClasses\db\dbquery; use core\CoreClasses\db\dbaccess; use core\CoreClasses\services\FieldType; /** *@author Hadi AmirNahavandi *@creationDate 1396-09-07 - 2017-11-28 18:02 *@lastUpdat...
Python
UTF-8
2,140
4.40625
4
[]
no_license
#Previously, you wrote a class called ExerciseSession that #had three attributes: an exercise name, an intensity, and a #duration. # #Add a new method to that class called calories_burned. #calories_burned should have no parameters (besides self, as #every method in a class has). It should return an integer #representi...
Java
UTF-8
1,292
2.265625
2
[ "MIT" ]
permissive
package dev.voidframework.core.conditionalfeature.condition; import com.typesafe.config.Config; import dev.voidframework.core.conditionalfeature.AnnotationMetadata; import java.util.Arrays; import java.util.List; /** * Indicates that the feature will only be loaded if the condition is met. The value * is retrieved...
Java
UTF-8
1,333
3.859375
4
[]
no_license
import java.util.ArrayList; import java.util.List; //Find all possible combinations of k numbers that add up to a number n, // given that only numbers from 1 to 9 can be used and each combination // should be a unique set of numbers. // // // Example 1: // // Input: k = 3, n = 7 // // Output: // /...
Java
UTF-8
611
3.6875
4
[]
no_license
/* Write a program to check whether the number is divisible by 5 & 11 or not. Input : 55 Output : 55 is divisible by 5 & 11 */ import java.util.Scanner; class Pro5{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); Syst...
JavaScript
UTF-8
311
3.59375
4
[]
no_license
let numbers = [5, 9, 3, 19, 70, 8, 100, 2, 35, 27]; let isOdd; let count = 0; for(let index = 0; index < numbers.length; index += 1){ if(numbers[index] % 2 !== 0){ count += 1; } } if(count === 0){ console.log('No number is odd.') }else{ console.log('Total of odd numbers = ', count); }
C++
UTF-8
783
3.3125
3
[]
no_license
#include <unistd.h> #include "nonFlyingBird.h" #include "FlyingBird.h" #include <vector> int main(){ Bird* b = new Bird("tweety"); b->canFly(); cout << b->getName() << endl; b->getLunch(2); Bird* nfb = new NonFlyingBird("Strolly"); nfb->canFly(); cout << nfb->getName() << endl; Bird* fb = new FlyingBird(...
C++
UTF-8
3,169
3.578125
4
[]
no_license
//File Name: Assignment11Exercise02.cpp //Author: Adam Mejia //Email: adamrooski@gmail.com //Description: This program will determine clothing sizes based on height, weight and age. //Last Modified: 10/12/2014 #include <iostream> using namespace std; double hatsize(double weight_par, double height_par); double chestmo...
Java
UTF-8
712
2.375
2
[]
no_license
package com.NBS.FM.ICA.business; import java.sql.*; public class GetAccessFlag{ public boolean getAccess(String user, String access) throws Exception { Connection conn = null; boolean outputFlag = false; try { conn = DBUtil.getConnection(); CallableStatement cStmt = conn.prepareCall("{? = call ftdev01.c...
Java
UTF-8
580
2.078125
2
[]
no_license
package com.javatechie.spring.soap.api; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import com.javatechie.spring.soap.api.bean.LimitConfiguraion; @RestController public class L...
Java
UTF-8
2,042
2.328125
2
[]
no_license
package service; import models.User; import play.Application; import play.Logger; import play.mvc.Http.Context; import providers.MyUsernamePasswordAuthProvider; import com.amazonaws.services.opsworks.model.App; import com.feth.play.module.pa.user.AuthUser; import com.feth.play.module.pa.user.AuthUserIdentity; import ...
PHP
UTF-8
1,346
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Adam * Date: 07/02/2018 * Time: 19:53 */ namespace App\Http\Controllers\News; use App\Http\Controllers\Controller; use App\News; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Validator; class PostController extends Cont...
TypeScript
UTF-8
478
2.6875
3
[ "MIT" ]
permissive
import {Plane} from "../plane/Plane"; import {PlaneElement} from "../plane/PlaneElement"; import {Position} from "../plane/Position"; export class Fruit { readonly planeElement: PlaneElement; private constructor(position: Position, plane: Plane) { this.planeElement = plane.getPlaneElementFo...
JavaScript
UTF-8
456
2.609375
3
[ "MIT" ]
permissive
// @ts-check /** * @typedef {(page:any)=>Promise<void>} PageTransformer */ module.exports = class PageTransformers { constructor() { /** @type {PageTransformer[]} */ this._all = [] } /** * @param {PageTransformer} transformer */ add(transformer) { this._all.push(transformer) } /** ...
Java
UTF-8
4,038
2.421875
2
[]
no_license
package com.library.view; import com.library.controller.LibraryController; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.FileNotFoundException; import java.io.IOException; import javax.swing.JTextField; import com.library.model.domain.AvailableItems; import com.librar...
C++
UTF-8
2,284
3.8125
4
[]
no_license
#include <iostream> #include <cstdlib> #include <ctime> #include <string> void determineWinner(int, int); int getPlayerChoice(int); int getComputerChoice(int); int main() { int computerChoice; int playerChoice; char playAgain = 'y'; while(playAgain == 'y') { playerChoice = getPlayerChoice(playerChoice...
Java
UTF-8
3,543
2.421875
2
[]
no_license
package com.example.jarry.persell.Adapter; import android.app.Activity; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import com.example.jarry.persell.Entity.MessageChat; import c...
Python
UTF-8
663
2.671875
3
[]
no_license
import net from control import Control # ESP32 pinouts PIN_X = 35 # blue PIN_Y = 34 # violet PIN_SW = 32 # green wlan = net.connect_wifi() ctrl = Control() ctrl.setup_joy(PIN_X, PIN_Y, PIN_SW) counter = 0 while True: print('Awaiting connection to socket') connection = net.connect_socket() if not con...
Python
UTF-8
159
3.484375
3
[]
no_license
def transit(f): c = 5 / 9 * (f - 32) print(round(c, 2), end = ' ') def printtable(): for i in range(0, 300, 20): transit(i) printtable()
C#
UTF-8
1,173
3.671875
4
[]
no_license
namespace certificacao_csharp_roteiro.Aula_2___tipos_de_referencia._1___Tipos_de_Referencia { class TiposDeReferencia : IAulaItem { public void Executar() { var cliente1 = new Cliente("José", 32); //conceito de ponteiros >>> var cliente2 = cliente1; //não faz...
Markdown
UTF-8
1,344
2.953125
3
[ "MIT" ]
permissive
## English words today: 2018-07-17 | English Words | Word's property | Chinese description | | :-----------: | :-------------: | :-----------------: | | crass | adj. | 粗鲁的 | | dazzle | v. | 使…目眩, 使...惊叹 | | demonstrable | adj. | 可证明的 | | designate | adj. | 指定的, 选定的 | | digress | v. | 偏题, 跑题 | | discontinue | v. | 终止 |...
Java
UTF-8
233
1.945313
2
[]
no_license
package com.socialinspectors.utils.messages; public enum MessageProperties { HEADER { @Override public String toString() { return "header"; } }, BODY { @Override public String toString() { return "body"; } } }
Python
UTF-8
3,363
2.734375
3
[]
no_license
import face_recognition import cv2 import array VIDEO_DIR = "test.mp4" #视频的路径 TRACKING_FACE_DIR = ["face1.jpg" ,"face2.jpg","face3.jpg", "face4.jpg", "face5.jpg", "face6.jpg"] #在这里输入识别的脸的图片 TRACKING_FACE_LABEL = ["Sheldon", "Leonard", "Penny", "Howard", "Rajesh", "Amy"] #在这里输入识别的脸的名称 VIDEO_SCALE = 1 #视频识别时的缩放倍数 FR...
PHP
UTF-8
1,697
2.6875
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="styles.css" rel ="stylesheet"> ...
Java
UTF-8
3,983
3.359375
3
[]
no_license
package prop.domain; import prop.ErrorString; import prop.PropException; import java.util.ArrayList; /** * Class ListSet, represents a set of playlists. * @author Carles Garcia Cabot * @see List */ public class ListSet { private static final char delimiter = '\n'; private TernarySearchTree<List> lists; ...
SQL
UTF-8
318
2.53125
3
[]
no_license
create or replace view dm_AccountBudgets_attr as select _sys_transform_id, TenantId, AccountBudgetAttrId, IncorrectScenarioId, ScenarioId, AccountBudgetId from out_AccountBudgets_attr where _sys_transform_id = (select max(id) from _sys_transform_id where ts_end is not null and entity = 'dm_AccountBudgets_attr');
Markdown
UTF-8
737
2.578125
3
[ "MIT" ]
permissive
--- title: "Формування грудей" --- ![Формування грудей](chestshaping.svg) Вертикальна величина, яку потрібно розрізати & розсунути верхню частину передньої панелі, щоб надати форму грудей, як фактор обхвату грудей. ## Вплив цієї опції на шаблон ![На цьому зображенні показано вплив цієї опції шляхом накладання декіл...
C#
UTF-8
4,824
2.71875
3
[]
no_license
using Fenogeno.Models; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; namespace Fenogeno.DataAccess { public class ComentarioDAO { public void Inserir(Comentario obj) { using (SqlConnection conn = new SqlC...
Markdown
UTF-8
7,027
2.625
3
[ "CC-BY-4.0" ]
permissive
# 【金刚经浅尝】第十三章 修炼佛法 {% file src=".gitbook/assets/jin-gang-jing-13.m4a" %} (点击👆文件,打开新的页面,然后点`观看` 进行收听\) ![](https://mmbiz.qpic.cn/mmbiz_png/xws7d9qricCbwIak0wqdMQYFVKKnBFNCiaB9FbCf9icN50hflrFdU7LsnicwlBzLVlzXMNFl7Gky6rk96KQUf1iaVxw/640?wx_fmt=png&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1) 金刚经至此都在用各种方式告诉我们,成长、修行的精髓是不可住于相、要做...
Python
UTF-8
905
2.53125
3
[]
no_license
from numpy import * import scipy.weave as weave from trapz import * from week0 import * JMAX =20 ORDER = 5 JMAXP = JMAX+1 K=5 def romberg(func, a, b,full = False,EPS = 1e-6): s = linspace(0.0,0.0,JMAXP) h = linspace(0.0,0.0,JMAXP) h[0] = 1.0 y = [] dy = [] index = [] for j in range(JMAX): ...
Java
UTF-8
401
2.078125
2
[]
no_license
package com.dcat.ReCo.vos; public class RestaurantVO { private Long restaurantId; private Long districtId; public Long getRestaurantId() { return restaurantId; } public void setRestaurantId(Long restaurantId) { this.restaurantId = restaurantId; } public Long getDistrictId() { return districtId; } pu...
Python
UTF-8
795
2.65625
3
[]
no_license
import json import requests from rest_framework.response import Response from rest_framework.decorators import api_view from django.http import JsonResponse from .to_prod.calculate_level_new import get_level_from_raw_text # @route POST api/level/ # @access Public @api_view(['POST']) def get_level(request): # Вы...
Shell
UTF-8
3,078
3.6875
4
[]
no_license
#! /bin/sh echo 'name:' $USERNAME echo 'host:' $HOSTNAME exit 0 ---------------------------------------------------------------------------- #! /bin/sh num1=100 num2=$num1+100 echo $num2 num3=`expr $num1 + 100` echo $num3 ----------------------------------------------------------------------------...
Java
UTF-8
1,157
2.03125
2
[]
no_license
package com.example.quartz.domain; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import lombok.ToString; import java.io.Serializable; import java.time.LocalDateTime; import java.util.Date; import java.util.List; @ToString @Data @NoArgsConstructor @AllArgsConstructor public cl...
Java
UTF-8
404
2.640625
3
[]
no_license
package alternativemods.awl.logic; import alternativemods.awl.api.logic.AbstractLogic; /** * Author: Lordmau5 * Date: 06.03.14 * Time: 15:14 */ public class LogicLatch extends AbstractLogic { @Override public void work(boolean powered) { if(powered) setPowered(!this.isPowered()); ...
C
UTF-8
1,244
3.28125
3
[]
no_license
#include "api.h" struct arv { int chave; Arv *esq; Arv *dir; }; Arv *arv_criavazia(void) { return NULL; } Arv *insere(Arv *a, int chave) { if (busca(a, chave) != NULL) return a; if (a == NULL) { a = (Arv *)malloc(sizeof(Arv)); a->chave = chave; a->esq = a...
TypeScript
UTF-8
1,653
2.578125
3
[]
no_license
import * as utils from '@modeldata/utils'; const KEY = "__after__"; export function after(proto: any, fname: string) { if (!proto[fname]) { console.warn(`找不到fname = ${fname}`); return null; } return function (target: any, name: string, desc: PropertyDescriptor) { const obj = ta...
Markdown
UTF-8
2,487
2.734375
3
[ "MIT" ]
permissive
--- title: "SpringBoot로 완성하는 URL Shortener (1)" comment: true date: 2020-04-26 categories: [Programing, Java] tags: [URL-Shortener, SpringBoot] --- ## SpringBoot로 완성하는 URL Shortener (1) #### 1. URL 주소 줄이기 , Url-Shortener란 ? 유투브나 또는 카페의 게시물을 친구에게 공유해 본 경험이 있다면 엄청난 URL 길이를 보고 놀랐던 경우가 있을 것이다. 이런 URL이 길 수 밖에 없는 원인은 U...
Markdown
UTF-8
689
3.640625
4
[ "CC-BY-4.0", "MIT", "LicenseRef-scancode-public-domain" ]
permissive
--- layout: exercise topic: Loops title: Basic Vector language: R --- The following code capitalizes the first letter of `pet`, puts it in a sentence, and stores it as `my_pet`: ``` pet <- "spot" pet_name <- stringr::str_to_title(pet) my_pet <- paste("My pet's name is ", pet_name, ".", sep = "") ``` Modify the code ...
C++
UTF-8
1,464
2.875
3
[]
no_license
#ifndef QUATERNION_H #define QUATERNION_H // credits to https://github.com/carrino // // struct EulerAngles { double roll, pitch, yaw; }; class Quaternion { public: double a; double b; double c; double d; Quaternion() {a = 1; b = c = d = 0;} Quaternion(double x, double y, double z)...
C++
UTF-8
247
2.640625
3
[]
no_license
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; vector<int>a; int x; for(int i=0;i<n;i++){ cin>>x; a.push_back(x); } cout<<accumulate(a.begin(),a.end(),0)<<endl; }
Python
UTF-8
418
2.859375
3
[]
no_license
import pandas as pd from datetime import date,timedelta dates=list() link = "https://us.trend-calendar.com/trend/{}.html" today = date.today() today = today - timedelta(days=1) number_of_days = 30 for _ in range(number_of_days): dates.append(link.format(today)) today = today - timedelta(days=1) temp = { 'i...
Java
UTF-8
1,385
3.5
4
[]
no_license
package letters; /** * Class which defines a ThanksLetter which is sent when an inhabitant receives * a PromissaryNote * * @author Thomas OSTROWSKI * */ public class ThanksLetter extends Letter<Content> { /** * Constructor of the ThanksLetter which is initialized with the * PromissaryNote given in paramet...
C++
UTF-8
2,040
3.296875
3
[]
no_license
#include <math.h> #include "Line2D.h" #define TOLERANCE_LINE2D 1e-6 // had to reduce tolerance from 1e-8 float Line2D::getLength(Point2D startPoint, Point2D endPoint) { return getLength(startPoint.X, startPoint.Y, endPoint.X, endPoint.Y); } float Line2D::getLength(float startX, float startY, float endX...
Java
UTF-8
1,408
3.875
4
[]
no_license
package com.cert.string; import java.util.Objects; /** * Created by sridhar on 12/4/16. */ public class Equality { public static void runTest1() { String Str1 = new String("This is really not immutable!!"); String Str2 = Str1; String Str3 = new String("This is really not immutable!!"); ...
Go
UTF-8
356
2.765625
3
[]
no_license
package stand import ( "fmt" "os" ) func RequireEnv(key string) string { value, ok := os.LookupEnv(key) if !ok { panic(fmt.Sprintf("environment variable %s is required but was not found", key)) } return value } func DefaultEnv(key, defaultValue string) string { value, ok := os.LookupEnv(key) if !ok { ret...
JavaScript
UTF-8
343
3.078125
3
[]
no_license
function Sum(...params){ const sumParams = params.reduce((a,b) => a + b); console.log(sumParams); } function Mult(valorToMult, ...rest){ const multNumbers = rest.map(value => (value * valorToMult)); const sumMultNumbers = multNumbers.reduce((a,b) => a + b); console.log(sumMultNumbers); } module...
Python
UTF-8
2,654
2.75
3
[]
no_license
import numpy as np import tensorflow as tf import matplotlib.pyplot as plt from os import listdir from sklearn.decomposition import * from sklearn.manifold import LocallyLinearEmbedding def printLoss(): loss = np.load("loss_64.npy") epoch = [x*10 for x in range(1,101)] print(epoch) fig,ax = plt.subplot...
C++
UTF-8
465
2.703125
3
[]
no_license
#include <iostream> using namespace std; //подсчет кол-ва ребер оринтированного графа int g[100][100]; int n; int main(){ cin >> n; for(int i = 0; i < n; i++){ for(int j = 0; j < n; j++){ cin >> g[i][j]; } } int x = 0; for(int i = 0; i < n; i++){ for(int j = 0; j ...
C#
UTF-8
3,530
4.125
4
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //Write a program that can solve these tasks: //Reverses the digits of a number //Calculates the average of a sequence of integers //Solves a linear equation a * x + b = 0 //Create appropriate methods. /...
C++
UTF-8
649
2.796875
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
#include <iostream> #include <assert.h> #include "predicate.h" using namespace std; void Predicate::str() const { cout << *this << endl; } ostream& operator<<(ostream& os, const Predicate& p) { os << p.name; return os; } //ostream& operator<<(ostream& os, const Predicate& p) { // os << p.name << "("; // sw...
Java
UTF-8
393
2.390625
2
[]
no_license
package org.practise.algorithm.leetcode.topologicalsorting; import org.testng.Assert; import org.testng.annotations.Test; public class AlienDictionaryTest { private AlienDictionary obj = new AlienDictionary(); @Test public void testAlienDictionary() { String[] words = {"wrt","wrf","er","ett","rft...
Python
UTF-8
749
4.0625
4
[]
no_license
# Реализовать функцию, принимающую два числа (позиционные аргументы) и выполняющую их деление. #Числа запрашивать у пользователя, предусмотреть обработку ситуации деления на ноль. def func(n_1, n_2): try: n_1, n_2 = int(n_1), int(n_2) func = n_1 / n_2 except ValueError: return "Ошибка, п...
Python
UTF-8
956
3.328125
3
[ "MIT" ]
permissive
import RPi.GPIO as GPIO import random import time rPin =26 gPin =19 bPin =13 GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO.setup(rPin, GPIO.OUT) GPIO.setup(gPin, GPIO.OUT) GPIO.setup(bPin, GPIO.OUT) GPIO.output(rPin, GPIO.LOW) GPIO.output(gPin, GPIO.LOW) GPIO.output(bPin, GPIO.LOW) red= GPIO.PWM(rPin, 100)...
Python
UTF-8
2,115
2.625
3
[ "Apache-2.0" ]
permissive
import logging import os import sys import time import boto3 from boto3.dynamodb.conditions import Attr from utils import get_secret log = logging.getLogger('worker') aws_access_key_id, aws_secret_access_key = get_secret() out_hdlr = logging.StreamHandler(sys.stdout) out_hdlr.setFormatter(logging.Formatter('%(asctime...
JavaScript
UTF-8
1,141
2.625
3
[]
no_license
(function($, s, b){ b.lfgList.click(function(e){ var targ = e.target; if(targ.nodeName === "LI"){ /* Ping the LFG folks */ console.log(targ.id); s.emit("ping", targ.id); }; }); var pingList = $("#pinged").click(function(e){ var targ = e.target; var pongQid = ""; if(targ.nodeName === "LI"){ /...