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
PHP
UTF-8
3,046
2.609375
3
[]
no_license
<?php include_once(ROOT."/functions/database_management.php"); /* drawUserDataTable */ /* ** Description: Shows the table with the users and the option to change staff, status, and permissions. ** Return value: Void. */ function drawUserDataTable() { $games = array( 'main', 'dead_cells', 'kube', 'monstruhotel2...
Markdown
UTF-8
1,627
2.515625
3
[]
no_license
--- title: Visual Studio 2008 简体中文专业版下载 附序列号 date: 2008-04-22 excerpt: | <p>Visual Studio 2008 简体中文专业版下载 附序列号 <br /> <br /> 建议先去微软官方下载90天试用版,这样比较安全: <br /> <br /> <a target="_blank" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=83c3a1ec-ed72-4a79-8961-25635db0192b&amp;DisplayLang=zh-cn">http:...
Java
UTF-8
1,421
2.171875
2
[]
no_license
package com.eg.egsc.scp.simulator.codec; import org.springframework.stereotype.Component; import com.eg.egsc.scp.simulator.dto.ProtocolBody; import com.eg.egsc.scp.simulator.dto.ProtocolHeader; import com.eg.egsc.scp.simulator.util.Int2ByteUtil; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerC...
C#
UTF-8
1,536
2.578125
3
[]
no_license
using Inter_KissEspataria.Data; using Inter_KissEspataria.Models; using Microsoft.AspNetCore.Mvc; namespace Inter_KissEspataria.Controllers { public class ProdutoController : Controller { public IActionResult Index() { using (var data = new ProdutoData()) return View...
Java
UTF-8
4,733
2.15625
2
[]
no_license
package com.lostad.app.base.view.component; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.ViewGroup; import android.widget.LinearLayout; import android.widget.TextView; import com.lostad.app.demo.R; import com.lostad.applib.util.ui....
Java
UTF-8
934
1.609375
2
[]
no_license
/** */ package org.sqlproc.model.processorModel.impl; import org.eclipse.emf.ecore.EClass; import org.sqlproc.model.processorModel.PojoAttributeDirectiveIsDef; import org.sqlproc.model.processorModel.ProcessorModelPackage; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Pojo Attribut...
Java
UTF-8
917
2.078125
2
[]
no_license
package com.gcs.beans; import java.util.Date; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; import com.google.appengine.api.datastore.Key; @PersistenceCapable public c...
Markdown
UTF-8
1,495
2.8125
3
[]
no_license
# Consumir API con Laravel Ejercicio de consumir una API utilizando Laravel git clone https://github.com/JohnnyAndres/ConsumirAPILaravel.git cd ConsumirAPILaravel composer install npm install npm run dev php artisan serve Con el fin de desarrollar el ejercicio propuesto, consumir la API "https://jsonplaceholder...
JavaScript
UTF-8
1,492
2.90625
3
[]
no_license
const searchElement = document.querySelector('[data-city-search]') const searchBox = new google.maps.places.SearchBox(searchElement) searchBox.addListener('places_changed', () => { const place = searchBox.getPlaces()[0] if (place == null) return const latitude = place.geometry.location.lat() const longi...
C#
UTF-8
2,731
2.515625
3
[]
no_license
using System.Collections; using System.Collections.Generic; using UnityEngine; //ゲーム画面の弾丸を管理するクラス。 public class GameBulletsManager : SingletonMonoBehaviour<GameBulletsManager> { //要塞。 [SerializeField] Fortress _PlayerFortress; //弾薬のUIのプレハブ。 [SerializeField] private GameObject _BulletUIPrefab...
JavaScript
UTF-8
431
3.546875
4
[]
no_license
export class Bag { constructor() { this.dictionary = []; this.nElement = 0; } add(element) { this.dictionary.push(element); this.nElement++; return this; } isEmpty() { return this.nElement > 0; } contains(item) { return this.dictionary.includes(item); } /** * unpack the bag , and get...
Python
UTF-8
3,130
2.984375
3
[ "MIT" ]
permissive
#!/usr/bin/env python """ Aligns the largest dimension of a protein with the reference Z axis. Uses Ca only. .2017. Joao Rodrigues """ from __future__ import print_function import argparse import mdtraj as md import numpy as np ap = argparse.ArgumentParser(description=__doc__) ap.add_argument('pdb', help='Input P...
Ruby
UTF-8
1,500
2.6875
3
[ "MIT" ]
permissive
# # Loads the Pivotal-Git configuration file # # - config_path is the path to the pivotal-git configuration file # This loads the file. Throws an error if a key (such as api_token, path, id) # is missing. Check #general_error_message for more info # module PGit class Configuration def self.default_options ...
Java
UTF-8
2,981
2.171875
2
[]
no_license
package com.shinetech.mvp.network.UDP.bean.orderBean; import android.text.TextUtils; import com.shinetech.mvp.network.UDP.bean.BaseVo; /** * Created by ljn on 2017-12-20. */ public class MaintenanceOrderProgress extends BaseVo{ /** * 流程名称 */ private String progressName; /** * 处理人 ...
Java
UTF-8
6,141
2.46875
2
[]
no_license
package com.example.lesson41_petstore_swagger.service.serviceSpringDataJPA; import com.example.lesson41_petstore_swagger.aggregators.PetAggregator; import com.example.lesson41_petstore_swagger.entity.*; import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.a...
Java
UTF-8
1,218
2.109375
2
[]
no_license
package com.faishalbadri.hijab.ui.verify_code; import com.faishalbadri.hijab.repository.verify_code.VerifyCodeDataResource.VerifyCodeGetCallback; import com.faishalbadri.hijab.repository.verify_code.VerifyCodeRepository; import com.faishalbadri.hijab.ui.verify_code.VerifyCodeContract.VerifyCodeView; /** * Created by...
Java
UTF-8
2,181
2.65625
3
[]
no_license
package com.company.tradingSystem.stock.junit; import com.company.tradingSystem.SSSMException; import com.company.tradingSystem.factories.StockFactory; import com.company.tradingSystem.stock.PreferredStock; import junit.framework.TestCase; import java.util.Date; public class PreferredStockTest extends TestCase { ...
Java
UTF-8
286
1.679688
2
[]
no_license
package pl.kompikownia.pksmanager.security.infrastructure.namemapper; public class TokenFieldNames { public static final String HEADER_FIELD = "USER_CONTEXT"; public static final String AUTHORITIES_KEY = "permissions"; public static final String TOKEN_PREFIX = "Bearer"; }
Python
UTF-8
892
4.53125
5
[ "MIT" ]
permissive
""" This is a sample program to read in a file from the disk. In this example we keep track of the number of 1s, 0s and ''s """ # Import our system module import sys # Check for command line arguments (Our filename) if len(sys.argv) < 2: print "Usage: %s <tape filename>"%sys.argv[0] sys.exit(0) # Define ...
C++
UTF-8
1,250
3.53125
4
[]
no_license
// Given numRows, generate the first numRows of Pascal's triangle. // For example, given numRows = 5, // Return // [ // [1], // [1,1], // [1,2,1], // [1,3,3,1], // [1,4,6,4,1] // ] //https://leetcode.com/problems/pascals-triangle/description/ #include <vector> #include <queue> #include <string> #inclu...
Shell
UTF-8
8,425
2.546875
3
[ "Unlicense" ]
permissive
# Path to your oh-my-zsh installation. export ZSH="${HOME}/.dotfiles/oh-my-zsh" XDG_CONFIG_HOME="$HOME/.config" XDG_CACHE_HOME="$HOME/.cache" ZSH_CONFIG=~/.dotfiles/rcfiles/zsh # 10ms for key sequences KEYTIMEOUT=1 # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "ran...
PHP
UTF-8
2,091
2.90625
3
[]
no_license
<?php $users[] = array('username' => 'info@test.be', 'salt' => '56a', 'password' => '95df3d1cc1f45f250ce23bed4dfe3e35997c959f3226a1beec088a0d9dac945607eb15388708a79460b9331701d5fa319f0aec39991d9fafc20a61238d876f3f'); $users[] = array('username' => 'test@kdg.be', 'salt' => 'azerty', 'password' => '9cdd280f56b...
Python
UTF-8
724
3.515625
4
[]
no_license
from stack import Stack import operator OPS = { "+": operator.add, "-": operator.sub, "*": operator.mul, "/": operator.itruediv } def do_math(token, op1, op2): return OPS[token](int(op1), int(op2)) def calculate_postfix(input_expression): token_list, operand_stack = input_expression.split()...
Swift
UTF-8
1,118
2.9375
3
[]
no_license
// // ViewController.swift // Dicee // // Created by Rudi Wijaya on 18/02/19. // Copyright © 2019 Rudi Wijaya. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var dice1: UIImageView! @IBOutlet weak var dice2: UIImageView! let diceImages : [String] = [...
PHP
UTF-8
1,187
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace AL\PhpWndb\Tests\Model\Relations; use AL\PhpWndb\Model\Relations\RelationPointerInterface; use AL\PhpWndb\Model\Relations\RelationPointerFactory; use AL\PhpWndb\Model\Relations\RelationPointerTypeEnum; use AL\PhpWndb\Tests\BaseTestAbstract; use AL\PhpWndb\PartOfSpeechEnum; cl...
Java
UTF-8
328
2.09375
2
[]
no_license
package com.example.rabbitmqmsg.model.dto; import lombok.Getter; import lombok.Setter; @Getter @Setter public class MessageModelDto { String title; String body; public MessageModelDto() { } public MessageModelDto(String title, String body) { this.title = title; this.body = body; ...
C++
UTF-8
1,169
2.71875
3
[ "MIT" ]
permissive
#include<iostream> #include<iomanip> using namespace std; int n; double p_not[10001] , p_have[10001]; double f[10001]; double g[10001]; double F(int i , int j) { return 1 + f[i - j] + p_have[j] * g[j]; } double G(int i , int j) { double prob = p_have[j] / p_have[i]; return 1 + prob * (g[...
Java
UTF-8
135
1.671875
2
[]
no_license
package com.feng.car.view.slidebanner.listener; @Deprecated public interface OnBannerClickListener { void OnBannerClick(int i); }
C#
UTF-8
1,793
3.140625
3
[ "MIT" ]
permissive
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace Xero.Api.Infrastructure.RateLimiter { public class RateLimiter : IRateLimiter { private readonly TimeSpan _duration; private readonly int _qty; private re...
Swift
UTF-8
1,387
3.078125
3
[ "MIT" ]
permissive
// // Constructors.swift // // // Created by Giovanni Noa on 5/9/20. // import Foundation /// Codable struct, used for serializing JSON from the Constructors endpoint. public struct Constructors: Codable { public let data: ConstructorsData private enum CodingKeys: String, CodingKey { case data = ...
Swift
UTF-8
12,328
2.59375
3
[]
no_license
// // SceneAutomationFlowConfigurator.swift // Aether // // Created by Bruno Pastre on 26/10/20. // Copyright © 2020 Bruno Pastre. All rights reserved. // import UIKit import MapKit import HomeKit protocol SceneAutomationFlowConfiguratorDelegate: AnyObject { func userInputDidChange(_ view: SceneAutomationFlow...
C++
UTF-8
548
2.625
3
[]
no_license
#include<bits/stdc++.h> using namespace std; int main() { long long int t,c=0,w,i,x,y; cin>>t; while(t--) { c++; cin>>w; if(w%2!=0) { cout<<"Case "<<c<<": "<<"Impossible"<<endl; continue; } for(i=2; i<w; i+=i) { ...
Python
UTF-8
8,569
2.6875
3
[ "MIT" ]
permissive
import sys import warnings if not sys.warnoptions: warnings.simplefilter('ignore') import numpy as np import re import random from scipy.linalg import svd from operator import itemgetter from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.decomposition import NMF, LatentDirichletAllocation fr...
Python
UTF-8
1,652
3.34375
3
[]
no_license
import pandas as pd from sklearn.preprocessing import LabelEncoder from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from sklearn.metrics import classification_report from sklearn.neighbors import KNeighborsClassifier #Import Data df = pd.read_csv("./data/heart.csv"...
Markdown
UTF-8
3,312
2.953125
3
[]
no_license
--- layout: camino2018 trip: camino2018 title: Camino Stage 12 --- # On the Camino, Day 12: San Juan de Ortega to Burgos ### 516.5 km to Santiago de Compostela Since there were about twenty people packed into one room at the *parroquial* albergue in San Juan, every time I woke up there was at least one person snorin...
PHP
UTF-8
597
2.59375
3
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
<?php /** * Read the message body * * @phpstub * * @param resource $imap_stream * @param int $msg_number * @param int $options * * @return string Returns the body of the specified message, as a string. */ function imap_body($imap_stream, $msg_number, $options = false) { } /** * Read the message body * * ...
Python
UTF-8
3,486
2.8125
3
[ "MIT" ]
permissive
import scipy.io.wavfile as wav from python_speech_features import mfcc import numpy as np import os import pandas as pd CLASSICAL_DIR = "C:\\Users\\Manojit Paul\\Music\\Classical\\" METAL_DIR = "C:\\Users\\Manojit Paul\\Music\\Metal\\" JAZZ_DIR = "C:\\Users\\Manojit Paul\\Music\\Jazz\\" POP_DIR = "C:\\Users\\Manojit ...
Java
UTF-8
308
1.890625
2
[]
no_license
package com.mtech.image.repository; import org.springframework.data.jpa.repository.JpaRepository; import com.mtech.image.model.UserToken; public interface UserTokenRepository extends JpaRepository<UserToken, Long> { UserToken findByToken(String token); UserToken findByIpAddress(String ipAddress); }
C++
UTF-8
1,439
2.59375
3
[]
no_license
//http://lightoj.com/volume_showproblem.php?problem=1011 #include<stdio.h> #include<iostream> #include<vector> using namespace std; int cost[20][20]; int f[(1<<18) + 5][20]; int n; void print(){ for(int i=0;i<(1<<n);i++){ for(int j=1;j<=n;j++){ cout << f[i][j] << " "; } co...
Markdown
UTF-8
3,438
3.015625
3
[]
no_license
--- title: Java 多线程随笔 copyright: true date: 2018-03-23 22:57:55 tags: - Java - 多线程 categories: Java --- # Java多线程随笔 最近匆匆的看了一下多线程的知识,其实在我们现在的系统中,我只在一个地方用了多线程,异步刷缓存的时候使用到了。其它地方并没有使用。这个可能跟公司局限性业务有关系,毕竟大家都听过一句话,20%的人掌握着80%的财富。而我们服务的就是那20%里面的一部分。 <!--more--> ## 多线程的产生 硬件的摩尔定律已经被打破了,所以现在多核处理器下使用多线程那是大大的提高效率啊。毕竟...
Java
UTF-8
266
2.5
2
[]
no_license
public class P03{ public static void main(String[] args){ int input = 600851475143, highest=0; for(int i=2;i<=input;i++){ if(input==1){ break; } if(num%i==0){ num/=i; i--; highest=i; } } System.out.println(highest); //6857 } }
Python
UTF-8
2,813
2.96875
3
[ "MIT" ]
permissive
"""This module includes a series of test cases to confirm the validity of tool_box.py UnitTests(unittest.TestCase) -- this class is a unit test which includes 5 different test for tool_box.py """ import unittest import pandas as pd from covid_wa import tool_box import sys sys.path.append('..') data = pd.read_csv("da...
Python
UTF-8
966
3.84375
4
[]
no_license
Excel Column Title Problem Description Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB Problem Constraints 1 <= A <= INTMAX Input Format First and only argument of input contai...
JavaScript
UTF-8
1,509
2.6875
3
[ "MIT" ]
permissive
'use strict'; function getRank(room) { // hasHadMentionsAtSomePoint (and the equivalent for unreadItems) is used // to ensure that rooms dont jump around when mentions is updated after a // user visits a room and reads all the mentions. // hasHadMentionsAtSomePoint is not available on the server, so we have a ...
Swift
UTF-8
3,273
2.890625
3
[]
no_license
// // UIImage+Clip.swift // Rental // // Created by 吴述军 on 18/09/2017. // Copyright © 2017 Brant. All rights reserved. // import Foundation import UIKit extension UIImage { // 点击查看详情 // rect 对应的是图片上的像素 func clip(rect: CGRect) -> UIImage? { let subImageRef = self.cgImage?.cropping...
PHP
UTF-8
2,417
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace yii\web; use Yii; /** * View represents a view object in the MVC pattern. * * View provides a set of methods (e.g. [[render()]]) for rendering purpose. ...
Java
UTF-8
4,036
3.3125
3
[]
no_license
package mondoFantastico; public class Main { public static void main (String[] args) { Character[] characters = new Character[5]; String[] namesArray = {"Aron", "Lurtz", "Tunk", "Caio", "Boris", "Xi"}; String[] clanNamesArray = {"Calister", "Xilint", "Arrows", "della Bernarda", "Scarlett", "Bar...
Java
GB18030
1,009
3.5
4
[]
no_license
---------------------------- ȶ | ---------------------------- # ͨ:Ƚȳ, # ȶ * ˳˳޹ * ȼ # ײʹöʵ ---------------------------- ʵ | ---------------------------- /** * * ȶ * @author KevinBlandy * * @param <E> */ public class PriorityQueue<E extends Comparable<E>> { private MaxHeap<E> maxHeap; pub...
Markdown
UTF-8
729
2.734375
3
[]
no_license
# css-layout-example 收集实用的css小技巧 ##01_arrow-box 使用flex布局实现底部箭头的弹出窗口。 #### 参考资料 * [一个完整的Flexbox指南](http://www.w3cplus.com/css3/a-guide-to-flexbox-new.html) ## 02_webapp-sprites-rem 使用rem实现webapp的背景图片的自适应。 #### 参考资料 * [从网易与淘宝的font-size思考前端设计稿与工作流](http://www.codeceo.com/article/font-size-web-design.html) * [移动端web app...
JavaScript
UTF-8
3,104
2.65625
3
[]
no_license
exports.validateUser = (userSignInInfo, allUsers) => { var availableUser = false; var passwordiÍnDB = ''; var validateChecker = { users: [], success: false, message:'', username:'' } for (let user of allUsers) { if (userSignInInfo.username === user....
C#
UTF-8
2,630
3.203125
3
[ "MIT" ]
permissive
using System.Collections.Generic; using System.Linq; using Xunit; namespace Demo.LearnByDoing.Tests.Algorithms { /// <summary> /// Z-Algorithm by Tusha Roy /// https://www.youtube.com/watch?v=CpZh4eF8QBw&list=RDCpZh4eF8QBw&start_radio=1 /// /// I understand the concept but haven't come up with th...
Java
UTF-8
1,286
2.375
2
[]
no_license
package com.vebinar.dao; import com.vebinar.entyty.User; import com.vebinar.mapper.UserMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Repository; import java.util.List; //@Repository("userDao") @Repositor...
C#
UTF-8
2,599
2.921875
3
[]
no_license
using System; namespace Cooperativeness.OBA.Word.AddIns.FrameWork.MetaData { /// <summary> /// 定义Long类型的值对象 /// </summary> public class LongValue : SimpleValue<long> { #region 构造方法 public LongValue() { } public LongValue(LongValue source) : base...
JavaScript
UTF-8
575
3.40625
3
[ "MIT" ]
permissive
let converter = (input) => { let uppercase = true; let convertedString = ""; for (let i = 0; i < input.length; i++) { let character = input.charAt(i); if (uppercase === true) { character = character.toUpperCase(); convertedString = convertedString + character; uppercase = false; } ...
Python
UTF-8
1,221
2.703125
3
[ "MIT" ]
permissive
import sys import os filelist = sys.argv[1] def get_next_path(filelist): path = "" for line in open(filelist): if not line.startswith("#"): path = line.split()[-1] break print("Got next path: " + path) return path def transfer(path): m5cmd = "m5copy vbs://:2621/"+p...
Python
UTF-8
1,279
2.640625
3
[]
no_license
from __future__ import unicode_literals from django.test import RequestFactory from unittest import TestCase from ..views import ( is_image_block, EpubExporterView, depth_from_ai) class DummyBlock(object): def __init__(self, block_name): self.block_name = block_name @property def content_ob...
Python
UTF-8
804
2.890625
3
[]
no_license
import sys from typing import List, Dict class Solution: def min_cost(self, costs: List[List[int]]) -> int: return self.min_cost_internal(costs, 0, -1, dict()) def min_cost_internal(self, costs: List[List[int]], i: int, prev_j: int, cache: Dict[tuple, int]): if i >= ...
Java
UTF-8
427
2.5625
3
[]
no_license
package br.edu.ifpb; public class Diretor extends Empregado { private String bonus; public Diretor() { this.bonus = "Departamento"; } public Diretor(String nome, int idade, double salario, String bonus) { super(nome, idade, salario); this.bonus = bonus; } public Diret...
Java
UTF-8
169
1.914063
2
[]
no_license
package com.kodilla.good.patterns.challenges.food2door; public interface OrderRepository { void createOrder(String vendorName, String productName, int quantity); }
PHP
UTF-8
2,855
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Dashboard; use App\Http\Controllers\Controller; use App\Http\Requests\QuestionRequest; use App\Models\QuestionAndAnswer; use Illuminate\Http\Request; class QuestionAndAnswerController extends Controller { public function __construct() { $this->middleware(['permis...
Markdown
UTF-8
1,171
2.734375
3
[]
no_license
Monitor Services =============== Getting started -------------- This is a demo UI for basic service monitoring. The UI is built using Typescript and Express and is backed by a backend service, repo [here](https://github.com/unicodr/vertx-monitoring-service), which is built using Vert.x to expose a HTTP/JSON web API to...
Markdown
UTF-8
1,274
3.046875
3
[]
no_license
# Cleaning-and-Getting-Data-Project Cleaning and Getting Data Project The goal of this project is to prepare tidy data that can be used for later analysis. This repository has the following: 1) a tidy data set as described below, 2) a code book that describes the variables, the data, and any transformations or wor...
TypeScript
UTF-8
141
2.9375
3
[]
no_license
let n1:any=5; let s1:string=n1; console.log(s1); let s2:string=<string>n1; console.log(s2); let s3:string=n1 as string; console.log(s3);
PHP
UTF-8
2,327
2.578125
3
[]
no_license
<?php namespace Casa\Front2Bundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * GruppoCaratteristica */ class GruppoCaratteristica { /** * @var integer */ private $id; /** * @var string */ private $gruppo; /** * @var string */ private $icona; /** ...
Python
UTF-8
631
3.171875
3
[]
no_license
n = int(input()) num_list = list(map(int,input().strip().split())) s = '' for i in num_list: s += str(i) def Permutation(n): ss = '' for i in range(1,n+1): ss += str(i) # write code here if ss == "": return [] res = [] def backtrack(ss,tmp): if not ss and tmp not in ...
SQL
UTF-8
2,033
2.671875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.13, for Win64 (x86_64) -- -- Host: localhost Database: fumetto -- ------------------------------------------------------ -- Server version 8.0.13 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!...
Markdown
UTF-8
646
2.65625
3
[]
no_license
## celeb_keras The code will be coming soon. #### Description This model is similar to the 02_celeb_transfer_learning but the bottlenecks are now used as a regularizer. Also the code is rewritten in Keras. #### Implementation The code was written in Keras, but the backend remained TensorFlow #### Preprocessing 1. ...
C
UTF-8
1,202
3.328125
3
[]
no_license
/* * @Author: your name * @Date: 2021-07-07 16:44:48 * @LastEditTime: 2021-07-07 16:44:48 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: \the-beauty-of-programming\src\ch03_structure\c3-6.c */ Int CalculateStringDistance(string strA, int pABegin, int pAEnd, string st...
Shell
UTF-8
2,251
2.609375
3
[]
no_license
#!/bin/bash export tmp_conntrack_path=/tmp/ct/$RANDOM filepath=$(pwd) chmod -R 777 ./* mkdir -p $tmp_conntrack_path chmod -R 777 /tmp/ct chmod -R 777 $tmp_conntrack_path cd ./libnfnetlink-1.0.0/ ./configure --prefix=$tmp_conntrack_path --host=arm-linux CC=/opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-...
C++
UTF-8
540
2.703125
3
[]
no_license
#include <iostream> #include "intervallumhalmaz.hpp" using namespace std; int main() { // IntervallumHalmaz ivh(5, 20); IntervallumHalmaz ivh(16); int mettol, meddig; int N; cin >> N; for (int i = 0; i < N; ++i) { cin >> mettol >> meddig; ivh.IntervallumHalmazba(mettol, meddig)...
Shell
UTF-8
1,113
2.96875
3
[]
no_license
#!/bin/sh source config.sh data_dir=/data/reddit # Downloading from offsite server with torrent of data #for year in $(seq 2005 2017); do #for month in $(seq -f "%02g" 1 12); do #if [ ! -f "$data_dir"/RC_"$year"-"$month" ]; then #sshpass -p "$scp_pass" \ #rsync -r -v --progress...
Markdown
UTF-8
2,739
2.84375
3
[]
no_license
# Disclaimer This is for informational/educational purposes only. This was put together to demonstrate an insecurity in the tool, in order for a fix to be verified by the vendor. # Info Tested on Cribl v1.5.0 - Previous versions not tested but likely vulnerable. A valid JWT token can be transfered from and inject...
PHP
UTF-8
632
2.546875
3
[]
no_license
<?php if(isset($_POST['delete'])) { require('dbh.inc.php'); $delete = $_POST['delete']; $errors = ['connectionError' => '', 'queryError' => '', 'requestError' => '']; $dbh = new Dbh; $conn = $dbh->connect(); $errors['connection'] = $dbh->connError; if($conn) { try { ...
Java
UTF-8
2,457
2.203125
2
[]
no_license
package com.ibm.pixogram.models; import org.springframework.data.mongodb.core.mapping.Document; @Document(collection = "allfilesdetails") public class UploadFileResponse { private String description; private String title; private String tags; private String fileName; private String fileDownloadUri; ...
Java
UTF-8
561
2.453125
2
[]
no_license
package application.model; //factoring for many support of storage, example text file, db or other //in according to Password entit public class DAOPasswordFactory implements DAOFactory<Password>{ private String sql; @Override public DAO<Password> get(String type) { switch (type) { case "mysql" : re...
JavaScript
UTF-8
1,081
2.609375
3
[]
no_license
import moment from 'moment'; const intlNumberFormatter = new Intl.NumberFormat([], {minimumFractionDigits: 2, maximumFractionDigits: 5}); export function toDate(date) { if (!date) { return 'n/a'; } return moment.utc(date).format('YYYY-MM-DD'); } export function toNumber(number) { return intlN...
Java
UTF-8
848
2.203125
2
[ "LicenseRef-scancode-free-unknown", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain", "EPL-1.0" ]
permissive
package com.b2international.snowowl.snomed.api.impl.domain.expression; import com.b2international.snowowl.snomed.api.domain.expression.ISnomedExpressionAttribute; import com.b2international.snowowl.snomed.api.domain.expression.ISnomedExpressionAttributeValue; import com.b2international.snowowl.snomed.api.domain.expres...
Java
UTF-8
2,614
1.71875
2
[]
no_license
/* * Copyright 2014 Michael Legart. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
PHP
UTF-8
876
2.546875
3
[]
no_license
<?php if(!isset($_GET["entity"])) { header("Location: entitySelect.php"); exit; } $type = 0; // video category or album category if($_GET["entity"] == "vid") { $type = 4; } else if($_GET["entity"] == "album") { $type = 9; } else { header("Location: entitySelect.php"); exit; } require_onc...
C++
UTF-8
778
2.859375
3
[]
no_license
#pragma once #include "packages/image_codec/include/image_encoder_interface.h" #include "png.h" #include <vector> namespace image_codec { /// /// PngEncoder class that encodes Images into png format /// class PngEncoder : public ImageEncoder { public: /// /// Creates a PngEncoder object that can create comp...
C#
UTF-8
2,433
2.625
3
[]
no_license
using AutoMapper; using Conf.Api.Models; using Conference.Domain; using Conference.Services; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Conf.Api.Controllers { [Route("api/[controller]")] [ApiController] public ...
Python
UTF-8
251
3.671875
4
[]
no_license
def linear_search(search_array,element_to_search): low = 0 high = len(search_array) - 1 while (low <= high): if search_array[low] == element_to_search: return low else: low = low + 1 return -1
Python
UTF-8
1,510
3.296875
3
[]
no_license
import random def get_remaining_distance(pos,goal): return goal - pos def get_remaining_time(start,goal,speed): distance = get_remaining_distance(start,goal) return distance/speed goal = 2525 rem_time = get_remaining_time(2400,goal,5) print(rem_time) print(goal/rem_time) #horses = [(120,60),(60,90)] hor...
Java
UTF-8
5,416
2.234375
2
[]
no_license
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package estatistica; import friends.FriendDao; import java.io.IOException; import java.io.PrintWriter; import java.sql.ResultSet; import java.sql.SQLException; import java.text.DateFormat; import java.text.ParseExceptio...
Java
UTF-8
345
3.265625
3
[]
no_license
public class Latihan //nama class yg harus sama dengan nama filenya { //di bawah ini adalah method utama yang akan dieksekusi oleh java public static void main (String[] args) { int age = 21; //inisialisasi variabel age dengan tipe data integer System.out.println(age > 50 ? "You are old" : "You are young"); //c...
C++
UTF-8
10,421
2.765625
3
[ "MIT" ]
permissive
#include <iostream> #define construct typedef struct null {}; namespace Bitwise { template<int First, int Second> struct And { static constexpr int result = First & Second; }; template<int First, int Second> struct Or { static constexpr int result = First | Second; }; template<int First, int Second...
Markdown
UTF-8
7,319
2.59375
3
[]
no_license
# serverLess技术调研 # 摘要 ## serverless > **广义的 Serverless 是指:构建和运行软件时不需要关心服务器的一种架构思想。** 虽然 Serverless 翻译过来是 “无服务器”,但这并不代表着应用运行不需要服务器,而是开发者不需要关心服务器。**而基于 Serverless 思想实现的软件架构就是 Serverless 架构。** > > from : [到底什么是 Serverless? - 知乎 (zhihu.com):https://zhuanlan.zhihu.com/p/404236938](https://zhuanlan.zhihu.com/p/404236938)...
Java
UTF-8
1,205
2.578125
3
[]
no_license
package model; import java.util.HashMap; /** * * @author victo */ public class Tickets { private String id; private ticketOffice ticketOffice1; private Room room; private Projections pro; private Movie mov; public Tickets(String num, ticketOffice ticketOffice2, Room room1, Projections...
Python
UTF-8
468
2.609375
3
[ "LicenseRef-scancode-public-domain", "Unlicense" ]
permissive
from gnome.spills.initializers import InitRiseVelFromDist from gnome.utilities.distributions import UniformDistribution import pytest def test_init_InitRiseVelFromDist(): ud = UniformDistribution(1,1) rise_vel = InitRiseVelFromDist(ud) assert isinstance(rise_vel,InitRiseVelFromDist) def test_badDist_In...
Python
UTF-8
1,210
2.71875
3
[]
no_license
import gdal import sys import os import glob2 import csv import time start_time = time.time() # this allows GDAL to throw Python Exceptions gdal.UseExceptions() # Script will recursively go through subdirectories and report information about each tif image. If there is # a corrupt image it will add an entry to a csv. ...
Java
UTF-8
2,349
3.625
4
[]
no_license
// Prof. Lixin Tao, Pace University, September 9, 2003 // A class to generate all r combination sets of base set // {0, ..., n-1} in lexicographic order, where n and r are // positive integers, and r <= n public class CombinationGenerator { private int n; // Size of the base set private int r; ...
JavaScript
UTF-8
1,492
2.671875
3
[]
no_license
//javascript of index.html const ipc = require('electron').ipcRenderer; const selectDirBtn = document.getElementById('select-directory'); const selectFileBtn = document.getElementById('select-file'); const saveFileBtn = document.getElementById('save-file'); const infoDialogBtn = document.getElementById('info...
Java
UTF-8
312
1.953125
2
[]
no_license
package cache.file.v2; /** * * A DefaultExector should be thread-safe. * * @author jiangzhao * @date Mar 21, 2017 * @version V1.0 */ public class DefaultExecutor implements Executor { @Override public void execute(Context context) { // TODO Auto-generated method stub } }
Python
UTF-8
1,139
3.546875
4
[]
no_license
def combinations(iterable, r): # combinations('ABCD', 2) --> AB AC AD BC BD CD # combinations(range(4), 3) --> 012 013 023 123 pool = tuple(iterable) n = len(pool) if r > n: return indices = range(r) yield tuple(pool[i] for i in indices) while True: for i in reversed(rang...
Markdown
UTF-8
3,069
2.734375
3
[ "LicenseRef-scancode-unknown-license-reference", "CC-BY-4.0", "LicenseRef-scancode-public-domain", "MIT" ]
permissive
--- updated: 2021-03-09 category: 🛡️ Web Gateway difficulty: Advanced --- # Block file uploads to Google Drive You can use Cloudflare Gateway and the Cloudflare WARP client application to prevent enrolled devices from uploading files to an unapproved cloud storage provider. **🗺️ This tutorial covers how to:** * C...
Python
UTF-8
140
3.609375
4
[]
no_license
numer = 5 denom = 0 if denom != 0: print(numer/denom) elif numer >= 10: print('8') else: print('Division by zero not allowed')
Shell
UTF-8
563
3.296875
3
[]
no_license
#!/bin/bash SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) SYMFONY="$SCRIPT_DIR/../../Symfony" CONSOLE="$SYMFONY/bin/console" # mysql -u [user] -p -sNe 'SELECT username_canonical FROM fos_user;' [database] pushd "$SYMFONY" while read name do $CONSOLE fos:user:demote "$name" ROLE_READER $CONSOLE fos:...
TypeScript
UTF-8
4,782
2.734375
3
[ "ISC", "MIT" ]
permissive
import * as Phaser from 'phaser'; import { HEIGHT, WIDTH } from '../../config'; import { subscribeToExit } from '../../utils/menu'; const BALL_SPEED = 200; const LIVES = 3; const clamp = (val: number, min: number, max: number) => Math.max(min, Math.min(max, val)); type GameObjectWithPhysics = Phaser.GameObjects.Sh...
Python
UTF-8
515
2.953125
3
[]
no_license
from solvers.solver_process import SolverProcess from ciphers.caesar import * class CaesarSolver(SolverProcess): """ Automatic key finder for the Caesar Cipher""" def __init__(self): super(CaesarSolver, self).__init__("Caesar Cipher") def run(self, text): """ Run the automatic key findin...
C#
UTF-8
2,158
2.65625
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Democracy.Definitions; using Democracy.Government; using Democracy.Government.GeneralImp; namespace Democracy.World.NorthAmerica.Canada { public class Duplicitous : Politician, IPolitician { private IRiding ri...