blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
648a45ddee93210901fcbaf778e75181ac7c38e8 | fba6fca82bf1edd8e69ef94cede17193b845c48d | /planer.py | f8f6b7202193cf0d4658884a66e5d68ecea28ca3 | [] | no_license | sweettpickle/planer | 9da0cc9b34e62563979f2757b733a1612b749918 | cd505e6aebc5e3dcfdc66fabadaaaa4d75170998 | refs/heads/master | 2022-05-14T17:53:30.819859 | 2020-04-24T14:23:35 | 2020-04-24T14:23:35 | 258,514,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,969 | py | import telebot
from telebot import types
# bot = telebot.TeleBot('%ваш токен%')
token = '1010919676:AAFlETQiiF6PUzGctcTFtNZLzCb12aVJjt4'
bot = telebot.TeleBot(token)
# обработчик сообщений
@bot.message_handler(commands=['start'])
def welcome(message):
# bot.reply_to(message, message.text)
# bot.send_message(m... | [
"noreply@github.com"
] | sweettpickle.noreply@github.com |
51372281f96d983816766c266f8a2e1c3e0a83f6 | 57206f40094fc5b0c8ff41ed8a4cec34bfd04ab5 | /Vehicle detection/speedCal.py | 31c276a7b812c787afb80524f9458de293bb93d1 | [] | no_license | wuhaostudy1992/ECPS210 | 4a7b0b8e580b07997134fad4e6cd30d6e057acdd | d68493cbba25f800e9ec57619485b6231e8724bf | refs/heads/master | 2020-03-09T09:53:55.633723 | 2018-05-11T04:28:17 | 2018-05-11T04:28:17 | 128,723,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | # coding=utf-8
import numpy as np
import cv2
cap = cv2.VideoCapture("high.flv")
# Shi-Tomasi
feature_params = dict(maxCorners=10, qualityLevel=0.1, minDistance=1, blockSize=9)
# LK
lk_params = dict(winSize=(30, 30), maxLevel=2, criteria=(cv2.TERM_CRITERIA_EPS | cv2.TERM_CRITERIA_COUNT, 10, 0.03))
# create random co... | [
"wuhaostudy1992@gmail.com"
] | wuhaostudy1992@gmail.com |
d8d13467a7799672f45585a90fa8be260b9dd1a7 | 028e16089ebbbd81adf41789a8da3ba3e25323d0 | /문자열 마음데로 정렬하기.py | f4bbb55c432e09c2ad24557bce06c0be8279bb49 | [] | no_license | FlowerLSH/Study1 | 18b840a1d3345e39f759661c88aa3fbc63a649f0 | bedc273d77ad7eb9fd214967dadcf9e49f21f2c8 | refs/heads/master | 2023-01-31T13:32:34.374341 | 2020-12-16T15:03:33 | 2020-12-16T15:03:33 | 278,109,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | def solution(strings, n):
answer = []
index = dict()
arr1 = []
for i in strings:
index[i] = i[n]
arr1.append(i[n])
arr = list(set(arr1))
arr.sort()
for j in arr:
emp = []
for k in index:
if index[k] == j: emp.append(k)
emp.sort()
an... | [
"noreply@github.com"
] | FlowerLSH.noreply@github.com |
4e42e313b4e8f4517cca59865a67badc6b525b39 | 200df6cda6e54d56a4c800e10e6d5f248d7d59f2 | /02-算法思想/广度优先搜索/778.水位上升的泳池中游泳(H).py | 0d5613ed1b63a75e2a20984da04124b0b0f7e70b | [] | no_license | jh-lau/leetcode_in_python | b9b9a47d0b3ce29c3c56836b39decc3ec4487777 | 1d1876620a55ff88af7bc390cf1a4fd4350d8d16 | refs/heads/master | 2023-04-17T15:01:49.925774 | 2021-04-24T01:17:39 | 2021-04-24T01:17:39 | 192,735,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,600 | py | """
@Author : liujianhan
@Date : 20/9/26 19:31
@Project : leetcode_in_python
@FileName : 778.水位上升的泳池中游泳(H).py
@Description : 在一个 N x N 的坐标方格 grid 中,每一个方格的值 grid[i][j] 表示在位置 (i,j) 的平台高度。
现在开始下雨了。当时间为 t 时,此时雨水导致水池中任意位置的水位为 t 。你可以从一个平台游向四周相邻的任意一个平台,
但是前提是此时水位必须同时淹没这两个平台。假定你可以瞬间移动无... | [
"lorgerd@163.com"
] | lorgerd@163.com |
8f6544b242c2b325c60dfe4ba718e842a1bd5da5 | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/dn4 - krajevne funkcije/M-17221-2470.py | 10d80965dddb932bac3c85dd6f23dabfac539c8c | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,073 | py | # Tu pišite svoje funkcije:
from math import *
def koordinate(ime, kraji):
for kraj in kraji:
if(kraj[0] == ime):
return (kraj[1], kraj[2])
return None
def razdalja_koordinat(x1, y1, x2, y2):
return sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)
def razdalja(ime1, ime2, kraji... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
d4a5b1ba6b6f1f3a11524fac579af53d35e04cf7 | b18660ec434f8ebafeb5397690aa1b4c0a1cb528 | /train_ALL_LSTM.py | 528fe8ecf051ad46dbbf40705f292c601be2e094 | [] | no_license | wp0517/pytorch_SRU | 5d46956406c7b64431b736981f4565264ca9aa29 | 96be5b4f4f0b73a4e0532bb18d726655af0fdb50 | refs/heads/master | 2020-04-09T12:06:47.847348 | 2018-06-17T00:53:05 | 2018-06-17T00:53:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,866 | py | import os
import sys
import torch
import torch.autograd as autograd
import torch.nn.functional as F
import torch.nn.utils as utils
import torch.optim.lr_scheduler as lr_scheduler
import shutil
import random
import hyperparams
import time
torch.manual_seed(hyperparams.seed_num)
random.seed(hyperparams.seed_num)
def tra... | [
"bamtercelboo@163.com"
] | bamtercelboo@163.com |
793c15be2778bfa6a0852f657ea403fc51e685ba | a3f793a53361d08f3e0cdedc7fab9df40e201eef | /main.py | a53882b59400172fbcb656c830535363798e384d | [] | no_license | songshanshi/imoocc_py3 | 156db4f072bc956f45cbcc8c61fca964be8acfb9 | 6f3491ce857c541bf55d5ed8993265b7dd4dee09 | refs/heads/master | 2020-04-28T02:25:18.241155 | 2018-10-16T07:20:15 | 2018-10-16T07:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,917 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#########################################################################
# Author:Jeson
# Email:jeson@imoocc.com
import datetime
import os
import re
import yaml
PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__))
# import sys
os.environ["DJANGO_SETTINGS_MODULE"] =... | [
"gengming8859@icloud.com"
] | gengming8859@icloud.com |
2bb1e7e593dfb67298aa570a9c0e2c150b0dc54b | d0bd9c3c5539141c74e0eeae2fa6b7b38af84ce2 | /src/cogent3/parse/__init__.py | 7559bc6dcc006e4be1bcd02096d3c56f55fc2512 | [
"BSD-3-Clause"
] | permissive | KaneWh1te/cogent3 | 150c72e2f80a6439de0413b39c4c37c09c9966e3 | 115e9eb5700627fdb24be61441a7e3e155c02c61 | refs/heads/master | 2023-07-29T00:32:03.742351 | 2021-04-20T04:32:00 | 2021-04-20T04:32:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | #!/usr/bin/env python
__all__ = [
"blast",
"cigar",
"clustal",
"dialign",
"ebi",
"fasta",
"gcg",
"genbank",
"gff",
"locuslink",
"ncbi_taxonomy",
"newick",
"nexus",
"paml",
"paml_matrix",
"phylip",
"rdb",
"record",
"record_finder",
"sequenc... | [
"Gavin.Huttley@anu.edu.au"
] | Gavin.Huttley@anu.edu.au |
59750fad06e56331b012fa6b1c81a5617cb2f861 | 27df339496f93c8ac45878130e774ae7ef8d1f61 | /csv_file/csv_demo.py | ba634edff5b3a8db253f2636b7987edded93beaa | [] | no_license | vutukurus/class_project | 9ce2df421f44c9b90c04997ff41e19dade3d6cb7 | d714b4edafc02dcbb59fab4ba78480e1c0657b66 | refs/heads/master | 2021-01-12T05:25:33.411576 | 2017-03-12T14:27:28 | 2017-03-12T14:27:28 | 77,926,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import csv
#CSV file reading in python..
f = open('demo_file.csv',"r")
file_content = csv.reader(f) #it will read csv file contents..
for i in file_content:
print i
'''
#logic for printing salaries grater than 15k
c=0
for i in file_content:
if c > 0:
if int(i[-1]) > 15000:
print i[-1]
c=c+1
'''
f_write... | [
"vutukurus@gmail.com"
] | vutukurus@gmail.com |
af0fc5daf91f3b8d1cc064e06a4521d8bbcdd22e | e4d298905eaa0ba0d5fae062cfa6167669825a96 | /Snake_game.py | 670d25759fd6134d157292714aa855baa288c856 | [] | no_license | Blockcipher123/Snake-Game | 55f98cc58ff7d1f0005ee2ce513dae8412454786 | e64e4dd8d7374292519bbd23a851656bd12377db | refs/heads/main | 2023-08-11T08:17:39.600454 | 2021-09-26T04:55:50 | 2021-09-26T04:55:50 | 393,858,226 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,013 | py | import pygame
import random
import os
pygame.mixer.init()
pygame.init()
# colors
white = (255, 255,255)
red = (255, 0, 0)
black = (0,0, 0)
green = (9, 237, 24)
screen_width = 900
screen_hight = 600
# Creation Window
gameWindow = pygame.display.set_mode((screen_width, screen_hight))
# B... | [
"noreply@github.com"
] | Blockcipher123.noreply@github.com |
9f8c5b37b12ed48e2504be0c4a85627772bf19c6 | f188c8791f10b481c59b064e5632f2b8e6468a15 | /pyhrv/tools.py | cbfc8d21cab829d8db98694990d6728b1c3940bf | [
"BSD-3-Clause"
] | permissive | RuWander/pyhrv | a440b0f0e7bb199718fefcbc6f56a509914f4585 | 61b233e907a0223e2a2bf1a5962ee2e9ae8ed36c | refs/heads/master | 2021-03-27T05:56:17.351755 | 2020-03-17T13:28:39 | 2020-03-17T13:28:39 | 247,793,858 | 0 | 0 | BSD-3-Clause | 2020-03-16T18:55:30 | 2020-03-16T18:55:29 | null | UTF-8 | Python | false | false | 45,737 | py | #!/usr/bin/env python -W ignore::FutureWarning
# -*- coding: utf-8 -*-
"""
pyHRV - Heart Rate Variability Toolbox - Tools
----------------------------------------------
This module provides support tools for HRV analysis such as the computation of HRV relevant data series (NNI, NNI
differences Heart Rate) and
Notes
-... | [
"pgomes92@gmail.com"
] | pgomes92@gmail.com |
2efc3b8d4f8b6993091cf4bfe85bdb9711ec2a74 | 602ae5fca1a1d25d70cc3e1a84759d0caf124b57 | /Dash Basics/dash_core_components_example.py | a3bf2c3dec79cc947119eba68e52c15102ca1de5 | [] | no_license | harryschaefer93/DashAppPractice | 540f05380575a8afea8f8db2c9f5ef70588ec25f | aa4a144df94a32e55a206d99dd89d431baa77ccf | refs/heads/master | 2023-07-31T22:19:22.413393 | 2021-09-19T21:09:57 | 2021-09-19T21:09:57 | 321,131,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | import dash
import dash_html_components as html
import dash_core_components as dcc
app = dash.Dash()
app.layout = html.Div([
html.Label('Dropdown Component:'),
dcc.Dropdown(
options=[
{'label': 'Houston', 'value': 'HTX'},
{'label': 'Austin', 'value': 'ATX'},
{'la... | [
"harryschaefer1993@gmail.com"
] | harryschaefer1993@gmail.com |
f107a42e17a213bb257e6dc9bee18367a2d43d35 | c7a867c33675d48c9bcc73c70c27cac085661ebb | /extractor/POSMmanagement/process.py | a6b472f4c094cbd47cf5cd7e2c6fc14894009bd4 | [] | no_license | v55448330/posm | 3e4cbcb22f5eae17c956eb02346a8fc5a932966c | a53c15337301a769ac3b9bde54ab845ac0fe5211 | refs/heads/master | 2020-05-29T11:05:40.229015 | 2015-03-29T08:21:22 | 2015-03-29T08:21:22 | 47,541,652 | 1 | 0 | null | 2015-12-07T09:15:42 | 2015-12-07T09:15:42 | null | UTF-8 | Python | false | false | 4,559 | py | # -*- coding: utf-8 -*-
import logging
LOG = logging.getLogger(__file__)
import subprocess
import psycopg2
import sys
import os
from .utils import proc_exec
class ProcessManagement():
def __init__(self, settings, verbose=False):
self.verbose = verbose
self.settings = settings.get_settings()
... | [
"dodobas@candela-it.com"
] | dodobas@candela-it.com |
41a00bab3f061077909f54d74dc574355af1929d | 1b77eaf078321b1320d72aa36a4357568101e4ca | /江南大学教务处/test.py | 93ac06b18e5699d2285b3f417e63ee409aaa3bec | [] | no_license | BEE-JN/python_homework | 92ffc1216a380d124901fd64cc541f70813847dc | 8ba4ea79cbd422f40e6f9f1cc5fed4d75715d207 | refs/heads/master | 2020-03-23T08:02:47.863607 | 2018-07-17T15:30:21 | 2018-07-17T15:30:21 | 141,305,118 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | import requests
import time
url = "https://survey.zkeycc/pku/xsdc/?dm=bk"
if __name__=='__main__':
while 1:
r=requests.get(url)
print(r.content)
time.sleep(1) | [
"41156190+GCS-CN@users.noreply.github.com"
] | 41156190+GCS-CN@users.noreply.github.com |
060eac28c26b41125b17d80a73f320465fa80cf3 | 2a6934acac4ec8bb29ad51e525ad2ed839a18587 | /sleekocmd.py | 68f49aecbefe4e0f260eb97fa74fe5cb08374f80 | [] | no_license | alexschlueter/arlecksbot | d9ca769a00bf0458163b397ebce314d510066af4 | 1730f5123b10bc638906f6206ea6b5b08460bfac | refs/heads/master | 2021-01-10T21:39:51.643735 | 2013-01-16T11:59:43 | 2013-01-16T11:59:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,261 | py | #!/usr/bin/env python2
# Name: SleekoCommander
# Author: Nick Caplinger (SleekoNiko)
# Dependencies: numpy, pypng
# Ideas:
# control the midfield with gankers
#1. Ambush flag carriers by predicting their path to the flag stand and whether or not they can intercept
#2. Camp the enemy spawn
#3. Actively search... | [
"arleckshunt@googlemail.com"
] | arleckshunt@googlemail.com |
071cdfa73d8b8928b72c1e5dd2ba4a8ba6f7578c | b7850a5605eea1ab876140e2ab9eea9b5e3b6305 | /ControlFlujo/for.py | 80c2c78706b7c7dc8c074f7ee4798cbe2b99f7a3 | [] | no_license | lagarridom/PythonSemestral19_1 | db37159983f842a2310f676e167f877fe93c6706 | aad25b1a84822f52796f5faed251a62037a04c3a | refs/heads/master | 2020-03-27T06:34:45.149558 | 2018-10-17T02:37:05 | 2018-10-17T02:37:05 | 146,116,479 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | #10.-
"""
for ITERADOR in ITERABLE:
instrucciones
"""
for i in [10, 20, 30, 40, 50]:
print(i)
nombres = ["luis", "pato", "gabriel"]
for nom in nombres:
print("El es"+nom)
for elemento in ("cadena", 3, 3.4, True):
print(type(elemento))
diccionario = {"lunes":"pollo","martes":"pescado","miercoles":"carne"}
for... | [
"noreply@github.com"
] | lagarridom.noreply@github.com |
1e6eba4819d445e4bc1753cf73177ddf6931adac | ae09e15b3f4ac2c6f5a0d3f7a0d73c6def37ab2b | /joinquant/get_data.py | eb55a21d0de07f52edf198b705d82a416b5a4de2 | [] | no_license | fswzb/sensequant | db81053685a985fe50e7082b6f2e65e2e6540212 | b5fdac13f5caf2d00b99506c1c25389b406d9b17 | refs/heads/master | 2020-08-01T15:53:35.102784 | 2016-08-01T03:56:49 | 2016-08-01T03:56:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,713 | py | import pandas as pd
import numpy as np
import itertools
from src import configure
import sys
# Add the Test Folder path to the sys.path list
sys.path.append('/home/lcc/sensequant/code')
# Now you can import your module
from src.preprocess import in_day_unit
class get_data():
def __init__(self, fname):
se... | [
"rylanlzc@gmail.com"
] | rylanlzc@gmail.com |
96c1f73d17d18f7906615ca48bc2e2d25d8b7259 | caa06eca3eef2549d5088f6487201f734b35822e | /multi_ie/EE/model/multi_pointer_net.py | 0d2334ed6d7a09e87757e36528cedd3c228713c5 | [] | no_license | kelvincjr/shared | f947353d13e27530ba44ea664e27de51db71a5b6 | 4bc4a12b0ab44c6847a67cbd7639ce3c025f38f8 | refs/heads/master | 2023-06-23T19:38:14.801083 | 2022-05-17T09:45:22 | 2022-05-17T09:45:22 | 141,774,490 | 6 | 1 | null | 2023-06-12T21:30:07 | 2018-07-21T02:22:34 | Python | UTF-8 | Python | false | false | 7,694 | py | # _*_ coding:utf-8 _*_
import warnings
import numpy as np
import torch
import torch.nn as nn
from transformers import BertModel
from transformers import BertPreTrainedModel
from .layernorm import ConditionalLayerNorm
#from utils.data_util import batch_gather
warnings.filterwarnings("ignore")
def batch_gather(data: ... | [
"deco_2004@163.com"
] | deco_2004@163.com |
5b3b646c4113d5b24b5038e64dcdf1fcd7ee035b | fa572b453270fd688e91cbed75d488c24b86cb12 | /lists/tests/test_forms.py | 7f7270b28c3a1678dd2f22d5451771c213844173 | [] | no_license | XOyarz/TDD-with-Python | d3bfea9ac4b0391058a6b8b2d759cde8c53e759c | d2350e70cd77691255a667cbff60910b36a30cc3 | refs/heads/master | 2021-01-21T13:26:52.011789 | 2017-09-11T18:39:45 | 2017-09-11T18:39:45 | 102,126,072 | 0 | 1 | null | 2017-09-11T18:39:46 | 2017-09-01T15:19:02 | Python | UTF-8 | Python | false | false | 929 | py | from django.test import TestCase
from lists.forms import ItemForm, EMPTY_ITEM_ERROR
from lists.models import Item, List
class ItemFormTest(TestCase):
def test_form_item_input_has_placeholder_and_css_classes(self):
form = ItemForm()
self.assertIn('placeholder="Enter a to-do item"', form.as_p())
... | [
"xavier982@hotmail.com"
] | xavier982@hotmail.com |
e33f5e747a3394df1d4ab13d0f881353585a66d3 | fb9b320109ba55fc68fab793ce7a77058dc8b682 | /semi-supervised-learning/visual/score_visual_lfs.py | 044956da5eebf4ddcac680083ba6c027aec29002 | [] | no_license | NLP4H/MSBC | c3b03806666584a4fa1cc7328ba9d45f061d2a77 | 60b0b89496eb28707d323b595af7a411dbd84768 | refs/heads/master | 2022-10-09T19:02:48.998958 | 2020-06-02T07:15:11 | 2020-06-02T07:15:11 | 268,724,086 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,366 | py | """
Snorkel labelling functions for visual score
Note: This visual subscore is not based on Neurostatus defns but
based on heureustic information provided by Zhen based on advice given from MS clinicians
"""
import os
import pandas as pd
import re
import numpy as np
from nltk.tokenize import word_tokenize, sent_tokeni... | [
"michalmalyska@Michals-MacBook-Air.local"
] | michalmalyska@Michals-MacBook-Air.local |
090808a81f4df895399f7bf0cacf2ebba9dc778e | dac7095e7b5ad4dae993871c1ae45cbb7a5ce5f7 | /Character/14.Yashiro/Re/Yashiro_C.py | 2c0cd5afc2266f92fa0884ed0406cc049d41656d | [] | no_license | Lastation/RenewalAniChaos | d12a8423f4b83cb019495c59ed059451e67e0483 | c3edb29af58925de55c11110ccaf927d2b5d1b39 | refs/heads/master | 2023-08-24T11:28:35.614844 | 2023-08-22T21:23:14 | 2023-08-22T21:23:14 | 246,617,812 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | import variable as v;
import func.trig as trg;
function main(playerID)
{
if (v.P_WaitMain[playerID] == 0)
{
if (v.P_CountMain[playerID] == 0)
{
KillUnitAt(All, " Creep. Dunkelheit", "Anywhere", playerID);
if (v.P_LoopMain[playerID] < 2)
{
var d = 0;
... | [
"aaiiiho@gmail.com"
] | aaiiiho@gmail.com |
950368a1376a80cc13f1e58217778e6f36f4931f | b5bbbed97f1c52180751cde5cc187158ae98cec3 | /football_api/urls.py | 465ee7a3e2df25f2d2d502b84d4abd6ea0d93e1a | [
"MIT"
] | permissive | king-tomi/total-football-api | d4066fd4005ba71df445edf46ccaead5140fa126 | 39f8efbd8b658a5a2e52458dc594f8354d28da04 | refs/heads/main | 2023-07-18T12:48:17.648402 | 2021-09-07T23:42:42 | 2021-09-07T23:42:42 | 404,150,481 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | """football_api URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')... | [
"noreply@github.com"
] | king-tomi.noreply@github.com |
b865fa83e9b8e72b08e144110aa75b200cf807d4 | 7ec04fc867d0a48fffc05c65bff9217cfe211fe7 | /HW/统计字符串/countHotal.py | 31f95d4500041b28fa209a1a7c4dae778ad024c5 | [] | no_license | Cherry93/pythonPractic | 3b9d1f99803503073bbb2f3a58009665338bd278 | 2889183af6c9a01ab47895b23e2d6ce8c288fd4d | refs/heads/master | 2021-08-31T16:41:56.655989 | 2017-12-22T03:53:18 | 2017-12-22T03:53:18 | 115,008,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | '''
统计加州旅馆中所有单词出现的次数,并降序打印
'''
import collections
file = input("Enter a filename:")
with open(file, 'r') as fpr:
content = fpr.read()
content = content.replace("\n", '')
content1 = content.split()
print(content1)
print(content1[0].lower())
print(len(content1))
list =[]
for i in range(0,len(content1)):
list.a... | [
"358544104@qq.com"
] | 358544104@qq.com |
18cbb1000278e07122b15b44881c258ca0146e5d | 2ec96d507e800a8c669b1507a1bfc7b5aee697ac | /test/test_logging.py | b32bd591ce2603f9644f63853170ceb6f57d3feb | [
"Apache-2.0"
] | permissive | leizhen10000/rainbrow | 719e83ac3702d6b2309c15bd26d4d4c5e49be199 | 6a61ed3550e9fc6d2ff48eb49fed0fb81f4a41c9 | refs/heads/master | 2020-03-19T04:57:47.181019 | 2019-07-09T10:02:40 | 2019-07-09T10:02:40 | 79,789,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# @Time : 2019-07-03 17:58
# @Author : Lei Zhen
# @Contract: leizhen8080@gmail.com
# @File : test_logging.py
# @Software: PyCharm
# code is far away from bugs with the god animal protecting
I love animals. They taste delicious.
┏┓ ┏┓
... | [
"leizhen8080@gmail.com"
] | leizhen8080@gmail.com |
c7eee2a22a1efb7ddb4b5278189a0424acae6d63 | 14ebcf98e7c64505839e0b7bbab89e32af7abe1e | /deep4rec/datasets/census.py | 4d58743074fe1b8d1eb3004a4a18b2d8469a1f62 | [
"Apache-2.0"
] | permissive | Luiz-FS/Deep4Rec | b021fbc36e377e1055e46e9a52f68c32018894f8 | 78c5ca74f0e0d06a9f4bb2f267817b69abd40d1d | refs/heads/master | 2020-09-03T14:27:45.828007 | 2019-11-18T01:10:30 | 2019-11-18T01:10:30 | 219,484,411 | 0 | 0 | Apache-2.0 | 2019-11-18T01:10:31 | 2019-11-04T11:22:00 | Python | UTF-8 | Python | false | false | 6,110 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... | [
"mariannelinharesm@gmail.com"
] | mariannelinharesm@gmail.com |
3fc886a7c14ade2e0cb83e4bcde5765fa6f76294 | 9144f651ca34ba324270bbcd216c6f8396aa4602 | /pro4_2.py | 56371678cf000e81ff854ba1890b524610a9cdec | [] | no_license | NishantJindal41/guvi3 | 1a26bf132e4c660b287b42e8b538d2496d8468f4 | 3d1ba6626b4684abacbbd0f9c0a3e2d44e88d85c | refs/heads/master | 2020-04-15T06:19:28.831298 | 2019-04-16T16:24:22 | 2019-04-16T16:24:22 | 164,456,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | n, m = map(int, input().split())
A = []
for i in range(n);
A.append(list(map(int,input().split())))
for i in range(len(A));
A[i]=sorted(A[i])
A = [list(i) for i in zip(*x)]
for i in range(len(A));
A[i]=sorted(A[i])
A = [list(i) for i in zip(*A)];
print(A);
}
| [
"noreply@github.com"
] | NishantJindal41.noreply@github.com |
20f38bed70c1832fcabd62c4095639a2b179b570 | 2b63c99eaa0c4866e5ea956ab0c5207b01ce6c0f | /bin/easy_install-3.2 | 2753b93978d3263f58bff7abb72623f52d4505d4 | [] | no_license | raspicamproject/raspi-python | 6f55b7c989e6f98d16a06f2f3b245f296af5d2a4 | 42380d47fb7974b63f21f56bb1093c246074ed76 | refs/heads/master | 2021-01-15T11:25:38.106055 | 2015-03-19T16:05:43 | 2015-03-19T16:05:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | 2 | #!/home/pi/raspi-cam/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'distribute==0.6.24','console_scripts','easy_install-3.2'
__requires__ = 'distribute==0.6.24'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('distribute==0.6.24', 'console_scripts', 'e... | [
"lebras.simon@gmail.com"
] | lebras.simon@gmail.com |
098f5bd193fa7c2e62926d0e9b70554529503192 | 1d218b6af654a77aa8a3592e40f93fbc4f584319 | /cirq-core/cirq/sim/act_on_state_vector_args.py | 07f86b370d922667fa62ff5ea2779f0a32ba82d1 | [
"Apache-2.0"
] | permissive | eendebakpt/Cirq | dcf2d15781aea201760b37140ab1505ef570ee1c | f8ffbea1b68b483f8dc716781f2c514a02aa765e | refs/heads/master | 2023-08-30T10:30:41.653293 | 2021-09-23T19:01:32 | 2021-09-23T19:01:32 | 409,719,785 | 0 | 0 | Apache-2.0 | 2021-09-23T19:29:17 | 2021-09-23T19:29:16 | null | UTF-8 | Python | false | false | 13,551 | py | # Copyright 2018 The Cirq Developers
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
"noreply@github.com"
] | eendebakpt.noreply@github.com |
b0dd12f359d47826a34ff45e3eec933fcad07418 | b9bd74516dc0f24d336f35b14780a171030ea529 | /18.随机森林算法.py | ba4d7db1198edb81bfe134670e0a5c5bf50c3801 | [] | no_license | DataIsStrength/scikit-learn | 814326c03743cacb62b68bb5cfda8e4e75b2fe09 | 2d581032404f67ad628da75a64c1cba514b77bf7 | refs/heads/main | 2023-08-29T07:47:28.600815 | 2021-10-30T14:29:26 | 2021-10-30T14:29:26 | 422,897,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,643 | py | # -*- coding: utf-8 -*-
"""
随机森林算法
"""
'''
1.随机森林:
随机森林是包含多个决策树的分类器,其输出的类别是由个别树输出的类别的众数而定。
例如,训练了5个树,其中4个树结果是True,1个数结果False,那么最终结果就是True。
2.Bootstrap抽样:
即随机有放回抽样,是一种重抽样的方法,为了形成随机森林的多个决策树,
要采用Bootstrap抽样,具体过程如下:
①抽取样本:在N个样本中Bootstrap抽取N个,形成一个树的训练数据集。
②选择特征:如果一共有M个特征,则选择m个来训练决策树,m<<M,这样的好处是可以降维。
'''
impo... | [
"noreply@github.com"
] | DataIsStrength.noreply@github.com |
357383ee731f6f3e548ae395bba056b0b0a71aeb | 9acbda554a136235ef2f605281ec39e6c6d8cd63 | /billman/settings.py | 7b47311e624aa21bf2d35d7e64239afeefdaf76a | [] | no_license | arpheno/billman | 23dfa9d6b05ce022ec8b2165c6e5bdf2dad51d91 | 11b6d9386d4e450f75b9c809a48626b2379a39eb | refs/heads/master | 2020-04-10T09:22:55.242570 | 2014-06-07T17:37:51 | 2014-06-07T17:37:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,086 | py | """
Django settings for billman project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
im... | [
"ciupakm@gmail.com"
] | ciupakm@gmail.com |
66768fa558987437e75dd0b92ce3c1a561c04efb | b9650416b09de5ca8f4063a066e56586060f1cf0 | /Tutorial29/tutorial29.py | 27ebdb2a5c415b4b27e6a0505715c2550d1b34f9 | [] | no_license | giova0/cursopython | e0ef2f4edacab706ed896df5b8b22fdc3e9f1b23 | 19790bb6f82dcae80d10df9f5d84df85ae4fea54 | refs/heads/master | 2023-02-21T10:44:51.597349 | 2021-01-26T00:35:02 | 2021-01-26T00:35:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | #import modulo
from modulo import *
suma(8,9)
resta(4,5)
multiplicacion(6,7)
input() | [
"jesusjppr@gmail.com"
] | jesusjppr@gmail.com |
ed42e42af0566b7f01fc67a855eb8e7c557d20a2 | 588de5142e35002b618c5777751f141c075be8fd | /hourofci/hourofci_widgets.py | 2b89a07e5c04fda80ff9b97562caa96a587a59f7 | [] | no_license | IrisZhiweiYan/test_hourofci | 5464035164f4657351c70bc81dfd52694ccd9096 | a4371f88fcd091ae939655da5087b1010a7795f9 | refs/heads/master | 2021-07-14T01:22:27.932172 | 2020-11-09T05:40:27 | 2020-11-09T05:40:27 | 219,059,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | from hourofci import *
from .buttons import button
# import buttons
# CHANGE in v2: pass the answer catalog in the notebook to the widget function
def IntSlider(question, hash_answer_catalog):
# start_time = time.time()
int_range = widgets.IntSlider()
display(int_range)
value = 10
# Iris: wher... | [
"irisgogo.yan@gmail.com"
] | irisgogo.yan@gmail.com |
ca7766b7e9d85b36afe08c3d90244d6b446ff5e9 | 99d3d6132908841edcbc9deec3f590b0e9eba5b6 | /venvpip/bin/macho_standalone | 14da32f6ac9d00114ceb371da83895ecd90dbe2a | [] | no_license | nataliawcislo/cutvideo | 7979066b6ee146d78308832e137dbe0028ccca11 | 66401b15bff3a7e6a01d8eb2d7e308b8bd04d302 | refs/heads/main | 2023-07-28T07:05:06.709878 | 2021-09-14T13:37:08 | 2021-09-14T13:37:08 | 391,267,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | #!/Users/natalka/PycharmProjects/cutvideo/venvpip/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from macholib.macho_standalone import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"wcislonatalia1998@gmail.com"
] | wcislonatalia1998@gmail.com | |
215ae356baf15b509dbf0205fdc664d254fcde92 | 09fbe030de6322ab7d141276fc1f8019cc1604e5 | /migrations/versions/1da835fbb866_season_model.py | 9bdfea12529d693c6a23bdc367ef38e0eb5d0bd2 | [] | no_license | cpkm/darts-site | 0f2dece8c563adfa67f85031d0a99ac947e1508a | 1be939ffe8ba2e58e093adac81993aa19079d1e1 | refs/heads/master | 2022-12-10T00:30:09.173821 | 2021-11-24T01:43:03 | 2021-11-24T01:43:03 | 158,226,996 | 0 | 2 | null | 2022-12-08T01:22:29 | 2018-11-19T13:24:05 | Python | UTF-8 | Python | false | false | 1,492 | py | """season model
Revision ID: 1da835fbb866
Revises: 8689d43c428c
Create Date: 2018-11-27 16:58:53.743252
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '1da835fbb866'
down_revision = '8689d43c428c'
branch_labels = None
depends_on = None
def upgrade():
# #... | [
"20861192+cpkm@users.noreply.github.com"
] | 20861192+cpkm@users.noreply.github.com |
0316e5d65124316a03b71cca0c7a19fb8a058d61 | eaf2c1331eeef64d276d7d77127191a0b7ac6908 | /home/models.py | a8f4e4b4114e33c3a14700d090085fb9619d7358 | [] | no_license | anubhavsrwn/Basic-Django-App | 9378d9244bc34437498c7792646d0fe933e5c40a | de6ccdb378927b35c6c7b916c80290f4d573ea69 | refs/heads/master | 2023-06-26T21:39:20.879087 | 2021-07-20T08:33:40 | 2021-07-20T08:33:40 | 387,726,678 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | from django.db import models
# Create your models here.
class Contact(models.Model):
name = models.CharField(max_length=122)
email = models.CharField(max_length=122)
phone = models.CharField(max_length=12)
desc = models.TextField()
date = models.DateField()
| [
"anubhav.s@technovert.net"
] | anubhav.s@technovert.net |
e469b1c0df202afbdf63411ba8abdbd4527e1190 | 493f99b210303d019f62195ae8dde9d02ee1b81f | /indy_node/test/api/test_rich_schema_objects_reply.py | 56dbda7791bdd23e1fda9ccddcde4b9f7330077d | [
"Apache-2.0"
] | permissive | darklordz-217/indy-node | 745baa357fe739bac20433cb2daa0f7c5a2f2caf | 4d2f6a9dc0ff136117f8766a4f2cf70b239404e0 | refs/heads/master | 2022-10-06T17:01:12.414734 | 2020-06-11T08:49:17 | 2020-06-11T08:49:17 | 271,472,931 | 2 | 0 | Apache-2.0 | 2020-06-11T09:04:23 | 2020-06-11T06:48:21 | Python | UTF-8 | Python | false | false | 2,499 | py | import json
import pytest
from indy_common.constants import JSON_LD_CONTEXT, RS_CONTEXT_TYPE_VALUE, RICH_SCHEMA, RICH_SCHEMA_ENCODING, \
RICH_SCHEMA_MAPPING, RICH_SCHEMA_CRED_DEF, RS_CRED_DEF_TYPE_VALUE, RS_MAPPING_TYPE_VALUE, \
RS_ENCODING_TYPE_VALUE, RS_SCHEMA_TYPE_VALUE, RICH_SCHEMA_PRES_DEF, RS_PRES_DEF_T... | [
"alexander.sherbakov@dsr-corporation.com"
] | alexander.sherbakov@dsr-corporation.com |
c3589908c3d02252488818d8c7ea24447f365be5 | af0d9efc37cc79b170cafcee1a5044588167761c | /clean.py | 0dc4360098b244e5377974c16aec64899d8bb40d | [] | no_license | AcmeCleanPower/HRSLToolkit | 41ba3a817bc5dfb59bdb1bca32def61effbc3902 | 4b5144c775b6bb7292dfec132eabc839cc9c7374 | refs/heads/master | 2021-01-18T20:04:18.656066 | 2017-04-07T20:43:14 | 2017-04-07T20:43:14 | 86,934,250 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | import numpy as np
import scipy as sp
import matplotlib.pyplot as plt
from skimage import morphology
from skimage.external import tifffile as tif
# borrowed from tiff_tools.py
def read_array_from_tiff(fin, band=1):
tiff = gdal.Open(fin)
return np.array(tiff.GetRasterBand(band).ReadAsArray())
def med_filter(mr... | [
"stephen.s.c.chan@gmail.com"
] | stephen.s.c.chan@gmail.com |
44c995550d05f889cc581a0508223c1b95b5eb2d | f3075dd8f88e2d1d3c6ee350098d7bd42238b92c | /naver_map/naver_gigye.py | 1441572bc7711d0e83c1a8ca27bc707c1bafb40c | [] | no_license | jjjjooonno/kmong | 8257a208918b947569d8868605051c7c801f5fa6 | 6a38f5fa4ff031602c70c6ed925fa3abdb6af38d | refs/heads/master | 2020-03-28T22:19:48.693145 | 2018-09-18T03:35:39 | 2018-09-18T03:35:39 | 149,224,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | from selenium import webdriver
from bs4 import BeautifulSoup
from pandas import *
import time
import re
dt = read_excel('행정구역코드(법정동코드)_전체본.xls',0)
dt_dong = dt['법정동명']
dt_dong_new = []
for i in dt_dong:
if i[-1] == '동':
dt_dong_new.append(i)
query = []
for i in dt_dong_new:
query.append(i+' 제조업 > 기계, 장... | [
"jjjjooonno@gmail.com"
] | jjjjooonno@gmail.com |
cd71c189fbf967e745e42e3248c4421abdfecb06 | 8b2be934a63fee5e542bb818e81d1452b31d0ecc | /Candidate_models/final_rnn.py | d18abffcc2c1e35e0e6a9f67ccb9f5d595851a7b | [] | no_license | Danny1379/Computational_intelligence_final_project_NLP | 06cde2ce40c795c57eb0f31235a9ffc98178e7fa | 7c8dc7b69e2f8458959c44b8b1a1e16be300651e | refs/heads/main | 2023-05-14T09:23:13.328895 | 2021-06-01T11:08:50 | 2021-06-01T11:08:50 | 338,410,556 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,850 | py | import numpy as np
import sklearn as sk
import pandas as pd
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.preprocessing import OneHotEncoder
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import train_test_split
from sklearn.linear_model import SGDClassifie... | [
"noreply@github.com"
] | Danny1379.noreply@github.com |
1b2d9640e14054aa031bb6464300d7d9f16da3d7 | 14da21d280a8508de934a68508612af36b42c43c | /mysite/text/migrations/backup/0017_auto_20200714_1701.py | 435eeb64ccf5c4e3f0f3a106b2040fe4d5469db4 | [] | no_license | Shoupinglianginnolux/textmining | dd8bc2e2d5c8ea576fffb8c197f6bcffa64272e1 | c811589c5d675f65a6211aec1df5d408ca1bd98c | refs/heads/main | 2023-08-07T12:52:05.709080 | 2021-10-01T07:07:20 | 2021-10-01T07:07:20 | 412,362,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | # Generated by Django 3.0.4 on 2020-07-14 17:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('text', '0016_auto_20200713_1111'),
]
operations = [
migrations.CreateModel(
name='TMPSRQ',
fields=[
... | [
"shouping.liang@innolux.com"
] | shouping.liang@innolux.com |
d6e158a754d97f4f5e0dedfbf9ad93d4b43e0abe | ec28e7f3290069451ec8889efa4e22b5930979c0 | /strategery/engine.py | c9ee8a83a5a9f31f423dbb23634a73f29cba5401 | [
"MIT"
] | permissive | rcgale/strategery | e226c0deb53a8ff35aa32a25b963807ffc98859f | d1608ea59587d7e49db0bdf788e3243d4d42081a | refs/heads/master | 2021-06-23T16:06:45.218568 | 2021-03-06T01:42:15 | 2021-03-06T01:42:15 | 206,894,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,487 | py | import inspect
import sys
import time
from functools import lru_cache
from strategery.exceptions import TaskError, StrategyError
from strategery.logging import BypassLogger
from strategery.strategy import get_strategy
from strategery.tasks import Task, get_key
logger = None
def execute(*args, targets, input=None, pr... | [
"galer@ohsu.edu"
] | galer@ohsu.edu |
9435b62b274dd42e74992cca64e569aa33c081d9 | 00adb3ceec4e37f8384f575d2711a27ca94327bb | /solutions/836_Rectangle_Overlap/solution_arsho.py | 9cc8700ed4892cd4bd78dee1949d0945fb8ad33a | [] | no_license | arsho/leetcode | 8c7d40de5a2579f06c58474540d704aaae41d81a | 55d52f7b150968ce348782ca30e573ae1cf1bd53 | refs/heads/master | 2023-01-23T20:46:00.859736 | 2023-01-22T15:55:18 | 2023-01-22T15:55:18 | 123,886,220 | 6 | 10 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | """
Title : 836. Rectangle Overlap
Category : Math
URL : https://leetcode.com/problems/rectangle-overlap/
Author : arsho
Created : 23 March 2021
"""
from typing import List
class Solution:
def isRectangleOverlap(self, rect1: List[int], rect2: List[int]) -> bool:
x_distance = min(rect1[2], ... | [
"shahariarrabby@gmail.com"
] | shahariarrabby@gmail.com |
8fcbe2dc5cae2f366d06acf5e7f587d9893d8b85 | 7e181f4925d24c95924920647a8d007f6a609821 | /venv/bin/django-admin.py | 7aded3eddca9f1de5217af11ebfb2746615b12e1 | [] | no_license | Tamim101/portfolio-update | af76cd1db34d4c57658f39b032c40689ad5afe8c | bf52a72eb45c485cad578ef2a81536d8827899dc | refs/heads/master | 2023-04-23T03:47:14.815150 | 2021-05-02T04:29:11 | 2021-05-02T04:29:11 | 363,565,323 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | #!/Users/mujahid/Documents/Django/Personal_Portfolio_/My_Personal_Portfolio/venv/bin/python
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportErr... | [
"tamimkhan7133@gmail.com"
] | tamimkhan7133@gmail.com |
7d3e8a94ef63a6dd931ce66016c56a243fb7a2e9 | 7a402c6bb3887af56ff8609453ef926fa41291a5 | /LightGBMwithSImpleFeatures.py | ebcffd5eb8005c9fe27613e44bc60d7577bc6206 | [] | no_license | lizihaoleo/home-credit-default-risk | cdcfe2ee7768b553205f3121a946535122b8626b | 1a9f8d3ab107f8b3ed59634db71382f4965ecb0b | refs/heads/master | 2021-10-18T05:27:36.397640 | 2019-02-14T03:54:31 | 2019-02-14T03:54:31 | 170,621,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,019 | py | # HOME CREDIT DEFAULT RISK COMPETITION
# Most features are created by applying min, max, mean, sum and var functions to grouped tables.
# Little feature selection is done and overfitting might be a problem since many features are related.
# The following key ideas were used:
# - Divide or subtract important features t... | [
"lizihaoleo@gmail.com"
] | lizihaoleo@gmail.com |
65d5f34158a47d8bcadc80486e61ebf04640a721 | 2e2ecaaace5bcc70ccfad103ddb3692db82ec655 | /django/background_scripts/microsoft/get_utilization.py | 0c87906410b428638748f0f7ee6e6701ca43fa35 | [] | no_license | RobertRajcool/Angular4-Django | 32f3d24c4dbbc42abe671fd65fe98637834a388b | 4424e25f6d9f982d682d13ae0e620dd0a01348a7 | refs/heads/master | 2021-07-10T17:53:36.222339 | 2017-10-10T10:17:56 | 2017-10-10T10:17:56 | 104,564,564 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 15,536 | py | from decimal import Decimal
from . import microsoft_base
from redington import settings
from cloudtemplates.models import CloudRates
from billing.models import CloudServiceConsumptions
from customers.models import Customers, CloudAccounts
from products.models import Products, VendorDetails
from django.db.models import... | [
"doss.cclawrance226@gmail.com"
] | doss.cclawrance226@gmail.com |
2d0368b80dbcb9c47412bfcb2b774d5f053f1fb7 | aea6cb6ab25a288d9a7143d54523d63aee0d67d9 | /alien_invasion/alien.py | 0f3173b69a5052510f6efacd2f79a6ddfb1e8ba0 | [] | no_license | ivanozz/python-crash-course | 13f8fbb00effa37dd513ded6d9d12539af516293 | dd889759275c24bddb2ba55c3c4a86af917781a0 | refs/heads/master | 2021-05-11T01:02:04.620160 | 2018-02-12T17:33:24 | 2018-02-12T17:33:24 | 118,316,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,666 | py | import pygame
from pygame.sprite import Sprite
class Alien(Sprite):
"""Класс представляющий одного пришельца"""
def __init__(self, ai_settings, screen):
"""Инициализирует пришельца и задает его начальную позицию"""
super(Alien, self).__init__()
self.screen = screen
self.ai_set... | [
"iva1989@icloud.com"
] | iva1989@icloud.com |
3d037302f28cf01673df247c203d6585ef894a16 | b7a03c36c8f7d95d7cac3628f7c9d4834f33b2b9 | /week6_EDA_streamlit/day1_streamlit/streamlit_class/utils/dataframes.py | 8761c1b955c376c140a4d4f4ee5bc17d670bef0f | [
"MIT"
] | permissive | Jasc94/thebridge | dcca51d2d9aef7044f87795025678cb4340fb109 | e194e7f5948dc52bc62fc06bd4ae58a031d3aa7a | refs/heads/main | 2023-07-16T04:12:37.673222 | 2021-08-16T16:00:04 | 2021-08-16T16:00:04 | 361,670,388 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | import streamlit as st
import pandas as pd
def get_data_from_df(df):
selected_values = df.iloc[:10,:].values
return str(selected_values)
@st.cache(suppress_st_warning=True)
def load_csv_df(uploaded_file):
df = None
if uploaded_file != None:
#uploaded_file.seek(0)
df = pd.rea... | [
"jonathansuarezcaceres@gmail.com"
] | jonathansuarezcaceres@gmail.com |
112ec58a217bf533202e32fa348ec43b73761ded | f396b2690b62c74dfa6a58a619c9f64828d4cf84 | /TreningDjango/news/migrations/0002_alter_post_slug.py | 00f42b3df82c567631c5fcfaec9191d44eb476b7 | [] | no_license | bart-son/home-budget | 7daf7bd56f9bf819e4777a1d1f1588b433df545c | ef9721a099dc55750c42b1437762bb3b206f53c1 | refs/heads/master | 2023-05-04T23:35:15.796553 | 2021-05-29T07:42:52 | 2021-05-29T07:42:52 | 371,912,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 3.2 on 2021-04-11 12:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='post',
name='slug',
field=mode... | [
"bartosz.kwiatk@gmail.com"
] | bartosz.kwiatk@gmail.com |
f6eee75f1210f4f5852d81892eb4e17c12279a21 | f7dc26779dd5491480b3e88fa1ab38eee99eacad | /third-party-synthetic/third-party-tester/tests/testdefinitions/ping_test.py | d2e1480b1f6af85bfd054fced4bfae7b7be55a4f | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | Dynatrace/dynatrace-api | 13e068a17c08f0e7609438c043066ff4dc6b9357 | 5d85759bbead72dc708581979987c41912393410 | refs/heads/master | 2023-08-11T13:46:46.051080 | 2023-07-24T13:33:50 | 2023-07-24T13:33:50 | 45,841,623 | 99 | 87 | BSD-3-Clause | 2023-07-08T22:51:18 | 2015-11-09T14:04:12 | Python | UTF-8 | Python | false | false | 2,810 | py | import os
from tests import Test, TestStep, TestArgument
from datetime import timedelta
import pings
class PingTest(Test):
"""Ping test class.
It measures the time needed for a single ICMP probe to check server
availability.
"""
TEST_NAME = 'ping'
TEST_HELP_DESCRIPTION = "Test if given hos... | [
"pawel.nalezyty@dynatrace.com"
] | pawel.nalezyty@dynatrace.com |
61dea01dd75ab8c90bcab212f1a036edbc2ab457 | 2bebcab2997a08695378d798ffb196d49ad1b846 | /orders/migrations/0010_auto_20200826_1214.py | e324a93b00264f69ef948c91908114bec10504d1 | [] | no_license | lit-lucy/Pizza-orders | 739049825ac9af266d23b2d2a2af53236b1c728b | 46b5c5aa2bb5e3d5f7c5901f9c06ccec12c8c0d0 | refs/heads/master | 2023-05-31T19:10:42.206173 | 2020-09-04T09:42:49 | 2020-09-04T09:42:49 | 272,914,438 | 0 | 0 | null | 2021-06-10T23:03:50 | 2020-06-17T08:03:56 | Python | UTF-8 | Python | false | false | 432 | py | # Generated by Django 3.0.7 on 2020-08-26 12:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0009_auto_20200826_1027'),
]
operations = [
migrations.AlterField(
model_name='order',
name='delivery_type... | [
"love@MacBook-Pro.local"
] | love@MacBook-Pro.local |
0342556411170d9d8108b8c277f1ca7f02dc2409 | 45e8df26d895fce1ffced77e2fc7c87aa5fcec71 | /leetcode/python-sol/301.Remove_Invalid_Parentheses.py | 6bcb271d66e2d15f39cc41fe7eb7f82c787062cb | [] | no_license | mikehung/competitive-programming | 5c4b429942357bfbe3c8ff2820d5cb5b7c5dc828 | 50713dc5973f2ea42220ac0248c3d1a6d90fcc15 | refs/heads/master | 2021-06-20T08:21:36.837057 | 2021-01-01T01:29:56 | 2021-01-01T01:31:55 | 153,595,870 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | class Solution:
def removeInvalidParentheses(self, s):
def valid(s):
left = 0
for c in s:
if c == '(':
left += 1
elif c == ')':
left -= 1
if left < 0:
return False
... | [
"mikehung@synology.com"
] | mikehung@synology.com |
bcfcfd42d82934ef66bd39ecc5139583c6a927df | f62ff90d7850af458d8f12386fc9ee9134dbe7c1 | /Plots/Showplots/Model_3/Current_Voltage_Curves.py | 2d9023dab4df536df56c4202551adad30523eb73 | [] | no_license | AlexSchmid22191/EIS_R_Sim | 51b431f078cb455fc38637c192436c0523449565 | 851b061e60811e1e58a5b2fd4e393e529c3f86ac | refs/heads/master | 2023-06-27T17:40:59.177270 | 2021-07-22T11:50:27 | 2021-07-22T11:50:27 | 380,768,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,606 | py | from matplotlib.pyplot import subplots, show
from matplotlib.style import use
from numpy import load, log10
use('../Show.mplstyle')
data = load('../../../Currents_Resistances_Model_3/Current_Data_Model_3.npy')
fig_hi, ax_hi = subplots(nrows=2, figsize=(6, 8))
fig_me, ax_me = subplots(nrows=2, figsize=(6, 8))
fig_lo,... | [
"Alex.Schmid91@gmail.com"
] | Alex.Schmid91@gmail.com |
2ad49bb329c46561a59ca0a5e8fdb28c2b53c900 | 3f5d387b70ba0c828d9ebe30e6100d8837466b64 | /FWUploadThread.py | c431d49b7e06187157e6520f7824eba4c7f76789 | [
"MIT"
] | permissive | CsVance82/WIZnet-S2E-Tool-GUI | 502eb04841549ff2ad3eeeabe5f3dccb4c6aa9d8 | 6cadde2c3b37bd3eb403e56e61675ee44e884c5b | refs/heads/master | 2020-03-15T02:53:17.775896 | 2018-04-29T23:38:07 | 2018-04-29T23:38:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,386 | py | #!/usr/bin/python
import re
import sys
import io
import time
import logging
import threading
import getopt
import os
import subprocess
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger()
import binascii
from WIZMSGHandler import WIZMSGHandler
from WIZUDPSock import WIZUDPSock
from wizsocket.TCPClien... | [
"kyi8907@gmail.com"
] | kyi8907@gmail.com |
26ab05607c4b32f1e825bba9fc453b0a897db9b6 | cdf9bba82c5e42758664e1eeb3e157340c29c500 | /generator/test.py | b9f9245ed294e3d2fa2ce52879a97137638525f9 | [] | no_license | mex3/fizmat-a | ce2802035dd045fcf0f6bfe8d6388ed88c6c2af5 | be90332a518f0c3b2113dd967a63f4a056f937ab | refs/heads/master | 2021-01-21T13:41:35.050273 | 2016-05-14T12:13:16 | 2016-05-14T12:13:16 | 55,837,428 | 1 | 4 | null | 2016-05-14T12:12:24 | 2016-04-09T09:59:23 | Python | UTF-8 | Python | false | false | 82 | py | inputq = open('test.txt', 'r')
s=inputq.readline()
print (s)
ss=input()
print(ss) | [
"gurovic@gmail.com"
] | gurovic@gmail.com |
31740dec5203fccc5a4171d951f24d5a9e15aa2a | 59a4a6b9a18778566307af6a281d86c3f79531e0 | /Trening/TreningDjango/asgi.py | 644eee76517ec9b2d15360ca1ad815b2860e5354 | [] | no_license | Kasuczi/WebDev-Back-End | d8448ee2ed052518d95d54953f2672e19d997ea7 | f3759fbd11d4d572fb6cf960d59dbd6e84692f8f | refs/heads/master | 2021-05-26T03:49:11.889975 | 2020-04-08T09:19:11 | 2020-04-08T09:19:11 | 254,039,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for TreningDjango project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"janikowski.mateusz96@gmail.com"
] | janikowski.mateusz96@gmail.com |
690fe2ffb43edf1febae8410ba150129ce00cce0 | 3419067388879d8a6542df01cb0278ae90b021a2 | /py100day/Day01-15/Day04/code/for2.py | 22c96886304fa47ecee9b5c39f3f60d9a36a21f1 | [] | no_license | oweson/python-river-master | faa31c5248e297a92054cc302e213e2b37fb8bd5 | cf9e99e611311b712465eb11dec4bb8f712929b2 | refs/heads/master | 2021-06-21T15:47:01.755957 | 2019-10-02T00:08:05 | 2019-10-02T00:08:05 | 205,607,518 | 0 | 0 | null | 2021-06-10T21:55:20 | 2019-08-31T23:39:55 | Python | UTF-8 | Python | false | false | 173 | py | """
用for循环实现1~100之间的偶数求和
Version: 0.1
Author: 骆昊
Date: 2018-03-01
"""
# 步长是2
sum = 0
for x in range(2, 101, 2):
sum += x
print(sum)
| [
"570347720@qq.com"
] | 570347720@qq.com |
1026e1d0f5add5bf40edc076405f2e409f26c5ce | 2f2682f778512a75a1ff49d7e267c2f4d355c48e | /geoprocess/controllers.py | 7be119b34c9b20b609770261e464a475b5996a9b | [] | no_license | beatcovid/geoprocess | 4a44f46b900c2e0ffed0dab18008e7884e759e3b | c2a7b1e4ede06583679db9dadebe2066b0274e54 | refs/heads/master | 2023-04-13T13:45:48.572825 | 2020-05-27T03:08:14 | 2020-05-27T03:08:14 | 260,215,049 | 0 | 1 | null | 2023-03-29T00:36:19 | 2020-04-30T13:11:38 | Python | UTF-8 | Python | false | false | 4,538 | py | import csv
import email.utils
import json
import logging
import os
import sys
from datetime import datetime
from pprint import pprint
from dotenv import load_dotenv
from pymongo import MongoClient
from geoprocess.find_psma import find_lga, find_sa3
from geoprocess.google_geo import google_geocode, lookup_placeid, pla... | [
"nc9@protonmail.com"
] | nc9@protonmail.com |
36e68501df2d8e58be3d3faf5755ed0cc380b628 | 854660b48f63711489eabd96a6d3cbf69f4c1144 | /CodingBat/WarmUp1/diff21/diff21.py | 1ccef4bbbe8437264f4935a8c30561a58a224abf | [] | no_license | SametSahin10/CodingBat-Exercises | c9727e7d38defeb927d3684263d0d7655b8d8afa | e7371a8b8c71706872c8ba7a0d140d19e7ce20dc | refs/heads/master | 2021-05-10T09:12:21.039238 | 2018-03-05T20:05:54 | 2018-03-05T20:05:54 | 118,917,328 | 2 | 0 | null | 2018-03-05T20:05:55 | 2018-01-25T13:38:52 | Java | UTF-8 | Python | false | false | 92 | py | def diff21(n):
if(n > 21):
return abs(n-21) * 2
else:
return abs(n-21)
| [
"enesdemirag1@hotmail.com"
] | enesdemirag1@hotmail.com |
6c7fbde29cd1fec7bc805412befb2db644f4048d | a5bb696d63052d6a07d0ca1c48f415e5a5308c8d | /Lesson11/Lesson11_hw02.py | e1d3197e9faaa59f3ec12f3c872a4b8b592b522d | [] | no_license | VitaliiRomaniukKS/python_course | 258af6f1a925c5cbc9207ddf0958f30652e84ff8 | a530d34ad18c6fcb8e4b573376a21fe34f653f77 | refs/heads/master | 2020-09-03T17:27:27.892224 | 2020-03-15T14:44:57 | 2020-03-15T14:44:57 | 219,520,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | # Распарсить файл с информацией о платежах, но использовать только те,
# где тип платежа out, также не все строки могут быть в корректном формате.
# Кто совершал больше всего покупок? На наибольшую сумму? Файл:
out_trans_list = []
with open('payments.txt', 'r') as payments_f:
for line in payments_f:
new... | [
"noreply@github.com"
] | VitaliiRomaniukKS.noreply@github.com |
c0bccab0f33fe2f6323731cddd1742ba4d45275c | aa410a95773aeea73e75f0e701db5cdc0eda890b | /weapons.py | cf6e4eb05ba6ad8a453e07637018051ed6eac5f8 | [] | no_license | predominant/zombsole | ccc00893b7739c5341c43fc28375415fa628b885 | a04ff40a144cb1f63d8aa29ccf0b06ecccc2bc7f | refs/heads/master | 2021-01-21T19:29:05.322551 | 2014-03-26T05:38:15 | 2014-03-26T05:38:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | # coding: utf-8
from core import Weapon
def _new_weapon_class(name, max_range, damage_range):
'''Create new weapon class.'''
class NewWeapon(Weapon):
def __init__(self):
super(NewWeapon, self).__init__(name,
max_range,
... | [
"fisadev@gmail.com"
] | fisadev@gmail.com |
582bb899d0407eb2070b66f080e8e55395136ae0 | 5d9d88881abd73cc841f1bc3a523ebbb1c46f6b4 | /DeepTrainer/DeepTrainer/state_tracker.py | 59f2d525260bf2d1f5fd428196ae7cf7a51ea89f | [] | no_license | zhuMingXu/CarSimRL | 3f6e92d73a6eacc9fc311bc5c71e6e909fe79335 | bcbb7654f1b68b00edb00ccd6d1480a7db9e6598 | refs/heads/master | 2022-04-13T14:04:56.596481 | 2017-02-15T11:57:03 | 2017-02-15T11:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,872 | py | # -*- coding: utf-8 -*-
import constants as CONST
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
class StateTracker():
def __init__(self):
#keeping track of oldest state so I can remove it
#before inserting the most recent state
self.frame_histo... | [
"joshua.d.patterson1@gmail.com"
] | joshua.d.patterson1@gmail.com |
066a9bb3b23255dc5f349786bfe1e4b093454a5a | 238a0dd7c1bd72b8e241798c8d31ff3cbb2c0c90 | /caesar.py | 36d0e4ed7074f13b4cd5f3fa51e5d21e4d8bb64d | [] | no_license | Procerus/caesar-converter | 7881666ae638ef288af873377436fd482797182c | 92a8ce5e764e552351e51048384747683a634c2e | refs/heads/master | 2020-09-19T21:21:34.310140 | 2019-11-26T23:00:48 | 2019-11-26T23:00:48 | 224,301,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | # This program takes in a user input when running the program as an argument
# that number is a key that will shift the associated text that the user enters
# next and shifts every letter that amount
import sys
def main(argv):
try:
sys.argv[1] == None
except IndexError:
print("Usage: p... | [
"noreply@github.com"
] | Procerus.noreply@github.com |
2eac0fe3402f79f389178ebe792a10a16f7c1a4a | 039f2c747a9524daa1e45501ada5fb19bd5dd28f | /AGC001/AGC001c.py | 6f3fb7892212fb5a2683a833717ea55a344d0dfd | [
"Unlicense"
] | permissive | yuto-moriizumi/AtCoder | 86dbb4f98fea627c68b5391bf0cc25bcce556b88 | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | refs/heads/master | 2023-03-25T08:10:31.738457 | 2021-03-23T08:48:01 | 2021-03-23T08:48:01 | 242,283,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | #AGC001c
def main():
import sys
input=sys.stdin.readline
sys.setrecursionlimit(10**6)
# map(int, input().split())
if __name__ == '__main__':
main() | [
"kurvan1112@gmail.com"
] | kurvan1112@gmail.com |
c058ffd30adadb95fe7dfaf10ca143450a96c2c5 | 445720e21dce60d8504daeb68a97525343a95639 | /PyCybos/pycybos/cybos_EurexJpBid.py | 2730aced35e282a67acf7d661199f2898493b0d1 | [] | no_license | QuantTraderEd/AQTrader | 60826cd71b0fa568852f23be9daeb7f65a13e845 | c65ecba53beebce500a2e9cde0bd54374851e980 | refs/heads/live_patch | 2021-06-01T16:40:30.350977 | 2020-05-31T07:06:56 | 2020-05-31T07:06:56 | 145,120,057 | 2 | 0 | null | 2020-02-06T13:00:22 | 2018-08-17T12:51:13 | Python | UTF-8 | Python | false | false | 548 | py | # -*- coding: utf-8 -*-
"""
Created on Sat May 31 14:14:25 2014
@author: assa
"""
from cybos_source import Source
class EurexJpBid(Source):
""" subscribe index option quote """
def __init__(self, code = None):
super(EurexJpBid, self).__init__('CpSysDib.EurexJpbid.1')
self.type = 'TAQ'
... | [
"hyojkim79@gmail.com"
] | hyojkim79@gmail.com |
a61174c4d8077eef4dc25a83b1c32e6f227bcf5d | f0f2d8cb16d494443a678ea24c04be95d1cbf824 | /Time_table_generator_/py_ui/Room.py | e40c89794cad5314c9a7d7c2e008ddbbc15889b5 | [] | no_license | Automatic-Timetable-Generator/ATG | 314e09b2becef67913df0744c094bca4d20635f0 | 6b1187e0be434346bfdd1a61a30bb57718fb0cbc | refs/heads/master | 2021-02-17T10:51:00.604358 | 2020-04-08T07:30:30 | 2020-04-08T07:30:30 | 245,091,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,306 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'room.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.s... | [
"noreply@github.com"
] | Automatic-Timetable-Generator.noreply@github.com |
203f04df3c3f6b979898621a354f1d50daec9fe6 | db01067e88324466ba4743e5e53cd53de609c342 | /04. Functions Basics Lab/01. Grades.py | 0f7ea110f53b23d04e17bca1968d4c40ba88f432 | [] | no_license | IlkoAng/-Python-Fundamentals-Softuni | 07eaf89d340b2e60214ab5f8e896629ae680dc4a | 01a112b13e84ab2f29e6fc4ed39f08f395d54429 | refs/heads/main | 2023-05-18T02:11:53.676763 | 2021-06-06T15:39:22 | 2021-06-06T15:39:22 | 371,475,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | def solve(grade):
if 2.00 <= grade <= 2.99:
return "Fail"
elif 3.00 <= grade <= 3.49:
return "Poor"
elif 3.50 <= grade <= 4.49:
return "Good"
elif 4.50 <= grade <= 5.49:
return "Very Good"
elif 5.50 <= grade <= 6.00:
return "Excellent"
grade_dat... | [
"noreply@github.com"
] | IlkoAng.noreply@github.com |
9cc02e6a288eb047e372805fdff7b5c41409b6f1 | 7b71da9189de3358ef73b37a3083a56c1ab10772 | /robobench/calibration/pipette_calibration/classify.py | 3f968b169085ed7e6e911dc5b6a88230de32baef | [] | no_license | EndyLab/opentrons | 91ff3b8364c9b1746f7d073875651baa5efaf4c3 | 75d1789ad6ddef556a2c46e6608d5496f9f5ec7d | refs/heads/master | 2021-01-13T13:39:32.443502 | 2019-11-19T22:23:47 | 2019-11-19T22:23:47 | 76,410,678 | 8 | 0 | null | 2020-10-27T21:05:49 | 2016-12-14T00:42:02 | Roff | UTF-8 | Python | false | false | 1,890 | py | import cv2
import numpy as np
# classifies an array of imgs
def knn(img, k=5):
# load the data we generated previously
training_dir = "C:/Users/gohna/Documents/bioe reu/opentrons/robobench/calibration/pipette_calibration/training"
samples = np.loadtxt(training_dir+'/general-samples.data').astype(np.float32)
respo... | [
"natagoh@stanford.edu"
] | natagoh@stanford.edu |
8652d45d2d668f0a709c1b4574844c3bdb0bca45 | e7e4943e67db51791de9f0dbd302a1e6bf6e7446 | /Prism_RayTracing.py | 6d3a97582d0740e14cc88a6a871a1655fb4c8a2d | [] | no_license | benchizhao/RayTracing-week1-4 | 7b8949cebd77db81323bbbb686a3a7c11f1eb392 | 2aa5bc00b5a497018d3e0e8fb37a967375c5e0d4 | refs/heads/master | 2022-11-08T00:42:07.001028 | 2020-06-29T03:59:00 | 2020-06-29T03:59:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,663 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 11 09:23:07 2020
This file needs three packages:numpy, matplotlib.pyplt, math.
This .py file simulate the behavior of the prism. The geometry of the prism is equilateral triangle.
To trace the ray, we use the state of ray to describe. To trace the ray while refrac... | [
"noreply@github.com"
] | benchizhao.noreply@github.com |
9ced689eedce285664f086c784d82698560785ff | 324ae3f56926da4169598897b4b9f06053d0a78d | /src/satisfy/nonogram.py | a0d242026fbebebb46a473f94765a8a6f23c6589 | [
"Apache-2.0"
] | permissive | simone-campagna/satisfy | 654152b410f81d0aaa672a8f3629aecce5924498 | b5327e937e32c5324c05f6288f59cfaac4a316dc | refs/heads/master | 2023-06-29T04:46:00.051479 | 2019-06-29T17:20:35 | 2019-06-29T17:20:35 | 157,007,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,321 | py | import collections
from .solver import ModelSolver, VarSelectionPolicy
__all__ = [
'NonogramSolver',
'pixmap_shape',
'pixmap_to_nonogram',
]
VarInfo = collections.namedtuple('VarInfo', 'size start_value end_value')
class NonogramSolver(ModelSolver):
def __init__(self, nonogram, **args):
... | [
"simone.campagna11@gmail.com"
] | simone.campagna11@gmail.com |
cee887c62ba400532290d58768227c8f8146d85e | e892207dd96f39ee2b9a99761b08381c442bef61 | /sources/simple_shop/adapters/message_bus/scheme.py | aa54e44be9cd5c4ff308c76d099b67dd11a68c6a | [
"MIT"
] | permissive | theevs/classic_demo_medium_difficulty | f9196795bd60acea3458c3b83d8a56c79ecdb9e7 | 335b50f9509c85dc426a76dbef7f7f2d28603e76 | refs/heads/main | 2023-08-31T21:32:51.001017 | 2021-10-26T14:38:58 | 2021-10-26T14:38:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from classic.messaging_kombu import BrokerScheme
from kombu import Exchange, Queue
broker_scheme = BrokerScheme(
Queue('PrintOrderPlaced', Exchange('OrderPlaced'), max_length=1)
)
| [
"variasov@gmail.com"
] | variasov@gmail.com |
1955dee98cd2d41ac68b3c467664e2dd537aaf21 | 354f5a285b0c6f14475aba45a18312995a337de6 | /core/admin.py | 7a082b38139b57888ec5f982338832dba5f04bf7 | [] | no_license | lucasdmarten/navedexAPI | 45063cf63a8b7d55cc23a01ada6451a8e726e6f7 | 712425268a2cbd8f041deac32ea3d25292ea30fe | refs/heads/master | 2023-03-23T11:27:19.833069 | 2021-03-15T22:15:41 | 2021-03-15T22:15:41 | 345,178,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,453 | py | from django import forms
from django.contrib import admin
from django.contrib.auth.models import Group
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from django.core.exceptions import ValidationError
from core.models import MyUser, Nave... | [
"lucasdmarten@gmail.com"
] | lucasdmarten@gmail.com |
6f53e73452513ff22b1f2c3fd170aeff0d69f4c2 | 532dc9970b8808fe806aa6a02c0cf9bb7c742b3c | /model_form/forms.py | 1a207e3c15e90dcd1a694af226bcfe159e1a27f5 | [] | no_license | adkhn777/forms_example | 3e604aaa3390d49d2b76c83c07ec5d1d837e56ed | 56b78b770bdddbb984585c08f2d9c495345622b1 | refs/heads/master | 2021-01-24T11:22:11.893363 | 2016-10-07T07:06:47 | 2016-10-07T07:06:47 | 70,223,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from django import forms
from .models import ModelFormModel
class ModelFormForm(forms.ModelForm):
class Meta:
model = ModelFormModel
fields = ["name", "bio"]
| [
"adnan@tuple.tech"
] | adnan@tuple.tech |
008b54483f4cb8901c5fb12ee52cc4dfed87daa6 | 8900db5096dcf2f8a758f6792cc7c8f2bc1d7785 | /src/dataset.py | b23694ff85df42853de900a29099a30f0b2c3931 | [] | no_license | PeterZhouSZ/seg2vid | ca5d649a19c47b769fc243ef5da4f95e965c42a9 | 306ca254ac30620afe48767d02b9cf3fecba1194 | refs/heads/master | 2020-06-01T19:50:22.737812 | 2019-03-26T11:37:58 | 2019-03-26T11:37:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,811 | py | from datasets.dataset_path import *
def get_training_set(opt):
assert opt.datset in ['cityscapes', 'cityscapes_two_path', 'kth']
if opt.dataset == 'cityscapes':
from datasets.cityscapes_dataset_w_mask import Cityscapes
train_Dataset = Cityscapes(datapath=CITYSCAPES_TRAIN_DATA_PATH, datalist... | [
"panjunting@sensetime.com"
] | panjunting@sensetime.com |
cb5a0612aa59838260c5412af9a13b580b3b489b | 28114f0389cc27d34c3a12e241cc4aac73952b3c | /SensorData/SensorData/urls.py | c9ea4cd0562eb2141ab41382d17844dc50c4a54a | [] | no_license | sherlockvind/swlab2_assignment5 | 57e1feebc377be4dacaf555ac1db1a28798a7fa5 | 5c8da346e7bbdbcd4942af4bb88fa68d113b861b | refs/heads/main | 2023-04-06T15:58:39.086948 | 2021-04-21T07:17:57 | 2021-04-21T07:17:57 | 353,388,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | """SensorData URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"vb.3596@gmail.com"
] | vb.3596@gmail.com |
5314e273b1fab0e24e981f1fa735e30171ba22a2 | a76ea88df1f28bab17fae40f1c0b4a4471e3da05 | /wanderbot-ws/src/teleopbot/src/keys_to_twist.py | 6fd8b0342f416ee377d5cad97ce7997915336bc4 | [] | no_license | oemergenc/ros-wander-bot | 0182b902851f6e896654c72d08e7c86f2bd72311 | d78d2a6595882f2f05c468c84a4d102cca8a699b | refs/heads/master | 2020-04-14T02:03:03.829173 | 2019-01-07T10:05:29 | 2019-01-07T10:05:29 | 163,575,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | #!/usr/bin/env python
# BEGIN ALL
import rospy
from std_msgs.msg import String
from geometry_msgs.msg import Twist
# BEGIN KEYMAP
key_mapping = {'w': [0, 1], 'x': [0, -1],
'a': [-1, 0], 'd': [1, 0],
's': [0, 0]}
# END KEYMAP
def keys_cb(msg, twist_pub):
# BEGIN CB
if len(msg.da... | [
"oemergenc@gmail.com"
] | oemergenc@gmail.com |
dafc1d3715006b5918f20ffe70c8e774c8a86cf5 | 1fb9a17e9273a627b090b1f332fab15f14d5baca | /Clustering_Twitter_Data.py | e0a27cd69ed88ca34b7c77cfda65f70fe673eb8e | [] | no_license | Akhilavk1106/Clustering-Twitter-Health-Data | 1803481d3f52d7167909c15404894e4a73cd2fd1 | 8dc2f3a30d68ac287680ecc4318ea2c621b12933 | refs/heads/master | 2020-03-29T07:34:13.632976 | 2018-09-21T00:52:54 | 2018-09-21T00:52:54 | 149,670,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,983 | py |
import re
from nltk.corpus import stopwords
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.decomposition import PCA
from sklearn.cluster import KMeans
import matplotlib.pyplot as plt
import numpy as np
from sklearn import cluster, datasets
import pandas as pd
import sys
original_labels=np.emp... | [
"noreply@github.com"
] | Akhilavk1106.noreply@github.com |
41203f92213b29c8d6459485d713fd321114f4fd | 6f33999bb1cc273388bf4d7dfa550bdf428cdf04 | /myapp/migrations/0001_initial.py | f97924a41e670ebe398b72ef59bf9e701d396ab3 | [] | no_license | xiezongzheng/test9_29 | 863fa5b85b65b2200b070800c576f41da11d4653 | afb8c567f29f60a9e9d28693ceb1bfada967e44a | refs/heads/master | 2021-01-10T01:19:05.587110 | 2015-11-01T04:17:44 | 2015-11-01T04:17:44 | 44,243,815 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,063 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Bactname',
fields=[
('id', models.IntegerField(... | [
"421489422@qq.com"
] | 421489422@qq.com |
4bfe6ebbc3532652449f4621355b38f922dd4b06 | 977eb763cdf049d6cd58b3055bd353e2d93afbed | /readfinstar.py | ae730e393490e5c4d0bf1c6bf0f47bf9db7fea71 | [] | no_license | syadav8126/toofanTicker | 7a64a3af9b1e73d20ab8b3d6af18c7e99c7a8a19 | e731748e54c780d3964a0e8595d0f08e46d1d938 | refs/heads/main | 2023-02-20T07:36:15.848279 | 2021-01-26T06:44:01 | 2021-01-26T06:44:01 | 332,995,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | import finstar
import csv
import sys
import subprocess
from subprocess import Popen
import time
input_file='standalone.csv'
with open(input_file, 'r') as f:
data = csv.reader(f)
for row in data:
cmd=[sys.executable, './finstar.py',row[0]]
Popen(cmd,shell=False,stdin=None,stdout=None,stderr=None,close_fds=True)
... | [
"syadav8126@gmail.com"
] | syadav8126@gmail.com |
971bdaf13fb6d5bfbbcd7260417062a0c83db880 | f84ecb8178baaad91914ca20212a67d22fdce293 | /account/account/settings.py | 229e6511004eb60dc7308bd414a52f6cd2a9a762 | [] | no_license | TonyMistark/account_statement | 33047972fcf2854a973e35a8aea56ec0e051b2a1 | aeb66f1ca687e3afe4f0c308889929019209ec4e | refs/heads/master | 2021-01-22T03:49:13.483873 | 2017-02-09T16:22:14 | 2017-02-09T16:22:14 | 81,460,715 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,791 | py | """
Django settings for account project.
Generated by 'django-admin startproject' using Django 1.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# B... | [
"tony_mistark@163.com"
] | tony_mistark@163.com |
5dc6bd71fa378f65e395229b4201d11a93f1a69b | e55c20745958762f899d79e9fad8fedee0cc2a53 | /apps/courses/migrations/0009_course_teacher.py | bb9c3c92de0ba0507b54c908fbc1b9af6b5a71f5 | [] | no_license | lisi2016/MxOnline | 1b4703fbac6c88c66f0e7b3b5fbcfb1f1ab077ee | 0aeca26244b8c446fea096dcdbefcbaee2835dc1 | refs/heads/master | 2021-08-19T01:25:34.808049 | 2017-11-24T10:14:06 | 2017-11-24T10:14:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-11-17 15:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('organization', '0006_teacher_image'),
('courses', '000... | [
"caozhiqiango@foxmail.com"
] | caozhiqiango@foxmail.com |
6168b0398ebb09f7c55ed863aca797354077e778 | c0b4a1991ad529f162779e60d0af3e22f2468aaa | /cogs/members.py | fa99048e26540f997e676784f27765288f0b4420 | [] | no_license | scosco97/apibot | 51ae66317a4abfe7bb9380b23679ad476800ad1e | 3f714c2daa6a2cd046d417bc0e74e2501ed55959 | refs/heads/master | 2023-07-29T09:05:36.770121 | 2021-09-11T20:19:35 | 2021-09-11T20:19:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,015 | py | import discord
import random
from config import settings
from discord.ext import commands
class MembersCog(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command(name="welcome", hidden=True)
async def welcome(self, ctx, member: discord.Member = None):
if not member:
... | [
"wpmjones@gmail.com"
] | wpmjones@gmail.com |
eaeef1d5a47d3ff5621d988c694458cf63dc39a6 | ceab178d446c4ab55951c3d65d99815e9fdee43a | /archive/coding_practice/python/ticks_plot.py | 83e7d35370f009514aa95366b78a92f4f61f0afa | [] | no_license | DeneBowdalo/AtmosChem_Tools | 01ecedb0df5c5d6e01966a0c3d8055826f5ac447 | 220c2f697a4f4c1e5443c336ede923b2004fe9f5 | refs/heads/master | 2021-01-10T18:05:30.800218 | 2017-02-06T16:08:14 | 2017-02-06T16:08:14 | 43,529,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | import matplotlib.pyplot as plt
x = [5,3,7,2,4,1,11,25,33]
plt.plot(x)
plt.xticks(range(len(x)), ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i']);
plt.yticks(range(1,36,2));
plt.show()
| [
"db876@earth0.york.ac.uk"
] | db876@earth0.york.ac.uk |
def39a55d547e1131e0f8dcf639f5da81e09bb90 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /cGaTqHsPfR5H6YBuj_0.py | c3936bfae1158025ccd064458e0c9c17ee2d0b5e | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | """
Given a list of ingredients `i` and a flavour `f` as input, create a function
that returns the list, but with the elements `bread` around the selected
ingredient.
### Examples
make_sandwich(["tuna", "ham", "tomato"], "ham") ➞ ["tuna", "bread", "ham", "bread", "tomato"]
make_sandwich(["cheese", "le... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
7637d837e8cb0ba7f81221d92b23e7c92de9f971 | f925eae9b78d44f9aa56cff17ef07aab87346a18 | /stats/plot_all_roles.py | 7e0f598a1128f40a4935de1b80120f39d0da950a | [
"MIT"
] | permissive | wejradford/castminer | f05d965e514c236657142c4db15a5c42db5160d1 | 6b792ba59621e7d0925d4ed683a51946c5193f3c | refs/heads/master | 2020-12-24T08:55:13.205547 | 2016-09-06T12:46:15 | 2016-09-06T12:46:15 | 31,730,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | #!/usr/bin/env python
from __future__ import print_function
import logging
import os
from utils import argparser_factory, db_factory, plot_role_counts, \
get_all_role_counts, FIGS
log = logging.getLogger()
p = argparser_factory()
p.add_argument('-w', '--window', default=5, type=int)
args = p.parse_... | [
"wejradford@gmail.com"
] | wejradford@gmail.com |
d0b7766854f6f8576dbddc9fb4645f233cca2c41 | 2f3999daf2a359f6677835718958ca6c6e0e4a6a | /example1.py | 7a6e8c0a528cd327d451c3a3f6724d5cb11f6fac | [] | no_license | Sangeetha-Naresh/class97 | d9402203a5804ecd24d51e4eb6eff2cb8b4802ec | 6d36c52368bcc9dd47bf011c48768b5358b4e5c5 | refs/heads/main | 2023-05-06T22:37:51.255175 | 2021-05-16T14:59:01 | 2021-05-16T14:59:01 | 367,911,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | age= int(input("enter your age:"))
if age>18:
print("you are an adult")
elif age >12:
print("teenager")
else:
print("kiddo") | [
"noreply@github.com"
] | Sangeetha-Naresh.noreply@github.com |
efe1f8c522d049fcbb235a250a4ab33ac544503a | 47299b9cca902b847371fa78eacbdaae0bae25f4 | /webclone/one/urls.py | d67a6f7c91c658bc0feb139b85ba6826aba95130 | [] | no_license | kapoorarpit/web_clone- | 5c293fc2c10568562fd3c678e2fc8e43bc436b93 | 3540255fd6336583a9409c51deff0eae92810ee8 | refs/heads/master | 2023-06-11T04:51:07.138328 | 2021-06-29T19:50:52 | 2021-06-29T19:50:52 | 321,369,324 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | from django.contrib import admin
from django.urls import path
from .import views
urlpatterns = [
path('', views.home, name='home'),
path('home/search/', views.search, name='search'),
]
| [
"kapoorarpit2000@gmail.com"
] | kapoorarpit2000@gmail.com |
b01ea9b981eaf809aed4db02cdf99add3ef4992e | a4753147801dbabfec45f6f9f47572cda77efb81 | /debugging-constructs/ibmfl/util/data_handlers/mnist_pytorch_data_handler.py | 29cc18afb938e575e71025d9007fd67f722221b9 | [
"MIT"
] | permissive | SEED-VT/FedDebug | e1ec1f798dab603bd208b286c4c094614bb8c71d | 64ffa2ee2e906b1bd6b3dd6aabcf6fc3de862608 | refs/heads/main | 2023-05-23T09:40:51.881998 | 2023-02-13T21:52:25 | 2023-02-13T21:52:25 | 584,879,212 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,460 | py | """
Licensed Materials - Property of IBM
Restricted Materials of IBM
20221069
© Copyright IBM Corp. 2022 All Rights Reserved.
"""
import logging
import numpy as np
from ibmfl.data.data_handler import DataHandler
from ibmfl.util.datasets import load_mnist
logger = logging.getLogger(__name__)
class MnistPytorchDataHan... | [
"waris@vt.edu"
] | waris@vt.edu |
911507e11b9253bb23a002ed90852dba054ea2f8 | 9e22cd10e0e89872146b2ced45a8fcff29ae30d2 | /module_integration/raspberrypi/manage.py | 50d7c99e7444d50ab732838ce32b87b4252cd5e2 | [] | no_license | Supriya-Suresh/eYSIP-2017_Vegetable-Identification-Using-Transfer-Learning | ca19833e5a2208252bfcf33515fd7ea0a3480c6d | 8c570408b4394789840660fa9123caea8e634f6c | refs/heads/master | 2022-11-23T22:59:40.466739 | 2017-07-08T06:20:49 | 2017-07-08T06:20:49 | 107,849,691 | 0 | 0 | null | 2022-11-22T01:06:25 | 2017-10-22T08:34:22 | Python | UTF-8 | Python | false | false | 10,977 | py | import loadcell as lc #import load cell library
import RPi.GPIO as GPIO
import lcd #import lcd library
import kpad #import keypad library
import time
import os
import math
import datetime
import sys
import json
#address constant for lines in lcd display
LINE_1 = 0x80
LINE_2 = 0xC0
LINE_3 = 0x94
LINE_4 = 0xD4
baseValu... | [
"techieboy.teknas@gmail.com"
] | techieboy.teknas@gmail.com |
7eced97eac47dfd2ce21cee31fe289634f7a5bf7 | eac6dc8eb8e5f088500f425a7323cd35a4f99bd6 | /src/courses/migrations/0012_course_active.py | af89db3155df4d47be9b84b4c843f0b847c617a6 | [] | no_license | aminhp93/django_serverup_2 | a14195af756799795282028ba611dbccc3848870 | aef31722e882367c731e9e48fc8af8740befc112 | refs/heads/master | 2020-05-27T01:54:15.268661 | 2017-02-25T21:58:36 | 2017-02-25T21:58:36 | 82,514,017 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-19 18:06
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0011_auto_20170219_1749'),
]
operations = [
migrations.AddField(... | [
"minhpn.org.ec@gmail.com"
] | minhpn.org.ec@gmail.com |
472f3e9fe76c99a8fc0b7f48fea8176b6b9b582e | 5f9ec375125dae625b5fe169b6f3f836a2431dd1 | /core/logger_helper.py | 9ce5bc46fbbe8b6e97a9ed7da18f446afd2fbc52 | [] | no_license | mumudd/python_weixin | e280b6bdc81f30365b1bb0e4700d9a00e6b99037 | 144dbedc72c010beae0d243001b82b9f687d0a1f | refs/heads/master | 2021-06-23T20:14:36.237386 | 2020-12-09T08:37:51 | 2020-12-09T08:37:51 | 160,120,308 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | import logging
from logging import Logger
from logging.handlers import TimedRotatingFileHandler
'''日志管理类'''
def init_logger(logger_name):
if logger_name not in Logger.manager.loggerDict:
logger1 = logging.getLogger(logger_name)
logger1.setLevel(logging.INFO) # 设置最低级别
# logger1.setLevel(l... | [
"sufaith@foxmail.com"
] | sufaith@foxmail.com |
72b1bd0b8b29a08c14a6a75b7ceb058d86883236 | 39d100d1ed768ab4bdc768dc70e68d4bf943f233 | /tgmate/views/__init__.py | a21ee0f14e8e4e8b7a1506789e34fefb9805171c | [] | no_license | ivan-koryshkin/tgmate | 702b5c465a3435be134d858cc5fbd0f5ca8fd1f3 | 7ae1f5125ac19f00c53d557c70dbbdbe99886cac | refs/heads/master | 2023-08-30T09:20:04.947011 | 2021-11-09T13:21:17 | 2021-11-09T13:21:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | from .admin_view import UserModelView
from .admin_view import TgUserView
from .admin_view import MessageView
from .admin_view import ChatView
__all__ = [
'UserModelView',
'TgUserView',
'MessageView',
'ChatView'
] | [
"ivan.koryshkin@gmail.com"
] | ivan.koryshkin@gmail.com |
f42e13027d1095f41cb53f127f04978052b43ba3 | 8b07bc3844f23054abccae1d50e1bc5ede5943c3 | /producto/migrations/0003_producto_disponible.py | 0723fa7bfd1f6bfdb2e002ca5efd13b4510feb82 | [] | no_license | HedleyPty/PythonAnywhere | 9c5ba4913e7f8d188d1fb1a0f6f8a3aa4b96210d | 324bdb325db2ecfe22521d82ee3fe6cb2acc927a | refs/heads/master | 2021-09-14T08:53:48.957057 | 2018-05-10T19:02:40 | 2018-05-10T19:02:40 | 112,934,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-22 08:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('producto', '0002_auto_20160221_1425'),
]
operations = [
migrations.AddField(... | [
"hedleypanama@gmail.com"
] | hedleypanama@gmail.com |
b2bed29df5eede8d6e01cc0c3ae685153dd0d69a | 84750e22e48440a292c305dbd2ae75c4a210e934 | /exspider/utils/view_funcs.py | 736f3db21f558507697e89f6966b94cbba6307eb | [] | no_license | stonegithubs/exspider | 617800a13ec9a1ca9c723d517766d00dcedd36a1 | 42b5cb0415c90dd60bc2c009a6aa467e71823854 | refs/heads/master | 2022-08-02T10:02:55.566046 | 2020-04-29T14:54:58 | 2020-04-29T14:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | #! /usr/bin/python
# -*- coding:utf-8 -*-
# @zhuchen : 2019-03-06 15:18
import time
from django.conf import settings
from rest_framework.response import Response
# 成功
success_code = {
1: "{}"
}
# 用户错误
user_error_code = {
1001: "登录失败",
1002: "重复请求验证码",
1003: "验证码错误",
1004: "您已经登录",
1005: ... | [
"chen.zhu@blacktail.tech"
] | chen.zhu@blacktail.tech |
f20a1f49d564b9bb5bdee9d117e1c5832706526f | 639d66b4a667db97c2638132dd028b7f5b865ef0 | /splash_screen.py | 6e5e635b1b0dac9fae73c7f54c4e3271555746a6 | [] | no_license | liturreg/blackjack_pythonProject | d91d21494b21159667f48a683b919ea68401c56c | b88f15ac35db8fbeb8b00234084c5b114383d6cd | refs/heads/master | 2023-01-29T18:45:08.531471 | 2020-12-07T19:57:33 | 2020-12-07T19:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | def splash_screen():
print(r""" /$$$$$$$ /$$ /$$ /$$$$$$$$ /$$ /$$ /$$$$$$ /$$ /$$ /$$$$$$$ /$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$$$$ /$$$$$$ /$$$$$$ /$$ /$$
| $$__ $$| $$ /$$/|__ $$__/| $$ | $$ /$$__ $$| $$$ | $$ | $$__ $$| $$ /$$__ $$ /$$__ $$| $$ /$$/ ... | [
"nicolas.gasco92@gmail.com"
] | nicolas.gasco92@gmail.com |
ba63f7efdf10aab9c7481c9a2bee33143ac12df2 | 2037235643046608bf883f11c1bc448e2df8a4a3 | /HuaYing/practice/test14.py | a18f331036c28c57f36f4079f83d4f9d3c4a6650 | [] | no_license | Hardworking-tester/HuaYingAutoTest | 7e46dfb0729961cee0da06762fc0be11724ad80b | c1f0cf7aa4433f482bbae88d1a5637b9859359ca | refs/heads/master | 2021-01-10T18:38:37.788736 | 2015-09-05T10:37:10 | 2015-09-05T10:37:10 | 41,957,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | #encoding:utf-8
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
br=webdriver.Firefox()
# br.maximize_window()
br.get("http://www.xebest.com:8000")
elements=br.find_elements_by_class_name("nav-arrow")
element1=elements[4]
if element1.is_displayed():
print ("网站导航链接已定位到"... | [
"373391120@qq.com"
] | 373391120@qq.com |
fd57d33c643143a4cd19384011907536cfa8de5d | 4864834342f99fff07f3c8b61c39f90228988ccf | /goldi_locks.py | acc88c342cb4f2fcc6722f6c6256ae7bb472caf4 | [] | no_license | Kyle628/dailyprogrammer | 6999d37d5449942e3a1a04800bf4999c2530d06b | 7985f6ecaf88d0e6d1247d38959c17e90256e1d4 | refs/heads/master | 2020-06-23T13:40:27.510734 | 2017-05-10T17:48:57 | 2017-05-10T17:48:57 | 74,647,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | import sys
input_str = "100 80\n30 50\n130 75\n90 60\n150 85\n120 70\n200 200\n110 100"
lines = input_str.split('\n')
first_line = lines.pop(0).split(" ")
weight = int(first_line[0])
temp_tolerance = int(first_line[1])
for i,line in enumerate(lines):
line_arr = line.split(" ")
weight_capacity = int(line_a... | [
"kyjoconn@ucsc.edu"
] | kyjoconn@ucsc.edu |
8c0ee08b61836fa5388ef5e53460488f7c307034 | 03afa9df5e088558fffdf1594344d609ab199720 | /model_full_no_stage2_1RIM.py | df200ad92466861e2e25ce5de6a6c2cb3cb04976 | [] | no_license | tungvd345/Deraining | 46489a376446c717914362ed36d997622df14c27 | 3dde575c620ddabca44341a4d078a34a9c67f6ea | refs/heads/master | 2023-03-18T13:45:27.630232 | 2021-02-19T06:26:11 | 2021-02-19T06:26:11 | 265,502,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,268 | py | import torch
import torch.nn as nn
from torch.nn import init
import torchvision.transforms as transforms
import torchvision.models as models
import functools
import torch.nn.functional as F
import numpy as np
from torch.autograd import Variable
from math import log10
class Deraining(nn.Module):
def __i... | [
"noreply@github.com"
] | tungvd345.noreply@github.com |
636022ef17714db27f131c08daa673606f4185d8 | 511b7b19ec49be34bec240ee7c7cf4178cd36ca3 | /gasolinestation/migrations/0013_auto_20200304_0909.py | fb6c52a8156995aa62443e5a937be261f2953067 | [] | no_license | francisguchie/360POS | 58de516fe52e83d6b99bd195d22c8aa902daee18 | 68f9e20ac263c75ec0c9b0fe75d7f648b8744ea8 | refs/heads/master | 2023-02-08T16:38:42.667538 | 2020-03-12T16:05:00 | 2020-03-12T16:05:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # Generated by Django 3.0.3 on 2020-03-04 09:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gasolinestation', '0012_transactionsales'),
]
operations = [
migrations.AddField(
model_name='transactionsales',
nam... | [
"monde.lacanlalay@gmail.com"
] | monde.lacanlalay@gmail.com |
cf84225fbffedd219649f40d7ee33aca423ff344 | 0d9c0d0b0dedfa3da12f5850e8492b9554b8c383 | /tic_tac_toe_OOP.py | 50f996110a0b67cf69af408a649d2ce7b14f7e58 | [] | no_license | PCassiday88/CS506-Winter-21-TP | 7bdb61c850e6ae875b94049383120fe2659b9339 | 483b19e3afe5d3f2898b7e32791ef095d6ddbeae | refs/heads/main | 2023-03-21T09:41:12.428950 | 2021-03-13T06:32:50 | 2021-03-13T06:32:50 | 345,913,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,761 | py | #This version wis complete without AI
board = []
for square in range(10):
square = str(square)
board.append(square)
class Board:
def __init__(self):
pass
def show_Board(self, board):
print('-----------')
print(' ' + board[1] + ' | ' + board[2] + ' | ' + board[3])
... | [
"patcassiday@gmail.com"
] | patcassiday@gmail.com |
bc77e7a35dfac6f9b3eef8dfadff882bd5412e64 | d0452eb707f82f892c236c7e70a15f561968cc05 | /conftest.py | 459d2ee7f091611be0629d8501f9c21e4108703a | [
"Apache-2.0"
] | permissive | Treshch1/python_traning | 0ff28442ad559c7e3ed2dfcb5de0fc430ecb71cb | de796861b7227fab176d342b67cf47acbd2b166f | refs/heads/master | 2020-06-16T12:26:59.431595 | 2019-08-23T19:24:03 | 2019-08-23T19:24:03 | 195,573,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,811 | py | import pytest
import json
import os.path
import importlib
import jsonpickle
from fixture.application import Application
from fixture.db import DbFixture
from fixture.orm import ORMFixture
fixture = None
target = None
def load_config(file):
global target
if target is None:
config_file = os.path.join(... | [
"vladislavtreshcheyko@gmail.com"
] | vladislavtreshcheyko@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.