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 | 450 | 2.234375 | 2 | [] | no_license | package com.example.studysupport;
import android.util.Log;
public class Mokuhyou {
// ファイルから目標を読み込み出力する
String getMokuhyo() {
String text;
MokuhyoOut out = new MokuhyoOut();
text = out.readFile();
return text;
}
// ファイルに目標を保存する
void setMokuhyo(String text){
... |
PHP | UTF-8 | 9,015 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace Bishopm\Churchnet\Http\Controllers\Api;
use Bishopm\Churchnet\Models\Roster;
use Bishopm\Churchnet\Models\Individual;
use Bishopm\Churchnet\Models\Rosteritem;
use Bishopm\Churchnet\Models\Rostergroup;
use Bishopm\Churchnet\Models\Service;
use Bishopm\Churchnet\Models\Society;
use Bishopm\Churchnet\Htt... |
Java | UTF-8 | 1,772 | 2.5625 | 3 | [] | no_license | package br.edu.ifba.util;
import javax.xml.stream.XMLEventReader;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.events.Attribute;
import javax.xml.stream.events.StartElement;
import javax.xml.stream.events.XMLEvent;
import java.io.InputStream;
import java.... |
Java | UTF-8 | 467 | 3.203125 | 3 | [] | no_license | package dynamicprogramming;
public class MaxProfit {
public int maxProfit(int[] prices) {
int account = 0;
int m = 0, t = 0;
for (int i = 0; i < prices.length; i++) {
if (m != 0 && prices[i] < prices[i + 1]) {
m = prices[i];
}
if (prices[... |
Markdown | UTF-8 | 3,094 | 2.578125 | 3 | [
"MIT"
] | permissive | # TODO
## Current tasks
- Improve the UI.
It could be more like wizard style?
Especially choosing disk may need to provide more info.
- CPU rating
Use hardinfo and provide the cpu speed in the triage screen
- Content on google drive and version control
- "patch system" needs to set the owner and group ID
-... |
C++ | UTF-8 | 580 | 2.65625 | 3 | [] | no_license | #include<stdlib.h>
#include<vector>
#include<unordered_set>
#include<string>
#include<string.h>
#include<algorithm>
#include<math.h>
#include<map>
using namespace std;
class Solution {
public:
int removeDuplicates(int A[], int n) {
// Start typing your C/C++ solution below
// DO NOT write int main(... |
Markdown | UTF-8 | 1,109 | 3.03125 | 3 | [] | no_license | # ReadMe:s for the respective folders are in said folders, as for the other three projects...
## Starry Sky
This is a project I created while exploring the turtle library in Python. It isn't any sort of advanced code, but rather an attempt at using Python to create a sort of artful animation.
## 100 Innovations proje... |
Java | UTF-8 | 582 | 2.140625 | 2 | [
"MIT"
] | permissive | package core.config.json.messages;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@JsonIgnoreProperties(ignoreUnknown = true)
public class SyntaxMessagesLRConfig {
@JsonProperty("default")
private String defaultMessa... |
SQL | UTF-8 | 526 | 3.890625 | 4 | [] | no_license | DELIMITER $$
DROP FUNCTION IF EXISTS qtx_plante$$
CREATE function qtx_plante(elevage_Id INT,plante_Id INT)
RETURNS int(10)
DETERMINISTIC
BEGIN
DECLARE quantity int(10);
SELECT alimentation.qtx*elevage.capacite into quantity
from plante
INNER JOIN alimentation
ON plante.idplante = alimentation.fkplante
INNER JOIN anima... |
JavaScript | UTF-8 | 985 | 3.1875 | 3 | [] | no_license | "use strict";
// Normal inheritance Program
// import {Shape} from './Shape';
// import {Circle} from './Circle';
// import { Rectangle } from './Rectangle';
Object.defineProperty(exports, "__esModule", { value: true });
// let myShape=new Shape(10,12);
// console.log(myShape.getInfo());
// let myCircle=new Circle(5,10... |
Java | UTF-8 | 2,276 | 3.3125 | 3 | [] | no_license | package annoj.util;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
/**
* Utility class used for finding classes in a given package.
*
*
* @author Akos Tajti
*/
public class DirectoryTraverser {
/**
... |
Java | UTF-8 | 236 | 1.757813 | 2 | [] | no_license | package dao;
import java.sql.SQLException;
import model.Commande;
public interface DaoCommande extends Dao<Commande, Integer> {
public String sysDate () throws ClassNotFoundException, SQLException, SQLException;
}
|
C# | UTF-8 | 1,589 | 2.6875 | 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.Threading.Tasks;
using System.Windows.Forms;
using Libreria;
using System.Reflection;
namespace Presentacion {
public partial class Form1 : Form ... |
Java | UTF-8 | 1,100 | 2.046875 | 2 | [] | no_license | package com.moonturns.batuhanaydoner.whereareyoutrump.FirebaseDatabase;
import io.realm.internal.Keep;
@Keep
public class Leader {
private String player_uid;
private String leader_username;
private String leader_score;
private String reward;
private String week;
public String getPlayer_uid()... |
Java | UTF-8 | 446 | 1.921875 | 2 | [] | no_license | package J6Store.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import J6Store.dao.RoleDAO;
import J6Store.entity.Role;
import J6Store.service.RoleService;
@Service
public class RoleServiceImpl implements ... |
Python | UTF-8 | 415 | 2.96875 | 3 | [] | no_license | #!/usr/bin/env python
# -*- coding=utf-8 -*-
__author__ = "柯博文老師 Powen Ko, www.powenko.com"
import numpy as np
x = np.array([1, 2]) #numpy自動設定
print(x.dtype) # 輸出 "int64"
x = np.array([1.0, 2.0]) #numpy自動設定
print(x.dtype) # 輸出 "float64"
x = np.array([1, 2], dtype=np.int64) #設定為int64
pr... |
Markdown | UTF-8 | 661 | 3.296875 | 3 | [] | no_license | # HTML5 canvas constellation effect
## [Click here](https://m081779.github.io/constellation-effect/) to view the deployed version
### I have created a constellation effect of particles moving in a randomized pattern. The particles respond to mouse interaction by connecting lines to the mouse pointer when the mouse i... |
Markdown | UTF-8 | 2,993 | 3.03125 | 3 | [
"MIT"
] | permissive | ---
layout: post
title: 常微分方程模型
categories: 数学模型
description: 常微分方程模型
keywords: Matlab,数学模型
---
# 常微分方程模型
- 2011-A题 2018 偏微分方程模型
## 模型建立与解析解
$$
\frac{dy}{dx}=f(x,y)
$$
- 2016A, 2014A, 2007A, 2005A, 2003A, 1996A
### 案例1:凶杀案何时发生
到场死者体温,一个小时后死者体温,屋子的信息知道,问死亡时间?
- *方法一:考虑利用实验定律建立模型*
牛顿冷却定律:冷却速率与温度差成正比
$$
\frac{dT... |
Python | UTF-8 | 2,170 | 2.84375 | 3 | [] | no_license | import os.path
import sys
import re
import math
from datetime import datetime, timedelta, date
def open_file(file_name, action):
mode = action if os.path.exists(file_name) else 'w'
f = open(file_name, mode)
return f
def time_month(log, month):
date_filter = lambda x : x.month == month
return time... |
SQL | UTF-8 | 718 | 3.421875 | 3 | [] | no_license | #Trends in Startups
SELECT *
FROM startups;
SELECT COUNT(name)
FROM startups;
SELECT SUM(valuation)
FROM startups;
SELECT MAX(raised)
FROM startups;
SELECT MAX(raised)
FROM startups
WHERE stage = 'Seed';
SELECT MIN(founded)
FROM startups;
SELECT AVG(valuation)
FROM startups;
SELECT categor... |
Java | UTF-8 | 1,582 | 3.546875 | 4 | [] | no_license | /**
* @Title: FourOperations.java
* @Package huawei
* @Description: TODO
* @author Huaigui
* @date 2016年9月9日 下午3:43:18
* @version V1.0
*/
package huawei;
import java.util.Scanner;
import java.util.Stack;
/**
* @ClassName: FourOperations
* @Description: 四则运算
* 题目描述
约束:
pucExpression字符串中的... |
Python | UTF-8 | 1,205 | 2.984375 | 3 | [] | no_license | from typing import Any, Dict
import enum
class Tile:
@enum.unique
class TileType(enum.IntEnum):
BLOCKED = enum.auto()
HUB = enum.auto()
PARKING = enum.auto()
ROAD = enum.auto()
def __init__(self, row: int, column: int, type_: "Tile.TileType"):
self.row = row
... |
C++ | UTF-8 | 1,639 | 2.65625 | 3 | [] | no_license | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <algorithm>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <map>
#include <set>
#include <fstream>
#include <queue>
#include <stack>
using namespace std;
typedef pair<i... |
C# | UTF-8 | 1,129 | 2.96875 | 3 | [] | no_license | using System.Collections.Generic;
#if NET_4_6
using System.Collections.Concurrent;
#else
using UltimateTerrains.Concurrent.NET3x;
#endif
namespace UltimateTerrains
{
internal sealed class ConcurrentListPool<T>
{
private readonly ConcurrentStack<List<T>> items;
public ConcurrentListPool(int in... |
Python | UTF-8 | 11,485 | 3.671875 | 4 | [] | no_license | """
CART decision tree algorithm with pre/post pruning implemented.
TODO: Clean up multi-line lambda function (not pep8 standards)
"""
import pandas as pd
import numpy as np
import math
from collections import Counter
from TreeNode import TreeNode
class DecisionTreePruning(object):
"""Classifier decision tree w... |
Markdown | UTF-8 | 1,461 | 2.828125 | 3 | [] | no_license | ---
title: "Aloia CMS 3.3.0: Model events"
date: 2020-12-24 14:00:00 +0200
permalink: /articles/3-3-model-events
summary: |
Aloia CMS 3.3.0 brings you even more ways to build upon and extend this CMS for your existing Laravel application.
We're introducing model events.
These help you to very easily per... |
Swift | UTF-8 | 3,012 | 3.453125 | 3 | [] | no_license | //
// WorldClockView.swift
// Timer
//
// Created by Ibrahim Syed on 1/31/20.
// Copyright © 2020 🅱️ Productions. All rights reserved.
//
// I, Ibrahim Syed, did the World Clock. This is pretty straightforward and taught me a lot about the
// way SwiftUI works. It starts by automatically adding a row that indicat... |
C++ | UTF-8 | 1,464 | 3.34375 | 3 | [] | no_license | #include<stdio.h>
#include<iostream>
#include<stdio_ext.h>
using namespace std;
struct promedio
{
float calif1, calif2, calif3, prom;
};
struct alumnos
{
char nombre[20], sexo[20];
int edad;
struct promedio prom_alu;
}
alumno1;
int main()
{
system("clear");
__fpurge(stdin);
cout<<"Escrib... |
Java | UTF-8 | 4,544 | 2.15625 | 2 | [] | no_license | package com.taiji.emp.res.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jack... |
Python | UTF-8 | 743 | 3.453125 | 3 | [] | no_license | # Create dp table of len(arr). Initialize it to 0. dp[i] = max(dp[i-1] + arr[i], arr[i]); return max(dp)
class Solution:
def maxSubArray(self, nums: List[int]) -> int:
dp = [nums[0]]*len(nums)
for i in range(1, len(nums)):
dp[i] = max(nums[i] + dp[i-1], nums[... |
Markdown | UTF-8 | 1,803 | 2.59375 | 3 | [
"MIT"
] | permissive | ## Organization
#### Stripe3DS2/
This directory contains the actual SDK project and files. `Stripe3DS2.xcodeproj` is the entry point here.
The `Public` folder/group should only contain classes and files that are intended to be exposed publically in the SDK. Everything else should go under either `Internal` or a sepa... |
C | UTF-8 | 1,183 | 3.4375 | 3 | [] | no_license | /* Find Longest Common Subsequence of three Sequences */
#include <stdio.h>
int max(int a, int b) {
if (a > b)
return a;
else
return b;
}
int lcs(int arr1[], int len1, int arr2[], int len2, int arr3[], int len3) {
int dp[len1 + 1][len2 + 1][len3 + 1];
for (int i = 0; i <= len1; i++) {
for (int j ... |
Java | UTF-8 | 288 | 1.609375 | 2 | [] | no_license | package com.sevendesigns.planitprom.data;
public class BudgetCategoryItem
{
public int CategoryId;
public String Name;
public String Image;
public String ListImage;
public Integer Budgeted;
public Double Actual;
public String Merchant;
public Float RecommendedSpendingPercent;
}
|
TypeScript | UTF-8 | 923 | 2.5625 | 3 | [] | no_license | import { TimelineEvent } from '../../draft/TimelineEvent';
import { DraftState } from '../../draft/DraftState';
export function printEvent(event: TimelineEvent, state: DraftState) {
console.log(
'EVENT', event.id,
`seat=${event.associatedSeat}`,
`round=${event.round}`,
`roundEpoch=${event.rou... |
JavaScript | UTF-8 | 8,753 | 2.546875 | 3 | [] | no_license | define([
'LAMDAQuest',
'maps/map',
'util/util',
'entities/scriptable'
], function(LAMDAQuest, map, util, scriptable) {
var LQ = LAMDAQuest.getLQ();
var player = (function() {
var nextShotAt = 0;
var shotDelay = 200;
return {
createPlayer: function() {
var result = map.findObj... |
Python | UTF-8 | 748 | 3.390625 | 3 | [] | no_license | '''
有两个从小到大排序以后的数组A和B,其中A的末端有足够的缓冲空容纳B。请编写一个方法,将B合并入A并排序。
给定两个有序int数组A和B,A中的缓冲空用0填充,同时给定A和B的真实大小int n和int m,请返回合并后的数组
'''
# written by HighW
'''
本题关键词: 从后往前进行比较
'''
class Merge:
def mergeAB(self,A,B,n,m):
size = n + m
while(n>0 and m > 0):
if(A[n-1] > B[m-1]):
A[size-1]... |
Java | UTF-8 | 2,483 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive |
/*
* Copyright 2011 Uwe Krueger.
*
* 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 a... |
PHP | UTF-8 | 3,923 | 2.546875 | 3 | [] | no_license | <?php
if ( ! defined( 'ABSPATH' ) ) {
die();
}
abstract class GFBuddyFunctions {
public static function configurate_notification() {
add_filter( 'bp_notifications_get_registered_components', array('GFBuddyFunctions', 'set_component_name') );
add_filter( 'bp_notifications_get_notificati... |
C++ | UTF-8 | 953 | 3.15625 | 3 | [] | no_license | #include "RobotSteeringWheel.h"
RobotSteeringWheel::RobotSteeringWheel()
: stepper(0, 1, 2, 3)
{
direction = straight;
stepper.SetSpeed(300);
}
void RobotSteeringWheel::TurnLeft()
{
RobotLCD::Write("Skrecam w lewo");
if (direction == straight)
{
stepper.Step(-fullRotation / rotateMultipier);
}
else if (dire... |
Markdown | UTF-8 | 5,974 | 3.28125 | 3 | [] | no_license | 六三
屋子里,看来很平静,方婉仪在弹着琴,节奏相当特别,乐天在一旁听着。乐清和也坐了下来,不一会,他就明白方婉仪在弹奏的,是日本音乐家彼原真的作品,节奏十分奇幻、激动,这是方婉仪用钢琴奏出来,一个个音符,像是直敲进人的心坎中一样。
乐清和想在方婉仪的神情中,看出她在想些什么,但是方婉仪完全沉醉在音乐之中,她修长莹白的手指,一下又一下敲在琴键上。当年,屋子之中全是年轻人的时候,喧哗声可以震聋人的耳朵,但只要方婉仪一在钢琴前坐下来,揭开琴盖,所有的喧闹声全会静下来。
乐清和记得很清楚,每当这时,封白一定在方婉仪的身边,而他则一定躲在楼梯的那一个角落,尽量不引起人的注意,掩饰着他内心的感情。只有一次,一个... |
Python | UTF-8 | 157 | 3.515625 | 4 | [] | no_license | i = 1
sum = 0
def factorial(i):
s = 1
for n in range(i):
s *= i
return s
while (i <= 4):
sum += factorial(i)
i += 1
print(sum)
|
SQL | UTF-8 | 15,352 | 3.265625 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Source Server : My9finance[127.0.0.1]
Source Server Version : 60004
Source Host : localhost:3306
Source Database : my9finance
Target Server Type : MYSQL
Target Server Version : 60004
File Encoding : 65001
Date: 2012-09-28 17:43:56
*/
SET FOREIGN_KEY_... |
PHP | UTF-8 | 2,563 | 2.515625 | 3 | [] | no_license | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
/**
* @OA\RequestBody(
* request="CreateOrderRequest",
* required=true,
* @OA\JsonContent(
* type="object",
* @OA\Property(
* property="description",
* description="Описание заказа",... |
Python | UTF-8 | 2,322 | 3.375 | 3 | [
"MIT"
] | permissive | from collections import namedtuple
import time
from typing import NamedTuple
class Foo(object):
__slots__ = ("alpha", "beta", "gamma")
def __init__(self, alpha, beta, gamma):
self.alpha = alpha
self.beta = beta
self.gamma = gamma
Bar = namedtuple('Bar', ['alpha', 'beta', 'gamma'])
... |
Java | UTF-8 | 1,750 | 3.0625 | 3 | [] | no_license | package com.carto.model;
public class PaperSize {
public static int a3w = 420;//A4纸横向宽297mm
public static int a3h = 297;//A4纸横向高210mm
public static int a4w = 297;//A4纸横向宽297mm
public static int a4h = 210;//A4纸横向高210mm
private static double rate = 0.03937;//1mm等于0.03937inch
private int width = ... |
Python | UTF-8 | 659 | 2.65625 | 3 | [] | no_license | from flask_sqlalchemy import SQLAlchemy
import time
db = SQLAlchemy()
def StrfTime():
value = time.localtime(int(time.time()))
dt = time.strftime('%Y/%m/%d %H:%M:%S', value)
print('error, dt', dt)
return dt
class ModelMixin(object):
def save(self):
db.session.add(self)
... |
JavaScript | UTF-8 | 490 | 3.25 | 3 | [
"MIT"
] | permissive | const fs = require("fs");
const data = fs.readFileSync("./sample.txt").toString().split("\n").filter(Boolean).map((line) => +line);
const sort = data.sort((a, b) => a-b);
var oneNum = 1;
var threeNum = 1;
console.log(sort);
for (var i=1;i<sort.length;i++) {
var a = sort[i-1];
var b = sort[i];
var diff = b - a... |
SQL | UTF-8 | 445 | 3.703125 | 4 | [] | no_license | SELECT
top_as.delegatee AS delegatee,
t_meta_data_s1.country_code AS country_code,
t_meta_data_s1.rir AS rir,
t_meta_data_s1.as_name
FROM
(
SELECT
t_delegation_s1.delegatee AS delegatee,
COUNT(t_delegation_s1.delegatee) AS frequency
FROM t_delegation_s1
GROUP BY t_delegation_s1.delegatee
ORDER BY freque... |
Markdown | UTF-8 | 1,811 | 2.546875 | 3 | [] | no_license | ---
# Accomplishments widget.
widget: "howto" # See https://sourcethemes.com/academic/docs/page-builder/
headless: true # This file represents a page section.
active: true # Activate this widget? true/false
weight: 1 # Order that this section will appear.
title: "Perspectives on What is a Container Image"
subtitle:... |
Java | UTF-8 | 2,058 | 2.4375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package fr.devsquad.minutemed.jwt.utils;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import java.security.... |
Ruby | UTF-8 | 576 | 2.734375 | 3 | [
"BSD-3-Clause"
] | permissive | require "rdcl/communication/serial_layer.rb"
require "rdcl/platform/win32/serial_port_win32.rb"
module RDCL
class SerialLayerWin32 < SerialLayer
attr_accessor :port
def initialize
@port = SerialPortWin32.new
end
def connect(port, speed = nil)
@port.open(port, speed... |
Python | UTF-8 | 553 | 3.265625 | 3 | [] | no_license | sentence = "Hi He Lied Because Boron Could Not Oxidize Fluorine. New Nations Might Also Sign Peace Security Clause. Arthur King Can."
word_list = list(map(str, sentence.split()))
word_list = [word_list[i][:-1] if (word_list[i] in ".") or (word_list[i] in ",") else word_list[i] for i in range(len(word_list))] # 単語リスト
n... |
TypeScript | UTF-8 | 1,392 | 2.6875 | 3 | [] | no_license | import {Reducer} from 'redux';
import {profileAction, userReducer} from '../types';
const initialState = {
user: {
id: 0,
typeAcc: '',
name: '',
email: '',
address: '',
exportHistory: [],
history: [],
},
isLoading: false,
};
export const user: Reducer<userReducer, profileAction> = (
... |
Python | UTF-8 | 678 | 2.875 | 3 | [] | no_license | n = int(input())
total = n**2 - n
nodes = list(map(str, input().strip().split()))
a = [[0]*len(nodes) for z in range(len(nodes))]
for t in range(total):
l = list(map(int, input().strip().split()))
x, y, w = l[0], l[1], l[2]
a[x][y] = w
start = 0
i = 0
print ([i for i in range(len(nodes))])
s = set([i fo... |
JavaScript | UTF-8 | 21,242 | 2.578125 | 3 | [] | no_license | // core
Function.prototype.addMethod=function(name,func)
{if(!this.prototype[name])
{this.prototype[name]=func;}
return this;};Function.addMethod("as",function(ns,isSingleton)
{var chain=(ns?ns.split('.'):[]);if(chain.length>0)
{var base=window;for(var ndx=0;ndx<chain.length-1;++ndx)
{var token=chain[ndx];if(token)
{i... |
Ruby | UTF-8 | 244 | 3.21875 | 3 | [] | no_license | class HumanPlayer
attr_reader :color
def initialize(color)
@color = color
end
def get_move
result = []
print " Input start piece and end position (ex:'f2,f3'): "
input = gets.chomp
end
def to_s
color
end
end
|
Java | UTF-8 | 7,189 | 1.859375 | 2 | [] | no_license | package cyclients.ooquery.adapter;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.net.MalformedURLException;
import net.sf.saxon.s9api.Processor;
import net.sf.saxon.s9api.SaxonApiException;
import net.sf.saxon.s9api.Serializer... |
PHP | UTF-8 | 1,216 | 2.640625 | 3 | [] | no_license | <?php
namespace NpTS\Domain\Bot\Jobs;
use NpTS\Domain\Bot\Service\Exceptions\CharacterAlreadyInThisList;
use NpTS\Domain\Bot\Service\Exceptions\CharacterDosntExists;
use NpTS\Jobs\Job;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Bus\SelfHandling;
use Illumi... |
Markdown | UTF-8 | 1,725 | 2.921875 | 3 | [
"WTFPL",
"MIT"
] | permissive | # iadl -- Internet Archive collection DownLoader
This shell script makes it possible to download an entire collection from archive.org. It was originally
developed by @ghalfacree (https://github.com/ghalfacree/bash-scripts/blob/master/archivedownload.sh) but he
marked it as obsolete, because in the meantime the organi... |
Java | UTF-8 | 2,039 | 2.796875 | 3 | [] | no_license | package jpabook.start.mapping.single_table_strategy;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
public class JpaMain {
public static void main(String[] args) {
EntityManagerFactory... |
PHP | UTF-8 | 3,589 | 3.046875 | 3 | [] | no_license | <?php
class UserMapper extends AbstractMapper
{
/**
* @param integer $id
* @return User
* @throws OutOfBoundsException
*/
public function find($id)
{
if (true === $this->identityMap->hasId($id)) {
return $this->identityMap->getObject($id);
}
$sth = $this->db->prepare(
'SELECT ... |
C++ | UTF-8 | 1,109 | 2.890625 | 3 | [
"MIT"
] | permissive | #pragma once
#include <experimental/generator>
namespace SteveBase::SourceEngine::Structure {
using namespace std::experimental;
// Used internally to register classes.
struct InterfaceReg {
using InstantiateInterfaceFn = void*(*)();
InstantiateInterfaceFn m_CreateFn; // retur... |
C# | UTF-8 | 4,238 | 3.578125 | 4 | [] | no_license | using System;
using System.Text.RegularExpressions;
namespace AdventDay4
{
class Password
{
private string password;
public bool attempt(string value, int min, int max)
{
if (value.Length < 6)
{
return false;
}
int intVa... |
Markdown | UTF-8 | 1,546 | 2.640625 | 3 | [] | no_license | ---
title: "Migration depuis Koken"
linkTitle: "Migration depuis Koken"
weight: 1
date: 2020-04-22
description: >
Migration depuis le CMS Koken vers Yapawa
---
[Koken](http://koken.me) est un CMS pour les photographes écrit en PHP.
Effectuer une migration d'un CMS vers un autre n'est jamais simple. C'est la raison p... |
Markdown | UTF-8 | 1,603 | 3.125 | 3 | [] | no_license | # Spring Boot and Azure Keyvault Secrets demo
## Prerequisites
- An active Azure subscription
- The Azure CLI installed on your local system (the setup script uses this)
## Running this application
The setup script will create the required items for you on Azure and will export the required details for the applicati... |
C++ | UTF-8 | 607 | 2.609375 | 3 | [] | no_license | #include <cstdio>
#include <algorithm>
#include <cmath>
#include <climits>
using namespace std;
long long qd(long long a){
return a*a;
}
int main(){
int x,y;
long double ans;
int n;
pair<int,int> v[1004];
scanf("%d",&n);
if(n == 0 || n == 1){
printf("0\n");
return 0;
}
for(int i = 0; i < n; i++){
s... |
Python | UTF-8 | 403 | 3.484375 | 3 | [] | no_license | #day 1
if __name__ == "__main__":
with open("input", 'r') as input:
lines = input.read().splitlines()
#print(lines)
#part 1
suma = 0
for line in lines:
#print line
suma += (int(line) / 3 - 2)
print("Part1: " + str(suma))
#part 2
suma = 0
for line in lines:
while (int(line) / 3 - 2) >= 0:
suma... |
JavaScript | UTF-8 | 989 | 2.6875 | 3 | [] | no_license | export const ACTION_TYPES = {
GET_BOOKS: 'books/GET_BOOKS',
ADD_BOOK: 'books/ADD_BOOK',
DELETE_BOOK: 'books/DELETE_BOOK',
}
const getBooks = () => ({
type: ACTION_TYPES.GET_BOOKS
});
const addBook = (payload) => ({
type: ACTION_TYPES.ADD_BOOK,
payload
});
const deleteBook = (payload) => ({
type: ACTION... |
Java | UTF-8 | 963 | 2.21875 | 2 | [] | no_license | package hotelmanage;
import org.springframework.beans.factory.annotation.Qualifier;
import javax.persistence.*;
@Entity
@Table(name="RoomInfo_table")
@Qualifier("room")
public class RoomInfo {
@Id @GeneratedValue
private Integer roomNumber;
private String roomStatus;
public Integer getRoomNumber()... |
Java | UTF-8 | 2,505 | 3.03125 | 3 | [
"MIT"
] | permissive | package edu.pacificu.cs493f15_1.paperorplasticjava;
import org.junit.*;
/**
* Created by heyd5159 on 11/6/2015.
*/
public class GroceryListsTest
{
private GroceryLists GLists;
private String gListName0 = "List 1", gListName1 = "List 2";
/**
* Creates a new GroceryLists before each test
*/
... |
Python | UTF-8 | 2,316 | 2.890625 | 3 | [] | no_license | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 26 18:00:07 2021
@author: Oyelade
"""
import numpy as np
import random
def get_sub_population(S, PE):
I= S[55:]
Q=[]
H, V, R, D= I[10:25], I[17:24], I[26:40], I[41:]
return S, I, H, V, R, D, PE, Q
def generate_incubation_period_for... |
Markdown | UTF-8 | 6,199 | 3 | 3 | [
"Apache-2.0"
] | permissive | ## Ajax事件详解
##### `【原创】`转载时标明来源,请支持原创 :heart_eyes:
---
Ajax事件有全局事件和局部事件之分。全局事件,所有ajax请求都会
触发。局部事件只会监听单次请求。以下顺序为事件触发的顺序:
###1. ajaxStart - `全局`事件
ajaxStart和ajaxStop和其他的事件处理机制不一样,这两个事件在同一个ajax请求队列中只会被执行`一次`。在触发此事件时会检查当前有触发过此事件,且没有执行完成的请求(即跑完ajaxStop),如果有则不会执行此ajaxStart事件,没有才会执行。ajaxStop也是同理。
> `注意`:当Ajax请求的参数`g... |
C++ | UTF-8 | 676 | 2.671875 | 3 | [
"MIT"
] | permissive | #pragma once
#include <string>
#include <Windows.h>
template <typename T>
class Interface
{
public:
typedef void*(*CreateInterfaceFn)(const char*, int*);
static T* Get(const std::string& dllName, const std::string& fullName)
{
static T* intyface = nullptr;
if (intyface)
return intyface;
void* dll = nu... |
Markdown | UTF-8 | 6,522 | 2.8125 | 3 | [
"BSD-3-Clause"
] | permissive | ---
layout: post
title: 项目管理:团队成员角色和职责
description: 完整的项目设计开发过程中,是否有可以积累的经验?
published: true
category: 项目管理
---
## 项目流程回顾
整体流程:

简要评价:
1. **沟通**:前期沟通时间少,导致开发过程,沟通成本较大;即,沟通的投入并不会凭空消失,前期不进行充分沟通,**后期就需要还债**(沟通债);
1. **折中**:不做管理后台页面,通过 postman 直接调用 api,减少了前端开发工作量,但,增... |
Java | UTF-8 | 9,729 | 1.890625 | 2 | [] | no_license | package com.vhall.opensdk;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import androi... |
Python | UTF-8 | 1,625 | 2.59375 | 3 | [] | no_license | # example for RID parser
import nltk
import os
import sys
import string
import ridParser
import quanteda
import random
# load the dictionary using rid.py
rid = ridParser.RegressiveImageryDictionary()
rid.load_dictionary_from_string(ridParser.DEFAULT_RID_DICTIONARY)
rid.load_exclusion_list_from_string(ridParser.DEFAUL... |
Java | UTF-8 | 3,179 | 2.390625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | /*
* Copyright (c) 2016 yvolk (Yuri Volkov), http://yurivolkov.com
*
* 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 requ... |
Java | UTF-8 | 2,816 | 2.453125 | 2 | [] | no_license | package edu.ncut.kafkaflinkweb.config;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import javax.servlet.ServletConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Ht... |
Ruby | UTF-8 | 2,223 | 2.953125 | 3 | [] | no_license | # Phileas Frog
#
# Copyright 2009 Matt Aimonetti
#
# 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... |
Markdown | UTF-8 | 1,081 | 3.265625 | 3 | [] | no_license | # Estados de un hilo
1. **NEW:** Se crea el objeto, pero no se ejecuta. Queda a la espera de lanzar el método ```run()```.
2. **RUNNABLE:** Al llamar al método ```start()``` el hilo pasa a este estado.
3. **DEAD:** Se entra a este estado cuando finaliza el método ```run()```
4. **BLOCKED:** Debe ocurrir una de la... |
Python | UTF-8 | 353 | 3.5625 | 4 | [] | no_license | def pascal(n):
lista = [[1]]
for i in range(n):
new_list = []
new_list.append(lista[0][0])
for j in range(len(lista)-1):
new_list.append(lista[i][j]+lista[i][j+1])
new_list.append(lista[-1][-1])
lista.append(new_list)
return lista
trojkat = pascal(5)
for ... |
JavaScript | UTF-8 | 766 | 2.640625 | 3 | [
"MIT"
] | permissive | let ws = null
const setText = data => {
const msg = `<div>${data}</div>`
chat.insertAdjacentHTML('beforeend',msg)
}
btnConnect.addEventListener('click', event => {
ws = new SockJS('/chat');
stompClient = Stomp.over(ws)
stompClient.connect({}, frame => {
stompClient.subscribe('/topic/conten... |
C++ | UTF-8 | 920 | 2.734375 | 3 | [
"BSD-2-Clause"
] | permissive | /*
* Control related opcodes
*/
#include "sml.h"
#include "sml_control.h"
// branch operation
int opcode_branch(machineState *sml)
{
// Just change the counter, we're going to a different spot.
sml->counter = sml->operand;
return 0;
}
int opcode_branch_neg(machineState *sml)
{
if( sml->accumulator < 0 ) { ... |
Markdown | UTF-8 | 4,662 | 2.75 | 3 | [] | no_license | 一〇七
第二十七章
敖子青搓搓手,道:“各位盛意,在下不再多言谢辞,有一点是各位当家忽视的,在下目前有两件事,除了寻找邵姑娘的尸首外,还有调查风云榜的秘密。”
裘禾邦沉声道:“请少侠明示。”
敖子青微笑颔首:“不敢,自在下拿到风云榜起,就有一连串的事发生,先是邵化易下毒,继而有柴造烈,贺伏、梅林门、黄龙堡个个虎视眈眈,而贺伏与梅林门的高手一直守在芙蓉山等候在下前往,可见他们与邵化易之辈都有干系,否则他们如何得知在下必往芙蓉山?”
山神田星沉重的点点头,道:“不错,一定是他们互通鼻息,或者根本就是同伙,一丘之貉。”
敖子青神色转为凝重,他慢慢坐回自己的椅子,目光注视着远方,严肃... |
TypeScript | UTF-8 | 2,115 | 3.15625 | 3 | [] | no_license | //-------------------------------------------------------------------------
// Imports Section
//-------------------------------------------------------------------------
import * as math from 'mathjs';
//-------------------------------------------------------------------------
// Class Section
//---------------------... |
C++ | UTF-8 | 3,698 | 2.75 | 3 | [] | no_license | // HW01_131044017_Mustafa_AKILLI
// for_computer_which_one_is_smartest_move.cpp
//
// Created on 21 Eylül 2015 Pazartesi, 23:04 by Mustafa_AKILLI
//
// Description
//
// En akilli hareket bulunur
#include "othello_header.h"
void for_computer_which_one_is_smartest_move(move_feature_t move_of_computer[401],
... |
Java | UTF-8 | 874 | 2.5 | 2 | [] | no_license | package EZShare.entities;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* For JSON. QUERY command.
* Created on 2017/3/23.
*/
public class Query extends CommandWithResourceTemplate {
private final boolean relay;
public boolean isRelay() {
... |
Java | UTF-8 | 670 | 2.859375 | 3 | [] | no_license | package com.falcon;
import java.util.Set;
import com.falcon.Formula.Visitor;
public class Not implements Formula{
private final Formula formula;
// constructor
public Not(Formula formula) {
this.formula = formula;
}
// observer
public Formula formula() {
return this.... |
Markdown | UTF-8 | 2,332 | 3.09375 | 3 | [
"MIT"
] | permissive | ---
layout: post
title: "Resources are Easy, Inspiration is Hard"
date: 2018-07-01 14:26:30 -0400
categories: blog
---
## The Easy Option
In each of these TIE-Love posts we identify two concepts in the title: one is easy for us to grasp or act on, the other is more challenging. As the title suggests, our two conce... |
Go | UTF-8 | 10,105 | 3.140625 | 3 | [] | no_license | package files
import (
"testing"
"github.com/thomasschoeftner/go-cli/test"
"path/filepath"
"strings"
"fmt"
"github.com/thomasschoeftner/go-cli/commons"
"strconv"
)
func DummyEvac(from, to string) (*Evacuated, error) {
return &Evacuated{original: from, evacuatedTo: to}, nil
}
func TestPrepareEvacuation(t *te... |
Python | UTF-8 | 824 | 3.546875 | 4 | [] | no_license | # # Hint: You may not need all of these. Remove the unused functions.
class Ticket:
def __init__(self, source, destination):
self.source = source
self.destination = destination
def reconstruct_trip(tickets, length):
# Your code here
# starting location is the key and
# the destination... |
C++ | UTF-8 | 1,502 | 3.59375 | 4 | [] | no_license | /*
question ->
You are given n activities with their start and finish times. Select the maximum number of activities that can be performed by a
single person, assuming that a person can only work on a single activity at a time.
sample test case ->
start[] = {10, 12, 20};
finish[] = {20, 25, 30};
output -> 2
sta... |
Java | UTF-8 | 1,407 | 2.265625 | 2 | [] | no_license | package com.tumri.cbo.backend;
import com.tumri.mediabuying.zini.*;
import java.util.*;
public class SlotComparator implements Comparator<AdvCampDataPair> {
ExcelSlotSchema sortSlot;
String slotName;
boolean descendingP;
MethodMapper methodMapper;
QueryContext qctx;
public SlotComparator(Exce... |
C++ | UTF-8 | 8,647 | 3.015625 | 3 | [
"MIT"
] | permissive | #include "util.h"
#include "Halide.h"
#include <vector>
#include <algorithm>
using namespace Halide;
using namespace Halide::ConciseCasts;
/*
* box_down2 -- averages 2x2 regions of an image to downsample linearly.
*/
Func box_down2(Func input, std::string name) {
Func output(name);
Var x, y, n;
R... |
C | UTF-8 | 1,469 | 4.0625 | 4 | [] | no_license | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct node_content{
int item;
struct node_content *left, *right;
}node_type;
node_type *createNewNode(int data){
node_type *new_node;
new_node = (node_type*) malloc(sizeof(node_type));
new_node->item = data;
new_node->left = NULL;
new_node->ri... |
Markdown | UTF-8 | 4,845 | 2.8125 | 3 | [
"MIT"
] | permissive | ---
title: Проклятый на древе
date: 14/12/2021
---
`Прочитайте Гал. 3:13–14. Какой удивительный факт истории спасения упоминает здесь Павел, ссылаясь на Втор. 21:22, 23, чтобы выразить свою точку зрения?`
`Подумайте и опишите, что для вас лично значит тот факт, что Иисус принял на Себя «проклятие за нас» (Гал. 3:13... |
C# | UTF-8 | 4,859 | 2.78125 | 3 | [] | no_license | using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace Village
{
public class VillageData : ScriptableObject
{
//currently resource Inventory
private Dictionary<ResourceName, int> resourceCount = new Dictionary<ResourceName, int>();
//currentl... |
Java | GB18030 | 1,988 | 2.203125 | 2 | [] | no_license | package cn.com.yang.crud.test;
import java.util.List;
import java.util.UUID;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.spr... |
Markdown | UTF-8 | 8,551 | 3.046875 | 3 | [] | no_license | ---
title: "两个相爱的女人,有无未来?"
date: "2018-01-01"
---
Victor Borisov-Musatov · Two Ladies
连岳:
2018新年第一天好!
今天很高兴,看到你把自己的公众号改成“将最好的观念传递给最多的人”。经常把你的文章推送给身边的朋友,希望他们能多靠近一些真理,懂得去争取更美好的生活。
关注你也有一些年,看到很多人分享他们的故事,在你这里汲取了前进的力量,让人鼓舞。4年前,人生的一个大转折,我曾想过提笔寻求你的建议,但终究自己做了选择。然而,人生终究有一些槛,自己无法突破,希望听听智者的意见。
自从大学毕业,我一人独自在欧洲留学多年,去年回国工作。回来的... |
JavaScript | UTF-8 | 4,852 | 2.53125 | 3 | [
"MIT"
] | permissive | import { LitElement, html, css } from 'lit-element';
import Please from 'pleasejs';
function* coords(size) {
for (let i = 0; i < size; i ++) {
for (let j = 0; j < size; j ++) {
yield [ i, j ];
}
}
}
function compareCoords(a, b) {
return a[0] == b[0] && a[1] == b[1];
}
export d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.