blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e40873e8f5e4cd14b6039c3b8a33752497ca4d43 | ca74b77a884ea902d4d96381f23e3ea58c149ace | /Python/2018/EdX Documents/Intro to Python First Attempt/Week 2 Function Test.py | 14c6f6765688c447310909f36806d4878798a93a | [] | no_license | JoshCoop1089/Private-Projects | a941a47bc689dd46908eb14dab77ffc2cb4b0070 | a6665da2e030ada0e63452621625db5a71ba4ce6 | refs/heads/master | 2021-06-24T15:16:42.947755 | 2020-10-25T17:55:46 | 2020-10-25T17:55:46 | 158,100,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 21 15:01:58 2017
@author: Josh
"""
#
#def is_even(i):
# """
# Input: i is non negative integer
# Return: Is i even or odd?
# """
# return i%2==0
#
#for i in range(4):
# if is_even(i)==True:
# print('Even')
# else:
# print('Odd')
# ... | [
"41652109+JoshCoop1089@users.noreply.github.com"
] | 41652109+JoshCoop1089@users.noreply.github.com |
c4a6e8d1854c60e586f254827e4f58e654aec6df | 910d1c6f0531982ac85cfbfcfd96f694d77d53d9 | /tornado-restfulapi/celery_app/celeryconfig.py | b54ff2f18fb2036a8084450817b73fe78a3fcf5c | [
"MIT"
] | permissive | zhangyong7887/tornado | d00ed173a542c187a2272fd9d250679894cc3263 | 2a89ce36380c7f322acbcd7cf5b035b3e8d99619 | refs/heads/main | 2023-03-27T07:26:11.600519 | 2021-03-11T22:08:18 | 2021-03-11T22:08:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | from celery.schedules import crontab
from datetime import timedelta
from kombu import Queue
from kombu import Exchange
# 设置任务接受的类型,默认是{'json'}
accept_content = ['json']
# 请任务接受后存储时的类型
result_accept_content = ['json']
# 时间格式化为中国的标准
timezone = "Asia/Shanghai"
# 结果序列化为json格式 默认值json从4.0开始(之前为pickle)。
result_serializer... | [
"wishkind@126.com"
] | wishkind@126.com |
951e6f6ac07a11110d57f171ca306c6363ca06be | 9d38ee43a4b5406393e35030790b804b35c88d43 | /venv/lib/python3.6/types.py | 96117607c4a83e2a2e36e958ef0bad5876caf070 | [] | no_license | nazeem91/feelings | cf18ee69f8375279c5dcec428ae65df4dde7a980 | 48a9d710894e9322d120cc9075f000c24904906b | refs/heads/master | 2021-01-21T05:28:46.827627 | 2017-02-26T08:34:49 | 2017-02-26T08:34:49 | 83,191,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | /Users/nazeem/anaconda/lib/python3.6/types.py | [
"nazeem@Nazeems-MacBook-Pro-2.local"
] | nazeem@Nazeems-MacBook-Pro-2.local |
c5f85f155312d7f531308c16acc1e3375b1998ae | 686c5f102f8c831d788c15c529b17e841a4b7276 | /crawlerwithscrapy/crawlerwithscrapy/items.py | c6b86be205dcbe4ad8ad3541fc5c27c4b480c56e | [] | no_license | NouranYoussefMahasseb/Crawling- | f5e67b25d95c2512cc13ec8a9af099090115060e | 850aa749c043639ff640fc8505cb9fafa402e773 | refs/heads/master | 2022-11-12T18:43:57.178474 | 2020-07-06T00:08:33 | 2020-07-06T00:08:33 | 277,393,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class CrawlerwithscrapyItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
text= scrapy.Field()
author = scrapy.Field()
... | [
"nouranelquds@gmail.com"
] | nouranelquds@gmail.com |
3788bcfccc4981184b1fc3d3cda07b66dc45990d | f559ae349c4a2bf4d114357a0e8fe2ac9d25781b | /testing_j/test_yaml_j/test_yaml.py | d9a3b5fca0bef32aa64c0e326eea3c9d69ef566d | [] | no_license | fightingyeah/ck19_homework_0619 | 1d9cde972d087e1f210d2a7057840af5f0efce77 | 33602e2193b6bf6c948025850c94a86307690269 | refs/heads/master | 2023-05-15T08:06:10.446529 | 2021-06-20T03:14:52 | 2021-06-20T03:14:52 | 378,544,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # -*- coding: utf-8 -*-
# @Time : 2021/6/19 15:41
# @Author : Vicky
# @File : test_yaml.py
# @Software: PyCharm
import yaml
def test_demo():
with open('datas.yml') as f:
totals = yaml.safe_load(f)
return (totals) | [
"bestr0ng@163.com"
] | bestr0ng@163.com |
623042063ff60d409d771181e2956bbd7e2b725b | 14ca3e7996c791aedab903541155490aa457d765 | /train_unet4.py | add9c1bf859635f3267cc0b8e418664a40af27fd | [] | no_license | eong2012/deep-segmentation | ef466725a8f7d7d12ec0794645084525cd1d559e | bfd779f5e5cfa3f61ea14ebb542356b3bf5ff3e4 | refs/heads/master | 2020-03-22T12:00:43.654166 | 2018-05-04T19:32:55 | 2018-05-04T19:32:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,176 | py | from __future__ import print_function
import os
import numpy as np
from keras import backend as K
from keras.callbacks import ModelCheckpoint, CSVLogger, ReduceLROnPlateau
from keras.layers import Input, Conv2D, concatenate, Conv2DTranspose, BatchNormalization, PReLU
from keras.models import Model
from keras.optimize... | [
"danielelic@gmail.com"
] | danielelic@gmail.com |
9af27bd4747d78f665eff00932c3def526a4d124 | e666718dfbb05190eddc2859251048a184c29b94 | /Problem_15_part2.py | efcb0d717a1eeca014c0e1e680b6dc98eb6551ae | [
"MIT"
] | permissive | flothesof/advent_of_code2018 | ebd40c0450346a02d0d6584e68c4874a5ae4919a | 38472701620d1700bdc135b3960b741401e39864 | refs/heads/master | 2021-06-25T01:26:14.348623 | 2020-11-20T18:22:51 | 2020-11-20T18:22:51 | 160,032,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,906 | py | from Problem_15_part1 import parse_input, battle_finished, move_and_attack, sum_hit_points, render
from Problem_15_part1 import test_attack_move1, test_battle2, test_battle3, test_battle4, test_battle5
def run_full_battle(lines, elve_attack_power):
creatures, game_map = parse_input(lines)
n_turns = 0
whil... | [
"florian.s.lebourdais@gmail.com"
] | florian.s.lebourdais@gmail.com |
7f9cf2c3ee18d83cacfa58b96162d62ed0d51a03 | 52cb25dca22292fce4d3907cc370098d7a57fcc2 | /BAEKJOON/다이나믹 프로그래밍/9461_파도반 수열.py | 9696a17c3a5037916b2f467d9cac06307a38b7ef | [] | no_license | shjang1013/Algorithm | c4fc4c52cbbd3b7ecf063c716f600d1dbfc40d1a | 33f2caa6339afc6fc53ea872691145effbce0309 | refs/heads/master | 2022-09-16T12:02:53.146884 | 2022-08-31T16:29:04 | 2022-08-31T16:29:04 | 227,843,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | # 동적 계획법(다이나믹 프로그래밍)을 이용
# 4번째부터 규칙 존재
def triangle(N):
f = [0, 1, 1, 1]
for i in range(4, N+1):
f.append(f[i-3]+f[i-2])
return f[N]
T = int(input())
for _ in range(T):
N = int(input())
print(triangle(N))
| [
"shjang113@gmail.com"
] | shjang113@gmail.com |
5798cd52c8ea6506841737d2030ed74cef112255 | f4017c78dbf2c134eb32ebd6c9e787c7fa0bc2d5 | /04_flask/first_app/eng.py | 882784e64c7bd682bb2866889bade133eab17d58 | [] | no_license | raccooncho/TIL-1 | 394a156935dbc7528ee4cf990db6a61f6a377cdb | f757178136bfafbc704b15d2891cec0302b33b2f | refs/heads/master | 2020-04-22T19:40:14.393893 | 2019-02-11T09:00:11 | 2019-02-11T09:00:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | from flask import Flask, jsonify
app = Flask(__name__)
dict_eng = {'apple': '사과', 'banana': '바나나', '703': 'hell'}
@app.route('/dictionary/<string:voca>')
def my_eng_voca(voca):
if voca in dict_eng:
return f'{voca}은/는 {dict_eng[voca]}'
else:
return f'{voca}은/는 나만의 단어장에 없는 단어입니다!'
if __name__ ==... | [
"srs99125@naver.com"
] | srs99125@naver.com |
48f50ebb55f68fd6401620dc33aef28feb8a042e | 08f732b72d5546e503d292f591e842b22ffab290 | /venv/Scripts/pip-script.py | 92568725f25cac22e7d2ee3df269bda95925b4ec | [] | no_license | Aamir-Developer/MachineLearning-Libraries | 10976b33dde58976900e37449db4f95be7adf743 | 600ab0ca119f60e4ce99ea4e0385f879747e7630 | refs/heads/master | 2022-06-01T00:46:07.513636 | 2020-04-23T14:17:33 | 2020-04-23T14:17:33 | 258,227,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #!C:\Users\Moham.LAPTOP-CN3E06BA\PycharmProjects\ImportantCA\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe... | [
"maamir@mail.uni-paderborn.de"
] | maamir@mail.uni-paderborn.de |
62e2d59fecdb36c9359f86a17206da1eca25ecd9 | 12abb1f44d47289b9f847b691be62d2c5c09b77b | /build_cmi/rosserial_embeddedlinux/catkin_generated/pkg.develspace.context.pc.py | 0740459eec9a0238440f8d7aa53ad45aa9fc0a70 | [] | no_license | riplaboratory/kanaloaWS | 51b0195f2ab34de7303d38fa8a7a6365d65c7ad2 | a1049be4c9c6455ea631a031b4723abcfc13cbdd | refs/heads/master | 2020-04-01T19:44:18.672147 | 2018-10-18T08:30:00 | 2018-10-18T08:30:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rosserial_embeddedlinux"
PROJECT_SPAC... | [
"brennanyama@gmail.com"
] | brennanyama@gmail.com |
17f24306a632ecc6f3cf278c383adf84f6a2ee37 | 2042d16da97ec3f6d8ff3d380a806a4d99da01e9 | /Graduation_Project/Mylib/UILib/Interface_btn.py | bb61404061432182966df1e87388d0847b4c5eed | [] | no_license | zhaojiacheng1/python | 5f9a794cc139091e6083ce416b0121612b8dc17e | 633d09a0bb911d19fb0af77920e72182c76dfc52 | refs/heads/master | 2021-02-15T00:29:19.772339 | 2020-10-25T11:14:05 | 2020-10-25T11:14:05 | 244,848,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.Qt import *
import sys
class InterfaceBtn(QPushButton):
key_pressed = pyqtSignal(str, str)
def __init__(self, parent=None, *args, **kwargs):
super().__init__(parent, *args, **kwargs)
self.clicked.connect(self.btn_clicked) # 按钮松开时发送信号
pass
def btn_click... | [
"zhaojiacheng1@outlook.com"
] | zhaojiacheng1@outlook.com |
020433320ca06075c7f530bad32e6722b0dac733 | 352ed22113f5b82b6c430dfbdf58162e28920e89 | /populateproj/populateproj/urls.py | 465c954ff0680d701eb374290e4fc7e2d856fa7e | [] | no_license | ashifnihal/deploymentproj1 | 3e3f714af9c46f86565ea1fa1a6ff60439fcfb9b | f20aea52f3c0ca3d13369e3aa64d0cfe9c8b37a3 | refs/heads/master | 2020-05-17T13:59:53.987581 | 2019-04-27T09:24:52 | 2019-04-27T09:24:52 | 183,751,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | """populateproj URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cla... | [
"ashifnihal2012@gmail.com"
] | ashifnihal2012@gmail.com |
4606bb6be32858037f4418c56404cffe6d29852e | 385c65d1fd414b5c29cf582234d6ab75ee796120 | /Keywordautomation/Mail.py | eb445872fc304c151ebd45abb44c99caf6b2daee | [] | no_license | shubhammishra277/Keyworddedup | f6223fb4a7ab67b9633eb4329000b43790d7735b | 16ef987920e00f60a81131bd8d7d652ceed9a6d1 | HEAD | 2018-11-02T19:33:47.729555 | 2018-10-25T04:38:16 | 2018-10-25T04:38:16 | 113,543,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,801 | py | import mandrill
from ConfigParser import SafeConfigParser
class mail(object):
def __init__(self):
self.MANDRILL_API_KEY = '<key>'
self.mandrill_client = mandrill.Mandrill(self.MANDRILL_API_KEY)
self.message = { 'from_email': 'neo_support@ogilvy.com',
'from_name': 'SUPPORT',
... | [
"shubhammishra160293@gmail.com"
] | shubhammishra160293@gmail.com |
c4da3dcc72f086922391d5c931364b280589eb95 | dd78419b062b9bcef8ee9ac14bc8d387676b68c1 | /venv/Scripts/pip3.6-script.py | 17e074f8f5ed60902349745c3cb4ca715d951dfd | [] | no_license | rohanmodi2810/property-management-website | 44f585598947ea5f631c78c5d86462aee2fbd272 | cc996017c294bb0442d66b4774eca50e16c0b14c | refs/heads/master | 2022-04-19T21:18:34.880299 | 2020-04-14T01:11:46 | 2020-04-14T01:11:46 | 255,476,028 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | #!C:\Users\ISHAN\PycharmProjects\property_management\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.6'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$',... | [
"modirohan28@gmail.com"
] | modirohan28@gmail.com |
74227bf58bcd8e74f1f7c2ec18797c98e2a08c72 | ba63604ad476e7e8eee34f6288e18d96a6d19073 | /services/colombo_service.py | c00d0121634ec81913f6c30048c969aa9439494a | [] | no_license | matherthal/marketplace_report_consolidation | f4e2d1d25cc3040897e545dccf5f43357eb7e9d0 | c10dc02c80828ed6f774ad3769064a3d6f7a0e16 | refs/heads/master | 2022-11-24T03:59:42.146007 | 2020-08-09T04:18:43 | 2020-08-09T04:18:43 | 286,131,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | import logging
import pandas as pd
from utils import convert_currency_br_to_num
_LOGGER = logging.getLogger(__file__)
def get_marketplace_data(report_path):
mp_df = None
for report in (report_path / 'marketplace').glob('*.csv'):
temp_df = pd.read_csv(report, sep=';')
mp_df = temp_df ... | [
"matheuserthal@Matheuss-MacBook-Air.local"
] | matheuserthal@Matheuss-MacBook-Air.local |
e910f92a26739fa850e701326f42c814fac74abf | 6dc9c25595c566f84523204eda6cd2c79bbe6726 | /coding_assignment_module1/2.py | cc05795be85c3b23fadf568c9fd7940648be2275 | [] | no_license | Mohit1352/PESU-IO-SUMMER | becb23421f650c476d6ccd264328d1dcd7c22510 | 37d8c0e0b0241d300d8e3003781cf687e9b0654e | refs/heads/master | 2020-05-31T22:48:06.452883 | 2019-06-06T09:59:17 | 2019-06-06T09:59:17 | 190,527,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | #print all even numbers from list, not exceeding 237, stopping program as soon as bigger one is encountered
numbers = [ 386, 462, 47, 418, 907, 344, 236, 375, 823, 566, 597, 978, 328, 615, 953, 345,
399, 162, 758, 219, 918, 237, 412, 566, 826, 248, 866, 950, 626, 949, 687, 217,
... | [
"51435060+Mohit1352@users.noreply.github.com"
] | 51435060+Mohit1352@users.noreply.github.com |
6a79de4b3d67c324b59d9abc5054ff364654e47d | 81c1b9667f02aa288160a7e58277a862165eac91 | /07-DropBoxPython/example/client.py | 8ff058740f41708fef08009ca91045f9c422d28a | [] | no_license | lednerb1/sistemas-distribuidos | 6a6abd1dfbdf771bfcf938b0cdabf934e787c105 | 67879b108dc94bfed10dcfa9ef09b359343ab6ec | refs/heads/master | 2023-08-08T21:31:50.502940 | 2019-05-24T21:45:50 | 2019-05-24T21:45:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,950 | py | import argparse
import contextlib
import datetime
import os
import six
import sys
import time
import unicodedata
import dropbox
import sys
from dropbox.files import WriteMode
from threading import Thread
acess_token = 'token'
dbx = dropbox.Dropbox(acess_token)
msg=""
def leitura():
linha = 0
while(True):
cont =... | [
"peter_brendel@hotmail.com"
] | peter_brendel@hotmail.com |
2189c521d643b8c9feae447145f8e67196cd1384 | ea727658bb22df6dd0a4d8aaff5d13beec8ec8b5 | /examples/大數據資料分析/範例程式/第11章/program11-2.py | ee59c8722f865802cb46b9adc72cedd22431edec | [] | no_license | kelvinchoiwc/DataScience_1082 | f8e31c230776f45d70f6b96ef81d16881118e453 | 199f915540afe6c9a9ec7055aac5911420d783be | refs/heads/master | 2023-07-24T04:29:01.763893 | 2021-09-01T12:33:21 | 2021-09-01T12:33:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | import random
s2 = tuple([random.randint(1, 49) for i in range(1,100)])
print(s2)
lottoNums = 50*[0]
for i in range(len(s2)):
k = s2[i]
lottoNums[k] += 1
for j in range(1, len(lottoNums)):
print('%d: %d'%(j, lottoNums[j])) | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
1f083451b4ca8c802f6a551d8b929f910b51cb85 | 914a83057719d6b9276b1a0ec4f9c66fea064276 | /test/performance-regression/full-apps/qmcpack/nexus/library/periodic_table.py | 352f55194bb23de4e080377de887896104cf75e5 | [
"LicenseRef-scancode-unknown-license-reference",
"NCSA",
"LicenseRef-scancode-free-unknown",
"GPL-1.0-or-later",
"BSD-2-Clause"
] | permissive | jjwilke/hclib | e8970675bf49f89c1e5e2120b06387d0b14b6645 | 5c57408ac009386702e9b96ec2401da0e8369dbe | refs/heads/master | 2020-03-31T19:38:28.239603 | 2018-12-21T20:29:44 | 2018-12-21T20:29:44 | 152,505,070 | 0 | 0 | Apache-2.0 | 2018-10-11T00:02:52 | 2018-10-11T00:02:51 | null | UTF-8 | Python | false | false | 57,267 | py | from generic import obj
from developer import DevBase
from unit_converter import UnitConverter
def phys_value_dict(value=None,units=None):
vdict = UnitConverter.convert_scalar_to_all(units,value)
return obj(**vdict)
#end def phys_value_dict
class SimpleElement(DevBase):
def __init__(self):
... | [
"jmaxg3@gmail.com"
] | jmaxg3@gmail.com |
08f9f75264f2e52665bb73bf71f2eff8bb2654f3 | 30eea31586cb3d46fc86848cf1a6270718a2f31d | /sql_comandos/gerar_conf_cen.py | 87499d3d07bd92b99ee1444a0b1a354a08c6150e | [] | no_license | vandocouto/dhcpweb | 7278ee7bf6c885f7bd8116ee03d0377a2deb6e34 | 7cefa7f7f6867f5d979a41633c424e74bf2b0fe0 | refs/heads/master | 2020-06-04T10:43:43.398669 | 2015-04-05T15:19:37 | 2015-04-05T15:19:37 | 33,444,768 | 4 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 4,474 | py | #!/usr/bin/python
#-=- encoding: latin-1 -=-
from bd_deb_dhip import bd_deb_dhip
from bd_cen_dhip import bd_cen_dhip
from bd_select import bd_select
arquivo = ''
def gerar_conf_cen(recebe1,recebe2,recebe3):
arquivo = '# CONF CENTOS - SOMENTE EDITAR NA INTERFACE WEB - DHCPWEB\n%s' %recebe1
# FUNÇÕES
if(... | [
"evandro.couto@d2d.com.br"
] | evandro.couto@d2d.com.br |
4d351f4c18c4fddfdd63f5d59b045eb5f666f9d1 | 1bce57a96e28980e7bad28854901af7fedbb79a6 | /all_tokenize.py | 0208356c7b533e64668f7fe34179fea52b2dd36e | [] | no_license | Builtor/SMIIP_PPL | 7471a31defbac03398f03727246e66503b6a284f | 878f286db42e7655d5afc759a81dd2bb442c2016 | refs/heads/master | 2021-01-18T21:54:11.527895 | 2017-08-17T03:28:03 | 2017-08-17T03:28:03 | 100,554,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,059 | py | # -*- coding: utf-8 -*-
from pyltp import Segmentor
import jieba
import re
import thulac
import pynlpir
UNKSYMBOL = u'<UNK>'
def get_words_set(words_set_path):
words_set = open(words_set_path)
# splitlines() 按照行('\r', '\r\n', \n')分隔,返回一个包含各行作为元素的列表
# 将每个词都作为set的一个元素
words_set = set(words_set.read().de... | [
"270120634@qq.com"
] | 270120634@qq.com |
f96a428bb1b7238aac725239dfadefa51869fc76 | 9b2c0771aec42b44c537889f85ed0fec503a6a87 | /CompSci class stuff(ignore)/Rectangle.py | 90ffa76d4819db28e439ce734c6f811c3406e445 | [] | no_license | supercavitation/Compsci | 1e88b58f810cdb16a7fe6f0217813c704fe5d7f1 | 48b3d0f47e84fd0ce400eec17e7b60d5b8760914 | refs/heads/master | 2021-01-21T11:09:07.367058 | 2013-09-16T13:34:48 | 2013-09-16T13:34:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | #Joshua Bloch
#5/14/13
#Rectangle
class Rectangle:
def __init__(self,length, width):
self.length=length
self.width=width
def __str__(self):
return "Rectangle with length "+str(self.length)+" and width "+str(self.width)
def area(self):
return self.length*self.width
def per... | [
"mototerminator101@gmail.com"
] | mototerminator101@gmail.com |
996c987b33965471956ee212ef48b3552b5b49b9 | 7fa72ae68964d7591012f03edbb8caaf53fc70f0 | /main_new.py | 5ebf3ebf1e192afa7220af27a8a14f32ff2f7edf | [] | no_license | FIVEMAO666/FIVEMAO666 | 2162497ca8bae864079acb682863e2d59ea370fd | c9024aca7b7d97c68e66c7630b4ab1d557c562b3 | refs/heads/master | 2023-02-07T21:26:04.290403 | 2020-12-28T16:54:07 | 2020-12-28T16:54:07 | 293,682,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,758 | py | # -*- coding:utf-8 -*-
# @Datetime: 2020/12/22 20:31
# @Author: 铭仔
# @File: main.py
# @Software: PyCharm
import cv2
from tkinter import ttk
from PIL import Image, ImageTk
import img_function as predict
import img_math as img_math
import numpy as np
class UI_main():
car = []
pic_path = "" # 图片路径
color... | [
"472366481@qq.com"
] | 472366481@qq.com |
8fdee4677e7a6d0b4f694b348e43d719c17bb296 | 61b51e8a3fc0731e818dd4e7b341d1b278cc81bb | /dictionary.py | 1b916d0d6c676b27ad42617faa05bd9885048dd5 | [] | no_license | ma5terdrag0n/voice-dictionary | c3539bd4c3c0f63bc123cec011db3086f3117e6d | 7b8a5aa9033f8df580f9e86a6b85aced82021aa4 | refs/heads/master | 2021-04-28T18:51:46.326801 | 2018-02-17T18:38:11 | 2018-02-17T18:38:11 | 121,881,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | """ IMPORTS """
from PyDictionary import PyDictionary
import os
import speech_recognition as sr
""""""
dictionary = PyDictionary()
# Print Meaning of a word
def tellMeaning(s):
dic = dictionary.meaning(s)
print(dic)
twice = 0
for i in dic['Noun']:
twice+=1
speak(i.lower())
if twice == 2:
break
def t... | [
"prince.thakkar01@gmail.com"
] | prince.thakkar01@gmail.com |
dc889f7bca36a2eb59f312ea48d6048897634a2a | 1a749f69155a3f343ef690f398c8a67cca6be74a | /parser.py | e0d09298b87e2a2ef03ec5883d5c2395d696765e | [] | no_license | vol0n/dm_kur | b54aded906bc924035a7a31f01b8c5d5f954dfbf | 5039fd4d974ddc2553daec795219cea7d98597dd | refs/heads/master | 2023-03-07T06:37:18.971865 | 2021-02-24T13:35:27 | 2021-02-24T13:35:27 | 340,666,041 | 0 | 0 | null | 2021-02-24T13:35:28 | 2021-02-20T13:53:03 | Python | UTF-8 | Python | false | false | 5,026 | py | import string
import config as c
import operations as op
def next():
if c.i+1 < len(c.line):
return c.line[c.i+1]
return '\0'
def move(shift=1):
if c.i+shift < len(c.line):
c.i += shift
def lexan():
while next() == ' ':
move()
if next() in string.digits:
c.lexem... | [
"vol0ncar@yandex.ru"
] | vol0ncar@yandex.ru |
7e45676741b0aa7a36a9beb1ddd29a68e5bc5a51 | 84c40d2d19c38b366433d229eb33c893114212cf | /denoising.py | f305104f61eb5b2dbce5280bc0dd753d0296cbd1 | [] | no_license | GinirohikoCha/ImageDenoising | 3c0d990144c15ef43c638758af2ee6fe97d5f287 | 223455a3a577e99425e755171f56a196ce7667ea | refs/heads/master | 2022-11-20T16:56:38.558749 | 2020-07-21T11:12:36 | 2020-07-21T11:12:36 | 281,375,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,659 | py | #*encoding=utf-8
import os
import cv2 as cv
import numpy as np
from multiprocessing import Process, Pool, cpu_count
from matplotlib import pyplot as plt
# 二值化
def threshold(dst, greyGap):
# 阈值
for row in range(len(dst)):
for col in range(len(dst[row])):
boolColor = dst[row][col] > greyGap... | [
"rinkouatf@qq.com"
] | rinkouatf@qq.com |
977286a16b37df893fdec71d01b251d6664f4af1 | bbd681a83d94896780e3a137fbc1184801f779e7 | /Love calc.py | d27cd7f3851b58f46f72e3747272a2697d71c056 | [] | no_license | 5t3v3/Python-Fun-Projects | d2cb29a07535cd392783c9c224071afd324be208 | 05572a0185743dd7be5882a92b47eee145a7d634 | refs/heads/master | 2022-11-28T11:16:33.728885 | 2020-08-12T13:10:04 | 2020-08-12T13:10:04 | 221,722,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | #Love calculator
import random
x=input("Enter your name : ")
s=input("Enter your partner's name : ")
l1=len(x)+random.randrange(1,10)
l2=len(s)+random.randrange(1,10)
print("l1 is",l1)
print("l2 is",l2)
if l1>l2:
z=l1-l2
print("Difference of lenths is ",z)
else:
z=l2-l1
print("Difference of lenths i... | [
"41812621+Steveanonymous1@users.noreply.github.com"
] | 41812621+Steveanonymous1@users.noreply.github.com |
8df90d2c2ba3352a007cfad930c18653baaa2ee2 | 27f28dd1960267c4c15f8562a3b12867d033daf3 | /LittleKitchen/kitchen/migrations/0008_auto_20190110_1704.py | c1f0d8359832bdaf017090980f788e11c0b22be6 | [] | no_license | X-weijia/LittleKitchen | fb4daf3a534edb129badf62d907edba7b098883a | d9df71e5af442966c200edf2c0e15a1eda31eedd | refs/heads/master | 2020-04-23T15:22:10.406559 | 2019-02-18T13:02:23 | 2019-02-18T13:02:23 | 171,258,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | # Generated by Django 2.1.3 on 2019-01-10 09:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('kitchen', '0007_mtype'),
]
operations = [
migrations.AlterModelOptions(
name='dynamic',
... | [
"18535658809@163.com"
] | 18535658809@163.com |
4f28e55a8ffe04765507312e524468a6dd9a075f | 1db4f452796f68be6985d2d4e120baa1e065293b | /src/ttkbootstrap/widgets/meter.py | e0d736bfd0a0aafa328ed53e9b8d4e974d8d8084 | [
"MIT"
] | permissive | Mikeyzy/ttkbootstrap | 09f0b81e57f8c7d65963b05e1ca9c4d4bd0fe66f | cda88fb05bcbf4a5d9b25ad7466947ed547f3af5 | refs/heads/master | 2023-06-01T21:47:21.453942 | 2021-06-08T21:47:51 | 2021-06-08T21:47:51 | 377,269,182 | 0 | 0 | MIT | 2021-06-15T19:10:56 | 2021-06-15T19:10:55 | null | UTF-8 | Python | false | false | 14,537 | py | """
A Meter widget that presents data and progress in a radial style gauge.
Author: Israel Dryer, israel.dryer@gmail.com
Modified: 2021-05-4
Inspired by: https://www.jqueryscript.net/chart-graph/Customizable-Animated-jQuery-HTML5-Gauge-Meter-Plugin.html
"""
import math
from tkinter import StringVar, I... | [
"israel.dryer@gmail.com"
] | israel.dryer@gmail.com |
bfa06eadd91c97868944daada9eaa2751cc9b8c9 | 8a2a3bd138bfa5ac5c09abb3940bf3dd6a14afac | /2017/ac02b.py | 2a6700c7d19fe9415979f8c11b780823cf5d2418 | [] | no_license | patricksegfault/Advent-of-Code | 06a3f411a172d041c280afa32d75e58d99bac417 | 7e7ad7b562becea73d95278d39b2136f4988a5bd | refs/heads/master | 2022-03-19T22:51:08.422596 | 2019-12-06T17:16:25 | 2019-12-06T17:16:25 | 52,307,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | with open('input02a.txt', 'r') as inFile:
total = 0
for line in inFile:
line = list(map(int, line.strip().split()))
for i,num in enumerate(line):
for x in range(i+1,len(line)):
numTwo = line[x]
if num % numTwo == 0 or numTwo % num == 0:
... | [
"noreply@github.com"
] | noreply@github.com |
355a374cd40d8bb4a1cb23956d92b0627155fda5 | 25339168b0511f7fe06f5b87068c810b5b2e58a4 | /myvenv/lib/python3.6/token.py | 1eeaf43c21c31daffc279610b82099f312dd6647 | [] | no_license | mranjon007/Library | 621ce29e2090cd9f98c7ec324bb900c711b7239f | f997c957498aefa39de1a9462ce609d614ae4e2e | refs/heads/master | 2020-06-12T18:19:48.150166 | 2019-07-04T20:15:42 | 2019-07-04T20:15:42 | 194,385,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | /home/mithun/anaconda3/lib/python3.6/token.py | [
"mithun.bishwash.cse@ulab.edu.bd"
] | mithun.bishwash.cse@ulab.edu.bd |
a3f6e81a9764976bcd4ba166f86cf4f2f4ac18e2 | e900245d2747f88e2026bead0bf0af4455d0c321 | /ProTwo/ProTwo/urls.py | c9b0eff19645559ffe95d7a7215e53ae0d477962 | [] | no_license | Sub99/django-deployment-example | ef4821ae8767a9028a61b51548aec1cbcfd70a13 | 4cb7fa6fb6f34ceae99d097d2cfc124a59791787 | refs/heads/master | 2020-04-17T15:08:25.637256 | 2019-01-21T15:23:41 | 2019-01-21T15:23:41 | 166,686,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | """ProTwo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"subodhbaghel99@gmail.com"
] | subodhbaghel99@gmail.com |
e03e4f0d8e5feaf4628a344d6adcdffa5bdb7312 | 0adb19e463ec27dda57b7f551b2d49e229053b8c | /film_editing/film_edit_skill.py | 16cc540b54225aae15ee09161b532391f16a7bf9 | [] | no_license | alam-mahtab/FastapiCD | c8d36852a674583bba088eee8b1cb98a24acbea1 | 7206179408a9ae67ba485a4620d14b470009153d | refs/heads/main | 2023-02-25T05:56:35.685081 | 2021-02-03T16:16:26 | 2021-02-03T16:16:26 | 335,682,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,741 | py | from typing import List
from fastapi import Depends,File, UploadFile, APIRouter
from sqlalchemy.orm import Session
from film_editing import crud, models
from writer.database import SessionLocal, engine
from film_editing.schemas import FilmeditBase, FilmeditList
from film_editing.models import Filmedit
# Pagination
from... | [
"67095487+alam-mahtab@users.noreply.github.com"
] | 67095487+alam-mahtab@users.noreply.github.com |
d03b61e82398f1adcdc7cbcb2f4f65f1f676a41d | a965dfae70e85442d072705e6c10175b3587e8b1 | /armus1/armus1/spiders/notice.py | fe20689ef350445b5a09fac17ed28f818959c49f | [
"MIT"
] | permissive | lizewei-681/Test | 21069421f5b504ea207177ad370cc4a57a097fc8 | 6ec101a90f1ba4f8cafe636e9cf623c05fedcdcb | refs/heads/master | 2022-11-05T23:46:24.504808 | 2020-06-22T07:58:43 | 2020-06-22T07:58:43 | 274,068,689 | 0 | 0 | MIT | 2020-06-22T07:26:40 | 2020-06-22T07:26:39 | null | UTF-8 | Python | false | false | 4,203 | py | # -*- coding: utf-8 -*-
import re
import time
import scrapy
# from db_model import notifications
from armus1.items import Armus_Item
class NoticeSpider(scrapy.Spider):
name = 'notice'
def __init__(self, seed, title_urls, **kwargs):
super().__init__(**kwargs)
self.seed=seed
self.title_... | [
"2480045390@qq.com"
] | 2480045390@qq.com |
32f46f0c20b7dd77738a6a3348becb950372d33f | c224506bea30d7d22f9b09fdee6a1e180d2bbe7f | /ep51to100/91.py | b87469d24d8e57d491bb12b7477f8d2b5490dd22 | [] | no_license | VimalMinsariya/euler-project | 040d4e4d752435b6942b9b52f52dd4e1414563b1 | f88ff159f41e66f5e9df06968965b51b9cf6ee8a | refs/heads/master | 2023-04-08T20:11:30.852471 | 2021-04-18T13:11:34 | 2021-04-18T13:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | import math
import time
start = time.time()
def n_sol(P):
m, n = P
g = math.gcd(m,n)
m1, n1 = m//g, n//g
a, b = (m-x_limit)/n1, m/n1
a, b = math.ceil(a), math.floor(b)
c, d = -n/m1, (y_limit-n)/m1
c, d = math.ceil(c), math.floor(d)
list_t1 = [i for i in range(a,b+1)]
list_t2 = [i fo... | [
"p1yslee@gmail.com"
] | p1yslee@gmail.com |
32e8b56ebf8b1c70d7b52538e3f2b8864d733ac8 | 0829886d3bff8b1256de2423f459a533e56202c5 | /Kvmd-code/plugins/hid/serial.py | 843be58f2c4a623a32d7906ed82fe4e520e66da8 | [] | no_license | James992927108/Temp_Kvmd_File | 4f0c0fa18409465d54f1ebec9818f46f262d8c49 | a7d7e2da924549ba6ef035aaf3fc8bbbece80002 | refs/heads/master | 2023-03-25T00:38:35.512989 | 2021-03-22T14:40:38 | 2021-03-22T14:40:38 | 332,744,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,014 | py | # ========================================================================== #
# #
# KVMD - The main Pi-KVM daemon. #
# #
# ... | [
"Anthony_Teng@asus.com"
] | Anthony_Teng@asus.com |
aff205bbbf740f5431d56b6de1825f1a154142f0 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /components/timers/DEPS | 413f57b96cae54eaae8224d794ee782a7eca92c5 | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 237 | include_rules = [
# This directory is shared with Chrome OS, which only links against
# base/. We don't want any other dependencies to creep in.
"-build",
"-content",
"-library_loaders",
"-net",
"-third_party",
"-url",
] | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com | |
6957dc987046c9180508adcbb6cc29b970567b1a | 7423e0581566eba604522527d319eb8898de0efe | /Backend/basisSet.py | 9f339b976e658e241ea6809367a7028f092e8730 | [
"MIT"
] | permissive | GaryZ700/CatLab_CompChem | 88f4ffa6090ee45331ea02925bce7cd746e90842 | dfa1fc88e6399bf65ea409fd75a6067a7437f916 | refs/heads/master | 2022-01-28T10:53:35.041412 | 2022-01-13T17:43:16 | 2022-01-13T17:43:16 | 164,959,051 | 2 | 0 | MIT | 2021-02-15T22:46:28 | 2019-01-10T00:18:24 | Jupyter Notebook | UTF-8 | Python | false | false | 6,402 | py | #Written by Gary Zeri
#Computer Science Major at Chapman University, Member of Dr. LaRue's CatLab
#Class that specifies the methods and functionality of a basis set composed of basisfunctions
from compChemGlobal import plot, widgets, Graphable
from compChemHelpers import dataToBasisFunction
from how import *
class b... | [
"zeri@chapman.edu"
] | zeri@chapman.edu |
9f9078d89e0f0ad0d742c59f7847e69c4fe93dd1 | 25185ffc217fb439d51cca852fc6b2d390a0db67 | /main_project/_src/data_analysis/re_id/code/model.py | 1396cf10b6d800ff1a66032421039fb8f26a7f0d | [
"MIT"
] | permissive | Bigjob-team-12/Project | e2d3a59115e1c796873be66ecddcf38aed87b9b4 | 6840a58af3f94a337e0cdfea74a455b086073f4d | refs/heads/master | 2022-12-10T18:51:41.289817 | 2020-08-31T14:57:14 | 2020-08-31T14:57:14 | 282,662,403 | 6 | 7 | null | 2020-08-30T16:52:34 | 2020-07-26T14:05:47 | Jupyter Notebook | UTF-8 | Python | false | false | 3,483 | py | import torch
import torch.nn as nn
from torch.nn import init
from torchvision import models
from torch.autograd import Variable
import pretrainedmodels
######################################################################
def weights_init_kaiming(m):
classname = m.__class__.__name__
# print(classname)
if ... | [
"sonsational@kaist.ac.kr"
] | sonsational@kaist.ac.kr |
f0806efc13466846b13387d88cdb1bf970b40434 | 5254c3a7e94666264120f26c87734ad053c54541 | /4. Aleatoridad/4.2 Random/ejercicio_4.9.py | dfd5b986fc932ed4cef71f7090ca15df0345c9d0 | [] | no_license | ccollado7/UNSAM---Python | 425eb29a2df8777e9f892b08cc250bce9b2b0b8c | f2d0e7b3f64efa8d03f9aa4707c90e992683672d | refs/heads/master | 2023-03-21T17:42:27.210599 | 2021-03-09T13:06:45 | 2021-03-09T13:06:45 | 286,613,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 27 09:13:45 2020
@author: User
"""
#Ejercicio 4.9
import random
def genear_punto():
x = random.random()
y = random.random()
return(x,y)
print(genear_punto()) | [
"46108725+ccollado7@users.noreply.github.com"
] | 46108725+ccollado7@users.noreply.github.com |
183ff08e72916b817864d350e9ed850ccc983162 | 948ff43158f7e86266db7e516ba0dfa47f65937e | /main.py | b2d9b78c9d57e8f780eb4d866df75c37edd23c64 | [
"MIT"
] | permissive | dnth/Malaysia_License_Plate_Generator | f96665ccd1704bd989acdc79970291a109da3603 | 46d8499208c217d3892769d4a4beaaccaf600bcc | refs/heads/master | 2023-03-20T02:17:13.785584 | 2021-03-05T05:04:23 | 2021-03-05T05:04:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,511 | py | from fake_plate_generator import Generator
import argparse
import os
'''
Parameters for generators:
1. state (string) = The first alphabets for car plate based on state and territory, must enter full state name
Example:
"Perak": "A", "Selangor": "B", "Pahang": "C", "Kelantan": "D", "Putrajaya": "F",
"Johor"... | [
"nelsonchoon112@gmail.com"
] | nelsonchoon112@gmail.com |
b057623939aa28e36698dfcfc578da6ed76d54a2 | 9c4e02ba5201794a4c5cbff548db1be7c87409c1 | /venv/lib/python3.9/site-packages/pre_commit/main.py | f1e8d03db183cc99d62e7a9d1091c71ac824bca5 | [
"Apache-2.0",
"MIT"
] | permissive | ClassWizard/PodLockParser | 4faf4679d404158b3cf2b1ceb4faabca461b0008 | 84f6d3fced521849657d21ae4cb9681f5897b957 | refs/heads/master | 2022-12-23T20:39:48.096729 | 2022-02-08T09:49:01 | 2022-02-08T09:49:01 | 167,668,617 | 2 | 1 | MIT | 2022-12-14T10:01:41 | 2019-01-26T08:50:35 | Python | UTF-8 | Python | false | false | 14,606 | py | import argparse
import logging
import os
import sys
from typing import Any
from typing import Optional
from typing import Sequence
from typing import Union
import pre_commit.constants as C
from pre_commit import git
from pre_commit.color import add_color_option
from pre_commit.commands.autoupdate import autoupdate
fro... | [
"chenlongwei@camera360.com"
] | chenlongwei@camera360.com |
e8137db63aa6419df0481f0bc0df6199f934d1b9 | ef2fd11efec76227aa695a3e378eaa9cd05faf6c | /json-log-processor.py | a75d75ffa77def3ee6b1049480aabfd6ea433ebd | [] | no_license | epeters3/msr-linux | 9132e9dca82b862f7635068b9584ff42c55c2dde | 8efea5fc117a5915bccdb28341e8ef3fa5a77977 | refs/heads/master | 2020-04-22T23:49:24.918403 | 2019-02-26T17:56:56 | 2019-02-26T17:56:56 | 170,754,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,253 | py | from __future__ import (absolute_import, division, print_function)
import json
import re
from datetime import datetime
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
def parsedate(datestr):
"""Parse json date string to datetime"""
return datetime.strptime(datestr, "%Y-%m-%d %X")
def str... | [
"evanpeterson17@gmail.com"
] | evanpeterson17@gmail.com |
a16d3182070ab62e8ba11061c3972912b6642ceb | 0185ef1879091042b38d1c02f9a765188f6fcef2 | /src/stacking_xgboost.py | 3eec64226353db665e643a4486474125b6a3f405 | [] | no_license | JoneNash/Competition4SDP | f4318516727820cbc55ec76ef2c189ff16e00df2 | e60c25f444b07723c95b1331957c99d2c97a5b2d | refs/heads/deron | 2021-08-23T01:40:28.993942 | 2017-12-02T07:04:26 | 2017-12-02T07:04:26 | 107,836,727 | 1 | 1 | null | 2017-11-04T08:23:20 | 2017-10-22T04:15:24 | Jupyter Notebook | UTF-8 | Python | false | false | 6,764 | py | #coding=utf-8
'''
参考:
https://www.kaggle.com/yekenot/simple-stacker-lb-0-284
'''
import pandas as pd
import numpy as np
from sklearn.model_selection import StratifiedKFold
from sklearn.model_selection import cross_val_score
from xgboost import XGBClassifier
from lightgbm import LGBMClassifier
from catboost import C... | [
"leidelong@meituan.com"
] | leidelong@meituan.com |
f0f23530fb3cbc50111cfe4a488934543ebda0da | c7d7dfa5ac23b940e852a67155364439d9069486 | /widget_image_tools/tests/test_data_get.py | e4b4e188f3230a7c9c77643e2405c1d4efe1f91c | [] | no_license | shurshilov/odoo | d163f6c939bcbfb36bdf83eeeeffca368f0a4722 | 8099e62254b7f1e113be7b522585dbc352aea5a8 | refs/heads/16.0 | 2023-09-04T03:02:31.427240 | 2023-09-03T16:25:28 | 2023-09-03T16:25:28 | 89,852,559 | 20 | 43 | null | 2023-09-03T06:30:22 | 2017-04-30T13:32:08 | JavaScript | UTF-8 | Python | false | false | 625 | py | import logging
from openerp.tests.common import HttpCase
_logger = logging.getLogger(__name__)
class TestDataGet(HttpCase):
at_install = False
post_install = True
def test_data_get(self):
test_attachment = self.env.ref("ir_attachment_url.test_url_attachment")
self.env["ir.attachment"].s... | [
"shurshilov.a@yandex.ru"
] | shurshilov.a@yandex.ru |
5c0a5a224566e16a7e6e8eb1417146403fe5acf7 | dcb3765a683890d4e98520da1fafd65fe29aa5ff | /Simulator_Coarse/RRMinOverloadScheduler.py | 39bd9dfae77ef179740c30d484ee3d134de4279b | [] | no_license | amar123deep/telco_cloud | e1269f2ad1505a2252a58a249abafb35331e754c | 3dfb000a9809d7c90fddfa5718d7288833880889 | refs/heads/master | 2021-01-23T19:45:56.683188 | 2015-05-04T18:32:19 | 2015-05-04T18:32:19 | 31,364,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,420 | py | # This class implemenmts the round robin scheduler
import time
import simpy
from Scheduler import Scheduler
import logging
class RRMinOverloadScheduler(Scheduler):
def __init__(self, env, topology):
Scheduler.__init__(self, env, topology)
def fnSchedule(self, data):
t_start = time.time()
'''
Descr : ... | [
"amardeep@cs.umu.se"
] | amardeep@cs.umu.se |
531144ed358910083d951eca813d686840b83120 | 5ffc395c36e3469ec13da4a51ff23cd388d6bef2 | /tic-tac-toe.py | 3fb7b5a26866f8de6efc4f371d99309b6ceb4917 | [] | no_license | jyash28/Advance-Tic-Tac-Toe-Game | 30bd01407f12f442201ae8a4157e56faf7221a9d | e83dc798aca3c1841c7b111f6a53d99b39d5c47e | refs/heads/main | 2023-01-21T13:39:19.225062 | 2020-11-21T19:40:04 | 2020-11-21T19:40:04 | 314,888,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,840 | py | import tkinter.messagebox
from tkinter import *
root=Tk()
root.geometry("1350x750+0+0")
root.title("Tic Tac Toe")
root.configure(background="Cadet Blue")
Tops = Frame(root,bg ="Cadet Blue",pady = 2,width =1350,height=100,relief=RIDGE)
Tops.grid(row=0,column=0)
lblTitle = Label(Tops,font=("arial",50,"bold"),text="Adv... | [
"jyash548@gmail.com"
] | jyash548@gmail.com |
0d728b01f5b7e2151d7ed9b2eab98fa963430997 | 8f47a520f87452cecfc8dda91979cdeed12d4bb7 | /vosk-inference/inference.py | 7283b0004d556228d784c55744ce3c96ce1d716e | [] | no_license | MahdiEsrafili/commonvoice-th | 157995d1124770a3215df6add910ee169f03ab9c | b8ce60db0b1b6c7223c74173c22107b5040a1dcc | refs/heads/main | 2023-08-17T03:44:30.680150 | 2021-09-27T11:34:36 | 2021-09-27T11:34:36 | 461,848,758 | 1 | 0 | null | 2022-02-21T12:20:44 | 2022-02-21T12:20:43 | null | UTF-8 | Python | false | false | 1,159 | py | #!/usr/bin/env python3
import argparse
import logging
from vosk_transcriber import VoskTranscriber
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO)
def run_parser():
parser = argparse.ArgumentParser()
parser.add_argument("--wav-path", type=str, required... | [
"tan_epacsp@hotmail.com"
] | tan_epacsp@hotmail.com |
dcf2b46ba6978551c96fea0f0d1e2eb29f592fb0 | e3c505f0c0029460c29166d5bcb5843a0a3dceaa | /supportportal/apps/support/contact/views.py | 304c1d145e7548b9bb5bf41db942d29475842463 | [] | no_license | bensnyde/django-csa | 4db742abd95dec6780a39531cef268a4da5e662f | 17a341332f6908c75ce060f55a145a76c9db48f7 | refs/heads/master | 2021-01-01T19:07:33.040642 | 2014-10-22T21:43:46 | 2014-10-22T21:43:46 | 22,216,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render
@login_required
def index(request):
"""Contact Base View
Displays contact information.
Middleware
See SETTINGS for active Middleware.
Decorators
@login_required
request.user.... | [
"introspectr3@gmail.com"
] | introspectr3@gmail.com |
bdd400d86f704fe57d59d284b35088dda056e839 | a7058080e41af37eb77c146fc09a5e4db57f7ec6 | /Solved/11723/11723_set.py | 7a52dc728f80e451173148d39006f3a366c611eb | [] | no_license | Jinmin-Goh/BOJ_PS | bec0922c01fbf6e440589cc684d0cd736e775066 | 09a285bd1369bd0d73f86386b343d271dc08a67d | refs/heads/master | 2022-09-24T02:24:50.823834 | 2022-09-21T02:16:22 | 2022-09-21T02:16:22 | 223,768,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | # Problem No.: 11723
# Solver: Jinmin Goh
# Date: 20200410
# URL: https://www.acmicpc.net/problem/11723
import sys
def main():
n = int(input())
numSet = set()
for _ in range(n):
order = list(sys.stdin.readline().split())
if len(order) == 2:
num = int(order[1])
... | [
"eric970901@gmail.com"
] | eric970901@gmail.com |
fecbce0ca341fc298099955fae6b2f302905a51a | 7e54ab12270511711807550d951a5ee3bf0ecade | /Analysis:Submission/PyPoll/main.py | 04d6b91c1753ec75d9ba500d5c06b248db3c0a84 | [] | no_license | heang23/Python-PyPoll_and_PyBank-Analysis | 3a3ff2b58b0908909116c56a49af39ea97b9f743 | 733031030754446ea7550c6e5e616c127b854dd1 | refs/heads/main | 2023-06-27T14:58:12.577884 | 2021-07-28T03:46:03 | 2021-07-28T03:46:03 | 341,882,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,934 | py | import csv
import os
voter = 0
khan = 0
correy = 0
li = 0
OTooley = 0
# read csv file
with open('Resources/election_data.csv', newline='', encoding="utf-8") as FreeBritney:
# Create variable to store contents of budget_data.csv
Free = csv.reader(FreeBritney, delimiter = ',')
# Start the second row ... | [
"darren@Darrens-MacBook-Pro.local"
] | darren@Darrens-MacBook-Pro.local |
f6d69f822b70d723a4df63a9b5af93b86d21c5bd | 7a9d2d67b79798516e567133bf59838d1ae9141a | /django-nova/src/django_nova/templatetags/sidebar_tags.py | e2175725f7cb3192bf5e1f9efdf92225d066fcd4 | [
"Apache-2.0"
] | permissive | sleepsonthefloor/openstack-dashboard | 68129ed041b6e872d36a38c5502340476f5a7e36 | 55efa2608d8e3bc84e2ddd4b43939bcd023f3ca2 | refs/heads/master | 2021-01-22T01:04:35.693879 | 2011-05-19T00:47:46 | 2011-05-19T00:47:46 | 1,777,912 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | [
"devin.carlen@gmail.com"
] | devin.carlen@gmail.com |
8f653bfd6ddd3048c3f87f55a4bbac693df5b008 | 78f169f198b7fae6dcf160208d39033a5cbd0867 | /users/migrations/0001_initial.py | a34e8335a13086b89249b29b1be4e079961d97b1 | [] | no_license | sang092696/django-blog | a50687499b078f27d8502a2564003b5b141a2226 | e4732452c745a6c8664ae4e42cd6ba6dba55533d | refs/heads/master | 2022-12-10T21:06:49.329370 | 2020-03-19T17:48:47 | 2020-03-19T17:48:47 | 241,499,979 | 0 | 0 | null | 2022-11-22T05:19:39 | 2020-02-19T00:45:30 | Python | UTF-8 | Python | false | false | 777 | py | # Generated by Django 3.0.3 on 2020-02-13 18:01
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"sl60486@uga.edu"
] | sl60486@uga.edu |
7b8c096c985012f11446260321ae1b4972880c54 | daa000c441cd9d5eac9bd1749d93dade369f7431 | /complejo-unittest.py | 00716f97d7c3bbf2ba009da9daa19e513316b38f | [] | no_license | manturra/complejo-per-2019 | 89eff6e54f2c199ca5b2d3df4a056fafff57ab2a | 271c1b718f5b9956c2330bb9efe6d14853f0797b | refs/heads/master | 2020-04-23T04:06:31.815068 | 2019-02-15T16:54:49 | 2019-02-15T16:54:49 | 170,898,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | #!/usr/bin/env python3
import unittest
class Complejo(object):
def __init__(self, real, imag=0):
self.real = real
self.imag = imag
def sumar(self, otro):
result = Complejo(self.real + otro.real,
self.imag + otro.imag)
return result
def restar(s... | [
"noreply@github.com"
] | noreply@github.com |
b9168ca4256f538357f56f9175e1e1b507d98538 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/VBF_HToTauTau_M-120_8TeV-powheg-pythia6/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377467448/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_80/run_cfg.py | c87bf367bb3c41826a53f12310721f39747c57ee | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,477 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/VBF_HToTauTau_M-120_8TeV-powheg-pythia6/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377467448/HTT_24Jul_newTES_manzoni_Up... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
3a8a00abd395da427c831e19bbef69b058123ba7 | a63070569dc297ff179b3e32354b8d6a9ff94a63 | /scripts/backup/arch_2.py | 9c635f21ff318a0ed15ee679c7c6d60b3764d1cf | [
"MIT"
] | permissive | vafaei-ar/Ngene | 5124ad07bbdfe473a3d36210ec69b004e6bef888 | 9735f9729bdde70624ec9af73196b418f2e1b2f2 | refs/heads/master | 2020-04-05T07:29:39.980686 | 2020-01-11T13:41:36 | 2020-01-11T13:41:36 | 156,677,264 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,994 | py | import tensorflow as tf
def architecture(x_in,drop_out):
xp = tf.layers.conv2d(x_in,filters=12,
kernel_size=5,
padding='SAME',
kernel_initializer=tf.contrib.layers.variance_scaling_initializer(),
kernel_regularizer=tf.contrib.layers.l2_regularizer(scale=0.05),
bias_initializer=tf.const... | [
"vafaei_ar@yahoo.com"
] | vafaei_ar@yahoo.com |
1d488ff813d7d0d5b0c7717db1c7263fdeb24ea2 | 989c74252fddf1f2fd58b0e2a7df0699bae845a6 | /heroku.py | 9eec39eb381e66598e6a34f1b6beeb20c215c089 | [
"BSD-3-Clause"
] | permissive | fakeenemy01/Speedo | b2640d2739d7e75d5de11a909648b76211671212 | e1494aea1ec04325ee185ca8af2ea1be3a3de5f3 | refs/heads/main | 2023-07-12T20:16:17.302471 | 2021-08-20T05:10:19 | 2021-08-20T05:10:19 | 398,198,143 | 0 | 1 | BSD-3-Clause | 2021-08-20T07:50:30 | 2021-08-20T07:50:30 | null | UTF-8 | Python | false | false | 2,232 | py | import os
class Var(object):
APP_ID = int(os.environ.get("API_ID", 6))
# 6 is a placeholder
API_ID = int(os.environ.get("API_ID", 6))
API_HASH = os.environ.get("API_HASH", "eb06d4abfb49dc3eeb1aeb98ae0f581e")
ANDENCENTO_SESSION = os.environ.get("TELETHON_SESSION", None)
DB_URI = os.environ.get(... | [
"noreply@github.com"
] | noreply@github.com |
13021f500c48f5fe7eeec9b0b62400c450410088 | 8ee6da35804406eeb3a8de351603ad316386d89b | /api/cruds/assignee.py | ce2c20eee5647246ce322072654f93f3084b35b9 | [] | no_license | Yutarotaro/TODO-app | 92964f5c1b96e8bfec6604afcaf825d238dd1a33 | 360a3d59963d16cd585ac24e0ce5dad25ca70319 | refs/heads/main | 2023-08-25T08:52:41.622570 | 2021-10-10T03:52:14 | 2021-10-10T03:52:14 | 410,732,207 | 0 | 0 | null | 2021-10-01T16:18:20 | 2021-09-27T03:41:40 | Python | UTF-8 | Python | false | false | 1,724 | py | from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy import select
from sqlalchemy.engine import Result
from typing import List, Tuple, Optional
import api.models.model as assignee_model
import api.schemas.assignee as assignee_schema
#post
async def add_assignee(db: AsyncSession, add_schema: assignee_sch... | [
"9343783873a@g.ecc.u-tokyo.ac.jp"
] | 9343783873a@g.ecc.u-tokyo.ac.jp |
009806c22e4e81bec3768ef7bdfb85fc5f0df498 | 921573717c1084777cbf1cc81d90b65a4b204dc7 | /bot/telegrambot.py | 3d5e04076acb5fdbea0782a3fcfeae1e73352356 | [] | no_license | Necrobsd/beegym | 5d311c2f635ca401ab2bac9d9e8d49734d0f9678 | aea2cb5af91bd597f4bf3f5a70b69d7fee092e57 | refs/heads/master | 2021-07-20T03:38:13.143973 | 2018-12-22T02:12:18 | 2018-12-22T02:12:18 | 113,010,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,241 | py | # -*- coding: utf-8 -*-
# Example code for telegrambot.py module
from telegram.ext import CommandHandler, MessageHandler, Filters
from telegram import KeyboardButton, ReplyKeyboardMarkup, ReplyKeyboardRemove, ChatAction
from django_telegrambot.apps import DjangoTelegramBot
from . models import Groups, Subscribers, Sub... | [
"necrobsd@gmail.com"
] | necrobsd@gmail.com |
e28ccb18d82803fb7414f0a26ddda8a6bfd5f33f | ba60df2997bf61e6b70807f4cd2aa436f92bba01 | /3_hierarchical_classification/2_classification/textcnn.py | f482242196ef8ee9fef08f0b63c44bb7786b4400 | [] | no_license | yxqiu1997/Text-Augmentation-For-Hierarchical-Classification | bae6541d79f2e8217c13bd6c75443768ed31299c | 22c8c1b2c2f7ba9be1638acfde10c3e8ee6e2b41 | refs/heads/master | 2021-05-17T00:10:21.277583 | 2020-08-12T08:00:31 | 2020-08-12T08:00:31 | 250,527,586 | 0 | 0 | null | 2020-05-20T17:38:40 | 2020-03-27T12:23:24 | Python | UTF-8 | Python | false | false | 5,068 | py | from keras.preprocessing.text import Tokenizer
from keras.preprocessing.sequence import pad_sequences
from get_models import *
from keras.callbacks import EarlyStopping, ModelCheckpoint, TensorBoard
from metrics import *
import tensorflow as tf
import numpy as np
import os
import sys
os.environ['TF_CPP_MIN_LOG_LEVEL'... | [
"56983200+yxqiu1997@users.noreply.github.com"
] | 56983200+yxqiu1997@users.noreply.github.com |
68add924debc9d40e2c9e6e8b0177bc5b786cd89 | 2adcbbbecf90e4fbb89755a8a68f86b8fe70910a | /pythinkutils/aio/jwt/tornado/handler/AuthHandler.py | cf9795dfe29d2da870a4610c81273d1f7a526deb | [] | no_license | ThinkmanWang/ThinkEventTrack | 53e3b205787c2fcefb20d24fef0f98465dcb925e | b65072a3236a183c1cc1ac835cd79f2f46fd10d7 | refs/heads/master | 2023-08-03T11:38:33.099014 | 2021-09-19T13:17:39 | 2021-09-19T13:17:39 | 406,753,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # -*- coding: utf-8 -*-
from pythinkutils.aio.jwt.tornado.handler.BaseHandler import BaseHandler
from pythinkutils.common.StringUtils import *
class AuthHandler(BaseHandler):
async def create_token(self, szAppId, szSecret):
pass
async def token_valid(self):
pass
async def get_uid_name(se... | [
"wangxf1985@gmail.com"
] | wangxf1985@gmail.com |
a205da183dbfabf5c6c0fc309438bd9ea2d6a936 | f8d0f10024dd302076b92d1d86f776d3fd4dbb6a | /actions/snapshot.py | 92befca9f6cabc146020bda1316af55fd65c7d8c | [] | no_license | leolas95/talos | 042b79ab295fdbeadffada65944c44eb565ef391 | a1df9df15e2b400083332db67377ec68cf8b2cfa | refs/heads/master | 2020-04-28T18:52:47.366263 | 2019-05-22T16:56:55 | 2019-05-22T16:56:55 | 175,492,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | import time
import cv2
__FORMAT_STRING = '%d-%m-%Y--%I-%M-%S%p'
def snapshot(filename, extension='png', *frame):
# Gets the timestamp, creates the format string and the human readable name
timestamp = time.time()
formatted_time = time.strftime(__FORMAT_STRING, time.localtime(timestamp))
filename = ... | [
"leolespaul@gmail.com"
] | leolespaul@gmail.com |
0a5ea8577403dee93c4c07639f4ad685184fad37 | e35549ad53f5f72c8e84ff6cde35594f34f4fb9e | /04_函数基础/hm_13_useModule.py | 1df7a57b2fcc113f745ef56afc9ea57c36b9cbc1 | [] | no_license | Waynezhai/03_python_hm | 7887e808cf3f33dccbf2e29cdaf7cf22caf0c8a2 | 590e2d14e7dc0aece5cd5ca54bddcaba00d5b683 | refs/heads/master | 2022-01-17T11:57:02.639092 | 2019-07-31T10:59:06 | 2019-07-31T10:59:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | #!/usr/bin/python
#coding=utf-8
"""
.py文件都可以作为一个模块被导入
模块中的函数和全局变量都可以提供给外界使用
"""
import hm_13_linesModule
c = raw_input("请输入分割线字符:")
t = input("请输入分割线长度:")
hm_13_linesModule.print_lines(c, t)
print hm_13_linesModule.name
| [
"zhai.huiyan@DELL-030092.server.embedway.com"
] | zhai.huiyan@DELL-030092.server.embedway.com |
449b72cbf2d8bc5267a171d0ef99ec1a0769cf76 | cd7255eec52e1d7b90fa1a0ab8f2bb572b7a7e48 | /Problem_013.py | 5a174e9d3d24f85933e3dd3563ebb655ca1497e7 | [] | no_license | MaxxHolmes/Project-Euler | ec059ae394337da08fafb5f7b53a9e00374665ac | 2ff5926ec9dc869dd74f7fe1ffecdb3458385d29 | refs/heads/master | 2020-05-18T21:25:56.065960 | 2020-05-16T21:05:49 | 2020-05-16T21:05:49 | 184,663,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,725 | py | # Solution to Project Euler - Problem 13
# Large Sum by MaxxHolmes
# Work out the first ten digits of the sum of the following
# one-hundred 50-digit numbers.
#_____________________________________________________________________
import time
start = time.time()
# This one is literally just a sum.
def solution(numb... | [
"maxxholmesphys@gmail.com"
] | maxxholmesphys@gmail.com |
b803d963e9fd727d97e8965c9bc93169a8551cd2 | 948ac08a51bc6022afb4ff5659f966843671ed45 | /2022/14.py | 52f4a409f7f61c858b723b9d929de9c6fde208e3 | [] | no_license | whereistanya/aoc | e65d7dc9fdf4fb54022f15957767f5d40d928f02 | 84f3215fa2d9b0997457dba141ddc9cef3530797 | refs/heads/master | 2023-01-13T15:03:00.495082 | 2023-01-01T03:43:30 | 2023-01-01T03:43:30 | 160,093,103 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,775 | py | #!/usr/bin/env python3
# Advent of code Day 14.
import math
import sys
with open("input14.txt", "r") as f:
#with open("test14.txt", "r") as f:
lines = [x.strip() for x in f.readlines()]
groups = [x.split("->") for x in lines]
class Wall(object):
def __init__(self, x1, y1, x2, y2):
self.x1 = x1
self... | [
"treilly@squarespace.com"
] | treilly@squarespace.com |
070491d51994f04281802860d4cea8703c149d0d | d6bc810f6024fddc5a07fc5d2ff1e4542dcb3fe2 | /biased.py | d45f8dc95c649ea7f21af5233ffde0c8b5f2342e | [] | no_license | wlord01/polymersimulationproject | beda4d0dc3a6b999e01e913196251da15d5323be | fc118e15ef468f94a0c3274878a1430d07ba7664 | refs/heads/master | 2021-01-21T11:33:12.391240 | 2017-09-25T17:41:54 | 2017-09-25T17:41:54 | 102,007,040 | 0 | 0 | null | 2017-09-25T17:41:59 | 2017-08-31T14:03:59 | Python | UTF-8 | Python | false | false | 2,772 | py | #!/usr/bin/env python
"""A class for self avoiding walks with biased sampling"""
import numpy as np
import random as rnd
import matplotlib.pyplot as plt
__author__ = "William Lord"
class Walker:
"""
Self-avoiding random walker (SAW) with biased sampling.
Variables:
self.pos - position of walker... | [
"noreply@github.com"
] | noreply@github.com |
92dfc50126d3c212fb50a94168f38804a5bddc12 | cb098f9dba6a1772dcb7c6792ee3b648486171ec | /DataImport/main.py | 4b89c903b8ae743e745f8342da4060e1316a7cae | [] | no_license | kechen1998/GYK | 747ff3f0128750e380c43c3912677967b517ad58 | bfd166b7117f59bc2f9add3690ae390754e21f20 | refs/heads/master | 2021-01-20T06:39:10.335783 | 2017-05-01T12:05:51 | 2017-05-01T12:05:51 | 89,906,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | import os
import zipfile
import csv
import pandas as pd
from io import StringIO
import glob
data_path = '../Data/'
for filename in os.listdir(data_path):
if zipfile.is_zipfile(data_path+filename):
with zipfile.ZipFile(data_path+filename) as current_zip:
for csv_filename in current_zip.namelist... | [
"kechen1998@gmail.com"
] | kechen1998@gmail.com |
1b430d059b3c6bc75a201349ddfcc3fba9f122ff | 96311d4ad2d3d620853ed538e9631f7de8f86944 | /Perceptron/dependency_parser.py | f3c8b9695dbc7dd6cb6cf1649bef141fdfaabd3a | [
"Apache-2.0"
] | permissive | Krolov18/Languages | 1b37faf1ab825d0db7663f7dcc7b6d7a4e0ce385 | 549952886f73f0b8e1b9e6393875f5473b591407 | refs/heads/master | 2021-05-04T10:12:23.446838 | 2017-01-03T20:20:18 | 2017-01-03T20:20:18 | 49,289,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,579 | py | # encoding: utf8
# Copyright (c) 2013-2014 Matthew Honnibal, Guillaume Wisniewski, Oana
# Jean-Marie
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without ... | [
"korantin.leveque@gmail.com"
] | korantin.leveque@gmail.com |
2d8ab9ef17ea29873411764dded5b604ebcfc50e | 84302eeaf9ef91cb6cda8ccd9694863185133249 | /manage.py | c7043db14d6d9622771caf11a9bd26b0877b14d8 | [] | no_license | Ph0b1aNM/mars_rover_py_edition | ec3bb2242402c78e2d2c46ae8661d31fe3cad781 | fce03545618ddbe65e780fc076e3cabc3f660c07 | refs/heads/master | 2020-04-23T05:40:37.560876 | 2019-03-06T13:00:53 | 2019-03-06T13:00:53 | 170,935,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mars_rover_py_edition.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't impor... | [
"nic.ph0b1a@gmail.com"
] | nic.ph0b1a@gmail.com |
f4c2668459c92a992bfea23f219d566210944f98 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_imported.py | 878ac0a3c2bf379c3bee6feb4d0d7b3a98dbeee7 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
from xai.brain.wordbase.verbs._import import _IMPORT
#calss header
class _IMPORTED(_IMPORT, ):
def __init__(self,):
_IMPORT.__init__(self)
self.name = "IMPORTED"
self.specie = 'verbs'
self.basic = "import"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
bbf115116c1c1d4adbf6c3a8ed4b01d57d3f18bc | 4f23faf306db6080809fa81d2e5266987ff620b8 | /main.py | 632f2e62c5c5a3fc0063a7301ad88bf77e0ab055 | [] | no_license | Yuqizhoujoe/ChatBoxs | 7427c67077a629bc802d5ef0f94aba5aee5dd9e9 | fbfe17512ff3d10fdd86c7672440964ab64aa194 | refs/heads/master | 2023-04-13T04:24:39.464444 | 2021-04-24T06:40:45 | 2021-04-24T06:40:45 | 361,090,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,932 | py | import nltk
from nltk.stem.lancaster import LancasterStemmer
import numpy as np
import tensorflow
import tflearn
import random
import json
import pickle
stemmer = LancasterStemmer()
with open("json_file/intents.json") as file:
data = json.load(file)
try:
with open("data.pickle", "rb") as f:
words, la... | [
"kevinyuqi123@gmail.com"
] | kevinyuqi123@gmail.com |
129fbab1436a3521316da7803ce00a880343a605 | 5a839f7fd05bdb29fde5da0e60801abf114fe6b1 | /src/hipbot/__init__.py | b2eb53448462095f6b9a3613a3a3f7cdcea17e8d | [] | no_license | eugeneiiim/trello-hipchat-push | c2c4f97a0dcba465fa946a50c6604d903238ab1e | d6397f2b0b3d3bb36eb3d16c1858ad15d4cb6a87 | refs/heads/master | 2021-01-17T07:33:10.328564 | 2012-12-08T04:41:10 | 2012-12-08T04:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | from hipchatapi import * | [
"bryan.burke@xemplar.io"
] | bryan.burke@xemplar.io |
4b4e705d44e378b3e4d9dfc5d518aeb6ce3fdec5 | b8ef1a5cd3856a8e9134c3313a4e23522f199df7 | /SWEA/4698_테네스의 특별한 소수/4698_테네스의 특별한 소수.py | d1bfe600ee639546ee8555eb4de57b85feef11f4 | [] | no_license | scl2589/Algorithm_problem_solving | 910623d9675ae0219320abfd1fefc7d576027544 | 80db697cdd0180a7d4dbcfae4944d4a54191bddf | refs/heads/master | 2023-07-29T10:56:38.225206 | 2021-09-11T13:50:46 | 2021-09-11T13:50:46 | 235,363,353 | 0 | 0 | null | 2021-03-04T15:39:41 | 2020-01-21T14:36:41 | Python | UTF-8 | Python | false | false | 383 | py | T = int(input())
check = [True] * (10**6+1)
for i in range(2, 10**6+1):
if check[i]:
for j in range(i * 2, 10**6+1, i):
check[j] = False
for tc in range(1, T+1):
D, A, B = map(int, input().split())
count = 0
for i in range(A, B+1):
if i>= 2 and check[i] and str(D) in str(i):... | [
"cls561@nyu.edu"
] | cls561@nyu.edu |
23bb6267bc9316d2c29589fa9f9f4bbc4070480d | 9084751a90f977fc722f90892e62c6596d0a26c6 | /staticpy/util/helper.py | c426b40cab25aefe97cd88114e4f10b9981420d3 | [
"BSD-3-Clause"
] | permissive | SnowWalkerJ/StaticPy | 5d3b4723cd7b78283ab95ec3021bdcf0dfe67a6c | 818b7f009af7a6040313791993f543779781dddf | refs/heads/master | 2020-07-28T17:50:21.072169 | 2020-01-14T06:21:39 | 2020-01-14T06:21:39 | 209,484,058 | 19 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | class Cls:
"""
This class is to refer to the "current" class when it hasn't been completely
defined.
Example
=======
.. code-block:: python
class A:
def __init__(self, value):
self.value: int = 1
def __add__(self, other: Cls) -> Cls:
... | [
"jike3212001@163.com"
] | jike3212001@163.com |
ac6540561f986fb472f4cc06065bfbf54db6f935 | be5313b94f95599fb021d3ba743aa26cf6ff7f70 | /insert_record.py | 51b6d2d79997c0f082cb1295d5a1c6e776bf8fae | [] | no_license | Srujan-DiagonalMatrix/flaskProject | 858761119e75224707ab81da526b10943a4b2c90 | c089bb5d53dd2e6be9adc0e2a33983a7356d2bf3 | refs/heads/master | 2022-12-25T13:14:05.555743 | 2020-09-28T06:46:16 | 2020-09-28T06:46:16 | 299,207,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from catalog_db import db, Publication
#pub = Publication(100, 'Oxford Publications')
paramount = Publication(102,'Paramount Press')
oracle = Publication(103,'Oracle Inc')
#db.session.add(pub)
db.session.add_all([paramount, oracle])
db.session.commit()
| [
"srujan@diagonalmatrix.com"
] | srujan@diagonalmatrix.com |
fde3978fbc7e8b669decf1c9d0893fc4e0bad230 | 77d0b2fe45af81bcea1b7e9e7b0560f24a0e9448 | /histograms.py | 717195cdc4c8356ce779ba76f8e33a5fc166d609 | [
"MIT",
"CC-BY-4.0"
] | permissive | marz869/FrontLearning | a4992301203babe198a39844cd32290e3bf5ee46 | 70f0e4c2991ff5ba585e20fbc6aa9e7b82ca312c | refs/heads/master | 2023-05-03T18:08:49.117678 | 2021-03-30T06:57:12 | 2021-03-30T06:57:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,516 | py | #!/usr/bin/env python
u"""
histograms.py
by Yara Mohajerani (Last Update 11/2018)
Forked from CNNvsSobelHistogram.py by Michael Wood
find path of least resistance through an image and quantify errors
Update History
11/2018 - Forked from CNNvsSobelHistogram.py
Add option for manual comparison
... | [
"ymohajer@uci.edu"
] | ymohajer@uci.edu |
525b6b2e8ce96895bb616067710c9ec0bf91b842 | a7528729c9b9de9736e550d4891ba6ae1289276a | /venv/lib/python3.8/site-packages/wget.py | c0fbb8342278909a8a64b233666d0ec9be9bdf3f | [
"MIT"
] | permissive | oguzhan2142/Youtube-Spotify-Music-Downloader | 69b6c61030bd1a5b099f58efb9bc848ec801fb29 | 3dfa51aa5e5549f3f82b87444bd27aa684a93061 | refs/heads/master | 2021-01-14T22:46:16.680870 | 2020-11-06T11:51:41 | 2020-11-06T11:51:41 | 242,784,685 | 1 | 0 | MIT | 2020-11-06T11:51:42 | 2020-02-24T16:23:47 | Python | UTF-8 | Python | false | false | 22,355 | py | #!/usr/bin/env python
"""
Download utility as an easy way to get file from the net
python -m wget <URL>
python wget.py <URL>
Downloads: http://pypi.python.org/pypi/wget/
Development: http://bitbucket.org/techtonik/python-wget/
wget.py is not option compatible with Unix wget utility,
to make command line interfa... | [
"oguzhan2142@hotmail.com"
] | oguzhan2142@hotmail.com |
3fed12bf45fddd8b3124a26bbb8c233ea593fcef | 482ef019d5f2fc21c724e6e26d2604510f5b0c8f | /maintainance/automate_mailboxlist.py | 1cf235febbd70dd4410e79c3d615675786c29b14 | [] | no_license | gireeshcse/email_server_management | 196e1980ea7822c422e1419504b4aa7e3b39ea2e | 02c5027f20787c2d27238ea20839418dc4b99291 | refs/heads/master | 2021-06-26T03:04:52.200217 | 2020-10-09T08:35:59 | 2020-10-09T08:35:59 | 135,802,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | """
This is used to copy .mailboxlist which is used by the squirrelmail for each user
which contains the folders created by each user.
"""
import os
# source directory
directory = 'home'
# destination directory This must exist before running the script
destination_directory = '/media/hdd/30012018/'
users_file = dire... | [
"gireeshcse@live.com"
] | gireeshcse@live.com |
52818634f51688bd005575fd3f58eeb2d94e25da | ee108c36e9be075cfee4818a77dd35a39ebe6ecf | /Lekce08/jeho_2.py | fbde49fb1ef7495e0dbab7220193a5d291a4ce95 | [] | no_license | jarabt/Python-Academy | f85468b4fcd89607fb7a9e71a92f75fbebaaee55 | 5fcac203e1c158dd6d1381e38a7489c62fbfaa2c | refs/heads/master | 2020-06-01T12:51:50.965571 | 2019-07-10T20:20:44 | 2019-07-10T20:20:44 | 190,784,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,496 | py | # 1.OPAKOVANI definujeme hlavni funkci s parametrem
# 2.OPAKOVANI importovani modulu
import random
# (F1)
def hlavni_rozhrani(seznam_slov):
"""Fce definuje hlavni promenne a opakuje hru,
dokud hrac nevyhraje, nebo neprohraje"""
# 1.OPAKOVANI vlozime jmeno hrace
# 2.OPAKOVANI nahodne slovo z listu, ja... | [
"jarabt@seznam.cz"
] | jarabt@seznam.cz |
974040ee4eca647cc67baf627ad36fae65e167ff | 5c80aa6ee6db5917b58bc5409339932b59200fe8 | /src/data/snakes.py | 3ae291ecec02af94706cb86bed64aff7101bc077 | [] | no_license | sudheernaidu53/Snake-database-on-mongodb-on-python | cae5ff98ca968d5af79fa6d83c92490ce2d808b9 | 8d49ddee79e770871dcef084c4ab7e3a37227b06 | refs/heads/master | 2020-09-13T08:34:08.346897 | 2019-11-21T06:21:18 | 2019-11-21T06:21:18 | 222,712,874 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | import mongoengine
import datetime
class Snake(mongoengine.Document):
registered_date =mongoengine.DateTimeField(default = datetime.datetime.now)
species = mongoengine.StringField(required=True)
length = mongoengine.FloatField(required=True)
name = mongoengine.StringField(required=True)
is_venomou... | [
"ep16b030@smail.iitm.ac.in"
] | ep16b030@smail.iitm.ac.in |
cb4f37fbb33b7192d0b1ce25270306ee5cad49bb | 9222ae841019ffceaf81d650e32cb92be850e320 | /custom_layer.py | de00de8d205df3608933aa71a081bef3a3b395a6 | [] | no_license | lingeo/warping_synthesis | b0ed7d3bffeb66bd79beb3b4cf4bc4788e5efd46 | 8562b0cd14d878974579b88d4e8cde80f12cac7a | refs/heads/master | 2020-03-09T04:24:20.189557 | 2018-04-08T02:09:39 | 2018-04-08T02:09:39 | 128,586,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,806 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
import numpy as np
import re
import sys
def readPFM(file):
file = open(file, 'rb')
color = None
width = None
height = None
scale = None
endian = None
hea... | [
"noreply@github.com"
] | noreply@github.com |
0afdca03ef1e24ba433fba827473bc5ce22df989 | 8015f1c62a2cb4efd21aa8938336913bf8117868 | /bamap/ba2475.pngMap.py | 630606503aa002216a84acfe71c6c7c22e31f61c | [] | no_license | GamerNoTitle/Beepers-and-OLED | 675b5e3c179df0f0e27b42bf594c43860d03b9af | afe1340e5394ae96bda5f9022a8a66824368091e | refs/heads/master | 2020-04-20T00:09:47.122471 | 2019-04-29T04:59:35 | 2019-04-29T04:59:35 | 168,515,579 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,468 | py | ba2475.pngMap = [
'11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111',
'11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111',
'1111111111111111111111111111111111111... | [
"bili33@87ouo.top"
] | bili33@87ouo.top |
b616262df9225861997651430c7d7e07b816fb81 | 7821b4467feba1f186bd2743fda73280cfd57ba3 | /DaNN_/main.py | 02c9826495a792fefe7a553b71dfb0ca72a429f8 | [
"MIT"
] | permissive | comprehensiveMap/EI328-project | be50620ddd57d99326f4129876a05cd980b91cc0 | 145495454487c7a4496751ce3621873f6cd80872 | refs/heads/master | 2022-08-04T05:33:29.813283 | 2020-05-28T14:06:34 | 2020-05-28T14:06:34 | 263,349,832 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,846 | py | import DaNN
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
from tqdm import tqdm
import argparse
import data_loader
import mmd
import scipy.io
import json
DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
LEARNING_RATE = 0.02
MOMEMTUN = 0.05
L2_WEIGHT = 0.003
DRO... | [
"1175201255@qq.com"
] | 1175201255@qq.com |
da7e16b60e9b2492c2c08c921356c87a1a2f3d94 | 138078702012728d91291adbdeb7eb650f59bfeb | /Python/Mutations.py | 170d98ebd64954a3c7b4537d4caf34048c010f13 | [] | no_license | shashank3959/HackerRank_Python | f29b00d61a3c64847b2cd09cd23a1662b80d122a | 27a02d36b48064f21f3aa8675c227a2fd2f175ea | refs/heads/master | 2020-03-23T18:25:31.501609 | 2019-01-02T09:59:25 | 2019-01-02T09:59:25 | 141,907,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | # We have seen that lists are mutable (they can be changed), and tuples are immutable (they cannot be changed).
#
# Let's try to understand this with an example.
#
# You are given an immutable string, and you want to make changes to it.
#
# Example
#
# >>> string = "abracadabra"
# You can access an index by:
#
# >>> pr... | [
"shashank3959@gmail.com"
] | shashank3959@gmail.com |
44c65f08661418267263f920896ad307f7934341 | 22b1a881147fa5c7997a2f60488dc81a6d120f56 | /src/func/tweet_utils.py | 12cb3d0fd9420aa6e306bd554a48dd25a1257776 | [
"MIT"
] | permissive | aschwa/happy_city_tweets | 1e87f81b19e4882934f627acb5cf0d0308bafb1e | 80a240492860a6cda48f75b825cb0b54cc369c8b | refs/heads/main | 2023-05-06T09:50:05.747794 | 2021-06-02T21:33:30 | 2021-06-02T21:33:30 | 373,301,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,195 | py | import gzip
import json as json
import os
import tarfile
import shutil
import time
from os.path import basename
import pandas as pd
import re
"""Utility functions for working with Tweet data, namely CSL Decahose format."""
def find_rt_text(text):
"""
regex for RT pattern return the RT enrichment
:param t... | [
"schwartz.aaronj@gmail.com"
] | schwartz.aaronj@gmail.com |
02b850adc3f42414942df78132d969b06d261a9d | 5f4e6ccfa4baa19e28b6ce3a3cbd0f6a196f3572 | /train/detector/template/boot.py | 918dd0d46ae2514133ffa03cbe26f064527ab97a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | tonywork/train_scripts | f8b4eff83154ff0ff159c6e427c677fd9c1f3d2a | 2265817dc0d5be40d214f82a486333da0175960f | refs/heads/master | 2023-01-12T11:13:29.673356 | 2020-11-11T08:02:46 | 2020-11-11T08:02:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | # object detector boot.py
# generated by maixhub.com
import sensor, image, lcd, time
import KPU as kpu
import gc, sys
def main(anchors, labels = None, model_addr="/sd/m.kmodel"):
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QVGA)
sensor.set_windowing((224, 224))
... | [
"CZD666666@gmail.com"
] | CZD666666@gmail.com |
fd8e6cecb5721a5e61f63c5000aa93379708ad1d | 97f8b1b1653579d1dd57c16703508c4effa2a5fd | /rayvens/core/integration.py | ed5449c56a462264a11b710bb2eb2865082ed799 | [
"Apache-2.0"
] | permissive | TrendingTechnology/rayvens | 27fceb828c3e2c0ca80c36d45c7ae6c227f1d745 | 7f30419222661ab27f1bae86d60d014d7d3869fe | refs/heads/main | 2023-06-26T13:41:12.879982 | 2021-07-29T10:41:02 | 2021-07-29T10:41:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,008 | py | #
# Copyright IBM Corporation 2021
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | [
"tardieu@users.noreply.github.com"
] | tardieu@users.noreply.github.com |
3464ed7d5f606a674b4169717aef2a67261076e6 | e0f4d9e79193114a39065fe42cc4e9e3cfe69937 | /Step2_CNN/classification_CNN.py | c953c07278450eb3d0b600307c036111fef68b04 | [
"Apache-2.0"
] | permissive | XuchenSun/Game-Image-Design-Based-On-GAN-and-CNN | 70eeb93263b3925b7a379318cdb7c33c18611704 | f3387b34689d4132974d2bf6d1dda21be14fd427 | refs/heads/main | 2023-06-25T19:51:59.126474 | 2021-07-28T02:59:14 | 2021-07-28T02:59:14 | 351,609,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,243 | py | """
@Class Name: classification
@Author: Xuchen Sun
@License: General Public License (GPL)
@Contact: xuchens@mun.ca
@Data: 2021-05-06
@Version: 1.0
@Hardware Note CPU:AMD3900
@Hardware Note GPU: EVGA GTX1080ti
@Software Note: Python3.6+CUDA+CUDNN+Pycharm+Tensorflow
@ML Model Type: CNN
@ML Model Type: Saved As Model_Lay... | [
"xuchens@mun.ca"
] | xuchens@mun.ca |
55dd432a1a318f89fae66043108cd466b596c1a5 | 1287cb581dedcf89501ffbd678661dfd1277ab2c | /splashScreen.py | c6704fc3e9c12f68a1d6edd89b3936f8909e8553 | [] | no_license | kmeshx/Noteorious | cc8549e3749e942f6b8459b8311420b6940a8fa5 | 090ef8eb4ab4a01ec2781576fa764e099b9d3174 | refs/heads/master | 2020-04-16T19:32:04.181567 | 2019-01-15T14:25:09 | 2019-01-15T14:25:09 | 165,863,580 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,906 | py | ##NAME: KUSHA MAHARSHI
##SECTION: D
##FALL 2017
##15-112 Term Project
from tkinter import *
from tkinter import PhotoImage
import time
from startScreen import *
##create start BG Image
from PIL import Image
from PIL import *
rectangle_height = 650
rectangle_width = 1000
def drawStartScreen(canvas, data):
... | [
"noreply@github.com"
] | noreply@github.com |
f46f58c008cb244244c45b9b1797a443a8b5ad31 | 49e9b6e9e5e42ff8fcf107856f4afcebeaf0dab7 | /MTP/migrations/0005_faculty_admin.py | b8c002b7a67aed26229e464262d1907f71974c56 | [] | no_license | ranajoy-dutta/MTP | 49cd04502f4577776977fd60134fbe01de86fdd8 | 888e9432da6b65e1c4ad4fee0cec96c772ac5363 | refs/heads/master | 2023-01-21T08:12:34.393024 | 2020-12-05T16:46:49 | 2020-12-05T16:46:49 | 219,664,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Generated by Django 2.2.6 on 2019-10-24 07:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('MTP', '0004_auto_20191023_1030'),
]
operations = [
migrations.AddField(
model_name='faculty',
name='admin',
... | [
"ranajoydutta7@gmail.com"
] | ranajoydutta7@gmail.com |
b62ef94e5c0a1e0b8191a032a4c3931e38a92781 | 6181454f3e14a524a20f561ce75f7fbc2b7ab252 | /main.py | 48747482d9bc42051335a688e27d0e5c2a82571f | [] | no_license | Dimple-Patil/coffe-machine-project- | 2028daef5eeb530ec1acdb2bf749d29081ee68dc | 656c6fca9b6a32c7a17deff1dd1ea98dbef1a34c | refs/heads/main | 2023-07-05T04:40:25.241608 | 2021-08-14T11:39:13 | 2021-08-14T11:39:13 | 376,730,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | MENU = {
"espresso": {
"ingredients": {
"water": 50,
"coffee": 18,
},
"cost": 1.5,
},
"latte": {
"ingredients": {
"water": 200,
"milk": 150,
"coffee": 24,
},
"cost": 2.5,
},
"cappuccino": {
... | [
"noreply@github.com"
] | noreply@github.com |
f1136eea7b5f38bc264749017c6eb5b9052fdbae | 886fa2c711588646619382bfcabd38d4bcc8507c | /3 Rough Files (do not look)/Python Projects/Project/fauzan bank code/fauzan_bank.py | 511f0b5ba4bc70c5ef1a59429d449337373e080b | [] | no_license | IndoG117/Binus-Semester-1 | 3143846ba01c4720983adfce843f97cbfdb66622 | dcd48c285ce24ac596932e25e0f3cf0f4733ec2a | refs/heads/master | 2022-03-17T15:15:11.938282 | 2019-11-20T21:38:29 | 2019-11-20T21:38:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,506 | py | #%%
import json
import hashlib
import random
import atexit
import os
bank = None
username = None
class Account(object):
def __init__(self, balance):
self.__balance = balance
def __str__(self):
return f"Account(balance={self.getBalance()})"
def __repl__(self):
return f"Account(b... | [
"55411155+IndoG117@users.noreply.github.com"
] | 55411155+IndoG117@users.noreply.github.com |
d5a98a4b8654ab6855b536039d7c4702d174a890 | f50aa140652ae112b4f4d42b1f3c544e4ecc0e58 | /maintain_data/Embed_Verdict.py | b55d380eb723dca10d9aa716fb3ee6e507b30de2 | [] | no_license | Royeqiu/verdict_understanding | 8927138f7f43a5253fac0ecc89c975aba1d61301 | 59df55670534e57116661f1e9852b5002b4b71d9 | refs/heads/master | 2020-05-31T22:18:58.517607 | 2019-07-01T07:59:50 | 2019-07-01T07:59:50 | 190,517,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,644 | py | import os
import json
import re
import pickle
from maintain_data import Extract_Label as el
def load_needed_label(file_path):
label_list = []
with open(file_path,'r') as op:
for data in op:
label_list.append(data.strip('\n'))
op.close()
return label_list
def load_verdict_label... | [
"roye1202@hotmail.com.tw"
] | roye1202@hotmail.com.tw |
3a0b137baf86a868eb3eee6c56acb1b15bd89d48 | 98b8a874171027af79d51ef2b17d28dd8bd13fd3 | /testcases/unittest/test_category.py | 2d0a709d99e75044b259de201d1ee8e42b53679c | [] | no_license | Masonnn/UIAutotest | 3732b397d761052a828f380660aaf7473a1b3225 | 0fd55df6f4005e68c8b2b6fda9e02f7f3612e478 | refs/heads/master | 2022-12-29T02:49:50.721587 | 2020-10-12T09:41:40 | 2020-10-12T09:41:40 | 296,990,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,303 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.select import Select
from selenium.webdriver.support.wait import WebDriverWait
import unittest
from time import sleep
from testcases.unittest impor... | [
"lixq@weilaicheng.com"
] | lixq@weilaicheng.com |
838e12968961e2b77a9bc4e99cce4de49dec9b72 | 43910e89c9564b0f5374ed050c40c14c2761c3c6 | /web_server/unittest_sorting_2.py | 1b9cb33a7d106372500580ff6c30be0eedfdaf5a | [] | no_license | katerinanil/repa | cc5ad2985d50e660ebbb336b193f2e0e1ab31542 | 1a19051809ff5c32943f5baa8a94563ceb1bca5f | refs/heads/master | 2021-09-15T04:30:40.010283 | 2018-05-25T21:55:41 | 2018-05-25T21:55:41 | 103,693,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | import unittest
#from itertools import chain
from sorting_2 import sort
class SortCase(unittest.TestCase):
def test0_check_sort(self):
res = list(sort([1],[2,3],[4,5]))
ass = [1,2,3,4,5]
self.assertEqual(res, ass)
def test1_check_sort(self):
res = list(sort([],[],[]))
as... | [
"katerinanil16@gmail.com"
] | katerinanil16@gmail.com |
c3e66a8e8814e8e5285b5c62076236e5e92a2c5c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_barmaids.py | ed81aeb5d23f31b1164a1e5b2abbd9d585783d17 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
#calss header
class _BARMAIDS():
def __init__(self,):
self.name = "BARMAIDS"
self.definitions = barmaid
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['barmaid']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ea48df0b17cb42b958fb7977200bd200eeea6dc5 | 2540abceb535ca48bccf5524c8eea9b7a0022aa3 | /md.py | c02a095d556cd4a086b44e4f0688eb46d34ae309 | [] | no_license | vdduong/classic | d177546518706c2e3265bf6dc694bf79878bc72b | a994f5a52c8eed49af553979e961871b256c705d | refs/heads/master | 2020-06-07T21:13:29.773385 | 2014-08-07T15:02:45 | 2014-08-07T15:02:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | # molecular dynamics
import random
import numpy
def initialization(N_atoms, L):
for i in xrange(N_atoms):
for j in xrange(3):
xyz[i][j] = random.random()*L # L is the dimension, xyz the box
v[i][j] = random.random()-0.5 # velocity
return xyz, v
def force():
aL = 1./float(L)
f = 0.0
for i ... | [
"vdduong@free.fr"
] | vdduong@free.fr |
aa253fe2da534555f7a7ebbe99939afd41f67147 | 263055fd8e881199d32ed8bfa8af79b8f24c39d4 | /Pycoding/22_super().py | 76ef87af94cc9e0f1587f83316e51f3ba4167cd1 | [] | no_license | Orzsxy/YTUH | e1f187f261a6aed8d6863f245939a9e586b68627 | 7b077cc0b0fffc18f9578fa9f1e984f8eb6e7603 | refs/heads/master | 2022-11-28T05:36:47.905514 | 2020-08-15T10:23:36 | 2020-08-15T10:23:36 | 273,627,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | class A():
def say(self):
print('A:',self)
class B(A):
def say(self):
A().say()
print('B:',self)
B().say()
class Aa():
def say(self):
print('Aa:',self)
class Bb(Aa):
def say(self):
super().say() #和上面的 A()一样都是调用父类方法
print('Bb:',self)
Bb().say() | [
"921560202@qq.com"
] | 921560202@qq.com |
11ef445f1e63132c7344e85f84f4a7b8c761b1a1 | b262b550a343d50f7df20146d4e9acd57af498bc | /rest_server.py | 0332b88180b75328ec494b7e2da214b75e1caaa3 | [] | no_license | yafeya/pyRestaurantRecommendation | 2ea2594a8d97bdbcadcba2bead7b305af4c29c0c | e807b51255cd406861e871e161ed09f2287f9ee1 | refs/heads/master | 2020-05-25T19:30:27.912241 | 2019-05-29T08:27:55 | 2019-05-29T08:27:55 | 187,953,448 | 0 | 0 | null | 2019-05-29T08:27:57 | 2019-05-22T03:06:04 | null | UTF-8 | Python | false | false | 835 | py | from flask import Flask
from flask_restful import Api
from flask_cors import CORS
from RestaurantApiControllers import RestaurantsAllApiController, RestaurantsInAreaApiController
from TestConnectionApiController import TestConnectionApiController
from werkzeug.serving import run_simple
app = Flask(__name__)
api = Api... | [
"Feiyang_Yang@dell.com"
] | Feiyang_Yang@dell.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.