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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39e336c9307f7c8274b6a2cec8f3b48bf9af55e5 | 3b2e5a456e4198a0f743b4a2c0fb2a65d0671d5c | /db.py | bdfa69b5eb6321bef8d2d1af586faf4a8209e30e | [] | no_license | solistz/ptn | bd7a299580f3647b26f1c22b7f02cea0151adb0e | f8e4324a14ab05bc825672cc735e292416db0ec0 | refs/heads/main | 2023-06-19T11:42:04.105202 | 2021-05-26T11:29:42 | 2021-05-26T11:29:42 | 352,918,112 | 0 | 0 | null | 2021-05-26T11:31:06 | 2021-03-30T07:58:59 | Python | UTF-8 | Python | false | false | 838 | py | # Написать базу данных, где записи это массив словарей
#while True:
def controller():
a = ('\n'
'| 1 - Create '
'| 2 - Modify '
'| 3 - Remove '
'| 4 - View Dictionary |'
'\n'
)
print(a)
def input_dictionary_element():
print('ВВедіть число 1 - 4 : ')
number = int(input())
r... | [
"zhydan@gmail.com"
] | zhydan@gmail.com |
604072554a7f0eb42cfef7693e16063de53c0997 | 1d112fedae5e194fe6920e58789b1af39533e7ac | /mjrl/__init__.py | 008b1339d26925e4bf892f54a20ff82019bb5b08 | [
"Apache-2.0"
] | permissive | BonsaiAI/mjrl | 7ff130e120be1e3ddcf764df03540c281dc013f4 | 9e60d50518706cddf5decdcbec67e452ce698b82 | refs/heads/master | 2023-02-26T16:27:48.587950 | 2021-02-06T02:05:34 | 2021-02-06T02:05:34 | 336,432,596 | 0 | 0 | Apache-2.0 | 2021-02-06T02:05:35 | 2021-02-06T01:49:20 | null | UTF-8 | Python | false | false | 16 | py | import mjrl.envs | [
"vikashplus@gmail.com"
] | vikashplus@gmail.com |
141cdeaafce86af549785cb128257d8d76e48872 | cd5cd3b98129442c688036f8ad292b42e84f66da | /A1/Python/extra/assignment1_2_new.py | 18e01a8cb4f27724ab6672d1a03629e10be00618 | [] | no_license | manishtanwar/Machine-Learning | bee672d93f4e6e16f3a9242d6f92a7d96c252b1b | e6cb29207b5cf93ace93aa563887f3de829b0137 | refs/heads/master | 2021-11-03T20:26:40.071813 | 2019-04-27T00:02:27 | 2019-04-27T00:02:27 | 167,661,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py |
# coding: utf-8
# In[400]:
import numpy as np
# In[401]:
def train(X_in, Y, tau):
"""
Input :
Ouput :
"""
X_un = np.copy(X_in)
# X_in = (X_in - X_in.mean())/np.std(X_in)
n = 2
m = X_in.size
X = np.ones((m,n))
X[:,0] = X_in
Y_pred = np.zeros(m)
X_T = np.trans... | [
"manish.tanwar19@gmail.com"
] | manish.tanwar19@gmail.com |
6f227c5ce3a2d188622f589658f80e019ffc2ec6 | 7e4460c85790fae2d470182732289bcd1b8777b2 | /Process/process_scripts.py | c6028329d884b48f3b57d3958e624f02c6d43b3a | [] | no_license | khamukkamu/swconquest-msys | 5b23654c8dd2e8b2f25bc7914252eedc05a5cc1e | 71337a4ae9c507b9440e84cf49d31fc67a781978 | refs/heads/master | 2021-04-29T19:00:10.389224 | 2019-05-01T15:11:11 | 2019-05-01T15:11:11 | 121,704,753 | 1 | 1 | null | 2018-02-16T01:40:58 | 2018-02-16T01:40:58 | null | UTF-8 | Python | false | false | 1,812 | py | import string
from module_info import *
from module_scripts import *
from process_common import *
from process_operations import *
from module_info import wb_compile_switch as is_wb
def save_scripts(variable_list,variable_uses,scripts,tag_uses,quick_strings):
file = open(export_dir + "scripts.txt","w")... | [
"swyterzone@gmail.com"
] | swyterzone@gmail.com |
9c06c0a29a8845ed289678b35982f9e2dbc2a720 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03957/s736073526.py | 4d07ff9077817797927326fee3fdb9b2cb662fdf | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | s=input()
ans="No"
for i in range(len(s)):
if s[i]=="C":
for j in range(i+1,len(s)):
if s[j]=="F":
print("Yes")
exit()
else:
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5caf39f7f04ef450e3262dadb721eb0ac0d15d05 | 5cccdb3ae388d9234904b8bcf58ce115a1945e0b | /08_apples_and_bananas/test.py | 7d70b88fa05d0215145e74adc3c88ecf6e225cad | [
"MIT"
] | permissive | Akawi85/Tiny-Python-Project | 3e5962dfa0116eed8eb3bdbd0d9c83ded3a0da31 | 63d8956e0d114ac4e68b3cf26da9b24ece1ff249 | refs/heads/main | 2023-02-03T14:20:56.787277 | 2020-12-18T15:39:42 | 2020-12-18T15:39:42 | 308,365,557 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,866 | py | #!/usr/bin/env python3
"""tests for apples.py"""
import re
import os
from subprocess import getstatusoutput, getoutput
prg = './apples.py'
fox = '../inputs/fox.txt'
# --------------------------------------------------
def test_exists():
"""exists"""
assert os.path.isfile(prg)
# --------... | [
"ifeanyi.akawi85@gmail.com"
] | ifeanyi.akawi85@gmail.com |
a546526b405a6825d7312a49a2cd25bcb0d101ae | 0abd812a50ba3330734fcbb0088a74c5ad6735a2 | /python/asKeyword.py | 77dc239390af38863bc903a53b3a7baf0e65c86c | [] | no_license | scMarth/Learning | a914af6f6327454234e5f98dfc8cf95d6d4f8077 | ae696461c2c8edc9944879503cce01d525cf4ce0 | refs/heads/master | 2023-08-03T05:13:03.162533 | 2023-07-28T22:58:51 | 2023-07-28T22:58:51 | 120,689,926 | 2 | 0 | null | 2022-12-11T13:14:07 | 2018-02-08T00:33:42 | JavaScript | UTF-8 | Python | false | false | 56 | py | import re
import re as regex
print(id(re) == id(regex)) | [
"vlantaca@gmail.com"
] | vlantaca@gmail.com |
2427dae02e66a14871a1c061b91cc2507d560ca0 | 6d5c15c193218fd352bbdcf188b019f35bf6d762 | /try/try/urls.py | 32bef94fc7d0b80833e9f0d4c093e4e1b63ab705 | [] | no_license | Yeshey-Gyatso/UI-of-prosperity-college- | 4dd32e7afb3982feced658d86dd75780c616fda2 | 1d9cc3d5ec7ed47c7786c24d7247c2f7f02f1903 | refs/heads/master | 2022-12-04T04:52:30.019586 | 2020-08-26T13:02:45 | 2020-08-26T13:02:45 | 290,494,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | """try URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-based vie... | [
"yesheygyatsoo.yg@gmail.com"
] | yesheygyatsoo.yg@gmail.com |
7c02d2ad4e1e378078eab256ef590b3dbb318934 | 43d8b1639320fbafb9635f47c17e56fceed9faba | /edashi_1428/urls.py | f5d1d9d26e849b64a4b3c7e0ed6e30da099c7ba3 | [] | no_license | crowdbotics-apps/edashi-1428 | fd731df62fb45e554031f56fd85700149a2acb18 | 30615d9118d998e82c463df6bddcc1f858d9bb86 | refs/heads/master | 2022-12-10T04:09:32.671280 | 2019-03-17T09:38:05 | 2019-03-17T09:38:05 | 176,081,279 | 0 | 0 | null | 2022-12-08T04:55:54 | 2019-03-17T09:37:04 | Python | UTF-8 | Python | false | false | 1,042 | py | """edashi_1428 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')
Clas... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1029bac9469ac0dd2993476c4e8baf8890222e70 | 4568ce0f4b7cfbbf0d6f7da34d029837ef0e71c4 | /douban/douban/items.py | 6a71ccda81ce9e525ee3a67b9ec619deda6c297c | [] | no_license | jiayunyan/python_scrapy | 731b87f15aa2da68c179611fe972b1cdc15efa4a | 230eb912cddab3400671cfbe66de8e9beb569955 | refs/heads/master | 2020-03-25T11:09:43.575976 | 2018-08-06T12:36:38 | 2018-08-06T12:36:38 | 143,721,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class DoubanItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
| [
"noreply@github.com"
] | jiayunyan.noreply@github.com |
f95d3da2b751d3a48dcc63bacb2925b0fde282b2 | 42f9db714a14cf18238cf743cf0353e26aff7ad8 | /leadmanager/leadmanager/settings.py | b1a1f59902ffa066965c03653a5f1324cafcd005 | [] | no_license | taochenlei/leadmanager | 29e2250e82734aa5bbb81bf1803a7be6eebb1db6 | a3b078569c7a40a0f7e03a78a3dbeb7a6197cda4 | refs/heads/main | 2023-08-20T19:25:18.878735 | 2021-10-20T04:11:24 | 2021-10-20T04:11:24 | 416,196,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,288 | py | """
Django settings for leadmanager project.
Generated by 'django-admin startproject' using Django 3.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pat... | [
"taochenlei@gmail.com"
] | taochenlei@gmail.com |
c0fd4082245f364263b9f86f142b2a86aa5f9785 | 4760101a6c297c4b4b0e96f5ae7fb8c94c2abda6 | /cs_591/project/pymir/AudioFile.py | 23b0ca35865b12fd6d0f202e5f9e5f7903931323 | [] | no_license | ssikdar1/grad_school | 6fc739c7638e64a0a9974c920ac808c3989c9109 | cfcdcd70fab5b4083515abb2afe10c9dd5c27923 | refs/heads/master | 2016-09-06T11:46:42.754021 | 2014-10-27T16:17:10 | 2014-10-27T16:17:10 | 13,286,075 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,991 | py | """
AudioFile class
Load audio files (wav or mp3) into ndarray subclass
Last updated: 15 December 2012
"""
import os
from subprocess import Popen, PIPE
import numpy
from numpy import *
import scipy.io.wavfile
from pymir import Frame
import pyaudio
class AudioFile(Frame.Frame):
def __new__(subtype, shape, d... | [
"shan.sikdar@gmail.com"
] | shan.sikdar@gmail.com |
150ce4eec30ddd6d30b5c7b40d66ea2a1fdb3802 | 9a9ba1dc8eacc8680bbdc28ac2fd842f098cac42 | /gym_psketch/env/craft.py | 83da46fd30681cd789dd02ee754af3a590ac1c7a | [] | no_license | Ordered-Memory-RL/ompn_craft | 6236ff65ce820d01d4932ff8ddc09ca02d0ca8c2 | 4bc3de80bfd7984f5e690e157afcdf4723ece064 | refs/heads/master | 2023-03-23T04:47:14.158351 | 2021-03-10T04:23:59 | 2021-03-10T04:23:59 | 346,228,258 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 17,343 | py | from . import array
from .cookbook import COOKBOOK as CB
from .rendering import *
from .window import Window
import enum
import numpy as np
from skimage.measure import block_reduce
from gym import Env
import attr
import matplotlib.pyplot as plt
__all__ = ['Actions', 'ID2ACTIONS', 'CraftWorld', 'CraftState', 'ACTION_VO... | [
"fdsafdsa@dsafdsa.com"
] | fdsafdsa@dsafdsa.com |
bafd53e16b68d5c5315f2de4dc3a24be45844475 | ae9bb7babce2a0349ae932985cf418a03057c670 | /test_ProjectPractice/test_requests/wework/__init__.py | 3c6ed16fe565082753b7192859a99a55e588806c | [] | no_license | Veraun/HogwartsSDET17-1 | d2592fcb4c9c63724c19bcf9edde349ebcd2c8af | 6648dbfb640b065ff2c76cb6889a8f9e4f124b91 | refs/heads/main | 2023-07-02T05:20:32.161248 | 2021-08-06T03:55:13 | 2021-08-06T03:55:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | '''
#!/usr/bin/python3
# -*- coding: utf-8 -*-
@author: wangwei
@project: HogwartsSDET17
@file: __init__.py.py
@time: 2021/3/28 19:30
@Email: Warron.Wang
''' | [
"wei1.wang@ximalaya.com"
] | wei1.wang@ximalaya.com |
37e1f185250c2fa42c1ca814fbe24ef8d4a33173 | b4ab09af253b2060d2a8ba7a4ef2a6add43dd89d | /Object-Counter-using-Opencv-Instance-Segmentation-master/Object-Counter-using-Opencv-Instance-Segmentation-master/instance_segmentation_final.py | 952652564b775f677c5e6875bf4b0a19021ee6aa | [] | no_license | jonatan1040/final-project | 3b39ad4b8ef4074c0ad3ed7e2b6dde917342b71d | ef632a4450c1bedca7079a71d054e23c55a4753b | refs/heads/master | 2021-01-09T16:03:47.657454 | 2020-02-22T15:24:53 | 2020-02-22T15:24:53 | 242,365,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | import numpy as np
import cv2
import os
import imutils
# load the COCO class labels our Mask R-CNN was trained on
#All 90 classes are listed in this text file, one per line.
labelsPath = os.path.sep.join(["mask-rcnn-coco", "object_detection_classes_coco.txt"])
LABELS = open(labelsPath).read().strip().split("\n")
#Mas... | [
"jonatan1040@gmail.com"
] | jonatan1040@gmail.com |
13fe7acffc167ef651043847166ade55dfbe7fad | 6219e6536774e8eeb4cadc4a84f6f2bea376c1b0 | /scraper/storage_spiders/thienthientanvn.py | 80cce4c40f006fcc7e32a7cdf2085a62934bb55f | [
"MIT"
] | permissive | nguyenminhthai/choinho | 109d354b410b92784a9737f020894d073bea1534 | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | refs/heads/master | 2023-05-07T16:51:46.667755 | 2019-10-22T07:53:41 | 2019-10-22T07:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='mytextarea']/span",
'price' : "//span/div[@class='price']",
'category' : "//div[@id='accordion']/ul/li",
'descri... | [
"nguyenchungthuy.hust@gmail.com"
] | nguyenchungthuy.hust@gmail.com |
cdfd5d92a7f2b7c1f5784d6c1b9d01e19c0254b1 | 8e200c8e41b4ecb46053a61f74476889be560c98 | /nerdtalk/nerdtalk/wsgi.py | dfffe9738220ec67451b87cdc6329d792938b40f | [] | no_license | Buffer0x7cd/nerdtalk | d39869076b310a22182b9d2b5f70e36659884deb | 931e3bfb2e8a464fa486b8d1f1c54563979402ae | refs/heads/master | 2021-05-09T18:02:24.226556 | 2018-01-30T18:26:45 | 2018-01-30T18:26:45 | 119,149,191 | 0 | 0 | null | 2018-01-27T09:04:17 | 2018-01-27T09:04:17 | null | UTF-8 | Python | false | false | 394 | py | """
WSGI config for nerdtalk project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"manvendra021997@gmail.com"
] | manvendra021997@gmail.com |
6ac161c929a268cf47e452298e375d4446129656 | 3783ca6629411e32911b646bbfdea333a839fb6c | /World.py | bdde9ba1eb032b4e7e04f04371c2902a4ebecc48 | [
"MIT"
] | permissive | davidnarciso/PyGorillas | 963e628fbea44d4311b7d8c64c8a30c720ea566a | 30a4d3daf678db29749368123bef2cd0baeefe38 | refs/heads/master | 2020-12-31T00:54:44.215991 | 2017-02-19T01:05:59 | 2017-02-19T01:05:59 | 80,593,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,485 | py | from direct.showbase.DirectObject import DirectObject
from BuildingEnvironment import BuildingEnvironment
from direct.interval.IntervalGlobal import *
import direct.directbase.DirectStart
from pandac.PandaModules import *
from UserInterface import UserInterface
import sys,random
from Menu import Menu
class World(Direc... | [
"david.lee.narciso@gmail.com"
] | david.lee.narciso@gmail.com |
7207dd2b3b0752a700fa46d98bceecee95897454 | 7e13522ec24b429c831ec09d4e0592d0c42ba5ef | /Self-Study/NX_API_CLI/showInterfaces.py | 86757128c349f2e81db33a8970c96f7988734320 | [] | no_license | ds3010/Projects | 85b64656e101781587956797154eed60431c296f | 604d132470b958a32435cc423cc0f6721cce837e | refs/heads/master | 2023-01-06T18:20:26.802366 | 2020-11-07T17:23:53 | 2020-11-07T17:23:53 | 294,784,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | import requests
import json
url='https://10.10.20.58/ins'
switchuser='admin'
switchpassword='Cisco123'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show ip int brief",
"output_format": "json"
... | [
"daniel_seijas3010@hotmail.com"
] | daniel_seijas3010@hotmail.com |
c76dc5ce812d0c4b138ab5c2e331dbe1d7bda634 | d5312598eb9cff609eedee5a9d51db5e46bb5a38 | /assignment_3/tester-a3p1c.py | 82ee6579c6b73d9b3fdad256430bf71a1cb12b02 | [] | no_license | paolo-torres/ECE_406 | a7b5b53398f1c7a2e6f2acf0dfe1411d734ce69c | f4625b86d931fe4181b877b85c96317b25353bcd | refs/heads/main | 2023-04-03T21:30:19.806787 | 2021-04-22T20:41:14 | 2021-04-22T20:41:14 | 328,792,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,423 | py | #! /usr/bin/python3
import sys
import random
from a3p1c import robotpath
"""
Some tests.
"""
def main():
# First, a couple of simple 2x2 grid tests
n = 2
c = dict()
c[str([[1,1],[2,1]])] = 1
c[str([[1,1],[2,2]])] = 1000
c[str([[1,2],[2,1]])] = 1000
c[str([[1,2],[2,2]])] = 1
print('Te... | [
"paolo-torres@hotmail.com"
] | paolo-torres@hotmail.com |
873e8a25015fde4f500581381f3660e3d4848ad0 | 9ed44f44698df9a3cff4c8ae2972d5edcc9638c6 | /userbot/plugins/logic.py | d4d666f5f75553309847cad9282aea3c852c595a | [
"MIT"
] | permissive | piggy03/catuserbot | 3493315c28de6f32f30fe1da57a867979e2e4e81 | 3d2676c23341d391fc2cbd705b8875716d9ad0e6 | refs/heads/master | 2022-09-21T06:19:49.183745 | 2020-06-05T20:51:06 | 2020-06-05T20:51:06 | 269,922,217 | 1 | 0 | MIT | 2020-06-06T08:46:14 | 2020-06-06T08:46:14 | null | UTF-8 | Python | false | false | 1,324 | py | """No Logic Pligon for @PepeBot
\nCoding by Legend @NeoMatrix90
\nType .logic to see many logical fact
"""
from telethon import events
import asyncio
import random
from userbot.utils import admin_cmd
@borg.on(admin_cmd(pattern=f"logic", allow_sudo=True))
@borg.on(events.NewMessage(pattern=r"\.logic", outgoing=True))
... | [
"58665444+sandy1709@users.noreply.github.com"
] | 58665444+sandy1709@users.noreply.github.com |
88f4853707e89c9212e5da10da342596d16845e6 | 4ca680ae47b6762e425c2f1e04c350a310c6428c | /Model.py | 2327278bc2460590b4f4929095b5ad91c78eb8ff | [] | no_license | ID132457890/CSS458_critters | b5e803720fb7732be9c2edebec60c4c47812f515 | e2a218fbfeafb337ae16feab75603621faa1bfc4 | refs/heads/master | 2016-09-14T18:25:38.045627 | 2016-05-17T18:38:14 | 2016-05-17T18:38:14 | 58,654,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,423 | py | from Environment import *
from Creature import *
import AnalyticsReporting as AR
import Logger as L
import unittest
# basic stubs for how the model could be ran
class Model(object):
def __init__(self, conf = {}):
self.grid_size = conf['grid_size'] if 'grid_size' in conf else 100
... | [
"nightjars@gmail.com"
] | nightjars@gmail.com |
97943c431e6ed92d297e167d8cd89df19b6be7b2 | ea3aedb776de06a649fba2c18182f37d00ee89b2 | /flasggerui.py | df0e75415d4721f7ba90766b8b4ee53b83da72dc | [] | no_license | kevalpipalia/Fake-currency-detector | 5491abad631c78303d59d524b080f0346216d08e | 4c29597f537f2864af103ab59763d587d55018b4 | refs/heads/main | 2022-12-28T14:30:56.507156 | 2020-10-18T08:36:56 | 2020-10-18T08:36:56 | 299,906,024 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 6 21:35:01 2020
@author: keval
"""
import pandas as pd
import numpy as np
from flask import Flask,request
import pickle
import flasgger
from flasgger import Swagger
app = Flask(__name__)
Swagger(app)
pkl_in = open('classifier.pkl','rb')
classifier = pickle.load(pkl_in... | [
"keval.pipalia009@yahoo.com"
] | keval.pipalia009@yahoo.com |
ed65b61b19d5534c134fa007de61bf2d20a5c32f | eb7b9086b0eb2a04775ea1f04c531137be76c8ca | /coordinator/EdgeOracles/dom_reverse_rare_seeding_oracle.py | c7e47d26b2db150813d308a599151c183a1d06ba | [
"Apache-2.0"
] | permissive | TotalKnob/muse | b8195d36416e6d680dd31bfecc2554f0ec4a7e73 | 3c4a05d2a3ffc3bceb6827207a2a4a1a63aba503 | refs/heads/master | 2023-06-09T14:40:48.017143 | 2021-06-29T16:39:34 | 2021-06-29T16:39:34 | 334,089,666 | 0 | 0 | Apache-2.0 | 2021-06-29T16:10:28 | 2021-01-29T08:59:05 | Python | UTF-8 | Python | false | false | 6,302 | py | #!/usr/bin/env python
import math
import utils
import sys
import os
import csv
import ConfigParser
from utils import bcolors
from operator import itemgetter
import itertools
def oracle_info(s):
print bcolors.HEADER+"[Edge-Oracle-Info]"+bcolors.ENDC, "{0}".format(s)
class DomRevRareSeedingOracle:
def __init__(... | [
"mirzazadefarkhani.r@husky.neu.edu"
] | mirzazadefarkhani.r@husky.neu.edu |
5ae2c762306e5a94e26a671d98093c5b02e5db3d | f167dffa2f767a0419aa82bf434852069a8baeb8 | /lib/youtube_dl/extractor/arcpublishing.py | ca6a6c4d87f9f13a259f8402f5e7ef51ad097088 | [
"MIT"
] | permissive | firsttris/plugin.video.sendtokodi | d634490b55149adfdcb62c1af1eb77568b8da3f5 | 1095c58e2bc21de4ab6fcb67a70e4f0f04febbc3 | refs/heads/master | 2023-08-18T10:10:39.544848 | 2023-08-15T17:06:44 | 2023-08-15T17:06:44 | 84,665,460 | 111 | 31 | MIT | 2022-11-11T08:05:21 | 2017-03-11T16:53:06 | Python | UTF-8 | Python | false | false | 7,970 | py | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
extract_attributes,
int_or_none,
parse_iso8601,
try_get,
)
class ArcPublishingIE(InfoExtractor):
_UUID_REGEX = r'[\da-f]{8}-(?:[\da-f]{4}-){3}[\da-f]{12}'
_VALID_URL = r'... | [
"noreply@github.com"
] | firsttris.noreply@github.com |
c1d2bdf1cfba820e44c9ad97648ee80b603e7f51 | d43bd00c2540ae7520bc11d4c13be0f4160cc762 | /src/chap/2/deliciousrec.py | 55d766ad258157a095d3641dd331c9430bcb991d | [] | no_license | maple-cat/CollectiveIntelligence | c96b8775e53ac25655e0ba3870ab7940190b6d26 | 3c864b7bf196cdfc3d2cfceffdcc43c4293fa6a2 | refs/heads/master | 2020-03-18T23:14:51.611932 | 2013-04-02T16:12:55 | 2013-04-02T16:12:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | '''
Created on 2013-2-1
@author: duanhong
'''
from pydelicious import get_popular,get_userposts,get_urlposts
#import pydelicious
import time
def initializeUserDict(tag,count=5):
user_dict={}
for p1 in get_popular(tag=tag)[0:count]:
for p2 in get_urlposts(p1['href']):
user=p2['user']
... | [
"duanhong169@gmail.com"
] | duanhong169@gmail.com |
a9644f9f2a5b3bcdfe9af426286195f43770ac4b | 1882da61b4526e35369e03f643492070086624dd | /tests/unit/test_batches.py | 1a8e3d80c3c86be83f356afadf4b912c7bd7d5de | [
"CC0-1.0"
] | permissive | notWorthy/python-architecture-patterns | 1c235c94f978c9da9c194f00413047c5ecd1d1ee | 94e43c0882522231f4d4853e7aec83c058d7eb5a | refs/heads/master | 2022-12-09T18:39:53.808028 | 2020-09-09T00:56:42 | 2020-09-09T00:56:42 | 291,617,050 | 0 | 0 | CC0-1.0 | 2020-09-09T00:56:44 | 2020-08-31T04:48:13 | Python | UTF-8 | Python | false | false | 1,635 | py | from datetime import date
from domain.model import Batch, OrderLine
today = date.today()
def make_batch_and_line(sku, batch_qty, line_qty):
return (
Batch("batch-001", sku, batch_qty, eta=today),
OrderLine("order-123", sku, line_qty)
)
def test_allocating_to_a_batch_reduces_the_available_qua... | [
"developer@mailible.com"
] | developer@mailible.com |
483cc434f7750ca41c1475f6670f1c174d708d87 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /nlp/dialogue_generation/cpm/pytorch/iluvatar/cpm/config/layers/fast_self_multihead_attn_func.py | 01c7eedcf77eaaaf34487a80bdb34ae4fd3a42be | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 13,572 | py | import torch
# import fast_self_multihead_attn
try:
import ext_ops as fast_self_multihead_attn_bias
except:
pass
# import fast_self_multihead_attn_bias_additive_mask
class FastSelfAttnFunc(torch.autograd.Function) :
@staticmethod
def forward(ctx, use_time_mask, is_training, heads, inputs, input_weights... | [
"jia.guo@iluvatar.ai"
] | jia.guo@iluvatar.ai |
880c0e3f07b8dc18b0b9a657319a7a80bacb079d | e0683e20c9b831e2d6411f41a1907c876135b051 | /cauchyCode/results/size.py | 85e7689783a14242373e9c16d364d222bdee1ea8 | [] | no_license | bharathGitUser/fds | 1df93f73b36f3427599f77bfce7df58c8980f321 | 3b59fcb6d5526d3e9514508b58ae87b037c5a7f8 | refs/heads/main | 2023-01-14T16:46:32.851493 | 2020-11-15T15:47:52 | 2020-11-15T15:47:52 | 313,061,723 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,604 | py | #!/usr/bin/python
import os
import sys
import stats
import sys
import numpy as np
import matplotlib.pyplot as plt
from operator import add
def foo(section, dict):
dict[section] = {}
dict[section]['xval'] = []
dict[section]['yval'] = []
def boo(d, dict):
for (key,val) in d.items():
dict[key]['yval'].append(ma... | [
"bharathb@snrs-MacBook-Pro.local"
] | bharathb@snrs-MacBook-Pro.local |
b1effa43176d77ba4cd5d71fe491629591f33413 | 978a0ff297cfe68baa8b62a30aaacefa3efdd48d | /flaskfiles/flaskpractice.py | 4fe3f0d5817107d5f5eb70af42986722a0a65e5e | [] | no_license | pavi535/pythonpratice | d55f263cf4170ace3fa8ba7f4a26d67f950af7ce | 9f66be3e609f2b4fbc1a035e67d6fcf08992818a | refs/heads/main | 2023-08-27T06:38:30.446752 | 2021-11-10T03:03:24 | 2021-11-10T03:03:24 | 426,094,134 | 0 | 0 | null | 2021-11-10T03:03:25 | 2021-11-09T04:46:11 | Python | UTF-8 | Python | false | false | 2,593 | py | from datetime import datetime
from flask import Flask, render_template, url_for, flash, redirect
from flask_sqlalchemy import SQLAlchemy
from forms import RegistrationForm, LoginForm
app = Flask(__name__)
app.config['SECRET_KEY'] = '5791628bb0b13ce0c676dfde280ba245'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///s... | [
"you@example.com"
] | you@example.com |
8a995bd441b1bf0410c40c17856e88cacb7fdc00 | 840ca6face6cb369104eec228fe7b51630bd10f1 | /剑指offer/52-两个链表的第一个公共节点.py | ca8ed7ed73921386ff21cac0c21a687a57434913 | [] | no_license | Leofighting/Practice-on-LeetCode | 56e6245eb03f76ca254e54dc0a0cdd2c71ec3dd0 | 6d7dad991922abe862f19009b261b5146e059955 | refs/heads/master | 2021-08-16T04:21:04.699124 | 2020-06-29T22:48:38 | 2020-06-29T22:48:38 | 197,718,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # -*- coding:utf-8 -*-
__author__ = "leo"
# 输入两个链表,找出它们的第一个公共节点。
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def get_intersection_node(self, headA, headB):
node1, node2 = headA, headB
while node1 != node2:
node1 = node1.... | [
"leoxiaojw@gmail.com"
] | leoxiaojw@gmail.com |
783f8f6e5173dae2d5474b7632052fd9b4c4e950 | 330e77e53d580a73e883e705b6bc8caca3456194 | /CyTin/wsgi.py | 40f683ebf7732c411b6390db6bd00f72b43a095d | [] | no_license | Chandan-97/CyTin | d2995970eade13ec46c7874ecb5c2922328e5367 | e8612124a52a307a44c6833ddefe02b06a50c919 | refs/heads/master | 2020-03-10T11:39:18.188372 | 2018-04-13T04:26:01 | 2018-04-13T04:26:01 | 129,360,932 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | """
WSGI config for CyTin project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"cp564738@gmail.com"
] | cp564738@gmail.com |
e304f960f0f1b7f61d60fe21801e60380b87bf4f | ef20a522c892f2f38bd232048c60336acb88bf65 | /stockscraper/stockscraper/pipelines.py | 25ec6a50cb3a67cd0357aa81987646eae910daee | [] | no_license | KR-CodingMonkey/Crawl_Stock_Info | 5faee5724d8ccd018e136063e14218cff35abbd8 | ef2eaf14713b5377bf417675c0b232cd7a4e7d40 | refs/heads/main | 2023-03-26T02:34:53.905765 | 2021-03-21T23:59:03 | 2021-03-21T23:59:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | from kafka import KafkaProducer
from json import dumps
import time
class StockscraperPipeline(object):
def __init__(self):
self.producer = KafkaProducer(acks=0,
compression_type='gzip',
bootstrap_servers=['localhost:9092'],
... | [
"ahippo@naver.com"
] | ahippo@naver.com |
451038cce2a5fc5ba8d5d2f5557c9b07b6b6b2ab | df6b2801a70c3a7ec36424f331edab812f1c9ce3 | /urllib_demo/request.py | 08836b51657fa819fa676b4f386286810b929037 | [] | no_license | ilovepeppa/crawler_demo | 28cc5fc06559382cb81ed915e4b92bb20dff7665 | 720122066342c31dfdd21ee2c8cd12bff70e0e94 | refs/heads/master | 2020-04-25T22:21:19.793628 | 2019-02-28T12:36:15 | 2019-02-28T12:36:15 | 173,108,895 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | import urllib.request
import http.cookiejar
def save_cookie():
filename = 'cookies.txt'
cookie = http.cookiejar.LWPCookieJar(filename)
handler = urllib.request.HTTPCookieProcessor(cookie)
opener = urllib.request.build_opener(handler)
opener.addheaders = [('User-agent', 'Mozilla/5.0')]
respons... | [
"ilovecode@yeah.net"
] | ilovecode@yeah.net |
20270c779390d99731d6a40814246f08c030f539 | 94d149c437b82d37cdc0f4a3af08452097776456 | /templates/plantillas/temp_route.py | 91e2fbc31ab6b65613a7673a5f2debc843a75782 | [] | no_license | edyadan/qaqc | a9d8e15ab7c69a65135b2c1416bbc41ada5543e8 | 38311d9fbf2ec7ee596261633d53af10bf897512 | refs/heads/master | 2022-07-08T04:31:43.186144 | 2019-08-04T21:12:43 | 2019-08-04T21:12:43 | 200,541,612 | 0 | 0 | null | 2022-06-21T22:27:49 | 2019-08-04T21:06:29 | Python | UTF-8 | Python | false | false | 1,759 | py | from {{name}}_model import {{name}},{{name}}_form,{{name}}_convert
from db_setup import init_db, db_session
from flask import Blueprint, Flask, jsonify, request, render_template, redirect, url_for, json
from sqlalchemy.orm.attributes import flag_modified
from sqlalchemy import create_engine
import pandas as pd
{{name}}... | [
"edyadan@outlook.com"
] | edyadan@outlook.com |
b06e3ace791dfcd120050816b47cf3cea36e3caf | 056adbbdfb968486ecc330f913f0de6f51deee33 | /609-find-duplicate-file-in-system/find-duplicate-file-in-system.py | 369212a29b568e52d671b267faa76bb344d532b9 | [] | no_license | privateHmmmm/leetcode | b84453a1a951cdece2dd629c127da59a4715e078 | cb303e610949e953b689fbed499f5bb0b79c4aea | refs/heads/master | 2021-05-12T06:21:07.727332 | 2018-01-12T08:54:52 | 2018-01-12T08:54:52 | 117,215,642 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | # -*- coding:utf-8 -*-
# Given a list of directory info including directory path, and all the files with contents in this directory, you need to find out all the groups of duplicate files in the file system in terms of their paths.
#
# A group of duplicate files consists of at least two files that have exactly the s... | [
"hyan90@ucsc.edu"
] | hyan90@ucsc.edu |
400c7f2f344fefd2314e135379867552bfc87fba | 6d14be90b76feb9d6f16ef93ea2ac7aa8deb2f89 | /bagic1/th.py | 71ac0a73ec2ffaefee8e8b6a663a742348cbf689 | [] | no_license | homg93/PS | 7fe9a543f396c1190186a3b28edb5dafe835c51f | d06a3039ff3fac06459853ab12033662e1a0d7d6 | refs/heads/master | 2020-07-18T13:32:24.406492 | 2019-09-04T09:55:29 | 2019-09-04T09:55:29 | 206,254,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | a = [5,1,1,1,2]
s = sorted(a)
print(s)
print(s[s.count(1)])
# d = 0
# l = len(a)
# for i in range(len(s)):
# if i == 0:
# print(s[i]*(l- i))
# d += s[i]*(l- i)
# else:
# d += (s[i]-s[i-1])*(l- i)
# print((s[i]-s[i-1]),(l- i),end=' ')
# print((s[i]-s[i-1])*(l- i))
| [
"homg93@gmail.com"
] | homg93@gmail.com |
b0aa51ba1503361c7fb86dc2c4d27a52bc4a2d8f | 9b6a3902e8a33e83dd6b24dc83b8a989c6666461 | /migrations/versions/b29f8f5e455b_create_controller_tables.py | 943eeb4c785717398c9135631082d60090eb7962 | [
"MIT"
] | permissive | MTES-MCT/mobilic-api | 91dd171c1fb22e23f4cd672d380ce27feca24366 | 1e189f1e4d175feb275585d8eba8ec08b5aa8465 | refs/heads/master | 2023-09-04T10:56:54.731547 | 2023-08-29T13:51:37 | 2023-08-29T13:51:37 | 238,493,241 | 1 | 0 | MIT | 2023-09-14T19:37:52 | 2020-02-05T16:14:13 | Python | UTF-8 | Python | false | false | 2,210 | py | """create controller tables
Revision ID: b29f8f5e455b
Revises: 420dbfec0b28
Create Date: 2022-07-12 11:55:45.368316
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = "b29f8f5e455b"
down_revision = "420dbfec0b28"
branch_la... | [
"raphael.taieb.fr@gmail.com"
] | raphael.taieb.fr@gmail.com |
7863e3a9c1b084f2424bfe6b8e926d7afd714b98 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04030/s580737724.py | e5017d598b9bc2f7e817eadffadd9076c0229da3 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | S = input()
Z = []
X = len(S)
i = 0
while i < X :
if S[i] == "0":
Z.append(0)
elif S[i] == "1":
Z.append(1)
elif S[i] == "B":
if len(Z)== 0:
pass
else:
Z.pop()
i += 1
i = 0
X = len(Z)
while i < X:
print(Z[i] , end ="")
i +=1 | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
98e8cfe4279ac7e1dfe3f4566e407a589595201e | 82f993631da2871933edf83f7648deb6c59fd7e4 | /w2/L6/11.py | 2cf14d2b9a804b5ec5eaec7caa0a54bb13eddce8 | [] | no_license | bobur554396/PPII2021Summer | 298f26ea0e74c199af7b57a5d40f65e20049ecdd | 7ef38fb4ad4f606940d2ba3daaa47cbd9ca8bcd2 | refs/heads/master | 2023-06-26T05:42:08.523345 | 2021-07-24T12:40:05 | 2021-07-24T12:40:05 | 380,511,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | a = ['a', 'b', 'c']
b = ['hello', 'hi', 'hola']
c = [12, 30, 20]
for i in zip(a, b, c):
print(i) | [
"bobur.muhsimbaev@gmail.com"
] | bobur.muhsimbaev@gmail.com |
3267827c6172fd22712c30402e7fc68868d81061 | 42b84b02e64d21234372501a20bf820e0bcbf281 | /site/threath/apps/user_profiles/views.py | 2054832130d5f203d6bf0ea498dde605276bad9c | [] | no_license | gage/proto | 861d1e1190770b0cc74f51a6fe140157cc0ac12e | e13ac7d0ee5c6acce2557dcf71a00a941543c006 | refs/heads/master | 2020-04-06T06:44:01.712532 | 2013-06-28T06:30:59 | 2013-06-28T06:30:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,876 | py | import time
from django.contrib.auth.decorators import login_required
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.http import Http404, HttpResponse, HttpResponseRedirect
from django.template.loader import render_to_string
from django.conf import settings
from d... | [
"sean.cheng@geniecapital.com"
] | sean.cheng@geniecapital.com |
8633166a9a9d8761557dd75a22580ac2bb386aee | e6429af0061bc64a6a38256b9865bf4355ee1e32 | /Python-DatavisulizationWebpage/testing/main.py | 3e70d2c4264fb32cfdcc05fb5ffe1954fe4dad39 | [] | no_license | rala8730/software-development-methods-and-tools | 4002823e33922daef3030bf568633eb6a0a8f87b | 1ab996a987cbd47baa3ad7f025d8d9ca0ae846f5 | refs/heads/master | 2021-01-12T04:03:11.094326 | 2016-12-29T04:49:28 | 2016-12-29T04:49:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,433 | py | #!/usr/bin/env python
import MySQLdb
# open databases connection
#here, please enter the the username, passwaord, and mysql database you created
#you will have to do this for all four webpages
db = MySQLdb.connect("localhost","root","root","pollutiondata")
##beginning of the HTML header/webpage
print "content-type: t... | [
"rala8730@colorado.edu"
] | rala8730@colorado.edu |
82189181de0942cad8396d024a5d049ec946f19f | 7fa001f59be0f5d92ad3a9820e619a6971e44431 | /web_app/urls.py | 2892e738f80860f9a820a055bd76fb4e13903863 | [] | no_license | arrazy100/sigas-sukosari-2021 | 8c8ef7fc876ea65d1e55e2eedbab0cc5512bd0dc | b3c3f13e03c41560822f627add0dd72f38beb012 | refs/heads/main | 2023-06-08T06:20:04.099776 | 2021-06-26T00:53:56 | 2021-06-26T00:53:56 | 378,805,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | """web_app 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')
Class-based... | [
"afdhalarrazy111@gmail.com"
] | afdhalarrazy111@gmail.com |
0039e5a8aec878cb771be2ecdc89116f71a7cd5f | 48ff6b01dabc631c8924f3c51996010d9e0d2086 | /psypl/experiments/variable_count.py | 8f9bdaeef8f1030d231ba50b2ed17beb7e2c70bb | [] | no_license | willcrichton/psypl-experiments | b4522908f17ba9fbc023fa627a260e645a511bc4 | 7b0a134cc17919e62707d005fc03f2e22938eb13 | refs/heads/master | 2022-12-18T01:41:20.964024 | 2021-02-13T00:46:55 | 2021-02-13T00:46:55 | 219,410,440 | 3 | 0 | null | 2022-12-07T14:42:13 | 2019-11-04T03:33:04 | Jupyter Notebook | UTF-8 | Python | false | false | 3,326 | py | from enum import Enum
from ..utils import random_tree, ConstNode, OpNode, all_names, shuffle, try_int
from random import sample
from itertools import combinations, product
from ..base import Experiment
from pprint import pprint
import pandas as pd
import numpy as np
import experiment_widgets
class VariableCountExperim... | [
"wcrichto@cs.stanford.edu"
] | wcrichto@cs.stanford.edu |
79596651586815bcc674706587990ca8182e59eb | 3b63518ccee10b0b85758fe09b69b2c03a7b7da4 | /text_summarization_amazon_reviews/model_py_files/s2s_model_emb4_b50.py | 7e3ca02d159689d0e4905a0917a81f68ec370efa | [] | no_license | srodas7/danalytics | e7ecd989ab48a28fcfa7d5f5d6dc8f208eb2cc75 | aa20f2daa077412848954be43a88fc4482456901 | refs/heads/master | 2020-11-26T03:09:06.053468 | 2020-09-07T16:22:34 | 2020-09-07T16:22:34 | 228,947,966 | 0 | 0 | null | 2020-09-07T16:22:36 | 2019-12-19T01:04:10 | null | UTF-8 | Python | false | false | 6,243 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 12 22:18:04 2019
@author: sherryrodas
"""
########################################## LOAD DATA ##########################################
# HDF5 encoder and decoder data
import h5py
import numpy as np
filename = 'capstone/processed_amazon_txt.h5'... | [
"sherryrodas@Sherrys-MacBook-Air.local"
] | sherryrodas@Sherrys-MacBook-Air.local |
ab5a8efe6ee474ebb3d0874bd150540fd5990e8f | b05ae08859d3b593b6c815a10e0705e13c1ae1eb | /RinoNakasone/RinoNakasone/spiders/piaohua.py | 46b6392f62d63419047047495d160ab00d756622 | [] | no_license | jacksonyoudi/Rino_nakasone_backend | 32425bcd9087384fa25db1fe51e854b7a4f1fa12 | e838668a6f67a6a4eca52d7658ad84b61b4123db | refs/heads/master | 2021-04-15T18:21:17.678794 | 2019-03-02T15:16:30 | 2019-03-02T15:16:30 | 126,698,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,131 | py | # -*- coding: utf-8 -*-
import scrapy
from urllib.parse import urljoin
from bs4 import BeautifulSoup
from RinoNakasone.settings import PIAOHUA
class PiaohuaSpider(scrapy.Spider):
name = 'piaohua'
allowed_domains = ['www.piaohua.com']
start_urls = ['http://www.piaohua.com/']
def parse(self, response):... | [
"liangchangyoujackson@gmail.com"
] | liangchangyoujackson@gmail.com |
5e1b29564b9c98be9378b1854de1cbd89cb8286f | 317cd9ae774e3932ea17e33b1455ee63c141e0aa | /celery_compliance/subcon_total_log_hours.py | 56fd4bebf975856ca0286247c1a99c202de70f90 | [] | no_license | restrictedaccess/mq | 7608e379e3f67661f8d5a0cd36fef50471f469e2 | e0276af8fe7f66c7148f06bb10af7163454fb593 | refs/heads/master | 2021-08-17T08:21:47.922524 | 2017-11-21T00:43:51 | 2017-11-21T00:43:51 | 111,478,815 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,435 | py | # 2014-07-08 Normaneil E. Macutay <normanm@remotestaff.com.au>
# - task to get the total log hours of staff based on start and end date
import settings
import couchdb
from celery.task import task, Task
from celery.execute import send_task
from celery.task.sets import TaskSet
from datetime import date, datet... | [
"fryxxter@gmail.com"
] | fryxxter@gmail.com |
2cd0bb00f525bb6ae79e78058f812031c18b3248 | d58e221b8a08b8d536d7249eea3d3ef31a03c8e5 | /tryTkinter.py | 9d3a4899226f5834eccc7ecaf1002a784f90e947 | [] | no_license | first-odd/myaccess | 9ef9ae5384ff15db2e195fb929ea69d1158b93df | 2e35f208a23efb40da971da6153b167571ae6e59 | refs/heads/master | 2021-12-20T22:54:12.098958 | 2021-12-18T15:34:36 | 2021-12-18T15:34:36 | 250,950,362 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | from tkinter import *
from tkinter.messagebox import *
a = Tk()
a.title('Try')
a.geometry('800x600+400+400')
#root.iconbitmap('/Users/jacksonandrew/Downloads/favicon.ico') 插入一个icon
a.resizable(0,0) #固定
#设置结果窗口
root = StringVar()
root.set('0') #初始值
#Label
result = Label(a,text='结果', width=20,height=1,bd=10,anc... | [
"2921106404@qq.com"
] | 2921106404@qq.com |
bb854340247f638ffd766c3a2e12f7b3be2a4e92 | 02dc9d80deaa9f29afb7f30ecd7aed1b78bd128e | /app/node_modules/grpc/build/config.gypi | 0165e6af8744884c2817f8600150b4ea2f82cfd1 | [] | no_license | liu-sf/voteApp | 7c707c0add90e8cfcc511078abfee7d33590bad3 | 24d14c02edce5cf0aefb5abdc21af5e53d19eb23 | refs/heads/master | 2022-11-02T00:58:15.234213 | 2019-04-29T08:07:49 | 2019-04-29T08:07:49 | 166,231,390 | 0 | 2 | null | 2022-10-26T12:41:14 | 2019-01-17T13:35:44 | HTML | UTF-8 | Python | false | false | 4,660 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"force_dynami... | [
"1350985242@qq.com"
] | 1350985242@qq.com |
429521c688445ef43a8fc4dc15cacbffb8501777 | f9d9c91bc1d643c051f3fbea7605bdc2df890b12 | /institution/migrations/0002_auto_20161111_1528.py | a3a6d2c73e09494d320c57e40bdc9a400e78bd47 | [] | no_license | crodriguezanton/BEMSeducation | fbc0ac60b4387a120d2e350e10a4ad6eb5cf9004 | 5fc0ed9297734398044bfab17450576cb68704a8 | refs/heads/master | 2021-01-12T18:05:06.628332 | 2017-05-15T11:45:40 | 2017-05-15T11:45:40 | 69,903,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-11-11 15:28
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('institution', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
... | [
"carlos@beatbcn.com"
] | carlos@beatbcn.com |
c86638a84b3e4b58b7ca7e6d789b29da4bc9e467 | 3d5712aaaa5972efe418ae82bd289e4e7ddfd01b | /problem_031.py | bdf6a766ffe15493b223ffed23d1e4864095922b | [
"MIT"
] | permissive | smrmkt/project_euler | 5252c56d77aeb43247a80f1c94e76182b03bda4c | 7d5901731dd1c06809a378c12829a8b8b506eb21 | refs/heads/master | 2020-04-10T15:12:07.720911 | 2014-12-09T14:28:31 | 2014-12-09T14:28:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | #!/usr/bin/env python
#-*-coding:utf-8-*-
'''
In England the currency is made up of pound, £, and pence,
p, and there are eight coins in general circulation:
1p, 2p, 5p, 10p, 20p, 50p, £1 (100p) and £2 (200p).
It is possible to make £2 in the following way:
1×£1 + 1×50p + 2×20p + 1×5p + 1×2p + 3×1p
How many differen... | [
"smrmkt@gmail.com"
] | smrmkt@gmail.com |
1814a51cda515b0e4f7442cea9030b0fdb09db8f | 6463900393667324d938d7f54e215cb1ea89d63e | /data_process/data_process.py | 27dec511f00a7b3a3f258ee99b8ad66274fe9ee1 | [
"MIT"
] | permissive | 1146976048qq/GAST | b19512cb231b85a6d3891900b82a4edf9bed4175 | 4654fc4e711a1eb192e720f505a9fe514294f7aa | refs/heads/master | 2023-02-19T17:14:21.436548 | 2021-01-22T11:40:24 | 2021-01-22T11:40:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,630 | py | '''
Biaffine Dependency parser from AllenNLP
'''
import argparse
import json
import os
import re
import sys
import pandas as np
from allennlp.predictors.predictor import Predictor
from lxml import etree
from nltk.tokenize import TreebankWordTokenizer
from tqdm import tqdm
pt_models_dir = '/data/kkzhang/Cross_GAT/Alle... | [
"1146976048@qq.com"
] | 1146976048@qq.com |
187166ea2567f6b8c7bba448205dd30a929a7111 | f156beb6c5d911e86c28ea71f70f7422391a2c12 | /ipynb/biplot.py | 8dce7fa3067b700bbaf52f0c0f3842ed253917e4 | [] | no_license | knightlab-analyses/office-study | 31382dc259b1b21c3288709e5a49070186c5e66b | 506e1d037c982e23538aec4742305ccd2508d844 | refs/heads/master | 2021-01-12T14:36:42.088868 | 2017-08-20T23:46:57 | 2017-08-20T23:46:57 | 72,040,888 | 0 | 2 | null | 2017-08-20T23:46:58 | 2016-10-26T20:17:35 | Jupyter Notebook | UTF-8 | Python | false | false | 17,786 | py | from __future__ import division
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
import matplotlib.colors as colors
import matplotlib.cm as cmx
import numpy as np
import pandas as pd
from collections import OrderedDict
def make_biplot(samples,
features=None,
sample... | [
"jamietmorton@gmail.com"
] | jamietmorton@gmail.com |
7de46ff258d1e70d9b95ce0af43322a64519d851 | ab3575ba93b9082ce1bd928473f60657d3b3d66c | /front1/views.py | 89cc3dd44fb3824124b58bece80b6f2b77eb78bf | [] | no_license | leonardobarpe/ge1 | e592587d923c16b95fa6a5348171894ff186c953 | 4ee956590bbf16b13a2c6cd8025681df17392128 | refs/heads/master | 2020-03-19T08:49:04.594267 | 2018-07-16T05:21:25 | 2018-07-16T05:21:25 | 130,753,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | from django.shortcuts import render_to_response, HttpResponseRedirect, HttpResponse, render
from django.template import RequestContext
# Create your views here.
# --------------------------------------------------------------------------- Logueo
def inicioSesion(request):
# front1 = request.user.has_module_perms('fro... | [
"leonardobarpe@gmail.com"
] | leonardobarpe@gmail.com |
5f8bbcb4b5ff9366d6e4fb74645f50c061e4a06c | f2e914aa045c420b2d694c94b7adfb2091bc64f5 | /systemd_notifier/systemd.py | 7eef893875a77c4520fabe740905b42716f7542e | [
"Apache-2.0"
] | permissive | drbild/systemd-notifier | c20ac8b6e68e4aec184607582c3aa904fd43a4ca | 57d4f1faffd81c9f078efb9a22858ca9bfb6bf44 | refs/heads/master | 2021-03-30T18:20:07.403568 | 2017-06-12T19:37:30 | 2017-06-12T19:37:30 | 93,211,722 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,599 | py | import dbus
import dbus.mainloop.glib
import gobject
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
gobject.threads_init()
from state import State
from error import SystemdError, UnknownUnitError
class DBusManager(object):
def __init__(self):
self.system_bus = dbus.SystemBus()
self.sy... | [
"drbild@willbild.com"
] | drbild@willbild.com |
9565c6008d359c9ef4776815146440ba81e91136 | a4f2d74559b00191454d7d3492f8d35d118332b5 | /src/atra/plot/network_air.py | 15d33b561b56963e9c5b77d2ee76eb5a2084872d | [
"MIT"
] | permissive | nfontan/argentina-transport | c4b6f06a33034ce1c3ce905f901ff5086013b38b | f1583b077844e6b20b2c81144dec0872c88bdb80 | refs/heads/master | 2023-03-18T10:23:44.580084 | 2019-08-11T22:01:34 | 2019-08-11T22:01:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,910 | py | """Plot air network
"""
import os
import cartopy.crs as ccrs
import geopandas
import matplotlib.patches as mpatches
import matplotlib.pyplot as plt
from atra.utils import load_config, get_axes, plot_basemap, scale_bar, plot_basemap_labels, save_fig
def main(config):
"""Read shapes, plot map
"""
data_pa... | [
"tomalrussell@gmail.com"
] | tomalrussell@gmail.com |
2264e15313f69e818f1bbdd697aae79e592592ad | 4273f162abb12ef1939271c2aabee9547ac6afee | /crowd/utils/config.py | 054ef5faf1c8d84308890a15230a3b194adf10e5 | [] | no_license | xiyuhao/subins_tutorials | 2717c47aac0adde099432e5dfd231606bf45a266 | acbe4fe16483397e9b0f8e240ca23bdca652b92d | refs/heads/master | 2023-07-28T13:42:41.445399 | 2021-09-12T11:02:37 | 2021-09-12T11:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | '''
config.py 0.0.1
Date: January 15, 2019
Last modified: June 14, 2019
Author: Subin. Gopi(subing85@gmail.com)
# Copyright(c) 2019, Subin Gopi
# All rights reserved.
# WARNING! All changes made in this file will be lost!
Description
None.
'''
def get_conig():
return 'Linux', 'maya', '2016', '2.7.5'
def... | [
"subing85@gmail.com"
] | subing85@gmail.com |
6ef4885b55b2959e9db0e836280c30f7bf832629 | a2860dd0acbb7b85d30fad1be52512fa7bc4c611 | /cerebralcortex/core/file_manager/read_handler.py | f1d9eb4c750b94afc422959e5232bc2448e3825c | [
"BSD-2-Clause"
] | permissive | hippietilley/CerebralCortex-Kernel | b1783c8156744f7809c9a3810b990c45945da936 | c7dac033d9561f14bdb72430577db6ae4e3c7911 | refs/heads/master | 2020-04-18T15:15:47.199601 | 2019-01-18T16:05:14 | 2019-01-18T16:05:14 | 167,607,878 | 0 | 0 | BSD-2-Clause | 2019-01-25T20:16:54 | 2019-01-25T20:16:54 | null | UTF-8 | Python | false | false | 6,069 | py | # Copyright (c) 2018, MD2K Center of Excellence
# - Nasir Ali <nasir.ali08@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above cop... | [
"nasir.ali08@gmail.com"
] | nasir.ali08@gmail.com |
b8a0e0a648bc723ae6c7e0641be2840b0b6aa446 | a89b96bd2dc1878e36463cb39b4126b408db8ba3 | /프로그래머스/lv2/42578. 의상/의상.py | 4fc71004f1d3a6cbc3175838a5da1ff11ee74665 | [] | no_license | EmilyMinjuKim/Algorithm | fb2b9fec12e543f232d7148aa6859febd031dcb2 | 5f1a9211560d21cf034d426b58bbce896b31bc7e | refs/heads/master | 2023-06-11T09:59:29.435141 | 2023-06-03T02:44:35 | 2023-06-03T02:44:35 | 277,550,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from collections import Counter
def solution(clothes):
answer = 1
map = dict(Counter([type for name, type in clothes]))
map_list = list(map.values())
for i in map_list:
answer *= (i+1)
return answer-1 | [
"65878320+EmilyMinjuKim@users.noreply.github.com"
] | 65878320+EmilyMinjuKim@users.noreply.github.com |
996925f5530dd5af83fba2da9dd72a0012fcef11 | a0f27e45f598a5c4145efa44ae05edf431b7e06f | /seqmod/modules/ff.py | 4d6a8e6043e089cd4a0ed05da4145de8fd6bf3c5 | [] | no_license | cmry/seqmod | af4d2e6227247f5d3630a53818328cea493672f4 | ddc57cd36c6b6204263db770f4c98923ffb4ba0b | refs/heads/master | 2021-09-11T23:50:01.261133 | 2018-01-09T15:51:23 | 2018-01-09T15:51:23 | 113,448,571 | 0 | 0 | null | 2017-12-07T12:31:43 | 2017-12-07T12:31:43 | null | UTF-8 | Python | false | false | 5,677 | py |
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Function
class MLP(nn.Module):
"""
Standard MLP
"""
def __init__(self, inp_size, hid_size, nb_classes,
nb_layers=1, dropout=0.0, act='relu'):
self.inp_size, self.hid_size = inp_size,... | [
"enrique.manjavacas@gmail.com"
] | enrique.manjavacas@gmail.com |
c7da84fd41d7ba4a2e690f3ba382bc6e79adc58c | 9e6204f99bfc5c1c3b4201f74ac2bcbd317f1d54 | /Flow-free/venv/bin/pip | 38f7d146bfccaeee8c120f9123840fab66b5b02b | [] | no_license | Roshmar/Python | 643b27f7692d3bd866df5ee124fc5f74649f2f2d | 2288f9511e83e06b7376403b143314643e205f00 | refs/heads/main | 2023-06-17T07:18:44.410502 | 2021-07-20T11:20:14 | 2021-07-20T11:20:14 | 387,766,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | #!/Users/yaroslav/Desktop/FlowFree/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"martin.roshko@student.tuke.sk"
] | martin.roshko@student.tuke.sk | |
fd75ee444727d1fd69c72d0457b9ea145dcba2b1 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/homework02/maoyanspiders/maoyanspiders/pipelines_20200627225401.py | 2181904c869c47b47b88084f2f73feb9b48ff6f0 | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 523 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
class MaoyanspidersPipeline(object):
def process_item(self, item, spider):
films_name = item['films_name']
... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
646cf0ca1a5bb5bdb50c0c7f66ae267edfa44b72 | 7c02c0175af45d97556f296f81fb17b561592979 | /gridBagSizer.py | 3050b2b27bf5785b4ea1bcebbb20cb9f8e4d3f2e | [] | no_license | rahulSingh2995/wxPython | 36842fc48dddec9d20eaf74d46a106c9eb7a4522 | 5fdcc872c4b4873468fdfd1608b20031cbfc2de7 | refs/heads/master | 2022-11-24T19:38:44.193559 | 2020-07-30T04:14:53 | 2020-07-30T04:14:53 | 283,667,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | #!/usr/bin/env python
"""
ZetCode wxPython tutorial
In this example we create a rename layout
with wx.GridBagSizer.
author: Jan Bodnar
website: www.zetcode.com
last modified: July 2020
"""
import wx
class Example(wx.Frame):
def __init__(self, parent, title):
super(Example, self).__init__(parent, titl... | [
"kumarrah@inpunluxu915.ls.ege.ds"
] | kumarrah@inpunluxu915.ls.ege.ds |
925a4ae81321c8cdd62cc8c22f316ef03f50b3d7 | f44616f8e5c7695fcfbd19e67228274dc9d816eb | /backend/src/controllers/task_controller.py | 10216998ced96ab6d31efcf25acae59837146d74 | [] | no_license | samharre/kanban | 496fbcd15317e6142eb444d60085ca8d21c2c575 | 2b191f16eaf776b04c1bc4d846adcf5eee83ff02 | refs/heads/master | 2023-03-12T09:21:44.803066 | 2021-03-01T18:40:03 | 2021-03-01T18:40:03 | 302,793,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,186 | py | from flask import Blueprint, request, jsonify, abort
from ..auth.auth import requires_auth, get_user_id
from ..models.task import Task
from ..models.phase import Phase
from ..utils.task_utils import (
reorder_tasks_same_phase,
reorder_tasks_diff_phases
)
import sys
task_bp = Blueprint('task_controller', __name... | [
"samiaharre@gmail.com"
] | samiaharre@gmail.com |
8536e0cce05e6fee39144b2b1c6e1b5c482b510f | 8064bbf3dadc70c3aceeecd885bc69cfddf06549 | /ZeeAnalyzer/test/runElectronPlots_Skim_v1.py | 9dc1a84ee437d62c8d259a0380e2392dbbaec102 | [] | no_license | taroni/ZeeAnalyzer | 6faf7e4d9785ab9b15559d096a2b98d5e7483be7 | 44046f7095a22a9b5486a5ab0aee2dee52b430ae | refs/heads/master | 2022-01-17T20:12:06.695267 | 2017-11-24T13:51:25 | 2017-11-24T13:51:25 | 110,087,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("TestElectrons")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
from Configuration.AlCa.GlobalTag import GlobalTag
process.load("Configuration.StandardSequences.FrontierConditio... | [
"Silvia.Taroni@cern.ch"
] | Silvia.Taroni@cern.ch |
e4ede140050fb8c241173693253719a2d0235799 | 799c9d7e1436232a02b213178ed0bda9d5c673e8 | /Chapter15/example2.py | b3c8ae550f592b84515a5257e78fd403bf0171f4 | [
"MIT"
] | permissive | KrisNguyen135/Advanced-Python-Programming-Second-Edition | a32578116805285983df8eac2dba584e0e77ea0d | e5d473e3efc5f6590028cb3f318e1f4aeb0aadd1 | refs/heads/main | 2023-08-14T18:14:09.087485 | 2021-09-19T17:57:03 | 2021-09-19T17:57:03 | 373,899,665 | 0 | 0 | MIT | 2021-06-04T16:23:55 | 2021-06-04T16:23:55 | null | UTF-8 | Python | false | false | 686 | py | import time
import threading
COUNT = 50000000
def countdown(n):
while n > 0:
n -= 1
###########################################################################
start = time.time()
countdown(COUNT)
print('Sequential program finished.')
print(f'Took {time.time() - start : .2f} seconds.')
###############... | [
"nguyenminhquan135@gmail.com"
] | nguyenminhquan135@gmail.com |
a38e00bd15b7f69cd0501f9e2a9343c1615f935c | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/83f8ec00a3cf40a78f2fd2fa2dedcd3a.py | 76cb33cce300805428c65c319f8169dd9e0ef049 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 270 | py | import re
def hey(input):
clean_input = input.strip()
if clean_input == '':
return 'Fine. Be that way!'
if clean_input.isupper():
return 'Whoa, chill out!'
if clean_input.endswith('?'):
return 'Sure.'
return 'Whatever.'
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
c656944c13e116c6febc4eead60f815fe2d86c6d | d198ac05f2c83146f955f148e6b290ba50025d06 | /pyshapelets/extractors/sax_shapelets.py | ecf748bdbb7bfab98cdfcdca0f947eb2cf635977 | [
"MIT"
] | permissive | tungk/pyShapelets | 3aa3827207b3915684fefeef52b287401d858bc2 | d7e91150c17bf0f5fed55dc36d0c4d2d447e80c9 | refs/heads/master | 2020-09-06T20:42:54.004418 | 2018-08-03T12:52:28 | 2018-08-03T12:52:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,065 | py | import numpy as np
import pandas as pd
import os, sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from sax_transform import transform
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import util
from collections import defaultdict, Counter
from tqdm import trange
def random_... | [
"givdwiel.vandewiele@ugent.be"
] | givdwiel.vandewiele@ugent.be |
fc81c7273b4d500b69a80fac0199e1efe9b4913d | 06a6334ae0372f4e9e0093b7a6315e3441617a18 | /Web Service Endpoint/rekog.py | edc2e85b2e1d8c9e7ed4e751e08ea1becd629ad4 | [
"MIT"
] | permissive | labs12-rxid/DS | 75c45ad8b563b4f7ce64eaed496ffe4eb36485de | dca6b42b7bd95d977321c2dedf5f407b7aa46dc7 | refs/heads/master | 2022-10-28T03:29:12.746205 | 2019-07-30T13:46:27 | 2019-07-30T13:46:27 | 183,264,870 | 1 | 0 | MIT | 2022-09-30T18:30:50 | 2019-04-24T16:15:17 | Jupyter Notebook | UTF-8 | Python | false | false | 9,588 | py | '''
Python Script to detect imprinted text on pill images using AWS Rekognition.
Source code:
https://github.com/labs12-rxid/DS/blob/master/text_detection_AWSRekognition.ipynb
print(cv2.getBuildInformation())
'''
import urllib.request
import json
import re
import boto3
import numpy as np
from dotenv import load_dot... | [
"edgardochin@gmail.com"
] | edgardochin@gmail.com |
67187dc9a9c6274d8f2701640b2cb41b338c82e7 | f034a29ce5748fdd3cf21cbdd968c3464205f5a5 | /Manager/modules/purge.py | 2fa0fa0ce288dce69789cc2b2fca389de494c5e2 | [
"MIT"
] | permissive | Royal-Devendra01/Manager | b20fad5226293faec2bcf13ebfe14a4d4e6ce088 | 0cc3e585cd79f25c0af77946074c869599def128 | refs/heads/master | 2023-04-08T07:37:07.361563 | 2021-04-13T18:22:07 | 2021-04-13T18:22:07 | 339,805,559 | 0 | 1 | MIT | 2021-04-13T08:59:59 | 2021-02-17T17:40:26 | Python | UTF-8 | Python | false | false | 4,394 | py | import html
from typing import List
from telegram import Bot, Update, ParseMode
from telegram.error import BadRequest
from telegram.ext import Filters, run_async
from telegram.utils.helpers import mention_html
from Manager import dispatcher, LOGGER
from Manager.modules.disable import DisableAbleCommandHandler
from Ma... | [
"noreply@github.com"
] | Royal-Devendra01.noreply@github.com |
def536434c3705369d9088015894352a6b0c3bfa | 85c856de997b16103d51731b3d528f7d0dd265bf | /PythonOOP/FromTeacher/Lesson3/3.3/script.py | e989fd2d25797e1dc8e2a8bb15f41a19db1ba769 | [] | no_license | NyarukouSAMA/py_geekbrains | ff3a5589b85273af9b398098ec30ce95eb452d58 | 7a216719e1cefc1ffbbb1c2bf65f1f185b43ca8f | refs/heads/master | 2021-07-04T11:19:21.850154 | 2020-12-27T22:36:29 | 2020-12-27T22:36:29 | 210,034,160 | 0 | 0 | null | 2019-10-05T06:33:36 | 2019-09-21T18:24:26 | Python | UTF-8 | Python | false | false | 70 | py | import requests
print( requests.get("http://127.0.0.1:5000/").text )
| [
"afro.detray@gmail.com"
] | afro.detray@gmail.com |
cb4d6b0eaee0bc9f16f7367045c1709809b0a754 | 45301dd6851f09c02df698e8d74f7504b6e789e9 | /datam/settings.py | 69d378c0796aebfb5814299a4e4a6541ad07b196 | [] | no_license | bambeero1/datam-csv | 3e8ba6e611f50f06307420396afc947572276270 | ea43c92d19b9f429e34d8ebf03ddc4c512972126 | refs/heads/master | 2020-07-06T00:36:16.588865 | 2019-12-24T04:44:08 | 2019-12-24T04:44:08 | 202,832,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,064 | py | # -*- coding: utf-8 -*-
# Scrapy settings for haaj project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics... | [
"noreply@github.com"
] | bambeero1.noreply@github.com |
bcee99a9a701fa5486e9c1baba62c7e8182cc60d | 45de7d905486934629730945619f49281ad19359 | /xlsxwriter/test/worksheet/test_date_time_01.py | 50180b311c94a156c9af3597a1e11e5fb953c101 | [
"BSD-2-Clause"
] | permissive | jmcnamara/XlsxWriter | 599e1d225d698120ef931a776a9d93a6f60186ed | ab13807a1be68652ffc512ae6f5791d113b94ee1 | refs/heads/main | 2023-09-04T04:21:04.559742 | 2023-08-31T19:30:52 | 2023-08-31T19:30:52 | 7,433,211 | 3,251 | 712 | BSD-2-Clause | 2023-08-28T18:52:14 | 2013-01-04T01:07:06 | Python | UTF-8 | Python | false | false | 6,888 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2023, John McNamara, jmcnamara@cpan.org
#
import unittest
from datetime import datetime
from ...worksheet import Worksheet
class TestConvertDateTim... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
dbf588d3937c3c8c4e0f4d1cae686ccc1d6ba96b | ae6f6096fc0e3484a2a2d7fbc472f6bcf5f6449d | /algorithm/sort/SConscript | 290525036473870c0bbe33739509ccf360c922bb | [] | no_license | 0xuye0/XYLearn | be934b746eae04b1a612010b58322db9ad54f61b | 4cf183a9fe707bb281b020b22ccc077b91d7d34c | refs/heads/master | 2021-05-28T23:28:13.098526 | 2015-09-14T13:58:57 | 2015-09-14T13:58:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | import glob
Import('env')
cpp_files = glob.glob('*.cpp')
env.StaticLibrary('sort.a', cpp_files)
| [
"xuye@xuye-HP-Pavilion-dv3-Notebook-PC.(none)"
] | xuye@xuye-HP-Pavilion-dv3-Notebook-PC.(none) | |
4166c4f30135a6518167290572a9335ba71deec7 | 2e9c7dc6e8832ec9d226e86fefed1f4274d3e8c7 | /huang/myproject/myproject/urls.py | 6fdf601637dbfd15f9e3fc059132c0f1b4e6aa91 | [] | no_license | huangyuanyuan1011/my_blog | bc6d0f2a40f7058e5f05e93d1efaa7fb024617a5 | f7cec4ca1dcedc6008eeb25a867028a345f6be5d | refs/heads/master | 2021-05-04T16:44:58.558359 | 2018-02-05T06:48:07 | 2018-02-05T06:48:07 | 120,258,017 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | """myproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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')
C... | [
"15270102382@163.com"
] | 15270102382@163.com |
f5053ad5d39fa304ee1eb66dc931a17b20e9e1b5 | a88479c5387402275c3a9c73cf8ac60958063ed4 | /trunk/images/icon_edit.py | 4798f55f9e757c9c072f1d8698ae4f8be5a09e21 | [] | no_license | BackupTheBerlios/guitarportfolio-svn | acf2e24f2e6a3a54961ac4d853d10f49b6da9658 | c9f719c41feaaa20baafd77d7e2711e1b317b3dd | refs/heads/master | 2021-01-10T19:26:10.559122 | 2007-07-16T10:13:56 | 2007-07-16T10:13:56 | 40,669,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,945 | py | #----------------------------------------------------------------------
# This file was generated by make_images.py
#
from wx import ImageFromStream, BitmapFromImage, EmptyIcon
import cStringIO, zlib
def getData():
return zlib.decompress(
'x\xda\x01\xe1\x01\x1e\xfe\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\
... | [
"jorg@9eb3242f-7b31-0410-b1b8-c03ae08380dd"
] | jorg@9eb3242f-7b31-0410-b1b8-c03ae08380dd |
ea8762af10e7c402026821e816a600291abf5210 | 47e3ae4a2037f72c98dfabdc00eef0585da4fe6b | /news/migrations/0004_auto_20190530_1541.py | 6f4ba4bed0bc476d3e2a3bd09ce17b26f7ec3add | [] | no_license | DHUer/Software_backend | 10e7e100e78df2275101d213da87d1a9e27344a5 | 778acde229081c2639cd270f278a7dd74689b05c | refs/heads/master | 2020-05-22T11:18:05.985619 | 2019-06-15T08:09:27 | 2019-06-15T08:09:27 | 186,320,459 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,464 | py | # Generated by Django 2.2.1 on 2019-05-30 07:41
import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('news', '0003_auto_20190523_1624'),
]
operations = [
m... | [
"751925352@qq.com"
] | 751925352@qq.com |
3ce5a14ec1f89e24ee3ad1bc35f7a61bd00ee311 | a1e8d862e11be1f8aacb530bff2498f359a2be86 | /app/common/queue_managemet.py | ab42958bbb4c6e752a79dd3588913fa8749233d7 | [] | no_license | vignesh-madanan/AIforimagev2 | 475be0bd324a728290a5bc0a726eb9c043227628 | 0b7eee6711b6b13076e7f4d6d54c628b2e15abd5 | refs/heads/master | 2022-11-16T09:08:49.904985 | 2020-06-28T08:18:52 | 2020-06-28T08:18:52 | 190,850,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | import sys
import zmq
import json
import os
import logging
import traceback
from multiprocessing import Process
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
class ProxyManager:
def __init__(self):
self.SENDER_PORT = 3344
self.RECEIVER_PORT = 3345
self.SENDER_... | [
"vigneshmadanan@bitbucket.org"
] | vigneshmadanan@bitbucket.org |
aee51eaa1c337062e93dd75f47cb2d5b50be65af | bf8fbff494eaaf8046a41d676d553d4e8144ddeb | /tabServers.py | 9b5de732410be373d834a6d261328ab171f44631 | [
"MIT"
] | permissive | TonyWhitley/rFactory | 685755a2a34f3ac6d8e7f4f0c4cf06eb9cc0d000 | b556a7746fbe50e231e615136a0c8d3a491d50cf | refs/heads/master | 2023-01-05T21:25:42.490043 | 2022-03-09T16:02:22 | 2022-03-09T16:02:22 | 145,017,219 | 2 | 1 | MIT | 2022-12-27T15:37:49 | 2018-08-16T17:03:38 | Python | UTF-8 | Python | false | false | 11,480 | py | # Python 3
from multiprocessing.dummy import Pool as ThreadPool
import os
import sys
import tkinter as tk
from tkinter import ttk
from lib.MC_table import Multicolumn_Listbox
from data.rFactoryConfig import config_tabServer, serverTags
##from data import getAllServerData, getSingleServerData
import edit.serverFavouri... | [
"Tony_Whitley@hotmail.com"
] | Tony_Whitley@hotmail.com |
0ca9f879ee04e0deca2c7d730207537a558a3d0c | 230378e3cb26ddf26bc172d3d041cf72be6a8cb3 | /challenge7/challenge7.py | 79d50a819d2d6ea0ca45fa99ce3ad9186c7b6adc | [] | no_license | zeeshanny/pyBiteChallenges | 9e09a5fde383df0201b27b00619d75874fc9ecfe | abfd8c6614132503c860fa0693810314b81b6e28 | refs/heads/master | 2020-03-10T11:02:41.993409 | 2018-05-09T02:38:29 | 2018-05-09T02:38:29 | 129,346,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | """
Given the provided cars dictionary:
Get all Jeeps
Get the first car of every manufacturer.
Get all vehicles containing the string Trail in their names
(should work for other grep too)
Sort the models (values) alphabetically
"""
import operator
cars = {
'Ford': ['Falcon', 'Focus', 'Festiva', 'Fairlane'],
... | [
"zeeshan.sattar@tntp.org"
] | zeeshan.sattar@tntp.org |
d799d116e25cd1fae67137dd66a33f95dcb3703f | dfe569108641a4ff1a43cb6f84e7e052b77dafdf | /week06/week06_40740304S.py | 866d7fe2d012d51e911217e047e8442c63b97fd9 | [] | no_license | LYASDF/NTNU_TextProcessing_2021 | e79cf071809866df78b3dad668e85b57dfc51d00 | 33b6843396745782d0a411726200dd49d4ffb45b | refs/heads/master | 2023-07-14T11:42:03.573181 | 2021-08-22T15:00:01 | 2021-08-22T15:00:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,095 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
import json
# 讀取 json 的程式
def jsonTextReader(jsonFilePath):
with open(jsonFilePath, 'r', encoding='utf-8') as f:
jsonFile = json.load(f)
return jsonFile['text']
# 將字串轉為「句子」列表的程式
def text2Sentence(inputSTR):
# replace '...' and '…' with ''
unu... | [
"79515901+40740304S@users.noreply.github.com"
] | 79515901+40740304S@users.noreply.github.com |
03f855e35fc7d8912ad53ea48111f34ad916183d | c167d527f8b0c0a37b4698d243083ce7ef523212 | /prorestaurant/myrestaurant/apps.py | 05314cf1d77342cc8acb0ca8320801e94574ea91 | [] | no_license | madhusudan-j/prorestaurant | 1bc7a96a1028deb91ec8451dfa0fcd2432f762d2 | e22819a85dc57e974d69d9daa21860af1a46f1bd | refs/heads/master | 2023-04-29T20:34:07.608661 | 2019-08-05T11:57:36 | 2019-08-05T11:57:36 | 200,229,495 | 1 | 0 | null | 2023-04-21T20:35:29 | 2019-08-02T12:18:02 | Python | UTF-8 | Python | false | false | 104 | py | from django.apps import AppConfig
class MyrestaurantConfig(AppConfig):
name = 'myrestaurant'
| [
"noreply@github.com"
] | madhusudan-j.noreply@github.com |
e445e69c3f4201e6a82f43d62ce2eed19fa2b935 | bb47a173f6e17e5b20f4d19830466767a47b5988 | /models/system_jobs.py | 76f165893f3bd50394463b7ab4e35ae9ae355a3b | [] | no_license | gmancoder/MailChimp-Management-Console | c0ad1d7d6995d573b962eaeb2e2194b1b2ff01d7 | 93a7fc61348c57c1c8d45f60a3614171f6307c95 | refs/heads/master | 2020-03-07T06:46:09.251318 | 2018-03-29T20:52:50 | 2018-03-29T20:52:50 | 127,331,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,980 | py | #!/usr/bin/env python
from models.shared import db
from models.imports import *
from models.exports import *
from models.tracking import *
import datetime
import os
import csv
class SystemJob(db.Model):
__tablename__ = "system_job"
id = db.Column(db.Integer, primary_key=True)
brand_id = db.Colu... | [
"grbrewer@grbrewer.com"
] | grbrewer@grbrewer.com |
c9eb0c5a631ba807850bc235622337d71913098d | e877d2bdaee44a1c3d124be97003cbba737d28bd | /regex/urls.py | c899cbca885fbbb6cb2d417ed4c7d1bb7e7485e3 | [] | no_license | daddeo/PythonTest | 9cd0d6326ce5811ef62f73e4b7094b2ef66d4417 | df57a160b828d77e7fcfab6244f450fcd5d2238d | refs/heads/master | 2021-03-22T21:18:08.603394 | 2020-05-13T02:30:17 | 2020-05-13T02:30:17 | 247,399,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | import re
urls = """
https://www.google.com
http://coreyms.com
https://youtube.com
https://www.nasa.gov
"""
pattern = re.compile(r"https?://(www\.)?(\w+)(\.\w+)")
subbed_urls = pattern.sub(r"\2\3", urls)
print(subbed_urls)
# matches = pattern.finditer(urls)
# for match in matches:
# print(match.group(3))
| [
"jason.wallenfang@gmail.com"
] | jason.wallenfang@gmail.com |
d0bc437a44318504958582938e6622cdb01b23a9 | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2016_01_20_gsh_database_red/integrate_parallel.py | 19794112e938772715aa9bad100ef9986045d7cc | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,702 | py | import numpy as np
# import itertools as it
import db_functions as fn
import gsh_hex_tri_L0_16 as gsh
import h5py
import time
import sys
tnum = np.int64(sys.argv[1])
filename = 'log_integrate_parallel_%s.txt' % str(tnum)
""" Load Y vec """
f = h5py.File('var_extract_total.hdf5', 'r')
var_set = f.get('var_set')
sinp... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
0b2040379f11972e753ede545d2b35e427664bc1 | 75fc303f2734fb1b220f088f1c0a49ef9557bb0c | /blog/models.py | 2d38a56ecdea8fec25f2896d57aa28100e28f769 | [] | no_license | chriszhang111/tinybook | 243c2a4f5fae55d9ec5cd004f231075647e746d7 | fdf63ef9c436fda8043c9936bd659c15d4959904 | refs/heads/master | 2021-05-11T02:38:34.649015 | 2018-01-21T19:58:49 | 2018-01-21T19:58:49 | 118,368,397 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,408 | py | from flask_blog import db,uploaded_images
from datetime import datetime
class Blog(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(80))
admin = db.Column(db.Integer, db.ForeignKey('author.id'))
#posts = db.relationship('Blog_Post',backref='blog',lazy='dynamic')
... | [
"chris@chrisdeMBP.fios-router.home"
] | chris@chrisdeMBP.fios-router.home |
b217efd0f64b9d0741f845fcf771f02ebc45c190 | ea434bd9d6c2a3f2356c20b05f33a5d6f2d4d8ca | /geziyakurdi/test.py | 4c26ad334ae3a8404af040a9015df402f66da24e | [] | no_license | dicleoztur/subjectivity_detection | d0b0148849cb10cf0fd024762f80cdc275510ea2 | 7976a5480ed371676784b66d7026429f7e2360cb | refs/heads/master | 2021-01-20T19:34:04.614140 | 2016-08-09T12:28:30 | 2016-08-09T12:28:30 | 65,291,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | '''
Created on Jul 7, 2013
@author: dicle
'''
import numpy as np
import pandas as pd
from datetime import datetime
def f1():
p = "/home/dicle/Dicle/Tez/geziyakurdiproject/corpus/test/"
A = np.random.randint(0, 10, size=360000).reshape(600, 600)
names = [a for i in range(100) for a in 'abcdef']
df = ... | [
"dicleoztur@gmail.com"
] | dicleoztur@gmail.com |
23e08a3bc648e11c09e92370a1bd21eae7196502 | c2f320b696546e0e8ad4372ba40b3efa01920b33 | /set_mat_zeros.py | 47cb05427e25f365facb78d31528f25f8fac47c6 | [] | no_license | MatthewC221/Algorithms | e785f69533787326b791327381567a7bd15480a8 | b619498d2b8b5e53b629b664fabcff0b68c10897 | refs/heads/master | 2021-01-22T21:22:19.549119 | 2019-04-08T11:19:58 | 2019-04-08T11:19:58 | 85,416,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | # Leetcode: https://leetcode.com/problems/set-matrix-zeroes/description/
# O(n) time, O(n) space. I think this is a good way to do it, it will never be O(n^2).
# Even if we approached in the manner that if we see a 0 we set its col and row to False we can reach O(n^2).
# This way, we only go through each row/col at mos... | [
"noreply@github.com"
] | MatthewC221.noreply@github.com |
a953715dfb4d72b0d80a6276358e69b854f3ef42 | 495e8027c9ebe0634fae72983c3d85ca22286a8b | /Homework 1/bayes.py | f65fecb9aa276068f0028a35f4c6b1572ef16088 | [] | no_license | braininahat/Advanced_Robotics_CSE668 | f0cfb1462f90a44911ce256e96aea0f648f5f243 | f0e8b14e31c9adce5d970f56f836c06ea8e042ee | refs/heads/master | 2020-03-07T12:33:41.407517 | 2018-05-17T05:51:05 | 2018-05-17T05:51:05 | 127,480,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | import numpy as np
world = np.empty((50, 50, 50)) # Initializing state space of 50x50x50 | [
"varunshi@buffalo.edu"
] | varunshi@buffalo.edu |
6e40eb92f7f07237b92ac81f04afb8abdeab0035 | 2e73a857b634f62ef3a939d63a9939858ee06205 | /lib/emojis.py | 96b3110e057c16be024816f0502a2f389e28c2d0 | [
"MIT"
] | permissive | LollipopGeneral/wxj | d0bf1a62dfcb613ba943042467268baf0c1b9861 | faaa16f30d4c076a4732ca4cd03032440d8cc437 | refs/heads/master | 2020-05-07T08:07:38.525752 | 2017-10-22T15:41:04 | 2017-10-22T15:41:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import json
import re
from . import utils
from .common import DATADIR
DATAFILE = DATADIR / 'emojis.json'
EMOJIS = {
'apple': {},
'pictorial': {},
}
def load():
if DATAFILE.exists():
with open(DATAFILE) as fp:
EMOJIS.update(json.load(fp))
load()
def emoji(label):
if label in ... | [
"snh48live@gmail.com"
] | snh48live@gmail.com |
afe05bb5eb74325ed592e4e8709f4779a1e69f2a | 6f6a2e25b8efb195aa2bc4f89bae7ae8212c19c4 | /dictionary/dicto/migrations/0003_auto_20210529_1613.py | 169f40355008f2eee6396cfedbe3f3f616b1f222 | [] | no_license | hemantgupta0408/dictionary-django | f7a080d284490e9f9ce100a65366bf36ff6002bb | f1f5a2afa45dd2045fecadfd3102937a3862d75e | refs/heads/master | 2023-05-09T19:24:10.988571 | 2021-06-07T10:50:21 | 2021-06-07T10:50:21 | 353,572,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # Generated by Django 3.1.6 on 2021-05-29 10:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dicto', '0002_auto_20210528_1724'),
]
operations = [
migrations.AlterField(
model_name='words',
name='category',
... | [
"hemantgupta0404@gmail.com"
] | hemantgupta0404@gmail.com |
124ea5660380a8f75b3dcf5d39f6419f82e4cb75 | d7f4a14f0ba681cb055f4a43823678baba2bdaa9 | /Lawn.py | 619953fd419aca18b68acaa5da9e2c14340a358a | [] | no_license | JamesMensah/blablamower | 1f0b0aa76d550292cc991eb961c1f83538ce8d89 | 1ff417e2e76dd3cca10900719b4f4d9909e19aa2 | refs/heads/master | 2020-06-29T08:19:06.900518 | 2019-08-04T20:17:04 | 2019-08-04T20:17:04 | 200,484,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | class Lawn(object):
def __init__(self, upper_right_x=None, upper_right_y=None, mowers=[]):
self.upper_right_x = upper_right_x
self.upper_right_y = upper_right_y
self.mowers = mowers
def __str__(self):
return "The lawnmowers locations are now " + str(self.mowers)
| [
"jamesou@gmail.com"
] | jamesou@gmail.com |
13da54188ce83afe9954d7fdbafc47366dcacc96 | a24f4a4f6861a528b7607adce135c47b718cb045 | /cautious-barnacle/interview_questions/searching/find_prefix_in_strings.py | 896dc23be285e8eab84f8110895e4b7431a0b685 | [] | no_license | domRowan/cautious-barnacle | a8e73602f9fb35fbc4c4d741e6d6214de11fb9aa | ca2fcd40a7c8f84f0aac93be090278af1231d931 | refs/heads/master | 2020-03-30T06:19:02.817961 | 2020-01-16T13:45:29 | 2020-01-16T13:45:29 | 150,852,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | def find_prefix_in_strings(input, prefix):
first_occurance = find_occurance_of_letter(input, prefix, True, False)
last_occurance = find_occurance_of_letter(input, prefix, False, True)
return (first_occurance, last_occurance)
def find_occurance_of_letter(input, prefix, FIRST, LAST):
left_pointer = 0
... | [
"rowand@amazon.com"
] | rowand@amazon.com |
ec138c2141ea41be405272bce0a14e83376a4208 | c284be8567ab62e330d8828e72045a03d32c118a | /replay.py | 57db29bf80192fd2f6571888206b5f9ebf4e8e10 | [] | no_license | syun0830/tracking_via_colorizing | 134b589ad47fd6191e382e2ec17e233bc570ac2e | 56da2848b7980499b107c324ac50a29e9b66d431 | refs/heads/master | 2020-12-26T22:23:46.118327 | 2020-02-02T09:58:08 | 2020-02-02T09:58:08 | 237,667,362 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,284 | py | import tensorflow as tf
def stratified_sample(probs, n):
N = tf.shape(probs)[0:1]
c = tf.cumsum(probs)
c = c/c[-1]
borders = tf.linspace(0.,1.,n+1)
right = borders[1:]
c = tf.expand_dims(c, 0)
right = tf.expand_dims(right, 1)
greater_mask = tf.cast(tf.greater(c, right), tf.int32)
_... | [
"shunsuke.dgear@gmail.com"
] | shunsuke.dgear@gmail.com |
6ce38780ae3c06e1906fca79ab887be09b941599 | 129332d9fb1dc4d47188186a2ee29d9a82395486 | /gui/components/VolumeLevel/VolumeLevel.py | 9564362c35f99e4a2e298f8cca7644404ab12c69 | [] | no_license | Dmy54/xmachine_graph | 636f16b96e39488668cc3670789ce3346b9b90d8 | 4b7e141aa8e4c113b5c346d8cbb60b7ab790eb92 | refs/heads/master | 2023-06-26T11:01:03.429277 | 2021-07-27T11:29:38 | 2021-07-27T11:29:38 | 386,931,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from kivy.uix.boxlayout import BoxLayout
from kivy.properties import ListProperty, NumericProperty
class VolumeLevel(BoxLayout):
color = ListProperty([1, 0, 0, 1])
level = NumericProperty(0)
def __init__(self, **kwargs):
super(VolumeLevel, self).__init__(**kwargs)
def change_level(self, leve... | [
"4254965@gmail.com"
] | 4254965@gmail.com |
1bec4f69dbf58f022ceafae8fdf4ee48366b0bc6 | f051b85de74757fd70fa03735ee087d24945730d | /pdf_to_img/apps.py | a6536aeb68a4ef5c8bbe6592aa89f078c340de48 | [
"MIT"
] | permissive | karuvally/wraith | fa18e7ff646b3436f5003da4be558387ddc3e5df | a2436e67ff67094487d9b6f3c7419510c9d72b35 | refs/heads/main | 2023-08-24T09:05:52.217170 | 2021-10-21T11:26:36 | 2021-10-21T11:26:36 | 411,770,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from django.apps import AppConfig
class PdfToImgConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'pdf_to_img'
| [
"aswinbabuk@gmail.com"
] | aswinbabuk@gmail.com |
9f1ffddbff4221e8639aa9fec08053614fd6e15f | 22258dfb5e0ad56db0c690dbfde8f4af6d9509d8 | /maze.py | f88885ee8df22832dedc711dc118cd5930f20ef7 | [] | no_license | ranguera/Unity-Maze-Generator | 10fa29d9f3ec6b3fce850d941bafc4678ea022f6 | f6f9326183b7b5437bbf949fe2f0aaf783207af7 | refs/heads/master | 2021-01-12T03:37:32.972846 | 2017-02-09T22:00:36 | 2017-02-09T22:00:36 | 78,242,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,881 | py | # Code by Erik Sweet and Bill Basener
import random
import numpy as np
from matplotlib import pyplot as plt
import matplotlib.cm as cm
num_rows = int(input("Rows: ")) # number of rows
num_cols = int(input("Columns: ")) # number of columns
# The array M is going to hold the array information for each cell.
# The firs... | [
"ranguera@gmail.com"
] | ranguera@gmail.com |
e1f86e42b1651b24b49a852a30e9ba287c876154 | 36126f91a2d5903483b84ba2d8be77e160803058 | /tests/test_model.py | 2fcf991147d46894fa7d917d389309988844fd6e | [
"Apache-2.0"
] | permissive | open-risk/transitionMatrix | 9962bb2656eb637ba56afc3adecf42bbe68f9593 | d05e75cbc251f01842dd8c5ce225894b988f4d99 | refs/heads/master | 2023-03-05T08:01:20.816425 | 2023-02-22T20:46:38 | 2023-02-22T20:46:38 | 110,365,127 | 73 | 29 | Apache-2.0 | 2022-12-08T11:37:12 | 2017-11-11T17:25:08 | Python | UTF-8 | Python | false | false | 5,126 | py | # encoding: utf-8
# (c) 2017-2022 Open Risk, all rights reserved
#
# TransitionMatrix is licensed under the Apache 2.0 license a copy of which is included
# in the source distribution of TransitionMatrix. This is notwithstanding any licenses of
# third-party software included in this distribution. You may not use this... | [
"openrisk@outlook.com"
] | openrisk@outlook.com |
d1df29cfcfd4dace82fa7e4e728abf9975d61641 | 94615230d5733282fb69ae5d35411c04a337d353 | /sublime-text-3/Packages/HTML-CSS-JS Prettify/src/py/utils/constants.py | 2d082675e21dc88f0f92e4c331ef81174d4f9007 | [
"Unlicense"
] | permissive | EnTeQuAk/dotfiles | fcef6a885891c3c132da3ea970dd21aee16b72c1 | b00890fa64a01b3a0e4eaaada13e90c1ef36b9e0 | refs/heads/master | 2023-01-04T21:09:37.330838 | 2019-09-16T14:49:45 | 2019-09-16T14:49:45 | 1,558,950 | 1 | 0 | Unlicense | 2023-01-04T05:01:57 | 2011-04-02T08:31:38 | Vim script | UTF-8 | Python | false | false | 623 | py | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
"""Various constants used by this plugin"""
from sublime import platform, version
PLATFORM = platform()
SUBLIME_VERSION... | [
"cg@webshox.org"
] | cg@webshox.org |
7b14555c4e4fe08c4111754baee534c46f8a907b | 357e72f2a8b7aa2a26fb02312aab9e1caefdf78a | /sc2_start/unit_based_approach.py | c8af2d9f6861824aa7c7c3e421ab1b3eecd68e66 | [] | no_license | tristan00/sc2 | a9044bae01dc6f2f1a66ebbe9cb9ada45285d202 | 9eb0c800a3e647f3f847a17243ad1e80ac7153a6 | refs/heads/master | 2020-03-21T06:51:46.163844 | 2019-01-23T03:01:49 | 2019-01-23T03:01:49 | 138,245,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,615 | py | import sc2
from sc2 import run_game, maps, Race, Difficulty, position
from sc2.player import Bot, Computer
from sc2.constants import NEXUS, PROBE, PYLON, ASSIMILATOR, GATEWAY, \
CYBERNETICSCORE, STARGATE, VOIDRAY, ZEALOT, STALKER, ROBOTICSFACILITY, \
OBSERVER, IMMORTAL, ADEPT, FORGE, SHIELDBATTERY, PHOTONCANNON, TWILI... | [
"tristandelforge1@gmail.com"
] | tristandelforge1@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.